@bigduu/lotus 2026.6.1 → 2026.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{App-BXg9aOQo.js → App-CiBjfJbZ.js} +57 -57
- package/dist/assets/{MetricsService-CS2FzJEZ.js → MetricsService-B6NNBaFU.js} +1 -1
- package/dist/assets/{SubAgentsPanel-CTmxBJOI.js → SubAgentsPanel-CJmIvsg3.js} +1 -1
- package/dist/assets/{architectureDiagram-3BPJPVTR-CfNd2ju1.js → architectureDiagram-3BPJPVTR-B6Aigvp7.js} +1 -1
- package/dist/assets/{blockDiagram-GPEHLZMM-CzaJ_pbA.js → blockDiagram-GPEHLZMM-BG4jFash.js} +1 -1
- package/dist/assets/{c4Diagram-AAUBKEIU-ypj9j2s3.js → c4Diagram-AAUBKEIU-Bmsq6Nwl.js} +1 -1
- package/dist/assets/{chunk-2J33WTMH-cxR1lkw0.js → chunk-2J33WTMH-BeBOyD8r.js} +1 -1
- package/dist/assets/{chunk-4BX2VUAB-BMCnsVjr.js → chunk-4BX2VUAB-CvWY7Izk.js} +1 -1
- package/dist/assets/{chunk-55IACEB6-D5qDBBVU.js → chunk-55IACEB6-CSRfOrIS.js} +1 -1
- package/dist/assets/{chunk-727SXJPM-C74VNgAu.js → chunk-727SXJPM-k_VOeRRa.js} +1 -1
- package/dist/assets/{chunk-AQP2D5EJ-DbUWOqIq.js → chunk-AQP2D5EJ-eCCYzF54.js} +1 -1
- package/dist/assets/{chunk-FMBD7UC4-BVb6PdZp.js → chunk-FMBD7UC4-B7yGAY4w.js} +1 -1
- package/dist/assets/{chunk-ND2GUHAM-v91-WFgP.js → chunk-ND2GUHAM-pNlL9ELu.js} +1 -1
- package/dist/assets/{chunk-QZHKN3VN-xcLEyNod.js → chunk-QZHKN3VN-C46sDVU5.js} +1 -1
- package/dist/assets/classDiagram-4FO5ZUOK-Bt1SwZSt.js +1 -0
- package/dist/assets/classDiagram-v2-Q7XG4LA2-Bt1SwZSt.js +1 -0
- package/dist/assets/{cose-bilkent-S5V4N54A-DzcQkCVo.js → cose-bilkent-S5V4N54A-BbJSEGbL.js} +1 -1
- package/dist/assets/{dagre-BM42HDAG-DV3G1jIK.js → dagre-BM42HDAG-DAgnHbAW.js} +1 -1
- package/dist/assets/{diagram-2AECGRRQ-ClQcS_zG.js → diagram-2AECGRRQ-DvSwTGxM.js} +1 -1
- package/dist/assets/{diagram-5GNKFQAL-xHZWrs3k.js → diagram-5GNKFQAL-DEJHaLfu.js} +1 -1
- package/dist/assets/{diagram-KO2AKTUF-BGYvfmA8.js → diagram-KO2AKTUF-DrqjmP_T.js} +1 -1
- package/dist/assets/{diagram-LMA3HP47-2bYJHrSx.js → diagram-LMA3HP47-Bjo5cwtc.js} +1 -1
- package/dist/assets/{diagram-OG6HWLK6-Kk9gxCVl.js → diagram-OG6HWLK6-Xt8OEUbk.js} +1 -1
- package/dist/assets/{en-US-Bn6iZkOI.js → en-US-Bj91Ptrm.js} +1 -1
- package/dist/assets/{erDiagram-TEJ5UH35-BODZveFO.js → erDiagram-TEJ5UH35-CyY6UxKD.js} +1 -1
- package/dist/assets/{flowDiagram-I6XJVG4X-CXtrCQJF.js → flowDiagram-I6XJVG4X-CxYF-4G3.js} +1 -1
- package/dist/assets/{ganttDiagram-6RSMTGT7-BBPnJiUa.js → ganttDiagram-6RSMTGT7-CPOiW77k.js} +1 -1
- package/dist/assets/{gitGraphDiagram-PVQCEYII-CFmk9GD0.js → gitGraphDiagram-PVQCEYII-DrOgkuZM.js} +1 -1
- package/dist/assets/{index-BLrE8oNh.js → index-2nERrqJS.js} +1 -1
- package/dist/assets/{index-CnF7-tch.js → index-B4T1KHs6.js} +1 -1
- package/dist/assets/{index-B6xj4xYP.js → index-BWX57hkV.js} +1 -1
- package/dist/assets/{index-B4aaoHUX.js → index-BeXVgYXk.js} +1 -1
- package/dist/assets/{index-Bdt7YoZz.js → index-BjFjcKGZ.js} +1 -1
- package/dist/assets/{index-obms6vkJ.js → index-BmrwviZb.js} +1 -1
- package/dist/assets/{index-JRKXto4y.js → index-D6dXobma.js} +1 -1
- package/dist/assets/{index-6B8IkGDb.js → index-DNS3k4mM.js} +1 -1
- package/dist/assets/{index-BuED28Gm.js → index-DPAR85WM.js} +1 -1
- package/dist/assets/{index-D4RmBZ35.js → index-Di8pH-kP.js} +1 -1
- package/dist/assets/index-DiWM3I28.js +22 -0
- package/dist/assets/{infoDiagram-5YYISTIA-AS1OZJpo.js → infoDiagram-5YYISTIA-C84arbm7.js} +1 -1
- package/dist/assets/{ishikawaDiagram-YF4QCWOH-yh6mGC1K.js → ishikawaDiagram-YF4QCWOH-CcecJvgD.js} +1 -1
- package/dist/assets/{journeyDiagram-JHISSGLW-CfHcAvFf.js → journeyDiagram-JHISSGLW-BUqT2Za3.js} +1 -1
- package/dist/assets/{kanban-definition-UN3LZRKU-D7-RkKh-.js → kanban-definition-UN3LZRKU-CzZzby99.js} +1 -1
- package/dist/assets/main-CvPZyRz3.js +8 -0
- package/dist/assets/{mindmap-definition-RKZ34NQL-ByOSyFEz.js → mindmap-definition-RKZ34NQL-CmVDGb3s.js} +1 -1
- package/dist/assets/{pieDiagram-4H26LBE5-D97Mptgo.js → pieDiagram-4H26LBE5-DH2IiUT-.js} +1 -1
- package/dist/assets/{quadrantDiagram-W4KKPZXB-DKmv7sbz.js → quadrantDiagram-W4KKPZXB--NA0nuaI.js} +1 -1
- package/dist/assets/{requirementDiagram-4Y6WPE33-DSDo-apm.js → requirementDiagram-4Y6WPE33-DgTgIhBX.js} +1 -1
- package/dist/assets/{sankeyDiagram-5OEKKPKP-CNgJWj6_.js → sankeyDiagram-5OEKKPKP-CALJaoqk.js} +1 -1
- package/dist/assets/{sequenceDiagram-3UESZ5HK-DVMQ9erI.js → sequenceDiagram-3UESZ5HK-BXGdJmYN.js} +1 -1
- package/dist/assets/{stateDiagram-AJRCARHV-CAlvotuZ.js → stateDiagram-AJRCARHV-CLL4nh4w.js} +1 -1
- package/dist/assets/{stateDiagram-v2-BHNVJYJU-rFHRfg3k.js → stateDiagram-v2-BHNVJYJU-CFglal-4.js} +1 -1
- package/dist/assets/{timeline-definition-PNZ67QCA-HxLzqMGH.js → timeline-definition-PNZ67QCA-BIZqkLkh.js} +1 -1
- package/dist/assets/{vendor-charts-DoGYnHid.js → vendor-charts-CRpjYi1a.js} +1 -1
- package/dist/assets/{vendor-mermaid-CmKdUpW3.js → vendor-mermaid-DBtTSFLf.js} +3 -3
- package/dist/assets/{vendor-pdf-DAUhee3g.js → vendor-pdf-DpZo6MNQ.js} +3 -3
- package/dist/assets/{vennDiagram-CIIHVFJN-CZrGRioU.js → vennDiagram-CIIHVFJN-D1jzM1K8.js} +1 -1
- package/dist/assets/{wardley-L42UT6IY-DLqtcZsS.js → wardley-L42UT6IY-Yq8es9jt.js} +1 -1
- package/dist/assets/{wardleyDiagram-YWT4CUSO-I4nxJXjC.js → wardleyDiagram-YWT4CUSO-DlhxW9kY.js} +1 -1
- package/dist/assets/{xychartDiagram-2RQKCTM6-I13trKeP.js → xychartDiagram-2RQKCTM6-BipN62gu.js} +1 -1
- package/dist/assets/{zh-CN-Cw8YiQz9.js → zh-CN-C8K1JeQZ.js} +1 -1
- package/dist/index.html +2 -2
- package/package.json +1 -1
- package/dist/assets/classDiagram-4FO5ZUOK-DqFhz_US.js +0 -1
- package/dist/assets/classDiagram-v2-Q7XG4LA2-DqFhz_US.js +0 -1
- package/dist/assets/index-Byd6pVRV.js +0 -22
- package/dist/assets/main-CAEW-hKr.js +0 -8
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vendor-mermaid-
|
|
2
|
-
var PB=Object.defineProperty;var MB=(t,A,e)=>A in t?PB(t,A,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[A]=e;var be=(t,A,e)=>MB(t,typeof A!="symbol"?A+"":A,e);import{_ as Dc}from"./vendor-mermaid-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./vendor-mermaid-DBtTSFLf.js","./vendor-antd-CKNrd1kL.js","./vendor-i18n-Dm-c3D_C.js","./index.es-BmYnl4eQ.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var PB=Object.defineProperty;var MB=(t,A,e)=>A in t?PB(t,A,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[A]=e;var be=(t,A,e)=>MB(t,typeof A!="symbol"?A+"":A,e);import{_ as Dc}from"./vendor-mermaid-DBtTSFLf.js";import{h as Se,i as zu}from"./vendor-antd-CKNrd1kL.js";/*!
|
|
3
3
|
* html2canvas 1.4.1 <https://html2canvas.hertzen.com>
|
|
4
4
|
* Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
|
|
5
5
|
* Released under MIT License
|
|
@@ -150,7 +150,7 @@ T* `):f.join(` Tj
|
|
|
150
150
|
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
151
151
|
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
152
152
|
* ====================================================================
|
|
153
|
-
*/function T4(){var t,A=this.internal.__metadata__.metadata,e=unescape(encodeURIComponent(A));t=this.internal.__metadata__.rawXml?e:'<x:xmpmeta xmlns:x="adobe:ns:meta/"><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>'+e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")+"</jspdf:metadata></rdf:Description></rdf:RDF></x:xmpmeta>",this.internal.__metadata__.metadataObjectNumber=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+t.length+" >>"),this.internal.write("stream"),this.internal.write(t),this.internal.write("endstream"),this.internal.write("endobj")}function O4(){this.internal.__metadata__.metadataObjectNumber&&this.internal.write("/Metadata "+this.internal.__metadata__.metadataObjectNumber+" 0 R")}(function(t){var A,e,r,n,i,o,s,c,u,h=function(Q){return Q=Q||{},this.isStrokeTransparent=Q.isStrokeTransparent||!1,this.strokeOpacity=Q.strokeOpacity||1,this.strokeStyle=Q.strokeStyle||"#000000",this.fillStyle=Q.fillStyle||"#000000",this.isFillTransparent=Q.isFillTransparent||!1,this.fillOpacity=Q.fillOpacity||1,this.font=Q.font||"10px sans-serif",this.textBaseline=Q.textBaseline||"alphabetic",this.textAlign=Q.textAlign||"left",this.lineWidth=Q.lineWidth||1,this.lineJoin=Q.lineJoin||"miter",this.lineCap=Q.lineCap||"butt",this.path=Q.path||[],this.transform=Q.transform!==void 0?Q.transform.clone():new c,this.globalCompositeOperation=Q.globalCompositeOperation||"normal",this.globalAlpha=Q.globalAlpha||1,this.clip_path=Q.clip_path||[],this.currentPoint=Q.currentPoint||new o,this.miterLimit=Q.miterLimit||10,this.lastPoint=Q.lastPoint||new o,this.lineDashOffset=Q.lineDashOffset||0,this.lineDash=Q.lineDash||[],this.margin=Q.margin||[0,0,0,0],this.prevPageLastElemOffset=Q.prevPageLastElemOffset||0,this.ignoreClearRect=typeof Q.ignoreClearRect!="boolean"||Q.ignoreClearRect,this};t.events.push(["initialized",function(){this.context2d=new p(this),A=this.internal.f2,e=this.internal.getCoordinateString,r=this.internal.getVerticalCoordinateString,n=this.internal.getHorizontalCoordinate,i=this.internal.getVerticalCoordinate,o=this.internal.Point,s=this.internal.Rectangle,c=this.internal.Matrix,u=new h}]);var p=function(Q){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var O=Q;Object.defineProperty(this,"pdf",{get:function(){return O}});var M=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return M},set:function(H){M=!!H}});var q=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return q},set:function(H){q=!!H}});var X=0;Object.defineProperty(this,"posX",{get:function(){return X},set:function(H){isNaN(H)||(X=H)}});var eA=0;Object.defineProperty(this,"posY",{get:function(){return eA},set:function(H){isNaN(H)||(eA=H)}}),Object.defineProperty(this,"margin",{get:function(){return u.margin},set:function(H){var bA;typeof H=="number"?bA=[H,H,H,H]:((bA=new Array(4))[0]=H[0],bA[1]=H.length>=2?H[1]:bA[0],bA[2]=H.length>=3?H[2]:bA[0],bA[3]=H.length>=4?H[3]:bA[1]),u.margin=bA}});var lA=!1;Object.defineProperty(this,"autoPaging",{get:function(){return lA},set:function(H){lA=H}});var uA=0;Object.defineProperty(this,"lastBreak",{get:function(){return uA},set:function(H){uA=H}});var gA=[];Object.defineProperty(this,"pageBreaks",{get:function(){return gA},set:function(H){gA=H}}),Object.defineProperty(this,"ctx",{get:function(){return u},set:function(H){H instanceof h&&(u=H)}}),Object.defineProperty(this,"path",{get:function(){return u.path},set:function(H){u.path=H}});var QA=[];Object.defineProperty(this,"ctxStack",{get:function(){return QA},set:function(H){QA=H}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(H){var bA;bA=w(H),this.ctx.fillStyle=bA.style,this.ctx.isFillTransparent=bA.a===0,this.ctx.fillOpacity=bA.a,this.pdf.setFillColor(bA.r,bA.g,bA.b,{a:bA.a}),this.pdf.setTextColor(bA.r,bA.g,bA.b,{a:bA.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(H){var bA=w(H);this.ctx.strokeStyle=bA.style,this.ctx.isStrokeTransparent=bA.a===0,this.ctx.strokeOpacity=bA.a,bA.a===0?this.pdf.setDrawColor(255,255,255):(bA.a,this.pdf.setDrawColor(bA.r,bA.g,bA.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(H){["butt","round","square"].indexOf(H)!==-1&&(this.ctx.lineCap=H,this.pdf.setLineCap(H))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(H){isNaN(H)||(this.ctx.lineWidth=H,this.pdf.setLineWidth(H))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(H){["bevel","round","miter"].indexOf(H)!==-1&&(this.ctx.lineJoin=H,this.pdf.setLineJoin(H))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(H){isNaN(H)||(this.ctx.miterLimit=H,this.pdf.setMiterLimit(H))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(H){this.ctx.textBaseline=H}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(H){["right","end","center","left","start"].indexOf(H)!==-1&&(this.ctx.textAlign=H)}});var LA=null,yA=null,KA=null;Object.defineProperty(this,"fontFaces",{get:function(){return KA},set:function(H){LA=null,yA=null,KA=H}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(H){var bA;if(this.ctx.font=H,(bA=/^\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(H))!==null){var se=bA[1];bA[2];var VA=bA[3],CA=bA[4];bA[5];var qA=bA[6],HA=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(CA)[2];CA=Math.floor(HA==="px"?parseFloat(CA)*this.pdf.internal.scaleFactor:HA==="em"?parseFloat(CA)*this.pdf.getFontSize():parseFloat(CA)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(CA);var jA=function(MA){var Ye,we,oe=[],ce=MA.trim();if(ce==="")return ml;if(ce in Wh)return[Wh[ce]];for(;ce!=="";){switch(we=null,Ye=(ce=Jh(ce)).charAt(0)){case'"':case"'":we=I4(ce.substring(1),Ye);break;default:we=S4(ce)}if(we===null||(oe.push(we[0]),(ce=Jh(we[1]))!==""&&ce.charAt(0)!==","))return ml;ce=ce.replace(/^,/,"")}return oe}(qA);if(this.fontFaces){var RA=function(MA,Ye){var we=MA.getFontList(),oe=JSON.stringify(we);if(LA===null||yA!==oe){var ce=function(Me){var GA=[];return Object.keys(Me).forEach(function(He){Me[He].forEach(function(JA){var ee=null;switch(JA){case"bold":ee={family:He,weight:"bold"};break;case"italic":ee={family:He,style:"italic"};break;case"bolditalic":ee={family:He,weight:"bold",style:"italic"};break;case"":case"normal":ee={family:He}}ee!==null&&(ee.ref={name:He,style:JA},GA.push(ee))})}),GA}(we);LA=function(Me){for(var GA={},He=0;He<Me.length;++He){var JA=Cl(Me[He]),ee=JA.family,Ke=JA.stretch,le=JA.style,WA=JA.weight;GA[ee]=GA[ee]||{},GA[ee][Ke]=GA[ee][Ke]||{},GA[ee][Ke][le]=GA[ee][Ke][le]||{},GA[ee][Ke][le][WA]=JA}return GA}(ce.concat(Ye)),yA=oe}return LA}(this.pdf,this.fontFaces),Ce=jA.map(function(MA){return{family:MA,stretch:"normal",weight:VA,style:se}}),ue=function(MA,Ye,we){for(var oe=(we=we||{}).defaultFontFamily||"times",ce=Object.assign({},x4,we.genericFontFamilies||{}),Me=null,GA=null,He=0;He<Ye.length;++He)if(ce[(Me=Cl(Ye[He])).family]&&(Me.family=ce[Me.family]),MA.hasOwnProperty(Me.family)){GA=MA[Me.family];break}if(!(GA=GA||MA[oe]))throw new Error("Could not find a font-family for the rule '"+Xh(Me)+"' and default family '"+oe+"'.");if(GA=function(JA,ee){if(ee[JA])return ee[JA];var Ke=ru[JA],le=Ke<=ru.normal?-1:1,WA=qh(ee,z1,Ke,le);if(!WA)throw new Error("Could not find a matching font-stretch value for "+JA);return WA}(Me.stretch,GA),GA=function(JA,ee){if(ee[JA])return ee[JA];for(var Ke=Y1[JA],le=0;le<Ke.length;++le)if(ee[Ke[le]])return ee[Ke[le]];throw new Error("Could not find a matching font-style for "+JA)}(Me.style,GA),!(GA=function(JA,ee){if(ee[JA])return ee[JA];if(JA===400&&ee[500])return ee[500];if(JA===500&&ee[400])return ee[400];var Ke=L4[JA],le=qh(ee,Z1,Ke,JA<400?-1:1);if(!le)throw new Error("Could not find a matching font-weight for value "+JA);return le}(Me.weight,GA)))throw new Error("Failed to resolve a font for the rule '"+Xh(Me)+"'.");return GA}(RA,Ce);this.pdf.setFont(ue.ref.name,ue.ref.style)}else{var Ae="";(VA==="bold"||parseInt(VA,10)>=700||se==="bold")&&(Ae="bold"),se==="italic"&&(Ae+="italic"),Ae.length===0&&(Ae="normal");for(var Be="",fe={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"},OA=0;OA<jA.length;OA++){if(this.pdf.internal.getFont(jA[OA],Ae,{noFallback:!0,disableWarning:!0})!==void 0){Be=jA[OA];break}if(Ae==="bolditalic"&&this.pdf.internal.getFont(jA[OA],"bold",{noFallback:!0,disableWarning:!0})!==void 0)Be=jA[OA],Ae="bold";else if(this.pdf.internal.getFont(jA[OA],"normal",{noFallback:!0,disableWarning:!0})!==void 0){Be=jA[OA],Ae="normal";break}}if(Be===""){for(var ne=0;ne<jA.length;ne++)if(fe[jA[ne]]){Be=fe[jA[ne]];break}}Be=Be===""?"Times":Be,this.pdf.setFont(Be,Ae)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(H){this.ctx.globalCompositeOperation=H}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(H){this.ctx.globalAlpha=H}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(H){this.ctx.lineDashOffset=H,pA.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(H){this.ctx.lineDash=H,pA.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(H){this.ctx.ignoreClearRect=!!H}})};p.prototype.setLineDash=function(Q){this.lineDash=Q},p.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},p.prototype.fill=function(){k.call(this,"fill",!1)},p.prototype.stroke=function(){k.call(this,"stroke",!1)},p.prototype.beginPath=function(){this.path=[{type:"begin"}]},p.prototype.moveTo=function(Q,O){if(isNaN(Q)||isNaN(O))throw Ie.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var M=this.ctx.transform.applyToPoint(new o(Q,O));this.path.push({type:"mt",x:M.x,y:M.y}),this.ctx.lastPoint=new o(Q,O)},p.prototype.closePath=function(){var Q=new o(0,0),O=0;for(O=this.path.length-1;O!==-1;O--)if(this.path[O].type==="begin"&&Se(this.path[O+1])==="object"&&typeof this.path[O+1].x=="number"){Q=new o(this.path[O+1].x,this.path[O+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new o(Q.x,Q.y)},p.prototype.lineTo=function(Q,O){if(isNaN(Q)||isNaN(O))throw Ie.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var M=this.ctx.transform.applyToPoint(new o(Q,O));this.path.push({type:"lt",x:M.x,y:M.y}),this.ctx.lastPoint=new o(M.x,M.y)},p.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),k.call(this,null,!0)},p.prototype.quadraticCurveTo=function(Q,O,M,q){if(isNaN(M)||isNaN(q)||isNaN(Q)||isNaN(O))throw Ie.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var X=this.ctx.transform.applyToPoint(new o(M,q)),eA=this.ctx.transform.applyToPoint(new o(Q,O));this.path.push({type:"qct",x1:eA.x,y1:eA.y,x:X.x,y:X.y}),this.ctx.lastPoint=new o(X.x,X.y)},p.prototype.bezierCurveTo=function(Q,O,M,q,X,eA){if(isNaN(X)||isNaN(eA)||isNaN(Q)||isNaN(O)||isNaN(M)||isNaN(q))throw Ie.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var lA=this.ctx.transform.applyToPoint(new o(X,eA)),uA=this.ctx.transform.applyToPoint(new o(Q,O)),gA=this.ctx.transform.applyToPoint(new o(M,q));this.path.push({type:"bct",x1:uA.x,y1:uA.y,x2:gA.x,y2:gA.y,x:lA.x,y:lA.y}),this.ctx.lastPoint=new o(lA.x,lA.y)},p.prototype.arc=function(Q,O,M,q,X,eA){if(isNaN(Q)||isNaN(O)||isNaN(M)||isNaN(q)||isNaN(X))throw Ie.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(eA=!!eA,!this.ctx.transform.isIdentity){var lA=this.ctx.transform.applyToPoint(new o(Q,O));Q=lA.x,O=lA.y;var uA=this.ctx.transform.applyToPoint(new o(0,M)),gA=this.ctx.transform.applyToPoint(new o(0,0));M=Math.sqrt(Math.pow(uA.x-gA.x,2)+Math.pow(uA.y-gA.y,2))}Math.abs(X-q)>=2*Math.PI&&(q=0,X=2*Math.PI),this.path.push({type:"arc",x:Q,y:O,radius:M,startAngle:q,endAngle:X,counterclockwise:eA})},p.prototype.arcTo=function(Q,O,M,q,X){throw new Error("arcTo not implemented.")},p.prototype.rect=function(Q,O,M,q){if(isNaN(Q)||isNaN(O)||isNaN(M)||isNaN(q))throw Ie.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(Q,O),this.lineTo(Q+M,O),this.lineTo(Q+M,O+q),this.lineTo(Q,O+q),this.lineTo(Q,O),this.lineTo(Q+M,O),this.lineTo(Q,O)},p.prototype.fillRect=function(Q,O,M,q){if(isNaN(Q)||isNaN(O)||isNaN(M)||isNaN(q))throw Ie.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!d.call(this)){var X={};this.lineCap!=="butt"&&(X.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(X.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(Q,O,M,q),this.fill(),X.hasOwnProperty("lineCap")&&(this.lineCap=X.lineCap),X.hasOwnProperty("lineJoin")&&(this.lineJoin=X.lineJoin)}},p.prototype.strokeRect=function(Q,O,M,q){if(isNaN(Q)||isNaN(O)||isNaN(M)||isNaN(q))throw Ie.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");b.call(this)||(this.beginPath(),this.rect(Q,O,M,q),this.stroke())},p.prototype.clearRect=function(Q,O,M,q){if(isNaN(Q)||isNaN(O)||isNaN(M)||isNaN(q))throw Ie.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(Q,O,M,q))},p.prototype.save=function(Q){Q=typeof Q!="boolean"||Q;for(var O=this.pdf.internal.getCurrentPageInfo().pageNumber,M=0;M<this.pdf.internal.getNumberOfPages();M++)this.pdf.setPage(M+1),this.pdf.internal.out("q");if(this.pdf.setPage(O),Q){this.ctx.fontSize=this.pdf.internal.getFontSize();var q=new h(this.ctx);this.ctxStack.push(this.ctx),this.ctx=q}},p.prototype.restore=function(Q){Q=typeof Q!="boolean"||Q;for(var O=this.pdf.internal.getCurrentPageInfo().pageNumber,M=0;M<this.pdf.internal.getNumberOfPages();M++)this.pdf.setPage(M+1),this.pdf.internal.out("Q");this.pdf.setPage(O),Q&&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)},p.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var w=function(Q){var O,M,q,X;if(Q.isCanvasGradient===!0&&(Q=Q.getColor()),!Q)return{r:0,g:0,b:0,a:0,style:Q};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(Q))O=0,M=0,q=0,X=0;else{var eA=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(Q);if(eA!==null)O=parseInt(eA[1]),M=parseInt(eA[2]),q=parseInt(eA[3]),X=1;else if((eA=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(Q))!==null)O=parseInt(eA[1]),M=parseInt(eA[2]),q=parseInt(eA[3]),X=parseFloat(eA[4]);else{if(X=1,typeof Q=="string"&&Q.charAt(0)!=="#"){var lA=new G1(Q);Q=lA.ok?lA.toHex():"#000000"}Q.length===4?(O=Q.substring(1,2),O+=O,M=Q.substring(2,3),M+=M,q=Q.substring(3,4),q+=q):(O=Q.substring(1,3),M=Q.substring(3,5),q=Q.substring(5,7)),O=parseInt(O,16),M=parseInt(M,16),q=parseInt(q,16)}}return{r:O,g:M,b:q,a:X,style:Q}},d=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},b=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};p.prototype.fillText=function(Q,O,M,q){if(isNaN(O)||isNaN(M)||typeof Q!="string")throw Ie.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(q=isNaN(q)?void 0:q,!d.call(this)){var X=tA(this.ctx.transform.rotation),eA=this.ctx.transform.scaleX;I.call(this,{text:Q,x:O,y:M,scale:eA,angle:X,align:this.textAlign,maxWidth:q})}},p.prototype.strokeText=function(Q,O,M,q){if(isNaN(O)||isNaN(M)||typeof Q!="string")throw Ie.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!b.call(this)){q=isNaN(q)?void 0:q;var X=tA(this.ctx.transform.rotation),eA=this.ctx.transform.scaleX;I.call(this,{text:Q,x:O,y:M,scale:eA,renderingMode:"stroke",angle:X,align:this.textAlign,maxWidth:q})}},p.prototype.measureText=function(Q){if(typeof Q!="string")throw Ie.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var O=this.pdf,M=this.pdf.internal.scaleFactor,q=O.internal.getFontSize(),X=O.getStringUnitWidth(Q)*q/O.internal.scaleFactor;return new function(eA){var lA=(eA=eA||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return lA}}),this}({width:X*=Math.round(96*M/72*1e4)/1e4})},p.prototype.scale=function(Q,O){if(isNaN(Q)||isNaN(O))throw Ie.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var M=new c(Q,0,0,O,0,0);this.ctx.transform=this.ctx.transform.multiply(M)},p.prototype.rotate=function(Q){if(isNaN(Q))throw Ie.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var O=new c(Math.cos(Q),Math.sin(Q),-Math.sin(Q),Math.cos(Q),0,0);this.ctx.transform=this.ctx.transform.multiply(O)},p.prototype.translate=function(Q,O){if(isNaN(Q)||isNaN(O))throw Ie.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var M=new c(1,0,0,1,Q,O);this.ctx.transform=this.ctx.transform.multiply(M)},p.prototype.transform=function(Q,O,M,q,X,eA){if(isNaN(Q)||isNaN(O)||isNaN(M)||isNaN(q)||isNaN(X)||isNaN(eA))throw Ie.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var lA=new c(Q,O,M,q,X,eA);this.ctx.transform=this.ctx.transform.multiply(lA)},p.prototype.setTransform=function(Q,O,M,q,X,eA){Q=isNaN(Q)?1:Q,O=isNaN(O)?0:O,M=isNaN(M)?0:M,q=isNaN(q)?1:q,X=isNaN(X)?0:X,eA=isNaN(eA)?0:eA,this.ctx.transform=new c(Q,O,M,q,X,eA)};var y=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};p.prototype.drawImage=function(Q,O,M,q,X,eA,lA,uA,gA){var QA=this.pdf.getImageProperties(Q),LA=1,yA=1,KA=1,H=1;q!==void 0&&uA!==void 0&&(KA=uA/q,H=gA/X,LA=QA.width/q*uA/q,yA=QA.height/X*gA/X),eA===void 0&&(eA=O,lA=M,O=0,M=0),q!==void 0&&uA===void 0&&(uA=q,gA=X),q===void 0&&uA===void 0&&(uA=QA.width,gA=QA.height);var bA=this.ctx.transform.decompose(),se=tA(bA.rotate.shx),VA=new c,CA=(VA=(VA=(VA=VA.multiply(bA.translate)).multiply(bA.skew)).multiply(bA.scale)).applyToRectangle(new s(eA-O*KA,lA-M*H,q*LA,X*yA));if(this.autoPaging){for(var qA,HA=S.call(this,CA),jA=[],RA=0;RA<HA.length;RA+=1)jA.indexOf(HA[RA])===-1&&jA.push(HA[RA]);G(jA);for(var Ce=jA[0],ue=jA[jA.length-1],Ae=Ce;Ae<ue+1;Ae++){this.pdf.setPage(Ae);var Be=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],fe=Ae===1?this.posY+this.margin[0]:this.margin[0],OA=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],ne=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],MA=Ae===1?0:OA+(Ae-2)*ne;if(this.ctx.clip_path.length!==0){var Ye=this.path;qA=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=P(qA,this.posX+this.margin[3],-MA+fe+this.ctx.prevPageLastElemOffset),Y.call(this,"fill",!0),this.path=Ye}var we=JSON.parse(JSON.stringify(CA));we=P([we],this.posX+this.margin[3],-MA+fe+this.ctx.prevPageLastElemOffset)[0];var oe=(Ae>Ce||Ae<ue)&&y.call(this);oe&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Be,ne,null).clip().discardPath()),this.pdf.addImage(Q,"JPEG",we.x,we.y,we.w,we.h,null,null,se),oe&&this.pdf.restoreGraphicsState()}}else this.pdf.addImage(Q,"JPEG",CA.x,CA.y,CA.w,CA.h,null,null,se)};var S=function(Q,O,M){var q=[];O=O||this.pdf.internal.pageSize.width,M=M||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var X=this.posY+this.ctx.prevPageLastElemOffset;switch(Q.type){default:case"mt":case"lt":q.push(Math.floor((Q.y+X)/M)+1);break;case"arc":q.push(Math.floor((Q.y+X-Q.radius)/M)+1),q.push(Math.floor((Q.y+X+Q.radius)/M)+1);break;case"qct":var eA=cA(this.ctx.lastPoint.x,this.ctx.lastPoint.y,Q.x1,Q.y1,Q.x,Q.y);q.push(Math.floor((eA.y+X)/M)+1),q.push(Math.floor((eA.y+eA.h+X)/M)+1);break;case"bct":var lA=FA(this.ctx.lastPoint.x,this.ctx.lastPoint.y,Q.x1,Q.y1,Q.x2,Q.y2,Q.x,Q.y);q.push(Math.floor((lA.y+X)/M)+1),q.push(Math.floor((lA.y+lA.h+X)/M)+1);break;case"rect":q.push(Math.floor((Q.y+X)/M)+1),q.push(Math.floor((Q.y+Q.h+X)/M)+1)}for(var uA=0;uA<q.length;uA+=1)for(;this.pdf.internal.getNumberOfPages()<q[uA];)F.call(this);return q},F=function(){var Q=this.fillStyle,O=this.strokeStyle,M=this.font,q=this.lineCap,X=this.lineWidth,eA=this.lineJoin;this.pdf.addPage(),this.fillStyle=Q,this.strokeStyle=O,this.font=M,this.lineCap=q,this.lineWidth=X,this.lineJoin=eA},P=function(Q,O,M){for(var q=0;q<Q.length;q++)switch(Q[q].type){case"bct":Q[q].x2+=O,Q[q].y2+=M;case"qct":Q[q].x1+=O,Q[q].y1+=M;default:Q[q].x+=O,Q[q].y+=M}return Q},G=function(Q){return Q.sort(function(O,M){return O-M})},k=function(Q,O){var M=this.fillStyle,q=this.strokeStyle,X=this.lineCap,eA=this.lineWidth,lA=Math.abs(eA*this.ctx.transform.scaleX),uA=this.lineJoin;if(this.autoPaging){for(var gA,QA,LA=JSON.parse(JSON.stringify(this.path)),yA=JSON.parse(JSON.stringify(this.path)),KA=[],H=0;H<yA.length;H++)if(yA[H].x!==void 0)for(var bA=S.call(this,yA[H]),se=0;se<bA.length;se+=1)KA.indexOf(bA[se])===-1&&KA.push(bA[se]);for(var VA=0;VA<KA.length;VA++)for(;this.pdf.internal.getNumberOfPages()<KA[VA];)F.call(this);G(KA);for(var CA=KA[0],qA=KA[KA.length-1],HA=CA;HA<qA+1;HA++){this.pdf.setPage(HA),this.fillStyle=M,this.strokeStyle=q,this.lineCap=X,this.lineWidth=lA,this.lineJoin=uA;var jA=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],RA=HA===1?this.posY+this.margin[0]:this.margin[0],Ce=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],ue=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Ae=HA===1?0:Ce+(HA-2)*ue;if(this.ctx.clip_path.length!==0){var Be=this.path;gA=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=P(gA,this.posX+this.margin[3],-Ae+RA+this.ctx.prevPageLastElemOffset),Y.call(this,Q,!0),this.path=Be}if(QA=JSON.parse(JSON.stringify(LA)),this.path=P(QA,this.posX+this.margin[3],-Ae+RA+this.ctx.prevPageLastElemOffset),O===!1||HA===0){var fe=(HA>CA||HA<qA)&&y.call(this);fe&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],jA,ue,null).clip().discardPath()),Y.call(this,Q,O),fe&&this.pdf.restoreGraphicsState()}this.lineWidth=eA}this.path=LA}else this.lineWidth=lA,Y.call(this,Q,O),this.lineWidth=eA},Y=function(Q,O){if((Q!=="stroke"||O||!b.call(this))&&(Q==="stroke"||O||!d.call(this))){for(var M,q,X=[],eA=this.path,lA=0;lA<eA.length;lA++){var uA=eA[lA];switch(uA.type){case"begin":X.push({begin:!0});break;case"close":X.push({close:!0});break;case"mt":X.push({start:uA,deltas:[],abs:[]});break;case"lt":var gA=X.length;if(eA[lA-1]&&!isNaN(eA[lA-1].x)&&(M=[uA.x-eA[lA-1].x,uA.y-eA[lA-1].y],gA>0)){for(;gA>=0;gA--)if(X[gA-1].close!==!0&&X[gA-1].begin!==!0){X[gA-1].deltas.push(M),X[gA-1].abs.push(uA);break}}break;case"bct":M=[uA.x1-eA[lA-1].x,uA.y1-eA[lA-1].y,uA.x2-eA[lA-1].x,uA.y2-eA[lA-1].y,uA.x-eA[lA-1].x,uA.y-eA[lA-1].y],X[X.length-1].deltas.push(M);break;case"qct":var QA=eA[lA-1].x+2/3*(uA.x1-eA[lA-1].x),LA=eA[lA-1].y+2/3*(uA.y1-eA[lA-1].y),yA=uA.x+2/3*(uA.x1-uA.x),KA=uA.y+2/3*(uA.y1-uA.y),H=uA.x,bA=uA.y;M=[QA-eA[lA-1].x,LA-eA[lA-1].y,yA-eA[lA-1].x,KA-eA[lA-1].y,H-eA[lA-1].x,bA-eA[lA-1].y],X[X.length-1].deltas.push(M);break;case"arc":X.push({deltas:[],abs:[],arc:!0}),Array.isArray(X[X.length-1].abs)&&X[X.length-1].abs.push(uA)}}q=O?null:Q==="stroke"?"stroke":"fill";for(var se=!1,VA=0;VA<X.length;VA++)if(X[VA].arc)for(var CA=X[VA].abs,qA=0;qA<CA.length;qA++){var HA=CA[qA];HA.type==="arc"?V.call(this,HA.x,HA.y,HA.radius,HA.startAngle,HA.endAngle,HA.counterclockwise,void 0,O,!se):K.call(this,HA.x,HA.y),se=!0}else if(X[VA].close===!0)this.pdf.internal.out("h"),se=!1;else if(X[VA].begin!==!0){var jA=X[VA].start.x,RA=X[VA].start.y;R.call(this,X[VA].deltas,jA,RA),se=!0}q&&N.call(this,q),O&&$.call(this)}},Z=function(Q){var O=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,M=O*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return Q-M;case"top":return Q+O-M;case"hanging":return Q+O-2*M;case"middle":return Q+O/2-M;default:return Q}},iA=function(Q){return Q+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};p.prototype.createLinearGradient=function(){var Q=function(){};return Q.colorStops=[],Q.addColorStop=function(O,M){this.colorStops.push([O,M])},Q.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},Q.isCanvasGradient=!0,Q},p.prototype.createPattern=function(){return this.createLinearGradient()},p.prototype.createRadialGradient=function(){return this.createLinearGradient()};var V=function(Q,O,M,q,X,eA,lA,uA,gA){for(var QA=sA.call(this,M,q,X,eA),LA=0;LA<QA.length;LA++){var yA=QA[LA];LA===0&&(gA?E.call(this,yA.x1+Q,yA.y1+O):K.call(this,yA.x1+Q,yA.y1+O)),aA.call(this,Q,O,yA.x2,yA.y2,yA.x3,yA.y3,yA.x4,yA.y4)}uA?$.call(this):N.call(this,lA)},N=function(Q){switch(Q){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},$=function(){this.pdf.clip(),this.pdf.discardPath()},E=function(Q,O){this.pdf.internal.out(e(Q)+" "+r(O)+" m")},I=function(Q){var O;switch(Q.align){case"right":case"end":O="right";break;case"center":O="center";break;default:O="left"}var M,q,X,eA=this.pdf.getTextDimensions(Q.text),lA=Z.call(this,Q.y),uA=iA.call(this,lA)-eA.h,gA=this.ctx.transform.applyToPoint(new o(Q.x,lA));if(this.autoPaging){var QA=this.ctx.transform.decompose(),LA=new c;LA=(LA=(LA=LA.multiply(QA.translate)).multiply(QA.skew)).multiply(QA.scale);for(var yA=this.ctx.transform.applyToRectangle(new s(Q.x,lA,eA.w,eA.h)),KA=LA.applyToRectangle(new s(Q.x,uA,eA.w,eA.h)),H=S.call(this,KA),bA=[],se=0;se<H.length;se+=1)bA.indexOf(H[se])===-1&&bA.push(H[se]);G(bA);for(var VA=bA[0],CA=bA[bA.length-1],qA=VA;qA<CA+1;qA++){this.pdf.setPage(qA);var HA=qA===1?this.posY+this.margin[0]:this.margin[0],jA=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],RA=this.pdf.internal.pageSize.height-this.margin[2],Ce=RA-this.margin[0],ue=this.pdf.internal.pageSize.width-this.margin[1],Ae=ue-this.margin[3],Be=qA===1?0:jA+(qA-2)*Ce;if(this.ctx.clip_path.length!==0){var fe=this.path;M=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=P(M,this.posX+this.margin[3],-1*Be+HA),Y.call(this,"fill",!0),this.path=fe}var OA=P([JSON.parse(JSON.stringify(KA))],this.posX+this.margin[3],-Be+HA+this.ctx.prevPageLastElemOffset)[0];Q.scale>=.01&&(q=this.pdf.internal.getFontSize(),this.pdf.setFontSize(q*Q.scale),X=this.lineWidth,this.lineWidth=X*Q.scale);var ne=this.autoPaging!=="text";if(ne||OA.y+OA.h<=RA){if(ne||OA.y>=HA&&OA.x<=ue){var MA=ne?Q.text:this.pdf.splitTextToSize(Q.text,Q.maxWidth||ue-OA.x)[0],Ye=P([JSON.parse(JSON.stringify(yA))],this.posX+this.margin[3],-Be+HA+this.ctx.prevPageLastElemOffset)[0],we=ne&&(qA>VA||qA<CA)&&y.call(this);we&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Ae,Ce,null).clip().discardPath()),this.pdf.text(MA,Ye.x,Ye.y,{angle:Q.angle,align:O,renderingMode:Q.renderingMode}),we&&this.pdf.restoreGraphicsState()}}else OA.y<RA&&(this.ctx.prevPageLastElemOffset+=RA-OA.y);Q.scale>=.01&&(this.pdf.setFontSize(q),this.lineWidth=X)}}else Q.scale>=.01&&(q=this.pdf.internal.getFontSize(),this.pdf.setFontSize(q*Q.scale),X=this.lineWidth,this.lineWidth=X*Q.scale),this.pdf.text(Q.text,gA.x+this.posX,gA.y+this.posY,{angle:Q.angle,align:O,renderingMode:Q.renderingMode,maxWidth:Q.maxWidth}),Q.scale>=.01&&(this.pdf.setFontSize(q),this.lineWidth=X)},K=function(Q,O,M,q){M=M||0,q=q||0,this.pdf.internal.out(e(Q+M)+" "+r(O+q)+" l")},R=function(Q,O,M){return this.pdf.lines(Q,O,M,null,null)},aA=function(Q,O,M,q,X,eA,lA,uA){this.pdf.internal.out([A(n(M+Q)),A(i(q+O)),A(n(X+Q)),A(i(eA+O)),A(n(lA+Q)),A(i(uA+O)),"c"].join(" "))},sA=function(Q,O,M,q){for(var X=2*Math.PI,eA=Math.PI/2;O>M;)O-=X;var lA=Math.abs(M-O);lA<X&&q&&(lA=X-lA);for(var uA=[],gA=q?-1:1,QA=O;lA>1e-5;){var LA=QA+gA*Math.min(lA,eA);uA.push(oA.call(this,Q,QA,LA)),lA-=Math.abs(LA-QA),QA=LA}return uA},oA=function(Q,O,M){var q=(M-O)/2,X=Q*Math.cos(q),eA=Q*Math.sin(q),lA=X,uA=-eA,gA=lA*lA+uA*uA,QA=gA+lA*X+uA*eA,LA=4/3*(Math.sqrt(2*gA*QA)-QA)/(lA*eA-uA*X),yA=lA-LA*uA,KA=uA+LA*lA,H=yA,bA=-KA,se=q+O,VA=Math.cos(se),CA=Math.sin(se);return{x1:Q*Math.cos(O),y1:Q*Math.sin(O),x2:yA*VA-KA*CA,y2:yA*CA+KA*VA,x3:H*VA-bA*CA,y3:H*CA+bA*VA,x4:Q*Math.cos(M),y4:Q*Math.sin(M)}},tA=function(Q){return 180*Q/Math.PI},cA=function(Q,O,M,q,X,eA){var lA=Q+.5*(M-Q),uA=O+.5*(q-O),gA=X+.5*(M-X),QA=eA+.5*(q-eA),LA=Math.min(Q,X,lA,gA),yA=Math.max(Q,X,lA,gA),KA=Math.min(O,eA,uA,QA),H=Math.max(O,eA,uA,QA);return new s(LA,KA,yA-LA,H-KA)},FA=function(Q,O,M,q,X,eA,lA,uA){var gA,QA,LA,yA,KA,H,bA,se,VA,CA,qA,HA,jA,RA,Ce=M-Q,ue=q-O,Ae=X-M,Be=eA-q,fe=lA-X,OA=uA-eA;for(QA=0;QA<41;QA++)VA=(bA=(LA=Q+(gA=QA/40)*Ce)+gA*((KA=M+gA*Ae)-LA))+gA*(KA+gA*(X+gA*fe-KA)-bA),CA=(se=(yA=O+gA*ue)+gA*((H=q+gA*Be)-yA))+gA*(H+gA*(eA+gA*OA-H)-se),QA==0?(qA=VA,HA=CA,jA=VA,RA=CA):(qA=Math.min(qA,VA),HA=Math.min(HA,CA),jA=Math.max(jA,VA),RA=Math.max(RA,CA));return new s(Math.round(qA),Math.round(HA),Math.round(jA-qA),Math.round(RA-HA))},pA=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var Q,O,M=(Q=this.ctx.lineDash,O=this.ctx.lineDashOffset,JSON.stringify({lineDash:Q,lineDashOffset:O}));this.prevLineDash!==M&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=M)}}})(kA.API),function(t){var A=function(o){var s,c,u,h,p,w,d,b,y,S;for(c=[],u=0,h=(o+=s="\0\0\0\0".slice(o.length%4||4)).length;h>u;u+=4)(p=(o.charCodeAt(u)<<24)+(o.charCodeAt(u+1)<<16)+(o.charCodeAt(u+2)<<8)+o.charCodeAt(u+3))!==0?(w=(p=((p=((p=((p=(p-(S=p%85))/85)-(y=p%85))/85)-(b=p%85))/85)-(d=p%85))/85)%85,c.push(w+33,d+33,b+33,y+33,S+33)):c.push(122);return function(F,P){for(var G=P;G>0;G--)F.pop()}(c,s.length),String.fromCharCode.apply(String,c)+"~>"},e=function(o){var s,c,u,h,p,w=String,d="length",b=255,y="charCodeAt",S="slice",F="replace";for(o[S](-2),o=o[S](0,-2)[F](/\s/g,"")[F]("z","!!!!!"),u=[],h=0,p=(o+=s="uuuuu"[S](o[d]%5||5))[d];p>h;h+=5)c=52200625*(o[y](h)-33)+614125*(o[y](h+1)-33)+7225*(o[y](h+2)-33)+85*(o[y](h+3)-33)+(o[y](h+4)-33),u.push(b&c>>24,b&c>>16,b&c>>8,b&c);return function(P,G){for(var k=G;k>0;k--)P.pop()}(u,s[d]),w.fromCharCode.apply(w,u)},r=function(o){return o.split("").map(function(s){return("0"+s.charCodeAt().toString(16)).slice(-2)}).join("")+">"},n=function(o){var s=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((o=o.replace(/\s/g,"")).indexOf(">")!==-1&&(o=o.substr(0,o.indexOf(">"))),o.length%2&&(o+="0"),s.test(o)===!1)return"";for(var c="",u=0;u<o.length;u+=2)c+=String.fromCharCode("0x"+(o[u]+o[u+1]));return c},i=function(o){for(var s=new Uint8Array(o.length),c=o.length;c--;)s[c]=o.charCodeAt(c);return(s=Yl(s)).reduce(function(u,h){return u+String.fromCharCode(h)},"")};t.processDataByFilters=function(o,s){var c=0,u=o||"",h=[];for(typeof(s=s||[])=="string"&&(s=[s]),c=0;c<s.length;c+=1)switch(s[c]){case"ASCII85Decode":case"/ASCII85Decode":u=e(u),h.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":u=A(u),h.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":u=n(u),h.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":u=r(u),h.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":u=i(u),h.push("/FlateDecode");break;default:throw new Error('The filter: "'+s[c]+'" is not implemented')}return{data:u,reverseChain:h.reverse().join(" ")}}}(kA.API),function(t){t.loadFile=function(A,e,r){return function(n,i,o){i=i!==!1,o=typeof o=="function"?o:function(){};var s=void 0;try{s=function(c,u,h){var p=new XMLHttpRequest,w=0,d=function(b){var y=b.length,S=[],F=String.fromCharCode;for(w=0;w<y;w+=1)S.push(F(255&b.charCodeAt(w)));return S.join("")};if(p.open("GET",c,!u),p.overrideMimeType("text/plain; charset=x-user-defined"),u===!1&&(p.onload=function(){p.status===200?h(d(this.responseText)):h(void 0)}),p.send(null),u&&p.status===200)return d(p.responseText)}(n,i,o)}catch{}return s}(A,e,r)},t.allowFsRead=void 0,t.loadImageFile=t.loadFile}(kA.API),function(t){function A(){return(zA.html2canvas?Promise.resolve(zA.html2canvas):Dc(()=>Promise.resolve().then(()=>f5),void 0,import.meta.url)).catch(function(s){return Promise.reject(new Error("Could not load html2canvas: "+s))}).then(function(s){return s.default?s.default:s})}function e(){return(zA.DOMPurify?Promise.resolve(zA.DOMPurify):Dc(()=>import("./vendor-mermaid-CmKdUpW3.js").then(s=>s.bO),__vite__mapDeps([0,1,2]),import.meta.url)).catch(function(s){return Promise.reject(new Error("Could not load dompurify: "+s))}).then(function(s){return s.default?s.default:s})}var r=function(s){var c=Se(s);return c==="undefined"?"undefined":c==="string"||s instanceof String?"string":c==="number"||s instanceof Number?"number":c==="function"||s instanceof Function?"function":s&&s.constructor===Array?"array":s&&s.nodeType===1?"element":c==="object"?"object":"unknown"},n=function(s,c){var u=document.createElement(s);for(var h in c.className&&(u.className=c.className),c.innerHTML&&c.dompurify&&(u.innerHTML=c.dompurify.sanitize(c.innerHTML)),c.style)u.style[h]=c.style[h];return u},i=function s(c,u){for(var h=c.nodeType===3?document.createTextNode(c.nodeValue):c.cloneNode(!1),p=c.firstChild;p;p=p.nextSibling)u!==!0&&p.nodeType===1&&p.nodeName==="SCRIPT"||h.appendChild(s(p,u));return c.nodeType===1&&(c.nodeName==="CANVAS"?(h.width=c.width,h.height=c.height,h.getContext("2d").drawImage(c,0,0)):c.nodeName!=="TEXTAREA"&&c.nodeName!=="SELECT"||(h.value=c.value),h.addEventListener("load",function(){h.scrollTop=c.scrollTop,h.scrollLeft=c.scrollLeft},!0)),h},o=function s(c){var u=Object.assign(s.convert(Promise.resolve()),JSON.parse(JSON.stringify(s.template))),h=s.convert(Promise.resolve(),u);return(h=h.setProgress(1,s,1,[s])).set(c)};(o.prototype=Object.create(Promise.prototype)).constructor=o,o.convert=function(s,c){return s.__proto__=c||o.prototype,s},o.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"}},o.prototype.from=function(s,c){return this.then(function(){switch(c=c||function(u){switch(r(u)){case"string":return"string";case"element":return u.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(s),c){case"string":return this.then(e).then(function(u){return this.set({src:n("div",{innerHTML:s,dompurify:u})})});case"element":return this.set({src:s});case"canvas":return this.set({canvas:s});case"img":return this.set({img:s});default:return this.error("Unknown source type.")}})},o.prototype.to=function(s){switch(s){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.")}},o.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 s={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},c=i(this.prop.src,this.opt.html2canvas.javascriptEnabled);c.tagName==="BODY"&&(s.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=n("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=n("div",{className:"html2pdf__container",style:s}),this.prop.container.appendChild(c),this.prop.container.firstChild.appendChild(n("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"})},o.prototype.toCanvas=function(){var s=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(s).then(A).then(function(c){var u=Object.assign({},this.opt.html2canvas);return delete u.onrendered,c(this.prop.container,u)}).then(function(c){(this.opt.html2canvas.onrendered||function(){})(c),this.prop.canvas=c,document.body.removeChild(this.prop.overlay)})},o.prototype.toContext2d=function(){var s=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(s).then(A).then(function(c){var u=this.opt.jsPDF,h=this.opt.fontFaces,p=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,w=Object.assign({async:!0,allowTaint:!0,scale:p,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 w.onrendered,u.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,u.context2d.posX=this.opt.x,u.context2d.posY=this.opt.y,u.context2d.margin=this.opt.margin,u.context2d.fontFaces=h,h)for(var d=0;d<h.length;++d){var b=h[d],y=b.src.find(function(S){return S.format==="truetype"});y&&u.addFont(y.url,b.ref.name,b.ref.style)}return w.windowHeight=w.windowHeight||0,w.windowHeight=w.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):w.windowHeight,u.context2d.save(!0),c(this.prop.container,w)}).then(function(c){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(c),this.prop.canvas=c,document.body.removeChild(this.prop.overlay)})},o.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var s=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=s})},o.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},o.prototype.output=function(s,c,u){return(u=u||"pdf").toLowerCase()==="img"||u.toLowerCase()==="image"?this.outputImg(s,c):this.outputPdf(s,c)},o.prototype.outputPdf=function(s,c){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(s,c)})},o.prototype.outputImg=function(s){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(s){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 "'+s+'" is not supported.'}})},o.prototype.save=function(s){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(s?{filename:s}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},o.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},o.prototype.set=function(s){if(r(s)!=="object")return this;var c=Object.keys(s||{}).map(function(u){if(u in o.template.prop)return function(){this.prop[u]=s[u]};switch(u){case"margin":return this.setMargin.bind(this,s.margin);case"jsPDF":return function(){return this.opt.jsPDF=s.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,s.pageSize);default:return function(){this.opt[u]=s[u]}}},this);return this.then(function(){return this.thenList(c)})},o.prototype.get=function(s,c){return this.then(function(){var u=s in o.template.prop?this.prop[s]:this.opt[s];return c?c(u):u})},o.prototype.setMargin=function(s){return this.then(function(){switch(r(s)){case"number":s=[s,s,s,s];case"array":if(s.length===2&&(s=[s[0],s[1],s[0],s[1]]),s.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=s}).then(this.setPageSize)},o.prototype.setPageSize=function(s){function c(u,h){return Math.floor(u*h/72*96)}return this.then(function(){(s=s||kA.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(s.inner={width:s.width-this.opt.margin[1]-this.opt.margin[3],height:s.height-this.opt.margin[0]-this.opt.margin[2]},s.inner.px={width:c(s.inner.width,s.k),height:c(s.inner.height,s.k)},s.inner.ratio=s.inner.height/s.inner.width),this.prop.pageSize=s})},o.prototype.setProgress=function(s,c,u,h){return s!=null&&(this.progress.val=s),c!=null&&(this.progress.state=c),u!=null&&(this.progress.n=u),h!=null&&(this.progress.stack=h),this.progress.ratio=this.progress.val/this.progress.state,this},o.prototype.updateProgress=function(s,c,u,h){return this.setProgress(s?this.progress.val+s:null,c||null,u?this.progress.n+u:null,h?this.progress.stack.concat(h):null)},o.prototype.then=function(s,c){var u=this;return this.thenCore(s,c,function(h,p){return u.updateProgress(null,null,1,[h]),Promise.prototype.then.call(this,function(w){return u.updateProgress(null,h),w}).then(h,p).then(function(w){return u.updateProgress(1),w})})},o.prototype.thenCore=function(s,c,u){u=u||Promise.prototype.then;var h=this;s&&(s=s.bind(h)),c&&(c=c.bind(h));var p=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?h:o.convert(Object.assign({},h),Promise.prototype),w=u.call(p,s,c);return o.convert(w,h.__proto__)},o.prototype.thenExternal=function(s,c){return Promise.prototype.then.call(this,s,c)},o.prototype.thenList=function(s){var c=this;return s.forEach(function(u){c=c.thenCore(u)}),c},o.prototype.catch=function(s){s&&(s=s.bind(this));var c=Promise.prototype.catch.call(this,s);return o.convert(c,this)},o.prototype.catchExternal=function(s){return Promise.prototype.catch.call(this,s)},o.prototype.error=function(s){return this.then(function(){throw new Error(s)})},o.prototype.using=o.prototype.set,o.prototype.saveAs=o.prototype.save,o.prototype.export=o.prototype.output,o.prototype.run=o.prototype.then,kA.getPageSize=function(s,c,u){if(Se(s)==="object"){var h=s;s=h.orientation,c=h.unit||c,u=h.format||u}c=c||"mm",u=u||"a4",s=(""+(s||"P")).toLowerCase();var p,w=(""+u).toLowerCase(),d={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(c){case"pt":p=1;break;case"mm":p=72/25.4;break;case"cm":p=72/2.54;break;case"in":p=72;break;case"px":p=.75;break;case"pc":case"em":p=12;break;case"ex":p=6;break;default:throw"Invalid unit: "+c}var b,y=0,S=0;if(d.hasOwnProperty(w))y=d[w][1]/p,S=d[w][0]/p;else try{y=u[1],S=u[0]}catch{throw new Error("Invalid format: "+u)}if(s==="p"||s==="portrait")s="p",S>y&&(b=S,S=y,y=b);else{if(s!=="l"&&s!=="landscape")throw"Invalid orientation: "+s;s="l",y>S&&(b=S,S=y,y=b)}return{width:S,height:y,unit:c,k:p,orientation:s}},t.html=function(s,c){(c=c||{}).callback=c.callback||function(){},c.html2canvas=c.html2canvas||{},c.html2canvas.canvas=c.html2canvas.canvas||this.canvas,c.jsPDF=c.jsPDF||this,c.fontFaces=c.fontFaces?c.fontFaces.map(Cl):null;var u=new o(c);return c.worker?u:u.from(s).doCallback()}}(kA.API),kA.API.addJS=function(t){var A,e,r=function(n){for(var i="",o=0;o<n.length;o++){var s=n[o];if(s==="("||s===")"){for(var c=0,u=o-1;u>=0&&n[u]==="\\";u--)c++;i+=c%2==0?"\\"+s:s}else i+=s}return i}(t);return this.internal.events.subscribe("postPutResources",function(){A=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(A+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),e=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+r+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){A!==void 0&&e!==void 0&&this.internal.out("/Names <</JavaScript "+A+" 0 R>>")}),this},function(t){var A;t.events.push(["postPutResources",function(){var e=this,r=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var n=e.outline.render().split(/\r\n/),i=0;i<n.length;i++){var o=n[i],s=r.exec(o);if(s!=null){var c=s[1];e.internal.newObjectDeferredBegin(c,!1)}e.internal.write(o)}if(this.outline.createNamedDestinations){var u=this.internal.pages.length,h=[];for(i=0;i<u;i++){var p=e.internal.newObject();h.push(p);var w=e.internal.getPageInfo(i+1);e.internal.write("<< /D["+w.objId+" 0 R /XYZ null null null]>> endobj")}var d=e.internal.newObject();for(e.internal.write("<< /Names [ "),i=0;i<h.length;i++)e.internal.write("(page_"+(i+1)+")"+h[i]+" 0 R");e.internal.write(" ] >>","endobj"),A=e.internal.newObject(),e.internal.write("<< /Dests "+d+" 0 R"),e.internal.write(">>","endobj")}}]),t.events.push(["putCatalog",function(){var e=this;e.outline.root.children.length>0&&(e.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&e.internal.write("/Names "+A+" 0 R"))}]),t.events.push(["initialized",function(){var e=this;e.outline={createNamedDestinations:!1,root:{children:[]}},e.outline.add=function(r,n,i){var o={title:n,options:i,children:[]};return r==null&&(r=this.root),r.children.push(o),o},e.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=e,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},e.outline.genIds_r=function(r){r.id=e.internal.newObjectDeferred();for(var n=0;n<r.children.length;n++)this.genIds_r(r.children[n])},e.outline.renderRoot=function(r){this.objStart(r),this.line("/Type /Outlines"),r.children.length>0&&(this.line("/First "+this.makeRef(r.children[0])),this.line("/Last "+this.makeRef(r.children[r.children.length-1]))),this.line("/Count "+this.count_r({count:0},r)),this.objEnd()},e.outline.renderItems=function(r){for(var n=this.ctx.pdf.internal.getVerticalCoordinateString,i=0;i<r.children.length;i++){var o=r.children[i];this.objStart(o),this.line("/Title "+this.makeString(o.title)),this.line("/Parent "+this.makeRef(r)),i>0&&this.line("/Prev "+this.makeRef(r.children[i-1])),i<r.children.length-1&&this.line("/Next "+this.makeRef(r.children[i+1])),o.children.length>0&&(this.line("/First "+this.makeRef(o.children[0])),this.line("/Last "+this.makeRef(o.children[o.children.length-1])));var s=this.count=this.count_r({count:0},o);if(s>0&&this.line("/Count "+s),o.options&&o.options.pageNumber){var c=e.internal.getPageInfo(o.options.pageNumber);this.line("/Dest ["+c.objId+" 0 R /XYZ 0 "+n(0)+" 0]")}this.objEnd()}for(var u=0;u<r.children.length;u++)this.renderItems(r.children[u])},e.outline.line=function(r){this.ctx.val+=r+`\r
|
|
153
|
+
*/function T4(){var t,A=this.internal.__metadata__.metadata,e=unescape(encodeURIComponent(A));t=this.internal.__metadata__.rawXml?e:'<x:xmpmeta xmlns:x="adobe:ns:meta/"><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>'+e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")+"</jspdf:metadata></rdf:Description></rdf:RDF></x:xmpmeta>",this.internal.__metadata__.metadataObjectNumber=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+t.length+" >>"),this.internal.write("stream"),this.internal.write(t),this.internal.write("endstream"),this.internal.write("endobj")}function O4(){this.internal.__metadata__.metadataObjectNumber&&this.internal.write("/Metadata "+this.internal.__metadata__.metadataObjectNumber+" 0 R")}(function(t){var A,e,r,n,i,o,s,c,u,h=function(Q){return Q=Q||{},this.isStrokeTransparent=Q.isStrokeTransparent||!1,this.strokeOpacity=Q.strokeOpacity||1,this.strokeStyle=Q.strokeStyle||"#000000",this.fillStyle=Q.fillStyle||"#000000",this.isFillTransparent=Q.isFillTransparent||!1,this.fillOpacity=Q.fillOpacity||1,this.font=Q.font||"10px sans-serif",this.textBaseline=Q.textBaseline||"alphabetic",this.textAlign=Q.textAlign||"left",this.lineWidth=Q.lineWidth||1,this.lineJoin=Q.lineJoin||"miter",this.lineCap=Q.lineCap||"butt",this.path=Q.path||[],this.transform=Q.transform!==void 0?Q.transform.clone():new c,this.globalCompositeOperation=Q.globalCompositeOperation||"normal",this.globalAlpha=Q.globalAlpha||1,this.clip_path=Q.clip_path||[],this.currentPoint=Q.currentPoint||new o,this.miterLimit=Q.miterLimit||10,this.lastPoint=Q.lastPoint||new o,this.lineDashOffset=Q.lineDashOffset||0,this.lineDash=Q.lineDash||[],this.margin=Q.margin||[0,0,0,0],this.prevPageLastElemOffset=Q.prevPageLastElemOffset||0,this.ignoreClearRect=typeof Q.ignoreClearRect!="boolean"||Q.ignoreClearRect,this};t.events.push(["initialized",function(){this.context2d=new p(this),A=this.internal.f2,e=this.internal.getCoordinateString,r=this.internal.getVerticalCoordinateString,n=this.internal.getHorizontalCoordinate,i=this.internal.getVerticalCoordinate,o=this.internal.Point,s=this.internal.Rectangle,c=this.internal.Matrix,u=new h}]);var p=function(Q){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var O=Q;Object.defineProperty(this,"pdf",{get:function(){return O}});var M=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return M},set:function(H){M=!!H}});var q=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return q},set:function(H){q=!!H}});var X=0;Object.defineProperty(this,"posX",{get:function(){return X},set:function(H){isNaN(H)||(X=H)}});var eA=0;Object.defineProperty(this,"posY",{get:function(){return eA},set:function(H){isNaN(H)||(eA=H)}}),Object.defineProperty(this,"margin",{get:function(){return u.margin},set:function(H){var bA;typeof H=="number"?bA=[H,H,H,H]:((bA=new Array(4))[0]=H[0],bA[1]=H.length>=2?H[1]:bA[0],bA[2]=H.length>=3?H[2]:bA[0],bA[3]=H.length>=4?H[3]:bA[1]),u.margin=bA}});var lA=!1;Object.defineProperty(this,"autoPaging",{get:function(){return lA},set:function(H){lA=H}});var uA=0;Object.defineProperty(this,"lastBreak",{get:function(){return uA},set:function(H){uA=H}});var gA=[];Object.defineProperty(this,"pageBreaks",{get:function(){return gA},set:function(H){gA=H}}),Object.defineProperty(this,"ctx",{get:function(){return u},set:function(H){H instanceof h&&(u=H)}}),Object.defineProperty(this,"path",{get:function(){return u.path},set:function(H){u.path=H}});var QA=[];Object.defineProperty(this,"ctxStack",{get:function(){return QA},set:function(H){QA=H}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(H){var bA;bA=w(H),this.ctx.fillStyle=bA.style,this.ctx.isFillTransparent=bA.a===0,this.ctx.fillOpacity=bA.a,this.pdf.setFillColor(bA.r,bA.g,bA.b,{a:bA.a}),this.pdf.setTextColor(bA.r,bA.g,bA.b,{a:bA.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(H){var bA=w(H);this.ctx.strokeStyle=bA.style,this.ctx.isStrokeTransparent=bA.a===0,this.ctx.strokeOpacity=bA.a,bA.a===0?this.pdf.setDrawColor(255,255,255):(bA.a,this.pdf.setDrawColor(bA.r,bA.g,bA.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(H){["butt","round","square"].indexOf(H)!==-1&&(this.ctx.lineCap=H,this.pdf.setLineCap(H))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(H){isNaN(H)||(this.ctx.lineWidth=H,this.pdf.setLineWidth(H))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(H){["bevel","round","miter"].indexOf(H)!==-1&&(this.ctx.lineJoin=H,this.pdf.setLineJoin(H))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(H){isNaN(H)||(this.ctx.miterLimit=H,this.pdf.setMiterLimit(H))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(H){this.ctx.textBaseline=H}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(H){["right","end","center","left","start"].indexOf(H)!==-1&&(this.ctx.textAlign=H)}});var LA=null,yA=null,KA=null;Object.defineProperty(this,"fontFaces",{get:function(){return KA},set:function(H){LA=null,yA=null,KA=H}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(H){var bA;if(this.ctx.font=H,(bA=/^\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(H))!==null){var se=bA[1];bA[2];var VA=bA[3],CA=bA[4];bA[5];var qA=bA[6],HA=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(CA)[2];CA=Math.floor(HA==="px"?parseFloat(CA)*this.pdf.internal.scaleFactor:HA==="em"?parseFloat(CA)*this.pdf.getFontSize():parseFloat(CA)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(CA);var jA=function(MA){var Ye,we,oe=[],ce=MA.trim();if(ce==="")return ml;if(ce in Wh)return[Wh[ce]];for(;ce!=="";){switch(we=null,Ye=(ce=Jh(ce)).charAt(0)){case'"':case"'":we=I4(ce.substring(1),Ye);break;default:we=S4(ce)}if(we===null||(oe.push(we[0]),(ce=Jh(we[1]))!==""&&ce.charAt(0)!==","))return ml;ce=ce.replace(/^,/,"")}return oe}(qA);if(this.fontFaces){var RA=function(MA,Ye){var we=MA.getFontList(),oe=JSON.stringify(we);if(LA===null||yA!==oe){var ce=function(Me){var GA=[];return Object.keys(Me).forEach(function(He){Me[He].forEach(function(JA){var ee=null;switch(JA){case"bold":ee={family:He,weight:"bold"};break;case"italic":ee={family:He,style:"italic"};break;case"bolditalic":ee={family:He,weight:"bold",style:"italic"};break;case"":case"normal":ee={family:He}}ee!==null&&(ee.ref={name:He,style:JA},GA.push(ee))})}),GA}(we);LA=function(Me){for(var GA={},He=0;He<Me.length;++He){var JA=Cl(Me[He]),ee=JA.family,Ke=JA.stretch,le=JA.style,WA=JA.weight;GA[ee]=GA[ee]||{},GA[ee][Ke]=GA[ee][Ke]||{},GA[ee][Ke][le]=GA[ee][Ke][le]||{},GA[ee][Ke][le][WA]=JA}return GA}(ce.concat(Ye)),yA=oe}return LA}(this.pdf,this.fontFaces),Ce=jA.map(function(MA){return{family:MA,stretch:"normal",weight:VA,style:se}}),ue=function(MA,Ye,we){for(var oe=(we=we||{}).defaultFontFamily||"times",ce=Object.assign({},x4,we.genericFontFamilies||{}),Me=null,GA=null,He=0;He<Ye.length;++He)if(ce[(Me=Cl(Ye[He])).family]&&(Me.family=ce[Me.family]),MA.hasOwnProperty(Me.family)){GA=MA[Me.family];break}if(!(GA=GA||MA[oe]))throw new Error("Could not find a font-family for the rule '"+Xh(Me)+"' and default family '"+oe+"'.");if(GA=function(JA,ee){if(ee[JA])return ee[JA];var Ke=ru[JA],le=Ke<=ru.normal?-1:1,WA=qh(ee,z1,Ke,le);if(!WA)throw new Error("Could not find a matching font-stretch value for "+JA);return WA}(Me.stretch,GA),GA=function(JA,ee){if(ee[JA])return ee[JA];for(var Ke=Y1[JA],le=0;le<Ke.length;++le)if(ee[Ke[le]])return ee[Ke[le]];throw new Error("Could not find a matching font-style for "+JA)}(Me.style,GA),!(GA=function(JA,ee){if(ee[JA])return ee[JA];if(JA===400&&ee[500])return ee[500];if(JA===500&&ee[400])return ee[400];var Ke=L4[JA],le=qh(ee,Z1,Ke,JA<400?-1:1);if(!le)throw new Error("Could not find a matching font-weight for value "+JA);return le}(Me.weight,GA)))throw new Error("Failed to resolve a font for the rule '"+Xh(Me)+"'.");return GA}(RA,Ce);this.pdf.setFont(ue.ref.name,ue.ref.style)}else{var Ae="";(VA==="bold"||parseInt(VA,10)>=700||se==="bold")&&(Ae="bold"),se==="italic"&&(Ae+="italic"),Ae.length===0&&(Ae="normal");for(var Be="",fe={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"},OA=0;OA<jA.length;OA++){if(this.pdf.internal.getFont(jA[OA],Ae,{noFallback:!0,disableWarning:!0})!==void 0){Be=jA[OA];break}if(Ae==="bolditalic"&&this.pdf.internal.getFont(jA[OA],"bold",{noFallback:!0,disableWarning:!0})!==void 0)Be=jA[OA],Ae="bold";else if(this.pdf.internal.getFont(jA[OA],"normal",{noFallback:!0,disableWarning:!0})!==void 0){Be=jA[OA],Ae="normal";break}}if(Be===""){for(var ne=0;ne<jA.length;ne++)if(fe[jA[ne]]){Be=fe[jA[ne]];break}}Be=Be===""?"Times":Be,this.pdf.setFont(Be,Ae)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(H){this.ctx.globalCompositeOperation=H}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(H){this.ctx.globalAlpha=H}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(H){this.ctx.lineDashOffset=H,pA.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(H){this.ctx.lineDash=H,pA.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(H){this.ctx.ignoreClearRect=!!H}})};p.prototype.setLineDash=function(Q){this.lineDash=Q},p.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},p.prototype.fill=function(){k.call(this,"fill",!1)},p.prototype.stroke=function(){k.call(this,"stroke",!1)},p.prototype.beginPath=function(){this.path=[{type:"begin"}]},p.prototype.moveTo=function(Q,O){if(isNaN(Q)||isNaN(O))throw Ie.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var M=this.ctx.transform.applyToPoint(new o(Q,O));this.path.push({type:"mt",x:M.x,y:M.y}),this.ctx.lastPoint=new o(Q,O)},p.prototype.closePath=function(){var Q=new o(0,0),O=0;for(O=this.path.length-1;O!==-1;O--)if(this.path[O].type==="begin"&&Se(this.path[O+1])==="object"&&typeof this.path[O+1].x=="number"){Q=new o(this.path[O+1].x,this.path[O+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new o(Q.x,Q.y)},p.prototype.lineTo=function(Q,O){if(isNaN(Q)||isNaN(O))throw Ie.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var M=this.ctx.transform.applyToPoint(new o(Q,O));this.path.push({type:"lt",x:M.x,y:M.y}),this.ctx.lastPoint=new o(M.x,M.y)},p.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),k.call(this,null,!0)},p.prototype.quadraticCurveTo=function(Q,O,M,q){if(isNaN(M)||isNaN(q)||isNaN(Q)||isNaN(O))throw Ie.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var X=this.ctx.transform.applyToPoint(new o(M,q)),eA=this.ctx.transform.applyToPoint(new o(Q,O));this.path.push({type:"qct",x1:eA.x,y1:eA.y,x:X.x,y:X.y}),this.ctx.lastPoint=new o(X.x,X.y)},p.prototype.bezierCurveTo=function(Q,O,M,q,X,eA){if(isNaN(X)||isNaN(eA)||isNaN(Q)||isNaN(O)||isNaN(M)||isNaN(q))throw Ie.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var lA=this.ctx.transform.applyToPoint(new o(X,eA)),uA=this.ctx.transform.applyToPoint(new o(Q,O)),gA=this.ctx.transform.applyToPoint(new o(M,q));this.path.push({type:"bct",x1:uA.x,y1:uA.y,x2:gA.x,y2:gA.y,x:lA.x,y:lA.y}),this.ctx.lastPoint=new o(lA.x,lA.y)},p.prototype.arc=function(Q,O,M,q,X,eA){if(isNaN(Q)||isNaN(O)||isNaN(M)||isNaN(q)||isNaN(X))throw Ie.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(eA=!!eA,!this.ctx.transform.isIdentity){var lA=this.ctx.transform.applyToPoint(new o(Q,O));Q=lA.x,O=lA.y;var uA=this.ctx.transform.applyToPoint(new o(0,M)),gA=this.ctx.transform.applyToPoint(new o(0,0));M=Math.sqrt(Math.pow(uA.x-gA.x,2)+Math.pow(uA.y-gA.y,2))}Math.abs(X-q)>=2*Math.PI&&(q=0,X=2*Math.PI),this.path.push({type:"arc",x:Q,y:O,radius:M,startAngle:q,endAngle:X,counterclockwise:eA})},p.prototype.arcTo=function(Q,O,M,q,X){throw new Error("arcTo not implemented.")},p.prototype.rect=function(Q,O,M,q){if(isNaN(Q)||isNaN(O)||isNaN(M)||isNaN(q))throw Ie.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(Q,O),this.lineTo(Q+M,O),this.lineTo(Q+M,O+q),this.lineTo(Q,O+q),this.lineTo(Q,O),this.lineTo(Q+M,O),this.lineTo(Q,O)},p.prototype.fillRect=function(Q,O,M,q){if(isNaN(Q)||isNaN(O)||isNaN(M)||isNaN(q))throw Ie.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!d.call(this)){var X={};this.lineCap!=="butt"&&(X.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(X.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(Q,O,M,q),this.fill(),X.hasOwnProperty("lineCap")&&(this.lineCap=X.lineCap),X.hasOwnProperty("lineJoin")&&(this.lineJoin=X.lineJoin)}},p.prototype.strokeRect=function(Q,O,M,q){if(isNaN(Q)||isNaN(O)||isNaN(M)||isNaN(q))throw Ie.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");b.call(this)||(this.beginPath(),this.rect(Q,O,M,q),this.stroke())},p.prototype.clearRect=function(Q,O,M,q){if(isNaN(Q)||isNaN(O)||isNaN(M)||isNaN(q))throw Ie.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(Q,O,M,q))},p.prototype.save=function(Q){Q=typeof Q!="boolean"||Q;for(var O=this.pdf.internal.getCurrentPageInfo().pageNumber,M=0;M<this.pdf.internal.getNumberOfPages();M++)this.pdf.setPage(M+1),this.pdf.internal.out("q");if(this.pdf.setPage(O),Q){this.ctx.fontSize=this.pdf.internal.getFontSize();var q=new h(this.ctx);this.ctxStack.push(this.ctx),this.ctx=q}},p.prototype.restore=function(Q){Q=typeof Q!="boolean"||Q;for(var O=this.pdf.internal.getCurrentPageInfo().pageNumber,M=0;M<this.pdf.internal.getNumberOfPages();M++)this.pdf.setPage(M+1),this.pdf.internal.out("Q");this.pdf.setPage(O),Q&&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)},p.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var w=function(Q){var O,M,q,X;if(Q.isCanvasGradient===!0&&(Q=Q.getColor()),!Q)return{r:0,g:0,b:0,a:0,style:Q};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(Q))O=0,M=0,q=0,X=0;else{var eA=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(Q);if(eA!==null)O=parseInt(eA[1]),M=parseInt(eA[2]),q=parseInt(eA[3]),X=1;else if((eA=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(Q))!==null)O=parseInt(eA[1]),M=parseInt(eA[2]),q=parseInt(eA[3]),X=parseFloat(eA[4]);else{if(X=1,typeof Q=="string"&&Q.charAt(0)!=="#"){var lA=new G1(Q);Q=lA.ok?lA.toHex():"#000000"}Q.length===4?(O=Q.substring(1,2),O+=O,M=Q.substring(2,3),M+=M,q=Q.substring(3,4),q+=q):(O=Q.substring(1,3),M=Q.substring(3,5),q=Q.substring(5,7)),O=parseInt(O,16),M=parseInt(M,16),q=parseInt(q,16)}}return{r:O,g:M,b:q,a:X,style:Q}},d=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},b=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};p.prototype.fillText=function(Q,O,M,q){if(isNaN(O)||isNaN(M)||typeof Q!="string")throw Ie.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(q=isNaN(q)?void 0:q,!d.call(this)){var X=tA(this.ctx.transform.rotation),eA=this.ctx.transform.scaleX;I.call(this,{text:Q,x:O,y:M,scale:eA,angle:X,align:this.textAlign,maxWidth:q})}},p.prototype.strokeText=function(Q,O,M,q){if(isNaN(O)||isNaN(M)||typeof Q!="string")throw Ie.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!b.call(this)){q=isNaN(q)?void 0:q;var X=tA(this.ctx.transform.rotation),eA=this.ctx.transform.scaleX;I.call(this,{text:Q,x:O,y:M,scale:eA,renderingMode:"stroke",angle:X,align:this.textAlign,maxWidth:q})}},p.prototype.measureText=function(Q){if(typeof Q!="string")throw Ie.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var O=this.pdf,M=this.pdf.internal.scaleFactor,q=O.internal.getFontSize(),X=O.getStringUnitWidth(Q)*q/O.internal.scaleFactor;return new function(eA){var lA=(eA=eA||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return lA}}),this}({width:X*=Math.round(96*M/72*1e4)/1e4})},p.prototype.scale=function(Q,O){if(isNaN(Q)||isNaN(O))throw Ie.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var M=new c(Q,0,0,O,0,0);this.ctx.transform=this.ctx.transform.multiply(M)},p.prototype.rotate=function(Q){if(isNaN(Q))throw Ie.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var O=new c(Math.cos(Q),Math.sin(Q),-Math.sin(Q),Math.cos(Q),0,0);this.ctx.transform=this.ctx.transform.multiply(O)},p.prototype.translate=function(Q,O){if(isNaN(Q)||isNaN(O))throw Ie.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var M=new c(1,0,0,1,Q,O);this.ctx.transform=this.ctx.transform.multiply(M)},p.prototype.transform=function(Q,O,M,q,X,eA){if(isNaN(Q)||isNaN(O)||isNaN(M)||isNaN(q)||isNaN(X)||isNaN(eA))throw Ie.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var lA=new c(Q,O,M,q,X,eA);this.ctx.transform=this.ctx.transform.multiply(lA)},p.prototype.setTransform=function(Q,O,M,q,X,eA){Q=isNaN(Q)?1:Q,O=isNaN(O)?0:O,M=isNaN(M)?0:M,q=isNaN(q)?1:q,X=isNaN(X)?0:X,eA=isNaN(eA)?0:eA,this.ctx.transform=new c(Q,O,M,q,X,eA)};var y=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};p.prototype.drawImage=function(Q,O,M,q,X,eA,lA,uA,gA){var QA=this.pdf.getImageProperties(Q),LA=1,yA=1,KA=1,H=1;q!==void 0&&uA!==void 0&&(KA=uA/q,H=gA/X,LA=QA.width/q*uA/q,yA=QA.height/X*gA/X),eA===void 0&&(eA=O,lA=M,O=0,M=0),q!==void 0&&uA===void 0&&(uA=q,gA=X),q===void 0&&uA===void 0&&(uA=QA.width,gA=QA.height);var bA=this.ctx.transform.decompose(),se=tA(bA.rotate.shx),VA=new c,CA=(VA=(VA=(VA=VA.multiply(bA.translate)).multiply(bA.skew)).multiply(bA.scale)).applyToRectangle(new s(eA-O*KA,lA-M*H,q*LA,X*yA));if(this.autoPaging){for(var qA,HA=S.call(this,CA),jA=[],RA=0;RA<HA.length;RA+=1)jA.indexOf(HA[RA])===-1&&jA.push(HA[RA]);G(jA);for(var Ce=jA[0],ue=jA[jA.length-1],Ae=Ce;Ae<ue+1;Ae++){this.pdf.setPage(Ae);var Be=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],fe=Ae===1?this.posY+this.margin[0]:this.margin[0],OA=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],ne=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],MA=Ae===1?0:OA+(Ae-2)*ne;if(this.ctx.clip_path.length!==0){var Ye=this.path;qA=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=P(qA,this.posX+this.margin[3],-MA+fe+this.ctx.prevPageLastElemOffset),Y.call(this,"fill",!0),this.path=Ye}var we=JSON.parse(JSON.stringify(CA));we=P([we],this.posX+this.margin[3],-MA+fe+this.ctx.prevPageLastElemOffset)[0];var oe=(Ae>Ce||Ae<ue)&&y.call(this);oe&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Be,ne,null).clip().discardPath()),this.pdf.addImage(Q,"JPEG",we.x,we.y,we.w,we.h,null,null,se),oe&&this.pdf.restoreGraphicsState()}}else this.pdf.addImage(Q,"JPEG",CA.x,CA.y,CA.w,CA.h,null,null,se)};var S=function(Q,O,M){var q=[];O=O||this.pdf.internal.pageSize.width,M=M||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var X=this.posY+this.ctx.prevPageLastElemOffset;switch(Q.type){default:case"mt":case"lt":q.push(Math.floor((Q.y+X)/M)+1);break;case"arc":q.push(Math.floor((Q.y+X-Q.radius)/M)+1),q.push(Math.floor((Q.y+X+Q.radius)/M)+1);break;case"qct":var eA=cA(this.ctx.lastPoint.x,this.ctx.lastPoint.y,Q.x1,Q.y1,Q.x,Q.y);q.push(Math.floor((eA.y+X)/M)+1),q.push(Math.floor((eA.y+eA.h+X)/M)+1);break;case"bct":var lA=FA(this.ctx.lastPoint.x,this.ctx.lastPoint.y,Q.x1,Q.y1,Q.x2,Q.y2,Q.x,Q.y);q.push(Math.floor((lA.y+X)/M)+1),q.push(Math.floor((lA.y+lA.h+X)/M)+1);break;case"rect":q.push(Math.floor((Q.y+X)/M)+1),q.push(Math.floor((Q.y+Q.h+X)/M)+1)}for(var uA=0;uA<q.length;uA+=1)for(;this.pdf.internal.getNumberOfPages()<q[uA];)F.call(this);return q},F=function(){var Q=this.fillStyle,O=this.strokeStyle,M=this.font,q=this.lineCap,X=this.lineWidth,eA=this.lineJoin;this.pdf.addPage(),this.fillStyle=Q,this.strokeStyle=O,this.font=M,this.lineCap=q,this.lineWidth=X,this.lineJoin=eA},P=function(Q,O,M){for(var q=0;q<Q.length;q++)switch(Q[q].type){case"bct":Q[q].x2+=O,Q[q].y2+=M;case"qct":Q[q].x1+=O,Q[q].y1+=M;default:Q[q].x+=O,Q[q].y+=M}return Q},G=function(Q){return Q.sort(function(O,M){return O-M})},k=function(Q,O){var M=this.fillStyle,q=this.strokeStyle,X=this.lineCap,eA=this.lineWidth,lA=Math.abs(eA*this.ctx.transform.scaleX),uA=this.lineJoin;if(this.autoPaging){for(var gA,QA,LA=JSON.parse(JSON.stringify(this.path)),yA=JSON.parse(JSON.stringify(this.path)),KA=[],H=0;H<yA.length;H++)if(yA[H].x!==void 0)for(var bA=S.call(this,yA[H]),se=0;se<bA.length;se+=1)KA.indexOf(bA[se])===-1&&KA.push(bA[se]);for(var VA=0;VA<KA.length;VA++)for(;this.pdf.internal.getNumberOfPages()<KA[VA];)F.call(this);G(KA);for(var CA=KA[0],qA=KA[KA.length-1],HA=CA;HA<qA+1;HA++){this.pdf.setPage(HA),this.fillStyle=M,this.strokeStyle=q,this.lineCap=X,this.lineWidth=lA,this.lineJoin=uA;var jA=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],RA=HA===1?this.posY+this.margin[0]:this.margin[0],Ce=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],ue=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Ae=HA===1?0:Ce+(HA-2)*ue;if(this.ctx.clip_path.length!==0){var Be=this.path;gA=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=P(gA,this.posX+this.margin[3],-Ae+RA+this.ctx.prevPageLastElemOffset),Y.call(this,Q,!0),this.path=Be}if(QA=JSON.parse(JSON.stringify(LA)),this.path=P(QA,this.posX+this.margin[3],-Ae+RA+this.ctx.prevPageLastElemOffset),O===!1||HA===0){var fe=(HA>CA||HA<qA)&&y.call(this);fe&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],jA,ue,null).clip().discardPath()),Y.call(this,Q,O),fe&&this.pdf.restoreGraphicsState()}this.lineWidth=eA}this.path=LA}else this.lineWidth=lA,Y.call(this,Q,O),this.lineWidth=eA},Y=function(Q,O){if((Q!=="stroke"||O||!b.call(this))&&(Q==="stroke"||O||!d.call(this))){for(var M,q,X=[],eA=this.path,lA=0;lA<eA.length;lA++){var uA=eA[lA];switch(uA.type){case"begin":X.push({begin:!0});break;case"close":X.push({close:!0});break;case"mt":X.push({start:uA,deltas:[],abs:[]});break;case"lt":var gA=X.length;if(eA[lA-1]&&!isNaN(eA[lA-1].x)&&(M=[uA.x-eA[lA-1].x,uA.y-eA[lA-1].y],gA>0)){for(;gA>=0;gA--)if(X[gA-1].close!==!0&&X[gA-1].begin!==!0){X[gA-1].deltas.push(M),X[gA-1].abs.push(uA);break}}break;case"bct":M=[uA.x1-eA[lA-1].x,uA.y1-eA[lA-1].y,uA.x2-eA[lA-1].x,uA.y2-eA[lA-1].y,uA.x-eA[lA-1].x,uA.y-eA[lA-1].y],X[X.length-1].deltas.push(M);break;case"qct":var QA=eA[lA-1].x+2/3*(uA.x1-eA[lA-1].x),LA=eA[lA-1].y+2/3*(uA.y1-eA[lA-1].y),yA=uA.x+2/3*(uA.x1-uA.x),KA=uA.y+2/3*(uA.y1-uA.y),H=uA.x,bA=uA.y;M=[QA-eA[lA-1].x,LA-eA[lA-1].y,yA-eA[lA-1].x,KA-eA[lA-1].y,H-eA[lA-1].x,bA-eA[lA-1].y],X[X.length-1].deltas.push(M);break;case"arc":X.push({deltas:[],abs:[],arc:!0}),Array.isArray(X[X.length-1].abs)&&X[X.length-1].abs.push(uA)}}q=O?null:Q==="stroke"?"stroke":"fill";for(var se=!1,VA=0;VA<X.length;VA++)if(X[VA].arc)for(var CA=X[VA].abs,qA=0;qA<CA.length;qA++){var HA=CA[qA];HA.type==="arc"?V.call(this,HA.x,HA.y,HA.radius,HA.startAngle,HA.endAngle,HA.counterclockwise,void 0,O,!se):K.call(this,HA.x,HA.y),se=!0}else if(X[VA].close===!0)this.pdf.internal.out("h"),se=!1;else if(X[VA].begin!==!0){var jA=X[VA].start.x,RA=X[VA].start.y;R.call(this,X[VA].deltas,jA,RA),se=!0}q&&N.call(this,q),O&&$.call(this)}},Z=function(Q){var O=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,M=O*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return Q-M;case"top":return Q+O-M;case"hanging":return Q+O-2*M;case"middle":return Q+O/2-M;default:return Q}},iA=function(Q){return Q+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};p.prototype.createLinearGradient=function(){var Q=function(){};return Q.colorStops=[],Q.addColorStop=function(O,M){this.colorStops.push([O,M])},Q.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},Q.isCanvasGradient=!0,Q},p.prototype.createPattern=function(){return this.createLinearGradient()},p.prototype.createRadialGradient=function(){return this.createLinearGradient()};var V=function(Q,O,M,q,X,eA,lA,uA,gA){for(var QA=sA.call(this,M,q,X,eA),LA=0;LA<QA.length;LA++){var yA=QA[LA];LA===0&&(gA?E.call(this,yA.x1+Q,yA.y1+O):K.call(this,yA.x1+Q,yA.y1+O)),aA.call(this,Q,O,yA.x2,yA.y2,yA.x3,yA.y3,yA.x4,yA.y4)}uA?$.call(this):N.call(this,lA)},N=function(Q){switch(Q){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},$=function(){this.pdf.clip(),this.pdf.discardPath()},E=function(Q,O){this.pdf.internal.out(e(Q)+" "+r(O)+" m")},I=function(Q){var O;switch(Q.align){case"right":case"end":O="right";break;case"center":O="center";break;default:O="left"}var M,q,X,eA=this.pdf.getTextDimensions(Q.text),lA=Z.call(this,Q.y),uA=iA.call(this,lA)-eA.h,gA=this.ctx.transform.applyToPoint(new o(Q.x,lA));if(this.autoPaging){var QA=this.ctx.transform.decompose(),LA=new c;LA=(LA=(LA=LA.multiply(QA.translate)).multiply(QA.skew)).multiply(QA.scale);for(var yA=this.ctx.transform.applyToRectangle(new s(Q.x,lA,eA.w,eA.h)),KA=LA.applyToRectangle(new s(Q.x,uA,eA.w,eA.h)),H=S.call(this,KA),bA=[],se=0;se<H.length;se+=1)bA.indexOf(H[se])===-1&&bA.push(H[se]);G(bA);for(var VA=bA[0],CA=bA[bA.length-1],qA=VA;qA<CA+1;qA++){this.pdf.setPage(qA);var HA=qA===1?this.posY+this.margin[0]:this.margin[0],jA=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],RA=this.pdf.internal.pageSize.height-this.margin[2],Ce=RA-this.margin[0],ue=this.pdf.internal.pageSize.width-this.margin[1],Ae=ue-this.margin[3],Be=qA===1?0:jA+(qA-2)*Ce;if(this.ctx.clip_path.length!==0){var fe=this.path;M=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=P(M,this.posX+this.margin[3],-1*Be+HA),Y.call(this,"fill",!0),this.path=fe}var OA=P([JSON.parse(JSON.stringify(KA))],this.posX+this.margin[3],-Be+HA+this.ctx.prevPageLastElemOffset)[0];Q.scale>=.01&&(q=this.pdf.internal.getFontSize(),this.pdf.setFontSize(q*Q.scale),X=this.lineWidth,this.lineWidth=X*Q.scale);var ne=this.autoPaging!=="text";if(ne||OA.y+OA.h<=RA){if(ne||OA.y>=HA&&OA.x<=ue){var MA=ne?Q.text:this.pdf.splitTextToSize(Q.text,Q.maxWidth||ue-OA.x)[0],Ye=P([JSON.parse(JSON.stringify(yA))],this.posX+this.margin[3],-Be+HA+this.ctx.prevPageLastElemOffset)[0],we=ne&&(qA>VA||qA<CA)&&y.call(this);we&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Ae,Ce,null).clip().discardPath()),this.pdf.text(MA,Ye.x,Ye.y,{angle:Q.angle,align:O,renderingMode:Q.renderingMode}),we&&this.pdf.restoreGraphicsState()}}else OA.y<RA&&(this.ctx.prevPageLastElemOffset+=RA-OA.y);Q.scale>=.01&&(this.pdf.setFontSize(q),this.lineWidth=X)}}else Q.scale>=.01&&(q=this.pdf.internal.getFontSize(),this.pdf.setFontSize(q*Q.scale),X=this.lineWidth,this.lineWidth=X*Q.scale),this.pdf.text(Q.text,gA.x+this.posX,gA.y+this.posY,{angle:Q.angle,align:O,renderingMode:Q.renderingMode,maxWidth:Q.maxWidth}),Q.scale>=.01&&(this.pdf.setFontSize(q),this.lineWidth=X)},K=function(Q,O,M,q){M=M||0,q=q||0,this.pdf.internal.out(e(Q+M)+" "+r(O+q)+" l")},R=function(Q,O,M){return this.pdf.lines(Q,O,M,null,null)},aA=function(Q,O,M,q,X,eA,lA,uA){this.pdf.internal.out([A(n(M+Q)),A(i(q+O)),A(n(X+Q)),A(i(eA+O)),A(n(lA+Q)),A(i(uA+O)),"c"].join(" "))},sA=function(Q,O,M,q){for(var X=2*Math.PI,eA=Math.PI/2;O>M;)O-=X;var lA=Math.abs(M-O);lA<X&&q&&(lA=X-lA);for(var uA=[],gA=q?-1:1,QA=O;lA>1e-5;){var LA=QA+gA*Math.min(lA,eA);uA.push(oA.call(this,Q,QA,LA)),lA-=Math.abs(LA-QA),QA=LA}return uA},oA=function(Q,O,M){var q=(M-O)/2,X=Q*Math.cos(q),eA=Q*Math.sin(q),lA=X,uA=-eA,gA=lA*lA+uA*uA,QA=gA+lA*X+uA*eA,LA=4/3*(Math.sqrt(2*gA*QA)-QA)/(lA*eA-uA*X),yA=lA-LA*uA,KA=uA+LA*lA,H=yA,bA=-KA,se=q+O,VA=Math.cos(se),CA=Math.sin(se);return{x1:Q*Math.cos(O),y1:Q*Math.sin(O),x2:yA*VA-KA*CA,y2:yA*CA+KA*VA,x3:H*VA-bA*CA,y3:H*CA+bA*VA,x4:Q*Math.cos(M),y4:Q*Math.sin(M)}},tA=function(Q){return 180*Q/Math.PI},cA=function(Q,O,M,q,X,eA){var lA=Q+.5*(M-Q),uA=O+.5*(q-O),gA=X+.5*(M-X),QA=eA+.5*(q-eA),LA=Math.min(Q,X,lA,gA),yA=Math.max(Q,X,lA,gA),KA=Math.min(O,eA,uA,QA),H=Math.max(O,eA,uA,QA);return new s(LA,KA,yA-LA,H-KA)},FA=function(Q,O,M,q,X,eA,lA,uA){var gA,QA,LA,yA,KA,H,bA,se,VA,CA,qA,HA,jA,RA,Ce=M-Q,ue=q-O,Ae=X-M,Be=eA-q,fe=lA-X,OA=uA-eA;for(QA=0;QA<41;QA++)VA=(bA=(LA=Q+(gA=QA/40)*Ce)+gA*((KA=M+gA*Ae)-LA))+gA*(KA+gA*(X+gA*fe-KA)-bA),CA=(se=(yA=O+gA*ue)+gA*((H=q+gA*Be)-yA))+gA*(H+gA*(eA+gA*OA-H)-se),QA==0?(qA=VA,HA=CA,jA=VA,RA=CA):(qA=Math.min(qA,VA),HA=Math.min(HA,CA),jA=Math.max(jA,VA),RA=Math.max(RA,CA));return new s(Math.round(qA),Math.round(HA),Math.round(jA-qA),Math.round(RA-HA))},pA=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var Q,O,M=(Q=this.ctx.lineDash,O=this.ctx.lineDashOffset,JSON.stringify({lineDash:Q,lineDashOffset:O}));this.prevLineDash!==M&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=M)}}})(kA.API),function(t){var A=function(o){var s,c,u,h,p,w,d,b,y,S;for(c=[],u=0,h=(o+=s="\0\0\0\0".slice(o.length%4||4)).length;h>u;u+=4)(p=(o.charCodeAt(u)<<24)+(o.charCodeAt(u+1)<<16)+(o.charCodeAt(u+2)<<8)+o.charCodeAt(u+3))!==0?(w=(p=((p=((p=((p=(p-(S=p%85))/85)-(y=p%85))/85)-(b=p%85))/85)-(d=p%85))/85)%85,c.push(w+33,d+33,b+33,y+33,S+33)):c.push(122);return function(F,P){for(var G=P;G>0;G--)F.pop()}(c,s.length),String.fromCharCode.apply(String,c)+"~>"},e=function(o){var s,c,u,h,p,w=String,d="length",b=255,y="charCodeAt",S="slice",F="replace";for(o[S](-2),o=o[S](0,-2)[F](/\s/g,"")[F]("z","!!!!!"),u=[],h=0,p=(o+=s="uuuuu"[S](o[d]%5||5))[d];p>h;h+=5)c=52200625*(o[y](h)-33)+614125*(o[y](h+1)-33)+7225*(o[y](h+2)-33)+85*(o[y](h+3)-33)+(o[y](h+4)-33),u.push(b&c>>24,b&c>>16,b&c>>8,b&c);return function(P,G){for(var k=G;k>0;k--)P.pop()}(u,s[d]),w.fromCharCode.apply(w,u)},r=function(o){return o.split("").map(function(s){return("0"+s.charCodeAt().toString(16)).slice(-2)}).join("")+">"},n=function(o){var s=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((o=o.replace(/\s/g,"")).indexOf(">")!==-1&&(o=o.substr(0,o.indexOf(">"))),o.length%2&&(o+="0"),s.test(o)===!1)return"";for(var c="",u=0;u<o.length;u+=2)c+=String.fromCharCode("0x"+(o[u]+o[u+1]));return c},i=function(o){for(var s=new Uint8Array(o.length),c=o.length;c--;)s[c]=o.charCodeAt(c);return(s=Yl(s)).reduce(function(u,h){return u+String.fromCharCode(h)},"")};t.processDataByFilters=function(o,s){var c=0,u=o||"",h=[];for(typeof(s=s||[])=="string"&&(s=[s]),c=0;c<s.length;c+=1)switch(s[c]){case"ASCII85Decode":case"/ASCII85Decode":u=e(u),h.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":u=A(u),h.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":u=n(u),h.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":u=r(u),h.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":u=i(u),h.push("/FlateDecode");break;default:throw new Error('The filter: "'+s[c]+'" is not implemented')}return{data:u,reverseChain:h.reverse().join(" ")}}}(kA.API),function(t){t.loadFile=function(A,e,r){return function(n,i,o){i=i!==!1,o=typeof o=="function"?o:function(){};var s=void 0;try{s=function(c,u,h){var p=new XMLHttpRequest,w=0,d=function(b){var y=b.length,S=[],F=String.fromCharCode;for(w=0;w<y;w+=1)S.push(F(255&b.charCodeAt(w)));return S.join("")};if(p.open("GET",c,!u),p.overrideMimeType("text/plain; charset=x-user-defined"),u===!1&&(p.onload=function(){p.status===200?h(d(this.responseText)):h(void 0)}),p.send(null),u&&p.status===200)return d(p.responseText)}(n,i,o)}catch{}return s}(A,e,r)},t.allowFsRead=void 0,t.loadImageFile=t.loadFile}(kA.API),function(t){function A(){return(zA.html2canvas?Promise.resolve(zA.html2canvas):Dc(()=>Promise.resolve().then(()=>f5),void 0,import.meta.url)).catch(function(s){return Promise.reject(new Error("Could not load html2canvas: "+s))}).then(function(s){return s.default?s.default:s})}function e(){return(zA.DOMPurify?Promise.resolve(zA.DOMPurify):Dc(()=>import("./vendor-mermaid-DBtTSFLf.js").then(s=>s.bO),__vite__mapDeps([0,1,2]),import.meta.url)).catch(function(s){return Promise.reject(new Error("Could not load dompurify: "+s))}).then(function(s){return s.default?s.default:s})}var r=function(s){var c=Se(s);return c==="undefined"?"undefined":c==="string"||s instanceof String?"string":c==="number"||s instanceof Number?"number":c==="function"||s instanceof Function?"function":s&&s.constructor===Array?"array":s&&s.nodeType===1?"element":c==="object"?"object":"unknown"},n=function(s,c){var u=document.createElement(s);for(var h in c.className&&(u.className=c.className),c.innerHTML&&c.dompurify&&(u.innerHTML=c.dompurify.sanitize(c.innerHTML)),c.style)u.style[h]=c.style[h];return u},i=function s(c,u){for(var h=c.nodeType===3?document.createTextNode(c.nodeValue):c.cloneNode(!1),p=c.firstChild;p;p=p.nextSibling)u!==!0&&p.nodeType===1&&p.nodeName==="SCRIPT"||h.appendChild(s(p,u));return c.nodeType===1&&(c.nodeName==="CANVAS"?(h.width=c.width,h.height=c.height,h.getContext("2d").drawImage(c,0,0)):c.nodeName!=="TEXTAREA"&&c.nodeName!=="SELECT"||(h.value=c.value),h.addEventListener("load",function(){h.scrollTop=c.scrollTop,h.scrollLeft=c.scrollLeft},!0)),h},o=function s(c){var u=Object.assign(s.convert(Promise.resolve()),JSON.parse(JSON.stringify(s.template))),h=s.convert(Promise.resolve(),u);return(h=h.setProgress(1,s,1,[s])).set(c)};(o.prototype=Object.create(Promise.prototype)).constructor=o,o.convert=function(s,c){return s.__proto__=c||o.prototype,s},o.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"}},o.prototype.from=function(s,c){return this.then(function(){switch(c=c||function(u){switch(r(u)){case"string":return"string";case"element":return u.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(s),c){case"string":return this.then(e).then(function(u){return this.set({src:n("div",{innerHTML:s,dompurify:u})})});case"element":return this.set({src:s});case"canvas":return this.set({canvas:s});case"img":return this.set({img:s});default:return this.error("Unknown source type.")}})},o.prototype.to=function(s){switch(s){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.")}},o.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 s={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},c=i(this.prop.src,this.opt.html2canvas.javascriptEnabled);c.tagName==="BODY"&&(s.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=n("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=n("div",{className:"html2pdf__container",style:s}),this.prop.container.appendChild(c),this.prop.container.firstChild.appendChild(n("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"})},o.prototype.toCanvas=function(){var s=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(s).then(A).then(function(c){var u=Object.assign({},this.opt.html2canvas);return delete u.onrendered,c(this.prop.container,u)}).then(function(c){(this.opt.html2canvas.onrendered||function(){})(c),this.prop.canvas=c,document.body.removeChild(this.prop.overlay)})},o.prototype.toContext2d=function(){var s=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(s).then(A).then(function(c){var u=this.opt.jsPDF,h=this.opt.fontFaces,p=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,w=Object.assign({async:!0,allowTaint:!0,scale:p,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 w.onrendered,u.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,u.context2d.posX=this.opt.x,u.context2d.posY=this.opt.y,u.context2d.margin=this.opt.margin,u.context2d.fontFaces=h,h)for(var d=0;d<h.length;++d){var b=h[d],y=b.src.find(function(S){return S.format==="truetype"});y&&u.addFont(y.url,b.ref.name,b.ref.style)}return w.windowHeight=w.windowHeight||0,w.windowHeight=w.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):w.windowHeight,u.context2d.save(!0),c(this.prop.container,w)}).then(function(c){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(c),this.prop.canvas=c,document.body.removeChild(this.prop.overlay)})},o.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var s=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=s})},o.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},o.prototype.output=function(s,c,u){return(u=u||"pdf").toLowerCase()==="img"||u.toLowerCase()==="image"?this.outputImg(s,c):this.outputPdf(s,c)},o.prototype.outputPdf=function(s,c){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(s,c)})},o.prototype.outputImg=function(s){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(s){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 "'+s+'" is not supported.'}})},o.prototype.save=function(s){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(s?{filename:s}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},o.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},o.prototype.set=function(s){if(r(s)!=="object")return this;var c=Object.keys(s||{}).map(function(u){if(u in o.template.prop)return function(){this.prop[u]=s[u]};switch(u){case"margin":return this.setMargin.bind(this,s.margin);case"jsPDF":return function(){return this.opt.jsPDF=s.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,s.pageSize);default:return function(){this.opt[u]=s[u]}}},this);return this.then(function(){return this.thenList(c)})},o.prototype.get=function(s,c){return this.then(function(){var u=s in o.template.prop?this.prop[s]:this.opt[s];return c?c(u):u})},o.prototype.setMargin=function(s){return this.then(function(){switch(r(s)){case"number":s=[s,s,s,s];case"array":if(s.length===2&&(s=[s[0],s[1],s[0],s[1]]),s.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=s}).then(this.setPageSize)},o.prototype.setPageSize=function(s){function c(u,h){return Math.floor(u*h/72*96)}return this.then(function(){(s=s||kA.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(s.inner={width:s.width-this.opt.margin[1]-this.opt.margin[3],height:s.height-this.opt.margin[0]-this.opt.margin[2]},s.inner.px={width:c(s.inner.width,s.k),height:c(s.inner.height,s.k)},s.inner.ratio=s.inner.height/s.inner.width),this.prop.pageSize=s})},o.prototype.setProgress=function(s,c,u,h){return s!=null&&(this.progress.val=s),c!=null&&(this.progress.state=c),u!=null&&(this.progress.n=u),h!=null&&(this.progress.stack=h),this.progress.ratio=this.progress.val/this.progress.state,this},o.prototype.updateProgress=function(s,c,u,h){return this.setProgress(s?this.progress.val+s:null,c||null,u?this.progress.n+u:null,h?this.progress.stack.concat(h):null)},o.prototype.then=function(s,c){var u=this;return this.thenCore(s,c,function(h,p){return u.updateProgress(null,null,1,[h]),Promise.prototype.then.call(this,function(w){return u.updateProgress(null,h),w}).then(h,p).then(function(w){return u.updateProgress(1),w})})},o.prototype.thenCore=function(s,c,u){u=u||Promise.prototype.then;var h=this;s&&(s=s.bind(h)),c&&(c=c.bind(h));var p=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?h:o.convert(Object.assign({},h),Promise.prototype),w=u.call(p,s,c);return o.convert(w,h.__proto__)},o.prototype.thenExternal=function(s,c){return Promise.prototype.then.call(this,s,c)},o.prototype.thenList=function(s){var c=this;return s.forEach(function(u){c=c.thenCore(u)}),c},o.prototype.catch=function(s){s&&(s=s.bind(this));var c=Promise.prototype.catch.call(this,s);return o.convert(c,this)},o.prototype.catchExternal=function(s){return Promise.prototype.catch.call(this,s)},o.prototype.error=function(s){return this.then(function(){throw new Error(s)})},o.prototype.using=o.prototype.set,o.prototype.saveAs=o.prototype.save,o.prototype.export=o.prototype.output,o.prototype.run=o.prototype.then,kA.getPageSize=function(s,c,u){if(Se(s)==="object"){var h=s;s=h.orientation,c=h.unit||c,u=h.format||u}c=c||"mm",u=u||"a4",s=(""+(s||"P")).toLowerCase();var p,w=(""+u).toLowerCase(),d={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(c){case"pt":p=1;break;case"mm":p=72/25.4;break;case"cm":p=72/2.54;break;case"in":p=72;break;case"px":p=.75;break;case"pc":case"em":p=12;break;case"ex":p=6;break;default:throw"Invalid unit: "+c}var b,y=0,S=0;if(d.hasOwnProperty(w))y=d[w][1]/p,S=d[w][0]/p;else try{y=u[1],S=u[0]}catch{throw new Error("Invalid format: "+u)}if(s==="p"||s==="portrait")s="p",S>y&&(b=S,S=y,y=b);else{if(s!=="l"&&s!=="landscape")throw"Invalid orientation: "+s;s="l",y>S&&(b=S,S=y,y=b)}return{width:S,height:y,unit:c,k:p,orientation:s}},t.html=function(s,c){(c=c||{}).callback=c.callback||function(){},c.html2canvas=c.html2canvas||{},c.html2canvas.canvas=c.html2canvas.canvas||this.canvas,c.jsPDF=c.jsPDF||this,c.fontFaces=c.fontFaces?c.fontFaces.map(Cl):null;var u=new o(c);return c.worker?u:u.from(s).doCallback()}}(kA.API),kA.API.addJS=function(t){var A,e,r=function(n){for(var i="",o=0;o<n.length;o++){var s=n[o];if(s==="("||s===")"){for(var c=0,u=o-1;u>=0&&n[u]==="\\";u--)c++;i+=c%2==0?"\\"+s:s}else i+=s}return i}(t);return this.internal.events.subscribe("postPutResources",function(){A=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(A+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),e=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+r+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){A!==void 0&&e!==void 0&&this.internal.out("/Names <</JavaScript "+A+" 0 R>>")}),this},function(t){var A;t.events.push(["postPutResources",function(){var e=this,r=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var n=e.outline.render().split(/\r\n/),i=0;i<n.length;i++){var o=n[i],s=r.exec(o);if(s!=null){var c=s[1];e.internal.newObjectDeferredBegin(c,!1)}e.internal.write(o)}if(this.outline.createNamedDestinations){var u=this.internal.pages.length,h=[];for(i=0;i<u;i++){var p=e.internal.newObject();h.push(p);var w=e.internal.getPageInfo(i+1);e.internal.write("<< /D["+w.objId+" 0 R /XYZ null null null]>> endobj")}var d=e.internal.newObject();for(e.internal.write("<< /Names [ "),i=0;i<h.length;i++)e.internal.write("(page_"+(i+1)+")"+h[i]+" 0 R");e.internal.write(" ] >>","endobj"),A=e.internal.newObject(),e.internal.write("<< /Dests "+d+" 0 R"),e.internal.write(">>","endobj")}}]),t.events.push(["putCatalog",function(){var e=this;e.outline.root.children.length>0&&(e.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&e.internal.write("/Names "+A+" 0 R"))}]),t.events.push(["initialized",function(){var e=this;e.outline={createNamedDestinations:!1,root:{children:[]}},e.outline.add=function(r,n,i){var o={title:n,options:i,children:[]};return r==null&&(r=this.root),r.children.push(o),o},e.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=e,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},e.outline.genIds_r=function(r){r.id=e.internal.newObjectDeferred();for(var n=0;n<r.children.length;n++)this.genIds_r(r.children[n])},e.outline.renderRoot=function(r){this.objStart(r),this.line("/Type /Outlines"),r.children.length>0&&(this.line("/First "+this.makeRef(r.children[0])),this.line("/Last "+this.makeRef(r.children[r.children.length-1]))),this.line("/Count "+this.count_r({count:0},r)),this.objEnd()},e.outline.renderItems=function(r){for(var n=this.ctx.pdf.internal.getVerticalCoordinateString,i=0;i<r.children.length;i++){var o=r.children[i];this.objStart(o),this.line("/Title "+this.makeString(o.title)),this.line("/Parent "+this.makeRef(r)),i>0&&this.line("/Prev "+this.makeRef(r.children[i-1])),i<r.children.length-1&&this.line("/Next "+this.makeRef(r.children[i+1])),o.children.length>0&&(this.line("/First "+this.makeRef(o.children[0])),this.line("/Last "+this.makeRef(o.children[o.children.length-1])));var s=this.count=this.count_r({count:0},o);if(s>0&&this.line("/Count "+s),o.options&&o.options.pageNumber){var c=e.internal.getPageInfo(o.options.pageNumber);this.line("/Dest ["+c.objId+" 0 R /XYZ 0 "+n(0)+" 0]")}this.objEnd()}for(var u=0;u<r.children.length;u++)this.renderItems(r.children[u])},e.outline.line=function(r){this.ctx.val+=r+`\r
|
|
154
154
|
`},e.outline.makeRef=function(r){return r.id+" 0 R"},e.outline.makeString=function(r){return"("+e.internal.pdfEscape(r)+")"},e.outline.objStart=function(r){this.ctx.val+=`\r
|
|
155
155
|
`+r.id+` 0 obj\r
|
|
156
156
|
<<\r
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a4 as Gt,a5 as Wt,ap as Kt,ao as Ht,a6 as Yt,a7 as Xt,a8 as S,aA as St,aF as Zt,aa as rt,ba as Jt,aT as Qt,bg as kt,aU as $t,aV as te,ac as ee,av as ne,aC as se,aD as ie}from"./vendor-mermaid-CmKdUpW3.js";import"./vendor-antd-CKNrd1kL.js";import"./vendor-i18n-Dm-c3D_C.js";const _t=1e-10;function st(t,n){const s=oe(t),e=s.filter(c=>re(c,t));let i=0,r=0;const o=[];if(e.length>1){const c=Et(e);for(let u=0;u<e.length;++u){const a=e[u];a.angle=Math.atan2(a.x-c.x,a.y-c.y)}e.sort((u,a)=>a.angle-u.angle);let f=e[e.length-1];for(let u=0;u<e.length;++u){const a=e[u];r+=(f.x+a.x)*(a.y-f.y);const y={x:(a.x+f.x)/2,y:(a.y+f.y)/2};let d=null;for(let m=0;m<a.parentIndex.length;++m)if(f.parentIndex.includes(a.parentIndex[m])){const x=t[a.parentIndex[m]],M=Math.atan2(a.x-x.x,a.y-x.y),E=Math.atan2(f.x-x.x,f.y-x.y);let _=E-M;_<0&&(_+=2*Math.PI);const w=E-_/2;let g=W(y,{x:x.x+x.radius*Math.sin(w),y:x.y+x.radius*Math.cos(w)});g>x.radius*2&&(g=x.radius*2),(d==null||d.width>g)&&(d={circle:x,width:g,p1:a,p2:f,large:g>x.radius,sweep:!0})}d!=null&&(o.push(d),i+=lt(d.circle.radius,d.width),f=a)}}else{let c=t[0];for(let u=1;u<t.length;++u)t[u].radius<c.radius&&(c=t[u]);let f=!1;for(let u=0;u<t.length;++u)if(W(t[u],c)>Math.abs(c.radius-t[u].radius)){f=!0;break}f?i=r=0:(i=c.radius*c.radius*Math.PI,o.push({circle:c,p1:{x:c.x,y:c.y+c.radius},p2:{x:c.x-_t,y:c.y+c.radius},width:c.radius*2,large:!0,sweep:!0}))}return r/=2,n&&(n.area=i+r,n.arcArea=i,n.polygonArea=r,n.arcs=o,n.innerPoints=e,n.intersectionPoints=s),i+r}function re(t,n){return n.every(s=>W(t,s)<s.radius+_t)}function oe(t){const n=[];for(let s=0;s<t.length;++s)for(let e=s+1;e<t.length;++e){const i=Tt(t[s],t[e]);for(const r of i)r.parentIndex=[s,e],n.push(r)}return n}function lt(t,n){return t*t*Math.acos(1-n/t)-(t-n)*Math.sqrt(n*(2*t-n))}function W(t,n){return Math.sqrt((t.x-n.x)*(t.x-n.x)+(t.y-n.y)*(t.y-n.y))}function xt(t,n,s){if(s>=t+n)return 0;if(s<=Math.abs(t-n))return Math.PI*Math.min(t,n)*Math.min(t,n);const e=t-(s*s-n*n+t*t)/(2*s),i=n-(s*s-t*t+n*n)/(2*s);return lt(t,e)+lt(n,i)}function Tt(t,n){const s=W(t,n),e=t.radius,i=n.radius;if(s>=e+i||s<=Math.abs(e-i))return[];const r=(e*e-i*i+s*s)/(2*s),o=Math.sqrt(e*e-r*r),c=t.x+r*(n.x-t.x)/s,f=t.y+r*(n.y-t.y)/s,u=-(n.y-t.y)*(o/s),a=-(n.x-t.x)*(o/s);return[{x:c+u,y:f-a},{x:c-u,y:f+a}]}function Et(t){const n={x:0,y:0};for(const s of t)n.x+=s.x,n.y+=s.y;return n.x/=t.length,n.y/=t.length,n}function ae(t,n,s,e){e=e||{};const i=e.maxIterations||100,r=e.tolerance||1e-10,o=t(n),c=t(s);let f=s-n;if(o*c>0)throw"Initial bisect points must have opposite signs";if(o===0)return n;if(c===0)return s;for(let u=0;u<i;++u){f/=2;const a=n+f,y=t(a);if(y*o>=0&&(n=a),Math.abs(f)<r||y===0)return a}return n+f}function ct(t){const n=new Array(t);for(let s=0;s<t;++s)n[s]=0;return n}function Mt(t,n){return ct(t).map(()=>ct(n))}function tt(t,n){let s=0;for(let e=0;e<t.length;++e)s+=t[e]*n[e];return s}function ut(t){return Math.sqrt(tt(t,t))}function ht(t,n,s){for(let e=0;e<n.length;++e)t[e]=n[e]*s}function Q(t,n,s,e,i){for(let r=0;r<t.length;++r)t[r]=n*s[r]+e*i[r]}function zt(t,n,s){s=s||{};const e=s.maxIterations||n.length*200,i=s.nonZeroDelta||1.05,r=s.zeroDelta||.001,o=s.minErrorDelta||1e-6,c=s.minErrorDelta||1e-5,f=s.rho!==void 0?s.rho:1,u=s.chi!==void 0?s.chi:2,a=s.psi!==void 0?s.psi:-.5,y=s.sigma!==void 0?s.sigma:.5;let d;const m=n.length,x=new Array(m+1);x[0]=n,x[0].fx=t(n),x[0].id=0;for(let v=0;v<m;++v){const l=n.slice();l[v]=l[v]?l[v]*i:r,x[v+1]=l,x[v+1].fx=t(l),x[v+1].id=v+1}function M(v){for(let l=0;l<v.length;l++)x[m][l]=v[l];x[m].fx=v.fx}const E=(v,l)=>v.fx-l.fx,_=n.slice(),w=n.slice(),g=n.slice(),b=n.slice();for(let v=0;v<e;++v){if(x.sort(E),s.history){const p=x.map(h=>{const j=h.slice();return j.fx=h.fx,j.id=h.id,j});p.sort((h,j)=>h.id-j.id),s.history.push({x:x[0].slice(),fx:x[0].fx,simplex:p})}d=0;for(let p=0;p<m;++p)d=Math.max(d,Math.abs(x[0][p]-x[1][p]));if(Math.abs(x[0].fx-x[m].fx)<o&&d<c)break;for(let p=0;p<m;++p){_[p]=0;for(let h=0;h<m;++h)_[p]+=x[h][p];_[p]/=m}const l=x[m];if(Q(w,1+f,_,-f,l),w.fx=t(w),w.fx<x[0].fx)Q(b,1+u,_,-u,l),b.fx=t(b),b.fx<w.fx?M(b):M(w);else if(w.fx>=x[m-1].fx){let p=!1;if(w.fx>l.fx?(Q(g,1+a,_,-a,l),g.fx=t(g),g.fx<l.fx?M(g):p=!0):(Q(g,1-a*f,_,a*f,l),g.fx=t(g),g.fx<w.fx?M(g):p=!0),p){if(y>=1)break;for(let h=1;h<x.length;++h)Q(x[h],1-y,x[0],y,x[h]),x[h].fx=t(x[h])}}else M(w)}return x.sort(E),{fx:x[0].fx,x:x[0]}}function le(t,n,s,e,i,r,o){const c=s.fx,f=tt(s.fxprime,n);let u=c,a=c,y=f,d=0;i=i||1,r=r||1e-6,o=o||.1;function m(x,M,E){for(let _=0;_<16;++_)if(i=(x+M)/2,Q(e.x,1,s.x,i,n),u=e.fx=t(e.x,e.fxprime),y=tt(e.fxprime,n),u>c+r*i*f||u>=E)M=i;else{if(Math.abs(y)<=-o*f)return i;y*(M-x)>=0&&(M=x),x=i,E=u}return 0}for(let x=0;x<10;++x){if(Q(e.x,1,s.x,i,n),u=e.fx=t(e.x,e.fxprime),y=tt(e.fxprime,n),u>c+r*i*f||x&&u>=a)return m(d,i,a);if(Math.abs(y)<=-o*f)return i;if(y>=0)return m(i,d,u);a=u,d=i,i*=2}return i}function ce(t,n,s){let e={x:n.slice(),fx:0,fxprime:n.slice()},i={x:n.slice(),fx:0,fxprime:n.slice()};const r=n.slice();let o,c,f=1,u;s=s||{},u=s.maxIterations||n.length*20,e.fx=t(e.x,e.fxprime),o=e.fxprime.slice(),ht(o,e.fxprime,-1);for(let a=0;a<u;++a){if(f=le(t,o,e,i,f),s.history&&s.history.push({x:e.x.slice(),fx:e.fx,fxprime:e.fxprime.slice(),alpha:f}),!f)ht(o,e.fxprime,-1);else{Q(r,1,i.fxprime,-1,e.fxprime);const y=tt(e.fxprime,e.fxprime),d=Math.max(0,tt(r,i.fxprime)/y);Q(o,d,o,-1,i.fxprime),c=e,e=i,i=c}if(ut(e.fxprime)<=1e-5)break}return s.history&&s.history.push({x:e.x.slice(),fx:e.fx,fxprime:e.fxprime.slice(),alpha:f}),e}function At(t,n={}){n.maxIterations=n.maxIterations||500;const s=n.initialLayout||de,e=n.lossFunction||et,i=ue(t,n),r=s(i,n),o=Object.keys(r),c=[];for(const a of o)c.push(r[a].x),c.push(r[a].y);const u=zt(a=>{const y={};for(let d=0;d<o.length;++d){const m=o[d];y[m]={x:a[2*d],y:a[2*d+1],radius:r[m].radius}}return e(y,i)},c,n).x;for(let a=0;a<o.length;++a){const y=o[a];r[y].x=u[2*a],r[y].y=u[2*a+1]}return r}const Rt=1e-10;function ft(t,n,s){return Math.min(t,n)*Math.min(t,n)*Math.PI<=s+Rt?Math.abs(t-n):ae(e=>xt(t,n,e)-s,0,t+n)}function ue(t,n={}){const s=n.distinct,e=t.map(c=>Object.assign({},c));function i(c){return c.join(";")}if(s){const c=new Map;for(const f of e)for(let u=0;u<f.sets.length;u++){const a=String(f.sets[u]);c.set(a,f.size+(c.get(a)||0));for(let y=u+1;y<f.sets.length;y++){const d=String(f.sets[y]),m=`${a};${d}`,x=`${d};${a}`;c.set(m,f.size+(c.get(m)||0)),c.set(x,f.size+(c.get(x)||0))}}for(const f of e)f.sets.length<3&&(f.size=c.get(i(f.sets)))}const r=[],o=new Set;for(const c of e)if(c.sets.length===1)r.push(c.sets[0]);else if(c.sets.length===2){const f=c.sets[0],u=c.sets[1];o.add(i(c.sets)),o.add(i([u,f]))}r.sort((c,f)=>c===f?0:c<f?-1:1);for(let c=0;c<r.length;++c){const f=r[c];for(let u=c+1;u<r.length;++u){const a=r[u];o.has(i([f,a]))||e.push({sets:[f,a],size:0})}}return e}function he(t,n,s){const e=Mt(n.length,n.length),i=Mt(n.length,n.length);return t.filter(r=>r.sets.length===2).forEach(r=>{const o=s[r.sets[0]],c=s[r.sets[1]],f=Math.sqrt(n[o].size/Math.PI),u=Math.sqrt(n[c].size/Math.PI),a=ft(f,u,r.size);e[o][c]=e[c][o]=a;let y=0;r.size+1e-10>=Math.min(n[o].size,n[c].size)?y=1:r.size<=1e-10&&(y=-1),i[o][c]=i[c][o]=y}),{distances:e,constraints:i}}function fe(t,n,s,e){for(let r=0;r<n.length;++r)n[r]=0;let i=0;for(let r=0;r<s.length;++r){const o=t[2*r],c=t[2*r+1];for(let f=r+1;f<s.length;++f){const u=t[2*f],a=t[2*f+1],y=s[r][f],d=e[r][f],m=(u-o)*(u-o)+(a-c)*(a-c),x=Math.sqrt(m),M=m-y*y;d>0&&x<=y||d<0&&x>=y||(i+=2*M*M,n[2*r]+=4*M*(o-u),n[2*r+1]+=4*M*(c-a),n[2*f]+=4*M*(u-o),n[2*f+1]+=4*M*(a-c))}}return i}function de(t,n={}){let s=xe(t,n);const e=n.lossFunction||et;if(t.length>=8){const i=ge(t,n),r=e(i,t),o=e(s,t);r+1e-8<o&&(s=i)}return s}function ge(t,n={}){const s=n.restarts||10,e=[],i={};for(const d of t)d.sets.length===1&&(i[d.sets[0]]=e.length,e.push(d));let{distances:r,constraints:o}=he(t,e,i);const c=ut(r.map(ut))/r.length;r=r.map(d=>d.map(m=>m/c));const f=(d,m)=>fe(d,m,r,o);let u=null;for(let d=0;d<s;++d){const m=ct(r.length*2).map(Math.random),x=ce(f,m,n);(!u||x.fx<u.fx)&&(u=x)}const a=u.x,y={};for(let d=0;d<e.length;++d){const m=e[d];y[m.sets[0]]={x:a[2*d]*c,y:a[2*d+1]*c,radius:Math.sqrt(m.size/Math.PI)}}if(n.history)for(const d of n.history)ht(d.x,c);return y}function xe(t,n){const s=n&&n.lossFunction?n.lossFunction:et,e={},i={};for(const y of t)if(y.sets.length===1){const d=y.sets[0];e[d]={x:1e10,y:1e10,rowid:e.length,size:y.size,radius:Math.sqrt(y.size/Math.PI)},i[d]=[]}t=t.filter(y=>y.sets.length===2);for(const y of t){let d=y.weight!=null?y.weight:1;const m=y.sets[0],x=y.sets[1];y.size+Rt>=Math.min(e[m].size,e[x].size)&&(d=0),i[m].push({set:x,size:y.size,weight:d}),i[x].push({set:m,size:y.size,weight:d})}const r=[];Object.keys(i).forEach(y=>{let d=0;for(let m=0;m<i[y].length;++m)d+=i[y][m].size*i[y][m].weight;r.push({set:y,size:d})});function o(y,d){return d.size-y.size}r.sort(o);const c={};function f(y){return y.set in c}function u(y,d){e[d].x=y.x,e[d].y=y.y,c[d]=!0}u({x:0,y:0},r[0].set);for(let y=1;y<r.length;++y){const d=r[y].set,m=i[d].filter(f),x=e[d];if(m.sort(o),m.length===0)throw"ERROR: missing pairwise overlap information";const M=[];for(var a=0;a<m.length;++a){const w=e[m[a].set],g=ft(x.radius,w.radius,m[a].size);M.push({x:w.x+g,y:w.y}),M.push({x:w.x-g,y:w.y}),M.push({y:w.y+g,x:w.x}),M.push({y:w.y-g,x:w.x});for(let b=a+1;b<m.length;++b){const v=e[m[b].set],l=ft(x.radius,v.radius,m[b].size),p=Tt({x:w.x,y:w.y,radius:g},{x:v.x,y:v.y,radius:l});M.push(...p)}}let E=1e50,_=M[0];for(const w of M){e[d].x=w.x,e[d].y=w.y;const g=s(e,t);g<E&&(E=g,_=w)}u(_,d)}return e}function et(t,n){let s=0;for(const e of n){if(e.sets.length===1)continue;let i;if(e.sets.length===2){const o=t[e.sets[0]],c=t[e.sets[1]];i=xt(o.radius,c.radius,W(o,c))}else i=st(e.sets.map(o=>t[o]));const r=e.weight!=null?e.weight:1;s+=r*(i-e.size)*(i-e.size)}return s}function Dt(t,n){let s=0;for(const e of n){if(e.sets.length===1)continue;let i;if(e.sets.length===2){const c=t[e.sets[0]],f=t[e.sets[1]];i=xt(c.radius,f.radius,W(c,f))}else i=st(e.sets.map(c=>t[c]));const r=e.weight!=null?e.weight:1,o=Math.log((i+1)/(e.size+1));s+=r*o*o}return s}function ye(t,n,s){if(s==null?t.sort((i,r)=>r.radius-i.radius):t.sort(s),t.length>0){const i=t[0].x,r=t[0].y;for(const o of t)o.x-=i,o.y-=r}if(t.length===2&&W(t[0],t[1])<Math.abs(t[1].radius-t[0].radius)&&(t[1].x=t[0].x+t[0].radius-t[1].radius-1e-10,t[1].y=t[0].y),t.length>1){const i=Math.atan2(t[1].x,t[1].y)-n,r=Math.cos(i),o=Math.sin(i);for(const c of t){const f=c.x,u=c.y;c.x=r*f-o*u,c.y=o*f+r*u}}if(t.length>2){let i=Math.atan2(t[2].x,t[2].y)-n;for(;i<0;)i+=2*Math.PI;for(;i>2*Math.PI;)i-=2*Math.PI;if(i>Math.PI){const r=t[1].y/(1e-10+t[1].x);for(const o of t){var e=(o.x+r*o.y)/(1+r*r);o.x=2*e-o.x,o.y=2*e*r-o.y}}}}function pe(t){t.forEach(i=>{i.parent=i});function n(i){return i.parent!==i&&(i.parent=n(i.parent)),i.parent}function s(i,r){const o=n(i),c=n(r);o.parent=c}for(let i=0;i<t.length;++i)for(let r=i+1;r<t.length;++r){const o=t[i].radius+t[r].radius;W(t[i],t[r])+1e-10<o&&s(t[r],t[i])}const e=new Map;for(let i=0;i<t.length;++i){const r=n(t[i]).parent.setid;e.has(r)||e.set(r,[]),e.get(r).push(t[i])}return t.forEach(i=>{delete i.parent}),Array.from(e.values())}function dt(t){const n=s=>{const e=t.reduce((r,o)=>Math.max(r,o[s]+o.radius),Number.NEGATIVE_INFINITY),i=t.reduce((r,o)=>Math.min(r,o[s]-o.radius),Number.POSITIVE_INFINITY);return{max:e,min:i}};return{xRange:n("x"),yRange:n("y")}}function Ct(t,n,s){n==null&&(n=Math.PI/2);let e=Ft(t).map(u=>Object.assign({},u));const i=pe(e);for(const u of i){ye(u,n,s);const a=dt(u);u.size=(a.xRange.max-a.xRange.min)*(a.yRange.max-a.yRange.min),u.bounds=a}i.sort((u,a)=>a.size-u.size),e=i[0];let r=e.bounds;const o=(r.xRange.max-r.xRange.min)/50;function c(u,a,y){if(!u)return;const d=u.bounds;let m,x;if(a)m=r.xRange.max-d.xRange.min+o;else{m=r.xRange.max-d.xRange.max;const M=(d.xRange.max-d.xRange.min)/2-(r.xRange.max-r.xRange.min)/2;M<0&&(m+=M)}if(y)x=r.yRange.max-d.yRange.min+o;else{x=r.yRange.max-d.yRange.max;const M=(d.yRange.max-d.yRange.min)/2-(r.yRange.max-r.yRange.min)/2;M<0&&(x+=M)}for(const M of u)M.x+=m,M.y+=x,e.push(M)}let f=1;for(;f<i.length;)c(i[f],!0,!1),c(i[f+1],!1,!0),c(i[f+2],!0,!0),f+=3,r=dt(e);return Ot(e)}function Nt(t,n,s,e,i){const r=Ft(t);n-=2*e,s-=2*e;const{xRange:o,yRange:c}=dt(r);if(o.max===o.min||c.max===c.min)return console.log("not scaling solution: zero size detected"),t;let f,u;if(i){const m=Math.sqrt(i/Math.PI)*2;f=n/m,u=s/m}else f=n/(o.max-o.min),u=s/(c.max-c.min);const a=Math.min(u,f),y=(n-(o.max-o.min)*a)/2,d=(s-(c.max-c.min)*a)/2;return Ot(r.map(m=>({radius:a*m.radius,x:e+y+(m.x-o.min)*a,y:e+d+(m.y-c.min)*a,setid:m.setid})))}function Ot(t){const n={};for(const s of t)n[s.setid]=s;return n}function Ft(t){return Object.keys(t).map(s=>Object.assign(t[s],{setid:s}))}function me(t={}){let n=!1,s=600,e=350,i=15,r=1e3,o=Math.PI/2,c=!0,f=null,u=!0,a=!0,y=null,d=null,m=!1,x=null,M=t&&t.symmetricalTextCentre?t.symmetricalTextCentre:!1,E={},_=t&&t.colourScheme?t.colourScheme:t&&t.colorScheme?t.colorScheme:["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],w=0,g=function(p){if(p in E)return E[p];var h=E[p]=_[w];return w+=1,w>=_.length&&(w=0),h},b=At,v=et;function l(p){let h=p.datum();const j=new Set;h.forEach(I=>{I.size==0&&I.sets.length==1&&j.add(I.sets[0])}),h=h.filter(I=>!I.sets.some(L=>j.has(L)));let k={},N={};if(h.length>0){let I=b(h,{lossFunction:v,distinct:m});c&&(I=Ct(I,o,d)),k=Nt(I,s,e,i,f),N=jt(k,h,M)}const Y={};h.forEach(I=>{I.label&&(Y[I.sets]=I.label)});function B(I){if(I.sets in Y)return Y[I.sets];if(I.sets.length==1)return""+I.sets[0]}p.selectAll("svg").data([k]).enter().append("svg");const q=p.select("svg");n?q.attr("viewBox",`0 0 ${s} ${e}`):q.attr("width",s).attr("height",e);const U={};let z=!1;q.selectAll(".venn-area path").each(function(I){const L=this.getAttribute("d");I.sets.length==1&&L&&!m&&(z=!0,U[I.sets[0]]=Ie(L))});function A(I){return L=>{const G=I.sets.map(Z=>{let H=U[Z],J=k[Z];return H||(H={x:s/2,y:e/2,radius:1}),J||(J={x:s/2,y:e/2,radius:1}),{x:H.x*(1-L)+J.x*L,y:H.y*(1-L)+J.y*L,radius:H.radius*(1-L)+J.radius*L}});return wt(G,x)}}const D=q.selectAll(".venn-area").data(h,I=>I.sets),O=D.enter().append("g").attr("class",I=>`venn-area venn-${I.sets.length==1?"circle":"intersection"}${I.colour||I.color?" venn-coloured":""}`).attr("data-venn-sets",I=>I.sets.join("_")),P=O.append("path"),V=O.append("text").attr("class","label").text(I=>B(I)).attr("text-anchor","middle").attr("dy",".35em").attr("x",s/2).attr("y",e/2);a&&(P.style("fill-opacity","0").filter(I=>I.sets.length==1).style("fill",I=>I.colour?I.colour:I.color?I.color:g(I.sets)).style("fill-opacity",".25"),V.style("fill",I=>I.colour||I.color?"#FFF":t.textFill?t.textFill:I.sets.length==1?g(I.sets):"#444"));function R(I){return typeof I.transition=="function"?I.transition("venn").duration(r):I}let T=p;z&&typeof T.transition=="function"?(T=R(p),T.selectAll("path").attrTween("d",A)):T.selectAll("path").attr("d",I=>wt(I.sets.map(L=>k[L])),x);const F=T.selectAll("text").filter(I=>I.sets in N).text(I=>B(I)).attr("x",I=>Math.floor(N[I.sets].x)).attr("y",I=>Math.floor(N[I.sets].y));u&&(z?"on"in F?F.on("end",ot(k,B)):F.each("end",ot(k,B)):F.each(ot(k,B)));const C=R(D.exit()).remove();typeof D.transition=="function"&&C.selectAll("path").attrTween("d",A);const X=C.selectAll("text").attr("x",s/2).attr("y",e/2);return y!==null&&(V.style("font-size","0px"),F.style("font-size",y),X.style("font-size","0px")),{circles:k,textCentres:N,nodes:D,enter:O,update:T,exit:C}}return l.wrap=function(p){return arguments.length?(u=p,l):u},l.useViewBox=function(){return n=!0,l},l.width=function(p){return arguments.length?(s=p,l):s},l.height=function(p){return arguments.length?(e=p,l):e},l.padding=function(p){return arguments.length?(i=p,l):i},l.distinct=function(p){return arguments.length?(m=p,l):m},l.colours=function(p){return arguments.length?(g=p,l):g},l.colors=function(p){return arguments.length?(g=p,l):g},l.fontSize=function(p){return arguments.length?(y=p,l):y},l.round=function(p){return arguments.length?(x=p,l):x},l.duration=function(p){return arguments.length?(r=p,l):r},l.layoutFunction=function(p){return arguments.length?(b=p,l):b},l.normalize=function(p){return arguments.length?(c=p,l):c},l.scaleToFit=function(p){return arguments.length?(f=p,l):f},l.styled=function(p){return arguments.length?(a=p,l):a},l.orientation=function(p){return arguments.length?(o=p,l):o},l.orientationOrder=function(p){return arguments.length?(d=p,l):d},l.lossFunction=function(p){return arguments.length?(v=p==="default"?et:p==="logRatio"?Dt:p,l):v},l}function ot(t,n){return function(s){const e=this,i=t[s.sets[0]].radius||50,r=n(s)||"",o=r.split(/\s+/).reverse(),f=(r.length+o.length)/3;let u=o.pop(),a=[u],y=0;const d=1.1;e.textContent=null;const m=[];function x(g){const b=e.ownerDocument.createElementNS(e.namespaceURI,"tspan");return b.textContent=g,m.push(b),e.append(b),b}let M=x(u);for(;u=o.pop(),!!u;){a.push(u);const g=a.join(" ");M.textContent=g,g.length>f&&M.getComputedTextLength()>i&&(a.pop(),M.textContent=a.join(" "),a=[u],M=x(u),y++)}const E=.35-y*d/2,_=e.getAttribute("x"),w=e.getAttribute("y");m.forEach((g,b)=>{g.setAttribute("x",_),g.setAttribute("y",w),g.setAttribute("dy",`${E+b*d}em`)})}}function at(t,n,s){let e=n[0].radius-W(n[0],t);for(let i=1;i<n.length;++i){const r=n[i].radius-W(n[i],t);r<=e&&(e=r)}for(let i=0;i<s.length;++i){const r=W(s[i],t)-s[i].radius;r<=e&&(e=r)}return e}function Lt(t,n,s){const e=[];for(const a of t)e.push({x:a.x,y:a.y}),e.push({x:a.x+a.radius/2,y:a.y}),e.push({x:a.x-a.radius/2,y:a.y}),e.push({x:a.x,y:a.y+a.radius/2}),e.push({x:a.x,y:a.y-a.radius/2});let i=e[0],r=at(e[0],t,n);for(let a=1;a<e.length;++a){const y=at(e[a],t,n);y>=r&&(i=e[a],r=y)}const o=zt(a=>-1*at({x:a[0],y:a[1]},t,n),[i.x,i.y],{maxIterations:500,minErrorDelta:1e-10}).x,c={x:s?0:o[0],y:o[1]};let f=!0;for(const a of t)if(W(c,a)>a.radius){f=!1;break}for(const a of n)if(W(c,a)<a.radius){f=!1;break}if(f)return c;if(t.length==1)return{x:t[0].x,y:t[0].y};const u={};return st(t,u),u.arcs.length===0?{x:0,y:-1e3,disjoint:!0}:u.arcs.length==1?{x:u.arcs[0].circle.x,y:u.arcs[0].circle.y}:n.length?Lt(t,[]):Et(u.arcs.map(a=>a.p1))}function be(t){const n={},s=Object.keys(t);for(const e of s)n[e]=[];for(let e=0;e<s.length;e++){const i=s[e],r=t[i];for(let o=e+1;o<s.length;++o){const c=s[o],f=t[c],u=W(r,f);u+f.radius<=r.radius+1e-10?n[c].push(i):u+r.radius<=f.radius+1e-10&&n[i].push(c)}}return n}function jt(t,n,s){const e={},i=be(t);for(let r=0;r<n.length;++r){const o=n[r].sets,c={},f={};for(let d=0;d<o.length;++d){c[o[d]]=!0;const m=i[o[d]];for(let x=0;x<m.length;++x)f[m[x]]=!0}const u=[],a=[];for(let d in t)d in c?u.push(t[d]):d in f||a.push(t[d]);const y=Lt(u,a,s);e[o]=y,y.disjoint&&n[r].size>0&&console.log("WARNING: area "+o+" not represented on screen")}return e}function ve(t,n,s){const e=[];return e.push(`
|
|
1
|
+
import{a4 as Gt,a5 as Wt,ap as Kt,ao as Ht,a6 as Yt,a7 as Xt,a8 as S,aA as St,aF as Zt,aa as rt,ba as Jt,aT as Qt,bg as kt,aU as $t,aV as te,ac as ee,av as ne,aC as se,aD as ie}from"./vendor-mermaid-DBtTSFLf.js";import"./vendor-antd-CKNrd1kL.js";import"./vendor-i18n-Dm-c3D_C.js";const _t=1e-10;function st(t,n){const s=oe(t),e=s.filter(c=>re(c,t));let i=0,r=0;const o=[];if(e.length>1){const c=Et(e);for(let u=0;u<e.length;++u){const a=e[u];a.angle=Math.atan2(a.x-c.x,a.y-c.y)}e.sort((u,a)=>a.angle-u.angle);let f=e[e.length-1];for(let u=0;u<e.length;++u){const a=e[u];r+=(f.x+a.x)*(a.y-f.y);const y={x:(a.x+f.x)/2,y:(a.y+f.y)/2};let d=null;for(let m=0;m<a.parentIndex.length;++m)if(f.parentIndex.includes(a.parentIndex[m])){const x=t[a.parentIndex[m]],M=Math.atan2(a.x-x.x,a.y-x.y),E=Math.atan2(f.x-x.x,f.y-x.y);let _=E-M;_<0&&(_+=2*Math.PI);const w=E-_/2;let g=W(y,{x:x.x+x.radius*Math.sin(w),y:x.y+x.radius*Math.cos(w)});g>x.radius*2&&(g=x.radius*2),(d==null||d.width>g)&&(d={circle:x,width:g,p1:a,p2:f,large:g>x.radius,sweep:!0})}d!=null&&(o.push(d),i+=lt(d.circle.radius,d.width),f=a)}}else{let c=t[0];for(let u=1;u<t.length;++u)t[u].radius<c.radius&&(c=t[u]);let f=!1;for(let u=0;u<t.length;++u)if(W(t[u],c)>Math.abs(c.radius-t[u].radius)){f=!0;break}f?i=r=0:(i=c.radius*c.radius*Math.PI,o.push({circle:c,p1:{x:c.x,y:c.y+c.radius},p2:{x:c.x-_t,y:c.y+c.radius},width:c.radius*2,large:!0,sweep:!0}))}return r/=2,n&&(n.area=i+r,n.arcArea=i,n.polygonArea=r,n.arcs=o,n.innerPoints=e,n.intersectionPoints=s),i+r}function re(t,n){return n.every(s=>W(t,s)<s.radius+_t)}function oe(t){const n=[];for(let s=0;s<t.length;++s)for(let e=s+1;e<t.length;++e){const i=Tt(t[s],t[e]);for(const r of i)r.parentIndex=[s,e],n.push(r)}return n}function lt(t,n){return t*t*Math.acos(1-n/t)-(t-n)*Math.sqrt(n*(2*t-n))}function W(t,n){return Math.sqrt((t.x-n.x)*(t.x-n.x)+(t.y-n.y)*(t.y-n.y))}function xt(t,n,s){if(s>=t+n)return 0;if(s<=Math.abs(t-n))return Math.PI*Math.min(t,n)*Math.min(t,n);const e=t-(s*s-n*n+t*t)/(2*s),i=n-(s*s-t*t+n*n)/(2*s);return lt(t,e)+lt(n,i)}function Tt(t,n){const s=W(t,n),e=t.radius,i=n.radius;if(s>=e+i||s<=Math.abs(e-i))return[];const r=(e*e-i*i+s*s)/(2*s),o=Math.sqrt(e*e-r*r),c=t.x+r*(n.x-t.x)/s,f=t.y+r*(n.y-t.y)/s,u=-(n.y-t.y)*(o/s),a=-(n.x-t.x)*(o/s);return[{x:c+u,y:f-a},{x:c-u,y:f+a}]}function Et(t){const n={x:0,y:0};for(const s of t)n.x+=s.x,n.y+=s.y;return n.x/=t.length,n.y/=t.length,n}function ae(t,n,s,e){e=e||{};const i=e.maxIterations||100,r=e.tolerance||1e-10,o=t(n),c=t(s);let f=s-n;if(o*c>0)throw"Initial bisect points must have opposite signs";if(o===0)return n;if(c===0)return s;for(let u=0;u<i;++u){f/=2;const a=n+f,y=t(a);if(y*o>=0&&(n=a),Math.abs(f)<r||y===0)return a}return n+f}function ct(t){const n=new Array(t);for(let s=0;s<t;++s)n[s]=0;return n}function Mt(t,n){return ct(t).map(()=>ct(n))}function tt(t,n){let s=0;for(let e=0;e<t.length;++e)s+=t[e]*n[e];return s}function ut(t){return Math.sqrt(tt(t,t))}function ht(t,n,s){for(let e=0;e<n.length;++e)t[e]=n[e]*s}function Q(t,n,s,e,i){for(let r=0;r<t.length;++r)t[r]=n*s[r]+e*i[r]}function zt(t,n,s){s=s||{};const e=s.maxIterations||n.length*200,i=s.nonZeroDelta||1.05,r=s.zeroDelta||.001,o=s.minErrorDelta||1e-6,c=s.minErrorDelta||1e-5,f=s.rho!==void 0?s.rho:1,u=s.chi!==void 0?s.chi:2,a=s.psi!==void 0?s.psi:-.5,y=s.sigma!==void 0?s.sigma:.5;let d;const m=n.length,x=new Array(m+1);x[0]=n,x[0].fx=t(n),x[0].id=0;for(let v=0;v<m;++v){const l=n.slice();l[v]=l[v]?l[v]*i:r,x[v+1]=l,x[v+1].fx=t(l),x[v+1].id=v+1}function M(v){for(let l=0;l<v.length;l++)x[m][l]=v[l];x[m].fx=v.fx}const E=(v,l)=>v.fx-l.fx,_=n.slice(),w=n.slice(),g=n.slice(),b=n.slice();for(let v=0;v<e;++v){if(x.sort(E),s.history){const p=x.map(h=>{const j=h.slice();return j.fx=h.fx,j.id=h.id,j});p.sort((h,j)=>h.id-j.id),s.history.push({x:x[0].slice(),fx:x[0].fx,simplex:p})}d=0;for(let p=0;p<m;++p)d=Math.max(d,Math.abs(x[0][p]-x[1][p]));if(Math.abs(x[0].fx-x[m].fx)<o&&d<c)break;for(let p=0;p<m;++p){_[p]=0;for(let h=0;h<m;++h)_[p]+=x[h][p];_[p]/=m}const l=x[m];if(Q(w,1+f,_,-f,l),w.fx=t(w),w.fx<x[0].fx)Q(b,1+u,_,-u,l),b.fx=t(b),b.fx<w.fx?M(b):M(w);else if(w.fx>=x[m-1].fx){let p=!1;if(w.fx>l.fx?(Q(g,1+a,_,-a,l),g.fx=t(g),g.fx<l.fx?M(g):p=!0):(Q(g,1-a*f,_,a*f,l),g.fx=t(g),g.fx<w.fx?M(g):p=!0),p){if(y>=1)break;for(let h=1;h<x.length;++h)Q(x[h],1-y,x[0],y,x[h]),x[h].fx=t(x[h])}}else M(w)}return x.sort(E),{fx:x[0].fx,x:x[0]}}function le(t,n,s,e,i,r,o){const c=s.fx,f=tt(s.fxprime,n);let u=c,a=c,y=f,d=0;i=i||1,r=r||1e-6,o=o||.1;function m(x,M,E){for(let _=0;_<16;++_)if(i=(x+M)/2,Q(e.x,1,s.x,i,n),u=e.fx=t(e.x,e.fxprime),y=tt(e.fxprime,n),u>c+r*i*f||u>=E)M=i;else{if(Math.abs(y)<=-o*f)return i;y*(M-x)>=0&&(M=x),x=i,E=u}return 0}for(let x=0;x<10;++x){if(Q(e.x,1,s.x,i,n),u=e.fx=t(e.x,e.fxprime),y=tt(e.fxprime,n),u>c+r*i*f||x&&u>=a)return m(d,i,a);if(Math.abs(y)<=-o*f)return i;if(y>=0)return m(i,d,u);a=u,d=i,i*=2}return i}function ce(t,n,s){let e={x:n.slice(),fx:0,fxprime:n.slice()},i={x:n.slice(),fx:0,fxprime:n.slice()};const r=n.slice();let o,c,f=1,u;s=s||{},u=s.maxIterations||n.length*20,e.fx=t(e.x,e.fxprime),o=e.fxprime.slice(),ht(o,e.fxprime,-1);for(let a=0;a<u;++a){if(f=le(t,o,e,i,f),s.history&&s.history.push({x:e.x.slice(),fx:e.fx,fxprime:e.fxprime.slice(),alpha:f}),!f)ht(o,e.fxprime,-1);else{Q(r,1,i.fxprime,-1,e.fxprime);const y=tt(e.fxprime,e.fxprime),d=Math.max(0,tt(r,i.fxprime)/y);Q(o,d,o,-1,i.fxprime),c=e,e=i,i=c}if(ut(e.fxprime)<=1e-5)break}return s.history&&s.history.push({x:e.x.slice(),fx:e.fx,fxprime:e.fxprime.slice(),alpha:f}),e}function At(t,n={}){n.maxIterations=n.maxIterations||500;const s=n.initialLayout||de,e=n.lossFunction||et,i=ue(t,n),r=s(i,n),o=Object.keys(r),c=[];for(const a of o)c.push(r[a].x),c.push(r[a].y);const u=zt(a=>{const y={};for(let d=0;d<o.length;++d){const m=o[d];y[m]={x:a[2*d],y:a[2*d+1],radius:r[m].radius}}return e(y,i)},c,n).x;for(let a=0;a<o.length;++a){const y=o[a];r[y].x=u[2*a],r[y].y=u[2*a+1]}return r}const Rt=1e-10;function ft(t,n,s){return Math.min(t,n)*Math.min(t,n)*Math.PI<=s+Rt?Math.abs(t-n):ae(e=>xt(t,n,e)-s,0,t+n)}function ue(t,n={}){const s=n.distinct,e=t.map(c=>Object.assign({},c));function i(c){return c.join(";")}if(s){const c=new Map;for(const f of e)for(let u=0;u<f.sets.length;u++){const a=String(f.sets[u]);c.set(a,f.size+(c.get(a)||0));for(let y=u+1;y<f.sets.length;y++){const d=String(f.sets[y]),m=`${a};${d}`,x=`${d};${a}`;c.set(m,f.size+(c.get(m)||0)),c.set(x,f.size+(c.get(x)||0))}}for(const f of e)f.sets.length<3&&(f.size=c.get(i(f.sets)))}const r=[],o=new Set;for(const c of e)if(c.sets.length===1)r.push(c.sets[0]);else if(c.sets.length===2){const f=c.sets[0],u=c.sets[1];o.add(i(c.sets)),o.add(i([u,f]))}r.sort((c,f)=>c===f?0:c<f?-1:1);for(let c=0;c<r.length;++c){const f=r[c];for(let u=c+1;u<r.length;++u){const a=r[u];o.has(i([f,a]))||e.push({sets:[f,a],size:0})}}return e}function he(t,n,s){const e=Mt(n.length,n.length),i=Mt(n.length,n.length);return t.filter(r=>r.sets.length===2).forEach(r=>{const o=s[r.sets[0]],c=s[r.sets[1]],f=Math.sqrt(n[o].size/Math.PI),u=Math.sqrt(n[c].size/Math.PI),a=ft(f,u,r.size);e[o][c]=e[c][o]=a;let y=0;r.size+1e-10>=Math.min(n[o].size,n[c].size)?y=1:r.size<=1e-10&&(y=-1),i[o][c]=i[c][o]=y}),{distances:e,constraints:i}}function fe(t,n,s,e){for(let r=0;r<n.length;++r)n[r]=0;let i=0;for(let r=0;r<s.length;++r){const o=t[2*r],c=t[2*r+1];for(let f=r+1;f<s.length;++f){const u=t[2*f],a=t[2*f+1],y=s[r][f],d=e[r][f],m=(u-o)*(u-o)+(a-c)*(a-c),x=Math.sqrt(m),M=m-y*y;d>0&&x<=y||d<0&&x>=y||(i+=2*M*M,n[2*r]+=4*M*(o-u),n[2*r+1]+=4*M*(c-a),n[2*f]+=4*M*(u-o),n[2*f+1]+=4*M*(a-c))}}return i}function de(t,n={}){let s=xe(t,n);const e=n.lossFunction||et;if(t.length>=8){const i=ge(t,n),r=e(i,t),o=e(s,t);r+1e-8<o&&(s=i)}return s}function ge(t,n={}){const s=n.restarts||10,e=[],i={};for(const d of t)d.sets.length===1&&(i[d.sets[0]]=e.length,e.push(d));let{distances:r,constraints:o}=he(t,e,i);const c=ut(r.map(ut))/r.length;r=r.map(d=>d.map(m=>m/c));const f=(d,m)=>fe(d,m,r,o);let u=null;for(let d=0;d<s;++d){const m=ct(r.length*2).map(Math.random),x=ce(f,m,n);(!u||x.fx<u.fx)&&(u=x)}const a=u.x,y={};for(let d=0;d<e.length;++d){const m=e[d];y[m.sets[0]]={x:a[2*d]*c,y:a[2*d+1]*c,radius:Math.sqrt(m.size/Math.PI)}}if(n.history)for(const d of n.history)ht(d.x,c);return y}function xe(t,n){const s=n&&n.lossFunction?n.lossFunction:et,e={},i={};for(const y of t)if(y.sets.length===1){const d=y.sets[0];e[d]={x:1e10,y:1e10,rowid:e.length,size:y.size,radius:Math.sqrt(y.size/Math.PI)},i[d]=[]}t=t.filter(y=>y.sets.length===2);for(const y of t){let d=y.weight!=null?y.weight:1;const m=y.sets[0],x=y.sets[1];y.size+Rt>=Math.min(e[m].size,e[x].size)&&(d=0),i[m].push({set:x,size:y.size,weight:d}),i[x].push({set:m,size:y.size,weight:d})}const r=[];Object.keys(i).forEach(y=>{let d=0;for(let m=0;m<i[y].length;++m)d+=i[y][m].size*i[y][m].weight;r.push({set:y,size:d})});function o(y,d){return d.size-y.size}r.sort(o);const c={};function f(y){return y.set in c}function u(y,d){e[d].x=y.x,e[d].y=y.y,c[d]=!0}u({x:0,y:0},r[0].set);for(let y=1;y<r.length;++y){const d=r[y].set,m=i[d].filter(f),x=e[d];if(m.sort(o),m.length===0)throw"ERROR: missing pairwise overlap information";const M=[];for(var a=0;a<m.length;++a){const w=e[m[a].set],g=ft(x.radius,w.radius,m[a].size);M.push({x:w.x+g,y:w.y}),M.push({x:w.x-g,y:w.y}),M.push({y:w.y+g,x:w.x}),M.push({y:w.y-g,x:w.x});for(let b=a+1;b<m.length;++b){const v=e[m[b].set],l=ft(x.radius,v.radius,m[b].size),p=Tt({x:w.x,y:w.y,radius:g},{x:v.x,y:v.y,radius:l});M.push(...p)}}let E=1e50,_=M[0];for(const w of M){e[d].x=w.x,e[d].y=w.y;const g=s(e,t);g<E&&(E=g,_=w)}u(_,d)}return e}function et(t,n){let s=0;for(const e of n){if(e.sets.length===1)continue;let i;if(e.sets.length===2){const o=t[e.sets[0]],c=t[e.sets[1]];i=xt(o.radius,c.radius,W(o,c))}else i=st(e.sets.map(o=>t[o]));const r=e.weight!=null?e.weight:1;s+=r*(i-e.size)*(i-e.size)}return s}function Dt(t,n){let s=0;for(const e of n){if(e.sets.length===1)continue;let i;if(e.sets.length===2){const c=t[e.sets[0]],f=t[e.sets[1]];i=xt(c.radius,f.radius,W(c,f))}else i=st(e.sets.map(c=>t[c]));const r=e.weight!=null?e.weight:1,o=Math.log((i+1)/(e.size+1));s+=r*o*o}return s}function ye(t,n,s){if(s==null?t.sort((i,r)=>r.radius-i.radius):t.sort(s),t.length>0){const i=t[0].x,r=t[0].y;for(const o of t)o.x-=i,o.y-=r}if(t.length===2&&W(t[0],t[1])<Math.abs(t[1].radius-t[0].radius)&&(t[1].x=t[0].x+t[0].radius-t[1].radius-1e-10,t[1].y=t[0].y),t.length>1){const i=Math.atan2(t[1].x,t[1].y)-n,r=Math.cos(i),o=Math.sin(i);for(const c of t){const f=c.x,u=c.y;c.x=r*f-o*u,c.y=o*f+r*u}}if(t.length>2){let i=Math.atan2(t[2].x,t[2].y)-n;for(;i<0;)i+=2*Math.PI;for(;i>2*Math.PI;)i-=2*Math.PI;if(i>Math.PI){const r=t[1].y/(1e-10+t[1].x);for(const o of t){var e=(o.x+r*o.y)/(1+r*r);o.x=2*e-o.x,o.y=2*e*r-o.y}}}}function pe(t){t.forEach(i=>{i.parent=i});function n(i){return i.parent!==i&&(i.parent=n(i.parent)),i.parent}function s(i,r){const o=n(i),c=n(r);o.parent=c}for(let i=0;i<t.length;++i)for(let r=i+1;r<t.length;++r){const o=t[i].radius+t[r].radius;W(t[i],t[r])+1e-10<o&&s(t[r],t[i])}const e=new Map;for(let i=0;i<t.length;++i){const r=n(t[i]).parent.setid;e.has(r)||e.set(r,[]),e.get(r).push(t[i])}return t.forEach(i=>{delete i.parent}),Array.from(e.values())}function dt(t){const n=s=>{const e=t.reduce((r,o)=>Math.max(r,o[s]+o.radius),Number.NEGATIVE_INFINITY),i=t.reduce((r,o)=>Math.min(r,o[s]-o.radius),Number.POSITIVE_INFINITY);return{max:e,min:i}};return{xRange:n("x"),yRange:n("y")}}function Ct(t,n,s){n==null&&(n=Math.PI/2);let e=Ft(t).map(u=>Object.assign({},u));const i=pe(e);for(const u of i){ye(u,n,s);const a=dt(u);u.size=(a.xRange.max-a.xRange.min)*(a.yRange.max-a.yRange.min),u.bounds=a}i.sort((u,a)=>a.size-u.size),e=i[0];let r=e.bounds;const o=(r.xRange.max-r.xRange.min)/50;function c(u,a,y){if(!u)return;const d=u.bounds;let m,x;if(a)m=r.xRange.max-d.xRange.min+o;else{m=r.xRange.max-d.xRange.max;const M=(d.xRange.max-d.xRange.min)/2-(r.xRange.max-r.xRange.min)/2;M<0&&(m+=M)}if(y)x=r.yRange.max-d.yRange.min+o;else{x=r.yRange.max-d.yRange.max;const M=(d.yRange.max-d.yRange.min)/2-(r.yRange.max-r.yRange.min)/2;M<0&&(x+=M)}for(const M of u)M.x+=m,M.y+=x,e.push(M)}let f=1;for(;f<i.length;)c(i[f],!0,!1),c(i[f+1],!1,!0),c(i[f+2],!0,!0),f+=3,r=dt(e);return Ot(e)}function Nt(t,n,s,e,i){const r=Ft(t);n-=2*e,s-=2*e;const{xRange:o,yRange:c}=dt(r);if(o.max===o.min||c.max===c.min)return console.log("not scaling solution: zero size detected"),t;let f,u;if(i){const m=Math.sqrt(i/Math.PI)*2;f=n/m,u=s/m}else f=n/(o.max-o.min),u=s/(c.max-c.min);const a=Math.min(u,f),y=(n-(o.max-o.min)*a)/2,d=(s-(c.max-c.min)*a)/2;return Ot(r.map(m=>({radius:a*m.radius,x:e+y+(m.x-o.min)*a,y:e+d+(m.y-c.min)*a,setid:m.setid})))}function Ot(t){const n={};for(const s of t)n[s.setid]=s;return n}function Ft(t){return Object.keys(t).map(s=>Object.assign(t[s],{setid:s}))}function me(t={}){let n=!1,s=600,e=350,i=15,r=1e3,o=Math.PI/2,c=!0,f=null,u=!0,a=!0,y=null,d=null,m=!1,x=null,M=t&&t.symmetricalTextCentre?t.symmetricalTextCentre:!1,E={},_=t&&t.colourScheme?t.colourScheme:t&&t.colorScheme?t.colorScheme:["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],w=0,g=function(p){if(p in E)return E[p];var h=E[p]=_[w];return w+=1,w>=_.length&&(w=0),h},b=At,v=et;function l(p){let h=p.datum();const j=new Set;h.forEach(I=>{I.size==0&&I.sets.length==1&&j.add(I.sets[0])}),h=h.filter(I=>!I.sets.some(L=>j.has(L)));let k={},N={};if(h.length>0){let I=b(h,{lossFunction:v,distinct:m});c&&(I=Ct(I,o,d)),k=Nt(I,s,e,i,f),N=jt(k,h,M)}const Y={};h.forEach(I=>{I.label&&(Y[I.sets]=I.label)});function B(I){if(I.sets in Y)return Y[I.sets];if(I.sets.length==1)return""+I.sets[0]}p.selectAll("svg").data([k]).enter().append("svg");const q=p.select("svg");n?q.attr("viewBox",`0 0 ${s} ${e}`):q.attr("width",s).attr("height",e);const U={};let z=!1;q.selectAll(".venn-area path").each(function(I){const L=this.getAttribute("d");I.sets.length==1&&L&&!m&&(z=!0,U[I.sets[0]]=Ie(L))});function A(I){return L=>{const G=I.sets.map(Z=>{let H=U[Z],J=k[Z];return H||(H={x:s/2,y:e/2,radius:1}),J||(J={x:s/2,y:e/2,radius:1}),{x:H.x*(1-L)+J.x*L,y:H.y*(1-L)+J.y*L,radius:H.radius*(1-L)+J.radius*L}});return wt(G,x)}}const D=q.selectAll(".venn-area").data(h,I=>I.sets),O=D.enter().append("g").attr("class",I=>`venn-area venn-${I.sets.length==1?"circle":"intersection"}${I.colour||I.color?" venn-coloured":""}`).attr("data-venn-sets",I=>I.sets.join("_")),P=O.append("path"),V=O.append("text").attr("class","label").text(I=>B(I)).attr("text-anchor","middle").attr("dy",".35em").attr("x",s/2).attr("y",e/2);a&&(P.style("fill-opacity","0").filter(I=>I.sets.length==1).style("fill",I=>I.colour?I.colour:I.color?I.color:g(I.sets)).style("fill-opacity",".25"),V.style("fill",I=>I.colour||I.color?"#FFF":t.textFill?t.textFill:I.sets.length==1?g(I.sets):"#444"));function R(I){return typeof I.transition=="function"?I.transition("venn").duration(r):I}let T=p;z&&typeof T.transition=="function"?(T=R(p),T.selectAll("path").attrTween("d",A)):T.selectAll("path").attr("d",I=>wt(I.sets.map(L=>k[L])),x);const F=T.selectAll("text").filter(I=>I.sets in N).text(I=>B(I)).attr("x",I=>Math.floor(N[I.sets].x)).attr("y",I=>Math.floor(N[I.sets].y));u&&(z?"on"in F?F.on("end",ot(k,B)):F.each("end",ot(k,B)):F.each(ot(k,B)));const C=R(D.exit()).remove();typeof D.transition=="function"&&C.selectAll("path").attrTween("d",A);const X=C.selectAll("text").attr("x",s/2).attr("y",e/2);return y!==null&&(V.style("font-size","0px"),F.style("font-size",y),X.style("font-size","0px")),{circles:k,textCentres:N,nodes:D,enter:O,update:T,exit:C}}return l.wrap=function(p){return arguments.length?(u=p,l):u},l.useViewBox=function(){return n=!0,l},l.width=function(p){return arguments.length?(s=p,l):s},l.height=function(p){return arguments.length?(e=p,l):e},l.padding=function(p){return arguments.length?(i=p,l):i},l.distinct=function(p){return arguments.length?(m=p,l):m},l.colours=function(p){return arguments.length?(g=p,l):g},l.colors=function(p){return arguments.length?(g=p,l):g},l.fontSize=function(p){return arguments.length?(y=p,l):y},l.round=function(p){return arguments.length?(x=p,l):x},l.duration=function(p){return arguments.length?(r=p,l):r},l.layoutFunction=function(p){return arguments.length?(b=p,l):b},l.normalize=function(p){return arguments.length?(c=p,l):c},l.scaleToFit=function(p){return arguments.length?(f=p,l):f},l.styled=function(p){return arguments.length?(a=p,l):a},l.orientation=function(p){return arguments.length?(o=p,l):o},l.orientationOrder=function(p){return arguments.length?(d=p,l):d},l.lossFunction=function(p){return arguments.length?(v=p==="default"?et:p==="logRatio"?Dt:p,l):v},l}function ot(t,n){return function(s){const e=this,i=t[s.sets[0]].radius||50,r=n(s)||"",o=r.split(/\s+/).reverse(),f=(r.length+o.length)/3;let u=o.pop(),a=[u],y=0;const d=1.1;e.textContent=null;const m=[];function x(g){const b=e.ownerDocument.createElementNS(e.namespaceURI,"tspan");return b.textContent=g,m.push(b),e.append(b),b}let M=x(u);for(;u=o.pop(),!!u;){a.push(u);const g=a.join(" ");M.textContent=g,g.length>f&&M.getComputedTextLength()>i&&(a.pop(),M.textContent=a.join(" "),a=[u],M=x(u),y++)}const E=.35-y*d/2,_=e.getAttribute("x"),w=e.getAttribute("y");m.forEach((g,b)=>{g.setAttribute("x",_),g.setAttribute("y",w),g.setAttribute("dy",`${E+b*d}em`)})}}function at(t,n,s){let e=n[0].radius-W(n[0],t);for(let i=1;i<n.length;++i){const r=n[i].radius-W(n[i],t);r<=e&&(e=r)}for(let i=0;i<s.length;++i){const r=W(s[i],t)-s[i].radius;r<=e&&(e=r)}return e}function Lt(t,n,s){const e=[];for(const a of t)e.push({x:a.x,y:a.y}),e.push({x:a.x+a.radius/2,y:a.y}),e.push({x:a.x-a.radius/2,y:a.y}),e.push({x:a.x,y:a.y+a.radius/2}),e.push({x:a.x,y:a.y-a.radius/2});let i=e[0],r=at(e[0],t,n);for(let a=1;a<e.length;++a){const y=at(e[a],t,n);y>=r&&(i=e[a],r=y)}const o=zt(a=>-1*at({x:a[0],y:a[1]},t,n),[i.x,i.y],{maxIterations:500,minErrorDelta:1e-10}).x,c={x:s?0:o[0],y:o[1]};let f=!0;for(const a of t)if(W(c,a)>a.radius){f=!1;break}for(const a of n)if(W(c,a)<a.radius){f=!1;break}if(f)return c;if(t.length==1)return{x:t[0].x,y:t[0].y};const u={};return st(t,u),u.arcs.length===0?{x:0,y:-1e3,disjoint:!0}:u.arcs.length==1?{x:u.arcs[0].circle.x,y:u.arcs[0].circle.y}:n.length?Lt(t,[]):Et(u.arcs.map(a=>a.p1))}function be(t){const n={},s=Object.keys(t);for(const e of s)n[e]=[];for(let e=0;e<s.length;e++){const i=s[e],r=t[i];for(let o=e+1;o<s.length;++o){const c=s[o],f=t[c],u=W(r,f);u+f.radius<=r.radius+1e-10?n[c].push(i):u+r.radius<=f.radius+1e-10&&n[i].push(c)}}return n}function jt(t,n,s){const e={},i=be(t);for(let r=0;r<n.length;++r){const o=n[r].sets,c={},f={};for(let d=0;d<o.length;++d){c[o[d]]=!0;const m=i[o[d]];for(let x=0;x<m.length;++x)f[m[x]]=!0}const u=[],a=[];for(let d in t)d in c?u.push(t[d]):d in f||a.push(t[d]);const y=Lt(u,a,s);e[o]=y,y.disjoint&&n[r].size>0&&console.log("WARNING: area "+o+" not represented on screen")}return e}function ve(t,n,s){const e=[];return e.push(`
|
|
2
2
|
M`,t,n),e.push(`
|
|
3
3
|
m`,-s,0),e.push(`
|
|
4
4
|
a`,s,s,0,1,0,s*2,0),e.push(`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var DN=Object.defineProperty;var MN=(t,e,r)=>e in t?DN(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var jr=(t,e,r)=>MN(t,typeof e!="symbol"?e+"":e,r);import{_ as er}from"./vendor-mermaid-CmKdUpW3.js";var xN=Object.create,hc=Object.defineProperty,FN=Object.getOwnPropertyDescriptor,Fh=Object.getOwnPropertyNames,GN=Object.getPrototypeOf,jN=Object.prototype.hasOwnProperty,s=(t,e)=>hc(t,"name",{value:e,configurable:!0}),UN=(t,e)=>function(){return t&&(e=(0,t[Fh(t)[0]])(t=0)),e},Y=(t,e)=>function(){return e||(0,t[Fh(t)[0]])((e={exports:{}}).exports,e),e.exports},Qr=(t,e)=>{for(var r in e)hc(t,r,{get:e[r],enumerable:!0})},Gh=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of Fh(e))!jN.call(t,a)&&a!==r&&hc(t,a,{get:()=>e[a],enumerable:!(n=FN(e,a))||n.enumerable});return t},ff=(t,e,r)=>(Gh(t,e,"default"),r),jh=(t,e,r)=>(r=t!=null?xN(GN(t)):{},Gh(hc(r,"default",{value:t,enumerable:!0}),t)),Uh=t=>Gh(hc({},"__esModule",{value:!0}),t),df={};Qr(df,{AnnotatedTextEdit:()=>Tr,ChangeAnnotation:()=>fn,ChangeAnnotationIdentifier:()=>Xe,CodeAction:()=>Ep,CodeActionContext:()=>Ap,CodeActionKind:()=>$p,CodeActionTriggerKind:()=>Nl,CodeDescription:()=>Qd,CodeLens:()=>_p,Color:()=>ru,ColorInformation:()=>Vd,ColorPresentation:()=>Hd,Command:()=>un,CompletionItem:()=>cp,CompletionItemKind:()=>np,CompletionItemLabelDetails:()=>lp,CompletionItemTag:()=>ip,CompletionList:()=>up,CreateFile:()=>Ra,DeleteFile:()=>Aa,Diagnostic:()=>Sl,DiagnosticRelatedInformation:()=>nu,DiagnosticSeverity:()=>Jd,DiagnosticTag:()=>Zd,DocumentHighlight:()=>mp,DocumentHighlightKind:()=>hp,DocumentLink:()=>Sp,DocumentSymbol:()=>Rp,DocumentUri:()=>Kd,EOL:()=>mT,FoldingRange:()=>Xd,FoldingRangeKind:()=>Yd,FormattingOptions:()=>Cp,Hover:()=>fp,InlayHint:()=>Dp,InlayHintKind:()=>su,InlayHintLabelPart:()=>ou,InlineCompletionContext:()=>Up,InlineCompletionItem:()=>xp,InlineCompletionList:()=>Fp,InlineCompletionTriggerKind:()=>Gp,InlineValueContext:()=>Lp,InlineValueEvaluatableExpression:()=>Op,InlineValueText:()=>kp,InlineValueVariableLookup:()=>Pp,InsertReplaceEdit:()=>sp,InsertTextFormat:()=>ap,InsertTextMode:()=>op,Location:()=>Cl,LocationLink:()=>Wd,MarkedString:()=>Il,MarkupContent:()=>Ea,MarkupKind:()=>iu,OptionalVersionedTextDocumentIdentifier:()=>wl,ParameterInformation:()=>dp,Position:()=>ie,Range:()=>ee,RenameFile:()=>$a,SelectedCompletionInfo:()=>jp,SelectionRange:()=>bp,SemanticTokenModifiers:()=>Ip,SemanticTokenTypes:()=>wp,SemanticTokens:()=>Np,SignatureInformation:()=>pp,StringValue:()=>Mp,SymbolInformation:()=>vp,SymbolKind:()=>gp,SymbolTag:()=>yp,TextDocument:()=>Bp,TextDocumentEdit:()=>bl,TextDocumentIdentifier:()=>ep,TextDocumentItem:()=>rp,TextEdit:()=>rr,URI:()=>tu,VersionedTextDocumentIdentifier:()=>tp,WorkspaceChange:()=>hT,WorkspaceEdit:()=>au,WorkspaceFolder:()=>zp,WorkspaceSymbol:()=>Tp,integer:()=>qd,uinteger:()=>_l});var Kd,tu,qd,_l,ie,ee,Cl,Wd,ru,Vd,Hd,Yd,Xd,nu,Jd,Zd,Qd,Sl,un,rr,fn,Xe,Tr,bl,Ra,$a,Aa,au,hl,$d,hT,ep,tp,wl,rp,iu,Ea,np,ap,ip,sp,op,lp,cp,up,Il,fp,dp,pp,hp,mp,gp,yp,vp,Tp,Rp,$p,Nl,Ap,Ep,_p,Cp,Sp,bp,wp,Ip,Np,kp,Pp,Op,Lp,su,ou,Dp,Mp,xp,Fp,Gp,jp,Up,zp,mT,Bp,_y,_,mc=UN({"../../node_modules/.pnpm/vscode-languageserver-types@3.17.5/node_modules/vscode-languageserver-types/lib/esm/main.js"(){var t,e,r,n;(function(a){function i(o){return typeof o=="string"}s(i,"is"),a.is=i})(Kd||(Kd={})),function(a){function i(o){return typeof o=="string"}s(i,"is"),a.is=i}(tu||(tu={})),function(a){a.MIN_VALUE=-2147483648,a.MAX_VALUE=2147483647;function i(o){return typeof o=="number"&&a.MIN_VALUE<=o&&o<=a.MAX_VALUE}s(i,"is"),a.is=i}(qd||(qd={})),function(a){a.MIN_VALUE=0,a.MAX_VALUE=2147483647;function i(o){return typeof o=="number"&&a.MIN_VALUE<=o&&o<=a.MAX_VALUE}s(i,"is"),a.is=i}(_l||(_l={})),function(a){function i(c,l){return c===Number.MAX_VALUE&&(c=_l.MAX_VALUE),l===Number.MAX_VALUE&&(l=_l.MAX_VALUE),{line:c,character:l}}s(i,"create"),a.create=i;function o(c){let l=c;return _.objectLiteral(l)&&_.uinteger(l.line)&&_.uinteger(l.character)}s(o,"is"),a.is=o}(ie||(ie={})),function(a){function i(c,l,u,f){if(_.uinteger(c)&&_.uinteger(l)&&_.uinteger(u)&&_.uinteger(f))return{start:ie.create(c,l),end:ie.create(u,f)};if(ie.is(c)&&ie.is(l))return{start:c,end:l};throw new Error(`Range#create called with invalid arguments[${c}, ${l}, ${u}, ${f}]`)}s(i,"create"),a.create=i;function o(c){let l=c;return _.objectLiteral(l)&&ie.is(l.start)&&ie.is(l.end)}s(o,"is"),a.is=o}(ee||(ee={})),function(a){function i(c,l){return{uri:c,range:l}}s(i,"create"),a.create=i;function o(c){let l=c;return _.objectLiteral(l)&&ee.is(l.range)&&(_.string(l.uri)||_.undefined(l.uri))}s(o,"is"),a.is=o}(Cl||(Cl={})),function(a){function i(c,l,u,f){return{targetUri:c,targetRange:l,targetSelectionRange:u,originSelectionRange:f}}s(i,"create"),a.create=i;function o(c){let l=c;return _.objectLiteral(l)&&ee.is(l.targetRange)&&_.string(l.targetUri)&&ee.is(l.targetSelectionRange)&&(ee.is(l.originSelectionRange)||_.undefined(l.originSelectionRange))}s(o,"is"),a.is=o}(Wd||(Wd={})),function(a){function i(c,l,u,f){return{red:c,green:l,blue:u,alpha:f}}s(i,"create"),a.create=i;function o(c){const l=c;return _.objectLiteral(l)&&_.numberRange(l.red,0,1)&&_.numberRange(l.green,0,1)&&_.numberRange(l.blue,0,1)&&_.numberRange(l.alpha,0,1)}s(o,"is"),a.is=o}(ru||(ru={})),function(a){function i(c,l){return{range:c,color:l}}s(i,"create"),a.create=i;function o(c){const l=c;return _.objectLiteral(l)&&ee.is(l.range)&&ru.is(l.color)}s(o,"is"),a.is=o}(Vd||(Vd={})),function(a){function i(c,l,u){return{label:c,textEdit:l,additionalTextEdits:u}}s(i,"create"),a.create=i;function o(c){const l=c;return _.objectLiteral(l)&&_.string(l.label)&&(_.undefined(l.textEdit)||rr.is(l))&&(_.undefined(l.additionalTextEdits)||_.typedArray(l.additionalTextEdits,rr.is))}s(o,"is"),a.is=o}(Hd||(Hd={})),function(a){a.Comment="comment",a.Imports="imports",a.Region="region"}(Yd||(Yd={})),function(a){function i(c,l,u,f,d,p){const m={startLine:c,endLine:l};return _.defined(u)&&(m.startCharacter=u),_.defined(f)&&(m.endCharacter=f),_.defined(d)&&(m.kind=d),_.defined(p)&&(m.collapsedText=p),m}s(i,"create"),a.create=i;function o(c){const l=c;return _.objectLiteral(l)&&_.uinteger(l.startLine)&&_.uinteger(l.startLine)&&(_.undefined(l.startCharacter)||_.uinteger(l.startCharacter))&&(_.undefined(l.endCharacter)||_.uinteger(l.endCharacter))&&(_.undefined(l.kind)||_.string(l.kind))}s(o,"is"),a.is=o}(Xd||(Xd={})),function(a){function i(c,l){return{location:c,message:l}}s(i,"create"),a.create=i;function o(c){let l=c;return _.defined(l)&&Cl.is(l.location)&&_.string(l.message)}s(o,"is"),a.is=o}(nu||(nu={})),function(a){a.Error=1,a.Warning=2,a.Information=3,a.Hint=4}(Jd||(Jd={})),function(a){a.Unnecessary=1,a.Deprecated=2}(Zd||(Zd={})),function(a){function i(o){const c=o;return _.objectLiteral(c)&&_.string(c.href)}s(i,"is"),a.is=i}(Qd||(Qd={})),function(a){function i(c,l,u,f,d,p){let m={range:c,message:l};return _.defined(u)&&(m.severity=u),_.defined(f)&&(m.code=f),_.defined(d)&&(m.source=d),_.defined(p)&&(m.relatedInformation=p),m}s(i,"create"),a.create=i;function o(c){var l;let u=c;return _.defined(u)&&ee.is(u.range)&&_.string(u.message)&&(_.number(u.severity)||_.undefined(u.severity))&&(_.integer(u.code)||_.string(u.code)||_.undefined(u.code))&&(_.undefined(u.codeDescription)||_.string((l=u.codeDescription)===null||l===void 0?void 0:l.href))&&(_.string(u.source)||_.undefined(u.source))&&(_.undefined(u.relatedInformation)||_.typedArray(u.relatedInformation,nu.is))}s(o,"is"),a.is=o}(Sl||(Sl={})),function(a){function i(c,l,...u){let f={title:c,command:l};return _.defined(u)&&u.length>0&&(f.arguments=u),f}s(i,"create"),a.create=i;function o(c){let l=c;return _.defined(l)&&_.string(l.title)&&_.string(l.command)}s(o,"is"),a.is=o}(un||(un={})),function(a){function i(u,f){return{range:u,newText:f}}s(i,"replace"),a.replace=i;function o(u,f){return{range:{start:u,end:u},newText:f}}s(o,"insert"),a.insert=o;function c(u){return{range:u,newText:""}}s(c,"del"),a.del=c;function l(u){const f=u;return _.objectLiteral(f)&&_.string(f.newText)&&ee.is(f.range)}s(l,"is"),a.is=l}(rr||(rr={})),function(a){function i(c,l,u){const f={label:c};return l!==void 0&&(f.needsConfirmation=l),u!==void 0&&(f.description=u),f}s(i,"create"),a.create=i;function o(c){const l=c;return _.objectLiteral(l)&&_.string(l.label)&&(_.boolean(l.needsConfirmation)||l.needsConfirmation===void 0)&&(_.string(l.description)||l.description===void 0)}s(o,"is"),a.is=o}(fn||(fn={})),function(a){function i(o){const c=o;return _.string(c)}s(i,"is"),a.is=i}(Xe||(Xe={})),function(a){function i(u,f,d){return{range:u,newText:f,annotationId:d}}s(i,"replace"),a.replace=i;function o(u,f,d){return{range:{start:u,end:u},newText:f,annotationId:d}}s(o,"insert"),a.insert=o;function c(u,f){return{range:u,newText:"",annotationId:f}}s(c,"del"),a.del=c;function l(u){const f=u;return rr.is(f)&&(fn.is(f.annotationId)||Xe.is(f.annotationId))}s(l,"is"),a.is=l}(Tr||(Tr={})),function(a){function i(c,l){return{textDocument:c,edits:l}}s(i,"create"),a.create=i;function o(c){let l=c;return _.defined(l)&&wl.is(l.textDocument)&&Array.isArray(l.edits)}s(o,"is"),a.is=o}(bl||(bl={})),function(a){function i(c,l,u){let f={kind:"create",uri:c};return l!==void 0&&(l.overwrite!==void 0||l.ignoreIfExists!==void 0)&&(f.options=l),u!==void 0&&(f.annotationId=u),f}s(i,"create"),a.create=i;function o(c){let l=c;return l&&l.kind==="create"&&_.string(l.uri)&&(l.options===void 0||(l.options.overwrite===void 0||_.boolean(l.options.overwrite))&&(l.options.ignoreIfExists===void 0||_.boolean(l.options.ignoreIfExists)))&&(l.annotationId===void 0||Xe.is(l.annotationId))}s(o,"is"),a.is=o}(Ra||(Ra={})),function(a){function i(c,l,u,f){let d={kind:"rename",oldUri:c,newUri:l};return u!==void 0&&(u.overwrite!==void 0||u.ignoreIfExists!==void 0)&&(d.options=u),f!==void 0&&(d.annotationId=f),d}s(i,"create"),a.create=i;function o(c){let l=c;return l&&l.kind==="rename"&&_.string(l.oldUri)&&_.string(l.newUri)&&(l.options===void 0||(l.options.overwrite===void 0||_.boolean(l.options.overwrite))&&(l.options.ignoreIfExists===void 0||_.boolean(l.options.ignoreIfExists)))&&(l.annotationId===void 0||Xe.is(l.annotationId))}s(o,"is"),a.is=o}($a||($a={})),function(a){function i(c,l,u){let f={kind:"delete",uri:c};return l!==void 0&&(l.recursive!==void 0||l.ignoreIfNotExists!==void 0)&&(f.options=l),u!==void 0&&(f.annotationId=u),f}s(i,"create"),a.create=i;function o(c){let l=c;return l&&l.kind==="delete"&&_.string(l.uri)&&(l.options===void 0||(l.options.recursive===void 0||_.boolean(l.options.recursive))&&(l.options.ignoreIfNotExists===void 0||_.boolean(l.options.ignoreIfNotExists)))&&(l.annotationId===void 0||Xe.is(l.annotationId))}s(o,"is"),a.is=o}(Aa||(Aa={})),function(a){function i(o){let c=o;return c&&(c.changes!==void 0||c.documentChanges!==void 0)&&(c.documentChanges===void 0||c.documentChanges.every(l=>_.string(l.kind)?Ra.is(l)||$a.is(l)||Aa.is(l):bl.is(l)))}s(i,"is"),a.is=i}(au||(au={})),hl=(t=class{constructor(i,o){this.edits=i,this.changeAnnotations=o}insert(i,o,c){let l,u;if(c===void 0?l=rr.insert(i,o):Xe.is(c)?(u=c,l=Tr.insert(i,o,c)):(this.assertChangeAnnotations(this.changeAnnotations),u=this.changeAnnotations.manage(c),l=Tr.insert(i,o,u)),this.edits.push(l),u!==void 0)return u}replace(i,o,c){let l,u;if(c===void 0?l=rr.replace(i,o):Xe.is(c)?(u=c,l=Tr.replace(i,o,c)):(this.assertChangeAnnotations(this.changeAnnotations),u=this.changeAnnotations.manage(c),l=Tr.replace(i,o,u)),this.edits.push(l),u!==void 0)return u}delete(i,o){let c,l;if(o===void 0?c=rr.del(i):Xe.is(o)?(l=o,c=Tr.del(i,o)):(this.assertChangeAnnotations(this.changeAnnotations),l=this.changeAnnotations.manage(o),c=Tr.del(i,l)),this.edits.push(c),l!==void 0)return l}add(i){this.edits.push(i)}all(){return this.edits}clear(){this.edits.splice(0,this.edits.length)}assertChangeAnnotations(i){if(i===void 0)throw new Error("Text edit change is not configured to manage change annotations.")}},s(t,"TextEditChangeImpl"),t),$d=(e=class{constructor(i){this._annotations=i===void 0?Object.create(null):i,this._counter=0,this._size=0}all(){return this._annotations}get size(){return this._size}manage(i,o){let c;if(Xe.is(i)?c=i:(c=this.nextId(),o=i),this._annotations[c]!==void 0)throw new Error(`Id ${c} is already in use.`);if(o===void 0)throw new Error(`No annotation provided for id ${c}`);return this._annotations[c]=o,this._size++,c}nextId(){return this._counter++,this._counter.toString()}},s(e,"ChangeAnnotations"),e),hT=(r=class{constructor(i){this._textEditChanges=Object.create(null),i!==void 0?(this._workspaceEdit=i,i.documentChanges?(this._changeAnnotations=new $d(i.changeAnnotations),i.changeAnnotations=this._changeAnnotations.all(),i.documentChanges.forEach(o=>{if(bl.is(o)){const c=new hl(o.edits,this._changeAnnotations);this._textEditChanges[o.textDocument.uri]=c}})):i.changes&&Object.keys(i.changes).forEach(o=>{const c=new hl(i.changes[o]);this._textEditChanges[o]=c})):this._workspaceEdit={}}get edit(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit}getTextEditChange(i){if(wl.is(i)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");const o={uri:i.uri,version:i.version};let c=this._textEditChanges[o.uri];if(!c){const l=[],u={textDocument:o,edits:l};this._workspaceEdit.documentChanges.push(u),c=new hl(l,this._changeAnnotations),this._textEditChanges[o.uri]=c}return c}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");let o=this._textEditChanges[i];if(!o){let c=[];this._workspaceEdit.changes[i]=c,o=new hl(c),this._textEditChanges[i]=o}return o}}initDocumentChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new $d,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())}initChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))}createFile(i,o,c){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let l;fn.is(o)||Xe.is(o)?l=o:c=o;let u,f;if(l===void 0?u=Ra.create(i,c):(f=Xe.is(l)?l:this._changeAnnotations.manage(l),u=Ra.create(i,c,f)),this._workspaceEdit.documentChanges.push(u),f!==void 0)return f}renameFile(i,o,c,l){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let u;fn.is(c)||Xe.is(c)?u=c:l=c;let f,d;if(u===void 0?f=$a.create(i,o,l):(d=Xe.is(u)?u:this._changeAnnotations.manage(u),f=$a.create(i,o,l,d)),this._workspaceEdit.documentChanges.push(f),d!==void 0)return d}deleteFile(i,o,c){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let l;fn.is(o)||Xe.is(o)?l=o:c=o;let u,f;if(l===void 0?u=Aa.create(i,c):(f=Xe.is(l)?l:this._changeAnnotations.manage(l),u=Aa.create(i,c,f)),this._workspaceEdit.documentChanges.push(u),f!==void 0)return f}},s(r,"WorkspaceChange"),r),function(a){function i(c){return{uri:c}}s(i,"create"),a.create=i;function o(c){let l=c;return _.defined(l)&&_.string(l.uri)}s(o,"is"),a.is=o}(ep||(ep={})),function(a){function i(c,l){return{uri:c,version:l}}s(i,"create"),a.create=i;function o(c){let l=c;return _.defined(l)&&_.string(l.uri)&&_.integer(l.version)}s(o,"is"),a.is=o}(tp||(tp={})),function(a){function i(c,l){return{uri:c,version:l}}s(i,"create"),a.create=i;function o(c){let l=c;return _.defined(l)&&_.string(l.uri)&&(l.version===null||_.integer(l.version))}s(o,"is"),a.is=o}(wl||(wl={})),function(a){function i(c,l,u,f){return{uri:c,languageId:l,version:u,text:f}}s(i,"create"),a.create=i;function o(c){let l=c;return _.defined(l)&&_.string(l.uri)&&_.string(l.languageId)&&_.integer(l.version)&&_.string(l.text)}s(o,"is"),a.is=o}(rp||(rp={})),function(a){a.PlainText="plaintext",a.Markdown="markdown";function i(o){const c=o;return c===a.PlainText||c===a.Markdown}s(i,"is"),a.is=i}(iu||(iu={})),function(a){function i(o){const c=o;return _.objectLiteral(o)&&iu.is(c.kind)&&_.string(c.value)}s(i,"is"),a.is=i}(Ea||(Ea={})),function(a){a.Text=1,a.Method=2,a.Function=3,a.Constructor=4,a.Field=5,a.Variable=6,a.Class=7,a.Interface=8,a.Module=9,a.Property=10,a.Unit=11,a.Value=12,a.Enum=13,a.Keyword=14,a.Snippet=15,a.Color=16,a.File=17,a.Reference=18,a.Folder=19,a.EnumMember=20,a.Constant=21,a.Struct=22,a.Event=23,a.Operator=24,a.TypeParameter=25}(np||(np={})),function(a){a.PlainText=1,a.Snippet=2}(ap||(ap={})),function(a){a.Deprecated=1}(ip||(ip={})),function(a){function i(c,l,u){return{newText:c,insert:l,replace:u}}s(i,"create"),a.create=i;function o(c){const l=c;return l&&_.string(l.newText)&&ee.is(l.insert)&&ee.is(l.replace)}s(o,"is"),a.is=o}(sp||(sp={})),function(a){a.asIs=1,a.adjustIndentation=2}(op||(op={})),function(a){function i(o){const c=o;return c&&(_.string(c.detail)||c.detail===void 0)&&(_.string(c.description)||c.description===void 0)}s(i,"is"),a.is=i}(lp||(lp={})),function(a){function i(o){return{label:o}}s(i,"create"),a.create=i}(cp||(cp={})),function(a){function i(o,c){return{items:o||[],isIncomplete:!!c}}s(i,"create"),a.create=i}(up||(up={})),function(a){function i(c){return c.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}s(i,"fromPlainText"),a.fromPlainText=i;function o(c){const l=c;return _.string(l)||_.objectLiteral(l)&&_.string(l.language)&&_.string(l.value)}s(o,"is"),a.is=o}(Il||(Il={})),function(a){function i(o){let c=o;return!!c&&_.objectLiteral(c)&&(Ea.is(c.contents)||Il.is(c.contents)||_.typedArray(c.contents,Il.is))&&(o.range===void 0||ee.is(o.range))}s(i,"is"),a.is=i}(fp||(fp={})),function(a){function i(o,c){return c?{label:o,documentation:c}:{label:o}}s(i,"create"),a.create=i}(dp||(dp={})),function(a){function i(o,c,...l){let u={label:o};return _.defined(c)&&(u.documentation=c),_.defined(l)?u.parameters=l:u.parameters=[],u}s(i,"create"),a.create=i}(pp||(pp={})),function(a){a.Text=1,a.Read=2,a.Write=3}(hp||(hp={})),function(a){function i(o,c){let l={range:o};return _.number(c)&&(l.kind=c),l}s(i,"create"),a.create=i}(mp||(mp={})),function(a){a.File=1,a.Module=2,a.Namespace=3,a.Package=4,a.Class=5,a.Method=6,a.Property=7,a.Field=8,a.Constructor=9,a.Enum=10,a.Interface=11,a.Function=12,a.Variable=13,a.Constant=14,a.String=15,a.Number=16,a.Boolean=17,a.Array=18,a.Object=19,a.Key=20,a.Null=21,a.EnumMember=22,a.Struct=23,a.Event=24,a.Operator=25,a.TypeParameter=26}(gp||(gp={})),function(a){a.Deprecated=1}(yp||(yp={})),function(a){function i(o,c,l,u,f){let d={name:o,kind:c,location:{uri:u,range:l}};return f&&(d.containerName=f),d}s(i,"create"),a.create=i}(vp||(vp={})),function(a){function i(o,c,l,u){return u!==void 0?{name:o,kind:c,location:{uri:l,range:u}}:{name:o,kind:c,location:{uri:l}}}s(i,"create"),a.create=i}(Tp||(Tp={})),function(a){function i(c,l,u,f,d,p){let m={name:c,detail:l,kind:u,range:f,selectionRange:d};return p!==void 0&&(m.children=p),m}s(i,"create"),a.create=i;function o(c){let l=c;return l&&_.string(l.name)&&_.number(l.kind)&&ee.is(l.range)&&ee.is(l.selectionRange)&&(l.detail===void 0||_.string(l.detail))&&(l.deprecated===void 0||_.boolean(l.deprecated))&&(l.children===void 0||Array.isArray(l.children))&&(l.tags===void 0||Array.isArray(l.tags))}s(o,"is"),a.is=o}(Rp||(Rp={})),function(a){a.Empty="",a.QuickFix="quickfix",a.Refactor="refactor",a.RefactorExtract="refactor.extract",a.RefactorInline="refactor.inline",a.RefactorRewrite="refactor.rewrite",a.Source="source",a.SourceOrganizeImports="source.organizeImports",a.SourceFixAll="source.fixAll"}($p||($p={})),function(a){a.Invoked=1,a.Automatic=2}(Nl||(Nl={})),function(a){function i(c,l,u){let f={diagnostics:c};return l!=null&&(f.only=l),u!=null&&(f.triggerKind=u),f}s(i,"create"),a.create=i;function o(c){let l=c;return _.defined(l)&&_.typedArray(l.diagnostics,Sl.is)&&(l.only===void 0||_.typedArray(l.only,_.string))&&(l.triggerKind===void 0||l.triggerKind===Nl.Invoked||l.triggerKind===Nl.Automatic)}s(o,"is"),a.is=o}(Ap||(Ap={})),function(a){function i(c,l,u){let f={title:c},d=!0;return typeof l=="string"?(d=!1,f.kind=l):un.is(l)?f.command=l:f.edit=l,d&&u!==void 0&&(f.kind=u),f}s(i,"create"),a.create=i;function o(c){let l=c;return l&&_.string(l.title)&&(l.diagnostics===void 0||_.typedArray(l.diagnostics,Sl.is))&&(l.kind===void 0||_.string(l.kind))&&(l.edit!==void 0||l.command!==void 0)&&(l.command===void 0||un.is(l.command))&&(l.isPreferred===void 0||_.boolean(l.isPreferred))&&(l.edit===void 0||au.is(l.edit))}s(o,"is"),a.is=o}(Ep||(Ep={})),function(a){function i(c,l){let u={range:c};return _.defined(l)&&(u.data=l),u}s(i,"create"),a.create=i;function o(c){let l=c;return _.defined(l)&&ee.is(l.range)&&(_.undefined(l.command)||un.is(l.command))}s(o,"is"),a.is=o}(_p||(_p={})),function(a){function i(c,l){return{tabSize:c,insertSpaces:l}}s(i,"create"),a.create=i;function o(c){let l=c;return _.defined(l)&&_.uinteger(l.tabSize)&&_.boolean(l.insertSpaces)}s(o,"is"),a.is=o}(Cp||(Cp={})),function(a){function i(c,l,u){return{range:c,target:l,data:u}}s(i,"create"),a.create=i;function o(c){let l=c;return _.defined(l)&&ee.is(l.range)&&(_.undefined(l.target)||_.string(l.target))}s(o,"is"),a.is=o}(Sp||(Sp={})),function(a){function i(c,l){return{range:c,parent:l}}s(i,"create"),a.create=i;function o(c){let l=c;return _.objectLiteral(l)&&ee.is(l.range)&&(l.parent===void 0||a.is(l.parent))}s(o,"is"),a.is=o}(bp||(bp={})),function(a){a.namespace="namespace",a.type="type",a.class="class",a.enum="enum",a.interface="interface",a.struct="struct",a.typeParameter="typeParameter",a.parameter="parameter",a.variable="variable",a.property="property",a.enumMember="enumMember",a.event="event",a.function="function",a.method="method",a.macro="macro",a.keyword="keyword",a.modifier="modifier",a.comment="comment",a.string="string",a.number="number",a.regexp="regexp",a.operator="operator",a.decorator="decorator"}(wp||(wp={})),function(a){a.declaration="declaration",a.definition="definition",a.readonly="readonly",a.static="static",a.deprecated="deprecated",a.abstract="abstract",a.async="async",a.modification="modification",a.documentation="documentation",a.defaultLibrary="defaultLibrary"}(Ip||(Ip={})),function(a){function i(o){const c=o;return _.objectLiteral(c)&&(c.resultId===void 0||typeof c.resultId=="string")&&Array.isArray(c.data)&&(c.data.length===0||typeof c.data[0]=="number")}s(i,"is"),a.is=i}(Np||(Np={})),function(a){function i(c,l){return{range:c,text:l}}s(i,"create"),a.create=i;function o(c){const l=c;return l!=null&&ee.is(l.range)&&_.string(l.text)}s(o,"is"),a.is=o}(kp||(kp={})),function(a){function i(c,l,u){return{range:c,variableName:l,caseSensitiveLookup:u}}s(i,"create"),a.create=i;function o(c){const l=c;return l!=null&&ee.is(l.range)&&_.boolean(l.caseSensitiveLookup)&&(_.string(l.variableName)||l.variableName===void 0)}s(o,"is"),a.is=o}(Pp||(Pp={})),function(a){function i(c,l){return{range:c,expression:l}}s(i,"create"),a.create=i;function o(c){const l=c;return l!=null&&ee.is(l.range)&&(_.string(l.expression)||l.expression===void 0)}s(o,"is"),a.is=o}(Op||(Op={})),function(a){function i(c,l){return{frameId:c,stoppedLocation:l}}s(i,"create"),a.create=i;function o(c){const l=c;return _.defined(l)&&ee.is(c.stoppedLocation)}s(o,"is"),a.is=o}(Lp||(Lp={})),function(a){a.Type=1,a.Parameter=2;function i(o){return o===1||o===2}s(i,"is"),a.is=i}(su||(su={})),function(a){function i(c){return{value:c}}s(i,"create"),a.create=i;function o(c){const l=c;return _.objectLiteral(l)&&(l.tooltip===void 0||_.string(l.tooltip)||Ea.is(l.tooltip))&&(l.location===void 0||Cl.is(l.location))&&(l.command===void 0||un.is(l.command))}s(o,"is"),a.is=o}(ou||(ou={})),function(a){function i(c,l,u){const f={position:c,label:l};return u!==void 0&&(f.kind=u),f}s(i,"create"),a.create=i;function o(c){const l=c;return _.objectLiteral(l)&&ie.is(l.position)&&(_.string(l.label)||_.typedArray(l.label,ou.is))&&(l.kind===void 0||su.is(l.kind))&&l.textEdits===void 0||_.typedArray(l.textEdits,rr.is)&&(l.tooltip===void 0||_.string(l.tooltip)||Ea.is(l.tooltip))&&(l.paddingLeft===void 0||_.boolean(l.paddingLeft))&&(l.paddingRight===void 0||_.boolean(l.paddingRight))}s(o,"is"),a.is=o}(Dp||(Dp={})),function(a){function i(o){return{kind:"snippet",value:o}}s(i,"createSnippet"),a.createSnippet=i}(Mp||(Mp={})),function(a){function i(o,c,l,u){return{insertText:o,filterText:c,range:l,command:u}}s(i,"create"),a.create=i}(xp||(xp={})),function(a){function i(o){return{items:o}}s(i,"create"),a.create=i}(Fp||(Fp={})),function(a){a.Invoked=0,a.Automatic=1}(Gp||(Gp={})),function(a){function i(o,c){return{range:o,text:c}}s(i,"create"),a.create=i}(jp||(jp={})),function(a){function i(o,c){return{triggerKind:o,selectedCompletionInfo:c}}s(i,"create"),a.create=i}(Up||(Up={})),function(a){function i(o){const c=o;return _.objectLiteral(c)&&tu.is(c.uri)&&_.string(c.name)}s(i,"is"),a.is=i}(zp||(zp={})),mT=[`
|
|
1
|
+
var DN=Object.defineProperty;var MN=(t,e,r)=>e in t?DN(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var jr=(t,e,r)=>MN(t,typeof e!="symbol"?e+"":e,r);import{_ as er}from"./vendor-mermaid-DBtTSFLf.js";var xN=Object.create,hc=Object.defineProperty,FN=Object.getOwnPropertyDescriptor,Fh=Object.getOwnPropertyNames,GN=Object.getPrototypeOf,jN=Object.prototype.hasOwnProperty,s=(t,e)=>hc(t,"name",{value:e,configurable:!0}),UN=(t,e)=>function(){return t&&(e=(0,t[Fh(t)[0]])(t=0)),e},Y=(t,e)=>function(){return e||(0,t[Fh(t)[0]])((e={exports:{}}).exports,e),e.exports},Qr=(t,e)=>{for(var r in e)hc(t,r,{get:e[r],enumerable:!0})},Gh=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of Fh(e))!jN.call(t,a)&&a!==r&&hc(t,a,{get:()=>e[a],enumerable:!(n=FN(e,a))||n.enumerable});return t},ff=(t,e,r)=>(Gh(t,e,"default"),r),jh=(t,e,r)=>(r=t!=null?xN(GN(t)):{},Gh(hc(r,"default",{value:t,enumerable:!0}),t)),Uh=t=>Gh(hc({},"__esModule",{value:!0}),t),df={};Qr(df,{AnnotatedTextEdit:()=>Tr,ChangeAnnotation:()=>fn,ChangeAnnotationIdentifier:()=>Xe,CodeAction:()=>Ep,CodeActionContext:()=>Ap,CodeActionKind:()=>$p,CodeActionTriggerKind:()=>Nl,CodeDescription:()=>Qd,CodeLens:()=>_p,Color:()=>ru,ColorInformation:()=>Vd,ColorPresentation:()=>Hd,Command:()=>un,CompletionItem:()=>cp,CompletionItemKind:()=>np,CompletionItemLabelDetails:()=>lp,CompletionItemTag:()=>ip,CompletionList:()=>up,CreateFile:()=>Ra,DeleteFile:()=>Aa,Diagnostic:()=>Sl,DiagnosticRelatedInformation:()=>nu,DiagnosticSeverity:()=>Jd,DiagnosticTag:()=>Zd,DocumentHighlight:()=>mp,DocumentHighlightKind:()=>hp,DocumentLink:()=>Sp,DocumentSymbol:()=>Rp,DocumentUri:()=>Kd,EOL:()=>mT,FoldingRange:()=>Xd,FoldingRangeKind:()=>Yd,FormattingOptions:()=>Cp,Hover:()=>fp,InlayHint:()=>Dp,InlayHintKind:()=>su,InlayHintLabelPart:()=>ou,InlineCompletionContext:()=>Up,InlineCompletionItem:()=>xp,InlineCompletionList:()=>Fp,InlineCompletionTriggerKind:()=>Gp,InlineValueContext:()=>Lp,InlineValueEvaluatableExpression:()=>Op,InlineValueText:()=>kp,InlineValueVariableLookup:()=>Pp,InsertReplaceEdit:()=>sp,InsertTextFormat:()=>ap,InsertTextMode:()=>op,Location:()=>Cl,LocationLink:()=>Wd,MarkedString:()=>Il,MarkupContent:()=>Ea,MarkupKind:()=>iu,OptionalVersionedTextDocumentIdentifier:()=>wl,ParameterInformation:()=>dp,Position:()=>ie,Range:()=>ee,RenameFile:()=>$a,SelectedCompletionInfo:()=>jp,SelectionRange:()=>bp,SemanticTokenModifiers:()=>Ip,SemanticTokenTypes:()=>wp,SemanticTokens:()=>Np,SignatureInformation:()=>pp,StringValue:()=>Mp,SymbolInformation:()=>vp,SymbolKind:()=>gp,SymbolTag:()=>yp,TextDocument:()=>Bp,TextDocumentEdit:()=>bl,TextDocumentIdentifier:()=>ep,TextDocumentItem:()=>rp,TextEdit:()=>rr,URI:()=>tu,VersionedTextDocumentIdentifier:()=>tp,WorkspaceChange:()=>hT,WorkspaceEdit:()=>au,WorkspaceFolder:()=>zp,WorkspaceSymbol:()=>Tp,integer:()=>qd,uinteger:()=>_l});var Kd,tu,qd,_l,ie,ee,Cl,Wd,ru,Vd,Hd,Yd,Xd,nu,Jd,Zd,Qd,Sl,un,rr,fn,Xe,Tr,bl,Ra,$a,Aa,au,hl,$d,hT,ep,tp,wl,rp,iu,Ea,np,ap,ip,sp,op,lp,cp,up,Il,fp,dp,pp,hp,mp,gp,yp,vp,Tp,Rp,$p,Nl,Ap,Ep,_p,Cp,Sp,bp,wp,Ip,Np,kp,Pp,Op,Lp,su,ou,Dp,Mp,xp,Fp,Gp,jp,Up,zp,mT,Bp,_y,_,mc=UN({"../../node_modules/.pnpm/vscode-languageserver-types@3.17.5/node_modules/vscode-languageserver-types/lib/esm/main.js"(){var t,e,r,n;(function(a){function i(o){return typeof o=="string"}s(i,"is"),a.is=i})(Kd||(Kd={})),function(a){function i(o){return typeof o=="string"}s(i,"is"),a.is=i}(tu||(tu={})),function(a){a.MIN_VALUE=-2147483648,a.MAX_VALUE=2147483647;function i(o){return typeof o=="number"&&a.MIN_VALUE<=o&&o<=a.MAX_VALUE}s(i,"is"),a.is=i}(qd||(qd={})),function(a){a.MIN_VALUE=0,a.MAX_VALUE=2147483647;function i(o){return typeof o=="number"&&a.MIN_VALUE<=o&&o<=a.MAX_VALUE}s(i,"is"),a.is=i}(_l||(_l={})),function(a){function i(c,l){return c===Number.MAX_VALUE&&(c=_l.MAX_VALUE),l===Number.MAX_VALUE&&(l=_l.MAX_VALUE),{line:c,character:l}}s(i,"create"),a.create=i;function o(c){let l=c;return _.objectLiteral(l)&&_.uinteger(l.line)&&_.uinteger(l.character)}s(o,"is"),a.is=o}(ie||(ie={})),function(a){function i(c,l,u,f){if(_.uinteger(c)&&_.uinteger(l)&&_.uinteger(u)&&_.uinteger(f))return{start:ie.create(c,l),end:ie.create(u,f)};if(ie.is(c)&&ie.is(l))return{start:c,end:l};throw new Error(`Range#create called with invalid arguments[${c}, ${l}, ${u}, ${f}]`)}s(i,"create"),a.create=i;function o(c){let l=c;return _.objectLiteral(l)&&ie.is(l.start)&&ie.is(l.end)}s(o,"is"),a.is=o}(ee||(ee={})),function(a){function i(c,l){return{uri:c,range:l}}s(i,"create"),a.create=i;function o(c){let l=c;return _.objectLiteral(l)&&ee.is(l.range)&&(_.string(l.uri)||_.undefined(l.uri))}s(o,"is"),a.is=o}(Cl||(Cl={})),function(a){function i(c,l,u,f){return{targetUri:c,targetRange:l,targetSelectionRange:u,originSelectionRange:f}}s(i,"create"),a.create=i;function o(c){let l=c;return _.objectLiteral(l)&&ee.is(l.targetRange)&&_.string(l.targetUri)&&ee.is(l.targetSelectionRange)&&(ee.is(l.originSelectionRange)||_.undefined(l.originSelectionRange))}s(o,"is"),a.is=o}(Wd||(Wd={})),function(a){function i(c,l,u,f){return{red:c,green:l,blue:u,alpha:f}}s(i,"create"),a.create=i;function o(c){const l=c;return _.objectLiteral(l)&&_.numberRange(l.red,0,1)&&_.numberRange(l.green,0,1)&&_.numberRange(l.blue,0,1)&&_.numberRange(l.alpha,0,1)}s(o,"is"),a.is=o}(ru||(ru={})),function(a){function i(c,l){return{range:c,color:l}}s(i,"create"),a.create=i;function o(c){const l=c;return _.objectLiteral(l)&&ee.is(l.range)&&ru.is(l.color)}s(o,"is"),a.is=o}(Vd||(Vd={})),function(a){function i(c,l,u){return{label:c,textEdit:l,additionalTextEdits:u}}s(i,"create"),a.create=i;function o(c){const l=c;return _.objectLiteral(l)&&_.string(l.label)&&(_.undefined(l.textEdit)||rr.is(l))&&(_.undefined(l.additionalTextEdits)||_.typedArray(l.additionalTextEdits,rr.is))}s(o,"is"),a.is=o}(Hd||(Hd={})),function(a){a.Comment="comment",a.Imports="imports",a.Region="region"}(Yd||(Yd={})),function(a){function i(c,l,u,f,d,p){const m={startLine:c,endLine:l};return _.defined(u)&&(m.startCharacter=u),_.defined(f)&&(m.endCharacter=f),_.defined(d)&&(m.kind=d),_.defined(p)&&(m.collapsedText=p),m}s(i,"create"),a.create=i;function o(c){const l=c;return _.objectLiteral(l)&&_.uinteger(l.startLine)&&_.uinteger(l.startLine)&&(_.undefined(l.startCharacter)||_.uinteger(l.startCharacter))&&(_.undefined(l.endCharacter)||_.uinteger(l.endCharacter))&&(_.undefined(l.kind)||_.string(l.kind))}s(o,"is"),a.is=o}(Xd||(Xd={})),function(a){function i(c,l){return{location:c,message:l}}s(i,"create"),a.create=i;function o(c){let l=c;return _.defined(l)&&Cl.is(l.location)&&_.string(l.message)}s(o,"is"),a.is=o}(nu||(nu={})),function(a){a.Error=1,a.Warning=2,a.Information=3,a.Hint=4}(Jd||(Jd={})),function(a){a.Unnecessary=1,a.Deprecated=2}(Zd||(Zd={})),function(a){function i(o){const c=o;return _.objectLiteral(c)&&_.string(c.href)}s(i,"is"),a.is=i}(Qd||(Qd={})),function(a){function i(c,l,u,f,d,p){let m={range:c,message:l};return _.defined(u)&&(m.severity=u),_.defined(f)&&(m.code=f),_.defined(d)&&(m.source=d),_.defined(p)&&(m.relatedInformation=p),m}s(i,"create"),a.create=i;function o(c){var l;let u=c;return _.defined(u)&&ee.is(u.range)&&_.string(u.message)&&(_.number(u.severity)||_.undefined(u.severity))&&(_.integer(u.code)||_.string(u.code)||_.undefined(u.code))&&(_.undefined(u.codeDescription)||_.string((l=u.codeDescription)===null||l===void 0?void 0:l.href))&&(_.string(u.source)||_.undefined(u.source))&&(_.undefined(u.relatedInformation)||_.typedArray(u.relatedInformation,nu.is))}s(o,"is"),a.is=o}(Sl||(Sl={})),function(a){function i(c,l,...u){let f={title:c,command:l};return _.defined(u)&&u.length>0&&(f.arguments=u),f}s(i,"create"),a.create=i;function o(c){let l=c;return _.defined(l)&&_.string(l.title)&&_.string(l.command)}s(o,"is"),a.is=o}(un||(un={})),function(a){function i(u,f){return{range:u,newText:f}}s(i,"replace"),a.replace=i;function o(u,f){return{range:{start:u,end:u},newText:f}}s(o,"insert"),a.insert=o;function c(u){return{range:u,newText:""}}s(c,"del"),a.del=c;function l(u){const f=u;return _.objectLiteral(f)&&_.string(f.newText)&&ee.is(f.range)}s(l,"is"),a.is=l}(rr||(rr={})),function(a){function i(c,l,u){const f={label:c};return l!==void 0&&(f.needsConfirmation=l),u!==void 0&&(f.description=u),f}s(i,"create"),a.create=i;function o(c){const l=c;return _.objectLiteral(l)&&_.string(l.label)&&(_.boolean(l.needsConfirmation)||l.needsConfirmation===void 0)&&(_.string(l.description)||l.description===void 0)}s(o,"is"),a.is=o}(fn||(fn={})),function(a){function i(o){const c=o;return _.string(c)}s(i,"is"),a.is=i}(Xe||(Xe={})),function(a){function i(u,f,d){return{range:u,newText:f,annotationId:d}}s(i,"replace"),a.replace=i;function o(u,f,d){return{range:{start:u,end:u},newText:f,annotationId:d}}s(o,"insert"),a.insert=o;function c(u,f){return{range:u,newText:"",annotationId:f}}s(c,"del"),a.del=c;function l(u){const f=u;return rr.is(f)&&(fn.is(f.annotationId)||Xe.is(f.annotationId))}s(l,"is"),a.is=l}(Tr||(Tr={})),function(a){function i(c,l){return{textDocument:c,edits:l}}s(i,"create"),a.create=i;function o(c){let l=c;return _.defined(l)&&wl.is(l.textDocument)&&Array.isArray(l.edits)}s(o,"is"),a.is=o}(bl||(bl={})),function(a){function i(c,l,u){let f={kind:"create",uri:c};return l!==void 0&&(l.overwrite!==void 0||l.ignoreIfExists!==void 0)&&(f.options=l),u!==void 0&&(f.annotationId=u),f}s(i,"create"),a.create=i;function o(c){let l=c;return l&&l.kind==="create"&&_.string(l.uri)&&(l.options===void 0||(l.options.overwrite===void 0||_.boolean(l.options.overwrite))&&(l.options.ignoreIfExists===void 0||_.boolean(l.options.ignoreIfExists)))&&(l.annotationId===void 0||Xe.is(l.annotationId))}s(o,"is"),a.is=o}(Ra||(Ra={})),function(a){function i(c,l,u,f){let d={kind:"rename",oldUri:c,newUri:l};return u!==void 0&&(u.overwrite!==void 0||u.ignoreIfExists!==void 0)&&(d.options=u),f!==void 0&&(d.annotationId=f),d}s(i,"create"),a.create=i;function o(c){let l=c;return l&&l.kind==="rename"&&_.string(l.oldUri)&&_.string(l.newUri)&&(l.options===void 0||(l.options.overwrite===void 0||_.boolean(l.options.overwrite))&&(l.options.ignoreIfExists===void 0||_.boolean(l.options.ignoreIfExists)))&&(l.annotationId===void 0||Xe.is(l.annotationId))}s(o,"is"),a.is=o}($a||($a={})),function(a){function i(c,l,u){let f={kind:"delete",uri:c};return l!==void 0&&(l.recursive!==void 0||l.ignoreIfNotExists!==void 0)&&(f.options=l),u!==void 0&&(f.annotationId=u),f}s(i,"create"),a.create=i;function o(c){let l=c;return l&&l.kind==="delete"&&_.string(l.uri)&&(l.options===void 0||(l.options.recursive===void 0||_.boolean(l.options.recursive))&&(l.options.ignoreIfNotExists===void 0||_.boolean(l.options.ignoreIfNotExists)))&&(l.annotationId===void 0||Xe.is(l.annotationId))}s(o,"is"),a.is=o}(Aa||(Aa={})),function(a){function i(o){let c=o;return c&&(c.changes!==void 0||c.documentChanges!==void 0)&&(c.documentChanges===void 0||c.documentChanges.every(l=>_.string(l.kind)?Ra.is(l)||$a.is(l)||Aa.is(l):bl.is(l)))}s(i,"is"),a.is=i}(au||(au={})),hl=(t=class{constructor(i,o){this.edits=i,this.changeAnnotations=o}insert(i,o,c){let l,u;if(c===void 0?l=rr.insert(i,o):Xe.is(c)?(u=c,l=Tr.insert(i,o,c)):(this.assertChangeAnnotations(this.changeAnnotations),u=this.changeAnnotations.manage(c),l=Tr.insert(i,o,u)),this.edits.push(l),u!==void 0)return u}replace(i,o,c){let l,u;if(c===void 0?l=rr.replace(i,o):Xe.is(c)?(u=c,l=Tr.replace(i,o,c)):(this.assertChangeAnnotations(this.changeAnnotations),u=this.changeAnnotations.manage(c),l=Tr.replace(i,o,u)),this.edits.push(l),u!==void 0)return u}delete(i,o){let c,l;if(o===void 0?c=rr.del(i):Xe.is(o)?(l=o,c=Tr.del(i,o)):(this.assertChangeAnnotations(this.changeAnnotations),l=this.changeAnnotations.manage(o),c=Tr.del(i,l)),this.edits.push(c),l!==void 0)return l}add(i){this.edits.push(i)}all(){return this.edits}clear(){this.edits.splice(0,this.edits.length)}assertChangeAnnotations(i){if(i===void 0)throw new Error("Text edit change is not configured to manage change annotations.")}},s(t,"TextEditChangeImpl"),t),$d=(e=class{constructor(i){this._annotations=i===void 0?Object.create(null):i,this._counter=0,this._size=0}all(){return this._annotations}get size(){return this._size}manage(i,o){let c;if(Xe.is(i)?c=i:(c=this.nextId(),o=i),this._annotations[c]!==void 0)throw new Error(`Id ${c} is already in use.`);if(o===void 0)throw new Error(`No annotation provided for id ${c}`);return this._annotations[c]=o,this._size++,c}nextId(){return this._counter++,this._counter.toString()}},s(e,"ChangeAnnotations"),e),hT=(r=class{constructor(i){this._textEditChanges=Object.create(null),i!==void 0?(this._workspaceEdit=i,i.documentChanges?(this._changeAnnotations=new $d(i.changeAnnotations),i.changeAnnotations=this._changeAnnotations.all(),i.documentChanges.forEach(o=>{if(bl.is(o)){const c=new hl(o.edits,this._changeAnnotations);this._textEditChanges[o.textDocument.uri]=c}})):i.changes&&Object.keys(i.changes).forEach(o=>{const c=new hl(i.changes[o]);this._textEditChanges[o]=c})):this._workspaceEdit={}}get edit(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit}getTextEditChange(i){if(wl.is(i)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");const o={uri:i.uri,version:i.version};let c=this._textEditChanges[o.uri];if(!c){const l=[],u={textDocument:o,edits:l};this._workspaceEdit.documentChanges.push(u),c=new hl(l,this._changeAnnotations),this._textEditChanges[o.uri]=c}return c}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");let o=this._textEditChanges[i];if(!o){let c=[];this._workspaceEdit.changes[i]=c,o=new hl(c),this._textEditChanges[i]=o}return o}}initDocumentChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new $d,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())}initChanges(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))}createFile(i,o,c){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let l;fn.is(o)||Xe.is(o)?l=o:c=o;let u,f;if(l===void 0?u=Ra.create(i,c):(f=Xe.is(l)?l:this._changeAnnotations.manage(l),u=Ra.create(i,c,f)),this._workspaceEdit.documentChanges.push(u),f!==void 0)return f}renameFile(i,o,c,l){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let u;fn.is(c)||Xe.is(c)?u=c:l=c;let f,d;if(u===void 0?f=$a.create(i,o,l):(d=Xe.is(u)?u:this._changeAnnotations.manage(u),f=$a.create(i,o,l,d)),this._workspaceEdit.documentChanges.push(f),d!==void 0)return d}deleteFile(i,o,c){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");let l;fn.is(o)||Xe.is(o)?l=o:c=o;let u,f;if(l===void 0?u=Aa.create(i,c):(f=Xe.is(l)?l:this._changeAnnotations.manage(l),u=Aa.create(i,c,f)),this._workspaceEdit.documentChanges.push(u),f!==void 0)return f}},s(r,"WorkspaceChange"),r),function(a){function i(c){return{uri:c}}s(i,"create"),a.create=i;function o(c){let l=c;return _.defined(l)&&_.string(l.uri)}s(o,"is"),a.is=o}(ep||(ep={})),function(a){function i(c,l){return{uri:c,version:l}}s(i,"create"),a.create=i;function o(c){let l=c;return _.defined(l)&&_.string(l.uri)&&_.integer(l.version)}s(o,"is"),a.is=o}(tp||(tp={})),function(a){function i(c,l){return{uri:c,version:l}}s(i,"create"),a.create=i;function o(c){let l=c;return _.defined(l)&&_.string(l.uri)&&(l.version===null||_.integer(l.version))}s(o,"is"),a.is=o}(wl||(wl={})),function(a){function i(c,l,u,f){return{uri:c,languageId:l,version:u,text:f}}s(i,"create"),a.create=i;function o(c){let l=c;return _.defined(l)&&_.string(l.uri)&&_.string(l.languageId)&&_.integer(l.version)&&_.string(l.text)}s(o,"is"),a.is=o}(rp||(rp={})),function(a){a.PlainText="plaintext",a.Markdown="markdown";function i(o){const c=o;return c===a.PlainText||c===a.Markdown}s(i,"is"),a.is=i}(iu||(iu={})),function(a){function i(o){const c=o;return _.objectLiteral(o)&&iu.is(c.kind)&&_.string(c.value)}s(i,"is"),a.is=i}(Ea||(Ea={})),function(a){a.Text=1,a.Method=2,a.Function=3,a.Constructor=4,a.Field=5,a.Variable=6,a.Class=7,a.Interface=8,a.Module=9,a.Property=10,a.Unit=11,a.Value=12,a.Enum=13,a.Keyword=14,a.Snippet=15,a.Color=16,a.File=17,a.Reference=18,a.Folder=19,a.EnumMember=20,a.Constant=21,a.Struct=22,a.Event=23,a.Operator=24,a.TypeParameter=25}(np||(np={})),function(a){a.PlainText=1,a.Snippet=2}(ap||(ap={})),function(a){a.Deprecated=1}(ip||(ip={})),function(a){function i(c,l,u){return{newText:c,insert:l,replace:u}}s(i,"create"),a.create=i;function o(c){const l=c;return l&&_.string(l.newText)&&ee.is(l.insert)&&ee.is(l.replace)}s(o,"is"),a.is=o}(sp||(sp={})),function(a){a.asIs=1,a.adjustIndentation=2}(op||(op={})),function(a){function i(o){const c=o;return c&&(_.string(c.detail)||c.detail===void 0)&&(_.string(c.description)||c.description===void 0)}s(i,"is"),a.is=i}(lp||(lp={})),function(a){function i(o){return{label:o}}s(i,"create"),a.create=i}(cp||(cp={})),function(a){function i(o,c){return{items:o||[],isIncomplete:!!c}}s(i,"create"),a.create=i}(up||(up={})),function(a){function i(c){return c.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}s(i,"fromPlainText"),a.fromPlainText=i;function o(c){const l=c;return _.string(l)||_.objectLiteral(l)&&_.string(l.language)&&_.string(l.value)}s(o,"is"),a.is=o}(Il||(Il={})),function(a){function i(o){let c=o;return!!c&&_.objectLiteral(c)&&(Ea.is(c.contents)||Il.is(c.contents)||_.typedArray(c.contents,Il.is))&&(o.range===void 0||ee.is(o.range))}s(i,"is"),a.is=i}(fp||(fp={})),function(a){function i(o,c){return c?{label:o,documentation:c}:{label:o}}s(i,"create"),a.create=i}(dp||(dp={})),function(a){function i(o,c,...l){let u={label:o};return _.defined(c)&&(u.documentation=c),_.defined(l)?u.parameters=l:u.parameters=[],u}s(i,"create"),a.create=i}(pp||(pp={})),function(a){a.Text=1,a.Read=2,a.Write=3}(hp||(hp={})),function(a){function i(o,c){let l={range:o};return _.number(c)&&(l.kind=c),l}s(i,"create"),a.create=i}(mp||(mp={})),function(a){a.File=1,a.Module=2,a.Namespace=3,a.Package=4,a.Class=5,a.Method=6,a.Property=7,a.Field=8,a.Constructor=9,a.Enum=10,a.Interface=11,a.Function=12,a.Variable=13,a.Constant=14,a.String=15,a.Number=16,a.Boolean=17,a.Array=18,a.Object=19,a.Key=20,a.Null=21,a.EnumMember=22,a.Struct=23,a.Event=24,a.Operator=25,a.TypeParameter=26}(gp||(gp={})),function(a){a.Deprecated=1}(yp||(yp={})),function(a){function i(o,c,l,u,f){let d={name:o,kind:c,location:{uri:u,range:l}};return f&&(d.containerName=f),d}s(i,"create"),a.create=i}(vp||(vp={})),function(a){function i(o,c,l,u){return u!==void 0?{name:o,kind:c,location:{uri:l,range:u}}:{name:o,kind:c,location:{uri:l}}}s(i,"create"),a.create=i}(Tp||(Tp={})),function(a){function i(c,l,u,f,d,p){let m={name:c,detail:l,kind:u,range:f,selectionRange:d};return p!==void 0&&(m.children=p),m}s(i,"create"),a.create=i;function o(c){let l=c;return l&&_.string(l.name)&&_.number(l.kind)&&ee.is(l.range)&&ee.is(l.selectionRange)&&(l.detail===void 0||_.string(l.detail))&&(l.deprecated===void 0||_.boolean(l.deprecated))&&(l.children===void 0||Array.isArray(l.children))&&(l.tags===void 0||Array.isArray(l.tags))}s(o,"is"),a.is=o}(Rp||(Rp={})),function(a){a.Empty="",a.QuickFix="quickfix",a.Refactor="refactor",a.RefactorExtract="refactor.extract",a.RefactorInline="refactor.inline",a.RefactorRewrite="refactor.rewrite",a.Source="source",a.SourceOrganizeImports="source.organizeImports",a.SourceFixAll="source.fixAll"}($p||($p={})),function(a){a.Invoked=1,a.Automatic=2}(Nl||(Nl={})),function(a){function i(c,l,u){let f={diagnostics:c};return l!=null&&(f.only=l),u!=null&&(f.triggerKind=u),f}s(i,"create"),a.create=i;function o(c){let l=c;return _.defined(l)&&_.typedArray(l.diagnostics,Sl.is)&&(l.only===void 0||_.typedArray(l.only,_.string))&&(l.triggerKind===void 0||l.triggerKind===Nl.Invoked||l.triggerKind===Nl.Automatic)}s(o,"is"),a.is=o}(Ap||(Ap={})),function(a){function i(c,l,u){let f={title:c},d=!0;return typeof l=="string"?(d=!1,f.kind=l):un.is(l)?f.command=l:f.edit=l,d&&u!==void 0&&(f.kind=u),f}s(i,"create"),a.create=i;function o(c){let l=c;return l&&_.string(l.title)&&(l.diagnostics===void 0||_.typedArray(l.diagnostics,Sl.is))&&(l.kind===void 0||_.string(l.kind))&&(l.edit!==void 0||l.command!==void 0)&&(l.command===void 0||un.is(l.command))&&(l.isPreferred===void 0||_.boolean(l.isPreferred))&&(l.edit===void 0||au.is(l.edit))}s(o,"is"),a.is=o}(Ep||(Ep={})),function(a){function i(c,l){let u={range:c};return _.defined(l)&&(u.data=l),u}s(i,"create"),a.create=i;function o(c){let l=c;return _.defined(l)&&ee.is(l.range)&&(_.undefined(l.command)||un.is(l.command))}s(o,"is"),a.is=o}(_p||(_p={})),function(a){function i(c,l){return{tabSize:c,insertSpaces:l}}s(i,"create"),a.create=i;function o(c){let l=c;return _.defined(l)&&_.uinteger(l.tabSize)&&_.boolean(l.insertSpaces)}s(o,"is"),a.is=o}(Cp||(Cp={})),function(a){function i(c,l,u){return{range:c,target:l,data:u}}s(i,"create"),a.create=i;function o(c){let l=c;return _.defined(l)&&ee.is(l.range)&&(_.undefined(l.target)||_.string(l.target))}s(o,"is"),a.is=o}(Sp||(Sp={})),function(a){function i(c,l){return{range:c,parent:l}}s(i,"create"),a.create=i;function o(c){let l=c;return _.objectLiteral(l)&&ee.is(l.range)&&(l.parent===void 0||a.is(l.parent))}s(o,"is"),a.is=o}(bp||(bp={})),function(a){a.namespace="namespace",a.type="type",a.class="class",a.enum="enum",a.interface="interface",a.struct="struct",a.typeParameter="typeParameter",a.parameter="parameter",a.variable="variable",a.property="property",a.enumMember="enumMember",a.event="event",a.function="function",a.method="method",a.macro="macro",a.keyword="keyword",a.modifier="modifier",a.comment="comment",a.string="string",a.number="number",a.regexp="regexp",a.operator="operator",a.decorator="decorator"}(wp||(wp={})),function(a){a.declaration="declaration",a.definition="definition",a.readonly="readonly",a.static="static",a.deprecated="deprecated",a.abstract="abstract",a.async="async",a.modification="modification",a.documentation="documentation",a.defaultLibrary="defaultLibrary"}(Ip||(Ip={})),function(a){function i(o){const c=o;return _.objectLiteral(c)&&(c.resultId===void 0||typeof c.resultId=="string")&&Array.isArray(c.data)&&(c.data.length===0||typeof c.data[0]=="number")}s(i,"is"),a.is=i}(Np||(Np={})),function(a){function i(c,l){return{range:c,text:l}}s(i,"create"),a.create=i;function o(c){const l=c;return l!=null&&ee.is(l.range)&&_.string(l.text)}s(o,"is"),a.is=o}(kp||(kp={})),function(a){function i(c,l,u){return{range:c,variableName:l,caseSensitiveLookup:u}}s(i,"create"),a.create=i;function o(c){const l=c;return l!=null&&ee.is(l.range)&&_.boolean(l.caseSensitiveLookup)&&(_.string(l.variableName)||l.variableName===void 0)}s(o,"is"),a.is=o}(Pp||(Pp={})),function(a){function i(c,l){return{range:c,expression:l}}s(i,"create"),a.create=i;function o(c){const l=c;return l!=null&&ee.is(l.range)&&(_.string(l.expression)||l.expression===void 0)}s(o,"is"),a.is=o}(Op||(Op={})),function(a){function i(c,l){return{frameId:c,stoppedLocation:l}}s(i,"create"),a.create=i;function o(c){const l=c;return _.defined(l)&&ee.is(c.stoppedLocation)}s(o,"is"),a.is=o}(Lp||(Lp={})),function(a){a.Type=1,a.Parameter=2;function i(o){return o===1||o===2}s(i,"is"),a.is=i}(su||(su={})),function(a){function i(c){return{value:c}}s(i,"create"),a.create=i;function o(c){const l=c;return _.objectLiteral(l)&&(l.tooltip===void 0||_.string(l.tooltip)||Ea.is(l.tooltip))&&(l.location===void 0||Cl.is(l.location))&&(l.command===void 0||un.is(l.command))}s(o,"is"),a.is=o}(ou||(ou={})),function(a){function i(c,l,u){const f={position:c,label:l};return u!==void 0&&(f.kind=u),f}s(i,"create"),a.create=i;function o(c){const l=c;return _.objectLiteral(l)&&ie.is(l.position)&&(_.string(l.label)||_.typedArray(l.label,ou.is))&&(l.kind===void 0||su.is(l.kind))&&l.textEdits===void 0||_.typedArray(l.textEdits,rr.is)&&(l.tooltip===void 0||_.string(l.tooltip)||Ea.is(l.tooltip))&&(l.paddingLeft===void 0||_.boolean(l.paddingLeft))&&(l.paddingRight===void 0||_.boolean(l.paddingRight))}s(o,"is"),a.is=o}(Dp||(Dp={})),function(a){function i(o){return{kind:"snippet",value:o}}s(i,"createSnippet"),a.createSnippet=i}(Mp||(Mp={})),function(a){function i(o,c,l,u){return{insertText:o,filterText:c,range:l,command:u}}s(i,"create"),a.create=i}(xp||(xp={})),function(a){function i(o){return{items:o}}s(i,"create"),a.create=i}(Fp||(Fp={})),function(a){a.Invoked=0,a.Automatic=1}(Gp||(Gp={})),function(a){function i(o,c){return{range:o,text:c}}s(i,"create"),a.create=i}(jp||(jp={})),function(a){function i(o,c){return{triggerKind:o,selectedCompletionInfo:c}}s(i,"create"),a.create=i}(Up||(Up={})),function(a){function i(o){const c=o;return _.objectLiteral(c)&&tu.is(c.uri)&&_.string(c.name)}s(i,"is"),a.is=i}(zp||(zp={})),mT=[`
|
|
2
2
|
`,`\r
|
|
3
3
|
`,"\r"],function(a){function i(u,f,d,p){return new _y(u,f,d,p)}s(i,"create"),a.create=i;function o(u){let f=u;return!!(_.defined(f)&&_.string(f.uri)&&(_.undefined(f.languageId)||_.string(f.languageId))&&_.uinteger(f.lineCount)&&_.func(f.getText)&&_.func(f.positionAt)&&_.func(f.offsetAt))}s(o,"is"),a.is=o;function c(u,f){let d=u.getText(),p=l(f,(g,v)=>{let E=g.range.start.line-v.range.start.line;return E===0?g.range.start.character-v.range.start.character:E}),m=d.length;for(let g=p.length-1;g>=0;g--){let v=p[g],E=u.offsetAt(v.range.start),T=u.offsetAt(v.range.end);if(T<=m)d=d.substring(0,E)+v.newText+d.substring(T,d.length);else throw new Error("Overlapping edit");m=E}return d}s(c,"applyEdits"),a.applyEdits=c;function l(u,f){if(u.length<=1)return u;const d=u.length/2|0,p=u.slice(0,d),m=u.slice(d);l(p,f),l(m,f);let g=0,v=0,E=0;for(;g<p.length&&v<m.length;)f(p[g],m[v])<=0?u[E++]=p[g++]:u[E++]=m[v++];for(;g<p.length;)u[E++]=p[g++];for(;v<m.length;)u[E++]=m[v++];return u}s(l,"mergeSort")}(Bp||(Bp={})),_y=(n=class{constructor(i,o,c,l){this._uri=i,this._languageId=o,this._version=c,this._content=l,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(i){if(i){let o=this.offsetAt(i.start),c=this.offsetAt(i.end);return this._content.substring(o,c)}return this._content}update(i,o){this._content=i.text,this._version=o,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let i=[],o=this._content,c=!0;for(let l=0;l<o.length;l++){c&&(i.push(l),c=!1);let u=o.charAt(l);c=u==="\r"||u===`
|
|
4
4
|
`,u==="\r"&&l+1<o.length&&o.charAt(l+1)===`
|