hrms-manual/dist/assets/index.es-ebdebaec-04a9e4c4.js

19 lines
147 KiB
JavaScript
Raw Normal View History

2023-09-06 14:51:44 +07:00
import{v as Gi}from"./MainStructChart-3a320821.js";import"./QTooltip-5ceb1b84.js";import"./index-3a2b6cd5.js";import"./position-engine-4e9b318c.js";import"./selection-8094913b.js";import"./QBreadcrumbs-8582ad34.js";import"./app.config-a8647d06.js";import"./index-932e35b0.js";import"./mixin-183f301b.js";import"./QSpinnerCube-b3e27bc1.js";var pr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Xe=function(i){return i&&i.Math==Math&&i},U=Xe(typeof globalThis=="object"&&globalThis)||Xe(typeof window=="object"&&window)||Xe(typeof self=="object"&&self)||Xe(typeof pr=="object"&&pr)||function(){return this}()||Function("return this")(),ue={},D=function(i){try{return!!i()}catch{return!0}},Nh=D,ft=!Nh(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7}),Mh=D,Sr=!Mh(function(){var i=function(){}.bind();return typeof i!="function"||i.hasOwnProperty("prototype")}),Vh=Sr,Ye=Function.prototype.call,G=Vh?Ye.bind(Ye):function(){return Ye.apply(Ye,arguments)},Do={},jo={}.propertyIsEnumerable,Fo=Object.getOwnPropertyDescriptor,Rh=Fo&&!jo.call({1:2},1);Do.f=Rh?function(i){var t=Fo(this,i);return!!t&&t.enumerable}:jo;var Tr=function(i,t){return{enumerable:!(i&1),configurable:!(i&2),writable:!(i&4),value:t}},zo=Sr,Bo=Function.prototype,qi=Bo.call,kh=zo&&Bo.bind.bind(qi,qi),j=zo?kh:function(i){return function(){return qi.apply(i,arguments)}},Ho=j,Ih=Ho({}.toString),_h=Ho("".slice),Bt=function(i){return _h(Ih(i),8,-1)},Lh=j,Dh=D,jh=Bt,ti=Object,Fh=Lh("".split),Uo=Dh(function(){return!ti("z").propertyIsEnumerable(0)})?function(i){return jh(i)=="String"?Fh(i,""):ti(i)}:ti,Ht=function(i){return i==null},zh=Ht,Bh=TypeError,pt=function(i){if(zh(i))throw Bh("Can't call method on "+i);return i},Hh=Uo,Uh=pt,Ee=function(i){return Hh(Uh(i))},Wi=typeof document=="object"&&document.all,Xh=typeof Wi>"u"&&Wi!==void 0,Xo={all:Wi,IS_HTMLDDA:Xh},Yo=Xo,Yh=Yo.all,_=Yo.IS_HTMLDDA?function(i){return typeof i=="function"||i===Yh}:function(i){return typeof i=="function"},xa=_,Go=Xo,Gh=Go.all,wt=Go.IS_HTMLDDA?function(i){return typeof i=="object"?i!==null:xa(i)||i===Gh}:function(i){return typeof i=="object"?i!==null:xa(i)},ei=U,qh=_,Wh=function(i){return qh(i)?i:void 0},Ut=function(i,t){return arguments.length<2?Wh(ei[i]):ei[i]&&ei[i][t]},Qh=j,Or=Qh({}.isPrototypeOf),Ar=typeof navigator<"u"&&String(navigator.userAgent)||"",qo=U,ri=Ar,ba=qo.process,wa=qo.Deno,Sa=ba&&ba.versions||wa&&wa.version,Ta=Sa&&Sa.v8,ut,dr;Ta&&(ut=Ta.split("."),dr=ut[0]>0&&ut[0]<4?1:+(ut[0]+ut[1]));!dr&&ri&&(ut=ri.match(/Edge\/(\d+)/),(!ut||ut[1]>=74)&&(ut=ri.match(/Chrome\/(\d+)/),ut&&(dr=+ut[1])));var Cn=dr,Oa=Cn,$h=D,Wo=!!Object.getOwnPropertySymbols&&!$h(function(){var i=Symbol();return!String(i)||!(Object(i)instanceof Symbol)||!Symbol.sham&&Oa&&Oa<41}),Zh=Wo,Qo=Zh&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Kh=Ut,Jh=_,tl=Or,el=Qo,rl=Object,$o=el?function(i){return typeof i=="symbol"}:function(i){var t=Kh("Symbol");return Jh(t)&&tl(t.prototype,rl(i))},il=String,Cr=function(i){try{return il(i)}catch{return"Object"}},nl=_,al=Cr,sl=TypeError,St=function(i){if(nl(i))return i;throw sl(al(i)+" is not a function")},ol=St,ul=Ht,he=function(i,t){var e=i[t];return ul(e)?void 0:ol(e)},ii=G,ni=_,ai=wt,hl=TypeError,ll=function(i,t){var e,r;if(t==="string"&&ni(e=i.toString)&&!ai(r=ii(e,i))||ni(e=i.valueOf)&&!ai(r=ii(e,i))||t!=="string"&&ni(e=i.toString)&&!ai(r=ii(e,i)))return r;throw hl("Can't convert object to primitive value")},Te={},cl={get exports(){return Te},set exports(i){Te=i}},Aa=U,gl=Object.defineProperty,En=function(i,t){try{gl(Aa,i,{value:t,configurable:!0,writable:!0})}catch{Aa[i]=t}return t},fl=U,pl=En,Ca="__core-js_shared__",dl=fl[Ca]||pl(Ca,{}),Pn=dl,Ea=Pn;(cl.exports=function(i,t){return Ea[i]||(Ea[i]=t!==void 0?t:{})})("versions",[]).push({version:"3.30.1",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.1/LICENSE",source:"https://github.com/zloirock/core-js"});var ml=pt,yl=Object,Er=function(i){return yl(ml(i))},vl=j,xl=Er,
`)&&i.flags==="s")}),_m=D,Lm=U,Dm=Lm.RegExp,jm=_m(function(){var i=Dm("(?<a>b)","g");return i.exec("b").groups.a!=="b"||"b".replace(i,"$<a>c")!=="bc"}),re=G,_r=j,Fm=mt,zm=Hu,Bm=Uu,Hm=Te,Um=$n,Xm=Mr.get,Ym=Im,Gm=jm,qm=Hm("native-string-replace",String.prototype.replace),wr=RegExp.prototype.exec,cn=wr,Wm=_r("".charAt),Qm=_r("".indexOf),$m=_r("".replace),Ei=_r("".slice),gn=function(){var i=/a/,t=/b*/g;return re(wr,i,"a"),re(wr,t,"a"),i.lastIndex!==0||t.lastIndex!==0}(),qu=Bm.BROKEN_CARET,fn=/()??/.exec("")[1]!==void 0,Zm=gn||fn||qu||Ym||Gm;Zm&&(cn=function(i){var t=this,e=Xm(t),r=Fm(i),n=e.raw,a,o,s,u,h,l,g;if(n)return n.lastIndex=t.lastIndex,a=re(cn,n,r),t.lastIndex=n.lastIndex,a;var f=e.groups,c=qu&&t.sticky,d=re(zm,t),p=t.source,m=0,y=r;if(c&&(d=$m(d,"y",""),Qm(d,"g")===-1&&(d+="g"),y=Ei(r,t.lastIndex),t.lastIndex>0&&(!t.multiline||t.multiline&&Wm(r,t.lastIndex-1)!==`
`)&&(p="(?: "+p+")",y=" "+y,m++),o=new RegExp("^(?:"+p+")",d)),fn&&(o=new RegExp("^"+p+"$(?!\\s)",d)),gn&&(s=t.lastIndex),u=re(wr,c?o:t,y),c?u?(u.input=Ei(u.input,m),u[0]=Ei(u[0],m),u.index=t.lastIndex,t.lastIndex+=u[0].length):t.lastIndex=0:gn&&u&&(t.lastIndex=t.global?u.index+u[0].length:s),fn&&u&&u.length>1&&re(qm,u[0],o,function(){for(h=1;h<arguments.length-2;h++)arguments[h]===void 0&&(u[h]=void 0)}),u&&f)for(u.groups=l=Um(null),h=0;h<f.length;h++)g=f[h],l[g[0]]=u[g[1]];return u});var Lr=cn,Km=tt,Es=Lr;Km({target:"RegExp",proto:!0,forced:/./.exec!==Es},{exec:Es});var Ps=Ve,Ns=Xt,Jm=Lr,Ms=D,Wu=X,t0=Pe,e0=Wu("species"),Pi=RegExp.prototype,Zn=function(i,t,e,r){var n=Wu(i),a=!Ms(function(){var h={};return h[n]=function(){return 7},""[i](h)!=7}),o=a&&!Ms(function(){var h=!1,l=/a/;return i==="split"&&(l={},l.constructor={},l.constructor[e0]=function(){return l},l.flags="",l[n]=/./[n]),l.exec=function(){return h=!0,null},l[n](""),!h});if(!a||!o||e){var s=Ps(/./[n]),u=t(n,""[i],function(h,l,g,f,c){var d=Ps(h),p=l.exec;return p===Jm||p===Pi.exec?a&&!c?{done:!0,value:s(l,g,f)}:{done:!0,value:d(g,l,f)}:{done:!1}});Ns(String.prototype,i,u[0]),Ns(Pi,n,u[1])}r&&t0(Pi[n],"sham",!0)},Kn=j,r0=Vr,i0=mt,n0=pt,a0=Kn("".charAt),Vs=Kn("".charCodeAt),s0=Kn("".slice),Rs=function(i){return function(t,e){var r=i0(n0(t)),n=r0(e),a=r.length,o,s;return n<0||n>=a?i?"":void 0:(o=Vs(r,n),o<55296||o>56319||n+1===a||(s=Vs(r,n+1))<56320||s>57343?i?a0(r,n):o:i?s0(r,n,n+2):(o-55296<<10)+(s-56320)+65536)}},o0={codeAt:Rs(!1),charAt:Rs(!0)},u0=o0.charAt,Jn=function(i,t,e){return t+(e?u0(i,t).length:1)},ks=G,h0=Z,l0=_,c0=Bt,g0=Lr,f0=TypeError,ta=function(i,t){var e=i.exec;if(l0(e)){var r=ks(e,i,t);return r!==null&&h0(r),r}if(c0(i)==="RegExp")return ks(g0,i,t);throw f0("RegExp#exec called on incompatible receiver")},p0=G,d0=Zn,m0=Z,y0=Ht,v0=le,Ni=mt,x0=pt,b0=he,w0=Jn,Is=ta;d0("match",function(i,t,e){return[function(r){var n=x0(this),a=y0(r)?void 0:b0(r,i);return a?p0(a,r,n):new RegExp(r)[i](Ni(n))},function(r){var n=m0(this),a=Ni(r),o=e(t,n,a);if(o.done)return o.value;if(!n.global)return Is(n,a);var s=n.unicode;n.lastIndex=0;for(var u=[],h=0,l;(l=Is(n,a))!==null;){var g=Ni(l[0]);u[h]=g,g===""&&(n.lastIndex=w0(a,v0(n.lastIndex),s)),h++}return h===0?null:u}]});var ea=j,S0=Er,T0=Math.floor,Mi=ea("".charAt),O0=ea("".replace),Vi=ea("".slice),A0=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,C0=/\$([$&'`]|\d{1,2})/g,E0=function(i,t,e,r,n,a){var o=e+i.length,s=r.length,u=C0;return n!==void 0&&(n=S0(n),u=A0),O0(a,u,function(h,l){var g;switch(Mi(l,0)){case"$":return"$";case"&":return i;case"`":return Vi(t,0,e);case"'":return Vi(t,o);case"<":g=n[Vi(l,1,-1)];break;default:var f=+l;if(f===0)return h;if(f>s){var c=T0(f/10);return c===0?h:c<=s?r[c-1]===void 0?Mi(l,1):r[c-1]+Mi(l,1):h}g=r[f-1]}return g===void 0?"":g})},P0=Fn,_s=G,Dr=j,N0=Zn,M0=D,V0=Z,R0=_,k0=Ht,I0=Vr,_0=le,$t=mt,L0=pt,D0=Jn,j0=he,F0=E0,z0=ta,B0=X,pn=B0("replace"),H0=Math.max,U0=Math.min,X0=Dr([].concat),Ri=Dr([].push),Ls=Dr("".indexOf),Ds=Dr("".slice),Y0=function(i){return i===void 0?i:String(i)},G0=function(){return"a".replace(/./,"$0")==="$0"}(),js=function(){return/./[pn]?/./[pn]("a","$0")==="":!1}(),q0=!M0(function(){var i=/./;return i.exec=function(){var t=[];return t.groups={a:"7"},t},"".replace(i,"$<a>")!=="7"});N0("replace",function(i,t,e){var r=js?"$":"$0";return[function(n,a){var o=L0(this),s=k0(n)?void 0:j0(n,pn);return s?_s(s,n,o,a):_s(t,$t(o),n,a)},function(n,a){var o=V0(this),s=$t(n);if(typeof a=="string"&&Ls(a,r)===-1&&Ls(a,"$<")===-1){var u=e(t,o,s,a);if(u.done)return u.value}var h=R0(a);h||(a=$t(a));var l=o.global;if(l){var g=o.unicode;o.lastIndex=0}for(var f=[];;){var c=z0(o,s);if(c===null||(Ri(f,c),!l))break;var d=$t(c[0]);d===""&&(o.lastIndex=D0(s,_0(o.lastIndex),g))}for(var p="",m=0,y=0;y<f.length;y++){c=f[y];for(var b=$t(c[0]),x=H0(U0(I0(c.index),s.length),0),w=[],A=1;A<c.length;A++)Ri(w,Y0(c[A]));var O=c.groups;if(h){var S=X0([b],w,x,s);O!==void 0&&Ri(S,O);var E=$t(P0(a,void 0,S))}else E=F0(b,s,x,w,O,a);x>=m&&(p+=Ds(s,m,x)+E,m=x+b.length)}return p+Ds(s,m)}]},!q0||!G0||js);var W0=wt,Q0=Bt,$0=X,Z0=$0
\v\f\r    \u2028\u2029\uFEFF`,ix=j,nx=pt,ax=mt,bn=gh,ho=ix("".replace),sx=RegExp("^["+bn+"]+"),ox=RegExp("(^|[^"+bn+"])["+bn+"]+$"),Ui=function(i){return function(t){var e=ax(nx(t));return i&1&&(e=ho(e,sx,"")),i&2&&(e=ho(e,ox,"$1")),e}},ux={start:Ui(1),end:Ui(2),trim:Ui(3)},hx=Nr.PROPER,lx=D,lo=gh,co="…",cx=function(i){return lx(function(){return!!lo[i]()||co[i]()!==co||hx&&lo[i].name!==i})},gx=tt,fx=ux.trim,px=cx;gx({target:"String",proto:!0,forced:px("trim")},{trim:function(){return fx(this)}});var wn=function(i){this.ok=!1,this.alpha=1,i.charAt(0)=="#"&&(i=i.substr(1,6)),i=i.replace(/ /g,""),i=i.toLowerCase();var t={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"};i=t[i]||i;for(var e=[{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 ph=function(i,t){return(ph=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])})(i,t)};function dh(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=i}ph(i,t),i.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function Rx(i){var t="";Array.isArray(i)||(i=[i]);for(var e=0;e<i.length;e++){var r=i[e];if(r.type===v.CLOSE_PATH)t+="z";else if(r.type===v.HORIZ_LINE_TO)t+=(r.relative?"h":"H")+r.x;else if(r.type===v.VERT_LINE_TO)t+=(r.relative?"v":"V")+r.y;else if(r.type===v.MOVE_TO)t+=(r.relative?"m":"M")+r.x+" "+r.y;else if(r.type===v.LINE_TO)t+=(r.relative?"l":"L")+r.x+" "+r.y;else if(r.type===v.CURVE_TO)t+=(r.relative?"c":"C")+r.x1+" "+r.y1+" "+r.x2+" "+r.y2+" "+r.x+" "+r.y;else if(r.type===v.SMOOTH_CURVE_TO)t+=(r.relative?"s":"S")+r.x2+" "+r.y2+" "+r.x+" "+r.y;else if(r.type===v.QUAD_TO)t+=(r.relative?"q":"Q")+r.x1+" "+r.y1+" "+r.x+" "+r.y;else if(r.type===v.SMOOTH_QUAD_TO)t+=(r.relative?"t":"T")+r.x+" "+r.y;else{if(r.type!==v.ARC)throw new Error('Unexpected command type "'+r.type+'" at index '+e+".");t+=(r.relative?"a":"A")+r.rX+" "+r.rY+" "+r.xRot+" "+ +r.lArcFlag+" "+ +r.sweepFlag+" "+r.x+" "+r.y}}return t}function Tn(i,t){var e=i[0],r=i[1];return[e*Math.cos(t)-r*Math.sin(t),e*Math.sin(t)+r*Math.cos(t)]}function ot(){for(var i=[],t=0;t<arguments.length;t++)i[t]=arguments[t];for(var e=0;e<i.length;e++)if(typeof i[e]!="number")throw new Error("assertNumbers arguments["+e+"] is not a number. "+typeof i[e]+" == typeof "+i[e]);return!0}var Ot=Math.PI;function Xi(i,t,e){i.lArcFlag=i.lArcFlag===0?0:1,i.sweepFlag=i.sweepFlag===0?0:1;var r=i.rX,n=i.rY,a=i.x,o=i.y;r=Math.abs(i.rX),n=Math.abs(i.rY);var s=Tn([(t-a)/2,(e-o)/2],-i.xRot/180*Ot),u=s[0],h=s[1],l=Math.pow(u,2)/Math.pow(r,2)+Math.pow(h,2)/Math.pow(n,2);1<l&&(r*=Math.sqrt(l),n*=Math.sqrt(l)),i.rX=r,i.rY=n;var g=Math.pow(r,2)*Math.pow(h,2)+Math.pow(n,2)*Math.pow(u,2),f=(i.lArcFlag!==i.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(r,2)*Math.pow(n,2)-g)/g)),c=r*h/n*f,d=-n*u/r*f,p=Tn([c,d],i.xRot/180*Ot);i.cX=p[0]+(t+a)/2,i.cY=p[1]+(e+o)/2,i.phi1=Math.atan2((h-d)/n,(u-c)/r),i.phi2=Math.atan2((-h-d)/n,(-u-c)/r),i.sweepFlag===0&&i.phi2>i.phi1&&(i.phi2-=2*Ot),i.sweepFlag===1&&i.phi2<i.phi1&&(i.phi2+=2*Ot),i.phi1*=180/Ot,i.phi2*=180/Ot}function po(i,t,e){ot(i,t,e);var r=i*i+t*t-e*e;if(0>r)return[];if(r===0)return[[i*e/(i*i+t*t),t*e/(i*i+t*t)]];var n=Math.sqrt(r);return[[(i*e+t*n)/(i*i+t*t),(t*e-i*n)/(i*i+t*t)],[(i*e-t*n)/(i*i+t*t),(t*e+i*n)/(i*i+t*t)]]}var B,yt=Math.PI/180;function mo(i,t,e){return(1-e)*i+e*t}function yo(i,t,e,r){return i+Math.cos(r/180*Ot)*t+Math.sin(r/180*Ot)*e}function vo(i,t,e,r){var n=1e-6,a=t-i,o=e-t,s=3*a+3*(r-e)-6*o,u=6*(o-a),h=3*a;return Math.abs(s)<n?[-h/u]:function(l,g,f){f===void 0&&(f=1e-6);var c=l*l/4-g;if(c<-f)return[];if(c<=f)return[-l/2];var d=Math.sqrt(c);return[-l/2-d,-l/2+d]}(u/s,h/s,n)}function xo(i,t,e,r,n){var a=1-n;return i*(a*a*a)+t*(3*a*a*n)+e*(3*a*n*n)+r*(n*n*n)}(function(i){function t(){return n(function(s,u,h){return s.relative&&(s.x1!==void 0&&(s.x1+=u),s.y1!==void 0&&(s.y1+=h),s.x2!==void 0&&(s.x2+=u),s.y2!==void 0&&(s.y2+=h),s.x!==void 0&&(s.x+=u),s.y!==void 0&&(s.y+=h),s.relative=!1),s})}function e(){var s=NaN,u=NaN,h=NaN,l=NaN;return n(function(g,f,c){return g.type&v.SMOOTH_CURVE_TO&&(g.type=v.CURVE_TO,s=isNaN(s)?f:s,u=isNaN(u)?c:u,g.x1=g.relative?f-s:2*f-s,g.y1=g.relative?c-u:2*c-u),g.type&v.CURVE_TO?(s=g.relative?f+g.x2:g.x2,u=g.relative?c+g.y2:g.y2):(s=NaN,u=NaN),g.type&v.SMOOTH_QUAD_TO&&(g.type=v.QUAD_TO,h=isNaN(h)?f:h,l=isNaN(l)?c:l,g.x1=g.relative?f-h:2*f-h,g.y1=g.relative?c-l:2*c-l),g.type&v.QUAD_TO?(h=g.relative?f+g.x1:g.x1,l=g.relative?c+g.y1:g.y1):(h=NaN,l=NaN),g})}function r(){var s=NaN,u=NaN;return n(function(h,l,g){if(h.type&v.SMOOTH_QUAD_TO&&(h.type=v.QUAD_TO,s=isNaN(s)?l:s,u=isNaN(u)?g:u,h.x1=h.re
`},bo=function(i){return"0".charCodeAt(0)<=i.charCodeAt(0)&&i.charCodeAt(0)<="9".charCodeAt(0)},Ix=function(i){function t(){var e=i.call(this)||this;return e.curNumber="",e.curCommandType=-1,e.curCommandRelative=!1,e.canParseCommandOrComma=!0,e.curNumberHasExp=!1,e.curNumberHasExpDigits=!1,e.curNumberHasDecimal=!1,e.curArgs=[],e}return dh(t,i),t.prototype.finish=function(e){if(e===void 0&&(e=[]),this.parse(" ",e),this.curArgs.length!==0||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return e},t.prototype.parse=function(e,r){var n=this;r===void 0&&(r=[]);for(var a=function(g){r.push(g),n.curArgs.length=0,n.canParseCommandOrComma=!0},o=0;o<e.length;o++){var s=e[o],u=!(this.curCommandType!==v.ARC||this.curArgs.length!==3&&this.curArgs.length!==4||this.curNumber.length!==1||this.curNumber!=="0"&&this.curNumber!=="1"),h=bo(s)&&(this.curNumber==="0"&&s==="0"||u);if(!bo(s)||h)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 l=Number(this.curNumber);if(isNaN(l))throw new SyntaxError("Invalid number ending at "+o);if(this.curCommandType===v.ARC){if(this.curArgs.length===0||this.curArgs.length===1){if(0>l)throw new SyntaxError('Expected positive number, got "'+l+'" 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(l),this.curArgs.length===_x[this.curCommandType]&&(v.HORIZ_LINE_TO===this.curCommandType?a({type:v.HORIZ_LINE_TO,relative:this.curCommandRelative,x:l}):v.VERT_LINE_TO===this.curCommandType?a({type:v.VERT_LINE_TO,relative:this.curCommandRelative,y:l}):this.curCommandType===v.MOVE_TO||this.curCommandType===v.LINE_TO||this.curCommandType===v.SMOOTH_QUAD_TO?(a({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),v.MOVE_TO===this.curCommandType&&(this.curCommandType=v.LINE_TO)):this.curCommandType===v.CURVE_TO?a({type:v.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===v.SMOOTH_CURVE_TO?a({type:v.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===v.QUAD_TO?a({type:v.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===v.ARC&&a({type:v.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(!kx(s))if(s===","&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if(s!=="+"&&s!=="-"&&s!==".")if(h)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=v.HORIZ_LINE_TO,this.curCommandRelative=s==="h";else if(s==="v"||s==="V")this.curCommandType=v.VERT_LINE_TO,this.curCommandRelative=s==="v";else if(s==="m"||s==="M")this.curCommandType=v.MOVE_TO,this.curCommandRelative=s==="m";else if(s==="l"||s==="L")this.curCommandType=v.LINE_TO,this.curCommandRelative=s==="l";else if(s==="c"||s==="C")this.curCommandType=v.CURVE_TO,this.curCommandRelative=s==="c";else if(s==="s"||s==="S")this.curCommandType=v.SMOOTH_CURVE_TO,this.curCommandRelative=s==="s";else if(s==="q"||s==="Q")this.curCommandType=v.QUAD_TO,this.curCommandRelative=s==="q";else if(s==="t"||s==="