From 57611aa0bf2f523cf9c05d01ae63bd45c4ccca8a Mon Sep 17 00:00:00 2001 From: mtw <382160702@qq.com> Date: Tue, 23 Aug 2022 19:11:20 +0800 Subject: [PATCH] =?UTF-8?q?2.0=E9=9C=80=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...c8cbbc86.async.js => 237.25a4dc94.async.js | 12 +- 242.47f1ab46.async.js | 3 - 242.d23b9cfd.async.js | 3 + index.html | 2 +- ...uts__ShixunDetail__index.52ecc13e.async.js | 2 +- ...ync.js => layouts__index.8d342fd9.async.js | 2 +- ...ttendance__Detail__index.7877b8b3.async.js | 2 +- ...Lists__Attendance__index.01a16ccb.async.js | 2 +- ...nHomework__Detail__index.583087bc.async.js | 0 ...s__CommonHomework__index.67e3a9bb.async.js | 2 +- ...urseGroup__Detail__index.9b59f3c8.async.js | 2 +- ...CourseGroup__List__index.e7d9c87e.async.js | 0 ...rseGroup__NotList__index.54caa67d.async.js | 0 ..._Exercise__Detail__index.5d604364.async.js | 0 ...assrooms__Lists.6883f4d3.a15f99be.async.js | 0 ...pHomework__Detail__index.b8df7b2a.async.js | 0 ...ts__GroupHomework__index.bc8fccc3.async.js | 2 +- ...ts__Polls__Answer__index.f0d8c0ef.async.js | 2 +- ...ts__Polls__Detail__index.4cf96d7b.async.js | 0 ...Homeworks__Detail__index.5832d8ac.async.js | 17 - ...Homeworks__Detail__index.a4b08c17.async.js | 17 + ...omeworks__Detail__index.db1bc1fe.chunk.css | 2 +- ...__ShixunHomeworks__index.6e2732c2.async.js | 0 ...__VideoStatistics__index.3064a2d4.async.js | 1 - ...__VideoStatistics__index.7fce9274.async.js | 1 + ..._VideoStatistics__index.93701708.chunk.css | 1 - ..._VideoStatistics__index.afa5ef69.chunk.css | 1 + ...ists__Statistics__index.5b45a41f.chunk.css | 2 +- ...Lists__Statistics__index.8ca467cc.async.js | 1 + ...Lists__Statistics__index.9fb4149b.async.js | 1 - ...ts__Video__Upload__index.ee97b819.async.js | 1 + ...ts__Video__Upload__index.f9544205.async.js | 1 - ...js => p__Classrooms__New.ca84f6c9.async.js | 2 +- ...ssrooms__New__StartClass.111c59ff.async.js | 2 +- ...c.js => p__Forums__Index.4fb221e1.async.js | 2 +- ...rary__Random__Add__index.17c832d6.async.js | 4 - ...rary__Random__Add__index.8e4d1496.async.js | 4 + ...aths__Detail__Statistics.963bc4d7.async.js | 6 +- ...ths__Detail__Statistics.f765146c.chunk.css | 2 +- ... => p__Paths__Detail__id.d372f6ad.async.js | 2 +- ...il__Collaborators__index.a16f45ce.async.js | 2 +- ...c.js => p__Shixuns__Edit.4bfbcea0.async.js | 2 +- ...etail__TeachGroup__index.2ad22337.async.js | 2 +- umi.dea4063e.js => umi.763b7a9d.js | 180 +++--- ...53db.async.js => vendors.20c838d7.async.js | 540 +++++++++--------- 45 files changed, 416 insertions(+), 416 deletions(-) rename 237.c8cbbc86.async.js => 237.25a4dc94.async.js (76%) delete mode 100644 242.47f1ab46.async.js create mode 100644 242.d23b9cfd.async.js rename layouts__ShixunDetail__index.313eead4.async.js => layouts__ShixunDetail__index.52ecc13e.async.js (79%) rename layouts__index.d73b35f5.async.js => layouts__index.8d342fd9.async.js (94%) rename p__Classrooms__Lists__Attendance__Detail__index.e31b0111.async.js => p__Classrooms__Lists__Attendance__Detail__index.7877b8b3.async.js (99%) rename p__Classrooms__Lists__Attendance__index.a414a1c0.async.js => p__Classrooms__Lists__Attendance__index.01a16ccb.async.js (99%) rename p__Classrooms__Lists__CommonHomework__Detail__index.45793e57.async.js => p__Classrooms__Lists__CommonHomework__Detail__index.583087bc.async.js (100%) rename p__Classrooms__Lists__CommonHomework__index.0f918868.async.js => p__Classrooms__Lists__CommonHomework__index.67e3a9bb.async.js (93%) rename p__Classrooms__Lists__CourseGroup__Detail__index.57c5c5cf.async.js => p__Classrooms__Lists__CourseGroup__Detail__index.9b59f3c8.async.js (99%) rename p__Classrooms__Lists__CourseGroup__List__index.36e58c1c.async.js => p__Classrooms__Lists__CourseGroup__List__index.e7d9c87e.async.js (100%) rename p__Classrooms__Lists__CourseGroup__NotList__index.8674f82c.async.js => p__Classrooms__Lists__CourseGroup__NotList__index.54caa67d.async.js (100%) rename p__Classrooms__Lists__Exercise__Detail__index.a0b44875.async.js => p__Classrooms__Lists__Exercise__Detail__index.5d604364.async.js (100%) rename p__Classrooms__Lists__ExportList__index.p__Classrooms__Lists__Statistics__index.p__Classrooms__Lists.6883f4d3.54512c38.async.js => p__Classrooms__Lists__ExportList__index.p__Classrooms__Lists__Statistics__index.p__Classrooms__Lists.6883f4d3.a15f99be.async.js (100%) rename p__Classrooms__Lists__GroupHomework__Detail__index.246f0a7f.async.js => p__Classrooms__Lists__GroupHomework__Detail__index.b8df7b2a.async.js (100%) rename p__Classrooms__Lists__GroupHomework__index.e2117b52.async.js => p__Classrooms__Lists__GroupHomework__index.bc8fccc3.async.js (99%) rename p__Classrooms__Lists__Polls__Answer__index.0fe5cc4f.async.js => p__Classrooms__Lists__Polls__Answer__index.f0d8c0ef.async.js (85%) rename p__Classrooms__Lists__Polls__Detail__index.b99d7759.async.js => p__Classrooms__Lists__Polls__Detail__index.4cf96d7b.async.js (100%) delete mode 100644 p__Classrooms__Lists__ShixunHomeworks__Detail__index.5832d8ac.async.js create mode 100644 p__Classrooms__Lists__ShixunHomeworks__Detail__index.a4b08c17.async.js rename p__Classrooms__Lists__ShixunHomeworks__Detail__index.5d55c7ba.chunk.css => p__Classrooms__Lists__ShixunHomeworks__Detail__index.db1bc1fe.chunk.css (70%) rename p__Classrooms__Lists__ShixunHomeworks__index.25b6addf.async.js => p__Classrooms__Lists__ShixunHomeworks__index.6e2732c2.async.js (100%) delete mode 100644 p__Classrooms__Lists__Statistics__VideoStatistics__index.3064a2d4.async.js create mode 100644 p__Classrooms__Lists__Statistics__VideoStatistics__index.7fce9274.async.js delete mode 100644 p__Classrooms__Lists__Statistics__VideoStatistics__index.93701708.chunk.css create mode 100644 p__Classrooms__Lists__Statistics__VideoStatistics__index.afa5ef69.chunk.css rename p__Classrooms__Lists__Statistics__index.99e403ef.chunk.css => p__Classrooms__Lists__Statistics__index.5b45a41f.chunk.css (56%) create mode 100644 p__Classrooms__Lists__Statistics__index.8ca467cc.async.js delete mode 100644 p__Classrooms__Lists__Statistics__index.9fb4149b.async.js create mode 100644 p__Classrooms__Lists__Video__Upload__index.ee97b819.async.js delete mode 100644 p__Classrooms__Lists__Video__Upload__index.f9544205.async.js rename p__Classrooms__New.5281254c.async.js => p__Classrooms__New.ca84f6c9.async.js (87%) rename p__Classrooms__New__StartClass.dbc129a5.async.js => p__Classrooms__New__StartClass.111c59ff.async.js (99%) rename p__Forums__Index.5a91e43d.async.js => p__Forums__Index.4fb221e1.async.js (84%) delete mode 100644 p__Paperlibrary__Random__Add__index.17c832d6.async.js create mode 100644 p__Paperlibrary__Random__Add__index.8e4d1496.async.js rename p__Paths__Detail__Statistics.650f9592.async.js => p__Paths__Detail__Statistics.963bc4d7.async.js (72%) rename p__Paths__Detail__Statistics.feac1b65.chunk.css => p__Paths__Detail__Statistics.f765146c.chunk.css (71%) rename p__Paths__Detail__id.36ed6edb.async.js => p__Paths__Detail__id.d372f6ad.async.js (99%) rename p__Shixuns__Detail__Collaborators__index.197f15c5.async.js => p__Shixuns__Detail__Collaborators__index.a16f45ce.async.js (92%) rename p__Shixuns__Edit.9de117f2.async.js => p__Shixuns__Edit.4bfbcea0.async.js (99%) rename p__User__Detail__TeachGroup__index.d8ef3572.async.js => p__User__Detail__TeachGroup__index.2ad22337.async.js (99%) rename umi.dea4063e.js => umi.763b7a9d.js (81%) rename vendors.f77953db.async.js => vendors.20c838d7.async.js (56%) diff --git a/237.c8cbbc86.async.js b/237.25a4dc94.async.js similarity index 76% rename from 237.c8cbbc86.async.js rename to 237.25a4dc94.async.js index 88c834968b..a98e7cc6c4 100644 --- a/237.c8cbbc86.async.js +++ b/237.25a4dc94.async.js @@ -1,4 +1,4 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[237],{"++4Y":function(m,x,e){var u=e("eRwv");m.exports=!u(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},"/TZh":function(m,x,e){var u=e("11yv"),h=u("match");m.exports=function(d){var g=/./;try{"/./"[d](g)}catch(y){try{return g[h]=!1,"/./"[d](g)}catch(T){}}return!1}},"/dXc":function(m,x){var e=Math.ceil,u=Math.floor;m.exports=Math.trunc||function(d){var g=+d;return(g>0?u:e)(g)}},"/pbl":function(m,x,e){var u=e("eE3R");m.exports=/web0s(?!.*chrome)/i.test(u)},"0B/8":function(m,x,e){"use strict";e.d(x,"a",function(){return U});/*! ***************************************************************************** +(window.webpackJsonp=window.webpackJsonp||[]).push([[237],{"++4Y":function(m,x,e){var u=e("eRwv");m.exports=!u(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},"/TZh":function(m,x,e){var u=e("11yv"),h=u("match");m.exports=function(d){var g=/./;try{"/./"[d](g)}catch(y){try{return g[h]=!1,"/./"[d](g)}catch(T){}}return!1}},"/dXc":function(m,x){var e=Math.ceil,u=Math.floor;m.exports=Math.trunc||function(d){var g=+d;return(g>0?u:e)(g)}},"/pbl":function(m,x,e){var u=e("eE3R");m.exports=/web0s(?!.*chrome)/i.test(u)},"0B/8":function(m,x,e){"use strict";e.d(x,"a",function(){return w});/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -11,8 +11,8 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var u=function(S,w){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(I,tt){I.__proto__=tt}||function(I,tt){for(var at in tt)Object.prototype.hasOwnProperty.call(tt,at)&&(I[at]=tt[at])})(S,w)};function h(R,S){if(typeof S!="function"&&S!==null)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function w(){this.constructor=R}u(R,S),R.prototype=S===null?Object.create(S):(w.prototype=S.prototype,new w)}function d(R){var S="";Array.isArray(R)||(R=[R]);for(var w=0;wR.phi1&&(R.phi2-=2*T),R.sweepFlag===1&&R.phi2I)return[];if(I===0)return[[R*w/(R*R+S*S),S*w/(R*R+S*S)]];var tt=Math.sqrt(I);return[[(R*w+S*tt)/(R*R+S*S),(S*w-R*tt)/(R*R+S*S)],[(R*w-S*tt)/(R*R+S*S),(S*w+R*tt)/(R*R+S*S)]]}var P,M=Math.PI/180;function z(R,S,w){return(1-w)*R+w*S}function j(R,S,w,I){return R+Math.cos(I/180*T)*S+Math.sin(I/180*T)*w}function F(R,S,w,I){var tt=1e-6,at=S-R,Z=w-S,O=3*at+3*(I-w)-6*Z,$=6*(Z-at),b=3*at;return Math.abs(O)Ot&&(G.sweepFlag=+!G.sweepFlag),G})}function Z(){return function(O){var $={};for(var b in O)$[b]=O[b];return $}}R.ROUND=function(O){function $(b){return Math.round(b*O)/O}return O===void 0&&(O=1e13),y(O),function(b){return b.x1!==void 0&&(b.x1=$(b.x1)),b.y1!==void 0&&(b.y1=$(b.y1)),b.x2!==void 0&&(b.x2=$(b.x2)),b.y2!==void 0&&(b.y2=$(b.y2)),b.x!==void 0&&(b.x=$(b.x)),b.y!==void 0&&(b.y=$(b.y)),b.rX!==void 0&&(b.rX=$(b.rX)),b.rY!==void 0&&(b.rY=$(b.rY)),b}},R.TO_ABS=S,R.TO_REL=function(){return tt(function(O,$,b){return O.relative||(O.x1!==void 0&&(O.x1-=$),O.y1!==void 0&&(O.y1-=b),O.x2!==void 0&&(O.x2-=$),O.y2!==void 0&&(O.y2-=b),O.x!==void 0&&(O.x-=$),O.y!==void 0&&(O.y-=b),O.relative=!0),O})},R.NORMALIZE_HVZ=function(O,$,b){return O===void 0&&(O=!0),$===void 0&&($=!0),b===void 0&&(b=!0),tt(function(A,H,B,G,Q){if(isNaN(G)&&!(A.type&U.MOVE_TO))throw new Error("path must start with moveto");return $&&A.type&U.HORIZ_LINE_TO&&(A.type=U.LINE_TO,A.y=A.relative?0:B),b&&A.type&U.VERT_LINE_TO&&(A.type=U.LINE_TO,A.x=A.relative?0:H),O&&A.type&U.CLOSE_PATH&&(A.type=U.LINE_TO,A.x=A.relative?G-H:G,A.y=A.relative?Q-B:Q),A.type&U.ARC&&(A.rX===0||A.rY===0)&&(A.type=U.LINE_TO,delete A.rX,delete A.rY,delete A.xRot,delete A.lArcFlag,delete A.sweepFlag),A})},R.NORMALIZE_ST=w,R.QT_TO_C=I,R.INFO=tt,R.SANITIZE=function(O){O===void 0&&(O=0),y(O);var $=NaN,b=NaN,A=NaN,H=NaN;return tt(function(B,G,Q,Y,X){var J=Math.abs,ut=!1,ct=0,vt=0;if(B.type&U.SMOOTH_CURVE_TO&&(ct=isNaN($)?0:G-$,vt=isNaN(b)?0:Q-b),B.type&(U.CURVE_TO|U.SMOOTH_CURVE_TO)?($=B.relative?G+B.x2:B.x2,b=B.relative?Q+B.y2:B.y2):($=NaN,b=NaN),B.type&U.SMOOTH_QUAD_TO?(A=isNaN(A)?G:2*G-A,H=isNaN(H)?Q:2*Q-H):B.type&U.QUAD_TO?(A=B.relative?G+B.x1:B.x1,H=B.relative?Q+B.y1:B.y2):(A=NaN,H=NaN),B.type&U.LINE_COMMANDS||B.type&U.ARC&&(B.rX===0||B.rY===0||!B.lArcFlag)||B.type&U.CURVE_TO||B.type&U.SMOOTH_CURVE_TO||B.type&U.QUAD_TO||B.type&U.SMOOTH_QUAD_TO){var Dt=B.x===void 0?0:B.relative?B.x:B.x-G,Pt=B.y===void 0?0:B.relative?B.y:B.y-Q;ct=isNaN(A)?B.x1===void 0?ct:B.relative?B.x:B.x1-G:A-G,vt=isNaN(H)?B.y1===void 0?vt:B.relative?B.y:B.y1-Q:H-Q;var Ot=B.x2===void 0?0:B.relative?B.x:B.x2-G,jt=B.y2===void 0?0:B.relative?B.y:B.y2-Q;J(Dt)<=O&&J(Pt)<=O&&J(ct)<=O&&J(vt)<=O&&J(Ot)<=O&&J(jt)<=O&&(ut=!0)}return B.type&U.CLOSE_PATH&&J(G-Y)<=O&&J(Q-X)<=O&&(ut=!0),ut?[]:B})},R.MATRIX=at,R.ROTATE=function(O,$,b){$===void 0&&($=0),b===void 0&&(b=0),y(O,$,b);var A=Math.sin(O),H=Math.cos(O);return at(H,A,-A,H,$-$*H+b*A,b-$*A-b*H)},R.TRANSLATE=function(O,$){return $===void 0&&($=0),y(O,$),at(1,0,0,1,O,$)},R.SCALE=function(O,$){return $===void 0&&($=O),y(O,$),at(O,0,0,$,0,0)},R.SKEW_X=function(O){return y(O),at(1,0,Math.atan(O),1,0,0)},R.SKEW_Y=function(O){return y(O),at(1,Math.atan(O),0,1,0,0)},R.X_AXIS_SYMMETRY=function(O){return O===void 0&&(O=0),y(O),at(-1,0,0,1,O,0)},R.Y_AXIS_SYMMETRY=function(O){return O===void 0&&(O=0),y(O),at(1,0,0,-1,0,O)},R.A_TO_C=function(){return tt(function(O,$,b){return U.ARC===O.type?function(A,H,B){var G,Q,Y,X;A.cX||C(A,H,B);for(var J=Math.min(A.phi1,A.phi2),ut=Math.max(A.phi1,A.phi2)-J,ct=Math.ceil(ut/90),vt=new Array(ct),Dt=H,Pt=B,Ot=0;OtH.maxX&&(H.maxX=Tt),TtH.maxY&&(H.maxY=Tt),TtNt&&X(V(G,Y.x1,Y.x2,Y.x,Nt));for(var vt=0,Dt=F(Q,Y.y1,Y.y2,Y.y);vtNt&&J(V(Q,Y.y1,Y.y2,Y.y,Nt))}if(Y.type&U.ARC){X(Y.x),J(Y.y),C(Y,G,Q);for(var Pt=Y.xRot/180*Math.PI,Ot=Math.cos(Pt)*Y.rX,jt=Math.sin(Pt)*Y.rX,Lt=-Math.sin(Pt)*Y.rY,Gt=Math.cos(Pt)*Y.rY,Mt=Y.phi1Y.phi2?[Y.phi2+360,Y.phi1+360]:[Y.phi2,Y.phi1],Vt=Mt[0],Ct=Mt[1],Ft=function($t){var ot=$t[0],pt=$t[1],bt=180*Math.atan2(pt,ot)/Math.PI;return btVt&&NtVt&&NtA)throw new SyntaxError('Expected positive number, got "'+A+'" at index "'+Z+'"')}else if((this.curArgs.length===3||this.curArgs.length===4)&&this.curNumber!=="0"&&this.curNumber!=="1")throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+Z+'"')}this.curArgs.push(A),this.curArgs.length===lt[this.curCommandType]&&(U.HORIZ_LINE_TO===this.curCommandType?at({type:U.HORIZ_LINE_TO,relative:this.curCommandRelative,x:A}):U.VERT_LINE_TO===this.curCommandType?at({type:U.VERT_LINE_TO,relative:this.curCommandRelative,y:A}):this.curCommandType===U.MOVE_TO||this.curCommandType===U.LINE_TO||this.curCommandType===U.SMOOTH_QUAD_TO?(at({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),U.MOVE_TO===this.curCommandType&&(this.curCommandType=U.LINE_TO)):this.curCommandType===U.CURVE_TO?at({type:U.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===U.SMOOTH_CURVE_TO?at({type:U.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===U.QUAD_TO?at({type:U.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===U.ARC&&at({type:U.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!et(O))if(O===","&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if(O!=="+"&&O!=="-"&&O!==".")if(b)this.curNumber=O,this.curNumberHasDecimal=!1;else{if(this.curArgs.length!==0)throw new SyntaxError("Unterminated command at index "+Z+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+O+'" at index '+Z+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,O!=="z"&&O!=="Z")if(O==="h"||O==="H")this.curCommandType=U.HORIZ_LINE_TO,this.curCommandRelative=O==="h";else if(O==="v"||O==="V")this.curCommandType=U.VERT_LINE_TO,this.curCommandRelative=O==="v";else if(O==="m"||O==="M")this.curCommandType=U.MOVE_TO,this.curCommandRelative=O==="m";else if(O==="l"||O==="L")this.curCommandType=U.LINE_TO,this.curCommandRelative=O==="l";else if(O==="c"||O==="C")this.curCommandType=U.CURVE_TO,this.curCommandRelative=O==="c";else if(O==="s"||O==="S")this.curCommandType=U.SMOOTH_CURVE_TO,this.curCommandRelative=O==="s";else if(O==="q"||O==="Q")this.curCommandType=U.QUAD_TO,this.curCommandRelative=O==="q";else if(O==="t"||O==="T")this.curCommandType=U.SMOOTH_QUAD_TO,this.curCommandRelative=O==="t";else{if(O!=="a"&&O!=="A")throw new SyntaxError('Unexpected character "'+O+'" at index '+Z+".");this.curCommandType=U.ARC,this.curCommandRelative=O==="a"}else I.push({type:U.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=O,this.curNumberHasDecimal=O==="."}else this.curNumber+=O,this.curNumberHasDecimal=!0;else this.curNumber+=O;else this.curNumber+=O,this.curNumberHasExp=!0;else this.curNumber+=O,this.curNumberHasExpDigits=this.curNumberHasExp}return I},S.prototype.transform=function(w){return Object.create(this,{parse:{value:function(tt,at){at===void 0&&(at=[]);for(var Z=0,O=Object.getPrototypeOf(this).parse.call(this,tt);Z=0;--St){var yt=this.tryEntries[St],Ht=yt.completion;if(yt.tryLoc==="root")return gt("end");if(yt.tryLoc<=this.prev){var ae=n.call(yt,"catchLoc"),oe=n.call(yt,"finallyLoc");if(ae&&oe){if(this.prev=0;--gt){var St=this.tryEntries[gt];if(St.tryLoc<=this.prev&&n.call(St,"finallyLoc")&&this.prev=0;--ht){var gt=this.tryEntries[ht];if(gt.finallyLoc===q)return this.complete(gt.completion,gt.afterLoc),wt(gt),c}},catch:function(q){for(var ht=this.tryEntries.length-1;ht>=0;--ht){var gt=this.tryEntries[ht];if(gt.tryLoc===q){var St=gt.completion;if(St.type==="throw"){var yt=St.arg;wt(gt)}return yt}}throw new Error("illegal catch attempt")},delegateYield:function(q,ht,gt){return this.delegate={iterator:Qt(q),resultName:ht,nextLoc:gt},this.method==="next"&&(this.arg=void 0),c}},v}function Ft(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},f=v.DOMParser,n={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:f,createCanvas:function(t,i){return new OffscreenCanvas(t,i)},createImage:function(t){return vt()(Ct().mark(function i(){var r,o,s;return Ct().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,fetch(t);case 2:return r=c.sent,c.next=5,r.blob();case 5:return o=c.sent,c.next=8,createImageBitmap(o);case 8:return s=c.sent,c.abrupt("return",s);case 10:case"end":return c.stop()}},i)}))()}};return(typeof DOMParser!="undefined"||typeof f=="undefined")&&Reflect.deleteProperty(n,"DOMParser"),n}function zt(v){var f=v.DOMParser,n=v.canvas,a=v.fetch;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:f,fetch:a,createCanvas:n.createCanvas,createImage:n.loadImage}}var Yt=Object.freeze({__proto__:null,offscreen:Ft,node:zt});function Ut(v){return v.replace(/(?!\u3000)\s+/gm," ")}function Jt(v){return v.replace(/^[\n \t]+/,"")}function Nt(v){return v.replace(/[\n \t]+$/,"")}function Tt(v){var f=(v||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[];return f.map(parseFloat)}var $t=/^[A-Z-]+$/;function ot(v){return $t.test(v)?v.toLowerCase():v}function pt(v){var f=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(v)||[];return f[2]||f[3]||f[4]}function bt(v){if(!v.startsWith("rgb"))return v;var f=3,n=v.replace(/\d+(\.\d+)?/g,function(a,t){return f--&&t?String(Math.round(parseFloat(a))):a});return n}var Rt=/(\[[^\]]+\])/g,It=/(#[^\s+>~.[:]+)/g,re=/(\.[^\s+>~.[:]+)/g,se=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,le=/(:[\w-]+\([^)]*\))/gi,qt=/(:[^\s+>~.[:]+)/g,fe=/([^\s+>~.[:]+)/g;function ee(v,f){var n=f.exec(v);return n?[v.replace(f," "),n.length]:[v,0]}function he(v){var f=[0,0,0],n=v.replace(/:not\(([^)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),a=0,t=ee(n,Rt),i=Object(ut.a)(t,2);n=i[0],a=i[1],f[1]+=a;var r=ee(n,It),o=Object(ut.a)(r,2);n=o[0],a=o[1],f[0]+=a;var s=ee(n,re),l=Object(ut.a)(s,2);n=l[0],a=l[1],f[1]+=a;var c=ee(n,se),p=Object(ut.a)(c,2);n=p[0],a=p[1],f[2]+=a;var E=ee(n,le),D=Object(ut.a)(E,2);n=D[0],a=D[1],f[1]+=a;var K=ee(n,qt),_=Object(ut.a)(K,2);n=_[0],a=_[1],f[1]+=a,n=n.replace(/[*\s+>~]/g," ").replace(/[#.]/g," ");var it=ee(n,fe),rt=Object(ut.a)(it,2);return n=rt[0],a=rt[1],f[2]+=a,f.join("")}var kt=1e-8;function Te(v){return Math.sqrt(Math.pow(v[0],2)+Math.pow(v[1],2))}function pe(v,f){return(v[0]*f[0]+v[1]*f[1])/(Te(v)*Te(f))}function Pe(v,f){return(v[0]*f[1]0&&arguments[0]!==void 0?arguments[0]:" ",a=this.document,t=this.name;return Ut(this.getString()).trim().split(n).map(function(i){return new v(a,t,i)})}},{key:"hasValue",value:function(n){var a=this.value;return a!==null&&a!==""&&(n||a!==0)&&typeof a!="undefined"}},{key:"isString",value:function(n){var a=this.value,t=typeof a=="string";return!t||!n?t:n.test(a)}},{key:"isUrlDefinition",value:function(){return this.isString(/^url\(/)}},{key:"isPixels",value:function(){if(!this.hasValue())return!1;var n=this.getString();switch(!0){case n.endsWith("px"):case/^[0-9]+$/.test(n):return!0;default:return!1}}},{key:"setValue",value:function(n){return this.value=n,this}},{key:"getValue",value:function(n){return typeof n=="undefined"||this.hasValue()?this.value:n}},{key:"getNumber",value:function(n){if(!this.hasValue())return typeof n=="undefined"?0:parseFloat(n);var a=this.value,t=parseFloat(a);return this.isString(/%$/)&&(t/=100),t}},{key:"getString",value:function(n){return typeof n=="undefined"||this.hasValue()?typeof this.value=="undefined"?"":String(this.value):String(n)}},{key:"getColor",value:function(n){var a=this.getString(n);return this.isNormalizedColor||(this.isNormalizedColor=!0,a=bt(a),this.value=a),a}},{key:"getDpi",value:function(){return 96}},{key:"getRem",value:function(){return this.document.rootEmSize}},{key:"getEm",value:function(){return this.document.emSize}},{key:"getUnits",value:function(){return this.getString().replace(/[0-9.-]/g,"")}},{key:"getPixels",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!this.hasValue())return 0;var t=typeof n=="boolean"?[void 0,n]:[n],i=Object(ut.a)(t,2),r=i[0],o=i[1],s=this.document.screen.viewPort;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(s.computeSize("x"),s.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(s.computeSize("x"),s.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*s.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*s.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return this.getNumber()*15;case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case(this.isString(/%$/)&&o):return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*s.computeSize(r);default:{var l=this.getNumber();return a&&l<1?l*s.computeSize(r):l}}}},{key:"getMilliseconds",value:function(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():this.getNumber()*1e3:0}},{key:"getRadians",value:function(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}},{key:"getDefinition",value:function(){var n=this.getString(),a=/#([^)'"]+)/.exec(n);return a&&(a=a[1]),a||(a=n),this.document.definitions[a]}},{key:"getFillStyleDefinition",value:function(n,a){var t=this.getDefinition();if(!t)return null;if(typeof t.createGradient=="function")return t.createGradient(this.document.ctx,n,a);if(typeof t.createPattern=="function"){if(t.getHrefAttribute().hasValue()){var i=t.getAttribute("patternTransform");t=t.getHrefAttribute().getDefinition(),i.hasValue()&&t.getAttribute("patternTransform",!0).setValue(i.value)}return t.createPattern(this.document.ctx,n,a)}return null}},{key:"getTextBaseline",value:function(){return this.hasValue()?v.textBaselineMapping[this.getString()]:null}},{key:"addOpacity",value:function(n){for(var a=this.getColor(),t=a.length,i=0,r=0;r1&&arguments[1]!==void 0?arguments[1]:0,t=Tt(n),i=Object(ut.a)(t,2),r=i[0],o=r===void 0?a:r,s=i[1],l=s===void 0?a:s;return new v(o,l)}},{key:"parseScale",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,t=Tt(n),i=Object(ut.a)(t,2),r=i[0],o=r===void 0?a:r,s=i[1],l=s===void 0?o:s;return new v(o,l)}},{key:"parsePath",value:function(n){for(var a=Tt(n),t=a.length,i=[],r=0;r0}},{key:"runEvents",value:function(){if(!this.working)return;var n=this.screen,a=this.events,t=this.eventElements,i=n.ctx.canvas.style;i&&(i.cursor=""),a.forEach(function(r,o){for(var s=r.run,l=t[o];l;)s(l),l=l.parent}),this.events=[],this.eventElements=[]}},{key:"checkPath",value:function(n,a){if(!this.working||!a)return;var t=this.events,i=this.eventElements;t.forEach(function(r,o){var s=r.x,l=r.y;!i[o]&&a.isPointInPath&&a.isPointInPath(s,l)&&(i[o]=n)})}},{key:"checkBoundingBox",value:function(n,a){if(!this.working||!a)return;var t=this.events,i=this.eventElements;t.forEach(function(r,o){var s=r.x,l=r.y;!i[o]&&a.isPointInBox(s,l)&&(i[o]=n)})}},{key:"mapXY",value:function(n,a){for(var t=this.screen,i=t.window,r=t.ctx,o=new Xt(n,a),s=r.canvas;s;)o.x-=s.offsetLeft,o.y-=s.offsetTop,s=s.offsetParent;return i.scrollX&&(o.x+=i.scrollX),i.scrollY&&(o.y+=i.scrollY),o}},{key:"onClick",value:function(n){var a=this.mapXY(n.clientX,n.clientY),t=a.x,i=a.y;this.events.push({type:"onclick",x:t,y:i,run:function(o){o.onClick&&o.onClick()}})}},{key:"onMouseMove",value:function(n){var a=this.mapXY(n.clientX,n.clientY),t=a.x,i=a.y;this.events.push({type:"onmousemove",x:t,y:i,run:function(o){o.onMouseMove&&o.onMouseMove()}})}}]),v}(),Ce=typeof window!="undefined"?window:null,Re=typeof fetch!="undefined"?fetch.bind(void 0):null,de=function(){function v(f){Object(X.a)(this,v);var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.fetch,t=a===void 0?Re:a,i=n.window,r=i===void 0?Ce:i;this.ctx=f,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new Me,this.mouse=new je(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=r,this.fetch=t}return Object(J.a)(v,[{key:"wait",value:function(n){this.waits.push(n)}},{key:"ready",value:function(){return this.readyPromise?this.readyPromise:Promise.resolve()}},{key:"isReady",value:function(){if(this.isReadyLock)return!0;var n=this.waits.every(function(a){return a()});return n&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=n,n}},{key:"setDefaults",value:function(n){n.strokeStyle="rgba(0,0,0,0)",n.lineCap="butt",n.lineJoin="miter",n.miterLimit=4}},{key:"setViewBox",value:function(n){var a=n.document,t=n.ctx,i=n.aspectRatio,r=n.width,o=n.desiredWidth,s=n.height,l=n.desiredHeight,c=n.minX,p=c===void 0?0:c,E=n.minY,D=E===void 0?0:E,K=n.refX,_=n.refY,it=n.clip,rt=it===void 0?!1:it,xt=n.clipX,dt=xt===void 0?0:xt,ft=n.clipY,Et=ft===void 0?0:ft,wt=Ut(i).replace(/^defer\s/,""),Bt=wt.split(" "),Qt=Object(ut.a)(Bt,2),ie=Qt[0],st=Qt[1],q=ie||"xMidYMid",ht=st||"meet",gt=r/o,St=s/l,yt=Math.min(gt,St),Ht=Math.max(gt,St),ae=o,oe=l;ht==="meet"&&(ae*=yt,oe*=yt),ht==="slice"&&(ae*=Ht,oe*=Ht);var Wt=new mt(a,"refX",K),te=new mt(a,"refY",_),ue=Wt.hasValue()&&te.hasValue();if(ue&&t.translate(-yt*Wt.getPixels("x"),-yt*te.getPixels("y")),rt){var Be=yt*dt,Fe=yt*Et;t.beginPath(),t.moveTo(Be,Fe),t.lineTo(r,Fe),t.lineTo(r,s),t.lineTo(Be,s),t.closePath(),t.clip()}if(!ue){var Ue=ht==="meet"&&yt===St,be=ht==="slice"&&Ht===St,$r=ht==="meet"&&yt===gt,Yr=ht==="slice"&&Ht===gt;q.startsWith("xMid")&&(Ue||be)&&t.translate(r/2-ae/2,0),q.endsWith("YMid")&&($r||Yr)&&t.translate(0,s/2-oe/2),q.startsWith("xMax")&&(Ue||be)&&t.translate(r-ae,0),q.endsWith("YMax")&&($r||Yr)&&t.translate(0,s-oe)}switch(!0){case q==="none":t.scale(gt,St);break;case ht==="meet":t.scale(yt,yt);break;case ht==="slice":t.scale(Ht,Ht);break}t.translate(-p,-D)}},{key:"start",value:function(n){var a=this,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=t.enableRedraw,r=i===void 0?!1:i,o=t.ignoreMouse,s=o===void 0?!1:o,l=t.ignoreAnimation,c=l===void 0?!1:l,p=t.ignoreDimensions,E=p===void 0?!1:p,D=t.ignoreClear,K=D===void 0?!1:D,_=t.forceRedraw,it=t.scaleWidth,rt=t.scaleHeight,xt=t.offsetX,dt=t.offsetY,ft=this.FRAMERATE,Et=this.mouse,wt=1e3/ft;if(this.frameDuration=wt,this.readyPromise=new Promise(function(q){a.resolveReady=q}),this.isReady()&&this.render(n,E,K,it,rt,xt,dt),!r)return;var Bt=Date.now(),Qt=Bt,ie=0,st=function q(){Bt=Date.now(),ie=Bt-Qt,ie>=wt&&(Qt=Bt-ie%wt,a.shouldUpdate(c,_)&&(a.render(n,E,K,it,rt,xt,dt),Et.runEvents())),a.intervalId=jt()(q)};s||Et.start(),this.intervalId=jt()(st)}},{key:"stop",value:function(){this.intervalId&&(jt.a.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}},{key:"shouldUpdate",value:function(n,a){if(!n){var t=this.frameDuration,i=this.animations.reduce(function(r,o){return o.update(t)||r},!1);if(i)return!0}return typeof a=="function"&&a()||!this.isReadyLock&&this.isReady()?!0:!!this.mouse.hasEvents()}},{key:"render",value:function(n,a,t,i,r,o,s){var l=this.CLIENT_WIDTH,c=this.CLIENT_HEIGHT,p=this.viewPort,E=this.ctx,D=this.isFirstRender,K=E.canvas;p.clear(),K.width&&K.height?p.setCurrent(K.width,K.height):p.setCurrent(l,c);var _=n.getStyle("width"),it=n.getStyle("height");!a&&(D||typeof i!="number"&&typeof r!="number")&&(_.hasValue()&&(K.width=_.getPixels("x"),K.style&&(K.style.width="".concat(K.width,"px"))),it.hasValue()&&(K.height=it.getPixels("y"),K.style&&(K.style.height="".concat(K.height,"px"))));var rt=K.clientWidth||K.width,xt=K.clientHeight||K.height;if(a&&_.hasValue()&&it.hasValue()&&(rt=_.getPixels("x"),xt=it.getPixels("y")),p.setCurrent(rt,xt),typeof o=="number"&&n.getAttribute("x",!0).setValue(o),typeof s=="number"&&n.getAttribute("y",!0).setValue(s),typeof i=="number"||typeof r=="number"){var dt=Tt(n.getAttribute("viewBox").getString()),ft=0,Et=0;if(typeof i=="number"){var wt=n.getStyle("width");wt.hasValue()?ft=wt.getPixels("x")/i:isNaN(dt[2])||(ft=dt[2]/i)}if(typeof r=="number"){var Bt=n.getStyle("height");Bt.hasValue()?Et=Bt.getPixels("y")/r:isNaN(dt[3])||(Et=dt[3]/r)}ft||(ft=Et),Et||(Et=ft),n.getAttribute("width",!0).setValue(i),n.getAttribute("height",!0).setValue(r);var Qt=n.getStyle("transform",!0,!0);Qt.setValue("".concat(Qt.getString()," scale(").concat(1/ft,", ").concat(1/Et,")"))}t||E.clearRect(0,0,rt,xt),n.render(E),D&&(this.isFirstRender=!1)}}]),v}();de.defaultWindow=Ce,de.defaultFetch=Re;var ne=de.defaultFetch,Kr=typeof DOMParser!="undefined"?DOMParser:null,We=function(){function v(){Object(X.a)(this,v);var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=f.fetch,a=n===void 0?ne:n,t=f.DOMParser,i=t===void 0?Kr:t;this.fetch=a,this.DOMParser=i}return Object(J.a)(v,[{key:"parse",value:function(n){var a=this;return vt()(Ct().mark(function t(){return Ct().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(!n.startsWith("<")){r.next=2;break}return r.abrupt("return",a.parseFromString(n));case 2:return r.abrupt("return",a.load(n));case 3:case"end":return r.stop()}},t)}))()}},{key:"parseFromString",value:function(n){var a=new this.DOMParser;try{return this.checkDocument(a.parseFromString(n,"image/svg+xml"))}catch(t){return this.checkDocument(a.parseFromString(n,"text/xml"))}}},{key:"checkDocument",value:function(n){var a=n.getElementsByTagName("parsererror")[0];if(a)throw new Error(a.textContent);return n}},{key:"load",value:function(n){var a=this;return vt()(Ct().mark(function t(){var i,r;return Ct().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,a.fetch(n);case 2:return i=s.sent,s.next=5,i.text();case 5:return r=s.sent,s.abrupt("return",a.parseFromString(r));case 7:case"end":return s.stop()}},t)}))()}}]),v}(),ar=function(){function v(f,n){Object(X.a)(this,v),this.type="translate",this.point=null,this.point=Xt.parse(n)}return Object(J.a)(v,[{key:"apply",value:function(n){var a=this.point,t=a.x,i=a.y;n.translate(t||0,i||0)}},{key:"unapply",value:function(n){var a=this.point,t=a.x,i=a.y;n.translate(-1*t||0,-1*i||0)}},{key:"applyToPoint",value:function(n){var a=this.point,t=a.x,i=a.y;n.applyTransform([1,0,0,1,t||0,i||0])}}]),v}(),ir=function(){function v(f,n,a){Object(X.a)(this,v),this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var t=Tt(n);this.angle=new mt(f,"angle",t[0]),this.originX=a[0],this.originY=a[1],this.cx=t[1]||0,this.cy=t[2]||0}return Object(J.a)(v,[{key:"apply",value:function(n){var a=this.cx,t=this.cy,i=this.originX,r=this.originY,o=this.angle,s=a+i.getPixels("x"),l=t+r.getPixels("y");n.translate(s,l),n.rotate(o.getRadians()),n.translate(-s,-l)}},{key:"unapply",value:function(n){var a=this.cx,t=this.cy,i=this.originX,r=this.originY,o=this.angle,s=a+i.getPixels("x"),l=t+r.getPixels("y");n.translate(s,l),n.rotate(-1*o.getRadians()),n.translate(-s,-l)}},{key:"applyToPoint",value:function(n){var a=this.cx,t=this.cy,i=this.angle,r=i.getRadians();n.applyTransform([1,0,0,1,a||0,t||0]),n.applyTransform([Math.cos(r),Math.sin(r),-Math.sin(r),Math.cos(r),0,0]),n.applyTransform([1,0,0,1,-a||0,-t||0])}}]),v}(),or=function(){function v(f,n,a){Object(X.a)(this,v),this.type="scale",this.scale=null,this.originX=null,this.originY=null;var t=Xt.parseScale(n);(t.x===0||t.y===0)&&(t.x=kt,t.y=kt),this.scale=t,this.originX=a[0],this.originY=a[1]}return Object(J.a)(v,[{key:"apply",value:function(n){var a=this.scale,t=a.x,i=a.y,r=this.originX,o=this.originY,s=r.getPixels("x"),l=o.getPixels("y");n.translate(s,l),n.scale(t,i||t),n.translate(-s,-l)}},{key:"unapply",value:function(n){var a=this.scale,t=a.x,i=a.y,r=this.originX,o=this.originY,s=r.getPixels("x"),l=o.getPixels("y");n.translate(s,l),n.scale(1/t,1/i||t),n.translate(-s,-l)}},{key:"applyToPoint",value:function(n){var a=this.scale,t=a.x,i=a.y;n.applyTransform([t||0,0,0,i||0,0,0])}}]),v}(),Ke=function(){function v(f,n,a){Object(X.a)(this,v),this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=Tt(n),this.originX=a[0],this.originY=a[1]}return Object(J.a)(v,[{key:"apply",value:function(n){var a=this.originX,t=this.originY,i=this.matrix,r=a.getPixels("x"),o=t.getPixels("y");n.translate(r,o),n.transform(i[0],i[1],i[2],i[3],i[4],i[5]),n.translate(-r,-o)}},{key:"unapply",value:function(n){var a=this.originX,t=this.originY,i=this.matrix,r=i[0],o=i[2],s=i[4],l=i[1],c=i[3],p=i[5],E=0,D=0,K=1,_=1/(r*(c*K-p*D)-o*(l*K-p*E)+s*(l*D-c*E)),it=a.getPixels("x"),rt=t.getPixels("y");n.translate(it,rt),n.transform(_*(c*K-p*D),_*(p*E-l*K),_*(s*D-o*K),_*(r*K-s*E),_*(o*p-s*c),_*(s*l-r*p)),n.translate(-it,-rt)}},{key:"applyToPoint",value:function(n){n.applyTransform(this.matrix)}}]),v}(),ke=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(a,t,i){var r;return Object(X.a)(this,n),r=f.call(this,a,t,i),r.type="skew",r.angle=null,r.angle=new mt(a,"angle",t),r}return Object(J.a)(n)}(Ke),sr=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(a,t,i){var r;return Object(X.a)(this,n),r=f.call(this,a,t,i),r.type="skewX",r.matrix=[1,0,Math.tan(r.angle.getRadians()),1,0,0],r}return Object(J.a)(n)}(ke),lr=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(a,t,i){var r;return Object(X.a)(this,n),r=f.call(this,a,t,i),r.type="skewY",r.matrix=[1,Math.tan(r.angle.getRadians()),0,1,0,0],r}return Object(J.a)(n)}(ke);function kr(v){return Ut(v).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}function Xr(v){var f=v.split("("),n=Object(ut.a)(f,2),a=n[0],t=n[1];return[a.trim(),t.trim().replace(")","")]}var we=function(){function v(f,n,a){var t=this;Object(X.a)(this,v),this.document=f,this.transforms=[];var i=kr(n);i.forEach(function(r){if(r==="none")return;var o=Xr(r),s=Object(ut.a)(o,2),l=s[0],c=s[1],p=v.transformTypes[l];typeof p!="undefined"&&t.transforms.push(new p(t.document,c,a))})}return Object(J.a)(v,[{key:"apply",value:function(n){for(var a=this.transforms,t=a.length,i=0;i=0;i--)a[i].unapply(n)}},{key:"applyToPoint",value:function(n){for(var a=this.transforms,t=a.length,i=0;i2&&arguments[2]!==void 0?arguments[2]:!1;if(this.document=f,this.node=n,this.captureTextNodes=t,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],!n||n.nodeType!==1)return;if(Array.from(n.attributes).forEach(function(s){var l=ot(s.nodeName);a.attributes[l]=new mt(f,l,s.value)}),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var i=this.getAttribute("style").getString().split(";").map(function(s){return s.trim()});i.forEach(function(s){if(!s)return;var l=s.split(":").map(function(D){return D.trim()}),c=Object(ut.a)(l,2),p=c[0],E=c[1];a.styles[p]=new mt(f,p,E)})}var r=f.definitions,o=this.getAttribute("id");o.hasValue()&&(r[o.getString()]||(r[o.getString()]=this)),Array.from(n.childNodes).forEach(function(s){if(s.nodeType===1)a.addChild(s);else if(t&&(s.nodeType===3||s.nodeType===4)){var l=f.createTextNode(s);l.getText().length>0&&a.addChild(l)}})}return Object(J.a)(v,[{key:"getAttribute",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=this.attributes[n];if(!t&&a){var i=new mt(this.document,n,"");return this.attributes[n]=i,i}return t||mt.empty(this.document)}},{key:"getHrefAttribute",value:function(){for(var n in this.attributes)if(n==="href"||n.endsWith(":href"))return this.attributes[n];return mt.empty(this.document)}},{key:"getStyle",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=this.styles[n];if(i)return i;var r=this.getAttribute(n);if(r!=null&&r.hasValue())return this.styles[n]=r,r;if(!t){var o=this.parent;if(o){var s=o.getStyle(n);if(s!=null&&s.hasValue())return s}}if(a){var l=new mt(this.document,n,"");return this.styles[n]=l,l}return i||mt.empty(this.document)}},{key:"render",value:function(n){if(this.getStyle("display").getString()==="none"||this.getStyle("visibility").getString()==="hidden")return;if(n.save(),this.getStyle("mask").hasValue()){var a=this.getStyle("mask").getDefinition();a&&(this.applyEffects(n),a.apply(n,this))}else if(this.getStyle("filter").getValue("none")!=="none"){var t=this.getStyle("filter").getDefinition();t&&(this.applyEffects(n),t.apply(n,this))}else this.setContext(n),this.renderChildren(n),this.clearContext(n);n.restore()}},{key:"setContext",value:function(n){}},{key:"applyEffects",value:function(n){var a=we.fromElement(this.document,this);a&&a.apply(n);var t=this.getStyle("clip-path",!1,!0);if(t.hasValue()){var i=t.getDefinition();i&&i.apply(n)}}},{key:"clearContext",value:function(n){}},{key:"renderChildren",value:function(n){this.children.forEach(function(a){a.render(n)})}},{key:"addChild",value:function(n){var a=n instanceof v?n:this.document.createElement(n);a.parent=this,v.ignoreChildTypes.includes(a.type)||this.children.push(a)}},{key:"matchesSelector",value:function(n){var a,t=this.node;if(typeof t.matches=="function")return t.matches(n);var i=(a=t.getAttribute)===null||a===void 0?void 0:a.call(t,"class");return!i||i===""?!1:i.split(" ").some(function(r){return".".concat(r)===n})}},{key:"addStylesFromStyleDefinition",value:function(){var n=this.document,a=n.styles,t=n.stylesSpecificity;for(var i in a)if(!i.startsWith("@")&&this.matchesSelector(i)){var r=a[i],o=t[i];if(r)for(var s in r){var l=this.stylesSpecificity[s];typeof l=="undefined"&&(l="000"),o>=l&&(this.styles[s]=r[s],this.stylesSpecificity[s]=o)}}}},{key:"removeStyles",value:function(n,a){var t=a.reduce(function(i,r){var o=n.getStyle(r);if(!o.hasValue())return i;var s=o.getString();return o.setValue(""),[].concat(Object(G.a)(i),[[r,s]])},[]);return t}},{key:"restoreStyles",value:function(n,a){a.forEach(function(t){var i=Object(ut.a)(t,2),r=i[0],o=i[1];n.getStyle(r,!0).setValue(o)})}},{key:"isFirstChild",value:function(){var n;return((n=this.parent)===null||n===void 0?void 0:n.children.indexOf(this))===0}}]),v}();Kt.ignoreChildTypes=["title"];var ur=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(a,t,i){return Object(X.a)(this,n),f.call(this,a,t,i)}return Object(J.a)(n)}(Kt);function Qr(v){var f=v.trim();return/^('|")/.test(f)?f:'"'.concat(f,'"')}function Jr(v){return typeof u=="undefined"?v:v.trim().split(",").map(Qr).join(",")}function Zr(v){if(!v)return"";var f=v.trim().toLowerCase();switch(f){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return f;default:return/^oblique\s+(-|)\d+deg$/.test(f)?f:""}}function qr(v){if(!v)return"";var f=v.trim().toLowerCase();switch(f){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return f;default:return/^[\d.]+$/.test(f)?f:""}}var ve=function(){function v(f,n,a,t,i,r){Object(X.a)(this,v);var o=r?typeof r=="string"?v.parse(r):r:{};this.fontFamily=i||o.fontFamily,this.fontSize=t||o.fontSize,this.fontStyle=f||o.fontStyle,this.fontWeight=a||o.fontWeight,this.fontVariant=n||o.fontVariant}return Object(J.a)(v,[{key:"toString",value:function(){return[Zr(this.fontStyle),this.fontVariant,qr(this.fontWeight),this.fontSize,Jr(this.fontFamily)].join(" ").trim()}}],[{key:"parse",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",a=arguments.length>1?arguments[1]:void 0,t="",i="",r="",o="",s="",l=Ut(n).trim().split(" "),c={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return l.forEach(function(p){switch(!0){case(!c.fontStyle&&v.styles.includes(p)):p!=="inherit"&&(t=p),c.fontStyle=!0;break;case(!c.fontVariant&&v.variants.includes(p)):p!=="inherit"&&(i=p),c.fontStyle=!0,c.fontVariant=!0;break;case(!c.fontWeight&&v.weights.includes(p)):p!=="inherit"&&(r=p),c.fontStyle=!0,c.fontVariant=!0,c.fontWeight=!0;break;case!c.fontSize:if(p!=="inherit"){var E=p.split("/"),D=Object(ut.a)(E,1);o=D[0]}c.fontStyle=!0,c.fontVariant=!0,c.fontWeight=!0,c.fontSize=!0;break;default:p!=="inherit"&&(s+=p)}}),new v(t,i,r,o,s,a)}}]),v}();ve.styles="normal|italic|oblique|inherit",ve.variants="normal|small-caps|inherit",ve.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";var ce=function(){function v(){Object(X.a)(this,v);var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Number.NaN,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.NaN,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Number.NaN,t=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Number.NaN;this.x1=f,this.y1=n,this.x2=a,this.y2=t,this.addPoint(f,n),this.addPoint(a,t)}return Object(J.a)(v,[{key:"x",get:function(){return this.x1}},{key:"y",get:function(){return this.y1}},{key:"width",get:function(){return this.x2-this.x1}},{key:"height",get:function(){return this.y2-this.y1}},{key:"addPoint",value:function(n,a){typeof n!="undefined"&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=n,this.x2=n),nthis.x2&&(this.x2=n)),typeof a!="undefined"&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=a,this.y2=a),athis.y2&&(this.y2=a))}},{key:"addX",value:function(n){this.addPoint(n,null)}},{key:"addY",value:function(n){this.addPoint(null,n)}},{key:"addBoundingBox",value:function(n){if(!n)return;var a=n.x1,t=n.y1,i=n.x2,r=n.y2;this.addPoint(a,t),this.addPoint(i,r)}},{key:"sumCubic",value:function(n,a,t,i,r){return Math.pow(1-n,3)*a+3*Math.pow(1-n,2)*n*t+3*(1-n)*Math.pow(n,2)*i+Math.pow(n,3)*r}},{key:"bezierCurveAdd",value:function(n,a,t,i,r){var o=6*a-12*t+6*i,s=-3*a+9*t-9*i+3*r,l=3*t-3*a;if(s===0){if(o===0)return;var c=-l/o;0=i.length-1}},{key:"next",value:function(){var t=this.commands[++this.i];return this.previousCommand=this.command,this.command=t,t}},{key:"getPoint",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"x",i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"y",r=new Xt(this.command[t],this.command[i]);return this.makeAbsolute(r)}},{key:"getAsControlPoint",value:function(t,i){var r=this.getPoint(t,i);return this.control=r,r}},{key:"getAsCurrentPoint",value:function(t,i){var r=this.getPoint(t,i);return this.current=r,r}},{key:"getReflectedControlPoint",value:function(){var t=this.previousCommand.type;if(t!==Mt.a.CURVE_TO&&t!==Mt.a.SMOOTH_CURVE_TO&&t!==Mt.a.QUAD_TO&&t!==Mt.a.SMOOTH_QUAD_TO)return this.current;var i=this.current,r=i.x,o=i.y,s=this.control,l=s.x,c=s.y,p=new Xt(2*r-l,2*o-c);return p}},{key:"makeAbsolute",value:function(t){if(this.command.relative){var i=this.current,r=i.x,o=i.y;t.x+=r,t.y+=o}return t}},{key:"addMarker",value:function(t,i,r){var o=this.points,s=this.angles;r&&s.length>0&&!s[s.length-1]&&(s[s.length-1]=o[o.length-1].angleTo(r)),this.addMarkerAngle(t,i?i.angleTo(t):null)}},{key:"addMarkerAngle",value:function(t,i){this.points.push(t),this.angles.push(i)}},{key:"getMarkerPoints",value:function(){return this.points}},{key:"getMarkerAngles",value:function(){for(var t=this.angles,i=t.length,r=0;r1&&arguments[1]!==void 0?arguments[1]:!1;if(!i){var r=this.getStyle("fill"),o=this.getStyle("fill-opacity"),s=this.getStyle("stroke"),l=this.getStyle("stroke-opacity");if(r.isUrlDefinition()){var c=r.getFillStyleDefinition(this,o);c&&(t.fillStyle=c)}else if(r.hasValue()){r.getString()==="currentColor"&&r.setValue(this.getStyle("color").getColor());var p=r.getColor();p!=="inherit"&&(t.fillStyle=p==="none"?"rgba(0,0,0,0)":p)}if(o.hasValue()){var E=new mt(this.document,"fill",t.fillStyle).addOpacity(o).getColor();t.fillStyle=E}if(s.isUrlDefinition()){var D=s.getFillStyleDefinition(this,l);D&&(t.strokeStyle=D)}else if(s.hasValue()){s.getString()==="currentColor"&&s.setValue(this.getStyle("color").getColor());var K=s.getString();K!=="inherit"&&(t.strokeStyle=K==="none"?"rgba(0,0,0,0)":K)}if(l.hasValue()){var _=new mt(this.document,"stroke",t.strokeStyle).addOpacity(l).getString();t.strokeStyle=_}var it=this.getStyle("stroke-width");if(it.hasValue()){var rt=it.getPixels();t.lineWidth=rt||kt}var xt=this.getStyle("stroke-linecap"),dt=this.getStyle("stroke-linejoin"),ft=this.getStyle("stroke-miterlimit"),Et=this.getStyle("stroke-dasharray"),wt=this.getStyle("stroke-dashoffset");if(xt.hasValue()&&(t.lineCap=xt.getString()),dt.hasValue()&&(t.lineJoin=dt.getString()),ft.hasValue()&&(t.miterLimit=ft.getNumber()),Et.hasValue()&&Et.getString()!=="none"){var Bt=Tt(Et.getString());typeof t.setLineDash!="undefined"?t.setLineDash(Bt):typeof t.webkitLineDash!="undefined"?t.webkitLineDash=Bt:typeof t.mozDash!="undefined"&&!(Bt.length===1&&Bt[0]===0)&&(t.mozDash=Bt);var Qt=wt.getPixels();typeof t.lineDashOffset!="undefined"?t.lineDashOffset=Qt:typeof t.webkitLineDashOffset!="undefined"?t.webkitLineDashOffset=Qt:typeof t.mozDashOffset!="undefined"&&(t.mozDashOffset=Qt)}}if(this.modifiedEmSizeStack=!1,typeof t.font!="undefined"){var ie=this.getStyle("font"),st=this.getStyle("font-style"),q=this.getStyle("font-variant"),ht=this.getStyle("font-weight"),gt=this.getStyle("font-size"),St=this.getStyle("font-family"),yt=new ve(st.getString(),q.getString(),ht.getString(),gt.hasValue()?"".concat(gt.getPixels(!0),"px"):"",St.getString(),ve.parse(ie.getString(),t.font));st.setValue(yt.fontStyle),q.setValue(yt.fontVariant),ht.setValue(yt.fontWeight),gt.setValue(yt.fontSize),St.setValue(yt.fontFamily),t.font=yt.toString(),gt.isPixels()&&(this.document.emSize=gt.getPixels(),this.modifiedEmSizeStack=!0)}i||(this.applyEffects(t),t.globalAlpha=this.calculateOpacity())}},{key:"clearContext",value:function(t){Object(H.a)(Object(B.a)(n.prototype),"clearContext",this).call(this,t),this.modifiedEmSizeStack&&this.document.popEmSize()}}]),n}(Kt),_t=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(a,t,i){var r;return Object(X.a)(this,n),r=f.call(this,a,t,i),r.type="path",r.pathParser=null,r.pathParser=new At(r.getAttribute("d").getString()),r}return Object(J.a)(n,[{key:"path",value:function(t){var i=this.pathParser,r=new ce;for(i.reset(),t&&t.beginPath();!i.isEnd();)switch(i.next().type){case At.MOVE_TO:this.pathM(t,r);break;case At.LINE_TO:this.pathL(t,r);break;case At.HORIZ_LINE_TO:this.pathH(t,r);break;case At.VERT_LINE_TO:this.pathV(t,r);break;case At.CURVE_TO:this.pathC(t,r);break;case At.SMOOTH_CURVE_TO:this.pathS(t,r);break;case At.QUAD_TO:this.pathQ(t,r);break;case At.SMOOTH_QUAD_TO:this.pathT(t,r);break;case At.ARC:this.pathA(t,r);break;case At.CLOSE_PATH:this.pathZ(t,r);break}return r}},{key:"getBoundingBox",value:function(t){return this.path()}},{key:"getMarkers",value:function(){var t=this.pathParser,i=t.getMarkerPoints(),r=t.getMarkerAngles(),o=i.map(function(s,l){return[s,r[l]]});return o}},{key:"renderChildren",value:function(t){this.path(t),this.document.screen.mouse.checkPath(this,t);var i=this.getStyle("fill-rule");t.fillStyle!==""&&(i.getString("inherit")!=="inherit"?t.fill(i.getString()):t.fill()),t.strokeStyle!==""&&(this.getAttribute("vector-effect").getString()==="non-scaling-stroke"?(t.save(),t.setTransform(1,0,0,1,0,0),t.stroke(),t.restore()):t.stroke());var r=this.getMarkers();if(r){var o=r.length-1,s=this.getStyle("marker-start"),l=this.getStyle("marker-mid"),c=this.getStyle("marker-end");if(s.isUrlDefinition()){var p=s.getDefinition(),E=Object(ut.a)(r[0],2),D=E[0],K=E[1];p.render(t,D,K)}if(l.isUrlDefinition())for(var _=l.getDefinition(),it=1;itc?l:c,ft=l>c?1:l/c,Et=l>c?c/l:1;t.translate(D.x,D.y),t.rotate(E),t.scale(ft,Et),t.arc(0,0,dt,K,K+_,Boolean(1-p)),t.scale(1/ft,1/Et),t.rotate(-E),t.translate(-D.x,-D.y)}}},{key:"pathZ",value:function(t,i){n.pathZ(this.pathParser),t&&(i.x1!==i.x2&&i.y1!==i.y2&&t.closePath())}}],[{key:"pathM",value:function(t){var i=t.getAsCurrentPoint();return t.start=t.current,{point:i}}},{key:"pathL",value:function(t){var i=t.current,r=t.getAsCurrentPoint();return{current:i,point:r}}},{key:"pathH",value:function(t){var i=t.current,r=t.command,o=new Xt((r.relative?i.x:0)+r.x,i.y);return t.current=o,{current:i,point:o}}},{key:"pathV",value:function(t){var i=t.current,r=t.command,o=new Xt(i.x,(r.relative?i.y:0)+r.y);return t.current=o,{current:i,point:o}}},{key:"pathC",value:function(t){var i=t.current,r=t.getPoint("x1","y1"),o=t.getAsControlPoint("x2","y2"),s=t.getAsCurrentPoint();return{current:i,point:r,controlPoint:o,currentPoint:s}}},{key:"pathS",value:function(t){var i=t.current,r=t.getReflectedControlPoint(),o=t.getAsControlPoint("x2","y2"),s=t.getAsCurrentPoint();return{current:i,point:r,controlPoint:o,currentPoint:s}}},{key:"pathQ",value:function(t){var i=t.current,r=t.getAsControlPoint("x1","y1"),o=t.getAsCurrentPoint();return{current:i,controlPoint:r,currentPoint:o}}},{key:"pathT",value:function(t){var i=t.current,r=t.getReflectedControlPoint();t.control=r;var o=t.getAsCurrentPoint();return{current:i,controlPoint:r,currentPoint:o}}},{key:"pathA",value:function(t){var i=t.current,r=t.command,o=r.rX,s=r.rY,l=r.xRot,c=r.lArcFlag,p=r.sweepFlag,E=l*(Math.PI/180),D=t.getAsCurrentPoint(),K=new Xt(Math.cos(E)*(i.x-D.x)/2+Math.sin(E)*(i.y-D.y)/2,-Math.sin(E)*(i.x-D.x)/2+Math.cos(E)*(i.y-D.y)/2),_=Math.pow(K.x,2)/Math.pow(o,2)+Math.pow(K.y,2)/Math.pow(s,2);_>1&&(o*=Math.sqrt(_),s*=Math.sqrt(_));var it=(c===p?-1:1)*Math.sqrt((Math.pow(o,2)*Math.pow(s,2)-Math.pow(o,2)*Math.pow(K.y,2)-Math.pow(s,2)*Math.pow(K.x,2))/(Math.pow(o,2)*Math.pow(K.y,2)+Math.pow(s,2)*Math.pow(K.x,2)));isNaN(it)&&(it=0);var rt=new Xt(it*o*K.y/s,it*-s*K.x/o),xt=new Xt((i.x+D.x)/2+Math.cos(E)*rt.x-Math.sin(E)*rt.y,(i.y+D.y)/2+Math.sin(E)*rt.x+Math.cos(E)*rt.y),dt=Pe([1,0],[(K.x-rt.x)/o,(K.y-rt.y)/s]),ft=[(K.x-rt.x)/o,(K.y-rt.y)/s],Et=[(-K.x-rt.x)/o,(-K.y-rt.y)/s],wt=Pe(ft,Et);return pe(ft,Et)<=-1&&(wt=Math.PI),pe(ft,Et)>=1&&(wt=0),{currentPoint:D,rX:o,rY:s,sweepFlag:p,xAxisRotation:E,centp:xt,a1:dt,ad:wt}}},{key:"pathZ",value:function(t){t.current=t.start}}]),n}(Oe),Xe=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(a,t,i){var r;return Object(X.a)(this,n),r=f.call(this,a,t,i),r.type="glyph",r.horizAdvX=r.getAttribute("horiz-adv-x").getNumber(),r.unicode=r.getAttribute("unicode").getString(),r.arabicForm=r.getAttribute("arabic-form").getString(),r}return Object(J.a)(n)}(_t),De=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(a,t,i){var r;return Object(X.a)(this,n),r=f.call(this,a,t,new.target===n?!0:i),r.type="text",r.x=0,r.y=0,r.measureCache=-1,r}return Object(J.a)(n,[{key:"setContext",value:function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Object(H.a)(Object(B.a)(n.prototype),"setContext",this).call(this,t,i);var r=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();r&&(t.textBaseline=r)}},{key:"initializeCoordinates",value:function(){this.x=0,this.y=0,this.leafTexts=[],this.textChunkStart=0,this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY}},{key:"getBoundingBox",value:function(t){var i=this;if(this.type!=="text")return this.getTElementBoundingBox(t);this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(t);var r=null;return this.children.forEach(function(o,s){var l=i.getChildBoundingBox(t,i,i,s);r?r.addBoundingBox(l):r=l}),r}},{key:"getFontSize",value:function(){var t=this.document,i=this.parent,r=ve.parse(t.ctx.font).fontSize,o=i.getStyle("font-size").getNumber(r);return o}},{key:"getTElementBoundingBox",value:function(t){var i=this.getFontSize();return new ce(this.x,this.y-i,this.x+this.measureText(t),this.y)}},{key:"getGlyph",value:function(t,i,r){var o=i[r],s=null;if(t.isArabic){var l=i.length,c=i[r-1],p=i[r+1],E="isolated";if((r===0||c===" ")&&r0&&c!==" "&&r0&&c!==" "&&(r===l-1||p===" ")&&(E="initial"),typeof t.glyphs[o]!="undefined"){var D=t.glyphs[o];s=D instanceof Xe?D:D[E]}}else s=t.glyphs[o];return s||(s=t.missingGlyph),s}},{key:"getText",value:function(){return""}},{key:"getTextFromNode",value:function(t){var i=t||this.node,r=Array.from(i.parentNode.childNodes),o=r.indexOf(i),s=r.length-1,l=Ut(i.textContent||"");return o===0&&(l=Jt(l)),o===s&&(l=Nt(l)),l}},{key:"renderChildren",value:function(t){var i=this;if(this.type!=="text"){this.renderTElementChildren(t);return}this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(t),this.children.forEach(function(o,s){i.renderChild(t,i,i,s)});var r=this.document.screen.mouse;r.isWorking()&&r.checkBoundingBox(this,this.getBoundingBox(t))}},{key:"renderTElementChildren",value:function(t){var i=this.document,r=this.parent,o=this.getText(),s=r.getStyle("font-family").getDefinition();if(s){for(var l=s.fontFace.unitsPerEm,c=ve.parse(i.ctx.font),p=r.getStyle("font-size").getNumber(c.fontSize),E=r.getStyle("font-style").getString(c.fontStyle),D=p/l,K=s.isRTL?o.split("").reverse().join(""):o,_=Tt(r.getAttribute("dx").getString()),it=K.length,rt=0;rt=this.leafTexts.length)return;var t=this.leafTexts[this.textChunkStart],i=t.getStyle("text-anchor").getString("start"),r=!1,o=0;i==="start"&&!r||i==="end"&&r?o=t.x-this.minX:i==="end"&&!r||i==="start"&&r?o=t.x-this.maxX:o=t.x-(this.minX+this.maxX)/2;for(var s=this.textChunkStart;s0?s.children.forEach(function(l,c){i.adjustChildCoordinatesRecursiveCore(t,i,s,c)}):this.adjustChildCoordinates(t,i,r,o)}},{key:"adjustChildCoordinates",value:function(t,i,r,o){var s=r.children[o];if(typeof s.measureText!="function")return s;t.save(),s.setContext(t,!0);var l=s.getAttribute("x"),c=s.getAttribute("y"),p=s.getAttribute("dx"),E=s.getAttribute("dy"),D=s.getStyle("font-family").getDefinition(),K=Boolean(D)&&D.isRTL;o===0&&(l.hasValue()||l.setValue(s.getInheritedAttribute("x")),c.hasValue()||c.setValue(s.getInheritedAttribute("y")),p.hasValue()||p.setValue(s.getInheritedAttribute("dx")),E.hasValue()||E.setValue(s.getInheritedAttribute("dy")));var _=s.measureText(t);return K&&(i.x-=_),l.hasValue()?(i.applyAnchoring(),s.x=l.getPixels("x"),p.hasValue()&&(s.x+=p.getPixels("x"))):(p.hasValue()&&(i.x+=p.getPixels("x")),s.x=i.x),i.x=s.x,K||(i.x+=_),c.hasValue()?(s.y=c.getPixels("y"),E.hasValue()&&(s.y+=E.getPixels("y"))):(E.hasValue()&&(i.y+=E.getPixels("y")),s.y=i.y),i.y=s.y,i.leafTexts.push(s),i.minX=Math.min(i.minX,s.x,s.x+_),i.maxX=Math.max(i.maxX,s.x,s.x+_),s.clearContext(t),t.restore(),s}},{key:"getChildBoundingBox",value:function(t,i,r,o){var s=r.children[o];if(typeof s.getBoundingBox!="function")return null;var l=s.getBoundingBox(t);return l?(s.children.forEach(function(c,p){var E=i.getChildBoundingBox(t,i,s,p);l.addBoundingBox(E)}),l):null}},{key:"renderChild",value:function(t,i,r,o){var s=r.children[o];s.render(t),s.children.forEach(function(l,c){i.renderChild(t,i,s,c)})}},{key:"measureText",value:function(t){var i=this.measureCache;if(~i)return i;var r=this.getText(),o=this.measureTargetText(t,r);return this.measureCache=o,o}},{key:"measureTargetText",value:function(t,i){if(!i.length)return 0;var r=this.parent,o=r.getStyle("font-family").getDefinition();if(o){for(var s=this.getFontSize(),l=o.isRTL?i.split("").reverse().join(""):i,c=Tt(r.getAttribute("dx").getString()),p=l.length,E=0,D=0;D0?"":r.getTextFromNode(),r}return Object(J.a)(n,[{key:"getText",value:function(){return this.text}}]),n}(De),_r=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(){var a;return Object(X.a)(this,n),a=f.apply(this,arguments),a.type="textNode",a}return Object(J.a)(n)}(Qe),Le=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(){var a;return Object(X.a)(this,n),a=f.apply(this,arguments),a.type="svg",a.root=!1,a}return Object(J.a)(n,[{key:"setContext",value:function(t){var i,r=this.document,o=r.screen,s=r.window,l=t.canvas;if(o.setDefaults(t),l.style&&typeof t.font!="undefined"&&s&&typeof s.getComputedStyle!="undefined"){t.font=s.getComputedStyle(l).getPropertyValue("font");var c=new mt(r,"fontSize",ve.parse(t.font).fontSize);c.hasValue()&&(r.rootEmSize=c.getPixels("y"),r.emSize=r.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var p=o.viewPort,E=p.width,D=p.height;this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");var K=this.getAttribute("refX"),_=this.getAttribute("refY"),it=this.getAttribute("viewBox"),rt=it.hasValue()?Tt(it.getString()):null,xt=!this.root&&this.getStyle("overflow").getValue("hidden")!=="visible",dt=0,ft=0,Et=0,wt=0;rt&&(dt=rt[0],ft=rt[1]),this.root||(E=this.getStyle("width").getPixels("x"),D=this.getStyle("height").getPixels("y"),this.type==="marker"&&(Et=dt,wt=ft,dt=0,ft=0)),o.viewPort.setCurrent(E,D),this.node&&(!this.parent||((i=this.node.parentNode)===null||i===void 0?void 0:i.nodeName)==="foreignObject")&&this.getStyle("transform",!1,!0).hasValue()&&!this.getStyle("transform-origin",!1,!0).hasValue()&&this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),Object(H.a)(Object(B.a)(n.prototype),"setContext",this).call(this,t),t.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),rt&&(E=rt[2],D=rt[3]),r.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:o.viewPort.width,desiredWidth:E,height:o.viewPort.height,desiredHeight:D,minX:dt,minY:ft,refX:K.getValue(),refY:_.getValue(),clip:xt,clipX:Et,clipY:wt}),rt&&(o.viewPort.removeCurrent(),o.viewPort.setCurrent(E,D))}},{key:"clearContext",value:function(t){Object(H.a)(Object(B.a)(n.prototype),"clearContext",this).call(this,t),this.document.screen.viewPort.removeCurrent()}},{key:"resize",value:function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=this.getAttribute("width",!0),s=this.getAttribute("height",!0),l=this.getAttribute("viewBox"),c=this.getAttribute("style"),p=o.getNumber(0),E=s.getNumber(0);if(r)if(typeof r=="string")this.getAttribute("preserveAspectRatio",!0).setValue(r);else{var D=this.getAttribute("preserveAspectRatio");D.hasValue()&&D.setValue(D.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(o.setValue(t),s.setValue(i),l.hasValue()||l.setValue("0 0 ".concat(p||t," ").concat(E||i)),c.hasValue()){var K=this.getStyle("width"),_=this.getStyle("height");K.hasValue()&&K.setValue("".concat(t,"px")),_.hasValue()&&_.setValue("".concat(i,"px"))}}}]),n}(Oe),Je=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(){var a;return Object(X.a)(this,n),a=f.apply(this,arguments),a.type="rect",a}return Object(J.a)(n,[{key:"path",value:function(t){var i=this.getAttribute("x").getPixels("x"),r=this.getAttribute("y").getPixels("y"),o=this.getStyle("width",!1,!0).getPixels("x"),s=this.getStyle("height",!1,!0).getPixels("y"),l=this.getAttribute("rx"),c=this.getAttribute("ry"),p=l.getPixels("x"),E=c.getPixels("y");if(l.hasValue()&&!c.hasValue()&&(E=p),c.hasValue()&&!l.hasValue()&&(p=E),p=Math.min(p,o/2),E=Math.min(E,s/2),t){var D=4*((Math.sqrt(2)-1)/3);t.beginPath(),s>0&&o>0&&(t.moveTo(i+p,r),t.lineTo(i+o-p,r),t.bezierCurveTo(i+o-p+D*p,r,i+o,r+E-D*E,i+o,r+E),t.lineTo(i+o,r+s-E),t.bezierCurveTo(i+o,r+s-E+D*E,i+o-p+D*p,r+s,i+o-p,r+s),t.lineTo(i+p,r+s),t.bezierCurveTo(i+p-D*p,r+s,i,r+s-E+D*E,i,r+s-E),t.lineTo(i,r+E),t.bezierCurveTo(i,r+E-D*E,i+p-D*p,r,i+p,r),t.closePath())}return new ce(i,r,i+o,r+s)}},{key:"getMarkers",value:function(){return null}}]),n}(_t),fr=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(){var a;return Object(X.a)(this,n),a=f.apply(this,arguments),a.type="circle",a}return Object(J.a)(n,[{key:"path",value:function(t){var i=this.getAttribute("cx").getPixels("x"),r=this.getAttribute("cy").getPixels("y"),o=this.getAttribute("r").getPixels();return t&&o>0&&(t.beginPath(),t.arc(i,r,o,0,Math.PI*2,!1),t.closePath()),new ce(i-o,r-o,i+o,r+o)}},{key:"getMarkers",value:function(){return null}}]),n}(_t),hr=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(){var a;return Object(X.a)(this,n),a=f.apply(this,arguments),a.type="ellipse",a}return Object(J.a)(n,[{key:"path",value:function(t){var i=4*((Math.sqrt(2)-1)/3),r=this.getAttribute("rx").getPixels("x"),o=this.getAttribute("ry").getPixels("y"),s=this.getAttribute("cx").getPixels("x"),l=this.getAttribute("cy").getPixels("y");return t&&r>0&&o>0&&(t.beginPath(),t.moveTo(s+r,l),t.bezierCurveTo(s+r,l+i*o,s+i*r,l+o,s,l+o),t.bezierCurveTo(s-i*r,l+o,s-r,l+i*o,s-r,l),t.bezierCurveTo(s-r,l-i*o,s-i*r,l-o,s,l-o),t.bezierCurveTo(s+i*r,l-o,s+r,l-i*o,s+r,l),t.closePath()),new ce(s-r,l-o,s+r,l+o)}},{key:"getMarkers",value:function(){return null}}]),n}(_t),cr=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(){var a;return Object(X.a)(this,n),a=f.apply(this,arguments),a.type="line",a}return Object(J.a)(n,[{key:"getPoints",value:function(){return[new Xt(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new Xt(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}},{key:"path",value:function(t){var i=this.getPoints(),r=Object(ut.a)(i,2),o=r[0],s=o.x,l=o.y,c=r[1],p=c.x,E=c.y;return t&&(t.beginPath(),t.moveTo(s,l),t.lineTo(p,E)),new ce(s,l,p,E)}},{key:"getMarkers",value:function(){var t=this.getPoints(),i=Object(ut.a)(t,2),r=i[0],o=i[1],s=r.angleTo(o);return[[r,s],[o,s]]}}]),n}(_t),Ze=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(a,t,i){var r;return Object(X.a)(this,n),r=f.call(this,a,t,i),r.type="polyline",r.points=[],r.points=Xt.parsePath(r.getAttribute("points").getString()),r}return Object(J.a)(n,[{key:"path",value:function(t){var i=this.points,r=Object(ut.a)(i,1),o=r[0],s=o.x,l=o.y,c=new ce(s,l);return t&&(t.beginPath(),t.moveTo(s,l)),i.forEach(function(p){var E=p.x,D=p.y;c.addPoint(E,D),t&&t.lineTo(E,D)}),c}},{key:"getMarkers",value:function(){var t=this.points,i=t.length-1,r=[];return t.forEach(function(o,s){if(s===i)return;r.push([o,o.angleTo(t[s+1])])}),r.length>0&&r.push([t[t.length-1],r[r.length-1][1]]),r}}]),n}(_t),vr=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(){var a;return Object(X.a)(this,n),a=f.apply(this,arguments),a.type="polygon",a}return Object(J.a)(n,[{key:"path",value:function(t){var i=Object(H.a)(Object(B.a)(n.prototype),"path",this).call(this,t),r=Object(ut.a)(this.points,1),o=r[0],s=o.x,l=o.y;return t&&(t.lineTo(s,l),t.closePath()),i}}]),n}(Ze),dr=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(){var a;return Object(X.a)(this,n),a=f.apply(this,arguments),a.type="pattern",a}return Object(J.a)(n,[{key:"createPattern",value:function(t,i,r){var o=this.getStyle("width").getPixels("x",!0),s=this.getStyle("height").getPixels("y",!0),l=new Le(this.document,null);l.attributes.viewBox=new mt(this.document,"viewBox",this.getAttribute("viewBox").getValue()),l.attributes.width=new mt(this.document,"width","".concat(o,"px")),l.attributes.height=new mt(this.document,"height","".concat(s,"px")),l.attributes.transform=new mt(this.document,"transform",this.getAttribute("patternTransform").getValue()),l.children=this.children;var c=this.document.createCanvas(o,s),p=c.getContext("2d"),E=this.getAttribute("x"),D=this.getAttribute("y");E.hasValue()&&D.hasValue()&&p.translate(E.getPixels("x",!0),D.getPixels("y",!0)),r.hasValue()?this.styles["fill-opacity"]=r:Reflect.deleteProperty(this.styles,"fill-opacity");for(var K=-1;K<=1;K++)for(var _=-1;_<=1;_++)p.save(),l.attributes.x=new mt(this.document,"x",K*c.width),l.attributes.y=new mt(this.document,"y",_*c.height),l.render(p),p.restore();var it=t.createPattern(c,"repeat");return it}}]),n}(Kt),gr=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(){var a;return Object(X.a)(this,n),a=f.apply(this,arguments),a.type="marker",a}return Object(J.a)(n,[{key:"render",value:function(t,i,r){if(!i)return;var o=i.x,s=i.y,l=this.getAttribute("orient").getString("auto"),c=this.getAttribute("markerUnits").getString("strokeWidth");t.translate(o,s),l==="auto"&&t.rotate(r),c==="strokeWidth"&&t.scale(t.lineWidth,t.lineWidth),t.save();var p=new Le(this.document,null);p.type=this.type,p.attributes.viewBox=new mt(this.document,"viewBox",this.getAttribute("viewBox").getValue()),p.attributes.refX=new mt(this.document,"refX",this.getAttribute("refX").getValue()),p.attributes.refY=new mt(this.document,"refY",this.getAttribute("refY").getValue()),p.attributes.width=new mt(this.document,"width",this.getAttribute("markerWidth").getValue()),p.attributes.height=new mt(this.document,"height",this.getAttribute("markerHeight").getValue()),p.attributes.overflow=new mt(this.document,"overflow",this.getAttribute("overflow").getValue()),p.attributes.fill=new mt(this.document,"fill",this.getAttribute("fill").getColor("black")),p.attributes.stroke=new mt(this.document,"stroke",this.getAttribute("stroke").getValue("none")),p.children=this.children,p.render(t),t.restore(),c==="strokeWidth"&&t.scale(1/t.lineWidth,1/t.lineWidth),l==="auto"&&t.rotate(-r),t.translate(-o,-s)}}]),n}(Kt),pr=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(){var a;return Object(X.a)(this,n),a=f.apply(this,arguments),a.type="defs",a}return Object(J.a)(n,[{key:"render",value:function(){}}]),n}(Kt),Ge=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(){var a;return Object(X.a)(this,n),a=f.apply(this,arguments),a.type="g",a}return Object(J.a)(n,[{key:"getBoundingBox",value:function(t){var i=new ce;return this.children.forEach(function(r){i.addBoundingBox(r.getBoundingBox(t))}),i}}]),n}(Oe),qe=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(a,t,i){var r;Object(X.a)(this,n),r=f.call(this,a,t,i),r.attributesToInherit=["gradientUnits"],r.stops=[];var o=Object(A.a)(r),s=o.stops,l=o.children;return l.forEach(function(c){c.type==="stop"&&s.push(c)}),r}return Object(J.a)(n,[{key:"getGradientUnits",value:function(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}},{key:"createGradient",value:function(t,i,r){var o=this,s=this;this.getHrefAttribute().hasValue()&&(s=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(s));var l=s,c=l.stops,p=this.getGradient(t,i);if(!p)return this.addParentOpacity(r,c[c.length-1].color);if(c.forEach(function(Bt){p.addColorStop(Bt.offset,o.addParentOpacity(r,Bt.color))}),this.getAttribute("gradientTransform").hasValue()){var E=this.document,D=E.screen,K=D.MAX_VIRTUAL_PIXELS,_=D.viewPort,it=Object(ut.a)(_.viewPorts,1),rt=it[0],xt=new Je(E,null);xt.attributes.x=new mt(E,"x",-K/3),xt.attributes.y=new mt(E,"y",-K/3),xt.attributes.width=new mt(E,"width",K),xt.attributes.height=new mt(E,"height",K);var dt=new Ge(E,null);dt.attributes.transform=new mt(E,"transform",this.getAttribute("gradientTransform").getValue()),dt.children=[xt];var ft=new Le(E,null);ft.attributes.x=new mt(E,"x",0),ft.attributes.y=new mt(E,"y",0),ft.attributes.width=new mt(E,"width",rt.width),ft.attributes.height=new mt(E,"height",rt.height),ft.children=[dt];var Et=E.createCanvas(rt.width,rt.height),wt=Et.getContext("2d");return wt.fillStyle=p,ft.render(wt),wt.createPattern(Et,"no-repeat")}return p}},{key:"inheritStopContainer",value:function(t){var i=this;this.attributesToInherit.forEach(function(r){!i.getAttribute(r).hasValue()&&t.getAttribute(r).hasValue()&&i.getAttribute(r,!0).setValue(t.getAttribute(r).getValue())})}},{key:"addParentOpacity",value:function(t,i){if(t.hasValue()){var r=new mt(this.document,"color",i);return r.addOpacity(t).getColor()}return i}}]),n}(Kt),mr=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(a,t,i){var r;return Object(X.a)(this,n),r=f.call(this,a,t,i),r.type="linearGradient",r.attributesToInherit.push("x1","y1","x2","y2"),r}return Object(J.a)(n,[{key:"getGradient",value:function(t,i){var r=this.getGradientUnits()==="objectBoundingBox",o=r?i.getBoundingBox(t):null;if(r&&!o)return null;!this.getAttribute("x1").hasValue()&&!this.getAttribute("y1").hasValue()&&!this.getAttribute("x2").hasValue()&&!this.getAttribute("y2").hasValue()&&(this.getAttribute("x1",!0).setValue(0),this.getAttribute("y1",!0).setValue(0),this.getAttribute("x2",!0).setValue(1),this.getAttribute("y2",!0).setValue(0));var s=r?o.x+o.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),l=r?o.y+o.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),c=r?o.x+o.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),p=r?o.y+o.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return s===c&&l===p?null:t.createLinearGradient(s,l,c,p)}}]),n}(qe),yr=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(a,t,i){var r;return Object(X.a)(this,n),r=f.call(this,a,t,i),r.type="radialGradient",r.attributesToInherit.push("cx","cy","r","fx","fy","fr"),r}return Object(J.a)(n,[{key:"getGradient",value:function(t,i){var r=this.getGradientUnits()==="objectBoundingBox",o=i.getBoundingBox(t);if(r&&!o)return null;this.getAttribute("cx").hasValue()||this.getAttribute("cx",!0).setValue("50%"),this.getAttribute("cy").hasValue()||this.getAttribute("cy",!0).setValue("50%"),this.getAttribute("r").hasValue()||this.getAttribute("r",!0).setValue("50%");var s=r?o.x+o.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),l=r?o.y+o.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),c=s,p=l;this.getAttribute("fx").hasValue()&&(c=r?o.x+o.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(p=r?o.y+o.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var E=r?(o.width+o.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),D=this.getAttribute("fr").getPixels();return t.createRadialGradient(c,p,D,s,l,E)}}]),n}(qe),xr=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(a,t,i){var r;Object(X.a)(this,n),r=f.call(this,a,t,i),r.type="stop";var o=Math.max(0,Math.min(1,r.getAttribute("offset").getNumber())),s=r.getStyle("stop-opacity"),l=r.getStyle("stop-color",!0);return l.getString()===""&&l.setValue("#000"),s.hasValue()&&(l=l.addOpacity(s)),r.offset=o,r.color=l.getColor(),r}return Object(J.a)(n)}(Kt),ze=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(a,t,i){var r;Object(X.a)(this,n),r=f.call(this,a,t,i),r.type="animate",r.duration=0,r.initialValue=null,r.initialUnits="",r.removed=!1,r.frozen=!1,a.screen.animations.push(Object(A.a)(r)),r.begin=r.getAttribute("begin").getMilliseconds(),r.maxDuration=r.begin+r.getAttribute("dur").getMilliseconds(),r.from=r.getAttribute("from"),r.to=r.getAttribute("to"),r.values=new mt(a,"values",null);var o=r.getAttribute("values");return o.hasValue()&&r.values.setValue(o.getString().split(";")),r}return Object(J.a)(n,[{key:"getProperty",value:function(){var t=this.getAttribute("attributeType").getString(),i=this.getAttribute("attributeName").getString();return t==="CSS"?this.parent.getStyle(i,!0):this.parent.getAttribute(i,!0)}},{key:"calcValue",value:function(){var t=this.initialUnits,i=this.getProgress(),r=i.progress,o=i.from,s=i.to,l=o.getNumber()+(s.getNumber()-o.getNumber())*r;return t==="%"&&(l*=100),"".concat(l).concat(t)}},{key:"update",value:function(t){var i=this.parent,r=this.getProperty();if(this.initialValue||(this.initialValue=r.getString(),this.initialUnits=r.getUnits()),this.duration>this.maxDuration){var o=this.getAttribute("fill").getString("remove");if(this.getAttribute("repeatCount").getString()==="indefinite"||this.getAttribute("repeatDur").getString()==="indefinite")this.duration=0;else if(o==="freeze"&&!this.frozen)this.frozen=!0,i.animationFrozen=!0,i.animationFrozenValue=r.getString();else if(o==="remove"&&!this.removed)return this.removed=!0,r.setValue(i.animationFrozen?i.animationFrozenValue:this.initialValue),!0;return!1}this.duration+=t;var s=!1;if(this.begin0&&Array.from(o).every(function(c){return c.nodeType===3});return r.hasText=l,r.text=l?r.getTextFromNode(s):"",r}return Object(J.a)(n,[{key:"getText",value:function(){return this.text}},{key:"renderChildren",value:function(t){if(this.hasText){Object(H.a)(Object(B.a)(n.prototype),"renderChildren",this).call(this,t);var i=this.document,r=this.x,o=this.y,s=i.screen.mouse,l=new mt(i,"fontSize",ve.parse(i.ctx.font).fontSize);s.isWorking()&&s.checkBoundingBox(this,new ce(r,o-l.getPixels("y"),r+this.measureText(t),o))}else if(this.children.length>0){var c=new Ge(this.document,null);c.children=this.children,c.parent=this,c.render(t)}}},{key:"onClick",value:function(){var t=this.document.window;t&&t.open(this.getHrefAttribute().getString())}},{key:"onMouseMove",value:function(){var t=this.document.ctx;t.canvas.style.cursor="pointer"}}]),n}(De);function Rr(v,f){var n=Object.keys(v);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(v);f&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(v,t).enumerable})),n.push.apply(n,a)}return n}function He(v){for(var f=1;fD?E:D,dt=E>D?1:E/D,ft=E>D?D/E:1;t&&(t.translate(c,p),t.rotate(it),t.scale(dt,ft),t.arc(0,0,xt,K,K+_,Boolean(1-rt)),t.scale(1/dt,1/ft),t.rotate(-it),t.translate(-c,-p));break}case At.CLOSE_PATH:t&&t.closePath();break}})}},{key:"renderChildren",value:function(t){this.setTextData(t),t.save();var i=this.parent.getStyle("text-decoration").getString(),r=this.getFontSize(),o=this.glyphInfo,s=t.fillStyle;i==="underline"&&t.beginPath(),o.forEach(function(l,c){var p=l.p0,E=l.p1,D=l.rotation,K=l.text;t.save(),t.translate(p.x,p.y),t.rotate(D),t.fillStyle&&t.fillText(K,0,0),t.strokeStyle&&t.strokeText(K,0,0),t.restore(),i==="underline"&&(c===0&&t.moveTo(p.x,p.y+r/8),t.lineTo(E.x,E.y+r/5))}),i==="underline"&&(t.lineWidth=r/20,t.strokeStyle=s,t.stroke(),t.closePath()),t.restore()}},{key:"getLetterSpacingAt",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return this.letterSpacingCache[t]||0}},{key:"findSegmentToFitChar",value:function(t,i,r,o,s,l,c,p,E){var D=l,K=this.measureText(t,p);p===" "&&i==="justify"&&r-1&&(D+=this.getLetterSpacingAt(E));var _=this.textHeight/20,it=this.getEquidistantPointOnPath(D,_,0),rt=this.getEquidistantPointOnPath(D+K,_,0),xt={p0:it,p1:rt},dt=it&&rt?Math.atan2(rt.y-it.y,rt.x-it.x):0;if(c){var ft=Math.cos(Math.PI/2+dt)*c,Et=Math.cos(-dt)*c;xt.p0=He(He({},it),{},{x:it.x+ft,y:it.y+Et}),xt.p1=He(He({},rt),{},{x:rt.x+ft,y:rt.y+Et})}return D+=K,{offset:D,segment:xt,rotation:dt}}},{key:"measureText",value:function(t,i){var r=this.measuresCache,o=i||this.getText();if(r.has(o))return r.get(o);var s=this.measureTargetText(t,o);return r.set(o,s),s}},{key:"setTextData",value:function(t){var i=this;if(this.glyphInfo)return;var r=this.getText(),o=r.split(""),s=r.split(" ").length-1,l=this.parent.getAttribute("dx").split().map(function(Qt){return Qt.getPixels("x")}),c=this.parent.getAttribute("dy").getPixels("y"),p=this.parent.getStyle("text-anchor").getString("start"),E=this.getStyle("letter-spacing"),D=this.parent.getStyle("letter-spacing"),K=0;!E.hasValue()||E.getValue()==="inherit"?K=D.getPixels():E.hasValue()&&(E.getValue()!=="initial"&&E.getValue()!=="unset"&&(K=E.getPixels()));var _=[],it=r.length;this.letterSpacingCache=_;for(var rt=0;rt0&&(E-=2*Math.PI),s===1&&E<0&&(E+=2*Math.PI),[c.x,c.y,r,o,p,E,l,s]}},{key:"calcLength",value:function(t,i,r,o){var s=0,l=null,c=null,p=0;switch(r){case At.LINE_TO:return this.getLineLength(t,i,o[0],o[1]);case At.CURVE_TO:for(s=0,l=this.getPointOnCubicBezier(0,t,i,o[0],o[1],o[2],o[3],o[4],o[5]),p=.01;p<=1;p+=.01)c=this.getPointOnCubicBezier(p,t,i,o[0],o[1],o[2],o[3],o[4],o[5]),s+=this.getLineLength(l.x,l.y,c.x,c.y),l=c;return s;case At.QUAD_TO:for(s=0,l=this.getPointOnQuadraticBezier(0,t,i,o[0],o[1],o[2],o[3]),p=.01;p<=1;p+=.01)c=this.getPointOnQuadraticBezier(p,t,i,o[0],o[1],o[2],o[3]),s+=this.getLineLength(l.x,l.y,c.x,c.y),l=c;return s;case At.ARC:{s=0;var E=o[4],D=o[5],K=o[4]+D,_=Math.PI/180;if(Math.abs(E-K)<_&&(_=Math.abs(E-K)),l=this.getPointOnEllipticalArc(o[0],o[1],o[2],o[3],E,0),D<0)for(p=E-_;p>K;p-=_)c=this.getPointOnEllipticalArc(o[0],o[1],o[2],o[3],p,0),s+=this.getLineLength(l.x,l.y,c.x,c.y),l=c;else for(p=E+_;p5&&arguments[5]!==void 0?arguments[5]:i,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:r,p=(s-r)/(o-i+kt),E=Math.sqrt(t*t/(1+p*p));oi)return null;var s=this.dataArray,l=Object(b.a)(s),c;try{for(l.s();!(c=l.n()).done;){var p=c.value;if(p&&(p.pathLength<5e-5||r+p.pathLength+5e-5=0&&D>it)break;o=this.getPointOnEllipticalArc(p.points[0],p.points[1],p.points[2],p.points[3],D,p.points[6]);break}case At.CURVE_TO:D=E/p.pathLength,D>1&&(D=1),o=this.getPointOnCubicBezier(D,p.start.x,p.start.y,p.points[0],p.points[1],p.points[2],p.points[3],p.points[4],p.points[5]);break;case At.QUAD_TO:D=E/p.pathLength,D>1&&(D=1),o=this.getPointOnQuadraticBezier(D,p.start.x,p.start.y,p.points[0],p.points[1],p.points[2],p.points[3]);break}if(o)return o;break}}catch(rt){l.e(rt)}finally{l.f()}return null}},{key:"getLineLength",value:function(t,i,r,o){return Math.sqrt((r-t)*(r-t)+(o-i)*(o-i))}},{key:"getPathLength",value:function(){return this.pathLength===-1&&(this.pathLength=this.dataArray.reduce(function(t,i){return i.pathLength>0?t+i.pathLength:t},0)),this.pathLength}},{key:"getPointOnCubicBezier",value:function(t,i,r,o,s,l,c,p,E){var D=p*Se(t)+l*me(t)+o*ye(t)+i*xe(t),K=E*Se(t)+c*me(t)+s*ye(t)+r*xe(t);return{x:D,y:K}}},{key:"getPointOnQuadraticBezier",value:function(t,i,r,o,s,l,c){var p=l*Ee(t)+o*Ie(t)+i*Ne(t),E=c*Ee(t)+s*Ie(t)+r*Ne(t);return{x:p,y:E}}},{key:"getPointOnEllipticalArc",value:function(t,i,r,o,s,l){var c=Math.cos(l),p=Math.sin(l),E={x:r*Math.cos(s),y:o*Math.sin(s)};return{x:t+(E.x*c-E.y*p),y:i+(E.x*p+E.y*c)}}},{key:"buildEquidistantCache",value:function(t,i){var r=this.getPathLength(),o=i||.25,s=t||r/100;if(!this.equidistantCache||this.equidistantCache.step!==s||this.equidistantCache.precision!==o){this.equidistantCache={step:s,precision:o,points:[]};for(var l=0,c=0;c<=r;c+=o){var p=this.getPointOnPath(c),E=this.getPointOnPath(c+o);if(!p||!E)continue;l+=this.getLineLength(p.x,p.y,E.x,E.y),l>=s&&(this.equidistantCache.points.push({x:p.x,y:p.y,distance:c}),l-=s)}}}},{key:"getEquidistantPointOnPath",value:function(t,i,r){if(this.buildEquidistantCache(i,r),t<0||t-this.getPathLength()>5e-5)return null;var o=Math.round(t/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[o]||null}}]),n}(De),tn=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i,Ir=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(a,t,i){var r;Object(X.a)(this,n),r=f.call(this,a,t,i),r.type="image",r.loaded=!1;var o=r.getHrefAttribute().getString();if(!o)return Object($.a)(r);var s=o.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(o);return a.images.push(Object(A.a)(r)),s?void r.loadSvg(o):void r.loadImage(o),r.isSvg=s,r}return Object(J.a)(n,[{key:"loadImage",value:function(t){var i=this;return vt()(Ct().mark(function r(){var o;return Ct().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.prev=0,l.next=3,i.document.createImage(t);case 3:o=l.sent,i.image=o,l.next=10;break;case 7:l.prev=7,l.t0=l.catch(0),console.error('Error while loading image "'.concat(t,'":'),l.t0);case 10:i.loaded=!0;case 11:case"end":return l.stop()}},r,null,[[0,7]])}))()}},{key:"loadSvg",value:function(t){var i=this;return vt()(Ct().mark(function r(){var o,s,l,c;return Ct().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:if(o=tn.exec(t),!o){E.next=6;break}s=o[5],o[4]==="base64"?i.image=atob(s):i.image=decodeURIComponent(s),E.next=19;break;case 6:return E.prev=6,E.next=9,i.document.fetch(t);case 9:return l=E.sent,E.next=12,l.text();case 12:c=E.sent,i.image=c,E.next=19;break;case 16:E.prev=16,E.t0=E.catch(6),console.error('Error while loading image "'.concat(t,'":'),E.t0);case 19:i.loaded=!0;case 20:case"end":return E.stop()}},r,null,[[6,16]])}))()}},{key:"renderChildren",value:function(t){var i=this.document,r=this.image,o=this.loaded,s=this.getAttribute("x").getPixels("x"),l=this.getAttribute("y").getPixels("y"),c=this.getStyle("width").getPixels("x"),p=this.getStyle("height").getPixels("y");if(!o||!r||!c||!p)return;if(t.save(),t.translate(s,l),this.isSvg){var E=i.canvg.forkString(t,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:c,scaleHeight:p});E.document.documentElement.parent=this,void E.render()}else{var D=this.image;i.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:c,desiredWidth:D.width,height:p,desiredHeight:D.height}),this.loaded&&((typeof D.complete=="undefined"||D.complete)&&t.drawImage(D,0,0))}t.restore()}},{key:"getBoundingBox",value:function(){var t=this.getAttribute("x").getPixels("x"),i=this.getAttribute("y").getPixels("y"),r=this.getStyle("width").getPixels("x"),o=this.getStyle("height").getPixels("y");return new ce(t,i,t+r,i+o)}}]),n}(Oe),Nr=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(){var a;return Object(X.a)(this,n),a=f.apply(this,arguments),a.type="symbol",a}return Object(J.a)(n,[{key:"render",value:function(t){}}]),n}(Oe),Mr=function(){function v(f){Object(X.a)(this,v),this.document=f,this.loaded=!1,f.fonts.push(this)}return Object(J.a)(v,[{key:"load",value:function(n,a){var t=this;return vt()(Ct().mark(function i(){var r,o,s;return Ct().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.prev=0,r=t.document,c.next=4,r.canvg.parser.load(a);case 4:o=c.sent,s=o.getElementsByTagName("font"),Array.from(s).forEach(function(p){var E=r.createElement(p);r.definitions[n]=E}),c.next=12;break;case 9:c.prev=9,c.t0=c.catch(0),console.error('Error while loading font "'.concat(a,'":'),c.t0);case 12:t.loaded=!0;case 13:case"end":return c.stop()}},i,null,[[0,9]])}))()}}]),v}(),_e=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(a,t,i){var r;Object(X.a)(this,n),r=f.call(this,a,t,i),r.type="style";var o=Ut(Array.from(t.childNodes).map(function(l){return l.textContent}).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")),s=o.split("}");return s.forEach(function(l){var c=l.trim();if(!c)return;var p=c.split("{"),E=p[0].split(","),D=p[1].split(";");E.forEach(function(K){var _=K.trim();if(!_)return;var it=a.styles[_]||{};if(D.forEach(function(dt){var ft=dt.indexOf(":"),Et=dt.substr(0,ft).trim(),wt=dt.substr(ft+1,dt.length-ft).trim();Et&&wt&&(it[Et]=new mt(a,Et,wt))}),a.styles[_]=it,a.stylesSpecificity[_]=he(_),_==="@font-face"){var rt=it["font-family"].getString().replace(/"|'/g,""),xt=it.src.getString().split(",");xt.forEach(function(dt){if(dt.indexOf('format("svg")')>0){var ft=pt(dt);ft&&void new Mr(a).load(rt,ft)}})}})}),r}return Object(J.a)(n)}(Kt);_e.parseExternalUrl=pt;var jr=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(){var a;return Object(X.a)(this,n),a=f.apply(this,arguments),a.type="use",a}return Object(J.a)(n,[{key:"setContext",value:function(t){Object(H.a)(Object(B.a)(n.prototype),"setContext",this).call(this,t);var i=this.getAttribute("x"),r=this.getAttribute("y");i.hasValue()&&t.translate(i.getPixels("x"),0),r.hasValue()&&t.translate(0,r.getPixels("y"))}},{key:"path",value:function(t){var i=this.element;i&&i.path(t)}},{key:"renderChildren",value:function(t){var i=this.document,r=this.element;if(r){var o=r;if(r.type==="symbol"&&(o=new Le(i,null),o.attributes.viewBox=new mt(i,"viewBox",r.getAttribute("viewBox").getString()),o.attributes.preserveAspectRatio=new mt(i,"preserveAspectRatio",r.getAttribute("preserveAspectRatio").getString()),o.attributes.overflow=new mt(i,"overflow",r.getAttribute("overflow").getString()),o.children=r.children,r.styles.opacity=new mt(i,"opacity",this.calculateOpacity())),o.type==="svg"){var s=this.getStyle("width",!1,!0),l=this.getStyle("height",!1,!0);s.hasValue()&&(o.attributes.width=new mt(i,"width",s.getString())),l.hasValue()&&(o.attributes.height=new mt(i,"height",l.getString()))}var c=o.parent;o.parent=this,o.render(t),o.parent=c}}},{key:"getBoundingBox",value:function(t){var i=this.element;return i?i.getBoundingBox(t):null}},{key:"elementTransform",value:function(){var t=this.document,i=this.element;return we.fromElement(t,i)}},{key:"element",get:function(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}}]),n}(Oe);function $e(v,f,n,a,t,i){return v[n*a*4+f*4+i]}function Ye(v,f,n,a,t,i,r){v[n*a*4+f*4+i]=r}function Zt(v,f,n){var a=v[f];return a*n}function ge(v,f,n,a){return f+Math.cos(v)*n+Math.sin(v)*a}var tr=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(a,t,i){var r;Object(X.a)(this,n),r=f.call(this,a,t,i),r.type="feColorMatrix";var o=Tt(r.getAttribute("values").getString());switch(r.getAttribute("type").getString("matrix")){case"saturate":{var s=o[0];o=[.213+.787*s,.715-.715*s,.072-.072*s,0,0,.213-.213*s,.715+.285*s,.072-.072*s,0,0,.213-.213*s,.715-.715*s,.072+.928*s,0,0,0,0,0,1,0,0,0,0,0,1];break}case"hueRotate":{var l=o[0]*Math.PI/180;o=[ge(l,.213,.787,-.213),ge(l,.715,-.715,-.715),ge(l,.072,-.072,.928),0,0,ge(l,.213,-.213,.143),ge(l,.715,.285,.14),ge(l,.072,-.072,-.283),0,0,ge(l,.213,-.213,-.787),ge(l,.715,-.715,.715),ge(l,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break}case"luminanceToAlpha":o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1];break}return r.matrix=o,r.includeOpacity=r.getAttribute("includeOpacity").hasValue(),r}return Object(J.a)(n,[{key:"apply",value:function(t,i,r,o,s){for(var l=this.includeOpacity,c=this.matrix,p=t.getImageData(0,0,o,s),E=0;E1&&t[1]!==void 0?t[1]:!1,a=document.createElement("img"),n&&(a.crossOrigin="Anonymous"),r.abrupt("return",new Promise(function(o,s){a.onload=function(){o(a)},a.onerror=function(l,c,p,E,D){s(D)},a.src=f}));case 4:case"end":return r.stop()}},v)})),nr.apply(this,arguments)}var Ve=function(){function v(f){Object(X.a)(this,v);var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.rootEmSize,t=a===void 0?12:a,i=n.emSize,r=i===void 0?12:i,o=n.createCanvas,s=o===void 0?v.createCanvas:o,l=n.createImage,c=l===void 0?v.createImage:l,p=n.anonymousCrossOrigin;this.canvg=f,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=f.screen,this.rootEmSize=t,this.emSize=r,this.createCanvas=s,this.createImage=this.bindCreateImage(c,p),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}return Object(J.a)(v,[{key:"bindCreateImage",value:function(n,a){return typeof a=="boolean"?function(t,i){return n(t,typeof i=="boolean"?i:a)}:n}},{key:"window",get:function(){return this.screen.window}},{key:"fetch",get:function(){return this.screen.fetch}},{key:"ctx",get:function(){return this.screen.ctx}},{key:"emSize",get:function(){var n=this.emSizeStack;return n[n.length-1]},set:function(n){var a=this.emSizeStack;a.push(n)}},{key:"popEmSize",value:function(){var n=this.emSizeStack;n.pop()}},{key:"getUniqueId",value:function(){return"canvg".concat(++this.uniqueId)}},{key:"isImagesLoaded",value:function(){return this.images.every(function(n){return n.loaded})}},{key:"isFontsLoaded",value:function(){return this.fonts.every(function(n){return n.loaded})}},{key:"createDocumentElement",value:function(n){var a=this.createElement(n.documentElement);return a.root=!0,a.addStylesFromStyleDefinition(),this.documentElement=a,a}},{key:"createElement",value:function(n){var a=n.nodeName.replace(/^[^:]+:/,""),t=v.elementTypes[a];return typeof t!="undefined"?new t(this,n):new ur(this,n)}},{key:"createTextNode",value:function(n){return new _r(this,n)}},{key:"setViewBox",value:function(n){this.screen.setViewBox(rn({document:this},n))}}]),v}();Ve.createCanvas=nn,Ve.createImage=an,Ve.elementTypes=en;function zr(v,f){var n=Object.keys(v);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(v);f&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(v,t).enumerable})),n.push.apply(n,a)}return n}function Ae(v){for(var f=1;f2&&arguments[2]!==void 0?arguments[2]:{};this.parser=new We(a),this.screen=new de(f,a),this.options=a;var t=new Ve(this,a),i=t.createDocumentElement(n);this.document=t,this.documentElement=i}return Object(J.a)(v,[{key:"fork",value:function(n,a){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return v.from(n,a,Ae(Ae({},this.options),t))}},{key:"forkString",value:function(n,a){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return v.fromString(n,a,Ae(Ae({},this.options),t))}},{key:"ready",value:function(){return this.screen.ready()}},{key:"isReady",value:function(){return this.screen.isReady()}},{key:"render",value:function(){var n=arguments,a=this;return vt()(Ct().mark(function t(){var i;return Ct().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return i=n.length>0&&n[0]!==void 0?n[0]:{},a.start(Ae({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},i)),o.next=4,a.ready();case 4:a.stop();case 5:case"end":return o.stop()}},t)}))()}},{key:"start",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=this.documentElement,t=this.screen,i=this.options;t.start(a,Ae(Ae({enableRedraw:!0},i),n))}},{key:"stop",value:function(){this.screen.stop()}},{key:"resize",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:n,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.documentElement.resize(n,a,t)}}],[{key:"from",value:function(n,a){var t=arguments;return vt()(Ct().mark(function i(){var r,o,s;return Ct().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return r=t.length>2&&t[2]!==void 0?t[2]:{},o=new We(r),c.next=4,o.parse(a);case 4:return s=c.sent,c.abrupt("return",new v(n,s,r));case 6:case"end":return c.stop()}},i)}))()}},{key:"fromString",value:function(n,a){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=new We(t),r=i.parseFromString(a);return new v(n,r,t)}}]),v}()}.call(this,e("Q2Ig"))},Dk1u:function(m,x,e){var u=e("4YbN"),h=e("IL+x"),d=TypeError;m.exports=function(g){if(u(g))return g;throw d(h(g)+" is not a constructor")}},ENhe:function(m,x){m.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},ESVS:function(m,x,e){"use strict";var u=e("nCzB"),h=e("m7zg"),d=e("zFjv"),g=e("GxTi").CONSTRUCTOR;u({target:"Promise",stat:!0,forced:g},{reject:function(T){var C=d.f(this);return h(C.reject,void 0,T),C.promise}})},FjAG:function(m,x,e){var u=e("8HiI"),h=e("721z"),d=e("p5Ma"),g=e("tMNq"),y=TypeError,T=function(C){return function(N,P,M,z){u(P);var j=h(N),F=d(j),V=g(j),L=C?V-1:0,k=C?-1:1;if(M<2)for(;;){if(L in F){z=F[L],L+=k;break}if(L+=k,C?L<0:V<=L)throw y("Reduce of empty array with no initial value")}for(;C?L>=0:V>L;L+=k)L in F&&(z=P(z,F[L],L,j));return z}};m.exports={left:T(!1),right:T(!0)}},FkIU:function(m,x,e){var u=e("++4Y"),h=e("eRwv");m.exports=u&&h(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},FlRv:function(m,x,e){var u=e("++4Y"),h=e("pVCk"),d=e("FkIU"),g=e("WxoH"),y=e("GTqx"),T=TypeError,C=Object.defineProperty,N=Object.getOwnPropertyDescriptor,P="enumerable",M="configurable",z="writable";x.f=u?d?function(F,V,L){if(g(F),V=y(V),g(L),typeof F=="function"&&V==="prototype"&&"value"in L&&z in L&&!L[z]){var k=N(F,V);k&&k[z]&&(F[V]=L.value,L={configurable:M in L?L[M]:k[M],enumerable:P in L?L[P]:k[P],writable:!1})}return C(F,V,L)}:C:function(F,V,L){if(g(F),V=y(V),g(L),h)try{return C(F,V,L)}catch(k){}if("get"in L||"set"in L)throw T("Accessors not supported");return"value"in L&&(F[V]=L.value),F}},FqHY:function(m,x,e){var u=e("eE3R"),h=e("Ks5W");m.exports=/ipad|iphone|ipod/i.test(u)&&h.Pebble!==void 0},G5Kn:function(m,x,e){var u=e("11yv"),h=e("XFuk"),d=e("FlRv").f,g=u("unscopables"),y=Array.prototype;y[g]==null&&d(y,g,{configurable:!0,value:h(null)}),m.exports=function(T){y[g][T]=!0}},GI0h:function(m,x,e){var u=e("me6S"),h=u("span").classList,d=h&&h.constructor&&h.constructor.prototype;m.exports=d===Object.prototype?void 0:d},GTqx:function(m,x,e){var u=e("ms20"),h=e("bT0D");m.exports=function(d){var g=u(d,"string");return h(g)?g:g+""}},GVkW:function(m,x,e){"use strict";var u=e("nCzB"),h=e("aLaa"),d=e("fKql").f,g=e("c3MK"),y=e("qzpy"),T=e("OU4x"),C=e("XaNE"),N=e("/TZh"),P=e("jybJ"),M=h("".endsWith),z=h("".slice),j=Math.min,F=N("endsWith"),V=!P&&!F&&!!function(){var L=d(String.prototype,"endsWith");return L&&!L.writable}();u({target:"String",proto:!0,forced:!V&&!F},{endsWith:function(k){var et=y(C(this));T(k);var W=arguments.length>1?arguments[1]:void 0,nt=et.length,U=W===void 0?nt:j(g(W),nt),lt=y(k);return M?M(et,lt,U):z(et,U-lt.length,U)===lt}})},GgKt:function(m,x,e){var u=e("eE3R");m.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(u)},GxTi:function(m,x,e){var u=e("Ks5W"),h=e("KLK4"),d=e("JTf3"),g=e("mGb/"),y=e("sNJV"),T=e("11yv"),C=e("vTDQ"),N=e("jybJ"),P=e("aNIs"),M=h&&h.prototype,z=T("species"),j=!1,F=d(u.PromiseRejectionEvent),V=g("Promise",function(){var L=y(h),k=L!==String(h);if(!k&&P===66)return!0;if(N&&!(M.catch&&M.finally))return!0;if(P>=51&&/native code/.test(L))return!1;var et=new h(function(U){U(1)}),W=function(U){U(function(){},function(){})},nt=et.constructor={};return nt[z]=W,j=et.then(function(){})instanceof W,j?!k&&C&&!F:!0});m.exports={CONSTRUCTOR:V,REJECTION_EVENT:F,SUBCLASSING:j}},Gywb:function(m,x,e){var u=e("eRwv");m.exports=!u(function(){function h(){}return h.prototype.constructor=null,Object.getPrototypeOf(new h)!==h.prototype})},"HTC/":function(m,x,e){"use strict";var u=e("WxoH");m.exports=function(){var h=u(this),d="";return h.hasIndices&&(d+="d"),h.global&&(d+="g"),h.ignoreCase&&(d+="i"),h.multiline&&(d+="m"),h.dotAll&&(d+="s"),h.unicode&&(d+="u"),h.unicodeSets&&(d+="v"),h.sticky&&(d+="y"),d}},IGIO:function(m,x,e){var u=e("ba8b"),h=e("Ks5W");m.exports=u(h.process)=="process"},"IL+x":function(m,x){var e=String;m.exports=function(u){try{return e(u)}catch(h){return"Object"}}},JHvW:function(m,x,e){var u=e("aLaa"),h=e("WxoH"),d=e("NIpK");m.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var g=!1,y={},T;try{T=u(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),T(y,[]),g=y instanceof Array}catch(C){}return function(N,P){return h(N),d(P),g?T(N,P):N.__proto__=P,N}}():void 0)},JTf3:function(m,x){m.exports=function(e){return typeof e=="function"}},KKe4:function(m,x,e){"use strict";var u=e("m7zg"),h=e("WONN"),d=e("WxoH"),g=e("c3MK"),y=e("qzpy"),T=e("XaNE"),C=e("oK8H"),N=e("M/+V"),P=e("3fk+");h("match",function(M,z,j){return[function(V){var L=T(this),k=V==null?void 0:C(V,M);return k?u(k,V,L):new RegExp(V)[M](y(L))},function(F){var V=d(this),L=y(F),k=j(z,V,L);if(k.done)return k.value;if(!V.global)return P(V,L);var et=V.unicode;V.lastIndex=0;for(var W=[],nt=0,U;(U=P(V,L))!==null;){var lt=y(U[0]);W[nt]=lt,lt===""&&(V.lastIndex=N(L,g(V.lastIndex),et)),nt++}return nt===0?null:W}]})},KLK4:function(m,x,e){var u=e("Ks5W");m.exports=u.Promise},KLN8:function(m,x,e){"use strict";var u=e("nCzB"),h=e("aLaa"),d=e("fKql").f,g=e("c3MK"),y=e("qzpy"),T=e("OU4x"),C=e("XaNE"),N=e("/TZh"),P=e("jybJ"),M=h("".startsWith),z=h("".slice),j=Math.min,F=N("startsWith"),V=!P&&!F&&!!function(){var L=d(String.prototype,"startsWith");return L&&!L.writable}();u({target:"String",proto:!0,forced:!V&&!F},{startsWith:function(k){var et=y(C(this));T(k);var W=g(j(arguments.length>1?arguments[1]:void 0,et.length)),nt=y(k);return M?M(et,nt,W):z(et,W,W+nt.length)===nt}})},Ks5W:function(m,x,e){(function(u){var h=function(d){return d&&d.Math==Math&&d};m.exports=h(typeof globalThis=="object"&&globalThis)||h(typeof window=="object"&&window)||h(typeof self=="object"&&self)||h(typeof u=="object"&&u)||function(){return this}()||Function("return this")()}).call(this,e("yLpj"))},Lltv:function(m,x,e){"use strict";var u=e("vkZI"),h=e("G5Kn"),d=e("AoAp"),g=e("UQ6y"),y=e("FlRv").f,T=e("jgt4"),C=e("jybJ"),N=e("++4Y"),P="Array Iterator",M=g.set,z=g.getterFor(P);m.exports=T(Array,"Array",function(F,V){M(this,{type:P,target:u(F),index:0,kind:V})},function(){var F=z(this),V=F.target,L=F.kind,k=F.index++;return!V||k>=V.length?(F.target=void 0,{value:void 0,done:!0}):L=="keys"?{value:k,done:!1}:L=="values"?{value:V[k],done:!1}:{value:[k,V[k]],done:!1}},"values");var j=d.Arguments=d.Array;if(h("keys"),h("values"),h("entries"),!C&&N&&j.name!=="values")try{y(j,"name",{value:"values"})}catch(F){}},"M/+V":function(m,x,e){"use strict";var u=e("ymN0").charAt;m.exports=function(h,d,g){return d+(g?u(h,d).length:1)}},MNKV:function(m,x,e){"use strict";var u=e("nCzB"),h=e("aLaa"),d=e("OU4x"),g=e("XaNE"),y=e("qzpy"),T=e("/TZh"),C=h("".indexOf);u({target:"String",proto:!0,forced:!T("includes")},{includes:function(P){return!!~C(y(g(this)),y(d(P)),arguments.length>1?arguments[1]:void 0)}})},MURR:function(m,x,e){var u=e("aLaa"),h=0,d=Math.random(),g=u(1 .toString);m.exports=function(y){return"Symbol("+(y===void 0?"":y)+")_"+g(++h+d,36)}},N6FT:function(m,x,e){var u=e("++4Y"),h=e("YELS"),d=Function.prototype,g=u&&Object.getOwnPropertyDescriptor,y=h(d,"name"),T=y&&function(){}.name==="something",C=y&&(!u||u&&g(d,"name").configurable);m.exports={EXISTS:y,PROPER:T,CONFIGURABLE:C}},NCkV:function(m,x,e){"use strict";var u=e("1mOU"),h=e("m7zg"),d=e("aLaa"),g=e("WONN"),y=e("COGW"),T=e("WxoH"),C=e("XaNE"),N=e("NudO"),P=e("M/+V"),M=e("c3MK"),z=e("qzpy"),j=e("oK8H"),F=e("8Ys4"),V=e("3fk+"),L=e("WMbf"),k=e("RhGR"),et=e("eRwv"),W=k.UNSUPPORTED_Y,nt=4294967295,U=Math.min,lt=[].push,R=d(/./.exec),S=d(lt),w=d("".slice),I=!et(function(){var tt=/(?:)/,at=tt.exec;tt.exec=function(){return at.apply(this,arguments)};var Z="ab".split(tt);return Z.length!==2||Z[0]!=="a"||Z[1]!=="b"});g("split",function(tt,at,Z){var O;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?O=function($,b){var A=z(C(this)),H=b===void 0?nt:b>>>0;if(H===0)return[];if($===void 0)return[A];if(!y($))return h(at,A,$,H);for(var B=[],G=($.ignoreCase?"i":"")+($.multiline?"m":"")+($.unicode?"u":"")+($.sticky?"y":""),Q=0,Y=new RegExp($.source,G+"g"),X,J,ut;(X=h(L,Y,A))&&!(J=Y.lastIndex,J>Q&&(S(B,w(A,Q,X.index)),X.length>1&&X.index=H));)Y.lastIndex===X.index&&Y.lastIndex++;return Q===A.length?(ut||!R(Y,""))&&S(B,""):S(B,w(A,Q)),B.length>H?F(B,0,H):B}:"0".split(void 0,0).length?O=function($,b){return $===void 0&&b===0?[]:h(at,this,$,b)}:O=at,[function(b,A){var H=C(this),B=b==null?void 0:j(b,tt);return B?h(B,b,H,A):h(O,z(H),b,A)},function($,b){var A=T(this),H=z($),B=Z(O,A,H,b,O!==at);if(B.done)return B.value;var G=N(A,RegExp),Q=A.unicode,Y=(A.ignoreCase?"i":"")+(A.multiline?"m":"")+(A.unicode?"u":"")+(W?"g":"y"),X=new G(W?"^(?:"+A.source+")":A,Y),J=b===void 0?nt:b>>>0;if(J===0)return[];if(H.length===0)return V(X,H)===null?[H]:[];for(var ut=0,ct=0,vt=[];ct]*>)/g,N=/\$([$&'`]|\d{1,2})/g;m.exports=function(P,M,z,j,F,V){var L=z+P.length,k=j.length,et=N;return F!==void 0&&(F=h(F),et=C),y(V,et,function(W,nt){var U;switch(g(nt,0)){case"$":return"$";case"&":return P;case"`":return T(M,0,z);case"'":return T(M,L);case"<":U=F[T(nt,1,-1)];break;default:var lt=+nt;if(lt===0)return W;if(lt>k){var R=d(lt/10);return R===0?W:R<=k?j[R-1]===void 0?g(nt,1):j[R-1]+g(nt,1):W}U=j[lt-1]}return U===void 0?"":U})}},NudO:function(m,x,e){var u=e("WxoH"),h=e("Dk1u"),d=e("11yv"),g=d("species");m.exports=function(y,T){var C=u(y).constructor,N;return C===void 0||(N=u(C)[g])==null?T:h(N)}},Nybj:function(m,x,e){var u=e("vkZI"),h=e("n6S8"),d=e("tMNq"),g=function(y){return function(T,C,N){var P=u(T),M=d(P),z=h(N,M),j;if(y&&C!=C){for(;M>z;)if(j=P[z++],j!=j)return!0}else for(;M>z;z++)if((y||z in P)&&P[z]===C)return y||z||0;return!y&&-1}};m.exports={includes:g(!0),indexOf:g(!1)}},OU4x:function(m,x,e){var u=e("COGW"),h=TypeError;m.exports=function(d){if(u(d))throw h("The method doesn't accept regular expressions");return d}},Ppro:function(m,x,e){"use strict";var u=e("nCzB"),h=e("WMbf");u({target:"RegExp",proto:!0,forced:/./.exec!==h},{exec:h})},QELg:function(m,x,e){"use strict";var u=e("eRwv");m.exports=function(h,d){var g=[][h];return!!g&&u(function(){g.call(null,d||function(){return 1},1)})}},QrM1:function(m,x,e){var u=e("ZpKI"),h=e("Yzn+"),d=h.concat("length","prototype");x.f=Object.getOwnPropertyNames||function(y){return u(y,d)}},"RXj+":function(m,x,e){var u=e("aLaa"),h=e("XaNE"),d=e("qzpy"),g=e("noWC"),y=u("".replace),T="["+g+"]",C=RegExp("^"+T+T+"*"),N=RegExp(T+T+"*$"),P=function(M){return function(z){var j=d(h(z));return M&1&&(j=y(j,C,"")),M&2&&(j=y(j,N,"")),j}};m.exports={start:P(1),end:P(2),trim:P(3)}},RYfq:function(m,x,e){var u=e("Ks5W"),h=e("JTf3"),d=function(g){return h(g)?g:void 0};m.exports=function(g,y){return arguments.length<2?d(u[g]):u[g]&&u[g][y]}},RhGR:function(m,x,e){var u=e("eRwv"),h=e("Ks5W"),d=h.RegExp,g=u(function(){var C=d("a","y");return C.lastIndex=2,C.exec("abcd")!=null}),y=g||u(function(){return!d("a","y").sticky}),T=g||u(function(){var C=d("^r","gy");return C.lastIndex=2,C.exec("str")!=null});m.exports={BROKEN_CARET:T,MISSED_STICKY:y,UNSUPPORTED_Y:g}},S3az:function(m,x,e){var u=e("Ks5W"),h=e("JTf3"),d=e("sNJV"),g=u.WeakMap;m.exports=h(g)&&/native code/.test(d(g))},SN6V:function(m,x,e){var u=e("/dXc");m.exports=function(h){var d=+h;return d!==d||d===0?0:u(d)}},"ST+I":function(m,x,e){var u=e("aNr2"),h=e("MURR"),d=u("keys");m.exports=function(g){return d[g]||(d[g]=h(g))}},SkNP:function(m,x){m.exports={}},SwuV:function(m,x,e){var u=e("JTf3");m.exports=function(h){return typeof h=="object"?h!==null:u(h)}},TRzv:function(m,x,e){var u=e("WxoH"),h=e("SwuV"),d=e("zFjv");m.exports=function(g,y){if(u(g),h(y)&&y.constructor===g)return y;var T=d.f(g),C=T.resolve;return C(y),T.promise}},Ttl4:function(m,x,e){var u=e("YELS"),h=e("x1+7"),d=e("fKql"),g=e("FlRv");m.exports=function(y,T,C){for(var N=h(T),P=g.f,M=d.f,z=0;z0&&(!w.multiline||w.multiline&&V(tt,w.lastIndex-1)!==` -`)&&(X="(?: "+X+")",ut=" "+ut,J++),O=new RegExp("^(?:"+X+")",Y)),U&&(O=new RegExp("^"+X+"$(?!\\s)",Y)),W&&($=w.lastIndex),b=u(j,Q?O:w,ut),Q?b?(b.input=et(b.input,J),b[0]=et(b[0],J),b.index=w.lastIndex,w.lastIndex+=b[0].length):w.lastIndex=0:W&&b&&(w.lastIndex=w.global?b.index+b[0].length:$),U&&b&&b.length>1&&u(z,b[0],O,function(){for(A=1;A3&&(this.alpha=C[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var N=this.r.toString(16),P=this.g.toString(16),M=this.b.toString(16);return N.length==1&&(N="0"+N),P.length==1&&(P="0"+P),M.length==1&&(M="0"+M),"#"+N+P+M},this.getHelpXML=function(){for(var N=new Array,P=0;P "+L.toRGB()+" -> "+L.toHex());V.appendChild(k),V.appendChild(et),F.appendChild(V)}catch(nt){}return F}}},WONN:function(m,x,e){"use strict";e("Ppro");var u=e("aLaa"),h=e("WaP5"),d=e("WMbf"),g=e("eRwv"),y=e("11yv"),T=e("8ODz"),C=y("species"),N=RegExp.prototype;m.exports=function(P,M,z,j){var F=y(P),V=!g(function(){var W={};return W[F]=function(){return 7},""[P](W)!=7}),L=V&&!g(function(){var W=!1,nt=/a/;return P==="split"&&(nt={},nt.constructor={},nt.constructor[C]=function(){return nt},nt.flags="",nt[F]=/./[F]),nt.exec=function(){return W=!0,null},nt[F](""),!W});if(!V||!L||z){var k=u(/./[F]),et=M(F,""[P],function(W,nt,U,lt,R){var S=u(W),w=nt.exec;return w===d||w===N.exec?V&&!R?{done:!0,value:k(nt,U,lt)}:{done:!0,value:S(U,nt,lt)}:{done:!1}});h(String.prototype,P,et[0]),h(N,F,et[1])}j&&T(N[F],"sham",!0)}},WaP5:function(m,x,e){var u=e("JTf3"),h=e("FlRv"),d=e("3DCu"),g=e("X4md");m.exports=function(y,T,C,N){N||(N={});var P=N.enumerable,M=N.name!==void 0?N.name:T;if(u(C)&&d(C,M,N),N.global)P?y[T]=C:g(T,C);else{try{N.unsafe?y[T]&&(P=!0):delete y[T]}catch(z){}P?y[T]=C:h.f(y,T,{value:C,enumerable:!1,configurable:!N.nonConfigurable,writable:!N.nonWritable})}return y}},WxoH:function(m,x,e){var u=e("SwuV"),h=String,d=TypeError;m.exports=function(g){if(u(g))return g;throw d(h(g)+" is not an object")}},"X/EZ":function(m,x,e){var u=e("11yv"),h=u("iterator"),d=!1;try{var g=0,y={next:function(){return{done:!!g++}},return:function(){d=!0}};y[h]=function(){return this},Array.from(y,function(){throw 2})}catch(T){}m.exports=function(T,C){if(!C&&!d)return!1;var N=!1;try{var P={};P[h]=function(){return{next:function(){return{done:N=!0}}}},T(P)}catch(M){}return N}},X4md:function(m,x,e){var u=e("Ks5W"),h=Object.defineProperty;m.exports=function(d,g){try{h(u,d,{value:g,configurable:!0,writable:!0})}catch(y){u[d]=g}return g}},XFuk:function(m,x,e){var u=e("WxoH"),h=e("oR5W"),d=e("Yzn+"),g=e("SkNP"),y=e("bUA4"),T=e("me6S"),C=e("ST+I"),N=">",P="<",M="prototype",z="script",j=C("IE_PROTO"),F=function(){},V=function(nt){return P+z+N+nt+P+"/"+z+N},L=function(nt){nt.write(V("")),nt.close();var U=nt.parentWindow.Object;return nt=null,U},k=function(){var nt=T("iframe"),U="java"+z+":",lt;return nt.style.display="none",y.appendChild(nt),nt.src=String(U),lt=nt.contentWindow.document,lt.open(),lt.write(V("document.F=Object")),lt.close(),lt.F},et,W=function(){try{et=new ActiveXObject("htmlfile")}catch(U){}W=typeof document!="undefined"?document.domain&&et?L(et):k():L(et);for(var nt=d.length;nt--;)delete W[M][d[nt]];return W()};g[j]=!0,m.exports=Object.create||function(U,lt){var R;return U!==null?(F[M]=u(U),R=new F,F[M]=null,R[j]=U):R=W(),lt===void 0?R:h.f(R,lt)}},XTcp:function(m,x,e){var u=e("Ks5W"),h=e("1mOU"),d=e("mcoe"),g=e("JTf3"),y=e("YELS"),T=e("eRwv"),C=e("bUA4"),N=e("0r2v"),P=e("me6S"),M=e("k2qh"),z=e("GgKt"),j=e("IGIO"),F=u.setImmediate,V=u.clearImmediate,L=u.process,k=u.Dispatch,et=u.Function,W=u.MessageChannel,nt=u.String,U=0,lt={},R="onreadystatechange",S,w,I,tt;try{S=u.location}catch(b){}var at=function(b){if(y(lt,b)){var A=lt[b];delete lt[b],A()}},Z=function(b){return function(){at(b)}},O=function(b){at(b.data)},$=function(b){u.postMessage(nt(b),S.protocol+"//"+S.host)};(!F||!V)&&(F=function(A){M(arguments.length,1);var H=g(A)?A:et(A),B=N(arguments,1);return lt[++U]=function(){h(H,void 0,B)},w(U),U},V=function(A){delete lt[A]},j?w=function(b){L.nextTick(Z(b))}:k&&k.now?w=function(b){k.now(Z(b))}:W&&!z?(I=new W,tt=I.port2,I.port1.onmessage=O,w=d(tt.postMessage,tt)):u.addEventListener&&g(u.postMessage)&&!u.importScripts&&S&&S.protocol!=="file:"&&!T($)?(w=$,u.addEventListener("message",O,!1)):R in P("script")?w=function(b){C.appendChild(P("script"))[R]=function(){C.removeChild(this),at(b)}}:w=function(b){setTimeout(Z(b),0)}),m.exports={set:F,clear:V}},XaNE:function(m,x){var e=TypeError;m.exports=function(u){if(u==null)throw e("Can't call method on "+u);return u}},Xp4B:function(m,x,e){"use strict";e.d(x,"a",function(){return C});function u(j){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?u=function(V){return typeof V}:u=function(V){return V&&typeof Symbol=="function"&&V.constructor===Symbol&&V!==Symbol.prototype?"symbol":typeof V},u(j)}function h(j,F){if(!(j instanceof F))throw new TypeError("Cannot call a class as a function")}var d=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],g=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function y(j,F,V,L,k,et){if(typeof j=="string"&&(j=document.getElementById(j)),!j||!("naturalWidth"in j))return;var W=k?"offset":"natural",nt=j[W+"Width"],U=j[W+"Height"];if(typeof F=="string"&&(F=document.getElementById(F)),!F||!("getContext"in F))return;et||(F.style.width=nt+"px",F.style.height=U+"px"),F.width=nt,F.height=U;var lt=F.getContext("2d");if(lt.clearRect(0,0,nt,U),lt.drawImage(j,0,0,j.naturalWidth,j.naturalHeight,0,0,nt,U),isNaN(V)||V<1)return;L?C(F,0,0,nt,U,V):P(F,0,0,nt,U,V)}function T(j,F,V,L,k){if(typeof j=="string"&&(j=document.getElementById(j)),!j||u(j)!=="object"||!("getContext"in j))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var et=j.getContext("2d");try{return et.getImageData(F,V,L,k)}catch(W){throw new Error("unable to access image data: "+W)}}function C(j,F,V,L,k,et){if(isNaN(et)||et<1)return;et|=0;var W=T(j,F,V,L,k);W=N(W,F,V,L,k,et),j.getContext("2d").putImageData(W,F,V)}function N(j,F,V,L,k,et){for(var W=j.data,nt=2*et+1,U=L-1,lt=k-1,R=et+1,S=R*(R+1)/2,w=new z,I=w,tt,at=1;at>H;if(W[b+3]=ot,ot!==0){var pt=255/ot;W[b]=(Gt*A>>H)*pt,W[b+1]=(Mt*A>>H)*pt,W[b+2]=(Vt*A>>H)*pt}else W[b]=W[b+1]=W[b+2]=0;Gt-=Pt,Mt-=Ot,Vt-=jt,Ct-=Lt,Pt-=Z.r,Ot-=Z.g,jt-=Z.b,Lt-=Z.a;var bt=$t+et+1;bt=$+(bt>H,kt>0?(kt=255/kt,W[ne]=(me*A>>H)*kt,W[ne+1]=(ye*A>>H)*kt,W[ne+2]=(xe*A>>H)*kt):W[ne]=W[ne+1]=W[ne+2]=0,me-=Te,ye-=pe,xe-=Pe,Ee-=Se,Te-=Z.r,pe-=Z.g,Pe-=Z.b,Se-=Z.a,ne=qt+((ne=de+R)>b,W[G+1]=Pt*$>>b,W[G+2]=Ot*$>>b,Dt-=ut,Pt-=ct,Ot-=vt,ut-=Z.r,ct-=Z.g,vt-=Z.b,A=B+((A=Ct+et+1)>b,W[A+1]=ot*$>>b,W[A+2]=pt*$>>b,$t-=Jt,ot-=Nt,pt-=Tt,Jt-=Z.r,Nt-=Z.g,Tt-=Z.b,A=Ft+((A=qt+R)M;)h(P,j=N[M++])&&(~g(z,j)||T(z,j));return z}},a9Cf:function(m,x,e){var u=e("11yv"),h=u("toStringTag"),d={};d[h]="z",m.exports=String(d)==="[object z]"},aLaa:function(m,x,e){var u=e("66qH"),h=Function.prototype,d=h.bind,g=h.call,y=u&&d.bind(g,g);m.exports=u?function(T){return T&&y(T)}:function(T){return T&&function(){return g.apply(T,arguments)}}},aNIs:function(m,x,e){var u=e("Ks5W"),h=e("eE3R"),d=u.process,g=u.Deno,y=d&&d.versions||g&&g.version,T=y&&y.v8,C,N;T&&(C=T.split("."),N=C[0]>0&&C[0]<4?1:+(C[0]+C[1])),!N&&h&&(C=h.match(/Edge\/(\d+)/),(!C||C[1]>=74)&&(C=h.match(/Chrome\/(\d+)/),C&&(N=+C[1]))),m.exports=N},aNr2:function(m,x,e){var u=e("jybJ"),h=e("4gdG");(m.exports=function(d,g){return h[d]||(h[d]=g!==void 0?g:{})})("versions",[]).push({version:"3.23.4",mode:u?"pure":"global",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.4/LICENSE",source:"https://github.com/zloirock/core-js"})},bT0D:function(m,x,e){var u=e("RYfq"),h=e("JTf3"),d=e("3Xd8"),g=e("1Sr1"),y=Object;m.exports=g?function(T){return typeof T=="symbol"}:function(T){var C=u("Symbol");return h(C)&&d(C.prototype,y(T))}},bUA4:function(m,x,e){var u=e("RYfq");m.exports=u("document","documentElement")},ba8b:function(m,x,e){var u=e("aLaa"),h=u({}.toString),d=u("".slice);m.exports=function(g){return d(h(g),8,-1)}},c3MK:function(m,x,e){var u=e("SN6V"),h=Math.min;m.exports=function(d){return d>0?h(u(d),9007199254740991):0}},c55Z:function(m,x,e){var u=e("eRwv"),h=e("Ks5W"),d=h.RegExp;m.exports=u(function(){var g=d("(?b)","g");return g.exec("b").groups.a!=="b"||"b".replace(g,"$c")!=="bc"})},eE3R:function(m,x,e){var u=e("RYfq");m.exports=u("navigator","userAgent")||""},eRwv:function(m,x){m.exports=function(e){try{return!!e()}catch(u){return!0}}},fKql:function(m,x,e){var u=e("++4Y"),h=e("m7zg"),d=e("5r2E"),g=e("4uGi"),y=e("vkZI"),T=e("GTqx"),C=e("YELS"),N=e("pVCk"),P=Object.getOwnPropertyDescriptor;x.f=u?P:function(z,j){if(z=y(z),j=T(j),N)try{return P(z,j)}catch(F){}if(C(z,j))return g(!h(d.f,z,j),z[j])}},"g8+u":function(m,x,e){var u=e("a9Cf"),h=e("JTf3"),d=e("ba8b"),g=e("11yv"),y=g("toStringTag"),T=Object,C=d(function(){return arguments}())=="Arguments",N=function(P,M){try{return P[M]}catch(z){}};m.exports=u?d:function(P){var M,z,j;return P===void 0?"Undefined":P===null?"Null":typeof(z=N(M=T(P),y))=="string"?z:C?d(M):(j=d(M))=="Object"&&h(M.callee)?"Arguments":j}},g9jQ:function(m,x,e){"use strict";var u=e("nCzB"),h=e("aLaa"),d=e("Nybj").indexOf,g=e("QELg"),y=h([].indexOf),T=!!y&&1/y([1],1,-0)<0,C=g("indexOf");u({target:"Array",proto:!0,forced:T||!C},{indexOf:function(P){var M=arguments.length>1?arguments[1]:void 0;return T?y(this,P,M)||0:d(this,P,M)}})},gzPo:function(m,x,e){var u=e("Ks5W"),h=e("mcoe"),d=e("fKql").f,g=e("XTcp").set,y=e("GgKt"),T=e("FqHY"),C=e("/pbl"),N=e("IGIO"),P=u.MutationObserver||u.WebKitMutationObserver,M=u.document,z=u.process,j=u.Promise,F=d(u,"queueMicrotask"),V=F&&F.value,L,k,et,W,nt,U,lt,R;V||(L=function(){var S,w;for(N&&(S=z.domain)&&S.exit();k;){w=k.fn,k=k.next;try{w()}catch(I){throw k?W():et=void 0,I}}et=void 0,S&&S.enter()},!y&&!N&&!C&&P&&M?(nt=!0,U=M.createTextNode(""),new P(L).observe(U,{characterData:!0}),W=function(){U.data=nt=!nt}):!T&&j&&j.resolve?(lt=j.resolve(void 0),lt.constructor=j,R=h(lt.then,lt),W=function(){R(L)}):N?W=function(){z.nextTick(L)}:(g=h(g,u),W=function(){g(L)})),m.exports=V||function(S){var w={fn:S,next:void 0};et&&(et.next=w),k||(k=w,W()),et=w}},hIaP:function(m,x,e){var u=e("m7zg"),h=e("8HiI"),d=e("WxoH"),g=e("IL+x"),y=e("ltkU"),T=TypeError;m.exports=function(C,N){var P=arguments.length<2?y(C):N;if(h(P))return d(u(P,C));throw T(g(C)+" is not iterable")}},"iBj/":function(m,x,e){var u=e("m7zg"),h=e("WxoH"),d=e("oK8H");m.exports=function(g,y,T){var C,N;h(g);try{if(C=d(g,"return"),!C){if(y==="throw")throw T;return T}C=u(C,g)}catch(P){N=!0,C=P}if(y==="throw")throw T;if(N)throw C;return h(C),T}},iWRt:function(m,x,e){"use strict";var u=e("nCzB"),h=e("aLaa"),d=e("uZ/K"),g=h([].reverse),y=[1,2];u({target:"Array",proto:!0,forced:String(y)===String(y.reverse())},{reverse:function(){return d(this)&&(this.length=this.length),g(this)}})},jCYL:function(m,x,e){"use strict";var u=e("nCzB"),h=e("RYfq"),d=e("jybJ"),g=e("KLK4"),y=e("GxTi").CONSTRUCTOR,T=e("TRzv"),C=h("Promise"),N=d&&!y;u({target:"Promise",stat:!0,forced:d||y},{resolve:function(M){return T(N&&this===C?g:this,M)}})},jgt4:function(m,x,e){"use strict";var u=e("nCzB"),h=e("m7zg"),d=e("jybJ"),g=e("N6FT"),y=e("JTf3"),T=e("3agc"),C=e("WLJ+"),N=e("JHvW"),P=e("ueY1"),M=e("8ODz"),z=e("WaP5"),j=e("11yv"),F=e("AoAp"),V=e("qjFr"),L=g.PROPER,k=g.CONFIGURABLE,et=V.IteratorPrototype,W=V.BUGGY_SAFARI_ITERATORS,nt=j("iterator"),U="keys",lt="values",R="entries",S=function(){return this};m.exports=function(w,I,tt,at,Z,O,$){T(tt,I,at);var b=function(ct){if(ct===Z&&Q)return Q;if(!W&&ct in B)return B[ct];switch(ct){case U:return function(){return new tt(this,ct)};case lt:return function(){return new tt(this,ct)};case R:return function(){return new tt(this,ct)}}return function(){return new tt(this)}},A=I+" Iterator",H=!1,B=w.prototype,G=B[nt]||B["@@iterator"]||Z&&B[Z],Q=!W&&G||b(Z),Y=I=="Array"&&B.entries||G,X,J,ut;if(Y&&(X=C(Y.call(new w)),X!==Object.prototype&&X.next&&(!d&&C(X)!==et&&(N?N(X,et):y(X[nt])||z(X,nt,S)),P(X,A,!0,!0),d&&(F[A]=S))),L&&Z==lt&&G&&G.name!==lt&&(!d&&k?M(B,"name",lt):(H=!0,Q=function(){return h(G,this)})),Z)if(J={values:b(lt),keys:O?Q:b(U),entries:b(R)},$)for(ut in J)(W||H||!(ut in B))&&z(B,ut,J[ut]);else u({target:I,proto:!0,forced:W||H},J);return(!d||$)&&B[nt]!==Q&&z(B,nt,Q,{name:Z}),F[I]=Q,J}},jybJ:function(m,x){m.exports=!1},k2qh:function(m,x){var e=TypeError;m.exports=function(u,h){if(u79&&g<83;u({target:"Array",proto:!0,forced:!T||C},{reduce:function(P){var M=arguments.length;return h(this,P,M,M>1?arguments[1]:void 0)}})},me6S:function(m,x,e){var u=e("Ks5W"),h=e("SwuV"),d=u.document,g=h(d)&&h(d.createElement);m.exports=function(y){return g?d.createElement(y):{}}},ms20:function(m,x,e){var u=e("m7zg"),h=e("SwuV"),d=e("bT0D"),g=e("oK8H"),y=e("2lHc"),T=e("11yv"),C=TypeError,N=T("toPrimitive");m.exports=function(P,M){if(!h(P)||d(P))return P;var z=g(P,N),j;if(z){if(M===void 0&&(M="default"),j=u(z,P,M),!h(j)||d(j))return j;throw C("Can't convert object to primitive value")}return M===void 0&&(M="number"),y(P,M)}},n6S8:function(m,x,e){var u=e("SN6V"),h=Math.max,d=Math.min;m.exports=function(g,y){var T=u(g);return T<0?h(T+y,0):d(T,y)}},nCzB:function(m,x,e){var u=e("Ks5W"),h=e("fKql").f,d=e("8ODz"),g=e("WaP5"),y=e("X4md"),T=e("Ttl4"),C=e("mGb/");m.exports=function(N,P){var M=N.target,z=N.global,j=N.stat,F,V,L,k,et,W;if(z?V=u:j?V=u[M]||y(M,{}):V=(u[M]||{}).prototype,V)for(L in P){if(et=P[L],N.dontCallGetSet?(W=h(V,L),k=W&&W.value):k=V[L],F=C(z?L:M+(j?".":"#")+L,N.forced),!F&&k!==void 0){if(typeof et==typeof k)continue;T(et,k)}(N.sham||k&&k.sham)&&d(et,"sham",!0),g(V,L,et,N)}}},noWC:function(m,x){m.exports=` -\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},nvEG:function(m,x,e){var u=e("mcoe"),h=e("m7zg"),d=e("WxoH"),g=e("IL+x"),y=e("3n0U"),T=e("tMNq"),C=e("3Xd8"),N=e("hIaP"),P=e("ltkU"),M=e("iBj/"),z=TypeError,j=function(V,L){this.stopped=V,this.result=L},F=j.prototype;m.exports=function(V,L,k){var et=k&&k.that,W=!!(k&&k.AS_ENTRIES),nt=!!(k&&k.IS_RECORD),U=!!(k&&k.IS_ITERATOR),lt=!!(k&&k.INTERRUPTED),R=u(L,et),S,w,I,tt,at,Z,O,$=function(A){return S&&M(S,"normal",A),new j(!0,A)},b=function(A){return W?(d(A),lt?R(A[0],A[1],$):R(A[0],A[1])):lt?R(A,$):R(A)};if(nt)S=V.iterator;else if(U)S=V;else{if(w=P(V),!w)throw z(g(V)+" is not iterable");if(y(w)){for(I=0,tt=T(V);tt>I;I++)if(at=b(V[I]),at&&C(F,at))return at;return new j(!1)}S=N(V,w)}for(Z=nt?V.next:S.next;!(O=h(Z,S)).done;){try{at=b(O.value)}catch(A){M(S,"throw",A)}if(typeof at=="object"&&at&&C(F,at))return at}return new j(!1)}},oK8H:function(m,x,e){var u=e("8HiI");m.exports=function(h,d){var g=h[d];return g==null?void 0:u(g)}},oR5W:function(m,x,e){var u=e("++4Y"),h=e("FkIU"),d=e("FlRv"),g=e("WxoH"),y=e("vkZI"),T=e("Ai06");x.f=u&&!h?Object.defineProperties:function(N,P){g(N);for(var M=y(P),z=T(P),j=z.length,F=0,V;j>F;)d.f(N,V=z[F++],M[V]);return N}},oauk:function(m,x,e){"use strict";var u=e("GTqx"),h=e("FlRv"),d=e("4uGi");m.exports=function(g,y,T){var C=u(y);C in g?h.f(g,C,d(0,T)):g[C]=T}},p5Ma:function(m,x,e){var u=e("aLaa"),h=e("eRwv"),d=e("ba8b"),g=Object,y=u("".split);m.exports=h(function(){return!g("z").propertyIsEnumerable(0)})?function(T){return d(T)=="String"?y(T,""):g(T)}:g},pVCk:function(m,x,e){var u=e("++4Y"),h=e("eRwv"),d=e("me6S");m.exports=!u&&!h(function(){return Object.defineProperty(d("div"),"a",{get:function(){return 7}}).a!=7})},"plO+":function(m,x,e){var u=e("aNIs"),h=e("eRwv");m.exports=!!Object.getOwnPropertySymbols&&!h(function(){var d=Symbol();return!String(d)||!(Object(d)instanceof Symbol)||!Symbol.sham&&u&&u<41})},qJvV:function(m,x,e){var u=e("Ks5W"),h=e("ENhe"),d=e("GI0h"),g=e("Lltv"),y=e("8ODz"),T=e("11yv"),C=T("iterator"),N=T("toStringTag"),P=g.values,M=function(j,F){if(j){if(j[C]!==P)try{y(j,C,P)}catch(L){j[C]=P}if(j[N]||y(j,N,F),h[F]){for(var V in g)if(j[V]!==g[V])try{y(j,V,g[V])}catch(L){j[V]=g[V]}}}};for(var z in h)M(u[z]&&u[z].prototype,z);M(d,"DOMTokenList")},qjFr:function(m,x,e){"use strict";var u=e("eRwv"),h=e("JTf3"),d=e("XFuk"),g=e("WLJ+"),y=e("WaP5"),T=e("11yv"),C=e("jybJ"),N=T("iterator"),P=!1,M,z,j;[].keys&&(j=[].keys(),"next"in j?(z=g(g(j)),z!==Object.prototype&&(M=z)):P=!0);var F=M==null||u(function(){var V={};return M[N].call(V)!==V});F?M={}:C&&(M=d(M)),h(M[N])||y(M,N,function(){return this}),m.exports={IteratorPrototype:M,BUGGY_SAFARI_ITERATORS:P}},qzpy:function(m,x,e){var u=e("g8+u"),h=String;m.exports=function(d){if(u(d)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return h(d)}},sNJV:function(m,x,e){var u=e("aLaa"),h=e("JTf3"),d=e("4gdG"),g=u(Function.toString);h(d.inspectSource)||(d.inspectSource=function(y){return g(y)}),m.exports=d.inspectSource},tMNq:function(m,x,e){var u=e("c3MK");m.exports=function(h){return u(h.length)}},tZjp:function(m,x,e){"use strict";var u=e("nCzB"),h=e("jybJ"),d=e("IGIO"),g=e("Ks5W"),y=e("m7zg"),T=e("WaP5"),C=e("JHvW"),N=e("ueY1"),P=e("9Bi7"),M=e("8HiI"),z=e("JTf3"),j=e("SwuV"),F=e("uoua"),V=e("NudO"),L=e("XTcp").set,k=e("gzPo"),et=e("lAFk"),W=e("8xe4"),nt=e("zUnQ"),U=e("UQ6y"),lt=e("KLK4"),R=e("GxTi"),S=e("zFjv"),w="Promise",I=R.CONSTRUCTOR,tt=R.REJECTION_EVENT,at=R.SUBCLASSING,Z=U.getterFor(w),O=U.set,$=lt&<.prototype,b=lt,A=$,H=g.TypeError,B=g.document,G=g.process,Q=S.f,Y=Q,X=!!(B&&B.createEvent&&g.dispatchEvent),J="unhandledrejection",ut="rejectionhandled",ct=0,vt=1,Dt=2,Pt=1,Ot=2,jt,Lt,Gt,Mt,Vt=function(ot){var pt;return j(ot)&&z(pt=ot.then)?pt:!1},Ct=function(ot,pt){var bt=pt.value,Rt=pt.state==vt,It=Rt?ot.ok:ot.fail,re=ot.resolve,se=ot.reject,le=ot.domain,qt,fe,ee;try{It?(Rt||(pt.rejection===Ot&&Jt(pt),pt.rejection=Pt),It===!0?qt=bt:(le&&le.enter(),qt=It(bt),le&&(le.exit(),ee=!0)),qt===ot.promise?se(H("Promise-chain cycle")):(fe=Vt(qt))?y(fe,qt,re,se):re(qt)):se(bt)}catch(he){le&&!ee&&le.exit(),se(he)}},Ft=function(ot,pt){if(ot.notified)return;ot.notified=!0,k(function(){for(var bt=ot.reactions,Rt;Rt=bt.get();)Ct(Rt,ot);ot.notified=!1,pt&&!ot.rejection&&Yt(ot)})},zt=function(ot,pt,bt){var Rt,It;X?(Rt=B.createEvent("Event"),Rt.promise=pt,Rt.reason=bt,Rt.initEvent(ot,!1,!0),g.dispatchEvent(Rt)):Rt={promise:pt,reason:bt},!tt&&(It=g["on"+ot])?It(Rt):ot===J&&et("Unhandled promise rejection",bt)},Yt=function(ot){y(L,g,function(){var pt=ot.facade,bt=ot.value,Rt=Ut(ot),It;if(Rt&&(It=W(function(){d?G.emit("unhandledRejection",bt,pt):zt(J,pt,bt)}),ot.rejection=d||Ut(ot)?Ot:Pt,It.error))throw It.value})},Ut=function(ot){return ot.rejection!==Pt&&!ot.parent},Jt=function(ot){y(L,g,function(){var pt=ot.facade;d?G.emit("rejectionHandled",pt):zt(ut,pt,ot.value)})},Nt=function(ot,pt,bt){return function(Rt){ot(pt,Rt,bt)}},Tt=function(ot,pt,bt){if(ot.done)return;ot.done=!0,bt&&(ot=bt),ot.value=pt,ot.state=Dt,Ft(ot,!0)},$t=function(ot,pt,bt){if(ot.done)return;ot.done=!0,bt&&(ot=bt);try{if(ot.facade===pt)throw H("Promise can't be resolved itself");var Rt=Vt(pt);Rt?k(function(){var It={done:!1};try{y(Rt,pt,Nt($t,It,ot),Nt(Tt,It,ot))}catch(re){Tt(It,re,ot)}}):(ot.value=pt,ot.state=vt,Ft(ot,!1))}catch(It){Tt({done:!1},It,ot)}};if(I&&(b=function(pt){F(this,A),M(pt),y(jt,this);var bt=Z(this);try{pt(Nt($t,bt),Nt(Tt,bt))}catch(Rt){Tt(bt,Rt)}},A=b.prototype,jt=function(pt){O(this,{type:w,done:!1,notified:!1,parent:!1,reactions:new nt,rejection:!1,state:ct,value:void 0})},jt.prototype=T(A,"then",function(pt,bt){var Rt=Z(this),It=Q(V(this,b));return Rt.parent=!0,It.ok=z(pt)?pt:!0,It.fail=z(bt)&&bt,It.domain=d?G.domain:void 0,Rt.state==ct?Rt.reactions.add(It):k(function(){Ct(It,Rt)}),It.promise}),Lt=function(){var ot=new jt,pt=Z(ot);this.promise=ot,this.resolve=Nt($t,pt),this.reject=Nt(Tt,pt)},S.f=Q=function(ot){return ot===b||ot===Gt?new Lt(ot):Y(ot)},!h&&z(lt)&&$!==Object.prototype)){Mt=$.then,at||T($,"then",function(pt,bt){var Rt=this;return new b(function(It,re){y(Mt,Rt,It,re)}).then(pt,bt)},{unsafe:!0});try{delete $.constructor}catch(ot){}C&&C($,A)}u({global:!0,constructor:!0,wrap:!0,forced:I},{Promise:b}),N(b,w,!1,!0),P(w)},"uZ/K":function(m,x,e){var u=e("ba8b");m.exports=Array.isArray||function(d){return u(d)=="Array"}},ueY1:function(m,x,e){var u=e("FlRv").f,h=e("YELS"),d=e("11yv"),g=d("toStringTag");m.exports=function(y,T,C){y&&!C&&(y=y.prototype),y&&!h(y,g)&&u(y,g,{configurable:!0,value:T})}},uoua:function(m,x,e){var u=e("3Xd8"),h=TypeError;m.exports=function(d,g){if(u(g,d))return d;throw h("Incorrect invocation")}},vTDQ:function(m,x){m.exports=typeof window=="object"&&typeof Deno!="object"},vkZI:function(m,x,e){var u=e("p5Ma"),h=e("XaNE");m.exports=function(d){return u(h(d))}},vrKp:function(m,x,e){e("tZjp"),e("A2dy"),e("13vt"),e("D0VN"),e("ESVS"),e("jCYL")},wOD2:function(m,x,e){"use strict";var u=e("nCzB"),h=e("RXj+").trim,d=e("5JCY");u({target:"String",proto:!0,forced:d("trim")},{trim:function(){return h(this)}})},"x1+7":function(m,x,e){var u=e("RYfq"),h=e("aLaa"),d=e("QrM1"),g=e("UCFi"),y=e("WxoH"),T=h([].concat);m.exports=u("Reflect","ownKeys")||function(N){var P=d.f(y(N)),M=g.f;return M?T(P,M(N)):P}},x8x8:function(m,x,e){"use strict";var u=e("1mOU"),h=e("m7zg"),d=e("aLaa"),g=e("WONN"),y=e("eRwv"),T=e("WxoH"),C=e("JTf3"),N=e("SN6V"),P=e("c3MK"),M=e("qzpy"),z=e("XaNE"),j=e("M/+V"),F=e("oK8H"),V=e("Ne/+"),L=e("3fk+"),k=e("11yv"),et=k("replace"),W=Math.max,nt=Math.min,U=d([].concat),lt=d([].push),R=d("".indexOf),S=d("".slice),w=function(Z){return Z===void 0?Z:String(Z)},I=function(){return"a".replace(/./,"$0")==="$0"}(),tt=function(){return/./[et]?/./[et]("a","$0")==="":!1}(),at=!y(function(){var Z=/./;return Z.exec=function(){var O=[];return O.groups={a:"7"},O},"".replace(Z,"$")!=="7"});g("replace",function(Z,O,$){var b=tt?"$":"$0";return[function(H,B){var G=z(this),Q=H==null?void 0:F(H,et);return Q?h(Q,H,G,B):h(O,M(G),H,B)},function(A,H){var B=T(this),G=M(A);if(typeof H=="string"&&R(H,b)===-1&&R(H,"$<")===-1){var Q=$(O,B,G,H);if(Q.done)return Q.value}var Y=C(H);Y||(H=M(H));var X=B.global;if(X){var J=B.unicode;B.lastIndex=0}for(var ut=[];;){var ct=L(B,G);if(ct===null)break;if(lt(ut,ct),!X)break;var vt=M(ct[0]);vt===""&&(B.lastIndex=j(G,P(B.lastIndex),J))}for(var Dt="",Pt=0,Ot=0;Ot=Pt&&(Dt+=S(G,Pt,Lt)+Ft,Pt=Lt+jt.length)}return Dt+S(G,Pt)}]},!at||!I||tt)},yD9w:function(m,x,e){"use strict";var u=e("N6FT").PROPER,h=e("WaP5"),d=e("WxoH"),g=e("qzpy"),y=e("eRwv"),T=e("Vgcz"),C="toString",N=RegExp.prototype,P=N[C],M=y(function(){return P.call({source:"a",flags:"b"})!="/a/b"}),z=u&&P.name!=C;(M||z)&&h(RegExp.prototype,C,function(){var F=d(this),V=g(F.source),L=g(T(F));return"/"+V+"/"+L},{unsafe:!0})},yXPU:function(m,x){function e(h,d,g,y,T,C,N){try{var P=h[C](N),M=P.value}catch(z){g(z);return}P.done?d(M):Promise.resolve(M).then(y,T)}function u(h){return function(){var d=this,g=arguments;return new Promise(function(y,T){var C=h.apply(d,g);function N(M){e(C,y,T,N,P,"next",M)}function P(M){e(C,y,T,N,P,"throw",M)}N(void 0)})}}m.exports=u,m.exports.__esModule=!0,m.exports.default=m.exports},ymN0:function(m,x,e){var u=e("aLaa"),h=e("SN6V"),d=e("qzpy"),g=e("XaNE"),y=u("".charAt),T=u("".charCodeAt),C=u("".slice),N=function(P){return function(M,z){var j=d(g(M)),F=h(z),V=j.length,L,k;return F<0||F>=V?P?"":void 0:(L=T(j,F),L<55296||L>56319||F+1===V||(k=T(j,F+1))<56320||k>57343?P?y(j,F):L:P?C(j,F,F+2):(L-55296<<10)+(k-56320)+65536)}};m.exports={codeAt:N(!1),charAt:N(!0)}},zFjv:function(m,x,e){"use strict";var u=e("8HiI"),h=function(d){var g,y;this.promise=new d(function(T,C){if(g!==void 0||y!==void 0)throw TypeError("Bad Promise constructor");g=T,y=C}),this.resolve=u(g),this.reject=u(y)};m.exports.f=function(d){return new h(d)}},zUnQ:function(m,x){var e=function(){this.head=null,this.tail=null};e.prototype={add:function(u){var h={item:u,next:null};this.head?this.tail.next=h:this.head=h,this.tail=h},get:function(){var u=this.head;if(u)return this.head=u.next,this.tail===u&&(this.tail=null),u.item}},m.exports=e}}]); +***************************************************************************** */var u=function(S,U){return(u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(I,tt){I.__proto__=tt}||function(I,tt){for(var at in tt)Object.prototype.hasOwnProperty.call(tt,at)&&(I[at]=tt[at])})(S,U)};function h(R,S){if(typeof S!="function"&&S!==null)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");function U(){this.constructor=R}u(R,S),R.prototype=S===null?Object.create(S):(U.prototype=S.prototype,new U)}function d(R){var S="";Array.isArray(R)||(R=[R]);for(var U=0;UR.phi1&&(R.phi2-=2*T),R.sweepFlag===1&&R.phi2I)return[];if(I===0)return[[R*U/(R*R+S*S),S*U/(R*R+S*S)]];var tt=Math.sqrt(I);return[[(R*U+S*tt)/(R*R+S*S),(S*U-R*tt)/(R*R+S*S)],[(R*U-S*tt)/(R*R+S*S),(S*U+R*tt)/(R*R+S*S)]]}var P,M=Math.PI/180;function G(R,S,U){return(1-U)*R+U*S}function j(R,S,U,I){return R+Math.cos(I/180*T)*S+Math.sin(I/180*T)*U}function F(R,S,U,I){var tt=1e-6,at=S-R,Z=U-S,O=3*at+3*(I-U)-6*Z,$=6*(Z-at),b=3*at;return Math.abs(O)Ot&&(z.sweepFlag=+!z.sweepFlag),z})}function Z(){return function(O){var $={};for(var b in O)$[b]=O[b];return $}}R.ROUND=function(O){function $(b){return Math.round(b*O)/O}return O===void 0&&(O=1e13),y(O),function(b){return b.x1!==void 0&&(b.x1=$(b.x1)),b.y1!==void 0&&(b.y1=$(b.y1)),b.x2!==void 0&&(b.x2=$(b.x2)),b.y2!==void 0&&(b.y2=$(b.y2)),b.x!==void 0&&(b.x=$(b.x)),b.y!==void 0&&(b.y=$(b.y)),b.rX!==void 0&&(b.rX=$(b.rX)),b.rY!==void 0&&(b.rY=$(b.rY)),b}},R.TO_ABS=S,R.TO_REL=function(){return tt(function(O,$,b){return O.relative||(O.x1!==void 0&&(O.x1-=$),O.y1!==void 0&&(O.y1-=b),O.x2!==void 0&&(O.x2-=$),O.y2!==void 0&&(O.y2-=b),O.x!==void 0&&(O.x-=$),O.y!==void 0&&(O.y-=b),O.relative=!0),O})},R.NORMALIZE_HVZ=function(O,$,b){return O===void 0&&(O=!0),$===void 0&&($=!0),b===void 0&&(b=!0),tt(function(A,H,B,z,Q){if(isNaN(z)&&!(A.type&w.MOVE_TO))throw new Error("path must start with moveto");return $&&A.type&w.HORIZ_LINE_TO&&(A.type=w.LINE_TO,A.y=A.relative?0:B),b&&A.type&w.VERT_LINE_TO&&(A.type=w.LINE_TO,A.x=A.relative?0:H),O&&A.type&w.CLOSE_PATH&&(A.type=w.LINE_TO,A.x=A.relative?z-H:z,A.y=A.relative?Q-B:Q),A.type&w.ARC&&(A.rX===0||A.rY===0)&&(A.type=w.LINE_TO,delete A.rX,delete A.rY,delete A.xRot,delete A.lArcFlag,delete A.sweepFlag),A})},R.NORMALIZE_ST=U,R.QT_TO_C=I,R.INFO=tt,R.SANITIZE=function(O){O===void 0&&(O=0),y(O);var $=NaN,b=NaN,A=NaN,H=NaN;return tt(function(B,z,Q,Y,X){var J=Math.abs,ut=!1,ct=0,vt=0;if(B.type&w.SMOOTH_CURVE_TO&&(ct=isNaN($)?0:z-$,vt=isNaN(b)?0:Q-b),B.type&(w.CURVE_TO|w.SMOOTH_CURVE_TO)?($=B.relative?z+B.x2:B.x2,b=B.relative?Q+B.y2:B.y2):($=NaN,b=NaN),B.type&w.SMOOTH_QUAD_TO?(A=isNaN(A)?z:2*z-A,H=isNaN(H)?Q:2*Q-H):B.type&w.QUAD_TO?(A=B.relative?z+B.x1:B.x1,H=B.relative?Q+B.y1:B.y2):(A=NaN,H=NaN),B.type&w.LINE_COMMANDS||B.type&w.ARC&&(B.rX===0||B.rY===0||!B.lArcFlag)||B.type&w.CURVE_TO||B.type&w.SMOOTH_CURVE_TO||B.type&w.QUAD_TO||B.type&w.SMOOTH_QUAD_TO){var Dt=B.x===void 0?0:B.relative?B.x:B.x-z,Pt=B.y===void 0?0:B.relative?B.y:B.y-Q;ct=isNaN(A)?B.x1===void 0?ct:B.relative?B.x:B.x1-z:A-z,vt=isNaN(H)?B.y1===void 0?vt:B.relative?B.y:B.y1-Q:H-Q;var Ot=B.x2===void 0?0:B.relative?B.x:B.x2-z,jt=B.y2===void 0?0:B.relative?B.y:B.y2-Q;J(Dt)<=O&&J(Pt)<=O&&J(ct)<=O&&J(vt)<=O&&J(Ot)<=O&&J(jt)<=O&&(ut=!0)}return B.type&w.CLOSE_PATH&&J(z-Y)<=O&&J(Q-X)<=O&&(ut=!0),ut?[]:B})},R.MATRIX=at,R.ROTATE=function(O,$,b){$===void 0&&($=0),b===void 0&&(b=0),y(O,$,b);var A=Math.sin(O),H=Math.cos(O);return at(H,A,-A,H,$-$*H+b*A,b-$*A-b*H)},R.TRANSLATE=function(O,$){return $===void 0&&($=0),y(O,$),at(1,0,0,1,O,$)},R.SCALE=function(O,$){return $===void 0&&($=O),y(O,$),at(O,0,0,$,0,0)},R.SKEW_X=function(O){return y(O),at(1,0,Math.atan(O),1,0,0)},R.SKEW_Y=function(O){return y(O),at(1,Math.atan(O),0,1,0,0)},R.X_AXIS_SYMMETRY=function(O){return O===void 0&&(O=0),y(O),at(-1,0,0,1,O,0)},R.Y_AXIS_SYMMETRY=function(O){return O===void 0&&(O=0),y(O),at(1,0,0,-1,0,O)},R.A_TO_C=function(){return tt(function(O,$,b){return w.ARC===O.type?function(A,H,B){var z,Q,Y,X;A.cX||C(A,H,B);for(var J=Math.min(A.phi1,A.phi2),ut=Math.max(A.phi1,A.phi2)-J,ct=Math.ceil(ut/90),vt=new Array(ct),Dt=H,Pt=B,Ot=0;OtH.maxX&&(H.maxX=Tt),TtH.maxY&&(H.maxY=Tt),TtNt&&X(V(z,Y.x1,Y.x2,Y.x,Nt));for(var vt=0,Dt=F(Q,Y.y1,Y.y2,Y.y);vtNt&&J(V(Q,Y.y1,Y.y2,Y.y,Nt))}if(Y.type&w.ARC){X(Y.x),J(Y.y),C(Y,z,Q);for(var Pt=Y.xRot/180*Math.PI,Ot=Math.cos(Pt)*Y.rX,jt=Math.sin(Pt)*Y.rX,Lt=-Math.sin(Pt)*Y.rY,Gt=Math.cos(Pt)*Y.rY,Mt=Y.phi1Y.phi2?[Y.phi2+360,Y.phi1+360]:[Y.phi2,Y.phi1],Vt=Mt[0],Ct=Mt[1],Ft=function($t){var ot=$t[0],pt=$t[1],bt=180*Math.atan2(pt,ot)/Math.PI;return btVt&&NtVt&&NtA)throw new SyntaxError('Expected positive number, got "'+A+'" at index "'+Z+'"')}else if((this.curArgs.length===3||this.curArgs.length===4)&&this.curNumber!=="0"&&this.curNumber!=="1")throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+Z+'"')}this.curArgs.push(A),this.curArgs.length===st[this.curCommandType]&&(w.HORIZ_LINE_TO===this.curCommandType?at({type:w.HORIZ_LINE_TO,relative:this.curCommandRelative,x:A}):w.VERT_LINE_TO===this.curCommandType?at({type:w.VERT_LINE_TO,relative:this.curCommandRelative,y:A}):this.curCommandType===w.MOVE_TO||this.curCommandType===w.LINE_TO||this.curCommandType===w.SMOOTH_QUAD_TO?(at({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),w.MOVE_TO===this.curCommandType&&(this.curCommandType=w.LINE_TO)):this.curCommandType===w.CURVE_TO?at({type:w.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===w.SMOOTH_CURVE_TO?at({type:w.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===w.QUAD_TO?at({type:w.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===w.ARC&&at({type:w.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!et(O))if(O===","&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if(O!=="+"&&O!=="-"&&O!==".")if(b)this.curNumber=O,this.curNumberHasDecimal=!1;else{if(this.curArgs.length!==0)throw new SyntaxError("Unterminated command at index "+Z+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+O+'" at index '+Z+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,O!=="z"&&O!=="Z")if(O==="h"||O==="H")this.curCommandType=w.HORIZ_LINE_TO,this.curCommandRelative=O==="h";else if(O==="v"||O==="V")this.curCommandType=w.VERT_LINE_TO,this.curCommandRelative=O==="v";else if(O==="m"||O==="M")this.curCommandType=w.MOVE_TO,this.curCommandRelative=O==="m";else if(O==="l"||O==="L")this.curCommandType=w.LINE_TO,this.curCommandRelative=O==="l";else if(O==="c"||O==="C")this.curCommandType=w.CURVE_TO,this.curCommandRelative=O==="c";else if(O==="s"||O==="S")this.curCommandType=w.SMOOTH_CURVE_TO,this.curCommandRelative=O==="s";else if(O==="q"||O==="Q")this.curCommandType=w.QUAD_TO,this.curCommandRelative=O==="q";else if(O==="t"||O==="T")this.curCommandType=w.SMOOTH_QUAD_TO,this.curCommandRelative=O==="t";else{if(O!=="a"&&O!=="A")throw new SyntaxError('Unexpected character "'+O+'" at index '+Z+".");this.curCommandType=w.ARC,this.curCommandRelative=O==="a"}else I.push({type:w.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=O,this.curNumberHasDecimal=O==="."}else this.curNumber+=O,this.curNumberHasDecimal=!0;else this.curNumber+=O;else this.curNumber+=O,this.curNumberHasExp=!0;else this.curNumber+=O,this.curNumberHasExpDigits=this.curNumberHasExp}return I},S.prototype.transform=function(U){return Object.create(this,{parse:{value:function(tt,at){at===void 0&&(at=[]);for(var Z=0,O=Object.getPrototypeOf(this).parse.call(this,tt);Z=0;--St){var yt=this.tryEntries[St],Ht=yt.completion;if(yt.tryLoc==="root")return gt("end");if(yt.tryLoc<=this.prev){var ae=n.call(yt,"catchLoc"),oe=n.call(yt,"finallyLoc");if(ae&&oe){if(this.prev=0;--gt){var St=this.tryEntries[gt];if(St.tryLoc<=this.prev&&n.call(St,"finallyLoc")&&this.prev=0;--ht){var gt=this.tryEntries[ht];if(gt.finallyLoc===q)return this.complete(gt.completion,gt.afterLoc),wt(gt),c}},catch:function(q){for(var ht=this.tryEntries.length-1;ht>=0;--ht){var gt=this.tryEntries[ht];if(gt.tryLoc===q){var St=gt.completion;if(St.type==="throw"){var yt=St.arg;wt(gt)}return yt}}throw new Error("illegal catch attempt")},delegateYield:function(q,ht,gt){return this.delegate={iterator:Qt(q),resultName:ht,nextLoc:gt},this.method==="next"&&(this.arg=void 0),c}},v}function Ft(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},f=v.DOMParser,n={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:f,createCanvas:function(t,i){return new OffscreenCanvas(t,i)},createImage:function(t){return vt()(Ct().mark(function i(){var r,o,s;return Ct().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,fetch(t);case 2:return r=c.sent,c.next=5,r.blob();case 5:return o=c.sent,c.next=8,createImageBitmap(o);case 8:return s=c.sent,c.abrupt("return",s);case 10:case"end":return c.stop()}},i)}))()}};return(typeof DOMParser!="undefined"||typeof f=="undefined")&&Reflect.deleteProperty(n,"DOMParser"),n}function zt(v){var f=v.DOMParser,n=v.canvas,a=v.fetch;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:f,fetch:a,createCanvas:n.createCanvas,createImage:n.loadImage}}var Yt=Object.freeze({__proto__:null,offscreen:Ft,node:zt});function Ut(v){return v.replace(/(?!\u3000)\s+/gm," ")}function Jt(v){return v.replace(/^[\n \t]+/,"")}function Nt(v){return v.replace(/[\n \t]+$/,"")}function Tt(v){var f=(v||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[];return f.map(parseFloat)}var $t=/^[A-Z-]+$/;function ot(v){return $t.test(v)?v.toLowerCase():v}function pt(v){var f=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(v)||[];return f[2]||f[3]||f[4]}function bt(v){if(!v.startsWith("rgb"))return v;var f=3,n=v.replace(/\d+(\.\d+)?/g,function(a,t){return f--&&t?String(Math.round(parseFloat(a))):a});return n}var Rt=/(\[[^\]]+\])/g,It=/(#[^\s+>~.[:]+)/g,re=/(\.[^\s+>~.[:]+)/g,se=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,le=/(:[\w-]+\([^)]*\))/gi,qt=/(:[^\s+>~.[:]+)/g,fe=/([^\s+>~.[:]+)/g;function ee(v,f){var n=f.exec(v);return n?[v.replace(f," "),n.length]:[v,0]}function he(v){var f=[0,0,0],n=v.replace(/:not\(([^)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),a=0,t=ee(n,Rt),i=Object(ut.a)(t,2);n=i[0],a=i[1],f[1]+=a;var r=ee(n,It),o=Object(ut.a)(r,2);n=o[0],a=o[1],f[0]+=a;var s=ee(n,re),l=Object(ut.a)(s,2);n=l[0],a=l[1],f[1]+=a;var c=ee(n,se),p=Object(ut.a)(c,2);n=p[0],a=p[1],f[2]+=a;var E=ee(n,le),D=Object(ut.a)(E,2);n=D[0],a=D[1],f[1]+=a;var K=ee(n,qt),_=Object(ut.a)(K,2);n=_[0],a=_[1],f[1]+=a,n=n.replace(/[*\s+>~]/g," ").replace(/[#.]/g," ");var it=ee(n,fe),rt=Object(ut.a)(it,2);return n=rt[0],a=rt[1],f[2]+=a,f.join("")}var kt=1e-8;function Te(v){return Math.sqrt(Math.pow(v[0],2)+Math.pow(v[1],2))}function pe(v,f){return(v[0]*f[0]+v[1]*f[1])/(Te(v)*Te(f))}function Pe(v,f){return(v[0]*f[1]0&&arguments[0]!==void 0?arguments[0]:" ",a=this.document,t=this.name;return Ut(this.getString()).trim().split(n).map(function(i){return new v(a,t,i)})}},{key:"hasValue",value:function(n){var a=this.value;return a!==null&&a!==""&&(n||a!==0)&&typeof a!="undefined"}},{key:"isString",value:function(n){var a=this.value,t=typeof a=="string";return!t||!n?t:n.test(a)}},{key:"isUrlDefinition",value:function(){return this.isString(/^url\(/)}},{key:"isPixels",value:function(){if(!this.hasValue())return!1;var n=this.getString();switch(!0){case n.endsWith("px"):case/^[0-9]+$/.test(n):return!0;default:return!1}}},{key:"setValue",value:function(n){return this.value=n,this}},{key:"getValue",value:function(n){return typeof n=="undefined"||this.hasValue()?this.value:n}},{key:"getNumber",value:function(n){if(!this.hasValue())return typeof n=="undefined"?0:parseFloat(n);var a=this.value,t=parseFloat(a);return this.isString(/%$/)&&(t/=100),t}},{key:"getString",value:function(n){return typeof n=="undefined"||this.hasValue()?typeof this.value=="undefined"?"":String(this.value):String(n)}},{key:"getColor",value:function(n){var a=this.getString(n);return this.isNormalizedColor||(this.isNormalizedColor=!0,a=bt(a),this.value=a),a}},{key:"getDpi",value:function(){return 96}},{key:"getRem",value:function(){return this.document.rootEmSize}},{key:"getEm",value:function(){return this.document.emSize}},{key:"getUnits",value:function(){return this.getString().replace(/[0-9.-]/g,"")}},{key:"getPixels",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!this.hasValue())return 0;var t=typeof n=="boolean"?[void 0,n]:[n],i=Object(ut.a)(t,2),r=i[0],o=i[1],s=this.document.screen.viewPort;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(s.computeSize("x"),s.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(s.computeSize("x"),s.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*s.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*s.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return this.getNumber()*15;case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case(this.isString(/%$/)&&o):return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*s.computeSize(r);default:{var l=this.getNumber();return a&&l<1?l*s.computeSize(r):l}}}},{key:"getMilliseconds",value:function(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():this.getNumber()*1e3:0}},{key:"getRadians",value:function(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}},{key:"getDefinition",value:function(){var n=this.getString(),a=/#([^)'"]+)/.exec(n);return a&&(a=a[1]),a||(a=n),this.document.definitions[a]}},{key:"getFillStyleDefinition",value:function(n,a){var t=this.getDefinition();if(!t)return null;if(typeof t.createGradient=="function")return t.createGradient(this.document.ctx,n,a);if(typeof t.createPattern=="function"){if(t.getHrefAttribute().hasValue()){var i=t.getAttribute("patternTransform");t=t.getHrefAttribute().getDefinition(),i.hasValue()&&t.getAttribute("patternTransform",!0).setValue(i.value)}return t.createPattern(this.document.ctx,n,a)}return null}},{key:"getTextBaseline",value:function(){return this.hasValue()?v.textBaselineMapping[this.getString()]:null}},{key:"addOpacity",value:function(n){for(var a=this.getColor(),t=a.length,i=0,r=0;r1&&arguments[1]!==void 0?arguments[1]:0,t=Tt(n),i=Object(ut.a)(t,2),r=i[0],o=r===void 0?a:r,s=i[1],l=s===void 0?a:s;return new v(o,l)}},{key:"parseScale",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,t=Tt(n),i=Object(ut.a)(t,2),r=i[0],o=r===void 0?a:r,s=i[1],l=s===void 0?o:s;return new v(o,l)}},{key:"parsePath",value:function(n){for(var a=Tt(n),t=a.length,i=[],r=0;r0}},{key:"runEvents",value:function(){if(!this.working)return;var n=this.screen,a=this.events,t=this.eventElements,i=n.ctx.canvas.style;i&&(i.cursor=""),a.forEach(function(r,o){for(var s=r.run,l=t[o];l;)s(l),l=l.parent}),this.events=[],this.eventElements=[]}},{key:"checkPath",value:function(n,a){if(!this.working||!a)return;var t=this.events,i=this.eventElements;t.forEach(function(r,o){var s=r.x,l=r.y;!i[o]&&a.isPointInPath&&a.isPointInPath(s,l)&&(i[o]=n)})}},{key:"checkBoundingBox",value:function(n,a){if(!this.working||!a)return;var t=this.events,i=this.eventElements;t.forEach(function(r,o){var s=r.x,l=r.y;!i[o]&&a.isPointInBox(s,l)&&(i[o]=n)})}},{key:"mapXY",value:function(n,a){for(var t=this.screen,i=t.window,r=t.ctx,o=new Xt(n,a),s=r.canvas;s;)o.x-=s.offsetLeft,o.y-=s.offsetTop,s=s.offsetParent;return i.scrollX&&(o.x+=i.scrollX),i.scrollY&&(o.y+=i.scrollY),o}},{key:"onClick",value:function(n){var a=this.mapXY(n.clientX,n.clientY),t=a.x,i=a.y;this.events.push({type:"onclick",x:t,y:i,run:function(o){o.onClick&&o.onClick()}})}},{key:"onMouseMove",value:function(n){var a=this.mapXY(n.clientX,n.clientY),t=a.x,i=a.y;this.events.push({type:"onmousemove",x:t,y:i,run:function(o){o.onMouseMove&&o.onMouseMove()}})}}]),v}(),Ce=typeof window!="undefined"?window:null,Re=typeof fetch!="undefined"?fetch.bind(void 0):null,de=function(){function v(f){Object(X.a)(this,v);var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.fetch,t=a===void 0?Re:a,i=n.window,r=i===void 0?Ce:i;this.ctx=f,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new Me,this.mouse=new je(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=r,this.fetch=t}return Object(J.a)(v,[{key:"wait",value:function(n){this.waits.push(n)}},{key:"ready",value:function(){return this.readyPromise?this.readyPromise:Promise.resolve()}},{key:"isReady",value:function(){if(this.isReadyLock)return!0;var n=this.waits.every(function(a){return a()});return n&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=n,n}},{key:"setDefaults",value:function(n){n.strokeStyle="rgba(0,0,0,0)",n.lineCap="butt",n.lineJoin="miter",n.miterLimit=4}},{key:"setViewBox",value:function(n){var a=n.document,t=n.ctx,i=n.aspectRatio,r=n.width,o=n.desiredWidth,s=n.height,l=n.desiredHeight,c=n.minX,p=c===void 0?0:c,E=n.minY,D=E===void 0?0:E,K=n.refX,_=n.refY,it=n.clip,rt=it===void 0?!1:it,xt=n.clipX,dt=xt===void 0?0:xt,ft=n.clipY,Et=ft===void 0?0:ft,wt=Ut(i).replace(/^defer\s/,""),Bt=wt.split(" "),Qt=Object(ut.a)(Bt,2),ie=Qt[0],lt=Qt[1],q=ie||"xMidYMid",ht=lt||"meet",gt=r/o,St=s/l,yt=Math.min(gt,St),Ht=Math.max(gt,St),ae=o,oe=l;ht==="meet"&&(ae*=yt,oe*=yt),ht==="slice"&&(ae*=Ht,oe*=Ht);var Wt=new mt(a,"refX",K),te=new mt(a,"refY",_),ue=Wt.hasValue()&&te.hasValue();if(ue&&t.translate(-yt*Wt.getPixels("x"),-yt*te.getPixels("y")),rt){var Be=yt*dt,Fe=yt*Et;t.beginPath(),t.moveTo(Be,Fe),t.lineTo(r,Fe),t.lineTo(r,s),t.lineTo(Be,s),t.closePath(),t.clip()}if(!ue){var Ue=ht==="meet"&&yt===St,be=ht==="slice"&&Ht===St,$r=ht==="meet"&&yt===gt,Yr=ht==="slice"&&Ht===gt;q.startsWith("xMid")&&(Ue||be)&&t.translate(r/2-ae/2,0),q.endsWith("YMid")&&($r||Yr)&&t.translate(0,s/2-oe/2),q.startsWith("xMax")&&(Ue||be)&&t.translate(r-ae,0),q.endsWith("YMax")&&($r||Yr)&&t.translate(0,s-oe)}switch(!0){case q==="none":t.scale(gt,St);break;case ht==="meet":t.scale(yt,yt);break;case ht==="slice":t.scale(Ht,Ht);break}t.translate(-p,-D)}},{key:"start",value:function(n){var a=this,t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=t.enableRedraw,r=i===void 0?!1:i,o=t.ignoreMouse,s=o===void 0?!1:o,l=t.ignoreAnimation,c=l===void 0?!1:l,p=t.ignoreDimensions,E=p===void 0?!1:p,D=t.ignoreClear,K=D===void 0?!1:D,_=t.forceRedraw,it=t.scaleWidth,rt=t.scaleHeight,xt=t.offsetX,dt=t.offsetY,ft=this.FRAMERATE,Et=this.mouse,wt=1e3/ft;if(this.frameDuration=wt,this.readyPromise=new Promise(function(q){a.resolveReady=q}),this.isReady()&&this.render(n,E,K,it,rt,xt,dt),!r)return;var Bt=Date.now(),Qt=Bt,ie=0,lt=function q(){Bt=Date.now(),ie=Bt-Qt,ie>=wt&&(Qt=Bt-ie%wt,a.shouldUpdate(c,_)&&(a.render(n,E,K,it,rt,xt,dt),Et.runEvents())),a.intervalId=jt()(q)};s||Et.start(),this.intervalId=jt()(lt)}},{key:"stop",value:function(){this.intervalId&&(jt.a.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}},{key:"shouldUpdate",value:function(n,a){if(!n){var t=this.frameDuration,i=this.animations.reduce(function(r,o){return o.update(t)||r},!1);if(i)return!0}return typeof a=="function"&&a()||!this.isReadyLock&&this.isReady()?!0:!!this.mouse.hasEvents()}},{key:"render",value:function(n,a,t,i,r,o,s){var l=this.CLIENT_WIDTH,c=this.CLIENT_HEIGHT,p=this.viewPort,E=this.ctx,D=this.isFirstRender,K=E.canvas;p.clear(),K.width&&K.height?p.setCurrent(K.width,K.height):p.setCurrent(l,c);var _=n.getStyle("width"),it=n.getStyle("height");!a&&(D||typeof i!="number"&&typeof r!="number")&&(_.hasValue()&&(K.width=_.getPixels("x"),K.style&&(K.style.width="".concat(K.width,"px"))),it.hasValue()&&(K.height=it.getPixels("y"),K.style&&(K.style.height="".concat(K.height,"px"))));var rt=K.clientWidth||K.width,xt=K.clientHeight||K.height;if(a&&_.hasValue()&&it.hasValue()&&(rt=_.getPixels("x"),xt=it.getPixels("y")),p.setCurrent(rt,xt),typeof o=="number"&&n.getAttribute("x",!0).setValue(o),typeof s=="number"&&n.getAttribute("y",!0).setValue(s),typeof i=="number"||typeof r=="number"){var dt=Tt(n.getAttribute("viewBox").getString()),ft=0,Et=0;if(typeof i=="number"){var wt=n.getStyle("width");wt.hasValue()?ft=wt.getPixels("x")/i:isNaN(dt[2])||(ft=dt[2]/i)}if(typeof r=="number"){var Bt=n.getStyle("height");Bt.hasValue()?Et=Bt.getPixels("y")/r:isNaN(dt[3])||(Et=dt[3]/r)}ft||(ft=Et),Et||(Et=ft),n.getAttribute("width",!0).setValue(i),n.getAttribute("height",!0).setValue(r);var Qt=n.getStyle("transform",!0,!0);Qt.setValue("".concat(Qt.getString()," scale(").concat(1/ft,", ").concat(1/Et,")"))}t||E.clearRect(0,0,rt,xt),n.render(E),D&&(this.isFirstRender=!1)}}]),v}();de.defaultWindow=Ce,de.defaultFetch=Re;var ne=de.defaultFetch,Kr=typeof DOMParser!="undefined"?DOMParser:null,We=function(){function v(){Object(X.a)(this,v);var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=f.fetch,a=n===void 0?ne:n,t=f.DOMParser,i=t===void 0?Kr:t;this.fetch=a,this.DOMParser=i}return Object(J.a)(v,[{key:"parse",value:function(n){var a=this;return vt()(Ct().mark(function t(){return Ct().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(!n.startsWith("<")){r.next=2;break}return r.abrupt("return",a.parseFromString(n));case 2:return r.abrupt("return",a.load(n));case 3:case"end":return r.stop()}},t)}))()}},{key:"parseFromString",value:function(n){var a=new this.DOMParser;try{return this.checkDocument(a.parseFromString(n,"image/svg+xml"))}catch(t){return this.checkDocument(a.parseFromString(n,"text/xml"))}}},{key:"checkDocument",value:function(n){var a=n.getElementsByTagName("parsererror")[0];if(a)throw new Error(a.textContent);return n}},{key:"load",value:function(n){var a=this;return vt()(Ct().mark(function t(){var i,r;return Ct().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,a.fetch(n);case 2:return i=s.sent,s.next=5,i.text();case 5:return r=s.sent,s.abrupt("return",a.parseFromString(r));case 7:case"end":return s.stop()}},t)}))()}}]),v}(),ar=function(){function v(f,n){Object(X.a)(this,v),this.type="translate",this.point=null,this.point=Xt.parse(n)}return Object(J.a)(v,[{key:"apply",value:function(n){var a=this.point,t=a.x,i=a.y;n.translate(t||0,i||0)}},{key:"unapply",value:function(n){var a=this.point,t=a.x,i=a.y;n.translate(-1*t||0,-1*i||0)}},{key:"applyToPoint",value:function(n){var a=this.point,t=a.x,i=a.y;n.applyTransform([1,0,0,1,t||0,i||0])}}]),v}(),ir=function(){function v(f,n,a){Object(X.a)(this,v),this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var t=Tt(n);this.angle=new mt(f,"angle",t[0]),this.originX=a[0],this.originY=a[1],this.cx=t[1]||0,this.cy=t[2]||0}return Object(J.a)(v,[{key:"apply",value:function(n){var a=this.cx,t=this.cy,i=this.originX,r=this.originY,o=this.angle,s=a+i.getPixels("x"),l=t+r.getPixels("y");n.translate(s,l),n.rotate(o.getRadians()),n.translate(-s,-l)}},{key:"unapply",value:function(n){var a=this.cx,t=this.cy,i=this.originX,r=this.originY,o=this.angle,s=a+i.getPixels("x"),l=t+r.getPixels("y");n.translate(s,l),n.rotate(-1*o.getRadians()),n.translate(-s,-l)}},{key:"applyToPoint",value:function(n){var a=this.cx,t=this.cy,i=this.angle,r=i.getRadians();n.applyTransform([1,0,0,1,a||0,t||0]),n.applyTransform([Math.cos(r),Math.sin(r),-Math.sin(r),Math.cos(r),0,0]),n.applyTransform([1,0,0,1,-a||0,-t||0])}}]),v}(),or=function(){function v(f,n,a){Object(X.a)(this,v),this.type="scale",this.scale=null,this.originX=null,this.originY=null;var t=Xt.parseScale(n);(t.x===0||t.y===0)&&(t.x=kt,t.y=kt),this.scale=t,this.originX=a[0],this.originY=a[1]}return Object(J.a)(v,[{key:"apply",value:function(n){var a=this.scale,t=a.x,i=a.y,r=this.originX,o=this.originY,s=r.getPixels("x"),l=o.getPixels("y");n.translate(s,l),n.scale(t,i||t),n.translate(-s,-l)}},{key:"unapply",value:function(n){var a=this.scale,t=a.x,i=a.y,r=this.originX,o=this.originY,s=r.getPixels("x"),l=o.getPixels("y");n.translate(s,l),n.scale(1/t,1/i||t),n.translate(-s,-l)}},{key:"applyToPoint",value:function(n){var a=this.scale,t=a.x,i=a.y;n.applyTransform([t||0,0,0,i||0,0,0])}}]),v}(),Ke=function(){function v(f,n,a){Object(X.a)(this,v),this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=Tt(n),this.originX=a[0],this.originY=a[1]}return Object(J.a)(v,[{key:"apply",value:function(n){var a=this.originX,t=this.originY,i=this.matrix,r=a.getPixels("x"),o=t.getPixels("y");n.translate(r,o),n.transform(i[0],i[1],i[2],i[3],i[4],i[5]),n.translate(-r,-o)}},{key:"unapply",value:function(n){var a=this.originX,t=this.originY,i=this.matrix,r=i[0],o=i[2],s=i[4],l=i[1],c=i[3],p=i[5],E=0,D=0,K=1,_=1/(r*(c*K-p*D)-o*(l*K-p*E)+s*(l*D-c*E)),it=a.getPixels("x"),rt=t.getPixels("y");n.translate(it,rt),n.transform(_*(c*K-p*D),_*(p*E-l*K),_*(s*D-o*K),_*(r*K-s*E),_*(o*p-s*c),_*(s*l-r*p)),n.translate(-it,-rt)}},{key:"applyToPoint",value:function(n){n.applyTransform(this.matrix)}}]),v}(),ke=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(a,t,i){var r;return Object(X.a)(this,n),r=f.call(this,a,t,i),r.type="skew",r.angle=null,r.angle=new mt(a,"angle",t),r}return Object(J.a)(n)}(Ke),sr=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(a,t,i){var r;return Object(X.a)(this,n),r=f.call(this,a,t,i),r.type="skewX",r.matrix=[1,0,Math.tan(r.angle.getRadians()),1,0,0],r}return Object(J.a)(n)}(ke),lr=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(a,t,i){var r;return Object(X.a)(this,n),r=f.call(this,a,t,i),r.type="skewY",r.matrix=[1,Math.tan(r.angle.getRadians()),0,1,0,0],r}return Object(J.a)(n)}(ke);function kr(v){return Ut(v).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}function Xr(v){var f=v.split("("),n=Object(ut.a)(f,2),a=n[0],t=n[1];return[a.trim(),t.trim().replace(")","")]}var we=function(){function v(f,n,a){var t=this;Object(X.a)(this,v),this.document=f,this.transforms=[];var i=kr(n);i.forEach(function(r){if(r==="none")return;var o=Xr(r),s=Object(ut.a)(o,2),l=s[0],c=s[1],p=v.transformTypes[l];typeof p!="undefined"&&t.transforms.push(new p(t.document,c,a))})}return Object(J.a)(v,[{key:"apply",value:function(n){for(var a=this.transforms,t=a.length,i=0;i=0;i--)a[i].unapply(n)}},{key:"applyToPoint",value:function(n){for(var a=this.transforms,t=a.length,i=0;i2&&arguments[2]!==void 0?arguments[2]:!1;if(this.document=f,this.node=n,this.captureTextNodes=t,this.attributes={},this.styles={},this.stylesSpecificity={},this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],!n||n.nodeType!==1)return;if(Array.from(n.attributes).forEach(function(s){var l=ot(s.nodeName);a.attributes[l]=new mt(f,l,s.value)}),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var i=this.getAttribute("style").getString().split(";").map(function(s){return s.trim()});i.forEach(function(s){if(!s)return;var l=s.split(":").map(function(D){return D.trim()}),c=Object(ut.a)(l,2),p=c[0],E=c[1];a.styles[p]=new mt(f,p,E)})}var r=f.definitions,o=this.getAttribute("id");o.hasValue()&&(r[o.getString()]||(r[o.getString()]=this)),Array.from(n.childNodes).forEach(function(s){if(s.nodeType===1)a.addChild(s);else if(t&&(s.nodeType===3||s.nodeType===4)){var l=f.createTextNode(s);l.getText().length>0&&a.addChild(l)}})}return Object(J.a)(v,[{key:"getAttribute",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=this.attributes[n];if(!t&&a){var i=new mt(this.document,n,"");return this.attributes[n]=i,i}return t||mt.empty(this.document)}},{key:"getHrefAttribute",value:function(){for(var n in this.attributes)if(n==="href"||n.endsWith(":href"))return this.attributes[n];return mt.empty(this.document)}},{key:"getStyle",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,i=this.styles[n];if(i)return i;var r=this.getAttribute(n);if(r!=null&&r.hasValue())return this.styles[n]=r,r;if(!t){var o=this.parent;if(o){var s=o.getStyle(n);if(s!=null&&s.hasValue())return s}}if(a){var l=new mt(this.document,n,"");return this.styles[n]=l,l}return i||mt.empty(this.document)}},{key:"render",value:function(n){if(this.getStyle("display").getString()==="none"||this.getStyle("visibility").getString()==="hidden")return;if(n.save(),this.getStyle("mask").hasValue()){var a=this.getStyle("mask").getDefinition();a&&(this.applyEffects(n),a.apply(n,this))}else if(this.getStyle("filter").getValue("none")!=="none"){var t=this.getStyle("filter").getDefinition();t&&(this.applyEffects(n),t.apply(n,this))}else this.setContext(n),this.renderChildren(n),this.clearContext(n);n.restore()}},{key:"setContext",value:function(n){}},{key:"applyEffects",value:function(n){var a=we.fromElement(this.document,this);a&&a.apply(n);var t=this.getStyle("clip-path",!1,!0);if(t.hasValue()){var i=t.getDefinition();i&&i.apply(n)}}},{key:"clearContext",value:function(n){}},{key:"renderChildren",value:function(n){this.children.forEach(function(a){a.render(n)})}},{key:"addChild",value:function(n){var a=n instanceof v?n:this.document.createElement(n);a.parent=this,v.ignoreChildTypes.includes(a.type)||this.children.push(a)}},{key:"matchesSelector",value:function(n){var a,t=this.node;if(typeof t.matches=="function")return t.matches(n);var i=(a=t.getAttribute)===null||a===void 0?void 0:a.call(t,"class");return!i||i===""?!1:i.split(" ").some(function(r){return".".concat(r)===n})}},{key:"addStylesFromStyleDefinition",value:function(){var n=this.document,a=n.styles,t=n.stylesSpecificity;for(var i in a)if(!i.startsWith("@")&&this.matchesSelector(i)){var r=a[i],o=t[i];if(r)for(var s in r){var l=this.stylesSpecificity[s];typeof l=="undefined"&&(l="000"),o>=l&&(this.styles[s]=r[s],this.stylesSpecificity[s]=o)}}}},{key:"removeStyles",value:function(n,a){var t=a.reduce(function(i,r){var o=n.getStyle(r);if(!o.hasValue())return i;var s=o.getString();return o.setValue(""),[].concat(Object(z.a)(i),[[r,s]])},[]);return t}},{key:"restoreStyles",value:function(n,a){a.forEach(function(t){var i=Object(ut.a)(t,2),r=i[0],o=i[1];n.getStyle(r,!0).setValue(o)})}},{key:"isFirstChild",value:function(){var n;return((n=this.parent)===null||n===void 0?void 0:n.children.indexOf(this))===0}}]),v}();Kt.ignoreChildTypes=["title"];var ur=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(a,t,i){return Object(X.a)(this,n),f.call(this,a,t,i)}return Object(J.a)(n)}(Kt);function Qr(v){var f=v.trim();return/^('|")/.test(f)?f:'"'.concat(f,'"')}function Jr(v){return typeof u=="undefined"?v:v.trim().split(",").map(Qr).join(",")}function Zr(v){if(!v)return"";var f=v.trim().toLowerCase();switch(f){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return f;default:return/^oblique\s+(-|)\d+deg$/.test(f)?f:""}}function qr(v){if(!v)return"";var f=v.trim().toLowerCase();switch(f){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return f;default:return/^[\d.]+$/.test(f)?f:""}}var ve=function(){function v(f,n,a,t,i,r){Object(X.a)(this,v);var o=r?typeof r=="string"?v.parse(r):r:{};this.fontFamily=i||o.fontFamily,this.fontSize=t||o.fontSize,this.fontStyle=f||o.fontStyle,this.fontWeight=a||o.fontWeight,this.fontVariant=n||o.fontVariant}return Object(J.a)(v,[{key:"toString",value:function(){return[Zr(this.fontStyle),this.fontVariant,qr(this.fontWeight),this.fontSize,Jr(this.fontFamily)].join(" ").trim()}}],[{key:"parse",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",a=arguments.length>1?arguments[1]:void 0,t="",i="",r="",o="",s="",l=Ut(n).trim().split(" "),c={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return l.forEach(function(p){switch(!0){case(!c.fontStyle&&v.styles.includes(p)):p!=="inherit"&&(t=p),c.fontStyle=!0;break;case(!c.fontVariant&&v.variants.includes(p)):p!=="inherit"&&(i=p),c.fontStyle=!0,c.fontVariant=!0;break;case(!c.fontWeight&&v.weights.includes(p)):p!=="inherit"&&(r=p),c.fontStyle=!0,c.fontVariant=!0,c.fontWeight=!0;break;case!c.fontSize:if(p!=="inherit"){var E=p.split("/"),D=Object(ut.a)(E,1);o=D[0]}c.fontStyle=!0,c.fontVariant=!0,c.fontWeight=!0,c.fontSize=!0;break;default:p!=="inherit"&&(s+=p)}}),new v(t,i,r,o,s,a)}}]),v}();ve.styles="normal|italic|oblique|inherit",ve.variants="normal|small-caps|inherit",ve.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";var ce=function(){function v(){Object(X.a)(this,v);var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Number.NaN,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.NaN,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Number.NaN,t=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Number.NaN;this.x1=f,this.y1=n,this.x2=a,this.y2=t,this.addPoint(f,n),this.addPoint(a,t)}return Object(J.a)(v,[{key:"x",get:function(){return this.x1}},{key:"y",get:function(){return this.y1}},{key:"width",get:function(){return this.x2-this.x1}},{key:"height",get:function(){return this.y2-this.y1}},{key:"addPoint",value:function(n,a){typeof n!="undefined"&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=n,this.x2=n),nthis.x2&&(this.x2=n)),typeof a!="undefined"&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=a,this.y2=a),athis.y2&&(this.y2=a))}},{key:"addX",value:function(n){this.addPoint(n,null)}},{key:"addY",value:function(n){this.addPoint(null,n)}},{key:"addBoundingBox",value:function(n){if(!n)return;var a=n.x1,t=n.y1,i=n.x2,r=n.y2;this.addPoint(a,t),this.addPoint(i,r)}},{key:"sumCubic",value:function(n,a,t,i,r){return Math.pow(1-n,3)*a+3*Math.pow(1-n,2)*n*t+3*(1-n)*Math.pow(n,2)*i+Math.pow(n,3)*r}},{key:"bezierCurveAdd",value:function(n,a,t,i,r){var o=6*a-12*t+6*i,s=-3*a+9*t-9*i+3*r,l=3*t-3*a;if(s===0){if(o===0)return;var c=-l/o;0=i.length-1}},{key:"next",value:function(){var t=this.commands[++this.i];return this.previousCommand=this.command,this.command=t,t}},{key:"getPoint",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"x",i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"y",r=new Xt(this.command[t],this.command[i]);return this.makeAbsolute(r)}},{key:"getAsControlPoint",value:function(t,i){var r=this.getPoint(t,i);return this.control=r,r}},{key:"getAsCurrentPoint",value:function(t,i){var r=this.getPoint(t,i);return this.current=r,r}},{key:"getReflectedControlPoint",value:function(){var t=this.previousCommand.type;if(t!==Mt.a.CURVE_TO&&t!==Mt.a.SMOOTH_CURVE_TO&&t!==Mt.a.QUAD_TO&&t!==Mt.a.SMOOTH_QUAD_TO)return this.current;var i=this.current,r=i.x,o=i.y,s=this.control,l=s.x,c=s.y,p=new Xt(2*r-l,2*o-c);return p}},{key:"makeAbsolute",value:function(t){if(this.command.relative){var i=this.current,r=i.x,o=i.y;t.x+=r,t.y+=o}return t}},{key:"addMarker",value:function(t,i,r){var o=this.points,s=this.angles;r&&s.length>0&&!s[s.length-1]&&(s[s.length-1]=o[o.length-1].angleTo(r)),this.addMarkerAngle(t,i?i.angleTo(t):null)}},{key:"addMarkerAngle",value:function(t,i){this.points.push(t),this.angles.push(i)}},{key:"getMarkerPoints",value:function(){return this.points}},{key:"getMarkerAngles",value:function(){for(var t=this.angles,i=t.length,r=0;r1&&arguments[1]!==void 0?arguments[1]:!1;if(!i){var r=this.getStyle("fill"),o=this.getStyle("fill-opacity"),s=this.getStyle("stroke"),l=this.getStyle("stroke-opacity");if(r.isUrlDefinition()){var c=r.getFillStyleDefinition(this,o);c&&(t.fillStyle=c)}else if(r.hasValue()){r.getString()==="currentColor"&&r.setValue(this.getStyle("color").getColor());var p=r.getColor();p!=="inherit"&&(t.fillStyle=p==="none"?"rgba(0,0,0,0)":p)}if(o.hasValue()){var E=new mt(this.document,"fill",t.fillStyle).addOpacity(o).getColor();t.fillStyle=E}if(s.isUrlDefinition()){var D=s.getFillStyleDefinition(this,l);D&&(t.strokeStyle=D)}else if(s.hasValue()){s.getString()==="currentColor"&&s.setValue(this.getStyle("color").getColor());var K=s.getString();K!=="inherit"&&(t.strokeStyle=K==="none"?"rgba(0,0,0,0)":K)}if(l.hasValue()){var _=new mt(this.document,"stroke",t.strokeStyle).addOpacity(l).getString();t.strokeStyle=_}var it=this.getStyle("stroke-width");if(it.hasValue()){var rt=it.getPixels();t.lineWidth=rt||kt}var xt=this.getStyle("stroke-linecap"),dt=this.getStyle("stroke-linejoin"),ft=this.getStyle("stroke-miterlimit"),Et=this.getStyle("stroke-dasharray"),wt=this.getStyle("stroke-dashoffset");if(xt.hasValue()&&(t.lineCap=xt.getString()),dt.hasValue()&&(t.lineJoin=dt.getString()),ft.hasValue()&&(t.miterLimit=ft.getNumber()),Et.hasValue()&&Et.getString()!=="none"){var Bt=Tt(Et.getString());typeof t.setLineDash!="undefined"?t.setLineDash(Bt):typeof t.webkitLineDash!="undefined"?t.webkitLineDash=Bt:typeof t.mozDash!="undefined"&&!(Bt.length===1&&Bt[0]===0)&&(t.mozDash=Bt);var Qt=wt.getPixels();typeof t.lineDashOffset!="undefined"?t.lineDashOffset=Qt:typeof t.webkitLineDashOffset!="undefined"?t.webkitLineDashOffset=Qt:typeof t.mozDashOffset!="undefined"&&(t.mozDashOffset=Qt)}}if(this.modifiedEmSizeStack=!1,typeof t.font!="undefined"){var ie=this.getStyle("font"),lt=this.getStyle("font-style"),q=this.getStyle("font-variant"),ht=this.getStyle("font-weight"),gt=this.getStyle("font-size"),St=this.getStyle("font-family"),yt=new ve(lt.getString(),q.getString(),ht.getString(),gt.hasValue()?"".concat(gt.getPixels(!0),"px"):"",St.getString(),ve.parse(ie.getString(),t.font));lt.setValue(yt.fontStyle),q.setValue(yt.fontVariant),ht.setValue(yt.fontWeight),gt.setValue(yt.fontSize),St.setValue(yt.fontFamily),t.font=yt.toString(),gt.isPixels()&&(this.document.emSize=gt.getPixels(),this.modifiedEmSizeStack=!0)}i||(this.applyEffects(t),t.globalAlpha=this.calculateOpacity())}},{key:"clearContext",value:function(t){Object(H.a)(Object(B.a)(n.prototype),"clearContext",this).call(this,t),this.modifiedEmSizeStack&&this.document.popEmSize()}}]),n}(Kt),_t=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(a,t,i){var r;return Object(X.a)(this,n),r=f.call(this,a,t,i),r.type="path",r.pathParser=null,r.pathParser=new At(r.getAttribute("d").getString()),r}return Object(J.a)(n,[{key:"path",value:function(t){var i=this.pathParser,r=new ce;for(i.reset(),t&&t.beginPath();!i.isEnd();)switch(i.next().type){case At.MOVE_TO:this.pathM(t,r);break;case At.LINE_TO:this.pathL(t,r);break;case At.HORIZ_LINE_TO:this.pathH(t,r);break;case At.VERT_LINE_TO:this.pathV(t,r);break;case At.CURVE_TO:this.pathC(t,r);break;case At.SMOOTH_CURVE_TO:this.pathS(t,r);break;case At.QUAD_TO:this.pathQ(t,r);break;case At.SMOOTH_QUAD_TO:this.pathT(t,r);break;case At.ARC:this.pathA(t,r);break;case At.CLOSE_PATH:this.pathZ(t,r);break}return r}},{key:"getBoundingBox",value:function(t){return this.path()}},{key:"getMarkers",value:function(){var t=this.pathParser,i=t.getMarkerPoints(),r=t.getMarkerAngles(),o=i.map(function(s,l){return[s,r[l]]});return o}},{key:"renderChildren",value:function(t){this.path(t),this.document.screen.mouse.checkPath(this,t);var i=this.getStyle("fill-rule");t.fillStyle!==""&&(i.getString("inherit")!=="inherit"?t.fill(i.getString()):t.fill()),t.strokeStyle!==""&&(this.getAttribute("vector-effect").getString()==="non-scaling-stroke"?(t.save(),t.setTransform(1,0,0,1,0,0),t.stroke(),t.restore()):t.stroke());var r=this.getMarkers();if(r){var o=r.length-1,s=this.getStyle("marker-start"),l=this.getStyle("marker-mid"),c=this.getStyle("marker-end");if(s.isUrlDefinition()){var p=s.getDefinition(),E=Object(ut.a)(r[0],2),D=E[0],K=E[1];p.render(t,D,K)}if(l.isUrlDefinition())for(var _=l.getDefinition(),it=1;itc?l:c,ft=l>c?1:l/c,Et=l>c?c/l:1;t.translate(D.x,D.y),t.rotate(E),t.scale(ft,Et),t.arc(0,0,dt,K,K+_,Boolean(1-p)),t.scale(1/ft,1/Et),t.rotate(-E),t.translate(-D.x,-D.y)}}},{key:"pathZ",value:function(t,i){n.pathZ(this.pathParser),t&&(i.x1!==i.x2&&i.y1!==i.y2&&t.closePath())}}],[{key:"pathM",value:function(t){var i=t.getAsCurrentPoint();return t.start=t.current,{point:i}}},{key:"pathL",value:function(t){var i=t.current,r=t.getAsCurrentPoint();return{current:i,point:r}}},{key:"pathH",value:function(t){var i=t.current,r=t.command,o=new Xt((r.relative?i.x:0)+r.x,i.y);return t.current=o,{current:i,point:o}}},{key:"pathV",value:function(t){var i=t.current,r=t.command,o=new Xt(i.x,(r.relative?i.y:0)+r.y);return t.current=o,{current:i,point:o}}},{key:"pathC",value:function(t){var i=t.current,r=t.getPoint("x1","y1"),o=t.getAsControlPoint("x2","y2"),s=t.getAsCurrentPoint();return{current:i,point:r,controlPoint:o,currentPoint:s}}},{key:"pathS",value:function(t){var i=t.current,r=t.getReflectedControlPoint(),o=t.getAsControlPoint("x2","y2"),s=t.getAsCurrentPoint();return{current:i,point:r,controlPoint:o,currentPoint:s}}},{key:"pathQ",value:function(t){var i=t.current,r=t.getAsControlPoint("x1","y1"),o=t.getAsCurrentPoint();return{current:i,controlPoint:r,currentPoint:o}}},{key:"pathT",value:function(t){var i=t.current,r=t.getReflectedControlPoint();t.control=r;var o=t.getAsCurrentPoint();return{current:i,controlPoint:r,currentPoint:o}}},{key:"pathA",value:function(t){var i=t.current,r=t.command,o=r.rX,s=r.rY,l=r.xRot,c=r.lArcFlag,p=r.sweepFlag,E=l*(Math.PI/180),D=t.getAsCurrentPoint(),K=new Xt(Math.cos(E)*(i.x-D.x)/2+Math.sin(E)*(i.y-D.y)/2,-Math.sin(E)*(i.x-D.x)/2+Math.cos(E)*(i.y-D.y)/2),_=Math.pow(K.x,2)/Math.pow(o,2)+Math.pow(K.y,2)/Math.pow(s,2);_>1&&(o*=Math.sqrt(_),s*=Math.sqrt(_));var it=(c===p?-1:1)*Math.sqrt((Math.pow(o,2)*Math.pow(s,2)-Math.pow(o,2)*Math.pow(K.y,2)-Math.pow(s,2)*Math.pow(K.x,2))/(Math.pow(o,2)*Math.pow(K.y,2)+Math.pow(s,2)*Math.pow(K.x,2)));isNaN(it)&&(it=0);var rt=new Xt(it*o*K.y/s,it*-s*K.x/o),xt=new Xt((i.x+D.x)/2+Math.cos(E)*rt.x-Math.sin(E)*rt.y,(i.y+D.y)/2+Math.sin(E)*rt.x+Math.cos(E)*rt.y),dt=Pe([1,0],[(K.x-rt.x)/o,(K.y-rt.y)/s]),ft=[(K.x-rt.x)/o,(K.y-rt.y)/s],Et=[(-K.x-rt.x)/o,(-K.y-rt.y)/s],wt=Pe(ft,Et);return pe(ft,Et)<=-1&&(wt=Math.PI),pe(ft,Et)>=1&&(wt=0),{currentPoint:D,rX:o,rY:s,sweepFlag:p,xAxisRotation:E,centp:xt,a1:dt,ad:wt}}},{key:"pathZ",value:function(t){t.current=t.start}}]),n}(Oe),Xe=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(a,t,i){var r;return Object(X.a)(this,n),r=f.call(this,a,t,i),r.type="glyph",r.horizAdvX=r.getAttribute("horiz-adv-x").getNumber(),r.unicode=r.getAttribute("unicode").getString(),r.arabicForm=r.getAttribute("arabic-form").getString(),r}return Object(J.a)(n)}(_t),De=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(a,t,i){var r;return Object(X.a)(this,n),r=f.call(this,a,t,new.target===n?!0:i),r.type="text",r.x=0,r.y=0,r.measureCache=-1,r}return Object(J.a)(n,[{key:"setContext",value:function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Object(H.a)(Object(B.a)(n.prototype),"setContext",this).call(this,t,i);var r=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();r&&(t.textBaseline=r)}},{key:"initializeCoordinates",value:function(){this.x=0,this.y=0,this.leafTexts=[],this.textChunkStart=0,this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY}},{key:"getBoundingBox",value:function(t){var i=this;if(this.type!=="text")return this.getTElementBoundingBox(t);this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(t);var r=null;return this.children.forEach(function(o,s){var l=i.getChildBoundingBox(t,i,i,s);r?r.addBoundingBox(l):r=l}),r}},{key:"getFontSize",value:function(){var t=this.document,i=this.parent,r=ve.parse(t.ctx.font).fontSize,o=i.getStyle("font-size").getNumber(r);return o}},{key:"getTElementBoundingBox",value:function(t){var i=this.getFontSize();return new ce(this.x,this.y-i,this.x+this.measureText(t),this.y)}},{key:"getGlyph",value:function(t,i,r){var o=i[r],s=null;if(t.isArabic){var l=i.length,c=i[r-1],p=i[r+1],E="isolated";if((r===0||c===" ")&&r0&&c!==" "&&r0&&c!==" "&&(r===l-1||p===" ")&&(E="initial"),typeof t.glyphs[o]!="undefined"){var D=t.glyphs[o];s=D instanceof Xe?D:D[E]}}else s=t.glyphs[o];return s||(s=t.missingGlyph),s}},{key:"getText",value:function(){return""}},{key:"getTextFromNode",value:function(t){var i=t||this.node,r=Array.from(i.parentNode.childNodes),o=r.indexOf(i),s=r.length-1,l=Ut(i.textContent||"");return o===0&&(l=Jt(l)),o===s&&(l=Nt(l)),l}},{key:"renderChildren",value:function(t){var i=this;if(this.type!=="text"){this.renderTElementChildren(t);return}this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(t),this.children.forEach(function(o,s){i.renderChild(t,i,i,s)});var r=this.document.screen.mouse;r.isWorking()&&r.checkBoundingBox(this,this.getBoundingBox(t))}},{key:"renderTElementChildren",value:function(t){var i=this.document,r=this.parent,o=this.getText(),s=r.getStyle("font-family").getDefinition();if(s){for(var l=s.fontFace.unitsPerEm,c=ve.parse(i.ctx.font),p=r.getStyle("font-size").getNumber(c.fontSize),E=r.getStyle("font-style").getString(c.fontStyle),D=p/l,K=s.isRTL?o.split("").reverse().join(""):o,_=Tt(r.getAttribute("dx").getString()),it=K.length,rt=0;rt=this.leafTexts.length)return;var t=this.leafTexts[this.textChunkStart],i=t.getStyle("text-anchor").getString("start"),r=!1,o=0;i==="start"&&!r||i==="end"&&r?o=t.x-this.minX:i==="end"&&!r||i==="start"&&r?o=t.x-this.maxX:o=t.x-(this.minX+this.maxX)/2;for(var s=this.textChunkStart;s0?s.children.forEach(function(l,c){i.adjustChildCoordinatesRecursiveCore(t,i,s,c)}):this.adjustChildCoordinates(t,i,r,o)}},{key:"adjustChildCoordinates",value:function(t,i,r,o){var s=r.children[o];if(typeof s.measureText!="function")return s;t.save(),s.setContext(t,!0);var l=s.getAttribute("x"),c=s.getAttribute("y"),p=s.getAttribute("dx"),E=s.getAttribute("dy"),D=s.getStyle("font-family").getDefinition(),K=Boolean(D)&&D.isRTL;o===0&&(l.hasValue()||l.setValue(s.getInheritedAttribute("x")),c.hasValue()||c.setValue(s.getInheritedAttribute("y")),p.hasValue()||p.setValue(s.getInheritedAttribute("dx")),E.hasValue()||E.setValue(s.getInheritedAttribute("dy")));var _=s.measureText(t);return K&&(i.x-=_),l.hasValue()?(i.applyAnchoring(),s.x=l.getPixels("x"),p.hasValue()&&(s.x+=p.getPixels("x"))):(p.hasValue()&&(i.x+=p.getPixels("x")),s.x=i.x),i.x=s.x,K||(i.x+=_),c.hasValue()?(s.y=c.getPixels("y"),E.hasValue()&&(s.y+=E.getPixels("y"))):(E.hasValue()&&(i.y+=E.getPixels("y")),s.y=i.y),i.y=s.y,i.leafTexts.push(s),i.minX=Math.min(i.minX,s.x,s.x+_),i.maxX=Math.max(i.maxX,s.x,s.x+_),s.clearContext(t),t.restore(),s}},{key:"getChildBoundingBox",value:function(t,i,r,o){var s=r.children[o];if(typeof s.getBoundingBox!="function")return null;var l=s.getBoundingBox(t);return l?(s.children.forEach(function(c,p){var E=i.getChildBoundingBox(t,i,s,p);l.addBoundingBox(E)}),l):null}},{key:"renderChild",value:function(t,i,r,o){var s=r.children[o];s.render(t),s.children.forEach(function(l,c){i.renderChild(t,i,s,c)})}},{key:"measureText",value:function(t){var i=this.measureCache;if(~i)return i;var r=this.getText(),o=this.measureTargetText(t,r);return this.measureCache=o,o}},{key:"measureTargetText",value:function(t,i){if(!i.length)return 0;var r=this.parent,o=r.getStyle("font-family").getDefinition();if(o){for(var s=this.getFontSize(),l=o.isRTL?i.split("").reverse().join(""):i,c=Tt(r.getAttribute("dx").getString()),p=l.length,E=0,D=0;D0?"":r.getTextFromNode(),r}return Object(J.a)(n,[{key:"getText",value:function(){return this.text}}]),n}(De),_r=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(){var a;return Object(X.a)(this,n),a=f.apply(this,arguments),a.type="textNode",a}return Object(J.a)(n)}(Qe),Le=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(){var a;return Object(X.a)(this,n),a=f.apply(this,arguments),a.type="svg",a.root=!1,a}return Object(J.a)(n,[{key:"setContext",value:function(t){var i,r=this.document,o=r.screen,s=r.window,l=t.canvas;if(o.setDefaults(t),l.style&&typeof t.font!="undefined"&&s&&typeof s.getComputedStyle!="undefined"){t.font=s.getComputedStyle(l).getPropertyValue("font");var c=new mt(r,"fontSize",ve.parse(t.font).fontSize);c.hasValue()&&(r.rootEmSize=c.getPixels("y"),r.emSize=r.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var p=o.viewPort,E=p.width,D=p.height;this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");var K=this.getAttribute("refX"),_=this.getAttribute("refY"),it=this.getAttribute("viewBox"),rt=it.hasValue()?Tt(it.getString()):null,xt=!this.root&&this.getStyle("overflow").getValue("hidden")!=="visible",dt=0,ft=0,Et=0,wt=0;rt&&(dt=rt[0],ft=rt[1]),this.root||(E=this.getStyle("width").getPixels("x"),D=this.getStyle("height").getPixels("y"),this.type==="marker"&&(Et=dt,wt=ft,dt=0,ft=0)),o.viewPort.setCurrent(E,D),this.node&&(!this.parent||((i=this.node.parentNode)===null||i===void 0?void 0:i.nodeName)==="foreignObject")&&this.getStyle("transform",!1,!0).hasValue()&&!this.getStyle("transform-origin",!1,!0).hasValue()&&this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),Object(H.a)(Object(B.a)(n.prototype),"setContext",this).call(this,t),t.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),rt&&(E=rt[2],D=rt[3]),r.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:o.viewPort.width,desiredWidth:E,height:o.viewPort.height,desiredHeight:D,minX:dt,minY:ft,refX:K.getValue(),refY:_.getValue(),clip:xt,clipX:Et,clipY:wt}),rt&&(o.viewPort.removeCurrent(),o.viewPort.setCurrent(E,D))}},{key:"clearContext",value:function(t){Object(H.a)(Object(B.a)(n.prototype),"clearContext",this).call(this,t),this.document.screen.viewPort.removeCurrent()}},{key:"resize",value:function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=this.getAttribute("width",!0),s=this.getAttribute("height",!0),l=this.getAttribute("viewBox"),c=this.getAttribute("style"),p=o.getNumber(0),E=s.getNumber(0);if(r)if(typeof r=="string")this.getAttribute("preserveAspectRatio",!0).setValue(r);else{var D=this.getAttribute("preserveAspectRatio");D.hasValue()&&D.setValue(D.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(o.setValue(t),s.setValue(i),l.hasValue()||l.setValue("0 0 ".concat(p||t," ").concat(E||i)),c.hasValue()){var K=this.getStyle("width"),_=this.getStyle("height");K.hasValue()&&K.setValue("".concat(t,"px")),_.hasValue()&&_.setValue("".concat(i,"px"))}}}]),n}(Oe),Je=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(){var a;return Object(X.a)(this,n),a=f.apply(this,arguments),a.type="rect",a}return Object(J.a)(n,[{key:"path",value:function(t){var i=this.getAttribute("x").getPixels("x"),r=this.getAttribute("y").getPixels("y"),o=this.getStyle("width",!1,!0).getPixels("x"),s=this.getStyle("height",!1,!0).getPixels("y"),l=this.getAttribute("rx"),c=this.getAttribute("ry"),p=l.getPixels("x"),E=c.getPixels("y");if(l.hasValue()&&!c.hasValue()&&(E=p),c.hasValue()&&!l.hasValue()&&(p=E),p=Math.min(p,o/2),E=Math.min(E,s/2),t){var D=4*((Math.sqrt(2)-1)/3);t.beginPath(),s>0&&o>0&&(t.moveTo(i+p,r),t.lineTo(i+o-p,r),t.bezierCurveTo(i+o-p+D*p,r,i+o,r+E-D*E,i+o,r+E),t.lineTo(i+o,r+s-E),t.bezierCurveTo(i+o,r+s-E+D*E,i+o-p+D*p,r+s,i+o-p,r+s),t.lineTo(i+p,r+s),t.bezierCurveTo(i+p-D*p,r+s,i,r+s-E+D*E,i,r+s-E),t.lineTo(i,r+E),t.bezierCurveTo(i,r+E-D*E,i+p-D*p,r,i+p,r),t.closePath())}return new ce(i,r,i+o,r+s)}},{key:"getMarkers",value:function(){return null}}]),n}(_t),fr=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(){var a;return Object(X.a)(this,n),a=f.apply(this,arguments),a.type="circle",a}return Object(J.a)(n,[{key:"path",value:function(t){var i=this.getAttribute("cx").getPixels("x"),r=this.getAttribute("cy").getPixels("y"),o=this.getAttribute("r").getPixels();return t&&o>0&&(t.beginPath(),t.arc(i,r,o,0,Math.PI*2,!1),t.closePath()),new ce(i-o,r-o,i+o,r+o)}},{key:"getMarkers",value:function(){return null}}]),n}(_t),hr=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(){var a;return Object(X.a)(this,n),a=f.apply(this,arguments),a.type="ellipse",a}return Object(J.a)(n,[{key:"path",value:function(t){var i=4*((Math.sqrt(2)-1)/3),r=this.getAttribute("rx").getPixels("x"),o=this.getAttribute("ry").getPixels("y"),s=this.getAttribute("cx").getPixels("x"),l=this.getAttribute("cy").getPixels("y");return t&&r>0&&o>0&&(t.beginPath(),t.moveTo(s+r,l),t.bezierCurveTo(s+r,l+i*o,s+i*r,l+o,s,l+o),t.bezierCurveTo(s-i*r,l+o,s-r,l+i*o,s-r,l),t.bezierCurveTo(s-r,l-i*o,s-i*r,l-o,s,l-o),t.bezierCurveTo(s+i*r,l-o,s+r,l-i*o,s+r,l),t.closePath()),new ce(s-r,l-o,s+r,l+o)}},{key:"getMarkers",value:function(){return null}}]),n}(_t),cr=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(){var a;return Object(X.a)(this,n),a=f.apply(this,arguments),a.type="line",a}return Object(J.a)(n,[{key:"getPoints",value:function(){return[new Xt(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new Xt(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}},{key:"path",value:function(t){var i=this.getPoints(),r=Object(ut.a)(i,2),o=r[0],s=o.x,l=o.y,c=r[1],p=c.x,E=c.y;return t&&(t.beginPath(),t.moveTo(s,l),t.lineTo(p,E)),new ce(s,l,p,E)}},{key:"getMarkers",value:function(){var t=this.getPoints(),i=Object(ut.a)(t,2),r=i[0],o=i[1],s=r.angleTo(o);return[[r,s],[o,s]]}}]),n}(_t),Ze=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(a,t,i){var r;return Object(X.a)(this,n),r=f.call(this,a,t,i),r.type="polyline",r.points=[],r.points=Xt.parsePath(r.getAttribute("points").getString()),r}return Object(J.a)(n,[{key:"path",value:function(t){var i=this.points,r=Object(ut.a)(i,1),o=r[0],s=o.x,l=o.y,c=new ce(s,l);return t&&(t.beginPath(),t.moveTo(s,l)),i.forEach(function(p){var E=p.x,D=p.y;c.addPoint(E,D),t&&t.lineTo(E,D)}),c}},{key:"getMarkers",value:function(){var t=this.points,i=t.length-1,r=[];return t.forEach(function(o,s){if(s===i)return;r.push([o,o.angleTo(t[s+1])])}),r.length>0&&r.push([t[t.length-1],r[r.length-1][1]]),r}}]),n}(_t),vr=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(){var a;return Object(X.a)(this,n),a=f.apply(this,arguments),a.type="polygon",a}return Object(J.a)(n,[{key:"path",value:function(t){var i=Object(H.a)(Object(B.a)(n.prototype),"path",this).call(this,t),r=Object(ut.a)(this.points,1),o=r[0],s=o.x,l=o.y;return t&&(t.lineTo(s,l),t.closePath()),i}}]),n}(Ze),dr=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(){var a;return Object(X.a)(this,n),a=f.apply(this,arguments),a.type="pattern",a}return Object(J.a)(n,[{key:"createPattern",value:function(t,i,r){var o=this.getStyle("width").getPixels("x",!0),s=this.getStyle("height").getPixels("y",!0),l=new Le(this.document,null);l.attributes.viewBox=new mt(this.document,"viewBox",this.getAttribute("viewBox").getValue()),l.attributes.width=new mt(this.document,"width","".concat(o,"px")),l.attributes.height=new mt(this.document,"height","".concat(s,"px")),l.attributes.transform=new mt(this.document,"transform",this.getAttribute("patternTransform").getValue()),l.children=this.children;var c=this.document.createCanvas(o,s),p=c.getContext("2d"),E=this.getAttribute("x"),D=this.getAttribute("y");E.hasValue()&&D.hasValue()&&p.translate(E.getPixels("x",!0),D.getPixels("y",!0)),r.hasValue()?this.styles["fill-opacity"]=r:Reflect.deleteProperty(this.styles,"fill-opacity");for(var K=-1;K<=1;K++)for(var _=-1;_<=1;_++)p.save(),l.attributes.x=new mt(this.document,"x",K*c.width),l.attributes.y=new mt(this.document,"y",_*c.height),l.render(p),p.restore();var it=t.createPattern(c,"repeat");return it}}]),n}(Kt),gr=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(){var a;return Object(X.a)(this,n),a=f.apply(this,arguments),a.type="marker",a}return Object(J.a)(n,[{key:"render",value:function(t,i,r){if(!i)return;var o=i.x,s=i.y,l=this.getAttribute("orient").getString("auto"),c=this.getAttribute("markerUnits").getString("strokeWidth");t.translate(o,s),l==="auto"&&t.rotate(r),c==="strokeWidth"&&t.scale(t.lineWidth,t.lineWidth),t.save();var p=new Le(this.document,null);p.type=this.type,p.attributes.viewBox=new mt(this.document,"viewBox",this.getAttribute("viewBox").getValue()),p.attributes.refX=new mt(this.document,"refX",this.getAttribute("refX").getValue()),p.attributes.refY=new mt(this.document,"refY",this.getAttribute("refY").getValue()),p.attributes.width=new mt(this.document,"width",this.getAttribute("markerWidth").getValue()),p.attributes.height=new mt(this.document,"height",this.getAttribute("markerHeight").getValue()),p.attributes.overflow=new mt(this.document,"overflow",this.getAttribute("overflow").getValue()),p.attributes.fill=new mt(this.document,"fill",this.getAttribute("fill").getColor("black")),p.attributes.stroke=new mt(this.document,"stroke",this.getAttribute("stroke").getValue("none")),p.children=this.children,p.render(t),t.restore(),c==="strokeWidth"&&t.scale(1/t.lineWidth,1/t.lineWidth),l==="auto"&&t.rotate(-r),t.translate(-o,-s)}}]),n}(Kt),pr=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(){var a;return Object(X.a)(this,n),a=f.apply(this,arguments),a.type="defs",a}return Object(J.a)(n,[{key:"render",value:function(){}}]),n}(Kt),Ge=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(){var a;return Object(X.a)(this,n),a=f.apply(this,arguments),a.type="g",a}return Object(J.a)(n,[{key:"getBoundingBox",value:function(t){var i=new ce;return this.children.forEach(function(r){i.addBoundingBox(r.getBoundingBox(t))}),i}}]),n}(Oe),qe=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(a,t,i){var r;Object(X.a)(this,n),r=f.call(this,a,t,i),r.attributesToInherit=["gradientUnits"],r.stops=[];var o=Object(A.a)(r),s=o.stops,l=o.children;return l.forEach(function(c){c.type==="stop"&&s.push(c)}),r}return Object(J.a)(n,[{key:"getGradientUnits",value:function(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}},{key:"createGradient",value:function(t,i,r){var o=this,s=this;this.getHrefAttribute().hasValue()&&(s=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(s));var l=s,c=l.stops,p=this.getGradient(t,i);if(!p)return this.addParentOpacity(r,c[c.length-1].color);if(c.forEach(function(Bt){p.addColorStop(Bt.offset,o.addParentOpacity(r,Bt.color))}),this.getAttribute("gradientTransform").hasValue()){var E=this.document,D=E.screen,K=D.MAX_VIRTUAL_PIXELS,_=D.viewPort,it=Object(ut.a)(_.viewPorts,1),rt=it[0],xt=new Je(E,null);xt.attributes.x=new mt(E,"x",-K/3),xt.attributes.y=new mt(E,"y",-K/3),xt.attributes.width=new mt(E,"width",K),xt.attributes.height=new mt(E,"height",K);var dt=new Ge(E,null);dt.attributes.transform=new mt(E,"transform",this.getAttribute("gradientTransform").getValue()),dt.children=[xt];var ft=new Le(E,null);ft.attributes.x=new mt(E,"x",0),ft.attributes.y=new mt(E,"y",0),ft.attributes.width=new mt(E,"width",rt.width),ft.attributes.height=new mt(E,"height",rt.height),ft.children=[dt];var Et=E.createCanvas(rt.width,rt.height),wt=Et.getContext("2d");return wt.fillStyle=p,ft.render(wt),wt.createPattern(Et,"no-repeat")}return p}},{key:"inheritStopContainer",value:function(t){var i=this;this.attributesToInherit.forEach(function(r){!i.getAttribute(r).hasValue()&&t.getAttribute(r).hasValue()&&i.getAttribute(r,!0).setValue(t.getAttribute(r).getValue())})}},{key:"addParentOpacity",value:function(t,i){if(t.hasValue()){var r=new mt(this.document,"color",i);return r.addOpacity(t).getColor()}return i}}]),n}(Kt),mr=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(a,t,i){var r;return Object(X.a)(this,n),r=f.call(this,a,t,i),r.type="linearGradient",r.attributesToInherit.push("x1","y1","x2","y2"),r}return Object(J.a)(n,[{key:"getGradient",value:function(t,i){var r=this.getGradientUnits()==="objectBoundingBox",o=r?i.getBoundingBox(t):null;if(r&&!o)return null;!this.getAttribute("x1").hasValue()&&!this.getAttribute("y1").hasValue()&&!this.getAttribute("x2").hasValue()&&!this.getAttribute("y2").hasValue()&&(this.getAttribute("x1",!0).setValue(0),this.getAttribute("y1",!0).setValue(0),this.getAttribute("x2",!0).setValue(1),this.getAttribute("y2",!0).setValue(0));var s=r?o.x+o.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),l=r?o.y+o.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),c=r?o.x+o.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),p=r?o.y+o.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return s===c&&l===p?null:t.createLinearGradient(s,l,c,p)}}]),n}(qe),yr=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(a,t,i){var r;return Object(X.a)(this,n),r=f.call(this,a,t,i),r.type="radialGradient",r.attributesToInherit.push("cx","cy","r","fx","fy","fr"),r}return Object(J.a)(n,[{key:"getGradient",value:function(t,i){var r=this.getGradientUnits()==="objectBoundingBox",o=i.getBoundingBox(t);if(r&&!o)return null;this.getAttribute("cx").hasValue()||this.getAttribute("cx",!0).setValue("50%"),this.getAttribute("cy").hasValue()||this.getAttribute("cy",!0).setValue("50%"),this.getAttribute("r").hasValue()||this.getAttribute("r",!0).setValue("50%");var s=r?o.x+o.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),l=r?o.y+o.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),c=s,p=l;this.getAttribute("fx").hasValue()&&(c=r?o.x+o.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(p=r?o.y+o.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var E=r?(o.width+o.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),D=this.getAttribute("fr").getPixels();return t.createRadialGradient(c,p,D,s,l,E)}}]),n}(qe),xr=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(a,t,i){var r;Object(X.a)(this,n),r=f.call(this,a,t,i),r.type="stop";var o=Math.max(0,Math.min(1,r.getAttribute("offset").getNumber())),s=r.getStyle("stop-opacity"),l=r.getStyle("stop-color",!0);return l.getString()===""&&l.setValue("#000"),s.hasValue()&&(l=l.addOpacity(s)),r.offset=o,r.color=l.getColor(),r}return Object(J.a)(n)}(Kt),ze=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(a,t,i){var r;Object(X.a)(this,n),r=f.call(this,a,t,i),r.type="animate",r.duration=0,r.initialValue=null,r.initialUnits="",r.removed=!1,r.frozen=!1,a.screen.animations.push(Object(A.a)(r)),r.begin=r.getAttribute("begin").getMilliseconds(),r.maxDuration=r.begin+r.getAttribute("dur").getMilliseconds(),r.from=r.getAttribute("from"),r.to=r.getAttribute("to"),r.values=new mt(a,"values",null);var o=r.getAttribute("values");return o.hasValue()&&r.values.setValue(o.getString().split(";")),r}return Object(J.a)(n,[{key:"getProperty",value:function(){var t=this.getAttribute("attributeType").getString(),i=this.getAttribute("attributeName").getString();return t==="CSS"?this.parent.getStyle(i,!0):this.parent.getAttribute(i,!0)}},{key:"calcValue",value:function(){var t=this.initialUnits,i=this.getProgress(),r=i.progress,o=i.from,s=i.to,l=o.getNumber()+(s.getNumber()-o.getNumber())*r;return t==="%"&&(l*=100),"".concat(l).concat(t)}},{key:"update",value:function(t){var i=this.parent,r=this.getProperty();if(this.initialValue||(this.initialValue=r.getString(),this.initialUnits=r.getUnits()),this.duration>this.maxDuration){var o=this.getAttribute("fill").getString("remove");if(this.getAttribute("repeatCount").getString()==="indefinite"||this.getAttribute("repeatDur").getString()==="indefinite")this.duration=0;else if(o==="freeze"&&!this.frozen)this.frozen=!0,i.animationFrozen=!0,i.animationFrozenValue=r.getString();else if(o==="remove"&&!this.removed)return this.removed=!0,r.setValue(i.animationFrozen?i.animationFrozenValue:this.initialValue),!0;return!1}this.duration+=t;var s=!1;if(this.begin0&&Array.from(o).every(function(c){return c.nodeType===3});return r.hasText=l,r.text=l?r.getTextFromNode(s):"",r}return Object(J.a)(n,[{key:"getText",value:function(){return this.text}},{key:"renderChildren",value:function(t){if(this.hasText){Object(H.a)(Object(B.a)(n.prototype),"renderChildren",this).call(this,t);var i=this.document,r=this.x,o=this.y,s=i.screen.mouse,l=new mt(i,"fontSize",ve.parse(i.ctx.font).fontSize);s.isWorking()&&s.checkBoundingBox(this,new ce(r,o-l.getPixels("y"),r+this.measureText(t),o))}else if(this.children.length>0){var c=new Ge(this.document,null);c.children=this.children,c.parent=this,c.render(t)}}},{key:"onClick",value:function(){var t=this.document.window;t&&t.open(this.getHrefAttribute().getString())}},{key:"onMouseMove",value:function(){var t=this.document.ctx;t.canvas.style.cursor="pointer"}}]),n}(De);function Rr(v,f){var n=Object.keys(v);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(v);f&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(v,t).enumerable})),n.push.apply(n,a)}return n}function He(v){for(var f=1;fD?E:D,dt=E>D?1:E/D,ft=E>D?D/E:1;t&&(t.translate(c,p),t.rotate(it),t.scale(dt,ft),t.arc(0,0,xt,K,K+_,Boolean(1-rt)),t.scale(1/dt,1/ft),t.rotate(-it),t.translate(-c,-p));break}case At.CLOSE_PATH:t&&t.closePath();break}})}},{key:"renderChildren",value:function(t){this.setTextData(t),t.save();var i=this.parent.getStyle("text-decoration").getString(),r=this.getFontSize(),o=this.glyphInfo,s=t.fillStyle;i==="underline"&&t.beginPath(),o.forEach(function(l,c){var p=l.p0,E=l.p1,D=l.rotation,K=l.text;t.save(),t.translate(p.x,p.y),t.rotate(D),t.fillStyle&&t.fillText(K,0,0),t.strokeStyle&&t.strokeText(K,0,0),t.restore(),i==="underline"&&(c===0&&t.moveTo(p.x,p.y+r/8),t.lineTo(E.x,E.y+r/5))}),i==="underline"&&(t.lineWidth=r/20,t.strokeStyle=s,t.stroke(),t.closePath()),t.restore()}},{key:"getLetterSpacingAt",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return this.letterSpacingCache[t]||0}},{key:"findSegmentToFitChar",value:function(t,i,r,o,s,l,c,p,E){var D=l,K=this.measureText(t,p);p===" "&&i==="justify"&&r-1&&(D+=this.getLetterSpacingAt(E));var _=this.textHeight/20,it=this.getEquidistantPointOnPath(D,_,0),rt=this.getEquidistantPointOnPath(D+K,_,0),xt={p0:it,p1:rt},dt=it&&rt?Math.atan2(rt.y-it.y,rt.x-it.x):0;if(c){var ft=Math.cos(Math.PI/2+dt)*c,Et=Math.cos(-dt)*c;xt.p0=He(He({},it),{},{x:it.x+ft,y:it.y+Et}),xt.p1=He(He({},rt),{},{x:rt.x+ft,y:rt.y+Et})}return D+=K,{offset:D,segment:xt,rotation:dt}}},{key:"measureText",value:function(t,i){var r=this.measuresCache,o=i||this.getText();if(r.has(o))return r.get(o);var s=this.measureTargetText(t,o);return r.set(o,s),s}},{key:"setTextData",value:function(t){var i=this;if(this.glyphInfo)return;var r=this.getText(),o=r.split(""),s=r.split(" ").length-1,l=this.parent.getAttribute("dx").split().map(function(Qt){return Qt.getPixels("x")}),c=this.parent.getAttribute("dy").getPixels("y"),p=this.parent.getStyle("text-anchor").getString("start"),E=this.getStyle("letter-spacing"),D=this.parent.getStyle("letter-spacing"),K=0;!E.hasValue()||E.getValue()==="inherit"?K=D.getPixels():E.hasValue()&&(E.getValue()!=="initial"&&E.getValue()!=="unset"&&(K=E.getPixels()));var _=[],it=r.length;this.letterSpacingCache=_;for(var rt=0;rt0&&(E-=2*Math.PI),s===1&&E<0&&(E+=2*Math.PI),[c.x,c.y,r,o,p,E,l,s]}},{key:"calcLength",value:function(t,i,r,o){var s=0,l=null,c=null,p=0;switch(r){case At.LINE_TO:return this.getLineLength(t,i,o[0],o[1]);case At.CURVE_TO:for(s=0,l=this.getPointOnCubicBezier(0,t,i,o[0],o[1],o[2],o[3],o[4],o[5]),p=.01;p<=1;p+=.01)c=this.getPointOnCubicBezier(p,t,i,o[0],o[1],o[2],o[3],o[4],o[5]),s+=this.getLineLength(l.x,l.y,c.x,c.y),l=c;return s;case At.QUAD_TO:for(s=0,l=this.getPointOnQuadraticBezier(0,t,i,o[0],o[1],o[2],o[3]),p=.01;p<=1;p+=.01)c=this.getPointOnQuadraticBezier(p,t,i,o[0],o[1],o[2],o[3]),s+=this.getLineLength(l.x,l.y,c.x,c.y),l=c;return s;case At.ARC:{s=0;var E=o[4],D=o[5],K=o[4]+D,_=Math.PI/180;if(Math.abs(E-K)<_&&(_=Math.abs(E-K)),l=this.getPointOnEllipticalArc(o[0],o[1],o[2],o[3],E,0),D<0)for(p=E-_;p>K;p-=_)c=this.getPointOnEllipticalArc(o[0],o[1],o[2],o[3],p,0),s+=this.getLineLength(l.x,l.y,c.x,c.y),l=c;else for(p=E+_;p5&&arguments[5]!==void 0?arguments[5]:i,c=arguments.length>6&&arguments[6]!==void 0?arguments[6]:r,p=(s-r)/(o-i+kt),E=Math.sqrt(t*t/(1+p*p));oi)return null;var s=this.dataArray,l=Object(b.a)(s),c;try{for(l.s();!(c=l.n()).done;){var p=c.value;if(p&&(p.pathLength<5e-5||r+p.pathLength+5e-5=0&&D>it)break;o=this.getPointOnEllipticalArc(p.points[0],p.points[1],p.points[2],p.points[3],D,p.points[6]);break}case At.CURVE_TO:D=E/p.pathLength,D>1&&(D=1),o=this.getPointOnCubicBezier(D,p.start.x,p.start.y,p.points[0],p.points[1],p.points[2],p.points[3],p.points[4],p.points[5]);break;case At.QUAD_TO:D=E/p.pathLength,D>1&&(D=1),o=this.getPointOnQuadraticBezier(D,p.start.x,p.start.y,p.points[0],p.points[1],p.points[2],p.points[3]);break}if(o)return o;break}}catch(rt){l.e(rt)}finally{l.f()}return null}},{key:"getLineLength",value:function(t,i,r,o){return Math.sqrt((r-t)*(r-t)+(o-i)*(o-i))}},{key:"getPathLength",value:function(){return this.pathLength===-1&&(this.pathLength=this.dataArray.reduce(function(t,i){return i.pathLength>0?t+i.pathLength:t},0)),this.pathLength}},{key:"getPointOnCubicBezier",value:function(t,i,r,o,s,l,c,p,E){var D=p*Se(t)+l*me(t)+o*ye(t)+i*xe(t),K=E*Se(t)+c*me(t)+s*ye(t)+r*xe(t);return{x:D,y:K}}},{key:"getPointOnQuadraticBezier",value:function(t,i,r,o,s,l,c){var p=l*Ee(t)+o*Ie(t)+i*Ne(t),E=c*Ee(t)+s*Ie(t)+r*Ne(t);return{x:p,y:E}}},{key:"getPointOnEllipticalArc",value:function(t,i,r,o,s,l){var c=Math.cos(l),p=Math.sin(l),E={x:r*Math.cos(s),y:o*Math.sin(s)};return{x:t+(E.x*c-E.y*p),y:i+(E.x*p+E.y*c)}}},{key:"buildEquidistantCache",value:function(t,i){var r=this.getPathLength(),o=i||.25,s=t||r/100;if(!this.equidistantCache||this.equidistantCache.step!==s||this.equidistantCache.precision!==o){this.equidistantCache={step:s,precision:o,points:[]};for(var l=0,c=0;c<=r;c+=o){var p=this.getPointOnPath(c),E=this.getPointOnPath(c+o);if(!p||!E)continue;l+=this.getLineLength(p.x,p.y,E.x,E.y),l>=s&&(this.equidistantCache.points.push({x:p.x,y:p.y,distance:c}),l-=s)}}}},{key:"getEquidistantPointOnPath",value:function(t,i,r){if(this.buildEquidistantCache(i,r),t<0||t-this.getPathLength()>5e-5)return null;var o=Math.round(t/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[o]||null}}]),n}(De),tn=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i,Ir=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(a,t,i){var r;Object(X.a)(this,n),r=f.call(this,a,t,i),r.type="image",r.loaded=!1;var o=r.getHrefAttribute().getString();if(!o)return Object($.a)(r);var s=o.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(o);return a.images.push(Object(A.a)(r)),s?void r.loadSvg(o):void r.loadImage(o),r.isSvg=s,r}return Object(J.a)(n,[{key:"loadImage",value:function(t){var i=this;return vt()(Ct().mark(function r(){var o;return Ct().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:return l.prev=0,l.next=3,i.document.createImage(t);case 3:o=l.sent,i.image=o,l.next=10;break;case 7:l.prev=7,l.t0=l.catch(0),console.error('Error while loading image "'.concat(t,'":'),l.t0);case 10:i.loaded=!0;case 11:case"end":return l.stop()}},r,null,[[0,7]])}))()}},{key:"loadSvg",value:function(t){var i=this;return vt()(Ct().mark(function r(){var o,s,l,c;return Ct().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:if(o=tn.exec(t),!o){E.next=6;break}s=o[5],o[4]==="base64"?i.image=atob(s):i.image=decodeURIComponent(s),E.next=19;break;case 6:return E.prev=6,E.next=9,i.document.fetch(t);case 9:return l=E.sent,E.next=12,l.text();case 12:c=E.sent,i.image=c,E.next=19;break;case 16:E.prev=16,E.t0=E.catch(6),console.error('Error while loading image "'.concat(t,'":'),E.t0);case 19:i.loaded=!0;case 20:case"end":return E.stop()}},r,null,[[6,16]])}))()}},{key:"renderChildren",value:function(t){var i=this.document,r=this.image,o=this.loaded,s=this.getAttribute("x").getPixels("x"),l=this.getAttribute("y").getPixels("y"),c=this.getStyle("width").getPixels("x"),p=this.getStyle("height").getPixels("y");if(!o||!r||!c||!p)return;if(t.save(),t.translate(s,l),this.isSvg){var E=i.canvg.forkString(t,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:c,scaleHeight:p});E.document.documentElement.parent=this,void E.render()}else{var D=this.image;i.setViewBox({ctx:t,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:c,desiredWidth:D.width,height:p,desiredHeight:D.height}),this.loaded&&((typeof D.complete=="undefined"||D.complete)&&t.drawImage(D,0,0))}t.restore()}},{key:"getBoundingBox",value:function(){var t=this.getAttribute("x").getPixels("x"),i=this.getAttribute("y").getPixels("y"),r=this.getStyle("width").getPixels("x"),o=this.getStyle("height").getPixels("y");return new ce(t,i,t+r,i+o)}}]),n}(Oe),Nr=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(){var a;return Object(X.a)(this,n),a=f.apply(this,arguments),a.type="symbol",a}return Object(J.a)(n,[{key:"render",value:function(t){}}]),n}(Oe),Mr=function(){function v(f){Object(X.a)(this,v),this.document=f,this.loaded=!1,f.fonts.push(this)}return Object(J.a)(v,[{key:"load",value:function(n,a){var t=this;return vt()(Ct().mark(function i(){var r,o,s;return Ct().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.prev=0,r=t.document,c.next=4,r.canvg.parser.load(a);case 4:o=c.sent,s=o.getElementsByTagName("font"),Array.from(s).forEach(function(p){var E=r.createElement(p);r.definitions[n]=E}),c.next=12;break;case 9:c.prev=9,c.t0=c.catch(0),console.error('Error while loading font "'.concat(a,'":'),c.t0);case 12:t.loaded=!0;case 13:case"end":return c.stop()}},i,null,[[0,9]])}))()}}]),v}(),_e=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(a,t,i){var r;Object(X.a)(this,n),r=f.call(this,a,t,i),r.type="style";var o=Ut(Array.from(t.childNodes).map(function(l){return l.textContent}).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")),s=o.split("}");return s.forEach(function(l){var c=l.trim();if(!c)return;var p=c.split("{"),E=p[0].split(","),D=p[1].split(";");E.forEach(function(K){var _=K.trim();if(!_)return;var it=a.styles[_]||{};if(D.forEach(function(dt){var ft=dt.indexOf(":"),Et=dt.substr(0,ft).trim(),wt=dt.substr(ft+1,dt.length-ft).trim();Et&&wt&&(it[Et]=new mt(a,Et,wt))}),a.styles[_]=it,a.stylesSpecificity[_]=he(_),_==="@font-face"){var rt=it["font-family"].getString().replace(/"|'/g,""),xt=it.src.getString().split(",");xt.forEach(function(dt){if(dt.indexOf('format("svg")')>0){var ft=pt(dt);ft&&void new Mr(a).load(rt,ft)}})}})}),r}return Object(J.a)(n)}(Kt);_e.parseExternalUrl=pt;var jr=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(){var a;return Object(X.a)(this,n),a=f.apply(this,arguments),a.type="use",a}return Object(J.a)(n,[{key:"setContext",value:function(t){Object(H.a)(Object(B.a)(n.prototype),"setContext",this).call(this,t);var i=this.getAttribute("x"),r=this.getAttribute("y");i.hasValue()&&t.translate(i.getPixels("x"),0),r.hasValue()&&t.translate(0,r.getPixels("y"))}},{key:"path",value:function(t){var i=this.element;i&&i.path(t)}},{key:"renderChildren",value:function(t){var i=this.document,r=this.element;if(r){var o=r;if(r.type==="symbol"&&(o=new Le(i,null),o.attributes.viewBox=new mt(i,"viewBox",r.getAttribute("viewBox").getString()),o.attributes.preserveAspectRatio=new mt(i,"preserveAspectRatio",r.getAttribute("preserveAspectRatio").getString()),o.attributes.overflow=new mt(i,"overflow",r.getAttribute("overflow").getString()),o.children=r.children,r.styles.opacity=new mt(i,"opacity",this.calculateOpacity())),o.type==="svg"){var s=this.getStyle("width",!1,!0),l=this.getStyle("height",!1,!0);s.hasValue()&&(o.attributes.width=new mt(i,"width",s.getString())),l.hasValue()&&(o.attributes.height=new mt(i,"height",l.getString()))}var c=o.parent;o.parent=this,o.render(t),o.parent=c}}},{key:"getBoundingBox",value:function(t){var i=this.element;return i?i.getBoundingBox(t):null}},{key:"elementTransform",value:function(){var t=this.document,i=this.element;return we.fromElement(t,i)}},{key:"element",get:function(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}}]),n}(Oe);function $e(v,f,n,a,t,i){return v[n*a*4+f*4+i]}function Ye(v,f,n,a,t,i,r){v[n*a*4+f*4+i]=r}function Zt(v,f,n){var a=v[f];return a*n}function ge(v,f,n,a){return f+Math.cos(v)*n+Math.sin(v)*a}var tr=function(v){Object(Q.a)(n,v);var f=Object(Y.a)(n);function n(a,t,i){var r;Object(X.a)(this,n),r=f.call(this,a,t,i),r.type="feColorMatrix";var o=Tt(r.getAttribute("values").getString());switch(r.getAttribute("type").getString("matrix")){case"saturate":{var s=o[0];o=[.213+.787*s,.715-.715*s,.072-.072*s,0,0,.213-.213*s,.715+.285*s,.072-.072*s,0,0,.213-.213*s,.715-.715*s,.072+.928*s,0,0,0,0,0,1,0,0,0,0,0,1];break}case"hueRotate":{var l=o[0]*Math.PI/180;o=[ge(l,.213,.787,-.213),ge(l,.715,-.715,-.715),ge(l,.072,-.072,.928),0,0,ge(l,.213,-.213,.143),ge(l,.715,.285,.14),ge(l,.072,-.072,-.283),0,0,ge(l,.213,-.213,-.787),ge(l,.715,-.715,.715),ge(l,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break}case"luminanceToAlpha":o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1];break}return r.matrix=o,r.includeOpacity=r.getAttribute("includeOpacity").hasValue(),r}return Object(J.a)(n,[{key:"apply",value:function(t,i,r,o,s){for(var l=this.includeOpacity,c=this.matrix,p=t.getImageData(0,0,o,s),E=0;E1&&t[1]!==void 0?t[1]:!1,a=document.createElement("img"),n&&(a.crossOrigin="Anonymous"),r.abrupt("return",new Promise(function(o,s){a.onload=function(){o(a)},a.onerror=function(l,c,p,E,D){s(D)},a.src=f}));case 4:case"end":return r.stop()}},v)})),nr.apply(this,arguments)}var Ve=function(){function v(f){Object(X.a)(this,v);var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.rootEmSize,t=a===void 0?12:a,i=n.emSize,r=i===void 0?12:i,o=n.createCanvas,s=o===void 0?v.createCanvas:o,l=n.createImage,c=l===void 0?v.createImage:l,p=n.anonymousCrossOrigin;this.canvg=f,this.definitions={},this.styles={},this.stylesSpecificity={},this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=f.screen,this.rootEmSize=t,this.emSize=r,this.createCanvas=s,this.createImage=this.bindCreateImage(c,p),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}return Object(J.a)(v,[{key:"bindCreateImage",value:function(n,a){return typeof a=="boolean"?function(t,i){return n(t,typeof i=="boolean"?i:a)}:n}},{key:"window",get:function(){return this.screen.window}},{key:"fetch",get:function(){return this.screen.fetch}},{key:"ctx",get:function(){return this.screen.ctx}},{key:"emSize",get:function(){var n=this.emSizeStack;return n[n.length-1]},set:function(n){var a=this.emSizeStack;a.push(n)}},{key:"popEmSize",value:function(){var n=this.emSizeStack;n.pop()}},{key:"getUniqueId",value:function(){return"canvg".concat(++this.uniqueId)}},{key:"isImagesLoaded",value:function(){return this.images.every(function(n){return n.loaded})}},{key:"isFontsLoaded",value:function(){return this.fonts.every(function(n){return n.loaded})}},{key:"createDocumentElement",value:function(n){var a=this.createElement(n.documentElement);return a.root=!0,a.addStylesFromStyleDefinition(),this.documentElement=a,a}},{key:"createElement",value:function(n){var a=n.nodeName.replace(/^[^:]+:/,""),t=v.elementTypes[a];return typeof t!="undefined"?new t(this,n):new ur(this,n)}},{key:"createTextNode",value:function(n){return new _r(this,n)}},{key:"setViewBox",value:function(n){this.screen.setViewBox(rn({document:this},n))}}]),v}();Ve.createCanvas=nn,Ve.createImage=an,Ve.elementTypes=en;function zr(v,f){var n=Object.keys(v);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(v);f&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(v,t).enumerable})),n.push.apply(n,a)}return n}function Ae(v){for(var f=1;f2&&arguments[2]!==void 0?arguments[2]:{};this.parser=new We(a),this.screen=new de(f,a),this.options=a;var t=new Ve(this,a),i=t.createDocumentElement(n);this.document=t,this.documentElement=i}return Object(J.a)(v,[{key:"fork",value:function(n,a){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return v.from(n,a,Ae(Ae({},this.options),t))}},{key:"forkString",value:function(n,a){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return v.fromString(n,a,Ae(Ae({},this.options),t))}},{key:"ready",value:function(){return this.screen.ready()}},{key:"isReady",value:function(){return this.screen.isReady()}},{key:"render",value:function(){var n=arguments,a=this;return vt()(Ct().mark(function t(){var i;return Ct().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return i=n.length>0&&n[0]!==void 0?n[0]:{},a.start(Ae({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},i)),o.next=4,a.ready();case 4:a.stop();case 5:case"end":return o.stop()}},t)}))()}},{key:"start",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=this.documentElement,t=this.screen,i=this.options;t.start(a,Ae(Ae({enableRedraw:!0},i),n))}},{key:"stop",value:function(){this.screen.stop()}},{key:"resize",value:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:n,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.documentElement.resize(n,a,t)}}],[{key:"from",value:function(n,a){var t=arguments;return vt()(Ct().mark(function i(){var r,o,s;return Ct().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return r=t.length>2&&t[2]!==void 0?t[2]:{},o=new We(r),c.next=4,o.parse(a);case 4:return s=c.sent,c.abrupt("return",new v(n,s,r));case 6:case"end":return c.stop()}},i)}))()}},{key:"fromString",value:function(n,a){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=new We(t),r=i.parseFromString(a);return new v(n,r,t)}}]),v}()}.call(this,e("Q2Ig"))},Dk1u:function(m,x,e){var u=e("4YbN"),h=e("IL+x"),d=TypeError;m.exports=function(g){if(u(g))return g;throw d(h(g)+" is not a constructor")}},ENhe:function(m,x){m.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},ESVS:function(m,x,e){"use strict";var u=e("nCzB"),h=e("m7zg"),d=e("zFjv"),g=e("GxTi").CONSTRUCTOR;u({target:"Promise",stat:!0,forced:g},{reject:function(T){var C=d.f(this);return h(C.reject,void 0,T),C.promise}})},FjAG:function(m,x,e){var u=e("8HiI"),h=e("721z"),d=e("p5Ma"),g=e("tMNq"),y=TypeError,T=function(C){return function(N,P,M,G){u(P);var j=h(N),F=d(j),V=g(j),L=C?V-1:0,k=C?-1:1;if(M<2)for(;;){if(L in F){G=F[L],L+=k;break}if(L+=k,C?L<0:V<=L)throw y("Reduce of empty array with no initial value")}for(;C?L>=0:V>L;L+=k)L in F&&(G=P(G,F[L],L,j));return G}};m.exports={left:T(!1),right:T(!0)}},FkIU:function(m,x,e){var u=e("++4Y"),h=e("eRwv");m.exports=u&&h(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},FlRv:function(m,x,e){var u=e("++4Y"),h=e("pVCk"),d=e("FkIU"),g=e("WxoH"),y=e("GTqx"),T=TypeError,C=Object.defineProperty,N=Object.getOwnPropertyDescriptor,P="enumerable",M="configurable",G="writable";x.f=u?d?function(F,V,L){if(g(F),V=y(V),g(L),typeof F=="function"&&V==="prototype"&&"value"in L&&G in L&&!L[G]){var k=N(F,V);k&&k[G]&&(F[V]=L.value,L={configurable:M in L?L[M]:k[M],enumerable:P in L?L[P]:k[P],writable:!1})}return C(F,V,L)}:C:function(F,V,L){if(g(F),V=y(V),g(L),h)try{return C(F,V,L)}catch(k){}if("get"in L||"set"in L)throw T("Accessors not supported");return"value"in L&&(F[V]=L.value),F}},FqHY:function(m,x,e){var u=e("eE3R"),h=e("Ks5W");m.exports=/ipad|iphone|ipod/i.test(u)&&h.Pebble!==void 0},G5Kn:function(m,x,e){var u=e("11yv"),h=e("XFuk"),d=e("FlRv").f,g=u("unscopables"),y=Array.prototype;y[g]==null&&d(y,g,{configurable:!0,value:h(null)}),m.exports=function(T){y[g][T]=!0}},GI0h:function(m,x,e){var u=e("me6S"),h=u("span").classList,d=h&&h.constructor&&h.constructor.prototype;m.exports=d===Object.prototype?void 0:d},GTqx:function(m,x,e){var u=e("ms20"),h=e("bT0D");m.exports=function(d){var g=u(d,"string");return h(g)?g:g+""}},GVkW:function(m,x,e){"use strict";var u=e("nCzB"),h=e("aLaa"),d=e("fKql").f,g=e("c3MK"),y=e("qzpy"),T=e("OU4x"),C=e("XaNE"),N=e("/TZh"),P=e("jybJ"),M=h("".endsWith),G=h("".slice),j=Math.min,F=N("endsWith"),V=!P&&!F&&!!function(){var L=d(String.prototype,"endsWith");return L&&!L.writable}();u({target:"String",proto:!0,forced:!V&&!F},{endsWith:function(k){var et=y(C(this));T(k);var W=arguments.length>1?arguments[1]:void 0,nt=et.length,w=W===void 0?nt:j(g(W),nt),st=y(k);return M?M(et,st,w):G(et,w-st.length,w)===st}})},GgKt:function(m,x,e){var u=e("eE3R");m.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(u)},GxTi:function(m,x,e){var u=e("Ks5W"),h=e("KLK4"),d=e("JTf3"),g=e("mGb/"),y=e("sNJV"),T=e("11yv"),C=e("vTDQ"),N=e("dAmL"),P=e("jybJ"),M=e("aNIs"),G=h&&h.prototype,j=T("species"),F=!1,V=d(u.PromiseRejectionEvent),L=g("Promise",function(){var k=y(h),et=k!==String(h);if(!et&&M===66)return!0;if(P&&!(G.catch&&G.finally))return!0;if(!M||M<51||!/native code/.test(k)){var W=new h(function(st){st(1)}),nt=function(st){st(function(){},function(){})},w=W.constructor={};if(w[j]=nt,F=W.then(function(){})instanceof nt,!F)return!0}return!et&&(C||N)&&!V});m.exports={CONSTRUCTOR:L,REJECTION_EVENT:V,SUBCLASSING:F}},Gywb:function(m,x,e){var u=e("eRwv");m.exports=!u(function(){function h(){}return h.prototype.constructor=null,Object.getPrototypeOf(new h)!==h.prototype})},"HTC/":function(m,x,e){"use strict";var u=e("WxoH");m.exports=function(){var h=u(this),d="";return h.hasIndices&&(d+="d"),h.global&&(d+="g"),h.ignoreCase&&(d+="i"),h.multiline&&(d+="m"),h.dotAll&&(d+="s"),h.unicode&&(d+="u"),h.unicodeSets&&(d+="v"),h.sticky&&(d+="y"),d}},IGIO:function(m,x,e){var u=e("ba8b"),h=e("Ks5W");m.exports=u(h.process)=="process"},"IL+x":function(m,x){var e=String;m.exports=function(u){try{return e(u)}catch(h){return"Object"}}},JHvW:function(m,x,e){var u=e("aLaa"),h=e("WxoH"),d=e("NIpK");m.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var g=!1,y={},T;try{T=u(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),T(y,[]),g=y instanceof Array}catch(C){}return function(N,P){return h(N),d(P),g?T(N,P):N.__proto__=P,N}}():void 0)},JTf3:function(m,x){m.exports=function(e){return typeof e=="function"}},KKe4:function(m,x,e){"use strict";var u=e("m7zg"),h=e("WONN"),d=e("WxoH"),g=e("c3MK"),y=e("qzpy"),T=e("XaNE"),C=e("oK8H"),N=e("M/+V"),P=e("3fk+");h("match",function(M,G,j){return[function(V){var L=T(this),k=V==null?void 0:C(V,M);return k?u(k,V,L):new RegExp(V)[M](y(L))},function(F){var V=d(this),L=y(F),k=j(G,V,L);if(k.done)return k.value;if(!V.global)return P(V,L);var et=V.unicode;V.lastIndex=0;for(var W=[],nt=0,w;(w=P(V,L))!==null;){var st=y(w[0]);W[nt]=st,st===""&&(V.lastIndex=N(L,g(V.lastIndex),et)),nt++}return nt===0?null:W}]})},KLK4:function(m,x,e){var u=e("Ks5W");m.exports=u.Promise},KLN8:function(m,x,e){"use strict";var u=e("nCzB"),h=e("aLaa"),d=e("fKql").f,g=e("c3MK"),y=e("qzpy"),T=e("OU4x"),C=e("XaNE"),N=e("/TZh"),P=e("jybJ"),M=h("".startsWith),G=h("".slice),j=Math.min,F=N("startsWith"),V=!P&&!F&&!!function(){var L=d(String.prototype,"startsWith");return L&&!L.writable}();u({target:"String",proto:!0,forced:!V&&!F},{startsWith:function(k){var et=y(C(this));T(k);var W=g(j(arguments.length>1?arguments[1]:void 0,et.length)),nt=y(k);return M?M(et,nt,W):G(et,W,W+nt.length)===nt}})},Ks5W:function(m,x,e){(function(u){var h=function(d){return d&&d.Math==Math&&d};m.exports=h(typeof globalThis=="object"&&globalThis)||h(typeof window=="object"&&window)||h(typeof self=="object"&&self)||h(typeof u=="object"&&u)||function(){return this}()||Function("return this")()}).call(this,e("yLpj"))},Lltv:function(m,x,e){"use strict";var u=e("vkZI"),h=e("G5Kn"),d=e("AoAp"),g=e("UQ6y"),y=e("FlRv").f,T=e("jgt4"),C=e("jybJ"),N=e("++4Y"),P="Array Iterator",M=g.set,G=g.getterFor(P);m.exports=T(Array,"Array",function(F,V){M(this,{type:P,target:u(F),index:0,kind:V})},function(){var F=G(this),V=F.target,L=F.kind,k=F.index++;return!V||k>=V.length?(F.target=void 0,{value:void 0,done:!0}):L=="keys"?{value:k,done:!1}:L=="values"?{value:V[k],done:!1}:{value:[k,V[k]],done:!1}},"values");var j=d.Arguments=d.Array;if(h("keys"),h("values"),h("entries"),!C&&N&&j.name!=="values")try{y(j,"name",{value:"values"})}catch(F){}},"M/+V":function(m,x,e){"use strict";var u=e("ymN0").charAt;m.exports=function(h,d,g){return d+(g?u(h,d).length:1)}},MNKV:function(m,x,e){"use strict";var u=e("nCzB"),h=e("aLaa"),d=e("OU4x"),g=e("XaNE"),y=e("qzpy"),T=e("/TZh"),C=h("".indexOf);u({target:"String",proto:!0,forced:!T("includes")},{includes:function(P){return!!~C(y(g(this)),y(d(P)),arguments.length>1?arguments[1]:void 0)}})},MURR:function(m,x,e){var u=e("aLaa"),h=0,d=Math.random(),g=u(1 .toString);m.exports=function(y){return"Symbol("+(y===void 0?"":y)+")_"+g(++h+d,36)}},N6FT:function(m,x,e){var u=e("++4Y"),h=e("YELS"),d=Function.prototype,g=u&&Object.getOwnPropertyDescriptor,y=h(d,"name"),T=y&&function(){}.name==="something",C=y&&(!u||u&&g(d,"name").configurable);m.exports={EXISTS:y,PROPER:T,CONFIGURABLE:C}},NCkV:function(m,x,e){"use strict";var u=e("1mOU"),h=e("m7zg"),d=e("aLaa"),g=e("WONN"),y=e("COGW"),T=e("WxoH"),C=e("XaNE"),N=e("NudO"),P=e("M/+V"),M=e("c3MK"),G=e("qzpy"),j=e("oK8H"),F=e("8Ys4"),V=e("3fk+"),L=e("WMbf"),k=e("RhGR"),et=e("eRwv"),W=k.UNSUPPORTED_Y,nt=4294967295,w=Math.min,st=[].push,R=d(/./.exec),S=d(st),U=d("".slice),I=!et(function(){var tt=/(?:)/,at=tt.exec;tt.exec=function(){return at.apply(this,arguments)};var Z="ab".split(tt);return Z.length!==2||Z[0]!=="a"||Z[1]!=="b"});g("split",function(tt,at,Z){var O;return"abbc".split(/(b)*/)[1]=="c"||"test".split(/(?:)/,-1).length!=4||"ab".split(/(?:ab)*/).length!=2||".".split(/(.?)(.?)/).length!=4||".".split(/()()/).length>1||"".split(/.?/).length?O=function($,b){var A=G(C(this)),H=b===void 0?nt:b>>>0;if(H===0)return[];if($===void 0)return[A];if(!y($))return h(at,A,$,H);for(var B=[],z=($.ignoreCase?"i":"")+($.multiline?"m":"")+($.unicode?"u":"")+($.sticky?"y":""),Q=0,Y=new RegExp($.source,z+"g"),X,J,ut;(X=h(L,Y,A))&&!(J=Y.lastIndex,J>Q&&(S(B,U(A,Q,X.index)),X.length>1&&X.index=H));)Y.lastIndex===X.index&&Y.lastIndex++;return Q===A.length?(ut||!R(Y,""))&&S(B,""):S(B,U(A,Q)),B.length>H?F(B,0,H):B}:"0".split(void 0,0).length?O=function($,b){return $===void 0&&b===0?[]:h(at,this,$,b)}:O=at,[function(b,A){var H=C(this),B=b==null?void 0:j(b,tt);return B?h(B,b,H,A):h(O,G(H),b,A)},function($,b){var A=T(this),H=G($),B=Z(O,A,H,b,O!==at);if(B.done)return B.value;var z=N(A,RegExp),Q=A.unicode,Y=(A.ignoreCase?"i":"")+(A.multiline?"m":"")+(A.unicode?"u":"")+(W?"g":"y"),X=new z(W?"^(?:"+A.source+")":A,Y),J=b===void 0?nt:b>>>0;if(J===0)return[];if(H.length===0)return V(X,H)===null?[H]:[];for(var ut=0,ct=0,vt=[];ct]*>)/g,N=/\$([$&'`]|\d{1,2})/g;m.exports=function(P,M,G,j,F,V){var L=G+P.length,k=j.length,et=N;return F!==void 0&&(F=h(F),et=C),y(V,et,function(W,nt){var w;switch(g(nt,0)){case"$":return"$";case"&":return P;case"`":return T(M,0,G);case"'":return T(M,L);case"<":w=F[T(nt,1,-1)];break;default:var st=+nt;if(st===0)return W;if(st>k){var R=d(st/10);return R===0?W:R<=k?j[R-1]===void 0?g(nt,1):j[R-1]+g(nt,1):W}w=j[st-1]}return w===void 0?"":w})}},NudO:function(m,x,e){var u=e("WxoH"),h=e("Dk1u"),d=e("11yv"),g=d("species");m.exports=function(y,T){var C=u(y).constructor,N;return C===void 0||(N=u(C)[g])==null?T:h(N)}},Nybj:function(m,x,e){var u=e("vkZI"),h=e("n6S8"),d=e("tMNq"),g=function(y){return function(T,C,N){var P=u(T),M=d(P),G=h(N,M),j;if(y&&C!=C){for(;M>G;)if(j=P[G++],j!=j)return!0}else for(;M>G;G++)if((y||G in P)&&P[G]===C)return y||G||0;return!y&&-1}};m.exports={includes:g(!0),indexOf:g(!1)}},OU4x:function(m,x,e){var u=e("COGW"),h=TypeError;m.exports=function(d){if(u(d))throw h("The method doesn't accept regular expressions");return d}},Ppro:function(m,x,e){"use strict";var u=e("nCzB"),h=e("WMbf");u({target:"RegExp",proto:!0,forced:/./.exec!==h},{exec:h})},QELg:function(m,x,e){"use strict";var u=e("eRwv");m.exports=function(h,d){var g=[][h];return!!g&&u(function(){g.call(null,d||function(){return 1},1)})}},QrM1:function(m,x,e){var u=e("ZpKI"),h=e("Yzn+"),d=h.concat("length","prototype");x.f=Object.getOwnPropertyNames||function(y){return u(y,d)}},"RXj+":function(m,x,e){var u=e("aLaa"),h=e("XaNE"),d=e("qzpy"),g=e("noWC"),y=u("".replace),T="["+g+"]",C=RegExp("^"+T+T+"*"),N=RegExp(T+T+"*$"),P=function(M){return function(G){var j=d(h(G));return M&1&&(j=y(j,C,"")),M&2&&(j=y(j,N,"")),j}};m.exports={start:P(1),end:P(2),trim:P(3)}},RYfq:function(m,x,e){var u=e("Ks5W"),h=e("JTf3"),d=function(g){return h(g)?g:void 0};m.exports=function(g,y){return arguments.length<2?d(u[g]):u[g]&&u[g][y]}},RhGR:function(m,x,e){var u=e("eRwv"),h=e("Ks5W"),d=h.RegExp,g=u(function(){var C=d("a","y");return C.lastIndex=2,C.exec("abcd")!=null}),y=g||u(function(){return!d("a","y").sticky}),T=g||u(function(){var C=d("^r","gy");return C.lastIndex=2,C.exec("str")!=null});m.exports={BROKEN_CARET:T,MISSED_STICKY:y,UNSUPPORTED_Y:g}},S3az:function(m,x,e){var u=e("Ks5W"),h=e("JTf3"),d=e("sNJV"),g=u.WeakMap;m.exports=h(g)&&/native code/.test(d(g))},SN6V:function(m,x,e){var u=e("/dXc");m.exports=function(h){var d=+h;return d!==d||d===0?0:u(d)}},"ST+I":function(m,x,e){var u=e("aNr2"),h=e("MURR"),d=u("keys");m.exports=function(g){return d[g]||(d[g]=h(g))}},SkNP:function(m,x){m.exports={}},SwuV:function(m,x,e){var u=e("JTf3");m.exports=function(h){return typeof h=="object"?h!==null:u(h)}},TRzv:function(m,x,e){var u=e("WxoH"),h=e("SwuV"),d=e("zFjv");m.exports=function(g,y){if(u(g),h(y)&&y.constructor===g)return y;var T=d.f(g),C=T.resolve;return C(y),T.promise}},Ttl4:function(m,x,e){var u=e("YELS"),h=e("x1+7"),d=e("fKql"),g=e("FlRv");m.exports=function(y,T,C){for(var N=h(T),P=g.f,M=d.f,G=0;G0&&(!U.multiline||U.multiline&&V(tt,U.lastIndex-1)!==` +`)&&(X="(?: "+X+")",ut=" "+ut,J++),O=new RegExp("^(?:"+X+")",Y)),w&&(O=new RegExp("^"+X+"$(?!\\s)",Y)),W&&($=U.lastIndex),b=u(j,Q?O:U,ut),Q?b?(b.input=et(b.input,J),b[0]=et(b[0],J),b.index=U.lastIndex,U.lastIndex+=b[0].length):U.lastIndex=0:W&&b&&(U.lastIndex=U.global?b.index+b[0].length:$),w&&b&&b.length>1&&u(G,b[0],O,function(){for(A=1;A3&&(this.alpha=C[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var N=this.r.toString(16),P=this.g.toString(16),M=this.b.toString(16);return N.length==1&&(N="0"+N),P.length==1&&(P="0"+P),M.length==1&&(M="0"+M),"#"+N+P+M},this.getHelpXML=function(){for(var N=new Array,P=0;P "+L.toRGB()+" -> "+L.toHex());V.appendChild(k),V.appendChild(et),F.appendChild(V)}catch(nt){}return F}}},WONN:function(m,x,e){"use strict";e("Ppro");var u=e("aLaa"),h=e("WaP5"),d=e("WMbf"),g=e("eRwv"),y=e("11yv"),T=e("8ODz"),C=y("species"),N=RegExp.prototype;m.exports=function(P,M,G,j){var F=y(P),V=!g(function(){var W={};return W[F]=function(){return 7},""[P](W)!=7}),L=V&&!g(function(){var W=!1,nt=/a/;return P==="split"&&(nt={},nt.constructor={},nt.constructor[C]=function(){return nt},nt.flags="",nt[F]=/./[F]),nt.exec=function(){return W=!0,null},nt[F](""),!W});if(!V||!L||G){var k=u(/./[F]),et=M(F,""[P],function(W,nt,w,st,R){var S=u(W),U=nt.exec;return U===d||U===N.exec?V&&!R?{done:!0,value:k(nt,w,st)}:{done:!0,value:S(w,nt,st)}:{done:!1}});h(String.prototype,P,et[0]),h(N,F,et[1])}j&&T(N[F],"sham",!0)}},WaP5:function(m,x,e){var u=e("JTf3"),h=e("FlRv"),d=e("3DCu"),g=e("X4md");m.exports=function(y,T,C,N){N||(N={});var P=N.enumerable,M=N.name!==void 0?N.name:T;if(u(C)&&d(C,M,N),N.global)P?y[T]=C:g(T,C);else{try{N.unsafe?y[T]&&(P=!0):delete y[T]}catch(G){}P?y[T]=C:h.f(y,T,{value:C,enumerable:!1,configurable:!N.nonConfigurable,writable:!N.nonWritable})}return y}},WxoH:function(m,x,e){var u=e("SwuV"),h=String,d=TypeError;m.exports=function(g){if(u(g))return g;throw d(h(g)+" is not an object")}},"X/EZ":function(m,x,e){var u=e("11yv"),h=u("iterator"),d=!1;try{var g=0,y={next:function(){return{done:!!g++}},return:function(){d=!0}};y[h]=function(){return this},Array.from(y,function(){throw 2})}catch(T){}m.exports=function(T,C){if(!C&&!d)return!1;var N=!1;try{var P={};P[h]=function(){return{next:function(){return{done:N=!0}}}},T(P)}catch(M){}return N}},X4md:function(m,x,e){var u=e("Ks5W"),h=Object.defineProperty;m.exports=function(d,g){try{h(u,d,{value:g,configurable:!0,writable:!0})}catch(y){u[d]=g}return g}},XFuk:function(m,x,e){var u=e("WxoH"),h=e("oR5W"),d=e("Yzn+"),g=e("SkNP"),y=e("bUA4"),T=e("me6S"),C=e("ST+I"),N=">",P="<",M="prototype",G="script",j=C("IE_PROTO"),F=function(){},V=function(nt){return P+G+N+nt+P+"/"+G+N},L=function(nt){nt.write(V("")),nt.close();var w=nt.parentWindow.Object;return nt=null,w},k=function(){var nt=T("iframe"),w="java"+G+":",st;return nt.style.display="none",y.appendChild(nt),nt.src=String(w),st=nt.contentWindow.document,st.open(),st.write(V("document.F=Object")),st.close(),st.F},et,W=function(){try{et=new ActiveXObject("htmlfile")}catch(w){}W=typeof document!="undefined"?document.domain&&et?L(et):k():L(et);for(var nt=d.length;nt--;)delete W[M][d[nt]];return W()};g[j]=!0,m.exports=Object.create||function(w,st){var R;return w!==null?(F[M]=u(w),R=new F,F[M]=null,R[j]=w):R=W(),st===void 0?R:h.f(R,st)}},XTcp:function(m,x,e){var u=e("Ks5W"),h=e("1mOU"),d=e("mcoe"),g=e("JTf3"),y=e("YELS"),T=e("eRwv"),C=e("bUA4"),N=e("0r2v"),P=e("me6S"),M=e("k2qh"),G=e("GgKt"),j=e("IGIO"),F=u.setImmediate,V=u.clearImmediate,L=u.process,k=u.Dispatch,et=u.Function,W=u.MessageChannel,nt=u.String,w=0,st={},R="onreadystatechange",S,U,I,tt;try{S=u.location}catch(b){}var at=function(b){if(y(st,b)){var A=st[b];delete st[b],A()}},Z=function(b){return function(){at(b)}},O=function(b){at(b.data)},$=function(b){u.postMessage(nt(b),S.protocol+"//"+S.host)};(!F||!V)&&(F=function(A){M(arguments.length,1);var H=g(A)?A:et(A),B=N(arguments,1);return st[++w]=function(){h(H,void 0,B)},U(w),w},V=function(A){delete st[A]},j?U=function(b){L.nextTick(Z(b))}:k&&k.now?U=function(b){k.now(Z(b))}:W&&!G?(I=new W,tt=I.port2,I.port1.onmessage=O,U=d(tt.postMessage,tt)):u.addEventListener&&g(u.postMessage)&&!u.importScripts&&S&&S.protocol!=="file:"&&!T($)?(U=$,u.addEventListener("message",O,!1)):R in P("script")?U=function(b){C.appendChild(P("script"))[R]=function(){C.removeChild(this),at(b)}}:U=function(b){setTimeout(Z(b),0)}),m.exports={set:F,clear:V}},XaNE:function(m,x){var e=TypeError;m.exports=function(u){if(u==null)throw e("Can't call method on "+u);return u}},Xp4B:function(m,x,e){"use strict";e.d(x,"a",function(){return C});function u(j){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?u=function(V){return typeof V}:u=function(V){return V&&typeof Symbol=="function"&&V.constructor===Symbol&&V!==Symbol.prototype?"symbol":typeof V},u(j)}function h(j,F){if(!(j instanceof F))throw new TypeError("Cannot call a class as a function")}var d=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],g=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function y(j,F,V,L,k,et){if(typeof j=="string"&&(j=document.getElementById(j)),!j||!("naturalWidth"in j))return;var W=k?"offset":"natural",nt=j[W+"Width"],w=j[W+"Height"];if(typeof F=="string"&&(F=document.getElementById(F)),!F||!("getContext"in F))return;et||(F.style.width=nt+"px",F.style.height=w+"px"),F.width=nt,F.height=w;var st=F.getContext("2d");if(st.clearRect(0,0,nt,w),st.drawImage(j,0,0,j.naturalWidth,j.naturalHeight,0,0,nt,w),isNaN(V)||V<1)return;L?C(F,0,0,nt,w,V):P(F,0,0,nt,w,V)}function T(j,F,V,L,k){if(typeof j=="string"&&(j=document.getElementById(j)),!j||u(j)!=="object"||!("getContext"in j))throw new TypeError("Expecting canvas with `getContext` method in processCanvasRGB(A) calls!");var et=j.getContext("2d");try{return et.getImageData(F,V,L,k)}catch(W){throw new Error("unable to access image data: "+W)}}function C(j,F,V,L,k,et){if(isNaN(et)||et<1)return;et|=0;var W=T(j,F,V,L,k);W=N(W,F,V,L,k,et),j.getContext("2d").putImageData(W,F,V)}function N(j,F,V,L,k,et){for(var W=j.data,nt=2*et+1,w=L-1,st=k-1,R=et+1,S=R*(R+1)/2,U=new G,I=U,tt,at=1;at>H;if(W[b+3]=ot,ot!==0){var pt=255/ot;W[b]=(Gt*A>>H)*pt,W[b+1]=(Mt*A>>H)*pt,W[b+2]=(Vt*A>>H)*pt}else W[b]=W[b+1]=W[b+2]=0;Gt-=Pt,Mt-=Ot,Vt-=jt,Ct-=Lt,Pt-=Z.r,Ot-=Z.g,jt-=Z.b,Lt-=Z.a;var bt=$t+et+1;bt=$+(bt>H,kt>0?(kt=255/kt,W[ne]=(me*A>>H)*kt,W[ne+1]=(ye*A>>H)*kt,W[ne+2]=(xe*A>>H)*kt):W[ne]=W[ne+1]=W[ne+2]=0,me-=Te,ye-=pe,xe-=Pe,Ee-=Se,Te-=Z.r,pe-=Z.g,Pe-=Z.b,Se-=Z.a,ne=qt+((ne=de+R)>b,W[z+1]=Pt*$>>b,W[z+2]=Ot*$>>b,Dt-=ut,Pt-=ct,Ot-=vt,ut-=Z.r,ct-=Z.g,vt-=Z.b,A=B+((A=Ct+et+1)>b,W[A+1]=ot*$>>b,W[A+2]=pt*$>>b,$t-=Jt,ot-=Nt,pt-=Tt,Jt-=Z.r,Nt-=Z.g,Tt-=Z.b,A=Ft+((A=qt+R)M;)h(P,j=N[M++])&&(~g(G,j)||T(G,j));return G}},a9Cf:function(m,x,e){var u=e("11yv"),h=u("toStringTag"),d={};d[h]="z",m.exports=String(d)==="[object z]"},aLaa:function(m,x,e){var u=e("66qH"),h=Function.prototype,d=h.bind,g=h.call,y=u&&d.bind(g,g);m.exports=u?function(T){return T&&y(T)}:function(T){return T&&function(){return g.apply(T,arguments)}}},aNIs:function(m,x,e){var u=e("Ks5W"),h=e("eE3R"),d=u.process,g=u.Deno,y=d&&d.versions||g&&g.version,T=y&&y.v8,C,N;T&&(C=T.split("."),N=C[0]>0&&C[0]<4?1:+(C[0]+C[1])),!N&&h&&(C=h.match(/Edge\/(\d+)/),(!C||C[1]>=74)&&(C=h.match(/Chrome\/(\d+)/),C&&(N=+C[1]))),m.exports=N},aNr2:function(m,x,e){var u=e("jybJ"),h=e("4gdG");(m.exports=function(d,g){return h[d]||(h[d]=g!==void 0?g:{})})("versions",[]).push({version:"3.24.1",mode:u?"pure":"global",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.24.1/LICENSE",source:"https://github.com/zloirock/core-js"})},bT0D:function(m,x,e){var u=e("RYfq"),h=e("JTf3"),d=e("3Xd8"),g=e("1Sr1"),y=Object;m.exports=g?function(T){return typeof T=="symbol"}:function(T){var C=u("Symbol");return h(C)&&d(C.prototype,y(T))}},bUA4:function(m,x,e){var u=e("RYfq");m.exports=u("document","documentElement")},ba8b:function(m,x,e){var u=e("aLaa"),h=u({}.toString),d=u("".slice);m.exports=function(g){return d(h(g),8,-1)}},c3MK:function(m,x,e){var u=e("SN6V"),h=Math.min;m.exports=function(d){return d>0?h(u(d),9007199254740991):0}},c55Z:function(m,x,e){var u=e("eRwv"),h=e("Ks5W"),d=h.RegExp;m.exports=u(function(){var g=d("(?b)","g");return g.exec("b").groups.a!=="b"||"b".replace(g,"$c")!=="bc"})},dAmL:function(m,x){m.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},eE3R:function(m,x,e){var u=e("RYfq");m.exports=u("navigator","userAgent")||""},eRwv:function(m,x){m.exports=function(e){try{return!!e()}catch(u){return!0}}},fKql:function(m,x,e){var u=e("++4Y"),h=e("m7zg"),d=e("5r2E"),g=e("4uGi"),y=e("vkZI"),T=e("GTqx"),C=e("YELS"),N=e("pVCk"),P=Object.getOwnPropertyDescriptor;x.f=u?P:function(G,j){if(G=y(G),j=T(j),N)try{return P(G,j)}catch(F){}if(C(G,j))return g(!h(d.f,G,j),G[j])}},"g8+u":function(m,x,e){var u=e("a9Cf"),h=e("JTf3"),d=e("ba8b"),g=e("11yv"),y=g("toStringTag"),T=Object,C=d(function(){return arguments}())=="Arguments",N=function(P,M){try{return P[M]}catch(G){}};m.exports=u?d:function(P){var M,G,j;return P===void 0?"Undefined":P===null?"Null":typeof(G=N(M=T(P),y))=="string"?G:C?d(M):(j=d(M))=="Object"&&h(M.callee)?"Arguments":j}},g9jQ:function(m,x,e){"use strict";var u=e("nCzB"),h=e("aLaa"),d=e("Nybj").indexOf,g=e("QELg"),y=h([].indexOf),T=!!y&&1/y([1],1,-0)<0,C=g("indexOf");u({target:"Array",proto:!0,forced:T||!C},{indexOf:function(P){var M=arguments.length>1?arguments[1]:void 0;return T?y(this,P,M)||0:d(this,P,M)}})},gzPo:function(m,x,e){var u=e("Ks5W"),h=e("mcoe"),d=e("fKql").f,g=e("XTcp").set,y=e("GgKt"),T=e("FqHY"),C=e("/pbl"),N=e("IGIO"),P=u.MutationObserver||u.WebKitMutationObserver,M=u.document,G=u.process,j=u.Promise,F=d(u,"queueMicrotask"),V=F&&F.value,L,k,et,W,nt,w,st,R;V||(L=function(){var S,U;for(N&&(S=G.domain)&&S.exit();k;){U=k.fn,k=k.next;try{U()}catch(I){throw k?W():et=void 0,I}}et=void 0,S&&S.enter()},!y&&!N&&!C&&P&&M?(nt=!0,w=M.createTextNode(""),new P(L).observe(w,{characterData:!0}),W=function(){w.data=nt=!nt}):!T&&j&&j.resolve?(st=j.resolve(void 0),st.constructor=j,R=h(st.then,st),W=function(){R(L)}):N?W=function(){G.nextTick(L)}:(g=h(g,u),W=function(){g(L)})),m.exports=V||function(S){var U={fn:S,next:void 0};et&&(et.next=U),k||(k=U,W()),et=U}},hIaP:function(m,x,e){var u=e("m7zg"),h=e("8HiI"),d=e("WxoH"),g=e("IL+x"),y=e("ltkU"),T=TypeError;m.exports=function(C,N){var P=arguments.length<2?y(C):N;if(h(P))return d(u(P,C));throw T(g(C)+" is not iterable")}},"iBj/":function(m,x,e){var u=e("m7zg"),h=e("WxoH"),d=e("oK8H");m.exports=function(g,y,T){var C,N;h(g);try{if(C=d(g,"return"),!C){if(y==="throw")throw T;return T}C=u(C,g)}catch(P){N=!0,C=P}if(y==="throw")throw T;if(N)throw C;return h(C),T}},iWRt:function(m,x,e){"use strict";var u=e("nCzB"),h=e("aLaa"),d=e("uZ/K"),g=h([].reverse),y=[1,2];u({target:"Array",proto:!0,forced:String(y)===String(y.reverse())},{reverse:function(){return d(this)&&(this.length=this.length),g(this)}})},jCYL:function(m,x,e){"use strict";var u=e("nCzB"),h=e("RYfq"),d=e("jybJ"),g=e("KLK4"),y=e("GxTi").CONSTRUCTOR,T=e("TRzv"),C=h("Promise"),N=d&&!y;u({target:"Promise",stat:!0,forced:d||y},{resolve:function(M){return T(N&&this===C?g:this,M)}})},jgt4:function(m,x,e){"use strict";var u=e("nCzB"),h=e("m7zg"),d=e("jybJ"),g=e("N6FT"),y=e("JTf3"),T=e("3agc"),C=e("WLJ+"),N=e("JHvW"),P=e("ueY1"),M=e("8ODz"),G=e("WaP5"),j=e("11yv"),F=e("AoAp"),V=e("qjFr"),L=g.PROPER,k=g.CONFIGURABLE,et=V.IteratorPrototype,W=V.BUGGY_SAFARI_ITERATORS,nt=j("iterator"),w="keys",st="values",R="entries",S=function(){return this};m.exports=function(U,I,tt,at,Z,O,$){T(tt,I,at);var b=function(ct){if(ct===Z&&Q)return Q;if(!W&&ct in B)return B[ct];switch(ct){case w:return function(){return new tt(this,ct)};case st:return function(){return new tt(this,ct)};case R:return function(){return new tt(this,ct)}}return function(){return new tt(this)}},A=I+" Iterator",H=!1,B=U.prototype,z=B[nt]||B["@@iterator"]||Z&&B[Z],Q=!W&&z||b(Z),Y=I=="Array"&&B.entries||z,X,J,ut;if(Y&&(X=C(Y.call(new U)),X!==Object.prototype&&X.next&&(!d&&C(X)!==et&&(N?N(X,et):y(X[nt])||G(X,nt,S)),P(X,A,!0,!0),d&&(F[A]=S))),L&&Z==st&&z&&z.name!==st&&(!d&&k?M(B,"name",st):(H=!0,Q=function(){return h(z,this)})),Z)if(J={values:b(st),keys:O?Q:b(w),entries:b(R)},$)for(ut in J)(W||H||!(ut in B))&&G(B,ut,J[ut]);else u({target:I,proto:!0,forced:W||H},J);return(!d||$)&&B[nt]!==Q&&G(B,nt,Q,{name:Z}),F[I]=Q,J}},jybJ:function(m,x){m.exports=!1},k2qh:function(m,x){var e=TypeError;m.exports=function(u,h){if(u79&&g<83;u({target:"Array",proto:!0,forced:!T||C},{reduce:function(P){var M=arguments.length;return h(this,P,M,M>1?arguments[1]:void 0)}})},me6S:function(m,x,e){var u=e("Ks5W"),h=e("SwuV"),d=u.document,g=h(d)&&h(d.createElement);m.exports=function(y){return g?d.createElement(y):{}}},ms20:function(m,x,e){var u=e("m7zg"),h=e("SwuV"),d=e("bT0D"),g=e("oK8H"),y=e("2lHc"),T=e("11yv"),C=TypeError,N=T("toPrimitive");m.exports=function(P,M){if(!h(P)||d(P))return P;var G=g(P,N),j;if(G){if(M===void 0&&(M="default"),j=u(G,P,M),!h(j)||d(j))return j;throw C("Can't convert object to primitive value")}return M===void 0&&(M="number"),y(P,M)}},n6S8:function(m,x,e){var u=e("SN6V"),h=Math.max,d=Math.min;m.exports=function(g,y){var T=u(g);return T<0?h(T+y,0):d(T,y)}},nCzB:function(m,x,e){var u=e("Ks5W"),h=e("fKql").f,d=e("8ODz"),g=e("WaP5"),y=e("X4md"),T=e("Ttl4"),C=e("mGb/");m.exports=function(N,P){var M=N.target,G=N.global,j=N.stat,F,V,L,k,et,W;if(G?V=u:j?V=u[M]||y(M,{}):V=(u[M]||{}).prototype,V)for(L in P){if(et=P[L],N.dontCallGetSet?(W=h(V,L),k=W&&W.value):k=V[L],F=C(G?L:M+(j?".":"#")+L,N.forced),!F&&k!==void 0){if(typeof et==typeof k)continue;T(et,k)}(N.sham||k&&k.sham)&&d(et,"sham",!0),g(V,L,et,N)}}},noWC:function(m,x){m.exports=` +\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},nvEG:function(m,x,e){var u=e("mcoe"),h=e("m7zg"),d=e("WxoH"),g=e("IL+x"),y=e("3n0U"),T=e("tMNq"),C=e("3Xd8"),N=e("hIaP"),P=e("ltkU"),M=e("iBj/"),G=TypeError,j=function(V,L){this.stopped=V,this.result=L},F=j.prototype;m.exports=function(V,L,k){var et=k&&k.that,W=!!(k&&k.AS_ENTRIES),nt=!!(k&&k.IS_RECORD),w=!!(k&&k.IS_ITERATOR),st=!!(k&&k.INTERRUPTED),R=u(L,et),S,U,I,tt,at,Z,O,$=function(A){return S&&M(S,"normal",A),new j(!0,A)},b=function(A){return W?(d(A),st?R(A[0],A[1],$):R(A[0],A[1])):st?R(A,$):R(A)};if(nt)S=V.iterator;else if(w)S=V;else{if(U=P(V),!U)throw G(g(V)+" is not iterable");if(y(U)){for(I=0,tt=T(V);tt>I;I++)if(at=b(V[I]),at&&C(F,at))return at;return new j(!1)}S=N(V,U)}for(Z=nt?V.next:S.next;!(O=h(Z,S)).done;){try{at=b(O.value)}catch(A){M(S,"throw",A)}if(typeof at=="object"&&at&&C(F,at))return at}return new j(!1)}},oK8H:function(m,x,e){var u=e("8HiI");m.exports=function(h,d){var g=h[d];return g==null?void 0:u(g)}},oR5W:function(m,x,e){var u=e("++4Y"),h=e("FkIU"),d=e("FlRv"),g=e("WxoH"),y=e("vkZI"),T=e("Ai06");x.f=u&&!h?Object.defineProperties:function(N,P){g(N);for(var M=y(P),G=T(P),j=G.length,F=0,V;j>F;)d.f(N,V=G[F++],M[V]);return N}},oauk:function(m,x,e){"use strict";var u=e("GTqx"),h=e("FlRv"),d=e("4uGi");m.exports=function(g,y,T){var C=u(y);C in g?h.f(g,C,d(0,T)):g[C]=T}},p5Ma:function(m,x,e){var u=e("aLaa"),h=e("eRwv"),d=e("ba8b"),g=Object,y=u("".split);m.exports=h(function(){return!g("z").propertyIsEnumerable(0)})?function(T){return d(T)=="String"?y(T,""):g(T)}:g},pVCk:function(m,x,e){var u=e("++4Y"),h=e("eRwv"),d=e("me6S");m.exports=!u&&!h(function(){return Object.defineProperty(d("div"),"a",{get:function(){return 7}}).a!=7})},"plO+":function(m,x,e){var u=e("aNIs"),h=e("eRwv");m.exports=!!Object.getOwnPropertySymbols&&!h(function(){var d=Symbol();return!String(d)||!(Object(d)instanceof Symbol)||!Symbol.sham&&u&&u<41})},qJvV:function(m,x,e){var u=e("Ks5W"),h=e("ENhe"),d=e("GI0h"),g=e("Lltv"),y=e("8ODz"),T=e("11yv"),C=T("iterator"),N=T("toStringTag"),P=g.values,M=function(j,F){if(j){if(j[C]!==P)try{y(j,C,P)}catch(L){j[C]=P}if(j[N]||y(j,N,F),h[F]){for(var V in g)if(j[V]!==g[V])try{y(j,V,g[V])}catch(L){j[V]=g[V]}}}};for(var G in h)M(u[G]&&u[G].prototype,G);M(d,"DOMTokenList")},qjFr:function(m,x,e){"use strict";var u=e("eRwv"),h=e("JTf3"),d=e("XFuk"),g=e("WLJ+"),y=e("WaP5"),T=e("11yv"),C=e("jybJ"),N=T("iterator"),P=!1,M,G,j;[].keys&&(j=[].keys(),"next"in j?(G=g(g(j)),G!==Object.prototype&&(M=G)):P=!0);var F=M==null||u(function(){var V={};return M[N].call(V)!==V});F?M={}:C&&(M=d(M)),h(M[N])||y(M,N,function(){return this}),m.exports={IteratorPrototype:M,BUGGY_SAFARI_ITERATORS:P}},qzpy:function(m,x,e){var u=e("g8+u"),h=String;m.exports=function(d){if(u(d)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return h(d)}},sNJV:function(m,x,e){var u=e("aLaa"),h=e("JTf3"),d=e("4gdG"),g=u(Function.toString);h(d.inspectSource)||(d.inspectSource=function(y){return g(y)}),m.exports=d.inspectSource},tMNq:function(m,x,e){var u=e("c3MK");m.exports=function(h){return u(h.length)}},tZjp:function(m,x,e){"use strict";var u=e("nCzB"),h=e("jybJ"),d=e("IGIO"),g=e("Ks5W"),y=e("m7zg"),T=e("WaP5"),C=e("JHvW"),N=e("ueY1"),P=e("9Bi7"),M=e("8HiI"),G=e("JTf3"),j=e("SwuV"),F=e("uoua"),V=e("NudO"),L=e("XTcp").set,k=e("gzPo"),et=e("lAFk"),W=e("8xe4"),nt=e("zUnQ"),w=e("UQ6y"),st=e("KLK4"),R=e("GxTi"),S=e("zFjv"),U="Promise",I=R.CONSTRUCTOR,tt=R.REJECTION_EVENT,at=R.SUBCLASSING,Z=w.getterFor(U),O=w.set,$=st&&st.prototype,b=st,A=$,H=g.TypeError,B=g.document,z=g.process,Q=S.f,Y=Q,X=!!(B&&B.createEvent&&g.dispatchEvent),J="unhandledrejection",ut="rejectionhandled",ct=0,vt=1,Dt=2,Pt=1,Ot=2,jt,Lt,Gt,Mt,Vt=function(ot){var pt;return j(ot)&&G(pt=ot.then)?pt:!1},Ct=function(ot,pt){var bt=pt.value,Rt=pt.state==vt,It=Rt?ot.ok:ot.fail,re=ot.resolve,se=ot.reject,le=ot.domain,qt,fe,ee;try{It?(Rt||(pt.rejection===Ot&&Jt(pt),pt.rejection=Pt),It===!0?qt=bt:(le&&le.enter(),qt=It(bt),le&&(le.exit(),ee=!0)),qt===ot.promise?se(H("Promise-chain cycle")):(fe=Vt(qt))?y(fe,qt,re,se):re(qt)):se(bt)}catch(he){le&&!ee&&le.exit(),se(he)}},Ft=function(ot,pt){if(ot.notified)return;ot.notified=!0,k(function(){for(var bt=ot.reactions,Rt;Rt=bt.get();)Ct(Rt,ot);ot.notified=!1,pt&&!ot.rejection&&Yt(ot)})},zt=function(ot,pt,bt){var Rt,It;X?(Rt=B.createEvent("Event"),Rt.promise=pt,Rt.reason=bt,Rt.initEvent(ot,!1,!0),g.dispatchEvent(Rt)):Rt={promise:pt,reason:bt},!tt&&(It=g["on"+ot])?It(Rt):ot===J&&et("Unhandled promise rejection",bt)},Yt=function(ot){y(L,g,function(){var pt=ot.facade,bt=ot.value,Rt=Ut(ot),It;if(Rt&&(It=W(function(){d?z.emit("unhandledRejection",bt,pt):zt(J,pt,bt)}),ot.rejection=d||Ut(ot)?Ot:Pt,It.error))throw It.value})},Ut=function(ot){return ot.rejection!==Pt&&!ot.parent},Jt=function(ot){y(L,g,function(){var pt=ot.facade;d?z.emit("rejectionHandled",pt):zt(ut,pt,ot.value)})},Nt=function(ot,pt,bt){return function(Rt){ot(pt,Rt,bt)}},Tt=function(ot,pt,bt){if(ot.done)return;ot.done=!0,bt&&(ot=bt),ot.value=pt,ot.state=Dt,Ft(ot,!0)},$t=function(ot,pt,bt){if(ot.done)return;ot.done=!0,bt&&(ot=bt);try{if(ot.facade===pt)throw H("Promise can't be resolved itself");var Rt=Vt(pt);Rt?k(function(){var It={done:!1};try{y(Rt,pt,Nt($t,It,ot),Nt(Tt,It,ot))}catch(re){Tt(It,re,ot)}}):(ot.value=pt,ot.state=vt,Ft(ot,!1))}catch(It){Tt({done:!1},It,ot)}};if(I&&(b=function(pt){F(this,A),M(pt),y(jt,this);var bt=Z(this);try{pt(Nt($t,bt),Nt(Tt,bt))}catch(Rt){Tt(bt,Rt)}},A=b.prototype,jt=function(pt){O(this,{type:U,done:!1,notified:!1,parent:!1,reactions:new nt,rejection:!1,state:ct,value:void 0})},jt.prototype=T(A,"then",function(pt,bt){var Rt=Z(this),It=Q(V(this,b));return Rt.parent=!0,It.ok=G(pt)?pt:!0,It.fail=G(bt)&&bt,It.domain=d?z.domain:void 0,Rt.state==ct?Rt.reactions.add(It):k(function(){Ct(It,Rt)}),It.promise}),Lt=function(){var ot=new jt,pt=Z(ot);this.promise=ot,this.resolve=Nt($t,pt),this.reject=Nt(Tt,pt)},S.f=Q=function(ot){return ot===b||ot===Gt?new Lt(ot):Y(ot)},!h&&G(st)&&$!==Object.prototype)){Mt=$.then,at||T($,"then",function(pt,bt){var Rt=this;return new b(function(It,re){y(Mt,Rt,It,re)}).then(pt,bt)},{unsafe:!0});try{delete $.constructor}catch(ot){}C&&C($,A)}u({global:!0,constructor:!0,wrap:!0,forced:I},{Promise:b}),N(b,U,!1,!0),P(U)},"uZ/K":function(m,x,e){var u=e("ba8b");m.exports=Array.isArray||function(d){return u(d)=="Array"}},ueY1:function(m,x,e){var u=e("FlRv").f,h=e("YELS"),d=e("11yv"),g=d("toStringTag");m.exports=function(y,T,C){y&&!C&&(y=y.prototype),y&&!h(y,g)&&u(y,g,{configurable:!0,value:T})}},uoua:function(m,x,e){var u=e("3Xd8"),h=TypeError;m.exports=function(d,g){if(u(g,d))return d;throw h("Incorrect invocation")}},vTDQ:function(m,x,e){var u=e("dAmL"),h=e("IGIO");m.exports=!u&&!h&&typeof window=="object"&&typeof document=="object"},vkZI:function(m,x,e){var u=e("p5Ma"),h=e("XaNE");m.exports=function(d){return u(h(d))}},vrKp:function(m,x,e){e("tZjp"),e("A2dy"),e("13vt"),e("D0VN"),e("ESVS"),e("jCYL")},wOD2:function(m,x,e){"use strict";var u=e("nCzB"),h=e("RXj+").trim,d=e("5JCY");u({target:"String",proto:!0,forced:d("trim")},{trim:function(){return h(this)}})},"x1+7":function(m,x,e){var u=e("RYfq"),h=e("aLaa"),d=e("QrM1"),g=e("UCFi"),y=e("WxoH"),T=h([].concat);m.exports=u("Reflect","ownKeys")||function(N){var P=d.f(y(N)),M=g.f;return M?T(P,M(N)):P}},x8x8:function(m,x,e){"use strict";var u=e("1mOU"),h=e("m7zg"),d=e("aLaa"),g=e("WONN"),y=e("eRwv"),T=e("WxoH"),C=e("JTf3"),N=e("SN6V"),P=e("c3MK"),M=e("qzpy"),G=e("XaNE"),j=e("M/+V"),F=e("oK8H"),V=e("Ne/+"),L=e("3fk+"),k=e("11yv"),et=k("replace"),W=Math.max,nt=Math.min,w=d([].concat),st=d([].push),R=d("".indexOf),S=d("".slice),U=function(Z){return Z===void 0?Z:String(Z)},I=function(){return"a".replace(/./,"$0")==="$0"}(),tt=function(){return/./[et]?/./[et]("a","$0")==="":!1}(),at=!y(function(){var Z=/./;return Z.exec=function(){var O=[];return O.groups={a:"7"},O},"".replace(Z,"$")!=="7"});g("replace",function(Z,O,$){var b=tt?"$":"$0";return[function(H,B){var z=G(this),Q=H==null?void 0:F(H,et);return Q?h(Q,H,z,B):h(O,M(z),H,B)},function(A,H){var B=T(this),z=M(A);if(typeof H=="string"&&R(H,b)===-1&&R(H,"$<")===-1){var Q=$(O,B,z,H);if(Q.done)return Q.value}var Y=C(H);Y||(H=M(H));var X=B.global;if(X){var J=B.unicode;B.lastIndex=0}for(var ut=[];;){var ct=L(B,z);if(ct===null)break;if(st(ut,ct),!X)break;var vt=M(ct[0]);vt===""&&(B.lastIndex=j(z,P(B.lastIndex),J))}for(var Dt="",Pt=0,Ot=0;Ot=Pt&&(Dt+=S(z,Pt,Lt)+Ft,Pt=Lt+jt.length)}return Dt+S(z,Pt)}]},!at||!I||tt)},yD9w:function(m,x,e){"use strict";var u=e("N6FT").PROPER,h=e("WaP5"),d=e("WxoH"),g=e("qzpy"),y=e("eRwv"),T=e("Vgcz"),C="toString",N=RegExp.prototype,P=N[C],M=y(function(){return P.call({source:"a",flags:"b"})!="/a/b"}),G=u&&P.name!=C;(M||G)&&h(RegExp.prototype,C,function(){var F=d(this),V=g(F.source),L=g(T(F));return"/"+V+"/"+L},{unsafe:!0})},yXPU:function(m,x){function e(h,d,g,y,T,C,N){try{var P=h[C](N),M=P.value}catch(G){g(G);return}P.done?d(M):Promise.resolve(M).then(y,T)}function u(h){return function(){var d=this,g=arguments;return new Promise(function(y,T){var C=h.apply(d,g);function N(M){e(C,y,T,N,P,"next",M)}function P(M){e(C,y,T,N,P,"throw",M)}N(void 0)})}}m.exports=u,m.exports.__esModule=!0,m.exports.default=m.exports},ymN0:function(m,x,e){var u=e("aLaa"),h=e("SN6V"),d=e("qzpy"),g=e("XaNE"),y=u("".charAt),T=u("".charCodeAt),C=u("".slice),N=function(P){return function(M,G){var j=d(g(M)),F=h(G),V=j.length,L,k;return F<0||F>=V?P?"":void 0:(L=T(j,F),L<55296||L>56319||F+1===V||(k=T(j,F+1))<56320||k>57343?P?y(j,F):L:P?C(j,F,F+2):(L-55296<<10)+(k-56320)+65536)}};m.exports={codeAt:N(!1),charAt:N(!0)}},zFjv:function(m,x,e){"use strict";var u=e("8HiI"),h=function(d){var g,y;this.promise=new d(function(T,C){if(g!==void 0||y!==void 0)throw TypeError("Bad Promise constructor");g=T,y=C}),this.resolve=u(g),this.reject=u(y)};m.exports.f=function(d){return new h(d)}},zUnQ:function(m,x){var e=function(){this.head=null,this.tail=null};e.prototype={add:function(u){var h={item:u,next:null};this.head?this.tail.next=h:this.head=h,this.tail=h},get:function(){var u=this.head;if(u)return this.head=u.next,this.tail===u&&(this.tail=null),u.item}},m.exports=e}}]); diff --git a/242.47f1ab46.async.js b/242.47f1ab46.async.js deleted file mode 100644 index ed2473b509..0000000000 --- a/242.47f1ab46.async.js +++ /dev/null @@ -1,3 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[242],{qZ2Q:function(lt,ia,oa){/*! @license DOMPurify 2.3.9 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.9/LICENSE */(function(k,W){lt.exports=W()})(this,function(){"use strict";function k(a){return k=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},k(a)}function W(a,n){return W=Object.setPrototypeOf||function(l,c){return l.__proto__=c,l},W(a,n)}function ut(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}function q(a,n,o){return ut()?q=Reflect.construct:q=function(c,w,N){var L=[null];L.push.apply(L,w);var j=Function.bind.apply(c,L),V=new j;return N&&W(V,N.prototype),V},q.apply(null,arguments)}function _(a){return ct(a)||ft(a)||mt(a)||dt()}function ct(a){if(Array.isArray(a))return se(a)}function ft(a){if(typeof Symbol!="undefined"&&a[Symbol.iterator]!=null||a["@@iterator"]!=null)return Array.from(a)}function mt(a,n){if(!a)return;if(typeof a=="string")return se(a,n);var o=Object.prototype.toString.call(a).slice(8,-1);if(o==="Object"&&a.constructor&&(o=a.constructor.name),o==="Map"||o==="Set")return Array.from(a);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return se(a,n)}function se(a,n){(n==null||n>a.length)&&(n=a.length);for(var o=0,l=new Array(n);o1?o-1:0),c=1;c/gm),kt=E(/^data-[\-\w.\u00B7-\uFFFF]/),St=E(/^aria-[\-\w]+$/),Nt=E(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Lt=E(/^(?:\w+script|data):/i),Rt=E(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),xt=E(/^html$/i),Ct=function(){return typeof window=="undefined"?null:window},It=function(n,o){if(k(n)!=="object"||typeof n.createPolicy!="function")return null;var l=null,c="data-tt-policy-suffix";o.currentScript&&o.currentScript.hasAttribute(c)&&(l=o.currentScript.getAttribute(c));var w="dompurify"+(l?"#"+l:"");try{return n.createPolicy(w,{createHTML:function(L){return L}})}catch(N){return console.warn("TrustedTypes policy "+w+" could not be created."),null}};function Fe(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ct(),n=function(e){return Fe(e)};if(n.version="2.3.9",n.removed=[],!a||!a.document||a.document.nodeType!==9)return n.isSupported=!1,n;var o=a.document,l=a.document,c=a.DocumentFragment,w=a.HTMLTemplateElement,N=a.Node,L=a.Element,j=a.NodeFilter,V=a.NamedNodeMap,Ht=V===void 0?a.NamedNodeMap||a.MozNamedAttrMap:V,Ft=a.HTMLFormElement,Ut=a.DOMParser,zt=a.trustedTypes,ee=L.prototype,Gt=Z(ee,"cloneNode"),Wt=Z(ee,"nextSibling"),Bt=Z(ee,"childNodes"),pe=Z(ee,"parentNode");if(typeof w=="function"){var he=l.createElement("template");he.content&&he.content.ownerDocument&&(l=he.content.ownerDocument)}var R=It(zt,o),Ue=R?R.createHTML(""):"",te=l,ve=te.implementation,jt=te.createNodeIterator,Vt=te.createDocumentFragment,Yt=te.getElementsByTagName,$t=o.importNode,ze={};try{ze=C(l).documentMode?l.documentMode:{}}catch(i){}var M={};n.isSupported=typeof pe=="function"&&ve&&typeof ve.createHTMLDocument!="undefined"&&ze!==9;var be=Dt,ye=Ot,Kt=kt,qt=St,Xt=Lt,Ge=Rt,ge=Nt,m=null,We=s({},[].concat(_(Ce),_(ce),_(fe),_(me),_(Ie))),p=null,Be=s({},[].concat(_(Pe),_(de),_(He),_(Q))),f=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Y=null,Te=null,je=!0,_e=!0,Ve=!1,P=!1,I=!1,Ae=!1,Ee=!1,H=!1,ae=!1,ne=!1,Ye=!0,we=!0,$=!1,F={},U=null,$e=s({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ke=null,qe=s({},["audio","video","img","source","image","track"]),Me=null,Xe=s({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),De="http://www.w3.org/1998/Math/MathML",Oe="http://www.w3.org/2000/svg",x="http://www.w3.org/1999/xhtml",re=x,ke=!1,z,Jt=["application/xhtml+xml","text/html"],Zt="text/html",d,G=null,Qt=l.createElement("form"),Je=function(e){return e instanceof RegExp||e instanceof Function},Se=function(e){if(G&&G===e)return;(!e||k(e)!=="object")&&(e={}),e=C(e),z=Jt.indexOf(e.PARSER_MEDIA_TYPE)===-1?z=Zt:z=e.PARSER_MEDIA_TYPE,d=z==="application/xhtml+xml"?function(t){return t}:J,m="ALLOWED_TAGS"in e?s({},e.ALLOWED_TAGS,d):We,p="ALLOWED_ATTR"in e?s({},e.ALLOWED_ATTR,d):Be,Me="ADD_URI_SAFE_ATTR"in e?s(C(Xe),e.ADD_URI_SAFE_ATTR,d):Xe,Ke="ADD_DATA_URI_TAGS"in e?s(C(qe),e.ADD_DATA_URI_TAGS,d):qe,U="FORBID_CONTENTS"in e?s({},e.FORBID_CONTENTS,d):$e,Y="FORBID_TAGS"in e?s({},e.FORBID_TAGS,d):{},Te="FORBID_ATTR"in e?s({},e.FORBID_ATTR,d):{},F="USE_PROFILES"in e?e.USE_PROFILES:!1,je=e.ALLOW_ARIA_ATTR!==!1,_e=e.ALLOW_DATA_ATTR!==!1,Ve=e.ALLOW_UNKNOWN_PROTOCOLS||!1,P=e.SAFE_FOR_TEMPLATES||!1,I=e.WHOLE_DOCUMENT||!1,H=e.RETURN_DOM||!1,ae=e.RETURN_DOM_FRAGMENT||!1,ne=e.RETURN_TRUSTED_TYPE||!1,Ee=e.FORCE_BODY||!1,Ye=e.SANITIZE_DOM!==!1,we=e.KEEP_CONTENT!==!1,$=e.IN_PLACE||!1,ge=e.ALLOWED_URI_REGEXP||ge,re=e.NAMESPACE||x,e.CUSTOM_ELEMENT_HANDLING&&Je(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(f.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Je(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(f.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(f.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),P&&(_e=!1),ae&&(H=!0),F&&(m=s({},_(Ie)),p=[],F.html===!0&&(s(m,Ce),s(p,Pe)),F.svg===!0&&(s(m,ce),s(p,de),s(p,Q)),F.svgFilters===!0&&(s(m,fe),s(p,de),s(p,Q)),F.mathMl===!0&&(s(m,me),s(p,He),s(p,Q))),e.ADD_TAGS&&(m===We&&(m=C(m)),s(m,e.ADD_TAGS,d)),e.ADD_ATTR&&(p===Be&&(p=C(p)),s(p,e.ADD_ATTR,d)),e.ADD_URI_SAFE_ATTR&&s(Me,e.ADD_URI_SAFE_ATTR,d),e.FORBID_CONTENTS&&(U===$e&&(U=C(U)),s(U,e.FORBID_CONTENTS,d)),we&&(m["#text"]=!0),I&&s(m,["html","head","body"]),m.table&&(s(m,["tbody"]),delete Y.tbody),b&&b(e),G=e},Ze=s({},["mi","mo","mn","ms","mtext"]),Qe=s({},["foreignobject","desc","title","annotation-xml"]),ea=s({},["title","style","font","a","script"]),ie=s({},ce);s(ie,fe),s(ie,wt);var Ne=s({},me);s(Ne,Mt);var ta=function(e){var t=pe(e);(!t||!t.tagName)&&(t={namespaceURI:x,tagName:"template"});var r=J(e.tagName),u=J(t.tagName);return e.namespaceURI===Oe?t.namespaceURI===x?r==="svg":t.namespaceURI===De?r==="svg"&&(u==="annotation-xml"||Ze[u]):Boolean(ie[r]):e.namespaceURI===De?t.namespaceURI===x?r==="math":t.namespaceURI===Oe?r==="math"&&Qe[u]:Boolean(Ne[r]):e.namespaceURI===x?t.namespaceURI===Oe&&!Qe[u]||t.namespaceURI===De&&!Ze[u]?!1:!Ne[r]&&(ea[r]||!ie[r]):!1},D=function(e){B(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=Ue}catch(r){e.remove()}}},et=function(e,t){try{B(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(r){B(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),e==="is"&&!p[e])if(H||ae)try{D(t)}catch(r){}else try{t.setAttribute(e,"")}catch(r){}},tt=function(e){var t,r;if(Ee)e=""+e;else{var u=Tt(e,/^[\r\n\t ]+/);r=u&&u[0]}z==="application/xhtml+xml"&&(e=''+e+"");var T=R?R.createHTML(e):e;if(re===x)try{t=new Ut().parseFromString(T,z)}catch(h){}if(!t||!t.documentElement){t=ve.createDocument(re,"template",null);try{t.documentElement.innerHTML=ke?"":T}catch(h){}}var v=t.body||t.documentElement;return e&&r&&v.insertBefore(l.createTextNode(r),v.childNodes[0]||null),re===x?Yt.call(t,I?"html":"body")[0]:I?t.documentElement:v},at=function(e){return jt.call(e.ownerDocument||e,e,j.SHOW_ELEMENT|j.SHOW_COMMENT|j.SHOW_TEXT,null,!1)},aa=function(e){return e instanceof Ft&&(typeof e.nodeName!="string"||typeof e.textContent!="string"||typeof e.removeChild!="function"||!(e.attributes instanceof Ht)||typeof e.removeAttribute!="function"||typeof e.setAttribute!="function"||typeof e.namespaceURI!="string"||typeof e.insertBefore!="function")},K=function(e){return k(N)==="object"?e instanceof N:e&&k(e)==="object"&&typeof e.nodeType=="number"&&typeof e.nodeName=="string"},O=function(e,t,r){if(!M[e])return;gt(M[e],function(u){u.call(n,t,r,G)})},nt=function(e){var t;if(O("beforeSanitizeElements",e,null),aa(e))return D(e),!0;if(y(/[\u0080-\uFFFF]/,e.nodeName))return D(e),!0;var r=d(e.nodeName);if(O("uponSanitizeElement",e,{tagName:r,allowedTags:m}),e.hasChildNodes()&&!K(e.firstElementChild)&&(!K(e.content)||!K(e.content.firstElementChild))&&y(/<[/\w]/g,e.innerHTML)&&y(/<[/\w]/g,e.textContent))return D(e),!0;if(r==="select"&&y(/