19 lines
145 KiB
JavaScript
19 lines
145 KiB
JavaScript
|
|
import{d as _t,g as vl}from"./vendor-8efd6c0a.js";import{k as be}from"./@react-pdf/renderer-e56aa971.js";import{a as Fr,_ as hi}from"./react-dates-501af09a.js";import"./@radix-ui/react-progress-3f5a2119.js";import"./@fortawesome/react-fontawesome-08267a95.js";import"./@fortawesome/fontawesome-svg-core-0d830203.js";import"./moment-timezone-f4ca829b.js";import"./moment-55cb88ed.js";import"./@uppy/aws-s3-98528360.js";var st=function(a){return a&&a.Math===Math&&a},V=st(typeof globalThis=="object"&&globalThis)||st(typeof window=="object"&&window)||st(typeof self=="object"&&self)||st(typeof _t=="object"&&_t)||st(typeof _t=="object"&&_t)||function(){return this}()||Function("return this")(),yt={},k=function(a){try{return!!a()}catch{return!0}},fl=k,le=!fl(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),cl=k,hr=!cl(function(){var a=(function(){}).bind();return typeof a!="function"||a.hasOwnProperty("prototype")}),gl=hr,Vt=Function.prototype.call,Y=gl?Vt.bind(Vt):function(){return Vt.apply(Vt,arguments)},To={},Oo={}.propertyIsEnumerable,So=Object.getOwnPropertyDescriptor,dl=So&&!Oo.call({1:2},1);To.f=dl?function(e){var t=So(this,e);return!!t&&t.enumerable}:Oo;var vi=function(a,e){return{enumerable:!(a&1),configurable:!(a&2),writable:!(a&4),value:e}},Eo=hr,$o=Function.prototype,_a=$o.call,pl=Eo&&$o.bind.bind(_a,_a),L=Eo?pl:function(a){return function(){return _a.apply(a,arguments)}},wo=L,yl=wo({}.toString),ml=wo("".slice),ke=function(a){return ml(yl(a),8,-1)},bl=L,xl=k,Tl=ke,Ur=Object,Ol=bl("".split),Co=xl(function(){return!Ur("z").propertyIsEnumerable(0)})?function(a){return Tl(a)==="String"?Ol(a,""):Ur(a)}:Ur,Le=function(a){return a==null},Sl=Le,El=TypeError,he=function(a){if(Sl(a))throw new El("Can't call method on "+a);return a},$l=Co,wl=he,mt=function(a){return $l(wl(a))},Gr=typeof document=="object"&&document.all,B=typeof Gr>"u"&&Gr!==void 0?function(a){return typeof a=="function"||a===Gr}:function(a){return typeof a=="function"},Cl=B,ve=function(a){return typeof a=="object"?a!==null:Cl(a)},zr=V,Al=B,Pl=function(a){return Al(a)?a:void 0},Be=function(a,e){return arguments.length<2?Pl(zr[a]):zr[a]&&zr[a][e]},Rl=L,vr=Rl({}.isPrototypeOf),Nl=V,an=Nl.navigator,nn=an&&an.userAgent,bt=nn?String(nn):"",Ao=V,Hr=bt,sn=Ao.process,on=Ao.Deno,un=sn&&sn.versions||on&&on.version,ln=un&&un.v8,ue,ir;ln&&(ue=ln.split("."),ir=ue[0]>0&&ue[0]<4?1:+(ue[0]+ue[1]));!ir&&Hr&&(ue=Hr.match(/Edge\/(\d+)/),(!ue||ue[1]>=74)&&(ue=Hr.match(/Chrome\/(\d+)/),ue&&(ir=+ue[1])));var fi=ir,hn=fi,Il=k,Ml=V,_l=Ml.String,Po=!!Object.getOwnPropertySymbols&&!Il(function(){var a=Symbol("symbol detection");return!_l(a)||!(Object(a)instanceof Symbol)||!Symbol.sham&&hn&&hn<41}),Vl=Po,Ro=Vl&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Dl=Be,kl=B,Ll=vr,Bl=Ro,jl=Object,No=Bl?function(a){return typeof a=="symbol"}:function(a){var e=Dl("Symbol");return kl(e)&&Ll(e.prototype,jl(a))},Fl=String,fr=function(a){try{return Fl(a)}catch{return"Object"}},Ul=B,Gl=fr,zl=TypeError,xe=function(a){if(Ul(a))return a;throw new zl(Gl(a)+" is not a function")},Hl=xe,Yl=Le,rt=function(a,e){var t=a[e];return Yl(t)?void 0:Hl(t)},Yr=Y,Xr=B,Wr=ve,Xl=TypeError,Wl=function(a,e){var t,r;if(e==="string"&&Xr(t=a.toString)&&!Wr(r=Yr(t,a))||Xr(t=a.valueOf)&&!Wr(r=Yr(t,a))||e!=="string"&&Xr(t=a.toString)&&!Wr(r=Yr(t,a)))return r;throw new Xl("Can't convert object to primitive value")},Io={exports:{}},vn=V,ql=Object.defineProperty,ci=function(a,e){try{ql(vn,a,{value:e,configurable:!0,writable:!0})}catch{vn[a]=e}return e},Ql=V,Kl=ci,fn="__core-js_shared__",cn=Io.exports=Ql[fn]||Kl(fn,{});(cn.versions||(cn.versions=[])).push({version:"3.39.0",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"});var gi=Io.exports,gn=gi,di=function(a,e){return gn[a]||(gn[a]=e||{})},Zl=he,Jl=Object,cr=function(a){return Jl(Zl(a))},eh=L,th=cr,rh=eh({}.hasOwnProperty),fe=Object.hasOwn||function(e,t){return rh(th(e),t)},ah=L,ih=0,nh=Math.random(),sh=ah(1 .toString),Mo
|
|||
|
|
`)&&a.flags==="s")}),mp=k,bp=V,xp=bp.RegExp,Tp=mp(function(){var a=xp("(?<a>b)","g");return a.exec("b").groups.a!=="b"||"b".replace(a,"$<a>c")!=="bc"}),Ke=Y,Sr=L,Op=pe,Sp=Cu,Ep=Au,$p=di,wp=Vi,Cp=pr.get,Ap=yp,Pp=Tp,Rp=$p("native-string-replace",String.prototype.replace),lr=RegExp.prototype.exec,Qa=lr,Np=Sr("".charAt),Ip=Sr("".indexOf),Mp=Sr("".replace),da=Sr("".slice),Ka=function(){var a=/a/,e=/b*/g;return Ke(lr,a,"a"),Ke(lr,e,"a"),a.lastIndex!==0||e.lastIndex!==0}(),Iu=Ep.BROKEN_CARET,Za=/()??/.exec("")[1]!==void 0,_p=Ka||Za||Iu||Ap||Pp;_p&&(Qa=function(e){var t=this,r=Cp(t),i=Op(e),n=r.raw,o,s,u,l,h,f,c;if(n)return n.lastIndex=t.lastIndex,o=Ke(Qa,n,i),t.lastIndex=n.lastIndex,o;var v=r.groups,d=Iu&&t.sticky,g=Ke(Sp,t),p=t.source,y=0,x=i;if(d&&(g=Mp(g,"y",""),Ip(g,"g")===-1&&(g+="g"),x=da(i,t.lastIndex),t.lastIndex>0&&(!t.multiline||t.multiline&&Np(i,t.lastIndex-1)!==`
|
|||
|
|
`)&&(p="(?: "+p+")",x=" "+x,y++),s=new RegExp("^(?:"+p+")",g)),Za&&(s=new RegExp("^"+p+"$(?!\\s)",g)),Ka&&(u=t.lastIndex),l=Ke(lr,d?s:t,x),d?l?(l.input=da(l.input,y),l[0]=da(l[0],y),l.index=t.lastIndex,t.lastIndex+=l[0].length):t.lastIndex=0:Ka&&l&&(t.lastIndex=t.global?l.index+l[0].length:u),Za&&l&&l.length>1&&Ke(Rp,l[0],s,function(){for(h=1;h<arguments.length-2;h++)arguments[h]===void 0&&(l[h]=void 0)}),l&&v)for(l.groups=f=wp(null),h=0;h<v.length;h++)c=v[h],f[c[0]]=l[c[1]];return l});var Di=Qa,Vp=ee,gs=Di;Vp({target:"RegExp",proto:!0,forced:/./.exec!==gs},{exec:gs});var ds=Y,ps=je,Dp=Di,ys=k,Mu=z,kp=xt,Lp=Mu("species"),pa=RegExp.prototype,ki=function(a,e,t,r){var i=Mu(a),n=!ys(function(){var l={};return l[i]=function(){return 7},""[a](l)!==7}),o=n&&!ys(function(){var l=!1,h=/a/;return a==="split"&&(h={},h.constructor={},h.constructor[Lp]=function(){return h},h.flags="",h[i]=/./[i]),h.exec=function(){return l=!0,null},h[i](""),!l});if(!n||!o||t){var s=/./[i],u=e(i,""[a],function(l,h,f,c,v){var d=h.exec;return d===Dp||d===pa.exec?n&&!v?{done:!0,value:ds(s,h,f,c)}:{done:!0,value:ds(l,f,h,c)}:{done:!1}});ps(String.prototype,a,u[0]),ps(pa,i,u[1])}r&&kp(pa[i],"sham",!0)},Li=L,Bp=yr,jp=pe,Fp=he,Up=Li("".charAt),ms=Li("".charCodeAt),Gp=Li("".slice),bs=function(a){return function(e,t){var r=jp(Fp(e)),i=Bp(t),n=r.length,o,s;return i<0||i>=n?a?"":void 0:(o=ms(r,i),o<55296||o>56319||i+1===n||(s=ms(r,i+1))<56320||s>57343?a?Up(r,i):o:a?Gp(r,i,i+2):(o-55296<<10)+(s-56320)+65536)}},zp={codeAt:bs(!1),charAt:bs(!0)},Hp=zp.charAt,Bi=function(a,e,t){return e+(t?Hp(a,e).length:1)},xs=Y,Yp=J,Xp=B,Wp=ke,qp=Di,Qp=TypeError,ji=function(a,e){var t=a.exec;if(Xp(t)){var r=xs(t,a,e);return r!==null&&Yp(r),r}if(Wp(a)==="RegExp")return xs(qp,a,e);throw new Qp("RegExp#exec called on incompatible receiver")},Kp=Y,Zp=ki,Jp=J,ey=Le,ty=at,ya=pe,ry=he,ay=rt,iy=Bi,Ts=ji;Zp("match",function(a,e,t){return[function(i){var n=ry(this),o=ey(i)?void 0:ay(i,a);return o?Kp(o,i,n):new RegExp(i)[a](ya(n))},function(r){var i=Jp(this),n=ya(r),o=t(e,i,n);if(o.done)return o.value;if(!i.global)return Ts(i,n);var s=i.unicode;i.lastIndex=0;for(var u=[],l=0,h;(h=Ts(i,n))!==null;){var f=ya(h[0]);u[l]=f,f===""&&(i.lastIndex=iy(n,ty(i.lastIndex),s)),l++}return l===0?null:u}]});var Fi=L,ny=cr,sy=Math.floor,ma=Fi("".charAt),oy=Fi("".replace),ba=Fi("".slice),uy=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,ly=/\$([$&'`]|\d{1,2})/g,hy=function(a,e,t,r,i,n){var o=t+a.length,s=r.length,u=ly;return i!==void 0&&(i=ny(i),u=uy),oy(n,u,function(l,h){var f;switch(ma(h,0)){case"$":return"$";case"&":return a;case"`":return ba(e,0,t);case"'":return ba(e,o);case"<":f=i[ba(h,1,-1)];break;default:var c=+h;if(c===0)return l;if(c>s){var v=sy(c/10);return v===0?l:v<=s?r[v-1]===void 0?ma(h,1):r[v-1]+ma(h,1):l}f=r[c-1]}return f===void 0?"":f})},vy=ru,Os=Y,Er=L,fy=ki,cy=k,gy=J,dy=B,py=Le,yy=yr,my=at,Ye=pe,by=he,xy=Bi,Ty=rt,Oy=hy,Sy=ji,Ey=z,Ja=Ey("replace"),$y=Math.max,wy=Math.min,Cy=Er([].concat),xa=Er([].push),Ss=Er("".indexOf),Es=Er("".slice),Ay=function(a){return a===void 0?a:String(a)},Py=function(){return"a".replace(/./,"$0")==="$0"}(),$s=function(){return/./[Ja]?/./[Ja]("a","$0")==="":!1}(),Ry=!cy(function(){var a=/./;return a.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(a,"$<a>")!=="7"});fy("replace",function(a,e,t){var r=$s?"$":"$0";return[function(n,o){var s=by(this),u=py(n)?void 0:Ty(n,Ja);return u?Os(u,n,s,o):Os(e,Ye(s),n,o)},function(i,n){var o=gy(this),s=Ye(i);if(typeof n=="string"&&Ss(n,r)===-1&&Ss(n,"$<")===-1){var u=t(e,o,s,n);if(u.done)return u.value}var l=dy(n);l||(n=Ye(n));var h=o.global,f;h&&(f=o.unicode,o.lastIndex=0);for(var c=[],v;v=Sy(o,s),!(v===null||(xa(c,v),!h));){var d=Ye(v[0]);d===""&&(o.lastIndex=xy(s,my(o.lastIndex),f))}for(var g="",p=0,y=0;y<c.length;y++){v=c[y];for(var x=Ye(v[0]),b=$y(wy(yy(v.index),s.length),0),T=[],$,E=1;E<v.length;E++)xa(T,Ay(v[E]));var O=v.groups;if(l){var C=Cy([x],T,b,s);O!==void 0&&xa(C,O),$=Ye(vy(n,void 0,C))}else $=Oy(x,s,b,T,O,n);b>=p&&(g+=Es(s,p,b)+$,p=b+x.length)}return g+Es(s,p)}]},!Ry||!Py||$s);var Ny=ve,Iy=ke,My=z,_y=My("match"),Vy=fun
|
|||
|
|
\v\f\r \u2028\u2029\uFEFF`,A0=L,P0=he,R0=pe,ii=Xu,Xs=A0("".replace),N0=RegExp("^["+ii+"]+"),I0=RegExp("(^|[^"+ii+"])["+ii+"]+$"),Na=function(a){return function(e){var t=R0(P0(e));return a&1&&(t=Xs(t,N0,"")),a&2&&(t=Xs(t,I0,"$1")),t}},M0={start:Na(1),end:Na(2),trim:Na(3)},_0=dr.PROPER,V0=k,Ws=Xu,qs="
",D0=function(a){return V0(function(){return!!Ws[a]()||qs[a]()!==qs||_0&&Ws[a].name!==a})},k0=ee,L0=M0.trim,B0=D0;k0({target:"String",proto:!0,forced:B0("trim")},{trim:function(){return L0(this)}});var j0=function(a){this.ok=!1,this.alpha=1,a.charAt(0)=="#"&&(a=a.substr(1,6)),a=a.replace(/ /g,""),a=a.toLowerCase();var e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};a=e[a]||a;for(var t=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(u){return[parseInt(u[1]),parseInt(u[2]),parseInt(u[3]),parseFloat(u[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(u){return[parseInt(u[1]),parseInt(u[2]),parseInt(u[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(u){return[parseInt(u[1],16),parseInt(u[2],16),parseInt(u[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(u)
|
|||
|
|
Copyright (c) Microsoft Corporation.
|
|||
|
|
|
|||
|
|
Permission to use, copy, modify, and/or distribute this software for any
|
|||
|
|
purpose with or without fee is hereby granted.
|
|||
|
|
|
|||
|
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|||
|
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|||
|
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|||
|
|
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 qu=function(a,e){return(qu=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])})(a,e)};function Qu(a,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function t(){this.constructor=a}qu(a,e),a.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}function ib(a){var e="";Array.isArray(a)||(a=[a]);for(var t=0;t<a.length;t++){var r=a[t];if(r.type===m.CLOSE_PATH)e+="z";else if(r.type===m.HORIZ_LINE_TO)e+=(r.relative?"h":"H")+r.x;else if(r.type===m.VERT_LINE_TO)e+=(r.relative?"v":"V")+r.y;else if(r.type===m.MOVE_TO)e+=(r.relative?"m":"M")+r.x+" "+r.y;else if(r.type===m.LINE_TO)e+=(r.relative?"l":"L")+r.x+" "+r.y;else if(r.type===m.CURVE_TO)e+=(r.relative?"c":"C")+r.x1+" "+r.y1+" "+r.x2+" "+r.y2+" "+r.x+" "+r.y;else if(r.type===m.SMOOTH_CURVE_TO)e+=(r.relative?"s":"S")+r.x2+" "+r.y2+" "+r.x+" "+r.y;else if(r.type===m.QUAD_TO)e+=(r.relative?"q":"Q")+r.x1+" "+r.y1+" "+r.x+" "+r.y;else if(r.type===m.SMOOTH_QUAD_TO)e+=(r.relative?"t":"T")+r.x+" "+r.y;else{if(r.type!==m.ARC)throw new Error('Unexpected command type "'+r.type+'" at index '+t+".");e+=(r.relative?"a":"A")+r.rX+" "+r.rY+" "+r.xRot+" "+ +r.lArcFlag+" "+ +r.sweepFlag+" "+r.x+" "+r.y}}return e}function oi(a,e){var t=a[0],r=a[1];return[t*Math.cos(e)-r*Math.sin(e),t*Math.sin(e)+r*Math.cos(e)]}function oe(){for(var a=[],e=0;e<arguments.length;e++)a[e]=arguments[e];for(var t=0;t<a.length;t++)if(typeof a[t]!="number")throw new Error("assertNumbers arguments["+t+"] is not a number. "+typeof a[t]+" == typeof "+a[t]);return!0}var Se=Math.PI;function Ia(a,e,t){a.lArcFlag=a.lArcFlag===0?0:1,a.sweepFlag=a.sweepFlag===0?0:1;var r=a.rX,i=a.rY,n=a.x,o=a.y;r=Math.abs(a.rX),i=Math.abs(a.rY);var s=oi([(e-n)/2,(t-o)/2],-a.xRot/180*Se),u=s[0],l=s[1],h=Math.pow(u,2)/Math.pow(r,2)+Math.pow(l,2)/Math.pow(i,2);1<h&&(r*=Math.sqrt(h),i*=Math.sqrt(h)),a.rX=r,a.rY=i;var f=Math.pow(r,2)*Math.pow(l,2)+Math.pow(i,2)*Math.pow(u,2),c=(a.lArcFlag!==a.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(r,2)*Math.pow(i,2)-f)/f)),v=r*l/i*c,d=-i*u/r*c,g=oi([v,d],a.xRot/180*Se);a.cX=g[0]+(e+n)/2,a.cY=g[1]+(t+o)/2,a.phi1=Math.atan2((l-d)/i,(u-v)/r),a.phi2=Math.atan2((-l-d)/i,(-u-v)/r),a.sweepFlag===0&&a.phi2>a.phi1&&(a.phi2-=2*Se),a.sweepFlag===1&&a.phi2<a.phi1&&(a.phi2+=2*Se),a.phi1*=180/Se,a.phi2*=180/Se}function Zs(a,e,t){oe(a,e,t);var r=a*a+e*e-t*t;if(0>r)return[];if(r===0)return[[a*t/(a*a+e*e),e*t/(a*a+e*e)]];var i=Math.sqrt(r);return[[(a*t+e*i)/(a*a+e*e),(e*t-a*i)/(a*a+e*e)],[(a*t-e*i)/(a*a+e*e),(e*t+a*i)/(a*a+e*e)]]}var U,ye=Math.PI/180;function Js(a,e,t){return(1-t)*a+t*e}function eo(a,e,t,r){return a+Math.cos(r/180*Se)*e+Math.sin(r/180*Se)*t}function to(a,e,t,r){var i=1e-6,n=e-a,o=t-e,s=3*n+3*(r-t)-6*o,u=6*(o-n),l=3*n;return Math.abs(s)<i?[-l/u]:function(h,f,c){c===void 0&&(c=1e-6);var v=h*h/4-f;if(v<-c)return[];if(v<=c)return[-h/2];var d=Math.sqrt(v);return[-h/2-d,-h/2+d]}(u/s,l/s,i)}function ro(a,e,t,r,i){var n=1-i;return a*(n*n*n)+e*(3*n*n*i)+t*(3*n*i*i)+r*(i*i*i)}(function(a){function e(){return i(function(s,u,l){return s.relative&&(s.x1!==void 0&&(s.x1+=u),s.y1!==void 0&&(s.y1+=l),s.x2!==void 0&&(s.x2+=u),s.y2!==void 0&&(s.y2+=l),s.x!==void 0&&(s.x+=u),s.y!==void 0&&(s.y+=l),s.relative=!1),s})}function t(){var s=NaN,u=NaN,l=NaN,h=NaN;return i(function(f,c,v){return f.type&m.SMOOTH_CURVE_TO&&(f.type=m.CURVE_TO,s=isNaN(s)?c:s,u=isNaN(u)?v:u,f.x1=f.relative?c-s:2*c-s,f.y1=f.relative?v-u:2*v-u),f.type&m.CURVE_TO?(s=f.relative?c+f.x2:f.x2,u=f.relative?v+f.y2:f.y2):(s=NaN,u=NaN),f.type&m.SMOOTH_QUAD_TO&&(f.type=m.QUAD_TO,l=isNaN(l)?c:l,h=isNaN(h)?v:h,f.x1=f.relative?c-l:2*c-l,f.y1=f.relative?v-h:2*v-h),f.type&m.QUAD_TO?(l=f.relative?c+f.x1:f.x1,h=f.relative?v+f.y1:f.y1):(l=NaN,h=NaN),f})}function r(){var s=NaN,u=NaN;return i(function(l,h,f){if(l.type&m.SMOOTH_QUAD_TO&&(l.type=m.QUAD_TO,s=isNaN(s)?h:s,u=isNaN(u)?f:u,l.x1=l.re
|
|||
|
|
`},ao=function(a){return"0".charCodeAt(0)<=a.charCodeAt(0)&&a.charCodeAt(0)<="9".charCodeAt(0)},sb=function(a){function e(){var t=a.call(this)||this;return t.curNumber="",t.curCommandType=-1,t.curCommandRelative=!1,t.canParseCommandOrComma=!0,t.curNumberHasExp=!1,t.curNumberHasExpDigits=!1,t.curNumberHasDecimal=!1,t.curArgs=[],t}return Qu(e,a),e.prototype.finish=function(t){if(t===void 0&&(t=[]),this.parse(" ",t),this.curArgs.length!==0||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return t},e.prototype.parse=function(t,r){var i=this;r===void 0&&(r=[]);for(var n=function(f){r.push(f),i.curArgs.length=0,i.canParseCommandOrComma=!0},o=0;o<t.length;o++){var s=t[o],u=!(this.curCommandType!==m.ARC||this.curArgs.length!==3&&this.curArgs.length!==4||this.curNumber.length!==1||this.curNumber!=="0"&&this.curNumber!=="1"),l=ao(s)&&(this.curNumber==="0"&&s==="0"||u);if(!ao(s)||l)if(s!=="e"&&s!=="E")if(s!=="-"&&s!=="+"||!this.curNumberHasExp||this.curNumberHasExpDigits)if(s!=="."||this.curNumberHasExp||this.curNumberHasDecimal||u){if(this.curNumber&&this.curCommandType!==-1){var h=Number(this.curNumber);if(isNaN(h))throw new SyntaxError("Invalid number ending at "+o);if(this.curCommandType===m.ARC){if(this.curArgs.length===0||this.curArgs.length===1){if(0>h)throw new SyntaxError('Expected positive number, got "'+h+'" at index "'+o+'"')}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 "'+o+'"')}this.curArgs.push(h),this.curArgs.length===ob[this.curCommandType]&&(m.HORIZ_LINE_TO===this.curCommandType?n({type:m.HORIZ_LINE_TO,relative:this.curCommandRelative,x:h}):m.VERT_LINE_TO===this.curCommandType?n({type:m.VERT_LINE_TO,relative:this.curCommandRelative,y:h}):this.curCommandType===m.MOVE_TO||this.curCommandType===m.LINE_TO||this.curCommandType===m.SMOOTH_QUAD_TO?(n({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),m.MOVE_TO===this.curCommandType&&(this.curCommandType=m.LINE_TO)):this.curCommandType===m.CURVE_TO?n({type:m.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===m.SMOOTH_CURVE_TO?n({type:m.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===m.QUAD_TO?n({type:m.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===m.ARC&&n({type:m.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(!nb(s))if(s===","&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if(s!=="+"&&s!=="-"&&s!==".")if(l)this.curNumber=s,this.curNumberHasDecimal=!1;else{if(this.curArgs.length!==0)throw new SyntaxError("Unterminated command at index "+o+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+s+'" at index '+o+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,s!=="z"&&s!=="Z")if(s==="h"||s==="H")this.curCommandType=m.HORIZ_LINE_TO,this.curCommandRelative=s==="h";else if(s==="v"||s==="V")this.curCommandType=m.VERT_LINE_TO,this.curCommandRelative=s==="v";else if(s==="m"||s==="M")this.curCommandType=m.MOVE_TO,this.curCommandRelative=s==="m";else if(s==="l"||s==="L")this.curCommandType=m.LINE_TO,this.curCommandRelative=s==="l";else if(s==="c"||s==="C")this.curCommandType=m.CURVE_TO,this.curCommandRelative=s==="c";else if(s==="s"||s==="S")this.curCommandType=m.SMOOTH_CURVE_TO,this.curCommandRelative=s==="s";else if(s==="q"||s==="Q")this.curCommandType=m.QUAD_TO,this.curCommandRelative=s==="q";else if(s==="t"||s==="
|