16 lines
99 KiB
Java
16 lines
99 KiB
Java
|
|
import{r as ve,a as de,b as pe,c as me,d as ye,e as xe,f as be,g as Ae,h as Te,i as Ce,j as Se,k as we,l as Oe,m as Ee,n as Me,o as Ne,p as Pe}from"./stackblur-es-DK4L4ctA.js";import{i2 as Et}from"./index-X7Y8jykP.js";import{g as Zt}from"./emoji-mart-vue-fast-R0uJEDq-.js";import"./vue-vendor-DNhG1Cve.js";ve();function _t(o,t,e,r,i,a,n){try{var s=o[a](n),h=s.value}catch(u){return void e(u)}s.done?t(h):Promise.resolve(h).then(r,i)}function K(o){return function(){var t=this,e=arguments;return new Promise(function(r,i){var a=o.apply(t,e);function n(h){_t(a,r,i,n,s,"next",h)}function s(h){_t(a,r,i,n,s,"throw",h)}n(void 0)})}}de();pe();me();ye();xe();be();Ae();Te();var _e=Ce();const bt=Zt(_e);Se();var Ve=we();const Ct=Zt(Ve);Oe();Ee();Me();/*! *****************************************************************************
|
||
|
|
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 Jt=function(o,t){return(Jt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])})(o,t)};function Kt(o,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=o}Jt(o,t),o.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function Re(o){var t="";Array.isArray(o)||(o=[o]);for(var e=0;e<o.length;e++){var r=o[e];if(r.type===p.CLOSE_PATH)t+="z";else if(r.type===p.HORIZ_LINE_TO)t+=(r.relative?"h":"H")+r.x;else if(r.type===p.VERT_LINE_TO)t+=(r.relative?"v":"V")+r.y;else if(r.type===p.MOVE_TO)t+=(r.relative?"m":"M")+r.x+" "+r.y;else if(r.type===p.LINE_TO)t+=(r.relative?"l":"L")+r.x+" "+r.y;else if(r.type===p.CURVE_TO)t+=(r.relative?"c":"C")+r.x1+" "+r.y1+" "+r.x2+" "+r.y2+" "+r.x+" "+r.y;else if(r.type===p.SMOOTH_CURVE_TO)t+=(r.relative?"s":"S")+r.x2+" "+r.y2+" "+r.x+" "+r.y;else if(r.type===p.QUAD_TO)t+=(r.relative?"q":"Q")+r.x1+" "+r.y1+" "+r.x+" "+r.y;else if(r.type===p.SMOOTH_QUAD_TO)t+=(r.relative?"t":"T")+r.x+" "+r.y;else{if(r.type!==p.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 St(o,t){var e=o[0],r=o[1];return[e*Math.cos(t)-r*Math.sin(t),e*Math.sin(t)+r*Math.cos(t)]}function Q(){for(var o=[],t=0;t<arguments.length;t++)o[t]=arguments[t];for(var e=0;e<o.length;e++)if(typeof o[e]!="number")throw new Error("assertNumbers arguments["+e+"] is not a number. "+typeof o[e]+" == typeof "+o[e]);return!0}var tt=Math.PI;function At(o,t,e){o.lArcFlag=o.lArcFlag===0?0:1,o.sweepFlag=o.sweepFlag===0?0:1;var r=o.rX,i=o.rY,a=o.x,n=o.y;r=Math.abs(o.rX),i=Math.abs(o.rY);var s=St([(t-a)/2,(e-n)/2],-o.xRot/180*tt),h=s[0],u=s[1],l=Math.pow(h,2)/Math.pow(r,2)+Math.pow(u,2)/Math.pow(i,2);1<l&&(r*=Math.sqrt(l),i*=Math.sqrt(l)),o.rX=r,o.rY=i;var f=Math.pow(r,2)*Math.pow(u,2)+Math.pow(i,2)*Math.pow(h,2),c=(o.lArcFlag!==o.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(r,2)*Math.pow(i,2)-f)/f)),g=r*u/i*c,d=-i*h/r*c,v=St([g,d],o.xRot/180*tt);o.cX=v[0]+(t+a)/2,o.cY=v[1]+(e+n)/2,o.phi1=Math.atan2((u-d)/i,(h-g)/r),o.phi2=Math.atan2((-u-d)/i,(-h-g)/r),o.sweepFlag===0&&o.phi2>o.phi1&&(o.phi2-=2*tt),o.sweepFlag===1&&o.phi2<o.phi1&&(o.phi2+=2*tt),o.phi1*=180/tt,o.phi2*=180/tt}function Vt(o,t,e){Q(o,t,e);var r=o*o+t*t-e*e;if(0>r)return[];if(r===0)return[[o*e/(o*o+t*t),t*e/(o*o+t*t)]];var i=Math.sqrt(r);return[[(o*e+t*i)/(o*o+t*t),(t*e-o*i)/(o*o+t*t)],[(o*e-t*i)/(o*o+t*t),(t*e+o*i)/(o*o+t*t)]]}var I,Z=Math.PI/180;function Rt(o,t,e){return(1-e)*o+e*t}function kt(o,t,e,r){return o+Math.cos(r/180*tt)*t+Math.sin(r/180*tt)*e}function It(o,t,e,r){var i=1e-6,a=t-o,n=e-t,s=3*a+3*(r-e)-6*n,h=6*(n-a),u=3*a;return Math.abs(s)<i?[-u/h]:(function(l,f,c){var g=l*l/4-f;if(g<-c)return[];if(g<=c)return[-l/2];var d=Math.sqrt(g);return[-l/2-d,-l/2+d]})(h/s,u/s,i)}function Lt(o,t,e,r,i){var a=1-i;return o*(a*a*a)+t*(3*a*a*i)+e*(3*a*i*i)+r*(i*i*i)}(function(o){function t(){return i((function(s,h,u){return s.relative&&(s.x1!==void 0&&(s.x1+=h),s.y1!==void 0&&(s.y1+=u),s.x2!==void 0&&(s.x2+=h),s.y2!==void 0&&(s.y2+=u),s.x!==void 0&&(s.x+=h),s.y!==void 0&&(s.y+=u),s.relative=!1),s}))}function e(){var s=NaN,h=NaN,u=NaN,l=NaN;return i((function(f,c,g){return f.type&p.SMOOTH_CURVE_TO&&(f.type=p.CURVE_TO,s=isNaN(s)?c:s,h=isNaN(h)?g:h,f.x1=f.relative?c-s:2*c-s,f.y1=f.relative?g-h:2*g-h),f.type&p.CURVE_TO?(s=f.relative?c+f.x2:f.x2,h=f.relative?g+f.y2:f.y2):(s=NaN,h=NaN),f.type&p.SMOOTH_QUAD_TO&&(f.type=p.QUAD_TO,u=isNaN(u)?c:u,l=isNaN(l)?g:l,f.x1=f.relative?c-u:2*c-u,f.y1=f.relative?g-l:2*g-l),f.type&p.QUAD_TO?(u=f.relative?c+f.x1:f.x1,l=f.relative?g+f.y1:f.y1):(u=NaN,l=NaN),f}))}function r(){var s=NaN,h=NaN;return i((function(u,l,f){if(u.type&p.SMOOTH_QUAD_TO&&(u.type=p.QUAD_TO,s=isNaN(s)?l:s,h=isNaN(h)?f:h,u.x1=u.relative?l-s:2*l-s,
|
||
|
|
`},Dt=function(o){return 48<=o.charCodeAt(0)&&o.charCodeAt(0)<=57},Ie=(function(o){function t(){var e=o.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 Kt(t,o),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 i=this;r===void 0&&(r=[]);for(var a=function(f){r.push(f),i.curArgs.length=0,i.canParseCommandOrComma=!0},n=0;n<e.length;n++){var s=e[n],h=!(this.curCommandType!==p.ARC||this.curArgs.length!==3&&this.curArgs.length!==4||this.curNumber.length!==1||this.curNumber!=="0"&&this.curNumber!=="1"),u=Dt(s)&&(this.curNumber==="0"&&s==="0"||h);if(!Dt(s)||u)if(s!=="e"&&s!=="E")if(s!=="-"&&s!=="+"||!this.curNumberHasExp||this.curNumberHasExpDigits)if(s!=="."||this.curNumberHasExp||this.curNumberHasDecimal||h){if(this.curNumber&&this.curCommandType!==-1){var l=Number(this.curNumber);if(isNaN(l))throw new SyntaxError("Invalid number ending at "+n);if(this.curCommandType===p.ARC){if(this.curArgs.length===0||this.curArgs.length===1){if(0>l)throw new SyntaxError('Expected positive number, got "'+l+'" at index "'+n+'"')}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 "'+n+'"')}this.curArgs.push(l),this.curArgs.length===Le[this.curCommandType]&&(p.HORIZ_LINE_TO===this.curCommandType?a({type:p.HORIZ_LINE_TO,relative:this.curCommandRelative,x:l}):p.VERT_LINE_TO===this.curCommandType?a({type:p.VERT_LINE_TO,relative:this.curCommandRelative,y:l}):this.curCommandType===p.MOVE_TO||this.curCommandType===p.LINE_TO||this.curCommandType===p.SMOOTH_QUAD_TO?(a({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),p.MOVE_TO===this.curCommandType&&(this.curCommandType=p.LINE_TO)):this.curCommandType===p.CURVE_TO?a({type:p.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===p.SMOOTH_CURVE_TO?a({type:p.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===p.QUAD_TO?a({type:p.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===p.ARC&&a({type:p.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(!ke(s))if(s===","&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if(s!=="+"&&s!=="-"&&s!==".")if(u)this.curNumber=s,this.curNumberHasDecimal=!1;else{if(this.curArgs.length!==0)throw new SyntaxError("Unterminated command at index "+n+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+s+'" at index '+n+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,s!=="z"&&s!=="Z")if(s==="h"||s==="H")this.curCommandType=p.HORIZ_LINE_TO,this.curCommandRelative=s==="h";else if(s==="v"||s==="V")this.curCommandType=p.VERT_LINE_TO,this.curCommandRelative=s==="v";else if(s==="m"||s==="M")this.curCommandType=p.MOVE_TO,this.curCommandRelative=s==="m";else if(s==="l"||s==="L")this.curCommandType=p.LINE_TO,this.curCommandRelative=s==="l";else if(s==="c"||s==="C")this.curCommandType=p.CURVE_TO,this.curCommandRelative=s==="c";else if(s==="s"||s==="S")this.curCommandType=p.SMOOTH_CURVE_TO,this.curCommandRelative=s==="s";else if(s==="q"||s==="Q")this.curCommandType=p.QUAD_TO,this.curCommandRelative=s==="q";else if(s==="t"||s==="T")this.curCommandType=p.SMO
|