|
|
!(function(){var O1=Object.defineProperty;var Fv=Object.getOwnPropertySymbols;var D1=Object.prototype.hasOwnProperty,N1=Object.prototype.propertyIsEnumerable;var x0=(gr,zn,pe)=>zn in gr?O1(gr,zn,{enumerable:!0,configurable:!0,writable:!0,value:pe}):gr[zn]=pe,E0=(gr,zn)=>{for(var pe in zn||(zn={}))D1.call(zn,pe)&&x0(gr,pe,zn[pe]);if(Fv)for(var pe of Fv(zn))N1.call(zn,pe)&&x0(gr,pe,zn[pe]);return gr};var Va=(gr,zn,pe)=>x0(gr,typeof zn!="symbol"?zn+"":zn,pe);(self.webpackChunk=self.webpackChunk||[]).push([[67],{40001:function(gr,zn,pe){"use strict";pe.d(zn,{Z:function(){return Me}});var oe=pe(60499),qt=pe(59301),Xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},Ht=Xe,rt=pe(7657),at=function(ce,ke){return qt.createElement(rt.Z,(0,oe.Z)({},ce,{ref:ke,icon:Ht}))},Dt=qt.forwardRef(at),Me=Dt},73331:function(gr,zn,pe){"use strict";pe.d(zn,{Z:function(){return Me}});var oe=pe(60499),qt=pe(59301),Xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},Ht=Xe,rt=pe(7657),at=function(ce,ke){return qt.createElement(rt.Z,(0,oe.Z)({},ce,{ref:ke,icon:Ht}))},Dt=qt.forwardRef(at),Me=Dt},15277:function(gr,zn,pe){"use strict";pe.d(zn,{Z:function(){return Me}});var oe=pe(60499),qt=pe(59301),Xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},Ht=Xe,rt=pe(7657),at=function(ce,ke){return qt.createElement(rt.Z,(0,oe.Z)({},ce,{ref:ke,icon:Ht}))},Dt=qt.forwardRef(at),Me=Dt},33853:function(gr,zn,pe){"use strict";pe.d(zn,{Z:function(){return Me}});var oe=pe(60499),qt=pe(59301),Xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},Ht=Xe,rt=pe(7657),at=function(ce,ke){return qt.createElement(rt.Z,(0,oe.Z)({},ce,{ref:ke,icon:Ht}))},Dt=qt.forwardRef(at),Me=Dt},61485:function(gr,zn,pe){"use strict";pe.d(zn,{Z:function(){return Me}});var oe=pe(60499),qt=pe(59301),Xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},Ht=Xe,rt=pe(7657),at=function(ce,ke){return qt.createElement(rt.Z,(0,oe.Z)({},ce,{ref:ke,icon:Ht}))},Dt=qt.forwardRef(at),Me=Dt},47472:function(gr,zn,pe){"use strict";pe.d(zn,{Z:function(){return Me}});var oe=pe(60499),qt=pe(59301),Xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},Ht=Xe,rt=pe(7657),at=function(ce,ke){return qt.createElement(rt.Z,(0,oe.Z)({},ce,{ref:ke,icon:Ht}))},Dt=qt.forwardRef(at),Me=Dt},87395:function(gr,zn,pe){"use strict";pe.d(zn,{Z:function(){return Me}});var oe=pe(60499),qt=pe(59301),Xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},Ht=Xe,rt=pe(7657),at=function(ce,ke){return qt.createElement(rt.Z,(0,oe.Z)({},ce,{ref:ke,icon:Ht}))},Dt=qt.forwardRef(at),Me=Dt},88319:function(){"use strict"},94896:function(){"use strict"},74501:function(gr,zn){"use strict";zn.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},39967:function(gr,zn){"use strict";zn.Z={flex_box_center:"flex_box_center___vG4eV",flex_space_between:"flex_space_between___qVVxe",flex_box_vertical_center:"flex_box_vertical_center___P8Z8s",flex_box_center_end:"flex_box_center_end___VMme3",flex_box_column:"flex_box_column___VMHwm",dropdownmenus:"dropdownmenus___oVzoj",popupClassNames:"popupClassNames___OcZq7",selectdown:"selectdown___mmcA8"}},84915: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 gr={},zn="5.0",pe={},oe=null,qt=!1,Xe=!1,Ht=null,rt=!1,at=null,Dt=null,Me=0;Me<arguments.length;Me++){var Pe=arguments[Me];if(Pe!==null)switch(typeof Pe){case"number":zn=Pe.toFixed(1);break;case"string":Pe.match(new RegExp("^[0-9]\\.[0-9]+$"))?zn=Pe:Ht=Pe;break;case"object":typeof Pe.is3D!="undefined"?oe=Pe:pe=Pe;break;case"boolean":qt=Pe,Xe=!0;break}}oe===null&&(oe={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},pe.material_id!==void 0&&!Xe&&(qt=!0)),Ht!==null&&pe.id===void 0&&(pe.id=Ht);var ce="",ke="",Le=!1,Ve=null,Ke=null,He=null,Ge=!1,ze=null,qe=null,pt=null,Bt=null,vt=null;pe.height!==void 0&&(pe.height=Math.round(pe.height)),pe.width!==void 0&&(pe.width=Math.round(pe.width));var yt=function(Ze){return parseFloat(Ze)>4?parseFloat(Ze):5};gr.setHTML5Codebase=function(Ze,Ct){Dt=Ze,It(Ze,Ct)},gr.setJavaCodebase=gr.setJavaCodebaseVersion=gr.isCompiledInstalled=gr.setPreCompiledScriptPath=gr.setPreCompiledResourcePath=function(){},gr.setHTML5CodebaseVersion=function(Ze,Ct){var _t=parseFloat(Ze);if(_t!==NaN&&_t<5){console.log("The GeoGebra HTML5 codebase version "+_t+" is deprecated. Using version latest instead.");return}at=Ze,xe(Ze,Ct)},gr.getHTML5CodebaseVersion=function(){return Ke},gr.getParameters=function(){return pe},gr.setFontsCSSURL=function(Ze){Bt=Ze},gr.setGiacJSURL=function(Ze){},gr.setJNLPFile=function(Ze){ce=Ze},gr.setJNLPBaseDir=function(Ze){},gr.inject=function(){function Ze(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ct="auto",_t=pe.id,In,xn=!1,Wn=0;Wn<arguments.length;Wn++){var ct=arguments[Wn];typeof ct=="string"?(ct=ct.toLowerCase(),ct.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Ct=ct:_t=arguments[Wn]):typeof ct=="boolean"?xn=ct:ct instanceof HTMLElement&&(In=ct)}En();function En(){if(!rt){setTimeout(En,200);return}Ct=Qt(Ct);var Rt=In||document.getElementById(_t);if(!Rt){console.log("possibly bug on ajax loading? ");return}if(gr.removeExistingApplet(Rt,!1),pe.width===void 0&&Rt.clientWidth&&(pe.width=Rt.clientWidth),pe.height===void 0&&Rt.clientHeight&&(pe.height=Rt.clientHeight),!(pe.width&&pe.height)&&Ct==="html5"&&(delete pe.width,delete pe.height),Ve=Ct,Ct==="screenshot")lt(Rt,pe);else{var be=!1;pe.hasOwnProperty("playButton")&&pe.playButton||pe.hasOwnProperty("clickToLoad")&&pe.clickToLoad?be=!0:pe.hasOwnProperty("playButtonAutoDecide")&&pe.playButtonAutoDecide&&(be=(!Nt()||Ze())&&Et()),be?(Ve="screenshot",Zt(Rt,pe,xn,Ct)):wt(Rt,pe,xn)}}};function Nt(){try{return window.self!==window.top}catch(Ze){return!0}}function Et(){return pe.hasOwnProperty("screenshotGenerator")&&pe.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}gr.getViews=function(){return oe},gr.isJavaInstalled=function(){return!1};var pn=function(Ze){var Ct=function(Wn){var ct=JSON.parse(Wn),En=function(de){return de.type=="G"||de.type=="E"},Rt=ct.elements?ct.elements.filter(En)[0]:ct;if(!Rt||!Rt.url){_t();return}pe.fileName=Rt.url,Pt(Rt.settings||{}),oe.is3D=!0;var be="https://www.geogebra.org/images/";gr.setPreviewImage(ze||Rt.previewUrl,be+"GeoGebra_loading.png",be+"applet_play.png"),Ze()},_t=function(){pe.onError&&pe.onError(),Cn("Error: Fetching material (id "+pe.material_id+") failed.",pe)},In=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",xn="/materials/"+pe.material_id+"?scope=basic";St("https://"+In+"/api/proxy.php?path="+encodeURIComponent(xn),Ct,_t)};function Pt(Ze){var Ct=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(_t){Ze[_t]=!!Ze[_t]}),Ct.forEach(function(_t){pe[_t]===void 0&&Ze[_t]!==void 0&&(pe[_t]=Ze[_t])}),pe.showToolBarHelp===void 0&&(pe.showToolBarHelp=pe.showToolBar)}function St(Ze,Ct,_t){var In=new XMLHttpRequest;In.open("GET",Ze),In.onload=function(){Ct(In.responseText)},In.onerror=_t,In.send()}gr.isHTML5Installed=function(){return!0},gr.getLoadedAppletType=function(){return Ve},gr.setPreviewImage=function(Ze,Ct,_t){ze=Ze,qe=Ct,pt=_t},gr.removeExistingApplet=function(Ze,Ct){var _t;typeof Ze=="string"&&(Ze=document.getElementById(Ze)),Ve=null;var In=null;for(_t=0;_t<Ze.childNodes.length;_t++){var xn=Ze.childNodes[_t],Wn=xn.className;Wn==="applet_screenshot"?Ct?(xn.style.display="block",Ve="screenshot"):xn.style.display="none":Wn!=="applet_scaler prerender"&&(Ze.removeChild(xn),In=Wn&&Wn.indexOf("appletParameters")!=-1?xn.id:null,_t--)}var ct=pe.id!==void 0?pe.id:In,En=window[ct];En&&typeof En.getBase64=="function"&&(En.remove(),window[ct]=null)},gr.refreshHitPoints=function(){if(yt(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Ze=gr.getAppletObject();return Ze&&typeof Ze.recalculateEnvironments=="function"?(Ze.recalculateEnvironments(),!0):!1},gr.startAnimation=function(){var Ze=gr.getAppletObject();return Ze&&typeof Ze.startAnimation=="function"?(Ze.startAnimation(),!0):!1},gr.stopAnimation=function(){var Ze=gr.getAppletObject();return Ze&&typeof Ze.stopAnimation=="function"?(Ze.stopAnimation(),!0):!1},gr.getAppletObject=function(){var Ze=pe.id!==void 0?pe.id:"ggbApplet";return window[Ze]},gr.resize=function(){};var jt=function(Ze,Ct,_t){var In=document.createElement("param");In.setAttribute("name",Ct),In.setAttribute("value",_t),Ze.appendChild(In)},Je=function(Ze){return Ze&&Ze!=="false"},wt=function(Ze,Ct,_t){yt(Ke)<=4.2&&(_t=!0);var In=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Ke||ggbHTML5LoadedCodebaseIsWebSimple&&!Ge)&&(In=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var xn=document.createElement("div");xn.classList.add("appletParameters","notranslate");var Wn=Ct.width,ct=Ct.height;if(Ct.disableAutoScale=Ct.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ct.disableAutoScale,Ct.width!==void 0)if(yt(Ke)<=4.4)Je(Ct.showToolBar)&&(Ct.height-=7),Je(Ct.showAlgebraInput)&&(Ct.height-=37),Ct.width<605&&Je(Ct.showToolBar)&&(Ct.width=605,Wn=605);else{var En=100;(Je(Ct.showToolBar)||Je(Ct.showMenuBar))&&(Ct.hasOwnProperty("customToolBar")&&(Ct.customToolbar=Ct.customToolBar),En=Je(Ct.showMenuBar)?245:155),Wn<En&&(Ct.width=En,Wn=En)}xn.style.border="none",xn.style.display="inline-block";for(var Rt in Ct)Ct.hasOwnProperty(Rt)&&Rt!=="appletOnLoad"&&xn.setAttribute("data-param-"+Rt,Ct[Rt]);Bt&&xn.setAttribute("data-param-fontscssurl",Bt),gr.resize=function(){GGBAppletUtils.responsiveResize(Ze,Ct)},window.addEventListener("resize",function(Sn){gr.resize()});var be=typeof Ct.appletOnLoad=="function"?Ct.appletOnLoad:function(){};if(!_t&&Ct.width!==void 0){Ct.hasOwnProperty("showSplash")||xn.setAttribute("data-param-showSplash","false");var de=Ze.querySelector(".applet_scaler.prerender"),le=de!==null;if(le)var ye=de.querySelector(".ggb_preview");else{var ye=At(Wn,ct,Ct.borderColor,!1);de=document.createElement("div"),de.className="applet_scaler",de.style.position="relative",de.style.display="block",de.style.width=Wn+"px",de.style.height=ct+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(de,"66%"),yt(Ke)>=5?(Ct.appletOnLoad=function(Sn){var yn=Ze.querySelector(".ggb_preview");yn&&yn.parentNode.removeChild(yn),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(de),window.GGBT_wsf_view&&$(window).trigger("resize"),be(Sn)},le||de.appendChild(ye)):xn.appendChild(ye),de.appendChild(xn),le||Ze.appendChild(de),setTimeout(function(){gr.resize()},1)}else{var Ie=document.createElement("div");Ie.className="applet_scaler",Ie.style.position="relative",Ie.style.display="block",Ie.appendChild(xn),Ze.appendChild(Ie),Ct.appletOnLoad=function(Sn){gr.resize(),be(Sn)}}function he(Sn,yn){yn&&typeof yn.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Sn,yn.appletOnLoad):renderGGBElement(Sn),Cn("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",yn)}function We(Sn,yn){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Sn,params:yn}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(ar){he(ar.article,ar.params)}),html5AppletsToProcess=null)},yt(Ke)<5&&(Sn.className+=" geogebraweb")):he(Sn,yn)}if(In){scriptLoadStarted=!0;for(var tt=0;tt<xn.childNodes.length;tt++){var dn=xn.childNodes[tt].tagName;dn==="TABLE"&&(xn.removeChild(xn.childNodes[tt]),tt--)}if(ggbHTML5LoadedScript!==null){var ut=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');ut!=null&&ut.parentNode.removeChild(ut)}var zt=document.createElement("script"),en=function(){We(xn,Ct)};zt.src=ke+He,ggbHTML5LoadedCodebaseIsWebSimple=Ge,ggbHTML5LoadedCodebaseVersion=Ke,ggbHTML5LoadedScript=zt.src,Cn("GeoGebra HTML5 codebase loaded: '"+ke+"'.",Ct),!Dt&&(!at||at=="5.0")?(Ge?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),en()):ke.requirejs?__webpack_require__.e(4510).then(function(){var Sn=[__webpack_require__(4510)];en.apply(null,Sn)}.bind(this)).catch(__webpack_require__.oe):(zt.onload=en,Ze.appendChild(zt))}else We(xn,Ct);Ct.height=ct,Ct.width=Wn},lt=function(Ze,Ct,_t){var In=At(Ct.width,Ct.height,Ct.borderColor,_t),xn=document.createElement("div");xn.style.position="relative",xn.style.display="block",xn.style.width=Ct.width+"px",xn.style.height=Ct.height+"px",xn.className="applet_screenshot applet_scaler"+(_t?" applet_screenshot_play":""),xn.appendChild(In);var Wn=GGBAppletUtils.getScale(Ct,Ze,_t);_t?(Ze.appendChild($e()),window.GGBT_wsf_view||(Ze.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(xn,"66%"),Ze.appendChild(xn),Wn!==1&&!isNaN(Wn)&&(GGBAppletUtils.scaleElement(xn,Wn),xn.style.width=Ct.width+"px",xn.style.height=Ct.height+"px",xn.parentNode.style.width=Ct.width*Wn+"px",xn.parentNode.style.height=Ct.height*Wn+"px"),gr.resize=function(){Fe(Ze,In,xn,_t)},window.addEventListener("resize",function(ct){gr.resize()}),gr.resize()};function Fe(Ze,Ct,_t,In){if(Ze.contains(Ct)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Ze.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Ze)}var xn=GGBAppletUtils.getScale(pe,Ze,In);_t.parentNode!==null&&(!isNaN(xn)&&xn!==1?(GGBAppletUtils.scaleElement(_t,xn),_t.parentNode.style.width=pe.width*xn+"px",_t.parentNode.style.height=pe.height*xn+"px"):(GGBAppletUtils.scaleElement(_t,1),_t.parentNode.style.width=pe.width+"px",_t.parentNode.style.height=pe.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Ze),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}gr.onExitFullscreen=function(Ze,Ct){Ct.appendChild(Ze)};var Zt=function(Ze,Ct,_t,In){lt(Ze,Ct,!0);for(var xn=function(){var En=[];for(ct=0;ct<Ze.childNodes.length;ct++)En.push(Ze.childNodes[ct]);if(window.GGBT_wsf_view){var Rt=window.GGBT_wsf_view.renderFullScreen(Ze,Ct.id),be=document.getElementById("fullscreencontainer"),de=jQuery(Ze).find(".fullscreencontent");de.length>0?(Rt.remove(),de.attr("id","fullscreencontent").show(),jQuery(be).append(de),window.dispatchEvent(new Event("resize"))):wt(Rt,Ct,!1),window.GGBT_wsf_view.launchFullScreen(be)}else Ve=In,wt(Ze,Ct,!1);if(!window.GGBT_wsf_view)for(ct=0;ct<En.length;ct++)Ze.removeChild(En[ct])},Wn=Ze.getElementsByClassName("ggb_preview_play"),ct=0;ct<Wn.length;ct++)Wn[ct].addEventListener("click",xn,!1),Wn[ct].addEventListener("ontouchstart",xn,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Ze),Et()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},$e=function(){var Ze=document.createElement("div");if(Ze.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Ct='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',_t=document.createElement("style");_t.styleSheet?_t.styleSheet.cssText=Ct:_t.appendChild(document.createTextNode(Ct)),document.getElementsByTagName("head")[0].appendChild(_t)}return Ze},At=function(Ze,Ct,_t,In){var xn=document.createElement("div");xn.className="ggb_preview",xn.style.position="absolute",xn.style.zIndex="90",xn.style.width=Ze-2+"px",xn.style.height=Ct-2+"px",xn.style.top="0px",xn.style.left="0px",xn.style.overflow="hidden",xn.style.backgroundColor="white";var Wn="lightgrey";_t!==void 0&&(_t==="none"?Wn="transparent":Wn=_t),xn.style.border="1px solid "+Wn;var ct=document.createElement("img");if(ct.style.position="relative",ct.style.zIndex="1000",ct.style.top="-1px",ct.style.left="-1px",ze!==null&&ct.setAttribute("src",ze),ct.style.opacity=.7,qe!==null){var En,Rt,be;if(!In){En=document.createElement("img"),En.style.position="absolute",En.style.zIndex="1001",En.style.opacity=1,ct.style.opacity=.3,Rt=360,Rt>Ze/4*3&&(Rt=Ze/4*3),be=Rt/5.8,En.setAttribute("src",qe),En.setAttribute("width",Rt),En.setAttribute("height",be);var de=(Ze-Rt)/2,le=(Ct-be)/2;En.style.left=de+"px",En.style.top=le+"px",xn.appendChild(En)}}return xn.appendChild(ct),xn},Qt=function(Ze){return Ze=Ze.toLowerCase(),Ze==="html5"||Ze==="screenshot"?Ze:"html5"},Te=["web","webSimple","web3d","tablet","tablet3d","phone"],xe=function(Ze,Ct){if(Ke=Ze,Ct){It(Ke,!0);return}var _t=!qt;if(_t){var In=yt(Ke);!isNaN(In)&&In<4.4&&(_t=!1)}var xn,Wn;window.location.protocol.substr(0,4)==="http"?xn=window.location.protocol:xn="http:";var ct=Ke.indexOf("//");ct>0?Wn=Ke:ct===0?Wn=xn+Ke:Wn="https://www.geogebra.org/apps/5.2.814.0/";for(var En in Te)if(Ke.slice(Te[En].length*-1)===Te[En]||Ke.slice((Te[En].length+1)*-1)===Te[En]+"/"){It(Wn,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&_t&&!oe.is3D&&!oe.AV&&!oe.SV&&!oe.CV&&!oe.EV2&&!oe.CP&&!oe.PC&&!oe.DA&&!oe.FI&&!oe.PV&&!Je(pe.showToolBar)&&!Je(pe.showMenuBar)&&!Je(pe.showAlgebraInput)&&!Je(pe.enableRightClick)&&(!pe.appName||pe.appName=="classic")?Wn+="webSimple/":Wn+="web3d/",It(Wn,!1)},It=function(Ze,Ct){if(Ze.requirejs){ke=Ze;return}Ze.slice(-1)!=="/"&&(Ze+="/"),ke=Ze,Ct===null&&(Ct=Ze.indexOf("http")===-1),Le=Ct,He="web.nocache.js",Ge=!1;var _t=ke.split("/");_t.length>1&&(!Ct&&_t[_t.length-2]==="webSimple"?(He="webSimple.nocache.js",Ge=!0):Te.indexOf(_t[_t.length-2])>=0&&(He=_t[_t.length-2]+".nocache.js")),_t=Ze.split("/"),Ke=_t[_t.length-3],Ke.substr(0,4)==="test"?Ke=Ke.substr(4,1)+"."+Ke.substr(5,1):(Ke.substr(0,3)==="war"||Ke.substr(0,4)==="beta")&&(Ke="5.0");var In=parseFloat(Ke);In!==NaN&&In<5&&Ze.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+In+" is deprecated. Using version latest instead."),xe("5.0",Ct))},Cn=function(Ze,Ct){window.console&&window.console.log&&(!Ct||typeof Ct.showLogging=="undefined"||Ct.showLogging&&Ct.showLogging!=="false")&&console.log(Ze)};pe.material_id!==void 0?pn(mn):mn();function mn(){var Ze=zn;at!==null?Ze=at:parseFloat(Ze)<5&&(Ze="5.0"),xe(Ze,!1),Dt!==null&&It(Dt,Le),rt=!0}return gr},GGBAppletUtils=function(){"use strict";function gr(){return window.GGBT_wsf_edit!==void 0}function zn(rt,at){at!=1?(rt.style.transformOrigin="0% 0% 0px",rt.style.webkitTransformOrigin="0% 0% 0px",rt.style.transform="scale("+at+","+at+")",rt.style.webkitTransform="scale("+at+","+at+")",rt.style.maxWidth="initial",rt.querySelector(".ggb_preview")!==null&&(rt.querySelector(".ggb_preview").style.maxWidth="initial"),rt.querySelectorAll(".ggb_preview img")[0]!==void 0&&(rt.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),rt.querySelectorAll(".ggb_preview img")[1]!==void 0&&(rt.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(rt.style.transform="none",rt.style.webkitTransform="none")}function pe(rt,at,Dt,Me,Pe,ce){var ke=null;if(ce!=null&&ce!="")for(var Le=rt.parentNode;Le!=null;)if((" "+Le.className+" ").indexOf(" "+ce+" ")>-1){ke=Le;break}else Le=Le.parentNode;var Ve=0,Ke=0,He=0,Ge=0,ze=0,qe=0,pt=0;if(ke)Ve=ke.offsetWidth,Ke=Math.max(Me?ke.offsetWidth:0,ke.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Ve=Math.min(window.innerWidth,document.documentElement.clientWidth),Ke=Math.min(window.innerHeight,document.documentElement.clientHeight),He=Ve):(Ve=window.innerWidth,Ke=window.innerHeight,He=window.innerWidth),rt){var Bt=rt.getBoundingClientRect();Bt.left>0&&Bt.left<=Ve&&(Pe===void 0||!Pe)&&(document.dir==="rtl"?(ze=Ve-Bt.width-Bt.left,qe=He<=480?10:30):(qe=Bt.left,ze=He<=480?10:30),Ge=qe+ze)}if(rt&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var vt=rt.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Ge=40,pt=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Ge=0,pt=40)}}return rt&&((Dt===void 0||!Dt)&&at>0&&at+Ge<Ve?Ve=at:Ve-=Ge,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Dt===void 0||!Dt)&&(Ke-=pt)),{width:Ve,height:Ke}}function oe(rt,at,Dt,Me,Pe){if(rt.isScreenshoGenerator)return 1;var ce=Me!==void 0&&Me,ke=rt.noScaleMargin!=null&&rt.noScaleMargin,Le=function(vt){return vt&&vt!=="false"},Ve=Le(rt.autoHeight),Ke=pe(at,rt.width,Dt,Ve,ce&&window.GGBT_wsf_view||ke,Pe),He=parseInt(Ke.width),Ge=rt.width,ze=rt.height;if(Ge===void 0){var qe=at.querySelector(".appletParameters");qe&&(Ge=qe.offsetWidth,ze=qe.offsetHeight)}var pt=He/Ge,Bt=ce?1:Ke.height/ze;return Dt!==void 0&&!Dt&&(pt=Math.min(1,pt),Bt=Math.min(1,Bt)),Math.min(pt,Bt)}function qt(rt,at,Dt){var Me=1,Pe,ce=!1;if(rt.hasOwnProperty("allowUpscale")&&(ce=rt.allowUpscale),rt.hasOwnProperty("scale")&&(Me=parseFloat(rt.scale),(isNaN(Me)||Me===null||Me===0)&&(Me=1),Me>1&&(ce=!0)),at&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ce=!0),!(rt.hasOwnProperty("disableAutoScale")&&rt.disableAutoScale))Pe=oe(rt,at,ce,Dt,rt.scaleContainerClass);else return Me;return ce&&(!rt.hasOwnProperty("scale")||Me===1)?Pe:Math.min(Me,Pe)}function Xe(rt){var at=Math.min(window.innerWidth,document.documentElement.clientWidth),Dt=Math.min(window.innerHeight,document.documentElement.clientHeight),Me=rt.getBoundingClientRect(),Pe=(at-Me.width)/2,ce=(Dt-Me.height)/2;ce<0&&(ce=0),rt.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Pe<40?rt.style.left="40px":rt.style.left=Pe+"px",rt.style.top=ce+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ce<40?rt.style.top="40px":rt.style.top=ce+"px",rt.style.left=Pe+"px")}function Ht(rt,at){var Dt=rt.querySelector(".appletParameters");if(Dt){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(at.id!==Dt.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(rt)}if(Dt.parentElement&&/fullscreen/.test(Dt.parentElement.className))return;var Me=qt(at,rt);gr()&&Dt.setAttribute("data-param-scale",Me);for(var Pe=null,ce=0;ce<rt.childNodes.length;ce++)if(rt.childNodes[ce].className!==void 0&&rt.childNodes[ce].className.match(/^applet_scaler/)){Pe=rt.childNodes[ce];break}if(Pe!==null&&Pe.querySelector(".noscale")!==null)return;var ke=at.id!==void 0?at.id:"ggbApplet",Le=window[ke];(Le==null||!Le.recalculateEnvironments)&&Pe!==null&&!Pe.className.match(/fullscreen/)&&(Pe.parentNode.style.transform="",!isNaN(Me)&&Me!==1?(Pe.parentNode.style.width=at.width*Me+"px",Pe.parentNode.style.height=at.height*Me+"px",zn(Pe,Me)):(zn(Pe,1),Pe.parentNode.style.width=at.width+"px",Pe.parentNode.style.height=at.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Xe(rt),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(Dt).parents(".content-added-content"))}}return{responsiveResize:Ht,isFlexibleWorksheetEditor:gr,positionCenter:Xe,getScale:qt,scaleElement:zn}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var gr=n.location.search;return gr.indexOf(J)!=-1||gr.indexOf(K)!=-1}function q(gr,zn){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(gr){var zn=s[L].bindings;s[L].bindings=function(){for(var pe=zn?zn():{},oe=gr[webModule.__softPermutationId],qt=O;qt<oe.length;qt++){var Xe=oe[qt];pe[Xe[O]]=Xe[P]}return pe}};var t;function u(){return v(),t}function v(){if(!t){var gr=o.createElement(Q);if(gr.id=L,gr.style.cssText=R+S,gr.tabIndex=-1,o.body.appendChild(gr),t=gr.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var zn=document.compatMode==U?V:W;t.write(zn+X),t.close()}}}function w(gr){function zn(oe){function qt(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Xe=qt();if(Xe){oe();return}function Ht(){if(!Xe){if(!qt())return;Xe=!0,oe(),o.removeEventListener&&o.removeEventListener(Z,Ht,!1),rt&&clearInterval(rt)}}o.addEventListener&&o.addEventListener(Z,Ht,!1);var rt=setInterval(function(){Ht()},$)}function pe(oe){var qt=u(),Xe=qt.body,Ht=qt.createElement(_);Ht.language=ab,Ht.crossOrigin=W,Ht.src=oe,webModule.__errFn&&(Ht.onerror=function(){webModule.__errFn(L,new Error(bb+oe))}),Xe.appendChild(Ht)}zn(function(){pe(gr)})}webModule.__startLoadingFragment=function(gr){return C(gr)},webModule.__installRunAsyncCode=function(gr){var zn=u(),pe=zn.body,oe=zn.createElement(_);oe.language=ab,oe.text=gr,pe.appendChild(oe),pe.removeChild(oe)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(gr){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(gr){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(gr){var zn=c[gr];return zn==null?null:zn},r=d,webModule.__errFn=e}function B(){function gr(rt){var at=rt.lastIndexOf(rb);at==-1&&(at=rt.length);var Dt=rt.indexOf(sb);Dt==-1&&(Dt=rt.length);var Me=rt.lastIndexOf(tb,Math.min(Dt,at));return Me>=O?rt.substring(O,Me+P):W}function zn(rt){if(!rt.match(/^\w+:\/\//)){var at=o.createElement(ub);at.src=rt+vb,rt=gr(at.src)}return rt}function pe(){var rt=__gwt_getMetaProperty(wb);return rt!=null?rt:W}function oe(){for(var rt=o.getElementsByTagName(_),at=O;at<rt.length;++at)if(rt[at].src.indexOf(xb)!=-1)return gr(rt[at].src);return W}function qt(){var rt=o.getElementsByTagName(yb);return rt.length>O?rt[rt.length-P].href:W}function Xe(){var rt=o.location;return rt.href==rt.protocol+zb+rt.host+rt.pathname+rt.search+rt.hash}var Ht=pe();return Ht==W&&(Ht=oe()),Ht==W&&(Ht=qt()),Ht==W&&Xe()&&(Ht=gr(o.location.href)),Ht=zn(Ht),Ht}function C(gr){return gr.match(/^\//)||gr.match(/^[a-zA-Z]+:\/\//)?gr:webModule.__moduleBase+gr}function D(){var gr=[],zn=O,pe=[],oe=[];function qt(rt){var at=oe[rt](),Dt=pe[rt];if(at in Dt)return at;var Me=[];for(var Pe in Dt)Me[Dt[Pe]]=Pe;throw r&&r(rt,Me,at),null}if(__gwt_isKnownPropertyValue=function(rt,at){return at in pe[rt]},webModule.__getPropMap=function(){var rt={};for(var at in pe)pe.hasOwnProperty(at)&&(rt[at]=qt(at));return rt},webModule.__computePropValue=qt,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Xe;try{Xe=Cb;var Ht=Xe.indexOf(Db);Ht!=-1&&(zn=parseInt(Xe.substring(Ht+P),$),Xe=Xe.substring(O,Ht))}catch(rt){}return webModule.__softPermutationId=zn,C(Xe+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})()},23216:function(gr,zn,pe){"use strict";pe.d(zn,{Ax:function(){return Ht},Ds:function(){return rt},KI:function(){return Dt},SI:function(){return Xe},f1:function(){return qt}});var oe=pe(14185);function qt(Me){let Pe=!0;if(Me.length>0){for(let ce=0;ce<Me.length;ce++)if(Me[ce].compile_success==0||!Me[ce].compile_success){Pe=!1;break}}else Pe=!1;return Pe}function Xe(Me,Pe=""){let ce=[];for(let ke=0;ke<Me.length;ke++){let Le=Me[ke],Ve=Pe?`${Pe}/${Le.name}`:`${Le.name}`;ce.push({title:Le.name,type:Le.type,isLeaf:Le.type!=="tree",key:Ve})}return ce}function Ht(Me,Pe,ce){for(let ke=0;ke<Me.length;ke++){let Le=Me[ke];if(Le.key===Pe){Le.children=ce;break}Le.children&&Ht(Le.children,Pe,ce)}return Me}function rt(Me,Pe,ce){let ke;return function(){let Le=this,Ve=arguments,Ke=function(){ke=null,ce||Me.apply(Le,Ve)},He=ce&&!ke;clearTimeout(ke),ke=setTimeout(Ke,Pe),He&&Me.apply(Le,Ve)}}const at=!0,Dt=oe.Z.API_SERVER},40254:function(gr,zn,pe){"use strict";pe.d(zn,{Z:function(){return ke}});var oe=pe(59301),qt={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Xe=pe(92310),Ht=pe.n(Xe),rt=pe(29787),at=pe(2859),Dt=pe(49317),Me=pe(76406),Pe=(Le,Ve,Ke)=>new Promise((He,Ge)=>{var ze=Bt=>{try{pt(Ke.next(Bt))}catch(vt){Ge(vt)}},qe=Bt=>{try{pt(Ke.throw(Bt))}catch(vt){Ge(vt)}},pt=Bt=>Bt.done?He(Bt.value):Promise.resolve(Bt.value).then(ze,qe);pt((Ke=Ke.apply(Le,Ve)).next())}),ke=({data:Le,className:Ve,fullWidth:Ke,style:He={},onClose:Ge,onOk:ze,showFullTools:qe,noAssociationId:pt})=>{const Bt=(0,oe.useRef)(null),vt=(0,oe.useRef)(null),yt=(0,oe.useRef)(null),Nt=(0,oe.useRef)(null),[Et,pn]=(0,oe.useState)(!1),[Pt,St]=(0,oe.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,oe.useEffect)(()=>(yt.current||(yt.current=document.createElement("style"),document.head.appendChild(yt.current)),Le!=null&&Le.visible?(document.body.setAttribute("data-custom","y-hidden"),yt.current.innerHTML=" html { overflow-y: hidden; }",Le!=null&&Le.src&&jt()):(document.body.removeAttribute("data-custom"),yt.current&&(document.head.removeChild(yt.current),yt.current=null)),()=>{document.body.removeAttribute("data-custom"),yt.current&&(document.head.removeChild(yt.current),yt.current=null)}),[Le==null?void 0:Le.visible]);const jt=()=>Pe(void 0,null,function*(){pn(!0),St("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Fe=yield(0,Me.ZJ)(Le==null?void 0:Le.src);Bt.current.src="",Bt.current.src=Fe,Bt.current.onload=function(){lt()},pn(!1),St("")}),Je=Fe=>Pe(void 0,null,function*(){pn(!0),St("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Zt=yield(0,Dt.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Le.title,file:Fe.dataUrl}});Zt!=null&&Zt.id&&!pt?(yield(0,Dt.ZP)(`/api/attachments/${Le.id}/add_subitem.json`,{method:"post",body:{subitem_id:Zt==null?void 0:Zt.id,settings:JSON.stringify(Fe.state)}})).status===0&&ze():Zt!=null&&Zt.id&&ze(Zt),pn(!1),St("")}),wt=()=>{const Fe=document.querySelector('a[href="https://markerjs.com/"]');Fe&&Fe.parentNode&&(Fe.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach($e=>{const At=document.querySelector($e.name);At&&At.setAttribute("title",$e.title)})},lt=()=>{vt.current=new at.hP(Bt.current),vt.current.targetRoot=Nt.current,vt.current.addEventListener("render",Je),vt.current.addEventListener("beforeclose",Ge),qe&&(vt.current.availableMarkerTypes=vt.current.ALL_MARKER_TYPES,vt.current.uiStyleSettings.redoButtonVisible=!0,vt.current.uiStyleSettings.notesButtonVisible=!0,vt.current.uiStyleSettings.zoomButtonVisible=!0,vt.current.uiStyleSettings.zoomOutButtonVisible=!0,vt.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=vt.current.uiStyleSettings,vt.current.show(),Le!=null&&Le.snapshotData&&vt.current.restoreState(Le.snapshotData),setTimeout(()=>{window.scrollTo(0,0),wt()},300)};return oe.createElement(oe.Fragment,null,(Le==null?void 0:Le.visible)&&oe.createElement(rt.Z,{spinning:Et,tip:Pt,style:{position:"absolute",width:"100vw"}},oe.createElement("div",{ref:Nt,className:Ht()(qt.imageDimensions,Ve,Ke?qt.fullWidth:""),style:He},oe.createElement("img",{className:qt.img,ref:Bt}))))}},9057:function(gr,zn,pe){"use strict";var oe=pe(59301),qt=pe(77019),Xe=pe(5269),Ht=pe(31691),rt=pe(7939),at=pe(35883),Dt=pe(74501),Me=pe(48136),Pe=pe(59301);const ce=(0,oe.forwardRef)(({callback:ke,showSaveButton:Le,value:Ve=""},Ke)=>{const He=(0,oe.useRef)(),Ge=[{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 "}]}]}],ze=[{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}`}]}]}],qe=vt=>{He.current.setValue(He.current.getValue()+" "+vt.value+" ")},pt=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Pe.createElement(qt.Z,{className:Dt.Z.lists,gutter:[10,10]},Ge.map((vt,yt)=>Pe.createElement(Xe.Z,{flex:"110px",className:Dt.Z.item},Pe.createElement("div",null,Pe.createElement(at.Z,{value:`$$${vt.value}$$`}),vt.name),Pe.createElement("div",{className:Dt.Z.children},vt.children.map((Nt,Et)=>Pe.createElement("div",{key:Et},Pe.createElement("h1",null,Nt.name),Pe.createElement(qt.Z,{gutter:[10,10]},Nt.data.map((pn,Pt)=>Pe.createElement(Xe.Z,{key:Pt,onClick:()=>qe(pn),className:Dt.Z.diamond},Pe.createElement(at.Z,{value:"`$$"+pn.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Pe.createElement(qt.Z,{className:Dt.Z.lists,gutter:[10,10]},ze.map((vt,yt)=>Pe.createElement(Xe.Z,{flex:"110px",className:Dt.Z.item},Pe.createElement("div",null,Pe.createElement(at.Z,{value:"`$$"+vt.value+"$$`"}),vt.name),Pe.createElement("div",{className:Dt.Z.children},vt.children.map((Nt,Et)=>Pe.createElement("div",{key:Et},Nt.name&&Pe.createElement("h1",null,Nt.name),Pe.createElement(qt.Z,{gutter:[10,10]},Nt.data.map((pn,Pt)=>Pe.createElement(Xe.Z,{key:Pt,onClick:()=>qe(pn),className:Dt.Z.diamond},Pe.createElement(at.Z,{value:"`$$"+pn.value+"$$`"}))))))))))}],Bt=()=>{var vt=document.createElement("div");vt.innerHTML=He.current.getValue();var yt=vt.innerText;return ke&&ke(yt),yt};return(0,oe.useImperativeHandle)(Ke,()=>({getData:Bt})),Pe.createElement("div",{className:Dt.Z.mathWrap},Pe.createElement(Ht.default,{defaultActiveKey:"1",items:pt}),Pe.createElement("math-field",{locale:"zh_cn",className:Dt.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:He,style:{width:800,marginTop:30,fontSize:18}},Ve||""),Le&&Pe.createElement("div",{className:Dt.Z.button},Pe.createElement(rt.ZP,{size:"large",onClick:Bt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});zn.Z=ce},90736:function(gr,zn,pe){"use strict";var oe=pe(59301),qt=pe(4977),Xe=pe(7939),Ht=Object.defineProperty,rt=Object.defineProperties,at=Object.getOwnPropertyDescriptors,Dt=Object.getOwnPropertySymbols,Me=Object.prototype.hasOwnProperty,Pe=Object.prototype.propertyIsEnumerable,ce=(Ke,He,Ge)=>He in Ke?Ht(Ke,He,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):Ke[He]=Ge,ke=(Ke,He)=>{for(var Ge in He||(He={}))Me.call(He,Ge)&&ce(Ke,Ge,He[Ge]);if(Dt)for(var Ge of Dt(He))Pe.call(He,Ge)&&ce(Ke,Ge,He[Ge]);return Ke},Le=(Ke,He)=>rt(Ke,at(He));const Ve=({img:Ke,buttonProps:He={},styles:Ge={},customText:ze,ButtonText:qe,ButtonClick:pt,Buttonclass:Bt,ButtonTwo:vt,imgStyles:yt,loading:Nt=!1,className:Et=""})=>oe.createElement("section",{className:`tc animated fadeIn ${Et}`,style:ke({color:"#999",margin:"100px auto",visibility:Nt?"hidden":"visible"},Ge)},oe.createElement("img",{src:Ke||qt,style:Le(ke({},yt),{pointerEvents:"none",userSelect:"none"})}),oe.createElement("p",{className:"mt20 font14"},ze||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),qe&&oe.createElement(Xe.ZP,ke({className:Bt,onClick:pt},He),qe),vt&&vt);zn.Z=Ve},86974:function(gr,zn,pe){"use strict";pe.d(zn,{Z:function(){return Bt}});var oe=pe(59301),qt={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",showClose:"showClose___edZQA",embed:"embed___hvpEJ"},Xe=pe(7939),Ht=pe(70557),rt=pe(34728),at=pe(25399),Dt=pe(76406),Me=pe(84849),Pe=pe(90736),ce=pe(14185),ke=pe(52078),Le=pe(59301),Ve=Object.defineProperty,Ke=Object.getOwnPropertySymbols,He=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,ze=(vt,yt,Nt)=>yt in vt?Ve(vt,yt,{enumerable:!0,configurable:!0,writable:!0,value:Nt}):vt[yt]=Nt,qe=(vt,yt)=>{for(var Nt in yt||(yt={}))He.call(yt,Nt)&&ze(vt,Nt,yt[Nt]);if(Ke)for(var Nt of Ke(yt))Ge.call(yt,Nt)&&ze(vt,Nt,yt[Nt]);return vt},pt=(vt,yt,Nt)=>new Promise((Et,pn)=>{var Pt=Je=>{try{jt(Nt.next(Je))}catch(wt){pn(wt)}},St=Je=>{try{jt(Nt.throw(Je))}catch(wt){pn(wt)}},jt=Je=>Je.done?Et(Je.value):Promise.resolve(Je.value).then(Pt,St);jt((Nt=Nt.apply(vt,yt)).next())}),Bt=({editOffice:vt="view",data:yt,issaver:Nt,onSaver:Et,theme:pn,type:Pt,filename:St,monacoEditor:jt,className:Je,style:wt,close:lt,onClose:Fe,hasMask:Zt,disabledDownload:$e,onImgDimensions:At,showNodata:Qt,recordInfo:Te})=>{const[xe,It]=(0,oe.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Cn,mn]=(0,oe.useState)(""),[Ze,Ct]=(0,oe.useState)(),_t=window.ENV==="build"?"/react/build":"",In=location.host.startsWith("localhost")?ce.Z.PROXY_SERVER:ce.Z.API_SERVER,Wn=10*(1024*1024),ct=(0,oe.useRef)();yt!=null&&yt.startsWith("/api")&&Pt!=="txt"&&(yt=ce.Z.API_SERVER+yt);const En=Ie=>Ie.substring(Ie.lastIndexOf("/")+1).split(".").pop();St&&jt&&(jt.filename=St),(0,oe.useEffect)(()=>{var Ie,he;const We=(he=(Ie=document.cookie)==null?void 0:Ie.replace(/\s/g,""))==null?void 0:he.split(";");We==null||We.map(tt=>{let dn=tt.split("=");dn[0]==="_educoder_session"&&mn(dn[1])})},[]),(0,oe.useEffect)(()=>{Pt==="office"&&(yt.indexOf("bigfilescdn.")>-1||yt.indexOf("bigfiles1")>-1?Ct({url:yt,fileType:En(yt),model:yt.indexOf("model=edit")?"edit":"view"}):yt.indexOf("coze")>-1?Ct({url:yt,fileType:"doc",model:"view"}):be())},[Pt,yt]);function Rt(Ie){return pt(this,null,function*(){Ie.data.type==="pdfdata"&&(Et(Ie.data.data),window.removeEventListener("message",Rt,!1)),console.log("mess---:",Ie.data)})}const be=()=>pt(void 0,null,function*(){console.log("data:",yt);let Ie=yt;yt.startsWith("http")||(Ie=location.origin+Ie);let he=new URL(Ie).pathname.split("/").pop();const We=yield(0,Me.gJ)({attachment_id:he});We.url=In+We.url,Ct(We)}),de=()=>{if(yt.startsWith("http")||yt.startsWith("blob:")){le();return}(0,Dt.Sv)(St||"educoder",yt,St)},le=()=>{Te&&(0,ke.fc)({id:Te==null?void 0:Te.id,watch_type:1,course_id:Te==null?void 0:Te.course_id}),(0,Dt.Nd)(St||"educoder",decodeURIComponent(yt))};(0,oe.useEffect)(()=>(window.addEventListener("message",ye),()=>{window.removeEventListener("message",ye)}),[]);const ye=Ie=>{var he;((he=Ie==null?void 0:Ie.data)==null?void 0:he.type)==="closePop"&&Fe()};return Le.createElement("div",{style:qe({},wt||{}),className:`${Zt&&qt.bgBlack} ${Pt?qt.wrp:"hide"}`},!!Pt&<&&Le.createElement("div",{id:"closePop",className:qt.close,ref:ct},!!At&&Le.createElement(at.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>ct.current},Le.createElement("span",{onClick:()=>{Fe(),At()}},Le.createElement("i",{className:"icon-yulanpizhu"}))),!$e&&window.parent===window&&Le.createElement(at.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>ct.current},Le.createElement("span",{onClick:le},Le.createElement("i",{className:"icon-quxiaozhiding"}))),Nt&&Le.createElement(at.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>ct.current},Le.createElement("span",{className:"",onClick:()=>{const Ie=document.getElementById("pdfiframe");window.addEventListener("message",Rt,!1),setTimeout(()=>{Ie.contentWindow.postMessage("getData","*")},300)}},Le.createElement("i",{className:"icon-baocun"}))),Le.createElement(at.Z,{title:"\u5173\u95ED",getPopupContainer:()=>ct.current},Le.createElement("span",{className:"",onClick:()=>{Fe()}},Le.createElement("i",{className:"icon-guanbi1"})))),Le.createElement("div",{className:`${qt[Je]} ${Je} ${qt.monaco} ${Pt==="txt"?"show":"hide"}`},Pt==="txt"&&Le.createElement(Le.Fragment,null,Le.createElement(rt.ZP,qe({},jt)))),Pt==="audio"&&Le.createElement("audio",{controls:!0,src:`${(yt==null?void 0:yt.indexOf("http://"))>-1||(yt==null?void 0:yt.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${yt}`,autoPlay:!0}),Pt==="video"&&Le.createElement(Le.Fragment,null,(yt==null?void 0:yt.indexOf("http"))>-1?Le.createElement("video",{controls:!0,src:`${yt}`,autoPlay:!0}):Le.createElement("video",{controls:!0,src:`data:video/mp4;base64,${yt}`,autoPlay:!0})),Pt==="office"&&Ze&&Le.createElement("iframe",{src:`${_t}/office.html?key=${Ze.key}&url=${btoa(Ze.url)}&callbackUrl=${In+(Ze.callbackUrl||"")}&fileType=${Ze.fileType}&title=${Ze.title||""}&model=${vt}&officeServer=${ce.Z.ONLYOFFICE}&disabledDownload=${!!$e}`}),Pt==="html"&&Le.createElement("iframe",{src:yt+"&disposition=inline"}),Pt==="pdf"&&Le.createElement("iframe",{id:"pdfiframe",src:`${_t}/js/pdf/index.html?filename=${St||"educoder.pdf"}&url=${encodeURIComponent(yt)}&disabledDownload=${!!$e}&model=${vt}`}),Pt==="image"&&Le.createElement("img",{src:`${(yt==null?void 0:yt.indexOf("http://"))>-1||(yt==null?void 0:yt.indexOf("https://"))>-1?"":"data:image/png;base64,"}${yt}`}),(Pt==="other"||Pt==="download")&&Le.createElement(Le.Fragment,null,Qt?Le.createElement(Pe.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:Le.createElement(Xe.ZP,{icon:Le.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:de,disabled:$e},"\u4E0B\u8F7D")}):Le.createElement(Xe.ZP,{type:"primary",size:"middle",onClick:de,disabled:$e},Le.createElement(Ht.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),Pt==="flowChart"&&Le.createElement("div",{className:"embed"},Le.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${yt||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},35883:function(gr,zn,pe){"use strict";pe.d(zn,{z:function(){return jt},Z:function(){return Je}});var oe=pe(59301),qt=pe(46214),Xe=pe(20047),Ht=pe(64018),rt=pe(16471),at=pe(14185),Dt=pe(76406),Me=pe(15342),Pe=pe(44104),ce=pe(7939),ke=pe(1012),Le=pe(86974),Ve=pe(59301),He=({html:wt})=>{const lt=(0,oe.useRef)(null),Fe=(0,oe.useRef)(null),Zt=`.markdown-body p {
|
|
|
margin: 0 0 16px 0 !important;
|
|
|
line-height: 28px;
|
|
|
white-space: pre-wrap;
|
|
|
}
|
|
|
|
|
|
ol,
|
|
|
ul,
|
|
|
li {
|
|
|
list-style-type: none
|
|
|
}
|
|
|
|
|
|
ol,
|
|
|
ul,
|
|
|
dl {
|
|
|
margin-bottom: 0px;
|
|
|
}
|
|
|
|
|
|
.markdown-body {
|
|
|
-ms-text-size-adjust: 100%;
|
|
|
-webkit-text-size-adjust: 100%;
|
|
|
color: #333;
|
|
|
overflow: hidden;
|
|
|
font-family: "Microsoft YaHei", Helvetica, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", "Monaco", monospace, Tahoma, STXihei, "\u534E\u6587\u7EC6\u9ED1", STHeiti, "Helvetica Neue", "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "\u5B8B\u4F53", Heiti, "\u9ED1\u4F53", sans-serif;
|
|
|
word-break: break-word;
|
|
|
font-size: 16px;
|
|
|
line-height: 1.6;
|
|
|
white-space: normal;
|
|
|
word-wrap: break-word;
|
|
|
position: relative;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul>li {
|
|
|
list-style-type: disc;
|
|
|
}
|
|
|
|
|
|
.markdown-body ol>li {
|
|
|
list-style-type: decimal;
|
|
|
}
|
|
|
|
|
|
.markdown-body a {
|
|
|
background: transparent;
|
|
|
}
|
|
|
|
|
|
.markdown-body a:active,
|
|
|
.markdown-body a:hover {
|
|
|
outline: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body strong {
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 {
|
|
|
font-size: 2em;
|
|
|
margin: 0.67em 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body img {
|
|
|
border: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body hr {
|
|
|
-moz-box-sizing: content-box;
|
|
|
box-sizing: content-box;
|
|
|
height: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre {
|
|
|
overflow: auto;
|
|
|
}
|
|
|
|
|
|
.markdown-body code,
|
|
|
.markdown-body kbd,
|
|
|
.markdown-body pre {
|
|
|
font-family: "Meiryo UI", "YaHei Consolas Hybrid", Consolas, "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace;
|
|
|
font-size: 1em;
|
|
|
}
|
|
|
|
|
|
.markdown-body input {
|
|
|
color: inherit;
|
|
|
font: inherit;
|
|
|
margin: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body html input[disabled] {
|
|
|
cursor: default;
|
|
|
}
|
|
|
|
|
|
.markdown-body input {
|
|
|
line-height: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body input[type="checkbox"] {
|
|
|
-moz-box-sizing: border-box;
|
|
|
box-sizing: border-box;
|
|
|
padding: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body table {
|
|
|
border-collapse: collapse;
|
|
|
border-spacing: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body td,
|
|
|
.markdown-body th {
|
|
|
padding: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body * {
|
|
|
-moz-box-sizing: border-box;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
|
|
|
.markdown-body input {
|
|
|
font: 13px/1.4 Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
|
|
|
}
|
|
|
|
|
|
.markdown-body a {
|
|
|
color: #4183c4;
|
|
|
text-decoration: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body a:hover,
|
|
|
.markdown-body a:active {
|
|
|
text-decoration: underline;
|
|
|
}
|
|
|
|
|
|
.markdown-body hr {
|
|
|
height: 0;
|
|
|
margin: 15px 0;
|
|
|
overflow: hidden;
|
|
|
background: transparent;
|
|
|
border: 0;
|
|
|
border-bottom: 1px solid #ddd;
|
|
|
}
|
|
|
|
|
|
.markdown-body hr:before {
|
|
|
display: table;
|
|
|
content: "";
|
|
|
}
|
|
|
|
|
|
.markdown-body hr:after {
|
|
|
display: table;
|
|
|
clear: both;
|
|
|
content: "";
|
|
|
}
|
|
|
|
|
|
.markdown-body h1,
|
|
|
.markdown-body h2,
|
|
|
.markdown-body h3,
|
|
|
.markdown-body h4,
|
|
|
.markdown-body h5,
|
|
|
.markdown-body h6 {
|
|
|
margin-top: 15px;
|
|
|
margin-bottom: 15px;
|
|
|
line-height: 1.1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 {
|
|
|
font-size: 30px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h2 {
|
|
|
font-size: 21px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h3 {
|
|
|
font-size: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h4 {
|
|
|
font-size: 14px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h5 {
|
|
|
font-size: 12px;
|
|
|
}
|
|
|
|
|
|
.markdown-body h6 {
|
|
|
font-size: 11px;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote {
|
|
|
margin: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol {
|
|
|
padding: 0;
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0;
|
|
|
}
|
|
|
|
|
|
ul.linenums,
|
|
|
ol.linenums {
|
|
|
padding: 16px 0 0 56px !important;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol {
|
|
|
padding-left: 2em;
|
|
|
}
|
|
|
|
|
|
|
|
|
.markdown-body ol ol,
|
|
|
.markdown-body ul ol {
|
|
|
list-style-type: lower-roman;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul ul ol,
|
|
|
.markdown-body ul ol ol,
|
|
|
.markdown-body ol ul ol,
|
|
|
.markdown-body ol ol ol {
|
|
|
list-style-type: lower-alpha;
|
|
|
}
|
|
|
|
|
|
.markdown-body dd {
|
|
|
margin-left: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body code {
|
|
|
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
|
font-size: 12px;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0;
|
|
|
font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
|
}
|
|
|
|
|
|
.markdown-body .octicon {
|
|
|
font: normal normal 16px octicons-anchor;
|
|
|
line-height: 1;
|
|
|
display: inline-block;
|
|
|
text-decoration: none;
|
|
|
-webkit-font-smoothing: antialiased;
|
|
|
-moz-osx-font-smoothing: grayscale;
|
|
|
-webkit-user-select: none;
|
|
|
-moz-user-select: none;
|
|
|
-ms-user-select: none;
|
|
|
user-select: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body .octicon-link:before {
|
|
|
content: '\f05c';
|
|
|
}
|
|
|
|
|
|
.markdown-body>*:first-child {
|
|
|
margin-top: 0 !important;
|
|
|
}
|
|
|
|
|
|
.markdown-body>*:last-child {
|
|
|
margin-bottom: 0 !important;
|
|
|
}
|
|
|
|
|
|
.markdown-body .anchor {
|
|
|
position: absolute;
|
|
|
top: 0;
|
|
|
left: 0;
|
|
|
display: block;
|
|
|
padding-right: 6px;
|
|
|
padding-left: 30px;
|
|
|
margin-left: -30px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .anchor:focus {
|
|
|
outline: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1,
|
|
|
.markdown-body h2,
|
|
|
.markdown-body h3,
|
|
|
.markdown-body h4,
|
|
|
.markdown-body h5,
|
|
|
.markdown-body h6 {
|
|
|
position: relative;
|
|
|
margin-top: 1em;
|
|
|
margin-bottom: 16px;
|
|
|
font-weight: bold;
|
|
|
line-height: 1.4;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 .octicon-link,
|
|
|
.markdown-body h2 .octicon-link,
|
|
|
.markdown-body h3 .octicon-link,
|
|
|
.markdown-body h4 .octicon-link,
|
|
|
.markdown-body h5 .octicon-link,
|
|
|
.markdown-body h6 .octicon-link {
|
|
|
display: none;
|
|
|
color: #000;
|
|
|
vertical-align: middle;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1:hover .anchor,
|
|
|
.markdown-body h2:hover .anchor,
|
|
|
.markdown-body h3:hover .anchor,
|
|
|
.markdown-body h4:hover .anchor,
|
|
|
.markdown-body h5:hover .anchor,
|
|
|
.markdown-body h6:hover .anchor {
|
|
|
padding-left: 8px;
|
|
|
margin-left: -30px;
|
|
|
text-decoration: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1:hover .anchor .octicon-link,
|
|
|
.markdown-body h2:hover .anchor .octicon-link,
|
|
|
.markdown-body h3:hover .anchor .octicon-link,
|
|
|
.markdown-body h4:hover .anchor .octicon-link,
|
|
|
.markdown-body h5:hover .anchor .octicon-link,
|
|
|
.markdown-body h6:hover .anchor .octicon-link {
|
|
|
display: inline-block;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 {
|
|
|
padding-bottom: 0.3em;
|
|
|
font-size: 2.25em;
|
|
|
line-height: 1.2;
|
|
|
border-bottom: 1px solid #eee;
|
|
|
}
|
|
|
|
|
|
.markdown-body h1 .anchor {
|
|
|
line-height: 1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h2 {
|
|
|
padding-bottom: 0.3em;
|
|
|
font-size: 1.75em;
|
|
|
line-height: 1.225;
|
|
|
border-bottom: 1px solid #eee;
|
|
|
}
|
|
|
|
|
|
.markdown-body h2 .anchor {
|
|
|
line-height: 1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h3 {
|
|
|
font-size: 1.5em;
|
|
|
line-height: 1.43;
|
|
|
}
|
|
|
|
|
|
.markdown-body h3 .anchor {
|
|
|
line-height: 1.2;
|
|
|
}
|
|
|
|
|
|
.markdown-body h4 {
|
|
|
font-size: 1.25em;
|
|
|
}
|
|
|
|
|
|
.markdown-body h4 .anchor {
|
|
|
line-height: 1.2;
|
|
|
}
|
|
|
|
|
|
.markdown-body h5 {
|
|
|
font-size: 1em;
|
|
|
}
|
|
|
|
|
|
.markdown-body h5 .anchor {
|
|
|
line-height: 1.1;
|
|
|
}
|
|
|
|
|
|
.markdown-body h6 {
|
|
|
font-size: 1em;
|
|
|
color: #777;
|
|
|
}
|
|
|
|
|
|
.markdown-body h6 .anchor {
|
|
|
line-height: 1.1;
|
|
|
}
|
|
|
|
|
|
.markdown-body p,
|
|
|
.markdown-body blockquote,
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol,
|
|
|
.markdown-body dl,
|
|
|
.markdown-body table,
|
|
|
.markdown-body pre {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body ul ul,
|
|
|
.markdown-body ul ol,
|
|
|
.markdown-body ol ol,
|
|
|
.markdown-body ol ul {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body li>p {
|
|
|
margin-top: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body dl {
|
|
|
padding: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body dl dt {
|
|
|
padding: 0;
|
|
|
margin-top: 16px;
|
|
|
font-size: 1em;
|
|
|
font-style: italic;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body dl dd {
|
|
|
padding: 0 16px;
|
|
|
margin-bottom: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote {
|
|
|
padding: 0 15px;
|
|
|
color: #777;
|
|
|
border-left: 4px solid #ddd;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote> :first-child {
|
|
|
margin-top: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body blockquote> :last-child {
|
|
|
margin-bottom: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body table {
|
|
|
display: block;
|
|
|
width: 100%;
|
|
|
overflow: auto;
|
|
|
word-break: normal;
|
|
|
word-break: keep-all;
|
|
|
}
|
|
|
|
|
|
.markdown-body table th {
|
|
|
font-weight: bold;
|
|
|
text-align: revert;
|
|
|
}
|
|
|
|
|
|
.markdown-body table th,
|
|
|
.markdown-body table td {
|
|
|
padding: 6px 13px;
|
|
|
border: 1px solid #ddd;
|
|
|
}
|
|
|
|
|
|
.markdown-body table tr {
|
|
|
background-color: #fff;
|
|
|
border-top: 1px solid #ccc;
|
|
|
}
|
|
|
|
|
|
.markdown-body table tr:nth-child(2n) {
|
|
|
background-color: #f8f8f8;
|
|
|
}
|
|
|
|
|
|
.markdown-body img {
|
|
|
max-width: 100%;
|
|
|
-moz-box-sizing: border-box;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
|
|
|
.markdown-body code {
|
|
|
padding: 0;
|
|
|
padding-top: 0.2em;
|
|
|
padding-bottom: 0.2em;
|
|
|
margin: 0;
|
|
|
font-size: 85%;
|
|
|
background-color: rgba(0, 0, 0, 0.04);
|
|
|
border-radius: 3px;
|
|
|
}
|
|
|
|
|
|
.markdown-body code:has(.katex) {
|
|
|
background-color: transparent;
|
|
|
}
|
|
|
|
|
|
.markdown-body code:before,
|
|
|
.markdown-body code:after {
|
|
|
letter-spacing: -0.2em;
|
|
|
content: "\\00a0";
|
|
|
}
|
|
|
|
|
|
.markdown-body pre>code {
|
|
|
padding: 0;
|
|
|
margin: 0;
|
|
|
font-size: 100%;
|
|
|
word-break: normal;
|
|
|
white-space: pre;
|
|
|
background: transparent;
|
|
|
border: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body .highlight {
|
|
|
margin-bottom: 16px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .highlight pre,
|
|
|
.markdown-body pre {
|
|
|
padding: 16px;
|
|
|
overflow: auto;
|
|
|
font-size: 85%;
|
|
|
line-height: 1.45;
|
|
|
background-color: #f7f7f7;
|
|
|
border-radius: 3px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .highlight pre {
|
|
|
margin-bottom: 0;
|
|
|
word-break: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre {
|
|
|
word-wrap: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre code {
|
|
|
display: inline;
|
|
|
max-width: initial;
|
|
|
padding: 0;
|
|
|
margin: 0;
|
|
|
overflow: initial;
|
|
|
line-height: inherit;
|
|
|
word-wrap: normal;
|
|
|
background-color: transparent;
|
|
|
border: 0;
|
|
|
}
|
|
|
|
|
|
.markdown-body pre code:before,
|
|
|
.markdown-body pre code:after {
|
|
|
content: normal;
|
|
|
}
|
|
|
|
|
|
.markdown-body kbd {
|
|
|
display: inline-block;
|
|
|
padding: 3px 5px;
|
|
|
font-size: 11px;
|
|
|
line-height: 10px;
|
|
|
color: #555;
|
|
|
vertical-align: middle;
|
|
|
background-color: #fcfcfc;
|
|
|
border: solid 1px #ccc;
|
|
|
border-bottom-color: #bbb;
|
|
|
border-radius: 3px;
|
|
|
box-shadow: inset 0 -1px 0 #bbb;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-c {
|
|
|
color: #969896;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-c1,
|
|
|
.markdown-body .pl-mdh,
|
|
|
.markdown-body .pl-mm,
|
|
|
.markdown-body .pl-mp,
|
|
|
.markdown-body .pl-mr,
|
|
|
.markdown-body .pl-s1 .pl-v,
|
|
|
.markdown-body .pl-s3,
|
|
|
.markdown-body .pl-sc,
|
|
|
.markdown-body .pl-sv {
|
|
|
color: #0086b3;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-e,
|
|
|
.markdown-body .pl-en {
|
|
|
color: #795da3;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-s1 .pl-s2,
|
|
|
.markdown-body .pl-smi,
|
|
|
.markdown-body .pl-smp,
|
|
|
.markdown-body .pl-stj,
|
|
|
.markdown-body .pl-vo,
|
|
|
.markdown-body .pl-vpf {
|
|
|
color: #333;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-ent {
|
|
|
color: #63a35c;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-k,
|
|
|
.markdown-body .pl-s,
|
|
|
.markdown-body .pl-st {
|
|
|
color: #a71d5d;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-pds,
|
|
|
.markdown-body .pl-s1,
|
|
|
.markdown-body .pl-s1 .pl-pse .pl-s2,
|
|
|
.markdown-body .pl-sr,
|
|
|
.markdown-body .pl-sr .pl-cce,
|
|
|
.markdown-body .pl-sr .pl-sra,
|
|
|
.markdown-body .pl-sr .pl-sre,
|
|
|
.markdown-body .pl-src {
|
|
|
color: #df5000;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mo,
|
|
|
.markdown-body .pl-v {
|
|
|
color: #1d3e81;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-id {
|
|
|
color: #b52a1d;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-ii {
|
|
|
background-color: #b52a1d;
|
|
|
color: #f8f8f8;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-sr .pl-cce {
|
|
|
color: #63a35c;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-ml {
|
|
|
color: #693a17;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mh,
|
|
|
.markdown-body .pl-mh .pl-en,
|
|
|
.markdown-body .pl-ms {
|
|
|
color: #1d3e81;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mq {
|
|
|
color: #008080;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mi {
|
|
|
color: #333;
|
|
|
font-style: italic;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mb {
|
|
|
color: #333;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-md,
|
|
|
.markdown-body .pl-mdhf {
|
|
|
background-color: #ffecec;
|
|
|
color: #bd2c00;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mdht,
|
|
|
.markdown-body .pl-mi1 {
|
|
|
background-color: #eaffea;
|
|
|
color: #55a532;
|
|
|
}
|
|
|
|
|
|
.markdown-body .pl-mdr {
|
|
|
color: #795da3;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
|
|
|
.markdown-body kbd {
|
|
|
display: inline-block;
|
|
|
padding: 3px 5px;
|
|
|
font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
|
line-height: 10px;
|
|
|
color: #555;
|
|
|
vertical-align: middle;
|
|
|
background-color: #fcfcfc;
|
|
|
border: solid 1px #ccc;
|
|
|
border-bottom-color: #bbb;
|
|
|
border-radius: 3px;
|
|
|
box-shadow: inset 0 -1px 0 #bbb;
|
|
|
}
|
|
|
|
|
|
.markdown-body .task-list-item {
|
|
|
list-style-type: none;
|
|
|
}
|
|
|
|
|
|
.markdown-body .task-list-item+.task-list-item {
|
|
|
margin-top: 3px;
|
|
|
}
|
|
|
|
|
|
.markdown-body .task-list-item input {
|
|
|
float: left;
|
|
|
margin: 0.3em 0 0.25em -1.6em;
|
|
|
vertical-align: middle;
|
|
|
}
|
|
|
|
|
|
.markdown-body :checked+.radio-label {
|
|
|
z-index: 1;
|
|
|
position: relative;
|
|
|
border-color: #4183c4;
|
|
|
}
|
|
|
|
|
|
|
|
|
/*! Pretty printing styles. Used with prettify.js. */
|
|
|
/* SPAN elements with the classes below are added by prettyprint. */
|
|
|
.pln {
|
|
|
color: #000
|
|
|
}
|
|
|
|
|
|
/* plain text */
|
|
|
|
|
|
@media screen {
|
|
|
.str {
|
|
|
color: #080
|
|
|
}
|
|
|
|
|
|
/* string content */
|
|
|
.kwd {
|
|
|
color: #008
|
|
|
}
|
|
|
|
|
|
/* a keyword */
|
|
|
.com {
|
|
|
color: #800
|
|
|
}
|
|
|
|
|
|
/* a comment */
|
|
|
.typ {
|
|
|
color: #606
|
|
|
}
|
|
|
|
|
|
/* a type name */
|
|
|
.lit {
|
|
|
color: #066
|
|
|
}
|
|
|
|
|
|
/* a literal value */
|
|
|
/* punctuation, lisp open bracket, lisp close bracket */
|
|
|
.pun,
|
|
|
.opn,
|
|
|
.clo {
|
|
|
color: #660
|
|
|
}
|
|
|
|
|
|
.tag {
|
|
|
color: #008
|
|
|
}
|
|
|
|
|
|
/* a markup tag name */
|
|
|
.atn {
|
|
|
color: #606
|
|
|
}
|
|
|
|
|
|
/* a markup attribute name */
|
|
|
.atv {
|
|
|
color: #080
|
|
|
}
|
|
|
|
|
|
/* a markup attribute value */
|
|
|
.dec,
|
|
|
.var {
|
|
|
color: #606
|
|
|
}
|
|
|
|
|
|
/* a declaration; a variable name */
|
|
|
.fun {
|
|
|
color: red
|
|
|
}
|
|
|
|
|
|
/* a function name */
|
|
|
}
|
|
|
|
|
|
/* Use higher contrast and text-weight for printable form. */
|
|
|
@media print,
|
|
|
projection {
|
|
|
.str {
|
|
|
color: #060
|
|
|
}
|
|
|
|
|
|
.kwd {
|
|
|
color: #006;
|
|
|
font-weight: bold
|
|
|
}
|
|
|
|
|
|
.com {
|
|
|
color: #600;
|
|
|
font-style: italic
|
|
|
}
|
|
|
|
|
|
.typ {
|
|
|
color: #404;
|
|
|
font-weight: bold
|
|
|
}
|
|
|
|
|
|
.lit {
|
|
|
color: #044
|
|
|
}
|
|
|
|
|
|
.pun,
|
|
|
.opn,
|
|
|
.clo {
|
|
|
color: #440
|
|
|
}
|
|
|
|
|
|
.tag {
|
|
|
color: #006;
|
|
|
font-weight: bold
|
|
|
}
|
|
|
|
|
|
.atn {
|
|
|
color: #404
|
|
|
}
|
|
|
|
|
|
.atv {
|
|
|
color: #060
|
|
|
}
|
|
|
}
|
|
|
|
|
|
/* Put a border around prettyprinted code snippets. */
|
|
|
pre.prettyprint {
|
|
|
padding: 2px;
|
|
|
/* border: 1px solid #888 */
|
|
|
}
|
|
|
|
|
|
/* Specify class=linenums on a pre to get line numbering */
|
|
|
ol.linenums {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 0
|
|
|
}
|
|
|
|
|
|
/* IE indents via margin-left */
|
|
|
li.L0,
|
|
|
li.L1,
|
|
|
li.L2,
|
|
|
li.L3,
|
|
|
li.L5,
|
|
|
li.L6,
|
|
|
li.L7,
|
|
|
li.L8 {
|
|
|
list-style-type: none
|
|
|
}
|
|
|
|
|
|
/* Alternate shading for lines */
|
|
|
li.L1,
|
|
|
li.L3,
|
|
|
li.L5,
|
|
|
li.L7,
|
|
|
li.L9 {
|
|
|
background: #eee
|
|
|
}
|
|
|
|
|
|
.markdown-body p,
|
|
|
.markdown-body blockquote,
|
|
|
.markdown-body ul,
|
|
|
.markdown-body ol,
|
|
|
.markdown-body dl,
|
|
|
.markdown-body table,
|
|
|
.markdown-body pre {
|
|
|
margin-top: 0;
|
|
|
margin-bottom: 16px;
|
|
|
}`;return(0,oe.useEffect)(()=>{const $e=lt.current.attachShadow({mode:"open"});Fe.current=document.createElement("div"),Fe.current.className="markdown-body",Fe.current.innerHTML=wt,$e.appendChild(Fe.current);const At=document.createElement("style");return At.textContent=Zt,$e.appendChild(At),()=>{$e.innerHTML=""}},[]),(0,oe.useEffect)(()=>{Fe.current&&(Fe.current.innerHTML=wt)},[wt]),Ve.createElement("div",{ref:lt})};function Ge(wt){const lt=["onabort","onanimationend","onanimationiteration","onanimationstart","onauxclick","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncopy","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitionend","onvolumechange","onwaiting","onwheel"],Fe=new RegExp(`\\b(${lt.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi"),Zt=/<meta\s+http-equiv\s*=\s*["']?refresh["']?[^>]*>/gi;return wt.replace(Fe,"").replace(Zt,"").trim()}var ze={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},qe=Object.defineProperty,pt=Object.getOwnPropertySymbols,Bt=Object.prototype.hasOwnProperty,vt=Object.prototype.propertyIsEnumerable,yt=(wt,lt,Fe)=>lt in wt?qe(wt,lt,{enumerable:!0,configurable:!0,writable:!0,value:Fe}):wt[lt]=Fe,Nt=(wt,lt)=>{for(var Fe in lt||(lt={}))Bt.call(lt,Fe)&&yt(wt,Fe,lt[Fe]);if(pt)for(var Fe of pt(lt))vt.call(lt,Fe)&&yt(wt,Fe,lt[Fe]);return wt};const Et="@\u2581\u2581@",pn="@\u2581@",Pt=/<pre[^>]*>/g;function St(wt){let lt=document.createElement("div");return lt.innerHTML=wt,lt.childNodes.length===0?"":lt.childNodes[0].nodeValue}const jt=(wt,lt)=>{wt=wt||"";const Fe=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Zt=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,$e=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,At=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return lt?wt.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(Fe,(Qt,Te,xe,It,Cn,mn,Ze)=>{const Ct=Te||It||mn,_t=xe||Cn||Ze||"?";return at.Z.API_SERVER+"/api/attachments/"+Ct+_t+"&t="+(0,Dt.Jn)(Ct,Date.now())+(Qt.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(wt=wt.replace(At,(Qt,Te,xe,It,Cn,mn,Ze)=>{const Ct=Te||It||mn,_t=xe||Cn||Ze||"?";return at.Z.API_SERVER+"/attachments/download/"+Ct+_t+"&t="+(0,Dt.Jn)(Ct,Date.now())+(Qt.indexOf(")")>-1?")":"&")}).replace(Fe,(Qt,Te,xe,It,Cn,mn,Ze)=>{const Ct=Te||It||mn,_t=xe||Cn||Ze||"?";return at.Z.API_SERVER+"/api/attachments/"+Ct+_t+"&t="+(0,Dt.Jn)(Ct,Date.now())+(Qt.indexOf(")")>-1?")":"&")}).replace(Zt,(Qt,Te,xe,It,Cn)=>{const mn=Te||It,Ze=xe||Cn||"";return'"'+at.Z.API_SERVER+"/api/attachments/"+mn+Ze+mn+Ze+"&t="+(0,Dt.Jn)(mn,Date.now())}).replace($e,(Qt,Te,xe,It,Cn)=>{const mn=Te||It,Ze=xe||Cn||"";return"("+at.Z.API_SERVER+"/files/uploads/"+mn+Ze+mn+Ze+"&t="+(0,Dt.Jn)(mn,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 Je=({value:wt="",edit:lt=!1,className:Fe,showTextOnly:Zt,showLines:$e,style:At={},stylesPrev:Qt={},highlightKeywords:Te,showProgramFill:xe,isProgramFill:It,disabledFill:Cn=!1,programFillValue:mn,openEditor:Ze=()=>{},onFillChange:Ct=xn=>{},onFillBlur:_t=()=>{},onFillFocus:In=()=>{}})=>{let xn=Ge(String(wt||""));const Wn=(0,oe.useRef)(),ct=(0,oe.useRef)(),[En,Rt]=(0,oe.useState)(""),[be,de]=(0,oe.useState)("office"),[le,ye]=(0,oe.useState)([]),Ie=(0,oe.useRef)("a"+(0,ke.Z)()),he={},We=un=>/<style[\s\S]*?>/i.test(un||""),tt=(un,ir,Xn)=>{const Ft=document.createElement(un===pn?"input":"textarea");Ft.style.width="100%",Ft.style.height=un===pn?"40px":"151px",Ft.rows=5,Ft.spellcheck=!1,Ft.name="edu-program-fill",Ft.placeholder="\u8BF7\u8F93\u5165",Ft.dataset.id=ir;const An=Object.keys(he).length;return he[An]=Ft,`<span class="edu-program-fill-wrap ${un===pn?"":"show"}" style="width:${un===pn?"600px":"100%"}" title=${Xn||""}><span>${Ft.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function dn(un){return un=un.replace(/!\[.*?\]\(.*?\)/g,""),un=un.replace(/\[.*?\]\(.*?\)/g,""),un=un.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),un=un.replace(/<embed.*?>/g,""),un=un.replace(/<img.*?>/g,""),un=un.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),un=un.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),un=un.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),un=un.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),un}const ut=un=>!Zt&&We(xn)?un:un.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(ir,Xn){let Ft=Xn.replace(/(\n|\r)/g,"").split("}"),An=[];return Ft.map(Qn=>{Qn!=""&&An.push(`.${Ie.current} ${Qn}`)}),`<style>${An.join("}")}</style>`}),zt=(0,oe.useMemo)(()=>{(0,Xe.Iy)();try{const Ft=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,An=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Qn=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Jn=/\(\/attachments\/download\//g;xn=xn.replace(Jn,"("+at.Z.API_SERVER+"/attachments/download/").replace(Ft,"("+at.Z.API_SERVER+"/api/attachments/").replace(An,'"'+at.Z.API_SERVER+"/api/attachments/").replace(Qn,'"'+at.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,`
|
|
|
`),Wn.current.style.display="none"}catch(Ft){}if(xe){let Ft=-1;return xn=xn.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(An,Qn,Jn){var nt;return++Ft,tt(An,Ft,(nt=mn==null?void 0:mn[Ft])==null?void 0:nt.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${ut(xn||"")}</pre>`}let un=ut(xn);un=(0,Xe.ZP)(un);const ir=(0,Xe.ez)();xn.match(/\[TOC\]/)&&(un=un.replace("<p>[TOC]</p>",(0,Xe.Qv)()),(0,Xe.Iy)()),un=un.replace(/(__special_katext_id_\d+__)/g,(Ft,An)=>{const{type:Qn,expression:Jn}=ir[An];return(0,Me.renderToString)(St(Jn)||"",{displayMode:Qn==="block",throwOnError:!1,output:"html"})}),un=un.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,Xe.AL)();const Xn=document.createElement("div");if(Xn.innerHTML=un,Zt)return Xn.innerText;if(Te){const Ft=Te.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return ar(Xn,Ft),Xn.innerHTML}return setTimeout(()=>ln(),500),Xn.innerHTML},[xn,Te]);(0,oe.useEffect)(()=>{Mt.current&&Mt.current.querySelectorAll(["input","textarea"]).forEach(ir=>{ir.oninput=en,ir.onblur=Sn,ir.onfocus=yn})},[le]),(0,oe.useEffect)(()=>{var un,ir,Xn,Ft,An;if(mn!=null&&mn.length)try{const Qn=Mt.current.querySelectorAll(".edu-program-fill-score"),Jn=Mt.current.querySelectorAll('[name="edu-program-fill"]');for(const[nt,gt]of Jn.entries())gt.value=((un=mn==null?void 0:mn[nt])==null?void 0:un.value)||"",((ir=mn==null?void 0:mn[nt])==null?void 0:ir.type)==="warning"?gt.className="program-fill-warning":((Xn=mn==null?void 0:mn[nt])==null?void 0:Xn.type)==="success"?gt.className="program-fill-success":gt.className="";for(const[nt,gt]of Qn.entries())gt.innerHTML=(Ft=mn==null?void 0:mn[nt])!=null&&Ft.score?`${(An=mn==null?void 0:mn[nt])==null?void 0:An.score}\u5206`:"";ye(mn)}catch(Qn){console.log(Qn,"error")}},[mn]);const en=un=>{le[un.target.dataset.id]=le[un.target.dataset.id]||{},le[un.target.dataset.id].value=un.target.value,ye([...le]),Ct(le,un.target.dataset.id)},Sn=un=>{le[un.target.dataset.id]=le[un.target.dataset.id]||{},le[un.target.dataset.id].value=un.target.value,ye([...le]),_t(le,un.target.dataset.id)},yn=un=>{le[un.target.dataset.id]=le[un.target.dataset.id]||{},le[un.target.dataset.id].value=un.target.value,ye([...le]),In(le,un.target.dataset.id)};function ar(un,ir){return un.childNodes.forEach(Xn=>{var Ft;if(Xn.childNodes.length>0)ar(Xn,ir);else if(Xn.nodeName!=="IMG")if(Xn.innerHTML)Xn.innerHTML=(Ft=Xn.innerHTML)==null?void 0:Ft.replace(new RegExp(ir,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const An=document.createElement("span");An.innerHTML=Xn.textContent.replace(new RegExp(ir,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Xn.replaceWith(An)}})}const Mt=(0,oe.useRef)();Xe.jb.WebkitLineClamp=$e,$e&&(At=Nt(Nt({},At),Xe.jb));function nn(un){let ir=un.target;if(ir.tagName.toUpperCase()==="A"){let Xn=ir.getAttribute("href");if(Xn.indexOf("office")>-1)un.preventDefault(),Rt(Xn),de("office");else if(Xn.indexOf("application/pdf")>-1)un.preventDefault(),Rt(Xn),de("pdf");else if(Xn.indexOf("text/html")>-1)un.preventDefault(),Rt(Xn),de("html");else if(Xn.startsWith("#")){un.preventDefault();let Ft=document.getElementById(Xn.replace("#",""));Ft&&Ft.scrollIntoView(!0)}}}const ln=()=>{var un;const ir=(un=Mt.current)==null?void 0:un.querySelectorAll("video");ir==null||ir.forEach(Xn=>{if(Xn.oncontextmenu=()=>!1,Xn.src.indexOf(".m3u8")>-1&&!Xn.canPlayType("application/vnd.apple.mpegurl")){if(rt.ZP.isSupported()){var Ft=new rt.ZP;Ft.loadSource(Xn.src),Ft.attachMedia(Xn)}}})};(0,oe.useEffect)(()=>{if(Mt.current&&zt&&zt.match(Pt)&&window.PR.prettyPrint(),Mt.current)return Mt.current.addEventListener("click",nn),()=>{var un;(un=Mt.current)==null||un.removeEventListener("click",nn),(0,Xe.AL)(),(0,Xe.Iy)()}},[zt,Mt.current,nn]);const Un=un=>{un.target.nodeName==="IMG"&&un.target.className.indexOf("draw-flowchart")>-1?(Wn.current.style.zIndex=1,Wn.current.style.display="flex",Wn.current.style.width=un.target.clientWidth+"px",Wn.current.style.height=un.target.clientHeight+"px",Wn.current.style.top=un.target.offsetTop+"px",Wn.current.style.left=un.target.offsetLeft+"px",un.target.id&&(ct.current=un.target.id)):Wn.current.style.display="none"},Nn=()=>{Wn.current.style.display="none"};return(0,oe.useEffect)(()=>{var un;const ir=Xn=>{Xn.preventDefault(),Xn.clipboardData.setData("text",window.getSelection().toString())};return(un=Mt.current)==null||un.addEventListener("copy",ir),()=>{var Xn;(Xn=Mt.current)==null||Xn.removeEventListener("copy",ir)}},[Mt.current]),oe.createElement("div",{style:{position:"relative"},onMouseLeave:Nn},Zt&&oe.createElement("div",{ref:Mt,className:`${ze.mdBody} `},zt),!Zt&&!We(zt)&&oe.createElement("div",{ref:Mt,style:Nt({},At),onMouseOver:Un,className:`${Fe||""} ${Cn?"disabled-fill":""} markdown-body ${ze.mdBody} ${Ie.current}`,dangerouslySetInnerHTML:{__html:zt}}),!Zt&&We(zt)&&oe.createElement(He,{html:zt}),oe.createElement("div",{ref:Wn,className:`${ze.button} ${lt?"":ze.previewFlowChart}`},oe.createElement(Pe.Z,null,oe.createElement(ce.ZP,{onClick:()=>{lt?Ze(ct.current):(Rt(ct.current),de("flowChart"))}},lt?"\u7F16\u8F91":"\u9884\u89C8"))),oe.createElement(Le.Z,{close:!0,data:En,type:En!=null&&En.length?be:"",style:Nt({},Qt),onClose:()=>Rt("")}))}},28267:function(gr,zn,pe){"use strict";pe.d(zn,{h:function(){return vt}});var oe=pe(59301),qt=pe(82326),Xe=pe(28284),Ht=pe(7939),rt=pe(89780),at=pe.n(rt),Dt=pe(88319),Me=pe(94896),Pe=Object.defineProperty,ce=Object.defineProperties,ke=Object.getOwnPropertyDescriptors,Le=Object.getOwnPropertySymbols,Ve=Object.prototype.hasOwnProperty,Ke=Object.prototype.propertyIsEnumerable,He=(yt,Nt,Et)=>Nt in yt?Pe(yt,Nt,{enumerable:!0,configurable:!0,writable:!0,value:Et}):yt[Nt]=Et,Ge=(yt,Nt)=>{for(var Et in Nt||(Nt={}))Ve.call(Nt,Et)&&He(yt,Et,Nt[Et]);if(Le)for(var Et of Le(Nt))Ke.call(Nt,Et)&&He(yt,Et,Nt[Et]);return yt},ze=(yt,Nt)=>ce(yt,ke(Nt));const qe=qt.default.Option,pt={labelCol:{span:4},wrapperCol:{span:20}},Bt={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"]};zn.Z=({callback:yt,onCancel:Nt})=>{const[Et,pn]=(0,oe.useState)("python");function Pt(jt){pn(Bt[jt][1])}function St(jt){yt(jt)}return oe.createElement(Xe.default,ze(Ge({},pt),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:St,style:{width:500}}),oe.createElement(Xe.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},oe.createElement(qt.default,{getPopupContainer:jt=>jt.parentNode,onChange:Pt},Object.keys(Bt).map(jt=>oe.createElement(qe,{key:jt,value:jt},Bt[jt][0])))),oe.createElement(Xe.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},oe.createElement(vt,{mode:Et})),oe.createElement("div",{className:"flex-container flex-end"},oe.createElement(Ht.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),oe.createElement(Ht.ZP,{type:"ghost",onClick:Nt},"\u53D6\u6D88")))};function vt({value:yt,onChange:Nt,mode:Et,options:pn={}}){const Pt=(0,oe.useRef)(),[St,jt]=(0,oe.useState)();return(0,oe.useEffect)(()=>{if(St){let Je=function(wt){const lt=wt.getValue();Nt&&Nt(lt)};return St.on("change",Je),()=>{St.off("change",Je)}}},[St,Nt]),(0,oe.useEffect)(()=>{St&&St.setOption("mode",Et)},[St,Et]),(0,oe.useEffect)(()=>{St&&(yt!==St.getValue()||yt==="")&&setTimeout(()=>{St.setValue(yt||"")},300)},[St,yt]),(0,oe.useEffect)(()=>{if(Pt.current&&!St){const Je=at().fromTextArea(Pt.current,Ge({mode:Et,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},pn));jt(Je)}},[Pt.current,St]),oe.createElement("div",{className:"my-codemirror-container"},oe.createElement("textarea",{ref:Pt}))}},39116:function(gr,zn,pe){"use strict";pe.d(zn,{Z:function(){return _n}});var oe=pe(59301),qt=pe(44283),Xe=pe(89780),Ht=pe.n(Xe),rt=pe(76374),at=pe(88319),Dt=pe(6313),Me=pe(25717),Pe=pe(99498),ce=pe(25419),ke=pe(67549),Le=pe(35883),Ve=({value:Ln="",className:mr,showTextOnly:cr,showLines:pr,style:Rr={}})=>{const Wr=(0,oe.useMemo)(()=>"",[Ln]);return oe.createElement(oe.Fragment,null,oe.createElement("div",{dangerouslySetInnerHTML:{__html:Wr}}))},Ke=Object.defineProperty,He=Object.defineProperties,Ge=Object.getOwnPropertyDescriptors,ze=Object.getOwnPropertySymbols,qe=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable,Bt=(Ln,mr,cr)=>mr in Ln?Ke(Ln,mr,{enumerable:!0,configurable:!0,writable:!0,value:cr}):Ln[mr]=cr,vt=(Ln,mr)=>{for(var cr in mr||(mr={}))qe.call(mr,cr)&&Bt(Ln,cr,mr[cr]);if(ze)for(var cr of ze(mr))pt.call(mr,cr)&&Bt(Ln,cr,mr[cr]);return Ln},yt=(Ln,mr)=>He(Ln,Ge(mr));let Nt=[{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 Et({onActionCallback:Ln,title:mr,icon:cr,actionName:pr,className:Rr="",children:Wr}){function Gr(){Ln(pr)}return oe.createElement("a",{title:mr,className:Rr,onClick:Gr},oe.createElement("i",{className:`${cr}`}),Wr)}var pn=({watch:Ln,showNullButton:mr,showNullProgramButton:cr,onActionCallback:pr,fullScreen:Rr,insertTemp:Wr,hidetoolBar:Gr,extraUse:ai})=>{const ti=[...Nt,{title:`${Ln?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Ln?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return oe.createElement("ul",{className:"markdown-toolbar-container"},!Gr&&ti.map((xi,mi)=>oe.createElement("li",{key:mi},xi.actionName?oe.createElement(Et,yt(vt({},xi),{onActionCallback:pr})):oe.createElement("span",{className:"v-line"}))),mr?oe.createElement("li",null,oe.createElement(Et,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:pr},oe.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,cr?oe.createElement(oe.Fragment,null,oe.createElement("li",null,oe.createElement(Et,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:pr},oe.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),oe.createElement("li",null,oe.createElement(Et,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:pr},oe.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,Wr&&oe.createElement("li",null,oe.createElement(Et,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Wr}`,onActionCallback:pr},oe.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),ai&&oe.createElement("li",null,ai),oe.createElement("li",{className:"btn-full-screen"},oe.createElement(Et,{icon:`${Rr?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Rr?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:pr})))},Pt=pe(88487),St=pe(28284),jt=pe(37568),Je=pe(7939),wt=Object.defineProperty,lt=Object.defineProperties,Fe=Object.getOwnPropertyDescriptors,Zt=Object.getOwnPropertySymbols,$e=Object.prototype.hasOwnProperty,At=Object.prototype.propertyIsEnumerable,Qt=(Ln,mr,cr)=>mr in Ln?wt(Ln,mr,{enumerable:!0,configurable:!0,writable:!0,value:cr}):Ln[mr]=cr,Te=(Ln,mr)=>{for(var cr in mr||(mr={}))$e.call(mr,cr)&&Qt(Ln,cr,mr[cr]);if(Zt)for(var cr of Zt(mr))At.call(mr,cr)&&Qt(Ln,cr,mr[cr]);return Ln},xe=(Ln,mr)=>lt(Ln,Fe(mr));const It={labelCol:{span:4},wrapperCol:{span:20}};var Cn=({callback:Ln,onCancel:mr})=>{function cr(pr){Ln(pr)}return oe.createElement(St.default,xe(Te({},It),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:cr,style:{width:500}}),oe.createElement(St.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},oe.createElement(jt.default,null)),oe.createElement(St.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},oe.createElement(jt.default,null)),oe.createElement("div",{className:"flex-container flex-end"},oe.createElement(Je.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),oe.createElement(Je.ZP,{type:"ghost",onClick:mr},"\u53D6\u6D88")))},mn=pe(28267),Ze=pe(53332),Ct=pe(62957),_t=pe(77019),In=pe(40254),xn=pe(59301),Wn=({callback:Ln,onCancel:mr})=>{const cr=document.createElement("canvas"),pr=cr.getContext("2d");cr.width=1e3,cr.height=800,pr.fillStyle="#ffffff",pr.fillRect(0,0,cr.width,cr.height);const Rr=cr.toDataURL("image/png");return xn.createElement(Ct.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},xn.createElement(_t.Z,{style:{height:"100vh"}},xn.createElement(In.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Rr,visible:!0,title:String(Date.now())},onOk:Wr=>{Ln({src:Wr.url})},onClose:mr})))},ct=pe(36207),En=pe(5269),Rt=pe(6767),be={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re",drawerWrap:"drawerWrap___MfDw8"},de=pe(59301),ye=(0,oe.forwardRef)(({onCancel:Ln,editImgId:mr,callback:cr},pr)=>{let Rr=(0,oe.useRef)(),Wr=(0,oe.useRef)(),Gr=(0,oe.useRef)(),ai=(0,oe.useRef)(!1);const ti=(0,oe.useRef)(!1);console.log("ref:",pr);const[xi,mi]=(0,oe.useState)(0),[Xt,Kn]=(0,oe.useState)("100vh");return(0,oe.useEffect)(()=>{mi(1)},[]),(0,oe.useImperativeHandle)(pr,()=>({setHeight:Kn})),de.createElement("div",{ref:ti,className:"body-overflow-initial"},de.createElement(ct.Z,{width:"100vw",height:Xt,footer:null,closable:!0,placement:"bottom",open:!!xi,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${be.drawerWrap}`,onClose:()=>{window.saveDrawData(Lr=>{cr({src:`/api/attachments/${Lr}`,id:Lr})})},title:de.createElement(_t.Z,{align:"middle"},de.createElement(En.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),de.createElement(En.Z,{onClick:()=>{Kn(Xt==="60px"?"100vh":"60px")}},de.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),de.createElement(En.Z,{onClick:()=>{window.saveDrawData(Lr=>{if(Lr===null){Rt.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}Rt.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),cr({src:`/api/attachments/${Lr}`,id:Lr,disabledClose:!0})})}},de.createElement(Je.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},de.createElement("iframe",{src:`/drawio/src/main/webapp/?id=${mr||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:Wr})))}),Ie=pe(14185),he=pe(47889),We=pe(4875);const tt=he.ZP.Group,dn={margin:"0 8px"};var ut=({callback:Ln,onCancel:mr})=>{function cr(pr){Ln(pr)}return oe.createElement(St.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:cr},oe.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},oe.createElement("span",{style:dn},"\u5355\u5143\u683C\u6570\uFF1A"),oe.createElement("span",{style:dn},"\u884C\u6570"),oe.createElement(St.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},oe.createElement(We.Z,null)),oe.createElement("span",{style:dn},"\u5217\u6570"),oe.createElement(St.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},oe.createElement(We.Z,null))),oe.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},oe.createElement("span",{style:dn},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),oe.createElement(St.default.Item,{name:"align"},oe.createElement(tt,null,oe.createElement(he.ZP,{value:"default"},oe.createElement("i",{className:"fa fa-align-justify"})),oe.createElement(he.ZP,{value:"left"},oe.createElement("i",{className:"fa fa-align-left"})),oe.createElement(he.ZP,{value:"center"},oe.createElement("i",{className:"fa fa-align-center"})),oe.createElement(he.ZP,{value:"right"},oe.createElement("i",{className:"fa fa-align-right"}))))),oe.createElement("div",{className:"flex-container flex-end"},oe.createElement(Je.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),oe.createElement(Je.ZP,{type:"ghost",onClick:mr},"\u53D6\u6D88")))},zt=pe(58755),en=pe(84915),Sn=pe.n(en),ar=(0,oe.forwardRef)(({use3d:Ln,width:mr,height:cr,callback:pr,showSaveButton:Rr},Wr)=>{const Gr=(0,oe.useRef)(),ai=(0,oe.useRef)(),[ti,xi]=(0,oe.useState)(!1),mi=(0,oe.useRef)({id:Gr,appName:"graphing",width:mr||1e3,height:cr||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,oe.useEffect)(()=>{ai.current=new(Sn())(mi.current,!0),window.onload=function(){ai.current.inject("applet_container")}},[]);const Xt=()=>{var Kn=window.ggbApplet.getPNGBase64(1,!0,72);return pr&&pr(Kn),Kn};return(0,oe.useEffect)(()=>{mi.current.appName=ti?"3D":"graphing",ai.current.inject("applet_container")},[ti]),(0,oe.useEffect)(()=>{xi(Ln)},[Ln]),(0,oe.useImperativeHandle)(Wr,()=>({getImgData:Xt})),oe.createElement(oe.Fragment,null,oe.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:Gr}),oe.createElement(_t.Z,{align:"middle"},oe.createElement(En.Z,{flex:1},oe.createElement(zt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:ti,onChange:Kn=>xi(Kn)})),oe.createElement(En.Z,null,oe.createElement(Je.ZP,{size:"large",onClick:Xt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Mt=pe(9057);const nn="link",ln="upload-image",Un="add-flowchart",Nn="draw-image",un="add-flowchart",ir="code-block",Xn="add-table",Ft="------------",An={default:Ft,left:`:${Ft}`,center:`:${Ft}:`,right:`${Ft}:`};var Qn=pe(79006),Jn=pe(76406);function nt(){}let gt=0;const Kt=1e4,vn="\u2581",Rn="@\u2581\u2581@",hr="@\u2581@",$r=`
|
|
|
**\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`,Xr=["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 vr(Ln){return/^\d+$/.test(Ln)?`${Ln}px`:Ln}const Dr=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",rr={[Dr+"-B"]:"bold",[Dr+"-I"]:"italic"},Tn={[nn]:"\u6DFB\u52A0\u94FE\u63A5",[ir]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[ln]:"\u6DFB\u52A0\u56FE\u7247",[Nn]:"\u6DFB\u52A0\u753B\u56FE",[Un]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Xn]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var _n=({defaultValue:Ln="",onChange:mr,width:cr="100%",height:pr=400,miniToolbar:Rr=!1,isFocus:Wr=!1,watch:Gr,insertTemp:ai,mode:ti="markdown",id:xi="markdown-editor-id",showResizeBar:mi=!1,noStorage:Xt=!1,showNullButton:Kn=!1,showNullProgramButton:Lr=!1,hidetoolBar:wr=!1,fullScreen:Lt=!1,onBlur:Vt,onCMBeforeChange:ot,onFullScreen:kt,className:ft="",disablePaste:Gt=!1,disabled:Fn=!1,disabledFill:xr=!1,placeholder:Or="",values:kr="",extraUse:dr,onAddBlank:Zn})=>{const[Mn,Ur]=(0,oe.useState)(null),[si,ei]=(0,oe.useState)(Ln),[Ai,Ki]=(0,oe.useState)(Gr),[Vi,eo]=(0,oe.useState)(Lt),[Di,bi]=(0,oe.useState)(""),[Fi,ki]=(0,oe.useState)(0),[uo,Zi]=(0,oe.useState)(pr),[co,oo]=(0,oe.useState)(!1),[Yi,Xi]=(0,oe.useState)(0),[Oo,go]=(0,oe.useState)(0),bo=(0,oe.useRef)(),Po=(0,oe.useRef)(),Ho=(0,oe.useRef)(),$i=(0,oe.useRef)(),Bo=(0,oe.useRef)(),Pi=(0,oe.useRef)(),Ko=(0,qt.useDispatch)();(0,oe.useEffect)(()=>{const Fr=window.scrollY||window.pageYOffset;ei(kr),Mn==null||Mn.setValue(kr),window.scrollTo(0,Fr)},[kr]),(0,oe.useEffect)(()=>{kt==null||kt(Vi)},[Vi]),(0,oe.useEffect)(()=>{if(bo.current){let Fr=function(fi,vi){var to;if(Gt){vi.preventDefault();return}const Zo=vi.clipboardData;if(Zo){const Do=Zo.types.toString(),ra=Zo.items;if(Do==="Files"||Zo.types.indexOf("Files")>-1){if(vi.preventDefault(),ti=="stex")return;try{let ea=ra[1];((to=ra[0])==null?void 0:to.kind)==="file"&&(ea=ra[0]);const va=ea.getAsFile(),Aa=va.name.split(".").pop();(0,Ze.I)(va,Ro=>{var Ia,qa,mA;Ro.id?((Ia=va==null?void 0:va.type)==null?void 0:Ia.indexOf("image"))>-1?zr.replaceSelection(`<img width="100%" src="/api/attachments/${Ro.id}?type=${Ro.content_type})" alt="" />`):((qa=va==null?void 0:va.type)==null?void 0:qa.indexOf("video"))>-1?zr.replaceSelection(`<video width="100%" controls src="/api/attachments/${Ro.id}"></video>`):((mA=va==null?void 0:va.type)==null?void 0:mA.indexOf("pdf"))>-1?zr.replaceSelection(`<a href="/api/attachments/${Ro.id}?type=${va.type}&disposition=inline" target="_blank">${va.name}</a>`):Xr.includes(Aa)?zr.replaceSelection(`<a href="/api/attachments/${Ro.id}?type=office&disposition=inline" target="_blank">${va.name}</a>`):zr.replaceSelection(`[${va.name}](/api/attachments/${Ro.id}?type=${Ro.content_type})`):(Ro==null?void 0:Ro.status)===401&&(document.location.href="/user/login")})}catch(ea){Rt.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const zr=Ht().fromTextArea(bo.current,{mode:ti,lineNumbers:!Rr,lineWrapping:!0,value:Ln,autoCloseTags:!0,autoCloseBrackets:!0});return zr.on("keyup",function(fi,vi){vi.keyCode===8&&(fi.getValue()==""?zr.setOption("placeholder",Or):zr.setOption("placeholder",null))}),zr.on("keydown",function(fi,vi){if(vi.keyCode===8){var to=Oa(fi);to&&vi.preventDefault()}}),Wr&&zr.focus(),zr.on("paste",Fr),Fn&&zr.on("beforeChange",function(fi,vi){(vi.origin==="paste"||vi.origin==="+input")&&vi.cancel()}),Ur(zr),()=>{zr.off("paste",Fr)}}},[]);const Ua=(0,oe.useCallback)(()=>{if(Po.current)try{}catch(Fr){console.log(Fr,"---- to set md editor body height")}},[uo,Po,Vi]);(0,oe.useEffect)(()=>{function Fr(){let zr=new rt.Z(fi=>{for(let vi of fi)(vi.target.offsetHeight>0||vi.target.offsetWidth>0)&&(Ua(),Mn.setSize("100%","100%"),Mn.refresh())});return zr.observe(bo.current.parentElement),zr}if(Mn){const zr=Fr();return()=>{var fi,vi;(fi=bo.current)!=null&&fi.parentElement&&zr.unobserve((vi=bo.current)==null?void 0:vi.parentElement)}}},[Mn,Ua]),(0,oe.useEffect)(()=>{if(Mn){let Fr=[];for(const[zr,fi]of Object.entries(rr)){let vi={[zr]:()=>{Jo(fi)}};Fr.push(vi),Mn.addKeyMap(vi)}return()=>{for(let zr of Fr)Mn.removeKeyMap(zr)}}},[Mn]),(0,oe.useEffect)(()=>{Lt!==Vi&&eo(Lt)},[Lt]),(0,Qn.Z)(()=>{if(!Xt&&Fi>0){let Fr=new Date().getTime(),zr=window.sessionStorage.getItem(xi);Fr>=Fi+Kt&&(!zr||zr!==si)&&(window.sessionStorage.setItem(xi,si),oo(!0))}},Kt),(0,oe.useEffect)(()=>{Ki(Gr)},[Mn,Gr]),(0,oe.useEffect)(()=>{Mn&&Wr&&Mn.focus()},[Mn,Wr]),(0,oe.useEffect)(()=>{if(Ai&&Mn){let Fr=function(fi){let vi=fi.target;if($i.current){let to=vi.scrollTop/vi.scrollHeight;$i.current.scrollTop=$i.current.scrollHeight*to}};const zr=Mn.getScrollerElement();return zr.addEventListener("scroll",Fr),()=>{zr.removeEventListener("scroll",Fr)}}},[Mn,Ai]),(0,oe.useEffect)(()=>{if(Mn&&ot){let Fr=function(zr,fi){ot(zr,fi)};return Mn.on("beforeChange",Fr),()=>{Mn.off("beforeChange",Fr)}}},[Mn,ot]),(0,oe.useEffect)(()=>{if(Mn&&Vt){let Fr=function(){Vt(Mn.getValue())};return Mn.on("blur",Fr),()=>{Mn.off("blur",Fr)}}},[Mn,Vt]);function Oa(Fr,zr){var fi=Fr.getDoc(),vi=fi.getCursor(),to=fi.getLine(vi.line),Zo=to.charAt(vi.ch-1),Do=to.lastIndexOf("@\u2581@",vi.ch),ra=to.lastIndexOf("@\u2581\u2581@",vi.ch),ea=Do>ra?Do:ra,va=Do>ra?3:4;if(Rn.indexOf(Zo)===-1)return null;if(console.log("change1:",zr,Fr,to,vi,ea,Do,ra,Zo),ea>=0&&vi.ch-ea<5){var Aa=ea+va;return fi.replaceRange("",{line:vi.line,ch:ea},{line:vi.line,ch:Aa}),{line:vi.line,ch:Aa}}return null}(0,oe.useEffect)(()=>{if(Mn){let Fr=function(zr,fi){const vi=zr.getValue();ei(vi),ki(new Date().getTime()),zr.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),mr&&(Lr?mr(vi,jr(vi)):mr(vi))};return Mn.on("change",Fr),()=>{Mn.off("change",Fr)}}},[Mn,mr]),(0,oe.useEffect)(()=>{if(Mn)if(Ln==null)Mn.setValue(""),ei("");else{const Fr=window.scrollY||window.pageYOffset;Ln!==Mn.getValue()&&(Mn.setValue(Ln),ei(Ln),Mn.setCursor(Fn?1:Mn.lineCount(),0),window.scrollTo(0,Fr))}},[Mn,Ln]);const Jo=(0,oe.useCallback)(Fr=>{const zr=Mn.getCursor(),fi=Mn.getSelection();let vi=fi.split(`
|
|
|
`);switch(Fr){case"bold":return Mn.replaceSelection("**"+fi+"**"),fi===""&&Mn.setCursor(zr.line,zr.ch+2),Mn.focus();case"italic":return Mn.replaceSelection("*"+fi+"*"),fi===""&&Mn.setCursor(zr.line,zr.ch+1),Mn.focus();case"code":return Mn.replaceSelection("`"+fi+"`"),fi===""&&Mn.setCursor(zr.line,zr.ch+1),Mn.focus();case"inline-latex":return(0,Jn.Ye)(Ko)?void 0:(bi("inline-latex"),Mn.focus());case"latex":return Mn.replaceSelection("```latex\n"+fi+"\n```"),Mn.setCursor(zr.line+1,fi.length+1),Mn.focus();case"line-break":return Mn.replaceSelection(`<br/>
|
|
|
`),Mn.focus();case"list-ul":return fi===""?Mn.replaceSelection("- "+fi):Mn.replaceSelection(vi.map(to=>to===""?"":`- ${to}`).join(`
|
|
|
`)),Mn.focus();case"list-ol":return fi===""?Mn.replaceSelection("1. "+fi):Mn.replaceSelection(vi.map((to,Zo)=>to===""?"":`${Zo+1}. ${to}`).join(`
|
|
|
`)),Mn.focus();case"add-null-ch":Zn==null||Zn();return;case"add-signal":return fi===""&&Mn.setCursor(zr.line,zr.ch),Mn.replaceSelection(hr),Mn.focus();case"add-multiple":return fi===""&&Mn.setCursor(zr.line,zr.ch),Mn.replaceSelection(Rn),Mn.focus();case"inster-template-1":return fi===""&&Mn.setCursor(zr.line,zr.ch),Mn.replaceSelection($r),Mn.focus();case"eraser":return Mn.setValue(""),Mn.focus();case"trigger-watch":return Ki(!Ai),Mn.focus();case"trigger-full-screen":return eo(!Vi),Mn.focus();case nn:bi(nn);return;case ir:bi(ir);return;case ln:bi(ln);return;case Nn:bi(Nn);return;case"maths-latex":if((0,Jn.Ye)(Ko))return;bi("maths-latex");return;case Un:Bo.current="",sessionStorage.removeItem("file_id"),bi(Un);return;case Xn:bi(Xn);return;default:throw new Error}},[Mn,Ai,Vi]),Vo=(0,oe.useCallback)((Fr,zr)=>{var fi,vi,to,Zo,Do,ra;Fr!=null&&Fr.disabledClose||bi("");const{src:ea,alt:va,id:Aa}=Fr||{};switch(Di){case nn:const{title:EA,link:qs}=Fr;return Mn.replaceSelection(`[${EA}](${qs})`),Mn.focus();case ir:const{language:eA,content:Bl}=Fr;return Mn.replaceSelection(["```"+eA,Bl,"```"].join(`
|
|
|
`)),Mn.focus();case"maths-latex":for(var Ro=atob(Fr),Ia=new Uint8Array(Ro.length),qa=0;qa<Ro.length;qa++)Ia[qa]=Ro.charCodeAt(qa);var mA=new Blob([Ia],{type:"image/png"});return(0,Ze.I)(mA,nA=>{nA.id?Mn.replaceSelection(``):(nA==null?void 0:nA.status)===401&&(document.location.href="/user/login")}),Mn.focus();case"inline-latex":return(0,Jn.Ye)(Ko)?void 0:(Mn.replaceSelection("`$$"+Fr+"$$`"),Mn.focus());case un:return Aa?(Mn.getValue().indexOf(ea)===-1?Mn.replaceSelection(`<center><img id="${Aa}" width="80%" src="${ea}" class="draw-flowchart" alt="${va||""}" /></center>`):document.getElementById(Aa).src=Ie.Z.API_SERVER+ea+"?t="+Date.now(),Mn.focus()):void 0;case ln:case Nn:const ya=zr,Cl=(to=(vi=(fi=ya==null?void 0:ya.name)==null?void 0:fi.split("."))==null?void 0:vi.pop)==null?void 0:to.call(vi);return((Zo=ya==null?void 0:ya.type)==null?void 0:Zo.indexOf("image"))>-1||!(ya!=null&&ya.type)?ya!=null&&ya.align||ya!=null&&ya.width?Mn.replaceSelection(`<p style="text-align:${ya.align||"initial"}"><img width="${ya.width?ya.width+"%":"initial"}" src="${ea}" alt="${va||""}" /></p>`):Mn.replaceSelection(`<img width="100%" src="${ea}" alt="${va||""}" />`):((Do=ya==null?void 0:ya.type)==null?void 0:Do.indexOf("video"))>-1?Mn.replaceSelection(`<video width="100%" controls src="${ea}"></video>`):((ra=ya==null?void 0:ya.type)==null?void 0:ra.indexOf("pdf"))>-1?Mn.replaceSelection(`<a href="${ea}?type=${ya.type}&disposition=inline" target="_blank">${ya.name}</a>`):Xr.includes(Cl)?Mn.replaceSelection(`<a href="${ea}?type=office&disposition=inline" target="_blank">${ya.name}</a>`):Mn.replaceSelection(`[${ya.name}](${ea})`),Mn.focus();case Xn:const{row:ws,col:tA,align:bs}=Fr;let Ts=`
|
|
|
`;for(let nA=0;nA<ws;nA++){let vA=[],es=[];for(let ZA=0;ZA<tA;ZA++)nA===1&&es.push(An[bs]),vA.push(" ");nA===1&&(Ts+=`| ${es.join(" | ")} |
|
|
|
`),Ts+=`| ${vA.join(tA===1?"":" | ")} |
|
|
|
`}return Mn.replaceSelection(Ts+`
|
|
|
`),Mn.focus();default:throw new Error}},[Mn,Di]),qo=(0,oe.useMemo)(()=>{switch(Di){case nn:return oe.createElement(Cn,{callback:Vo,onCancel:ma});case ir:return oe.createElement(mn.Z,{callback:Vo,onCancel:ma});case ln:return oe.createElement(Ze.Z,{callback:Vo,onCancel:ma});case Un:return oe.createElement(ye,{editImgId:Bo.current,callback:Vo,onCancel:ma});case Xn:return oe.createElement(ut,{callback:Vo,onCancel:ma});case"maths-latex":return oe.createElement(ar,{showSaveButton:!0,callback:Vo});case"inline-latex":return oe.createElement(Mt.Z,{showSaveButton:!0,callback:Vo});default:return null}},[Di]);function ma(){bi("")}(0,oe.useEffect)(()=>{if(Ho.current){let Fr=function(Do){to=!0,Zo=Do.pageY},zr=function(){to=!1},fi=function(Do){if(to){let ra=Do.pageY-Zo;ra<0&&(ra=0),ra>300&&(ra=300);let ea=pr+ra+"px";Zi(ea)}},vi=Ho.current,to=!1,Zo=0;return vi.addEventListener("mousedown",Fr),document.addEventListener("mousemove",fi),document.addEventListener("mouseup",zr),()=>{vi.removeEventListener("mousedown",Fr),document.removeEventListener("mousemove",fi),document.removeEventListener("mouseup",zr)}}},[Mn,Ho]),(0,oe.useEffect)(()=>{Zi(pr)},[pr]);const Ma=vr(cr),mo=vr(uo),Ti={width:Ma,height:mo},Pr=(0,oe.useMemo)(()=>{if(Fi){let Fr=new Date(Fi),zr=Fr.getHours(),fi=Fr.getMinutes(),vi=Fr.getSeconds();return zr=zr<10?"0"+zr:zr,fi=fi<10?"0"+fi:fi,vi=vi<10?"0"+vi:vi,`${zr}:${fi}:${vi}`}return 0},[Fi]),jr=Fr=>{const zr=[];if(Lr){let fi=-1;Fr=Fr.replace(/(@▁▁@|@▁@)/g,function(vi,to,Zo){zr.push({multiLine:vi!==hr})})}return zr};function Vr(){window.sessionStorage.removeItem(xi),oo(!1),ki(0)}function Sr(){oo(!1),ki(0),Mn.setValue(window.sessionStorage.getItem(xi))}(0,oe.useEffect)(()=>{Tn[Di]&&Di!==Nn&&Di!==Un&&setTimeout(()=>{const Fr=document.getElementsByClassName("markdown-popup-form")[0],zr=window.innerWidth/2-Fr.offsetWidth/2,fi=window.innerHeight/2-Fr.offsetHeight/2;Xi(zr),go(fi)},0)},[Di]);const hi=Fr=>{Fr.preventDefault();const zr=Fr.clientX-Yi,fi=Fr.clientY-Oo;document.body.onmousemove=vi=>{let to=vi.clientX-zr,Zo=vi.clientY-fi;const Do=document.getElementsByClassName("markdown-popup-form")[0],ra=window.innerWidth-Do.offsetWidth,ea=window.innerHeight-Do.offsetHeight;to=Math.max(0,Math.min(to,ra)),Zo=Math.max(0,Math.min(Zo,ea)),Ii(vi.clientX,vi.clientY,zr,fi)&&(Xi(to),go(Zo))},document.body.onmouseup=function(){document.body.onmousemove=null}},Ii=(Fr,zr,fi,vi)=>{const to=document.body.clientHeight,Zo=document.body.clientWidth;return Fr<20&&fi>Fr||Fr>Zo-20&&fi<Fr||zr<20&&vi>zr||zr>to-20&&vi<zr?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return oe.createElement(oe.Fragment,null,oe.createElement("div",{className:"markdown-editor-wrapper",ref:Po},oe.createElement("div",{className:`markdown-editor-container ${ft} ${Ai?"on-preview":""} ${Rr?"mini":""} ${Vi?"full-screen":""}`,style:Ti},oe.createElement(pn,{insertTemp:ai,watch:Ai,fullScreen:Vi,showNullButton:Kn,showNullProgramButton:Lr,onActionCallback:Jo,hidetoolBar:wr,extraUse:dr}),oe.createElement("div",{className:"markdown-editor-body"},oe.createElement("div",{className:"codemirror-container"},oe.createElement("textarea",{ref:bo,placeholder:Or})),Ai?oe.createElement("div",{ref:$i,className:"preview-container"},ti==="stex"&&oe.createElement(Ve,{value:si}),ti!=="stex"&&oe.createElement(Le.Z,{edit:!0,disabledFill:xr,showProgramFill:Lr,value:si,openEditor:Fr=>{var zr;Bo.current=Fr,(zr=Pi.current)==null||zr.setHeight("100vh"),setTimeout(()=>{bi("add-flowchart")},150)}})):null))),mi?oe.createElement("a",{ref:Ho,className:"editor-resize"}):null,Di===Nn&&oe.createElement(Wn,{callback:Vo,onCancel:ma}),Di===Un&&oe.createElement(ye,{ref:Pi,editImgId:Bo.current,callback:Vo,onCancel:ma}),oe.createElement(Pt.Z,null,Tn[Di]&&Di!==Nn&&Di!==Un?oe.createElement(Ct.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Yi,top:Oo},title:oe.createElement("div",{style:{cursor:"move"},onMouseDown:hi},Tn[Di]),open:!0,onCancel:ma,footer:null,destroyOnClose:!0,width:Di===Un?"1200px":null,height:Di===Un?"80vh":null,className:"markdown-popup-form"},qo):null))}},53332:function(gr,zn,pe){"use strict";pe.d(zn,{Z:function(){return Nt},I:function(){return pn}});var oe=pe(28284),qt=pe(6767),Xe=pe(37568),Ht=pe(44104),rt=pe(4875),at=pe(47889),Dt=pe(7939),Me=pe(23216),Pe=pe(59301),ce=pe(59301),ke=Object.defineProperty,Le=Object.defineProperties,Ve=Object.getOwnPropertyDescriptors,Ke=Object.getOwnPropertySymbols,He=Object.prototype.hasOwnProperty,Ge=Object.prototype.propertyIsEnumerable,ze=(Pt,St,jt)=>St in Pt?ke(Pt,St,{enumerable:!0,configurable:!0,writable:!0,value:jt}):Pt[St]=jt,qe=(Pt,St)=>{for(var jt in St||(St={}))He.call(St,jt)&&ze(Pt,jt,St[jt]);if(Ke)for(var jt of Ke(St))Ge.call(St,jt)&&ze(Pt,jt,St[jt]);return Pt},pt=(Pt,St)=>Le(Pt,Ve(St));const{useForm:Bt}=oe.default,vt={width:280,marginRight:10},yt={labelCol:{span:5},wrapperCol:{span:19}};var Nt=({callback:Pt,onCancel:St})=>{const[jt]=Bt();let Je=(0,Pe.useRef)();function wt(Zt){Je.current.width=jt.getFieldValue("width"),Je.current.align=jt.getFieldValue("align"),Pt(Zt,Je.current)}function lt(Zt,$e){if(Zt.status===-1){qt.ZP.error(Zt.message);return}jt.setFieldsValue({src:`/api/attachments/${Zt.id}`,type:$e.type})}function Fe(Zt){let $e=Zt.target.files[0];Je.current=$e,pn($e,lt)}return ce.createElement(oe.default,pt(qe({form:jt},yt),{className:"upload-image-panel",onFinish:wt,style:{width:470,overflow:"hidden"}}),ce.createElement(oe.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},ce.createElement("div",{className:"flex-container"},ce.createElement(oe.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},ce.createElement(Xe.default,{style:vt})),ce.createElement(Et,{onFileChange:Fe}))),ce.createElement(oe.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},ce.createElement(Xe.default,{style:{width:264}})),ce.createElement(oe.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},ce.createElement(Ht.Z,null,ce.createElement(oe.default.Item,{name:"width",style:{margin:0}},ce.createElement(rt.Z,{style:{width:264}})),ce.createElement("span",{className:"ml8"},"%"))),ce.createElement(oe.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},ce.createElement(at.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"}]})),ce.createElement("aside",null,ce.createElement(oe.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},ce.createElement(Dt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ce.createElement(Dt.ZP,{type:"default",onClick:St},"\u53D6\u6D88"))))};function Et({onFileChange:Pt}){return ce.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",ce.createElement("input",{type:"file",onChange:Pt}))}function pn(Pt,St){if(!Pt)throw new String("\u6CA1\u6709\u6587\u4EF6");let jt=new FormData;jt.append("editormd-image-file",Pt),jt.append("file_param_name","editormd-image-file"),jt.append("byxhr","true");var Je=new window.XMLHttpRequest;Je.withCredentials=!0,Je.addEventListener("load",function(wt){St(JSON.parse(wt.target.responseText),Pt)},!1),Je.addEventListener("error",function(wt){console.error(wt)},!1),Je.open("POST",`${Me.KI}/api/attachments.json`),Je.send(jt)}},88487:function(gr,zn,pe){"use strict";pe.d(zn,{Z:function(){return Xe}});var oe=pe(59301),qt=pe(4676);class Xe extends oe.Component{constructor(rt){super(rt);const at=window.document;this.node=at.createElement("div"),at.body.appendChild(this.node)}render(){const{children:rt}=this.props;return(0,qt.createPortal)(rt,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},34728:function(gr,zn,pe){"use strict";pe.d(zn,{SV:function(){return Wn},ZP:function(){return xn}});var oe=pe(59301),qt=pe(76374);const Xe={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"]},Ht={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"]},rt={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
|
|
|
`)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(`
|
|
|
`)},{label:"if",content:["if () {"," $0","}"].join(`
|
|
|
`)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(`
|
|
|
`)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(`
|
|
|
`)},{label:"using namespace std",content:["using namespace std"].join(`
|
|
|
`)},{label:"include <iostream>",content:["#include <iostream>"].join(`
|
|
|
`)},{label:"include <vector>",content:["#include <vector>"].join(`
|
|
|
`)},{label:"include <cstdio>",content:["#include <cstdio>"].join(`
|
|
|
`)},{label:"include <cstring>",content:["#include <cstring>"].join(`
|
|
|
`)},{label:"include <sstream>",content:["#include <sstream>"].join(`
|
|
|
`)},{label:"include <fstream>",content:["#include <fstream>"].join(`
|
|
|
`)},{label:"include <map>",content:["#include <map>"].join(`
|
|
|
`)},{label:"include <string>",content:["#include <string>"].join(`
|
|
|
`)},{label:"include <cmath>",content:["#include <cmath>"].join(`
|
|
|
`)}]},at={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(`
|
|
|
`)}]},Dt={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 Me=pe(53184),Pe=pe.n(Me),ce=(ct,En,Rt)=>new Promise((be,de)=>{var le=he=>{try{Ie(Rt.next(he))}catch(We){de(We)}},ye=he=>{try{Ie(Rt.throw(he))}catch(We){de(We)}},Ie=he=>he.done?be(he.value):Promise.resolve(he.value).then(le,ye);Ie((Rt=Rt.apply(ct,En)).next())});const ke={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"]}},Le=(ct,En,Rt,be)=>{const de=En.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:Rt.lineNumber,endColumn:Rt.column});return Array.from(new Set(de.match(/\b\w{2,}\b/g)||[])).map(ye=>({label:ye,kind:ct.languages.CompletionItemKind.Text,insertText:ye,range:be}))},Ve=(ct,En,Rt,be)=>{ct.languages.registerCompletionItemProvider(En,{provideCompletionItems(de,le){const ye=de.getWordUntilPosition(le),Ie={startLineNumber:le.lineNumber,endLineNumber:le.lineNumber,startColumn:ye.startColumn,endColumn:ye.endColumn},he=de.getLineContent(le.lineNumber).substring(ye.startColumn-2,ye.endColumn);return{suggestions:[...Le(ct,de,le,Ie),...Rt.map(tt=>({label:tt,kind:ct.languages.CompletionItemKind.Keyword,documentation:tt,insertText:tt,insertTextRules:ct.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ie})),...be.map(tt=>({label:tt.label,kind:ct.languages.CompletionItemKind.Snippet,documentation:tt.content,insertText:he.startsWith("#")?tt.content.replace(/#/,""):tt.content,insertTextRules:ct.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:Ie}))]}}})};var Ke=ct=>{ke.languages.forEach(En=>{ct.languages.registerDocumentFormattingEditProvider(En,{provideDocumentFormattingEdits(Rt){return ce(this,null,function*(){const be=Pe()(Rt.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:Rt.getFullModelRange(),text:be}]})}})}),Ve(ct,"java",Ht.keywords,Ht.quickKey),Ve(ct,"cpp",rt.keywords,rt.quickKey),Ve(ct,"c",Xe.keywords,[]),Ve(ct,"python",at.keywords,at.quickKey),Ve(ct,"scala",Dt.keywords,Dt.quickKey)};const He="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Ge=Object.defineProperty,ze=(ct,En,Rt)=>En in ct?Ge(ct,En,{enumerable:!0,configurable:!0,writable:!0,value:Rt}):ct[En]=Rt,qe=(ct,En,Rt)=>ze(ct,typeof En!="symbol"?En+"":En,Rt);const pt=class Iv{constructor(En,Rt,be){this.placeholder=En,this.editor=Rt,this.monaco=be,Rt.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return Iv.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)}};qe(pt,"ID","editor.widget.placeholderHint");var vt=pt,yt=pe(96236),Nt=pe(6767),Et=pe(25399),pn=pe(78267),Pt=pe(33156),St=pe(56102),jt=Object.defineProperty,Je=Object.defineProperties,wt=Object.getOwnPropertyDescriptors,lt=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,Zt=Object.prototype.propertyIsEnumerable,$e=(ct,En,Rt)=>En in ct?jt(ct,En,{enumerable:!0,configurable:!0,writable:!0,value:Rt}):ct[En]=Rt,At=(ct,En)=>{for(var Rt in En||(En={}))Fe.call(En,Rt)&&$e(ct,Rt,En[Rt]);if(lt)for(var Rt of lt(En))Zt.call(En,Rt)&&$e(ct,Rt,En[Rt]);return ct},Qt=(ct,En)=>Je(ct,wt(En)),Te=(ct,En)=>{var Rt={};for(var be in ct)Fe.call(ct,be)&&En.indexOf(be)<0&&(Rt[be]=ct[be]);if(ct!=null&<)for(var be of lt(ct))En.indexOf(be)<0&&Zt.call(ct,be)&&(Rt[be]=ct[be]);return Rt},xe=(ct,En,Rt)=>new Promise((be,de)=>{var le=he=>{try{Ie(Rt.next(he))}catch(We){de(We)}},ye=he=>{try{Ie(Rt.throw(he))}catch(We){de(We)}},Ie=he=>he.done?be(he.value):Promise.resolve(he.value).then(le,ye);Ie((Rt=Rt.apply(ct,En)).next())});function It(ct){return/^\d+$/.test(ct)?`${ct}px`:ct}function Cn(){}let mn=!1;const Ze={"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 Ct(ct=[]){let En=ct;if(Array.isArray(ct)){for(let Rt=0;Rt<ct.length;Rt++){let be=Ze[ct[Rt]];if(be)return be}return En[0]}return Ze[En]||En}let _t=null;const In=()=>xe(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(ct){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",ct)}});var xn=ct=>{var En=ct,{width:Rt="100%",height:be="100%",value:de,language:le="javascript",style:ye={},options:Ie={},overrideServices:he={},theme:We="vs-dark",onEditBlur:tt,isCopy:dn=!1,onSave:ut,autoHeight:zt=!1,forbidCopy:en=!1,forbidCopyTips:Sn,onChange:yn=Cn,editorDidMount:ar=Cn,onFocus:Mt=Cn,onBreakPoint:nn=Cn,breakPointValue:ln=[],filename:Un="educoder.txt",errorLine:Nn,errorContent:un="",highlightLine:ir,openBreakPoint:Xn=!1,placeholder:Ft="",showMiniMap:An=!0}=En,Qn=Te(En,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","forbidCopyTips","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder","showMiniMap"]);const Jn=(0,oe.useRef)(),nt=(0,oe.useRef)({}),gt=(0,oe.useRef)(),Kt=(0,oe.useRef)(),vn=(0,oe.useRef)([]),Rn=(0,oe.useRef)(!1),hr=(0,oe.useRef)(),$r=(0,oe.useRef)(),Xr=(0,oe.useRef)(!1),[vr,lr]=(0,oe.useState)(!1);function Dr(){let Xt;return Jn.current&&(Xt=new qt.Z(Kn=>{for(let Lr of Kn)(Lr.target.offsetHeight>0||Lr.target.offsetWidth>0)&&nt.current.instance.layout()}),Xt.observe(Jn.current)),Xt}function rr(){Nt.ZP.warning({content:decodeURIComponent(Sn||He),key:"monaco-editor-tip"})}const Tn=()=>{let Xt=nt.current.instance;if(de!=null&&Xt&&vr){const Kn=Xt.getModel();Kn&&de!==Kn.getValue()&&(mn=!0,Kn.setValue(de),Xt.layout(),mn=!1)}};(0,oe.useEffect)(()=>{const Xt=Pt.Z.subscribe("formatDocument",Kn=>{var Lr;let wr=nt.current.instance;(Lr=wr==null?void 0:wr.getAction)==null||Lr.call(wr,"editor.action.formatDocument").run()});return window.updateMonacoValue=Kn=>{yn(Kn)},Xt},[]),(0,oe.useEffect)(()=>{var Xt;let Kn=nt.current.instance;Kt.current&&clearTimeout(Kt.current),Kt.current=setTimeout(()=>{Tn()},500),de&&(de!=null&&de.length)&&((Xt=Kn==null?void 0:Kn.updateOptions)==null||Xt.call(Kn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(de.split(/\r\n|\r|\n/g).length))+3,5)}))},[de,vr,nt.current]),(0,oe.useEffect)(()=>{if(Nn&&nt.current&&nt.current.instance){let Kn=nt.current.instance;Kn.changeViewZones(function(Lr){var wr=document.createElement("div");wr.style.padding="10px 20px",wr.style.width="calc(100% - 20px)",wr.className="my-error-line-wrp",wr.innerHTML=un,Lr.addZone({afterLineNumber:Nn||11,heightInLines:3,domNode:wr})});var Xt={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}};Kn.addOverlayWidget(Xt),Kn.revealPositionInCenter({lineNumber:20,column:1})}},[Nn,nt.current,vr]);const _n=(Xt="",Kn)=>{if(!Xt||Xt.trim()==="")return!0;const wr=nt.current.instance.getModel().getLineTokens(Kn);let Lt=!1;for(let Vt=0;Vt<2;Vt++)wr.getStandardTokenType(Vt)===1&&(Lt=!0);return Lt};(0,oe.useEffect)(()=>{var Xt;const Kn=(Xt=nt.current)==null?void 0:Xt.instance;if(Kn&&vr&&en){const Lr=Kn.onDidBlurEditorWidget(()=>{Xr.current=!1}),wr=Kn.onDidFocusEditorText(()=>{Xr.current=!0});return()=>{Lr.dispose(),wr.dispose()}}},[nt.current,vr,en]),(0,oe.useEffect)(()=>{var Xt;if((Xt=nt.current)!=null&&Xt.instance&&vr&&Xn){let Kn=nt.current.instance,Lr=Kn.getModel();if(!Lr)return;(()=>{var dr;let Zn=[],Mn=[];const Ur=Lr.getAllDecorations();for(let ei of Ur)ei.options.className==="highlighted-line"&&(Zn.push((dr=ei==null?void 0:ei.range)==null?void 0:dr.startLineNumber),Mn.push(ei==null?void 0:ei.id));if(ir===Zn[0])return;Lr.deltaDecorations(Mn,[]);const si=Lr.getLineCount();ir&&ir<=si&&(Kn.deltaDecorations([],[{range:new _t.Range(ir,1,ir,Lr.getLineMaxColumn(ir)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Kn.revealLineInCenter(ir))})();const Lt=(dr=!1)=>{var Zn;let Mn=[],Ur=[];const si=Lr.getAllDecorations();for(let ei of si)ei.options.linesDecorationsClassName==="breakpoints-select"&&(Mn.push((Zn=ei==null?void 0:ei.range)==null?void 0:Zn.startLineNumber),Ur.push(ei==null?void 0:ei.id));if(dr)return{lines:Mn,ids:Ur};nn(Mn)},Vt=dr=>xe(void 0,null,function*(){let Zn={range:new _t.Range(dr,1,dr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Lr.deltaDecorations([],[Zn]),Lt()}),ot=dr=>xe(void 0,null,function*(){let Zn=[];const Mn=Kn.getLineDecorations(dr);for(let Ur of Mn)Ur.options.linesDecorationsClassName==="breakpoints-select"&&Zn.push(Ur.id);yield Lr.deltaDecorations(Zn,[]),Lt()}),kt=dr=>{let Zn=Kn.getLineDecorations(dr);for(let Mn of Zn)if(Mn.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,pn.isEqual)(ln,Lt(!0).lines)){Lr.deltaDecorations(Lt(!0).ids,[]);const dr=ln.map(Zn=>({range:new _t.Range(Zn,1,Zn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Lr.deltaDecorations([],dr)}const ft=Kn.onDidChangeModelContent(dr=>{let Zn=Kn.getPosition();if(Zn){let Mn=Zn.lineNumber;clearTimeout($r.current),$r.current=setTimeout(()=>{_n(Lr.getLineContent(Mn),Mn)?ot(Mn):kt(Mn)?(ot(Mn),Vt(Mn)):Lt()},100)}}),Gt=Kn.onMouseDown(dr=>{var Zn,Mn,Ur;if(dr.target.detail&&((Ur=(Mn=(Zn=dr.target)==null?void 0:Zn.element)==null?void 0:Mn.className)!=null&&Ur.includes("line-numbers"))){let si=dr.target.position.lineNumber;if(_n(Lr.getLineContent(si),si))return;kt(si)?ot(si):Vt(si)}}),Fn=dr=>{let Zn={range:new _t.Range(dr,1,dr,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};vn.current=Kn.deltaDecorations(vn.current,[Zn])},xr=()=>{vn.current=Kn.deltaDecorations(vn.current,[])},Or=Kn.onMouseMove(dr=>{var Zn,Mn,Ur;if(xr(),dr.target.detail&&((Ur=(Mn=(Zn=dr.target)==null?void 0:Zn.element)==null?void 0:Mn.className)!=null&&Ur.includes("line-numbers"))){let si=dr.target.position.lineNumber;if(_n(Lr.getLineContent(si),si))return;Fn(si)}}),kr=Kn.onMouseLeave(()=>{xr()});return()=>{ft.dispose(),Gt.dispose(),Or.dispose(),kr.dispose()}}},[nt.current,vr,ln,ir,Xn,le]),(0,oe.useEffect)(()=>{var Xt;(Xt=nt.current)!=null&&Xt.instance&&Xn&&nt.current.instance.setPosition({lineNumber:0,column:0})},[ir]);function Ln(){let Xt=nt.current.instance;if(Xt){const Kn=Xt.getSelection(),Lr=nt.current.pastePos||{},wr=new _t.Range(Lr.startLineNumber||Kn.endLineNumber,Lr.startColumn||Kn.endColumn,Lr.endLineNumber||Kn.endLineNumber,Lr.endColumn||Kn.endColumn);setTimeout(()=>{Xt.executeEdits("",[{range:wr,text:""}])},300)}}function mr(Xt){(window.navigator.platform.match("Mac")?Xt.metaKey:Xt.ctrlKey)&&Xt.keyCode==83&&(Xt.preventDefault(),ut())}const cr=()=>{if(zt&&nt.current.instance){const Xt=nt.current.instance.getContentHeight();xi(Xt<be?be:Xt)}else xi(be)};function pr(Xt){var Kn=document.createEvent("MouseEvents");Kn.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Xt.dispatchEvent(Kn)}const Rr=Xt=>{if(!Xr.current)return;const{keyCode:Kn,ctrlKey:Lr,metaKey:wr,target:Lt,type:Vt}=Xt;return(Vt==="paste"||(Kn===67||Kn===86)&&(wr||Lr))&&Lt.nodeName==="TEXTAREA"&&(rr(),Xt.preventDefault()),!1};function Wr(Xt,Kn){var Lr=window.URL||window.webkitURL||window,wr=new Blob([Kn]),Lt=document.createElementNS("http://www.w3.org/1999/xhtml","a");Lt.href=Lr.createObjectURL(wr),Lt.download=Xt,pr(Lt)}(0,oe.useEffect)(()=>{cr()},[cr]),(0,oe.useEffect)(()=>{Jn.current&&!vr&&Promise.all([pe.e(8909),pe.e(5977)]).then(pe.bind(pe,71448)).then(Xt=>{try{_t=Xt,nt.current.instance=_t.editor.create(Jn.current,{value:de,language:Ct(le),theme:We,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:An||!1}},he);const Kn=nt.current.instance;let Lt=[...yt.BH._menuItems].find(ft=>ft[0]._debugName=="EditorContext")[1],Vt=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],ot=(ft,Gt)=>{var Fn,xr;let Or=ft._first;do Gt.includes((xr=(Fn=Or.element)==null?void 0:Fn.command)==null?void 0:xr.id)&&ft._remove(Or);while(Or=Or.next)};if(ar(Kn,_t),setTimeout(()=>{cr(),nt.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Wr(Un||"educoder.txt",Kn.getValue())}})},500),nt.current.subscription=Kn.onDidChangeModelContent(ft=>{Rn.current?clearTimeout(hr.current):(cr(),yn(Kn.getValue(),ft)),hr.current=setTimeout(()=>{Rn.current=!1},500)}),window.Monaco||Ke(_t,Ct(le)),en&&(ot(Lt,Vt),Jn.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Rr),window.removeEventListener("paste",Rr),window.addEventListener("keydown",Rr),window.addEventListener("paste",Rr)),window.Monaco=_t,tt&&Kn.onDidBlurEditorWidget(()=>{tt(Kn.getValue())}),Mt&&Kn.onDidFocusEditorText(()=>{en&&In(),Mt(Kn.getValue())}),en){In();try{Kn.onDidPaste(ft=>{const Gt=Kn.getSelection(),Fn=nt.current.pastePos||{},xr=new _t.Range(Fn.startLineNumber||Gt.endLineNumber,Fn.startColumn||Gt.endColumn,Fn.endLineNumber||Gt.endLineNumber,Fn.endColumn||Gt.endColumn);Kn.executeEdits("",[{range:ft.range,text:""}])})}catch(ft){}}let kt=Dr();return Ft&&typeof Ft=="string"&&new vt(Ft,Kn,_t),lr(!0),()=>{const ft=nt.current.instance;ft.dispose();const Gt=ft.getModel();Gt&&Gt.dispose(),nt.current.subscription&&nt.current.subscription.dispose(),kt.unobserve(Jn.current)}}catch(Kn){}})},[]),(0,oe.useEffect)(()=>{if(nt.current.instance&&vr)return document.addEventListener("keydown",mr,!1),()=>{document.removeEventListener("keydown",mr)}},[ut,vr]),(0,oe.useEffect)(()=>{let Xt=nt.current.instance;if(Xt&&vr){let Kn=Ct(le);_t.editor.setModelLanguage(Xt.getModel(),Kn)}},[le,vr]),(0,oe.useEffect)(()=>{nt.current.instance&&vr&&_t.editor.setTheme(We)},[We,vr]),(0,oe.useEffect)(()=>{let Xt=nt.current.instance;gt.current=Ie,Xt&&vr&&(Xt.updateOptions(At({},Ie)),setTimeout(()=>{Xt.getModel().updateOptions(At({},Ie))},200))},[JSON.stringify(Ie),vr]),(0,oe.useEffect)(()=>{let Xt=nt.current.instance;Xt&&vr&&Xt.layout()},[Rt,be,vr]);const[Gr,ai]=(0,oe.useState)(It(Rt)),[ti,xi]=(0,oe.useState)(It(be)),mi=Qt(At({},ye),{width:Gr,height:ti,position:"relative"});return oe.createElement("div",{className:"my-monaco-editor",ref:Jn,style:mi,onFocus:()=>{en&&In()}},dn&&oe.createElement(St.CopyToClipboard,{text:de,onCopy:()=>Nt.ZP.success("\u590D\u5236\u6210\u529F")},oe.createElement(Et.Z,{title:"\u590D\u5236\u4EE3\u7801"},oe.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},oe.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Wn({width:ct="100%",height:En="100%",original:Rt,modified:be,language:de,options:le={}}){const ye=(0,oe.useRef)(),[Ie,he]=(0,oe.useState)(null);function We(zt){let en;return ye.current&&(en=new qt.Z(Sn=>{for(let yn of Sn)(yn.target.offsetHeight>0||yn.target.offsetWidth>0)&&zt.layout()}),en.observe(ye.current)),en}(0,oe.useEffect)(()=>(ye.current&&Promise.all([pe.e(8909),pe.e(9404)]).then(pe.bind(pe,2550)).then(zt=>{_t=zt;const en=_t.editor.createDiffEditor(ye.current,Qt(At({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},le),{wordWrap:!0}));he(en);let Sn=We(en);return()=>{en.dispose();const yn=en.getModel();yn&&yn.dispose(),Sn.unobserve(ye.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,oe.useEffect)(()=>{Ie&&Ie.setModel({original:_t.editor.createModel(Rt,de),modified:_t.editor.createModel(be,de)})},[Rt,be,de,Ie]);const tt=It(ct),dn=It(En),ut={width:tt,height:dn};return oe.createElement("div",{className:"my-diff-editor",ref:ye,style:ut})}},54077:function(gr,zn,pe){"use strict";pe.d(zn,{Z:function(){return ke}});var oe={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf",wrapisCurrent:"wrapisCurrent___qIfQT",tagsDom:"tagsDom___COQg7",hiddenbq:"hiddenbq___TqlUF"},qt=pe(29787),Xe=pe(25399),Ht=pe(89787),rt=pe(92310),at=pe.n(rt),Dt=pe(76406),Me=pe(90736),Pe=pe(59301),ke=({className:Le,dataSource:Ve=[],col:Ke=4,right:He,bottom:Ge=23,precision:ze=0,wrapWidth:qe=1200,trackEventItems:pt,loading:Bt,onRemove:vt=()=>{},isCurrent:yt=!0,showProgress:Nt=!1,showAlias:Et=!1,category:pn="notDisplay",hiddenClick:Pt=()=>{}})=>{const St=Math.floor((qe-(Ke-1)*He)/Ke),jt=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png",ptclass:"sprite-70",swclass:"sprite-68"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png",ptclass:"sprite-60",swclass:"sprite-65"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png",ptclass:"sprite-58",swclass:"sprite-63"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png",ptclass:"sprite-62",swclass:"sprite-67"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png",ptclass:"sprite-61",swclass:"sprite-66"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png",ptclass:"sprite-59",swclass:"sprite-64"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png",ptclass:"sprite-71",swclass:"sprite-69"}];return Pe.createElement(qt.Z,{spinning:Bt},Pe.createElement("div",{className:at()(oe.list,Le)},!!(Ve!=null&&Ve.length)&&(Ve==null?void 0:Ve.map((Je,wt)=>{var lt,Fe,Zt,$e,At,Qt,Te;const{name:xe,id:It,identifier:Cn,featured:mn,school_name:Ze,image_url:Ct,excellent:_t,is_plan:In}=Je;return Pe.createElement("div",{key:It,className:yt&&Nt?oe.wrapisCurrent:oe.wrap,style:{width:St,marginRight:(1+wt)%Ke===0?0:He+ze,marginBottom:Ge}},Pe.createElement("a",{className:oe.li,onClick:xn=>{xn.preventDefault(),xn.stopPropagation(),pt&&(0,Dt.L9)([pt]),(0,Dt.xg)(`/paths/${Cn}`)}},Pe.createElement("div",{className:oe.img},Pe.createElement("img",{className:oe.cover,src:`${Ct}`}),(lt=Je==null?void 0:Je.subject_tags)==null?void 0:lt.map((xn,Wn)=>{var ct,En;if(Wn===0){const be=(ct=jt.find(de=>de.name==xn))==null?void 0:ct.swclass;return Pe.createElement("span",{className:`sprite ${be} ${oe.sign}`,style:{left:"-4px"}})}const Rt=(En=jt.find(be=>be.name==xn))==null?void 0:En.ptclass;return Pe.createElement("span",{className:`sprite ${Rt} ${oe.sign}`,style:{left:`${48+52*(Wn-1)+2*Wn}px`}})}),Pe.createElement("div",{className:oe.tagsDom},Pe.createElement("div",{className:"flex flex-wrap item-center",style:{gap:"0 6px"}},(Je==null?void 0:Je.excellent)&&Pe.createElement("div",{className:oe.bq},"\u5F00\u653E\u8BFE\u7A0B"),((Fe=Je==null?void 0:Je.custom_tags)==null?void 0:Fe.length)>0&&(Je==null?void 0:Je.custom_tags.map((xn,Wn)=>{var ct;return Pe.createElement(Xe.Z,{title:xn==null?void 0:xn.tag_name,key:Wn},Pe.createElement("div",{className:"font12 rounded-2px c-white flex item-center",style:{height:22,padding:"0 6px",maxWidth:((ct=Je==null?void 0:Je.custom_tags)==null?void 0:ct.length)>2?"60px":"71px",background:"rgba(48, 97, 208, .6)",border:"1px solid #8FAFF8"}},Pe.createElement("span",{className:"multi-llipsis1e"},xn==null?void 0:xn.tag_name)))})))),pn=="hide"&&(Je==null?void 0:Je.studying)&&yt&&Pe.createElement("div",{className:`${oe.movebq} user-path-items`,onClick:xn=>{xn.stopPropagation(),vt(Je)}},Pe.createElement("i",{className:"iconfont icon-yichu1 font12"}),Pe.createElement("span",null,"\u79FB\u9664")),!["notDisplay","collect","payed"].includes(pn)&&yt&&Pe.createElement("div",{className:`${oe.hiddenbq} user-path-items`,onClick:xn=>{xn.stopPropagation(),Pt(Je)}},Pe.createElement("i",{className:`iconfont ${pn=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),Pe.createElement("span",null,pn=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF"))),Pe.createElement("div",{className:oe.name},Pe.createElement(Xe.Z,{title:Et&&(Je!=null&&Je.excellent_alias_name)?Pe.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${xe}`,Pe.createElement("br",null),Pe.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Je==null?void 0:Je.excellent_alias_name}`)):xe},Pe.createElement("span",{className:oe.e},Et&&(Je==null?void 0:Je.excellent_alias_name)||xe))),yt&&Nt&&((Zt=Je==null?void 0:Je.progress)==null?void 0:Zt.all_score)!=0&&Pe.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},Pe.createElement(Ht.Z,{strokeColor:"#44d7b6",gap:"small",percent:((($e=Je==null?void 0:Je.progress)==null?void 0:$e.my_score)/((At=Je==null?void 0:Je.progress)==null?void 0:At.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(Qt=Je==null?void 0:Je.progress)==null?void 0:Qt.my_score,"/",(Te=Je==null?void 0:Je.progress)==null?void 0:Te.all_score),(!yt||!Nt)&&Pe.createElement(Xe.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${Ze}`},Pe.createElement("div",{className:oe.unit},Pe.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),Ze)),(!yt||!Nt)&&Pe.createElement("div",{className:oe.tags},Pe.createElement("div",null,Pe.createElement(Xe.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Pe.createElement("span",null,Pe.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Pe.createElement("span",null,Je.stages_count))),Pe.createElement(Xe.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Pe.createElement("span",null,Pe.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Pe.createElement("span",null,Je.members_count)))))))})),!Ve.length&&Pe.createElement(Me.Z,null)))}},70467:function(gr,zn,pe){"use strict";pe.d(zn,{jL:function(){return Ht},w9:function(){return xe},QD:function(){return ln},cQ:function(){return wt.Z},op:function(){return en},O5:function(){return Dr},_b:function(){return Ft},t7:function(){return ze},Gi:function(){return _t},YG:function(){return Ze},qp:function(){return ce},vr:function(){return un},qE:function(){return ar},Je:function(){return Bt},wb:function(){return Je},cq:function(){return Rt},tp:function(){return Ve}});var oe=pe(59301),qt={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"},Ht=({dataSource:rr=[],img:Tn,imgWidth:_n=346,title:Ln,sunTitle:mr,bannerExtraContent:cr})=>oe.createElement("div",{className:qt.banner},oe.createElement("div",{className:qt.content},oe.createElement("aside",null,oe.createElement("p",null,oe.createElement("b",null,Ln),oe.createElement("span",null,mr)),rr.length>0&&oe.createElement("div",{className:qt.btns},rr.map((pr,Rr)=>oe.createElement("div",{key:Rr,onClick:pr.click},pr.name,pr.sign?oe.createElement("span",{className:"sprite sprite-33"}):null))),cr),Tn&&oe.createElement("img",{style:{marginTop:33,marginRight:38},src:Tn,width:_n}))),rt={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"},at=pe(92310),Dt=pe.n(at),Me=pe(78267),ce=({dataSource:rr=[],value:Tn,onChange:_n,onTitleChange:Ln,className:mr,title:cr,titleWidth:pr=41,style:Rr={},fontColor:Wr="#6A7283",showCount:Gr})=>{const[ai,ti]=(0,oe.useState)(1),[xi,mi]=(0,oe.useState)(!1),Xt=(0,oe.useRef)(null),Kn=(0,oe.useRef)(null);return(0,oe.useEffect)(()=>{var Lr;rr.length!==0&&(((Lr=Xt==null?void 0:Xt.current)==null?void 0:Lr.clientHeight)>97?ti(1):ti(0)),rr.length===0&&ti(0),mi(!1)},[rr]),oe.createElement("div",{className:Dt()(rt.row,mr,"fadeIn","animated"),style:Rr},oe.createElement("div",{onClick:(0,Me.throttle)(()=>Ln==null?void 0:Ln(),2e3),style:{width:pr,marginTop:xi?12:4},className:`${rt.title} ${Ln?"current":""}`},cr),oe.createElement("div",{className:xi?`${rt.tagsWrap} ${rt.tagsBorderWrap}`:rt.tagsWrap},oe.createElement("div",{className:rt.bar,ref:Kn,style:ai>0?{height:ai===1?97:"auto",overflow:ai===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},oe.createElement("div",{className:rt.tag,ref:Xt},rr==null?void 0:rr.map(Lr=>oe.createElement("span",{onClick:()=>_n(Lr.id),key:Lr.id,style:{color:Wr},className:Tn===Lr.id?rt.active:""},oe.createElement("span",{title:Lr.name,className:rt.name},Lr.name),!!Gr&&oe.createElement("span",{className:rt.num},Lr.count))))),!!ai&&oe.createElement(oe.Fragment,null,ai===1?oe.createElement("div",{onClick:()=>{var Lr;ti(2),((Lr=Xt==null?void 0:Xt.current)==null?void 0:Lr.clientHeight)>245?mi(!0):mi(!1)},className:rt.action},"\u5C55\u5F00",oe.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):oe.createElement("div",{onClick:()=>{Kn.current.scrollTop=0,ti(1),mi(!1)},className:rt.action},"\u6536\u8D77",oe.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},ke={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"},Ve=({dataSource:rr=[],value:Tn,onChange:_n,className:Ln,style:mr={}})=>oe.createElement("div",{style:mr,className:Dt()(ke.tabs,Ln)},rr.map(cr=>oe.createElement("span",{onClick:()=>_n(cr.id),className:Tn===cr.id?ke.active:"",key:cr.id},cr.name))),Ke={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"},He=pe(37568),ze=({dataSource:rr=[],value:Tn="",onChange:_n,onInputChange:Ln=()=>{},className:mr,style:cr={},placeholder:pr,allowClear:Rr=!1})=>{var Wr;const[Gr,ai]=(0,oe.useState)(""),[ti,xi]=(0,oe.useState)("");(0,oe.useEffect)(()=>{var Kn;let Lr=Tn;(Kn=JSON.stringify(Tn))!=null&&Kn.includes("{")&&(ai(Tn.id),Lr=Tn.value||"");try{xi(decodeURIComponent(Lr||""))}catch(wr){xi(decodeURIComponent(Lr||""))}},[Tn]);const mi=()=>{_n(encodeURIComponent(ti),Gr||null)},Xt=Kn=>{Kn!==Gr&&(ai(Kn),_n(encodeURIComponent(ti),Kn))};return oe.createElement("div",{className:Dt()(Ke.input,mr),style:cr},!!rr.length&&oe.createElement("div",{className:Ke.dropdown},oe.createElement("div",{className:Ke.text},(Wr=rr.find(Kn=>Kn.id===Gr))==null?void 0:Wr.name,oe.createElement("i",{className:"iconfont icon-zhankai4"}),oe.createElement("b",{className:Ke.b1}),oe.createElement("b",{className:Ke.b2})),oe.createElement("div",{className:Ke.menu},rr.map((Kn,Lr)=>oe.createElement("div",{key:Lr,onClick:()=>Xt(Kn.id)},Kn.name)))),oe.createElement(He.default,{onPressEnter:mi,value:ti,onChange:Kn=>{xi(Kn.target.value),Ln(encodeURIComponent(Kn.target.value),Gr||null)},placeholder:pr,variant:"borderless",allowClear:Rr,onClear:()=>_n("",Gr||null)}),oe.createElement("i",{onClick:mi,className:"iconfont icon-sousuo9 font14 current"}))},qe={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"},Bt=({value:rr,onChange:Tn,className:_n,total:Ln,pageSize:mr,style:cr={}})=>{const pr=rr<2,Rr=rr>=Math.ceil(Ln/mr);return Ln<=mr?oe.createElement(oe.Fragment,null):oe.createElement("div",{className:Dt()(qe.quickPager,_n),style:cr},oe.createElement("div",{onClick:()=>{pr||Tn(rr-1,"prev")},className:pr?qe.disabled:""},"\u4E0A\u4E00\u9875"),oe.createElement("div",{onClick:()=>{Rr||Tn(rr+1,"next")},className:Rr?qe.disabled:""},"\u4E0B\u4E00\u9875"))},vt={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"},yt=pe(29787),Nt=pe(25399),Et=pe(63139),pn=pe(14185),Pt=pe(76406),St=pe(90736),Je=({className:rr,dataSource:Tn=[],col:_n=4,right:Ln,bottom:mr=23,precision:cr=0,wrapWidth:pr=1200,trackEventItems:Rr,loading:Wr})=>{const Gr=Math.floor((pr-(_n-1)*Ln)/_n);return oe.createElement(yt.Z,{spinning:Wr},oe.createElement("div",{className:Dt()(vt.list,rr)},!!Tn.length&&Tn.map((ai,ti)=>{const{name:xi,id:mi,identifier:Xt,power:Kn,cover_image_id:Lr,pic:wr}=ai;return oe.createElement("div",{className:vt.wrap,key:mi,style:{width:Gr,marginRight:(1+ti)%_n===0?0:Ln+cr,marginBottom:mr}},oe.createElement("a",{target:"_blank",href:`/shixuns/${Xt}/challenges`,className:vt.li,onClick:Lt=>{Lt.preventDefault(),Rr&&(0,Pt.L9)([Rr]),Kn&&(0,Pt.xg)(`/shixuns/${Xt}/challenges`)}},oe.createElement("div",{className:vt.img},oe.createElement("img",{className:vt.cover,src:`${wr}`}),ai.is_jupyter&&oe.createElement("span",{className:`sprite sprite-43 ${vt.sign}`}),ai.is_jupyter_lab&&oe.createElement("span",{className:`sprite sprite-42 ${vt.sign}`}),ai.is_unity_3d&&oe.createElement("span",{className:`sprite sprite-44 ${vt.sign}`})),oe.createElement("div",{className:vt.name},oe.createElement(Nt.Z,{title:xi||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},oe.createElement("span",{className:vt.e},xi||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),oe.createElement("div",{className:vt.tags},oe.createElement(Nt.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},oe.createElement("span",null,oe.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),oe.createElement("span",null,ai.challenges_count))),!!ai.myshixuns_count&&oe.createElement(Nt.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},oe.createElement("span",null,oe.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),oe.createElement("span",null,ai.myshixuns_count))),oe.createElement(Nt.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},oe.createElement("span",null,oe.createElement("span",null,ai.level))),oe.createElement("div",{className:vt.rate},oe.createElement(Et.Z,{allowHalf:!0,disabled:!0,defaultValue:ai.score_info}),oe.createElement("span",null,"\xA0",ai.score_info?`${ai.score_info}\u5206`:"5\u5206")))),!Kn&&oe.createElement("div",{className:vt.lockWrap},oe.createElement("img",{src:`${pn.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),oe.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Tn.length&&oe.createElement(St.Z,null)))},wt=pe(54077),lt={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",btnsTop:"btnsTop___Lrm6T",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},Fe=pe(62957),Zt=pe(96599),$e="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",At=pe(59301),Qt=(rr,Tn,_n)=>new Promise((Ln,mr)=>{var cr=Wr=>{try{Rr(_n.next(Wr))}catch(Gr){mr(Gr)}},pr=Wr=>{try{Rr(_n.throw(Wr))}catch(Gr){mr(Gr)}},Rr=Wr=>Wr.done?Ln(Wr.value):Promise.resolve(Wr.value).then(cr,pr);Rr((_n=_n.apply(rr,Tn)).next())}),xe=({className:rr,dataSource:Tn=[],col:_n=4,right:Ln,bottom:mr=23,precision:cr=0,wrapWidth:pr=1200,trackEventItems:Rr,loading:Wr,category:Gr,hiddenClick:ai,handleVery:ti=()=>!0,isCurrent:xi})=>{const[mi,Xt]=Fe.default.useModal(),Kn=Math.floor((pr-(_n-1)*Ln)/_n),Lr=wr=>Qt(void 0,null,function*(){mi.confirm({title:"\u7F6E\u9876",width:500,content:At.createElement("div",null,"\u60A8\u786E\u5B9A\u8981\u5C06",At.createElement("span",{className:"c-blue"},"\u201C",wr.name,"\u201D"),"\u8BFE\u5802\u7F6E\u9876\u5417\uFF1F"),okText:"\u786E\u8BA4\u7F6E\u9876",centered:!0,cancelText:"\u53D6\u6D88"})});return At.createElement(yt.Z,{spinning:Wr},Xt,At.createElement("div",{className:Dt()(lt.list,rr)},!!Tn.length&&Tn.map((wr,Lt)=>{const{subject_identifier:Vt,id:ot,identifier:kt,power:ft}=wr,Gt=wr.is_public!=0&&wr.is_public;return At.createElement("div",{className:lt.wrap,key:ot,style:{width:Kn,marginRight:(1+Lt)%_n===0?0:Ln+cr,marginBottom:mr}},wr.homepage_show&&At.createElement("div",{className:lt.btnsTop},At.createElement(Zt.default,{color:"red"},"\u7F6E\u9876")),At.createElement("a",{className:lt.li,onClick:Fn=>{Fn.preventDefault(),ti(wr==null?void 0:wr.first_category_url)&&(Rr&&(0,Pt.L9)([Rr]),(0,Pt.xg)(wr.first_category_url))}},At.createElement("div",{className:lt.top},At.createElement(Nt.Z,{title:wr.name},At.createElement("div",{className:lt.name},wr.name)),At.createElement("img",{className:lt.img,src:pn.Z.IMG_SERVER+"/images/"+wr.avatar_url}),At.createElement("div",{className:lt.text,title:wr.creator},wr.creator),Vt&&At.createElement("div",{className:lt.btns},At.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),At.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Gt&&At.createElement("div",{className:lt.sign},"\u516C\u5F00"),xi&&At.createElement("div",{className:lt.hidden,onClick:Fn=>{Fn.stopPropagation(),ai(wr)}},At.createElement("i",{className:`iconfont ${Gr=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),Gr=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF")),At.createElement("div",{className:lt.bottom},wr.visits>0&&At.createElement(Nt.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},At.createElement("span",null,At.createElement("i",{className:"iconfont icon-liulanyan"}),At.createElement("span",null,wr.visits))),wr.course_members_count>0&&At.createElement(Nt.Z,{title:"\u6210\u5458",placement:"bottom"},At.createElement("span",null,At.createElement("i",{className:"iconfont icon-chengyuan"}),wr.course_members_count)),wr.tasks_count>0&&At.createElement(Nt.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},At.createElement("span",null,At.createElement("i",{className:"iconfont icon-zuoye"}),wr.tasks_count)),wr.is_end?At.createElement("div",{style:{color:"#6B758B"}}):At.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!wr.is_accessible&&At.createElement("div",{className:lt.lockWrap},At.createElement("img",{src:`${pn.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),At.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Tn.length&&At.createElement(St.Z,null)))},It={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"},Cn=pe(44283),Ze=({dataSource:rr=[],value:Tn,onChange:_n,className:Ln,style:mr={},tabBarExtraContent:cr})=>oe.createElement("div",{className:Dt()(It.tabs,Ln),style:mr},oe.createElement("div",{className:It.tabsWrap},rr.map((pr,Rr)=>!(pr!=null&&pr.hide)&&oe.createElement("aside",{className:It.tab,onClick:()=>{_n(pr.id),pr.link&&Cn.history.push(pr.link)},key:Rr},oe.createElement("div",{className:Tn===pr.id?It.active:""},pr.name),(pr==null?void 0:pr.resetCount)==null&&(pr==null?void 0:pr.total)!==void 0&&oe.createElement("span",null,"\uFF08",pr==null?void 0:pr.total,"\uFF09"),(pr==null?void 0:pr.resetCount)!==void 0&&(pr==null?void 0:pr.total)!==void 0&&oe.createElement(Nt.Z,{title:(pr==null?void 0:pr.tip)!=null?pr==null?void 0:pr.tip:""},oe.createElement("span",{style:{color:"#9096A3"}},"\uFF08",oe.createElement("span",{style:{color:"#000"}},pr==null?void 0:pr.resetCount),"/",oe.createElement("span",null,pr==null?void 0:pr.total),"\uFF09"))))),oe.createElement("div",{className:It.tabBar},cr)),_t=({className:rr,style:Tn={},children:_n})=>oe.createElement("div",{className:Dt()(rr),style:Tn},_n),In={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"},xn=pe(75727),Wn=pe(93041);const ct=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var Rt=({sortValue:rr,dropValue:Tn,className:_n,onSort:Ln,onDrop:mr,dataSource:cr=ct})=>{var pr;return oe.createElement("div",{className:Dt()(In.orderWrap,_n)},oe.createElement(xn.Z,{dropdownRender:()=>oe.createElement(Wn.default,null,cr.map((Rr,Wr)=>oe.createElement(Wn.default.Item,{key:Wr,onClick:()=>mr(Rr.id)},Rr.name)))},oe.createElement("span",{className:In.orderTextWrap},(pr=cr.find(Rr=>Tn===Rr.id))==null?void 0:pr.name)),oe.createElement("span",{className:In.orderIconWrap},oe.createElement("span",{className:In.orderAsc},oe.createElement("i",{className:rr==="asc"?`iconfont icon-sanjiaoxing-up font12 ${In.cursorPointer} ${In.active}`:`iconfont icon-sanjiaoxing-up font12 ${In.cursorPointer}`,onClick:()=>Ln(rr==="asc"?"desc":"asc")})),oe.createElement("span",{className:In.orderDesc},oe.createElement("i",{className:rr==="desc"?`iconfont icon-sanjiaoxing-down font12 ${In.cursorPointer} ${In.active}`:`iconfont icon-sanjiaoxing-down font12 ${In.cursorPointer}`,onClick:()=>Ln(rr==="asc"?"desc":"asc")}))))},be={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"},de=pe(7939),le=Object.defineProperty,ye=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,he=Object.prototype.propertyIsEnumerable,We=(rr,Tn,_n)=>Tn in rr?le(rr,Tn,{enumerable:!0,configurable:!0,writable:!0,value:_n}):rr[Tn]=_n,tt=(rr,Tn)=>{for(var _n in Tn||(Tn={}))Ie.call(Tn,_n)&&We(rr,_n,Tn[_n]);if(ye)for(var _n of ye(Tn))he.call(Tn,_n)&&We(rr,_n,Tn[_n]);return rr},dn=(rr,Tn)=>{var _n={};for(var Ln in rr)Ie.call(rr,Ln)&&Tn.indexOf(Ln)<0&&(_n[Ln]=rr[Ln]);if(rr!=null&&ye)for(var Ln of ye(rr))Tn.indexOf(Ln)<0&&he.call(rr,Ln)&&(_n[Ln]=rr[Ln]);return _n},ut=(rr,Tn,_n)=>new Promise((Ln,mr)=>{var cr=Wr=>{try{Rr(_n.next(Wr))}catch(Gr){mr(Gr)}},pr=Wr=>{try{Rr(_n.throw(Wr))}catch(Gr){mr(Gr)}},Rr=Wr=>Wr.done?Ln(Wr.value):Promise.resolve(Wr.value).then(cr,pr);Rr((_n=_n.apply(rr,Tn)).next())}),en=rr=>{var Tn=rr,{className:_n,style:Ln,children:mr,loading:cr=!1,openLoading:pr,onClick:Rr=()=>{},size:Wr="middle",shape:Gr="round"}=Tn,ai=dn(Tn,["className","style","children","loading","openLoading","onClick","size","shape"]);const[ti,xi]=(0,oe.useState)(!1);return oe.createElement(de.ZP,tt({onClick:(0,Me.throttle)(mi=>ut(void 0,null,function*(){pr&&xi(!0);try{yield Rr(mi)}catch(Xt){console.log("error",Xt)}pr&&xi(!1)}),2e3,{leading:!0,trailing:!1}),className:Dt()(be.btn,be[`${Wr}-${Gr}`],_n),style:Ln,size:Wr,shape:Gr,loading:ti||cr},ai),mr)},Sn={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"},ar=({className:rr,style:Tn,children:_n=null,onClick:Ln,title:mr})=>oe.createElement("div",{className:Dt()(Sn.head,rr),style:Tn},oe.createElement("span",{className:"primary-hover",onClick:Ln},oe.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),oe.createElement("b",{title:mr},mr),oe.createElement("div",{className:Sn.node},_n)),Mt={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"},ln=({confirmShow:rr=!0,confirmTitle:Tn,confirmClick:_n,cancelShow:Ln=!0,cancelTitle:mr,cancelClick:cr,className:pr,style:Rr,confirmLoading:Wr=!1})=>oe.createElement("div",{className:Dt()(Mt.btns,pr),style:Rr},rr&&oe.createElement(de.ZP,{loading:Wr,onClick:_n,type:"primary",className:Mt.confirm},Tn),Ln&&oe.createElement(de.ZP,{onClick:cr,className:Mt.cancel},mr)),Un={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"},un=({className:rr,style:Tn={},LeftContent:_n,children:Ln,RightContent:mr})=>oe.createElement("div",{className:Dt()(Un.fixedBottom,rr),style:Tn},oe.createElement("div",{className:Un.wrap},oe.createElement("div",{className:Un.left},_n),oe.createElement("div",{className:Un.center},Ln),oe.createElement("div",{className:Un.right},mr))),ir={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"},Ft=({className:rr,style:Tn={},dataSource:_n=[]})=>oe.createElement("div",{className:Dt()(ir.crumbs,rr),style:Tn},_n.map((Ln,mr)=>mr<_n.length-1?oe.createElement(oe.Fragment,{key:mr},Ln.path||Ln.onClick?oe.createElement("span",{className:ir.hover,onClick:Ln!=null&&Ln.onClick?Ln.onClick:()=>Cn.history.push(Ln.path)},Ln.name):oe.createElement("span",null,Ln.name),oe.createElement("span",null,"\xA0",">","\xA0")):oe.createElement("span",{key:mr,style:{color:"#5F6368"}},Ln.name))),An=pe(11938),Qn=Object.defineProperty,Jn=Object.defineProperties,nt=Object.getOwnPropertyDescriptors,gt=Object.getOwnPropertySymbols,Kt=Object.prototype.hasOwnProperty,vn=Object.prototype.propertyIsEnumerable,Rn=(rr,Tn,_n)=>Tn in rr?Qn(rr,Tn,{enumerable:!0,configurable:!0,writable:!0,value:_n}):rr[Tn]=_n,hr=(rr,Tn)=>{for(var _n in Tn||(Tn={}))Kt.call(Tn,_n)&&Rn(rr,_n,Tn[_n]);if(gt)for(var _n of gt(Tn))vn.call(Tn,_n)&&Rn(rr,_n,Tn[_n]);return rr},$r=(rr,Tn)=>Jn(rr,nt(Tn)),Xr=(rr,Tn)=>{var _n={};for(var Ln in rr)Kt.call(rr,Ln)&&Tn.indexOf(Ln)<0&&(_n[Ln]=rr[Ln]);if(rr!=null&>)for(var Ln of gt(rr))Tn.indexOf(Ln)<0&&vn.call(rr,Ln)&&(_n[Ln]=rr[Ln]);return _n};const{Countdown:vr}=An.default;var Dr=rr=>{var Tn=rr,{onChange:_n}=Tn,Ln=Xr(Tn,["onChange"]);const[mr,cr]=(0,oe.useState)(null);(0,oe.useEffect)(()=>{typeof mr=="number"&&mr>=0&&_n(mr)},[mr]);const pr=Rr=>{const Wr=Math.floor(Rr/1e3);cr(Wr)};return oe.createElement(vr,$r(hr({},Ln),{onChange:pr}))}},79006:function(gr,zn,pe){"use strict";pe.d(zn,{Z:function(){return qt}});var oe=pe(59301);function qt(Xe,Ht){const rt=(0,oe.useRef)();(0,oe.useEffect)(()=>{rt.current=Xe}),(0,oe.useEffect)(()=>{function at(){rt.current()}if(Ht!==null){let Dt=setInterval(at,Ht);return()=>clearInterval(Dt)}},[Ht])}},60498:function(gr,zn,pe){"use strict";pe.r(zn),pe.d(zn,{default:function(){return Wn}});var oe=pe(59301),qt=pe(6767),Xe=pe(62957),Ht=pe(29787),rt=pe(37639),at=pe(47889),Dt=pe(44104),Me={flex_box_center:"flex_box_center___Ja97S",flex_space_between:"flex_space_between___RJu4E",flex_box_vertical_center:"flex_box_vertical_center___jhPTF",flex_box_center_end:"flex_box_center_end___ZtezU",flex_box_column:"flex_box_column___MqeI4",wrap:"wrap___k3OOZ",head:"head___h6t3O",empty:"empty___S6QaM",content:"content___sMZPl",left:"left___J41Si",title:"title___GUZvZ",add:"add___zhwIv",leftBar:"leftBar___u_UUF",li:"li___Hnrra",active:"active___N4MxL",right:"right___eLWWO",rightBar:"rightBar___fMTLo",center:"center____NDzP",tabs:"tabs___jdS5u",cut:"cut___w1Pz_",action:"action___QkQ0f",tagBtn:"tagBtn___g2gHo",actActive:"actActive___ESHzD",answers:"answers___dVktP",btn:"btn___BnDvU",disableBtn:"disableBtn___WYJSQ",open_md:"open_md___Qcc2e",tip_container:"tip_container___cApBC",container_text:"container_text___riFvY",btn_send:"btn_send___jN38z",hide:"hide___wZuLt","md-container":"md-container___Am7nQ",unsolved:"unsolved___z4SON",box:"box____EpoE",hot:"hot___oUwVX",animation:"animation___YQjk7",stop:"stop___R1QBJ",disabledElement:"disabledElement___jKwzo",text:"text___Si2da",md_editor:"md_editor___vGEmh"},Pe=pe(49317),ce=pe(44283),ke=pe(76406),Le=pe(14185),Ve=pe(39967),Ke=pe(66649),He=pe.n(Ke),Ge="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAeAAAAHgCAYAAAB91L6VAAAAAXNSR0IArs4c6QAAQABJREFUeAHtnQecVcXZ/+fctnc7ve+ilCCINJWo2IgQS2J7TUhilBQNxsSQ2NONpmlM3uQ1/k3QxJqYhJhYo1GjooCiIoogIKDiLh0Wlu23nv8zF5bcu+zdvWVmzsw5v/l8LnvKnOd55juH+9xpz1i2bfsZEgiAAAiAAAiAgFICPqXaoAwEQAAEQAAEQCBFAA4YLwIIgAAIgAAIOEAADtgB6FAJAiAAAiAAAnDAeAdAAARAAARAwAECcMAOQIdKEAABEAABEIADxjsAAiAAAiAAAg4QgAN2ADpUggAIgAAIgAAcMN4BEAABEAABEHCAABywA9ChEgRAAARAAATggPEOgAAIgAAIgIADBOCAHYAOlSAAAiAAAiAAB4x3AARAAARAAAQcIAAH7AB0qAQBEAABEAABOGC8AyAAAiAAAiDgAAE4YAegQyUIgAAIgAAIwAHjHQABEAABEAABBwjAATsAHSpBAARAAARAAA4Y7wAIgAAIgAAIOEAADtgB6FAJAiAAAiAAAnDAeAdAAARAAARAwAECcMAOQIdKEAABEAABEIADxjsAAiAAAiAAAg4QgAN2ADpUggAIgAAIgAAcMN4BEAABEAABEHCAABywA9ChEgRAAARAAATggPEOgAAIgAAIgIADBOCAHYAOlSAAAiAAAiAAB4x3AARAAARAAAQcIAAH7AB0qAQBEAABEAABOGC8AyAAAiAAAiDgAAE4YAegQyUIgAAIgAAIwAHjHQABEAABEAABBwjAATsAHSpBAARAAARAAA4Y7wAIgAAIgAAIOEAADtgB6FAJAiAAAiAAAnDAeAdAAARAAARAwAECcMAOQIdKEAABEAABEIADxjsAAiAAAiAAAg4QgAN2ADpUggAIgAAIgAAcMN4BEAABEAABEHCAABywA9ChEgRAAARAAATggPEOgAAIgAAIgIADBOCAHYAOlSAAAiAAAiAAB4x3AARAAARAAAQcIAAH7AB0qAQBEAABEAABOGC8AyAAAiAAAiDgAAE4YAegQyUIgAAIgAAIwAHjHQABEAABEAABBwjAATsAHSpBAARAAARAAA4Y7wAIgAAIgAAIOEAADtgB6FAJAiAAAiAAAnDAeAdAAARAAARAwAECcMAOQIdKEAABEAABEIADxjsAAiAAAiAAAg4QgAN2ADpUggAIgAAIgAAcMN4BEAABEAABEHCAABywA9ChEgRAAARAAATggPEOgAAIgAAIgIADBOCAHYAOlSAAAiAAAiAAB4x3AARAAARAAAQcIAAH7AB0qAQBEAABEAABOGC8AyAAAiAAAiDgAAE4YAegQyUIgAAIgAAIwAHjHQABEAABEAABBwjAATsAHSpBAARAAARAAA4Y7wAIgAAIgAAIOEAADtgB6FAJAiAAAiAAAnDAeAdAAARAAARAwAECcMAOQIdKEAABEAABEIADxjsAAiAAAiAAAg4QgAN2ADpUggAIgAAIgAAcMN4BEAABEAABEHCAABywA9ChEgRAAARAAATggPEOgAAIgAAIgIADBAIO6IRKLxNYtMjafc01A9sjkeEsFhvGP0nLGshsuw/9Gqy2bbua8PQ58Km2GSuxbDvILCtIx0GOzufz3R6eNu3mgQsXtvNzJBAAARAwkQAcsIm1prnNe2fPrmjZvn0si0TG2onEWDL3I3YyOdqyrOF0PJScbLfvXTJLucjxMnLQ/N8XSqqrvzHkrbfW8RMkEAABEDCZQLdfhCYXCLYrJECt2e1XXfWReEvLFHKwU/mHHOUEcpVDu7OCHG93l3u/Zlk7/X7/VSM2bPhr75mRAwRAAATMIAAHbEY9aWHl5hNOGGLv3HkiGXMitWyn0d/J5FLLZRpHreblwX79Lhi6fPkWmXogGwRAAARUE4ADVk3cIH2bjz76cLu5+aRkInESjcOeRC3YMSrNt3y+P9fOmjWPLVgQUakXukAABEBABQE4YBWUTdFx2WUlmxctOoVat2fR50xq3Y7uNL3AzuPOx/P6azGWsPz+b9ds3PjrvB5EZhAAARAwiAAcsEGVJcPULccdNzTZ0HA2d7g0fnsaOdoyGXpylmlZMSsU+nTNunVP5PwMMoIACICAgQTggA2stGJN3jFjRv/ozp0XUNfyZ1Jdy7Syp1iZIp7nLV8WCl0E5yuCJmSAAAjoTgAOWPcaEmRf48yZlc1btpxvx+OfIZGndS4FUtm13FNRyPnazO+/pHbdun/0lA/3QAAEQMAtBOCA3VKTWcqxZfz46YlodB5LJuc43r2cxUZ+2QoErqjZsOFPPWTBLRAAARBwFQE4YFdV5/7C7DvppKqm7dsvpC7meTSuO0n3Ivr8/p+Q812gu52wDwRAAAREEoADFknTYVnbJk0aG2tru4olEp/XubWbjonW+b5Uc911N6VfwzEIgAAIeIEAzcGx/V4oqJvLuPWooz4aa2m5hsZRzyXHq8WEqlx4k70NgYEDpw577bWtueRHHhAAARBwEwG0gA2uzfojjviEHY1eQz+iTuLF0GVCVa5IrZKSS+B8c6WFfCAAAm4jAAdsYI3SxKoz4x0dPybTpxhofspkGve9HcuNTK092A0CICCCABywCIqKZGweP/7EZCTyE2rx8njM5ibL2lVx+OHfN7cAsBwEQAAEiicAB1w8Q+kS6o86amqypYW3eM+QrkyBApp49dO+zz7bokAVVIAACICAtgTggLWtGsZ2TZ8+sL2h4ee0hvcLZCbNWTI/USHerz35ZCw5Mr8qUQIQAIEiCRgzY7bIcpr1+J13+upGj76ibdeutbTH7hdpcpUrnC+vBF8w+AN2zz0xsyoE1oIACICAeAJYhiSeaVESaZz3JBrnvY3GeY8qSpCOD1vW2yPff5/vI4wEAiAAAp4ngC5oTV6BLbNm9Uls2vRr2pXoYk1MEm4GzXy+V7hQCAQBEAABQwnAAWtQcan1vJHI76mreagG5kgxgfrQE6WDB/9NinAIBQEQAAEDCcABO1hpTWecUd24ceNv3NzqPYjXsp4fsGTJjoPnOAABEAABjxOAA3boBeDBNBIdHQuo1TvMIROUqrV8vgeVKoQyEAABENCcAGZBq66g+fMDNMP5VxTJ6nHPOF/LilPgjYdVo4Y+EAABENCZAGZBK6ydHZMn10aam/9KM5ynK1TruCoa/11R+8EHniqz49BhAAiAgPYE0AWtqIrqx407mzZOuJtavX0VqdRHjc/3mj7GwBIQAAEQ0IMAuqBl18ONN/o/HD361mQ0+rAnnS/na1lrZGOGfBAAARAwjQBawBJrLDXLef36vzHbniVRjfaiaf3vZu2NhIEgAAIgoJgAHLAk4FumTBkdb2p6jJzvOEkqzBEbCGw1x1hYCgIgAAJqCMABS+C85YgjTk5EIn8n0f0liDdOpD8QQOxn42oNBoMACMgmgDFgwYQ3jx37xXg0+jSN98L5HmCbTCSSgjFDHAiAAAgYTwAOWGAVfjhmzHcT8fgfqNs5KFCs8aKSyWSV8YVAAUAABEBAMAF0QQsCWj9mzC0skbhakDh3iYlGPRHty12VhtKAAAjIJoBAHMUSXrTIqrv00jsonvNXihXl4udfoFCUK11cPhTNYQI05GNblhWjoC8xCnQTo/ctluR/Dxx3Xkv95deCwTiNi0TpmX2W39/oLylpDA4fvnfAo4+2OVwUqPcQATjgYiqbr/G9//77WDL52WLE4FkQAAE9CJBDjpMljRkfy2qkteyN5NwbydHvor91dji8ORgO1w2dN28bmzcPcxz0qD7jrIADLrTKeEznJ574O/2iPrtQEXgOBEDAbALcYZNT3ppyypa1mc7r+IfR2ne/319XOmzY+32ffbbF7FLCelkE4IALIXvnnb66m29+kJzvpwp5HM+AAAh4gwA5ZvLPbBO1oN+mbvHV5JhXBcvLVw356lc3oOXsjXegp1LCAfdEJ8u9ujFj7qYx37lZbuMyCIAACPRGoIOc8xpyzKvIMa9iweCqkurqlYOWLdvd24O47x4CcMB51mX96NG30bKar+X5GLKDAAiAQC4E1jKfb5EvEHixpG/fRXDIuSAzNw8ccB51R/v4/tROJq/P4xFkBQEQAIGCCVAr+R1qIS+yg8EXS/r3f3Hw0qUNBQvDg9oRgAPOsUqo2/lq6na+JcfsyAYCIAACQgmkxpMtazVvIftDoaeHz5r1H3bbbXzWNpKhBOCAc6i4zePHn5fs6Pg7zaag/wNIIAACIOA8Afoy2kOt44dZKLSw5sorX8CkLufrJF8L4IB7IVY/ceI0u7V1ETnfsl6y4jYIgAAIOEPAsnbR8qd/+IPBhcN///vF7NRT+exrJM0JwAH3UEHbjjlmeKyh4RV6kxFKsQdOuAUCIKAPAWoZb6PlTg+xcHhh7erVr+hjGSzpSgAOuCuRA+e7zz23rPXtt1+i0ylZsuAyCIAACOhNwLLW+/z+34SOP/7+wfff36G3sd6zDg44S53XjRr1Dwq0cW6W27gMAiAAAsYQoFZxA8W8/n3pkCF3DFiyZIcxhrvcUDjgbiqYlhtdQ8uNbu7mFi6BAAiAgLkELCtKzvgv/rKyXw9fvXq1uQVxh+VwwF3qsf7II0+w29ufp9YvtmrswganIAAC7iFAk7ae9YXDvxmxZs3T7imVWSWBA06rrx0zZvSPbN26giZdDU+7jEMQAAEQcC8BilPtKym5tmbt2ufcW0g9SwYHnFYvNO77L2r5np52CYcgAAIg4AkC1CJ+zF9Vde3wt956zxMF1qCQPg1s0MKE+jFjvgPnq0VVwAgQAAEHCND33znxpqZV9F14c+PMmZUOmOA5lWgBU5VvmTDh2ER7+xLqevZ77g1AgUEABECgKwHL2klRtr5f+4c/3IOgHl3hiDuHA77sspIPn3lmOSEdLw4rJIEACICAKwi86Q+Hrxqxdu1iV5RGs0J43gFTd8styUTias3qBeaAAAiAgDYEqDV8b9nEifMHPPpomzZGucAQTzvgrRMnHhdvbX2Jup4xFu6ClxlFAAEQkEjAst4NlpZ+btg777wtUYunRHvW8eyYOzcca2u7G87XU+87CgsCIFAoAdseF2tvf4W2Zv1aoSLwXCYBz7aAKdrVryja1TczceAMBEAABEAgBwKPhA477CtDX3hhbw55kSULAU864G2TJk2JNTe/htZvlrcCl0EABECgFwK0brjeCocvqlmzZmkvWXE7CwFPdkGT870NzjfLG4HLIAACIJADAVo3XMPD9lJv4vfYokUUYhopXwKeawHT+MVFdiJxb76gkB8EQAAEQCArgYdHHnvs59nChdGsOXDjEAKecsA8usu+Dz9cx2x78CEkcAEEQAAEQKBgAtQl/VzFEUf8T78nn2wtWIjHHvRUF3RTXd2P4Hw99oajuCAAAkoIUJf0aS3r1j27bebMvkoUukCJZ1rAmydNmpBsaVlBLwm2GXTBi4sigAAI6EmABoPX+AcPPn34smXb9LRQH6s80wJONDffAuerz4sHS0AABNxJgCa4Tojv2LF4y5Qpo91ZQnGl8oQDrp8wYQYhO1McNkgCARAAARDogcBhtLPSS1smTjyqhzyev+UJB2x3dPzE8zUNACAAAiCgkgBNdqVQvy/wkL8q1Zqky/UOePOECadT1/NJJlUKbAUBEAABlxDoE2ttfWLzUUcd6ZLyCC2G6x1wsr39x0KJQRgIgAAIgEA+BPrQBNgnt0+dWpPPQ17I62oHXD9u3KdoQsA0L1QkyggCIAACuhKg7+HhkcbGJ7FEKbOGXO2Ak9HoDZnFxRkIgAAIgIBDBMbHNm16lM2ZE3JIv3ZqXeuAN48bdw7RHq8dcRgEAiAAAh4lQC3hE+rfeON2jxb/kGK71gFT6/eaQ0qLCyAAAiAAAo4SSCaTX64fO/YyR43QRLkrI2HVTZx4vN3aulgTxjCjFwI+n+9BZllbe8lW2G3bLqP/8O7dQNyy1hO/xwqDg6cKIUD7iH+rp6A+PCay5fO9WYjsbM9Qy7GKNpGZl+2+cdctK+YLh2d5fStDVzrgDw8//CF6Ic8z7qX0qMFDHnqIlRx9tJTS2y0trO4o98YCKD/zTDbgjjuksIPQ7glQYB9Gqyu6v0lX+/3oR6zyC1/Ier+QG9GVK9m281z3lba9vH//aQOWL99ZCBM3POO6LuhtkyaNpVikfPwXyRQC8bg0S62SEmmyIRgEVBGI19erUqVSz5DWhoY/qFSomy7XOeBYW9vV1F3junLp9uKItIe69ESKy5QVDFLvNvYKz4SCM9MIuNQB82o4i/Zod+8QUS8vmqsc1faTT+5H4yQX9VJm3NaNgMQWcKqoIax60K3KYU9+BOJ1dfk9YFBu+s7+Bd+tziCThZnqKgcc27btYiITFkYHgtQQkNkCphJYAexAqaYioUUWARe3gDmycKKl5QE2f77n/qO6ygEn4/FLZf0HKEZuxQUXsMF//jPrd9NNrGruXFY6YwYLDBlSjEhXPWtLbgHDAbvqdfFkYdzcAk5VqG1Prn/ySc8tHXXNL44DWw5qGXgjMHIkC59wQuqT/u1BS6VY7L33WGzjxv1/+TF94h9+yOxYLD2ru48lt4AZWsDufn/cXjr6/xHf5v697ZOJxPdpD+G/D3/rrffcXqWd5XONA7Yjka90Fkq3v/7+/bs1ySovZ6FJk1KfjAyJRMoJp5xzFwedbG7OyOqGE+ktYL/fDZhQBo8SSJDzlf1/RBO04URT0/8jW87QxB7pZrjCATedcUY1SyYvkE6rQAW+vn3ze5IcRmDUqNSndPbsjGcTO3fubyV3ccxG/0KmHxxSExywVLwQnknAEvy+xVw8ASuTHGMU4GQWzYr+fO3GjX/ues+N565wwI0bN15ES49Kda0gf79+wkzzDxrE+Icdf3yGzFR39vvvZ3ZnU9e2Cd3ZNAsyoyzCT3yumuogHA8EiiVgVVQIFejyCViHsKJlib/Yc9ZZj/R78snWQ2667IIrHDBV2Jd1rhefQAecrZyp7myK+BTqGvWpa3f2gXFm3r2dbGrKJk7tddkOGOuA1danx7X5qquFEnD9BKyutGx7cOv69ddRs+WGrrfcdm68A94+bdo46reYrHPFiGwB513Onrqzd+1i8S5d2XxCmNHd2XkDwgMgIJaAr6pKqECvtYA5POoVu3Lr9OkLhr32mpwY8UJrqHBhxjvg6L59cwovvvwneRSmvMeA5ZuV0uAfOJDxT8lxx2VotNvaWCy9O5s7Ze6o+ezsaDQjrwknFBjfBDNho0sIwAEXX5E0pFgWb2i4iSRdWrw0fSUY74Cp+1lrB5zqjjLMAVhlZSw0cWLqk/Hq8u5smhCy8ytfSU0Ey7in8wm6oHWuHdfZBgcsqEqTyblbJk78v+GrV68SJFE7MUY3DahyJhJRLdf+dta0ivHfTl3S//Lu7MMPZ8ndu6WrEqrApt/TSCCggADv8fLnu+qhB7ts2nUpuWdPDznce4v+1/rira0/cG8JGTO6BRzv6NC69ctfHEfHfyW8ucmGBpbYt0+CZHkipW72IM9sSDaQgG/AAMYExh63SktZLQ3/pBL/IcmD1vAPHafea35MPVO0fCf1l987eP1A3tQqAz7RkT/D//IPz3fguPNv6hqPSkfXU+uOO//SNR4YiF9LDUHRMBT/m6ShqiTNI4muX8+ib7213wbBdUbbqJzP40SPePvtNYJFayHOaAdsJZOf1r1t46oWML2yfPY0EgiAQPcEAjU13d8QcZUPpfA1xgfWGafv8ZV+LEJVvjL4RLGGa69lHa++mu+jPean73cr0dr6Xcrkyk12jO2Cpn1/p9CvvrE91p4GN93WAuaTs4xLvCWABAIKCEh1wArsL1QFL/eg++5jwdraQkVkfY43tLZOnjwmawaDbxjrgGPt7eeYwF3XGdCFsjOyBcy755BAQAGBwIgRCrToqcIqKWGVF18s3Dj63+uPt7R8W7hgDQQa64BpnMKIeKHZ4kBrUPcFmWCkA0YLuKC6xkP5E/BqC7iTVGjKlM5DoX+pt/PCXdOnDxQqVANhRjrgHTNm9KcR/2M04NerCW5rAfP1wKYljwSyN61aXGlvkGK4ezn5aIMZKcm2Q2179mi74U6hZTZyElZk586PU7eEET8eXNUCppmP8c2bC33Xsj93YFJJ9gxF3pG833CR1hX1eHTNGrb3hhuKkmHSw32/9z2hs4x52fkEoo6lS3PGkJo13E1uvgQpNGFCN3e8cylBqyRkJSuRuIzdeOMt7IYbErJ0qJZrpAOmQfkzTRnVc1MLOLZp0/4lDoLfUtG7x3Q1L9sXZtd8Jp7z6GSx++830fSCbO5z/fXMErjMhxsRXbmSNXznOwXZk/4Q3/ebx2T3cpIZt5q+84fXP/DA+TU33PCQWxgb0YrMgL1okUXjAR/PuKbxiZtawNLGfyW3gPkaRiQQkE2AR4/zepIdt5rWOH/dTYyNc8BbLr/8WHLAtNrdjOSqFrCk8V8rILkjhgccQAIByQRCRx4pWYP+4qX9SD9QdPruPym1AY/+KHKy0DgHnIhGT8+pZBpk4tPyeVxltyRpE7Akx8rGJCy3vIF6l8Pr47+8diIUEUt2og14xK91km10FvnGOWDqgjglS1m0u+y6IBwmtoAN3L1JuxcZBvVKgM9jKJk2rdd8bs6Q2LKFJSg0pfRk259nNBQpXY8CBWY54PnzA0T9owq4CFHhujCUsqJgSWwB25GIkLqEEBDoiUBo0iRmVVT0lMX19yJvvqmkjNQNXVP3ta/NVKJMshLJg29ird/y7LPTaCZcqVip8qTF1q1jW2fPZsExYzI/o0czKxyWp1iC5MSOHSzZ2ipBMomUOAYMByynyiA1k0D4+OMzL3jwLLJihbpSRyJzSdnz6hTK0WSUA47HYifKwSBHKl/+EqPN7PknPaW2LBs+fL9TJmccHDv2oINO7R+cnlmTY5mTK2QuQ4ID1uQFcrkZ4RNOcHkJey+eUgecTJ6/a86cywcuXNjeu2X65jDKAdP63xmmrP/tqcqpCyUV0IIHtWhftCgjq5+2MzukxUwtaP/gwRn5VJ9IdcCC13Wms4EDTqeBYxkE+GTLkmOMCMwno/gpmfz/GQ8KoyqRHyiPrFrFJ+Q+okqnDD1GOWACMEMGBJ1kJmize/7pWLYswywfjS8ddMxpreZU7FmJY6idRkibAU0K+BeYrAQHLIss5HYSCB99tNR3uFOPzn95MBPV6+2T0eh5xAQOWMWLwdd+mbT+VzSTZEtLaop/12n+3HkFDz/8UOdM10RuDI4WsOgahTy3ECg9w4h9YaTiVtr9fKAktCLmk4wm5rLbbotLLZxE4ca0gKNNTa5v/RZSz6muH5rsFaVPerKoVRygvTkPtpr5RDDecqa/hczWlLoPsMQu6GS70UNE6VXa63Gfq65i1d/4Rq/5dM0QpTWk284/X1fzurWL/z8rgwNmkeXLu+Uj+WKf+mefPbWGsf9I1iNNvDEOmAgcK42CCwXTr0PGYzfzD/tP5vsZGDIk0zEfcM4+Gn/uLtnkxBLbtnV3S8g1qV3QbW1CbIQQEOiOQAl1P/sHum6XvO6K2uO1yBtv9Hhf1k17fzd05hecLGUS5JrjgJPJyRLK70mR8e3bGf+0L1mSUX5/dfV+x5w2K5u3mBN79tDuj/Kmv4kOrp9eKBsOOB0HjgUTKDvzTMES94tr+9e/WJz/eJaQeM9Y2dlnC5PM54ckGhuFyctLUDLJC3JFXs9olNkMB3znnT7yAEdpxM2VpiT27WMJ+iXb0eXXrMxlQhykTAcsbe2yK98AFCofAnw5oZTuZ1q+uOcHP2CJvXvzMSfnvFVf/KJQB9zx+us56xadkZoFw+snTx5fs3LlWtGyVcgzIhLW9jvu+AiBNiYAh4qKU6lD9nZ+Mh0w7z5HAgEZBEqOO475hw4VLprvTSzL+XJjRe/a5ND470HudkvLrIMnhh0Y4YDjbW3ofjbsxcrV3NROSBIjYaEFnGtNIF++BCovvDDfR3LK3/r44znlKzSTcAfsYAuYM6D5LrMLZeH0c0Y44GQyOcVpUNAvh4Ds3aIwBiyn3rwulW+0Unb66cIx8FUNbU8/LVxup8DUskWa1yEqJXbuZLG6OlHiCpJD+wOcwr70pWBBDzv8kBEOmGEClsOviTz1vlK5Iwt8/TQSCIgmUH7BBYwFxX/nt9OKhWRzs2hzD8ormTiRMdq5SVSKvPaaKFEFy+FRsba88oqRwbiNcMAEGC3ggl9PvR+U3QJONjXpDQDWGUmg8nOfk2J36yNyAzuFpoj9Ku3QwAHzikjG4x+TUiGShWrvgHcfc8wgmgE9SDIHiHeIgCW7BQwH7FDNuldt6YwZLMAjzQlOSVru1/7ii4KlZoormTo180KRZzq0gHkRaKKokbthaO+A29vaxhb5juBxjQn4ysqkWmfDAUvlK1Q4LesxIVVdfrkUM3nrV3Y8ZZEOOEnLFmPr10thkbdQy5rO+HJVw5L+Bsfjow1jCnPzIIAu6DxguT2rxGAvotCVTJ7MwtQClpFaFi6UIfagzABtgeofNuzgebEHEZr9LDNATz72kR0V226/fVI+z+iQV3sHTF0LaAHr8KZIsgEOWBJYiJVCoPprX5MiN/r22yz67rtSZHcKFb1ncdcd2zr1OPU32tZm3EQs7R0wsyxxc+adejOgNysBX2Vl1nsibmASlgiKkMEJ8LCspR//uBQYslu/3GjRLXfdHDA1x+V0TUip8f1C9XfAiYTRXdB8zCU4ahRLBZyQWJGmipbqgONx5qXdkEx9B0yxW1brl69Vb33sMekY+OQxUYn/sI2t1Sz6YzJ5nKjyqZKjfSxom7eADRgbylZh/X/6UxYcP56xWIzFPvyQxTZuTH14APPU8fvvs6SHNwzwVVVlQ1f09aRTAeKLthwCdCPg79uXlZ93nhSz+OQrmWt/udGhj3yEZdvtrJBCRV59lUegKuRRmc8ctm3mzL5DX3hBThBtCZZr7YB3TZ8+kJyvvG9oCUC7ivRRxJxUokX7nXvzds2T2LKF8Q3vUx/uoA8450RDQ9esrjuX6YD5Lk5IBhHQeBa0VV5Ou4bImaXd/MAD0ivJ9d3PBwjGduzgC51fkA5UkAKtHTAtQTJ+/Jf/cu4t+fnsRPqETz45IytvwXU641RrmRxznBx0nBy2hr8+M2zP9URmFzRfV4kEAiIIWBKiXnG7+EYG0XXrRJjYowy3T8DqLLwVjfJ9A+CAO4EU9TcSEb/avSiD8nvYV1FBfT+h/B5Ky+3r04fxDb/5Jz3xeLFx6rru6pxjH3zA+D2TkkwH7IUeBJPquldbNR5qkuWAVbR++fyTMO3cJCqlGga6jf8eKBwtRxIb6ksUtCxytG4BUwxocYvWsgCQeZkHbJeRUgHVaVw5NbacroDGZOL19Yc6Zmo16zob2JI4Bowu6PSXA8dFEZCwY1di+3bW9tRTRZmVy8O8+9nijQFBqeOVV7RZ/3tIkWzbqJ3z9HbAjA09BLBBFw6O/6qy2edjgZEjU5/Sj30sQ2ty9+5uHXN827aMfKpPcumiL9QmdEEXSs6h5ySNsYoojYwWcNPdd0uPfMXLXn722SIQHJTB9yvWOI1nc+aE2MKFUY1tPGia3g7Ysox2wLJawAdrL48DPgOyhH8++tGMp+zW1v2OuXNW9oFJYHGasW3TMh7ZyZfDGHmhNsABF0pu/3ORFSvYrnnzihOSz9MK3rd8zEnPK3oZoU07HrX85S/pKqQc896yMsFrlzuWLJFiqwih1AUdqF+zZmINYytEyJMtQ28HnEwa7YCVt4ALeFv47M7QpEmpT8bj9GXInXD6ODOP1BNdsyYjW7EnMlvA6IIusnZo6RzG0Q8wFDwJq/nBB5mKrTJLTzmFWQKD3aSGuOh7QesUiRxD9sEBC6gkox2wTi3gvOuCxrwCo0enPp3Rf/jC+61nnZW3qGwPpPYCLmKSWja5ndcTu3Z1HuIvCBRFQGgXNP2wab7nnqLsyfXh8nPOyTVrTvk6Xnopp3xOZkomk8eS/judtCFX3XpHwrJtox2wzO7VXCtYZD7eGhaZZPcQJHbsEGkuZHmZgMBJWDzsZFzBu8l3Gis97TShtdZugAO2bJs7YCOStg64cebMSpvmDxhBMYuR/v79s9wx87JoByy7hwAO2Mz3LJvVvBXKxzSdSMJawNT63XfHHUqKUDp7NrPCYXG6yHadx38PFtS2x+8+91y5+5weVFbcgbYOuH33bqNbv7xa0ALu+eUUGRqvqyY+yQVxoLtSMfucz/Bnfr8jhRDlgFv+9jcW37pVSRkqL7xQqJ4OCj9pQthcarj5O9avnya08JKEaeuAk7HYEEllViYWLeCeUfsHDuw5QxF3VXTxFWEeHi2AQMk0B79TRXRBR6PKWr983+KS6dMLoJz9kfbnnst+U7M7dixmRDe0tg6YppP30axO8zbHbS3gOEXaEpn8tCxKVkL3syyyzsjly4CqL7/cGeWkVUQLuPnPf2aq1t1XfeUrwlm1PfOMcJmyBFIrGA64GLjJRKKqmOd1eNZNLeAEdZuJ7tKV2QKGA9bhf4A4G/pcfTULHHaYOIF5Sip2HTAfEtl32215ai0se2DECFZ25pmFPZzlqeiqVcq6zrOYkN/lRIIvRdI+adsCJnLV2tPrwUD+H1bk+rseVCm5xTeDEJ38gwaJFnlQHhzwQRRGHwToHRnwi1+wqq9+1dlyFLkOuPG3v2UJRdtjVl1yCU1AEfvV3vr4487yz1M7tYBH8a0J83xMeXZtA3EQQKMdsNu6n2O0+YPo5B8ib5hfVVefaCY6ySs55hhW8+abjplk0YQrXX7EFtMFHd+8mTXfd58Sjv7qalYxZ45YXRRjvu2xx8TKVCCN5oFMIDVax83U1gHT77dq7bZ7zuOlkb3EJg9ThGQVvQSJGxUYKm+iO4/Yg1QkAXKAfEcuJBoDLmIS1t6bbmI2TcBSkSpo5rNF639FJj75ysRJjcR8HHHQ2gGL7acQWOvGt4Al7YQkEHFeokQ7YIu6yGR2QfNWBxIICCNQoANuf/ZZ1kYfFYlvfypj8lXTnUYElToEMU3kPeKQi5pd0NYBEyeju6Dd1gKOC46ClZqAJXFNZwIOWLOvGrPNsQoImco3Otlzww3KCl516aXCYw/wrQc7li9XVgaRiigiFm8Ba530dcDJpNGzoGWHWVT5VtktLSy+c6dQlf7hw4XKSxfGt15MdnSkX8IxCBRFoJAu6MZbb1W27Ij/oJXR+lU1c7uoysn2MFrA2cj0fp26D9AC7h2Tkhyiu5+50XyphKyE7mdZZD0sN88uaL5pQfP99ysDxpdpiR775WXoWLZMWRkkKDostTewBMGiROrbArYssTMJRBHLUQ6fNRzhoduoNWZ6kuKAa2jHTkkJE7AkgfWw2HxmQScbGtjua65h1IhQQqzkqKPEz3ymuM97brxRif2ylBB9/+a1a8fKki9CrrazoOntDYoooFMy+Lq5zrVzfGlAcOxYFhwzhgVpi7/UXzqX2Q0rstzGOWCM/4qsfsjiBHJdB0xOdze1RlVthcknM/b78Y9pmrYltJ6a/vhHJmPpoVAjcxBGIY35RKx3csjqSBZtHbBlWUFVvyBlk0/s28cSNJGh62QGvh9uYNQoFiJnzPfe7fwb5BF/8uzyklkGGQ44VUZJRsfr6iRJhlivEsh1DHjvz3/O2l98URmmSgq6EaK4zyJT9O23WeOvfy1SpGOy7Hhc64lY2jpg6j4wugWcyxvHQztG33kn9UnPz/+z851fUi1l3mru/JCTtshpq04yHHDg8MOlFcMNv9ylwYHgQwgkm5oOudb1Qi5d0Hyf36a77ur6qLRz3vXc99prhcpP7t3Ldl9xhbJ1y0KN706Ybcv7oulOX57XtHXANIU8qGYEJU9iCrLTrzbGnV7K8T399EGN1CuQ6rY+2I3d6Zjpr7SACYkEi3/44UEbRBzwjcJlrgGW8YNBRLkhQ08CiVxm+PfSI9X21FNsz/e+p6yAoSOOYIPuvjv3rvEcLOPzVXZcdBGLuSmITTIpL9pPDkx7y6KtA7apC5rGgXuz31P3eZc8n+HLP127ufjGD6lx5s4x5gPOudhwj7w7l7b2EsqZ/4CQlZK8u58mwSCBQK4Ecpk131MLuO2JJ9juK69k/IezqsTf8W1nny1UXZKWG/KPmxI1WuStdxQASlsHbPokLAF1k5cI/h+Sf7ouG+DRcdK7sDuPA7W1OQVsl9GaDH7kI3mVLZ/MMuzNRz/ymkegY2nv0QqzOeCmBQsYX+9rU0+RyqRqkpfKMknRZdvDpMgVJFRbB2xR5wrav8XXMv9FG3nrrdQnXZpVUsL4RKhOh3zwL00KY2lRf2Q4NN5Sl5VER+ySZSfk6kEg9u67LL59e+/GdOmC5tsL8qVGJu2R23sh3ZeDfEh/dtllJWzBgoiOpdPWAVMXdABd0PJeGTsSYVH68uGf9MSXNQRojW6nQ46sWJF+W8hxaALfpEROkrFtohxLIVUHAs0PPJCTGemzoDuWLGEN112nLMpVTgYiU1YC9W+8MZSiDmzKmsHBG9o6YC9PwnLwfWA2bT0Wo0lX/MNoFxQZSaoDFhyzWkb5IVMPAnzyVctDD+VkDI8FbVN408abb05FuHLLEsmcCm96prY2Pg68ScdiaOuAdYQFm4onwENQ+mjCmKwko8tclq2Q6yyBPT/8IeM9Qbmk6OrVrIFmOWOJWy60NMsTjWo7E1pbB0xd0HHqgg5pVpUwp0gCJVOnFikh++N2WxtDEI7sfHDnvwR413Nb2hK//97p/mjPT3/a/Q1c1Z+AxjOhtY0FTV3Q6ub06/8KucZCmQ44unZtqgvdNbBQECkEWv/5T7b3ppukyIZQ/QjQcMEQ/azab5HuLWBducGuAgnIHP/lUcWQQCArAVqnu++OO9i+3/yGOtewxiIrJ7fdsO1KXYukrQOmFnAC/0V0fW0Ks4tH8godeWRhD+fwVGzNmhxyIYvnCJDjbV+0iO295Ramyyz5kmnTWEjSeviWhx/OeWzbE++CZZXrWk5tHfCBMWBducGuAgjw+NYWBQaRlSI0UcbLKbZuHWt77DEvIzhYdj65Kr5tW2pOQPvzz7MExTjWKZWfdx6rvPhiKSbxsJiJHCeXSTFAN6HJpLZb22rrgPkYMFrAur3Jxdkjs/XLePzsDRuKM9Dwp1uffJLxD5L+BHg8dFkp2doqS7SpcuX96i+SiLaTsGh/S0zCKrJydXs8NHGiNJO487WjUWnyIRgERBLgIWJlJJt2WFMZk1pGGSTI1LYLWl8HTFtMS6gIiHSQgMwWcBTjvw7WLFTnS8Aql+MTkhQiEymTAE24kwM7U01BZ9o6YIKmbfd4QaQ9/pDl97PQpEnSKETefFOabAgGAdEEfLIccA57G4sui+7yaPKnnO4GAQXX1gHzzRgElA8iNCHA1//6qqulWRNZvlyabAgGAdEEZLWA+SYRSF0IoAXcBUhup9r+OMjNfORKJ1B62mnpp0KPk/SrP7Z+vVCZEAYCMgmgBSyTbqZsmswrb8Zbpqq8z3R2cu15lwYPaEug9GMfk2ZblHZsQmAFaXghWAIBWcvxMAbcTWXxAASaJjhgTSvGTWbxDRiCkoIOcE4dr7/uJlwoiwcIoAXsgUrOoYj6OmDLasvBfmQxgECZxNYvLz7Gfw14CWDiQQK+0lLGAnLmmPLhGCRzCGjrgKnfHg7YnPeoR0tljv+yWIxFVq7sUT9ugoBOBGRux5nct0+nosKWXgjI+RnWi9Kcbtu21DFg/4ABLDBE200yckJkRKZgkIWPO06aqXz7wdDYsdLkOyWYj+XFPvywV/V+2ls5NG5cr/mQQRyBjmXLitp1yz9woDhjukhK7N7d5QpOdSagrwOW3ALmsVj70gbbSGYTCIwezYY8/rjZhejGeh6/eOcll3RzJ/NSePp0NoB2+EFSR6B+wgTGI04VmviPJlkJDlgWWTlyte2CpolrcrugsR2ZnDcKUoUQsHza/tcUUj4vC5HpgJNoAXf3amn7n0lbwygWdEd3JIVdgwMWhhKCJBDQd+WEhMJ6S6SPhr9kpURDgyzRxsqljX38uhqvrQOmhVtyZxPAAev6TsIuTgAO2LXvgcwWMBzwoa8NbW0LB3wolp6v2D7flp5zFHk3mSxSAB4HAYkE4IAlwnVWNJ8AKiPxJUjYEexQstSYgwM+FEsvV2xbrgNGC7iXCsBtRwnAATuKX6ZyWV3QGP/NUmvogs4CpqfLodDWnm4Xew+hC4sliOelEsAkLKl4nRQeGDpUinrMgM6KlcJK6Jm0HQMOhcNSHTBDF7SebySs2k8ALWBXvgk8LHFg2DApZUvs3ClFrulCaQw4pmsZtHXAJf37y+2C1rVGYBcIEAEsQ3Lna+AfNIixUEhK4eJb5bZZpBitQCiNAcMB58u577PPttBMUHmbW6IFnG+VID8IgECRBPjGJLJSAg64W7Q03Bjv9oYGF7VtAafYyJyIhUlYGrx+MCErAYwBZ0Vj8g2/RAeMFnCWNwNd0FnA9HKZxkukdUPbaAH3Qh+3HSWAMWBH8ctSLrMFHN8i7etSFg4lcikQB7qgCyLt871X0HO5PIQWcC6UkMcpAnDATpGXqlemA07AAXdbd5iE1S2W3i9SC3hd77kKzAEHXCA4PKaCACZhqaCsXocsB2y3tbEEtiLstkIxCatbLL1fpC8hOODeMSGHGwmgBezGWmWBmhop5cL4b3asNAkLXdDZ8WS/EygrW5v9bpF30AIuEiAel0oADlgqXieEWyUl0hwwZkBnr1HqScUs6Ox4st8Z8uab9dR90Jo9RxF3MAmrCHh4VDoBOGDpiFUrCI4axZik2e2xTZtUF8cYfdQCluNDBBDQexnS/gK+K6Cch4hAKMpDkOCCTgQkfVHrVESv2RIcM0ZakeMffCBNtumCqQUsd2e9IgBp74CljQOjBVzEa4NHpRNAC1g6YtUKZDrgGBxw9ur0+Zqy33T2jvYOmKJhyRsHdpY9tINAVgL0qz3rPdwwk0Bw7FhphqMF3CNatIB7xNPDTSsYlOOA0QLugTpuOU4ADtjxKhBtgDQHHIsxBOHIXls03KhtCziQ3Ww97gTC4TcSHR3CjWlfvJht+8QnhMv1ikC+qfigP/6RsYDcV8iORNjOuXNZsqXFK2hT5eTlziXFN29mrQ89lEtWV+QpP/982l5d7P7qqTW0DQ258ylgBYVF/0+Chx2Wu448csbr6pidSOTxhLeyUl+Sti1gud+eAuqZz4SuGzVqN/2KGSBA3EERyaYmFl2z5uA5DvIjMOAXv5DufLlFzffcwzpeey0/4zyUO7JqFYtce61nSlx21lnMKisTWt72559nu77xDaEyuwoLjBwp7f8Lxn+70j7kHA74ECT5XXiDsp+e3yPILYtAydSprPzTn5Yl/qDcJEX22fe73x08xwEImEogNGGCNNP5+uKK884rSH7k7bdZ7P33C3rWlId0ngWtfQs4VcmWtYLZNhywBm88D5HY78YblViy7/bbGe+pQAIB0wmEjjxSWhHCJ53E+KeQ1P7cc2znpZcW8qgxz9A8Innb2hZJQf9Z0FRAfzC4oshy4nFBBCo+8xkWOuooQdKyi+GB5ZsfeCB7BtwBAYMIqPg/UwiO0o99jMmKT12IPTKeoUZDowy5ImQa4YADJSW8CxrJYQL+6mrWR9F4Y+Ovf81ynYjkMBaoB4FeCYQmTuw1jyMZaLZ95ec/74hqVUqpAbddla589RjhgAevXFlHM9ka8i0c8osl0Oeaa5ivb1+xQruRFlu3jrU+/HA3d3AJBMwjEKytZb6qKm0Nr5gzh1mhkLb2FWtYaWXl1mJlyHreCAecKrxloRUs6y3IQW746KNZhaJfynt//nNmY512DrWCLCYQ0LX7uZOdr18/Vk6zy92YqOHWXr14sbYTSUxywK+48QUxoUx8lmV/vuxIQXCIjhdfZO0vvWQCFtgIAjkR0Lb7Oc36iosvTjtz1eE2nUtjjgMuKVmiM0g329aH1kgG+E4ushMFE9jzk5/I1gL5IKCUAF+2p3sqmTaNyVwq5Vj5LQsOWAT80okTl1ELTNuNlUWUUUcZofHjWdVllykxjc96jm3cqEQXlICACgK0BIaFpkxRoapoHZVubAXDARf9XqQEDFy4sJ0OsBxJDM6cpFgU8i/V9Sw53CQ3Jrl3L9v3m9/kZBcygYApBHj3Mx/CMSGVn3uu1pPFCmKouQM2IxDHAfI+n29JMpH4aEEVgYfyJlBFC/RVjV813norS1DkK6TCCfDlJBWf/WzhAhx+Mvbuu2w3zbR3Uyo55hhjimOVlrKKCy5gTRT+1TUJDlhgVfr9S1gicbVAiRCVhUCItk7rc9VVWe6KvRylcHgtf/ubWKEelOYfPFjZDyYpeONxKWKdFBo+9lgn1eetu/Kii9zlgG1b2yVIvHKMagFXDRr04r4tW+K0MYNRduf9v8DhB/iawAH/93+MqVgbSDvL7LnhhryWHfF1i8HDD5dOibfIWh55RLoeKHAvgRJavmdS4pMtS2fMYO1Ll5pkdlZbfcHgpqw3NbhhlCPj67n2jRr1MnE7WQN2rjWhz5VXsiBNvlKRWh58kEXeeis/VbRGuOqrX83vmQJy80hc/IsosWtXAU/jkbwJKFjmlrdNRTwQHD2a8TW2piU+GcstDjjcv/8Gnfmbswypk6JlPdV5iL/iCYSnT1c26zlJe7Du5euL80ytjz3Gkrt35/lU/tn55JlqRTPA87fOhU8UsM+uzhT4/yUTU+msWSwwZIiJpmfYTLsgtQxYsmRHxkXNToxzwP7SUjhgSS+Rr6KCDfjf/1UScIMXYe9Pf1rQbkd2NMqa7r1XEoVMsTz6l3+A0K2oMxXgzLUEwieeKK1sHa+8wlhM0qpMWv1QceGF0mxXJdhm7D1VugrVY5wDHr569Wr6ZbO50ALjuewE+v3oR8w/fHj2DALvdFDXbksR8Z5517Xd0SHQou5FWeEwWsHdoxF/1UVd0HwJn0wH3P7006ztP/8RXwcHJPLZ9HwNs8mJwlBqH1TAOAeceiF8vn+b/GLoaHv52WezclqCoCLxsdU93/1uUaoStG649aGHipKR68MVNDMUreBcaRWRz0Vd0KFJk6Suqe14/XXW8ve/FwG750f9AweystNP7zmT7nctCw5YRh35QiFslSMQbPCww1h/2gBBVdpHWw3G6uqKVtd0992MKfjSRiu46KrynIDSU06RVma7pYXxHcM6KGa6zAmCpkfGsn0+OGAZb+GIb33rWepe2CZDttdk8olGA26/nVnl5UqKHluzhjX94Q9CdMU++IC1S+yGSzcSreB0GjjujUDpyfIWakRWrEgt27MpdnrrP/7RmykF3y+hSWShj3yk4OedfjDg92MMWEolzJuXpF83f5Ei22NC+1JXcOjII9WUmr4wdl97LeNfHKJS0113iRLVoxzeCq6aN6/HPLgJApwA3/s3NHmyNBgdr712UHaL5GEYk1vBdr9+6w+C0vTAzDFgghkoLX1AU6bGmFV2xhmscu5cZfbuu+MOFqUWsMjEx8J4JC0ViX8Z+fv3V6HKmzpcMgmrlM9+9sn7ao0sX37w/Yi99x7jLWJZqfz885lPUe+YyDLQRN3dI15+ebtImTJkyXtLZFibJpNmQ6+i3ZFWpl3CYR4EAiNGsAEFrMHNQ0VGVh5Vah91dctIaAXLoOqATAXj+SpKVXrqqfLU0BK8roFrWiVOxuJDU9wJG5iM8A3GOmD+Qvj8/vsNfDEcN5mP+w783e+YVVmpxhbqcm7gXc/05SEjtT31FEts2SJD9CEy0Qo+BIm4Cy5oAVu0c1jp7NnimHSR1EGtX76KID21PvGE1CV5JnZD24Y0zox2wKXV1X+hyVjiBhTT32oXH/enTe9V7XLEMe4jZx9ZtUoaUT6mrGoHF75jDMaCJVWlC1rA4eOOY74+fSQBYqxj8eJDZCdpVnTbk08ecl3UhSBNxAp/1KxN6CyfL8/4tqJo5SfHaAc8YPnynRTt5On8iuzt3HzLuvJPfUoZhOg777B9t90mXR/fTclubpauhytAK1gSZhe0gMvOPFMSnP1i22npUXdJ5ppgro/vkmRS8oXD6IJWUWHUDY3JWDmCLpk6lfWjnYeUJepybqCNHWxZIfPSCsJbAc1//WvaFXmHqVbwV74iTwEkG0mAWl1Sg1fw+OextWu7ZRN59VUW3ywvQCCfsMmDcxiRLCsy4lOfWmeCrUa3gDngmtNOe4wmY+0zAbaTNvJITnzclykML7f3lltYdIO6zUia772XBiTUjEjw2eN+A3e6cfIddLtuvm7WJ3GWfPuSJRR3hvr8ukn8uszJWIzGtis/97luNOt3ybLtd9gNN6j5Iiiy+MY7YLZgQcRnWWpiEhYJ26nHeUzXgTQDmW/YrirxYPHN99yjSl1KT3zrVtb2r38p0YlWsATMWZyLBE1SRMrufu5u/De9IC08KIdEhhXkgHmMa90TxYgwovuZczTfAVMhaIcktd/0ur+BXezjmyyUKJxEkdy3jzVcdVXWX+tdzBN6KirKVi5GVX7hC2gF5wLKA3lo3SmT6oDJsbZ3MwErHW2cVgJ0vMy3S5eT/LRFId+qUPfk8/le193GTvtc4YCHrV69jLqhX+wsFP7+l0AVdZWq3lqs4brrWHy7M2vg+WxrPh6mIqEVrIKyGTpKjj1W6hhp5M03c4r7LH0ylsLAPYXWPEWtW1ros6qfC6hWKEufr6TkZ8mOjlNkyTdRbumMGazvD3+o1PSWP/+ZtT3zjFKdXZXxwBwDFbX4+Vgw15fYs6erGcaf8+ApexVu0pFsajKWWcWcOVJtb8/x/1Tbv/+dWg0ga41/+IQTWHD0aMYjcOmYaFnq3hGrVr2jo23d2eQaB1yzdu1zH44a9Sr1e5q1YK27WhFwLXj44WwAhX5kCsdsYuvXsz0//rEA64sT0f788yz+/vssMGpUcYJyeNoqK2NVNCOaTzhzW0o2NrL2F9Gx1Fu9+ioqWNlZZ/WWraj7bbT/by6JB+loffxxqb1efCnjnptuysUc9XksS14fvITSuKILupMLbVOobk+9TqUa/uXB4AfRjkP8r6rE/+Pvnj//kCg9qvSn6+EzQlNbFaZflHicmhHdt69EDRCtM4Hyc85hfDhCVorRSoLYpk05i5fdDV1BcQR8Esubc0G7y+j3G9P9zM13lQOuWbfuCa/Hh07NeKaWr4rWX/r7v+cHP2BR6rLUJfFt2pJ79yoxJ9UKxk5JSljrqESX7udONjxWdGyjvK1wefd2+XnndarT6i99/8EBO1kjvmDQ063g/j/7GQvT2K/K1Epbosn+1Z1veWg+AGt+QF2MFrSC862h/PPzQBf8B6ZOKXTEEVK3HuRlbaVY5/mmloUL830kr/xaRsaiABw1EycaMwOaA3dVC5gXqGbBAr5DtRFRULi9IlP1FVcoDTPJbY+tW8d461fHlHLAkjaA6FrezrHgrtdxLo5AoLZWaSCZXCyX3fqN02QnHs4139T6yCNSg9IEJ0xgJdOm5WuW1Pw0AWs5W7hQzo4vkix3nQNmp55q02LxmyXx0lZs+bnnsj5XX63UPru1le36+tcZb23qmBIUuq/l4YeVmYZWsFzUKjcQyaUkfFex8v/5n1yyFpynhTvSAlJi1y7W/sILBTyZ+yO67ZJEATiMmzHoPgdM70/txRfzXZI+yP1VMjtnmELgqdzbt5MWX+8bo9nGOqfmP/5RmXl879SqSy9Vps9rinTbhars9NOZr7paajW0PfpowfJlDwuV08xvv8TQm/kWnJai/jvfZ5zO70oHnIoD6ve7b11IN29LaOxYNpDWobJQqJu78i41/f73rFXiFmiiLOexqDsWLRIlrlc5qehYErej69UAl2tCQJEAABtgSURBVGbgY46ho47SqnR8+ZnMFFmxgsXq6wtWwVvAyYaGgp/v9UH6zpHdBd+rDf/N0FjzzW8u+++pGUfudMDEnlrB91B4uNVmVENhVgaGDmWD7r9f6XIjbmkHrQ1tvPXWwox24CmV4SlTrWDJX8wOIHRMpUVf8nxuQz8N1penQ+BBbmR3ibf+85/pKvM+5ruQpcaC834y9wf4mmA+Oc7pRMOOz7J585JO25GvftcE4jik4LQbhvW3v32dtbcvshmjHml3JT91fQ267z7G47OqTHFaj7iLr/dNmvOuty9dmtrGLTh+vBJUvBWcio5FgSxMTtzBDC1wDFJIuWkHniBNvJIV1akYG6suu6yYx3t91qZ5FTygRrGJd0NXXnJJsWKyPu8fPpyVzpzJ2p57LmseFTfoR0D+U8VVGNaLDvc6YCp4zZo1S+tGj76PJZNf7IWDUbf55I+BFGgjSN3PKlNq0hWtdzUxZCBvBff/1a+U4OocC977y18q0SdLCS9HaPJkWeKNlRs68kgWPukkqfa3PfGEkP9nfG1+lOKjy+y+55MPnXTA1LqyrQEDnI1/W+Db4HzfQYGG5/pYyZAh11MFSRwIydUSMfn4dmADf/tbVnLMMWIE5iqFokvtph2OVO7vm6tpueTjrYnEjh25ZBWSp/KLX2R+jAULYambkOqvflW6Sc0PPihMh+w1weGTT2bBkSOF2ZuvIOrhfGvEyy87s/tLvsZ2ye96Bzx46dIGiof8nS7lNvKUb3nWn2IOl86erdx+HpTf6U0Wiik0Hw9rpi57VamzFaxKH/SoIRCsqZEe95nHVOe7H4lKbbwrW/J6+AoaC3YqUfezcbOfO1m53gHzgtZu3Hg3tYKNCtLdWUHpf/tSwIvyCy5Iv6TkuIV+jfMxTdNTM+3UZLe1KStGaka05GUqygoDRSkClXyCneRJRy1/+YtQ2gnan1v2j2c+G5oPjTmR/KFQ8YPlThhOOj3hgDlbf3n516kFGXeIc9Fq+3zzm6zyS18qWk6+AjpeeontueGGfB/TMj8fu5bdHZdecIt2yanEuuB0JEYf+wcMkL7sxm5pYS0Ux1x0kr0mmK+HLj/7bNFm5yJv0/C1a1/LJaOOeTzjgIevXr3Ktqzf6lgJvdlUReOJ1d/6Vm/ZhN/n+8HuoiUgdtzY3y2HMGm+5x5Gk/IOuS7rAq87PmMdyXwCfa68Unorj/9ATDY3C4fVsWQJS2zbJlxuukAnImPRnJi/p9tg2rFnHDCvmMpx435EreDNJlVS5Wc+w/o60ALlE5Z20vIFGV8GTvKP1dVJ745LL1+qFSxxGUi6LhzLIxAcM4ZVfPaz8hRwyfTDsIn/QJSQ+LJBGS3rdFNDkyaxEvqoTLQNpNxdJyQXxlMOuN+TT7bSbknzJTMVJp7Hd+5Hk59UpySNGe2kpQXxLVtUq1aiT/V4dhUNHaAVrKRqpSnp973vSR/7bfv3v1l8s7z2Ad+1THZS2QqmxtTGmlWrxM1Wkw2nG/mecsC8/CPeffcx6rbQviu67Iwz2AC+bpVmPqtMPADATnIYUZqJ6dbEQ/xFBc4y7Y0TWsG9EXL2fpI2FekplZ54IgufempPWYTckx2xLfbhhyzymtzh0jIaB1a2/M6yjO5+5i+N5xwwL3TtSSddR47tVX6sYyo77bTUWl9aPqXWPBrr3UVrHEUugVBbgNy1KW8F01iwr6oqdwORUxmBxM6dWXXxMIt9v/vdrPdF3ehYvFjJ/zvZk7FSO0R9+tOisPQox2949zMvnCcdMLvnnlhJdfVnqW25p8caduAmD+s28He/Y4zC8KlOu2k7w3aK8+yF1Pb00yxeRKD7fBnxcIpVGAvOF5uS/Int2WM48GV/KkKY7rvtNiVlbaMNVGQvxUvFh5bfc7eWT6xVAk2iEm86YAI65M036/3h8BfICVMgFT1S6SmnsEG0yxALBpUbtIfWGLc+9phyvU4p5JNSmu++W6l6PhaMVrBS5Dkp61jW/SY6vrIy1ueaa3KSUUymCOnvWL68GBE5P5ukdfBt//pXzvkLyRigqFg8OpbM5PP71f7nlVQYzzpgzpPWjz1Fi+q12LYw5XzvvFP5toKcw16aZd38pz/xQ0+l1JIPWhusKqVawV/+sip10JMDgQRNNMy2pzXfhck/aFAOUorL0qgoRnmnlbK7obkevn2ktGRZ0dDgwfdLk69QsKcdMOdce/31P6TxYEf7XXm38yCnnO+NN7Im2tLQi4m3BniUL5WpihwwWsEqifesqyXLzOCSKVOY7B2PuGXt//mPstZvJ4mO119nfFczmamU5rEERoyQooLG5R9JhRiWIl2tUM87YL6HZPmwYReSE1YXqT+tjstmzWKDFixwpuV7002s6d5706zx3mEzL7/CQCNoBevzjvHdvVKBWbqY5AuH969AkBxykq/73Uux3Z1I0lvBNAZceeGFcooWCv1BjmD1UuGAifmAJUt2BEpLP0/jwQmVVcCXGqUmXDkw5ruXNjiXtehfJcNidcUp4IiIfVfzsQOt4Hxoycu77/bbGY+T3DX1ue46Fhg1qutl4ectf/0ri23cKFxuLgJb//lP6RHhUvGhQ6FczMk5D31Hv1e7Zs3zOT+geUY44AMVNPyddxZZgcC1quqr4rzz2ED6AlA+25m2FeQTrpoUT0BSxbUQPbLXX3a1Ca3grkTUn3csXcqaeM9TlxQ+7jglMdeTjY2s8dZbu2hXdxqnmd88PKXM5Ovfn5WdeaZYFYHAH8UKdFYaHHAa/5oNG26jtbc/S7sk5bCSQtr1/9//pR0iFK/zpS35ds+f78kJVz1VZHTNGtbxstrNstAK7qlG5N6LvvNO6v+BTT9G05OvvJz1V+QUG3/xC5YgJ+xkUrExSSVF1BOWLCtWVl19rzB5GgiCA+5SCSM3bvwhzYymhbhyUhVtZ5YKLyl/nVxGAez29lRs59Ynnsi4jpP9BFQH5kAr2Jk3j//Q2kFjk4k9h4YA6Pv970ubOJRe2sirrzLe/ex0aqMJYDzsrMxUMm0aC02YIEQFTb7664Dly7NHTRGiRa0QOOBueI98771vkBP+Sze3irrUl9YUqoiq09VI3t3Fv3TaKdoOUvcEOigAierxOLSCu68LGVeT5HAbrr+e7aTlMXxbyq6Jr0SQvtkCKeUTvxpojLlr67urPSrO7UiEtT76qHRVopYkUdwGis3rrqQ+3JIh/EbOnfvFuvvuq6L/KJ8QYXL42GOZr18/Jnqz7Vxs4+O9qp1LLnbplId/IfJuQb4BhspUMnmysB9GPMJRcvduleZrq4s7lzhtvxen+Md8M/r2RYuYHY12a29gyBDWn296kuV+tw8VcJG/Yw3f+Q7jO3Lpkvj3UfCww6Sa46fvPYq/z+xEUXNcn6LIV6ulGuqAcIteCsUDkQ6UskCVO+bODUeWLHmSGMkN61KgfXgMBEAABLxAIFBWNotPlHVbWeGAe6nRxpkzK5s2bXqOpmtM6yUrboMACIAACAgmQNsOvlH7/vsfFSxWC3EYA+6lGvq88EJzePDgsyhQx7u9ZMVtEAABEAABwQRo8tUvBYvURhwccA5VMWjZst3BAQNm0y8x141B5FB8ZAEBEAABRwjwwBs11133D0eUK1CKLug8IO876aSqxs2bKYQMOzWPx5AVBEAABECgAAIUHGlu7YYNDxbwqBGPoAWcRzVVL17cNPLUU8+kJUrOL+LLw25kBQEQAAHTCFDr953au+4SvhxUJw5oARdYG/VjxtycTCSuKfBxPAYCIAACINADAVr3e8GItWvlL1TuwQbZt+CAiyBcN2bM11gi8RuaIY2ehCI44lEQAAEQSCdA821ep5nPx6dfc+MxHEcRtVq7ceMdtHXZHOoqaS9CDB4FARAAARBII2CVlPwg7dS1h2gBC6jauokTj2etrY9QS7i/AHEQAQIgAAJeJrBo5AcfzPICALSABdRy7erVrwSqqmbQWuGVAsRBBAiAAAh4kgD1JiZ9FRXKtoV1GjIcsKAaGLZy5caRxxxzvM/n+3+CREIMCIAACHiLgM93V82qVW96pdDogpZQ0/Xjxp1Ngd//gC5pCXAhEgRAwJUEqPXbQBtDHDH0hRf2urKA3RQKLeBuoBR7qebddx8PDBw4lbqkXyxWFp4HARAAAS8QoJCT3/eS8+V1Cgcs6c0e9tprW0feffcseql+RL/sitqHS5KJEAsCIAACWhCg78gVNX/84x+0MEahEeiCVgC7fsKEGXZHx59oW8MaBeqgAgRAAASMIUDO1w5UVJw4bNWqV40xWpChaAELAtmTmJo1a5b6R42aSptSL+wpH+6BAAiAgOcI+P13edH58npGC1jx214/fvxpyY6O/yO1RyhWDXUgAAIgoBuBTZXjx0/u9+STrboZpsIetIBVUE7TUbN27XMjzz57Co0Nf4e6Xjz50qXhwCEIgIBHCaS6nsvKLvWq8+XVjhawgy//tmOOGR7bu/dXdjL5KQfNgGoQAAEQUE6AYibcUfPee/OVK9ZIIRywBpWR6paORG5jtj1OA3NgAgiAAAhIJUCt3/fLJk2aMuDRR9ukKtJcOLqgNaigVLf0KaegW1qDuoAJIAACcgnwrmfaxOYSrztfThktYLnvWt7SN59wwpDkjh3XsmRyHkXSKs1bAB4AARAAAY0J0PyXn9e+954ndjvqrRrggHsj5ND9XdOnD+zYs+dqGh/+Kq0frnDIDKgFARAAAWEEaJ/fl2q//e1ZbN68pDChBguCA9a88raffHK/yNat36IW8RU0RlylubkwDwRAAAS6J2BZO/1Dhkwb8fLL27vP4L2rcMCG1HnTGWdUN27YMJ8c8Xzqmu5riNkwEwRAAAQYjfsmrXD4TD7fBTj+SwAO+L8sjDhqnDmzsrm+/uvJZPIb1CIebITRMBIEQMDTBKxA4KbaDRtu8jSEbgoPB9wNFCMuzZ8fqHvmmXNYNHoJOeLZ1CrGjHYjKg5GgoC3CNC47zO1d9/9CXbqqfQ1hZROAA44nYahx9unTq2JNTd/mSZsfYkmbI0wtBgwGwRAwH0E1vYZMWJG9eLFTe4rWvElggMunqE+EhYtsrZcfvkZ8Y6OS+hX5yfJGQf0MQ6WgAAIeIqAZe3y9et3fM3y5Zs8Ve48CgsHnAcsk7LuPvHEwW07dnzBjscvJrvHm2Q7bAUBEDCcgGVFfKWls2veeedlw0si1Xw4YKl49RC+dfLkMbHW1nOsZPJsGi8+gQZi/HpYBitAAATcSIAmXV1Mk67+4sayiSwTHLBImgbI2jFjRv/orl2fSMZiZ9PSgI+TMy43wGyYCAIgYAgBzHjOvaLggHNn5b6cl11WUv/ii7NYLHYOLWv6BBVwiPsKiRKBAAioIuDz+2+v2bjxW6r0ma4HDtj0GhRo/7ZJk8bG29tPoGAfM8ghn0At5HHUQqY/SCAAAiDQMwGK8XwvxXi+tOdcuJtOAA44nQaOMwjwMJixnTtPsGOx41Njx7Z9LGUIZ2TCCQiAgOcJkPN9qPb66y9EjOf8XgU44Px4eTv3l74U3Lp8+bR4Wxt3xONpmdMR/C8550HeBoPSg4B3CdCSx3/VfvKTF7Dbbot7l0JhJYcDLowbnkojsGXWrD6J7dvH25HIEdR9PZ4+R1C/NXfOh1EXNiJ0pbHCIQi4iQA532drZ88+jy1YEHFTuVSVBQ5YFWkv6qFJXttff/2wRCQylGZdD6KW8hBqNfOJXkPISQ+mYx7Legg564FYGuXFFwRlNpzAIyOPPfZCtnBh1PByOGY+HLBj6KH4IAGK4LX7mmsGtsdi/ckxh8kxh/lfWqxckjpOJPb/pXN6JkzOmt8P0TEmiB2EiAOhBGx7Cr175wqV6SJhNOb759q5c7/Mbrgh4aJiKS8KHLBy5FAIAiCgO4H6MWMuTiYS9+hupxP2kfP9Pc12vsIJ3W7TifE5t9UoygMCIFA0Aduy0LLrhiI531vgfLsBU+AlBOsvEBweAwEQcDUBGulA6iRAYz0J5vdfWbtx4x2d1/C3eAJwwMUzhAQQAAGXESCHUwUPfKBSLavJFwx+dsS77z7jsmp2vDjogna8CmAACICAdgRsu592NjlgEP0Q+cBXWTkDzlcOfDhgOVwhFQRAwGAC1PodaLD5QkynNb5LSoYNO65m5cq1QgRCyCEE4IAPQYILIAACnieQSEz0MgOabLWg9pRTZg9eurTByxxklx1jwLIJQz4IgICJBKaaaHTRNltWs8/nm0c7Gv29aFkQ0CsBtIB7RYQMIAACXiKwY/LkWuqC7uulMqfKalkrg5WVx8L5qqt5OGB1rKEJBEDAAAKxaNRzrV/L779r5OzZJwxbuXKjAVXkGhPRBe2aqkRBQAAERBCg7Te944Ata6cVCl1Ru27dP0Wwg4z8CKAFnB8v5AYBEHA5ATuZnOnyIqaKRxOtHgoPHXoUnK9ztY0WsHPsoRkEQEAzApuPPvpw2oRhhmZmCTWHlhfttoLBK2reffchoYIhLG8CaAHnjQwPgAAIuJVAsrHxIreWjZcr1eodNGginK8etYwWsB71ACtAAAR0IJBMutMBW9a7/lDoWyPWrXtWB8ywYT8BtIDxJoAACIAAEaibOPF4Wn402k0wqLu5hVq93x75yU9OhvPVr2bRAtavTmARCICAAwTs9vavO6BWnkqf76/+gQOvHb5s2TZ5SiC5GAIWTTjwFyMAz4IACICA6QQ2T5x4dLK1dRm1gGn/AePTC8GKiu8PW7XqVeNL4vICoAXs8gpG8UAABHonkGhr+wXlMtr5Unfz61ZJyfdr1q59rvcSI4cOBOCAdagF2AACIOAYgc3jxp3DbPsUxwwoUjH9aljjC4d/OGLt2keKFIXHFRPAJCzFwKEOBEBAIwLz5wcSsdjPNbIoZ1OoxfsatXjn1N5zz2Q435yxaZURY8BaVQeMAQEQUEngw9Gjb2XJ5JUqdRaji1q7No1TPxUoKfnl8HXrXipGFp51ngAcsPN1AAtAAAQcILDliCPOj0cipmy710EbJiz0lZX9csTbb69xABdUSiAABywBKkSCAAjoTWDr5MljYs3Nr1F7skpvS9laXyBwV2DEiAeGvvDCXs1thXl5EsAkrDyBITsIgIDZBHbMnRsm57tQW+drWRGfZf2Ddim6k8Z2l5hNG9b3RAAOuCc6uAcCIOAuApddVtKxeDHfhGCSTgWjsd0k2bOI+f1/C9bU/BOtXZ1qR54tcMDy2EIyCICARgR2zZlT2r58OV+qc5oOZh2YULWMxnb/WjZkyEMDlizZoYNdsEEdAThgdayhCQRAwCECe846q7xt3brHNFjv20EIFpHTfSpUWfnYkDffrHcICdRqQAAOWINKgAkgAALyCOyYMaN/ZOvWh0nDCfK09CDZsupoze6TtAfvU+FJk54fuHBhew+5cctDBOCAPVTZKCoIeI0ALTU6ORGJ/InWzg5TWPZN1MJdbFvWS6HS0iVD3357g0LdUGUQAThggyoLpoIACORIYNEiq+6SS75HQTZ+QM5X2oYzNI7bTo72bWZZK/w+31J/dfXiocuXb8nRSmTzOAE4YI+/ACg+CLiNwOapU0clGhsXULlmCi2bZe2kMeQ1tL/uW8znW+ErLX1rxBVXrGPz5vEZzEggkDcBOOC8keEBEAABHQlsmzmzb6yu7vu0xerlZF8oXxupNZugZ7ZTa3YLtWrfJ0e7noLlr2clJRsq+/bdUL14cVO+MpEfBHoigEhYPdHBPRAAAf0JzJkTqnvjjcuou/lacpwV9KUWo27nGE18ipHxfNYxd5yN/EP3U8fkbBvJwe6mluxWmhy1lVVVbRnxs5/tYKeeSo8igYAaAnDAajhDCwiAAAiAAAhkEMB2hBk4cAICIAACIAACagjAAavhDC0gAAIgAAIgkEEADjgDB05AAARAAARAQA0BOGA1nKEFBEAABEAABDIIwAFn4MAJCIAACIAACKghAAeshjO0gAAIgAAIgEAGATjgDBw4AQEQAAEQAAE1BOCA1XCGFhAAARAAARDIIAAHnIEDJyAAAiAAAiCghgAcsBrO0AICIAACIAACGQTggDNw4AQEQAAEQAAE1BCAA1bDGVpAAARAAARAIIMAHHAGDpyAAAiAAAiAgBoCcMBqOEMLCIAACIAACGQQgAPOwIETEAABEAABEFBDAA5YDWdoAQEQAAEQAIEMAnDAGThwAgIgAAIgAAJqCMABq+EMLSAAAiAAAiCQQQAOOAMHTkAABEAABEBADQE4YDWcoQUEQAAEQAAEMgjAAWfgwAkIgAAIgAAIqCEAB6yGM7SAAAiAAAiAQAYBOOAMHDgBARAAARAAATUE4IDVcIYWEAABEAABEMggAAecgQMnIAACIAACIKCGABywGs7QAgIgAAIgAAIZBOCAM3DgBARAAARAAATUEIADVsMZWkAABEAABEAggwAccAYOnIAACIAACICAGgJwwGo4QwsIgAAIgAAIZBCAA87AgRMQAAEQAAEQUEMADlgNZ2gBARAAARAAgQwCcMAZOHACAiAAAiAAAmoIwAGr4QwtIAACIAACIJBBAA44AwdOQAAEQAAEQEANAThgNZyhBQRAAARAAAQyCMABZ+DACQiAAAiAAAioIQAHrIYztIAACIAACIBABgE44AwcOAEBEAABEAABNQTggNVwhhYQAAEQAAEQyCAAB5yBAycgAAIgAAIgoIYAHLAaztACAiAAAiAAAhkE4IAzcOAEBEAABEAABNQQgANWwxlaQAAEQAAEQCCDABxwBg6cgAAIgAAIgIAaAnDAajhDCwiAAAiAAAhkEIADzsCBExAAARAAARBQQwAOWA1naAEBEAABEACBDAJwwBk4cAICIAACIAACagjAAavhDC0gAAIgAAIgkEEADjgDB05AAARAAARAQA0BOGA1nKEFBEAABEAABDIIwAFn4MAJCIAACIAACKghAAeshjO0gAAIgAAIgEAGATjgDBw4AQEQAAEQAAE1BOCA1XCGFhAAARAAARDIIAAHnIEDJyAAAiAAAiCghgAcsBrO0AICIAACIAACGQTggDNw4AQEQAAEQAAE1BCAA1bDGVpAAARAAARAIIMAHHAGDpyAAAiAAAiAgBoCcMBqOEMLCIAACIAACGQQgAPOwIETEAABEAABEFBDAA5YDWdoAQEQAAEQAIEMAnDAGThwAgIgAAIgAAJqCMABq+EMLSAAAiAAAiCQQQAOOAMHTkAABEAABEBADQE4YDWcoQUEQAAEQAAEMgjAAWfgwAkIgAAIgAAIqCEAB6yGM7SAAAiAAAiAQAYBOOAMHDgBARAAARAAATUE4IDVcIYWEAABEAABEMggAAecgQMnIAACIAACIKCGwP8HMXtRHzz6PSEAAAAASUVORK5CYII=",ze=pe(39116),qe=pe(35883),pt=pe(56102),Bt=pe(44164),vt=pe.n(Bt),yt=(ct,En,Rt)=>new Promise((be,de)=>{var le=he=>{try{Ie(Rt.next(he))}catch(We){de(We)}},ye=he=>{try{Ie(Rt.throw(he))}catch(We){de(We)}},Ie=he=>he.done?be(he.value):Promise.resolve(he.value).then(le,ye);Ie((Rt=Rt.apply(ct,En)).next())});const Nt=ct=>{const En=/```[a-z]*\n([\s\S]*?)```/g;return ct.replace(En,(Rt,be)=>`<code>${be.trim()}</code>`)},Et=(ct,En,Rt)=>{const be={markdown:"text/markdown",html:"text/html"},de=new Blob([ct],{type:be[Rt]}),le=URL.createObjectURL(de),ye=document.createElement("a");ye.href=le,ye.download=En,ye.click(),URL.revokeObjectURL(le)},pn=ct=>He()(ct).format("YYYY-MM-DD HH:mm:ss"),Pt=(ct,En,Rt)=>ct.map((be,de)=>`
|
|
|
${de!==0?`
|
|
|
<div class="message">
|
|
|
<p class="user-name">${En}<span class="timestamp">${pn(be.updated_at)}</span></p>
|
|
|
<pre class="code">${Nt(be.question)}</pre>
|
|
|
</div>`:""}
|
|
|
<div class="message">
|
|
|
<p class="user-name">${Rt}<span class="timestamp">${pn(be.updated_at)}</span></p>
|
|
|
<pre class="code">${Nt(be.answer)}</pre>
|
|
|
</div>
|
|
|
`).join(""),St=(ct,En,Rt)=>ct.map((be,de)=>`${de!==0?`${En}
|
|
|
${pn(be.updated_at)}
|
|
|
${be.question}
|
|
|
|
|
|
`:""}${Rt}
|
|
|
${pn(be.updated_at)}
|
|
|
${be.answer}
|
|
|
|
|
|
`).join(""),jt=(ct,En)=>yt(void 0,null,function*(){const Rt=Pt(ct.data,ct.my_user_name,ct.user_name),be=St(ct.data,ct.my_user_name,ct.user_name),de=`export-id-${String(Math.random()).slice(-6)}`,le=`
|
|
|
<!DOCTYPE html>
|
|
|
<html lang="en">
|
|
|
<head>
|
|
|
<meta charset="UTF-8">
|
|
|
<style>
|
|
|
.wrap {
|
|
|
font-family: Arial, sans-serif;
|
|
|
line-height: 1.6;
|
|
|
color: #333;
|
|
|
padding: 20px 20px 0 20px;
|
|
|
background-color: #f9f9f9;
|
|
|
position:fixed;
|
|
|
left: 0;
|
|
|
top: 0;
|
|
|
z-index: 100;
|
|
|
width: 100vw;
|
|
|
height: 100vh;
|
|
|
overflow: auto;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
.message {
|
|
|
margin-bottom: 20px;
|
|
|
padding: 10px;
|
|
|
border-radius: 5px;
|
|
|
background-color: #fff;
|
|
|
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
|
}
|
|
|
.user-name {
|
|
|
font-weight: bold;
|
|
|
color: #333;
|
|
|
margin: 0;
|
|
|
}
|
|
|
.timestamp {
|
|
|
display: block;
|
|
|
font-size: 0.8em;
|
|
|
color: #666;
|
|
|
margin-top: 5px;
|
|
|
}
|
|
|
pre.code {
|
|
|
background-color: #f5f5f5;
|
|
|
padding: 10px;
|
|
|
border-radius: 5px;
|
|
|
overflow-x: auto;
|
|
|
white-space: pre-wrap;
|
|
|
word-wrap: break-word;
|
|
|
margin: 10px 0 0;
|
|
|
}
|
|
|
</style>
|
|
|
</head>
|
|
|
<body>
|
|
|
<div class='wrap' id=${de}>
|
|
|
${Rt}
|
|
|
</div>
|
|
|
</body>
|
|
|
</html>
|
|
|
`;if(En.key==="html")Et(le,`\u4E0E${ct.user_name}\u5BF9\u8BDD\u5185\u5BB9.html`,"html");else if(En.key==="markdown")Et(be,`\u4E0E${ct.user_name}\u5BF9\u8BDD\u5185\u5BB9.md`,"markdown");else if(En.key==="pdf"){const ye=Xe.default.info({icon:null,width:460,title:"\u63D0\u793A",content:"\u6B63\u5728\u5BFC\u51FAPDF\u4E2D...",maskClosable:!1,keyboard:!1,okButtonProps:{style:{display:"none"}}}),Ie=document.createElement("div");Ie.innerHTML=le.replaceAll("box-shadow","// box-shadow"),document.body.appendChild(Ie);const he=document.getElementById(de);if(!he){console.error("PDF \u5143\u7D20\u672A\u627E\u5230");return}he.style.width="auto",he.style.height="auto",he.style.position="initial";const We={html2canvas:{letterRendering:!0,useCORS:!0,allowTaint:!1},jsPDF:{unit:"in",format:"letter",orientation:"portrait"},pagebreak:{mode:["avoid-all"]}};vt()().set(We).from(he).toPdf().get("pdf").save(`\u4E0E${ct.user_name}\u5BF9\u8BDD\u5185\u5BB9.pdf`).finally(()=>{ye.destroy(),document.body.removeChild(Ie)})}});var Je={cursor:"cursor___XqlqI"},lt=({text:ct,open:En=!1,onTextChange:Rt})=>{const[be,de]=(0,oe.useState)(""),[le,ye]=(0,oe.useState)(0),[Ie,he]=(0,oe.useState)(!0);return(0,oe.useEffect)(()=>{if(En)if(le<ct.length){he(!1);const We=setTimeout(()=>{de(tt=>tt+ct[le]),ye(le+1),Rt()},50);return()=>clearTimeout(We)}else he(!0),Rt();else de(ct),ye(0),he(!0)},[le,ct,En]),oe.createElement(qe.Z,{value:be+(Ie?"":`<span class='${Je.cursor}'></span>`)})},Fe={menuWrap:"menuWrap___GDodS",menuMask:"menuMask___dldKr",menu:"menu___OrkS3",itemTwo:"itemTwo___gOXTT",item:"item___XhZWJ",itemDisabled:"itemDisabled___pRoiI",menuWrapRight:"menuWrapRight___Tgo4N"},Zt=pe(70467),$e=pe(92310),At=pe.n($e),Te=({disabled:ct=!1,recoverDisabled:En=!1,onFileType:Rt,onRecover:be,onEmpty:de})=>{const[le,ye]=(0,oe.useState)(!1),[Ie,he]=(0,oe.useState)(!1),We=(0,oe.useRef)(null),tt=[{key:"html",label:"\u5BFC\u51FA\u6210HTML"},{key:"markdown",label:"\u5BFC\u51FA\u6210Markdown"},{key:"pdf",label:"\u5BFC\u51FA\u6210PDF"}],dn=()=>{if(!ct){if(We.current){const ut=We.current.getBoundingClientRect(),zt=window.innerWidth-ut.right;he(zt>300)}ye(!0)}};return console.log(Ie),oe.createElement("div",{ref:We,className:At()(Fe.menuWrap,Ie&&Fe.menuWrapRight),onMouseEnter:dn,onMouseLeave:()=>ye(!1)},oe.createElement(Zt.op,{disabled:ct},oe.createElement("i",{className:"iconfont icon-gengduo6 font12 mr5"}),"\u66F4\u591A\u64CD\u4F5C"),oe.createElement("div",{className:Fe.menuMask,style:{display:le?"block":"none"}},oe.createElement("div",{className:Fe.menu},oe.createElement("div",{className:Fe.itemOne},oe.createElement("div",{className:Fe.item,style:{cursor:"auto"}},oe.createElement("span",null,"\u5BFC\u51FA\u5BF9\u8BDD"),oe.createElement("div",{className:Fe.itemTwo},tt.map(ut=>oe.createElement("div",{key:ut.key,onClick:()=>{ye(!1),Rt(ut)},className:Fe.item},ut.label)))),En?oe.createElement("div",{className:Fe.itemDisabled},"\u6062\u590D\u5BF9\u8BDD"):oe.createElement("div",{onClick:ut=>{ye(!1),be(ut)},className:Fe.item},"\u6062\u590D\u5BF9\u8BDD"),oe.createElement("div",{onClick:ut=>{ye(!1),de(ut)},className:Fe.item},"\u6E05\u7A7A\u5BF9\u8BDD")))))},xe=pe(59301),It=Object.defineProperty,Cn=Object.getOwnPropertySymbols,mn=Object.prototype.hasOwnProperty,Ze=Object.prototype.propertyIsEnumerable,Ct=(ct,En,Rt)=>En in ct?It(ct,En,{enumerable:!0,configurable:!0,writable:!0,value:Rt}):ct[En]=Rt,_t=(ct,En)=>{for(var Rt in En||(En={}))mn.call(En,Rt)&&Ct(ct,Rt,En[Rt]);if(Cn)for(var Rt of Cn(En))Ze.call(En,Rt)&&Ct(ct,Rt,En[Rt]);return ct},In=(ct,En,Rt)=>new Promise((be,de)=>{var le=he=>{try{Ie(Rt.next(he))}catch(We){de(We)}},ye=he=>{try{Ie(Rt.throw(he))}catch(We){de(We)}},Ie=he=>he.done?be(he.value):Promise.resolve(he.value).then(le,ye);Ie((Rt=Rt.apply(ct,En)).next())}),Wn=({})=>{var ct,En,Rt,be;const{id:de,position:le}=(0,ke.oP)(),[ye,Ie]=(0,oe.useState)(!0),[he,We]=(0,oe.useState)(!1),tt=(0,oe.useRef)("bottomRight"),dn=(0,oe.useRef)();let[ut,zt]=(0,oe.useState)({});const[en,Sn]=(0,oe.useState)(Number(de)),[yn,ar]=(0,oe.useState)([]),[Mt,nn]=(0,oe.useState)(1),[ln,Un]=(0,oe.useState)(Number(le)),Nn=(0,oe.useRef)(Number(le)),[un,ir]=(0,oe.useState)([]),[Xn,Ft]=(0,oe.useState)(!1),[An,Qn]=(0,oe.useState)(!0),Jn=(0,oe.useRef)(null),nt=(0,oe.useRef)(1),[gt,Kt]=(0,oe.useState)({});let[vn,Rn]=(0,oe.useState)("");const[hr,$r]=(0,oe.useState)(!1),[Xr,vr]=(0,oe.useState)(!1),[lr]=(0,ce.useSearchParams)();(0,oe.useEffect)(()=>((0,ce.getDvaApp)()._store.dispatch({type:"globalSetting/footerToggle",payload:!1}),()=>{(0,ce.getDvaApp)()._store.dispatch({type:"globalSetting/footerToggle",payload:!0})}),[]),(0,oe.useEffect)(()=>{Dr()},[]),(0,oe.useEffect)(()=>{Jn.current.scrollTop=Jn.current.scrollHeight},[Mt]),(0,oe.useEffect)(()=>{const Xt=document.getElementById("wechat_QR_code_ids");return Xt.classList.add("hide"),()=>{Xt.classList.remove("hide")}},[]);const Dr=()=>In(void 0,null,function*(){var Xt,Kn;const Lr=yield(0,Pe.ZP)("/api/chats.json",{method:"post",body:{to_user_id:de}});if((Lr==null?void 0:Lr.status)===0){const wr=yield(0,Pe.ZP)("/api/chats.json",{method:"get",params:{to_user_id:de,challenge_id:Number(le)||""}});if(wr!=null&&wr.data){Qn(!1),ar((wr==null?void 0:wr.data)||[]);const Lt=(Kn=(Xt=wr==null?void 0:wr.data)==null?void 0:Xt.find(Vt=>Vt.to_user_id===Number(de)))==null?void 0:Kn.id;Sn(Lt),rr(Lt),_n(Lt,le)}}}),rr=Xt=>In(void 0,null,function*(){const Kn=yield(0,Pe.ZP)("/api/chats/challenge_list.json",{method:"get",params:{id:Xt,challenge_id:ln||""}});Kn!=null&&Kn.challenges&&ir([{id:0,subject:"\u5168\u90E8"},...Kn.challenges])}),Tn=(Xt,Kn)=>In(void 0,null,function*(){const Lr=yield(0,Pe.ZP)("/api/chats.json",{method:"get",params:{to_user_id:Xt,challenge_id:Kn||""}});Lr!=null&&Lr.data&&ar((Lr==null?void 0:Lr.data)||[]),Qn(!1)}),_n=(Xt,Kn,Lr)=>In(void 0,null,function*(){var wr;Ie(!0);const Lt=yield(0,Pe.ZP)(`/api/chats/${Xt}.json`,{method:"get",params:{challenge_id:Number(Kn)||""}});if(Lt!=null&&Lt.data){Lr&&(Lt.data[Lt.data.length-1].open=!0),Kt(_t({},Lt)||{}),Ft(!0),We(!1);const Vt=(wr=yn==null?void 0:yn.find(ot=>ot.id===Xt))==null?void 0:wr.to_user_id;window.location.host==="gpt.educoder.net"?lr.get("homeworkId")?ce.history.replace(`/chatgpt?id=0&position=0&homeworkId=${lr.get("homeworkId")}`):ce.history.replace("/chatgpt?id=0&position=0"):lr.get("homeworkId")?ce.history.replace(`/chatgpt?id=${Vt||de}&position=${Kn}&homeworkId=${lr.get("homeworkId")}`):ce.history.replace(`/chatgpt?id=${Vt||de}&position=${Kn}`),Lr&&(nn(Math.random()),Tn(Vt,Kn))}Ie(!1)}),Ln=Xt=>{var Kn;Rn(Xt),(Kn=Xt==null?void 0:Xt.trim())==null||Kn.length},mr=Xt=>{nt.current=nt.current+1,Sn(Xt),Un(0),Rn(""),We(!1),_n(Xt,0),rr(Xt)},cr=()=>In(void 0,null,function*(){var Xt;if(vn.trim().length===0){qt.ZP.error("\u4E0D\u80FD\u8F93\u5165\u7EAF\u7A7A\u683C");return}if(!vn){qt.ZP.warning("\u8BF7\u8F93\u5165\u4F60\u8981\u95EE\u7684\u95EE\u9898");return}We(!0);const Kn=He()().format("YYYY-MM-DDTHH:mm:ss.SSSZ"),Lr=_t({},gt);(Xt=Lr==null?void 0:Lr.data)==null||Xt.push({id:0,updated_at:Kn,question:vn,answer:xe.createElement("div",{className:Me.animation},"\u8001\u5E08\u6B63\u5728\u56DE\u7B54\u4E2D\uFF0C\u8BF7\u7A0D\u540E")}),Kt(Lr),nn(Mt+1),Rn(""),nt.current=nt.current+1;const wr=nt.current,Lt=yield(0,Pe.ZP)("/api/chats/get_answer",{method:"post",body:{chat_id:en,to_user_id:de,question:vn,challenge_id:ln||"",time:Kn}});wr===nt.current&&(Lt==null?void 0:Lt.status)===0&&_n(en,ln,!0)}),pr=()=>{_n(en,ln),Tn(de,ln),$r(!1)},Rr=(Xt,Kn,Lr="")=>In(void 0,null,function*(){Ie(!0);let wr={};lr.get("homeworkId")?wr={id:Xt,satisfied:Kn,content:Lr,homework_common_id:lr.get("homeworkId")}:wr={id:Xt,satisfied:Kn,content:Lr};const Lt=yield(0,Pe.ZP)("/api/chats/praise.json",{method:"post",body:wr});(Lt==null?void 0:Lt.status)===0&&_n(en,ln)}),Wr=Xt=>{Xt.shiftKey&&Xt.keyCode===13||Xt.keyCode===13&&(Xt.preventDefault(),cr())},Gr=Xt=>In(void 0,null,function*(){Xe.default.confirm({icon:null,centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u8BF7\u786E\u8BA4\u662F\u5426\u5C06\u8BE5\u95EE\u7B54\u5185\u5BB9\u8FDB\u884C\u5220\u9664\uFF1F",onOk:()=>In(void 0,null,function*(){(yield(0,Pe.ZP)("/api/chats/delete_one.json",{method:"delete",body:{id:Xt}})).status===0&&(qt.ZP.success("\u5220\u9664\u6210\u529F"),_n(en,ln))})})}),ai=()=>In(void 0,null,function*(){Ie(!0),nt.current=nt.current+1,(yield(0,Pe.ZP)("/api/chats/stop_one.json",{method:"delete",body:{challenge_id:ln,id:en}})).status===0&&_n(en,ln),Ie(!1)}),ti=[`\u8BF7${gt==null?void 0:gt.user_name}\u8001\u5E08\u5C1D\u8BD5\u518D\u56DE\u7B54\u4E00\u6B21`,"\u53EF\u80FD\u542F\u7528\u4E86\u673A\u5668\u4EBA\uFF0C\u8BF7\u8001\u5E08\u4EB2\u81EA\u56DE\u7B54"],xi=Xt=>{jt(gt,Xt)},mi=()=>{};return xe.createElement("div",{className:Me.wrap},xe.createElement("div",{className:Me.head},xe.createElement("b",null,"\u5B9E\u8BAD >"),"\u6559\u5B66\u8F85\u5BFC\uFF08beta\u7248\u672C\uFF09"),xe.createElement("div",{className:Me.content},xe.createElement(Ht.Z,{spinning:An},xe.createElement("div",{className:Me.left,onClick:()=>{vr(!1)}},xe.createElement("div",{className:Me.title},xe.createElement("span",null,"\u95EE\u7B54\u5217\u8868"),xe.createElement("div",{className:At()(Me.add,he&&Me.disabledElement),onClick:()=>In(void 0,null,function*(){if(he)return;Qn(!0);const Xt=yield(0,Pe.ZP)("/api/chats.json",{method:"post",body:{to_user_id:de,new_chat:!0}});if(Xt.status===0){const Kn=Xt==null?void 0:Xt.id;if(Kn===en){qt.ZP.warning("\u5F53\u524D\u5DF2\u7ECF\u5728\u65B0\u5BF9\u8BDD\u7A97\u53E3"),Qn(!1);return}yield Tn(-1,0),Sn(Kn),Un(0),yield _n(Kn,0)}Qn(!1)})})),xe.createElement("div",{className:Me.leftBar},yn.map(Xt=>xe.createElement("div",{key:Xt.id,onClick:()=>mr(Xt.id),className:`${Me.li} ${Xt.id===en?Me.active:""}`},Xt!=null&&Xt.avatar?xe.createElement("img",{src:`${Le.Z.IMG_SERVER}/images/${Xt==null?void 0:Xt.avatar}`}):xe.createElement("img",{src:Ge}),xe.createElement("aside",null,xe.createElement("p",null,xe.createElement("b",{title:Xt.user_name},Xt.user_name),xe.createElement("span",null,Xt.time)),xe.createElement("div",null,Xt.last_message))))))),xe.createElement("div",{className:Me.right},Xn&&xe.createElement("div",{className:Me.title,onClick:()=>{vr(!1)}},xe.createElement("section",{className:Me.center},xe.createElement("span",null,"\u4E0E",gt==null?void 0:gt.user_name,"\u8001\u5E08\u6C9F\u901A\u4E2D\u2026"),xe.createElement("div",{className:Me.tabs},xe.createElement("i",{className:"iconfont icon-lianjie3"}),xe.createElement("span",null,"\u5F53\u524D\u5BF9\u8BDD\u5173\u8054\uFF1A",gt!=null&>.challenge_name?`${(En=(ct=gt==null?void 0:gt.data[0])==null?void 0:ct.shixun)==null?void 0:En.name} \u5B9E\u8BAD---\u7B2C${gt==null?void 0:gt.challenge_position}\u5173`:"\u5168\u90E8"),xe.createElement("span",{onClick:()=>{he||(Nn.current=ln,$r(!0))},className:At()(Me.cut,he&&Me.disabledElement)},"\u5207\u6362")),xe.createElement(Te,{disabled:he,recoverDisabled:!(gt!=null&>.can_recycle),onFileType:xi,onRecover:()=>In(void 0,null,function*(){Ie(!0),(yield(0,Pe.ZP)("/api/chats/recycle.json",{method:"post",body:{challenge_id:ln,id:en}})).status===0&&(qt.ZP.success("\u6062\u590D\u5BF9\u8BDD\u6210\u529F"),Tn(de,ln),_n(en,ln)),Ie(!1)}),onEmpty:()=>{Xe.default.confirm({icon:null,centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u8BF7\u786E\u8BA4\u662F\u5426\u5C06\u5F53\u524D\u5BF9\u8BDD\u7A97\u53E3\u4E2D\u7684\u5BF9\u8BDD\u5185\u5BB9\u5168\u90E8\u6E05\u7A7A\uFF1F",onOk:()=>In(void 0,null,function*(){(yield(0,Pe.ZP)("/api/chats/clean.json",{method:"delete",body:{challenge_id:ln,id:en}})).status===0&&(qt.ZP.success("\u6E05\u7A7A\u5BF9\u8BDD\u6210\u529F"),Tn(de,ln),_n(en,ln))})})}}))),xe.createElement("div",{onClick:()=>{vr(!1)},className:Me.rightBar,ref:Jn},xe.createElement(Ht.Z,{spinning:ye},!((Rt=gt==null?void 0:gt.data)!=null&&Rt.length)&&xe.createElement("div",{className:Me.empty}),(be=gt==null?void 0:gt.data)==null?void 0:be.map((Xt,Kn)=>{var Lr,wr,Lt;return xe.createElement(oe.Fragment,{key:Kn},!!Xt.question&&xe.createElement("div",{className:Me.li},xe.createElement("img",{src:`${Le.Z.IMG_SERVER}/images/${gt==null?void 0:gt.my_avatar}`,style:{borderRadius:"50%",width:56,height:56}}),xe.createElement("aside",null,xe.createElement("p",null,xe.createElement("b",null,gt.my_user_name),xe.createElement("span",null,He()(Xt.updated_at).format("YYYY-MM-DD HH:mm"))),xe.createElement(qe.Z,{value:Xt.question}),xe.createElement("div",{className:Me.action},xe.createElement(pt.CopyToClipboard,{text:Xt.question,onCopy:()=>qt.ZP.success("\u5185\u5BB9\u5DF2\u590D\u5236\u5230\u7C98\u8D34\u677F\u4E2D")},xe.createElement("div",{className:Me.tagBtn},xe.createElement("i",{className:"iconfont icon-fuzhi8"}),"\u590D\u5236")),!he&&xe.createElement("div",{onClick:()=>Gr(Xt.id),className:Me.tagBtn},xe.createElement("i",{className:"iconfont icon-shanchu8"}),"\u5220\u9664")))),!!Xt.answer&&xe.createElement("div",{style:Kn===0?{borderTop:0}:{},className:`${Me.li} ${Me.active}`},gt!=null&>.avatar?xe.createElement("img",{src:`${Le.Z.IMG_SERVER}/images/${gt==null?void 0:gt.avatar}`,style:{borderRadius:"50%",width:56,height:56}}):xe.createElement("img",{src:Ge,style:{borderRadius:"50%",width:56,height:56}}),xe.createElement("aside",null,xe.createElement("p",null,xe.createElement("div",{style:{display:"flex"}},xe.createElement("b",{style:{marginRight:"20px"}},gt.user_name),(Lr=Xt.shixun)!=null&&Lr.name?xe.createElement("span",{style:{display:"flex",alignItems:"center"}},"\u5F53\u524D\u5BF9\u8BDD\u5173\u8054\uFF1A",(wr=Xt.shixun)==null?void 0:wr.name," \u5B9E\u8BAD---\u7B2C",(Lt=Xt.challenge)==null?void 0:Lt.position,"\u5173"):xe.createElement("span",{style:{display:"flex",alignItems:"center"}},"\u5F53\u524D\u5BF9\u8BDD\u5173\u8054\uFF1A\u5168\u90E8")),xe.createElement("span",null,He()(Xt.updated_at).format("YYYY-MM-DD HH:mm"))),Xt.id===0?Xt.answer:xe.createElement(lt,{onTextChange:mi,open:!!(Xt!=null&&Xt.open),text:Xt.answer}),Xt.id===0&&xe.createElement("div",{className:Me.action},xe.createElement("div",{onClick:ai,className:Me.tagBtn},xe.createElement("i",{className:"iconfont icon-tingzhishengcheng"}),"\u505C\u6B62\u751F\u6210")),(Xt==null?void 0:Xt.id)!==0&&xe.createElement("div",{className:Me.action},!!Xt.question&&xe.createElement(xe.Fragment,null,xe.createElement("div",{onClick:()=>{vn=Xt.question,cr()},className:Me.tagBtn},xe.createElement("i",{className:"iconfont icon-zhongxinshengcheng"}),"\u91CD\u65B0\u751F\u6210"),xe.createElement(pt.CopyToClipboard,{text:Xt.answer,onCopy:()=>qt.ZP.success("\u5185\u5BB9\u5DF2\u590D\u5236\u5230\u7C98\u8D34\u677F\u4E2D")},xe.createElement("div",{className:Me.tagBtn},xe.createElement("i",{className:"iconfont icon-fuzhi8"}),"\u590D\u5236")),!he&&xe.createElement("div",{onClick:()=>Gr(Xt.id),className:Me.tagBtn},xe.createElement("i",{className:"iconfont icon-shanchu8"}),"\u5220\u9664")),xe.createElement("span",{style:{marginLeft:"auto"},onClick:()=>{Rr(Xt.id,Xt.satisfied===1?-1:1)},className:`mr30 ${Xt.satisfied===1?Me.actActive:""}`},xe.createElement("i",{className:"iconfont icon-yijiejue"}),"\u5DF2\u89E3\u51B3"),xe.createElement(rt.Z,{autoAdjustOverflow:!1,destroyTooltipOnHide:!0,open:ut[Kn],getPopupContainer:Vt=>Vt,placement:tt.current,content:xe.createElement("div",{className:Me.box,onMouseLeave:Vt=>{clearTimeout(dn.current),ut[Kn]=!1,zt(_t({},ut))},onMouseOver:()=>{clearTimeout(dn.current)}},xe.createElement("p",null,"\u62B1\u6B49\u8BA9\u4F60\u5931\u671B\u4E86\uFF0C\u8BF7\u7EE7\u7EED\u5C1D\u8BD5\uFF1A"),ti.map((Vt,ot)=>{const kt=Vt===Xt.content;return xe.createElement("div",{onClick:()=>{Rr(Xt.id,kt?-1:0,kt?"":Vt)},className:kt?Me.hot:"",key:Vt},Vt)}))},xe.createElement("span",{onMouseOver:Vt=>{clearTimeout(dn.current),window.innerHeight-Vt.target.getBoundingClientRect().top<350?tt.current="topRight":tt.current="bottomRight",ut={},ut[Kn]=!0,zt(_t({},ut))},onMouseOut:Vt=>{dn.current=setTimeout(()=>{clearTimeout(dn.current),ut[Kn]=!1,zt(_t({},ut))},800)},className:`${Me.unsolved} ${Xt.satisfied===0?Me.actActive:""}`},xe.createElement("i",{className:"iconfont icon-weijiejuezhengchang"}),"\u672A\u89E3\u51B3"))))))}))),Xn&&xe.createElement("div",{className:Me.answers},!Xr&&xe.createElement("div",{className:Me.open_md,onClick:()=>{vr(!0)}},"\u8BF7\u8F93\u5165\u4F60\u7684\u95EE\u9898"),xe.createElement("div",{className:Xr?"md_container":"md_container hide",style:{marginTop:20}},xe.createElement(ze.Z,{id:"discuss-input-editor",miniToolbar:!0,watch:!1,noStorage:!0,defaultValue:vn,height:240,width:1e3,onChange:Ln,className:Me.md_editor}),xe.createElement("div",{className:Me.tip_container,style:{display:"flex"},onClick:()=>{vr(!1)}},xe.createElement("div",{className:Me.btn_send,onClick:cr},"\u53D1\u9001")))))),xe.createElement(Xe.default,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,onCancel:()=>{Un(Nn.current),$r(!1)},onOk:pr,open:hr,wrapClassName:Ve.Z.CustomCss,title:"\u66F4\u6362\u5173\u8054",width:"666px"},xe.createElement("div",null,xe.createElement(at.ZP.Group,{value:ln,onChange:Xt=>Un(Xt.target.value)},xe.createElement(Dt.Z,{direction:"vertical"},un==null?void 0:un.map(Xt=>{var Kn;return xe.createElement(at.ZP,{key:Xt.id,value:Xt.id},Xt.id===0?Xt.subject:`${(Kn=Xt.shixun)==null?void 0:Kn.name} \u5B9E\u8BAD---\u7B2C${Xt==null?void 0:Xt.challenge_position}\u5173`)}))))))}},20047:function(gr,zn,pe){"use strict";pe.d(zn,{AL:function(){return vt},Iy:function(){return ke},Qv:function(){return Ke},ez:function(){return Bt},jb:function(){return Le}});var oe=pe(32834),qt=pe.n(oe),Xe=pe(11690),Ht=pe.n(Xe);let rt=1;function at(Pt,St){const jt=Pt.match(/^(\s+)(?:```)/);if(jt===null)return St;const Je=jt[1];return St.split(`
|
|
|
`).map(wt=>{const lt=wt.match(/^\s+/);if(lt===null)return wt;const[Fe]=lt;return Fe.length>=Je.length?wt.slice(Je.length):wt}).join(`
|
|
|
`)}let Dt=[],Me=["<ul>"];const Pe=new(qt()).Renderer,ce=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function ke(){Dt.length=0,Me=["<ul>"]}const Le={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function Ve(Pt,St,jt,Je){if(St>=Pt.length||Pt[St].level<=jt)return St;var wt=Pt[St];Je.push("<li><a href='#"+rt+wt.anchor+"'>"+wt.text+"</a>"),St++;var lt=[];return St=Ve(Pt,St,wt.level,lt),lt.length>0&&(Je.push("<ul>"),lt.forEach(function(Fe){Je.push(Fe)}),Je.push("</ul>")),Je.push("</li>"),St=Ve(Pt,St,jt,Je),St}function Ke(){return Ve(Dt,0,0,Me),Me.push("</ul>"),Me.join("")}const He={heading(Pt){const St=ce.exec(Pt);if(rt+=1,St)return{type:"heading",raw:St[0],depth:St[1].length,text:St[2]}},fences(Pt){const St=this.rules.block.fences.exec(Pt);if(St){const jt=St[0];let Je=at(jt,St[3]||"");const wt=St[2]?St[2].trim():St[2];if(["latex","katex","math"].indexOf(wt)>=0){const lt=qe(),Fe=Je;Je=lt,pt[lt]={type:"block",expression:Fe}}return{type:"code",raw:jt,lang:wt,text:Je}}}},Ge=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let ze=0;const qe=()=>`__special_katext_id_${ze++}__`;let pt={};function Bt(){return pt}function vt(){ze=0,pt={}}function yt(Pt){return Pt=Pt.replace(Ge,(St,jt)=>{const Je=qe();return pt[Je]={type:"inline",expression:jt},Je}),Pt}const Nt=Pe.listitem;Pe.listitem=function(Pt){return Nt(yt(Pt))};const Et=Pe.paragraph;Pe.paragraph=function(Pt){return Et(yt(Pt))};const pn=Pe.tablecell;Pe.tablecell=function(Pt,St){return pn(yt(Pt),St)},Pe.code=function(Pt,St,jt){const Je=(St||"").match(/\S*/)[0];return Je?["latex","katex","math"].indexOf(Je)>=0?`<p class='editormd-tex'>${Pt}</p>`:`<pre class="prettyprint linenums"><code class="language-${St}">${jt?Pt:(0,Xe.escape)(Pt,!0)}</code></pre>
|
|
|
`:'<pre class="prettyprint linenums"><code>'+(jt?Pt:(0,Xe.escape)(Pt,!0))+"</code></pre>"},Pe.heading=function(Pt,St,jt){let Je=this.options.headerPrefix+jt.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Dt.push({anchor:Je,level:St,text:Pt}),"<h"+St+' id="'+rt+Je+'">'+Pt+"</h"+St+">"},qt().setOptions({silent:!0,gfm:!0,pedantic:!1}),qt().use({tokenizer:He,renderer:Pe}),zn.ZP=qt()},86013:function(gr,zn,pe){"use strict";var oe=pe(59301),qt=pe(19248);const Xe=Ht=>{let rt;return typeof Ht=="object"&&(Ht!=null&&Ht.clearIcon)?rt=Ht:Ht&&(rt={clearIcon:oe.createElement(qt.Z,null)}),rt};zn.Z=Xe},54500:function(gr,zn,pe){"use strict";pe.d(zn,{Z:function(){return oe}});const oe=qt=>qt?typeof qt=="function"?qt():qt:null},38406:function(gr,zn,pe){"use strict";var oe=pe(59301),qt=pe(48755),Xe=pe(584);const Ht=rt=>{const{componentName:at}=rt,{getPrefixCls:Dt}=(0,oe.useContext)(qt.E_),Me=Dt("empty");switch(at){case"Table":case"List":return oe.createElement(Xe.Z,{image:Xe.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return oe.createElement(Xe.Z,{image:Xe.Z.PRESENTED_IMAGE_SIMPLE,className:`${Me}-small`});case"Table.filter":return null;default:return oe.createElement(Xe.Z,null)}};zn.Z=Ht},36207:function(gr,zn,pe){"use strict";pe.d(zn,{Z:function(){return dn}});var oe=pe(59301),qt=pe(92310),Xe=pe.n(qt),Ht=pe(85899),rt=pe(72190),at=pe(43403),Dt=pe(34280),Me=oe.createContext(null),Pe=oe.createContext({}),ce=Me,ke=pe(18642),Le=pe(60499),Ve=pe(77900),Ke=pe(10228),He=pe(26112),Ge=pe(42244),ze=pe(8654),qe=["prefixCls","className","containerRef"],pt=function(zt){var en=zt.prefixCls,Sn=zt.className,yn=zt.containerRef,ar=(0,Ge.Z)(zt,qe),Mt=oe.useContext(Pe),nn=Mt.panel,ln=(0,ze.x1)(nn,yn);return oe.createElement("div",(0,Le.Z)({className:Xe()("".concat(en,"-content"),Sn),role:"dialog",ref:ln},(0,He.Z)(zt,{aria:!0}),{"aria-modal":"true"},ar))},Bt=pt,vt=pe(48736);function yt(ut){return typeof ut=="string"&&String(Number(ut))===ut?((0,vt.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(ut)):ut}function Nt(ut){warning(!("wrapperClassName"in ut),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!ut.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var Et={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function pn(ut,zt){var en,Sn,yn,ar=ut.prefixCls,Mt=ut.open,nn=ut.placement,ln=ut.inline,Un=ut.push,Nn=ut.forceRender,un=ut.autoFocus,ir=ut.keyboard,Xn=ut.classNames,Ft=ut.rootClassName,An=ut.rootStyle,Qn=ut.zIndex,Jn=ut.className,nt=ut.id,gt=ut.style,Kt=ut.motion,vn=ut.width,Rn=ut.height,hr=ut.children,$r=ut.mask,Xr=ut.maskClosable,vr=ut.maskMotion,lr=ut.maskClassName,Dr=ut.maskStyle,rr=ut.afterOpenChange,Tn=ut.onClose,_n=ut.onMouseEnter,Ln=ut.onMouseOver,mr=ut.onMouseLeave,cr=ut.onClick,pr=ut.onKeyDown,Rr=ut.onKeyUp,Wr=ut.styles,Gr=ut.drawerRender,ai=oe.useRef(),ti=oe.useRef(),xi=oe.useRef();oe.useImperativeHandle(zt,function(){return ai.current});var mi=function(Zn){var Mn=Zn.keyCode,Ur=Zn.shiftKey;switch(Mn){case Ke.Z.TAB:{if(Mn===Ke.Z.TAB){if(!Ur&&document.activeElement===xi.current){var si;(si=ti.current)===null||si===void 0||si.focus({preventScroll:!0})}else if(Ur&&document.activeElement===ti.current){var ei;(ei=xi.current)===null||ei===void 0||ei.focus({preventScroll:!0})}}break}case Ke.Z.ESC:{Tn&&ir&&(Zn.stopPropagation(),Tn(Zn));break}}};oe.useEffect(function(){if(Mt&&un){var dr;(dr=ai.current)===null||dr===void 0||dr.focus({preventScroll:!0})}},[Mt]);var Xt=oe.useState(!1),Kn=(0,rt.Z)(Xt,2),Lr=Kn[0],wr=Kn[1],Lt=oe.useContext(ce),Vt;typeof Un=="boolean"?Vt=Un?{}:{distance:0}:Vt=Un||{};var ot=(en=(Sn=(yn=Vt)===null||yn===void 0?void 0:yn.distance)!==null&&Sn!==void 0?Sn:Lt==null?void 0:Lt.pushDistance)!==null&&en!==void 0?en:180,kt=oe.useMemo(function(){return{pushDistance:ot,push:function(){wr(!0)},pull:function(){wr(!1)}}},[ot]);oe.useEffect(function(){if(Mt){var dr;Lt==null||(dr=Lt.push)===null||dr===void 0||dr.call(Lt)}else{var Zn;Lt==null||(Zn=Lt.pull)===null||Zn===void 0||Zn.call(Lt)}},[Mt]),oe.useEffect(function(){return function(){var dr;Lt==null||(dr=Lt.pull)===null||dr===void 0||dr.call(Lt)}},[]);var ft=$r&&oe.createElement(Ve.default,(0,Le.Z)({key:"mask"},vr,{visible:Mt}),function(dr,Zn){var Mn=dr.className,Ur=dr.style;return oe.createElement("div",{className:Xe()("".concat(ar,"-mask"),Mn,Xn==null?void 0:Xn.mask,lr),style:(0,Ht.Z)((0,Ht.Z)((0,Ht.Z)({},Ur),Dr),Wr==null?void 0:Wr.mask),onClick:Xr&&Mt?Tn:void 0,ref:Zn})}),Gt=typeof Kt=="function"?Kt(nn):Kt,Fn={};if(Lr&&ot)switch(nn){case"top":Fn.transform="translateY(".concat(ot,"px)");break;case"bottom":Fn.transform="translateY(".concat(-ot,"px)");break;case"left":Fn.transform="translateX(".concat(ot,"px)");break;default:Fn.transform="translateX(".concat(-ot,"px)");break}nn==="left"||nn==="right"?Fn.width=yt(vn):Fn.height=yt(Rn);var xr={onMouseEnter:_n,onMouseOver:Ln,onMouseLeave:mr,onClick:cr,onKeyDown:pr,onKeyUp:Rr},Or=oe.createElement(Ve.default,(0,Le.Z)({key:"panel"},Gt,{visible:Mt,forceRender:Nn,onVisibleChanged:function(Zn){rr==null||rr(Zn)},removeOnLeave:!1,leavedClassName:"".concat(ar,"-content-wrapper-hidden")}),function(dr,Zn){var Mn=dr.className,Ur=dr.style,si=oe.createElement(Bt,(0,Le.Z)({id:nt,containerRef:Zn,prefixCls:ar,className:Xe()(Jn,Xn==null?void 0:Xn.content),style:(0,Ht.Z)((0,Ht.Z)({},gt),Wr==null?void 0:Wr.content)},(0,He.Z)(ut,{aria:!0}),xr),hr);return oe.createElement("div",(0,Le.Z)({className:Xe()("".concat(ar,"-content-wrapper"),Xn==null?void 0:Xn.wrapper,Mn),style:(0,Ht.Z)((0,Ht.Z)((0,Ht.Z)({},Fn),Ur),Wr==null?void 0:Wr.wrapper)},(0,He.Z)(ut,{data:!0})),Gr?Gr(si):si)}),kr=(0,Ht.Z)({},An);return Qn&&(kr.zIndex=Qn),oe.createElement(ce.Provider,{value:kt},oe.createElement("div",{className:Xe()(ar,"".concat(ar,"-").concat(nn),Ft,(0,ke.Z)((0,ke.Z)({},"".concat(ar,"-open"),Mt),"".concat(ar,"-inline"),ln)),style:kr,tabIndex:-1,ref:ai,onKeyDown:mi},ft,oe.createElement("div",{tabIndex:0,ref:ti,style:Et,"aria-hidden":"true","data-sentinel":"start"}),Or,oe.createElement("div",{tabIndex:0,ref:xi,style:Et,"aria-hidden":"true","data-sentinel":"end"})))}var Pt=oe.forwardRef(pn),St=Pt,jt=function(zt){var en=zt.open,Sn=en===void 0?!1:en,yn=zt.prefixCls,ar=yn===void 0?"rc-drawer":yn,Mt=zt.placement,nn=Mt===void 0?"right":Mt,ln=zt.autoFocus,Un=ln===void 0?!0:ln,Nn=zt.keyboard,un=Nn===void 0?!0:Nn,ir=zt.width,Xn=ir===void 0?378:ir,Ft=zt.mask,An=Ft===void 0?!0:Ft,Qn=zt.maskClosable,Jn=Qn===void 0?!0:Qn,nt=zt.getContainer,gt=zt.forceRender,Kt=zt.afterOpenChange,vn=zt.destroyOnClose,Rn=zt.onMouseEnter,hr=zt.onMouseOver,$r=zt.onMouseLeave,Xr=zt.onClick,vr=zt.onKeyDown,lr=zt.onKeyUp,Dr=zt.panelRef,rr=oe.useState(!1),Tn=(0,rt.Z)(rr,2),_n=Tn[0],Ln=Tn[1],mr=oe.useState(!1),cr=(0,rt.Z)(mr,2),pr=cr[0],Rr=cr[1];(0,Dt.Z)(function(){Rr(!0)},[]);var Wr=pr?Sn:!1,Gr=oe.useRef(),ai=oe.useRef();(0,Dt.Z)(function(){Wr&&(ai.current=document.activeElement)},[Wr]);var ti=function(Lr){var wr;if(Ln(Lr),Kt==null||Kt(Lr),!Lr&&ai.current&&!((wr=Gr.current)!==null&&wr!==void 0&&wr.contains(ai.current))){var Lt;(Lt=ai.current)===null||Lt===void 0||Lt.focus({preventScroll:!0})}},xi=oe.useMemo(function(){return{panel:Dr}},[Dr]);if(!gt&&!_n&&!Wr&&vn)return null;var mi={onMouseEnter:Rn,onMouseOver:hr,onMouseLeave:$r,onClick:Xr,onKeyDown:vr,onKeyUp:lr},Xt=(0,Ht.Z)((0,Ht.Z)({},zt),{},{open:Wr,prefixCls:ar,placement:nn,autoFocus:Un,keyboard:un,width:Xn,mask:An,maskClosable:Jn,inline:nt===!1,afterOpenChange:ti,ref:Gr},mi);return oe.createElement(Pe.Provider,{value:xi},oe.createElement(at.Z,{open:Wr||gt||_n,autoDestroy:!1,getContainer:nt,autoLock:An&&(Wr||_n)},oe.createElement(St,Xt)))},Je=jt,wt=Je,lt=pe(62487),Fe=pe(75030),Zt=pe(86641),$e=pe(55743),At=pe(48755),Qt=pe(91190),Te=pe(78776),xe=pe(458),Cn=ut=>{var zt,en;const{prefixCls:Sn,title:yn,footer:ar,extra:Mt,loading:nn,onClose:ln,headerStyle:Un,bodyStyle:Nn,footerStyle:un,children:ir,classNames:Xn,styles:Ft}=ut,An=(0,At.dj)("drawer"),Qn=oe.useCallback(vn=>oe.createElement("button",{type:"button",onClick:ln,"aria-label":"Close",className:`${Sn}-close`},vn),[ln]),[Jn,nt]=(0,Te.Z)((0,Te.w)(ut),(0,Te.w)(An),{closable:!0,closeIconRender:Qn}),gt=oe.useMemo(()=>{var vn,Rn;return!yn&&!Jn?null:oe.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(vn=An.styles)===null||vn===void 0?void 0:vn.header),Un),Ft==null?void 0:Ft.header),className:Xe()(`${Sn}-header`,{[`${Sn}-header-close-only`]:Jn&&!yn&&!Mt},(Rn=An.classNames)===null||Rn===void 0?void 0:Rn.header,Xn==null?void 0:Xn.header)},oe.createElement("div",{className:`${Sn}-header-title`},nt,yn&&oe.createElement("div",{className:`${Sn}-title`},yn)),Mt&&oe.createElement("div",{className:`${Sn}-extra`},Mt))},[Jn,nt,Mt,Un,Sn,yn]),Kt=oe.useMemo(()=>{var vn,Rn;if(!ar)return null;const hr=`${Sn}-footer`;return oe.createElement("div",{className:Xe()(hr,(vn=An.classNames)===null||vn===void 0?void 0:vn.footer,Xn==null?void 0:Xn.footer),style:Object.assign(Object.assign(Object.assign({},(Rn=An.styles)===null||Rn===void 0?void 0:Rn.footer),un),Ft==null?void 0:Ft.footer)},ar)},[ar,un,Sn]);return oe.createElement(oe.Fragment,null,gt,oe.createElement("div",{className:Xe()(`${Sn}-body`,Xn==null?void 0:Xn.body,(zt=An.classNames)===null||zt===void 0?void 0:zt.body),style:Object.assign(Object.assign(Object.assign({},(en=An.styles)===null||en===void 0?void 0:en.body),Nn),Ft==null?void 0:Ft.body)},nn?oe.createElement(xe.Z,{active:!0,title:!1,paragraph:{rows:5},className:`${Sn}-body-skeleton`}):ir),Kt)},mn=pe(36237),Ze=pe(63356),Ct=pe(16931),_t=pe(51636);const In=ut=>{const zt="100%";return{left:`translateX(-${zt})`,right:`translateX(${zt})`,top:`translateY(-${zt})`,bottom:`translateY(${zt})`}[ut]},xn=(ut,zt)=>({"&-enter, &-appear":Object.assign(Object.assign({},ut),{"&-active":zt}),"&-leave":Object.assign(Object.assign({},zt),{"&-active":ut})}),Wn=(ut,zt)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${zt}`}}},xn({opacity:ut},{opacity:1})),ct=(ut,zt)=>[Wn(.7,zt),xn({transform:In(ut)},{transform:"none"})];var Rt=ut=>{const{componentCls:zt,motionDurationSlow:en}=ut;return{[zt]:{[`${zt}-mask-motion`]:Wn(0,en),[`${zt}-panel-motion`]:["left","right","top","bottom"].reduce((Sn,yn)=>Object.assign(Object.assign({},Sn),{[`&-${yn}`]:ct(yn,en)}),{})}}};const be=ut=>{const{borderRadiusSM:zt,componentCls:en,zIndexPopup:Sn,colorBgMask:yn,colorBgElevated:ar,motionDurationSlow:Mt,motionDurationMid:nn,paddingXS:ln,padding:Un,paddingLG:Nn,fontSizeLG:un,lineHeightLG:ir,lineWidth:Xn,lineType:Ft,colorSplit:An,marginXS:Qn,colorIcon:Jn,colorIconHover:nt,colorBgTextHover:gt,colorBgTextActive:Kt,colorText:vn,fontWeightStrong:Rn,footerPaddingBlock:hr,footerPaddingInline:$r,calc:Xr}=ut,vr=`${en}-content-wrapper`;return{[en]:{position:"fixed",inset:0,zIndex:Sn,pointerEvents:"none",color:vn,"&-pure":{position:"relative",background:ar,display:"flex",flexDirection:"column",[`&${en}-left`]:{boxShadow:ut.boxShadowDrawerLeft},[`&${en}-right`]:{boxShadow:ut.boxShadowDrawerRight},[`&${en}-top`]:{boxShadow:ut.boxShadowDrawerUp},[`&${en}-bottom`]:{boxShadow:ut.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${en}-mask`]:{position:"absolute",inset:0,zIndex:Sn,background:yn,pointerEvents:"auto"},[vr]:{position:"absolute",zIndex:Sn,maxWidth:"100vw",transition:`all ${Mt}`,"&-hidden":{display:"none"}},[`&-left > ${vr}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:ut.boxShadowDrawerLeft},[`&-right > ${vr}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:ut.boxShadowDrawerRight},[`&-top > ${vr}`]:{top:0,insetInline:0,boxShadow:ut.boxShadowDrawerUp},[`&-bottom > ${vr}`]:{bottom:0,insetInline:0,boxShadow:ut.boxShadowDrawerDown},[`${en}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:ar,pointerEvents:"auto"},[`${en}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${(0,mn.unit)(Un)} ${(0,mn.unit)(Nn)}`,fontSize:un,lineHeight:ir,borderBottom:`${(0,mn.unit)(Xn)} ${Ft} ${An}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${en}-extra`]:{flex:"none"},[`${en}-close`]:Object.assign({display:"inline-flex",width:Xr(un).add(ln).equal(),height:Xr(un).add(ln).equal(),borderRadius:zt,justifyContent:"center",alignItems:"center",marginInlineEnd:Qn,color:Jn,fontWeight:Rn,fontSize:un,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${nn}`,textRendering:"auto","&:hover":{color:nt,backgroundColor:gt,textDecoration:"none"},"&:active":{backgroundColor:Kt}},(0,Ze.Qy)(ut)),[`${en}-title`]:{flex:1,margin:0,fontWeight:ut.fontWeightStrong,fontSize:un,lineHeight:ir},[`${en}-body`]:{flex:1,minWidth:0,minHeight:0,padding:Nn,overflow:"auto",[`${en}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${en}-footer`]:{flexShrink:0,padding:`${(0,mn.unit)(hr)} ${(0,mn.unit)($r)}`,borderTop:`${(0,mn.unit)(Xn)} ${Ft} ${An}`},"&-rtl":{direction:"rtl"}}}},de=ut=>({zIndexPopup:ut.zIndexPopupBase,footerPaddingBlock:ut.paddingXS,footerPaddingInline:ut.padding});var le=(0,Ct.I$)("Drawer",ut=>{const zt=(0,_t.mergeToken)(ut,{});return[be(zt),Rt(zt)]},de),ye=function(ut,zt){var en={};for(var Sn in ut)Object.prototype.hasOwnProperty.call(ut,Sn)&&zt.indexOf(Sn)<0&&(en[Sn]=ut[Sn]);if(ut!=null&&typeof Object.getOwnPropertySymbols=="function")for(var yn=0,Sn=Object.getOwnPropertySymbols(ut);yn<Sn.length;yn++)zt.indexOf(Sn[yn])<0&&Object.prototype.propertyIsEnumerable.call(ut,Sn[yn])&&(en[Sn[yn]]=ut[Sn[yn]]);return en};const Ie=null,he={distance:180},We=ut=>{var zt;const{rootClassName:en,width:Sn,height:yn,size:ar="default",mask:Mt=!0,push:nn=he,open:ln,afterOpenChange:Un,onClose:Nn,prefixCls:un,getContainer:ir,style:Xn,className:Ft,visible:An,afterVisibleChange:Qn,maskStyle:Jn,drawerStyle:nt,contentWrapperStyle:gt}=ut,Kt=ye(ut,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:vn,getPrefixCls:Rn,direction:hr,className:$r,style:Xr,classNames:vr,styles:lr}=(0,At.dj)("drawer"),Dr=Rn("drawer",un),[rr,Tn,_n]=le(Dr),Ln=ir===void 0&&vn?()=>vn(document.body):ir,mr=Xe()({"no-mask":!Mt,[`${Dr}-rtl`]:hr==="rtl"},en,Tn,_n),cr=oe.useMemo(()=>Sn!=null?Sn:ar==="large"?736:378,[Sn,ar]),pr=oe.useMemo(()=>yn!=null?yn:ar==="large"?736:378,[yn,ar]),Rr={motionName:(0,Zt.m)(Dr,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},Wr=Xt=>({motionName:(0,Zt.m)(Dr,`panel-motion-${Xt}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),Gr=(0,Qt.H)(),[ai,ti]=(0,Fe.Cn)("Drawer",Kt.zIndex),{classNames:xi={},styles:mi={}}=Kt;return rr(oe.createElement(lt.Z,{form:!0,space:!0},oe.createElement($e.Z.Provider,{value:ti},oe.createElement(wt,Object.assign({prefixCls:Dr,onClose:Nn,maskMotion:Rr,motion:Wr},Kt,{classNames:{mask:Xe()(xi.mask,vr.mask),content:Xe()(xi.content,vr.content),wrapper:Xe()(xi.wrapper,vr.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},mi.mask),Jn),lr.mask),content:Object.assign(Object.assign(Object.assign({},mi.content),nt),lr.content),wrapper:Object.assign(Object.assign(Object.assign({},mi.wrapper),gt),lr.wrapper)},open:ln!=null?ln:An,mask:Mt,push:nn,width:cr,height:pr,style:Object.assign(Object.assign({},Xr),Xn),className:Xe()($r,Ft),rootClassName:mr,getContainer:Ln,afterOpenChange:Un!=null?Un:Qn,panelRef:Gr,zIndex:ai}),oe.createElement(Cn,Object.assign({prefixCls:Dr},Kt,{onClose:Nn}))))))},tt=ut=>{const{prefixCls:zt,style:en,className:Sn,placement:yn="right"}=ut,ar=ye(ut,["prefixCls","style","className","placement"]),{getPrefixCls:Mt}=oe.useContext(At.E_),nn=Mt("drawer",zt),[ln,Un,Nn]=le(nn),un=Xe()(nn,`${nn}-pure`,`${nn}-${yn}`,Un,Nn,Sn);return ln(oe.createElement("div",{className:un,style:en},oe.createElement(Cn,Object.assign({prefixCls:nn},ar))))};We._InternalPanelDoNotUseOrYouWillBeFired=tt;var dn=We},19563:function(gr,zn,pe){"use strict";pe.d(zn,{Z:function(){return mn}});var oe=pe(59301),qt=pe(33853),Xe=pe(38819),Ht=pe(92310),rt=pe.n(Ht),at=pe(96478),Dt=pe(6089),Me=pe(18929),Pe=pe(2738),ce=pe(75030),Le=Ze=>typeof Ze!="object"&&typeof Ze!="function"||Ze===null,Ve=pe(52838),Ke=pe(45915),He=pe(22703),Ge=pe(32383),ze=pe(55743),qe=pe(48755),pt=pe(83397),Bt=pe(93041),vt=pe(78857),yt=pe(57700),Nt=pe(36237),Et=pe(63356),pn=pe(46e3),Pt=pe(93873),St=pe(34925),jt=pe(37645),Je=pe(36305),wt=pe(16931),lt=pe(51636),Zt=Ze=>{const{componentCls:Ct,menuCls:_t,colorError:In,colorTextLightSolid:xn}=Ze,Wn=`${_t}-item`;return{[`${Ct}, ${Ct}-menu-submenu`]:{[`${_t} ${Wn}`]:{[`&${Wn}-danger:not(${Wn}-disabled)`]:{color:In,"&:hover":{color:xn,backgroundColor:In}}}}}};const $e=Ze=>{const{componentCls:Ct,menuCls:_t,zIndexPopup:In,dropdownArrowDistance:xn,sizePopupArrow:Wn,antCls:ct,iconCls:En,motionDurationMid:Rt,paddingBlock:be,fontSize:de,dropdownEdgeChildPadding:le,colorTextDisabled:ye,fontSizeIcon:Ie,controlPaddingHorizontal:he,colorBgElevated:We}=Ze;return[{[Ct]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:In,display:"block","&::before":{position:"absolute",insetBlock:Ze.calc(Wn).div(2).sub(xn).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${ct}-btn`]:{[`& > ${En}-down, & > ${ct}-btn-icon > ${En}-down`]:{fontSize:Ie}},[`${Ct}-wrap`]:{position:"relative",[`${ct}-btn > ${En}-down`]:{fontSize:Ie},[`${En}-down::before`]:{transition:`transform ${Rt}`}},[`${Ct}-wrap-open`]:{[`${En}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${ct}-slide-down-enter${ct}-slide-down-enter-active${Ct}-placement-bottomLeft,
|
|
|
&${ct}-slide-down-appear${ct}-slide-down-appear-active${Ct}-placement-bottomLeft,
|
|
|
&${ct}-slide-down-enter${ct}-slide-down-enter-active${Ct}-placement-bottom,
|
|
|
&${ct}-slide-down-appear${ct}-slide-down-appear-active${Ct}-placement-bottom,
|
|
|
&${ct}-slide-down-enter${ct}-slide-down-enter-active${Ct}-placement-bottomRight,
|
|
|
&${ct}-slide-down-appear${ct}-slide-down-appear-active${Ct}-placement-bottomRight`]:{animationName:pn.fJ},[`&${ct}-slide-up-enter${ct}-slide-up-enter-active${Ct}-placement-topLeft,
|
|
|
&${ct}-slide-up-appear${ct}-slide-up-appear-active${Ct}-placement-topLeft,
|
|
|
&${ct}-slide-up-enter${ct}-slide-up-enter-active${Ct}-placement-top,
|
|
|
&${ct}-slide-up-appear${ct}-slide-up-appear-active${Ct}-placement-top,
|
|
|
&${ct}-slide-up-enter${ct}-slide-up-enter-active${Ct}-placement-topRight,
|
|
|
&${ct}-slide-up-appear${ct}-slide-up-appear-active${Ct}-placement-topRight`]:{animationName:pn.Qt},[`&${ct}-slide-down-leave${ct}-slide-down-leave-active${Ct}-placement-bottomLeft,
|
|
|
&${ct}-slide-down-leave${ct}-slide-down-leave-active${Ct}-placement-bottom,
|
|
|
&${ct}-slide-down-leave${ct}-slide-down-leave-active${Ct}-placement-bottomRight`]:{animationName:pn.Uw},[`&${ct}-slide-up-leave${ct}-slide-up-leave-active${Ct}-placement-topLeft,
|
|
|
&${ct}-slide-up-leave${ct}-slide-up-leave-active${Ct}-placement-top,
|
|
|
&${ct}-slide-up-leave${ct}-slide-up-leave-active${Ct}-placement-topRight`]:{animationName:pn.ly}}},(0,jt.ZP)(Ze,We,{arrowPlacement:{top:!0,bottom:!0}}),{[`${Ct} ${_t}`]:{position:"relative",margin:0},[`${_t}-submenu-popup`]:{position:"absolute",zIndex:In,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${Ct}, ${Ct}-menu-submenu`]:Object.assign(Object.assign({},(0,Et.Wf)(Ze)),{[_t]:Object.assign(Object.assign({padding:le,listStyleType:"none",backgroundColor:We,backgroundClip:"padding-box",borderRadius:Ze.borderRadiusLG,outline:"none",boxShadow:Ze.boxShadowSecondary},(0,Et.Qy)(Ze)),{"&:empty":{padding:0,boxShadow:"none"},[`${_t}-item-group-title`]:{padding:`${(0,Nt.unit)(be)} ${(0,Nt.unit)(he)}`,color:Ze.colorTextDescription,transition:`all ${Rt}`},[`${_t}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${_t}-item-icon`]:{minWidth:de,marginInlineEnd:Ze.marginXS,fontSize:Ze.fontSizeSM},[`${_t}-title-content`]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:`all ${Rt}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},[`${_t}-item-extra`]:{paddingInlineStart:Ze.padding,marginInlineStart:"auto",fontSize:Ze.fontSizeSM,color:Ze.colorTextDescription}},[`${_t}-item, ${_t}-submenu-title`]:Object.assign(Object.assign({display:"flex",margin:0,padding:`${(0,Nt.unit)(be)} ${(0,Nt.unit)(he)}`,color:Ze.colorText,fontWeight:"normal",fontSize:de,lineHeight:Ze.lineHeight,cursor:"pointer",transition:`all ${Rt}`,borderRadius:Ze.borderRadiusSM,"&:hover, &-active":{backgroundColor:Ze.controlItemBgHover}},(0,Et.Qy)(Ze)),{"&-selected":{color:Ze.colorPrimary,backgroundColor:Ze.controlItemBgActive,"&:hover, &-active":{backgroundColor:Ze.controlItemBgActiveHover}},"&-disabled":{color:ye,cursor:"not-allowed","&:hover":{color:ye,backgroundColor:We,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${(0,Nt.unit)(Ze.marginXXS)} 0`,overflow:"hidden",lineHeight:0,backgroundColor:Ze.colorSplit},[`${Ct}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:Ze.paddingXS,[`${Ct}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:Ze.colorTextDescription,fontSize:Ie,fontStyle:"normal"}}}),[`${_t}-item-group-list`]:{margin:`0 ${(0,Nt.unit)(Ze.marginXS)}`,padding:0,listStyle:"none"},[`${_t}-submenu-title`]:{paddingInlineEnd:Ze.calc(he).add(Ze.fontSizeSM).equal()},[`${_t}-submenu-vertical`]:{position:"relative"},[`${_t}-submenu${_t}-submenu-disabled ${Ct}-menu-submenu-title`]:{[`&, ${Ct}-menu-submenu-arrow-icon`]:{color:ye,backgroundColor:We,cursor:"not-allowed"}},[`${_t}-submenu-selected ${Ct}-menu-submenu-title`]:{color:Ze.colorPrimary}})})},[(0,pn.oN)(Ze,"slide-up"),(0,pn.oN)(Ze,"slide-down"),(0,Pt.Fm)(Ze,"move-up"),(0,Pt.Fm)(Ze,"move-down"),(0,St._y)(Ze,"zoom-big")]]},At=Ze=>Object.assign(Object.assign({zIndexPopup:Ze.zIndexPopupBase+50,paddingBlock:(Ze.controlHeight-Ze.fontSize*Ze.lineHeight)/2},(0,jt.wZ)({contentRadius:Ze.borderRadiusLG,limitVerticalRadius:!0})),(0,Je.w)(Ze));var Qt=(0,wt.I$)("Dropdown",Ze=>{const{marginXXS:Ct,sizePopupArrow:_t,paddingXXS:In,componentCls:xn}=Ze,Wn=(0,lt.mergeToken)(Ze,{menuCls:`${xn}-menu`,dropdownArrowDistance:Ze.calc(_t).div(2).add(Ct).equal(),dropdownEdgeChildPadding:In});return[$e(Wn),Zt(Wn)]},At,{resetStyle:!1});const Te=null,xe=Ze=>{var Ct;const{menu:_t,arrow:In,prefixCls:xn,children:Wn,trigger:ct,disabled:En,dropdownRender:Rt,getPopupContainer:be,overlayClassName:de,rootClassName:le,overlayStyle:ye,open:Ie,onOpenChange:he,visible:We,onVisibleChange:tt,mouseEnterDelay:dn=.15,mouseLeaveDelay:ut=.1,autoAdjustOverflow:zt=!0,placement:en="",overlay:Sn,transitionName:yn}=Ze,{getPopupContainer:ar,getPrefixCls:Mt,direction:nn,dropdown:ln}=oe.useContext(qe.E_),Un=(0,Ge.ln)("Dropdown"),Nn=oe.useMemo(()=>{const Ln=Mt();return yn!==void 0?yn:en.includes("top")?`${Ln}-slide-down`:`${Ln}-slide-up`},[Mt,en,yn]),un=oe.useMemo(()=>en?en.includes("Center")?en.slice(0,en.indexOf("Center")):en:nn==="rtl"?"bottomRight":"bottomLeft",[en,nn]),ir=Mt("dropdown",xn),Xn=(0,pt.Z)(ir),[Ft,An,Qn]=Qt(ir,Xn),[,Jn]=(0,yt.ZP)(),nt=oe.Children.only(Le(Wn)?oe.createElement("span",null,Wn):Wn),gt=(0,He.Tm)(nt,{className:rt()(`${ir}-trigger`,{[`${ir}-rtl`]:nn==="rtl"},nt.props.className),disabled:(Ct=nt.props.disabled)!==null&&Ct!==void 0?Ct:En}),Kt=En?[]:ct,vn=!!(Kt!=null&&Kt.includes("contextMenu")),[Rn,hr]=(0,Me.Z)(!1,{value:Ie!=null?Ie:We}),$r=(0,Dt.Z)(Ln=>{he==null||he(Ln,{source:"trigger"}),tt==null||tt(Ln),hr(Ln)}),Xr=rt()(de,le,An,Qn,Xn,ln==null?void 0:ln.className,{[`${ir}-rtl`]:nn==="rtl"}),vr=(0,Ve.Z)({arrowPointAtCenter:typeof In=="object"&&In.pointAtCenter,autoAdjustOverflow:zt,offset:Jn.marginXXS,arrowWidth:In?Jn.sizePopupArrow:0,borderRadius:Jn.borderRadius}),lr=oe.useCallback(()=>{_t!=null&&_t.selectable&&(_t!=null&&_t.multiple)||(he==null||he(!1,{source:"menu"}),hr(!1))},[_t==null?void 0:_t.selectable,_t==null?void 0:_t.multiple]),Dr=()=>{let Ln;return _t!=null&&_t.items?Ln=oe.createElement(Bt.default,Object.assign({},_t)):typeof Sn=="function"?Ln=Sn():Ln=Sn,Rt&&(Ln=Rt(Ln)),Ln=oe.Children.only(typeof Ln=="string"?oe.createElement("span",null,Ln):Ln),oe.createElement(vt.J,{prefixCls:`${ir}-menu`,rootClassName:rt()(Qn,Xn),expandIcon:oe.createElement("span",{className:`${ir}-menu-submenu-arrow`},nn==="rtl"?oe.createElement(qt.Z,{className:`${ir}-menu-submenu-arrow-icon`}):oe.createElement(Xe.Z,{className:`${ir}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:lr,validator:mr=>{let{mode:cr}=mr}},Ln)},[rr,Tn]=(0,ce.Cn)("Dropdown",ye==null?void 0:ye.zIndex);let _n=oe.createElement(at.Z,Object.assign({alignPoint:vn},(0,Pe.Z)(Ze,["rootClassName"]),{mouseEnterDelay:dn,mouseLeaveDelay:ut,visible:Rn,builtinPlacements:vr,arrow:!!In,overlayClassName:Xr,prefixCls:ir,getPopupContainer:be||ar,transitionName:Nn,trigger:Kt,overlay:Dr,placement:un,onVisibleChange:$r,overlayStyle:Object.assign(Object.assign(Object.assign({},ln==null?void 0:ln.style),ye),{zIndex:rr})}),gt);return rr&&(_n=oe.createElement(ze.Z.Provider,{value:Tn},_n)),Ft(_n)},It=(0,Ke.Z)(xe,"align",void 0,"dropdown",Ze=>Ze),Cn=Ze=>oe.createElement(It,Object.assign({},Ze),oe.createElement("span",null));xe._InternalPanelDoNotUseOrYouWillBeFired=Cn;var mn=xe},75727:function(gr,zn,pe){"use strict";pe.d(zn,{Z:function(){return Ke}});var oe=pe(19563),qt=pe(59301),Xe=pe(18785),Ht=pe(92310),rt=pe.n(Ht),at=pe(7939),Dt=pe(48755),Me=pe(44104),Pe=pe(70045),ce=function(He,Ge){var ze={};for(var qe in He)Object.prototype.hasOwnProperty.call(He,qe)&&Ge.indexOf(qe)<0&&(ze[qe]=He[qe]);if(He!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pt=0,qe=Object.getOwnPropertySymbols(He);pt<qe.length;pt++)Ge.indexOf(qe[pt])<0&&Object.prototype.propertyIsEnumerable.call(He,qe[pt])&&(ze[qe[pt]]=He[qe[pt]]);return ze};const ke=He=>{const{getPopupContainer:Ge,getPrefixCls:ze,direction:qe}=qt.useContext(Dt.E_),{prefixCls:pt,type:Bt="default",danger:vt,disabled:yt,loading:Nt,onClick:Et,htmlType:pn,children:Pt,className:St,menu:jt,arrow:Je,autoFocus:wt,overlay:lt,trigger:Fe,align:Zt,open:$e,onOpenChange:At,placement:Qt,getPopupContainer:Te,href:xe,icon:It=qt.createElement(Xe.Z,null),title:Cn,buttonsRender:mn=dn=>dn,mouseEnterDelay:Ze,mouseLeaveDelay:Ct,overlayClassName:_t,overlayStyle:In,destroyPopupOnHide:xn,dropdownRender:Wn}=He,ct=ce(He,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),En=ze("dropdown",pt),Rt=`${En}-button`,be={menu:jt,arrow:Je,autoFocus:wt,align:Zt,disabled:yt,trigger:yt?[]:Fe,onOpenChange:At,getPopupContainer:Te||Ge,mouseEnterDelay:Ze,mouseLeaveDelay:Ct,overlayClassName:_t,overlayStyle:In,destroyPopupOnHide:xn,dropdownRender:Wn},{compactSize:de,compactItemClassnames:le}=(0,Pe.ri)(En,qe),ye=rt()(Rt,le,St);"overlay"in He&&(be.overlay=lt),"open"in He&&(be.open=$e),"placement"in He?be.placement=Qt:be.placement=qe==="rtl"?"bottomLeft":"bottomRight";const Ie=qt.createElement(at.ZP,{type:Bt,danger:vt,disabled:yt,loading:Nt,onClick:Et,htmlType:pn,href:xe,title:Cn},Pt),he=qt.createElement(at.ZP,{type:Bt,danger:vt,icon:It}),[We,tt]=mn([Ie,he]);return qt.createElement(Me.Z.Compact,Object.assign({className:ye,size:de,block:!0},ct),We,qt.createElement(oe.Z,Object.assign({},be),tt))};ke.__ANT_BUTTON=!0;var Le=ke;const Ve=oe.Z;Ve.Button=Le;var Ke=Ve},584:function(gr,zn,pe){"use strict";pe.d(zn,{Z:function(){return Bt}});var oe=pe(59301),qt=pe(92310),Xe=pe.n(qt),Ht=pe(9017),rt=pe(17835),at=pe(57700),Me=()=>{const[,vt]=(0,at.ZP)(),[yt]=(0,Ht.Z)("Empty"),Et=new rt.FastColor(vt.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return oe.createElement("svg",{style:Et,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},oe.createElement("title",null,(yt==null?void 0:yt.description)||"Empty"),oe.createElement("g",{fill:"none",fillRule:"evenodd"},oe.createElement("g",{transform:"translate(24 31.67)"},oe.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),oe.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),oe.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),oe.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),oe.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),oe.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),oe.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},oe.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),oe.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},ce=()=>{const[,vt]=(0,at.ZP)(),[yt]=(0,Ht.Z)("Empty"),{colorFill:Nt,colorFillTertiary:Et,colorFillQuaternary:pn,colorBgContainer:Pt}=vt,{borderColor:St,shadowColor:jt,contentColor:Je}=(0,oe.useMemo)(()=>({borderColor:new rt.FastColor(Nt).onBackground(Pt).toHexString(),shadowColor:new rt.FastColor(Et).onBackground(Pt).toHexString(),contentColor:new rt.FastColor(pn).onBackground(Pt).toHexString()}),[Nt,Et,pn,Pt]);return oe.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},oe.createElement("title",null,(yt==null?void 0:yt.description)||"Empty"),oe.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},oe.createElement("ellipse",{fill:jt,cx:"32",cy:"33",rx:"32",ry:"7"}),oe.createElement("g",{fillRule:"nonzero",stroke:St},oe.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),oe.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:Je}))))},ke=pe(16931),Le=pe(51636);const Ve=vt=>{const{componentCls:yt,margin:Nt,marginXS:Et,marginXL:pn,fontSize:Pt,lineHeight:St}=vt;return{[yt]:{marginInline:Et,fontSize:Pt,lineHeight:St,textAlign:"center",[`${yt}-image`]:{height:vt.emptyImgHeight,marginBottom:Et,opacity:vt.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${yt}-description`]:{color:vt.colorTextDescription},[`${yt}-footer`]:{marginTop:Nt},"&-normal":{marginBlock:pn,color:vt.colorTextDescription,[`${yt}-description`]:{color:vt.colorTextDescription},[`${yt}-image`]:{height:vt.emptyImgHeightMD}},"&-small":{marginBlock:Et,color:vt.colorTextDescription,[`${yt}-image`]:{height:vt.emptyImgHeightSM}}}}};var Ke=(0,ke.I$)("Empty",vt=>{const{componentCls:yt,controlHeightLG:Nt,calc:Et}=vt,pn=(0,Le.mergeToken)(vt,{emptyImgCls:`${yt}-img`,emptyImgHeight:Et(Nt).mul(2.5).equal(),emptyImgHeightMD:Nt,emptyImgHeightSM:Et(Nt).mul(.875).equal()});return[Ve(pn)]}),He=pe(48755),Ge=function(vt,yt){var Nt={};for(var Et in vt)Object.prototype.hasOwnProperty.call(vt,Et)&&yt.indexOf(Et)<0&&(Nt[Et]=vt[Et]);if(vt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pn=0,Et=Object.getOwnPropertySymbols(vt);pn<Et.length;pn++)yt.indexOf(Et[pn])<0&&Object.prototype.propertyIsEnumerable.call(vt,Et[pn])&&(Nt[Et[pn]]=vt[Et[pn]]);return Nt};const ze=oe.createElement(Me,null),qe=oe.createElement(ce,null),pt=vt=>{const{className:yt,rootClassName:Nt,prefixCls:Et,image:pn=ze,description:Pt,children:St,imageStyle:jt,style:Je,classNames:wt,styles:lt}=vt,Fe=Ge(vt,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:Zt,direction:$e,className:At,style:Qt,classNames:Te,styles:xe}=(0,He.dj)("empty"),It=Zt("empty",Et),[Cn,mn,Ze]=Ke(It),[Ct]=(0,Ht.Z)("Empty"),_t=typeof Pt!="undefined"?Pt:Ct==null?void 0:Ct.description,In=typeof _t=="string"?_t:"empty";let xn=null;return typeof pn=="string"?xn=oe.createElement("img",{alt:In,src:pn}):xn=pn,Cn(oe.createElement("div",Object.assign({className:Xe()(mn,Ze,It,At,{[`${It}-normal`]:pn===qe,[`${It}-rtl`]:$e==="rtl"},yt,Nt,Te.root,wt==null?void 0:wt.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},xe.root),Qt),lt==null?void 0:lt.root),Je)},Fe),oe.createElement("div",{className:Xe()(`${It}-image`,Te.image,wt==null?void 0:wt.image),style:Object.assign(Object.assign(Object.assign({},jt),xe.image),lt==null?void 0:lt.image)},xn),_t&&oe.createElement("div",{className:Xe()(`${It}-description`,Te.description,wt==null?void 0:wt.description),style:Object.assign(Object.assign({},xe.description),lt==null?void 0:lt.description)},_t),St&&oe.createElement("div",{className:Xe()(`${It}-footer`,Te.footer,wt==null?void 0:wt.footer),style:Object.assign(Object.assign({},xe.footer),lt==null?void 0:lt.footer)},St)))};pt.PRESENTED_IMAGE_DEFAULT=ze,pt.PRESENTED_IMAGE_SIMPLE=qe;var Bt=pt},28284:function(gr,zn,pe){"use strict";pe.d(zn,{default:function(){return Vt}});var oe=pe(56553),qt=pe(77654),Xe=pe(59301),Ht=pe(92310),rt=pe.n(Ht),at=pe(77900),Dt=pe(86641),Me=pe(83397);function Pe(ot){const[kt,ft]=Xe.useState(ot);return Xe.useEffect(()=>{const Gt=setTimeout(()=>{ft(ot)},ot.length?0:10);return()=>{clearTimeout(Gt)}},[ot]),kt}var ce=pe(36237),ke=pe(63356),Le=pe(34925),Ve=pe(34961),Ke=pe(51636),He=pe(16931),ze=ot=>{const{componentCls:kt}=ot,ft=`${kt}-show-help`,Gt=`${kt}-show-help-item`;return{[ft]:{transition:`opacity ${ot.motionDurationFast} ${ot.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Gt]:{overflow:"hidden",transition:`height ${ot.motionDurationFast} ${ot.motionEaseInOut},
|
|
|
opacity ${ot.motionDurationFast} ${ot.motionEaseInOut},
|
|
|
transform ${ot.motionDurationFast} ${ot.motionEaseInOut} !important`,[`&${Gt}-appear, &${Gt}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${Gt}-leave-active`]:{transform:"translateY(-5px)"}}}}};const qe=ot=>({legend:{display:"block",width:"100%",marginBottom:ot.marginLG,padding:0,color:ot.colorTextDescription,fontSize:ot.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,ce.unit)(ot.lineWidth)} ${ot.lineType} ${ot.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${(0,ce.unit)(ot.controlOutlineWidth)} ${ot.controlOutline}`},output:{display:"block",paddingTop:15,color:ot.colorText,fontSize:ot.fontSize,lineHeight:ot.lineHeight}}),pt=(ot,kt)=>{const{formItemCls:ft}=ot;return{[ft]:{[`${ft}-label > label`]:{height:kt},[`${ft}-control-input`]:{minHeight:kt}}}},Bt=ot=>{const{componentCls:kt}=ot;return{[ot.componentCls]:Object.assign(Object.assign(Object.assign({},(0,ke.Wf)(ot)),qe(ot)),{[`${kt}-text`]:{display:"inline-block",paddingInlineEnd:ot.paddingSM},"&-small":Object.assign({},pt(ot,ot.controlHeightSM)),"&-large":Object.assign({},pt(ot,ot.controlHeightLG))})}},vt=ot=>{const{formItemCls:kt,iconCls:ft,rootPrefixCls:Gt,antCls:Fn,labelRequiredMarkColor:xr,labelColor:Or,labelFontSize:kr,labelHeight:dr,labelColonMarginInlineStart:Zn,labelColonMarginInlineEnd:Mn,itemMarginBottom:Ur}=ot;return{[kt]:Object.assign(Object.assign({},(0,ke.Wf)(ot)),{marginBottom:Ur,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden${Fn}-row`]:{display:"none"},"&-has-warning":{[`${kt}-split`]:{color:ot.colorError}},"&-has-error":{[`${kt}-split`]:{color:ot.colorWarning}},[`${kt}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:ot.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:dr,color:Or,fontSize:kr,[`> ${ft}`]:{fontSize:ot.fontSize,verticalAlign:"top"},[`&${kt}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:ot.marginXXS,color:xr,fontSize:ot.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${kt}-required-mark-hidden, &${kt}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${kt}-optional`]:{display:"inline-block",marginInlineStart:ot.marginXXS,color:ot.colorTextDescription,[`&${kt}-required-mark-hidden`]:{display:"none"}},[`${kt}-tooltip`]:{color:ot.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:ot.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:Zn,marginInlineEnd:Mn},[`&${kt}-no-colon::after`]:{content:'"\\a0"'}}},[`${kt}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${Gt}-col-'"]):not([class*="' ${Gt}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:ot.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[kt]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:ot.colorTextDescription,fontSize:ot.fontSize,lineHeight:ot.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:ot.controlHeightSM,transition:`color ${ot.motionDurationMid} ${ot.motionEaseOut}`},"&-explain":{"&-error":{color:ot.colorError},"&-warning":{color:ot.colorWarning}}},[`&-with-help ${kt}-explain`]:{height:"auto",opacity:1},[`${kt}-feedback-icon`]:{fontSize:ot.fontSize,textAlign:"center",visibility:"visible",animationName:Le.kr,animationDuration:ot.motionDurationMid,animationTimingFunction:ot.motionEaseOutBack,pointerEvents:"none","&-success":{color:ot.colorSuccess},"&-error":{color:ot.colorError},"&-warning":{color:ot.colorWarning},"&-validating":{color:ot.colorPrimary}}})}},yt=(ot,kt)=>{const{formItemCls:ft}=ot;return{[`${kt}-horizontal`]:{[`${ft}-label`]:{flexGrow:0},[`${ft}-control`]:{flex:"1 1 0",minWidth:0},[`${ft}-label[class$='-24'], ${ft}-label[class*='-24 ']`]:{[`& + ${ft}-control`]:{minWidth:"unset"}}}}},Nt=ot=>{const{componentCls:kt,formItemCls:ft,inlineItemMarginBottom:Gt}=ot;return{[`${kt}-inline`]:{display:"flex",flexWrap:"wrap",[ft]:{flex:"none",marginInlineEnd:ot.margin,marginBottom:Gt,"&-row":{flexWrap:"nowrap"},[`> ${ft}-label,
|
|
|
> ${ft}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${ft}-label`]:{flex:"none"},[`${kt}-text`]:{display:"inline-block"},[`${ft}-has-feedback`]:{display:"inline-block"}}}}},Et=ot=>({padding:ot.verticalLabelPadding,margin:ot.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),pn=ot=>{const{componentCls:kt,formItemCls:ft,rootPrefixCls:Gt}=ot;return{[`${ft} ${ft}-label`]:Et(ot),[`${kt}:not(${kt}-inline)`]:{[ft]:{flexWrap:"wrap",[`${ft}-label, ${ft}-control`]:{[`&:not([class*=" ${Gt}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Pt=ot=>{const{componentCls:kt,formItemCls:ft,antCls:Gt}=ot;return{[`${kt}-vertical`]:{[`${ft}:not(${ft}-horizontal)`]:{[`${ft}-row`]:{flexDirection:"column"},[`${ft}-label > label`]:{height:"auto"},[`${ft}-control`]:{width:"100%"},[`${ft}-label,
|
|
|
${Gt}-col-24${ft}-label,
|
|
|
${Gt}-col-xl-24${ft}-label`]:Et(ot)}},[`@media (max-width: ${(0,ce.unit)(ot.screenXSMax)})`]:[pn(ot),{[kt]:{[`${ft}:not(${ft}-horizontal)`]:{[`${Gt}-col-xs-24${ft}-label`]:Et(ot)}}}],[`@media (max-width: ${(0,ce.unit)(ot.screenSMMax)})`]:{[kt]:{[`${ft}:not(${ft}-horizontal)`]:{[`${Gt}-col-sm-24${ft}-label`]:Et(ot)}}},[`@media (max-width: ${(0,ce.unit)(ot.screenMDMax)})`]:{[kt]:{[`${ft}:not(${ft}-horizontal)`]:{[`${Gt}-col-md-24${ft}-label`]:Et(ot)}}},[`@media (max-width: ${(0,ce.unit)(ot.screenLGMax)})`]:{[kt]:{[`${ft}:not(${ft}-horizontal)`]:{[`${Gt}-col-lg-24${ft}-label`]:Et(ot)}}}}},St=ot=>{const{formItemCls:kt,antCls:ft}=ot;return{[`${kt}-vertical`]:{[`${kt}-row`]:{flexDirection:"column"},[`${kt}-label > label`]:{height:"auto"},[`${kt}-control`]:{width:"100%"}},[`${kt}-vertical ${kt}-label,
|
|
|
${ft}-col-24${kt}-label,
|
|
|
${ft}-col-xl-24${kt}-label`]:Et(ot),[`@media (max-width: ${(0,ce.unit)(ot.screenXSMax)})`]:[pn(ot),{[kt]:{[`${ft}-col-xs-24${kt}-label`]:Et(ot)}}],[`@media (max-width: ${(0,ce.unit)(ot.screenSMMax)})`]:{[kt]:{[`${ft}-col-sm-24${kt}-label`]:Et(ot)}},[`@media (max-width: ${(0,ce.unit)(ot.screenMDMax)})`]:{[kt]:{[`${ft}-col-md-24${kt}-label`]:Et(ot)}},[`@media (max-width: ${(0,ce.unit)(ot.screenLGMax)})`]:{[kt]:{[`${ft}-col-lg-24${kt}-label`]:Et(ot)}}}},jt=ot=>({labelRequiredMarkColor:ot.colorError,labelColor:ot.colorTextHeading,labelFontSize:ot.fontSize,labelHeight:ot.controlHeight,labelColonMarginInlineStart:ot.marginXXS/2,labelColonMarginInlineEnd:ot.marginXS,itemMarginBottom:ot.marginLG,verticalLabelPadding:`0 0 ${ot.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),Je=(ot,kt)=>(0,Ke.mergeToken)(ot,{formItemCls:`${ot.componentCls}-item`,rootPrefixCls:kt});var wt=(0,He.I$)("Form",(ot,kt)=>{let{rootPrefixCls:ft}=kt;const Gt=Je(ot,ft);return[Bt(Gt),vt(Gt),ze(Gt),yt(Gt,Gt.componentCls),yt(Gt,Gt.formItemCls),Nt(Gt),Pt(Gt),St(Gt),(0,Ve.Z)(Gt),Le.kr]},jt,{order:-1e3});const lt=[];function Fe(ot,kt,ft){let Gt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof ot=="string"?ot:`${kt}-${Gt}`,error:ot,errorStatus:ft}}var $e=ot=>{let{help:kt,helpStatus:ft,errors:Gt=lt,warnings:Fn=lt,className:xr,fieldId:Or,onVisibleChanged:kr}=ot;const{prefixCls:dr}=Xe.useContext(oe.Rk),Zn=`${dr}-item-explain`,Mn=(0,Me.Z)(dr),[Ur,si,ei]=wt(dr,Mn),Ai=Xe.useMemo(()=>(0,Dt.Z)(dr),[dr]),Ki=Pe(Gt),Vi=Pe(Fn),eo=Xe.useMemo(()=>kt!=null?[Fe(kt,"help",ft)]:[].concat((0,qt.Z)(Ki.map((Fi,ki)=>Fe(Fi,"error","error",ki))),(0,qt.Z)(Vi.map((Fi,ki)=>Fe(Fi,"warning","warning",ki)))),[kt,ft,Ki,Vi]),Di=Xe.useMemo(()=>{const Fi={};return eo.forEach(ki=>{let{key:uo}=ki;Fi[uo]=(Fi[uo]||0)+1}),eo.map((ki,uo)=>Object.assign(Object.assign({},ki),{key:Fi[ki.key]>1?`${ki.key}-fallback-${uo}`:ki.key}))},[eo]),bi={};return Or&&(bi.id=`${Or}_help`),Ur(Xe.createElement(at.default,{motionDeadline:Ai.motionDeadline,motionName:`${dr}-show-help`,visible:!!Di.length,onVisibleChanged:kr},Fi=>{const{className:ki,style:uo}=Fi;return Xe.createElement("div",Object.assign({},bi,{className:rt()(Zn,ki,ei,Mn,xr,si),style:uo}),Xe.createElement(at.CSSMotionList,Object.assign({keys:Di},(0,Dt.Z)(dr),{motionName:`${dr}-show-help-item`,component:!1}),Zi=>{const{key:co,error:oo,errorStatus:Yi,className:Xi,style:Oo}=Zi;return Xe.createElement("div",{key:co,className:rt()(Xi,{[`${Zn}-${Yi}`]:Yi}),style:Oo},oo)}))}))},At=pe(69180),Qt=pe(48755),Te=pe(2171),xe=pe(31756),It=pe(23069),Cn=pe(76846),mn=pe(16722);const Ze=["parentNode"],Ct="form_item";function _t(ot){return ot===void 0||ot===!1?[]:Array.isArray(ot)?ot:[ot]}function In(ot,kt){if(!ot.length)return;const ft=ot.join("_");return kt?`${kt}_${ft}`:Ze.includes(ft)?`${Ct}_${ft}`:ft}function xn(ot,kt,ft,Gt,Fn,xr){let Or=Gt;return xr!==void 0?Or=xr:ft.validating?Or="validating":ot.length?Or="error":kt.length?Or="warning":(ft.touched||Fn&&ft.validated)&&(Or="success"),Or}var Wn=function(ot,kt){var ft={};for(var Gt in ot)Object.prototype.hasOwnProperty.call(ot,Gt)&&kt.indexOf(Gt)<0&&(ft[Gt]=ot[Gt]);if(ot!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fn=0,Gt=Object.getOwnPropertySymbols(ot);Fn<Gt.length;Fn++)kt.indexOf(Gt[Fn])<0&&Object.prototype.propertyIsEnumerable.call(ot,Gt[Fn])&&(ft[Gt[Fn]]=ot[Gt[Fn]]);return ft};function ct(ot){return _t(ot).join("_")}function En(ot,kt){const ft=kt.getFieldInstance(ot),Gt=(0,Cn.bn)(ft);if(Gt)return Gt;const Fn=In(_t(ot),kt.__INTERNAL__.name);if(Fn)return document.getElementById(Fn)}function Rt(ot){const[kt]=(0,At.useForm)(),ft=Xe.useRef({}),Gt=Xe.useMemo(()=>ot!=null?ot:Object.assign(Object.assign({},kt),{__INTERNAL__:{itemRef:Fn=>xr=>{const Or=ct(Fn);xr?ft.current[Or]=xr:delete ft.current[Or]}},scrollToField:function(Fn){let xr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{focus:Or}=xr,kr=Wn(xr,["focus"]),dr=En(Fn,Gt);dr&&((0,mn.Z)(dr,Object.assign({scrollMode:"if-needed",block:"nearest"},kr)),Or&&Gt.focusField(Fn))},focusField:Fn=>{var xr,Or;const kr=Gt.getFieldInstance(Fn);typeof(kr==null?void 0:kr.focus)=="function"?kr.focus():(Or=(xr=En(Fn,Gt))===null||xr===void 0?void 0:xr.focus)===null||Or===void 0||Or.call(xr)},getFieldInstance:Fn=>{const xr=ct(Fn);return ft.current[xr]}}),[ot,kt]);return[Gt]}var be=pe(98350),de=function(ot,kt){var ft={};for(var Gt in ot)Object.prototype.hasOwnProperty.call(ot,Gt)&&kt.indexOf(Gt)<0&&(ft[Gt]=ot[Gt]);if(ot!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fn=0,Gt=Object.getOwnPropertySymbols(ot);Fn<Gt.length;Fn++)kt.indexOf(Gt[Fn])<0&&Object.prototype.propertyIsEnumerable.call(ot,Gt[Fn])&&(ft[Gt[Fn]]=ot[Gt[Fn]]);return ft};const le=(ot,kt)=>{const ft=Xe.useContext(Te.Z),{getPrefixCls:Gt,direction:Fn,requiredMark:xr,colon:Or,scrollToFirstError:kr,className:dr,style:Zn}=(0,Qt.dj)("form"),{prefixCls:Mn,className:Ur,rootClassName:si,size:ei,disabled:Ai=ft,form:Ki,colon:Vi,labelAlign:eo,labelWrap:Di,labelCol:bi,wrapperCol:Fi,hideRequiredMark:ki,layout:uo="horizontal",scrollToFirstError:Zi,requiredMark:co,onFinishFailed:oo,name:Yi,style:Xi,feedbackIcons:Oo,variant:go}=ot,bo=de(ot,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),Po=(0,xe.Z)(ei),Ho=Xe.useContext(be.Z),$i=Xe.useMemo(()=>co!==void 0?co:ki?!1:xr!==void 0?xr:!0,[ki,co,xr]),Bo=Vi!=null?Vi:Or,Pi=Gt("form",Mn),Ko=(0,Me.Z)(Pi),[Ua,Oa,Jo]=wt(Pi,Ko),Vo=rt()(Pi,`${Pi}-${uo}`,{[`${Pi}-hide-required-mark`]:$i===!1,[`${Pi}-rtl`]:Fn==="rtl",[`${Pi}-${Po}`]:Po},Jo,Ko,Oa,dr,Ur,si),[qo]=Rt(Ki),{__INTERNAL__:ma}=qo;ma.name=Yi;const Ma=Xe.useMemo(()=>({name:Yi,labelAlign:eo,labelCol:bi,labelWrap:Di,wrapperCol:Fi,vertical:uo==="vertical",colon:Bo,requiredMark:$i,itemRef:ma.itemRef,form:qo,feedbackIcons:Oo}),[Yi,eo,bi,Fi,uo,Bo,$i,qo,Oo]),mo=Xe.useRef(null);Xe.useImperativeHandle(kt,()=>{var jr;return Object.assign(Object.assign({},qo),{nativeElement:(jr=mo.current)===null||jr===void 0?void 0:jr.nativeElement})});const Ti=(jr,Vr)=>{if(jr){let Sr={block:"nearest"};typeof jr=="object"&&(Sr=Object.assign(Object.assign({},Sr),jr)),qo.scrollToField(Vr,Sr)}},Pr=jr=>{if(oo==null||oo(jr),jr.errorFields.length){const Vr=jr.errorFields[0].name;if(Zi!==void 0){Ti(Zi,Vr);return}kr!==void 0&&Ti(kr,Vr)}};return Ua(Xe.createElement(oe.pg.Provider,{value:go},Xe.createElement(Te.n,{disabled:Ai},Xe.createElement(It.Z.Provider,{value:Po},Xe.createElement(oe.RV,{validateMessages:Ho},Xe.createElement(oe.q3.Provider,{value:Ma},Xe.createElement(At.default,Object.assign({id:Yi},bo,{name:Yi,onFinishFailed:Pr,form:qo,ref:mo,style:Object.assign(Object.assign({},Zn),Xi),className:Vo}))))))))};var Ie=Xe.forwardRef(le),he=pe(41799),We=pe(8654),tt=pe(22703),dn=pe(32383),ut=pe(11592);function zt(ot){if(typeof ot=="function")return ot;const kt=(0,ut.Z)(ot);return kt.length<=1?kt[0]:kt}const en=()=>{const{status:ot,errors:kt=[],warnings:ft=[]}=Xe.useContext(oe.aM);return{status:ot,errors:kt,warnings:ft}};en.Context=oe.aM;var Sn=en,yn=pe(16089);function ar(ot){const[kt,ft]=Xe.useState(ot),Gt=Xe.useRef(null),Fn=Xe.useRef([]),xr=Xe.useRef(!1);Xe.useEffect(()=>(xr.current=!1,()=>{xr.current=!0,yn.Z.cancel(Gt.current),Gt.current=null}),[]);function Or(kr){xr.current||(Gt.current===null&&(Fn.current=[],Gt.current=(0,yn.Z)(()=>{Gt.current=null,ft(dr=>{let Zn=dr;return Fn.current.forEach(Mn=>{Zn=Mn(Zn)}),Zn})})),Fn.current.push(kr))}return[kt,Or]}function Mt(){const{itemRef:ot}=Xe.useContext(oe.q3),kt=Xe.useRef({});function ft(Gt,Fn){const xr=Fn&&typeof Fn=="object"&&(0,We.C4)(Fn),Or=Gt.join("_");return(kt.current.name!==Or||kt.current.originRef!==xr)&&(kt.current.name=Or,kt.current.originRef=xr,kt.current.ref=(0,We.sQ)(ot(Gt),xr)),kt.current.ref}return ft}var nn=pe(29194),ln=pe(34280),Un=pe(2738),Nn=pe(65970),un=pe(70425),ir=pe(5472);const Xn=ot=>{const{formItemCls:kt}=ot;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${kt}-control`]:{display:"flex"}}}};var Ft=(0,He.bk)(["Form","item-item"],(ot,kt)=>{let{rootPrefixCls:ft}=kt;const Gt=Je(ot,ft);return[Xn(Gt)]}),An=function(ot,kt){var ft={};for(var Gt in ot)Object.prototype.hasOwnProperty.call(ot,Gt)&&kt.indexOf(Gt)<0&&(ft[Gt]=ot[Gt]);if(ot!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fn=0,Gt=Object.getOwnPropertySymbols(ot);Fn<Gt.length;Fn++)kt.indexOf(Gt[Fn])<0&&Object.prototype.propertyIsEnumerable.call(ot,Gt[Fn])&&(ft[Gt[Fn]]=ot[Gt[Fn]]);return ft};const Qn=24;var nt=ot=>{const{prefixCls:kt,status:ft,labelCol:Gt,wrapperCol:Fn,children:xr,errors:Or,warnings:kr,_internalItemRender:dr,extra:Zn,help:Mn,fieldId:Ur,marginBottom:si,onErrorVisibleChanged:ei,label:Ai}=ot,Ki=`${kt}-item`,Vi=Xe.useContext(oe.q3),eo=Xe.useMemo(()=>{let bo=Object.assign({},Fn||Vi.wrapperCol||{});return Ai===null&&!Gt&&!Fn&&Vi.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(Ho=>{const $i=Ho?[Ho]:[],Bo=(0,un.U2)(Vi.labelCol,$i),Pi=typeof Bo=="object"?Bo:{},Ko=(0,un.U2)(bo,$i),Ua=typeof Ko=="object"?Ko:{};"span"in Pi&&!("offset"in Ua)&&Pi.span<Qn&&(bo=(0,un.t8)(bo,[].concat($i,["offset"]),Pi.span))}),bo},[Fn,Vi]),Di=rt()(`${Ki}-control`,eo.className),bi=Xe.useMemo(()=>{const{labelCol:bo,wrapperCol:Po}=Vi;return An(Vi,["labelCol","wrapperCol"])},[Vi]),Fi=Xe.useRef(null),[ki,uo]=Xe.useState(0);(0,ln.Z)(()=>{Zn&&Fi.current?uo(Fi.current.clientHeight):uo(0)},[Zn]);const Zi=Xe.createElement("div",{className:`${Ki}-control-input`},Xe.createElement("div",{className:`${Ki}-control-input-content`},xr)),co=Xe.useMemo(()=>({prefixCls:kt,status:ft}),[kt,ft]),oo=si!==null||Or.length||kr.length?Xe.createElement(oe.Rk.Provider,{value:co},Xe.createElement($e,{fieldId:Ur,errors:Or,warnings:kr,help:Mn,helpStatus:ft,className:`${Ki}-explain-connected`,onVisibleChanged:ei})):null,Yi={};Ur&&(Yi.id=`${Ur}_extra`);const Xi=Zn?Xe.createElement("div",Object.assign({},Yi,{className:`${Ki}-extra`,ref:Fi}),Zn):null,Oo=oo||Xi?Xe.createElement("div",{className:`${Ki}-additional`,style:si?{minHeight:si+ki}:{}},oo,Xi):null,go=dr&&dr.mark==="pro_table_render"&&dr.render?dr.render(ot,{input:Zi,errorList:oo,extra:Xi}):Xe.createElement(Xe.Fragment,null,Zi,Oo);return Xe.createElement(oe.q3.Provider,{value:bi},Xe.createElement(ir.Z,Object.assign({},eo,{className:Di}),go),Xe.createElement(Ft,{prefixCls:kt}))},gt=pe(61485),Kt=pe(9017),vn=pe(85981),Rn=pe(25399),hr=function(ot,kt){var ft={};for(var Gt in ot)Object.prototype.hasOwnProperty.call(ot,Gt)&&kt.indexOf(Gt)<0&&(ft[Gt]=ot[Gt]);if(ot!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fn=0,Gt=Object.getOwnPropertySymbols(ot);Fn<Gt.length;Fn++)kt.indexOf(Gt[Fn])<0&&Object.prototype.propertyIsEnumerable.call(ot,Gt[Fn])&&(ft[Gt[Fn]]=ot[Gt[Fn]]);return ft};function $r(ot){return ot?typeof ot=="object"&&!Xe.isValidElement(ot)?ot:{title:ot}:null}var vr=ot=>{let{prefixCls:kt,label:ft,htmlFor:Gt,labelCol:Fn,labelAlign:xr,colon:Or,required:kr,requiredMark:dr,tooltip:Zn,vertical:Mn}=ot;var Ur;const[si]=(0,Kt.Z)("Form"),{labelAlign:ei,labelCol:Ai,labelWrap:Ki,colon:Vi}=Xe.useContext(oe.q3);if(!ft)return null;const eo=Fn||Ai||{},Di=xr||ei,bi=`${kt}-item-label`,Fi=rt()(bi,Di==="left"&&`${bi}-left`,eo.className,{[`${bi}-wrap`]:!!Ki});let ki=ft;const uo=Or===!0||Vi!==!1&&Or!==!1;uo&&!Mn&&typeof ft=="string"&&ft.trim()&&(ki=ft.replace(/[:|:]\s*$/,""));const co=$r(Zn);if(co){const{icon:bo=Xe.createElement(gt.Z,null)}=co,Po=hr(co,["icon"]),Ho=Xe.createElement(Rn.Z,Object.assign({},Po),Xe.cloneElement(bo,{className:`${kt}-item-tooltip`,title:"",onClick:$i=>{$i.preventDefault()},tabIndex:null}));ki=Xe.createElement(Xe.Fragment,null,ki,Ho)}const oo=dr==="optional",Yi=typeof dr=="function",Xi=dr===!1;Yi?ki=dr(ki,{required:!!kr}):oo&&!kr&&(ki=Xe.createElement(Xe.Fragment,null,ki,Xe.createElement("span",{className:`${kt}-item-optional`,title:""},(si==null?void 0:si.optional)||((Ur=vn.Z.Form)===null||Ur===void 0?void 0:Ur.optional))));let Oo;Xi?Oo="hidden":(oo||Yi)&&(Oo="optional");const go=rt()({[`${kt}-item-required`]:kr,[`${kt}-item-required-mark-${Oo}`]:Oo,[`${kt}-item-no-colon`]:!uo});return Xe.createElement(ir.Z,Object.assign({},eo,{className:Fi}),Xe.createElement("label",{htmlFor:Gt,className:go,title:typeof ft=="string"?ft:""},ki))},lr=pe(29679),Dr=pe(19248),rr=pe(96512),Tn=pe(58617);const _n={success:lr.Z,warning:rr.Z,error:Dr.Z,validating:Tn.Z};function Ln(ot){let{children:kt,errors:ft,warnings:Gt,hasFeedback:Fn,validateStatus:xr,prefixCls:Or,meta:kr,noStyle:dr}=ot;const Zn=`${Or}-item`,{feedbackIcons:Mn}=Xe.useContext(oe.q3),Ur=xn(ft,Gt,kr,null,!!Fn,xr),{isFormItemInput:si,status:ei,hasFeedback:Ai,feedbackIcon:Ki}=Xe.useContext(oe.aM),Vi=Xe.useMemo(()=>{var eo;let Di;if(Fn){const Fi=Fn!==!0&&Fn.icons||Mn,ki=Ur&&((eo=Fi==null?void 0:Fi({status:Ur,errors:ft,warnings:Gt}))===null||eo===void 0?void 0:eo[Ur]),uo=Ur&&_n[Ur];Di=ki!==!1&&uo?Xe.createElement("span",{className:rt()(`${Zn}-feedback-icon`,`${Zn}-feedback-icon-${Ur}`)},ki||Xe.createElement(uo,null)):null}const bi={status:Ur||"",errors:ft,warnings:Gt,hasFeedback:!!Fn,feedbackIcon:Di,isFormItemInput:!0};return dr&&(bi.status=(Ur!=null?Ur:ei)||"",bi.isFormItemInput=si,bi.hasFeedback=!!(Fn!=null?Fn:Ai),bi.feedbackIcon=Fn!==void 0?bi.feedbackIcon:Ki),bi},[Ur,Fn,dr,si,ei]);return Xe.createElement(oe.aM.Provider,{value:Vi},kt)}var mr=function(ot,kt){var ft={};for(var Gt in ot)Object.prototype.hasOwnProperty.call(ot,Gt)&&kt.indexOf(Gt)<0&&(ft[Gt]=ot[Gt]);if(ot!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fn=0,Gt=Object.getOwnPropertySymbols(ot);Fn<Gt.length;Fn++)kt.indexOf(Gt[Fn])<0&&Object.prototype.propertyIsEnumerable.call(ot,Gt[Fn])&&(ft[Gt[Fn]]=ot[Gt[Fn]]);return ft};function cr(ot){const{prefixCls:kt,className:ft,rootClassName:Gt,style:Fn,help:xr,errors:Or,warnings:kr,validateStatus:dr,meta:Zn,hasFeedback:Mn,hidden:Ur,children:si,fieldId:ei,required:Ai,isRequired:Ki,onSubItemMetaChange:Vi,layout:eo}=ot,Di=mr(ot,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),bi=`${kt}-item`,{requiredMark:Fi,vertical:ki}=Xe.useContext(oe.q3),uo=ki||eo==="vertical",Zi=Xe.useRef(null),co=Pe(Or),oo=Pe(kr),Yi=xr!=null,Xi=!!(Yi||Or.length||kr.length),Oo=!!Zi.current&&(0,nn.Z)(Zi.current),[go,bo]=Xe.useState(null);(0,ln.Z)(()=>{if(Xi&&Zi.current){const Pi=getComputedStyle(Zi.current);bo(parseInt(Pi.marginBottom,10))}},[Xi,Oo]);const Po=Pi=>{Pi||bo(null)},$i=function(){let Pi=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const Ko=Pi?co:Zn.errors,Ua=Pi?oo:Zn.warnings;return xn(Ko,Ua,Zn,"",!!Mn,dr)}(),Bo=rt()(bi,ft,Gt,{[`${bi}-with-help`]:Yi||co.length||oo.length,[`${bi}-has-feedback`]:$i&&Mn,[`${bi}-has-success`]:$i==="success",[`${bi}-has-warning`]:$i==="warning",[`${bi}-has-error`]:$i==="error",[`${bi}-is-validating`]:$i==="validating",[`${bi}-hidden`]:Ur,[`${bi}-${eo}`]:eo});return Xe.createElement("div",{className:Bo,style:Fn,ref:Zi},Xe.createElement(Nn.Z,Object.assign({className:`${bi}-row`},(0,Un.Z)(Di,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),Xe.createElement(vr,Object.assign({htmlFor:ei},ot,{requiredMark:Fi,required:Ai!=null?Ai:Ki,prefixCls:kt,vertical:uo})),Xe.createElement(nt,Object.assign({},ot,Zn,{errors:co,warnings:oo,prefixCls:kt,status:$i,help:xr,marginBottom:go,onErrorVisibleChanged:Po}),Xe.createElement(oe.qI.Provider,{value:Vi},Xe.createElement(Ln,{prefixCls:kt,meta:Zn,errors:Zn.errors,warnings:Zn.warnings,hasFeedback:Mn,validateStatus:$i},si)))),!!go&&Xe.createElement("div",{className:`${bi}-margin-offset`,style:{marginBottom:-go}}))}const pr="__SPLIT__",Rr=null;function Wr(ot,kt){const ft=Object.keys(ot),Gt=Object.keys(kt);return ft.length===Gt.length&&ft.every(Fn=>{const xr=ot[Fn],Or=kt[Fn];return xr===Or||typeof xr=="function"||typeof Or=="function"})}const Gr=Xe.memo(ot=>{let{children:kt}=ot;return kt},(ot,kt)=>Wr(ot.control,kt.control)&&ot.update===kt.update&&ot.childProps.length===kt.childProps.length&&ot.childProps.every((ft,Gt)=>ft===kt.childProps[Gt]));function ai(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function ti(ot){const{name:kt,noStyle:ft,className:Gt,dependencies:Fn,prefixCls:xr,shouldUpdate:Or,rules:kr,children:dr,required:Zn,label:Mn,messageVariables:Ur,trigger:si="onChange",validateTrigger:ei,hidden:Ai,help:Ki,layout:Vi}=ot,{getPrefixCls:eo}=Xe.useContext(Qt.E_),{name:Di}=Xe.useContext(oe.q3),bi=zt(dr),Fi=typeof bi=="function",ki=Xe.useContext(oe.qI),{validateTrigger:uo}=Xe.useContext(At.FieldContext),Zi=ei!==void 0?ei:uo,co=kt!=null,oo=eo("form",xr),Yi=(0,Me.Z)(oo),[Xi,Oo,go]=wt(oo,Yi),bo=(0,dn.ln)("Form.Item"),Po=Xe.useContext(At.ListContext),Ho=Xe.useRef(null),[$i,Bo]=ar({}),[Pi,Ko]=(0,he.Z)(()=>ai()),Ua=mo=>{const Ti=Po==null?void 0:Po.getKey(mo.name);if(Ko(mo.destroy?ai():mo,!0),ft&&Ki!==!1&&ki){let Pr=mo.name;if(mo.destroy)Pr=Ho.current||Pr;else if(Ti!==void 0){const[jr,Vr]=Ti;Pr=[jr].concat((0,qt.Z)(Vr)),Ho.current=Pr}ki(mo,Pr)}},Oa=(mo,Ti)=>{Bo(Pr=>{const jr=Object.assign({},Pr),Sr=[].concat((0,qt.Z)(mo.name.slice(0,-1)),(0,qt.Z)(Ti)).join(pr);return mo.destroy?delete jr[Sr]:jr[Sr]=mo,jr})},[Jo,Vo]=Xe.useMemo(()=>{const mo=(0,qt.Z)(Pi.errors),Ti=(0,qt.Z)(Pi.warnings);return Object.values($i).forEach(Pr=>{mo.push.apply(mo,(0,qt.Z)(Pr.errors||[])),Ti.push.apply(Ti,(0,qt.Z)(Pr.warnings||[]))}),[mo,Ti]},[$i,Pi.errors,Pi.warnings]),qo=Mt();function ma(mo,Ti,Pr){return ft&&!Ai?Xe.createElement(Ln,{prefixCls:oo,hasFeedback:ot.hasFeedback,validateStatus:ot.validateStatus,meta:Pi,errors:Jo,warnings:Vo,noStyle:!0},mo):Xe.createElement(cr,Object.assign({key:"row"},ot,{className:rt()(Gt,go,Yi,Oo),prefixCls:oo,fieldId:Ti,isRequired:Pr,errors:Jo,warnings:Vo,meta:Pi,onSubItemMetaChange:Oa,layout:Vi}),mo)}if(!co&&!Fi&&!Fn)return Xi(ma(bi));let Ma={};return typeof Mn=="string"?Ma.label=Mn:kt&&(Ma.label=String(kt)),Ur&&(Ma=Object.assign(Object.assign({},Ma),Ur)),Xi(Xe.createElement(At.Field,Object.assign({},ot,{messageVariables:Ma,trigger:si,validateTrigger:Zi,onMetaChange:Ua}),(mo,Ti,Pr)=>{const jr=_t(kt).length&&Ti?Ti.name:[],Vr=In(jr,Di),Sr=Zn!==void 0?Zn:!!(kr!=null&&kr.some(Fr=>{if(Fr&&typeof Fr=="object"&&Fr.required&&!Fr.warningOnly)return!0;if(typeof Fr=="function"){const zr=Fr(Pr);return(zr==null?void 0:zr.required)&&!(zr!=null&&zr.warningOnly)}return!1})),hi=Object.assign({},mo);let Ii=null;if(Array.isArray(bi)&&co)Ii=bi;else if(!(Fi&&(!(Or||Fn)||co))){if(!(Fn&&!Fi&&!co))if(Xe.isValidElement(bi)){const Fr=Object.assign(Object.assign({},bi.props),hi);if(Fr.id||(Fr.id=Vr),Ki||Jo.length>0||Vo.length>0||ot.extra){const vi=[];(Ki||Jo.length>0)&&vi.push(`${Vr}_help`),ot.extra&&vi.push(`${Vr}_extra`),Fr["aria-describedby"]=vi.join(" ")}Jo.length>0&&(Fr["aria-invalid"]="true"),Sr&&(Fr["aria-required"]="true"),(0,We.Yr)(bi)&&(Fr.ref=qo(jr,bi)),new Set([].concat((0,qt.Z)(_t(si)),(0,qt.Z)(_t(Zi)))).forEach(vi=>{Fr[vi]=function(){for(var to,Zo,Do,ra,ea,va=arguments.length,Aa=new Array(va),Ro=0;Ro<va;Ro++)Aa[Ro]=arguments[Ro];(Do=hi[vi])===null||Do===void 0||(to=Do).call.apply(to,[hi].concat(Aa)),(ea=(ra=bi.props)[vi])===null||ea===void 0||(Zo=ea).call.apply(Zo,[ra].concat(Aa))}});const fi=[Fr["aria-required"],Fr["aria-invalid"],Fr["aria-describedby"]];Ii=Xe.createElement(Gr,{control:hi,update:bi,childProps:fi},(0,tt.Tm)(bi,Fr))}else Fi&&(Or||Fn)&&!co?Ii=bi(Pr):Ii=bi}return ma(Ii,Vr,Sr)}))}const xi=ti;xi.useStatus=Sn;var mi=xi,Xt=function(ot,kt){var ft={};for(var Gt in ot)Object.prototype.hasOwnProperty.call(ot,Gt)&&kt.indexOf(Gt)<0&&(ft[Gt]=ot[Gt]);if(ot!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fn=0,Gt=Object.getOwnPropertySymbols(ot);Fn<Gt.length;Fn++)kt.indexOf(Gt[Fn])<0&&Object.prototype.propertyIsEnumerable.call(ot,Gt[Fn])&&(ft[Gt[Fn]]=ot[Gt[Fn]]);return ft},Lr=ot=>{var{prefixCls:kt,children:ft}=ot,Gt=Xt(ot,["prefixCls","children"]);const{getPrefixCls:Fn}=Xe.useContext(Qt.E_),xr=Fn("form",kt),Or=Xe.useMemo(()=>({prefixCls:xr,status:"error"}),[xr]);return Xe.createElement(At.List,Object.assign({},Gt),(kr,dr,Zn)=>Xe.createElement(oe.Rk.Provider,{value:Or},ft(kr.map(Mn=>Object.assign(Object.assign({},Mn),{fieldKey:Mn.key})),dr,{errors:Zn.errors,warnings:Zn.warnings})))};function wr(){const{form:ot}=Xe.useContext(oe.q3);return ot}const Lt=Ie;Lt.Item=mi,Lt.List=Lr,Lt.ErrorList=$e,Lt.useForm=Rt,Lt.useFormInstance=wr,Lt.useWatch=At.useWatch,Lt.Provider=oe.RV,Lt.create=()=>{};var Vt=Lt},4875:function(gr,zn,pe){"use strict";pe.d(zn,{Z:function(){return Jn}});var oe=pe(59301),qt=pe(84105),Xe=pe(87395),Ht=pe(92310),rt=pe.n(Ht),at=pe(60499),Dt=pe(18642),Me=pe(43749),Pe=pe(72190),ce=pe(42244),ke=pe(38705),Le=pe(17212);function Ve(){return typeof BigInt=="function"}function Ke(nt){return!nt&&nt!==0&&!Number.isNaN(nt)||!String(nt).trim()}function He(nt){var gt=nt.trim(),Kt=gt.startsWith("-");Kt&&(gt=gt.slice(1)),gt=gt.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),gt.startsWith(".")&&(gt="0".concat(gt));var vn=gt||"0",Rn=vn.split("."),hr=Rn[0]||"0",$r=Rn[1]||"0";hr==="0"&&$r==="0"&&(Kt=!1);var Xr=Kt?"-":"";return{negative:Kt,negativeStr:Xr,trimStr:vn,integerStr:hr,decimalStr:$r,fullStr:"".concat(Xr).concat(vn)}}function Ge(nt){var gt=String(nt);return!Number.isNaN(Number(gt))&>.includes("e")}function ze(nt){var gt=String(nt);if(Ge(nt)){var Kt=Number(gt.slice(gt.indexOf("e-")+2)),vn=gt.match(/\.(\d+)/);return vn!=null&&vn[1]&&(Kt+=vn[1].length),Kt}return gt.includes(".")&&pt(gt)?gt.length-gt.indexOf(".")-1:0}function qe(nt){var gt=String(nt);if(Ge(nt)){if(nt>Number.MAX_SAFE_INTEGER)return String(Ve()?BigInt(nt).toString():Number.MAX_SAFE_INTEGER);if(nt<Number.MIN_SAFE_INTEGER)return String(Ve()?BigInt(nt).toString():Number.MIN_SAFE_INTEGER);gt=nt.toFixed(ze(gt))}return He(gt).fullStr}function pt(nt){return typeof nt=="number"?!Number.isNaN(nt):nt?/^\s*-?\d+(\.\d+)?\s*$/.test(nt)||/^\s*-?\d+\.\s*$/.test(nt)||/^\s*-?\.\d+\s*$/.test(nt):!1}var Bt=function(){function nt(gt){if((0,ke.Z)(this,nt),(0,Dt.Z)(this,"origin",""),(0,Dt.Z)(this,"negative",void 0),(0,Dt.Z)(this,"integer",void 0),(0,Dt.Z)(this,"decimal",void 0),(0,Dt.Z)(this,"decimalLen",void 0),(0,Dt.Z)(this,"empty",void 0),(0,Dt.Z)(this,"nan",void 0),Ke(gt)){this.empty=!0;return}if(this.origin=String(gt),gt==="-"||Number.isNaN(gt)){this.nan=!0;return}var Kt=gt;if(Ge(Kt)&&(Kt=Number(Kt)),Kt=typeof Kt=="string"?Kt:qe(Kt),pt(Kt)){var vn=He(Kt);this.negative=vn.negative;var Rn=vn.trimStr.split(".");this.integer=BigInt(Rn[0]);var hr=Rn[1]||"0";this.decimal=BigInt(hr),this.decimalLen=hr.length}else this.nan=!0}return(0,Le.Z)(nt,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(Kt){var vn="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(Kt,"0"));return BigInt(vn)}},{key:"negate",value:function(){var Kt=new nt(this.toString());return Kt.negative=!Kt.negative,Kt}},{key:"cal",value:function(Kt,vn,Rn){var hr=Math.max(this.getDecimalStr().length,Kt.getDecimalStr().length),$r=this.alignDecimal(hr),Xr=Kt.alignDecimal(hr),vr=vn($r,Xr).toString(),lr=Rn(hr),Dr=He(vr),rr=Dr.negativeStr,Tn=Dr.trimStr,_n="".concat(rr).concat(Tn.padStart(lr+1,"0"));return new nt("".concat(_n.slice(0,-lr),".").concat(_n.slice(-lr)))}},{key:"add",value:function(Kt){if(this.isInvalidate())return new nt(Kt);var vn=new nt(Kt);return vn.isInvalidate()?this:this.cal(vn,function(Rn,hr){return Rn+hr},function(Rn){return Rn})}},{key:"multi",value:function(Kt){var vn=new nt(Kt);return this.isInvalidate()||vn.isInvalidate()?new nt(NaN):this.cal(vn,function(Rn,hr){return Rn*hr},function(Rn){return Rn*2})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(Kt){return this.toString()===(Kt==null?void 0:Kt.toString())}},{key:"lessEquals",value:function(Kt){return this.add(Kt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var Kt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return Kt?this.isInvalidate()?"":He("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),nt}(),vt=function(){function nt(gt){if((0,ke.Z)(this,nt),(0,Dt.Z)(this,"origin",""),(0,Dt.Z)(this,"number",void 0),(0,Dt.Z)(this,"empty",void 0),Ke(gt)){this.empty=!0;return}this.origin=String(gt),this.number=Number(gt)}return(0,Le.Z)(nt,[{key:"negate",value:function(){return new nt(-this.toNumber())}},{key:"add",value:function(Kt){if(this.isInvalidate())return new nt(Kt);var vn=Number(Kt);if(Number.isNaN(vn))return this;var Rn=this.number+vn;if(Rn>Number.MAX_SAFE_INTEGER)return new nt(Number.MAX_SAFE_INTEGER);if(Rn<Number.MIN_SAFE_INTEGER)return new nt(Number.MIN_SAFE_INTEGER);var hr=Math.max(ze(this.number),ze(vn));return new nt(Rn.toFixed(hr))}},{key:"multi",value:function(Kt){var vn=Number(Kt);if(this.isInvalidate()||Number.isNaN(vn))return new nt(NaN);var Rn=this.number*vn;if(Rn>Number.MAX_SAFE_INTEGER)return new nt(Number.MAX_SAFE_INTEGER);if(Rn<Number.MIN_SAFE_INTEGER)return new nt(Number.MIN_SAFE_INTEGER);var hr=Math.max(ze(this.number),ze(vn));return new nt(Rn.toFixed(hr))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(Kt){return this.toNumber()===(Kt==null?void 0:Kt.toNumber())}},{key:"lessEquals",value:function(Kt){return this.add(Kt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var Kt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return Kt?this.isInvalidate()?"":qe(this.number):this.origin}}]),nt}();function yt(nt){return Ve()?new Bt(nt):new vt(nt)}function Nt(nt,gt,Kt){var vn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(nt==="")return"";var Rn=He(nt),hr=Rn.negativeStr,$r=Rn.integerStr,Xr=Rn.decimalStr,vr="".concat(gt).concat(Xr),lr="".concat(hr).concat($r);if(Kt>=0){var Dr=Number(Xr[Kt]);if(Dr>=5&&!vn){var rr=yt(nt).add("".concat(hr,"0.").concat("0".repeat(Kt)).concat(10-Dr));return Nt(rr.toString(),gt,Kt,vn)}return Kt===0?lr:"".concat(lr).concat(gt).concat(Xr.padEnd(Kt,"0").slice(0,Kt))}return vr===".0"?lr:"".concat(lr).concat(vr)}var Et=yt,pn=pe(36901),Pt=pe(34280);function St(nt,gt){return typeof Proxy!="undefined"&&nt?new Proxy(nt,{get:function(vn,Rn){if(gt[Rn])return gt[Rn];var hr=vn[Rn];return typeof hr=="function"?hr.bind(vn):hr}}):nt}var jt=pe(8654),Je=pe(48736);function wt(nt,gt){var Kt=(0,oe.useRef)(null);function vn(){try{var hr=nt.selectionStart,$r=nt.selectionEnd,Xr=nt.value,vr=Xr.substring(0,hr),lr=Xr.substring($r);Kt.current={start:hr,end:$r,value:Xr,beforeTxt:vr,afterTxt:lr}}catch(Dr){}}function Rn(){if(nt&&Kt.current&>)try{var hr=nt.value,$r=Kt.current,Xr=$r.beforeTxt,vr=$r.afterTxt,lr=$r.start,Dr=hr.length;if(hr.startsWith(Xr))Dr=Xr.length;else if(hr.endsWith(vr))Dr=hr.length-Kt.current.afterTxt.length;else{var rr=Xr[lr-1],Tn=hr.indexOf(rr,lr-1);Tn!==-1&&(Dr=Tn+1)}nt.setSelectionRange(Dr,Dr)}catch(_n){(0,Je.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(_n.message))}}return[vn,Rn]}var lt=pe(49658),Fe=function(){var gt=(0,oe.useState)(!1),Kt=(0,Pe.Z)(gt,2),vn=Kt[0],Rn=Kt[1];return(0,Pt.Z)(function(){Rn((0,lt.Z)())},[]),vn},Zt=Fe,$e=pe(16089),At=200,Qt=600;function Te(nt){var gt=nt.prefixCls,Kt=nt.upNode,vn=nt.downNode,Rn=nt.upDisabled,hr=nt.downDisabled,$r=nt.onStep,Xr=oe.useRef(),vr=oe.useRef([]),lr=oe.useRef();lr.current=$r;var Dr=function(){clearTimeout(Xr.current)},rr=function(Wr,Gr){Wr.preventDefault(),Dr(),lr.current(Gr);function ai(){lr.current(Gr),Xr.current=setTimeout(ai,At)}Xr.current=setTimeout(ai,Qt)};oe.useEffect(function(){return function(){Dr(),vr.current.forEach(function(Rr){return $e.Z.cancel(Rr)})}},[]);var Tn=Zt();if(Tn)return null;var _n="".concat(gt,"-handler"),Ln=rt()(_n,"".concat(_n,"-up"),(0,Dt.Z)({},"".concat(_n,"-up-disabled"),Rn)),mr=rt()(_n,"".concat(_n,"-down"),(0,Dt.Z)({},"".concat(_n,"-down-disabled"),hr)),cr=function(){return vr.current.push((0,$e.Z)(Dr))},pr={unselectable:"on",role:"button",onMouseUp:cr,onMouseLeave:cr};return oe.createElement("div",{className:"".concat(_n,"-wrap")},oe.createElement("span",(0,at.Z)({},pr,{onMouseDown:function(Wr){rr(Wr,!0)},"aria-label":"Increase Value","aria-disabled":Rn,className:Ln}),Kt||oe.createElement("span",{unselectable:"on",className:"".concat(gt,"-handler-up-inner")})),oe.createElement("span",(0,at.Z)({},pr,{onMouseDown:function(Wr){rr(Wr,!1)},"aria-label":"Decrease Value","aria-disabled":hr,className:mr}),vn||oe.createElement("span",{unselectable:"on",className:"".concat(gt,"-handler-down-inner")})))}function xe(nt){var gt=typeof nt=="number"?qe(nt):He(nt).fullStr,Kt=gt.includes(".");return Kt?He(gt.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:nt+"0"}var It=pe(30292),Cn=function(){var nt=(0,oe.useRef)(0),gt=function(){$e.Z.cancel(nt.current)};return(0,oe.useEffect)(function(){return gt},[]),function(Kt){gt(),nt.current=(0,$e.Z)(function(){Kt()})}},mn=["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"],Ze=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],Ct=function(gt,Kt){return gt||Kt.isEmpty()?Kt.toString():Kt.toNumber()},_t=function(gt){var Kt=Et(gt);return Kt.isInvalidate()?null:Kt},In=oe.forwardRef(function(nt,gt){var Kt=nt.prefixCls,vn=nt.className,Rn=nt.style,hr=nt.min,$r=nt.max,Xr=nt.step,vr=Xr===void 0?1:Xr,lr=nt.defaultValue,Dr=nt.value,rr=nt.disabled,Tn=nt.readOnly,_n=nt.upHandler,Ln=nt.downHandler,mr=nt.keyboard,cr=nt.changeOnWheel,pr=cr===void 0?!1:cr,Rr=nt.controls,Wr=Rr===void 0?!0:Rr,Gr=nt.classNames,ai=nt.stringMode,ti=nt.parser,xi=nt.formatter,mi=nt.precision,Xt=nt.decimalSeparator,Kn=nt.onChange,Lr=nt.onInput,wr=nt.onPressEnter,Lt=nt.onStep,Vt=nt.changeOnBlur,ot=Vt===void 0?!0:Vt,kt=nt.domRef,ft=(0,ce.Z)(nt,mn),Gt="".concat(Kt,"-input"),Fn=oe.useRef(null),xr=oe.useState(!1),Or=(0,Pe.Z)(xr,2),kr=Or[0],dr=Or[1],Zn=oe.useRef(!1),Mn=oe.useRef(!1),Ur=oe.useRef(!1),si=oe.useState(function(){return Et(Dr!=null?Dr:lr)}),ei=(0,Pe.Z)(si,2),Ai=ei[0],Ki=ei[1];function Vi(Vr){Dr===void 0&&Ki(Vr)}var eo=oe.useCallback(function(Vr,Sr){if(!Sr)return mi>=0?mi:Math.max(ze(Vr),ze(vr))},[mi,vr]),Di=oe.useCallback(function(Vr){var Sr=String(Vr);if(ti)return ti(Sr);var hi=Sr;return Xt&&(hi=hi.replace(Xt,".")),hi.replace(/[^\w.-]+/g,"")},[ti,Xt]),bi=oe.useRef(""),Fi=oe.useCallback(function(Vr,Sr){if(xi)return xi(Vr,{userTyping:Sr,input:String(bi.current)});var hi=typeof Vr=="number"?qe(Vr):Vr;if(!Sr){var Ii=eo(hi,Sr);if(pt(hi)&&(Xt||Ii>=0)){var Fr=Xt||".";hi=Nt(hi,Fr,Ii)}}return hi},[xi,eo,Xt]),ki=oe.useState(function(){var Vr=lr!=null?lr:Dr;return Ai.isInvalidate()&&["string","number"].includes((0,Me.Z)(Vr))?Number.isNaN(Vr)?"":Vr:Fi(Ai.toString(),!1)}),uo=(0,Pe.Z)(ki,2),Zi=uo[0],co=uo[1];bi.current=Zi;function oo(Vr,Sr){co(Fi(Vr.isInvalidate()?Vr.toString(!1):Vr.toString(!Sr),Sr))}var Yi=oe.useMemo(function(){return _t($r)},[$r,mi]),Xi=oe.useMemo(function(){return _t(hr)},[hr,mi]),Oo=oe.useMemo(function(){return!Yi||!Ai||Ai.isInvalidate()?!1:Yi.lessEquals(Ai)},[Yi,Ai]),go=oe.useMemo(function(){return!Xi||!Ai||Ai.isInvalidate()?!1:Ai.lessEquals(Xi)},[Xi,Ai]),bo=wt(Fn.current,kr),Po=(0,Pe.Z)(bo,2),Ho=Po[0],$i=Po[1],Bo=function(Sr){return Yi&&!Sr.lessEquals(Yi)?Yi:Xi&&!Xi.lessEquals(Sr)?Xi:null},Pi=function(Sr){return!Bo(Sr)},Ko=function(Sr,hi){var Ii=Sr,Fr=Pi(Ii)||Ii.isEmpty();if(!Ii.isEmpty()&&!hi&&(Ii=Bo(Ii)||Ii,Fr=!0),!Tn&&!rr&&Fr){var zr=Ii.toString(),fi=eo(zr,hi);return fi>=0&&(Ii=Et(Nt(zr,".",fi)),Pi(Ii)||(Ii=Et(Nt(zr,".",fi,!0)))),Ii.equals(Ai)||(Vi(Ii),Kn==null||Kn(Ii.isEmpty()?null:Ct(ai,Ii)),Dr===void 0&&oo(Ii,hi)),Ii}return Ai},Ua=Cn(),Oa=function Vr(Sr){if(Ho(),bi.current=Sr,co(Sr),!Mn.current){var hi=Di(Sr),Ii=Et(hi);Ii.isNaN()||Ko(Ii,!0)}Lr==null||Lr(Sr),Ua(function(){var Fr=Sr;ti||(Fr=Sr.replace(/。/g,".")),Fr!==Sr&&Vr(Fr)})},Jo=function(){Mn.current=!0},Vo=function(){Mn.current=!1,Oa(Fn.current.value)},qo=function(Sr){Oa(Sr.target.value)},ma=function(Sr){var hi;if(!(Sr&&Oo||!Sr&&go)){Zn.current=!1;var Ii=Et(Ur.current?xe(vr):vr);Sr||(Ii=Ii.negate());var Fr=(Ai||Et(0)).add(Ii.toString()),zr=Ko(Fr,!1);Lt==null||Lt(Ct(ai,zr),{offset:Ur.current?xe(vr):vr,type:Sr?"up":"down"}),(hi=Fn.current)===null||hi===void 0||hi.focus()}},Ma=function(Sr){var hi=Et(Di(Zi)),Ii;hi.isNaN()?Ii=Ko(Ai,Sr):Ii=Ko(hi,Sr),Dr!==void 0?oo(Ai,!1):Ii.isNaN()||oo(Ii,!1)},mo=function(){Zn.current=!0},Ti=function(Sr){var hi=Sr.key,Ii=Sr.shiftKey;Zn.current=!0,Ur.current=Ii,hi==="Enter"&&(Mn.current||(Zn.current=!1),Ma(!1),wr==null||wr(Sr)),mr!==!1&&!Mn.current&&["Up","ArrowUp","Down","ArrowDown"].includes(hi)&&(ma(hi==="Up"||hi==="ArrowUp"),Sr.preventDefault())},Pr=function(){Zn.current=!1,Ur.current=!1};oe.useEffect(function(){if(pr&&kr){var Vr=function(Ii){ma(Ii.deltaY<0),Ii.preventDefault()},Sr=Fn.current;if(Sr)return Sr.addEventListener("wheel",Vr,{passive:!1}),function(){return Sr.removeEventListener("wheel",Vr)}}});var jr=function(){ot&&Ma(!1),dr(!1),Zn.current=!1};return(0,Pt.o)(function(){Ai.isInvalidate()||oo(Ai,!1)},[mi,xi]),(0,Pt.o)(function(){var Vr=Et(Dr);Ki(Vr);var Sr=Et(Di(Zi));(!Vr.equals(Sr)||!Zn.current||xi)&&oo(Vr,Zn.current)},[Dr]),(0,Pt.o)(function(){xi&&$i()},[Zi]),oe.createElement("div",{ref:kt,className:rt()(Kt,vn,(0,Dt.Z)((0,Dt.Z)((0,Dt.Z)((0,Dt.Z)((0,Dt.Z)({},"".concat(Kt,"-focused"),kr),"".concat(Kt,"-disabled"),rr),"".concat(Kt,"-readonly"),Tn),"".concat(Kt,"-not-a-number"),Ai.isNaN()),"".concat(Kt,"-out-of-range"),!Ai.isInvalidate()&&!Pi(Ai))),style:Rn,onFocus:function(){dr(!0)},onBlur:jr,onKeyDown:Ti,onKeyUp:Pr,onCompositionStart:Jo,onCompositionEnd:Vo,onBeforeInput:mo},Wr&&oe.createElement(Te,{prefixCls:Kt,upNode:_n,downNode:Ln,upDisabled:Oo,downDisabled:go,onStep:ma}),oe.createElement("div",{className:"".concat(Gt,"-wrap")},oe.createElement("input",(0,at.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":hr,"aria-valuemax":$r,"aria-valuenow":Ai.isInvalidate()?null:Ai.toString(),step:vr},ft,{ref:(0,jt.sQ)(Fn,gt),className:Gt,value:Zi,onChange:qo,disabled:rr,readOnly:Tn}))))}),xn=oe.forwardRef(function(nt,gt){var Kt=nt.disabled,vn=nt.style,Rn=nt.prefixCls,hr=Rn===void 0?"rc-input-number":Rn,$r=nt.value,Xr=nt.prefix,vr=nt.suffix,lr=nt.addonBefore,Dr=nt.addonAfter,rr=nt.className,Tn=nt.classNames,_n=(0,ce.Z)(nt,Ze),Ln=oe.useRef(null),mr=oe.useRef(null),cr=oe.useRef(null),pr=function(Wr){cr.current&&(0,It.nH)(cr.current,Wr)};return oe.useImperativeHandle(gt,function(){return St(cr.current,{focus:pr,nativeElement:Ln.current.nativeElement||mr.current})}),oe.createElement(pn.BaseInput,{className:rr,triggerFocus:pr,prefixCls:hr,value:$r,disabled:Kt,style:vn,prefix:Xr,suffix:vr,addonAfter:Dr,addonBefore:lr,classNames:Tn,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:Ln},oe.createElement(In,(0,at.Z)({prefixCls:hr,disabled:Kt,ref:cr,domRef:mr,className:Tn==null?void 0:Tn.input},_n)))}),Wn=xn,ct=Wn,En=pe(62487),Rt=pe(82855),be=pe(48755),de=pe(60840),le=pe(2171),ye=pe(83397),Ie=pe(31756),he=pe(56553),We=pe(24971),tt=pe(70045),dn=pe(36237),ut=pe(53075),zt=pe(64910),en=pe(39082),Sn=pe(63356),yn=pe(56119),ar=pe(16931),Mt=pe(51636),nn=pe(17835);const ln=nt=>{var gt;const Kt=(gt=nt.handleVisible)!==null&>!==void 0?gt:"auto",vn=nt.controlHeightSM-nt.lineWidth*2;return Object.assign(Object.assign({},(0,zt.T)(nt)),{controlWidth:90,handleWidth:vn,handleFontSize:nt.fontSize/2,handleVisible:Kt,handleActiveBg:nt.colorFillAlter,handleBg:nt.colorBgContainer,filledHandleBg:new nn.FastColor(nt.colorFillSecondary).onBackground(nt.colorBgContainer).toHexString(),handleHoverColor:nt.colorPrimary,handleBorderColor:nt.colorBorder,handleOpacity:Kt===!0?1:0,handleVisibleWidth:Kt===!0?vn:0})},Un=(nt,gt)=>{let{componentCls:Kt,borderRadiusSM:vn,borderRadiusLG:Rn}=nt;const hr=gt==="lg"?Rn:vn;return{[`&-${gt}`]:{[`${Kt}-handler-wrap`]:{borderStartEndRadius:hr,borderEndEndRadius:hr},[`${Kt}-handler-up`]:{borderStartEndRadius:hr},[`${Kt}-handler-down`]:{borderEndEndRadius:hr}}}},Nn=nt=>{const{componentCls:gt,lineWidth:Kt,lineType:vn,borderRadius:Rn,inputFontSizeSM:hr,inputFontSizeLG:$r,controlHeightLG:Xr,controlHeightSM:vr,colorError:lr,paddingInlineSM:Dr,paddingBlockSM:rr,paddingBlockLG:Tn,paddingInlineLG:_n,colorTextDescription:Ln,motionDurationMid:mr,handleHoverColor:cr,handleOpacity:pr,paddingInline:Rr,paddingBlock:Wr,handleBg:Gr,handleActiveBg:ai,colorTextDisabled:ti,borderRadiusSM:xi,borderRadiusLG:mi,controlWidth:Xt,handleBorderColor:Kn,filledHandleBg:Lr,lineHeightLG:wr,calc:Lt}=nt;return[{[gt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Sn.Wf)(nt)),(0,ut.ik)(nt)),{display:"inline-block",width:Xt,margin:0,padding:0,borderRadius:Rn}),(0,en.qG)(nt,{[`${gt}-handler-wrap`]:{background:Gr,[`${gt}-handler-down`]:{borderBlockStart:`${(0,dn.unit)(Kt)} ${vn} ${Kn}`}}})),(0,en.H8)(nt,{[`${gt}-handler-wrap`]:{background:Lr,[`${gt}-handler-down`]:{borderBlockStart:`${(0,dn.unit)(Kt)} ${vn} ${Kn}`}},"&:focus-within":{[`${gt}-handler-wrap`]:{background:Gr}}})),(0,en.vc)(nt,{[`${gt}-handler-wrap`]:{background:Gr,[`${gt}-handler-down`]:{borderBlockStart:`${(0,dn.unit)(Kt)} ${vn} ${Kn}`}}})),(0,en.Mu)(nt)),{"&-rtl":{direction:"rtl",[`${gt}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:$r,lineHeight:wr,borderRadius:mi,[`input${gt}-input`]:{height:Lt(Xr).sub(Lt(Kt).mul(2)).equal(),padding:`${(0,dn.unit)(Tn)} ${(0,dn.unit)(_n)}`}},"&-sm":{padding:0,fontSize:hr,borderRadius:xi,[`input${gt}-input`]:{height:Lt(vr).sub(Lt(Kt).mul(2)).equal(),padding:`${(0,dn.unit)(rr)} ${(0,dn.unit)(Dr)}`}},"&-out-of-range":{[`${gt}-input-wrap`]:{input:{color:lr}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,Sn.Wf)(nt)),(0,ut.s7)(nt)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${gt}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${gt}-group-addon`]:{borderRadius:mi,fontSize:nt.fontSizeLG}},"&-sm":{[`${gt}-group-addon`]:{borderRadius:xi}}},(0,en.ir)(nt)),(0,en.S5)(nt)),{[`&:not(${gt}-compact-first-item):not(${gt}-compact-last-item)${gt}-compact-item`]:{[`${gt}, ${gt}-group-addon`]:{borderRadius:0}},[`&:not(${gt}-compact-last-item)${gt}-compact-first-item`]:{[`${gt}, ${gt}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${gt}-compact-first-item)${gt}-compact-last-item`]:{[`${gt}, ${gt}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${gt}-input`]:{cursor:"not-allowed"},[gt]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,Sn.Wf)(nt)),{width:"100%",padding:`${(0,dn.unit)(Wr)} ${(0,dn.unit)(Rr)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:Rn,outline:0,transition:`all ${mr} linear`,appearance:"textfield",fontSize:"inherit"}),(0,ut.nz)(nt.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${gt}-handler-wrap, &-focused ${gt}-handler-wrap`]:{width:nt.handleWidth,opacity:1}})},{[gt]:Object.assign(Object.assign(Object.assign({[`${gt}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:nt.handleVisibleWidth,opacity:pr,height:"100%",borderStartStartRadius:0,borderStartEndRadius:Rn,borderEndEndRadius:Rn,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${mr}`,overflow:"hidden",[`${gt}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
|
|
|
${gt}-handler-up-inner,
|
|
|
${gt}-handler-down-inner
|
|
|
`]:{marginInlineEnd:0,fontSize:nt.handleFontSize}}},[`${gt}-handler`]:{height:"50%",overflow:"hidden",color:Ln,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,dn.unit)(Kt)} ${vn} ${Kn}`,transition:`all ${mr} linear`,"&:active":{background:ai},"&:hover":{height:"60%",[`
|
|
|
${gt}-handler-up-inner,
|
|
|
${gt}-handler-down-inner
|
|
|
`]:{color:cr}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,Sn.Ro)()),{color:Ln,transition:`all ${mr} linear`,userSelect:"none"})},[`${gt}-handler-up`]:{borderStartEndRadius:Rn},[`${gt}-handler-down`]:{borderEndEndRadius:Rn}},Un(nt,"lg")),Un(nt,"sm")),{"&-disabled, &-readonly":{[`${gt}-handler-wrap`]:{display:"none"},[`${gt}-input`]:{color:"inherit"}},[`
|
|
|
${gt}-handler-up-disabled,
|
|
|
${gt}-handler-down-disabled
|
|
|
`]:{cursor:"not-allowed"},[`
|
|
|
${gt}-handler-up-disabled:hover &-handler-up-inner,
|
|
|
${gt}-handler-down-disabled:hover &-handler-down-inner
|
|
|
`]:{color:ti}})}]},un=nt=>{const{componentCls:gt,paddingBlock:Kt,paddingInline:vn,inputAffixPadding:Rn,controlWidth:hr,borderRadiusLG:$r,borderRadiusSM:Xr,paddingInlineLG:vr,paddingInlineSM:lr,paddingBlockLG:Dr,paddingBlockSM:rr,motionDurationMid:Tn}=nt;return{[`${gt}-affix-wrapper`]:Object.assign(Object.assign({[`input${gt}-input`]:{padding:`${(0,dn.unit)(Kt)} 0`}},(0,ut.ik)(nt)),{position:"relative",display:"inline-flex",alignItems:"center",width:hr,padding:0,paddingInlineStart:vn,"&-lg":{borderRadius:$r,paddingInlineStart:vr,[`input${gt}-input`]:{padding:`${(0,dn.unit)(Dr)} 0`}},"&-sm":{borderRadius:Xr,paddingInlineStart:lr,[`input${gt}-input`]:{padding:`${(0,dn.unit)(rr)} 0`}},[`&:not(${gt}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${gt}-disabled`]:{background:"transparent"},[`> div${gt}`]:{width:"100%",border:"none",outline:"none",[`&${gt}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${gt}-handler-wrap`]:{zIndex:2},[gt]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:Rn},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:vn,marginInlineStart:Rn,transition:`margin ${Tn}`}},[`&:hover ${gt}-handler-wrap, &-focused ${gt}-handler-wrap`]:{width:nt.handleWidth,opacity:1},[`&:not(${gt}-affix-wrapper-without-controls):hover ${gt}-suffix`]:{marginInlineEnd:nt.calc(nt.handleWidth).add(vn).equal()}})}};var ir=(0,ar.I$)("InputNumber",nt=>{const gt=(0,Mt.mergeToken)(nt,(0,zt.e)(nt));return[Nn(gt),un(gt),(0,yn.c)(gt)]},ln,{unitless:{handleOpacity:!0}}),Xn=function(nt,gt){var Kt={};for(var vn in nt)Object.prototype.hasOwnProperty.call(nt,vn)&>.indexOf(vn)<0&&(Kt[vn]=nt[vn]);if(nt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Rn=0,vn=Object.getOwnPropertySymbols(nt);Rn<vn.length;Rn++)gt.indexOf(vn[Rn])<0&&Object.prototype.propertyIsEnumerable.call(nt,vn[Rn])&&(Kt[vn[Rn]]=nt[vn[Rn]]);return Kt};const Ft=oe.forwardRef((nt,gt)=>{const{getPrefixCls:Kt,direction:vn}=oe.useContext(be.E_),Rn=oe.useRef(null);oe.useImperativeHandle(gt,()=>Rn.current);const{className:hr,rootClassName:$r,size:Xr,disabled:vr,prefixCls:lr,addonBefore:Dr,addonAfter:rr,prefix:Tn,suffix:_n,bordered:Ln,readOnly:mr,status:cr,controls:pr,variant:Rr}=nt,Wr=Xn(nt,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),Gr=Kt("input-number",lr),ai=(0,ye.Z)(Gr),[ti,xi,mi]=ir(Gr,ai),{compactSize:Xt,compactItemClassnames:Kn}=(0,tt.ri)(Gr,vn);let Lr=oe.createElement(Xe.Z,{className:`${Gr}-handler-up-inner`}),wr=oe.createElement(qt.Z,{className:`${Gr}-handler-down-inner`});const Lt=typeof pr=="boolean"?pr:void 0;typeof pr=="object"&&(Lr=typeof pr.upIcon=="undefined"?Lr:oe.createElement("span",{className:`${Gr}-handler-up-inner`},pr.upIcon),wr=typeof pr.downIcon=="undefined"?wr:oe.createElement("span",{className:`${Gr}-handler-down-inner`},pr.downIcon));const{hasFeedback:Vt,status:ot,isFormItemInput:kt,feedbackIcon:ft}=oe.useContext(he.aM),Gt=(0,Rt.F)(ot,cr),Fn=(0,Ie.Z)(ei=>{var Ai;return(Ai=Xr!=null?Xr:Xt)!==null&&Ai!==void 0?Ai:ei}),xr=oe.useContext(le.Z),Or=vr!=null?vr:xr,[kr,dr]=(0,We.Z)("inputNumber",Rr,Ln),Zn=Vt&&oe.createElement(oe.Fragment,null,ft),Mn=rt()({[`${Gr}-lg`]:Fn==="large",[`${Gr}-sm`]:Fn==="small",[`${Gr}-rtl`]:vn==="rtl",[`${Gr}-in-form-item`]:kt},xi),Ur=`${Gr}-group`,si=oe.createElement(ct,Object.assign({ref:Rn,disabled:Or,className:rt()(mi,ai,hr,$r,Kn),upHandler:Lr,downHandler:wr,prefixCls:Gr,readOnly:mr,controls:Lt,prefix:Tn,suffix:Zn||_n,addonBefore:Dr&&oe.createElement(En.Z,{form:!0,space:!0},Dr),addonAfter:rr&&oe.createElement(En.Z,{form:!0,space:!0},rr),classNames:{input:Mn,variant:rt()({[`${Gr}-${kr}`]:dr},(0,Rt.Z)(Gr,Gt,Vt)),affixWrapper:rt()({[`${Gr}-affix-wrapper-sm`]:Fn==="small",[`${Gr}-affix-wrapper-lg`]:Fn==="large",[`${Gr}-affix-wrapper-rtl`]:vn==="rtl",[`${Gr}-affix-wrapper-without-controls`]:pr===!1||Or},xi),wrapper:rt()({[`${Ur}-rtl`]:vn==="rtl"},xi),groupWrapper:rt()({[`${Gr}-group-wrapper-sm`]:Fn==="small",[`${Gr}-group-wrapper-lg`]:Fn==="large",[`${Gr}-group-wrapper-rtl`]:vn==="rtl",[`${Gr}-group-wrapper-${kr}`]:dr},(0,Rt.Z)(`${Gr}-group-wrapper`,Gt,Vt),xi)}},Wr));return ti(si)}),An=Ft,Qn=nt=>oe.createElement(de.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},oe.createElement(Ft,Object.assign({},nt)));An._InternalPanelDoNotUseOrYouWillBeFired=Qn;var Jn=An},49397:function(gr,zn,pe){"use strict";pe.d(zn,{Z:function(){return vt}});var oe=pe(59301),qt=pe(92310),Xe=pe.n(qt),Ht=pe(36901),rt=pe(8654),at=pe(62487),Dt=pe(86013),Me=pe(82855),Pe=pe(48755),ce=pe(2171),ke=pe(83397),Le=pe(31756),Ve=pe(56553),Ke=pe(24971),He=pe(70045),Ge=pe(23826),ze=pe(53075);function qe(yt){return!!(yt.prefix||yt.suffix||yt.allowClear||yt.showCount)}var pt=function(yt,Nt){var Et={};for(var pn in yt)Object.prototype.hasOwnProperty.call(yt,pn)&&Nt.indexOf(pn)<0&&(Et[pn]=yt[pn]);if(yt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pt=0,pn=Object.getOwnPropertySymbols(yt);Pt<pn.length;Pt++)Nt.indexOf(pn[Pt])<0&&Object.prototype.propertyIsEnumerable.call(yt,pn[Pt])&&(Et[pn[Pt]]=yt[pn[Pt]]);return Et},vt=(0,oe.forwardRef)((yt,Nt)=>{const{prefixCls:Et,bordered:pn=!0,status:Pt,size:St,disabled:jt,onBlur:Je,onFocus:wt,suffix:lt,allowClear:Fe,addonAfter:Zt,addonBefore:$e,className:At,style:Qt,styles:Te,rootClassName:xe,onChange:It,classNames:Cn,variant:mn}=yt,Ze=pt(yt,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:Ct,direction:_t,allowClear:In,autoComplete:xn,className:Wn,style:ct,classNames:En,styles:Rt}=(0,Pe.dj)("input"),be=Ct("input",Et),de=(0,oe.useRef)(null),le=(0,ke.Z)(be),[ye,Ie,he]=(0,ze.TI)(be,xe),[We]=(0,ze.ZP)(be,le),{compactSize:tt,compactItemClassnames:dn}=(0,He.ri)(be,_t),ut=(0,Le.Z)(Jn=>{var nt;return(nt=St!=null?St:tt)!==null&&nt!==void 0?nt:Jn}),zt=oe.useContext(ce.Z),en=jt!=null?jt:zt,{status:Sn,hasFeedback:yn,feedbackIcon:ar}=(0,oe.useContext)(Ve.aM),Mt=(0,Me.F)(Sn,Pt),nn=qe(yt)||!!yn,ln=(0,oe.useRef)(nn),Un=(0,Ge.Z)(de,!0),Nn=Jn=>{Un(),Je==null||Je(Jn)},un=Jn=>{Un(),wt==null||wt(Jn)},ir=Jn=>{Un(),It==null||It(Jn)},Xn=(yn||lt)&&oe.createElement(oe.Fragment,null,lt,yn&&ar),Ft=(0,Dt.Z)(Fe!=null?Fe:In),[An,Qn]=(0,Ke.Z)("input",mn,pn);return ye(We(oe.createElement(Ht.default,Object.assign({ref:(0,rt.sQ)(Nt,de),prefixCls:be,autoComplete:xn},Ze,{disabled:en,onBlur:Nn,onFocus:un,style:Object.assign(Object.assign({},ct),Qt),styles:Object.assign(Object.assign({},Rt),Te),suffix:Xn,allowClear:Ft,className:Xe()(At,xe,he,le,dn,Wn),onChange:ir,addonBefore:$e&&oe.createElement(at.Z,{form:!0,space:!0},$e),addonAfter:Zt&&oe.createElement(at.Z,{form:!0,space:!0},Zt),classNames:Object.assign(Object.assign(Object.assign({},Cn),En),{input:Xe()({[`${be}-sm`]:ut==="small",[`${be}-lg`]:ut==="large",[`${be}-rtl`]:_t==="rtl"},Cn==null?void 0:Cn.input,En.input,Ie),variant:Xe()({[`${be}-${An}`]:Qn},(0,Me.Z)(be,Mt)),affixWrapper:Xe()({[`${be}-affix-wrapper-sm`]:ut==="small",[`${be}-affix-wrapper-lg`]:ut==="large",[`${be}-affix-wrapper-rtl`]:_t==="rtl"},Ie),wrapper:Xe()({[`${be}-group-rtl`]:_t==="rtl"},Ie),groupWrapper:Xe()({[`${be}-group-wrapper-sm`]:ut==="small",[`${be}-group-wrapper-lg`]:ut==="large",[`${be}-group-wrapper-rtl`]:_t==="rtl",[`${be}-group-wrapper-${An}`]:Qn},(0,Me.Z)(`${be}-group-wrapper`,Mt,yn),Ie)})}))))})},79809:function(gr,zn,pe){"use strict";pe.d(zn,{Z:function(){return Nt}});var oe=pe(59301),qt=pe(92310),Xe=pe.n(qt),Ht=pe(22711),rt=pe(86013),at=pe(82855),Dt=pe(48755),Me=pe(2171),Pe=pe(83397),ce=pe(31756),ke=pe(56553),Le=pe(24971),Ve=pe(70045),Ke=pe(30292),He=pe(53075),Ge=pe(16931),ze=pe(51636),qe=pe(64910);const pt=Et=>{const{componentCls:pn,paddingLG:Pt}=Et,St=`${pn}-textarea`;return{[`textarea${pn}`]:{maxWidth:"100%",height:"auto",minHeight:Et.controlHeight,lineHeight:Et.lineHeight,verticalAlign:"bottom",transition:`all ${Et.motionDurationSlow}`,resize:"vertical",[`&${pn}-mouse-active`]:{transition:`all ${Et.motionDurationSlow}, height 0s, width 0s`}},[`${pn}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[St]:{position:"relative","&-show-count":{[`> ${pn}`]:{height:"100%"},[`${pn}-data-count`]:{position:"absolute",bottom:Et.calc(Et.fontSize).mul(Et.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:Et.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
|
|
|
&-allow-clear > ${pn},
|
|
|
&-affix-wrapper${St}-has-feedback ${pn}
|
|
|
`]:{paddingInlineEnd:Pt},[`&-affix-wrapper${pn}-affix-wrapper`]:{padding:0,[`> textarea${pn}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:Et.calc(Et.controlHeight).sub(Et.calc(Et.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${pn}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${pn}-clear-icon`]:{position:"absolute",insetInlineEnd:Et.paddingInline,insetBlockStart:Et.paddingXS},[`${St}-suffix`]:{position:"absolute",top:0,insetInlineEnd:Et.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${pn}-affix-wrapper-sm`]:{[`${pn}-suffix`]:{[`${pn}-clear-icon`]:{insetInlineEnd:Et.paddingInlineSM}}}}}};var Bt=(0,Ge.I$)(["Input","TextArea"],Et=>{const pn=(0,ze.mergeToken)(Et,(0,qe.e)(Et));return[pt(pn)]},qe.T,{resetFont:!1}),vt=function(Et,pn){var Pt={};for(var St in Et)Object.prototype.hasOwnProperty.call(Et,St)&&pn.indexOf(St)<0&&(Pt[St]=Et[St]);if(Et!=null&&typeof Object.getOwnPropertySymbols=="function")for(var jt=0,St=Object.getOwnPropertySymbols(Et);jt<St.length;jt++)pn.indexOf(St[jt])<0&&Object.prototype.propertyIsEnumerable.call(Et,St[jt])&&(Pt[St[jt]]=Et[St[jt]]);return Pt},Nt=(0,oe.forwardRef)((Et,pn)=>{var Pt;const{prefixCls:St,bordered:jt=!0,size:Je,disabled:wt,status:lt,allowClear:Fe,classNames:Zt,rootClassName:$e,className:At,style:Qt,styles:Te,variant:xe,showCount:It,onMouseDown:Cn,onResize:mn}=Et,Ze=vt(Et,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:Ct,direction:_t,allowClear:In,autoComplete:xn,className:Wn,style:ct,classNames:En,styles:Rt}=(0,Dt.dj)("textArea"),be=oe.useContext(Me.Z),de=wt!=null?wt:be,{status:le,hasFeedback:ye,feedbackIcon:Ie}=oe.useContext(ke.aM),he=(0,at.F)(le,lt),We=oe.useRef(null);oe.useImperativeHandle(pn,()=>{var Qn;return{resizableTextArea:(Qn=We.current)===null||Qn===void 0?void 0:Qn.resizableTextArea,focus:Jn=>{var nt,gt;(0,Ke.nH)((gt=(nt=We.current)===null||nt===void 0?void 0:nt.resizableTextArea)===null||gt===void 0?void 0:gt.textArea,Jn)},blur:()=>{var Jn;return(Jn=We.current)===null||Jn===void 0?void 0:Jn.blur()}}});const tt=Ct("input",St),dn=(0,Pe.Z)(tt),[ut,zt,en]=(0,He.TI)(tt,$e),[Sn]=Bt(tt,dn),{compactSize:yn,compactItemClassnames:ar}=(0,Ve.ri)(tt,_t),Mt=(0,ce.Z)(Qn=>{var Jn;return(Jn=Je!=null?Je:yn)!==null&&Jn!==void 0?Jn:Qn}),[nn,ln]=(0,Le.Z)("textArea",xe,jt),Un=(0,rt.Z)(Fe!=null?Fe:In),[Nn,un]=oe.useState(!1),[ir,Xn]=oe.useState(!1),Ft=Qn=>{un(!0),Cn==null||Cn(Qn);const Jn=()=>{un(!1),document.removeEventListener("mouseup",Jn)};document.addEventListener("mouseup",Jn)},An=Qn=>{var Jn,nt;if(mn==null||mn(Qn),Nn&&typeof getComputedStyle=="function"){const gt=(nt=(Jn=We.current)===null||Jn===void 0?void 0:Jn.nativeElement)===null||nt===void 0?void 0:nt.querySelector("textarea");gt&&getComputedStyle(gt).resize==="both"&&Xn(!0)}};return ut(Sn(oe.createElement(Ht.default,Object.assign({autoComplete:xn},Ze,{style:Object.assign(Object.assign({},ct),Qt),styles:Object.assign(Object.assign({},Rt),Te),disabled:de,allowClear:Un,className:Xe()(en,dn,At,$e,ar,Wn,ir&&`${tt}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},Zt),En),{textarea:Xe()({[`${tt}-sm`]:Mt==="small",[`${tt}-lg`]:Mt==="large"},zt,Zt==null?void 0:Zt.textarea,En.textarea,Nn&&`${tt}-mouse-active`),variant:Xe()({[`${tt}-${nn}`]:ln},(0,at.Z)(tt,he)),affixWrapper:Xe()(`${tt}-textarea-affix-wrapper`,{[`${tt}-affix-wrapper-rtl`]:_t==="rtl",[`${tt}-affix-wrapper-sm`]:Mt==="small",[`${tt}-affix-wrapper-lg`]:Mt==="large",[`${tt}-textarea-show-count`]:It||((Pt=Et.count)===null||Pt===void 0?void 0:Pt.show)},zt)}),prefixCls:tt,suffix:ye&&oe.createElement("span",{className:`${tt}-textarea-suffix`},Ie),showCount:It,ref:We,onResize:An,onMouseDown:Ft}))))})},23826:function(gr,zn,pe){"use strict";pe.d(zn,{Z:function(){return qt}});var oe=pe(59301);function qt(Xe,Ht){const rt=(0,oe.useRef)([]),at=()=>{rt.current.push(setTimeout(()=>{var Dt,Me,Pe,ce;!((Dt=Xe.current)===null||Dt===void 0)&&Dt.input&&((Me=Xe.current)===null||Me===void 0?void 0:Me.input.getAttribute("type"))==="password"&&(!((Pe=Xe.current)===null||Pe===void 0)&&Pe.input.hasAttribute("value"))&&((ce=Xe.current)===null||ce===void 0||ce.input.removeAttribute("value"))}))};return(0,oe.useEffect)(()=>(Ht&&at(),()=>rt.current.forEach(Dt=>{Dt&&clearTimeout(Dt)})),[]),at}},37568:function(gr,zn,pe){"use strict";pe.d(zn,{default:function(){return En}});var oe=pe(59301),qt=pe(92310),Xe=pe.n(qt),Ht=pe(48755),rt=pe(56553),at=pe(53075),Me=Rt=>{const{getPrefixCls:be,direction:de}=(0,oe.useContext)(Ht.E_),{prefixCls:le,className:ye}=Rt,Ie=be("input-group",le),he=be("input"),[We,tt,dn]=(0,at.ZP)(he),ut=Xe()(Ie,dn,{[`${Ie}-lg`]:Rt.size==="large",[`${Ie}-sm`]:Rt.size==="small",[`${Ie}-compact`]:Rt.compact,[`${Ie}-rtl`]:de==="rtl"},tt,ye),zt=(0,oe.useContext)(rt.aM),en=(0,oe.useMemo)(()=>Object.assign(Object.assign({},zt),{isFormItemInput:!1}),[zt]);return We(oe.createElement("span",{className:ut,style:Rt.style,onMouseEnter:Rt.onMouseEnter,onMouseLeave:Rt.onMouseLeave,onFocus:Rt.onFocus,onBlur:Rt.onBlur},oe.createElement(rt.aM.Provider,{value:en},Rt.children)))},Pe=pe(49397),ce=pe(77654),ke=pe(6089),Le=pe(26112),Ve=pe(82855),Ke=pe(31756),He=pe(16931),Ge=pe(51636),ze=pe(64910);const qe=Rt=>{const{componentCls:be,paddingXS:de}=Rt;return{[be]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:de,"&-rtl":{direction:"rtl"},[`${be}-input`]:{textAlign:"center",paddingInline:Rt.paddingXXS},[`&${be}-sm ${be}-input`]:{paddingInline:Rt.calc(Rt.paddingXXS).div(2).equal()},[`&${be}-lg ${be}-input`]:{paddingInline:Rt.paddingXS}}}};var pt=(0,He.I$)(["Input","OTP"],Rt=>{const be=(0,Ge.mergeToken)(Rt,(0,ze.e)(Rt));return[qe(be)]},ze.T),Bt=pe(16089),vt=function(Rt,be){var de={};for(var le in Rt)Object.prototype.hasOwnProperty.call(Rt,le)&&be.indexOf(le)<0&&(de[le]=Rt[le]);if(Rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,le=Object.getOwnPropertySymbols(Rt);ye<le.length;ye++)be.indexOf(le[ye])<0&&Object.prototype.propertyIsEnumerable.call(Rt,le[ye])&&(de[le[ye]]=Rt[le[ye]]);return de},Nt=oe.forwardRef((Rt,be)=>{const{value:de,onChange:le,onActiveChange:ye,index:Ie,mask:he}=Rt,We=vt(Rt,["value","onChange","onActiveChange","index","mask"]),tt=de&&typeof he=="string"?he:de,dn=yn=>{le(Ie,yn.target.value)},ut=oe.useRef(null);oe.useImperativeHandle(be,()=>ut.current);const zt=()=>{(0,Bt.Z)(()=>{var yn;const ar=(yn=ut.current)===null||yn===void 0?void 0:yn.input;document.activeElement===ar&&ar&&ar.select()})},en=yn=>{const{key:ar,ctrlKey:Mt,metaKey:nn}=yn;ar==="ArrowLeft"?ye(Ie-1):ar==="ArrowRight"?ye(Ie+1):ar==="z"&&(Mt||nn)&&yn.preventDefault(),zt()},Sn=yn=>{yn.key==="Backspace"&&!de&&ye(Ie-1),zt()};return oe.createElement(Pe.Z,Object.assign({type:he===!0?"password":"text"},We,{ref:ut,value:tt,onInput:dn,onFocus:zt,onKeyDown:en,onKeyUp:Sn,onMouseDown:zt,onMouseUp:zt}))}),Et=function(Rt,be){var de={};for(var le in Rt)Object.prototype.hasOwnProperty.call(Rt,le)&&be.indexOf(le)<0&&(de[le]=Rt[le]);if(Rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,le=Object.getOwnPropertySymbols(Rt);ye<le.length;ye++)be.indexOf(le[ye])<0&&Object.prototype.propertyIsEnumerable.call(Rt,le[ye])&&(de[le[ye]]=Rt[le[ye]]);return de};function pn(Rt){return(Rt||"").split("")}const Pt=Rt=>{const{index:be,prefixCls:de,separator:le}=Rt,ye=typeof le=="function"?le(be):le;return ye?oe.createElement("span",{className:`${de}-separator`},ye):null};var jt=oe.forwardRef((Rt,be)=>{const{prefixCls:de,length:le=6,size:ye,defaultValue:Ie,value:he,onChange:We,formatter:tt,separator:dn,variant:ut,disabled:zt,status:en,autoFocus:Sn,mask:yn,type:ar,onInput:Mt,inputMode:nn}=Rt,ln=Et(Rt,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:Un,direction:Nn}=oe.useContext(Ht.E_),un=Un("otp",de),ir=(0,Le.Z)(ln,{aria:!0,data:!0,attr:!0}),[Xn,Ft,An]=pt(un),Qn=(0,Ke.Z)(Tn=>ye!=null?ye:Tn),Jn=oe.useContext(rt.aM),nt=(0,Ve.F)(Jn.status,en),gt=oe.useMemo(()=>Object.assign(Object.assign({},Jn),{status:nt,hasFeedback:!1,feedbackIcon:null}),[Jn,nt]),Kt=oe.useRef(null),vn=oe.useRef({});oe.useImperativeHandle(be,()=>({focus:()=>{var Tn;(Tn=vn.current[0])===null||Tn===void 0||Tn.focus()},blur:()=>{var Tn;for(let _n=0;_n<le;_n+=1)(Tn=vn.current[_n])===null||Tn===void 0||Tn.blur()},nativeElement:Kt.current}));const Rn=Tn=>tt?tt(Tn):Tn,[hr,$r]=oe.useState(()=>pn(Rn(Ie||"")));oe.useEffect(()=>{he!==void 0&&$r(pn(he))},[he]);const Xr=(0,ke.Z)(Tn=>{$r(Tn),Mt&&Mt(Tn),We&&Tn.length===le&&Tn.every(_n=>_n)&&Tn.some((_n,Ln)=>hr[Ln]!==_n)&&We(Tn.join(""))}),vr=(0,ke.Z)((Tn,_n)=>{let Ln=(0,ce.Z)(hr);for(let cr=0;cr<Tn;cr+=1)Ln[cr]||(Ln[cr]="");_n.length<=1?Ln[Tn]=_n:Ln=Ln.slice(0,Tn).concat(pn(_n)),Ln=Ln.slice(0,le);for(let cr=Ln.length-1;cr>=0&&!Ln[cr];cr-=1)Ln.pop();const mr=Rn(Ln.map(cr=>cr||" ").join(""));return Ln=pn(mr).map((cr,pr)=>cr===" "&&!Ln[pr]?Ln[pr]:cr),Ln}),lr=(Tn,_n)=>{var Ln;const mr=vr(Tn,_n),cr=Math.min(Tn+_n.length,le-1);cr!==Tn&&mr[Tn]!==void 0&&((Ln=vn.current[cr])===null||Ln===void 0||Ln.focus()),Xr(mr)},Dr=Tn=>{var _n;(_n=vn.current[Tn])===null||_n===void 0||_n.focus()},rr={variant:ut,disabled:zt,status:nt,mask:yn,type:ar,inputMode:nn};return Xn(oe.createElement("div",Object.assign({},ir,{ref:Kt,className:Xe()(un,{[`${un}-sm`]:Qn==="small",[`${un}-lg`]:Qn==="large",[`${un}-rtl`]:Nn==="rtl"},An,Ft)}),oe.createElement(rt.aM.Provider,{value:gt},Array.from({length:le}).map((Tn,_n)=>{const Ln=`otp-${_n}`,mr=hr[_n]||"";return oe.createElement(oe.Fragment,{key:Ln},oe.createElement(Nt,Object.assign({ref:cr=>{vn.current[_n]=cr},index:_n,size:Qn,htmlSize:1,className:`${un}-input`,onChange:lr,value:mr,onActiveChange:Dr,autoFocus:_n===0&&Sn},rr)),_n<le-1&&oe.createElement(Pt,{separator:dn,index:_n,prefixCls:un}))}))))}),Je=pe(73331),wt=pe(15277),lt=pe(2738),Fe=pe(8654),Zt=pe(2171),$e=pe(23826),At=function(Rt,be){var de={};for(var le in Rt)Object.prototype.hasOwnProperty.call(Rt,le)&&be.indexOf(le)<0&&(de[le]=Rt[le]);if(Rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,le=Object.getOwnPropertySymbols(Rt);ye<le.length;ye++)be.indexOf(le[ye])<0&&Object.prototype.propertyIsEnumerable.call(Rt,le[ye])&&(de[le[ye]]=Rt[le[ye]]);return de};const Qt=Rt=>Rt?oe.createElement(wt.Z,null):oe.createElement(Je.Z,null),Te={click:"onClick",hover:"onMouseOver"};var It=oe.forwardRef((Rt,be)=>{const{disabled:de,action:le="click",visibilityToggle:ye=!0,iconRender:Ie=Qt}=Rt,he=oe.useContext(Zt.Z),We=de!=null?de:he,tt=typeof ye=="object"&&ye.visible!==void 0,[dn,ut]=(0,oe.useState)(()=>tt?ye.visible:!1),zt=(0,oe.useRef)(null);oe.useEffect(()=>{tt&&ut(ye.visible)},[tt,ye]);const en=(0,$e.Z)(zt),Sn=()=>{var Qn;if(We)return;dn&&en();const Jn=!dn;ut(Jn),typeof ye=="object"&&((Qn=ye.onVisibleChange)===null||Qn===void 0||Qn.call(ye,Jn))},yn=Qn=>{const Jn=Te[le]||"",nt=Ie(dn),gt={[Jn]:Sn,className:`${Qn}-icon`,key:"passwordIcon",onMouseDown:Kt=>{Kt.preventDefault()},onMouseUp:Kt=>{Kt.preventDefault()}};return oe.cloneElement(oe.isValidElement(nt)?nt:oe.createElement("span",null,nt),gt)},{className:ar,prefixCls:Mt,inputPrefixCls:nn,size:ln}=Rt,Un=At(Rt,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:Nn}=oe.useContext(Ht.E_),un=Nn("input",nn),ir=Nn("input-password",Mt),Xn=ye&&yn(ir),Ft=Xe()(ir,ar,{[`${ir}-${ln}`]:!!ln}),An=Object.assign(Object.assign({},(0,lt.Z)(Un,["suffix","iconRender","visibilityToggle"])),{type:dn?"text":"password",className:Ft,prefixCls:un,suffix:Xn});return ln&&(An.size=ln),oe.createElement(Pe.Z,Object.assign({ref:(0,Fe.sQ)(be,zt)},An))}),Cn=pe(47472),mn=pe(22703),Ze=pe(7939),Ct=pe(70045),_t=function(Rt,be){var de={};for(var le in Rt)Object.prototype.hasOwnProperty.call(Rt,le)&&be.indexOf(le)<0&&(de[le]=Rt[le]);if(Rt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,le=Object.getOwnPropertySymbols(Rt);ye<le.length;ye++)be.indexOf(le[ye])<0&&Object.prototype.propertyIsEnumerable.call(Rt,le[ye])&&(de[le[ye]]=Rt[le[ye]]);return de},xn=oe.forwardRef((Rt,be)=>{const{prefixCls:de,inputPrefixCls:le,className:ye,size:Ie,suffix:he,enterButton:We=!1,addonAfter:tt,loading:dn,disabled:ut,onSearch:zt,onChange:en,onCompositionStart:Sn,onCompositionEnd:yn}=Rt,ar=_t(Rt,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Mt,direction:nn}=oe.useContext(Ht.E_),ln=oe.useRef(!1),Un=Mt("input-search",de),Nn=Mt("input",le),{compactSize:un}=(0,Ct.ri)(Un,nn),ir=(0,Ke.Z)(lr=>{var Dr;return(Dr=Ie!=null?Ie:un)!==null&&Dr!==void 0?Dr:lr}),Xn=oe.useRef(null),Ft=lr=>{lr!=null&&lr.target&&lr.type==="click"&&zt&&zt(lr.target.value,lr,{source:"clear"}),en==null||en(lr)},An=lr=>{var Dr;document.activeElement===((Dr=Xn.current)===null||Dr===void 0?void 0:Dr.input)&&lr.preventDefault()},Qn=lr=>{var Dr,rr;zt&&zt((rr=(Dr=Xn.current)===null||Dr===void 0?void 0:Dr.input)===null||rr===void 0?void 0:rr.value,lr,{source:"input"})},Jn=lr=>{ln.current||dn||Qn(lr)},nt=typeof We=="boolean"?oe.createElement(Cn.Z,null):null,gt=`${Un}-button`;let Kt;const vn=We||{},Rn=vn.type&&vn.type.__ANT_BUTTON===!0;Rn||vn.type==="button"?Kt=(0,mn.Tm)(vn,Object.assign({onMouseDown:An,onClick:lr=>{var Dr,rr;(rr=(Dr=vn==null?void 0:vn.props)===null||Dr===void 0?void 0:Dr.onClick)===null||rr===void 0||rr.call(Dr,lr),Qn(lr)},key:"enterButton"},Rn?{className:gt,size:ir}:{})):Kt=oe.createElement(Ze.ZP,{className:gt,type:We?"primary":void 0,size:ir,disabled:ut,key:"enterButton",onMouseDown:An,onClick:Qn,loading:dn,icon:nt},We),tt&&(Kt=[Kt,(0,mn.Tm)(tt,{key:"addonAfter"})]);const hr=Xe()(Un,{[`${Un}-rtl`]:nn==="rtl",[`${Un}-${ir}`]:!!ir,[`${Un}-with-button`]:!!We},ye),$r=Object.assign(Object.assign({},ar),{className:hr,prefixCls:Nn,type:"search"}),Xr=lr=>{ln.current=!0,Sn==null||Sn(lr)},vr=lr=>{ln.current=!1,yn==null||yn(lr)};return oe.createElement(Pe.Z,Object.assign({ref:(0,Fe.sQ)(Xn,be),onPressEnter:Jn},$r,{size:ir,onCompositionStart:Xr,onCompositionEnd:vr,addonAfter:Kt,suffix:he,onChange:Ft,disabled:ut}))}),Wn=pe(79809);const ct=Pe.Z;ct.Group=Me,ct.Search=xn,ct.TextArea=Wn.Z,ct.Password=It,ct.OTP=jt;var En=ct},24303:function(gr,zn,pe){"use strict";pe.d(zn,{D:function(){return Et},Z:function(){return St}});var oe=pe(59301),qt=pe(60499),Xe={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},Ht=Xe,rt=pe(7657),at=function(Je,wt){return oe.createElement(rt.Z,(0,qt.Z)({},Je,{ref:wt,icon:Ht}))},Dt=oe.forwardRef(at),Me=Dt,Pe=pe(33853),ce=pe(38819),ke=pe(92310),Le=pe.n(ke),Ve=pe(2738),Ke=pe(48755),He=pe(6989),Ge=pe(36237),ze=pe(48923),qe=pe(16931);const pt=jt=>{const{componentCls:Je,siderBg:wt,motionDurationMid:lt,motionDurationSlow:Fe,antCls:Zt,triggerHeight:$e,triggerColor:At,triggerBg:Qt,headerHeight:Te,zeroTriggerWidth:xe,zeroTriggerHeight:It,borderRadiusLG:Cn,lightSiderBg:mn,lightTriggerColor:Ze,lightTriggerBg:Ct,bodyBg:_t}=jt;return{[Je]:{position:"relative",minWidth:0,background:wt,transition:`all ${lt}, background 0s`,"&-has-trigger":{paddingBottom:$e},"&-right":{order:1},[`${Je}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${Zt}-menu${Zt}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${Je}-children`]:{overflow:"hidden"},[`${Je}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:$e,color:At,lineHeight:(0,Ge.unit)($e),textAlign:"center",background:Qt,cursor:"pointer",transition:`all ${lt}`},[`${Je}-zero-width-trigger`]:{position:"absolute",top:Te,insetInlineEnd:jt.calc(xe).mul(-1).equal(),zIndex:1,width:xe,height:It,color:At,fontSize:jt.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:wt,borderRadius:`0 ${(0,Ge.unit)(Cn)} ${(0,Ge.unit)(Cn)} 0`,cursor:"pointer",transition:`background ${Fe} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Fe}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:jt.calc(xe).mul(-1).equal(),borderRadius:`${(0,Ge.unit)(Cn)} 0 0 ${(0,Ge.unit)(Cn)}`}},"&-light":{background:mn,[`${Je}-trigger`]:{color:Ze,background:Ct},[`${Je}-zero-width-trigger`]:{color:Ze,background:Ct,border:`1px solid ${_t}`,borderInlineStart:0}}}}};var Bt=(0,qe.I$)(["Layout","Sider"],jt=>[pt(jt)],ze.eh,{deprecatedTokens:ze.jn}),vt=function(jt,Je){var wt={};for(var lt in jt)Object.prototype.hasOwnProperty.call(jt,lt)&&Je.indexOf(lt)<0&&(wt[lt]=jt[lt]);if(jt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,lt=Object.getOwnPropertySymbols(jt);Fe<lt.length;Fe++)Je.indexOf(lt[Fe])<0&&Object.prototype.propertyIsEnumerable.call(jt,lt[Fe])&&(wt[lt[Fe]]=jt[lt[Fe]]);return wt};const yt={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},Nt=jt=>!Number.isNaN(Number.parseFloat(jt))&&isFinite(jt),Et=oe.createContext({}),pn=(()=>{let jt=0;return function(){let Je=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return jt+=1,`${Je}${jt}`}})();var St=oe.forwardRef((jt,Je)=>{const{prefixCls:wt,className:lt,trigger:Fe,children:Zt,defaultCollapsed:$e=!1,theme:At="dark",style:Qt={},collapsible:Te=!1,reverseArrow:xe=!1,width:It=200,collapsedWidth:Cn=80,zeroWidthTriggerStyle:mn,breakpoint:Ze,onCollapse:Ct,onBreakpoint:_t}=jt,In=vt(jt,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:xn}=(0,oe.useContext)(He.V),[Wn,ct]=(0,oe.useState)("collapsed"in jt?jt.collapsed:$e),[En,Rt]=(0,oe.useState)(!1);(0,oe.useEffect)(()=>{"collapsed"in jt&&ct(jt.collapsed)},[jt.collapsed]);const be=(ir,Xn)=>{"collapsed"in jt||ct(ir),Ct==null||Ct(ir,Xn)},{getPrefixCls:de,direction:le}=(0,oe.useContext)(Ke.E_),ye=de("layout-sider",wt),[Ie,he,We]=Bt(ye),tt=(0,oe.useRef)(null);tt.current=ir=>{Rt(ir.matches),_t==null||_t(ir.matches),Wn!==ir.matches&&be(ir.matches,"responsive")},(0,oe.useEffect)(()=>{function ir(Ft){return tt.current(Ft)}let Xn;if(typeof window!="undefined"){const{matchMedia:Ft}=window;if(Ft&&Ze&&Ze in yt){Xn=Ft(`screen and (max-width: ${yt[Ze]})`);try{Xn.addEventListener("change",ir)}catch(An){Xn.addListener(ir)}ir(Xn)}}return()=>{try{Xn==null||Xn.removeEventListener("change",ir)}catch(Ft){Xn==null||Xn.removeListener(ir)}}},[Ze]),(0,oe.useEffect)(()=>{const ir=pn("ant-sider-");return xn.addSider(ir),()=>xn.removeSider(ir)},[]);const dn=()=>{be(!Wn,"clickTrigger")},ut=(0,Ve.Z)(In,["collapsed"]),zt=Wn?Cn:It,en=Nt(zt)?`${zt}px`:String(zt),Sn=parseFloat(String(Cn||0))===0?oe.createElement("span",{onClick:dn,className:Le()(`${ye}-zero-width-trigger`,`${ye}-zero-width-trigger-${xe?"right":"left"}`),style:mn},Fe||oe.createElement(Me,null)):null,yn=le==="rtl"==!xe,nn={expanded:yn?oe.createElement(ce.Z,null):oe.createElement(Pe.Z,null),collapsed:yn?oe.createElement(Pe.Z,null):oe.createElement(ce.Z,null)}[Wn?"collapsed":"expanded"],ln=Fe!==null?Sn||oe.createElement("div",{className:`${ye}-trigger`,onClick:dn,style:{width:en}},Fe||nn):null,Un=Object.assign(Object.assign({},Qt),{flex:`0 0 ${en}`,maxWidth:en,minWidth:en,width:en}),Nn=Le()(ye,`${ye}-${At}`,{[`${ye}-collapsed`]:!!Wn,[`${ye}-has-trigger`]:Te&&Fe!==null&&!Sn,[`${ye}-below`]:!!En,[`${ye}-zero-width`]:parseFloat(en)===0},lt,he,We),un=oe.useMemo(()=>({siderCollapsed:Wn}),[Wn]);return Ie(oe.createElement(Et.Provider,{value:un},oe.createElement("aside",Object.assign({className:Nn},ut,{style:Un,ref:Je}),oe.createElement("div",{className:`${ye}-children`},Zt),Te||En&&Sn?ln:null)))})},6989:function(gr,zn,pe){"use strict";pe.d(zn,{V:function(){return qt}});var oe=pe(59301);const qt=oe.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},48923:function(gr,zn,pe){"use strict";pe.d(zn,{eh:function(){return Ht},jn:function(){return rt}});var oe=pe(36237),qt=pe(16931);const Xe=at=>{const{antCls:Dt,componentCls:Me,colorText:Pe,footerBg:ce,headerHeight:ke,headerPadding:Le,headerColor:Ve,footerPadding:Ke,fontSize:He,bodyBg:Ge,headerBg:ze}=at;return{[Me]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Ge,"&, *":{boxSizing:"border-box"},[`&${Me}-has-sider`]:{flexDirection:"row",[`> ${Me}, > ${Me}-content`]:{width:0}},[`${Me}-header, &${Me}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${Me}-header`]:{height:ke,padding:Le,color:Ve,lineHeight:(0,oe.unit)(ke),background:ze,[`${Dt}-menu`]:{lineHeight:"inherit"}},[`${Me}-footer`]:{padding:Ke,color:Pe,fontSize:He,background:ce},[`${Me}-content`]:{flex:"auto",color:Pe,minHeight:0}}},Ht=at=>{const{colorBgLayout:Dt,controlHeight:Me,controlHeightLG:Pe,colorText:ce,controlHeightSM:ke,marginXXS:Le,colorTextLightSolid:Ve,colorBgContainer:Ke}=at,He=Pe*1.25;return{colorBgHeader:"#001529",colorBgBody:Dt,colorBgTrigger:"#002140",bodyBg:Dt,headerBg:"#001529",headerHeight:Me*2,headerPadding:`0 ${He}px`,headerColor:ce,footerPadding:`${ke}px ${He}px`,footerBg:Dt,siderBg:"#001529",triggerHeight:Pe+Le*2,triggerBg:"#002140",triggerColor:Ve,zeroTriggerWidth:Pe,zeroTriggerHeight:Pe,lightSiderBg:Ke,lightTriggerBg:Ke,lightTriggerColor:ce}},rt=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];zn.ZP=(0,qt.I$)("Layout",at=>[Xe(at)],Ht,{deprecatedTokens:rt})},78857:function(gr,zn,pe){"use strict";pe.d(zn,{J:function(){return at}});var oe=pe(59301),qt=pe(8654),Xe=pe(62487),Ht=function(Dt,Me){var Pe={};for(var ce in Dt)Object.prototype.hasOwnProperty.call(Dt,ce)&&Me.indexOf(ce)<0&&(Pe[ce]=Dt[ce]);if(Dt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,ce=Object.getOwnPropertySymbols(Dt);ke<ce.length;ke++)Me.indexOf(ce[ke])<0&&Object.prototype.propertyIsEnumerable.call(Dt,ce[ke])&&(Pe[ce[ke]]=Dt[ce[ke]]);return Pe};const rt=oe.createContext(null),at=oe.forwardRef((Dt,Me)=>{const{children:Pe}=Dt,ce=Ht(Dt,["children"]),ke=oe.useContext(rt),Le=oe.useMemo(()=>Object.assign(Object.assign({},ke),ce),[ke,ce.prefixCls,ce.mode,ce.selectable,ce.rootClassName]),Ve=(0,qt.t4)(Pe),Ke=(0,qt.x1)(Me,Ve?(0,qt.C4)(Pe):null);return oe.createElement(rt.Provider,{value:Le},oe.createElement(Xe.Z,{space:!0},Ve?oe.cloneElement(Pe,{ref:Ke}):Pe))});zn.Z=rt},93041:function(gr,zn,pe){"use strict";pe.d(zn,{default:function(){return Ie}});var oe=pe(59301),qt=pe(28321),Xe=pe(24303),Ht=pe(18785),rt=pe(92310),at=pe.n(rt),Dt=pe(6089),Me=pe(2738),Pe=pe(86641),ce=pe(22703),ke=pe(48755),Le=pe(83397),Ke=(0,oe.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),He=function(he,We){var tt={};for(var dn in he)Object.prototype.hasOwnProperty.call(he,dn)&&We.indexOf(dn)<0&&(tt[dn]=he[dn]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,dn=Object.getOwnPropertySymbols(he);ut<dn.length;ut++)We.indexOf(dn[ut])<0&&Object.prototype.propertyIsEnumerable.call(he,dn[ut])&&(tt[dn[ut]]=he[dn[ut]]);return tt},ze=he=>{const{prefixCls:We,className:tt,dashed:dn}=he,ut=He(he,["prefixCls","className","dashed"]),{getPrefixCls:zt}=oe.useContext(ke.E_),en=zt("menu",We),Sn=at()({[`${en}-item-divider-dashed`]:!!dn},tt);return oe.createElement(qt.iz,Object.assign({className:Sn},ut))},qe=pe(11592),pt=pe(25399),vt=he=>{var We;const{className:tt,children:dn,icon:ut,title:zt,danger:en,extra:Sn}=he,{prefixCls:yn,firstLevel:ar,direction:Mt,disableMenuItemTitleTooltip:nn,inlineCollapsed:ln}=oe.useContext(Ke),Un=An=>{const Qn=dn==null?void 0:dn[0],Jn=oe.createElement("span",{className:at()(`${yn}-title-content`,{[`${yn}-title-content-with-extra`]:!!Sn||Sn===0})},dn);return(!ut||oe.isValidElement(dn)&&dn.type==="span")&&dn&&An&&ar&&typeof Qn=="string"?oe.createElement("div",{className:`${yn}-inline-collapsed-noicon`},Qn.charAt(0)):Jn},{siderCollapsed:Nn}=oe.useContext(Xe.D);let un=zt;typeof zt=="undefined"?un=ar?dn:"":zt===!1&&(un="");const ir={title:un};!Nn&&!ln&&(ir.title=null,ir.open=!1);const Xn=(0,qe.Z)(dn).length;let Ft=oe.createElement(qt.ck,Object.assign({},(0,Me.Z)(he,["title","icon","danger"]),{className:at()({[`${yn}-item-danger`]:en,[`${yn}-item-only-child`]:(ut?Xn+1:Xn)===1},tt),title:typeof zt=="string"?zt:void 0}),(0,ce.Tm)(ut,{className:at()(oe.isValidElement(ut)?(We=ut.props)===null||We===void 0?void 0:We.className:"",`${yn}-item-icon`)}),Un(ln));return nn||(Ft=oe.createElement(pt.Z,Object.assign({},ir,{placement:Mt==="rtl"?"left":"right",classNames:{root:`${yn}-inline-collapsed-tooltip`}}),Ft)),Ft},yt=pe(78857),Nt=pe(36237),Et=pe(17835),pn=pe(63356),Pt=pe(34961),St=pe(46e3),jt=pe(34925),Je=pe(16931),wt=pe(51636),Fe=he=>{const{componentCls:We,motionDurationSlow:tt,horizontalLineHeight:dn,colorSplit:ut,lineWidth:zt,lineType:en,itemPaddingInline:Sn}=he;return{[`${We}-horizontal`]:{lineHeight:dn,border:0,borderBottom:`${(0,Nt.unit)(zt)} ${en} ${ut}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${We}-item, ${We}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Sn},[`> ${We}-item:hover,
|
|
|
> ${We}-item-active,
|
|
|
> ${We}-submenu ${We}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${We}-item, ${We}-submenu-title`]:{transition:[`border-color ${tt}`,`background ${tt}`].join(",")},[`${We}-submenu-arrow`]:{display:"none"}}}},$e=he=>{let{componentCls:We,menuArrowOffset:tt,calc:dn}=he;return{[`${We}-rtl`]:{direction:"rtl"},[`${We}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${We}-rtl${We}-vertical,
|
|
|
${We}-submenu-rtl ${We}-vertical`]:{[`${We}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${(0,Nt.unit)(dn(tt).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,Nt.unit)(tt)})`}}}}};const At=he=>Object.assign({},(0,pn.oN)(he));var Te=(he,We)=>{const{componentCls:tt,itemColor:dn,itemSelectedColor:ut,subMenuItemSelectedColor:zt,groupTitleColor:en,itemBg:Sn,subMenuItemBg:yn,itemSelectedBg:ar,activeBarHeight:Mt,activeBarWidth:nn,activeBarBorderWidth:ln,motionDurationSlow:Un,motionEaseInOut:Nn,motionEaseOut:un,itemPaddingInline:ir,motionDurationMid:Xn,itemHoverColor:Ft,lineType:An,colorSplit:Qn,itemDisabledColor:Jn,dangerItemColor:nt,dangerItemHoverColor:gt,dangerItemSelectedColor:Kt,dangerItemActiveBg:vn,dangerItemSelectedBg:Rn,popupBg:hr,itemHoverBg:$r,itemActiveBg:Xr,menuSubMenuBg:vr,horizontalItemSelectedColor:lr,horizontalItemSelectedBg:Dr,horizontalItemBorderRadius:rr,horizontalItemHoverBg:Tn}=he;return{[`${tt}-${We}, ${tt}-${We} > ${tt}`]:{color:dn,background:Sn,[`&${tt}-root:focus-visible`]:Object.assign({},At(he)),[`${tt}-item`]:{"&-group-title, &-extra":{color:en}},[`${tt}-submenu-selected > ${tt}-submenu-title`]:{color:zt},[`${tt}-item, ${tt}-submenu-title`]:{color:dn,[`&:not(${tt}-item-disabled):focus-visible`]:Object.assign({},At(he))},[`${tt}-item-disabled, ${tt}-submenu-disabled`]:{color:`${Jn} !important`},[`${tt}-item:not(${tt}-item-selected):not(${tt}-submenu-selected)`]:{[`&:hover, > ${tt}-submenu-title:hover`]:{color:Ft}},[`&:not(${tt}-horizontal)`]:{[`${tt}-item:not(${tt}-item-selected)`]:{"&:hover":{backgroundColor:$r},"&:active":{backgroundColor:Xr}},[`${tt}-submenu-title`]:{"&:hover":{backgroundColor:$r},"&:active":{backgroundColor:Xr}}},[`${tt}-item-danger`]:{color:nt,[`&${tt}-item:hover`]:{[`&:not(${tt}-item-selected):not(${tt}-submenu-selected)`]:{color:gt}},[`&${tt}-item:active`]:{background:vn}},[`${tt}-item a`]:{"&, &:hover":{color:"inherit"}},[`${tt}-item-selected`]:{color:ut,[`&${tt}-item-danger`]:{color:Kt},"a, a:hover":{color:"inherit"}},[`& ${tt}-item-selected`]:{backgroundColor:ar,[`&${tt}-item-danger`]:{backgroundColor:Rn}},[`&${tt}-submenu > ${tt}`]:{backgroundColor:vr},[`&${tt}-popup > ${tt}`]:{backgroundColor:hr},[`&${tt}-submenu-popup > ${tt}`]:{backgroundColor:hr},[`&${tt}-horizontal`]:Object.assign(Object.assign({},We==="dark"?{borderBottom:0}:{}),{[`> ${tt}-item, > ${tt}-submenu`]:{top:ln,marginTop:he.calc(ln).mul(-1).equal(),marginBottom:0,borderRadius:rr,"&::after":{position:"absolute",insetInline:ir,bottom:0,borderBottom:`${(0,Nt.unit)(Mt)} solid transparent`,transition:`border-color ${Un} ${Nn}`,content:'""'},"&:hover, &-active, &-open":{background:Tn,"&::after":{borderBottomWidth:Mt,borderBottomColor:lr}},"&-selected":{color:lr,backgroundColor:Dr,"&:hover":{backgroundColor:Dr},"&::after":{borderBottomWidth:Mt,borderBottomColor:lr}}}}),[`&${tt}-root`]:{[`&${tt}-inline, &${tt}-vertical`]:{borderInlineEnd:`${(0,Nt.unit)(ln)} ${An} ${Qn}`}},[`&${tt}-inline`]:{[`${tt}-sub${tt}-inline`]:{background:yn},[`${tt}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,Nt.unit)(nn)} solid ${ut}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Xn} ${un}`,`opacity ${Xn} ${un}`].join(","),content:'""'},[`&${tt}-item-danger`]:{"&::after":{borderInlineEndColor:Kt}}},[`${tt}-selected, ${tt}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Xn} ${Nn}`,`opacity ${Xn} ${Nn}`].join(",")}}}}}};const xe=he=>{const{componentCls:We,itemHeight:tt,itemMarginInline:dn,padding:ut,menuArrowSize:zt,marginXS:en,itemMarginBlock:Sn,itemWidth:yn,itemPaddingInline:ar}=he,Mt=he.calc(zt).add(ut).add(en).equal();return{[`${We}-item`]:{position:"relative",overflow:"hidden"},[`${We}-item, ${We}-submenu-title`]:{height:tt,lineHeight:(0,Nt.unit)(tt),paddingInline:ar,overflow:"hidden",textOverflow:"ellipsis",marginInline:dn,marginBlock:Sn,width:yn},[`> ${We}-item,
|
|
|
> ${We}-submenu > ${We}-submenu-title`]:{height:tt,lineHeight:(0,Nt.unit)(tt)},[`${We}-item-group-list ${We}-submenu-title,
|
|
|
${We}-submenu-title`]:{paddingInlineEnd:Mt}}};var Cn=he=>{const{componentCls:We,iconCls:tt,itemHeight:dn,colorTextLightSolid:ut,dropdownWidth:zt,controlHeightLG:en,motionEaseOut:Sn,paddingXL:yn,itemMarginInline:ar,fontSizeLG:Mt,motionDurationFast:nn,motionDurationSlow:ln,paddingXS:Un,boxShadowSecondary:Nn,collapsedWidth:un,collapsedIconSize:ir}=he,Xn={height:dn,lineHeight:(0,Nt.unit)(dn),listStylePosition:"inside",listStyleType:"disc"};return[{[We]:{"&-inline, &-vertical":Object.assign({[`&${We}-root`]:{boxShadow:"none"}},xe(he))},[`${We}-submenu-popup`]:{[`${We}-vertical`]:Object.assign(Object.assign({},xe(he)),{boxShadow:Nn})}},{[`${We}-submenu-popup ${We}-vertical${We}-sub`]:{minWidth:zt,maxHeight:`calc(100vh - ${(0,Nt.unit)(he.calc(en).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${We}-inline`]:{width:"100%",[`&${We}-root`]:{[`${We}-item, ${We}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${ln}`,`background ${ln}`,`padding ${nn} ${Sn}`].join(","),[`> ${We}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${We}-sub${We}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${We}-submenu > ${We}-submenu-title`]:Xn,[`& ${We}-item-group-title`]:{paddingInlineStart:yn}},[`${We}-item`]:Xn}},{[`${We}-inline-collapsed`]:{width:un,[`&${We}-root`]:{[`${We}-item, ${We}-submenu ${We}-submenu-title`]:{[`> ${We}-inline-collapsed-noicon`]:{fontSize:Mt,textAlign:"center"}}},[`> ${We}-item,
|
|
|
> ${We}-item-group > ${We}-item-group-list > ${We}-item,
|
|
|
> ${We}-item-group > ${We}-item-group-list > ${We}-submenu > ${We}-submenu-title,
|
|
|
> ${We}-submenu > ${We}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${(0,Nt.unit)(he.calc(ir).div(2).equal())} - ${(0,Nt.unit)(ar)})`,textOverflow:"clip",[`
|
|
|
${We}-submenu-arrow,
|
|
|
${We}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${We}-item-icon, ${tt}`]:{margin:0,fontSize:ir,lineHeight:(0,Nt.unit)(dn),"+ span":{display:"inline-block",opacity:0}}},[`${We}-item-icon, ${tt}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${We}-item-icon, ${tt}`]:{display:"none"},"a, a:hover":{color:ut}},[`${We}-item-group-title`]:Object.assign(Object.assign({},pn.vS),{paddingInline:Un})}}]};const mn=he=>{const{componentCls:We,motionDurationSlow:tt,motionDurationMid:dn,motionEaseInOut:ut,motionEaseOut:zt,iconCls:en,iconSize:Sn,iconMarginInlineEnd:yn}=he;return{[`${We}-item, ${We}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${tt}`,`background ${tt}`,`padding calc(${tt} + 0.1s) ${ut}`].join(","),[`${We}-item-icon, ${en}`]:{minWidth:Sn,fontSize:Sn,transition:[`font-size ${dn} ${zt}`,`margin ${tt} ${ut}`,`color ${tt}`].join(","),"+ span":{marginInlineStart:yn,opacity:1,transition:[`opacity ${tt} ${ut}`,`margin ${tt}`,`color ${tt}`].join(",")}},[`${We}-item-icon`]:Object.assign({},(0,pn.Ro)()),[`&${We}-item-only-child`]:{[`> ${en}, > ${We}-item-icon`]:{marginInlineEnd:0}}},[`${We}-item-disabled, ${We}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${We}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Ze=he=>{const{componentCls:We,motionDurationSlow:tt,motionEaseInOut:dn,borderRadius:ut,menuArrowSize:zt,menuArrowOffset:en}=he;return{[`${We}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:he.margin,width:zt,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${tt} ${dn}, opacity ${tt}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:he.calc(zt).mul(.6).equal(),height:he.calc(zt).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:ut,transition:[`background ${tt} ${dn}`,`transform ${tt} ${dn}`,`top ${tt} ${dn}`,`color ${tt} ${dn}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,Nt.unit)(he.calc(en).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,Nt.unit)(en)})`}}}}},Ct=he=>{const{antCls:We,componentCls:tt,fontSize:dn,motionDurationSlow:ut,motionDurationMid:zt,motionEaseInOut:en,paddingXS:Sn,padding:yn,colorSplit:ar,lineWidth:Mt,zIndexPopup:nn,borderRadiusLG:ln,subMenuItemBorderRadius:Un,menuArrowSize:Nn,menuArrowOffset:un,lineType:ir,groupTitleLineHeight:Xn,groupTitleFontSize:Ft}=he;return[{"":{[tt]:Object.assign(Object.assign({},(0,pn.dF)()),{"&-hidden":{display:"none"}})},[`${tt}-submenu-hidden`]:{display:"none"}},{[tt]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,pn.Wf)(he)),(0,pn.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:dn,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${ut} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${tt}-item`]:{flex:"none"}},[`${tt}-item, ${tt}-submenu, ${tt}-submenu-title`]:{borderRadius:he.itemBorderRadius},[`${tt}-item-group-title`]:{padding:`${(0,Nt.unit)(Sn)} ${(0,Nt.unit)(yn)}`,fontSize:Ft,lineHeight:Xn,transition:`all ${ut}`},[`&-horizontal ${tt}-submenu`]:{transition:[`border-color ${ut} ${en}`,`background ${ut} ${en}`].join(",")},[`${tt}-submenu, ${tt}-submenu-inline`]:{transition:[`border-color ${ut} ${en}`,`background ${ut} ${en}`,`padding ${zt} ${en}`].join(",")},[`${tt}-submenu ${tt}-sub`]:{cursor:"initial",transition:[`background ${ut} ${en}`,`padding ${ut} ${en}`].join(",")},[`${tt}-title-content`]:{transition:`color ${ut}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${We}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${tt}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:he.padding}},[`${tt}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${tt}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:ar,borderStyle:ir,borderWidth:0,borderTopWidth:Mt,marginBlock:Mt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),mn(he)),{[`${tt}-item-group`]:{[`${tt}-item-group-list`]:{margin:0,padding:0,[`${tt}-item, ${tt}-submenu-title`]:{paddingInline:`${(0,Nt.unit)(he.calc(dn).mul(2).equal())} ${(0,Nt.unit)(yn)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:nn,borderRadius:ln,boxShadow:"none",transformOrigin:"0 0",[`&${tt}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${tt}`]:Object.assign(Object.assign(Object.assign({borderRadius:ln},mn(he)),Ze(he)),{[`${tt}-item, ${tt}-submenu > ${tt}-submenu-title`]:{borderRadius:Un},[`${tt}-submenu-title::after`]:{transition:`transform ${ut} ${en}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:he.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:he.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:he.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:he.paddingXS}}}),Ze(he)),{[`&-inline-collapsed ${tt}-submenu-arrow,
|
|
|
&-inline ${tt}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,Nt.unit)(un)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,Nt.unit)(he.calc(un).mul(-1).equal())})`}},[`${tt}-submenu-open${tt}-submenu-inline > ${tt}-submenu-title > ${tt}-submenu-arrow`]:{transform:`translateY(${(0,Nt.unit)(he.calc(Nn).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,Nt.unit)(he.calc(un).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,Nt.unit)(un)})`}}})},{[`${We}-layout-header`]:{[tt]:{lineHeight:"inherit"}}}]},_t=he=>{var We,tt,dn;const{colorPrimary:ut,colorError:zt,colorTextDisabled:en,colorErrorBg:Sn,colorText:yn,colorTextDescription:ar,colorBgContainer:Mt,colorFillAlter:nn,colorFillContent:ln,lineWidth:Un,lineWidthBold:Nn,controlItemBgActive:un,colorBgTextHover:ir,controlHeightLG:Xn,lineHeight:Ft,colorBgElevated:An,marginXXS:Qn,padding:Jn,fontSize:nt,controlHeightSM:gt,fontSizeLG:Kt,colorTextLightSolid:vn,colorErrorHover:Rn}=he,hr=(We=he.activeBarWidth)!==null&&We!==void 0?We:0,$r=(tt=he.activeBarBorderWidth)!==null&&tt!==void 0?tt:Un,Xr=(dn=he.itemMarginInline)!==null&&dn!==void 0?dn:he.marginXXS,vr=new Et.FastColor(vn).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:he.zIndexPopupBase+50,radiusItem:he.borderRadiusLG,itemBorderRadius:he.borderRadiusLG,radiusSubMenuItem:he.borderRadiusSM,subMenuItemBorderRadius:he.borderRadiusSM,colorItemText:yn,itemColor:yn,colorItemTextHover:yn,itemHoverColor:yn,colorItemTextHoverHorizontal:ut,horizontalItemHoverColor:ut,colorGroupTitle:ar,groupTitleColor:ar,colorItemTextSelected:ut,itemSelectedColor:ut,subMenuItemSelectedColor:ut,colorItemTextSelectedHorizontal:ut,horizontalItemSelectedColor:ut,colorItemBg:Mt,itemBg:Mt,colorItemBgHover:ir,itemHoverBg:ir,colorItemBgActive:ln,itemActiveBg:un,colorSubItemBg:nn,subMenuItemBg:nn,colorItemBgSelected:un,itemSelectedBg:un,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:hr,colorActiveBarHeight:Nn,activeBarHeight:Nn,colorActiveBarBorderSize:Un,activeBarBorderWidth:$r,colorItemTextDisabled:en,itemDisabledColor:en,colorDangerItemText:zt,dangerItemColor:zt,colorDangerItemTextHover:zt,dangerItemHoverColor:zt,colorDangerItemTextSelected:zt,dangerItemSelectedColor:zt,colorDangerItemBgActive:Sn,dangerItemActiveBg:Sn,colorDangerItemBgSelected:Sn,dangerItemSelectedBg:Sn,itemMarginInline:Xr,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Xn,groupTitleLineHeight:Ft,collapsedWidth:Xn*2,popupBg:An,itemMarginBlock:Qn,itemPaddingInline:Jn,horizontalLineHeight:`${Xn*1.15}px`,iconSize:nt,iconMarginInlineEnd:gt-nt,collapsedIconSize:Kt,groupTitleFontSize:nt,darkItemDisabledColor:new Et.FastColor(vn).setA(.25).toRgbString(),darkItemColor:vr,darkDangerItemColor:zt,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:vn,darkItemSelectedBg:ut,darkDangerItemSelectedBg:zt,darkItemHoverBg:"transparent",darkGroupTitleColor:vr,darkItemHoverColor:vn,darkDangerItemHoverColor:Rn,darkDangerItemSelectedColor:vn,darkDangerItemActiveBg:zt,itemWidth:hr?`calc(100% + ${$r}px)`:`calc(100% - ${Xr*2}px)`}};var In=function(he){let We=arguments.length>1&&arguments[1]!==void 0?arguments[1]:he,tt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(0,Je.I$)("Menu",ut=>{const{colorBgElevated:zt,controlHeightLG:en,fontSize:Sn,darkItemColor:yn,darkDangerItemColor:ar,darkItemBg:Mt,darkSubMenuItemBg:nn,darkItemSelectedColor:ln,darkItemSelectedBg:Un,darkDangerItemSelectedBg:Nn,darkItemHoverBg:un,darkGroupTitleColor:ir,darkItemHoverColor:Xn,darkItemDisabledColor:Ft,darkDangerItemHoverColor:An,darkDangerItemSelectedColor:Qn,darkDangerItemActiveBg:Jn,popupBg:nt,darkPopupBg:gt}=ut,Kt=ut.calc(Sn).div(7).mul(5).equal(),vn=(0,wt.mergeToken)(ut,{menuArrowSize:Kt,menuHorizontalHeight:ut.calc(en).mul(1.15).equal(),menuArrowOffset:ut.calc(Kt).mul(.25).equal(),menuSubMenuBg:zt,calc:ut.calc,popupBg:nt}),Rn=(0,wt.mergeToken)(vn,{itemColor:yn,itemHoverColor:Xn,groupTitleColor:ir,itemSelectedColor:ln,subMenuItemSelectedColor:ln,itemBg:Mt,popupBg:gt,subMenuItemBg:nn,itemActiveBg:"transparent",itemSelectedBg:Un,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:un,itemDisabledColor:Ft,dangerItemColor:ar,dangerItemHoverColor:An,dangerItemSelectedColor:Qn,dangerItemActiveBg:Jn,dangerItemSelectedBg:Nn,menuSubMenuBg:nn,horizontalItemSelectedColor:ln,horizontalItemSelectedBg:Un});return[Ct(vn),Fe(vn),Cn(vn),Te(vn,"light"),Te(Rn,"dark"),$e(vn),(0,Pt.Z)(vn),(0,St.oN)(vn,"slide-up"),(0,St.oN)(vn,"slide-down"),(0,jt._y)(vn,"zoom-big")]},_t,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:tt,unitless:{groupTitleLineHeight:!0}})(he,We)},xn=pe(75030),ct=he=>{var We;const{popupClassName:tt,icon:dn,title:ut,theme:zt}=he,en=oe.useContext(Ke),{prefixCls:Sn,inlineCollapsed:yn,theme:ar}=en,Mt=(0,qt.Xl)();let nn;if(!dn)nn=yn&&!Mt.length&&ut&&typeof ut=="string"?oe.createElement("div",{className:`${Sn}-inline-collapsed-noicon`},ut.charAt(0)):oe.createElement("span",{className:`${Sn}-title-content`},ut);else{const Nn=oe.isValidElement(ut)&&ut.type==="span";nn=oe.createElement(oe.Fragment,null,(0,ce.Tm)(dn,{className:at()(oe.isValidElement(dn)?(We=dn.props)===null||We===void 0?void 0:We.className:"",`${Sn}-item-icon`)}),Nn?ut:oe.createElement("span",{className:`${Sn}-title-content`},ut))}const ln=oe.useMemo(()=>Object.assign(Object.assign({},en),{firstLevel:!1}),[en]),[Un]=(0,xn.Cn)("Menu");return oe.createElement(Ke.Provider,{value:ln},oe.createElement(qt.Wd,Object.assign({},(0,Me.Z)(he,["icon"]),{title:nn,popupClassName:at()(Sn,tt,`${Sn}-${zt||ar}`),popupStyle:Object.assign({zIndex:Un},he.popupStyle)})))},En=function(he,We){var tt={};for(var dn in he)Object.prototype.hasOwnProperty.call(he,dn)&&We.indexOf(dn)<0&&(tt[dn]=he[dn]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ut=0,dn=Object.getOwnPropertySymbols(he);ut<dn.length;ut++)We.indexOf(dn[ut])<0&&Object.prototype.propertyIsEnumerable.call(he,dn[ut])&&(tt[dn[ut]]=he[dn[ut]]);return tt};function Rt(he){return he===null||he===!1}const be={item:vt,submenu:ct,divider:ze};var le=(0,oe.forwardRef)((he,We)=>{var tt;const dn=oe.useContext(yt.Z),ut=dn||{},{getPrefixCls:zt,getPopupContainer:en,direction:Sn,menu:yn}=oe.useContext(ke.E_),ar=zt(),{prefixCls:Mt,className:nn,style:ln,theme:Un="light",expandIcon:Nn,_internalDisableMenuItemTitleTooltip:un,inlineCollapsed:ir,siderCollapsed:Xn,rootClassName:Ft,mode:An,selectable:Qn,onClick:Jn,overflowedIndicatorPopupClassName:nt}=he,gt=En(he,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),Kt=(0,Me.Z)(gt,["collapsedWidth"]);(tt=ut.validator)===null||tt===void 0||tt.call(ut,{mode:An});const vn=(0,Dt.Z)(function(){var cr;Jn==null||Jn.apply(void 0,arguments),(cr=ut.onClick)===null||cr===void 0||cr.call(ut)}),Rn=ut.mode||An,hr=Qn!=null?Qn:ut.selectable,$r=ir!=null?ir:Xn,Xr={horizontal:{motionName:`${ar}-slide-up`},inline:(0,Pe.Z)(ar),other:{motionName:`${ar}-zoom-big`}},vr=zt("menu",Mt||ut.prefixCls),lr=(0,Le.Z)(vr),[Dr,rr,Tn]=In(vr,lr,!dn),_n=at()(`${vr}-${Un}`,yn==null?void 0:yn.className,nn),Ln=oe.useMemo(()=>{var cr,pr;if(typeof Nn=="function"||Rt(Nn))return Nn||null;if(typeof ut.expandIcon=="function"||Rt(ut.expandIcon))return ut.expandIcon||null;if(typeof(yn==null?void 0:yn.expandIcon)=="function"||Rt(yn==null?void 0:yn.expandIcon))return(yn==null?void 0:yn.expandIcon)||null;const Rr=(cr=Nn!=null?Nn:ut==null?void 0:ut.expandIcon)!==null&&cr!==void 0?cr:yn==null?void 0:yn.expandIcon;return(0,ce.Tm)(Rr,{className:at()(`${vr}-submenu-expand-icon`,oe.isValidElement(Rr)?(pr=Rr.props)===null||pr===void 0?void 0:pr.className:void 0)})},[Nn,ut==null?void 0:ut.expandIcon,yn==null?void 0:yn.expandIcon,vr]),mr=oe.useMemo(()=>({prefixCls:vr,inlineCollapsed:$r||!1,direction:Sn,firstLevel:!0,theme:Un,mode:Rn,disableMenuItemTitleTooltip:un}),[vr,$r,Sn,un,Un]);return Dr(oe.createElement(yt.Z.Provider,{value:null},oe.createElement(Ke.Provider,{value:mr},oe.createElement(qt.ZP,Object.assign({getPopupContainer:en,overflowedIndicator:oe.createElement(Ht.Z,null),overflowedIndicatorPopupClassName:at()(vr,`${vr}-${Un}`,nt),mode:Rn,selectable:hr,onClick:vn},Kt,{inlineCollapsed:$r,style:Object.assign(Object.assign({},yn==null?void 0:yn.style),ln),className:_n,prefixCls:vr,direction:Sn,defaultMotions:Xr,expandIcon:Ln,ref:We,rootClassName:at()(Ft,rr,ut.rootClassName,Tn,lr),_internalComponents:be})))))});const ye=(0,oe.forwardRef)((he,We)=>{const tt=(0,oe.useRef)(null),dn=oe.useContext(Xe.D);return(0,oe.useImperativeHandle)(We,()=>({menu:tt.current,focus:ut=>{var zt;(zt=tt.current)===null||zt===void 0||zt.focus(ut)}})),oe.createElement(le,Object.assign({ref:tt},he,dn))});ye.Item=vt,ye.SubMenu=ct,ye.Divider=ze,ye.ItemGroup=qt.BW;var Ie=ye},69106:function(gr,zn,pe){"use strict";pe.d(zn,{aV:function(){return Pe},t5:function(){return ce}});var oe=pe(59301),qt=pe(92310),Xe=pe.n(qt),Ht=pe(29125),rt=pe(54500),at=pe(48755),Dt=pe(85074),Me=function(Le,Ve){var Ke={};for(var He in Le)Object.prototype.hasOwnProperty.call(Le,He)&&Ve.indexOf(He)<0&&(Ke[He]=Le[He]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ge=0,He=Object.getOwnPropertySymbols(Le);Ge<He.length;Ge++)Ve.indexOf(He[Ge])<0&&Object.prototype.propertyIsEnumerable.call(Le,He[Ge])&&(Ke[He[Ge]]=Le[He[Ge]]);return Ke};const Pe=Le=>{let{title:Ve,content:Ke,prefixCls:He}=Le;return!Ve&&!Ke?null:oe.createElement(oe.Fragment,null,Ve&&oe.createElement("div",{className:`${He}-title`},Ve),Ke&&oe.createElement("div",{className:`${He}-inner-content`},Ke))},ce=Le=>{const{hashId:Ve,prefixCls:Ke,className:He,style:Ge,placement:ze="top",title:qe,content:pt,children:Bt}=Le,vt=(0,rt.Z)(qe),yt=(0,rt.Z)(pt),Nt=Xe()(Ve,Ke,`${Ke}-pure`,`${Ke}-placement-${ze}`,He);return oe.createElement("div",{className:Nt,style:Ge},oe.createElement("div",{className:`${Ke}-arrow`}),oe.createElement(Ht.G,Object.assign({},Le,{className:Ve,prefixCls:Ke}),Bt||oe.createElement(Pe,{prefixCls:Ke,title:vt,content:yt})))},ke=Le=>{const{prefixCls:Ve,className:Ke}=Le,He=Me(Le,["prefixCls","className"]),{getPrefixCls:Ge}=oe.useContext(at.E_),ze=Ge("popover",Ve),[qe,pt,Bt]=(0,Dt.Z)(ze);return qe(oe.createElement(ce,Object.assign({},He,{prefixCls:ze,hashId:pt,className:Xe()(Ke,Bt)})))};zn.ZP=ke},37639:function(gr,zn,pe){"use strict";var oe=pe(59301),qt=pe(92310),Xe=pe.n(qt),Ht=pe(18929),rt=pe(10228),at=pe(54500),Dt=pe(86641),Me=pe(22703),Pe=pe(25399),ce=pe(69106),ke=pe(48755),Le=pe(85074),Ve=function(Ge,ze){var qe={};for(var pt in Ge)Object.prototype.hasOwnProperty.call(Ge,pt)&&ze.indexOf(pt)<0&&(qe[pt]=Ge[pt]);if(Ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Bt=0,pt=Object.getOwnPropertySymbols(Ge);Bt<pt.length;Bt++)ze.indexOf(pt[Bt])<0&&Object.prototype.propertyIsEnumerable.call(Ge,pt[Bt])&&(qe[pt[Bt]]=Ge[pt[Bt]]);return qe};const He=oe.forwardRef((Ge,ze)=>{var qe,pt;const{prefixCls:Bt,title:vt,content:yt,overlayClassName:Nt,placement:Et="top",trigger:pn="hover",children:Pt,mouseEnterDelay:St=.1,mouseLeaveDelay:jt=.1,onOpenChange:Je,overlayStyle:wt={},styles:lt,classNames:Fe}=Ge,Zt=Ve(Ge,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:$e,className:At,style:Qt,classNames:Te,styles:xe}=(0,ke.dj)("popover"),It=$e("popover",Bt),[Cn,mn,Ze]=(0,Le.Z)(It),Ct=$e(),_t=Xe()(Nt,mn,Ze,At,Te.root,Fe==null?void 0:Fe.root),In=Xe()(Te.body,Fe==null?void 0:Fe.body),[xn,Wn]=(0,Ht.Z)(!1,{value:(qe=Ge.open)!==null&&qe!==void 0?qe:Ge.visible,defaultValue:(pt=Ge.defaultOpen)!==null&&pt!==void 0?pt:Ge.defaultVisible}),ct=(le,ye)=>{Wn(le,!0),Je==null||Je(le,ye)},En=le=>{le.keyCode===rt.Z.ESC&&ct(!1,le)},Rt=le=>{ct(le)},be=(0,at.Z)(vt),de=(0,at.Z)(yt);return Cn(oe.createElement(Pe.Z,Object.assign({placement:Et,trigger:pn,mouseEnterDelay:St,mouseLeaveDelay:jt},Zt,{prefixCls:It,classNames:{root:_t,body:In},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},xe.root),Qt),wt),lt==null?void 0:lt.root),body:Object.assign(Object.assign({},xe.body),lt==null?void 0:lt.body)},ref:ze,open:xn,onOpenChange:Rt,overlay:be||de?oe.createElement(ce.aV,{prefixCls:It,title:be,content:de}):null,transitionName:(0,Dt.m)(Ct,"zoom-big",Zt.transitionName),"data-popover-inject":!0}),(0,Me.Tm)(Pt,{onKeyDown:le=>{var ye,Ie;oe.isValidElement(Pt)&&((Ie=Pt==null?void 0:(ye=Pt.props).onKeyDown)===null||Ie===void 0||Ie.call(ye,le)),En(le)}})))});He._InternalPanelDoNotUseOrYouWillBeFired=ce.ZP,zn.Z=He},85074:function(gr,zn,pe){"use strict";var oe=pe(63356),qt=pe(34925),Xe=pe(37645),Ht=pe(36305),rt=pe(34998),at=pe(16931),Dt=pe(51636);const Me=ke=>{const{componentCls:Le,popoverColor:Ve,titleMinWidth:Ke,fontWeightStrong:He,innerPadding:Ge,boxShadowSecondary:ze,colorTextHeading:qe,borderRadiusLG:pt,zIndexPopup:Bt,titleMarginBottom:vt,colorBgElevated:yt,popoverBg:Nt,titleBorderBottom:Et,innerContentPadding:pn,titlePadding:Pt}=ke;return[{[Le]:Object.assign(Object.assign({},(0,oe.Wf)(ke)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:Bt,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":yt,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${Le}-content`]:{position:"relative"},[`${Le}-inner`]:{backgroundColor:Nt,backgroundClip:"padding-box",borderRadius:pt,boxShadow:ze,padding:Ge},[`${Le}-title`]:{minWidth:Ke,marginBottom:vt,color:qe,fontWeight:He,borderBottom:Et,padding:Pt},[`${Le}-inner-content`]:{color:Ve,padding:pn}})},(0,Xe.ZP)(ke,"var(--antd-arrow-background-color)"),{[`${Le}-pure`]:{position:"relative",maxWidth:"none",margin:ke.sizePopupArrow,display:"inline-block",[`${Le}-content`]:{display:"inline-block"}}}]},Pe=ke=>{const{componentCls:Le}=ke;return{[Le]:rt.i.map(Ve=>{const Ke=ke[`${Ve}6`];return{[`&${Le}-${Ve}`]:{"--antd-arrow-background-color":Ke,[`${Le}-inner`]:{backgroundColor:Ke},[`${Le}-arrow`]:{background:"transparent"}}}})}},ce=ke=>{const{lineWidth:Le,controlHeight:Ve,fontHeight:Ke,padding:He,wireframe:Ge,zIndexPopupBase:ze,borderRadiusLG:qe,marginXS:pt,lineType:Bt,colorSplit:vt,paddingSM:yt}=ke,Nt=Ve-Ke,Et=Nt/2,pn=Nt/2-Le,Pt=He;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:ze+30},(0,Ht.w)(ke)),(0,Xe.wZ)({contentRadius:qe,limitVerticalRadius:!0})),{innerPadding:Ge?0:12,titleMarginBottom:Ge?0:pt,titlePadding:Ge?`${Et}px ${Pt}px ${pn}px`:0,titleBorderBottom:Ge?`${Le}px ${Bt} ${vt}`:"none",innerContentPadding:Ge?`${yt}px ${Pt}px`:0})};zn.Z=(0,at.I$)("Popover",ke=>{const{colorBgElevated:Le,colorText:Ve}=ke,Ke=(0,Dt.mergeToken)(ke,{popoverBg:Le,popoverColor:Ve});return[Me(Ke),Pe(Ke),(0,qt._y)(Ke,"zoom-big")]},ce,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]})},89787:function(gr,zn,pe){"use strict";pe.d(zn,{Z:function(){return Xn}});var oe=pe(59301),qt=pe(17835),Xe=pe(29679),Ht=pe(40001),rt=pe(19248),at=pe(99267),Dt=pe(92310),Me=pe.n(Dt),Pe=pe(2738),ce=pe(48755),ke=pe(60499),Le=pe(85899),Ve=pe(42244),Ke={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},He=function(){var An=(0,oe.useRef)([]),Qn=(0,oe.useRef)(null);return(0,oe.useEffect)(function(){var Jn=Date.now(),nt=!1;An.current.forEach(function(gt){if(gt){nt=!0;var Kt=gt.style;Kt.transitionDuration=".3s, .3s, .3s, .06s",Qn.current&&Jn-Qn.current<100&&(Kt.transitionDuration="0s, 0s")}}),nt&&(Qn.current=Date.now())}),An.current},Ge=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],ze=function(An){var Qn=(0,Le.Z)((0,Le.Z)({},Ke),An),Jn=Qn.className,nt=Qn.percent,gt=Qn.prefixCls,Kt=Qn.strokeColor,vn=Qn.strokeLinecap,Rn=Qn.strokeWidth,hr=Qn.style,$r=Qn.trailColor,Xr=Qn.trailWidth,vr=Qn.transition,lr=(0,Ve.Z)(Qn,Ge);delete lr.gapPosition;var Dr=Array.isArray(nt)?nt:[nt],rr=Array.isArray(Kt)?Kt:[Kt],Tn=He(),_n=Rn/2,Ln=100-Rn/2,mr="M ".concat(vn==="round"?_n:0,",").concat(_n,`
|
|
|
L `).concat(vn==="round"?Ln:100,",").concat(_n),cr="0 0 100 ".concat(Rn),pr=0;return oe.createElement("svg",(0,ke.Z)({className:Me()("".concat(gt,"-line"),Jn),viewBox:cr,preserveAspectRatio:"none",style:hr},lr),oe.createElement("path",{className:"".concat(gt,"-line-trail"),d:mr,strokeLinecap:vn,stroke:$r,strokeWidth:Xr||Rn,fillOpacity:"0"}),Dr.map(function(Rr,Wr){var Gr=1;switch(vn){case"round":Gr=1-Rn/100;break;case"square":Gr=1-Rn/2/100;break;default:Gr=1;break}var ai={strokeDasharray:"".concat(Rr*Gr,"px, 100px"),strokeDashoffset:"-".concat(pr,"px"),transition:vr||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},ti=rr[Wr]||rr[rr.length-1];return pr+=Rr,oe.createElement("path",{key:Wr,className:"".concat(gt,"-line-path"),d:mr,strokeLinecap:vn,stroke:ti,strokeWidth:Rn,fillOpacity:"0",ref:function(mi){Tn[Wr]=mi},style:ai})}))},qe=ze,pt=pe(43749),Bt=pe(72190),vt=pe(47273),yt=0,Nt=(0,vt.Z)();function Et(){var Ft;return Nt?(Ft=yt,yt+=1):Ft="TEST_OR_SSR",Ft}var pn=function(Ft){var An=oe.useState(),Qn=(0,Bt.Z)(An,2),Jn=Qn[0],nt=Qn[1];return oe.useEffect(function(){nt("rc_progress_".concat(Et()))},[]),Ft||Jn},Pt=function(An){var Qn=An.bg,Jn=An.children;return oe.createElement("div",{style:{width:"100%",height:"100%",background:Qn}},Jn)};function St(Ft,An){return Object.keys(Ft).map(function(Qn){var Jn=parseFloat(Qn),nt="".concat(Math.floor(Jn*An),"%");return"".concat(Ft[Qn]," ").concat(nt)})}var jt=oe.forwardRef(function(Ft,An){var Qn=Ft.prefixCls,Jn=Ft.color,nt=Ft.gradientId,gt=Ft.radius,Kt=Ft.style,vn=Ft.ptg,Rn=Ft.strokeLinecap,hr=Ft.strokeWidth,$r=Ft.size,Xr=Ft.gapDegree,vr=Jn&&(0,pt.Z)(Jn)==="object",lr=vr?"#FFF":void 0,Dr=$r/2,rr=oe.createElement("circle",{className:"".concat(Qn,"-circle-path"),r:gt,cx:Dr,cy:Dr,stroke:lr,strokeLinecap:Rn,strokeWidth:hr,opacity:vn===0?0:1,style:Kt,ref:An});if(!vr)return rr;var Tn="".concat(nt,"-conic"),_n=Xr?"".concat(180+Xr/2,"deg"):"0deg",Ln=St(Jn,(360-Xr)/360),mr=St(Jn,1),cr="conic-gradient(from ".concat(_n,", ").concat(Ln.join(", "),")"),pr="linear-gradient(to ".concat(Xr?"bottom":"top",", ").concat(mr.join(", "),")");return oe.createElement(oe.Fragment,null,oe.createElement("mask",{id:Tn},rr),oe.createElement("foreignObject",{x:0,y:0,width:$r,height:$r,mask:"url(#".concat(Tn,")")},oe.createElement(Pt,{bg:pr},oe.createElement(Pt,{bg:cr}))))}),Je=jt,wt=100,lt=function(An,Qn,Jn,nt,gt,Kt,vn,Rn,hr,$r){var Xr=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,vr=Jn/100*360*((360-Kt)/360),lr=Kt===0?0:{bottom:0,top:180,left:90,right:-90}[vn],Dr=(100-nt)/100*Qn;hr==="round"&&nt!==100&&(Dr+=$r/2,Dr>=Qn&&(Dr=Qn-.01));var rr=wt/2;return{stroke:typeof Rn=="string"?Rn:void 0,strokeDasharray:"".concat(Qn,"px ").concat(An),strokeDashoffset:Dr+Xr,transform:"rotate(".concat(gt+vr+lr,"deg)"),transformOrigin:"".concat(rr,"px ").concat(rr,"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}},Fe=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function Zt(Ft){var An=Ft!=null?Ft:[];return Array.isArray(An)?An:[An]}var $e=function(An){var Qn=(0,Le.Z)((0,Le.Z)({},Ke),An),Jn=Qn.id,nt=Qn.prefixCls,gt=Qn.steps,Kt=Qn.strokeWidth,vn=Qn.trailWidth,Rn=Qn.gapDegree,hr=Rn===void 0?0:Rn,$r=Qn.gapPosition,Xr=Qn.trailColor,vr=Qn.strokeLinecap,lr=Qn.style,Dr=Qn.className,rr=Qn.strokeColor,Tn=Qn.percent,_n=(0,Ve.Z)(Qn,Fe),Ln=wt/2,mr=pn(Jn),cr="".concat(mr,"-gradient"),pr=Ln-Kt/2,Rr=Math.PI*2*pr,Wr=hr>0?90+hr/2:-90,Gr=Rr*((360-hr)/360),ai=(0,pt.Z)(gt)==="object"?gt:{count:gt,gap:2},ti=ai.count,xi=ai.gap,mi=Zt(Tn),Xt=Zt(rr),Kn=Xt.find(function(ft){return ft&&(0,pt.Z)(ft)==="object"}),Lr=Kn&&(0,pt.Z)(Kn)==="object",wr=Lr?"butt":vr,Lt=lt(Rr,Gr,0,100,Wr,hr,$r,Xr,wr,Kt),Vt=He(),ot=function(){var Gt=0;return mi.map(function(Fn,xr){var Or=Xt[xr]||Xt[Xt.length-1],kr=lt(Rr,Gr,Gt,Fn,Wr,hr,$r,Or,wr,Kt);return Gt+=Fn,oe.createElement(Je,{key:xr,color:Or,ptg:Fn,radius:pr,prefixCls:nt,gradientId:cr,style:kr,strokeLinecap:wr,strokeWidth:Kt,gapDegree:hr,ref:function(Zn){Vt[xr]=Zn},size:wt})}).reverse()},kt=function(){var Gt=Math.round(ti*(mi[0]/100)),Fn=100/ti,xr=0;return new Array(ti).fill(null).map(function(Or,kr){var dr=kr<=Gt-1?Xt[0]:Xr,Zn=dr&&(0,pt.Z)(dr)==="object"?"url(#".concat(cr,")"):void 0,Mn=lt(Rr,Gr,xr,Fn,Wr,hr,$r,dr,"butt",Kt,xi);return xr+=(Gr-Mn.strokeDashoffset+xi)*100/Gr,oe.createElement("circle",{key:kr,className:"".concat(nt,"-circle-path"),r:pr,cx:Ln,cy:Ln,stroke:Zn,strokeWidth:Kt,opacity:1,style:Mn,ref:function(si){Vt[kr]=si}})})};return oe.createElement("svg",(0,ke.Z)({className:Me()("".concat(nt,"-circle"),Dr),viewBox:"0 0 ".concat(wt," ").concat(wt),style:lr,id:Jn,role:"presentation"},_n),!ti&&oe.createElement("circle",{className:"".concat(nt,"-circle-trail"),r:pr,cx:Ln,cy:Ln,stroke:Xr,strokeLinecap:wr,strokeWidth:vn||Kt,style:Lt}),ti?kt():ot())},At=$e,Qt={Line:qe,Circle:At},Te=pe(25399),xe=pe(68361);function It(Ft){return!Ft||Ft<0?0:Ft>100?100:Ft}function Cn(Ft){let{success:An,successPercent:Qn}=Ft,Jn=Qn;return An&&"progress"in An&&(Jn=An.progress),An&&"percent"in An&&(Jn=An.percent),Jn}const mn=Ft=>{let{percent:An,success:Qn,successPercent:Jn}=Ft;const nt=It(Cn({success:Qn,successPercent:Jn}));return[nt,It(It(An)-nt)]},Ze=Ft=>{let{success:An={},strokeColor:Qn}=Ft;const{strokeColor:Jn}=An;return[Jn||xe.presetPrimaryColors.green,Qn||null]},Ct=(Ft,An,Qn)=>{var Jn,nt,gt,Kt;let vn=-1,Rn=-1;if(An==="step"){const hr=Qn.steps,$r=Qn.strokeWidth;typeof Ft=="string"||typeof Ft=="undefined"?(vn=Ft==="small"?2:14,Rn=$r!=null?$r:8):typeof Ft=="number"?[vn,Rn]=[Ft,Ft]:[vn=14,Rn=8]=Array.isArray(Ft)?Ft:[Ft.width,Ft.height],vn*=hr}else if(An==="line"){const hr=Qn==null?void 0:Qn.strokeWidth;typeof Ft=="string"||typeof Ft=="undefined"?Rn=hr||(Ft==="small"?6:8):typeof Ft=="number"?[vn,Rn]=[Ft,Ft]:[vn=-1,Rn=8]=Array.isArray(Ft)?Ft:[Ft.width,Ft.height]}else(An==="circle"||An==="dashboard")&&(typeof Ft=="string"||typeof Ft=="undefined"?[vn,Rn]=Ft==="small"?[60,60]:[120,120]:typeof Ft=="number"?[vn,Rn]=[Ft,Ft]:Array.isArray(Ft)&&(vn=(nt=(Jn=Ft[0])!==null&&Jn!==void 0?Jn:Ft[1])!==null&&nt!==void 0?nt:120,Rn=(Kt=(gt=Ft[0])!==null&>!==void 0?gt:Ft[1])!==null&&Kt!==void 0?Kt:120));return[vn,Rn]},_t=3,In=Ft=>_t/Ft*100;var Wn=Ft=>{const{prefixCls:An,trailColor:Qn=null,strokeLinecap:Jn="round",gapPosition:nt,gapDegree:gt,width:Kt=120,type:vn,children:Rn,success:hr,size:$r=Kt,steps:Xr}=Ft,[vr,lr]=Ct($r,"circle");let{strokeWidth:Dr}=Ft;Dr===void 0&&(Dr=Math.max(In(vr),6));const rr={width:vr,height:lr,fontSize:vr*.15+6},Tn=oe.useMemo(()=>{if(gt||gt===0)return gt;if(vn==="dashboard")return 75},[gt,vn]),_n=mn(Ft),Ln=nt||vn==="dashboard"&&"bottom"||void 0,mr=Object.prototype.toString.call(Ft.strokeColor)==="[object Object]",cr=Ze({success:hr,strokeColor:Ft.strokeColor}),pr=Me()(`${An}-inner`,{[`${An}-circle-gradient`]:mr}),Rr=oe.createElement(At,{steps:Xr,percent:Xr?_n[1]:_n,strokeWidth:Dr,trailWidth:Dr,strokeColor:Xr?cr[1]:cr,strokeLinecap:Jn,trailColor:Qn,prefixCls:An,gapDegree:Tn,gapPosition:Ln}),Wr=vr<=20,Gr=oe.createElement("div",{className:pr,style:rr},Rr,!Wr&&Rn);return Wr?oe.createElement(Te.Z,{title:Rn},Gr):Gr},ct=pe(36237),En=pe(63356),Rt=pe(16931),be=pe(51636);const de="--progress-line-stroke-color",le="--progress-percent",ye=Ft=>{const An=Ft?"100%":"-100%";return new ct.Keyframes(`antProgress${Ft?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${An}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${An}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Ie=Ft=>{const{componentCls:An,iconCls:Qn}=Ft;return{[An]:Object.assign(Object.assign({},(0,En.Wf)(Ft)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:Ft.fontSize},[`${An}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${An}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:Ft.remainingColor,borderRadius:Ft.lineBorderRadius},[`${An}-inner:not(${An}-circle-gradient)`]:{[`${An}-circle-path`]:{stroke:Ft.defaultColor}},[`${An}-success-bg, ${An}-bg`]:{position:"relative",background:Ft.defaultColor,borderRadius:Ft.lineBorderRadius,transition:`all ${Ft.motionDurationSlow} ${Ft.motionEaseInOutCirc}`},[`${An}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${An}-text`]:{width:"max-content",marginInlineStart:0,marginTop:Ft.marginXXS}},[`${An}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${de})`]},height:"100%",width:`calc(1 / var(${le}) * 100%)`,display:"block"},[`&${An}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${An}-text-inner`]:{color:Ft.colorWhite,[`&${An}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${An}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Ft.colorSuccess},[`${An}-text`]:{display:"inline-block",marginInlineStart:Ft.marginXS,color:Ft.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Qn]:{fontSize:Ft.fontSize},[`&${An}-text-outer`]:{width:"max-content"},[`&${An}-text-outer${An}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:Ft.marginXS}},[`${An}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${(0,ct.unit)(Ft.paddingXXS)}`,[`&${An}-text-start`]:{justifyContent:"start"},[`&${An}-text-end`]:{justifyContent:"end"}},[`&${An}-status-active`]:{[`${An}-bg::before`]:{position:"absolute",inset:0,backgroundColor:Ft.colorBgContainer,borderRadius:Ft.lineBorderRadius,opacity:0,animationName:ye(),animationDuration:Ft.progressActiveMotionDuration,animationTimingFunction:Ft.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${An}-rtl${An}-status-active`]:{[`${An}-bg::before`]:{animationName:ye(!0)}},[`&${An}-status-exception`]:{[`${An}-bg`]:{backgroundColor:Ft.colorError},[`${An}-text`]:{color:Ft.colorError}},[`&${An}-status-exception ${An}-inner:not(${An}-circle-gradient)`]:{[`${An}-circle-path`]:{stroke:Ft.colorError}},[`&${An}-status-success`]:{[`${An}-bg`]:{backgroundColor:Ft.colorSuccess},[`${An}-text`]:{color:Ft.colorSuccess}},[`&${An}-status-success ${An}-inner:not(${An}-circle-gradient)`]:{[`${An}-circle-path`]:{stroke:Ft.colorSuccess}}})}},he=Ft=>{const{componentCls:An,iconCls:Qn}=Ft;return{[An]:{[`${An}-circle-trail`]:{stroke:Ft.remainingColor},[`&${An}-circle ${An}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${An}-circle ${An}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:Ft.circleTextColor,fontSize:Ft.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Qn]:{fontSize:Ft.circleIconFontSize}},[`${An}-circle&-status-exception`]:{[`${An}-text`]:{color:Ft.colorError}},[`${An}-circle&-status-success`]:{[`${An}-text`]:{color:Ft.colorSuccess}}},[`${An}-inline-circle`]:{lineHeight:1,[`${An}-inner`]:{verticalAlign:"bottom"}}}},We=Ft=>{const{componentCls:An}=Ft;return{[An]:{[`${An}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:Ft.progressStepMinWidth,marginInlineEnd:Ft.progressStepMarginInlineEnd,backgroundColor:Ft.remainingColor,transition:`all ${Ft.motionDurationSlow}`,"&-active":{backgroundColor:Ft.defaultColor}}}}}},tt=Ft=>{const{componentCls:An,iconCls:Qn}=Ft;return{[An]:{[`${An}-small&-line, ${An}-small&-line ${An}-text ${Qn}`]:{fontSize:Ft.fontSizeSM}}}},dn=Ft=>({circleTextColor:Ft.colorText,defaultColor:Ft.colorInfo,remainingColor:Ft.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${Ft.fontSize/Ft.fontSizeSM}em`});var ut=(0,Rt.I$)("Progress",Ft=>{const An=Ft.calc(Ft.marginXXS).div(2).equal(),Qn=(0,be.mergeToken)(Ft,{progressStepMarginInlineEnd:An,progressStepMinWidth:An,progressActiveMotionDuration:"2.4s"});return[Ie(Qn),he(Qn),We(Qn),tt(Qn)]},dn),zt=function(Ft,An){var Qn={};for(var Jn in Ft)Object.prototype.hasOwnProperty.call(Ft,Jn)&&An.indexOf(Jn)<0&&(Qn[Jn]=Ft[Jn]);if(Ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,Jn=Object.getOwnPropertySymbols(Ft);nt<Jn.length;nt++)An.indexOf(Jn[nt])<0&&Object.prototype.propertyIsEnumerable.call(Ft,Jn[nt])&&(Qn[Jn[nt]]=Ft[Jn[nt]]);return Qn};const en=Ft=>{let An=[];return Object.keys(Ft).forEach(Qn=>{const Jn=parseFloat(Qn.replace(/%/g,""));Number.isNaN(Jn)||An.push({key:Jn,value:Ft[Qn]})}),An=An.sort((Qn,Jn)=>Qn.key-Jn.key),An.map(Qn=>{let{key:Jn,value:nt}=Qn;return`${nt} ${Jn}%`}).join(", ")},Sn=(Ft,An)=>{const{from:Qn=xe.presetPrimaryColors.blue,to:Jn=xe.presetPrimaryColors.blue,direction:nt=An==="rtl"?"to left":"to right"}=Ft,gt=zt(Ft,["from","to","direction"]);if(Object.keys(gt).length!==0){const vn=en(gt),Rn=`linear-gradient(${nt}, ${vn})`;return{background:Rn,[de]:Rn}}const Kt=`linear-gradient(${nt}, ${Qn}, ${Jn})`;return{background:Kt,[de]:Kt}};var ar=Ft=>{const{prefixCls:An,direction:Qn,percent:Jn,size:nt,strokeWidth:gt,strokeColor:Kt,strokeLinecap:vn="round",children:Rn,trailColor:hr=null,percentPosition:$r,success:Xr}=Ft,{align:vr,type:lr}=$r,Dr=Kt&&typeof Kt!="string"?Sn(Kt,Qn):{[de]:Kt,background:Kt},rr=vn==="square"||vn==="butt"?0:void 0,Tn=nt!=null?nt:[-1,gt||(nt==="small"?6:8)],[_n,Ln]=Ct(Tn,"line",{strokeWidth:gt}),mr={backgroundColor:hr||void 0,borderRadius:rr},cr=Object.assign(Object.assign({width:`${It(Jn)}%`,height:Ln,borderRadius:rr},Dr),{[le]:It(Jn)/100}),pr=Cn(Ft),Rr={width:`${It(pr)}%`,height:Ln,borderRadius:rr,backgroundColor:Xr==null?void 0:Xr.strokeColor},Wr={width:_n<0?"100%":_n},Gr=oe.createElement("div",{className:`${An}-inner`,style:mr},oe.createElement("div",{className:Me()(`${An}-bg`,`${An}-bg-${lr}`),style:cr},lr==="inner"&&Rn),pr!==void 0&&oe.createElement("div",{className:`${An}-success-bg`,style:Rr})),ai=lr==="outer"&&vr==="start",ti=lr==="outer"&&vr==="end";return lr==="outer"&&vr==="center"?oe.createElement("div",{className:`${An}-layout-bottom`},Gr,Rn):oe.createElement("div",{className:`${An}-outer`,style:Wr},ai&&Rn,Gr,ti&&Rn)},nn=Ft=>{const{size:An,steps:Qn,rounding:Jn=Math.round,percent:nt=0,strokeWidth:gt=8,strokeColor:Kt,trailColor:vn=null,prefixCls:Rn,children:hr}=Ft,$r=Jn(Qn*(nt/100)),Xr=An==="small"?2:14,vr=An!=null?An:[Xr,gt],[lr,Dr]=Ct(vr,"step",{steps:Qn,strokeWidth:gt}),rr=lr/Qn,Tn=Array.from({length:Qn});for(let _n=0;_n<Qn;_n++){const Ln=Array.isArray(Kt)?Kt[_n]:Kt;Tn[_n]=oe.createElement("div",{key:_n,className:Me()(`${Rn}-steps-item`,{[`${Rn}-steps-item-active`]:_n<=$r-1}),style:{backgroundColor:_n<=$r-1?Ln:vn,width:rr,height:Dr}})}return oe.createElement("div",{className:`${Rn}-steps-outer`},Tn,hr)},ln=function(Ft,An){var Qn={};for(var Jn in Ft)Object.prototype.hasOwnProperty.call(Ft,Jn)&&An.indexOf(Jn)<0&&(Qn[Jn]=Ft[Jn]);if(Ft!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,Jn=Object.getOwnPropertySymbols(Ft);nt<Jn.length;nt++)An.indexOf(Jn[nt])<0&&Object.prototype.propertyIsEnumerable.call(Ft,Jn[nt])&&(Qn[Jn[nt]]=Ft[Jn[nt]]);return Qn};const Un=null,Nn=["normal","exception","active","success"];var ir=oe.forwardRef((Ft,An)=>{const{prefixCls:Qn,className:Jn,rootClassName:nt,steps:gt,strokeColor:Kt,percent:vn=0,size:Rn="default",showInfo:hr=!0,type:$r="line",status:Xr,format:vr,style:lr,percentPosition:Dr={}}=Ft,rr=ln(Ft,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:Tn="end",type:_n="outer"}=Dr,Ln=Array.isArray(Kt)?Kt[0]:Kt,mr=typeof Kt=="string"||Array.isArray(Kt)?Kt:void 0,cr=oe.useMemo(()=>{if(Ln){const ot=typeof Ln=="string"?Ln:Object.values(Ln)[0];return new qt.FastColor(ot).isLight()}return!1},[Kt]),pr=oe.useMemo(()=>{var ot,kt;const ft=Cn(Ft);return parseInt(ft!==void 0?(ot=ft!=null?ft:0)===null||ot===void 0?void 0:ot.toString():(kt=vn!=null?vn:0)===null||kt===void 0?void 0:kt.toString(),10)},[vn,Ft.success,Ft.successPercent]),Rr=oe.useMemo(()=>!Nn.includes(Xr)&&pr>=100?"success":Xr||"normal",[Xr,pr]),{getPrefixCls:Wr,direction:Gr,progress:ai}=oe.useContext(ce.E_),ti=Wr("progress",Qn),[xi,mi,Xt]=ut(ti),Kn=$r==="line",Lr=Kn&&!gt,wr=oe.useMemo(()=>{if(!hr)return null;const ot=Cn(Ft);let kt;const ft=vr||(Fn=>`${Fn}%`),Gt=Kn&&cr&&_n==="inner";return _n==="inner"||vr||Rr!=="exception"&&Rr!=="success"?kt=ft(It(vn),It(ot)):Rr==="exception"?kt=Kn?oe.createElement(rt.Z,null):oe.createElement(at.Z,null):Rr==="success"&&(kt=Kn?oe.createElement(Xe.Z,null):oe.createElement(Ht.Z,null)),oe.createElement("span",{className:Me()(`${ti}-text`,{[`${ti}-text-bright`]:Gt,[`${ti}-text-${Tn}`]:Lr,[`${ti}-text-${_n}`]:Lr}),title:typeof kt=="string"?kt:void 0},kt)},[hr,vn,pr,Rr,$r,ti,vr]);let Lt;$r==="line"?Lt=gt?oe.createElement(nn,Object.assign({},Ft,{strokeColor:mr,prefixCls:ti,steps:typeof gt=="object"?gt.count:gt}),wr):oe.createElement(ar,Object.assign({},Ft,{strokeColor:Ln,prefixCls:ti,direction:Gr,percentPosition:{align:Tn,type:_n}}),wr):($r==="circle"||$r==="dashboard")&&(Lt=oe.createElement(Wn,Object.assign({},Ft,{strokeColor:Ln,prefixCls:ti,progressStatus:Rr}),wr));const Vt=Me()(ti,`${ti}-status-${Rr}`,{[`${ti}-${$r==="dashboard"&&"circle"||$r}`]:$r!=="line",[`${ti}-inline-circle`]:$r==="circle"&&Ct(Rn,"circle")[0]<=20,[`${ti}-line`]:Lr,[`${ti}-line-align-${Tn}`]:Lr,[`${ti}-line-position-${_n}`]:Lr,[`${ti}-steps`]:gt,[`${ti}-show-info`]:hr,[`${ti}-${Rn}`]:typeof Rn=="string",[`${ti}-rtl`]:Gr==="rtl"},ai==null?void 0:ai.className,Jn,nt,mi,Xt);return xi(oe.createElement("div",Object.assign({ref:An,style:Object.assign(Object.assign({},ai==null?void 0:ai.style),lr),className:Vt,role:"progressbar","aria-valuenow":pr,"aria-valuemin":0,"aria-valuemax":100},(0,Pe.Z)(rr,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Lt))}),Xn=ir},63139:function(gr,zn,pe){"use strict";pe.d(zn,{Z:function(){return mn}});var oe=pe(59301),qt=pe(60499),Xe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3z"}}]},name:"star",theme:"filled"},Ht=Xe,rt=pe(7657),at=function(Ct,_t){return oe.createElement(rt.Z,(0,qt.Z)({},Ct,{ref:_t,icon:Ht}))},Dt=oe.forwardRef(at),Me=Dt,Pe=pe(92310),ce=pe.n(Pe),ke=pe(18642),Le=pe(72190),Ve=pe(42244),Ke=pe(18929),He=pe(10228),Ge=pe(26112);function ze(Ze,Ct){var _t=Ze.disabled,In=Ze.prefixCls,xn=Ze.character,Wn=Ze.characterRender,ct=Ze.index,En=Ze.count,Rt=Ze.value,be=Ze.allowHalf,de=Ze.focused,le=Ze.onHover,ye=Ze.onClick,Ie=function(Sn){le(Sn,ct)},he=function(Sn){ye(Sn,ct)},We=function(Sn){Sn.keyCode===He.Z.ENTER&&ye(Sn,ct)},tt=ct+1,dn=new Set([In]);Rt===0&&ct===0&&de?dn.add("".concat(In,"-focused")):be&&Rt+.5>=tt&&Rt<tt?(dn.add("".concat(In,"-half")),dn.add("".concat(In,"-active")),de&&dn.add("".concat(In,"-focused"))):(tt<=Rt?dn.add("".concat(In,"-full")):dn.add("".concat(In,"-zero")),tt===Rt&&de&&dn.add("".concat(In,"-focused")));var ut=typeof xn=="function"?xn(Ze):xn,zt=oe.createElement("li",{className:ce()(Array.from(dn)),ref:Ct},oe.createElement("div",{onClick:_t?null:he,onKeyDown:_t?null:We,onMouseMove:_t?null:Ie,role:"radio","aria-checked":Rt>ct?"true":"false","aria-posinset":ct+1,"aria-setsize":En,tabIndex:_t?-1:0},oe.createElement("div",{className:"".concat(In,"-first")},ut),oe.createElement("div",{className:"".concat(In,"-second")},ut)));return Wn&&(zt=Wn(zt,Ze)),zt}var qe=oe.forwardRef(ze);function pt(){var Ze=oe.useRef({});function Ct(In){return Ze.current[In]}function _t(In){return function(xn){Ze.current[In]=xn}}return[Ct,_t]}function Bt(Ze){var Ct=Ze.pageXOffset,_t="scrollLeft";if(typeof Ct!="number"){var In=Ze.document;Ct=In.documentElement[_t],typeof Ct!="number"&&(Ct=In.body[_t])}return Ct}function vt(Ze){var Ct,_t,In=Ze.ownerDocument,xn=In.body,Wn=In&&In.documentElement,ct=Ze.getBoundingClientRect();return Ct=ct.left,_t=ct.top,Ct-=Wn.clientLeft||xn.clientLeft||0,_t-=Wn.clientTop||xn.clientTop||0,{left:Ct,top:_t}}function yt(Ze){var Ct=vt(Ze),_t=Ze.ownerDocument,In=_t.defaultView||_t.parentWindow;return Ct.left+=Bt(In),Ct.left}var Nt=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function Et(Ze,Ct){var _t=Ze.prefixCls,In=_t===void 0?"rc-rate":_t,xn=Ze.className,Wn=Ze.defaultValue,ct=Ze.value,En=Ze.count,Rt=En===void 0?5:En,be=Ze.allowHalf,de=be===void 0?!1:be,le=Ze.allowClear,ye=le===void 0?!0:le,Ie=Ze.keyboard,he=Ie===void 0?!0:Ie,We=Ze.character,tt=We===void 0?"\u2605":We,dn=Ze.characterRender,ut=Ze.disabled,zt=Ze.direction,en=zt===void 0?"ltr":zt,Sn=Ze.tabIndex,yn=Sn===void 0?0:Sn,ar=Ze.autoFocus,Mt=Ze.onHoverChange,nn=Ze.onChange,ln=Ze.onFocus,Un=Ze.onBlur,Nn=Ze.onKeyDown,un=Ze.onMouseLeave,ir=(0,Ve.Z)(Ze,Nt),Xn=pt(),Ft=(0,Le.Z)(Xn,2),An=Ft[0],Qn=Ft[1],Jn=oe.useRef(null),nt=function(){if(!ut){var wr;(wr=Jn.current)===null||wr===void 0||wr.focus()}};oe.useImperativeHandle(Ct,function(){return{focus:nt,blur:function(){if(!ut){var wr;(wr=Jn.current)===null||wr===void 0||wr.blur()}}}});var gt=(0,Ke.Z)(Wn||0,{value:ct}),Kt=(0,Le.Z)(gt,2),vn=Kt[0],Rn=Kt[1],hr=(0,Ke.Z)(null),$r=(0,Le.Z)(hr,2),Xr=$r[0],vr=$r[1],lr=function(wr,Lt){var Vt=en==="rtl",ot=wr+1;if(de){var kt=An(wr),ft=yt(kt),Gt=kt.clientWidth;(Vt&&Lt-ft>Gt/2||!Vt&&Lt-ft<Gt/2)&&(ot-=.5)}return ot},Dr=function(wr){Rn(wr),nn==null||nn(wr)},rr=oe.useState(!1),Tn=(0,Le.Z)(rr,2),_n=Tn[0],Ln=Tn[1],mr=function(){Ln(!0),ln==null||ln()},cr=function(){Ln(!1),Un==null||Un()},pr=oe.useState(null),Rr=(0,Le.Z)(pr,2),Wr=Rr[0],Gr=Rr[1],ai=function(wr,Lt){var Vt=lr(Lt,wr.pageX);Vt!==Xr&&(Gr(Vt),vr(null)),Mt==null||Mt(Vt)},ti=function(wr){ut||(Gr(null),vr(null),Mt==null||Mt(void 0)),wr&&(un==null||un(wr))},xi=function(wr,Lt){var Vt=lr(Lt,wr.pageX),ot=!1;ye&&(ot=Vt===vn),ti(),Dr(ot?0:Vt),vr(ot?Vt:null)},mi=function(wr){var Lt=wr.keyCode,Vt=en==="rtl",ot=de?.5:1;he&&(Lt===He.Z.RIGHT&&vn<Rt&&!Vt?(Dr(vn+ot),wr.preventDefault()):Lt===He.Z.LEFT&&vn>0&&!Vt||Lt===He.Z.RIGHT&&vn>0&&Vt?(Dr(vn-ot),wr.preventDefault()):Lt===He.Z.LEFT&&vn<Rt&&Vt&&(Dr(vn+ot),wr.preventDefault())),Nn==null||Nn(wr)};oe.useEffect(function(){ar&&!ut&&nt()},[]);var Xt=new Array(Rt).fill(0).map(function(Lr,wr){return oe.createElement(qe,{ref:Qn(wr),index:wr,count:Rt,disabled:ut,prefixCls:"".concat(In,"-star"),allowHalf:de,value:Wr===null?vn:Wr,onClick:xi,onHover:ai,key:Lr||wr,character:tt,characterRender:dn,focused:_n})}),Kn=ce()(In,xn,(0,ke.Z)((0,ke.Z)({},"".concat(In,"-disabled"),ut),"".concat(In,"-rtl"),en==="rtl"));return oe.createElement("ul",(0,qt.Z)({className:Kn,onMouseLeave:ti,tabIndex:ut?-1:yn,onFocus:ut?null:mr,onBlur:ut?null:cr,onKeyDown:ut?null:mi,ref:Jn},(0,Ge.Z)(ir,{aria:!0,data:!0,attr:!0})),Xt)}var pn=oe.forwardRef(Et),Pt=pn,St=pe(48755),jt=pe(25399),Je=pe(36237),wt=pe(63356),lt=pe(16931),Fe=pe(51636);const Zt=Ze=>{const{componentCls:Ct}=Ze;return{[`${Ct}-star`]:{position:"relative",display:"inline-block",color:"inherit",cursor:"pointer","&:not(:last-child)":{marginInlineEnd:Ze.marginXS},"> div":{transition:`all ${Ze.motionDurationMid}, outline 0s`,"&:hover":{transform:Ze.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${(0,Je.unit)(Ze.lineWidth)} dashed ${Ze.starColor}`,transform:Ze.starHoverScale}},"&-first, &-second":{color:Ze.starBg,transition:`all ${Ze.motionDurationMid}`,userSelect:"none"},"&-first":{position:"absolute",top:0,insetInlineStart:0,width:"50%",height:"100%",overflow:"hidden",opacity:0},[`&-half ${Ct}-star-first, &-half ${Ct}-star-second`]:{opacity:1},[`&-half ${Ct}-star-first, &-full ${Ct}-star-second`]:{color:"inherit"}}}},$e=Ze=>({[`&-rtl${Ze.componentCls}`]:{direction:"rtl"}}),At=Ze=>{const{componentCls:Ct}=Ze;return{[Ct]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,wt.Wf)(Ze)),{display:"inline-block",margin:0,padding:0,color:Ze.starColor,fontSize:Ze.starSize,lineHeight:1,listStyle:"none",outline:"none",[`&-disabled${Ct} ${Ct}-star`]:{cursor:"default","> div:hover":{transform:"scale(1)"}}}),Zt(Ze)),$e(Ze))}},Qt=Ze=>({starColor:Ze.yellow6,starSize:Ze.controlHeightLG*.5,starHoverScale:"scale(1.1)",starBg:Ze.colorFillContent});var Te=(0,lt.I$)("Rate",Ze=>{const Ct=(0,Fe.mergeToken)(Ze,{});return[At(Ct)]},Qt),xe=pe(2171),It=function(Ze,Ct){var _t={};for(var In in Ze)Object.prototype.hasOwnProperty.call(Ze,In)&&Ct.indexOf(In)<0&&(_t[In]=Ze[In]);if(Ze!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xn=0,In=Object.getOwnPropertySymbols(Ze);xn<In.length;xn++)Ct.indexOf(In[xn])<0&&Object.prototype.propertyIsEnumerable.call(Ze,In[xn])&&(_t[In[xn]]=Ze[In[xn]]);return _t},mn=oe.forwardRef((Ze,Ct)=>{const{prefixCls:_t,className:In,rootClassName:xn,style:Wn,tooltips:ct,character:En=oe.createElement(Me,null),disabled:Rt}=Ze,be=It(Ze,["prefixCls","className","rootClassName","style","tooltips","character","disabled"]),de=(Sn,yn)=>{let{index:ar}=yn;return ct?oe.createElement(jt.Z,{title:ct[ar]},Sn):Sn},{getPrefixCls:le,direction:ye,rate:Ie}=oe.useContext(St.E_),he=le("rate",_t),[We,tt,dn]=Te(he),ut=Object.assign(Object.assign({},Ie==null?void 0:Ie.style),Wn),zt=oe.useContext(xe.Z),en=Rt!=null?Rt:zt;return We(oe.createElement(Pt,Object.assign({ref:Ct,character:En,characterRender:de,disabled:en},be,{className:ce()(In,xn,tt,dn,Ie==null?void 0:Ie.className),style:ut,prefixCls:he,direction:ye})))})},82326:function(gr,zn,pe){"use strict";var oe=pe(59301),qt=pe(92310),Xe=pe.n(qt),Ht=pe(37463),rt=pe(2738),at=pe(75030),Dt=pe(86641),Me=pe(45915),Pe=pe(82855),ce=pe(48755),ke=pe(38406),Le=pe(2171),Ve=pe(83397),Ke=pe(31756),He=pe(56553),Ge=pe(24971),ze=pe(70045),qe=pe(57700),pt=pe(1722),Bt=pe(90376),vt=pe(68525),yt=pe(90005),Nt=function(jt,Je){var wt={};for(var lt in jt)Object.prototype.hasOwnProperty.call(jt,lt)&&Je.indexOf(lt)<0&&(wt[lt]=jt[lt]);if(jt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,lt=Object.getOwnPropertySymbols(jt);Fe<lt.length;Fe++)Je.indexOf(lt[Fe])<0&&Object.prototype.propertyIsEnumerable.call(jt,lt[Fe])&&(wt[lt[Fe]]=jt[lt[Fe]]);return wt};const Et="SECRET_COMBOBOX_MODE_DO_NOT_USE",pn=(jt,Je)=>{var wt;const{prefixCls:lt,bordered:Fe,className:Zt,rootClassName:$e,getPopupContainer:At,popupClassName:Qt,dropdownClassName:Te,listHeight:xe=256,placement:It,listItemHeight:Cn,size:mn,disabled:Ze,notFoundContent:Ct,status:_t,builtinPlacements:In,dropdownMatchSelectWidth:xn,popupMatchSelectWidth:Wn,direction:ct,style:En,allowClear:Rt,variant:be,dropdownStyle:de,transitionName:le,tagRender:ye,maxCount:Ie,prefix:he}=jt,We=Nt(jt,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix"]),{getPopupContainer:tt,getPrefixCls:dn,renderEmpty:ut,direction:zt,virtual:en,popupMatchSelectWidth:Sn,popupOverflow:yn}=oe.useContext(ce.E_),ar=(0,ce.dj)("select"),[,Mt]=(0,qe.ZP)(),nn=Cn!=null?Cn:Mt==null?void 0:Mt.controlHeight,ln=dn("select",lt),Un=dn(),Nn=ct!=null?ct:zt,{compactSize:un,compactItemClassnames:ir}=(0,ze.ri)(ln,Nn),[Xn,Ft]=(0,Ge.Z)("select",be,Fe),An=(0,Ve.Z)(ln),[Qn,Jn,nt]=(0,Bt.Z)(ln,An),gt=oe.useMemo(()=>{const{mode:mi}=jt;if(mi!=="combobox")return mi===Et?"combobox":mi},[jt.mode]),Kt=gt==="multiple"||gt==="tags",vn=(0,yt.Z)(jt.suffixIcon,jt.showArrow),Rn=(wt=Wn!=null?Wn:xn)!==null&&wt!==void 0?wt:Sn,{status:hr,hasFeedback:$r,isFormItemInput:Xr,feedbackIcon:vr}=oe.useContext(He.aM),lr=(0,Pe.F)(hr,_t);let Dr;Ct!==void 0?Dr=Ct:gt==="combobox"?Dr=null:Dr=(ut==null?void 0:ut("Select"))||oe.createElement(ke.Z,{componentName:"Select"});const{suffixIcon:rr,itemIcon:Tn,removeIcon:_n,clearIcon:Ln}=(0,vt.Z)(Object.assign(Object.assign({},We),{multiple:Kt,hasFeedback:$r,feedbackIcon:vr,showSuffixIcon:vn,prefixCls:ln,componentName:"Select"})),mr=Rt===!0?{clearIcon:Ln}:Rt,cr=(0,rt.Z)(We,["suffixIcon","itemIcon"]),pr=Xe()(Qt||Te,{[`${ln}-dropdown-${Nn}`]:Nn==="rtl"},$e,nt,An,Jn),Rr=(0,Ke.Z)(mi=>{var Xt;return(Xt=mn!=null?mn:un)!==null&&Xt!==void 0?Xt:mi}),Wr=oe.useContext(Le.Z),Gr=Ze!=null?Ze:Wr,ai=Xe()({[`${ln}-lg`]:Rr==="large",[`${ln}-sm`]:Rr==="small",[`${ln}-rtl`]:Nn==="rtl",[`${ln}-${Xn}`]:Ft,[`${ln}-in-form-item`]:Xr},(0,Pe.Z)(ln,lr,$r),ir,ar.className,Zt,$e,nt,An,Jn),ti=oe.useMemo(()=>It!==void 0?It:Nn==="rtl"?"bottomRight":"bottomLeft",[It,Nn]),[xi]=(0,at.Cn)("SelectLike",de==null?void 0:de.zIndex);return Qn(oe.createElement(Ht.ZP,Object.assign({ref:Je,virtual:en,showSearch:ar.showSearch},cr,{style:Object.assign(Object.assign({},ar.style),En),dropdownMatchSelectWidth:Rn,transitionName:(0,Dt.m)(Un,"slide-up",le),builtinPlacements:(0,pt.Z)(In,yn),listHeight:xe,listItemHeight:nn,mode:gt,prefixCls:ln,placement:ti,direction:Nn,prefix:he,suffixIcon:rr,menuItemSelectedIcon:Tn,removeIcon:_n,allowClear:mr,notFoundContent:Dr,className:ai,getPopupContainer:At||tt,dropdownClassName:pr,disabled:Gr,dropdownStyle:Object.assign(Object.assign({},de),{zIndex:xi}),maxCount:Kt?Ie:void 0,tagRender:Kt?ye:void 0})))},Pt=oe.forwardRef(pn),St=(0,Me.Z)(Pt,"dropdownAlign");Pt.SECRET_COMBOBOX_MODE_DO_NOT_USE=Et,Pt.Option=Ht.Wx,Pt.OptGroup=Ht.Xo,Pt._InternalPanelDoNotUseOrYouWillBeFired=St,zn.default=Pt},1722:function(gr,zn){"use strict";const pe=qt=>{const Ht={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:qt==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},Ht),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},Ht),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},Ht),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},Ht),{points:["br","tr"],offset:[0,-4]})}};function oe(qt,Xe){return qt||pe(Xe)}zn.Z=oe},90376:function(gr,zn,pe){"use strict";pe.d(zn,{Z:function(){return lt}});var oe=pe(63356),qt=pe(56119),Xe=pe(16931),Ht=pe(51636),rt=pe(46e3),at=pe(93873);const Dt=Fe=>{const{optionHeight:Zt,optionFontSize:$e,optionLineHeight:At,optionPadding:Qt}=Fe;return{position:"relative",display:"block",minHeight:Zt,padding:Qt,color:Fe.colorText,fontWeight:"normal",fontSize:$e,lineHeight:At,boxSizing:"border-box"}};var Pe=Fe=>{const{antCls:Zt,componentCls:$e}=Fe,At=`${$e}-item`,Qt=`&${Zt}-slide-up-enter${Zt}-slide-up-enter-active`,Te=`&${Zt}-slide-up-appear${Zt}-slide-up-appear-active`,xe=`&${Zt}-slide-up-leave${Zt}-slide-up-leave-active`,It=`${$e}-dropdown-placement-`,Cn=`${At}-option-selected`;return[{[`${$e}-dropdown`]:Object.assign(Object.assign({},(0,oe.Wf)(Fe)),{position:"absolute",top:-9999,zIndex:Fe.zIndexPopup,boxSizing:"border-box",padding:Fe.paddingXXS,overflow:"hidden",fontSize:Fe.fontSize,fontVariant:"initial",backgroundColor:Fe.colorBgElevated,borderRadius:Fe.borderRadiusLG,outline:"none",boxShadow:Fe.boxShadowSecondary,[`
|
|
|
${Qt}${It}bottomLeft,
|
|
|
${Te}${It}bottomLeft
|
|
|
`]:{animationName:rt.fJ},[`
|
|
|
${Qt}${It}topLeft,
|
|
|
${Te}${It}topLeft,
|
|
|
${Qt}${It}topRight,
|
|
|
${Te}${It}topRight
|
|
|
`]:{animationName:rt.Qt},[`${xe}${It}bottomLeft`]:{animationName:rt.Uw},[`
|
|
|
${xe}${It}topLeft,
|
|
|
${xe}${It}topRight
|
|
|
`]:{animationName:rt.ly},"&-hidden":{display:"none"},[At]:Object.assign(Object.assign({},Dt(Fe)),{cursor:"pointer",transition:`background ${Fe.motionDurationSlow} ease`,borderRadius:Fe.borderRadiusSM,"&-group":{color:Fe.colorTextDescription,fontSize:Fe.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},oe.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${At}-option-disabled)`]:{backgroundColor:Fe.optionActiveBg},[`&-selected:not(${At}-option-disabled)`]:{color:Fe.optionSelectedColor,fontWeight:Fe.optionSelectedFontWeight,backgroundColor:Fe.optionSelectedBg,[`${At}-option-state`]:{color:Fe.colorPrimary}},"&-disabled":{[`&${At}-option-selected`]:{backgroundColor:Fe.colorBgContainerDisabled},color:Fe.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:Fe.calc(Fe.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},Dt(Fe)),{color:Fe.colorTextDisabled})}),[`${Cn}:has(+ ${Cn})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${Cn}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},(0,rt.oN)(Fe,"slide-up"),(0,rt.oN)(Fe,"slide-down"),(0,at.Fm)(Fe,"move-up"),(0,at.Fm)(Fe,"move-down")]},ce=pe(26743),ke=pe(36237);function Le(Fe,Zt){const{componentCls:$e,inputPaddingHorizontalBase:At,borderRadius:Qt}=Fe,Te=Fe.calc(Fe.controlHeight).sub(Fe.calc(Fe.lineWidth).mul(2)).equal(),xe=Zt?`${$e}-${Zt}`:"";return{[`${$e}-single${xe}`]:{fontSize:Fe.fontSize,height:Fe.controlHeight,[`${$e}-selector`]:Object.assign(Object.assign({},(0,oe.Wf)(Fe,!0)),{display:"flex",borderRadius:Qt,flex:"1 1 auto",[`${$e}-selection-wrap:after`]:{lineHeight:(0,ke.unit)(Te)},[`${$e}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
|
|
|
${$e}-selection-item,
|
|
|
${$e}-selection-placeholder
|
|
|
`]:{display:"block",padding:0,lineHeight:(0,ke.unit)(Te),transition:`all ${Fe.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${$e}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${$e}-selection-item:empty:after`,`${$e}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
|
&${$e}-show-arrow ${$e}-selection-item,
|
|
|
&${$e}-show-arrow ${$e}-selection-search,
|
|
|
&${$e}-show-arrow ${$e}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:Fe.showArrowPaddingInlineEnd},[`&${$e}-open ${$e}-selection-item`]:{color:Fe.colorTextPlaceholder},[`&:not(${$e}-customize-input)`]:{[`${$e}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${(0,ke.unit)(At)}`,[`${$e}-selection-search-input`]:{height:Te,fontSize:Fe.fontSize},"&:after":{lineHeight:(0,ke.unit)(Te)}}},[`&${$e}-customize-input`]:{[`${$e}-selector`]:{"&:after":{display:"none"},[`${$e}-selection-search`]:{position:"static",width:"100%"},[`${$e}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,ke.unit)(At)}`,"&:after":{display:"none"}}}}}}}function Ve(Fe){const{componentCls:Zt}=Fe,$e=Fe.calc(Fe.controlPaddingHorizontalSM).sub(Fe.lineWidth).equal();return[Le(Fe),Le((0,Ht.mergeToken)(Fe,{controlHeight:Fe.controlHeightSM,borderRadius:Fe.borderRadiusSM}),"sm"),{[`${Zt}-single${Zt}-sm`]:{[`&:not(${Zt}-customize-input)`]:{[`${Zt}-selector`]:{padding:`0 ${(0,ke.unit)($e)}`},[`&${Zt}-show-arrow ${Zt}-selection-search`]:{insetInlineEnd:Fe.calc($e).add(Fe.calc(Fe.fontSize).mul(1.5)).equal()},[`
|
|
|
&${Zt}-show-arrow ${Zt}-selection-item,
|
|
|
&${Zt}-show-arrow ${Zt}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:Fe.calc(Fe.fontSize).mul(1.5).equal()}}}},Le((0,Ht.mergeToken)(Fe,{controlHeight:Fe.singleItemHeightLG,fontSize:Fe.fontSizeLG,borderRadius:Fe.borderRadiusLG}),"lg")]}const Ke=Fe=>{const{fontSize:Zt,lineHeight:$e,lineWidth:At,controlHeight:Qt,controlHeightSM:Te,controlHeightLG:xe,paddingXXS:It,controlPaddingHorizontal:Cn,zIndexPopupBase:mn,colorText:Ze,fontWeightStrong:Ct,controlItemBgActive:_t,controlItemBgHover:In,colorBgContainer:xn,colorFillSecondary:Wn,colorBgContainerDisabled:ct,colorTextDisabled:En,colorPrimaryHover:Rt,colorPrimary:be,controlOutline:de}=Fe,le=It*2,ye=At*2,Ie=Math.min(Qt-le,Qt-ye),he=Math.min(Te-le,Te-ye),We=Math.min(xe-le,xe-ye);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(It/2),zIndexPopup:mn+50,optionSelectedColor:Ze,optionSelectedFontWeight:Ct,optionSelectedBg:_t,optionActiveBg:In,optionPadding:`${(Qt-Zt*$e)/2}px ${Cn}px`,optionFontSize:Zt,optionLineHeight:$e,optionHeight:Qt,selectorBg:xn,clearBg:xn,singleItemHeightLG:xe,multipleItemBg:Wn,multipleItemBorderColor:"transparent",multipleItemHeight:Ie,multipleItemHeightSM:he,multipleItemHeightLG:We,multipleSelectorBgDisabled:ct,multipleItemColorDisabled:En,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(Fe.fontSize*1.25),hoverBorderColor:Rt,activeBorderColor:be,activeOutlineColor:de,selectAffixPadding:It}},He=(Fe,Zt)=>{const{componentCls:$e,antCls:At,controlOutlineWidth:Qt}=Fe;return{[`&:not(${$e}-customize-input) ${$e}-selector`]:{border:`${(0,ke.unit)(Fe.lineWidth)} ${Fe.lineType} ${Zt.borderColor}`,background:Fe.selectorBg},[`&:not(${$e}-disabled):not(${$e}-customize-input):not(${At}-pagination-size-changer)`]:{[`&:hover ${$e}-selector`]:{borderColor:Zt.hoverBorderHover},[`${$e}-focused& ${$e}-selector`]:{borderColor:Zt.activeBorderColor,boxShadow:`0 0 0 ${(0,ke.unit)(Qt)} ${Zt.activeOutlineColor}`,outline:0},[`${$e}-prefix`]:{color:Zt.color}}}},Ge=(Fe,Zt)=>({[`&${Fe.componentCls}-status-${Zt.status}`]:Object.assign({},He(Fe,Zt))}),ze=Fe=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},He(Fe,{borderColor:Fe.colorBorder,hoverBorderHover:Fe.hoverBorderColor,activeBorderColor:Fe.activeBorderColor,activeOutlineColor:Fe.activeOutlineColor,color:Fe.colorText})),Ge(Fe,{status:"error",borderColor:Fe.colorError,hoverBorderHover:Fe.colorErrorHover,activeBorderColor:Fe.colorError,activeOutlineColor:Fe.colorErrorOutline,color:Fe.colorError})),Ge(Fe,{status:"warning",borderColor:Fe.colorWarning,hoverBorderHover:Fe.colorWarningHover,activeBorderColor:Fe.colorWarning,activeOutlineColor:Fe.colorWarningOutline,color:Fe.colorWarning})),{[`&${Fe.componentCls}-disabled`]:{[`&:not(${Fe.componentCls}-customize-input) ${Fe.componentCls}-selector`]:{background:Fe.colorBgContainerDisabled,color:Fe.colorTextDisabled}},[`&${Fe.componentCls}-multiple ${Fe.componentCls}-selection-item`]:{background:Fe.multipleItemBg,border:`${(0,ke.unit)(Fe.lineWidth)} ${Fe.lineType} ${Fe.multipleItemBorderColor}`}})}),qe=(Fe,Zt)=>{const{componentCls:$e,antCls:At}=Fe;return{[`&:not(${$e}-customize-input) ${$e}-selector`]:{background:Zt.bg,border:`${(0,ke.unit)(Fe.lineWidth)} ${Fe.lineType} transparent`,color:Zt.color},[`&:not(${$e}-disabled):not(${$e}-customize-input):not(${At}-pagination-size-changer)`]:{[`&:hover ${$e}-selector`]:{background:Zt.hoverBg},[`${$e}-focused& ${$e}-selector`]:{background:Fe.selectorBg,borderColor:Zt.activeBorderColor,outline:0}}}},pt=(Fe,Zt)=>({[`&${Fe.componentCls}-status-${Zt.status}`]:Object.assign({},qe(Fe,Zt))}),Bt=Fe=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},qe(Fe,{bg:Fe.colorFillTertiary,hoverBg:Fe.colorFillSecondary,activeBorderColor:Fe.activeBorderColor,color:Fe.colorText})),pt(Fe,{status:"error",bg:Fe.colorErrorBg,hoverBg:Fe.colorErrorBgHover,activeBorderColor:Fe.colorError,color:Fe.colorError})),pt(Fe,{status:"warning",bg:Fe.colorWarningBg,hoverBg:Fe.colorWarningBgHover,activeBorderColor:Fe.colorWarning,color:Fe.colorWarning})),{[`&${Fe.componentCls}-disabled`]:{[`&:not(${Fe.componentCls}-customize-input) ${Fe.componentCls}-selector`]:{borderColor:Fe.colorBorder,background:Fe.colorBgContainerDisabled,color:Fe.colorTextDisabled}},[`&${Fe.componentCls}-multiple ${Fe.componentCls}-selection-item`]:{background:Fe.colorBgContainer,border:`${(0,ke.unit)(Fe.lineWidth)} ${Fe.lineType} ${Fe.colorSplit}`}})}),vt=Fe=>({"&-borderless":{[`${Fe.componentCls}-selector`]:{background:"transparent",border:`${(0,ke.unit)(Fe.lineWidth)} ${Fe.lineType} transparent`},[`&${Fe.componentCls}-disabled`]:{[`&:not(${Fe.componentCls}-customize-input) ${Fe.componentCls}-selector`]:{color:Fe.colorTextDisabled}},[`&${Fe.componentCls}-multiple ${Fe.componentCls}-selection-item`]:{background:Fe.multipleItemBg,border:`${(0,ke.unit)(Fe.lineWidth)} ${Fe.lineType} ${Fe.multipleItemBorderColor}`},[`&${Fe.componentCls}-status-error`]:{[`${Fe.componentCls}-prefix, ${Fe.componentCls}-selection-item`]:{color:Fe.colorError}},[`&${Fe.componentCls}-status-warning`]:{[`${Fe.componentCls}-prefix, ${Fe.componentCls}-selection-item`]:{color:Fe.colorWarning}}}}),yt=(Fe,Zt)=>{const{componentCls:$e,antCls:At}=Fe;return{[`&:not(${$e}-customize-input) ${$e}-selector`]:{borderWidth:`0 0 ${(0,ke.unit)(Fe.lineWidth)} 0`,borderStyle:`none none ${Fe.lineType} none`,borderColor:Zt.borderColor,background:Fe.selectorBg,borderRadius:0},[`&:not(${$e}-disabled):not(${$e}-customize-input):not(${At}-pagination-size-changer)`]:{[`&:hover ${$e}-selector`]:{borderColor:Zt.hoverBorderHover},[`${$e}-focused& ${$e}-selector`]:{borderColor:Zt.activeBorderColor,outline:0},[`${$e}-prefix`]:{color:Zt.color}}}},Nt=(Fe,Zt)=>({[`&${Fe.componentCls}-status-${Zt.status}`]:Object.assign({},yt(Fe,Zt))}),Et=Fe=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},yt(Fe,{borderColor:Fe.colorBorder,hoverBorderHover:Fe.hoverBorderColor,activeBorderColor:Fe.activeBorderColor,activeOutlineColor:Fe.activeOutlineColor,color:Fe.colorText})),Nt(Fe,{status:"error",borderColor:Fe.colorError,hoverBorderHover:Fe.colorErrorHover,activeBorderColor:Fe.colorError,activeOutlineColor:Fe.colorErrorOutline,color:Fe.colorError})),Nt(Fe,{status:"warning",borderColor:Fe.colorWarning,hoverBorderHover:Fe.colorWarningHover,activeBorderColor:Fe.colorWarning,activeOutlineColor:Fe.colorWarningOutline,color:Fe.colorWarning})),{[`&${Fe.componentCls}-disabled`]:{[`&:not(${Fe.componentCls}-customize-input) ${Fe.componentCls}-selector`]:{color:Fe.colorTextDisabled}},[`&${Fe.componentCls}-multiple ${Fe.componentCls}-selection-item`]:{background:Fe.multipleItemBg,border:`${(0,ke.unit)(Fe.lineWidth)} ${Fe.lineType} ${Fe.multipleItemBorderColor}`}})});var Pt=Fe=>({[Fe.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},ze(Fe)),Bt(Fe)),vt(Fe)),Et(Fe))});const St=Fe=>{const{componentCls:Zt}=Fe;return{position:"relative",transition:`all ${Fe.motionDurationMid} ${Fe.motionEaseInOut}`,input:{cursor:"pointer"},[`${Zt}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${Zt}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},jt=Fe=>{const{componentCls:Zt}=Fe;return{[`${Zt}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},Je=Fe=>{const{antCls:Zt,componentCls:$e,inputPaddingHorizontalBase:At,iconCls:Qt}=Fe;return{[$e]:Object.assign(Object.assign({},(0,oe.Wf)(Fe)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${$e}-customize-input) ${$e}-selector`]:Object.assign(Object.assign({},St(Fe)),jt(Fe)),[`${$e}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},oe.vS),{[`> ${Zt}-typography`]:{display:"inline"}}),[`${$e}-selection-placeholder`]:Object.assign(Object.assign({},oe.vS),{flex:1,color:Fe.colorTextPlaceholder,pointerEvents:"none"}),[`${$e}-arrow`]:Object.assign(Object.assign({},(0,oe.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:At,height:Fe.fontSizeIcon,marginTop:Fe.calc(Fe.fontSizeIcon).mul(-1).div(2).equal(),color:Fe.colorTextQuaternary,fontSize:Fe.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${Fe.motionDurationSlow} ease`,[Qt]:{verticalAlign:"top",transition:`transform ${Fe.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${$e}-suffix)`]:{pointerEvents:"auto"}},[`${$e}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${$e}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${$e}-prefix`]:{flex:"none",marginInlineEnd:Fe.selectAffixPadding},[`${$e}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:At,zIndex:1,display:"inline-block",width:Fe.fontSizeIcon,height:Fe.fontSizeIcon,marginTop:Fe.calc(Fe.fontSizeIcon).mul(-1).div(2).equal(),color:Fe.colorTextQuaternary,fontSize:Fe.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${Fe.motionDurationMid} ease, opacity ${Fe.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:Fe.colorTextTertiary}},[`&:hover ${$e}-clear`]:{opacity:1,background:Fe.colorBgBase,borderRadius:"50%"}}),[`${$e}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${$e}-has-feedback`]:{[`${$e}-clear`]:{insetInlineEnd:Fe.calc(At).add(Fe.fontSize).add(Fe.paddingXS).equal()}}}}}},wt=Fe=>{const{componentCls:Zt}=Fe;return[{[Zt]:{[`&${Zt}-in-form-item`]:{width:"100%"}}},Je(Fe),Ve(Fe),(0,ce.ZP)(Fe),Pe(Fe),{[`${Zt}-rtl`]:{direction:"rtl"}},(0,qt.c)(Fe,{borderElCls:`${Zt}-selector`,focusElCls:`${Zt}-focused`})]};var lt=(0,Xe.I$)("Select",(Fe,Zt)=>{let{rootPrefixCls:$e}=Zt;const At=(0,Ht.mergeToken)(Fe,{rootPrefixCls:$e,inputPaddingHorizontalBase:Fe.calc(Fe.paddingSM).sub(1).equal(),multipleSelectItemHeight:Fe.multipleItemHeight,selectHeight:Fe.controlHeight});return[wt(At),Pt(At)]},Ke,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}})},26743:function(gr,zn,pe){"use strict";pe.d(zn,{_z:function(){return at},gp:function(){return Ht}});var oe=pe(36237),qt=pe(63356),Xe=pe(51636);const Ht=ce=>{const{multipleSelectItemHeight:ke,paddingXXS:Le,lineWidth:Ve,INTERNAL_FIXED_ITEM_MARGIN:Ke}=ce,He=ce.max(ce.calc(Le).sub(Ve).equal(),0),Ge=ce.max(ce.calc(He).sub(Ke).equal(),0);return{basePadding:He,containerPadding:Ge,itemHeight:(0,oe.unit)(ke),itemLineHeight:(0,oe.unit)(ce.calc(ke).sub(ce.calc(ce.lineWidth).mul(2)).equal())}},rt=ce=>{const{multipleSelectItemHeight:ke,selectHeight:Le,lineWidth:Ve}=ce;return ce.calc(Le).sub(ke).div(2).sub(Ve).equal()},at=ce=>{const{componentCls:ke,iconCls:Le,borderRadiusSM:Ve,motionDurationSlow:Ke,paddingXS:He,multipleItemColorDisabled:Ge,multipleItemBorderColorDisabled:ze,colorIcon:qe,colorIconHover:pt,INTERNAL_FIXED_ITEM_MARGIN:Bt}=ce;return{[`${ke}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${ke}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:Bt,borderRadius:Ve,cursor:"default",transition:`font-size ${Ke}, line-height ${Ke}, height ${Ke}`,marginInlineEnd:ce.calc(Bt).mul(2).equal(),paddingInlineStart:He,paddingInlineEnd:ce.calc(He).div(2).equal(),[`${ke}-disabled&`]:{color:Ge,borderColor:ze,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:ce.calc(He).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,qt.Ro)()),{display:"inline-flex",alignItems:"center",color:qe,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${Le}`]:{verticalAlign:"-0.2em"},"&:hover":{color:pt}})}}}},Dt=(ce,ke)=>{const{componentCls:Le,INTERNAL_FIXED_ITEM_MARGIN:Ve}=ce,Ke=`${Le}-selection-overflow`,He=ce.multipleSelectItemHeight,Ge=rt(ce),ze=ke?`${Le}-${ke}`:"",qe=Ht(ce);return{[`${Le}-multiple${ze}`]:Object.assign(Object.assign({},at(ce)),{[`${Le}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:qe.basePadding,paddingBlock:qe.containerPadding,borderRadius:ce.borderRadius,[`${Le}-disabled&`]:{background:ce.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,oe.unit)(Ve)} 0`,lineHeight:(0,oe.unit)(He),visibility:"hidden",content:'"\\a0"'}},[`${Le}-selection-item`]:{height:qe.itemHeight,lineHeight:(0,oe.unit)(qe.itemLineHeight)},[`${Le}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,oe.unit)(He),marginBlock:Ve}},[`${Le}-prefix`]:{marginInlineStart:ce.calc(ce.inputPaddingHorizontalBase).sub(qe.basePadding).equal()},[`${Ke}-item + ${Ke}-item,
|
|
|
${Le}-prefix + ${Le}-selection-wrap
|
|
|
`]:{[`${Le}-selection-search`]:{marginInlineStart:0},[`${Le}-selection-placeholder`]:{insetInlineStart:0}},[`${Ke}-item-suffix`]:{minHeight:qe.itemHeight,marginBlock:Ve},[`${Le}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:ce.calc(ce.inputPaddingHorizontalBase).sub(Ge).equal(),"\n &-input,\n &-mirror\n ":{height:He,fontFamily:ce.fontFamily,lineHeight:(0,oe.unit)(He),transition:`all ${ce.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${Le}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:ce.calc(ce.inputPaddingHorizontalBase).sub(qe.basePadding).equal(),insetInlineEnd:ce.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${ce.motionDurationSlow}`}})}};function Me(ce,ke){const{componentCls:Le}=ce,Ve=ke?`${Le}-${ke}`:"",Ke={[`${Le}-multiple${Ve}`]:{fontSize:ce.fontSize,[`${Le}-selector`]:{[`${Le}-show-search&`]:{cursor:"text"}},[`
|
|
|
&${Le}-show-arrow ${Le}-selector,
|
|
|
&${Le}-allow-clear ${Le}-selector
|
|
|
`]:{paddingInlineEnd:ce.calc(ce.fontSizeIcon).add(ce.controlPaddingHorizontal).equal()}}};return[Dt(ce,ke),Ke]}const Pe=ce=>{const{componentCls:ke}=ce,Le=(0,Xe.mergeToken)(ce,{selectHeight:ce.controlHeightSM,multipleSelectItemHeight:ce.multipleItemHeightSM,borderRadius:ce.borderRadiusSM,borderRadiusSM:ce.borderRadiusXS}),Ve=(0,Xe.mergeToken)(ce,{fontSize:ce.fontSizeLG,selectHeight:ce.controlHeightLG,multipleSelectItemHeight:ce.multipleItemHeightLG,borderRadius:ce.borderRadiusLG,borderRadiusSM:ce.borderRadius});return[Me(ce),Me(Le,"sm"),{[`${ke}-multiple${ke}-sm`]:{[`${ke}-selection-placeholder`]:{insetInline:ce.calc(ce.controlPaddingHorizontalSM).sub(ce.lineWidth).equal()},[`${ke}-selection-search`]:{marginInlineStart:2}}},Me(Ve,"lg")]};zn.ZP=Pe},68525:function(gr,zn,pe){"use strict";pe.d(zn,{Z:function(){return Me}});var oe=pe(59301),qt=pe(40001),Xe=pe(19248),Ht=pe(99267),rt=pe(84105),at=pe(58617),Dt=pe(47472);function Me(Pe){let{suffixIcon:ce,clearIcon:ke,menuItemSelectedIcon:Le,removeIcon:Ve,loading:Ke,multiple:He,hasFeedback:Ge,prefixCls:ze,showSuffixIcon:qe,feedbackIcon:pt,showArrow:Bt,componentName:vt}=Pe;const yt=ke!=null?ke:oe.createElement(Xe.Z,null),Nt=St=>ce===null&&!Ge&&!Bt?null:oe.createElement(oe.Fragment,null,qe!==!1&&St,Ge&&pt);let Et=null;if(ce!==void 0)Et=Nt(ce);else if(Ke)Et=Nt(oe.createElement(at.Z,{spin:!0}));else{const St=`${ze}-suffix`;Et=jt=>{let{open:Je,showSearch:wt}=jt;return Nt(Je&&wt?oe.createElement(Dt.Z,{className:St}):oe.createElement(rt.Z,{className:St}))}}let pn=null;Le!==void 0?pn=Le:He?pn=oe.createElement(qt.Z,null):pn=null;let Pt=null;return Ve!==void 0?Pt=Ve:Pt=oe.createElement(Ht.Z,null),{clearIcon:yt,suffixIcon:Et,itemIcon:pn,removeIcon:Pt}}},90005:function(gr,zn,pe){"use strict";pe.d(zn,{Z:function(){return oe}});function oe(qt,Xe){return Xe!==void 0?Xe:qt!==null}},11938:function(gr,zn,pe){"use strict";pe.d(zn,{default:function(){return jt}});var oe=pe(59301),qt=pe(40192),Xe=pe(22703),Ht=pe(92310),rt=pe.n(Ht),at=pe(26112),Dt=pe(48755),Me=pe(458),ce=Je=>{const{value:wt,formatter:lt,precision:Fe,decimalSeparator:Zt,groupSeparator:$e="",prefixCls:At}=Je;let Qt;if(typeof lt=="function")Qt=lt(wt);else{const Te=String(wt),xe=Te.match(/^(-?)(\d*)(\.(\d+))?$/);if(!xe||Te==="-")Qt=Te;else{const It=xe[1];let Cn=xe[2]||"0",mn=xe[4]||"";Cn=Cn.replace(/\B(?=(\d{3})+(?!\d))/g,$e),typeof Fe=="number"&&(mn=mn.padEnd(Fe,"0").slice(0,Fe>0?Fe:0)),mn&&(mn=`${Zt}${mn}`),Qt=[oe.createElement("span",{key:"int",className:`${At}-content-value-int`},It,Cn),mn&&oe.createElement("span",{key:"decimal",className:`${At}-content-value-decimal`},mn)]}}return oe.createElement("span",{className:`${At}-content-value`},Qt)},ke=pe(63356),Le=pe(16931),Ve=pe(51636);const Ke=Je=>{const{componentCls:wt,marginXXS:lt,padding:Fe,colorTextDescription:Zt,titleFontSize:$e,colorTextHeading:At,contentFontSize:Qt,fontFamily:Te}=Je;return{[wt]:Object.assign(Object.assign({},(0,ke.Wf)(Je)),{[`${wt}-title`]:{marginBottom:lt,color:Zt,fontSize:$e},[`${wt}-skeleton`]:{paddingTop:Fe},[`${wt}-content`]:{color:At,fontSize:Qt,fontFamily:Te,[`${wt}-content-value`]:{display:"inline-block",direction:"ltr"},[`${wt}-content-prefix, ${wt}-content-suffix`]:{display:"inline-block"},[`${wt}-content-prefix`]:{marginInlineEnd:lt},[`${wt}-content-suffix`]:{marginInlineStart:lt}}})}},He=Je=>{const{fontSizeHeading3:wt,fontSize:lt}=Je;return{titleFontSize:lt,contentFontSize:wt}};var Ge=(0,Le.I$)("Statistic",Je=>{const wt=(0,Ve.mergeToken)(Je,{});return[Ke(wt)]},He),ze=function(Je,wt){var lt={};for(var Fe in Je)Object.prototype.hasOwnProperty.call(Je,Fe)&&wt.indexOf(Fe)<0&&(lt[Fe]=Je[Fe]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Zt=0,Fe=Object.getOwnPropertySymbols(Je);Zt<Fe.length;Zt++)wt.indexOf(Fe[Zt])<0&&Object.prototype.propertyIsEnumerable.call(Je,Fe[Zt])&&(lt[Fe[Zt]]=Je[Fe[Zt]]);return lt},pt=Je=>{const{prefixCls:wt,className:lt,rootClassName:Fe,style:Zt,valueStyle:$e,value:At=0,title:Qt,valueRender:Te,prefix:xe,suffix:It,loading:Cn=!1,formatter:mn,precision:Ze,decimalSeparator:Ct=".",groupSeparator:_t=",",onMouseEnter:In,onMouseLeave:xn}=Je,Wn=ze(Je,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:ct,direction:En,className:Rt,style:be}=(0,Dt.dj)("statistic"),de=ct("statistic",wt),[le,ye,Ie]=Ge(de),he=oe.createElement(ce,{decimalSeparator:Ct,groupSeparator:_t,prefixCls:de,formatter:mn,precision:Ze,value:At}),We=rt()(de,{[`${de}-rtl`]:En==="rtl"},Rt,lt,Fe,ye,Ie),tt=(0,at.Z)(Wn,{aria:!0,data:!0});return le(oe.createElement("div",Object.assign({},tt,{className:We,style:Object.assign(Object.assign({},be),Zt),onMouseEnter:In,onMouseLeave:xn}),Qt&&oe.createElement("div",{className:`${de}-title`},Qt),oe.createElement(Me.Z,{paragraph:!1,loading:Cn,className:`${de}-skeleton`},oe.createElement("div",{style:$e,className:`${de}-content`},xe&&oe.createElement("span",{className:`${de}-content-prefix`},xe),Te?Te(he):he,It&&oe.createElement("span",{className:`${de}-content-suffix`},It)))))};const Bt=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function vt(Je,wt){let lt=Je;const Fe=/\[[^\]]*]/g,Zt=(wt.match(Fe)||[]).map(Te=>Te.slice(1,-1)),$e=wt.replace(Fe,"[]"),At=Bt.reduce((Te,xe)=>{let[It,Cn]=xe;if(Te.includes(It)){const mn=Math.floor(lt/Cn);return lt-=mn*Cn,Te.replace(new RegExp(`${It}+`,"g"),Ze=>{const Ct=Ze.length;return mn.toString().padStart(Ct,"0")})}return Te},$e);let Qt=0;return At.replace(Fe,()=>{const Te=Zt[Qt];return Qt+=1,Te})}function yt(Je,wt){const{format:lt=""}=wt,Fe=new Date(Je).getTime(),Zt=Date.now(),$e=Math.max(Fe-Zt,0);return vt($e,lt)}var Nt=function(Je,wt){var lt={};for(var Fe in Je)Object.prototype.hasOwnProperty.call(Je,Fe)&&wt.indexOf(Fe)<0&&(lt[Fe]=Je[Fe]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Zt=0,Fe=Object.getOwnPropertySymbols(Je);Zt<Fe.length;Zt++)wt.indexOf(Fe[Zt])<0&&Object.prototype.propertyIsEnumerable.call(Je,Fe[Zt])&&(lt[Fe[Zt]]=Je[Fe[Zt]]);return lt};const Et=1e3/30;function pn(Je){return new Date(Je).getTime()}const Pt=Je=>{const{value:wt,format:lt="HH:mm:ss",onChange:Fe,onFinish:Zt}=Je,$e=Nt(Je,["value","format","onChange","onFinish"]),At=(0,qt.Z)(),Qt=oe.useRef(null),Te=()=>{Zt==null||Zt(),Qt.current&&(clearInterval(Qt.current),Qt.current=null)},xe=()=>{const mn=pn(wt);mn>=Date.now()&&(Qt.current=setInterval(()=>{At(),Fe==null||Fe(mn-Date.now()),mn<Date.now()&&Te()},Et))};oe.useEffect(()=>(xe(),()=>{Qt.current&&(clearInterval(Qt.current),Qt.current=null)}),[wt]);const It=(mn,Ze)=>yt(mn,Object.assign(Object.assign({},Ze),{format:lt})),Cn=mn=>(0,Xe.Tm)(mn,{title:void 0});return oe.createElement(pt,Object.assign({},$e,{value:wt,valueRender:Cn,formatter:It}))};var St=oe.memo(Pt);pt.Countdown=St;var jt=pt},58755:function(gr,zn,pe){"use strict";pe.d(zn,{Z:function(){return Zt}});var oe=pe(59301),qt=pe(58617),Xe=pe(92310),Ht=pe.n(Xe),rt=pe(60499),at=pe(18642),Dt=pe(72190),Me=pe(42244),Pe=pe(18929),ce=pe(10228),ke=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Le=oe.forwardRef(function($e,At){var Qt,Te=$e.prefixCls,xe=Te===void 0?"rc-switch":Te,It=$e.className,Cn=$e.checked,mn=$e.defaultChecked,Ze=$e.disabled,Ct=$e.loadingIcon,_t=$e.checkedChildren,In=$e.unCheckedChildren,xn=$e.onClick,Wn=$e.onChange,ct=$e.onKeyDown,En=(0,Me.Z)($e,ke),Rt=(0,Pe.Z)(!1,{value:Cn,defaultValue:mn}),be=(0,Dt.Z)(Rt,2),de=be[0],le=be[1];function ye(tt,dn){var ut=de;return Ze||(ut=tt,le(ut),Wn==null||Wn(ut,dn)),ut}function Ie(tt){tt.which===ce.Z.LEFT?ye(!1,tt):tt.which===ce.Z.RIGHT&&ye(!0,tt),ct==null||ct(tt)}function he(tt){var dn=ye(!de,tt);xn==null||xn(dn,tt)}var We=Ht()(xe,It,(Qt={},(0,at.Z)(Qt,"".concat(xe,"-checked"),de),(0,at.Z)(Qt,"".concat(xe,"-disabled"),Ze),Qt));return oe.createElement("button",(0,rt.Z)({},En,{type:"button",role:"switch","aria-checked":de,disabled:Ze,className:We,ref:At,onKeyDown:Ie,onClick:he}),Ct,oe.createElement("span",{className:"".concat(xe,"-inner")},oe.createElement("span",{className:"".concat(xe,"-inner-checked")},_t),oe.createElement("span",{className:"".concat(xe,"-inner-unchecked")},In)))});Le.displayName="Switch";var Ve=Le,Ke=pe(12919),He=pe(48755),Ge=pe(2171),ze=pe(31756),qe=pe(36237),pt=pe(17835),Bt=pe(63356),vt=pe(16931),yt=pe(51636);const Nt=$e=>{const{componentCls:At,trackHeightSM:Qt,trackPadding:Te,trackMinWidthSM:xe,innerMinMarginSM:It,innerMaxMarginSM:Cn,handleSizeSM:mn,calc:Ze}=$e,Ct=`${At}-inner`,_t=(0,qe.unit)(Ze(mn).add(Ze(Te).mul(2)).equal()),In=(0,qe.unit)(Ze(Cn).mul(2).equal());return{[At]:{[`&${At}-small`]:{minWidth:xe,height:Qt,lineHeight:(0,qe.unit)(Qt),[`${At}-inner`]:{paddingInlineStart:Cn,paddingInlineEnd:It,[`${Ct}-checked, ${Ct}-unchecked`]:{minHeight:Qt},[`${Ct}-checked`]:{marginInlineStart:`calc(-100% + ${_t} - ${In})`,marginInlineEnd:`calc(100% - ${_t} + ${In})`},[`${Ct}-unchecked`]:{marginTop:Ze(Qt).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${At}-handle`]:{width:mn,height:mn},[`${At}-loading-icon`]:{top:Ze(Ze(mn).sub($e.switchLoadingIconSize)).div(2).equal(),fontSize:$e.switchLoadingIconSize},[`&${At}-checked`]:{[`${At}-inner`]:{paddingInlineStart:It,paddingInlineEnd:Cn,[`${Ct}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Ct}-unchecked`]:{marginInlineStart:`calc(100% - ${_t} + ${In})`,marginInlineEnd:`calc(-100% + ${_t} - ${In})`}},[`${At}-handle`]:{insetInlineStart:`calc(100% - ${(0,qe.unit)(Ze(mn).add(Te).equal())})`}},[`&:not(${At}-disabled):active`]:{[`&:not(${At}-checked) ${Ct}`]:{[`${Ct}-unchecked`]:{marginInlineStart:Ze($e.marginXXS).div(2).equal(),marginInlineEnd:Ze($e.marginXXS).mul(-1).div(2).equal()}},[`&${At}-checked ${Ct}`]:{[`${Ct}-checked`]:{marginInlineStart:Ze($e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:Ze($e.marginXXS).div(2).equal()}}}}}}},Et=$e=>{const{componentCls:At,handleSize:Qt,calc:Te}=$e;return{[At]:{[`${At}-loading-icon${$e.iconCls}`]:{position:"relative",top:Te(Te(Qt).sub($e.fontSize)).div(2).equal(),color:$e.switchLoadingIconColor,verticalAlign:"top"},[`&${At}-checked ${At}-loading-icon`]:{color:$e.switchColor}}}},pn=$e=>{const{componentCls:At,trackPadding:Qt,handleBg:Te,handleShadow:xe,handleSize:It,calc:Cn}=$e,mn=`${At}-handle`;return{[At]:{[mn]:{position:"absolute",top:Qt,insetInlineStart:Qt,width:It,height:It,transition:`all ${$e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:Te,borderRadius:Cn(It).div(2).equal(),boxShadow:xe,transition:`all ${$e.switchDuration} ease-in-out`,content:'""'}},[`&${At}-checked ${mn}`]:{insetInlineStart:`calc(100% - ${(0,qe.unit)(Cn(It).add(Qt).equal())})`},[`&:not(${At}-disabled):active`]:{[`${mn}::before`]:{insetInlineEnd:$e.switchHandleActiveInset,insetInlineStart:0},[`&${At}-checked ${mn}::before`]:{insetInlineEnd:0,insetInlineStart:$e.switchHandleActiveInset}}}}},Pt=$e=>{const{componentCls:At,trackHeight:Qt,trackPadding:Te,innerMinMargin:xe,innerMaxMargin:It,handleSize:Cn,calc:mn}=$e,Ze=`${At}-inner`,Ct=(0,qe.unit)(mn(Cn).add(mn(Te).mul(2)).equal()),_t=(0,qe.unit)(mn(It).mul(2).equal());return{[At]:{[Ze]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:It,paddingInlineEnd:xe,transition:`padding-inline-start ${$e.switchDuration} ease-in-out, padding-inline-end ${$e.switchDuration} ease-in-out`,[`${Ze}-checked, ${Ze}-unchecked`]:{display:"block",color:$e.colorTextLightSolid,fontSize:$e.fontSizeSM,transition:`margin-inline-start ${$e.switchDuration} ease-in-out, margin-inline-end ${$e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:Qt},[`${Ze}-checked`]:{marginInlineStart:`calc(-100% + ${Ct} - ${_t})`,marginInlineEnd:`calc(100% - ${Ct} + ${_t})`},[`${Ze}-unchecked`]:{marginTop:mn(Qt).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${At}-checked ${Ze}`]:{paddingInlineStart:xe,paddingInlineEnd:It,[`${Ze}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Ze}-unchecked`]:{marginInlineStart:`calc(100% - ${Ct} + ${_t})`,marginInlineEnd:`calc(-100% + ${Ct} - ${_t})`}},[`&:not(${At}-disabled):active`]:{[`&:not(${At}-checked) ${Ze}`]:{[`${Ze}-unchecked`]:{marginInlineStart:mn(Te).mul(2).equal(),marginInlineEnd:mn(Te).mul(-1).mul(2).equal()}},[`&${At}-checked ${Ze}`]:{[`${Ze}-checked`]:{marginInlineStart:mn(Te).mul(-1).mul(2).equal(),marginInlineEnd:mn(Te).mul(2).equal()}}}}}},St=$e=>{const{componentCls:At,trackHeight:Qt,trackMinWidth:Te}=$e;return{[At]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Bt.Wf)($e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:Te,height:Qt,lineHeight:(0,qe.unit)(Qt),verticalAlign:"middle",background:$e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${$e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${At}-disabled)`]:{background:$e.colorTextTertiary}}),(0,Bt.Qy)($e)),{[`&${At}-checked`]:{background:$e.switchColor,[`&:hover:not(${At}-disabled)`]:{background:$e.colorPrimaryHover}},[`&${At}-loading, &${At}-disabled`]:{cursor:"not-allowed",opacity:$e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${At}-rtl`]:{direction:"rtl"}})}},jt=$e=>{const{fontSize:At,lineHeight:Qt,controlHeight:Te,colorWhite:xe}=$e,It=At*Qt,Cn=Te/2,mn=2,Ze=It-mn*2,Ct=Cn-mn*2;return{trackHeight:It,trackHeightSM:Cn,trackMinWidth:Ze*2+mn*4,trackMinWidthSM:Ct*2+mn*2,trackPadding:mn,handleBg:xe,handleSize:Ze,handleSizeSM:Ct,handleShadow:`0 2px 4px 0 ${new pt.FastColor("#00230b").setA(.2).toRgbString()}`,innerMinMargin:Ze/2,innerMaxMargin:Ze+mn+mn*2,innerMinMarginSM:Ct/2,innerMaxMarginSM:Ct+mn+mn*2}};var Je=(0,vt.I$)("Switch",$e=>{const At=(0,yt.mergeToken)($e,{switchDuration:$e.motionDurationMid,switchColor:$e.colorPrimary,switchDisabledOpacity:$e.opacityLoading,switchLoadingIconSize:$e.calc($e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${$e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[St(At),Pt(At),pn(At),Et(At),Nt(At)]},jt),wt=function($e,At){var Qt={};for(var Te in $e)Object.prototype.hasOwnProperty.call($e,Te)&&At.indexOf(Te)<0&&(Qt[Te]=$e[Te]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xe=0,Te=Object.getOwnPropertySymbols($e);xe<Te.length;xe++)At.indexOf(Te[xe])<0&&Object.prototype.propertyIsEnumerable.call($e,Te[xe])&&(Qt[Te[xe]]=$e[Te[xe]]);return Qt};const Fe=oe.forwardRef(($e,At)=>{const{prefixCls:Qt,size:Te,disabled:xe,loading:It,className:Cn,rootClassName:mn,style:Ze,checked:Ct,value:_t,defaultChecked:In,defaultValue:xn,onChange:Wn}=$e,ct=wt($e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[En,Rt]=(0,Pe.Z)(!1,{value:Ct!=null?Ct:_t,defaultValue:In!=null?In:xn}),{getPrefixCls:be,direction:de,switch:le}=oe.useContext(He.E_),ye=oe.useContext(Ge.Z),Ie=(xe!=null?xe:ye)||It,he=be("switch",Qt),We=oe.createElement("div",{className:`${he}-handle`},It&&oe.createElement(qt.Z,{className:`${he}-loading-icon`})),[tt,dn,ut]=Je(he),zt=(0,ze.Z)(Te),en=Ht()(le==null?void 0:le.className,{[`${he}-small`]:zt==="small",[`${he}-loading`]:It,[`${he}-rtl`]:de==="rtl"},Cn,mn,dn,ut),Sn=Object.assign(Object.assign({},le==null?void 0:le.style),Ze),yn=function(){Rt(arguments.length<=0?void 0:arguments[0]),Wn==null||Wn.apply(void 0,arguments)};return tt(oe.createElement(Ke.Z,{component:"Switch"},oe.createElement(Ve,Object.assign({},ct,{checked:En,onChange:yn,prefixCls:he,className:en,style:Sn,disabled:Ie,ref:At,loadingIcon:We}))))});Fe.__ANT_SWITCH=!0;var Zt=Fe},96599:function(gr,zn,pe){"use strict";pe.d(zn,{default:function(){return lt}});var oe=pe(59301),qt=pe(92310),Xe=pe.n(qt),Ht=pe(2738),rt=pe(29509),at=pe(78776),Dt=pe(22703),Me=pe(12919),Pe=pe(48755),ce=pe(36237),ke=pe(17835),Le=pe(63356),Ve=pe(51636),Ke=pe(16931);const He=Fe=>{const{paddingXXS:Zt,lineWidth:$e,tagPaddingHorizontal:At,componentCls:Qt,calc:Te}=Fe,xe=Te(At).sub($e).equal(),It=Te(Zt).sub($e).equal();return{[Qt]:Object.assign(Object.assign({},(0,Le.Wf)(Fe)),{display:"inline-block",height:"auto",marginInlineEnd:Fe.marginXS,paddingInline:xe,fontSize:Fe.tagFontSize,lineHeight:Fe.tagLineHeight,whiteSpace:"nowrap",background:Fe.defaultBg,border:`${(0,ce.unit)(Fe.lineWidth)} ${Fe.lineType} ${Fe.colorBorder}`,borderRadius:Fe.borderRadiusSM,opacity:1,transition:`all ${Fe.motionDurationMid}`,textAlign:"start",position:"relative",[`&${Qt}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:Fe.defaultColor},[`${Qt}-close-icon`]:{marginInlineStart:It,fontSize:Fe.tagIconSize,color:Fe.colorTextDescription,cursor:"pointer",transition:`all ${Fe.motionDurationMid}`,"&:hover":{color:Fe.colorTextHeading}},[`&${Qt}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${Fe.iconCls}-close, ${Fe.iconCls}-close:hover`]:{color:Fe.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${Qt}-checkable-checked):hover`]:{color:Fe.colorPrimary,backgroundColor:Fe.colorFillSecondary},"&:active, &-checked":{color:Fe.colorTextLightSolid},"&-checked":{backgroundColor:Fe.colorPrimary,"&:hover":{backgroundColor:Fe.colorPrimaryHover}},"&:active":{backgroundColor:Fe.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${Fe.iconCls} + span, > span + ${Fe.iconCls}`]:{marginInlineStart:xe}}),[`${Qt}-borderless`]:{borderColor:"transparent",background:Fe.tagBorderlessBg}}},Ge=Fe=>{const{lineWidth:Zt,fontSizeIcon:$e,calc:At}=Fe,Qt=Fe.fontSizeSM;return(0,Ve.mergeToken)(Fe,{tagFontSize:Qt,tagLineHeight:(0,ce.unit)(At(Fe.lineHeightSM).mul(Qt).equal()),tagIconSize:At($e).sub(At(Zt).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:Fe.defaultBg})},ze=Fe=>({defaultBg:new ke.FastColor(Fe.colorFillQuaternary).onBackground(Fe.colorBgContainer).toHexString(),defaultColor:Fe.colorText});var qe=(0,Ke.I$)("Tag",Fe=>{const Zt=Ge(Fe);return He(Zt)},ze),pt=function(Fe,Zt){var $e={};for(var At in Fe)Object.prototype.hasOwnProperty.call(Fe,At)&&Zt.indexOf(At)<0&&($e[At]=Fe[At]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qt=0,At=Object.getOwnPropertySymbols(Fe);Qt<At.length;Qt++)Zt.indexOf(At[Qt])<0&&Object.prototype.propertyIsEnumerable.call(Fe,At[Qt])&&($e[At[Qt]]=Fe[At[Qt]]);return $e},vt=oe.forwardRef((Fe,Zt)=>{const{prefixCls:$e,style:At,className:Qt,checked:Te,onChange:xe,onClick:It}=Fe,Cn=pt(Fe,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:mn,tag:Ze}=oe.useContext(Pe.E_),Ct=En=>{xe==null||xe(!Te),It==null||It(En)},_t=mn("tag",$e),[In,xn,Wn]=qe(_t),ct=Xe()(_t,`${_t}-checkable`,{[`${_t}-checkable-checked`]:Te},Ze==null?void 0:Ze.className,Qt,xn,Wn);return In(oe.createElement("span",Object.assign({},Cn,{ref:Zt,style:Object.assign(Object.assign({},At),Ze==null?void 0:Ze.style),className:ct,onClick:Ct})))}),yt=pe(93427);const Nt=Fe=>(0,yt.Z)(Fe,(Zt,$e)=>{let{textColor:At,lightBorderColor:Qt,lightColor:Te,darkColor:xe}=$e;return{[`${Fe.componentCls}${Fe.componentCls}-${Zt}`]:{color:At,background:Te,borderColor:Qt,"&-inverse":{color:Fe.colorTextLightSolid,background:xe,borderColor:xe},[`&${Fe.componentCls}-borderless`]:{borderColor:"transparent"}}}});var Et=(0,Ke.bk)(["Tag","preset"],Fe=>{const Zt=Ge(Fe);return Nt(Zt)},ze);function pn(Fe){return typeof Fe!="string"?Fe:Fe.charAt(0).toUpperCase()+Fe.slice(1)}const Pt=(Fe,Zt,$e)=>{const At=pn($e);return{[`${Fe.componentCls}${Fe.componentCls}-${Zt}`]:{color:Fe[`color${$e}`],background:Fe[`color${At}Bg`],borderColor:Fe[`color${At}Border`],[`&${Fe.componentCls}-borderless`]:{borderColor:"transparent"}}}};var St=(0,Ke.bk)(["Tag","status"],Fe=>{const Zt=Ge(Fe);return[Pt(Zt,"success","Success"),Pt(Zt,"processing","Info"),Pt(Zt,"error","Error"),Pt(Zt,"warning","Warning")]},ze),jt=function(Fe,Zt){var $e={};for(var At in Fe)Object.prototype.hasOwnProperty.call(Fe,At)&&Zt.indexOf(At)<0&&($e[At]=Fe[At]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qt=0,At=Object.getOwnPropertySymbols(Fe);Qt<At.length;Qt++)Zt.indexOf(At[Qt])<0&&Object.prototype.propertyIsEnumerable.call(Fe,At[Qt])&&($e[At[Qt]]=Fe[At[Qt]]);return $e};const wt=oe.forwardRef((Fe,Zt)=>{const{prefixCls:$e,className:At,rootClassName:Qt,style:Te,children:xe,icon:It,color:Cn,onClose:mn,bordered:Ze=!0,visible:Ct}=Fe,_t=jt(Fe,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:In,direction:xn,tag:Wn}=oe.useContext(Pe.E_),[ct,En]=oe.useState(!0),Rt=(0,Ht.Z)(_t,["closeIcon","closable"]);oe.useEffect(()=>{Ct!==void 0&&En(Ct)},[Ct]);const be=(0,rt.o2)(Cn),de=(0,rt.yT)(Cn),le=be||de,ye=Object.assign(Object.assign({backgroundColor:Cn&&!le?Cn:void 0},Wn==null?void 0:Wn.style),Te),Ie=In("tag",$e),[he,We,tt]=qe(Ie),dn=Xe()(Ie,Wn==null?void 0:Wn.className,{[`${Ie}-${Cn}`]:le,[`${Ie}-has-color`]:Cn&&!le,[`${Ie}-hidden`]:!ct,[`${Ie}-rtl`]:xn==="rtl",[`${Ie}-borderless`]:!Ze},At,Qt,We,tt),ut=Mt=>{Mt.stopPropagation(),mn==null||mn(Mt),!Mt.defaultPrevented&&En(!1)},[,zt]=(0,at.Z)((0,at.w)(Fe),(0,at.w)(Wn),{closable:!1,closeIconRender:Mt=>{const nn=oe.createElement("span",{className:`${Ie}-close-icon`,onClick:ut},Mt);return(0,Dt.wm)(Mt,nn,ln=>({onClick:Un=>{var Nn;(Nn=ln==null?void 0:ln.onClick)===null||Nn===void 0||Nn.call(ln,Un),ut(Un)},className:Xe()(ln==null?void 0:ln.className,`${Ie}-close-icon`)}))}}),en=typeof _t.onClick=="function"||xe&&xe.type==="a",Sn=It||null,yn=Sn?oe.createElement(oe.Fragment,null,Sn,xe&&oe.createElement("span",null,xe)):xe,ar=oe.createElement("span",Object.assign({},Rt,{ref:Zt,className:dn,style:ye}),yn,zt,be&&oe.createElement(Et,{key:"preset",prefixCls:Ie}),de&&oe.createElement(St,{key:"status",prefixCls:Ie}));return he(en?oe.createElement(Me.Z,{component:"Tag"},ar):ar)});wt.CheckableTag=vt;var lt=wt},99498:function(gr,zn,pe){(function(oe){oe(pe(89780))})(function(oe){oe.defineOption("placeholder","",function(Me,Pe,ce){var ke=ce&&ce!=oe.Init;if(Pe&&!ke)Me.on("blur",rt),Me.on("change",at),Me.on("swapDoc",at),oe.on(Me.getInputField(),"compositionupdate",Me.state.placeholderCompose=function(){Ht(Me)}),at(Me);else if(!Pe&&ke){Me.off("blur",rt),Me.off("change",at),Me.off("swapDoc",at),oe.off(Me.getInputField(),"compositionupdate",Me.state.placeholderCompose),qt(Me);var Le=Me.getWrapperElement();Le.className=Le.className.replace(" CodeMirror-empty","")}Pe&&!Me.hasFocus()&&rt(Me)});function qt(Me){Me.state.placeholder&&(Me.state.placeholder.parentNode.removeChild(Me.state.placeholder),Me.state.placeholder=null)}function Xe(Me){qt(Me);var Pe=Me.state.placeholder=document.createElement("pre");Pe.style.cssText="height: 0; overflow: visible",Pe.style.direction=Me.getOption("direction"),Pe.className="CodeMirror-placeholder CodeMirror-line-like";var ce=Me.getOption("placeholder");typeof ce=="string"&&(ce=document.createTextNode(ce)),Pe.appendChild(ce),Me.display.lineSpace.insertBefore(Pe,Me.display.lineSpace.firstChild)}function Ht(Me){setTimeout(function(){var Pe=!1,ce=Me.getInputField();ce.nodeName=="TEXTAREA"?Pe=!ce.value:Me.lineCount()==1&&(Pe=!/[^\u200b]/.test(ce.querySelector(".CodeMirror-line").textContent)),Pe?Xe(Me):qt(Me)},20)}function rt(Me){Dt(Me)&&Xe(Me)}function at(Me){var Pe=Me.getWrapperElement(),ce=Dt(Me);Pe.className=Pe.className.replace(" CodeMirror-empty","")+(ce?" CodeMirror-empty":""),ce?Xe(Me):qt(Me)}function Dt(Me){return Me.lineCount()===1&&Me.getLine(0)===""}})},25717:function(gr,zn,pe){(function(oe){oe(pe(89780))})(function(oe){var qt={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},Xe=oe.Pos;oe.defineOption("autoCloseBrackets",!1,function(He,Ge,ze){ze&&ze!=oe.Init&&(He.removeKeyMap(rt),He.state.closeBrackets=null),Ge&&(at(Ht(Ge,"pairs")),He.state.closeBrackets=Ge,He.addKeyMap(rt))});function Ht(He,Ge){return Ge=="pairs"&&typeof He=="string"?He:typeof He=="object"&&He[Ge]!=null?He[Ge]:qt[Ge]}var rt={Backspace:Pe,Enter:ce};function at(He){for(var Ge=0;Ge<He.length;Ge++){var ze=He.charAt(Ge),qe="'"+ze+"'";rt[qe]||(rt[qe]=Dt(ze))}}at(qt.pairs+"`");function Dt(He){return function(Ge){return Le(Ge,He)}}function Me(He){var Ge=He.state.closeBrackets;if(!Ge||Ge.override)return Ge;var ze=He.getModeAt(He.getCursor());return ze.closeBrackets||Ge}function Pe(He){var Ge=Me(He);if(!Ge||He.getOption("disableInput"))return oe.Pass;for(var ze=Ht(Ge,"pairs"),qe=He.listSelections(),pt=0;pt<qe.length;pt++){if(!qe[pt].empty())return oe.Pass;var Bt=Ve(He,qe[pt].head);if(!Bt||ze.indexOf(Bt)%2!=0)return oe.Pass}for(var pt=qe.length-1;pt>=0;pt--){var vt=qe[pt].head;He.replaceRange("",Xe(vt.line,vt.ch-1),Xe(vt.line,vt.ch+1),"+delete")}}function ce(He){var Ge=Me(He),ze=Ge&&Ht(Ge,"explode");if(!ze||He.getOption("disableInput"))return oe.Pass;for(var qe=He.listSelections(),pt=0;pt<qe.length;pt++){if(!qe[pt].empty())return oe.Pass;var Bt=Ve(He,qe[pt].head);if(!Bt||ze.indexOf(Bt)%2!=0)return oe.Pass}He.operation(function(){var vt=He.lineSeparator()||`
|
|
|
`;He.replaceSelection(vt+vt,null),He.execCommand("goCharLeft"),qe=He.listSelections();for(var yt=0;yt<qe.length;yt++){var Nt=qe[yt].head.line;He.indentLine(Nt,null,!0),He.indentLine(Nt+1,null,!0)}})}function ke(He){var Ge=oe.cmpPos(He.anchor,He.head)>0;return{anchor:new Xe(He.anchor.line,He.anchor.ch+(Ge?-1:1)),head:new Xe(He.head.line,He.head.ch+(Ge?1:-1))}}function Le(He,Ge){var ze=Me(He);if(!ze||He.getOption("disableInput"))return oe.Pass;var qe=Ht(ze,"pairs"),pt=qe.indexOf(Ge);if(pt==-1)return oe.Pass;for(var Bt=Ht(ze,"closeBefore"),vt=Ht(ze,"triples"),yt=qe.charAt(pt+1)==Ge,Nt=He.listSelections(),Et=pt%2==0,pn,Pt=0;Pt<Nt.length;Pt++){var St=Nt[Pt],jt=St.head,Je,wt=He.getRange(jt,Xe(jt.line,jt.ch+1));if(Et&&!St.empty())Je="surround";else if((yt||!Et)&&wt==Ge)yt&&Ke(He,jt)?Je="both":vt.indexOf(Ge)>=0&&He.getRange(jt,Xe(jt.line,jt.ch+3))==Ge+Ge+Ge?Je="skipThree":Je="skip";else if(yt&&jt.ch>1&&vt.indexOf(Ge)>=0&&He.getRange(Xe(jt.line,jt.ch-2),jt)==Ge+Ge){if(jt.ch>2&&/\bstring/.test(He.getTokenTypeAt(Xe(jt.line,jt.ch-2))))return oe.Pass;Je="addFour"}else if(yt){var lt=jt.ch==0?" ":He.getRange(Xe(jt.line,jt.ch-1),jt);if(!oe.isWordChar(wt)&<!=Ge&&!oe.isWordChar(lt))Je="both";else return oe.Pass}else if(Et&&(wt.length===0||/\s/.test(wt)||Bt.indexOf(wt)>-1))Je="both";else return oe.Pass;if(!pn)pn=Je;else if(pn!=Je)return oe.Pass}var Fe=pt%2?qe.charAt(pt-1):Ge,Zt=pt%2?Ge:qe.charAt(pt+1);He.operation(function(){if(pn=="skip")He.execCommand("goCharRight");else if(pn=="skipThree")for(var $e=0;$e<3;$e++)He.execCommand("goCharRight");else if(pn=="surround"){for(var At=He.getSelections(),$e=0;$e<At.length;$e++)At[$e]=Fe+At[$e]+Zt;He.replaceSelections(At,"around"),At=He.listSelections().slice();for(var $e=0;$e<At.length;$e++)At[$e]=ke(At[$e]);He.setSelections(At)}else pn=="both"?(He.replaceSelection(Fe+Zt,null),He.triggerElectric(Fe+Zt),He.execCommand("goCharLeft")):pn=="addFour"&&(He.replaceSelection(Fe+Fe+Fe+Fe,"before"),He.execCommand("goCharRight"))})}function Ve(He,Ge){var ze=He.getRange(Xe(Ge.line,Ge.ch-1),Xe(Ge.line,Ge.ch+1));return ze.length==2?ze:null}function Ke(He,Ge){var ze=He.getTokenAt(Xe(Ge.line,Ge.ch+1));return/\bstring/.test(ze.type)&&ze.start==Ge.ch&&(Ge.ch==0||!/\bstring/.test(He.getTokenTypeAt(Ge)))}})},6313:function(gr,zn,pe){(function(oe){oe(pe(89780),pe(32855))})(function(oe){oe.defineOption("autoCloseTags",!1,function(Pe,ce,ke){if(ke!=oe.Init&&ke&&Pe.removeKeyMap("autoCloseTags"),!!ce){var Le={name:"autoCloseTags"};(typeof ce!="object"||ce.whenClosing!==!1)&&(Le["'/'"]=function(Ve){return at(Ve)}),(typeof ce!="object"||ce.whenOpening!==!1)&&(Le["'>'"]=function(Ve){return Ht(Ve)}),Pe.addKeyMap(Le)}});var qt=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],Xe=["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 Ht(Pe){if(Pe.getOption("disableInput"))return oe.Pass;for(var ce=Pe.listSelections(),ke=[],Le=Pe.getOption("autoCloseTags"),Ve=0;Ve<ce.length;Ve++){if(!ce[Ve].empty())return oe.Pass;var Ke=ce[Ve].head,He=Pe.getTokenAt(Ke),Ge=oe.innerMode(Pe.getMode(),He.state),ze=Ge.state,qe=Ge.mode.xmlCurrentTag&&Ge.mode.xmlCurrentTag(ze),pt=qe&&qe.name;if(!pt)return oe.Pass;var Bt=Ge.mode.configuration=="html",vt=typeof Le=="object"&&Le.dontCloseTags||Bt&&qt,yt=typeof Le=="object"&&Le.indentTags||Bt&&Xe;He.end>Ke.ch&&(pt=pt.slice(0,pt.length-He.end+Ke.ch));var Nt=pt.toLowerCase();if(!pt||He.type=="string"&&(He.end!=Ke.ch||!/[\"\']/.test(He.string.charAt(He.string.length-1))||He.string.length==1)||He.type=="tag"&&qe.close||He.string.indexOf("/")==Ke.ch-He.start-1||vt&&Dt(vt,Nt)>-1||Me(Pe,Ge.mode.xmlCurrentContext&&Ge.mode.xmlCurrentContext(ze)||[],pt,Ke,!0))return oe.Pass;var Et=typeof Le=="object"&&Le.emptyTags;if(Et&&Dt(Et,pt)>-1){ke[Ve]={text:"/>",newPos:oe.Pos(Ke.line,Ke.ch+2)};continue}var pn=yt&&Dt(yt,Nt)>-1;ke[Ve]={indent:pn,text:">"+(pn?`
|
|
|
|
|
|
`:"")+"</"+pt+">",newPos:pn?oe.Pos(Ke.line+1,0):oe.Pos(Ke.line,Ke.ch+1)}}for(var Pt=typeof Le=="object"&&Le.dontIndentOnAutoClose,Ve=ce.length-1;Ve>=0;Ve--){var St=ke[Ve];Pe.replaceRange(St.text,ce[Ve].head,ce[Ve].anchor,"+insert");var jt=Pe.listSelections().slice(0);jt[Ve]={head:St.newPos,anchor:St.newPos},Pe.setSelections(jt),!Pt&&St.indent&&(Pe.indentLine(St.newPos.line,null,!0),Pe.indentLine(St.newPos.line+1,null,!0))}}function rt(Pe,ce){for(var ke=Pe.listSelections(),Le=[],Ve=ce?"/":"</",Ke=Pe.getOption("autoCloseTags"),He=typeof Ke=="object"&&Ke.dontIndentOnSlash,Ge=0;Ge<ke.length;Ge++){if(!ke[Ge].empty())return oe.Pass;var ze=ke[Ge].head,qe=Pe.getTokenAt(ze),pt=oe.innerMode(Pe.getMode(),qe.state),Bt=pt.state;if(ce&&(qe.type=="string"||qe.string.charAt(0)!="<"||qe.start!=ze.ch-1))return oe.Pass;var vt,yt=pt.mode.name!="xml"&&Pe.getMode().name=="htmlmixed";if(yt&&pt.mode.name=="javascript")vt=Ve+"script";else if(yt&&pt.mode.name=="css")vt=Ve+"style";else{var Nt=pt.mode.xmlCurrentContext&&pt.mode.xmlCurrentContext(Bt);if(!Nt||Nt.length&&Me(Pe,Nt,Nt[Nt.length-1],ze))return oe.Pass;vt=Ve+Nt[Nt.length-1]}Pe.getLine(ze.line).charAt(qe.end)!=">"&&(vt+=">"),Le[Ge]=vt}if(Pe.replaceSelections(Le),ke=Pe.listSelections(),!He)for(var Ge=0;Ge<ke.length;Ge++)(Ge==ke.length-1||ke[Ge].head.line<ke[Ge+1].head.line)&&Pe.indentLine(ke[Ge].head.line)}function at(Pe){return Pe.getOption("disableInput")?oe.Pass:rt(Pe,!0)}oe.commands.closeTag=function(Pe){return rt(Pe)};function Dt(Pe,ce){if(Pe.indexOf)return Pe.indexOf(ce);for(var ke=0,Le=Pe.length;ke<Le;++ke)if(Pe[ke]==ce)return ke;return-1}function Me(Pe,ce,ke,Le,Ve){if(!oe.scanForClosingTag)return!1;var Ke=Math.min(Pe.lastLine()+1,Le.line+500),He=oe.scanForClosingTag(Pe,Le,null,Ke);if(!He||He.tag!=ke)return!1;for(var Ge=Ve?1:0,ze=ce.length-1;ze>=0&&ce[ze]==ke;ze--)++Ge;Le=He.to;for(var ze=1;ze<Ge;ze++){var qe=oe.scanForClosingTag(Pe,Le,null,Ke);if(!qe||qe.tag!=ke)return!1;Le=qe.to}return!0}})},32855:function(gr,zn,pe){(function(oe){oe(pe(89780))})(function(oe){"use strict";var qt=oe.Pos;function Xe(ze,qe){return ze.line-qe.line||ze.ch-qe.ch}var Ht="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",rt=Ht+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",at=new RegExp("<(/?)(["+Ht+"]["+rt+"]*)","g");function Dt(ze,qe,pt,Bt){this.line=qe,this.ch=pt,this.cm=ze,this.text=ze.getLine(qe),this.min=Bt?Math.max(Bt.from,ze.firstLine()):ze.firstLine(),this.max=Bt?Math.min(Bt.to-1,ze.lastLine()):ze.lastLine()}function Me(ze,qe){var pt=ze.cm.getTokenTypeAt(qt(ze.line,qe));return pt&&/\btag\b/.test(pt)}function Pe(ze){if(!(ze.line>=ze.max))return ze.ch=0,ze.text=ze.cm.getLine(++ze.line),!0}function ce(ze){if(!(ze.line<=ze.min))return ze.text=ze.cm.getLine(--ze.line),ze.ch=ze.text.length,!0}function ke(ze){for(;;){var qe=ze.text.indexOf(">",ze.ch);if(qe==-1){if(Pe(ze))continue;return}if(!Me(ze,qe+1)){ze.ch=qe+1;continue}var pt=ze.text.lastIndexOf("/",qe),Bt=pt>-1&&!/\S/.test(ze.text.slice(pt+1,qe));return ze.ch=qe+1,Bt?"selfClose":"regular"}}function Le(ze){for(;;){var qe=ze.ch?ze.text.lastIndexOf("<",ze.ch-1):-1;if(qe==-1){if(ce(ze))continue;return}if(!Me(ze,qe+1)){ze.ch=qe;continue}at.lastIndex=qe,ze.ch=qe;var pt=at.exec(ze.text);if(pt&&pt.index==qe)return pt}}function Ve(ze){for(;;){at.lastIndex=ze.ch;var qe=at.exec(ze.text);if(!qe){if(Pe(ze))continue;return}if(!Me(ze,qe.index+1)){ze.ch=qe.index+1;continue}return ze.ch=qe.index+qe[0].length,qe}}function Ke(ze){for(;;){var qe=ze.ch?ze.text.lastIndexOf(">",ze.ch-1):-1;if(qe==-1){if(ce(ze))continue;return}if(!Me(ze,qe+1)){ze.ch=qe;continue}var pt=ze.text.lastIndexOf("/",qe),Bt=pt>-1&&!/\S/.test(ze.text.slice(pt+1,qe));return ze.ch=qe+1,Bt?"selfClose":"regular"}}function He(ze,qe){for(var pt=[];;){var Bt=Ve(ze),vt,yt=ze.line,Nt=ze.ch-(Bt?Bt[0].length:0);if(!Bt||!(vt=ke(ze)))return;if(vt!="selfClose")if(Bt[1]){for(var Et=pt.length-1;Et>=0;--Et)if(pt[Et]==Bt[2]){pt.length=Et;break}if(Et<0&&(!qe||qe==Bt[2]))return{tag:Bt[2],from:qt(yt,Nt),to:qt(ze.line,ze.ch)}}else pt.push(Bt[2])}}function Ge(ze,qe){for(var pt=[];;){var Bt=Ke(ze);if(!Bt)return;if(Bt=="selfClose"){Le(ze);continue}var vt=ze.line,yt=ze.ch,Nt=Le(ze);if(!Nt)return;if(Nt[1])pt.push(Nt[2]);else{for(var Et=pt.length-1;Et>=0;--Et)if(pt[Et]==Nt[2]){pt.length=Et;break}if(Et<0&&(!qe||qe==Nt[2]))return{tag:Nt[2],from:qt(ze.line,ze.ch),to:qt(vt,yt)}}}}oe.registerHelper("fold","xml",function(ze,qe){for(var pt=new Dt(ze,qe.line,0);;){var Bt=Ve(pt);if(!Bt||pt.line!=qe.line)return;var vt=ke(pt);if(!vt)return;if(!Bt[1]&&vt!="selfClose"){var yt=qt(pt.line,pt.ch),Nt=He(pt,Bt[2]);return Nt&&Xe(Nt.from,yt)>0?{from:yt,to:Nt.from}:null}}}),oe.findMatchingTag=function(ze,qe,pt){var Bt=new Dt(ze,qe.line,qe.ch,pt);if(!(Bt.text.indexOf(">")==-1&&Bt.text.indexOf("<")==-1)){var vt=ke(Bt),yt=vt&&qt(Bt.line,Bt.ch),Nt=vt&&Le(Bt);if(!(!vt||!Nt||Xe(Bt,qe)>0)){var Et={from:qt(Bt.line,Bt.ch),to:yt,tag:Nt[2]};return vt=="selfClose"?{open:Et,close:null,at:"open"}:Nt[1]?{open:Ge(Bt,Nt[2]),close:Et,at:"close"}:(Bt=new Dt(ze,yt.line,yt.ch,pt),{open:Et,close:He(Bt,Nt[2]),at:"open"})}}},oe.findEnclosingTag=function(ze,qe,pt,Bt){for(var vt=new Dt(ze,qe.line,qe.ch,pt);;){var yt=Ge(vt,Bt);if(!yt)break;var Nt=new Dt(ze,qe.line,qe.ch,pt),Et=He(Nt,yt.tag);if(Et)return{open:yt,close:Et}}},oe.scanForClosingTag=function(ze,qe,pt,Bt){var vt=new Dt(ze,qe.line,qe.ch,Bt?{from:0,to:Bt}:null);return He(vt,pt)}})},89780:function(gr){(function(zn,pe){gr.exports=pe()})(this,function(){"use strict";var zn=navigator.userAgent,pe=navigator.platform,oe=/gecko\/\d/i.test(zn),qt=/MSIE \d/.test(zn),Xe=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(zn),Ht=/Edge\/(\d+)/.exec(zn),rt=qt||Xe||Ht,at=rt&&(qt?document.documentMode||6:+(Ht||Xe)[1]),Dt=!Ht&&/WebKit\//.test(zn),Me=Dt&&/Qt\/\d+\.\d+/.test(zn),Pe=!Ht&&/Chrome\//.test(zn),ce=/Opera\//.test(zn),ke=/Apple Computer/.test(navigator.vendor),Le=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(zn),Ve=/PhantomJS/.test(zn),Ke=!Ht&&/AppleWebKit/.test(zn)&&/Mobile\/\w+/.test(zn),He=/Android/.test(zn),Ge=Ke||He||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(zn),ze=Ke||/Mac/.test(pe),qe=/\bCrOS\b/.test(zn),pt=/win/i.test(pe),Bt=ce&&zn.match(/Version\/(\d*\.\d*)/);Bt&&(Bt=Number(Bt[1])),Bt&&Bt>=15&&(ce=!1,Dt=!0);var vt=ze&&(Me||ce&&(Bt==null||Bt<12.11)),yt=oe||rt&&at>=9;function Nt(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var Et=function(a,b){var ee=a.className,z=Nt(b).exec(ee);if(z){var ne=ee.slice(z.index+z[0].length);a.className=ee.slice(0,z.index)+(ne?z[1]+ne:"")}};function pn(a){for(var b=a.childNodes.length;b>0;--b)a.removeChild(a.firstChild);return a}function Pt(a,b){return pn(a).appendChild(b)}function St(a,b,ee,z){var ne=document.createElement(a);if(ee&&(ne.className=ee),z&&(ne.style.cssText=z),typeof b=="string")ne.appendChild(document.createTextNode(b));else if(b)for(var me=0;me<b.length;++me)ne.appendChild(b[me]);return ne}function jt(a,b,ee,z){var ne=St(a,b,ee,z);return ne.setAttribute("role","presentation"),ne}var Je;document.createRange?Je=function(a,b,ee,z){var ne=document.createRange();return ne.setEnd(z||a,ee),ne.setStart(a,b),ne}:Je=function(a,b,ee){var z=document.body.createTextRange();try{z.moveToElementText(a.parentNode)}catch(ne){return z}return z.collapse(!0),z.moveEnd("character",ee),z.moveStart("character",b),z};function wt(a,b){if(b.nodeType==3&&(b=b.parentNode),a.contains)return a.contains(b);do if(b.nodeType==11&&(b=b.host),b==a)return!0;while(b=b.parentNode)}function lt(){var a;try{a=document.activeElement}catch(b){a=document.body||null}for(;a&&a.shadowRoot&&a.shadowRoot.activeElement;)a=a.shadowRoot.activeElement;return a}function Fe(a,b){var ee=a.className;Nt(b).test(ee)||(a.className+=(ee?" ":"")+b)}function Zt(a,b){for(var ee=a.split(" "),z=0;z<ee.length;z++)ee[z]&&!Nt(ee[z]).test(b)&&(b+=" "+ee[z]);return b}var $e=function(a){a.select()};Ke?$e=function(a){a.selectionStart=0,a.selectionEnd=a.value.length}:rt&&($e=function(a){try{a.select()}catch(b){}});function At(a){var b=Array.prototype.slice.call(arguments,1);return function(){return a.apply(null,b)}}function Qt(a,b,ee){b||(b={});for(var z in a)a.hasOwnProperty(z)&&(ee!==!1||!b.hasOwnProperty(z))&&(b[z]=a[z]);return b}function Te(a,b,ee,z,ne){b==null&&(b=a.search(/[^\s\u00a0]/),b==-1&&(b=a.length));for(var me=z||0,Se=ne||0;;){var Qe=a.indexOf(" ",me);if(Qe<0||Qe>=b)return Se+(b-me);Se+=Qe-me,Se+=ee-Se%ee,me=Qe+1}}var xe=function(){this.id=null,this.f=null,this.time=0,this.handler=At(this.onTimeout,this)};xe.prototype.onTimeout=function(a){a.id=0,a.time<=+new Date?a.f():setTimeout(a.handler,a.time-+new Date)},xe.prototype.set=function(a,b){this.f=b;var ee=+new Date+a;(!this.id||ee<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,a),this.time=ee)};function It(a,b){for(var ee=0;ee<a.length;++ee)if(a[ee]==b)return ee;return-1}var Cn=50,mn={toString:function(){return"CodeMirror.Pass"}},Ze={scroll:!1},Ct={origin:"*mouse"},_t={origin:"+move"};function In(a,b,ee){for(var z=0,ne=0;;){var me=a.indexOf(" ",z);me==-1&&(me=a.length);var Se=me-z;if(me==a.length||ne+Se>=b)return z+Math.min(Se,b-ne);if(ne+=me-z,ne+=ee-ne%ee,z=me+1,ne>=b)return z}}var xn=[""];function Wn(a){for(;xn.length<=a;)xn.push(ct(xn)+" ");return xn[a]}function ct(a){return a[a.length-1]}function En(a,b){for(var ee=[],z=0;z<a.length;z++)ee[z]=b(a[z],z);return ee}function Rt(a,b,ee){for(var z=0,ne=ee(b);z<a.length&&ee(a[z])<=ne;)z++;a.splice(z,0,b)}function be(){}function de(a,b){var ee;return Object.create?ee=Object.create(a):(be.prototype=a,ee=new be),b&&Qt(b,ee),ee}var le=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function ye(a){return/\w/.test(a)||a>"\x80"&&(a.toUpperCase()!=a.toLowerCase()||le.test(a))}function Ie(a,b){return b?b.source.indexOf("\\w")>-1&&ye(a)?!0:b.test(a):ye(a)}function he(a){for(var b in a)if(a.hasOwnProperty(b)&&a[b])return!1;return!0}var We=/[\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 tt(a){return a.charCodeAt(0)>=768&&We.test(a)}function dn(a,b,ee){for(;(ee<0?b>0:b<a.length)&&tt(a.charAt(b));)b+=ee;return b}function ut(a,b,ee){for(var z=b>ee?-1:1;;){if(b==ee)return b;var ne=(b+ee)/2,me=z<0?Math.ceil(ne):Math.floor(ne);if(me==b)return a(me)?b:ee;a(me)?ee=me:b=me+z}}function zt(a,b,ee,z){if(!a)return z(b,ee,"ltr",0);for(var ne=!1,me=0;me<a.length;++me){var Se=a[me];(Se.from<ee&&Se.to>b||b==ee&&Se.to==b)&&(z(Math.max(Se.from,b),Math.min(Se.to,ee),Se.level==1?"rtl":"ltr",me),ne=!0)}ne||z(b,ee,"ltr")}var en=null;function Sn(a,b,ee){var z;en=null;for(var ne=0;ne<a.length;++ne){var me=a[ne];if(me.from<b&&me.to>b)return ne;me.to==b&&(me.from!=me.to&&ee=="before"?z=ne:en=ne),me.from==b&&(me.from!=me.to&&ee!="before"?z=ne:en=ne)}return z!=null?z:en}var yn=function(){var a="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",b="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ee(Ye){return Ye<=247?a.charAt(Ye):1424<=Ye&&Ye<=1524?"R":1536<=Ye&&Ye<=1785?b.charAt(Ye-1536):1774<=Ye&&Ye<=2220?"r":8192<=Ye&&Ye<=8203?"w":Ye==8204?"b":"L"}var z=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,ne=/[stwN]/,me=/[LRr]/,Se=/[Lb1n]/,Qe=/[1n]/;function Re(Ye,rn,gn){this.level=Ye,this.from=rn,this.to=gn}return function(Ye,rn){var gn=rn=="ltr"?"L":"R";if(Ye.length==0||rn=="ltr"&&!z.test(Ye))return!1;for(var tr=Ye.length,$n=[],Nr=0;Nr<tr;++Nr)$n.push(ee(Ye.charCodeAt(Nr)));for(var ni=0,di=gn;ni<tr;++ni){var Ci=$n[ni];Ci=="m"?$n[ni]=di:di=Ci}for(var Ui=0,Ei=gn;Ui<tr;++Ui){var Hi=$n[Ui];Hi=="1"&&Ei=="r"?$n[Ui]="n":me.test(Hi)&&(Ei=Hi,Hi=="r"&&($n[Ui]="R"))}for(var lo=1,Ji=$n[0];lo<tr-1;++lo){var yo=$n[lo];yo=="+"&&Ji=="1"&&$n[lo+1]=="1"?$n[lo]="1":yo==","&&Ji==$n[lo+1]&&(Ji=="1"||Ji=="n")&&($n[lo]=Ji),Ji=yo}for(var ja=0;ja<tr;++ja){var Os=$n[ja];if(Os==",")$n[ja]="N";else if(Os=="%"){var ts=void 0;for(ts=ja+1;ts<tr&&$n[ts]=="%";++ts);for(var uA=ja&&$n[ja-1]=="!"||ts<tr&&$n[ts]=="1"?"1":"N",Rs=ja;Rs<ts;++Rs)$n[Rs]=uA;ja=ts-1}}for(var Ss=0,cA=gn;Ss<tr;++Ss){var Vs=$n[Ss];cA=="L"&&Vs=="1"?$n[Ss]="L":me.test(Vs)&&(cA=Vs)}for(var Bi=0;Bi<tr;++Bi)if(ne.test($n[Bi])){var Ya=void 0;for(Ya=Bi+1;Ya<tr&&ne.test($n[Ya]);++Ya);for(var ns=(Bi?$n[Bi-1]:gn)=="L",rs=(Ya<tr?$n[Ya]:gn)=="L",Rc=ns==rs?ns?"L":"R":gn,ha=Bi;ha<Ya;++ha)$n[ha]=Rc;Bi=Ya-1}for(var ta=[],nl,Zs=0;Zs<tr;)if(Se.test($n[Zs])){var Tf=Zs;for(++Zs;Zs<tr&&Se.test($n[Zs]);++Zs);ta.push(new Re(0,Tf,Zs))}else{var fo=Zs,ml=ta.length,Pa=rn=="rtl"?1:0;for(++Zs;Zs<tr&&$n[Zs]!="L";++Zs);for(var $s=fo;$s<Zs;)if(Qe.test($n[$s])){fo<$s&&(ta.splice(ml,0,new Re(1,fo,$s)),ml+=Pa);var Nu=$s;for(++$s;$s<Zs&&Qe.test($n[$s]);++$s);ta.splice(ml,0,new Re(2,Nu,$s)),ml+=Pa,fo=$s}else++$s;fo<Zs&&ta.splice(ml,0,new Re(1,fo,Zs))}return rn=="ltr"&&(ta[0].level==1&&(nl=Ye.match(/^\s+/))&&(ta[0].from=nl[0].length,ta.unshift(new Re(0,0,nl[0].length))),ct(ta).level==1&&(nl=Ye.match(/\s+$/))&&(ct(ta).to-=nl[0].length,ta.push(new Re(0,tr-nl[0].length,tr)))),rn=="rtl"?ta.reverse():ta}}();function ar(a,b){var ee=a.order;return ee==null&&(ee=a.order=yn(a.text,b)),ee}var Mt=[],nn=function(a,b,ee){if(a.addEventListener)a.addEventListener(b,ee,!1);else if(a.attachEvent)a.attachEvent("on"+b,ee);else{var z=a._handlers||(a._handlers={});z[b]=(z[b]||Mt).concat(ee)}};function ln(a,b){return a._handlers&&a._handlers[b]||Mt}function Un(a,b,ee){if(a.removeEventListener)a.removeEventListener(b,ee,!1);else if(a.detachEvent)a.detachEvent("on"+b,ee);else{var z=a._handlers,ne=z&&z[b];if(ne){var me=It(ne,ee);me>-1&&(z[b]=ne.slice(0,me).concat(ne.slice(me+1)))}}}function Nn(a,b){var ee=ln(a,b);if(ee.length)for(var z=Array.prototype.slice.call(arguments,2),ne=0;ne<ee.length;++ne)ee[ne].apply(null,z)}function un(a,b,ee){return typeof b=="string"&&(b={type:b,preventDefault:function(){this.defaultPrevented=!0}}),Nn(a,ee||b.type,a,b),Jn(b)||b.codemirrorIgnore}function ir(a){var b=a._handlers&&a._handlers.cursorActivity;if(b)for(var ee=a.curOp.cursorActivityHandlers||(a.curOp.cursorActivityHandlers=[]),z=0;z<b.length;++z)It(ee,b[z])==-1&&ee.push(b[z])}function Xn(a,b){return ln(a,b).length>0}function Ft(a){a.prototype.on=function(b,ee){nn(this,b,ee)},a.prototype.off=function(b,ee){Un(this,b,ee)}}function An(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function Qn(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function Jn(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function nt(a){An(a),Qn(a)}function gt(a){return a.target||a.srcElement}function Kt(a){var b=a.which;return b==null&&(a.button&1?b=1:a.button&2?b=3:a.button&4&&(b=2)),ze&&a.ctrlKey&&b==1&&(b=3),b}var vn=function(){if(rt&&at<9)return!1;var a=St("div");return"draggable"in a||"dragDrop"in a}(),Rn;function hr(a){if(Rn==null){var b=St("span","\u200B");Pt(a,St("span",[b,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(Rn=b.offsetWidth<=1&&b.offsetHeight>2&&!(rt&&at<8))}var ee=Rn?St("span","\u200B"):St("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ee.setAttribute("cm-text",""),ee}var $r;function Xr(a){if($r!=null)return $r;var b=Pt(a,document.createTextNode("A\u062EA")),ee=Je(b,0,1).getBoundingClientRect(),z=Je(b,1,2).getBoundingClientRect();return pn(a),!ee||ee.left==ee.right?!1:$r=z.right-ee.right<3}var vr=`
|
|
|
|
|
|
b`.split(/\n/).length!=3?function(a){for(var b=0,ee=[],z=a.length;b<=z;){var ne=a.indexOf(`
|
|
|
`,b);ne==-1&&(ne=a.length);var me=a.slice(b,a.charAt(ne-1)=="\r"?ne-1:ne),Se=me.indexOf("\r");Se!=-1?(ee.push(me.slice(0,Se)),b+=Se+1):(ee.push(me),b=ne+1)}return ee}:function(a){return a.split(/\r\n?|\n/)},lr=window.getSelection?function(a){try{return a.selectionStart!=a.selectionEnd}catch(b){return!1}}:function(a){var b;try{b=a.ownerDocument.selection.createRange()}catch(ee){}return!b||b.parentElement()!=a?!1:b.compareEndPoints("StartToEnd",b)!=0},Dr=function(){var a=St("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),rr=null;function Tn(a){if(rr!=null)return rr;var b=Pt(a,St("span","x")),ee=b.getBoundingClientRect(),z=Je(b,0,1).getBoundingClientRect();return rr=Math.abs(ee.left-z.left)>1}var _n={},Ln={};function mr(a,b){arguments.length>2&&(b.dependencies=Array.prototype.slice.call(arguments,2)),_n[a]=b}function cr(a,b){Ln[a]=b}function pr(a){if(typeof a=="string"&&Ln.hasOwnProperty(a))a=Ln[a];else if(a&&typeof a.name=="string"&&Ln.hasOwnProperty(a.name)){var b=Ln[a.name];typeof b=="string"&&(b={name:b}),a=de(b,a),a.name=b.name}else{if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(a))return pr("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return pr("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function Rr(a,b){b=pr(b);var ee=_n[b.name];if(!ee)return Rr(a,"text/plain");var z=ee(a,b);if(Wr.hasOwnProperty(b.name)){var ne=Wr[b.name];for(var me in ne)ne.hasOwnProperty(me)&&(z.hasOwnProperty(me)&&(z["_"+me]=z[me]),z[me]=ne[me])}if(z.name=b.name,b.helperType&&(z.helperType=b.helperType),b.modeProps)for(var Se in b.modeProps)z[Se]=b.modeProps[Se];return z}var Wr={};function Gr(a,b){var ee=Wr.hasOwnProperty(a)?Wr[a]:Wr[a]={};Qt(b,ee)}function ai(a,b){if(b===!0)return b;if(a.copyState)return a.copyState(b);var ee={};for(var z in b){var ne=b[z];ne instanceof Array&&(ne=ne.concat([])),ee[z]=ne}return ee}function ti(a,b){for(var ee;a.innerMode&&(ee=a.innerMode(b),!(!ee||ee.mode==a));)b=ee.state,a=ee.mode;return ee||{mode:a,state:b}}function xi(a,b,ee){return a.startState?a.startState(b,ee):!0}var mi=function(a,b,ee){this.pos=this.start=0,this.string=a,this.tabSize=b||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=ee};mi.prototype.eol=function(){return this.pos>=this.string.length},mi.prototype.sol=function(){return this.pos==this.lineStart},mi.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},mi.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},mi.prototype.eat=function(a){var b=this.string.charAt(this.pos),ee;if(typeof a=="string"?ee=b==a:ee=b&&(a.test?a.test(b):a(b)),ee)return++this.pos,b},mi.prototype.eatWhile=function(a){for(var b=this.pos;this.eat(a););return this.pos>b},mi.prototype.eatSpace=function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},mi.prototype.skipToEnd=function(){this.pos=this.string.length},mi.prototype.skipTo=function(a){var b=this.string.indexOf(a,this.pos);if(b>-1)return this.pos=b,!0},mi.prototype.backUp=function(a){this.pos-=a},mi.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Te(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Te(this.string,this.lineStart,this.tabSize):0)},mi.prototype.indentation=function(){return Te(this.string,null,this.tabSize)-(this.lineStart?Te(this.string,this.lineStart,this.tabSize):0)},mi.prototype.match=function(a,b,ee){if(typeof a=="string"){var z=function(Se){return ee?Se.toLowerCase():Se},ne=this.string.substr(this.pos,a.length);if(z(ne)==z(a))return b!==!1&&(this.pos+=a.length),!0}else{var me=this.string.slice(this.pos).match(a);return me&&me.index>0?null:(me&&b!==!1&&(this.pos+=me[0].length),me)}},mi.prototype.current=function(){return this.string.slice(this.start,this.pos)},mi.prototype.hideFirstChars=function(a,b){this.lineStart+=a;try{return b()}finally{this.lineStart-=a}},mi.prototype.lookAhead=function(a){var b=this.lineOracle;return b&&b.lookAhead(a)},mi.prototype.baseToken=function(){var a=this.lineOracle;return a&&a.baseToken(this.pos)};function Xt(a,b){if(b-=a.first,b<0||b>=a.size)throw new Error("There is no line "+(b+a.first)+" in the document.");for(var ee=a;!ee.lines;)for(var z=0;;++z){var ne=ee.children[z],me=ne.chunkSize();if(b<me){ee=ne;break}b-=me}return ee.lines[b]}function Kn(a,b,ee){var z=[],ne=b.line;return a.iter(b.line,ee.line+1,function(me){var Se=me.text;ne==ee.line&&(Se=Se.slice(0,ee.ch)),ne==b.line&&(Se=Se.slice(b.ch)),z.push(Se),++ne}),z}function Lr(a,b,ee){var z=[];return a.iter(b,ee,function(ne){z.push(ne.text)}),z}function wr(a,b){var ee=b-a.height;if(ee)for(var z=a;z;z=z.parent)z.height+=ee}function Lt(a){if(a.parent==null)return null;for(var b=a.parent,ee=It(b.lines,a),z=b.parent;z;b=z,z=z.parent)for(var ne=0;z.children[ne]!=b;++ne)ee+=z.children[ne].chunkSize();return ee+b.first}function Vt(a,b){var ee=a.first;e:do{for(var z=0;z<a.children.length;++z){var ne=a.children[z],me=ne.height;if(b<me){a=ne;continue e}b-=me,ee+=ne.chunkSize()}return ee}while(!a.lines);for(var Se=0;Se<a.lines.length;++Se){var Qe=a.lines[Se],Re=Qe.height;if(b<Re)break;b-=Re}return ee+Se}function ot(a,b){return b>=a.first&&b<a.first+a.size}function kt(a,b){return String(a.lineNumberFormatter(b+a.firstLineNumber))}function ft(a,b,ee){if(ee===void 0&&(ee=null),!(this instanceof ft))return new ft(a,b,ee);this.line=a,this.ch=b,this.sticky=ee}function Gt(a,b){return a.line-b.line||a.ch-b.ch}function Fn(a,b){return a.sticky==b.sticky&&Gt(a,b)==0}function xr(a){return ft(a.line,a.ch)}function Or(a,b){return Gt(a,b)<0?b:a}function kr(a,b){return Gt(a,b)<0?a:b}function dr(a,b){return Math.max(a.first,Math.min(b,a.first+a.size-1))}function Zn(a,b){if(b.line<a.first)return ft(a.first,0);var ee=a.first+a.size-1;return b.line>ee?ft(ee,Xt(a,ee).text.length):Mn(b,Xt(a,b.line).text.length)}function Mn(a,b){var ee=a.ch;return ee==null||ee>b?ft(a.line,b):ee<0?ft(a.line,0):a}function Ur(a,b){for(var ee=[],z=0;z<b.length;z++)ee[z]=Zn(a,b[z]);return ee}var si=function(a,b){this.state=a,this.lookAhead=b},ei=function(a,b,ee,z){this.state=b,this.doc=a,this.line=ee,this.maxLookAhead=z||0,this.baseTokens=null,this.baseTokenPos=1};ei.prototype.lookAhead=function(a){var b=this.doc.getLine(this.line+a);return b!=null&&a>this.maxLookAhead&&(this.maxLookAhead=a),b},ei.prototype.baseToken=function(a){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=a;)this.baseTokenPos+=2;var b=this.baseTokens[this.baseTokenPos+1];return{type:b&&b.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-a}},ei.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ei.fromSaved=function(a,b,ee){return b instanceof si?new ei(a,ai(a.mode,b.state),ee,b.lookAhead):new ei(a,ai(a.mode,b),ee)},ei.prototype.save=function(a){var b=a!==!1?ai(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new si(b,this.maxLookAhead):b};function Ai(a,b,ee,z){var ne=[a.state.modeGen],me={};Zi(a,b.text,a.doc.mode,ee,function(Ye,rn){return ne.push(Ye,rn)},me,z);for(var Se=ee.state,Qe=function(Ye){ee.baseTokens=ne;var rn=a.state.overlays[Ye],gn=1,tr=0;ee.state=!0,Zi(a,b.text,rn.mode,ee,function($n,Nr){for(var ni=gn;tr<$n;){var di=ne[gn];di>$n&&ne.splice(gn,1,$n,ne[gn+1],di),gn+=2,tr=Math.min($n,di)}if(Nr)if(rn.opaque)ne.splice(ni,gn-ni,$n,"overlay "+Nr),gn=ni+2;else for(;ni<gn;ni+=2){var Ci=ne[ni+1];ne[ni+1]=(Ci?Ci+" ":"")+"overlay "+Nr}},me),ee.state=Se,ee.baseTokens=null,ee.baseTokenPos=1},Re=0;Re<a.state.overlays.length;++Re)Qe(Re);return{styles:ne,classes:me.bgClass||me.textClass?me:null}}function Ki(a,b,ee){if(!b.styles||b.styles[0]!=a.state.modeGen){var z=Vi(a,Lt(b)),ne=b.text.length>a.options.maxHighlightLength&&ai(a.doc.mode,z.state),me=Ai(a,b,z);ne&&(z.state=ne),b.stateAfter=z.save(!ne),b.styles=me.styles,me.classes?b.styleClasses=me.classes:b.styleClasses&&(b.styleClasses=null),ee===a.doc.highlightFrontier&&(a.doc.modeFrontier=Math.max(a.doc.modeFrontier,++a.doc.highlightFrontier))}return b.styles}function Vi(a,b,ee){var z=a.doc,ne=a.display;if(!z.mode.startState)return new ei(z,!0,b);var me=co(a,b,ee),Se=me>z.first&&Xt(z,me-1).stateAfter,Qe=Se?ei.fromSaved(z,Se,me):new ei(z,xi(z.mode),me);return z.iter(me,b,function(Re){eo(a,Re.text,Qe);var Ye=Qe.line;Re.stateAfter=Ye==b-1||Ye%5==0||Ye>=ne.viewFrom&&Ye<ne.viewTo?Qe.save():null,Qe.nextLine()}),ee&&(z.modeFrontier=Qe.line),Qe}function eo(a,b,ee,z){var ne=a.doc.mode,me=new mi(b,a.options.tabSize,ee);for(me.start=me.pos=z||0,b==""&&Di(ne,ee.state);!me.eol();)bi(ne,me,ee.state),me.start=me.pos}function Di(a,b){if(a.blankLine)return a.blankLine(b);if(a.innerMode){var ee=ti(a,b);if(ee.mode.blankLine)return ee.mode.blankLine(ee.state)}}function bi(a,b,ee,z){for(var ne=0;ne<10;ne++){z&&(z[0]=ti(a,ee).mode);var me=a.token(b,ee);if(b.pos>b.start)return me}throw new Error("Mode "+a.name+" failed to advance stream.")}var Fi=function(a,b,ee){this.start=a.start,this.end=a.pos,this.string=a.current(),this.type=b||null,this.state=ee};function ki(a,b,ee,z){var ne=a.doc,me=ne.mode,Se;b=Zn(ne,b);var Qe=Xt(ne,b.line),Re=Vi(a,b.line,ee),Ye=new mi(Qe.text,a.options.tabSize,Re),rn;for(z&&(rn=[]);(z||Ye.pos<b.ch)&&!Ye.eol();)Ye.start=Ye.pos,Se=bi(me,Ye,Re.state),z&&rn.push(new Fi(Ye,Se,ai(ne.mode,Re.state)));return z?rn:new Fi(Ye,Se,Re.state)}function uo(a,b){if(a)for(;;){var ee=a.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!ee)break;a=a.slice(0,ee.index)+a.slice(ee.index+ee[0].length);var z=ee[1]?"bgClass":"textClass";b[z]==null?b[z]=ee[2]:new RegExp("(?:^|\\s)"+ee[2]+"(?:$|\\s)").test(b[z])||(b[z]+=" "+ee[2])}return a}function Zi(a,b,ee,z,ne,me,Se){var Qe=ee.flattenSpans;Qe==null&&(Qe=a.options.flattenSpans);var Re=0,Ye=null,rn=new mi(b,a.options.tabSize,z),gn,tr=a.options.addModeClass&&[null];for(b==""&&uo(Di(ee,z.state),me);!rn.eol();){if(rn.pos>a.options.maxHighlightLength?(Qe=!1,Se&&eo(a,b,z,rn.pos),rn.pos=b.length,gn=null):gn=uo(bi(ee,rn,z.state,tr),me),tr){var $n=tr[0].name;$n&&(gn="m-"+(gn?$n+" "+gn:$n))}if(!Qe||Ye!=gn){for(;Re<rn.start;)Re=Math.min(rn.start,Re+5e3),ne(Re,Ye);Ye=gn}rn.start=rn.pos}for(;Re<rn.pos;){var Nr=Math.min(rn.pos,Re+5e3);ne(Nr,Ye),Re=Nr}}function co(a,b,ee){for(var z,ne,me=a.doc,Se=ee?-1:b-(a.doc.mode.innerMode?1e3:100),Qe=b;Qe>Se;--Qe){if(Qe<=me.first)return me.first;var Re=Xt(me,Qe-1),Ye=Re.stateAfter;if(Ye&&(!ee||Qe+(Ye instanceof si?Ye.lookAhead:0)<=me.modeFrontier))return Qe;var rn=Te(Re.text,null,a.options.tabSize);(ne==null||z>rn)&&(ne=Qe-1,z=rn)}return ne}function oo(a,b){if(a.modeFrontier=Math.min(a.modeFrontier,b),!(a.highlightFrontier<b-10)){for(var ee=a.first,z=b-1;z>ee;z--){var ne=Xt(a,z).stateAfter;if(ne&&(!(ne instanceof si)||z+ne.lookAhead<b)){ee=z+1;break}}a.highlightFrontier=Math.min(a.highlightFrontier,ee)}}var Yi=!1,Xi=!1;function Oo(){Yi=!0}function go(){Xi=!0}function bo(a,b,ee){this.marker=a,this.from=b,this.to=ee}function Po(a,b){if(a)for(var ee=0;ee<a.length;++ee){var z=a[ee];if(z.marker==b)return z}}function Ho(a,b){for(var ee,z=0;z<a.length;++z)a[z]!=b&&(ee||(ee=[])).push(a[z]);return ee}function $i(a,b){a.markedSpans=a.markedSpans?a.markedSpans.concat([b]):[b],b.marker.attachLine(a)}function Bo(a,b,ee){var z;if(a)for(var ne=0;ne<a.length;++ne){var me=a[ne],Se=me.marker,Qe=me.from==null||(Se.inclusiveLeft?me.from<=b:me.from<b);if(Qe||me.from==b&&Se.type=="bookmark"&&(!ee||!me.marker.insertLeft)){var Re=me.to==null||(Se.inclusiveRight?me.to>=b:me.to>b);(z||(z=[])).push(new bo(Se,me.from,Re?null:me.to))}}return z}function Pi(a,b,ee){var z;if(a)for(var ne=0;ne<a.length;++ne){var me=a[ne],Se=me.marker,Qe=me.to==null||(Se.inclusiveRight?me.to>=b:me.to>b);if(Qe||me.from==b&&Se.type=="bookmark"&&(!ee||me.marker.insertLeft)){var Re=me.from==null||(Se.inclusiveLeft?me.from<=b:me.from<b);(z||(z=[])).push(new bo(Se,Re?null:me.from-b,me.to==null?null:me.to-b))}}return z}function Ko(a,b){if(b.full)return null;var ee=ot(a,b.from.line)&&Xt(a,b.from.line).markedSpans,z=ot(a,b.to.line)&&Xt(a,b.to.line).markedSpans;if(!ee&&!z)return null;var ne=b.from.ch,me=b.to.ch,Se=Gt(b.from,b.to)==0,Qe=Bo(ee,ne,Se),Re=Pi(z,me,Se),Ye=b.text.length==1,rn=ct(b.text).length+(Ye?ne:0);if(Qe)for(var gn=0;gn<Qe.length;++gn){var tr=Qe[gn];if(tr.to==null){var $n=Po(Re,tr.marker);$n?Ye&&(tr.to=$n.to==null?null:$n.to+rn):tr.to=ne}}if(Re)for(var Nr=0;Nr<Re.length;++Nr){var ni=Re[Nr];if(ni.to!=null&&(ni.to+=rn),ni.from==null){var di=Po(Qe,ni.marker);di||(ni.from=rn,Ye&&(Qe||(Qe=[])).push(ni))}else ni.from+=rn,Ye&&(Qe||(Qe=[])).push(ni)}Qe&&(Qe=Ua(Qe)),Re&&Re!=Qe&&(Re=Ua(Re));var Ci=[Qe];if(!Ye){var Ui=b.text.length-2,Ei;if(Ui>0&&Qe)for(var Hi=0;Hi<Qe.length;++Hi)Qe[Hi].to==null&&(Ei||(Ei=[])).push(new bo(Qe[Hi].marker,null,null));for(var lo=0;lo<Ui;++lo)Ci.push(Ei);Ci.push(Re)}return Ci}function Ua(a){for(var b=0;b<a.length;++b){var ee=a[b];ee.from!=null&&ee.from==ee.to&&ee.marker.clearWhenEmpty!==!1&&a.splice(b--,1)}return a.length?a:null}function Oa(a,b,ee){var z=null;if(a.iter(b.line,ee.line+1,function($n){if($n.markedSpans)for(var Nr=0;Nr<$n.markedSpans.length;++Nr){var ni=$n.markedSpans[Nr].marker;ni.readOnly&&(!z||It(z,ni)==-1)&&(z||(z=[])).push(ni)}}),!z)return null;for(var ne=[{from:b,to:ee}],me=0;me<z.length;++me)for(var Se=z[me],Qe=Se.find(0),Re=0;Re<ne.length;++Re){var Ye=ne[Re];if(!(Gt(Ye.to,Qe.from)<0||Gt(Ye.from,Qe.to)>0)){var rn=[Re,1],gn=Gt(Ye.from,Qe.from),tr=Gt(Ye.to,Qe.to);(gn<0||!Se.inclusiveLeft&&!gn)&&rn.push({from:Ye.from,to:Qe.from}),(tr>0||!Se.inclusiveRight&&!tr)&&rn.push({from:Qe.to,to:Ye.to}),ne.splice.apply(ne,rn),Re+=rn.length-3}}return ne}function Jo(a){var b=a.markedSpans;if(b){for(var ee=0;ee<b.length;++ee)b[ee].marker.detachLine(a);a.markedSpans=null}}function Vo(a,b){if(b){for(var ee=0;ee<b.length;++ee)b[ee].marker.attachLine(a);a.markedSpans=b}}function qo(a){return a.inclusiveLeft?-1:0}function ma(a){return a.inclusiveRight?1:0}function Ma(a,b){var ee=a.lines.length-b.lines.length;if(ee!=0)return ee;var z=a.find(),ne=b.find(),me=Gt(z.from,ne.from)||qo(a)-qo(b);if(me)return-me;var Se=Gt(z.to,ne.to)||ma(a)-ma(b);return Se||b.id-a.id}function mo(a,b){var ee=Xi&&a.markedSpans,z;if(ee)for(var ne=void 0,me=0;me<ee.length;++me)ne=ee[me],ne.marker.collapsed&&(b?ne.from:ne.to)==null&&(!z||Ma(z,ne.marker)<0)&&(z=ne.marker);return z}function Ti(a){return mo(a,!0)}function Pr(a){return mo(a,!1)}function jr(a,b){var ee=Xi&&a.markedSpans,z;if(ee)for(var ne=0;ne<ee.length;++ne){var me=ee[ne];me.marker.collapsed&&(me.from==null||me.from<b)&&(me.to==null||me.to>b)&&(!z||Ma(z,me.marker)<0)&&(z=me.marker)}return z}function Vr(a,b,ee,z,ne){var me=Xt(a,b),Se=Xi&&me.markedSpans;if(Se)for(var Qe=0;Qe<Se.length;++Qe){var Re=Se[Qe];if(Re.marker.collapsed){var Ye=Re.marker.find(0),rn=Gt(Ye.from,ee)||qo(Re.marker)-qo(ne),gn=Gt(Ye.to,z)||ma(Re.marker)-ma(ne);if(!(rn>=0&&gn<=0||rn<=0&&gn>=0)&&(rn<=0&&(Re.marker.inclusiveRight&&ne.inclusiveLeft?Gt(Ye.to,ee)>=0:Gt(Ye.to,ee)>0)||rn>=0&&(Re.marker.inclusiveRight&&ne.inclusiveLeft?Gt(Ye.from,z)<=0:Gt(Ye.from,z)<0)))return!0}}}function Sr(a){for(var b;b=Ti(a);)a=b.find(-1,!0).line;return a}function hi(a){for(var b;b=Pr(a);)a=b.find(1,!0).line;return a}function Ii(a){for(var b,ee;b=Pr(a);)a=b.find(1,!0).line,(ee||(ee=[])).push(a);return ee}function Fr(a,b){var ee=Xt(a,b),z=Sr(ee);return ee==z?b:Lt(z)}function zr(a,b){if(b>a.lastLine())return b;var ee=Xt(a,b),z;if(!fi(a,ee))return b;for(;z=Pr(ee);)ee=z.find(1,!0).line;return Lt(ee)+1}function fi(a,b){var ee=Xi&&b.markedSpans;if(ee){for(var z=void 0,ne=0;ne<ee.length;++ne)if(z=ee[ne],!!z.marker.collapsed){if(z.from==null)return!0;if(!z.marker.widgetNode&&z.from==0&&z.marker.inclusiveLeft&&vi(a,b,z))return!0}}}function vi(a,b,ee){if(ee.to==null){var z=ee.marker.find(1,!0);return vi(a,z.line,Po(z.line.markedSpans,ee.marker))}if(ee.marker.inclusiveRight&&ee.to==b.text.length)return!0;for(var ne=void 0,me=0;me<b.markedSpans.length;++me)if(ne=b.markedSpans[me],ne.marker.collapsed&&!ne.marker.widgetNode&&ne.from==ee.to&&(ne.to==null||ne.to!=ee.from)&&(ne.marker.inclusiveLeft||ee.marker.inclusiveRight)&&vi(a,b,ne))return!0}function to(a){a=Sr(a);for(var b=0,ee=a.parent,z=0;z<ee.lines.length;++z){var ne=ee.lines[z];if(ne==a)break;b+=ne.height}for(var me=ee.parent;me;ee=me,me=ee.parent)for(var Se=0;Se<me.children.length;++Se){var Qe=me.children[Se];if(Qe==ee)break;b+=Qe.height}return b}function Zo(a){if(a.height==0)return 0;for(var b=a.text.length,ee,z=a;ee=Ti(z);){var ne=ee.find(0,!0);z=ne.from.line,b+=ne.from.ch-ne.to.ch}for(z=a;ee=Pr(z);){var me=ee.find(0,!0);b-=z.text.length-me.from.ch,z=me.to.line,b+=z.text.length-me.to.ch}return b}function Do(a){var b=a.display,ee=a.doc;b.maxLine=Xt(ee,ee.first),b.maxLineLength=Zo(b.maxLine),b.maxLineChanged=!0,ee.iter(function(z){var ne=Zo(z);ne>b.maxLineLength&&(b.maxLineLength=ne,b.maxLine=z)})}var ra=function(a,b,ee){this.text=a,Vo(this,b),this.height=ee?ee(this):1};ra.prototype.lineNo=function(){return Lt(this)},Ft(ra);function ea(a,b,ee,z){a.text=b,a.stateAfter&&(a.stateAfter=null),a.styles&&(a.styles=null),a.order!=null&&(a.order=null),Jo(a),Vo(a,ee);var ne=z?z(a):1;ne!=a.height&&wr(a,ne)}function va(a){a.parent=null,Jo(a)}var Aa={},Ro={};function Ia(a,b){if(!a||/^\s*$/.test(a))return null;var ee=b.addModeClass?Ro:Aa;return ee[a]||(ee[a]=a.replace(/\S+/g,"cm-$&"))}function qa(a,b){var ee=jt("span",null,null,Dt?"padding-right: .1px":null),z={pre:jt("pre",[ee],"CodeMirror-line"),content:ee,col:0,pos:0,cm:a,trailingSpace:!1,splitSpaces:a.getOption("lineWrapping")};b.measure={};for(var ne=0;ne<=(b.rest?b.rest.length:0);ne++){var me=ne?b.rest[ne-1]:b.line,Se=void 0;z.pos=0,z.addToken=EA,Xr(a.display.measure)&&(Se=ar(me,a.doc.direction))&&(z.addToken=eA(z.addToken,Se)),z.map=[];var Qe=b!=a.display.externalMeasured&&Lt(me);ya(me,z,Ki(a,me,Qe)),me.styleClasses&&(me.styleClasses.bgClass&&(z.bgClass=Zt(me.styleClasses.bgClass,z.bgClass||"")),me.styleClasses.textClass&&(z.textClass=Zt(me.styleClasses.textClass,z.textClass||""))),z.map.length==0&&z.map.push(0,0,z.content.appendChild(hr(a.display.measure))),ne==0?(b.measure.map=z.map,b.measure.cache={}):((b.measure.maps||(b.measure.maps=[])).push(z.map),(b.measure.caches||(b.measure.caches=[])).push({}))}if(Dt){var Re=z.content.lastChild;(/\bcm-tab\b/.test(Re.className)||Re.querySelector&&Re.querySelector(".cm-tab"))&&(z.content.className="cm-tab-wrap-hack")}return Nn(a,"renderLine",a,b.line,z.pre),z.pre.className&&(z.textClass=Zt(z.pre.className,z.textClass||"")),z}function mA(a){var b=St("span","\u2022","cm-invalidchar");return b.title="\\u"+a.charCodeAt(0).toString(16),b.setAttribute("aria-label",b.title),b}function EA(a,b,ee,z,ne,me,Se){if(b){var Qe=a.splitSpaces?qs(b,a.trailingSpace):b,Re=a.cm.state.specialChars,Ye=!1,rn;if(!Re.test(b))a.col+=b.length,rn=document.createTextNode(Qe),a.map.push(a.pos,a.pos+b.length,rn),rt&&at<9&&(Ye=!0),a.pos+=b.length;else{rn=document.createDocumentFragment();for(var gn=0;;){Re.lastIndex=gn;var tr=Re.exec(b),$n=tr?tr.index-gn:b.length-gn;if($n){var Nr=document.createTextNode(Qe.slice(gn,gn+$n));rt&&at<9?rn.appendChild(St("span",[Nr])):rn.appendChild(Nr),a.map.push(a.pos,a.pos+$n,Nr),a.col+=$n,a.pos+=$n}if(!tr)break;gn+=$n+1;var ni=void 0;if(tr[0]==" "){var di=a.cm.options.tabSize,Ci=di-a.col%di;ni=rn.appendChild(St("span",Wn(Ci),"cm-tab")),ni.setAttribute("role","presentation"),ni.setAttribute("cm-text"," "),a.col+=Ci}else tr[0]=="\r"||tr[0]==`
|
|
|
`?(ni=rn.appendChild(St("span",tr[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),ni.setAttribute("cm-text",tr[0]),a.col+=1):(ni=a.cm.options.specialCharPlaceholder(tr[0]),ni.setAttribute("cm-text",tr[0]),rt&&at<9?rn.appendChild(St("span",[ni])):rn.appendChild(ni),a.col+=1);a.map.push(a.pos,a.pos+1,ni),a.pos++}}if(a.trailingSpace=Qe.charCodeAt(b.length-1)==32,ee||z||ne||Ye||me||Se){var Ui=ee||"";z&&(Ui+=z),ne&&(Ui+=ne);var Ei=St("span",[rn],Ui,me);if(Se)for(var Hi in Se)Se.hasOwnProperty(Hi)&&Hi!="style"&&Hi!="class"&&Ei.setAttribute(Hi,Se[Hi]);return a.content.appendChild(Ei)}a.content.appendChild(rn)}}function qs(a,b){if(a.length>1&&!/ /.test(a))return a;for(var ee=b,z="",ne=0;ne<a.length;ne++){var me=a.charAt(ne);me==" "&&ee&&(ne==a.length-1||a.charCodeAt(ne+1)==32)&&(me="\xA0"),z+=me,ee=me==" "}return z}function eA(a,b){return function(ee,z,ne,me,Se,Qe,Re){ne=ne?ne+" cm-force-border":"cm-force-border";for(var Ye=ee.pos,rn=Ye+z.length;;){for(var gn=void 0,tr=0;tr<b.length&&(gn=b[tr],!(gn.to>Ye&&gn.from<=Ye));tr++);if(gn.to>=rn)return a(ee,z,ne,me,Se,Qe,Re);a(ee,z.slice(0,gn.to-Ye),ne,me,null,Qe,Re),me=null,z=z.slice(gn.to-Ye),Ye=gn.to}}}function Bl(a,b,ee,z){var ne=!z&&ee.widgetNode;ne&&a.map.push(a.pos,a.pos+b,ne),!z&&a.cm.display.input.needsContentAttribute&&(ne||(ne=a.content.appendChild(document.createElement("span"))),ne.setAttribute("cm-marker",ee.id)),ne&&(a.cm.display.input.setUneditable(ne),a.content.appendChild(ne)),a.pos+=b,a.trailingSpace=!1}function ya(a,b,ee){var z=a.markedSpans,ne=a.text,me=0;if(!z){for(var Se=1;Se<ee.length;Se+=2)b.addToken(b,ne.slice(me,me=ee[Se]),Ia(ee[Se+1],b.cm.options));return}for(var Qe=ne.length,Re=0,Ye=1,rn="",gn,tr,$n=0,Nr,ni,di,Ci,Ui;;){if($n==Re){Nr=ni=di=tr="",Ui=null,Ci=null,$n=1/0;for(var Ei=[],Hi=void 0,lo=0;lo<z.length;++lo){var Ji=z[lo],yo=Ji.marker;if(yo.type=="bookmark"&&Ji.from==Re&&yo.widgetNode)Ei.push(yo);else if(Ji.from<=Re&&(Ji.to==null||Ji.to>Re||yo.collapsed&&Ji.to==Re&&Ji.from==Re)){if(Ji.to!=null&&Ji.to!=Re&&$n>Ji.to&&($n=Ji.to,ni=""),yo.className&&(Nr+=" "+yo.className),yo.css&&(tr=(tr?tr+";":"")+yo.css),yo.startStyle&&Ji.from==Re&&(di+=" "+yo.startStyle),yo.endStyle&&Ji.to==$n&&(Hi||(Hi=[])).push(yo.endStyle,Ji.to),yo.title&&((Ui||(Ui={})).title=yo.title),yo.attributes)for(var ja in yo.attributes)(Ui||(Ui={}))[ja]=yo.attributes[ja];yo.collapsed&&(!Ci||Ma(Ci.marker,yo)<0)&&(Ci=Ji)}else Ji.from>Re&&$n>Ji.from&&($n=Ji.from)}if(Hi)for(var Os=0;Os<Hi.length;Os+=2)Hi[Os+1]==$n&&(ni+=" "+Hi[Os]);if(!Ci||Ci.from==Re)for(var ts=0;ts<Ei.length;++ts)Bl(b,0,Ei[ts]);if(Ci&&(Ci.from||0)==Re){if(Bl(b,(Ci.to==null?Qe+1:Ci.to)-Re,Ci.marker,Ci.from==null),Ci.to==null)return;Ci.to==Re&&(Ci=!1)}}if(Re>=Qe)break;for(var uA=Math.min(Qe,$n);;){if(rn){var Rs=Re+rn.length;if(!Ci){var Ss=Rs>uA?rn.slice(0,uA-Re):rn;b.addToken(b,Ss,gn?gn+Nr:Nr,di,Re+Ss.length==$n?ni:"",tr,Ui)}if(Rs>=uA){rn=rn.slice(uA-Re),Re=uA;break}Re=Rs,di=""}rn=ne.slice(me,me=ee[Ye++]),gn=Ia(ee[Ye++],b.cm.options)}}}function Cl(a,b,ee){this.line=b,this.rest=Ii(b),this.size=this.rest?Lt(ct(this.rest))-ee+1:1,this.node=this.text=null,this.hidden=fi(a,b)}function ws(a,b,ee){for(var z=[],ne,me=b;me<ee;me=ne){var Se=new Cl(a.doc,Xt(a.doc,me),me);ne=me+Se.size,z.push(Se)}return z}var tA=null;function bs(a){tA?tA.ops.push(a):a.ownsGroup=tA={ops:[a],delayedCallbacks:[]}}function Ts(a){var b=a.delayedCallbacks,ee=0;do{for(;ee<b.length;ee++)b[ee].call(null);for(var z=0;z<a.ops.length;z++){var ne=a.ops[z];if(ne.cursorActivityHandlers)for(;ne.cursorActivityCalled<ne.cursorActivityHandlers.length;)ne.cursorActivityHandlers[ne.cursorActivityCalled++].call(null,ne.cm)}}while(ee<b.length)}function nA(a,b){var ee=a.ownsGroup;if(ee)try{Ts(ee)}finally{tA=null,b(ee)}}var vA=null;function es(a,b){var ee=ln(a,b);if(ee.length){var z=Array.prototype.slice.call(arguments,2),ne;tA?ne=tA.delayedCallbacks:vA?ne=vA:(ne=vA=[],setTimeout(ZA,0));for(var me=function(Qe){ne.push(function(){return ee[Qe].apply(null,z)})},Se=0;Se<ee.length;++Se)me(Se)}}function ZA(){var a=vA;vA=null;for(var b=0;b<a.length;++b)a[b]()}function mu(a,b,ee,z){for(var ne=0;ne<b.changes.length;ne++){var me=b.changes[ne];me=="text"?kl(a,b):me=="gutter"?So(a,b,ee,z):me=="class"?io(a,b):me=="widget"&&vo(a,b,z)}b.changes=null}function ul(a){return a.node==a.text&&(a.node=St("div",null,null,"position: relative"),a.text.parentNode&&a.text.parentNode.replaceChild(a.node,a.text),a.node.appendChild(a.text),rt&&at<8&&(a.node.style.zIndex=2)),a.node}function ps(a,b){var ee=b.bgClass?b.bgClass+" "+(b.line.bgClass||""):b.line.bgClass;if(ee&&(ee+=" CodeMirror-linebackground"),b.background)ee?b.background.className=ee:(b.background.parentNode.removeChild(b.background),b.background=null);else if(ee){var z=ul(b);b.background=z.insertBefore(St("div",null,ee),z.firstChild),a.display.input.setUneditable(b.background)}}function vu(a,b){var ee=a.display.externalMeasured;return ee&&ee.line==b.line?(a.display.externalMeasured=null,b.measure=ee.measure,ee.built):qa(a,b)}function kl(a,b){var ee=b.text.className,z=vu(a,b);b.text==b.node&&(b.node=z.pre),b.text.parentNode.replaceChild(z.pre,b.text),b.text=z.pre,z.bgClass!=b.bgClass||z.textClass!=b.textClass?(b.bgClass=z.bgClass,b.textClass=z.textClass,io(a,b)):ee&&(b.text.className=ee)}function io(a,b){ps(a,b),b.line.wrapClass?ul(b).className=b.line.wrapClass:b.node!=b.text&&(b.node.className="");var ee=b.textClass?b.textClass+" "+(b.line.textClass||""):b.line.textClass;b.text.className=ee||""}function So(a,b,ee,z){if(b.gutter&&(b.node.removeChild(b.gutter),b.gutter=null),b.gutterBackground&&(b.node.removeChild(b.gutterBackground),b.gutterBackground=null),b.line.gutterClass){var ne=ul(b);b.gutterBackground=St("div",null,"CodeMirror-gutter-background "+b.line.gutterClass,"left: "+(a.options.fixedGutter?z.fixedPos:-z.gutterTotalWidth)+"px; width: "+z.gutterTotalWidth+"px"),a.display.input.setUneditable(b.gutterBackground),ne.insertBefore(b.gutterBackground,b.text)}var me=b.line.gutterMarkers;if(a.options.lineNumbers||me){var Se=ul(b),Qe=b.gutter=St("div",null,"CodeMirror-gutter-wrapper","left: "+(a.options.fixedGutter?z.fixedPos:-z.gutterTotalWidth)+"px");if(a.display.input.setUneditable(Qe),Se.insertBefore(Qe,b.text),b.line.gutterClass&&(Qe.className+=" "+b.line.gutterClass),a.options.lineNumbers&&(!me||!me["CodeMirror-linenumbers"])&&(b.lineNumber=Qe.appendChild(St("div",kt(a.options,ee),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+z.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+a.display.lineNumInnerWidth+"px"))),me)for(var Re=0;Re<a.display.gutterSpecs.length;++Re){var Ye=a.display.gutterSpecs[Re].className,rn=me.hasOwnProperty(Ye)&&me[Ye];rn&&Qe.appendChild(St("div",[rn],"CodeMirror-gutter-elt","left: "+z.gutterLeft[Ye]+"px; width: "+z.gutterWidth[Ye]+"px"))}}}function vo(a,b,ee){b.alignable&&(b.alignable=null);for(var z=Nt("CodeMirror-linewidget"),ne=b.node.firstChild,me=void 0;ne;ne=me)me=ne.nextSibling,z.test(ne.className)&&b.node.removeChild(ne);la(a,b,ee)}function Eo(a,b,ee,z){var ne=vu(a,b);return b.text=b.node=ne.pre,ne.bgClass&&(b.bgClass=ne.bgClass),ne.textClass&&(b.textClass=ne.textClass),io(a,b),So(a,b,ee,z),la(a,b,z),b.node}function la(a,b,ee){if(Da(a,b.line,b,ee,!0),b.rest)for(var z=0;z<b.rest.length;z++)Da(a,b.rest[z],b,ee,!1)}function Da(a,b,ee,z,ne){if(b.widgets)for(var me=ul(ee),Se=0,Qe=b.widgets;Se<Qe.length;++Se){var Re=Qe[Se],Ye=St("div",[Re.node],"CodeMirror-linewidget"+(Re.className?" "+Re.className:""));Re.handleMouseEvents||Ye.setAttribute("cm-ignore-events","true"),ua(Re,Ye,ee,z),a.display.input.setUneditable(Ye),ne&&Re.above?me.insertBefore(Ye,ee.gutter||ee.text):me.appendChild(Ye),es(Re,"redraw")}}function ua(a,b,ee,z){if(a.noHScroll){(ee.alignable||(ee.alignable=[])).push(b);var ne=z.wrapperWidth;b.style.left=z.fixedPos+"px",a.coverGutter||(ne-=z.gutterTotalWidth,b.style.paddingLeft=z.gutterTotalWidth+"px"),b.style.width=ne+"px"}a.coverGutter&&(b.style.zIndex=5,b.style.position="relative",a.noHScroll||(b.style.marginLeft=-z.gutterTotalWidth+"px"))}function rA(a){if(a.height!=null)return a.height;var b=a.doc.cm;if(!b)return 0;if(!wt(document.body,a.node)){var ee="position: relative;";a.coverGutter&&(ee+="margin-left: -"+b.display.gutters.offsetWidth+"px;"),a.noHScroll&&(ee+="width: "+b.display.wrapper.clientWidth+"px;"),Pt(b.display.measure,St("div",[a.node],null,ee))}return a.height=a.node.parentNode.offsetHeight}function Is(a,b){for(var ee=gt(b);ee!=a.wrapper;ee=ee.parentNode)if(!ee||ee.nodeType==1&&ee.getAttribute("cm-ignore-events")=="true"||ee.parentNode==a.sizer&&ee!=a.mover)return!0}function ls(a){return a.lineSpace.offsetTop}function iA(a){return a.mover.offsetHeight-a.lineSpace.offsetHeight}function Qs(a){if(a.cachedPaddingH)return a.cachedPaddingH;var b=Pt(a.measure,St("pre","x","CodeMirror-line-like")),ee=window.getComputedStyle?window.getComputedStyle(b):b.currentStyle,z={left:parseInt(ee.paddingLeft),right:parseInt(ee.paddingRight)};return!isNaN(z.left)&&!isNaN(z.right)&&(a.cachedPaddingH=z),z}function _A(a){return Cn-a.display.nativeBarWidth}function oA(a){return a.display.scroller.clientWidth-_A(a)-a.display.barWidth}function Za(a){return a.display.scroller.clientHeight-_A(a)-a.display.barHeight}function cl(a,b,ee){var z=a.options.lineWrapping,ne=z&&oA(a);if(!b.measure.heights||z&&b.measure.width!=ne){var me=b.measure.heights=[];if(z){b.measure.width=ne;for(var Se=b.text.firstChild.getClientRects(),Qe=0;Qe<Se.length-1;Qe++){var Re=Se[Qe],Ye=Se[Qe+1];Math.abs(Re.bottom-Ye.bottom)>2&&me.push((Re.bottom+Ye.top)/2-ee.top)}}me.push(ee.bottom-ee.top)}}function gs(a,b,ee){if(a.line==b)return{map:a.measure.map,cache:a.measure.cache};for(var z=0;z<a.rest.length;z++)if(a.rest[z]==b)return{map:a.measure.maps[z],cache:a.measure.caches[z]};for(var ne=0;ne<a.rest.length;ne++)if(Lt(a.rest[ne])>ee)return{map:a.measure.maps[ne],cache:a.measure.caches[ne],before:!0}}function Af(a,b){b=Sr(b);var ee=Lt(b),z=a.display.externalMeasured=new Cl(a.doc,b,ee);z.lineN=ee;var ne=z.built=qa(a,z);return z.text=ne.pre,Pt(a.display.lineMeasure,ne.pre),z}function xl(a,b,ee,z){return XA(a,da(a,b),ee,z)}function $A(a,b){if(b>=a.display.viewFrom&&b<a.display.viewTo)return a.display.view[Zu(a,b)];var ee=a.display.externalMeasured;if(ee&&b>=ee.lineN&&b<ee.lineN+ee.size)return ee}function da(a,b){var ee=Lt(b),z=$A(a,ee);z&&!z.text?z=null:z&&z.changes&&(mu(a,z,ee,Sl(a)),a.curOp.forceUpdate=!0),z||(z=Af(a,b));var ne=gs(z,b,ee);return{line:b,view:z,rect:null,map:ne.map,cache:ne.cache,before:ne.before,hasHeights:!1}}function XA(a,b,ee,z,ne){b.before&&(ee=-1);var me=ee+(z||""),Se;return b.cache.hasOwnProperty(me)?Se=b.cache[me]:(b.rect||(b.rect=b.view.text.getBoundingClientRect()),b.hasHeights||(cl(a,b.view,b.rect),b.hasHeights=!0),Se=YA(a,b,ee,z),Se.bogus||(b.cache[me]=Se)),{left:Se.left,right:Se.right,top:ne?Se.rtop:Se.top,bottom:ne?Se.rbottom:Se.bottom}}var lf={left:0,right:0,top:0,bottom:0};function rd(a,b,ee){for(var z,ne,me,Se,Qe,Re,Ye=0;Ye<a.length;Ye+=3)if(Qe=a[Ye],Re=a[Ye+1],b<Qe?(ne=0,me=1,Se="left"):b<Re?(ne=b-Qe,me=ne+1):(Ye==a.length-3||b==Re&&a[Ye+3]>b)&&(me=Re-Qe,ne=me-1,b>=Re&&(Se="right")),ne!=null){if(z=a[Ye+2],Qe==Re&&ee==(z.insertLeft?"left":"right")&&(Se=ee),ee=="left"&&ne==0)for(;Ye&&a[Ye-2]==a[Ye-3]&&a[Ye-1].insertLeft;)z=a[(Ye-=3)+2],Se="left";if(ee=="right"&&ne==Re-Qe)for(;Ye<a.length-3&&a[Ye+3]==a[Ye+4]&&!a[Ye+5].insertLeft;)z=a[(Ye+=3)+2],Se="right";break}return{node:z,start:ne,end:me,collapse:Se,coverStart:Qe,coverEnd:Re}}function Bs(a,b){var ee=lf;if(b=="left")for(var z=0;z<a.length&&(ee=a[z]).left==ee.right;z++);else for(var ne=a.length-1;ne>=0&&(ee=a[ne]).left==ee.right;ne--);return ee}function YA(a,b,ee,z){var ne=rd(b.map,ee,z),me=ne.node,Se=ne.start,Qe=ne.end,Re=ne.collapse,Ye;if(me.nodeType==3){for(var rn=0;rn<4;rn++){for(;Se&&tt(b.line.text.charAt(ne.coverStart+Se));)--Se;for(;ne.coverStart+Qe<ne.coverEnd&&tt(b.line.text.charAt(ne.coverStart+Qe));)++Qe;if(rt&&at<9&&Se==0&&Qe==ne.coverEnd-ne.coverStart?Ye=me.parentNode.getBoundingClientRect():Ye=Bs(Je(me,Se,Qe).getClientRects(),z),Ye.left||Ye.right||Se==0)break;Qe=Se,Se=Se-1,Re="right"}rt&&at<11&&(Ye=Hl(a.display.measure,Ye))}else{Se>0&&(Re=z="right");var gn;a.options.lineWrapping&&(gn=me.getClientRects()).length>1?Ye=gn[z=="right"?gn.length-1:0]:Ye=me.getBoundingClientRect()}if(rt&&at<9&&!Se&&(!Ye||!Ye.left&&!Ye.right)){var tr=me.parentNode.getClientRects()[0];tr?Ye={left:tr.left,right:tr.left+El(a.display),top:tr.top,bottom:tr.bottom}:Ye=lf}for(var $n=Ye.top-b.rect.top,Nr=Ye.bottom-b.rect.top,ni=($n+Nr)/2,di=b.view.measure.heights,Ci=0;Ci<di.length-1&&!(ni<di[Ci]);Ci++);var Ui=Ci?di[Ci-1]:0,Ei=di[Ci],Hi={left:(Re=="right"?Ye.right:Ye.left)-b.rect.left,right:(Re=="left"?Ye.left:Ye.right)-b.rect.left,top:Ui,bottom:Ei};return!Ye.left&&!Ye.right&&(Hi.bogus=!0),a.options.singleCursorHeightPerLine||(Hi.rtop=$n,Hi.rbottom=Nr),Hi}function Hl(a,b){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Tn(a))return b;var ee=screen.logicalXDPI/screen.deviceXDPI,z=screen.logicalYDPI/screen.deviceYDPI;return{left:b.left*ee,right:b.right*ee,top:b.top*z,bottom:b.bottom*z}}function Bc(a){if(a.measure&&(a.measure.cache={},a.measure.heights=null,a.rest))for(var b=0;b<a.rest.length;b++)a.measure.caches[b]={}}function Ks(a){a.display.externalMeasure=null,pn(a.display.lineMeasure);for(var b=0;b<a.display.view.length;b++)Bc(a.display.view[b])}function kA(a){Ks(a),a.display.cachedCharWidth=a.display.cachedTextHeight=a.display.cachedPaddingH=null,a.options.lineWrapping||(a.display.maxLineChanged=!0),a.display.lineNumChars=null}function Ms(){return Pe&&He?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Cs(){return Pe&&He?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function _s(a){var b=0;if(a.widgets)for(var ee=0;ee<a.widgets.length;++ee)a.widgets[ee].above&&(b+=rA(a.widgets[ee]));return b}function Gu(a,b,ee,z,ne){if(!ne){var me=_s(b);ee.top+=me,ee.bottom+=me}if(z=="line")return ee;z||(z="local");var Se=to(b);if(z=="local"?Se+=ls(a.display):Se-=a.display.viewOffset,z=="page"||z=="window"){var Qe=a.display.lineSpace.getBoundingClientRect();Se+=Qe.top+(z=="window"?0:Cs());var Re=Qe.left+(z=="window"?0:Ms());ee.left+=Re,ee.right+=Re}return ee.top+=Se,ee.bottom+=Se,ee}function uf(a,b,ee){if(ee=="div")return b;var z=b.left,ne=b.top;if(ee=="page")z-=Ms(),ne-=Cs();else if(ee=="local"||!ee){var me=a.display.sizer.getBoundingClientRect();z+=me.left,ne+=me.top}var Se=a.display.lineSpace.getBoundingClientRect();return{left:z-Se.left,top:ne-Se.top}}function ks(a,b,ee,z,ne){return z||(z=Xt(a.doc,b.line)),Gu(a,z,xl(a,z,b.ch,ne),ee)}function aA(a,b,ee,z,ne,me){z=z||Xt(a.doc,b.line),ne||(ne=da(a,z));function Se(Nr,ni){var di=XA(a,ne,Nr,ni?"right":"left",me);return ni?di.left=di.right:di.right=di.left,Gu(a,z,di,ee)}var Qe=ar(z,a.doc.direction),Re=b.ch,Ye=b.sticky;if(Re>=z.text.length?(Re=z.text.length,Ye="before"):Re<=0&&(Re=0,Ye="after"),!Qe)return Se(Ye=="before"?Re-1:Re,Ye=="before");function rn(Nr,ni,di){var Ci=Qe[ni],Ui=Ci.level==1;return Se(di?Nr-1:Nr,Ui!=di)}var gn=Sn(Qe,Re,Ye),tr=en,$n=rn(Re,gn,Ye=="before");return tr!=null&&($n.other=rn(Re,tr,Ye!="before")),$n}function Co(a,b){var ee=0;b=Zn(a.doc,b),a.options.lineWrapping||(ee=El(a.display)*b.ch);var z=Xt(a.doc,b.line),ne=to(z)+ls(a.display);return{left:ee,right:ee,top:ne,bottom:ne+z.height}}function Lo(a,b,ee,z,ne){var me=ft(a,b,ee);return me.xRel=ne,z&&(me.outside=z),me}function xa(a,b,ee){var z=a.doc;if(ee+=a.display.viewOffset,ee<0)return Lo(z.first,0,null,-1,-1);var ne=Vt(z,ee),me=z.first+z.size-1;if(ne>me)return Lo(z.first+z.size-1,Xt(z,me).text.length,null,1,1);b<0&&(b=0);for(var Se=Xt(z,ne);;){var Qe=fl(a,Se,ne,b,ee),Re=jr(Se,Qe.ch+(Qe.xRel>0||Qe.outside>0?1:0));if(!Re)return Qe;var Ye=Re.find(1);if(Ye.line==ne)return Ye;Se=Xt(z,ne=Ye.line)}}function sA(a,b,ee,z){z-=_s(b);var ne=b.text.length,me=ut(function(Se){return XA(a,ee,Se-1).bottom<=z},ne,0);return ne=ut(function(Se){return XA(a,ee,Se).top>z},me,ne),{begin:me,end:ne}}function us(a,b,ee,z){ee||(ee=da(a,b));var ne=Gu(a,b,XA(a,ee,z),"line").top;return sA(a,b,ee,ne)}function fs(a,b,ee,z){return a.bottom<=ee?!1:a.top>ee?!0:(z?a.left:a.right)>b}function fl(a,b,ee,z,ne){ne-=to(b);var me=da(a,b),Se=_s(b),Qe=0,Re=b.text.length,Ye=!0,rn=ar(b,a.doc.direction);if(rn){var gn=(a.options.lineWrapping?Vl:SA)(a,b,ee,me,rn,z,ne);Ye=gn.level!=1,Qe=Ye?gn.from:gn.to-1,Re=Ye?gn.to:gn.from-1}var tr=null,$n=null,Nr=ut(function(lo){var Ji=XA(a,me,lo);return Ji.top+=Se,Ji.bottom+=Se,fs(Ji,z,ne,!1)?(Ji.top<=ne&&Ji.left<=z&&(tr=lo,$n=Ji),!0):!1},Qe,Re),ni,di,Ci=!1;if($n){var Ui=z-$n.left<$n.right-z,Ei=Ui==Ye;Nr=tr+(Ei?0:1),di=Ei?"after":"before",ni=Ui?$n.left:$n.right}else{!Ye&&(Nr==Re||Nr==Qe)&&Nr++,di=Nr==0?"after":Nr==b.text.length?"before":XA(a,me,Nr-(Ye?1:0)).bottom+Se<=ne==Ye?"after":"before";var Hi=aA(a,ft(ee,Nr,di),"line",b,me);ni=Hi.left,Ci=ne<Hi.top?-1:ne>=Hi.bottom?1:0}return Nr=dn(b.text,Nr,1),Lo(ee,Nr,di,Ci,z-ni)}function SA(a,b,ee,z,ne,me,Se){var Qe=ut(function(gn){var tr=ne[gn],$n=tr.level!=1;return fs(aA(a,ft(ee,$n?tr.to:tr.from,$n?"before":"after"),"line",b,z),me,Se,!0)},0,ne.length-1),Re=ne[Qe];if(Qe>0){var Ye=Re.level!=1,rn=aA(a,ft(ee,Ye?Re.from:Re.to,Ye?"after":"before"),"line",b,z);fs(rn,me,Se,!0)&&rn.top>Se&&(Re=ne[Qe-1])}return Re}function Vl(a,b,ee,z,ne,me,Se){var Qe=sA(a,b,z,Se),Re=Qe.begin,Ye=Qe.end;/\s/.test(b.text.charAt(Ye-1))&&Ye--;for(var rn=null,gn=null,tr=0;tr<ne.length;tr++){var $n=ne[tr];if(!($n.from>=Ye||$n.to<=Re)){var Nr=$n.level!=1,ni=XA(a,z,Nr?Math.min(Ye,$n.to)-1:Math.max(Re,$n.from)).right,di=ni<me?me-ni+1e9:ni-me;(!rn||gn>di)&&(rn=$n,gn=di)}}return rn||(rn=ne[ne.length-1]),rn.from<Re&&(rn={from:Re,to:rn.to,level:rn.level}),rn.to>Ye&&(rn={from:rn.from,to:Ye,level:rn.level}),rn}var cs;function FA(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if(cs==null){cs=St("pre",null,"CodeMirror-line-like");for(var b=0;b<49;++b)cs.appendChild(document.createTextNode("x")),cs.appendChild(St("br"));cs.appendChild(document.createTextNode("x"))}Pt(a.measure,cs);var ee=cs.offsetHeight/50;return ee>3&&(a.cachedTextHeight=ee),pn(a.measure),ee||1}function El(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var b=St("span","xxxxxxxxxx"),ee=St("pre",[b],"CodeMirror-line-like");Pt(a.measure,ee);var z=b.getBoundingClientRect(),ne=(z.right-z.left)/10;return ne>2&&(a.cachedCharWidth=ne),ne||10}function Sl(a){for(var b=a.display,ee={},z={},ne=b.gutters.clientLeft,me=b.gutters.firstChild,Se=0;me;me=me.nextSibling,++Se){var Qe=a.display.gutterSpecs[Se].className;ee[Qe]=me.offsetLeft+me.clientLeft+ne,z[Qe]=me.clientWidth}return{fixedPos:Cc(b),gutterTotalWidth:b.gutters.offsetWidth,gutterLeft:ee,gutterWidth:z,wrapperWidth:b.wrapper.clientWidth}}function Cc(a){return a.scroller.getBoundingClientRect().left-a.sizer.getBoundingClientRect().left}function Yh(a){var b=FA(a.display),ee=a.options.lineWrapping,z=ee&&Math.max(5,a.display.scroller.clientWidth/El(a.display)-3);return function(ne){if(fi(a.doc,ne))return 0;var me=0;if(ne.widgets)for(var Se=0;Se<ne.widgets.length;Se++)ne.widgets[Se].height&&(me+=ne.widgets[Se].height);return ee?me+(Math.ceil(ne.text.length/z)||1)*b:me+b}}function id(a){var b=a.doc,ee=Yh(a);b.iter(function(z){var ne=ee(z);ne!=z.height&&wr(z,ne)})}function Vu(a,b,ee,z){var ne=a.display;if(!ee&>(b).getAttribute("cm-not-content")=="true")return null;var me,Se,Qe=ne.lineSpace.getBoundingClientRect();try{me=b.clientX-Qe.left,Se=b.clientY-Qe.top}catch(gn){return null}var Re=xa(a,me,Se),Ye;if(z&&Re.xRel>0&&(Ye=Xt(a.doc,Re.line).text).length==Re.ch){var rn=Te(Ye,Ye.length,a.options.tabSize)-Ye.length;Re=ft(Re.line,Math.max(0,Math.round((me-Qs(a.display).left)/El(a.display))-rn))}return Re}function Zu(a,b){if(b>=a.display.viewTo||(b-=a.display.viewFrom,b<0))return null;for(var ee=a.display.view,z=0;z<ee.length;z++)if(b-=ee[z].size,b<0)return z}function Ws(a,b,ee,z){b==null&&(b=a.doc.first),ee==null&&(ee=a.doc.first+a.doc.size),z||(z=0);var ne=a.display;if(z&&ee<ne.viewTo&&(ne.updateLineNumbers==null||ne.updateLineNumbers>b)&&(ne.updateLineNumbers=b),a.curOp.viewChanged=!0,b>=ne.viewTo)Xi&&Fr(a.doc,b)<ne.viewTo&&$l(a);else if(ee<=ne.viewFrom)Xi&&zr(a.doc,ee+z)>ne.viewFrom?$l(a):(ne.viewFrom+=z,ne.viewTo+=z);else if(b<=ne.viewFrom&&ee>=ne.viewTo)$l(a);else if(b<=ne.viewFrom){var me=cf(a,ee,ee+z,1);me?(ne.view=ne.view.slice(me.index),ne.viewFrom=me.lineN,ne.viewTo+=z):$l(a)}else if(ee>=ne.viewTo){var Se=cf(a,b,b,-1);Se?(ne.view=ne.view.slice(0,Se.index),ne.viewTo=Se.lineN):$l(a)}else{var Qe=cf(a,b,b,-1),Re=cf(a,ee,ee+z,1);Qe&&Re?(ne.view=ne.view.slice(0,Qe.index).concat(ws(a,Qe.lineN,Re.lineN)).concat(ne.view.slice(Re.index)),ne.viewTo+=z):$l(a)}var Ye=ne.externalMeasured;Ye&&(ee<Ye.lineN?Ye.lineN+=z:b<Ye.lineN+Ye.size&&(ne.externalMeasured=null))}function Zl(a,b,ee){a.curOp.viewChanged=!0;var z=a.display,ne=a.display.externalMeasured;if(ne&&b>=ne.lineN&&b<ne.lineN+ne.size&&(z.externalMeasured=null),!(b<z.viewFrom||b>=z.viewTo)){var me=z.view[Zu(a,b)];if(me.node!=null){var Se=me.changes||(me.changes=[]);It(Se,ee)==-1&&Se.push(ee)}}}function $l(a){a.display.viewFrom=a.display.viewTo=a.doc.first,a.display.view=[],a.display.viewOffset=0}function cf(a,b,ee,z){var ne=Zu(a,b),me,Se=a.display.view;if(!Xi||ee==a.doc.first+a.doc.size)return{index:ne,lineN:ee};for(var Qe=a.display.viewFrom,Re=0;Re<ne;Re++)Qe+=Se[Re].size;if(Qe!=b){if(z>0){if(ne==Se.length-1)return null;me=Qe+Se[ne].size-b,ne++}else me=Qe-b;b+=me,ee+=me}for(;Fr(a.doc,ee)!=ee;){if(ne==(z<0?0:Se.length-1))return null;ee+=z*Se[ne-(z<0?1:0)].size,ne+=z}return{index:ne,lineN:ee}}function Jh(a,b,ee){var z=a.display,ne=z.view;ne.length==0||b>=z.viewTo||ee<=z.viewFrom?(z.view=ws(a,b,ee),z.viewFrom=b):(z.viewFrom>b?z.view=ws(a,b,z.viewFrom).concat(z.view):z.viewFrom<b&&(z.view=z.view.slice(Zu(a,b))),z.viewFrom=b,z.viewTo<ee?z.view=z.view.concat(ws(a,z.viewTo,ee)):z.viewTo>ee&&(z.view=z.view.slice(0,Zu(a,ee)))),z.viewTo=ee}function wa(a){for(var b=a.display.view,ee=0,z=0;z<b.length;z++){var ne=b[z];!ne.hidden&&(!ne.node||ne.changes)&&++ee}return ee}function IA(a){a.display.input.showSelection(a.display.input.prepareSelection())}function Fl(a,b){b===void 0&&(b=!0);for(var ee=a.doc,z={},ne=z.cursors=document.createDocumentFragment(),me=z.selection=document.createDocumentFragment(),Se=0;Se<ee.sel.ranges.length;Se++)if(!(!b&&Se==ee.sel.primIndex)){var Qe=ee.sel.ranges[Se];if(!(Qe.from().line>=a.display.viewTo||Qe.to().line<a.display.viewFrom)){var Re=Qe.empty();(Re||a.options.showCursorWhenSelecting)&&qh(a,Qe.head,ne),Re||$d(a,Qe,me)}}return z}function qh(a,b,ee){var z=aA(a,b,"div",null,null,!a.options.singleCursorHeightPerLine),ne=ee.appendChild(St("div","\xA0","CodeMirror-cursor"));if(ne.style.left=z.left+"px",ne.style.top=z.top+"px",ne.style.height=Math.max(0,z.bottom-z.top)*a.options.cursorHeight+"px",z.other){var me=ee.appendChild(St("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));me.style.display="",me.style.left=z.other.left+"px",me.style.top=z.other.top+"px",me.style.height=(z.other.bottom-z.other.top)*.85+"px"}}function Il(a,b){return a.top-b.top||a.left-b.left}function $d(a,b,ee){var z=a.display,ne=a.doc,me=document.createDocumentFragment(),Se=Qs(a.display),Qe=Se.left,Re=Math.max(z.sizerWidth,oA(a)-z.sizer.offsetLeft)-Se.right,Ye=ne.direction=="ltr";function rn(Ei,Hi,lo,Ji){Hi<0&&(Hi=0),Hi=Math.round(Hi),Ji=Math.round(Ji),me.appendChild(St("div",null,"CodeMirror-selected","position: absolute; left: "+Ei+`px;
|
|
|
top: `+Hi+"px; width: "+(lo==null?Re-Ei:lo)+`px;
|
|
|
height: `+(Ji-Hi)+"px"))}function gn(Ei,Hi,lo){var Ji=Xt(ne,Ei),yo=Ji.text.length,ja,Os;function ts(Ss,cA){return ks(a,ft(Ei,Ss),"div",Ji,cA)}function uA(Ss,cA,Vs){var Bi=us(a,Ji,null,Ss),Ya=cA=="ltr"==(Vs=="after")?"left":"right",ns=Vs=="after"?Bi.begin:Bi.end-(/\s/.test(Ji.text.charAt(Bi.end-1))?2:1);return ts(ns,Ya)[Ya]}var Rs=ar(Ji,ne.direction);return zt(Rs,Hi||0,lo==null?yo:lo,function(Ss,cA,Vs,Bi){var Ya=Vs=="ltr",ns=ts(Ss,Ya?"left":"right"),rs=ts(cA-1,Ya?"right":"left"),Rc=Hi==null&&Ss==0,ha=lo==null&&cA==yo,ta=Bi==0,nl=!Rs||Bi==Rs.length-1;if(rs.top-ns.top<=3){var Zs=(Ye?Rc:ha)&&ta,Tf=(Ye?ha:Rc)&&nl,fo=Zs?Qe:(Ya?ns:rs).left,ml=Tf?Re:(Ya?rs:ns).right;rn(fo,ns.top,ml-fo,ns.bottom)}else{var Pa,$s,Nu,jc;Ya?(Pa=Ye&&Rc&&ta?Qe:ns.left,$s=Ye?Re:uA(Ss,Vs,"before"),Nu=Ye?Qe:uA(cA,Vs,"after"),jc=Ye&&ha&&nl?Re:rs.right):(Pa=Ye?uA(Ss,Vs,"before"):Qe,$s=!Ye&&Rc&&ta?Re:ns.right,Nu=!Ye&&ha&&nl?Qe:rs.left,jc=Ye?uA(cA,Vs,"after"):Re),rn(Pa,ns.top,$s-Pa,ns.bottom),ns.bottom<rs.top&&rn(Qe,ns.bottom,null,rs.top),rn(Nu,rs.top,jc-Nu,rs.bottom)}(!ja||Il(ns,ja)<0)&&(ja=ns),Il(rs,ja)<0&&(ja=rs),(!Os||Il(ns,Os)<0)&&(Os=ns),Il(rs,Os)<0&&(Os=rs)}),{start:ja,end:Os}}var tr=b.from(),$n=b.to();if(tr.line==$n.line)gn(tr.line,tr.ch,$n.ch);else{var Nr=Xt(ne,tr.line),ni=Xt(ne,$n.line),di=Sr(Nr)==Sr(ni),Ci=gn(tr.line,tr.ch,di?Nr.text.length+1:null).end,Ui=gn($n.line,di?0:null,$n.ch).start;di&&(Ci.top<Ui.top-2?(rn(Ci.right,Ci.top,null,Ci.bottom),rn(Qe,Ui.top,Ui.left,Ui.bottom)):rn(Ci.right,Ci.top,Ui.left-Ci.right,Ci.bottom)),Ci.bottom<Ui.top&&rn(Qe,Ci.bottom,null,Ui.top)}ee.appendChild(me)}function xc(a){if(a.state.focused){var b=a.display;clearInterval(b.blinker);var ee=!0;b.cursorDiv.style.visibility="",a.options.cursorBlinkRate>0?b.blinker=setInterval(function(){a.hasFocus()||dl(a),b.cursorDiv.style.visibility=(ee=!ee)?"":"hidden"},a.options.cursorBlinkRate):a.options.cursorBlinkRate<0&&(b.cursorDiv.style.visibility="hidden")}}function od(a){a.state.focused||(a.display.input.focus(),ff(a))}function ad(a){a.state.delayingBlurEvent=!0,setTimeout(function(){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1,dl(a))},100)}function ff(a,b){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1),a.options.readOnly!="nocursor"&&(a.state.focused||(Nn(a,"focus",a,b),a.state.focused=!0,Fe(a.display.wrapper,"CodeMirror-focused"),!a.curOp&&a.display.selForContextMenu!=a.doc.sel&&(a.display.input.reset(),Dt&&setTimeout(function(){return a.display.input.reset(!0)},20)),a.display.input.receivedFocus()),xc(a))}function dl(a,b){a.state.delayingBlurEvent||(a.state.focused&&(Nn(a,"blur",a,b),a.state.focused=!1,Et(a.display.wrapper,"CodeMirror-focused")),clearInterval(a.display.blinker),setTimeout(function(){a.state.focused||(a.display.shift=!1)},150))}function yu(a){for(var b=a.display,ee=b.lineDiv.offsetTop,z=0;z<b.view.length;z++){var ne=b.view[z],me=a.options.lineWrapping,Se=void 0,Qe=0;if(!ne.hidden){if(rt&&at<8){var Re=ne.node.offsetTop+ne.node.offsetHeight;Se=Re-ee,ee=Re}else{var Ye=ne.node.getBoundingClientRect();Se=Ye.bottom-Ye.top,!me&&ne.text.firstChild&&(Qe=ne.text.firstChild.getBoundingClientRect().right-Ye.left-1)}var rn=ne.line.height-Se;if((rn>.005||rn<-.005)&&(wr(ne.line,Se),xs(ne.line),ne.rest))for(var gn=0;gn<ne.rest.length;gn++)xs(ne.rest[gn]);if(Qe>a.display.sizerWidth){var tr=Math.ceil(Qe/El(a.display));tr>a.display.maxLineLength&&(a.display.maxLineLength=tr,a.display.maxLine=ne.line,a.display.maxLineChanged=!0)}}}}function xs(a){if(a.widgets)for(var b=0;b<a.widgets.length;++b){var ee=a.widgets[b],z=ee.node.parentNode;z&&(ee.height=z.offsetHeight)}}function Xl(a,b,ee){var z=ee&&ee.top!=null?Math.max(0,ee.top):a.scroller.scrollTop;z=Math.floor(z-ls(a));var ne=ee&&ee.bottom!=null?ee.bottom:z+a.wrapper.clientHeight,me=Vt(b,z),Se=Vt(b,ne);if(ee&&ee.ensure){var Qe=ee.ensure.from.line,Re=ee.ensure.to.line;Qe<me?(me=Qe,Se=Vt(b,to(Xt(b,Qe))+a.wrapper.clientHeight)):Math.min(Re,b.lastLine())>=Se&&(me=Vt(b,to(Xt(b,Re))-a.wrapper.clientHeight),Se=Re)}return{from:me,to:Math.max(Se,me+1)}}function $u(a,b){if(!un(a,"scrollCursorIntoView")){var ee=a.display,z=ee.sizer.getBoundingClientRect(),ne=null;if(b.top+z.top<0?ne=!0:b.bottom+z.top>(window.innerHeight||document.documentElement.clientHeight)&&(ne=!1),ne!=null&&!Ve){var me=St("div","\u200B",null,`position: absolute;
|
|
|
top: `+(b.top-ee.viewOffset-ls(a.display))+`px;
|
|
|
height: `+(b.bottom-b.top+_A(a)+ee.barHeight)+`px;
|
|
|
left: `+b.left+"px; width: "+Math.max(2,b.right-b.left)+"px;");a.display.lineSpace.appendChild(me),me.scrollIntoView(ne),a.display.lineSpace.removeChild(me)}}}function Yl(a,b,ee,z){z==null&&(z=0);var ne;!a.options.lineWrapping&&b==ee&&(b=b.ch?ft(b.line,b.sticky=="before"?b.ch-1:b.ch,"after"):b,ee=b.sticky=="before"?ft(b.line,b.ch+1,"before"):b);for(var me=0;me<5;me++){var Se=!1,Qe=aA(a,b),Re=!ee||ee==b?Qe:aA(a,ee);ne={left:Math.min(Qe.left,Re.left),top:Math.min(Qe.top,Re.top)-z,right:Math.max(Qe.left,Re.left),bottom:Math.max(Qe.bottom,Re.bottom)+z};var Ye=Jl(a,ne),rn=a.doc.scrollTop,gn=a.doc.scrollLeft;if(Ye.scrollTop!=null&&(AA(a,Ye.scrollTop),Math.abs(a.doc.scrollTop-rn)>1&&(Se=!0)),Ye.scrollLeft!=null&&(Ul(a,Ye.scrollLeft),Math.abs(a.doc.scrollLeft-gn)>1&&(Se=!0)),!Se)break}return ne}function Xp(a,b){var ee=Jl(a,b);ee.scrollTop!=null&&AA(a,ee.scrollTop),ee.scrollLeft!=null&&Ul(a,ee.scrollLeft)}function Jl(a,b){var ee=a.display,z=FA(a.display);b.top<0&&(b.top=0);var ne=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:ee.scroller.scrollTop,me=Za(a),Se={};b.bottom-b.top>me&&(b.bottom=b.top+me);var Qe=a.doc.height+iA(ee),Re=b.top<z,Ye=b.bottom>Qe-z;if(b.top<ne)Se.scrollTop=Re?0:b.top;else if(b.bottom>ne+me){var rn=Math.min(b.top,(Ye?Qe:b.bottom)-me);rn!=ne&&(Se.scrollTop=rn)}var gn=a.options.fixedGutter?0:ee.gutters.offsetWidth,tr=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:ee.scroller.scrollLeft-gn,$n=oA(a)-ee.gutters.offsetWidth,Nr=b.right-b.left>$n;return Nr&&(b.right=b.left+$n),b.left<10?Se.scrollLeft=0:b.left<tr?Se.scrollLeft=Math.max(0,b.left+gn-(Nr?0:10)):b.right>$n+tr-3&&(Se.scrollLeft=b.right+(Nr?0:10)-$n),Se}function sd(a,b){b!=null&&(Ll(a),a.curOp.scrollTop=(a.curOp.scrollTop==null?a.doc.scrollTop:a.curOp.scrollTop)+b)}function JA(a){Ll(a);var b=a.getCursor();a.curOp.scrollToPos={from:b,to:b,margin:a.options.cursorScrollMargin}}function wu(a,b,ee){(b!=null||ee!=null)&&Ll(a),b!=null&&(a.curOp.scrollLeft=b),ee!=null&&(a.curOp.scrollTop=ee)}function Xg(a,b){Ll(a),a.curOp.scrollToPos=b}function Ll(a){var b=a.curOp.scrollToPos;if(b){a.curOp.scrollToPos=null;var ee=Co(a,b.from),z=Co(a,b.to);HA(a,ee,z,b.margin)}}function HA(a,b,ee,z){var ne=Jl(a,{left:Math.min(b.left,ee.left),top:Math.min(b.top,ee.top)-z,right:Math.max(b.right,ee.right),bottom:Math.max(b.bottom,ee.bottom)+z});wu(a,ne.scrollLeft,ne.scrollTop)}function AA(a,b){Math.abs(a.doc.scrollTop-b)<2||(oe||Ec(a,{top:b}),Ea(a,b,!0),oe&&Ec(a),Ju(a,100))}function Ea(a,b,ee){b=Math.max(0,Math.min(a.display.scroller.scrollHeight-a.display.scroller.clientHeight,b)),!(a.display.scroller.scrollTop==b&&!ee)&&(a.doc.scrollTop=b,a.display.scrollbars.setScrollTop(b),a.display.scroller.scrollTop!=b&&(a.display.scroller.scrollTop=b))}function Ul(a,b,ee,z){b=Math.max(0,Math.min(b,a.display.scroller.scrollWidth-a.display.scroller.clientWidth)),!((ee?b==a.doc.scrollLeft:Math.abs(a.doc.scrollLeft-b)<2)&&!z)&&(a.doc.scrollLeft=b,rp(a),a.display.scroller.scrollLeft!=b&&(a.display.scroller.scrollLeft=b),a.display.scrollbars.setScrollLeft(b))}function Xu(a){var b=a.display,ee=b.gutters.offsetWidth,z=Math.round(a.doc.height+iA(a.display));return{clientHeight:b.scroller.clientHeight,viewHeight:b.wrapper.clientHeight,scrollWidth:b.scroller.scrollWidth,clientWidth:b.scroller.clientWidth,viewWidth:b.wrapper.clientWidth,barLeft:a.options.fixedGutter?ee:0,docHeight:z,scrollHeight:z+_A(a)+b.barHeight,nativeBarWidth:b.nativeBarWidth,gutterWidth:ee}}var bu=function(a,b,ee){this.cm=ee;var z=this.vert=St("div",[St("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),ne=this.horiz=St("div",[St("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");z.tabIndex=ne.tabIndex=-1,a(z),a(ne),nn(z,"scroll",function(){z.clientHeight&&b(z.scrollTop,"vertical")}),nn(ne,"scroll",function(){ne.clientWidth&&b(ne.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,rt&&at<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};bu.prototype.update=function(a){var b=a.scrollWidth>a.clientWidth+1,ee=a.scrollHeight>a.clientHeight+1,z=a.nativeBarWidth;if(ee){this.vert.style.display="block",this.vert.style.bottom=b?z+"px":"0";var ne=a.viewHeight-(b?z:0);this.vert.firstChild.style.height=Math.max(0,a.scrollHeight-a.clientHeight+ne)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(b){this.horiz.style.display="block",this.horiz.style.right=ee?z+"px":"0",this.horiz.style.left=a.barLeft+"px";var me=a.viewWidth-a.barLeft-(ee?z:0);this.horiz.firstChild.style.width=Math.max(0,a.scrollWidth-a.clientWidth+me)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&a.clientHeight>0&&(z==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:ee?z:0,bottom:b?z:0}},bu.prototype.setScrollLeft=function(a){this.horiz.scrollLeft!=a&&(this.horiz.scrollLeft=a),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},bu.prototype.setScrollTop=function(a){this.vert.scrollTop!=a&&(this.vert.scrollTop=a),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},bu.prototype.zeroWidthHack=function(){var a=ze&&!Le?"12px":"18px";this.horiz.style.height=this.vert.style.width=a,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new xe,this.disableVert=new xe},bu.prototype.enableZeroWidthBar=function(a,b,ee){a.style.pointerEvents="auto";function z(){var ne=a.getBoundingClientRect(),me=ee=="vert"?document.elementFromPoint(ne.right-1,(ne.top+ne.bottom)/2):document.elementFromPoint((ne.right+ne.left)/2,ne.bottom-1);me!=a?a.style.pointerEvents="none":b.set(1e3,z)}b.set(1e3,z)},bu.prototype.clear=function(){var a=this.horiz.parentNode;a.removeChild(this.horiz),a.removeChild(this.vert)};var Rl=function(){};Rl.prototype.update=function(){return{bottom:0,right:0}},Rl.prototype.setScrollLeft=function(){},Rl.prototype.setScrollTop=function(){},Rl.prototype.clear=function(){};function jl(a,b){b||(b=Xu(a));var ee=a.display.barWidth,z=a.display.barHeight;Ad(a,b);for(var ne=0;ne<4&&ee!=a.display.barWidth||z!=a.display.barHeight;ne++)ee!=a.display.barWidth&&a.options.lineWrapping&&yu(a),Ad(a,Xu(a)),ee=a.display.barWidth,z=a.display.barHeight}function Ad(a,b){var ee=a.display,z=ee.scrollbars.update(b);ee.sizer.style.paddingRight=(ee.barWidth=z.right)+"px",ee.sizer.style.paddingBottom=(ee.barHeight=z.bottom)+"px",ee.heightForcer.style.borderBottom=z.bottom+"px solid transparent",z.right&&z.bottom?(ee.scrollbarFiller.style.display="block",ee.scrollbarFiller.style.height=z.bottom+"px",ee.scrollbarFiller.style.width=z.right+"px"):ee.scrollbarFiller.style.display="",z.bottom&&a.options.coverGutterNextToScrollbar&&a.options.fixedGutter?(ee.gutterFiller.style.display="block",ee.gutterFiller.style.height=z.bottom+"px",ee.gutterFiller.style.width=b.gutterWidth+"px"):ee.gutterFiller.style.display=""}var Yu={native:bu,null:Rl};function ep(a){a.display.scrollbars&&(a.display.scrollbars.clear(),a.display.scrollbars.addClass&&Et(a.display.wrapper,a.display.scrollbars.addClass)),a.display.scrollbars=new Yu[a.options.scrollbarStyle](function(b){a.display.wrapper.insertBefore(b,a.display.scrollbarFiller),nn(b,"mousedown",function(){a.state.focused&&setTimeout(function(){return a.display.input.focus()},0)}),b.setAttribute("cm-not-content","true")},function(b,ee){ee=="horizontal"?Ul(a,b):AA(a,b)},a),a.display.scrollbars.addClass&&Fe(a.display.wrapper,a.display.scrollbars.addClass)}var Yp=0;function yA(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:++Yp},bs(a.curOp)}function Ol(a){var b=a.curOp;b&&nA(b,function(ee){for(var z=0;z<ee.ops.length;z++)ee.ops[z].cm.curOp=null;Jp(ee)})}function Jp(a){for(var b=a.ops,ee=0;ee<b.length;ee++)qp(b[ee]);for(var z=0;z<b.length;z++)df(b[z]);for(var ne=0;ne<b.length;ne++)tp(b[ne]);for(var me=0;me<b.length;me++)hf(b[me]);for(var Se=0;Se<b.length;Se++)eg(b[Se])}function qp(a){var b=a.cm,ee=b.display;tg(b),a.updateMaxLine&&Do(b),a.mustUpdate=a.viewChanged||a.forceUpdate||a.scrollTop!=null||a.scrollToPos&&(a.scrollToPos.from.line<ee.viewFrom||a.scrollToPos.to.line>=ee.viewTo)||ee.maxLineChanged&&b.options.lineWrapping,a.update=a.mustUpdate&&new ud(b,a.mustUpdate&&{top:a.scrollTop,ensure:a.scrollToPos},a.forceUpdate)}function df(a){a.updatedDisplay=a.mustUpdate&&Xd(a.cm,a.update)}function tp(a){var b=a.cm,ee=b.display;a.updatedDisplay&&yu(b),a.barMeasure=Xu(b),ee.maxLineChanged&&!b.options.lineWrapping&&(a.adjustWidthTo=xl(b,ee.maxLine,ee.maxLine.text.length).left+3,b.display.sizerWidth=a.adjustWidthTo,a.barMeasure.scrollWidth=Math.max(ee.scroller.clientWidth,ee.sizer.offsetLeft+a.adjustWidthTo+_A(b)+b.display.barWidth),a.maxScrollLeft=Math.max(0,ee.sizer.offsetLeft+a.adjustWidthTo-oA(b))),(a.updatedDisplay||a.selectionChanged)&&(a.preparedSelection=ee.input.prepareSelection())}function hf(a){var b=a.cm;a.adjustWidthTo!=null&&(b.display.sizer.style.minWidth=a.adjustWidthTo+"px",a.maxScrollLeft<b.doc.scrollLeft&&Ul(b,Math.min(b.display.scroller.scrollLeft,a.maxScrollLeft),!0),b.display.maxLineChanged=!1);var ee=a.focus&&a.focus==lt();a.preparedSelection&&b.display.input.showSelection(a.preparedSelection,ee),(a.updatedDisplay||a.startHeight!=b.doc.height)&&jl(b,a.barMeasure),a.updatedDisplay&&Yd(b,a.barMeasure),a.selectionChanged&&xc(b),b.state.focused&&a.updateInput&&b.display.input.reset(a.typing),ee&&od(a.cm)}function eg(a){var b=a.cm,ee=b.display,z=b.doc;if(a.updatedDisplay&&np(b,a.update),ee.wheelStartX!=null&&(a.scrollTop!=null||a.scrollLeft!=null||a.scrollToPos)&&(ee.wheelStartX=ee.wheelStartY=null),a.scrollTop!=null&&Ea(b,a.scrollTop,a.forceScroll),a.scrollLeft!=null&&Ul(b,a.scrollLeft,!0,!0),a.scrollToPos){var ne=Yl(b,Zn(z,a.scrollToPos.from),Zn(z,a.scrollToPos.to),a.scrollToPos.margin);$u(b,ne)}var me=a.maybeHiddenMarkers,Se=a.maybeUnhiddenMarkers;if(me)for(var Qe=0;Qe<me.length;++Qe)me[Qe].lines.length||Nn(me[Qe],"hide");if(Se)for(var Re=0;Re<Se.length;++Re)Se[Re].lines.length&&Nn(Se[Re],"unhide");ee.wrapper.offsetHeight&&(z.scrollTop=b.display.scroller.scrollTop),a.changeObjs&&Nn(b,"changes",b,a.changeObjs),a.update&&a.update.finish()}function LA(a,b){if(a.curOp)return b();yA(a);try{return b()}finally{Ol(a)}}function Ls(a,b){return function(){if(a.curOp)return b.apply(a,arguments);yA(a);try{return b.apply(a,arguments)}finally{Ol(a)}}}function wA(a){return function(){if(this.curOp)return a.apply(this,arguments);yA(this);try{return a.apply(this,arguments)}finally{Ol(this)}}}function Hs(a){return function(){var b=this.cm;if(!b||b.curOp)return a.apply(this,arguments);yA(b);try{return a.apply(this,arguments)}finally{Ol(b)}}}function Ju(a,b){a.doc.highlightFrontier<a.display.viewTo&&a.state.highlight.set(b,At(ld,a))}function ld(a){var b=a.doc;if(!(b.highlightFrontier>=a.display.viewTo)){var ee=+new Date+a.options.workTime,z=Vi(a,b.highlightFrontier),ne=[];b.iter(z.line,Math.min(b.first+b.size,a.display.viewTo+500),function(me){if(z.line>=a.display.viewFrom){var Se=me.styles,Qe=me.text.length>a.options.maxHighlightLength?ai(b.mode,z.state):null,Re=Ai(a,me,z,!0);Qe&&(z.state=Qe),me.styles=Re.styles;var Ye=me.styleClasses,rn=Re.classes;rn?me.styleClasses=rn:Ye&&(me.styleClasses=null);for(var gn=!Se||Se.length!=me.styles.length||Ye!=rn&&(!Ye||!rn||Ye.bgClass!=rn.bgClass||Ye.textClass!=rn.textClass),tr=0;!gn&&tr<Se.length;++tr)gn=Se[tr]!=me.styles[tr];gn&&ne.push(z.line),me.stateAfter=z.save(),z.nextLine()}else me.text.length<=a.options.maxHighlightLength&&eo(a,me.text,z),me.stateAfter=z.line%5==0?z.save():null,z.nextLine();if(+new Date>ee)return Ju(a,a.options.workDelay),!0}),b.highlightFrontier=z.line,b.modeFrontier=Math.max(b.modeFrontier,z.line),ne.length&&LA(a,function(){for(var me=0;me<ne.length;me++)Zl(a,ne[me],"text")})}}var ud=function(a,b,ee){var z=a.display;this.viewport=b,this.visible=Xl(z,a.doc,b),this.editorIsHidden=!z.wrapper.offsetWidth,this.wrapperHeight=z.wrapper.clientHeight,this.wrapperWidth=z.wrapper.clientWidth,this.oldDisplayWidth=oA(a),this.force=ee,this.dims=Sl(a),this.events=[]};ud.prototype.signal=function(a,b){Xn(a,b)&&this.events.push(arguments)},ud.prototype.finish=function(){for(var a=0;a<this.events.length;a++)Nn.apply(null,this.events[a])};function tg(a){var b=a.display;!b.scrollbarsClipped&&b.scroller.offsetWidth&&(b.nativeBarWidth=b.scroller.offsetWidth-b.scroller.clientWidth,b.heightForcer.style.height=_A(a)+"px",b.sizer.style.marginBottom=-b.nativeBarWidth+"px",b.sizer.style.borderRightWidth=_A(a)+"px",b.scrollbarsClipped=!0)}function ng(a){if(a.hasFocus())return null;var b=lt();if(!b||!wt(a.display.lineDiv,b))return null;var ee={activeElt:b};if(window.getSelection){var z=window.getSelection();z.anchorNode&&z.extend&&wt(a.display.lineDiv,z.anchorNode)&&(ee.anchorNode=z.anchorNode,ee.anchorOffset=z.anchorOffset,ee.focusNode=z.focusNode,ee.focusOffset=z.focusOffset)}return ee}function rg(a){if(!(!a||!a.activeElt||a.activeElt==lt())&&(a.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(a.activeElt.nodeName)&&a.anchorNode&&wt(document.body,a.anchorNode)&&wt(document.body,a.focusNode))){var b=window.getSelection(),ee=document.createRange();ee.setEnd(a.anchorNode,a.anchorOffset),ee.collapse(!1),b.removeAllRanges(),b.addRange(ee),b.extend(a.focusNode,a.focusOffset)}}function Xd(a,b){var ee=a.display,z=a.doc;if(b.editorIsHidden)return $l(a),!1;if(!b.force&&b.visible.from>=ee.viewFrom&&b.visible.to<=ee.viewTo&&(ee.updateLineNumbers==null||ee.updateLineNumbers>=ee.viewTo)&&ee.renderedView==ee.view&&wa(a)==0)return!1;ip(a)&&($l(a),b.dims=Sl(a));var ne=z.first+z.size,me=Math.max(b.visible.from-a.options.viewportMargin,z.first),Se=Math.min(ne,b.visible.to+a.options.viewportMargin);ee.viewFrom<me&&me-ee.viewFrom<20&&(me=Math.max(z.first,ee.viewFrom)),ee.viewTo>Se&&ee.viewTo-Se<20&&(Se=Math.min(ne,ee.viewTo)),Xi&&(me=Fr(a.doc,me),Se=zr(a.doc,Se));var Qe=me!=ee.viewFrom||Se!=ee.viewTo||ee.lastWrapHeight!=b.wrapperHeight||ee.lastWrapWidth!=b.wrapperWidth;Jh(a,me,Se),ee.viewOffset=to(Xt(a.doc,ee.viewFrom)),a.display.mover.style.top=ee.viewOffset+"px";var Re=wa(a);if(!Qe&&Re==0&&!b.force&&ee.renderedView==ee.view&&(ee.updateLineNumbers==null||ee.updateLineNumbers>=ee.viewTo))return!1;var Ye=ng(a);return Re>4&&(ee.lineDiv.style.display="none"),ig(a,ee.updateLineNumbers,b.dims),Re>4&&(ee.lineDiv.style.display=""),ee.renderedView=ee.view,rg(Ye),pn(ee.cursorDiv),pn(ee.selectionDiv),ee.gutters.style.height=ee.sizer.style.minHeight=0,Qe&&(ee.lastWrapHeight=b.wrapperHeight,ee.lastWrapWidth=b.wrapperWidth,Ju(a,400)),ee.updateLineNumbers=null,!0}function np(a,b){for(var ee=b.viewport,z=!0;;z=!1){if(!z||!a.options.lineWrapping||b.oldDisplayWidth==oA(a)){if(ee&&ee.top!=null&&(ee={top:Math.min(a.doc.height+iA(a.display)-Za(a),ee.top)}),b.visible=Xl(a.display,a.doc,ee),b.visible.from>=a.display.viewFrom&&b.visible.to<=a.display.viewTo)break}else z&&(b.visible=Xl(a.display,a.doc,ee));if(!Xd(a,b))break;yu(a);var ne=Xu(a);IA(a),jl(a,ne),Yd(a,ne),b.force=!1}b.signal(a,"update",a),(a.display.viewFrom!=a.display.reportedViewFrom||a.display.viewTo!=a.display.reportedViewTo)&&(b.signal(a,"viewportChange",a,a.display.viewFrom,a.display.viewTo),a.display.reportedViewFrom=a.display.viewFrom,a.display.reportedViewTo=a.display.viewTo)}function Ec(a,b){var ee=new ud(a,b);if(Xd(a,ee)){yu(a),np(a,ee);var z=Xu(a);IA(a),jl(a,z),Yd(a,z),ee.finish()}}function ig(a,b,ee){var z=a.display,ne=a.options.lineNumbers,me=z.lineDiv,Se=me.firstChild;function Qe(Nr){var ni=Nr.nextSibling;return Dt&&ze&&a.display.currentWheelTarget==Nr?Nr.style.display="none":Nr.parentNode.removeChild(Nr),ni}for(var Re=z.view,Ye=z.viewFrom,rn=0;rn<Re.length;rn++){var gn=Re[rn];if(!gn.hidden)if(!gn.node||gn.node.parentNode!=me){var tr=Eo(a,gn,Ye,ee);me.insertBefore(tr,Se)}else{for(;Se!=gn.node;)Se=Qe(Se);var $n=ne&&b!=null&&b<=Ye&&gn.lineNumber;gn.changes&&(It(gn.changes,"gutter")>-1&&($n=!1),mu(a,gn,Ye,ee)),$n&&(pn(gn.lineNumber),gn.lineNumber.appendChild(document.createTextNode(kt(a.options,Ye)))),Se=gn.node.nextSibling}Ye+=gn.size}for(;Se;)Se=Qe(Se)}function qu(a){var b=a.gutters.offsetWidth;a.sizer.style.marginLeft=b+"px"}function Yd(a,b){a.display.sizer.style.minHeight=b.docHeight+"px",a.display.heightForcer.style.top=b.docHeight+"px",a.display.gutters.style.height=b.docHeight+a.display.barHeight+_A(a)+"px"}function rp(a){var b=a.display,ee=b.view;if(!(!b.alignWidgets&&(!b.gutters.firstChild||!a.options.fixedGutter))){for(var z=Cc(b)-b.scroller.scrollLeft+a.doc.scrollLeft,ne=b.gutters.offsetWidth,me=z+"px",Se=0;Se<ee.length;Se++)if(!ee[Se].hidden){a.options.fixedGutter&&(ee[Se].gutter&&(ee[Se].gutter.style.left=me),ee[Se].gutterBackground&&(ee[Se].gutterBackground.style.left=me));var Qe=ee[Se].alignable;if(Qe)for(var Re=0;Re<Qe.length;Re++)Qe[Re].style.left=me}a.options.fixedGutter&&(b.gutters.style.left=z+ne+"px")}}function ip(a){if(!a.options.lineNumbers)return!1;var b=a.doc,ee=kt(a.options,b.first+b.size-1),z=a.display;if(ee.length!=z.lineNumChars){var ne=z.measure.appendChild(St("div",[St("div",ee)],"CodeMirror-linenumber CodeMirror-gutter-elt")),me=ne.firstChild.offsetWidth,Se=ne.offsetWidth-me;return z.lineGutter.style.width="",z.lineNumInnerWidth=Math.max(me,z.lineGutter.offsetWidth-Se)+1,z.lineNumWidth=z.lineNumInnerWidth+Se,z.lineNumChars=z.lineNumInnerWidth?ee.length:-1,z.lineGutter.style.width=z.lineNumWidth+"px",qu(a.display),!0}return!1}function Sc(a,b){for(var ee=[],z=!1,ne=0;ne<a.length;ne++){var me=a[ne],Se=null;if(typeof me!="string"&&(Se=me.style,me=me.className),me=="CodeMirror-linenumbers")if(b)z=!0;else continue;ee.push({className:me,style:Se})}return b&&!z&&ee.push({className:"CodeMirror-linenumbers",style:null}),ee}function Jd(a){var b=a.gutters,ee=a.gutterSpecs;pn(b),a.lineGutter=null;for(var z=0;z<ee.length;++z){var ne=ee[z],me=ne.className,Se=ne.style,Qe=b.appendChild(St("div",null,"CodeMirror-gutter "+me));Se&&(Qe.style.cssText=Se),me=="CodeMirror-linenumbers"&&(a.lineGutter=Qe,Qe.style.width=(a.lineNumWidth||1)+"px")}b.style.display=ee.length?"":"none",qu(a)}function ql(a){Jd(a.display),Ws(a),rp(a)}function og(a,b,ee,z){var ne=this;this.input=ee,ne.scrollbarFiller=St("div",null,"CodeMirror-scrollbar-filler"),ne.scrollbarFiller.setAttribute("cm-not-content","true"),ne.gutterFiller=St("div",null,"CodeMirror-gutter-filler"),ne.gutterFiller.setAttribute("cm-not-content","true"),ne.lineDiv=jt("div",null,"CodeMirror-code"),ne.selectionDiv=St("div",null,null,"position: relative; z-index: 1"),ne.cursorDiv=St("div",null,"CodeMirror-cursors"),ne.measure=St("div",null,"CodeMirror-measure"),ne.lineMeasure=St("div",null,"CodeMirror-measure"),ne.lineSpace=jt("div",[ne.measure,ne.lineMeasure,ne.selectionDiv,ne.cursorDiv,ne.lineDiv],null,"position: relative; outline: none");var me=jt("div",[ne.lineSpace],"CodeMirror-lines");ne.mover=St("div",[me],null,"position: relative"),ne.sizer=St("div",[ne.mover],"CodeMirror-sizer"),ne.sizerWidth=null,ne.heightForcer=St("div",null,null,"position: absolute; height: "+Cn+"px; width: 1px;"),ne.gutters=St("div",null,"CodeMirror-gutters"),ne.lineGutter=null,ne.scroller=St("div",[ne.sizer,ne.heightForcer,ne.gutters],"CodeMirror-scroll"),ne.scroller.setAttribute("tabIndex","-1"),ne.wrapper=St("div",[ne.scrollbarFiller,ne.gutterFiller,ne.scroller],"CodeMirror"),rt&&at<8&&(ne.gutters.style.zIndex=-1,ne.scroller.style.paddingRight=0),!Dt&&!(oe&&Ge)&&(ne.scroller.draggable=!0),a&&(a.appendChild?a.appendChild(ne.wrapper):a(ne.wrapper)),ne.viewFrom=ne.viewTo=b.first,ne.reportedViewFrom=ne.reportedViewTo=b.first,ne.view=[],ne.renderedView=null,ne.externalMeasured=null,ne.viewOffset=0,ne.lastWrapHeight=ne.lastWrapWidth=0,ne.updateLineNumbers=null,ne.nativeBarWidth=ne.barHeight=ne.barWidth=0,ne.scrollbarsClipped=!1,ne.lineNumWidth=ne.lineNumInnerWidth=ne.lineNumChars=null,ne.alignWidgets=!1,ne.cachedCharWidth=ne.cachedTextHeight=ne.cachedPaddingH=null,ne.maxLine=null,ne.maxLineLength=0,ne.maxLineChanged=!1,ne.wheelDX=ne.wheelDY=ne.wheelStartX=ne.wheelStartY=null,ne.shift=!1,ne.selForContextMenu=null,ne.activeTouch=null,ne.gutterSpecs=Sc(z.gutters,z.lineNumbers),Jd(ne),ee.init(ne)}var cd=0,qA=null;rt?qA=-.53:oe?qA=15:Pe?qA=-.7:ke&&(qA=-1/3);function op(a){var b=a.wheelDeltaX,ee=a.wheelDeltaY;return b==null&&a.detail&&a.axis==a.HORIZONTAL_AXIS&&(b=a.detail),ee==null&&a.detail&&a.axis==a.VERTICAL_AXIS?ee=a.detail:ee==null&&(ee=a.wheelDelta),{x:b,y:ee}}function Fc(a){var b=op(a);return b.x*=qA,b.y*=qA,b}function ap(a,b){var ee=op(b),z=ee.x,ne=ee.y,me=a.display,Se=me.scroller,Qe=Se.scrollWidth>Se.clientWidth,Re=Se.scrollHeight>Se.clientHeight;if(z&&Qe||ne&&Re){if(ne&&ze&&Dt){e:for(var Ye=b.target,rn=me.view;Ye!=Se;Ye=Ye.parentNode)for(var gn=0;gn<rn.length;gn++)if(rn[gn].node==Ye){a.display.currentWheelTarget=Ye;break e}}if(z&&!oe&&!ce&&qA!=null){ne&&Re&&AA(a,Math.max(0,Se.scrollTop+ne*qA)),Ul(a,Math.max(0,Se.scrollLeft+z*qA)),(!ne||ne&&Re)&&An(b),me.wheelStartX=null;return}if(ne&&qA!=null){var tr=ne*qA,$n=a.doc.scrollTop,Nr=$n+me.wrapper.clientHeight;tr<0?$n=Math.max(0,$n+tr-50):Nr=Math.min(a.doc.height,Nr+tr+50),Ec(a,{top:$n,bottom:Nr})}cd<20&&(me.wheelStartX==null?(me.wheelStartX=Se.scrollLeft,me.wheelStartY=Se.scrollTop,me.wheelDX=z,me.wheelDY=ne,setTimeout(function(){if(me.wheelStartX!=null){var ni=Se.scrollLeft-me.wheelStartX,di=Se.scrollTop-me.wheelStartY,Ci=di&&me.wheelDY&&di/me.wheelDY||ni&&me.wheelDX&&ni/me.wheelDX;me.wheelStartX=me.wheelStartY=null,Ci&&(qA=(qA*cd+Ci)/(cd+1),++cd)}},200)):(me.wheelDX+=z,me.wheelDY+=ne))}}var RA=function(a,b){this.ranges=a,this.primIndex=b};RA.prototype.primary=function(){return this.ranges[this.primIndex]},RA.prototype.equals=function(a){if(a==this)return!0;if(a.primIndex!=this.primIndex||a.ranges.length!=this.ranges.length)return!1;for(var b=0;b<this.ranges.length;b++){var ee=this.ranges[b],z=a.ranges[b];if(!Fn(ee.anchor,z.anchor)||!Fn(ee.head,z.head))return!1}return!0},RA.prototype.deepCopy=function(){for(var a=[],b=0;b<this.ranges.length;b++)a[b]=new Na(xr(this.ranges[b].anchor),xr(this.ranges[b].head));return new RA(a,this.primIndex)},RA.prototype.somethingSelected=function(){for(var a=0;a<this.ranges.length;a++)if(!this.ranges[a].empty())return!0;return!1},RA.prototype.contains=function(a,b){b||(b=a);for(var ee=0;ee<this.ranges.length;ee++){var z=this.ranges[ee];if(Gt(b,z.from())>=0&&Gt(a,z.to())<=0)return ee}return-1};var Na=function(a,b){this.anchor=a,this.head=b};Na.prototype.from=function(){return kr(this.anchor,this.head)},Na.prototype.to=function(){return Or(this.anchor,this.head)},Na.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function UA(a,b,ee){var z=a&&a.options.selectionsMayTouch,ne=b[ee];b.sort(function(tr,$n){return Gt(tr.from(),$n.from())}),ee=It(b,ne);for(var me=1;me<b.length;me++){var Se=b[me],Qe=b[me-1],Re=Gt(Qe.to(),Se.from());if(z&&!Se.empty()?Re>0:Re>=0){var Ye=kr(Qe.from(),Se.from()),rn=Or(Qe.to(),Se.to()),gn=Qe.empty()?Se.from()==Se.head:Qe.from()==Qe.head;me<=ee&&--ee,b.splice(--me,2,new Na(gn?rn:Ye,gn?Ye:rn))}}return new RA(b,ee)}function Bu(a,b){return new RA([new Na(a,b||a)],0)}function Cu(a){return a.text?ft(a.from.line+a.text.length-1,ct(a.text).length+(a.text.length==1?a.from.ch:0)):a.to}function qd(a,b){if(Gt(a,b.from)<0)return a;if(Gt(a,b.to)<=0)return Cu(b);var ee=a.line+b.text.length-(b.to.line-b.from.line)-1,z=a.ch;return a.line==b.to.line&&(z+=Cu(b).ch-b.to.ch),ft(ee,z)}function Ic(a,b){for(var ee=[],z=0;z<a.sel.ranges.length;z++){var ne=a.sel.ranges[z];ee.push(new Na(qd(ne.anchor,b),qd(ne.head,b)))}return UA(a.cm,ee,a.sel.primIndex)}function sp(a,b,ee){return a.line==b.line?ft(ee.line,a.ch-b.ch+ee.ch):ft(ee.line+(a.line-b.line),a.ch)}function ag(a,b,ee){for(var z=[],ne=ft(a.first,0),me=ne,Se=0;Se<b.length;Se++){var Qe=b[Se],Re=sp(Qe.from,ne,me),Ye=sp(Cu(Qe),ne,me);if(ne=Qe.to,me=Ye,ee=="around"){var rn=a.sel.ranges[Se],gn=Gt(rn.head,rn.anchor)<0;z[Se]=new Na(gn?Ye:Re,gn?Re:Ye)}else z[Se]=new Na(Re,Re)}return new RA(z,a.sel.primIndex)}function eh(a){a.doc.mode=Rr(a.options,a.doc.modeOption),pf(a)}function pf(a){a.doc.iter(function(b){b.stateAfter&&(b.stateAfter=null),b.styles&&(b.styles=null)}),a.doc.modeFrontier=a.doc.highlightFrontier=a.doc.first,Ju(a,100),a.state.modeGen++,a.curOp&&Ws(a)}function Lc(a,b){return b.from.ch==0&&b.to.ch==0&&ct(b.text)==""&&(!a.cm||a.cm.options.wholeLineUpdateBefore)}function gf(a,b,ee,z){function ne(Ui){return ee?ee[Ui]:null}function me(Ui,Ei,Hi){ea(Ui,Ei,Hi,z),es(Ui,"change",Ui,b)}function Se(Ui,Ei){for(var Hi=[],lo=Ui;lo<Ei;++lo)Hi.push(new ra(Ye[lo],ne(lo),z));return Hi}var Qe=b.from,Re=b.to,Ye=b.text,rn=Xt(a,Qe.line),gn=Xt(a,Re.line),tr=ct(Ye),$n=ne(Ye.length-1),Nr=Re.line-Qe.line;if(b.full)a.insert(0,Se(0,Ye.length)),a.remove(Ye.length,a.size-Ye.length);else if(Lc(a,b)){var ni=Se(0,Ye.length-1);me(gn,gn.text,$n),Nr&&a.remove(Qe.line,Nr),ni.length&&a.insert(Qe.line,ni)}else if(rn==gn)if(Ye.length==1)me(rn,rn.text.slice(0,Qe.ch)+tr+rn.text.slice(Re.ch),$n);else{var di=Se(1,Ye.length-1);di.push(new ra(tr+rn.text.slice(Re.ch),$n,z)),me(rn,rn.text.slice(0,Qe.ch)+Ye[0],ne(0)),a.insert(Qe.line+1,di)}else if(Ye.length==1)me(rn,rn.text.slice(0,Qe.ch)+Ye[0]+gn.text.slice(Re.ch),ne(0)),a.remove(Qe.line+1,Nr);else{me(rn,rn.text.slice(0,Qe.ch)+Ye[0],ne(0)),me(gn,tr+gn.text.slice(Re.ch),$n);var Ci=Se(1,Ye.length-1);Nr>1&&a.remove(Qe.line+1,Nr-1),a.insert(Qe.line+1,Ci)}es(a,"change",a,b)}function xu(a,b,ee){function z(ne,me,Se){if(ne.linked)for(var Qe=0;Qe<ne.linked.length;++Qe){var Re=ne.linked[Qe];if(Re.doc!=me){var Ye=Se&&Re.sharedHist;ee&&!Ye||(b(Re.doc,Ye),z(Re.doc,ne,Ye))}}}z(a,null,!0)}function Us(a,b){if(b.cm)throw new Error("This document is already in use.");a.doc=b,b.cm=a,id(a),eh(a),Ap(a),a.options.lineWrapping||Do(a),a.options.mode=b.modeOption,Ws(a)}function Ap(a){(a.doc.direction=="rtl"?Fe:Et)(a.display.lineDiv,"CodeMirror-rtl")}function sg(a){LA(a,function(){Ap(a),Ws(a)})}function fd(a){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=a||1}function th(a,b){var ee={from:xr(b.from),to:Cu(b),text:Kn(a,b.from,b.to)};return nh(a,ee,b.from.line,b.to.line+1),xu(a,function(z){return nh(z,ee,b.from.line,b.to.line+1)},!0),ee}function lp(a){for(;a.length;){var b=ct(a);if(b.ranges)a.pop();else break}}function up(a,b){if(b)return lp(a.done),ct(a.done);if(a.done.length&&!ct(a.done).ranges)return ct(a.done);if(a.done.length>1&&!a.done[a.done.length-2].ranges)return a.done.pop(),ct(a.done)}function mf(a,b,ee,z){var ne=a.history;ne.undone.length=0;var me=+new Date,Se,Qe;if((ne.lastOp==z||ne.lastOrigin==b.origin&&b.origin&&(b.origin.charAt(0)=="+"&&ne.lastModTime>me-(a.cm?a.cm.options.historyEventDelay:500)||b.origin.charAt(0)=="*"))&&(Se=up(ne,ne.lastOp==z)))Qe=ct(Se.changes),Gt(b.from,b.to)==0&&Gt(b.from,Qe.to)==0?Qe.to=Cu(b):Se.changes.push(th(a,b));else{var Re=ct(ne.done);for((!Re||!Re.ranges)&&eu(a.sel,ne.done),Se={changes:[th(a,b)],generation:ne.generation},ne.done.push(Se);ne.done.length>ne.undoDepth;)ne.done.shift(),ne.done[0].ranges||ne.done.shift()}ne.done.push(ee),ne.generation=++ne.maxGeneration,ne.lastModTime=ne.lastSelTime=me,ne.lastOp=ne.lastSelOp=z,ne.lastOrigin=ne.lastSelOrigin=b.origin,Qe||Nn(a,"historyAdded")}function Ag(a,b,ee,z){var ne=b.charAt(0);return ne=="*"||ne=="+"&&ee.ranges.length==z.ranges.length&&ee.somethingSelected()==z.somethingSelected()&&new Date-a.history.lastSelTime<=(a.cm?a.cm.options.historyEventDelay:500)}function lg(a,b,ee,z){var ne=a.history,me=z&&z.origin;ee==ne.lastSelOp||me&&ne.lastSelOrigin==me&&(ne.lastModTime==ne.lastSelTime&&ne.lastOrigin==me||Ag(a,me,ct(ne.done),b))?ne.done[ne.done.length-1]=b:eu(b,ne.done),ne.lastSelTime=+new Date,ne.lastSelOrigin=me,ne.lastSelOp=ee,z&&z.clearRedo!==!1&&lp(ne.undone)}function eu(a,b){var ee=ct(b);ee&&ee.ranges&&ee.equals(a)||b.push(a)}function nh(a,b,ee,z){var ne=b["spans_"+a.id],me=0;a.iter(Math.max(a.first,ee),Math.min(a.first+a.size,z),function(Se){Se.markedSpans&&((ne||(ne=b["spans_"+a.id]={}))[me]=Se.markedSpans),++me})}function cp(a){if(!a)return null;for(var b,ee=0;ee<a.length;++ee)a[ee].marker.explicitlyCleared?b||(b=a.slice(0,ee)):b&&b.push(a[ee]);return b?b.length?b:null:a}function rh(a,b){var ee=b["spans_"+a.id];if(!ee)return null;for(var z=[],ne=0;ne<b.text.length;++ne)z.push(cp(ee[ne]));return z}function Qi(a,b){var ee=rh(a,b),z=Ko(a,b);if(!ee)return z;if(!z)return ee;for(var ne=0;ne<ee.length;++ne){var me=ee[ne],Se=z[ne];if(me&&Se)e:for(var Qe=0;Qe<Se.length;++Qe){for(var Re=Se[Qe],Ye=0;Ye<me.length;++Ye)if(me[Ye].marker==Re.marker)continue e;me.push(Re)}else Se&&(ee[ne]=Se)}return ee}function ec(a,b,ee){for(var z=[],ne=0;ne<a.length;++ne){var me=a[ne];if(me.ranges){z.push(ee?RA.prototype.deepCopy.call(me):me);continue}var Se=me.changes,Qe=[];z.push({changes:Qe});for(var Re=0;Re<Se.length;++Re){var Ye=Se[Re],rn=void 0;if(Qe.push({from:Ye.from,to:Ye.to,text:Ye.text}),b)for(var gn in Ye)(rn=gn.match(/^spans_(\d+)$/))&&It(b,Number(rn[1]))>-1&&(ct(Qe)[gn]=Ye[gn],delete Ye[gn])}}return z}function ih(a,b,ee,z){if(z){var ne=a.anchor;if(ee){var me=Gt(b,ne)<0;me!=Gt(ee,ne)<0?(ne=b,b=ee):me!=Gt(b,ee)<0&&(b=ee)}return new Na(ne,b)}else return new Na(ee||b,b)}function Uc(a,b,ee,z,ne){ne==null&&(ne=a.cm&&(a.cm.display.shift||a.extend)),Gs(a,new RA([ih(a.sel.primary(),b,ee,ne)],0),z)}function Dl(a,b,ee){for(var z=[],ne=a.cm&&(a.cm.display.shift||a.extend),me=0;me<a.sel.ranges.length;me++)z[me]=ih(a.sel.ranges[me],b[me],null,ne);var Se=UA(a.cm,z,a.sel.primIndex);Gs(a,Se,ee)}function oh(a,b,ee,z){var ne=a.sel.ranges.slice(0);ne[b]=ee,Gs(a,UA(a.cm,ne,a.sel.primIndex),z)}function fp(a,b,ee,z){Gs(a,Bu(b,ee),z)}function tu(a,b,ee){var z={ranges:b.ranges,update:function(ne){this.ranges=[];for(var me=0;me<ne.length;me++)this.ranges[me]=new Na(Zn(a,ne[me].anchor),Zn(a,ne[me].head))},origin:ee&&ee.origin};return Nn(a,"beforeSelectionChange",a,z),a.cm&&Nn(a.cm,"beforeSelectionChange",a.cm,z),z.ranges!=b.ranges?UA(a.cm,z.ranges,z.ranges.length-1):b}function vf(a,b,ee){var z=a.history.done,ne=ct(z);ne&&ne.ranges?(z[z.length-1]=b,yf(a,b,ee)):Gs(a,b,ee)}function Gs(a,b,ee){yf(a,b,ee),lg(a,a.sel,a.cm?a.cm.curOp.id:NaN,ee)}function yf(a,b,ee){(Xn(a,"beforeSelectionChange")||a.cm&&Xn(a.cm,"beforeSelectionChange"))&&(b=tu(a,b,ee));var z=ee&&ee.bias||(Gt(b.primary().head,a.sel.primary().head)<0?-1:1);ah(a,tc(a,b,z,!0)),!(ee&&ee.scroll===!1)&&a.cm&&JA(a.cm)}function ah(a,b){b.equals(a.sel)||(a.sel=b,a.cm&&(a.cm.curOp.updateInput=1,a.cm.curOp.selectionChanged=!0,ir(a.cm)),es(a,"cursorActivity",a))}function Eu(a){ah(a,tc(a,a.sel,null,!1))}function tc(a,b,ee,z){for(var ne,me=0;me<b.ranges.length;me++){var Se=b.ranges[me],Qe=b.ranges.length==a.sel.ranges.length&&a.sel.ranges[me],Re=dd(a,Se.anchor,Qe&&Qe.anchor,ee,z),Ye=dd(a,Se.head,Qe&&Qe.head,ee,z);(ne||Re!=Se.anchor||Ye!=Se.head)&&(ne||(ne=b.ranges.slice(0,me)),ne[me]=new Na(Re,Ye))}return ne?UA(a.cm,ne,b.primIndex):b}function jA(a,b,ee,z,ne){var me=Xt(a,b.line);if(me.markedSpans)for(var Se=0;Se<me.markedSpans.length;++Se){var Qe=me.markedSpans[Se],Re=Qe.marker,Ye="selectLeft"in Re?!Re.selectLeft:Re.inclusiveLeft,rn="selectRight"in Re?!Re.selectRight:Re.inclusiveRight;if((Qe.from==null||(Ye?Qe.from<=b.ch:Qe.from<b.ch))&&(Qe.to==null||(rn?Qe.to>=b.ch:Qe.to>b.ch))){if(ne&&(Nn(Re,"beforeCursorEnter"),Re.explicitlyCleared))if(me.markedSpans){--Se;continue}else break;if(!Re.atomic)continue;if(ee){var gn=Re.find(z<0?1:-1),tr=void 0;if((z<0?rn:Ye)&&(gn=sh(a,gn,-z,gn&&gn.line==b.line?me:null)),gn&&gn.line==b.line&&(tr=Gt(gn,ee))&&(z<0?tr<0:tr>0))return jA(a,gn,b,z,ne)}var $n=Re.find(z<0?-1:1);return(z<0?Ye:rn)&&($n=sh(a,$n,z,$n.line==b.line?me:null)),$n?jA(a,$n,b,z,ne):null}}return b}function dd(a,b,ee,z,ne){var me=z||1,Se=jA(a,b,ee,me,ne)||!ne&&jA(a,b,ee,me,!0)||jA(a,b,ee,-me,ne)||!ne&&jA(a,b,ee,-me,!0);return Se||(a.cantEdit=!0,ft(a.first,0))}function sh(a,b,ee,z){return ee<0&&b.ch==0?b.line>a.first?Zn(a,ft(b.line-1)):null:ee>0&&b.ch==(z||Xt(a,b.line)).text.length?b.line<a.first+a.size-1?ft(b.line+1,0):null:new ft(b.line,b.ch+ee)}function el(a){a.setSelection(ft(a.firstLine(),0),ft(a.lastLine()),Ze)}function wf(a,b,ee){var z={canceled:!1,from:b.from,to:b.to,text:b.text,origin:b.origin,cancel:function(){return z.canceled=!0}};return ee&&(z.update=function(ne,me,Se,Qe){ne&&(z.from=Zn(a,ne)),me&&(z.to=Zn(a,me)),Se&&(z.text=Se),Qe!==void 0&&(z.origin=Qe)}),Nn(a,"beforeChange",a,z),a.cm&&Nn(a.cm,"beforeChange",a.cm,z),z.canceled?(a.cm&&(a.cm.curOp.updateInput=2),null):{from:z.from,to:z.to,text:z.text,origin:z.origin}}function nc(a,b,ee){if(a.cm){if(!a.cm.curOp)return Ls(a.cm,nc)(a,b,ee);if(a.cm.state.suppressEdits)return}if(!((Xn(a,"beforeChange")||a.cm&&Xn(a.cm,"beforeChange"))&&(b=wf(a,b,!0),!b))){var z=Yi&&!ee&&Oa(a,b.from,b.to);if(z)for(var ne=z.length-1;ne>=0;--ne)dp(a,{from:z[ne].from,to:z[ne].to,text:ne?[""]:b.text,origin:b.origin});else dp(a,b)}}function dp(a,b){if(!(b.text.length==1&&b.text[0]==""&&Gt(b.from,b.to)==0)){var ee=Ic(a,b);mf(a,b,ee,a.cm?a.cm.curOp.id:NaN),Oc(a,b,ee,Ko(a,b));var z=[];xu(a,function(ne,me){!me&&It(z,ne.history)==-1&&(lh(ne.history,b),z.push(ne.history)),Oc(ne,b,null,Ko(ne,b))})}}function bf(a,b,ee){var z=a.cm&&a.cm.state.suppressEdits;if(!(z&&!ee)){for(var ne=a.history,me,Se=a.sel,Qe=b=="undo"?ne.done:ne.undone,Re=b=="undo"?ne.undone:ne.done,Ye=0;Ye<Qe.length&&(me=Qe[Ye],!(ee?me.ranges&&!me.equals(a.sel):!me.ranges));Ye++);if(Ye!=Qe.length){for(ne.lastOrigin=ne.lastSelOrigin=null;;)if(me=Qe.pop(),me.ranges){if(eu(me,Re),ee&&!me.equals(a.sel)){Gs(a,me,{clearRedo:!1});return}Se=me}else if(z){Qe.push(me);return}else break;var rn=[];eu(Se,Re),Re.push({changes:rn,generation:ne.generation}),ne.generation=me.generation||++ne.maxGeneration;for(var gn=Xn(a,"beforeChange")||a.cm&&Xn(a.cm,"beforeChange"),tr=function(ni){var di=me.changes[ni];if(di.origin=b,gn&&!wf(a,di,!1))return Qe.length=0,{};rn.push(th(a,di));var Ci=ni?Ic(a,di):ct(Qe);Oc(a,di,Ci,Qi(a,di)),!ni&&a.cm&&a.cm.scrollIntoView({from:di.from,to:Cu(di)});var Ui=[];xu(a,function(Ei,Hi){!Hi&&It(Ui,Ei.history)==-1&&(lh(Ei.history,di),Ui.push(Ei.history)),Oc(Ei,di,null,Qi(Ei,di))})},$n=me.changes.length-1;$n>=0;--$n){var Nr=tr($n);if(Nr)return Nr.v}}}}function Bf(a,b){if(b!=0&&(a.first+=b,a.sel=new RA(En(a.sel.ranges,function(ne){return new Na(ft(ne.anchor.line+b,ne.anchor.ch),ft(ne.head.line+b,ne.head.ch))}),a.sel.primIndex),a.cm)){Ws(a.cm,a.first,a.first-b,b);for(var ee=a.cm.display,z=ee.viewFrom;z<ee.viewTo;z++)Zl(a.cm,z,"gutter")}}function Oc(a,b,ee,z){if(a.cm&&!a.cm.curOp)return Ls(a.cm,Oc)(a,b,ee,z);if(b.to.line<a.first){Bf(a,b.text.length-1-(b.to.line-b.from.line));return}if(!(b.from.line>a.lastLine())){if(b.from.line<a.first){var ne=b.text.length-1-(a.first-b.from.line);Bf(a,ne),b={from:ft(a.first,0),to:ft(b.to.line+ne,b.to.ch),text:[ct(b.text)],origin:b.origin}}var me=a.lastLine();b.to.line>me&&(b={from:b.from,to:ft(me,Xt(a,me).text.length),text:[b.text[0]],origin:b.origin}),b.removed=Kn(a,b.from,b.to),ee||(ee=Ic(a,b)),a.cm?hp(a.cm,b,z):gf(a,b,z),yf(a,ee,Ze),a.cantEdit&&dd(a,ft(a.firstLine(),0))&&(a.cantEdit=!1)}}function hp(a,b,ee){var z=a.doc,ne=a.display,me=b.from,Se=b.to,Qe=!1,Re=me.line;a.options.lineWrapping||(Re=Lt(Sr(Xt(z,me.line))),z.iter(Re,Se.line+1,function($n){if($n==ne.maxLine)return Qe=!0,!0})),z.sel.contains(b.from,b.to)>-1&&ir(a),gf(z,b,ee,Yh(a)),a.options.lineWrapping||(z.iter(Re,me.line+b.text.length,function($n){var Nr=Zo($n);Nr>ne.maxLineLength&&(ne.maxLine=$n,ne.maxLineLength=Nr,ne.maxLineChanged=!0,Qe=!1)}),Qe&&(a.curOp.updateMaxLine=!0)),oo(z,me.line),Ju(a,400);var Ye=b.text.length-(Se.line-me.line)-1;b.full?Ws(a):me.line==Se.line&&b.text.length==1&&!Lc(a.doc,b)?Zl(a,me.line,"text"):Ws(a,me.line,Se.line+1,Ye);var rn=Xn(a,"changes"),gn=Xn(a,"change");if(gn||rn){var tr={from:me,to:Se,text:b.text,removed:b.removed,origin:b.origin};gn&&es(a,"change",a,tr),rn&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(tr)}a.display.selForContextMenu=null}function rc(a,b,ee,z,ne){var me;z||(z=ee),Gt(z,ee)<0&&(me=[z,ee],ee=me[0],z=me[1]),typeof b=="string"&&(b=a.splitLines(b)),nc(a,{from:ee,to:z,text:b,origin:ne})}function Ah(a,b,ee,z){ee<a.line?a.line+=z:b<a.line&&(a.line=b,a.ch=0)}function hd(a,b,ee,z){for(var ne=0;ne<a.length;++ne){var me=a[ne],Se=!0;if(me.ranges){me.copied||(me=a[ne]=me.deepCopy(),me.copied=!0);for(var Qe=0;Qe<me.ranges.length;Qe++)Ah(me.ranges[Qe].anchor,b,ee,z),Ah(me.ranges[Qe].head,b,ee,z);continue}for(var Re=0;Re<me.changes.length;++Re){var Ye=me.changes[Re];if(ee<Ye.from.line)Ye.from=ft(Ye.from.line+z,Ye.from.ch),Ye.to=ft(Ye.to.line+z,Ye.to.ch);else if(b<=Ye.to.line){Se=!1;break}}Se||(a.splice(0,ne+1),ne=0)}}function lh(a,b){var ee=b.from.line,z=b.to.line,ne=b.text.length-(z-ee)-1;hd(a.done,ee,z,ne),hd(a.undone,ee,z,ne)}function Dc(a,b,ee,z){var ne=b,me=b;return typeof b=="number"?me=Xt(a,dr(a,b)):ne=Lt(b),ne==null?null:(z(me,ne)&&a.cm&&Zl(a.cm,ne,ee),me)}function Nc(a){this.lines=a,this.parent=null;for(var b=0,ee=0;ee<a.length;++ee)a[ee].parent=this,b+=a[ee].height;this.height=b}Nc.prototype={chunkSize:function(){return this.lines.length},removeInner:function(a,b){for(var ee=a,z=a+b;ee<z;++ee){var ne=this.lines[ee];this.height-=ne.height,va(ne),es(ne,"delete")}this.lines.splice(a,b)},collapse:function(a){a.push.apply(a,this.lines)},insertInner:function(a,b,ee){this.height+=ee,this.lines=this.lines.slice(0,a).concat(b).concat(this.lines.slice(a));for(var z=0;z<b.length;++z)b[z].parent=this},iterN:function(a,b,ee){for(var z=a+b;a<z;++a)if(ee(this.lines[a]))return!0}};function ic(a){this.children=a;for(var b=0,ee=0,z=0;z<a.length;++z){var ne=a[z];b+=ne.chunkSize(),ee+=ne.height,ne.parent=this}this.size=b,this.height=ee,this.parent=null}ic.prototype={chunkSize:function(){return this.size},removeInner:function(a,b){this.size-=b;for(var ee=0;ee<this.children.length;++ee){var z=this.children[ee],ne=z.chunkSize();if(a<ne){var me=Math.min(b,ne-a),Se=z.height;if(z.removeInner(a,me),this.height-=Se-z.height,ne==me&&(this.children.splice(ee--,1),z.parent=null),(b-=me)==0)break;a=0}else a-=ne}if(this.size-b<25&&(this.children.length>1||!(this.children[0]instanceof Nc))){var Qe=[];this.collapse(Qe),this.children=[new Nc(Qe)],this.children[0].parent=this}},collapse:function(a){for(var b=0;b<this.children.length;++b)this.children[b].collapse(a)},insertInner:function(a,b,ee){this.size+=b.length,this.height+=ee;for(var z=0;z<this.children.length;++z){var ne=this.children[z],me=ne.chunkSize();if(a<=me){if(ne.insertInner(a,b,ee),ne.lines&&ne.lines.length>50){for(var Se=ne.lines.length%25+25,Qe=Se;Qe<ne.lines.length;){var Re=new Nc(ne.lines.slice(Qe,Qe+=25));ne.height-=Re.height,this.children.splice(++z,0,Re),Re.parent=this}ne.lines=ne.lines.slice(0,Se),this.maybeSpill()}break}a-=me}},maybeSpill:function(){if(!(this.children.length<=10)){var a=this;do{var b=a.children.splice(a.children.length-5,5),ee=new ic(b);if(a.parent){a.size-=ee.size,a.height-=ee.height;var ne=It(a.parent.children,a);a.parent.children.splice(ne+1,0,ee)}else{var z=new ic(a.children);z.parent=a,a.children=[z,ee],a=z}ee.parent=a.parent}while(a.children.length>10);a.parent.maybeSpill()}},iterN:function(a,b,ee){for(var z=0;z<this.children.length;++z){var ne=this.children[z],me=ne.chunkSize();if(a<me){var Se=Math.min(b,me-a);if(ne.iterN(a,Se,ee))return!0;if((b-=Se)==0)break;a=0}else a-=me}}};var Su=function(a,b,ee){if(ee)for(var z in ee)ee.hasOwnProperty(z)&&(this[z]=ee[z]);this.doc=a,this.node=b};Su.prototype.clear=function(){var a=this.doc.cm,b=this.line.widgets,ee=this.line,z=Lt(ee);if(!(z==null||!b)){for(var ne=0;ne<b.length;++ne)b[ne]==this&&b.splice(ne--,1);b.length||(ee.widgets=null);var me=rA(this);wr(ee,Math.max(0,ee.height-me)),a&&(LA(a,function(){tl(a,ee,-me),Zl(a,z,"widget")}),es(a,"lineWidgetCleared",a,this,z))}},Su.prototype.changed=function(){var a=this,b=this.height,ee=this.doc.cm,z=this.line;this.height=null;var ne=rA(this)-b;ne&&(fi(this.doc,z)||wr(z,z.height+ne),ee&&LA(ee,function(){ee.curOp.forceUpdate=!0,tl(ee,z,ne),es(ee,"lineWidgetChanged",ee,a,Lt(z))}))},Ft(Su);function tl(a,b,ee){to(b)<(a.curOp&&a.curOp.scrollTop||a.doc.scrollTop)&&sd(a,ee)}function uh(a,b,ee,z){var ne=new Su(a,ee,z),me=a.cm;return me&&ne.noHScroll&&(me.display.alignWidgets=!0),Dc(a,b,"widget",function(Se){var Qe=Se.widgets||(Se.widgets=[]);if(ne.insertAt==null?Qe.push(ne):Qe.splice(Math.min(Qe.length-1,Math.max(0,ne.insertAt)),0,ne),ne.line=Se,me&&!fi(a,Se)){var Re=to(Se)<a.scrollTop;wr(Se,Se.height+rA(ne)),Re&&sd(me,ne.height),me.curOp.forceUpdate=!0}return!0}),me&&es(me,"lineWidgetAdded",me,ne,typeof b=="number"?b:Lt(b)),ne}var Cf=0,hl=function(a,b){this.lines=[],this.type=b,this.doc=a,this.id=++Cf};hl.prototype.clear=function(){if(!this.explicitlyCleared){var a=this.doc.cm,b=a&&!a.curOp;if(b&&yA(a),Xn(this,"clear")){var ee=this.find();ee&&es(this,"clear",ee.from,ee.to)}for(var z=null,ne=null,me=0;me<this.lines.length;++me){var Se=this.lines[me],Qe=Po(Se.markedSpans,this);a&&!this.collapsed?Zl(a,Lt(Se),"text"):a&&(Qe.to!=null&&(ne=Lt(Se)),Qe.from!=null&&(z=Lt(Se))),Se.markedSpans=Ho(Se.markedSpans,Qe),Qe.from==null&&this.collapsed&&!fi(this.doc,Se)&&a&&wr(Se,FA(a.display))}if(a&&this.collapsed&&!a.options.lineWrapping)for(var Re=0;Re<this.lines.length;++Re){var Ye=Sr(this.lines[Re]),rn=Zo(Ye);rn>a.display.maxLineLength&&(a.display.maxLine=Ye,a.display.maxLineLength=rn,a.display.maxLineChanged=!0)}z!=null&&a&&this.collapsed&&Ws(a,z,ne+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,a&&Eu(a.doc)),a&&es(a,"markerCleared",a,this,z,ne),b&&Ol(a),this.parent&&this.parent.clear()}},hl.prototype.find=function(a,b){a==null&&this.type=="bookmark"&&(a=1);for(var ee,z,ne=0;ne<this.lines.length;++ne){var me=this.lines[ne],Se=Po(me.markedSpans,this);if(Se.from!=null&&(ee=ft(b?me:Lt(me),Se.from),a==-1))return ee;if(Se.to!=null&&(z=ft(b?me:Lt(me),Se.to),a==1))return z}return ee&&{from:ee,to:z}},hl.prototype.changed=function(){var a=this,b=this.find(-1,!0),ee=this,z=this.doc.cm;!b||!z||LA(z,function(){var ne=b.line,me=Lt(b.line),Se=$A(z,me);if(Se&&(Bc(Se),z.curOp.selectionChanged=z.curOp.forceUpdate=!0),z.curOp.updateMaxLine=!0,!fi(ee.doc,ne)&&ee.height!=null){var Qe=ee.height;ee.height=null;var Re=rA(ee)-Qe;Re&&wr(ne,ne.height+Re)}es(z,"markerChanged",z,a)})},hl.prototype.attachLine=function(a){if(!this.lines.length&&this.doc.cm){var b=this.doc.cm.curOp;(!b.maybeHiddenMarkers||It(b.maybeHiddenMarkers,this)==-1)&&(b.maybeUnhiddenMarkers||(b.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(a)},hl.prototype.detachLine=function(a){if(this.lines.splice(It(this.lines,a),1),!this.lines.length&&this.doc.cm){var b=this.doc.cm.curOp;(b.maybeHiddenMarkers||(b.maybeHiddenMarkers=[])).push(this)}},Ft(hl);function Fu(a,b,ee,z,ne){if(z&&z.shared)return pp(a,b,ee,z,ne);if(a.cm&&!a.cm.curOp)return Ls(a.cm,Fu)(a,b,ee,z,ne);var me=new hl(a,ne),Se=Gt(b,ee);if(z&&Qt(z,me,!1),Se>0||Se==0&&me.clearWhenEmpty!==!1)return me;if(me.replacedWith&&(me.collapsed=!0,me.widgetNode=jt("span",[me.replacedWith],"CodeMirror-widget"),z.handleMouseEvents||me.widgetNode.setAttribute("cm-ignore-events","true"),z.insertLeft&&(me.widgetNode.insertLeft=!0)),me.collapsed){if(Vr(a,b.line,b,ee,me)||b.line!=ee.line&&Vr(a,ee.line,b,ee,me))throw new Error("Inserting collapsed marker partially overlapping an existing one");go()}me.addToHistory&&mf(a,{from:b,to:ee,origin:"markText"},a.sel,NaN);var Qe=b.line,Re=a.cm,Ye;if(a.iter(Qe,ee.line+1,function(gn){Re&&me.collapsed&&!Re.options.lineWrapping&&Sr(gn)==Re.display.maxLine&&(Ye=!0),me.collapsed&&Qe!=b.line&&wr(gn,0),$i(gn,new bo(me,Qe==b.line?b.ch:null,Qe==ee.line?ee.ch:null)),++Qe}),me.collapsed&&a.iter(b.line,ee.line+1,function(gn){fi(a,gn)&&wr(gn,0)}),me.clearOnEnter&&nn(me,"beforeCursorEnter",function(){return me.clear()}),me.readOnly&&(Oo(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),me.collapsed&&(me.id=++Cf,me.atomic=!0),Re){if(Ye&&(Re.curOp.updateMaxLine=!0),me.collapsed)Ws(Re,b.line,ee.line+1);else if(me.className||me.startStyle||me.endStyle||me.css||me.attributes||me.title)for(var rn=b.line;rn<=ee.line;rn++)Zl(Re,rn,"text");me.atomic&&Eu(Re.doc),es(Re,"markerAdded",Re,me)}return me}var oc=function(a,b){this.markers=a,this.primary=b;for(var ee=0;ee<a.length;++ee)a[ee].parent=this};oc.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var a=0;a<this.markers.length;++a)this.markers[a].clear();es(this,"clear")}},oc.prototype.find=function(a,b){return this.primary.find(a,b)},Ft(oc);function pp(a,b,ee,z,ne){z=Qt(z),z.shared=!1;var me=[Fu(a,b,ee,z,ne)],Se=me[0],Qe=z.widgetNode;return xu(a,function(Re){Qe&&(z.widgetNode=Qe.cloneNode(!0)),me.push(Fu(Re,Zn(Re,b),Zn(Re,ee),z,ne));for(var Ye=0;Ye<Re.linked.length;++Ye)if(Re.linked[Ye].isParent)return;Se=ct(me)}),new oc(me,Se)}function pd(a){return a.findMarks(ft(a.first,0),a.clipPos(ft(a.lastLine())),function(b){return b.parent})}function Pc(a,b){for(var ee=0;ee<b.length;ee++){var z=b[ee],ne=z.find(),me=a.clipPos(ne.from),Se=a.clipPos(ne.to);if(Gt(me,Se)){var Qe=Fu(a,me,Se,z.primary,z.primary.type);z.markers.push(Qe),Qe.parent=z}}}function Tc(a){for(var b=function(z){var ne=a[z],me=[ne.primary.doc];xu(ne.primary.doc,function(Re){return me.push(Re)});for(var Se=0;Se<ne.markers.length;Se++){var Qe=ne.markers[Se];It(me,Qe.doc)==-1&&(Qe.parent=null,ne.markers.splice(Se--,1))}},ee=0;ee<a.length;ee++)b(ee)}var ch=0,lA=function(a,b,ee,z,ne){if(!(this instanceof lA))return new lA(a,b,ee,z,ne);ee==null&&(ee=0),ic.call(this,[new Nc([new ra("",null)])]),this.first=ee,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=ee;var me=ft(ee,0);this.sel=Bu(me),this.history=new fd(null),this.id=++ch,this.modeOption=b,this.lineSep=z,this.direction=ne=="rtl"?"rtl":"ltr",this.extend=!1,typeof a=="string"&&(a=this.splitLines(a)),gf(this,{from:me,to:me,text:a}),Gs(this,Bu(me),Ze)};lA.prototype=de(ic.prototype,{constructor:lA,iter:function(a,b,ee){ee?this.iterN(a-this.first,b-a,ee):this.iterN(this.first,this.first+this.size,a)},insert:function(a,b){for(var ee=0,z=0;z<b.length;++z)ee+=b[z].height;this.insertInner(a-this.first,b,ee)},remove:function(a,b){this.removeInner(a-this.first,b)},getValue:function(a){var b=Lr(this,this.first,this.first+this.size);return a===!1?b:b.join(a||this.lineSeparator())},setValue:Hs(function(a){var b=ft(this.first,0),ee=this.first+this.size-1;nc(this,{from:b,to:ft(ee,Xt(this,ee).text.length),text:this.splitLines(a),origin:"setValue",full:!0},!0),this.cm&&wu(this.cm,0,0),Gs(this,Bu(b),Ze)}),replaceRange:function(a,b,ee,z){b=Zn(this,b),ee=ee?Zn(this,ee):b,rc(this,a,b,ee,z)},getRange:function(a,b,ee){var z=Kn(this,Zn(this,a),Zn(this,b));return ee===!1?z:z.join(ee||this.lineSeparator())},getLine:function(a){var b=this.getLineHandle(a);return b&&b.text},getLineHandle:function(a){if(ot(this,a))return Xt(this,a)},getLineNumber:function(a){return Lt(a)},getLineHandleVisualStart:function(a){return typeof a=="number"&&(a=Xt(this,a)),Sr(a)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(a){return Zn(this,a)},getCursor:function(a){var b=this.sel.primary(),ee;return a==null||a=="head"?ee=b.head:a=="anchor"?ee=b.anchor:a=="end"||a=="to"||a===!1?ee=b.to():ee=b.from(),ee},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Hs(function(a,b,ee){fp(this,Zn(this,typeof a=="number"?ft(a,b||0):a),null,ee)}),setSelection:Hs(function(a,b,ee){fp(this,Zn(this,a),Zn(this,b||a),ee)}),extendSelection:Hs(function(a,b,ee){Uc(this,Zn(this,a),b&&Zn(this,b),ee)}),extendSelections:Hs(function(a,b){Dl(this,Ur(this,a),b)}),extendSelectionsBy:Hs(function(a,b){var ee=En(this.sel.ranges,a);Dl(this,Ur(this,ee),b)}),setSelections:Hs(function(a,b,ee){if(a.length){for(var z=[],ne=0;ne<a.length;ne++)z[ne]=new Na(Zn(this,a[ne].anchor),Zn(this,a[ne].head));b==null&&(b=Math.min(a.length-1,this.sel.primIndex)),Gs(this,UA(this.cm,z,b),ee)}}),addSelection:Hs(function(a,b,ee){var z=this.sel.ranges.slice(0);z.push(new Na(Zn(this,a),Zn(this,b||a))),Gs(this,UA(this.cm,z,z.length-1),ee)}),getSelection:function(a){for(var b=this.sel.ranges,ee,z=0;z<b.length;z++){var ne=Kn(this,b[z].from(),b[z].to());ee=ee?ee.concat(ne):ne}return a===!1?ee:ee.join(a||this.lineSeparator())},getSelections:function(a){for(var b=[],ee=this.sel.ranges,z=0;z<ee.length;z++){var ne=Kn(this,ee[z].from(),ee[z].to());a!==!1&&(ne=ne.join(a||this.lineSeparator())),b[z]=ne}return b},replaceSelection:function(a,b,ee){for(var z=[],ne=0;ne<this.sel.ranges.length;ne++)z[ne]=a;this.replaceSelections(z,b,ee||"+input")},replaceSelections:Hs(function(a,b,ee){for(var z=[],ne=this.sel,me=0;me<ne.ranges.length;me++){var Se=ne.ranges[me];z[me]={from:Se.from(),to:Se.to(),text:this.splitLines(a[me]),origin:ee}}for(var Qe=b&&b!="end"&&ag(this,z,b),Re=z.length-1;Re>=0;Re--)nc(this,z[Re]);Qe?vf(this,Qe):this.cm&&JA(this.cm)}),undo:Hs(function(){bf(this,"undo")}),redo:Hs(function(){bf(this,"redo")}),undoSelection:Hs(function(){bf(this,"undo",!0)}),redoSelection:Hs(function(){bf(this,"redo",!0)}),setExtending:function(a){this.extend=a},getExtending:function(){return this.extend},historySize:function(){for(var a=this.history,b=0,ee=0,z=0;z<a.done.length;z++)a.done[z].ranges||++b;for(var ne=0;ne<a.undone.length;ne++)a.undone[ne].ranges||++ee;return{undo:b,redo:ee}},clearHistory:function(){var a=this;this.history=new fd(this.history.maxGeneration),xu(this,function(b){return b.history=a.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(a){return a&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(a){return this.history.generation==(a||this.cleanGeneration)},getHistory:function(){return{done:ec(this.history.done),undone:ec(this.history.undone)}},setHistory:function(a){var b=this.history=new fd(this.history.maxGeneration);b.done=ec(a.done.slice(0),null,!0),b.undone=ec(a.undone.slice(0),null,!0)},setGutterMarker:Hs(function(a,b,ee){return Dc(this,a,"gutter",function(z){var ne=z.gutterMarkers||(z.gutterMarkers={});return ne[b]=ee,!ee&&he(ne)&&(z.gutterMarkers=null),!0})}),clearGutter:Hs(function(a){var b=this;this.iter(function(ee){ee.gutterMarkers&&ee.gutterMarkers[a]&&Dc(b,ee,"gutter",function(){return ee.gutterMarkers[a]=null,he(ee.gutterMarkers)&&(ee.gutterMarkers=null),!0})})}),lineInfo:function(a){var b;if(typeof a=="number"){if(!ot(this,a)||(b=a,a=Xt(this,a),!a))return null}else if(b=Lt(a),b==null)return null;return{line:b,handle:a,text:a.text,gutterMarkers:a.gutterMarkers,textClass:a.textClass,bgClass:a.bgClass,wrapClass:a.wrapClass,widgets:a.widgets}},addLineClass:Hs(function(a,b,ee){return Dc(this,a,b=="gutter"?"gutter":"class",function(z){var ne=b=="text"?"textClass":b=="background"?"bgClass":b=="gutter"?"gutterClass":"wrapClass";if(!z[ne])z[ne]=ee;else{if(Nt(ee).test(z[ne]))return!1;z[ne]+=" "+ee}return!0})}),removeLineClass:Hs(function(a,b,ee){return Dc(this,a,b=="gutter"?"gutter":"class",function(z){var ne=b=="text"?"textClass":b=="background"?"bgClass":b=="gutter"?"gutterClass":"wrapClass",me=z[ne];if(me)if(ee==null)z[ne]=null;else{var Se=me.match(Nt(ee));if(!Se)return!1;var Qe=Se.index+Se[0].length;z[ne]=me.slice(0,Se.index)+(!Se.index||Qe==me.length?"":" ")+me.slice(Qe)||null}else return!1;return!0})}),addLineWidget:Hs(function(a,b,ee){return uh(this,a,b,ee)}),removeLineWidget:function(a){a.clear()},markText:function(a,b,ee){return Fu(this,Zn(this,a),Zn(this,b),ee,ee&&ee.type||"range")},setBookmark:function(a,b){var ee={replacedWith:b&&(b.nodeType==null?b.widget:b),insertLeft:b&&b.insertLeft,clearWhenEmpty:!1,shared:b&&b.shared,handleMouseEvents:b&&b.handleMouseEvents};return a=Zn(this,a),Fu(this,a,a,ee,"bookmark")},findMarksAt:function(a){a=Zn(this,a);var b=[],ee=Xt(this,a.line).markedSpans;if(ee)for(var z=0;z<ee.length;++z){var ne=ee[z];(ne.from==null||ne.from<=a.ch)&&(ne.to==null||ne.to>=a.ch)&&b.push(ne.marker.parent||ne.marker)}return b},findMarks:function(a,b,ee){a=Zn(this,a),b=Zn(this,b);var z=[],ne=a.line;return this.iter(a.line,b.line+1,function(me){var Se=me.markedSpans;if(Se)for(var Qe=0;Qe<Se.length;Qe++){var Re=Se[Qe];!(Re.to!=null&&ne==a.line&&a.ch>=Re.to||Re.from==null&&ne!=a.line||Re.from!=null&&ne==b.line&&Re.from>=b.ch)&&(!ee||ee(Re.marker))&&z.push(Re.marker.parent||Re.marker)}++ne}),z},getAllMarks:function(){var a=[];return this.iter(function(b){var ee=b.markedSpans;if(ee)for(var z=0;z<ee.length;++z)ee[z].from!=null&&a.push(ee[z].marker)}),a},posFromIndex:function(a){var b,ee=this.first,z=this.lineSeparator().length;return this.iter(function(ne){var me=ne.text.length+z;if(me>a)return b=a,!0;a-=me,++ee}),Zn(this,ft(ee,b))},indexFromPos:function(a){a=Zn(this,a);var b=a.ch;if(a.line<this.first||a.ch<0)return 0;var ee=this.lineSeparator().length;return this.iter(this.first,a.line,function(z){b+=z.text.length+ee}),b},copy:function(a){var b=new lA(Lr(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return b.scrollTop=this.scrollTop,b.scrollLeft=this.scrollLeft,b.sel=this.sel,b.extend=!1,a&&(b.history.undoDepth=this.history.undoDepth,b.setHistory(this.getHistory())),b},linkedDoc:function(a){a||(a={});var b=this.first,ee=this.first+this.size;a.from!=null&&a.from>b&&(b=a.from),a.to!=null&&a.to<ee&&(ee=a.to);var z=new lA(Lr(this,b,ee),a.mode||this.modeOption,b,this.lineSep,this.direction);return a.sharedHist&&(z.history=this.history),(this.linked||(this.linked=[])).push({doc:z,sharedHist:a.sharedHist}),z.linked=[{doc:this,isParent:!0,sharedHist:a.sharedHist}],Pc(z,pd(this)),z},unlinkDoc:function(a){if(a instanceof $a&&(a=a.doc),this.linked)for(var b=0;b<this.linked.length;++b){var ee=this.linked[b];if(ee.doc==a){this.linked.splice(b,1),a.unlinkDoc(this),Tc(pd(this));break}}if(a.history==this.history){var z=[a.id];xu(a,function(ne){return z.push(ne.id)},!0),a.history=new fd(null),a.history.done=ec(this.history.done,z),a.history.undone=ec(this.history.undone,z)}},iterLinkedDocs:function(a){xu(this,a)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(a){return this.lineSep?a.split(this.lineSep):vr(a)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:Hs(function(a){a!="rtl"&&(a="ltr"),a!=this.direction&&(this.direction=a,this.iter(function(b){return b.order=null}),this.cm&&sg(this.cm))})}),lA.prototype.eachLine=lA.prototype.iter;var gd=0;function fh(a){var b=this;if(hh(b),!(un(b,a)||Is(b.display,a))){An(a),rt&&(gd=+new Date);var ee=Vu(b,a,!0),z=a.dataTransfer.files;if(!(!ee||b.isReadOnly()))if(z&&z.length&&window.FileReader&&window.File)for(var ne=z.length,me=Array(ne),Se=0,Qe=function(){++Se==ne&&Ls(b,function(){ee=Zn(b.doc,ee);var $n={from:ee,to:ee,text:b.doc.splitLines(me.filter(function(Nr){return Nr!=null}).join(b.doc.lineSeparator())),origin:"paste"};nc(b.doc,$n),vf(b.doc,Bu(Zn(b.doc,ee),Zn(b.doc,Cu($n))))})()},Re=function($n,Nr){if(b.options.allowDropFileTypes&&It(b.options.allowDropFileTypes,$n.type)==-1){Qe();return}var ni=new FileReader;ni.onerror=function(){return Qe()},ni.onload=function(){var di=ni.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(di)){Qe();return}me[Nr]=di,Qe()},ni.readAsText($n)},Ye=0;Ye<z.length;Ye++)Re(z[Ye],Ye);else{if(b.state.draggingText&&b.doc.sel.contains(ee)>-1){b.state.draggingText(a),setTimeout(function(){return b.display.input.focus()},20);return}try{var rn=a.dataTransfer.getData("Text");if(rn){var gn;if(b.state.draggingText&&!b.state.draggingText.copy&&(gn=b.listSelections()),yf(b.doc,Bu(ee,ee)),gn)for(var tr=0;tr<gn.length;++tr)rc(b.doc,"",gn[tr].anchor,gn[tr].head,"drag");b.replaceSelection(rn,"around","paste"),b.display.input.focus()}}catch($n){}}}}function md(a,b){if(rt&&(!a.state.draggingText||+new Date-gd<100)){nt(b);return}if(!(un(a,b)||Is(a.display,b))&&(b.dataTransfer.setData("Text",a.getSelection()),b.dataTransfer.effectAllowed="copyMove",b.dataTransfer.setDragImage&&!ke)){var ee=St("img",null,null,"position: fixed; left: 0; top: 0;");ee.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",ce&&(ee.width=ee.height=1,a.display.wrapper.appendChild(ee),ee._top=ee.offsetTop),b.dataTransfer.setDragImage(ee,0,0),ce&&ee.parentNode.removeChild(ee)}}function dh(a,b){var ee=Vu(a,b);if(ee){var z=document.createDocumentFragment();qh(a,ee,z),a.display.dragCursor||(a.display.dragCursor=St("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),a.display.lineSpace.insertBefore(a.display.dragCursor,a.display.cursorDiv)),Pt(a.display.dragCursor,z)}}function hh(a){a.display.dragCursor&&(a.display.lineSpace.removeChild(a.display.dragCursor),a.display.dragCursor=null)}function ph(a){if(document.getElementsByClassName){for(var b=document.getElementsByClassName("CodeMirror"),ee=[],z=0;z<b.length;z++){var ne=b[z].CodeMirror;ne&&ee.push(ne)}ee.length&&ee[0].operation(function(){for(var me=0;me<ee.length;me++)a(ee[me])})}}var ba=!1;function vd(){ba||(gp(),ba=!0)}function gp(){var a;nn(window,"resize",function(){a==null&&(a=setTimeout(function(){a=null,ph(ug)},100))}),nn(window,"blur",function(){return ph(dl)})}function ug(a){var b=a.display;b.cachedCharWidth=b.cachedTextHeight=b.cachedPaddingH=null,b.scrollbarsClipped=!1,a.setSize()}for(var Iu={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},yd=0;yd<10;yd++)Iu[yd+48]=Iu[yd+96]=String(yd);for(var wd=65;wd<=90;wd++)Iu[wd]=String.fromCharCode(wd);for(var Qc=1;Qc<=12;Qc++)Iu[Qc+111]=Iu[Qc+63235]="F"+Qc;var nu={};nu.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},nu.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},nu.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},nu.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},nu.default=ze?nu.macDefault:nu.pcDefault;function ac(a){var b=a.split(/-(?!$)/);a=b[b.length-1];for(var ee,z,ne,me,Se=0;Se<b.length-1;Se++){var Qe=b[Se];if(/^(cmd|meta|m)$/i.test(Qe))me=!0;else if(/^a(lt)?$/i.test(Qe))ee=!0;else if(/^(c|ctrl|control)$/i.test(Qe))z=!0;else if(/^s(hift)?$/i.test(Qe))ne=!0;else throw new Error("Unrecognized modifier name: "+Qe)}return ee&&(a="Alt-"+a),z&&(a="Ctrl-"+a),me&&(a="Cmd-"+a),ne&&(a="Shift-"+a),a}function mp(a){var b={};for(var ee in a)if(a.hasOwnProperty(ee)){var z=a[ee];if(/^(name|fallthrough|(de|at)tach)$/.test(ee))continue;if(z=="..."){delete a[ee];continue}for(var ne=En(ee.split(" "),ac),me=0;me<ne.length;me++){var Se=void 0,Qe=void 0;me==ne.length-1?(Qe=ne.join(" "),Se=z):(Qe=ne.slice(0,me+1).join(" "),Se="...");var Re=b[Qe];if(!Re)b[Qe]=Se;else if(Re!=Se)throw new Error("Inconsistent bindings for "+Qe)}delete a[ee]}for(var Ye in b)a[Ye]=b[Ye];return a}function Lu(a,b,ee,z){b=Es(b);var ne=b.call?b.call(a,z):b[a];if(ne===!1)return"nothing";if(ne==="...")return"multi";if(ne!=null&&ee(ne))return"handled";if(b.fallthrough){if(Object.prototype.toString.call(b.fallthrough)!="[object Array]")return Lu(a,b.fallthrough,ee,z);for(var me=0;me<b.fallthrough.length;me++){var Se=Lu(a,b.fallthrough[me],ee,z);if(Se)return Se}}}function gh(a){var b=typeof a=="string"?a:Iu[a.keyCode];return b=="Ctrl"||b=="Alt"||b=="Shift"||b=="Mod"}function xf(a,b,ee){var z=a;return b.altKey&&z!="Alt"&&(a="Alt-"+a),(vt?b.metaKey:b.ctrlKey)&&z!="Ctrl"&&(a="Ctrl-"+a),(vt?b.ctrlKey:b.metaKey)&&z!="Mod"&&(a="Cmd-"+a),!ee&&b.shiftKey&&z!="Shift"&&(a="Shift-"+a),a}function mh(a,b){if(ce&&a.keyCode==34&&a.char)return!1;var ee=Iu[a.keyCode];return ee==null||a.altGraphKey?!1:(a.keyCode==3&&a.code&&(ee=a.code),xf(ee,a,b))}function Es(a){return typeof a=="string"?nu[a]:a}function pl(a,b){for(var ee=a.doc.sel.ranges,z=[],ne=0;ne<ee.length;ne++){for(var me=b(ee[ne]);z.length&&Gt(me.from,ct(z).to)<=0;){var Se=z.pop();if(Gt(Se.from,me.from)<0){me.from=Se.from;break}}z.push(me)}LA(a,function(){for(var Qe=z.length-1;Qe>=0;Qe--)rc(a.doc,"",z[Qe].from,z[Qe].to,"+delete");JA(a)})}function Ef(a,b,ee){var z=dn(a.text,b+ee,ee);return z<0||z>a.text.length?null:z}function vh(a,b,ee){var z=Ef(a,b.ch,ee);return z==null?null:new ft(b.line,z,ee<0?"after":"before")}function Sf(a,b,ee,z,ne){if(a){b.doc.direction=="rtl"&&(ne=-ne);var me=ar(ee,b.doc.direction);if(me){var Se=ne<0?ct(me):me[0],Qe=ne<0==(Se.level==1),Re=Qe?"after":"before",Ye;if(Se.level>0||b.doc.direction=="rtl"){var rn=da(b,ee);Ye=ne<0?ee.text.length-1:0;var gn=XA(b,rn,Ye).top;Ye=ut(function(tr){return XA(b,rn,tr).top==gn},ne<0==(Se.level==1)?Se.from:Se.to-1,Ye),Re=="before"&&(Ye=Ef(ee,Ye,1))}else Ye=ne<0?Se.to:Se.from;return new ft(z,Ye,Re)}}return new ft(z,ne<0?ee.text.length:0,ne<0?"before":"after")}function yh(a,b,ee,z){var ne=ar(b,a.doc.direction);if(!ne)return vh(b,ee,z);ee.ch>=b.text.length?(ee.ch=b.text.length,ee.sticky="before"):ee.ch<=0&&(ee.ch=0,ee.sticky="after");var me=Sn(ne,ee.ch,ee.sticky),Se=ne[me];if(a.doc.direction=="ltr"&&Se.level%2==0&&(z>0?Se.to>ee.ch:Se.from<ee.ch))return vh(b,ee,z);var Qe=function(Ci,Ui){return Ef(b,Ci instanceof ft?Ci.ch:Ci,Ui)},Re,Ye=function(Ci){return a.options.lineWrapping?(Re=Re||da(a,b),us(a,b,Re,Ci)):{begin:0,end:b.text.length}},rn=Ye(ee.sticky=="before"?Qe(ee,-1):ee.ch);if(a.doc.direction=="rtl"||Se.level==1){var gn=Se.level==1==z<0,tr=Qe(ee,gn?1:-1);if(tr!=null&&(gn?tr<=Se.to&&tr<=rn.end:tr>=Se.from&&tr>=rn.begin)){var $n=gn?"before":"after";return new ft(ee.line,tr,$n)}}var Nr=function(Ci,Ui,Ei){for(var Hi=function(ja,Os){return Os?new ft(ee.line,Qe(ja,1),"before"):new ft(ee.line,ja,"after")};Ci>=0&&Ci<ne.length;Ci+=Ui){var lo=ne[Ci],Ji=Ui>0==(lo.level!=1),yo=Ji?Ei.begin:Qe(Ei.end,-1);if(lo.from<=yo&&yo<lo.to||(yo=Ji?lo.from:Qe(lo.to,-1),Ei.begin<=yo&&yo<Ei.end))return Hi(yo,Ji)}},ni=Nr(me+z,z,rn);if(ni)return ni;var di=z>0?rn.end:Qe(rn.begin,-1);return di!=null&&!(z>0&&di==b.text.length)&&(ni=Nr(z>0?0:ne.length-1,z,Ye(di)),ni)?ni:null}var Ff={selectAll:el,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),Ze)},killLine:function(a){return pl(a,function(b){if(b.empty()){var ee=Xt(a.doc,b.head.line).text.length;return b.head.ch==ee&&b.head.line<a.lastLine()?{from:b.head,to:ft(b.head.line+1,0)}:{from:b.head,to:ft(b.head.line,ee)}}else return{from:b.from(),to:b.to()}})},deleteLine:function(a){return pl(a,function(b){return{from:ft(b.from().line,0),to:Zn(a.doc,ft(b.to().line+1,0))}})},delLineLeft:function(a){return pl(a,function(b){return{from:ft(b.from().line,0),to:b.from()}})},delWrappedLineLeft:function(a){return pl(a,function(b){var ee=a.charCoords(b.head,"div").top+5,z=a.coordsChar({left:0,top:ee},"div");return{from:z,to:b.from()}})},delWrappedLineRight:function(a){return pl(a,function(b){var ee=a.charCoords(b.head,"div").top+5,z=a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:ee},"div");return{from:b.from(),to:z}})},undo:function(a){return a.undo()},redo:function(a){return a.redo()},undoSelection:function(a){return a.undoSelection()},redoSelection:function(a){return a.redoSelection()},goDocStart:function(a){return a.extendSelection(ft(a.firstLine(),0))},goDocEnd:function(a){return a.extendSelection(ft(a.lastLine()))},goLineStart:function(a){return a.extendSelectionsBy(function(b){return vp(a,b.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(a){return a.extendSelectionsBy(function(b){return yp(a,b.head)},{origin:"+move",bias:1})},goLineEnd:function(a){return a.extendSelectionsBy(function(b){return cg(a,b.head.line)},{origin:"+move",bias:-1})},goLineRight:function(a){return a.extendSelectionsBy(function(b){var ee=a.cursorCoords(b.head,"div").top+5;return a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:ee},"div")},_t)},goLineLeft:function(a){return a.extendSelectionsBy(function(b){var ee=a.cursorCoords(b.head,"div").top+5;return a.coordsChar({left:0,top:ee},"div")},_t)},goLineLeftSmart:function(a){return a.extendSelectionsBy(function(b){var ee=a.cursorCoords(b.head,"div").top+5,z=a.coordsChar({left:0,top:ee},"div");return z.ch<a.getLine(z.line).search(/\S/)?yp(a,b.head):z},_t)},goLineUp:function(a){return a.moveV(-1,"line")},goLineDown:function(a){return a.moveV(1,"line")},goPageUp:function(a){return a.moveV(-1,"page")},goPageDown:function(a){return a.moveV(1,"page")},goCharLeft:function(a){return a.moveH(-1,"char")},goCharRight:function(a){return a.moveH(1,"char")},goColumnLeft:function(a){return a.moveH(-1,"column")},goColumnRight:function(a){return a.moveH(1,"column")},goWordLeft:function(a){return a.moveH(-1,"word")},goGroupRight:function(a){return a.moveH(1,"group")},goGroupLeft:function(a){return a.moveH(-1,"group")},goWordRight:function(a){return a.moveH(1,"word")},delCharBefore:function(a){return a.deleteH(-1,"codepoint")},delCharAfter:function(a){return a.deleteH(1,"char")},delWordBefore:function(a){return a.deleteH(-1,"word")},delWordAfter:function(a){return a.deleteH(1,"word")},delGroupBefore:function(a){return a.deleteH(-1,"group")},delGroupAfter:function(a){return a.deleteH(1,"group")},indentAuto:function(a){return a.indentSelection("smart")},indentMore:function(a){return a.indentSelection("add")},indentLess:function(a){return a.indentSelection("subtract")},insertTab:function(a){return a.replaceSelection(" ")},insertSoftTab:function(a){for(var b=[],ee=a.listSelections(),z=a.options.tabSize,ne=0;ne<ee.length;ne++){var me=ee[ne].from(),Se=Te(a.getLine(me.line),me.ch,z);b.push(Wn(z-Se%z))}a.replaceSelections(b)},defaultTab:function(a){a.somethingSelected()?a.indentSelection("add"):a.execCommand("insertTab")},transposeChars:function(a){return LA(a,function(){for(var b=a.listSelections(),ee=[],z=0;z<b.length;z++)if(b[z].empty()){var ne=b[z].head,me=Xt(a.doc,ne.line).text;if(me){if(ne.ch==me.length&&(ne=new ft(ne.line,ne.ch-1)),ne.ch>0)ne=new ft(ne.line,ne.ch+1),a.replaceRange(me.charAt(ne.ch-1)+me.charAt(ne.ch-2),ft(ne.line,ne.ch-2),ne,"+transpose");else if(ne.line>a.doc.first){var Se=Xt(a.doc,ne.line-1).text;Se&&(ne=new ft(ne.line,1),a.replaceRange(me.charAt(0)+a.doc.lineSeparator()+Se.charAt(Se.length-1),ft(ne.line-1,Se.length-1),ne,"+transpose"))}}ee.push(new Na(ne,ne))}a.setSelections(ee)})},newlineAndIndent:function(a){return LA(a,function(){for(var b=a.listSelections(),ee=b.length-1;ee>=0;ee--)a.replaceRange(a.doc.lineSeparator(),b[ee].anchor,b[ee].head,"+input");b=a.listSelections();for(var z=0;z<b.length;z++)a.indentLine(b[z].from().line,null,!0);JA(a)})},openLine:function(a){return a.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(a){return a.toggleOverwrite()}};function vp(a,b){var ee=Xt(a.doc,b),z=Sr(ee);return z!=ee&&(b=Lt(z)),Sf(!0,a,z,b,1)}function cg(a,b){var ee=Xt(a.doc,b),z=hi(ee);return z!=ee&&(b=Lt(z)),Sf(!0,a,ee,b,-1)}function yp(a,b){var ee=vp(a,b.line),z=Xt(a.doc,ee.line),ne=ar(z,a.doc.direction);if(!ne||ne[0].level==0){var me=Math.max(ee.ch,z.text.search(/\S/)),Se=b.line==ee.line&&b.ch<=me&&b.ch;return ft(ee.line,Se?0:me,ee.sticky)}return ee}function bd(a,b,ee){if(typeof b=="string"&&(b=Ff[b],!b))return!1;a.display.input.ensurePolled();var z=a.display.shift,ne=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),ee&&(a.display.shift=!1),ne=b(a)!=mn}finally{a.display.shift=z,a.state.suppressEdits=!1}return ne}function fg(a,b,ee){for(var z=0;z<a.state.keyMaps.length;z++){var ne=Lu(b,a.state.keyMaps[z],ee,a);if(ne)return ne}return a.options.extraKeys&&Lu(b,a.options.extraKeys,ee,a)||Lu(b,a.options.keyMap,ee,a)}var dg=new xe;function If(a,b,ee,z){var ne=a.state.keySeq;if(ne){if(gh(b))return"handled";if(/\'$/.test(b)?a.state.keySeq=null:dg.set(50,function(){a.state.keySeq==ne&&(a.state.keySeq=null,a.display.input.reset())}),wh(a,ne+" "+b,ee,z))return!0}return wh(a,b,ee,z)}function wh(a,b,ee,z){var ne=fg(a,b,z);return ne=="multi"&&(a.state.keySeq=b),ne=="handled"&&es(a,"keyHandled",a,b,ee),(ne=="handled"||ne=="multi")&&(An(ee),xc(a)),!!ne}function bh(a,b){var ee=mh(b,!0);return ee?b.shiftKey&&!a.state.keySeq?If(a,"Shift-"+ee,b,function(z){return bd(a,z,!0)})||If(a,ee,b,function(z){if(typeof z=="string"?/^go[A-Z]/.test(z):z.motion)return bd(a,z)}):If(a,ee,b,function(z){return bd(a,z)}):!1}function wp(a,b,ee){return If(a,"'"+ee+"'",b,function(z){return bd(a,z,!0)})}var Bd=null;function Cd(a){var b=this;if(!(a.target&&a.target!=b.display.input.getField())&&(b.curOp.focus=lt(),!un(b,a))){rt&&at<11&&a.keyCode==27&&(a.returnValue=!1);var ee=a.keyCode;b.display.shift=ee==16||a.shiftKey;var z=bh(b,a);ce&&(Bd=z?ee:null,!z&&ee==88&&!Dr&&(ze?a.metaKey:a.ctrlKey)&&b.replaceSelection("",null,"cut")),oe&&!ze&&!z&&ee==46&&a.shiftKey&&!a.ctrlKey&&document.execCommand&&document.execCommand("cut"),ee==18&&!/\bCodeMirror-crosshair\b/.test(b.display.lineDiv.className)&&ru(b)}}function ru(a){var b=a.display.lineDiv;Fe(b,"CodeMirror-crosshair");function ee(z){(z.keyCode==18||!z.altKey)&&(Et(b,"CodeMirror-crosshair"),Un(document,"keyup",ee),Un(document,"mouseover",ee))}nn(document,"keyup",ee),nn(document,"mouseover",ee)}function bp(a){a.keyCode==16&&(this.doc.sel.shift=!1),un(this,a)}function Bp(a){var b=this;if(!(a.target&&a.target!=b.display.input.getField())&&!(Is(b.display,a)||un(b,a)||a.ctrlKey&&!a.altKey||ze&&a.metaKey)){var ee=a.keyCode,z=a.charCode;if(ce&&ee==Bd){Bd=null,An(a);return}if(!(ce&&(!a.which||a.which<10)&&bh(b,a))){var ne=String.fromCharCode(z==null?ee:z);ne!="\b"&&(wp(b,a,ne)||b.display.input.onKeyPress(a))}}}var Cp=400,Mc=function(a,b,ee){this.time=a,this.pos=b,this.button=ee};Mc.prototype.compare=function(a,b,ee){return this.time+Cp>a&&Gt(b,this.pos)==0&&ee==this.button};var Uu,iu;function xd(a,b){var ee=+new Date;return iu&&iu.compare(ee,a,b)?(Uu=iu=null,"triple"):Uu&&Uu.compare(ee,a,b)?(iu=new Mc(ee,a,b),Uu=null,"double"):(Uu=new Mc(ee,a,b),iu=null,"single")}function _c(a){var b=this,ee=b.display;if(!(un(b,a)||ee.activeTouch&&ee.input.supportsTouch())){if(ee.input.ensurePolled(),ee.shift=a.shiftKey,Is(ee,a)){Dt||(ee.scroller.draggable=!1,setTimeout(function(){return ee.scroller.draggable=!0},100));return}if(!Ch(b,a)){var z=Vu(b,a),ne=Kt(a),me=z?xd(z,ne):"single";window.focus(),ne==1&&b.state.selectingText&&b.state.selectingText(a),!(z&&xp(b,ne,z,me,a))&&(ne==1?z?Ep(b,z,me,a):gt(a)==ee.scroller&&An(a):ne==2?(z&&Uc(b.doc,z),setTimeout(function(){return ee.input.focus()},20)):ne==3&&(yt?b.display.input.onContextMenu(a):ad(b)))}}}function xp(a,b,ee,z,ne){var me="Click";return z=="double"?me="Double"+me:z=="triple"&&(me="Triple"+me),me=(b==1?"Left":b==2?"Middle":"Right")+me,If(a,xf(me,ne),ne,function(Se){if(typeof Se=="string"&&(Se=Ff[Se]),!Se)return!1;var Qe=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),Qe=Se(a,ee)!=mn}finally{a.state.suppressEdits=!1}return Qe})}function Bh(a,b,ee){var z=a.getOption("configureMouse"),ne=z?z(a,b,ee):{};if(ne.unit==null){var me=qe?ee.shiftKey&&ee.metaKey:ee.altKey;ne.unit=me?"rectangle":b=="single"?"char":b=="double"?"word":"line"}return(ne.extend==null||a.doc.extend)&&(ne.extend=a.doc.extend||ee.shiftKey),ne.addNew==null&&(ne.addNew=ze?ee.metaKey:ee.ctrlKey),ne.moveOnDrag==null&&(ne.moveOnDrag=!(ze?ee.altKey:ee.ctrlKey)),ne}function Ep(a,b,ee,z){rt?setTimeout(At(od,a),0):a.curOp.focus=lt();var ne=Bh(a,ee,z),me=a.doc.sel,Se;a.options.dragDrop&&vn&&!a.isReadOnly()&&ee=="single"&&(Se=me.contains(b))>-1&&(Gt((Se=me.ranges[Se]).from(),b)<0||b.xRel>0)&&(Gt(Se.to(),b)>0||b.xRel<0)?Lf(a,z,b,ne):Sp(a,z,b,ne)}function Lf(a,b,ee,z){var ne=a.display,me=!1,Se=Ls(a,function(Ye){Dt&&(ne.scroller.draggable=!1),a.state.draggingText=!1,Un(ne.wrapper.ownerDocument,"mouseup",Se),Un(ne.wrapper.ownerDocument,"mousemove",Qe),Un(ne.scroller,"dragstart",Re),Un(ne.scroller,"drop",Se),me||(An(Ye),z.addNew||Uc(a.doc,ee,null,null,z.extend),Dt&&!ke||rt&&at==9?setTimeout(function(){ne.wrapper.ownerDocument.body.focus({preventScroll:!0}),ne.input.focus()},20):ne.input.focus())}),Qe=function(Ye){me=me||Math.abs(b.clientX-Ye.clientX)+Math.abs(b.clientY-Ye.clientY)>=10},Re=function(){return me=!0};Dt&&(ne.scroller.draggable=!0),a.state.draggingText=Se,Se.copy=!z.moveOnDrag,ne.scroller.dragDrop&&ne.scroller.dragDrop(),nn(ne.wrapper.ownerDocument,"mouseup",Se),nn(ne.wrapper.ownerDocument,"mousemove",Qe),nn(ne.scroller,"dragstart",Re),nn(ne.scroller,"drop",Se),ad(a),setTimeout(function(){return ne.input.focus()},20)}function sc(a,b,ee){if(ee=="char")return new Na(b,b);if(ee=="word")return a.findWordAt(b);if(ee=="line")return new Na(ft(b.line,0),Zn(a.doc,ft(b.line+1,0)));var z=ee(a,b);return new Na(z.from,z.to)}function Sp(a,b,ee,z){var ne=a.display,me=a.doc;An(b);var Se,Qe,Re=me.sel,Ye=Re.ranges;if(z.addNew&&!z.extend?(Qe=me.sel.contains(ee),Qe>-1?Se=Ye[Qe]:Se=new Na(ee,ee)):(Se=me.sel.primary(),Qe=me.sel.primIndex),z.unit=="rectangle")z.addNew||(Se=new Na(ee,ee)),ee=Vu(a,b,!0,!0),Qe=-1;else{var rn=sc(a,ee,z.unit);z.extend?Se=ih(Se,rn.anchor,rn.head,z.extend):Se=rn}z.addNew?Qe==-1?(Qe=Ye.length,Gs(me,UA(a,Ye.concat([Se]),Qe),{scroll:!1,origin:"*mouse"})):Ye.length>1&&Ye[Qe].empty()&&z.unit=="char"&&!z.extend?(Gs(me,UA(a,Ye.slice(0,Qe).concat(Ye.slice(Qe+1)),0),{scroll:!1,origin:"*mouse"}),Re=me.sel):oh(me,Qe,Se,Ct):(Qe=0,Gs(me,new RA([Se],0),Ct),Re=me.sel);var gn=ee;function tr(Ei){if(Gt(gn,Ei)!=0)if(gn=Ei,z.unit=="rectangle"){for(var Hi=[],lo=a.options.tabSize,Ji=Te(Xt(me,ee.line).text,ee.ch,lo),yo=Te(Xt(me,Ei.line).text,Ei.ch,lo),ja=Math.min(Ji,yo),Os=Math.max(Ji,yo),ts=Math.min(ee.line,Ei.line),uA=Math.min(a.lastLine(),Math.max(ee.line,Ei.line));ts<=uA;ts++){var Rs=Xt(me,ts).text,Ss=In(Rs,ja,lo);ja==Os?Hi.push(new Na(ft(ts,Ss),ft(ts,Ss))):Rs.length>Ss&&Hi.push(new Na(ft(ts,Ss),ft(ts,In(Rs,Os,lo))))}Hi.length||Hi.push(new Na(ee,ee)),Gs(me,UA(a,Re.ranges.slice(0,Qe).concat(Hi),Qe),{origin:"*mouse",scroll:!1}),a.scrollIntoView(Ei)}else{var cA=Se,Vs=sc(a,Ei,z.unit),Bi=cA.anchor,Ya;Gt(Vs.anchor,Bi)>0?(Ya=Vs.head,Bi=kr(cA.from(),Vs.anchor)):(Ya=Vs.anchor,Bi=Or(cA.to(),Vs.head));var ns=Re.ranges.slice(0);ns[Qe]=Fp(a,new Na(Zn(me,Bi),Ya)),Gs(me,UA(a,ns,Qe),Ct)}}var $n=ne.wrapper.getBoundingClientRect(),Nr=0;function ni(Ei){var Hi=++Nr,lo=Vu(a,Ei,!0,z.unit=="rectangle");if(lo)if(Gt(lo,gn)!=0){a.curOp.focus=lt(),tr(lo);var Ji=Xl(ne,me);(lo.line>=Ji.to||lo.line<Ji.from)&&setTimeout(Ls(a,function(){Nr==Hi&&ni(Ei)}),150)}else{var yo=Ei.clientY<$n.top?-20:Ei.clientY>$n.bottom?20:0;yo&&setTimeout(Ls(a,function(){Nr==Hi&&(ne.scroller.scrollTop+=yo,ni(Ei))}),50)}}function di(Ei){a.state.selectingText=!1,Nr=1/0,Ei&&(An(Ei),ne.input.focus()),Un(ne.wrapper.ownerDocument,"mousemove",Ci),Un(ne.wrapper.ownerDocument,"mouseup",Ui),me.history.lastSelOrigin=null}var Ci=Ls(a,function(Ei){Ei.buttons===0||!Kt(Ei)?di(Ei):ni(Ei)}),Ui=Ls(a,di);a.state.selectingText=Ui,nn(ne.wrapper.ownerDocument,"mousemove",Ci),nn(ne.wrapper.ownerDocument,"mouseup",Ui)}function Fp(a,b){var ee=b.anchor,z=b.head,ne=Xt(a.doc,ee.line);if(Gt(ee,z)==0&&ee.sticky==z.sticky)return b;var me=ar(ne);if(!me)return b;var Se=Sn(me,ee.ch,ee.sticky),Qe=me[Se];if(Qe.from!=ee.ch&&Qe.to!=ee.ch)return b;var Re=Se+(Qe.from==ee.ch==(Qe.level!=1)?0:1);if(Re==0||Re==me.length)return b;var Ye;if(z.line!=ee.line)Ye=(z.line-ee.line)*(a.doc.direction=="ltr"?1:-1)>0;else{var rn=Sn(me,z.ch,z.sticky),gn=rn-Se||(z.ch-ee.ch)*(Qe.level==1?-1:1);rn==Re-1||rn==Re?Ye=gn<0:Ye=gn>0}var tr=me[Re+(Ye?-1:0)],$n=Ye==(tr.level==1),Nr=$n?tr.from:tr.to,ni=$n?"after":"before";return ee.ch==Nr&&ee.sticky==ni?b:new Na(new ft(ee.line,Nr,ni),z)}function Ip(a,b,ee,z){var ne,me;if(b.touches)ne=b.touches[0].clientX,me=b.touches[0].clientY;else try{ne=b.clientX,me=b.clientY}catch(tr){return!1}if(ne>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;z&&An(b);var Se=a.display,Qe=Se.lineDiv.getBoundingClientRect();if(me>Qe.bottom||!Xn(a,ee))return Jn(b);me-=Qe.top-Se.viewOffset;for(var Re=0;Re<a.display.gutterSpecs.length;++Re){var Ye=Se.gutters.childNodes[Re];if(Ye&&Ye.getBoundingClientRect().right>=ne){var rn=Vt(a.doc,me),gn=a.display.gutterSpecs[Re];return Nn(a,ee,a,rn,gn.className,b),Jn(b)}}}function Ch(a,b){return Ip(a,b,"gutterClick",!0)}function xh(a,b){Is(a.display,b)||kc(a,b)||un(a,b,"contextmenu")||yt||a.display.input.onContextMenu(b)}function kc(a,b){return Xn(a,"gutterContextMenu")?Ip(a,b,"gutterContextMenu",!1):!1}function Ed(a){a.display.wrapper.className=a.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+a.options.theme.replace(/(^|\s)\s*/g," cm-s-"),kA(a)}var ou={toString:function(){return"CodeMirror.Init"}},Lp={},Sd={};function hg(a){var b=a.optionHandlers;function ee(z,ne,me,Se){a.defaults[z]=ne,me&&(b[z]=Se?function(Qe,Re,Ye){Ye!=ou&&me(Qe,Re,Ye)}:me)}a.defineOption=ee,a.Init=ou,ee("value","",function(z,ne){return z.setValue(ne)},!0),ee("mode",null,function(z,ne){z.doc.modeOption=ne,eh(z)},!0),ee("indentUnit",2,eh,!0),ee("indentWithTabs",!1),ee("smartIndent",!0),ee("tabSize",4,function(z){pf(z),kA(z),Ws(z)},!0),ee("lineSeparator",null,function(z,ne){if(z.doc.lineSep=ne,!!ne){var me=[],Se=z.doc.first;z.doc.iter(function(Re){for(var Ye=0;;){var rn=Re.text.indexOf(ne,Ye);if(rn==-1)break;Ye=rn+ne.length,me.push(ft(Se,rn))}Se++});for(var Qe=me.length-1;Qe>=0;Qe--)rc(z.doc,ne,me[Qe],ft(me[Qe].line,me[Qe].ch+ne.length))}}),ee("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(z,ne,me){z.state.specialChars=new RegExp(ne.source+(ne.test(" ")?"":"| "),"g"),me!=ou&&z.refresh()}),ee("specialCharPlaceholder",mA,function(z){return z.refresh()},!0),ee("electricChars",!0),ee("inputStyle",Ge?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),ee("spellcheck",!1,function(z,ne){return z.getInputField().spellcheck=ne},!0),ee("autocorrect",!1,function(z,ne){return z.getInputField().autocorrect=ne},!0),ee("autocapitalize",!1,function(z,ne){return z.getInputField().autocapitalize=ne},!0),ee("rtlMoveVisually",!pt),ee("wholeLineUpdateBefore",!0),ee("theme","default",function(z){Ed(z),ql(z)},!0),ee("keyMap","default",function(z,ne,me){var Se=Es(ne),Qe=me!=ou&&Es(me);Qe&&Qe.detach&&Qe.detach(z,Se),Se.attach&&Se.attach(z,Qe||null)}),ee("extraKeys",null),ee("configureMouse",null),ee("lineWrapping",!1,Up,!0),ee("gutters",[],function(z,ne){z.display.gutterSpecs=Sc(ne,z.options.lineNumbers),ql(z)},!0),ee("fixedGutter",!0,function(z,ne){z.display.gutters.style.left=ne?Cc(z.display)+"px":"0",z.refresh()},!0),ee("coverGutterNextToScrollbar",!1,function(z){return jl(z)},!0),ee("scrollbarStyle","native",function(z){ep(z),jl(z),z.display.scrollbars.setScrollTop(z.doc.scrollTop),z.display.scrollbars.setScrollLeft(z.doc.scrollLeft)},!0),ee("lineNumbers",!1,function(z,ne){z.display.gutterSpecs=Sc(z.options.gutters,ne),ql(z)},!0),ee("firstLineNumber",1,ql,!0),ee("lineNumberFormatter",function(z){return z},ql,!0),ee("showCursorWhenSelecting",!1,IA,!0),ee("resetSelectionOnContextMenu",!0),ee("lineWiseCopyCut",!0),ee("pasteLinesPerSelection",!0),ee("selectionsMayTouch",!1),ee("readOnly",!1,function(z,ne){ne=="nocursor"&&(dl(z),z.display.input.blur()),z.display.input.readOnlyChanged(ne)}),ee("screenReaderLabel",null,function(z,ne){ne=ne===""?null:ne,z.display.input.screenReaderLabelChanged(ne)}),ee("disableInput",!1,function(z,ne){ne||z.display.input.reset()},!0),ee("dragDrop",!0,pg),ee("allowDropFileTypes",null),ee("cursorBlinkRate",530),ee("cursorScrollMargin",0),ee("cursorHeight",1,IA,!0),ee("singleCursorHeightPerLine",!0,IA,!0),ee("workTime",100),ee("workDelay",100),ee("flattenSpans",!0,pf,!0),ee("addModeClass",!1,pf,!0),ee("pollInterval",100),ee("undoDepth",200,function(z,ne){return z.doc.history.undoDepth=ne}),ee("historyEventDelay",1250),ee("viewportMargin",10,function(z){return z.refresh()},!0),ee("maxHighlightLength",1e4,pf,!0),ee("moveInputWithCursor",!0,function(z,ne){ne||z.display.input.resetPosition()}),ee("tabindex",null,function(z,ne){return z.display.input.getField().tabIndex=ne||""}),ee("autofocus",null),ee("direction","ltr",function(z,ne){return z.doc.setDirection(ne)},!0),ee("phrases",null)}function pg(a,b,ee){var z=ee&&ee!=ou;if(!b!=!z){var ne=a.display.dragFunctions,me=b?nn:Un;me(a.display.scroller,"dragstart",ne.start),me(a.display.scroller,"dragenter",ne.enter),me(a.display.scroller,"dragover",ne.over),me(a.display.scroller,"dragleave",ne.leave),me(a.display.scroller,"drop",ne.drop)}}function Up(a){a.options.lineWrapping?(Fe(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(Et(a.display.wrapper,"CodeMirror-wrap"),Do(a)),id(a),Ws(a),kA(a),setTimeout(function(){return jl(a)},100)}function $a(a,b){var ee=this;if(!(this instanceof $a))return new $a(a,b);this.options=b=b?Qt(b):{},Qt(Lp,b,!1);var z=b.value;typeof z=="string"?z=new lA(z,b.mode,null,b.lineSeparator,b.direction):b.mode&&(z.modeOption=b.mode),this.doc=z;var ne=new $a.inputStyles[b.inputStyle](this),me=this.display=new og(a,z,ne,b);me.wrapper.CodeMirror=this,Ed(this),b.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),ep(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 xe,keySeq:null,specialChars:null},b.autofocus&&!Ge&&me.input.focus(),rt&&at<11&&setTimeout(function(){return ee.display.input.reset(!0)},20),Op(this),vd(),yA(this),this.curOp.forceUpdate=!0,Us(this,z),b.autofocus&&!Ge||this.hasFocus()?setTimeout(function(){ee.hasFocus()&&!ee.state.focused&&ff(ee)},20):dl(this);for(var Se in Sd)Sd.hasOwnProperty(Se)&&Sd[Se](this,b[Se],ou);ip(this),b.finishInit&&b.finishInit(this);for(var Qe=0;Qe<Fd.length;++Qe)Fd[Qe](this);Ol(this),Dt&&b.lineWrapping&&getComputedStyle(me.lineDiv).textRendering=="optimizelegibility"&&(me.lineDiv.style.textRendering="auto")}$a.defaults=Lp,$a.optionHandlers=Sd;function Op(a){var b=a.display;nn(b.scroller,"mousedown",Ls(a,_c)),rt&&at<11?nn(b.scroller,"dblclick",Ls(a,function(Re){if(!un(a,Re)){var Ye=Vu(a,Re);if(!(!Ye||Ch(a,Re)||Is(a.display,Re))){An(Re);var rn=a.findWordAt(Ye);Uc(a.doc,rn.anchor,rn.head)}}})):nn(b.scroller,"dblclick",function(Re){return un(a,Re)||An(Re)}),nn(b.scroller,"contextmenu",function(Re){return xh(a,Re)}),nn(b.input.getField(),"contextmenu",function(Re){b.scroller.contains(Re.target)||xh(a,Re)});var ee,z={end:0};function ne(){b.activeTouch&&(ee=setTimeout(function(){return b.activeTouch=null},1e3),z=b.activeTouch,z.end=+new Date)}function me(Re){if(Re.touches.length!=1)return!1;var Ye=Re.touches[0];return Ye.radiusX<=1&&Ye.radiusY<=1}function Se(Re,Ye){if(Ye.left==null)return!0;var rn=Ye.left-Re.left,gn=Ye.top-Re.top;return rn*rn+gn*gn>20*20}nn(b.scroller,"touchstart",function(Re){if(!un(a,Re)&&!me(Re)&&!Ch(a,Re)){b.input.ensurePolled(),clearTimeout(ee);var Ye=+new Date;b.activeTouch={start:Ye,moved:!1,prev:Ye-z.end<=300?z:null},Re.touches.length==1&&(b.activeTouch.left=Re.touches[0].pageX,b.activeTouch.top=Re.touches[0].pageY)}}),nn(b.scroller,"touchmove",function(){b.activeTouch&&(b.activeTouch.moved=!0)}),nn(b.scroller,"touchend",function(Re){var Ye=b.activeTouch;if(Ye&&!Is(b,Re)&&Ye.left!=null&&!Ye.moved&&new Date-Ye.start<300){var rn=a.coordsChar(b.activeTouch,"page"),gn;!Ye.prev||Se(Ye,Ye.prev)?gn=new Na(rn,rn):!Ye.prev.prev||Se(Ye,Ye.prev.prev)?gn=a.findWordAt(rn):gn=new Na(ft(rn.line,0),Zn(a.doc,ft(rn.line+1,0))),a.setSelection(gn.anchor,gn.head),a.focus(),An(Re)}ne()}),nn(b.scroller,"touchcancel",ne),nn(b.scroller,"scroll",function(){b.scroller.clientHeight&&(AA(a,b.scroller.scrollTop),Ul(a,b.scroller.scrollLeft,!0),Nn(a,"scroll",a))}),nn(b.scroller,"mousewheel",function(Re){return ap(a,Re)}),nn(b.scroller,"DOMMouseScroll",function(Re){return ap(a,Re)}),nn(b.wrapper,"scroll",function(){return b.wrapper.scrollTop=b.wrapper.scrollLeft=0}),b.dragFunctions={enter:function(Re){un(a,Re)||nt(Re)},over:function(Re){un(a,Re)||(dh(a,Re),nt(Re))},start:function(Re){return md(a,Re)},drop:Ls(a,fh),leave:function(Re){un(a,Re)||hh(a)}};var Qe=b.input.getField();nn(Qe,"keyup",function(Re){return bp.call(a,Re)}),nn(Qe,"keydown",Ls(a,Cd)),nn(Qe,"keypress",Ls(a,Bp)),nn(Qe,"focus",function(Re){return ff(a,Re)}),nn(Qe,"blur",function(Re){return dl(a,Re)})}var Fd=[];$a.defineInitHook=function(a){return Fd.push(a)};function Ac(a,b,ee,z){var ne=a.doc,me;ee==null&&(ee="add"),ee=="smart"&&(ne.mode.indent?me=Vi(a,b).state:ee="prev");var Se=a.options.tabSize,Qe=Xt(ne,b),Re=Te(Qe.text,null,Se);Qe.stateAfter&&(Qe.stateAfter=null);var Ye=Qe.text.match(/^\s*/)[0],rn;if(!z&&!/\S/.test(Qe.text))rn=0,ee="not";else if(ee=="smart"&&(rn=ne.mode.indent(me,Qe.text.slice(Ye.length),Qe.text),rn==mn||rn>150)){if(!z)return;ee="prev"}ee=="prev"?b>ne.first?rn=Te(Xt(ne,b-1).text,null,Se):rn=0:ee=="add"?rn=Re+a.options.indentUnit:ee=="subtract"?rn=Re-a.options.indentUnit:typeof ee=="number"&&(rn=Re+ee),rn=Math.max(0,rn);var gn="",tr=0;if(a.options.indentWithTabs)for(var $n=Math.floor(rn/Se);$n;--$n)tr+=Se,gn+=" ";if(tr<rn&&(gn+=Wn(rn-tr)),gn!=Ye)return rc(ne,gn,ft(b,0),ft(b,Ye.length),"+input"),Qe.stateAfter=null,!0;for(var Nr=0;Nr<ne.sel.ranges.length;Nr++){var ni=ne.sel.ranges[Nr];if(ni.head.line==b&&ni.head.ch<Ye.length){var di=ft(b,Ye.length);oh(ne,Nr,new Na(di,di));break}}}var gl=null;function Uf(a){gl=a}function Of(a,b,ee,z,ne){var me=a.doc;a.display.shift=!1,z||(z=me.sel);var Se=+new Date-200,Qe=ne=="paste"||a.state.pasteIncoming>Se,Re=vr(b),Ye=null;if(Qe&&z.ranges.length>1)if(gl&&gl.text.join(`
|
|
|
`)==b){if(z.ranges.length%gl.text.length==0){Ye=[];for(var rn=0;rn<gl.text.length;rn++)Ye.push(me.splitLines(gl.text[rn]))}}else Re.length==z.ranges.length&&a.options.pasteLinesPerSelection&&(Ye=En(Re,function(Ci){return[Ci]}));for(var gn=a.curOp.updateInput,tr=z.ranges.length-1;tr>=0;tr--){var $n=z.ranges[tr],Nr=$n.from(),ni=$n.to();$n.empty()&&(ee&&ee>0?Nr=ft(Nr.line,Nr.ch-ee):a.state.overwrite&&!Qe?ni=ft(ni.line,Math.min(Xt(me,ni.line).text.length,ni.ch+ct(Re).length)):Qe&&gl&&gl.lineWise&&gl.text.join(`
|
|
|
`)==Re.join(`
|
|
|
`)&&(Nr=ni=ft(Nr.line,0)));var di={from:Nr,to:ni,text:Ye?Ye[tr%Ye.length]:Re,origin:ne||(Qe?"paste":a.state.cutIncoming>Se?"cut":"+input")};nc(a.doc,di),es(a,"inputRead",a,di)}b&&!Qe&&Df(a,b),JA(a),a.curOp.updateInput<2&&(a.curOp.updateInput=gn),a.curOp.typing=!0,a.state.pasteIncoming=a.state.cutIncoming=-1}function Hc(a,b){var ee=a.clipboardData&&a.clipboardData.getData("Text");if(ee)return a.preventDefault(),!b.isReadOnly()&&!b.options.disableInput&&LA(b,function(){return Of(b,ee,0,null,"paste")}),!0}function Df(a,b){if(!(!a.options.electricChars||!a.options.smartIndent))for(var ee=a.doc.sel,z=ee.ranges.length-1;z>=0;z--){var ne=ee.ranges[z];if(!(ne.head.ch>100||z&&ee.ranges[z-1].head.line==ne.head.line)){var me=a.getModeAt(ne.head),Se=!1;if(me.electricChars){for(var Qe=0;Qe<me.electricChars.length;Qe++)if(b.indexOf(me.electricChars.charAt(Qe))>-1){Se=Ac(a,ne.head.line,"smart");break}}else me.electricInput&&me.electricInput.test(Xt(a.doc,ne.head.line).text.slice(0,ne.head.ch))&&(Se=Ac(a,ne.head.line,"smart"));Se&&es(a,"electricInput",a,ne.head.line)}}}function Eh(a){for(var b=[],ee=[],z=0;z<a.doc.sel.ranges.length;z++){var ne=a.doc.sel.ranges[z].head.line,me={anchor:ft(ne,0),head:ft(ne+1,0)};ee.push(me),b.push(a.getRange(me.anchor,me.head))}return{text:b,ranges:ee}}function Sh(a,b,ee,z){a.setAttribute("autocorrect",ee?"":"off"),a.setAttribute("autocapitalize",z?"":"off"),a.setAttribute("spellcheck",!!b)}function gg(){var a=St("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),b=St("div",[a],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return Dt?a.style.width="1000px":a.setAttribute("wrap","off"),Ke&&(a.style.border="1px solid black"),Sh(a),b}function Fh(a){var b=a.optionHandlers,ee=a.helpers={};a.prototype={constructor:a,focus:function(){window.focus(),this.display.input.focus()},setOption:function(z,ne){var me=this.options,Se=me[z];me[z]==ne&&z!="mode"||(me[z]=ne,b.hasOwnProperty(z)&&Ls(this,b[z])(this,ne,Se),Nn(this,"optionChange",this,z))},getOption:function(z){return this.options[z]},getDoc:function(){return this.doc},addKeyMap:function(z,ne){this.state.keyMaps[ne?"push":"unshift"](Es(z))},removeKeyMap:function(z){for(var ne=this.state.keyMaps,me=0;me<ne.length;++me)if(ne[me]==z||ne[me].name==z)return ne.splice(me,1),!0},addOverlay:wA(function(z,ne){var me=z.token?z:a.getMode(this.options,z);if(me.startState)throw new Error("Overlays may not be stateful.");Rt(this.state.overlays,{mode:me,modeSpec:z,opaque:ne&&ne.opaque,priority:ne&&ne.priority||0},function(Se){return Se.priority}),this.state.modeGen++,Ws(this)}),removeOverlay:wA(function(z){for(var ne=this.state.overlays,me=0;me<ne.length;++me){var Se=ne[me].modeSpec;if(Se==z||typeof z=="string"&&Se.name==z){ne.splice(me,1),this.state.modeGen++,Ws(this);return}}}),indentLine:wA(function(z,ne,me){typeof ne!="string"&&typeof ne!="number"&&(ne==null?ne=this.options.smartIndent?"smart":"prev":ne=ne?"add":"subtract"),ot(this.doc,z)&&Ac(this,z,ne,me)}),indentSelection:wA(function(z){for(var ne=this.doc.sel.ranges,me=-1,Se=0;Se<ne.length;Se++){var Qe=ne[Se];if(Qe.empty())Qe.head.line>me&&(Ac(this,Qe.head.line,z,!0),me=Qe.head.line,Se==this.doc.sel.primIndex&&JA(this));else{var Re=Qe.from(),Ye=Qe.to(),rn=Math.max(me,Re.line);me=Math.min(this.lastLine(),Ye.line-(Ye.ch?0:1))+1;for(var gn=rn;gn<me;++gn)Ac(this,gn,z);var tr=this.doc.sel.ranges;Re.ch==0&&ne.length==tr.length&&tr[Se].from().ch>0&&oh(this.doc,Se,new Na(Re,tr[Se].to()),Ze)}}}),getTokenAt:function(z,ne){return ki(this,z,ne)},getLineTokens:function(z,ne){return ki(this,ft(z),ne,!0)},getTokenTypeAt:function(z){z=Zn(this.doc,z);var ne=Ki(this,Xt(this.doc,z.line)),me=0,Se=(ne.length-1)/2,Qe=z.ch,Re;if(Qe==0)Re=ne[2];else for(;;){var Ye=me+Se>>1;if((Ye?ne[Ye*2-1]:0)>=Qe)Se=Ye;else if(ne[Ye*2+1]<Qe)me=Ye+1;else{Re=ne[Ye*2+2];break}}var rn=Re?Re.indexOf("overlay "):-1;return rn<0?Re:rn==0?null:Re.slice(0,rn-1)},getModeAt:function(z){var ne=this.doc.mode;return ne.innerMode?a.innerMode(ne,this.getTokenAt(z).state).mode:ne},getHelper:function(z,ne){return this.getHelpers(z,ne)[0]},getHelpers:function(z,ne){var me=[];if(!ee.hasOwnProperty(ne))return me;var Se=ee[ne],Qe=this.getModeAt(z);if(typeof Qe[ne]=="string")Se[Qe[ne]]&&me.push(Se[Qe[ne]]);else if(Qe[ne])for(var Re=0;Re<Qe[ne].length;Re++){var Ye=Se[Qe[ne][Re]];Ye&&me.push(Ye)}else Qe.helperType&&Se[Qe.helperType]?me.push(Se[Qe.helperType]):Se[Qe.name]&&me.push(Se[Qe.name]);for(var rn=0;rn<Se._global.length;rn++){var gn=Se._global[rn];gn.pred(Qe,this)&&It(me,gn.val)==-1&&me.push(gn.val)}return me},getStateAfter:function(z,ne){var me=this.doc;return z=dr(me,z==null?me.first+me.size-1:z),Vi(this,z+1,ne).state},cursorCoords:function(z,ne){var me,Se=this.doc.sel.primary();return z==null?me=Se.head:typeof z=="object"?me=Zn(this.doc,z):me=z?Se.from():Se.to(),aA(this,me,ne||"page")},charCoords:function(z,ne){return ks(this,Zn(this.doc,z),ne||"page")},coordsChar:function(z,ne){return z=uf(this,z,ne||"page"),xa(this,z.left,z.top)},lineAtHeight:function(z,ne){return z=uf(this,{top:z,left:0},ne||"page").top,Vt(this.doc,z+this.display.viewOffset)},heightAtLine:function(z,ne,me){var Se=!1,Qe;if(typeof z=="number"){var Re=this.doc.first+this.doc.size-1;z<this.doc.first?z=this.doc.first:z>Re&&(z=Re,Se=!0),Qe=Xt(this.doc,z)}else Qe=z;return Gu(this,Qe,{top:0,left:0},ne||"page",me||Se).top+(Se?this.doc.height-to(Qe):0)},defaultTextHeight:function(){return FA(this.display)},defaultCharWidth:function(){return El(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(z,ne,me,Se,Qe){var Re=this.display;z=aA(this,Zn(this.doc,z));var Ye=z.bottom,rn=z.left;if(ne.style.position="absolute",ne.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(ne),Re.sizer.appendChild(ne),Se=="over")Ye=z.top;else if(Se=="above"||Se=="near"){var gn=Math.max(Re.wrapper.clientHeight,this.doc.height),tr=Math.max(Re.sizer.clientWidth,Re.lineSpace.clientWidth);(Se=="above"||z.bottom+ne.offsetHeight>gn)&&z.top>ne.offsetHeight?Ye=z.top-ne.offsetHeight:z.bottom+ne.offsetHeight<=gn&&(Ye=z.bottom),rn+ne.offsetWidth>tr&&(rn=tr-ne.offsetWidth)}ne.style.top=Ye+"px",ne.style.left=ne.style.right="",Qe=="right"?(rn=Re.sizer.clientWidth-ne.offsetWidth,ne.style.right="0px"):(Qe=="left"?rn=0:Qe=="middle"&&(rn=(Re.sizer.clientWidth-ne.offsetWidth)/2),ne.style.left=rn+"px"),me&&Xp(this,{left:rn,top:Ye,right:rn+ne.offsetWidth,bottom:Ye+ne.offsetHeight})},triggerOnKeyDown:wA(Cd),triggerOnKeyPress:wA(Bp),triggerOnKeyUp:bp,triggerOnMouseDown:wA(_c),execCommand:function(z){if(Ff.hasOwnProperty(z))return Ff[z].call(null,this)},triggerElectric:wA(function(z){Df(this,z)}),findPosH:function(z,ne,me,Se){var Qe=1;ne<0&&(Qe=-1,ne=-ne);for(var Re=Zn(this.doc,z),Ye=0;Ye<ne&&(Re=Nf(this.doc,Re,Qe,me,Se),!Re.hitSide);++Ye);return Re},moveH:wA(function(z,ne){var me=this;this.extendSelectionsBy(function(Se){return me.display.shift||me.doc.extend||Se.empty()?Nf(me.doc,Se.head,z,ne,me.options.rtlMoveVisually):z<0?Se.from():Se.to()},_t)}),deleteH:wA(function(z,ne){var me=this.doc.sel,Se=this.doc;me.somethingSelected()?Se.replaceSelection("",null,"+delete"):pl(this,function(Qe){var Re=Nf(Se,Qe.head,z,ne,!1);return z<0?{from:Re,to:Qe.head}:{from:Qe.head,to:Re}})}),findPosV:function(z,ne,me,Se){var Qe=1,Re=Se;ne<0&&(Qe=-1,ne=-ne);for(var Ye=Zn(this.doc,z),rn=0;rn<ne;++rn){var gn=aA(this,Ye,"div");if(Re==null?Re=gn.left:gn.left=Re,Ye=Dp(this,gn,Qe,me),Ye.hitSide)break}return Ye},moveV:wA(function(z,ne){var me=this,Se=this.doc,Qe=[],Re=!this.display.shift&&!Se.extend&&Se.sel.somethingSelected();if(Se.extendSelectionsBy(function(rn){if(Re)return z<0?rn.from():rn.to();var gn=aA(me,rn.head,"div");rn.goalColumn!=null&&(gn.left=rn.goalColumn),Qe.push(gn.left);var tr=Dp(me,gn,z,ne);return ne=="page"&&rn==Se.sel.primary()&&sd(me,ks(me,tr,"div").top-gn.top),tr},_t),Qe.length)for(var Ye=0;Ye<Se.sel.ranges.length;Ye++)Se.sel.ranges[Ye].goalColumn=Qe[Ye]}),findWordAt:function(z){var ne=this.doc,me=Xt(ne,z.line).text,Se=z.ch,Qe=z.ch;if(me){var Re=this.getHelper(z,"wordChars");(z.sticky=="before"||Qe==me.length)&&Se?--Se:++Qe;for(var Ye=me.charAt(Se),rn=Ie(Ye,Re)?function(gn){return Ie(gn,Re)}:/\s/.test(Ye)?function(gn){return/\s/.test(gn)}:function(gn){return!/\s/.test(gn)&&!Ie(gn)};Se>0&&rn(me.charAt(Se-1));)--Se;for(;Qe<me.length&&rn(me.charAt(Qe));)++Qe}return new Na(ft(z.line,Se),ft(z.line,Qe))},toggleOverwrite:function(z){z!=null&&z==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Fe(this.display.cursorDiv,"CodeMirror-overwrite"):Et(this.display.cursorDiv,"CodeMirror-overwrite"),Nn(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==lt()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:wA(function(z,ne){wu(this,z,ne)}),getScrollInfo:function(){var z=this.display.scroller;return{left:z.scrollLeft,top:z.scrollTop,height:z.scrollHeight-_A(this)-this.display.barHeight,width:z.scrollWidth-_A(this)-this.display.barWidth,clientHeight:Za(this),clientWidth:oA(this)}},scrollIntoView:wA(function(z,ne){z==null?(z={from:this.doc.sel.primary().head,to:null},ne==null&&(ne=this.options.cursorScrollMargin)):typeof z=="number"?z={from:ft(z,0),to:null}:z.from==null&&(z={from:z,to:null}),z.to||(z.to=z.from),z.margin=ne||0,z.from.line!=null?Xg(this,z):HA(this,z.from,z.to,z.margin)}),setSize:wA(function(z,ne){var me=this,Se=function(Re){return typeof Re=="number"||/^\d+$/.test(String(Re))?Re+"px":Re};z!=null&&(this.display.wrapper.style.width=Se(z)),ne!=null&&(this.display.wrapper.style.height=Se(ne)),this.options.lineWrapping&&Ks(this);var Qe=this.display.viewFrom;this.doc.iter(Qe,this.display.viewTo,function(Re){if(Re.widgets){for(var Ye=0;Ye<Re.widgets.length;Ye++)if(Re.widgets[Ye].noHScroll){Zl(me,Qe,"widget");break}}++Qe}),this.curOp.forceUpdate=!0,Nn(this,"refresh",this)}),operation:function(z){return LA(this,z)},startOperation:function(){return yA(this)},endOperation:function(){return Ol(this)},refresh:wA(function(){var z=this.display.cachedTextHeight;Ws(this),this.curOp.forceUpdate=!0,kA(this),wu(this,this.doc.scrollLeft,this.doc.scrollTop),qu(this.display),(z==null||Math.abs(z-FA(this.display))>.5||this.options.lineWrapping)&&id(this),Nn(this,"refresh",this)}),swapDoc:wA(function(z){var ne=this.doc;return ne.cm=null,this.state.selectingText&&this.state.selectingText(),Us(this,z),kA(this),this.display.input.reset(),wu(this,z.scrollLeft,z.scrollTop),this.curOp.forceScroll=!0,es(this,"swapDoc",this,ne),ne}),phrase:function(z){var ne=this.options.phrases;return ne&&Object.prototype.hasOwnProperty.call(ne,z)?ne[z]:z},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}},Ft(a),a.registerHelper=function(z,ne,me){ee.hasOwnProperty(z)||(ee[z]=a[z]={_global:[]}),ee[z][ne]=me},a.registerGlobalHelper=function(z,ne,me,Se){a.registerHelper(z,ne,Se),ee[z]._global.push({pred:me,val:Se})}}function Nf(a,b,ee,z,ne){var me=b,Se=ee,Qe=Xt(a,b.line),Re=ne&&a.direction=="rtl"?-ee:ee;function Ye(){var Ui=b.line+Re;return Ui<a.first||Ui>=a.first+a.size?!1:(b=new ft(Ui,b.ch,b.sticky),Qe=Xt(a,Ui))}function rn(Ui){var Ei;if(z=="codepoint"){var Hi=Qe.text.charCodeAt(b.ch+(z>0?0:-1));isNaN(Hi)?Ei=null:Ei=new ft(b.line,Math.max(0,Math.min(Qe.text.length,b.ch+ee*(Hi>=55296&&Hi<56320?2:1))),-ee)}else ne?Ei=yh(a.cm,Qe,b,ee):Ei=vh(Qe,b,ee);if(Ei==null)if(!Ui&&Ye())b=Sf(ne,a.cm,Qe,b.line,Re);else return!1;else b=Ei;return!0}if(z=="char"||z=="codepoint")rn();else if(z=="column")rn(!0);else if(z=="word"||z=="group")for(var gn=null,tr=z=="group",$n=a.cm&&a.cm.getHelper(b,"wordChars"),Nr=!0;!(ee<0&&!rn(!Nr));Nr=!1){var ni=Qe.text.charAt(b.ch)||`
|
|
|
`,di=Ie(ni,$n)?"w":tr&&ni==`
|
|
|
`?"n":!tr||/\s/.test(ni)?null:"p";if(tr&&!Nr&&!di&&(di="s"),gn&&gn!=di){ee<0&&(ee=1,rn(),b.sticky="after");break}if(di&&(gn=di),ee>0&&!rn(!Nr))break}var Ci=dd(a,b,me,Se,!0);return Fn(me,Ci)&&(Ci.hitSide=!0),Ci}function Dp(a,b,ee,z){var ne=a.doc,me=b.left,Se;if(z=="page"){var Qe=Math.min(a.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),Re=Math.max(Qe-.5*FA(a.display),3);Se=(ee>0?b.bottom:b.top)+ee*Re}else z=="line"&&(Se=ee>0?b.bottom+3:b.top-3);for(var Ye;Ye=xa(a,me,Se),!!Ye.outside;){if(ee<0?Se<=0:Se>=ne.height){Ye.hitSide=!0;break}Se+=ee*5}return Ye}var _a=function(a){this.cm=a,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new xe,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};_a.prototype.init=function(a){var b=this,ee=this,z=ee.cm,ne=ee.div=a.lineDiv;Sh(ne,z.options.spellcheck,z.options.autocorrect,z.options.autocapitalize);function me(Qe){for(var Re=Qe.target;Re;Re=Re.parentNode){if(Re==ne)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(Re.className))break}return!1}nn(ne,"paste",function(Qe){!me(Qe)||un(z,Qe)||Hc(Qe,z)||at<=11&&setTimeout(Ls(z,function(){return b.updateFromDOM()}),20)}),nn(ne,"compositionstart",function(Qe){b.composing={data:Qe.data,done:!1}}),nn(ne,"compositionupdate",function(Qe){b.composing||(b.composing={data:Qe.data,done:!1})}),nn(ne,"compositionend",function(Qe){b.composing&&(Qe.data!=b.composing.data&&b.readFromDOMSoon(),b.composing.done=!0)}),nn(ne,"touchstart",function(){return ee.forceCompositionEnd()}),nn(ne,"input",function(){b.composing||b.readFromDOMSoon()});function Se(Qe){if(!(!me(Qe)||un(z,Qe))){if(z.somethingSelected())Uf({lineWise:!1,text:z.getSelections()}),Qe.type=="cut"&&z.replaceSelection("",null,"cut");else if(z.options.lineWiseCopyCut){var Re=Eh(z);Uf({lineWise:!0,text:Re.text}),Qe.type=="cut"&&z.operation(function(){z.setSelections(Re.ranges,0,Ze),z.replaceSelection("",null,"cut")})}else return;if(Qe.clipboardData){Qe.clipboardData.clearData();var Ye=gl.text.join(`
|
|
|
`);if(Qe.clipboardData.setData("Text",Ye),Qe.clipboardData.getData("Text")==Ye){Qe.preventDefault();return}}var rn=gg(),gn=rn.firstChild;z.display.lineSpace.insertBefore(rn,z.display.lineSpace.firstChild),gn.value=gl.text.join(`
|
|
|
`);var tr=document.activeElement;$e(gn),setTimeout(function(){z.display.lineSpace.removeChild(rn),tr.focus(),tr==ne&&ee.showPrimarySelection()},50)}}nn(ne,"copy",Se),nn(ne,"cut",Se)},_a.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute("aria-label",a):this.div.removeAttribute("aria-label")},_a.prototype.prepareSelection=function(){var a=Fl(this.cm,!1);return a.focus=document.activeElement==this.div,a},_a.prototype.showSelection=function(a,b){!a||!this.cm.display.view.length||((a.focus||b)&&this.showPrimarySelection(),this.showMultipleSelections(a))},_a.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},_a.prototype.showPrimarySelection=function(){var a=this.getSelection(),b=this.cm,ee=b.doc.sel.primary(),z=ee.from(),ne=ee.to();if(b.display.viewTo==b.display.viewFrom||z.line>=b.display.viewTo||ne.line<b.display.viewFrom){a.removeAllRanges();return}var me=zl(b,a.anchorNode,a.anchorOffset),Se=zl(b,a.focusNode,a.focusOffset);if(!(me&&!me.bad&&Se&&!Se.bad&&Gt(kr(me,Se),z)==0&&Gt(Or(me,Se),ne)==0)){var Qe=b.display.view,Re=z.line>=b.display.viewFrom&&Ou(b,z)||{node:Qe[0].measure.map[2],offset:0},Ye=ne.line<b.display.viewTo&&Ou(b,ne);if(!Ye){var rn=Qe[Qe.length-1].measure,gn=rn.maps?rn.maps[rn.maps.length-1]:rn.map;Ye={node:gn[gn.length-1],offset:gn[gn.length-2]-gn[gn.length-3]}}if(!Re||!Ye){a.removeAllRanges();return}var tr=a.rangeCount&&a.getRangeAt(0),$n;try{$n=Je(Re.node,Re.offset,Ye.offset,Ye.node)}catch(Nr){}$n&&(!oe&&b.state.focused?(a.collapse(Re.node,Re.offset),$n.collapsed||(a.removeAllRanges(),a.addRange($n))):(a.removeAllRanges(),a.addRange($n)),tr&&a.anchorNode==null?a.addRange(tr):oe&&this.startGracePeriod()),this.rememberSelection()}},_a.prototype.startGracePeriod=function(){var a=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){a.gracePeriod=!1,a.selectionChanged()&&a.cm.operation(function(){return a.cm.curOp.selectionChanged=!0})},20)},_a.prototype.showMultipleSelections=function(a){Pt(this.cm.display.cursorDiv,a.cursors),Pt(this.cm.display.selectionDiv,a.selection)},_a.prototype.rememberSelection=function(){var a=this.getSelection();this.lastAnchorNode=a.anchorNode,this.lastAnchorOffset=a.anchorOffset,this.lastFocusNode=a.focusNode,this.lastFocusOffset=a.focusOffset},_a.prototype.selectionInEditor=function(){var a=this.getSelection();if(!a.rangeCount)return!1;var b=a.getRangeAt(0).commonAncestorContainer;return wt(this.div,b)},_a.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},_a.prototype.blur=function(){this.div.blur()},_a.prototype.getField=function(){return this.div},_a.prototype.supportsTouch=function(){return!0},_a.prototype.receivedFocus=function(){var a=this;this.selectionInEditor()?this.pollSelection():LA(this.cm,function(){return a.cm.curOp.selectionChanged=!0});function b(){a.cm.state.focused&&(a.pollSelection(),a.polling.set(a.cm.options.pollInterval,b))}this.polling.set(this.cm.options.pollInterval,b)},_a.prototype.selectionChanged=function(){var a=this.getSelection();return a.anchorNode!=this.lastAnchorNode||a.anchorOffset!=this.lastAnchorOffset||a.focusNode!=this.lastFocusNode||a.focusOffset!=this.lastFocusOffset},_a.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var a=this.getSelection(),b=this.cm;if(He&&Pe&&this.cm.display.gutterSpecs.length&&mg(a.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var ee=zl(b,a.anchorNode,a.anchorOffset),z=zl(b,a.focusNode,a.focusOffset);ee&&z&&LA(b,function(){Gs(b.doc,Bu(ee,z),Ze),(ee.bad||z.bad)&&(b.curOp.selectionChanged=!0)})}}},_a.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var a=this.cm,b=a.display,ee=a.doc.sel.primary(),z=ee.from(),ne=ee.to();if(z.ch==0&&z.line>a.firstLine()&&(z=ft(z.line-1,Xt(a.doc,z.line-1).length)),ne.ch==Xt(a.doc,ne.line).text.length&&ne.line<a.lastLine()&&(ne=ft(ne.line+1,0)),z.line<b.viewFrom||ne.line>b.viewTo-1)return!1;var me,Se,Qe;z.line==b.viewFrom||(me=Zu(a,z.line))==0?(Se=Lt(b.view[0].line),Qe=b.view[0].node):(Se=Lt(b.view[me].line),Qe=b.view[me-1].node.nextSibling);var Re=Zu(a,ne.line),Ye,rn;if(Re==b.view.length-1?(Ye=b.viewTo-1,rn=b.lineDiv.lastChild):(Ye=Lt(b.view[Re+1].line)-1,rn=b.view[Re+1].node.previousSibling),!Qe)return!1;for(var gn=a.doc.splitLines(Du(a,Qe,rn,Se,Ye)),tr=Kn(a.doc,ft(Se,0),ft(Ye,Xt(a.doc,Ye).text.length));gn.length>1&&tr.length>1;)if(ct(gn)==ct(tr))gn.pop(),tr.pop(),Ye--;else if(gn[0]==tr[0])gn.shift(),tr.shift(),Se++;else break;for(var $n=0,Nr=0,ni=gn[0],di=tr[0],Ci=Math.min(ni.length,di.length);$n<Ci&&ni.charCodeAt($n)==di.charCodeAt($n);)++$n;for(var Ui=ct(gn),Ei=ct(tr),Hi=Math.min(Ui.length-(gn.length==1?$n:0),Ei.length-(tr.length==1?$n:0));Nr<Hi&&Ui.charCodeAt(Ui.length-Nr-1)==Ei.charCodeAt(Ei.length-Nr-1);)++Nr;if(gn.length==1&&tr.length==1&&Se==z.line)for(;$n&&$n>z.ch&&Ui.charCodeAt(Ui.length-Nr-1)==Ei.charCodeAt(Ei.length-Nr-1);)$n--,Nr++;gn[gn.length-1]=Ui.slice(0,Ui.length-Nr).replace(/^\u200b+/,""),gn[0]=gn[0].slice($n).replace(/\u200b+$/,"");var lo=ft(Se,$n),Ji=ft(Ye,tr.length?ct(tr).length-Nr:0);if(gn.length>1||gn[0]||Gt(lo,Ji))return rc(a.doc,gn,lo,Ji,"+input"),!0},_a.prototype.ensurePolled=function(){this.forceCompositionEnd()},_a.prototype.reset=function(){this.forceCompositionEnd()},_a.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},_a.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))},_a.prototype.updateFromDOM=function(){var a=this;(this.cm.isReadOnly()||!this.pollContent())&&LA(this.cm,function(){return Ws(a.cm)})},_a.prototype.setUneditable=function(a){a.contentEditable="false"},_a.prototype.onKeyPress=function(a){a.charCode==0||this.composing||(a.preventDefault(),this.cm.isReadOnly()||Ls(this.cm,Of)(this.cm,String.fromCharCode(a.charCode==null?a.keyCode:a.charCode),0))},_a.prototype.readOnlyChanged=function(a){this.div.contentEditable=String(a!="nocursor")},_a.prototype.onContextMenu=function(){},_a.prototype.resetPosition=function(){},_a.prototype.needsContentAttribute=!0;function Ou(a,b){var ee=$A(a,b.line);if(!ee||ee.hidden)return null;var z=Xt(a.doc,b.line),ne=gs(ee,z,b.line),me=ar(z,a.doc.direction),Se="left";if(me){var Qe=Sn(me,b.ch);Se=Qe%2?"right":"left"}var Re=rd(ne.map,b.ch,Se);return Re.offset=Re.collapse=="right"?Re.end:Re.start,Re}function mg(a){for(var b=a;b;b=b.parentNode)if(/CodeMirror-gutter-wrapper/.test(b.className))return!0;return!1}function Xa(a,b){return b&&(a.bad=!0),a}function Du(a,b,ee,z,ne){var me="",Se=!1,Qe=a.doc.lineSeparator(),Re=!1;function Ye($n){return function(Nr){return Nr.id==$n}}function rn(){Se&&(me+=Qe,Re&&(me+=Qe),Se=Re=!1)}function gn($n){$n&&(rn(),me+=$n)}function tr($n){if($n.nodeType==1){var Nr=$n.getAttribute("cm-text");if(Nr){gn(Nr);return}var ni=$n.getAttribute("cm-marker"),di;if(ni){var Ci=a.findMarks(ft(z,0),ft(ne+1,0),Ye(+ni));Ci.length&&(di=Ci[0].find(0))&&gn(Kn(a.doc,di.from,di.to).join(Qe));return}if($n.getAttribute("contenteditable")=="false")return;var Ui=/^(pre|div|p|li|table|br)$/i.test($n.nodeName);if(!/^br$/i.test($n.nodeName)&&$n.textContent.length==0)return;Ui&&rn();for(var Ei=0;Ei<$n.childNodes.length;Ei++)tr($n.childNodes[Ei]);/^(pre|p)$/i.test($n.nodeName)&&(Re=!0),Ui&&(Se=!0)}else $n.nodeType==3&&gn($n.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;tr(b),b!=ee;)b=b.nextSibling,Re=!1;return me}function zl(a,b,ee){var z;if(b==a.display.lineDiv){if(z=a.display.lineDiv.childNodes[ee],!z)return Xa(a.clipPos(ft(a.display.viewTo-1)),!0);b=null,ee=0}else for(z=b;;z=z.parentNode){if(!z||z==a.display.lineDiv)return null;if(z.parentNode&&z.parentNode==a.display.lineDiv)break}for(var ne=0;ne<a.display.view.length;ne++){var me=a.display.view[ne];if(me.node==z)return au(me,b,ee)}}function au(a,b,ee){var z=a.text.firstChild,ne=!1;if(!b||!wt(z,b))return Xa(ft(Lt(a.line),0),!0);if(b==z&&(ne=!0,b=z.childNodes[ee],ee=0,!b)){var me=a.rest?ct(a.rest):a.line;return Xa(ft(Lt(me),me.text.length),ne)}var Se=b.nodeType==3?b:null,Qe=b;for(!Se&&b.childNodes.length==1&&b.firstChild.nodeType==3&&(Se=b.firstChild,ee&&(ee=Se.nodeValue.length));Qe.parentNode!=z;)Qe=Qe.parentNode;var Re=a.measure,Ye=Re.maps;function rn(di,Ci,Ui){for(var Ei=-1;Ei<(Ye?Ye.length:0);Ei++)for(var Hi=Ei<0?Re.map:Ye[Ei],lo=0;lo<Hi.length;lo+=3){var Ji=Hi[lo+2];if(Ji==di||Ji==Ci){var yo=Lt(Ei<0?a.line:a.rest[Ei]),ja=Hi[lo]+Ui;return(Ui<0||Ji!=di)&&(ja=Hi[lo+(Ui?1:0)]),ft(yo,ja)}}}var gn=rn(Se,Qe,ee);if(gn)return Xa(gn,ne);for(var tr=Qe.nextSibling,$n=Se?Se.nodeValue.length-ee:0;tr;tr=tr.nextSibling){if(gn=rn(tr,tr.firstChild,0),gn)return Xa(ft(gn.line,gn.ch-$n),ne);$n+=tr.textContent.length}for(var Nr=Qe.previousSibling,ni=ee;Nr;Nr=Nr.previousSibling){if(gn=rn(Nr,Nr.firstChild,-1),gn)return Xa(ft(gn.line,gn.ch+ni),ne);ni+=Nr.textContent.length}}var Ra=function(a){this.cm=a,this.prevInput="",this.pollingFast=!1,this.polling=new xe,this.hasSelection=!1,this.composing=null};Ra.prototype.init=function(a){var b=this,ee=this,z=this.cm;this.createField(a);var ne=this.textarea;a.wrapper.insertBefore(this.wrapper,a.wrapper.firstChild),Ke&&(ne.style.width="0px"),nn(ne,"input",function(){rt&&at>=9&&b.hasSelection&&(b.hasSelection=null),ee.poll()}),nn(ne,"paste",function(Se){un(z,Se)||Hc(Se,z)||(z.state.pasteIncoming=+new Date,ee.fastPoll())});function me(Se){if(!un(z,Se)){if(z.somethingSelected())Uf({lineWise:!1,text:z.getSelections()});else if(z.options.lineWiseCopyCut){var Qe=Eh(z);Uf({lineWise:!0,text:Qe.text}),Se.type=="cut"?z.setSelections(Qe.ranges,null,Ze):(ee.prevInput="",ne.value=Qe.text.join(`
|
|
|
`),$e(ne))}else return;Se.type=="cut"&&(z.state.cutIncoming=+new Date)}}nn(ne,"cut",me),nn(ne,"copy",me),nn(a.scroller,"paste",function(Se){if(!(Is(a,Se)||un(z,Se))){if(!ne.dispatchEvent){z.state.pasteIncoming=+new Date,ee.focus();return}var Qe=new Event("paste");Qe.clipboardData=Se.clipboardData,ne.dispatchEvent(Qe)}}),nn(a.lineSpace,"selectstart",function(Se){Is(a,Se)||An(Se)}),nn(ne,"compositionstart",function(){var Se=z.getCursor("from");ee.composing&&ee.composing.range.clear(),ee.composing={start:Se,range:z.markText(Se,z.getCursor("to"),{className:"CodeMirror-composing"})}}),nn(ne,"compositionend",function(){ee.composing&&(ee.poll(),ee.composing.range.clear(),ee.composing=null)})},Ra.prototype.createField=function(a){this.wrapper=gg(),this.textarea=this.wrapper.firstChild},Ra.prototype.screenReaderLabelChanged=function(a){a?this.textarea.setAttribute("aria-label",a):this.textarea.removeAttribute("aria-label")},Ra.prototype.prepareSelection=function(){var a=this.cm,b=a.display,ee=a.doc,z=Fl(a);if(a.options.moveInputWithCursor){var ne=aA(a,ee.sel.primary().head,"div"),me=b.wrapper.getBoundingClientRect(),Se=b.lineDiv.getBoundingClientRect();z.teTop=Math.max(0,Math.min(b.wrapper.clientHeight-10,ne.top+Se.top-me.top)),z.teLeft=Math.max(0,Math.min(b.wrapper.clientWidth-10,ne.left+Se.left-me.left))}return z},Ra.prototype.showSelection=function(a){var b=this.cm,ee=b.display;Pt(ee.cursorDiv,a.cursors),Pt(ee.selectionDiv,a.selection),a.teTop!=null&&(this.wrapper.style.top=a.teTop+"px",this.wrapper.style.left=a.teLeft+"px")},Ra.prototype.reset=function(a){if(!(this.contextMenuPending||this.composing)){var b=this.cm;if(b.somethingSelected()){this.prevInput="";var ee=b.getSelection();this.textarea.value=ee,b.state.focused&&$e(this.textarea),rt&&at>=9&&(this.hasSelection=ee)}else a||(this.prevInput=this.textarea.value="",rt&&at>=9&&(this.hasSelection=null))}},Ra.prototype.getField=function(){return this.textarea},Ra.prototype.supportsTouch=function(){return!1},Ra.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!Ge||lt()!=this.textarea))try{this.textarea.focus()}catch(a){}},Ra.prototype.blur=function(){this.textarea.blur()},Ra.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ra.prototype.receivedFocus=function(){this.slowPoll()},Ra.prototype.slowPoll=function(){var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){a.poll(),a.cm.state.focused&&a.slowPoll()})},Ra.prototype.fastPoll=function(){var a=!1,b=this;b.pollingFast=!0;function ee(){var z=b.poll();!z&&!a?(a=!0,b.polling.set(60,ee)):(b.pollingFast=!1,b.slowPoll())}b.polling.set(20,ee)},Ra.prototype.poll=function(){var a=this,b=this.cm,ee=this.textarea,z=this.prevInput;if(this.contextMenuPending||!b.state.focused||lr(ee)&&!z&&!this.composing||b.isReadOnly()||b.options.disableInput||b.state.keySeq)return!1;var ne=ee.value;if(ne==z&&!b.somethingSelected())return!1;if(rt&&at>=9&&this.hasSelection===ne||ze&&/[\uf700-\uf7ff]/.test(ne))return b.display.input.reset(),!1;if(b.doc.sel==b.display.selForContextMenu){var me=ne.charCodeAt(0);if(me==8203&&!z&&(z="\u200B"),me==8666)return this.reset(),this.cm.execCommand("undo")}for(var Se=0,Qe=Math.min(z.length,ne.length);Se<Qe&&z.charCodeAt(Se)==ne.charCodeAt(Se);)++Se;return LA(b,function(){Of(b,ne.slice(Se),z.length-Se,null,a.composing?"*compose":null),ne.length>1e3||ne.indexOf(`
|
|
|
`)>-1?ee.value=a.prevInput="":a.prevInput=ne,a.composing&&(a.composing.range.clear(),a.composing.range=b.markText(a.composing.start,b.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ra.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ra.prototype.onKeyPress=function(){rt&&at>=9&&(this.hasSelection=null),this.fastPoll()},Ra.prototype.onContextMenu=function(a){var b=this,ee=b.cm,z=ee.display,ne=b.textarea;b.contextMenuPending&&b.contextMenuPending();var me=Vu(ee,a),Se=z.scroller.scrollTop;if(!me||ce)return;var Qe=ee.options.resetSelectionOnContextMenu;Qe&&ee.doc.sel.contains(me)==-1&&Ls(ee,Gs)(ee.doc,Bu(me),Ze);var Re=ne.style.cssText,Ye=b.wrapper.style.cssText,rn=b.wrapper.offsetParent.getBoundingClientRect();b.wrapper.style.cssText="position: static",ne.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(a.clientY-rn.top-5)+"px; left: "+(a.clientX-rn.left-5)+`px;
|
|
|
z-index: 1000; background: `+(rt?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var gn;Dt&&(gn=window.scrollY),z.input.focus(),Dt&&window.scrollTo(null,gn),z.input.reset(),ee.somethingSelected()||(ne.value=b.prevInput=" "),b.contextMenuPending=$n,z.selForContextMenu=ee.doc.sel,clearTimeout(z.detectingSelectAll);function tr(){if(ne.selectionStart!=null){var ni=ee.somethingSelected(),di="\u200B"+(ni?ne.value:"");ne.value="\u21DA",ne.value=di,b.prevInput=ni?"":"\u200B",ne.selectionStart=1,ne.selectionEnd=di.length,z.selForContextMenu=ee.doc.sel}}function $n(){if(b.contextMenuPending==$n&&(b.contextMenuPending=!1,b.wrapper.style.cssText=Ye,ne.style.cssText=Re,rt&&at<9&&z.scrollbars.setScrollTop(z.scroller.scrollTop=Se),ne.selectionStart!=null)){(!rt||rt&&at<9)&&tr();var ni=0,di=function(){z.selForContextMenu==ee.doc.sel&&ne.selectionStart==0&&ne.selectionEnd>0&&b.prevInput=="\u200B"?Ls(ee,el)(ee):ni++<10?z.detectingSelectAll=setTimeout(di,500):(z.selForContextMenu=null,z.input.reset())};z.detectingSelectAll=setTimeout(di,200)}}if(rt&&at>=9&&tr(),yt){nt(a);var Nr=function(){Un(window,"mouseup",Nr),setTimeout($n,20)};nn(window,"mouseup",Nr)}else setTimeout($n,50)},Ra.prototype.readOnlyChanged=function(a){a||this.reset(),this.textarea.disabled=a=="nocursor",this.textarea.readOnly=!!a},Ra.prototype.setUneditable=function(){},Ra.prototype.needsContentAttribute=!1;function Pf(a,b){if(b=b?Qt(b):{},b.value=a.value,!b.tabindex&&a.tabIndex&&(b.tabindex=a.tabIndex),!b.placeholder&&a.placeholder&&(b.placeholder=a.placeholder),b.autofocus==null){var ee=lt();b.autofocus=ee==a||a.getAttribute("autofocus")!=null&&ee==document.body}function z(){a.value=Qe.getValue()}var ne;if(a.form&&(nn(a.form,"submit",z),!b.leaveSubmitMethodAlone)){var me=a.form;ne=me.submit;try{var Se=me.submit=function(){z(),me.submit=ne,me.submit(),me.submit=Se}}catch(Re){}}b.finishInit=function(Re){Re.save=z,Re.getTextArea=function(){return a},Re.toTextArea=function(){Re.toTextArea=isNaN,z(),a.parentNode.removeChild(Re.getWrapperElement()),a.style.display="",a.form&&(Un(a.form,"submit",z),!b.leaveSubmitMethodAlone&&typeof a.form.submit=="function"&&(a.form.submit=ne))}},a.style.display="none";var Qe=$a(function(Re){return a.parentNode.insertBefore(Re,a.nextSibling)},b);return Qe}function su(a){a.off=Un,a.on=nn,a.wheelEventPixels=Fc,a.Doc=lA,a.splitLines=vr,a.countColumn=Te,a.findColumn=In,a.isWordChar=ye,a.Pass=mn,a.signal=Nn,a.Line=ra,a.changeEnd=Cu,a.scrollbarModel=Yu,a.Pos=ft,a.cmpPos=Gt,a.modes=_n,a.mimeModes=Ln,a.resolveMode=pr,a.getMode=Rr,a.modeExtensions=Wr,a.extendMode=Gr,a.copyState=ai,a.startState=xi,a.innerMode=ti,a.commands=Ff,a.keyMap=nu,a.keyName=mh,a.isModifierKey=gh,a.lookupKey=Lu,a.normalizeKeyMap=mp,a.StringStream=mi,a.SharedTextMarker=oc,a.TextMarker=hl,a.LineWidget=Su,a.e_preventDefault=An,a.e_stopPropagation=Qn,a.e_stop=nt,a.addClass=Fe,a.contains=wt,a.rmClass=Et,a.keyNames=Iu}hg($a),Fh($a);var Np="iter insert remove copy getEditor constructor".split(" ");for(var Id in lA.prototype)lA.prototype.hasOwnProperty(Id)&&It(Np,Id)<0&&($a.prototype[Id]=function(a){return function(){return a.apply(this.doc,arguments)}}(lA.prototype[Id]));return Ft(lA),$a.inputStyles={textarea:Ra,contenteditable:_a},$a.defineMode=function(a){!$a.defaults.mode&&a!="null"&&($a.defaults.mode=a),mr.apply(this,arguments)},$a.defineMIME=cr,$a.defineMode("null",function(){return{token:function(a){return a.skipToEnd()}}}),$a.defineMIME("text/plain","null"),$a.defineExtension=function(a,b){$a.prototype[a]=b},$a.defineDocExtension=function(a,b){lA.prototype[a]=b},$a.fromTextArea=Pf,su($a),$a.version="5.58.2",$a})},25419:function(gr,zn,pe){(function(oe){oe(pe(89780),pe(15525),pe(98101))})(function(oe){"use strict";oe.defineMode("markdown",function(qt,Xe){var Ht=oe.getMode(qt,"text/html"),rt=Ht.name=="null";function at(Te){if(oe.findModeByName){var xe=oe.findModeByName(Te);xe&&(Te=xe.mime||xe.mimes[0])}var It=oe.getMode(qt,Te);return It.name=="null"?null:It}Xe.highlightFormatting===void 0&&(Xe.highlightFormatting=!1),Xe.maxBlockquoteDepth===void 0&&(Xe.maxBlockquoteDepth=0),Xe.taskLists===void 0&&(Xe.taskLists=!1),Xe.strikethrough===void 0&&(Xe.strikethrough=!1),Xe.emoji===void 0&&(Xe.emoji=!1),Xe.fencedCodeBlockHighlighting===void 0&&(Xe.fencedCodeBlockHighlighting=!0),Xe.fencedCodeBlockDefaultMode===void 0&&(Xe.fencedCodeBlockDefaultMode="text/plain"),Xe.xml===void 0&&(Xe.xml=!0),Xe.tokenTypeOverrides===void 0&&(Xe.tokenTypeOverrides={});var Dt={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 Me in Dt)Dt.hasOwnProperty(Me)&&Xe.tokenTypeOverrides[Me]&&(Dt[Me]=Xe.tokenTypeOverrides[Me]);var Pe=/^([*\-_])(?:\s*\1){2,}\s*$/,ce=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,ke=/^\[(x| )\](?=\s)/i,Le=Xe.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,Ve=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Ke=/^[^#!\[\]*_\\<>` "'(~:]+/,He=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,Ge=/^\s*\[[^\]]+?\]:.*$/,ze=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,qe=" ";function pt(Te,xe,It){return xe.f=xe.inline=It,It(Te,xe)}function Bt(Te,xe,It){return xe.f=xe.block=It,It(Te,xe)}function vt(Te){return!Te||!/\S/.test(Te.string)}function yt(Te){if(Te.linkTitle=!1,Te.linkHref=!1,Te.linkText=!1,Te.em=!1,Te.strong=!1,Te.strikethrough=!1,Te.quote=0,Te.indentedCode=!1,Te.f==Et){var xe=rt;if(!xe){var It=oe.innerMode(Ht,Te.htmlState);xe=It.mode.name=="xml"&&It.state.tagStart===null&&!It.state.context&&It.state.tokenize.isInText}xe&&(Te.f=jt,Te.block=Nt,Te.htmlState=null)}return Te.trailingSpace=0,Te.trailingSpaceNewLine=!1,Te.prevLine=Te.thisLine,Te.thisLine={stream:null},null}function Nt(Te,xe){var It=Te.column()===xe.indentation,Cn=vt(xe.prevLine.stream),mn=xe.indentedCode,Ze=xe.prevLine.hr,Ct=xe.list!==!1,_t=(xe.listStack[xe.listStack.length-1]||0)+3;xe.indentedCode=!1;var In=xe.indentation;if(xe.indentationDiff===null&&(xe.indentationDiff=xe.indentation,Ct)){for(xe.list=null;In<xe.listStack[xe.listStack.length-1];)xe.listStack.pop(),xe.listStack.length?xe.indentation=xe.listStack[xe.listStack.length-1]:xe.list=!1;xe.list!==!1&&(xe.indentationDiff=In-xe.listStack[xe.listStack.length-1])}var xn=!Cn&&!Ze&&!xe.prevLine.header&&(!Ct||!mn)&&!xe.prevLine.fencedCodeEnd,Wn=(xe.list===!1||Ze||Cn)&&xe.indentation<=_t&&Te.match(Pe),ct=null;if(xe.indentationDiff>=4&&(mn||xe.prevLine.fencedCodeEnd||xe.prevLine.header||Cn))return Te.skipToEnd(),xe.indentedCode=!0,Dt.code;if(Te.eatSpace())return null;if(It&&xe.indentation<=_t&&(ct=Te.match(Le))&&ct[1].length<=6)return xe.quote=0,xe.header=ct[1].length,xe.thisLine.header=!0,Xe.highlightFormatting&&(xe.formatting="header"),xe.f=xe.inline,Pt(xe);if(xe.indentation<=_t&&Te.eat(">"))return xe.quote=It?1:xe.quote+1,Xe.highlightFormatting&&(xe.formatting="quote"),Te.eatSpace(),Pt(xe);if(!Wn&&!xe.setext&&It&&xe.indentation<=_t&&(ct=Te.match(ce))){var En=ct[1]?"ol":"ul";return xe.indentation=In+Te.current().length,xe.list=!0,xe.quote=0,xe.listStack.push(xe.indentation),xe.em=!1,xe.strong=!1,xe.code=!1,xe.strikethrough=!1,Xe.taskLists&&Te.match(ke,!1)&&(xe.taskList=!0),xe.f=xe.inline,Xe.highlightFormatting&&(xe.formatting=["list","list-"+En]),Pt(xe)}else{if(It&&xe.indentation<=_t&&(ct=Te.match(He,!0)))return xe.quote=0,xe.fencedEndRE=new RegExp(ct[1]+"+ *$"),xe.localMode=Xe.fencedCodeBlockHighlighting&&at(ct[2]||Xe.fencedCodeBlockDefaultMode),xe.localMode&&(xe.localState=oe.startState(xe.localMode)),xe.f=xe.block=pn,Xe.highlightFormatting&&(xe.formatting="code-block"),xe.code=-1,Pt(xe);if(xe.setext||(!xn||!Ct)&&!xe.quote&&xe.list===!1&&!xe.code&&!Wn&&!Ge.test(Te.string)&&(ct=Te.lookAhead(1))&&(ct=ct.match(Ve)))return xe.setext?(xe.header=xe.setext,xe.setext=0,Te.skipToEnd(),Xe.highlightFormatting&&(xe.formatting="header")):(xe.header=ct[0].charAt(0)=="="?1:2,xe.setext=xe.header),xe.thisLine.header=!0,xe.f=xe.inline,Pt(xe);if(Wn)return Te.skipToEnd(),xe.hr=!0,xe.thisLine.hr=!0,Dt.hr;if(Te.peek()==="[")return pt(Te,xe,Zt)}return pt(Te,xe,xe.inline)}function Et(Te,xe){var It=Ht.token(Te,xe.htmlState);if(!rt){var Cn=oe.innerMode(Ht,xe.htmlState);(Cn.mode.name=="xml"&&Cn.state.tagStart===null&&!Cn.state.context&&Cn.state.tokenize.isInText||xe.md_inside&&Te.current().indexOf(">")>-1)&&(xe.f=jt,xe.block=Nt,xe.htmlState=null)}return It}function pn(Te,xe){var It=xe.listStack[xe.listStack.length-1]||0,Cn=xe.indentation<It,mn=It+3;if(xe.fencedEndRE&&xe.indentation<=mn&&(Cn||Te.match(xe.fencedEndRE))){Xe.highlightFormatting&&(xe.formatting="code-block");var Ze;return Cn||(Ze=Pt(xe)),xe.localMode=xe.localState=null,xe.block=Nt,xe.f=jt,xe.fencedEndRE=null,xe.code=0,xe.thisLine.fencedCodeEnd=!0,Cn?Bt(Te,xe,xe.block):Ze}else return xe.localMode?xe.localMode.token(Te,xe.localState):(Te.skipToEnd(),Dt.code)}function Pt(Te){var xe=[];if(Te.formatting){xe.push(Dt.formatting),typeof Te.formatting=="string"&&(Te.formatting=[Te.formatting]);for(var It=0;It<Te.formatting.length;It++)xe.push(Dt.formatting+"-"+Te.formatting[It]),Te.formatting[It]==="header"&&xe.push(Dt.formatting+"-"+Te.formatting[It]+"-"+Te.header),Te.formatting[It]==="quote"&&(!Xe.maxBlockquoteDepth||Xe.maxBlockquoteDepth>=Te.quote?xe.push(Dt.formatting+"-"+Te.formatting[It]+"-"+Te.quote):xe.push("error"))}if(Te.taskOpen)return xe.push("meta"),xe.length?xe.join(" "):null;if(Te.taskClosed)return xe.push("property"),xe.length?xe.join(" "):null;if(Te.linkHref?xe.push(Dt.linkHref,"url"):(Te.strong&&xe.push(Dt.strong),Te.em&&xe.push(Dt.em),Te.strikethrough&&xe.push(Dt.strikethrough),Te.emoji&&xe.push(Dt.emoji),Te.linkText&&xe.push(Dt.linkText),Te.code&&xe.push(Dt.code),Te.image&&xe.push(Dt.image),Te.imageAltText&&xe.push(Dt.imageAltText,"link"),Te.imageMarker&&xe.push(Dt.imageMarker)),Te.header&&xe.push(Dt.header,Dt.header+"-"+Te.header),Te.quote&&(xe.push(Dt.quote),!Xe.maxBlockquoteDepth||Xe.maxBlockquoteDepth>=Te.quote?xe.push(Dt.quote+"-"+Te.quote):xe.push(Dt.quote+"-"+Xe.maxBlockquoteDepth)),Te.list!==!1){var Cn=(Te.listStack.length-1)%3;Cn?Cn===1?xe.push(Dt.list2):xe.push(Dt.list3):xe.push(Dt.list1)}return Te.trailingSpaceNewLine?xe.push("trailing-space-new-line"):Te.trailingSpace&&xe.push("trailing-space-"+(Te.trailingSpace%2?"a":"b")),xe.length?xe.join(" "):null}function St(Te,xe){if(Te.match(Ke,!0))return Pt(xe)}function jt(Te,xe){var It=xe.text(Te,xe);if(typeof It!="undefined")return It;if(xe.list)return xe.list=null,Pt(xe);if(xe.taskList){var Cn=Te.match(ke,!0)[1]===" ";return Cn?xe.taskOpen=!0:xe.taskClosed=!0,Xe.highlightFormatting&&(xe.formatting="task"),xe.taskList=!1,Pt(xe)}if(xe.taskOpen=!1,xe.taskClosed=!1,xe.header&&Te.match(/^#+$/,!0))return Xe.highlightFormatting&&(xe.formatting="header"),Pt(xe);var mn=Te.next();if(xe.linkTitle){xe.linkTitle=!1;var Ze=mn;mn==="("&&(Ze=")"),Ze=(Ze+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Ct="^\\s*(?:[^"+Ze+"\\\\]+|\\\\\\\\|\\\\.)"+Ze;if(Te.match(new RegExp(Ct),!0))return Dt.linkHref}if(mn==="`"){var _t=xe.formatting;Xe.highlightFormatting&&(xe.formatting="code"),Te.eatWhile("`");var In=Te.current().length;if(xe.code==0&&(!xe.quote||In==1))return xe.code=In,Pt(xe);if(In==xe.code){var xn=Pt(xe);return xe.code=0,xn}else return xe.formatting=_t,Pt(xe)}else if(xe.code)return Pt(xe);if(mn==="\\"&&(Te.next(),Xe.highlightFormatting)){var Wn=Pt(xe),ct=Dt.formatting+"-escape";return Wn?Wn+" "+ct:ct}if(mn==="!"&&Te.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return xe.imageMarker=!0,xe.image=!0,Xe.highlightFormatting&&(xe.formatting="image"),Pt(xe);if(mn==="["&&xe.imageMarker&&Te.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return xe.imageMarker=!1,xe.imageAltText=!0,Xe.highlightFormatting&&(xe.formatting="image"),Pt(xe);if(mn==="]"&&xe.imageAltText){Xe.highlightFormatting&&(xe.formatting="image");var Wn=Pt(xe);return xe.imageAltText=!1,xe.image=!1,xe.inline=xe.f=wt,Wn}if(mn==="["&&!xe.image)return xe.linkText&&Te.match(/^.*?\]/)||(xe.linkText=!0,Xe.highlightFormatting&&(xe.formatting="link")),Pt(xe);if(mn==="]"&&xe.linkText){Xe.highlightFormatting&&(xe.formatting="link");var Wn=Pt(xe);return xe.linkText=!1,xe.inline=xe.f=Te.match(/\(.*?\)| ?\[.*?\]/,!1)?wt:jt,Wn}if(mn==="<"&&Te.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){xe.f=xe.inline=Je,Xe.highlightFormatting&&(xe.formatting="link");var Wn=Pt(xe);return Wn?Wn+=" ":Wn="",Wn+Dt.linkInline}if(mn==="<"&&Te.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){xe.f=xe.inline=Je,Xe.highlightFormatting&&(xe.formatting="link");var Wn=Pt(xe);return Wn?Wn+=" ":Wn="",Wn+Dt.linkEmail}if(Xe.xml&&mn==="<"&&Te.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var En=Te.string.indexOf(">",Te.pos);if(En!=-1){var Rt=Te.string.substring(Te.start,En);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Rt)&&(xe.md_inside=!0)}return Te.backUp(1),xe.htmlState=oe.startState(Ht),Bt(Te,xe,Et)}if(Xe.xml&&mn==="<"&&Te.match(/^\/\w*?>/))return xe.md_inside=!1,"tag";if(mn==="*"||mn==="_"){for(var be=1,de=Te.pos==1?" ":Te.string.charAt(Te.pos-2);be<3&&Te.eat(mn);)be++;var le=Te.peek()||" ",ye=!/\s/.test(le)&&(!ze.test(le)||/\s/.test(de)||ze.test(de)),Ie=!/\s/.test(de)&&(!ze.test(de)||/\s/.test(le)||ze.test(le)),he=null,We=null;if(be%2&&(!xe.em&&ye&&(mn==="*"||!Ie||ze.test(de))?he=!0:xe.em==mn&&Ie&&(mn==="*"||!ye||ze.test(le))&&(he=!1)),be>1&&(!xe.strong&&ye&&(mn==="*"||!Ie||ze.test(de))?We=!0:xe.strong==mn&&Ie&&(mn==="*"||!ye||ze.test(le))&&(We=!1)),We!=null||he!=null){Xe.highlightFormatting&&(xe.formatting=he==null?"strong":We==null?"em":"strong em"),he===!0&&(xe.em=mn),We===!0&&(xe.strong=mn);var xn=Pt(xe);return he===!1&&(xe.em=!1),We===!1&&(xe.strong=!1),xn}}else if(mn===" "&&(Te.eat("*")||Te.eat("_"))){if(Te.peek()===" ")return Pt(xe);Te.backUp(1)}if(Xe.strikethrough){if(mn==="~"&&Te.eatWhile(mn)){if(xe.strikethrough){Xe.highlightFormatting&&(xe.formatting="strikethrough");var xn=Pt(xe);return xe.strikethrough=!1,xn}else if(Te.match(/^[^\s]/,!1))return xe.strikethrough=!0,Xe.highlightFormatting&&(xe.formatting="strikethrough"),Pt(xe)}else if(mn===" "&&Te.match(/^~~/,!0)){if(Te.peek()===" ")return Pt(xe);Te.backUp(2)}}if(Xe.emoji&&mn===":"&&Te.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){xe.emoji=!0,Xe.highlightFormatting&&(xe.formatting="emoji");var tt=Pt(xe);return xe.emoji=!1,tt}return mn===" "&&(Te.match(/^ +$/,!1)?xe.trailingSpace++:xe.trailingSpace&&(xe.trailingSpaceNewLine=!0)),Pt(xe)}function Je(Te,xe){var It=Te.next();if(It===">"){xe.f=xe.inline=jt,Xe.highlightFormatting&&(xe.formatting="link");var Cn=Pt(xe);return Cn?Cn+=" ":Cn="",Cn+Dt.linkInline}return Te.match(/^[^>]+/,!0),Dt.linkInline}function wt(Te,xe){if(Te.eatSpace())return null;var It=Te.next();return It==="("||It==="["?(xe.f=xe.inline=Fe(It==="("?")":"]"),Xe.highlightFormatting&&(xe.formatting="link-string"),xe.linkHref=!0,Pt(xe)):"error"}var lt={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function Fe(Te){return function(xe,It){var Cn=xe.next();if(Cn===Te){It.f=It.inline=jt,Xe.highlightFormatting&&(It.formatting="link-string");var mn=Pt(It);return It.linkHref=!1,mn}return xe.match(lt[Te]),It.linkHref=!0,Pt(It)}}function Zt(Te,xe){return Te.match(/^([^\]\\]|\\.)*\]:/,!1)?(xe.f=$e,Te.next(),Xe.highlightFormatting&&(xe.formatting="link"),xe.linkText=!0,Pt(xe)):pt(Te,xe,jt)}function $e(Te,xe){if(Te.match(/^\]:/,!0)){xe.f=xe.inline=At,Xe.highlightFormatting&&(xe.formatting="link");var It=Pt(xe);return xe.linkText=!1,It}return Te.match(/^([^\]\\]|\\.)+/,!0),Dt.linkText}function At(Te,xe){return Te.eatSpace()?null:(Te.match(/^[^\s]+/,!0),Te.peek()===void 0?xe.linkTitle=!0:Te.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),xe.f=xe.inline=jt,Dt.linkHref+" url")}var Qt={startState:function(){return{f:Nt,prevLine:{stream:null},thisLine:{stream:null},block:Nt,htmlState:null,indentation:0,inline:jt,text:St,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(Te){return{f:Te.f,prevLine:Te.prevLine,thisLine:Te.thisLine,block:Te.block,htmlState:Te.htmlState&&oe.copyState(Ht,Te.htmlState),indentation:Te.indentation,localMode:Te.localMode,localState:Te.localMode?oe.copyState(Te.localMode,Te.localState):null,inline:Te.inline,text:Te.text,formatting:!1,linkText:Te.linkText,linkTitle:Te.linkTitle,linkHref:Te.linkHref,code:Te.code,em:Te.em,strong:Te.strong,strikethrough:Te.strikethrough,emoji:Te.emoji,header:Te.header,setext:Te.setext,hr:Te.hr,taskList:Te.taskList,list:Te.list,listStack:Te.listStack.slice(0),quote:Te.quote,indentedCode:Te.indentedCode,trailingSpace:Te.trailingSpace,trailingSpaceNewLine:Te.trailingSpaceNewLine,md_inside:Te.md_inside,fencedEndRE:Te.fencedEndRE}},token:function(Te,xe){if(xe.formatting=!1,Te!=xe.thisLine.stream){if(xe.header=0,xe.hr=!1,Te.match(/^\s*$/,!0))return yt(xe),null;if(xe.prevLine=xe.thisLine,xe.thisLine={stream:Te},xe.taskList=!1,xe.trailingSpace=0,xe.trailingSpaceNewLine=!1,!xe.localState&&(xe.f=xe.block,xe.f!=Et)){var It=Te.match(/^\s*/,!0)[0].replace(/\t/g,qe).length;if(xe.indentation=It,xe.indentationDiff=null,It>0)return null}}return xe.f(Te,xe)},innerMode:function(Te){return Te.block==Et?{state:Te.htmlState,mode:Ht}:Te.localState?{state:Te.localState,mode:Te.localMode}:{state:Te,mode:Qt}},indent:function(Te,xe,It){return Te.block==Et&&Ht.indent?Ht.indent(Te.htmlState,xe,It):Te.localState&&Te.localMode.indent?Te.localMode.indent(Te.localState,xe,It):oe.Pass},blankLine:yt,getType:Pt,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Qt},"xml"),oe.defineMIME("text/markdown","markdown"),oe.defineMIME("text/x-markdown","markdown")})},98101:function(gr,zn,pe){(function(oe){oe(pe(89780))})(function(oe){"use strict";oe.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var qt=0;qt<oe.modeInfo.length;qt++){var Xe=oe.modeInfo[qt];Xe.mimes&&(Xe.mime=Xe.mimes[0])}oe.findModeByMIME=function(Ht){Ht=Ht.toLowerCase();for(var rt=0;rt<oe.modeInfo.length;rt++){var at=oe.modeInfo[rt];if(at.mime==Ht)return at;if(at.mimes){for(var Dt=0;Dt<at.mimes.length;Dt++)if(at.mimes[Dt]==Ht)return at}}if(/\+xml$/.test(Ht))return oe.findModeByMIME("application/xml");if(/\+json$/.test(Ht))return oe.findModeByMIME("application/json")},oe.findModeByExtension=function(Ht){Ht=Ht.toLowerCase();for(var rt=0;rt<oe.modeInfo.length;rt++){var at=oe.modeInfo[rt];if(at.ext){for(var Dt=0;Dt<at.ext.length;Dt++)if(at.ext[Dt]==Ht)return at}}},oe.findModeByFileName=function(Ht){for(var rt=0;rt<oe.modeInfo.length;rt++){var at=oe.modeInfo[rt];if(at.file&&at.file.test(Ht))return at}var Dt=Ht.lastIndexOf("."),Me=Dt>-1&&Ht.substring(Dt+1,Ht.length);if(Me)return oe.findModeByExtension(Me)},oe.findModeByName=function(Ht){Ht=Ht.toLowerCase();for(var rt=0;rt<oe.modeInfo.length;rt++){var at=oe.modeInfo[rt];if(at.name.toLowerCase()==Ht)return at;if(at.alias){for(var Dt=0;Dt<at.alias.length;Dt++)if(at.alias[Dt].toLowerCase()==Ht)return at}}}})},67549:function(gr,zn,pe){(function(oe){oe(pe(89780))})(function(oe){"use strict";oe.defineMode("stex",function(qt,Xe){"use strict";function Ht(Ke,He){Ke.cmdState.push(He)}function rt(Ke){return Ke.cmdState.length>0?Ke.cmdState[Ke.cmdState.length-1]:null}function at(Ke){var He=Ke.cmdState.pop();He&&He.closeBracket()}function Dt(Ke){for(var He=Ke.cmdState,Ge=He.length-1;Ge>=0;Ge--){var ze=He[Ge];if(ze.name!="DEFAULT")return ze}return{styleIdentifier:function(){return null}}}function Me(Ke,He,Ge){return function(){this.name=Ke,this.bracketNo=0,this.style=He,this.styles=Ge,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var Pe={};Pe.importmodule=Me("importmodule","tag",["string","builtin"]),Pe.documentclass=Me("documentclass","tag",["","atom"]),Pe.usepackage=Me("usepackage","tag",["atom"]),Pe.begin=Me("begin","tag",["atom"]),Pe.end=Me("end","tag",["atom"]),Pe.label=Me("label","tag",["atom"]),Pe.ref=Me("ref","tag",["atom"]),Pe.eqref=Me("eqref","tag",["atom"]),Pe.cite=Me("cite","tag",["atom"]),Pe.bibitem=Me("bibitem","tag",["atom"]),Pe.Bibitem=Me("Bibitem","tag",["atom"]),Pe.RBibitem=Me("RBibitem","tag",["atom"]),Pe.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function ce(Ke,He){Ke.f=He}function ke(Ke,He){var Ge;if(Ke.match(/^\\[a-zA-Z@]+/)){var ze=Ke.current().slice(1);return Ge=Pe.hasOwnProperty(ze)?Pe[ze]:Pe.DEFAULT,Ge=new Ge,Ht(He,Ge),ce(He,Ve),Ge.style}if(Ke.match(/^\\[$&%#{}_]/)||Ke.match(/^\\[,;!\/\\]/))return"tag";if(Ke.match("\\["))return ce(He,function(pt,Bt){return Le(pt,Bt,"\\]")}),"keyword";if(Ke.match("\\("))return ce(He,function(pt,Bt){return Le(pt,Bt,"\\)")}),"keyword";if(Ke.match("$$"))return ce(He,function(pt,Bt){return Le(pt,Bt,"$$")}),"keyword";if(Ke.match("$"))return ce(He,function(pt,Bt){return Le(pt,Bt,"$")}),"keyword";var qe=Ke.next();if(qe=="%")return Ke.skipToEnd(),"comment";if(qe=="}"||qe=="]"){if(Ge=rt(He),Ge)Ge.closeBracket(qe),ce(He,Ve);else return"error";return"bracket"}else return qe=="{"||qe=="["?(Ge=Pe.DEFAULT,Ge=new Ge,Ht(He,Ge),"bracket"):/\d/.test(qe)?(Ke.eatWhile(/[\w.%]/),"atom"):(Ke.eatWhile(/[\w\-_]/),Ge=Dt(He),Ge.name=="begin"&&(Ge.argument=Ke.current()),Ge.styleIdentifier())}function Le(Ke,He,Ge){if(Ke.eatSpace())return null;if(Ge&&Ke.match(Ge))return ce(He,ke),"keyword";if(Ke.match(/^\\[a-zA-Z@]+/))return"tag";if(Ke.match(/^[a-zA-Z]+/))return"variable-2";if(Ke.match(/^\\[$&%#{}_]/)||Ke.match(/^\\[,;!\/]/)||Ke.match(/^[\^_&]/))return"tag";if(Ke.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Ke.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var ze=Ke.next();return ze=="{"||ze=="}"||ze=="["||ze=="]"||ze=="("||ze==")"?"bracket":ze=="%"?(Ke.skipToEnd(),"comment"):"error"}function Ve(Ke,He){var Ge=Ke.peek(),ze;return Ge=="{"||Ge=="["?(ze=rt(He),ze.openBracket(Ge),Ke.eat(Ge),ce(He,ke),"bracket"):/[ \t\r]/.test(Ge)?(Ke.eat(Ge),null):(ce(He,ke),at(He),ke(Ke,He))}return{startState:function(){var Ke=Xe.inMathMode?function(He,Ge){return Le(He,Ge)}:ke;return{cmdState:[],f:Ke}},copyState:function(Ke){return{cmdState:Ke.cmdState.slice(),f:Ke.f}},token:function(Ke,He){return He.f(Ke,He)},blankLine:function(Ke){Ke.f=ke,Ke.cmdState.length=0},lineComment:"%"}}),oe.defineMIME("text/x-stex","stex"),oe.defineMIME("text/x-latex","stex")})},15525:function(gr,zn,pe){(function(oe){oe(pe(89780))})(function(oe){"use strict";var qt={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},Xe={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};oe.defineMode("xml",function(Ht,rt){var at=Ht.indentUnit,Dt={},Me=rt.htmlMode?qt:Xe;for(var Pe in Me)Dt[Pe]=Me[Pe];for(var Pe in rt)Dt[Pe]=rt[Pe];var ce,ke;function Le(Je,wt){function lt($e){return wt.tokenize=$e,$e(Je,wt)}var Fe=Je.next();if(Fe=="<")return Je.eat("!")?Je.eat("[")?Je.match("CDATA[")?lt(He("atom","]]>")):null:Je.match("--")?lt(He("comment","-->")):Je.match("DOCTYPE",!0,!0)?(Je.eatWhile(/[\w\._\-]/),lt(Ge(1))):null:Je.eat("?")?(Je.eatWhile(/[\w\._\-]/),wt.tokenize=He("meta","?>"),"meta"):(ce=Je.eat("/")?"closeTag":"openTag",wt.tokenize=Ve,"tag bracket");if(Fe=="&"){var Zt;return Je.eat("#")?Je.eat("x")?Zt=Je.eatWhile(/[a-fA-F\d]/)&&Je.eat(";"):Zt=Je.eatWhile(/[\d]/)&&Je.eat(";"):Zt=Je.eatWhile(/[\w\.\-:]/)&&Je.eat(";"),Zt?"atom":"error"}else return Je.eatWhile(/[^&<]/),null}Le.isInText=!0;function Ve(Je,wt){var lt=Je.next();if(lt==">"||lt=="/"&&Je.eat(">"))return wt.tokenize=Le,ce=lt==">"?"endTag":"selfcloseTag","tag bracket";if(lt=="=")return ce="equals",null;if(lt=="<"){wt.tokenize=Le,wt.state=Bt,wt.tagName=wt.tagStart=null;var Fe=wt.tokenize(Je,wt);return Fe?Fe+" tag error":"tag error"}else return/[\'\"]/.test(lt)?(wt.tokenize=Ke(lt),wt.stringStartCol=Je.column(),wt.tokenize(Je,wt)):(Je.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Ke(Je){var wt=function(lt,Fe){for(;!lt.eol();)if(lt.next()==Je){Fe.tokenize=Ve;break}return"string"};return wt.isInAttribute=!0,wt}function He(Je,wt){return function(lt,Fe){for(;!lt.eol();){if(lt.match(wt)){Fe.tokenize=Le;break}lt.next()}return Je}}function Ge(Je){return function(wt,lt){for(var Fe;(Fe=wt.next())!=null;){if(Fe=="<")return lt.tokenize=Ge(Je+1),lt.tokenize(wt,lt);if(Fe==">")if(Je==1){lt.tokenize=Le;break}else return lt.tokenize=Ge(Je-1),lt.tokenize(wt,lt)}return"meta"}}function ze(Je,wt,lt){this.prev=Je.context,this.tagName=wt,this.indent=Je.indented,this.startOfLine=lt,(Dt.doNotIndent.hasOwnProperty(wt)||Je.context&&Je.context.noIndent)&&(this.noIndent=!0)}function qe(Je){Je.context&&(Je.context=Je.context.prev)}function pt(Je,wt){for(var lt;;){if(!Je.context||(lt=Je.context.tagName,!Dt.contextGrabbers.hasOwnProperty(lt)||!Dt.contextGrabbers[lt].hasOwnProperty(wt)))return;qe(Je)}}function Bt(Je,wt,lt){return Je=="openTag"?(lt.tagStart=wt.column(),vt):Je=="closeTag"?yt:Bt}function vt(Je,wt,lt){return Je=="word"?(lt.tagName=wt.current(),ke="tag",pn):Dt.allowMissingTagName&&Je=="endTag"?(ke="tag bracket",pn(Je,wt,lt)):(ke="error",vt)}function yt(Je,wt,lt){if(Je=="word"){var Fe=wt.current();return lt.context&<.context.tagName!=Fe&&Dt.implicitlyClosed.hasOwnProperty(lt.context.tagName)&&qe(lt),lt.context&<.context.tagName==Fe||Dt.matchClosing===!1?(ke="tag",Nt):(ke="tag error",Et)}else return Dt.allowMissingTagName&&Je=="endTag"?(ke="tag bracket",Nt(Je,wt,lt)):(ke="error",Et)}function Nt(Je,wt,lt){return Je!="endTag"?(ke="error",Nt):(qe(lt),Bt)}function Et(Je,wt,lt){return ke="error",Nt(Je,wt,lt)}function pn(Je,wt,lt){if(Je=="word")return ke="attribute",Pt;if(Je=="endTag"||Je=="selfcloseTag"){var Fe=lt.tagName,Zt=lt.tagStart;return lt.tagName=lt.tagStart=null,Je=="selfcloseTag"||Dt.autoSelfClosers.hasOwnProperty(Fe)?pt(lt,Fe):(pt(lt,Fe),lt.context=new ze(lt,Fe,Zt==lt.indented)),Bt}return ke="error",pn}function Pt(Je,wt,lt){return Je=="equals"?St:(Dt.allowMissing||(ke="error"),pn(Je,wt,lt))}function St(Je,wt,lt){return Je=="string"?jt:Je=="word"&&Dt.allowUnquoted?(ke="string",pn):(ke="error",pn(Je,wt,lt))}function jt(Je,wt,lt){return Je=="string"?jt:pn(Je,wt,lt)}return{startState:function(Je){var wt={tokenize:Le,state:Bt,indented:Je||0,tagName:null,tagStart:null,context:null};return Je!=null&&(wt.baseIndent=Je),wt},token:function(Je,wt){if(!wt.tagName&&Je.sol()&&(wt.indented=Je.indentation()),Je.eatSpace())return null;ce=null;var lt=wt.tokenize(Je,wt);return(lt||ce)&<!="comment"&&(ke=null,wt.state=wt.state(ce||lt,Je,wt),ke&&(lt=ke=="error"?lt+" error":ke)),lt},indent:function(Je,wt,lt){var Fe=Je.context;if(Je.tokenize.isInAttribute)return Je.tagStart==Je.indented?Je.stringStartCol+1:Je.indented+at;if(Fe&&Fe.noIndent)return oe.Pass;if(Je.tokenize!=Ve&&Je.tokenize!=Le)return lt?lt.match(/^(\s*)/)[0].length:0;if(Je.tagName)return Dt.multilineTagIndentPastTag!==!1?Je.tagStart+Je.tagName.length+2:Je.tagStart+at*(Dt.multilineTagIndentFactor||1);if(Dt.alignCDATA&&/<!\[CDATA\[/.test(wt))return 0;var Zt=wt&&/^<(\/)?([\w_:\.-]*)/.exec(wt);if(Zt&&Zt[1])for(;Fe;)if(Fe.tagName==Zt[2]){Fe=Fe.prev;break}else if(Dt.implicitlyClosed.hasOwnProperty(Fe.tagName))Fe=Fe.prev;else break;else if(Zt)for(;Fe;){var $e=Dt.contextGrabbers[Fe.tagName];if($e&&$e.hasOwnProperty(Zt[2]))Fe=Fe.prev;else break}for(;Fe&&Fe.prev&&!Fe.startOfLine;)Fe=Fe.prev;return Fe?Fe.indent+at:Je.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:Dt.htmlMode?"html":"xml",helperType:Dt.htmlMode?"html":"xml",skipAttribute:function(Je){Je.state==St&&(Je.state=pn)},xmlCurrentTag:function(Je){return Je.tagName?{name:Je.tagName,close:Je.type=="closeTag"}:null},xmlCurrentContext:function(Je){for(var wt=[],lt=Je.context;lt;lt=lt.prev)lt.tagName&&wt.push(lt.tagName);return wt.reverse()}}}),oe.defineMIME("text/xml","xml"),oe.defineMIME("application/xml","xml"),oe.mimeModes.hasOwnProperty("text/html")||oe.defineMIME("text/html",{name:"xml",htmlMode:!0})})},64270:function(gr){(function(zn,pe){gr.exports=pe()})(this,function(){"use strict";var zn=function(Ae,ie){return zn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(fe,ue){fe.__proto__=ue}||function(fe,ue){for(var Ue in ue)Object.prototype.hasOwnProperty.call(ue,Ue)&&(fe[Ue]=ue[Ue])},zn(Ae,ie)};function pe(Ae,ie){if(typeof ie!="function"&&ie!==null)throw new TypeError("Class extends value "+String(ie)+" is not a constructor or null");zn(Ae,ie);function fe(){this.constructor=Ae}Ae.prototype=ie===null?Object.create(ie):(fe.prototype=ie.prototype,new fe)}var oe=function(){return oe=Object.assign||function(ie){for(var fe,ue=1,Ue=arguments.length;ue<Ue;ue++){fe=arguments[ue];for(var je in fe)Object.prototype.hasOwnProperty.call(fe,je)&&(ie[je]=fe[je])}return ie},oe.apply(this,arguments)};function qt(Ae,ie,fe,ue){function Ue(je){return je instanceof fe?je:new fe(function(dt){dt(je)})}return new(fe||(fe=Promise))(function(je,dt){function Jt(er){try{Vn(ue.next(er))}catch(sr){dt(sr)}}function Yt(er){try{Vn(ue.throw(er))}catch(sr){dt(sr)}}function Vn(er){er.done?je(er.value):Ue(er.value).then(Jt,Yt)}Vn((ue=ue.apply(Ae,ie||[])).next())})}function Xe(Ae,ie){var fe={label:0,sent:function(){if(je[0]&1)throw je[1];return je[1]},trys:[],ops:[]},ue,Ue,je,dt;return dt={next:Jt(0),throw:Jt(1),return:Jt(2)},typeof Symbol=="function"&&(dt[Symbol.iterator]=function(){return this}),dt;function Jt(Vn){return function(er){return Yt([Vn,er])}}function Yt(Vn){if(ue)throw new TypeError("Generator is already executing.");for(;fe;)try{if(ue=1,Ue&&(je=Vn[0]&2?Ue.return:Vn[0]?Ue.throw||((je=Ue.return)&&je.call(Ue),0):Ue.next)&&!(je=je.call(Ue,Vn[1])).done)return je;switch(Ue=0,je&&(Vn=[Vn[0]&2,je.value]),Vn[0]){case 0:case 1:je=Vn;break;case 4:return fe.label++,{value:Vn[1],done:!1};case 5:fe.label++,Ue=Vn[1],Vn=[0];continue;case 7:Vn=fe.ops.pop(),fe.trys.pop();continue;default:if(je=fe.trys,!(je=je.length>0&&je[je.length-1])&&(Vn[0]===6||Vn[0]===2)){fe=0;continue}if(Vn[0]===3&&(!je||Vn[1]>je[0]&&Vn[1]<je[3])){fe.label=Vn[1];break}if(Vn[0]===6&&fe.label<je[1]){fe.label=je[1],je=Vn;break}if(je&&fe.label<je[2]){fe.label=je[2],fe.ops.push(Vn);break}je[2]&&fe.ops.pop(),fe.trys.pop();continue}Vn=ie.call(Ae,fe)}catch(er){Vn=[6,er],Ue=0}finally{ue=je=0}if(Vn[0]&5)throw Vn[1];return{value:Vn[0]?Vn[1]:void 0,done:!0}}}function Ht(Ae,ie,fe){if(fe||arguments.length===2)for(var ue=0,Ue=ie.length,je;ue<Ue;ue++)(je||!(ue in ie))&&(je||(je=Array.prototype.slice.call(ie,0,ue)),je[ue]=ie[ue]);return Ae.concat(je||ie)}for(var rt=function(){function Ae(ie,fe,ue,Ue){this.left=ie,this.top=fe,this.width=ue,this.height=Ue}return Ae.prototype.add=function(ie,fe,ue,Ue){return new Ae(this.left+ie,this.top+fe,this.width+ue,this.height+Ue)},Ae.fromClientRect=function(ie,fe){return new Ae(fe.left+ie.windowBounds.left,fe.top+ie.windowBounds.top,fe.width,fe.height)},Ae.fromDOMRectList=function(ie,fe){var ue=Array.from(fe).find(function(Ue){return Ue.width!==0});return ue?new Ae(ue.left+ie.windowBounds.left,ue.top+ie.windowBounds.top,ue.width,ue.height):Ae.EMPTY},Ae.EMPTY=new Ae(0,0,0,0),Ae}(),at=function(Ae,ie){return rt.fromClientRect(Ae,ie.getBoundingClientRect())},Dt=function(Ae){var ie=Ae.body,fe=Ae.documentElement;if(!ie||!fe)throw new Error("Unable to get document size");var ue=Math.max(Math.max(ie.scrollWidth,fe.scrollWidth),Math.max(ie.offsetWidth,fe.offsetWidth),Math.max(ie.clientWidth,fe.clientWidth)),Ue=Math.max(Math.max(ie.scrollHeight,fe.scrollHeight),Math.max(ie.offsetHeight,fe.offsetHeight),Math.max(ie.clientHeight,fe.clientHeight));return new rt(0,0,ue,Ue)},Me=function(Ae){for(var ie=[],fe=0,ue=Ae.length;fe<ue;){var Ue=Ae.charCodeAt(fe++);if(Ue>=55296&&Ue<=56319&&fe<ue){var je=Ae.charCodeAt(fe++);(je&64512)===56320?ie.push(((Ue&1023)<<10)+(je&1023)+65536):(ie.push(Ue),fe--)}else ie.push(Ue)}return ie},Pe=function(){for(var Ae=[],ie=0;ie<arguments.length;ie++)Ae[ie]=arguments[ie];if(String.fromCodePoint)return String.fromCodePoint.apply(String,Ae);var fe=Ae.length;if(!fe)return"";for(var ue=[],Ue=-1,je="";++Ue<fe;){var dt=Ae[Ue];dt<=65535?ue.push(dt):(dt-=65536,ue.push((dt>>10)+55296,dt%1024+56320)),(Ue+1===fe||ue.length>16384)&&(je+=String.fromCharCode.apply(String,ue),ue.length=0)}return je},ce="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ke=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Le=0;Le<ce.length;Le++)ke[ce.charCodeAt(Le)]=Le;for(var Ve="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ke=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),He=0;He<Ve.length;He++)Ke[Ve.charCodeAt(He)]=He;for(var Ge=function(Ae){var ie=Ae.length*.75,fe=Ae.length,ue,Ue=0,je,dt,Jt,Yt;Ae[Ae.length-1]==="="&&(ie--,Ae[Ae.length-2]==="="&&ie--);var Vn=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(ie):new Array(ie),er=Array.isArray(Vn)?Vn:new Uint8Array(Vn);for(ue=0;ue<fe;ue+=4)je=Ke[Ae.charCodeAt(ue)],dt=Ke[Ae.charCodeAt(ue+1)],Jt=Ke[Ae.charCodeAt(ue+2)],Yt=Ke[Ae.charCodeAt(ue+3)],er[Ue++]=je<<2|dt>>4,er[Ue++]=(dt&15)<<4|Jt>>2,er[Ue++]=(Jt&3)<<6|Yt&63;return Vn},ze=function(Ae){for(var ie=Ae.length,fe=[],ue=0;ue<ie;ue+=2)fe.push(Ae[ue+1]<<8|Ae[ue]);return fe},qe=function(Ae){for(var ie=Ae.length,fe=[],ue=0;ue<ie;ue+=4)fe.push(Ae[ue+3]<<24|Ae[ue+2]<<16|Ae[ue+1]<<8|Ae[ue]);return fe},pt=5,Bt=11,vt=2,yt=Bt-pt,Nt=65536>>pt,Et=1<<pt,pn=Et-1,Pt=1024>>pt,St=Nt+Pt,jt=St,Je=32,wt=jt+Je,lt=65536>>Bt,Fe=1<<yt,Zt=Fe-1,$e=function(Ae,ie,fe){return Ae.slice?Ae.slice(ie,fe):new Uint16Array(Array.prototype.slice.call(Ae,ie,fe))},At=function(Ae,ie,fe){return Ae.slice?Ae.slice(ie,fe):new Uint32Array(Array.prototype.slice.call(Ae,ie,fe))},Qt=function(Ae,ie){var fe=Ge(Ae),ue=Array.isArray(fe)?qe(fe):new Uint32Array(fe),Ue=Array.isArray(fe)?ze(fe):new Uint16Array(fe),je=24,dt=$e(Ue,je/2,ue[4]/2),Jt=ue[5]===2?$e(Ue,(je+ue[4])/2):At(ue,Math.ceil((je+ue[4])/4));return new Te(ue[0],ue[1],ue[2],ue[3],dt,Jt)},Te=function(){function Ae(ie,fe,ue,Ue,je,dt){this.initialValue=ie,this.errorValue=fe,this.highStart=ue,this.highValueIndex=Ue,this.index=je,this.data=dt}return Ae.prototype.get=function(ie){var fe;if(ie>=0){if(ie<55296||ie>56319&&ie<=65535)return fe=this.index[ie>>pt],fe=(fe<<vt)+(ie&pn),this.data[fe];if(ie<=65535)return fe=this.index[Nt+(ie-55296>>pt)],fe=(fe<<vt)+(ie&pn),this.data[fe];if(ie<this.highStart)return fe=wt-lt+(ie>>Bt),fe=this.index[fe],fe+=ie>>pt&Zt,fe=this.index[fe],fe=(fe<<vt)+(ie&pn),this.data[fe];if(ie<=1114111)return this.data[this.highValueIndex]}return this.errorValue},Ae}(),xe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",It=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Cn=0;Cn<xe.length;Cn++)It[xe.charCodeAt(Cn)]=Cn;var mn="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",Ze=50,Ct=1,_t=2,In=3,xn=4,Wn=5,ct=7,En=8,Rt=9,be=10,de=11,le=12,ye=13,Ie=14,he=15,We=16,tt=17,dn=18,ut=19,zt=20,en=21,Sn=22,yn=23,ar=24,Mt=25,nn=26,ln=27,Un=28,Nn=29,un=30,ir=31,Xn=32,Ft=33,An=34,Qn=35,Jn=36,nt=37,gt=38,Kt=39,vn=40,Rn=41,hr=42,$r=43,Xr=[9001,65288],vr="!",lr="\xD7",Dr="\xF7",rr=Qt(mn),Tn=[un,Jn],_n=[Ct,_t,In,Wn],Ln=[be,En],mr=[ln,nn],cr=_n.concat(Ln),pr=[gt,Kt,vn,An,Qn],Rr=[he,ye],Wr=function(Ae,ie){ie===void 0&&(ie="strict");var fe=[],ue=[],Ue=[];return Ae.forEach(function(je,dt){var Jt=rr.get(je);if(Jt>Ze?(Ue.push(!0),Jt-=Ze):Ue.push(!1),["normal","auto","loose"].indexOf(ie)!==-1&&[8208,8211,12316,12448].indexOf(je)!==-1)return ue.push(dt),fe.push(We);if(Jt===xn||Jt===de){if(dt===0)return ue.push(dt),fe.push(un);var Yt=fe[dt-1];return cr.indexOf(Yt)===-1?(ue.push(ue[dt-1]),fe.push(Yt)):(ue.push(dt),fe.push(un))}if(ue.push(dt),Jt===ir)return fe.push(ie==="strict"?en:nt);if(Jt===hr||Jt===Nn)return fe.push(un);if(Jt===$r)return je>=131072&&je<=196605||je>=196608&&je<=262141?fe.push(nt):fe.push(un);fe.push(Jt)}),[ue,fe,Ue]},Gr=function(Ae,ie,fe,ue){var Ue=ue[fe];if(Array.isArray(Ae)?Ae.indexOf(Ue)!==-1:Ae===Ue)for(var je=fe;je<=ue.length;){je++;var dt=ue[je];if(dt===ie)return!0;if(dt!==be)break}if(Ue===be)for(var je=fe;je>0;){je--;var Jt=ue[je];if(Array.isArray(Ae)?Ae.indexOf(Jt)!==-1:Ae===Jt)for(var Yt=fe;Yt<=ue.length;){Yt++;var dt=ue[Yt];if(dt===ie)return!0;if(dt!==be)break}if(Jt!==be)break}return!1},ai=function(Ae,ie){for(var fe=Ae;fe>=0;){var ue=ie[fe];if(ue===be)fe--;else return ue}return 0},ti=function(Ae,ie,fe,ue,Ue){if(fe[ue]===0)return lr;var je=ue-1;if(Array.isArray(Ue)&&Ue[je]===!0)return lr;var dt=je-1,Jt=je+1,Yt=ie[je],Vn=dt>=0?ie[dt]:0,er=ie[Jt];if(Yt===_t&&er===In)return lr;if(_n.indexOf(Yt)!==-1)return vr;if(_n.indexOf(er)!==-1||Ln.indexOf(er)!==-1)return lr;if(ai(je,ie)===En)return Dr;if(rr.get(Ae[je])===de||(Yt===Xn||Yt===Ft)&&rr.get(Ae[Jt])===de||Yt===ct||er===ct||Yt===Rt||[be,ye,he].indexOf(Yt)===-1&&er===Rt||[tt,dn,ut,ar,Un].indexOf(er)!==-1||ai(je,ie)===Sn||Gr(yn,Sn,je,ie)||Gr([tt,dn],en,je,ie)||Gr(le,le,je,ie))return lr;if(Yt===be)return Dr;if(Yt===yn||er===yn)return lr;if(er===We||Yt===We)return Dr;if([ye,he,en].indexOf(er)!==-1||Yt===Ie||Vn===Jn&&Rr.indexOf(Yt)!==-1||Yt===Un&&er===Jn||er===zt||Tn.indexOf(er)!==-1&&Yt===Mt||Tn.indexOf(Yt)!==-1&&er===Mt||Yt===ln&&[nt,Xn,Ft].indexOf(er)!==-1||[nt,Xn,Ft].indexOf(Yt)!==-1&&er===nn||Tn.indexOf(Yt)!==-1&&mr.indexOf(er)!==-1||mr.indexOf(Yt)!==-1&&Tn.indexOf(er)!==-1||[ln,nn].indexOf(Yt)!==-1&&(er===Mt||[Sn,he].indexOf(er)!==-1&&ie[Jt+1]===Mt)||[Sn,he].indexOf(Yt)!==-1&&er===Mt||Yt===Mt&&[Mt,Un,ar].indexOf(er)!==-1)return lr;if([Mt,Un,ar,tt,dn].indexOf(er)!==-1)for(var sr=je;sr>=0;){var Zr=ie[sr];if(Zr===Mt)return lr;if([Un,ar].indexOf(Zr)!==-1)sr--;else break}if([ln,nn].indexOf(er)!==-1)for(var sr=[tt,dn].indexOf(Yt)!==-1?dt:je;sr>=0;){var Zr=ie[sr];if(Zr===Mt)return lr;if([Un,ar].indexOf(Zr)!==-1)sr--;else break}if(gt===Yt&&[gt,Kt,An,Qn].indexOf(er)!==-1||[Kt,An].indexOf(Yt)!==-1&&[Kt,vn].indexOf(er)!==-1||[vn,Qn].indexOf(Yt)!==-1&&er===vn||pr.indexOf(Yt)!==-1&&[zt,nn].indexOf(er)!==-1||pr.indexOf(er)!==-1&&Yt===ln||Tn.indexOf(Yt)!==-1&&Tn.indexOf(er)!==-1||Yt===ar&&Tn.indexOf(er)!==-1||Tn.concat(Mt).indexOf(Yt)!==-1&&er===Sn&&Xr.indexOf(Ae[Jt])===-1||Tn.concat(Mt).indexOf(er)!==-1&&Yt===dn)return lr;if(Yt===Rn&&er===Rn){for(var zi=fe[je],pi=1;zi>0&&(zi--,ie[zi]===Rn);)pi++;if(pi%2!==0)return lr}return Yt===Xn&&er===Ft?lr:Dr},xi=function(Ae,ie){ie||(ie={lineBreak:"normal",wordBreak:"normal"});var fe=Wr(Ae,ie.lineBreak),ue=fe[0],Ue=fe[1],je=fe[2];(ie.wordBreak==="break-all"||ie.wordBreak==="break-word")&&(Ue=Ue.map(function(Jt){return[Mt,un,hr].indexOf(Jt)!==-1?nt:Jt}));var dt=ie.wordBreak==="keep-all"?je.map(function(Jt,Yt){return Jt&&Ae[Yt]>=19968&&Ae[Yt]<=40959}):void 0;return[ue,Ue,dt]},mi=function(){function Ae(ie,fe,ue,Ue){this.codePoints=ie,this.required=fe===vr,this.start=ue,this.end=Ue}return Ae.prototype.slice=function(){return Pe.apply(void 0,this.codePoints.slice(this.start,this.end))},Ae}(),Xt=function(Ae,ie){var fe=Me(Ae),ue=xi(fe,ie),Ue=ue[0],je=ue[1],dt=ue[2],Jt=fe.length,Yt=0,Vn=0;return{next:function(){if(Vn>=Jt)return{done:!0,value:null};for(var er=lr;Vn<Jt&&(er=ti(fe,je,Ue,++Vn,dt))===lr;);if(er!==lr||Vn===Jt){var sr=new mi(fe,er,Yt,Vn);return Yt=Vn,{value:sr,done:!1}}return{done:!0,value:null}}}},Kn=1,Lr=2,wr=4,Lt=8,Vt=10,ot=47,kt=92,ft=9,Gt=32,Fn=34,xr=61,Or=35,kr=36,dr=37,Zn=39,Mn=40,Ur=41,si=95,ei=45,Ai=33,Ki=60,Vi=62,eo=64,Di=91,bi=93,Fi=61,ki=123,uo=63,Zi=125,co=124,oo=126,Yi=128,Xi=65533,Oo=42,go=43,bo=44,Po=58,Ho=59,$i=46,Bo=0,Pi=8,Ko=11,Ua=14,Oa=31,Jo=127,Vo=-1,qo=48,ma=97,Ma=101,mo=102,Ti=117,Pr=122,jr=65,Vr=69,Sr=70,hi=85,Ii=90,Fr=function(Ae){return Ae>=qo&&Ae<=57},zr=function(Ae){return Ae>=55296&&Ae<=57343},fi=function(Ae){return Fr(Ae)||Ae>=jr&&Ae<=Sr||Ae>=ma&&Ae<=mo},vi=function(Ae){return Ae>=ma&&Ae<=Pr},to=function(Ae){return Ae>=jr&&Ae<=Ii},Zo=function(Ae){return vi(Ae)||to(Ae)},Do=function(Ae){return Ae>=Yi},ra=function(Ae){return Ae===Vt||Ae===ft||Ae===Gt},ea=function(Ae){return Zo(Ae)||Do(Ae)||Ae===si},va=function(Ae){return ea(Ae)||Fr(Ae)||Ae===ei},Aa=function(Ae){return Ae>=Bo&&Ae<=Pi||Ae===Ko||Ae>=Ua&&Ae<=Oa||Ae===Jo},Ro=function(Ae,ie){return Ae!==kt?!1:ie!==Vt},Ia=function(Ae,ie,fe){return Ae===ei?ea(ie)||Ro(ie,fe):ea(Ae)?!0:!!(Ae===kt&&Ro(Ae,ie))},qa=function(Ae,ie,fe){return Ae===go||Ae===ei?Fr(ie)?!0:ie===$i&&Fr(fe):Fr(Ae===$i?ie:Ae)},mA=function(Ae){var ie=0,fe=1;(Ae[ie]===go||Ae[ie]===ei)&&(Ae[ie]===ei&&(fe=-1),ie++);for(var ue=[];Fr(Ae[ie]);)ue.push(Ae[ie++]);var Ue=ue.length?parseInt(Pe.apply(void 0,ue),10):0;Ae[ie]===$i&&ie++;for(var je=[];Fr(Ae[ie]);)je.push(Ae[ie++]);var dt=je.length,Jt=dt?parseInt(Pe.apply(void 0,je),10):0;(Ae[ie]===Vr||Ae[ie]===Ma)&&ie++;var Yt=1;(Ae[ie]===go||Ae[ie]===ei)&&(Ae[ie]===ei&&(Yt=-1),ie++);for(var Vn=[];Fr(Ae[ie]);)Vn.push(Ae[ie++]);var er=Vn.length?parseInt(Pe.apply(void 0,Vn),10):0;return fe*(Ue+Jt*Math.pow(10,-dt))*Math.pow(10,Yt*er)},EA={type:2},qs={type:3},eA={type:4},Bl={type:13},ya={type:8},Cl={type:21},ws={type:9},tA={type:10},bs={type:11},Ts={type:12},nA={type:14},vA={type:23},es={type:1},ZA={type:25},mu={type:24},ul={type:26},ps={type:27},vu={type:28},kl={type:29},io={type:31},So={type:32},vo=function(){function Ae(){this._value=[]}return Ae.prototype.write=function(ie){this._value=this._value.concat(Me(ie))},Ae.prototype.read=function(){for(var ie=[],fe=this.consumeToken();fe!==So;)ie.push(fe),fe=this.consumeToken();return ie},Ae.prototype.consumeToken=function(){var ie=this.consumeCodePoint();switch(ie){case Fn:return this.consumeStringToken(Fn);case Or:var fe=this.peekCodePoint(0),ue=this.peekCodePoint(1),Ue=this.peekCodePoint(2);if(va(fe)||Ro(ue,Ue)){var je=Ia(fe,ue,Ue)?Lr:Kn,dt=this.consumeName();return{type:5,value:dt,flags:je}}break;case kr:if(this.peekCodePoint(0)===xr)return this.consumeCodePoint(),Bl;break;case Zn:return this.consumeStringToken(Zn);case Mn:return EA;case Ur:return qs;case Oo:if(this.peekCodePoint(0)===xr)return this.consumeCodePoint(),nA;break;case go:if(qa(ie,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(ie),this.consumeNumericToken();break;case bo:return eA;case ei:var Jt=ie,Yt=this.peekCodePoint(0),Vn=this.peekCodePoint(1);if(qa(Jt,Yt,Vn))return this.reconsumeCodePoint(ie),this.consumeNumericToken();if(Ia(Jt,Yt,Vn))return this.reconsumeCodePoint(ie),this.consumeIdentLikeToken();if(Yt===ei&&Vn===Vi)return this.consumeCodePoint(),this.consumeCodePoint(),mu;break;case $i:if(qa(ie,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(ie),this.consumeNumericToken();break;case ot:if(this.peekCodePoint(0)===Oo)for(this.consumeCodePoint();;){var er=this.consumeCodePoint();if(er===Oo&&(er=this.consumeCodePoint(),er===ot))return this.consumeToken();if(er===Vo)return this.consumeToken()}break;case Po:return ul;case Ho:return ps;case Ki:if(this.peekCodePoint(0)===Ai&&this.peekCodePoint(1)===ei&&this.peekCodePoint(2)===ei)return this.consumeCodePoint(),this.consumeCodePoint(),ZA;break;case eo:var sr=this.peekCodePoint(0),Zr=this.peekCodePoint(1),zi=this.peekCodePoint(2);if(Ia(sr,Zr,zi)){var dt=this.consumeName();return{type:7,value:dt}}break;case Di:return vu;case kt:if(Ro(ie,this.peekCodePoint(0)))return this.reconsumeCodePoint(ie),this.consumeIdentLikeToken();break;case bi:return kl;case Fi:if(this.peekCodePoint(0)===xr)return this.consumeCodePoint(),ya;break;case ki:return bs;case Zi:return Ts;case Ti:case hi:var pi=this.peekCodePoint(0),Oi=this.peekCodePoint(1);return pi===go&&(fi(Oi)||Oi===uo)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(ie),this.consumeIdentLikeToken();case co:if(this.peekCodePoint(0)===xr)return this.consumeCodePoint(),ws;if(this.peekCodePoint(0)===co)return this.consumeCodePoint(),Cl;break;case oo:if(this.peekCodePoint(0)===xr)return this.consumeCodePoint(),tA;break;case Vo:return So}return ra(ie)?(this.consumeWhiteSpace(),io):Fr(ie)?(this.reconsumeCodePoint(ie),this.consumeNumericToken()):ea(ie)?(this.reconsumeCodePoint(ie),this.consumeIdentLikeToken()):{type:6,value:Pe(ie)}},Ae.prototype.consumeCodePoint=function(){var ie=this._value.shift();return typeof ie=="undefined"?-1:ie},Ae.prototype.reconsumeCodePoint=function(ie){this._value.unshift(ie)},Ae.prototype.peekCodePoint=function(ie){return ie>=this._value.length?-1:this._value[ie]},Ae.prototype.consumeUnicodeRangeToken=function(){for(var ie=[],fe=this.consumeCodePoint();fi(fe)&&ie.length<6;)ie.push(fe),fe=this.consumeCodePoint();for(var ue=!1;fe===uo&&ie.length<6;)ie.push(fe),fe=this.consumeCodePoint(),ue=!0;if(ue){var Ue=parseInt(Pe.apply(void 0,ie.map(function(Yt){return Yt===uo?qo:Yt})),16),je=parseInt(Pe.apply(void 0,ie.map(function(Yt){return Yt===uo?Sr:Yt})),16);return{type:30,start:Ue,end:je}}var dt=parseInt(Pe.apply(void 0,ie),16);if(this.peekCodePoint(0)===ei&&fi(this.peekCodePoint(1))){this.consumeCodePoint(),fe=this.consumeCodePoint();for(var Jt=[];fi(fe)&&Jt.length<6;)Jt.push(fe),fe=this.consumeCodePoint();var je=parseInt(Pe.apply(void 0,Jt),16);return{type:30,start:dt,end:je}}else return{type:30,start:dt,end:dt}},Ae.prototype.consumeIdentLikeToken=function(){var ie=this.consumeName();return ie.toLowerCase()==="url"&&this.peekCodePoint(0)===Mn?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Mn?(this.consumeCodePoint(),{type:19,value:ie}):{type:20,value:ie}},Ae.prototype.consumeUrlToken=function(){var ie=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Vo)return{type:22,value:""};var fe=this.peekCodePoint(0);if(fe===Zn||fe===Fn){var ue=this.consumeStringToken(this.consumeCodePoint());return ue.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Vo||this.peekCodePoint(0)===Ur)?(this.consumeCodePoint(),{type:22,value:ue.value}):(this.consumeBadUrlRemnants(),vA)}for(;;){var Ue=this.consumeCodePoint();if(Ue===Vo||Ue===Ur)return{type:22,value:Pe.apply(void 0,ie)};if(ra(Ue))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Vo||this.peekCodePoint(0)===Ur?(this.consumeCodePoint(),{type:22,value:Pe.apply(void 0,ie)}):(this.consumeBadUrlRemnants(),vA);if(Ue===Fn||Ue===Zn||Ue===Mn||Aa(Ue))return this.consumeBadUrlRemnants(),vA;if(Ue===kt)if(Ro(Ue,this.peekCodePoint(0)))ie.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),vA;else ie.push(Ue)}},Ae.prototype.consumeWhiteSpace=function(){for(;ra(this.peekCodePoint(0));)this.consumeCodePoint()},Ae.prototype.consumeBadUrlRemnants=function(){for(;;){var ie=this.consumeCodePoint();if(ie===Ur||ie===Vo)return;Ro(ie,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},Ae.prototype.consumeStringSlice=function(ie){for(var fe=5e4,ue="";ie>0;){var Ue=Math.min(fe,ie);ue+=Pe.apply(void 0,this._value.splice(0,Ue)),ie-=Ue}return this._value.shift(),ue},Ae.prototype.consumeStringToken=function(ie){var fe="",ue=0;do{var Ue=this._value[ue];if(Ue===Vo||Ue===void 0||Ue===ie)return fe+=this.consumeStringSlice(ue),{type:0,value:fe};if(Ue===Vt)return this._value.splice(0,ue),es;if(Ue===kt){var je=this._value[ue+1];je!==Vo&&je!==void 0&&(je===Vt?(fe+=this.consumeStringSlice(ue),ue=-1,this._value.shift()):Ro(Ue,je)&&(fe+=this.consumeStringSlice(ue),fe+=Pe(this.consumeEscapedCodePoint()),ue=-1))}ue++}while(!0)},Ae.prototype.consumeNumber=function(){var ie=[],fe=wr,ue=this.peekCodePoint(0);for((ue===go||ue===ei)&&ie.push(this.consumeCodePoint());Fr(this.peekCodePoint(0));)ie.push(this.consumeCodePoint());ue=this.peekCodePoint(0);var Ue=this.peekCodePoint(1);if(ue===$i&&Fr(Ue))for(ie.push(this.consumeCodePoint(),this.consumeCodePoint()),fe=Lt;Fr(this.peekCodePoint(0));)ie.push(this.consumeCodePoint());ue=this.peekCodePoint(0),Ue=this.peekCodePoint(1);var je=this.peekCodePoint(2);if((ue===Vr||ue===Ma)&&((Ue===go||Ue===ei)&&Fr(je)||Fr(Ue)))for(ie.push(this.consumeCodePoint(),this.consumeCodePoint()),fe=Lt;Fr(this.peekCodePoint(0));)ie.push(this.consumeCodePoint());return[mA(ie),fe]},Ae.prototype.consumeNumericToken=function(){var ie=this.consumeNumber(),fe=ie[0],ue=ie[1],Ue=this.peekCodePoint(0),je=this.peekCodePoint(1),dt=this.peekCodePoint(2);if(Ia(Ue,je,dt)){var Jt=this.consumeName();return{type:15,number:fe,flags:ue,unit:Jt}}return Ue===dr?(this.consumeCodePoint(),{type:16,number:fe,flags:ue}):{type:17,number:fe,flags:ue}},Ae.prototype.consumeEscapedCodePoint=function(){var ie=this.consumeCodePoint();if(fi(ie)){for(var fe=Pe(ie);fi(this.peekCodePoint(0))&&fe.length<6;)fe+=Pe(this.consumeCodePoint());ra(this.peekCodePoint(0))&&this.consumeCodePoint();var ue=parseInt(fe,16);return ue===0||zr(ue)||ue>1114111?Xi:ue}return ie===Vo?Xi:ie},Ae.prototype.consumeName=function(){for(var ie="";;){var fe=this.consumeCodePoint();if(va(fe))ie+=Pe(fe);else if(Ro(fe,this.peekCodePoint(0)))ie+=Pe(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(fe),ie}},Ae}(),Eo=function(){function Ae(ie){this._tokens=ie}return Ae.create=function(ie){var fe=new vo;return fe.write(ie),new Ae(fe.read())},Ae.parseValue=function(ie){return Ae.create(ie).parseComponentValue()},Ae.parseValues=function(ie){return Ae.create(ie).parseComponentValues()},Ae.prototype.parseComponentValue=function(){for(var ie=this.consumeToken();ie.type===31;)ie=this.consumeToken();if(ie.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(ie);var fe=this.consumeComponentValue();do ie=this.consumeToken();while(ie.type===31);if(ie.type===32)return fe;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},Ae.prototype.parseComponentValues=function(){for(var ie=[];;){var fe=this.consumeComponentValue();if(fe.type===32)return ie;ie.push(fe),ie.push()}},Ae.prototype.consumeComponentValue=function(){var ie=this.consumeToken();switch(ie.type){case 11:case 28:case 2:return this.consumeSimpleBlock(ie.type);case 19:return this.consumeFunction(ie)}return ie},Ae.prototype.consumeSimpleBlock=function(ie){for(var fe={type:ie,values:[]},ue=this.consumeToken();;){if(ue.type===32||_A(ue,ie))return fe;this.reconsumeToken(ue),fe.values.push(this.consumeComponentValue()),ue=this.consumeToken()}},Ae.prototype.consumeFunction=function(ie){for(var fe={name:ie.value,values:[],type:18};;){var ue=this.consumeToken();if(ue.type===32||ue.type===3)return fe;this.reconsumeToken(ue),fe.values.push(this.consumeComponentValue())}},Ae.prototype.consumeToken=function(){var ie=this._tokens.shift();return typeof ie=="undefined"?So:ie},Ae.prototype.reconsumeToken=function(ie){this._tokens.unshift(ie)},Ae}(),la=function(Ae){return Ae.type===15},Da=function(Ae){return Ae.type===17},ua=function(Ae){return Ae.type===20},rA=function(Ae){return Ae.type===0},Is=function(Ae,ie){return ua(Ae)&&Ae.value===ie},ls=function(Ae){return Ae.type!==31},iA=function(Ae){return Ae.type!==31&&Ae.type!==4},Qs=function(Ae){var ie=[],fe=[];return Ae.forEach(function(ue){if(ue.type===4){if(fe.length===0)throw new Error("Error parsing function args, zero tokens for arg");ie.push(fe),fe=[];return}ue.type!==31&&fe.push(ue)}),fe.length&&ie.push(fe),ie},_A=function(Ae,ie){return ie===11&&Ae.type===12||ie===28&&Ae.type===29?!0:ie===2&&Ae.type===3},oA=function(Ae){return Ae.type===17||Ae.type===15},Za=function(Ae){return Ae.type===16||oA(Ae)},cl=function(Ae){return Ae.length>1?[Ae[0],Ae[1]]:[Ae[0]]},gs={type:17,number:0,flags:wr},Af={type:16,number:50,flags:wr},xl={type:16,number:100,flags:wr},$A=function(Ae,ie,fe){var ue=Ae[0],Ue=Ae[1];return[da(ue,ie),da(typeof Ue!="undefined"?Ue:ue,fe)]},da=function(Ae,ie){if(Ae.type===16)return Ae.number/100*ie;if(la(Ae))switch(Ae.unit){case"rem":case"em":return 16*Ae.number;case"px":default:return Ae.number}return Ae.number},XA="deg",lf="grad",rd="rad",Bs="turn",YA={name:"angle",parse:function(Ae,ie){if(ie.type===15)switch(ie.unit){case XA:return Math.PI*ie.number/180;case lf:return Math.PI/200*ie.number;case rd:return ie.number;case Bs:return Math.PI*2*ie.number}throw new Error("Unsupported angle type")}},Hl=function(Ae){return Ae.type===15&&(Ae.unit===XA||Ae.unit===lf||Ae.unit===rd||Ae.unit===Bs)},Bc=function(Ae){var ie=Ae.filter(ua).map(function(fe){return fe.value}).join(" ");switch(ie){case"to bottom right":case"to right bottom":case"left top":case"top left":return[gs,gs];case"to top":case"bottom":return Ks(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[gs,xl];case"to right":case"left":return Ks(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[xl,xl];case"to bottom":case"top":return Ks(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[xl,gs];case"to left":case"right":return Ks(270)}return 0},Ks=function(Ae){return Math.PI*Ae/180},kA={name:"color",parse:function(Ae,ie){if(ie.type===18){var fe=Co[ie.name];if(typeof fe=="undefined")throw new Error('Attempting to parse an unsupported color function "'+ie.name+'"');return fe(Ae,ie.values)}if(ie.type===5){if(ie.value.length===3){var ue=ie.value.substring(0,1),Ue=ie.value.substring(1,2),je=ie.value.substring(2,3);return _s(parseInt(ue+ue,16),parseInt(Ue+Ue,16),parseInt(je+je,16),1)}if(ie.value.length===4){var ue=ie.value.substring(0,1),Ue=ie.value.substring(1,2),je=ie.value.substring(2,3),dt=ie.value.substring(3,4);return _s(parseInt(ue+ue,16),parseInt(Ue+Ue,16),parseInt(je+je,16),parseInt(dt+dt,16)/255)}if(ie.value.length===6){var ue=ie.value.substring(0,2),Ue=ie.value.substring(2,4),je=ie.value.substring(4,6);return _s(parseInt(ue,16),parseInt(Ue,16),parseInt(je,16),1)}if(ie.value.length===8){var ue=ie.value.substring(0,2),Ue=ie.value.substring(2,4),je=ie.value.substring(4,6),dt=ie.value.substring(6,8);return _s(parseInt(ue,16),parseInt(Ue,16),parseInt(je,16),parseInt(dt,16)/255)}}if(ie.type===20){var Jt=xa[ie.value.toUpperCase()];if(typeof Jt!="undefined")return Jt}return xa.TRANSPARENT}},Ms=function(Ae){return(255&Ae)===0},Cs=function(Ae){var ie=255&Ae,fe=255&Ae>>8,ue=255&Ae>>16,Ue=255&Ae>>24;return ie<255?"rgba("+Ue+","+ue+","+fe+","+ie/255+")":"rgb("+Ue+","+ue+","+fe+")"},_s=function(Ae,ie,fe,ue){return(Ae<<24|ie<<16|fe<<8|Math.round(ue*255)<<0)>>>0},Gu=function(Ae,ie){if(Ae.type===17)return Ae.number;if(Ae.type===16){var fe=ie===3?1:255;return ie===3?Ae.number/100*fe:Math.round(Ae.number/100*fe)}return 0},uf=function(Ae,ie){var fe=ie.filter(iA);if(fe.length===3){var ue=fe.map(Gu),Ue=ue[0],je=ue[1],dt=ue[2];return _s(Ue,je,dt,1)}if(fe.length===4){var Jt=fe.map(Gu),Ue=Jt[0],je=Jt[1],dt=Jt[2],Yt=Jt[3];return _s(Ue,je,dt,Yt)}return 0};function ks(Ae,ie,fe){return fe<0&&(fe+=1),fe>=1&&(fe-=1),fe<1/6?(ie-Ae)*fe*6+Ae:fe<1/2?ie:fe<2/3?(ie-Ae)*6*(2/3-fe)+Ae:Ae}var aA=function(Ae,ie){var fe=ie.filter(iA),ue=fe[0],Ue=fe[1],je=fe[2],dt=fe[3],Jt=(ue.type===17?Ks(ue.number):YA.parse(Ae,ue))/(Math.PI*2),Yt=Za(Ue)?Ue.number/100:0,Vn=Za(je)?je.number/100:0,er=typeof dt!="undefined"&&Za(dt)?da(dt,1):1;if(Yt===0)return _s(Vn*255,Vn*255,Vn*255,1);var sr=Vn<=.5?Vn*(Yt+1):Vn+Yt-Vn*Yt,Zr=Vn*2-sr,zi=ks(Zr,sr,Jt+1/3),pi=ks(Zr,sr,Jt),Oi=ks(Zr,sr,Jt-1/3);return _s(zi*255,pi*255,Oi*255,er)},Co={hsl:aA,hsla:aA,rgb:uf,rgba:uf},Lo=function(Ae,ie){return kA.parse(Ae,Eo.create(ie).parseComponentValue())},xa={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},sA={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(Ae,ie){return ie.map(function(fe){if(ua(fe))switch(fe.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},us={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},fs=function(Ae,ie){var fe=kA.parse(Ae,ie[0]),ue=ie[1];return ue&&Za(ue)?{color:fe,stop:ue}:{color:fe,stop:null}},fl=function(Ae,ie){var fe=Ae[0],ue=Ae[Ae.length-1];fe.stop===null&&(fe.stop=gs),ue.stop===null&&(ue.stop=xl);for(var Ue=[],je=0,dt=0;dt<Ae.length;dt++){var Jt=Ae[dt].stop;if(Jt!==null){var Yt=da(Jt,ie);Yt>je?Ue.push(Yt):Ue.push(je),je=Yt}else Ue.push(null)}for(var Vn=null,dt=0;dt<Ue.length;dt++){var er=Ue[dt];if(er===null)Vn===null&&(Vn=dt);else if(Vn!==null){for(var sr=dt-Vn,Zr=Ue[Vn-1],zi=(er-Zr)/(sr+1),pi=1;pi<=sr;pi++)Ue[Vn+pi-1]=zi*pi;Vn=null}}return Ae.map(function(Oi,Wo){var Gi=Oi.color;return{color:Gi,stop:Math.max(Math.min(1,Ue[Wo]/ie),0)}})},SA=function(Ae,ie,fe){var ue=ie/2,Ue=fe/2,je=da(Ae[0],ie)-ue,dt=Ue-da(Ae[1],fe);return(Math.atan2(dt,je)+Math.PI*2)%(Math.PI*2)},Vl=function(Ae,ie,fe){var ue=typeof Ae=="number"?Ae:SA(Ae,ie,fe),Ue=Math.abs(ie*Math.sin(ue))+Math.abs(fe*Math.cos(ue)),je=ie/2,dt=fe/2,Jt=Ue/2,Yt=Math.sin(ue-Math.PI/2)*Jt,Vn=Math.cos(ue-Math.PI/2)*Jt;return[Ue,je-Vn,je+Vn,dt-Yt,dt+Yt]},cs=function(Ae,ie){return Math.sqrt(Ae*Ae+ie*ie)},FA=function(Ae,ie,fe,ue,Ue){var je=[[0,0],[0,ie],[Ae,0],[Ae,ie]];return je.reduce(function(dt,Jt){var Yt=Jt[0],Vn=Jt[1],er=cs(fe-Yt,ue-Vn);return(Ue?er<dt.optimumDistance:er>dt.optimumDistance)?{optimumCorner:Jt,optimumDistance:er}:dt},{optimumDistance:Ue?1/0:-1/0,optimumCorner:null}).optimumCorner},El=function(Ae,ie,fe,ue,Ue){var je=0,dt=0;switch(Ae.size){case 0:Ae.shape===0?je=dt=Math.min(Math.abs(ie),Math.abs(ie-ue),Math.abs(fe),Math.abs(fe-Ue)):Ae.shape===1&&(je=Math.min(Math.abs(ie),Math.abs(ie-ue)),dt=Math.min(Math.abs(fe),Math.abs(fe-Ue)));break;case 2:if(Ae.shape===0)je=dt=Math.min(cs(ie,fe),cs(ie,fe-Ue),cs(ie-ue,fe),cs(ie-ue,fe-Ue));else if(Ae.shape===1){var Jt=Math.min(Math.abs(fe),Math.abs(fe-Ue))/Math.min(Math.abs(ie),Math.abs(ie-ue)),Yt=FA(ue,Ue,ie,fe,!0),Vn=Yt[0],er=Yt[1];je=cs(Vn-ie,(er-fe)/Jt),dt=Jt*je}break;case 1:Ae.shape===0?je=dt=Math.max(Math.abs(ie),Math.abs(ie-ue),Math.abs(fe),Math.abs(fe-Ue)):Ae.shape===1&&(je=Math.max(Math.abs(ie),Math.abs(ie-ue)),dt=Math.max(Math.abs(fe),Math.abs(fe-Ue)));break;case 3:if(Ae.shape===0)je=dt=Math.max(cs(ie,fe),cs(ie,fe-Ue),cs(ie-ue,fe),cs(ie-ue,fe-Ue));else if(Ae.shape===1){var Jt=Math.max(Math.abs(fe),Math.abs(fe-Ue))/Math.max(Math.abs(ie),Math.abs(ie-ue)),sr=FA(ue,Ue,ie,fe,!1),Vn=sr[0],er=sr[1];je=cs(Vn-ie,(er-fe)/Jt),dt=Jt*je}break}return Array.isArray(Ae.size)&&(je=da(Ae.size[0],ue),dt=Ae.size.length===2?da(Ae.size[1],Ue):je),[je,dt]},Sl=function(Ae,ie){var fe=Ks(180),ue=[];return Qs(ie).forEach(function(Ue,je){if(je===0){var dt=Ue[0];if(dt.type===20&&dt.value==="to"){fe=Bc(Ue);return}else if(Hl(dt)){fe=YA.parse(Ae,dt);return}}var Jt=fs(Ae,Ue);ue.push(Jt)}),{angle:fe,stops:ue,type:1}},Cc=function(Ae,ie){var fe=Ks(180),ue=[];return Qs(ie).forEach(function(Ue,je){if(je===0){var dt=Ue[0];if(dt.type===20&&["top","left","right","bottom"].indexOf(dt.value)!==-1){fe=Bc(Ue);return}else if(Hl(dt)){fe=(YA.parse(Ae,dt)+Ks(270))%Ks(360);return}}var Jt=fs(Ae,Ue);ue.push(Jt)}),{angle:fe,stops:ue,type:1}},Yh=function(Ae,ie){var fe=Ks(180),ue=[],Ue=1,je=0,dt=3,Jt=[];return Qs(ie).forEach(function(Yt,Vn){var er=Yt[0];if(Vn===0){if(ua(er)&&er.value==="linear"){Ue=1;return}else if(ua(er)&&er.value==="radial"){Ue=2;return}}if(er.type===18){if(er.name==="from"){var sr=kA.parse(Ae,er.values[0]);ue.push({stop:gs,color:sr})}else if(er.name==="to"){var sr=kA.parse(Ae,er.values[0]);ue.push({stop:xl,color:sr})}else if(er.name==="color-stop"){var Zr=er.values.filter(iA);if(Zr.length===2){var sr=kA.parse(Ae,Zr[1]),zi=Zr[0];Da(zi)&&ue.push({stop:{type:16,number:zi.number*100,flags:zi.flags},color:sr})}}}}),Ue===1?{angle:(fe+Ks(180))%Ks(360),stops:ue,type:Ue}:{size:dt,shape:je,stops:ue,position:Jt,type:Ue}},id="closest-side",Vu="farthest-side",Zu="closest-corner",Ws="farthest-corner",Zl="circle",$l="ellipse",cf="cover",Jh="contain",wa=function(Ae,ie){var fe=0,ue=3,Ue=[],je=[];return Qs(ie).forEach(function(dt,Jt){var Yt=!0;if(Jt===0){var Vn=!1;Yt=dt.reduce(function(sr,Zr){if(Vn)if(ua(Zr))switch(Zr.value){case"center":return je.push(Af),sr;case"top":case"left":return je.push(gs),sr;case"right":case"bottom":return je.push(xl),sr}else(Za(Zr)||oA(Zr))&&je.push(Zr);else if(ua(Zr))switch(Zr.value){case Zl:return fe=0,!1;case $l:return fe=1,!1;case"at":return Vn=!0,!1;case id:return ue=0,!1;case cf:case Vu:return ue=1,!1;case Jh:case Zu:return ue=2,!1;case Ws:return ue=3,!1}else if(oA(Zr)||Za(Zr))return Array.isArray(ue)||(ue=[]),ue.push(Zr),!1;return sr},Yt)}if(Yt){var er=fs(Ae,dt);Ue.push(er)}}),{size:ue,shape:fe,stops:Ue,position:je,type:2}},IA=function(Ae,ie){var fe=0,ue=3,Ue=[],je=[];return Qs(ie).forEach(function(dt,Jt){var Yt=!0;if(Jt===0?Yt=dt.reduce(function(er,sr){if(ua(sr))switch(sr.value){case"center":return je.push(Af),!1;case"top":case"left":return je.push(gs),!1;case"right":case"bottom":return je.push(xl),!1}else if(Za(sr)||oA(sr))return je.push(sr),!1;return er},Yt):Jt===1&&(Yt=dt.reduce(function(er,sr){if(ua(sr))switch(sr.value){case Zl:return fe=0,!1;case $l:return fe=1,!1;case Jh:case id:return ue=0,!1;case Vu:return ue=1,!1;case Zu:return ue=2,!1;case cf:case Ws:return ue=3,!1}else if(oA(sr)||Za(sr))return Array.isArray(ue)||(ue=[]),ue.push(sr),!1;return er},Yt)),Yt){var Vn=fs(Ae,dt);Ue.push(Vn)}}),{size:ue,shape:fe,stops:Ue,position:je,type:2}},Fl=function(Ae){return Ae.type===1},qh=function(Ae){return Ae.type===2},Il={name:"image",parse:function(Ae,ie){if(ie.type===22){var fe={url:ie.value,type:0};return Ae.cache.addImage(ie.value),fe}if(ie.type===18){var ue=xc[ie.name];if(typeof ue=="undefined")throw new Error('Attempting to parse an unsupported image function "'+ie.name+'"');return ue(Ae,ie.values)}throw new Error("Unsupported image type "+ie.type)}};function $d(Ae){return!(Ae.type===20&&Ae.value==="none")&&(Ae.type!==18||!!xc[Ae.name])}var xc={"linear-gradient":Sl,"-moz-linear-gradient":Cc,"-ms-linear-gradient":Cc,"-o-linear-gradient":Cc,"-webkit-linear-gradient":Cc,"radial-gradient":wa,"-moz-radial-gradient":IA,"-ms-radial-gradient":IA,"-o-radial-gradient":IA,"-webkit-radial-gradient":IA,"-webkit-gradient":Yh},od={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(Ae,ie){if(ie.length===0)return[];var fe=ie[0];return fe.type===20&&fe.value==="none"?[]:ie.filter(function(ue){return iA(ue)&&$d(ue)}).map(function(ue){return Il.parse(Ae,ue)})}},ad={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(Ae,ie){return ie.map(function(fe){if(ua(fe))switch(fe.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},ff={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(Ae,ie){return Qs(ie).map(function(fe){return fe.filter(Za)}).map(cl)}},dl={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(Ae,ie){return Qs(ie).map(function(fe){return fe.filter(ua).map(function(ue){return ue.value}).join(" ")}).map(yu)}},yu=function(Ae){switch(Ae){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}},xs;(function(Ae){Ae.AUTO="auto",Ae.CONTAIN="contain",Ae.COVER="cover"})(xs||(xs={}));var Xl={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(Ae,ie){return Qs(ie).map(function(fe){return fe.filter($u)})}},$u=function(Ae){return ua(Ae)||Za(Ae)},Yl=function(Ae){return{name:"border-"+Ae+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Xp=Yl("top"),Jl=Yl("right"),sd=Yl("bottom"),JA=Yl("left"),wu=function(Ae){return{name:"border-radius-"+Ae,initialValue:"0 0",prefix:!1,type:1,parse:function(ie,fe){return cl(fe.filter(Za))}}},Xg=wu("top-left"),Ll=wu("top-right"),HA=wu("bottom-right"),AA=wu("bottom-left"),Ea=function(Ae){return{name:"border-"+Ae+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(ie,fe){switch(fe){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},Ul=Ea("top"),Xu=Ea("right"),bu=Ea("bottom"),Rl=Ea("left"),jl=function(Ae){return{name:"border-"+Ae+"-width",initialValue:"0",type:0,prefix:!1,parse:function(ie,fe){return la(fe)?fe.number:0}}},Ad=jl("top"),Yu=jl("right"),ep=jl("bottom"),Yp=jl("left"),yA={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Ol={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(Ae,ie){switch(ie){case"rtl":return 1;case"ltr":default:return 0}}},Jp={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(Ae,ie){return ie.filter(ua).reduce(function(fe,ue){return fe|qp(ue.value)},0)}},qp=function(Ae){switch(Ae){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},df={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(Ae,ie){switch(ie){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},tp={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(Ae,ie){return ie.type===20&&ie.value==="normal"?0:ie.type===17||ie.type===15?ie.number:0}},hf;(function(Ae){Ae.NORMAL="normal",Ae.STRICT="strict"})(hf||(hf={}));var eg={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(Ae,ie){switch(ie){case"strict":return hf.STRICT;case"normal":default:return hf.NORMAL}}},LA={name:"line-height",initialValue:"normal",prefix:!1,type:4},Ls=function(Ae,ie){return ua(Ae)&&Ae.value==="normal"?1.2*ie:Ae.type===17?ie*Ae.number:Za(Ae)?da(Ae,ie):ie},wA={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(Ae,ie){return ie.type===20&&ie.value==="none"?null:Il.parse(Ae,ie)}},Hs={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(Ae,ie){switch(ie){case"inside":return 0;case"outside":default:return 1}}},Ju={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(Ae,ie){switch(ie){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}}},ld=function(Ae){return{name:"margin-"+Ae,initialValue:"0",prefix:!1,type:4}},ud=ld("top"),tg=ld("right"),ng=ld("bottom"),rg=ld("left"),Xd={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(Ae,ie){return ie.filter(ua).map(function(fe){switch(fe.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},np={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(Ae,ie){switch(ie){case"break-word":return"break-word";case"normal":default:return"normal"}}},Ec=function(Ae){return{name:"padding-"+Ae,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},ig=Ec("top"),qu=Ec("right"),Yd=Ec("bottom"),rp=Ec("left"),ip={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(Ae,ie){switch(ie){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},Sc={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(Ae,ie){switch(ie){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Jd={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(Ae,ie){return ie.length===1&&Is(ie[0],"none")?[]:Qs(ie).map(function(fe){for(var ue={color:xa.TRANSPARENT,offsetX:gs,offsetY:gs,blur:gs},Ue=0,je=0;je<fe.length;je++){var dt=fe[je];oA(dt)?(Ue===0?ue.offsetX=dt:Ue===1?ue.offsetY=dt:ue.blur=dt,Ue++):ue.color=kA.parse(Ae,dt)}return ue})}},ql={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(Ae,ie){switch(ie){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},og={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(Ae,ie){if(ie.type===20&&ie.value==="none")return null;if(ie.type===18){var fe=op[ie.name];if(typeof fe=="undefined")throw new Error('Attempting to parse an unsupported transform function "'+ie.name+'"');return fe(ie.values)}return null}},cd=function(Ae){var ie=Ae.filter(function(fe){return fe.type===17}).map(function(fe){return fe.number});return ie.length===6?ie:null},qA=function(Ae){var ie=Ae.filter(function(Yt){return Yt.type===17}).map(function(Yt){return Yt.number}),fe=ie[0],ue=ie[1];ie[2],ie[3];var Ue=ie[4],je=ie[5];ie[6],ie[7],ie[8],ie[9],ie[10],ie[11];var dt=ie[12],Jt=ie[13];return ie[14],ie[15],ie.length===16?[fe,ue,Ue,je,dt,Jt]:null},op={matrix:cd,matrix3d:qA},Fc={type:16,number:50,flags:wr},ap=[Fc,Fc],RA={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(Ae,ie){var fe=ie.filter(Za);return fe.length!==2?ap:[fe[0],fe[1]]}},Na={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(Ae,ie){switch(ie){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},UA;(function(Ae){Ae.NORMAL="normal",Ae.BREAK_ALL="break-all",Ae.KEEP_ALL="keep-all"})(UA||(UA={}));for(var Bu={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(Ae,ie){switch(ie){case"break-all":return UA.BREAK_ALL;case"keep-all":return UA.KEEP_ALL;case"normal":default:return UA.NORMAL}}},Cu={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(Ae,ie){if(ie.type===20)return{auto:!0,order:0};if(Da(ie))return{auto:!1,order:ie.number};throw new Error("Invalid z-index number parsed")}},qd={name:"time",parse:function(Ae,ie){if(ie.type===15)switch(ie.unit.toLowerCase()){case"s":return 1e3*ie.number;case"ms":return ie.number}throw new Error("Unsupported time type")}},Ic={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(Ae,ie){return Da(ie)?ie.number:1}},sp={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},ag={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(Ae,ie){return ie.filter(ua).map(function(fe){switch(fe.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(fe){return fe!==0})}},eh={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(Ae,ie){var fe=[],ue=[];return ie.forEach(function(Ue){switch(Ue.type){case 20:case 0:fe.push(Ue.value);break;case 17:fe.push(Ue.number.toString());break;case 4:ue.push(fe.join(" ")),fe.length=0;break}}),fe.length&&ue.push(fe.join(" ")),ue.map(function(Ue){return Ue.indexOf(" ")===-1?Ue:"'"+Ue+"'"})}},pf={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},Lc={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(Ae,ie){if(Da(ie))return ie.number;if(ua(ie))switch(ie.value){case"bold":return 700;case"normal":default:return 400}return 400}},gf={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(Ae,ie){return ie.filter(ua).map(function(fe){return fe.value})}},xu={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(Ae,ie){switch(ie){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},Us=function(Ae,ie){return(Ae&ie)!==0},Ap={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(Ae,ie){if(ie.length===0)return[];var fe=ie[0];return fe.type===20&&fe.value==="none"?[]:ie}},sg={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(Ae,ie){if(ie.length===0)return null;var fe=ie[0];if(fe.type===20&&fe.value==="none")return null;for(var ue=[],Ue=ie.filter(ls),je=0;je<Ue.length;je++){var dt=Ue[je],Jt=Ue[je+1];if(dt.type===20){var Yt=Jt&&Da(Jt)?Jt.number:1;ue.push({counter:dt.value,increment:Yt})}}return ue}},fd={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(Ae,ie){if(ie.length===0)return[];for(var fe=[],ue=ie.filter(ls),Ue=0;Ue<ue.length;Ue++){var je=ue[Ue],dt=ue[Ue+1];if(ua(je)&&je.value!=="none"){var Jt=dt&&Da(dt)?dt.number:0;fe.push({counter:je.value,reset:Jt})}}return fe}},th={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(Ae,ie){return ie.filter(la).map(function(fe){return qd.parse(Ae,fe)})}},lp={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(Ae,ie){if(ie.length===0)return null;var fe=ie[0];if(fe.type===20&&fe.value==="none")return null;var ue=[],Ue=ie.filter(rA);if(Ue.length%2!==0)return null;for(var je=0;je<Ue.length;je+=2){var dt=Ue[je].value,Jt=Ue[je+1].value;ue.push({open:dt,close:Jt})}return ue}},up=function(Ae,ie,fe){if(!Ae)return"";var ue=Ae[Math.min(ie,Ae.length-1)];return ue?fe?ue.open:ue.close:""},mf={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(Ae,ie){return ie.length===1&&Is(ie[0],"none")?[]:Qs(ie).map(function(fe){for(var ue={color:255,offsetX:gs,offsetY:gs,blur:gs,spread:gs,inset:!1},Ue=0,je=0;je<fe.length;je++){var dt=fe[je];Is(dt,"inset")?ue.inset=!0:oA(dt)?(Ue===0?ue.offsetX=dt:Ue===1?ue.offsetY=dt:Ue===2?ue.blur=dt:ue.spread=dt,Ue++):ue.color=kA.parse(Ae,dt)}return ue})}},Ag={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(Ae,ie){var fe=[0,1,2],ue=[];return ie.filter(ua).forEach(function(Ue){switch(Ue.value){case"stroke":ue.push(1);break;case"fill":ue.push(0);break;case"markers":ue.push(2);break}}),fe.forEach(function(Ue){ue.indexOf(Ue)===-1&&ue.push(Ue)}),ue}},lg={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},eu={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(Ae,ie){return la(ie)?ie.number:0}},nh=function(){function Ae(ie,fe){var ue,Ue;this.animationDuration=Qi(ie,th,fe.animationDuration),this.backgroundClip=Qi(ie,sA,fe.backgroundClip),this.backgroundColor=Qi(ie,us,fe.backgroundColor),this.backgroundImage=Qi(ie,od,fe.backgroundImage),this.backgroundOrigin=Qi(ie,ad,fe.backgroundOrigin),this.backgroundPosition=Qi(ie,ff,fe.backgroundPosition),this.backgroundRepeat=Qi(ie,dl,fe.backgroundRepeat),this.backgroundSize=Qi(ie,Xl,fe.backgroundSize),this.borderTopColor=Qi(ie,Xp,fe.borderTopColor),this.borderRightColor=Qi(ie,Jl,fe.borderRightColor),this.borderBottomColor=Qi(ie,sd,fe.borderBottomColor),this.borderLeftColor=Qi(ie,JA,fe.borderLeftColor),this.borderTopLeftRadius=Qi(ie,Xg,fe.borderTopLeftRadius),this.borderTopRightRadius=Qi(ie,Ll,fe.borderTopRightRadius),this.borderBottomRightRadius=Qi(ie,HA,fe.borderBottomRightRadius),this.borderBottomLeftRadius=Qi(ie,AA,fe.borderBottomLeftRadius),this.borderTopStyle=Qi(ie,Ul,fe.borderTopStyle),this.borderRightStyle=Qi(ie,Xu,fe.borderRightStyle),this.borderBottomStyle=Qi(ie,bu,fe.borderBottomStyle),this.borderLeftStyle=Qi(ie,Rl,fe.borderLeftStyle),this.borderTopWidth=Qi(ie,Ad,fe.borderTopWidth),this.borderRightWidth=Qi(ie,Yu,fe.borderRightWidth),this.borderBottomWidth=Qi(ie,ep,fe.borderBottomWidth),this.borderLeftWidth=Qi(ie,Yp,fe.borderLeftWidth),this.boxShadow=Qi(ie,mf,fe.boxShadow),this.color=Qi(ie,yA,fe.color),this.direction=Qi(ie,Ol,fe.direction),this.display=Qi(ie,Jp,fe.display),this.float=Qi(ie,df,fe.cssFloat),this.fontFamily=Qi(ie,eh,fe.fontFamily),this.fontSize=Qi(ie,pf,fe.fontSize),this.fontStyle=Qi(ie,xu,fe.fontStyle),this.fontVariant=Qi(ie,gf,fe.fontVariant),this.fontWeight=Qi(ie,Lc,fe.fontWeight),this.letterSpacing=Qi(ie,tp,fe.letterSpacing),this.lineBreak=Qi(ie,eg,fe.lineBreak),this.lineHeight=Qi(ie,LA,fe.lineHeight),this.listStyleImage=Qi(ie,wA,fe.listStyleImage),this.listStylePosition=Qi(ie,Hs,fe.listStylePosition),this.listStyleType=Qi(ie,Ju,fe.listStyleType),this.marginTop=Qi(ie,ud,fe.marginTop),this.marginRight=Qi(ie,tg,fe.marginRight),this.marginBottom=Qi(ie,ng,fe.marginBottom),this.marginLeft=Qi(ie,rg,fe.marginLeft),this.opacity=Qi(ie,Ic,fe.opacity);var je=Qi(ie,Xd,fe.overflow);this.overflowX=je[0],this.overflowY=je[je.length>1?1:0],this.overflowWrap=Qi(ie,np,fe.overflowWrap),this.paddingTop=Qi(ie,ig,fe.paddingTop),this.paddingRight=Qi(ie,qu,fe.paddingRight),this.paddingBottom=Qi(ie,Yd,fe.paddingBottom),this.paddingLeft=Qi(ie,rp,fe.paddingLeft),this.paintOrder=Qi(ie,Ag,fe.paintOrder),this.position=Qi(ie,Sc,fe.position),this.textAlign=Qi(ie,ip,fe.textAlign),this.textDecorationColor=Qi(ie,sp,(ue=fe.textDecorationColor)!==null&&ue!==void 0?ue:fe.color),this.textDecorationLine=Qi(ie,ag,(Ue=fe.textDecorationLine)!==null&&Ue!==void 0?Ue:fe.textDecoration),this.textShadow=Qi(ie,Jd,fe.textShadow),this.textTransform=Qi(ie,ql,fe.textTransform),this.transform=Qi(ie,og,fe.transform),this.transformOrigin=Qi(ie,RA,fe.transformOrigin),this.visibility=Qi(ie,Na,fe.visibility),this.webkitTextStrokeColor=Qi(ie,lg,fe.webkitTextStrokeColor),this.webkitTextStrokeWidth=Qi(ie,eu,fe.webkitTextStrokeWidth),this.wordBreak=Qi(ie,Bu,fe.wordBreak),this.zIndex=Qi(ie,Cu,fe.zIndex)}return Ae.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},Ae.prototype.isTransparent=function(){return Ms(this.backgroundColor)},Ae.prototype.isTransformed=function(){return this.transform!==null},Ae.prototype.isPositioned=function(){return this.position!==0},Ae.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},Ae.prototype.isFloating=function(){return this.float!==0},Ae.prototype.isInlineLevel=function(){return Us(this.display,4)||Us(this.display,33554432)||Us(this.display,268435456)||Us(this.display,536870912)||Us(this.display,67108864)||Us(this.display,134217728)},Ae}(),cp=function(){function Ae(ie,fe){this.content=Qi(ie,Ap,fe.content),this.quotes=Qi(ie,lp,fe.quotes)}return Ae}(),rh=function(){function Ae(ie,fe){this.counterIncrement=Qi(ie,sg,fe.counterIncrement),this.counterReset=Qi(ie,fd,fe.counterReset)}return Ae}(),Qi=function(Ae,ie,fe){var ue=new vo,Ue=fe!==null&&typeof fe!="undefined"?fe.toString():ie.initialValue;ue.write(Ue);var je=new Eo(ue.read());switch(ie.type){case 2:var dt=je.parseComponentValue();return ie.parse(Ae,ua(dt)?dt.value:ie.initialValue);case 0:return ie.parse(Ae,je.parseComponentValue());case 1:return ie.parse(Ae,je.parseComponentValues());case 4:return je.parseComponentValue();case 3:switch(ie.format){case"angle":return YA.parse(Ae,je.parseComponentValue());case"color":return kA.parse(Ae,je.parseComponentValue());case"image":return Il.parse(Ae,je.parseComponentValue());case"length":var Jt=je.parseComponentValue();return oA(Jt)?Jt:gs;case"length-percentage":var Yt=je.parseComponentValue();return Za(Yt)?Yt:gs;case"time":return qd.parse(Ae,je.parseComponentValue())}break}},ec="data-html2canvas-debug",ih=function(Ae){var ie=Ae.getAttribute(ec);switch(ie){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Uc=function(Ae,ie){var fe=ih(Ae);return fe===1||ie===fe},Dl=function(){function Ae(ie,fe){if(this.context=ie,this.textNodes=[],this.elements=[],this.flags=0,Uc(fe,3))debugger;this.styles=new nh(ie,window.getComputedStyle(fe,null)),Ed(fe)&&(this.styles.animationDuration.some(function(ue){return ue>0})&&(fe.style.animationDuration="0s"),this.styles.transform!==null&&(fe.style.transform="none")),this.bounds=at(this.context,fe),Uc(fe,4)&&(this.flags|=16)}return Ae}(),oh="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",fp="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",tu=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),vf=0;vf<fp.length;vf++)tu[fp.charCodeAt(vf)]=vf;for(var Gs=function(Ae){var ie=Ae.length*.75,fe=Ae.length,ue,Ue=0,je,dt,Jt,Yt;Ae[Ae.length-1]==="="&&(ie--,Ae[Ae.length-2]==="="&&ie--);var Vn=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(ie):new Array(ie),er=Array.isArray(Vn)?Vn:new Uint8Array(Vn);for(ue=0;ue<fe;ue+=4)je=tu[Ae.charCodeAt(ue)],dt=tu[Ae.charCodeAt(ue+1)],Jt=tu[Ae.charCodeAt(ue+2)],Yt=tu[Ae.charCodeAt(ue+3)],er[Ue++]=je<<2|dt>>4,er[Ue++]=(dt&15)<<4|Jt>>2,er[Ue++]=(Jt&3)<<6|Yt&63;return Vn},yf=function(Ae){for(var ie=Ae.length,fe=[],ue=0;ue<ie;ue+=2)fe.push(Ae[ue+1]<<8|Ae[ue]);return fe},ah=function(Ae){for(var ie=Ae.length,fe=[],ue=0;ue<ie;ue+=4)fe.push(Ae[ue+3]<<24|Ae[ue+2]<<16|Ae[ue+1]<<8|Ae[ue]);return fe},Eu=5,tc=11,jA=2,dd=tc-Eu,sh=65536>>Eu,el=1<<Eu,wf=el-1,nc=1024>>Eu,dp=sh+nc,bf=dp,Bf=32,Oc=bf+Bf,hp=65536>>tc,rc=1<<dd,Ah=rc-1,hd=function(Ae,ie,fe){return Ae.slice?Ae.slice(ie,fe):new Uint16Array(Array.prototype.slice.call(Ae,ie,fe))},lh=function(Ae,ie,fe){return Ae.slice?Ae.slice(ie,fe):new Uint32Array(Array.prototype.slice.call(Ae,ie,fe))},Dc=function(Ae,ie){var fe=Gs(Ae),ue=Array.isArray(fe)?ah(fe):new Uint32Array(fe),Ue=Array.isArray(fe)?yf(fe):new Uint16Array(fe),je=24,dt=hd(Ue,je/2,ue[4]/2),Jt=ue[5]===2?hd(Ue,(je+ue[4])/2):lh(ue,Math.ceil((je+ue[4])/4));return new Nc(ue[0],ue[1],ue[2],ue[3],dt,Jt)},Nc=function(){function Ae(ie,fe,ue,Ue,je,dt){this.initialValue=ie,this.errorValue=fe,this.highStart=ue,this.highValueIndex=Ue,this.index=je,this.data=dt}return Ae.prototype.get=function(ie){var fe;if(ie>=0){if(ie<55296||ie>56319&&ie<=65535)return fe=this.index[ie>>Eu],fe=(fe<<jA)+(ie&wf),this.data[fe];if(ie<=65535)return fe=this.index[sh+(ie-55296>>Eu)],fe=(fe<<jA)+(ie&wf),this.data[fe];if(ie<this.highStart)return fe=Oc-hp+(ie>>tc),fe=this.index[fe],fe+=ie>>Eu&Ah,fe=this.index[fe],fe=(fe<<jA)+(ie&wf),this.data[fe];if(ie<=1114111)return this.data[this.highValueIndex]}return this.errorValue},Ae}(),ic="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Su=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),tl=0;tl<ic.length;tl++)Su[ic.charCodeAt(tl)]=tl;var uh=1,Cf=2,hl=3,Fu=4,oc=5,pp=7,pd=8,Pc=9,Tc=10,ch=11,lA=12,gd=13,fh=14,md=15,dh=function(Ae){for(var ie=[],fe=0,ue=Ae.length;fe<ue;){var Ue=Ae.charCodeAt(fe++);if(Ue>=55296&&Ue<=56319&&fe<ue){var je=Ae.charCodeAt(fe++);(je&64512)===56320?ie.push(((Ue&1023)<<10)+(je&1023)+65536):(ie.push(Ue),fe--)}else ie.push(Ue)}return ie},hh=function(){for(var Ae=[],ie=0;ie<arguments.length;ie++)Ae[ie]=arguments[ie];if(String.fromCodePoint)return String.fromCodePoint.apply(String,Ae);var fe=Ae.length;if(!fe)return"";for(var ue=[],Ue=-1,je="";++Ue<fe;){var dt=Ae[Ue];dt<=65535?ue.push(dt):(dt-=65536,ue.push((dt>>10)+55296,dt%1024+56320)),(Ue+1===fe||ue.length>16384)&&(je+=String.fromCharCode.apply(String,ue),ue.length=0)}return je},ph=Dc(oh),ba="\xD7",vd="\xF7",gp=function(Ae){return ph.get(Ae)},ug=function(Ae,ie,fe){var ue=fe-2,Ue=ie[ue],je=ie[fe-1],dt=ie[fe];if(je===Cf&&dt===hl)return ba;if(je===Cf||je===hl||je===Fu||dt===Cf||dt===hl||dt===Fu)return vd;if(je===pd&&[pd,Pc,ch,lA].indexOf(dt)!==-1||(je===ch||je===Pc)&&(dt===Pc||dt===Tc)||(je===lA||je===Tc)&&dt===Tc||dt===gd||dt===oc||dt===pp||je===uh)return ba;if(je===gd&&dt===fh){for(;Ue===oc;)Ue=ie[--ue];if(Ue===fh)return ba}if(je===md&&dt===md){for(var Jt=0;Ue===md;)Jt++,Ue=ie[--ue];if(Jt%2===0)return ba}return vd},Iu=function(Ae){var ie=dh(Ae),fe=ie.length,ue=0,Ue=0,je=ie.map(gp);return{next:function(){if(ue>=fe)return{done:!0,value:null};for(var dt=ba;ue<fe&&(dt=ug(ie,je,++ue))===ba;);if(dt!==ba||ue===fe){var Jt=hh.apply(null,ie.slice(Ue,ue));return Ue=ue,{value:Jt,done:!1}}return{done:!0,value:null}}}},yd=function(Ae){for(var ie=Iu(Ae),fe=[],ue;!(ue=ie.next()).done;)ue.value&&fe.push(ue.value.slice());return fe},wd=function(Ae){var ie=123;if(Ae.createRange){var fe=Ae.createRange();if(fe.getBoundingClientRect){var ue=Ae.createElement("boundtest");ue.style.height=ie+"px",ue.style.display="block",Ae.body.appendChild(ue),fe.selectNode(ue);var Ue=fe.getBoundingClientRect(),je=Math.round(Ue.height);if(Ae.body.removeChild(ue),je===ie)return!0}}return!1},Qc=function(Ae){var ie=Ae.createElement("boundtest");ie.style.width="50px",ie.style.display="block",ie.style.fontSize="12px",ie.style.letterSpacing="0px",ie.style.wordSpacing="0px",Ae.body.appendChild(ie);var fe=Ae.createRange();ie.innerHTML=typeof"".repeat=="function"?"👨".repeat(10):"";var ue=ie.firstChild,Ue=Me(ue.data).map(function(Yt){return Pe(Yt)}),je=0,dt={},Jt=Ue.every(function(Yt,Vn){fe.setStart(ue,je),fe.setEnd(ue,je+Yt.length);var er=fe.getBoundingClientRect();je+=Yt.length;var sr=er.x>dt.x||er.y>dt.y;return dt=er,Vn===0?!0:sr});return Ae.body.removeChild(ie),Jt},nu=function(){return typeof new Image().crossOrigin!="undefined"},ac=function(){return typeof new XMLHttpRequest().responseType=="string"},mp=function(Ae){var ie=new Image,fe=Ae.createElement("canvas"),ue=fe.getContext("2d");if(!ue)return!1;ie.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{ue.drawImage(ie,0,0),fe.toDataURL()}catch(Ue){return!1}return!0},Lu=function(Ae){return Ae[0]===0&&Ae[1]===255&&Ae[2]===0&&Ae[3]===255},gh=function(Ae){var ie=Ae.createElement("canvas"),fe=100;ie.width=fe,ie.height=fe;var ue=ie.getContext("2d");if(!ue)return Promise.reject(!1);ue.fillStyle="rgb(0, 255, 0)",ue.fillRect(0,0,fe,fe);var Ue=new Image,je=ie.toDataURL();Ue.src=je;var dt=xf(fe,fe,0,0,Ue);return ue.fillStyle="red",ue.fillRect(0,0,fe,fe),mh(dt).then(function(Jt){ue.drawImage(Jt,0,0);var Yt=ue.getImageData(0,0,fe,fe).data;ue.fillStyle="red",ue.fillRect(0,0,fe,fe);var Vn=Ae.createElement("div");return Vn.style.backgroundImage="url("+je+")",Vn.style.height=fe+"px",Lu(Yt)?mh(xf(fe,fe,0,0,Vn)):Promise.reject(!1)}).then(function(Jt){return ue.drawImage(Jt,0,0),Lu(ue.getImageData(0,0,fe,fe).data)}).catch(function(){return!1})},xf=function(Ae,ie,fe,ue,Ue){var je="http://www.w3.org/2000/svg",dt=document.createElementNS(je,"svg"),Jt=document.createElementNS(je,"foreignObject");return dt.setAttributeNS(null,"width",Ae.toString()),dt.setAttributeNS(null,"height",ie.toString()),Jt.setAttributeNS(null,"width","100%"),Jt.setAttributeNS(null,"height","100%"),Jt.setAttributeNS(null,"x",fe.toString()),Jt.setAttributeNS(null,"y",ue.toString()),Jt.setAttributeNS(null,"externalResourcesRequired","true"),dt.appendChild(Jt),Jt.appendChild(Ue),dt},mh=function(Ae){return new Promise(function(ie,fe){var ue=new Image;ue.onload=function(){return ie(ue)},ue.onerror=fe,ue.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(Ae))})},Es={get SUPPORT_RANGE_BOUNDS(){var Ae=wd(document);return Object.defineProperty(Es,"SUPPORT_RANGE_BOUNDS",{value:Ae}),Ae},get SUPPORT_WORD_BREAKING(){var Ae=Es.SUPPORT_RANGE_BOUNDS&&Qc(document);return Object.defineProperty(Es,"SUPPORT_WORD_BREAKING",{value:Ae}),Ae},get SUPPORT_SVG_DRAWING(){var Ae=mp(document);return Object.defineProperty(Es,"SUPPORT_SVG_DRAWING",{value:Ae}),Ae},get SUPPORT_FOREIGNOBJECT_DRAWING(){var Ae=typeof Array.from=="function"&&typeof window.fetch=="function"?gh(document):Promise.resolve(!1);return Object.defineProperty(Es,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:Ae}),Ae},get SUPPORT_CORS_IMAGES(){var Ae=nu();return Object.defineProperty(Es,"SUPPORT_CORS_IMAGES",{value:Ae}),Ae},get SUPPORT_RESPONSE_TYPE(){var Ae=ac();return Object.defineProperty(Es,"SUPPORT_RESPONSE_TYPE",{value:Ae}),Ae},get SUPPORT_CORS_XHR(){var Ae="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Es,"SUPPORT_CORS_XHR",{value:Ae}),Ae},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var Ae=!!(typeof Intl!="undefined"&&Intl.Segmenter);return Object.defineProperty(Es,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:Ae}),Ae}},pl=function(){function Ae(ie,fe){this.text=ie,this.bounds=fe}return Ae}(),Ef=function(Ae,ie,fe,ue){var Ue=vp(ie,fe),je=[],dt=0;return Ue.forEach(function(Jt){if(fe.textDecorationLine.length||Jt.trim().length>0)if(Es.SUPPORT_RANGE_BOUNDS){var Yt=Sf(ue,dt,Jt.length).getClientRects();if(Yt.length>1){var Vn=yh(Jt),er=0;Vn.forEach(function(Zr){je.push(new pl(Zr,rt.fromDOMRectList(Ae,Sf(ue,er+dt,Zr.length).getClientRects()))),er+=Zr.length})}else je.push(new pl(Jt,rt.fromDOMRectList(Ae,Yt)))}else{var sr=ue.splitText(Jt.length);je.push(new pl(Jt,vh(Ae,ue))),ue=sr}else Es.SUPPORT_RANGE_BOUNDS||(ue=ue.splitText(Jt.length));dt+=Jt.length}),je},vh=function(Ae,ie){var fe=ie.ownerDocument;if(fe){var ue=fe.createElement("html2canvaswrapper");ue.appendChild(ie.cloneNode(!0));var Ue=ie.parentNode;if(Ue){Ue.replaceChild(ue,ie);var je=at(Ae,ue);return ue.firstChild&&Ue.replaceChild(ue.firstChild,ue),je}}return rt.EMPTY},Sf=function(Ae,ie,fe){var ue=Ae.ownerDocument;if(!ue)throw new Error("Node has no owner document");var Ue=ue.createRange();return Ue.setStart(Ae,ie),Ue.setEnd(Ae,ie+fe),Ue},yh=function(Ae){if(Es.SUPPORT_NATIVE_TEXT_SEGMENTATION){var ie=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(ie.segment(Ae)).map(function(fe){return fe.segment})}return yd(Ae)},Ff=function(Ae,ie){if(Es.SUPPORT_NATIVE_TEXT_SEGMENTATION){var fe=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(fe.segment(Ae)).map(function(ue){return ue.segment})}return yp(Ae,ie)},vp=function(Ae,ie){return ie.letterSpacing!==0?yh(Ae):Ff(Ae,ie)},cg=[32,160,4961,65792,65793,4153,4241],yp=function(Ae,ie){for(var fe=Xt(Ae,{lineBreak:ie.lineBreak,wordBreak:ie.overflowWrap==="break-word"?"break-word":ie.wordBreak}),ue=[],Ue,je=function(){if(Ue.value){var dt=Ue.value.slice(),Jt=Me(dt),Yt="";Jt.forEach(function(Vn){cg.indexOf(Vn)===-1?Yt+=Pe(Vn):(Yt.length&&ue.push(Yt),ue.push(Pe(Vn)),Yt="")}),Yt.length&&ue.push(Yt)}};!(Ue=fe.next()).done;)je();return ue},bd=function(){function Ae(ie,fe,ue){this.text=fg(fe.data,ue.textTransform),this.textBounds=Ef(ie,this.text,ue,fe)}return Ae}(),fg=function(Ae,ie){switch(ie){case 1:return Ae.toLowerCase();case 3:return Ae.replace(dg,If);case 2:return Ae.toUpperCase();default:return Ae}},dg=/(^|\s|:|-|\(|\))([a-z])/g,If=function(Ae,ie,fe){return Ae.length>0?ie+fe.toUpperCase():Ae},wh=function(Ae){pe(ie,Ae);function ie(fe,ue){var Ue=Ae.call(this,fe,ue)||this;return Ue.src=ue.currentSrc||ue.src,Ue.intrinsicWidth=ue.naturalWidth,Ue.intrinsicHeight=ue.naturalHeight,Ue.context.cache.addImage(Ue.src),Ue}return ie}(Dl),bh=function(Ae){pe(ie,Ae);function ie(fe,ue){var Ue=Ae.call(this,fe,ue)||this;return Ue.canvas=ue,Ue.intrinsicWidth=ue.width,Ue.intrinsicHeight=ue.height,Ue}return ie}(Dl),wp=function(Ae){pe(ie,Ae);function ie(fe,ue){var Ue=Ae.call(this,fe,ue)||this,je=new XMLSerializer,dt=at(fe,ue);return ue.setAttribute("width",dt.width+"px"),ue.setAttribute("height",dt.height+"px"),Ue.svg="data:image/svg+xml,"+encodeURIComponent(je.serializeToString(ue)),Ue.intrinsicWidth=ue.width.baseVal.value,Ue.intrinsicHeight=ue.height.baseVal.value,Ue.context.cache.addImage(Ue.svg),Ue}return ie}(Dl),Bd=function(Ae){pe(ie,Ae);function ie(fe,ue){var Ue=Ae.call(this,fe,ue)||this;return Ue.value=ue.value,Ue}return ie}(Dl),Cd=function(Ae){pe(ie,Ae);function ie(fe,ue){var Ue=Ae.call(this,fe,ue)||this;return Ue.start=ue.start,Ue.reversed=typeof ue.reversed=="boolean"&&ue.reversed===!0,Ue}return ie}(Dl),ru=[{type:15,flags:0,unit:"px",number:3}],bp=[{type:16,flags:0,number:50}],Bp=function(Ae){return Ae.width>Ae.height?new rt(Ae.left+(Ae.width-Ae.height)/2,Ae.top,Ae.height,Ae.height):Ae.width<Ae.height?new rt(Ae.left,Ae.top+(Ae.height-Ae.width)/2,Ae.width,Ae.width):Ae},Cp=function(Ae){var ie=Ae.type===iu?new Array(Ae.value.length+1).join("\u2022"):Ae.value;return ie.length===0?Ae.placeholder||"":ie},Mc="checkbox",Uu="radio",iu="password",xd=707406591,_c=function(Ae){pe(ie,Ae);function ie(fe,ue){var Ue=Ae.call(this,fe,ue)||this;switch(Ue.type=ue.type.toLowerCase(),Ue.checked=ue.checked,Ue.value=Cp(ue),(Ue.type===Mc||Ue.type===Uu)&&(Ue.styles.backgroundColor=3739148031,Ue.styles.borderTopColor=Ue.styles.borderRightColor=Ue.styles.borderBottomColor=Ue.styles.borderLeftColor=2779096575,Ue.styles.borderTopWidth=Ue.styles.borderRightWidth=Ue.styles.borderBottomWidth=Ue.styles.borderLeftWidth=1,Ue.styles.borderTopStyle=Ue.styles.borderRightStyle=Ue.styles.borderBottomStyle=Ue.styles.borderLeftStyle=1,Ue.styles.backgroundClip=[0],Ue.styles.backgroundOrigin=[0],Ue.bounds=Bp(Ue.bounds)),Ue.type){case Mc:Ue.styles.borderTopRightRadius=Ue.styles.borderTopLeftRadius=Ue.styles.borderBottomRightRadius=Ue.styles.borderBottomLeftRadius=ru;break;case Uu:Ue.styles.borderTopRightRadius=Ue.styles.borderTopLeftRadius=Ue.styles.borderBottomRightRadius=Ue.styles.borderBottomLeftRadius=bp;break}return Ue}return ie}(Dl),xp=function(Ae){pe(ie,Ae);function ie(fe,ue){var Ue=Ae.call(this,fe,ue)||this,je=ue.options[ue.selectedIndex||0];return Ue.value=je&&je.text||"",Ue}return ie}(Dl),Bh=function(Ae){pe(ie,Ae);function ie(fe,ue){var Ue=Ae.call(this,fe,ue)||this;return Ue.value=ue.value,Ue}return ie}(Dl),Ep=function(Ae){pe(ie,Ae);function ie(fe,ue){var Ue=Ae.call(this,fe,ue)||this;Ue.src=ue.src,Ue.width=parseInt(ue.width,10)||0,Ue.height=parseInt(ue.height,10)||0,Ue.backgroundColor=Ue.styles.backgroundColor;try{if(ue.contentWindow&&ue.contentWindow.document&&ue.contentWindow.document.documentElement){Ue.tree=Fp(fe,ue.contentWindow.document.documentElement);var je=ue.contentWindow.document.documentElement?Lo(fe,getComputedStyle(ue.contentWindow.document.documentElement).backgroundColor):xa.TRANSPARENT,dt=ue.contentWindow.document.body?Lo(fe,getComputedStyle(ue.contentWindow.document.body).backgroundColor):xa.TRANSPARENT;Ue.backgroundColor=Ms(je)?Ms(dt)?Ue.styles.backgroundColor:dt:je}}catch(Jt){}return Ue}return ie}(Dl),Lf=["OL","UL","MENU"],sc=function(Ae,ie,fe,ue){for(var Ue=ie.firstChild,je=void 0;Ue;Ue=je)if(je=Ue.nextSibling,xh(Ue)&&Ue.data.trim().length>0)fe.textNodes.push(new bd(Ae,Ue,fe.styles));else if(kc(Ue))if(Eh(Ue)&&Ue.assignedNodes)Ue.assignedNodes().forEach(function(Jt){return sc(Ae,Jt,fe,ue)});else{var dt=Sp(Ae,Ue);dt.styles.isVisible()&&(Ip(Ue,dt,ue)?dt.flags|=4:Ch(dt.styles)&&(dt.flags|=2),Lf.indexOf(Ue.tagName)!==-1&&(dt.flags|=8),fe.elements.push(dt),Ue.slot,Ue.shadowRoot?sc(Ae,Ue.shadowRoot,dt,ue):!Hc(Ue)&&!Up(Ue)&&!Df(Ue)&&sc(Ae,Ue,dt,ue))}},Sp=function(Ae,ie){return Ac(ie)?new wh(Ae,ie):Op(ie)?new bh(Ae,ie):Up(ie)?new wp(Ae,ie):Lp(ie)?new Bd(Ae,ie):Sd(ie)?new Cd(Ae,ie):hg(ie)?new _c(Ae,ie):Df(ie)?new xp(Ae,ie):Hc(ie)?new Bh(Ae,ie):gl(ie)?new Ep(Ae,ie):new Dl(Ae,ie)},Fp=function(Ae,ie){var fe=Sp(Ae,ie);return fe.flags|=4,sc(Ae,ie,fe,fe),fe},Ip=function(Ae,ie,fe){return ie.styles.isPositionedWithZIndex()||ie.styles.opacity<1||ie.styles.isTransformed()||$a(Ae)&&fe.styles.isTransparent()},Ch=function(Ae){return Ae.isPositioned()||Ae.isFloating()},xh=function(Ae){return Ae.nodeType===Node.TEXT_NODE},kc=function(Ae){return Ae.nodeType===Node.ELEMENT_NODE},Ed=function(Ae){return kc(Ae)&&typeof Ae.style!="undefined"&&!ou(Ae)},ou=function(Ae){return typeof Ae.className=="object"},Lp=function(Ae){return Ae.tagName==="LI"},Sd=function(Ae){return Ae.tagName==="OL"},hg=function(Ae){return Ae.tagName==="INPUT"},pg=function(Ae){return Ae.tagName==="HTML"},Up=function(Ae){return Ae.tagName==="svg"},$a=function(Ae){return Ae.tagName==="BODY"},Op=function(Ae){return Ae.tagName==="CANVAS"},Fd=function(Ae){return Ae.tagName==="VIDEO"},Ac=function(Ae){return Ae.tagName==="IMG"},gl=function(Ae){return Ae.tagName==="IFRAME"},Uf=function(Ae){return Ae.tagName==="STYLE"},Of=function(Ae){return Ae.tagName==="SCRIPT"},Hc=function(Ae){return Ae.tagName==="TEXTAREA"},Df=function(Ae){return Ae.tagName==="SELECT"},Eh=function(Ae){return Ae.tagName==="SLOT"},Sh=function(Ae){return Ae.tagName.indexOf("-")>0},gg=function(){function Ae(){this.counters={}}return Ae.prototype.getCounterValue=function(ie){var fe=this.counters[ie];return fe&&fe.length?fe[fe.length-1]:1},Ae.prototype.getCounterValues=function(ie){var fe=this.counters[ie];return fe||[]},Ae.prototype.pop=function(ie){var fe=this;ie.forEach(function(ue){return fe.counters[ue].pop()})},Ae.prototype.parse=function(ie){var fe=this,ue=ie.counterIncrement,Ue=ie.counterReset,je=!0;ue!==null&&ue.forEach(function(Jt){var Yt=fe.counters[Jt.counter];Yt&&Jt.increment!==0&&(je=!1,Yt.length||Yt.push(1),Yt[Math.max(0,Yt.length-1)]+=Jt.increment)});var dt=[];return je&&Ue.forEach(function(Jt){var Yt=fe.counters[Jt.counter];dt.push(Jt.counter),Yt||(Yt=fe.counters[Jt.counter]=[]),Yt.push(Jt.reset)}),dt},Ae}(),Fh={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"]},Nf={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"]},Dp={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"]},_a={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"]},Ou=function(Ae,ie,fe,ue,Ue,je){return Ae<ie||Ae>fe?ee(Ae,Ue,je.length>0):ue.integers.reduce(function(dt,Jt,Yt){for(;Ae>=Jt;)Ae-=Jt,dt+=ue.values[Yt];return dt},"")+je},mg=function(Ae,ie,fe,ue){var Ue="";do fe||Ae--,Ue=ue(Ae)+Ue,Ae/=ie;while(Ae*ie>=ie);return Ue},Xa=function(Ae,ie,fe,ue,Ue){var je=fe-ie+1;return(Ae<0?"-":"")+(mg(Math.abs(Ae),je,ue,function(dt){return Pe(Math.floor(dt%je)+ie)})+Ue)},Du=function(Ae,ie,fe){fe===void 0&&(fe=". ");var ue=ie.length;return mg(Math.abs(Ae),ue,!1,function(Ue){return ie[Math.floor(Ue%ue)]})+fe},zl=1,au=2,Ra=4,Pf=8,su=function(Ae,ie,fe,ue,Ue,je){if(Ae<-9999||Ae>9999)return ee(Ae,4,Ue.length>0);var dt=Math.abs(Ae),Jt=Ue;if(dt===0)return ie[0]+Jt;for(var Yt=0;dt>0&&Yt<=4;Yt++){var Vn=dt%10;Vn===0&&Us(je,zl)&&Jt!==""?Jt=ie[Vn]+Jt:Vn>1||Vn===1&&Yt===0||Vn===1&&Yt===1&&Us(je,au)||Vn===1&&Yt===1&&Us(je,Ra)&&Ae>100||Vn===1&&Yt>1&&Us(je,Pf)?Jt=ie[Vn]+(Yt>0?fe[Yt-1]:"")+Jt:Vn===1&&Yt>0&&(Jt=fe[Yt-1]+Jt),dt=Math.floor(dt/10)}return(Ae<0?ue:"")+Jt},Np="\u5341\u767E\u5343\u842C",Id="\u62FE\u4F70\u4EDF\u842C",a="\u30DE\u30A4\u30CA\u30B9",b="\uB9C8\uC774\uB108\uC2A4",ee=function(Ae,ie,fe){var ue=fe?". ":"",Ue=fe?"\u3001":"",je=fe?", ":"",dt=fe?" ":"";switch(ie){case 0:return"\u2022"+dt;case 1:return"\u25E6"+dt;case 2:return"\u25FE"+dt;case 5:var Jt=Xa(Ae,48,57,!0,ue);return Jt.length<4?"0"+Jt:Jt;case 4:return Du(Ae,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Ue);case 6:return Ou(Ae,1,3999,Fh,3,ue).toLowerCase();case 7:return Ou(Ae,1,3999,Fh,3,ue);case 8:return Xa(Ae,945,969,!1,ue);case 9:return Xa(Ae,97,122,!1,ue);case 10:return Xa(Ae,65,90,!1,ue);case 11:return Xa(Ae,1632,1641,!0,ue);case 12:case 49:return Ou(Ae,1,9999,Nf,3,ue);case 35:return Ou(Ae,1,9999,Nf,3,ue).toLowerCase();case 13:return Xa(Ae,2534,2543,!0,ue);case 14:case 30:return Xa(Ae,6112,6121,!0,ue);case 15:return Du(Ae,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",Ue);case 16:return Du(Ae,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",Ue);case 17:case 48:return su(Ae,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Np,"\u8CA0",Ue,au|Ra|Pf);case 47:return su(Ae,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",Id,"\u8CA0",Ue,zl|au|Ra|Pf);case 42:return su(Ae,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Np,"\u8D1F",Ue,au|Ra|Pf);case 41:return su(Ae,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",Id,"\u8D1F",Ue,zl|au|Ra|Pf);case 26:return su(Ae,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",a,Ue,0);case 25:return su(Ae,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",a,Ue,zl|au|Ra);case 31:return su(Ae,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",b,je,zl|au|Ra);case 33:return su(Ae,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",b,je,0);case 32:return su(Ae,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",b,je,zl|au|Ra);case 18:return Xa(Ae,2406,2415,!0,ue);case 20:return Ou(Ae,1,19999,_a,3,ue);case 21:return Xa(Ae,2790,2799,!0,ue);case 22:return Xa(Ae,2662,2671,!0,ue);case 22:return Ou(Ae,1,10999,Dp,3,ue);case 23:return Du(Ae,"\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 Du(Ae,"\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 Xa(Ae,3302,3311,!0,ue);case 28:return Du(Ae,"\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",Ue);case 29:return Du(Ae,"\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",Ue);case 34:return Xa(Ae,3792,3801,!0,ue);case 37:return Xa(Ae,6160,6169,!0,ue);case 38:return Xa(Ae,4160,4169,!0,ue);case 39:return Xa(Ae,2918,2927,!0,ue);case 40:return Xa(Ae,1776,1785,!0,ue);case 43:return Xa(Ae,3046,3055,!0,ue);case 44:return Xa(Ae,3174,3183,!0,ue);case 45:return Xa(Ae,3664,3673,!0,ue);case 46:return Xa(Ae,3872,3881,!0,ue);case 3:default:return Xa(Ae,48,57,!0,ue)}},z="data-html2canvas-ignore",ne=function(){function Ae(ie,fe,ue){if(this.context=ie,this.options=ue,this.scrolledElements=[],this.referenceElement=fe,this.counters=new gg,this.quoteDepth=0,!fe.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(fe.ownerDocument.documentElement,!1)}return Ae.prototype.toIFrame=function(ie,fe){var ue=this,Ue=Se(ie,fe);if(!Ue.contentWindow)return Promise.reject("Unable to find iframe window");var je=ie.defaultView.pageXOffset,dt=ie.defaultView.pageYOffset,Jt=Ue.contentWindow,Yt=Jt.document,Vn=Ye(Ue).then(function(){return qt(ue,void 0,void 0,function(){var er,sr;return Xe(this,function(Zr){switch(Zr.label){case 0:return this.scrolledElements.forEach(Nr),Jt&&(Jt.scrollTo(fe.left,fe.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(Jt.scrollY!==fe.top||Jt.scrollX!==fe.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(Jt.scrollX-fe.left,Jt.scrollY-fe.top,0,0))),er=this.options.onclone,sr=this.clonedReferenceElement,typeof sr=="undefined"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:Yt.fonts&&Yt.fonts.ready?[4,Yt.fonts.ready]:[3,2];case 1:Zr.sent(),Zr.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,Re(Yt)]:[3,4];case 3:Zr.sent(),Zr.label=4;case 4:return typeof er=="function"?[2,Promise.resolve().then(function(){return er(Yt,sr)}).then(function(){return Ue})]:[2,Ue]}})})});return Yt.open(),Yt.write(tr(document.doctype)+"<html></html>"),$n(this.referenceElement.ownerDocument,je,dt),Yt.replaceChild(Yt.adoptNode(this.documentElement),Yt.documentElement),Yt.close(),Vn},Ae.prototype.createElementClone=function(ie){if(Uc(ie,2))debugger;if(Op(ie))return this.createCanvasClone(ie);if(Fd(ie))return this.createVideoClone(ie);if(Uf(ie))return this.createStyleClone(ie);var fe=ie.cloneNode(!1);return Ac(fe)&&(Ac(ie)&&ie.currentSrc&&ie.currentSrc!==ie.src&&(fe.src=ie.currentSrc,fe.srcset=""),fe.loading==="lazy"&&(fe.loading="eager")),Sh(fe)?this.createCustomElementClone(fe):fe},Ae.prototype.createCustomElementClone=function(ie){var fe=document.createElement("html2canvascustomelement");return gn(ie.style,fe),fe},Ae.prototype.createStyleClone=function(ie){try{var fe=ie.sheet;if(fe&&fe.cssRules){var ue=[].slice.call(fe.cssRules,0).reduce(function(je,dt){return dt&&typeof dt.cssText=="string"?je+dt.cssText:je},""),Ue=ie.cloneNode(!1);return Ue.textContent=ue,Ue}}catch(je){if(this.context.logger.error("Unable to access cssRules property",je),je.name!=="SecurityError")throw je}return ie.cloneNode(!1)},Ae.prototype.createCanvasClone=function(ie){var fe;if(this.options.inlineImages&&ie.ownerDocument){var ue=ie.ownerDocument.createElement("img");try{return ue.src=ie.toDataURL(),ue}catch(Vn){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",ie)}}var Ue=ie.cloneNode(!1);try{Ue.width=ie.width,Ue.height=ie.height;var je=ie.getContext("2d"),dt=Ue.getContext("2d");if(dt)if(!this.options.allowTaint&&je)dt.putImageData(je.getImageData(0,0,ie.width,ie.height),0,0);else{var Jt=(fe=ie.getContext("webgl2"))!==null&&fe!==void 0?fe:ie.getContext("webgl");if(Jt){var Yt=Jt.getContextAttributes();(Yt==null?void 0:Yt.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",ie)}dt.drawImage(ie,0,0)}return Ue}catch(Vn){this.context.logger.info("Unable to clone canvas as it is tainted",ie)}return Ue},Ae.prototype.createVideoClone=function(ie){var fe=ie.ownerDocument.createElement("canvas");fe.width=ie.offsetWidth,fe.height=ie.offsetHeight;var ue=fe.getContext("2d");try{return ue&&(ue.drawImage(ie,0,0,fe.width,fe.height),this.options.allowTaint||ue.getImageData(0,0,fe.width,fe.height)),fe}catch(je){this.context.logger.info("Unable to clone video as it is tainted",ie)}var Ue=ie.ownerDocument.createElement("canvas");return Ue.width=ie.offsetWidth,Ue.height=ie.offsetHeight,Ue},Ae.prototype.appendChildNode=function(ie,fe,ue){(!kc(fe)||!Of(fe)&&!fe.hasAttribute(z)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(fe)))&&(!this.options.copyStyles||!kc(fe)||!Uf(fe))&&ie.appendChild(this.cloneNode(fe,ue))},Ae.prototype.cloneChildNodes=function(ie,fe,ue){for(var Ue=this,je=ie.shadowRoot?ie.shadowRoot.firstChild:ie.firstChild;je;je=je.nextSibling)if(kc(je)&&Eh(je)&&typeof je.assignedNodes=="function"){var dt=je.assignedNodes();dt.length&&dt.forEach(function(Jt){return Ue.appendChildNode(fe,Jt,ue)})}else this.appendChildNode(fe,je,ue)},Ae.prototype.cloneNode=function(ie,fe){if(xh(ie))return document.createTextNode(ie.data);if(!ie.ownerDocument)return ie.cloneNode(!1);var ue=ie.ownerDocument.defaultView;if(ue&&kc(ie)&&(Ed(ie)||ou(ie))){var Ue=this.createElementClone(ie);Ue.style.transitionProperty="none";var je=ue.getComputedStyle(ie),dt=ue.getComputedStyle(ie,":before"),Jt=ue.getComputedStyle(ie,":after");this.referenceElement===ie&&Ed(Ue)&&(this.clonedReferenceElement=Ue),$a(Ue)&&Hi(Ue);var Yt=this.counters.parse(new rh(this.context,je)),Vn=this.resolvePseudoContent(ie,Ue,dt,me.BEFORE);Sh(ie)&&(fe=!0),Fd(ie)||this.cloneChildNodes(ie,Ue,fe),Vn&&Ue.insertBefore(Vn,Ue.firstChild);var er=this.resolvePseudoContent(ie,Ue,Jt,me.AFTER);return er&&Ue.appendChild(er),this.counters.pop(Yt),(je&&(this.options.copyStyles||ou(ie))&&!gl(ie)||fe)&&gn(je,Ue),(ie.scrollTop!==0||ie.scrollLeft!==0)&&this.scrolledElements.push([Ue,ie.scrollLeft,ie.scrollTop]),(Hc(ie)||Df(ie))&&(Hc(Ue)||Df(Ue))&&(Ue.value=ie.value),Ue}return ie.cloneNode(!1)},Ae.prototype.resolvePseudoContent=function(ie,fe,ue,Ue){var je=this;if(ue){var dt=ue.content,Jt=fe.ownerDocument;if(!(!Jt||!dt||dt==="none"||dt==="-moz-alt-content"||ue.display==="none")){this.counters.parse(new rh(this.context,ue));var Yt=new cp(this.context,ue),Vn=Jt.createElement("html2canvaspseudoelement");gn(ue,Vn),Yt.content.forEach(function(sr){if(sr.type===0)Vn.appendChild(Jt.createTextNode(sr.value));else if(sr.type===22){var Zr=Jt.createElement("img");Zr.src=sr.value,Zr.style.opacity="1",Vn.appendChild(Zr)}else if(sr.type===18){if(sr.name==="attr"){var zi=sr.values.filter(ua);zi.length&&Vn.appendChild(Jt.createTextNode(ie.getAttribute(zi[0].value)||""))}else if(sr.name==="counter"){var pi=sr.values.filter(iA),Oi=pi[0],Wo=pi[1];if(Oi&&ua(Oi)){var Gi=je.counters.getCounterValue(Oi.value),Wi=Wo&&ua(Wo)?Ju.parse(je.context,Wo.value):3;Vn.appendChild(Jt.createTextNode(ee(Gi,Wi,!1)))}}else if(sr.name==="counters"){var To=sr.values.filter(iA),Oi=To[0],Xo=To[1],Wo=To[2];if(Oi&&ua(Oi)){var Fo=je.counters.getCounterValues(Oi.value),Mi=Wo&&ua(Wo)?Ju.parse(je.context,Wo.value):3,Ba=Xo&&Xo.type===0?Xo.value:"",ia=Fo.map(function(yl){return ee(yl,Mi,!1)}).join(Ba);Vn.appendChild(Jt.createTextNode(ia))}}}else if(sr.type===20)switch(sr.value){case"open-quote":Vn.appendChild(Jt.createTextNode(up(Yt.quotes,je.quoteDepth++,!0)));break;case"close-quote":Vn.appendChild(Jt.createTextNode(up(Yt.quotes,--je.quoteDepth,!1)));break;default:Vn.appendChild(Jt.createTextNode(sr.value))}}),Vn.className=Ci+" "+Ui;var er=Ue===me.BEFORE?" "+Ci:" "+Ui;return ou(fe)?fe.className.baseValue+=er:fe.className+=er,Vn}}},Ae.destroy=function(ie){return ie.parentNode?(ie.parentNode.removeChild(ie),!0):!1},Ae}(),me;(function(Ae){Ae[Ae.BEFORE=0]="BEFORE",Ae[Ae.AFTER=1]="AFTER"})(me||(me={}));var Se=function(Ae,ie){var fe=Ae.createElement("iframe");return fe.className="html2canvas-container",fe.style.visibility="hidden",fe.style.position="fixed",fe.style.left="-10000px",fe.style.top="0px",fe.style.border="0",fe.width=ie.width.toString(),fe.height=ie.height.toString(),fe.scrolling="no",fe.setAttribute(z,"true"),Ae.body.appendChild(fe),fe},Qe=function(Ae){return new Promise(function(ie){if(Ae.complete){ie();return}if(!Ae.src){ie();return}Ae.onload=ie,Ae.onerror=ie})},Re=function(Ae){return Promise.all([].slice.call(Ae.images,0).map(Qe))},Ye=function(Ae){return new Promise(function(ie,fe){var ue=Ae.contentWindow;if(!ue)return fe("No window assigned for iframe");var Ue=ue.document;ue.onload=Ae.onload=function(){ue.onload=Ae.onload=null;var je=setInterval(function(){Ue.body.childNodes.length>0&&Ue.readyState==="complete"&&(clearInterval(je),ie(Ae))},50)}})},rn=["all","d","content"],gn=function(Ae,ie){for(var fe=Ae.length-1;fe>=0;fe--){var ue=Ae.item(fe);rn.indexOf(ue)===-1&&ie.style.setProperty(ue,Ae.getPropertyValue(ue))}return ie},tr=function(Ae){var ie="";return Ae&&(ie+="<!DOCTYPE ",Ae.name&&(ie+=Ae.name),Ae.internalSubset&&(ie+=Ae.internalSubset),Ae.publicId&&(ie+='"'+Ae.publicId+'"'),Ae.systemId&&(ie+='"'+Ae.systemId+'"'),ie+=">"),ie},$n=function(Ae,ie,fe){Ae&&Ae.defaultView&&(ie!==Ae.defaultView.pageXOffset||fe!==Ae.defaultView.pageYOffset)&&Ae.defaultView.scrollTo(ie,fe)},Nr=function(Ae){var ie=Ae[0],fe=Ae[1],ue=Ae[2];ie.scrollLeft=fe,ie.scrollTop=ue},ni=":before",di=":after",Ci="___html2canvas___pseudoelement_before",Ui="___html2canvas___pseudoelement_after",Ei=`{
|
|
|
content: "" !important;
|
|
|
display: none !important;
|
|
|
}`,Hi=function(Ae){lo(Ae,"."+Ci+ni+Ei+`
|
|
|
.`+Ui+di+Ei)},lo=function(Ae,ie){var fe=Ae.ownerDocument;if(fe){var ue=fe.createElement("style");ue.textContent=ie,Ae.appendChild(ue)}},Ji=function(){function Ae(){}return Ae.getOrigin=function(ie){var fe=Ae._link;return fe?(fe.href=ie,fe.href=fe.href,fe.protocol+fe.hostname+fe.port):"about:blank"},Ae.isSameOrigin=function(ie){return Ae.getOrigin(ie)===Ae._origin},Ae.setContext=function(ie){Ae._link=ie.document.createElement("a"),Ae._origin=Ae.getOrigin(ie.location.href)},Ae._origin="about:blank",Ae}(),yo=function(){function Ae(ie,fe){this.context=ie,this._options=fe,this._cache={}}return Ae.prototype.addImage=function(ie){var fe=Promise.resolve();return this.has(ie)||(cA(ie)||uA(ie))&&(this._cache[ie]=this.loadImage(ie)).catch(function(){}),fe},Ae.prototype.match=function(ie){return this._cache[ie]},Ae.prototype.loadImage=function(ie){return qt(this,void 0,void 0,function(){var fe,ue,Ue,je,dt=this;return Xe(this,function(Jt){switch(Jt.label){case 0:return fe=Ji.isSameOrigin(ie),ue=!Rs(ie)&&this._options.useCORS===!0&&Es.SUPPORT_CORS_IMAGES&&!fe,Ue=!Rs(ie)&&!fe&&!cA(ie)&&typeof this._options.proxy=="string"&&Es.SUPPORT_CORS_XHR&&!ue,!fe&&this._options.allowTaint===!1&&!Rs(ie)&&!cA(ie)&&!Ue&&!ue?[2]:(je=ie,Ue?[4,this.proxy(je)]:[3,2]);case 1:je=Jt.sent(),Jt.label=2;case 2:return this.context.logger.debug("Added image "+ie.substring(0,256)),[4,new Promise(function(Yt,Vn){var er=new Image;er.onload=function(){return Yt(er)},er.onerror=Vn,(Ss(je)||ue)&&(er.crossOrigin="anonymous"),er.src=je,er.complete===!0&&setTimeout(function(){return Yt(er)},500),dt._options.imageTimeout>0&&setTimeout(function(){return Vn("Timed out ("+dt._options.imageTimeout+"ms) loading image")},dt._options.imageTimeout)})];case 3:return[2,Jt.sent()]}})})},Ae.prototype.has=function(ie){return typeof this._cache[ie]!="undefined"},Ae.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},Ae.prototype.proxy=function(ie){var fe=this,ue=this._options.proxy;if(!ue)throw new Error("No proxy defined");var Ue=ie.substring(0,256);return new Promise(function(je,dt){var Jt=Es.SUPPORT_RESPONSE_TYPE?"blob":"text",Yt=new XMLHttpRequest;Yt.onload=function(){if(Yt.status===200)if(Jt==="text")je(Yt.response);else{var sr=new FileReader;sr.addEventListener("load",function(){return je(sr.result)},!1),sr.addEventListener("error",function(Zr){return dt(Zr)},!1),sr.readAsDataURL(Yt.response)}else dt("Failed to proxy resource "+Ue+" with status code "+Yt.status)},Yt.onerror=dt;var Vn=ue.indexOf("?")>-1?"&":"?";if(Yt.open("GET",""+ue+Vn+"url="+encodeURIComponent(ie)+"&responseType="+Jt),Jt!=="text"&&Yt instanceof XMLHttpRequest&&(Yt.responseType=Jt),fe._options.imageTimeout){var er=fe._options.imageTimeout;Yt.timeout=er,Yt.ontimeout=function(){return dt("Timed out ("+er+"ms) proxying "+Ue)}}Yt.send()})},Ae}(),ja=/^data:image\/svg\+xml/i,Os=/^data:image\/.*;base64,/i,ts=/^data:image\/.*/i,uA=function(Ae){return Es.SUPPORT_SVG_DRAWING||!Vs(Ae)},Rs=function(Ae){return ts.test(Ae)},Ss=function(Ae){return Os.test(Ae)},cA=function(Ae){return Ae.substr(0,4)==="blob"},Vs=function(Ae){return Ae.substr(-3).toLowerCase()==="svg"||ja.test(Ae)},Bi=function(){function Ae(ie,fe){this.type=0,this.x=ie,this.y=fe}return Ae.prototype.add=function(ie,fe){return new Ae(this.x+ie,this.y+fe)},Ae}(),Ya=function(Ae,ie,fe){return new Bi(Ae.x+(ie.x-Ae.x)*fe,Ae.y+(ie.y-Ae.y)*fe)},ns=function(){function Ae(ie,fe,ue,Ue){this.type=1,this.start=ie,this.startControl=fe,this.endControl=ue,this.end=Ue}return Ae.prototype.subdivide=function(ie,fe){var ue=Ya(this.start,this.startControl,ie),Ue=Ya(this.startControl,this.endControl,ie),je=Ya(this.endControl,this.end,ie),dt=Ya(ue,Ue,ie),Jt=Ya(Ue,je,ie),Yt=Ya(dt,Jt,ie);return fe?new Ae(this.start,ue,dt,Yt):new Ae(Yt,Jt,je,this.end)},Ae.prototype.add=function(ie,fe){return new Ae(this.start.add(ie,fe),this.startControl.add(ie,fe),this.endControl.add(ie,fe),this.end.add(ie,fe))},Ae.prototype.reverse=function(){return new Ae(this.end,this.endControl,this.startControl,this.start)},Ae}(),rs=function(Ae){return Ae.type===1},Rc=function(){function Ae(ie){var fe=ie.styles,ue=ie.bounds,Ue=$A(fe.borderTopLeftRadius,ue.width,ue.height),je=Ue[0],dt=Ue[1],Jt=$A(fe.borderTopRightRadius,ue.width,ue.height),Yt=Jt[0],Vn=Jt[1],er=$A(fe.borderBottomRightRadius,ue.width,ue.height),sr=er[0],Zr=er[1],zi=$A(fe.borderBottomLeftRadius,ue.width,ue.height),pi=zi[0],Oi=zi[1],Wo=[];Wo.push((je+Yt)/ue.width),Wo.push((pi+sr)/ue.width),Wo.push((dt+Oi)/ue.height),Wo.push((Vn+Zr)/ue.height);var Gi=Math.max.apply(Math,Wo);Gi>1&&(je/=Gi,dt/=Gi,Yt/=Gi,Vn/=Gi,sr/=Gi,Zr/=Gi,pi/=Gi,Oi/=Gi);var Wi=ue.width-Yt,To=ue.height-Zr,Xo=ue.width-sr,Fo=ue.height-Oi,Mi=fe.borderTopWidth,Ba=fe.borderRightWidth,ia=fe.borderBottomWidth,Qo=fe.borderLeftWidth,Li=da(fe.paddingTop,ie.bounds.width),yl=da(fe.paddingRight,ie.bounds.width),Pl=da(fe.paddingBottom,ie.bounds.width),Ja=da(fe.paddingLeft,ie.bounds.width);this.topLeftBorderDoubleOuterBox=je>0||dt>0?ta(ue.left+Qo/3,ue.top+Mi/3,je-Qo/3,dt-Mi/3,ha.TOP_LEFT):new Bi(ue.left+Qo/3,ue.top+Mi/3),this.topRightBorderDoubleOuterBox=je>0||dt>0?ta(ue.left+Wi,ue.top+Mi/3,Yt-Ba/3,Vn-Mi/3,ha.TOP_RIGHT):new Bi(ue.left+ue.width-Ba/3,ue.top+Mi/3),this.bottomRightBorderDoubleOuterBox=sr>0||Zr>0?ta(ue.left+Xo,ue.top+To,sr-Ba/3,Zr-ia/3,ha.BOTTOM_RIGHT):new Bi(ue.left+ue.width-Ba/3,ue.top+ue.height-ia/3),this.bottomLeftBorderDoubleOuterBox=pi>0||Oi>0?ta(ue.left+Qo/3,ue.top+Fo,pi-Qo/3,Oi-ia/3,ha.BOTTOM_LEFT):new Bi(ue.left+Qo/3,ue.top+ue.height-ia/3),this.topLeftBorderDoubleInnerBox=je>0||dt>0?ta(ue.left+Qo*2/3,ue.top+Mi*2/3,je-Qo*2/3,dt-Mi*2/3,ha.TOP_LEFT):new Bi(ue.left+Qo*2/3,ue.top+Mi*2/3),this.topRightBorderDoubleInnerBox=je>0||dt>0?ta(ue.left+Wi,ue.top+Mi*2/3,Yt-Ba*2/3,Vn-Mi*2/3,ha.TOP_RIGHT):new Bi(ue.left+ue.width-Ba*2/3,ue.top+Mi*2/3),this.bottomRightBorderDoubleInnerBox=sr>0||Zr>0?ta(ue.left+Xo,ue.top+To,sr-Ba*2/3,Zr-ia*2/3,ha.BOTTOM_RIGHT):new Bi(ue.left+ue.width-Ba*2/3,ue.top+ue.height-ia*2/3),this.bottomLeftBorderDoubleInnerBox=pi>0||Oi>0?ta(ue.left+Qo*2/3,ue.top+Fo,pi-Qo*2/3,Oi-ia*2/3,ha.BOTTOM_LEFT):new Bi(ue.left+Qo*2/3,ue.top+ue.height-ia*2/3),this.topLeftBorderStroke=je>0||dt>0?ta(ue.left+Qo/2,ue.top+Mi/2,je-Qo/2,dt-Mi/2,ha.TOP_LEFT):new Bi(ue.left+Qo/2,ue.top+Mi/2),this.topRightBorderStroke=je>0||dt>0?ta(ue.left+Wi,ue.top+Mi/2,Yt-Ba/2,Vn-Mi/2,ha.TOP_RIGHT):new Bi(ue.left+ue.width-Ba/2,ue.top+Mi/2),this.bottomRightBorderStroke=sr>0||Zr>0?ta(ue.left+Xo,ue.top+To,sr-Ba/2,Zr-ia/2,ha.BOTTOM_RIGHT):new Bi(ue.left+ue.width-Ba/2,ue.top+ue.height-ia/2),this.bottomLeftBorderStroke=pi>0||Oi>0?ta(ue.left+Qo/2,ue.top+Fo,pi-Qo/2,Oi-ia/2,ha.BOTTOM_LEFT):new Bi(ue.left+Qo/2,ue.top+ue.height-ia/2),this.topLeftBorderBox=je>0||dt>0?ta(ue.left,ue.top,je,dt,ha.TOP_LEFT):new Bi(ue.left,ue.top),this.topRightBorderBox=Yt>0||Vn>0?ta(ue.left+Wi,ue.top,Yt,Vn,ha.TOP_RIGHT):new Bi(ue.left+ue.width,ue.top),this.bottomRightBorderBox=sr>0||Zr>0?ta(ue.left+Xo,ue.top+To,sr,Zr,ha.BOTTOM_RIGHT):new Bi(ue.left+ue.width,ue.top+ue.height),this.bottomLeftBorderBox=pi>0||Oi>0?ta(ue.left,ue.top+Fo,pi,Oi,ha.BOTTOM_LEFT):new Bi(ue.left,ue.top+ue.height),this.topLeftPaddingBox=je>0||dt>0?ta(ue.left+Qo,ue.top+Mi,Math.max(0,je-Qo),Math.max(0,dt-Mi),ha.TOP_LEFT):new Bi(ue.left+Qo,ue.top+Mi),this.topRightPaddingBox=Yt>0||Vn>0?ta(ue.left+Math.min(Wi,ue.width-Ba),ue.top+Mi,Wi>ue.width+Ba?0:Math.max(0,Yt-Ba),Math.max(0,Vn-Mi),ha.TOP_RIGHT):new Bi(ue.left+ue.width-Ba,ue.top+Mi),this.bottomRightPaddingBox=sr>0||Zr>0?ta(ue.left+Math.min(Xo,ue.width-Qo),ue.top+Math.min(To,ue.height-ia),Math.max(0,sr-Ba),Math.max(0,Zr-ia),ha.BOTTOM_RIGHT):new Bi(ue.left+ue.width-Ba,ue.top+ue.height-ia),this.bottomLeftPaddingBox=pi>0||Oi>0?ta(ue.left+Qo,ue.top+Math.min(Fo,ue.height-ia),Math.max(0,pi-Qo),Math.max(0,Oi-ia),ha.BOTTOM_LEFT):new Bi(ue.left+Qo,ue.top+ue.height-ia),this.topLeftContentBox=je>0||dt>0?ta(ue.left+Qo+Ja,ue.top+Mi+Li,Math.max(0,je-(Qo+Ja)),Math.max(0,dt-(Mi+Li)),ha.TOP_LEFT):new Bi(ue.left+Qo+Ja,ue.top+Mi+Li),this.topRightContentBox=Yt>0||Vn>0?ta(ue.left+Math.min(Wi,ue.width+Qo+Ja),ue.top+Mi+Li,Wi>ue.width+Qo+Ja?0:Yt-Qo+Ja,Vn-(Mi+Li),ha.TOP_RIGHT):new Bi(ue.left+ue.width-(Ba+yl),ue.top+Mi+Li),this.bottomRightContentBox=sr>0||Zr>0?ta(ue.left+Math.min(Xo,ue.width-(Qo+Ja)),ue.top+Math.min(To,ue.height+Mi+Li),Math.max(0,sr-(Ba+yl)),Zr-(ia+Pl),ha.BOTTOM_RIGHT):new Bi(ue.left+ue.width-(Ba+yl),ue.top+ue.height-(ia+Pl)),this.bottomLeftContentBox=pi>0||Oi>0?ta(ue.left+Qo+Ja,ue.top+Fo,Math.max(0,pi-(Qo+Ja)),Oi-(ia+Pl),ha.BOTTOM_LEFT):new Bi(ue.left+Qo+Ja,ue.top+ue.height-(ia+Pl))}return Ae}(),ha;(function(Ae){Ae[Ae.TOP_LEFT=0]="TOP_LEFT",Ae[Ae.TOP_RIGHT=1]="TOP_RIGHT",Ae[Ae.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",Ae[Ae.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(ha||(ha={}));var ta=function(Ae,ie,fe,ue,Ue){var je=4*((Math.sqrt(2)-1)/3),dt=fe*je,Jt=ue*je,Yt=Ae+fe,Vn=ie+ue;switch(Ue){case ha.TOP_LEFT:return new ns(new Bi(Ae,Vn),new Bi(Ae,Vn-Jt),new Bi(Yt-dt,ie),new Bi(Yt,ie));case ha.TOP_RIGHT:return new ns(new Bi(Ae,ie),new Bi(Ae+dt,ie),new Bi(Yt,Vn-Jt),new Bi(Yt,Vn));case ha.BOTTOM_RIGHT:return new ns(new Bi(Yt,ie),new Bi(Yt,ie+Jt),new Bi(Ae+dt,Vn),new Bi(Ae,Vn));case ha.BOTTOM_LEFT:default:return new ns(new Bi(Yt,Vn),new Bi(Yt-dt,Vn),new Bi(Ae,ie+Jt),new Bi(Ae,ie))}},nl=function(Ae){return[Ae.topLeftBorderBox,Ae.topRightBorderBox,Ae.bottomRightBorderBox,Ae.bottomLeftBorderBox]},Zs=function(Ae){return[Ae.topLeftContentBox,Ae.topRightContentBox,Ae.bottomRightContentBox,Ae.bottomLeftContentBox]},Tf=function(Ae){return[Ae.topLeftPaddingBox,Ae.topRightPaddingBox,Ae.bottomRightPaddingBox,Ae.bottomLeftPaddingBox]},fo=function(){function Ae(ie,fe,ue){this.offsetX=ie,this.offsetY=fe,this.matrix=ue,this.type=0,this.target=6}return Ae}(),ml=function(){function Ae(ie,fe){this.path=ie,this.target=fe,this.type=1}return Ae}(),Pa=function(){function Ae(ie){this.opacity=ie,this.type=2,this.target=6}return Ae}(),$s=function(Ae){return Ae.type===0},Nu=function(Ae){return Ae.type===1},jc=function(Ae){return Ae.type===2},zc=function(Ae,ie){return Ae.length===ie.length?Ae.some(function(fe,ue){return fe===ie[ue]}):!1},Yg=function(Ae,ie,fe,ue,Ue){return Ae.map(function(je,dt){switch(dt){case 0:return je.add(ie,fe);case 1:return je.add(ie+ue,fe);case 2:return je.add(ie+ue,fe+Ue);case 3:return je.add(ie,fe+Ue)}return je})},Ih=function(){function Ae(ie){this.element=ie,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return Ae}(),vg=function(){function Ae(ie,fe){if(this.container=ie,this.parent=fe,this.effects=[],this.curves=new Rc(this.container),this.container.styles.opacity<1&&this.effects.push(new Pa(this.container.styles.opacity)),this.container.styles.transform!==null){var ue=this.container.bounds.left+this.container.styles.transformOrigin[0].number,Ue=this.container.bounds.top+this.container.styles.transformOrigin[1].number,je=this.container.styles.transform;this.effects.push(new fo(ue,Ue,je))}if(this.container.styles.overflowX!==0){var dt=nl(this.curves),Jt=Tf(this.curves);zc(dt,Jt)?this.effects.push(new ml(dt,6)):(this.effects.push(new ml(dt,2)),this.effects.push(new ml(Jt,4)))}}return Ae.prototype.getEffects=function(ie){for(var fe=[2,3].indexOf(this.container.styles.position)===-1,ue=this.parent,Ue=this.effects.slice(0);ue;){var je=ue.effects.filter(function(Yt){return!Nu(Yt)});if(fe||ue.container.styles.position!==0||!ue.parent){if(Ue.unshift.apply(Ue,je),fe=[2,3].indexOf(ue.container.styles.position)===-1,ue.container.styles.overflowX!==0){var dt=nl(ue.curves),Jt=Tf(ue.curves);zc(dt,Jt)||Ue.unshift(new ml(Jt,6))}}else Ue.unshift.apply(Ue,je);ue=ue.parent}return Ue.filter(function(Yt){return Us(Yt.target,ie)})},Ae}(),Lh=function(Ae,ie,fe,ue){Ae.container.elements.forEach(function(Ue){var je=Us(Ue.flags,4),dt=Us(Ue.flags,2),Jt=new vg(Ue,Ae);Us(Ue.styles.display,2048)&&ue.push(Jt);var Yt=Us(Ue.flags,8)?[]:ue;if(je||dt){var Vn=je||Ue.styles.isPositioned()?fe:ie,er=new Ih(Jt);if(Ue.styles.isPositioned()||Ue.styles.opacity<1||Ue.styles.isTransformed()){var sr=Ue.styles.zIndex.order;if(sr<0){var Zr=0;Vn.negativeZIndex.some(function(pi,Oi){return sr>pi.element.container.styles.zIndex.order?(Zr=Oi,!1):Zr>0}),Vn.negativeZIndex.splice(Zr,0,er)}else if(sr>0){var zi=0;Vn.positiveZIndex.some(function(pi,Oi){return sr>=pi.element.container.styles.zIndex.order?(zi=Oi+1,!1):zi>0}),Vn.positiveZIndex.splice(zi,0,er)}else Vn.zeroOrAutoZIndexOrTransformedOrOpacity.push(er)}else Ue.styles.isFloating()?Vn.nonPositionedFloats.push(er):Vn.nonPositionedInlineLevel.push(er);Lh(Jt,er,je?er:fe,Yt)}else Ue.styles.isInlineLevel()?ie.inlineLevel.push(Jt):ie.nonInlineLevel.push(Jt),Lh(Jt,ie,fe,Yt);Us(Ue.flags,8)&&Uh(Ue,Yt)})},Uh=function(Ae,ie){for(var fe=Ae instanceof Cd?Ae.start:1,ue=Ae instanceof Cd?Ae.reversed:!1,Ue=0;Ue<ie.length;Ue++){var je=ie[Ue];je.container instanceof Bd&&typeof je.container.value=="number"&&je.container.value!==0&&(fe=je.container.value),je.listValue=ee(fe,je.container.styles.listStyleType,!0),fe+=ue?-1:1}},zA=function(Ae){var ie=new vg(Ae,null),fe=new Ih(ie),ue=[];return Lh(ie,fe,fe,ue),Uh(ie.container,ue),fe},OA=function(Ae,ie){switch(ie){case 0:return Nl(Ae.topLeftBorderBox,Ae.topLeftPaddingBox,Ae.topRightBorderBox,Ae.topRightPaddingBox);case 1:return Nl(Ae.topRightBorderBox,Ae.topRightPaddingBox,Ae.bottomRightBorderBox,Ae.bottomRightPaddingBox);case 2:return Nl(Ae.bottomRightBorderBox,Ae.bottomRightPaddingBox,Ae.bottomLeftBorderBox,Ae.bottomLeftPaddingBox);case 3:default:return Nl(Ae.bottomLeftBorderBox,Ae.bottomLeftPaddingBox,Ae.topLeftBorderBox,Ae.topLeftPaddingBox)}},KA=function(Ae,ie){switch(ie){case 0:return Nl(Ae.topLeftBorderBox,Ae.topLeftBorderDoubleOuterBox,Ae.topRightBorderBox,Ae.topRightBorderDoubleOuterBox);case 1:return Nl(Ae.topRightBorderBox,Ae.topRightBorderDoubleOuterBox,Ae.bottomRightBorderBox,Ae.bottomRightBorderDoubleOuterBox);case 2:return Nl(Ae.bottomRightBorderBox,Ae.bottomRightBorderDoubleOuterBox,Ae.bottomLeftBorderBox,Ae.bottomLeftBorderDoubleOuterBox);case 3:default:return Nl(Ae.bottomLeftBorderBox,Ae.bottomLeftBorderDoubleOuterBox,Ae.topLeftBorderBox,Ae.topLeftBorderDoubleOuterBox)}},WA=function(Ae,ie){switch(ie){case 0:return Nl(Ae.topLeftBorderDoubleInnerBox,Ae.topLeftPaddingBox,Ae.topRightBorderDoubleInnerBox,Ae.topRightPaddingBox);case 1:return Nl(Ae.topRightBorderDoubleInnerBox,Ae.topRightPaddingBox,Ae.bottomRightBorderDoubleInnerBox,Ae.bottomRightPaddingBox);case 2:return Nl(Ae.bottomRightBorderDoubleInnerBox,Ae.bottomRightPaddingBox,Ae.bottomLeftBorderDoubleInnerBox,Ae.bottomLeftPaddingBox);case 3:default:return Nl(Ae.bottomLeftBorderDoubleInnerBox,Ae.bottomLeftPaddingBox,Ae.topLeftBorderDoubleInnerBox,Ae.topLeftPaddingBox)}},Jg=function(Ae,ie){switch(ie){case 0:return Pp(Ae.topLeftBorderStroke,Ae.topRightBorderStroke);case 1:return Pp(Ae.topRightBorderStroke,Ae.bottomRightBorderStroke);case 2:return Pp(Ae.bottomRightBorderStroke,Ae.bottomLeftBorderStroke);case 3:default:return Pp(Ae.bottomLeftBorderStroke,Ae.topLeftBorderStroke)}},Pp=function(Ae,ie){var fe=[];return rs(Ae)?fe.push(Ae.subdivide(.5,!1)):fe.push(Ae),rs(ie)?fe.push(ie.subdivide(.5,!0)):fe.push(ie),fe},Nl=function(Ae,ie,fe,ue){var Ue=[];return rs(Ae)?Ue.push(Ae.subdivide(.5,!1)):Ue.push(Ae),rs(fe)?Ue.push(fe.subdivide(.5,!0)):Ue.push(fe),rs(ue)?Ue.push(ue.subdivide(.5,!0).reverse()):Ue.push(ue),rs(ie)?Ue.push(ie.subdivide(.5,!1).reverse()):Ue.push(ie),Ue},qg=function(Ae){var ie=Ae.bounds,fe=Ae.styles;return ie.add(fe.borderLeftWidth,fe.borderTopWidth,-(fe.borderRightWidth+fe.borderLeftWidth),-(fe.borderTopWidth+fe.borderBottomWidth))},Tp=function(Ae){var ie=Ae.styles,fe=Ae.bounds,ue=da(ie.paddingLeft,fe.width),Ue=da(ie.paddingRight,fe.width),je=da(ie.paddingTop,fe.width),dt=da(ie.paddingBottom,fe.width);return fe.add(ue+ie.borderLeftWidth,je+ie.borderTopWidth,-(ie.borderRightWidth+ie.borderLeftWidth+ue+Ue),-(ie.borderTopWidth+ie.borderBottomWidth+je+dt))},yg=function(Ae,ie){return Ae===0?ie.bounds:Ae===2?Tp(ie):qg(ie)},km=function(Ae,ie){return Ae===0?ie.bounds:Ae===2?Tp(ie):qg(ie)},Pu=function(Ae,ie,fe){var ue=yg(Au(Ae.styles.backgroundOrigin,ie),Ae),Ue=km(Au(Ae.styles.backgroundClip,ie),Ae),je=Ld(Au(Ae.styles.backgroundSize,ie),fe,ue),dt=je[0],Jt=je[1],Yt=$A(Au(Ae.styles.backgroundPosition,ie),ue.width-dt,ue.height-Jt),Vn=em(Au(Ae.styles.backgroundRepeat,ie),Yt,je,ue,Ue),er=Math.round(ue.left+Yt[0]),sr=Math.round(ue.top+Yt[1]);return[Vn,er,sr,dt,Jt]},Kc=function(Ae){return ua(Ae)&&Ae.value===xs.AUTO},Oh=function(Ae){return typeof Ae=="number"},Ld=function(Ae,ie,fe){var ue=ie[0],Ue=ie[1],je=ie[2],dt=Ae[0],Jt=Ae[1];if(!dt)return[0,0];if(Za(dt)&&Jt&&Za(Jt))return[da(dt,fe.width),da(Jt,fe.height)];var Yt=Oh(je);if(ua(dt)&&(dt.value===xs.CONTAIN||dt.value===xs.COVER)){if(Oh(je)){var Vn=fe.width/fe.height;return Vn<je!=(dt.value===xs.COVER)?[fe.width,fe.width/je]:[fe.height*je,fe.height]}return[fe.width,fe.height]}var er=Oh(ue),sr=Oh(Ue),Zr=er||sr;if(Kc(dt)&&(!Jt||Kc(Jt))){if(er&&sr)return[ue,Ue];if(!Yt&&!Zr)return[fe.width,fe.height];if(Zr&&Yt){var zi=er?ue:Ue*je,pi=sr?Ue:ue/je;return[zi,pi]}var Oi=er?ue:fe.width,Wo=sr?Ue:fe.height;return[Oi,Wo]}if(Yt){var Gi=0,Wi=0;return Za(dt)?Gi=da(dt,fe.width):Za(Jt)&&(Wi=da(Jt,fe.height)),Kc(dt)?Gi=Wi*je:(!Jt||Kc(Jt))&&(Wi=Gi/je),[Gi,Wi]}var To=null,Xo=null;if(Za(dt)?To=da(dt,fe.width):Jt&&Za(Jt)&&(Xo=da(Jt,fe.height)),To!==null&&(!Jt||Kc(Jt))&&(Xo=er&&sr?To/ue*Ue:fe.height),Xo!==null&&Kc(dt)&&(To=er&&sr?Xo/Ue*ue:fe.width),To!==null&&Xo!==null)return[To,Xo];throw new Error("Unable to calculate background-size for element")},Au=function(Ae,ie){var fe=Ae[ie];return typeof fe=="undefined"?Ae[0]:fe},em=function(Ae,ie,fe,ue,Ue){var je=ie[0],dt=ie[1],Jt=fe[0],Yt=fe[1];switch(Ae){case 2:return[new Bi(Math.round(ue.left),Math.round(ue.top+dt)),new Bi(Math.round(ue.left+ue.width),Math.round(ue.top+dt)),new Bi(Math.round(ue.left+ue.width),Math.round(Yt+ue.top+dt)),new Bi(Math.round(ue.left),Math.round(Yt+ue.top+dt))];case 3:return[new Bi(Math.round(ue.left+je),Math.round(ue.top)),new Bi(Math.round(ue.left+je+Jt),Math.round(ue.top)),new Bi(Math.round(ue.left+je+Jt),Math.round(ue.height+ue.top)),new Bi(Math.round(ue.left+je),Math.round(ue.height+ue.top))];case 1:return[new Bi(Math.round(ue.left+je),Math.round(ue.top+dt)),new Bi(Math.round(ue.left+je+Jt),Math.round(ue.top+dt)),new Bi(Math.round(ue.left+je+Jt),Math.round(ue.top+dt+Yt)),new Bi(Math.round(ue.left+je),Math.round(ue.top+dt+Yt))];default:return[new Bi(Math.round(Ue.left),Math.round(Ue.top)),new Bi(Math.round(Ue.left+Ue.width),Math.round(Ue.top)),new Bi(Math.round(Ue.left+Ue.width),Math.round(Ue.height+Ue.top)),new Bi(Math.round(Ue.left),Math.round(Ue.height+Ue.top))]}},Dh="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",wg="Hidden Text",Wc=function(){function Ae(ie){this._data={},this._document=ie}return Ae.prototype.parseMetrics=function(ie,fe){var ue=this._document.createElement("div"),Ue=this._document.createElement("img"),je=this._document.createElement("span"),dt=this._document.body;ue.style.visibility="hidden",ue.style.fontFamily=ie,ue.style.fontSize=fe,ue.style.margin="0",ue.style.padding="0",ue.style.whiteSpace="nowrap",dt.appendChild(ue),Ue.src=Dh,Ue.width=1,Ue.height=1,Ue.style.margin="0",Ue.style.padding="0",Ue.style.verticalAlign="baseline",je.style.fontFamily=ie,je.style.fontSize=fe,je.style.margin="0",je.style.padding="0",je.appendChild(this._document.createTextNode(wg)),ue.appendChild(je),ue.appendChild(Ue);var Jt=Ue.offsetTop-je.offsetTop+2;ue.removeChild(je),ue.appendChild(this._document.createTextNode(wg)),ue.style.lineHeight="normal",Ue.style.verticalAlign="super";var Yt=Ue.offsetTop-ue.offsetTop+2;return dt.removeChild(ue),{baseline:Jt,middle:Yt}},Ae.prototype.getMetrics=function(ie,fe){var ue=ie+" "+fe;return typeof this._data[ue]=="undefined"&&(this._data[ue]=this.parseMetrics(ie,fe)),this._data[ue]},Ae}(),Gc=function(){function Ae(ie,fe){this.context=ie,this.options=fe}return Ae}(),ao=1e4,Ds=function(Ae){pe(ie,Ae);function ie(fe,ue){var Ue=Ae.call(this,fe,ue)||this;return Ue._activeEffects=[],Ue.canvas=ue.canvas?ue.canvas:document.createElement("canvas"),Ue.ctx=Ue.canvas.getContext("2d"),ue.canvas||(Ue.canvas.width=Math.floor(ue.width*ue.scale),Ue.canvas.height=Math.floor(ue.height*ue.scale),Ue.canvas.style.width=ue.width+"px",Ue.canvas.style.height=ue.height+"px"),Ue.fontMetrics=new Wc(document),Ue.ctx.scale(Ue.options.scale,Ue.options.scale),Ue.ctx.translate(-ue.x,-ue.y),Ue.ctx.textBaseline="bottom",Ue._activeEffects=[],Ue.context.logger.debug("Canvas renderer initialized ("+ue.width+"x"+ue.height+") with scale "+ue.scale),Ue}return ie.prototype.applyEffects=function(fe){for(var ue=this;this._activeEffects.length;)this.popEffect();fe.forEach(function(Ue){return ue.applyEffect(Ue)})},ie.prototype.applyEffect=function(fe){this.ctx.save(),jc(fe)&&(this.ctx.globalAlpha=fe.opacity),$s(fe)&&(this.ctx.translate(fe.offsetX,fe.offsetY),this.ctx.transform(fe.matrix[0],fe.matrix[1],fe.matrix[2],fe.matrix[3],fe.matrix[4],fe.matrix[5]),this.ctx.translate(-fe.offsetX,-fe.offsetY)),Nu(fe)&&(this.path(fe.path),this.ctx.clip()),this._activeEffects.push(fe)},ie.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},ie.prototype.renderStack=function(fe){return qt(this,void 0,void 0,function(){var ue;return Xe(this,function(Ue){switch(Ue.label){case 0:return ue=fe.element.container.styles,ue.isVisible()?[4,this.renderStackContent(fe)]:[3,2];case 1:Ue.sent(),Ue.label=2;case 2:return[2]}})})},ie.prototype.renderNode=function(fe){return qt(this,void 0,void 0,function(){return Xe(this,function(ue){switch(ue.label){case 0:if(Us(fe.container.flags,16))debugger;return fe.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(fe)]:[3,3];case 1:return ue.sent(),[4,this.renderNodeContent(fe)];case 2:ue.sent(),ue.label=3;case 3:return[2]}})})},ie.prototype.renderTextWithLetterSpacing=function(fe,ue,Ue){var je=this;if(ue===0)this.ctx.fillText(fe.text,fe.bounds.left,fe.bounds.top+Ue);else{var dt=yh(fe.text);dt.reduce(function(Jt,Yt){return je.ctx.fillText(Yt,Jt,fe.bounds.top+Ue),Jt+je.ctx.measureText(Yt).width},fe.bounds.left)}},ie.prototype.createFontStyle=function(fe){var ue=fe.fontVariant.filter(function(dt){return dt==="normal"||dt==="small-caps"}).join(""),Ue=Vc(fe.fontFamily).join(", "),je=la(fe.fontSize)?""+fe.fontSize.number+fe.fontSize.unit:fe.fontSize.number+"px";return[[fe.fontStyle,ue,fe.fontWeight,je,Ue].join(" "),Ue,je]},ie.prototype.renderTextNode=function(fe,ue){return qt(this,void 0,void 0,function(){var Ue,je,dt,Jt,Yt,Vn,er,sr,Zr=this;return Xe(this,function(zi){return Ue=this.createFontStyle(ue),je=Ue[0],dt=Ue[1],Jt=Ue[2],this.ctx.font=je,this.ctx.direction=ue.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",Yt=this.fontMetrics.getMetrics(dt,Jt),Vn=Yt.baseline,er=Yt.middle,sr=ue.paintOrder,fe.textBounds.forEach(function(pi){sr.forEach(function(Oi){switch(Oi){case 0:Zr.ctx.fillStyle=Cs(ue.color),Zr.renderTextWithLetterSpacing(pi,ue.letterSpacing,Vn);var Wo=ue.textShadow;Wo.length&&pi.text.trim().length&&(Wo.slice(0).reverse().forEach(function(Gi){Zr.ctx.shadowColor=Cs(Gi.color),Zr.ctx.shadowOffsetX=Gi.offsetX.number*Zr.options.scale,Zr.ctx.shadowOffsetY=Gi.offsetY.number*Zr.options.scale,Zr.ctx.shadowBlur=Gi.blur.number,Zr.renderTextWithLetterSpacing(pi,ue.letterSpacing,Vn)}),Zr.ctx.shadowColor="",Zr.ctx.shadowOffsetX=0,Zr.ctx.shadowOffsetY=0,Zr.ctx.shadowBlur=0),ue.textDecorationLine.length&&(Zr.ctx.fillStyle=Cs(ue.textDecorationColor||ue.color),ue.textDecorationLine.forEach(function(Gi){switch(Gi){case 1:Zr.ctx.fillRect(pi.bounds.left,Math.round(pi.bounds.top+Vn),pi.bounds.width,1);break;case 2:Zr.ctx.fillRect(pi.bounds.left,Math.round(pi.bounds.top),pi.bounds.width,1);break;case 3:Zr.ctx.fillRect(pi.bounds.left,Math.ceil(pi.bounds.top+er),pi.bounds.width,1);break}}));break;case 1:ue.webkitTextStrokeWidth&&pi.text.trim().length&&(Zr.ctx.strokeStyle=Cs(ue.webkitTextStrokeColor),Zr.ctx.lineWidth=ue.webkitTextStrokeWidth,Zr.ctx.lineJoin=window.chrome?"miter":"round",Zr.ctx.strokeText(pi.text,pi.bounds.left,pi.bounds.top+Vn)),Zr.ctx.strokeStyle="",Zr.ctx.lineWidth=0,Zr.ctx.lineJoin="miter";break}})}),[2]})})},ie.prototype.renderReplacedElement=function(fe,ue,Ue){if(Ue&&fe.intrinsicWidth>0&&fe.intrinsicHeight>0){var je=Tp(fe),dt=Tf(ue);this.path(dt),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(Ue,0,0,fe.intrinsicWidth,fe.intrinsicHeight,je.left,je.top,je.width,je.height),this.ctx.restore()}},ie.prototype.renderNodeContent=function(fe){return qt(this,void 0,void 0,function(){var ue,Ue,je,dt,Jt,Yt,Wi,Wi,Vn,er,sr,Zr,Xo,zi,pi,Fo,Oi,Wo,Gi,Wi,To,Xo,Fo;return Xe(this,function(Mi){switch(Mi.label){case 0:this.applyEffects(fe.getEffects(4)),ue=fe.container,Ue=fe.curves,je=ue.styles,dt=0,Jt=ue.textNodes,Mi.label=1;case 1:return dt<Jt.length?(Yt=Jt[dt],[4,this.renderTextNode(Yt,je)]):[3,4];case 2:Mi.sent(),Mi.label=3;case 3:return dt++,[3,1];case 4:if(!(ue instanceof wh))return[3,8];Mi.label=5;case 5:return Mi.trys.push([5,7,,8]),[4,this.context.cache.match(ue.src)];case 6:return Wi=Mi.sent(),this.renderReplacedElement(ue,Ue,Wi),[3,8];case 7:return Mi.sent(),this.context.logger.error("Error loading image "+ue.src),[3,8];case 8:if(ue instanceof bh&&this.renderReplacedElement(ue,Ue,ue.canvas),!(ue instanceof wp))return[3,12];Mi.label=9;case 9:return Mi.trys.push([9,11,,12]),[4,this.context.cache.match(ue.svg)];case 10:return Wi=Mi.sent(),this.renderReplacedElement(ue,Ue,Wi),[3,12];case 11:return Mi.sent(),this.context.logger.error("Error loading svg "+ue.svg.substring(0,255)),[3,12];case 12:return ue instanceof Ep&&ue.tree?(Vn=new ie(this.context,{scale:this.options.scale,backgroundColor:ue.backgroundColor,x:0,y:0,width:ue.width,height:ue.height}),[4,Vn.render(ue.tree)]):[3,14];case 13:er=Mi.sent(),ue.width&&ue.height&&this.ctx.drawImage(er,0,0,ue.width,ue.height,ue.bounds.left,ue.bounds.top,ue.bounds.width,ue.bounds.height),Mi.label=14;case 14:if(ue instanceof _c&&(sr=Math.min(ue.bounds.width,ue.bounds.height),ue.type===Mc?ue.checked&&(this.ctx.save(),this.path([new Bi(ue.bounds.left+sr*.39363,ue.bounds.top+sr*.79),new Bi(ue.bounds.left+sr*.16,ue.bounds.top+sr*.5549),new Bi(ue.bounds.left+sr*.27347,ue.bounds.top+sr*.44071),new Bi(ue.bounds.left+sr*.39694,ue.bounds.top+sr*.5649),new Bi(ue.bounds.left+sr*.72983,ue.bounds.top+sr*.23),new Bi(ue.bounds.left+sr*.84,ue.bounds.top+sr*.34085),new Bi(ue.bounds.left+sr*.39363,ue.bounds.top+sr*.79)]),this.ctx.fillStyle=Cs(xd),this.ctx.fill(),this.ctx.restore()):ue.type===Uu&&ue.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(ue.bounds.left+sr/2,ue.bounds.top+sr/2,sr/4,0,Math.PI*2,!0),this.ctx.fillStyle=Cs(xd),this.ctx.fill(),this.ctx.restore())),bg(ue)&&ue.value.length){switch(Zr=this.createFontStyle(je),Xo=Zr[0],zi=Zr[1],pi=this.fontMetrics.getMetrics(Xo,zi).baseline,this.ctx.font=Xo,this.ctx.fillStyle=Cs(je.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Ud(ue.styles.textAlign),Fo=Tp(ue),Oi=0,ue.styles.textAlign){case 1:Oi+=Fo.width/2;break;case 2:Oi+=Fo.width;break}Wo=Fo.add(Oi,0,0,-Fo.height/2+1),this.ctx.save(),this.path([new Bi(Fo.left,Fo.top),new Bi(Fo.left+Fo.width,Fo.top),new Bi(Fo.left+Fo.width,Fo.top+Fo.height),new Bi(Fo.left,Fo.top+Fo.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new pl(ue.value,Wo),je.letterSpacing,pi),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!Us(ue.styles.display,2048))return[3,20];if(ue.styles.listStyleImage===null)return[3,19];if(Gi=ue.styles.listStyleImage,Gi.type!==0)return[3,18];Wi=void 0,To=Gi.url,Mi.label=15;case 15:return Mi.trys.push([15,17,,18]),[4,this.context.cache.match(To)];case 16:return Wi=Mi.sent(),this.ctx.drawImage(Wi,ue.bounds.left-(Wi.width+10),ue.bounds.top),[3,18];case 17:return Mi.sent(),this.context.logger.error("Error loading list-style-image "+To),[3,18];case 18:return[3,20];case 19:fe.listValue&&ue.styles.listStyleType!==-1&&(Xo=this.createFontStyle(je)[0],this.ctx.font=Xo,this.ctx.fillStyle=Cs(je.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",Fo=new rt(ue.bounds.left,ue.bounds.top+da(ue.styles.paddingTop,ue.bounds.width),ue.bounds.width,Ls(je.lineHeight,je.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new pl(fe.listValue,Fo),je.letterSpacing,Ls(je.lineHeight,je.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),Mi.label=20;case 20:return[2]}})})},ie.prototype.renderStackContent=function(fe){return qt(this,void 0,void 0,function(){var ue,Ue,Gi,je,dt,Gi,Jt,Yt,Gi,Vn,er,Gi,sr,Zr,Gi,zi,pi,Gi,Oi,Wo,Gi;return Xe(this,function(Wi){switch(Wi.label){case 0:if(Us(fe.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(fe.element)];case 1:Wi.sent(),ue=0,Ue=fe.negativeZIndex,Wi.label=2;case 2:return ue<Ue.length?(Gi=Ue[ue],[4,this.renderStack(Gi)]):[3,5];case 3:Wi.sent(),Wi.label=4;case 4:return ue++,[3,2];case 5:return[4,this.renderNodeContent(fe.element)];case 6:Wi.sent(),je=0,dt=fe.nonInlineLevel,Wi.label=7;case 7:return je<dt.length?(Gi=dt[je],[4,this.renderNode(Gi)]):[3,10];case 8:Wi.sent(),Wi.label=9;case 9:return je++,[3,7];case 10:Jt=0,Yt=fe.nonPositionedFloats,Wi.label=11;case 11:return Jt<Yt.length?(Gi=Yt[Jt],[4,this.renderStack(Gi)]):[3,14];case 12:Wi.sent(),Wi.label=13;case 13:return Jt++,[3,11];case 14:Vn=0,er=fe.nonPositionedInlineLevel,Wi.label=15;case 15:return Vn<er.length?(Gi=er[Vn],[4,this.renderStack(Gi)]):[3,18];case 16:Wi.sent(),Wi.label=17;case 17:return Vn++,[3,15];case 18:sr=0,Zr=fe.inlineLevel,Wi.label=19;case 19:return sr<Zr.length?(Gi=Zr[sr],[4,this.renderNode(Gi)]):[3,22];case 20:Wi.sent(),Wi.label=21;case 21:return sr++,[3,19];case 22:zi=0,pi=fe.zeroOrAutoZIndexOrTransformedOrOpacity,Wi.label=23;case 23:return zi<pi.length?(Gi=pi[zi],[4,this.renderStack(Gi)]):[3,26];case 24:Wi.sent(),Wi.label=25;case 25:return zi++,[3,23];case 26:Oi=0,Wo=fe.positiveZIndex,Wi.label=27;case 27:return Oi<Wo.length?(Gi=Wo[Oi],[4,this.renderStack(Gi)]):[3,30];case 28:Wi.sent(),Wi.label=29;case 29:return Oi++,[3,27];case 30:return[2]}})})},ie.prototype.mask=function(fe){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(fe.slice(0).reverse()),this.ctx.closePath()},ie.prototype.path=function(fe){this.ctx.beginPath(),this.formatPath(fe),this.ctx.closePath()},ie.prototype.formatPath=function(fe){var ue=this;fe.forEach(function(Ue,je){var dt=rs(Ue)?Ue.start:Ue;je===0?ue.ctx.moveTo(dt.x,dt.y):ue.ctx.lineTo(dt.x,dt.y),rs(Ue)&&ue.ctx.bezierCurveTo(Ue.startControl.x,Ue.startControl.y,Ue.endControl.x,Ue.endControl.y,Ue.end.x,Ue.end.y)})},ie.prototype.renderRepeat=function(fe,ue,Ue,je){this.path(fe),this.ctx.fillStyle=ue,this.ctx.translate(Ue,je),this.ctx.fill(),this.ctx.translate(-Ue,-je)},ie.prototype.resizeImage=function(fe,ue,Ue){var je;if(fe.width===ue&&fe.height===Ue)return fe;var dt=(je=this.canvas.ownerDocument)!==null&&je!==void 0?je:document,Jt=dt.createElement("canvas");Jt.width=Math.max(1,ue),Jt.height=Math.max(1,Ue);var Yt=Jt.getContext("2d");return Yt.drawImage(fe,0,0,fe.width,fe.height,0,0,ue,Ue),Jt},ie.prototype.renderBackgroundImage=function(fe){return qt(this,void 0,void 0,function(){var ue,Ue,je,dt,Jt,Yt;return Xe(this,function(Vn){switch(Vn.label){case 0:ue=fe.styles.backgroundImage.length-1,Ue=function(er){var sr,Zr,zi,Li,GA,rl,Ja,bA,ia,pi,Li,GA,rl,Ja,bA,Oi,Wo,Gi,Wi,To,Xo,Fo,Mi,Ba,ia,Qo,Li,yl,Pl,Ja,bA,lc,GA,rl,Mf,Kl,uc,_f,Zc,Qu,$c,cc;return Xe(this,function(Od){switch(Od.label){case 0:if(er.type!==0)return[3,5];sr=void 0,Zr=er.url,Od.label=1;case 1:return Od.trys.push([1,3,,4]),[4,je.context.cache.match(Zr)];case 2:return sr=Od.sent(),[3,4];case 3:return Od.sent(),je.context.logger.error("Error loading background-image "+Zr),[3,4];case 4:return sr&&(zi=Pu(fe,ue,[sr.width,sr.height,sr.width/sr.height]),Li=zi[0],GA=zi[1],rl=zi[2],Ja=zi[3],bA=zi[4],ia=je.ctx.createPattern(je.resizeImage(sr,Ja,bA),"repeat"),je.renderRepeat(Li,ia,GA,rl)),[3,6];case 5:Fl(er)?(pi=Pu(fe,ue,[null,null,null]),Li=pi[0],GA=pi[1],rl=pi[2],Ja=pi[3],bA=pi[4],Oi=Vl(er.angle,Ja,bA),Wo=Oi[0],Gi=Oi[1],Wi=Oi[2],To=Oi[3],Xo=Oi[4],Fo=document.createElement("canvas"),Fo.width=Ja,Fo.height=bA,Mi=Fo.getContext("2d"),Ba=Mi.createLinearGradient(Gi,To,Wi,Xo),fl(er.stops,Wo).forEach(function(Xc){return Ba.addColorStop(Xc.stop,Cs(Xc.color))}),Mi.fillStyle=Ba,Mi.fillRect(0,0,Ja,bA),Ja>0&&bA>0&&(ia=je.ctx.createPattern(Fo,"repeat"),je.renderRepeat(Li,ia,GA,rl))):qh(er)&&(Qo=Pu(fe,ue,[null,null,null]),Li=Qo[0],yl=Qo[1],Pl=Qo[2],Ja=Qo[3],bA=Qo[4],lc=er.position.length===0?[Af]:er.position,GA=da(lc[0],Ja),rl=da(lc[lc.length-1],bA),Mf=El(er,GA,rl,Ja,bA),Kl=Mf[0],uc=Mf[1],Kl>0&&uc>0&&(_f=je.ctx.createRadialGradient(yl+GA,Pl+rl,0,yl+GA,Pl+rl,Kl),fl(er.stops,Kl*2).forEach(function(Xc){return _f.addColorStop(Xc.stop,Cs(Xc.color))}),je.path(Li),je.ctx.fillStyle=_f,Kl!==uc?(Zc=fe.bounds.left+.5*fe.bounds.width,Qu=fe.bounds.top+.5*fe.bounds.height,$c=uc/Kl,cc=1/$c,je.ctx.save(),je.ctx.translate(Zc,Qu),je.ctx.transform(1,0,0,$c,0,0),je.ctx.translate(-Zc,-Qu),je.ctx.fillRect(yl,cc*(Pl-Qu)+Qu,Ja,bA*cc),je.ctx.restore()):je.ctx.fill())),Od.label=6;case 6:return ue--,[2]}})},je=this,dt=0,Jt=fe.styles.backgroundImage.slice(0).reverse(),Vn.label=1;case 1:return dt<Jt.length?(Yt=Jt[dt],[5,Ue(Yt)]):[3,4];case 2:Vn.sent(),Vn.label=3;case 3:return dt++,[3,1];case 4:return[2]}})})},ie.prototype.renderSolidBorder=function(fe,ue,Ue){return qt(this,void 0,void 0,function(){return Xe(this,function(je){return this.path(OA(Ue,ue)),this.ctx.fillStyle=Cs(fe),this.ctx.fill(),[2]})})},ie.prototype.renderDoubleBorder=function(fe,ue,Ue,je){return qt(this,void 0,void 0,function(){var dt,Jt;return Xe(this,function(Yt){switch(Yt.label){case 0:return ue<3?[4,this.renderSolidBorder(fe,Ue,je)]:[3,2];case 1:return Yt.sent(),[2];case 2:return dt=KA(je,Ue),this.path(dt),this.ctx.fillStyle=Cs(fe),this.ctx.fill(),Jt=WA(je,Ue),this.path(Jt),this.ctx.fill(),[2]}})})},ie.prototype.renderNodeBackgroundAndBorders=function(fe){return qt(this,void 0,void 0,function(){var ue,Ue,je,dt,Jt,Yt,Vn,er,sr=this;return Xe(this,function(Zr){switch(Zr.label){case 0:return this.applyEffects(fe.getEffects(2)),ue=fe.container.styles,Ue=!Ms(ue.backgroundColor)||ue.backgroundImage.length,je=[{style:ue.borderTopStyle,color:ue.borderTopColor,width:ue.borderTopWidth},{style:ue.borderRightStyle,color:ue.borderRightColor,width:ue.borderRightWidth},{style:ue.borderBottomStyle,color:ue.borderBottomColor,width:ue.borderBottomWidth},{style:ue.borderLeftStyle,color:ue.borderLeftColor,width:ue.borderLeftWidth}],dt=Qf(Au(ue.backgroundClip,0),fe.curves),Ue||ue.boxShadow.length?(this.ctx.save(),this.path(dt),this.ctx.clip(),Ms(ue.backgroundColor)||(this.ctx.fillStyle=Cs(ue.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(fe.container)]):[3,2];case 1:Zr.sent(),this.ctx.restore(),ue.boxShadow.slice(0).reverse().forEach(function(zi){sr.ctx.save();var pi=nl(fe.curves),Oi=zi.inset?0:ao,Wo=Yg(pi,-Oi+(zi.inset?1:-1)*zi.spread.number,(zi.inset?1:-1)*zi.spread.number,zi.spread.number*(zi.inset?-2:2),zi.spread.number*(zi.inset?-2:2));zi.inset?(sr.path(pi),sr.ctx.clip(),sr.mask(Wo)):(sr.mask(pi),sr.ctx.clip(),sr.path(Wo)),sr.ctx.shadowOffsetX=zi.offsetX.number+Oi,sr.ctx.shadowOffsetY=zi.offsetY.number,sr.ctx.shadowColor=Cs(zi.color),sr.ctx.shadowBlur=zi.blur.number,sr.ctx.fillStyle=zi.inset?Cs(zi.color):"rgba(0,0,0,1)",sr.ctx.fill(),sr.ctx.restore()}),Zr.label=2;case 2:Jt=0,Yt=0,Vn=je,Zr.label=3;case 3:return Yt<Vn.length?(er=Vn[Yt],er.style!==0&&!Ms(er.color)&&er.width>0?er.style!==2?[3,5]:[4,this.renderDashedDottedBorder(er.color,er.width,Jt,fe.curves,2)]:[3,11]):[3,13];case 4:return Zr.sent(),[3,11];case 5:return er.style!==3?[3,7]:[4,this.renderDashedDottedBorder(er.color,er.width,Jt,fe.curves,3)];case 6:return Zr.sent(),[3,11];case 7:return er.style!==4?[3,9]:[4,this.renderDoubleBorder(er.color,er.width,Jt,fe.curves)];case 8:return Zr.sent(),[3,11];case 9:return[4,this.renderSolidBorder(er.color,Jt,fe.curves)];case 10:Zr.sent(),Zr.label=11;case 11:Jt++,Zr.label=12;case 12:return Yt++,[3,3];case 13:return[2]}})})},ie.prototype.renderDashedDottedBorder=function(fe,ue,Ue,je,dt){return qt(this,void 0,void 0,function(){var Jt,Yt,Vn,er,sr,Zr,zi,pi,Oi,Wo,Gi,Wi,To,Xo,Fo,Mi,Fo,Mi;return Xe(this,function(Ba){return this.ctx.save(),Jt=Jg(je,Ue),Yt=OA(je,Ue),dt===2&&(this.path(Yt),this.ctx.clip()),rs(Yt[0])?(Vn=Yt[0].start.x,er=Yt[0].start.y):(Vn=Yt[0].x,er=Yt[0].y),rs(Yt[1])?(sr=Yt[1].end.x,Zr=Yt[1].end.y):(sr=Yt[1].x,Zr=Yt[1].y),Ue===0||Ue===2?zi=Math.abs(Vn-sr):zi=Math.abs(er-Zr),this.ctx.beginPath(),dt===3?this.formatPath(Jt):this.formatPath(Yt.slice(0,2)),pi=ue<3?ue*3:ue*2,Oi=ue<3?ue*2:ue,dt===3&&(pi=ue,Oi=ue),Wo=!0,zi<=pi*2?Wo=!1:zi<=pi*2+Oi?(Gi=zi/(2*pi+Oi),pi*=Gi,Oi*=Gi):(Wi=Math.floor((zi+Oi)/(pi+Oi)),To=(zi-Wi*pi)/(Wi-1),Xo=(zi-(Wi+1)*pi)/Wi,Oi=Xo<=0||Math.abs(Oi-To)<Math.abs(Oi-Xo)?To:Xo),Wo&&(dt===3?this.ctx.setLineDash([0,pi+Oi]):this.ctx.setLineDash([pi,Oi])),dt===3?(this.ctx.lineCap="round",this.ctx.lineWidth=ue):this.ctx.lineWidth=ue*2+1.1,this.ctx.strokeStyle=Cs(fe),this.ctx.stroke(),this.ctx.setLineDash([]),dt===2&&(rs(Yt[0])&&(Fo=Yt[3],Mi=Yt[0],this.ctx.beginPath(),this.formatPath([new Bi(Fo.end.x,Fo.end.y),new Bi(Mi.start.x,Mi.start.y)]),this.ctx.stroke()),rs(Yt[1])&&(Fo=Yt[1],Mi=Yt[2],this.ctx.beginPath(),this.formatPath([new Bi(Fo.end.x,Fo.end.y),new Bi(Mi.start.x,Mi.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},ie.prototype.render=function(fe){return qt(this,void 0,void 0,function(){var ue;return Xe(this,function(Ue){switch(Ue.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Cs(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),ue=zA(fe),[4,this.renderStack(ue)];case 1:return Ue.sent(),this.applyEffects([]),[2,this.canvas]}})})},ie}(Gc),bg=function(Ae){return Ae instanceof Bh||Ae instanceof xp?!0:Ae instanceof _c&&Ae.type!==Uu&&Ae.type!==Mc},Qf=function(Ae,ie){switch(Ae){case 0:return nl(ie);case 2:return Zs(ie);case 1:default:return Tf(ie)}},Ud=function(Ae){switch(Ae){case 1:return"center";case 2:return"right";case 0:default:return"left"}},$o=["-apple-system","system-ui"],Vc=function(Ae){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?Ae.filter(function(ie){return $o.indexOf(ie)===-1}):Ae},vl=function(Ae){pe(ie,Ae);function ie(fe,ue){var Ue=Ae.call(this,fe,ue)||this;return Ue.canvas=ue.canvas?ue.canvas:document.createElement("canvas"),Ue.ctx=Ue.canvas.getContext("2d"),Ue.options=ue,Ue.canvas.width=Math.floor(ue.width*ue.scale),Ue.canvas.height=Math.floor(ue.height*ue.scale),Ue.canvas.style.width=ue.width+"px",Ue.canvas.style.height=ue.height+"px",Ue.ctx.scale(Ue.options.scale,Ue.options.scale),Ue.ctx.translate(-ue.x,-ue.y),Ue.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+ue.width+"x"+ue.height+" at "+ue.x+","+ue.y+") with scale "+ue.scale),Ue}return ie.prototype.render=function(fe){return qt(this,void 0,void 0,function(){var ue,Ue;return Xe(this,function(je){switch(je.label){case 0:return ue=xf(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,fe),[4,tm(ue)];case 1:return Ue=je.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Cs(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(Ue,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},ie}(Gc),tm=function(Ae){return new Promise(function(ie,fe){var ue=new Image;ue.onload=function(){ie(ue)},ue.onerror=fe,ue.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(Ae))})},Tu=function(){function Ae(ie){var fe=ie.id,ue=ie.enabled;this.id=fe,this.enabled=ue,this.start=Date.now()}return Ae.prototype.debug=function(){for(var ie=[],fe=0;fe<arguments.length;fe++)ie[fe]=arguments[fe];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,Ht([this.id,this.getTime()+"ms"],ie)):this.info.apply(this,ie))},Ae.prototype.getTime=function(){return Date.now()-this.start},Ae.prototype.info=function(){for(var ie=[],fe=0;fe<arguments.length;fe++)ie[fe]=arguments[fe];this.enabled&&typeof window!="undefined"&&window.console&&typeof console.info=="function"&&console.info.apply(console,Ht([this.id,this.getTime()+"ms"],ie))},Ae.prototype.warn=function(){for(var ie=[],fe=0;fe<arguments.length;fe++)ie[fe]=arguments[fe];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,Ht([this.id,this.getTime()+"ms"],ie)):this.info.apply(this,ie))},Ae.prototype.error=function(){for(var ie=[],fe=0;fe<arguments.length;fe++)ie[fe]=arguments[fe];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.error=="function"?console.error.apply(console,Ht([this.id,this.getTime()+"ms"],ie)):this.info.apply(this,ie))},Ae.instances={},Ae}(),Hm=function(){function Ae(ie,fe){var ue;this.windowBounds=fe,this.instanceName="#"+Ae.instanceCount++,this.logger=new Tu({id:this.instanceName,enabled:ie.logging}),this.cache=(ue=ie.cache)!==null&&ue!==void 0?ue:new yo(this,ie)}return Ae.instanceCount=1,Ae}(),Rm=function(Ae,ie){return ie===void 0&&(ie={}),jm(Ae,ie)};typeof window!="undefined"&&Ji.setContext(window);var jm=function(Ae,ie){return qt(void 0,void 0,void 0,function(){var fe,ue,Ue,je,dt,Jt,Yt,Vn,er,sr,Zr,zi,pi,Oi,Wo,Gi,Wi,To,Xo,Fo,Ba,Mi,Ba,ia,Qo,Li,yl,Pl,Ja,bA,lc,GA,rl,Mf,Kl,uc,_f,Zc,Qu,$c;return Xe(this,function(cc){switch(cc.label){case 0:if(!Ae||typeof Ae!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(fe=Ae.ownerDocument,!fe)throw new Error("Element is not attached to a Document");if(ue=fe.defaultView,!ue)throw new Error("Document is not attached to a Window");return Ue={allowTaint:(ia=ie.allowTaint)!==null&&ia!==void 0?ia:!1,imageTimeout:(Qo=ie.imageTimeout)!==null&&Qo!==void 0?Qo:15e3,proxy:ie.proxy,useCORS:(Li=ie.useCORS)!==null&&Li!==void 0?Li:!1},je=oe({logging:(yl=ie.logging)!==null&&yl!==void 0?yl:!0,cache:ie.cache},Ue),dt={windowWidth:(Pl=ie.windowWidth)!==null&&Pl!==void 0?Pl:ue.innerWidth,windowHeight:(Ja=ie.windowHeight)!==null&&Ja!==void 0?Ja:ue.innerHeight,scrollX:(bA=ie.scrollX)!==null&&bA!==void 0?bA:ue.pageXOffset,scrollY:(lc=ie.scrollY)!==null&&lc!==void 0?lc:ue.pageYOffset},Jt=new rt(dt.scrollX,dt.scrollY,dt.windowWidth,dt.windowHeight),Yt=new Hm(je,Jt),Vn=(GA=ie.foreignObjectRendering)!==null&&GA!==void 0?GA:!1,er={allowTaint:(rl=ie.allowTaint)!==null&&rl!==void 0?rl:!1,onclone:ie.onclone,ignoreElements:ie.ignoreElements,inlineImages:Vn,copyStyles:Vn},Yt.logger.debug("Starting document clone with size "+Jt.width+"x"+Jt.height+" scrolled to "+-Jt.left+","+-Jt.top),sr=new ne(Yt,Ae,er),Zr=sr.clonedReferenceElement,Zr?[4,sr.toIFrame(fe,Jt)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return zi=cc.sent(),pi=$a(Zr)||pg(Zr)?Dt(Zr.ownerDocument):at(Yt,Zr),Oi=pi.width,Wo=pi.height,Gi=pi.left,Wi=pi.top,To=js(Yt,Zr,ie.backgroundColor),Xo={canvas:ie.canvas,backgroundColor:To,scale:(Kl=(Mf=ie.scale)!==null&&Mf!==void 0?Mf:ue.devicePixelRatio)!==null&&Kl!==void 0?Kl:1,x:((uc=ie.x)!==null&&uc!==void 0?uc:0)+Gi,y:((_f=ie.y)!==null&&_f!==void 0?_f:0)+Wi,width:(Zc=ie.width)!==null&&Zc!==void 0?Zc:Math.ceil(Oi),height:(Qu=ie.height)!==null&&Qu!==void 0?Qu:Math.ceil(Wo)},Vn?(Yt.logger.debug("Document cloned, using foreign object rendering"),Ba=new vl(Yt,Xo),[4,Ba.render(Zr)]):[3,3];case 2:return Fo=cc.sent(),[3,5];case 3:return Yt.logger.debug("Document cloned, element located at "+Gi+","+Wi+" with size "+Oi+"x"+Wo+" using computed rendering"),Yt.logger.debug("Starting DOM parsing"),Mi=Fp(Yt,Zr),To===Mi.styles.backgroundColor&&(Mi.styles.backgroundColor=xa.TRANSPARENT),Yt.logger.debug("Starting renderer for element at "+Xo.x+","+Xo.y+" with size "+Xo.width+"x"+Xo.height),Ba=new Ds(Yt,Xo),[4,Ba.render(Mi)];case 4:Fo=cc.sent(),cc.label=5;case 5:return(!(($c=ie.removeContainer)!==null&&$c!==void 0)||$c)&&(ne.destroy(zi)||Yt.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),Yt.logger.debug("Finished rendering"),[2,Fo]}})})},js=function(Ae,ie,fe){var ue=ie.ownerDocument,Ue=ue.documentElement?Lo(Ae,getComputedStyle(ue.documentElement).backgroundColor):xa.TRANSPARENT,je=ue.body?Lo(Ae,getComputedStyle(ue.body).backgroundColor):xa.TRANSPARENT,dt=typeof fe=="string"?Lo(Ae,fe):fe===null?xa.TRANSPARENT:4294967295;return ie===ue.documentElement?Ms(Ue)?Ms(je)?dt:je:Ue:dt};return Rm})},44164:function(gr,zn,pe){var oe=pe(97671);(function(Xe,Ht){gr.exports=Ht(pe(53307),pe(64270))})(self,function(qt,Xe){return function(){var Ht={"./src/plugin/hyperlinks.js":function(Me,Pe,ce){"use strict";ce.r(Pe);var ke=ce("./node_modules/core-js/modules/web.dom-collections.for-each.js"),Le=ce.n(ke),Ve=ce("./node_modules/core-js/modules/es.string.link.js"),Ke=ce.n(Ve),He=ce("./src/worker.js"),Ge=ce("./src/utils.js"),ze=[],qe={toContainer:He.default.prototype.toContainer,toPdf:He.default.prototype.toPdf};He.default.prototype.toContainer=function(){return qe.toContainer.call(this).then(function(){if(this.opt.enableLinks){var vt=this.prop.container,yt=vt.querySelectorAll("a"),Nt=(0,Ge.unitConvert)(vt.getBoundingClientRect(),this.prop.pageSize.k);ze=[],Array.prototype.forEach.call(yt,function(Et){for(var pn=Et.getClientRects(),Pt=0;Pt<pn.length;Pt++){var St=(0,Ge.unitConvert)(pn[Pt],this.prop.pageSize.k);St.left-=Nt.left,St.top-=Nt.top;var jt=Math.floor(St.top/this.prop.pageSize.inner.height)+1,Je=this.opt.margin[0]+St.top%this.prop.pageSize.inner.height,wt=this.opt.margin[1]+St.left;ze.push({page:jt,top:Je,left:wt,clientRect:St,link:Et})}},this)}})},He.default.prototype.toPdf=function(){return qe.toPdf.call(this).then(function(){if(this.opt.enableLinks){ze.forEach(function(yt){this.prop.pdf.setPage(yt.page),this.prop.pdf.link(yt.left,yt.top,yt.clientRect.width,yt.clientRect.height,{url:yt.link.href})},this);var vt=this.prop.pdf.internal.getNumberOfPages();this.prop.pdf.setPage(vt)}})}},"./src/plugin/jspdf-plugin.js":function(Me,Pe,ce){"use strict";ce.r(Pe);var ke=ce("./node_modules/core-js/modules/es.symbol.js"),Le=ce.n(ke),Ve=ce("./node_modules/core-js/modules/es.symbol.description.js"),Ke=ce.n(Ve),He=ce("./node_modules/core-js/modules/es.object.to-string.js"),Ge=ce.n(He),ze=ce("./node_modules/core-js/modules/es.symbol.iterator.js"),qe=ce.n(ze),pt=ce("./node_modules/core-js/modules/es.array.iterator.js"),Bt=ce.n(pt),vt=ce("./node_modules/core-js/modules/es.string.iterator.js"),yt=ce.n(vt),Nt=ce("./node_modules/core-js/modules/web.dom-collections.iterator.js"),Et=ce.n(Nt),pn=ce("jspdf"),Pt=ce.n(pn);function St(jt){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?St=function(wt){return typeof wt}:St=function(wt){return wt&&typeof Symbol=="function"&&wt.constructor===Symbol&&wt!==Symbol.prototype?"symbol":typeof wt},St(jt)}pn.jsPDF.getPageSize=function(jt,Je,wt){if(St(jt)==="object"){var lt=jt;jt=lt.orientation,Je=lt.unit||Je,wt=lt.format||wt}Je=Je||"mm",wt=wt||"a4",jt=(""+(jt||"P")).toLowerCase();var Fe=(""+wt).toLowerCase(),Zt={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(Je){case"pt":var $e=1;break;case"mm":var $e=72/25.4;break;case"cm":var $e=72/2.54;break;case"in":var $e=72;break;case"px":var $e=72/96;break;case"pc":var $e=12;break;case"em":var $e=12;break;case"ex":var $e=6;break;default:throw"Invalid unit: "+Je}if(Zt.hasOwnProperty(Fe))var At=Zt[Fe][1]/$e,Qt=Zt[Fe][0]/$e;else try{var At=wt[1],Qt=wt[0]}catch(It){throw new Error("Invalid format: "+wt)}if(jt==="p"||jt==="portrait"){if(jt="p",Qt>At){var Te=Qt;Qt=At,At=Te}}else if(jt==="l"||jt==="landscape"){if(jt="l",At>Qt){var Te=Qt;Qt=At,At=Te}}else throw"Invalid orientation: "+jt;var xe={width:Qt,height:At,unit:Je,k:$e};return xe},Pe.default=pn.jsPDF},"./src/plugin/pagebreaks.js":function(Me,Pe,ce){"use strict";ce.r(Pe);var ke=ce("./node_modules/core-js/modules/es.array.concat.js"),Le=ce.n(ke),Ve=ce("./node_modules/core-js/modules/es.array.slice.js"),Ke=ce.n(Ve),He=ce("./node_modules/core-js/modules/es.array.join.js"),Ge=ce.n(He),ze=ce("./node_modules/core-js/modules/web.dom-collections.for-each.js"),qe=ce.n(ze),pt=ce("./node_modules/core-js/modules/es.object.keys.js"),Bt=ce.n(pt),vt=ce("./src/worker.js"),yt=ce("./src/utils.js"),Nt={toContainer:vt.default.prototype.toContainer};vt.default.template.opt.pagebreak={mode:["css","legacy"],before:[],after:[],avoid:[]},vt.default.prototype.toContainer=function(){return Nt.toContainer.call(this).then(function(){var Pt=this.prop.container,St=this.prop.pageSize.inner.px.height,jt=[].concat(this.opt.pagebreak.mode),Je={avoidAll:jt.indexOf("avoid-all")!==-1,css:jt.indexOf("css")!==-1,legacy:jt.indexOf("legacy")!==-1},wt={},lt=this;["before","after","avoid"].forEach(function($e){var At=Je.avoidAll&&$e==="avoid";wt[$e]=At?[]:[].concat(lt.opt.pagebreak[$e]||[]),wt[$e].length>0&&(wt[$e]=Array.prototype.slice.call(Pt.querySelectorAll(wt[$e].join(", "))))});var Fe=Pt.querySelectorAll(".html2pdf__page-break");Fe=Array.prototype.slice.call(Fe);var Zt=Pt.querySelectorAll("*");Array.prototype.forEach.call(Zt,function(At){var Qt={before:!1,after:Je.legacy&&Fe.indexOf(At)!==-1,avoid:Je.avoidAll};if(Je.css){var Te=window.getComputedStyle(At),xe=["always","page","left","right"],It=["avoid","avoid-page"];Qt={before:Qt.before||xe.indexOf(Te.breakBefore||Te.pageBreakBefore)!==-1,after:Qt.after||xe.indexOf(Te.breakAfter||Te.pageBreakAfter)!==-1,avoid:Qt.avoid||It.indexOf(Te.breakInside||Te.pageBreakInside)!==-1}}Object.keys(Qt).forEach(function(In){Qt[In]=Qt[In]||wt[In].indexOf(At)!==-1});var Cn=At.getBoundingClientRect();if(Qt.avoid&&!Qt.before){var mn=Math.floor(Cn.top/St),Ze=Math.floor(Cn.bottom/St),Ct=Math.abs(Cn.bottom-Cn.top)/St;Ze!==mn&&Ct<=1&&(Qt.before=!0)}if(Qt.before){var _t=(0,yt.createElement)("div",{style:{display:"block",height:St-Cn.top%St+"px"}});At.parentNode.insertBefore(_t,At)}if(Qt.after){var _t=(0,yt.createElement)("div",{style:{display:"block",height:St-Cn.bottom%St+"px"}});At.parentNode.insertBefore(_t,At.nextSibling)}})})}},"./src/utils.js":function(Me,Pe,ce){"use strict";ce.r(Pe),ce.d(Pe,{objType:function(){return jt},createElement:function(){return Je},cloneNode:function(){return wt},unitConvert:function(){return lt},toPx:function(){return Fe}});var ke=ce("./node_modules/core-js/modules/es.number.constructor.js"),Le=ce.n(ke),Ve=ce("./node_modules/core-js/modules/es.symbol.js"),Ke=ce.n(Ve),He=ce("./node_modules/core-js/modules/es.symbol.description.js"),Ge=ce.n(He),ze=ce("./node_modules/core-js/modules/es.object.to-string.js"),qe=ce.n(ze),pt=ce("./node_modules/core-js/modules/es.symbol.iterator.js"),Bt=ce.n(pt),vt=ce("./node_modules/core-js/modules/es.array.iterator.js"),yt=ce.n(vt),Nt=ce("./node_modules/core-js/modules/es.string.iterator.js"),Et=ce.n(Nt),pn=ce("./node_modules/core-js/modules/web.dom-collections.iterator.js"),Pt=ce.n(pn);function St(Zt){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?St=function(At){return typeof At}:St=function(At){return At&&typeof Symbol=="function"&&At.constructor===Symbol&&At!==Symbol.prototype?"symbol":typeof At},St(Zt)}var jt=function($e){var At=St($e);return At==="undefined"?"undefined":At==="string"||$e instanceof String?"string":At==="number"||$e instanceof Number?"number":At==="function"||$e instanceof Function?"function":$e&&$e.constructor===Array?"array":$e&&$e.nodeType===1?"element":At==="object"?"object":"unknown"},Je=function($e,At){var Qt=document.createElement($e);if(At.className&&(Qt.className=At.className),At.innerHTML){Qt.innerHTML=At.innerHTML;for(var Te=Qt.getElementsByTagName("script"),xe=Te.length;xe-- >0;null)Te[xe].parentNode.removeChild(Te[xe])}for(var It in At.style)Qt.style[It]=At.style[It];return Qt},wt=function Zt($e,At){for(var Qt=$e.nodeType===3?document.createTextNode($e.nodeValue):$e.cloneNode(!1),Te=$e.firstChild;Te;Te=Te.nextSibling)(At===!0||Te.nodeType!==1||Te.nodeName!=="SCRIPT")&&Qt.appendChild(Zt(Te,At));return $e.nodeType===1&&($e.nodeName==="CANVAS"?(Qt.width=$e.width,Qt.height=$e.height,Qt.getContext("2d").drawImage($e,0,0)):($e.nodeName==="TEXTAREA"||$e.nodeName==="SELECT")&&(Qt.value=$e.value),Qt.addEventListener("load",function(){Qt.scrollTop=$e.scrollTop,Qt.scrollLeft=$e.scrollLeft},!0)),Qt},lt=function($e,At){if(jt($e)==="number")return $e*72/96/At;var Qt={};for(var Te in $e)Qt[Te]=$e[Te]*72/96/At;return Qt},Fe=function($e,At){return Math.floor($e*At/72*96)}},"./src/worker.js":function(Me,Pe,ce){"use strict";ce.r(Pe);var ke=ce("./node_modules/core-js/modules/es.object.assign.js"),Le=ce.n(ke),Ve=ce("./node_modules/core-js/modules/es.array.map.js"),Ke=ce.n(Ve),He=ce("./node_modules/core-js/modules/es.object.keys.js"),Ge=ce.n(He),ze=ce("./node_modules/core-js/modules/es.array.concat.js"),qe=ce.n(ze),pt=ce("./node_modules/core-js/modules/es.object.to-string.js"),Bt=ce.n(pt),vt=ce("./node_modules/core-js/modules/es.regexp.to-string.js"),yt=ce.n(vt),Nt=ce("./node_modules/core-js/modules/es.function.name.js"),Et=ce.n(Nt),pn=ce("./node_modules/core-js/modules/web.dom-collections.for-each.js"),Pt=ce.n(pn),St=ce("jspdf"),jt=ce.n(St),Je=ce("html2canvas"),wt=ce.n(Je),lt=ce("./src/utils.js"),Fe=ce("./node_modules/es6-promise/dist/es6-promise.js"),Zt=ce.n(Fe),$e=Zt().Promise,At=function Qt(Te){var xe=Object.assign(Qt.convert($e.resolve()),JSON.parse(JSON.stringify(Qt.template))),It=Qt.convert($e.resolve(),xe);return It=It.setProgress(1,Qt,1,[Qt]),It=It.set(Te),It};At.prototype=Object.create($e.prototype),At.prototype.constructor=At,At.convert=function(Te,xe){return Te.__proto__=xe||At.prototype,Te},At.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],image:{type:"jpeg",quality:.95},enableLinks:!0,html2canvas:{},jsPDF:{}}},At.prototype.from=function(Te,xe){function It(Cn){switch((0,lt.objType)(Cn)){case"string":return"string";case"element":return Cn.nodeName.toLowerCase&&Cn.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}return this.then(function(){switch(xe=xe||It(Te),xe){case"string":return this.set({src:(0,lt.createElement)("div",{innerHTML:Te})});case"element":return this.set({src:Te});case"canvas":return this.set({canvas:Te});case"img":return this.set({img:Te});default:return this.error("Unknown source type.")}})},At.prototype.to=function(Te){switch(Te){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},At.prototype.toContainer=function(){var Te=[function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(Te).then(function(){var It={position:"fixed",overflow:"hidden",zIndex:1e3,left:0,right:0,bottom:0,top:0,backgroundColor:"rgba(0,0,0,0.8)"},Cn={position:"absolute",width:this.prop.pageSize.inner.width+this.prop.pageSize.unit,left:0,right:0,top:0,height:"auto",margin:"auto",backgroundColor:"white"};It.opacity=0;var mn=(0,lt.cloneNode)(this.prop.src,this.opt.html2canvas.javascriptEnabled);this.prop.overlay=(0,lt.createElement)("div",{className:"html2pdf__overlay",style:It}),this.prop.container=(0,lt.createElement)("div",{className:"html2pdf__container",style:Cn}),this.prop.container.appendChild(mn),this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay)})},At.prototype.toCanvas=function(){var Te=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(Te).then(function(){var It=Object.assign({},this.opt.html2canvas);return delete It.onrendered,Je(this.prop.container,It)}).then(function(It){var Cn=this.opt.html2canvas.onrendered||function(){};Cn(It),this.prop.canvas=It,document.body.removeChild(this.prop.overlay)})},At.prototype.toImg=function(){var Te=[function(){return this.prop.canvas||this.toCanvas()}];return this.thenList(Te).then(function(){var It=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=It})},At.prototype.toPdf=function(){var Te=[function(){return this.prop.canvas||this.toCanvas()},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(Te).then(function(){var It=this.prop.canvas,Cn=this.opt,mn=It.height,Ze=Math.floor(It.width*this.prop.pageSize.inner.ratio),Ct=Math.ceil(mn/Ze),_t=this.prop.pageSize.inner.height,In=document.createElement("canvas"),xn=In.getContext("2d");In.width=It.width,In.height=Ze,this.prop.pdf=this.prop.pdf||new St.jsPDF(Cn.jsPDF);for(var Wn=0;Wn<Ct;Wn++){Wn===Ct-1&&mn%Ze!==0&&(In.height=mn%Ze,_t=In.height*this.prop.pageSize.inner.width/In.width);var ct=In.width,En=In.height;xn.fillStyle="white",xn.fillRect(0,0,ct,En),xn.drawImage(It,0,Wn*Ze,ct,En,0,0,ct,En),Wn&&this.prop.pdf.addPage();var Rt=In.toDataURL("image/"+Cn.image.type,Cn.image.quality);this.prop.pdf.addImage(Rt,Cn.image.type,Cn.margin[1],Cn.margin[0],this.prop.pageSize.inner.width,_t)}})},At.prototype.output=function(Te,xe,It){return It=It||"pdf",It.toLowerCase()==="img"||It.toLowerCase()==="image"?this.outputImg(Te,xe):this.outputPdf(Te,xe)},At.prototype.outputPdf=function(Te,xe){var It=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(It).then(function(){return this.prop.pdf.output(Te,xe)})},At.prototype.outputImg=function(Te,xe){var It=[function(){return this.prop.img||this.toImg()}];return this.thenList(It).then(function(){switch(Te){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+Te+'" is not supported.'}})},At.prototype.save=function(Te){var xe=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(xe).set(Te?{filename:Te}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},At.prototype.set=function(Te){if((0,lt.objType)(Te)!=="object")return this;var xe=Object.keys(Te||{}).map(function(It){switch(It){case"margin":return this.setMargin.bind(this,Te.margin);case"jsPDF":return function(){return this.opt.jsPDF=Te.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,Te.pageSize);default:return It in At.template.prop?function(){this.prop[It]=Te[It]}:function(){this.opt[It]=Te[It]}}},this);return this.then(function(){return this.thenList(xe)})},At.prototype.get=function(Te,xe){return this.then(function(){var Cn=Te in At.template.prop?this.prop[Te]:this.opt[Te];return xe?xe(Cn):Cn})},At.prototype.setMargin=function(Te){return this.then(function(){switch((0,lt.objType)(Te)){case"number":Te=[Te,Te,Te,Te];case"array":if(Te.length===2&&(Te=[Te[0],Te[1],Te[0],Te[1]]),Te.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=Te}).then(this.setPageSize)},At.prototype.setPageSize=function(Te){return this.then(function(){Te=Te||St.jsPDF.getPageSize(this.opt.jsPDF),Te.hasOwnProperty("inner")||(Te.inner={width:Te.width-this.opt.margin[1]-this.opt.margin[3],height:Te.height-this.opt.margin[0]-this.opt.margin[2]},Te.inner.px={width:(0,lt.toPx)(Te.inner.width,Te.k),height:(0,lt.toPx)(Te.inner.height,Te.k)},Te.inner.ratio=Te.inner.height/Te.inner.width),this.prop.pageSize=Te})},At.prototype.setProgress=function(Te,xe,It,Cn){return Te!=null&&(this.progress.val=Te),xe!=null&&(this.progress.state=xe),It!=null&&(this.progress.n=It),Cn!=null&&(this.progress.stack=Cn),this.progress.ratio=this.progress.val/this.progress.state,this},At.prototype.updateProgress=function(Te,xe,It,Cn){return this.setProgress(Te?this.progress.val+Te:null,xe||null,It?this.progress.n+It:null,Cn?this.progress.stack.concat(Cn):null)},At.prototype.then=function(Te,xe){var It=this;return this.thenCore(Te,xe,function(mn,Ze){return It.updateProgress(null,null,1,[mn]),$e.prototype.then.call(this,function(_t){return It.updateProgress(null,mn),_t}).then(mn,Ze).then(function(_t){return It.updateProgress(1),_t})})},At.prototype.thenCore=function(Te,xe,It){It=It||$e.prototype.then;var Cn=this;Te&&(Te=Te.bind(Cn)),xe&&(xe=xe.bind(Cn));var mn=$e.toString().indexOf("[native code]")!==-1&&$e.name==="Promise",Ze=mn?Cn:At.convert(Object.assign({},Cn),$e.prototype),Ct=It.call(Ze,Te,xe);return At.convert(Ct,Cn.__proto__)},At.prototype.thenExternal=function(Te,xe){return $e.prototype.then.call(this,Te,xe)},At.prototype.thenList=function(Te){var xe=this;return Te.forEach(function(Cn){xe=xe.thenCore(Cn)}),xe},At.prototype.catch=function(Qt){Qt&&(Qt=Qt.bind(this));var Te=$e.prototype.catch.call(this,Qt);return At.convert(Te,this)},At.prototype.catchExternal=function(Te){return $e.prototype.catch.call(this,Te)},At.prototype.error=function(Te){return this.then(function(){throw new Error(Te)})},At.prototype.using=At.prototype.set,At.prototype.saveAs=At.prototype.save,At.prototype.export=At.prototype.output,At.prototype.run=At.prototype.then,Pe.default=At},"./node_modules/core-js/internals/a-function.js":function(Me){Me.exports=function(Pe){if(typeof Pe!="function")throw TypeError(String(Pe)+" is not a function");return Pe}},"./node_modules/core-js/internals/a-possible-prototype.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/is-object.js");Me.exports=function(Le){if(!ke(Le)&&Le!==null)throw TypeError("Can't set "+String(Le)+" as a prototype");return Le}},"./node_modules/core-js/internals/add-to-unscopables.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/well-known-symbol.js"),Le=ce("./node_modules/core-js/internals/object-create.js"),Ve=ce("./node_modules/core-js/internals/object-define-property.js"),Ke=ke("unscopables"),He=Array.prototype;He[Ke]==null&&Ve.f(He,Ke,{configurable:!0,value:Le(null)}),Me.exports=function(Ge){He[Ke][Ge]=!0}},"./node_modules/core-js/internals/an-object.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/is-object.js");Me.exports=function(Le){if(!ke(Le))throw TypeError(String(Le)+" is not an object");return Le}},"./node_modules/core-js/internals/array-for-each.js":function(Me,Pe,ce){"use strict";var ke=ce("./node_modules/core-js/internals/array-iteration.js").forEach,Le=ce("./node_modules/core-js/internals/array-method-is-strict.js"),Ve=Le("forEach");Me.exports=Ve?[].forEach:function(He){return ke(this,He,arguments.length>1?arguments[1]:void 0)}},"./node_modules/core-js/internals/array-includes.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/to-indexed-object.js"),Le=ce("./node_modules/core-js/internals/to-length.js"),Ve=ce("./node_modules/core-js/internals/to-absolute-index.js"),Ke=function(He){return function(Ge,ze,qe){var pt=ke(Ge),Bt=Le(pt.length),vt=Ve(qe,Bt),yt;if(He&&ze!=ze){for(;Bt>vt;)if(yt=pt[vt++],yt!=yt)return!0}else for(;Bt>vt;vt++)if((He||vt in pt)&&pt[vt]===ze)return He||vt||0;return!He&&-1}};Me.exports={includes:Ke(!0),indexOf:Ke(!1)}},"./node_modules/core-js/internals/array-iteration.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/function-bind-context.js"),Le=ce("./node_modules/core-js/internals/indexed-object.js"),Ve=ce("./node_modules/core-js/internals/to-object.js"),Ke=ce("./node_modules/core-js/internals/to-length.js"),He=ce("./node_modules/core-js/internals/array-species-create.js"),Ge=[].push,ze=function(qe){var pt=qe==1,Bt=qe==2,vt=qe==3,yt=qe==4,Nt=qe==6,Et=qe==7,pn=qe==5||Nt;return function(Pt,St,jt,Je){for(var wt=Ve(Pt),lt=Le(wt),Fe=ke(St,jt,3),Zt=Ke(lt.length),$e=0,At=Je||He,Qt=pt?At(Pt,Zt):Bt||Et?At(Pt,0):void 0,Te,xe;Zt>$e;$e++)if((pn||$e in lt)&&(Te=lt[$e],xe=Fe(Te,$e,wt),qe))if(pt)Qt[$e]=xe;else if(xe)switch(qe){case 3:return!0;case 5:return Te;case 6:return $e;case 2:Ge.call(Qt,Te)}else switch(qe){case 4:return!1;case 7:Ge.call(Qt,Te)}return Nt?-1:vt||yt?yt:Qt}};Me.exports={forEach:ze(0),map:ze(1),filter:ze(2),some:ze(3),every:ze(4),find:ze(5),findIndex:ze(6),filterReject:ze(7)}},"./node_modules/core-js/internals/array-method-has-species-support.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/fails.js"),Le=ce("./node_modules/core-js/internals/well-known-symbol.js"),Ve=ce("./node_modules/core-js/internals/engine-v8-version.js"),Ke=Le("species");Me.exports=function(He){return Ve>=51||!ke(function(){var Ge=[],ze=Ge.constructor={};return ze[Ke]=function(){return{foo:1}},Ge[He](Boolean).foo!==1})}},"./node_modules/core-js/internals/array-method-is-strict.js":function(Me,Pe,ce){"use strict";var ke=ce("./node_modules/core-js/internals/fails.js");Me.exports=function(Le,Ve){var Ke=[][Le];return!!Ke&&ke(function(){Ke.call(null,Ve||function(){throw 1},1)})}},"./node_modules/core-js/internals/array-species-constructor.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/is-object.js"),Le=ce("./node_modules/core-js/internals/is-array.js"),Ve=ce("./node_modules/core-js/internals/well-known-symbol.js"),Ke=Ve("species");Me.exports=function(He){var Ge;return Le(He)&&(Ge=He.constructor,typeof Ge=="function"&&(Ge===Array||Le(Ge.prototype))?Ge=void 0:ke(Ge)&&(Ge=Ge[Ke],Ge===null&&(Ge=void 0))),Ge===void 0?Array:Ge}},"./node_modules/core-js/internals/array-species-create.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/array-species-constructor.js");Me.exports=function(Le,Ve){return new(ke(Le))(Ve===0?0:Ve)}},"./node_modules/core-js/internals/classof-raw.js":function(Me){var Pe={}.toString;Me.exports=function(ce){return Pe.call(ce).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/to-string-tag-support.js"),Le=ce("./node_modules/core-js/internals/classof-raw.js"),Ve=ce("./node_modules/core-js/internals/well-known-symbol.js"),Ke=Ve("toStringTag"),He=Le(function(){return arguments}())=="Arguments",Ge=function(ze,qe){try{return ze[qe]}catch(pt){}};Me.exports=ke?Le:function(ze){var qe,pt,Bt;return ze===void 0?"Undefined":ze===null?"Null":typeof(pt=Ge(qe=Object(ze),Ke))=="string"?pt:He?Le(qe):(Bt=Le(qe))=="Object"&&typeof qe.callee=="function"?"Arguments":Bt}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/has.js"),Le=ce("./node_modules/core-js/internals/own-keys.js"),Ve=ce("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),Ke=ce("./node_modules/core-js/internals/object-define-property.js");Me.exports=function(He,Ge){for(var ze=Le(Ge),qe=Ke.f,pt=Ve.f,Bt=0;Bt<ze.length;Bt++){var vt=ze[Bt];ke(He,vt)||qe(He,vt,pt(Ge,vt))}}},"./node_modules/core-js/internals/correct-prototype-getter.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/fails.js");Me.exports=!ke(function(){function Le(){}return Le.prototype.constructor=null,Object.getPrototypeOf(new Le)!==Le.prototype})},"./node_modules/core-js/internals/create-html.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/require-object-coercible.js"),Le=ce("./node_modules/core-js/internals/to-string.js"),Ve=/"/g;Me.exports=function(Ke,He,Ge,ze){var qe=Le(ke(Ke)),pt="<"+He;return Ge!==""&&(pt+=" "+Ge+'="'+Le(ze).replace(Ve,""")+'"'),pt+">"+qe+"</"+He+">"}},"./node_modules/core-js/internals/create-iterator-constructor.js":function(Me,Pe,ce){"use strict";var ke=ce("./node_modules/core-js/internals/iterators-core.js").IteratorPrototype,Le=ce("./node_modules/core-js/internals/object-create.js"),Ve=ce("./node_modules/core-js/internals/create-property-descriptor.js"),Ke=ce("./node_modules/core-js/internals/set-to-string-tag.js"),He=ce("./node_modules/core-js/internals/iterators.js"),Ge=function(){return this};Me.exports=function(ze,qe,pt){var Bt=qe+" Iterator";return ze.prototype=Le(ke,{next:Ve(1,pt)}),Ke(ze,Bt,!1,!0),He[Bt]=Ge,ze}},"./node_modules/core-js/internals/create-non-enumerable-property.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/descriptors.js"),Le=ce("./node_modules/core-js/internals/object-define-property.js"),Ve=ce("./node_modules/core-js/internals/create-property-descriptor.js");Me.exports=ke?function(Ke,He,Ge){return Le.f(Ke,He,Ve(1,Ge))}:function(Ke,He,Ge){return Ke[He]=Ge,Ke}},"./node_modules/core-js/internals/create-property-descriptor.js":function(Me){Me.exports=function(Pe,ce){return{enumerable:!(Pe&1),configurable:!(Pe&2),writable:!(Pe&4),value:ce}}},"./node_modules/core-js/internals/create-property.js":function(Me,Pe,ce){"use strict";var ke=ce("./node_modules/core-js/internals/to-property-key.js"),Le=ce("./node_modules/core-js/internals/object-define-property.js"),Ve=ce("./node_modules/core-js/internals/create-property-descriptor.js");Me.exports=function(Ke,He,Ge){var ze=ke(He);ze in Ke?Le.f(Ke,ze,Ve(0,Ge)):Ke[ze]=Ge}},"./node_modules/core-js/internals/define-iterator.js":function(Me,Pe,ce){"use strict";var ke=ce("./node_modules/core-js/internals/export.js"),Le=ce("./node_modules/core-js/internals/create-iterator-constructor.js"),Ve=ce("./node_modules/core-js/internals/object-get-prototype-of.js"),Ke=ce("./node_modules/core-js/internals/object-set-prototype-of.js"),He=ce("./node_modules/core-js/internals/set-to-string-tag.js"),Ge=ce("./node_modules/core-js/internals/create-non-enumerable-property.js"),ze=ce("./node_modules/core-js/internals/redefine.js"),qe=ce("./node_modules/core-js/internals/well-known-symbol.js"),pt=ce("./node_modules/core-js/internals/is-pure.js"),Bt=ce("./node_modules/core-js/internals/iterators.js"),vt=ce("./node_modules/core-js/internals/iterators-core.js"),yt=vt.IteratorPrototype,Nt=vt.BUGGY_SAFARI_ITERATORS,Et=qe("iterator"),pn="keys",Pt="values",St="entries",jt=function(){return this};Me.exports=function(Je,wt,lt,Fe,Zt,$e,At){Le(lt,wt,Fe);var Qt=function(xn){if(xn===Zt&&mn)return mn;if(!Nt&&xn in It)return It[xn];switch(xn){case pn:return function(){return new lt(this,xn)};case Pt:return function(){return new lt(this,xn)};case St:return function(){return new lt(this,xn)}}return function(){return new lt(this)}},Te=wt+" Iterator",xe=!1,It=Je.prototype,Cn=It[Et]||It["@@iterator"]||Zt&&It[Zt],mn=!Nt&&Cn||Qt(Zt),Ze=wt=="Array"&&It.entries||Cn,Ct,_t,In;if(Ze&&(Ct=Ve(Ze.call(new Je)),yt!==Object.prototype&&Ct.next&&(!pt&&Ve(Ct)!==yt&&(Ke?Ke(Ct,yt):typeof Ct[Et]!="function"&&Ge(Ct,Et,jt)),He(Ct,Te,!0,!0),pt&&(Bt[Te]=jt))),Zt==Pt&&Cn&&Cn.name!==Pt&&(xe=!0,mn=function(){return Cn.call(this)}),(!pt||At)&&It[Et]!==mn&&Ge(It,Et,mn),Bt[wt]=mn,Zt)if(_t={values:Qt(Pt),keys:$e?mn:Qt(pn),entries:Qt(St)},At)for(In in _t)(Nt||xe||!(In in It))&&ze(It,In,_t[In]);else ke({target:wt,proto:!0,forced:Nt||xe},_t);return _t}},"./node_modules/core-js/internals/define-well-known-symbol.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/path.js"),Le=ce("./node_modules/core-js/internals/has.js"),Ve=ce("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),Ke=ce("./node_modules/core-js/internals/object-define-property.js").f;Me.exports=function(He){var Ge=ke.Symbol||(ke.Symbol={});Le(Ge,He)||Ke(Ge,He,{value:Ve.f(He)})}},"./node_modules/core-js/internals/descriptors.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/fails.js");Me.exports=!ke(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},"./node_modules/core-js/internals/document-create-element.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/global.js"),Le=ce("./node_modules/core-js/internals/is-object.js"),Ve=ke.document,Ke=Le(Ve)&&Le(Ve.createElement);Me.exports=function(He){return Ke?Ve.createElement(He):{}}},"./node_modules/core-js/internals/dom-iterables.js":function(Me){Me.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},"./node_modules/core-js/internals/engine-user-agent.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/get-built-in.js");Me.exports=ke("navigator","userAgent")||""},"./node_modules/core-js/internals/engine-v8-version.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/global.js"),Le=ce("./node_modules/core-js/internals/engine-user-agent.js"),Ve=ke.process,Ke=ke.Deno,He=Ve&&Ve.versions||Ke&&Ke.version,Ge=He&&He.v8,ze,qe;Ge?(ze=Ge.split("."),qe=ze[0]<4?1:ze[0]+ze[1]):Le&&(ze=Le.match(/Edge\/(\d+)/),(!ze||ze[1]>=74)&&(ze=Le.match(/Chrome\/(\d+)/),ze&&(qe=ze[1]))),Me.exports=qe&&+qe},"./node_modules/core-js/internals/enum-bug-keys.js":function(Me){Me.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"./node_modules/core-js/internals/export.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/global.js"),Le=ce("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,Ve=ce("./node_modules/core-js/internals/create-non-enumerable-property.js"),Ke=ce("./node_modules/core-js/internals/redefine.js"),He=ce("./node_modules/core-js/internals/set-global.js"),Ge=ce("./node_modules/core-js/internals/copy-constructor-properties.js"),ze=ce("./node_modules/core-js/internals/is-forced.js");Me.exports=function(qe,pt){var Bt=qe.target,vt=qe.global,yt=qe.stat,Nt,Et,pn,Pt,St,jt;if(vt?Et=ke:yt?Et=ke[Bt]||He(Bt,{}):Et=(ke[Bt]||{}).prototype,Et)for(pn in pt){if(St=pt[pn],qe.noTargetGet?(jt=Le(Et,pn),Pt=jt&&jt.value):Pt=Et[pn],Nt=ze(vt?pn:Bt+(yt?".":"#")+pn,qe.forced),!Nt&&Pt!==void 0){if(typeof St==typeof Pt)continue;Ge(St,Pt)}(qe.sham||Pt&&Pt.sham)&&Ve(St,"sham",!0),Ke(Et,pn,St,qe)}}},"./node_modules/core-js/internals/fails.js":function(Me){Me.exports=function(Pe){try{return!!Pe()}catch(ce){return!0}}},"./node_modules/core-js/internals/function-bind-context.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/a-function.js");Me.exports=function(Le,Ve,Ke){if(ke(Le),Ve===void 0)return Le;switch(Ke){case 0:return function(){return Le.call(Ve)};case 1:return function(He){return Le.call(Ve,He)};case 2:return function(He,Ge){return Le.call(Ve,He,Ge)};case 3:return function(He,Ge,ze){return Le.call(Ve,He,Ge,ze)}}return function(){return Le.apply(Ve,arguments)}}},"./node_modules/core-js/internals/get-built-in.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/global.js"),Le=function(Ve){return typeof Ve=="function"?Ve:void 0};Me.exports=function(Ve,Ke){return arguments.length<2?Le(ke[Ve]):ke[Ve]&&ke[Ve][Ke]}},"./node_modules/core-js/internals/global.js":function(Me){var Pe=function(ce){return ce&&ce.Math==Math&&ce};Me.exports=Pe(typeof globalThis=="object"&&globalThis)||Pe(typeof window=="object"&&window)||Pe(typeof self=="object"&&self)||Pe(typeof pe.g=="object"&&pe.g)||function(){return this}()||Function("return this")()},"./node_modules/core-js/internals/has.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/to-object.js"),Le={}.hasOwnProperty;Me.exports=Object.hasOwn||function(Ke,He){return Le.call(ke(Ke),He)}},"./node_modules/core-js/internals/hidden-keys.js":function(Me){Me.exports={}},"./node_modules/core-js/internals/html.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/get-built-in.js");Me.exports=ke("document","documentElement")},"./node_modules/core-js/internals/ie8-dom-define.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/descriptors.js"),Le=ce("./node_modules/core-js/internals/fails.js"),Ve=ce("./node_modules/core-js/internals/document-create-element.js");Me.exports=!ke&&!Le(function(){return Object.defineProperty(Ve("div"),"a",{get:function(){return 7}}).a!=7})},"./node_modules/core-js/internals/indexed-object.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/fails.js"),Le=ce("./node_modules/core-js/internals/classof-raw.js"),Ve="".split;Me.exports=ke(function(){return!Object("z").propertyIsEnumerable(0)})?function(Ke){return Le(Ke)=="String"?Ve.call(Ke,""):Object(Ke)}:Object},"./node_modules/core-js/internals/inherit-if-required.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/is-object.js"),Le=ce("./node_modules/core-js/internals/object-set-prototype-of.js");Me.exports=function(Ve,Ke,He){var Ge,ze;return Le&&typeof(Ge=Ke.constructor)=="function"&&Ge!==He&&ke(ze=Ge.prototype)&&ze!==He.prototype&&Le(Ve,ze),Ve}},"./node_modules/core-js/internals/inspect-source.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/shared-store.js"),Le=Function.toString;typeof ke.inspectSource!="function"&&(ke.inspectSource=function(Ve){return Le.call(Ve)}),Me.exports=ke.inspectSource},"./node_modules/core-js/internals/internal-state.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/native-weak-map.js"),Le=ce("./node_modules/core-js/internals/global.js"),Ve=ce("./node_modules/core-js/internals/is-object.js"),Ke=ce("./node_modules/core-js/internals/create-non-enumerable-property.js"),He=ce("./node_modules/core-js/internals/has.js"),Ge=ce("./node_modules/core-js/internals/shared-store.js"),ze=ce("./node_modules/core-js/internals/shared-key.js"),qe=ce("./node_modules/core-js/internals/hidden-keys.js"),pt="Object already initialized",Bt=Le.WeakMap,vt,yt,Nt,Et=function(lt){return Nt(lt)?yt(lt):vt(lt,{})},pn=function(lt){return function(Fe){var Zt;if(!Ve(Fe)||(Zt=yt(Fe)).type!==lt)throw TypeError("Incompatible receiver, "+lt+" required");return Zt}};if(ke||Ge.state){var Pt=Ge.state||(Ge.state=new Bt),St=Pt.get,jt=Pt.has,Je=Pt.set;vt=function(lt,Fe){if(jt.call(Pt,lt))throw new TypeError(pt);return Fe.facade=lt,Je.call(Pt,lt,Fe),Fe},yt=function(lt){return St.call(Pt,lt)||{}},Nt=function(lt){return jt.call(Pt,lt)}}else{var wt=ze("state");qe[wt]=!0,vt=function(lt,Fe){if(He(lt,wt))throw new TypeError(pt);return Fe.facade=lt,Ke(lt,wt,Fe),Fe},yt=function(lt){return He(lt,wt)?lt[wt]:{}},Nt=function(lt){return He(lt,wt)}}Me.exports={set:vt,get:yt,has:Nt,enforce:Et,getterFor:pn}},"./node_modules/core-js/internals/is-array.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/classof-raw.js");Me.exports=Array.isArray||function(Ve){return ke(Ve)=="Array"}},"./node_modules/core-js/internals/is-forced.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/fails.js"),Le=/#|\.prototype\./,Ve=function(qe,pt){var Bt=He[Ke(qe)];return Bt==ze?!0:Bt==Ge?!1:typeof pt=="function"?ke(pt):!!pt},Ke=Ve.normalize=function(qe){return String(qe).replace(Le,".").toLowerCase()},He=Ve.data={},Ge=Ve.NATIVE="N",ze=Ve.POLYFILL="P";Me.exports=Ve},"./node_modules/core-js/internals/is-object.js":function(Me){Me.exports=function(Pe){return typeof Pe=="object"?Pe!==null:typeof Pe=="function"}},"./node_modules/core-js/internals/is-pure.js":function(Me){Me.exports=!1},"./node_modules/core-js/internals/is-symbol.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/get-built-in.js"),Le=ce("./node_modules/core-js/internals/use-symbol-as-uid.js");Me.exports=Le?function(Ve){return typeof Ve=="symbol"}:function(Ve){var Ke=ke("Symbol");return typeof Ke=="function"&&Object(Ve)instanceof Ke}},"./node_modules/core-js/internals/iterators-core.js":function(Me,Pe,ce){"use strict";var ke=ce("./node_modules/core-js/internals/fails.js"),Le=ce("./node_modules/core-js/internals/object-get-prototype-of.js"),Ve=ce("./node_modules/core-js/internals/create-non-enumerable-property.js"),Ke=ce("./node_modules/core-js/internals/has.js"),He=ce("./node_modules/core-js/internals/well-known-symbol.js"),Ge=ce("./node_modules/core-js/internals/is-pure.js"),ze=He("iterator"),qe=!1,pt=function(){return this},Bt,vt,yt;[].keys&&(yt=[].keys(),"next"in yt?(vt=Le(Le(yt)),vt!==Object.prototype&&(Bt=vt)):qe=!0);var Nt=Bt==null||ke(function(){var Et={};return Bt[ze].call(Et)!==Et});Nt&&(Bt={}),(!Ge||Nt)&&!Ke(Bt,ze)&&Ve(Bt,ze,pt),Me.exports={IteratorPrototype:Bt,BUGGY_SAFARI_ITERATORS:qe}},"./node_modules/core-js/internals/iterators.js":function(Me){Me.exports={}},"./node_modules/core-js/internals/native-symbol.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/engine-v8-version.js"),Le=ce("./node_modules/core-js/internals/fails.js");Me.exports=!!Object.getOwnPropertySymbols&&!Le(function(){var Ve=Symbol();return!String(Ve)||!(Object(Ve)instanceof Symbol)||!Symbol.sham&&ke&&ke<41})},"./node_modules/core-js/internals/native-weak-map.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/global.js"),Le=ce("./node_modules/core-js/internals/inspect-source.js"),Ve=ke.WeakMap;Me.exports=typeof Ve=="function"&&/native code/.test(Le(Ve))},"./node_modules/core-js/internals/object-assign.js":function(Me,Pe,ce){"use strict";var ke=ce("./node_modules/core-js/internals/descriptors.js"),Le=ce("./node_modules/core-js/internals/fails.js"),Ve=ce("./node_modules/core-js/internals/object-keys.js"),Ke=ce("./node_modules/core-js/internals/object-get-own-property-symbols.js"),He=ce("./node_modules/core-js/internals/object-property-is-enumerable.js"),Ge=ce("./node_modules/core-js/internals/to-object.js"),ze=ce("./node_modules/core-js/internals/indexed-object.js"),qe=Object.assign,pt=Object.defineProperty;Me.exports=!qe||Le(function(){if(ke&&qe({b:1},qe(pt({},"a",{enumerable:!0,get:function(){pt(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var Bt={},vt={},yt=Symbol(),Nt="abcdefghijklmnopqrst";return Bt[yt]=7,Nt.split("").forEach(function(Et){vt[Et]=Et}),qe({},Bt)[yt]!=7||Ve(qe({},vt)).join("")!=Nt})?function(vt,yt){for(var Nt=Ge(vt),Et=arguments.length,pn=1,Pt=Ke.f,St=He.f;Et>pn;)for(var jt=ze(arguments[pn++]),Je=Pt?Ve(jt).concat(Pt(jt)):Ve(jt),wt=Je.length,lt=0,Fe;wt>lt;)Fe=Je[lt++],(!ke||St.call(jt,Fe))&&(Nt[Fe]=jt[Fe]);return Nt}:qe},"./node_modules/core-js/internals/object-create.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/an-object.js"),Le=ce("./node_modules/core-js/internals/object-define-properties.js"),Ve=ce("./node_modules/core-js/internals/enum-bug-keys.js"),Ke=ce("./node_modules/core-js/internals/hidden-keys.js"),He=ce("./node_modules/core-js/internals/html.js"),Ge=ce("./node_modules/core-js/internals/document-create-element.js"),ze=ce("./node_modules/core-js/internals/shared-key.js"),qe=">",pt="<",Bt="prototype",vt="script",yt=ze("IE_PROTO"),Nt=function(){},Et=function(Je){return pt+vt+qe+Je+pt+"/"+vt+qe},pn=function(Je){Je.write(Et("")),Je.close();var wt=Je.parentWindow.Object;return Je=null,wt},Pt=function(){var Je=Ge("iframe"),wt="java"+vt+":",lt;if(Je.style)return Je.style.display="none",He.appendChild(Je),Je.src=String(wt),lt=Je.contentWindow.document,lt.open(),lt.write(Et("document.F=Object")),lt.close(),lt.F},St,jt=function(){try{St=new ActiveXObject("htmlfile")}catch(wt){}jt=document.domain&&St?pn(St):Pt()||pn(St);for(var Je=Ve.length;Je--;)delete jt[Bt][Ve[Je]];return jt()};Ke[yt]=!0,Me.exports=Object.create||function(wt,lt){var Fe;return wt!==null?(Nt[Bt]=ke(wt),Fe=new Nt,Nt[Bt]=null,Fe[yt]=wt):Fe=jt(),lt===void 0?Fe:Le(Fe,lt)}},"./node_modules/core-js/internals/object-define-properties.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/descriptors.js"),Le=ce("./node_modules/core-js/internals/object-define-property.js"),Ve=ce("./node_modules/core-js/internals/an-object.js"),Ke=ce("./node_modules/core-js/internals/object-keys.js");Me.exports=ke?Object.defineProperties:function(Ge,ze){Ve(Ge);for(var qe=Ke(ze),pt=qe.length,Bt=0,vt;pt>Bt;)Le.f(Ge,vt=qe[Bt++],ze[vt]);return Ge}},"./node_modules/core-js/internals/object-define-property.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/descriptors.js"),Le=ce("./node_modules/core-js/internals/ie8-dom-define.js"),Ve=ce("./node_modules/core-js/internals/an-object.js"),Ke=ce("./node_modules/core-js/internals/to-property-key.js"),He=Object.defineProperty;Pe.f=ke?He:function(ze,qe,pt){if(Ve(ze),qe=Ke(qe),Ve(pt),Le)try{return He(ze,qe,pt)}catch(Bt){}if("get"in pt||"set"in pt)throw TypeError("Accessors not supported");return"value"in pt&&(ze[qe]=pt.value),ze}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/descriptors.js"),Le=ce("./node_modules/core-js/internals/object-property-is-enumerable.js"),Ve=ce("./node_modules/core-js/internals/create-property-descriptor.js"),Ke=ce("./node_modules/core-js/internals/to-indexed-object.js"),He=ce("./node_modules/core-js/internals/to-property-key.js"),Ge=ce("./node_modules/core-js/internals/has.js"),ze=ce("./node_modules/core-js/internals/ie8-dom-define.js"),qe=Object.getOwnPropertyDescriptor;Pe.f=ke?qe:function(Bt,vt){if(Bt=Ke(Bt),vt=He(vt),ze)try{return qe(Bt,vt)}catch(yt){}if(Ge(Bt,vt))return Ve(!Le.f.call(Bt,vt),Bt[vt])}},"./node_modules/core-js/internals/object-get-own-property-names-external.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/to-indexed-object.js"),Le=ce("./node_modules/core-js/internals/object-get-own-property-names.js").f,Ve={}.toString,Ke=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],He=function(Ge){try{return Le(Ge)}catch(ze){return Ke.slice()}};Me.exports.f=function(ze){return Ke&&Ve.call(ze)=="[object Window]"?He(ze):Le(ke(ze))}},"./node_modules/core-js/internals/object-get-own-property-names.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/object-keys-internal.js"),Le=ce("./node_modules/core-js/internals/enum-bug-keys.js"),Ve=Le.concat("length","prototype");Pe.f=Object.getOwnPropertyNames||function(He){return ke(He,Ve)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":function(Me,Pe){Pe.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/has.js"),Le=ce("./node_modules/core-js/internals/to-object.js"),Ve=ce("./node_modules/core-js/internals/shared-key.js"),Ke=ce("./node_modules/core-js/internals/correct-prototype-getter.js"),He=Ve("IE_PROTO"),Ge=Object.prototype;Me.exports=Ke?Object.getPrototypeOf:function(ze){return ze=Le(ze),ke(ze,He)?ze[He]:typeof ze.constructor=="function"&&ze instanceof ze.constructor?ze.constructor.prototype:ze instanceof Object?Ge:null}},"./node_modules/core-js/internals/object-keys-internal.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/has.js"),Le=ce("./node_modules/core-js/internals/to-indexed-object.js"),Ve=ce("./node_modules/core-js/internals/array-includes.js").indexOf,Ke=ce("./node_modules/core-js/internals/hidden-keys.js");Me.exports=function(He,Ge){var ze=Le(He),qe=0,pt=[],Bt;for(Bt in ze)!ke(Ke,Bt)&&ke(ze,Bt)&&pt.push(Bt);for(;Ge.length>qe;)ke(ze,Bt=Ge[qe++])&&(~Ve(pt,Bt)||pt.push(Bt));return pt}},"./node_modules/core-js/internals/object-keys.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/object-keys-internal.js"),Le=ce("./node_modules/core-js/internals/enum-bug-keys.js");Me.exports=Object.keys||function(Ke){return ke(Ke,Le)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(Me,Pe){"use strict";var ce={}.propertyIsEnumerable,ke=Object.getOwnPropertyDescriptor,Le=ke&&!ce.call({1:2},1);Pe.f=Le?function(Ke){var He=ke(this,Ke);return!!He&&He.enumerable}:ce},"./node_modules/core-js/internals/object-set-prototype-of.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/an-object.js"),Le=ce("./node_modules/core-js/internals/a-possible-prototype.js");Me.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var Ve=!1,Ke={},He;try{He=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,He.call(Ke,[]),Ve=Ke instanceof Array}catch(Ge){}return function(ze,qe){return ke(ze),Le(qe),Ve?He.call(ze,qe):ze.__proto__=qe,ze}}():void 0)},"./node_modules/core-js/internals/object-to-string.js":function(Me,Pe,ce){"use strict";var ke=ce("./node_modules/core-js/internals/to-string-tag-support.js"),Le=ce("./node_modules/core-js/internals/classof.js");Me.exports=ke?{}.toString:function(){return"[object "+Le(this)+"]"}},"./node_modules/core-js/internals/ordinary-to-primitive.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/is-object.js");Me.exports=function(Le,Ve){var Ke,He;if(Ve==="string"&&typeof(Ke=Le.toString)=="function"&&!ke(He=Ke.call(Le))||typeof(Ke=Le.valueOf)=="function"&&!ke(He=Ke.call(Le))||Ve!=="string"&&typeof(Ke=Le.toString)=="function"&&!ke(He=Ke.call(Le)))return He;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/own-keys.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/get-built-in.js"),Le=ce("./node_modules/core-js/internals/object-get-own-property-names.js"),Ve=ce("./node_modules/core-js/internals/object-get-own-property-symbols.js"),Ke=ce("./node_modules/core-js/internals/an-object.js");Me.exports=ke("Reflect","ownKeys")||function(Ge){var ze=Le.f(Ke(Ge)),qe=Ve.f;return qe?ze.concat(qe(Ge)):ze}},"./node_modules/core-js/internals/path.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/global.js");Me.exports=ke},"./node_modules/core-js/internals/redefine.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/global.js"),Le=ce("./node_modules/core-js/internals/create-non-enumerable-property.js"),Ve=ce("./node_modules/core-js/internals/has.js"),Ke=ce("./node_modules/core-js/internals/set-global.js"),He=ce("./node_modules/core-js/internals/inspect-source.js"),Ge=ce("./node_modules/core-js/internals/internal-state.js"),ze=Ge.get,qe=Ge.enforce,pt=String(String).split("String");(Me.exports=function(Bt,vt,yt,Nt){var Et=Nt?!!Nt.unsafe:!1,pn=Nt?!!Nt.enumerable:!1,Pt=Nt?!!Nt.noTargetGet:!1,St;if(typeof yt=="function"&&(typeof vt=="string"&&!Ve(yt,"name")&&Le(yt,"name",vt),St=qe(yt),St.source||(St.source=pt.join(typeof vt=="string"?vt:""))),Bt===ke){pn?Bt[vt]=yt:Ke(vt,yt);return}else Et?!Pt&&Bt[vt]&&(pn=!0):delete Bt[vt];pn?Bt[vt]=yt:Le(Bt,vt,yt)})(Function.prototype,"toString",function(){return typeof this=="function"&&ze(this).source||He(this)})},"./node_modules/core-js/internals/regexp-flags.js":function(Me,Pe,ce){"use strict";var ke=ce("./node_modules/core-js/internals/an-object.js");Me.exports=function(){var Le=ke(this),Ve="";return Le.global&&(Ve+="g"),Le.ignoreCase&&(Ve+="i"),Le.multiline&&(Ve+="m"),Le.dotAll&&(Ve+="s"),Le.unicode&&(Ve+="u"),Le.sticky&&(Ve+="y"),Ve}},"./node_modules/core-js/internals/require-object-coercible.js":function(Me){Me.exports=function(Pe){if(Pe==null)throw TypeError("Can't call method on "+Pe);return Pe}},"./node_modules/core-js/internals/set-global.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/global.js");Me.exports=function(Le,Ve){try{Object.defineProperty(ke,Le,{value:Ve,configurable:!0,writable:!0})}catch(Ke){ke[Le]=Ve}return Ve}},"./node_modules/core-js/internals/set-to-string-tag.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/object-define-property.js").f,Le=ce("./node_modules/core-js/internals/has.js"),Ve=ce("./node_modules/core-js/internals/well-known-symbol.js"),Ke=Ve("toStringTag");Me.exports=function(He,Ge,ze){He&&!Le(He=ze?He:He.prototype,Ke)&&ke(He,Ke,{configurable:!0,value:Ge})}},"./node_modules/core-js/internals/shared-key.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/shared.js"),Le=ce("./node_modules/core-js/internals/uid.js"),Ve=ke("keys");Me.exports=function(Ke){return Ve[Ke]||(Ve[Ke]=Le(Ke))}},"./node_modules/core-js/internals/shared-store.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/global.js"),Le=ce("./node_modules/core-js/internals/set-global.js"),Ve="__core-js_shared__",Ke=ke[Ve]||Le(Ve,{});Me.exports=Ke},"./node_modules/core-js/internals/shared.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/is-pure.js"),Le=ce("./node_modules/core-js/internals/shared-store.js");(Me.exports=function(Ve,Ke){return Le[Ve]||(Le[Ve]=Ke!==void 0?Ke:{})})("versions",[]).push({version:"3.16.0",mode:ke?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},"./node_modules/core-js/internals/string-html-forced.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/fails.js");Me.exports=function(Le){return ke(function(){var Ve=""[Le]('"');return Ve!==Ve.toLowerCase()||Ve.split('"').length>3})}},"./node_modules/core-js/internals/string-multibyte.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/to-integer.js"),Le=ce("./node_modules/core-js/internals/to-string.js"),Ve=ce("./node_modules/core-js/internals/require-object-coercible.js"),Ke=function(He){return function(Ge,ze){var qe=Le(Ve(Ge)),pt=ke(ze),Bt=qe.length,vt,yt;return pt<0||pt>=Bt?He?"":void 0:(vt=qe.charCodeAt(pt),vt<55296||vt>56319||pt+1===Bt||(yt=qe.charCodeAt(pt+1))<56320||yt>57343?He?qe.charAt(pt):vt:He?qe.slice(pt,pt+2):(vt-55296<<10)+(yt-56320)+65536)}};Me.exports={codeAt:Ke(!1),charAt:Ke(!0)}},"./node_modules/core-js/internals/string-trim.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/require-object-coercible.js"),Le=ce("./node_modules/core-js/internals/to-string.js"),Ve=ce("./node_modules/core-js/internals/whitespaces.js"),Ke="["+Ve+"]",He=RegExp("^"+Ke+Ke+"*"),Ge=RegExp(Ke+Ke+"*$"),ze=function(qe){return function(pt){var Bt=Le(ke(pt));return qe&1&&(Bt=Bt.replace(He,"")),qe&2&&(Bt=Bt.replace(Ge,"")),Bt}};Me.exports={start:ze(1),end:ze(2),trim:ze(3)}},"./node_modules/core-js/internals/to-absolute-index.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/to-integer.js"),Le=Math.max,Ve=Math.min;Me.exports=function(Ke,He){var Ge=ke(Ke);return Ge<0?Le(Ge+He,0):Ve(Ge,He)}},"./node_modules/core-js/internals/to-indexed-object.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/indexed-object.js"),Le=ce("./node_modules/core-js/internals/require-object-coercible.js");Me.exports=function(Ve){return ke(Le(Ve))}},"./node_modules/core-js/internals/to-integer.js":function(Me){var Pe=Math.ceil,ce=Math.floor;Me.exports=function(ke){return isNaN(ke=+ke)?0:(ke>0?ce:Pe)(ke)}},"./node_modules/core-js/internals/to-length.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/to-integer.js"),Le=Math.min;Me.exports=function(Ve){return Ve>0?Le(ke(Ve),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/require-object-coercible.js");Me.exports=function(Le){return Object(ke(Le))}},"./node_modules/core-js/internals/to-primitive.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/is-object.js"),Le=ce("./node_modules/core-js/internals/is-symbol.js"),Ve=ce("./node_modules/core-js/internals/ordinary-to-primitive.js"),Ke=ce("./node_modules/core-js/internals/well-known-symbol.js"),He=Ke("toPrimitive");Me.exports=function(Ge,ze){if(!ke(Ge)||Le(Ge))return Ge;var qe=Ge[He],pt;if(qe!==void 0){if(ze===void 0&&(ze="default"),pt=qe.call(Ge,ze),!ke(pt)||Le(pt))return pt;throw TypeError("Can't convert object to primitive value")}return ze===void 0&&(ze="number"),Ve(Ge,ze)}},"./node_modules/core-js/internals/to-property-key.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/to-primitive.js"),Le=ce("./node_modules/core-js/internals/is-symbol.js");Me.exports=function(Ve){var Ke=ke(Ve,"string");return Le(Ke)?Ke:String(Ke)}},"./node_modules/core-js/internals/to-string-tag-support.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/well-known-symbol.js"),Le=ke("toStringTag"),Ve={};Ve[Le]="z",Me.exports=String(Ve)==="[object z]"},"./node_modules/core-js/internals/to-string.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/is-symbol.js");Me.exports=function(Le){if(ke(Le))throw TypeError("Cannot convert a Symbol value to a string");return String(Le)}},"./node_modules/core-js/internals/uid.js":function(Me){var Pe=0,ce=Math.random();Me.exports=function(ke){return"Symbol("+String(ke===void 0?"":ke)+")_"+(++Pe+ce).toString(36)}},"./node_modules/core-js/internals/use-symbol-as-uid.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/native-symbol.js");Me.exports=ke&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},"./node_modules/core-js/internals/well-known-symbol-wrapped.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/well-known-symbol.js");Pe.f=ke},"./node_modules/core-js/internals/well-known-symbol.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/global.js"),Le=ce("./node_modules/core-js/internals/shared.js"),Ve=ce("./node_modules/core-js/internals/has.js"),Ke=ce("./node_modules/core-js/internals/uid.js"),He=ce("./node_modules/core-js/internals/native-symbol.js"),Ge=ce("./node_modules/core-js/internals/use-symbol-as-uid.js"),ze=Le("wks"),qe=ke.Symbol,pt=Ge?qe:qe&&qe.withoutSetter||Ke;Me.exports=function(Bt){return(!Ve(ze,Bt)||!(He||typeof ze[Bt]=="string"))&&(He&&Ve(qe,Bt)?ze[Bt]=qe[Bt]:ze[Bt]=pt("Symbol."+Bt)),ze[Bt]}},"./node_modules/core-js/internals/whitespaces.js":function(Me){Me.exports=`
|
|
|
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},"./node_modules/core-js/modules/es.array.concat.js":function(Me,Pe,ce){"use strict";var ke=ce("./node_modules/core-js/internals/export.js"),Le=ce("./node_modules/core-js/internals/fails.js"),Ve=ce("./node_modules/core-js/internals/is-array.js"),Ke=ce("./node_modules/core-js/internals/is-object.js"),He=ce("./node_modules/core-js/internals/to-object.js"),Ge=ce("./node_modules/core-js/internals/to-length.js"),ze=ce("./node_modules/core-js/internals/create-property.js"),qe=ce("./node_modules/core-js/internals/array-species-create.js"),pt=ce("./node_modules/core-js/internals/array-method-has-species-support.js"),Bt=ce("./node_modules/core-js/internals/well-known-symbol.js"),vt=ce("./node_modules/core-js/internals/engine-v8-version.js"),yt=Bt("isConcatSpreadable"),Nt=9007199254740991,Et="Maximum allowed index exceeded",pn=vt>=51||!Le(function(){var Je=[];return Je[yt]=!1,Je.concat()[0]!==Je}),Pt=pt("concat"),St=function(Je){if(!Ke(Je))return!1;var wt=Je[yt];return wt!==void 0?!!wt:Ve(Je)},jt=!pn||!Pt;ke({target:"Array",proto:!0,forced:jt},{concat:function(wt){var lt=He(this),Fe=qe(lt,0),Zt=0,$e,At,Qt,Te,xe;for($e=-1,Qt=arguments.length;$e<Qt;$e++)if(xe=$e===-1?lt:arguments[$e],St(xe)){if(Te=Ge(xe.length),Zt+Te>Nt)throw TypeError(Et);for(At=0;At<Te;At++,Zt++)At in xe&&ze(Fe,Zt,xe[At])}else{if(Zt>=Nt)throw TypeError(Et);ze(Fe,Zt++,xe)}return Fe.length=Zt,Fe}})},"./node_modules/core-js/modules/es.array.iterator.js":function(Me,Pe,ce){"use strict";var ke=ce("./node_modules/core-js/internals/to-indexed-object.js"),Le=ce("./node_modules/core-js/internals/add-to-unscopables.js"),Ve=ce("./node_modules/core-js/internals/iterators.js"),Ke=ce("./node_modules/core-js/internals/internal-state.js"),He=ce("./node_modules/core-js/internals/define-iterator.js"),Ge="Array Iterator",ze=Ke.set,qe=Ke.getterFor(Ge);Me.exports=He(Array,"Array",function(pt,Bt){ze(this,{type:Ge,target:ke(pt),index:0,kind:Bt})},function(){var pt=qe(this),Bt=pt.target,vt=pt.kind,yt=pt.index++;return!Bt||yt>=Bt.length?(pt.target=void 0,{value:void 0,done:!0}):vt=="keys"?{value:yt,done:!1}:vt=="values"?{value:Bt[yt],done:!1}:{value:[yt,Bt[yt]],done:!1}},"values"),Ve.Arguments=Ve.Array,Le("keys"),Le("values"),Le("entries")},"./node_modules/core-js/modules/es.array.join.js":function(Me,Pe,ce){"use strict";var ke=ce("./node_modules/core-js/internals/export.js"),Le=ce("./node_modules/core-js/internals/indexed-object.js"),Ve=ce("./node_modules/core-js/internals/to-indexed-object.js"),Ke=ce("./node_modules/core-js/internals/array-method-is-strict.js"),He=[].join,Ge=Le!=Object,ze=Ke("join",",");ke({target:"Array",proto:!0,forced:Ge||!ze},{join:function(pt){return He.call(Ve(this),pt===void 0?",":pt)}})},"./node_modules/core-js/modules/es.array.map.js":function(Me,Pe,ce){"use strict";var ke=ce("./node_modules/core-js/internals/export.js"),Le=ce("./node_modules/core-js/internals/array-iteration.js").map,Ve=ce("./node_modules/core-js/internals/array-method-has-species-support.js"),Ke=Ve("map");ke({target:"Array",proto:!0,forced:!Ke},{map:function(Ge){return Le(this,Ge,arguments.length>1?arguments[1]:void 0)}})},"./node_modules/core-js/modules/es.array.slice.js":function(Me,Pe,ce){"use strict";var ke=ce("./node_modules/core-js/internals/export.js"),Le=ce("./node_modules/core-js/internals/is-object.js"),Ve=ce("./node_modules/core-js/internals/is-array.js"),Ke=ce("./node_modules/core-js/internals/to-absolute-index.js"),He=ce("./node_modules/core-js/internals/to-length.js"),Ge=ce("./node_modules/core-js/internals/to-indexed-object.js"),ze=ce("./node_modules/core-js/internals/create-property.js"),qe=ce("./node_modules/core-js/internals/well-known-symbol.js"),pt=ce("./node_modules/core-js/internals/array-method-has-species-support.js"),Bt=pt("slice"),vt=qe("species"),yt=[].slice,Nt=Math.max;ke({target:"Array",proto:!0,forced:!Bt},{slice:function(pn,Pt){var St=Ge(this),jt=He(St.length),Je=Ke(pn,jt),wt=Ke(Pt===void 0?jt:Pt,jt),lt,Fe,Zt;if(Ve(St)&&(lt=St.constructor,typeof lt=="function"&&(lt===Array||Ve(lt.prototype))?lt=void 0:Le(lt)&&(lt=lt[vt],lt===null&&(lt=void 0)),lt===Array||lt===void 0))return yt.call(St,Je,wt);for(Fe=new(lt===void 0?Array:lt)(Nt(wt-Je,0)),Zt=0;Je<wt;Je++,Zt++)Je in St&&ze(Fe,Zt,St[Je]);return Fe.length=Zt,Fe}})},"./node_modules/core-js/modules/es.function.name.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/descriptors.js"),Le=ce("./node_modules/core-js/internals/object-define-property.js").f,Ve=Function.prototype,Ke=Ve.toString,He=/^\s*function ([^ (]*)/,Ge="name";ke&&!(Ge in Ve)&&Le(Ve,Ge,{configurable:!0,get:function(){try{return Ke.call(this).match(He)[1]}catch(ze){return""}}})},"./node_modules/core-js/modules/es.number.constructor.js":function(Me,Pe,ce){"use strict";var ke=ce("./node_modules/core-js/internals/descriptors.js"),Le=ce("./node_modules/core-js/internals/global.js"),Ve=ce("./node_modules/core-js/internals/is-forced.js"),Ke=ce("./node_modules/core-js/internals/redefine.js"),He=ce("./node_modules/core-js/internals/has.js"),Ge=ce("./node_modules/core-js/internals/classof-raw.js"),ze=ce("./node_modules/core-js/internals/inherit-if-required.js"),qe=ce("./node_modules/core-js/internals/is-symbol.js"),pt=ce("./node_modules/core-js/internals/to-primitive.js"),Bt=ce("./node_modules/core-js/internals/fails.js"),vt=ce("./node_modules/core-js/internals/object-create.js"),yt=ce("./node_modules/core-js/internals/object-get-own-property-names.js").f,Nt=ce("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,Et=ce("./node_modules/core-js/internals/object-define-property.js").f,pn=ce("./node_modules/core-js/internals/string-trim.js").trim,Pt="Number",St=Le[Pt],jt=St.prototype,Je=Ge(vt(jt))==Pt,wt=function(At){if(qe(At))throw TypeError("Cannot convert a Symbol value to a number");var Qt=pt(At,"number"),Te,xe,It,Cn,mn,Ze,Ct,_t;if(typeof Qt=="string"&&Qt.length>2){if(Qt=pn(Qt),Te=Qt.charCodeAt(0),Te===43||Te===45){if(xe=Qt.charCodeAt(2),xe===88||xe===120)return NaN}else if(Te===48){switch(Qt.charCodeAt(1)){case 66:case 98:It=2,Cn=49;break;case 79:case 111:It=8,Cn=55;break;default:return+Qt}for(mn=Qt.slice(2),Ze=mn.length,Ct=0;Ct<Ze;Ct++)if(_t=mn.charCodeAt(Ct),_t<48||_t>Cn)return NaN;return parseInt(mn,It)}}return+Qt};if(Ve(Pt,!St(" 0o1")||!St("0b1")||St("+0x1"))){for(var lt=function(Qt){var Te=arguments.length<1?0:Qt,xe=this;return xe instanceof lt&&(Je?Bt(function(){jt.valueOf.call(xe)}):Ge(xe)!=Pt)?ze(new St(wt(Te)),xe,lt):wt(Te)},Fe=ke?yt(St):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),Zt=0,$e;Fe.length>Zt;Zt++)He(St,$e=Fe[Zt])&&!He(lt,$e)&&Et(lt,$e,Nt(St,$e));lt.prototype=jt,jt.constructor=lt,Ke(Le,Pt,lt)}},"./node_modules/core-js/modules/es.object.assign.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/export.js"),Le=ce("./node_modules/core-js/internals/object-assign.js");ke({target:"Object",stat:!0,forced:Object.assign!==Le},{assign:Le})},"./node_modules/core-js/modules/es.object.keys.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/export.js"),Le=ce("./node_modules/core-js/internals/to-object.js"),Ve=ce("./node_modules/core-js/internals/object-keys.js"),Ke=ce("./node_modules/core-js/internals/fails.js"),He=Ke(function(){Ve(1)});ke({target:"Object",stat:!0,forced:He},{keys:function(ze){return Ve(Le(ze))}})},"./node_modules/core-js/modules/es.object.to-string.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/to-string-tag-support.js"),Le=ce("./node_modules/core-js/internals/redefine.js"),Ve=ce("./node_modules/core-js/internals/object-to-string.js");ke||Le(Object.prototype,"toString",Ve,{unsafe:!0})},"./node_modules/core-js/modules/es.regexp.to-string.js":function(Me,Pe,ce){"use strict";var ke=ce("./node_modules/core-js/internals/redefine.js"),Le=ce("./node_modules/core-js/internals/an-object.js"),Ve=ce("./node_modules/core-js/internals/to-string.js"),Ke=ce("./node_modules/core-js/internals/fails.js"),He=ce("./node_modules/core-js/internals/regexp-flags.js"),Ge="toString",ze=RegExp.prototype,qe=ze[Ge],pt=Ke(function(){return qe.call({source:"a",flags:"b"})!="/a/b"}),Bt=qe.name!=Ge;(pt||Bt)&&ke(RegExp.prototype,Ge,function(){var yt=Le(this),Nt=Ve(yt.source),Et=yt.flags,pn=Ve(Et===void 0&&yt instanceof RegExp&&!("flags"in ze)?He.call(yt):Et);return"/"+Nt+"/"+pn},{unsafe:!0})},"./node_modules/core-js/modules/es.string.iterator.js":function(Me,Pe,ce){"use strict";var ke=ce("./node_modules/core-js/internals/string-multibyte.js").charAt,Le=ce("./node_modules/core-js/internals/to-string.js"),Ve=ce("./node_modules/core-js/internals/internal-state.js"),Ke=ce("./node_modules/core-js/internals/define-iterator.js"),He="String Iterator",Ge=Ve.set,ze=Ve.getterFor(He);Ke(String,"String",function(qe){Ge(this,{type:He,string:Le(qe),index:0})},function(){var pt=ze(this),Bt=pt.string,vt=pt.index,yt;return vt>=Bt.length?{value:void 0,done:!0}:(yt=ke(Bt,vt),pt.index+=yt.length,{value:yt,done:!1})})},"./node_modules/core-js/modules/es.string.link.js":function(Me,Pe,ce){"use strict";var ke=ce("./node_modules/core-js/internals/export.js"),Le=ce("./node_modules/core-js/internals/create-html.js"),Ve=ce("./node_modules/core-js/internals/string-html-forced.js");ke({target:"String",proto:!0,forced:Ve("link")},{link:function(He){return Le(this,"a","href",He)}})},"./node_modules/core-js/modules/es.symbol.description.js":function(Me,Pe,ce){"use strict";var ke=ce("./node_modules/core-js/internals/export.js"),Le=ce("./node_modules/core-js/internals/descriptors.js"),Ve=ce("./node_modules/core-js/internals/global.js"),Ke=ce("./node_modules/core-js/internals/has.js"),He=ce("./node_modules/core-js/internals/is-object.js"),Ge=ce("./node_modules/core-js/internals/object-define-property.js").f,ze=ce("./node_modules/core-js/internals/copy-constructor-properties.js"),qe=Ve.Symbol;if(Le&&typeof qe=="function"&&(!("description"in qe.prototype)||qe().description!==void 0)){var pt={},Bt=function(){var Pt=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),St=this instanceof Bt?new qe(Pt):Pt===void 0?qe():qe(Pt);return Pt===""&&(pt[St]=!0),St};ze(Bt,qe);var vt=Bt.prototype=qe.prototype;vt.constructor=Bt;var yt=vt.toString,Nt=String(qe("test"))=="Symbol(test)",Et=/^Symbol\((.*)\)[^)]+$/;Ge(vt,"description",{configurable:!0,get:function(){var Pt=He(this)?this.valueOf():this,St=yt.call(Pt);if(Ke(pt,Pt))return"";var jt=Nt?St.slice(7,-1):St.replace(Et,"$1");return jt===""?void 0:jt}}),ke({global:!0,forced:!0},{Symbol:Bt})}},"./node_modules/core-js/modules/es.symbol.iterator.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/define-well-known-symbol.js");ke("iterator")},"./node_modules/core-js/modules/es.symbol.js":function(Me,Pe,ce){"use strict";var ke=ce("./node_modules/core-js/internals/export.js"),Le=ce("./node_modules/core-js/internals/global.js"),Ve=ce("./node_modules/core-js/internals/get-built-in.js"),Ke=ce("./node_modules/core-js/internals/is-pure.js"),He=ce("./node_modules/core-js/internals/descriptors.js"),Ge=ce("./node_modules/core-js/internals/native-symbol.js"),ze=ce("./node_modules/core-js/internals/fails.js"),qe=ce("./node_modules/core-js/internals/has.js"),pt=ce("./node_modules/core-js/internals/is-array.js"),Bt=ce("./node_modules/core-js/internals/is-object.js"),vt=ce("./node_modules/core-js/internals/is-symbol.js"),yt=ce("./node_modules/core-js/internals/an-object.js"),Nt=ce("./node_modules/core-js/internals/to-object.js"),Et=ce("./node_modules/core-js/internals/to-indexed-object.js"),pn=ce("./node_modules/core-js/internals/to-property-key.js"),Pt=ce("./node_modules/core-js/internals/to-string.js"),St=ce("./node_modules/core-js/internals/create-property-descriptor.js"),jt=ce("./node_modules/core-js/internals/object-create.js"),Je=ce("./node_modules/core-js/internals/object-keys.js"),wt=ce("./node_modules/core-js/internals/object-get-own-property-names.js"),lt=ce("./node_modules/core-js/internals/object-get-own-property-names-external.js"),Fe=ce("./node_modules/core-js/internals/object-get-own-property-symbols.js"),Zt=ce("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),$e=ce("./node_modules/core-js/internals/object-define-property.js"),At=ce("./node_modules/core-js/internals/object-property-is-enumerable.js"),Qt=ce("./node_modules/core-js/internals/create-non-enumerable-property.js"),Te=ce("./node_modules/core-js/internals/redefine.js"),xe=ce("./node_modules/core-js/internals/shared.js"),It=ce("./node_modules/core-js/internals/shared-key.js"),Cn=ce("./node_modules/core-js/internals/hidden-keys.js"),mn=ce("./node_modules/core-js/internals/uid.js"),Ze=ce("./node_modules/core-js/internals/well-known-symbol.js"),Ct=ce("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),_t=ce("./node_modules/core-js/internals/define-well-known-symbol.js"),In=ce("./node_modules/core-js/internals/set-to-string-tag.js"),xn=ce("./node_modules/core-js/internals/internal-state.js"),Wn=ce("./node_modules/core-js/internals/array-iteration.js").forEach,ct=It("hidden"),En="Symbol",Rt="prototype",be=Ze("toPrimitive"),de=xn.set,le=xn.getterFor(En),ye=Object[Rt],Ie=Le.Symbol,he=Ve("JSON","stringify"),We=Zt.f,tt=$e.f,dn=lt.f,ut=At.f,zt=xe("symbols"),en=xe("op-symbols"),Sn=xe("string-to-symbol-registry"),yn=xe("symbol-to-string-registry"),ar=xe("wks"),Mt=Le.QObject,nn=!Mt||!Mt[Rt]||!Mt[Rt].findChild,ln=He&&ze(function(){return jt(tt({},"a",{get:function(){return tt(this,"a",{value:7}).a}})).a!=7})?function(nt,gt,Kt){var vn=We(ye,gt);vn&&delete ye[gt],tt(nt,gt,Kt),vn&&nt!==ye&&tt(ye,gt,vn)}:tt,Un=function(nt,gt){var Kt=zt[nt]=jt(Ie[Rt]);return de(Kt,{type:En,tag:nt,description:gt}),He||(Kt.description=gt),Kt},Nn=function(gt,Kt,vn){gt===ye&&Nn(en,Kt,vn),yt(gt);var Rn=pn(Kt);return yt(vn),qe(zt,Rn)?(vn.enumerable?(qe(gt,ct)&>[ct][Rn]&&(gt[ct][Rn]=!1),vn=jt(vn,{enumerable:St(0,!1)})):(qe(gt,ct)||tt(gt,ct,St(1,{})),gt[ct][Rn]=!0),ln(gt,Rn,vn)):tt(gt,Rn,vn)},un=function(gt,Kt){yt(gt);var vn=Et(Kt),Rn=Je(vn).concat(Qn(vn));return Wn(Rn,function(hr){(!He||Xn.call(vn,hr))&&Nn(gt,hr,vn[hr])}),gt},ir=function(gt,Kt){return Kt===void 0?jt(gt):un(jt(gt),Kt)},Xn=function(gt){var Kt=pn(gt),vn=ut.call(this,Kt);return this===ye&&qe(zt,Kt)&&!qe(en,Kt)?!1:vn||!qe(this,Kt)||!qe(zt,Kt)||qe(this,ct)&&this[ct][Kt]?vn:!0},Ft=function(gt,Kt){var vn=Et(gt),Rn=pn(Kt);if(!(vn===ye&&qe(zt,Rn)&&!qe(en,Rn))){var hr=We(vn,Rn);return hr&&qe(zt,Rn)&&!(qe(vn,ct)&&vn[ct][Rn])&&(hr.enumerable=!0),hr}},An=function(gt){var Kt=dn(Et(gt)),vn=[];return Wn(Kt,function(Rn){!qe(zt,Rn)&&!qe(Cn,Rn)&&vn.push(Rn)}),vn},Qn=function(gt){var Kt=gt===ye,vn=dn(Kt?en:Et(gt)),Rn=[];return Wn(vn,function(hr){qe(zt,hr)&&(!Kt||qe(ye,hr))&&Rn.push(zt[hr])}),Rn};if(Ge||(Ie=function(){if(this instanceof Ie)throw TypeError("Symbol is not a constructor");var gt=!arguments.length||arguments[0]===void 0?void 0:Pt(arguments[0]),Kt=mn(gt),vn=function(Rn){this===ye&&vn.call(en,Rn),qe(this,ct)&&qe(this[ct],Kt)&&(this[ct][Kt]=!1),ln(this,Kt,St(1,Rn))};return He&&nn&&ln(ye,Kt,{configurable:!0,set:vn}),Un(Kt,gt)},Te(Ie[Rt],"toString",function(){return le(this).tag}),Te(Ie,"withoutSetter",function(nt){return Un(mn(nt),nt)}),At.f=Xn,$e.f=Nn,Zt.f=Ft,wt.f=lt.f=An,Fe.f=Qn,Ct.f=function(nt){return Un(Ze(nt),nt)},He&&(tt(Ie[Rt],"description",{configurable:!0,get:function(){return le(this).description}}),Ke||Te(ye,"propertyIsEnumerable",Xn,{unsafe:!0}))),ke({global:!0,wrap:!0,forced:!Ge,sham:!Ge},{Symbol:Ie}),Wn(Je(ar),function(nt){_t(nt)}),ke({target:En,stat:!0,forced:!Ge},{for:function(nt){var gt=Pt(nt);if(qe(Sn,gt))return Sn[gt];var Kt=Ie(gt);return Sn[gt]=Kt,yn[Kt]=gt,Kt},keyFor:function(gt){if(!vt(gt))throw TypeError(gt+" is not a symbol");if(qe(yn,gt))return yn[gt]},useSetter:function(){nn=!0},useSimple:function(){nn=!1}}),ke({target:"Object",stat:!0,forced:!Ge,sham:!He},{create:ir,defineProperty:Nn,defineProperties:un,getOwnPropertyDescriptor:Ft}),ke({target:"Object",stat:!0,forced:!Ge},{getOwnPropertyNames:An,getOwnPropertySymbols:Qn}),ke({target:"Object",stat:!0,forced:ze(function(){Fe.f(1)})},{getOwnPropertySymbols:function(gt){return Fe.f(Nt(gt))}}),he){var Jn=!Ge||ze(function(){var nt=Ie();return he([nt])!="[null]"||he({a:nt})!="{}"||he(Object(nt))!="{}"});ke({target:"JSON",stat:!0,forced:Jn},{stringify:function(gt,Kt,vn){for(var Rn=[gt],hr=1,$r;arguments.length>hr;)Rn.push(arguments[hr++]);if($r=Kt,!(!Bt(Kt)&>===void 0||vt(gt)))return pt(Kt)||(Kt=function(Xr,vr){if(typeof $r=="function"&&(vr=$r.call(this,Xr,vr)),!vt(vr))return vr}),Rn[1]=Kt,he.apply(null,Rn)}})}Ie[Rt][be]||Qt(Ie[Rt],be,Ie[Rt].valueOf),In(Ie,En),Cn[ct]=!0},"./node_modules/core-js/modules/web.dom-collections.for-each.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/global.js"),Le=ce("./node_modules/core-js/internals/dom-iterables.js"),Ve=ce("./node_modules/core-js/internals/array-for-each.js"),Ke=ce("./node_modules/core-js/internals/create-non-enumerable-property.js");for(var He in Le){var Ge=ke[He],ze=Ge&&Ge.prototype;if(ze&&ze.forEach!==Ve)try{Ke(ze,"forEach",Ve)}catch(qe){ze.forEach=Ve}}},"./node_modules/core-js/modules/web.dom-collections.iterator.js":function(Me,Pe,ce){var ke=ce("./node_modules/core-js/internals/global.js"),Le=ce("./node_modules/core-js/internals/dom-iterables.js"),Ve=ce("./node_modules/core-js/modules/es.array.iterator.js"),Ke=ce("./node_modules/core-js/internals/create-non-enumerable-property.js"),He=ce("./node_modules/core-js/internals/well-known-symbol.js"),Ge=He("iterator"),ze=He("toStringTag"),qe=Ve.values;for(var pt in Le){var Bt=ke[pt],vt=Bt&&Bt.prototype;if(vt){if(vt[Ge]!==qe)try{Ke(vt,Ge,qe)}catch(Nt){vt[Ge]=qe}if(vt[ze]||Ke(vt,ze,pt),Le[pt]){for(var yt in Ve)if(vt[yt]!==Ve[yt])try{Ke(vt,yt,Ve[yt])}catch(Nt){vt[yt]=Ve[yt]}}}}},"./node_modules/es6-promise/dist/es6-promise.js":function(Me){(function(Pe,ce){Me.exports=ce()})(this,function(){"use strict";function Pe(Mt){var nn=typeof Mt;return Mt!==null&&(nn==="object"||nn==="function")}function ce(Mt){return typeof Mt=="function"}var ke=void 0;Array.isArray?ke=Array.isArray:ke=function(Mt){return Object.prototype.toString.call(Mt)==="[object Array]"};var Le=ke,Ve=0,Ke=void 0,He=void 0,Ge=function(nn,ln){Je[Ve]=nn,Je[Ve+1]=ln,Ve+=2,Ve===2&&(He?He(wt):Fe())};function ze(Mt){He=Mt}function qe(Mt){Ge=Mt}var pt=typeof window!="undefined"?window:void 0,Bt=pt||{},vt=Bt.MutationObserver||Bt.WebKitMutationObserver,yt=typeof self=="undefined"&&typeof oe!="undefined"&&{}.toString.call(oe)==="[object process]",Nt=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function Et(){return function(){return oe.nextTick(wt)}}function pn(){return typeof Ke!="undefined"?function(){Ke(wt)}:jt()}function Pt(){var Mt=0,nn=new vt(wt),ln=document.createTextNode("");return nn.observe(ln,{characterData:!0}),function(){ln.data=Mt=++Mt%2}}function St(){var Mt=new MessageChannel;return Mt.port1.onmessage=wt,function(){return Mt.port2.postMessage(0)}}function jt(){var Mt=setTimeout;return function(){return Mt(wt,1)}}var Je=new Array(1e3);function wt(){for(var Mt=0;Mt<Ve;Mt+=2){var nn=Je[Mt],ln=Je[Mt+1];nn(ln),Je[Mt]=void 0,Je[Mt+1]=void 0}Ve=0}function lt(){try{var Mt=Function("return this")().require("vertx");return Ke=Mt.runOnLoop||Mt.runOnContext,pn()}catch(nn){return jt()}}var Fe=void 0;yt?Fe=Et():vt?Fe=Pt():Nt?Fe=St():pt===void 0?Fe=lt():Fe=jt();function Zt(Mt,nn){var ln=this,Un=new this.constructor(Qt);Un[At]===void 0&&he(Un);var Nn=ln._state;if(Nn){var un=arguments[Nn-1];Ge(function(){return de(Nn,Un,un,ln._result)})}else Rt(ln,Un,Mt,nn);return Un}function $e(Mt){var nn=this;if(Mt&&typeof Mt=="object"&&Mt.constructor===nn)return Mt;var ln=new nn(Qt);return xn(ln,Mt),ln}var At=Math.random().toString(36).substring(2);function Qt(){}var Te=void 0,xe=1,It=2;function Cn(){return new TypeError("You cannot resolve a promise with itself")}function mn(){return new TypeError("A promises callback cannot return that same promise.")}function Ze(Mt,nn,ln,Un){try{Mt.call(nn,ln,Un)}catch(Nn){return Nn}}function Ct(Mt,nn,ln){Ge(function(Un){var Nn=!1,un=Ze(ln,nn,function(ir){Nn||(Nn=!0,nn!==ir?xn(Un,ir):ct(Un,ir))},function(ir){Nn||(Nn=!0,En(Un,ir))},"Settle: "+(Un._label||" unknown promise"));!Nn&&un&&(Nn=!0,En(Un,un))},Mt)}function _t(Mt,nn){nn._state===xe?ct(Mt,nn._result):nn._state===It?En(Mt,nn._result):Rt(nn,void 0,function(ln){return xn(Mt,ln)},function(ln){return En(Mt,ln)})}function In(Mt,nn,ln){nn.constructor===Mt.constructor&&ln===Zt&&nn.constructor.resolve===$e?_t(Mt,nn):ln===void 0?ct(Mt,nn):ce(ln)?Ct(Mt,nn,ln):ct(Mt,nn)}function xn(Mt,nn){if(Mt===nn)En(Mt,Cn());else if(Pe(nn)){var ln=void 0;try{ln=nn.then}catch(Un){En(Mt,Un);return}In(Mt,nn,ln)}else ct(Mt,nn)}function Wn(Mt){Mt._onerror&&Mt._onerror(Mt._result),be(Mt)}function ct(Mt,nn){Mt._state===Te&&(Mt._result=nn,Mt._state=xe,Mt._subscribers.length!==0&&Ge(be,Mt))}function En(Mt,nn){Mt._state===Te&&(Mt._state=It,Mt._result=nn,Ge(Wn,Mt))}function Rt(Mt,nn,ln,Un){var Nn=Mt._subscribers,un=Nn.length;Mt._onerror=null,Nn[un]=nn,Nn[un+xe]=ln,Nn[un+It]=Un,un===0&&Mt._state&&Ge(be,Mt)}function be(Mt){var nn=Mt._subscribers,ln=Mt._state;if(nn.length!==0){for(var Un=void 0,Nn=void 0,un=Mt._result,ir=0;ir<nn.length;ir+=3)Un=nn[ir],Nn=nn[ir+ln],Un?de(ln,Un,Nn,un):Nn(un);Mt._subscribers.length=0}}function de(Mt,nn,ln,Un){var Nn=ce(ln),un=void 0,ir=void 0,Xn=!0;if(Nn){try{un=ln(Un)}catch(Ft){Xn=!1,ir=Ft}if(nn===un){En(nn,mn());return}}else un=Un;nn._state!==Te||(Nn&&Xn?xn(nn,un):Xn===!1?En(nn,ir):Mt===xe?ct(nn,un):Mt===It&&En(nn,un))}function le(Mt,nn){try{nn(function(Un){xn(Mt,Un)},function(Un){En(Mt,Un)})}catch(ln){En(Mt,ln)}}var ye=0;function Ie(){return ye++}function he(Mt){Mt[At]=ye++,Mt._state=void 0,Mt._result=void 0,Mt._subscribers=[]}function We(){return new Error("Array Methods must be provided an Array")}var tt=function(){function Mt(nn,ln){this._instanceConstructor=nn,this.promise=new nn(Qt),this.promise[At]||he(this.promise),Le(ln)?(this.length=ln.length,this._remaining=ln.length,this._result=new Array(this.length),this.length===0?ct(this.promise,this._result):(this.length=this.length||0,this._enumerate(ln),this._remaining===0&&ct(this.promise,this._result))):En(this.promise,We())}return Mt.prototype._enumerate=function(ln){for(var Un=0;this._state===Te&&Un<ln.length;Un++)this._eachEntry(ln[Un],Un)},Mt.prototype._eachEntry=function(ln,Un){var Nn=this._instanceConstructor,un=Nn.resolve;if(un===$e){var ir=void 0,Xn=void 0,Ft=!1;try{ir=ln.then}catch(Qn){Ft=!0,Xn=Qn}if(ir===Zt&&ln._state!==Te)this._settledAt(ln._state,Un,ln._result);else if(typeof ir!="function")this._remaining--,this._result[Un]=ln;else if(Nn===yn){var An=new Nn(Qt);Ft?En(An,Xn):In(An,ln,ir),this._willSettleAt(An,Un)}else this._willSettleAt(new Nn(function(Qn){return Qn(ln)}),Un)}else this._willSettleAt(un(ln),Un)},Mt.prototype._settledAt=function(ln,Un,Nn){var un=this.promise;un._state===Te&&(this._remaining--,ln===It?En(un,Nn):this._result[Un]=Nn),this._remaining===0&&ct(un,this._result)},Mt.prototype._willSettleAt=function(ln,Un){var Nn=this;Rt(ln,void 0,function(un){return Nn._settledAt(xe,Un,un)},function(un){return Nn._settledAt(It,Un,un)})},Mt}();function dn(Mt){return new tt(this,Mt).promise}function ut(Mt){var nn=this;return Le(Mt)?new nn(function(ln,Un){for(var Nn=Mt.length,un=0;un<Nn;un++)nn.resolve(Mt[un]).then(ln,Un)}):new nn(function(ln,Un){return Un(new TypeError("You must pass an array to race."))})}function zt(Mt){var nn=this,ln=new nn(Qt);return En(ln,Mt),ln}function en(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function Sn(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var yn=function(){function Mt(nn){this[At]=Ie(),this._result=this._state=void 0,this._subscribers=[],Qt!==nn&&(typeof nn!="function"&&en(),this instanceof Mt?le(this,nn):Sn())}return Mt.prototype.catch=function(ln){return this.then(null,ln)},Mt.prototype.finally=function(ln){var Un=this,Nn=Un.constructor;return ce(ln)?Un.then(function(un){return Nn.resolve(ln()).then(function(){return un})},function(un){return Nn.resolve(ln()).then(function(){throw un})}):Un.then(ln,ln)},Mt}();yn.prototype.then=Zt,yn.all=dn,yn.race=ut,yn.resolve=$e,yn.reject=zt,yn._setScheduler=ze,yn._setAsap=qe,yn._asap=Ge;function ar(){var Mt=void 0;if(typeof pe.g!="undefined")Mt=pe.g;else if(typeof self!="undefined")Mt=self;else try{Mt=Function("return this")()}catch(Un){throw new Error("polyfill failed because global object is unavailable in this environment")}var nn=Mt.Promise;if(nn){var ln=null;try{ln=Object.prototype.toString.call(nn.resolve())}catch(Un){}if(ln==="[object Promise]"&&!nn.cast)return}Mt.Promise=yn}return yn.polyfill=ar,yn.Promise=yn,yn})},html2canvas:function(Me){"use strict";Me.exports=Xe},jspdf:function(Me){"use strict";Me.exports=qt}},rt={};function at(Me){var Pe=rt[Me];if(Pe!==void 0)return Pe.exports;var ce=rt[Me]={exports:{}};return Ht[Me].call(ce.exports,ce,ce.exports,at),ce.exports}(function(){at.n=function(Me){var Pe=Me&&Me.__esModule?function(){return Me.default}:function(){return Me};return at.d(Pe,{a:Pe}),Pe}})(),function(){at.d=function(Me,Pe){for(var ce in Pe)at.o(Pe,ce)&&!at.o(Me,ce)&&Object.defineProperty(Me,ce,{enumerable:!0,get:Pe[ce]})}}(),function(){at.o=function(Me,Pe){return Object.prototype.hasOwnProperty.call(Me,Pe)}}(),function(){at.r=function(Me){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(Me,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(Me,"__esModule",{value:!0})}}();var Dt={};return function(){"use strict";at.r(Dt);var Me=at("./src/worker.js"),Pe=at("./src/plugin/jspdf-plugin.js"),ce=at("./src/plugin/pagebreaks.js"),ke=at("./src/plugin/hyperlinks.js"),Le=function Ve(Ke,He){var Ge=new Ve.Worker(He);return Ke?Ge.from(Ke).save():Ge};Le.Worker=Me.default,Dt.default=Le}(),Dt=Dt.default,Dt}()})},53307:function(gr,zn,pe){"use strict";pe.r(zn),pe.d(zn,{AcroForm:function(){return Pl},AcroFormAppearance:function(){return Li},AcroFormButton:function(){return To},AcroFormCheckBox:function(){return Ba},AcroFormChoiceField:function(){return Oi},AcroFormComboBox:function(){return Gi},AcroFormEditBox:function(){return Wi},AcroFormListBox:function(){return Wo},AcroFormPasswordField:function(){return Qo},AcroFormPushButton:function(){return Xo},AcroFormRadioButton:function(){return Fo},AcroFormTextField:function(){return ia},GState:function(){return Dh},ShadingPattern:function(){return Wc},TilingPattern:function(){return Gc},default:function(){return ao},jsPDF:function(){return ao}});var oe=pe(43749),qt={},Xe=function(y,E,x,te,re){var ae=new Worker(qt[E]||(qt[E]=URL.createObjectURL(new Blob([y+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return ae.onmessage=function(we){var ve=we.data,Be=ve.$e$;if(Be){var Ee=new Error(Be[0]);Ee.code=Be[1],Ee.stack=Be[2],re(Ee,null)}else re(null,ve)},ae.postMessage(x,te),ae},Ht=Uint8Array,rt=Uint16Array,at=Int32Array,Dt=new Ht([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,0,0,0]),Me=new Ht([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,0,0]),Pe=new Ht([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),ce=function(y,E){for(var x=new rt(31),te=0;te<31;++te)x[te]=E+=1<<y[te-1];for(var re=new at(x[30]),te=1;te<30;++te)for(var ae=x[te];ae<x[te+1];++ae)re[ae]=ae-x[te]<<5|te;return{b:x,r:re}},ke=ce(Dt,2),Le=ke.b,Ve=ke.r;Le[28]=258,Ve[258]=28;for(var Ke=ce(Me,0),He=Ke.b,Ge=Ke.r,ze=new rt(32768),qe=0;qe<32768;++qe){var pt=(qe&43690)>>1|(qe&21845)<<1;pt=(pt&52428)>>2|(pt&13107)<<2,pt=(pt&61680)>>4|(pt&3855)<<4,ze[qe]=((pt&65280)>>8|(pt&255)<<8)>>1}for(var Bt=function(y,E,x){for(var te=y.length,re=0,ae=new rt(E);re<te;++re)y[re]&&++ae[y[re]-1];var we=new rt(E);for(re=1;re<E;++re)we[re]=we[re-1]+ae[re-1]<<1;var ve;if(x){ve=new rt(1<<E);var Be=15-E;for(re=0;re<te;++re)if(y[re])for(var Ee=re<<4|y[re],Ne=E-y[re],et=we[y[re]-1]++<<Ne,ht=et|(1<<Ne)-1;et<=ht;++et)ve[ze[et]>>Be]=Ee}else for(ve=new rt(te),re=0;re<te;++re)y[re]&&(ve[re]=ze[we[y[re]-1]++]>>15-y[re]);return ve},vt=new Ht(288),qe=0;qe<144;++qe)vt[qe]=8;for(var qe=144;qe<256;++qe)vt[qe]=9;for(var qe=256;qe<280;++qe)vt[qe]=7;for(var qe=280;qe<288;++qe)vt[qe]=8;for(var yt=new Ht(32),qe=0;qe<32;++qe)yt[qe]=5;var Nt=Bt(vt,9,0),Et=null,pn=Bt(yt,5,0),Pt=null,St=function(y){for(var E=y[0],x=1;x<y.length;++x)y[x]>E&&(E=y[x]);return E},jt=function(y,E,x){var te=E/8|0;return(y[te]|y[te+1]<<8)>>(E&7)&x},Je=function(y,E){var x=E/8|0;return(y[x]|y[x+1]<<8|y[x+2]<<16)>>(E&7)},wt=function(y){return(y+7)/8|0},lt=function(y,E,x){return(E==null||E<0)&&(E=0),(x==null||x>y.length)&&(x=y.length),new Ht(y.subarray(E,x))},Fe={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},Zt=["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"],$e=function(y,E,x){var te=new Error(E||Zt[y]);if(te.code=y,Error.captureStackTrace&&Error.captureStackTrace(te,$e),!x)throw te;return te},At=function(y,E,x,te){var re=y.length,ae=te?te.length:0;if(!re||E.f&&!E.l)return x||new Ht(0);var we=!x,ve=we||E.i!=2,Be=E.i;we&&(x=new Ht(re*3));var Ee=function(wi){var Ri=x.length;if(wi>Ri){var _i=new Ht(Math.max(Ri*2,wi));_i.set(x),x=_i}},Ne=E.f||0,et=E.p||0,ht=E.b||0,De=E.l,tn=E.d,$t=E.m,on=E.n,Ot=re*8;do{if(!De){Ne=jt(y,et,1);var jn=jt(y,et+1,3);if(et+=3,jn)if(jn==1)De=Et,tn=Pt,$t=9,on=5;else if(jn==2){var Jr=jt(y,et,31)+257,Qr=jt(y,et+10,15)+4,qn=Jr+jt(y,et+5,31)+1;et+=14;for(var Bn=new Ht(qn),ur=new Ht(19),Ut=0;Ut<Qr;++Ut)ur[Pe[Ut]]=jt(y,et+Ut*3,7);et+=Qr*3;for(var an=St(ur),Hn=(1<<an)-1,Pn=Bt(ur,an,1),Ut=0;Ut<qn;){var Ir=Pn[jt(y,et,Hn)];et+=Ir&15;var Dn=Ir>>4;if(Dn<16)Bn[Ut++]=Dn;else{var Tr=0,_r=0;for(Dn==16?(_r=3+jt(y,et,3),et+=2,Tr=Bn[Ut-1]):Dn==17?(_r=3+jt(y,et,7),et+=3):Dn==18&&(_r=11+jt(y,et,127),et+=7);_r--;)Bn[Ut++]=Tr}}var Br=Bn.subarray(0,Jr),Kr=Bn.subarray(Jr);$t=St(Br),on=St(Kr),De=Bt(Br,$t,1),tn=Bt(Kr,on,1)}else $e(1);else{var Dn=wt(et)+4,bn=y[Dn-4]|y[Dn-3]<<8,Er=Dn+bn;if(Er>re){Be&&$e(0);break}ve&&Ee(ht+bn),x.set(y.subarray(Dn,Er),ht),E.b=ht+=bn,E.p=et=Er*8,E.f=Ne;continue}if(et>Ot){Be&&$e(0);break}}ve&&Ee(ht+131072);for(var Si=(1<<$t)-1,li=(1<<on)-1,xt=et;;xt=et){var Tr=De[Je(y,et)&Si],wn=Tr>>4;if(et+=Tr&15,et>Ot){Be&&$e(0);break}if(Tr||$e(2),wn<256)x[ht++]=wn;else if(wn==256){xt=et,De=null;break}else{var On=wn-254;if(wn>264){var Ut=wn-257,Gn=Dt[Ut];On=jt(y,et,(1<<Gn)-1)+Le[Ut],et+=Gn}var or=tn[Je(y,et)&li],yr=or>>4;or||$e(3),et+=or&15;var Kr=He[yr];if(yr>3){var Gn=Me[yr];Kr+=Je(y,et)&(1<<Gn)-1,et+=Gn}if(et>Ot){Be&&$e(0);break}ve&&Ee(ht+131072);var Mr=ht+On;if(ht<Kr){var Hr=ae-Kr,oi=Math.min(Kr,Mr);for(Hr+ht<0&&$e(3);ht<oi;++ht)x[ht]=te[Hr+ht]}for(;ht<Mr;++ht)x[ht]=x[ht-Kr]}}E.l=De,E.p=xt,E.b=ht,E.f=Ne,De&&(Ne=1,E.m=$t,E.d=tn,E.n=on)}while(!Ne);return ht!=x.length&&we?lt(x,0,ht):x.subarray(0,ht)},Qt=function(y,E,x){x<<=E&7;var te=E/8|0;y[te]|=x,y[te+1]|=x>>8},Te=function(y,E,x){x<<=E&7;var te=E/8|0;y[te]|=x,y[te+1]|=x>>8,y[te+2]|=x>>16},xe=function(y,E){for(var x=[],te=0;te<y.length;++te)y[te]&&x.push({s:te,f:y[te]});var re=x.length,ae=x.slice();if(!re)return{t:In,l:0};if(re==1){var we=new Ht(x[0].s+1);return we[x[0].s]=1,{t:we,l:1}}x.sort(function(Er,Jr){return Er.f-Jr.f}),x.push({s:-1,f:25001});var ve=x[0],Be=x[1],Ee=0,Ne=1,et=2;for(x[0]={s:-1,f:ve.f+Be.f,l:ve,r:Be};Ne!=re-1;)ve=x[x[Ee].f<x[et].f?Ee++:et++],Be=x[Ee!=Ne&&x[Ee].f<x[et].f?Ee++:et++],x[Ne++]={s:-1,f:ve.f+Be.f,l:ve,r:Be};for(var ht=ae[0].s,te=1;te<re;++te)ae[te].s>ht&&(ht=ae[te].s);var De=new rt(ht+1),tn=It(x[Ne-1],De,0);if(tn>E){var te=0,$t=0,on=tn-E,Ot=1<<on;for(ae.sort(function(Jr,Qr){return De[Qr.s]-De[Jr.s]||Jr.f-Qr.f});te<re;++te){var jn=ae[te].s;if(De[jn]>E)$t+=Ot-(1<<tn-De[jn]),De[jn]=E;else break}for($t>>=on;$t>0;){var Dn=ae[te].s;De[Dn]<E?$t-=1<<E-De[Dn]++-1:++te}for(;te>=0&&$t;--te){var bn=ae[te].s;De[bn]==E&&(--De[bn],++$t)}tn=E}return{t:new Ht(De),l:tn}},It=function(y,E,x){return y.s==-1?Math.max(It(y.l,E,x+1),It(y.r,E,x+1)):E[y.s]=x},Cn=function(y){for(var E=y.length;E&&!y[--E];);for(var x=new rt(++E),te=0,re=y[0],ae=1,we=function(Be){x[te++]=Be},ve=1;ve<=E;++ve)if(y[ve]==re&&ve!=E)++ae;else{if(!re&&ae>2){for(;ae>138;ae-=138)we(32754);ae>2&&(we(ae>10?ae-11<<5|28690:ae-3<<5|12305),ae=0)}else if(ae>3){for(we(re),--ae;ae>6;ae-=6)we(8304);ae>2&&(we(ae-3<<5|8208),ae=0)}for(;ae--;)we(re);ae=1,re=y[ve]}return{c:x.subarray(0,te),n:E}},mn=function(y,E){for(var x=0,te=0;te<E.length;++te)x+=y[te]*E[te];return x},Ze=function(y,E,x){var te=x.length,re=wt(E+2);y[re]=te&255,y[re+1]=te>>8,y[re+2]=y[re]^255,y[re+3]=y[re+1]^255;for(var ae=0;ae<te;++ae)y[re+ae+4]=x[ae];return(re+4+te)*8},Ct=function(y,E,x,te,re,ae,we,ve,Be,Ee,Ne){Qt(E,Ne++,x),++re[256];for(var et=xe(re,15),ht=et.t,De=et.l,tn=xe(ae,15),$t=tn.t,on=tn.l,Ot=Cn(ht),jn=Ot.c,Dn=Ot.n,bn=Cn($t),Er=bn.c,Jr=bn.n,Qr=new rt(19),qn=0;qn<jn.length;++qn)++Qr[jn[qn]&31];for(var qn=0;qn<Er.length;++qn)++Qr[Er[qn]&31];for(var Bn=xe(Qr,7),ur=Bn.t,Ut=Bn.l,an=19;an>4&&!ur[Pe[an-1]];--an);var Hn=Ee+5<<3,Pn=mn(re,vt)+mn(ae,yt)+we,Ir=mn(re,ht)+mn(ae,$t)+we+14+3*an+mn(Qr,ur)+2*Qr[16]+3*Qr[17]+7*Qr[18];if(Be>=0&&Hn<=Pn&&Hn<=Ir)return Ze(E,Ne,y.subarray(Be,Be+Ee));var Tr,_r,Br,Kr;if(Qt(E,Ne,1+(Ir<Pn)),Ne+=2,Ir<Pn){Tr=Bt(ht,De,0),_r=ht,Br=Bt($t,on,0),Kr=$t;var Si=Bt(ur,Ut,0);Qt(E,Ne,Dn-257),Qt(E,Ne+5,Jr-1),Qt(E,Ne+10,an-4),Ne+=14;for(var qn=0;qn<an;++qn)Qt(E,Ne+3*qn,ur[Pe[qn]]);Ne+=3*an;for(var li=[jn,Er],xt=0;xt<2;++xt)for(var wn=li[xt],qn=0;qn<wn.length;++qn){var On=wn[qn]&31;Qt(E,Ne,Si[On]),Ne+=ur[On],On>15&&(Qt(E,Ne,wn[qn]>>5&127),Ne+=wn[qn]>>12)}}else Tr=Nt,_r=vt,Br=pn,Kr=yt;for(var qn=0;qn<ve;++qn){var Gn=te[qn];if(Gn>255){var On=Gn>>18&31;Te(E,Ne,Tr[On+257]),Ne+=_r[On+257],On>7&&(Qt(E,Ne,Gn>>23&31),Ne+=Dt[On]);var or=Gn&31;Te(E,Ne,Br[or]),Ne+=Kr[or],or>3&&(Te(E,Ne,Gn>>5&8191),Ne+=Me[or])}else Te(E,Ne,Tr[Gn]),Ne+=_r[Gn]}return Te(E,Ne,Tr[256]),Ne+_r[256]},_t=new at([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),In=new Ht(0),xn=function(y,E,x,te,re,ae){var we=ae.z||y.length,ve=new Ht(te+we+5*(1+Math.ceil(we/7e3))+re),Be=ve.subarray(te,ve.length-re),Ee=ae.l,Ne=(ae.r||0)&7;if(E){Ne&&(Be[0]=ae.r>>3);for(var et=_t[E-1],ht=et>>13,De=et&8191,tn=(1<<x)-1,$t=ae.p||new rt(32768),on=ae.h||new rt(tn+1),Ot=Math.ceil(x/3),jn=2*Ot,Dn=function(Io){return(y[Io]^y[Io+1]<<Ot^y[Io+2]<<jn)&tn},bn=new at(25e3),Er=new rt(288),Jr=new rt(32),Qr=0,qn=0,Bn=ae.i||0,ur=0,Ut=ae.w||0,an=0;Bn+2<we;++Bn){var Hn=Dn(Bn),Pn=Bn&32767,Ir=on[Hn];if($t[Pn]=Ir,on[Hn]=Pn,Ut<=Bn){var Tr=we-Bn;if((Qr>7e3||ur>24576)&&(Tr>423||!Ee)){Ne=Ct(y,Be,0,bn,Er,Jr,qn,ur,an,Bn-an,Ne),ur=Qr=qn=0,an=Bn;for(var _r=0;_r<286;++_r)Er[_r]=0;for(var _r=0;_r<30;++_r)Jr[_r]=0}var Br=2,Kr=0,Si=De,li=Pn-Ir&32767;if(Tr>2&&Hn==Dn(Bn-li))for(var xt=Math.min(ht,Tr)-1,wn=Math.min(32767,Bn),On=Math.min(258,Tr);li<=wn&&--Si&&Pn!=Ir;){if(y[Bn+Br]==y[Bn+Br-li]){for(var Gn=0;Gn<On&&y[Bn+Gn]==y[Bn+Gn-li];++Gn);if(Gn>Br){if(Br=Gn,Kr=li,Gn>xt)break;for(var or=Math.min(li,Gn-2),yr=0,_r=0;_r<or;++_r){var Mr=Bn-li+_r&32767,Hr=$t[Mr],oi=Mr-Hr&32767;oi>yr&&(yr=oi,Ir=Mr)}}}Pn=Ir,Ir=$t[Pn],li+=Pn-Ir&32767}if(Kr){bn[ur++]=268435456|Ve[Br]<<18|Ge[Kr];var wi=Ve[Br]&31,Ri=Ge[Kr]&31;qn+=Dt[wi]+Me[Ri],++Er[257+wi],++Jr[Ri],Ut=Bn+Br,++Qr}else bn[ur++]=y[Bn],++Er[y[Bn]]}}for(Bn=Math.max(Bn,Ut);Bn<we;++Bn)bn[ur++]=y[Bn],++Er[y[Bn]];Ne=Ct(y,Be,Ee,bn,Er,Jr,qn,ur,an,Bn-an,Ne),Ee||(ae.r=Ne&7|Be[Ne/8|0]<<3,Ne-=7,ae.h=on,ae.p=$t,ae.i=Bn,ae.w=Ut)}else{for(var Bn=ae.w||0;Bn<we+Ee;Bn+=65535){var _i=Bn+65535;_i>=we&&(Be[Ne/8|0]=Ee,_i=we),Ne=Ze(Be,Ne+1,y.subarray(Bn,_i))}ae.i=we}return lt(ve,0,te+wt(Ne)+re)},Wn=null,ct=function(){var y=-1;return{p:function(E){for(var x=y,te=0;te<E.length;++te)x=Wn[x&255^E[te]]^x>>>8;y=x},d:function(){return~y}}},En=function(){var y=1,E=0;return{p:function(x){for(var te=y,re=E,ae=x.length|0,we=0;we!=ae;){for(var ve=Math.min(we+2655,ae);we<ve;++we)re+=te+=x[we];te=(te&65535)+15*(te>>16),re=(re&65535)+15*(re>>16)}y=te,E=re},d:function(){return y%=65521,E%=65521,(y&255)<<24|(y&65280)<<8|(E&255)<<8|E>>8}}},Rt=function(y,E,x,te,re){if(!re&&(re={l:1},E.dictionary)){var ae=E.dictionary.subarray(-32768),we=new Ht(ae.length+y.length);we.set(ae),we.set(y,ae.length),y=we,re.w=ae.length}return xn(y,E.level==null?6:E.level,E.mem==null?re.l?Math.ceil(Math.max(8,Math.min(13,Math.log(y.length)))*1.5):20:12+E.mem,x,te,re)},be=function(y,E){var x={};for(var te in y)x[te]=y[te];for(var te in E)x[te]=E[te];return x},de=function(y,E,x){for(var te=y(),re=y.toString(),ae=re.slice(re.indexOf("[")+1,re.lastIndexOf("]")).replace(/\s+/g,"").split(","),we=0;we<te.length;++we){var ve=te[we],Be=ae[we];if(typeof ve=="function"){E+=";"+Be+"=";var Ee=ve.toString();if(ve.prototype)if(Ee.indexOf("[native code]")!=-1){var Ne=Ee.indexOf(" ",8)+1;E+=Ee.slice(Ne,Ee.indexOf("(",Ne))}else{E+=Ee;for(var et in ve.prototype)E+=";"+Be+".prototype."+et+"="+ve.prototype[et].toString()}else E+=Ee}else x[Be]=ve}return E},le=null,ye=function(y){var E=[];for(var x in y)y[x].buffer&&E.push((y[x]=new y[x].constructor(y[x])).buffer);return E},Ie=function(y,E,x,te){if(!le[x]){for(var re="",ae={},we=y.length-1,ve=0;ve<we;++ve)re=de(y[ve],re,ae);le[x]={c:de(y[we],re,ae),e:ae}}var Be=be({},le[x].e);return Xe(le[x].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+E.toString()+"}",x,Be,ye(Be),te)},he=function(){return[Ht,rt,at,Dt,Me,Pe,Le,He,Et,Pt,ze,Zt,Bt,St,jt,Je,wt,lt,$e,At,Xr,en,Sn]},We=function(){return[Ht,rt,at,Dt,Me,Pe,Ve,Ge,Nt,vt,pn,yt,ze,_t,In,Bt,Qt,Te,xe,It,Cn,mn,Ze,Ct,wt,lt,xn,Rt,vn,en]},tt=function(){return[un,Ft,Nn,ct,Wn]},dn=function(){return[ir,Xn]},ut=function(){return[An,Nn,En]},zt=function(){return[Qn]},en=function(y){return postMessage(y,[y.buffer])},Sn=function(y){return y&&{out:y.size&&new Ht(y.size),dictionary:y.dictionary}},yn=function(y,E,x,te,re,ae){var we=Ie(x,te,re,function(ve,Be){we.terminate(),ae(ve,Be)});return we.postMessage([y,E],E.consume?[y.buffer]:[]),function(){we.terminate()}},ar=function(y){return y.ondata=function(E,x){return postMessage([E,x],[E.buffer])},function(E){E.data.length?(y.push(E.data[0],E.data[1]),postMessage([E.data[0].length])):y.flush()}},Mt=function(y,E,x,te,re,ae,we){var ve,Be=Ie(y,te,re,function(Ee,Ne){Ee?(Be.terminate(),E.ondata.call(E,Ee)):Array.isArray(Ne)?Ne.length==1?(E.queuedSize-=Ne[0],E.ondrain&&E.ondrain(Ne[0])):(Ne[1]&&Be.terminate(),E.ondata.call(E,Ee,Ne[0],Ne[1])):we(Ne)});Be.postMessage(x),E.queuedSize=0,E.push=function(Ee,Ne){E.ondata||$e(5),ve&&E.ondata($e(4,0,1),null,!!Ne),E.queuedSize+=Ee.length,Be.postMessage([Ee,ve=Ne],[Ee.buffer])},E.terminate=function(){Be.terminate()},ae&&(E.flush=function(){Be.postMessage([])})},nn=function(y,E){return y[E]|y[E+1]<<8},ln=function(y,E){return(y[E]|y[E+1]<<8|y[E+2]<<16|y[E+3]<<24)>>>0},Un=function(y,E){return ln(y,E)+ln(y,E+4)*4294967296},Nn=function(y,E,x){for(;x;++E)y[E]=x,x>>>=8},un=function(y,E){var x=E.filename;if(y[0]=31,y[1]=139,y[2]=8,y[8]=E.level<2?4:E.level==9?2:0,y[9]=3,E.mtime!=0&&Nn(y,4,Math.floor(new Date(E.mtime||Date.now())/1e3)),x){y[3]=8;for(var te=0;te<=x.length;++te)y[te+10]=x.charCodeAt(te)}},ir=function(y){(y[0]!=31||y[1]!=139||y[2]!=8)&&$e(6,"invalid gzip data");var E=y[3],x=10;E&4&&(x+=(y[10]|y[11]<<8)+2);for(var te=(E>>3&1)+(E>>4&1);te>0;te-=!y[x++]);return x+(E&2)},Xn=function(y){var E=y.length;return(y[E-4]|y[E-3]<<8|y[E-2]<<16|y[E-1]<<24)>>>0},Ft=function(y){return 10+(y.filename?y.filename.length+1:0)},An=function(y,E){var x=E.level,te=x==0?0:x<6?1:x==9?3:2;if(y[0]=120,y[1]=te<<6|(E.dictionary&&32),y[1]|=31-(y[0]<<8|y[1])%31,E.dictionary){var re=En();re.p(E.dictionary),Nn(y,2,re.d())}},Qn=function(y,E){return((y[0]&15)!=8||y[0]>>4>7||(y[0]<<8|y[1])%31)&&$e(6,"invalid zlib data"),(y[1]>>5&1)==+!E&&$e(6,"invalid zlib data: "+(y[1]&32?"need":"unexpected")+" dictionary"),(y[1]>>3&4)+2};function Jn(y,E){return typeof y=="function"&&(E=y,y={}),this.ondata=E,y}var nt=null,gt=null;function Kt(y,E,x){return x||(x=E,E={}),typeof x!="function"&&$e(7),yn(y,E,[We],function(te){return en(vn(te.data[0],te.data[1]))},0,x)}function vn(y,E){return Rt(y,E||{},0,0)}var Rn=null,hr=null;function $r(y,E,x){return x||(x=E,E={}),typeof x!="function"&&$e(7),yn(y,E,[he],function(te){return en(Xr(te.data[0],Sn(te.data[1])))},1,x)}function Xr(y,E){return At(y,{i:2},E&&E.out,E&&E.dictionary)}var vr=null,lr=null;function Dr(y,E,x){return x||(x=E,E={}),typeof x!="function"&&$e(7),yn(y,E,[We,tt,function(){return[rr]}],function(te){return en(rr(te.data[0],te.data[1]))},2,x)}function rr(y,E){E||(E={});var x=ct(),te=y.length;x.p(y);var re=Rt(y,E,Ft(E),8),ae=re.length;return un(re,E),Nn(re,ae-8,x.d()),Nn(re,ae-4,te),re}var Tn=null,_n=null;function Ln(y,E,x){return x||(x=E,E={}),typeof x!="function"&&$e(7),yn(y,E,[he,dn,function(){return[mr]}],function(te){return en(mr(te.data[0],te.data[1]))},3,x)}function mr(y,E){var x=ir(y);return x+8>y.length&&$e(6,"invalid gzip data"),At(y.subarray(x,-8),{i:2},E&&E.out||new Ht(Xn(y)),E&&E.dictionary)}var cr=null,pr=null;function Rr(y,E,x){return x||(x=E,E={}),typeof x!="function"&&$e(7),yn(y,E,[We,ut,function(){return[Wr]}],function(te){return en(Wr(te.data[0],te.data[1]))},4,x)}function Wr(y,E){E||(E={});var x=En();x.p(y);var te=Rt(y,E,E.dictionary?6:2,4);return An(te,E),Nn(te,te.length-4,x.d()),te}var Gr=null,ai=null;function ti(y,E,x){return x||(x=E,E={}),typeof x!="function"&&$e(7),yn(y,E,[he,zt,function(){return[xi]}],function(te){return en(xi(te.data[0],Sn(te.data[1])))},5,x)}function xi(y,E){return At(y.subarray(Qn(y,E&&E.dictionary),-4),{i:2},E&&E.out,E&&E.dictionary)}var mi=null,Xt=null;function Kn(y,E,x){return x||(x=E,E={}),typeof x!="function"&&$e(7),y[0]==31&&y[1]==139&&y[2]==8?Ln(y,E,x):(y[0]&15)!=8||y[0]>>4>7||(y[0]<<8|y[1])%31?$r(y,E,x):ti(y,E,x)}function Lr(y,E){return y[0]==31&&y[1]==139&&y[2]==8?mr(y,E):(y[0]&15)!=8||y[0]>>4>7||(y[0]<<8|y[1])%31?Xr(y,E):xi(y,E)}var wr=function(y,E,x,te){for(var re in y){var ae=y[re],we=E+re,ve=te;Array.isArray(ae)&&(ve=be(te,ae[1]),ae=ae[0]),ae instanceof Ht?x[we]=[ae,ve]:(x[we+="/"]=[new Ht(0),ve],wr(ae,we,x,te))}},Lt=typeof TextEncoder!="undefined"&&new TextEncoder,Vt=typeof TextDecoder!="undefined"&&new TextDecoder,ot=0;try{Vt.decode(In,{stream:!0}),ot=1}catch(y){}var kt=function(y){for(var E="",x=0;;){var te=y[x++],re=(te>127)+(te>223)+(te>239);if(x+re>y.length)return{s:E,r:lt(y,x-1)};re?re==3?(te=((te&15)<<18|(y[x++]&63)<<12|(y[x++]&63)<<6|y[x++]&63)-65536,E+=String.fromCharCode(55296|te>>10,56320|te&1023)):re&1?E+=String.fromCharCode((te&31)<<6|y[x++]&63):E+=String.fromCharCode((te&15)<<12|(y[x++]&63)<<6|y[x++]&63):E+=String.fromCharCode(te)}},ft=null,Gt=null;function Fn(y,E){if(E){for(var x=new Ht(y.length),te=0;te<y.length;++te)x[te]=y.charCodeAt(te);return x}if(Lt)return Lt.encode(y);for(var re=y.length,ae=new Ht(y.length+(y.length>>1)),we=0,ve=function(Ne){ae[we++]=Ne},te=0;te<re;++te){if(we+5>ae.length){var Be=new Ht(we+8+(re-te<<1));Be.set(ae),ae=Be}var Ee=y.charCodeAt(te);Ee<128||E?ve(Ee):Ee<2048?(ve(192|Ee>>6),ve(128|Ee&63)):Ee>55295&&Ee<57344?(Ee=65536+(Ee&1047552)|y.charCodeAt(++te)&1023,ve(240|Ee>>18),ve(128|Ee>>12&63),ve(128|Ee>>6&63),ve(128|Ee&63)):(ve(224|Ee>>12),ve(128|Ee>>6&63),ve(128|Ee&63))}return lt(ae,0,we)}function xr(y,E){if(E){for(var x="",te=0;te<y.length;te+=16384)x+=String.fromCharCode.apply(null,y.subarray(te,te+16384));return x}else{if(Vt)return Vt.decode(y);var re=kt(y),ae=re.s,x=re.r;return x.length&&$e(8),ae}}var Or=function(y){return y==1?3:y<6?2:y==9?1:0},kr=function(y,E){return E+30+nn(y,E+26)+nn(y,E+28)},dr=function(y,E,x){var te=nn(y,E+28),re=xr(y.subarray(E+46,E+46+te),!(nn(y,E+8)&2048)),ae=E+46+te,we=ln(y,E+20),ve=x&&we==4294967295?Zn(y,ae):[we,ln(y,E+24),ln(y,E+42)],Be=ve[0],Ee=ve[1],Ne=ve[2];return[nn(y,E+10),Be,Ee,re,ae+nn(y,E+30)+nn(y,E+32),Ne]},Zn=function(y,E){for(;nn(y,E)!=1;E+=4+nn(y,E+2));return[Un(y,E+12),Un(y,E+4),Un(y,E+20)]},Mn=function(y){var E=0;if(y)for(var x in y){var te=y[x].length;te>65535&&$e(9),E+=te+4}return E},Ur=function(y,E,x,te,re,ae,we,ve){var Be=te.length,Ee=x.extra,Ne=ve&&ve.length,et=Mn(Ee);Nn(y,E,we!=null?33639248:67324752),E+=4,we!=null&&(y[E++]=20,y[E++]=x.os),y[E]=20,E+=2,y[E++]=x.flag<<1|(ae<0&&8),y[E++]=re&&8,y[E++]=x.compression&255,y[E++]=x.compression>>8;var ht=new Date(x.mtime==null?Date.now():x.mtime),De=ht.getFullYear()-1980;if((De<0||De>119)&&$e(10),Nn(y,E,De<<25|ht.getMonth()+1<<21|ht.getDate()<<16|ht.getHours()<<11|ht.getMinutes()<<5|ht.getSeconds()>>1),E+=4,ae!=-1&&(Nn(y,E,x.crc),Nn(y,E+4,ae<0?-ae-2:ae),Nn(y,E+8,x.size)),Nn(y,E+12,Be),Nn(y,E+14,et),E+=16,we!=null&&(Nn(y,E,Ne),Nn(y,E+6,x.attrs),Nn(y,E+10,we),E+=14),y.set(te,E),E+=Be,et)for(var tn in Ee){var $t=Ee[tn],on=$t.length;Nn(y,E,+tn),Nn(y,E+2,on),y.set($t,E+4),E+=4+on}return Ne&&(y.set(ve,E),E+=Ne),E},si=function(y,E,x,te,re){Nn(y,E,101010256),Nn(y,E+8,x),Nn(y,E+10,x),Nn(y,E+12,te),Nn(y,E+16,re)},ei=null,Ai=null,Ki=null,Vi=null;function eo(y,E,x){x||(x=E,E={}),typeof x!="function"&&$e(7);var te={};wr(y,"",te,E);var re=Object.keys(te),ae=re.length,we=0,ve=0,Be=ae,Ee=new Array(ae),Ne=[],et=function(){for(var on=0;on<Ne.length;++on)Ne[on]()},ht=function(on,Ot){Zi(function(){x(on,Ot)})};Zi(function(){ht=x});var De=function(){var on=new Ht(ve+22),Ot=we,jn=ve-we;ve=0;for(var Dn=0;Dn<Be;++Dn){var bn=Ee[Dn];try{var Er=bn.c.length;Ur(on,ve,bn,bn.f,bn.u,Er);var Jr=30+bn.f.length+Mn(bn.extra),Qr=ve+Jr;on.set(bn.c,Qr),Ur(on,we,bn,bn.f,bn.u,Er,ve,bn.m),we+=16+Jr+(bn.m?bn.m.length:0),ve=Qr+Er}catch(qn){return ht(qn,null)}}si(on,we,Ee.length,jn,Ot),ht(null,on)};ae||De();for(var tn=function(on){var Ot=re[on],jn=te[Ot],Dn=jn[0],bn=jn[1],Er=ct(),Jr=Dn.length;Er.p(Dn);var Qr=Fn(Ot),qn=Qr.length,Bn=bn.comment,ur=Bn&&Fn(Bn),Ut=ur&&ur.length,an=Mn(bn.extra),Hn=bn.level==0?0:8,Pn=function(Ir,Tr){if(Ir)et(),ht(Ir,null);else{var _r=Tr.length;Ee[on]=be(bn,{size:Jr,crc:Er.d(),c:Tr,f:Qr,m:ur,u:qn!=Ot.length||ur&&Bn.length!=Ut,compression:Hn}),we+=30+qn+an+_r,ve+=76+2*(qn+an)+(Ut||0)+_r,--ae||De()}};if(qn>65535&&Pn($e(11,0,1),null),!Hn)Pn(null,Dn);else if(Jr<16e4)try{Pn(null,vn(Dn,bn))}catch(Ir){Pn(Ir,null)}else Ne.push(Kt(Dn,bn,Pn))},$t=0;$t<Be;++$t)tn($t);return et}function Di(y,E){E||(E={});var x={},te=[];wr(y,"",x,E);var re=0,ae=0;for(var we in x){var ve=x[we],Be=ve[0],Ee=ve[1],Ne=Ee.level==0?0:8,et=Fn(we),ht=et.length,De=Ee.comment,tn=De&&Fn(De),$t=tn&&tn.length,on=Mn(Ee.extra);ht>65535&&$e(11);var Ot=Ne?vn(Be,Ee):Be,jn=Ot.length,Dn=ct();Dn.p(Be),te.push(be(Ee,{size:Be.length,crc:Dn.d(),c:Ot,f:et,m:tn,u:ht!=we.length||tn&&De.length!=$t,o:re,compression:Ne})),re+=30+ht+on+jn,ae+=76+2*(ht+on)+($t||0)+jn}for(var bn=new Ht(ae+22),Er=re,Jr=ae-re,Qr=0;Qr<te.length;++Qr){var et=te[Qr];Ur(bn,et.o,et,et.f,et.u,et.c.length);var qn=30+et.f.length+Mn(et.extra);bn.set(et.c,et.o+qn),Ur(bn,re,et,et.f,et.u,et.c.length,et.o,et.m),re+=16+qn+(et.m?et.m.length:0)}return si(bn,re,te.length,Jr,Er),bn}var bi=null,Fi=null,ki=null,uo=null,Zi=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(y){y()};function co(y,E,x){x||(x=E,E={}),typeof x!="function"&&$e(7);var te=[],re=function(){for(var on=0;on<te.length;++on)te[on]()},ae={},we=function(on,Ot){Zi(function(){x(on,Ot)})};Zi(function(){we=x});for(var ve=y.length-22;ln(y,ve)!=101010256;--ve)if(!ve||y.length-ve>65558)return we($e(13,0,1),null),re;var Be=nn(y,ve+8);if(Be){var Ee=Be,Ne=ln(y,ve+16),et=Ne==4294967295||Ee==65535;if(et){var ht=ln(y,ve-12);et=ln(y,ht)==101075792,et&&(Ee=Be=ln(y,ht+32),Ne=ln(y,ht+48))}for(var De=E&&E.filter,tn=function(on){var Ot=dr(y,Ne,et),jn=Ot[0],Dn=Ot[1],bn=Ot[2],Er=Ot[3],Jr=Ot[4],Qr=Ot[5],qn=kr(y,Qr);Ne=Jr;var Bn=function(Ut,an){Ut?(re(),we(Ut,null)):(an&&(ae[Er]=an),--Be||we(null,ae))};if(!De||De({name:Er,size:Dn,originalSize:bn,compression:jn}))if(!jn)Bn(null,lt(y,qn,qn+Dn));else if(jn==8){var ur=y.subarray(qn,qn+Dn);if(bn<524288||Dn>.8*bn)try{Bn(null,Xr(ur,{out:new Ht(bn)}))}catch(Ut){Bn(Ut,null)}else te.push($r(ur,{size:bn},Bn))}else Bn($e(14,"unknown compression type "+jn,1),null);else Bn(null,null)},$t=0;$t<Ee;++$t)tn($t)}else we(null,{});return re}function oo(y,E){for(var x={},te=y.length-22;ln(y,te)!=101010256;--te)(!te||y.length-te>65558)&&$e(13);var re=nn(y,te+8);if(!re)return{};var ae=ln(y,te+16),we=ae==4294967295||re==65535;if(we){var ve=ln(y,te-12);we=ln(y,ve)==101075792,we&&(re=ln(y,ve+32),ae=ln(y,ve+48))}for(var Be=E&&E.filter,Ee=0;Ee<re;++Ee){var Ne=dr(y,ae,we),et=Ne[0],ht=Ne[1],De=Ne[2],tn=Ne[3],$t=Ne[4],on=Ne[5],Ot=kr(y,on);ae=$t,(!Be||Be({name:tn,size:ht,originalSize:De,compression:et}))&&(et?et==8?x[tn]=Xr(y.subarray(Ot,Ot+ht),{out:new Ht(De)}):$e(14,"unknown compression type "+et):x[tn]=lt(y,Ot,Ot+ht))}return x}var Yi=pe(72190);function Xi(y,E="utf8"){return new TextDecoder(E).decode(y)}const Oo=new TextEncoder;function go(y){return Oo.encode(y)}const bo=1024*8,Po=(()=>{const y=new Uint8Array(4),E=new Uint32Array(y.buffer);return!((E[0]=1)&y[0])})(),Ho={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 $i{constructor(E=bo,x={}){Va(this,"buffer");Va(this,"byteLength");Va(this,"byteOffset");Va(this,"length");Va(this,"offset");Va(this,"lastWrittenByte");Va(this,"littleEndian");Va(this,"_data");Va(this,"_mark");Va(this,"_marks");let te=!1;typeof E=="number"?E=new ArrayBuffer(E):(te=!0,this.lastWrittenByte=E.byteLength);const re=x.offset?x.offset>>>0:0,ae=E.byteLength-re;let we=re;(ArrayBuffer.isView(E)||E instanceof $i)&&(E.byteLength!==E.buffer.byteLength&&(we=E.byteOffset+re),E=E.buffer),te?this.lastWrittenByte=ae:this.lastWrittenByte=0,this.buffer=E,this.length=ae,this.byteLength=ae,this.byteOffset=we,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,we,ae),this._mark=0,this._marks=[]}available(E=1){return this.offset+E<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(E=1){return this.offset+=E,this}back(E=1){return this.offset-=E,this}seek(E){return this.offset=E,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 E=this._marks.pop();if(E===void 0)throw new Error("Mark stack empty");return this.seek(E),this}rewind(){return this.offset=0,this}ensureAvailable(E=1){if(!this.available(E)){const te=(this.offset+E)*2,re=new Uint8Array(te);re.set(new Uint8Array(this.buffer)),this.buffer=re.buffer,this.length=te,this.byteLength=te,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(E=1){return this.readArray(E,"uint8")}readArray(E,x){const te=Ho[x].BYTES_PER_ELEMENT*E,re=this.byteOffset+this.offset,ae=this.buffer.slice(re,re+te);if(this.littleEndian===Po&&x!=="uint8"&&x!=="int8"){const ve=new Uint8Array(this.buffer.slice(re,re+te));ve.reverse();const Be=new Ho[x](ve.buffer);return this.offset+=te,Be.reverse(),Be}const we=new Ho[x](ae);return this.offset+=te,we}readInt16(){const E=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,E}readUint16(){const E=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,E}readInt32(){const E=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,E}readUint32(){const E=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,E}readFloat32(){const E=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,E}readFloat64(){const E=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,E}readBigInt64(){const E=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,E}readBigUint64(){const E=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,E}readChar(){return String.fromCharCode(this.readInt8())}readChars(E=1){let x="";for(let te=0;te<E;te++)x+=this.readChar();return x}readUtf8(E=1){return Xi(this.readBytes(E))}decodeText(E=1,x="utf8"){return Xi(this.readBytes(E),x)}writeBoolean(E){return this.writeUint8(E?255:0),this}writeInt8(E){return this.ensureAvailable(1),this._data.setInt8(this.offset++,E),this._updateLastWrittenByte(),this}writeUint8(E){return this.ensureAvailable(1),this._data.setUint8(this.offset++,E),this._updateLastWrittenByte(),this}writeByte(E){return this.writeUint8(E)}writeBytes(E){this.ensureAvailable(E.length);for(let x=0;x<E.length;x++)this._data.setUint8(this.offset++,E[x]);return this._updateLastWrittenByte(),this}writeInt16(E){return this.ensureAvailable(2),this._data.setInt16(this.offset,E,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeUint16(E){return this.ensureAvailable(2),this._data.setUint16(this.offset,E,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeInt32(E){return this.ensureAvailable(4),this._data.setInt32(this.offset,E,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeUint32(E){return this.ensureAvailable(4),this._data.setUint32(this.offset,E,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat32(E){return this.ensureAvailable(4),this._data.setFloat32(this.offset,E,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat64(E){return this.ensureAvailable(8),this._data.setFloat64(this.offset,E,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigInt64(E){return this.ensureAvailable(8),this._data.setBigInt64(this.offset,E,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigUint64(E){return this.ensureAvailable(8),this._data.setBigUint64(this.offset,E,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeChar(E){return this.writeUint8(E.charCodeAt(0))}writeChars(E){for(let x=0;x<E.length;x++)this.writeUint8(E.charCodeAt(x));return this}writeUtf8(E){return this.writeBytes(go(E))}toArray(){return new Uint8Array(this.buffer,this.byteOffset,this.lastWrittenByte)}getWrittenByteLength(){return this.lastWrittenByte-this.byteOffset}_updateLastWrittenByte(){this.offset>this.lastWrittenByte&&(this.lastWrittenByte=this.offset)}}const Bo=4,Pi=0,Ko=1,Ua=2;function Oa(y){let E=y.length;for(;--E>=0;)y[E]=0}const Jo=0,Vo=1,qo=2,ma=3,Ma=258,mo=29,Ti=256,Pr=Ti+1+mo,jr=30,Vr=19,Sr=2*Pr+1,hi=15,Ii=16,Fr=7,zr=256,fi=16,vi=17,to=18,Zo=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]),Do=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]),ra=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),ea=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),va=512,Aa=new Array((Pr+2)*2);Oa(Aa);const Ro=new Array(jr*2);Oa(Ro);const Ia=new Array(va);Oa(Ia);const qa=new Array(Ma-ma+1);Oa(qa);const mA=new Array(mo);Oa(mA);const EA=new Array(jr);Oa(EA);function qs(y,E,x,te,re){this.static_tree=y,this.extra_bits=E,this.extra_base=x,this.elems=te,this.max_length=re,this.has_stree=y&&y.length}let eA,Bl,ya;function Cl(y,E){this.dyn_tree=y,this.max_code=0,this.stat_desc=E}const ws=y=>y<256?Ia[y]:Ia[256+(y>>>7)],tA=(y,E)=>{y.pending_buf[y.pending++]=E&255,y.pending_buf[y.pending++]=E>>>8&255},bs=(y,E,x)=>{y.bi_valid>Ii-x?(y.bi_buf|=E<<y.bi_valid&65535,tA(y,y.bi_buf),y.bi_buf=E>>Ii-y.bi_valid,y.bi_valid+=x-Ii):(y.bi_buf|=E<<y.bi_valid&65535,y.bi_valid+=x)},Ts=(y,E,x)=>{bs(y,x[E*2],x[E*2+1])},nA=(y,E)=>{let x=0;do x|=y&1,y>>>=1,x<<=1;while(--E>0);return x>>>1},vA=y=>{y.bi_valid===16?(tA(y,y.bi_buf),y.bi_buf=0,y.bi_valid=0):y.bi_valid>=8&&(y.pending_buf[y.pending++]=y.bi_buf&255,y.bi_buf>>=8,y.bi_valid-=8)},es=(y,E)=>{const x=E.dyn_tree,te=E.max_code,re=E.stat_desc.static_tree,ae=E.stat_desc.has_stree,we=E.stat_desc.extra_bits,ve=E.stat_desc.extra_base,Be=E.stat_desc.max_length;let Ee,Ne,et,ht,De,tn,$t=0;for(ht=0;ht<=hi;ht++)y.bl_count[ht]=0;for(x[y.heap[y.heap_max]*2+1]=0,Ee=y.heap_max+1;Ee<Sr;Ee++)Ne=y.heap[Ee],ht=x[x[Ne*2+1]*2+1]+1,ht>Be&&(ht=Be,$t++),x[Ne*2+1]=ht,!(Ne>te)&&(y.bl_count[ht]++,De=0,Ne>=ve&&(De=we[Ne-ve]),tn=x[Ne*2],y.opt_len+=tn*(ht+De),ae&&(y.static_len+=tn*(re[Ne*2+1]+De)));if($t!==0){do{for(ht=Be-1;y.bl_count[ht]===0;)ht--;y.bl_count[ht]--,y.bl_count[ht+1]+=2,y.bl_count[Be]--,$t-=2}while($t>0);for(ht=Be;ht!==0;ht--)for(Ne=y.bl_count[ht];Ne!==0;)et=y.heap[--Ee],!(et>te)&&(x[et*2+1]!==ht&&(y.opt_len+=(ht-x[et*2+1])*x[et*2],x[et*2+1]=ht),Ne--)}},ZA=(y,E,x)=>{const te=new Array(hi+1);let re=0,ae,we;for(ae=1;ae<=hi;ae++)re=re+x[ae-1]<<1,te[ae]=re;for(we=0;we<=E;we++){let ve=y[we*2+1];ve!==0&&(y[we*2]=nA(te[ve]++,ve))}},mu=()=>{let y,E,x,te,re;const ae=new Array(hi+1);for(x=0,te=0;te<mo-1;te++)for(mA[te]=x,y=0;y<1<<Zo[te];y++)qa[x++]=te;for(qa[x-1]=te,re=0,te=0;te<16;te++)for(EA[te]=re,y=0;y<1<<Do[te];y++)Ia[re++]=te;for(re>>=7;te<jr;te++)for(EA[te]=re<<7,y=0;y<1<<Do[te]-7;y++)Ia[256+re++]=te;for(E=0;E<=hi;E++)ae[E]=0;for(y=0;y<=143;)Aa[y*2+1]=8,y++,ae[8]++;for(;y<=255;)Aa[y*2+1]=9,y++,ae[9]++;for(;y<=279;)Aa[y*2+1]=7,y++,ae[7]++;for(;y<=287;)Aa[y*2+1]=8,y++,ae[8]++;for(ZA(Aa,Pr+1,ae),y=0;y<jr;y++)Ro[y*2+1]=5,Ro[y*2]=nA(y,5);eA=new qs(Aa,Zo,Ti+1,Pr,hi),Bl=new qs(Ro,Do,0,jr,hi),ya=new qs(new Array(0),ra,0,Vr,Fr)},ul=y=>{let E;for(E=0;E<Pr;E++)y.dyn_ltree[E*2]=0;for(E=0;E<jr;E++)y.dyn_dtree[E*2]=0;for(E=0;E<Vr;E++)y.bl_tree[E*2]=0;y.dyn_ltree[zr*2]=1,y.opt_len=y.static_len=0,y.sym_next=y.matches=0},ps=y=>{y.bi_valid>8?tA(y,y.bi_buf):y.bi_valid>0&&(y.pending_buf[y.pending++]=y.bi_buf),y.bi_buf=0,y.bi_valid=0},vu=(y,E,x,te)=>{const re=E*2,ae=x*2;return y[re]<y[ae]||y[re]===y[ae]&&te[E]<=te[x]},kl=(y,E,x)=>{const te=y.heap[x];let re=x<<1;for(;re<=y.heap_len&&(re<y.heap_len&&vu(E,y.heap[re+1],y.heap[re],y.depth)&&re++,!vu(E,te,y.heap[re],y.depth));)y.heap[x]=y.heap[re],x=re,re<<=1;y.heap[x]=te},io=(y,E,x)=>{let te,re,ae=0,we,ve;if(y.sym_next!==0)do te=y.pending_buf[y.sym_buf+ae++]&255,te+=(y.pending_buf[y.sym_buf+ae++]&255)<<8,re=y.pending_buf[y.sym_buf+ae++],te===0?Ts(y,re,E):(we=qa[re],Ts(y,we+Ti+1,E),ve=Zo[we],ve!==0&&(re-=mA[we],bs(y,re,ve)),te--,we=ws(te),Ts(y,we,x),ve=Do[we],ve!==0&&(te-=EA[we],bs(y,te,ve)));while(ae<y.sym_next);Ts(y,zr,E)},So=(y,E)=>{const x=E.dyn_tree,te=E.stat_desc.static_tree,re=E.stat_desc.has_stree,ae=E.stat_desc.elems;let we,ve,Be=-1,Ee;for(y.heap_len=0,y.heap_max=Sr,we=0;we<ae;we++)x[we*2]!==0?(y.heap[++y.heap_len]=Be=we,y.depth[we]=0):x[we*2+1]=0;for(;y.heap_len<2;)Ee=y.heap[++y.heap_len]=Be<2?++Be:0,x[Ee*2]=1,y.depth[Ee]=0,y.opt_len--,re&&(y.static_len-=te[Ee*2+1]);for(E.max_code=Be,we=y.heap_len>>1;we>=1;we--)kl(y,x,we);Ee=ae;do we=y.heap[1],y.heap[1]=y.heap[y.heap_len--],kl(y,x,1),ve=y.heap[1],y.heap[--y.heap_max]=we,y.heap[--y.heap_max]=ve,x[Ee*2]=x[we*2]+x[ve*2],y.depth[Ee]=(y.depth[we]>=y.depth[ve]?y.depth[we]:y.depth[ve])+1,x[we*2+1]=x[ve*2+1]=Ee,y.heap[1]=Ee++,kl(y,x,1);while(y.heap_len>=2);y.heap[--y.heap_max]=y.heap[1],es(y,E),ZA(x,Be,y.bl_count)},vo=(y,E,x)=>{let te,re=-1,ae,we=E[0*2+1],ve=0,Be=7,Ee=4;for(we===0&&(Be=138,Ee=3),E[(x+1)*2+1]=65535,te=0;te<=x;te++)ae=we,we=E[(te+1)*2+1],!(++ve<Be&&ae===we)&&(ve<Ee?y.bl_tree[ae*2]+=ve:ae!==0?(ae!==re&&y.bl_tree[ae*2]++,y.bl_tree[fi*2]++):ve<=10?y.bl_tree[vi*2]++:y.bl_tree[to*2]++,ve=0,re=ae,we===0?(Be=138,Ee=3):ae===we?(Be=6,Ee=3):(Be=7,Ee=4))},Eo=(y,E,x)=>{let te,re=-1,ae,we=E[0*2+1],ve=0,Be=7,Ee=4;for(we===0&&(Be=138,Ee=3),te=0;te<=x;te++)if(ae=we,we=E[(te+1)*2+1],!(++ve<Be&&ae===we)){if(ve<Ee)do Ts(y,ae,y.bl_tree);while(--ve!==0);else ae!==0?(ae!==re&&(Ts(y,ae,y.bl_tree),ve--),Ts(y,fi,y.bl_tree),bs(y,ve-3,2)):ve<=10?(Ts(y,vi,y.bl_tree),bs(y,ve-3,3)):(Ts(y,to,y.bl_tree),bs(y,ve-11,7));ve=0,re=ae,we===0?(Be=138,Ee=3):ae===we?(Be=6,Ee=3):(Be=7,Ee=4)}},la=y=>{let E;for(vo(y,y.dyn_ltree,y.l_desc.max_code),vo(y,y.dyn_dtree,y.d_desc.max_code),So(y,y.bl_desc),E=Vr-1;E>=3&&y.bl_tree[ea[E]*2+1]===0;E--);return y.opt_len+=3*(E+1)+5+5+4,E},Da=(y,E,x,te)=>{let re;for(bs(y,E-257,5),bs(y,x-1,5),bs(y,te-4,4),re=0;re<te;re++)bs(y,y.bl_tree[ea[re]*2+1],3);Eo(y,y.dyn_ltree,E-1),Eo(y,y.dyn_dtree,x-1)},ua=y=>{let E=4093624447,x;for(x=0;x<=31;x++,E>>>=1)if(E&1&&y.dyn_ltree[x*2]!==0)return Pi;if(y.dyn_ltree[9*2]!==0||y.dyn_ltree[10*2]!==0||y.dyn_ltree[13*2]!==0)return Ko;for(x=32;x<Ti;x++)if(y.dyn_ltree[x*2]!==0)return Ko;return Pi};let rA=!1;const Is=y=>{rA||(mu(),rA=!0),y.l_desc=new Cl(y.dyn_ltree,eA),y.d_desc=new Cl(y.dyn_dtree,Bl),y.bl_desc=new Cl(y.bl_tree,ya),y.bi_buf=0,y.bi_valid=0,ul(y)},ls=(y,E,x,te)=>{bs(y,(Jo<<1)+(te?1:0),3),ps(y),tA(y,x),tA(y,~x),x&&y.pending_buf.set(y.window.subarray(E,E+x),y.pending),y.pending+=x},iA=y=>{bs(y,Vo<<1,3),Ts(y,zr,Aa),vA(y)},Qs=(y,E,x,te)=>{let re,ae,we=0;y.level>0?(y.strm.data_type===Ua&&(y.strm.data_type=ua(y)),So(y,y.l_desc),So(y,y.d_desc),we=la(y),re=y.opt_len+3+7>>>3,ae=y.static_len+3+7>>>3,ae<=re&&(re=ae)):re=ae=x+5,x+4<=re&&E!==-1?ls(y,E,x,te):y.strategy===Bo||ae===re?(bs(y,(Vo<<1)+(te?1:0),3),io(y,Aa,Ro)):(bs(y,(qo<<1)+(te?1:0),3),Da(y,y.l_desc.max_code+1,y.d_desc.max_code+1,we+1),io(y,y.dyn_ltree,y.dyn_dtree)),ul(y),te&&ps(y)},_A=(y,E,x)=>(y.pending_buf[y.sym_buf+y.sym_next++]=E,y.pending_buf[y.sym_buf+y.sym_next++]=E>>8,y.pending_buf[y.sym_buf+y.sym_next++]=x,E===0?y.dyn_ltree[x*2]++:(y.matches++,E--,y.dyn_ltree[(qa[x]+Ti+1)*2]++,y.dyn_dtree[ws(E)*2]++),y.sym_next===y.sym_end);var oA=Is,Za=ls,cl=Qs,gs=_A,Af=iA,xl={_tr_init:oA,_tr_stored_block:Za,_tr_flush_block:cl,_tr_tally:gs,_tr_align:Af},da=(y,E,x,te)=>{let re=y&65535|0,ae=y>>>16&65535|0,we=0;for(;x!==0;){we=x>2e3?2e3:x,x-=we;do re=re+E[te++]|0,ae=ae+re|0;while(--we);re%=65521,ae%=65521}return re|ae<<16|0};const XA=()=>{let y,E=[];for(var x=0;x<256;x++){y=x;for(var te=0;te<8;te++)y=y&1?3988292384^y>>>1:y>>>1;E[x]=y}return E},lf=new Uint32Array(XA());var Bs=(y,E,x,te)=>{const re=lf,ae=te+x;y^=-1;for(let we=te;we<ae;we++)y=y>>>8^re[(y^E[we])&255];return y^-1},YA={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"},Hl={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:Bc,_tr_stored_block:Ks,_tr_flush_block:kA,_tr_tally:Ms,_tr_align:Cs}=xl,{Z_NO_FLUSH:_s,Z_PARTIAL_FLUSH:Gu,Z_FULL_FLUSH:uf,Z_FINISH:ks,Z_BLOCK:aA,Z_OK:Co,Z_STREAM_END:Lo,Z_STREAM_ERROR:xa,Z_DATA_ERROR:sA,Z_BUF_ERROR:us,Z_DEFAULT_COMPRESSION:fs,Z_FILTERED:fl,Z_HUFFMAN_ONLY:SA,Z_RLE:Vl,Z_FIXED:cs,Z_DEFAULT_STRATEGY:FA,Z_UNKNOWN:El,Z_DEFLATED:Sl}=Hl,Cc=9,Yh=15,id=8,Ws=256+1+29,Zl=30,$l=19,cf=2*Ws+1,Jh=15,wa=3,IA=258,Fl=IA+wa+1,qh=32,Il=42,$d=57,xc=69,od=73,ad=91,ff=103,dl=113,yu=666,xs=1,Xl=2,$u=3,Yl=4,Xp=3,Jl=(y,E)=>(y.msg=YA[E],E),sd=y=>y*2-(y>4?9:0),JA=y=>{let E=y.length;for(;--E>=0;)y[E]=0},wu=y=>{let E,x,te,re=y.w_size;E=y.hash_size,te=E;do x=y.head[--te],y.head[te]=x>=re?x-re:0;while(--E);E=re,te=E;do x=y.prev[--te],y.prev[te]=x>=re?x-re:0;while(--E)};let Ll=(y,E,x)=>(E<<y.hash_shift^x)&y.hash_mask;const HA=y=>{const E=y.state;let x=E.pending;x>y.avail_out&&(x=y.avail_out),x!==0&&(y.output.set(E.pending_buf.subarray(E.pending_out,E.pending_out+x),y.next_out),y.next_out+=x,E.pending_out+=x,y.total_out+=x,y.avail_out-=x,E.pending-=x,E.pending===0&&(E.pending_out=0))},AA=(y,E)=>{kA(y,y.block_start>=0?y.block_start:-1,y.strstart-y.block_start,E),y.block_start=y.strstart,HA(y.strm)},Ea=(y,E)=>{y.pending_buf[y.pending++]=E},Ul=(y,E)=>{y.pending_buf[y.pending++]=E>>>8&255,y.pending_buf[y.pending++]=E&255},Xu=(y,E,x,te)=>{let re=y.avail_in;return re>te&&(re=te),re===0?0:(y.avail_in-=re,E.set(y.input.subarray(y.next_in,y.next_in+re),x),y.state.wrap===1?y.adler=da(y.adler,E,re,x):y.state.wrap===2&&(y.adler=Bs(y.adler,E,re,x)),y.next_in+=re,y.total_in+=re,re)},bu=(y,E)=>{let x=y.max_chain_length,te=y.strstart,re,ae,we=y.prev_length,ve=y.nice_match;const Be=y.strstart>y.w_size-Fl?y.strstart-(y.w_size-Fl):0,Ee=y.window,Ne=y.w_mask,et=y.prev,ht=y.strstart+IA;let De=Ee[te+we-1],tn=Ee[te+we];y.prev_length>=y.good_match&&(x>>=2),ve>y.lookahead&&(ve=y.lookahead);do if(re=E,!(Ee[re+we]!==tn||Ee[re+we-1]!==De||Ee[re]!==Ee[te]||Ee[++re]!==Ee[te+1])){te+=2,re++;do;while(Ee[++te]===Ee[++re]&&Ee[++te]===Ee[++re]&&Ee[++te]===Ee[++re]&&Ee[++te]===Ee[++re]&&Ee[++te]===Ee[++re]&&Ee[++te]===Ee[++re]&&Ee[++te]===Ee[++re]&&Ee[++te]===Ee[++re]&&te<ht);if(ae=IA-(ht-te),te=ht-IA,ae>we){if(y.match_start=E,we=ae,ae>=ve)break;De=Ee[te+we-1],tn=Ee[te+we]}}while((E=et[E&Ne])>Be&&--x!==0);return we<=y.lookahead?we:y.lookahead},Rl=y=>{const E=y.w_size;let x,te,re;do{if(te=y.window_size-y.lookahead-y.strstart,y.strstart>=E+(E-Fl)&&(y.window.set(y.window.subarray(E,E+E-te),0),y.match_start-=E,y.strstart-=E,y.block_start-=E,y.insert>y.strstart&&(y.insert=y.strstart),wu(y),te+=E),y.strm.avail_in===0)break;if(x=Xu(y.strm,y.window,y.strstart+y.lookahead,te),y.lookahead+=x,y.lookahead+y.insert>=wa)for(re=y.strstart-y.insert,y.ins_h=y.window[re],y.ins_h=Ll(y,y.ins_h,y.window[re+1]);y.insert&&(y.ins_h=Ll(y,y.ins_h,y.window[re+wa-1]),y.prev[re&y.w_mask]=y.head[y.ins_h],y.head[y.ins_h]=re,re++,y.insert--,!(y.lookahead+y.insert<wa)););}while(y.lookahead<Fl&&y.strm.avail_in!==0)},jl=(y,E)=>{let x=y.pending_buf_size-5>y.w_size?y.w_size:y.pending_buf_size-5,te,re,ae,we=0,ve=y.strm.avail_in;do{if(te=65535,ae=y.bi_valid+42>>3,y.strm.avail_out<ae||(ae=y.strm.avail_out-ae,re=y.strstart-y.block_start,te>re+y.strm.avail_in&&(te=re+y.strm.avail_in),te>ae&&(te=ae),te<x&&(te===0&&E!==ks||E===_s||te!==re+y.strm.avail_in)))break;we=E===ks&&te===re+y.strm.avail_in?1:0,Ks(y,0,0,we),y.pending_buf[y.pending-4]=te,y.pending_buf[y.pending-3]=te>>8,y.pending_buf[y.pending-2]=~te,y.pending_buf[y.pending-1]=~te>>8,HA(y.strm),re&&(re>te&&(re=te),y.strm.output.set(y.window.subarray(y.block_start,y.block_start+re),y.strm.next_out),y.strm.next_out+=re,y.strm.avail_out-=re,y.strm.total_out+=re,y.block_start+=re,te-=re),te&&(Xu(y.strm,y.strm.output,y.strm.next_out,te),y.strm.next_out+=te,y.strm.avail_out-=te,y.strm.total_out+=te)}while(we===0);return ve-=y.strm.avail_in,ve&&(ve>=y.w_size?(y.matches=2,y.window.set(y.strm.input.subarray(y.strm.next_in-y.w_size,y.strm.next_in),0),y.strstart=y.w_size,y.insert=y.strstart):(y.window_size-y.strstart<=ve&&(y.strstart-=y.w_size,y.window.set(y.window.subarray(y.w_size,y.w_size+y.strstart),0),y.matches<2&&y.matches++,y.insert>y.strstart&&(y.insert=y.strstart)),y.window.set(y.strm.input.subarray(y.strm.next_in-ve,y.strm.next_in),y.strstart),y.strstart+=ve,y.insert+=ve>y.w_size-y.insert?y.w_size-y.insert:ve),y.block_start=y.strstart),y.high_water<y.strstart&&(y.high_water=y.strstart),we?Yl:E!==_s&&E!==ks&&y.strm.avail_in===0&&y.strstart===y.block_start?Xl:(ae=y.window_size-y.strstart,y.strm.avail_in>ae&&y.block_start>=y.w_size&&(y.block_start-=y.w_size,y.strstart-=y.w_size,y.window.set(y.window.subarray(y.w_size,y.w_size+y.strstart),0),y.matches<2&&y.matches++,ae+=y.w_size,y.insert>y.strstart&&(y.insert=y.strstart)),ae>y.strm.avail_in&&(ae=y.strm.avail_in),ae&&(Xu(y.strm,y.window,y.strstart,ae),y.strstart+=ae,y.insert+=ae>y.w_size-y.insert?y.w_size-y.insert:ae),y.high_water<y.strstart&&(y.high_water=y.strstart),ae=y.bi_valid+42>>3,ae=y.pending_buf_size-ae>65535?65535:y.pending_buf_size-ae,x=ae>y.w_size?y.w_size:ae,re=y.strstart-y.block_start,(re>=x||(re||E===ks)&&E!==_s&&y.strm.avail_in===0&&re<=ae)&&(te=re>ae?ae:re,we=E===ks&&y.strm.avail_in===0&&te===re?1:0,Ks(y,y.block_start,te,we),y.block_start+=te,HA(y.strm)),we?$u:xs)},Ad=(y,E)=>{let x,te;for(;;){if(y.lookahead<Fl){if(Rl(y),y.lookahead<Fl&&E===_s)return xs;if(y.lookahead===0)break}if(x=0,y.lookahead>=wa&&(y.ins_h=Ll(y,y.ins_h,y.window[y.strstart+wa-1]),x=y.prev[y.strstart&y.w_mask]=y.head[y.ins_h],y.head[y.ins_h]=y.strstart),x!==0&&y.strstart-x<=y.w_size-Fl&&(y.match_length=bu(y,x)),y.match_length>=wa)if(te=Ms(y,y.strstart-y.match_start,y.match_length-wa),y.lookahead-=y.match_length,y.match_length<=y.max_lazy_match&&y.lookahead>=wa){y.match_length--;do y.strstart++,y.ins_h=Ll(y,y.ins_h,y.window[y.strstart+wa-1]),x=y.prev[y.strstart&y.w_mask]=y.head[y.ins_h],y.head[y.ins_h]=y.strstart;while(--y.match_length!==0);y.strstart++}else y.strstart+=y.match_length,y.match_length=0,y.ins_h=y.window[y.strstart],y.ins_h=Ll(y,y.ins_h,y.window[y.strstart+1]);else te=Ms(y,0,y.window[y.strstart]),y.lookahead--,y.strstart++;if(te&&(AA(y,!1),y.strm.avail_out===0))return xs}return y.insert=y.strstart<wa-1?y.strstart:wa-1,E===ks?(AA(y,!0),y.strm.avail_out===0?$u:Yl):y.sym_next&&(AA(y,!1),y.strm.avail_out===0)?xs:Xl},Yu=(y,E)=>{let x,te,re;for(;;){if(y.lookahead<Fl){if(Rl(y),y.lookahead<Fl&&E===_s)return xs;if(y.lookahead===0)break}if(x=0,y.lookahead>=wa&&(y.ins_h=Ll(y,y.ins_h,y.window[y.strstart+wa-1]),x=y.prev[y.strstart&y.w_mask]=y.head[y.ins_h],y.head[y.ins_h]=y.strstart),y.prev_length=y.match_length,y.prev_match=y.match_start,y.match_length=wa-1,x!==0&&y.prev_length<y.max_lazy_match&&y.strstart-x<=y.w_size-Fl&&(y.match_length=bu(y,x),y.match_length<=5&&(y.strategy===fl||y.match_length===wa&&y.strstart-y.match_start>4096)&&(y.match_length=wa-1)),y.prev_length>=wa&&y.match_length<=y.prev_length){re=y.strstart+y.lookahead-wa,te=Ms(y,y.strstart-1-y.prev_match,y.prev_length-wa),y.lookahead-=y.prev_length-1,y.prev_length-=2;do++y.strstart<=re&&(y.ins_h=Ll(y,y.ins_h,y.window[y.strstart+wa-1]),x=y.prev[y.strstart&y.w_mask]=y.head[y.ins_h],y.head[y.ins_h]=y.strstart);while(--y.prev_length!==0);if(y.match_available=0,y.match_length=wa-1,y.strstart++,te&&(AA(y,!1),y.strm.avail_out===0))return xs}else if(y.match_available){if(te=Ms(y,0,y.window[y.strstart-1]),te&&AA(y,!1),y.strstart++,y.lookahead--,y.strm.avail_out===0)return xs}else y.match_available=1,y.strstart++,y.lookahead--}return y.match_available&&(te=Ms(y,0,y.window[y.strstart-1]),y.match_available=0),y.insert=y.strstart<wa-1?y.strstart:wa-1,E===ks?(AA(y,!0),y.strm.avail_out===0?$u:Yl):y.sym_next&&(AA(y,!1),y.strm.avail_out===0)?xs:Xl},ep=(y,E)=>{let x,te,re,ae;const we=y.window;for(;;){if(y.lookahead<=IA){if(Rl(y),y.lookahead<=IA&&E===_s)return xs;if(y.lookahead===0)break}if(y.match_length=0,y.lookahead>=wa&&y.strstart>0&&(re=y.strstart-1,te=we[re],te===we[++re]&&te===we[++re]&&te===we[++re])){ae=y.strstart+IA;do;while(te===we[++re]&&te===we[++re]&&te===we[++re]&&te===we[++re]&&te===we[++re]&&te===we[++re]&&te===we[++re]&&te===we[++re]&&re<ae);y.match_length=IA-(ae-re),y.match_length>y.lookahead&&(y.match_length=y.lookahead)}if(y.match_length>=wa?(x=Ms(y,1,y.match_length-wa),y.lookahead-=y.match_length,y.strstart+=y.match_length,y.match_length=0):(x=Ms(y,0,y.window[y.strstart]),y.lookahead--,y.strstart++),x&&(AA(y,!1),y.strm.avail_out===0))return xs}return y.insert=0,E===ks?(AA(y,!0),y.strm.avail_out===0?$u:Yl):y.sym_next&&(AA(y,!1),y.strm.avail_out===0)?xs:Xl},Yp=(y,E)=>{let x;for(;;){if(y.lookahead===0&&(Rl(y),y.lookahead===0)){if(E===_s)return xs;break}if(y.match_length=0,x=Ms(y,0,y.window[y.strstart]),y.lookahead--,y.strstart++,x&&(AA(y,!1),y.strm.avail_out===0))return xs}return y.insert=0,E===ks?(AA(y,!0),y.strm.avail_out===0?$u:Yl):y.sym_next&&(AA(y,!1),y.strm.avail_out===0)?xs:Xl};function yA(y,E,x,te,re){this.good_length=y,this.max_lazy=E,this.nice_length=x,this.max_chain=te,this.func=re}const Ol=[new yA(0,0,0,0,jl),new yA(4,4,8,4,Ad),new yA(4,5,16,8,Ad),new yA(4,6,32,32,Ad),new yA(4,4,16,16,Yu),new yA(8,16,32,32,Yu),new yA(8,16,128,128,Yu),new yA(8,32,128,256,Yu),new yA(32,128,258,1024,Yu),new yA(32,258,258,4096,Yu)],Jp=y=>{y.window_size=2*y.w_size,JA(y.head),y.max_lazy_match=Ol[y.level].max_lazy,y.good_match=Ol[y.level].good_length,y.nice_match=Ol[y.level].nice_length,y.max_chain_length=Ol[y.level].max_chain,y.strstart=0,y.block_start=0,y.lookahead=0,y.insert=0,y.match_length=y.prev_length=wa-1,y.match_available=0,y.ins_h=0};function qp(){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=Sl,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(cf*2),this.dyn_dtree=new Uint16Array((2*Zl+1)*2),this.bl_tree=new Uint16Array((2*$l+1)*2),JA(this.dyn_ltree),JA(this.dyn_dtree),JA(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(Jh+1),this.heap=new Uint16Array(2*Ws+1),JA(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*Ws+1),JA(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 df=y=>{if(!y)return 1;const E=y.state;return!E||E.strm!==y||E.status!==Il&&E.status!==$d&&E.status!==xc&&E.status!==od&&E.status!==ad&&E.status!==ff&&E.status!==dl&&E.status!==yu?1:0},tp=y=>{if(df(y))return Jl(y,xa);y.total_in=y.total_out=0,y.data_type=El;const E=y.state;return E.pending=0,E.pending_out=0,E.wrap<0&&(E.wrap=-E.wrap),E.status=E.wrap===2?$d:E.wrap?Il:dl,y.adler=E.wrap===2?0:1,E.last_flush=-2,Bc(E),Co},hf=y=>{const E=tp(y);return E===Co&&Jp(y.state),E},eg=(y,E)=>df(y)||y.state.wrap!==2?xa:(y.state.gzhead=E,Co),LA=(y,E,x,te,re,ae)=>{if(!y)return xa;let we=1;if(E===fs&&(E=6),te<0?(we=0,te=-te):te>15&&(we=2,te-=16),re<1||re>Cc||x!==Sl||te<8||te>15||E<0||E>9||ae<0||ae>cs||te===8&&we!==1)return Jl(y,xa);te===8&&(te=9);const ve=new qp;return y.state=ve,ve.strm=y,ve.status=Il,ve.wrap=we,ve.gzhead=null,ve.w_bits=te,ve.w_size=1<<ve.w_bits,ve.w_mask=ve.w_size-1,ve.hash_bits=re+7,ve.hash_size=1<<ve.hash_bits,ve.hash_mask=ve.hash_size-1,ve.hash_shift=~~((ve.hash_bits+wa-1)/wa),ve.window=new Uint8Array(ve.w_size*2),ve.head=new Uint16Array(ve.hash_size),ve.prev=new Uint16Array(ve.w_size),ve.lit_bufsize=1<<re+6,ve.pending_buf_size=ve.lit_bufsize*4,ve.pending_buf=new Uint8Array(ve.pending_buf_size),ve.sym_buf=ve.lit_bufsize,ve.sym_end=(ve.lit_bufsize-1)*3,ve.level=E,ve.strategy=ae,ve.method=x,hf(y)},Ls=(y,E)=>LA(y,E,Sl,Yh,id,FA),wA=(y,E)=>{if(df(y)||E>aA||E<0)return y?Jl(y,xa):xa;const x=y.state;if(!y.output||y.avail_in!==0&&!y.input||x.status===yu&&E!==ks)return Jl(y,y.avail_out===0?us:xa);const te=x.last_flush;if(x.last_flush=E,x.pending!==0){if(HA(y),y.avail_out===0)return x.last_flush=-1,Co}else if(y.avail_in===0&&sd(E)<=sd(te)&&E!==ks)return Jl(y,us);if(x.status===yu&&y.avail_in!==0)return Jl(y,us);if(x.status===Il&&x.wrap===0&&(x.status=dl),x.status===Il){let re=Sl+(x.w_bits-8<<4)<<8,ae=-1;if(x.strategy>=SA||x.level<2?ae=0:x.level<6?ae=1:x.level===6?ae=2:ae=3,re|=ae<<6,x.strstart!==0&&(re|=qh),re+=31-re%31,Ul(x,re),x.strstart!==0&&(Ul(x,y.adler>>>16),Ul(x,y.adler&65535)),y.adler=1,x.status=dl,HA(y),x.pending!==0)return x.last_flush=-1,Co}if(x.status===$d){if(y.adler=0,Ea(x,31),Ea(x,139),Ea(x,8),x.gzhead)Ea(x,(x.gzhead.text?1:0)+(x.gzhead.hcrc?2:0)+(x.gzhead.extra?4:0)+(x.gzhead.name?8:0)+(x.gzhead.comment?16:0)),Ea(x,x.gzhead.time&255),Ea(x,x.gzhead.time>>8&255),Ea(x,x.gzhead.time>>16&255),Ea(x,x.gzhead.time>>24&255),Ea(x,x.level===9?2:x.strategy>=SA||x.level<2?4:0),Ea(x,x.gzhead.os&255),x.gzhead.extra&&x.gzhead.extra.length&&(Ea(x,x.gzhead.extra.length&255),Ea(x,x.gzhead.extra.length>>8&255)),x.gzhead.hcrc&&(y.adler=Bs(y.adler,x.pending_buf,x.pending,0)),x.gzindex=0,x.status=xc;else if(Ea(x,0),Ea(x,0),Ea(x,0),Ea(x,0),Ea(x,0),Ea(x,x.level===9?2:x.strategy>=SA||x.level<2?4:0),Ea(x,Xp),x.status=dl,HA(y),x.pending!==0)return x.last_flush=-1,Co}if(x.status===xc){if(x.gzhead.extra){let re=x.pending,ae=(x.gzhead.extra.length&65535)-x.gzindex;for(;x.pending+ae>x.pending_buf_size;){let ve=x.pending_buf_size-x.pending;if(x.pending_buf.set(x.gzhead.extra.subarray(x.gzindex,x.gzindex+ve),x.pending),x.pending=x.pending_buf_size,x.gzhead.hcrc&&x.pending>re&&(y.adler=Bs(y.adler,x.pending_buf,x.pending-re,re)),x.gzindex+=ve,HA(y),x.pending!==0)return x.last_flush=-1,Co;re=0,ae-=ve}let we=new Uint8Array(x.gzhead.extra);x.pending_buf.set(we.subarray(x.gzindex,x.gzindex+ae),x.pending),x.pending+=ae,x.gzhead.hcrc&&x.pending>re&&(y.adler=Bs(y.adler,x.pending_buf,x.pending-re,re)),x.gzindex=0}x.status=od}if(x.status===od){if(x.gzhead.name){let re=x.pending,ae;do{if(x.pending===x.pending_buf_size){if(x.gzhead.hcrc&&x.pending>re&&(y.adler=Bs(y.adler,x.pending_buf,x.pending-re,re)),HA(y),x.pending!==0)return x.last_flush=-1,Co;re=0}x.gzindex<x.gzhead.name.length?ae=x.gzhead.name.charCodeAt(x.gzindex++)&255:ae=0,Ea(x,ae)}while(ae!==0);x.gzhead.hcrc&&x.pending>re&&(y.adler=Bs(y.adler,x.pending_buf,x.pending-re,re)),x.gzindex=0}x.status=ad}if(x.status===ad){if(x.gzhead.comment){let re=x.pending,ae;do{if(x.pending===x.pending_buf_size){if(x.gzhead.hcrc&&x.pending>re&&(y.adler=Bs(y.adler,x.pending_buf,x.pending-re,re)),HA(y),x.pending!==0)return x.last_flush=-1,Co;re=0}x.gzindex<x.gzhead.comment.length?ae=x.gzhead.comment.charCodeAt(x.gzindex++)&255:ae=0,Ea(x,ae)}while(ae!==0);x.gzhead.hcrc&&x.pending>re&&(y.adler=Bs(y.adler,x.pending_buf,x.pending-re,re))}x.status=ff}if(x.status===ff){if(x.gzhead.hcrc){if(x.pending+2>x.pending_buf_size&&(HA(y),x.pending!==0))return x.last_flush=-1,Co;Ea(x,y.adler&255),Ea(x,y.adler>>8&255),y.adler=0}if(x.status=dl,HA(y),x.pending!==0)return x.last_flush=-1,Co}if(y.avail_in!==0||x.lookahead!==0||E!==_s&&x.status!==yu){let re=x.level===0?jl(x,E):x.strategy===SA?Yp(x,E):x.strategy===Vl?ep(x,E):Ol[x.level].func(x,E);if((re===$u||re===Yl)&&(x.status=yu),re===xs||re===$u)return y.avail_out===0&&(x.last_flush=-1),Co;if(re===Xl&&(E===Gu?Cs(x):E!==aA&&(Ks(x,0,0,!1),E===uf&&(JA(x.head),x.lookahead===0&&(x.strstart=0,x.block_start=0,x.insert=0))),HA(y),y.avail_out===0))return x.last_flush=-1,Co}return E!==ks?Co:x.wrap<=0?Lo:(x.wrap===2?(Ea(x,y.adler&255),Ea(x,y.adler>>8&255),Ea(x,y.adler>>16&255),Ea(x,y.adler>>24&255),Ea(x,y.total_in&255),Ea(x,y.total_in>>8&255),Ea(x,y.total_in>>16&255),Ea(x,y.total_in>>24&255)):(Ul(x,y.adler>>>16),Ul(x,y.adler&65535)),HA(y),x.wrap>0&&(x.wrap=-x.wrap),x.pending!==0?Co:Lo)},Hs=y=>{if(df(y))return xa;const E=y.state.status;return y.state=null,E===dl?Jl(y,sA):Co},Ju=(y,E)=>{let x=E.length;if(df(y))return xa;const te=y.state,re=te.wrap;if(re===2||re===1&&te.status!==Il||te.lookahead)return xa;if(re===1&&(y.adler=da(y.adler,E,x,0)),te.wrap=0,x>=te.w_size){re===0&&(JA(te.head),te.strstart=0,te.block_start=0,te.insert=0);let Be=new Uint8Array(te.w_size);Be.set(E.subarray(x-te.w_size,x),0),E=Be,x=te.w_size}const ae=y.avail_in,we=y.next_in,ve=y.input;for(y.avail_in=x,y.next_in=0,y.input=E,Rl(te);te.lookahead>=wa;){let Be=te.strstart,Ee=te.lookahead-(wa-1);do te.ins_h=Ll(te,te.ins_h,te.window[Be+wa-1]),te.prev[Be&te.w_mask]=te.head[te.ins_h],te.head[te.ins_h]=Be,Be++;while(--Ee);te.strstart=Be,te.lookahead=wa-1,Rl(te)}return te.strstart+=te.lookahead,te.block_start=te.strstart,te.insert=te.lookahead,te.lookahead=0,te.match_length=te.prev_length=wa-1,te.match_available=0,y.next_in=we,y.input=ve,y.avail_in=ae,te.wrap=re,Co};var ld=Ls,ud=LA,tg=hf,ng=tp,rg=eg,Xd=wA,np=Hs,Ec=Ju,ig="pako deflate (from Nodeca project)",qu={deflateInit:ld,deflateInit2:ud,deflateReset:tg,deflateResetKeep:ng,deflateSetHeader:rg,deflate:Xd,deflateEnd:np,deflateSetDictionary:Ec,deflateInfo:ig};const Yd=(y,E)=>Object.prototype.hasOwnProperty.call(y,E);var rp=function(y){const E=Array.prototype.slice.call(arguments,1);for(;E.length;){const x=E.shift();if(x){if(typeof x!="object")throw new TypeError(x+"must be non-object");for(const te in x)Yd(x,te)&&(y[te]=x[te])}}return y},ip=y=>{let E=0;for(let te=0,re=y.length;te<re;te++)E+=y[te].length;const x=new Uint8Array(E);for(let te=0,re=0,ae=y.length;te<ae;te++){let we=y[te];x.set(we,re),re+=we.length}return x},Sc={assign:rp,flattenChunks:ip};let Jd=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(y){Jd=!1}const ql=new Uint8Array(256);for(let y=0;y<256;y++)ql[y]=y>=252?6:y>=248?5:y>=240?4:y>=224?3:y>=192?2:1;ql[254]=ql[254]=1;var og=y=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(y);let E,x,te,re,ae,we=y.length,ve=0;for(re=0;re<we;re++)x=y.charCodeAt(re),(x&64512)===55296&&re+1<we&&(te=y.charCodeAt(re+1),(te&64512)===56320&&(x=65536+(x-55296<<10)+(te-56320),re++)),ve+=x<128?1:x<2048?2:x<65536?3:4;for(E=new Uint8Array(ve),ae=0,re=0;ae<ve;re++)x=y.charCodeAt(re),(x&64512)===55296&&re+1<we&&(te=y.charCodeAt(re+1),(te&64512)===56320&&(x=65536+(x-55296<<10)+(te-56320),re++)),x<128?E[ae++]=x:x<2048?(E[ae++]=192|x>>>6,E[ae++]=128|x&63):x<65536?(E[ae++]=224|x>>>12,E[ae++]=128|x>>>6&63,E[ae++]=128|x&63):(E[ae++]=240|x>>>18,E[ae++]=128|x>>>12&63,E[ae++]=128|x>>>6&63,E[ae++]=128|x&63);return E};const cd=(y,E)=>{if(E<65534&&y.subarray&&Jd)return String.fromCharCode.apply(null,y.length===E?y:y.subarray(0,E));let x="";for(let te=0;te<E;te++)x+=String.fromCharCode(y[te]);return x};var qA=(y,E)=>{const x=E||y.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(y.subarray(0,E));let te,re;const ae=new Array(x*2);for(re=0,te=0;te<x;){let we=y[te++];if(we<128){ae[re++]=we;continue}let ve=ql[we];if(ve>4){ae[re++]=65533,te+=ve-1;continue}for(we&=ve===2?31:ve===3?15:7;ve>1&&te<x;)we=we<<6|y[te++]&63,ve--;if(ve>1){ae[re++]=65533;continue}we<65536?ae[re++]=we:(we-=65536,ae[re++]=55296|we>>10&1023,ae[re++]=56320|we&1023)}return cd(ae,re)},op=(y,E)=>{E=E||y.length,E>y.length&&(E=y.length);let x=E-1;for(;x>=0&&(y[x]&192)===128;)x--;return x<0||x===0?E:x+ql[y[x]]>E?x:E},Fc={string2buf:og,buf2string:qA,utf8border:op};function ap(){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 RA=ap;const Na=Object.prototype.toString,{Z_NO_FLUSH:UA,Z_SYNC_FLUSH:Bu,Z_FULL_FLUSH:Cu,Z_FINISH:qd,Z_OK:Ic,Z_STREAM_END:sp,Z_DEFAULT_COMPRESSION:ag,Z_DEFAULT_STRATEGY:eh,Z_DEFLATED:pf}=Hl;function Lc(y){this.options=Sc.assign({level:ag,method:pf,chunkSize:16384,windowBits:15,memLevel:8,strategy:eh},y||{});let E=this.options;E.raw&&E.windowBits>0?E.windowBits=-E.windowBits:E.gzip&&E.windowBits>0&&E.windowBits<16&&(E.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new RA,this.strm.avail_out=0;let x=qu.deflateInit2(this.strm,E.level,E.method,E.windowBits,E.memLevel,E.strategy);if(x!==Ic)throw new Error(YA[x]);if(E.header&&qu.deflateSetHeader(this.strm,E.header),E.dictionary){let te;if(typeof E.dictionary=="string"?te=Fc.string2buf(E.dictionary):Na.call(E.dictionary)==="[object ArrayBuffer]"?te=new Uint8Array(E.dictionary):te=E.dictionary,x=qu.deflateSetDictionary(this.strm,te),x!==Ic)throw new Error(YA[x]);this._dict_set=!0}}Lc.prototype.push=function(y,E){const x=this.strm,te=this.options.chunkSize;let re,ae;if(this.ended)return!1;for(E===~~E?ae=E:ae=E===!0?qd:UA,typeof y=="string"?x.input=Fc.string2buf(y):Na.call(y)==="[object ArrayBuffer]"?x.input=new Uint8Array(y):x.input=y,x.next_in=0,x.avail_in=x.input.length;;){if(x.avail_out===0&&(x.output=new Uint8Array(te),x.next_out=0,x.avail_out=te),(ae===Bu||ae===Cu)&&x.avail_out<=6){this.onData(x.output.subarray(0,x.next_out)),x.avail_out=0;continue}if(re=qu.deflate(x,ae),re===sp)return x.next_out>0&&this.onData(x.output.subarray(0,x.next_out)),re=qu.deflateEnd(this.strm),this.onEnd(re),this.ended=!0,re===Ic;if(x.avail_out===0){this.onData(x.output);continue}if(ae>0&&x.next_out>0){this.onData(x.output.subarray(0,x.next_out)),x.avail_out=0;continue}if(x.avail_in===0)break}return!0},Lc.prototype.onData=function(y){this.chunks.push(y)},Lc.prototype.onEnd=function(y){y===Ic&&(this.result=Sc.flattenChunks(this.chunks)),this.chunks=[],this.err=y,this.msg=this.strm.msg};function gf(y,E){const x=new Lc(E);if(x.push(y,!0),x.err)throw x.msg||YA[x.err];return x.result}function xu(y,E){return E=E||{},E.raw=!0,gf(y,E)}function Us(y,E){return E=E||{},E.gzip=!0,gf(y,E)}var Ap=Lc,sg=gf,fd=xu,th=Us,lp=Hl,up={Deflate:Ap,deflate:sg,deflateRaw:fd,gzip:th,constants:lp};const mf=16209,Ag=16191;var lg=function(E,x){let te,re,ae,we,ve,Be,Ee,Ne,et,ht,De,tn,$t,on,Ot,jn,Dn,bn,Er,Jr,Qr,qn,Bn,ur;const Ut=E.state;te=E.next_in,Bn=E.input,re=te+(E.avail_in-5),ae=E.next_out,ur=E.output,we=ae-(x-E.avail_out),ve=ae+(E.avail_out-257),Be=Ut.dmax,Ee=Ut.wsize,Ne=Ut.whave,et=Ut.wnext,ht=Ut.window,De=Ut.hold,tn=Ut.bits,$t=Ut.lencode,on=Ut.distcode,Ot=(1<<Ut.lenbits)-1,jn=(1<<Ut.distbits)-1;e:do{tn<15&&(De+=Bn[te++]<<tn,tn+=8,De+=Bn[te++]<<tn,tn+=8),Dn=$t[De&Ot];t:for(;;){if(bn=Dn>>>24,De>>>=bn,tn-=bn,bn=Dn>>>16&255,bn===0)ur[ae++]=Dn&65535;else if(bn&16){Er=Dn&65535,bn&=15,bn&&(tn<bn&&(De+=Bn[te++]<<tn,tn+=8),Er+=De&(1<<bn)-1,De>>>=bn,tn-=bn),tn<15&&(De+=Bn[te++]<<tn,tn+=8,De+=Bn[te++]<<tn,tn+=8),Dn=on[De&jn];n:for(;;){if(bn=Dn>>>24,De>>>=bn,tn-=bn,bn=Dn>>>16&255,bn&16){if(Jr=Dn&65535,bn&=15,tn<bn&&(De+=Bn[te++]<<tn,tn+=8,tn<bn&&(De+=Bn[te++]<<tn,tn+=8)),Jr+=De&(1<<bn)-1,Jr>Be){E.msg="invalid distance too far back",Ut.mode=mf;break e}if(De>>>=bn,tn-=bn,bn=ae-we,Jr>bn){if(bn=Jr-bn,bn>Ne&&Ut.sane){E.msg="invalid distance too far back",Ut.mode=mf;break e}if(Qr=0,qn=ht,et===0){if(Qr+=Ee-bn,bn<Er){Er-=bn;do ur[ae++]=ht[Qr++];while(--bn);Qr=ae-Jr,qn=ur}}else if(et<bn){if(Qr+=Ee+et-bn,bn-=et,bn<Er){Er-=bn;do ur[ae++]=ht[Qr++];while(--bn);if(Qr=0,et<Er){bn=et,Er-=bn;do ur[ae++]=ht[Qr++];while(--bn);Qr=ae-Jr,qn=ur}}}else if(Qr+=et-bn,bn<Er){Er-=bn;do ur[ae++]=ht[Qr++];while(--bn);Qr=ae-Jr,qn=ur}for(;Er>2;)ur[ae++]=qn[Qr++],ur[ae++]=qn[Qr++],ur[ae++]=qn[Qr++],Er-=3;Er&&(ur[ae++]=qn[Qr++],Er>1&&(ur[ae++]=qn[Qr++]))}else{Qr=ae-Jr;do ur[ae++]=ur[Qr++],ur[ae++]=ur[Qr++],ur[ae++]=ur[Qr++],Er-=3;while(Er>2);Er&&(ur[ae++]=ur[Qr++],Er>1&&(ur[ae++]=ur[Qr++]))}}else if(bn&64){E.msg="invalid distance code",Ut.mode=mf;break e}else{Dn=on[(Dn&65535)+(De&(1<<bn)-1)];continue n}break}}else if(bn&64)if(bn&32){Ut.mode=Ag;break e}else{E.msg="invalid literal/length code",Ut.mode=mf;break e}else{Dn=$t[(Dn&65535)+(De&(1<<bn)-1)];continue t}break}}while(te<re&&ae<ve);Er=tn>>3,te-=Er,tn-=Er<<3,De&=(1<<tn)-1,E.next_in=te,E.next_out=ae,E.avail_in=te<re?5+(re-te):5-(te-re),E.avail_out=ae<ve?257+(ve-ae):257-(ae-ve),Ut.hold=De,Ut.bits=tn};const eu=15,nh=852,cp=592,rh=0,Qi=1,ec=2,ih=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),Uc=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),Dl=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),oh=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);var tu=(y,E,x,te,re,ae,we,ve)=>{const Be=ve.bits;let Ee=0,Ne=0,et=0,ht=0,De=0,tn=0,$t=0,on=0,Ot=0,jn=0,Dn,bn,Er,Jr,Qr,qn=null,Bn;const ur=new Uint16Array(eu+1),Ut=new Uint16Array(eu+1);let an=null,Hn,Pn,Ir;for(Ee=0;Ee<=eu;Ee++)ur[Ee]=0;for(Ne=0;Ne<te;Ne++)ur[E[x+Ne]]++;for(De=Be,ht=eu;ht>=1&&ur[ht]===0;ht--);if(De>ht&&(De=ht),ht===0)return re[ae++]=1<<24|64<<16|0,re[ae++]=1<<24|64<<16|0,ve.bits=1,0;for(et=1;et<ht&&ur[et]===0;et++);for(De<et&&(De=et),on=1,Ee=1;Ee<=eu;Ee++)if(on<<=1,on-=ur[Ee],on<0)return-1;if(on>0&&(y===rh||ht!==1))return-1;for(Ut[1]=0,Ee=1;Ee<eu;Ee++)Ut[Ee+1]=Ut[Ee]+ur[Ee];for(Ne=0;Ne<te;Ne++)E[x+Ne]!==0&&(we[Ut[E[x+Ne]]++]=Ne);if(y===rh?(qn=an=we,Bn=20):y===Qi?(qn=ih,an=Uc,Bn=257):(qn=Dl,an=oh,Bn=0),jn=0,Ne=0,Ee=et,Qr=ae,tn=De,$t=0,Er=-1,Ot=1<<De,Jr=Ot-1,y===Qi&&Ot>nh||y===ec&&Ot>cp)return 1;for(;;){Hn=Ee-$t,we[Ne]+1<Bn?(Pn=0,Ir=we[Ne]):we[Ne]>=Bn?(Pn=an[we[Ne]-Bn],Ir=qn[we[Ne]-Bn]):(Pn=96,Ir=0),Dn=1<<Ee-$t,bn=1<<tn,et=bn;do bn-=Dn,re[Qr+(jn>>$t)+bn]=Hn<<24|Pn<<16|Ir|0;while(bn!==0);for(Dn=1<<Ee-1;jn&Dn;)Dn>>=1;if(Dn!==0?(jn&=Dn-1,jn+=Dn):jn=0,Ne++,--ur[Ee]===0){if(Ee===ht)break;Ee=E[x+we[Ne]]}if(Ee>De&&(jn&Jr)!==Er){for($t===0&&($t=De),Qr+=et,tn=Ee-$t,on=1<<tn;tn+$t<ht&&(on-=ur[tn+$t],!(on<=0));)tn++,on<<=1;if(Ot+=1<<tn,y===Qi&&Ot>nh||y===ec&&Ot>cp)return 1;Er=jn&Jr,re[Er]=De<<24|tn<<16|Qr-ae|0}}return jn!==0&&(re[Qr+jn]=Ee-$t<<24|64<<16|0),ve.bits=De,0};const vf=0,Gs=1,yf=2,{Z_FINISH:ah,Z_BLOCK:Eu,Z_TREES:tc,Z_OK:jA,Z_STREAM_END:dd,Z_NEED_DICT:sh,Z_STREAM_ERROR:el,Z_DATA_ERROR:wf,Z_MEM_ERROR:nc,Z_BUF_ERROR:dp,Z_DEFLATED:bf}=Hl,Bf=16180,Oc=16181,hp=16182,rc=16183,Ah=16184,hd=16185,lh=16186,Dc=16187,Nc=16188,ic=16189,Su=16190,tl=16191,uh=16192,Cf=16193,hl=16194,Fu=16195,oc=16196,pp=16197,pd=16198,Pc=16199,Tc=16200,ch=16201,lA=16202,gd=16203,fh=16204,md=16205,dh=16206,hh=16207,ph=16208,ba=16209,vd=16210,gp=16211,ug=852,Iu=592,wd=15,Qc=y=>(y>>>24&255)+(y>>>8&65280)+((y&65280)<<8)+((y&255)<<24);function nu(){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 ac=y=>{if(!y)return 1;const E=y.state;return!E||E.strm!==y||E.mode<Bf||E.mode>gp?1:0},mp=y=>{if(ac(y))return el;const E=y.state;return y.total_in=y.total_out=E.total=0,y.msg="",E.wrap&&(y.adler=E.wrap&1),E.mode=Bf,E.last=0,E.havedict=0,E.flags=-1,E.dmax=32768,E.head=null,E.hold=0,E.bits=0,E.lencode=E.lendyn=new Int32Array(ug),E.distcode=E.distdyn=new Int32Array(Iu),E.sane=1,E.back=-1,jA},Lu=y=>{if(ac(y))return el;const E=y.state;return E.wsize=0,E.whave=0,E.wnext=0,mp(y)},gh=(y,E)=>{let x;if(ac(y))return el;const te=y.state;return E<0?(x=0,E=-E):(x=(E>>4)+5,E<48&&(E&=15)),E&&(E<8||E>15)?el:(te.window!==null&&te.wbits!==E&&(te.window=null),te.wrap=x,te.wbits=E,Lu(y))},xf=(y,E)=>{if(!y)return el;const x=new nu;y.state=x,x.strm=y,x.window=null,x.mode=Bf;const te=gh(y,E);return te!==jA&&(y.state=null),te},mh=y=>xf(y,wd);let Es=!0,pl,Ef;const vh=y=>{if(Es){pl=new Int32Array(512),Ef=new Int32Array(32);let E=0;for(;E<144;)y.lens[E++]=8;for(;E<256;)y.lens[E++]=9;for(;E<280;)y.lens[E++]=7;for(;E<288;)y.lens[E++]=8;for(tu(Gs,y.lens,0,288,pl,0,y.work,{bits:9}),E=0;E<32;)y.lens[E++]=5;tu(yf,y.lens,0,32,Ef,0,y.work,{bits:5}),Es=!1}y.lencode=pl,y.lenbits=9,y.distcode=Ef,y.distbits=5},Sf=(y,E,x,te)=>{let re;const ae=y.state;return ae.window===null&&(ae.wsize=1<<ae.wbits,ae.wnext=0,ae.whave=0,ae.window=new Uint8Array(ae.wsize)),te>=ae.wsize?(ae.window.set(E.subarray(x-ae.wsize,x),0),ae.wnext=0,ae.whave=ae.wsize):(re=ae.wsize-ae.wnext,re>te&&(re=te),ae.window.set(E.subarray(x-te,x-te+re),ae.wnext),te-=re,te?(ae.window.set(E.subarray(x-te,x),0),ae.wnext=te,ae.whave=ae.wsize):(ae.wnext+=re,ae.wnext===ae.wsize&&(ae.wnext=0),ae.whave<ae.wsize&&(ae.whave+=re))),0},yh=(y,E)=>{let x,te,re,ae,we,ve,Be,Ee,Ne,et,ht,De,tn,$t,on=0,Ot,jn,Dn,bn,Er,Jr,Qr,qn;const Bn=new Uint8Array(4);let ur,Ut;const an=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(ac(y)||!y.output||!y.input&&y.avail_in!==0)return el;x=y.state,x.mode===tl&&(x.mode=uh),we=y.next_out,re=y.output,Be=y.avail_out,ae=y.next_in,te=y.input,ve=y.avail_in,Ee=x.hold,Ne=x.bits,et=ve,ht=Be,qn=jA;e:for(;;)switch(x.mode){case Bf:if(x.wrap===0){x.mode=uh;break}for(;Ne<16;){if(ve===0)break e;ve--,Ee+=te[ae++]<<Ne,Ne+=8}if(x.wrap&2&&Ee===35615){x.wbits===0&&(x.wbits=15),x.check=0,Bn[0]=Ee&255,Bn[1]=Ee>>>8&255,x.check=Bs(x.check,Bn,2,0),Ee=0,Ne=0,x.mode=Oc;break}if(x.head&&(x.head.done=!1),!(x.wrap&1)||(((Ee&255)<<8)+(Ee>>8))%31){y.msg="incorrect header check",x.mode=ba;break}if((Ee&15)!==bf){y.msg="unknown compression method",x.mode=ba;break}if(Ee>>>=4,Ne-=4,Qr=(Ee&15)+8,x.wbits===0&&(x.wbits=Qr),Qr>15||Qr>x.wbits){y.msg="invalid window size",x.mode=ba;break}x.dmax=1<<x.wbits,x.flags=0,y.adler=x.check=1,x.mode=Ee&512?ic:tl,Ee=0,Ne=0;break;case Oc:for(;Ne<16;){if(ve===0)break e;ve--,Ee+=te[ae++]<<Ne,Ne+=8}if(x.flags=Ee,(x.flags&255)!==bf){y.msg="unknown compression method",x.mode=ba;break}if(x.flags&57344){y.msg="unknown header flags set",x.mode=ba;break}x.head&&(x.head.text=Ee>>8&1),x.flags&512&&x.wrap&4&&(Bn[0]=Ee&255,Bn[1]=Ee>>>8&255,x.check=Bs(x.check,Bn,2,0)),Ee=0,Ne=0,x.mode=hp;case hp:for(;Ne<32;){if(ve===0)break e;ve--,Ee+=te[ae++]<<Ne,Ne+=8}x.head&&(x.head.time=Ee),x.flags&512&&x.wrap&4&&(Bn[0]=Ee&255,Bn[1]=Ee>>>8&255,Bn[2]=Ee>>>16&255,Bn[3]=Ee>>>24&255,x.check=Bs(x.check,Bn,4,0)),Ee=0,Ne=0,x.mode=rc;case rc:for(;Ne<16;){if(ve===0)break e;ve--,Ee+=te[ae++]<<Ne,Ne+=8}x.head&&(x.head.xflags=Ee&255,x.head.os=Ee>>8),x.flags&512&&x.wrap&4&&(Bn[0]=Ee&255,Bn[1]=Ee>>>8&255,x.check=Bs(x.check,Bn,2,0)),Ee=0,Ne=0,x.mode=Ah;case Ah:if(x.flags&1024){for(;Ne<16;){if(ve===0)break e;ve--,Ee+=te[ae++]<<Ne,Ne+=8}x.length=Ee,x.head&&(x.head.extra_len=Ee),x.flags&512&&x.wrap&4&&(Bn[0]=Ee&255,Bn[1]=Ee>>>8&255,x.check=Bs(x.check,Bn,2,0)),Ee=0,Ne=0}else x.head&&(x.head.extra=null);x.mode=hd;case hd:if(x.flags&1024&&(De=x.length,De>ve&&(De=ve),De&&(x.head&&(Qr=x.head.extra_len-x.length,x.head.extra||(x.head.extra=new Uint8Array(x.head.extra_len)),x.head.extra.set(te.subarray(ae,ae+De),Qr)),x.flags&512&&x.wrap&4&&(x.check=Bs(x.check,te,De,ae)),ve-=De,ae+=De,x.length-=De),x.length))break e;x.length=0,x.mode=lh;case lh:if(x.flags&2048){if(ve===0)break e;De=0;do Qr=te[ae+De++],x.head&&Qr&&x.length<65536&&(x.head.name+=String.fromCharCode(Qr));while(Qr&&De<ve);if(x.flags&512&&x.wrap&4&&(x.check=Bs(x.check,te,De,ae)),ve-=De,ae+=De,Qr)break e}else x.head&&(x.head.name=null);x.length=0,x.mode=Dc;case Dc:if(x.flags&4096){if(ve===0)break e;De=0;do Qr=te[ae+De++],x.head&&Qr&&x.length<65536&&(x.head.comment+=String.fromCharCode(Qr));while(Qr&&De<ve);if(x.flags&512&&x.wrap&4&&(x.check=Bs(x.check,te,De,ae)),ve-=De,ae+=De,Qr)break e}else x.head&&(x.head.comment=null);x.mode=Nc;case Nc:if(x.flags&512){for(;Ne<16;){if(ve===0)break e;ve--,Ee+=te[ae++]<<Ne,Ne+=8}if(x.wrap&4&&Ee!==(x.check&65535)){y.msg="header crc mismatch",x.mode=ba;break}Ee=0,Ne=0}x.head&&(x.head.hcrc=x.flags>>9&1,x.head.done=!0),y.adler=x.check=0,x.mode=tl;break;case ic:for(;Ne<32;){if(ve===0)break e;ve--,Ee+=te[ae++]<<Ne,Ne+=8}y.adler=x.check=Qc(Ee),Ee=0,Ne=0,x.mode=Su;case Su:if(x.havedict===0)return y.next_out=we,y.avail_out=Be,y.next_in=ae,y.avail_in=ve,x.hold=Ee,x.bits=Ne,sh;y.adler=x.check=1,x.mode=tl;case tl:if(E===Eu||E===tc)break e;case uh:if(x.last){Ee>>>=Ne&7,Ne-=Ne&7,x.mode=dh;break}for(;Ne<3;){if(ve===0)break e;ve--,Ee+=te[ae++]<<Ne,Ne+=8}switch(x.last=Ee&1,Ee>>>=1,Ne-=1,Ee&3){case 0:x.mode=Cf;break;case 1:if(vh(x),x.mode=Pc,E===tc){Ee>>>=2,Ne-=2;break e}break;case 2:x.mode=oc;break;case 3:y.msg="invalid block type",x.mode=ba}Ee>>>=2,Ne-=2;break;case Cf:for(Ee>>>=Ne&7,Ne-=Ne&7;Ne<32;){if(ve===0)break e;ve--,Ee+=te[ae++]<<Ne,Ne+=8}if((Ee&65535)!==(Ee>>>16^65535)){y.msg="invalid stored block lengths",x.mode=ba;break}if(x.length=Ee&65535,Ee=0,Ne=0,x.mode=hl,E===tc)break e;case hl:x.mode=Fu;case Fu:if(De=x.length,De){if(De>ve&&(De=ve),De>Be&&(De=Be),De===0)break e;re.set(te.subarray(ae,ae+De),we),ve-=De,ae+=De,Be-=De,we+=De,x.length-=De;break}x.mode=tl;break;case oc:for(;Ne<14;){if(ve===0)break e;ve--,Ee+=te[ae++]<<Ne,Ne+=8}if(x.nlen=(Ee&31)+257,Ee>>>=5,Ne-=5,x.ndist=(Ee&31)+1,Ee>>>=5,Ne-=5,x.ncode=(Ee&15)+4,Ee>>>=4,Ne-=4,x.nlen>286||x.ndist>30){y.msg="too many length or distance symbols",x.mode=ba;break}x.have=0,x.mode=pp;case pp:for(;x.have<x.ncode;){for(;Ne<3;){if(ve===0)break e;ve--,Ee+=te[ae++]<<Ne,Ne+=8}x.lens[an[x.have++]]=Ee&7,Ee>>>=3,Ne-=3}for(;x.have<19;)x.lens[an[x.have++]]=0;if(x.lencode=x.lendyn,x.lenbits=7,ur={bits:x.lenbits},qn=tu(vf,x.lens,0,19,x.lencode,0,x.work,ur),x.lenbits=ur.bits,qn){y.msg="invalid code lengths set",x.mode=ba;break}x.have=0,x.mode=pd;case pd:for(;x.have<x.nlen+x.ndist;){for(;on=x.lencode[Ee&(1<<x.lenbits)-1],Ot=on>>>24,jn=on>>>16&255,Dn=on&65535,!(Ot<=Ne);){if(ve===0)break e;ve--,Ee+=te[ae++]<<Ne,Ne+=8}if(Dn<16)Ee>>>=Ot,Ne-=Ot,x.lens[x.have++]=Dn;else{if(Dn===16){for(Ut=Ot+2;Ne<Ut;){if(ve===0)break e;ve--,Ee+=te[ae++]<<Ne,Ne+=8}if(Ee>>>=Ot,Ne-=Ot,x.have===0){y.msg="invalid bit length repeat",x.mode=ba;break}Qr=x.lens[x.have-1],De=3+(Ee&3),Ee>>>=2,Ne-=2}else if(Dn===17){for(Ut=Ot+3;Ne<Ut;){if(ve===0)break e;ve--,Ee+=te[ae++]<<Ne,Ne+=8}Ee>>>=Ot,Ne-=Ot,Qr=0,De=3+(Ee&7),Ee>>>=3,Ne-=3}else{for(Ut=Ot+7;Ne<Ut;){if(ve===0)break e;ve--,Ee+=te[ae++]<<Ne,Ne+=8}Ee>>>=Ot,Ne-=Ot,Qr=0,De=11+(Ee&127),Ee>>>=7,Ne-=7}if(x.have+De>x.nlen+x.ndist){y.msg="invalid bit length repeat",x.mode=ba;break}for(;De--;)x.lens[x.have++]=Qr}}if(x.mode===ba)break;if(x.lens[256]===0){y.msg="invalid code -- missing end-of-block",x.mode=ba;break}if(x.lenbits=9,ur={bits:x.lenbits},qn=tu(Gs,x.lens,0,x.nlen,x.lencode,0,x.work,ur),x.lenbits=ur.bits,qn){y.msg="invalid literal/lengths set",x.mode=ba;break}if(x.distbits=6,x.distcode=x.distdyn,ur={bits:x.distbits},qn=tu(yf,x.lens,x.nlen,x.ndist,x.distcode,0,x.work,ur),x.distbits=ur.bits,qn){y.msg="invalid distances set",x.mode=ba;break}if(x.mode=Pc,E===tc)break e;case Pc:x.mode=Tc;case Tc:if(ve>=6&&Be>=258){y.next_out=we,y.avail_out=Be,y.next_in=ae,y.avail_in=ve,x.hold=Ee,x.bits=Ne,lg(y,ht),we=y.next_out,re=y.output,Be=y.avail_out,ae=y.next_in,te=y.input,ve=y.avail_in,Ee=x.hold,Ne=x.bits,x.mode===tl&&(x.back=-1);break}for(x.back=0;on=x.lencode[Ee&(1<<x.lenbits)-1],Ot=on>>>24,jn=on>>>16&255,Dn=on&65535,!(Ot<=Ne);){if(ve===0)break e;ve--,Ee+=te[ae++]<<Ne,Ne+=8}if(jn&&!(jn&240)){for(bn=Ot,Er=jn,Jr=Dn;on=x.lencode[Jr+((Ee&(1<<bn+Er)-1)>>bn)],Ot=on>>>24,jn=on>>>16&255,Dn=on&65535,!(bn+Ot<=Ne);){if(ve===0)break e;ve--,Ee+=te[ae++]<<Ne,Ne+=8}Ee>>>=bn,Ne-=bn,x.back+=bn}if(Ee>>>=Ot,Ne-=Ot,x.back+=Ot,x.length=Dn,jn===0){x.mode=md;break}if(jn&32){x.back=-1,x.mode=tl;break}if(jn&64){y.msg="invalid literal/length code",x.mode=ba;break}x.extra=jn&15,x.mode=ch;case ch:if(x.extra){for(Ut=x.extra;Ne<Ut;){if(ve===0)break e;ve--,Ee+=te[ae++]<<Ne,Ne+=8}x.length+=Ee&(1<<x.extra)-1,Ee>>>=x.extra,Ne-=x.extra,x.back+=x.extra}x.was=x.length,x.mode=lA;case lA:for(;on=x.distcode[Ee&(1<<x.distbits)-1],Ot=on>>>24,jn=on>>>16&255,Dn=on&65535,!(Ot<=Ne);){if(ve===0)break e;ve--,Ee+=te[ae++]<<Ne,Ne+=8}if(!(jn&240)){for(bn=Ot,Er=jn,Jr=Dn;on=x.distcode[Jr+((Ee&(1<<bn+Er)-1)>>bn)],Ot=on>>>24,jn=on>>>16&255,Dn=on&65535,!(bn+Ot<=Ne);){if(ve===0)break e;ve--,Ee+=te[ae++]<<Ne,Ne+=8}Ee>>>=bn,Ne-=bn,x.back+=bn}if(Ee>>>=Ot,Ne-=Ot,x.back+=Ot,jn&64){y.msg="invalid distance code",x.mode=ba;break}x.offset=Dn,x.extra=jn&15,x.mode=gd;case gd:if(x.extra){for(Ut=x.extra;Ne<Ut;){if(ve===0)break e;ve--,Ee+=te[ae++]<<Ne,Ne+=8}x.offset+=Ee&(1<<x.extra)-1,Ee>>>=x.extra,Ne-=x.extra,x.back+=x.extra}if(x.offset>x.dmax){y.msg="invalid distance too far back",x.mode=ba;break}x.mode=fh;case fh:if(Be===0)break e;if(De=ht-Be,x.offset>De){if(De=x.offset-De,De>x.whave&&x.sane){y.msg="invalid distance too far back",x.mode=ba;break}De>x.wnext?(De-=x.wnext,tn=x.wsize-De):tn=x.wnext-De,De>x.length&&(De=x.length),$t=x.window}else $t=re,tn=we-x.offset,De=x.length;De>Be&&(De=Be),Be-=De,x.length-=De;do re[we++]=$t[tn++];while(--De);x.length===0&&(x.mode=Tc);break;case md:if(Be===0)break e;re[we++]=x.length,Be--,x.mode=Tc;break;case dh:if(x.wrap){for(;Ne<32;){if(ve===0)break e;ve--,Ee|=te[ae++]<<Ne,Ne+=8}if(ht-=Be,y.total_out+=ht,x.total+=ht,x.wrap&4&&ht&&(y.adler=x.check=x.flags?Bs(x.check,re,ht,we-ht):da(x.check,re,ht,we-ht)),ht=Be,x.wrap&4&&(x.flags?Ee:Qc(Ee))!==x.check){y.msg="incorrect data check",x.mode=ba;break}Ee=0,Ne=0}x.mode=hh;case hh:if(x.wrap&&x.flags){for(;Ne<32;){if(ve===0)break e;ve--,Ee+=te[ae++]<<Ne,Ne+=8}if(x.wrap&4&&Ee!==(x.total&4294967295)){y.msg="incorrect length check",x.mode=ba;break}Ee=0,Ne=0}x.mode=ph;case ph:qn=dd;break e;case ba:qn=wf;break e;case vd:return nc;case gp:default:return el}return y.next_out=we,y.avail_out=Be,y.next_in=ae,y.avail_in=ve,x.hold=Ee,x.bits=Ne,(x.wsize||ht!==y.avail_out&&x.mode<ba&&(x.mode<dh||E!==ah))&&Sf(y,y.output,y.next_out,ht-y.avail_out),et-=y.avail_in,ht-=y.avail_out,y.total_in+=et,y.total_out+=ht,x.total+=ht,x.wrap&4&&ht&&(y.adler=x.check=x.flags?Bs(x.check,re,ht,y.next_out-ht):da(x.check,re,ht,y.next_out-ht)),y.data_type=x.bits+(x.last?64:0)+(x.mode===tl?128:0)+(x.mode===Pc||x.mode===hl?256:0),(et===0&&ht===0||E===ah)&&qn===jA&&(qn=dp),qn},Ff=y=>{if(ac(y))return el;let E=y.state;return E.window&&(E.window=null),y.state=null,jA},vp=(y,E)=>{if(ac(y))return el;const x=y.state;return x.wrap&2?(x.head=E,E.done=!1,jA):el},cg=(y,E)=>{const x=E.length;let te,re,ae;return ac(y)||(te=y.state,te.wrap!==0&&te.mode!==Su)?el:te.mode===Su&&(re=1,re=da(re,E,x,0),re!==te.check)?wf:(ae=Sf(y,E,x,x),ae?(te.mode=vd,nc):(te.havedict=1,jA))};var yp=Lu,bd=gh,fg=mp,dg=mh,If=xf,wh=yh,bh=Ff,wp=vp,Bd=cg,Cd="pako inflate (from Nodeca project)",ru={inflateReset:yp,inflateReset2:bd,inflateResetKeep:fg,inflateInit:dg,inflateInit2:If,inflate:wh,inflateEnd:bh,inflateGetHeader:wp,inflateSetDictionary:Bd,inflateInfo:Cd};function bp(){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 Bp=bp;const Cp=Object.prototype.toString,{Z_NO_FLUSH:Mc,Z_FINISH:Uu,Z_OK:iu,Z_STREAM_END:xd,Z_NEED_DICT:_c,Z_STREAM_ERROR:xp,Z_DATA_ERROR:Bh,Z_MEM_ERROR:Ep}=Hl;function Lf(y){this.options=Sc.assign({chunkSize:1024*64,windowBits:15,to:""},y||{});const E=this.options;E.raw&&E.windowBits>=0&&E.windowBits<16&&(E.windowBits=-E.windowBits,E.windowBits===0&&(E.windowBits=-15)),E.windowBits>=0&&E.windowBits<16&&!(y&&y.windowBits)&&(E.windowBits+=32),E.windowBits>15&&E.windowBits<48&&(E.windowBits&15||(E.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new RA,this.strm.avail_out=0;let x=ru.inflateInit2(this.strm,E.windowBits);if(x!==iu)throw new Error(YA[x]);if(this.header=new Bp,ru.inflateGetHeader(this.strm,this.header),E.dictionary&&(typeof E.dictionary=="string"?E.dictionary=Fc.string2buf(E.dictionary):Cp.call(E.dictionary)==="[object ArrayBuffer]"&&(E.dictionary=new Uint8Array(E.dictionary)),E.raw&&(x=ru.inflateSetDictionary(this.strm,E.dictionary),x!==iu)))throw new Error(YA[x])}Lf.prototype.push=function(y,E){const x=this.strm,te=this.options.chunkSize,re=this.options.dictionary;let ae,we,ve;if(this.ended)return!1;for(E===~~E?we=E:we=E===!0?Uu:Mc,Cp.call(y)==="[object ArrayBuffer]"?x.input=new Uint8Array(y):x.input=y,x.next_in=0,x.avail_in=x.input.length;;){for(x.avail_out===0&&(x.output=new Uint8Array(te),x.next_out=0,x.avail_out=te),ae=ru.inflate(x,we),ae===_c&&re&&(ae=ru.inflateSetDictionary(x,re),ae===iu?ae=ru.inflate(x,we):ae===Bh&&(ae=_c));x.avail_in>0&&ae===xd&&x.state.wrap>0&&y[x.next_in]!==0;)ru.inflateReset(x),ae=ru.inflate(x,we);switch(ae){case xp:case Bh:case _c:case Ep:return this.onEnd(ae),this.ended=!0,!1}if(ve=x.avail_out,x.next_out&&(x.avail_out===0||ae===xd))if(this.options.to==="string"){let Be=Fc.utf8border(x.output,x.next_out),Ee=x.next_out-Be,Ne=Fc.buf2string(x.output,Be);x.next_out=Ee,x.avail_out=te-Ee,Ee&&x.output.set(x.output.subarray(Be,Be+Ee),0),this.onData(Ne)}else this.onData(x.output.length===x.next_out?x.output:x.output.subarray(0,x.next_out));if(!(ae===iu&&ve===0)){if(ae===xd)return ae=ru.inflateEnd(this.strm),this.onEnd(ae),this.ended=!0,!0;if(x.avail_in===0)break}}return!0},Lf.prototype.onData=function(y){this.chunks.push(y)},Lf.prototype.onEnd=function(y){y===iu&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Sc.flattenChunks(this.chunks)),this.chunks=[],this.err=y,this.msg=this.strm.msg};function sc(y,E){const x=new Lf(E);if(x.push(y),x.err)throw x.msg||YA[x.err];return x.result}function Sp(y,E){return E=E||{},E.raw=!0,sc(y,E)}var Fp=Lf,Ip=sc,Ch=Sp,xh=sc,kc=Hl,Ed={Inflate:Fp,inflate:Ip,inflateRaw:Ch,ungzip:xh,constants:kc};const{Deflate:ou,deflate:Lp,deflateRaw:Sd,gzip:hg}=up,{Inflate:pg,inflate:Up,inflateRaw:$a,ungzip:Op}=Ed;var Fd=ou,Ac=Lp,gl=Sd,Uf=hg,Of=pg,Hc=Up,Df=$a,Eh=Op,Sh=Hl,gg={Deflate:Fd,deflate:Ac,deflateRaw:gl,gzip:Uf,Inflate:Of,inflate:Hc,inflateRaw:Df,ungzip:Eh,constants:Sh};const Fh=[];for(let y=0;y<256;y++){let E=y;for(let x=0;x<8;x++)E&1?E=3988292384^E>>>1:E=E>>>1;Fh[y]=E}const Nf=4294967295;function Dp(y,E,x){let te=y;for(let re=0;re<x;re++)te=Fh[(te^E[re])&255]^te>>>8;return te}function _a(y,E){return(Dp(Nf,y,E)^Nf)>>>0}function Ou(y,E,x){const te=y.readUint32(),re=_a(new Uint8Array(y.buffer,y.byteOffset+y.offset-E-4,E),E);if(re!==te)throw new Error(`CRC mismatch for chunk ${x}. Expected ${te}, found ${re}`)}function mg(y,E){y.writeUint32(_a(new Uint8Array(y.buffer,y.byteOffset+y.offset-E,E),E))}function Xa(y,E,x){for(let te=0;te<x;te++)E[te]=y[te]}function Du(y,E,x,te){let re=0;for(;re<te;re++)E[re]=y[re];for(;re<x;re++)E[re]=y[re]+E[re-te]&255}function zl(y,E,x,te){let re=0;if(x.length===0)for(;re<te;re++)E[re]=y[re];else for(;re<te;re++)E[re]=y[re]+x[re]&255}function au(y,E,x,te,re){let ae=0;if(x.length===0){for(;ae<re;ae++)E[ae]=y[ae];for(;ae<te;ae++)E[ae]=y[ae]+(E[ae-re]>>1)&255}else{for(;ae<re;ae++)E[ae]=y[ae]+(x[ae]>>1)&255;for(;ae<te;ae++)E[ae]=y[ae]+(E[ae-re]+x[ae]>>1)&255}}function Ra(y,E,x,te,re){let ae=0;if(x.length===0){for(;ae<re;ae++)E[ae]=y[ae];for(;ae<te;ae++)E[ae]=y[ae]+E[ae-re]&255}else{for(;ae<re;ae++)E[ae]=y[ae]+x[ae]&255;for(;ae<te;ae++)E[ae]=y[ae]+Pf(E[ae-re],x[ae],x[ae-re])&255}}function Pf(y,E,x){const te=y+E-x,re=Math.abs(te-y),ae=Math.abs(te-E),we=Math.abs(te-x);return re<=ae&&re<=we?y:ae<=we?E:x}function su(y,E,x,te,re,ae){switch(y){case 0:Xa(E,x,re);break;case 1:Du(E,x,re,ae);break;case 2:zl(E,x,te,re);break;case 3:au(E,x,te,re,ae);break;case 4:Ra(E,x,te,re,ae);break;default:throw new Error(`Unsupported filter: ${y}`)}}const Np=new Uint16Array([255]),a=new Uint8Array(Np.buffer)[0]===255;function b(y){const{data:E,width:x,height:te,channels:re,depth:ae}=y,we=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],ve=Math.ceil(ae/8)*re,Be=new Uint8Array(te*x*ve);let Ee=0;for(let Ne=0;Ne<7;Ne++){const et=we[Ne],ht=Math.ceil((x-et.x)/et.xStep),De=Math.ceil((te-et.y)/et.yStep);if(ht<=0||De<=0)continue;const tn=ht*ve,$t=new Uint8Array(tn);for(let on=0;on<De;on++){const Ot=E[Ee++],jn=E.subarray(Ee,Ee+tn);Ee+=tn;const Dn=new Uint8Array(tn);su(Ot,jn,Dn,$t,tn,ve),$t.set(Dn);for(let bn=0;bn<ht;bn++){const Er=et.x+bn*et.xStep,Jr=et.y+on*et.yStep;if(!(Er>=x||Jr>=te))for(let Qr=0;Qr<ve;Qr++)Be[(Jr*x+Er)*ve+Qr]=Dn[bn*ve+Qr]}}}if(ae===16){const Ne=new Uint16Array(Be.buffer);if(a)for(let et=0;et<Ne.length;et++)Ne[et]=ee(Ne[et]);return Ne}else return Be}function ee(y){return(y&255)<<8|y>>8&255}const z=new Uint16Array([255]),me=new Uint8Array(z.buffer)[0]===255,Se=new Uint8Array(0);function Qe(y){const{data:E,width:x,height:te,channels:re,depth:ae}=y,we=Math.ceil(ae/8)*re,ve=Math.ceil(ae/8*re*x),Be=new Uint8Array(te*ve);let Ee=Se,Ne=0,et,ht;for(let De=0;De<te;De++){switch(et=E.subarray(Ne+1,Ne+1+ve),ht=Be.subarray(De*ve,(De+1)*ve),E[Ne]){case 0:Xa(et,ht,ve);break;case 1:Du(et,ht,ve,we);break;case 2:zl(et,ht,Ee,ve);break;case 3:au(et,ht,Ee,ve,we);break;case 4:Ra(et,ht,Ee,ve,we);break;default:throw new Error(`Unsupported filter: ${E[Ne]}`)}Ee=ht,Ne+=ve+1}if(ae===16){const De=new Uint16Array(Be.buffer);if(me)for(let tn=0;tn<De.length;tn++)De[tn]=Re(De[tn]);return De}else return Be}function Re(y){return(y&255)<<8|y>>8&255}const Ye=Uint8Array.of(137,80,78,71,13,10,26,10);function rn(y){y.writeBytes(Ye)}function gn(y){if(!tr(y.readBytes(Ye.length)))throw new Error("wrong PNG signature")}function tr(y){if(y.length<Ye.length)return!1;for(let E=0;E<Ye.length;E++)if(y[E]!==Ye[E])return!1;return!0}const $n="tEXt",Nr=0,ni=new TextDecoder("latin1");function di(y){if(Ui(y),y.length===0||y.length>79)throw new Error("keyword length must be between 1 and 79")}const Ci=/^[\u0000-\u00FF]*$/;function Ui(y){if(!Ci.test(y))throw new Error("invalid latin1 text")}function Ei(y,E,x){const te=lo(E);y[te]=Ji(E,x-te.length-1)}function Hi(y,E,x){di(E),Ui(x);const te=E.length+1+x.length;y.writeUint32(te),y.writeChars($n),y.writeChars(E),y.writeByte(Nr),y.writeChars(x),writeCrc(y,te+4)}function lo(y){for(y.mark();y.readByte()!==Nr;);const E=y.offset;y.reset();const x=ni.decode(y.readBytes(E-y.offset-1));return y.skip(1),di(x),x}function Ji(y,E){return ni.decode(y.readBytes(E))}const yo={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},ja={UNKNOWN:-1,DEFLATE:0},Os={UNKNOWN:-1,ADAPTIVE:0},ts={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},uA={NONE:0,BACKGROUND:1,PREVIOUS:2},Rs={SOURCE:0,OVER:1};class Ss extends $i{constructor(x,te={}){super(x);Va(this,"_checkCrc");Va(this,"_inflator");Va(this,"_png");Va(this,"_apng");Va(this,"_end");Va(this,"_hasPalette");Va(this,"_palette");Va(this,"_hasTransparency");Va(this,"_transparency");Va(this,"_compressionMethod");Va(this,"_filterMethod");Va(this,"_interlaceMethod");Va(this,"_colorType");Va(this,"_isAnimated");Va(this,"_numberOfFrames");Va(this,"_numberOfPlays");Va(this,"_frames");Va(this,"_writingDataChunks");const{checkCrc:re=!1}=te;this._checkCrc=re,this._inflator=new Of,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=ja.UNKNOWN,this._filterMethod=Os.UNKNOWN,this._interlaceMethod=ts.UNKNOWN,this._colorType=yo.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(gn(this);!this._end;){const x=this.readUint32(),te=this.readChars(4);this.decodeChunk(x,te)}return this.decodeImage(),this._png}decodeApng(){for(gn(this);!this._end;){const x=this.readUint32(),te=this.readChars(4);this.decodeApngChunk(x,te)}return this.decodeApngImage(),this._apng}decodeChunk(x,te){const re=this.offset;switch(te){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(x);break;case"IDAT":this.decodeIDAT(x);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(x);break;case"iCCP":this.decodeiCCP(x);break;case $n:Ei(this._png.text,this,x);break;case"pHYs":this.decodepHYs();break;default:this.skip(x);break}if(this.offset-re!==x)throw new Error(`Length mismatch while decoding chunk ${te}`);this._checkCrc?Ou(this,x+4,te):this.skip(4)}decodeApngChunk(x,te){const re=this.offset;switch(te!=="fdAT"&&te!=="IDAT"&&this._writingDataChunks&&this.pushDataToFrame(),te){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(x);break;default:this.decodeChunk(x,te),this.offset=re+x;break}if(this.offset-re!==x)throw new Error(`Length mismatch while decoding chunk ${te}`);this._checkCrc?Ou(this,x+4,te):this.skip(4)}decodeIHDR(){const x=this._png;x.width=this.readUint32(),x.height=this.readUint32(),x.depth=cA(this.readUint8());const te=this.readUint8();this._colorType=te;let re;switch(te){case yo.GREYSCALE:re=1;break;case yo.TRUECOLOUR:re=3;break;case yo.INDEXED_COLOUR:re=1;break;case yo.GREYSCALE_ALPHA:re=2;break;case yo.TRUECOLOUR_ALPHA:re=4;break;case yo.UNKNOWN:default:throw new Error(`Unknown color type: ${te}`)}if(this._png.channels=re,this._compressionMethod=this.readUint8(),this._compressionMethod!==ja.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 x={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(x)}decodePLTE(x){if(x%3!==0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${x}`);const te=x/3;this._hasPalette=!0;const re=[];this._palette=re;for(let ae=0;ae<te;ae++)re.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(x){this._writingDataChunks=!0;const te=x,re=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,re,te)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(x)}decodeFDAT(x){this._writingDataChunks=!0;let te=x,re=this.offset+this.byteOffset;if(re+=4,te-=4,this._inflator.push(new Uint8Array(this.buffer,re,te)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(x)}decodetRNS(x){switch(this._colorType){case yo.GREYSCALE:case yo.TRUECOLOUR:{if(x%2!==0)throw new RangeError(`tRNS chunk length must be a multiple of 2. Got ${x}`);if(x/2>this._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${x/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(x/2);for(let te=0;te<x/2;te++)this._transparency[te]=this.readUint16();break}case yo.INDEXED_COLOUR:{if(x>this._palette.length)throw new Error(`tRNS chunk contains more alpha values than there are palette colors (${x} vs ${this._palette.length})`);let te=0;for(;te<x;te++){const re=this.readByte();this._palette[te].push(re)}for(;te<this._palette.length;te++)this._palette[te].push(255);break}case yo.UNKNOWN:case yo.GREYSCALE_ALPHA:case yo.TRUECOLOUR_ALPHA:default:throw new Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(x){const te=lo(this),re=this.readUint8();if(re!==ja.DEFLATE)throw new Error(`Unsupported iCCP compression method: ${re}`);const ae=this.readBytes(x-te.length-2);this._png.iccEmbeddedProfile={name:te,profile:Hc(ae)}}decodepHYs(){const x=this.readUint32(),te=this.readUint32(),re=this.readByte();this._png.resolution={x,y:te,unit:re}}decodeApngImage(){this._apng.width=this._png.width,this._apng.height=this._png.height,this._apng.channels=this._png.channels,this._apng.depth=this._png.depth,this._apng.numberOfFrames=this._numberOfFrames,this._apng.numberOfPlays=this._numberOfPlays,this._apng.text=this._png.text,this._apng.resolution=this._png.resolution;for(let x=0;x<this._numberOfFrames;x++){const te={sequenceNumber:this._frames[x].sequenceNumber,delayNumber:this._frames[x].delayNumber,delayDenominator:this._frames[x].delayDenominator,data:this._apng.depth===8?new Uint8Array(this._apng.width*this._apng.height*this._apng.channels):new Uint16Array(this._apng.width*this._apng.height*this._apng.channels)},re=this._frames.at(x);if(re){if(re.data=Qe({data:re.data,width:re.width,height:re.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),x===0||re.xOffset===0&&re.yOffset===0&&re.width===this._png.width&&re.height===this._png.height)te.data=re.data;else{const ae=this._apng.frames.at(x-1);this.disposeFrame(re,ae,te),this.addFrameDataToCanvas(te,re)}this._apng.frames.push(te)}}return this._apng}disposeFrame(x,te,re){switch(x.disposeOp){case uA.NONE:break;case uA.BACKGROUND:for(let ae=0;ae<this._png.height;ae++)for(let we=0;we<this._png.width;we++){const ve=(ae*x.width+we)*this._png.channels;for(let Be=0;Be<this._png.channels;Be++)re.data[ve+Be]=0}break;case uA.PREVIOUS:re.data.set(te.data);break;default:throw new Error("Unknown disposeOp")}}addFrameDataToCanvas(x,te){const re=1<<this._png.depth,ae=(we,ve)=>{const Be=((we+te.yOffset)*this._png.width+te.xOffset+ve)*this._png.channels,Ee=(we*te.width+ve)*this._png.channels;return{index:Be,frameIndex:Ee}};switch(te.blendOp){case Rs.SOURCE:for(let we=0;we<te.height;we++)for(let ve=0;ve<te.width;ve++){const{index:Be,frameIndex:Ee}=ae(we,ve);for(let Ne=0;Ne<this._png.channels;Ne++)x.data[Be+Ne]=te.data[Ee+Ne]}break;case Rs.OVER:for(let we=0;we<te.height;we++)for(let ve=0;ve<te.width;ve++){const{index:Be,frameIndex:Ee}=ae(we,ve);for(let Ne=0;Ne<this._png.channels;Ne++){const et=te.data[Ee+this._png.channels-1]/re,ht=Ne%(this._png.channels-1)===0?1:te.data[Ee+Ne],De=Math.floor(et*ht+(1-et)*x.data[Be+Ne]);x.data[Be+Ne]+=De}}break;default:throw new Error("Unknown blendOp")}}decodeImage(){var te;if(this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);const x=this._isAnimated?((te=this._frames)==null?void 0:te.at(0)).data:this._inflator.result;if(this._filterMethod!==Os.ADAPTIVE)throw new Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===ts.NO_INTERLACE)this._png.data=Qe({data:x,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else if(this._interlaceMethod===ts.ADAM7)this._png.data=b({data:x,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else throw new Error(`Interlace method ${this._interlaceMethod} not supported`);this._hasPalette&&(this._png.palette=this._palette),this._hasTransparency&&(this._png.transparency=this._transparency)}pushDataToFrame(){const x=this._inflator.result,te=this._frames.at(-1);te?te.data=x:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:uA.NONE,blendOp:Rs.SOURCE,data:x}),this._inflator=new Of,this._writingDataChunks=!1}}function cA(y){if(y!==1&&y!==2&&y!==4&&y!==8&&y!==16)throw new Error(`invalid bit depth: ${y}`);return y}const Vs={level:3};class Bi extends null{constructor(x,te={}){var re;super();Va(this,"_png");Va(this,"_zlibOptions");Va(this,"_colorType");Va(this,"_interlaceMethod");this._colorType=ColorType.UNKNOWN,this._zlibOptions=E0(E0({},Vs),te.zlib),this._png=this._checkData(x),this._interlaceMethod=(re=te.interlace==="Adam7"?InterlaceMethod.ADAM7:InterlaceMethod.NO_INTERLACE)!=null?re:InterlaceMethod.NO_INTERLACE,this.setBigEndian()}encode(){if(writeSignature(this),this.encodeIHDR(),this._png.palette&&(this.encodePLTE(),this._png.palette[0].length===4&&this.encodeTRNS()),this.encodeData(),this._png.text)for(const[x,te]of Object.entries(this._png.text))encodetEXt(this,x,te);return this.encodeIEND(),this.toArray()}encodeIHDR(){this.writeUint32(13),this.writeChars("IHDR"),this.writeUint32(this._png.width),this.writeUint32(this._png.height),this.writeByte(this._png.depth),this.writeByte(this._colorType),this.writeByte(CompressionMethod.DEFLATE),this.writeByte(FilterMethod.ADAPTIVE),this.writeByte(this._interlaceMethod),writeCrc(this,17)}encodeIEND(){this.writeUint32(0),this.writeChars("IEND"),writeCrc(this,4)}encodePLTE(){var te;const x=((te=this._png.palette)==null?void 0:te.length)*3;this.writeUint32(x),this.writeChars("PLTE");for(const re of this._png.palette)this.writeByte(re[0]),this.writeByte(re[1]),this.writeByte(re[2]);writeCrc(this,4+x)}encodeTRNS(){const x=this._png.palette.filter(te=>te.at(-1)!==255);this.writeUint32(x.length),this.writeChars("tRNS");for(const te of x)this.writeByte(te.at(-1));writeCrc(this,4+x.length)}encodeIDAT(x){this.writeUint32(x.length),this.writeChars("IDAT"),this.writeBytes(x),writeCrc(this,x.length+4)}encodeData(){const{width:x,height:te,channels:re,depth:ae,data:we}=this._png,ve=ae<=8?Math.ceil(x*ae/8)*re:Math.ceil(x*ae/8*re/2),Be=new IOBuffer().setBigEndian();let Ee=0;if(this._interlaceMethod===InterlaceMethod.NO_INTERLACE)for(let ht=0;ht<te;ht++)Be.writeByte(0),ae===16?Ee=ha(we,Be,ve,Ee):Ee=rs(we,Be,ve,Ee);else this._interlaceMethod===InterlaceMethod.ADAM7&&(Ee=Rc(this._png,we,Be,Ee));const Ne=Be.toArray(),et=deflate(Ne,this._zlibOptions);this.encodeIDAT(et)}_checkData(x){const{colorType:te,channels:re,depth:ae}=ns(x,x.palette),we={width:Ya(x.width,"width"),height:Ya(x.height,"height"),channels:re,data:x.data,depth:ae,text:x.text,palette:x.palette};this._colorType=te;const ve=ae<8?Math.ceil(we.width*ae/8)*we.height*re:we.width*we.height*re;if(we.data.length!==ve)throw new RangeError(`wrong data size. Found ${we.data.length}, expected ${ve}`);return we}}function Ya(y,E){if(Number.isInteger(y)&&y>0)return y;throw new TypeError(`${E} must be a positive integer`)}function ns(y,E){const{channels:x=4,depth:te=8}=y;if(x!==4&&x!==3&&x!==2&&x!==1)throw new RangeError(`unsupported number of channels: ${x}`);const re={channels:x,depth:te,colorType:ColorType.UNKNOWN};switch(x){case 4:re.colorType=ColorType.TRUECOLOUR_ALPHA;break;case 3:re.colorType=ColorType.TRUECOLOUR;break;case 1:E?re.colorType=ColorType.INDEXED_COLOUR:re.colorType=ColorType.GREYSCALE;break;case 2:re.colorType=ColorType.GREYSCALE_ALPHA;break;default:throw new Error("unsupported number of channels")}return re}function rs(y,E,x,te){for(let re=0;re<x;re++)E.writeByte(y[te++]);return te}function Rc(y,E,x,te){const re=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],{width:ae,height:we,channels:ve,depth:Be}=y;let Ee=0;Be===16?Ee=ve*Be/8/2:Ee=ve*Be/8;for(let Ne=0;Ne<7;Ne++){const et=re[Ne],ht=Math.floor((ae-et.x+et.xStep-1)/et.xStep),De=Math.floor((we-et.y+et.yStep-1)/et.yStep);if(ht<=0||De<=0)continue;const tn=ht*Ee;for(let $t=0;$t<De;$t++){const on=et.y+$t*et.yStep,Ot=Be<=8?new Uint8Array(tn):new Uint16Array(tn);let jn=0;for(let Dn=0;Dn<ht;Dn++){const bn=et.x+Dn*et.xStep;if(bn<ae&&on<we){const Er=(on*ae+bn)*Ee;for(let Jr=0;Jr<Ee;Jr++)Ot[jn++]=E[Er+Jr]}}if(x.writeByte(0),Be===8)x.writeBytes(Ot);else if(Be===16)for(const Dn of Ot)x.writeByte(Dn>>8&255),x.writeByte(Dn&255)}}return te}function ha(y,E,x,te){for(let re=0;re<x;re++)E.writeUint16(y[te++]);return te}var ta;(function(y){y[y.UNKNOWN=0]="UNKNOWN",y[y.METRE=1]="METRE"})(ta||(ta={}));function nl(y,E){return new Ss(y,E).decode()}function Zs(y,E){return new PngEncoder(y,E).encode()}function Tf(y,E){return new PngDecoder(y,E).decodeApng()}var fo=function(){return typeof window!="undefined"?window:typeof pe.g!="undefined"?pe.g:typeof self!="undefined"?self:this}();function ml(){fo.console&&typeof fo.console.log=="function"&&fo.console.log.apply(fo.console,arguments)}var Pa={log:ml,warn:function(y){fo.console&&(typeof fo.console.warn=="function"?fo.console.warn.apply(fo.console,arguments):ml.call(null,arguments))},error:function(y){fo.console&&(typeof fo.console.error=="function"?fo.console.error.apply(fo.console,arguments):ml(y))}};function $s(y,E,x){var te=new XMLHttpRequest;te.open("GET",y),te.responseType="blob",te.onload=function(){zc(te.response,E,x)},te.onerror=function(){Pa.error("could not download file")},te.send()}function Nu(y){var E=new XMLHttpRequest;E.open("HEAD",y,!1);try{E.send()}catch(x){}return E.status>=200&&E.status<=299}function jc(y){try{y.dispatchEvent(new MouseEvent("click"))}catch(x){var E=document.createEvent("MouseEvents");E.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),y.dispatchEvent(E)}}var zc=fo.saveAs||((typeof window=="undefined"?"undefined":(0,oe.Z)(window))!=="object"||window!==fo?function(){}:typeof HTMLAnchorElement!="undefined"&&"download"in HTMLAnchorElement.prototype?function(y,E,x){var te=fo.URL||fo.webkitURL,re=document.createElement("a");E=E||y.name||"download",re.download=E,re.rel="noopener",typeof y=="string"?(re.href=y,re.origin!==location.origin?Nu(re.href)?$s(y,E,x):jc(re,re.target="_blank"):jc(re)):(re.href=te.createObjectURL(y),setTimeout(function(){te.revokeObjectURL(re.href)},4e4),setTimeout(function(){jc(re)},0))}:"msSaveOrOpenBlob"in navigator?function(y,E,x){if(E=E||y.name||"download",typeof y=="string")if(Nu(y))$s(y,E,x);else{var te=document.createElement("a");te.href=y,te.target="_blank",setTimeout(function(){jc(te)})}else navigator.msSaveOrOpenBlob(function(re,ae){return ae===void 0?ae={autoBom:!1}:(0,oe.Z)(ae)!=="object"&&(Pa.warn("Deprecated: Expected third argument to be a object"),ae={autoBom:!ae}),ae.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(re.type)?new Blob(["\uFEFF",re],{type:re.type}):re}(y,x),E)}:function(y,E,x,te){if((te=te||open("","_blank"))&&(te.document.title=te.document.body.innerText="downloading..."),typeof y=="string")return $s(y,E,x);var re=y.type==="application/octet-stream",ae=/constructor/i.test(fo.HTMLElement)||fo.safari,we=/CriOS\/[\d]+/.test(navigator.userAgent);if((we||re&&ae)&&(typeof FileReader=="undefined"?"undefined":(0,oe.Z)(FileReader))==="object"){var ve=new FileReader;ve.onloadend=function(){var Ne=ve.result;Ne=we?Ne:Ne.replace(/^data:[^;]*;/,"data:attachment/file;"),te?te.location.href=Ne:location=Ne,te=null},ve.readAsDataURL(y)}else{var Be=fo.URL||fo.webkitURL,Ee=Be.createObjectURL(y);te?te.location=Ee:location.href=Ee,te=null,setTimeout(function(){Be.revokeObjectURL(Ee)},4e4)}});function Yg(y){var E;y=y||"",this.ok=!1,y.charAt(0)=="#"&&(y=y.substr(1,6)),y={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[y=(y=y.replace(/ /g,"")).toLowerCase()]||y;for(var x=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(ve){return[parseInt(ve[1]),parseInt(ve[2]),parseInt(ve[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(ve){return[parseInt(ve[1],16),parseInt(ve[2],16),parseInt(ve[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(ve){return[parseInt(ve[1]+ve[1],16),parseInt(ve[2]+ve[2],16),parseInt(ve[3]+ve[3],16)]}}],te=0;te<x.length;te++){var re=x[te].re,ae=x[te].process,we=re.exec(y);we&&(E=ae(we),this.r=E[0],this.g=E[1],this.b=E[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var ve=this.r.toString(16),Be=this.g.toString(16),Ee=this.b.toString(16);return ve.length==1&&(ve="0"+ve),Be.length==1&&(Be="0"+Be),Ee.length==1&&(Ee="0"+Ee),"#"+ve+Be+Ee}}var Ih=fo.atob.bind(fo),vg=fo.btoa.bind(fo);function Lh(y,E){var x=y[0],te=y[1],re=y[2],ae=y[3];x=zA(x,te,re,ae,E[0],7,-680876936),ae=zA(ae,x,te,re,E[1],12,-389564586),re=zA(re,ae,x,te,E[2],17,606105819),te=zA(te,re,ae,x,E[3],22,-1044525330),x=zA(x,te,re,ae,E[4],7,-176418897),ae=zA(ae,x,te,re,E[5],12,1200080426),re=zA(re,ae,x,te,E[6],17,-1473231341),te=zA(te,re,ae,x,E[7],22,-45705983),x=zA(x,te,re,ae,E[8],7,1770035416),ae=zA(ae,x,te,re,E[9],12,-1958414417),re=zA(re,ae,x,te,E[10],17,-42063),te=zA(te,re,ae,x,E[11],22,-1990404162),x=zA(x,te,re,ae,E[12],7,1804603682),ae=zA(ae,x,te,re,E[13],12,-40341101),re=zA(re,ae,x,te,E[14],17,-1502002290),x=OA(x,te=zA(te,re,ae,x,E[15],22,1236535329),re,ae,E[1],5,-165796510),ae=OA(ae,x,te,re,E[6],9,-1069501632),re=OA(re,ae,x,te,E[11],14,643717713),te=OA(te,re,ae,x,E[0],20,-373897302),x=OA(x,te,re,ae,E[5],5,-701558691),ae=OA(ae,x,te,re,E[10],9,38016083),re=OA(re,ae,x,te,E[15],14,-660478335),te=OA(te,re,ae,x,E[4],20,-405537848),x=OA(x,te,re,ae,E[9],5,568446438),ae=OA(ae,x,te,re,E[14],9,-1019803690),re=OA(re,ae,x,te,E[3],14,-187363961),te=OA(te,re,ae,x,E[8],20,1163531501),x=OA(x,te,re,ae,E[13],5,-1444681467),ae=OA(ae,x,te,re,E[2],9,-51403784),re=OA(re,ae,x,te,E[7],14,1735328473),x=KA(x,te=OA(te,re,ae,x,E[12],20,-1926607734),re,ae,E[5],4,-378558),ae=KA(ae,x,te,re,E[8],11,-2022574463),re=KA(re,ae,x,te,E[11],16,1839030562),te=KA(te,re,ae,x,E[14],23,-35309556),x=KA(x,te,re,ae,E[1],4,-1530992060),ae=KA(ae,x,te,re,E[4],11,1272893353),re=KA(re,ae,x,te,E[7],16,-155497632),te=KA(te,re,ae,x,E[10],23,-1094730640),x=KA(x,te,re,ae,E[13],4,681279174),ae=KA(ae,x,te,re,E[0],11,-358537222),re=KA(re,ae,x,te,E[3],16,-722521979),te=KA(te,re,ae,x,E[6],23,76029189),x=KA(x,te,re,ae,E[9],4,-640364487),ae=KA(ae,x,te,re,E[12],11,-421815835),re=KA(re,ae,x,te,E[15],16,530742520),x=WA(x,te=KA(te,re,ae,x,E[2],23,-995338651),re,ae,E[0],6,-198630844),ae=WA(ae,x,te,re,E[7],10,1126891415),re=WA(re,ae,x,te,E[14],15,-1416354905),te=WA(te,re,ae,x,E[5],21,-57434055),x=WA(x,te,re,ae,E[12],6,1700485571),ae=WA(ae,x,te,re,E[3],10,-1894986606),re=WA(re,ae,x,te,E[10],15,-1051523),te=WA(te,re,ae,x,E[1],21,-2054922799),x=WA(x,te,re,ae,E[8],6,1873313359),ae=WA(ae,x,te,re,E[15],10,-30611744),re=WA(re,ae,x,te,E[6],15,-1560198380),te=WA(te,re,ae,x,E[13],21,1309151649),x=WA(x,te,re,ae,E[4],6,-145523070),ae=WA(ae,x,te,re,E[11],10,-1120210379),re=WA(re,ae,x,te,E[2],15,718787259),te=WA(te,re,ae,x,E[9],21,-343485551),y[0]=Pu(x,y[0]),y[1]=Pu(te,y[1]),y[2]=Pu(re,y[2]),y[3]=Pu(ae,y[3])}function Uh(y,E,x,te,re,ae){return E=Pu(Pu(E,y),Pu(te,ae)),Pu(E<<re|E>>>32-re,x)}function zA(y,E,x,te,re,ae,we){return Uh(E&x|~E&te,y,E,re,ae,we)}function OA(y,E,x,te,re,ae,we){return Uh(E&te|x&~te,y,E,re,ae,we)}function KA(y,E,x,te,re,ae,we){return Uh(E^x^te,y,E,re,ae,we)}function WA(y,E,x,te,re,ae,we){return Uh(x^(E|~te),y,E,re,ae,we)}function Jg(y){var E,x=y.length,te=[1732584193,-271733879,-1732584194,271733878];for(E=64;E<=y.length;E+=64)Lh(te,Pp(y.substring(E-64,E)));y=y.substring(E-64);var re=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(E=0;E<y.length;E++)re[E>>2]|=y.charCodeAt(E)<<(E%4<<3);if(re[E>>2]|=128<<(E%4<<3),E>55)for(Lh(te,re),E=0;E<16;E++)re[E]=0;return re[14]=8*x,Lh(te,re),te}function Pp(y){var E,x=[];for(E=0;E<64;E+=4)x[E>>2]=y.charCodeAt(E)+(y.charCodeAt(E+1)<<8)+(y.charCodeAt(E+2)<<16)+(y.charCodeAt(E+3)<<24);return x}var Nl="0123456789abcdef".split("");function qg(y){for(var E="",x=0;x<4;x++)E+=Nl[y>>8*x+4&15]+Nl[y>>8*x&15];return E}function Tp(y){return String.fromCharCode(255&y,(65280&y)>>8,(16711680&y)>>16,(4278190080&y)>>24)}function yg(y){return Jg(y).map(Tp).join("")}var km=function(y){for(var E=0;E<y.length;E++)y[E]=qg(y[E]);return y.join("")}(Jg("hello"))!="5d41402abc4b2a76b9719d911017c592";function Pu(y,E){if(km){var x=(65535&y)+(65535&E);return(y>>16)+(E>>16)+(x>>16)<<16|65535&x}return y+E&4294967295}function Kc(y,E){var x,te,re,ae;if(y!==x){for(var we=(re=y,ae=1+(256/y.length|0),new Array(ae+1).join(re)),ve=[],Be=0;Be<256;Be++)ve[Be]=Be;var Ee=0;for(Be=0;Be<256;Be++){var Ne=ve[Be];Ee=(Ee+Ne+we.charCodeAt(Be))%256,ve[Be]=ve[Ee],ve[Ee]=Ne}x=y,te=ve}else ve=te;var et=E.length,ht=0,De=0,tn="";for(Be=0;Be<et;Be++)De=(De+(Ne=ve[ht=(ht+1)%256]))%256,ve[ht]=ve[De],ve[De]=Ne,we=ve[(ve[ht]+ve[De])%256],tn+=String.fromCharCode(E.charCodeAt(Be)^we);return tn}var Oh={print:4,modify:8,copy:16,"annot-forms":32};function Ld(y,E,x,te){this.v=1,this.r=2;var re=192;y.forEach(function(ve){if(Oh.perm!==void 0)throw new Error("Invalid permission: "+ve);re+=Oh[ve]}),this.padding="(\xBFN^Nu\x8AAd\0NV\xFF\xFA\b..\0\xB6\xD0h>\x80/\f\xA9\xFEdSiz";var ae=(E+this.padding).substr(0,32),we=(x+this.padding).substr(0,32);this.O=this.processOwnerPassword(ae,we),this.P=-(1+(255^re)),this.encryptionKey=yg(ae+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(te)).substr(0,5),this.U=Kc(this.encryptionKey,this.padding)}function Au(y){if(/[^\u0000-\u00ff]/.test(y))throw new Error("Invalid PDF Name Object: "+y+", Only accept ASCII characters.");for(var E="",x=y.length,te=0;te<x;te++){var re=y.charCodeAt(te);E+=re<33||re===35||re===37||re===40||re===41||re===47||re===60||re===62||re===91||re===93||re===123||re===125||re>126?"#"+("0"+re.toString(16)).slice(-2):y[te]}return E}function em(y){if((0,oe.Z)(y)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var E={};this.subscribe=function(x,te,re){if(re=re||!1,typeof x!="string"||typeof te!="function"||typeof re!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");E.hasOwnProperty(x)||(E[x]={});var ae=Math.random().toString(35);return E[x][ae]=[te,!!re],ae},this.unsubscribe=function(x){for(var te in E)if(E[te][x])return delete E[te][x],Object.keys(E[te]).length===0&&delete E[te],!0;return!1},this.publish=function(x){if(E.hasOwnProperty(x)){var te=Array.prototype.slice.call(arguments,1),re=[];for(var ae in E[x]){var we=E[x][ae];try{we[0].apply(y,te)}catch(ve){fo.console&&Pa.error("jsPDF PubSub Error",ve.message,ve)}we[1]&&re.push(ae)}re.length&&re.forEach(this.unsubscribe)}},this.getTopics=function(){return E}}function Dh(y){if(!(this instanceof Dh))return new Dh(y);var E="opacity,stroke-opacity".split(",");for(var x in y)y.hasOwnProperty(x)&&E.indexOf(x)>=0&&(this[x]=y[x]);this.id="",this.objectNumber=-1}function wg(y,E){this.gState=y,this.matrix=E,this.id="",this.objectNumber=-1}function Wc(y,E,x,te,re){if(!(this instanceof Wc))return new Wc(y,E,x,te,re);this.type=y==="axial"?2:3,this.coords=E,this.colors=x,wg.call(this,te,re)}function Gc(y,E,x,te,re){if(!(this instanceof Gc))return new Gc(y,E,x,te,re);this.boundingBox=y,this.xStep=E,this.yStep=x,this.stream="",this.cloneIndex=0,wg.call(this,te,re)}function ao(y){var E,x=typeof arguments[0]=="string"?arguments[0]:"p",te=arguments[1],re=arguments[2],ae=arguments[3],we=[],ve=1,Be=16,Ee="S",Ne=null;(0,oe.Z)(y=y||{})==="object"&&(x=y.orientation,te=y.unit||te,re=y.format||re,ae=y.compress||y.compressPdf||ae,(Ne=y.encryption||null)!==null&&(Ne.userPassword=Ne.userPassword||"",Ne.ownerPassword=Ne.ownerPassword||"",Ne.userPermissions=Ne.userPermissions||[]),ve=typeof y.userUnit=="number"?Math.abs(y.userUnit):1,y.precision!==void 0&&(E=y.precision),y.floatPrecision!==void 0&&(Be=y.floatPrecision),Ee=y.defaultPathOperation||"S"),we=y.filters||(ae===!0?["FlateEncode"]:we),te=te||"mm",x=(""+(x||"P")).toLowerCase();var et=y.putOnlyUsedFonts||!1,ht={},De={internal:{},__private__:{}};De.__private__.PubSub=em;var tn="1.3",$t=De.__private__.getPdfVersion=function(){return tn};De.__private__.setPdfVersion=function(Ce){tn=Ce};var on={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};De.__private__.getPageFormats=function(){return on};var Ot=De.__private__.getPageFormat=function(Ce){return on[Ce]};re=re||"a4";var jn="compat",Dn="advanced",bn=jn;function Er(){this.saveGraphicsState(),sn(new zo(ca,0,0,-ca,0,Rh()*ca).toString()+" cm"),this.setFontSize(this.getFontSize()/ca),Ee="n",bn=Dn}function Jr(){this.restoreGraphicsState(),Ee="S",bn=jn}var Qr=De.__private__.combineFontStyleAndFontWeight=function(Ce,it){if(Ce=="bold"&&it=="normal"||Ce=="bold"&&it==400||Ce=="normal"&&it=="italic"||Ce=="bold"&&it=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return it&&(Ce=it==400||it==="normal"?Ce==="italic"?"italic":"normal":it!=700&&it!=="bold"||Ce!=="normal"?(it==700?"bold":it)+""+Ce:"bold"),Ce};De.advancedAPI=function(Ce){var it=bn===jn;return it&&Er.call(this),typeof Ce!="function"||(Ce(this),it&&Jr.call(this)),this},De.compatAPI=function(Ce){var it=bn===Dn;return it&&Jr.call(this),typeof Ce!="function"||(Ce(this),it&&Er.call(this)),this},De.isAdvancedAPI=function(){return bn===Dn};var qn,Bn=function(Ce){if(bn!==Dn)throw new Error(Ce+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},ur=De.roundToPrecision=De.__private__.roundToPrecision=function(Ce,it){var hn=E||it;if(isNaN(Ce)||isNaN(hn))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return Ce.toFixed(hn).replace(/0+$/,"")};qn=De.hpf=De.__private__.hpf=typeof Be=="number"?function(Ce){if(isNaN(Ce))throw new Error("Invalid argument passed to jsPDF.hpf");return ur(Ce,Be)}:Be==="smart"?function(Ce){if(isNaN(Ce))throw new Error("Invalid argument passed to jsPDF.hpf");return ur(Ce,Ce>-1&&Ce<1?16:5)}:function(Ce){if(isNaN(Ce))throw new Error("Invalid argument passed to jsPDF.hpf");return ur(Ce,16)};var Ut=De.f2=De.__private__.f2=function(Ce){if(isNaN(Ce))throw new Error("Invalid argument passed to jsPDF.f2");return ur(Ce,2)},an=De.__private__.f3=function(Ce){if(isNaN(Ce))throw new Error("Invalid argument passed to jsPDF.f3");return ur(Ce,3)},Hn=De.scale=De.__private__.scale=function(Ce){if(isNaN(Ce))throw new Error("Invalid argument passed to jsPDF.scale");return bn===jn?Ce*ca:bn===Dn?Ce:void 0},Pn=function(Ce){return Hn(function(it){return bn===jn?Rh()-it:bn===Dn?it:void 0}(Ce))};De.__private__.setPrecision=De.setPrecision=function(Ce){typeof parseInt(Ce,10)=="number"&&(E=parseInt(Ce,10))};var Ir,Tr="00000000000000000000000000000000",_r=De.__private__.getFileId=function(){return Tr},Br=De.__private__.setFileId=function(Ce){return Tr=Ce!==void 0&&/^[a-fA-F0-9]{32}$/.test(Ce)?Ce.toUpperCase():Tr.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),Ne!==null&&(DA=new Ld(Ne.userPermissions,Ne.userPassword,Ne.ownerPassword,Tr)),Tr};De.setFileId=function(Ce){return Br(Ce),this},De.getFileId=function(){return _r()};var Kr=De.__private__.convertDateToPDFDate=function(Ce){var it=Ce.getTimezoneOffset(),hn=it<0?"+":"-",kn=Math.floor(Math.abs(it/60)),Ar=Math.abs(it%60),ri=[hn,On(kn),"'",On(Ar),"'"].join("");return["D:",Ce.getFullYear(),On(Ce.getMonth()+1),On(Ce.getDate()),On(Ce.getHours()),On(Ce.getMinutes()),On(Ce.getSeconds()),ri].join("")},Si=De.__private__.convertPDFDateToDate=function(Ce){var it=parseInt(Ce.substr(2,4),10),hn=parseInt(Ce.substr(6,2),10)-1,kn=parseInt(Ce.substr(8,2),10),Ar=parseInt(Ce.substr(10,2),10),ri=parseInt(Ce.substr(12,2),10),ui=parseInt(Ce.substr(14,2),10);return new Date(it,hn,kn,Ar,ri,ui,0)},li=De.__private__.setCreationDate=function(Ce){var it;if(Ce===void 0&&(Ce=new Date),Ce instanceof Date)it=Kr(Ce);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(Ce))throw new Error("Invalid argument passed to jsPDF.setCreationDate");it=Ce}return Ir=it},xt=De.__private__.getCreationDate=function(Ce){var it=Ir;return Ce==="jsDate"&&(it=Si(Ir)),it};De.setCreationDate=function(Ce){return li(Ce),this},De.getCreationDate=function(Ce){return xt(Ce)};var wn,On=De.__private__.padd2=function(Ce){return("0"+parseInt(Ce)).slice(-2)},Gn=De.__private__.padd2Hex=function(Ce){return("00"+(Ce=Ce.toString())).substr(Ce.length)},or=0,yr=[],Mr=[],Hr=0,oi=[],wi=[],Ri=!1,_i=Mr;De.__private__.setCustomOutputDestination=function(Ce){Ri=!0,_i=Ce};var Io=function(Ce){Ri||(_i=Ce)};De.__private__.resetCustomOutputDestination=function(){Ri=!1,_i=Mr};var sn=De.__private__.out=function(Ce){return Ce=Ce.toString(),Hr+=Ce.length+1,_i.push(Ce),_i},ji=De.__private__.write=function(Ce){return sn(arguments.length===1?Ce.toString():Array.prototype.join.call(arguments," "))},Ca=De.__private__.getArrayBuffer=function(Ce){for(var it=Ce.length,hn=new ArrayBuffer(it),kn=new Uint8Array(hn);it--;)kn[it]=Ce.charCodeAt(it);return hn},_o=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];De.__private__.getStandardFonts=function(){return _o};var gi=y.fontSize||16;De.__private__.setFontSize=De.setFontSize=function(Ce){return gi=bn===Dn?Ce/ca:Ce,this};var ko,no=De.__private__.getFontSize=De.getFontSize=function(){return bn===jn?gi:gi*ca},Mo=y.R2L||!1;De.__private__.setR2L=De.setR2L=function(Ce){return Mo=Ce,this},De.__private__.getR2L=De.getR2L=function(){return Mo};var Uo,is=De.__private__.setZoomMode=function(Ce){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(Ce))ko=Ce;else if(isNaN(Ce)){if([void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(Ce)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+Ce+'" is not recognized.');ko=Ce}else ko=parseInt(Ce,10)};De.__private__.getZoomMode=function(){return ko};var Ta,oa=De.__private__.setPageMode=function(Ce){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(Ce)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+Ce+'" is not recognized.');Uo=Ce};De.__private__.getPageMode=function(){return Uo};var ka=De.__private__.setLayoutMode=function(Ce){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(Ce)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+Ce+'" is not recognized.');Ta=Ce};De.__private__.getLayoutMode=function(){return Ta},De.__private__.setDisplayMode=De.setDisplayMode=function(Ce,it,hn){return is(Ce),ka(it),oa(hn),this};var Qa={title:"",subject:"",author:"",keywords:"",creator:""};De.__private__.getDocumentProperty=function(Ce){if(Object.keys(Qa).indexOf(Ce)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return Qa[Ce]},De.__private__.getDocumentProperties=function(){return Qa},De.__private__.setDocumentProperties=De.setProperties=De.setDocumentProperties=function(Ce){for(var it in Qa)Qa.hasOwnProperty(it)&&Ce[it]&&(Qa[it]=Ce[it]);return this},De.__private__.setDocumentProperty=function(Ce,it){if(Object.keys(Qa).indexOf(Ce)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Qa[Ce]=it};var ho,ca,xo,fA,Ka,Sa={},Fa={},Ns=[],No={},ms={},Go={},aa={},Ps=null,La=0,jo=[],os=new em(De),Nh=y.hotfixes||[],wl={},kf={},Jc=[],zo=function Ce(it,hn,kn,Ar,ri,ui){if(!(this instanceof Ce))return new Ce(it,hn,kn,Ar,ri,ui);isNaN(it)&&(it=1),isNaN(hn)&&(hn=0),isNaN(kn)&&(kn=0),isNaN(Ar)&&(Ar=1),isNaN(ri)&&(ri=0),isNaN(ui)&&(ui=0),this._matrix=[it,hn,kn,Ar,ri,ui]};Object.defineProperty(zo.prototype,"sx",{get:function(){return this._matrix[0]},set:function(Ce){this._matrix[0]=Ce}}),Object.defineProperty(zo.prototype,"shy",{get:function(){return this._matrix[1]},set:function(Ce){this._matrix[1]=Ce}}),Object.defineProperty(zo.prototype,"shx",{get:function(){return this._matrix[2]},set:function(Ce){this._matrix[2]=Ce}}),Object.defineProperty(zo.prototype,"sy",{get:function(){return this._matrix[3]},set:function(Ce){this._matrix[3]=Ce}}),Object.defineProperty(zo.prototype,"tx",{get:function(){return this._matrix[4]},set:function(Ce){this._matrix[4]=Ce}}),Object.defineProperty(zo.prototype,"ty",{get:function(){return this._matrix[5]},set:function(Ce){this._matrix[5]=Ce}}),Object.defineProperty(zo.prototype,"a",{get:function(){return this._matrix[0]},set:function(Ce){this._matrix[0]=Ce}}),Object.defineProperty(zo.prototype,"b",{get:function(){return this._matrix[1]},set:function(Ce){this._matrix[1]=Ce}}),Object.defineProperty(zo.prototype,"c",{get:function(){return this._matrix[2]},set:function(Ce){this._matrix[2]=Ce}}),Object.defineProperty(zo.prototype,"d",{get:function(){return this._matrix[3]},set:function(Ce){this._matrix[3]=Ce}}),Object.defineProperty(zo.prototype,"e",{get:function(){return this._matrix[4]},set:function(Ce){this._matrix[4]=Ce}}),Object.defineProperty(zo.prototype,"f",{get:function(){return this._matrix[5]},set:function(Ce){this._matrix[5]=Ce}}),Object.defineProperty(zo.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(zo.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(zo.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(zo.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),zo.prototype.join=function(Ce){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(qn).join(Ce)},zo.prototype.multiply=function(Ce){var it=Ce.sx*this.sx+Ce.shy*this.shx,hn=Ce.sx*this.shy+Ce.shy*this.sy,kn=Ce.shx*this.sx+Ce.sy*this.shx,Ar=Ce.shx*this.shy+Ce.sy*this.sy,ri=Ce.tx*this.sx+Ce.ty*this.shx+this.tx,ui=Ce.tx*this.shy+Ce.ty*this.sy+this.ty;return new zo(it,hn,kn,Ar,ri,ui)},zo.prototype.decompose=function(){var Ce=this.sx,it=this.shy,hn=this.shx,kn=this.sy,Ar=this.tx,ri=this.ty,ui=Math.sqrt(Ce*Ce+it*it),ro=(Ce/=ui)*hn+(it/=ui)*kn;hn-=Ce*ro,kn-=it*ro;var po=Math.sqrt(hn*hn+kn*kn);return ro/=po,Ce*(kn/=po)<it*(hn/=po)&&(Ce=-Ce,it=-it,ro=-ro,ui=-ui),{scale:new zo(ui,0,0,po,0,0),translate:new zo(1,0,0,1,Ar,ri),rotate:new zo(Ce,it,-it,Ce,0,0),skew:new zo(1,0,ro,1,0,0)}},zo.prototype.toString=function(Ce){return this.join(" ")},zo.prototype.inversed=function(){var Ce=this.sx,it=this.shy,hn=this.shx,kn=this.sy,Ar=this.tx,ri=this.ty,ui=1/(Ce*kn-it*hn),ro=kn*ui,po=-it*ui,Yo=-hn*ui,fa=Ce*ui;return new zo(ro,po,Yo,fa,-ro*Ar-Yo*ri,-po*Ar-fa*ri)},zo.prototype.applyToPoint=function(Ce){var it=Ce.x*this.sx+Ce.y*this.shx+this.tx,hn=Ce.x*this.shy+Ce.y*this.sy+this.ty;return new Gf(it,hn)},zo.prototype.applyToRectangle=function(Ce){var it=this.applyToPoint(Ce),hn=this.applyToPoint(new Gf(Ce.x+Ce.w,Ce.y+Ce.h));return new Ug(it.x,it.y,hn.x-it.x,hn.y-it.y)},zo.prototype.clone=function(){var Ce=this.sx,it=this.shy,hn=this.shx,kn=this.sy,Ar=this.tx,ri=this.ty;return new zo(Ce,it,hn,kn,Ar,ri)},De.Matrix=zo;var Hf=De.matrixMult=function(Ce,it){return it.multiply(Ce)},Rf=new zo(1,0,0,1,0,0);De.unitMatrix=De.identityMatrix=Rf;var Mu=function(Ce,it){if(!ms[Ce]){var hn=(it instanceof Wc?"Sh":"P")+(Object.keys(No).length+1).toString(10);it.id=hn,ms[Ce]=hn,No[hn]=it,os.publish("addPattern",it)}};De.ShadingPattern=Wc,De.TilingPattern=Gc,De.addShadingPattern=function(Ce,it){return Bn("addShadingPattern()"),Mu(Ce,it),this},De.beginTilingPattern=function(Ce){Bn("beginTilingPattern()"),Og(Ce.boundingBox[0],Ce.boundingBox[1],Ce.boundingBox[2]-Ce.boundingBox[0],Ce.boundingBox[3]-Ce.boundingBox[1],Ce.matrix)},De.endTilingPattern=function(Ce,it){Bn("endTilingPattern()"),it.stream=wi[wn].join(`
|
|
|
`),Mu(Ce,it),os.publish("endTilingPattern",it),Jc.pop().restore()};var _u,Xs=De.__private__.newObject=function(){var Ce=VA();return il(Ce,!0),Ce},VA=De.__private__.newObjectDeferred=function(){return or++,yr[or]=function(){return Hr},or},il=function(Ce,it){return it=typeof it=="boolean"&&it,yr[Ce]=Hr,it&&sn(Ce+" 0 obj"),Ce},Ph=De.__private__.newAdditionalObject=function(){var Ce={objId:VA(),content:""};return oi.push(Ce),Ce},Nd=VA(),hc=VA(),qc=De.__private__.decodeColorString=function(Ce){var it=Ce.split(" ");if(it.length!==2||it[1]!=="g"&&it[1]!=="G")it.length!==5||it[4]!=="k"&&it[4]!=="K"||(it=[(1-it[0])*(1-it[3]),(1-it[1])*(1-it[3]),(1-it[2])*(1-it[3]),"r"]);else{var hn=parseFloat(it[0]);it=[hn,hn,hn,"r"]}for(var kn="#",Ar=0;Ar<3;Ar++)kn+=("0"+Math.floor(255*parseFloat(it[Ar])).toString(16)).slice(-2);return kn},pc=De.__private__.encodeColorString=function(Ce){var it;typeof Ce=="string"&&(Ce={ch1:Ce});var hn=Ce.ch1,kn=Ce.ch2,Ar=Ce.ch3,ri=Ce.ch4,ui=Ce.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof hn=="string"&&hn.charAt(0)!=="#"){var ro=new Yg(hn);if(ro.ok)hn=ro.toHex();else if(!/^\d*\.?\d*$/.test(hn))throw new Error('Invalid color "'+hn+'" passed to jsPDF.encodeColorString.')}if(typeof hn=="string"&&/^#[0-9A-Fa-f]{3}$/.test(hn)&&(hn="#"+hn[1]+hn[1]+hn[2]+hn[2]+hn[3]+hn[3]),typeof hn=="string"&&/^#[0-9A-Fa-f]{6}$/.test(hn)){var po=parseInt(hn.substr(1),16);hn=po>>16&255,kn=po>>8&255,Ar=255&po}if(kn===void 0||ri===void 0&&hn===kn&&kn===Ar)it=typeof hn=="string"?hn+" "+ui[0]:Ce.precision===2?Ut(hn/255)+" "+ui[0]:an(hn/255)+" "+ui[0];else if(ri===void 0||(0,oe.Z)(ri)==="object"){if(ri&&!isNaN(ri.a)&&ri.a===0)return["1.","1.","1.",ui[1]].join(" ");it=typeof hn=="string"?[hn,kn,Ar,ui[1]].join(" "):Ce.precision===2?[Ut(hn/255),Ut(kn/255),Ut(Ar/255),ui[1]].join(" "):[an(hn/255),an(kn/255),an(Ar/255),ui[1]].join(" ")}else it=typeof hn=="string"?[hn,kn,Ar,ri,ui[2]].join(" "):Ce.precision===2?[Ut(hn),Ut(kn),Ut(Ar),Ut(ri),ui[2]].join(" "):[an(hn),an(kn),an(Ar),an(ri),ui[2]].join(" ");return it},gc=De.__private__.getFilters=function(){return we},ku=De.__private__.putStream=function(Ce){var it=(Ce=Ce||{}).data||"",hn=Ce.filters||gc(),kn=Ce.alreadyAppliedFilters||[],Ar=Ce.addLength1||!1,ri=it.length,ui=Ce.objectId,ro=function(NA){return NA};if(Ne!==null&&ui===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");Ne!==null&&(ro=DA.encryptor(ui,0));var po={};hn===!0&&(hn=["FlateEncode"]);var Yo=Ce.additionalKeyValues||[],fa=(po=ao.API.processDataByFilters!==void 0?ao.API.processDataByFilters(it,hn):{data:it,reverseChain:[]}).reverseChain+(Array.isArray(kn)?kn.join(" "):kn.toString());if(po.data.length!==0&&(Yo.push({key:"Length",value:po.data.length}),Ar===!0&&Yo.push({key:"Length1",value:ri})),fa.length!=0)if(fa.split("/").length-1==1)Yo.push({key:"Filter",value:fa});else{Yo.push({key:"Filter",value:"["+fa+"]"});for(var Wa=0;Wa<Yo.length;Wa+=1)if(Yo[Wa].key==="DecodeParms"){for(var zs=[],CA=0;CA<po.reverseChain.split("/").length-1;CA+=1)zs.push("null");zs.push(Yo[Wa].value),Yo[Wa].value="["+zs.join(" ")+"]"}}sn("<<");for(var vs=0;vs<Yo.length;vs++)sn("/"+Yo[vs].key+" "+Yo[vs].value);sn(">>"),po.data.length!==0&&(sn("stream"),sn(ro(po.data)),sn("endstream"))},Th=De.__private__.putPage=function(Ce){var it=Ce.number,hn=Ce.data,kn=Ce.objId,Ar=Ce.contentsObjId;il(kn,!0),sn("<</Type /Page"),sn("/Parent "+Ce.rootDictionaryObjId+" 0 R"),sn("/Resources "+Ce.resourceDictionaryObjId+" 0 R"),sn("/MediaBox ["+parseFloat(qn(Ce.mediaBox.bottomLeftX))+" "+parseFloat(qn(Ce.mediaBox.bottomLeftY))+" "+qn(Ce.mediaBox.topRightX)+" "+qn(Ce.mediaBox.topRightY)+"]"),Ce.cropBox!==null&&sn("/CropBox ["+qn(Ce.cropBox.bottomLeftX)+" "+qn(Ce.cropBox.bottomLeftY)+" "+qn(Ce.cropBox.topRightX)+" "+qn(Ce.cropBox.topRightY)+"]"),Ce.bleedBox!==null&&sn("/BleedBox ["+qn(Ce.bleedBox.bottomLeftX)+" "+qn(Ce.bleedBox.bottomLeftY)+" "+qn(Ce.bleedBox.topRightX)+" "+qn(Ce.bleedBox.topRightY)+"]"),Ce.trimBox!==null&&sn("/TrimBox ["+qn(Ce.trimBox.bottomLeftX)+" "+qn(Ce.trimBox.bottomLeftY)+" "+qn(Ce.trimBox.topRightX)+" "+qn(Ce.trimBox.topRightY)+"]"),Ce.artBox!==null&&sn("/ArtBox ["+qn(Ce.artBox.bottomLeftX)+" "+qn(Ce.artBox.bottomLeftY)+" "+qn(Ce.artBox.topRightX)+" "+qn(Ce.artBox.topRightY)+"]"),typeof Ce.userUnit=="number"&&Ce.userUnit!==1&&sn("/UserUnit "+Ce.userUnit),os.publish("putPage",{objId:kn,pageContext:jo[it],pageNumber:it,page:hn}),sn("/Contents "+Ar+" 0 R"),sn(">>"),sn("endobj");var ri=hn.join(`
|
|
|
`);return bn===Dn&&(ri+=`
|
|
|
Q`),il(Ar,!0),ku({data:ri,filters:gc(),objectId:Ar}),sn("endobj"),kn},ef=De.__private__.putPages=function(){var Ce,it,hn=[];for(Ce=1;Ce<=La;Ce++)jo[Ce].objId=VA(),jo[Ce].contentsObjId=VA();for(Ce=1;Ce<=La;Ce++)hn.push(Th({number:Ce,data:wi[Ce],objId:jo[Ce].objId,contentsObjId:jo[Ce].contentsObjId,mediaBox:jo[Ce].mediaBox,cropBox:jo[Ce].cropBox,bleedBox:jo[Ce].bleedBox,trimBox:jo[Ce].trimBox,artBox:jo[Ce].artBox,userUnit:jo[Ce].userUnit,rootDictionaryObjId:Nd,resourceDictionaryObjId:hc}));il(Nd,!0),sn("<</Type /Pages");var kn="/Kids [";for(it=0;it<La;it++)kn+=hn[it]+" 0 R ";sn(kn+"]"),sn("/Count "+La),sn(">>"),sn("endobj"),os.publish("postPutPages")},Qh=function(Ce){os.publish("putFont",{font:Ce,out:sn,newObject:Xs,putStream:ku}),Ce.isAlreadyPutted!==!0&&(Ce.objectNumber=Xs(),sn("<<"),sn("/Type /Font"),sn("/BaseFont /"+Au(Ce.postScriptName)),sn("/Subtype /Type1"),typeof Ce.encoding=="string"&&sn("/Encoding /"+Ce.encoding),sn("/FirstChar 32"),sn("/LastChar 255"),sn(">>"),sn("endobj"))},Mp=function(Ce){Ce.objectNumber=Xs();var it=[];it.push({key:"Type",value:"/XObject"}),it.push({key:"Subtype",value:"/Form"}),it.push({key:"BBox",value:"["+[qn(Ce.x),qn(Ce.y),qn(Ce.x+Ce.width),qn(Ce.y+Ce.height)].join(" ")+"]"}),it.push({key:"Matrix",value:"["+Ce.matrix.toString()+"]"});var hn=Ce.pages[1].join(`
|
|
|
`);ku({data:hn,additionalKeyValues:it,objectId:Ce.objectNumber}),sn("endobj")},_p=function(Ce,it){it||(it=21);var hn=Xs(),kn=function(ui,ro){var po,Yo=[],fa=1/(ro-1);for(po=0;po<1;po+=fa)Yo.push(po);if(Yo.push(1),ui[0].offset!=0){var Wa={offset:0,color:ui[0].color};ui.unshift(Wa)}if(ui[ui.length-1].offset!=1){var zs={offset:1,color:ui[ui.length-1].color};ui.push(zs)}for(var CA="",vs=0,NA=0;NA<Yo.length;NA++){for(po=Yo[NA];po>ui[vs+1].offset;)vs++;var xA=ui[vs].offset,ol=(po-xA)/(ui[vs+1].offset-xA),$f=ui[vs].color,vc=ui[vs+1].color;CA+=Gn(Math.round((1-ol)*$f[0]+ol*vc[0]).toString(16))+Gn(Math.round((1-ol)*$f[1]+ol*vc[1]).toString(16))+Gn(Math.round((1-ol)*$f[2]+ol*vc[2]).toString(16))}return CA.trim()}(Ce.colors,it),Ar=[];Ar.push({key:"FunctionType",value:"0"}),Ar.push({key:"Domain",value:"[0.0 1.0]"}),Ar.push({key:"Size",value:"["+it+"]"}),Ar.push({key:"BitsPerSample",value:"8"}),Ar.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Ar.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),ku({data:kn,additionalKeyValues:Ar,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:hn}),sn("endobj"),Ce.objectNumber=Xs(),sn("<< /ShadingType "+Ce.type),sn("/ColorSpace /DeviceRGB");var ri="/Coords ["+qn(parseFloat(Ce.coords[0]))+" "+qn(parseFloat(Ce.coords[1]))+" ";Ce.type===2?ri+=qn(parseFloat(Ce.coords[2]))+" "+qn(parseFloat(Ce.coords[3])):ri+=qn(parseFloat(Ce.coords[2]))+" "+qn(parseFloat(Ce.coords[3]))+" "+qn(parseFloat(Ce.coords[4]))+" "+qn(parseFloat(Ce.coords[5])),sn(ri+="]"),Ce.matrix&&sn("/Matrix ["+Ce.matrix.toString()+"]"),sn("/Function "+hn+" 0 R"),sn("/Extend [true true]"),sn(">>"),sn("endobj")},kp=function(Ce,it){var hn=VA(),kn=Xs();it.push({resourcesOid:hn,objectOid:kn}),Ce.objectNumber=kn;var Ar=[];Ar.push({key:"Type",value:"/Pattern"}),Ar.push({key:"PatternType",value:"1"}),Ar.push({key:"PaintType",value:"1"}),Ar.push({key:"TilingType",value:"1"}),Ar.push({key:"BBox",value:"["+Ce.boundingBox.map(qn).join(" ")+"]"}),Ar.push({key:"XStep",value:qn(Ce.xStep)}),Ar.push({key:"YStep",value:qn(Ce.yStep)}),Ar.push({key:"Resources",value:hn+" 0 R"}),Ce.matrix&&Ar.push({key:"Matrix",value:"["+Ce.matrix.toString()+"]"}),ku({data:Ce.stream,additionalKeyValues:Ar,objectId:Ce.objectNumber}),sn("endobj")},Gm=function(Ce){for(var it in Ce.objectNumber=Xs(),sn("<<"),Ce)switch(it){case"opacity":sn("/ca "+Ut(Ce[it]));break;case"stroke-opacity":sn("/CA "+Ut(Ce[it]))}sn(">>"),sn("endobj")},Bg=function(Ce){il(Ce.resourcesOid,!0),sn("<<"),sn("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var it in sn("/Font <<"),Sa)Sa.hasOwnProperty(it)&&(et===!1||et===!0&&ht.hasOwnProperty(it))&&sn("/"+it+" "+Sa[it].objectNumber+" 0 R");sn(">>")}(),function(){if(Object.keys(No).length>0){for(var it in sn("/Shading <<"),No)No.hasOwnProperty(it)&&No[it]instanceof Wc&&No[it].objectNumber>=0&&sn("/"+it+" "+No[it].objectNumber+" 0 R");os.publish("putShadingPatternDict"),sn(">>")}}(),function(it){if(Object.keys(No).length>0){for(var hn in sn("/Pattern <<"),No)No.hasOwnProperty(hn)&&No[hn]instanceof De.TilingPattern&&No[hn].objectNumber>=0&&No[hn].objectNumber<it&&sn("/"+hn+" "+No[hn].objectNumber+" 0 R");os.publish("putTilingPatternDict"),sn(">>")}}(Ce.objectOid),function(){if(Object.keys(Go).length>0){var it;for(it in sn("/ExtGState <<"),Go)Go.hasOwnProperty(it)&&Go[it].objectNumber>=0&&sn("/"+it+" "+Go[it].objectNumber+" 0 R");os.publish("putGStateDict"),sn(">>")}}(),function(){for(var it in sn("/XObject <<"),wl)wl.hasOwnProperty(it)&&wl[it].objectNumber>=0&&sn("/"+it+" "+wl[it].objectNumber+" 0 R");os.publish("putXobjectDict"),sn(">>")}(),sn(">>"),sn("endobj")},rm=function(Ce){Fa[Ce.fontName]=Fa[Ce.fontName]||{},Fa[Ce.fontName][Ce.fontStyle]=Ce.id},im=function(Ce,it,hn,kn,Ar){var ri={id:"F"+(Object.keys(Sa).length+1).toString(10),postScriptName:Ce,fontName:it,fontStyle:hn,encoding:kn,isStandardFont:Ar||!1,metadata:{}};return os.publish("addFont",{font:ri,instance:this}),Sa[ri.id]=ri,rm(ri),ri.id},Hu=De.__private__.pdfEscape=De.pdfEscape=function(Ce,it){return function(hn,kn){var Ar,ri,ui,ro,po,Yo,fa,Wa,zs;if(ui=(kn=kn||{}).sourceEncoding||"Unicode",po=kn.outputEncoding,(kn.autoencode||po)&&Sa[ho].metadata&&Sa[ho].metadata[ui]&&Sa[ho].metadata[ui].encoding&&(ro=Sa[ho].metadata[ui].encoding,!po&&Sa[ho].encoding&&(po=Sa[ho].encoding),!po&&ro.codePages&&(po=ro.codePages[0]),typeof po=="string"&&(po=ro[po]),po)){for(fa=!1,Yo=[],Ar=0,ri=hn.length;Ar<ri;Ar++)(Wa=po[hn.charCodeAt(Ar)])?Yo.push(String.fromCharCode(Wa)):Yo.push(hn[Ar]),Yo[Ar].charCodeAt(0)>>8&&(fa=!0);hn=Yo.join("")}for(Ar=hn.length;fa===void 0&&Ar!==0;)hn.charCodeAt(Ar-1)>>8&&(fa=!0),Ar--;if(!fa)return hn;for(Yo=kn.noBOM?[]:[254,255],Ar=0,ri=hn.length;Ar<ri;Ar++){if((zs=(Wa=hn.charCodeAt(Ar))>>8)>>8)throw new Error("Character at position "+Ar+" of string '"+hn+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Yo.push(zs),Yo.push(Wa-(zs<<8))}return String.fromCharCode.apply(void 0,Yo)}(Ce,it).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Cg=De.__private__.beginPage=function(Ce){wi[++La]=[],jo[La]={objId:0,contentsObjId:0,userUnit:Number(ve),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(Ce[0]),topRightY:Number(Ce[1])}},am(La),Io(wi[wn])},om=function(Ce,it){var hn,kn,Ar;switch(x=it||x,typeof Ce=="string"&&(hn=Ot(Ce.toLowerCase()),Array.isArray(hn)&&(kn=hn[0],Ar=hn[1])),Array.isArray(Ce)&&(kn=Ce[0]*ca,Ar=Ce[1]*ca),isNaN(kn)&&(kn=re[0],Ar=re[1]),(kn>14400||Ar>14400)&&(Pa.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),kn=Math.min(14400,kn),Ar=Math.min(14400,Ar)),re=[kn,Ar],x.substr(0,1)){case"l":Ar>kn&&(re=[Ar,kn]);break;case"p":kn>Ar&&(re=[Ar,kn])}Cg(re),na(Sg),sn(zp),Ig!==0&&sn(Ig+" J"),Lg!==0&&sn(Lg+" j"),os.publish("addPage",{pageNumber:La})},xg=function(Ce){Ce>0&&Ce<=La&&(wi.splice(Ce,1),jo.splice(Ce,1),La--,wn>La&&(wn=La),this.setPage(wn))},am=function(Ce){Ce>0&&Ce<=La&&(wn=Ce)},sm=De.__private__.getNumberOfPages=De.getNumberOfPages=function(){return wi.length-1},Am=function(Ce,it,hn){var kn,Ar=void 0;return hn=hn||{},Ce=Ce!==void 0?Ce:Sa[ho].fontName,it=it!==void 0?it:Sa[ho].fontStyle,kn=Ce.toLowerCase(),Fa[kn]!==void 0&&Fa[kn][it]!==void 0?Ar=Fa[kn][it]:Fa[Ce]!==void 0&&Fa[Ce][it]!==void 0?Ar=Fa[Ce][it]:hn.disableWarning===!1&&Pa.warn("Unable to look up font label for font '"+Ce+"', '"+it+"'. Refer to getFontList() for available fonts."),Ar||hn.noFallback||(Ar=Fa.times[it])==null&&(Ar=Fa.times.normal),Ar},tf=De.__private__.putInfo=function(){var Ce=Xs(),it=function(kn){return kn};for(var hn in Ne!==null&&(it=DA.encryptor(Ce,0)),sn("<<"),sn("/Producer ("+Hu(it("jsPDF "+ao.version))+")"),Qa)Qa.hasOwnProperty(hn)&&Qa[hn]&&sn("/"+hn.substr(0,1).toUpperCase()+hn.substr(1)+" ("+Hu(it(Qa[hn]))+")");sn("/CreationDate ("+Hu(it(Ir))+")"),sn(">>"),sn("endobj")},Hp=De.__private__.putCatalog=function(Ce){var it=(Ce=Ce||{}).rootDictionaryObjId||Nd;switch(Xs(),sn("<<"),sn("/Type /Catalog"),sn("/Pages "+it+" 0 R"),ko||(ko="fullwidth"),ko){case"fullwidth":sn("/OpenAction [3 0 R /FitH null]");break;case"fullheight":sn("/OpenAction [3 0 R /FitV null]");break;case"fullpage":sn("/OpenAction [3 0 R /Fit]");break;case"original":sn("/OpenAction [3 0 R /XYZ null null 1]");break;default:var hn=""+ko;hn.substr(hn.length-1)==="%"&&(ko=parseInt(ko)/100),typeof ko=="number"&&sn("/OpenAction [3 0 R /XYZ null null "+Ut(ko)+"]")}switch(Ta||(Ta="continuous"),Ta){case"continuous":sn("/PageLayout /OneColumn");break;case"single":sn("/PageLayout /SinglePage");break;case"two":case"twoleft":sn("/PageLayout /TwoColumnLeft");break;case"tworight":sn("/PageLayout /TwoColumnRight")}Uo&&sn("/PageMode /"+Uo),os.publish("putCatalog"),sn(">>"),sn("endobj")},Vm=De.__private__.putTrailer=function(){sn("trailer"),sn("<<"),sn("/Size "+(or+1)),sn("/Root "+or+" 0 R"),sn("/Info "+(or-1)+" 0 R"),Ne!==null&&sn("/Encrypt "+DA.oid+" 0 R"),sn("/ID [ <"+Tr+"> <"+Tr+"> ]"),sn(">>")},BA=De.__private__.putHeader=function(){sn("%PDF-"+tn),sn("%\xBA\xDF\xAC\xE0")},lm=De.__private__.putXRef=function(){var Ce="0000000000";sn("xref"),sn("0 "+(or+1)),sn("0000000000 65535 f ");for(var it=1;it<=or;it++)typeof yr[it]=="function"?sn((Ce+yr[it]()).slice(-10)+" 00000 n "):yr[it]!==void 0?sn((Ce+yr[it]).slice(-10)+" 00000 n "):sn("0000000000 00000 n ")},nf=De.__private__.buildDocument=function(){var Ce;or=0,Hr=0,Mr=[],yr=[],oi=[],Nd=VA(),hc=VA(),Io(Mr),os.publish("buildDocument"),BA(),ef(),function(){os.publish("putAdditionalObjects");for(var hn=0;hn<oi.length;hn++){var kn=oi[hn];il(kn.objId,!0),sn(kn.content),sn("endobj")}os.publish("postPutAdditionalObjects")}(),Ce=[],function(){for(var hn in Sa)Sa.hasOwnProperty(hn)&&(et===!1||et===!0&&ht.hasOwnProperty(hn))&&Qh(Sa[hn])}(),function(){var hn;for(hn in Go)Go.hasOwnProperty(hn)&&Gm(Go[hn])}(),function(){for(var hn in wl)wl.hasOwnProperty(hn)&&Mp(wl[hn])}(),function(hn){var kn;for(kn in No)No.hasOwnProperty(kn)&&(No[kn]instanceof Wc?_p(No[kn]):No[kn]instanceof Gc&&kp(No[kn],hn))}(Ce),os.publish("putResources"),Ce.forEach(Bg),Bg({resourcesOid:hc,objectOid:Number.MAX_SAFE_INTEGER}),os.publish("postPutResources"),Ne!==null&&(DA.oid=Xs(),sn("<<"),sn("/Filter /Standard"),sn("/V "+DA.v),sn("/R "+DA.r),sn("/U <"+DA.toHexString(DA.U)+">"),sn("/O <"+DA.toHexString(DA.O)+">"),sn("/P "+DA.P),sn(">>"),sn("endobj")),tf(),Hp();var it=Hr;return lm(),Vm(),sn("startxref"),sn(""+it),sn("%%EOF"),Io(wi[wn]),Mr.join(`
|
|
|
`)},Rp=De.__private__.getBlob=function(Ce){return new Blob([Ca(Ce)],{type:"application/pdf"})},um=De.output=De.__private__.output=(_u=function(Ce,it){switch(typeof(it=it||{})=="string"?it={filename:it}:it.filename=it.filename||"generated.pdf",Ce){case void 0:return nf();case"save":De.save(it.filename);break;case"arraybuffer":return Ca(nf());case"blob":return Rp(nf());case"bloburi":case"bloburl":if(fo.URL!==void 0&&typeof fo.URL.createObjectURL=="function")return fo.URL&&fo.URL.createObjectURL(Rp(nf()))||void 0;Pa.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var hn="",kn=nf();try{hn=vg(kn)}catch(CA){hn=vg(unescape(encodeURIComponent(kn)))}return"data:application/pdf;filename="+it.filename+";base64,"+hn;case"pdfobjectnewwindow":if(Object.prototype.toString.call(fo)==="[object Window]"){var Ar="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",ri=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';it.pdfObjectUrl&&(Ar=it.pdfObjectUrl,ri="");var ui='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+Ar+'"'+ri+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(it)+");<\/script></body></html>",ro=fo.open();return ro!==null&&ro.document.write(ui),ro}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(fo)==="[object Window]"){var po='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(it.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+it.filename+'" width="500px" height="400px" /></body></html>',Yo=fo.open();if(Yo!==null){Yo.document.write(po);var fa=this;Yo.document.documentElement.querySelector("#pdfViewer").onload=function(){Yo.document.title=it.filename,Yo.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(fa.output("bloburl"))}}return Yo}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(fo)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var Wa='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",it)+'"></iframe></body></html>',zs=fo.open();if(zs!==null&&(zs.document.write(Wa),zs.document.title=it.filename),zs||typeof safari=="undefined")return zs;break;case"datauri":case"dataurl":return fo.document.location.href=this.output("datauristring",it);default:return null}},_u.foo=function(){try{return _u.apply(this,arguments)}catch(hn){var Ce=hn.stack||"";~Ce.indexOf(" at ")&&(Ce=Ce.split(" at ")[1]);var it="Error in function "+Ce.split(`
|
|
|
`)[0].split("<")[0]+": "+hn.message;if(!fo.console)throw new Error(it);fo.console.error(it,hn),fo.alert&&alert(it)}},_u.foo.bar=_u,_u.foo),Ru=function(Ce){return Array.isArray(Nh)===!0&&Nh.indexOf(Ce)>-1};switch(te){case"pt":ca=1;break;case"mm":ca=72/25.4;break;case"cm":ca=72/2.54;break;case"in":ca=72;break;case"px":ca=Ru("px_scaling")==1?.75:96/72;break;case"pc":case"em":ca=12;break;case"ex":ca=6;break;default:if(typeof te!="number")throw new Error("Invalid unit: "+te);ca=te}var DA=null;li(),Br();var jf=De.__private__.getPageInfo=De.getPageInfo=function(Ce){if(isNaN(Ce)||Ce%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:jo[Ce].objId,pageNumber:Ce,pageContext:jo[Ce]}},cm=De.__private__.getPageInfoByObjId=function(Ce){if(isNaN(Ce)||Ce%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var it in jo)if(jo[it].objId===Ce)break;return jf(it)},Zm=De.__private__.getCurrentPageInfo=De.getCurrentPageInfo=function(){return{objId:jo[wn].objId,pageNumber:wn,pageContext:jo[wn]}};De.addPage=function(){return om.apply(this,arguments),this},De.setPage=function(){return am.apply(this,arguments),Io.call(this,wi[wn]),this},De.insertPage=function(Ce){return this.addPage(),this.movePage(wn,Ce),this},De.movePage=function(Ce,it){var hn,kn;if(Ce>it){hn=wi[Ce],kn=jo[Ce];for(var Ar=Ce;Ar>it;Ar--)wi[Ar]=wi[Ar-1],jo[Ar]=jo[Ar-1];wi[it]=hn,jo[it]=kn,this.setPage(it)}else if(Ce<it){hn=wi[Ce],kn=jo[Ce];for(var ri=Ce;ri<it;ri++)wi[ri]=wi[ri+1],jo[ri]=jo[ri+1];wi[it]=hn,jo[it]=kn,this.setPage(it)}return this},De.deletePage=function(){return xg.apply(this,arguments),this},De.__private__.text=De.text=function(Ce,it,hn,kn,Ar){var ri,ui,ro,po,Yo,fa,Wa,zs,CA,vs=(kn=kn||{}).scope||this;if(typeof Ce=="number"&&typeof it=="number"&&(typeof hn=="string"||Array.isArray(hn))){var NA=hn;hn=it,it=Ce,Ce=NA}if(arguments[3]instanceof zo==0?(ro=arguments[4],po=arguments[5],(0,oe.Z)(Wa=arguments[3])==="object"&&Wa!==null||(typeof ro=="string"&&(po=ro,ro=null),typeof Wa=="string"&&(po=Wa,Wa=null),typeof Wa=="number"&&(ro=Wa,Wa=null),kn={flags:Wa,angle:ro,align:po})):(Bn("The transform parameter of text() with a Matrix value"),CA=Ar),isNaN(it)||isNaN(hn)||Ce==null)throw new Error("Invalid arguments passed to jsPDF.text");if(Ce.length===0)return vs;var xA,ol="",$f=typeof kn.lineHeightFactor=="number"?kn.lineHeightFactor:_h,vc=vs.internal.scaleFactor;function Xf(as){return as=as.split(" ").join(Array(kn.TabLen||9).join(" ")),Hu(as,Wa)}function Ng(as){for(var ds,hA=as.concat(),PA=[],qf=hA.length;qf--;)typeof(ds=hA.shift())=="string"?PA.push(ds):Array.isArray(as)&&(ds.length===1||ds[1]===void 0&&ds[2]===void 0)?PA.push(ds[0]):PA.push([ds[0],ds[1],ds[2]]);return PA}function Wp(as,ds){var hA;if(typeof as=="string")hA=ds(as)[0];else if(Array.isArray(as)){for(var PA,qf,zg=as.concat(),Zp=[],Bm=zg.length;Bm--;)typeof(PA=zg.shift())=="string"?Zp.push(ds(PA)[0]):Array.isArray(PA)&&typeof PA[0]=="string"&&(qf=ds(PA[0],PA[1],PA[2]),Zp.push([qf[0],qf[1],qf[2]]));hA=Zp}return hA}var Pd=!1,jh=!0;if(typeof Ce=="string")Pd=!0;else if(Array.isArray(Ce)){var zh=Ce.concat();ui=[];for(var Td,al=zh.length;al--;)(typeof(Td=zh.shift())!="string"||Array.isArray(Td)&&typeof Td[0]!="string")&&(jh=!1);Pd=jh}if(Pd===!1)throw new Error('Type of text must be string or Array. "'+Ce+'" is not recognized.');typeof Ce=="string"&&(Ce=Ce.match(/[\r?\n]/)?Ce.split(/\r\n|\r|\n/g):[Ce]);var Kh=gi/vs.internal.scaleFactor,Wh=Kh*($f-1);switch(kn.baseline){case"bottom":hn-=Wh;break;case"top":hn+=Kh-Wh;break;case"hanging":hn+=Kh-2*Wh;break;case"middle":hn+=Kh/2-Wh}if((fa=kn.maxWidth||0)>0&&(typeof Ce=="string"?Ce=vs.splitTextToSize(Ce,fa):Object.prototype.toString.call(Ce)==="[object Array]"&&(Ce=Ce.reduce(function(as,ds){return as.concat(vs.splitTextToSize(ds,fa))},[]))),ri={text:Ce,x:it,y:hn,options:kn,mutex:{pdfEscape:Hu,activeFontKey:ho,fonts:Sa,activeFontSize:gi}},os.publish("preProcessText",ri),Ce=ri.text,ro=(kn=ri.options).angle,CA instanceof zo==0&&ro&&typeof ro=="number"){ro*=Math.PI/180,kn.rotationDirection===0&&(ro=-ro),bn===Dn&&(ro=-ro);var Pg=Math.cos(ro),Tg=Math.sin(ro);CA=new zo(Pg,Tg,-Tg,Pg,0,0)}else ro&&ro instanceof zo&&(CA=ro);bn!==Dn||CA||(CA=Rf),(Yo=kn.charSpace||Wf)!==void 0&&(ol+=qn(Hn(Yo))+` Tc
|
|
|
`,this.setCharSpace(this.getCharSpace()||0)),(zs=kn.horizontalScale)!==void 0&&(ol+=qn(100*zs)+` Tz
|
|
|
`),kn.lang;var Tl=-1,Yf=kn.renderingMode!==void 0?kn.renderingMode:kn.stroke,Gp=vs.internal.getCurrentPageInfo().pageContext;switch(Yf){case 0:case!1:case"fill":Tl=0;break;case 1:case!0:case"stroke":Tl=1;break;case 2:case"fillThenStroke":Tl=2;break;case 3:case"invisible":Tl=3;break;case 4:case"fillAndAddForClipping":Tl=4;break;case 5:case"strokeAndAddPathForClipping":Tl=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":Tl=6;break;case 7:case"addToPathForClipping":Tl=7}var wm=Gp.usedRenderingMode!==void 0?Gp.usedRenderingMode:-1;Tl!==-1?ol+=Tl+` Tr
|
|
|
`:wm!==-1&&(ol+=`0 Tr
|
|
|
`),Tl!==-1&&(Gp.usedRenderingMode=Tl),po=kn.align||"left";var ju,Gh=gi*$f,Qg=vs.internal.pageSize.getWidth(),Mg=Sa[ho];Yo=kn.charSpace||Wf,fa=kn.maxWidth||0,Wa=Object.assign({autoencode:!0,noBOM:!0},kn.flags);var Qd=[],Vh=function(as){return vs.getStringUnitWidth(as,{font:Mg,charSpace:Yo,fontSize:gi,doKerning:!1})*gi/vc};if(Object.prototype.toString.call(Ce)==="[object Array]"){var lu;ui=Ng(Ce),po!=="left"&&(ju=ui.map(Vh));var uu,Md=0;if(po==="right"){it-=ju[0],Ce=[],al=ui.length;for(var Jf=0;Jf<al;Jf++)Jf===0?(uu=zf(it),lu=Kf(hn)):(uu=Hn(Md-ju[Jf]),lu=-Gh),Ce.push([ui[Jf],uu,lu]),Md=ju[Jf]}else if(po==="center"){it-=ju[0]/2,Ce=[],al=ui.length;for(var _d=0;_d<al;_d++)_d===0?(uu=zf(it),lu=Kf(hn)):(uu=Hn((Md-ju[_d])/2),lu=-Gh),Ce.push([ui[_d],uu,lu]),Md=ju[_d]}else if(po==="left"){Ce=[],al=ui.length;for(var _g=0;_g<al;_g++)Ce.push(ui[_g])}else if(po==="justify"&&Mg.encoding==="Identity-H"){Ce=[],al=ui.length,fa=fa!==0?fa:Qg;for(var Vp=0,dA=0;dA<al;dA++)if(lu=dA===0?Kf(hn):-Gh,uu=dA===0?zf(it):Vp,dA<al-1){var bm=Hn((fa-ju[dA])/(ui[dA].split(" ").length-1)),of=ui[dA].split(" ");Ce.push([of[0]+" ",uu,lu]),Vp=0;for(var af=1;af<of.length;af++){var kg=(Vh(of[af-1]+" "+of[af])-Vh(of[af]))*vc+bm;af==of.length-1?Ce.push([of[af],kg,0]):Ce.push([of[af]+" ",kg,0]),Vp-=kg}}else Ce.push([ui[dA],uu,lu]);Ce.push(["",Vp,0])}else{if(po!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(Ce=[],al=ui.length,fa=fa!==0?fa:Qg,dA=0;dA<al;dA++){lu=dA===0?Kf(hn):-Gh,uu=dA===0?zf(it):0;var Hg=ui[dA].split(" ").length-1,Rg=Hg>0?(fa-ju[dA])/Hg:0;dA<al-1?Qd.push(qn(Hn(Rg))):Qd.push(0),Ce.push([ui[dA],uu,lu])}}}(typeof kn.R2L=="boolean"?kn.R2L:Mo)===!0&&(Ce=Wp(Ce,function(as,ds,hA){return[as.split("").reverse().join(""),ds,hA]})),ri={text:Ce,x:it,y:hn,options:kn,mutex:{pdfEscape:Hu,activeFontKey:ho,fonts:Sa,activeFontSize:gi}},os.publish("postProcessText",ri),Ce=ri.text,xA=ri.mutex.isHex||!1;var jg=Sa[ho].encoding;jg!=="WinAnsiEncoding"&&jg!=="StandardEncoding"||(Ce=Wp(Ce,function(as,ds,hA){return[Xf(as),ds,hA]})),ui=Ng(Ce),Ce=[];for(var kd,Hd,Rd,Zh=Array.isArray(ui[0])?1:0,jd="",$h=function(as,ds,hA){var PA="";return hA instanceof zo?(hA=typeof kn.angle=="number"?Hf(hA,new zo(1,0,0,1,as,ds)):Hf(new zo(1,0,0,1,as,ds),hA),bn===Dn&&(hA=Hf(new zo(1,0,0,-1,0,0),hA)),PA=hA.join(" ")+` Tm
|
|
|
`):PA=qn(as)+" "+qn(ds)+` Td
|
|
|
`,PA},zu=0;zu<ui.length;zu++){switch(jd="",Zh){case 1:Rd=(xA?"<":"(")+ui[zu][0]+(xA?">":")"),kd=parseFloat(ui[zu][1]),Hd=parseFloat(ui[zu][2]);break;case 0:Rd=(xA?"<":"(")+ui[zu]+(xA?">":")"),kd=zf(it),Hd=Kf(hn)}Qd!==void 0&&Qd[zu]!==void 0&&(jd=Qd[zu]+` Tw
|
|
|
`),zu===0?Ce.push(jd+$h(kd,Hd,CA)+Rd):Zh===0?Ce.push(jd+Rd):Zh===1&&Ce.push(jd+$h(kd,Hd,CA)+Rd)}Ce=Zh===0?Ce.join(` Tj
|
|
|
T* `):Ce.join(` Tj
|
|
|
`),Ce+=` Tj
|
|
|
`;var sf=`BT
|
|
|
/`;return sf+=ho+" "+gi+` Tf
|
|
|
`,sf+=qn(gi*$f)+` TL
|
|
|
`,sf+=kh+`
|
|
|
`,sf+=ol,sf+=Ce,sn(sf+="ET"),ht[ho]=!0,vs};var $m=De.__private__.clip=De.clip=function(Ce){return sn(Ce==="evenodd"?"W*":"W"),this};De.clipEvenOdd=function(){return $m("evenodd")},De.__private__.discardPath=De.discardPath=function(){return sn("n"),this};var rf=De.__private__.isValidStyle=function(Ce){var it=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(Ce)!==-1&&(it=!0),it};De.__private__.setDefaultPathOperation=De.setDefaultPathOperation=function(Ce){return rf(Ce)&&(Ee=Ce),this};var fm=De.__private__.getStyle=De.getStyle=function(Ce){var it=Ee;switch(Ce){case"D":case"S":it="S";break;case"F":it="f";break;case"FD":case"DF":it="B";break;case"f":case"f*":case"B":case"B*":it=Ce}return it},dm=De.close=function(){return sn("h"),this};De.stroke=function(){return sn("S"),this},De.fill=function(Ce){return jp("f",Ce),this},De.fillEvenOdd=function(Ce){return jp("f*",Ce),this},De.fillStroke=function(Ce){return jp("B",Ce),this},De.fillStrokeEvenOdd=function(Ce){return jp("B*",Ce),this};var jp=function(Ce,it){(0,oe.Z)(it)==="object"?Ym(it,Ce):sn(Ce)},Mh=function(Ce){Ce===null||bn===Dn&&Ce===void 0||(Ce=fm(Ce),sn(Ce))};function Xm(Ce,it,hn,kn,Ar){var ri=new Gc(it||this.boundingBox,hn||this.xStep,kn||this.yStep,this.gState,Ar||this.matrix);ri.stream=this.stream;var ui=Ce+"$$"+this.cloneIndex+++"$$";return Mu(ui,ri),ri}var Ym=function(Ce,it){var hn=ms[Ce.key],kn=No[hn];if(kn instanceof Wc)sn("q"),sn(Jm(it)),kn.gState&&De.setGState(kn.gState),sn(Ce.matrix.toString()+" cm"),sn("/"+hn+" sh"),sn("Q");else if(kn instanceof Gc){var Ar=new zo(1,0,0,-1,0,Rh());Ce.matrix&&(Ar=Ar.multiply(Ce.matrix||Rf),hn=Xm.call(kn,Ce.key,Ce.boundingBox,Ce.xStep,Ce.yStep,Ar).id),sn("q"),sn("/Pattern cs"),sn("/"+hn+" scn"),kn.gState&&De.setGState(kn.gState),sn(it),sn("Q")}},Jm=function(Ce){switch(Ce){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},Eg=De.moveTo=function(Ce,it){return sn(qn(Hn(Ce))+" "+qn(Pn(it))+" m"),this},hm=De.lineTo=function(Ce,it){return sn(qn(Hn(Ce))+" "+qn(Pn(it))+" l"),this},mc=De.curveTo=function(Ce,it,hn,kn,Ar,ri){return sn([qn(Hn(Ce)),qn(Pn(it)),qn(Hn(hn)),qn(Pn(kn)),qn(Hn(Ar)),qn(Pn(ri)),"c"].join(" ")),this};De.__private__.line=De.line=function(Ce,it,hn,kn,Ar){if(isNaN(Ce)||isNaN(it)||isNaN(hn)||isNaN(kn)||!rf(Ar))throw new Error("Invalid arguments passed to jsPDF.line");return bn===jn?this.lines([[hn-Ce,kn-it]],Ce,it,[1,1],Ar||"S"):this.lines([[hn-Ce,kn-it]],Ce,it,[1,1]).stroke()},De.__private__.lines=De.lines=function(Ce,it,hn,kn,Ar,ri){var ui,ro,po,Yo,fa,Wa,zs,CA,vs,NA,xA,ol;if(typeof Ce=="number"&&(ol=hn,hn=it,it=Ce,Ce=ol),kn=kn||[1,1],ri=ri||!1,isNaN(it)||isNaN(hn)||!Array.isArray(Ce)||!Array.isArray(kn)||!rf(Ar)||typeof ri!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(Eg(it,hn),ui=kn[0],ro=kn[1],Yo=Ce.length,NA=it,xA=hn,po=0;po<Yo;po++)(fa=Ce[po]).length===2?(NA=fa[0]*ui+NA,xA=fa[1]*ro+xA,hm(NA,xA)):(Wa=fa[0]*ui+NA,zs=fa[1]*ro+xA,CA=fa[2]*ui+NA,vs=fa[3]*ro+xA,NA=fa[4]*ui+NA,xA=fa[5]*ro+xA,mc(Wa,zs,CA,vs,NA,xA));return ri&&dm(),Mh(Ar),this},De.path=function(Ce){for(var it=0;it<Ce.length;it++){var hn=Ce[it],kn=hn.c;switch(hn.op){case"m":Eg(kn[0],kn[1]);break;case"l":hm(kn[0],kn[1]);break;case"c":mc.apply(this,kn);break;case"h":dm()}}return this},De.__private__.rect=De.rect=function(Ce,it,hn,kn,Ar){if(isNaN(Ce)||isNaN(it)||isNaN(hn)||isNaN(kn)||!rf(Ar))throw new Error("Invalid arguments passed to jsPDF.rect");return bn===jn&&(kn=-kn),sn([qn(Hn(Ce)),qn(Pn(it)),qn(Hn(hn)),qn(Hn(kn)),"re"].join(" ")),Mh(Ar),this},De.__private__.triangle=De.triangle=function(Ce,it,hn,kn,Ar,ri,ui){if(isNaN(Ce)||isNaN(it)||isNaN(hn)||isNaN(kn)||isNaN(Ar)||isNaN(ri)||!rf(ui))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[hn-Ce,kn-it],[Ar-hn,ri-kn],[Ce-Ar,it-ri]],Ce,it,[1,1],ui,!0),this},De.__private__.roundedRect=De.roundedRect=function(Ce,it,hn,kn,Ar,ri,ui){if(isNaN(Ce)||isNaN(it)||isNaN(hn)||isNaN(kn)||isNaN(Ar)||isNaN(ri)||!rf(ui))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var ro=4/3*(Math.SQRT2-1);return Ar=Math.min(Ar,.5*hn),ri=Math.min(ri,.5*kn),this.lines([[hn-2*Ar,0],[Ar*ro,0,Ar,ri-ri*ro,Ar,ri],[0,kn-2*ri],[0,ri*ro,-Ar*ro,ri,-Ar,ri],[2*Ar-hn,0],[-Ar*ro,0,-Ar,-ri*ro,-Ar,-ri],[0,2*ri-kn],[0,-ri*ro,Ar*ro,-ri,Ar,-ri]],Ce+Ar,it,[1,1],ui,!0),this},De.__private__.ellipse=De.ellipse=function(Ce,it,hn,kn,Ar){if(isNaN(Ce)||isNaN(it)||isNaN(hn)||isNaN(kn)||!rf(Ar))throw new Error("Invalid arguments passed to jsPDF.ellipse");var ri=4/3*(Math.SQRT2-1)*hn,ui=4/3*(Math.SQRT2-1)*kn;return Eg(Ce+hn,it),mc(Ce+hn,it-ui,Ce+ri,it-kn,Ce,it-kn),mc(Ce-ri,it-kn,Ce-hn,it-ui,Ce-hn,it),mc(Ce-hn,it+ui,Ce-ri,it+kn,Ce,it+kn),mc(Ce+ri,it+kn,Ce+hn,it+ui,Ce+hn,it),Mh(Ar),this},De.__private__.circle=De.circle=function(Ce,it,hn,kn){if(isNaN(Ce)||isNaN(it)||isNaN(hn)||!rf(kn))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(Ce,it,hn,hn,kn)},De.setFont=function(Ce,it,hn){return hn&&(it=Qr(it,hn)),ho=Am(Ce,it,{disableWarning:!1}),this};var qm=De.__private__.getFont=De.getFont=function(){return Sa[Am.apply(De,arguments)]};De.__private__.getFontList=De.getFontList=function(){var Ce,it,hn={};for(Ce in Fa)if(Fa.hasOwnProperty(Ce))for(it in hn[Ce]=[],Fa[Ce])Fa[Ce].hasOwnProperty(it)&&hn[Ce].push(it);return hn},De.addFont=function(Ce,it,hn,kn,Ar){var ri=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&ri.indexOf(arguments[3])!==-1?Ar=arguments[3]:arguments[3]&&ri.indexOf(arguments[3])==-1&&(hn=Qr(hn,kn)),im.call(this,Ce,it,hn,Ar=Ar||"Identity-H")};var _h,Sg=y.lineWidth||.200025,e0=De.__private__.getLineWidth=De.getLineWidth=function(){return Sg},na=De.__private__.setLineWidth=De.setLineWidth=function(Ce){return Sg=Ce,sn(qn(Hn(Ce))+" w"),this};De.__private__.setLineDash=ao.API.setLineDash=ao.API.setLineDashPattern=function(Ce,it){if(Ce=Ce||[],it=it||0,isNaN(it)||!Array.isArray(Ce))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return Ce=Ce.map(function(hn){return qn(Hn(hn))}).join(" "),it=qn(Hn(it)),sn("["+Ce+"] "+it+" d"),this};var t0=De.__private__.getLineHeight=De.getLineHeight=function(){return gi*_h};De.__private__.getLineHeight=De.getLineHeight=function(){return gi*_h};var n0=De.__private__.setLineHeightFactor=De.setLineHeightFactor=function(Ce){return typeof(Ce=Ce||1.15)=="number"&&(_h=Ce),this},r0=De.__private__.getLineHeightFactor=De.getLineHeightFactor=function(){return _h};n0(y.lineHeight);var zf=De.__private__.getHorizontalCoordinate=function(Ce){return Hn(Ce)},Kf=De.__private__.getVerticalCoordinate=function(Ce){return bn===Dn?Ce:jo[wn].mediaBox.topRightY-jo[wn].mediaBox.bottomLeftY-Hn(Ce)},i0=De.__private__.getHorizontalCoordinateString=De.getHorizontalCoordinateString=function(Ce){return qn(zf(Ce))},o0=De.__private__.getVerticalCoordinateString=De.getVerticalCoordinateString=function(Ce){return qn(Kf(Ce))},zp=y.strokeColor||"0 G";De.__private__.getStrokeColor=De.getDrawColor=function(){return qc(zp)},De.__private__.setStrokeColor=De.setDrawColor=function(Ce,it,hn,kn){return zp=pc({ch1:Ce,ch2:it,ch3:hn,ch4:kn,pdfColorType:"draw",precision:2}),sn(zp),this};var Fg=y.fillColor||"0 g";De.__private__.getFillColor=De.getFillColor=function(){return qc(Fg)},De.__private__.setFillColor=De.setFillColor=function(Ce,it,hn,kn){return Fg=pc({ch1:Ce,ch2:it,ch3:hn,ch4:kn,pdfColorType:"fill",precision:2}),sn(Fg),this};var kh=y.textColor||"0 g",a0=De.__private__.getTextColor=De.getTextColor=function(){return qc(kh)};De.__private__.setTextColor=De.setTextColor=function(Ce,it,hn,kn){return kh=pc({ch1:Ce,ch2:it,ch3:hn,ch4:kn,pdfColorType:"text",precision:3}),this};var Wf=y.charSpace,s0=De.__private__.getCharSpace=De.getCharSpace=function(){return parseFloat(Wf||0)};De.__private__.setCharSpace=De.setCharSpace=function(Ce){if(isNaN(Ce))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Wf=Ce,this};var Ig=0;De.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},De.__private__.setLineCap=De.setLineCap=function(Ce){var it=De.CapJoinStyles[Ce];if(it===void 0)throw new Error("Line cap style of '"+Ce+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Ig=it,sn(it+" J"),this};var Lg=0;De.__private__.setLineJoin=De.setLineJoin=function(Ce){var it=De.CapJoinStyles[Ce];if(it===void 0)throw new Error("Line join style of '"+Ce+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Lg=it,sn(it+" j"),this},De.__private__.setLineMiterLimit=De.__private__.setMiterLimit=De.setLineMiterLimit=De.setMiterLimit=function(Ce){if(Ce=Ce||0,isNaN(Ce))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return sn(qn(Hn(Ce))+" M"),this},De.GState=Dh,De.setGState=function(Ce){(Ce=typeof Ce=="string"?Go[aa[Ce]]:pm(null,Ce)).equals(Ps)||(sn("/"+Ce.id+" gs"),Ps=Ce)};var pm=function(Ce,it){if(!Ce||!aa[Ce]){var hn=!1;for(var kn in Go)if(Go.hasOwnProperty(kn)&&Go[kn].equals(it)){hn=!0;break}if(hn)it=Go[kn];else{var Ar="GS"+(Object.keys(Go).length+1).toString(10);Go[Ar]=it,it.id=Ar}return Ce&&(aa[Ce]=it.id),os.publish("addGState",it),it}};De.addGState=function(Ce,it){return pm(Ce,it),this},De.saveGraphicsState=function(){return sn("q"),Ns.push({key:ho,size:gi,color:kh}),this},De.restoreGraphicsState=function(){sn("Q");var Ce=Ns.pop();return ho=Ce.key,gi=Ce.size,kh=Ce.color,Ps=null,this},De.setCurrentTransformationMatrix=function(Ce){return sn(Ce.toString()+" cm"),this},De.comment=function(Ce){return sn("#"+Ce),this};var Gf=function(Ce,it){var hn=Ce||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return hn},set:function(ri){isNaN(ri)||(hn=parseFloat(ri))}});var kn=it||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return kn},set:function(ri){isNaN(ri)||(kn=parseFloat(ri))}});var Ar="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return Ar},set:function(ri){Ar=ri.toString()}}),this},Ug=function(Ce,it,hn,kn){Gf.call(this,Ce,it),this.type="rect";var Ar=hn||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return Ar},set:function(ui){isNaN(ui)||(Ar=parseFloat(ui))}});var ri=kn||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return ri},set:function(ui){isNaN(ui)||(ri=parseFloat(ui))}}),this},Kp=function(){this.page=La,this.currentPage=wn,this.pages=wi.slice(0),this.pagesContext=jo.slice(0),this.x=xo,this.y=fA,this.matrix=Ka,this.width=Dg(wn),this.height=mm(wn),this.outputDestination=_i,this.id="",this.objectNumber=-1};Kp.prototype.restore=function(){La=this.page,wn=this.currentPage,jo=this.pagesContext,wi=this.pages,xo=this.x,fA=this.y,Ka=this.matrix,gm(wn,this.width),Vf(wn,this.height),_i=this.outputDestination};var Og=function(Ce,it,hn,kn,Ar){Jc.push(new Kp),La=wn=0,wi=[],xo=Ce,fA=it,Ka=Ar,Cg([hn,kn])};for(var Hh in De.beginFormObject=function(Ce,it,hn,kn,Ar){return Og(Ce,it,hn,kn,Ar),this},De.endFormObject=function(Ce){return function(it){if(kf[it])Jc.pop().restore();else{var hn=new Kp,kn="Xo"+(Object.keys(wl).length+1).toString(10);hn.id=kn,kf[it]=kn,wl[kn]=hn,os.publish("addFormObject",hn),Jc.pop().restore()}}(Ce),this},De.doFormObject=function(Ce,it){var hn=wl[kf[Ce]];return sn("q"),sn(it.toString()+" cm"),sn("/"+hn.id+" Do"),sn("Q"),this},De.getFormObject=function(Ce){var it=wl[kf[Ce]];return{x:it.x,y:it.y,width:it.width,height:it.height,matrix:it.matrix}},De.save=function(Ce,it){return Ce=Ce||"generated.pdf",(it=it||{}).returnPromise=it.returnPromise||!1,it.returnPromise===!1?(zc(Rp(nf()),Ce),typeof zc.unload=="function"&&fo.setTimeout&&setTimeout(zc.unload,911),this):new Promise(function(hn,kn){try{var Ar=zc(Rp(nf()),Ce);typeof zc.unload=="function"&&fo.setTimeout&&setTimeout(zc.unload,911),hn(Ar)}catch(ri){kn(ri.message)}})},ao.API)ao.API.hasOwnProperty(Hh)&&(Hh==="events"&&ao.API.events.length?function(Ce,it){var hn,kn,Ar;for(Ar=it.length-1;Ar!==-1;Ar--)hn=it[Ar][0],kn=it[Ar][1],Ce.subscribe.apply(Ce,[hn].concat(typeof kn=="function"?[kn]:kn))}(os,ao.API.events):De[Hh]=ao.API[Hh]);function Dg(Ce){return jo[Ce].mediaBox.topRightX-jo[Ce].mediaBox.bottomLeftX}function gm(Ce,it){jo[Ce].mediaBox.topRightX=it+jo[Ce].mediaBox.bottomLeftX}function mm(Ce){return jo[Ce].mediaBox.topRightY-jo[Ce].mediaBox.bottomLeftY}function Vf(Ce,it){jo[Ce].mediaBox.topRightY=it+jo[Ce].mediaBox.bottomLeftY}var Zf=De.getPageWidth=function(Ce){return Dg(Ce=Ce||wn)/ca},vm=De.setPageWidth=function(Ce,it){gm(Ce,it*ca)},Rh=De.getPageHeight=function(Ce){return mm(Ce=Ce||wn)/ca},ym=De.setPageHeight=function(Ce,it){Vf(Ce,it*ca)};return De.internal={pdfEscape:Hu,getStyle:fm,getFont:qm,getFontSize:no,getCharSpace:s0,getTextColor:a0,getLineHeight:t0,getLineHeightFactor:r0,getLineWidth:e0,write:ji,getHorizontalCoordinate:zf,getVerticalCoordinate:Kf,getCoordinateString:i0,getVerticalCoordinateString:o0,collections:{},newObject:Xs,newAdditionalObject:Ph,newObjectDeferred:VA,newObjectDeferredBegin:il,getFilters:gc,putStream:ku,events:os,scaleFactor:ca,pageSize:{getWidth:function(){return Zf(wn)},setWidth:function(Ce){vm(wn,Ce)},getHeight:function(){return Rh(wn)},setHeight:function(Ce){ym(wn,Ce)}},encryptionOptions:Ne,encryption:DA,getEncryptor:function(Ce){return Ne!==null?DA.encryptor(Ce,0):function(it){return it}},output:um,getNumberOfPages:sm,get pages(){return wi},out:sn,f2:Ut,f3:an,getPageInfo:jf,getPageInfoByObjId:cm,getCurrentPageInfo:Zm,getPDFVersion:$t,Point:Gf,Rectangle:Ug,Matrix:zo,hasHotfix:Ru},Object.defineProperty(De.internal.pageSize,"width",{get:function(){return Zf(wn)},set:function(Ce){vm(wn,Ce)},enumerable:!0,configurable:!0}),Object.defineProperty(De.internal.pageSize,"height",{get:function(){return Rh(wn)},set:function(Ce){ym(wn,Ce)},enumerable:!0,configurable:!0}),function(Ce){for(var it=0,hn=_o.length;it<hn;it++){var kn=im.call(this,Ce[it][0],Ce[it][1],Ce[it][2],_o[it][3],!0);et===!1&&(ht[kn]=!0);var Ar=Ce[it][0].split("-");rm({id:kn,fontName:Ar[0],fontStyle:Ar[1]||""})}os.publish("addFonts",{fonts:Sa,dictionary:Fa})}.call(De,_o),ho="F1",om(re,x),os.publish("initialized"),De}Ld.prototype.lsbFirstWord=function(y){return String.fromCharCode(255&y,y>>8&255,y>>16&255,y>>24&255)},Ld.prototype.toHexString=function(y){return y.split("").map(function(E){return("0"+(255&E.charCodeAt(0)).toString(16)).slice(-2)}).join("")},Ld.prototype.hexToBytes=function(y){for(var E=[],x=0;x<y.length;x+=2)E.push(String.fromCharCode(parseInt(y.substr(x,2),16)));return E.join("")},Ld.prototype.processOwnerPassword=function(y,E){return Kc(yg(E).substr(0,5),y)},Ld.prototype.encryptor=function(y,E){var x=yg(this.encryptionKey+String.fromCharCode(255&y,y>>8&255,y>>16&255,255&E,E>>8&255)).substr(0,10);return function(te){return Kc(x,te)}},Dh.prototype.equals=function(y){var E,x="id,objectNumber,equals";if(!y||(0,oe.Z)(y)!==(0,oe.Z)(this))return!1;var te=0;for(E in this)if(!(x.indexOf(E)>=0)){if(this.hasOwnProperty(E)&&!y.hasOwnProperty(E)||this[E]!==y[E])return!1;te++}for(E in y)y.hasOwnProperty(E)&&x.indexOf(E)<0&&te--;return te===0},ao.API={events:[]},ao.version="3.0.4";var Ds=ao.API,bg=1,Qf=function(y){return y.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Ud=function(y){return y.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},$o=function(y){return y.toFixed(2)},Vc=function(y){return y.toFixed(5)};Ds.__acroform__={};var vl=function(y,E){y.prototype=Object.create(E.prototype),y.prototype.constructor=y},tm=function(y){return y*bg},Tu=function(y){var E=new Zr,x=Li.internal.getHeight(y)||0,te=Li.internal.getWidth(y)||0;return E.BBox=[0,0,Number($o(te)),Number($o(x))],E},Hm=Ds.__acroform__.setBit=function(y,E){if(y=y||0,E=E||0,isNaN(y)||isNaN(E))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return y|1<<E},Rm=Ds.__acroform__.clearBit=function(y,E){if(y=y||0,E=E||0,isNaN(y)||isNaN(E))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return y&~(1<<E)},jm=Ds.__acroform__.getBit=function(y,E){if(isNaN(y)||isNaN(E))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return y&1<<E?1:0},js=Ds.__acroform__.getBitForPdf=function(y,E){if(isNaN(y)||isNaN(E))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return jm(y,E-1)},Ae=Ds.__acroform__.setBitForPdf=function(y,E){if(isNaN(y)||isNaN(E))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return Hm(y,E-1)},ie=Ds.__acroform__.clearBitForPdf=function(y,E){if(isNaN(y)||isNaN(E))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Rm(y,E-1)},fe=Ds.__acroform__.calculateCoordinates=function(y,E){var x=E.internal.getHorizontalCoordinate,te=E.internal.getVerticalCoordinate,re=y[0],ae=y[1],we=y[2],ve=y[3],Be={};return Be.lowerLeft_X=x(re)||0,Be.lowerLeft_Y=te(ae+ve)||0,Be.upperRight_X=x(re+we)||0,Be.upperRight_Y=te(ae)||0,[Number($o(Be.lowerLeft_X)),Number($o(Be.lowerLeft_Y)),Number($o(Be.upperRight_X)),Number($o(Be.upperRight_Y))]},ue=function(y){if(y.appearanceStreamContent)return y.appearanceStreamContent;if(y.V||y.DV){var E=[],x=y._V||y.DV,te=Ue(y,x),re=y.scope.internal.getFont(y.fontName,y.fontStyle).id;E.push("/Tx BMC"),E.push("q"),E.push("BT"),E.push(y.scope.__private__.encodeColorString(y.color)),E.push("/"+re+" "+$o(te.fontSize)+" Tf"),E.push("1 0 0 1 0 0 Tm"),E.push(te.text),E.push("ET"),E.push("Q"),E.push("EMC");var ae=Tu(y);return ae.scope=y.scope,ae.stream=E.join(`
|
|
|
`),ae}},Ue=function(y,E){var x=y.fontSize===0?y.maxFontSize:y.fontSize,te={text:"",fontSize:""},re=(E=(E=E.substr(0,1)=="("?E.substr(1):E).substr(E.length-1)==")"?E.substr(0,E.length-1):E).split(" ");re=y.multiline?re.map(function(Ut){return Ut.split(`
|
|
|
`)}):re.map(function(Ut){return[Ut]});var ae=x,we=Li.internal.getHeight(y)||0;we=we<0?-we:we;var ve=Li.internal.getWidth(y)||0;ve=ve<0?-ve:ve;var Be=function(Ut,an,Hn){if(Ut+1<re.length){var Pn=an+" "+re[Ut+1][0];return je(Pn,y,Hn).width<=ve-4}return!1};ae++;e:for(;ae>0;){E="",ae--;var Ee,Ne,et=je("3",y,ae).height,ht=y.multiline?we-ae:(we-et)/2,De=ht+=2,tn=0,$t=0,on=0;if(ae<=0){E=`(...) Tj
|
|
|
`,E+="% Width of Text: "+je(E,y,ae=12).width+", FieldWidth:"+ve+`
|
|
|
`;break}for(var Ot="",jn=0,Dn=0;Dn<re.length;Dn++)if(re.hasOwnProperty(Dn)){var bn=!1;if(re[Dn].length!==1&&on!==re[Dn].length-1){if((et+2)*(jn+2)+2>we)continue e;Ot+=re[Dn][on],bn=!0,$t=Dn,Dn--}else{Ot=(Ot+=re[Dn][on]+" ").substr(Ot.length-1)==" "?Ot.substr(0,Ot.length-1):Ot;var Er=parseInt(Dn),Jr=Be(Er,Ot,ae),Qr=Dn>=re.length-1;if(Jr&&!Qr){Ot+=" ",on=0;continue}if(Jr||Qr){if(Qr)$t=Er;else if(y.multiline&&(et+2)*(jn+2)+2>we)continue e}else{if(!y.multiline||(et+2)*(jn+2)+2>we)continue e;$t=Er}}for(var qn="",Bn=tn;Bn<=$t;Bn++){var ur=re[Bn];if(y.multiline){if(Bn===$t){qn+=ur[on]+" ",on=(on+1)%ur.length;continue}if(Bn===tn){qn+=ur[ur.length-1]+" ";continue}}qn+=ur[0]+" "}switch(qn=qn.substr(qn.length-1)==" "?qn.substr(0,qn.length-1):qn,Ne=je(qn,y,ae).width,y.textAlign){case"right":Ee=ve-Ne-2;break;case"center":Ee=(ve-Ne)/2;break;default:Ee=2}E+=$o(Ee)+" "+$o(De)+` Td
|
|
|
`,E+="("+Qf(qn)+`) Tj
|
|
|
`,E+=-$o(Ee)+` 0 Td
|
|
|
`,De=-(ae+2),Ne=0,tn=bn?$t:$t+1,jn++,Ot=""}break}return te.text=E,te.fontSize=ae,te},je=function(y,E,x){var te=E.scope.internal.getFont(E.fontName,E.fontStyle),re=E.scope.getStringUnitWidth(y,{font:te,fontSize:parseFloat(x),charSpace:0})*parseFloat(x);return{height:E.scope.getStringUnitWidth("3",{font:te,fontSize:parseFloat(x),charSpace:0})*parseFloat(x)*1.5,width:re}},dt={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},Jt=function(y,E){var x={type:"reference",object:y};E.internal.getPageInfo(y.page).pageContext.annotations.find(function(te){return te.type===x.type&&te.object===x.object})===void 0&&E.internal.getPageInfo(y.page).pageContext.annotations.push(x)},Yt=function(y,E){if(E.scope=y,y.internal!==void 0&&(y.internal.acroformPlugin===void 0||y.internal.acroformPlugin.isInitialized===!1)){if(pi.FieldNum=0,y.internal.acroformPlugin=JSON.parse(JSON.stringify(dt)),y.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");bg=y.internal.scaleFactor,y.internal.acroformPlugin.acroFormDictionaryRoot=new zi,y.internal.acroformPlugin.acroFormDictionaryRoot.scope=y,y.internal.acroformPlugin.acroFormDictionaryRoot._eventID=y.internal.events.subscribe("postPutResources",function(){(function(x){x.internal.events.unsubscribe(x.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete x.internal.acroformPlugin.acroFormDictionaryRoot._eventID,x.internal.acroformPlugin.printedOut=!0})(y)}),y.internal.events.subscribe("buildDocument",function(){(function(x){x.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var te=x.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var re in te)if(te.hasOwnProperty(re)){var ae=te[re];ae.objId=void 0,ae.hasAnnotation&&Jt(ae,x)}})(y)}),y.internal.events.subscribe("putCatalog",function(){(function(x){if(x.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");x.internal.write("/AcroForm "+x.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(y)}),y.internal.events.subscribe("postPutPages",function(x){(function(te,re){var ae=!te;for(var we in te||(re.internal.newObjectDeferredBegin(re.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),re.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),te=te||re.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(te.hasOwnProperty(we)){var ve=te[we],Be=[],Ee=ve.Rect;if(ve.Rect&&(ve.Rect=fe(ve.Rect,re)),re.internal.newObjectDeferredBegin(ve.objId,!0),ve.DA=Li.createDefaultAppearanceStream(ve),(0,oe.Z)(ve)==="object"&&typeof ve.getKeyValueListForStream=="function"&&(Be=ve.getKeyValueListForStream()),ve.Rect=Ee,ve.hasAppearanceStream&&!ve.appearanceStreamContent){var Ne=ue(ve);Be.push({key:"AP",value:"<</N "+Ne+">>"}),re.internal.acroformPlugin.xForms.push(Ne)}if(ve.appearanceStreamContent){var et="";for(var ht in ve.appearanceStreamContent)if(ve.appearanceStreamContent.hasOwnProperty(ht)){var De=ve.appearanceStreamContent[ht];if(et+="/"+ht+" ",et+="<<",Object.keys(De).length>=1||Array.isArray(De)){for(var we in De)if(De.hasOwnProperty(we)){var tn=De[we];typeof tn=="function"&&(tn=tn.call(re,ve)),et+="/"+we+" "+tn+" ",re.internal.acroformPlugin.xForms.indexOf(tn)>=0||re.internal.acroformPlugin.xForms.push(tn)}}else typeof(tn=De)=="function"&&(tn=tn.call(re,ve)),et+="/"+we+" "+tn,re.internal.acroformPlugin.xForms.indexOf(tn)>=0||re.internal.acroformPlugin.xForms.push(tn);et+=">>"}Be.push({key:"AP",value:`<<
|
|
|
`+et+">>"})}re.internal.putStream({additionalKeyValues:Be,objectId:ve.objId}),re.internal.out("endobj")}ae&&function($t,on){for(var Ot in $t)if($t.hasOwnProperty(Ot)){var jn=Ot,Dn=$t[Ot];on.internal.newObjectDeferredBegin(Dn.objId,!0),(0,oe.Z)(Dn)==="object"&&typeof Dn.putStream=="function"&&Dn.putStream(),delete $t[jn]}}(re.internal.acroformPlugin.xForms,re)})(x,y)}),y.internal.acroformPlugin.isInitialized=!0}},Vn=Ds.__acroform__.arrayToPdfArray=function(y,E,x){var te=function(we){return we};if(Array.isArray(y)){for(var re="[",ae=0;ae<y.length;ae++)switch(ae!==0&&(re+=" "),(0,oe.Z)(y[ae])){case"boolean":case"number":case"object":re+=y[ae].toString();break;case"string":y[ae].substr(0,1)!=="/"?(E!==void 0&&x&&(te=x.internal.getEncryptor(E)),re+="("+Qf(te(y[ae].toString()))+")"):re+=y[ae].toString()}return re+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},er=function(y,E,x){var te=function(re){return re};return E!==void 0&&x&&(te=x.internal.getEncryptor(E)),(y=y||"").toString(),"("+Qf(te(y))+")"},sr=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(y){this._objId=y}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};sr.prototype.toString=function(){return this.objId+" 0 R"},sr.prototype.putStream=function(){var y=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:y,objectId:this.objId}),this.scope.internal.out("endobj")},sr.prototype.getKeyValueListForStream=function(){var y=[],E=Object.getOwnPropertyNames(this).filter(function(ae){return ae!="content"&&ae!="appearanceStreamContent"&&ae!="scope"&&ae!="objId"&&ae.substring(0,1)!="_"});for(var x in E)if(Object.getOwnPropertyDescriptor(this,E[x]).configurable===!1){var te=E[x],re=this[te];re&&(Array.isArray(re)?y.push({key:te,value:Vn(re,this.objId,this.scope)}):re instanceof sr?(re.scope=this.scope,y.push({key:te,value:re.objId+" 0 R"})):typeof re!="function"&&y.push({key:te,value:re}))}return y};var Zr=function(){sr.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var y,E=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return E},set:function(x){E=x}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(x){y=x.trim()},get:function(){return y||null}})};vl(Zr,sr);var zi=function(){sr.call(this);var y,E=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return E.length>0?E:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return E}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(y){var x=function(te){return te};return this.scope&&(x=this.scope.internal.getEncryptor(this.objId)),"("+Qf(x(y))+")"}},set:function(x){y=x}})};vl(zi,sr);var pi=function y(){sr.call(this);var E=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return E},set:function(Ot){if(isNaN(Ot))throw new Error('Invalid value "'+Ot+'" for attribute F supplied.');E=Ot}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!js(E,3)},set:function(Ot){Ot?this.F=Ae(E,3):this.F=ie(E,3)}});var x=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return x},set:function(Ot){if(isNaN(Ot))throw new Error('Invalid value "'+Ot+'" for attribute Ff supplied.');x=Ot}});var te=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(te.length!==0)return te},set:function(Ot){te=Ot!==void 0?Ot:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!te||isNaN(te[0])?0:te[0]},set:function(Ot){te[0]=Ot}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!te||isNaN(te[1])?0:te[1]},set:function(Ot){te[1]=Ot}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!te||isNaN(te[2])?0:te[2]},set:function(Ot){te[2]=Ot}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!te||isNaN(te[3])?0:te[3]},set:function(Ot){te[3]=Ot}});var re="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return re},set:function(Ot){switch(Ot){case"/Btn":case"/Tx":case"/Ch":case"/Sig":re=Ot;break;default:throw new Error('Invalid value "'+Ot+'" for attribute FT supplied.')}}});var ae=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!ae||ae.length<1){if(this instanceof Mi)return;ae="FieldObject"+y.FieldNum++}var Ot=function(jn){return jn};return this.scope&&(Ot=this.scope.internal.getEncryptor(this.objId)),"("+Qf(Ot(ae))+")"},set:function(Ot){ae=Ot.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return ae},set:function(Ot){ae=Ot}});var we="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return we},set:function(Ot){we=Ot}});var ve="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return ve},set:function(Ot){ve=Ot}});var Be=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return Be},set:function(Ot){Be=Ot}});var Ee=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return Ee===void 0?50/bg:Ee},set:function(Ot){Ee=Ot}});var Ne="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return Ne},set:function(Ot){Ne=Ot}});var et="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!et||this instanceof Mi||this instanceof ia))return er(et,this.objId,this.scope)},set:function(Ot){Ot=Ot.toString(),et=Ot}});var ht=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(ht)return this instanceof To==0?er(ht,this.objId,this.scope):ht},set:function(Ot){Ot=Ot.toString(),ht=this instanceof To==0?Ot.substr(0,1)==="("?Ud(Ot.substr(1,Ot.length-2)):Ud(Ot):Ot}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof To==1?Ud(ht.substr(1,ht.length-1)):ht},set:function(Ot){Ot=Ot.toString(),ht=this instanceof To==1?"/"+Ot:Ot}});var De=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(De)return De},set:function(Ot){this.V=Ot}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(De)return this instanceof To==0?er(De,this.objId,this.scope):De},set:function(Ot){Ot=Ot.toString(),De=this instanceof To==0?Ot.substr(0,1)==="("?Ud(Ot.substr(1,Ot.length-2)):Ud(Ot):Ot}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof To==1?Ud(De.substr(1,De.length-1)):De},set:function(Ot){Ot=Ot.toString(),De=this instanceof To==1?"/"+Ot:Ot}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var tn,$t=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return $t},set:function(Ot){Ot=!!Ot,$t=Ot}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(tn)return tn},set:function(Ot){tn=Ot}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!js(this.Ff,1)},set:function(Ot){Ot?this.Ff=Ae(this.Ff,1):this.Ff=ie(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!js(this.Ff,2)},set:function(Ot){Ot?this.Ff=Ae(this.Ff,2):this.Ff=ie(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!js(this.Ff,3)},set:function(Ot){Ot?this.Ff=Ae(this.Ff,3):this.Ff=ie(this.Ff,3)}});var on=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(on!==null)return on},set:function(Ot){if([0,1,2].indexOf(Ot)===-1)throw new Error('Invalid value "'+Ot+'" for attribute Q supplied.');on=Ot}}),Object.defineProperty(this,"textAlign",{get:function(){var Ot;switch(on){case 0:default:Ot="left";break;case 1:Ot="center";break;case 2:Ot="right"}return Ot},configurable:!0,enumerable:!0,set:function(Ot){switch(Ot){case"right":case 2:on=2;break;case"center":case 1:on=1;break;default:on=0}}})};vl(pi,sr);var Oi=function(){pi.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var y=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return y},set:function(x){y=x}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return y},set:function(x){y=x}});var E=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return Vn(E,this.objId,this.scope)},set:function(x){var te,re;re=[],typeof(te=x)=="string"&&(re=function(ae,we,ve){ve||(ve=1);for(var Be,Ee=[];Be=we.exec(ae);)Ee.push(Be[ve]);return Ee}(te,/\((.*?)\)/g)),E=re}}),this.getOptions=function(){return E},this.setOptions=function(x){E=x,this.sort&&E.sort()},this.addOption=function(x){x=(x=x||"").toString(),E.push(x),this.sort&&E.sort()},this.removeOption=function(x,te){for(te=te||!1,x=(x=x||"").toString();E.indexOf(x)!==-1&&(E.splice(E.indexOf(x),1),te!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!js(this.Ff,18)},set:function(x){x?this.Ff=Ae(this.Ff,18):this.Ff=ie(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!js(this.Ff,19)},set:function(x){this.combo===!0&&(x?this.Ff=Ae(this.Ff,19):this.Ff=ie(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!js(this.Ff,20)},set:function(x){x?(this.Ff=Ae(this.Ff,20),E.sort()):this.Ff=ie(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!js(this.Ff,22)},set:function(x){x?this.Ff=Ae(this.Ff,22):this.Ff=ie(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!js(this.Ff,23)},set:function(x){x?this.Ff=Ae(this.Ff,23):this.Ff=ie(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!js(this.Ff,27)},set:function(x){x?this.Ff=Ae(this.Ff,27):this.Ff=ie(this.Ff,27)}}),this.hasAppearanceStream=!1};vl(Oi,pi);var Wo=function(){Oi.call(this),this.fontName="helvetica",this.combo=!1};vl(Wo,Oi);var Gi=function(){Wo.call(this),this.combo=!0};vl(Gi,Wo);var Wi=function(){Gi.call(this),this.edit=!0};vl(Wi,Gi);var To=function(){pi.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!js(this.Ff,15)},set:function(x){x?this.Ff=Ae(this.Ff,15):this.Ff=ie(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!js(this.Ff,16)},set:function(x){x?this.Ff=Ae(this.Ff,16):this.Ff=ie(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!js(this.Ff,17)},set:function(x){x?this.Ff=Ae(this.Ff,17):this.Ff=ie(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!js(this.Ff,26)},set:function(x){x?this.Ff=Ae(this.Ff,26):this.Ff=ie(this.Ff,26)}});var y,E={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var x=function(ae){return ae};if(this.scope&&(x=this.scope.internal.getEncryptor(this.objId)),Object.keys(E).length!==0){var te,re=[];for(te in re.push("<<"),E)re.push("/"+te+" ("+Qf(x(E[te]))+")");return re.push(">>"),re.join(`
|
|
|
`)}},set:function(x){(0,oe.Z)(x)==="object"&&(E=x)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return E.CA||""},set:function(x){typeof x=="string"&&(E.CA=x)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return y},set:function(x){y=x}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return y.substr(1,y.length-1)},set:function(x){y="/"+x}})};vl(To,pi);var Xo=function(){To.call(this),this.pushButton=!0};vl(Xo,To);var Fo=function(){To.call(this),this.radio=!0,this.pushButton=!1;var y=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return y},set:function(E){y=E!==void 0?E:[]}})};vl(Fo,To);var Mi=function(){var y,E;pi.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return y},set:function(re){y=re}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return E},set:function(re){E=re}});var x,te={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var re=function(ve){return ve};this.scope&&(re=this.scope.internal.getEncryptor(this.objId));var ae,we=[];for(ae in we.push("<<"),te)we.push("/"+ae+" ("+Qf(re(te[ae]))+")");return we.push(">>"),we.join(`
|
|
|
`)},set:function(re){(0,oe.Z)(re)==="object"&&(te=re)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return te.CA||""},set:function(re){typeof re=="string"&&(te.CA=re)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return x},set:function(re){x=re}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return x.substr(1,x.length-1)},set:function(re){x="/"+re}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=Li.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};vl(Mi,pi),Fo.prototype.setAppearance=function(y){if(!("createAppearanceStream"in y)||!("getCA"in y))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var E in this.Kids)if(this.Kids.hasOwnProperty(E)){var x=this.Kids[E];x.appearanceStreamContent=y.createAppearanceStream(x.optionName),x.caption=y.getCA()}},Fo.prototype.createOption=function(y){var E=new Mi;return E.Parent=this,E.optionName=y,this.Kids.push(E),yl.call(this.scope,E),E};var Ba=function(){To.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Li.CheckBox.createAppearanceStream()};vl(Ba,To);var ia=function(){pi.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!js(this.Ff,13)},set:function(E){E?this.Ff=Ae(this.Ff,13):this.Ff=ie(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!js(this.Ff,21)},set:function(E){E?this.Ff=Ae(this.Ff,21):this.Ff=ie(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!js(this.Ff,23)},set:function(E){E?this.Ff=Ae(this.Ff,23):this.Ff=ie(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!js(this.Ff,24)},set:function(E){E?this.Ff=Ae(this.Ff,24):this.Ff=ie(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!js(this.Ff,25)},set:function(E){E?this.Ff=Ae(this.Ff,25):this.Ff=ie(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!js(this.Ff,26)},set:function(E){E?this.Ff=Ae(this.Ff,26):this.Ff=ie(this.Ff,26)}});var y=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return y},set:function(E){y=E}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return y},set:function(E){Number.isInteger(E)&&(y=E)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};vl(ia,pi);var Qo=function(){ia.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!js(this.Ff,14)},set:function(y){y?this.Ff=Ae(this.Ff,14):this.Ff=ie(this.Ff,14)}}),this.password=!0};vl(Qo,ia);var Li={CheckBox:{createAppearanceStream:function(){return{N:{On:Li.CheckBox.YesNormal},D:{On:Li.CheckBox.YesPushDown,Off:Li.CheckBox.OffPushDown}}},YesPushDown:function(y){var E=Tu(y);E.scope=y.scope;var x=[],te=y.scope.internal.getFont(y.fontName,y.fontStyle).id,re=y.scope.__private__.encodeColorString(y.color),ae=Ue(y,y.caption);return x.push("0.749023 g"),x.push("0 0 "+$o(Li.internal.getWidth(y))+" "+$o(Li.internal.getHeight(y))+" re"),x.push("f"),x.push("BMC"),x.push("q"),x.push("0 0 1 rg"),x.push("/"+te+" "+$o(ae.fontSize)+" Tf "+re),x.push("BT"),x.push(ae.text),x.push("ET"),x.push("Q"),x.push("EMC"),E.stream=x.join(`
|
|
|
`),E},YesNormal:function(y){var E=Tu(y);E.scope=y.scope;var x=y.scope.internal.getFont(y.fontName,y.fontStyle).id,te=y.scope.__private__.encodeColorString(y.color),re=[],ae=Li.internal.getHeight(y),we=Li.internal.getWidth(y),ve=Ue(y,y.caption);return re.push("1 g"),re.push("0 0 "+$o(we)+" "+$o(ae)+" re"),re.push("f"),re.push("q"),re.push("0 0 1 rg"),re.push("0 0 "+$o(we-1)+" "+$o(ae-1)+" re"),re.push("W"),re.push("n"),re.push("0 g"),re.push("BT"),re.push("/"+x+" "+$o(ve.fontSize)+" Tf "+te),re.push(ve.text),re.push("ET"),re.push("Q"),E.stream=re.join(`
|
|
|
`),E},OffPushDown:function(y){var E=Tu(y);E.scope=y.scope;var x=[];return x.push("0.749023 g"),x.push("0 0 "+$o(Li.internal.getWidth(y))+" "+$o(Li.internal.getHeight(y))+" re"),x.push("f"),E.stream=x.join(`
|
|
|
`),E}},RadioButton:{Circle:{createAppearanceStream:function(y){var E={D:{Off:Li.RadioButton.Circle.OffPushDown},N:{}};return E.N[y]=Li.RadioButton.Circle.YesNormal,E.D[y]=Li.RadioButton.Circle.YesPushDown,E},getCA:function(){return"l"},YesNormal:function(y){var E=Tu(y);E.scope=y.scope;var x=[],te=Li.internal.getWidth(y)<=Li.internal.getHeight(y)?Li.internal.getWidth(y)/4:Li.internal.getHeight(y)/4;te=Number((.9*te).toFixed(5));var re=Li.internal.Bezier_C,ae=Number((te*re).toFixed(5));return x.push("q"),x.push("1 0 0 1 "+Vc(Li.internal.getWidth(y)/2)+" "+Vc(Li.internal.getHeight(y)/2)+" cm"),x.push(te+" 0 m"),x.push(te+" "+ae+" "+ae+" "+te+" 0 "+te+" c"),x.push("-"+ae+" "+te+" -"+te+" "+ae+" -"+te+" 0 c"),x.push("-"+te+" -"+ae+" -"+ae+" -"+te+" 0 -"+te+" c"),x.push(ae+" -"+te+" "+te+" -"+ae+" "+te+" 0 c"),x.push("f"),x.push("Q"),E.stream=x.join(`
|
|
|
`),E},YesPushDown:function(y){var E=Tu(y);E.scope=y.scope;var x=[],te=Li.internal.getWidth(y)<=Li.internal.getHeight(y)?Li.internal.getWidth(y)/4:Li.internal.getHeight(y)/4;te=Number((.9*te).toFixed(5));var re=Number((2*te).toFixed(5)),ae=Number((re*Li.internal.Bezier_C).toFixed(5)),we=Number((te*Li.internal.Bezier_C).toFixed(5));return x.push("0.749023 g"),x.push("q"),x.push("1 0 0 1 "+Vc(Li.internal.getWidth(y)/2)+" "+Vc(Li.internal.getHeight(y)/2)+" cm"),x.push(re+" 0 m"),x.push(re+" "+ae+" "+ae+" "+re+" 0 "+re+" c"),x.push("-"+ae+" "+re+" -"+re+" "+ae+" -"+re+" 0 c"),x.push("-"+re+" -"+ae+" -"+ae+" -"+re+" 0 -"+re+" c"),x.push(ae+" -"+re+" "+re+" -"+ae+" "+re+" 0 c"),x.push("f"),x.push("Q"),x.push("0 g"),x.push("q"),x.push("1 0 0 1 "+Vc(Li.internal.getWidth(y)/2)+" "+Vc(Li.internal.getHeight(y)/2)+" cm"),x.push(te+" 0 m"),x.push(te+" "+we+" "+we+" "+te+" 0 "+te+" c"),x.push("-"+we+" "+te+" -"+te+" "+we+" -"+te+" 0 c"),x.push("-"+te+" -"+we+" -"+we+" -"+te+" 0 -"+te+" c"),x.push(we+" -"+te+" "+te+" -"+we+" "+te+" 0 c"),x.push("f"),x.push("Q"),E.stream=x.join(`
|
|
|
`),E},OffPushDown:function(y){var E=Tu(y);E.scope=y.scope;var x=[],te=Li.internal.getWidth(y)<=Li.internal.getHeight(y)?Li.internal.getWidth(y)/4:Li.internal.getHeight(y)/4;te=Number((.9*te).toFixed(5));var re=Number((2*te).toFixed(5)),ae=Number((re*Li.internal.Bezier_C).toFixed(5));return x.push("0.749023 g"),x.push("q"),x.push("1 0 0 1 "+Vc(Li.internal.getWidth(y)/2)+" "+Vc(Li.internal.getHeight(y)/2)+" cm"),x.push(re+" 0 m"),x.push(re+" "+ae+" "+ae+" "+re+" 0 "+re+" c"),x.push("-"+ae+" "+re+" -"+re+" "+ae+" -"+re+" 0 c"),x.push("-"+re+" -"+ae+" -"+ae+" -"+re+" 0 -"+re+" c"),x.push(ae+" -"+re+" "+re+" -"+ae+" "+re+" 0 c"),x.push("f"),x.push("Q"),E.stream=x.join(`
|
|
|
`),E}},Cross:{createAppearanceStream:function(y){var E={D:{Off:Li.RadioButton.Cross.OffPushDown},N:{}};return E.N[y]=Li.RadioButton.Cross.YesNormal,E.D[y]=Li.RadioButton.Cross.YesPushDown,E},getCA:function(){return"8"},YesNormal:function(y){var E=Tu(y);E.scope=y.scope;var x=[],te=Li.internal.calculateCross(y);return x.push("q"),x.push("1 1 "+$o(Li.internal.getWidth(y)-2)+" "+$o(Li.internal.getHeight(y)-2)+" re"),x.push("W"),x.push("n"),x.push($o(te.x1.x)+" "+$o(te.x1.y)+" m"),x.push($o(te.x2.x)+" "+$o(te.x2.y)+" l"),x.push($o(te.x4.x)+" "+$o(te.x4.y)+" m"),x.push($o(te.x3.x)+" "+$o(te.x3.y)+" l"),x.push("s"),x.push("Q"),E.stream=x.join(`
|
|
|
`),E},YesPushDown:function(y){var E=Tu(y);E.scope=y.scope;var x=Li.internal.calculateCross(y),te=[];return te.push("0.749023 g"),te.push("0 0 "+$o(Li.internal.getWidth(y))+" "+$o(Li.internal.getHeight(y))+" re"),te.push("f"),te.push("q"),te.push("1 1 "+$o(Li.internal.getWidth(y)-2)+" "+$o(Li.internal.getHeight(y)-2)+" re"),te.push("W"),te.push("n"),te.push($o(x.x1.x)+" "+$o(x.x1.y)+" m"),te.push($o(x.x2.x)+" "+$o(x.x2.y)+" l"),te.push($o(x.x4.x)+" "+$o(x.x4.y)+" m"),te.push($o(x.x3.x)+" "+$o(x.x3.y)+" l"),te.push("s"),te.push("Q"),E.stream=te.join(`
|
|
|
`),E},OffPushDown:function(y){var E=Tu(y);E.scope=y.scope;var x=[];return x.push("0.749023 g"),x.push("0 0 "+$o(Li.internal.getWidth(y))+" "+$o(Li.internal.getHeight(y))+" re"),x.push("f"),E.stream=x.join(`
|
|
|
`),E}}},createDefaultAppearanceStream:function(y){var E=y.scope.internal.getFont(y.fontName,y.fontStyle).id,x=y.scope.__private__.encodeColorString(y.color);return"/"+E+" "+y.fontSize+" Tf "+x}};Li.internal={Bezier_C:.551915024494,calculateCross:function(y){var E=Li.internal.getWidth(y),x=Li.internal.getHeight(y),te=Math.min(E,x);return{x1:{x:(E-te)/2,y:(x-te)/2+te},x2:{x:(E-te)/2+te,y:(x-te)/2},x3:{x:(E-te)/2,y:(x-te)/2},x4:{x:(E-te)/2+te,y:(x-te)/2+te}}}},Li.internal.getWidth=function(y){var E=0;return(0,oe.Z)(y)==="object"&&(E=tm(y.Rect[2])),E},Li.internal.getHeight=function(y){var E=0;return(0,oe.Z)(y)==="object"&&(E=tm(y.Rect[3])),E};var yl=Ds.addField=function(y){if(Yt(this,y),!(y instanceof pi))throw new Error("Invalid argument passed to jsPDF.addField.");var E;return(E=y).scope.internal.acroformPlugin.printedOut&&(E.scope.internal.acroformPlugin.printedOut=!1,E.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),E.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(E),y.page=y.scope.internal.getCurrentPageInfo().pageNumber,this};Ds.AcroFormChoiceField=Oi,Ds.AcroFormListBox=Wo,Ds.AcroFormComboBox=Gi,Ds.AcroFormEditBox=Wi,Ds.AcroFormButton=To,Ds.AcroFormPushButton=Xo,Ds.AcroFormRadioButton=Fo,Ds.AcroFormCheckBox=Ba,Ds.AcroFormTextField=ia,Ds.AcroFormPasswordField=Qo,Ds.AcroFormAppearance=Li,Ds.AcroForm={ChoiceField:Oi,ListBox:Wo,ComboBox:Gi,EditBox:Wi,Button:To,PushButton:Xo,RadioButton:Fo,CheckBox:Ba,TextField:ia,PasswordField:Qo,Appearance:Li},ao.AcroForm={ChoiceField:Oi,ListBox:Wo,ComboBox:Gi,EditBox:Wi,Button:To,PushButton:Xo,RadioButton:Fo,CheckBox:Ba,TextField:ia,PasswordField:Qo,Appearance:Li};var Pl=ao.AcroForm;function Ja(y){return y.reduce(function(E,x,te){return E[x]=te,E},{})}(function(y){var E="addImage_";y.__addimage__={};var x="UNKNOWN",te={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},re=y.__addimage__.getImageFileTypeByImageData=function(Ut,an){var Hn,Pn,Ir,Tr,_r,Br=x;if((an=an||x)==="RGBA"||Ut.data!==void 0&&Ut.data instanceof Uint8ClampedArray&&"height"in Ut&&"width"in Ut)return"RGBA";if(Jr(Ut))for(_r in te)for(Ir=te[_r],Hn=0;Hn<Ir.length;Hn+=1){for(Tr=!0,Pn=0;Pn<Ir[Hn].length;Pn+=1)if(Ir[Hn][Pn]!==void 0&&Ir[Hn][Pn]!==Ut[Pn]){Tr=!1;break}if(Tr===!0){Br=_r;break}}else for(_r in te)for(Ir=te[_r],Hn=0;Hn<Ir.length;Hn+=1){for(Tr=!0,Pn=0;Pn<Ir[Hn].length;Pn+=1)if(Ir[Hn][Pn]!==void 0&&Ir[Hn][Pn]!==Ut.charCodeAt(Pn)){Tr=!1;break}if(Tr===!0){Br=_r;break}}return Br===x&&an!==x&&(Br=an),Br},ae=function Ut(an){for(var Hn=this.internal.write,Pn=this.internal.putStream,Ir=(0,this.internal.getFilters)();Ir.indexOf("FlateEncode")!==-1;)Ir.splice(Ir.indexOf("FlateEncode"),1);an.objectId=this.internal.newObject();var Tr=[];if(Tr.push({key:"Type",value:"/XObject"}),Tr.push({key:"Subtype",value:"/Image"}),Tr.push({key:"Width",value:an.width}),Tr.push({key:"Height",value:an.height}),an.colorSpace===Ot.INDEXED?Tr.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(an.palette.length/3-1)+" "+("sMask"in an&&an.sMask!==void 0?an.objectId+2:an.objectId+1)+" 0 R]"}):(Tr.push({key:"ColorSpace",value:"/"+an.colorSpace}),an.colorSpace===Ot.DEVICE_CMYK&&Tr.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),Tr.push({key:"BitsPerComponent",value:an.bitsPerComponent}),"decodeParameters"in an&&an.decodeParameters!==void 0&&Tr.push({key:"DecodeParms",value:"<<"+an.decodeParameters+">>"}),"transparency"in an&&Array.isArray(an.transparency)&&an.transparency.length>0){for(var _r="",Br=0,Kr=an.transparency.length;Br<Kr;Br++)_r+=an.transparency[Br]+" "+an.transparency[Br]+" ";Tr.push({key:"Mask",value:"["+_r+"]"})}an.sMask!==void 0&&Tr.push({key:"SMask",value:an.objectId+1+" 0 R"});var Si=an.filter!==void 0?["/"+an.filter]:void 0;if(Pn({data:an.data,additionalKeyValues:Tr,alreadyAppliedFilters:Si,objectId:an.objectId}),Hn("endobj"),"sMask"in an&&an.sMask!==void 0){var li,xt=(li=an.sMaskBitsPerComponent)!==null&&li!==void 0?li:an.bitsPerComponent,wn={width:an.width,height:an.height,colorSpace:"DeviceGray",bitsPerComponent:xt,data:an.sMask};"filter"in an&&(wn.decodeParameters="/Predictor ".concat(an.predictor," /Colors 1 /BitsPerComponent ").concat(xt," /Columns ").concat(an.width),wn.filter=an.filter),Ut.call(this,wn)}if(an.colorSpace===Ot.INDEXED){var On=this.internal.newObject();Pn({data:qn(new Uint8Array(an.palette)),objectId:On}),Hn("endobj")}},we=function(){var Ut=this.internal.collections[E+"images"];for(var an in Ut)ae.call(this,Ut[an])},ve=function(){var Ut,an=this.internal.collections[E+"images"],Hn=this.internal.write;for(var Pn in an)Hn("/I"+(Ut=an[Pn]).index,Ut.objectId,"0","R")},Be=function(){this.internal.collections[E+"images"]||(this.internal.collections[E+"images"]={},this.internal.events.subscribe("putResources",we),this.internal.events.subscribe("putXobjectDict",ve))},Ee=function(){var Ut=this.internal.collections[E+"images"];return Be.call(this),Ut},Ne=function(){return Object.keys(this.internal.collections[E+"images"]).length},et=function(Ut){return typeof y["process"+Ut.toUpperCase()]=="function"},ht=function(Ut){return(0,oe.Z)(Ut)==="object"&&Ut.nodeType===1},De=function(Ut,an){if(Ut.nodeName==="IMG"&&Ut.hasAttribute("src")){var Hn=""+Ut.getAttribute("src");if(Hn.indexOf("data:image/")===0)return Ih(unescape(Hn).split("base64,").pop());var Pn=y.loadFile(Hn,!0);if(Pn!==void 0)return Pn}if(Ut.nodeName==="CANVAS"){if(Ut.width===0||Ut.height===0)throw new Error("Given canvas must have data. Canvas width: "+Ut.width+", height: "+Ut.height);var Ir;switch(an){case"PNG":Ir="image/png";break;case"WEBP":Ir="image/webp";break;default:Ir="image/jpeg"}return Ih(Ut.toDataURL(Ir,1).split("base64,").pop())}},tn=function(Ut){var an=this.internal.collections[E+"images"];if(an){for(var Hn in an)if(Ut===an[Hn].alias)return an[Hn]}},$t=function(Ut,an,Hn){return Ut||an||(Ut=-96,an=-96),Ut<0&&(Ut=-1*Hn.width*72/Ut/this.internal.scaleFactor),an<0&&(an=-1*Hn.height*72/an/this.internal.scaleFactor),Ut===0&&(Ut=an*Hn.width/Hn.height),an===0&&(an=Ut*Hn.height/Hn.width),[Ut,an]},on=function(Ut,an,Hn,Pn,Ir,Tr){var _r=$t.call(this,Hn,Pn,Ir),Br=this.internal.getCoordinateString,Kr=this.internal.getVerticalCoordinateString,Si=Ee.call(this);if(Hn=_r[0],Pn=_r[1],Si[Ir.index]=Ir,Tr){Tr*=Math.PI/180;var li=Math.cos(Tr),xt=Math.sin(Tr),wn=function(Gn){return Gn.toFixed(4)},On=[wn(li),wn(xt),wn(-1*xt),wn(li),0,0,"cm"]}this.internal.write("q"),Tr?(this.internal.write([1,"0","0",1,Br(Ut),Kr(an+Pn),"cm"].join(" ")),this.internal.write(On.join(" ")),this.internal.write([Br(Hn),"0","0",Br(Pn),"0","0","cm"].join(" "))):this.internal.write([Br(Hn),"0","0",Br(Pn),Br(Ut),Kr(an+Pn),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+Ir.index+" Do"),this.internal.write("Q")},Ot=y.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};y.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var jn=y.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},Dn=y.__addimage__.sHashCode=function(Ut){var an,Hn,Pn=0;if(typeof Ut=="string")for(Hn=Ut.length,an=0;an<Hn;an++)Pn=(Pn<<5)-Pn+Ut.charCodeAt(an),Pn|=0;else if(Jr(Ut))for(Hn=Ut.byteLength/2,an=0;an<Hn;an++)Pn=(Pn<<5)-Pn+Ut[an],Pn|=0;return Pn},bn=y.__addimage__.validateStringAsBase64=function(Ut){(Ut=Ut||"").toString().trim();var an=!0;return Ut.length===0&&(an=!1),Ut.length%4!=0&&(an=!1),/^[A-Za-z0-9+/]+$/.test(Ut.substr(0,Ut.length-2))===!1&&(an=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(Ut.substr(-2))===!1&&(an=!1),an},Er=y.__addimage__.extractImageFromDataUrl=function(Ut){if(Ut==null||!(Ut=Ut.trim()).startsWith("data:"))return null;var an=Ut.indexOf(",");return an<0?null:Ut.substring(0,an).trim().endsWith("base64")?Ut.substring(an+1):null};y.__addimage__.isArrayBuffer=function(Ut){return Ut instanceof ArrayBuffer};var Jr=y.__addimage__.isArrayBufferView=function(Ut){return Ut instanceof Int8Array||Ut instanceof Uint8Array||Ut instanceof Uint8ClampedArray||Ut instanceof Int16Array||Ut instanceof Uint16Array||Ut instanceof Int32Array||Ut instanceof Uint32Array||Ut instanceof Float32Array||Ut instanceof Float64Array},Qr=y.__addimage__.binaryStringToUint8Array=function(Ut){for(var an=Ut.length,Hn=new Uint8Array(an),Pn=0;Pn<an;Pn++)Hn[Pn]=Ut.charCodeAt(Pn);return Hn},qn=y.__addimage__.arrayBufferToBinaryString=function(Ut){for(var an="",Hn=Jr(Ut)?Ut:new Uint8Array(Ut),Pn=0;Pn<Hn.length;Pn+=8192)an+=String.fromCharCode.apply(null,Hn.subarray(Pn,Pn+8192));return an};y.addImage=function(){var Ut,an,Hn,Pn,Ir,Tr,_r,Br,Kr;if(typeof arguments[1]=="number"?(an=x,Hn=arguments[1],Pn=arguments[2],Ir=arguments[3],Tr=arguments[4],_r=arguments[5],Br=arguments[6],Kr=arguments[7]):(an=arguments[1],Hn=arguments[2],Pn=arguments[3],Ir=arguments[4],Tr=arguments[5],_r=arguments[6],Br=arguments[7],Kr=arguments[8]),(0,oe.Z)(Ut=arguments[0])==="object"&&!ht(Ut)&&"imageData"in Ut){var Si=Ut;Ut=Si.imageData,an=Si.format||an||x,Hn=Si.x||Hn||0,Pn=Si.y||Pn||0,Ir=Si.w||Si.width||Ir,Tr=Si.h||Si.height||Tr,_r=Si.alias||_r,Br=Si.compression||Br,Kr=Si.rotation||Si.angle||Kr}var li=this.internal.getFilters();if(Br===void 0&&li.indexOf("FlateEncode")!==-1&&(Br="SLOW"),isNaN(Hn)||isNaN(Pn))throw new Error("Invalid coordinates passed to jsPDF.addImage");Be.call(this);var xt=Bn.call(this,Ut,an,_r,Br);return on.call(this,Hn,Pn,Ir,Tr,xt,Kr),this};var Bn=function(Ut,an,Hn,Pn){var Ir,Tr,_r;if(typeof Ut=="string"&&re(Ut)===x){Ut=unescape(Ut);var Br=ur(Ut,!1);(Br!==""||(Br=y.loadFile(Ut,!0))!==void 0)&&(Ut=Br)}if(ht(Ut)&&(Ut=De(Ut,an)),an=re(Ut,an),!et(an))throw new Error("addImage does not support files of type '"+an+"', please ensure that a plugin for '"+an+"' support is added.");if(((_r=Hn)==null||_r.length===0)&&(Hn=function(Kr){return typeof Kr=="string"||Jr(Kr)?Dn(Kr):Jr(Kr.data)?Dn(Kr.data):null}(Ut)),(Ir=tn.call(this,Hn))||(Ut instanceof Uint8Array||an==="RGBA"||(Tr=Ut,Ut=Qr(Ut)),Ir=this["process"+an.toUpperCase()](Ut,Ne.call(this),Hn,function(Kr){return Kr&&typeof Kr=="string"&&(Kr=Kr.toUpperCase()),Kr in y.image_compression?Kr:jn.NONE}(Pn),Tr)),!Ir)throw new Error("An unknown error occurred whilst processing the image.");return Ir},ur=y.__addimage__.convertBase64ToBinaryString=function(Ut,an){an=typeof an!="boolean"||an;var Hn,Pn="";if(typeof Ut=="string"){var Ir;Hn=(Ir=Er(Ut))!==null&&Ir!==void 0?Ir:Ut;try{Pn=Ih(Hn)}catch(Tr){if(an)throw bn(Hn)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+Tr.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return Pn};y.getImageProperties=function(Ut){var an,Hn,Pn="";if(ht(Ut)&&(Ut=De(Ut)),typeof Ut=="string"&&re(Ut)===x&&((Pn=ur(Ut,!1))===""&&(Pn=y.loadFile(Ut)||""),Ut=Pn),Hn=re(Ut),!et(Hn))throw new Error("addImage does not support files of type '"+Hn+"', please ensure that a plugin for '"+Hn+"' support is added.");if(Ut instanceof Uint8Array||(Ut=Qr(Ut)),!(an=this["process"+Hn.toUpperCase()](Ut)))throw new Error("An unknown error occurred whilst processing the image");return an.fileType=Hn,an}})(ao.API),function(y){var E=function(x){if(x!==void 0&&x!="")return!0};ao.API.events.push(["addPage",function(x){this.internal.getPageInfo(x.pageNumber).pageContext.annotations=[]}]),y.events.push(["putPage",function(x){for(var te,re,ae,we=this.internal.getCoordinateString,ve=this.internal.getVerticalCoordinateString,Be=this.internal.getPageInfoByObjId(x.objId),Ee=x.pageContext.annotations,Ne=!1,et=0;et<Ee.length&&!Ne;et++)switch((te=Ee[et]).type){case"link":(E(te.options.url)||E(te.options.pageNumber))&&(Ne=!0);break;case"reference":case"text":case"freetext":Ne=!0}if(Ne!=0){this.internal.write("/Annots [");for(var ht=0;ht<Ee.length;ht++){te=Ee[ht];var De=this.internal.pdfEscape,tn=this.internal.getEncryptor(x.objId);switch(te.type){case"reference":this.internal.write(" "+te.object.objId+" 0 R ");break;case"text":var $t=this.internal.newAdditionalObject(),on=this.internal.newAdditionalObject(),Ot=this.internal.getEncryptor($t.objId),jn=te.title||"Note";ae="<</Type /Annot /Subtype /Text "+(re="/Rect ["+we(te.bounds.x)+" "+ve(te.bounds.y+te.bounds.h)+" "+we(te.bounds.x+te.bounds.w)+" "+ve(te.bounds.y)+"] ")+"/Contents ("+De(Ot(te.contents))+")",ae+=" /Popup "+on.objId+" 0 R",ae+=" /P "+Be.objId+" 0 R",ae+=" /T ("+De(Ot(jn))+") >>",$t.content=ae;var Dn=$t.objId+" 0 R";ae="<</Type /Annot /Subtype /Popup "+(re="/Rect ["+we(te.bounds.x+30)+" "+ve(te.bounds.y+te.bounds.h)+" "+we(te.bounds.x+te.bounds.w+30)+" "+ve(te.bounds.y)+"] ")+" /Parent "+Dn,te.open&&(ae+=" /Open true"),ae+=" >>",on.content=ae,this.internal.write($t.objId,"0 R",on.objId,"0 R");break;case"freetext":re="/Rect ["+we(te.bounds.x)+" "+ve(te.bounds.y)+" "+we(te.bounds.x+te.bounds.w)+" "+ve(te.bounds.y+te.bounds.h)+"] ";var bn=te.color||"#000000";ae="<</Type /Annot /Subtype /FreeText "+re+"/Contents ("+De(tn(te.contents))+")",ae+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+bn+")",ae+=" /Border [0 0 0]",ae+=" >>",this.internal.write(ae);break;case"link":if(te.options.name){var Er=this.annotations._nameMap[te.options.name];te.options.pageNumber=Er.page,te.options.top=Er.y}else te.options.top||(te.options.top=0);if(re="/Rect ["+te.finalBounds.x+" "+te.finalBounds.y+" "+te.finalBounds.w+" "+te.finalBounds.h+"] ",ae="",te.options.url)ae="<</Type /Annot /Subtype /Link "+re+"/Border [0 0 0] /A <</S /URI /URI ("+De(tn(te.options.url))+") >>";else if(te.options.pageNumber)switch(ae="<</Type /Annot /Subtype /Link "+re+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(te.options.pageNumber).objId+" 0 R",te.options.magFactor=te.options.magFactor||"XYZ",te.options.magFactor){case"Fit":ae+=" /Fit]";break;case"FitH":ae+=" /FitH "+te.options.top+"]";break;case"FitV":te.options.left=te.options.left||0,ae+=" /FitV "+te.options.left+"]";break;default:var Jr=ve(te.options.top);te.options.left=te.options.left||0,te.options.zoom===void 0&&(te.options.zoom=0),ae+=" /XYZ "+te.options.left+" "+Jr+" "+te.options.zoom+"]"}ae!=""&&(ae+=" >>",this.internal.write(ae))}}this.internal.write("]")}}]),y.createAnnotation=function(x){var te=this.internal.getCurrentPageInfo();switch(x.type){case"link":this.link(x.bounds.x,x.bounds.y,x.bounds.w,x.bounds.h,x);break;case"text":case"freetext":te.pageContext.annotations.push(x)}},y.link=function(x,te,re,ae,we){var ve=this.internal.getCurrentPageInfo(),Be=this.internal.getCoordinateString,Ee=this.internal.getVerticalCoordinateString;ve.pageContext.annotations.push({finalBounds:{x:Be(x),y:Ee(te),w:Be(x+re),h:Ee(te+ae)},options:we,type:"link"})},y.textWithLink=function(x,te,re,ae){var we,ve,Be=this.getTextWidth(x),Ee=this.internal.getLineHeight()/this.internal.scaleFactor;if(ae.maxWidth!==void 0){ve=ae.maxWidth;var Ne=this.splitTextToSize(x,ve).length;we=Math.ceil(Ee*Ne)}else ve=Be,we=Ee;return this.text(x,te,re,ae),re+=.2*Ee,ae.align==="center"&&(te-=Be/2),ae.align==="right"&&(te-=Be),this.link(te,re-Ee,ve,we,ae),Be},y.getTextWidth=function(x){var te=this.internal.getFontSize();return this.getStringUnitWidth(x)*te/this.internal.scaleFactor}}(ao.API),function(y){var E={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},x={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},te={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},re=[1570,1571,1573,1575];y.__arabicParser__={};var ae=y.__arabicParser__.isInArabicSubstitutionA=function($t){return E[$t.charCodeAt(0)]!==void 0},we=y.__arabicParser__.isArabicLetter=function($t){return typeof $t=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test($t)},ve=y.__arabicParser__.isArabicEndLetter=function($t){return we($t)&&ae($t)&&E[$t.charCodeAt(0)].length<=2},Be=y.__arabicParser__.isArabicAlfLetter=function($t){return we($t)&&re.indexOf($t.charCodeAt(0))>=0};y.__arabicParser__.arabicLetterHasIsolatedForm=function($t){return we($t)&&ae($t)&&E[$t.charCodeAt(0)].length>=1};var Ee=y.__arabicParser__.arabicLetterHasFinalForm=function($t){return we($t)&&ae($t)&&E[$t.charCodeAt(0)].length>=2};y.__arabicParser__.arabicLetterHasInitialForm=function($t){return we($t)&&ae($t)&&E[$t.charCodeAt(0)].length>=3};var Ne=y.__arabicParser__.arabicLetterHasMedialForm=function($t){return we($t)&&ae($t)&&E[$t.charCodeAt(0)].length==4},et=y.__arabicParser__.resolveLigatures=function($t){var on=0,Ot=x,jn="",Dn=0;for(on=0;on<$t.length;on+=1)Ot[$t.charCodeAt(on)]!==void 0?(Dn++,typeof(Ot=Ot[$t.charCodeAt(on)])=="number"&&(jn+=String.fromCharCode(Ot),Ot=x,Dn=0),on===$t.length-1&&(Ot=x,jn+=$t.charAt(on-(Dn-1)),on-=Dn-1,Dn=0)):(Ot=x,jn+=$t.charAt(on-Dn),on-=Dn,Dn=0);return jn};y.__arabicParser__.isArabicDiacritic=function($t){return $t!==void 0&&te[$t.charCodeAt(0)]!==void 0};var ht=y.__arabicParser__.getCorrectForm=function($t,on,Ot){return we($t)?ae($t)===!1?-1:!Ee($t)||!we(on)&&!we(Ot)||!we(Ot)&&ve(on)||ve($t)&&!we(on)||ve($t)&&Be(on)||ve($t)&&ve(on)?0:Ne($t)&&we(on)&&!ve(on)&&we(Ot)&&Ee(Ot)?3:ve($t)||!we(Ot)?1:2:-1},De=function($t){var on=0,Ot=0,jn=0,Dn="",bn="",Er="",Jr=($t=$t||"").split("\\s+"),Qr=[];for(on=0;on<Jr.length;on+=1){for(Qr.push(""),Ot=0;Ot<Jr[on].length;Ot+=1)Dn=Jr[on][Ot],bn=Jr[on][Ot-1],Er=Jr[on][Ot+1],we(Dn)?(jn=ht(Dn,bn,Er),Qr[on]+=jn!==-1?String.fromCharCode(E[Dn.charCodeAt(0)][jn]):Dn):Qr[on]+=Dn;Qr[on]=et(Qr[on])}return Qr.join(" ")},tn=y.__arabicParser__.processArabic=y.processArabic=function(){var $t,on=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,Ot=[];if(Array.isArray(on)){var jn=0;for(Ot=[],jn=0;jn<on.length;jn+=1)Array.isArray(on[jn])?Ot.push([De(on[jn][0]),on[jn][1],on[jn][2]]):Ot.push([De(on[jn])]);$t=Ot}else $t=De(on);return typeof arguments[0]=="string"?$t:(arguments[0].text=$t,arguments[0])};y.events.push(["preProcessText",tn])}(ao.API),ao.API.autoPrint=function(y){var E;return(y=y||{}).variant=y.variant||"non-conform",y.variant==="javascript"?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",function(){E=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+E+" 0 R")})),this},function(y){var E=function(){var x=void 0;Object.defineProperty(this,"pdf",{get:function(){return x},set:function(ve){x=ve}});var te=150;Object.defineProperty(this,"width",{get:function(){return te},set:function(ve){te=isNaN(ve)||Number.isInteger(ve)===!1||ve<0?150:ve,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=te+1)}});var re=300;Object.defineProperty(this,"height",{get:function(){return re},set:function(ve){re=isNaN(ve)||Number.isInteger(ve)===!1||ve<0?300:ve,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=re+1)}});var ae=[];Object.defineProperty(this,"childNodes",{get:function(){return ae},set:function(ve){ae=ve}});var we={};Object.defineProperty(this,"style",{get:function(){return we},set:function(ve){we=ve}}),Object.defineProperty(this,"parentNode",{})};E.prototype.getContext=function(x,te){var re;if((x=x||"2d")!=="2d")return null;for(re in te)this.pdf.context2d.hasOwnProperty(re)&&(this.pdf.context2d[re]=te[re]);return this.pdf.context2d._canvas=this,this.pdf.context2d},E.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},y.events.push(["initialized",function(){this.canvas=new E,this.canvas.pdf=this}])}(ao.API),function(y){var E={left:0,top:0,bottom:0,right:0},x=!1,te=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},E),this.internal.__cell__.margins.width=this.getPageWidth(),re.call(this))},re=function(){this.internal.__cell__.lastCell=new ae,this.internal.__cell__.pages=1},ae=function(){var Be=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return Be},set:function($t){Be=$t}});var Ee=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return Ee},set:function($t){Ee=$t}});var Ne=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return Ne},set:function($t){Ne=$t}});var et=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return et},set:function($t){et=$t}});var ht=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return ht},set:function($t){ht=$t}});var De=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return De},set:function($t){De=$t}});var tn=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return tn},set:function($t){tn=$t}}),this};ae.prototype.clone=function(){return new ae(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},ae.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},y.setHeaderFunction=function(Be){return te.call(this),this.internal.__cell__.headerFunction=typeof Be=="function"?Be:void 0,this},y.getTextDimensions=function(Be,Ee){te.call(this);var Ne=(Ee=Ee||{}).fontSize||this.getFontSize(),et=Ee.font||this.getFont(),ht=Ee.scaleFactor||this.internal.scaleFactor,De=0,tn=0,$t=0,on=this;if(!Array.isArray(Be)&&typeof Be!="string"){if(typeof Be!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");Be=String(Be)}var Ot=Ee.maxWidth;Ot>0?typeof Be=="string"?Be=this.splitTextToSize(Be,Ot):Object.prototype.toString.call(Be)==="[object Array]"&&(Be=Be.reduce(function(Dn,bn){return Dn.concat(on.splitTextToSize(bn,Ot))},[])):Be=Array.isArray(Be)?Be:[Be];for(var jn=0;jn<Be.length;jn++)De<($t=this.getStringUnitWidth(Be[jn],{font:et})*Ne)&&(De=$t);return De!==0&&(tn=Be.length),{w:De/=ht,h:Math.max((tn*Ne*this.getLineHeightFactor()-Ne*(this.getLineHeightFactor()-1))/ht,0)}},y.cellAddPage=function(){te.call(this),this.addPage();var Be=this.internal.__cell__.margins||E;return this.internal.__cell__.lastCell=new ae(Be.left,Be.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var we=y.cell=function(){var Be;Be=arguments[0]instanceof ae?arguments[0]:new ae(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]),te.call(this);var Ee=this.internal.__cell__.lastCell,Ne=this.internal.__cell__.padding,et=this.internal.__cell__.margins||E,ht=this.internal.__cell__.tableHeaderRow,De=this.internal.__cell__.printHeaders;return Ee.lineNumber!==void 0&&(Ee.lineNumber===Be.lineNumber?(Be.x=(Ee.x||0)+(Ee.width||0),Be.y=Ee.y||0):Ee.y+Ee.height+Be.height+et.bottom>this.getPageHeight()?(this.cellAddPage(),Be.y=et.top,De&&ht&&(this.printHeaderRow(Be.lineNumber,!0),Be.y+=ht[0].height)):Be.y=Ee.y+Ee.height||Be.y),Be.text[0]!==void 0&&(this.rect(Be.x,Be.y,Be.width,Be.height,x===!0?"FD":void 0),Be.align==="right"?this.text(Be.text,Be.x+Be.width-Ne,Be.y+Ne,{align:"right",baseline:"top"}):Be.align==="center"?this.text(Be.text,Be.x+Be.width/2,Be.y+Ne,{align:"center",baseline:"top",maxWidth:Be.width-Ne-Ne}):this.text(Be.text,Be.x+Ne,Be.y+Ne,{align:"left",baseline:"top",maxWidth:Be.width-Ne-Ne})),this.internal.__cell__.lastCell=Be,this};y.table=function(Be,Ee,Ne,et,ht){if(te.call(this),!Ne)throw new Error("No data for PDF table.");var De,tn,$t,on,Ot=[],jn=[],Dn=[],bn={},Er={},Jr=[],Qr=[],qn=(ht=ht||{}).autoSize||!1,Bn=ht.printHeaders!==!1,ur=ht.css&&ht.css["font-size"]!==void 0?16*ht.css["font-size"]:ht.fontSize||12,Ut=ht.margins||Object.assign({width:this.getPageWidth()},E),an=typeof ht.padding=="number"?ht.padding:3,Hn=ht.headerBackgroundColor||"#c8c8c8",Pn=ht.headerTextColor||"#000";if(re.call(this),this.internal.__cell__.printHeaders=Bn,this.internal.__cell__.margins=Ut,this.internal.__cell__.table_font_size=ur,this.internal.__cell__.padding=an,this.internal.__cell__.headerBackgroundColor=Hn,this.internal.__cell__.headerTextColor=Pn,this.setFontSize(ur),et==null)jn=Ot=Object.keys(Ne[0]),Dn=Ot.map(function(){return"left"});else if(Array.isArray(et)&&(0,oe.Z)(et[0])==="object")for(Ot=et.map(function(Si){return Si.name}),jn=et.map(function(Si){return Si.prompt||Si.name||""}),Dn=et.map(function(Si){return Si.align||"left"}),De=0;De<et.length;De+=1)Er[et[De].name]=.7499990551181103*et[De].width;else Array.isArray(et)&&typeof et[0]=="string"&&(jn=Ot=et,Dn=Ot.map(function(){return"left"}));if(qn||Array.isArray(et)&&typeof et[0]=="string")for(De=0;De<Ot.length;De+=1){for(bn[on=Ot[De]]=Ne.map(function(Si){return Si[on]}),this.setFont(void 0,"bold"),Jr.push(this.getTextDimensions(jn[De],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),tn=bn[on],this.setFont(void 0,"normal"),$t=0;$t<tn.length;$t+=1)Jr.push(this.getTextDimensions(tn[$t],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);Er[on]=Math.max.apply(null,Jr)+an+an,Jr=[]}if(Bn){var Ir={};for(De=0;De<Ot.length;De+=1)Ir[Ot[De]]={},Ir[Ot[De]].text=jn[De],Ir[Ot[De]].align=Dn[De];var Tr=ve.call(this,Ir,Er);Qr=Ot.map(function(Si){return new ae(Be,Ee,Er[Si],Tr,Ir[Si].text,void 0,Ir[Si].align)}),this.setTableHeaderRow(Qr),this.printHeaderRow(1,!1)}var _r=et.reduce(function(Si,li){return Si[li.name]=li.align,Si},{});for(De=0;De<Ne.length;De+=1){"rowStart"in ht&&ht.rowStart instanceof Function&&ht.rowStart({row:De,data:Ne[De]},this);var Br=ve.call(this,Ne[De],Er);for($t=0;$t<Ot.length;$t+=1){var Kr=Ne[De][Ot[$t]];"cellStart"in ht&&ht.cellStart instanceof Function&&ht.cellStart({row:De,col:$t,data:Kr},this),we.call(this,new ae(Be,Ee,Er[Ot[$t]],Br,Kr,De+2,_r[Ot[$t]]))}}return this.internal.__cell__.table_x=Be,this.internal.__cell__.table_y=Ee,this};var ve=function(Be,Ee){var Ne=this.internal.__cell__.padding,et=this.internal.__cell__.table_font_size,ht=this.internal.scaleFactor;return Object.keys(Be).map(function(De){var tn=Be[De];return this.splitTextToSize(tn.hasOwnProperty("text")?tn.text:tn,Ee[De]-Ne-Ne)},this).map(function(De){return this.getLineHeightFactor()*De.length*et/ht+Ne+Ne},this).reduce(function(De,tn){return Math.max(De,tn)},0)};y.setTableHeaderRow=function(Be){te.call(this),this.internal.__cell__.tableHeaderRow=Be},y.printHeaderRow=function(Be,Ee){if(te.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var Ne;if(x=!0,typeof this.internal.__cell__.headerFunction=="function"){var et=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new ae(et[0],et[1],et[2],et[3],void 0,-1)}this.setFont(void 0,"bold");for(var ht=[],De=0;De<this.internal.__cell__.tableHeaderRow.length;De+=1){Ne=this.internal.__cell__.tableHeaderRow[De].clone(),Ee&&(Ne.y=this.internal.__cell__.margins.top||0,ht.push(Ne)),Ne.lineNumber=Be;var tn=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),we.call(this,Ne),this.setTextColor(tn)}ht.length>0&&this.setTableHeaderRow(ht),this.setFont(void 0,"normal"),x=!1}}(ao.API);var bA={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},lc=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],GA=Ja(lc),rl=[100,200,300,400,500,600,700,800,900],Mf=Ja(rl);function Kl(y){var E=y.family.replace(/"|'/g,"").toLowerCase(),x=function(ae){return bA[ae=ae||"normal"]?ae:"normal"}(y.style),te=function(ae){return ae?typeof ae=="number"?ae>=100&&ae<=900&&ae%100==0?ae:400:/^\d00$/.test(ae)?parseInt(ae):ae==="bold"?700:400:400}(y.weight),re=function(ae){return typeof GA[ae=ae||"normal"]=="number"?ae:"normal"}(y.stretch);return{family:E,style:x,weight:te,stretch:re,src:y.src||[],ref:y.ref||{name:E,style:[re,x,te].join(" ")}}}function uc(y,E,x,te){var re;for(re=x;re>=0&&re<E.length;re+=te)if(y[E[re]])return y[E[re]];for(re=x;re>=0&&re<E.length;re-=te)if(y[E[re]])return y[E[re]]}var _f={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Zc={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Qu(y){return[y.stretch,y.style,y.weight,y.family].join(" ")}function $c(y){return y.trimLeft()}function cc(y,E){for(var x=0;x<y.length;){if(y.charAt(x)===E)return[y.substring(0,x),y.substring(x+1)];x+=1}return null}function Od(y){var E=y.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return E===null?null:[E[0],y.substring(E[0].length)]}var Xc,S0,F0,Qp,nm,I0,L0,U0,zm=["times"];function O0(y,E,x,te,re){var ae=4,we=N0;switch(re){case ao.API.image_compression.FAST:ae=1,we=D0;break;case ao.API.image_compression.MEDIUM:ae=6,we=P0;break;case ao.API.image_compression.SLOW:ae=9,we=T0}y=function(Be,Ee,Ne,et){for(var ht,De=Be.length/Ee,tn=new Uint8Array(Be.length+De),$t=[Lv,D0,N0,P0,T0],on=0;on<De;on+=1){var Ot=on*Ee,jn=Be.subarray(Ot,Ot+Ee);if(et)tn.set(et(jn,Ne,ht),Ot+on);else{for(var Dn=$t.length,bn=[],Er=0;Er<Dn;Er+=1)bn[Er]=$t[Er](jn,Ne,ht);var Jr=Ov(bn.concat());tn.set(bn[Jr],Ot+on)}ht=jn}return tn}(y,E,Math.ceil(x*te/8),we);var ve=Wr(y,{level:ae});return ao.API.__addimage__.arrayBufferToBinaryString(ve)}function Lv(y){var E=Array.apply([],y);return E.unshift(0),E}function D0(y,E){var x=y.length,te=[];te[0]=1;for(var re=0;re<x;re+=1){var ae=y[re-E]||0;te[re+1]=y[re]-ae+256&255}return te}function N0(y,E,x){var te=y.length,re=[];re[0]=2;for(var ae=0;ae<te;ae+=1){var we=x&&x[ae]||0;re[ae+1]=y[ae]-we+256&255}return re}function P0(y,E,x){var te=y.length,re=[];re[0]=3;for(var ae=0;ae<te;ae+=1){var we=y[ae-E]||0,ve=x&&x[ae]||0;re[ae+1]=y[ae]+256-(we+ve>>>1)&255}return re}function T0(y,E,x){var te=y.length,re=[];re[0]=4;for(var ae=0;ae<te;ae+=1){var we=Uv(y[ae-E]||0,x&&x[ae]||0,x&&x[ae-E]||0);re[ae+1]=y[ae]-we+256&255}return re}function Uv(y,E,x){if(y===E&&E===x)return y;var te=Math.abs(E-x),re=Math.abs(y-x),ae=Math.abs(y+E-x-x);return te<=re&&te<=ae?y:re<=ae?E:x}function Ov(y){var E=y.map(function(x){return x.reduce(function(te,re){return te+Math.abs(re)},0)});return E.indexOf(Math.min.apply(null,E))}function Km(y,E,x){var te=E*x,re=Math.floor(te/8),ae=16-(te-8*re+x),we=(1<<x)-1;return M0(y,re)>>ae&we}function Q0(y,E,x,te){var re=x*te,ae=Math.floor(re/8),we=16-(re-8*ae+te),ve=(1<<te)-1,Be=(E&ve)<<we;(function(Ee,Ne,et){if(Ne+1<Ee.byteLength)Ee.setUint16(Ne,et,!1);else{var ht=et>>8&255;Ee.setUint8(Ne,ht)}})(y,ae,M0(y,ae)&~(ve<<we)&65535|Be)}function M0(y,E){return E+1<y.byteLength?y.getUint16(E,!1):y.getUint8(E)<<8}function Dv(y){var E=0;if(y[E++]!==71||y[E++]!==73||y[E++]!==70||y[E++]!==56||(y[E++]+1&253)!=56||y[E++]!==97)throw new Error("Invalid GIF 87a/89a header.");var x=y[E++]|y[E++]<<8,te=y[E++]|y[E++]<<8,re=y[E++],ae=re>>7,we=1<<1+(7&re);y[E++],y[E++];var ve=null,Be=null;ae&&(ve=E,Be=we,E+=3*we);var Ee=!0,Ne=[],et=0,ht=null,De=0,tn=null;for(this.width=x,this.height=te;Ee&&E<y.length;)switch(y[E++]){case 33:switch(y[E++]){case 255:if(y[E]!==11||y[E+1]==78&&y[E+2]==69&&y[E+3]==84&&y[E+4]==83&&y[E+5]==67&&y[E+6]==65&&y[E+7]==80&&y[E+8]==69&&y[E+9]==50&&y[E+10]==46&&y[E+11]==48&&y[E+12]==3&&y[E+13]==1&&y[E+16]==0)E+=14,tn=y[E++]|y[E++]<<8,E++;else for(E+=12;;){if(!((Ut=y[E++])>=0))throw Error("Invalid block size");if(Ut===0)break;E+=Ut}break;case 249:if(y[E++]!==4||y[E+4]!==0)throw new Error("Invalid graphics extension block.");var $t=y[E++];et=y[E++]|y[E++]<<8,ht=y[E++],1&$t||(ht=null),De=$t>>2&7,E++;break;case 254:for(;;){if(!((Ut=y[E++])>=0))throw Error("Invalid block size");if(Ut===0)break;E+=Ut}break;default:throw new Error("Unknown graphic control label: 0x"+y[E-1].toString(16))}break;case 44:var on=y[E++]|y[E++]<<8,Ot=y[E++]|y[E++]<<8,jn=y[E++]|y[E++]<<8,Dn=y[E++]|y[E++]<<8,bn=y[E++],Er=bn>>6&1,Jr=1<<1+(7&bn),Qr=ve,qn=Be,Bn=!1;bn>>7&&(Bn=!0,Qr=E,qn=Jr,E+=3*Jr);var ur=E;for(E++;;){var Ut;if(!((Ut=y[E++])>=0))throw Error("Invalid block size");if(Ut===0)break;E+=Ut}Ne.push({x:on,y:Ot,width:jn,height:Dn,has_local_palette:Bn,palette_offset:Qr,palette_size:qn,data_offset:ur,data_length:E-ur,transparent_index:ht,interlaced:!!Er,delay:et,disposal:De});break;case 59:Ee=!1;break;default:throw new Error("Unknown gif block: 0x"+y[E-1].toString(16))}this.numFrames=function(){return Ne.length},this.loopCount=function(){return tn},this.frameInfo=function(an){if(an<0||an>=Ne.length)throw new Error("Frame index out of range.");return Ne[an]},this.decodeAndBlitFrameBGRA=function(an,Hn){var Pn=this.frameInfo(an),Ir=Pn.width*Pn.height,Tr=new Uint8Array(Ir);_0(y,Pn.data_offset,Tr,Ir);var _r=Pn.palette_offset,Br=Pn.transparent_index;Br===null&&(Br=256);var Kr=Pn.width,Si=x-Kr,li=Kr,xt=4*(Pn.y*x+Pn.x),wn=4*((Pn.y+Pn.height)*x+Pn.x),On=xt,Gn=4*Si;Pn.interlaced===!0&&(Gn+=4*x*7);for(var or=8,yr=0,Mr=Tr.length;yr<Mr;++yr){var Hr=Tr[yr];if(li===0&&(li=Kr,(On+=Gn)>=wn&&(Gn=4*Si+4*x*(or-1),On=xt+(Kr+Si)*(or<<1),or>>=1)),Hr===Br)On+=4;else{var oi=y[_r+3*Hr],wi=y[_r+3*Hr+1],Ri=y[_r+3*Hr+2];Hn[On++]=Ri,Hn[On++]=wi,Hn[On++]=oi,Hn[On++]=255}--li}},this.decodeAndBlitFrameRGBA=function(an,Hn){var Pn=this.frameInfo(an),Ir=Pn.width*Pn.height,Tr=new Uint8Array(Ir);_0(y,Pn.data_offset,Tr,Ir);var _r=Pn.palette_offset,Br=Pn.transparent_index;Br===null&&(Br=256);var Kr=Pn.width,Si=x-Kr,li=Kr,xt=4*(Pn.y*x+Pn.x),wn=4*((Pn.y+Pn.height)*x+Pn.x),On=xt,Gn=4*Si;Pn.interlaced===!0&&(Gn+=4*x*7);for(var or=8,yr=0,Mr=Tr.length;yr<Mr;++yr){var Hr=Tr[yr];if(li===0&&(li=Kr,(On+=Gn)>=wn&&(Gn=4*Si+4*x*(or-1),On=xt+(Kr+Si)*(or<<1),or>>=1)),Hr===Br)On+=4;else{var oi=y[_r+3*Hr],wi=y[_r+3*Hr+1],Ri=y[_r+3*Hr+2];Hn[On++]=oi,Hn[On++]=wi,Hn[On++]=Ri,Hn[On++]=255}--li}}}function _0(y,E,x,te){for(var re=y[E++],ae=1<<re,we=ae+1,ve=we+1,Be=re+1,Ee=(1<<Be)-1,Ne=0,et=0,ht=0,De=y[E++],tn=new Int32Array(4096),$t=null;;){for(;Ne<16&&De!==0;)et|=y[E++]<<Ne,Ne+=8,De===1?De=y[E++]:--De;if(Ne<Be)break;var on=et&Ee;if(et>>=Be,Ne-=Be,on!==ae){if(on===we)break;for(var Ot=on<ve?on:$t,jn=0,Dn=Ot;Dn>ae;)Dn=tn[Dn]>>8,++jn;var bn=Dn;if(ht+jn+(Ot!==on?1:0)>te)return void Pa.log("Warning, gif stream longer than expected.");x[ht++]=bn;var Er=ht+=jn;for(Ot!==on&&(x[ht++]=bn),Dn=Ot;jn--;)Dn=tn[Dn],x[--Er]=255&Dn,Dn>>=8;$t!==null&&ve<4096&&(tn[ve++]=$t<<8|bn,ve>=Ee+1&&Be<12&&(++Be,Ee=Ee<<1|1)),$t=on}else ve=we+1,Ee=(1<<(Be=re+1))-1,$t=null}return ht!==te&&Pa.log("Warning, gif stream shorter than expected."),x}function Wm(y){var E,x,te,re,ae,we=Math.floor,ve=new Array(64),Be=new Array(64),Ee=new Array(64),Ne=new Array(64),et=new Array(65535),ht=new Array(65535),De=new Array(64),tn=new Array(64),$t=[],on=0,Ot=7,jn=new Array(64),Dn=new Array(64),bn=new Array(64),Er=new Array(256),Jr=new Array(2048),Qr=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],qn=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],Bn=[0,1,2,3,4,5,6,7,8,9,10,11],ur=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],Ut=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],an=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],Hn=[0,1,2,3,4,5,6,7,8,9,10,11],Pn=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],Ir=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function Tr(xt,wn){for(var On=0,Gn=0,or=new Array,yr=1;yr<=16;yr++){for(var Mr=1;Mr<=xt[yr];Mr++)or[wn[Gn]]=[],or[wn[Gn]][0]=On,or[wn[Gn]][1]=yr,Gn++,On++;On*=2}return or}function _r(xt){for(var wn=xt[0],On=xt[1]-1;On>=0;)wn&1<<On&&(on|=1<<Ot),On--,--Ot<0&&(on==255?(Br(255),Br(0)):Br(on),Ot=7,on=0)}function Br(xt){$t.push(xt)}function Kr(xt){Br(xt>>8&255),Br(255&xt)}function Si(xt,wn,On,Gn,or){for(var yr,Mr=or[0],Hr=or[240],oi=function(gi,ko){var no,Mo,Uo,is,Ta,oa,ka,Qa,ho,ca,xo=0;for(ho=0;ho<8;++ho){no=gi[xo],Mo=gi[xo+1],Uo=gi[xo+2],is=gi[xo+3],Ta=gi[xo+4],oa=gi[xo+5],ka=gi[xo+6];var fA=no+(Qa=gi[xo+7]),Ka=no-Qa,Sa=Mo+ka,Fa=Mo-ka,Ns=Uo+oa,No=Uo-oa,ms=is+Ta,Go=is-Ta,aa=fA+ms,Ps=fA-ms,La=Sa+Ns,jo=Sa-Ns;gi[xo]=aa+La,gi[xo+4]=aa-La;var os=.707106781*(jo+Ps);gi[xo+2]=Ps+os,gi[xo+6]=Ps-os;var Nh=.382683433*((aa=Go+No)-(jo=Fa+Ka)),wl=.5411961*aa+Nh,kf=1.306562965*jo+Nh,Jc=.707106781*(La=No+Fa),zo=Ka+Jc,Hf=Ka-Jc;gi[xo+5]=Hf+wl,gi[xo+3]=Hf-wl,gi[xo+1]=zo+kf,gi[xo+7]=zo-kf,xo+=8}for(xo=0,ho=0;ho<8;++ho){no=gi[xo],Mo=gi[xo+8],Uo=gi[xo+16],is=gi[xo+24],Ta=gi[xo+32],oa=gi[xo+40],ka=gi[xo+48];var Rf=no+(Qa=gi[xo+56]),Mu=no-Qa,_u=Mo+ka,Xs=Mo-ka,VA=Uo+oa,il=Uo-oa,Ph=is+Ta,Nd=is-Ta,hc=Rf+Ph,qc=Rf-Ph,pc=_u+VA,gc=_u-VA;gi[xo]=hc+pc,gi[xo+32]=hc-pc;var ku=.707106781*(gc+qc);gi[xo+16]=qc+ku,gi[xo+48]=qc-ku;var Th=.382683433*((hc=Nd+il)-(gc=Xs+Mu)),ef=.5411961*hc+Th,Qh=1.306562965*gc+Th,Mp=.707106781*(pc=il+Xs),_p=Mu+Mp,kp=Mu-Mp;gi[xo+40]=kp+ef,gi[xo+24]=kp-ef,gi[xo+8]=_p+Qh,gi[xo+56]=_p-Qh,xo++}for(ho=0;ho<64;++ho)ca=gi[ho]*ko[ho],De[ho]=ca>0?ca+.5|0:ca-.5|0;return De}(xt,wn),wi=0;wi<64;++wi)tn[Qr[wi]]=oi[wi];var Ri=tn[0]-On;On=tn[0],Ri==0?_r(Gn[0]):(_r(Gn[ht[yr=32767+Ri]]),_r(et[yr]));for(var _i=63;_i>0&&tn[_i]==0;)_i--;if(_i==0)return _r(Mr),On;for(var Io,sn=1;sn<=_i;){for(var ji=sn;tn[sn]==0&&sn<=_i;)++sn;var Ca=sn-ji;if(Ca>=16){Io=Ca>>4;for(var _o=1;_o<=Io;++_o)_r(Hr);Ca&=15}yr=32767+tn[sn],_r(or[(Ca<<4)+ht[yr]]),_r(et[yr]),sn++}return _i!=63&&_r(Mr),On}function li(xt){xt=Math.min(Math.max(xt,1),100),ae!=xt&&(function(wn){for(var On=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],Gn=0;Gn<64;Gn++){var or=we((On[Gn]*wn+50)/100);or=Math.min(Math.max(or,1),255),ve[Qr[Gn]]=or}for(var yr=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],Mr=0;Mr<64;Mr++){var Hr=we((yr[Mr]*wn+50)/100);Hr=Math.min(Math.max(Hr,1),255),Be[Qr[Mr]]=Hr}for(var oi=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],wi=0,Ri=0;Ri<8;Ri++)for(var _i=0;_i<8;_i++)Ee[wi]=1/(ve[Qr[wi]]*oi[Ri]*oi[_i]*8),Ne[wi]=1/(Be[Qr[wi]]*oi[Ri]*oi[_i]*8),wi++}(xt<50?Math.floor(5e3/xt):Math.floor(200-2*xt)),ae=xt)}this.encode=function(xt,wn){wn&&li(wn),$t=new Array,on=0,Ot=7,Kr(65496),Kr(65504),Kr(16),Br(74),Br(70),Br(73),Br(70),Br(0),Br(1),Br(1),Br(0),Kr(1),Kr(1),Br(0),Br(0),function(){Kr(65499),Kr(132),Br(0);for(var Mo=0;Mo<64;Mo++)Br(ve[Mo]);Br(1);for(var Uo=0;Uo<64;Uo++)Br(Be[Uo])}(),function(Mo,Uo){Kr(65472),Kr(17),Br(8),Kr(Uo),Kr(Mo),Br(3),Br(1),Br(17),Br(0),Br(2),Br(17),Br(1),Br(3),Br(17),Br(1)}(xt.width,xt.height),function(){Kr(65476),Kr(418),Br(0);for(var Mo=0;Mo<16;Mo++)Br(qn[Mo+1]);for(var Uo=0;Uo<=11;Uo++)Br(Bn[Uo]);Br(16);for(var is=0;is<16;is++)Br(ur[is+1]);for(var Ta=0;Ta<=161;Ta++)Br(Ut[Ta]);Br(1);for(var oa=0;oa<16;oa++)Br(an[oa+1]);for(var ka=0;ka<=11;ka++)Br(Hn[ka]);Br(17);for(var Qa=0;Qa<16;Qa++)Br(Pn[Qa+1]);for(var ho=0;ho<=161;ho++)Br(Ir[ho])}(),Kr(65498),Kr(12),Br(3),Br(1),Br(0),Br(2),Br(17),Br(3),Br(17),Br(0),Br(63),Br(0);var On=0,Gn=0,or=0;on=0,Ot=7,this.encode.displayName="_encode_";for(var yr,Mr,Hr,oi,wi,Ri,_i,Io,sn,ji=xt.data,Ca=xt.width,_o=xt.height,gi=4*Ca,ko=0;ko<_o;){for(yr=0;yr<gi;){for(wi=gi*ko+yr,_i=-1,Io=0,sn=0;sn<64;sn++)Ri=wi+(Io=sn>>3)*gi+(_i=4*(7&sn)),ko+Io>=_o&&(Ri-=gi*(ko+1+Io-_o)),yr+_i>=gi&&(Ri-=yr+_i-gi+4),Mr=ji[Ri++],Hr=ji[Ri++],oi=ji[Ri++],jn[sn]=(Jr[Mr]+Jr[Hr+256|0]+Jr[oi+512|0]>>16)-128,Dn[sn]=(Jr[Mr+768|0]+Jr[Hr+1024|0]+Jr[oi+1280|0]>>16)-128,bn[sn]=(Jr[Mr+1280|0]+Jr[Hr+1536|0]+Jr[oi+1792|0]>>16)-128;On=Si(jn,Ee,On,E,te),Gn=Si(Dn,Ne,Gn,x,re),or=Si(bn,Ne,or,x,re),yr+=32}ko+=8}if(Ot>=0){var no=[];no[1]=Ot+1,no[0]=(1<<Ot+1)-1,_r(no)}return Kr(65497),new Uint8Array($t)},y=y||50,function(){for(var xt=String.fromCharCode,wn=0;wn<256;wn++)Er[wn]=xt(wn)}(),E=Tr(qn,Bn),x=Tr(an,Hn),te=Tr(ur,Ut),re=Tr(Pn,Ir),function(){for(var xt=1,wn=2,On=1;On<=15;On++){for(var Gn=xt;Gn<wn;Gn++)ht[32767+Gn]=On,et[32767+Gn]=[],et[32767+Gn][1]=On,et[32767+Gn][0]=Gn;for(var or=-(wn-1);or<=-xt;or++)ht[32767+or]=On,et[32767+or]=[],et[32767+or][1]=On,et[32767+or][0]=wn-1+or;xt<<=1,wn<<=1}}(),function(){for(var xt=0;xt<256;xt++)Jr[xt]=19595*xt,Jr[xt+256|0]=38470*xt,Jr[xt+512|0]=7471*xt+32768,Jr[xt+768|0]=-11059*xt,Jr[xt+1024|0]=-21709*xt,Jr[xt+1280|0]=32768*xt+8421375,Jr[xt+1536|0]=-27439*xt,Jr[xt+1792|0]=-5329*xt}(),li(y)}function fc(y,E){if(this.pos=0,this.buffer=y,this.datav=new DataView(y.buffer),this.is_with_alpha=!!E,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function k0(y){function E(Bn){if(!Bn)throw Error("assert :P")}function x(Bn,ur,Ut){for(var an=0;4>an;an++)if(Bn[ur+an]!=Ut.charCodeAt(an))return!0;return!1}function te(Bn,ur,Ut,an,Hn){for(var Pn=0;Pn<Hn;Pn++)Bn[ur+Pn]=Ut[an+Pn]}function re(Bn,ur,Ut,an){for(var Hn=0;Hn<an;Hn++)Bn[ur+Hn]=Ut}function ae(Bn){return new Int32Array(Bn)}function we(Bn,ur){for(var Ut=[],an=0;an<Bn;an++)Ut.push(new ur);return Ut}function ve(Bn,ur){var Ut=[];return function an(Hn,Pn,Ir){for(var Tr=Ir[Pn],_r=0;_r<Tr&&(Hn.push(Ir.length>Pn+1?[]:new ur),!(Ir.length<Pn+1));_r++)an(Hn[_r],Pn+1,Ir)}(Ut,0,Bn),Ut}var Be=function(){var Bn=this;function ur(se,ge){for(var Oe=1<<ge-1>>>0;se&Oe;)Oe>>>=1;return Oe?(se&Oe-1)+Oe:se}function Ut(se,ge,Oe,_e,st){E(!(_e%Oe));do se[ge+(_e-=Oe)]=st;while(0<_e)}function an(se,ge,Oe,_e,st){if(E(2328>=st),512>=st)var mt=ae(512);else if((mt=ae(st))==null)return 0;return function(bt,Tt,Wt,cn,Yn,Cr){var fn,nr,fr=Tt,Yr=1<<Wt,br=ae(16),qr=ae(16);for(E(Yn!=0),E(cn!=null),E(bt!=null),E(0<Wt),nr=0;nr<Yn;++nr){if(15<cn[nr])return 0;++br[cn[nr]]}if(br[0]==Yn)return 0;for(qr[1]=0,fn=1;15>fn;++fn){if(br[fn]>1<<fn)return 0;qr[fn+1]=qr[fn]+br[fn]}for(nr=0;nr<Yn;++nr)fn=cn[nr],0<cn[nr]&&(Cr[qr[fn]++]=nr);if(qr[15]==1)return(cn=new Hn).g=0,cn.value=Cr[0],Ut(bt,fr,1,Yr,cn),Yr;var ii,yi=-1,ci=Yr-1,wo=0,qi=1,pa=1,so=1<<Wt;for(nr=0,fn=1,Yn=2;fn<=Wt;++fn,Yn<<=1){if(qi+=pa<<=1,0>(pa-=br[fn]))return 0;for(;0<br[fn];--br[fn])(cn=new Hn).g=fn,cn.value=Cr[nr++],Ut(bt,fr+wo,Yn,so,cn),wo=ur(wo,fn)}for(fn=Wt+1,Yn=2;15>=fn;++fn,Yn<<=1){if(qi+=pa<<=1,0>(pa-=br[fn]))return 0;for(;0<br[fn];--br[fn]){if(cn=new Hn,(wo&ci)!=yi){for(fr+=so,ii=1<<(yi=fn)-Wt;15>yi&&!(0>=(ii-=br[yi]));)++yi,ii<<=1;Yr+=so=1<<(ii=yi-Wt),bt[Tt+(yi=wo&ci)].g=ii+Wt,bt[Tt+yi].value=fr-Tt-yi}cn.g=fn-Wt,cn.value=Cr[nr++],Ut(bt,fr+(wo>>Wt),Yn,so,cn),wo=ur(wo,fn)}}return qi!=2*qr[15]-1?0:Yr}(se,ge,Oe,_e,st,mt)}function Hn(){this.value=this.g=0}function Pn(){this.value=this.g=0}function Ir(){this.G=we(5,Hn),this.H=ae(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=we(Vh,Pn)}function Tr(se,ge,Oe,_e){E(se!=null),E(ge!=null),E(2147483648>_e),se.Ca=254,se.I=0,se.b=-8,se.Ka=0,se.oa=ge,se.pa=Oe,se.Jd=ge,se.Yc=Oe+_e,se.Zc=4<=_e?Oe+_e-4+1:Oe,Mr(se)}function _r(se,ge){for(var Oe=0;0<ge--;)Oe|=oi(se,128)<<ge;return Oe}function Br(se,ge){var Oe=_r(se,ge);return Hr(se)?-Oe:Oe}function Kr(se,ge,Oe,_e){var st,mt=0;for(E(se!=null),E(ge!=null),E(4294967288>_e),se.Sb=_e,se.Ra=0,se.u=0,se.h=0,4<_e&&(_e=4),st=0;st<_e;++st)mt+=ge[Oe+st]<<8*st;se.Ra=mt,se.bb=_e,se.oa=ge,se.pa=Oe}function Si(se){for(;8<=se.u&&se.bb<se.Sb;)se.Ra>>>=8,se.Ra+=se.oa[se.pa+se.bb]<<Md-8>>>0,++se.bb,se.u-=8;Gn(se)&&(se.h=1,se.u=0)}function li(se,ge){if(E(0<=ge),!se.h&&ge<=uu){var Oe=On(se)&lu[ge];return se.u+=ge,Si(se),Oe}return se.h=1,se.u=0}function xt(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function wn(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function On(se){return se.Ra>>>(se.u&Md-1)>>>0}function Gn(se){return E(se.bb<=se.Sb),se.h||se.bb==se.Sb&&se.u>Md}function or(se,ge){se.u=ge,se.h=Gn(se)}function yr(se){se.u>=Jf&&(E(se.u>=Jf),Si(se))}function Mr(se){E(se!=null&&se.oa!=null),se.pa<se.Zc?(se.I=(se.oa[se.pa++]|se.I<<8)>>>0,se.b+=8):(E(se!=null&&se.oa!=null),se.pa<se.Yc?(se.b+=8,se.I=se.oa[se.pa++]|se.I<<8):se.Ka?se.b=0:(se.I<<=8,se.b+=8,se.Ka=1))}function Hr(se){return _r(se,1)}function oi(se,ge){var Oe=se.Ca;0>se.b&&Mr(se);var _e=se.b,st=Oe*ge>>>8,mt=(se.I>>>_e>st)+0;for(mt?(Oe-=st,se.I-=st+1<<_e>>>0):Oe=st+1,_e=Oe,st=0;256<=_e;)st+=8,_e>>=8;return _e=7^st+_d[_e],se.b-=_e,se.Ca=(Oe<<_e)-1,mt}function wi(se,ge,Oe){se[ge+0]=Oe>>24&255,se[ge+1]=Oe>>16&255,se[ge+2]=Oe>>8&255,se[ge+3]=255&Oe}function Ri(se,ge){return se[ge+0]|se[ge+1]<<8}function _i(se,ge){return Ri(se,ge)|se[ge+2]<<16}function Io(se,ge){return Ri(se,ge)|Ri(se,ge+2)<<16}function sn(se,ge){var Oe=1<<ge;return E(se!=null),E(0<ge),se.X=ae(Oe),se.X==null?0:(se.Mb=32-ge,se.Xa=ge,1)}function ji(se,ge){E(se!=null),E(ge!=null),E(se.Xa==ge.Xa),te(ge.X,0,se.X,0,1<<ge.Xa)}function Ca(){this.X=[],this.Xa=this.Mb=0}function _o(se,ge,Oe,_e){E(Oe!=null),E(_e!=null);var st=Oe[0],mt=_e[0];return st==0&&(st=(se*mt+ge/2)/ge),mt==0&&(mt=(ge*st+se/2)/se),0>=st||0>=mt?0:(Oe[0]=st,_e[0]=mt,1)}function gi(se,ge){return se+(1<<ge)-1>>>ge}function ko(se,ge){return((4278255360&se)+(4278255360&ge)>>>0&4278255360)+((16711935&se)+(16711935&ge)>>>0&16711935)>>>0}function no(se,ge){Bn[ge]=function(Oe,_e,st,mt,bt,Tt,Wt){var cn;for(cn=0;cn<bt;++cn){var Yn=Bn[se](Tt[Wt+cn-1],st,mt+cn);Tt[Wt+cn]=ko(Oe[_e+cn],Yn)}}}function Mo(){this.ud=this.hd=this.jd=0}function Uo(se,ge){return((4278124286&(se^ge))>>>1)+(se&ge)>>>0}function is(se){return 0<=se&&256>se?se:0>se?0:255<se?255:void 0}function Ta(se,ge){return is(se+(se-ge+.5>>1))}function oa(se,ge,Oe){return Math.abs(ge-Oe)-Math.abs(se-Oe)}function ka(se,ge,Oe,_e,st,mt,bt){for(_e=mt[bt-1],Oe=0;Oe<st;++Oe)mt[bt+Oe]=_e=ko(se[ge+Oe],_e)}function Qa(se,ge,Oe,_e,st){var mt;for(mt=0;mt<Oe;++mt){var bt=se[ge+mt],Tt=bt>>8&255,Wt=16711935&(Wt=(Wt=16711935&bt)+((Tt<<16)+Tt));_e[st+mt]=(4278255360&bt)+Wt>>>0}}function ho(se,ge){ge.jd=255&se,ge.hd=se>>8&255,ge.ud=se>>16&255}function ca(se,ge,Oe,_e,st,mt){var bt;for(bt=0;bt<_e;++bt){var Tt=ge[Oe+bt],Wt=Tt>>>8,cn=Tt,Yn=255&(Yn=(Yn=Tt>>>16)+((se.jd<<24>>24)*(Wt<<24>>24)>>>5));cn=255&(cn=(cn+=(se.hd<<24>>24)*(Wt<<24>>24)>>>5)+((se.ud<<24>>24)*(Yn<<24>>24)>>>5)),st[mt+bt]=(4278255360&Tt)+(Yn<<16)+cn}}function xo(se,ge,Oe,_e,st){Bn[ge]=function(mt,bt,Tt,Wt,cn,Yn,Cr,fn,nr){for(Wt=Cr;Wt<fn;++Wt)for(Cr=0;Cr<nr;++Cr)cn[Yn++]=st(Tt[_e(mt[bt++])])},Bn[se]=function(mt,bt,Tt,Wt,cn,Yn,Cr){var fn=8>>mt.b,nr=mt.Ea,fr=mt.K[0],Yr=mt.w;if(8>fn)for(mt=(1<<mt.b)-1,Yr=(1<<fn)-1;bt<Tt;++bt){var br,qr=0;for(br=0;br<nr;++br)br&mt||(qr=_e(Wt[cn++])),Yn[Cr++]=st(fr[qr&Yr]),qr>>=fn}else Bn["VP8LMapColor"+Oe](Wt,cn,fr,Yr,Yn,Cr,bt,Tt,nr)}}function fA(se,ge,Oe,_e,st){for(Oe=ge+Oe;ge<Oe;){var mt=se[ge++];_e[st++]=mt>>16&255,_e[st++]=mt>>8&255,_e[st++]=255&mt}}function Ka(se,ge,Oe,_e,st){for(Oe=ge+Oe;ge<Oe;){var mt=se[ge++];_e[st++]=mt>>16&255,_e[st++]=mt>>8&255,_e[st++]=255&mt,_e[st++]=mt>>24&255}}function Sa(se,ge,Oe,_e,st){for(Oe=ge+Oe;ge<Oe;){var mt=(bt=se[ge++])>>16&240|bt>>12&15,bt=240&bt|bt>>28&15;_e[st++]=mt,_e[st++]=bt}}function Fa(se,ge,Oe,_e,st){for(Oe=ge+Oe;ge<Oe;){var mt=(bt=se[ge++])>>16&248|bt>>13&7,bt=bt>>5&224|bt>>3&31;_e[st++]=mt,_e[st++]=bt}}function Ns(se,ge,Oe,_e,st){for(Oe=ge+Oe;ge<Oe;){var mt=se[ge++];_e[st++]=255&mt,_e[st++]=mt>>8&255,_e[st++]=mt>>16&255}}function No(se,ge,Oe,_e,st,mt){if(mt==0)for(Oe=ge+Oe;ge<Oe;)wi(_e,((mt=se[ge++])[0]>>24|mt[1]>>8&65280|mt[2]<<8&16711680|mt[3]<<24)>>>0),st+=32;else te(_e,st,se,ge,Oe)}function ms(se,ge){Bn[ge][0]=Bn[se+"0"],Bn[ge][1]=Bn[se+"1"],Bn[ge][2]=Bn[se+"2"],Bn[ge][3]=Bn[se+"3"],Bn[ge][4]=Bn[se+"4"],Bn[ge][5]=Bn[se+"5"],Bn[ge][6]=Bn[se+"6"],Bn[ge][7]=Bn[se+"7"],Bn[ge][8]=Bn[se+"8"],Bn[ge][9]=Bn[se+"9"],Bn[ge][10]=Bn[se+"10"],Bn[ge][11]=Bn[se+"11"],Bn[ge][12]=Bn[se+"12"],Bn[ge][13]=Bn[se+"13"],Bn[ge][14]=Bn[se+"0"],Bn[ge][15]=Bn[se+"0"]}function Go(se){return se==u0||se==c0||se==Im||se==f0}function aa(){this.eb=[],this.size=this.A=this.fb=0}function Ps(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function La(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new aa,this.f.kb=new Ps,this.sd=null}function jo(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function os(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function Nh(se){return alert("todo:WebPSamplerProcessPlane"),se.T}function wl(se,ge){var Oe=se.T,_e=ge.ba.f.RGBA,st=_e.eb,mt=_e.fb+se.ka*_e.A,bt=Wu[ge.ba.S],Tt=se.y,Wt=se.O,cn=se.f,Yn=se.N,Cr=se.ea,fn=se.W,nr=ge.cc,fr=ge.dc,Yr=ge.Mc,br=ge.Nc,qr=se.ka,ii=se.ka+se.T,yi=se.U,ci=yi+1>>1;for(qr==0?bt(Tt,Wt,null,null,cn,Yn,Cr,fn,cn,Yn,Cr,fn,st,mt,null,null,yi):(bt(ge.ec,ge.fc,Tt,Wt,nr,fr,Yr,br,cn,Yn,Cr,fn,st,mt-_e.A,st,mt,yi),++Oe);qr+2<ii;qr+=2)nr=cn,fr=Yn,Yr=Cr,br=fn,Yn+=se.Rc,fn+=se.Rc,mt+=2*_e.A,bt(Tt,(Wt+=2*se.fa)-se.fa,Tt,Wt,nr,fr,Yr,br,cn,Yn,Cr,fn,st,mt-_e.A,st,mt,yi);return Wt+=se.fa,se.j+ii<se.o?(te(ge.ec,ge.fc,Tt,Wt,yi),te(ge.cc,ge.dc,cn,Yn,ci),te(ge.Mc,ge.Nc,Cr,fn,ci),Oe--):1&ii||bt(Tt,Wt,null,null,cn,Yn,Cr,fn,cn,Yn,Cr,fn,st,mt+_e.A,null,null,yi),Oe}function kf(se,ge,Oe){var _e=se.F,st=[se.J];if(_e!=null){var mt=se.U,bt=ge.ba.S,Tt=bt==Fm||bt==Im;ge=ge.ba.f.RGBA;var Wt=[0],cn=se.ka;Wt[0]=se.T,se.Kb&&(cn==0?--Wt[0]:(--cn,st[0]-=se.width),se.j+se.ka+se.T==se.o&&(Wt[0]=se.o-se.j-cn));var Yn=ge.eb;cn=ge.fb+cn*ge.A,se=X0(_e,st[0],se.width,mt,Wt,Yn,cn+(Tt?0:3),ge.A),E(Oe==Wt),se&&Go(bt)&&Kg(Yn,cn,Tt,mt,Wt,ge.A)}return 0}function Jc(se){var ge=se.ma,Oe=ge.ba.S,_e=11>Oe,st=Oe==Em||Oe==Sm||Oe==Fm||Oe==l0||Oe==12||Go(Oe);if(ge.memory=null,ge.Ib=null,ge.Jb=null,ge.Nd=null,!Qg(ge.Oa,se,st?11:12))return 0;if(st&&Go(Oe)&&Ng(),se.da)alert("todo:use_scaling");else{if(_e){if(ge.Ib=Nh,se.Kb){if(Oe=se.U+1>>1,ge.memory=ae(se.U+2*Oe),ge.memory==null)return 0;ge.ec=ge.memory,ge.fc=0,ge.cc=ge.ec,ge.dc=ge.fc+se.U,ge.Mc=ge.cc,ge.Nc=ge.dc+Oe,ge.Ib=wl,Ng()}}else alert("todo:EmitYUV");st&&(ge.Jb=kf,_e&&vc())}if(_e&&!dv){for(se=0;256>se;++se)f1[se]=89858*(se-128)+Um>>Lm,p1[se]=-22014*(se-128)+Um,h1[se]=-45773*(se-128),d1[se]=113618*(se-128)+Um>>Lm;for(se=Gg;se<p0;++se)ge=76283*(se-16)+Um>>Lm,g1[se-Gg]=tf(ge,255),m1[se-Gg]=tf(ge+8>>4,15);dv=1}return 1}function zo(se){var ge=se.ma,Oe=se.U,_e=se.T;return E(!(1&se.ka)),0>=Oe||0>=_e?0:(Oe=ge.Ib(se,ge),ge.Jb!=null&&ge.Jb(se,ge,Oe),ge.Dc+=Oe,1)}function Hf(se){se.ma.memory=null}function Rf(se,ge,Oe,_e){return li(se,8)!=47?0:(ge[0]=li(se,14)+1,Oe[0]=li(se,14)+1,_e[0]=li(se,1),li(se,3)!=0?0:!se.h)}function Mu(se,ge){if(4>se)return se+1;var Oe=se-2>>1;return(2+(1&se)<<Oe)+li(ge,Oe)+1}function _u(se,ge){return 120<ge?ge-120:1<=(Oe=((Oe=Jv[ge-1])>>4)*se+(8-(15&Oe)))?Oe:1;var Oe}function Xs(se,ge,Oe){var _e=On(Oe),st=se[ge+=255&_e].g-8;return 0<st&&(or(Oe,Oe.u+8),_e=On(Oe),ge+=se[ge].value,ge+=_e&(1<<st)-1),or(Oe,Oe.u+se[ge].g),se[ge].value}function VA(se,ge,Oe){return Oe.g+=se.g,Oe.value+=se.value<<ge>>>0,E(8>=Oe.g),se.g}function il(se,ge,Oe){var _e=se.xc;return E((ge=_e==0?0:se.vc[se.md*(Oe>>_e)+(ge>>_e)])<se.Wb),se.Ya[ge]}function Ph(se,ge,Oe,_e){var st=se.ab,mt=se.c*ge,bt=se.C;ge=bt+ge;var Tt=Oe,Wt=_e;for(_e=se.Ta,Oe=se.Ua;0<st--;){var cn=se.gc[st],Yn=bt,Cr=ge,fn=Tt,nr=Wt,fr=(Wt=_e,Tt=Oe,cn.Ea);switch(E(Yn<Cr),E(Cr<=cn.nc),cn.hc){case 2:dA(fn,nr,(Cr-Yn)*fr,Wt,Tt);break;case 0:var Yr=Yn,br=Cr,qr=Wt,ii=Tt,yi=(so=cn).Ea;Yr==0&&(_g(fn,nr,null,null,1,qr,ii),ka(fn,nr+1,0,0,yi-1,qr,ii+1),nr+=yi,ii+=yi,++Yr);for(var ci=1<<so.b,wo=ci-1,qi=gi(yi,so.b),pa=so.K,so=so.w+(Yr>>so.b)*qi;Yr<br;){var Ha=pa,TA=so,ga=1;for(Vp(fn,nr,qr,ii-yi,1,qr,ii);ga<yi;){var Ao=(ga&~wo)+ci;Ao>yi&&(Ao=yi),(0,Hg[Ha[TA++]>>8&15])(fn,nr+ +ga,qr,ii+ga-yi,Ao-ga,qr,ii+ga),ga=Ao}nr+=yi,ii+=yi,++Yr&wo||(so+=qi)}Cr!=cn.nc&&te(Wt,Tt-fr,Wt,Tt+(Cr-Yn-1)*fr,fr);break;case 1:for(fr=fn,br=nr,yi=(fn=cn.Ea)-(ii=fn&~(qr=(nr=1<<cn.b)-1)),Yr=gi(fn,cn.b),ci=cn.K,cn=cn.w+(Yn>>cn.b)*Yr;Yn<Cr;){for(wo=ci,qi=cn,pa=new Mo,so=br+ii,Ha=br+fn;br<so;)ho(wo[qi++],pa),Rg(pa,fr,br,nr,Wt,Tt),br+=nr,Tt+=nr;br<Ha&&(ho(wo[qi++],pa),Rg(pa,fr,br,yi,Wt,Tt),br+=yi,Tt+=yi),++Yn&qr||(cn+=Yr)}break;case 3:if(fn==Wt&&nr==Tt&&0<cn.b){for(br=Wt,fn=fr=Tt+(Cr-Yn)*fr-(ii=(Cr-Yn)*gi(cn.Ea,cn.b)),nr=Wt,qr=Tt,Yr=[],ii=(yi=ii)-1;0<=ii;--ii)Yr[ii]=nr[qr+ii];for(ii=yi-1;0<=ii;--ii)br[fn+ii]=Yr[ii];bm(cn,Yn,Cr,Wt,fr,Wt,Tt)}else bm(cn,Yn,Cr,fn,nr,Wt,Tt)}Tt=_e,Wt=Oe}Wt!=Oe&&te(_e,Oe,Tt,Wt,mt)}function Nd(se,ge){var Oe=se.V,_e=se.Ba+se.c*se.C,st=ge-se.C;if(E(ge<=se.l.o),E(16>=st),0<st){var mt=se.l,bt=se.Ta,Tt=se.Ua,Wt=mt.width;if(Ph(se,st,Oe,_e),st=Tt=[Tt],E((Oe=se.C)<(_e=ge)),E(mt.v<mt.va),_e>mt.o&&(_e=mt.o),Oe<mt.j){var cn=mt.j-Oe;Oe=mt.j,st[0]+=cn*Wt}if(Oe>=_e?Oe=0:(st[0]+=4*mt.v,mt.ka=Oe-mt.j,mt.U=mt.va-mt.v,mt.T=_e-Oe,Oe=1),Oe){if(Tt=Tt[0],11>(Oe=se.ca).S){var Yn=Oe.f.RGBA,Cr=(_e=Oe.S,st=mt.U,mt=mt.T,cn=Yn.eb,Yn.A),fn=mt;for(Yn=Yn.fb+se.Ma*Yn.A;0<fn--;){var nr=bt,fr=Tt,Yr=st,br=cn,qr=Yn;switch(_e){case xm:jg(nr,fr,Yr,br,qr);break;case Em:kd(nr,fr,Yr,br,qr);break;case u0:kd(nr,fr,Yr,br,qr),Kg(br,qr,0,Yr,1,0);break;case rv:Zh(nr,fr,Yr,br,qr);break;case Sm:No(nr,fr,Yr,br,qr,1);break;case c0:No(nr,fr,Yr,br,qr,1),Kg(br,qr,0,Yr,1,0);break;case Fm:No(nr,fr,Yr,br,qr,0);break;case Im:No(nr,fr,Yr,br,qr,0),Kg(br,qr,1,Yr,1,0);break;case l0:Hd(nr,fr,Yr,br,qr);break;case f0:Hd(nr,fr,Yr,br,qr),$0(br,qr,Yr,1,0);break;case iv:Rd(nr,fr,Yr,br,qr);break;default:E(0)}Tt+=Wt,Yn+=Cr}se.Ma+=mt}else alert("todo:EmitRescaledRowsYUVA");E(se.Ma<=Oe.height)}}se.C=ge,E(se.C<=se.i)}function hc(se){var ge;if(0<se.ua)return 0;for(ge=0;ge<se.Wb;++ge){var Oe=se.Ya[ge].G,_e=se.Ya[ge].H;if(0<Oe[1][_e[1]+0].g||0<Oe[2][_e[2]+0].g||0<Oe[3][_e[3]+0].g)return 0}return 1}function qc(se,ge,Oe,_e,st,mt){if(se.Z!=0){var bt=se.qd,Tt=se.rd;for(E(Kd[se.Z]!=null);ge<Oe;++ge)Kd[se.Z](bt,Tt,_e,st,_e,st,mt),bt=_e,Tt=st,st+=mt;se.qd=bt,se.rd=Tt}}function pc(se,ge){var Oe=se.l.ma,_e=Oe.Z==0||Oe.Z==1?se.l.j:se.C;if(_e=se.C<_e?_e:se.C,E(ge<=se.l.o),ge>_e){var st=se.l.width,mt=Oe.ca,bt=Oe.tb+st*_e,Tt=se.V,Wt=se.Ba+se.c*_e,cn=se.gc;E(se.ab==1),E(cn[0].hc==3),af(cn[0],_e,ge,Tt,Wt,mt,bt),qc(Oe,_e,ge,mt,bt,st)}se.C=se.Ma=ge}function gc(se,ge,Oe,_e,st,mt,bt){var Tt=se.$/_e,Wt=se.$%_e,cn=se.m,Yn=se.s,Cr=Oe+se.$,fn=Cr;st=Oe+_e*st;var nr=Oe+_e*mt,fr=280+Yn.ua,Yr=se.Pb?Tt:16777216,br=0<Yn.ua?Yn.Wa:null,qr=Yn.wc,ii=Cr<nr?il(Yn,Wt,Tt):null;E(se.C<mt),E(nr<=st);var yi=!1;e:for(;;){for(;yi||Cr<nr;){var ci=0;if(Tt>=Yr){var wo=Cr-Oe;E((Yr=se).Pb),Yr.wd=Yr.m,Yr.xd=wo,0<Yr.s.ua&&ji(Yr.s.Wa,Yr.s.vb),Yr=Tt+e1}if(Wt&qr||(ii=il(Yn,Wt,Tt)),E(ii!=null),ii.Qb&&(ge[Cr]=ii.qb,yi=!0),!yi)if(yr(cn),ii.jc){ci=cn,wo=ge;var qi=Cr,pa=ii.pd[On(ci)&Vh-1];E(ii.jc),256>pa.g?(or(ci,ci.u+pa.g),wo[qi]=pa.value,ci=0):(or(ci,ci.u+pa.g-256),E(256<=pa.value),ci=pa.value),ci==0&&(yi=!0)}else ci=Xs(ii.G[0],ii.H[0],cn);if(cn.h)break;if(yi||256>ci){if(!yi)if(ii.nd)ge[Cr]=(ii.qb|ci<<8)>>>0;else{if(yr(cn),yi=Xs(ii.G[1],ii.H[1],cn),yr(cn),wo=Xs(ii.G[2],ii.H[2],cn),qi=Xs(ii.G[3],ii.H[3],cn),cn.h)break;ge[Cr]=(qi<<24|yi<<16|ci<<8|wo)>>>0}if(yi=!1,++Cr,++Wt>=_e&&(Wt=0,++Tt,bt!=null&&Tt<=mt&&!(Tt%16)&&bt(se,Tt),br!=null))for(;fn<Cr;)ci=ge[fn++],br.X[(506832829*ci&4294967295)>>>br.Mb]=ci}else if(280>ci){if(ci=Mu(ci-256,cn),wo=Xs(ii.G[4],ii.H[4],cn),yr(cn),wo=_u(_e,wo=Mu(wo,cn)),cn.h)break;if(Cr-Oe<wo||st-Cr<ci)break e;for(qi=0;qi<ci;++qi)ge[Cr+qi]=ge[Cr+qi-wo];for(Cr+=ci,Wt+=ci;Wt>=_e;)Wt-=_e,++Tt,bt!=null&&Tt<=mt&&!(Tt%16)&&bt(se,Tt);if(E(Cr<=st),Wt&qr&&(ii=il(Yn,Wt,Tt)),br!=null)for(;fn<Cr;)ci=ge[fn++],br.X[(506832829*ci&4294967295)>>>br.Mb]=ci}else{if(!(ci<fr))break e;for(yi=ci-280,E(br!=null);fn<Cr;)ci=ge[fn++],br.X[(506832829*ci&4294967295)>>>br.Mb]=ci;ci=Cr,E(!(yi>>>(wo=br).Xa)),ge[ci]=wo.X[yi],yi=!0}yi||E(cn.h==Gn(cn))}if(se.Pb&&cn.h&&Cr<st)E(se.m.h),se.a=5,se.m=se.wd,se.$=se.xd,0<se.s.ua&&ji(se.s.vb,se.s.Wa);else{if(cn.h)break e;bt!=null&&bt(se,Tt>mt?mt:Tt),se.a=0,se.$=Cr-Oe}return 1}return se.a=3,0}function ku(se){E(se!=null),se.vc=null,se.yc=null,se.Ya=null;var ge=se.Wa;ge!=null&&(ge.X=null),se.vb=null,E(se!=null)}function Th(){var se=new Yo;return se==null?null:(se.a=0,se.xb=sv,ms("Predictor","VP8LPredictors"),ms("Predictor","VP8LPredictors_C"),ms("PredictorAdd","VP8LPredictorsAdd"),ms("PredictorAdd","VP8LPredictorsAdd_C"),dA=Qa,Rg=ca,jg=fA,kd=Ka,Hd=Sa,Rd=Fa,Zh=Ns,Bn.VP8LMapColor32b=of,Bn.VP8LMapColor8b=kg,se)}function ef(se,ge,Oe,_e,st){var mt=1,bt=[se],Tt=[ge],Wt=_e.m,cn=_e.s,Yn=null,Cr=0;e:for(;;){if(Oe)for(;mt&&li(Wt,1);){var fn=bt,nr=Tt,fr=_e,Yr=1,br=fr.m,qr=fr.gc[fr.ab],ii=li(br,2);if(fr.Oc&1<<ii)mt=0;else{switch(fr.Oc|=1<<ii,qr.hc=ii,qr.Ea=fn[0],qr.nc=nr[0],qr.K=[null],++fr.ab,E(4>=fr.ab),ii){case 0:case 1:qr.b=li(br,3)+2,Yr=ef(gi(qr.Ea,qr.b),gi(qr.nc,qr.b),0,fr,qr.K),qr.K=qr.K[0];break;case 3:var yi,ci=li(br,8)+1,wo=16<ci?0:4<ci?1:2<ci?2:3;if(fn[0]=gi(qr.Ea,wo),qr.b=wo,yi=Yr=ef(ci,1,0,fr,qr.K)){var qi,pa=ci,so=qr,Ha=1<<(8>>so.b),TA=ae(Ha);if(TA==null)yi=0;else{var ga=so.K[0],Ao=so.w;for(TA[0]=so.K[0][0],qi=1;qi<1*pa;++qi)TA[qi]=ko(ga[Ao+qi],TA[qi-1]);for(;qi<4*Ha;++qi)TA[qi]=0;so.K[0]=null,so.K[0]=TA,yi=1}}Yr=yi;break;case 2:break;default:E(0)}mt=Yr}}if(bt=bt[0],Tt=Tt[0],mt&&li(Wt,1)&&!(mt=1<=(Cr=li(Wt,4))&&11>=Cr)){_e.a=3;break e}var Ni;if(Ni=mt)t:{var pA,sa,za,Fs=_e,sl=bt,Ql=Tt,Ys=Cr,bl=Oe,Ml=Fs.m,QA=Fs.s,Ga=[null],ss=1,Js=0,As=qv[Ys];n:for(;;){if(bl&&li(Ml,1)){var Al=li(Ml,3)+2,wc=gi(sl,Al),gA=gi(Ql,Al),Wl=wc*gA;if(!ef(wc,gA,0,Fs,Ga))break n;for(Ga=Ga[0],QA.xc=Al,pA=0;pA<Wl;++pA){var hs=Ga[pA]>>8&65535;Ga[pA]=hs,hs>=ss&&(ss=hs+1)}}if(Ml.h)break n;for(sa=0;5>sa;++sa){var MA=ov[sa];!sa&&0<Ys&&(MA+=1<<Ys),Js<MA&&(Js=MA)}var fu=we(ss*As,Hn),_l=ss,du=we(_l,Ir);if(du==null)var hu=null;else E(65536>=_l),hu=du;var Gl=ae(Js);if(hu==null||Gl==null||fu==null){Fs.a=1;break n}var pu=fu;for(pA=za=0;pA<ss;++pA){var ys=hu[pA],gu=ys.G,bc=ys.H,Xh=0,td=1,ll=0;for(sa=0;5>sa;++sa){MA=ov[sa],gu[sa]=pu,bc[sa]=za,!sa&&0<Ys&&(MA+=1<<Ys);i:{var Dm,g0=MA,Nm=Fs,Vg=Gl,w1=pu,b1=za,m0=0,Wd=Nm.m,B1=li(Wd,1);if(re(Vg,0,0,g0),B1){var C1=li(Wd,1)+1,x1=li(Wd,1),gv=li(Wd,x1==0?1:8);Vg[gv]=1,C1==2&&(Vg[gv=li(Wd,8)]=1);var Pm=1}else{var mv=ae(19),vv=li(Wd,4)+4;if(19<vv){Nm.a=3;var Tm=0;break i}for(Dm=0;Dm<vv;++Dm)mv[Yv[Dm]]=li(Wd,3);var v0=void 0,Zg=void 0,yv=Nm,E1=mv,Qm=g0,wv=Vg,y0=0,Gd=yv.m,bv=8,Bv=we(128,Hn);r:for(;an(Bv,0,7,E1,19);){if(li(Gd,1)){var S1=2+2*li(Gd,3);if((v0=2+li(Gd,S1))>Qm)break r}else v0=Qm;for(Zg=0;Zg<Qm&&v0--;){yr(Gd);var Cv=Bv[0+(127&On(Gd))];or(Gd,Gd.u+Cv.g);var $p=Cv.value;if(16>$p)wv[Zg++]=$p,$p!=0&&(bv=$p);else{var F1=$p==16,xv=$p-16,I1=$v[xv],Ev=li(Gd,Zv[xv])+I1;if(Zg+Ev>Qm)break r;for(var L1=F1?bv:0;0<Ev--;)wv[Zg++]=L1}}y0=1;break r}y0||(yv.a=3),Pm=y0}(Pm=Pm&&!Wd.h)&&(m0=an(w1,b1,8,Vg,g0)),Pm&&m0!=0?Tm=m0:(Nm.a=3,Tm=0)}if(Tm==0)break n;if(td&&Xv[sa]==1&&(td=pu[za].g==0),Xh+=pu[za].g,za+=Tm,3>=sa){var $g,w0=Gl[0];for($g=1;$g<MA;++$g)Gl[$g]>w0&&(w0=Gl[$g]);ll+=w0}}if(ys.nd=td,ys.Qb=0,td&&(ys.qb=(gu[3][bc[3]+0].value<<24|gu[1][bc[1]+0].value<<16|gu[2][bc[2]+0].value)>>>0,Xh==0&&256>gu[0][bc[0]+0].value&&(ys.Qb=1,ys.qb+=gu[0][bc[0]+0].value<<8)),ys.jc=!ys.Qb&&6>ll,ys.jc){var Mm,nd=ys;for(Mm=0;Mm<Vh;++Mm){var Vd=Mm,Zd=nd.pd[Vd],_m=nd.G[0][nd.H[0]+Vd];256<=_m.value?(Zd.g=_m.g+256,Zd.value=_m.value):(Zd.g=0,Zd.value=0,Vd>>=VA(_m,8,Zd),Vd>>=VA(nd.G[1][nd.H[1]+Vd],16,Zd),Vd>>=VA(nd.G[2][nd.H[2]+Vd],0,Zd),VA(nd.G[3][nd.H[3]+Vd],24,Zd))}}}QA.vc=Ga,QA.Wb=ss,QA.Ya=hu,QA.yc=fu,Ni=1;break t}Ni=0}if(!(mt=Ni)){_e.a=3;break e}if(0<Cr){if(cn.ua=1<<Cr,!sn(cn.Wa,Cr)){_e.a=1,mt=0;break e}}else cn.ua=0;var b0=_e,Sv=bt,U1=Tt,B0=b0.s,C0=B0.xc;if(b0.c=Sv,b0.i=U1,B0.md=gi(Sv,C0),B0.wc=C0==0?-1:(1<<C0)-1,Oe){_e.xb=s1;break e}if((Yn=ae(bt*Tt))==null){_e.a=1,mt=0;break e}mt=(mt=gc(_e,Yn,0,bt,Tt,Tt,null))&&!Wt.h;break e}return mt?(st!=null?st[0]=Yn:(E(Yn==null),E(Oe)),_e.$=0,Oe||ku(cn)):ku(cn),mt}function Qh(se,ge){var Oe=se.c*se.i,_e=Oe+ge+16*ge;return E(se.c<=ge),se.V=ae(_e),se.V==null?(se.Ta=null,se.Ua=0,se.a=1,0):(se.Ta=se.V,se.Ua=se.Ba+Oe+ge,1)}function Mp(se,ge){var Oe=se.C,_e=ge-Oe,st=se.V,mt=se.Ba+se.c*Oe;for(E(ge<=se.l.o);0<_e;){var bt=16<_e?16:_e,Tt=se.l.ma,Wt=se.l.width,cn=Wt*bt,Yn=Tt.ca,Cr=Tt.tb+Wt*Oe,fn=se.Ta,nr=se.Ua;Ph(se,bt,st,mt),Y0(fn,nr,Yn,Cr,cn),qc(Tt,Oe,Oe+bt,Yn,Cr,Wt),_e-=bt,st+=bt*se.c,Oe+=bt}E(Oe==ge),se.C=se.Ma=ge}function _p(){this.ub=this.yd=this.td=this.Rb=0}function kp(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Gm(){this.Fb=this.Bb=this.Cb=0,this.Zb=ae(4),this.Lb=ae(4)}function Bg(){this.Yb=function(){var se=[];return function ge(Oe,_e,st){for(var mt=st[_e],bt=0;bt<mt&&(Oe.push(st.length>_e+1?[]:0),!(st.length<_e+1));bt++)ge(Oe[bt],_e+1,st)}(se,0,[3,11]),se}()}function rm(){this.jb=ae(3),this.Wc=ve([4,8],Bg),this.Xc=ve([4,17],Bg)}function im(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new ae(4),this.od=new ae(4)}function Hu(){this.ld=this.La=this.dd=this.tc=0}function Cg(){this.Na=this.la=0}function om(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function xg(){this.ad=ae(384),this.Za=0,this.Ob=ae(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function am(){this.uc=this.M=this.Nb=0,this.wa=Array(new Hu),this.Y=0,this.ya=Array(new xg),this.aa=0,this.l=new Hp}function sm(){this.y=ae(16),this.f=ae(8),this.ea=ae(8)}function Am(){this.cb=this.a=0,this.sc="",this.m=new xt,this.Od=new _p,this.Kc=new kp,this.ed=new im,this.Qa=new Gm,this.Ic=this.$c=this.Aa=0,this.D=new am,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=we(8,xt),this.ia=0,this.pb=we(4,om),this.Pa=new rm,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new sm),this.Hd=0,this.rb=Array(new Cg),this.sb=0,this.wa=Array(new Hu),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new xg),this.L=this.aa=0,this.gd=ve([4,2],Hu),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function tf(se,ge){return 0>se?0:se>ge?ge:se}function Hp(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function Vm(){var se=new Am;return se!=null&&(se.a=0,se.sc="OK",se.cb=0,se.Xb=0,Wg||(Wg=Rp)),se}function BA(se,ge,Oe){return se.a==0&&(se.a=ge,se.sc=Oe,se.cb=0),0}function lm(se,ge,Oe){return 3<=Oe&&se[ge+0]==157&&se[ge+1]==1&&se[ge+2]==42}function nf(se,ge){if(se==null)return 0;if(se.a=0,se.sc="OK",ge==null)return BA(se,2,"null VP8Io passed to VP8GetHeaders()");var Oe=ge.data,_e=ge.w,st=ge.ha;if(4>st)return BA(se,7,"Truncated header.");var mt=Oe[_e+0]|Oe[_e+1]<<8|Oe[_e+2]<<16,bt=se.Od;if(bt.Rb=!(1&mt),bt.td=mt>>1&7,bt.yd=mt>>4&1,bt.ub=mt>>5,3<bt.td)return BA(se,3,"Incorrect keyframe parameters.");if(!bt.yd)return BA(se,4,"Frame not displayable.");_e+=3,st-=3;var Tt=se.Kc;if(bt.Rb){if(7>st)return BA(se,7,"cannot parse picture header");if(!lm(Oe,_e,st))return BA(se,3,"Bad code word");Tt.c=16383&(Oe[_e+4]<<8|Oe[_e+3]),Tt.Td=Oe[_e+4]>>6,Tt.i=16383&(Oe[_e+6]<<8|Oe[_e+5]),Tt.Ud=Oe[_e+6]>>6,_e+=7,st-=7,se.za=Tt.c+15>>4,se.Ub=Tt.i+15>>4,ge.width=Tt.c,ge.height=Tt.i,ge.Da=0,ge.j=0,ge.v=0,ge.va=ge.width,ge.o=ge.height,ge.da=0,ge.ib=ge.width,ge.hb=ge.height,ge.U=ge.width,ge.T=ge.height,re((mt=se.Pa).jb,0,255,mt.jb.length),E((mt=se.Qa)!=null),mt.Cb=0,mt.Bb=0,mt.Fb=1,re(mt.Zb,0,0,mt.Zb.length),re(mt.Lb,0,0,mt.Lb)}if(bt.ub>st)return BA(se,7,"bad partition length");Tr(mt=se.m,Oe,_e,bt.ub),_e+=bt.ub,st-=bt.ub,bt.Rb&&(Tt.Ld=Hr(mt),Tt.Kd=Hr(mt)),Tt=se.Qa;var Wt,cn=se.Pa;if(E(mt!=null),E(Tt!=null),Tt.Cb=Hr(mt),Tt.Cb){if(Tt.Bb=Hr(mt),Hr(mt)){for(Tt.Fb=Hr(mt),Wt=0;4>Wt;++Wt)Tt.Zb[Wt]=Hr(mt)?Br(mt,7):0;for(Wt=0;4>Wt;++Wt)Tt.Lb[Wt]=Hr(mt)?Br(mt,6):0}if(Tt.Bb)for(Wt=0;3>Wt;++Wt)cn.jb[Wt]=Hr(mt)?_r(mt,8):255}else Tt.Bb=0;if(mt.Ka)return BA(se,3,"cannot parse segment header");if((Tt=se.ed).zd=Hr(mt),Tt.Tb=_r(mt,6),Tt.wb=_r(mt,3),Tt.Pc=Hr(mt),Tt.Pc&&Hr(mt)){for(cn=0;4>cn;++cn)Hr(mt)&&(Tt.vd[cn]=Br(mt,6));for(cn=0;4>cn;++cn)Hr(mt)&&(Tt.od[cn]=Br(mt,6))}if(se.L=Tt.Tb==0?0:Tt.zd?1:2,mt.Ka)return BA(se,3,"cannot parse filter header");var Yn=st;if(st=Wt=_e,_e=Wt+Yn,Tt=Yn,se.Xb=(1<<_r(se.m,2))-1,Yn<3*(cn=se.Xb))Oe=7;else{for(Wt+=3*cn,Tt-=3*cn,Yn=0;Yn<cn;++Yn){var Cr=Oe[st+0]|Oe[st+1]<<8|Oe[st+2]<<16;Cr>Tt&&(Cr=Tt),Tr(se.Jc[+Yn],Oe,Wt,Cr),Wt+=Cr,Tt-=Cr,st+=3}Tr(se.Jc[+cn],Oe,Wt,Tt),Oe=Wt<_e?0:5}if(Oe!=0)return BA(se,Oe,"cannot parse partitions");for(Oe=_r(Wt=se.m,7),st=Hr(Wt)?Br(Wt,4):0,_e=Hr(Wt)?Br(Wt,4):0,Tt=Hr(Wt)?Br(Wt,4):0,cn=Hr(Wt)?Br(Wt,4):0,Wt=Hr(Wt)?Br(Wt,4):0,Yn=se.Qa,Cr=0;4>Cr;++Cr){if(Yn.Cb){var fn=Yn.Zb[Cr];Yn.Fb||(fn+=Oe)}else{if(0<Cr){se.pb[Cr]=se.pb[0];continue}fn=Oe}var nr=se.pb[Cr];nr.Sc[0]=d0[tf(fn+st,127)],nr.Sc[1]=h0[tf(fn+0,127)],nr.Eb[0]=2*d0[tf(fn+_e,127)],nr.Eb[1]=101581*h0[tf(fn+Tt,127)]>>16,8>nr.Eb[1]&&(nr.Eb[1]=8),nr.Qc[0]=d0[tf(fn+cn,117)],nr.Qc[1]=h0[tf(fn+Wt,127)],nr.lc=fn+Wt}if(!bt.Rb)return BA(se,4,"Not a key frame.");for(Hr(mt),bt=se.Pa,Oe=0;4>Oe;++Oe){for(st=0;8>st;++st)for(_e=0;3>_e;++_e)for(Tt=0;11>Tt;++Tt)cn=oi(mt,o1[Oe][st][_e][Tt])?_r(mt,8):r1[Oe][st][_e][Tt],bt.Wc[Oe][st].Yb[_e][Tt]=cn;for(st=0;17>st;++st)bt.Xc[Oe][st]=bt.Wc[Oe][a1[st]]}return se.kc=Hr(mt),se.kc&&(se.Bd=_r(mt,8)),se.cb=1}function Rp(se,ge,Oe,_e,st,mt,bt){var Tt=ge[st].Yb[Oe];for(Oe=0;16>st;++st){if(!oi(se,Tt[Oe+0]))return st;for(;!oi(se,Tt[Oe+1]);)if(Tt=ge[++st].Yb[0],Oe=0,st==16)return 16;var Wt=ge[st+1].Yb;if(oi(se,Tt[Oe+2])){var cn=se,Yn=0;if(oi(cn,(fn=Tt)[(Cr=Oe)+3]))if(oi(cn,fn[Cr+6])){for(Tt=0,Cr=2*(Yn=oi(cn,fn[Cr+8]))+(fn=oi(cn,fn[Cr+9+Yn])),Yn=0,fn=t1[Cr];fn[Tt];++Tt)Yn+=Yn+oi(cn,fn[Tt]);Yn+=3+(8<<Cr)}else oi(cn,fn[Cr+7])?(Yn=7+2*oi(cn,165),Yn+=oi(cn,145)):Yn=5+oi(cn,159);else Yn=oi(cn,fn[Cr+4])?3+oi(cn,fn[Cr+5]):2;Tt=Wt[2]}else Yn=1,Tt=Wt[1];Wt=bt+n1[st],0>(cn=se).b&&Mr(cn);var Cr,fn=cn.b,nr=(Cr=cn.Ca>>1)-(cn.I>>fn)>>31;--cn.b,cn.Ca+=nr,cn.Ca|=1,cn.I-=(Cr+1&nr)<<fn,mt[Wt]=((Yn^nr)-nr)*_e[(0<st)+0]}return 16}function um(se){var ge=se.rb[se.sb-1];ge.la=0,ge.Na=0,re(se.zc,0,0,se.zc.length),se.ja=0}function Ru(se,ge,Oe,_e,st){st=se[ge+Oe+32*_e]+(st>>3),se[ge+Oe+32*_e]=-256&st?0>st?0:255:st}function DA(se,ge,Oe,_e,st,mt){Ru(se,ge,0,Oe,_e+st),Ru(se,ge,1,Oe,_e+mt),Ru(se,ge,2,Oe,_e-mt),Ru(se,ge,3,Oe,_e-st)}function jf(se){return(20091*se>>16)+se}function cm(se,ge,Oe,_e){var st,mt=0,bt=ae(16);for(st=0;4>st;++st){var Tt=se[ge+0]+se[ge+8],Wt=se[ge+0]-se[ge+8],cn=(35468*se[ge+4]>>16)-jf(se[ge+12]),Yn=jf(se[ge+4])+(35468*se[ge+12]>>16);bt[mt+0]=Tt+Yn,bt[mt+1]=Wt+cn,bt[mt+2]=Wt-cn,bt[mt+3]=Tt-Yn,mt+=4,ge++}for(st=mt=0;4>st;++st)Tt=(se=bt[mt+0]+4)+bt[mt+8],Wt=se-bt[mt+8],cn=(35468*bt[mt+4]>>16)-jf(bt[mt+12]),Ru(Oe,_e,0,0,Tt+(Yn=jf(bt[mt+4])+(35468*bt[mt+12]>>16))),Ru(Oe,_e,1,0,Wt+cn),Ru(Oe,_e,2,0,Wt-cn),Ru(Oe,_e,3,0,Tt-Yn),mt++,_e+=32}function Zm(se,ge,Oe,_e){var st=se[ge+0]+4,mt=35468*se[ge+4]>>16,bt=jf(se[ge+4]),Tt=35468*se[ge+1]>>16;DA(Oe,_e,0,st+bt,se=jf(se[ge+1]),Tt),DA(Oe,_e,1,st+mt,se,Tt),DA(Oe,_e,2,st-mt,se,Tt),DA(Oe,_e,3,st-bt,se,Tt)}function $m(se,ge,Oe,_e,st){cm(se,ge,Oe,_e),st&&cm(se,ge+16,Oe,_e+4)}function rf(se,ge,Oe,_e){$h(se,ge+0,Oe,_e,1),$h(se,ge+32,Oe,_e+128,1)}function fm(se,ge,Oe,_e){var st;for(se=se[ge+0]+4,st=0;4>st;++st)for(ge=0;4>ge;++ge)Ru(Oe,_e,ge,st,se)}function dm(se,ge,Oe,_e){se[ge+0]&&as(se,ge+0,Oe,_e),se[ge+16]&&as(se,ge+16,Oe,_e+4),se[ge+32]&&as(se,ge+32,Oe,_e+128),se[ge+48]&&as(se,ge+48,Oe,_e+128+4)}function jp(se,ge,Oe,_e){var st,mt=ae(16);for(st=0;4>st;++st){var bt=se[ge+0+st]+se[ge+12+st],Tt=se[ge+4+st]+se[ge+8+st],Wt=se[ge+4+st]-se[ge+8+st],cn=se[ge+0+st]-se[ge+12+st];mt[0+st]=bt+Tt,mt[8+st]=bt-Tt,mt[4+st]=cn+Wt,mt[12+st]=cn-Wt}for(st=0;4>st;++st)bt=(se=mt[0+4*st]+3)+mt[3+4*st],Tt=mt[1+4*st]+mt[2+4*st],Wt=mt[1+4*st]-mt[2+4*st],cn=se-mt[3+4*st],Oe[_e+0]=bt+Tt>>3,Oe[_e+16]=cn+Wt>>3,Oe[_e+32]=bt-Tt>>3,Oe[_e+48]=cn-Wt>>3,_e+=64}function Mh(se,ge,Oe){var _e,st=ge-32,mt=cu,bt=255-se[st-1];for(_e=0;_e<Oe;++_e){var Tt,Wt=mt,cn=bt+se[ge-1];for(Tt=0;Tt<Oe;++Tt)se[ge+Tt]=Wt[cn+se[st+Tt]];ge+=32}}function Xm(se,ge){Mh(se,ge,4)}function Ym(se,ge){Mh(se,ge,8)}function Jm(se,ge){Mh(se,ge,16)}function Eg(se,ge){var Oe;for(Oe=0;16>Oe;++Oe)te(se,ge+32*Oe,se,ge-32,16)}function hm(se,ge){var Oe;for(Oe=16;0<Oe;--Oe)re(se,ge,se[ge-1],16),ge+=32}function mc(se,ge,Oe){var _e;for(_e=0;16>_e;++_e)re(ge,Oe+32*_e,se,16)}function qm(se,ge){var Oe,_e=16;for(Oe=0;16>Oe;++Oe)_e+=se[ge-1+32*Oe]+se[ge+Oe-32];mc(_e>>5,se,ge)}function _h(se,ge){var Oe,_e=8;for(Oe=0;16>Oe;++Oe)_e+=se[ge-1+32*Oe];mc(_e>>4,se,ge)}function Sg(se,ge){var Oe,_e=8;for(Oe=0;16>Oe;++Oe)_e+=se[ge+Oe-32];mc(_e>>4,se,ge)}function e0(se,ge){mc(128,se,ge)}function na(se,ge,Oe){return se+2*ge+Oe+2>>2}function t0(se,ge){var Oe,_e=ge-32;for(_e=new Uint8Array([na(se[_e-1],se[_e+0],se[_e+1]),na(se[_e+0],se[_e+1],se[_e+2]),na(se[_e+1],se[_e+2],se[_e+3]),na(se[_e+2],se[_e+3],se[_e+4])]),Oe=0;4>Oe;++Oe)te(se,ge+32*Oe,_e,0,_e.length)}function n0(se,ge){var Oe=se[ge-1],_e=se[ge-1+32],st=se[ge-1+64],mt=se[ge-1+96];wi(se,ge+0,16843009*na(se[ge-1-32],Oe,_e)),wi(se,ge+32,16843009*na(Oe,_e,st)),wi(se,ge+64,16843009*na(_e,st,mt)),wi(se,ge+96,16843009*na(st,mt,mt))}function r0(se,ge){var Oe,_e=4;for(Oe=0;4>Oe;++Oe)_e+=se[ge+Oe-32]+se[ge-1+32*Oe];for(_e>>=3,Oe=0;4>Oe;++Oe)re(se,ge+32*Oe,_e,4)}function zf(se,ge){var Oe=se[ge-1+0],_e=se[ge-1+32],st=se[ge-1+64],mt=se[ge-1-32],bt=se[ge+0-32],Tt=se[ge+1-32],Wt=se[ge+2-32],cn=se[ge+3-32];se[ge+0+96]=na(_e,st,se[ge-1+96]),se[ge+1+96]=se[ge+0+64]=na(Oe,_e,st),se[ge+2+96]=se[ge+1+64]=se[ge+0+32]=na(mt,Oe,_e),se[ge+3+96]=se[ge+2+64]=se[ge+1+32]=se[ge+0+0]=na(bt,mt,Oe),se[ge+3+64]=se[ge+2+32]=se[ge+1+0]=na(Tt,bt,mt),se[ge+3+32]=se[ge+2+0]=na(Wt,Tt,bt),se[ge+3+0]=na(cn,Wt,Tt)}function Kf(se,ge){var Oe=se[ge+1-32],_e=se[ge+2-32],st=se[ge+3-32],mt=se[ge+4-32],bt=se[ge+5-32],Tt=se[ge+6-32],Wt=se[ge+7-32];se[ge+0+0]=na(se[ge+0-32],Oe,_e),se[ge+1+0]=se[ge+0+32]=na(Oe,_e,st),se[ge+2+0]=se[ge+1+32]=se[ge+0+64]=na(_e,st,mt),se[ge+3+0]=se[ge+2+32]=se[ge+1+64]=se[ge+0+96]=na(st,mt,bt),se[ge+3+32]=se[ge+2+64]=se[ge+1+96]=na(mt,bt,Tt),se[ge+3+64]=se[ge+2+96]=na(bt,Tt,Wt),se[ge+3+96]=na(Tt,Wt,Wt)}function i0(se,ge){var Oe=se[ge-1+0],_e=se[ge-1+32],st=se[ge-1+64],mt=se[ge-1-32],bt=se[ge+0-32],Tt=se[ge+1-32],Wt=se[ge+2-32],cn=se[ge+3-32];se[ge+0+0]=se[ge+1+64]=mt+bt+1>>1,se[ge+1+0]=se[ge+2+64]=bt+Tt+1>>1,se[ge+2+0]=se[ge+3+64]=Tt+Wt+1>>1,se[ge+3+0]=Wt+cn+1>>1,se[ge+0+96]=na(st,_e,Oe),se[ge+0+64]=na(_e,Oe,mt),se[ge+0+32]=se[ge+1+96]=na(Oe,mt,bt),se[ge+1+32]=se[ge+2+96]=na(mt,bt,Tt),se[ge+2+32]=se[ge+3+96]=na(bt,Tt,Wt),se[ge+3+32]=na(Tt,Wt,cn)}function o0(se,ge){var Oe=se[ge+0-32],_e=se[ge+1-32],st=se[ge+2-32],mt=se[ge+3-32],bt=se[ge+4-32],Tt=se[ge+5-32],Wt=se[ge+6-32],cn=se[ge+7-32];se[ge+0+0]=Oe+_e+1>>1,se[ge+1+0]=se[ge+0+64]=_e+st+1>>1,se[ge+2+0]=se[ge+1+64]=st+mt+1>>1,se[ge+3+0]=se[ge+2+64]=mt+bt+1>>1,se[ge+0+32]=na(Oe,_e,st),se[ge+1+32]=se[ge+0+96]=na(_e,st,mt),se[ge+2+32]=se[ge+1+96]=na(st,mt,bt),se[ge+3+32]=se[ge+2+96]=na(mt,bt,Tt),se[ge+3+64]=na(bt,Tt,Wt),se[ge+3+96]=na(Tt,Wt,cn)}function zp(se,ge){var Oe=se[ge-1+0],_e=se[ge-1+32],st=se[ge-1+64],mt=se[ge-1+96];se[ge+0+0]=Oe+_e+1>>1,se[ge+2+0]=se[ge+0+32]=_e+st+1>>1,se[ge+2+32]=se[ge+0+64]=st+mt+1>>1,se[ge+1+0]=na(Oe,_e,st),se[ge+3+0]=se[ge+1+32]=na(_e,st,mt),se[ge+3+32]=se[ge+1+64]=na(st,mt,mt),se[ge+3+64]=se[ge+2+64]=se[ge+0+96]=se[ge+1+96]=se[ge+2+96]=se[ge+3+96]=mt}function Fg(se,ge){var Oe=se[ge-1+0],_e=se[ge-1+32],st=se[ge-1+64],mt=se[ge-1+96],bt=se[ge-1-32],Tt=se[ge+0-32],Wt=se[ge+1-32],cn=se[ge+2-32];se[ge+0+0]=se[ge+2+32]=Oe+bt+1>>1,se[ge+0+32]=se[ge+2+64]=_e+Oe+1>>1,se[ge+0+64]=se[ge+2+96]=st+_e+1>>1,se[ge+0+96]=mt+st+1>>1,se[ge+3+0]=na(Tt,Wt,cn),se[ge+2+0]=na(bt,Tt,Wt),se[ge+1+0]=se[ge+3+32]=na(Oe,bt,Tt),se[ge+1+32]=se[ge+3+64]=na(_e,Oe,bt),se[ge+1+64]=se[ge+3+96]=na(st,_e,Oe),se[ge+1+96]=na(mt,st,_e)}function kh(se,ge){var Oe;for(Oe=0;8>Oe;++Oe)te(se,ge+32*Oe,se,ge-32,8)}function a0(se,ge){var Oe;for(Oe=0;8>Oe;++Oe)re(se,ge,se[ge-1],8),ge+=32}function Wf(se,ge,Oe){var _e;for(_e=0;8>_e;++_e)re(ge,Oe+32*_e,se,8)}function s0(se,ge){var Oe,_e=8;for(Oe=0;8>Oe;++Oe)_e+=se[ge+Oe-32]+se[ge-1+32*Oe];Wf(_e>>4,se,ge)}function Ig(se,ge){var Oe,_e=4;for(Oe=0;8>Oe;++Oe)_e+=se[ge+Oe-32];Wf(_e>>3,se,ge)}function Lg(se,ge){var Oe,_e=4;for(Oe=0;8>Oe;++Oe)_e+=se[ge-1+32*Oe];Wf(_e>>3,se,ge)}function pm(se,ge){Wf(128,se,ge)}function Gf(se,ge,Oe){var _e=se[ge-Oe],st=se[ge+0],mt=3*(st-_e)+A0[1020+se[ge-2*Oe]-se[ge+Oe]],bt=Cm[112+(mt+4>>3)];se[ge-Oe]=cu[255+_e+Cm[112+(mt+3>>3)]],se[ge+0]=cu[255+st-bt]}function Ug(se,ge,Oe,_e){var st=se[ge+0],mt=se[ge+Oe];return Ku[255+se[ge-2*Oe]-se[ge-Oe]]>_e||Ku[255+mt-st]>_e}function Kp(se,ge,Oe,_e){return 4*Ku[255+se[ge-Oe]-se[ge+0]]+Ku[255+se[ge-2*Oe]-se[ge+Oe]]<=_e}function Og(se,ge,Oe,_e,st){var mt=se[ge-3*Oe],bt=se[ge-2*Oe],Tt=se[ge-Oe],Wt=se[ge+0],cn=se[ge+Oe],Yn=se[ge+2*Oe],Cr=se[ge+3*Oe];return 4*Ku[255+Tt-Wt]+Ku[255+bt-cn]>_e?0:Ku[255+se[ge-4*Oe]-mt]<=st&&Ku[255+mt-bt]<=st&&Ku[255+bt-Tt]<=st&&Ku[255+Cr-Yn]<=st&&Ku[255+Yn-cn]<=st&&Ku[255+cn-Wt]<=st}function Hh(se,ge,Oe,_e){var st=2*_e+1;for(_e=0;16>_e;++_e)Kp(se,ge+_e,Oe,st)&&Gf(se,ge+_e,Oe)}function Dg(se,ge,Oe,_e){var st=2*_e+1;for(_e=0;16>_e;++_e)Kp(se,ge+_e*Oe,1,st)&&Gf(se,ge+_e*Oe,1)}function gm(se,ge,Oe,_e){var st;for(st=3;0<st;--st)Hh(se,ge+=4*Oe,Oe,_e)}function mm(se,ge,Oe,_e){var st;for(st=3;0<st;--st)Dg(se,ge+=4,Oe,_e)}function Vf(se,ge,Oe,_e,st,mt,bt,Tt){for(mt=2*mt+1;0<st--;){if(Og(se,ge,Oe,mt,bt))if(Ug(se,ge,Oe,Tt))Gf(se,ge,Oe);else{var Wt=se,cn=ge,Yn=Oe,Cr=Wt[cn-2*Yn],fn=Wt[cn-Yn],nr=Wt[cn+0],fr=Wt[cn+Yn],Yr=Wt[cn+2*Yn],br=27*(ii=A0[1020+3*(nr-fn)+A0[1020+Cr-fr]])+63>>7,qr=18*ii+63>>7,ii=9*ii+63>>7;Wt[cn-3*Yn]=cu[255+Wt[cn-3*Yn]+ii],Wt[cn-2*Yn]=cu[255+Cr+qr],Wt[cn-Yn]=cu[255+fn+br],Wt[cn+0]=cu[255+nr-br],Wt[cn+Yn]=cu[255+fr-qr],Wt[cn+2*Yn]=cu[255+Yr-ii]}ge+=_e}}function Zf(se,ge,Oe,_e,st,mt,bt,Tt){for(mt=2*mt+1;0<st--;){if(Og(se,ge,Oe,mt,bt))if(Ug(se,ge,Oe,Tt))Gf(se,ge,Oe);else{var Wt=se,cn=ge,Yn=Oe,Cr=Wt[cn-Yn],fn=Wt[cn+0],nr=Wt[cn+Yn],fr=Cm[112+(4+(Yr=3*(fn-Cr))>>3)],Yr=Cm[112+(Yr+3>>3)],br=fr+1>>1;Wt[cn-2*Yn]=cu[255+Wt[cn-2*Yn]+br],Wt[cn-Yn]=cu[255+Cr+Yr],Wt[cn+0]=cu[255+fn-fr],Wt[cn+Yn]=cu[255+nr-br]}ge+=_e}}function vm(se,ge,Oe,_e,st,mt){Vf(se,ge,Oe,1,16,_e,st,mt)}function Rh(se,ge,Oe,_e,st,mt){Vf(se,ge,1,Oe,16,_e,st,mt)}function ym(se,ge,Oe,_e,st,mt){var bt;for(bt=3;0<bt;--bt)Zf(se,ge+=4*Oe,Oe,1,16,_e,st,mt)}function Ce(se,ge,Oe,_e,st,mt){var bt;for(bt=3;0<bt;--bt)Zf(se,ge+=4,1,Oe,16,_e,st,mt)}function it(se,ge,Oe,_e,st,mt,bt,Tt){Vf(se,ge,st,1,8,mt,bt,Tt),Vf(Oe,_e,st,1,8,mt,bt,Tt)}function hn(se,ge,Oe,_e,st,mt,bt,Tt){Vf(se,ge,1,st,8,mt,bt,Tt),Vf(Oe,_e,1,st,8,mt,bt,Tt)}function kn(se,ge,Oe,_e,st,mt,bt,Tt){Zf(se,ge+4*st,st,1,8,mt,bt,Tt),Zf(Oe,_e+4*st,st,1,8,mt,bt,Tt)}function Ar(se,ge,Oe,_e,st,mt,bt,Tt){Zf(se,ge+4,1,st,8,mt,bt,Tt),Zf(Oe,_e+4,1,st,8,mt,bt,Tt)}function ri(){this.ba=new La,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new os,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function ui(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function ro(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function po(){this.ua=0,this.Wa=new Ca,this.vb=new Ca,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new Ir,this.yc=new Hn}function Yo(){this.xb=this.a=0,this.l=new Hp,this.ca=new La,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new wn,this.Pb=0,this.wd=new wn,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new po,this.ab=0,this.gc=we(4,ro),this.Oc=0}function fa(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Hp,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function Wa(se,ge,Oe,_e,st,mt,bt){for(se=se==null?0:se[ge+0],ge=0;ge<bt;++ge)st[mt+ge]=se+Oe[_e+ge]&255,se=st[mt+ge]}function zs(se,ge,Oe,_e,st,mt,bt){var Tt;if(se==null)Wa(null,null,Oe,_e,st,mt,bt);else for(Tt=0;Tt<bt;++Tt)st[mt+Tt]=se[ge+Tt]+Oe[_e+Tt]&255}function CA(se,ge,Oe,_e,st,mt,bt){if(se==null)Wa(null,null,Oe,_e,st,mt,bt);else{var Tt,Wt=se[ge+0],cn=Wt,Yn=Wt;for(Tt=0;Tt<bt;++Tt)cn=Yn+(Wt=se[ge+Tt])-cn,Yn=Oe[_e+Tt]+(-256&cn?0>cn?0:255:cn)&255,cn=Wt,st[mt+Tt]=Yn}}function vs(se,ge,Oe,_e){var st=ge.width,mt=ge.o;if(E(se!=null&&ge!=null),0>Oe||0>=_e||Oe+_e>mt)return null;if(!se.Cc){if(se.ga==null){var bt;if(se.ga=new fa,(bt=se.ga==null)||(bt=ge.width*ge.o,E(se.Gb.length==0),se.Gb=ae(bt),se.Uc=0,se.Gb==null?bt=0:(se.mb=se.Gb,se.nb=se.Uc,se.rc=null,bt=1),bt=!bt),!bt){bt=se.ga;var Tt=se.Fa,Wt=se.P,cn=se.qc,Yn=se.mb,Cr=se.nb,fn=Wt+1,nr=cn-1,fr=bt.l;if(E(Tt!=null&&Yn!=null&&ge!=null),Kd[0]=null,Kd[1]=Wa,Kd[2]=zs,Kd[3]=CA,bt.ca=Yn,bt.tb=Cr,bt.c=ge.width,bt.i=ge.height,E(0<bt.c&&0<bt.i),1>=cn)ge=0;else if(bt.$a=3&Tt[Wt+0],bt.Z=Tt[Wt+0]>>2&3,bt.Lc=Tt[Wt+0]>>4&3,Wt=Tt[Wt+0]>>6&3,0>bt.$a||1<bt.$a||4<=bt.Z||1<bt.Lc||Wt)ge=0;else if(fr.put=zo,fr.ac=Jc,fr.bc=Hf,fr.ma=bt,fr.width=ge.width,fr.height=ge.height,fr.Da=ge.Da,fr.v=ge.v,fr.va=ge.va,fr.j=ge.j,fr.o=ge.o,bt.$a)e:{E(bt.$a==1),ge=Th();t:for(;;){if(ge==null){ge=0;break e}if(E(bt!=null),bt.mc=ge,ge.c=bt.c,ge.i=bt.i,ge.l=bt.l,ge.l.ma=bt,ge.l.width=bt.c,ge.l.height=bt.i,ge.a=0,Kr(ge.m,Tt,fn,nr),!ef(bt.c,bt.i,1,ge,null)||(ge.ab==1&&ge.gc[0].hc==3&&hc(ge.s)?(bt.ic=1,Tt=ge.c*ge.i,ge.Ta=null,ge.Ua=0,ge.V=ae(Tt),ge.Ba=0,ge.V==null?(ge.a=1,ge=0):ge=1):(bt.ic=0,ge=Qh(ge,bt.c)),!ge))break t;ge=1;break e}bt.mc=null,ge=0}else ge=nr>=bt.c*bt.i;bt=!ge}if(bt)return null;se.ga.Lc!=1?se.Ga=0:_e=mt-Oe}E(se.ga!=null),E(Oe+_e<=mt);e:{if(ge=(Tt=se.ga).c,mt=Tt.l.o,Tt.$a==0){if(fn=se.rc,nr=se.Vc,fr=se.Fa,Wt=se.P+1+Oe*ge,cn=se.mb,Yn=se.nb+Oe*ge,E(Wt<=se.P+se.qc),Tt.Z!=0)for(E(Kd[Tt.Z]!=null),bt=0;bt<_e;++bt)Kd[Tt.Z](fn,nr,fr,Wt,cn,Yn,ge),fn=cn,nr=Yn,Yn+=ge,Wt+=ge;else for(bt=0;bt<_e;++bt)te(cn,Yn,fr,Wt,ge),fn=cn,nr=Yn,Yn+=ge,Wt+=ge;se.rc=fn,se.Vc=nr}else{if(E(Tt.mc!=null),ge=Oe+_e,E((bt=Tt.mc)!=null),E(ge<=bt.i),bt.C>=ge)ge=1;else if(Tt.ic||vc(),Tt.ic){Tt=bt.V,fn=bt.Ba,nr=bt.c;var Yr=bt.i,br=(fr=1,Wt=bt.$/nr,cn=bt.$%nr,Yn=bt.m,Cr=bt.s,bt.$),qr=nr*Yr,ii=nr*ge,yi=Cr.wc,ci=br<ii?il(Cr,cn,Wt):null;E(br<=qr),E(ge<=Yr),E(hc(Cr));t:for(;;){for(;!Yn.h&&br<ii;){if(cn&yi||(ci=il(Cr,cn,Wt)),E(ci!=null),yr(Yn),256>(Yr=Xs(ci.G[0],ci.H[0],Yn)))Tt[fn+br]=Yr,++br,++cn>=nr&&(cn=0,++Wt<=ge&&!(Wt%16)&&pc(bt,Wt));else{if(!(280>Yr)){fr=0;break t}Yr=Mu(Yr-256,Yn);var wo,qi=Xs(ci.G[4],ci.H[4],Yn);if(yr(Yn),!(br>=(qi=_u(nr,qi=Mu(qi,Yn)))&&qr-br>=Yr)){fr=0;break t}for(wo=0;wo<Yr;++wo)Tt[fn+br+wo]=Tt[fn+br+wo-qi];for(br+=Yr,cn+=Yr;cn>=nr;)cn-=nr,++Wt<=ge&&!(Wt%16)&&pc(bt,Wt);br<ii&&cn&yi&&(ci=il(Cr,cn,Wt))}E(Yn.h==Gn(Yn))}pc(bt,Wt>ge?ge:Wt);break t}!fr||Yn.h&&br<qr?(fr=0,bt.a=Yn.h?5:3):bt.$=br,ge=fr}else ge=gc(bt,bt.V,bt.Ba,bt.c,bt.i,ge,Mp);if(!ge){_e=0;break e}}Oe+_e>=mt&&(se.Cc=1),_e=1}if(!_e)return null;if(se.Cc&&((_e=se.ga)!=null&&(_e.mc=null),se.ga=null,0<se.Ga))return alert("todo:WebPDequantizeLevels"),null}return se.nb+Oe*st}function NA(se,ge,Oe,_e,st,mt){for(;0<st--;){var bt,Tt=se,Wt=ge+(Oe?1:0),cn=se,Yn=ge+(Oe?0:3);for(bt=0;bt<_e;++bt){var Cr=cn[Yn+4*bt];Cr!=255&&(Cr*=32897,Tt[Wt+4*bt+0]=Tt[Wt+4*bt+0]*Cr>>23,Tt[Wt+4*bt+1]=Tt[Wt+4*bt+1]*Cr>>23,Tt[Wt+4*bt+2]=Tt[Wt+4*bt+2]*Cr>>23)}ge+=mt}}function xA(se,ge,Oe,_e,st){for(;0<_e--;){var mt;for(mt=0;mt<Oe;++mt){var bt=se[ge+2*mt+0],Tt=15&(cn=se[ge+2*mt+1]),Wt=4369*Tt,cn=(240&cn|cn>>4)*Wt>>16;se[ge+2*mt+0]=(240&bt|bt>>4)*Wt>>16&240|(15&bt|bt<<4)*Wt>>16>>4&15,se[ge+2*mt+1]=240&cn|Tt}ge+=st}}function ol(se,ge,Oe,_e,st,mt,bt,Tt){var Wt,cn,Yn=255;for(cn=0;cn<st;++cn){for(Wt=0;Wt<_e;++Wt){var Cr=se[ge+Wt];mt[bt+4*Wt]=Cr,Yn&=Cr}ge+=Oe,bt+=Tt}return Yn!=255}function $f(se,ge,Oe,_e,st){var mt;for(mt=0;mt<st;++mt)Oe[_e+mt]=se[ge+mt]>>8}function vc(){Kg=NA,$0=xA,X0=ol,Y0=$f}function Xf(se,ge,Oe){Bn[se]=function(_e,st,mt,bt,Tt,Wt,cn,Yn,Cr,fn,nr,fr,Yr,br,qr,ii,yi){var ci,wo=yi-1>>1,qi=Tt[Wt+0]|cn[Yn+0]<<16,pa=Cr[fn+0]|nr[fr+0]<<16;E(_e!=null);var so=3*qi+pa+131074>>2;for(ge(_e[st+0],255&so,so>>16,Yr,br),mt!=null&&(so=3*pa+qi+131074>>2,ge(mt[bt+0],255&so,so>>16,qr,ii)),ci=1;ci<=wo;++ci){var Ha=Tt[Wt+ci]|cn[Yn+ci]<<16,TA=Cr[fn+ci]|nr[fr+ci]<<16,ga=qi+Ha+pa+TA+524296,Ao=ga+2*(Ha+pa)>>3;so=Ao+qi>>1,qi=(ga=ga+2*(qi+TA)>>3)+Ha>>1,ge(_e[st+2*ci-1],255&so,so>>16,Yr,br+(2*ci-1)*Oe),ge(_e[st+2*ci-0],255&qi,qi>>16,Yr,br+(2*ci-0)*Oe),mt!=null&&(so=ga+pa>>1,qi=Ao+TA>>1,ge(mt[bt+2*ci-1],255&so,so>>16,qr,ii+(2*ci-1)*Oe),ge(mt[bt+2*ci+0],255&qi,qi>>16,qr,ii+(2*ci+0)*Oe)),qi=Ha,pa=TA}1&yi||(so=3*qi+pa+131074>>2,ge(_e[st+yi-1],255&so,so>>16,Yr,br+(yi-1)*Oe),mt!=null&&(so=3*pa+qi+131074>>2,ge(mt[bt+yi-1],255&so,so>>16,qr,ii+(yi-1)*Oe)))}}function Ng(){Wu[xm]=A1,Wu[Em]=Av,Wu[rv]=l1,Wu[Sm]=lv,Wu[Fm]=uv,Wu[l0]=cv,Wu[iv]=u1,Wu[u0]=Av,Wu[c0]=lv,Wu[Im]=uv,Wu[f0]=cv}function Wp(se){return se&~c1?0>se?0:255:se>>fv}function Pd(se,ge){return Wp((19077*se>>8)+(26149*ge>>8)-14234)}function jh(se,ge,Oe){return Wp((19077*se>>8)-(6419*ge>>8)-(13320*Oe>>8)+8708)}function zh(se,ge){return Wp((19077*se>>8)+(33050*ge>>8)-17685)}function Td(se,ge,Oe,_e,st){_e[st+0]=Pd(se,Oe),_e[st+1]=jh(se,ge,Oe),_e[st+2]=zh(se,ge)}function al(se,ge,Oe,_e,st){_e[st+0]=zh(se,ge),_e[st+1]=jh(se,ge,Oe),_e[st+2]=Pd(se,Oe)}function Kh(se,ge,Oe,_e,st){var mt=jh(se,ge,Oe);ge=mt<<3&224|zh(se,ge)>>3,_e[st+0]=248&Pd(se,Oe)|mt>>5,_e[st+1]=ge}function Wh(se,ge,Oe,_e,st){var mt=240&zh(se,ge)|15;_e[st+0]=240&Pd(se,Oe)|jh(se,ge,Oe)>>4,_e[st+1]=mt}function Pg(se,ge,Oe,_e,st){_e[st+0]=255,Td(se,ge,Oe,_e,st+1)}function Tg(se,ge,Oe,_e,st){al(se,ge,Oe,_e,st),_e[st+3]=255}function Tl(se,ge,Oe,_e,st){Td(se,ge,Oe,_e,st),_e[st+3]=255}function Yf(se,ge,Oe){Bn[se]=function(_e,st,mt,bt,Tt,Wt,cn,Yn,Cr){for(var fn=Yn+(-2&Cr)*Oe;Yn!=fn;)ge(_e[st+0],mt[bt+0],Tt[Wt+0],cn,Yn),ge(_e[st+1],mt[bt+0],Tt[Wt+0],cn,Yn+Oe),st+=2,++bt,++Wt,Yn+=2*Oe;1&Cr&&ge(_e[st+0],mt[bt+0],Tt[Wt+0],cn,Yn)}}function Gp(se,ge,Oe){return Oe==0?se==0?ge==0?6:5:ge==0?4:0:Oe}function wm(se,ge,Oe,_e,st){switch(se>>>30){case 3:$h(ge,Oe,_e,st,0);break;case 2:zu(ge,Oe,_e,st);break;case 1:as(ge,Oe,_e,st)}}function ju(se,ge){var Oe,_e,st=ge.M,mt=ge.Nb,bt=se.oc,Tt=se.pc+40,Wt=se.oc,cn=se.pc+584,Yn=se.oc,Cr=se.pc+600;for(Oe=0;16>Oe;++Oe)bt[Tt+32*Oe-1]=129;for(Oe=0;8>Oe;++Oe)Wt[cn+32*Oe-1]=129,Yn[Cr+32*Oe-1]=129;for(0<st?bt[Tt-1-32]=Wt[cn-1-32]=Yn[Cr-1-32]=129:(re(bt,Tt-32-1,127,21),re(Wt,cn-32-1,127,9),re(Yn,Cr-32-1,127,9)),_e=0;_e<se.za;++_e){var fn=ge.ya[ge.aa+_e];if(0<_e){for(Oe=-1;16>Oe;++Oe)te(bt,Tt+32*Oe-4,bt,Tt+32*Oe+12,4);for(Oe=-1;8>Oe;++Oe)te(Wt,cn+32*Oe-4,Wt,cn+32*Oe+4,4),te(Yn,Cr+32*Oe-4,Yn,Cr+32*Oe+4,4)}var nr=se.Gd,fr=se.Hd+_e,Yr=fn.ad,br=fn.Hc;if(0<st&&(te(bt,Tt-32,nr[fr].y,0,16),te(Wt,cn-32,nr[fr].f,0,8),te(Yn,Cr-32,nr[fr].ea,0,8)),fn.Za){var qr=bt,ii=Tt-32+16;for(0<st&&(_e>=se.za-1?re(qr,ii,nr[fr].y[15],4):te(qr,ii,nr[fr+1].y,0,4)),Oe=0;4>Oe;Oe++)qr[ii+128+Oe]=qr[ii+256+Oe]=qr[ii+384+Oe]=qr[ii+0+Oe];for(Oe=0;16>Oe;++Oe,br<<=2)qr=bt,ii=Tt+hv[Oe],yc[fn.Ob[Oe]](qr,ii),wm(br,Yr,16*+Oe,qr,ii)}else if(qr=Gp(_e,st,fn.Ob[0]),zd[qr](bt,Tt),br!=0)for(Oe=0;16>Oe;++Oe,br<<=2)wm(br,Yr,16*+Oe,bt,Tt+hv[Oe]);for(Oe=fn.Gc,qr=Gp(_e,st,fn.Dd),ed[qr](Wt,cn),ed[qr](Yn,Cr),br=Yr,qr=Wt,ii=cn,255&(fn=0|Oe)&&(170&fn?sf(br,256,qr,ii):ds(br,256,qr,ii)),fn=Yn,br=Cr,255&(Oe>>=8)&&(170&Oe?sf(Yr,320,fn,br):ds(Yr,320,fn,br)),st<se.Ub-1&&(te(nr[fr].y,0,bt,Tt+480,16),te(nr[fr].f,0,Wt,cn+224,8),te(nr[fr].ea,0,Yn,Cr+224,8)),Oe=8*mt*se.B,nr=se.sa,fr=se.ta+16*_e+16*mt*se.R,Yr=se.qa,fn=se.ra+8*_e+Oe,br=se.Ha,qr=se.Ia+8*_e+Oe,Oe=0;16>Oe;++Oe)te(nr,fr+Oe*se.R,bt,Tt+32*Oe,16);for(Oe=0;8>Oe;++Oe)te(Yr,fn+Oe*se.B,Wt,cn+32*Oe,8),te(br,qr+Oe*se.B,Yn,Cr+32*Oe,8)}}function Gh(se,ge,Oe,_e,st,mt,bt,Tt,Wt){var cn=[0],Yn=[0],Cr=0,fn=Wt!=null?Wt.kd:0,nr=Wt!=null?Wt:new ui;if(se==null||12>Oe)return 7;nr.data=se,nr.w=ge,nr.ha=Oe,ge=[ge],Oe=[Oe],nr.gb=[nr.gb];e:{var fr=ge,Yr=Oe,br=nr.gb;if(E(se!=null),E(Yr!=null),E(br!=null),br[0]=0,12<=Yr[0]&&!x(se,fr[0],"RIFF")){if(x(se,fr[0]+8,"WEBP")){br=3;break e}var qr=Io(se,fr[0]+4);if(12>qr||4294967286<qr){br=3;break e}if(fn&&qr>Yr[0]-8){br=7;break e}br[0]=qr,fr[0]+=12,Yr[0]-=12}br=0}if(br!=0)return br;for(qr=0<nr.gb[0],Oe=Oe[0];;){e:{var ii=se;Yr=ge,br=Oe;var yi=cn,ci=Yn,wo=fr=[0];if((so=Cr=[Cr])[0]=0,8>br[0])br=7;else{if(!x(ii,Yr[0],"VP8X")){if(Io(ii,Yr[0]+4)!=10){br=3;break e}if(18>br[0]){br=7;break e}var qi=Io(ii,Yr[0]+8),pa=1+_i(ii,Yr[0]+12);if(2147483648<=pa*(ii=1+_i(ii,Yr[0]+15))){br=3;break e}wo!=null&&(wo[0]=qi),yi!=null&&(yi[0]=pa),ci!=null&&(ci[0]=ii),Yr[0]+=18,br[0]-=18,so[0]=1}br=0}}if(Cr=Cr[0],fr=fr[0],br!=0)return br;if(Yr=!!(2&fr),!qr&&Cr)return 3;if(mt!=null&&(mt[0]=!!(16&fr)),bt!=null&&(bt[0]=Yr),Tt!=null&&(Tt[0]=0),bt=cn[0],fr=Yn[0],Cr&&Yr&&Wt==null){br=0;break}if(4>Oe){br=7;break}if(qr&&Cr||!qr&&!Cr&&!x(se,ge[0],"ALPH")){Oe=[Oe],nr.na=[nr.na],nr.P=[nr.P],nr.Sa=[nr.Sa];e:{qi=se,br=ge,qr=Oe;var so=nr.gb;yi=nr.na,ci=nr.P,wo=nr.Sa,pa=22,E(qi!=null),E(qr!=null),ii=br[0];var Ha=qr[0];for(E(yi!=null),E(wo!=null),yi[0]=null,ci[0]=null,wo[0]=0;;){if(br[0]=ii,qr[0]=Ha,8>Ha){br=7;break e}var TA=Io(qi,ii+4);if(4294967286<TA){br=3;break e}var ga=8+TA+1&-2;if(pa+=ga,0<so&&pa>so){br=3;break e}if(!x(qi,ii,"VP8 ")||!x(qi,ii,"VP8L")){br=0;break e}if(Ha[0]<ga){br=7;break e}x(qi,ii,"ALPH")||(yi[0]=qi,ci[0]=ii+8,wo[0]=TA),ii+=ga,Ha-=ga}}if(Oe=Oe[0],nr.na=nr.na[0],nr.P=nr.P[0],nr.Sa=nr.Sa[0],br!=0)break}Oe=[Oe],nr.Ja=[nr.Ja],nr.xa=[nr.xa];e:if(so=se,br=ge,qr=Oe,yi=nr.gb[0],ci=nr.Ja,wo=nr.xa,qi=br[0],ii=!x(so,qi,"VP8 "),pa=!x(so,qi,"VP8L"),E(so!=null),E(qr!=null),E(ci!=null),E(wo!=null),8>qr[0])br=7;else{if(ii||pa){if(so=Io(so,qi+4),12<=yi&&so>yi-12){br=3;break e}if(fn&&so>qr[0]-8){br=7;break e}ci[0]=so,br[0]+=8,qr[0]-=8,wo[0]=pa}else wo[0]=5<=qr[0]&&so[qi+0]==47&&!(so[qi+4]>>5),ci[0]=qr[0];br=0}if(Oe=Oe[0],nr.Ja=nr.Ja[0],nr.xa=nr.xa[0],ge=ge[0],br!=0)break;if(4294967286<nr.Ja)return 3;if(Tt==null||Yr||(Tt[0]=nr.xa?2:1),bt=[bt],fr=[fr],nr.xa){if(5>Oe){br=7;break}Tt=bt,fn=fr,Yr=mt,se==null||5>Oe?se=0:5<=Oe&&se[ge+0]==47&&!(se[ge+4]>>5)?(qr=[0],so=[0],yi=[0],Kr(ci=new wn,se,ge,Oe),Rf(ci,qr,so,yi)?(Tt!=null&&(Tt[0]=qr[0]),fn!=null&&(fn[0]=so[0]),Yr!=null&&(Yr[0]=yi[0]),se=1):se=0):se=0}else{if(10>Oe){br=7;break}Tt=fr,se==null||10>Oe||!lm(se,ge+3,Oe-3)?se=0:(fn=se[ge+0]|se[ge+1]<<8|se[ge+2]<<16,Yr=16383&(se[ge+7]<<8|se[ge+6]),se=16383&(se[ge+9]<<8|se[ge+8]),1&fn||3<(fn>>1&7)||!(fn>>4&1)||fn>>5>=nr.Ja||!Yr||!se?se=0:(bt&&(bt[0]=Yr),Tt&&(Tt[0]=se),se=1))}if(!se||(bt=bt[0],fr=fr[0],Cr&&(cn[0]!=bt||Yn[0]!=fr)))return 3;Wt!=null&&(Wt[0]=nr,Wt.offset=ge-Wt.w,E(4294967286>ge-Wt.w),E(Wt.offset==Wt.ha-Oe));break}return br==0||br==7&&Cr&&Wt==null?(mt!=null&&(mt[0]|=nr.na!=null&&0<nr.na.length),_e!=null&&(_e[0]=bt),st!=null&&(st[0]=fr),0):br}function Qg(se,ge,Oe){var _e=ge.width,st=ge.height,mt=0,bt=0,Tt=_e,Wt=st;if(ge.Da=se!=null&&0<se.Da,ge.Da&&(Tt=se.cd,Wt=se.bd,mt=se.v,bt=se.j,11>Oe||(mt&=-2,bt&=-2),0>mt||0>bt||0>=Tt||0>=Wt||mt+Tt>_e||bt+Wt>st))return 0;if(ge.v=mt,ge.j=bt,ge.va=mt+Tt,ge.o=bt+Wt,ge.U=Tt,ge.T=Wt,ge.da=se!=null&&0<se.da,ge.da){if(!_o(Tt,Wt,Oe=[se.ib],mt=[se.hb]))return 0;ge.ib=Oe[0],ge.hb=mt[0]}return ge.ob=se!=null&&se.ob,ge.Kb=se==null||!se.Sd,ge.da&&(ge.ob=ge.ib<3*_e/4&&ge.hb<3*st/4,ge.Kb=0),1}function Mg(se){if(se==null)return 2;if(11>se.S){var ge=se.f.RGBA;ge.fb+=(se.height-1)*ge.A,ge.A=-ge.A}else ge=se.f.kb,se=se.height,ge.O+=(se-1)*ge.fa,ge.fa=-ge.fa,ge.N+=(se-1>>1)*ge.Ab,ge.Ab=-ge.Ab,ge.W+=(se-1>>1)*ge.Db,ge.Db=-ge.Db,ge.F!=null&&(ge.J+=(se-1)*ge.lb,ge.lb=-ge.lb);return 0}function Qd(se,ge,Oe,_e){if(_e==null||0>=se||0>=ge)return 2;if(Oe!=null){if(Oe.Da){var st=Oe.cd,mt=Oe.bd,bt=-2&Oe.v,Tt=-2&Oe.j;if(0>bt||0>Tt||0>=st||0>=mt||bt+st>se||Tt+mt>ge)return 2;se=st,ge=mt}if(Oe.da){if(!_o(se,ge,st=[Oe.ib],mt=[Oe.hb]))return 2;se=st[0],ge=mt[0]}}_e.width=se,_e.height=ge;e:{var Wt=_e.width,cn=_e.height;if(se=_e.S,0>=Wt||0>=cn||!(se>=xm&&13>se))se=2;else{if(0>=_e.Rd&&_e.sd==null){bt=mt=st=ge=0;var Yn=(Tt=Wt*pv[se])*cn;if(11>se||(mt=(cn+1)/2*(ge=(Wt+1)/2),se==12&&(bt=(st=Wt)*cn)),(cn=ae(Yn+2*mt+bt))==null){se=1;break e}_e.sd=cn,11>se?((Wt=_e.f.RGBA).eb=cn,Wt.fb=0,Wt.A=Tt,Wt.size=Yn):((Wt=_e.f.kb).y=cn,Wt.O=0,Wt.fa=Tt,Wt.Fd=Yn,Wt.f=cn,Wt.N=0+Yn,Wt.Ab=ge,Wt.Cd=mt,Wt.ea=cn,Wt.W=0+Yn+mt,Wt.Db=ge,Wt.Ed=mt,se==12&&(Wt.F=cn,Wt.J=0+Yn+2*mt),Wt.Tc=bt,Wt.lb=st)}if(ge=1,st=_e.S,mt=_e.width,bt=_e.height,st>=xm&&13>st)if(11>st)se=_e.f.RGBA,ge&=(Tt=Math.abs(se.A))*(bt-1)+mt<=se.size,ge&=Tt>=mt*pv[st],ge&=se.eb!=null;else{se=_e.f.kb,Tt=(mt+1)/2,Yn=(bt+1)/2,Wt=Math.abs(se.fa),cn=Math.abs(se.Ab);var Cr=Math.abs(se.Db),fn=Math.abs(se.lb),nr=fn*(bt-1)+mt;ge&=Wt*(bt-1)+mt<=se.Fd,ge&=cn*(Yn-1)+Tt<=se.Cd,ge=(ge&=Cr*(Yn-1)+Tt<=se.Ed)&Wt>=mt&cn>=Tt&Cr>=Tt,ge&=se.y!=null,ge&=se.f!=null,ge&=se.ea!=null,st==12&&(ge&=fn>=mt,ge&=nr<=se.Tc,ge&=se.F!=null)}else ge=0;se=ge?0:2}}return se!=0||Oe!=null&&Oe.fd&&(se=Mg(_e)),se}var Vh=64,lu=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],uu=24,Md=32,Jf=8,_d=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];no("Predictor0","PredictorAdd0"),Bn.Predictor0=function(){return 4278190080},Bn.Predictor1=function(se){return se},Bn.Predictor2=function(se,ge,Oe){return ge[Oe+0]},Bn.Predictor3=function(se,ge,Oe){return ge[Oe+1]},Bn.Predictor4=function(se,ge,Oe){return ge[Oe-1]},Bn.Predictor5=function(se,ge,Oe){return Uo(Uo(se,ge[Oe+1]),ge[Oe+0])},Bn.Predictor6=function(se,ge,Oe){return Uo(se,ge[Oe-1])},Bn.Predictor7=function(se,ge,Oe){return Uo(se,ge[Oe+0])},Bn.Predictor8=function(se,ge,Oe){return Uo(ge[Oe-1],ge[Oe+0])},Bn.Predictor9=function(se,ge,Oe){return Uo(ge[Oe+0],ge[Oe+1])},Bn.Predictor10=function(se,ge,Oe){return Uo(Uo(se,ge[Oe-1]),Uo(ge[Oe+0],ge[Oe+1]))},Bn.Predictor11=function(se,ge,Oe){var _e=ge[Oe+0];return 0>=oa(_e>>24&255,se>>24&255,(ge=ge[Oe-1])>>24&255)+oa(_e>>16&255,se>>16&255,ge>>16&255)+oa(_e>>8&255,se>>8&255,ge>>8&255)+oa(255&_e,255&se,255&ge)?_e:se},Bn.Predictor12=function(se,ge,Oe){var _e=ge[Oe+0];return(is((se>>24&255)+(_e>>24&255)-((ge=ge[Oe-1])>>24&255))<<24|is((se>>16&255)+(_e>>16&255)-(ge>>16&255))<<16|is((se>>8&255)+(_e>>8&255)-(ge>>8&255))<<8|is((255&se)+(255&_e)-(255&ge)))>>>0},Bn.Predictor13=function(se,ge,Oe){var _e=ge[Oe-1];return(Ta((se=Uo(se,ge[Oe+0]))>>24&255,_e>>24&255)<<24|Ta(se>>16&255,_e>>16&255)<<16|Ta(se>>8&255,_e>>8&255)<<8|Ta(255&se,255&_e))>>>0};var _g=Bn.PredictorAdd0;Bn.PredictorAdd1=ka,no("Predictor2","PredictorAdd2"),no("Predictor3","PredictorAdd3"),no("Predictor4","PredictorAdd4"),no("Predictor5","PredictorAdd5"),no("Predictor6","PredictorAdd6"),no("Predictor7","PredictorAdd7"),no("Predictor8","PredictorAdd8"),no("Predictor9","PredictorAdd9"),no("Predictor10","PredictorAdd10"),no("Predictor11","PredictorAdd11"),no("Predictor12","PredictorAdd12"),no("Predictor13","PredictorAdd13");var Vp=Bn.PredictorAdd2;xo("ColorIndexInverseTransform","MapARGB","32b",function(se){return se>>8&255},function(se){return se}),xo("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(se){return se},function(se){return se>>8&255});var dA,bm=Bn.ColorIndexInverseTransform,of=Bn.MapARGB,af=Bn.VP8LColorIndexInverseTransformAlpha,kg=Bn.MapAlpha,Hg=Bn.VP8LPredictorsAdd=[];Hg.length=16,(Bn.VP8LPredictors=[]).length=16,(Bn.VP8LPredictorsAdd_C=[]).length=16,(Bn.VP8LPredictors_C=[]).length=16;var Rg,jg,kd,Hd,Rd,Zh,jd,$h,zu,sf,as,ds,hA,PA,qf,zg,Zp,Bm,z0,K0,W0,G0,V0,Z0,Kg,$0,X0,Y0,J0=ae(511),q0=ae(2041),ev=ae(225),tv=ae(767),nv=0,A0=q0,Cm=ev,cu=tv,Ku=J0,xm=0,Em=1,rv=2,Sm=3,Fm=4,l0=5,iv=6,u0=7,c0=8,Im=9,f0=10,Zv=[2,3,7],$v=[3,3,11],ov=[280,256,256,256,40],Xv=[0,1,1,1,0],Yv=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Jv=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],qv=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],e1=8,d0=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],h0=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],Wg=null,t1=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],n1=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],av=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],r1=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],i1=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],o1=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],a1=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],zd=[],yc=[],ed=[],s1=1,sv=2,Kd=[],Wu=[];Xf("UpsampleRgbLinePair",Td,3),Xf("UpsampleBgrLinePair",al,3),Xf("UpsampleRgbaLinePair",Tl,4),Xf("UpsampleBgraLinePair",Tg,4),Xf("UpsampleArgbLinePair",Pg,4),Xf("UpsampleRgba4444LinePair",Wh,2),Xf("UpsampleRgb565LinePair",Kh,2);var A1=Bn.UpsampleRgbLinePair,l1=Bn.UpsampleBgrLinePair,Av=Bn.UpsampleRgbaLinePair,lv=Bn.UpsampleBgraLinePair,uv=Bn.UpsampleArgbLinePair,cv=Bn.UpsampleRgba4444LinePair,u1=Bn.UpsampleRgb565LinePair,Lm=16,Um=1<<Lm-1,Gg=-227,p0=482,fv=6,c1=(256<<fv)-1,dv=0,f1=ae(256),d1=ae(256),h1=ae(256),p1=ae(256),g1=ae(p0-Gg),m1=ae(p0-Gg);Yf("YuvToRgbRow",Td,3),Yf("YuvToBgrRow",al,3),Yf("YuvToRgbaRow",Tl,4),Yf("YuvToBgraRow",Tg,4),Yf("YuvToArgbRow",Pg,4),Yf("YuvToRgba4444Row",Wh,2),Yf("YuvToRgb565Row",Kh,2);var hv=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Om=[0,2,8],v1=[8,7,6,4,4,2,2,2,1,1,1,1],y1=1;this.WebPDecodeRGBA=function(se,ge,Oe,_e,st){var mt=Em,bt=new ri,Tt=new La;bt.ba=Tt,Tt.S=mt,Tt.width=[Tt.width],Tt.height=[Tt.height];var Wt=Tt.width,cn=Tt.height,Yn=new jo;if(Yn==null||se==null)var Cr=2;else E(Yn!=null),Cr=Gh(se,ge,Oe,Yn.width,Yn.height,Yn.Pd,Yn.Qd,Yn.format,null);if(Cr!=0?Wt=0:(Wt!=null&&(Wt[0]=Yn.width[0]),cn!=null&&(cn[0]=Yn.height[0]),Wt=1),Wt){Tt.width=Tt.width[0],Tt.height=Tt.height[0],_e!=null&&(_e[0]=Tt.width),st!=null&&(st[0]=Tt.height);e:{if(_e=new Hp,(st=new ui).data=se,st.w=ge,st.ha=Oe,st.kd=1,ge=[0],E(st!=null),((se=Gh(st.data,st.w,st.ha,null,null,null,ge,null,st))==0||se==7)&&ge[0]&&(se=4),(ge=se)==0){if(E(bt!=null),_e.data=st.data,_e.w=st.w+st.offset,_e.ha=st.ha-st.offset,_e.put=zo,_e.ac=Jc,_e.bc=Hf,_e.ma=bt,st.xa){if((se=Th())==null){bt=1;break e}if(function(fn,nr){var fr=[0],Yr=[0],br=[0];t:for(;;){if(fn==null)return 0;if(nr==null)return fn.a=2,0;if(fn.l=nr,fn.a=0,Kr(fn.m,nr.data,nr.w,nr.ha),!Rf(fn.m,fr,Yr,br)){fn.a=3;break t}if(fn.xb=sv,nr.width=fr[0],nr.height=Yr[0],!ef(fr[0],Yr[0],1,fn,null))break t;return 1}return E(fn.a!=0),0}(se,_e)){if(_e=(ge=Qd(_e.width,_e.height,bt.Oa,bt.ba))==0){t:{_e=se;n:for(;;){if(_e==null){_e=0;break t}if(E(_e.s.yc!=null),E(_e.s.Ya!=null),E(0<_e.s.Wb),E((Oe=_e.l)!=null),E((st=Oe.ma)!=null),_e.xb!=0){if(_e.ca=st.ba,_e.tb=st.tb,E(_e.ca!=null),!Qg(st.Oa,Oe,Sm)){_e.a=2;break n}if(!Qh(_e,Oe.width)||Oe.da)break n;if((Oe.da||Go(_e.ca.S))&&vc(),11>_e.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),_e.ca.f.kb.F!=null&&vc()),_e.Pb&&0<_e.s.ua&&_e.s.vb.X==null&&!sn(_e.s.vb,_e.s.Wa.Xa)){_e.a=1;break n}_e.xb=0}if(!gc(_e,_e.V,_e.Ba,_e.c,_e.i,Oe.o,Nd))break n;st.Dc=_e.Ma,_e=1;break t}E(_e.a!=0),_e=0}_e=!_e}_e&&(ge=se.a)}else ge=se.a}else{if((se=new Vm)==null){bt=1;break e}if(se.Fa=st.na,se.P=st.P,se.qc=st.Sa,nf(se,_e)){if((ge=Qd(_e.width,_e.height,bt.Oa,bt.ba))==0){if(se.Aa=0,Oe=bt.Oa,E((st=se)!=null),Oe!=null){if(0<(Wt=0>(Wt=Oe.Md)?0:100<Wt?255:255*Wt/100)){for(cn=Yn=0;4>cn;++cn)12>(Cr=st.pb[cn]).lc&&(Cr.ia=Wt*v1[0>Cr.lc?0:Cr.lc]>>3),Yn|=Cr.ia;Yn&&(alert("todo:VP8InitRandom"),st.ia=1)}st.Ga=Oe.Id,100<st.Ga?st.Ga=100:0>st.Ga&&(st.Ga=0)}(function(fn,nr){if(fn==null)return 0;if(nr==null)return BA(fn,2,"NULL VP8Io parameter in VP8Decode().");if(!fn.cb&&!nf(fn,nr))return 0;if(E(fn.cb),nr.ac==null||nr.ac(nr)){nr.ob&&(fn.L=0);var fr=Om[fn.L];if(fn.L==2?(fn.yb=0,fn.zb=0):(fn.yb=nr.v-fr>>4,fn.zb=nr.j-fr>>4,0>fn.yb&&(fn.yb=0),0>fn.zb&&(fn.zb=0)),fn.Va=nr.o+15+fr>>4,fn.Hb=nr.va+15+fr>>4,fn.Hb>fn.za&&(fn.Hb=fn.za),fn.Va>fn.Ub&&(fn.Va=fn.Ub),0<fn.L){var Yr=fn.ed;for(fr=0;4>fr;++fr){var br;if(fn.Qa.Cb){var qr=fn.Qa.Lb[fr];fn.Qa.Fb||(qr+=Yr.Tb)}else qr=Yr.Tb;for(br=0;1>=br;++br){var ii=fn.gd[fr][br],yi=qr;if(Yr.Pc&&(yi+=Yr.vd[0],br&&(yi+=Yr.od[0])),0<(yi=0>yi?0:63<yi?63:yi)){var ci=yi;0<Yr.wb&&(ci=4<Yr.wb?ci>>2:ci>>1)>9-Yr.wb&&(ci=9-Yr.wb),1>ci&&(ci=1),ii.dd=ci,ii.tc=2*yi+ci,ii.ld=40<=yi?2:15<=yi?1:0}else ii.tc=0;ii.La=br}}}fr=0}else BA(fn,6,"Frame setup failed"),fr=fn.a;if(fr=fr==0){if(fr){fn.$c=0,0<fn.Aa||(fn.Ic=y1);t:{fr=fn.Ic,Yr=4*(ci=fn.za);var wo=32*ci,qi=ci+1,pa=0<fn.L?ci*(0<fn.Aa?2:1):0,so=(fn.Aa==2?2:1)*ci;if((ii=Yr+832+(br=3*(16*fr+Om[fn.L])/2*wo)+(qr=fn.Fa!=null&&0<fn.Fa.length?fn.Kc.c*fn.Kc.i:0))!=ii)fr=0;else{if(ii>fn.Vb){if(fn.Vb=0,fn.Ec=ae(ii),fn.Fc=0,fn.Ec==null){fr=BA(fn,1,"no memory during frame initialization.");break t}fn.Vb=ii}ii=fn.Ec,yi=fn.Fc,fn.Ac=ii,fn.Bc=yi,yi+=Yr,fn.Gd=we(wo,sm),fn.Hd=0,fn.rb=we(qi+1,Cg),fn.sb=1,fn.wa=pa?we(pa,Hu):null,fn.Y=0,fn.D.Nb=0,fn.D.wa=fn.wa,fn.D.Y=fn.Y,0<fn.Aa&&(fn.D.Y+=ci),E(!0),fn.oc=ii,fn.pc=yi,yi+=832,fn.ya=we(so,xg),fn.aa=0,fn.D.ya=fn.ya,fn.D.aa=fn.aa,fn.Aa==2&&(fn.D.aa+=ci),fn.R=16*ci,fn.B=8*ci,ci=(wo=Om[fn.L])*fn.R,wo=wo/2*fn.B,fn.sa=ii,fn.ta=yi+ci,fn.qa=fn.sa,fn.ra=fn.ta+16*fr*fn.R+wo,fn.Ha=fn.qa,fn.Ia=fn.ra+8*fr*fn.B+wo,fn.$c=0,yi+=br,fn.mb=qr?ii:null,fn.nb=qr?yi:null,E(yi+qr<=fn.Fc+fn.Vb),um(fn),re(fn.Ac,fn.Bc,0,Yr),fr=1}}if(fr){if(nr.ka=0,nr.y=fn.sa,nr.O=fn.ta,nr.f=fn.qa,nr.N=fn.ra,nr.ea=fn.Ha,nr.Vd=fn.Ia,nr.fa=fn.R,nr.Rc=fn.B,nr.F=null,nr.J=0,!nv){for(fr=-255;255>=fr;++fr)J0[255+fr]=0>fr?-fr:fr;for(fr=-1020;1020>=fr;++fr)q0[1020+fr]=-128>fr?-128:127<fr?127:fr;for(fr=-112;112>=fr;++fr)ev[112+fr]=-16>fr?-16:15<fr?15:fr;for(fr=-255;510>=fr;++fr)tv[255+fr]=0>fr?0:255<fr?255:fr;nv=1}jd=jp,$h=$m,sf=rf,as=fm,ds=dm,zu=Zm,hA=vm,PA=Rh,qf=it,zg=hn,Zp=ym,Bm=Ce,z0=kn,K0=Ar,W0=Hh,G0=Dg,V0=gm,Z0=mm,yc[0]=r0,yc[1]=Xm,yc[2]=t0,yc[3]=n0,yc[4]=zf,yc[5]=i0,yc[6]=Kf,yc[7]=o0,yc[8]=Fg,yc[9]=zp,zd[0]=qm,zd[1]=Jm,zd[2]=Eg,zd[3]=hm,zd[4]=_h,zd[5]=Sg,zd[6]=e0,ed[0]=s0,ed[1]=Ym,ed[2]=kh,ed[3]=a0,ed[4]=Lg,ed[5]=Ig,ed[6]=pm,fr=1}else fr=0}fr&&(fr=function(Ha,TA){for(Ha.M=0;Ha.M<Ha.Va;++Ha.M){var ga,Ao=Ha.Jc[Ha.M&Ha.Xb],Ni=Ha.m,pA=Ha;for(ga=0;ga<pA.za;++ga){var sa=Ni,za=pA,Fs=za.Ac,sl=za.Bc+4*ga,Ql=za.zc,Ys=za.ya[za.aa+ga];if(za.Qa.Bb?Ys.$b=oi(sa,za.Pa.jb[0])?2+oi(sa,za.Pa.jb[2]):oi(sa,za.Pa.jb[1]):Ys.$b=0,za.kc&&(Ys.Ad=oi(sa,za.Bd)),Ys.Za=!oi(sa,145)+0,Ys.Za){var bl=Ys.Ob,Ml=0;for(za=0;4>za;++za){var QA,Ga=Ql[0+za];for(QA=0;4>QA;++QA){Ga=i1[Fs[sl+QA]][Ga];for(var ss=av[oi(sa,Ga[0])];0<ss;)ss=av[2*ss+oi(sa,Ga[ss])];Ga=-ss,Fs[sl+QA]=Ga}te(bl,Ml,Fs,sl,4),Ml+=4,Ql[0+za]=Ga}}else Ga=oi(sa,156)?oi(sa,128)?1:3:oi(sa,163)?2:0,Ys.Ob[0]=Ga,re(Fs,sl,Ga,4),re(Ql,0,Ga,4);Ys.Dd=oi(sa,142)?oi(sa,114)?oi(sa,183)?1:3:2:0}if(pA.m.Ka)return BA(Ha,7,"Premature end-of-partition0 encountered.");for(;Ha.ja<Ha.za;++Ha.ja){if(pA=Ao,sa=(Ni=Ha).rb[Ni.sb-1],Fs=Ni.rb[Ni.sb+Ni.ja],ga=Ni.ya[Ni.aa+Ni.ja],sl=Ni.kc?ga.Ad:0)sa.la=Fs.la=0,ga.Za||(sa.Na=Fs.Na=0),ga.Hc=0,ga.Gc=0,ga.ia=0;else{var Js,As;if(sa=Fs,Fs=pA,sl=Ni.Pa.Xc,Ql=Ni.ya[Ni.aa+Ni.ja],Ys=Ni.pb[Ql.$b],za=Ql.ad,bl=0,Ml=Ni.rb[Ni.sb-1],Ga=QA=0,re(za,bl,0,384),Ql.Za)var Al=0,wc=sl[3];else{ss=ae(16);var gA=sa.Na+Ml.Na;if(gA=Wg(Fs,sl[1],gA,Ys.Eb,0,ss,0),sa.Na=Ml.Na=(0<gA)+0,1<gA)jd(ss,0,za,bl);else{var Wl=ss[0]+3>>3;for(ss=0;256>ss;ss+=16)za[bl+ss]=Wl}Al=1,wc=sl[0]}var hs=15&sa.la,MA=15&Ml.la;for(ss=0;4>ss;++ss){var fu=1&MA;for(Wl=As=0;4>Wl;++Wl)hs=hs>>1|(fu=(gA=Wg(Fs,wc,gA=fu+(1&hs),Ys.Sc,Al,za,bl))>Al)<<7,As=As<<2|(3<gA?3:1<gA?2:za[bl+0]!=0),bl+=16;hs>>=4,MA=MA>>1|fu<<7,QA=(QA<<8|As)>>>0}for(wc=hs,Al=MA>>4,Js=0;4>Js;Js+=2){for(As=0,hs=sa.la>>4+Js,MA=Ml.la>>4+Js,ss=0;2>ss;++ss){for(fu=1&MA,Wl=0;2>Wl;++Wl)gA=fu+(1&hs),hs=hs>>1|(fu=0<(gA=Wg(Fs,sl[2],gA,Ys.Qc,0,za,bl)))<<3,As=As<<2|(3<gA?3:1<gA?2:za[bl+0]!=0),bl+=16;hs>>=2,MA=MA>>1|fu<<5}Ga|=As<<4*Js,wc|=hs<<4<<Js,Al|=(240&MA)<<Js}sa.la=wc,Ml.la=Al,Ql.Hc=QA,Ql.Gc=Ga,Ql.ia=43690&Ga?0:Ys.ia,sl=!(QA|Ga)}if(0<Ni.L&&(Ni.wa[Ni.Y+Ni.ja]=Ni.gd[ga.$b][ga.Za],Ni.wa[Ni.Y+Ni.ja].La|=!sl),pA.Ka)return BA(Ha,7,"Premature end-of-file encountered.")}if(um(Ha),Ni=TA,pA=1,ga=(Ao=Ha).D,sa=0<Ao.L&&Ao.M>=Ao.zb&&Ao.M<=Ao.Va,Ao.Aa==0)t:{if(ga.M=Ao.M,ga.uc=sa,ju(Ao,ga),pA=1,ga=(As=Ao.D).Nb,sa=(Ga=Om[Ao.L])*Ao.R,Fs=Ga/2*Ao.B,ss=16*ga*Ao.R,Wl=8*ga*Ao.B,sl=Ao.sa,Ql=Ao.ta-sa+ss,Ys=Ao.qa,za=Ao.ra-Fs+Wl,bl=Ao.Ha,Ml=Ao.Ia-Fs+Wl,MA=(hs=As.M)==0,QA=hs>=Ao.Va-1,Ao.Aa==2&&ju(Ao,As),As.uc)for(fu=(gA=Ao).D.M,E(gA.D.uc),As=gA.yb;As<gA.Hb;++As){Al=As,wc=fu;var _l=(du=(ll=gA).D).Nb;Js=ll.R;var du=du.wa[du.Y+Al],hu=ll.sa,Gl=ll.ta+16*_l*Js+16*Al,pu=du.dd,ys=du.tc;if(ys!=0)if(E(3<=ys),ll.L==1)0<Al&&G0(hu,Gl,Js,ys+4),du.La&&Z0(hu,Gl,Js,ys),0<wc&&W0(hu,Gl,Js,ys+4),du.La&&V0(hu,Gl,Js,ys);else{var gu=ll.B,bc=ll.qa,Xh=ll.ra+8*_l*gu+8*Al,td=ll.Ha,ll=ll.Ia+8*_l*gu+8*Al;_l=du.ld,0<Al&&(PA(hu,Gl,Js,ys+4,pu,_l),zg(bc,Xh,td,ll,gu,ys+4,pu,_l)),du.La&&(Bm(hu,Gl,Js,ys,pu,_l),K0(bc,Xh,td,ll,gu,ys,pu,_l)),0<wc&&(hA(hu,Gl,Js,ys+4,pu,_l),qf(bc,Xh,td,ll,gu,ys+4,pu,_l)),du.La&&(Zp(hu,Gl,Js,ys,pu,_l),z0(bc,Xh,td,ll,gu,ys,pu,_l))}}if(Ao.ia&&alert("todo:DitherRow"),Ni.put!=null){if(As=16*hs,hs=16*(hs+1),MA?(Ni.y=Ao.sa,Ni.O=Ao.ta+ss,Ni.f=Ao.qa,Ni.N=Ao.ra+Wl,Ni.ea=Ao.Ha,Ni.W=Ao.Ia+Wl):(As-=Ga,Ni.y=sl,Ni.O=Ql,Ni.f=Ys,Ni.N=za,Ni.ea=bl,Ni.W=Ml),QA||(hs-=Ga),hs>Ni.o&&(hs=Ni.o),Ni.F=null,Ni.J=null,Ao.Fa!=null&&0<Ao.Fa.length&&As<hs&&(Ni.J=vs(Ao,Ni,As,hs-As),Ni.F=Ao.mb,Ni.F==null&&Ni.F.length==0)){pA=BA(Ao,3,"Could not decode alpha data.");break t}As<Ni.j&&(Ga=Ni.j-As,As=Ni.j,E(!(1&Ga)),Ni.O+=Ao.R*Ga,Ni.N+=Ao.B*(Ga>>1),Ni.W+=Ao.B*(Ga>>1),Ni.F!=null&&(Ni.J+=Ni.width*Ga)),As<hs&&(Ni.O+=Ni.v,Ni.N+=Ni.v>>1,Ni.W+=Ni.v>>1,Ni.F!=null&&(Ni.J+=Ni.v),Ni.ka=As-Ni.j,Ni.U=Ni.va-Ni.v,Ni.T=hs-As,pA=Ni.put(Ni))}ga+1!=Ao.Ic||QA||(te(Ao.sa,Ao.ta-sa,sl,Ql+16*Ao.R,sa),te(Ao.qa,Ao.ra-Fs,Ys,za+8*Ao.B,Fs),te(Ao.Ha,Ao.Ia-Fs,bl,Ml+8*Ao.B,Fs))}if(!pA)return BA(Ha,6,"Output aborted.")}return 1}(fn,nr)),nr.bc!=null&&nr.bc(nr),fr&=1}return fr?(fn.cb=0,fr):0})(se,_e)||(ge=se.a)}}else ge=se.a}ge==0&&bt.Oa!=null&&bt.Oa.fd&&(ge=Mg(bt.ba))}bt=ge}mt=bt!=0?null:11>mt?Tt.f.RGBA.eb:Tt.f.kb.y}else mt=null;return mt};var pv=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function Ee(Bn,ur){for(var Ut="",an=0;an<4;an++)Ut+=String.fromCharCode(Bn[ur++]);return Ut}function Ne(Bn,ur){return Bn[ur+0]|Bn[ur+1]<<8}function et(Bn,ur){return(Bn[ur+0]|Bn[ur+1]<<8|Bn[ur+2]<<16)>>>0}function ht(Bn,ur){return(Bn[ur+0]|Bn[ur+1]<<8|Bn[ur+2]<<16|Bn[ur+3]<<24)>>>0}new Be;var De=[0],tn=[0],$t=[],on=new Be,Ot=y,jn=function(Bn,ur){var Ut={},an=0,Hn=!1,Pn=0,Ir=0;if(Ut.frames=[],!function(xt,wn){for(var On=0;On<4;On++)if(xt[wn+On]!="RIFF".charCodeAt(On))return!0;return!1}(Bn,ur)){for(ht(Bn,ur+=4),ur+=8;ur<Bn.length;){var Tr=Ee(Bn,ur),_r=ht(Bn,ur+=4);ur+=4;var Br=_r+(1&_r);switch(Tr){case"VP8 ":case"VP8L":Ut.frames[an]===void 0&&(Ut.frames[an]={}),(li=Ut.frames[an]).src_off=Hn?Ir:ur-8,li.src_size=Pn+_r+8,an++,Hn&&(Hn=!1,Pn=0,Ir=0);break;case"VP8X":(li=Ut.header={}).feature_flags=Bn[ur];var Kr=ur+4;li.canvas_width=1+et(Bn,Kr),Kr+=3,li.canvas_height=1+et(Bn,Kr),Kr+=3;break;case"ALPH":Hn=!0,Pn=Br+8,Ir=ur-8;break;case"ANIM":(li=Ut.header).bgcolor=ht(Bn,ur),Kr=ur+4,li.loop_count=Ne(Bn,Kr),Kr+=2;break;case"ANMF":var Si,li;(li=Ut.frames[an]={}).offset_x=2*et(Bn,ur),ur+=3,li.offset_y=2*et(Bn,ur),ur+=3,li.width=1+et(Bn,ur),ur+=3,li.height=1+et(Bn,ur),ur+=3,li.duration=et(Bn,ur),ur+=3,Si=Bn[ur++],li.dispose=1&Si,li.blend=Si>>1&1}Tr!="ANMF"&&(ur+=Br)}return Ut}}(Ot,0);jn.response=Ot,jn.rgbaoutput=!0,jn.dataurl=!1;var Dn=jn.header?jn.header:null,bn=jn.frames?jn.frames:null;if(Dn){Dn.loop_counter=Dn.loop_count,De=[Dn.canvas_height],tn=[Dn.canvas_width];for(var Er=0;Er<bn.length&&bn[Er].blend!=0;Er++);}var Jr=bn[0],Qr=on.WebPDecodeRGBA(Ot,Jr.src_off,Jr.src_size,tn,De);Jr.rgba=Qr,Jr.imgwidth=tn[0],Jr.imgheight=De[0];for(var qn=0;qn<tn[0]*De[0]*4;qn++)$t[qn]=Qr[qn];return this.width=tn,this.height=De,this.data=$t,this}(function(y){var E,x,te,re,ae,we,ve,Be,Ee,Ne=function(xt){return xt=xt||{},this.isStrokeTransparent=xt.isStrokeTransparent||!1,this.strokeOpacity=xt.strokeOpacity||1,this.strokeStyle=xt.strokeStyle||"#000000",this.fillStyle=xt.fillStyle||"#000000",this.isFillTransparent=xt.isFillTransparent||!1,this.fillOpacity=xt.fillOpacity||1,this.font=xt.font||"10px sans-serif",this.textBaseline=xt.textBaseline||"alphabetic",this.textAlign=xt.textAlign||"left",this.lineWidth=xt.lineWidth||1,this.lineJoin=xt.lineJoin||"miter",this.lineCap=xt.lineCap||"butt",this.path=xt.path||[],this.transform=xt.transform!==void 0?xt.transform.clone():new Be,this.globalCompositeOperation=xt.globalCompositeOperation||"normal",this.globalAlpha=xt.globalAlpha||1,this.clip_path=xt.clip_path||[],this.currentPoint=xt.currentPoint||new we,this.miterLimit=xt.miterLimit||10,this.lastPoint=xt.lastPoint||new we,this.lineDashOffset=xt.lineDashOffset||0,this.lineDash=xt.lineDash||[],this.margin=xt.margin||[0,0,0,0],this.prevPageLastElemOffset=xt.prevPageLastElemOffset||0,this.ignoreClearRect=typeof xt.ignoreClearRect!="boolean"||xt.ignoreClearRect,this};y.events.push(["initialized",function(){this.context2d=new et(this),E=this.internal.f2,x=this.internal.getCoordinateString,te=this.internal.getVerticalCoordinateString,re=this.internal.getHorizontalCoordinate,ae=this.internal.getVerticalCoordinate,we=this.internal.Point,ve=this.internal.Rectangle,Be=this.internal.Matrix,Ee=new Ne}]);var et=function(xt){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var wn=xt;Object.defineProperty(this,"pdf",{get:function(){return wn}});var On=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return On},set:function(sn){On=!!sn}});var Gn=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return Gn},set:function(sn){Gn=!!sn}});var or=0;Object.defineProperty(this,"posX",{get:function(){return or},set:function(sn){isNaN(sn)||(or=sn)}});var yr=0;Object.defineProperty(this,"posY",{get:function(){return yr},set:function(sn){isNaN(sn)||(yr=sn)}}),Object.defineProperty(this,"margin",{get:function(){return Ee.margin},set:function(sn){var ji;typeof sn=="number"?ji=[sn,sn,sn,sn]:((ji=new Array(4))[0]=sn[0],ji[1]=sn.length>=2?sn[1]:ji[0],ji[2]=sn.length>=3?sn[2]:ji[0],ji[3]=sn.length>=4?sn[3]:ji[1]),Ee.margin=ji}});var Mr=!1;Object.defineProperty(this,"autoPaging",{get:function(){return Mr},set:function(sn){Mr=sn}});var Hr=0;Object.defineProperty(this,"lastBreak",{get:function(){return Hr},set:function(sn){Hr=sn}});var oi=[];Object.defineProperty(this,"pageBreaks",{get:function(){return oi},set:function(sn){oi=sn}}),Object.defineProperty(this,"ctx",{get:function(){return Ee},set:function(sn){sn instanceof Ne&&(Ee=sn)}}),Object.defineProperty(this,"path",{get:function(){return Ee.path},set:function(sn){Ee.path=sn}});var wi=[];Object.defineProperty(this,"ctxStack",{get:function(){return wi},set:function(sn){wi=sn}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(sn){var ji;ji=ht(sn),this.ctx.fillStyle=ji.style,this.ctx.isFillTransparent=ji.a===0,this.ctx.fillOpacity=ji.a,this.pdf.setFillColor(ji.r,ji.g,ji.b,{a:ji.a}),this.pdf.setTextColor(ji.r,ji.g,ji.b,{a:ji.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(sn){var ji=ht(sn);this.ctx.strokeStyle=ji.style,this.ctx.isStrokeTransparent=ji.a===0,this.ctx.strokeOpacity=ji.a,ji.a===0?this.pdf.setDrawColor(255,255,255):(ji.a,this.pdf.setDrawColor(ji.r,ji.g,ji.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(sn){["butt","round","square"].indexOf(sn)!==-1&&(this.ctx.lineCap=sn,this.pdf.setLineCap(sn))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(sn){isNaN(sn)||(this.ctx.lineWidth=sn,this.pdf.setLineWidth(sn))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(sn){["bevel","round","miter"].indexOf(sn)!==-1&&(this.ctx.lineJoin=sn,this.pdf.setLineJoin(sn))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(sn){isNaN(sn)||(this.ctx.miterLimit=sn,this.pdf.setMiterLimit(sn))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(sn){this.ctx.textBaseline=sn}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(sn){["right","end","center","left","start"].indexOf(sn)!==-1&&(this.ctx.textAlign=sn)}});var Ri=null,_i=null,Io=null;Object.defineProperty(this,"fontFaces",{get:function(){return Io},set:function(sn){Ri=null,_i=null,Io=sn}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(sn){var ji;if(this.ctx.font=sn,(ji=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z0-9]+?)\s*$/i.exec(sn))!==null){var Ca=ji[1];ji[2];var _o=ji[3],gi=ji[4];ji[5];var ko=ji[6],no=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(gi)[2];gi=Math.floor(no==="px"?parseFloat(gi)*this.pdf.internal.scaleFactor:no==="em"?parseFloat(gi)*this.pdf.getFontSize():parseFloat(gi)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(gi);var Mo=function(xo){var fA,Ka,Sa=[],Fa=xo.trim();if(Fa==="")return zm;if(Fa in Zc)return[Zc[Fa]];for(;Fa!=="";){switch(Ka=null,fA=(Fa=$c(Fa)).charAt(0)){case'"':case"'":Ka=cc(Fa.substring(1),fA);break;default:Ka=Od(Fa)}if(Ka===null||(Sa.push(Ka[0]),(Fa=$c(Ka[1]))!==""&&Fa.charAt(0)!==","))return zm;Fa=Fa.replace(/^,/,"")}return Sa}(ko);if(this.fontFaces){var Uo=function(xo,fA){var Ka=xo.getFontList(),Sa=JSON.stringify(Ka);if(Ri===null||_i!==Sa){var Fa=function(Ns){var No=[];return Object.keys(Ns).forEach(function(ms){Ns[ms].forEach(function(Go){var aa=null;switch(Go){case"bold":aa={family:ms,weight:"bold"};break;case"italic":aa={family:ms,style:"italic"};break;case"bolditalic":aa={family:ms,weight:"bold",style:"italic"};break;case"":case"normal":aa={family:ms}}aa!==null&&(aa.ref={name:ms,style:Go},No.push(aa))})}),No}(Ka);Ri=function(Ns){for(var No={},ms=0;ms<Ns.length;++ms){var Go=Kl(Ns[ms]),aa=Go.family,Ps=Go.stretch,La=Go.style,jo=Go.weight;No[aa]=No[aa]||{},No[aa][Ps]=No[aa][Ps]||{},No[aa][Ps][La]=No[aa][Ps][La]||{},No[aa][Ps][La][jo]=Go}return No}(Fa.concat(fA)),_i=Sa}return Ri}(this.pdf,this.fontFaces),is=Mo.map(function(xo){return{family:xo,stretch:"normal",weight:_o,style:Ca}}),Ta=function(xo,fA,Ka){for(var Sa=(Ka=Ka||{}).defaultFontFamily||"times",Fa=Object.assign({},_f,Ka.genericFontFamilies||{}),Ns=null,No=null,ms=0;ms<fA.length;++ms)if(Fa[(Ns=Kl(fA[ms])).family]&&(Ns.family=Fa[Ns.family]),xo.hasOwnProperty(Ns.family)){No=xo[Ns.family];break}if(!(No=No||xo[Sa]))throw new Error("Could not find a font-family for the rule '"+Qu(Ns)+"' and default family '"+Sa+"'.");if(No=function(Go,aa){if(aa[Go])return aa[Go];var Ps=GA[Go],La=Ps<=GA.normal?-1:1,jo=uc(aa,lc,Ps,La);if(!jo)throw new Error("Could not find a matching font-stretch value for "+Go);return jo}(Ns.stretch,No),No=function(Go,aa){if(aa[Go])return aa[Go];for(var Ps=bA[Go],La=0;La<Ps.length;++La)if(aa[Ps[La]])return aa[Ps[La]];throw new Error("Could not find a matching font-style for "+Go)}(Ns.style,No),!(No=function(Go,aa){if(aa[Go])return aa[Go];if(Go===400&&aa[500])return aa[500];if(Go===500&&aa[400])return aa[400];var Ps=Mf[Go],La=uc(aa,rl,Ps,Go<400?-1:1);if(!La)throw new Error("Could not find a matching font-weight for value "+Go);return La}(Ns.weight,No)))throw new Error("Failed to resolve a font for the rule '"+Qu(Ns)+"'.");return No}(Uo,is);this.pdf.setFont(Ta.ref.name,Ta.ref.style)}else{var oa="";(_o==="bold"||parseInt(_o,10)>=700||Ca==="bold")&&(oa="bold"),Ca==="italic"&&(oa+="italic"),oa.length===0&&(oa="normal");for(var ka="",Qa={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},ho=0;ho<Mo.length;ho++){if(this.pdf.internal.getFont(Mo[ho],oa,{noFallback:!0,disableWarning:!0})!==void 0){ka=Mo[ho];break}if(oa==="bolditalic"&&this.pdf.internal.getFont(Mo[ho],"bold",{noFallback:!0,disableWarning:!0})!==void 0)ka=Mo[ho],oa="bold";else if(this.pdf.internal.getFont(Mo[ho],"normal",{noFallback:!0,disableWarning:!0})!==void 0){ka=Mo[ho],oa="normal";break}}if(ka===""){for(var ca=0;ca<Mo.length;ca++)if(Qa[Mo[ca]]){ka=Qa[Mo[ca]];break}}ka=ka===""?"Times":ka,this.pdf.setFont(ka,oa)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(sn){this.ctx.globalCompositeOperation=sn}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(sn){this.ctx.globalAlpha=sn}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(sn){this.ctx.lineDashOffset=sn,li.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(sn){this.ctx.lineDash=sn,li.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(sn){this.ctx.ignoreClearRect=!!sn}})};et.prototype.setLineDash=function(xt){this.lineDash=xt},et.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},et.prototype.fill=function(){bn.call(this,"fill",!1)},et.prototype.stroke=function(){bn.call(this,"stroke",!1)},et.prototype.beginPath=function(){this.path=[{type:"begin"}]},et.prototype.moveTo=function(xt,wn){if(isNaN(xt)||isNaN(wn))throw Pa.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var On=this.ctx.transform.applyToPoint(new we(xt,wn));this.path.push({type:"mt",x:On.x,y:On.y}),this.ctx.lastPoint=new we(xt,wn)},et.prototype.closePath=function(){var xt=new we(0,0),wn=0;for(wn=this.path.length-1;wn!==-1;wn--)if(this.path[wn].type==="begin"&&(0,oe.Z)(this.path[wn+1])==="object"&&typeof this.path[wn+1].x=="number"){xt=new we(this.path[wn+1].x,this.path[wn+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new we(xt.x,xt.y)},et.prototype.lineTo=function(xt,wn){if(isNaN(xt)||isNaN(wn))throw Pa.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var On=this.ctx.transform.applyToPoint(new we(xt,wn));this.path.push({type:"lt",x:On.x,y:On.y}),this.ctx.lastPoint=new we(On.x,On.y)},et.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),bn.call(this,null,!0)},et.prototype.quadraticCurveTo=function(xt,wn,On,Gn){if(isNaN(On)||isNaN(Gn)||isNaN(xt)||isNaN(wn))throw Pa.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var or=this.ctx.transform.applyToPoint(new we(On,Gn)),yr=this.ctx.transform.applyToPoint(new we(xt,wn));this.path.push({type:"qct",x1:yr.x,y1:yr.y,x:or.x,y:or.y}),this.ctx.lastPoint=new we(or.x,or.y)},et.prototype.bezierCurveTo=function(xt,wn,On,Gn,or,yr){if(isNaN(or)||isNaN(yr)||isNaN(xt)||isNaN(wn)||isNaN(On)||isNaN(Gn))throw Pa.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var Mr=this.ctx.transform.applyToPoint(new we(or,yr)),Hr=this.ctx.transform.applyToPoint(new we(xt,wn)),oi=this.ctx.transform.applyToPoint(new we(On,Gn));this.path.push({type:"bct",x1:Hr.x,y1:Hr.y,x2:oi.x,y2:oi.y,x:Mr.x,y:Mr.y}),this.ctx.lastPoint=new we(Mr.x,Mr.y)},et.prototype.arc=function(xt,wn,On,Gn,or,yr){if(isNaN(xt)||isNaN(wn)||isNaN(On)||isNaN(Gn)||isNaN(or))throw Pa.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(yr=!!yr,!this.ctx.transform.isIdentity){var Mr=this.ctx.transform.applyToPoint(new we(xt,wn));xt=Mr.x,wn=Mr.y;var Hr=this.ctx.transform.applyToPoint(new we(0,On)),oi=this.ctx.transform.applyToPoint(new we(0,0));On=Math.sqrt(Math.pow(Hr.x-oi.x,2)+Math.pow(Hr.y-oi.y,2))}Math.abs(or-Gn)>=2*Math.PI&&(Gn=0,or=2*Math.PI),this.path.push({type:"arc",x:xt,y:wn,radius:On,startAngle:Gn,endAngle:or,counterclockwise:yr})},et.prototype.arcTo=function(xt,wn,On,Gn,or){throw new Error("arcTo not implemented.")},et.prototype.rect=function(xt,wn,On,Gn){if(isNaN(xt)||isNaN(wn)||isNaN(On)||isNaN(Gn))throw Pa.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(xt,wn),this.lineTo(xt+On,wn),this.lineTo(xt+On,wn+Gn),this.lineTo(xt,wn+Gn),this.lineTo(xt,wn),this.lineTo(xt+On,wn),this.lineTo(xt,wn)},et.prototype.fillRect=function(xt,wn,On,Gn){if(isNaN(xt)||isNaN(wn)||isNaN(On)||isNaN(Gn))throw Pa.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!De.call(this)){var or={};this.lineCap!=="butt"&&(or.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(or.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(xt,wn,On,Gn),this.fill(),or.hasOwnProperty("lineCap")&&(this.lineCap=or.lineCap),or.hasOwnProperty("lineJoin")&&(this.lineJoin=or.lineJoin)}},et.prototype.strokeRect=function(xt,wn,On,Gn){if(isNaN(xt)||isNaN(wn)||isNaN(On)||isNaN(Gn))throw Pa.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");tn.call(this)||(this.beginPath(),this.rect(xt,wn,On,Gn),this.stroke())},et.prototype.clearRect=function(xt,wn,On,Gn){if(isNaN(xt)||isNaN(wn)||isNaN(On)||isNaN(Gn))throw Pa.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(xt,wn,On,Gn))},et.prototype.save=function(xt){xt=typeof xt!="boolean"||xt;for(var wn=this.pdf.internal.getCurrentPageInfo().pageNumber,On=0;On<this.pdf.internal.getNumberOfPages();On++)this.pdf.setPage(On+1),this.pdf.internal.out("q");if(this.pdf.setPage(wn),xt){this.ctx.fontSize=this.pdf.internal.getFontSize();var Gn=new Ne(this.ctx);this.ctxStack.push(this.ctx),this.ctx=Gn}},et.prototype.restore=function(xt){xt=typeof xt!="boolean"||xt;for(var wn=this.pdf.internal.getCurrentPageInfo().pageNumber,On=0;On<this.pdf.internal.getNumberOfPages();On++)this.pdf.setPage(On+1),this.pdf.internal.out("Q");this.pdf.setPage(wn),xt&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},et.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var ht=function(xt){var wn,On,Gn,or;if(xt.isCanvasGradient===!0&&(xt=xt.getColor()),!xt)return{r:0,g:0,b:0,a:0,style:xt};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(xt))wn=0,On=0,Gn=0,or=0;else{var yr=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(xt);if(yr!==null)wn=parseInt(yr[1]),On=parseInt(yr[2]),Gn=parseInt(yr[3]),or=1;else if((yr=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(xt))!==null)wn=parseInt(yr[1]),On=parseInt(yr[2]),Gn=parseInt(yr[3]),or=parseFloat(yr[4]);else{if(or=1,typeof xt=="string"&&xt.charAt(0)!=="#"){var Mr=new Yg(xt);xt=Mr.ok?Mr.toHex():"#000000"}xt.length===4?(wn=xt.substring(1,2),wn+=wn,On=xt.substring(2,3),On+=On,Gn=xt.substring(3,4),Gn+=Gn):(wn=xt.substring(1,3),On=xt.substring(3,5),Gn=xt.substring(5,7)),wn=parseInt(wn,16),On=parseInt(On,16),Gn=parseInt(Gn,16)}}return{r:wn,g:On,b:Gn,a:or,style:xt}},De=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},tn=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};et.prototype.fillText=function(xt,wn,On,Gn){if(isNaN(wn)||isNaN(On)||typeof xt!="string")throw Pa.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(Gn=isNaN(Gn)?void 0:Gn,!De.call(this)){var or=Br(this.ctx.transform.rotation),yr=this.ctx.transform.scaleX;an.call(this,{text:xt,x:wn,y:On,scale:yr,angle:or,align:this.textAlign,maxWidth:Gn})}},et.prototype.strokeText=function(xt,wn,On,Gn){if(isNaN(wn)||isNaN(On)||typeof xt!="string")throw Pa.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!tn.call(this)){Gn=isNaN(Gn)?void 0:Gn;var or=Br(this.ctx.transform.rotation),yr=this.ctx.transform.scaleX;an.call(this,{text:xt,x:wn,y:On,scale:yr,renderingMode:"stroke",angle:or,align:this.textAlign,maxWidth:Gn})}},et.prototype.measureText=function(xt){if(typeof xt!="string")throw Pa.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var wn=this.pdf,On=this.pdf.internal.scaleFactor,Gn=wn.internal.getFontSize(),or=wn.getStringUnitWidth(xt)*Gn/wn.internal.scaleFactor;return new function(yr){var Mr=(yr=yr||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return Mr}}),this}({width:or*=Math.round(96*On/72*1e4)/1e4})},et.prototype.scale=function(xt,wn){if(isNaN(xt)||isNaN(wn))throw Pa.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var On=new Be(xt,0,0,wn,0,0);this.ctx.transform=this.ctx.transform.multiply(On)},et.prototype.rotate=function(xt){if(isNaN(xt))throw Pa.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var wn=new Be(Math.cos(xt),Math.sin(xt),-Math.sin(xt),Math.cos(xt),0,0);this.ctx.transform=this.ctx.transform.multiply(wn)},et.prototype.translate=function(xt,wn){if(isNaN(xt)||isNaN(wn))throw Pa.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var On=new Be(1,0,0,1,xt,wn);this.ctx.transform=this.ctx.transform.multiply(On)},et.prototype.transform=function(xt,wn,On,Gn,or,yr){if(isNaN(xt)||isNaN(wn)||isNaN(On)||isNaN(Gn)||isNaN(or)||isNaN(yr))throw Pa.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var Mr=new Be(xt,wn,On,Gn,or,yr);this.ctx.transform=this.ctx.transform.multiply(Mr)},et.prototype.setTransform=function(xt,wn,On,Gn,or,yr){xt=isNaN(xt)?1:xt,wn=isNaN(wn)?0:wn,On=isNaN(On)?0:On,Gn=isNaN(Gn)?1:Gn,or=isNaN(or)?0:or,yr=isNaN(yr)?0:yr,this.ctx.transform=new Be(xt,wn,On,Gn,or,yr)};var $t=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};et.prototype.drawImage=function(xt,wn,On,Gn,or,yr,Mr,Hr,oi){var wi=this.pdf.getImageProperties(xt),Ri=1,_i=1,Io=1,sn=1;Gn!==void 0&&Hr!==void 0&&(Io=Hr/Gn,sn=oi/or,Ri=wi.width/Gn*Hr/Gn,_i=wi.height/or*oi/or),yr===void 0&&(yr=wn,Mr=On,wn=0,On=0),Gn!==void 0&&Hr===void 0&&(Hr=Gn,oi=or),Gn===void 0&&Hr===void 0&&(Hr=wi.width,oi=wi.height);var ji=this.ctx.transform.decompose(),Ca=Br(ji.rotate.shx),_o=new Be,gi=(_o=(_o=(_o=_o.multiply(ji.translate)).multiply(ji.skew)).multiply(ji.scale)).applyToRectangle(new ve(yr-wn*Io,Mr-On*sn,Gn*Ri,or*_i));if(this.autoPaging){for(var ko,no=on.call(this,gi),Mo=[],Uo=0;Uo<no.length;Uo+=1)Mo.indexOf(no[Uo])===-1&&Mo.push(no[Uo]);Dn(Mo);for(var is=Mo[0],Ta=Mo[Mo.length-1],oa=is;oa<Ta+1;oa++){this.pdf.setPage(oa);var ka=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Qa=oa===1?this.posY+this.margin[0]:this.margin[0],ho=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],ca=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],xo=oa===1?0:ho+(oa-2)*ca;if(this.ctx.clip_path.length!==0){var fA=this.path;ko=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=jn(ko,this.posX+this.margin[3],-xo+Qa+this.ctx.prevPageLastElemOffset),Er.call(this,"fill",!0),this.path=fA}var Ka=JSON.parse(JSON.stringify(gi));Ka=jn([Ka],this.posX+this.margin[3],-xo+Qa+this.ctx.prevPageLastElemOffset)[0];var Sa=(oa>is||oa<Ta)&&$t.call(this);Sa&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],ka,ca,null).clip().discardPath()),this.pdf.addImage(xt,"JPEG",Ka.x,Ka.y,Ka.w,Ka.h,null,null,Ca),Sa&&this.pdf.restoreGraphicsState()}}else this.pdf.addImage(xt,"JPEG",gi.x,gi.y,gi.w,gi.h,null,null,Ca)};var on=function(xt,wn,On){var Gn=[];wn=wn||this.pdf.internal.pageSize.width,On=On||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var or=this.posY+this.ctx.prevPageLastElemOffset;switch(xt.type){default:case"mt":case"lt":Gn.push(Math.floor((xt.y+or)/On)+1);break;case"arc":Gn.push(Math.floor((xt.y+or-xt.radius)/On)+1),Gn.push(Math.floor((xt.y+or+xt.radius)/On)+1);break;case"qct":var yr=Kr(this.ctx.lastPoint.x,this.ctx.lastPoint.y,xt.x1,xt.y1,xt.x,xt.y);Gn.push(Math.floor((yr.y+or)/On)+1),Gn.push(Math.floor((yr.y+yr.h+or)/On)+1);break;case"bct":var Mr=Si(this.ctx.lastPoint.x,this.ctx.lastPoint.y,xt.x1,xt.y1,xt.x2,xt.y2,xt.x,xt.y);Gn.push(Math.floor((Mr.y+or)/On)+1),Gn.push(Math.floor((Mr.y+Mr.h+or)/On)+1);break;case"rect":Gn.push(Math.floor((xt.y+or)/On)+1),Gn.push(Math.floor((xt.y+xt.h+or)/On)+1)}for(var Hr=0;Hr<Gn.length;Hr+=1)for(;this.pdf.internal.getNumberOfPages()<Gn[Hr];)Ot.call(this);return Gn},Ot=function(){var xt=this.fillStyle,wn=this.strokeStyle,On=this.font,Gn=this.lineCap,or=this.lineWidth,yr=this.lineJoin;this.pdf.addPage(),this.fillStyle=xt,this.strokeStyle=wn,this.font=On,this.lineCap=Gn,this.lineWidth=or,this.lineJoin=yr},jn=function(xt,wn,On){for(var Gn=0;Gn<xt.length;Gn++)switch(xt[Gn].type){case"bct":xt[Gn].x2+=wn,xt[Gn].y2+=On;case"qct":xt[Gn].x1+=wn,xt[Gn].y1+=On;default:xt[Gn].x+=wn,xt[Gn].y+=On}return xt},Dn=function(xt){return xt.sort(function(wn,On){return wn-On})},bn=function(xt,wn){var On=this.fillStyle,Gn=this.strokeStyle,or=this.lineCap,yr=this.lineWidth,Mr=Math.abs(yr*this.ctx.transform.scaleX),Hr=this.lineJoin;if(this.autoPaging){for(var oi,wi,Ri=JSON.parse(JSON.stringify(this.path)),_i=JSON.parse(JSON.stringify(this.path)),Io=[],sn=0;sn<_i.length;sn++)if(_i[sn].x!==void 0)for(var ji=on.call(this,_i[sn]),Ca=0;Ca<ji.length;Ca+=1)Io.indexOf(ji[Ca])===-1&&Io.push(ji[Ca]);for(var _o=0;_o<Io.length;_o++)for(;this.pdf.internal.getNumberOfPages()<Io[_o];)Ot.call(this);Dn(Io);for(var gi=Io[0],ko=Io[Io.length-1],no=gi;no<ko+1;no++){this.pdf.setPage(no),this.fillStyle=On,this.strokeStyle=Gn,this.lineCap=or,this.lineWidth=Mr,this.lineJoin=Hr;var Mo=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Uo=no===1?this.posY+this.margin[0]:this.margin[0],is=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Ta=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],oa=no===1?0:is+(no-2)*Ta;if(this.ctx.clip_path.length!==0){var ka=this.path;oi=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=jn(oi,this.posX+this.margin[3],-oa+Uo+this.ctx.prevPageLastElemOffset),Er.call(this,xt,!0),this.path=ka}if(wi=JSON.parse(JSON.stringify(Ri)),this.path=jn(wi,this.posX+this.margin[3],-oa+Uo+this.ctx.prevPageLastElemOffset),wn===!1||no===0){var Qa=(no>gi||no<ko)&&$t.call(this);Qa&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Mo,Ta,null).clip().discardPath()),Er.call(this,xt,wn),Qa&&this.pdf.restoreGraphicsState()}this.lineWidth=yr}this.path=Ri}else this.lineWidth=Mr,Er.call(this,xt,wn),this.lineWidth=yr},Er=function(xt,wn){if((xt!=="stroke"||wn||!tn.call(this))&&(xt==="stroke"||wn||!De.call(this))){for(var On,Gn,or=[],yr=this.path,Mr=0;Mr<yr.length;Mr++){var Hr=yr[Mr];switch(Hr.type){case"begin":or.push({begin:!0});break;case"close":or.push({close:!0});break;case"mt":or.push({start:Hr,deltas:[],abs:[]});break;case"lt":var oi=or.length;if(yr[Mr-1]&&!isNaN(yr[Mr-1].x)&&(On=[Hr.x-yr[Mr-1].x,Hr.y-yr[Mr-1].y],oi>0)){for(;oi>=0;oi--)if(or[oi-1].close!==!0&&or[oi-1].begin!==!0){or[oi-1].deltas.push(On),or[oi-1].abs.push(Hr);break}}break;case"bct":On=[Hr.x1-yr[Mr-1].x,Hr.y1-yr[Mr-1].y,Hr.x2-yr[Mr-1].x,Hr.y2-yr[Mr-1].y,Hr.x-yr[Mr-1].x,Hr.y-yr[Mr-1].y],or[or.length-1].deltas.push(On);break;case"qct":var wi=yr[Mr-1].x+2/3*(Hr.x1-yr[Mr-1].x),Ri=yr[Mr-1].y+2/3*(Hr.y1-yr[Mr-1].y),_i=Hr.x+2/3*(Hr.x1-Hr.x),Io=Hr.y+2/3*(Hr.y1-Hr.y),sn=Hr.x,ji=Hr.y;On=[wi-yr[Mr-1].x,Ri-yr[Mr-1].y,_i-yr[Mr-1].x,Io-yr[Mr-1].y,sn-yr[Mr-1].x,ji-yr[Mr-1].y],or[or.length-1].deltas.push(On);break;case"arc":or.push({deltas:[],abs:[],arc:!0}),Array.isArray(or[or.length-1].abs)&&or[or.length-1].abs.push(Hr)}}Gn=wn?null:xt==="stroke"?"stroke":"fill";for(var Ca=!1,_o=0;_o<or.length;_o++)if(or[_o].arc)for(var gi=or[_o].abs,ko=0;ko<gi.length;ko++){var no=gi[ko];no.type==="arc"?qn.call(this,no.x,no.y,no.radius,no.startAngle,no.endAngle,no.counterclockwise,void 0,wn,!Ca):Hn.call(this,no.x,no.y),Ca=!0}else if(or[_o].close===!0)this.pdf.internal.out("h"),Ca=!1;else if(or[_o].begin!==!0){var Mo=or[_o].start.x,Uo=or[_o].start.y;Pn.call(this,or[_o].deltas,Mo,Uo),Ca=!0}Gn&&Bn.call(this,Gn),wn&&ur.call(this)}},Jr=function(xt){var wn=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,On=wn*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return xt-On;case"top":return xt+wn-On;case"hanging":return xt+wn-2*On;case"middle":return xt+wn/2-On;default:return xt}},Qr=function(xt){return xt+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};et.prototype.createLinearGradient=function(){var xt=function(){};return xt.colorStops=[],xt.addColorStop=function(wn,On){this.colorStops.push([wn,On])},xt.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},xt.isCanvasGradient=!0,xt},et.prototype.createPattern=function(){return this.createLinearGradient()},et.prototype.createRadialGradient=function(){return this.createLinearGradient()};var qn=function(xt,wn,On,Gn,or,yr,Mr,Hr,oi){for(var wi=Tr.call(this,On,Gn,or,yr),Ri=0;Ri<wi.length;Ri++){var _i=wi[Ri];Ri===0&&(oi?Ut.call(this,_i.x1+xt,_i.y1+wn):Hn.call(this,_i.x1+xt,_i.y1+wn)),Ir.call(this,xt,wn,_i.x2,_i.y2,_i.x3,_i.y3,_i.x4,_i.y4)}Hr?ur.call(this):Bn.call(this,Mr)},Bn=function(xt){switch(xt){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},ur=function(){this.pdf.clip(),this.pdf.discardPath()},Ut=function(xt,wn){this.pdf.internal.out(x(xt)+" "+te(wn)+" m")},an=function(xt){var wn;switch(xt.align){case"right":case"end":wn="right";break;case"center":wn="center";break;default:wn="left"}var On,Gn,or,yr=this.pdf.getTextDimensions(xt.text),Mr=Jr.call(this,xt.y),Hr=Qr.call(this,Mr)-yr.h,oi=this.ctx.transform.applyToPoint(new we(xt.x,Mr));if(this.autoPaging){var wi=this.ctx.transform.decompose(),Ri=new Be;Ri=(Ri=(Ri=Ri.multiply(wi.translate)).multiply(wi.skew)).multiply(wi.scale);for(var _i=this.ctx.transform.applyToRectangle(new ve(xt.x,Mr,yr.w,yr.h)),Io=Ri.applyToRectangle(new ve(xt.x,Hr,yr.w,yr.h)),sn=on.call(this,Io),ji=[],Ca=0;Ca<sn.length;Ca+=1)ji.indexOf(sn[Ca])===-1&&ji.push(sn[Ca]);Dn(ji);for(var _o=ji[0],gi=ji[ji.length-1],ko=_o;ko<gi+1;ko++){this.pdf.setPage(ko);var no=ko===1?this.posY+this.margin[0]:this.margin[0],Mo=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Uo=this.pdf.internal.pageSize.height-this.margin[2],is=Uo-this.margin[0],Ta=this.pdf.internal.pageSize.width-this.margin[1],oa=Ta-this.margin[3],ka=ko===1?0:Mo+(ko-2)*is;if(this.ctx.clip_path.length!==0){var Qa=this.path;On=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=jn(On,this.posX+this.margin[3],-1*ka+no),Er.call(this,"fill",!0),this.path=Qa}var ho=jn([JSON.parse(JSON.stringify(Io))],this.posX+this.margin[3],-ka+no+this.ctx.prevPageLastElemOffset)[0];xt.scale>=.01&&(Gn=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Gn*xt.scale),or=this.lineWidth,this.lineWidth=or*xt.scale);var ca=this.autoPaging!=="text";if(ca||ho.y+ho.h<=Uo){if(ca||ho.y>=no&&ho.x<=Ta){var xo=ca?xt.text:this.pdf.splitTextToSize(xt.text,xt.maxWidth||Ta-ho.x)[0],fA=jn([JSON.parse(JSON.stringify(_i))],this.posX+this.margin[3],-ka+no+this.ctx.prevPageLastElemOffset)[0],Ka=ca&&(ko>_o||ko<gi)&&$t.call(this);Ka&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],oa,is,null).clip().discardPath()),this.pdf.text(xo,fA.x,fA.y,{angle:xt.angle,align:wn,renderingMode:xt.renderingMode}),Ka&&this.pdf.restoreGraphicsState()}}else ho.y<Uo&&(this.ctx.prevPageLastElemOffset+=Uo-ho.y);xt.scale>=.01&&(this.pdf.setFontSize(Gn),this.lineWidth=or)}}else xt.scale>=.01&&(Gn=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Gn*xt.scale),or=this.lineWidth,this.lineWidth=or*xt.scale),this.pdf.text(xt.text,oi.x+this.posX,oi.y+this.posY,{angle:xt.angle,align:wn,renderingMode:xt.renderingMode,maxWidth:xt.maxWidth}),xt.scale>=.01&&(this.pdf.setFontSize(Gn),this.lineWidth=or)},Hn=function(xt,wn,On,Gn){On=On||0,Gn=Gn||0,this.pdf.internal.out(x(xt+On)+" "+te(wn+Gn)+" l")},Pn=function(xt,wn,On){return this.pdf.lines(xt,wn,On,null,null)},Ir=function(xt,wn,On,Gn,or,yr,Mr,Hr){this.pdf.internal.out([E(re(On+xt)),E(ae(Gn+wn)),E(re(or+xt)),E(ae(yr+wn)),E(re(Mr+xt)),E(ae(Hr+wn)),"c"].join(" "))},Tr=function(xt,wn,On,Gn){for(var or=2*Math.PI,yr=Math.PI/2;wn>On;)wn-=or;var Mr=Math.abs(On-wn);Mr<or&&Gn&&(Mr=or-Mr);for(var Hr=[],oi=Gn?-1:1,wi=wn;Mr>1e-5;){var Ri=wi+oi*Math.min(Mr,yr);Hr.push(_r.call(this,xt,wi,Ri)),Mr-=Math.abs(Ri-wi),wi=Ri}return Hr},_r=function(xt,wn,On){var Gn=(On-wn)/2,or=xt*Math.cos(Gn),yr=xt*Math.sin(Gn),Mr=or,Hr=-yr,oi=Mr*Mr+Hr*Hr,wi=oi+Mr*or+Hr*yr,Ri=4/3*(Math.sqrt(2*oi*wi)-wi)/(Mr*yr-Hr*or),_i=Mr-Ri*Hr,Io=Hr+Ri*Mr,sn=_i,ji=-Io,Ca=Gn+wn,_o=Math.cos(Ca),gi=Math.sin(Ca);return{x1:xt*Math.cos(wn),y1:xt*Math.sin(wn),x2:_i*_o-Io*gi,y2:_i*gi+Io*_o,x3:sn*_o-ji*gi,y3:sn*gi+ji*_o,x4:xt*Math.cos(On),y4:xt*Math.sin(On)}},Br=function(xt){return 180*xt/Math.PI},Kr=function(xt,wn,On,Gn,or,yr){var Mr=xt+.5*(On-xt),Hr=wn+.5*(Gn-wn),oi=or+.5*(On-or),wi=yr+.5*(Gn-yr),Ri=Math.min(xt,or,Mr,oi),_i=Math.max(xt,or,Mr,oi),Io=Math.min(wn,yr,Hr,wi),sn=Math.max(wn,yr,Hr,wi);return new ve(Ri,Io,_i-Ri,sn-Io)},Si=function(xt,wn,On,Gn,or,yr,Mr,Hr){var oi,wi,Ri,_i,Io,sn,ji,Ca,_o,gi,ko,no,Mo,Uo,is=On-xt,Ta=Gn-wn,oa=or-On,ka=yr-Gn,Qa=Mr-or,ho=Hr-yr;for(wi=0;wi<41;wi++)_o=(ji=(Ri=xt+(oi=wi/40)*is)+oi*((Io=On+oi*oa)-Ri))+oi*(Io+oi*(or+oi*Qa-Io)-ji),gi=(Ca=(_i=wn+oi*Ta)+oi*((sn=Gn+oi*ka)-_i))+oi*(sn+oi*(yr+oi*ho-sn)-Ca),wi==0?(ko=_o,no=gi,Mo=_o,Uo=gi):(ko=Math.min(ko,_o),no=Math.min(no,gi),Mo=Math.max(Mo,_o),Uo=Math.max(Uo,gi));return new ve(Math.round(ko),Math.round(no),Math.round(Mo-ko),Math.round(Uo-no))},li=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var xt,wn,On=(xt=this.ctx.lineDash,wn=this.ctx.lineDashOffset,JSON.stringify({lineDash:xt,lineDashOffset:wn}));this.prevLineDash!==On&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=On)}}})(ao.API),function(y){var E=function(we){var ve,Be,Ee,Ne,et,ht,De,tn,$t,on;for(/[^\x00-\xFF]/.test(we),Be=[],Ee=0,Ne=(we+=ve="\0\0\0\0".slice(we.length%4||4)).length;Ne>Ee;Ee+=4)(et=(we.charCodeAt(Ee)<<24)+(we.charCodeAt(Ee+1)<<16)+(we.charCodeAt(Ee+2)<<8)+we.charCodeAt(Ee+3))!==0?(ht=(et=((et=((et=((et=(et-(on=et%85))/85)-($t=et%85))/85)-(tn=et%85))/85)-(De=et%85))/85)%85,Be.push(ht+33,De+33,tn+33,$t+33,on+33)):Be.push(122);return function(Ot,jn){for(var Dn=jn;Dn>0;Dn--)Ot.pop()}(Be,ve.length),String.fromCharCode.apply(String,Be)+"~>"},x=function(we){var ve,Be,Ee,Ne,et,ht=String,De="length",tn=255,$t="charCodeAt",on="slice",Ot="replace";for(we[on](-2),we=we[on](0,-2)[Ot](/\s/g,"")[Ot]("z","!!!!!"),Ee=[],Ne=0,et=(we+=ve="uuuuu"[on](we[De]%5||5))[De];et>Ne;Ne+=5)Be=52200625*(we[$t](Ne)-33)+614125*(we[$t](Ne+1)-33)+7225*(we[$t](Ne+2)-33)+85*(we[$t](Ne+3)-33)+(we[$t](Ne+4)-33),Ee.push(tn&Be>>24,tn&Be>>16,tn&Be>>8,tn&Be);return function(jn,Dn){for(var bn=Dn;bn>0;bn--)jn.pop()}(Ee,ve[De]),ht.fromCharCode.apply(ht,Ee)},te=function(we){return we.split("").map(function(ve){return("0"+ve.charCodeAt().toString(16)).slice(-2)}).join("")+">"},re=function(we){var ve=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((we=we.replace(/\s/g,"")).indexOf(">")!==-1&&(we=we.substr(0,we.indexOf(">"))),we.length%2&&(we+="0"),ve.test(we)===!1)return"";for(var Be="",Ee=0;Ee<we.length;Ee+=2)Be+=String.fromCharCode("0x"+(we[Ee]+we[Ee+1]));return Be},ae=function(we){for(var ve=new Uint8Array(we.length),Be=we.length;Be--;)ve[Be]=we.charCodeAt(Be);return(ve=Wr(ve)).reduce(function(Ee,Ne){return Ee+String.fromCharCode(Ne)},"")};y.processDataByFilters=function(we,ve){var Be=0,Ee=we||"",Ne=[];for(typeof(ve=ve||[])=="string"&&(ve=[ve]),Be=0;Be<ve.length;Be+=1)switch(ve[Be]){case"ASCII85Decode":case"/ASCII85Decode":Ee=x(Ee),Ne.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":Ee=E(Ee),Ne.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":Ee=re(Ee),Ne.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":Ee=te(Ee),Ne.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":Ee=ae(Ee),Ne.push("/FlateDecode");break;default:throw new Error('The filter: "'+ve[Be]+'" is not implemented')}return{data:Ee,reverseChain:Ne.reverse().join(" ")}}}(ao.API),function(y){y.loadFile=function(E,x,te){return function(re,ae,we){ae=ae!==!1,we=typeof we=="function"?we:function(){};var ve=void 0;try{ve=function(Be,Ee,Ne){var et=new XMLHttpRequest,ht=0,De=function(tn){var $t=tn.length,on=[],Ot=String.fromCharCode;for(ht=0;ht<$t;ht+=1)on.push(Ot(255&tn.charCodeAt(ht)));return on.join("")};if(et.open("GET",Be,!Ee),et.overrideMimeType("text/plain; charset=x-user-defined"),Ee===!1&&(et.onload=function(){et.status===200?Ne(De(this.responseText)):Ne(void 0)}),et.send(null),Ee&&et.status===200)return De(et.responseText)}(re,ae,we)}catch(Be){}return ve}(E,x,te)},y.loadImageFile=y.loadFile}(ao.API),function(y){function E(){return(fo.html2canvas?Promise.resolve(fo.html2canvas):Promise.resolve().then(pe.t.bind(pe,64270,23))).catch(function(ve){return Promise.reject(new Error("Could not load html2canvas: "+ve))}).then(function(ve){return ve.default?ve.default:ve})}function x(){return(fo.DOMPurify?Promise.resolve(fo.DOMPurify):pe.e(8384).then(pe.bind(pe,78384))).catch(function(ve){return Promise.reject(new Error("Could not load dompurify: "+ve))}).then(function(ve){return ve.default?ve.default:ve})}var te=function(ve){var Be=(0,oe.Z)(ve);return Be==="undefined"?"undefined":Be==="string"||ve instanceof String?"string":Be==="number"||ve instanceof Number?"number":Be==="function"||ve instanceof Function?"function":ve&&ve.constructor===Array?"array":ve&&ve.nodeType===1?"element":Be==="object"?"object":"unknown"},re=function(ve,Be){var Ee=document.createElement(ve);for(var Ne in Be.className&&(Ee.className=Be.className),Be.innerHTML&&Be.dompurify&&(Ee.innerHTML=Be.dompurify.sanitize(Be.innerHTML)),Be.style)Ee.style[Ne]=Be.style[Ne];return Ee},ae=function ve(Be,Ee){for(var Ne=Be.nodeType===3?document.createTextNode(Be.nodeValue):Be.cloneNode(!1),et=Be.firstChild;et;et=et.nextSibling)Ee!==!0&&et.nodeType===1&&et.nodeName==="SCRIPT"||Ne.appendChild(ve(et,Ee));return Be.nodeType===1&&(Be.nodeName==="CANVAS"?(Ne.width=Be.width,Ne.height=Be.height,Ne.getContext("2d").drawImage(Be,0,0)):Be.nodeName!=="TEXTAREA"&&Be.nodeName!=="SELECT"||(Ne.value=Be.value),Ne.addEventListener("load",function(){Ne.scrollTop=Be.scrollTop,Ne.scrollLeft=Be.scrollLeft},!0)),Ne},we=function ve(Be){var Ee=Object.assign(ve.convert(Promise.resolve()),JSON.parse(JSON.stringify(ve.template))),Ne=ve.convert(Promise.resolve(),Ee);return(Ne=Ne.setProgress(1,ve,1,[ve])).set(Be)};(we.prototype=Object.create(Promise.prototype)).constructor=we,we.convert=function(ve,Be){return ve.__proto__=Be||we.prototype,ve},we.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},we.prototype.from=function(ve,Be){return this.then(function(){switch(Be=Be||function(Ee){switch(te(Ee)){case"string":return"string";case"element":return Ee.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(ve),Be){case"string":return this.then(x).then(function(Ee){return this.set({src:re("div",{innerHTML:ve,dompurify:Ee})})});case"element":return this.set({src:ve});case"canvas":return this.set({canvas:ve});case"img":return this.set({img:ve});default:return this.error("Unknown source type.")}})},we.prototype.to=function(ve){switch(ve){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},we.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var ve={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},Be=ae(this.prop.src,this.opt.html2canvas.javascriptEnabled);Be.tagName==="BODY"&&(ve.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=re("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=re("div",{className:"html2pdf__container",style:ve}),this.prop.container.appendChild(Be),this.prop.container.firstChild.appendChild(re("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},we.prototype.toCanvas=function(){var ve=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(ve).then(E).then(function(Be){var Ee=Object.assign({},this.opt.html2canvas);return delete Ee.onrendered,Be(this.prop.container,Ee)}).then(function(Be){(this.opt.html2canvas.onrendered||function(){})(Be),this.prop.canvas=Be,document.body.removeChild(this.prop.overlay)})},we.prototype.toContext2d=function(){var ve=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(ve).then(E).then(function(Be){var Ee=this.opt.jsPDF,Ne=this.opt.fontFaces,et=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,ht=Object.assign({async:!0,allowTaint:!0,scale:et,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete ht.onrendered,Ee.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,Ee.context2d.posX=this.opt.x,Ee.context2d.posY=this.opt.y,Ee.context2d.margin=this.opt.margin,Ee.context2d.fontFaces=Ne,Ne)for(var De=0;De<Ne.length;++De){var tn=Ne[De],$t=tn.src.find(function(on){return on.format==="truetype"});$t&&Ee.addFont($t.url,tn.ref.name,tn.ref.style)}return ht.windowHeight=ht.windowHeight||0,ht.windowHeight=ht.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):ht.windowHeight,Ee.context2d.save(!0),Be(this.prop.container,ht)}).then(function(Be){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(Be),this.prop.canvas=Be,document.body.removeChild(this.prop.overlay)})},we.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var ve=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=ve})},we.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},we.prototype.output=function(ve,Be,Ee){return(Ee=Ee||"pdf").toLowerCase()==="img"||Ee.toLowerCase()==="image"?this.outputImg(ve,Be):this.outputPdf(ve,Be)},we.prototype.outputPdf=function(ve,Be){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(ve,Be)})},we.prototype.outputImg=function(ve){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(ve){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+ve+'" is not supported.'}})},we.prototype.save=function(ve){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(ve?{filename:ve}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},we.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},we.prototype.set=function(ve){if(te(ve)!=="object")return this;var Be=Object.keys(ve||{}).map(function(Ee){if(Ee in we.template.prop)return function(){this.prop[Ee]=ve[Ee]};switch(Ee){case"margin":return this.setMargin.bind(this,ve.margin);case"jsPDF":return function(){return this.opt.jsPDF=ve.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,ve.pageSize);default:return function(){this.opt[Ee]=ve[Ee]}}},this);return this.then(function(){return this.thenList(Be)})},we.prototype.get=function(ve,Be){return this.then(function(){var Ee=ve in we.template.prop?this.prop[ve]:this.opt[ve];return Be?Be(Ee):Ee})},we.prototype.setMargin=function(ve){return this.then(function(){switch(te(ve)){case"number":ve=[ve,ve,ve,ve];case"array":if(ve.length===2&&(ve=[ve[0],ve[1],ve[0],ve[1]]),ve.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=ve}).then(this.setPageSize)},we.prototype.setPageSize=function(ve){function Be(Ee,Ne){return Math.floor(Ee*Ne/72*96)}return this.then(function(){(ve=ve||ao.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(ve.inner={width:ve.width-this.opt.margin[1]-this.opt.margin[3],height:ve.height-this.opt.margin[0]-this.opt.margin[2]},ve.inner.px={width:Be(ve.inner.width,ve.k),height:Be(ve.inner.height,ve.k)},ve.inner.ratio=ve.inner.height/ve.inner.width),this.prop.pageSize=ve})},we.prototype.setProgress=function(ve,Be,Ee,Ne){return ve!=null&&(this.progress.val=ve),Be!=null&&(this.progress.state=Be),Ee!=null&&(this.progress.n=Ee),Ne!=null&&(this.progress.stack=Ne),this.progress.ratio=this.progress.val/this.progress.state,this},we.prototype.updateProgress=function(ve,Be,Ee,Ne){return this.setProgress(ve?this.progress.val+ve:null,Be||null,Ee?this.progress.n+Ee:null,Ne?this.progress.stack.concat(Ne):null)},we.prototype.then=function(ve,Be){var Ee=this;return this.thenCore(ve,Be,function(Ne,et){return Ee.updateProgress(null,null,1,[Ne]),Promise.prototype.then.call(this,function(ht){return Ee.updateProgress(null,Ne),ht}).then(Ne,et).then(function(ht){return Ee.updateProgress(1),ht})})},we.prototype.thenCore=function(ve,Be,Ee){Ee=Ee||Promise.prototype.then;var Ne=this;ve&&(ve=ve.bind(Ne)),Be&&(Be=Be.bind(Ne));var et=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?Ne:we.convert(Object.assign({},Ne),Promise.prototype),ht=Ee.call(et,ve,Be);return we.convert(ht,Ne.__proto__)},we.prototype.thenExternal=function(ve,Be){return Promise.prototype.then.call(this,ve,Be)},we.prototype.thenList=function(ve){var Be=this;return ve.forEach(function(Ee){Be=Be.thenCore(Ee)}),Be},we.prototype.catch=function(ve){ve&&(ve=ve.bind(this));var Be=Promise.prototype.catch.call(this,ve);return we.convert(Be,this)},we.prototype.catchExternal=function(ve){return Promise.prototype.catch.call(this,ve)},we.prototype.error=function(ve){return this.then(function(){throw new Error(ve)})},we.prototype.using=we.prototype.set,we.prototype.saveAs=we.prototype.save,we.prototype.export=we.prototype.output,we.prototype.run=we.prototype.then,ao.getPageSize=function(ve,Be,Ee){if((0,oe.Z)(ve)==="object"){var Ne=ve;ve=Ne.orientation,Be=Ne.unit||Be,Ee=Ne.format||Ee}Be=Be||"mm",Ee=Ee||"a4",ve=(""+(ve||"P")).toLowerCase();var et,ht=(""+Ee).toLowerCase(),De={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(Be){case"pt":et=1;break;case"mm":et=72/25.4;break;case"cm":et=72/2.54;break;case"in":et=72;break;case"px":et=.75;break;case"pc":case"em":et=12;break;case"ex":et=6;break;default:throw"Invalid unit: "+Be}var tn,$t=0,on=0;if(De.hasOwnProperty(ht))$t=De[ht][1]/et,on=De[ht][0]/et;else try{$t=Ee[1],on=Ee[0]}catch(Ot){throw new Error("Invalid format: "+Ee)}if(ve==="p"||ve==="portrait")ve="p",on>$t&&(tn=on,on=$t,$t=tn);else{if(ve!=="l"&&ve!=="landscape")throw"Invalid orientation: "+ve;ve="l",$t>on&&(tn=on,on=$t,$t=tn)}return{width:on,height:$t,unit:Be,k:et,orientation:ve}},y.html=function(ve,Be){(Be=Be||{}).callback=Be.callback||function(){},Be.html2canvas=Be.html2canvas||{},Be.html2canvas.canvas=Be.html2canvas.canvas||this.canvas,Be.jsPDF=Be.jsPDF||this,Be.fontFaces=Be.fontFaces?Be.fontFaces.map(Kl):null;var Ee=new we(Be);return Be.worker?Ee:Ee.from(ve).doCallback()}}(ao.API),ao.API.addJS=function(y){return F0=y,this.internal.events.subscribe("postPutResources",function(){Xc=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(Xc+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),S0=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+F0+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){Xc!==void 0&&S0!==void 0&&this.internal.out("/Names <</JavaScript "+Xc+" 0 R>>")}),this},function(y){var E;y.events.push(["postPutResources",function(){var x=this,te=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var re=x.outline.render().split(/\r\n/),ae=0;ae<re.length;ae++){var we=re[ae],ve=te.exec(we);if(ve!=null){var Be=ve[1];x.internal.newObjectDeferredBegin(Be,!1)}x.internal.write(we)}if(this.outline.createNamedDestinations){var Ee=this.internal.pages.length,Ne=[];for(ae=0;ae<Ee;ae++){var et=x.internal.newObject();Ne.push(et);var ht=x.internal.getPageInfo(ae+1);x.internal.write("<< /D["+ht.objId+" 0 R /XYZ null null null]>> endobj")}var De=x.internal.newObject();for(x.internal.write("<< /Names [ "),ae=0;ae<Ne.length;ae++)x.internal.write("(page_"+(ae+1)+")"+Ne[ae]+" 0 R");x.internal.write(" ] >>","endobj"),E=x.internal.newObject(),x.internal.write("<< /Dests "+De+" 0 R"),x.internal.write(">>","endobj")}}]),y.events.push(["putCatalog",function(){var x=this;x.outline.root.children.length>0&&(x.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&x.internal.write("/Names "+E+" 0 R"))}]),y.events.push(["initialized",function(){var x=this;x.outline={createNamedDestinations:!1,root:{children:[]}},x.outline.add=function(te,re,ae){var we={title:re,options:ae,children:[]};return te==null&&(te=this.root),te.children.push(we),we},x.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=x,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},x.outline.genIds_r=function(te){te.id=x.internal.newObjectDeferred();for(var re=0;re<te.children.length;re++)this.genIds_r(te.children[re])},x.outline.renderRoot=function(te){this.objStart(te),this.line("/Type /Outlines"),te.children.length>0&&(this.line("/First "+this.makeRef(te.children[0])),this.line("/Last "+this.makeRef(te.children[te.children.length-1]))),this.line("/Count "+this.count_r({count:0},te)),this.objEnd()},x.outline.renderItems=function(te){for(var re=this.ctx.pdf.internal.getVerticalCoordinateString,ae=0;ae<te.children.length;ae++){var we=te.children[ae];this.objStart(we),this.line("/Title "+this.makeString(we.title)),this.line("/Parent "+this.makeRef(te)),ae>0&&this.line("/Prev "+this.makeRef(te.children[ae-1])),ae<te.children.length-1&&this.line("/Next "+this.makeRef(te.children[ae+1])),we.children.length>0&&(this.line("/First "+this.makeRef(we.children[0])),this.line("/Last "+this.makeRef(we.children[we.children.length-1])));var ve=this.count=this.count_r({count:0},we);if(ve>0&&this.line("/Count "+ve),we.options&&we.options.pageNumber){var Be=x.internal.getPageInfo(we.options.pageNumber);this.line("/Dest ["+Be.objId+" 0 R /XYZ 0 "+re(0)+" 0]")}this.objEnd()}for(var Ee=0;Ee<te.children.length;Ee++)this.renderItems(te.children[Ee])},x.outline.line=function(te){this.ctx.val+=te+`\r
|
|
|
`},x.outline.makeRef=function(te){return te.id+" 0 R"},x.outline.makeString=function(te){return"("+x.internal.pdfEscape(te)+")"},x.outline.objStart=function(te){this.ctx.val+=`\r
|
|
|
`+te.id+` 0 obj\r
|
|
|
<<\r
|
|
|
`},x.outline.objEnd=function(){this.ctx.val+=`>> \r
|
|
|
endobj\r
|
|
|
`},x.outline.count_r=function(te,re){for(var ae=0;ae<re.children.length;ae++)te.count++,this.count_r(te,re.children[ae]);return te.count}}])}(ao.API),function(y){var E=[192,193,194,195,196,197,198,199];y.processJPEG=function(x,te,re,ae,we,ve){var Be,Ee=this.decode.DCT_DECODE,Ne=null;if(typeof x=="string"||this.__addimage__.isArrayBuffer(x)||this.__addimage__.isArrayBufferView(x)){switch(x=we||x,x=this.__addimage__.isArrayBuffer(x)?new Uint8Array(x):x,Be=function(et){for(var ht,De=256*et.charCodeAt(4)+et.charCodeAt(5),tn=et.length,$t={width:0,height:0,numcomponents:1},on=4;on<tn;on+=2){if(on+=De,E.indexOf(et.charCodeAt(on+1))!==-1){ht=256*et.charCodeAt(on+5)+et.charCodeAt(on+6),$t={width:256*et.charCodeAt(on+7)+et.charCodeAt(on+8),height:ht,numcomponents:et.charCodeAt(on+9)};break}De=256*et.charCodeAt(on+2)+et.charCodeAt(on+3)}return $t}(x=this.__addimage__.isArrayBufferView(x)?this.__addimage__.arrayBufferToBinaryString(x):x),Be.numcomponents){case 1:ve=this.color_spaces.DEVICE_GRAY;break;case 4:ve=this.color_spaces.DEVICE_CMYK;break;case 3:ve=this.color_spaces.DEVICE_RGB}Ne={data:x,width:Be.width,height:Be.height,colorSpace:ve,bitsPerComponent:8,filter:Ee,index:te,alias:re}}return Ne}}(ao.API),ao.API.processPNG=function(y,E,x,te){if(this.__addimage__.isArrayBuffer(y)&&(y=new Uint8Array(y)),this.__addimage__.isArrayBufferView(y)){var re,ae=nl(y,{checkCrc:!0}),we=ae.width,ve=ae.height,Be=ae.channels,Ee=ae.palette,Ne=ae.depth;re=Ee&&Be===1?function(qn){for(var Bn=qn.width,ur=qn.height,Ut=qn.data,an=qn.palette,Hn=qn.depth,Pn=!1,Ir=[],Tr=[],_r=void 0,Br=!1,Kr=0,Si=0;Si<an.length;Si++){var li=(0,Yi.Z)(an[Si],4),xt=li[0],wn=li[1],On=li[2],Gn=li[3];Ir.push(xt,wn,On),Gn!=null&&(Gn===0?(Kr++,Tr.length<1&&Tr.push(Si)):Gn<255&&(Br=!0))}if(Br||Kr>1){Pn=!0,Tr=void 0;var or=Bn*ur;_r=new Uint8Array(or);for(var yr=new DataView(Ut.buffer),Mr=0;Mr<or;Mr++){var Hr=Km(yr,Mr,Hn),oi=(0,Yi.Z)(an[Hr],4)[3];_r[Mr]=oi}}else Kr===0&&(Tr=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:Pn?8:void 0,colorBytes:Ut,alphaBytes:_r,needSMask:Pn,palette:Ir,mask:Tr}}(ae):Be===2||Be===4?function(qn){for(var Bn=qn.data,ur=qn.width,Ut=qn.height,an=qn.channels,Hn=qn.depth,Pn=an===2?"DeviceGray":"DeviceRGB",Ir=an-1,Tr=ur*Ut,_r=Ir,Br=Tr*_r,Kr=1*Tr,Si=Math.ceil(Br*Hn/8),li=Math.ceil(Kr*Hn/8),xt=new Uint8Array(Si),wn=new Uint8Array(li),On=new DataView(Bn.buffer),Gn=new DataView(xt.buffer),or=new DataView(wn.buffer),yr=!1,Mr=0;Mr<Tr;Mr++){for(var Hr=Mr*an,oi=0;oi<_r;oi++)Q0(Gn,Km(On,Hr+oi,Hn),Mr*_r+oi,Hn);var wi=Km(On,Hr+_r,Hn);wi<(1<<Hn)-1&&(yr=!0),Q0(or,wi,1*Mr,Hn)}return{colorSpace:Pn,colorsPerPixel:Ir,sMaskBitsPerComponent:yr?Hn:void 0,colorBytes:xt,alphaBytes:wn,needSMask:yr}}(ae):function(qn){var Bn=qn.data,ur=qn.channels===1?"DeviceGray":"DeviceRGB";return{colorSpace:ur,colorsPerPixel:ur==="DeviceGray"?1:3,colorBytes:Bn instanceof Uint16Array?function(Ut){for(var an=Ut.length,Hn=new Uint8Array(2*an),Pn=new DataView(Hn.buffer,Hn.byteOffset,Hn.byteLength),Ir=0;Ir<an;Ir++)Pn.setUint16(2*Ir,Ut[Ir],!1);return Hn}(Bn):Bn,needSMask:!1}}(ae);var et,ht,De,tn=re,$t=tn.colorSpace,on=tn.colorsPerPixel,Ot=tn.sMaskBitsPerComponent,jn=tn.colorBytes,Dn=tn.alphaBytes,bn=tn.needSMask,Er=tn.palette,Jr=tn.mask,Qr=null;return te!==ao.API.image_compression.NONE&&typeof Wr=="function"?(Qr=function(qn){var Bn;switch(qn){case ao.API.image_compression.FAST:Bn=11;break;case ao.API.image_compression.MEDIUM:Bn=13;break;case ao.API.image_compression.SLOW:Bn=14;break;default:Bn=12}return Bn}(te),et=this.decode.FLATE_DECODE,ht="/Predictor ".concat(Qr," /Colors ").concat(on," /BitsPerComponent ").concat(Ne," /Columns ").concat(we),y=O0(jn,Math.ceil(we*on*Ne/8),on,Ne,te),bn&&(De=O0(Dn,Math.ceil(we*Ot/8),1,Ot,te))):(et=void 0,ht=void 0,y=jn,bn&&(De=Dn)),(this.__addimage__.isArrayBuffer(y)||this.__addimage__.isArrayBufferView(y))&&(y=this.__addimage__.arrayBufferToBinaryString(y)),(De&&this.__addimage__.isArrayBuffer(De)||this.__addimage__.isArrayBufferView(De))&&(De=this.__addimage__.arrayBufferToBinaryString(De)),{alias:x,data:y,index:E,filter:et,decodeParameters:ht,transparency:Jr,palette:Er,sMask:De,predictor:Qr,width:we,height:ve,bitsPerComponent:Ne,sMaskBitsPerComponent:Ot,colorSpace:$t}}},function(y){y.processGIF89A=function(E,x,te,re){var ae=new Dv(E),we=ae.width,ve=ae.height,Be=[];ae.decodeAndBlitFrameRGBA(0,Be);var Ee={data:Be,width:we,height:ve},Ne=new Wm(100).encode(Ee,100);return y.processJPEG.call(this,Ne,x,te,re)},y.processGIF87A=y.processGIF89A}(ao.API),fc.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var y=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(y);for(var E=0;E<y;E++){var x=this.datav.getUint8(this.pos++,!0),te=this.datav.getUint8(this.pos++,!0),re=this.datav.getUint8(this.pos++,!0),ae=this.datav.getUint8(this.pos++,!0);this.palette[E]={red:re,green:te,blue:x,quad:ae}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},fc.prototype.parseBGR=function(){this.pos=this.offset;try{var y="bit"+this.bitPP,E=this.width*this.height*4;this.data=new Uint8Array(E),this[y]()}catch(x){Pa.log("bit decode error:"+x)}},fc.prototype.bit1=function(){var y,E=Math.ceil(this.width/8),x=E%4;for(y=this.height-1;y>=0;y--){for(var te=this.bottom_up?y:this.height-1-y,re=0;re<E;re++)for(var ae=this.datav.getUint8(this.pos++,!0),we=te*this.width*4+8*re*4,ve=0;ve<8&&8*re+ve<this.width;ve++){var Be=this.palette[ae>>7-ve&1];this.data[we+4*ve]=Be.blue,this.data[we+4*ve+1]=Be.green,this.data[we+4*ve+2]=Be.red,this.data[we+4*ve+3]=255}x!==0&&(this.pos+=4-x)}},fc.prototype.bit4=function(){for(var y=Math.ceil(this.width/2),E=y%4,x=this.height-1;x>=0;x--){for(var te=this.bottom_up?x:this.height-1-x,re=0;re<y;re++){var ae=this.datav.getUint8(this.pos++,!0),we=te*this.width*4+2*re*4,ve=ae>>4,Be=15&ae,Ee=this.palette[ve];if(this.data[we]=Ee.blue,this.data[we+1]=Ee.green,this.data[we+2]=Ee.red,this.data[we+3]=255,2*re+1>=this.width)break;Ee=this.palette[Be],this.data[we+4]=Ee.blue,this.data[we+4+1]=Ee.green,this.data[we+4+2]=Ee.red,this.data[we+4+3]=255}E!==0&&(this.pos+=4-E)}},fc.prototype.bit8=function(){for(var y=this.width%4,E=this.height-1;E>=0;E--){for(var x=this.bottom_up?E:this.height-1-E,te=0;te<this.width;te++){var re=this.datav.getUint8(this.pos++,!0),ae=x*this.width*4+4*te;if(re<this.palette.length){var we=this.palette[re];this.data[ae]=we.red,this.data[ae+1]=we.green,this.data[ae+2]=we.blue,this.data[ae+3]=255}else this.data[ae]=255,this.data[ae+1]=255,this.data[ae+2]=255,this.data[ae+3]=255}y!==0&&(this.pos+=4-y)}},fc.prototype.bit15=function(){for(var y=this.width%3,E=parseInt("11111",2),x=this.height-1;x>=0;x--){for(var te=this.bottom_up?x:this.height-1-x,re=0;re<this.width;re++){var ae=this.datav.getUint16(this.pos,!0);this.pos+=2;var we=(ae&E)/E*255|0,ve=(ae>>5&E)/E*255|0,Be=(ae>>10&E)/E*255|0,Ee=ae>>15?255:0,Ne=te*this.width*4+4*re;this.data[Ne]=Be,this.data[Ne+1]=ve,this.data[Ne+2]=we,this.data[Ne+3]=Ee}this.pos+=y}},fc.prototype.bit16=function(){for(var y=this.width%3,E=parseInt("11111",2),x=parseInt("111111",2),te=this.height-1;te>=0;te--){for(var re=this.bottom_up?te:this.height-1-te,ae=0;ae<this.width;ae++){var we=this.datav.getUint16(this.pos,!0);this.pos+=2;var ve=(we&E)/E*255|0,Be=(we>>5&x)/x*255|0,Ee=(we>>11)/E*255|0,Ne=re*this.width*4+4*ae;this.data[Ne]=Ee,this.data[Ne+1]=Be,this.data[Ne+2]=ve,this.data[Ne+3]=255}this.pos+=y}},fc.prototype.bit24=function(){for(var y=this.height-1;y>=0;y--){for(var E=this.bottom_up?y:this.height-1-y,x=0;x<this.width;x++){var te=this.datav.getUint8(this.pos++,!0),re=this.datav.getUint8(this.pos++,!0),ae=this.datav.getUint8(this.pos++,!0),we=E*this.width*4+4*x;this.data[we]=ae,this.data[we+1]=re,this.data[we+2]=te,this.data[we+3]=255}this.pos+=this.width%4}},fc.prototype.bit32=function(){for(var y=this.height-1;y>=0;y--)for(var E=this.bottom_up?y:this.height-1-y,x=0;x<this.width;x++){var te=this.datav.getUint8(this.pos++,!0),re=this.datav.getUint8(this.pos++,!0),ae=this.datav.getUint8(this.pos++,!0),we=this.datav.getUint8(this.pos++,!0),ve=E*this.width*4+4*x;this.data[ve]=ae,this.data[ve+1]=re,this.data[ve+2]=te,this.data[ve+3]=we}},fc.prototype.getData=function(){return this.data},function(y){y.processBMP=function(E,x,te,re){var ae=new fc(E,!1),we=ae.width,ve=ae.height,Be={data:ae.getData(),width:we,height:ve},Ee=new Wm(100).encode(Be,100);return y.processJPEG.call(this,Ee,x,te,re)}}(ao.API),k0.prototype.getData=function(){return this.data},function(y){y.processWEBP=function(E,x,te,re){var ae=new k0(E),we=ae.width,ve=ae.height,Be={data:ae.getData(),width:we,height:ve},Ee=new Wm(100).encode(Be,100);return y.processJPEG.call(this,Ee,x,te,re)}}(ao.API),ao.API.processRGBA=function(y,E,x){for(var te=y.data,re=te.length,ae=new Uint8Array(re/4*3),we=new Uint8Array(re/4),ve=0,Be=0,Ee=0;Ee<re;Ee+=4){var Ne=te[Ee],et=te[Ee+1],ht=te[Ee+2],De=te[Ee+3];ae[ve++]=Ne,ae[ve++]=et,ae[ve++]=ht,we[Be++]=De}var tn=this.__addimage__.arrayBufferToBinaryString(ae);return{alpha:this.__addimage__.arrayBufferToBinaryString(we),data:tn,index:E,alias:x,colorSpace:"DeviceRGB",bitsPerComponent:8,width:y.width,height:y.height}},ao.API.setLanguage=function(y){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[y]!==void 0&&(this.internal.languageSettings.languageCode=y,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},Qp=ao.API,nm=Qp.getCharWidthsArray=function(y,E){var x,te,re=(E=E||{}).font||this.internal.getFont(),ae=E.fontSize||this.internal.getFontSize(),we=E.charSpace||this.internal.getCharSpace(),ve=E.widths?E.widths:re.metadata.Unicode.widths,Be=ve.fof?ve.fof:1,Ee=E.kerning?E.kerning:re.metadata.Unicode.kerning,Ne=Ee.fof?Ee.fof:1,et=E.doKerning!==!1,ht=0,De=y.length,tn=0,$t=ve[0]||Be,on=[];for(x=0;x<De;x++)te=y.charCodeAt(x),typeof re.metadata.widthOfString=="function"?on.push((re.metadata.widthOfGlyph(re.metadata.characterToGlyph(te))+we*(1e3/ae)||0)/1e3):(ht=et&&(0,oe.Z)(Ee[te])==="object"&&!isNaN(parseInt(Ee[te][tn],10))?Ee[te][tn]/Ne:0,on.push((ve[te]||$t)/Be+ht)),tn=te;return on},I0=Qp.getStringUnitWidth=function(y,E){var x=(E=E||{}).fontSize||this.internal.getFontSize(),te=E.font||this.internal.getFont(),re=E.charSpace||this.internal.getCharSpace();return Qp.processArabic&&(y=Qp.processArabic(y)),typeof te.metadata.widthOfString=="function"?te.metadata.widthOfString(y,x,re)/x:nm.apply(this,arguments).reduce(function(ae,we){return ae+we},0)},L0=function(y,E,x,te){for(var re=[],ae=0,we=y.length,ve=0;ae!==we&&ve+E[ae]<x;)ve+=E[ae],ae++;re.push(y.slice(0,ae));var Be=ae;for(ve=0;ae!==we;)ve+E[ae]>te&&(re.push(y.slice(Be,ae)),ve=0,Be=ae),ve+=E[ae],ae++;return Be!==ae&&re.push(y.slice(Be,ae)),re},U0=function(y,E,x){x||(x={});var te,re,ae,we,ve,Be,Ee,Ne=[],et=[Ne],ht=x.textIndent||0,De=0,tn=0,$t=y.split(" "),on=nm.apply(this,[" ",x])[0];if(Be=x.lineIndent===-1?$t[0].length+2:x.lineIndent||0){var Ot=Array(Be).join(" "),jn=[];$t.map(function(bn){(bn=bn.split(/\s*\n/)).length>1?jn=jn.concat(bn.map(function(Er,Jr){return(Jr&&Er.length?`
|
|
|
`:"")+Er})):jn.push(bn[0])}),$t=jn,Be=I0.apply(this,[Ot,x])}for(ae=0,we=$t.length;ae<we;ae++){var Dn=0;if(te=$t[ae],Be&&te[0]==`
|
|
|
`&&(te=te.substr(1),Dn=1),ht+De+(tn=(re=nm.apply(this,[te,x])).reduce(function(bn,Er){return bn+Er},0))>E||Dn){if(tn>E){for(ve=L0.apply(this,[te,re,E-(ht+De),E]),Ne.push(ve.shift()),Ne=[ve.pop()];ve.length;)et.push([ve.shift()]);tn=re.slice(te.length-(Ne[0]?Ne[0].length:0)).reduce(function(bn,Er){return bn+Er},0)}else Ne=[te];et.push(Ne),ht=tn+Be,De=on}else Ne.push(te),ht+=De+tn,De=on}return Ee=Be?function(bn,Er){return(Er?Ot:"")+bn.join(" ")}:function(bn){return bn.join(" ")},et.map(Ee)},Qp.splitTextToSize=function(y,E,x){var te,re=(x=x||{}).fontSize||this.internal.getFontSize(),ae=function(Ne){if(Ne.widths&&Ne.kerning)return{widths:Ne.widths,kerning:Ne.kerning};var et=this.internal.getFont(Ne.fontName,Ne.fontStyle),ht="Unicode";return et.metadata[ht]?{widths:et.metadata[ht].widths||{0:1},kerning:et.metadata[ht].kerning||{}}:{font:et.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,x);te=Array.isArray(y)?y:String(y).split(/\r?\n/);var we=1*this.internal.scaleFactor*E/re;ae.textIndent=x.textIndent?1*x.textIndent*this.internal.scaleFactor/re:0,ae.lineIndent=x.lineIndent;var ve,Be,Ee=[];for(ve=0,Be=te.length;ve<Be;ve++)Ee=Ee.concat(U0.apply(this,[te[ve],we,ae]));return Ee},function(y){y.__fontmetrics__=y.__fontmetrics__||{};for(var E="0123456789abcdef",x="klmnopqrstuvwxyz",te={},re={},ae=0;ae<16;ae++)te[x[ae]]=E[ae],re[E[ae]]=x[ae];var we=function(ht){return"0x"+parseInt(ht,10).toString(16)},ve=y.__fontmetrics__.compress=function(ht){var De,tn,$t,on,Ot=["{"];for(var jn in ht){if(De=ht[jn],isNaN(parseInt(jn,10))?tn="'"+jn+"'":(jn=parseInt(jn,10),tn=(tn=we(jn).slice(2)).slice(0,-1)+re[tn.slice(-1)]),typeof De=="number")De<0?($t=we(De).slice(3),on="-"):($t=we(De).slice(2),on=""),$t=on+$t.slice(0,-1)+re[$t.slice(-1)];else{if((0,oe.Z)(De)!=="object")throw new Error("Don't know what to do with value type "+(0,oe.Z)(De)+".");$t=ve(De)}Ot.push(tn+$t)}return Ot.push("}"),Ot.join("")},Be=y.__fontmetrics__.uncompress=function(ht){if(typeof ht!="string")throw new Error("Invalid argument passed to uncompress.");for(var De,tn,$t,on,Ot={},jn=1,Dn=Ot,bn=[],Er="",Jr="",Qr=ht.length-1,qn=1;qn<Qr;qn+=1)(on=ht[qn])=="'"?De?($t=De.join(""),De=void 0):De=[]:De?De.push(on):on=="{"?(bn.push([Dn,$t]),Dn={},$t=void 0):on=="}"?((tn=bn.pop())[0][tn[1]]=Dn,$t=void 0,Dn=tn[0]):on=="-"?jn=-1:$t===void 0?te.hasOwnProperty(on)?(Er+=te[on],$t=parseInt(Er,16)*jn,jn=1,Er=""):Er+=on:te.hasOwnProperty(on)?(Jr+=te[on],Dn[$t]=parseInt(Jr,16)*jn,jn=1,$t=void 0,Jr=""):Jr+=on;return Ot},Ee={codePages:["WinAnsiEncoding"],WinAnsiEncoding:Be("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},Ne={Unicode:{Courier:Ee,"Courier-Bold":Ee,"Courier-BoldOblique":Ee,"Courier-Oblique":Ee,Helvetica:Ee,"Helvetica-Bold":Ee,"Helvetica-BoldOblique":Ee,"Helvetica-Oblique":Ee,"Times-Roman":Ee,"Times-Bold":Ee,"Times-BoldItalic":Ee,"Times-Italic":Ee}},et={Unicode:{"Courier-Oblique":Be("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":Be("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":Be("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:Be("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":Be("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":Be("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:Be("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:Be("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":Be("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:Be("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":Be("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":Be("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":Be("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":Be("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};y.events.push(["addFont",function(ht){var De=ht.font,tn=et.Unicode[De.postScriptName];tn&&(De.metadata.Unicode={},De.metadata.Unicode.widths=tn.widths,De.metadata.Unicode.kerning=tn.kerning);var $t=Ne.Unicode[De.postScriptName];$t&&(De.metadata.Unicode.encoding=$t,De.encoding=$t.codePages[0])}])}(ao.API),function(y){var E=function(x){for(var te=x.length,re=new Uint8Array(te),ae=0;ae<te;ae++)re[ae]=x.charCodeAt(ae);return re};y.API.events.push(["addFont",function(x){var te=void 0,re=x.font,ae=x.instance;if(!re.isStandardFont){if(ae===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+re.postScriptName+"').");if(typeof(te=ae.existsFileInVFS(re.postScriptName)===!1?ae.loadFile(re.postScriptName):ae.getFileFromVFS(re.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+re.postScriptName+"').");(function(we,ve){ve=/^\x00\x01\x00\x00/.test(ve)?E(ve):E(Ih(ve)),we.metadata=y.API.TTFFont.open(ve),we.metadata.Unicode=we.metadata.Unicode||{encoding:{},kerning:{},widths:[]},we.metadata.glyIdsUsed=[0]})(re,te)}}])}(ao),ao.API.addSvgAsImage=function(y,E,x,te,re,ae,we,ve){if(isNaN(E)||isNaN(x))throw Pa.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(te)||isNaN(re))throw Pa.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var Be=document.createElement("canvas");Be.width=te,Be.height=re;var Ee=Be.getContext("2d");Ee.fillStyle="#fff",Ee.fillRect(0,0,Be.width,Be.height);var Ne={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},et=this;return(fo.canvg?Promise.resolve(fo.canvg):pe.e(3754).then(pe.bind(pe,63754))).catch(function(ht){return Promise.reject(new Error("Could not load canvg: "+ht))}).then(function(ht){return ht.default?ht.default:ht}).then(function(ht){return ht.fromString(Ee,y,Ne)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(ht){return ht.render(Ne)}).then(function(){et.addImage(Be.toDataURL("image/jpeg",1),E,x,te,re,we,ve)})},ao.API.putTotalPages=function(y){var E,x=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(E=new RegExp(y,"g"),x=this.internal.getNumberOfPages()):(E=new RegExp(this.pdfEscape16(y,this.internal.getFont()),"g"),x=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var te=1;te<=this.internal.getNumberOfPages();te++)for(var re=0;re<this.internal.pages[te].length;re++)this.internal.pages[te][re]=this.internal.pages[te][re].replace(E,x);return this},ao.API.viewerPreferences=function(y,E){var x;y=y||{},E=E||!1;var te,re,ae,we={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},ve=Object.keys(we),Be=[],Ee=0,Ne=0,et=0;function ht(tn,$t){var on,Ot=!1;for(on=0;on<tn.length;on+=1)tn[on]===$t&&(Ot=!0);return Ot}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(we)),this.internal.viewerpreferences.isSubscribed=!1),x=this.internal.viewerpreferences.configuration,y==="reset"||E===!0){var De=ve.length;for(et=0;et<De;et+=1)x[ve[et]].value=x[ve[et]].defaultValue,x[ve[et]].explicitSet=!1}if((0,oe.Z)(y)==="object"){for(re in y)if(ae=y[re],ht(ve,re)&&ae!==void 0){if(x[re].type==="boolean"&&typeof ae=="boolean")x[re].value=ae;else if(x[re].type==="name"&&ht(x[re].valueSet,ae))x[re].value=ae;else if(x[re].type==="integer"&&Number.isInteger(ae))x[re].value=ae;else if(x[re].type==="array"){for(Ee=0;Ee<ae.length;Ee+=1)if(te=!0,ae[Ee].length===1&&typeof ae[Ee][0]=="number")Be.push(String(ae[Ee]-1));else if(ae[Ee].length>1){for(Ne=0;Ne<ae[Ee].length;Ne+=1)typeof ae[Ee][Ne]!="number"&&(te=!1);te===!0&&Be.push([ae[Ee][0]-1,ae[Ee][1]-1].join(" "))}x[re].value="["+Be.join(" ")+"]"}else x[re].value=x[re].defaultValue;x[re].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var tn,$t=[];for(tn in x)x[tn].explicitSet===!0&&(x[tn].type==="name"?$t.push("/"+tn+" /"+x[tn].value):$t.push("/"+tn+" "+x[tn].value));$t.length!==0&&this.internal.write(`/ViewerPreferences
|
|
|
<<
|
|
|
`+$t.join(`
|
|
|
`)+`
|
|
|
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=x,this},function(y){var E=function(){var te='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',re=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),ae=unescape(encodeURIComponent(te)),we=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),ve=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),Be=unescape(encodeURIComponent("</x:xmpmeta>")),Ee=ae.length+we.length+ve.length+re.length+Be.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+Ee+" >>"),this.internal.write("stream"),this.internal.write(re+ae+we+ve+Be),this.internal.write("endstream"),this.internal.write("endobj")},x=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};y.addMetadata=function(te,re){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:te,namespaceuri:re||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",x),this.internal.events.subscribe("postPutResources",E)),this}}(ao.API),function(y){var E=y.API,x=E.pdfEscape16=function(ae,we){for(var ve,Be=we.metadata.Unicode.widths,Ee=["","0","00","000","0000"],Ne=[""],et=0,ht=ae.length;et<ht;++et){if(ve=we.metadata.characterToGlyph(ae.charCodeAt(et)),we.metadata.glyIdsUsed.push(ve),we.metadata.toUnicode[ve]=ae.charCodeAt(et),Be.indexOf(ve)==-1&&(Be.push(ve),Be.push([parseInt(we.metadata.widthOfGlyph(ve),10)])),ve=="0")return Ne.join("");ve=ve.toString(16),Ne.push(Ee[4-ve.length],ve)}return Ne.join("")},te=function(ae){var we,ve,Be,Ee,Ne,et,ht;for(Ne=`/CIDInit /ProcSet findresource begin
|
|
|
12 dict begin
|
|
|
begincmap
|
|
|
/CIDSystemInfo <<
|
|
|
/Registry (Adobe)
|
|
|
/Ordering (UCS)
|
|
|
/Supplement 0
|
|
|
>> def
|
|
|
/CMapName /Adobe-Identity-UCS def
|
|
|
/CMapType 2 def
|
|
|
1 begincodespacerange
|
|
|
<0000><ffff>
|
|
|
endcodespacerange`,Be=[],et=0,ht=(ve=Object.keys(ae).sort(function(De,tn){return De-tn})).length;et<ht;et++)we=ve[et],Be.length>=100&&(Ne+=`
|
|
|
`+Be.length+` beginbfchar
|
|
|
`+Be.join(`
|
|
|
`)+`
|
|
|
endbfchar`,Be=[]),ae[we]!==void 0&&ae[we]!==null&&typeof ae[we].toString=="function"&&(Ee=("0000"+ae[we].toString(16)).slice(-4),we=("0000"+(+we).toString(16)).slice(-4),Be.push("<"+we+"><"+Ee+">"));return Be.length&&(Ne+=`
|
|
|
`+Be.length+` beginbfchar
|
|
|
`+Be.join(`
|
|
|
`)+`
|
|
|
endbfchar
|
|
|
`),Ne+`endcmap
|
|
|
CMapName currentdict /CMap defineresource pop
|
|
|
end
|
|
|
end`};E.events.push(["putFont",function(ae){(function(we){var ve=we.font,Be=we.out,Ee=we.newObject,Ne=we.putStream;if(ve.metadata instanceof y.API.TTFFont&&ve.encoding==="Identity-H"){for(var et=ve.metadata.Unicode.widths,ht=ve.metadata.subset.encode(ve.metadata.glyIdsUsed,1),De="",tn=0;tn<ht.length;tn++)De+=String.fromCharCode(ht[tn]);var $t=Ee();Ne({data:De,addLength1:!0,objectId:$t}),Be("endobj");var on=Ee();Ne({data:te(ve.metadata.toUnicode),addLength1:!0,objectId:on}),Be("endobj");var Ot=Ee();Be("<<"),Be("/Type /FontDescriptor"),Be("/FontName /"+Au(ve.fontName)),Be("/FontFile2 "+$t+" 0 R"),Be("/FontBBox "+y.API.PDFObject.convert(ve.metadata.bbox)),Be("/Flags "+ve.metadata.flags),Be("/StemV "+ve.metadata.stemV),Be("/ItalicAngle "+ve.metadata.italicAngle),Be("/Ascent "+ve.metadata.ascender),Be("/Descent "+ve.metadata.decender),Be("/CapHeight "+ve.metadata.capHeight),Be(">>"),Be("endobj");var jn=Ee();Be("<<"),Be("/Type /Font"),Be("/BaseFont /"+Au(ve.fontName)),Be("/FontDescriptor "+Ot+" 0 R"),Be("/W "+y.API.PDFObject.convert(et)),Be("/CIDToGIDMap /Identity"),Be("/DW 1000"),Be("/Subtype /CIDFontType2"),Be("/CIDSystemInfo"),Be("<<"),Be("/Supplement 0"),Be("/Registry (Adobe)"),Be("/Ordering ("+ve.encoding+")"),Be(">>"),Be(">>"),Be("endobj"),ve.objectNumber=Ee(),Be("<<"),Be("/Type /Font"),Be("/Subtype /Type0"),Be("/ToUnicode "+on+" 0 R"),Be("/BaseFont /"+Au(ve.fontName)),Be("/Encoding /"+ve.encoding),Be("/DescendantFonts ["+jn+" 0 R]"),Be(">>"),Be("endobj"),ve.isAlreadyPutted=!0}})(ae)}]),E.events.push(["putFont",function(ae){(function(we){var ve=we.font,Be=we.out,Ee=we.newObject,Ne=we.putStream;if(ve.metadata instanceof y.API.TTFFont&&ve.encoding==="WinAnsiEncoding"){for(var et=ve.metadata.rawData,ht="",De=0;De<et.length;De++)ht+=String.fromCharCode(et[De]);var tn=Ee();Ne({data:ht,addLength1:!0,objectId:tn}),Be("endobj");var $t=Ee();Ne({data:te(ve.metadata.toUnicode),addLength1:!0,objectId:$t}),Be("endobj");var on=Ee();Be("<<"),Be("/Descent "+ve.metadata.decender),Be("/CapHeight "+ve.metadata.capHeight),Be("/StemV "+ve.metadata.stemV),Be("/Type /FontDescriptor"),Be("/FontFile2 "+tn+" 0 R"),Be("/Flags 96"),Be("/FontBBox "+y.API.PDFObject.convert(ve.metadata.bbox)),Be("/FontName /"+Au(ve.fontName)),Be("/ItalicAngle "+ve.metadata.italicAngle),Be("/Ascent "+ve.metadata.ascender),Be(">>"),Be("endobj"),ve.objectNumber=Ee();for(var Ot=0;Ot<ve.metadata.hmtx.widths.length;Ot++)ve.metadata.hmtx.widths[Ot]=parseInt(ve.metadata.hmtx.widths[Ot]*(1e3/ve.metadata.head.unitsPerEm));Be("<</Subtype/TrueType/Type/Font/ToUnicode "+$t+" 0 R/BaseFont/"+Au(ve.fontName)+"/FontDescriptor "+on+" 0 R/Encoding/"+ve.encoding+" /FirstChar 29 /LastChar 255 /Widths "+y.API.PDFObject.convert(ve.metadata.hmtx.widths)+">>"),Be("endobj"),ve.isAlreadyPutted=!0}})(ae)}]);var re=function(ae){var we,ve=ae.text||"",Be=ae.x,Ee=ae.y,Ne=ae.options||{},et=ae.mutex||{},ht=et.pdfEscape,De=et.activeFontKey,tn=et.fonts,$t=De,on="",Ot=0,jn="",Dn=tn[$t].encoding;if(tn[$t].encoding!=="Identity-H")return{text:ve,x:Be,y:Ee,options:Ne,mutex:et};for(jn=ve,$t=De,Array.isArray(ve)&&(jn=ve[0]),Ot=0;Ot<jn.length;Ot+=1)tn[$t].metadata.hasOwnProperty("cmap")&&(we=tn[$t].metadata.cmap.unicode.codeMap[jn[Ot].charCodeAt(0)]),we||jn[Ot].charCodeAt(0)<256&&tn[$t].metadata.hasOwnProperty("Unicode")?on+=jn[Ot]:on+="";var bn="";return parseInt($t.slice(1))<14||Dn==="WinAnsiEncoding"?bn=ht(on,$t).split("").map(function(Er){return Er.charCodeAt(0).toString(16)}).join(""):Dn==="Identity-H"&&(bn=x(on,tn[$t])),et.isHex=!0,{text:bn,x:Be,y:Ee,options:Ne,mutex:et}};E.events.push(["postProcessText",function(ae){var we=ae.text||"",ve=[],Be={text:we,x:ae.x,y:ae.y,options:ae.options,mutex:ae.mutex};if(Array.isArray(we)){var Ee=0;for(Ee=0;Ee<we.length;Ee+=1)Array.isArray(we[Ee])&&we[Ee].length===3?ve.push([re(Object.assign({},Be,{text:we[Ee][0]})).text,we[Ee][1],we[Ee][2]]):ve.push(re(Object.assign({},Be,{text:we[Ee]})).text);ae.text=ve}else ae.text=re(Object.assign({},Be,{text:we})).text}])}(ao),function(y){var E=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};y.existsFileInVFS=function(x){return E.call(this),this.internal.vFS[x]!==void 0},y.addFileToVFS=function(x,te){return E.call(this),this.internal.vFS[x]=te,this},y.getFileFromVFS=function(x){return E.call(this),this.internal.vFS[x]!==void 0?this.internal.vFS[x]:null}}(ao.API),function(y){y.__bidiEngine__=y.prototype.__bidiEngine__=function(te){var re,ae,we,ve,Be,Ee,Ne,et=E,ht=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],De=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],tn={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},$t={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},on=["(",")","(","<",">","<","[","]","[","{","}","{","\xAB","\xBB","\xAB","\u2039","\u203A","\u2039","\u2045","\u2046","\u2045","\u207D","\u207E","\u207D","\u208D","\u208E","\u208D","\u2264","\u2265","\u2264","\u2329","\u232A","\u2329","\uFE59","\uFE5A","\uFE59","\uFE5B","\uFE5C","\uFE5B","\uFE5D","\uFE5E","\uFE5D","\uFE64","\uFE65","\uFE64"],Ot=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),jn=!1,Dn=0;this.__bidiEngine__={};var bn=function(Ut){var an=Ut.charCodeAt(),Hn=an>>8,Pn=$t[Hn];return Pn!==void 0?et[256*Pn+(255&an)]:Hn===252||Hn===253?"AL":Ot.test(Hn)?"L":Hn===8?"R":"N"},Er=function(Ut){for(var an,Hn=0;Hn<Ut.length;Hn++){if((an=bn(Ut.charAt(Hn)))==="L")return!1;if(an==="R")return!0}return!1},Jr=function(Ut,an,Hn,Pn){var Ir,Tr,_r,Br,Kr=an[Pn];switch(Kr){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":jn=!1;break;case"N":case"AN":break;case"EN":jn&&(Kr="AN");break;case"AL":jn=!0,Kr="R";break;case"WS":case"BN":Kr="N";break;case"CS":Pn<1||Pn+1>=an.length||(Ir=Hn[Pn-1])!=="EN"&&Ir!=="AN"||(Tr=an[Pn+1])!=="EN"&&Tr!=="AN"?Kr="N":jn&&(Tr="AN"),Kr=Tr===Ir?Tr:"N";break;case"ES":Kr=(Ir=Pn>0?Hn[Pn-1]:"B")==="EN"&&Pn+1<an.length&&an[Pn+1]==="EN"?"EN":"N";break;case"ET":if(Pn>0&&Hn[Pn-1]==="EN"){Kr="EN";break}if(jn){Kr="N";break}for(_r=Pn+1,Br=an.length;_r<Br&&an[_r]==="ET";)_r++;Kr=_r<Br&&an[_r]==="EN"?"EN":"N";break;case"NSM":if(we&&!ve){for(Br=an.length,_r=Pn+1;_r<Br&&an[_r]==="NSM";)_r++;if(_r<Br){var Si=Ut[Pn],li=Si>=1425&&Si<=2303||Si===64286;if(Ir=an[_r],li&&(Ir==="R"||Ir==="AL")){Kr="R";break}}}Kr=Pn<1||(Ir=an[Pn-1])==="B"?"N":Hn[Pn-1];break;case"B":jn=!1,re=!0,Kr=Dn;break;case"S":ae=!0,Kr="N"}return Kr},Qr=function(Ut,an,Hn){var Pn=Ut.split("");return Hn&&qn(Pn,Hn,{hiLevel:Dn}),Pn.reverse(),an&&an.reverse(),Pn.join("")},qn=function(Ut,an,Hn){var Pn,Ir,Tr,_r,Br,Kr=-1,Si=Ut.length,li=0,xt=[],wn=Dn?De:ht,On=[];for(jn=!1,re=!1,ae=!1,Ir=0;Ir<Si;Ir++)On[Ir]=bn(Ut[Ir]);for(Tr=0;Tr<Si;Tr++){if(Br=li,xt[Tr]=Jr(Ut,On,xt,Tr),Pn=240&(li=wn[Br][tn[xt[Tr]]]),li&=15,an[Tr]=_r=wn[li][5],Pn>0)if(Pn===16){for(Ir=Kr;Ir<Tr;Ir++)an[Ir]=1;Kr=-1}else Kr=-1;if(wn[li][6])Kr===-1&&(Kr=Tr);else if(Kr>-1){for(Ir=Kr;Ir<Tr;Ir++)an[Ir]=_r;Kr=-1}On[Tr]==="B"&&(an[Tr]=0),Hn.hiLevel|=_r}ae&&function(Gn,or,yr){for(var Mr=0;Mr<yr;Mr++)if(Gn[Mr]==="S"){or[Mr]=Dn;for(var Hr=Mr-1;Hr>=0&&Gn[Hr]==="WS";Hr--)or[Hr]=Dn}}(On,an,Si)},Bn=function(Ut,an,Hn,Pn,Ir){if(!(Ir.hiLevel<Ut)){if(Ut===1&&Dn===1&&!re)return an.reverse(),void(Hn&&Hn.reverse());for(var Tr,_r,Br,Kr,Si=an.length,li=0;li<Si;){if(Pn[li]>=Ut){for(Br=li+1;Br<Si&&Pn[Br]>=Ut;)Br++;for(Kr=li,_r=Br-1;Kr<_r;Kr++,_r--)Tr=an[Kr],an[Kr]=an[_r],an[_r]=Tr,Hn&&(Tr=Hn[Kr],Hn[Kr]=Hn[_r],Hn[_r]=Tr);li=Br}li++}}},ur=function(Ut,an,Hn){var Pn=Ut.split(""),Ir={hiLevel:Dn};return Hn||(Hn=[]),qn(Pn,Hn,Ir),function(Tr,_r,Br){if(Br.hiLevel!==0&&Ne)for(var Kr,Si=0;Si<Tr.length;Si++)_r[Si]===1&&(Kr=on.indexOf(Tr[Si]))>=0&&(Tr[Si]=on[Kr+1])}(Pn,Hn,Ir),Bn(2,Pn,an,Hn,Ir),Bn(1,Pn,an,Hn,Ir),Pn.join("")};return this.__bidiEngine__.doBidiReorder=function(Ut,an,Hn){if(function(Ir,Tr){if(Tr)for(var _r=0;_r<Ir.length;_r++)Tr[_r]=_r;ve===void 0&&(ve=Er(Ir)),Ee===void 0&&(Ee=Er(Ir))}(Ut,an),we||!Be||Ee)if(we&&Be&&ve^Ee)Dn=ve?1:0,Ut=Qr(Ut,an,Hn);else if(!we&&Be&&Ee)Dn=ve?1:0,Ut=ur(Ut,an,Hn),Ut=Qr(Ut,an);else if(!we||ve||Be||Ee){if(we&&!Be&&ve^Ee)Ut=Qr(Ut,an),ve?(Dn=0,Ut=ur(Ut,an,Hn)):(Dn=1,Ut=ur(Ut,an,Hn),Ut=Qr(Ut,an));else if(we&&ve&&!Be&&Ee)Dn=1,Ut=ur(Ut,an,Hn),Ut=Qr(Ut,an);else if(!we&&!Be&&ve^Ee){var Pn=Ne;ve?(Dn=1,Ut=ur(Ut,an,Hn),Dn=0,Ne=!1,Ut=ur(Ut,an,Hn),Ne=Pn):(Dn=0,Ut=ur(Ut,an,Hn),Ut=Qr(Ut,an),Dn=1,Ne=!1,Ut=ur(Ut,an,Hn),Ne=Pn,Ut=Qr(Ut,an))}}else Dn=0,Ut=ur(Ut,an,Hn);else Dn=ve?1:0,Ut=ur(Ut,an,Hn);return Ut},this.__bidiEngine__.setOptions=function(Ut){Ut&&(we=Ut.isInputVisual,Be=Ut.isOutputVisual,ve=Ut.isInputRtl,Ee=Ut.isOutputRtl,Ne=Ut.isSymmetricSwapping)},this.__bidiEngine__.setOptions(te),this.__bidiEngine__};var E=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],x=new y.__bidiEngine__({isInputVisual:!0});y.API.events.push(["postProcessText",function(te){var re=te.text;te.x,te.y;var ae=te.options||{};te.mutex,ae.lang;var we=[];if(ae.isInputVisual=typeof ae.isInputVisual!="boolean"||ae.isInputVisual,x.setOptions(ae),Object.prototype.toString.call(re)==="[object Array]"){var ve=0;for(we=[],ve=0;ve<re.length;ve+=1)Object.prototype.toString.call(re[ve])==="[object Array]"?we.push([x.doBidiReorder(re[ve][0]),re[ve][1],re[ve][2]]):we.push([x.doBidiReorder(re[ve])]);te.text=we}else te.text=x.doBidiReorder(re);x.setOptions({isInputVisual:!0})}])}(ao),ao.API.TTFFont=function(){function y(E){var x;if(this.rawData=E,x=this.contents=new Dd(E),this.contents.pos=4,x.readString(4)==="ttcf")throw new Error("TTCF not supported.");x.pos=0,this.parse(),this.subset=new Vv(this),this.registerTTF()}return y.open=function(E){return new y(E)},y.prototype.parse=function(){return this.directory=new Nv(this.contents),this.head=new Tv(this),this.name=new Hv(this),this.cmap=new R0(this),this.toUnicode={},this.hhea=new Qv(this),this.maxp=new Rv(this),this.hmtx=new jv(this),this.post=new _v(this),this.os2=new Mv(this),this.loca=new Gv(this),this.glyf=new zv(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},y.prototype.registerTTF=function(){var E,x,te,re,ae;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var we,ve,Be,Ee;for(Ee=[],we=0,ve=(Be=this.bbox).length;we<ve;we++)E=Be[we],Ee.push(Math.round(E*this.scaleFactor));return Ee}.call(this),this.stemV=0,this.post.exists?(te=255&(re=this.post.italic_angle),32768&(x=re>>16)&&(x=-(1+(65535^x))),this.italicAngle=+(x+"."+te)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(ae=this.familyClass)===1||ae===2||ae===3||ae===4||ae===5||ae===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},y.prototype.characterToGlyph=function(E){var x;return((x=this.cmap.unicode)!=null?x.codeMap[E]:void 0)||0},y.prototype.widthOfGlyph=function(E){var x;return x=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(E).advance*x},y.prototype.widthOfString=function(E,x,te){var re,ae,we,ve;for(we=0,ae=0,ve=(E=""+E).length;0<=ve?ae<ve:ae>ve;ae=0<=ve?++ae:--ae)re=E.charCodeAt(ae),we+=this.widthOfGlyph(this.characterToGlyph(re))+te*(1e3/x)||0;return we*(x/1e3)},y.prototype.lineHeight=function(E,x){var te;return x==null&&(x=!1),te=x?this.lineGap:0,(this.ascender+te-this.decender)/1e3*E},y}();var dc,Dd=function(){function y(E){this.data=E!=null?E:[],this.pos=0,this.length=this.data.length}return y.prototype.readByte=function(){return this.data[this.pos++]},y.prototype.writeByte=function(E){return this.data[this.pos++]=E},y.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},y.prototype.writeUInt32=function(E){return this.writeByte(E>>>24&255),this.writeByte(E>>16&255),this.writeByte(E>>8&255),this.writeByte(255&E)},y.prototype.readInt32=function(){var E;return(E=this.readUInt32())>=2147483648?E-4294967296:E},y.prototype.writeInt32=function(E){return E<0&&(E+=4294967296),this.writeUInt32(E)},y.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},y.prototype.writeUInt16=function(E){return this.writeByte(E>>8&255),this.writeByte(255&E)},y.prototype.readInt16=function(){var E;return(E=this.readUInt16())>=32768?E-65536:E},y.prototype.writeInt16=function(E){return E<0&&(E+=65536),this.writeUInt16(E)},y.prototype.readString=function(E){var x,te;for(te=[],x=0;0<=E?x<E:x>E;x=0<=E?++x:--x)te[x]=String.fromCharCode(this.readByte());return te.join("")},y.prototype.writeString=function(E){var x,te,re;for(re=[],x=0,te=E.length;0<=te?x<te:x>te;x=0<=te?++x:--x)re.push(this.writeByte(E.charCodeAt(x)));return re},y.prototype.readShort=function(){return this.readInt16()},y.prototype.writeShort=function(E){return this.writeInt16(E)},y.prototype.readLongLong=function(){var E,x,te,re,ae,we,ve,Be;return E=this.readByte(),x=this.readByte(),te=this.readByte(),re=this.readByte(),ae=this.readByte(),we=this.readByte(),ve=this.readByte(),Be=this.readByte(),128&E?-1*(72057594037927940*(255^E)+281474976710656*(255^x)+1099511627776*(255^te)+4294967296*(255^re)+16777216*(255^ae)+65536*(255^we)+256*(255^ve)+(255^Be)+1):72057594037927940*E+281474976710656*x+1099511627776*te+4294967296*re+16777216*ae+65536*we+256*ve+Be},y.prototype.writeLongLong=function(E){var x,te;return x=Math.floor(E/4294967296),te=4294967295&E,this.writeByte(x>>24&255),this.writeByte(x>>16&255),this.writeByte(x>>8&255),this.writeByte(255&x),this.writeByte(te>>24&255),this.writeByte(te>>16&255),this.writeByte(te>>8&255),this.writeByte(255&te)},y.prototype.readInt=function(){return this.readInt32()},y.prototype.writeInt=function(E){return this.writeInt32(E)},y.prototype.read=function(E){var x,te;for(x=[],te=0;0<=E?te<E:te>E;te=0<=E?++te:--te)x.push(this.readByte());return x},y.prototype.write=function(E){var x,te,re,ae;for(ae=[],te=0,re=E.length;te<re;te++)x=E[te],ae.push(this.writeByte(x));return ae},y}(),Nv=function(){var y;function E(x){var te,re,ae;for(this.scalarType=x.readInt(),this.tableCount=x.readShort(),this.searchRange=x.readShort(),this.entrySelector=x.readShort(),this.rangeShift=x.readShort(),this.tables={},re=0,ae=this.tableCount;0<=ae?re<ae:re>ae;re=0<=ae?++re:--re)te={tag:x.readString(4),checksum:x.readInt(),offset:x.readInt(),length:x.readInt()},this.tables[te.tag]=te}return E.prototype.encode=function(x){var te,re,ae,we,ve,Be,Ee,Ne,et,ht,De,tn,$t;for($t in De=Object.keys(x).length,Be=Math.log(2),et=16*Math.floor(Math.log(De)/Be),we=Math.floor(et/Be),Ne=16*De-et,(re=new Dd).writeInt(this.scalarType),re.writeShort(De),re.writeShort(et),re.writeShort(we),re.writeShort(Ne),ae=16*De,Ee=re.pos+ae,ve=null,tn=[],x)for(ht=x[$t],re.writeString($t),re.writeInt(y(ht)),re.writeInt(Ee),re.writeInt(ht.length),tn=tn.concat(ht),$t==="head"&&(ve=Ee),Ee+=ht.length;Ee%4;)tn.push(0),Ee++;return re.write(tn),te=2981146554-y(re.data),re.pos=ve+8,re.writeUInt32(te),re.data},y=function(x){var te,re,ae,we;for(x=j0.call(x);x.length%4;)x.push(0);for(ae=new Dd(x),re=0,te=0,we=x.length;te<we;te=te+=4)re+=ae.readUInt32();return 4294967295&re},E}(),Pv={}.hasOwnProperty,Yc=function(y,E){for(var x in E)Pv.call(E,x)&&(y[x]=E[x]);function te(){this.constructor=y}return te.prototype=E.prototype,y.prototype=new te,y.__super__=E.prototype,y};dc=function(){function y(E){var x;this.file=E,x=this.file.directory.tables[this.tag],this.exists=!!x,x&&(this.offset=x.offset,this.length=x.length,this.parse(this.file.contents))}return y.prototype.parse=function(){},y.prototype.encode=function(){},y.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},y}();var Tv=function(){function y(){return y.__super__.constructor.apply(this,arguments)}return Yc(y,dc),y.prototype.tag="head",y.prototype.parse=function(E){return E.pos=this.offset,this.version=E.readInt(),this.revision=E.readInt(),this.checkSumAdjustment=E.readInt(),this.magicNumber=E.readInt(),this.flags=E.readShort(),this.unitsPerEm=E.readShort(),this.created=E.readLongLong(),this.modified=E.readLongLong(),this.xMin=E.readShort(),this.yMin=E.readShort(),this.xMax=E.readShort(),this.yMax=E.readShort(),this.macStyle=E.readShort(),this.lowestRecPPEM=E.readShort(),this.fontDirectionHint=E.readShort(),this.indexToLocFormat=E.readShort(),this.glyphDataFormat=E.readShort()},y.prototype.encode=function(E){var x;return(x=new Dd).writeInt(this.version),x.writeInt(this.revision),x.writeInt(this.checkSumAdjustment),x.writeInt(this.magicNumber),x.writeShort(this.flags),x.writeShort(this.unitsPerEm),x.writeLongLong(this.created),x.writeLongLong(this.modified),x.writeShort(this.xMin),x.writeShort(this.yMin),x.writeShort(this.xMax),x.writeShort(this.yMax),x.writeShort(this.macStyle),x.writeShort(this.lowestRecPPEM),x.writeShort(this.fontDirectionHint),x.writeShort(E),x.writeShort(this.glyphDataFormat),x.data},y}(),H0=function(){function y(E,x){var te,re,ae,we,ve,Be,Ee,Ne,et,ht,De,tn,$t,on,Ot,jn,Dn;switch(this.platformID=E.readUInt16(),this.encodingID=E.readShort(),this.offset=x+E.readInt(),et=E.pos,E.pos=this.offset,this.format=E.readUInt16(),this.length=E.readUInt16(),this.language=E.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(Be=0;Be<256;++Be)this.codeMap[Be]=E.readByte();break;case 4:for(De=E.readUInt16(),ht=De/2,E.pos+=6,ae=function(){var bn,Er;for(Er=[],Be=bn=0;0<=ht?bn<ht:bn>ht;Be=0<=ht?++bn:--bn)Er.push(E.readUInt16());return Er}(),E.pos+=2,$t=function(){var bn,Er;for(Er=[],Be=bn=0;0<=ht?bn<ht:bn>ht;Be=0<=ht?++bn:--bn)Er.push(E.readUInt16());return Er}(),Ee=function(){var bn,Er;for(Er=[],Be=bn=0;0<=ht?bn<ht:bn>ht;Be=0<=ht?++bn:--bn)Er.push(E.readUInt16());return Er}(),Ne=function(){var bn,Er;for(Er=[],Be=bn=0;0<=ht?bn<ht:bn>ht;Be=0<=ht?++bn:--bn)Er.push(E.readUInt16());return Er}(),re=(this.length-E.pos+this.offset)/2,ve=function(){var bn,Er;for(Er=[],Be=bn=0;0<=re?bn<re:bn>re;Be=0<=re?++bn:--bn)Er.push(E.readUInt16());return Er}(),Be=Ot=0,Dn=ae.length;Ot<Dn;Be=++Ot)for(on=ae[Be],te=jn=tn=$t[Be];tn<=on?jn<=on:jn>=on;te=tn<=on?++jn:--jn)Ne[Be]===0?we=te+Ee[Be]:(we=ve[Ne[Be]/2+(te-tn)-(ht-Be)]||0)!==0&&(we+=Ee[Be]),this.codeMap[te]=65535&we}E.pos=et}return y.encode=function(E,x){var te,re,ae,we,ve,Be,Ee,Ne,et,ht,De,tn,$t,on,Ot,jn,Dn,bn,Er,Jr,Qr,qn,Bn,ur,Ut,an,Hn,Pn,Ir,Tr,_r,Br,Kr,Si,li,xt,wn,On,Gn,or,yr,Mr,Hr,oi,wi,Ri;switch(Pn=new Dd,we=Object.keys(E).sort(function(_i,Io){return _i-Io}),x){case"macroman":for($t=0,on=function(){var _i=[];for(tn=0;tn<256;++tn)_i.push(0);return _i}(),jn={0:0},ae={},Ir=0,Kr=we.length;Ir<Kr;Ir++)jn[Hr=E[re=we[Ir]]]==null&&(jn[Hr]=++$t),ae[re]={old:E[re],new:jn[E[re]]},on[re]=jn[E[re]];return Pn.writeUInt16(1),Pn.writeUInt16(0),Pn.writeUInt32(12),Pn.writeUInt16(0),Pn.writeUInt16(262),Pn.writeUInt16(0),Pn.write(on),{charMap:ae,subtable:Pn.data,maxGlyphID:$t+1};case"unicode":for(an=[],et=[],Dn=0,jn={},te={},Ot=Ee=null,Tr=0,Si=we.length;Tr<Si;Tr++)jn[Er=E[re=we[Tr]]]==null&&(jn[Er]=++Dn),te[re]={old:Er,new:jn[Er]},ve=jn[Er]-re,Ot!=null&&ve===Ee||(Ot&&et.push(Ot),an.push(re),Ee=ve),Ot=re;for(Ot&&et.push(Ot),et.push(65535),an.push(65535),ur=2*(Bn=an.length),qn=2*Math.pow(Math.log(Bn)/Math.LN2,2),ht=Math.log(qn/2)/Math.LN2,Qr=2*Bn-qn,Be=[],Jr=[],De=[],tn=_r=0,li=an.length;_r<li;tn=++_r){if(Ut=an[tn],Ne=et[tn],Ut===65535){Be.push(0),Jr.push(0);break}if(Ut-(Hn=te[Ut].new)>=32768)for(Be.push(0),Jr.push(2*(De.length+Bn-tn)),re=Br=Ut;Ut<=Ne?Br<=Ne:Br>=Ne;re=Ut<=Ne?++Br:--Br)De.push(te[re].new);else Be.push(Hn-Ut),Jr.push(0)}for(Pn.writeUInt16(3),Pn.writeUInt16(1),Pn.writeUInt32(12),Pn.writeUInt16(4),Pn.writeUInt16(16+8*Bn+2*De.length),Pn.writeUInt16(0),Pn.writeUInt16(ur),Pn.writeUInt16(qn),Pn.writeUInt16(ht),Pn.writeUInt16(Qr),yr=0,xt=et.length;yr<xt;yr++)re=et[yr],Pn.writeUInt16(re);for(Pn.writeUInt16(0),Mr=0,wn=an.length;Mr<wn;Mr++)re=an[Mr],Pn.writeUInt16(re);for(oi=0,On=Be.length;oi<On;oi++)ve=Be[oi],Pn.writeUInt16(ve);for(wi=0,Gn=Jr.length;wi<Gn;wi++)bn=Jr[wi],Pn.writeUInt16(bn);for(Ri=0,or=De.length;Ri<or;Ri++)$t=De[Ri],Pn.writeUInt16($t);return{charMap:te,subtable:Pn.data,maxGlyphID:Dn+1}}},y}(),R0=function(){function y(){return y.__super__.constructor.apply(this,arguments)}return Yc(y,dc),y.prototype.tag="cmap",y.prototype.parse=function(E){var x,te,re;for(E.pos=this.offset,this.version=E.readUInt16(),re=E.readUInt16(),this.tables=[],this.unicode=null,te=0;0<=re?te<re:te>re;te=0<=re?++te:--te)x=new H0(E,this.offset),this.tables.push(x),x.isUnicode&&this.unicode==null&&(this.unicode=x);return!0},y.encode=function(E,x){var te,re;return x==null&&(x="macroman"),te=H0.encode(E,x),(re=new Dd).writeUInt16(0),re.writeUInt16(1),te.table=re.data.concat(te.subtable),te},y}(),Qv=function(){function y(){return y.__super__.constructor.apply(this,arguments)}return Yc(y,dc),y.prototype.tag="hhea",y.prototype.parse=function(E){return E.pos=this.offset,this.version=E.readInt(),this.ascender=E.readShort(),this.decender=E.readShort(),this.lineGap=E.readShort(),this.advanceWidthMax=E.readShort(),this.minLeftSideBearing=E.readShort(),this.minRightSideBearing=E.readShort(),this.xMaxExtent=E.readShort(),this.caretSlopeRise=E.readShort(),this.caretSlopeRun=E.readShort(),this.caretOffset=E.readShort(),E.pos+=8,this.metricDataFormat=E.readShort(),this.numberOfMetrics=E.readUInt16()},y}(),Mv=function(){function y(){return y.__super__.constructor.apply(this,arguments)}return Yc(y,dc),y.prototype.tag="OS/2",y.prototype.parse=function(E){if(E.pos=this.offset,this.version=E.readUInt16(),this.averageCharWidth=E.readShort(),this.weightClass=E.readUInt16(),this.widthClass=E.readUInt16(),this.type=E.readShort(),this.ySubscriptXSize=E.readShort(),this.ySubscriptYSize=E.readShort(),this.ySubscriptXOffset=E.readShort(),this.ySubscriptYOffset=E.readShort(),this.ySuperscriptXSize=E.readShort(),this.ySuperscriptYSize=E.readShort(),this.ySuperscriptXOffset=E.readShort(),this.ySuperscriptYOffset=E.readShort(),this.yStrikeoutSize=E.readShort(),this.yStrikeoutPosition=E.readShort(),this.familyClass=E.readShort(),this.panose=function(){var x,te;for(te=[],x=0;x<10;++x)te.push(E.readByte());return te}(),this.charRange=function(){var x,te;for(te=[],x=0;x<4;++x)te.push(E.readInt());return te}(),this.vendorID=E.readString(4),this.selection=E.readShort(),this.firstCharIndex=E.readShort(),this.lastCharIndex=E.readShort(),this.version>0&&(this.ascent=E.readShort(),this.descent=E.readShort(),this.lineGap=E.readShort(),this.winAscent=E.readShort(),this.winDescent=E.readShort(),this.codePageRange=function(){var x,te;for(te=[],x=0;x<2;x=++x)te.push(E.readInt());return te}(),this.version>1))return this.xHeight=E.readShort(),this.capHeight=E.readShort(),this.defaultChar=E.readShort(),this.breakChar=E.readShort(),this.maxContext=E.readShort()},y}(),_v=function(){function y(){return y.__super__.constructor.apply(this,arguments)}return Yc(y,dc),y.prototype.tag="post",y.prototype.parse=function(E){var x,te,re;switch(E.pos=this.offset,this.format=E.readInt(),this.italicAngle=E.readInt(),this.underlinePosition=E.readShort(),this.underlineThickness=E.readShort(),this.isFixedPitch=E.readInt(),this.minMemType42=E.readInt(),this.maxMemType42=E.readInt(),this.minMemType1=E.readInt(),this.maxMemType1=E.readInt(),this.format){case 65536:case 196608:break;case 131072:var ae;for(te=E.readUInt16(),this.glyphNameIndex=[],ae=0;0<=te?ae<te:ae>te;ae=0<=te?++ae:--ae)this.glyphNameIndex.push(E.readUInt16());for(this.names=[],re=[];E.pos<this.offset+this.length;)x=E.readByte(),re.push(this.names.push(E.readString(x)));return re;case 151552:return te=E.readUInt16(),this.offsets=E.read(te);case 262144:return this.map=function(){var we,ve,Be;for(Be=[],ae=we=0,ve=this.file.maxp.numGlyphs;0<=ve?we<ve:we>ve;ae=0<=ve?++we:--we)Be.push(E.readUInt32());return Be}.call(this)}},y}(),kv=function(y,E){this.raw=y,this.length=y.length,this.platformID=E.platformID,this.encodingID=E.encodingID,this.languageID=E.languageID},Hv=function(){function y(){return y.__super__.constructor.apply(this,arguments)}return Yc(y,dc),y.prototype.tag="name",y.prototype.parse=function(E){var x,te,re,ae,we,ve,Be,Ee,Ne,et,ht;for(E.pos=this.offset,E.readShort(),x=E.readShort(),ve=E.readShort(),te=[],ae=0;0<=x?ae<x:ae>x;ae=0<=x?++ae:--ae)te.push({platformID:E.readShort(),encodingID:E.readShort(),languageID:E.readShort(),nameID:E.readShort(),length:E.readShort(),offset:this.offset+ve+E.readShort()});for(Be={},ae=Ne=0,et=te.length;Ne<et;ae=++Ne)re=te[ae],E.pos=re.offset,Ee=E.readString(re.length),we=new kv(Ee,re),Be[ht=re.nameID]==null&&(Be[ht]=[]),Be[re.nameID].push(we);this.strings=Be,this.copyright=Be[0],this.fontFamily=Be[1],this.fontSubfamily=Be[2],this.uniqueSubfamily=Be[3],this.fontName=Be[4],this.version=Be[5];try{this.postscriptName=Be[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(De){this.postscriptName=Be[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=Be[7],this.manufacturer=Be[8],this.designer=Be[9],this.description=Be[10],this.vendorUrl=Be[11],this.designerUrl=Be[12],this.license=Be[13],this.licenseUrl=Be[14],this.preferredFamily=Be[15],this.preferredSubfamily=Be[17],this.compatibleFull=Be[18],this.sampleText=Be[19]},y}(),Rv=function(){function y(){return y.__super__.constructor.apply(this,arguments)}return Yc(y,dc),y.prototype.tag="maxp",y.prototype.parse=function(E){return E.pos=this.offset,this.version=E.readInt(),this.numGlyphs=E.readUInt16(),this.maxPoints=E.readUInt16(),this.maxContours=E.readUInt16(),this.maxCompositePoints=E.readUInt16(),this.maxComponentContours=E.readUInt16(),this.maxZones=E.readUInt16(),this.maxTwilightPoints=E.readUInt16(),this.maxStorage=E.readUInt16(),this.maxFunctionDefs=E.readUInt16(),this.maxInstructionDefs=E.readUInt16(),this.maxStackElements=E.readUInt16(),this.maxSizeOfInstructions=E.readUInt16(),this.maxComponentElements=E.readUInt16(),this.maxComponentDepth=E.readUInt16()},y}(),jv=function(){function y(){return y.__super__.constructor.apply(this,arguments)}return Yc(y,dc),y.prototype.tag="hmtx",y.prototype.parse=function(E){var x,te,re,ae,we,ve,Be;for(E.pos=this.offset,this.metrics=[],x=0,ve=this.file.hhea.numberOfMetrics;0<=ve?x<ve:x>ve;x=0<=ve?++x:--x)this.metrics.push({advance:E.readUInt16(),lsb:E.readInt16()});for(re=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var Ee,Ne;for(Ne=[],x=Ee=0;0<=re?Ee<re:Ee>re;x=0<=re?++Ee:--Ee)Ne.push(E.readInt16());return Ne}(),this.widths=function(){var Ee,Ne,et,ht;for(ht=[],Ee=0,Ne=(et=this.metrics).length;Ee<Ne;Ee++)ae=et[Ee],ht.push(ae.advance);return ht}.call(this),te=this.widths[this.widths.length-1],Be=[],x=we=0;0<=re?we<re:we>re;x=0<=re?++we:--we)Be.push(this.widths.push(te));return Be},y.prototype.forGlyph=function(E){return E in this.metrics?this.metrics[E]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[E-this.metrics.length]}},y}(),j0=[].slice,zv=function(){function y(){return y.__super__.constructor.apply(this,arguments)}return Yc(y,dc),y.prototype.tag="glyf",y.prototype.parse=function(){return this.cache={}},y.prototype.glyphFor=function(E){var x,te,re,ae,we,ve,Be,Ee,Ne,et;return E in this.cache?this.cache[E]:(ae=this.file.loca,x=this.file.contents,te=ae.indexOf(E),(re=ae.lengthOf(E))===0?this.cache[E]=null:(x.pos=this.offset+te,we=(ve=new Dd(x.read(re))).readShort(),Ee=ve.readShort(),et=ve.readShort(),Be=ve.readShort(),Ne=ve.readShort(),this.cache[E]=we===-1?new Wv(ve,Ee,et,Be,Ne):new Kv(ve,we,Ee,et,Be,Ne),this.cache[E]))},y.prototype.encode=function(E,x,te){var re,ae,we,ve,Be;for(we=[],ae=[],ve=0,Be=x.length;ve<Be;ve++)re=E[x[ve]],ae.push(we.length),re&&(we=we.concat(re.encode(te)));return ae.push(we.length),{table:we,offsets:ae}},y}(),Kv=function(){function y(E,x,te,re,ae,we){this.raw=E,this.numberOfContours=x,this.xMin=te,this.yMin=re,this.xMax=ae,this.yMax=we,this.compound=!1}return y.prototype.encode=function(){return this.raw.data},y}(),Wv=function(){function y(E,x,te,re,ae){var we,ve;for(this.raw=E,this.xMin=x,this.yMin=te,this.xMax=re,this.yMax=ae,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],we=this.raw;ve=we.readShort(),this.glyphOffsets.push(we.pos),this.glyphIDs.push(we.readUInt16()),32&ve;)we.pos+=1&ve?4:2,128&ve?we.pos+=8:64&ve?we.pos+=4:8&ve&&(we.pos+=2)}return y.prototype.encode=function(){var E,x,te;for(x=new Dd(j0.call(this.raw.data)),E=0,te=this.glyphIDs.length;E<te;++E)x.pos=this.glyphOffsets[E];return x.data},y}(),Gv=function(){function y(){return y.__super__.constructor.apply(this,arguments)}return Yc(y,dc),y.prototype.tag="loca",y.prototype.parse=function(E){var x,te;return E.pos=this.offset,x=this.file.head.indexToLocFormat,this.offsets=x===0?function(){var re,ae;for(ae=[],te=0,re=this.length;te<re;te+=2)ae.push(2*E.readUInt16());return ae}.call(this):function(){var re,ae;for(ae=[],te=0,re=this.length;te<re;te+=4)ae.push(E.readUInt32());return ae}.call(this)},y.prototype.indexOf=function(E){return this.offsets[E]},y.prototype.lengthOf=function(E){return this.offsets[E+1]-this.offsets[E]},y.prototype.encode=function(E,x){for(var te=new Uint32Array(this.offsets.length),re=0,ae=0,we=0;we<te.length;++we)if(te[we]=re,ae<x.length&&x[ae]==we){++ae,te[we]=re;var ve=this.offsets[we],Be=this.offsets[we+1]-ve;Be>0&&(re+=Be)}for(var Ee=new Array(4*te.length),Ne=0;Ne<te.length;++Ne)Ee[4*Ne+3]=255&te[Ne],Ee[4*Ne+2]=(65280&te[Ne])>>8,Ee[4*Ne+1]=(16711680&te[Ne])>>16,Ee[4*Ne]=(4278190080&te[Ne])>>24;return Ee},y}(),Vv=function(){function y(E){this.font=E,this.subset={},this.unicodes={},this.next=33}return y.prototype.generateCmap=function(){var E,x,te,re,ae;for(x in re=this.font.cmap.tables[0].codeMap,E={},ae=this.subset)te=ae[x],E[x]=re[te];return E},y.prototype.glyphsFor=function(E){var x,te,re,ae,we,ve,Be;for(re={},we=0,ve=E.length;we<ve;we++)re[ae=E[we]]=this.font.glyf.glyphFor(ae);for(ae in x=[],re)(te=re[ae])!=null&&te.compound&&x.push.apply(x,te.glyphIDs);if(x.length>0)for(ae in Be=this.glyphsFor(x))te=Be[ae],re[ae]=te;return re},y.prototype.encode=function(E,x){var te,re,ae,we,ve,Be,Ee,Ne,et,ht,De,tn,$t,on,Ot;for(re in te=R0.encode(this.generateCmap(),"unicode"),we=this.glyphsFor(E),De={0:0},Ot=te.charMap)De[(Be=Ot[re]).old]=Be.new;for(tn in ht=te.maxGlyphID,we)tn in De||(De[tn]=ht++);return Ne=function(jn){var Dn,bn;for(Dn in bn={},jn)bn[jn[Dn]]=Dn;return bn}(De),et=Object.keys(Ne).sort(function(jn,Dn){return jn-Dn}),$t=function(){var jn,Dn,bn;for(bn=[],jn=0,Dn=et.length;jn<Dn;jn++)ve=et[jn],bn.push(Ne[ve]);return bn}(),ae=this.font.glyf.encode(we,$t,De),Ee=this.font.loca.encode(ae.offsets,$t),on={cmap:this.font.cmap.raw(),glyf:ae.table,loca:Ee,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(x)},this.font.os2.exists&&(on["OS/2"]=this.font.os2.raw()),this.font.directory.encode(on)},y}();ao.API.PDFObject=function(){var y;function E(){}return y=function(x,te){return(Array(te+1).join("0")+x).slice(-te)},E.convert=function(x){var te,re,ae,we;if(Array.isArray(x))return"["+function(){var ve,Be,Ee;for(Ee=[],ve=0,Be=x.length;ve<Be;ve++)te=x[ve],Ee.push(E.convert(te));return Ee}().join(" ")+"]";if(typeof x=="string")return"/"+x;if(x!=null&&x.isString)return"("+x+")";if(x instanceof Date)return"(D:"+y(x.getUTCFullYear(),4)+y(x.getUTCMonth(),2)+y(x.getUTCDate(),2)+y(x.getUTCHours(),2)+y(x.getUTCMinutes(),2)+y(x.getUTCSeconds(),2)+"Z)";if({}.toString.call(x)==="[object Object]"){for(re in ae=["<<"],x)we=x[re],ae.push("/"+re+" "+E.convert(we));return ae.push(">>"),ae.join(`
|
|
|
`)}return""+x},E}()},2859:function(gr,zn,pe){"use strict";pe.d(zn,{hP:function(){return Rt}});var oe=function(be,de){return(oe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(le,ye){le.__proto__=ye}||function(le,ye){for(var Ie in ye)Object.prototype.hasOwnProperty.call(ye,Ie)&&(le[Ie]=ye[Ie])})(be,de)};function qt(be,de){function le(){this.constructor=be}oe(be,de),be.prototype=de===null?Object.create(de):(le.prototype=de.prototype,new le)}function Xe(be,de,le,ye){return new(le||(le=Promise))(function(Ie,he){function We(ut){try{dn(ye.next(ut))}catch(zt){he(zt)}}function tt(ut){try{dn(ye.throw(ut))}catch(zt){he(zt)}}function dn(ut){var zt;ut.done?Ie(ut.value):(zt=ut.value,zt instanceof le?zt:new le(function(en){en(zt)})).then(We,tt)}dn((ye=ye.apply(be,de||[])).next())})}function Ht(be,de){var le,ye,Ie,he,We={label:0,sent:function(){if(1&Ie[0])throw Ie[1];return Ie[1]},trys:[],ops:[]};return he={next:tt(0),throw:tt(1),return:tt(2)},typeof Symbol=="function"&&(he[Symbol.iterator]=function(){return this}),he;function tt(dn){return function(ut){return function(zt){if(le)throw new TypeError("Generator is already executing.");for(;We;)try{if(le=1,ye&&(Ie=2&zt[0]?ye.return:zt[0]?ye.throw||((Ie=ye.return)&&Ie.call(ye),0):ye.next)&&!(Ie=Ie.call(ye,zt[1])).done)return Ie;switch(ye=0,Ie&&(zt=[2&zt[0],Ie.value]),zt[0]){case 0:case 1:Ie=zt;break;case 4:return We.label++,{value:zt[1],done:!1};case 5:We.label++,ye=zt[1],zt=[0];continue;case 7:zt=We.ops.pop(),We.trys.pop();continue;default:if(Ie=We.trys,!((Ie=Ie.length>0&&Ie[Ie.length-1])||zt[0]!==6&&zt[0]!==2)){We=0;continue}if(zt[0]===3&&(!Ie||zt[1]>Ie[0]&&zt[1]<Ie[3])){We.label=zt[1];break}if(zt[0]===6&&We.label<Ie[1]){We.label=Ie[1],Ie=zt;break}if(Ie&&We.label<Ie[2]){We.label=Ie[2],We.ops.push(zt);break}Ie[2]&&We.ops.pop(),We.trys.pop();continue}zt=de.call(be,We)}catch(en){zt=[6,en],ye=0}finally{le=Ie=0}if(5&zt[0])throw zt[1];return{value:zt[0]?zt[1]:void 0,done:!0}}([dn,ut])}}}function rt(){for(var be=0,de=0,le=arguments.length;de<le;de++)be+=arguments[de].length;var ye=Array(be),Ie=0;for(de=0;de<le;de++)for(var he=arguments[de],We=0,tt=he.length;We<tt;We++,Ie++)ye[Ie]=he[We];return ye}var at=function(){function be(){}return be.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},be.setAttributes=function(de,le){for(var ye=0,Ie=le;ye<Ie.length;ye++){var he=Ie[ye],We=he[0],tt=he[1];de.setAttribute(We,tt)}},be.createRect=function(de,le,ye){var Ie=document.createElementNS("http://www.w3.org/2000/svg","rect");return Ie.setAttribute("width",de.toString()),Ie.setAttribute("height",le.toString()),ye&&be.setAttributes(Ie,ye),Ie},be.createLine=function(de,le,ye,Ie,he){var We=document.createElementNS("http://www.w3.org/2000/svg","line");return We.setAttribute("x1",de.toString()),We.setAttribute("y1",le.toString()),We.setAttribute("x2",ye.toString()),We.setAttribute("y2",Ie.toString()),he&&be.setAttributes(We,he),We},be.createPolygon=function(de,le){var ye=document.createElementNS("http://www.w3.org/2000/svg","polygon");return ye.setAttribute("points",de),le&&be.setAttributes(ye,le),ye},be.createCircle=function(de,le){var ye=document.createElementNS("http://www.w3.org/2000/svg","circle");return ye.setAttribute("cx",(de/2).toString()),ye.setAttribute("cy",(de/2).toString()),ye.setAttribute("r",de.toString()),le&&be.setAttributes(ye,le),ye},be.createEllipse=function(de,le,ye){var Ie=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return Ie.setAttribute("cx",(de/2).toString()),Ie.setAttribute("cy",(le/2).toString()),Ie.setAttribute("rx",(de/2).toString()),Ie.setAttribute("ry",(le/2).toString()),ye&&be.setAttributes(Ie,ye),Ie},be.createGroup=function(de){var le=document.createElementNS("http://www.w3.org/2000/svg","g");return de&&be.setAttributes(le,de),le},be.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},be.createMarker=function(de,le,ye,Ie,he,We,tt){var dn=document.createElementNS("http://www.w3.org/2000/svg","marker");return be.setAttributes(dn,[["id",de],["orient",le],["markerWidth",ye.toString()],["markerHeight",Ie.toString()],["refX",he.toString()],["refY",We.toString()]]),dn.appendChild(tt),dn},be.createText=function(de){var le=document.createElementNS("http://www.w3.org/2000/svg","text");return le.setAttribute("x","0"),le.setAttribute("y","0"),de&&be.setAttributes(le,de),le},be.createTSpan=function(de,le){var ye=document.createElementNS("http://www.w3.org/2000/svg","tspan");return ye.textContent=de,le&&be.setAttributes(ye,le),ye},be.createImage=function(de){var le=document.createElementNS("http://www.w3.org/2000/svg","image");return de&&be.setAttributes(le,de),le},be.createPoint=function(de,le){var ye=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return ye.x=de,ye.y=le,ye},be.createPath=function(de,le){var ye=document.createElementNS("http://www.w3.org/2000/svg","path");return ye.setAttribute("d",de),le&&be.setAttributes(ye,le),ye},be}(),Dt=function(){function be(){}return be.addKey=function(de){be.key=de},Object.defineProperty(be,"isLicensed",{get:function(){return!!be.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(be.key)},enumerable:!1,configurable:!0}),be}(),Me=function(){function be(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return be.prototype.rasterize=function(de,le,ye){var Ie=this;return new Promise(function(he){var We=ye!==void 0?ye:document.createElement("canvas");de===null&&(Ie.markersOnly=!0,Ie.naturalSize=!1);var tt=document.createElementNS("http://www.w3.org/2000/svg","svg");tt.setAttribute("xmlns","http://www.w3.org/2000/svg"),tt.setAttribute("width",le.width.baseVal.valueAsString),tt.setAttribute("height",le.height.baseVal.valueAsString),tt.setAttribute("viewBox","0 0 "+le.viewBox.baseVal.width.toString()+" "+le.viewBox.baseVal.height.toString()),tt.innerHTML=le.innerHTML,Ie.naturalSize===!0?(tt.width.baseVal.value=de.naturalWidth,tt.height.baseVal.value=de.naturalHeight):Ie.width!==void 0&&Ie.height!==void 0&&(tt.width.baseVal.value=Ie.width,tt.height.baseVal.value=Ie.height),We.width=tt.width.baseVal.value,We.height=tt.height.baseVal.value;var dn=tt.outerHTML,ut=We.getContext("2d");Ie.markersOnly!==!0&&ut.drawImage(de,0,0,We.width,We.height);var zt=window.URL,en=new Image(We.width,We.height);en.setAttribute("crossOrigin","anonymous");var Sn=new Blob([dn],{type:"image/svg+xml"}),yn=zt.createObjectURL(Sn);en.onload=function(){ut.drawImage(en,0,0),zt.revokeObjectURL(yn);var ar=We.toDataURL(Ie.imageType,Ie.imageQuality);he(ar)},en.src=yn})},be}(),Pe=function(){},ce=function(){function be(de){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+de+"_"}return Object.defineProperty(be.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(be.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(be.prototype,"defaultSettings",{get:function(){return{canvasBackgroundColor:"#ffffff",toolbarBackgroundColor:"#111111",toolbarBackgroundHoverColor:"#333333",toolbarColor:"#eeeeee",toolbarHeight:40,toolboxColor:"#eeeeee",toolboxAccentColor:"#3080c3",undoButtonVisible:!0,redoButtonVisible:!1,zoomButtonVisible:!1,zoomOutButtonVisible:!1,clearButtonVisible:!1,resultButtonBlockVisible:!0,logoPosition:"left"}},enumerable:!1,configurable:!0}),Object.defineProperty(be.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(be.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),be.prototype.addClass=function(de){return this.styleSheet===void 0&&this.addStyleSheet(),de.name=""+this.classNamePrefix+de.localName,this.classes.push(de),this.styleSheet.sheet.insertRule("."+de.name+" {"+de.style+"}",this.styleSheet.sheet.cssRules.length),de},be.prototype.addRule=function(de){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(de),this.styleSheet.sheet.insertRule(de.selector+" {"+de.style+"}",this.styleSheet.sheet.cssRules.length)},be.prototype.addStyleSheet=function(){var de;this.styleSheet=document.createElement("style"),((de=this.styleSheetRoot)!==null&&de!==void 0?de:document.head).appendChild(this.styleSheet),this.addRule(new ke("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new ke("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
`)),this.addRule(new ke("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
|
from {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
`)),this.addClass(new Le("fade_in",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
|
`)),this.addClass(new Le("fade_out",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
|
`))},be.prototype.removeStyleSheet=function(){var de;this.styleSheet&&(((de=this.styleSheetRoot)!==null&&de!==void 0?de:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},be}(),ke=function(be,de){this.selector=be,this.style=de},Le=function(be,de){this.localName=be,this.style=de},Ve=function(){function be(de,le,ye,Ie,he){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=de,this.displayMode=le,this.markerItems=ye,this.uiStyleSettings=Ie,this.styles=he,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return be.prototype.show=function(de){var le=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=de,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var ye=document.createElement("div");ye.className=this.toolbarBlockStyleClass.name,ye.style.whiteSpace="nowrap",this.uiContainer.appendChild(ye),this.addActionButton(ye,'<svg viewBox="0 0 24 24"><path d="M10.07 14.27a.997.997 0 011.33.48l2.3 4.99 1.8-.85-2.31-4.98c-.24-.5-.02-1.1.48-1.33l.28-.08 2.3-.45L8 5.12V15.9l1.82-1.47.25-.16m3.57 7.7a.99.99 0 01-1.33-.47l-2.18-4.74-2.51 2.02c-.17.14-.38.22-.62.22a1 1 0 01-1-1V3a1 1 0 011-1c.24 0 .47.09.64.23l.01-.01 11.49 9.64a1.001 1.001 0 01-.44 1.75l-3.16.62 2.2 4.73c.26.5.02 1.09-.48 1.32l-3.62 1.69z"/></svg>',"select"),this.addActionButton(ye,'<svg viewBox="0 0 24 24"><path d="M9 3v1H4v2h1v13a2 2 0 002 2h10a2 2 0 002-2V6h1V4h-5V3H9M7 6h10v13H7V6m2 2v9h2V8H9m4 0v9h2V8h-2z"/></svg>',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(ye,'<svg viewBox="0 0 24 24"><path d="M19.36 2.72l1.42 1.42-5.72 5.71c1.07 1.54 1.22 3.39.32 4.59L9.06 8.12c1.2-.9 3.05-.75 4.59.32l5.71-5.72M5.93 17.57c-2.01-2.01-3.24-4.41-3.58-6.65l4.88-2.09 7.44 7.44-2.09 4.88c-2.24-.34-4.64-1.57-6.65-3.58z"/></svg>',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(ye,'<svg viewBox="0 0 24 24"><path d="M12.5 8c-2.65 0-5.05 1-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/></svg>',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(ye,'<svg viewBox="0 0 24 24"><path d="M18.4 10.6C16.55 9 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16a8.002 8.002 0 017.6-5.5c1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/></svg>',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(ye,'<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(ye,'<svg viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 009.5 3 6.5 6.5 0 003 9.5 6.5 6.5 0 009.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 5 1.5-1.5-5-5m-6 0C7 14 5 12 5 9.5S7 5 9.5 5 14 7 14 9.5 12 14 9.5 14M7 9h5v1H7V9z"/></svg>',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(ye,'<svg viewBox="0 0 24 24"><path d="M18.13 12l1.26-1.26c.44-.44 1-.68 1.61-.74V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 002 2h6v-1.87l.13-.13H5V5h7v7h6.13M14 4.5l5.5 5.5H14V4.5m5.13 9.33l2.04 2.04L15.04 22H13v-2.04l6.13-6.13m3.72.36l-.98.98-2.04-2.04.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72z"/></svg>',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(he){var We=document.createElement("div");We.className=""+le.toolbarButtonStyleClass.name,We.setAttribute("data-type-name",he.typeName),We.innerHTML=he.icon,We.addEventListener("click",function(){le.markerToolbarButtonClicked(We,he)}),le.buttons.push(We),le.markerButtons.push(We)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='<svg viewBox="0 0 24 24"><path d="M12 16a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2z"/></svg>',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var Ie=document.createElement("div");Ie.className=this.toolbarBlockStyleClass.name,Ie.style.whiteSpace="nowrap",Ie.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(Ie),this.addActionButton(Ie,'<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"render"),this.addActionButton(Ie,'<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},be.prototype.addButtonClickListener=function(de){this.buttonClickListeners.push(de)},be.prototype.removeButtonClickListener=function(de){this.buttonClickListeners.indexOf(de)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(de),1)},be.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},be.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var de=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var le=0;le<this.markerButtons.length;le++)le<de||le===de&&this.markerButtons.length-1===de?this.markerButtonBlock.appendChild(this.markerButtons[le]):(le===de&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[le]))}},be.prototype.overflowButtonClicked=function(){this.markerButtonOverflowBlock.style.display!=="none"?(this.markerButtonOverflowBlock.className=this.markerButtonOverflowBlock.className.replace(this.styles.fadeInAnimationClassName,""),this.markerButtonOverflowBlock.style.display="none"):(this.markerButtonOverflowBlock.className+=" "+this.styles.fadeInAnimationClassName,this.markerButtonOverflowBlock.style.top=this.uiContainer.offsetTop+this.overflowButton.offsetHeight+"px",this.markerButtonOverflowBlock.style.right=this.uiContainer.offsetWidth-this.overflowButton.offsetLeft-this.overflowButton.offsetWidth+2*this.uiContainer.offsetLeft+"px",this.markerButtonOverflowBlock.style.display="inline-block")},be.prototype.resetButtonStyles=function(){var de=this;this.buttons.forEach(function(le){le.className=le.className.replace(de.uiStyleSettings.toolbarButtonStyleColorsClassName?de.uiStyleSettings.toolbarButtonStyleColorsClassName:de.toolbarButtonStyleColorsClass.name,"").trim(),le.className=le.className.replace(de.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?de.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:de.toolbarActiveButtonStyleColorsClass.name,"").trim(),le.className+=" "+(de.uiStyleSettings.toolbarButtonStyleColorsClassName?de.uiStyleSettings.toolbarButtonStyleColorsClassName:de.toolbarButtonStyleColorsClass.name)})},be.prototype.addActionButton=function(de,le,ye){var Ie=this,he=document.createElement("div");switch(he.className=""+this.toolbarButtonStyleClass.name,he.innerHTML=le,he.setAttribute("data-action",ye),he.addEventListener("click",function(){Ie.actionToolbarButtonClicked(he,ye)}),ye){case"select":he.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":he.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":he.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":he.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":he.style.fill=this.uiStyleSettings.closeButtonColor}de.appendChild(he),this.buttons.push(he)},be.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new Le("toolbar",`
|
|
|
width: 100%;
|
|
|
flex-shrink: 0;
|
|
|
display: flex;
|
|
|
flex-direction: row;
|
|
|
justify-content: space-between;
|
|
|
height: `+this.uiStyleSettings.toolbarHeight+`px;
|
|
|
box-sizing: content-box;
|
|
|
`+(this.displayMode==="inline"?"border-top-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
|
`+(this.displayMode==="inline"?"border-top-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
|
overflow: hidden;
|
|
|
`)),this.toolbarStyleColorsClass=this.styles.addClass(new Le("toolbar_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new Le("toolbar-block",`
|
|
|
display: inline-block;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new Le("toolbar-overflow-block",`
|
|
|
position: absolute;
|
|
|
top: `+this.uiStyleSettings.toolbarHeight+`px;
|
|
|
max-width: `+2*this.uiStyleSettings.toolbarHeight+`px;
|
|
|
z-index: 10;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleColorsClass=this.styles.addClass(new Le("toolbar-overflow-block_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`));var de=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new Le("toolbar_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*de)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*de)+`px;
|
|
|
padding: `+de+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new Le("toolbar_button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new Le("toolbar_active_button",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new ke("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`)),this.styles.addRule(new ke("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`))},be.prototype.markerToolbarButtonClicked=function(de,le){this.setActiveButton(de),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(ye){return ye("marker",le)}),this.markerButtonOverflowBlock.style.display="none"},be.prototype.actionToolbarButtonClicked=function(de,le){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(ye){return ye("action",le)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},be.prototype.setActiveButton=function(de){this.resetButtonStyles(),de.className=de.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),de.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},be.prototype.setActiveMarkerButton=function(de){var le=this.markerButtons.find(function(ye){return ye.getAttribute("data-type-name")===de});le&&this.setActiveButton(le)},be.prototype.setCurrentMarker=function(de){var le=this;this.currentMarker=de,this.buttons.filter(function(ye){return/delete|notes/.test(ye.getAttribute("data-action"))}).forEach(function(ye){le.currentMarker===void 0?(ye.style.fillOpacity="0.4",ye.style.pointerEvents="none"):(ye.style.fillOpacity="1",ye.style.pointerEvents="all")})},be}(),Ke=function(){function be(de,le,ye,Ie){this.panels=[],this.panelButtons=[],this.markerjsContainer=de,this.displayMode=le,this.uiStyleSettings=ye,this.styles=Ie,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return be.prototype.addStyles=function(){var de;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 le=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: `+((de=this.uiStyleSettings.toolboxBackgroundColor)!==null&&de!==void 0?de:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new Le("toolbox_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*le)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*le)+`px;
|
|
|
padding: `+le+`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 ke("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new ke("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`))},be.prototype.show=function(de){var le;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=de,this.uiContainer.className=this.toolboxStyleClass.name+" "+((le=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&le!==void 0?le:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},be.prototype.setPanelButtons=function(de){var le,ye,Ie=this;this.panels=de,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((le=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&le!==void 0?le:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((ye=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&ye!==void 0?ye:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(he){var We;he.uiStyleSettings=Ie.uiStyleSettings;var tt=document.createElement("div");tt.className=Ie.toolboxButtonStyleClass.name+" "+((We=Ie.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&We!==void 0?We:Ie.toolboxButtonStyleColorsClass.name),tt.innerHTML=he.icon,tt.title=he.title,tt.addEventListener("click",function(){Ie.panelButtonClick(he)}),Ie.panelButtons.push(tt),Ie.buttonRow.appendChild(tt)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},be.prototype.panelButtonClick=function(de){var le=this,ye=-1;if(de!==this.activePanel){ye=this.panels.indexOf(de),this.panelRow.innerHTML="";var Ie=de.getUi();Ie.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(Ie),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=de}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){le.displayMode==="inline"?le.panelRow.style.display="none":le.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(he,We){var tt,dn;he.className=le.toolboxButtonStyleClass.name+" "+(We===ye?""+((tt=le.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&tt!==void 0?tt:le.toolboxActiveButtonStyleColorsClass.name):""+((dn=le.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&dn!==void 0?dn:le.toolboxButtonStyleColorsClass.name))})},be}(),He=function(be,de){this.title=be,this.icon=de},Ge=function(be){function de(le,ye,Ie,he){var We=be.call(this,le,he||'<svg viewBox="0 0 24 24"><path d="M17.5 12a1.5 1.5 0 01-1.5-1.5A1.5 1.5 0 0117.5 9a1.5 1.5 0 011.5 1.5 1.5 1.5 0 01-1.5 1.5m-3-4A1.5 1.5 0 0113 6.5 1.5 1.5 0 0114.5 5 1.5 1.5 0 0116 6.5 1.5 1.5 0 0114.5 8m-5 0A1.5 1.5 0 018 6.5 1.5 1.5 0 019.5 5 1.5 1.5 0 0111 6.5 1.5 1.5 0 019.5 8m-3 4A1.5 1.5 0 015 10.5 1.5 1.5 0 016.5 9 1.5 1.5 0 018 10.5 1.5 1.5 0 016.5 12M12 3a9 9 0 00-9 9 9 9 0 009 9 1.5 1.5 0 001.5-1.5c0-.39-.15-.74-.39-1-.23-.27-.38-.62-.38-1a1.5 1.5 0 011.5-1.5H16a5 5 0 005-5c0-4.42-4.03-8-9-8z"/></svg>')||this;return We.colors=[],We.addTransparent=!1,We.colorBoxes=[],We.colors=ye,We.currentColor=Ie,We.setCurrentColor=We.setCurrentColor.bind(We),We.getColorBox=We.getColorBox.bind(We),We}return qt(de,be),de.prototype.getUi=function(){var le=this,ye=document.createElement("div");return ye.style.overflow="hidden",ye.style.whiteSpace="nowrap",this.colors.forEach(function(Ie){var he=le.getColorBox(Ie);ye.appendChild(he),le.colorBoxes.push(he)}),ye},de.prototype.getColorBox=function(le){var ye=this,Ie=this.uiStyleSettings.toolbarHeight/4,he=this.uiStyleSettings.toolbarHeight-Ie,We=document.createElement("div");We.style.display="inline-block",We.style.boxSizing="content-box",We.style.width=he-2+"px",We.style.height=he-2+"px",We.style.padding="1px",We.style.marginRight="2px",We.style.marginBottom="2px",We.style.borderWidth="2px",We.style.borderStyle="solid",We.style.borderRadius=(he+2)/2+"px",We.style.borderColor=le===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",We.addEventListener("click",function(){ye.setCurrentColor(le,We)});var tt=document.createElement("div");return tt.style.display="inline-block",tt.style.width=he-2+"px",tt.style.height=he-2+"px",tt.style.backgroundColor=le,tt.style.borderRadius=he/2+"px",le==="transparent"&&(tt.style.fill=this.uiStyleSettings.toolboxAccentColor,tt.innerHTML=`<svg viewBox="0 0 24 24">
|
|
|
<path d="M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z" />
|
|
|
</svg>`),We.appendChild(tt),We},de.prototype.setCurrentColor=function(le,ye){var Ie=this;this.currentColor=le,this.colorBoxes.forEach(function(he){he.style.borderColor=he===ye?Ie.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(le)},de}(He),ze=function(){function be(de,le,ye){this._state="new",this._isSelected=!1,this._container=de,this._overlayContainer=le,this.globalSettings=ye,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(be.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(be.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(be.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(be.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(be.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),be.prototype.ownsTarget=function(de){return!1},Object.defineProperty(be.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),be.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},be.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},be.prototype.pointerDown=function(de,le){},be.prototype.dblClick=function(de,le){},be.prototype.manipulate=function(de){},be.prototype.pointerUp=function(de){this.stateChanged()},be.prototype.dispose=function(){},be.prototype.addMarkerVisualToContainer=function(de){this.container.childNodes.length>0?this.container.insertBefore(de,this.container.childNodes[0]):this.container.appendChild(de)},be.prototype.getState=function(){return{typeName:be.typeName,state:this.state,notes:this.notes}},be.prototype.restoreState=function(de){this._state=de.state,this.notes=de.notes},be.prototype.scale=function(de,le){},be.prototype.colorChanged=function(de){this.onColorChanged&&this.onColorChanged(de),this.stateChanged()},be.prototype.fillColorChanged=function(de){this.onFillColorChanged&&this.onFillColorChanged(de),this.stateChanged()},be.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var de=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),de.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(de)&&this.onStateChanged(this)}},be.typeName="MarkerBase",be}(),qe=function(){function be(){this.findGripByVisual=this.findGripByVisual.bind(this)}return be.prototype.findGripByVisual=function(de){return this.topLeft.ownsTarget(de)?this.topLeft:this.topCenter.ownsTarget(de)?this.topCenter:this.topRight.ownsTarget(de)?this.topRight:this.centerLeft.ownsTarget(de)?this.centerLeft:this.centerRight.ownsTarget(de)?this.centerRight:this.bottomLeft.ownsTarget(de)?this.bottomLeft:this.bottomCenter.ownsTarget(de)?this.bottomCenter:this.bottomRight.ownsTarget(de)?this.bottomRight:void 0},be}(),pt=function(){function be(){this.GRIP_SIZE=10,this.visual=at.createGroup(),this.visual.appendChild(at.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(at.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return be.prototype.ownsTarget=function(de){return de===this.visual||de===this.visual.childNodes[0]||de===this.visual.childNodes[1]},be}(),Bt=function(){function be(){}return be.toITransformMatrix=function(de){return{a:de.a,b:de.b,c:de.c,d:de.d,e:de.e,f:de.f}},be.toSVGMatrix=function(de,le){return de.a=le.a,de.b=le.b,de.c=le.c,de.d=le.d,de.e=le.e,de.f=le.f,de},be}(),vt=function(be){function de(le,ye,Ie){var he=be.call(this,le,ye,Ie)||this;return he.left=0,he.top=0,he.width=0,he.height=0,he.defaultSize={x:50,y:20},he.offsetX=0,he.offsetY=0,he.rotationAngle=0,he.CB_DISTANCE=10,he._suppressMarkerCreateEvent=!1,he.container.transform.baseVal.appendItem(at.createTransform()),he.setupControlBox(),he}return qt(de,be),Object.defineProperty(de.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(de.prototype,"visual",{get:function(){return this._visual},set:function(le){this._visual=le;var ye=at.createTransform();this._visual.transform.baseVal.appendItem(ye)},enumerable:!1,configurable:!0}),de.prototype.ownsTarget=function(le){return!!be.prototype.ownsTarget.call(this,le)||!!(this.controlGrips.findGripByVisual(le)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(le))},de.prototype.pointerDown=function(le,ye){be.prototype.pointerDown.call(this,le,ye),this.state==="new"&&(this.left=le.x,this.top=le.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var Ie=this.unrotatePoint(le);if(this.manipulationStartX=Ie.x,this.manipulationStartY=Ie.y,this.offsetX=Ie.x-this.left,this.offsetY=Ie.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(ye),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ye)){this.activeGrip=this.rotatorGrip;var he=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=he.x-this.width/2,this.top=he.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var We=this.container.transform.baseVal.getItem(0);We.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(We,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},de.prototype.pointerUp=function(le){var ye=this.state;be.prototype.pointerUp.call(this,le),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(le),this._state="select",ye==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},de.prototype.moveVisual=function(le){this.visual.style.transform="translate("+le.x+"px, "+le.y+"px)"},de.prototype.manipulate=function(le){var ye=this.unrotatePoint(le);this.state==="creating"?this.resize(le):this.state==="move"?(this.left=this.manipulationStartLeft+(ye.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(ye.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(ye):this.state==="rotate"&&this.rotate(le)},de.prototype.resize=function(le){var ye=this.manipulationStartLeft,Ie=this.manipulationStartWidth,he=this.manipulationStartTop,We=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:ye=this.manipulationStartLeft+le.x-this.manipulationStartX,Ie=this.manipulationStartWidth+this.manipulationStartLeft-ye;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:Ie=this.manipulationStartWidth+le.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:he=this.manipulationStartTop+le.y-this.manipulationStartY,We=this.manipulationStartHeight+this.manipulationStartTop-he;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:We=this.manipulationStartHeight+le.y-this.manipulationStartY}Ie>=0?(this.left=ye,this.width=Ie):(this.left=ye+Ie,this.width=-Ie),We>=0?(this.top=he,this.height=We):(this.top=he+We,this.height=-We),this.setSize()},de.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},de.prototype.rotate=function(le){if(Math.abs(le.x-this.centerX)>.1){var ye=Math.sign(le.x-this.centerX);this.rotationAngle=180*Math.atan((le.y-this.centerY)/(le.x-this.centerX))/Math.PI+90*ye,this.applyRotation()}},de.prototype.applyRotation=function(){var le=this.container.transform.baseVal.getItem(0);le.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(le,0)},de.prototype.rotatePoint=function(le){if(this.rotationAngle===0)return le;var ye=this.container.getCTM(),Ie=at.createPoint(le.x,le.y);return{x:(Ie=Ie.matrixTransform(ye)).x,y:Ie.y}},de.prototype.unrotatePoint=function(le){if(this.rotationAngle===0)return le;var ye=this.container.getCTM();ye=ye.inverse();var Ie=at.createPoint(le.x,le.y);return{x:(Ie=Ie.matrixTransform(ye)).x,y:Ie.y}},de.prototype.select=function(){be.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},de.prototype.deselect=function(){be.prototype.deselect.call(this),this.controlBox.style.display="none"},de.prototype.setupControlBox=function(){this.controlBox=at.createGroup();var le=at.createTransform();le.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(le),this.container.appendChild(this.controlBox),this.controlRect=at.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=at.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 qe,this.addControlGrips(),this.controlBox.style.display="none"},de.prototype.adjustControlBox=function(){var le=this.controlBox.transform.baseVal.getItem(0);le.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(le,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()},de.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()},de.prototype.createGrip=function(){var le=new pt;return le.visual.transform.baseVal.appendItem(at.createTransform()),this.controlBox.appendChild(le.visual),le},de.prototype.positionGrips=function(){var le=this.controlGrips.topLeft.GRIP_SIZE,ye=-le/2,Ie=ye,he=(this.width+this.CB_DISTANCE)/2-le/2,We=(this.height+this.CB_DISTANCE)/2-le/2,tt=this.height+this.CB_DISTANCE-le/2,dn=this.width+this.CB_DISTANCE-le/2;this.positionGrip(this.controlGrips.topLeft.visual,ye,Ie),this.positionGrip(this.controlGrips.topCenter.visual,he,Ie),this.positionGrip(this.controlGrips.topRight.visual,dn,Ie),this.positionGrip(this.controlGrips.centerLeft.visual,ye,We),this.positionGrip(this.controlGrips.centerRight.visual,dn,We),this.positionGrip(this.controlGrips.bottomLeft.visual,ye,tt),this.positionGrip(this.controlGrips.bottomCenter.visual,he,tt),this.positionGrip(this.controlGrips.bottomRight.visual,dn,tt),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,he,Ie-3*this.CB_DISTANCE)},de.prototype.positionGrip=function(le,ye,Ie){var he=le.transform.baseVal.getItem(0);he.setTranslate(ye,Ie),le.transform.baseVal.replaceItem(he,0)},de.prototype.hideControlBox=function(){this.controlBox.style.display="none"},de.prototype.showControlBox=function(){this.controlBox.style.display=""},de.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:Bt.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Bt.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},be.prototype.getState.call(this))},de.prototype.restoreState=function(le){be.prototype.restoreState.call(this,le);var ye=le;this.left=ye.left,this.top=ye.top,this.width=ye.width,this.height=ye.height,this.rotationAngle=ye.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(Bt.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,ye.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Bt.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,ye.containerTransformMatrix))},de.prototype.scale=function(le,ye){be.prototype.scale.call(this,le,ye);var Ie=this.rotatePoint({x:this.left,y:this.top}),he=this.unrotatePoint({x:Ie.x*le,y:Ie.y*ye});this.left=he.x,this.top=he.y,this.width=this.width*le,this.height=this.height*ye,this.adjustControlBox()},de}(ze),yt=function(be){function de(le,ye,Ie){var he=be.call(this,le,ye,Ie)||this;return he.fillColor="transparent",he.strokeColor="transparent",he.strokeWidth=0,he.strokeDasharray="",he.opacity=1,he.setStrokeColor=he.setStrokeColor.bind(he),he.setFillColor=he.setFillColor.bind(he),he.setStrokeWidth=he.setStrokeWidth.bind(he),he.setStrokeDasharray=he.setStrokeDasharray.bind(he),he.createVisual=he.createVisual.bind(he),he}return qt(de,be),de.prototype.ownsTarget=function(le){return!(!be.prototype.ownsTarget.call(this,le)&&le!==this.visual)},de.prototype.createVisual=function(){this.visual=at.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)},de.prototype.pointerDown=function(le,ye){be.prototype.pointerDown.call(this,le,ye),this.state==="new"&&(this.createVisual(),this.moveVisual(le),this._state="creating")},de.prototype.manipulate=function(le){be.prototype.manipulate.call(this,le)},de.prototype.resize=function(le){be.prototype.resize.call(this,le),this.setSize()},de.prototype.setSize=function(){be.prototype.setSize.call(this),at.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},de.prototype.pointerUp=function(le){be.prototype.pointerUp.call(this,le),this.setSize()},de.prototype.setStrokeColor=function(le){this.strokeColor=le,this.visual&&at.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(le),this.stateChanged()},de.prototype.setFillColor=function(le){this.fillColor=le,this.visual&&at.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},de.prototype.setStrokeWidth=function(le){this.strokeWidth=le,this.visual&&at.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},de.prototype.setStrokeDasharray=function(le){this.strokeDasharray=le,this.visual&&at.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},de.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},be.prototype.getState.call(this))},de.prototype.restoreState=function(le){var ye=le;this.fillColor=ye.fillColor,this.strokeColor=ye.strokeColor,this.strokeWidth=ye.strokeWidth,this.strokeDasharray=ye.strokeDasharray,this.opacity=ye.opacity,this.createVisual(),be.prototype.restoreState.call(this,le),this.setSize()},de.prototype.scale=function(le,ye){be.prototype.scale.call(this,le,ye),this.setSize()},de.title="Rectangle marker",de}(vt),Nt=function(be){function de(le,ye,Ie,he){var We=be.call(this,le,he||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return We.widths=[],We.widthBoxes=[],We.widths=ye,We.currentWidth=Ie,We.setCurrentWidth=We.setCurrentWidth.bind(We),We}return qt(de,be),de.prototype.getUi=function(){var le=this,ye=document.createElement("div");return ye.style.display="flex",ye.style.overflow="hidden",ye.style.flexGrow="2",this.widths.forEach(function(Ie){var he=document.createElement("div");he.style.display="flex",he.style.flexGrow="2",he.style.alignItems="center",he.style.justifyContent="space-between",he.style.padding="5px",he.style.borderWidth="2px",he.style.borderStyle="solid",he.style.borderColor=Ie===le.currentWidth?le.uiStyleSettings.toolboxAccentColor:"transparent",he.addEventListener("click",function(){le.setCurrentWidth(Ie,he)}),ye.appendChild(he);var We=document.createElement("div");We.innerText=Ie.toString(),We.style.marginRight="5px",he.appendChild(We);var tt=document.createElement("div");tt.style.minHeight="20px",tt.style.flexGrow="2",tt.style.display="flex",tt.style.alignItems="center";var dn=document.createElement("hr");dn.style.minWidth="20px",dn.style.border="0px",dn.style.borderTop=Ie+"px solid "+le.uiStyleSettings.toolboxColor,dn.style.flexGrow="2",tt.appendChild(dn),he.appendChild(tt),le.widthBoxes.push(he)}),ye},de.prototype.setCurrentWidth=function(le,ye){var Ie=this;this.currentWidth=le,this.widthBoxes.forEach(function(he){he.style.borderColor=he===ye?Ie.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},de}(He),Et=function(be){function de(le,ye,Ie,he){var We=be.call(this,le,he||'<svg viewBox="0 0 24 24"><path d="M3 16h5v-2H3v2m6.5 0h5v-2h-5v2m6.5 0h5v-2h-5v2M3 20h2v-2H3v2m4 0h2v-2H7v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2M3 12h8v-2H3v2m10 0h8v-2h-8v2M3 4v4h18V4H3z"/></svg>')||this;return We.styles=[],We.styleBoxes=[],We.styles=ye,We.currentStyle=Ie,We.setCurrentStyle=We.setCurrentStyle.bind(We),We}return qt(de,be),de.prototype.getUi=function(){var le=this,ye=document.createElement("div");return ye.style.display="flex",ye.style.overflow="hidden",ye.style.flexGrow="2",this.styles.forEach(function(Ie){var he=document.createElement("div");he.style.display="flex",he.style.alignItems="center",he.style.justifyContent="space-between",he.style.padding="5px",he.style.borderWidth="2px",he.style.borderStyle="solid",he.style.overflow="hidden",he.style.maxWidth=100/le.styles.length-5+"%",he.style.borderColor=Ie===le.currentStyle?le.uiStyleSettings.toolboxAccentColor:"transparent",he.addEventListener("click",function(){le.setCurrentStyle(Ie,he)}),ye.appendChild(he);var We=document.createElement("div");We.style.minHeight="20px",We.style.flexGrow="2",We.style.overflow="hidden";var tt=`<svg width="100" height="20">
|
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+le.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(Ie!==""?'stroke-dasharray="'+Ie+'"':"")+` />
|
|
|
</svg>`;We.innerHTML=tt,he.appendChild(We),le.styleBoxes.push(he)}),ye},de.prototype.setCurrentStyle=function(le,ye){var Ie=this;this.currentStyle=le,this.styleBoxes.forEach(function(he){he.style.borderColor=he===ye?Ie.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},de}(He),pn=function(be){function de(le,ye,Ie){var he=be.call(this,le,ye,Ie)||this;return he.strokeColor=Ie.defaultColor,he.strokeWidth=Ie.defaultStrokeWidth,he.strokeDasharray=Ie.defaultStrokeDasharray,he.strokePanel=new Ge("Line color",Ie.defaultColorSet,Ie.defaultColor),he.strokePanel.onColorChanged=he.setStrokeColor,he.strokeWidthPanel=new Nt("Line width",Ie.defaultStrokeWidths,Ie.defaultStrokeWidth),he.strokeWidthPanel.onWidthChanged=he.setStrokeWidth,he.strokeStylePanel=new Et("Line style",Ie.defaultStrokeDasharrays,Ie.defaultStrokeDasharray),he.strokeStylePanel.onStyleChanged=he.setStrokeDasharray,he}return qt(de,be),Object.defineProperty(de.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),de.prototype.getState=function(){var le=be.prototype.getState.call(this);return le.typeName=de.typeName,le},de.typeName="FrameMarker",de.title="Frame marker",de.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',de}(yt),Pt=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"},St=function(be){function de(le,ye,Ie){var he=be.call(this,le,ye,Ie)||this;return he.x1=0,he.y1=0,he.x2=0,he.y2=0,he.defaultLength=50,he.manipulationStartX=0,he.manipulationStartY=0,he.manipulationStartX1=0,he.manipulationStartY1=0,he.manipulationStartX2=0,he.manipulationStartY2=0,he.setupControlBox(),he}return qt(de,be),de.prototype.ownsTarget=function(le){return!!be.prototype.ownsTarget.call(this,le)||!(!this.grip1.ownsTarget(le)&&!this.grip2.ownsTarget(le))},de.prototype.pointerDown=function(le,ye){be.prototype.pointerDown.call(this,le,ye),this.manipulationStartX=le.x,this.manipulationStartY=le.y,this.state==="new"&&(this.x1=le.x,this.y1=le.y,this.x2=le.x,this.y2=le.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(ye)?this.activeGrip=this.grip1:this.grip2.ownsTarget(ye)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},de.prototype.pointerUp=function(le){var ye=this.state;be.prototype.pointerUp.call(this,le),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(le),this._state="select",ye==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},de.prototype.adjustVisual=function(){},de.prototype.manipulate=function(le){this.state==="creating"?this.resize(le):this.state==="move"?(this.x1=this.manipulationStartX1+le.x-this.manipulationStartX,this.y1=this.manipulationStartY1+le.y-this.manipulationStartY,this.x2=this.manipulationStartX2+le.x-this.manipulationStartX,this.y2=this.manipulationStartY2+le.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(le)},de.prototype.resize=function(le){switch(this.activeGrip){case this.grip1:this.x1=le.x,this.y1=le.y;break;case this.grip2:case void 0:this.x2=le.x,this.y2=le.y}this.adjustVisual(),this.adjustControlBox()},de.prototype.select=function(){be.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},de.prototype.deselect=function(){be.prototype.deselect.call(this),this.controlBox.style.display="none"},de.prototype.setupControlBox=function(){this.controlBox=at.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},de.prototype.adjustControlBox=function(){this.positionGrips()},de.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},de.prototype.createGrip=function(){var le=new pt;return le.visual.transform.baseVal.appendItem(at.createTransform()),this.controlBox.appendChild(le.visual),le},de.prototype.positionGrips=function(){var le=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-le/2,this.y1-le/2),this.positionGrip(this.grip2.visual,this.x2-le/2,this.y2-le/2)},de.prototype.positionGrip=function(le,ye,Ie){var he=le.transform.baseVal.getItem(0);he.setTranslate(ye,Ie),le.transform.baseVal.replaceItem(he,0)},de.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},be.prototype.getState.call(this))},de.prototype.restoreState=function(le){be.prototype.restoreState.call(this,le);var ye=le;this.x1=ye.x1,this.y1=ye.y1,this.x2=ye.x2,this.y2=ye.y2},de.prototype.scale=function(le,ye){be.prototype.scale.call(this,le,ye),this.x1=this.x1*le,this.y1=this.y1*ye,this.x2=this.x2*le,this.y2=this.y2*ye,this.adjustVisual(),this.adjustControlBox()},de}(ze),jt=function(be){function de(le,ye,Ie){var he=be.call(this,le,ye,Ie)||this;return he.strokeColor="transparent",he.strokeWidth=0,he.strokeDasharray="",he.setStrokeColor=he.setStrokeColor.bind(he),he.setStrokeWidth=he.setStrokeWidth.bind(he),he.setStrokeDasharray=he.setStrokeDasharray.bind(he),he.strokeColor=Ie.defaultColor,he.strokeWidth=Ie.defaultStrokeWidth,he.strokeDasharray=Ie.defaultStrokeDasharray,he.strokePanel=new Ge("Line color",Ie.defaultColorSet,Ie.defaultColor),he.strokePanel.onColorChanged=he.setStrokeColor,he.strokeWidthPanel=new Nt("Line width",Ie.defaultStrokeWidths,Ie.defaultStrokeWidth),he.strokeWidthPanel.onWidthChanged=he.setStrokeWidth,he.strokeStylePanel=new Et("Line style",Ie.defaultStrokeDasharrays,Ie.defaultStrokeDasharray),he.strokeStylePanel.onStyleChanged=he.setStrokeDasharray,he}return qt(de,be),de.prototype.ownsTarget=function(le){return!(!be.prototype.ownsTarget.call(this,le)&&le!==this.visual&&le!==this.selectorLine&&le!==this.visibleLine)},de.prototype.createVisual=function(){this.visual=at.createGroup(),this.selectorLine=at.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=at.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)},de.prototype.pointerDown=function(le,ye){be.prototype.pointerDown.call(this,le,ye),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},de.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()),at.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),at.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),at.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},de.prototype.setStrokeColor=function(le){this.strokeColor=le,this.adjustVisual(),this.colorChanged(le)},de.prototype.setStrokeWidth=function(le){this.strokeWidth=le,this.adjustVisual()},de.prototype.setStrokeDasharray=function(le){this.strokeDasharray=le,this.adjustVisual(),this.stateChanged()},Object.defineProperty(de.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),de.prototype.getState=function(){var le=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},be.prototype.getState.call(this));return le.typeName=de.typeName,le},de.prototype.restoreState=function(le){be.prototype.restoreState.call(this,le);var ye=le;this.strokeColor=ye.strokeColor,this.strokeWidth=ye.strokeWidth,this.strokeDasharray=ye.strokeDasharray,this.createVisual(),this.adjustVisual()},de.typeName="LineMarker",de.title="Line marker",de.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',de}(St),Je=function(be){function de(le,ye,Ie,he){var We=be.call(this,le,he||'<svg viewBox="0 0 24 24"><path d="M17 8h3v12h1v1h-4v-1h1v-3h-4l-1.5 3H14v1h-4v-1h1l6-12m1 1l-3.5 7H18V9M5 3h5c1.11 0 2 .89 2 2v11H9v-5H6v5H3V5c0-1.11.89-2 2-2m1 2v4h3V5H6z"/></svg>')||this;return We.fonts=[],We.fontBoxes=[],We.fonts=ye,We.currentFont=Ie,We.setCurrentFont=We.setCurrentFont.bind(We),We}return qt(de,be),de.prototype.getUi=function(){var le=this,ye=document.createElement("div");return ye.style.overflow="hidden",ye.style.flexGrow="2",this.fonts.forEach(function(Ie){var he=document.createElement("div");he.style.display="inline-block",he.style.alignItems="center",he.style.justifyContent="space-between",he.style.padding="5px",he.style.borderWidth="2px",he.style.borderStyle="solid",he.style.overflow="hidden",he.style.maxWidth=100/le.fonts.length-5+"%",he.style.borderColor=Ie===le.currentFont?le.uiStyleSettings.toolboxAccentColor:"transparent",he.addEventListener("click",function(){le.setCurrentFont(Ie,he)}),ye.appendChild(he);var We=document.createElement("div");We.style.display="flex",We.style.minHeight="20px",We.style.flexGrow="2",We.style.fontFamily=Ie,We.style.overflow="hidden";var tt=document.createElement("div");tt.style.whiteSpace="nowrap",tt.style.overflow="hidden",tt.style.textOverflow="ellipsis",tt.innerHTML="The quick brown fox jumps over the lazy dog",We.appendChild(tt),he.appendChild(We),le.fontBoxes.push(he)}),ye},de.prototype.setCurrentFont=function(le,ye){var Ie=this;this.currentFont=le,this.fontBoxes.forEach(function(he){he.style.borderColor=he===ye?Ie.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},de}(He),wt=function(be){function de(le,ye,Ie){var he=be.call(this,le,ye,Ie)||this;return he.color="transparent",he.padding=5,he.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",he.text=he.DEFAULT_TEXT,he.isMoved=!1,he.color=Ie.defaultColor,he.fontFamily=Ie.defaultFontFamily,he.defaultSize={x:100,y:30},he.setColor=he.setColor.bind(he),he.setFont=he.setFont.bind(he),he.renderText=he.renderText.bind(he),he.sizeText=he.sizeText.bind(he),he.textEditDivClicked=he.textEditDivClicked.bind(he),he.showTextEditor=he.showTextEditor.bind(he),he.setSize=he.setSize.bind(he),he.positionTextEditor=he.positionTextEditor.bind(he),he.colorPanel=new Ge("Color",Ie.defaultColorSet,Ie.defaultColor),he.colorPanel.onColorChanged=he.setColor,he.fontFamilyPanel=new Je("Font",Ie.defaultFontFamilies,Ie.defaultFontFamily),he.fontFamilyPanel.onFontChanged=he.setFont,he}return qt(de,be),de.prototype.ownsTarget=function(le){if(be.prototype.ownsTarget.call(this,le)||le===this.visual||le===this.textElement||le===this.bgRectangle)return!0;var ye=!1;return this.textElement.childNodes.forEach(function(Ie){Ie===le&&(ye=!0)}),ye},de.prototype.createVisual=function(){this.visual=at.createGroup(),this.bgRectangle=at.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=at.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(at.createTransform()),this.textElement.transform.baseVal.appendItem(at.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},de.prototype.pointerDown=function(le,ye){be.prototype.pointerDown.call(this,le,ye),this.isMoved=!1,this.pointerDownPoint=le,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(le),this._state="creating")},de.prototype.renderText=function(){var le=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(ye){le.textElement.appendChild(at.createTSpan(ye.trim()===""?" ":ye.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},de.prototype.getTextScale=function(){var le=this.textElement.getBBox(),ye=1;if(le.width>0&&le.height>0){var Ie=(1*this.width-this.width*this.padding*2/100)/le.width,he=(1*this.height-this.height*this.padding*2/100)/le.height;ye=Math.min(Ie,he)}return ye},de.prototype.getTextPosition=function(le){var ye=this.textElement.getBBox(),Ie=0,he=0;return ye.width>0&&ye.height>0&&(Ie=(this.width-ye.width*le)/2,he=this.height/2-ye.height*le/2),{x:Ie,y:he}},de.prototype.sizeText=function(){var le=this.textElement.getBBox(),ye=this.getTextScale(),Ie=this.getTextPosition(ye);Ie.y-=le.y*ye,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+Ie.x+"px, "+Ie.y+"px) scale("+ye+", "+ye+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(Ie.x,Ie.y),this.textElement.transform.baseVal.getItem(1).setScale(ye,ye))},de.prototype.manipulate=function(le){be.prototype.manipulate.call(this,le),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(le.x-this.pointerDownPoint.x)>5||Math.abs(le.y-this.pointerDownPoint.y)>5)},de.prototype.resize=function(le){be.prototype.resize.call(this,le),this.isMoved=!0,this.setSize(),this.sizeText()},de.prototype.setSize=function(){be.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(at.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),at.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},de.prototype.pointerUp=function(le){var ye=this.state;ye==="creating"&&(this._suppressMarkerCreateEvent=!0),be.prototype.pointerUp.call(this,le),this.setSize(),(ye==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},de.prototype.showTextEditor=function(){var le=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(ye){ye.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var ye=Number.parseFloat(le.textEditor.style.fontSize);le.textEditor.clientWidth>=Number.parseInt(le.textEditor.style.maxWidth)&&ye>.9;)ye-=.1,le.textEditor.style.fontSize=Math.max(ye,.9)+"em"}),this.textEditor.addEventListener("keyup",function(ye){ye.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(ye){if(ye.clipboardData){var Ie=ye.clipboardData.getData("text"),he=window.getSelection();if(!he.rangeCount)return!1;he.deleteFromDocument(),he.getRangeAt(0).insertNode(document.createTextNode(Ie)),ye.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){le.textEditDivClicked(le.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},de.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var le=this.getTextScale(),ye=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),Ie=this.textElement.getBBox(),he={x:Ie.width*le,y:Ie.height*le};ye.x-=he.x/2,ye.y-=he.y/2,this.textEditor.style.top=ye.y+"px",this.textEditor.style.left=ye.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-ye.x+"px",this.textEditor.style.fontSize=Math.max(16*le,12)+"px",this.textElement.style.display="none"}},de.prototype.textEditDivClicked=function(le){this.text=le.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},de.prototype.select=function(){be.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},de.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),be.prototype.deselect.call(this)},de.prototype.dblClick=function(le,ye){be.prototype.dblClick.call(this,le,ye),this.showTextEditor()},de.prototype.setColor=function(le){this.textElement&&at.setAttributes(this.textElement,[["fill",le]]),this.color=le,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(le)},de.prototype.setFont=function(le){this.textElement&&at.setAttributes(this.textElement,[["font-family",le]]),this.fontFamily=le,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},de.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},de.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(de.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),de.prototype.getState=function(){var le=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},be.prototype.getState.call(this));return le.typeName=de.typeName,le},de.prototype.restoreState=function(le){var ye=le;this.color=ye.color,this.fontFamily=ye.fontFamily,this.padding=ye.padding,this.text=ye.text,this.createVisual(),be.prototype.restoreState.call(this,le),this.setSize()},de.prototype.scale=function(le,ye){be.prototype.scale.call(this,le,ye),this.setSize(),this.sizeText(),this.positionTextEditor()},de.typeName="TextMarker",de.title="Text marker",de.icon='<svg viewBox="0 0 24 24"><path d="M9.6 14L12 7.7l2.4 6.3M11 5L5.5 19h2.2l1.1-3H15l1.1 3h2.2L13 5h-2z"/></svg>',de}(vt),lt=function(be){function de(le,ye,Ie){var he=be.call(this,le,ye,Ie)||this;return he.color="transparent",he.lineWidth=3,he.drawing=!1,he.pixelRatio=1,he.color=Ie.defaultColor,he.lineWidth=Ie.defaultStrokeWidth,he.pixelRatio=Ie.freehandPixelRatio,he.setColor=he.setColor.bind(he),he.addCanvas=he.addCanvas.bind(he),he.finishCreation=he.finishCreation.bind(he),he.setLineWidth=he.setLineWidth.bind(he),he.colorPanel=new Ge("Color",Ie.defaultColorSet,Ie.defaultColor),he.colorPanel.onColorChanged=he.setColor,he.lineWidthPanel=new Nt("Line width",Ie.defaultStrokeWidths,Ie.defaultStrokeWidth),he.lineWidthPanel.onWidthChanged=he.setLineWidth,he}return qt(de,be),de.prototype.ownsTarget=function(le){return!(!be.prototype.ownsTarget.call(this,le)&&le!==this.visual&&le!==this.drawingImage)},de.prototype.createVisual=function(){this.visual=at.createGroup(),this.drawingImage=at.createImage(),this.visual.appendChild(this.drawingImage);var le=at.createTransform();this.visual.transform.baseVal.appendItem(le),this.addMarkerVisualToContainer(this.visual)},de.prototype.pointerDown=function(le,ye){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(le.x,le.y),this.drawing=!0):be.prototype.pointerDown.call(this,le,ye)},de.prototype.manipulate=function(le){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(le.x,le.y),this.canvasContext.stroke()):be.prototype.manipulate.call(this,le)},de.prototype.resize=function(le){be.prototype.resize.call(this,le),at.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),at.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},de.prototype.pointerUp=function(le){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):be.prototype.pointerUp.call(this,le)},de.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)},de.prototype.select=function(){this.state==="creating"&&this.finishCreation(),be.prototype.select.call(this)},de.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),be.prototype.deselect.call(this)},de.prototype.finishCreation=function(){for(var le=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),ye=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],Ie=ye[0],he=ye[1],We=ye[2],tt=ye[3],dn=!1,ut=0;ut<this.canvasElement.height;ut++)for(var zt=0;zt<this.canvasElement.width;zt++)le.data[ut*this.canvasElement.width*4+4*zt+3]>0&&(dn=!0,ut<he&&(he=ut),zt<Ie&&(Ie=zt),ut>tt&&(tt=ut),zt>We&&(We=zt));if(dn){this.left=Ie/this.pixelRatio,this.top=he/this.pixelRatio,this.width=(We-Ie)/this.pixelRatio,this.height=(tt-he)/this.pixelRatio;var en=document.createElement("canvas");en.width=We-Ie,en.height=tt-he,en.getContext("2d").putImageData(this.canvasContext.getImageData(Ie,he,We-Ie,tt-he),0,0),this.drawingImgUrl=en.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},de.prototype.setDrawingImage=function(){at.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),at.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},de.prototype.setColor=function(le){this.color=le,this.colorChanged(le)},de.prototype.setLineWidth=function(le){this.lineWidth=le},Object.defineProperty(de.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),de.prototype.getState=function(){var le=Object.assign({drawingImgUrl:this.drawingImgUrl},be.prototype.getState.call(this));return le.typeName=de.typeName,le},de.prototype.restoreState=function(le){this.createVisual(),be.prototype.restoreState.call(this,le),this.drawingImgUrl=le.drawingImgUrl,this.setDrawingImage()},de.prototype.scale=function(le,ye){be.prototype.scale.call(this,le,ye),this.setDrawingImage()},de.typeName="FreehandMarker",de.title="Freehand marker",de.icon='<svg viewBox="0 0 24 24"><path d="M9.75 20.85c1.78-.7 1.39-2.63.49-3.85-.89-1.25-2.12-2.11-3.36-2.94A9.817 9.817 0 014.54 12c-.28-.33-.85-.94-.27-1.06.59-.12 1.61.46 2.13.68.91.38 1.81.82 2.65 1.34l1.01-1.7C8.5 10.23 6.5 9.32 4.64 9.05c-1.06-.16-2.18.06-2.54 1.21-.32.99.19 1.99.77 2.77 1.37 1.83 3.5 2.71 5.09 4.29.34.33.75.72.95 1.18.21.44.16.47-.31.47-1.24 0-2.79-.97-3.8-1.61l-1.01 1.7c1.53.94 4.09 2.41 5.96 1.79m11.09-15.6c.22-.22.22-.58 0-.79l-1.3-1.3a.562.562 0 00-.78 0l-1.02 1.02 2.08 2.08M11 10.92V13h2.08l6.15-6.15-2.08-2.08L11 10.92z"/></svg>',de}(vt),Fe=function(be){function de(le,ye,Ie){var he=be.call(this,le,Ie||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return he.typeBoxes=[],he.currentType=ye,he.setCurrentType=he.setCurrentType.bind(he),he}return qt(de,be),de.prototype.getUi=function(){var le=this,ye=document.createElement("div");ye.style.display="flex",ye.style.overflow="hidden",ye.style.flexGrow="2";for(var Ie=function(tt){var dn="both";switch(tt){case 0:dn="both";break;case 1:dn="start";break;case 2:dn="end";break;case 3:dn="none"}var ut=document.createElement("div");if(ut.style.display="flex",ut.style.flexGrow="2",ut.style.alignItems="center",ut.style.justifyContent="space-between",ut.style.padding="5px",ut.style.borderWidth="2px",ut.style.borderStyle="solid",ut.style.borderColor=dn===he.currentType?he.uiStyleSettings.toolboxAccentColor:"transparent",ut.addEventListener("click",function(){le.setCurrentType(dn,ut)}),ye.appendChild(ut),dn==="both"||dn==="start"){var zt=document.createElement("div");zt.style.display="flex",zt.style.alignItems="center",zt.style.minHeight="20px",zt.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
|
|
|
<polygon points="0,5 10,0 10,10" fill="`+(he.uiStyleSettings!==void 0?he.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,zt.style.marginLeft="5px",ut.appendChild(zt)}var en=document.createElement("div");en.style.display="flex",en.style.alignItems="center",en.style.minHeight="20px",en.style.flexGrow="2";var Sn=document.createElement("hr");if(Sn.style.minWidth="20px",Sn.style.border="0px",Sn.style.borderTop="3px solid "+(he.uiStyleSettings!==void 0?he.uiStyleSettings.toolboxColor:"#eeeeee"),Sn.style.flexGrow="2",en.appendChild(Sn),ut.appendChild(en),dn==="both"||dn==="end"){var yn=document.createElement("div");yn.style.display="flex",yn.style.alignItems="center",yn.style.minHeight="20px",yn.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
|
|
|
<polygon points="0,0 10,5 0,10" fill="`+(he.uiStyleSettings!==void 0?he.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,yn.style.marginRight="5px",ut.appendChild(yn)}he.typeBoxes.push(ut)},he=this,We=0;We<4;We++)Ie(We);return ye},de.prototype.setCurrentType=function(le,ye){var Ie=this;this.currentType=le,this.typeBoxes.forEach(function(he){he.style.borderColor=he===ye?Ie.uiStyleSettings!==void 0?Ie.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},de}(He),Zt=function(be){function de(le,ye,Ie){var he=be.call(this,le,ye,Ie)||this;return he.arrowType="end",he.arrowBaseHeight=10,he.arrowBaseWidth=10,he.getArrowPoints=he.getArrowPoints.bind(he),he.setArrowType=he.setArrowType.bind(he),he.arrowTypePanel=new Fe("Arrow type","end"),he.arrowTypePanel.onArrowTypeChanged=he.setArrowType,he}return qt(de,be),de.prototype.ownsTarget=function(le){return!(!be.prototype.ownsTarget.call(this,le)&&le!==this.arrow1&&le!==this.arrow2)},de.prototype.getArrowPoints=function(le,ye){var Ie=this.arrowBaseWidth+2*this.strokeWidth,he=this.arrowBaseHeight+2*this.strokeWidth;return le-Ie/2+","+(ye+he/2)+" "+le+","+(ye-he/2)+" "+(le+Ie/2)+","+(ye+he/2)},de.prototype.createTips=function(){this.arrow1=at.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(at.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=at.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(at.createTransform()),this.visual.appendChild(this.arrow2)},de.prototype.pointerDown=function(le,ye){be.prototype.pointerDown.call(this,le,ye),this.state==="creating"&&this.createTips()},de.prototype.adjustVisual=function(){if(be.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",at.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),at.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var le=0;Math.abs(this.x1-this.x2)>.1&&(le=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var ye=this.arrow1.transform.baseVal.getItem(0);ye.setRotate(le,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(ye,0);var Ie=this.arrow2.transform.baseVal.getItem(0);Ie.setRotate(le+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(Ie,0)}},de.prototype.setArrowType=function(le){this.arrowType=le,this.adjustVisual(),this.stateChanged()},Object.defineProperty(de.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),de.prototype.getState=function(){var le=Object.assign({arrowType:this.arrowType},be.prototype.getState.call(this));return le.typeName=de.typeName,le},de.prototype.restoreState=function(le){be.prototype.restoreState.call(this,le);var ye=le;this.arrowType=ye.arrowType,this.createTips(),this.adjustVisual()},de.typeName="ArrowMarker",de.title="Arrow marker",de.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',de}(jt),$e=function(be){function de(le,ye,Ie){var he=be.call(this,le,ye,Ie)||this;return he.fillColor=Ie.defaultFillColor,he.strokeWidth=0,he.fillPanel=new Ge("Color",Ie.defaultColorSet,Ie.defaultFillColor),he.fillPanel.onColorChanged=he.setFillColor,he}return qt(de,be),Object.defineProperty(de.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),de.prototype.getState=function(){var le=be.prototype.getState.call(this);return le.typeName=de.typeName,le},de.typeName="CoverMarker",de.title="Cover marker",de.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',de}(yt),At=function(be){function de(le,ye,Ie,he){var We=be.call(this,le,he||'<svg viewBox="0 0 24 24"><path d="M17.66 8L12 2.35 6.34 8A8.02 8.02 0 004 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0011.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8M6 14c0-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 18 12 18 14H6z"/></svg>')||this;return We.opacities=[],We.opacityBoxes=[],We.opacities=ye,We.currentOpacity=Ie,We.setCurrentOpacity=We.setCurrentOpacity.bind(We),We}return qt(de,be),de.prototype.getUi=function(){var le=this,ye=document.createElement("div");return ye.style.display="flex",ye.style.overflow="hidden",ye.style.flexGrow="2",ye.style.justifyContent="space-between",this.opacities.forEach(function(Ie){var he=document.createElement("div");he.style.display="flex",he.style.alignItems="center",he.style.justifyContent="center",he.style.padding="5px",he.style.borderWidth="2px",he.style.borderStyle="solid",he.style.borderColor=Ie===le.currentOpacity?le.uiStyleSettings.toolboxAccentColor:"transparent",he.addEventListener("click",function(){le.setCurrentOpacity(Ie,he)}),ye.appendChild(he);var We=document.createElement("div");We.innerText=100*Ie+"%",he.appendChild(We),le.opacityBoxes.push(he)}),ye},de.prototype.setCurrentOpacity=function(le,ye){var Ie=this;this.currentOpacity=le,this.opacityBoxes.forEach(function(he){he.style.borderColor=he===ye?Ie.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},de}(He),Qt=function(be){function de(le,ye,Ie){var he=be.call(this,le,ye,Ie)||this;return he.setOpacity=he.setOpacity.bind(he),he.fillColor=Ie.defaultHighlightColor,he.strokeWidth=0,he.opacity=Ie.defaultHighlightOpacity,he.fillPanel=new Ge("Color",Ie.defaultColorSet,he.fillColor),he.fillPanel.onColorChanged=he.setFillColor,he.opacityPanel=new At("Opacity",Ie.defaultOpacitySteps,he.opacity),he.opacityPanel.onOpacityChanged=he.setOpacity,he}return qt(de,be),de.prototype.setOpacity=function(le){this.opacity=le,this.visual&&at.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(de.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),de.prototype.getState=function(){var le=be.prototype.getState.call(this);return le.typeName=de.typeName,le},de.typeName="HighlightMarker",de.title="Highlight marker",de.icon='<svg viewBox="0 0 24 24"><path d="M18.5 1.15c-.53 0-1.04.19-1.43.58l-5.81 5.82 5.65 5.65 5.82-5.81c.77-.78.77-2.04 0-2.83l-2.84-2.83c-.39-.39-.89-.58-1.39-.58M10.3 8.5l-5.96 5.96c-.78.78-.78 2.04.02 2.85C3.14 18.54 1.9 19.77.67 21h5.66l.86-.86c.78.76 2.03.75 2.81-.02l5.95-5.96"/></svg>',de}($e),Te='<svg viewBox="0 0 24 24"><path d="M9.62 12L12 5.67 14.37 12M11 3L5.5 17h2.25l1.12-3h6.25l1.13 3h2.25L13 3h-2z"/></svg>',xe='<svg viewBox="0 0 24 24"><path d="M19 11.5s-2 2.17-2 3.5a2 2 0 002 2 2 2 0 002-2c0-1.33-2-3.5-2-3.5M5.21 10L10 5.21 14.79 10m1.77-1.06L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.56-.59 1.53 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.59.59-1.56 0-2.12z"/></svg>',It=function(be){function de(le,ye,Ie){var he=be.call(this,le,ye,Ie)||this;return he.bgColor="transparent",he.tipPosition={x:0,y:0},he.tipBase1Position={x:0,y:0},he.tipBase2Position={x:0,y:0},he.tipMoving=!1,he.color=Ie.defaultStrokeColor,he.bgColor=Ie.defaultFillColor,he.fontFamily=Ie.defaultFontFamily,he.defaultSize={x:100,y:30},he.setBgColor=he.setBgColor.bind(he),he.getTipPoints=he.getTipPoints.bind(he),he.positionTip=he.positionTip.bind(he),he.setTipPoints=he.setTipPoints.bind(he),he.colorPanel=new Ge("Text color",Ie.defaultColorSet,he.color,Te),he.colorPanel.onColorChanged=he.setColor,he.bgColorPanel=new Ge("Fill color",Ie.defaultColorSet,he.bgColor,xe),he.bgColorPanel.onColorChanged=he.setBgColor,he.fontFamilyPanel=new Je("Font",Ie.defaultFontFamilies,Ie.defaultFontFamily),he.fontFamilyPanel.onFontChanged=he.setFont,he.tipGrip=new pt,he.tipGrip.visual.transform.baseVal.appendItem(at.createTransform()),he.controlBox.appendChild(he.tipGrip.visual),he}return qt(de,be),de.prototype.ownsTarget=function(le){return be.prototype.ownsTarget.call(this,le)||this.tipGrip.ownsTarget(le)||this.tip===le},de.prototype.createTip=function(){at.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=at.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},de.prototype.pointerDown=function(le,ye){this.state==="new"&&be.prototype.pointerDown.call(this,le,ye),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(ye)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):be.prototype.pointerDown.call(this,le,ye)},de.prototype.pointerUp=function(le){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,be.prototype.pointerUp.call(this,le);else{var ye=this.state==="creating";be.prototype.pointerUp.call(this,le),this.setTipPoints(ye),this.positionTip()}},de.prototype.manipulate=function(le){if(this.tipMoving){var ye=this.unrotatePoint(le);this.tipPosition={x:ye.x-this.manipulationStartLeft,y:ye.y-this.manipulationStartTop},this.positionTip()}else be.prototype.manipulate.call(this,le)},de.prototype.setBgColor=function(le){this.bgRectangle&&this.tip&&(at.setAttributes(this.bgRectangle,[["fill",le]]),at.setAttributes(this.tip,[["fill",le]])),this.bgColor=le,this.fillColorChanged(le)},de.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},de.prototype.setTipPoints=function(le){le===void 0&&(le=!1);var ye=Math.min(this.height/2,15),Ie=this.height/5;le&&(this.tipPosition={x:ye+Ie/2,y:this.height+20});var he=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?he<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(Ie=this.width/5,ye=Math.min(this.width/2,15),this.tipBase1Position={x:ye,y:0},this.tipBase2Position={x:ye+Ie,y:0}):(this.tipBase1Position={x:0,y:ye},this.tipBase2Position={x:0,y:ye+Ie}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?he<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(Ie=this.width/5,ye=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-ye-Ie,y:0},this.tipBase2Position={x:this.width-ye,y:0}):(this.tipBase1Position={x:this.width,y:ye},this.tipBase2Position={x:this.width,y:ye+Ie}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?he<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(Ie=this.width/5,ye=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-ye-Ie,y:this.height},this.tipBase2Position={x:this.width-ye,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-ye-Ie},this.tipBase2Position={x:this.width,y:this.height-ye}):he<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(Ie=this.width/5,ye=Math.min(this.width/2,15),this.tipBase1Position={x:ye,y:this.height},this.tipBase2Position={x:ye+Ie,y:this.height}):(this.tipBase1Position={x:0,y:this.height-ye},this.tipBase2Position={x:0,y:this.height-ye-Ie})},de.prototype.resize=function(le){be.prototype.resize.call(this,le),this.positionTip()},de.prototype.positionTip=function(){at.setAttributes(this.tip,[["points",this.getTipPoints()]]);var le=this.tipGrip.visual.transform.baseVal.getItem(0);le.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(le,0)},Object.defineProperty(de.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),de.prototype.select=function(){this.positionTip(),be.prototype.select.call(this)},de.prototype.getState=function(){var le=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},be.prototype.getState.call(this));return le.typeName=de.typeName,le},de.prototype.restoreState=function(le){var ye=le;this.bgColor=ye.bgColor,this.tipPosition=ye.tipPosition,be.prototype.restoreState.call(this,le),this.createTip(),this.setTipPoints()},de.prototype.scale=function(le,ye){be.prototype.scale.call(this,le,ye),this.tipPosition={x:this.tipPosition.x*le,y:this.tipPosition.y*ye},this.positionTip()},de.typeName="CalloutMarker",de.title="Callout marker",de.icon='<svg viewBox="0 0 24 24"><path d="M4 2h16a2 2 0 012 2v12a2 2 0 01-2 2h-4l-4 4-4-4H4a2 2 0 01-2-2V4a2 2 0 012-2m0 2v12h4.83L12 19.17 15.17 16H20V4H4m2 3h12v2H6V7m0 4h10v2H6v-2z"/></svg>',de}(wt),Cn=function(be){function de(le,ye,Ie){var he=be.call(this,le,ye,Ie)||this;return he.fillColor="transparent",he.strokeColor="transparent",he.strokeWidth=0,he.strokeDasharray="",he.opacity=1,he.strokeColor=Ie.defaultColor,he.strokeWidth=Ie.defaultStrokeWidth,he.strokeDasharray=Ie.defaultStrokeDasharray,he.fillColor=Ie.defaultFillColor,he.setStrokeColor=he.setStrokeColor.bind(he),he.setFillColor=he.setFillColor.bind(he),he.setStrokeWidth=he.setStrokeWidth.bind(he),he.setStrokeDasharray=he.setStrokeDasharray.bind(he),he.setOpacity=he.setOpacity.bind(he),he.createVisual=he.createVisual.bind(he),he.strokePanel=new Ge("Line color",rt(Ie.defaultColorSet,["transparent"]),Ie.defaultColor),he.strokePanel.onColorChanged=he.setStrokeColor,he.fillPanel=new Ge("Fill color",rt(Ie.defaultColorSet,["transparent"]),he.fillColor,xe),he.fillPanel.onColorChanged=he.setFillColor,he.strokeWidthPanel=new Nt("Line width",Ie.defaultStrokeWidths,Ie.defaultStrokeWidth),he.strokeWidthPanel.onWidthChanged=he.setStrokeWidth,he.strokeStylePanel=new Et("Line style",Ie.defaultStrokeDasharrays,Ie.defaultStrokeDasharray),he.strokeStylePanel.onStyleChanged=he.setStrokeDasharray,he.opacityPanel=new At("Opacity",Ie.defaultOpacitySteps,he.opacity),he.opacityPanel.onOpacityChanged=he.setOpacity,he}return qt(de,be),de.prototype.ownsTarget=function(le){return!(!be.prototype.ownsTarget.call(this,le)&&le!==this.visual)},de.prototype.createVisual=function(){this.visual=at.createEllipse(this.width/2,this.height/2,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},de.prototype.pointerDown=function(le,ye){be.prototype.pointerDown.call(this,le,ye),this.state==="new"&&(this.createVisual(),this.moveVisual(le),this._state="creating")},de.prototype.manipulate=function(le){be.prototype.manipulate.call(this,le)},de.prototype.resize=function(le){be.prototype.resize.call(this,le),this.setSize()},de.prototype.setSize=function(){be.prototype.setSize.call(this),at.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},de.prototype.pointerUp=function(le){be.prototype.pointerUp.call(this,le),this.setSize()},de.prototype.setStrokeColor=function(le){this.strokeColor=le,this.visual&&at.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(le),this.stateChanged()},de.prototype.setFillColor=function(le){this.fillColor=le,this.visual&&at.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(le),this.stateChanged()},de.prototype.setStrokeWidth=function(le){this.strokeWidth=le,this.visual&&at.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},de.prototype.setStrokeDasharray=function(le){this.strokeDasharray=le,this.visual&&at.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},de.prototype.setOpacity=function(le){this.opacity=le,this.visual&&at.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(de.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),de.prototype.getState=function(){var le=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},be.prototype.getState.call(this));return le.typeName=de.typeName,le},de.prototype.restoreState=function(le){var ye=le;this.fillColor=ye.fillColor,this.strokeColor=ye.strokeColor,this.strokeWidth=ye.strokeWidth,this.strokeDasharray=ye.strokeDasharray,this.opacity=ye.opacity,this.createVisual(),be.prototype.restoreState.call(this,le),this.setSize()},de.prototype.scale=function(le,ye){be.prototype.scale.call(this,le,ye),this.setSize()},de.typeName="EllipseMarker",de.title="Ellipse marker",de.icon='<svg viewBox="0 0 24 24"><path d="M12 4C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',de}(vt),mn=function(be){function de(le,ye,Ie){return be.call(this,le,ye,Ie)||this}return qt(de,be),Object.defineProperty(de.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),de.prototype.ownsTarget=function(le){return!(!be.prototype.ownsTarget.call(this,le)&&le!==this.tip1&&le!==this.tip2)},de.prototype.createTips=function(){this.tip1=at.createLine(this.x1-this.tipLength/2,this.y1,this.x1+this.tipLength/2,this.y1,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip1.transform.baseVal.appendItem(at.createTransform()),this.visual.appendChild(this.tip1),this.tip2=at.createLine(this.x2-this.tipLength/2,this.y2,this.x2+this.tipLength/2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip2.transform.baseVal.appendItem(at.createTransform()),this.visual.appendChild(this.tip2)},de.prototype.pointerDown=function(le,ye){be.prototype.pointerDown.call(this,le,ye),this.state==="creating"&&this.createTips()},de.prototype.adjustVisual=function(){if(be.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(at.setAttributes(this.tip1,[["x1",(this.x1-this.tipLength/2).toString()],["y1",this.y1.toString()],["x2",(this.x1+this.tipLength/2).toString()],["y2",this.y1.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),at.setAttributes(this.tip2,[["x1",(this.x2-this.tipLength/2).toString()],["y1",this.y2.toString()],["x2",(this.x2+this.tipLength/2).toString()],["y2",this.y2.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Math.abs(this.x1-this.x2)>.1)){var le=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),ye=this.tip1.transform.baseVal.getItem(0);ye.setRotate(le,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(ye,0);var Ie=this.tip2.transform.baseVal.getItem(0);Ie.setRotate(le+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(Ie,0)}},Object.defineProperty(de.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),de.prototype.getState=function(){var le=be.prototype.getState.call(this);return le.typeName=de.typeName,le},de.prototype.restoreState=function(le){be.prototype.restoreState.call(this,le),this.createTips(),this.adjustVisual()},de.typeName="MeasurementMarker",de.title="Measurement marker",de.icon='<svg viewBox="0 0 24 24"><path d="M1.39 18.36l1.77-1.76L4.58 18l1.06-1.05-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.42 1.41L10.59 12l-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.41 1.41 1.07-1.06-1.42-1.41 1.42-1.42L18 6.7l1.07-1.06-2.47-2.48 1.76-1.77 4.25 4.25L5.64 22.61l-4.25-4.25z"/></svg>',de}(jt),Ze=function(be){function de(le,ye,Ie){var he=be.call(this,le,ye,Ie)||this;return he.strokePanel.colors=Ie.defaultColorSet,he.fillColor="transparent",he}return qt(de,be),Object.defineProperty(de.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),de.prototype.getState=function(){var le=be.prototype.getState.call(this);return le.typeName=de.typeName,le},de.typeName="EllipseFrameMarker",de.title="Ellipse frame marker",de.icon='<svg viewBox="0 0 24 24"><path d="M12 6c4.41 0 8 2.69 8 6s-3.59 6-8 6-8-2.69-8-6 3.59-6 8-6m0-2C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',de}(Cn),Ct=function(){function be(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(be.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(be.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(be.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(be.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),be.prototype.addUndoStep=function(de){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(de)||(this.undoStack.push(de),JSON.stringify(this.lastRedoStep)!==JSON.stringify(de)&&this.redoStack.splice(0,this.redoStack.length))},be.prototype.replaceLastUndoStep=function(de){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=de)},be.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},be.prototype.undo=function(){if(this.undoStack.length>1){var de=this.undoStack.pop();return de!==void 0&&this.redoStack.push(de),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},be.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},be}(),_t=function(be){function de(le,ye,Ie){var he=be.call(this,le,ye,Ie)||this;return he.strokeColor="transparent",he.strokeWidth=0,he.strokeDasharray="",he.curveX=0,he.curveY=0,he.manipulationStartCurveX=0,he.manipulationStartCurveY=0,he.setStrokeColor=he.setStrokeColor.bind(he),he.setStrokeWidth=he.setStrokeWidth.bind(he),he.setStrokeDasharray=he.setStrokeDasharray.bind(he),he.positionGrips=he.positionGrips.bind(he),he.addControlGrips=he.addControlGrips.bind(he),he.adjustVisual=he.adjustVisual.bind(he),he.setupControlBox=he.setupControlBox.bind(he),he.resize=he.resize.bind(he),he.strokeColor=Ie.defaultColor,he.strokeWidth=Ie.defaultStrokeWidth,he.strokeDasharray=Ie.defaultStrokeDasharray,he.strokePanel=new Ge("Line color",Ie.defaultColorSet,Ie.defaultColor),he.strokePanel.onColorChanged=he.setStrokeColor,he.strokeWidthPanel=new Nt("Line width",Ie.defaultStrokeWidths,Ie.defaultStrokeWidth),he.strokeWidthPanel.onWidthChanged=he.setStrokeWidth,he.strokeStylePanel=new Et("Line style",Ie.defaultStrokeDasharrays,Ie.defaultStrokeDasharray),he.strokeStylePanel.onStyleChanged=he.setStrokeDasharray,he}return qt(de,be),de.prototype.ownsTarget=function(le){return!(!be.prototype.ownsTarget.call(this,le)&&le!==this.visual&&le!==this.selectorCurve&&le!==this.visibleCurve&&!this.curveGrip.ownsTarget(le))},de.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},de.prototype.createVisual=function(){this.visual=at.createGroup(),this.selectorCurve=at.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=at.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)},de.prototype.pointerDown=function(le,ye){be.prototype.pointerDown.call(this,le,ye),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=le.x,this.curveY=le.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(ye)&&(this.activeGrip=this.curveGrip,this._state="resize")},de.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),at.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),at.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),at.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},de.prototype.setupControlBox=function(){be.prototype.setupControlBox.call(this),this.curveControlLine1=at.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=at.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)},de.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,be.prototype.addControlGrips.call(this)},de.prototype.positionGrips=function(){be.prototype.positionGrips.call(this);var le=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-le/2,this.curveY-le/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()))},de.prototype.manipulate=function(le){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+le.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+le.y-this.manipulationStartY),be.prototype.manipulate.call(this,le)},de.prototype.resize=function(le){this.activeGrip===this.curveGrip&&(this.curveX=le.x,this.curveY=le.y),be.prototype.resize.call(this,le),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},de.prototype.setStrokeColor=function(le){this.strokeColor=le,this.adjustVisual(),this.colorChanged(le)},de.prototype.setStrokeWidth=function(le){this.strokeWidth=le,this.adjustVisual()},de.prototype.setStrokeDasharray=function(le){this.strokeDasharray=le,this.adjustVisual()},de.prototype.scale=function(le,ye){this.curveX=this.curveX*le,this.curveY=this.curveY*ye,be.prototype.scale.call(this,le,ye)},Object.defineProperty(de.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),de.prototype.getState=function(){var le=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},be.prototype.getState.call(this));return le.typeName=de.typeName,le},de.prototype.restoreState=function(le){be.prototype.restoreState.call(this,le);var ye=le;this.strokeColor=ye.strokeColor,this.strokeWidth=ye.strokeWidth,this.strokeDasharray=ye.strokeDasharray,this.curveX=ye.curveX,this.curveY=ye.curveY,this.createVisual(),this.adjustVisual()},de.typeName="CurveMarker",de.title="Curve marker",de.icon='<svg viewBox="0 0 24 24"><path d="M18.5 2A1.5 1.5 0 0120 3.5 1.5 1.5 0 0118.5 5c-.23 0-.45-.05-.65-.15l-3.69 3.7.34.45c2.19-1.26 4.76-2 7.5-2l1 .03v2.01L22 9c-2.58 0-5 .75-7 2.04A3.96 3.96 0 0111.04 15C9.75 17 9 19.42 9 22l.04 1H7.03L7 22c0-2.74.74-5.31 2-7.5l-.45-.34-3.7 3.69c.1.2.15.42.15.65A1.5 1.5 0 013.5 20 1.5 1.5 0 012 18.5 1.5 1.5 0 013.5 17c.23 0 .45.05.65.15l3.69-3.7C7.31 12.78 7 11.92 7 11a4 4 0 014-4c.92 0 1.78.31 2.45.84l3.7-3.69c-.1-.2-.15-.42-.15-.65A1.5 1.5 0 0118.5 2M11 9a2 2 0 00-2 2 2 2 0 002 2 2 2 0 002-2 2 2 0 00-2-2z"/></svg>',de}(St),In=function(be){function de(le,ye,Ie){var he=be.call(this,le,ye,Ie)||this;return he.fillColor="transparent",he.strokeColor="transparent",he.strokeWidth=0,he.strokeDasharray="",he.textColor="transparent",he.fontSize="1rem",he.isMoved=!1,he.captionText="Caption",he.PADDING=5,he.captionBoxWidth=0,he.captionBoxHeight=0,he.strokeColor=Ie.defaultColor,he.strokeWidth=Ie.defaultStrokeWidth,he.strokeDasharray=Ie.defaultStrokeDasharray,he.fillColor=Ie.defaultFillColor,he.textColor=Ie.defaultStrokeColor,he.fontFamily=Ie.defaultFontFamily,he.fontSize=Ie.defaultCaptionFontSize,he.captionText=Ie.defaultCaptionText,he.setStrokeColor=he.setStrokeColor.bind(he),he.setFillColor=he.setFillColor.bind(he),he.setStrokeWidth=he.setStrokeWidth.bind(he),he.setStrokeDasharray=he.setStrokeDasharray.bind(he),he.createVisual=he.createVisual.bind(he),he.sizeCaption=he.sizeCaption.bind(he),he.setCaptionText=he.setCaptionText.bind(he),he.showTextEditor=he.showTextEditor.bind(he),he.positionTextEditor=he.positionTextEditor.bind(he),he.finishTextEditing=he.finishTextEditing.bind(he),he.setFont=he.setFont.bind(he),he.setTextColor=he.setTextColor.bind(he),he.strokePanel=new Ge("Line color",rt(Ie.defaultColorSet,["transparent"]),he.strokeColor),he.strokePanel.onColorChanged=he.setStrokeColor,he.fillPanel=new Ge("Fill color",rt(Ie.defaultColorSet,["transparent"]),he.fillColor,xe),he.fillPanel.onColorChanged=he.setFillColor,he.strokeWidthPanel=new Nt("Line width",Ie.defaultStrokeWidths,Ie.defaultStrokeWidth),he.strokeWidthPanel.onWidthChanged=he.setStrokeWidth,he.strokeStylePanel=new Et("Line style",Ie.defaultStrokeDasharrays,Ie.defaultStrokeDasharray),he.strokeStylePanel.onStyleChanged=he.setStrokeDasharray,he.fontFamilyPanel=new Je("Font",Ie.defaultFontFamilies,Ie.defaultFontFamily),he.fontFamilyPanel.onFontChanged=he.setFont,he.textColorPanel=new Ge("Text color",Ie.defaultColorSet,he.textColor,Te),he.textColorPanel.onColorChanged=he.setTextColor,he}return qt(de,be),de.prototype.ownsTarget=function(le){return!(!be.prototype.ownsTarget.call(this,le)&&le!==this.visual&&le!==this.frame&&le!==this.captionBg&&le!==this.captionElement)},de.prototype.createVisual=function(){this.visual=at.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=at.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=at.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=at.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()},de.prototype.setCaptionText=function(le){this.captionText=le,this.captionElement.textContent=this.captionText,this.sizeCaption()},de.prototype.pointerDown=function(le,ye){be.prototype.pointerDown.call(this,le,ye),this.isMoved=!1,this.pointerDownPoint=le,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(le),this._state="creating")},de.prototype.manipulate=function(le){be.prototype.manipulate.call(this,le),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(le.x-this.pointerDownPoint.x)>5||Math.abs(le.y-this.pointerDownPoint.y)>5)},de.prototype.resize=function(le){be.prototype.resize.call(this,le),this.setSize()},de.prototype.sizeCaption=function(){var le=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=le.width+2*this.PADDING,this.captionBoxHeight=le.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),at.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')"]]),at.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')"]])},de.prototype.showTextEditor=function(){var le=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(ye){ye.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(ye){ye.key==="Enter"&&le.finishTextEditing(le.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(ye){ye.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){le.finishTextEditing(le.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){le.finishTextEditing(le.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},de.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"))},de.prototype.finishTextEditing=function(le){this.setCaptionText(le.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},de.prototype.setFont=function(le){this.captionElement&&at.setAttributes(this.captionElement,[["font-family",le]]),this.fontFamily=le,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},de.prototype.setTextColor=function(le){this.captionElement&&at.setAttributes(this.captionElement,[["fill",le]]),this.textColor=le,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},de.prototype.setSize=function(){be.prototype.setSize.call(this),at.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},de.prototype.pointerUp=function(le){be.prototype.pointerUp.call(this,le),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},de.prototype.dblClick=function(le,ye){be.prototype.dblClick.call(this,le,ye),this.showTextEditor()},de.prototype.setStrokeColor=function(le){this.strokeColor=le,this.frame&&at.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(le),this.stateChanged()},de.prototype.setFillColor=function(le){this.fillColor=le,this.captionBg&&at.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(le),this.stateChanged()},de.prototype.setStrokeWidth=function(le){this.strokeWidth=le,this.frame&&at.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},de.prototype.setStrokeDasharray=function(le){this.strokeDasharray=le,this.frame&&at.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(de.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),de.prototype.getState=function(){var le=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},be.prototype.getState.call(this));return le.typeName=this.typeName,le},de.prototype.restoreState=function(le){var ye=le;this.fillColor=ye.fillColor,this.strokeColor=ye.strokeColor,this.strokeWidth=ye.strokeWidth,this.strokeDasharray=ye.strokeDasharray,this.textColor=ye.textColor,this.fontFamily=ye.fontFamily,this.captionText=ye.captionText,this.fontSize=ye.fontSize,this.createVisual(),be.prototype.restoreState.call(this,le),this.setSize()},de.prototype.scale=function(le,ye){be.prototype.scale.call(this,le,ye),this.setSize()},de.typeName="CaptionFrameMarker",de.title="Caption frame marker",de.icon='<svg viewBox="0 0 24 24"><path d="M5 3c-1.11 0-2 .89-2 2v14c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2V5c0-1.11-.89-2-2-2H5m0 2h14v14H5V5m2 2v2h10V7H7z"/></svg>',de}(vt),xn=function(){function be(de,le){le===void 0&&(le=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=de,this.cancelable=le}return Object.defineProperty(be.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),be.prototype.preventDefault=function(){this._defaultPrevented=!0},be}(),Wn=function(be){function de(le,ye,Ie){var he=be.call(this,le,!1)||this;return he.dataUrl=ye,he.state=Ie,he}return qt(de,be),de}(xn),ct=function(be){function de(le,ye,Ie){Ie===void 0&&(Ie=!1);var he=be.call(this,le,Ie)||this;return he.marker=ye,he}return qt(de,be),de}(xn),En=function(){function be(){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 be.prototype.addEventListener=function(de,le){this[de].push(le)},be.prototype.removeEventListener=function(de,le){var ye=this[de].indexOf(le);ye>-1&&this[de].splice(ye,1)},be}(),Rt=function(){function be(de){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Pt,this._isOpen=!1,this.undoRedoManager=new Ct,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 En,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=be.instanceCounter++,this.styles=new ce(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=de,this.targetRoot=document.body,this.width=de.clientWidth,this.height=de.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(be.prototype,"ALL_MARKER_TYPES",{get:function(){return[pn,lt,Zt,wt,Ze,Cn,Qt,It,mn,$e,jt,_t,In]},enumerable:!1,configurable:!0}),Object.defineProperty(be.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[pn,lt,Zt,wt,Cn,Qt,It]},enumerable:!1,configurable:!0}),Object.defineProperty(be.prototype,"BASIC_MARKER_TYPES",{get:function(){return[pn,lt,Zt,wt,Qt]},enumerable:!1,configurable:!0}),Object.defineProperty(be.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(de){var le=this;this._availableMarkerTypes.splice(0),de.forEach(function(ye){if(typeof ye=="string"){var Ie=le.ALL_MARKER_TYPES.find(function(he){return he.typeName===ye});Ie!==void 0&&le._availableMarkerTypes.push(Ie)}else le._availableMarkerTypes.push(ye)})},enumerable:!1,configurable:!0}),Object.defineProperty(be.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(be.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(be.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(be.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(be.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(de){this._zoomLevel=de,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(be.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),be.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),Dt.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},be.prototype.show=function(){var de=this;this.styles.styleSheetRoot===void 0&&Pe.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Pe.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(le){return le(new xn(de))})},be.prototype.render=function(){return Xe(this,void 0,void 0,function(){var de;return Ht(this,function(le){switch(le.label){case 0:return this.setCurrentMarker(),(de=new Me).naturalSize=this.renderAtNaturalSize,de.imageType=this.renderImageType,de.imageQuality=this.renderImageQuality,de.markersOnly=this.renderMarkersOnly,de.width=this.renderWidth,de.height=this.renderHeight,[4,de.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return le.sent(),[4,de.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,le.sent()]}})})},be.prototype.close=function(de){var le=this;if(de===void 0&&(de=!1),this.isOpen){var ye=!1;de||this.eventListeners.beforeclose.forEach(function(Ie){var he=new xn(le,!0);Ie(he),he.defaultPrevented&&(ye=!0)}),ye||(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(Ie){return Ie(new xn(le))}),this.detachEvents(),this._isOpen=!1)}},be.prototype.addMarkersToToolbar=function(){for(var de,le=[],ye=0;ye<arguments.length;ye++)le[ye]=arguments[ye];(de=this._availableMarkerTypes).push.apply(de,le)},be.prototype.addRenderEventListener=function(de){this.addEventListener("render",function(le){de(le.dataUrl,le.state)})},be.prototype.removeRenderEventListener=function(de){},be.prototype.addCloseEventListener=function(de){this.addEventListener("close",function(){de()})},be.prototype.removeCloseEventListener=function(de){},be.prototype.setupResizeObserver=function(){var de=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){de.resize(de.target.clientWidth,de.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return de.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},be.prototype.onPopupTargetResize=function(){var de=1*this.target.clientWidth/this.target.clientHeight,le=this.editorCanvas.clientWidth/de>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*de:this.editorCanvas.clientWidth,ye=le<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/de;this.resize(le,ye)},be.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},be.prototype.resize=function(de,le){this._isResizing=!0;var ye=de/this.imageWidth,Ie=le/this.imageHeight;this.imageWidth=Math.round(de),this.imageHeight=Math.round(le),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px",this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.settings.displayMode!=="popup"?this.coverDiv.style.width=this.imageWidth.toString()+"px":(this.setTopLeft(),this.positionMarkerImage()),this.toolbar!==void 0&&this.toolbar.adjustLayout(),this.positionLogo(),this.scaleMarkers(ye,Ie),this._isResizing=!1},be.prototype.scaleMarkers=function(de,le){var ye,Ie=this;this._currentMarker&&this._currentMarker instanceof wt?this._currentMarker.scale(de,le):(ye=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(he){he!==Ie._currentMarker&&he.scale(de,le)}),ye!==void 0&&this.setCurrentMarker(ye)},be.prototype.setEditingTarget=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px"},be.prototype.setTopLeft=function(){var de=this.editingTarget.getBoundingClientRect(),le=this.editorCanvas.getBoundingClientRect();this.left=de.left-le.left,this.top=de.top-le.top},be.prototype.initMarkerCanvas=function(){this.markerImageHolder=document.createElement("div"),this.markerImageHolder.style.setProperty("touch-action","pinch-zoom"),this.markerImage=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.markerImage.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImage.style.pointerEvents="auto",this.markerImageHolder.style.position="absolute",this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.markerImageHolder.style.transformOrigin="top left",this.positionMarkerImage(),this.markerImageHolder.appendChild(this.markerImage),this.editorCanvas.appendChild(this.markerImageHolder)},be.prototype.addDefs=function(){for(var de,le=[],ye=0;ye<arguments.length;ye++)le[ye]=arguments[ye];this.defs=at.createDefs(),this.addDefsToImage(),(de=this.defs).append.apply(de,le)},be.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},be.prototype.initOverlay=function(){this.overlayContainer=document.createElement("div"),this.overlayContainer.style.position="absolute",this.overlayContainer.style.left="0px",this.overlayContainer.style.top="0px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.overlayContainer.style.display="flex",this.markerImageHolder.appendChild(this.overlayContainer)},be.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},be.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},be.prototype.attachWindowEvents=function(){window.addEventListener("pointermove",this.onPointerMove),window.addEventListener("pointerup",this.onPointerUp),window.addEventListener("pointercancel",this.onPointerOut),window.addEventListener("pointerout",this.onPointerOut),window.addEventListener("pointerleave",this.onPointerUp),window.addEventListener("resize",this.onWindowResize),window.addEventListener("keyup",this.onKeyUp)},be.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},be.prototype.detachWindowEvents=function(){window.removeEventListener("pointermove",this.onPointerMove),window.removeEventListener("pointerup",this.onPointerUp),window.removeEventListener("pointercancel",this.onPointerOut),window.removeEventListener("pointerout",this.onPointerOut),window.removeEventListener("pointerleave",this.onPointerUp),window.removeEventListener("resize",this.onWindowResize),window.removeEventListener("keyup",this.onKeyUp)},be.prototype.addLogo=function(){this.logoUI=document.createElement("div"),this.logoUI.style.display="inline-block",this.logoUI.style.margin="0px",this.logoUI.style.padding="0px",this.logoUI.style.fill="#333333";var de=document.createElement("a");de.href="https://markerjs.com/",de.target="_blank",de.innerHTML='<svg viewBox="0 0 112 96" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path fill="#e5f20d" fill-opacity=".647" d="M0 40.386h111.96V95.62H0z"/><path d="M93.61 61.452c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.591 1.048-1.481 0-2.222-.74-2.222-2.22 0-16.617-.533-29.347-1.604-38.192-1.068-8.842-2.92-13.265-5.552-13.265-4.443 0-10.94 15.509-19.497 46.52v.124c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.592 1.048-1.48 0-2.22-.74-2.22-2.22 0-3.29.165-8.392.493-15.302.33-7.732.494-13.82.494-18.262 0-6.17-.186-10.55-.556-13.142-.37-2.591-1.172-3.887-2.406-3.887-2.796 0-6.333 5.12-10.612 15.363C38.494 34.367 34.01 46.44 29.32 60.34l-1.11 3.209a5.714 5.714 0 01-1.42 2.097c-.617.578-1.295.864-2.036.864-.987 0-1.644-.081-1.974-.247-.328-.162-.533-.656-.617-1.48-.41-4.03-.74-9.418-.987-16.165-.163-1.728-.329-4.566-.494-8.515-.822-13.901-1.562-23.3-2.221-28.196-.657-4.893-.987-7.628-.987-8.205 0-.657.33-1.44.987-2.345.659-.903 1.276-1.357 1.85-1.357 1.319 0 2.387.947 3.21 2.838.411.906.863 4.526 1.357 10.859.493 6.335.905 14.19 1.233 23.568l.617 18.88c4.527-13.983 9.216-26.673 14.068-38.068C45.65 6.686 50.093.988 54.123.988c2.715 0 4.566 1.974 5.553 5.923.987 3.949 1.481 9.667 1.481 17.152 0 3.949-.081 9.625-.247 17.029l-.123 5.676c3.373-11.762 6.725-21.634 10.057-29.615 3.331-7.979 6.685-11.97 10.056-11.97 8.475 0 12.71 18.757 12.71 56.269z" fill-rule="nonzero"/></svg>',de.title="Powered by marker.js",de.style.display="grid",de.style.alignItems="center",de.style.justifyItems="center",de.style.padding="3px",de.style.width="20px",de.style.height="20px",this.logoUI.appendChild(de),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},be.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")},be.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"},be.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},be.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 de=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=de+"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 Ve(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.settings.uiOffsetTop===void 0&&this.target.offsetTop<this.styles.settings.toolbarHeight&&(this.editingTarget.style.marginTop=this.target.offsetTop-this.styles.settings.toolbarHeight+"px"),this.editorCanvas.appendChild(this.editingTarget),this.toolbox=new Ke(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},be.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},be.prototype.removeMarker=function(de){this.markerImage.removeChild(de.container),this.markers.indexOf(de)>-1&&this.markers.splice(this.markers.indexOf(de),1),de.dispose()},be.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())},be.prototype.toolbarButtonClicked=function(de,le){if(de==="marker"&&le!==void 0)this.createNewMarker(le);else if(de==="action")switch(le){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()}},be.prototype.deleteSelectedMarker=function(){var de=this;if(this._currentMarker!==void 0){var le=!1;if(this.eventListeners.markerbeforedelete.forEach(function(Ie){var he=new ct(de,de._currentMarker,!0);Ie(he),he.defaultPrevented&&(le=!0)}),!le){var ye=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(Ie){return Ie(new ct(de,ye))})}}},be.prototype.clear=function(){var de=this,le=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(We){var tt=new ct(de,void 0,!0);We(tt),tt.defaultPrevented&&(le=!0)}),!le)){this.setCurrentMarker();for(var ye=function(We){var tt=Ie.markers[We];Ie.setCurrentMarker(Ie.markers[We]),Ie._currentMarker.dispose(),Ie.markerImage.removeChild(Ie._currentMarker.container),Ie.markers.splice(Ie.markers.indexOf(Ie._currentMarker),1),Ie.eventListeners.markerdelete.forEach(function(dn){return dn(new ct(de,tt))})},Ie=this,he=this.markers.length-1;he>=0;he--)ye(he);this.addUndoStep()}},Object.defineProperty(be.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),be.prototype.showNotesEditor=function(){var de;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=(de=this._currentMarker.notes)!==null&&de!==void 0?de:"",this.overlayContainer.appendChild(this.notesArea))},be.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)},be.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},be.prototype.addUndoStep=function(){var de=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var le=this.getState(),ye=this.undoRedoManager.getLastUndoStep();if(!ye||ye.width===le.width&&ye.height===le.height){var Ie=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(le),Ie<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(he){return he(new xn(de))})}else this.undoRedoManager.replaceLastUndoStep(le),this.eventListeners.statechange.forEach(function(he){return he(new xn(de))})}},be.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},be.prototype.undoStep=function(){var de=this,le=this.undoRedoManager.undo();le!==void 0&&(this.restoreState(le),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(ye){return ye(new xn(de))}))},be.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},be.prototype.redoStep=function(){var de=this,le=this.undoRedoManager.redo();le!==void 0&&(this.restoreState(le),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(ye){return ye(new xn(de))}))},be.prototype.stepZoom=function(){var de=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=de<this.zoomSteps.length-1?this.zoomSteps[de+1]:this.zoomSteps[0]},be.prototype.panTo=function(de){this.contentDiv.scrollBy({left:this.prevPanPoint.x-de.x,top:this.prevPanPoint.y-de.y}),this.prevPanPoint=de},be.prototype.startRenderAndClose=function(){return Xe(this,void 0,void 0,function(){var de,le,ye=this;return Ht(this,function(Ie){switch(Ie.label){case 0:return[4,this.render()];case 1:return de=Ie.sent(),le=this.getState(),this.eventListeners.render.forEach(function(he){return he(new Wn(ye,de,le))}),this.close(!0),[2]}})})},be.prototype.getState=function(de){de===!0&&this.setCurrentMarker();var le={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(ye){return le.markers.push(ye.getState())}),le},be.prototype.restoreState=function(de){var le=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);de.markers.forEach(function(ye){var Ie=le._availableMarkerTypes.find(function(We){return We.typeName===ye.typeName});if(Ie!==void 0){var he=le.addNewMarker(Ie);he.restoreState(ye),le.markers.push(he)}}),de.width&&de.height&&(de.width!==this.imageWidth||de.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/de.width,this.imageHeight/de.height),this.eventListeners.restorestate.forEach(function(ye){return ye(new xn(le))})},be.prototype.addNewMarker=function(de){var le=at.createGroup();return this.markerImage.appendChild(le),new de(le,this.overlayContainer,this.settings)},be.prototype.createNewMarker=function(de){var le,ye=this;(le=typeof de=="string"?this._availableMarkerTypes.find(function(Ie){return Ie.typeName===de}):de)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(le),this._currentMarker.onMarkerCreated=this.markerCreated,this._currentMarker.onColorChanged=this.colorChanged,this._currentMarker.onFillColorChanged=this.fillColorChanged,this._currentMarker.onStateChanged=this.markerStateChanged,this.markerImage.style.cursor="crosshair",this.toolbar.setActiveMarkerButton(le.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(Ie){return Ie(new ct(ye,ye._currentMarker))}))},be.prototype.markerCreated=function(de){var le=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(de),this.setCurrentMarker(de),de instanceof lt&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(lt):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(ye){return ye(new ct(le,le._currentMarker))})},be.prototype.colorChanged=function(de){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=de,this.settings.defaultStrokeColor=de)},be.prototype.fillColorChanged=function(de){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=de)},be.prototype.markerStateChanged=function(de){var le=this;this.eventListeners.markerchange.forEach(function(ye){return ye(new ct(le,de))})},be.prototype.setCurrentMarker=function(de){var le=this;this._currentMarker!==de&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(ye){return ye(new ct(le,le._currentMarker))})),this._currentMarker=de,this._currentMarker===void 0||this._currentMarker.isSelected||(this._currentMarker.state!=="new"&&this._currentMarker.select(),this.toolbar.setCurrentMarker(this._currentMarker),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this._isResizing||this.eventListeners.markerselect.forEach(function(ye){return ye(new ct(le,le._currentMarker))}))},be.prototype.onPointerDown=function(de){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||de.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var le=this.markers.find(function(ye){return ye.ownsTarget(de.target)});le!==void 0?(this.setCurrentMarker(le),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(de.clientX,de.clientY),de.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:de.clientX,y:de.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(de.clientX,de.clientY))},be.prototype.onDblClick=function(de){if(this._isFocused||this.focus(),this.mode==="select"){var le=this.markers.find(function(ye){return ye.ownsTarget(de.target)});le!==void 0&&le!==this._currentMarker&&this.setCurrentMarker(le),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(de.clientX,de.clientY),de.target):this.setCurrentMarker()}},be.prototype.onPointerMove=function(de){this.touchPoints!==1&&de.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||de.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(de.clientX,de.clientY)):this.zoomLevel>1&&this.panTo({x:de.clientX,y:de.clientY}))},be.prototype.onPointerUp=function(de){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(de.clientX,de.clientY)),this.isDragging=!1,this.addUndoStep()},be.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},be.prototype.onKeyUp=function(de){this._currentMarker===void 0||this.notesArea!==void 0||de.key!=="Delete"&&de.key!=="Backspace"||this.deleteSelectedMarker()},be.prototype.clientToLocalCoordinates=function(de,le){var ye=this.markerImage.getBoundingClientRect();return{x:(de-ye.left)/this.zoomLevel,y:(le-ye.top)/this.zoomLevel}},be.prototype.onWindowResize=function(){this.positionUI()},be.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var de=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=de+"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()},be.prototype.addLicenseKey=function(de){Dt.addKey(de)},be.prototype.addEventListener=function(de,le){this.eventListeners.addEventListener(de,le)},be.prototype.removeEventListener=function(de,le){this.eventListeners.removeEventListener(de,le)},be.prototype.renderState=function(de){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(de),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(be.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),be.prototype.focus=function(){var de=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(le){return le(new xn(de))}))},be.prototype.blur=function(){var de=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(le){return le(new xn(de))}))},be.instanceCounter=0,be}()},6551:function(gr,zn,pe){"use strict";pe.d(zn,{ZP:function(){return Dt}});var oe=pe(72190),qt=pe(59301),Xe=pe(47273),Ht=0,rt=(0,Xe.Z)();function at(){var Me;return rt?(Me=Ht,Ht+=1):Me="TEST_OR_SSR",Me}function Dt(Me){var Pe=qt.useState(),ce=(0,oe.Z)(Pe,2),ke=ce[0],Le=ce[1];return qt.useEffect(function(){Le("rc_select_".concat(at()))},[]),Me||ke}},37463:function(gr,zn,pe){"use strict";pe.d(zn,{Ac:function(){return un},Xo:function(){return Xn},Wx:function(){return An},ZP:function(){return wr},lk:function(){return Bt}});var oe=pe(60499),qt=pe(77654),Xe=pe(18642),Ht=pe(85899),rt=pe(72190),at=pe(42244),Dt=pe(43749),Me=pe(18929),Pe=pe(48736),ce=pe(59301),ke=pe(92310),Le=pe.n(ke),Ve=pe(34280),Ke=pe(49658),He=pe(8654),Ge=function(Vt){var ot=Vt.className,kt=Vt.customizeIcon,ft=Vt.customizeIconProps,Gt=Vt.children,Fn=Vt.onMouseDown,xr=Vt.onClick,Or=typeof kt=="function"?kt(ft):kt;return ce.createElement("span",{className:ot,onMouseDown:function(dr){dr.preventDefault(),Fn==null||Fn(dr)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:xr,"aria-hidden":!0},Or!==void 0?Or:ce.createElement("span",{className:Le()(ot.split(/\s+/).map(function(kr){return"".concat(kr,"-icon")}))},Gt))},ze=Ge,qe=function(Vt,ot,kt,ft,Gt){var Fn=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,xr=arguments.length>6?arguments[6]:void 0,Or=arguments.length>7?arguments[7]:void 0,kr=ce.useMemo(function(){if((0,Dt.Z)(ft)==="object")return ft.clearIcon;if(Gt)return Gt},[ft,Gt]),dr=ce.useMemo(function(){return!!(!Fn&&ft&&(kt.length||xr)&&!(Or==="combobox"&&xr===""))},[ft,Fn,kt.length,xr,Or]);return{allowClear:dr,clearIcon:ce.createElement(ze,{className:"".concat(Vt,"-clear"),onMouseDown:ot,customizeIcon:kr},"\xD7")}},pt=ce.createContext(null);function Bt(){return ce.useContext(pt)}function vt(){var Lt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Vt=ce.useState(!1),ot=(0,rt.Z)(Vt,2),kt=ot[0],ft=ot[1],Gt=ce.useRef(null),Fn=function(){window.clearTimeout(Gt.current)};ce.useEffect(function(){return Fn},[]);var xr=function(kr,dr){Fn(),Gt.current=window.setTimeout(function(){ft(kr),dr&&dr()},Lt)};return[kt,xr,Fn]}function yt(){var Lt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Vt=ce.useRef(null),ot=ce.useRef(null);ce.useEffect(function(){return function(){window.clearTimeout(ot.current)}},[]);function kt(ft){(ft||Vt.current===null)&&(Vt.current=ft),window.clearTimeout(ot.current),ot.current=window.setTimeout(function(){Vt.current=null},Lt)}return[function(){return Vt.current},kt]}function Nt(Lt,Vt,ot,kt){var ft=ce.useRef(null);ft.current={open:Vt,triggerOpen:ot,customizedTrigger:kt},ce.useEffect(function(){function Gt(Fn){var xr;if(!((xr=ft.current)!==null&&xr!==void 0&&xr.customizedTrigger)){var Or=Fn.target;Or.shadowRoot&&Fn.composed&&(Or=Fn.composedPath()[0]||Or),ft.current.open&&Lt().filter(function(kr){return kr}).every(function(kr){return!kr.contains(Or)&&kr!==Or})&&ft.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Gt),function(){return window.removeEventListener("mousedown",Gt)}},[])}var Et=pe(10228);function pn(Lt){return Lt&&![Et.Z.ESC,Et.Z.SHIFT,Et.Z.BACKSPACE,Et.Z.TAB,Et.Z.WIN_KEY,Et.Z.ALT,Et.Z.META,Et.Z.WIN_KEY_RIGHT,Et.Z.CTRL,Et.Z.SEMICOLON,Et.Z.EQUALS,Et.Z.CAPS_LOCK,Et.Z.CONTEXT_MENU,Et.Z.F1,Et.Z.F2,Et.Z.F3,Et.Z.F4,Et.Z.F5,Et.Z.F6,Et.Z.F7,Et.Z.F8,Et.Z.F9,Et.Z.F10,Et.Z.F11,Et.Z.F12].includes(Lt)}var Pt=pe(26112),St=pe(83836);function jt(Lt,Vt,ot){var kt=(0,Ht.Z)((0,Ht.Z)({},Lt),ot?Vt:{});return Object.keys(Vt).forEach(function(ft){var Gt=Vt[ft];typeof Gt=="function"&&(kt[ft]=function(){for(var Fn,xr=arguments.length,Or=new Array(xr),kr=0;kr<xr;kr++)Or[kr]=arguments[kr];return Gt.apply(void 0,Or),(Fn=Lt[ft])===null||Fn===void 0?void 0:Fn.call.apply(Fn,[Lt].concat(Or))})}),kt}var Je=jt,wt=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],lt=function(Vt,ot){var kt=Vt.prefixCls,ft=Vt.id,Gt=Vt.inputElement,Fn=Vt.autoFocus,xr=Vt.autoComplete,Or=Vt.editable,kr=Vt.activeDescendantId,dr=Vt.value,Zn=Vt.open,Mn=Vt.attrs,Ur=(0,at.Z)(Vt,wt),si=Gt||ce.createElement("input",null),ei=si,Ai=ei.ref,Ki=ei.props;return(0,Pe.Kp)(!("maxLength"in si.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),si=ce.cloneElement(si,(0,Ht.Z)((0,Ht.Z)((0,Ht.Z)({type:"search"},Je(Ur,Ki,!0)),{},{id:ft,ref:(0,He.sQ)(ot,Ai),autoComplete:xr||"off",autoFocus:Fn,className:Le()("".concat(kt,"-selection-search-input"),Ki==null?void 0:Ki.className),role:"combobox","aria-expanded":Zn||!1,"aria-haspopup":"listbox","aria-owns":"".concat(ft,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(ft,"_list"),"aria-activedescendant":Zn?kr:void 0},Mn),{},{value:Or?dr:"",readOnly:!Or,unselectable:Or?null:"on",style:(0,Ht.Z)((0,Ht.Z)({},Ki.style),{},{opacity:Or?null:0})})),si},Fe=ce.forwardRef(lt),Zt=Fe;function $e(Lt){return Array.isArray(Lt)?Lt:Lt!==void 0?[Lt]:[]}var At=typeof window!="undefined"&&window.document&&window.document.documentElement,Qt=At;function Te(Lt){return Lt!=null}function xe(Lt){return!Lt&&Lt!==0}function It(Lt){return["string","number"].includes((0,Dt.Z)(Lt))}function Cn(Lt){var Vt=void 0;return Lt&&(It(Lt.title)?Vt=Lt.title.toString():It(Lt.label)&&(Vt=Lt.label.toString())),Vt}function mn(Lt,Vt){Qt?ce.useLayoutEffect(Lt,Vt):ce.useEffect(Lt,Vt)}function Ze(Lt){var Vt;return(Vt=Lt.key)!==null&&Vt!==void 0?Vt:Lt.value}var Ct=function(Vt){Vt.preventDefault(),Vt.stopPropagation()},_t=function(Vt){var ot=Vt.id,kt=Vt.prefixCls,ft=Vt.values,Gt=Vt.open,Fn=Vt.searchValue,xr=Vt.autoClearSearchValue,Or=Vt.inputRef,kr=Vt.placeholder,dr=Vt.disabled,Zn=Vt.mode,Mn=Vt.showSearch,Ur=Vt.autoFocus,si=Vt.autoComplete,ei=Vt.activeDescendantId,Ai=Vt.tabIndex,Ki=Vt.removeIcon,Vi=Vt.maxTagCount,eo=Vt.maxTagTextLength,Di=Vt.maxTagPlaceholder,bi=Di===void 0?function(Vr){return"+ ".concat(Vr.length," ...")}:Di,Fi=Vt.tagRender,ki=Vt.onToggleOpen,uo=Vt.onRemove,Zi=Vt.onInputChange,co=Vt.onInputPaste,oo=Vt.onInputKeyDown,Yi=Vt.onInputMouseDown,Xi=Vt.onInputCompositionStart,Oo=Vt.onInputCompositionEnd,go=Vt.onInputBlur,bo=ce.useRef(null),Po=(0,ce.useState)(0),Ho=(0,rt.Z)(Po,2),$i=Ho[0],Bo=Ho[1],Pi=(0,ce.useState)(!1),Ko=(0,rt.Z)(Pi,2),Ua=Ko[0],Oa=Ko[1],Jo="".concat(kt,"-selection"),Vo=Gt||Zn==="multiple"&&xr===!1||Zn==="tags"?Fn:"",qo=Zn==="tags"||Zn==="multiple"&&xr===!1||Mn&&(Gt||Ua);mn(function(){Bo(bo.current.scrollWidth)},[Vo]);var ma=function(Sr,hi,Ii,Fr,zr){return ce.createElement("span",{title:Cn(Sr),className:Le()("".concat(Jo,"-item"),(0,Xe.Z)({},"".concat(Jo,"-item-disabled"),Ii))},ce.createElement("span",{className:"".concat(Jo,"-item-content")},hi),Fr&&ce.createElement(ze,{className:"".concat(Jo,"-item-remove"),onMouseDown:Ct,onClick:zr,customizeIcon:Ki},"\xD7"))},Ma=function(Sr,hi,Ii,Fr,zr,fi){var vi=function(Zo){Ct(Zo),ki(!Gt)};return ce.createElement("span",{onMouseDown:vi},Fi({label:hi,value:Sr,disabled:Ii,closable:Fr,onClose:zr,isMaxTag:!!fi}))},mo=function(Sr){var hi=Sr.disabled,Ii=Sr.label,Fr=Sr.value,zr=!dr&&!hi,fi=Ii;if(typeof eo=="number"&&(typeof Ii=="string"||typeof Ii=="number")){var vi=String(fi);vi.length>eo&&(fi="".concat(vi.slice(0,eo),"..."))}var to=function(Do){Do&&Do.stopPropagation(),uo(Sr)};return typeof Fi=="function"?Ma(Fr,fi,hi,zr,to):ma(Sr,fi,hi,zr,to)},Ti=function(Sr){if(!ft.length)return null;var hi=typeof bi=="function"?bi(Sr):bi;return typeof Fi=="function"?Ma(void 0,hi,!1,!1,void 0,!0):ma({title:hi},hi,!1)},Pr=ce.createElement("div",{className:"".concat(Jo,"-search"),style:{width:$i},onFocus:function(){Oa(!0)},onBlur:function(){Oa(!1)}},ce.createElement(Zt,{ref:Or,open:Gt,prefixCls:kt,id:ot,inputElement:null,disabled:dr,autoFocus:Ur,autoComplete:si,editable:qo,activeDescendantId:ei,value:Vo,onKeyDown:oo,onMouseDown:Yi,onChange:Zi,onPaste:co,onCompositionStart:Xi,onCompositionEnd:Oo,onBlur:go,tabIndex:Ai,attrs:(0,Pt.Z)(Vt,!0)}),ce.createElement("span",{ref:bo,className:"".concat(Jo,"-search-mirror"),"aria-hidden":!0},Vo,"\xA0")),jr=ce.createElement(St.Z,{prefixCls:"".concat(Jo,"-overflow"),data:ft,renderItem:mo,renderRest:Ti,suffix:Pr,itemKey:Ze,maxCount:Vi});return ce.createElement("span",{className:"".concat(Jo,"-wrap")},jr,!ft.length&&!Vo&&ce.createElement("span",{className:"".concat(Jo,"-placeholder")},kr))},In=_t,xn=function(Vt){var ot=Vt.inputElement,kt=Vt.prefixCls,ft=Vt.id,Gt=Vt.inputRef,Fn=Vt.disabled,xr=Vt.autoFocus,Or=Vt.autoComplete,kr=Vt.activeDescendantId,dr=Vt.mode,Zn=Vt.open,Mn=Vt.values,Ur=Vt.placeholder,si=Vt.tabIndex,ei=Vt.showSearch,Ai=Vt.searchValue,Ki=Vt.activeValue,Vi=Vt.maxLength,eo=Vt.onInputKeyDown,Di=Vt.onInputMouseDown,bi=Vt.onInputChange,Fi=Vt.onInputPaste,ki=Vt.onInputCompositionStart,uo=Vt.onInputCompositionEnd,Zi=Vt.onInputBlur,co=Vt.title,oo=ce.useState(!1),Yi=(0,rt.Z)(oo,2),Xi=Yi[0],Oo=Yi[1],go=dr==="combobox",bo=go||ei,Po=Mn[0],Ho=Ai||"";go&&Ki&&!Xi&&(Ho=Ki),ce.useEffect(function(){go&&Oo(!1)},[go,Ki]);var $i=dr!=="combobox"&&!Zn&&!ei?!1:!!Ho,Bo=co===void 0?Cn(Po):co,Pi=ce.useMemo(function(){return Po?null:ce.createElement("span",{className:"".concat(kt,"-selection-placeholder"),style:$i?{visibility:"hidden"}:void 0},Ur)},[Po,$i,Ur,kt]);return ce.createElement("span",{className:"".concat(kt,"-selection-wrap")},ce.createElement("span",{className:"".concat(kt,"-selection-search")},ce.createElement(Zt,{ref:Gt,prefixCls:kt,id:ft,open:Zn,inputElement:ot,disabled:Fn,autoFocus:xr,autoComplete:Or,editable:bo,activeDescendantId:kr,value:Ho,onKeyDown:eo,onMouseDown:Di,onChange:function(Ua){Oo(!0),bi(Ua)},onPaste:Fi,onCompositionStart:ki,onCompositionEnd:uo,onBlur:Zi,tabIndex:si,attrs:(0,Pt.Z)(Vt,!0),maxLength:go?Vi:void 0})),!go&&Po?ce.createElement("span",{className:"".concat(kt,"-selection-item"),title:Bo,style:$i?{visibility:"hidden"}:void 0},Po.label):null,Pi)},Wn=xn,ct=function(Vt,ot){var kt=(0,ce.useRef)(null),ft=(0,ce.useRef)(!1),Gt=Vt.prefixCls,Fn=Vt.open,xr=Vt.mode,Or=Vt.showSearch,kr=Vt.tokenWithEnter,dr=Vt.disabled,Zn=Vt.prefix,Mn=Vt.autoClearSearchValue,Ur=Vt.onSearch,si=Vt.onSearchSubmit,ei=Vt.onToggleOpen,Ai=Vt.onInputKeyDown,Ki=Vt.onInputBlur,Vi=Vt.domRef;ce.useImperativeHandle(ot,function(){return{focus:function(Bo){kt.current.focus(Bo)},blur:function(){kt.current.blur()}}});var eo=yt(0),Di=(0,rt.Z)(eo,2),bi=Di[0],Fi=Di[1],ki=function(Bo){var Pi=Bo.which,Ko=kt.current instanceof HTMLTextAreaElement;!Ko&&Fn&&(Pi===Et.Z.UP||Pi===Et.Z.DOWN)&&Bo.preventDefault(),Ai&&Ai(Bo),Pi===Et.Z.ENTER&&xr==="tags"&&!ft.current&&!Fn&&(si==null||si(Bo.target.value)),!(Ko&&!Fn&&~[Et.Z.UP,Et.Z.DOWN,Et.Z.LEFT,Et.Z.RIGHT].indexOf(Pi))&&pn(Pi)&&ei(!0)},uo=function(){Fi(!0)},Zi=(0,ce.useRef)(null),co=function(Bo){Ur(Bo,!0,ft.current)!==!1&&ei(!0)},oo=function(){ft.current=!0},Yi=function(Bo){ft.current=!1,xr!=="combobox"&&co(Bo.target.value)},Xi=function(Bo){var Pi=Bo.target.value;if(kr&&Zi.current&&/[\r\n]/.test(Zi.current)){var Ko=Zi.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Pi=Pi.replace(Ko,Zi.current)}Zi.current=null,co(Pi)},Oo=function(Bo){var Pi=Bo.clipboardData,Ko=Pi==null?void 0:Pi.getData("text");Zi.current=Ko||""},go=function(Bo){var Pi=Bo.target;if(Pi!==kt.current){var Ko=document.body.style.msTouchAction!==void 0;Ko?setTimeout(function(){kt.current.focus()}):kt.current.focus()}},bo=function(Bo){var Pi=bi();Bo.target!==kt.current&&!Pi&&!(xr==="combobox"&&dr)&&Bo.preventDefault(),(xr!=="combobox"&&(!Or||!Pi)||!Fn)&&(Fn&&Mn!==!1&&Ur("",!0,!1),ei())},Po={inputRef:kt,onInputKeyDown:ki,onInputMouseDown:uo,onInputChange:Xi,onInputPaste:Oo,onInputCompositionStart:oo,onInputCompositionEnd:Yi,onInputBlur:Ki},Ho=xr==="multiple"||xr==="tags"?ce.createElement(In,(0,oe.Z)({},Vt,Po)):ce.createElement(Wn,(0,oe.Z)({},Vt,Po));return ce.createElement("div",{ref:Vi,className:"".concat(Gt,"-selector"),onClick:go,onMouseDown:bo},Zn&&ce.createElement("div",{className:"".concat(Gt,"-prefix")},Zn),Ho)},En=ce.forwardRef(ct),Rt=En,be=pe(68196),de=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],le=function(Vt){var ot=Vt===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:ot,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:ot,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:ot,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:ot,adjustY:1},htmlRegion:"scroll"}}},ye=function(Vt,ot){var kt=Vt.prefixCls,ft=Vt.disabled,Gt=Vt.visible,Fn=Vt.children,xr=Vt.popupElement,Or=Vt.animation,kr=Vt.transitionName,dr=Vt.dropdownStyle,Zn=Vt.dropdownClassName,Mn=Vt.direction,Ur=Mn===void 0?"ltr":Mn,si=Vt.placement,ei=Vt.builtinPlacements,Ai=Vt.dropdownMatchSelectWidth,Ki=Vt.dropdownRender,Vi=Vt.dropdownAlign,eo=Vt.getPopupContainer,Di=Vt.empty,bi=Vt.getTriggerDOMNode,Fi=Vt.onPopupVisibleChange,ki=Vt.onPopupMouseEnter,uo=(0,at.Z)(Vt,de),Zi="".concat(kt,"-dropdown"),co=xr;Ki&&(co=Ki(xr));var oo=ce.useMemo(function(){return ei||le(Ai)},[ei,Ai]),Yi=Or?"".concat(Zi,"-").concat(Or):kr,Xi=typeof Ai=="number",Oo=ce.useMemo(function(){return Xi?null:Ai===!1?"minWidth":"width"},[Ai,Xi]),go=dr;Xi&&(go=(0,Ht.Z)((0,Ht.Z)({},go),{},{width:Ai}));var bo=ce.useRef(null);return ce.useImperativeHandle(ot,function(){return{getPopupElement:function(){var Ho;return(Ho=bo.current)===null||Ho===void 0?void 0:Ho.popupElement}}}),ce.createElement(be.Z,(0,oe.Z)({},uo,{showAction:Fi?["click"]:[],hideAction:Fi?["click"]:[],popupPlacement:si||(Ur==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:oo,prefixCls:Zi,popupTransitionName:Yi,popup:ce.createElement("div",{onMouseEnter:ki},co),ref:bo,stretch:Oo,popupAlign:Vi,popupVisible:Gt,getPopupContainer:eo,popupClassName:Le()(Zn,(0,Xe.Z)({},"".concat(Zi,"-empty"),Di)),popupStyle:go,getTriggerDOMNode:bi,onPopupVisibleChange:Fi}),Fn)},Ie=ce.forwardRef(ye),he=Ie,We=pe(48745);function tt(Lt,Vt){var ot=Lt.key,kt;return"value"in Lt&&(kt=Lt.value),ot!=null?ot:kt!==void 0?kt:"rc-index-key-".concat(Vt)}function dn(Lt){return typeof Lt!="undefined"&&!Number.isNaN(Lt)}function ut(Lt,Vt){var ot=Lt||{},kt=ot.label,ft=ot.value,Gt=ot.options,Fn=ot.groupLabel,xr=kt||(Vt?"children":"label");return{label:xr,value:ft||"value",options:Gt||"options",groupLabel:Fn||xr}}function zt(Lt){var Vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ot=Vt.fieldNames,kt=Vt.childrenAsData,ft=[],Gt=ut(ot,!1),Fn=Gt.label,xr=Gt.value,Or=Gt.options,kr=Gt.groupLabel;function dr(Zn,Mn){Array.isArray(Zn)&&Zn.forEach(function(Ur){if(Mn||!(Or in Ur)){var si=Ur[xr];ft.push({key:tt(Ur,ft.length),groupOption:Mn,data:Ur,label:Ur[Fn],value:si})}else{var ei=Ur[kr];ei===void 0&&kt&&(ei=Ur.label),ft.push({key:tt(Ur,ft.length),group:!0,data:Ur,label:ei}),dr(Ur[Or],!0)}})}return dr(Lt,!1),ft}function en(Lt){var Vt=(0,Ht.Z)({},Lt);return"props"in Vt||Object.defineProperty(Vt,"props",{get:function(){return(0,Pe.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Vt}}),Vt}var Sn=function(Vt,ot,kt){if(!ot||!ot.length)return null;var ft=!1,Gt=function xr(Or,kr){var dr=(0,We.Z)(kr),Zn=dr[0],Mn=dr.slice(1);if(!Zn)return[Or];var Ur=Or.split(Zn);return ft=ft||Ur.length>1,Ur.reduce(function(si,ei){return[].concat((0,qt.Z)(si),(0,qt.Z)(xr(ei,Mn)))},[]).filter(Boolean)},Fn=Gt(Vt,ot);return ft?typeof kt!="undefined"?Fn.slice(0,kt):Fn:null},yn=ce.createContext(null),ar=yn;function Mt(Lt){var Vt=Lt.visible,ot=Lt.values;if(!Vt)return null;var kt=50;return ce.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(ot.slice(0,kt).map(function(ft){var Gt=ft.label,Fn=ft.value;return["number","string"].includes((0,Dt.Z)(Gt))?Gt:Fn}).join(", ")),ot.length>kt?", ...":null)}var nn=["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"],ln=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Un=function(Vt){return Vt==="tags"||Vt==="multiple"},Nn=ce.forwardRef(function(Lt,Vt){var ot,kt=Lt.id,ft=Lt.prefixCls,Gt=Lt.className,Fn=Lt.showSearch,xr=Lt.tagRender,Or=Lt.direction,kr=Lt.omitDomProps,dr=Lt.displayValues,Zn=Lt.onDisplayValuesChange,Mn=Lt.emptyOptions,Ur=Lt.notFoundContent,si=Ur===void 0?"Not Found":Ur,ei=Lt.onClear,Ai=Lt.mode,Ki=Lt.disabled,Vi=Lt.loading,eo=Lt.getInputElement,Di=Lt.getRawInputElement,bi=Lt.open,Fi=Lt.defaultOpen,ki=Lt.onDropdownVisibleChange,uo=Lt.activeValue,Zi=Lt.onActiveValueChange,co=Lt.activeDescendantId,oo=Lt.searchValue,Yi=Lt.autoClearSearchValue,Xi=Lt.onSearch,Oo=Lt.onSearchSplit,go=Lt.tokenSeparators,bo=Lt.allowClear,Po=Lt.prefix,Ho=Lt.suffixIcon,$i=Lt.clearIcon,Bo=Lt.OptionList,Pi=Lt.animation,Ko=Lt.transitionName,Ua=Lt.dropdownStyle,Oa=Lt.dropdownClassName,Jo=Lt.dropdownMatchSelectWidth,Vo=Lt.dropdownRender,qo=Lt.dropdownAlign,ma=Lt.placement,Ma=Lt.builtinPlacements,mo=Lt.getPopupContainer,Ti=Lt.showAction,Pr=Ti===void 0?[]:Ti,jr=Lt.onFocus,Vr=Lt.onBlur,Sr=Lt.onKeyUp,hi=Lt.onKeyDown,Ii=Lt.onMouseDown,Fr=(0,at.Z)(Lt,nn),zr=Un(Ai),fi=(Fn!==void 0?Fn:zr)||Ai==="combobox",vi=(0,Ht.Z)({},Fr);ln.forEach(function(Co){delete vi[Co]}),kr==null||kr.forEach(function(Co){delete vi[Co]});var to=ce.useState(!1),Zo=(0,rt.Z)(to,2),Do=Zo[0],ra=Zo[1];ce.useEffect(function(){ra((0,Ke.Z)())},[]);var ea=ce.useRef(null),va=ce.useRef(null),Aa=ce.useRef(null),Ro=ce.useRef(null),Ia=ce.useRef(null),qa=ce.useRef(!1),mA=vt(),EA=(0,rt.Z)(mA,3),qs=EA[0],eA=EA[1],Bl=EA[2];ce.useImperativeHandle(Vt,function(){var Co,Lo;return{focus:(Co=Ro.current)===null||Co===void 0?void 0:Co.focus,blur:(Lo=Ro.current)===null||Lo===void 0?void 0:Lo.blur,scrollTo:function(sA){var us;return(us=Ia.current)===null||us===void 0?void 0:us.scrollTo(sA)},nativeElement:ea.current||va.current}});var ya=ce.useMemo(function(){var Co;if(Ai!=="combobox")return oo;var Lo=(Co=dr[0])===null||Co===void 0?void 0:Co.value;return typeof Lo=="string"||typeof Lo=="number"?String(Lo):""},[oo,Ai,dr]),Cl=Ai==="combobox"&&typeof eo=="function"&&eo()||null,ws=typeof Di=="function"&&Di(),tA=(0,He.x1)(va,ws==null||(ot=ws.props)===null||ot===void 0?void 0:ot.ref),bs=ce.useState(!1),Ts=(0,rt.Z)(bs,2),nA=Ts[0],vA=Ts[1];(0,Ve.Z)(function(){vA(!0)},[]);var es=(0,Me.Z)(!1,{defaultValue:Fi,value:bi}),ZA=(0,rt.Z)(es,2),mu=ZA[0],ul=ZA[1],ps=nA?mu:!1,vu=!si&&Mn;(Ki||vu&&ps&&Ai==="combobox")&&(ps=!1);var kl=vu?!1:ps,io=ce.useCallback(function(Co){var Lo=Co!==void 0?Co:!ps;Ki||(ul(Lo),ps!==Lo&&(ki==null||ki(Lo)))},[Ki,ps,ul,ki]),So=ce.useMemo(function(){return(go||[]).some(function(Co){return[`
|
|
|
`,`\r
|
|
|
`].includes(Co)})},[go]),vo=ce.useContext(ar)||{},Eo=vo.maxCount,la=vo.rawValues,Da=function(Lo,xa,sA){if(!(zr&&dn(Eo)&&(la==null?void 0:la.size)>=Eo)){var us=!0,fs=Lo;Zi==null||Zi(null);var fl=Sn(Lo,go,dn(Eo)?Eo-la.size:void 0),SA=sA?null:fl;return Ai!=="combobox"&&SA&&(fs="",Oo==null||Oo(SA),io(!1),us=!1),Xi&&ya!==fs&&Xi(fs,{source:xa?"typing":"effect"}),us}},ua=function(Lo){!Lo||!Lo.trim()||Xi(Lo,{source:"submit"})};ce.useEffect(function(){!ps&&!zr&&Ai!=="combobox"&&Da("",!1,!1)},[ps]),ce.useEffect(function(){mu&&Ki&&ul(!1),Ki&&!qa.current&&eA(!1)},[Ki]);var rA=yt(),Is=(0,rt.Z)(rA,2),ls=Is[0],iA=Is[1],Qs=ce.useRef(!1),_A=function(Lo){var xa=ls(),sA=Lo.key,us=sA==="Enter";if(us&&(Ai!=="combobox"&&Lo.preventDefault(),ps||io(!0)),iA(!!ya),sA==="Backspace"&&!xa&&zr&&!ya&&dr.length){for(var fs=(0,qt.Z)(dr),fl=null,SA=fs.length-1;SA>=0;SA-=1){var Vl=fs[SA];if(!Vl.disabled){fs.splice(SA,1),fl=Vl;break}}fl&&Zn(fs,{type:"remove",values:[fl]})}for(var cs=arguments.length,FA=new Array(cs>1?cs-1:0),El=1;El<cs;El++)FA[El-1]=arguments[El];if(ps&&(!us||!Qs.current)){var Sl;us&&(Qs.current=!0),(Sl=Ia.current)===null||Sl===void 0||Sl.onKeyDown.apply(Sl,[Lo].concat(FA))}hi==null||hi.apply(void 0,[Lo].concat(FA))},oA=function(Lo){for(var xa=arguments.length,sA=new Array(xa>1?xa-1:0),us=1;us<xa;us++)sA[us-1]=arguments[us];if(ps){var fs;(fs=Ia.current)===null||fs===void 0||fs.onKeyUp.apply(fs,[Lo].concat(sA))}Lo.key==="Enter"&&(Qs.current=!1),Sr==null||Sr.apply(void 0,[Lo].concat(sA))},Za=function(Lo){var xa=dr.filter(function(sA){return sA!==Lo});Zn(xa,{type:"remove",values:[Lo]})},cl=function(){Qs.current=!1},gs=ce.useRef(!1),Af=function(){eA(!0),Ki||(jr&&!gs.current&&jr.apply(void 0,arguments),Pr.includes("focus")&&io(!0)),gs.current=!0},xl=function(){qa.current=!0,eA(!1,function(){gs.current=!1,qa.current=!1,io(!1)}),!Ki&&(ya&&(Ai==="tags"?Xi(ya,{source:"submit"}):Ai==="multiple"&&Xi("",{source:"blur"})),Vr&&Vr.apply(void 0,arguments))},$A=[];ce.useEffect(function(){return function(){$A.forEach(function(Co){return clearTimeout(Co)}),$A.splice(0,$A.length)}},[]);var da=function(Lo){var xa,sA=Lo.target,us=(xa=Aa.current)===null||xa===void 0?void 0:xa.getPopupElement();if(us&&us.contains(sA)){var fs=setTimeout(function(){var cs=$A.indexOf(fs);if(cs!==-1&&$A.splice(cs,1),Bl(),!Do&&!us.contains(document.activeElement)){var FA;(FA=Ro.current)===null||FA===void 0||FA.focus()}});$A.push(fs)}for(var fl=arguments.length,SA=new Array(fl>1?fl-1:0),Vl=1;Vl<fl;Vl++)SA[Vl-1]=arguments[Vl];Ii==null||Ii.apply(void 0,[Lo].concat(SA))},XA=ce.useState({}),lf=(0,rt.Z)(XA,2),rd=lf[1];function Bs(){rd({})}var YA;ws&&(YA=function(Lo){io(Lo)}),Nt(function(){var Co;return[ea.current,(Co=Aa.current)===null||Co===void 0?void 0:Co.getPopupElement()]},kl,io,!!ws);var Hl=ce.useMemo(function(){return(0,Ht.Z)((0,Ht.Z)({},Lt),{},{notFoundContent:si,open:ps,triggerOpen:kl,id:kt,showSearch:fi,multiple:zr,toggleOpen:io})},[Lt,si,kl,ps,kt,fi,zr,io]),Bc=!!Ho||Vi,Ks;Bc&&(Ks=ce.createElement(ze,{className:Le()("".concat(ft,"-arrow"),(0,Xe.Z)({},"".concat(ft,"-arrow-loading"),Vi)),customizeIcon:Ho,customizeIconProps:{loading:Vi,searchValue:ya,open:ps,focused:qs,showSearch:fi}}));var kA=function(){var Lo;ei==null||ei(),(Lo=Ro.current)===null||Lo===void 0||Lo.focus(),Zn([],{type:"clear",values:dr}),Da("",!1,!1)},Ms=qe(ft,kA,dr,bo,$i,Ki,ya,Ai),Cs=Ms.allowClear,_s=Ms.clearIcon,Gu=ce.createElement(Bo,{ref:Ia}),uf=Le()(ft,Gt,(0,Xe.Z)((0,Xe.Z)((0,Xe.Z)((0,Xe.Z)((0,Xe.Z)((0,Xe.Z)((0,Xe.Z)((0,Xe.Z)((0,Xe.Z)((0,Xe.Z)({},"".concat(ft,"-focused"),qs),"".concat(ft,"-multiple"),zr),"".concat(ft,"-single"),!zr),"".concat(ft,"-allow-clear"),bo),"".concat(ft,"-show-arrow"),Bc),"".concat(ft,"-disabled"),Ki),"".concat(ft,"-loading"),Vi),"".concat(ft,"-open"),ps),"".concat(ft,"-customize-input"),Cl),"".concat(ft,"-show-search"),fi)),ks=ce.createElement(he,{ref:Aa,disabled:Ki,prefixCls:ft,visible:kl,popupElement:Gu,animation:Pi,transitionName:Ko,dropdownStyle:Ua,dropdownClassName:Oa,direction:Or,dropdownMatchSelectWidth:Jo,dropdownRender:Vo,dropdownAlign:qo,placement:ma,builtinPlacements:Ma,getPopupContainer:mo,empty:Mn,getTriggerDOMNode:function(Lo){return va.current||Lo},onPopupVisibleChange:YA,onPopupMouseEnter:Bs},ws?ce.cloneElement(ws,{ref:tA}):ce.createElement(Rt,(0,oe.Z)({},Lt,{domRef:va,prefixCls:ft,inputElement:Cl,ref:Ro,id:kt,prefix:Po,showSearch:fi,autoClearSearchValue:Yi,mode:Ai,activeDescendantId:co,tagRender:xr,values:dr,open:ps,onToggleOpen:io,activeValue:uo,searchValue:ya,onSearch:Da,onSearchSubmit:ua,onRemove:Za,tokenWithEnter:So,onInputBlur:cl}))),aA;return ws?aA=ks:aA=ce.createElement("div",(0,oe.Z)({className:uf},vi,{ref:ea,onMouseDown:da,onKeyDown:_A,onKeyUp:oA,onFocus:Af,onBlur:xl}),ce.createElement(Mt,{visible:qs&&!ps,values:dr}),ks,Ks,Cs&&_s),ce.createElement(pt.Provider,{value:Hl},aA)}),un=Nn,ir=function(){return null};ir.isSelectOptGroup=!0;var Xn=ir,Ft=function(){return null};Ft.isSelectOption=!0;var An=Ft,Qn=pe(80547),Jn=pe(2738),nt=pe(48911);function gt(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Kt=["disabled","title","children","style","className"];function vn(Lt){return typeof Lt=="string"||typeof Lt=="number"}var Rn=function(Vt,ot){var kt=Bt(),ft=kt.prefixCls,Gt=kt.id,Fn=kt.open,xr=kt.multiple,Or=kt.mode,kr=kt.searchValue,dr=kt.toggleOpen,Zn=kt.notFoundContent,Mn=kt.onPopupScroll,Ur=ce.useContext(ar),si=Ur.maxCount,ei=Ur.flattenOptions,Ai=Ur.onActiveValue,Ki=Ur.defaultActiveFirstOption,Vi=Ur.onSelect,eo=Ur.menuItemSelectedIcon,Di=Ur.rawValues,bi=Ur.fieldNames,Fi=Ur.virtual,ki=Ur.direction,uo=Ur.listHeight,Zi=Ur.listItemHeight,co=Ur.optionRender,oo="".concat(ft,"-item"),Yi=(0,Qn.Z)(function(){return ei},[Fn,ei],function(Ti,Pr){return Pr[0]&&Ti[1]!==Pr[1]}),Xi=ce.useRef(null),Oo=ce.useMemo(function(){return xr&&dn(si)&&(Di==null?void 0:Di.size)>=si},[xr,si,Di==null?void 0:Di.size]),go=function(Pr){Pr.preventDefault()},bo=function(Pr){var jr;(jr=Xi.current)===null||jr===void 0||jr.scrollTo(typeof Pr=="number"?{index:Pr}:Pr)},Po=ce.useCallback(function(Ti){return Or==="combobox"?!1:Di.has(Ti)},[Or,(0,qt.Z)(Di).toString(),Di.size]),Ho=function(Pr){for(var jr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Vr=Yi.length,Sr=0;Sr<Vr;Sr+=1){var hi=(Pr+Sr*jr+Vr)%Vr,Ii=Yi[hi]||{},Fr=Ii.group,zr=Ii.data;if(!Fr&&!(zr!=null&&zr.disabled)&&(Po(zr.value)||!Oo))return hi}return-1},$i=ce.useState(function(){return Ho(0)}),Bo=(0,rt.Z)($i,2),Pi=Bo[0],Ko=Bo[1],Ua=function(Pr){var jr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Ko(Pr);var Vr={source:jr?"keyboard":"mouse"},Sr=Yi[Pr];if(!Sr){Ai(null,-1,Vr);return}Ai(Sr.value,Pr,Vr)};(0,ce.useEffect)(function(){Ua(Ki!==!1?Ho(0):-1)},[Yi.length,kr]);var Oa=ce.useCallback(function(Ti){return Or==="combobox"?String(Ti).toLowerCase()===kr.toLowerCase():Di.has(Ti)},[Or,kr,(0,qt.Z)(Di).toString(),Di.size]);(0,ce.useEffect)(function(){var Ti=setTimeout(function(){if(!xr&&Fn&&Di.size===1){var jr=Array.from(Di)[0],Vr=Yi.findIndex(function(Sr){var hi=Sr.data;return kr?String(hi.value).startsWith(kr):hi.value===jr});Vr!==-1&&(Ua(Vr),bo(Vr))}});if(Fn){var Pr;(Pr=Xi.current)===null||Pr===void 0||Pr.scrollTo(void 0)}return function(){return clearTimeout(Ti)}},[Fn,kr]);var Jo=function(Pr){Pr!==void 0&&Vi(Pr,{selected:!Di.has(Pr)}),xr||dr(!1)};if(ce.useImperativeHandle(ot,function(){return{onKeyDown:function(Pr){var jr=Pr.which,Vr=Pr.ctrlKey;switch(jr){case Et.Z.N:case Et.Z.P:case Et.Z.UP:case Et.Z.DOWN:{var Sr=0;if(jr===Et.Z.UP?Sr=-1:jr===Et.Z.DOWN?Sr=1:gt()&&Vr&&(jr===Et.Z.N?Sr=1:jr===Et.Z.P&&(Sr=-1)),Sr!==0){var hi=Ho(Pi+Sr,Sr);bo(hi),Ua(hi,!0)}break}case Et.Z.TAB:case Et.Z.ENTER:{var Ii,Fr=Yi[Pi];Fr&&!(Fr!=null&&(Ii=Fr.data)!==null&&Ii!==void 0&&Ii.disabled)&&!Oo?Jo(Fr.value):Jo(void 0),Fn&&Pr.preventDefault();break}case Et.Z.ESC:dr(!1),Fn&&Pr.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Pr){bo(Pr)}}}),Yi.length===0)return ce.createElement("div",{role:"listbox",id:"".concat(Gt,"_list"),className:"".concat(oo,"-empty"),onMouseDown:go},Zn);var Vo=Object.keys(bi).map(function(Ti){return bi[Ti]}),qo=function(Pr){return Pr.label};function ma(Ti,Pr){var jr=Ti.group;return{role:jr?"presentation":"option",id:"".concat(Gt,"_list_").concat(Pr)}}var Ma=function(Pr){var jr=Yi[Pr];if(!jr)return null;var Vr=jr.data||{},Sr=Vr.value,hi=jr.group,Ii=(0,Pt.Z)(Vr,!0),Fr=qo(jr);return jr?ce.createElement("div",(0,oe.Z)({"aria-label":typeof Fr=="string"&&!hi?Fr:null},Ii,{key:Pr},ma(jr,Pr),{"aria-selected":Oa(Sr)}),Sr):null},mo={role:"listbox",id:"".concat(Gt,"_list")};return ce.createElement(ce.Fragment,null,Fi&&ce.createElement("div",(0,oe.Z)({},mo,{style:{height:0,width:0,overflow:"hidden"}}),Ma(Pi-1),Ma(Pi),Ma(Pi+1)),ce.createElement(nt.Z,{itemKey:"key",ref:Xi,data:Yi,height:uo,itemHeight:Zi,fullHeight:!1,onMouseDown:go,onScroll:Mn,virtual:Fi,direction:ki,innerProps:Fi?null:mo},function(Ti,Pr){var jr=Ti.group,Vr=Ti.groupOption,Sr=Ti.data,hi=Ti.label,Ii=Ti.value,Fr=Sr.key;if(jr){var zr,fi=(zr=Sr.title)!==null&&zr!==void 0?zr:vn(hi)?hi.toString():void 0;return ce.createElement("div",{className:Le()(oo,"".concat(oo,"-group"),Sr.className),title:fi},hi!==void 0?hi:Fr)}var vi=Sr.disabled,to=Sr.title,Zo=Sr.children,Do=Sr.style,ra=Sr.className,ea=(0,at.Z)(Sr,Kt),va=(0,Jn.Z)(ea,Vo),Aa=Po(Ii),Ro=vi||!Aa&&Oo,Ia="".concat(oo,"-option"),qa=Le()(oo,Ia,ra,(0,Xe.Z)((0,Xe.Z)((0,Xe.Z)((0,Xe.Z)({},"".concat(Ia,"-grouped"),Vr),"".concat(Ia,"-active"),Pi===Pr&&!Ro),"".concat(Ia,"-disabled"),Ro),"".concat(Ia,"-selected"),Aa)),mA=qo(Ti),EA=!eo||typeof eo=="function"||Aa,qs=typeof mA=="number"?mA:mA||Ii,eA=vn(qs)?qs.toString():void 0;return to!==void 0&&(eA=to),ce.createElement("div",(0,oe.Z)({},(0,Pt.Z)(va),Fi?{}:ma(Ti,Pr),{"aria-selected":Oa(Ii),className:qa,title:eA,onMouseMove:function(){Pi===Pr||Ro||Ua(Pr)},onClick:function(){Ro||Jo(Ii)},style:Do}),ce.createElement("div",{className:"".concat(Ia,"-content")},typeof co=="function"?co(Ti,{index:Pr}):qs),ce.isValidElement(eo)||Aa,EA&&ce.createElement(ze,{className:"".concat(oo,"-option-state"),customizeIcon:eo,customizeIconProps:{value:Ii,disabled:Ro,isSelected:Aa}},Aa?"\u2713":null))}))},hr=ce.forwardRef(Rn),$r=hr,Xr=function(Lt,Vt){var ot=ce.useRef({values:new Map,options:new Map}),kt=ce.useMemo(function(){var Gt=ot.current,Fn=Gt.values,xr=Gt.options,Or=Lt.map(function(Zn){if(Zn.label===void 0){var Mn;return(0,Ht.Z)((0,Ht.Z)({},Zn),{},{label:(Mn=Fn.get(Zn.value))===null||Mn===void 0?void 0:Mn.label})}return Zn}),kr=new Map,dr=new Map;return Or.forEach(function(Zn){kr.set(Zn.value,Zn),dr.set(Zn.value,Vt.get(Zn.value)||xr.get(Zn.value))}),ot.current.values=kr,ot.current.options=dr,Or},[Lt,Vt]),ft=ce.useCallback(function(Gt){return Vt.get(Gt)||ot.current.options.get(Gt)},[Vt]);return[kt,ft]};function vr(Lt,Vt){return $e(Lt).join("").toUpperCase().includes(Vt)}var lr=function(Lt,Vt,ot,kt,ft){return ce.useMemo(function(){if(!ot||kt===!1)return Lt;var Gt=Vt.options,Fn=Vt.label,xr=Vt.value,Or=[],kr=typeof kt=="function",dr=ot.toUpperCase(),Zn=kr?kt:function(Ur,si){return ft?vr(si[ft],dr):si[Gt]?vr(si[Fn!=="children"?Fn:"label"],dr):vr(si[xr],dr)},Mn=kr?function(Ur){return en(Ur)}:function(Ur){return Ur};return Lt.forEach(function(Ur){if(Ur[Gt]){var si=Zn(ot,Mn(Ur));if(si)Or.push(Ur);else{var ei=Ur[Gt].filter(function(Ai){return Zn(ot,Mn(Ai))});ei.length&&Or.push((0,Ht.Z)((0,Ht.Z)({},Ur),{},(0,Xe.Z)({},Gt,ei)))}return}Zn(ot,Mn(Ur))&&Or.push(Ur)}),Or},[Lt,kt,ft,ot,Vt])},Dr=pe(6551),rr=pe(11592),Tn=["children","value"],_n=["children"];function Ln(Lt){var Vt=Lt,ot=Vt.key,kt=Vt.props,ft=kt.children,Gt=kt.value,Fn=(0,at.Z)(kt,Tn);return(0,Ht.Z)({key:ot,value:Gt!==void 0?Gt:ot,children:ft},Fn)}function mr(Lt){var Vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,rr.Z)(Lt).map(function(ot,kt){if(!ce.isValidElement(ot)||!ot.type)return null;var ft=ot,Gt=ft.type.isSelectOptGroup,Fn=ft.key,xr=ft.props,Or=xr.children,kr=(0,at.Z)(xr,_n);return Vt||!Gt?Ln(ot):(0,Ht.Z)((0,Ht.Z)({key:"__RC_SELECT_GRP__".concat(Fn===null?kt:Fn,"__"),label:Fn},kr),{},{options:mr(Or)})}).filter(function(ot){return ot})}var cr=function(Vt,ot,kt,ft,Gt){return ce.useMemo(function(){var Fn=Vt,xr=!Vt;xr&&(Fn=mr(ot));var Or=new Map,kr=new Map,dr=function(Ur,si,ei){ei&&typeof ei=="string"&&Ur.set(si[ei],si)},Zn=function Mn(Ur){for(var si=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ei=0;ei<Ur.length;ei+=1){var Ai=Ur[ei];!Ai[kt.options]||si?(Or.set(Ai[kt.value],Ai),dr(kr,Ai,kt.label),dr(kr,Ai,ft),dr(kr,Ai,Gt)):Mn(Ai[kt.options],!0)}};return Zn(Fn),{options:Fn,valueOptions:Or,labelOptions:kr}},[Vt,ot,kt,ft,Gt])},pr=cr;function Rr(Lt){var Vt=ce.useRef();Vt.current=Lt;var ot=ce.useCallback(function(){return Vt.current.apply(Vt,arguments)},[]);return ot}function Wr(Lt){var Vt=Lt.mode,ot=Lt.options,kt=Lt.children,ft=Lt.backfill,Gt=Lt.allowClear,Fn=Lt.placeholder,xr=Lt.getInputElement,Or=Lt.showSearch,kr=Lt.onSearch,dr=Lt.defaultOpen,Zn=Lt.autoFocus,Mn=Lt.labelInValue,Ur=Lt.value,si=Lt.inputValue,ei=Lt.optionLabelProp,Ai=isMultiple(Vt),Ki=Or!==void 0?Or:Ai||Vt==="combobox",Vi=ot||convertChildrenToData(kt);if(warning(Vt!=="tags"||Vi.every(function(Fi){return!Fi.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Vt==="tags"||Vt==="combobox"){var eo=Vi.some(function(Fi){return Fi.options?Fi.options.some(function(ki){return typeof("value"in ki?ki.value:ki.key)=="number"}):typeof("value"in Fi?Fi.value:Fi.key)=="number"});warning(!eo,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Vt!=="combobox"||!ei,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Vt==="combobox"||!ft,"`backfill` only works with `combobox` mode."),warning(Vt==="combobox"||!xr,"`getInputElement` only work with `combobox` mode."),noteOnce(Vt!=="combobox"||!xr||!Gt||!Fn,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),kr&&!Ki&&Vt!=="combobox"&&Vt!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!dr||Zn,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Ur!=null){var Di=toArray(Ur);warning(!Mn||Di.every(function(Fi){return _typeof(Fi)==="object"&&("key"in Fi||"value"in Fi)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Ai||Array.isArray(Ur),"`value` should be array when `mode` is `multiple` or `tags`")}if(kt){var bi=null;toNodeArray(kt).some(function(Fi){if(!React.isValidElement(Fi)||!Fi.type)return!1;var ki=Fi,uo=ki.type;if(uo.isSelectOption)return!1;if(uo.isSelectOptGroup){var Zi=toNodeArray(Fi.props.children).every(function(co){return!React.isValidElement(co)||!Fi.type||co.type.isSelectOption?!0:(bi=co.type,!1)});return!Zi}return bi=uo,!0}),bi&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(bi.displayName||bi.name||bi,"`.")),warning(si===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Gr(Lt,Vt){if(Lt){var ot=function kt(ft){for(var Gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Fn=0;Fn<ft.length;Fn++){var xr=ft[Fn];if(xr[Vt==null?void 0:Vt.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Gt&&Array.isArray(xr[Vt==null?void 0:Vt.options])&&kt(xr[Vt==null?void 0:Vt.options],!0))break}};ot(Lt)}}var ai=null,ti=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],xi=["inputValue"];function mi(Lt){return!Lt||(0,Dt.Z)(Lt)!=="object"}var Xt=ce.forwardRef(function(Lt,Vt){var ot=Lt.id,kt=Lt.mode,ft=Lt.prefixCls,Gt=ft===void 0?"rc-select":ft,Fn=Lt.backfill,xr=Lt.fieldNames,Or=Lt.inputValue,kr=Lt.searchValue,dr=Lt.onSearch,Zn=Lt.autoClearSearchValue,Mn=Zn===void 0?!0:Zn,Ur=Lt.onSelect,si=Lt.onDeselect,ei=Lt.dropdownMatchSelectWidth,Ai=ei===void 0?!0:ei,Ki=Lt.filterOption,Vi=Lt.filterSort,eo=Lt.optionFilterProp,Di=Lt.optionLabelProp,bi=Lt.options,Fi=Lt.optionRender,ki=Lt.children,uo=Lt.defaultActiveFirstOption,Zi=Lt.menuItemSelectedIcon,co=Lt.virtual,oo=Lt.direction,Yi=Lt.listHeight,Xi=Yi===void 0?200:Yi,Oo=Lt.listItemHeight,go=Oo===void 0?20:Oo,bo=Lt.labelRender,Po=Lt.value,Ho=Lt.defaultValue,$i=Lt.labelInValue,Bo=Lt.onChange,Pi=Lt.maxCount,Ko=(0,at.Z)(Lt,ti),Ua=(0,Dr.ZP)(ot),Oa=Un(kt),Jo=!!(!bi&&ki),Vo=ce.useMemo(function(){return Ki===void 0&&kt==="combobox"?!1:Ki},[Ki,kt]),qo=ce.useMemo(function(){return ut(xr,Jo)},[JSON.stringify(xr),Jo]),ma=(0,Me.Z)("",{value:kr!==void 0?kr:Or,postState:function(So){return So||""}}),Ma=(0,rt.Z)(ma,2),mo=Ma[0],Ti=Ma[1],Pr=pr(bi,ki,qo,eo,Di),jr=Pr.valueOptions,Vr=Pr.labelOptions,Sr=Pr.options,hi=ce.useCallback(function(io){var So=$e(io);return So.map(function(vo){var Eo,la,Da,ua,rA;if(mi(vo))Eo=vo;else{var Is;Da=vo.key,la=vo.label,Eo=(Is=vo.value)!==null&&Is!==void 0?Is:Da}var ls=jr.get(Eo);if(ls){var iA;if(la===void 0&&(la=ls==null?void 0:ls[Di||qo.label]),Da===void 0&&(Da=(iA=ls==null?void 0:ls.key)!==null&&iA!==void 0?iA:Eo),ua=ls==null?void 0:ls.disabled,rA=ls==null?void 0:ls.title,0)var Qs}return{label:la,value:Eo,key:Da,disabled:ua,title:rA}})},[qo,Di,jr]),Ii=(0,Me.Z)(Ho,{value:Po}),Fr=(0,rt.Z)(Ii,2),zr=Fr[0],fi=Fr[1],vi=ce.useMemo(function(){var io,So=Oa&&zr===null?[]:zr,vo=hi(So);return kt==="combobox"&&xe((io=vo[0])===null||io===void 0?void 0:io.value)?[]:vo},[zr,hi,kt,Oa]),to=Xr(vi,jr),Zo=(0,rt.Z)(to,2),Do=Zo[0],ra=Zo[1],ea=ce.useMemo(function(){if(!kt&&Do.length===1){var io=Do[0];if(io.value===null&&(io.label===null||io.label===void 0))return[]}return Do.map(function(So){var vo;return(0,Ht.Z)((0,Ht.Z)({},So),{},{label:(vo=typeof bo=="function"?bo(So):So.label)!==null&&vo!==void 0?vo:So.value})})},[kt,Do,bo]),va=ce.useMemo(function(){return new Set(Do.map(function(io){return io.value}))},[Do]);ce.useEffect(function(){if(kt==="combobox"){var io,So=(io=Do[0])===null||io===void 0?void 0:io.value;Ti(Te(So)?String(So):"")}},[Do]);var Aa=Rr(function(io,So){var vo=So!=null?So:io;return(0,Xe.Z)((0,Xe.Z)({},qo.value,io),qo.label,vo)}),Ro=ce.useMemo(function(){if(kt!=="tags")return Sr;var io=(0,qt.Z)(Sr),So=function(Eo){return jr.has(Eo)};return(0,qt.Z)(Do).sort(function(vo,Eo){return vo.value<Eo.value?-1:1}).forEach(function(vo){var Eo=vo.value;So(Eo)||io.push(Aa(Eo,vo.label))}),io},[Aa,Sr,jr,Do,kt]),Ia=lr(Ro,qo,mo,Vo,eo),qa=ce.useMemo(function(){return kt!=="tags"||!mo||Ia.some(function(io){return io[eo||"value"]===mo})||Ia.some(function(io){return io[qo.value]===mo})?Ia:[Aa(mo)].concat((0,qt.Z)(Ia))},[Aa,eo,kt,Ia,mo,qo]),mA=function io(So){var vo=(0,qt.Z)(So).sort(function(Eo,la){return Vi(Eo,la,{searchValue:mo})});return vo.map(function(Eo){return Array.isArray(Eo.options)?(0,Ht.Z)((0,Ht.Z)({},Eo),{},{options:Eo.options.length>0?io(Eo.options):Eo.options}):Eo})},EA=ce.useMemo(function(){return Vi?mA(qa):qa},[qa,Vi,mo]),qs=ce.useMemo(function(){return zt(EA,{fieldNames:qo,childrenAsData:Jo})},[EA,qo,Jo]),eA=function(So){var vo=hi(So);if(fi(vo),Bo&&(vo.length!==Do.length||vo.some(function(Da,ua){var rA;return((rA=Do[ua])===null||rA===void 0?void 0:rA.value)!==(Da==null?void 0:Da.value)}))){var Eo=$i?vo:vo.map(function(Da){return Da.value}),la=vo.map(function(Da){return en(ra(Da.value))});Bo(Oa?Eo:Eo[0],Oa?la:la[0])}},Bl=ce.useState(null),ya=(0,rt.Z)(Bl,2),Cl=ya[0],ws=ya[1],tA=ce.useState(0),bs=(0,rt.Z)(tA,2),Ts=bs[0],nA=bs[1],vA=uo!==void 0?uo:kt!=="combobox",es=ce.useCallback(function(io,So){var vo=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Eo=vo.source,la=Eo===void 0?"keyboard":Eo;nA(So),Fn&&kt==="combobox"&&io!==null&&la==="keyboard"&&ws(String(io))},[Fn,kt]),ZA=function(So,vo,Eo){var la=function(){var Za,cl=ra(So);return[$i?{label:cl==null?void 0:cl[qo.label],value:So,key:(Za=cl==null?void 0:cl.key)!==null&&Za!==void 0?Za:So}:So,en(cl)]};if(vo&&Ur){var Da=la(),ua=(0,rt.Z)(Da,2),rA=ua[0],Is=ua[1];Ur(rA,Is)}else if(!vo&&si&&Eo!=="clear"){var ls=la(),iA=(0,rt.Z)(ls,2),Qs=iA[0],_A=iA[1];si(Qs,_A)}},mu=Rr(function(io,So){var vo,Eo=Oa?So.selected:!0;Eo?vo=Oa?[].concat((0,qt.Z)(Do),[io]):[io]:vo=Do.filter(function(la){return la.value!==io}),eA(vo),ZA(io,Eo),kt==="combobox"?ws(""):(!Un||Mn)&&(Ti(""),ws(""))}),ul=function(So,vo){eA(So);var Eo=vo.type,la=vo.values;(Eo==="remove"||Eo==="clear")&&la.forEach(function(Da){ZA(Da.value,!1,Eo)})},ps=function(So,vo){if(Ti(So),ws(null),vo.source==="submit"){var Eo=(So||"").trim();if(Eo){var la=Array.from(new Set([].concat((0,qt.Z)(va),[Eo])));eA(la),ZA(Eo,!0),Ti("")}return}vo.source!=="blur"&&(kt==="combobox"&&eA(So),dr==null||dr(So))},vu=function(So){var vo=So;kt!=="tags"&&(vo=So.map(function(la){var Da=Vr.get(la);return Da==null?void 0:Da.value}).filter(function(la){return la!==void 0}));var Eo=Array.from(new Set([].concat((0,qt.Z)(va),(0,qt.Z)(vo))));eA(Eo),Eo.forEach(function(la){ZA(la,!0)})},kl=ce.useMemo(function(){var io=co!==!1&&Ai!==!1;return(0,Ht.Z)((0,Ht.Z)({},Pr),{},{flattenOptions:qs,onActiveValue:es,defaultActiveFirstOption:vA,onSelect:mu,menuItemSelectedIcon:Zi,rawValues:va,fieldNames:qo,virtual:io,direction:oo,listHeight:Xi,listItemHeight:go,childrenAsData:Jo,maxCount:Pi,optionRender:Fi})},[Pi,Pr,qs,es,vA,mu,Zi,va,qo,co,Ai,oo,Xi,go,Jo,Fi]);return ce.createElement(ar.Provider,{value:kl},ce.createElement(un,(0,oe.Z)({},Ko,{id:Ua,prefixCls:Gt,ref:Vt,omitDomProps:xi,mode:kt,displayValues:ea,onDisplayValuesChange:ul,direction:oo,searchValue:mo,onSearch:ps,autoClearSearchValue:Mn,onSearchSplit:vu,dropdownMatchSelectWidth:Ai,OptionList:$r,emptyOptions:!qs.length,activeValue:Cl,activeDescendantId:"".concat(Ua,"_list_").concat(Ts)})))}),Kn=Xt;Kn.Option=An,Kn.OptGroup=Xn;var Lr=Kn,wr=Lr},22711:function(gr,zn,pe){"use strict";pe.r(zn),pe.d(zn,{ResizableTextArea:function(){return Je},default:function(){return Zt}});var oe=pe(60499),qt=pe(18642),Xe=pe(85899),Ht=pe(77654),rt=pe(72190),at=pe(42244),Dt=pe(92310),Me=pe.n(Dt),Pe=pe(36901),ce=pe(66003),ke=pe(30292),Le=pe(18929),Ve=pe(59301),Ke=pe(43749),He=pe(29301),Ge=pe(34280),ze=pe(16089),qe=`
|
|
|
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;
|
|
|
`,pt=["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"],Bt={},vt;function yt($e){var At=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Qt=$e.getAttribute("id")||$e.getAttribute("data-reactid")||$e.getAttribute("name");if(At&&Bt[Qt])return Bt[Qt];var Te=window.getComputedStyle($e),xe=Te.getPropertyValue("box-sizing")||Te.getPropertyValue("-moz-box-sizing")||Te.getPropertyValue("-webkit-box-sizing"),It=parseFloat(Te.getPropertyValue("padding-bottom"))+parseFloat(Te.getPropertyValue("padding-top")),Cn=parseFloat(Te.getPropertyValue("border-bottom-width"))+parseFloat(Te.getPropertyValue("border-top-width")),mn=pt.map(function(Ct){return"".concat(Ct,":").concat(Te.getPropertyValue(Ct))}).join(";"),Ze={sizingStyle:mn,paddingSize:It,borderSize:Cn,boxSizing:xe};return At&&Qt&&(Bt[Qt]=Ze),Ze}function Nt($e){var At=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Qt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Te=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;vt||(vt=document.createElement("textarea"),vt.setAttribute("tab-index","-1"),vt.setAttribute("aria-hidden","true"),vt.setAttribute("name","hiddenTextarea"),document.body.appendChild(vt)),$e.getAttribute("wrap")?vt.setAttribute("wrap",$e.getAttribute("wrap")):vt.removeAttribute("wrap");var xe=yt($e,At),It=xe.paddingSize,Cn=xe.borderSize,mn=xe.boxSizing,Ze=xe.sizingStyle;vt.setAttribute("style","".concat(Ze,";").concat(qe)),vt.value=$e.value||$e.placeholder||"";var Ct=void 0,_t=void 0,In,xn=vt.scrollHeight;if(mn==="border-box"?xn+=Cn:mn==="content-box"&&(xn-=It),Qt!==null||Te!==null){vt.value=" ";var Wn=vt.scrollHeight-It;Qt!==null&&(Ct=Wn*Qt,mn==="border-box"&&(Ct=Ct+It+Cn),xn=Math.max(Ct,xn)),Te!==null&&(_t=Wn*Te,mn==="border-box"&&(_t=_t+It+Cn),In=xn>_t?"":"hidden",xn=Math.min(_t,xn))}var ct={height:xn,overflowY:In,resize:"none"};return Ct&&(ct.minHeight=Ct),_t&&(ct.maxHeight=_t),ct}var Et=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],pn=0,Pt=1,St=2,jt=Ve.forwardRef(function($e,At){var Qt=$e,Te=Qt.prefixCls,xe=Qt.defaultValue,It=Qt.value,Cn=Qt.autoSize,mn=Qt.onResize,Ze=Qt.className,Ct=Qt.style,_t=Qt.disabled,In=Qt.onChange,xn=Qt.onInternalAutoSize,Wn=(0,at.Z)(Qt,Et),ct=(0,Le.Z)(xe,{value:It,postState:function(An){return An!=null?An:""}}),En=(0,rt.Z)(ct,2),Rt=En[0],be=En[1],de=function(An){be(An.target.value),In==null||In(An)},le=Ve.useRef();Ve.useImperativeHandle(At,function(){return{textArea:le.current}});var ye=Ve.useMemo(function(){return Cn&&(0,Ke.Z)(Cn)==="object"?[Cn.minRows,Cn.maxRows]:[]},[Cn]),Ie=(0,rt.Z)(ye,2),he=Ie[0],We=Ie[1],tt=!!Cn,dn=function(){try{if(document.activeElement===le.current){var An=le.current,Qn=An.selectionStart,Jn=An.selectionEnd,nt=An.scrollTop;le.current.setSelectionRange(Qn,Jn),le.current.scrollTop=nt}}catch(gt){}},ut=Ve.useState(St),zt=(0,rt.Z)(ut,2),en=zt[0],Sn=zt[1],yn=Ve.useState(),ar=(0,rt.Z)(yn,2),Mt=ar[0],nn=ar[1],ln=function(){Sn(pn)};(0,Ge.Z)(function(){tt&&ln()},[It,he,We,tt]),(0,Ge.Z)(function(){if(en===pn)Sn(Pt);else if(en===Pt){var Ft=Nt(le.current,!1,he,We);Sn(St),nn(Ft)}else dn()},[en]);var Un=Ve.useRef(),Nn=function(){ze.Z.cancel(Un.current)},un=function(An){en===St&&(mn==null||mn(An),Cn&&(Nn(),Un.current=(0,ze.Z)(function(){ln()})))};Ve.useEffect(function(){return Nn},[]);var ir=tt?Mt:null,Xn=(0,Xe.Z)((0,Xe.Z)({},Ct),ir);return(en===pn||en===Pt)&&(Xn.overflowY="hidden",Xn.overflowX="hidden"),Ve.createElement(He.Z,{onResize:un,disabled:!(Cn||mn)},Ve.createElement("textarea",(0,oe.Z)({},Wn,{ref:le,style:Xn,className:Me()(Te,Ze,(0,qt.Z)({},"".concat(Te,"-disabled"),_t)),disabled:_t,value:Rt,onChange:de})))}),Je=jt,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"],lt=Ve.forwardRef(function($e,At){var Qt,Te=$e.defaultValue,xe=$e.value,It=$e.onFocus,Cn=$e.onBlur,mn=$e.onChange,Ze=$e.allowClear,Ct=$e.maxLength,_t=$e.onCompositionStart,In=$e.onCompositionEnd,xn=$e.suffix,Wn=$e.prefixCls,ct=Wn===void 0?"rc-textarea":Wn,En=$e.showCount,Rt=$e.count,be=$e.className,de=$e.style,le=$e.disabled,ye=$e.hidden,Ie=$e.classNames,he=$e.styles,We=$e.onResize,tt=$e.onClear,dn=$e.onPressEnter,ut=$e.readOnly,zt=$e.autoSize,en=$e.onKeyDown,Sn=(0,at.Z)($e,wt),yn=(0,Le.Z)(Te,{value:xe,defaultValue:Te}),ar=(0,rt.Z)(yn,2),Mt=ar[0],nn=ar[1],ln=Mt==null?"":String(Mt),Un=Ve.useState(!1),Nn=(0,rt.Z)(Un,2),un=Nn[0],ir=Nn[1],Xn=Ve.useRef(!1),Ft=Ve.useState(null),An=(0,rt.Z)(Ft,2),Qn=An[0],Jn=An[1],nt=(0,Ve.useRef)(null),gt=(0,Ve.useRef)(null),Kt=function(){var Kn;return(Kn=gt.current)===null||Kn===void 0?void 0:Kn.textArea},vn=function(){Kt().focus()};(0,Ve.useImperativeHandle)(At,function(){var Xt;return{resizableTextArea:gt.current,focus:vn,blur:function(){Kt().blur()},nativeElement:((Xt=nt.current)===null||Xt===void 0?void 0:Xt.nativeElement)||Kt()}}),(0,Ve.useEffect)(function(){ir(function(Xt){return!le&&Xt})},[le]);var Rn=Ve.useState(null),hr=(0,rt.Z)(Rn,2),$r=hr[0],Xr=hr[1];Ve.useEffect(function(){if($r){var Xt;(Xt=Kt()).setSelectionRange.apply(Xt,(0,Ht.Z)($r))}},[$r]);var vr=(0,ce.Z)(Rt,En),lr=(Qt=vr.max)!==null&&Qt!==void 0?Qt:Ct,Dr=Number(lr)>0,rr=vr.strategy(ln),Tn=!!lr&&rr>lr,_n=function(Kn,Lr){var wr=Lr;!Xn.current&&vr.exceedFormatter&&vr.max&&vr.strategy(Lr)>vr.max&&(wr=vr.exceedFormatter(Lr,{max:vr.max}),Lr!==wr&&Xr([Kt().selectionStart||0,Kt().selectionEnd||0])),nn(wr),(0,ke.rJ)(Kn.currentTarget,Kn,mn,wr)},Ln=function(Kn){Xn.current=!0,_t==null||_t(Kn)},mr=function(Kn){Xn.current=!1,_n(Kn,Kn.currentTarget.value),In==null||In(Kn)},cr=function(Kn){_n(Kn,Kn.target.value)},pr=function(Kn){Kn.key==="Enter"&&dn&&dn(Kn),en==null||en(Kn)},Rr=function(Kn){ir(!0),It==null||It(Kn)},Wr=function(Kn){ir(!1),Cn==null||Cn(Kn)},Gr=function(Kn){nn(""),vn(),(0,ke.rJ)(Kt(),Kn,mn)},ai=xn,ti;vr.show&&(vr.showFormatter?ti=vr.showFormatter({value:ln,count:rr,maxLength:lr}):ti="".concat(rr).concat(Dr?" / ".concat(lr):""),ai=Ve.createElement(Ve.Fragment,null,ai,Ve.createElement("span",{className:Me()("".concat(ct,"-data-count"),Ie==null?void 0:Ie.count),style:he==null?void 0:he.count},ti)));var xi=function(Kn){var Lr;We==null||We(Kn),(Lr=Kt())!==null&&Lr!==void 0&&Lr.style.height&&Jn(!0)},mi=!zt&&!En&&!Ze;return Ve.createElement(Pe.BaseInput,{ref:nt,value:ln,allowClear:Ze,handleReset:Gr,suffix:ai,prefixCls:ct,classNames:(0,Xe.Z)((0,Xe.Z)({},Ie),{},{affixWrapper:Me()(Ie==null?void 0:Ie.affixWrapper,(0,qt.Z)((0,qt.Z)({},"".concat(ct,"-show-count"),En),"".concat(ct,"-textarea-allow-clear"),Ze))}),disabled:le,focused:un,className:Me()(be,Tn&&"".concat(ct,"-out-of-range")),style:(0,Xe.Z)((0,Xe.Z)({},de),Qn&&!mi?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof ti=="string"?ti:void 0}},hidden:ye,readOnly:ut,onClear:tt},Ve.createElement(Je,(0,oe.Z)({},Sn,{autoSize:zt,maxLength:Ct,onKeyDown:pr,onChange:cr,onFocus:Rr,onBlur:Wr,onCompositionStart:Ln,onCompositionEnd:mr,className:Me()(Ie==null?void 0:Ie.textarea),style:(0,Xe.Z)((0,Xe.Z)({},he==null?void 0:he.textarea),{},{resize:de==null?void 0:de.resize}),disabled:le,prefixCls:ct,onResize:xi,ref:gt,readOnly:ut})))}),Fe=lt,Zt=Fe},48911:function(gr,zn,pe){"use strict";pe.d(zn,{Z:function(){return Rt}});var oe=pe(60499),qt=pe(43749),Xe=pe(85899),Ht=pe(18642),rt=pe(72190),at=pe(42244),Dt=pe(92310),Me=pe.n(Dt),Pe=pe(29301),ce=pe(70425),ke=pe(34280),Le=pe(59301),Ve=pe(4676),Ke=Le.forwardRef(function(be,de){var le=be.height,ye=be.offsetY,Ie=be.offsetX,he=be.children,We=be.prefixCls,tt=be.onInnerResize,dn=be.innerProps,ut=be.rtl,zt=be.extra,en={},Sn={display:"flex",flexDirection:"column"};return ye!==void 0&&(en={height:le,position:"relative",overflow:"hidden"},Sn=(0,Xe.Z)((0,Xe.Z)({},Sn),{},(0,Ht.Z)((0,Ht.Z)((0,Ht.Z)((0,Ht.Z)((0,Ht.Z)({transform:"translateY(".concat(ye,"px)")},ut?"marginRight":"marginLeft",-Ie),"position","absolute"),"left",0),"right",0),"top",0))),Le.createElement("div",{style:en},Le.createElement(Pe.Z,{onResize:function(ar){var Mt=ar.offsetHeight;Mt&&tt&&tt()}},Le.createElement("div",(0,oe.Z)({style:Sn,className:Me()((0,Ht.Z)({},"".concat(We,"-holder-inner"),We)),ref:de},dn),he,zt)))});Ke.displayName="Filler";var He=Ke;function Ge(be){var de=be.children,le=be.setRef,ye=Le.useCallback(function(Ie){le(Ie)},[]);return Le.cloneElement(de,{ref:ye})}function ze(be,de,le,ye,Ie,he,We,tt){var dn=tt.getKey;return be.slice(de,le+1).map(function(ut,zt){var en=de+zt,Sn=We(ut,en,{style:{width:ye},offsetX:Ie}),yn=dn(ut);return Le.createElement(Ge,{key:yn,setRef:function(Mt){return he(ut,Mt)}},Sn)})}function qe(be,de,le,ye){var Ie=le-be,he=de-le,We=Math.min(Ie,he)*2;if(ye<=We){var tt=Math.floor(ye/2);return ye%2?le+tt+1:le-tt}return Ie>he?le-(ye-he):le+(ye-Ie)}function pt(be,de,le){var ye=be.length,Ie=de.length,he,We;if(ye===0&&Ie===0)return null;ye<Ie?(he=be,We=de):(he=de,We=be);var tt={__EMPTY_ITEM__:!0};function dn(ar){return ar!==void 0?le(ar):tt}for(var ut=null,zt=Math.abs(ye-Ie)!==1,en=0;en<We.length;en+=1){var Sn=dn(he[en]),yn=dn(We[en]);if(Sn!==yn){ut=en,zt=zt||Sn!==dn(We[en+1]);break}}return ut===null?null:{index:ut,multiple:zt}}function Bt(be,de,le){var ye=Le.useState(be),Ie=(0,rt.Z)(ye,2),he=Ie[0],We=Ie[1],tt=Le.useState(null),dn=(0,rt.Z)(tt,2),ut=dn[0],zt=dn[1];return Le.useEffect(function(){var en=pt(he||[],be||[],de);(en==null?void 0:en.index)!==void 0&&(le==null||le(en.index),zt(be[en.index])),We(be)},[be]),[ut]}var vt=pe(16089),yt=(typeof navigator=="undefined"?"undefined":(0,qt.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Nt=yt,Et=function(be,de,le,ye){var Ie=(0,Le.useRef)(!1),he=(0,Le.useRef)(null);function We(){clearTimeout(he.current),Ie.current=!0,he.current=setTimeout(function(){Ie.current=!1},50)}var tt=(0,Le.useRef)({top:be,bottom:de,left:le,right:ye});return tt.current.top=be,tt.current.bottom=de,tt.current.left=le,tt.current.right=ye,function(dn,ut){var zt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,en=dn?ut<0&&tt.current.left||ut>0&&tt.current.right:ut<0&&tt.current.top||ut>0&&tt.current.bottom;return zt&&en?(clearTimeout(he.current),Ie.current=!1):(!en||Ie.current)&&We(),!Ie.current&&en}};function pn(be,de,le,ye,Ie,he,We){var tt=(0,Le.useRef)(0),dn=(0,Le.useRef)(null),ut=(0,Le.useRef)(null),zt=(0,Le.useRef)(!1),en=Et(de,le,ye,Ie);function Sn(Un,Nn){if(vt.Z.cancel(dn.current),!en(!1,Nn)){var un=Un;if(!un._virtualHandled)un._virtualHandled=!0;else return;tt.current+=Nn,ut.current=Nn,Nt||un.preventDefault(),dn.current=(0,vt.Z)(function(){var ir=zt.current?10:1;We(tt.current*ir,!1),tt.current=0})}}function yn(Un,Nn){We(Nn,!0),Nt||Un.preventDefault()}var ar=(0,Le.useRef)(null),Mt=(0,Le.useRef)(null);function nn(Un){if(be){vt.Z.cancel(Mt.current),Mt.current=(0,vt.Z)(function(){ar.current=null},2);var Nn=Un.deltaX,un=Un.deltaY,ir=Un.shiftKey,Xn=Nn,Ft=un;(ar.current==="sx"||!ar.current&&ir&&un&&!Nn)&&(Xn=un,Ft=0,ar.current="sx");var An=Math.abs(Xn),Qn=Math.abs(Ft);ar.current===null&&(ar.current=he&&An>Qn?"x":"y"),ar.current==="y"?Sn(Un,Ft):yn(Un,Xn)}}function ln(Un){be&&(zt.current=Un.detail===ut.current)}return[nn,ln]}function Pt(be,de,le,ye){var Ie=Le.useMemo(function(){return[new Map,[]]},[be,le.id,ye]),he=(0,rt.Z)(Ie,2),We=he[0],tt=he[1],dn=function(zt){var en=arguments.length>1&&arguments[1]!==void 0?arguments[1]:zt,Sn=We.get(zt),yn=We.get(en);if(Sn===void 0||yn===void 0)for(var ar=be.length,Mt=tt.length;Mt<ar;Mt+=1){var nn,ln=be[Mt],Un=de(ln);We.set(Un,Mt);var Nn=(nn=le.get(Un))!==null&&nn!==void 0?nn:ye;if(tt[Mt]=(tt[Mt-1]||0)+Nn,Un===zt&&(Sn=Mt),Un===en&&(yn=Mt),Sn!==void 0&&yn!==void 0)break}return{top:tt[Sn-1]||0,bottom:tt[yn]}};return dn}var St=pe(38705),jt=pe(17212),Je=function(){function be(){(0,St.Z)(this,be),(0,Ht.Z)(this,"maps",void 0),(0,Ht.Z)(this,"id",0),(0,Ht.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,jt.Z)(be,[{key:"set",value:function(le,ye){this.diffRecords.set(le,this.maps[le]),this.maps[le]=ye,this.id+=1}},{key:"get",value:function(le){return this.maps[le]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),be}(),wt=Je;function lt(be){var de=parseFloat(be);return isNaN(de)?0:de}function Fe(be,de,le){var ye=Le.useState(0),Ie=(0,rt.Z)(ye,2),he=Ie[0],We=Ie[1],tt=(0,Le.useRef)(new Map),dn=(0,Le.useRef)(new wt),ut=(0,Le.useRef)(0);function zt(){ut.current+=1}function en(){var yn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;zt();var ar=function(){var ln=!1;tt.current.forEach(function(Un,Nn){if(Un&&Un.offsetParent){var un=Un.offsetHeight,ir=getComputedStyle(Un),Xn=ir.marginTop,Ft=ir.marginBottom,An=lt(Xn),Qn=lt(Ft),Jn=un+An+Qn;dn.current.get(Nn)!==Jn&&(dn.current.set(Nn,Jn),ln=!0)}}),ln&&We(function(Un){return Un+1})};if(yn)ar();else{ut.current+=1;var Mt=ut.current;Promise.resolve().then(function(){Mt===ut.current&&ar()})}}function Sn(yn,ar){var Mt=be(yn),nn=tt.current.get(Mt);ar?(tt.current.set(Mt,ar),en()):tt.current.delete(Mt),!nn!=!ar&&(ar?de==null||de(yn):le==null||le(yn))}return(0,Le.useEffect)(function(){return zt},[]),[Sn,en,dn.current,he]}var Zt=14/15;function $e(be,de,le){var ye=(0,Le.useRef)(!1),Ie=(0,Le.useRef)(0),he=(0,Le.useRef)(0),We=(0,Le.useRef)(null),tt=(0,Le.useRef)(null),dn,ut=function(yn){if(ye.current){var ar=Math.ceil(yn.touches[0].pageX),Mt=Math.ceil(yn.touches[0].pageY),nn=Ie.current-ar,ln=he.current-Mt,Un=Math.abs(nn)>Math.abs(ln);Un?Ie.current=ar:he.current=Mt;var Nn=le(Un,Un?nn:ln,!1,yn);Nn&&yn.preventDefault(),clearInterval(tt.current),Nn&&(tt.current=setInterval(function(){Un?nn*=Zt:ln*=Zt;var un=Math.floor(Un?nn:ln);(!le(Un,un,!0)||Math.abs(un)<=.1)&&clearInterval(tt.current)},16))}},zt=function(){ye.current=!1,dn()},en=function(yn){dn(),yn.touches.length===1&&!ye.current&&(ye.current=!0,Ie.current=Math.ceil(yn.touches[0].pageX),he.current=Math.ceil(yn.touches[0].pageY),We.current=yn.target,We.current.addEventListener("touchmove",ut,{passive:!1}),We.current.addEventListener("touchend",zt,{passive:!0}))};dn=function(){We.current&&(We.current.removeEventListener("touchmove",ut),We.current.removeEventListener("touchend",zt))},(0,ke.Z)(function(){return be&&de.current.addEventListener("touchstart",en,{passive:!0}),function(){var Sn;(Sn=de.current)===null||Sn===void 0||Sn.removeEventListener("touchstart",en),dn(),clearInterval(tt.current)}},[be])}function At(be){return Math.floor(Math.pow(be,.5))}function Qt(be,de){var le="touches"in be?be.touches[0]:be;return le[de?"pageX":"pageY"]-window[de?"scrollX":"scrollY"]}function Te(be,de,le){Le.useEffect(function(){var ye=de.current;if(be&&ye){var Ie=!1,he,We,tt=function(){vt.Z.cancel(he)},dn=function Sn(){tt(),he=(0,vt.Z)(function(){le(We),Sn()})},ut=function(){Ie=!1,tt()},zt=function(yn){if(!(yn.target.draggable||yn.button!==0)){var ar=yn;ar._virtualHandled||(ar._virtualHandled=!0,Ie=!0)}},en=function(yn){if(Ie){var ar=Qt(yn,!1),Mt=ye.getBoundingClientRect(),nn=Mt.top,ln=Mt.bottom;if(ar<=nn){var Un=nn-ar;We=-At(Un),dn()}else if(ar>=ln){var Nn=ar-ln;We=At(Nn),dn()}else tt()}};return ye.addEventListener("mousedown",zt),ye.ownerDocument.addEventListener("mouseup",ut),ye.ownerDocument.addEventListener("mousemove",en),ye.ownerDocument.addEventListener("dragend",ut),function(){ye.removeEventListener("mousedown",zt),ye.ownerDocument.removeEventListener("mouseup",ut),ye.ownerDocument.removeEventListener("mousemove",en),ye.ownerDocument.removeEventListener("dragend",ut),tt()}}},[be])}var xe=10;function It(be,de,le,ye,Ie,he,We,tt){var dn=Le.useRef(),ut=Le.useState(null),zt=(0,rt.Z)(ut,2),en=zt[0],Sn=zt[1];return(0,ke.Z)(function(){if(en&&en.times<xe){if(!be.current){Sn(function(vr){return(0,Xe.Z)({},vr)});return}he();var yn=en.targetAlign,ar=en.originAlign,Mt=en.index,nn=en.offset,ln=be.current.clientHeight,Un=!1,Nn=yn,un=null;if(ln){for(var ir=yn||ar,Xn=0,Ft=0,An=0,Qn=Math.min(de.length-1,Mt),Jn=0;Jn<=Qn;Jn+=1){var nt=Ie(de[Jn]);Ft=Xn;var gt=le.get(nt);An=Ft+(gt===void 0?ye:gt),Xn=An}for(var Kt=ir==="top"?nn:ln-nn,vn=Qn;vn>=0;vn-=1){var Rn=Ie(de[vn]),hr=le.get(Rn);if(hr===void 0){Un=!0;break}if(Kt-=hr,Kt<=0)break}switch(ir){case"top":un=Ft-nn;break;case"bottom":un=An-ln+nn;break;default:{var $r=be.current.scrollTop,Xr=$r+ln;Ft<$r?Nn="top":An>Xr&&(Nn="bottom")}}un!==null&&We(un),un!==en.lastTop&&(Un=!0)}Un&&Sn((0,Xe.Z)((0,Xe.Z)({},en),{},{times:en.times+1,targetAlign:Nn,lastTop:un}))}},[en,be.current]),function(yn){if(yn==null){tt();return}if(vt.Z.cancel(dn.current),typeof yn=="number")We(yn);else if(yn&&(0,qt.Z)(yn)==="object"){var ar,Mt=yn.align;"index"in yn?ar=yn.index:ar=de.findIndex(function(Un){return Ie(Un)===yn.key});var nn=yn.offset,ln=nn===void 0?0:nn;Sn({times:0,index:ar,offset:ln,originAlign:Mt})}}}var Cn=Le.forwardRef(function(be,de){var le=be.prefixCls,ye=be.rtl,Ie=be.scrollOffset,he=be.scrollRange,We=be.onStartMove,tt=be.onStopMove,dn=be.onScroll,ut=be.horizontal,zt=be.spinSize,en=be.containerSize,Sn=be.style,yn=be.thumbStyle,ar=be.showScrollBar,Mt=Le.useState(!1),nn=(0,rt.Z)(Mt,2),ln=nn[0],Un=nn[1],Nn=Le.useState(null),un=(0,rt.Z)(Nn,2),ir=un[0],Xn=un[1],Ft=Le.useState(null),An=(0,rt.Z)(Ft,2),Qn=An[0],Jn=An[1],nt=!ye,gt=Le.useRef(),Kt=Le.useRef(),vn=Le.useState(ar),Rn=(0,rt.Z)(vn,2),hr=Rn[0],$r=Rn[1],Xr=Le.useRef(),vr=function(){ar===!0||ar===!1||(clearTimeout(Xr.current),$r(!0),Xr.current=setTimeout(function(){$r(!1)},3e3))},lr=he-en||0,Dr=en-zt||0,rr=Le.useMemo(function(){if(Ie===0||lr===0)return 0;var Gr=Ie/lr;return Gr*Dr},[Ie,lr,Dr]),Tn=function(ai){ai.stopPropagation(),ai.preventDefault()},_n=Le.useRef({top:rr,dragging:ln,pageY:ir,startTop:Qn});_n.current={top:rr,dragging:ln,pageY:ir,startTop:Qn};var Ln=function(ai){Un(!0),Xn(Qt(ai,ut)),Jn(_n.current.top),We(),ai.stopPropagation(),ai.preventDefault()};Le.useEffect(function(){var Gr=function(mi){mi.preventDefault()},ai=gt.current,ti=Kt.current;return ai.addEventListener("touchstart",Gr,{passive:!1}),ti.addEventListener("touchstart",Ln,{passive:!1}),function(){ai.removeEventListener("touchstart",Gr),ti.removeEventListener("touchstart",Ln)}},[]);var mr=Le.useRef();mr.current=lr;var cr=Le.useRef();cr.current=Dr,Le.useEffect(function(){if(ln){var Gr,ai=function(mi){var Xt=_n.current,Kn=Xt.dragging,Lr=Xt.pageY,wr=Xt.startTop;vt.Z.cancel(Gr);var Lt=gt.current.getBoundingClientRect(),Vt=en/(ut?Lt.width:Lt.height);if(Kn){var ot=(Qt(mi,ut)-Lr)*Vt,kt=wr;!nt&&ut?kt-=ot:kt+=ot;var ft=mr.current,Gt=cr.current,Fn=Gt?kt/Gt:0,xr=Math.ceil(Fn*ft);xr=Math.max(xr,0),xr=Math.min(xr,ft),Gr=(0,vt.Z)(function(){dn(xr,ut)})}},ti=function(){Un(!1),tt()};return window.addEventListener("mousemove",ai,{passive:!0}),window.addEventListener("touchmove",ai,{passive:!0}),window.addEventListener("mouseup",ti,{passive:!0}),window.addEventListener("touchend",ti,{passive:!0}),function(){window.removeEventListener("mousemove",ai),window.removeEventListener("touchmove",ai),window.removeEventListener("mouseup",ti),window.removeEventListener("touchend",ti),vt.Z.cancel(Gr)}}},[ln]),Le.useEffect(function(){return vr(),function(){clearTimeout(Xr.current)}},[Ie]),Le.useImperativeHandle(de,function(){return{delayHidden:vr}});var pr="".concat(le,"-scrollbar"),Rr={position:"absolute",visibility:hr?null:"hidden"},Wr={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return ut?(Object.assign(Rr,{height:8,left:0,right:0,bottom:0}),Object.assign(Wr,(0,Ht.Z)({height:"100%",width:zt},nt?"left":"right",rr))):(Object.assign(Rr,(0,Ht.Z)({width:8,top:0,bottom:0},nt?"right":"left",0)),Object.assign(Wr,{width:"100%",height:zt,top:rr})),Le.createElement("div",{ref:gt,className:Me()(pr,(0,Ht.Z)((0,Ht.Z)((0,Ht.Z)({},"".concat(pr,"-horizontal"),ut),"".concat(pr,"-vertical"),!ut),"".concat(pr,"-visible"),hr)),style:(0,Xe.Z)((0,Xe.Z)({},Rr),Sn),onMouseDown:Tn,onMouseMove:vr},Le.createElement("div",{ref:Kt,className:Me()("".concat(pr,"-thumb"),(0,Ht.Z)({},"".concat(pr,"-thumb-moving"),ln)),style:(0,Xe.Z)((0,Xe.Z)({},Wr),yn),onMouseDown:Ln}))}),mn=Cn,Ze=20;function Ct(){var be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,le=be/de*be;return isNaN(le)&&(le=0),le=Math.max(le,Ze),Math.floor(le)}var _t=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],In=[],xn={overflowY:"auto",overflowAnchor:"none"};function Wn(be,de){var le=be.prefixCls,ye=le===void 0?"rc-virtual-list":le,Ie=be.className,he=be.height,We=be.itemHeight,tt=be.fullHeight,dn=tt===void 0?!0:tt,ut=be.style,zt=be.data,en=be.children,Sn=be.itemKey,yn=be.virtual,ar=be.direction,Mt=be.scrollWidth,nn=be.component,ln=nn===void 0?"div":nn,Un=be.onScroll,Nn=be.onVirtualScroll,un=be.onVisibleChange,ir=be.innerProps,Xn=be.extraRender,Ft=be.styles,An=be.showScrollBar,Qn=An===void 0?"optional":An,Jn=(0,at.Z)(be,_t),nt=Le.useCallback(function(Pr){return typeof Sn=="function"?Sn(Pr):Pr==null?void 0:Pr[Sn]},[Sn]),gt=Fe(nt,null,null),Kt=(0,rt.Z)(gt,4),vn=Kt[0],Rn=Kt[1],hr=Kt[2],$r=Kt[3],Xr=!!(yn!==!1&&he&&We),vr=Le.useMemo(function(){return Object.values(hr.maps).reduce(function(Pr,jr){return Pr+jr},0)},[hr.id,hr.maps]),lr=Xr&&zt&&(Math.max(We*zt.length,vr)>he||!!Mt),Dr=ar==="rtl",rr=Me()(ye,(0,Ht.Z)({},"".concat(ye,"-rtl"),Dr),Ie),Tn=zt||In,_n=(0,Le.useRef)(),Ln=(0,Le.useRef)(),mr=(0,Le.useRef)(),cr=(0,Le.useState)(0),pr=(0,rt.Z)(cr,2),Rr=pr[0],Wr=pr[1],Gr=(0,Le.useState)(0),ai=(0,rt.Z)(Gr,2),ti=ai[0],xi=ai[1],mi=(0,Le.useState)(!1),Xt=(0,rt.Z)(mi,2),Kn=Xt[0],Lr=Xt[1],wr=function(){Lr(!0)},Lt=function(){Lr(!1)},Vt={getKey:nt};function ot(Pr){Wr(function(jr){var Vr;typeof Pr=="function"?Vr=Pr(jr):Vr=Pr;var Sr=uo(Vr);return _n.current.scrollTop=Sr,Sr})}var kt=(0,Le.useRef)({start:0,end:Tn.length}),ft=(0,Le.useRef)(),Gt=Bt(Tn,nt),Fn=(0,rt.Z)(Gt,1),xr=Fn[0];ft.current=xr;var Or=Le.useMemo(function(){if(!Xr)return{scrollHeight:void 0,start:0,end:Tn.length-1,offset:void 0};if(!lr){var Pr;return{scrollHeight:((Pr=Ln.current)===null||Pr===void 0?void 0:Pr.offsetHeight)||0,start:0,end:Tn.length-1,offset:void 0}}for(var jr=0,Vr,Sr,hi,Ii=Tn.length,Fr=0;Fr<Ii;Fr+=1){var zr=Tn[Fr],fi=nt(zr),vi=hr.get(fi),to=jr+(vi===void 0?We:vi);to>=Rr&&Vr===void 0&&(Vr=Fr,Sr=jr),to>Rr+he&&hi===void 0&&(hi=Fr),jr=to}return Vr===void 0&&(Vr=0,Sr=0,hi=Math.ceil(he/We)),hi===void 0&&(hi=Tn.length-1),hi=Math.min(hi+1,Tn.length-1),{scrollHeight:jr,start:Vr,end:hi,offset:Sr}},[lr,Xr,Rr,Tn,$r,he]),kr=Or.scrollHeight,dr=Or.start,Zn=Or.end,Mn=Or.offset;kt.current.start=dr,kt.current.end=Zn,Le.useLayoutEffect(function(){var Pr=hr.getRecord();if(Pr.size===1){var jr=Array.from(Pr.keys())[0],Vr=Pr.get(jr),Sr=Tn[dr];if(Sr&&Vr===void 0){var hi=nt(Sr);if(hi===jr){var Ii=hr.get(jr),Fr=Ii-We;ot(function(zr){return zr+Fr})}}}hr.resetRecord()},[kr]);var Ur=Le.useState({width:0,height:he}),si=(0,rt.Z)(Ur,2),ei=si[0],Ai=si[1],Ki=function(jr){Ai({width:jr.offsetWidth,height:jr.offsetHeight})},Vi=(0,Le.useRef)(),eo=(0,Le.useRef)(),Di=Le.useMemo(function(){return Ct(ei.width,Mt)},[ei.width,Mt]),bi=Le.useMemo(function(){return Ct(ei.height,kr)},[ei.height,kr]),Fi=kr-he,ki=(0,Le.useRef)(Fi);ki.current=Fi;function uo(Pr){var jr=Pr;return Number.isNaN(ki.current)||(jr=Math.min(jr,ki.current)),jr=Math.max(jr,0),jr}var Zi=Rr<=0,co=Rr>=Fi,oo=ti<=0,Yi=ti>=Mt,Xi=Et(Zi,co,oo,Yi),Oo=function(){return{x:Dr?-ti:ti,y:Rr}},go=(0,Le.useRef)(Oo()),bo=(0,ce.zX)(function(Pr){if(Nn){var jr=(0,Xe.Z)((0,Xe.Z)({},Oo()),Pr);(go.current.x!==jr.x||go.current.y!==jr.y)&&(Nn(jr),go.current=jr)}});function Po(Pr,jr){var Vr=Pr;jr?((0,Ve.flushSync)(function(){xi(Vr)}),bo()):ot(Vr)}function Ho(Pr){var jr=Pr.currentTarget.scrollTop;jr!==Rr&&ot(jr),Un==null||Un(Pr),bo()}var $i=function(jr){var Vr=jr,Sr=Mt?Mt-ei.width:0;return Vr=Math.max(Vr,0),Vr=Math.min(Vr,Sr),Vr},Bo=(0,ce.zX)(function(Pr,jr){jr?((0,Ve.flushSync)(function(){xi(function(Vr){var Sr=Vr+(Dr?-Pr:Pr);return $i(Sr)})}),bo()):ot(function(Vr){var Sr=Vr+Pr;return Sr})}),Pi=pn(Xr,Zi,co,oo,Yi,!!Mt,Bo),Ko=(0,rt.Z)(Pi,2),Ua=Ko[0],Oa=Ko[1];$e(Xr,_n,function(Pr,jr,Vr,Sr){var hi=Sr;return Xi(Pr,jr,Vr)?!1:!hi||!hi._virtualHandled?(hi&&(hi._virtualHandled=!0),Ua({preventDefault:function(){},deltaX:Pr?jr:0,deltaY:Pr?0:jr}),!0):!1}),Te(lr,_n,function(Pr){ot(function(jr){return jr+Pr})}),(0,ke.Z)(function(){function Pr(Vr){var Sr=Zi&&Vr.detail<0,hi=co&&Vr.detail>0;Xr&&!Sr&&!hi&&Vr.preventDefault()}var jr=_n.current;return jr.addEventListener("wheel",Ua,{passive:!1}),jr.addEventListener("DOMMouseScroll",Oa,{passive:!0}),jr.addEventListener("MozMousePixelScroll",Pr,{passive:!1}),function(){jr.removeEventListener("wheel",Ua),jr.removeEventListener("DOMMouseScroll",Oa),jr.removeEventListener("MozMousePixelScroll",Pr)}},[Xr,Zi,co]),(0,ke.Z)(function(){if(Mt){var Pr=$i(ti);xi(Pr),bo({x:Pr})}},[ei.width,Mt]);var Jo=function(){var jr,Vr;(jr=Vi.current)===null||jr===void 0||jr.delayHidden(),(Vr=eo.current)===null||Vr===void 0||Vr.delayHidden()},Vo=It(_n,Tn,hr,We,nt,function(){return Rn(!0)},ot,Jo);Le.useImperativeHandle(de,function(){return{nativeElement:mr.current,getScrollInfo:Oo,scrollTo:function(jr){function Vr(Sr){return Sr&&(0,qt.Z)(Sr)==="object"&&("left"in Sr||"top"in Sr)}Vr(jr)?(jr.left!==void 0&&xi($i(jr.left)),Vo(jr.top)):Vo(jr)}}}),(0,ke.Z)(function(){if(un){var Pr=Tn.slice(dr,Zn+1);un(Pr,Tn)}},[dr,Zn,Tn]);var qo=Pt(Tn,nt,hr,We),ma=Xn==null?void 0:Xn({start:dr,end:Zn,virtual:lr,offsetX:ti,offsetY:Mn,rtl:Dr,getSize:qo}),Ma=ze(Tn,dr,Zn,Mt,ti,vn,en,Vt),mo=null;he&&(mo=(0,Xe.Z)((0,Ht.Z)({},dn?"height":"maxHeight",he),xn),Xr&&(mo.overflowY="hidden",Mt&&(mo.overflowX="hidden"),Kn&&(mo.pointerEvents="none")));var Ti={};return Dr&&(Ti.dir="rtl"),Le.createElement("div",(0,oe.Z)({ref:mr,style:(0,Xe.Z)((0,Xe.Z)({},ut),{},{position:"relative"}),className:rr},Ti,Jn),Le.createElement(Pe.Z,{onResize:Ki},Le.createElement(ln,{className:"".concat(ye,"-holder"),style:mo,ref:_n,onScroll:Ho,onMouseEnter:Jo},Le.createElement(He,{prefixCls:ye,height:kr,offsetX:ti,offsetY:Mn,scrollWidth:Mt,onInnerResize:Rn,ref:Ln,innerProps:ir,rtl:Dr,extra:ma},Ma))),lr&&kr>he&&Le.createElement(mn,{ref:Vi,prefixCls:ye,scrollOffset:Rr,scrollRange:kr,rtl:Dr,onScroll:Po,onStartMove:wr,onStopMove:Lt,spinSize:bi,containerSize:ei.height,style:Ft==null?void 0:Ft.verticalScrollBar,thumbStyle:Ft==null?void 0:Ft.verticalScrollBarThumb,showScrollBar:Qn}),lr&&Mt>ei.width&&Le.createElement(mn,{ref:eo,prefixCls:ye,scrollOffset:ti,scrollRange:Mt,rtl:Dr,onScroll:Po,onStartMove:wr,onStopMove:Lt,spinSize:Di,containerSize:ei.width,horizontal:!0,style:Ft==null?void 0:Ft.horizontalScrollBar,thumbStyle:Ft==null?void 0:Ft.horizontalScrollBarThumb,showScrollBar:Qn}))}var ct=Le.forwardRef(Wn);ct.displayName="List";var En=ct,Rt=En},4977:function(gr){"use strict";gr.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6JeTNX4HmJMAHv6xP4/6VXw/+OxNx/bM/pIohdUE9VW/VxwjOHiJYO5A6xolpGSpYW3jIW4w/A8wM+h+UHSY2pvHgzV9NXymeor0wPc7Cf7XzWJ/4Nsm+Ly2LzZx+OwZ3yuVbzhNsPEMwcI3rM8wMikHiURi5gNbbQoKrc84zpjkj2eYzQC6f96DomUd305ctrp8tp5gSk/f1utzlFhUOHYthy9f8D1gdpwnWHiEYOVQ6zNM6QM/AY+CImHnF9YtfwTMCgB9P+5G0SHa9xP3bk2gT9cBU3r6Hjp95nBYNcz3gDlwkRhX843vlfS59PmFHfjFzgC/2pJ1nEEnEIpIAG+834Wia2Ox7PJ8wt0twLz7J8Gsl3zf316zCVYPsz5oe85F1yUcu0YwcQPBjlElZyjL8wsrQeyBn+XxK8DETqefgyACFCPe6kjxfDPfT6C7BpilBLMG+L6/A34h+P1VikCZ60nuTYpzN4AxqznjCqPOMZ1RSp9f2OVLYZH1lbOrNvjVlswIGEAKYOyrj1K82NL3E+huAWbEMnbFSn1+Qzd4AcE3fajPZV6X04D3lnHGM4xOawKFJwLLYiD5H2AoCkHwJQMLA42v090CzJjVBBN7UCh8rN3AgDrqCYq6lX3L6RQ1MGQRhwWvA7UrALbnFzCJjOhG+d2WjFCkUYKZPZpSDIv1PWDGrycY34NCahI0+yxN/Ivg3c4UlUN8VqWxok/XEfRrSdG0tm/rzcoHBv7KYc5AILqqLWDcOb/45RmGEFyhFL8/0Yga33y+Tl9uJhjxOEVIoG9rnrqVKSJSRFb0fb3tG1A81sC39TLRSu85HL57Eaii0Bm3oqEKqZXSJaUURUxTU0Tyuy0ZAc5SYCUbxE+6+x4w3+0kGNiWooqP3/Qz9xB0bUTRsLqI2eEFUlbvA9WBJxv5ltdMit9jFocpLwB1InQIkBEQTmLUHStOBoMBOr24K2+/AwwPHOKArS2iKCY9VzKIg34jyMgTv6f1wpwqL8JLHKgUTLHwjZIxZTKg0V2Bzg2tLzvYBYA75xe/25J1mkEnGAzYyXE40KQmMK23uLeLN8b1j0ME7epTxFTzRmnCy/jzXyCqIny+NVryDzFeKfd+xLcrDOMMO8MMfgx45iFrOZA7AstiTvvVoZ91usM3tClHcLpeZWDmAN8DZtlRgkY1KJr5+BC87hQQLAeebCwcZN6gXH6MgG2P+rfyDmD+WLoV8xZugkIRiNh2TTHghcfRoF4tFBZpkXgpGQ81rmdu9puLOLzwMPBYPR1Cgzw/v7CC/WpLxjrc/jtaT2LApRrhwC+DfA+Y9aeI0dKzbT3vTCChk3r7eaBABzzfTGgO79CtPUmM9b7U2jv9bf3kOyjSlihLcoSg93MdkZ2Th227j2Hoq8/inTeeNzZ+xFIOsTHAsw/pAeL5+cUvAdPuG1pVRnArQgEsGex7wGw7RxAgBTo19M4EEjqtD1wEkrPYm15oDu/QbfkPSM0hHsu8du0/gSnfLkFGVrbThjFLynULJ6FOZHUw2RNbyd/qUJLFHZV+ywr9aksWO4Ou0BK8KueRz/bVq++CUuD+RGbhB3R/0LeAOZEEnFIRvPGYb+vdGw+cvU7w3uOe1dv+mfeRk5svCMUfvz8AA3o9jgkbCJQVgPe7lGTz5MDvj4f+VXs/JH1ip1PmAkHy17u8z42bjl4lxjf9C809m0CCZo4FUVwKsDPOJLz0ZTp6Fdh6jtnWe1bvuCm/4q/tRwQ1/b03e2LIwGfw1RaCkADg425AOvPkYCHZd0cG43dbsk4zaDFgWHiHcG85wjBQoEhnMhAzf5r/Jihkf9/+fjXDtDXqGA108+Eqcy0DYAfwMU95NnEFzVgLovibwK8HCab19qze61s24Pf5K7A5KwB5vHM1CblMij9m/Q87rtc1jsek54CMPIBayGD0BgP0ImUw/gwYFiqjllhHGAcvAkuPcijU8cgv0KGgSGv8LNJqweu1MOh14A3ss+S78W+Dzuo3RsPoTy0YgIjQALFz0C36tBzg570EE3p4NnHFVn5TA0zaSPDzy57Vu2bIS6jF67BDHYBHgnVI0kow+6ZjLyZNm9RD+35jkZINfNO7ZIVhEn+e16NQ6157/OqWjJ1h9n1IXoydTi8AeGD+KzxqinCEsfkswfBJC2HQacXOG7v0B+e9CGXVUK+U5aoQdm5iE3eqh296R/XoDEBu0e3/hcz3FzF+Z292trI91Zgav7N2tKrDrrfFTdgTI4dAl61BipZDDXYINRCMvBrusNvBikAMHT8LTM3/pwElK4xMAuQV6uBuKK4yA5hEVfY8SvmmHCETGyjDtzqbQLHf0KMgaCnWEcaW/whGT1mAHHZP6oW09bueaFy3khdKcl0EO+y+v4xgphs2MWxbs+K46bLCDIoi6+9iVLKY4PbTp8UB5t8h/UB53qimz1aJA9lyLExz7H1vyMCnUa15L/x9EfhtkIk/nh74y9ShPz5JnUGA26qFZIdcTofWqR5xxd5Uip1O9wDoJNYRxs4LBB9PXYxUdaHrGSqAYuWUp9GmSQ0BlN4h8cTq8qVfOGgKStpBeAoJb4DEYPrPsU89b/5e/LvEYPubLCIQX06NEtWpfwa/yA4h0FEgqVCK71OCUeTARdLLfbpg9PAXsfGsBBtOA0uHmKpyV0PZsqFl5lo5QaXWgRqNw4pTHiEYGa2M+KX0yMROpxsA9BDrCGNvAsG4GcuQdMt45eJx+nXsk3iyNbOY9k161wOry8/GqZCr1t4GBA/O3T0Nm7gSDl/89IBRHiU0nRk3CgU3knEmT4pZN51rrjI5TN2oGmCOMP44BKx7B8jINemP8ZRCK2Y5LNXAMrMlS0hSpwKw9TRGME+XHf5ekybEfPCInU7/BDBArCOMw5cIPvt+JRJUGqHj7JRu2rsd0P+JGBuanELTTVpwwO3/cnjFxNcTwMz95hquxud5pd+skIEfR6NJA+F2y6o1S3Fj4xpj/X9lBmK7OsDuChMUKMf+v36AXC4Fc4QxYwew/X0gM8/k5VKvN0BvcF9gfc8CJuGWuh4twgoQnJSBzK+nDP+3eLTsBahJSNL8DdD29kaUAFsDSU4vpVJp3FTETqdzAbwl1hHGySSCCTPX41RimlcmzthBrTCsV1Obss5cJ2hWXQupTIoiHUW+1nRYZkcn5kRbTzlIOQq5hBmimfRu2RwoeU4gl5rAFiI3Odpmb/NRK0zXu+zgKzZtWZWK/VvTxWZzSP/EK5HoEivcxsFQWIBzk8caVxmWmMT+g6thNlfMg/p1xYfv9DXSMEcYEzYAu247wnBXQ9myE/fslixRpf6FUgw2N5bgDChmk6Lw33MMqkqlg8JeVKmn8hRjHI0QIdgbiJynGWhiZ9AZoPhgaEeK50Q4wmDCvwmzt+HwGe8EcH67V1N8MshWV4UBpnlNLQID3Lcn5nkKrZ6iUEex4azEqC08di0BW1XDgsTP+2NHsrH6F+/0m9Xetns1PN9b3IWHPi8XyetXIOPoEeg1WbhYKMGK9CCoiiSoWq0SnuvWzqhLVuyoz+wI411mmi3epZI9Lt2zgElIUht9INtpdDJPMUsSGf59NCFFxc8TknI6AoZ9LqbCmj+V4X33zMAEAOMHtaXoJ0KLVpUJjJuzD3v+vSh+xtnJ0ffxaMwY0dHuCtO8pg6BAcK3LI4axCTai/4hRsBM3kww5DGK6o5vYx32S52pw9QxbEi8k6o2DMeoj2q5VVhqNnB29JsI0TP5M6Dj5Gg7dwmkpVZOsyOMtyg4joDyBhRq3d+Osbru3S2ZSp0LCmf+9ZM5CUY3qBWx3LREUy5RpbkKQOl0FAimvrksPAME08Q6wmD74DGz/8H2A/+5NdClM8U2r4VFE7rZBcwjtXQIkHsOGLbSLP7XBJhvdxD0fJiinhs+pVk5n41IBM/UFryQSHggvpxRooovpsgdFwjoD8MQri3ZIso/XYzm9a2FwDfUAFPxX/AaRYSCeCR/KW7fvQuYJE0RQF3vSQh2UQn3bsOaYXEJSZrPADrJBfP5BceCVx+4LO0r1hGG3gC8//Np/LXrmJjxdUhbv1YE9vzU22eAmbOPBRmieNCNFzvP8/jhaxVSL3vn4M9zBJN/bgSZgJsyplZ0KQ24oSZgq8vmE4V4+9hrkNIS8O5uPhbNOz+CprWpWRhd7Ahj9svMYM871rT38pbM/q2XvelHoeU4bpxBgt+Jjr8MAqfi80NXZEW/H1UEuOMIY/zCRPyxZr9XABMSJMP5pbelahYlsjNMi1p6402Pp8lyhWEhIBpVp2hdV1yp6nwgPAhYvzQF/+zOEpfZCfXgz6LRIMrxKsq0B5YcKsL6UxRFvBygelBdLjhZGMCx/RfTKWMCUGZzbAClvJEmtiGH97oEGLdhzBHGjL4UDyvLOmBUmn9AaamAay7GimAXgdErzG1RlX36k9el+PlgsPFtK9YRxtwtNzBl7havTZoLywYhuJRbSCNgauvBlAg9TQYDjyVHOeOWbOVxoEoo0Mn2JttpNZvOcmhfn0KTXoTr8TlITSnCrRSt8TMvV7gj79KVPDskCo+1tb/rZkLScavzcTlTARBrZUu+MB1coHNHZ8rQXEzvH4T+8yWY9DzQrj6QptFDzzRlPUj37JbM5pZMeCfZK5CNgsPt3PlbEny3LwSlHWEIqWLzcTWGfbFaCKkgml0zeyNaaa3QdqcAs+msSa2k+4OCmmYm2nyWQ98W9idabo4eqSla3EopMn6m3mRgKkJ6KlM6dV5Plz418ES3CjZE7Ar9w2X5UGXbv3bmC1NBAiqBEOf34zFhKlzLq40PuxK0i8qFutBzRdd7FjDx1zSDCKELxA2tmZoyyztqqc9tUdDlDAm+2hUCdxxhHIwrwOAJy5EvIkSCsz78Nq4rnmhpfU/BANOytgEydwQmpSpjQro/b68we+JNArzej4jjKouz0q+luDwGAzWCxnI1Kr0qPfpEZTzXv6pVwUzf6+MVBTiX6vi+hxoKQfUF4AJswWZZGF+UCUN2IsYMaINnbcVd4jp0m/qePcNcvJlTldcaUm5vVN3qnKNM1zUcJm4LhTuOMP65qMWYGWtxJcU76jGT3nwUrz1j7ZnCCBilAbLS96RucIFJtv88ZpLD/HMZSEgFXmkrrqANp2yjEYsroYRar6f44I3zxh9qNwnH8FHWNxBLj2ix6F85SKltmGV9lBrAF6RConCuh8fotCn7MSC2Fob3ELkPddDBexYwrL2JSZqtFPQpdwfHUT7mf+zjTWFwxxHG8St6zPhtCw6cZXcSnqdhLzTF2FethZcMMK2UBki9DBgmbz18mYAJbMUk5shiYBsxORzT5ucZ8PHbcUaC4OpBGDe55AbiShqP9/40gHLOt058UZbxXMPJnQuUKK+DLi8DEs0R/PJBLIIVwjULHPXgnt2SsQbHq7JeIJSYFIi8mNgeeeT6cFRQAItFOsL4L5li0do9WLrLriK06FZ2e7QO5v3PwugcgDcBo9MbsPT2CnMxFcYwdiNFuMhlKjcs/J23AMMEoONHJhj5JA2T44tvS2TTo5cX4kKqY5X9YuYacq9CEhzlMngmr8uGQasFLUpDPcUV/DCiKwrcNBwrrvueBsyKFVTSvG32aQraRPRMdJKBWaa+vSrcqNAo1hEGsyD8Y/1R/LzmjFea1EBZAbtn9rIqywiYSB5Siecey3U6A5YeN23JmCCPORIcK8IWhV0ps1Wpj8hzjyPmsDPN5P+ZNCWInMOXPz9g/PtgohZfbpEZ3SE5TxSGXBUkIa61vPnCDLCzFEuGrOMY1q02Xunq2VS6p7dkrKOJ17N7UAPP1PG9moatCoOBJ9go0hEGe+P+vC4e3yw84JX2VAoLxMmFL9sApnUkD4kXAKPV6bHsuNQIGDb5p28nmCwixmZSJnA5jeCZh1x3NzfpKi7M/xlFGRmo0qoNqnfohPAG1mcH1dUCfDP+sqkwjuCreY2Mf478swiJGa6V3Az518EFVgHhXMu0DYUZ4G8Dhuqy0Sg0EfM+8myHf88DhjEzIUmzAaA9XA+ZcIqR60KRp+XgjiOM3Sdu4s0vtyAkSIrgQCmCg6QIYZ+BMuPf7Dfzs9vP2bPi34ICZTh2szJ6NM41HuyrV7f2G8tWmNZRPCSc5yuMJWCYGcjHawm+7Sv8DPPfdSBfS9C5oWveHhg+GFqNyfRBEhgIeWgY2kz7AZysRDh5KT4fP0y5vZ0lwBdzGoO9FwbOK4S6KMDpCkP1eaD6fCNghCSDNhe8zmTsVznrMD59XIGa7Wx194SUVUxzT2/JihuZmJJThWoNZ0HgNY/EH28MRUY+B7GOMFibcrJzkJuXB3Z1zXHc7U9ivNlh0mX2aXpm/7ekLA57E6R44zHm5slWAs0A0ybKpDDoaWLhHJafMK0wLIm1ujx0iYD56WgrQO3ryuplSN6xzajkqM83+RCr1aUrol95A5zUJIT971QO5n2bZPybXYRNntsYvx4guLJrL1qkbsD2moOQHP6wlUskRkt5PfiCm5AEC/exa9DmgNcVoVL2KQy59RsqhAQg6tPvwAU5U1F0zvH7AjCsC4mqnE6UGpitvsfSJ0IIHb8lmNzIlkCsIwxPJzDLf10NrDtJMNyBjzDvAkaH5SdkbgOGOf5oVAN4sKawnl+YOwspf+81EzPIh9VvgCbvfoDAKlVx9JAai+ZcNz4PVBBE9W+M07uPo9/laeBgknSeC22ObbVeQ06QCRzselivuQhZBNveCX+JGAoyEZEThyE3fkIYNa00yh69UPdF6y2wsJ6ZqO6LLZl5pUlW9wHFMkrh6mTokgdf7QzG5UwpxDrCcFmwAAImPPztIMHorva3RkbA1GEhGoRPDkfVMj/EVoARaabM2vliCxj9QQtJ1GDAtU3rcGPXDmjVWWDfWWJbtHp9BiCwRScU6KQICJRg4VEp4g8ex4tXvrFSpGT0JxXNsKraIEgVFaHLuQ5ZSE1wAeLsEioRFZ5PnAVlTok5hiQwCG1+mAupwr1V5r4CDGNkgkrzEij93Znqi5CB/XafAhduySDWEYaQsl3RFGiB6Tsce4NkgGlbx+WtqatqjM9ZlOAVJ0tWmPeWEvzYX3gYcOY9cuKzsLE1EVK5oagQJ7/4DDlXS67gZTVqI6dlXxwNaIXrJ06j75UZkFhoHbNyK7Zqh2E3usHAlCupDgFhtSAJEmdsxsqJqZSHevmJaHPoC6vm1nvpNdTu7t6R+L4DjAk06t7M+tKuDb+QkQTw00EFTl2XQawjDIHFOyVj6h+frSeY4uC2it1MRVXgIeUIpBLTWcjdxMJArDgpN2/JPlpF8PlzwoPDjl9v0vZ1N2k1apz+ehJyVaZzS3HimUMKIoWUWrusqtDqUTR46308/bUKekghU1QBkbq+PbPXPkNuEog8DAOS5+ABzVEzSWj9GDSf+JVbXbovAcNs+oODFYSjsp8oqCm2gcj06z9BOHJNbjTZ7RDt/oQQWa2ZXEw0ZWY1yYzYGdCYuj5L7AJNwgBlvHRgj3mjnfvtx0YlS/Zcp9dj6wU5nmpiysccdLMYm5UECr3HruHwQ3/P+KPLzcWZ6VOQfdG5xWbVzl0R9fJgEI7DjO0Eu85rQSTuH1lbV45HbmYSzl1OR+2im4g0ZEJpyETdAC26zpnv1tDdt4AptulPNJ1rplMKUY6uFh8PxL5LARDrCMMtLtvJJAYw3qqTlcOCw7JYLUoBwWHZWWvBIYJxz3jeAiZxv7R0AZJ3bIetdT1B7T4voebTPc0VMbe2G08Wur26sII+6JyD5x4JQU6+FkfOp+DA2es4fO4GsvO1qFk5BE3qVEaTupWNn9G1K0AmILT1fQ8YxhhKqfTi9ewBoPQjSiFAxAasOh2AbfGBRr0qMY4wPJ86phLuFmBm7ibo2oSioYAL+uPXgKvpBIMe9VavgctnE5C7fyuyz58Bc2oRVKMWaj7XBxVbWGuELjxMsOxIAYjUtaqMo9Z90CkHz7WwXkoNPMXZy2k4ePYGDvx3HVdSTHIjBqCVn7verJQJwBQzjKnzJyRlPcZJuJ6UxwsAHEoP/joXgA3nAiHWEYa3ps7dAgyTeTwSRdHcuecDYzdXHCN4oBrwaH3v9Fqr55GWmY2ICNe3XWtOEvyy17MVZmRsLnq2dH4bdv5qBt6Ytg3d29TDOAFvhjIFmNLDGp+c1UxCycs8xTu3jcrMJDvi5VhxOghiHWF4Z+rcvRXGGBy2EvCYABB8sZHggycpqoa6f+lgya/MXC20RUUIDXV9gGJueb/d5tkZ5r0OOejd2nldm/+5gkkLDuOzQe3QrY1r2+0yDZjiwbp4PUNJeelKSqlZSX3/ZRkWHVNArCMMbwFm/AaC8c9Qt65rPWkDCw7Lggw9YVLhcprWnCCoH5qKGmHUaC4tl8sgl0kgl7FPqWhdt6upuQiWc1AoXN96MSd849ez62/31YPeeSwHL7Z1DpixvxzA7hNJWP9lL1RmjgtcJL8ADOOBSkWDCqiGaQoYlYn+TZJh/hEF3HGE4YqpQp7/sC0PrzRPhYxPg9yQjmCkoTA/HUV5aZDq0wBZBQQ0my6kKFE028/BGODpOYHBYfPy8qDT6aDT6Y2flolpUxeDhznscAWkfxKzEFNDAbncteIk8xIzYinxSBj1VrtcvPSo4y0Zs0Z96qPVqFpBgcXjnhXEx/saMCZfZNmTQCjTmZCAEC0oUglPU3iOnDEYtCcb16nCrDaN6ZxKU1HK0xOEIOrMDSlmHnDPEYZLzhoKAW0aivLSQXRpCKRp4HTpKMxNAy1KN36XE+cRAHjKIb/pckhk7h967bXz70STao47wWHZ9bZebwJOMYDY38Zrb4vEtKwZeAKMq5IJSDKZFOuPpqFr8yqCNBjYDd3AXwwgnPu+2Qa3zccrjzleNY7G3cR7P+7G8+2jMWaAMH8r9zVg4pKynudA1jmawExnjKf8fwRkAwF+j46MuJSoyupEKdkdnyoh0/e65wjDUX1c3MdA3hUEEO+YL6fU+BwRNUQa07tAM7v5OpNM8LoXg8PqDXrotHrojUDSQafXgXmrKZ3i0uV4vKkwiT2TJ/WcqYWBBLp8PzkieK1NIV5r71iO8/2qE1i2O8542GeHfiHpvgbMRVX2RzzlpwnpKCGEOa76i5dynxCeTriaTvpP2RnqliMMhwC9MBaBBaeFNEcQTU7FvpDWeU0QrVCiCynA7jjHip9Cy3FFxxz/mVYi0//sPD2u5wWgXUOBSmkAXvtVj7R819s3R215ta0Orz/m2FVVnwkbkJyWa7xOZtfKQtJ9DZiEpKzXAfKbkI6W0JAiQrDyZjZ5adyWUM4dRxiO6qOqRVCkLRPXHCfUt2gjhLXw7jmGBYdl18Uf+Tg47K4LBCz0uZh6P1oJnL/p/qH/5dYGvNnBfv5rN7PRb9JGVAoLwoavrC1enQ3gfQ2YC1ey6kil3CV2lhE7S7MKuMIxf4UGuuMIw1FdhszjCLk6XmxTHNLrqRT5TVdAJnNfPaR04cbgsPsIJjzrmbqL2E4evgxsPy+uXubM7+Vfmbss9661X2lDMdhuABRgyc4LmLnmJGKbKfHlW8KNyu5rwLBBS0zSbKBuWGOyWCoj1rrnCMPRZNEX5SLk3ACmVih2PjmkV9WYiso1RHrec1I7i1HJ5Ct3Kjiso6rPXgeY9P6bPsKB2uSRWKSlZbjNy3FjhuOTD5kIzja9891OnEhMxVs9muHVbsL5e98DJu5ydkNOxh934enfhmPsUDl0ZRgCZUS0IwyHWzJmqPPfcATorrk9yKUzZld5DTKlKUCQNxLr98jlJhV/X6ZrmcBXmwnmDBReb2R0CxQWmiOaiG5uj+5dsOyPH23yMd2ybmNWg6nJfDv8cbRpLDzO6H0PGMaN2zYyi8Q6/Ru+Ogw6A8FfIh1hOBs5evE7KLJ3ih5cRxluSR5FWLNxXiuPFeRJ6D53G5KWC3y4gmDhG8IAw7Ssa9Vlpsrup8jaNXHh+A6bAnYcu4bPfjto/H3z1D4IZ5JcgalMAIb1NVGlHkwpmQ1QwRf3H6wPRU6Re44wHPHXcGMTQm7+LJD9rsnU+soIaO2ux1z75Yu163fdStcUuYXA6wsIVg4VBpjMLDUeaOrgAOK6OjNFcvwhVCiluzbh90PYdvQqqlcMxuovSjSkhRRbZgDDOnsxOaczpYaFlEKQp4Sxm0KQlidxyxGGI+Zqs+IRfuUDIbwXTJMWsxghIc79CAsu7C6Ndg0lAAAdVklEQVStMEws88Jsgg3DhQEmSXUdLdt55hLJuIKs/g2x7UvcdrJtWPcxq40q/h2bKfGViAM/K69MAYZ16NKlzHCDlHwBwr0FUKdr7efbQpCs8a4jjMKCfITHDQRH3d97l578qmqTUblWczGYcErLzjDT+/hej63HLA5r32YOCl135dyFeHTuahtsynVOa4qvPv8II4aVyLJOXUzFsG9NW+bXuz+EISK9lJc5wBSz69KNzEheLxlFQVnEIrvmUlN3B+NiuncdYWi1OsjjP0KQznvxIDVVh0Bem1kreCcZg8N2pwhzX4juVkN6zebwx+u8oHr/OXoCPXrZBpsSW/GAvj3wy6yvzdl+WnsKi3aYnKFPHtIBnZu79qBpWWeZBUxxJ69coYE6ae4zlOqfIyBPM59uxc++36/AuZvedYTBJNz6+OkIL3AVn1b40N8K6oawRu8Jz+CCcvImgiEdKKoLF7p7pe4B8zl8148XVO+uPQcwYNAwj+tt0iga/+4t0Z4a8MUms9HY0vE9ECnUHc7tlpR5wFhyfA+l0lqq7L4A/QlAhTmHgnA8We51Rxh5FxejcvZSjwe7uIAk/cOo0nqK18qbsYPghebUGO7Dl+n1Pzh89iwvqN71G7fhzbc/9Lh5LALCzr+PQVMkR2w0Na4u566m49J1tVElRqyDEb8CTDH3LyblPMhTw67fjwZVPXTV+44wspP2oVq6IBU3QRPiprYWwtvOE0QrhGj2PoKO0dSoR+fL9O5SDm/H8oLq/XP5Gowc7R2tic9/XIlNyU2wY5RH1gJGVvklYFjHL6k0Ty85EbhxV6KceNsRRuatS6h1fYTX5mK+IQR5TZcbDb+8kVhw2MY1KFrV8UZpwsv4ZC3BCw8LC0o7/7fF+HRCydnDWS1FOSmQh1S363aX5XtlxGTEBfbCxveAIMFCB/s1+i1gGDsGL9Cvvpgm6eVtRxgZGZmomTQYHNUKn01OKHlIcEG5AfWE+eB2WefKY0DVMCDWO0G5XNZXTMDOTu3qUzxuinDhNH0/cx6+nGYrpS+diflxLkhPgFRRGfIQ+wzq9OxA5DUei5VDgYruObw0V+vXgOn8LR3L85jibUcY6iw1KiV9CLnhpqt5Ieg5DxkOV16PRyKFyTBcFbrxDPNZJj44rKtyXT1nvsYaVqeC4k1OmfoDfpjl2ncYb9CiMOOS0edyUOVoEGM4cuvUuGkrBHdbgIVvALWs4++6arLNc78GTOx0yq6efvS2I4zs7ByEJY1HkNYUactZ4kkg9FwE9JIKMEgijH8bjN/Z36bftCQcudLaeKC6q9KEPd8dB2Tliw8OK6x0x1Q/7SWoGkrRt4XrksZN/Brzfl3skpB59S9IN13hy0KrQxZkK+ANCQ1Do7ePYO5AoIF1DFqX5Zcm8G/AfENfB8Fv3naEkZubi6CkbxCou2yc9CZARJgBwcCRVlgZV3KC0aSmAhwnQYBcYowHI5FIwIN9MjPfkt/shcUQPdq3Mxy5DLDwfQNFBod1t77ifMyxuVxCBdX7wZgJWLzUdXh3Zh7NtmSgPCQBIQgIt+8/qtmw3fj5zep4yDoGregu+TVgOk2nTNl8pbcdYeTnFyA9U2MMDhQYIIFcwoGTSGCgnHHLECTnIJVIMG2H1BjywtcCRBYc9shlgrdEBocVPbtKZVjyDwGLLyqk3mHvjsGa9ZtdV0k4FGZdBa/NM/JbUcX+wSy692z8PDoWAjwpOa3TvwEzjXajHLa0b0DxSXfvnA9cj3AJxfe7TG5bq4aKyeU5bWIqsOkswcguvu3zyuPE6IBDSL2DBr+Hrdv3uOxshVqNkZqwH7q8NCNtYKUG4CS2V2G1OozE7ClvoZOHFx3+DZjptD0F/m4RRTHpOd9OHja4c/cRdHuQGh3r+TKxScuMuXz9kmDRmM/dgKB6+wwYgv0HjrhkS6+Bb2PlbzNQpDbZILEtGdualU4VH3gaX0/92ii89HZSVpY7NQllzvOLfYG7W7d7Nqe3a/NGA1hR7WfQZhKKU0yAN62396wkhTKFyUPa1qVo6KXDvNB62YH/2x0EXzzv/cnjrA07zhPsT4SgepkeGdMnc5V++nE6Phz/PTITmEIlhSykOmQK24M/W3mmzV2Lpxp7f5z9BjCPT6P1DRwuetMRhqsBtnzOnFHEVAMeVvp24hbpmata4lHcFzH9LKZl8TJXn4Cgep98+kWcPmtSknSWVi/7BZNmrsc/G2eC1xVAqqgEeYjtVRjhpPji1wN49qE7x+uYyAi7C4E3XvA+XWFU6Vo1ABsP2MzJwvDlMnjTEYarAbZ8zrYoVUKBR+vduUF01J67YUR2OhmYs49g9suu+9uhy/OIT2DyFedpz/bVWLXtFL77/F3o8zMhCQxHQJh9nZ/RU5diYJc7p95QZgCTnKHLppTaHK3Zm3bwYhkqKIDFg72/VLsabLZFYbYhnRu6nkCuyhL7/G4AJuEWwKT9QsyUWz3WDdeSkl1268zR3ThwLgtDBzyFIo0KnDwYgRH2VfYrP/jCzKTdX3pPZ8ll60wE990Kk5yhi6OU2kSaZx5OBy2UIkDqPUcYAnloJDtwkSC7AHj6Dm4THK4wIoPDiumXI1pVJjBqBcGqYa5fEA+16IxbqaabL2cp+dJJ3MqRoGXL1si7cRKcNAiBFe2vIopqDZemn133kqsyvf38fgTMJkops4WxSUOWSFGoI9joRUcYQhl+SgUkZZK7EtBp3DpgsjhzdqHdckiXlQcMWcReTq4Bw+z5mV2/sxQcrMCVuH+NoQof7DwESf/+aTz4B1WyH8tDHl7zhDpxlwA9A4+7alXAfQcYVYb2V1C8YY8N7y6XQl1AsGoojyD3vZK6zWHm9siDmK9u13u3Mgrtb71GbZCbm+e0mbVq1cDJIyavMK99OAvrfp0IfVEOFJWj7earUKUG9mxZ45WuOzqv2Cv8vgNMcqZuCuXpWHudGb1GipvZxKuOMLwyIn5eSGSDR8AiQDtLDzZ+ALu3rTKSzPrzAMa//xK0OSlQVLHZfd8uhuDQ/p1QKDyPiFCmAaNK17KD3g/2mP/ZXxJcyeAw/xUeNT3UZPXzOe7V7tes2wx6vcFpme3btcaa5SbX2gfP56Dnk62NipiKqo7tB1at+BMPPdjE47a6kr1YVnD/rTAZ+r6U8ivscWnyVgnibnL4sT+P+l6yN/F4NMoLQLXIh2zizpRmy9PduuCP+ab3YE4h8OCjzyMzfrvDMwyjm/rVZPR8vofHHC7TgLmRpetoMFC7Ximm75TgVDJn1G96srHrw6jHnC4vQBAHqipd+zvu/2JP/Dhjsrm8zv0n4sSWHx3KYRjh0DcH44NRnt8sl2nApGTROnqD7oq9kZq1T4IjV0Q7/xc06OVE7nPg6DS2bXL+AqvW4hVEdvnEXEna2bW4uGY4pEGO99ZPPv4YZs3y3DNpmQYM42hyujaBAjbXJxvOcFhxggHGI+UD92dGeU67HDg6/SGAd36GqfHoMNTuULJaFGZexem5T4CTOL7ufCCmAf7dv0EQ11MyrWN6WmYq84C5lqEdyVF8J4hTlkQc+URZUSbMG4PowsVlSEhSO3zlBtm5+alR0UOPD+KaZ5fa0aQryM+3oi/d/ocfaYOCQudxQCeOHYUPRrxpLocZk8U0i8Wt1HSHLQ+Qy3Hj0jFjzE1Xya8Bw4IuJWfoFgJ42RWjip8TQlbVqijtbwz3dw8kfwJM23YdkaXWOOX6tMljMWzIQCuawW9/hJVrNznNt37Fr+jc8VGXI+rXgCnmjipT353w/Es80IIALDAIM56QMFBQSpmkLAUEJzmeX1qrSuBfLrnqQwJ/AkyXJ7sh+bo5ALZdLs+cPgmvDuxj9ezPFesxbETJucZexrfeeAnTv3QdQqTMAyY5TdeZEspcjdjXjfDm5Ka4REDerF1F5tos0Ev1+hNger7QGxfiLzrl3PyfpqJfb+sr4vSMTDR4qCOYy15HSVmrJs4ddx3Dp8wDRpWhvQQKYfGjvTGJCS4rK8nvPDhvt9WfADPwlUE4etx5ROpFv/6A55950mYkn+zxMv45etLpCB/esw5NGjm3Vy77gEnX+lyQIua2xFOM+hNghg8fjp17Djhl2aolc9C1i21A1x9//h3jJn3jNO+EsaPwocWFgT3isg+Y8hXGatzv51uyTz75GGvWb3E66Teu+h0dLYIlFRNfuapCs7bOgzG1a9MCW9ezKI+OU5kHTPkZxnrw72fAfP3VFPy+yK42k7mTOzf+idYt7cfB7PBkH6cmzsz/29ULhxAe5thlT5kHjOV0SUzKfp6CLwkMAnIjJjLcyo3bRZV6Kk8xxpyPIjsmqiQgYkKS5jpAzfauBFzP6Miw9Z5urdzN709bsjmzZ+K7mb84ZdWBnavR9MFGdmm+/XE+Jn7pXOy2cP536NnD8UrkX4BRaSZQSieauUnIphhl+LNWoFJpFlFKSy7yCYmLUYabRyBBpdkISp8pzkMImRitDP/c3QnvaT5/AsyyJQswYcq3Tll29O+NaBht/45HyLZs0Et9MOvbSQ7r8DfArKOUPm/BjSkxkRFWl++JKvUuSvF4CSCwO1oZ0aX4e0KSmmn2fWoBmPXRynAf2ymW9MCfALNt8zqMGD3BKWDOHt2BKKVj36+du/XD8VNnHZZRu2YNnD+xqxwwjAOJKvU1SlHiDYGgT4wywspZb8I19QUQlBhPULokJqqCecVJUKl7g8JkocS0zQiSopURUZ6uFO7m9yfA/HtoL14Z8r5TViWe2Y9qVR2HUftp7kJ84iLGjLNVqsysMKcTk2s3i67t0KXIheTsSlJK0yilJRqVFPVjoiIuW59z1Ew5q8T9EsE3McoI85km4Zq6HgjMvn4IIVRPSJVGtcMy3J30nuTzJ8AkXjiJZ3uXRD+2xzdV/BGEhzsO1JlyMxWNHnncqRDzmymfYuhg+9pS3gKMq/kqZE54pBp85sy1CjRIEmww2BfnKoKC23NEsrzk/IKc/PycRjzTzrudQoLCAi3BwH6mlH6eV5Bjjo3HEUIUitALoDBfpfDU0C+/IM+5gEAIB9ygCVGEXXeUrawpX2bcvIx2jzuPHJ167SQCA5yHZevR9w3s+9uxy9mnn+qMZQtYyFPb5Awwaek3BcUBkEg4jhQY8po2jcpyY8gtprAnuV3kTVCpPwKFOcgkIdgbrYzobJntokrTgKfUKjY4B/RvEBlRAjTT1m4Ppehk0fIxMcoI51KxO9Q3f1phaFEmHmhuNWQ2XNWknHMYpq+YePGytXhnpPkYalNGSEgwkuIOQyq11V721grjjeng0QrjqgGJKs0SSqmF/ynyfUxk+CjLfAlJWR0BYmWFKZVyHevVDPvbmk7zHUBHFv9GCPkzWhkuWOPZVVvFPPcnwFQI5lE1qrlD9jA1/bSkUy7Zl52TiwYPdkBhUZFD2u0blqBta9u6/AcwSZrzFNR8PcxR8mqDqHCm2m9O8Uma/gTUKjY4R0h0A2W4lcbfxWuaQTyhC8yAAbkQHRne2OVI3QECfwIME7pWr9sC+QUFdjkZFhqK5MR/BHH5taEfOtUa+GT0u/hk9Ds2ZfkFYG7coIo8gyabUpiDHUqItGl9ZYjV/WJikmYUBbW66A+RhgfXrEmsLJsuqXIfMlD9mZIVBoZgSXhYaTpBI+chkb8BpknLJ6BKvmGXa1WrVMbFs/sFcXT7rv3o8/Iwh7SO1GT8AjCJydmPUp4/ZMGdwmhleCghRG+11VKpp4HiI4vfNDGRETbG4JRSaaJKk8Ni9ZhBw3HtomuHHRY0Wl4kEgsYL1bt9aJcWVyyCnv1HYBz5+x78K9Zswb27NwqqF16gwGxnZ9Eerr9y01mffnv4QNQKIIElceIfKl0y+q7Y2eY+CTNOwS05NqDkKMxyvDWpTmRqNIsppRanEXIhRgHW60ElYb5I21VXAYFGd4wMtxzTwqCh8dE6G+AGfzW2zhwwPLdV8KwunXqYOtm4VpKX0+bjt//cKxs+cu8n9Gh/WOCR6TMACZRlT2PUr7E0Jtw82KUYUNLcyL+mno3ISi5hiFkV4wy/Al7HEtQZc8F5d8q2ZZx86OVYebvgrnsIaG/Aeaj/43Fhr/smxs3bBiDDWtXCubohbg49OzVzyH9kMGv46MPzXc7LsstO4BJ0hyloC3Nkxt4JzoyYnZpDiRcU8eBwOxTlFK6uGFUhVfscSoxSf02BcwrCgE5Fh0Zbl5xXHLXSwRiAXM/ayuztn88/mv8PM/qrsbMyRbNH8KeLVYSAJdcZnKd/87H26Vr3uxB7NtmrR1d5s8w7LxxUZWdQ0Etzhvk0eja4TaSq4Qko4cFs5iYI9y0Bsqw/9kFTLKmLeWp+cxCQAobKMNszkUuR8xDAn8DzLTv5mDy1B/tcq1d25bYus4+mByxedacBRg7cardxxzH4VrcYSt1/zIPmMuqzKZ6ylnatRpCpPlhNWvWtLr5unmTBmdrNbmWnCOUjIqOCv/eHjdv3LihyNUrspmzjOLnUsI3q6esaL498xALgrL7G2B+W7gcI8fYVw5/PPYxrFvO3DcIT2npGWj4cGfo9Vb3P+YCmMSfSf6LU5kHTPy17FcJ4f8o2Y6R89GR4Taepy+pNNEGShOsAYN+0VERDi2WEpM05yioWf5CKfdaw6gws3xG+LC5T+lvgNmwaQcGDravgNm9a2csX2hfpcUZh/u/+i42b9ttl2T40Ffx1eclm4wyD5jEJM131FoqvyRaGW7tuMqo7pIVSynZa8k1Cr5jw8iKVlJ+y+elb9UIyPfRpbQH3IeCsJz+BphDR46jW0+7x0qj4RczABObNm7ZhZdef89uNmaMxozS/GaFSVSp91KKWAtufBQTGTG9NHcuXtf05w3WUn4CNIiOjHAYhTQhST0agFmHjBDsi1ZGlOiYiR05N+j9DTDxiZfRqoOVzZ+Za/369MD8WfbPI85Yq9Pp0fDhTmDumEondo5hZssRtzWgy/QKw1T5L6o0WZbq+pTiiYZRETYWQolJ2R9Q8DMsGRakDFcoCbGvhwEg/pq6CyEwO7MigKaBMrwCU/l3Y+67lcXfAMNC9tVp1M4ur159uQ9mznBsLemMwWMnTMOsueaduxXp0j9m4ZluJpvCMg2YxCR1fQqY9cDYRA4MC6usDCc2r5KEJDVbKdiKUZzUMZERFZwxWaXSVCwE0i1tbFytSm6hwkkmR4Cxp9rPirnfr5WZM75KymYwGGw99Qr1XmmPnefjEtG2k6UxbgmV5TmmbAMmWd2H8jBLsgjBtWhlhN1wuglJmiWAlTbz+Rg7lwOlmZ2oUl+lFGaLS8Khb3TtCLNFprcBUro8fwMM6z/zYpmaZutc/L23X8eUCZaaTeK437l7Pxw/aWu+3Oyhxvh7h2lIyzZgktRTKGCOY0kI1kUrI+xaICUkqZl715LzB8WumKgIu1J+y2FIVKnXUgqzTT8BvoyOjHBsbCFuDF1SiwWMywLvIoEQXTLWvB49+yAhwcpsydjqYUOHYNT79g/vQrq1bPkqTPj8CxtSdo759/DfCA1lLrcdp/te0p+g0myCRWhx5jGmYVQFu5f4CSpNHCg1S/kJIYuileGDXDE6/lrWBOY5xkxHyOYYZbjZq4yr/J4+90fAvPbGWzh8xFaNf8S772D4OzYaT4JZnJubi/Ydu9gNqTF39kx0irX1qGlZuM8Bc+PGZa86k8jVVzwGwOwRQQLD4CCpxq5LkFxDxXOgCC5mAOEwO5jLdHnlUqAP72KA5FcLxqWHSDPNajiCR8tNwlx9xav2sjo6w9ymTeCobjTR3bpjQlaDvLbddjnrptAV5oPRH2PTZlsPmLVrVv1q7+bf57rJSmO2Zu36TM3LLzArmAVWqo+qD/dD96c6Y1T3CiASx/F1JNpku9t9T9rjLO8d01a+Uw0uL/fucCCoSqPvCYGN9JJS8n5B2nn7ejMCmxpUpUl7TsL9HRHdBVWbD0CYspXRNZA+Lz394IQq91SI4HLACBxUfydTVGs8FpROseUDHZafGufRCtNxOh1nyM+YKFVUMqs86fLSaW7y0U1n5j/teahlLw5eOWC8yMyyXJSiWqMhoLBRGiOUvpaXFueRalLsdPongAGMfwUZl6G4sARtcw4e/XrXNhv7qbvN43sCMGcSUyy1Asw8aRpdw+gcw9FzMcwrLktMnnLaEg4oqjV8DpSzsRSjPAYUpF9Y5gmvOs2gbXke069tm8A9l7enaYNQWXCAhKMNK4ZFdl6yxqHfO0/qdDfvPQEYdxtfns93HIj9xpBm0BVUpgYteH0ReL0W1FAEWXDl/w5+VvEhIS1JSbli98VYnLdGjbr7furWZVGYXDawYlAAgmTSMY8vXn1XXGk56k+ZBYw3ViV7TLvXVipXk1DIRHZGwyYxex47nf4LwJ6xXuK+0cR5CDERjdjzWs8IXsvdvJRTGDDt7HXt9QLtmIJbF34QUcQdJS2zgLmjXPPHwmu2UCj0+SxYr1XiCN8l91a8fT19kXwqBv9Xg975fuHZaw9reZN6YLWqlfYe2rGoRO4motxiwIvI4pS0HDDe4qSflDPrqS5aA6UyAtAR23dz3u52gyffH3vj9HYWrcE0Nyl0lCOjC255dnXtrXaWA8ZbnPSTcna/3PsyBa0LILPLkjWVvN3tyk2emp+fljTEVC5N43j0zU2Ps/KM6u06xZRXDhgx3Cqnxe6Xe12gYKFJSF6XJaudK3qJ5xdRVG3ETNvZJcI5nqPPFt6ME629IL5a4TnKNGAopfLkbIRIDAgBj2BQnUJPiUIqQRD7JNSgAIgCBIGUkkCOIIAHH0gIFwBKAkH5QEogJwRyUCKn4OWEcDJCIQeBnFLIACoFAfOgLQX7TnH7O5UCHAdQCQjhQKkEIKbvAGf8m4DAFAqEEGIcCnLbbMH4m3FDAtDbtj70dtADCmb7w/6B8gB4gBiMfxNiAGW/se8sogLRg0IPYvyvA2D6DqIn7DuFlhJoKeV1BJwWhGophZZQaEG4QhBaSClfxIEr/HbR1mZrli2unp/8X6tcHW92bhJdv/6cLRvW/AIiyweHPIMEubXDkEsI0QqfhibK4KqNXqEA86hxOF9X1B1Zl5mDlHsq3dOASU2lIQYZKuv0usrgSCUJIRUBvgLlSQVKEMGBhPOgEaB8OEDCKBBGYAyJEUKBEAI2ocuTOxw4dfoMzp0/j/j4RJw5+x/i4uJZGBKbotq0boWFf9jGwKSAjgDMwUkuBXIIkA3QbBBOw4GoeVANoVATjmYBXJaB0syWrR79SSaX33rhuef7zpr2P/u+ad3pjBfz3BXAUEq5lCzUNhj0dQmhUQBRArQWBalBCGoAtBqlqAZAuM9QLzKlvCjgzaHDceCgydslc+Eqk8nNoSiYIRn7r9PpUCEiAn/vMxvAepN1BYTgFkBuUYoUApoCEBYcWEUpuSaRSK/UqIBkQghbZX2W7jhgKKWylCx9WwOPdoTQhylIE0IRbemzzGe9La+oTHGA+aWjBIkE9Byl5JSEw6EaFaRHCCFs+3lH0h0FTHK6bjIFhoNtm8pTOQd8wgGiJsBPtSvLrAIPe6vqOw8YguGg5YDx1oCVl+OCA4SoCb1PAcO6Zt6SAe0IpQ9TigcBRANwHhSxfGaUc8A1B1g4s0RC8B8l5JQE9/mWzFF/iw/9hOjrGkCiYKDmQz9AaxKCqpSSagAtP/S7njRllIIUEELZgT+VgqZwIDeMh34JUUlAr1FaRg/9noxm8bUy1esq6+1cK5vORiS8/FrZEy7fmbzOrpUBqgGImhCoCUqulaU8zSBSWbpEh/SqVYmVz+0700rxpd7RM4z45ng3hz3BJSREoadQSDkSZKBQgPIKUAeCS8IHMiElE16aBZeAnICTWQouCYHUJMQ0Ci9vCy6JlIJKOJOAkqNMcGkrwCTMFJdYCCwtBZilBZbsO5NWwiQPoaUFlsQouGQSS8oTkzCzRHAJGIWVtLTgEryOAtpiwSUTWjJhJqi14JKnKCKEFoKgEITLlxDk63laICXIh4Hme0Nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg=="},16722:function(gr,zn,pe){"use strict";pe.d(zn,{Z:function(){return Me}});const oe=Pe=>typeof Pe=="object"&&Pe!=null&&Pe.nodeType===1,qt=(Pe,ce)=>(!ce||Pe!=="hidden")&&Pe!=="visible"&&Pe!=="clip",Xe=(Pe,ce)=>{if(Pe.clientHeight<Pe.scrollHeight||Pe.clientWidth<Pe.scrollWidth){const ke=getComputedStyle(Pe,null);return qt(ke.overflowY,ce)||qt(ke.overflowX,ce)||(Le=>{const Ve=(Ke=>{if(!Ke.ownerDocument||!Ke.ownerDocument.defaultView)return null;try{return Ke.ownerDocument.defaultView.frameElement}catch(He){return null}})(Le);return!!Ve&&(Ve.clientHeight<Le.scrollHeight||Ve.clientWidth<Le.scrollWidth)})(Pe)}return!1},Ht=(Pe,ce,ke,Le,Ve,Ke,He,Ge)=>Ke<Pe&&He>ce||Ke>Pe&&He<ce?0:Ke<=Pe&&Ge<=ke||He>=ce&&Ge>=ke?Ke-Pe-Le:He>ce&&Ge<ke||Ke<Pe&&Ge>ke?He-ce+Ve:0,rt=Pe=>{const ce=Pe.parentElement;return ce==null?Pe.getRootNode().host||null:ce},at=(Pe,ce)=>{var ke,Le,Ve,Ke;if(typeof document=="undefined")return[];const{scrollMode:He,block:Ge,inline:ze,boundary:qe,skipOverflowHiddenElements:pt}=ce,Bt=typeof qe=="function"?qe:mn=>mn!==qe;if(!oe(Pe))throw new TypeError("Invalid target");const vt=document.scrollingElement||document.documentElement,yt=[];let Nt=Pe;for(;oe(Nt)&&Bt(Nt);){if(Nt=rt(Nt),Nt===vt){yt.push(Nt);break}Nt!=null&&Nt===document.body&&Xe(Nt)&&!Xe(document.documentElement)||Nt!=null&&Xe(Nt,pt)&&yt.push(Nt)}const Et=(Le=(ke=window.visualViewport)==null?void 0:ke.width)!=null?Le:innerWidth,pn=(Ke=(Ve=window.visualViewport)==null?void 0:Ve.height)!=null?Ke:innerHeight,{scrollX:Pt,scrollY:St}=window,{height:jt,width:Je,top:wt,right:lt,bottom:Fe,left:Zt}=Pe.getBoundingClientRect(),{top:$e,right:At,bottom:Qt,left:Te}=(mn=>{const Ze=window.getComputedStyle(mn);return{top:parseFloat(Ze.scrollMarginTop)||0,right:parseFloat(Ze.scrollMarginRight)||0,bottom:parseFloat(Ze.scrollMarginBottom)||0,left:parseFloat(Ze.scrollMarginLeft)||0}})(Pe);let xe=Ge==="start"||Ge==="nearest"?wt-$e:Ge==="end"?Fe+Qt:wt+jt/2-$e+Qt,It=ze==="center"?Zt+Je/2-Te+At:ze==="end"?lt+At:Zt-Te;const Cn=[];for(let mn=0;mn<yt.length;mn++){const Ze=yt[mn],{height:Ct,width:_t,top:In,right:xn,bottom:Wn,left:ct}=Ze.getBoundingClientRect();if(He==="if-needed"&&wt>=0&&Zt>=0&&Fe<=pn&<<=Et&&(Ze===vt&&!Xe(Ze)||wt>=In&&Fe<=Wn&&Zt>=ct&<<=xn))return Cn;const En=getComputedStyle(Ze),Rt=parseInt(En.borderLeftWidth,10),be=parseInt(En.borderTopWidth,10),de=parseInt(En.borderRightWidth,10),le=parseInt(En.borderBottomWidth,10);let ye=0,Ie=0;const he="offsetWidth"in Ze?Ze.offsetWidth-Ze.clientWidth-Rt-de:0,We="offsetHeight"in Ze?Ze.offsetHeight-Ze.clientHeight-be-le:0,tt="offsetWidth"in Ze?Ze.offsetWidth===0?0:_t/Ze.offsetWidth:0,dn="offsetHeight"in Ze?Ze.offsetHeight===0?0:Ct/Ze.offsetHeight:0;if(vt===Ze)ye=Ge==="start"?xe:Ge==="end"?xe-pn:Ge==="nearest"?Ht(St,St+pn,pn,be,le,St+xe,St+xe+jt,jt):xe-pn/2,Ie=ze==="start"?It:ze==="center"?It-Et/2:ze==="end"?It-Et:Ht(Pt,Pt+Et,Et,Rt,de,Pt+It,Pt+It+Je,Je),ye=Math.max(0,ye+St),Ie=Math.max(0,Ie+Pt);else{ye=Ge==="start"?xe-In-be:Ge==="end"?xe-Wn+le+We:Ge==="nearest"?Ht(In,Wn,Ct,be,le+We,xe,xe+jt,jt):xe-(In+Ct/2)+We/2,Ie=ze==="start"?It-ct-Rt:ze==="center"?It-(ct+_t/2)+he/2:ze==="end"?It-xn+de+he:Ht(ct,xn,_t,Rt,de+he,It,It+Je,Je);const{scrollLeft:ut,scrollTop:zt}=Ze;ye=dn===0?0:Math.max(0,Math.min(zt+ye/dn,Ze.scrollHeight-Ct/dn+We)),Ie=tt===0?0:Math.max(0,Math.min(ut+Ie/tt,Ze.scrollWidth-_t/tt+he)),xe+=zt-ye,It+=ut-Ie}Cn.push({el:Ze,top:ye,left:Ie})}return Cn},Dt=Pe=>Pe===!1?{block:"end",inline:"nearest"}:(ce=>ce===Object(ce)&&Object.keys(ce).length!==0)(Pe)?Pe:{block:"start",inline:"nearest"};function Me(Pe,ce){if(!Pe.isConnected||!(Ve=>{let Ke=Ve;for(;Ke&&Ke.parentNode;){if(Ke.parentNode===document)return!0;Ke=Ke.parentNode instanceof ShadowRoot?Ke.parentNode.host:Ke.parentNode}return!1})(Pe))return;const ke=(Ve=>{const Ke=window.getComputedStyle(Ve);return{top:parseFloat(Ke.scrollMarginTop)||0,right:parseFloat(Ke.scrollMarginRight)||0,bottom:parseFloat(Ke.scrollMarginBottom)||0,left:parseFloat(Ke.scrollMarginLeft)||0}})(Pe);if((Ve=>typeof Ve=="object"&&typeof Ve.behavior=="function")(ce))return ce.behavior(at(Pe,ce));const Le=typeof ce=="boolean"||ce==null?void 0:ce.behavior;for(const{el:Ve,top:Ke,left:He}of at(Pe,Dt(ce))){const Ge=Ke-ke.top+ke.bottom,ze=He-ke.left+ke.right;Ve.scroll({top:Ge,left:ze,behavior:Le})}}}}]);
|
|
|
}()); |