diff --git a/container/context/dist/index.html b/container/context/dist/index.html index 4a1e2de4..a4edcbf2 100644 --- a/container/context/dist/index.html +++ b/container/context/dist/index.html @@ -1 +1 @@ -Eurynome Cloud
\ No newline at end of file +Eurynome Cloud
\ No newline at end of file diff --git a/container/context/dist/static/js/app.72095ddb.js b/container/context/dist/static/js/app.670f5de6.js similarity index 100% rename from container/context/dist/static/js/app.72095ddb.js rename to container/context/dist/static/js/app.670f5de6.js diff --git a/container/context/dist/static/js/app.72095ddb.js.gz b/container/context/dist/static/js/app.670f5de6.js.gz similarity index 100% rename from container/context/dist/static/js/app.72095ddb.js.gz rename to container/context/dist/static/js/app.670f5de6.js.gz diff --git a/container/context/dist/static/js/npm.axios.0ee4a4d5.js b/container/context/dist/static/js/npm.axios.0ee4a4d5.js new file mode 100644 index 00000000..b817c665 --- /dev/null +++ b/container/context/dist/static/js/npm.axios.0ee4a4d5.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([["npm.axios"],{"0c1b":function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},"212b":function(e,t,n){"use strict";var r=n("4aad"),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,s={};return e?(r.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(s[t]&&o.indexOf(t)>=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([n]):s[t]?s[t]+", "+n:n}})),s):s}},"22ee":function(e,t,n){"use strict";var r=n("4aad"),o=n("907d"),i=n("8c39"),s=n("93fc"),a=n("e66e");function u(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new a("canceled")}e.exports=function(e){return u(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||s.adapter)(e).then((function(t){return u(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(u(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},2602:function(e,t,n){"use strict";var r=n("4aad"),o=n("aae6"),i=n("566b"),s=n("b68e"),a=n("905b"),u=n("212b"),c=n("4da7"),f=n("6e6b"),l=n("93fc"),p=n("e66e");e.exports=function(e){return new Promise((function(t,n){var d,h=e.data,m=e.headers,v=e.responseType;function b(){e.cancelToken&&e.cancelToken.unsubscribe(d),e.signal&&e.signal.removeEventListener("abort",d)}r.isFormData(h)&&delete m["Content-Type"];var g=new XMLHttpRequest;if(e.auth){var y=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";m.Authorization="Basic "+btoa(y+":"+w)}var x=a(e.baseURL,e.url);function E(){if(g){var r="getAllResponseHeaders"in g?u(g.getAllResponseHeaders()):null,i={data:v&&"text"!==v&&"json"!==v?g.response:g.responseText,status:g.status,statusText:g.statusText,headers:r,config:e,request:g};o((function(e){t(e),b()}),(function(e){n(e),b()}),i),g=null}}if(g.open(e.method.toUpperCase(),s(x,e.params,e.paramsSerializer),!0),g.timeout=e.timeout,"onloadend"in g?g.onloadend=E:g.onreadystatechange=function(){g&&4===g.readyState&&(0!==g.status||g.responseURL&&0===g.responseURL.indexOf("file:"))&&setTimeout(E)},g.onabort=function(){g&&(n(f("Request aborted",e,"ECONNABORTED",g)),g=null)},g.onerror=function(){n(f("Network Error",e,null,g)),g=null},g.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||l.transitional;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(f(t,e,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",g)),g=null},r.isStandardBrowserEnv()){var S=(e.withCredentials||c(x))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;S&&(m[e.xsrfHeaderName]=S)}"setRequestHeader"in g&&r.forEach(m,(function(e,t){void 0===h&&"content-type"===t.toLowerCase()?delete m[t]:g.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(g.withCredentials=!!e.withCredentials),v&&"json"!==v&&(g.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&g.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&g.upload&&g.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(d=function(e){g&&(n(!e||e&&e.type?new p("canceled"):e),g.abort(),g=null)},e.cancelToken&&e.cancelToken.subscribe(d),e.signal&&(e.signal.aborted?d():e.signal.addEventListener("abort",d))),h||(h=null),g.send(h)}))}},"27f7":function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},"2e65":function(e,t,n){"use strict";var r=n("e66e");function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t0;){var i=r[o],s=t[i];if(s){var a=e[i],u=void 0===a||s(a,i,e);if(!0!==u)throw new TypeError("option "+i+" must be "+u)}else if(!0!==n)throw Error("Unknown option "+i)}},validators:o}},"48a3":function(e,t,n){"use strict";var r=n("4aad"),o=n("b68e"),i=n("a430"),s=n("22ee"),a=n("7802"),u=n("47b2"),c=u.validators;function f(e){this.defaults=e,this.interceptors={request:new i,response:new i}}f.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=a(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&u.assertOptions(n,{silentJSONParsing:c.transitional(c.boolean),forcedJSONParsing:c.transitional(c.boolean),clarifyTimeoutError:c.transitional(c.boolean)},!1);var r=[],o=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var i,f=[];if(this.interceptors.response.forEach((function(e){f.push(e.fulfilled,e.rejected)})),!o){var l=[s,void 0];for(Array.prototype.unshift.apply(l,r),l=l.concat(f),i=Promise.resolve(t);l.length;)i=i.then(l.shift(),l.shift());return i}for(var p=t;r.length;){var d=r.shift(),h=r.shift();try{p=d(p)}catch(e){h(e);break}}try{i=s(p)}catch(e){return Promise.reject(e)}for(;f.length;)i=i.then(f.shift(),f.shift());return i},f.prototype.getUri=function(e){return e=a(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){f.prototype[e]=function(t,n){return this.request(a(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){f.prototype[e]=function(t,n,r){return this.request(a(r||{},{method:e,url:t,data:n}))}})),e.exports=f},"4aad":function(e,t,n){"use strict";var r=n("e685"),o=Object.prototype.toString;function i(e){return Array.isArray(e)}function s(e){return void 0===e}function a(e){return"[object ArrayBuffer]"===o.call(e)}function u(e){return null!==e&&"object"==typeof e}function c(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function f(e){return"[object Function]"===o.call(e)}function l(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){c.headers[e]=r.merge(s)})),e.exports=c}).call(this,n("ec9d"))},a430:function(e,t,n){"use strict";var r=n("4aad");function o(){this.handlers=[]}o.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},aae6:function(e,t,n){"use strict";var r=n("6e6b");e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},b68e:function(e,t,n){"use strict";var r=n("4aad");function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var s=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),s.push(o(t)+"="+o(e))})))})),i=s.join("&")}if(i){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},ca3d:function(e,t,n){"use strict";var r=n("4aad");e.exports=function(e){return r.isObject(e)&&!0===e.isAxiosError}},e66e:function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},e685:function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([n]):s[t]?s[t]+", "+n:n}})),s):s}},"22ee":function(e,t,n){"use strict";var r=n("4aad"),o=n("907d"),i=n("8c39"),s=n("93fc"),a=n("e66e");function u(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new a("canceled")}e.exports=function(e){return u(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||s.adapter)(e).then((function(t){return u(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(u(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},2602:function(e,t,n){"use strict";var r=n("4aad"),o=n("aae6"),i=n("566b"),s=n("b68e"),a=n("905b"),u=n("212b"),c=n("4da7"),f=n("6e6b"),l=n("93fc"),p=n("e66e");e.exports=function(e){return new Promise((function(t,n){var d,h=e.data,m=e.headers,v=e.responseType;function g(){e.cancelToken&&e.cancelToken.unsubscribe(d),e.signal&&e.signal.removeEventListener("abort",d)}r.isFormData(h)&&delete m["Content-Type"];var b=new XMLHttpRequest;if(e.auth){var y=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";m.Authorization="Basic "+btoa(y+":"+w)}var x=a(e.baseURL,e.url);function E(){if(b){var r="getAllResponseHeaders"in b?u(b.getAllResponseHeaders()):null,i={data:v&&"text"!==v&&"json"!==v?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:r,config:e,request:b};o((function(e){t(e),g()}),(function(e){n(e),g()}),i),b=null}}if(b.open(e.method.toUpperCase(),s(x,e.params,e.paramsSerializer),!0),b.timeout=e.timeout,"onloadend"in b?b.onloadend=E:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(E)},b.onabort=function(){b&&(n(f("Request aborted",e,"ECONNABORTED",b)),b=null)},b.onerror=function(){n(f("Network Error",e,null,b)),b=null},b.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||l.transitional;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(f(t,e,r.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",b)),b=null},r.isStandardBrowserEnv()){var S=(e.withCredentials||c(x))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;S&&(m[e.xsrfHeaderName]=S)}"setRequestHeader"in b&&r.forEach(m,(function(e,t){void 0===h&&"content-type"===t.toLowerCase()?delete m[t]:b.setRequestHeader(t,e)})),r.isUndefined(e.withCredentials)||(b.withCredentials=!!e.withCredentials),v&&"json"!==v&&(b.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&b.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&b.upload&&b.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(d=function(e){b&&(n(!e||e&&e.type?new p("canceled"):e),b.abort(),b=null)},e.cancelToken&&e.cancelToken.subscribe(d),e.signal&&(e.signal.aborted?d():e.signal.addEventListener("abort",d))),h||(h=null),b.send(h)}))}},"27f7":function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},"2e65":function(e,t,n){"use strict";var r=n("e66e");function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;this.promise.then((function(e){if(n._listeners){var t,r=n._listeners.length;for(t=0;t0;){var i=r[o],s=t[i];if(s){var a=e[i],u=void 0===a||s(a,i,e);if(!0!==u)throw new TypeError("option "+i+" must be "+u)}else if(!0!==n)throw Error("Unknown option "+i)}},validators:o}},"48a3":function(e,t,n){"use strict";var r=n("4aad"),o=n("b68e"),i=n("a430"),s=n("22ee"),a=n("7802"),u=n("47b2"),c=u.validators;function f(e){this.defaults=e,this.interceptors={request:new i,response:new i}}f.prototype.request=function(e,t){if("string"==typeof e?(t=t||{}).url=e:t=e||{},!t.url)throw new Error("Provided config url is not valid");(t=a(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&u.assertOptions(n,{silentJSONParsing:c.transitional(c.boolean),forcedJSONParsing:c.transitional(c.boolean),clarifyTimeoutError:c.transitional(c.boolean)},!1);var r=[],o=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,r.unshift(e.fulfilled,e.rejected))}));var i,f=[];if(this.interceptors.response.forEach((function(e){f.push(e.fulfilled,e.rejected)})),!o){var l=[s,void 0];for(Array.prototype.unshift.apply(l,r),l=l.concat(f),i=Promise.resolve(t);l.length;)i=i.then(l.shift(),l.shift());return i}for(var p=t;r.length;){var d=r.shift(),h=r.shift();try{p=d(p)}catch(e){h(e);break}}try{i=s(p)}catch(e){return Promise.reject(e)}for(;f.length;)i=i.then(f.shift(),f.shift());return i},f.prototype.getUri=function(e){if(!e.url)throw new Error("Provided config url is not valid");return e=a(this.defaults,e),o(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(e){f.prototype[e]=function(t,n){return this.request(a(n||{},{method:e,url:t,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(e){f.prototype[e]=function(t,n,r){return this.request(a(r||{},{method:e,url:t,data:n}))}})),e.exports=f},"4aad":function(e,t,n){"use strict";var r=n("e685"),o=Object.prototype.toString;function i(e){return Array.isArray(e)}function s(e){return void 0===e}function a(e){return"[object ArrayBuffer]"===o.call(e)}function u(e){return null!==e&&"object"==typeof e}function c(e){if("[object Object]"!==o.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function f(e){return"[object Function]"===o.call(e)}function l(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),i(e))for(var n=0,r=e.length;n=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){c.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){c.headers[e]=r.merge(s)})),e.exports=c}).call(this,n("ec9d"))},a430:function(e,t,n){"use strict";var r=n("4aad");function o(){this.handlers=[]}o.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},aae6:function(e,t,n){"use strict";var r=n("6e6b");e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},b68e:function(e,t,n){"use strict";var r=n("4aad");function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var s=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),s.push(o(t)+"="+o(e))})))})),i=s.join("&")}if(i){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},ca3d:function(e,t,n){"use strict";var r=n("4aad");e.exports=function(e){return r.isObject(e)&&!0===e.isAxiosError}},e66e:function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},e685:function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r ${e}`)}function c(t,e){return t===s?e:t}class a{constructor(t,e,{start:n,cancel:i,complete:o,destroy:s,fail:r,terminate:a,compensable:l}={}){this.name=t,this.traits=e,this._start=c(n,this),this._compensable=c(l,this),this._cancel=c(i,this),this._complete=c(o,this),this._destroy=c(s,this),this._fail=c(r,this),this._terminate=c(a,this)}hasTrait(t){return 0!=(this.traits&t)}complete(){return this._complete||r(this,"complete")}destroy(){return this._destroy||r(this,"destroy")}cancel(){return this._cancel||r(this,"cancel")}fail(){return this._fail||r(this,"fail")}terminate(){return this._terminate||r(this,"terminate")}compensable(){return this._compensable||r(this,"compensable")}start(){return this._start||r(this,"start")}}const l=new a("failed",o.DESTROYED|o.FAILED),p=new a("terminated",o.DESTROYED|o.TERMINATED),h=new a("completed",o.DESTROYED|o.COMPLETED),u=new a("terminating",o.ENDING|o.TERMINATED,{destroy:p}),m=new a("canceling",o.ENDING|o.FAILED|o.CANCELED,{destroy:l,complete:s,terminate:u}),d=new a("completing",o.ENDING|o.COMPLETED,{destroy:h,cancel:m,terminate:u}),f=new a("failing",o.ENDING|o.FAILED,{cancel:m,complete:d,destroy:l,terminate:u}),v=new a("compensable:failing",o.ENDING|o.FAILED,{complete:s,terminate:u,destroy:l}),g=new a("compensable:completed",o.ENDED|o.COMPLETED,{cancel:m,fail:v,destroy:h,compensable:s}),_=new a("compensable:completing",o.ENDING|o.COMPLETED,{destroy:g,terminate:u,compensable:s}),y=new a("compensable:running",o.RUNNING|o.COMPENSABLE,{cancel:m,complete:_,compensable:s,destroy:g,fail:f,terminate:u}),b=new a("running",o.RUNNING,{cancel:m,complete:d,compensable:y,destroy:p,fail:f,terminate:u}),w=new a("activated",o.ACTIVATED,{start:b,destroy:p}),S=Object.freeze({ACTIVATED:w,RUNNING:b,CANCELING:m,COMPLETING:d,COMPLETED:h,FAILING:f,FAILED:l,TERMINATING:u,TERMINATED:p});class E{constructor(t,e,n=null,i=null){this.id=t,this.element=e,this.parent=n,this.initiator=i,this.subscriptions=new Set,this.children=[],this.state=S.ACTIVATED}get running(){return this.hasTrait(o.RUNNING)}get destroyed(){return this.hasTrait(o.DESTROYED)}get completed(){return this.hasTrait(o.COMPLETED)}get canceled(){return this.hasTrait(o.CANCELED)}get failed(){return this.hasTrait(o.FAILED)}hasTrait(t){return this.state.hasTrait(t)}start(){return this.state=this.state.start(),this}compensable(){return this.state=this.state.compensable(),this}fail(t){return this.failed||(this.state=this.state.fail(),this.failInitiator=t),this}cancel(t){return this.canceled||(this.state=this.state.cancel(),this.cancelInitiator=t),this}terminate(t){return this.state=this.state.terminate(),this.terminateInitiator=t,this}complete(){return this.state=this.state.complete(),this}destroy(t){return this.state=this.state.destroy(),this.destroyInitiator=t,this}getTokens(){return this.children.filter(t=>!t.destroyed).length}getTokensByElement(t){return this.children.filter(e=>!e.destroyed&&e.element===t).length}}function C(t,e){const n=[];for(const i of t)e(i)&&n.push(i);return n}function x(t,e){for(const n of t)if(e(n))return n;return null}function B(t,e){return["type","name","ref","iref"].every(n=>!(n in t)||t[n]===e[n])}var j=n("979a");var O=Object.prototype.toString,T=Object.prototype.hasOwnProperty;function k(t){return void 0===t}function F(t){return"[object Array]"===O.call(t)}function $(t){var e=O.call(t);return"[object Function]"===e||"[object AsyncFunction]"===e||"[object GeneratorFunction]"===e||"[object AsyncGeneratorFunction]"===e||"[object Proxy]"===e}function A(t,e){return T.call(t,e)}function P(t,e){var n;return e=M(e),I(t,(function(t,i){if(e(t,i))return n=t,!1})),n}function I(t,e){var n;if(!k(t)){var i=F(t)?N:D;for(var o in t)if(A(t,o)&&!1===e(n=t[o],i(o)))return n}}function L(t,e){return!!P(t,e)}function M(t){return $(t)?t:function(e){return e===t}}function D(t){return t}function N(t){return Number(t)}function R(t){return t.filter(t=>Object(j.is)(t,"bpmn:SequenceFlow"))}function z(t){return Object(j.is)(t,"bpmn:MessageFlow")}function G(t){return Object(j.is)(t,"bpmn:SequenceFlow")}function q(t){return V(t)&&Q(t,"bpmn:CompensateEventDefinition")}function H(t){return Object(j.is)(t,"bpmn:Activity")&&t.businessObject.isForCompensation}function V(t){return Object(j.is)(t,"bpmn:CatchEvent")&&!W(t)}function Y(t){return Object(j.is)(t,"bpmn:BoundaryEvent")&&!W(t)}function U(t){return Object(j.is)(t,"bpmn:StartEvent")&&!W(t)}function W(t){return!!t.labelTarget}function Z(t){return Object(j.getBusinessObject)(t).triggeredByEvent}function J(t){return Object(j.is)(t,"bpmn:StartEvent")&&Object(j.getBusinessObject)(t).isInterrupting||Object(j.is)(t,"bpmn:BoundaryEvent")&&Object(j.getBusinessObject)(t).cancelActivity}function K(t,e){return e.some(e=>Object(j.is)(t,e))}function Q(t,e){return L(Object(j.getBusinessObject)(t).eventDefinitions,t=>Object(j.is)(t,e))}function X(t,e,n){const s=t.get("scopeIds",!1)||new i.default([32,36]),r={},c={},a=new tt,l=new Set,p=[],h=new Set,u=new Set;function m(t,e){if(p.push([e,t]),1!==p.length)return;let n;for(;n=p[0];){const[t,e]=n;e.destroyed||t(),p.shift()}$("tick")}function d(t){return c[t.type]||a}function f(t){const{element:e,parentScope:n,initiator:i=null}=t,o=t.scope||L({element:e,parent:n,initiator:i});return m(o,(function(){o.running||o.start(),T("signal",{...t,scope:o}),d(e).signal({...t,scope:o}),o.parent&&F(o.parent)})),o}function v(t){const{event:e,initiator:n,scope:i}=t,o=y(e),s=i.subscriptions,r=C(s,t=>B(o,t.event)),c=r.filter(t=>!t.event.interrupting),a=r.filter(t=>t.event.interrupting);if(!a.length)return c.map(t=>t.triggerFn(n)).flat();const l=a.find(t=>!t.event.boundary)||a[0],p=C(s,t=>t.event.persistent||function(t,e){return t.type===e.type&&t.boundary&&!e.boundary}(t.event,l.event));return s.forEach(t=>{p.includes(t)||t.remove()}),[l.triggerFn(n)].flat().filter(t=>t)}function g(t,e,n){const i=(e=y(e)).element,o={scope:t,event:e,element:i,triggerFn:n,remove(){_(o)}};return u.add(o),t.subscriptions.add(o),i&&k(i),o}function _(t){const{scope:e,event:n}=t;u.delete(t),e.subscriptions.delete(t),n.element&&k(n.element)}function y(t){if(!t.businessObject)return t;const e=J(t),i=Y(t),o=function(t){return Object(j.is)(t,"bpmn:StartEvent")||Object(j.is)(t,"bpmn:IntermediateCatchEvent")||Object(j.is)(t,"bpmn:ReceiveTask")?Object(j.getBusinessObject)(t).name||t.id:null}(t),s={element:t,interrupting:e,boundary:i,...o?{iref:o}:{}},r=(t.businessObject.eventDefinitions||{})[0];if(!r)return{...s,type:et(t)?"message":"none"};if(Object(j.is)(r,"bpmn:LinkEventDefinition"))return{...s,type:"link",name:r.name};if(Object(j.is)(r,"bpmn:SignalEventDefinition"))return{...s,type:"signal",ref:r.signalRef};if(Object(j.is)(r,"bpmn:TimerEventDefinition"))return{...s,type:"timer"};if(Object(j.is)(r,"bpmn:ConditionalEventDefinition"))return{...s,type:"condition"};if(Object(j.is)(r,"bpmn:EscalationEventDefinition"))return{...s,type:"escalation",ref:r.escalationRef};if(Object(j.is)(r,"bpmn:CancelEventDefinition"))return{...s,type:"cancel"};if(Object(j.is)(r,"bpmn:ErrorEventDefinition"))return{...s,type:"error",ref:r.errorRef};if(Object(j.is)(r,"bpmn:MessageEventDefinition"))return{...s,type:"message",ref:r.messageRef};if(Object(j.is)(r,"bpmn:CompensateEventDefinition")){let e=r.activityRef&&n.get(r.activityRef.id);return e||(e=U(t)&&Z(t.parent)?t.parent.parent:Y(t)?t.host:t.parent),{...s,type:"compensate",ref:e,persistent:!0}}throw new Error("unknown event definition",r)}function b(t,e=!0){const{element:n,parent:i,initiator:o}=t;e&&T("createScope",{element:n,scope:i});const r=new E(s.next(),n,i,o);return i&&i.children.push(r),h.add(r),e&&$("createScope",{scope:r}),k(n),i&&k(i.element),r}function w(t){if("function"==typeof t)return t;const{event:e,element:n,scope:i}=t,o=t.elements||n&&[n],s=e&&y(e);return t=>(!s||B(s,t.event))&&(!o||o.includes(t.element))&&(!i||i===t.scope)}function S(t){if("function"==typeof t)return t;const{element:e,waitsOnElement:n,parent:i,trait:s=o.RUNNING,subscribedTo:r}=t,c=r?function(t){const e="function"===t?t:w(t);return t=>Array.from(t.subscriptions).some(e)}(r):()=>!0;return t=>(!e||t.element===e)&&(!i||t.parent===i)&&(!n||t.getTokensByElement(n)>0)&&t.hasTrait(s)&&c(t)}function O(t,e=null){if(!t.destroyed){t.destroy(e);for(const e of t.subscriptions){const n=e.event.traits||o.ACTIVE;t.hasTrait(n)||_(e)}if(t.destroyed){for(const n of t.children)n.destroyed||O(n,e);T("destroyScope",{element:t.element,scope:t}),h.delete(t),$("destroyScope",{scope:t})}k(t.element),t.parent&&k(t.parent.element)}}function T(t,e){$("trace",{...e,action:t})}function k(t){l.add(t),p.length||$("tick")}function F(t){$("scopeChanged",{scope:t})}function $(t,n={}){return e.fire("tokenSimulation.simulator."+t,n)}function A(t,n){e.on("tokenSimulation.simulator."+t,n)}function P(t,n){e.off("tokenSimulation.simulator."+t,n)}function I(t,e){const n=M(t);r[t.id||t]={...n,...e},k(t)}function L(t){const{element:e}=t,n=b(t),{children:i=[],attachers:o=[]}=e;for(const t of i)if(Z(t)){const e=t.children.filter(t=>U(t)&&!q(t));for(const i of e)g(n,i,e=>f({element:t,parentScope:n,startEvent:i,initiator:e}))}for(const t of o)Y(t)&&!q(t)&&g(n,t,e=>f({element:t,parentScope:n.parent,hostScope:n,initiator:e}));return n}function M(t){return r[t.id||t]||{}}A("tick",(function(){for(const t of l)$("elementChanged",{element:t});l.clear()})),this.createScope=b,this.destroyScope=O,this.findScope=function(t){return x(h,S(t))},this.findScopes=function(t){return C(h,S(t))},this.findSubscription=function(t){return x(u,w(t))},this.findSubscriptions=function(t){return C(u,w(t))},this.waitAtElement=function(t,e=!0){I(t,{wait:e})},this.waitForScopes=function(t,e){if(!e.length)return;const n={type:"all-completed",persistent:!1},i=new Set(e),o=e=>{i.delete(e.scope),0===i.size&&(P("destroyScope",o),v({scope:t,event:n}))};return A("destroyScope",o),n},this.setConfig=I,this.getConfig=M,this.signal=f,this.enter=function(t){const{element:e,scope:n,initiator:i=n}=t,o=L({element:e,parent:n,initiator:i});return m(o,(function(){o.running||o.start(),T("enter",t),d(e).enter({...t,initiator:i,scope:o}),F(n)})),o},this.exit=function(t){const{element:e,scope:n,initiator:i=n}=t;m(n,(function(){T("exit",t),d(e).exit({...t,initiator:i}),n.running&&n.complete(),O(n,i),n.parent&&F(n.parent)}))},this.subscribe=g,this.trigger=v,this.reset=function(){for(const t of h)O(t);for(const t of function(){const t=[];return n.forEach(e=>{if(!K(e,["bpmn:Process","bpmn:Participant"]))return;const n=b({element:e},!1);t.push(n);const i=e.children.filter(U);for(const t of i){g(n,{...y(t),interrupting:!1},n=>f({element:e,startEvent:t,initiator:n}))}}),t}())h.add(t);$("tick"),$("reset")},this.on=A,this.off=P,this.registerBehavior=function(t,e){c[t]=e}}function tt(){this.signal=function(t){console.log("ignored #exit",t.element)},this.exit=function(t){console.log("ignored #exit",t.element)},this.enter=function(t){console.log("ignored #enter",t.element)}}function et(t){return Object(j.is)(t,"bpmn:ReceiveTask")||t.incoming.some(t=>Object(j.is)(t,"bpmn:MessageFlow"))}function nt(t,e){this._simulator=t,this._activityBehavior=e,t.registerBehavior("bpmn:StartEvent",this)}function it(t,e,n){this._intermediateThrowEventBehavior=n,this._scopeBehavior=e,t.registerBehavior("bpmn:EndEvent",this)}function ot(t,e,n){this._simulator=t,this._activityBehavior=e,this._scopeBehavior=n,t.registerBehavior("bpmn:BoundaryEvent",this)}function st(t,e){this._activityBehavior=e,this._simulator=t,t.registerBehavior("bpmn:IntermediateCatchEvent",this),t.registerBehavior("bpmn:ReceiveTask",this)}function rt(t,e,n){this._simulator=t,this._activityBehavior=e,this._eventBehaviors=n,t.registerBehavior("bpmn:IntermediateThrowEvent",this)}function ct(t){this._simulator=t,t.registerBehavior("bpmn:ExclusiveGateway",this)}function at(t,e){this._simulator=t,this._activityBehavior=e,t.registerBehavior("bpmn:ParallelGateway",this)}function lt(t){this._simulator=t,t.registerBehavior("bpmn:EventBasedGateway",this)}function pt(t,e,n){this._simulator=t,this._scopeBehavior=e,this._transactionBehavior=n;const i=["bpmn:BusinessRuleTask","bpmn:CallActivity","bpmn:ManualTask","bpmn:ScriptTask","bpmn:SendTask","bpmn:ServiceTask","bpmn:Task","bpmn:UserTask"];for(const e of i)t.registerBehavior(e,this)}function ht(t,e,n,i){this._simulator=t,this._activityBehavior=e,this._scopeBehavior=n,this._transactionBehavior=i,t.registerBehavior("bpmn:SubProcess",this),t.registerBehavior("bpmn:Transaction",this),t.registerBehavior("bpmn:AdHocSubProcess",this)}X.$inject=["injector","eventBus","elementRegistry"],nt.prototype.signal=function(t){this._simulator.exit(t)},nt.prototype.exit=function(t){this._activityBehavior.exit(t)},nt.$inject=["simulator","activityBehavior"],it.$inject=["simulator","scopeBehavior","intermediateThrowEventBehavior"],it.prototype.enter=function(t){this._intermediateThrowEventBehavior.enter(t)},it.prototype.signal=function(t){this._intermediateThrowEventBehavior.signal(t)},it.prototype.exit=function(t){const{scope:e}=t;this._scopeBehavior.tryExit(e.parent,e)},ot.prototype.signal=function(t){const{element:e,scope:n,hostScope:i=this._simulator.findScope({parent:n.parent,element:e.host})}=t;if(!i)throw new Error("host scope not found");if(Object(j.getBusinessObject)(e).cancelActivity){this._scopeBehavior.interrupt(i,n);const e=this._scopeBehavior.tryExit(i,n);if(e){const n=this._simulator.subscribe(i,e,e=>(n.remove(),this._simulator.exit(t)));return}}this._simulator.exit(t)},ot.prototype.exit=function(t){this._activityBehavior.exit(t)},ot.$inject=["simulator","activityBehavior","scopeBehavior"],st.$inject=["simulator","activityBehavior"],st.prototype.signal=function(t){const{element:e}=t;return Object(j.is)(e,"bpmn:ReceiveTask")?this._activityBehavior.signal(t):this._simulator.exit(t)},st.prototype.enter=function(t){const{element:e}=t;if(Object(j.is)(e,"bpmn:ReceiveTask")){const e=this._activityBehavior._triggerMessages(t);if(e)return this._activityBehavior.signalOnEvent(t,e)}return this._activityBehavior.signalOnEvent(t,e)},st.prototype.exit=function(t){this._activityBehavior.exit(t)},rt.prototype.enter=function(t){const{element:e}=t,n=this._eventBehaviors.get(e);if(n){const e=n(t);if(e)return this._activityBehavior.signalOnEvent(t,e)}this._activityBehavior.enter(t)},rt.prototype.signal=function(t){this._activityBehavior.signal(t)},rt.prototype.exit=function(t){this._activityBehavior.exit(t)},rt.$inject=["simulator","activityBehavior","eventBehaviors"],ct.prototype.enter=function(t){this._simulator.exit(t)},ct.prototype.exit=function(t){const{element:e,scope:n}=t,i=R(e.outgoing);if(1===i.length)return this._simulator.enter({element:i[0],scope:n.parent});const{activeOutgoing:o}=this._simulator.getConfig(e),s=i.find(t=>t===o);if(!s)throw new Error("no outgoing configured");return this._simulator.enter({element:s,scope:n.parent})},ct.$inject=["simulator"],at.prototype.enter=function(t){const{scope:e,element:n}=t,i=R(n.incoming),{parent:o}=e,s=this._simulator.findScopes({parent:o,element:n});if(s.length===i.length){for(const t of s)t!==e&&this._simulator.destroyScope(t.complete(),e);this._simulator.exit(t)}},at.prototype.exit=function(t){this._activityBehavior.exit(t)},at.$inject=["simulator","activityBehavior"],lt.$inject=["simulator"],lt.prototype.enter=function(t){const{element:e,scope:n}=t,i=n.parent,o=function(t){return t.outgoing.map(t=>t.target).filter(t=>K(t,["bpmn:IntermediateCatchEvent","bpmn:ReceiveTask"]))}(e).map(t=>this._simulator.subscribe(i,t,e=>(o.forEach(t=>t.remove()),this._simulator.destroyScope(n,e),this._simulator.signal({element:t,parentScope:i,initiator:e}))))},pt.$inject=["simulator","scopeBehavior","transactionBehavior"],pt.prototype.signal=function(t){const e=this._triggerMessages(t);if(e)return this.signalOnEvent(t,e);this._simulator.exit(t)},pt.prototype.enter=function(t){const{element:e}=t,n=this.waitAtElement(e);if(n)return this.signalOnEvent(t,n);const i=this._triggerMessages(t);if(i)return this.signalOnEvent(t,i);this._simulator.exit(t)},pt.prototype.exit=function(t){const{element:e,scope:n}=t,i=n.parent,o=!n.failed;o&&!Z(e)&&this._transactionBehavior.registerCompensation(n);const s=o?e.outgoing.filter(G):[];s.forEach(t=>this._simulator.enter({element:t,scope:i})),0===s.length&&this._scopeBehavior.tryExit(i,n)},pt.prototype.signalOnEvent=function(t,e){const{scope:n,element:i}=t,o=this._simulator.subscribe(n,e,t=>(o.remove(),this._simulator.signal({scope:n,element:i,initiator:t})))},pt.prototype.waitAtElement=function(t){return this._simulator.getConfig(t).wait&&{element:t,type:"continue",interrupting:!1,boundary:!1}},pt.prototype._getMessageContexts=function(t,e=null){const n=e?t=>t.referencePoint.x>e.x:()=>!0;return[...t.incoming.filter(z).map(t=>{return{incoming:t,referencePoint:(e=t.waypoints,e&&e[e.length-1])};var e}),...t.outgoing.filter(z).map(t=>{return{outgoing:t,referencePoint:(e=t.waypoints,e&&e[0])};var e})].sort((t,e)=>t.referencePoint.x-e.referencePoint.x).filter(n)},pt.prototype._triggerMessages=function(t){const{element:e,initiator:n,scope:i}=t;let o=i.messageContexts;o||(o=i.messageContexts=this._getMessageContexts(e));const s=n&&n.element;if(z(s)&&i.expectedIncoming!==s)console.debug("Simulator :: ActivityBehavior :: ignoring out-of-bounds message");else for(;o.length;){const{incoming:t,outgoing:s}=o.shift();if(t){if(!n)continue;return i.expectedIncoming=t,{element:e,type:"message",name:t.id,interrupting:!1,boundary:!1}}this._simulator.signal({element:s})}},ht.$inject=["simulator","activityBehavior","scopeBehavior","transactionBehavior"],ht.prototype.signal=function(t){this._start(t)},ht.prototype.enter=function(t){const{element:e}=t,n=this._activityBehavior.waitAtElement(e);if(n)return this._activityBehavior.signalOnEvent(t,n);this._start(t)},ht.prototype.exit=function(t){const{scope:e}=t,n=e.parent;n.failInitiator===e&&n.complete(),this._activityBehavior.exit(t)},ht.prototype._start=function(t){const{element:e,startEvent:n,scope:i}=t,o=i.parent;if(Z(e)){if(!n)throw new Error("missing : required for event sub-process")}else if(n)throw new Error("unexpected : not allowed for sub-process");if(o.destroyed)throw new Error(`target scope <${o.id}> destroyed`);(function(t){return Object(j.is)(t,"bpmn:Transaction")})(e)&&this._transactionBehavior.setup(t),n&&J(n)&&this._scopeBehavior.interrupt(o,i);const s=n?[n]:function(t){return t.children.filter(t=>{if(W(t))return!1;return!t.incoming.find(t=>Object(j.is)(t,"bpmn:SequenceFlow"))&&(!H(t)&&(!Z(t)&&K(t,["bpmn:Activity","bpmn:StartEvent","bpmn:EndEvent"])))})}(e);for(const t of s)this._simulator.signal({element:t,parentScope:i,initiator:i})};const ut={type:"cancel",interrupting:!0,boundary:!1,persistent:!0};function mt(t,e){this._simulator=t,this._scopeBehavior=e}function dt(t,e){this._simulator=t,this._scopeBehavior=e,t.registerBehavior("bpmn:SequenceFlow",this)}function ft(t){this._simulator=t,t.registerBehavior("bpmn:MessageFlow",this)}function vt(t,e){return"label"!==t.type&&(Array.isArray(e)||(e=[e]),e.some((function(e){return Object(j.is)(t,e)})))}function gt(t,e){return L(Object(j.getBusinessObject)(t).eventDefinitions,t=>vt(t,e))}function _t(t,e,n){this._simulator=t,this._elementRegistry=e,this._scopeBehavior=n}function yt(t){return e=t,n="bpmn:LinkEventDefinition",P(Object(j.getBusinessObject)(e).eventDefinitions,t=>vt(t,n));var e,n}function bt(t){for(;Z(t.parent.element);)t=t.parent;return t.parent}mt.$inject=["simulator","scopeBehavior"],mt.prototype.setup=function(t){const{scope:e}=t,n=this._simulator.subscribe(e,ut,t=>(n.remove(),this.cancel({scope:e,initiator:t}))),i={type:"compensate",ref:e.element,persistent:!0,traits:o.NOT_DEAD},s=this._simulator.subscribe(e,i,t=>e.canceled?(s.remove(),this.compensate({scope:e,element:e.element,initiator:t})):this._simulator.trigger({event:ut,scope:e}))},mt.prototype.cancel=function(t){const{scope:e,initiator:n}=t;if(!e.destroyed)return e.cancel(n),this._simulator.trigger({event:{type:"compensate",ref:e.element},initiator:n,scope:e}),this._simulator.trigger({scope:e,initiator:n,event:ut})},mt.prototype.registerCompensation=function(t){const{element:e}=t,n=e.children.filter(Z).map(t=>t.children.find(t=>U(t)&&q(t))).filter(t=>t),i=e.attachers.filter(q);if(!n.length&&!i.length)return;const s=this.findTransactionScope(t.parent);Object(j.is)(s.element,"bpmn:Transaction")||this.makeCompensable(s);for(const i of n){const n={element:i,type:"compensate",persistent:!0,interrupting:!0,ref:e,traits:o.NOT_DEAD},s=i.parent,r=this._simulator.subscribe(t,n,e=>(r.remove(),this._simulator.signal({initiator:e,element:s,startEvent:i,parentScope:t})))}for(const t of i){const n={element:t,type:"compensate",persistent:!0,ref:e,traits:o.NOT_DEAD},i=t.outgoing.map(t=>t.target).find(H);if(!i)continue;const r=this._simulator.subscribe(s,n,t=>(r.remove(),this._simulator.enter({initiator:t,element:i,scope:s})))}},mt.prototype.makeCompensable=function(t){if(t.hasTrait(o.COMPENSABLE)||!t.parent)return;const e={type:"compensate",ref:t.element,interrupting:!0,persistent:!0,traits:o.NOT_DEAD};t.compensable();const n=this._simulator.subscribe(t,e,e=>(n.remove(),t.fail(e),this.compensate({scope:t,element:t.element,initiator:e}),this._scopeBehavior.tryExit(t,e),t)),i=t.parent;if(!i)return;const s=this._simulator.subscribe(i,e,n=>(s.remove(),this._simulator.trigger({scope:t,event:e,initiator:n})));this.makeCompensable(i)},mt.prototype.findTransactionScope=function(t){let e=t;for(;e;){const t=e.element;if(Object(j.is)(t,"bpmn:SubProcess")&&!Z(t))return e;if(K(t,["bpmn:Transaction","bpmn:Process","bpmn:Participant"]))return e;e=e.parent}throw function(t){throw new Error(`no transaction context for <${t.id}>`)}(t)},mt.prototype.compensate=function(t){const{scope:e,element:n}=t,i=C(e.subscriptions,t=>B({type:"compensate"},t.event)),o=i.filter(t=>t.event.ref===n),s=i.filter(t=>t.event.ref!==n);for(const t of o)this._scopeBehavior.preExit(e,e=>this._simulator.trigger(t));for(const t of s.reverse())this._scopeBehavior.preExit(e,e=>this._simulator.trigger(t))},dt.prototype.enter=function(t){this._simulator.exit(t)},dt.prototype.exit=function(t){const{element:e,scope:n}=t;this._simulator.enter({element:e.target,scope:n.parent})},dt.$inject=["simulator","scopeBehavior"],ft.$inject=["simulator"],ft.prototype.signal=function(t){this._simulator.exit(t)},ft.prototype.exit=function(t){const{element:e,scope:n}=t,i=e.target,o=V(i)?i:{type:"message",element:e,name:e.id},s=this._simulator.findSubscription({event:o,elements:[i,i.parent]});s&&this._simulator.trigger({event:o,initiator:n,scope:s.scope})},_t.$inject=["simulator","elementRegistry","scopeBehavior"],_t.prototype.get=function(t){const e={"bpmn:LinkEventDefinition":t=>{const{element:e,scope:n}=t,i=yt(e),o=n.parent,s=o.element.children.filter(t=>function(t){return V(t)&&Q(t,"bpmn:LinkEventDefinition")}(t)&&yt(t).name===i.name);for(const t of s)this._simulator.signal({element:t,parentScope:o,initiator:n})},"bpmn:SignalEventDefinition":t=>{const{element:e,scope:n}=t,i=this._simulator.findSubscriptions({event:e}),o=new Set;for(const t of i){const i=t.scope;o.has(i)||(o.add(i),this._simulator.trigger({event:e,scope:i,initiator:n}))}},"bpmn:EscalationEventDefinition":t=>{const{element:e,scope:n}=t,i=this._simulator.findScopes({subscribedTo:{event:e},trait:o.ACTIVE});let s=n;for(;s=s.parent;)if(i.includes(s)){this._simulator.trigger({event:e,scope:s,initiator:n});break}},"bpmn:ErrorEventDefinition":t=>{const{element:e,scope:n}=t;this._simulator.trigger({event:e,initiator:n,scope:bt(n)})},"bpmn:TerminateEventDefinition":t=>{const{scope:e}=t;this._scopeBehavior.terminate(e.parent,e)},"bpmn:CancelEventDefinition":t=>{const{scope:e,element:n}=t;this._simulator.trigger({event:n,initiator:e,scope:bt(e)})},"bpmn:CompensateEventDefinition":t=>{const{scope:e,element:n}=t;return this._simulator.waitForScopes(e,this._simulator.trigger({event:n,scope:bt(e)}))}},n=Object.entries(e).find(e=>gt(t,e[0]));return n&&n[1]};const wt={type:"pre-exit",persistent:!0,interrupting:!0,boundary:!1},St={type:"exit",interrupting:!0,boundary:!1,persistent:!0};function Et(t){this._simulator=t}function Ct(t){return"function"==typeof t?t:e=>e===t}function xt(t,e){this._simulator=t,this._scopeBehavior=e,t.registerBehavior("bpmn:Process",this),t.registerBehavior("bpmn:Participant",this)}Et.$inject=["simulator"],Et.prototype.isFinished=function(t,e=null){return e=Ct(e),t.children.every(t=>t.destroyed||t.completed||e(t))},Et.prototype.destroyChildren=function(t,e,n=null){n=Ct(n),t.children.filter(t=>!t.destroyed&&!n(t)).map(t=>{this._simulator.destroyScope(t,e)})},Et.prototype.terminate=function(t,e){this.destroyChildren(t,e),t.terminate(e),this.tryExit(t,e)},Et.prototype.interrupt=function(t,e){this.destroyChildren(t,e,e),t.fail(e)},Et.prototype.tryExit=function(t,e){if(!t)throw new Error("missing ");if(e||(e=t),!this.isFinished(t,e))return St;const n=this._simulator.findSubscriptions({event:wt,scope:t});for(const t of n){const{event:n,scope:i}=t;if(this._simulator.trigger({event:n,scope:i,initiator:e}).length)return St}this._simulator.trigger({event:St,scope:t,initiator:e}),this.exit({scope:t,initiator:e})},Et.prototype.exit=function(t){const{scope:e,initiator:n}=t;if(!n)throw new Error("missing ");this._simulator.exit({element:e.element,scope:e,initiator:n})},Et.prototype.preExit=function(t,e){const n=this._simulator.subscribe(t,wt,t=>(n.remove(),e(t)));return n},xt.prototype.signal=function(t){const{startEvent:e,scope:n}=t;if(!e)throw new Error("missing ");this._simulator.signal({element:e,parentScope:n})},xt.prototype.exit=function(t){const{scope:e,initiator:n}=t;this._scopeBehavior.destroyChildren(e,n)},xt.$inject=["simulator","scopeBehavior"];var Bt={__depends__:[{__init__:["startEventBehavior","endEventBehavior","boundaryEventBehavior","intermediateCatchEventBehavior","intermediateThrowEventBehavior","exclusiveGatewayBehavior","parallelGatewayBehavior","eventBasedGatewayBehavior","subProcessBehavior","sequenceFlowBehavior","messageFlowBehavior","processBehavior"],startEventBehavior:["type",nt],endEventBehavior:["type",it],boundaryEventBehavior:["type",ot],intermediateCatchEventBehavior:["type",st],intermediateThrowEventBehavior:["type",rt],exclusiveGatewayBehavior:["type",ct],parallelGatewayBehavior:["type",at],eventBasedGatewayBehavior:["type",lt],activityBehavior:["type",pt],subProcessBehavior:["type",ht],sequenceFlowBehavior:["type",dt],messageFlowBehavior:["type",ft],eventBehaviors:["type",_t],scopeBehavior:["type",Et],processBehavior:["type",xt],transactionBehavior:["type",mt]}],__init__:[["eventBus","simulator",function(t,e){t.on(["tokenSimulation.toggleMode","tokenSimulation.resetSimulation"],5e3,t=>{e.reset()})}]],simulator:["type",X]},jt=n("a092"),Ot=n.n(jt);function Tt(t,e){t.invoke(ft,this),this._animation=e}function kt(t,e){t.invoke(dt,this),this._animation=e}Ot()(Tt,ft),Tt.$inject=["injector","animation"],Tt.prototype.signal=function(t){const{element:e,scope:n}=t;this._animation.animate(e,n,()=>{ft.prototype.signal.call(this,t)})},Ot()(kt,dt),kt.$inject=["injector","animation"],kt.prototype.enter=function(t){const{element:e,scope:n}=t;this._animation.animate(e,n,()=>{dt.prototype.enter.call(this,t)})};var Ft={sequenceFlowBehavior:["type",kt],messageFlowBehavior:["type",Tt]};const $t="tokenSimulation.toggleMode",At="tokenSimulation.resetSimulation",Pt="tokenSimulation.simulator.destroyScope",It="tokenSimulation.simulator.createScope",Lt=t=>!0;function Mt(t,e){this._eventBus=t,this._simulator=e,this._filter=Lt,t.on([$t,At],()=>{this._filter=Lt}),t.on(Pt,t=>{const{scope:e}=t;this._scope===e&&e.parent&&this.toggle(e.parent)}),t.on(It,t=>{const{scope:e}=t;e.parent||!this._scope||Dt(this._scope,e)||this.toggle(null)})}function Dt(t,e){do{if(t===e)return!0}while(e=e.parent);return!1}Mt.prototype.toggle=function(t){const e=this._scope!==t;this._scope=e?t:null,this._filter=this._scope?t=>Dt(this._scope,t):t=>!0,this._eventBus.fire("tokenSimulation.scopeFilterChanged",{filter:this._filter,scope:this._scope})},Mt.prototype.isShown=function(t){return"string"==typeof t&&(t=this._simulator.findScope(e=>e.id===t)),t&&this._filter(t)},Mt.prototype.findScope=function(t){return this._simulator.findScopes(t).filter(t=>this.isShown(t))[0]},Mt.$inject=["eventBus","simulator"];var Nt={scopeFilter:["type",Mt]},Rt=n("f6d6"),zt=n("bbf8");const Gt=getComputedStyle(document.documentElement),qt=Gt.getPropertyValue("--token-simulation-green-base-44"),Ht=Gt.getPropertyValue("--token-simulation-white");function Vt(){}function Yt(t,e){return 2===e.length?Jt:1===t?Wt:t===e.length-1?Zt:Ut}const Ut=function(t){return t},Wt=function(t){return 1-Math.cos(t*Math.PI/2)},Zt=function(t){return Math.sin(t*Math.PI/2)},Jt=function(t){return-Math.cos(t*Math.PI)/2+.5};function Kt(t,e,n){this._eventBus=e,this._scopeFilter=n,this._animations=new Set,this._speed=1,e.on("import.done",()=>{const e=Object(Rt.query)(".viewport",t._svg);this.group=Object(zt.b)(Object(zt.g)(''),e)}),e.on(At,()=>{this.clearAnimations()}),e.on("tokenSimulation.pauseSimulation",()=>{this.pause()}),e.on("tokenSimulation.playSimulation",()=>{this.play()}),e.on("tokenSimulation.scopeFilterChanged",t=>{this.each(t=>{this._scopeFilter.isShown(t.scope)?t.show():t.hide()})}),e.on(Pt,t=>{const{scope:e}=t;this.clearAnimations(e)})}function Qt(t,e,n){this.gfx=t,this.waypoints=e,this.done=n,this._paused=!0,this._t=0,this._parts=[],this.create()}Kt.prototype.animate=function(t,e,n){this.createAnimation(t,e,n)},Kt.prototype.pause=function(){this.each(t=>t.pause())},Kt.prototype.play=function(){this.each(t=>t.play())},Kt.prototype.each=function(t){this._animations.forEach(t)},Kt.prototype.createAnimation=function(t,e,n=Vt){if(!this.group)return;const i=new Qt(this._createTokenGfx(e),t.waypoints,()=>{this._animations.delete(i),n()});return i.setSpeed(this.getAnimationSpeed()),this._scopeFilter.isShown(e)||i.hide(),i.scope=e,i.element=t,this._animations.add(i),this._eventBus.fire("tokenSimulation.animationCreated",{animation:i}),i.play(),i},Kt.prototype.setAnimationSpeed=function(t){this._speed=t,this.each(e=>e.setSpeed(t)),this._eventBus.fire("tokenSimulation.animationSpeedChanged",{speed:t})},Kt.prototype.getAnimationSpeed=function(){return this._speed},Kt.prototype.clearAnimations=function(t){this.each(e=>{t&&e.scope!==t||e.remove()})},Kt.prototype._createTokenGfx=function(t){const e=Object(zt.g)(this._getTokenSVG(t).trim());return Object(zt.b)(e,this.group)},Kt.prototype._getTokenSVG=function(t){const e=t.colors||{primary:qt,auxiliary:Ht};return`\n \n \n 1\n \n `},Kt.$inject=["canvas","eventBus","scopeFilter"],Qt.prototype.pause=function(){this._paused=!0},Qt.prototype.play=function(){this._paused&&(this._paused=!1,this.tick(0)),this.schedule()},Qt.prototype.schedule=function(){if(this._paused)return;if(this._scheduled)return;const t=Date.now();this._scheduled=!0,requestAnimationFrame(()=>{this._scheduled=!1,this._paused||(this.tick((Date.now()-t)*this._speed),this.schedule())})},Qt.prototype.tick=function(t){const e=this._t=this._t+t,n=this._parts.find(t=>t.startTime<=e&&t.endTime>e);if(!n)return this.remove();const i=e-n.startTime,o=n.length*n.easing(i/n.duration),s=n.startLength+o,r=this._path.getPointAtLength(s);this.move(r.x,r.y)},Qt.prototype.move=function(t,e){Object(zt.c)(this.gfx,"transform",`translate(${t}, ${e})`)},Qt.prototype.create=function(){const t=this.waypoints,e=t.reduce((e,n,i)=>{const o=t[i-1];if(o){const c=e[e.length-1],a=c&&c.endLength||0,l=(s=o,r=n,Math.sqrt(Math.pow(s.x-r.x,2)+Math.pow(s.y-r.y,2)));e.push({startLength:a,endLength:a+l,length:l,easing:Yt(i,t)})}var s,r;return e},[]),n=e.reduce((function(t,e){return t+e.length}),0),i=t.reduce((t,e,n)=>{const i=e.x-10,o=e.y-10;return t.push([n>0?"L":"M",i,o]),t},[]).flat().join(" "),o=(s=n,Math.log(s)*(c=300,(r=250)+Math.floor(Math.random()*(c-r))));var s,r,c;this._parts=e.reduce((t,e,i)=>{const s=o/n*e.length,r=i>0?t[i-1].endTime:0,c=r+s;return[...t,{...e,startTime:r,endTime:c,duration:s}]},[]),this._path=Object(zt.g)(``),this._t=0},Qt.prototype.show=function(){Object(zt.c)(this.gfx,"display","")},Qt.prototype.hide=function(){Object(zt.c)(this.gfx,"display","none")},Qt.prototype.remove=function(){this.pause(),Object(zt.k)(this.gfx),this.done()},Qt.prototype.setSpeed=function(t){this._speed=t};var Xt={__depends__:[Bt,Ft,Nt],animation:["type",Kt]},te=n("2f5d"),ee=n.n(te);function ne(t){const e=ee()({count:60}).filter(t=>n(t.substring(1))<200);function n(t){return(299*parseInt(t.substr(0,2),16)+587*parseInt(t.substr(2,2),16)+114*parseInt(t.substr(4,2),16))/1e3}let i=0;t.on(It,1500,t=>{const{scope:o}=t;o.colors=function(t){const{element:o}=t;if(o&&"bpmn:MessageFlow"===o.type)return{primary:"#999",auxiliary:"#FFF"};if(t.parent)return t.parent.colors;const s=e[i++%e.length];return{primary:s,auxiliary:n(s)>=128?"#111":"#fff"}}(o)})}ne.$inject=["eventBus"];var ie={__init__:["coloredScopes"],coloredScopes:["type",ne]};function oe(t){return function(e=""){return`${t}`}}const se=oe('\x3c!-- Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --\x3e'),re=oe('\x3c!-- Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --\x3e'),ce=oe('\x3c!-- Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --\x3e'),ae=oe('\n \n \n\n'),le=oe('\x3c!-- Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --\x3e'),pe=oe('\x3c!-- Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --\x3e'),he=oe('\x3c!-- Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --\x3e'),ue=oe('\x3c!-- Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --\x3e'),me=oe('\x3c!-- Adapted from Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --\x3e'),de=oe('\x3c!-- Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --\x3e'),fe=oe('\x3c!-- Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --\x3e'),ve=oe('\x3c!-- Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --\x3e'),ge=oe('\x3c!-- Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --\x3e'),_e=oe('\x3c!-- Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --\x3e'),ye=oe('\x3c!-- Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --\x3e');function be(t){this._exclusiveGatewaySettings=t}function we(t){this._simulator=t}function Se(t){this._simulator=t}be.prototype.createContextPads=function(t){if(t.outgoing.filter((function(t){return vt(t,"bpmn:SequenceFlow")})).length<2)return;const e=`\n
\n ${le()}\n
\n `;return[{action:()=>{this._exclusiveGatewaySettings.setSequenceFlow(t)},element:t,html:e}]},be.$inject=["exclusiveGatewaySettings"],we.prototype.createContextPads=function(t){return vt(t,"bpmn:ReceiveTask")||vt(t,"bpmn:SubProcess")&&Object(j.getBusinessObject)(t).triggeredByEvent?[]:[this.createPauseContextPad(t)]},we.prototype.createPauseContextPad=function(t){const e=this._isPaused(t),n=`\n
\n ${(e?ae:ue)("show-hover")}\n ${ue("hide-hover")}\n
\n `;return{action:()=>{this._togglePaused(t)},element:t,hideContexts:()=>this._findSubscriptions({element:t}),html:n}},we.prototype._isPaused=function(t){const{wait:e}=this._simulator.getConfig(t);return e},we.prototype._togglePaused=function(t){const e=!this._isPaused(t);this._simulator.waitAtElement(t,e)},we.prototype._findSubscriptions=function(t){return this._simulator.findSubscriptions(t)},we.$inject=["simulator"],Se.$inject=["simulator"],Se.prototype.createContextPads=function(t){return[this.createTriggerContextPad(t)]},Se.prototype.createTriggerContextPad=function(t){const e=`\n
\n ${me()}\n
\n `;return{action:t=>{const{event:e,scope:n}=t[0];return this._simulator.trigger({event:e,scope:n})},element:t,html:e,contexts:()=>this._findSubscriptions({element:t})}},Se.prototype._findSubscriptions=function(t){return this._simulator.findSubscriptions(t)};function Ee(t,e,n,i,o,s){this._elementRegistry=e,this._overlays=n,this._injector=i,this._canvas=o,this._scopeFilter=s,this._overlayCache=new Map,this._handlerIdx=0,this._handlers=[],this.registerHandler("bpmn:ExclusiveGateway",be),this.registerHandler("bpmn:Activity",we),this.registerHandler("bpmn:StartEvent",Se),this.registerHandler("bpmn:IntermediateCatchEvent",Se),this.registerHandler("bpmn:BoundaryEvent",Se),this.registerHandler("bpmn:Activity",Se),t.on($t,500,t=>{t.active?this.openContextPads():this.closeContextPads()}),t.on(At,500,()=>{this.closeContextPads(),this.openContextPads()}),t.on("tokenSimulation.scopeFilterChanged",t=>{const e=Object(Rt.queryAll)(".djs-overlay-ts-context-menu [data-scope-ids]",n._overlayRoot);for(const t of e){const e=t.dataset.scopeIds.split(",").some(t=>s.isShown(t));Object(Rt.classes)(t).toggle("hidden",!e)}const i=Object(Rt.queryAll)(".djs-overlay-ts-context-menu [data-hide-scope-ids]",n._overlayRoot);for(const t of i){const e=t.dataset.hideScopeIds.split(",").some(t=>s.isShown(t));Object(Rt.classes)(t).toggle("hidden",e)}}),t.on("tokenSimulation.simulator.elementChanged",500,t=>{const{element:e}=t;this.updateElementContextPads(e)})}Ee.prototype.registerHandler=function(t,e){const n=this._injector.instantiate(e);n.hash=String(this._handlerIdx++),this._handlers.push({handler:n,type:t})},Ee.prototype.getHandlers=function(t){return this._handlers.filter(({type:e})=>vt(t,e)).map(({handler:t})=>t)},Ee.prototype.openContextPads=function(t){t||(t=this._canvas.getRootElement()),this._elementRegistry.forEach(e=>{(function(t,e){do{if(t===e)return!0;e=e.parent}while(e);return!1})(t,e)&&this.updateElementContextPads(e)})},Ee.prototype._getOverlays=function(t){return this._overlayCache.get(t)||[]},Ee.prototype._addOverlay=function(t,e){const{handlerHash:n}=e;if(!n)throw new Error(" required");const i=this._overlays.add(t,"ts-context-menu",{...e,position:{top:-15,left:-15},show:{minZoom:.5}}),o=this._overlays.get(i),s=this._overlayCache;s.has(n)||s.set(n,[]),s.get(n).push(o)},Ee.prototype._removeOverlay=function(t){const{id:e,handlerHash:n}=t;this._overlays.remove(e);const i=this._overlayCache.get(n)||[],o=i.indexOf(t);-1!==o&&i.splice(o,1)},Ee.prototype.updateElementContextPads=function(t){for(const e of this.getHandlers(t))this._updateElementContextPads(t,e)},Ee.prototype._updateElementContextPads=function(t,e){const n=(e.createContextPads(t)||[]).filter(t=>t),i=`${t.id}------${e.hash}`,o=this._getOverlays(i),s=[];for(const t of n){const{element:e,contexts:n,hideContexts:r,action:c,html:a}=t,l=`${t.element.id}-------${a}`;let p=o.find(t=>t.hash===l);const h=p&&p.html||Object(Rt.domify)(a);if(n){const t=n();h.dataset.scopeIds=t.map(t=>t.scope.id).join(",");const e=t.filter(t=>this._scopeFilter.isShown(t.scope));Object(Rt.classes)(h).toggle("hidden",0===e.length)}if(r){const t=r();h.dataset.hideScopeIds=t.map(t=>t.scope.id).join(",");const e=t.filter(t=>this._scopeFilter.isShown(t.scope));Object(Rt.classes)(h).toggle("hidden",e.length>0)}p?s.push(p):(c&&Rt.event.bind(h,"click",t=>{t.preventDefault();const e=n?n().filter(t=>this._scopeFilter.isShown(t.scope)):null;c(e)}),this._addOverlay(e,{hash:l,handlerHash:i,html:h}))}for(const t of o)s.includes(t)||this._removeOverlay(t)},Ee.prototype.closeContextPads=function(){for(const t of this._overlayCache.values())for(const e of t)this._closeOverlay(e);this._overlayCache.clear()},Ee.prototype._closeOverlay=function(t){this._overlays.remove(t.id)},Ee.$inject=["eventBus","elementRegistry","overlays","injector","canvas","scopeFilter"];var Ce={__depends__:[Nt],__init__:["contextPads"],contextPads:["type",Ee]};function xe(t,e,n){t.on(Pt,t=>{const{scope:e}=t,{destroyInitiator:i,element:o}=e;if(!e.completed||!i)return;["bpmn:Process","bpmn:Participant"].includes(o.type)&&n.addElementNotification(i.element,{type:"success",icon:ce(),text:"Finished",scope:e})})}xe.$inject=["eventBus","simulator","elementNotifications"];function Be(t,e){this._overlays=t,e.on([At,It,$t],()=>{this.clear()})}Be.prototype.addElementNotification=function(t,e){const n={top:-15,right:15},{type:i,icon:o,text:s,scope:r={}}=e,c=r.colors,a=c?`style="color: ${c.auxiliary}; background: ${c.primary}"`:"",l=Object(Rt.domify)(`\n
\n ${o||""}\n ${s}\n
\n `);this._overlays.add(t,"element-notification",{position:n,html:l,show:{minZoom:.5}})},Be.prototype.clear=function(){this._overlays.remove({type:"element-notification"})},Be.prototype.removeElementNotification=function(t){this._overlays.remove({element:t})},Be.$inject=["overlays","eventBus"];var je={elementNotifications:["type",Be]};const Oe=2e3,Te=he();function ke(t,e,n){this._eventBus=t,this._canvas=e,this._scopeFilter=n,this._init(),t.on([$t,At],t=>{this.clear()})}ke.prototype._init=function(){this.container=Object(Rt.domify)('
'),this._canvas.getContainer().appendChild(this.container)},ke.prototype.showNotification=function(t){const{text:e,type:n="info",icon:i=Te,scope:o,ttl:s=Oe}=t;if(o&&!this._scopeFilter.isShown(o))return;const r=i.startsWith("<")?i:``,c=o&&o.colors,a=c?`style="color: ${c.auxiliary}; background: ${c.primary}"`:"",l=Object(Rt.domify)(`\n
\n ${r}\n ${e}\n ${o?`${o.id}`:""}\n
\n `);for(this.container.appendChild(l);this.container.children.length>5;)this.container.children[0].remove();setTimeout((function(){l.remove()}),s)},ke.prototype.clear=function(){for(;this.container.children.length;)this.container.children[0].remove()},ke.$inject=["eventBus","canvas","scopeFilter"];var Fe={__depends__:[Nt],notifications:["type",ke]},$e={__depends__:[je,Fe],__init__:["simulationState"],simulationState:["type",xe]};function Ae(t,e,n,i,o){this._eventBus=t,this._canvas=e,this._scopeFilter=n,this._elementColors=i,this._simulationStyles=o,this._highlight=null,this._init(),t.on($t,t=>{t.active?Object(Rt.classes)(this._container).remove("hidden"):(Object(Rt.classes)(this._container).add("hidden"),Object(Rt.clear)(this._container),this.unhighlightScope())}),t.on("tokenSimulation.scopeFilterChanged",t=>{const e=this.getScopeElements();for(const t of e){const e=t.dataset.scopeId;Object(Rt.classes)(t).toggle("inactive",!this._scopeFilter.isShown(e))}}),t.on(It,t=>{this.addScope(t.scope)}),t.on(Pt,t=>{this.removeScope(t.scope)}),t.on("tokenSimulation.simulator.scopeChanged",t=>{this.updateScope(t.scope)}),t.on(At,()=>{this.removeAllInstances()})}function Pe(){this._cache={}}function Ie(){return{getPropertyValue:()=>""}}Ae.prototype._init=function(){this._container=Object(Rt.domify)(''),this._canvas.getContainer().appendChild(this._container)},Ae.prototype.addScope=function(t){const{element:e}=t;if(!["bpmn:Process","bpmn:SubProcess","bpmn:Participant"].includes(e.type))return;const n=t.colors,i=n?`style="color: ${n.auxiliary}; background: ${n.primary}"`:"",o=Object(Rt.domify)(`\n
\n ${t.getTokens()}\n
\n `);Rt.event.bind(o,"click",()=>{this._scopeFilter.toggle(t)}),Rt.event.bind(o,"mouseenter",()=>{this.highlightScope(e)}),Rt.event.bind(o,"mouseleave",()=>{this.unhighlightScope()}),this._scopeFilter.isShown(t)||Object(Rt.classes)(o).add("inactive"),this._container.appendChild(o)},Ae.prototype.getScopeElements=function(){return Object(Rt.queryAll)("[data-scope-id]",this._container)},Ae.prototype.getScopeElement=function(t){return Object(Rt.query)(`[data-scope-id="${t.id}"]`,this._container)},Ae.prototype.updateScope=function(t){const e=this.getScopeElement(t);e&&(e.textContent=t.getTokens())},Ae.prototype.removeScope=function(t){const e=this.getScopeElement(t);e&&e.remove()},Ae.prototype.removeAllInstances=function(){this._container.innerHTML=""},Ae.prototype.highlightScope=function(t){this.unhighlightScope(),this._highlight={element:t,colors:this._elementColors.get(t)},this._elementColors.set(t,this._getHighlightColors()),t.parent||Object(Rt.classes)(this._canvas.getContainer()).add("highlight")},Ae.prototype.unhighlightScope=function(){if(!this._highlight)return;const{element:t,colors:e}=this._highlight;this._elementColors.set(t,e),t.parent||Object(Rt.classes)(this._canvas.getContainer()).remove("highlight"),this._highlight=null},Ae.prototype._getHighlightColors=function(){return{fill:this._simulationStyles.get("--token-simulation-silver-base-97"),stroke:this._simulationStyles.get("--token-simulation-green-base-44")}},Ae.$inject=["eventBus","canvas","scopeFilter","elementColors","simulationStyles"],Pe.$inject=[],Pe.prototype.get=function(t){const e=this._cache[t];return e||(this._computedStyle||(this._computedStyle=this._getComputedStyle()),this._cache[t]=this._computedStyle.getPropertyValue(t).trim())},Pe.prototype._getComputedStyle=function(){return("function"==typeof getComputedStyle?getComputedStyle:Ie)("undefined"!=typeof document?document.documentElement:{})};var Le={simulationStyles:["type",Pe]},Me={__depends__:[Nt,Le],__init__:["showScopes"],showScopes:["type",Ae]},De=n("04ae");const Ne=he();function Re(t){const e=t&&t.businessObject.name;return e&&Object(De.a)(e)}function ze(t,e,n,i,o,s){this._notifications=e,this._tokenSimulationPalette=n,this._canvas=i,this._scopeFilter=o,this._init(),t.on("tokenSimulation.scopeFilterChanged",t=>{const e=Object(Rt.queryAll)(".bts-entry[data-scope-id]",this._container);for(const t of e){const e=t.dataset.scopeId;Object(Rt.classes)(t).toggle("inactive",!this._scopeFilter.isShown(e))}}),t.on(Pt,t=>{const{scope:e}=t,{element:n}=e,i=e.completed;if(!["bpmn:Process","bpmn:Participant","bpmn:SubProcess"].includes(n.type))return;const o=`${vt(n,"bpmn:SubProcess")?Re(n)||"SubProcess":"Process"} ${i?"finished":"canceled"}`;this.log({text:o,icon:i?ce():ve(),scope:e})}),t.on(It,t=>{const{scope:e}=t,{element:n}=e;if(!["bpmn:Process","bpmn:Participant","bpmn:SubProcess"].includes(n.type))return;const i=(vt(n,"bpmn:SubProcess")?Re(n)||"SubProcess":"Process")+" started";this.log({text:i,icon:ce(),scope:e})}),t.on("tokenSimulation.simulator.trace",t=>{const{action:e,scope:n,element:i}=t;if("exit"!==e)return;const o=n.parent,s=Re(i);if(vt(i,"bpmn:BusinessRuleTask")?this.log({text:s||"Business Rule Task",icon:"bpmn-icon-business-rule",scope:o}):vt(i,"bpmn:CallActivity")?this.log({text:s||"Call Activity",icon:"bpmn-icon-call-activity",scope:o}):(vt(i,"bpmn:IntermediateCatchEvent")||vt(i,"bpmn:IntermediateThrowEvent"))&&this.log({text:s||"Intermediate Event",icon:"bpmn-icon-intermediate-event-none",scope:o}),vt(i,"bpmn:BoundaryEvent"))this.log({text:s||"Boundary Event",icon:"bpmn-icon-intermediate-event-none",scope:o});else if(vt(i,"bpmn:ManualTask"))this.log({text:s||"Manual Task",icon:"bpmn-icon-manual",scope:o});else if(vt(i,"bpmn:ScriptTask"))this.log({text:s||"Script Task",icon:"bpmn-icon-script",scope:o});else if(vt(i,"bpmn:ServiceTask"))this.log({text:s||"Service Task",icon:"bpmn-icon-service",scope:o});else if(vt(i,"bpmn:Task"))this.log({text:s||"Task",icon:"bpmn-icon-task",scope:o});else if(vt(i,"bpmn:UserTask"))this.log({text:s||"User Task",icon:"bpmn-icon-user",scope:o});else if(vt(i,"bpmn:ExclusiveGateway")){if(i.outgoing.length<2)return;const t=Re(i.sequenceFlow);let e=s||"Gateway";t&&(e=e.concat(` ${re()} ${t}`)),this.log({text:e,icon:"bpmn-icon-gateway-xor",scope:o})}else vt(i,"bpmn:EndEvent")?gt(Object(j.getBusinessObject)(i),"bpmn:TerminateEventDefinition")?this.log({text:s||"Terminate End Event",icon:"bpmn-icon-end-event-terminate",scope:o}):this.log({text:s||"End Event",icon:"bpmn-icon-end-event-none",scope:o}):vt(i,"bpmn:StartEvent")&&this.log({text:s||"Start Event",icon:"bpmn-icon-start-event-none",scope:o})}),t.on([$t,At],t=>{this.clear(),Object(Rt.classes)(this._container).add("hidden")})}ze.prototype._init=function(){this._container=Object(Rt.domify)(`\n \n `),this._placeholder=Object(Rt.query)(".bts-placeholder",this._container),this._content=Object(Rt.query)(".bts-content",this._container),Rt.event.bind(this._content,"wheel",t=>{t.stopPropagation()}),Rt.event.bind(this._content,"mousedown",t=>{t.stopPropagation()}),this._close=Object(Rt.query)(".bts-close",this._container),Rt.event.bind(this._close,"click",()=>{Object(Rt.classes)(this._container).add("hidden")}),this._icon=Object(Rt.query)(".bts-log-icon",this._container),Rt.event.bind(this._icon,"click",()=>{Object(Rt.classes)(this._container).add("hidden")}),this._canvas.getContainer().appendChild(this._container),this.paletteEntry=Object(Rt.domify)(`\n
\n ${se()}\n
\n `),Rt.event.bind(this.paletteEntry,"click",()=>{Object(Rt.classes)(this._container).remove("hidden")}),this._tokenSimulationPalette.addEntry(this.paletteEntry,3)},ze.prototype.toggle=function(){const t=this._container;Object(Rt.classes)(t).has("hidden")?Object(Rt.classes)(t).remove("hidden"):Object(Rt.classes)(t).add("hidden")},ze.prototype.log=function(t){const{text:e,type:n="info",icon:i=Ne,scope:o}=t;Object(Rt.classes)(this._placeholder).add("hidden");const s=new Date,r=s.toLocaleTimeString()+":"+s.getUTCMilliseconds();this._notifications.showNotification(t);const c=i.startsWith("<")?i:``,a=o&&o.colors,l=a?`style="background: ${a.primary}; color: ${a.auxiliary}"`:"",p=Object(Rt.domify)(`\n

\n ${r}\n ${c}\n ${e}\n ${o?`${o.id}`:""}\n

\n `);Rt.delegate.bind(p,".bts-scope[data-scope-id]","click",t=>{this._scopeFilter.toggle(o)}),this._content.appendChild(p),this._content.scrollTop=this._content.scrollHeight},ze.prototype.clear=function(){for(;this._content.firstChild;)this._content.removeChild(this._content.firstChild);this._placeholder=Object(Rt.domify)('

No Entries

'),this._content.appendChild(this._placeholder)},ze.$inject=["eventBus","notifications","tokenSimulationPalette","canvas","scopeFilter","simulator"];var Ge={__depends__:[Fe,Nt],__init__:["log"],log:["type",ze]};const qe=["bpmn:InclusiveGateway","bpmn:ComplexGateway"];function He(t,e,n,i,o){this._eventBus=t,this._elementRegistry=e,this._elementNotifications=o,this._notifications=i,this._canvasParent=n.getContainer().parentNode,t.on($t,t=>{t.active?this.enable():this.clear()})}He.prototype.getUnsupportedElements=function(){return this._unsupportedElements},He.prototype.enable=function(){const t=[];this._elementRegistry.forEach(e=>{(function(t){return t.labelTarget})(e)||vt(e,qe)&&(this.showWarning(e),t.push(e))}),t.length&&this._notifications.showNotification({text:"Found unsupported elements",icon:pe(),type:"warning",ttl:5e3}),this._unsupportedElements=t},He.prototype.clear=function(){Object(Rt.classes)(this._canvasParent).remove("warning")},He.prototype.showWarning=function(t){this._elementNotifications.addElementNotification(t,{type:"warning",icon:pe(),text:"Not supported"})},He.$inject=["eventBus","elementRegistry","canvas","notifications","elementNotifications"];var Ve={__depends__:[je,Fe],__init__:["elementSupport"],elementSupport:["type",He]};const Ye=me(),Ue=ue();function We(t,e,n,i){this._eventBus=t,this._tokenSimulationPalette=e,this._notifications=n,this.canvasParent=i.getContainer().parentNode,this.isActive=!1,this.isPaused=!0,this._init(),t.on(It,1500,t=>{this.activate(),this.unpause()}),t.on([At,$t],()=>{this.deactivate(),this.pause()}),t.on("tokenSimulation.simulator.trace",1500,t=>{this.unpause()})}We.prototype._init=function(){this.paletteEntry=Object(Rt.domify)(`\n
\n ${Ye}\n
\n `),Rt.event.bind(this.paletteEntry,"click",this.toggle.bind(this)),this._tokenSimulationPalette.addEntry(this.paletteEntry,1)},We.prototype.toggle=function(){this.isPaused?this.unpause():this.pause()},We.prototype.pause=function(){this.isActive&&(Object(Rt.classes)(this.paletteEntry).remove("active"),Object(Rt.classes)(this.canvasParent).add("paused"),this.paletteEntry.innerHTML=Ye,this._eventBus.fire("tokenSimulation.pauseSimulation"),this._notifications.showNotification({text:"Pause Simulation"}),this.isPaused=!0)},We.prototype.unpause=function(){this.isActive&&this.isPaused&&(Object(Rt.classes)(this.paletteEntry).add("active"),Object(Rt.classes)(this.canvasParent).remove("paused"),this.paletteEntry.innerHTML=Ue,this._eventBus.fire("tokenSimulation.playSimulation"),this._notifications.showNotification({text:"Play Simulation"}),this.isPaused=!1)},We.prototype.activate=function(){this.isActive=!0,Object(Rt.classes)(this.paletteEntry).remove("disabled")},We.prototype.deactivate=function(){this.isActive=!1,Object(Rt.classes)(this.paletteEntry).remove("active"),Object(Rt.classes)(this.paletteEntry).add("disabled")},We.$inject=["eventBus","tokenSimulationPalette","notifications","canvas"];var Ze={__depends__:[Fe],__init__:["pauseSimulation"],pauseSimulation:["type",We]};function Je(t,e,n){this._eventBus=t,this._tokenSimulationPalette=e,this._notifications=n,this._init(),t.on(It,()=>{Object(Rt.classes)(this._paletteEntry).remove("disabled")}),t.on($t,t=>{(this._active=t.active)||this.resetSimulation()})}Je.prototype._init=function(){this._paletteEntry=Object(Rt.domify)(`\n
\n ${de()}\n
\n `),Rt.event.bind(this._paletteEntry,"click",()=>{this.resetSimulation(),this._notifications.showNotification({text:"Reset Simulation",type:"info"})}),this._tokenSimulationPalette.addEntry(this._paletteEntry,2)},Je.prototype.resetSimulation=function(){Object(Rt.classes)(this._paletteEntry).add("disabled"),this._eventBus.fire(At)},Je.$inject=["eventBus","tokenSimulationPalette","notifications"];var Ke={__depends__:[Fe],__init__:["resetSimulation"],resetSimulation:["type",Je]};function Qe(t,e,n,i,o){this._overlays=e,this._scopeFilter=i,this._simulator=n,this._simulationStyles=o,this.overlayIds={},t.on("tokenSimulation.simulator.elementChanged",500,t=>{const{element:e}=t;this.removeTokenCounts(e),this.addTokenCounts(e)}),t.on("tokenSimulation.scopeFilterChanged",t=>{const n=Object(Rt.queryAll)(".bts-token-count[data-scope-id]",e._overlayRoot);for(const t of n){const e=t.dataset.scopeId;Object(Rt.classes)(t).toggle("inactive",!this._scopeFilter.isShown(e))}})}Qe.prototype.addTokenCounts=function(t){if(vt(t,"bpmn:MessageFlow")||vt(t,"bpmn:SequenceFlow"))return;const e=this._simulator.findScopes(e=>!e.destroyed&&e.children.some(e=>!e.destroyed&&e.element===t&&!e.children.length));this.addTokenCount(t,e)},Qe.prototype.addTokenCount=function(t,e){if(!e.length)return;const n=e.map(e=>this._getTokenHTML(t,e)).join(""),i=Object(Rt.domify)(`\n
\n ${n}\n
\n `),o={bottom:10,left:-15},s=this._overlays.add(t,"token-count",{position:o,html:i,show:{minZoom:.5}});this.overlayIds[t.id]=s},Qe.prototype.removeTokenCounts=function(t){this.removeTokenCount(t)},Qe.prototype.removeTokenCount=function(t){const e=this.overlayIds[t.id];e&&(this._overlays.remove(e),delete this.overlayIds[t.id])},Qe.prototype._getTokenHTML=function(t,e){const n=e.colors||this._getDefaultColors();return`\n
\n ${e.getTokensByElement(t)}\n
\n `},Qe.prototype._getDefaultColors=function(){return{primary:this._simulationStyles.get("--token-simulation-green-base-44"),auxiliary:this._simuationStyles.get("--token-simulation-white")}},Qe.$inject=["eventBus","overlays","simulator","scopeFilter","simulationStyles"];var Xe={__depends__:[Nt,Le],__init__:["tokenCount"],tokenCount:["type",Qe]};const tn=[["Slow",.5],["Normal",1],["Fast",2]];function en(t,e,n){this._canvas=t,this._animation=e,this._eventBus=n,this._init(e.getAnimationSpeed()),n.on($t,t=>{t.active?Object(Rt.classes)(this._container).remove("hidden"):Object(Rt.classes)(this._container).add("hidden")}),n.on("tokenSimulation.animationSpeedChanged",t=>{this.setActive(t.speed)})}en.prototype.getToggleSpeed=function(t){return parseFloat(t.dataset.speed)},en.prototype._init=function(t){this._container=Object(Rt.domify)(`\n \n `),Rt.delegate.bind(this._container,"[data-speed]","click",t=>{const e=t.delegateTarget,n=this.getToggleSpeed(e);this._animation.setAnimationSpeed(n)}),this._canvas.getContainer().appendChild(this._container)},en.prototype.setActive=function(t){Object(Rt.queryAll)("[data-speed]",this._container).forEach(e=>{const n=this.getToggleSpeed(e)===t;Object(Rt.classes)(e)[n?"add":"remove"]("active")})},en.$inject=["canvas","animation","eventBus"];var nn={__init__:["setAnimationSpeed"],setAnimationSpeed:["type",en]};function on(t){return vt(t,"bpmn:SequenceFlow")}function sn(t,e,n,i,o){this._elementRegistry=e,this._elementColors=n,this._simulator=i,this._simulationStyles=o,t.on($t,t=>{t.active?this.setSequenceFlowsDefault():this.resetSequenceFlows()})}function rn(t,e){this._elementRegistry=t,this._graphicsFactory=e}function cn(t){return t.businessObject&&t.businessObject.di}function an(t){return"labelTarget"in t}sn.prototype.setSequenceFlowsDefault=function(){const t=this._elementRegistry.filter(t=>vt(t,"bpmn:ExclusiveGateway"));for(const e of t)this.setSequenceFlow(e)},sn.prototype.resetSequenceFlows=function(){this._elementRegistry.filter(t=>vt(t,"bpmn:ExclusiveGateway")).forEach(t=>{t.outgoing.filter(on).length&&this.resetSequenceFlow(t)})},sn.prototype.resetSequenceFlow=function(t){this._simulator.setConfig(t,{activeOutgoing:void 0})},sn.prototype.setSequenceFlow=function(t){const e=t.outgoing.filter(on);if(e.length<2)return;const{activeOutgoing:n}=this._simulator.getConfig(t);let i;i=n?function(t,e){var n=t.outgoing.filter(on),i=n.indexOf(e||t.sequenceFlow);return n[i+1]?n[i+1]:n[0]}(t,n):e[0],this._simulator.setConfig(t,{activeOutgoing:i}),t.outgoing.forEach(t=>{const e=t===i?"--token-simulation-grey-darken-30":"--token-simulation-grey-lighten-56",n=this._simulationStyles.get(e);this._elementColors.set(t,{stroke:n})})},sn.$inject=["eventBus","elementRegistry","elementColors","simulator","simulationStyles"],rn.$inject=["elementRegistry","graphicsFactory"],rn.prototype.get=function(t){const e=cn(t);if(e)return an(t)?{stroke:e.label&&e.label.get("color")}:{fill:e.get("background-color"),stroke:e.get("border-color")}},rn.prototype.set=function(t,e){const{fill:n,stroke:i}=e,o=cn(t);o&&(an(t)?o.label&&o.label.set("color",i):(o.set("background-color",n),o.set("border-color",i)),this._forceRedraw(t))},rn.prototype._forceRedraw=function(t){const e=this._elementRegistry.getGraphics(t),n=t.waypoints?"connection":"shape";this._graphicsFactory.update(n,t,e)};var ln={elementColors:["type",rn]},pn={__depends__:[ln,Le],exclusiveGatewaySettings:["type",sn]};function hn(t,e,n){this._elementRegistry=e,this._elementColors=n,this._colorCache={},t.on($t,5e4,t=>{t.active?this.preserveColors():this.resetColors()})}hn.prototype.preserveColors=function(){this._elementRegistry.forEach(t=>{this._colorCache[t.id]=this._elementColors.get(t),this._elementColors.set(t,{stroke:"#000",fill:"#fff"})})},hn.prototype.resetColors=function(){this._elementRegistry.forEach(t=>{const e=this._colorCache[t.id];e&&this._elementColors.set(t,e)}),this._colorCache={}},hn.$inject=["eventBus","elementRegistry","elementColors"];var un={__depends__:[ln],__init__:["preserveElementColors"],preserveElementColors:["type",hn]};function mn(t,e){var n=this;this._canvas=e,this.entries=[],this._init(),t.on($t,(function(t){t.active?Object(Rt.classes)(n.container).remove("hidden"):Object(Rt.classes)(n.container).add("hidden")}))}mn.prototype._init=function(){this.container=Object(Rt.domify)(''),this._canvas.getContainer().appendChild(this.container)},mn.prototype.addEntry=function(t,e){var n=0;this.entries.forEach((function(t){e>=t.index&&n++})),this.container.insertBefore(t,this.container.childNodes[n]),this.entries.push({entry:t,index:e})},mn.$inject=["eventBus","canvas"];var dn={__depends__:[Bt,Xt,ie,Ce,$e,Me,Ge,Ve,Ze,Ke,Xe,nn,pn,un,{__init__:["tokenSimulationPalette"],tokenSimulationPalette:["type",mn]}]};function fn(t,e,n,i,o,s,r,c){let a=!1;function l(t,e,n){const i=t[e];t[e]=function(){return n.call(this,i,arguments)}}function p(t,e){l(t,e,(function(t,e){if(!a)return t.apply(this,e)}))}function h(t,e){l(t,e,(function(t,e){if(a)throw new Error("model is read-only");return t.apply(this,e)}))}t.on($t,10001,t=>{a=t.active,a&&(i.cancel(),e.close(),n.cancel()),r._update()}),p(e,"open"),p(n,"init"),p(i,"activate"),p(n,"init"),p(i,"activate"),h(s,"moveShape"),h(s,"updateAttachment"),h(s,"moveElements"),h(s,"moveConnection"),h(s,"layoutConnection"),h(s,"createConnection"),h(s,"createShape"),h(s,"createLabel"),h(s,"appendShape"),h(s,"removeElements"),h(s,"distributeElements"),h(s,"removeShape"),h(s,"removeConnection"),h(s,"replaceShape"),h(s,"pasteElements"),h(s,"alignElements"),h(s,"resizeShape"),h(s,"createSpace"),h(s,"updateWaypoints"),h(s,"reconnectStart"),h(s,"reconnectEnd"),l(o,"trigger",(function(t,e){const n=e[0];if(!a||!function(t,e){return t.indexOf(e)>-1}(["undo","redo","copy","paste","removeSelection","spaceTool","lassoTool","globalConnectTool","distributeElements","alignElements","directEditing"],n))return t.apply(this,e)}))}fn.$inject=["eventBus","contextPad","dragging","directEditing","editorActions","modeling","palette","paletteProvider"];var vn={__init__:["disableModeling"],disableModeling:["type",fn]};function gn(t,e,n,i){this._eventBus=t,this._canvas=e,this._selection=n,this._contextPad=i,this._active=!1,t.on("import.parse.start",()=>{this._active&&(this.toggleMode(!1),t.once("import.done",()=>{this.toggleMode(!0)}))}),t.on("diagram.init",()=>{this._canvasParent=this._canvas.getContainer().parentNode,this._palette=Object(Rt.query)(".djs-palette",this._canvas.getContainer()),this._init()})}gn.prototype._init=function(){this._container=Object(Rt.domify)(`\n
\n Token Simulation ${_e()}\n
\n `),Rt.event.bind(this._container,"click",()=>this.toggleMode()),this._canvas.getContainer().appendChild(this._container)},gn.prototype.toggleMode=function(t=!this._active){if(t!==this._active){if(t)this._container.innerHTML=`Token Simulation ${ye()}`,Object(Rt.classes)(this._canvasParent).add("simulation"),Object(Rt.classes)(this._palette).add("hidden");else{this._container.innerHTML=`Token Simulation ${_e()}`,Object(Rt.classes)(this._canvasParent).remove("simulation"),Object(Rt.classes)(this._palette).remove("hidden");const t=this._selection.get();1===t.length&&this._contextPad.open(t[0])}this._eventBus.fire($t,{active:t}),this._active=t}},gn.$inject=["eventBus","canvas","selection","contextPad"];var _n={__init__:["toggleMode"],toggleMode:["type",gn]};function yn(t,e,n,i,o,s){o.register({toggleTokenSimulation:function(){e.toggleMode()}}),o.register({togglePauseTokenSimulation:function(){n.toggle()}}),o.register({resetTokenSimulation:function(){i.resetSimulation()}});const r=s.get("log",!1);r&&o.register({toggleTokenSimulationLog:function(){r.toggle()}})}yn.$inject=["eventBus","toggleMode","pauseSimulation","resetSimulation","editorActions","injector"];var bn={__init__:["tokenSimulationEditorActions"],tokenSimulationEditorActions:["type",yn]};function wn(t,e){var n=e.get("editorActions",!1),i=e.get("keyboard",!1);if(i&&n){var o=!1;t.on("keyboard.init",(function(){i.addListener(1e4,(function(t){!function(t){Sn(["t","T"],t)?n.trigger("toggleTokenSimulation"):o&&(Sn(["l","L"],t)?n.trigger("toggleTokenSimulationLog"):Sn([" ","Spacebar"],t)?n.trigger("togglePauseTokenSimulation"):Sn(["r","R"],t)&&n.trigger("resetTokenSimulation"))}(t.keyEvent)}))})),t.on($t,(function(t){var e=t.active;o=!!e}))}}function Sn(t,e){return t.indexOf(e.key)>-1}wn.$inject=["eventBus","injector"];var En={__init__:["tokenSimulationKeyboardBindings"],tokenSimulationKeyboardBindings:["type",wn]};e.a={__depends__:[dn,vn,_n,bn,En]}}}]); \ No newline at end of file diff --git a/container/context/dist/static/js/npm.bpmn-js-token-simulation.5de05536.js.gz b/container/context/dist/static/js/npm.bpmn-js-token-simulation.5de05536.js.gz new file mode 100644 index 00000000..459fac66 Binary files /dev/null and b/container/context/dist/static/js/npm.bpmn-js-token-simulation.5de05536.js.gz differ diff --git a/container/context/dist/static/js/npm.bpmn-js-token-simulation.66e3ad08.js b/container/context/dist/static/js/npm.bpmn-js-token-simulation.66e3ad08.js deleted file mode 100644 index 49826ffd..00000000 --- a/container/context/dist/static/js/npm.bpmn-js-token-simulation.66e3ad08.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([["npm.bpmn-js-token-simulation"],{e72f:function(t,e,n){"use strict";var i=n("63fd");const o=Object.freeze({ACTIVATED:1,RUNNING:2,ENDING:4,ENDED:8,DESTROYED:16,FAILED:32,TERMINATED:64,CANCELED:128,COMPLETED:256,COMPENSABLE:512,ACTIVE:7,NOT_DEAD:9}),s={};function r(t,e){throw new Error(`illegal transition: ${t.name} -> ${e}`)}function c(t,e){return t===s?e:t}class a{constructor(t,e,{start:n,cancel:i,complete:o,destroy:s,fail:r,terminate:a,compensable:l}={}){this.name=t,this.traits=e,this._start=c(n,this),this._compensable=c(l,this),this._cancel=c(i,this),this._complete=c(o,this),this._destroy=c(s,this),this._fail=c(r,this),this._terminate=c(a,this)}hasTrait(t){return 0!=(this.traits&t)}complete(){return this._complete||r(this,"complete")}destroy(){return this._destroy||r(this,"destroy")}cancel(){return this._cancel||r(this,"cancel")}fail(){return this._fail||r(this,"fail")}terminate(){return this._terminate||r(this,"terminate")}compensable(){return this._compensable||r(this,"compensable")}start(){return this._start||r(this,"start")}}const l=new a("failed",o.DESTROYED|o.FAILED),p=new a("terminated",o.DESTROYED|o.TERMINATED),h=new a("completed",o.DESTROYED|o.COMPLETED),u=new a("terminating",o.ENDING|o.TERMINATED,{destroy:p}),m=new a("canceling",o.ENDING|o.FAILED|o.CANCELED,{destroy:l,complete:s,terminate:u}),d=new a("completing",o.ENDING|o.COMPLETED,{destroy:h,cancel:m,terminate:u}),f=new a("failing",o.ENDING|o.FAILED,{cancel:m,complete:d,destroy:l,terminate:u}),v=new a("compensable:failing",o.ENDING|o.FAILED,{complete:s,terminate:u,destroy:l}),g=new a("compensable:completed",o.ENDED|o.COMPLETED,{cancel:m,fail:v,destroy:h,compensable:s}),_=new a("compensable:completing",o.ENDING|o.COMPLETED,{destroy:g,terminate:u,compensable:s}),y=new a("compensable:running",o.RUNNING|o.COMPENSABLE,{cancel:m,complete:_,compensable:s,destroy:g,fail:f,terminate:u}),b=new a("running",o.RUNNING,{cancel:m,complete:d,compensable:y,destroy:p,fail:f,terminate:u}),w=new a("activated",o.ACTIVATED,{start:b,destroy:p}),S=Object.freeze({ACTIVATED:w,RUNNING:b,CANCELING:m,COMPLETING:d,COMPLETED:h,FAILING:f,FAILED:l,TERMINATING:u,TERMINATED:p});class E{constructor(t,e,n=null,i=null){this.id=t,this.element=e,this.parent=n,this.initiator=i,this.subscriptions=new Set,this.children=[],this.state=S.ACTIVATED}get running(){return this.hasTrait(o.RUNNING)}get destroyed(){return this.hasTrait(o.DESTROYED)}get completed(){return this.hasTrait(o.COMPLETED)}get canceled(){return this.hasTrait(o.CANCELED)}get failed(){return this.hasTrait(o.FAILED)}hasTrait(t){return this.state.hasTrait(t)}start(){return this.state=this.state.start(),this}compensable(){return this.state=this.state.compensable(),this}fail(t){return this.failed||(this.state=this.state.fail(),this.failInitiator=t),this}cancel(t){return this.canceled||(this.state=this.state.cancel(),this.cancelInitiator=t),this}terminate(t){return this.state=this.state.terminate(),this.terminateInitiator=t,this}complete(){return this.state=this.state.complete(),this}destroy(t){return this.state=this.state.destroy(),this.destroyInitiator=t,this}getTokens(){return this.children.filter(t=>!t.destroyed).length}getTokensByElement(t){return this.children.filter(e=>!e.destroyed&&e.element===t).length}}function C(t,e){const n=[];for(const i of t)e(i)&&n.push(i);return n}function x(t,e){for(const n of t)if(e(n))return n;return null}function B(t,e){return["type","name","ref","iref"].every(n=>!(n in t)||t[n]===e[n])}var j=n("979a");var O=Object.prototype.toString,T=Object.prototype.hasOwnProperty;function k(t){return void 0===t}function F(t){return"[object Array]"===O.call(t)}function $(t){var e=O.call(t);return"[object Function]"===e||"[object AsyncFunction]"===e||"[object GeneratorFunction]"===e||"[object AsyncGeneratorFunction]"===e||"[object Proxy]"===e}function A(t,e){return T.call(t,e)}function P(t,e){var n;return e=M(e),I(t,(function(t,i){if(e(t,i))return n=t,!1})),n}function I(t,e){var n;if(!k(t)){var i=F(t)?N:D;for(var o in t)if(A(t,o)&&!1===e(n=t[o],i(o)))return n}}function L(t,e){return!!P(t,e)}function M(t){return $(t)?t:function(e){return e===t}}function D(t){return t}function N(t){return Number(t)}function R(t){return t.filter(t=>Object(j.is)(t,"bpmn:SequenceFlow"))}function z(t){return Object(j.is)(t,"bpmn:MessageFlow")}function G(t){return Object(j.is)(t,"bpmn:SequenceFlow")}function q(t){return V(t)&&Q(t,"bpmn:CompensateEventDefinition")}function H(t){return Object(j.is)(t,"bpmn:Activity")&&t.businessObject.isForCompensation}function V(t){return Object(j.is)(t,"bpmn:CatchEvent")&&!W(t)}function Y(t){return Object(j.is)(t,"bpmn:BoundaryEvent")&&!W(t)}function U(t){return Object(j.is)(t,"bpmn:StartEvent")&&!W(t)}function W(t){return!!t.labelTarget}function Z(t){return Object(j.getBusinessObject)(t).triggeredByEvent}function J(t){return Object(j.is)(t,"bpmn:StartEvent")&&Object(j.getBusinessObject)(t).isInterrupting||Object(j.is)(t,"bpmn:BoundaryEvent")&&Object(j.getBusinessObject)(t).cancelActivity}function K(t,e){return e.some(e=>Object(j.is)(t,e))}function Q(t,e){return L(Object(j.getBusinessObject)(t).eventDefinitions,t=>Object(j.is)(t,e))}function X(t,e,n){const s=t.get("scopeIds",!1)||new i.default([32,36]),r={},c={},a=new tt,l=new Set,p=[],h=new Set,u=new Set;function m(t,e){if(p.push([e,t]),1!==p.length)return;let n;for(;n=p[0];){const[t,e]=n;e.destroyed||t(),p.shift()}$("tick")}function d(t){return c[t.type]||a}function f(t){const{element:e,parentScope:n,initiator:i=null}=t,o=t.scope||L({element:e,parent:n,initiator:i});return m(o,(function(){o.running||o.start(),T("signal",{...t,scope:o}),d(e).signal({...t,scope:o}),o.parent&&F(o.parent)})),o}function v(t){const{event:e,initiator:n,scope:i}=t,o=y(e),s=i.subscriptions,r=C(s,t=>B(o,t.event)),c=r.filter(t=>!t.event.interrupting),a=r.filter(t=>t.event.interrupting);if(!a.length)return c.map(t=>t.triggerFn(n)).flat();const l=a.find(t=>!t.event.boundary)||a[0],p=C(s,t=>t.event.persistent||function(t,e){return t.type===e.type&&t.boundary&&!e.boundary}(t.event,l.event));return s.forEach(t=>{p.includes(t)||t.remove()}),[l.triggerFn(n)].flat().filter(t=>t)}function g(t,e,n){const i=(e=y(e)).element,o={scope:t,event:e,element:i,triggerFn:n,remove(){_(o)}};return u.add(o),t.subscriptions.add(o),i&&k(i),o}function _(t){const{scope:e,event:n}=t;u.delete(t),e.subscriptions.delete(t),n.element&&k(n.element)}function y(t){if(!t.businessObject)return t;const e=J(t),i=Y(t),o=function(t){return Object(j.is)(t,"bpmn:StartEvent")||Object(j.is)(t,"bpmn:IntermediateCatchEvent")||Object(j.is)(t,"bpmn:ReceiveTask")?Object(j.getBusinessObject)(t).name||t.id:null}(t),s={element:t,interrupting:e,boundary:i,...o?{iref:o}:{}},r=(t.businessObject.eventDefinitions||{})[0];if(!r)return{...s,type:et(t)?"message":"none"};if(Object(j.is)(r,"bpmn:LinkEventDefinition"))return{...s,type:"link",name:r.name};if(Object(j.is)(r,"bpmn:SignalEventDefinition"))return{...s,type:"signal",ref:r.signalRef};if(Object(j.is)(r,"bpmn:TimerEventDefinition"))return{...s,type:"timer"};if(Object(j.is)(r,"bpmn:ConditionalEventDefinition"))return{...s,type:"condition"};if(Object(j.is)(r,"bpmn:EscalationEventDefinition"))return{...s,type:"escalation",ref:r.escalationRef};if(Object(j.is)(r,"bpmn:CancelEventDefinition"))return{...s,type:"cancel"};if(Object(j.is)(r,"bpmn:ErrorEventDefinition"))return{...s,type:"error",ref:r.errorRef};if(Object(j.is)(r,"bpmn:MessageEventDefinition"))return{...s,type:"message",ref:r.messageRef};if(Object(j.is)(r,"bpmn:CompensateEventDefinition")){let e=r.activityRef&&n.get(r.activityRef.id);return e||(e=U(t)&&Z(t.parent)?t.parent.parent:Y(t)?t.host:t.parent),{...s,type:"compensate",ref:e,persistent:!0}}throw new Error("unknown event definition",r)}function b(t,e=!0){const{element:n,parent:i,initiator:o}=t;e&&T("createScope",{element:n,scope:i});const r=new E(s.next(),n,i,o);return i&&i.children.push(r),h.add(r),e&&$("createScope",{scope:r}),k(n),i&&k(i.element),r}function w(t){if("function"==typeof t)return t;const{event:e,element:n,scope:i}=t,o=t.elements||n&&[n],s=e&&y(e);return t=>(!s||B(s,t.event))&&(!o||o.includes(t.element))&&(!i||i===t.scope)}function S(t){if("function"==typeof t)return t;const{element:e,waitsOnElement:n,parent:i,trait:s=o.RUNNING,subscribedTo:r}=t,c=r?function(t){const e="function"===t?t:w(t);return t=>Array.from(t.subscriptions).some(e)}(r):()=>!0;return t=>(!e||t.element===e)&&(!i||t.parent===i)&&(!n||t.getTokensByElement(n)>0)&&t.hasTrait(s)&&c(t)}function O(t,e=null){if(!t.destroyed){t.destroy(e);for(const e of t.subscriptions){const n=e.event.traits||o.ACTIVE;t.hasTrait(n)||_(e)}if(t.destroyed){for(const n of t.children)n.destroyed||O(n,e);T("destroyScope",{element:t.element,scope:t}),h.delete(t),$("destroyScope",{scope:t})}k(t.element),t.parent&&k(t.parent.element)}}function T(t,e){$("trace",{...e,action:t})}function k(t){l.add(t),p.length||$("tick")}function F(t){$("scopeChanged",{scope:t})}function $(t,n={}){return e.fire("tokenSimulation.simulator."+t,n)}function A(t,n){e.on("tokenSimulation.simulator."+t,n)}function P(t,n){e.off("tokenSimulation.simulator."+t,n)}function I(t,e){const n=M(t);r[t.id||t]={...n,...e},k(t)}function L(t){const{element:e}=t,n=b(t),{children:i=[],attachers:o=[]}=e;for(const t of i)if(Z(t)){const e=t.children.filter(t=>U(t)&&!q(t));for(const i of e)g(n,i,e=>f({element:t,parentScope:n,startEvent:i,initiator:e}))}for(const t of o)Y(t)&&!q(t)&&g(n,t,e=>f({element:t,parentScope:n.parent,hostScope:n,initiator:e}));return n}function M(t){return r[t.id||t]||{}}A("tick",(function(){for(const t of l)$("elementChanged",{element:t});l.clear()})),this.createScope=b,this.destroyScope=O,this.findScope=function(t){return x(h,S(t))},this.findScopes=function(t){return C(h,S(t))},this.findSubscription=function(t){return x(u,w(t))},this.findSubscriptions=function(t){return C(u,w(t))},this.waitAtElement=function(t,e=!0){I(t,{wait:e})},this.waitForScopes=function(t,e){if(!e.length)return;const n={type:"all-completed",persistent:!1},i=new Set(e),o=e=>{i.delete(e.scope),0===i.size&&(P("destroyScope",o),v({scope:t,event:n}))};return A("destroyScope",o),n},this.setConfig=I,this.getConfig=M,this.signal=f,this.enter=function(t){const{element:e,scope:n,initiator:i=n}=t,o=L({element:e,parent:n,initiator:i});return m(o,(function(){o.running||o.start(),T("enter",t),d(e).enter({...t,initiator:i,scope:o}),F(n)})),o},this.exit=function(t){const{element:e,scope:n,initiator:i=n}=t;m(n,(function(){T("exit",t),d(e).exit({...t,initiator:i}),n.running&&n.complete(),O(n,i),n.parent&&F(n.parent)}))},this.subscribe=g,this.trigger=v,this.reset=function(){for(const t of h)O(t);for(const t of function(){const t=[];return n.forEach(e=>{if(!K(e,["bpmn:Process","bpmn:Participant"]))return;const n=b({element:e},!1);t.push(n);const i=e.children.filter(U);for(const t of i){g(n,{...y(t),persistent:!0},n=>f({element:e,startEvent:t,initiator:n}))}}),t}())h.add(t);$("tick"),$("reset")},this.on=A,this.off=P,this.registerBehavior=function(t,e){c[t]=e}}function tt(){this.signal=function(t){console.log("ignored #exit",t.element)},this.exit=function(t){console.log("ignored #exit",t.element)},this.enter=function(t){console.log("ignored #enter",t.element)}}function et(t){return Object(j.is)(t,"bpmn:ReceiveTask")||t.incoming.some(t=>Object(j.is)(t,"bpmn:MessageFlow"))}function nt(t,e){this._simulator=t,this._activityBehavior=e,t.registerBehavior("bpmn:StartEvent",this)}function it(t,e,n){this._intermediateThrowEventBehavior=n,this._scopeBehavior=e,t.registerBehavior("bpmn:EndEvent",this)}function ot(t,e,n){this._simulator=t,this._activityBehavior=e,this._scopeBehavior=n,t.registerBehavior("bpmn:BoundaryEvent",this)}function st(t,e){this._activityBehavior=e,this._simulator=t,t.registerBehavior("bpmn:IntermediateCatchEvent",this),t.registerBehavior("bpmn:ReceiveTask",this)}function rt(t,e,n){this._simulator=t,this._activityBehavior=e,this._eventBehaviors=n,t.registerBehavior("bpmn:IntermediateThrowEvent",this)}function ct(t){this._simulator=t,t.registerBehavior("bpmn:ExclusiveGateway",this)}function at(t,e){this._simulator=t,this._activityBehavior=e,t.registerBehavior("bpmn:ParallelGateway",this)}function lt(t){this._simulator=t,t.registerBehavior("bpmn:EventBasedGateway",this)}function pt(t,e,n){this._simulator=t,this._scopeBehavior=e,this._transactionBehavior=n;const i=["bpmn:BusinessRuleTask","bpmn:CallActivity","bpmn:ManualTask","bpmn:ScriptTask","bpmn:SendTask","bpmn:ServiceTask","bpmn:Task","bpmn:UserTask"];for(const e of i)t.registerBehavior(e,this)}function ht(t,e,n,i){this._simulator=t,this._activityBehavior=e,this._scopeBehavior=n,this._transactionBehavior=i,t.registerBehavior("bpmn:SubProcess",this),t.registerBehavior("bpmn:Transaction",this),t.registerBehavior("bpmn:AdHocSubProcess",this)}X.$inject=["injector","eventBus","elementRegistry"],nt.prototype.signal=function(t){this._simulator.exit(t)},nt.prototype.exit=function(t){this._activityBehavior.exit(t)},nt.$inject=["simulator","activityBehavior"],it.$inject=["simulator","scopeBehavior","intermediateThrowEventBehavior"],it.prototype.enter=function(t){this._intermediateThrowEventBehavior.enter(t)},it.prototype.signal=function(t){this._intermediateThrowEventBehavior.signal(t)},it.prototype.exit=function(t){const{scope:e}=t;this._scopeBehavior.tryExit(e.parent,e)},ot.prototype.signal=function(t){const{element:e,scope:n,hostScope:i=this._simulator.findScope({parent:n.parent,element:e.host})}=t;if(!i)throw new Error("host scope not found");if(Object(j.getBusinessObject)(e).cancelActivity){this._scopeBehavior.interrupt(i,n);const e=this._scopeBehavior.tryExit(i,n);if(e){const n=this._simulator.subscribe(i,e,e=>(n.remove(),this._simulator.exit(t)));return}}this._simulator.exit(t)},ot.prototype.exit=function(t){this._activityBehavior.exit(t)},ot.$inject=["simulator","activityBehavior","scopeBehavior"],st.$inject=["simulator","activityBehavior"],st.prototype.signal=function(t){const{element:e}=t;return Object(j.is)(e,"bpmn:ReceiveTask")?this._activityBehavior.signal(t):this._simulator.exit(t)},st.prototype.enter=function(t){const{element:e}=t;if(Object(j.is)(e,"bpmn:ReceiveTask")){const e=this._activityBehavior._triggerMessages(t);if(e)return this._activityBehavior.signalOnEvent(t,e)}return this._activityBehavior.signalOnEvent(t,e)},st.prototype.exit=function(t){this._activityBehavior.exit(t)},rt.prototype.enter=function(t){const{element:e}=t,n=this._eventBehaviors.get(e);if(n){const e=n(t);if(e)return this._activityBehavior.signalOnEvent(t,e)}this._activityBehavior.enter(t)},rt.prototype.signal=function(t){this._activityBehavior.signal(t)},rt.prototype.exit=function(t){this._activityBehavior.exit(t)},rt.$inject=["simulator","activityBehavior","eventBehaviors"],ct.prototype.enter=function(t){this._simulator.exit(t)},ct.prototype.exit=function(t){const{element:e,scope:n}=t,i=R(e.outgoing);if(1===i.length)return this._simulator.enter({element:i[0],scope:n.parent});const{activeOutgoing:o}=this._simulator.getConfig(e),s=i.find(t=>t===o);if(!s)throw new Error("no outgoing configured");return this._simulator.enter({element:s,scope:n.parent})},ct.$inject=["simulator"],at.prototype.enter=function(t){const{scope:e,element:n}=t,i=R(n.incoming),{parent:o}=e,s=this._simulator.findScopes({parent:o,element:n});if(s.length===i.length){for(const t of s)t!==e&&this._simulator.destroyScope(t.complete(),e);this._simulator.exit(t)}},at.prototype.exit=function(t){this._activityBehavior.exit(t)},at.$inject=["simulator","activityBehavior"],lt.$inject=["simulator"],lt.prototype.enter=function(t){const{element:e,scope:n}=t,i=n.parent,o=function(t){return t.outgoing.map(t=>t.target).filter(t=>K(t,["bpmn:IntermediateCatchEvent","bpmn:ReceiveTask"]))}(e).map(t=>this._simulator.subscribe(i,t,e=>(o.forEach(t=>t.remove()),this._simulator.destroyScope(n,e),this._simulator.signal({element:t,parentScope:i,initiator:e}))))},pt.$inject=["simulator","scopeBehavior","transactionBehavior"],pt.prototype.signal=function(t){const e=this._triggerMessages(t);if(e)return this.signalOnEvent(t,e);this._simulator.exit(t)},pt.prototype.enter=function(t){const{element:e}=t,n=this.waitAtElement(e);if(n)return this.signalOnEvent(t,n);const i=this._triggerMessages(t);if(i)return this.signalOnEvent(t,i);this._simulator.exit(t)},pt.prototype.exit=function(t){const{element:e,scope:n}=t,i=n.parent,o=!n.failed;o&&!Z(e)&&this._transactionBehavior.registerCompensation(n);const s=o?e.outgoing.filter(G):[];s.forEach(t=>this._simulator.enter({element:t,scope:i})),0===s.length&&this._scopeBehavior.tryExit(i,n)},pt.prototype.signalOnEvent=function(t,e){const{scope:n,element:i}=t,o=this._simulator.subscribe(n,e,t=>(o.remove(),this._simulator.signal({scope:n,element:i,initiator:t})))},pt.prototype.waitAtElement=function(t){return this._simulator.getConfig(t).wait&&{element:t,type:"continue",interrupting:!1,boundary:!1}},pt.prototype._getMessageContexts=function(t,e=null){const n=e?t=>t.referencePoint.x>e.x:()=>!0;return[...t.incoming.filter(z).map(t=>{return{incoming:t,referencePoint:(e=t.waypoints,e&&e[e.length-1])};var e}),...t.outgoing.filter(z).map(t=>{return{outgoing:t,referencePoint:(e=t.waypoints,e&&e[0])};var e})].sort((t,e)=>t.referencePoint.x-e.referencePoint.x).filter(n)},pt.prototype._triggerMessages=function(t){const{element:e,initiator:n,scope:i}=t;let o=i.messageContexts;o||(o=i.messageContexts=this._getMessageContexts(e));const s=n&&n.element;if(z(s)&&i.expectedIncoming!==s)console.debug("Simulator :: ActivityBehavior :: ignoring out-of-bounds message");else for(;o.length;){const{incoming:t,outgoing:s}=o.shift();if(t){if(!n)continue;return i.expectedIncoming=t,{element:e,type:"message",name:t.id,interrupting:!1,boundary:!1}}this._simulator.signal({element:s})}},ht.$inject=["simulator","activityBehavior","scopeBehavior","transactionBehavior"],ht.prototype.signal=function(t){this._start(t)},ht.prototype.enter=function(t){const{element:e}=t,n=this._activityBehavior.waitAtElement(e);if(n)return this._activityBehavior.signalOnEvent(t,n);this._start(t)},ht.prototype.exit=function(t){const{scope:e}=t,n=e.parent;n.failInitiator===e&&n.complete(),this._activityBehavior.exit(t)},ht.prototype._start=function(t){const{element:e,startEvent:n,scope:i}=t,o=i.parent;if(Z(e)){if(!n)throw new Error("missing : required for event sub-process")}else if(n)throw new Error("unexpected : not allowed for sub-process");if(o.destroyed)throw new Error(`target scope <${o.id}> destroyed`);(function(t){return Object(j.is)(t,"bpmn:Transaction")})(e)&&this._transactionBehavior.setup(t),n&&J(n)&&this._scopeBehavior.interrupt(o,i);const s=n?[n]:function(t){return t.children.filter(t=>{if(W(t))return!1;return!t.incoming.find(t=>Object(j.is)(t,"bpmn:SequenceFlow"))&&(!H(t)&&(!Z(t)&&K(t,["bpmn:Activity","bpmn:StartEvent","bpmn:EndEvent"])))})}(e);for(const t of s)this._simulator.signal({element:t,parentScope:i,initiator:i})};const ut={type:"cancel",interrupting:!0,boundary:!1,persistent:!0};function mt(t,e){this._simulator=t,this._scopeBehavior=e}function dt(t,e){this._simulator=t,this._scopeBehavior=e,t.registerBehavior("bpmn:SequenceFlow",this)}function ft(t){this._simulator=t,t.registerBehavior("bpmn:MessageFlow",this)}function vt(t,e){return"label"!==t.type&&(Array.isArray(e)||(e=[e]),e.some((function(e){return Object(j.is)(t,e)})))}function gt(t,e){return L(Object(j.getBusinessObject)(t).eventDefinitions,t=>vt(t,e))}function _t(t,e,n){this._simulator=t,this._elementRegistry=e,this._scopeBehavior=n}function yt(t){return e=t,n="bpmn:LinkEventDefinition",P(Object(j.getBusinessObject)(e).eventDefinitions,t=>vt(t,n));var e,n}function bt(t){for(;Z(t.parent.element);)t=t.parent;return t.parent}mt.$inject=["simulator","scopeBehavior"],mt.prototype.setup=function(t){const{scope:e}=t,n=this._simulator.subscribe(e,ut,t=>(n.remove(),this.cancel({scope:e,initiator:t}))),i={type:"compensate",ref:e.element,persistent:!0,traits:o.NOT_DEAD},s=this._simulator.subscribe(e,i,t=>e.canceled?(s.remove(),this.compensate({scope:e,element:e.element,initiator:t})):this._simulator.trigger({event:ut,scope:e}))},mt.prototype.cancel=function(t){const{scope:e,initiator:n}=t;if(!e.destroyed)return e.cancel(n),this._simulator.trigger({event:{type:"compensate",ref:e.element},initiator:n,scope:e}),this._simulator.trigger({scope:e,initiator:n,event:ut})},mt.prototype.registerCompensation=function(t){const{element:e}=t,n=e.children.filter(Z).map(t=>t.children.find(t=>U(t)&&q(t))).filter(t=>t),i=e.attachers.filter(q);if(!n.length&&!i.length)return;const s=this.findTransactionScope(t.parent);Object(j.is)(s.element,"bpmn:Transaction")||this.makeCompensable(s);for(const i of n){const n={element:i,type:"compensate",persistent:!0,interrupting:!0,ref:e,traits:o.NOT_DEAD},s=i.parent,r=this._simulator.subscribe(t,n,e=>(r.remove(),this._simulator.signal({initiator:e,element:s,startEvent:i,parentScope:t})))}for(const t of i){const n={element:t,type:"compensate",persistent:!0,ref:e,traits:o.NOT_DEAD},i=t.outgoing.map(t=>t.target).find(H);if(!i)continue;const r=this._simulator.subscribe(s,n,t=>(r.remove(),this._simulator.enter({initiator:t,element:i,scope:s})))}},mt.prototype.makeCompensable=function(t){if(t.hasTrait(o.COMPENSABLE)||!t.parent)return;const e={type:"compensate",ref:t.element,interrupting:!0,persistent:!0,traits:o.NOT_DEAD};t.compensable();const n=this._simulator.subscribe(t,e,e=>(n.remove(),t.fail(e),this.compensate({scope:t,element:t.element,initiator:e}),this._scopeBehavior.tryExit(t,e),t)),i=t.parent;if(!i)return;const s=this._simulator.subscribe(i,e,n=>(s.remove(),this._simulator.trigger({scope:t,event:e,initiator:n})));this.makeCompensable(i)},mt.prototype.findTransactionScope=function(t){let e=t;for(;e;){const t=e.element;if(Object(j.is)(t,"bpmn:SubProcess")&&!Z(t))return e;if(K(t,["bpmn:Transaction","bpmn:Process","bpmn:Participant"]))return e;e=e.parent}throw function(t){throw new Error(`no transaction context for <${t.id}>`)}(t)},mt.prototype.compensate=function(t){const{scope:e,element:n}=t,i=C(e.subscriptions,t=>B({type:"compensate"},t.event)),o=i.filter(t=>t.event.ref===n),s=i.filter(t=>t.event.ref!==n);for(const t of o)this._scopeBehavior.preExit(e,e=>this._simulator.trigger(t));for(const t of s.reverse())this._scopeBehavior.preExit(e,e=>this._simulator.trigger(t))},dt.prototype.enter=function(t){this._simulator.exit(t)},dt.prototype.exit=function(t){const{element:e,scope:n}=t;this._simulator.enter({element:e.target,scope:n.parent})},dt.$inject=["simulator","scopeBehavior"],ft.$inject=["simulator"],ft.prototype.signal=function(t){this._simulator.exit(t)},ft.prototype.exit=function(t){const{element:e,scope:n}=t,i=e.target,o=V(i)?i:{type:"message",element:e,name:e.id},s=this._simulator.findSubscription({event:o,elements:[i,i.parent]});s&&this._simulator.trigger({event:o,initiator:n,scope:s.scope})},_t.$inject=["simulator","elementRegistry","scopeBehavior"],_t.prototype.get=function(t){const e={"bpmn:LinkEventDefinition":t=>{const{element:e,scope:n}=t,i=yt(e),o=n.parent,s=o.element.children.filter(t=>function(t){return V(t)&&Q(t,"bpmn:LinkEventDefinition")}(t)&&yt(t).name===i.name);for(const t of s)this._simulator.signal({element:t,parentScope:o,initiator:n})},"bpmn:SignalEventDefinition":t=>{const{element:e,scope:n}=t,i=this._simulator.findSubscriptions({event:e}),o=new Set;for(const t of i){const i=t.scope;o.has(i)||(o.add(i),this._simulator.trigger({event:e,scope:i,initiator:n}))}},"bpmn:EscalationEventDefinition":t=>{const{element:e,scope:n}=t,i=this._simulator.findScopes({subscribedTo:{event:e},trait:o.ACTIVE});let s=n;for(;s=s.parent;)if(i.includes(s)){this._simulator.trigger({event:e,scope:s,initiator:n});break}},"bpmn:ErrorEventDefinition":t=>{const{element:e,scope:n}=t;this._simulator.trigger({event:e,initiator:n,scope:bt(n)})},"bpmn:TerminateEventDefinition":t=>{const{scope:e}=t;this._scopeBehavior.terminate(e.parent,e)},"bpmn:CancelEventDefinition":t=>{const{scope:e,element:n}=t;this._simulator.trigger({event:n,initiator:e,scope:bt(e)})},"bpmn:CompensateEventDefinition":t=>{const{scope:e,element:n}=t;return this._simulator.waitForScopes(e,this._simulator.trigger({event:n,scope:bt(e)}))}},n=Object.entries(e).find(e=>gt(t,e[0]));return n&&n[1]};const wt={type:"pre-exit",persistent:!0,interrupting:!0,boundary:!1},St={type:"exit",interrupting:!0,boundary:!1,persistent:!0};function Et(t){this._simulator=t}function Ct(t){return"function"==typeof t?t:e=>e===t}function xt(t,e){this._simulator=t,this._scopeBehavior=e,t.registerBehavior("bpmn:Process",this),t.registerBehavior("bpmn:Participant",this)}Et.$inject=["simulator"],Et.prototype.isFinished=function(t,e=null){return e=Ct(e),t.children.every(t=>t.destroyed||t.completed||e(t))},Et.prototype.destroyChildren=function(t,e,n=null){n=Ct(n),t.children.filter(t=>!t.destroyed&&!n(t)).map(t=>{this._simulator.destroyScope(t,e)})},Et.prototype.terminate=function(t,e){this.destroyChildren(t,e),t.terminate(e),this.tryExit(t,e)},Et.prototype.interrupt=function(t,e){this.destroyChildren(t,e,e),t.fail(e)},Et.prototype.tryExit=function(t,e){if(!t)throw new Error("missing ");if(e||(e=t),!this.isFinished(t,e))return St;const n=this._simulator.findSubscriptions({event:wt,scope:t});for(const t of n){const{event:n,scope:i}=t;if(this._simulator.trigger({event:n,scope:i,initiator:e}).length)return St}this._simulator.trigger({event:St,scope:t,initiator:e}),this.exit({scope:t,initiator:e})},Et.prototype.exit=function(t){const{scope:e,initiator:n}=t;if(!n)throw new Error("missing ");this._simulator.exit({element:e.element,scope:e,initiator:n})},Et.prototype.preExit=function(t,e){const n=this._simulator.subscribe(t,wt,t=>(n.remove(),e(t)));return n},xt.prototype.signal=function(t){const{startEvent:e,scope:n}=t;if(!e)throw new Error("missing ");this._simulator.signal({element:e,parentScope:n})},xt.prototype.exit=function(t){const{scope:e,initiator:n}=t;this._scopeBehavior.destroyChildren(e,n)},xt.$inject=["simulator","scopeBehavior"];var Bt={__depends__:[{__init__:["startEventBehavior","endEventBehavior","boundaryEventBehavior","intermediateCatchEventBehavior","intermediateThrowEventBehavior","exclusiveGatewayBehavior","parallelGatewayBehavior","eventBasedGatewayBehavior","subProcessBehavior","sequenceFlowBehavior","messageFlowBehavior","processBehavior"],startEventBehavior:["type",nt],endEventBehavior:["type",it],boundaryEventBehavior:["type",ot],intermediateCatchEventBehavior:["type",st],intermediateThrowEventBehavior:["type",rt],exclusiveGatewayBehavior:["type",ct],parallelGatewayBehavior:["type",at],eventBasedGatewayBehavior:["type",lt],activityBehavior:["type",pt],subProcessBehavior:["type",ht],sequenceFlowBehavior:["type",dt],messageFlowBehavior:["type",ft],eventBehaviors:["type",_t],scopeBehavior:["type",Et],processBehavior:["type",xt],transactionBehavior:["type",mt]}],__init__:[["eventBus","simulator",function(t,e){t.on(["tokenSimulation.toggleMode","tokenSimulation.resetSimulation"],5e3,t=>{e.reset()})}]],simulator:["type",X]},jt=n("a092"),Ot=n.n(jt);function Tt(t,e){t.invoke(ft,this),this._animation=e}function kt(t,e){t.invoke(dt,this),this._animation=e}Ot()(Tt,ft),Tt.$inject=["injector","animation"],Tt.prototype.signal=function(t){const{element:e,scope:n}=t;this._animation.animate(e,n,()=>{ft.prototype.signal.call(this,t)})},Ot()(kt,dt),kt.$inject=["injector","animation"],kt.prototype.enter=function(t){const{element:e,scope:n}=t;this._animation.animate(e,n,()=>{dt.prototype.enter.call(this,t)})};var Ft={sequenceFlowBehavior:["type",kt],messageFlowBehavior:["type",Tt]};const $t="tokenSimulation.toggleMode",At="tokenSimulation.resetSimulation",Pt="tokenSimulation.simulator.destroyScope",It="tokenSimulation.simulator.createScope",Lt=t=>!0;function Mt(t,e){this._eventBus=t,this._simulator=e,this._filter=Lt,t.on([$t,At],()=>{this._filter=Lt}),t.on(Pt,t=>{const{scope:e}=t;this._scope===e&&e.parent&&this.toggle(e.parent)}),t.on(It,t=>{const{scope:e}=t;e.parent||!this._scope||Dt(this._scope,e)||this.toggle(null)})}function Dt(t,e){do{if(t===e)return!0}while(e=e.parent);return!1}Mt.prototype.toggle=function(t){const e=this._scope!==t;this._scope=e?t:null,this._filter=this._scope?t=>Dt(this._scope,t):t=>!0,this._eventBus.fire("tokenSimulation.scopeFilterChanged",{filter:this._filter,scope:this._scope})},Mt.prototype.isShown=function(t){return"string"==typeof t&&(t=this._simulator.findScope(e=>e.id===t)),t&&this._filter(t)},Mt.prototype.findScope=function(t){return this._simulator.findScopes(t).filter(t=>this.isShown(t))[0]},Mt.$inject=["eventBus","simulator"];var Nt={scopeFilter:["type",Mt]},Rt=n("f6d6"),zt=n("bbf8");const Gt=getComputedStyle(document.documentElement),qt=Gt.getPropertyValue("--token-simulation-green-base-44"),Ht=Gt.getPropertyValue("--token-simulation-white");function Vt(){}function Yt(t,e){return 2===e.length?Jt:1===t?Wt:t===e.length-1?Zt:Ut}const Ut=function(t){return t},Wt=function(t){return 1-Math.cos(t*Math.PI/2)},Zt=function(t){return Math.sin(t*Math.PI/2)},Jt=function(t){return-Math.cos(t*Math.PI)/2+.5};function Kt(t,e,n){this._eventBus=e,this._scopeFilter=n,this._animations=new Set,this._speed=1,e.on("import.done",()=>{const e=Object(Rt.query)(".viewport",t._svg);this.group=Object(zt.b)(Object(zt.g)(''),e)}),e.on(At,()=>{this.clearAnimations()}),e.on("tokenSimulation.pauseSimulation",()=>{this.pause()}),e.on("tokenSimulation.playSimulation",()=>{this.play()}),e.on("tokenSimulation.scopeFilterChanged",t=>{this.each(t=>{this._scopeFilter.isShown(t.scope)?t.show():t.hide()})}),e.on(Pt,t=>{const{scope:e}=t;this.clearAnimations(e)})}function Qt(t,e,n){this.gfx=t,this.waypoints=e,this.done=n,this._paused=!0,this._t=0,this._parts=[],this.create()}Kt.prototype.animate=function(t,e,n){this.createAnimation(t,e,n)},Kt.prototype.pause=function(){this.each(t=>t.pause())},Kt.prototype.play=function(){this.each(t=>t.play())},Kt.prototype.each=function(t){this._animations.forEach(t)},Kt.prototype.createAnimation=function(t,e,n=Vt){if(!this.group)return;const i=new Qt(this._createTokenGfx(e),t.waypoints,()=>{this._animations.delete(i),n()});return i.setSpeed(this.getAnimationSpeed()),this._scopeFilter.isShown(e)||i.hide(),i.scope=e,i.element=t,this._animations.add(i),this._eventBus.fire("tokenSimulation.animationCreated",{animation:i}),i.play(),i},Kt.prototype.setAnimationSpeed=function(t){this._speed=t,this.each(e=>e.setSpeed(t)),this._eventBus.fire("tokenSimulation.animationSpeedChanged",{speed:t})},Kt.prototype.getAnimationSpeed=function(){return this._speed},Kt.prototype.clearAnimations=function(t){this.each(e=>{t&&e.scope!==t||e.remove()})},Kt.prototype._createTokenGfx=function(t){const e=Object(zt.g)(this._getTokenSVG(t).trim());return Object(zt.b)(e,this.group)},Kt.prototype._getTokenSVG=function(t){const e=t.colors||{primary:qt,auxiliary:Ht};return`\n \n \n 1\n \n `},Kt.$inject=["canvas","eventBus","scopeFilter"],Qt.prototype.pause=function(){this._paused=!0},Qt.prototype.play=function(){this._paused&&(this._paused=!1,this.tick(0)),this.schedule()},Qt.prototype.schedule=function(){if(this._paused)return;if(this._scheduled)return;const t=Date.now();this._scheduled=!0,requestAnimationFrame(()=>{this._scheduled=!1,this._paused||(this.tick((Date.now()-t)*this._speed),this.schedule())})},Qt.prototype.tick=function(t){const e=this._t=this._t+t,n=this._parts.find(t=>t.startTime<=e&&t.endTime>e);if(!n)return this.remove();const i=e-n.startTime,o=n.length*n.easing(i/n.duration),s=n.startLength+o,r=this._path.getPointAtLength(s);this.move(r.x,r.y)},Qt.prototype.move=function(t,e){Object(zt.c)(this.gfx,"transform",`translate(${t}, ${e})`)},Qt.prototype.create=function(){const t=this.waypoints,e=t.reduce((e,n,i)=>{const o=t[i-1];if(o){const c=e[e.length-1],a=c&&c.endLength||0,l=(s=o,r=n,Math.sqrt(Math.pow(s.x-r.x,2)+Math.pow(s.y-r.y,2)));e.push({startLength:a,endLength:a+l,length:l,easing:Yt(i,t)})}var s,r;return e},[]),n=e.reduce((function(t,e){return t+e.length}),0),i=t.reduce((t,e,n)=>{const i=e.x-10,o=e.y-10;return t.push([n>0?"L":"M",i,o]),t},[]).flat().join(" "),o=(s=n,Math.log(s)*(c=300,(r=250)+Math.floor(Math.random()*(c-r))));var s,r,c;this._parts=e.reduce((t,e,i)=>{const s=o/n*e.length,r=i>0?t[i-1].endTime:0,c=r+s;return[...t,{...e,startTime:r,endTime:c,duration:s}]},[]),this._path=Object(zt.g)(``),this._t=0},Qt.prototype.show=function(){Object(zt.c)(this.gfx,"display","")},Qt.prototype.hide=function(){Object(zt.c)(this.gfx,"display","none")},Qt.prototype.remove=function(){this.pause(),Object(zt.k)(this.gfx),this.done()},Qt.prototype.setSpeed=function(t){this._speed=t};var Xt={__depends__:[Bt,Ft,Nt],animation:["type",Kt]},te=n("2f5d"),ee=n.n(te);function ne(t){const e=ee()({count:60}).filter(t=>n(t.substring(1))<200);function n(t){return(299*parseInt(t.substr(0,2),16)+587*parseInt(t.substr(2,2),16)+114*parseInt(t.substr(4,2),16))/1e3}let i=0;t.on(It,1500,t=>{const{scope:o}=t;o.colors=function(t){const{element:o}=t;if(o&&"bpmn:MessageFlow"===o.type)return{primary:"#999",auxiliary:"#FFF"};if(t.parent)return t.parent.colors;const s=e[i++%e.length];return{primary:s,auxiliary:n(s)>=128?"#111":"#fff"}}(o)})}ne.$inject=["eventBus"];var ie={__init__:["coloredScopes"],coloredScopes:["type",ne]};function oe(t){return function(e=""){return`${t}`}}const se=oe('\x3c!-- Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --\x3e'),re=oe('\x3c!-- Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --\x3e'),ce=oe('\x3c!-- Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --\x3e'),ae=oe('\n \n \n\n'),le=oe('\x3c!-- Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --\x3e'),pe=oe('\x3c!-- Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --\x3e'),he=oe('\x3c!-- Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --\x3e'),ue=oe('\x3c!-- Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --\x3e'),me=oe('\x3c!-- Adapted from Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --\x3e'),de=oe('\x3c!-- Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --\x3e'),fe=oe('\x3c!-- Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --\x3e'),ve=oe('\x3c!-- Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --\x3e'),ge=oe('\x3c!-- Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --\x3e'),_e=oe('\x3c!-- Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --\x3e'),ye=oe('\x3c!-- Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) --\x3e');function be(t){this._exclusiveGatewaySettings=t}function we(t){this._simulator=t}function Se(t){this._simulator=t}be.prototype.createContextPads=function(t){if(t.outgoing.filter((function(t){return vt(t,"bpmn:SequenceFlow")})).length<2)return;const e=`\n
\n ${le()}\n
\n `;return[{action:()=>{this._exclusiveGatewaySettings.setSequenceFlow(t)},element:t,html:e}]},be.$inject=["exclusiveGatewaySettings"],we.prototype.createContextPads=function(t){return vt(t,"bpmn:ReceiveTask")||vt(t,"bpmn:SubProcess")&&Object(j.getBusinessObject)(t).triggeredByEvent?[]:[this.createPauseContextPad(t)]},we.prototype.createPauseContextPad=function(t){const e=this._isPaused(t),n=`\n
\n ${(e?ae:ue)("show-hover")}\n ${ue("hide-hover")}\n
\n `;return{action:()=>{this._togglePaused(t)},element:t,hideContexts:()=>this._findSubscriptions({element:t}),html:n}},we.prototype._isPaused=function(t){const{wait:e}=this._simulator.getConfig(t);return e},we.prototype._togglePaused=function(t){const e=!this._isPaused(t);this._simulator.waitAtElement(t,e)},we.prototype._findSubscriptions=function(t){return this._simulator.findSubscriptions(t)},we.$inject=["simulator"],Se.$inject=["simulator"],Se.prototype.createContextPads=function(t){return[this.createTriggerContextPad(t)]},Se.prototype.createTriggerContextPad=function(t){const e=`\n
\n ${me()}\n
\n `;return{action:t=>{const{event:e,scope:n}=t[0];return this._simulator.trigger({event:e,scope:n})},element:t,html:e,contexts:()=>this._findSubscriptions({element:t})}},Se.prototype._findSubscriptions=function(t){return this._simulator.findSubscriptions(t)};function Ee(t,e,n,i,o,s){this._elementRegistry=e,this._overlays=n,this._injector=i,this._canvas=o,this._scopeFilter=s,this._overlayCache=new Map,this._handlerIdx=0,this._handlers=[],this.registerHandler("bpmn:ExclusiveGateway",be),this.registerHandler("bpmn:Activity",we),this.registerHandler("bpmn:StartEvent",Se),this.registerHandler("bpmn:IntermediateCatchEvent",Se),this.registerHandler("bpmn:BoundaryEvent",Se),this.registerHandler("bpmn:Activity",Se),t.on($t,500,t=>{t.active?this.openContextPads():this.closeContextPads()}),t.on(At,500,()=>{this.closeContextPads(),this.openContextPads()}),t.on("tokenSimulation.scopeFilterChanged",t=>{const e=Object(Rt.queryAll)(".djs-overlay-ts-context-menu [data-scope-ids]",n._overlayRoot);for(const t of e){const e=t.dataset.scopeIds.split(",").some(t=>s.isShown(t));Object(Rt.classes)(t).toggle("hidden",!e)}const i=Object(Rt.queryAll)(".djs-overlay-ts-context-menu [data-hide-scope-ids]",n._overlayRoot);for(const t of i){const e=t.dataset.hideScopeIds.split(",").some(t=>s.isShown(t));Object(Rt.classes)(t).toggle("hidden",e)}}),t.on("tokenSimulation.simulator.elementChanged",500,t=>{const{element:e}=t;this.updateElementContextPads(e)})}Ee.prototype.registerHandler=function(t,e){const n=this._injector.instantiate(e);n.hash=String(this._handlerIdx++),this._handlers.push({handler:n,type:t})},Ee.prototype.getHandlers=function(t){return this._handlers.filter(({type:e})=>vt(t,e)).map(({handler:t})=>t)},Ee.prototype.openContextPads=function(t){t||(t=this._canvas.getRootElement()),this._elementRegistry.forEach(e=>{(function(t,e){do{if(t===e)return!0;e=e.parent}while(e);return!1})(t,e)&&this.updateElementContextPads(e)})},Ee.prototype._getOverlays=function(t){return this._overlayCache.get(t)||[]},Ee.prototype._addOverlay=function(t,e){const{handlerHash:n}=e;if(!n)throw new Error(" required");const i=this._overlays.add(t,"ts-context-menu",{...e,position:{top:-15,left:-15},show:{minZoom:.5}}),o=this._overlays.get(i),s=this._overlayCache;s.has(n)||s.set(n,[]),s.get(n).push(o)},Ee.prototype._removeOverlay=function(t){const{id:e,handlerHash:n}=t;this._overlays.remove(e);const i=this._overlayCache.get(n)||[],o=i.indexOf(t);-1!==o&&i.splice(o,1)},Ee.prototype.updateElementContextPads=function(t){for(const e of this.getHandlers(t))this._updateElementContextPads(t,e)},Ee.prototype._updateElementContextPads=function(t,e){const n=(e.createContextPads(t)||[]).filter(t=>t),i=`${t.id}------${e.hash}`,o=this._getOverlays(i),s=[];for(const t of n){const{element:e,contexts:n,hideContexts:r,action:c,html:a}=t,l=`${t.element.id}-------${a}`;let p=o.find(t=>t.hash===l);const h=p&&p.html||Object(Rt.domify)(a);if(n){const t=n();h.dataset.scopeIds=t.map(t=>t.scope.id).join(",");const e=t.filter(t=>this._scopeFilter.isShown(t.scope));Object(Rt.classes)(h).toggle("hidden",0===e.length)}if(r){const t=r();h.dataset.hideScopeIds=t.map(t=>t.scope.id).join(",");const e=t.filter(t=>this._scopeFilter.isShown(t.scope));Object(Rt.classes)(h).toggle("hidden",e.length>0)}p?s.push(p):(c&&Rt.event.bind(h,"click",t=>{t.preventDefault();const e=n?n().filter(t=>this._scopeFilter.isShown(t.scope)):null;c(e)}),this._addOverlay(e,{hash:l,handlerHash:i,html:h}))}for(const t of o)s.includes(t)||this._removeOverlay(t)},Ee.prototype.closeContextPads=function(){for(const t of this._overlayCache.values())for(const e of t)this._closeOverlay(e);this._overlayCache.clear()},Ee.prototype._closeOverlay=function(t){this._overlays.remove(t.id)},Ee.$inject=["eventBus","elementRegistry","overlays","injector","canvas","scopeFilter"];var Ce={__depends__:[Nt],__init__:["contextPads"],contextPads:["type",Ee]};function xe(t,e,n){t.on(Pt,t=>{const{scope:e}=t,{destroyInitiator:i,element:o}=e;if(!e.completed||!i)return;["bpmn:Process","bpmn:Participant"].includes(o.type)&&n.addElementNotification(i.element,{type:"success",icon:ce(),text:"Finished",scope:e})})}xe.$inject=["eventBus","simulator","elementNotifications"];function Be(t,e){this._overlays=t,e.on([At,It,$t],()=>{this.clear()})}Be.prototype.addElementNotification=function(t,e){const n={top:-15,right:15},{type:i,icon:o,text:s,scope:r={}}=e,c=r.colors,a=c?`style="color: ${c.auxiliary}; background: ${c.primary}"`:"",l=Object(Rt.domify)(`\n
\n ${o||""}\n ${s}\n
\n `);this._overlays.add(t,"element-notification",{position:n,html:l,show:{minZoom:.5}})},Be.prototype.clear=function(){this._overlays.remove({type:"element-notification"})},Be.prototype.removeElementNotification=function(t){this._overlays.remove({element:t})},Be.$inject=["overlays","eventBus"];var je={elementNotifications:["type",Be]};const Oe=2e3,Te=he();function ke(t,e,n){this._eventBus=t,this._canvas=e,this._scopeFilter=n,this._init(),t.on([$t,At],t=>{this.clear()})}ke.prototype._init=function(){this.container=Object(Rt.domify)('
'),this._canvas.getContainer().appendChild(this.container)},ke.prototype.showNotification=function(t){const{text:e,type:n="info",icon:i=Te,scope:o,ttl:s=Oe}=t;if(o&&!this._scopeFilter.isShown(o))return;const r=i.startsWith("<")?i:``,c=o&&o.colors,a=c?`style="color: ${c.auxiliary}; background: ${c.primary}"`:"",l=Object(Rt.domify)(`\n
\n ${r}\n ${e}\n ${o?`${o.id}`:""}\n
\n `);for(this.container.appendChild(l);this.container.children.length>5;)this.container.children[0].remove();setTimeout((function(){l.remove()}),s)},ke.prototype.clear=function(){for(;this.container.children.length;)this.container.children[0].remove()},ke.$inject=["eventBus","canvas","scopeFilter"];var Fe={__depends__:[Nt],notifications:["type",ke]},$e={__depends__:[je,Fe],__init__:["simulationState"],simulationState:["type",xe]};function Ae(t,e,n,i,o){this._eventBus=t,this._canvas=e,this._scopeFilter=n,this._elementColors=i,this._simulationStyles=o,this._highlight=null,this._init(),t.on($t,t=>{t.active?Object(Rt.classes)(this._container).remove("hidden"):(Object(Rt.classes)(this._container).add("hidden"),Object(Rt.clear)(this._container),this.unhighlightScope())}),t.on("tokenSimulation.scopeFilterChanged",t=>{const e=this.getScopeElements();for(const t of e){const e=t.dataset.scopeId;Object(Rt.classes)(t).toggle("inactive",!this._scopeFilter.isShown(e))}}),t.on(It,t=>{this.addScope(t.scope)}),t.on(Pt,t=>{this.removeScope(t.scope)}),t.on("tokenSimulation.simulator.scopeChanged",t=>{this.updateScope(t.scope)}),t.on(At,()=>{this.removeAllInstances()})}function Pe(){this._cache={}}function Ie(){return{getPropertyValue:()=>""}}Ae.prototype._init=function(){this._container=Object(Rt.domify)(''),this._canvas.getContainer().appendChild(this._container)},Ae.prototype.addScope=function(t){const{element:e}=t;if(!["bpmn:Process","bpmn:SubProcess","bpmn:Participant"].includes(e.type))return;const n=t.colors,i=n?`style="color: ${n.auxiliary}; background: ${n.primary}"`:"",o=Object(Rt.domify)(`\n
\n ${t.getTokens()}\n
\n `);Rt.event.bind(o,"click",()=>{this._scopeFilter.toggle(t)}),Rt.event.bind(o,"mouseenter",()=>{this.highlightScope(e)}),Rt.event.bind(o,"mouseleave",()=>{this.unhighlightScope()}),this._scopeFilter.isShown(t)||Object(Rt.classes)(o).add("inactive"),this._container.appendChild(o)},Ae.prototype.getScopeElements=function(){return Object(Rt.queryAll)("[data-scope-id]",this._container)},Ae.prototype.getScopeElement=function(t){return Object(Rt.query)(`[data-scope-id="${t.id}"]`,this._container)},Ae.prototype.updateScope=function(t){const e=this.getScopeElement(t);e&&(e.textContent=t.getTokens())},Ae.prototype.removeScope=function(t){const e=this.getScopeElement(t);e&&e.remove()},Ae.prototype.removeAllInstances=function(){this._container.innerHTML=""},Ae.prototype.highlightScope=function(t){this.unhighlightScope(),this._highlight={element:t,colors:this._elementColors.get(t)},this._elementColors.set(t,this._getHighlightColors()),t.parent||Object(Rt.classes)(this._canvas.getContainer()).add("highlight")},Ae.prototype.unhighlightScope=function(){if(!this._highlight)return;const{element:t,colors:e}=this._highlight;this._elementColors.set(t,e),t.parent||Object(Rt.classes)(this._canvas.getContainer()).remove("highlight"),this._highlight=null},Ae.prototype._getHighlightColors=function(){return{fill:this._simulationStyles.get("--token-simulation-silver-base-97"),stroke:this._simulationStyles.get("--token-simulation-green-base-44")}},Ae.$inject=["eventBus","canvas","scopeFilter","elementColors","simulationStyles"],Pe.$inject=[],Pe.prototype.get=function(t){const e=this._cache[t];return e||(this._computedStyle||(this._computedStyle=this._getComputedStyle()),this._cache[t]=this._computedStyle.getPropertyValue(t).trim())},Pe.prototype._getComputedStyle=function(){return("function"==typeof getComputedStyle?getComputedStyle:Ie)("undefined"!=typeof document?document.documentElement:{})};var Le={simulationStyles:["type",Pe]},Me={__depends__:[Nt,Le],__init__:["showScopes"],showScopes:["type",Ae]},De=n("04ae");const Ne=he();function Re(t){const e=t&&t.businessObject.name;return e&&Object(De.a)(e)}function ze(t,e,n,i,o,s){this._notifications=e,this._tokenSimulationPalette=n,this._canvas=i,this._scopeFilter=o,this._init(),t.on("tokenSimulation.scopeFilterChanged",t=>{const e=Object(Rt.queryAll)(".bts-entry[data-scope-id]",this._container);for(const t of e){const e=t.dataset.scopeId;Object(Rt.classes)(t).toggle("inactive",!this._scopeFilter.isShown(e))}}),t.on(Pt,t=>{const{scope:e}=t,{element:n}=e,i=e.completed;if(!["bpmn:Process","bpmn:Participant","bpmn:SubProcess"].includes(n.type))return;const o=`${vt(n,"bpmn:SubProcess")?Re(n)||"SubProcess":"Process"} ${i?"finished":"canceled"}`;this.log({text:o,icon:i?ce():ve(),scope:e})}),t.on(It,t=>{const{scope:e}=t,{element:n}=e;if(!["bpmn:Process","bpmn:Participant","bpmn:SubProcess"].includes(n.type))return;const i=(vt(n,"bpmn:SubProcess")?Re(n)||"SubProcess":"Process")+" started";this.log({text:i,icon:ce(),scope:e})}),t.on("tokenSimulation.simulator.trace",t=>{const{action:e,scope:n,element:i}=t;if("exit"!==e)return;const o=n.parent,s=Re(i);if(vt(i,"bpmn:BusinessRuleTask")?this.log({text:s||"Business Rule Task",icon:"bpmn-icon-business-rule",scope:o}):vt(i,"bpmn:CallActivity")?this.log({text:s||"Call Activity",icon:"bpmn-icon-call-activity",scope:o}):(vt(i,"bpmn:IntermediateCatchEvent")||vt(i,"bpmn:IntermediateThrowEvent"))&&this.log({text:s||"Intermediate Event",icon:"bpmn-icon-intermediate-event-none",scope:o}),vt(i,"bpmn:BoundaryEvent"))this.log({text:s||"Boundary Event",icon:"bpmn-icon-intermediate-event-none",scope:o});else if(vt(i,"bpmn:ManualTask"))this.log({text:s||"Manual Task",icon:"bpmn-icon-manual",scope:o});else if(vt(i,"bpmn:ScriptTask"))this.log({text:s||"Script Task",icon:"bpmn-icon-script",scope:o});else if(vt(i,"bpmn:ServiceTask"))this.log({text:s||"Service Task",icon:"bpmn-icon-service",scope:o});else if(vt(i,"bpmn:Task"))this.log({text:s||"Task",icon:"bpmn-icon-task",scope:o});else if(vt(i,"bpmn:UserTask"))this.log({text:s||"User Task",icon:"bpmn-icon-user",scope:o});else if(vt(i,"bpmn:ExclusiveGateway")){if(i.outgoing.length<2)return;const t=Re(i.sequenceFlow);let e=s||"Gateway";t&&(e=e.concat(` ${re()} ${t}`)),this.log({text:e,icon:"bpmn-icon-gateway-xor",scope:o})}else vt(i,"bpmn:EndEvent")?gt(Object(j.getBusinessObject)(i),"bpmn:TerminateEventDefinition")?this.log({text:s||"Terminate End Event",icon:"bpmn-icon-end-event-terminate",scope:o}):this.log({text:s||"End Event",icon:"bpmn-icon-end-event-none",scope:o}):vt(i,"bpmn:StartEvent")&&this.log({text:s||"Start Event",icon:"bpmn-icon-start-event-none",scope:o})}),t.on([$t,At],t=>{this.clear(),Object(Rt.classes)(this._container).add("hidden")})}ze.prototype._init=function(){this._container=Object(Rt.domify)(`\n \n `),this._placeholder=Object(Rt.query)(".bts-placeholder",this._container),this._content=Object(Rt.query)(".bts-content",this._container),Rt.event.bind(this._content,"wheel",t=>{t.stopPropagation()}),Rt.event.bind(this._content,"mousedown",t=>{t.stopPropagation()}),this._close=Object(Rt.query)(".bts-close",this._container),Rt.event.bind(this._close,"click",()=>{Object(Rt.classes)(this._container).add("hidden")}),this._icon=Object(Rt.query)(".bts-log-icon",this._container),Rt.event.bind(this._icon,"click",()=>{Object(Rt.classes)(this._container).add("hidden")}),this._canvas.getContainer().appendChild(this._container),this.paletteEntry=Object(Rt.domify)(`\n
\n ${se()}\n
\n `),Rt.event.bind(this.paletteEntry,"click",()=>{Object(Rt.classes)(this._container).remove("hidden")}),this._tokenSimulationPalette.addEntry(this.paletteEntry,3)},ze.prototype.toggle=function(){const t=this._container;Object(Rt.classes)(t).has("hidden")?Object(Rt.classes)(t).remove("hidden"):Object(Rt.classes)(t).add("hidden")},ze.prototype.log=function(t){const{text:e,type:n="info",icon:i=Ne,scope:o}=t;Object(Rt.classes)(this._placeholder).add("hidden");const s=new Date,r=s.toLocaleTimeString()+":"+s.getUTCMilliseconds();this._notifications.showNotification(t);const c=i.startsWith("<")?i:``,a=o&&o.colors,l=a?`style="background: ${a.primary}; color: ${a.auxiliary}"`:"",p=Object(Rt.domify)(`\n

\n ${r}\n ${c}\n ${e}\n ${o?`${o.id}`:""}\n

\n `);Rt.delegate.bind(p,".bts-scope[data-scope-id]","click",t=>{this._scopeFilter.toggle(o)}),this._content.appendChild(p),this._content.scrollTop=this._content.scrollHeight},ze.prototype.clear=function(){for(;this._content.firstChild;)this._content.removeChild(this._content.firstChild);this._placeholder=Object(Rt.domify)('

No Entries

'),this._content.appendChild(this._placeholder)},ze.$inject=["eventBus","notifications","tokenSimulationPalette","canvas","scopeFilter","simulator"];var Ge={__depends__:[Fe,Nt],__init__:["log"],log:["type",ze]};const qe=["bpmn:InclusiveGateway","bpmn:ComplexGateway"];function He(t,e,n,i,o){this._eventBus=t,this._elementRegistry=e,this._elementNotifications=o,this._notifications=i,this._canvasParent=n.getContainer().parentNode,t.on($t,t=>{t.active?this.enable():this.clear()})}He.prototype.getUnsupportedElements=function(){return this._unsupportedElements},He.prototype.enable=function(){const t=[];this._elementRegistry.forEach(e=>{(function(t){return t.labelTarget})(e)||vt(e,qe)&&(this.showWarning(e),t.push(e))}),t.length&&this._notifications.showNotification({text:"Found unsupported elements",icon:pe(),type:"warning",ttl:5e3}),this._unsupportedElements=t},He.prototype.clear=function(){Object(Rt.classes)(this._canvasParent).remove("warning")},He.prototype.showWarning=function(t){this._elementNotifications.addElementNotification(t,{type:"warning",icon:pe(),text:"Not supported"})},He.$inject=["eventBus","elementRegistry","canvas","notifications","elementNotifications"];var Ve={__depends__:[je,Fe],__init__:["elementSupport"],elementSupport:["type",He]};const Ye=me(),Ue=ue();function We(t,e,n,i){this._eventBus=t,this._tokenSimulationPalette=e,this._notifications=n,this.canvasParent=i.getContainer().parentNode,this.isActive=!1,this.isPaused=!0,this._init(),t.on(It,1500,t=>{this.activate(),this.unpause()}),t.on([At,$t],()=>{this.deactivate(),this.pause()}),t.on("tokenSimulation.simulator.trace",1500,t=>{this.unpause()})}We.prototype._init=function(){this.paletteEntry=Object(Rt.domify)(`\n
\n ${Ye}\n
\n `),Rt.event.bind(this.paletteEntry,"click",this.toggle.bind(this)),this._tokenSimulationPalette.addEntry(this.paletteEntry,1)},We.prototype.toggle=function(){this.isPaused?this.unpause():this.pause()},We.prototype.pause=function(){this.isActive&&(Object(Rt.classes)(this.paletteEntry).remove("active"),Object(Rt.classes)(this.canvasParent).add("paused"),this.paletteEntry.innerHTML=Ye,this._eventBus.fire("tokenSimulation.pauseSimulation"),this._notifications.showNotification({text:"Pause Simulation"}),this.isPaused=!0)},We.prototype.unpause=function(){this.isActive&&this.isPaused&&(Object(Rt.classes)(this.paletteEntry).add("active"),Object(Rt.classes)(this.canvasParent).remove("paused"),this.paletteEntry.innerHTML=Ue,this._eventBus.fire("tokenSimulation.playSimulation"),this._notifications.showNotification({text:"Play Simulation"}),this.isPaused=!1)},We.prototype.activate=function(){this.isActive=!0,Object(Rt.classes)(this.paletteEntry).remove("disabled")},We.prototype.deactivate=function(){this.isActive=!1,Object(Rt.classes)(this.paletteEntry).remove("active"),Object(Rt.classes)(this.paletteEntry).add("disabled")},We.$inject=["eventBus","tokenSimulationPalette","notifications","canvas"];var Ze={__depends__:[Fe],__init__:["pauseSimulation"],pauseSimulation:["type",We]};function Je(t,e,n){this._eventBus=t,this._tokenSimulationPalette=e,this._notifications=n,this._init(),t.on(It,()=>{Object(Rt.classes)(this._paletteEntry).remove("disabled")}),t.on($t,t=>{(this._active=t.active)||this.resetSimulation()})}Je.prototype._init=function(){this._paletteEntry=Object(Rt.domify)(`\n
\n ${de()}\n
\n `),Rt.event.bind(this._paletteEntry,"click",()=>{this.resetSimulation(),this._notifications.showNotification({text:"Reset Simulation",type:"info"})}),this._tokenSimulationPalette.addEntry(this._paletteEntry,2)},Je.prototype.resetSimulation=function(){Object(Rt.classes)(this._paletteEntry).add("disabled"),this._eventBus.fire(At)},Je.$inject=["eventBus","tokenSimulationPalette","notifications"];var Ke={__depends__:[Fe],__init__:["resetSimulation"],resetSimulation:["type",Je]};function Qe(t,e,n,i,o){this._overlays=e,this._scopeFilter=i,this._simulator=n,this._simulationStyles=o,this.overlayIds={},t.on("tokenSimulation.simulator.elementChanged",500,t=>{const{element:e}=t;this.removeTokenCounts(e),this.addTokenCounts(e)}),t.on("tokenSimulation.scopeFilterChanged",t=>{const n=Object(Rt.queryAll)(".bts-token-count[data-scope-id]",e._overlayRoot);for(const t of n){const e=t.dataset.scopeId;Object(Rt.classes)(t).toggle("inactive",!this._scopeFilter.isShown(e))}})}Qe.prototype.addTokenCounts=function(t){if(vt(t,"bpmn:MessageFlow")||vt(t,"bpmn:SequenceFlow"))return;const e=this._simulator.findScopes(e=>!e.destroyed&&e.children.some(e=>!e.destroyed&&e.element===t&&!e.children.length));this.addTokenCount(t,e)},Qe.prototype.addTokenCount=function(t,e){if(!e.length)return;const n=e.map(e=>this._getTokenHTML(t,e)).join(""),i=Object(Rt.domify)(`\n
\n ${n}\n
\n `),o={bottom:10,left:-15},s=this._overlays.add(t,"token-count",{position:o,html:i,show:{minZoom:.5}});this.overlayIds[t.id]=s},Qe.prototype.removeTokenCounts=function(t){this.removeTokenCount(t)},Qe.prototype.removeTokenCount=function(t){const e=this.overlayIds[t.id];e&&(this._overlays.remove(e),delete this.overlayIds[t.id])},Qe.prototype._getTokenHTML=function(t,e){const n=e.colors||this._getDefaultColors();return`\n
\n ${e.getTokensByElement(t)}\n
\n `},Qe.prototype._getDefaultColors=function(){return{primary:this._simulationStyles.get("--token-simulation-green-base-44"),auxiliary:this._simuationStyles.get("--token-simulation-white")}},Qe.$inject=["eventBus","overlays","simulator","scopeFilter","simulationStyles"];var Xe={__depends__:[Nt,Le],__init__:["tokenCount"],tokenCount:["type",Qe]};const tn=[["Slow",.5],["Normal",1],["Fast",2]];function en(t,e,n){this._canvas=t,this._animation=e,this._eventBus=n,this._init(e.getAnimationSpeed()),n.on($t,t=>{t.active?Object(Rt.classes)(this._container).remove("hidden"):Object(Rt.classes)(this._container).add("hidden")}),n.on("tokenSimulation.animationSpeedChanged",t=>{this.setActive(t.speed)})}en.prototype.getToggleSpeed=function(t){return parseFloat(t.dataset.speed)},en.prototype._init=function(t){this._container=Object(Rt.domify)(`\n \n `),Rt.delegate.bind(this._container,"[data-speed]","click",t=>{const e=t.delegateTarget,n=this.getToggleSpeed(e);this._animation.setAnimationSpeed(n)}),this._canvas.getContainer().appendChild(this._container)},en.prototype.setActive=function(t){Object(Rt.queryAll)("[data-speed]",this._container).forEach(e=>{const n=this.getToggleSpeed(e)===t;Object(Rt.classes)(e)[n?"add":"remove"]("active")})},en.$inject=["canvas","animation","eventBus"];var nn={__init__:["setAnimationSpeed"],setAnimationSpeed:["type",en]};function on(t){return vt(t,"bpmn:SequenceFlow")}function sn(t,e,n,i,o){this._elementRegistry=e,this._elementColors=n,this._simulator=i,this._simulationStyles=o,t.on($t,t=>{t.active?this.setSequenceFlowsDefault():this.resetSequenceFlows()})}function rn(t,e){this._elementRegistry=t,this._graphicsFactory=e}function cn(t){return t.businessObject&&t.businessObject.di}function an(t){return"labelTarget"in t}sn.prototype.setSequenceFlowsDefault=function(){const t=this._elementRegistry.filter(t=>vt(t,"bpmn:ExclusiveGateway"));for(const e of t)this.setSequenceFlow(e)},sn.prototype.resetSequenceFlows=function(){this._elementRegistry.filter(t=>vt(t,"bpmn:ExclusiveGateway")).forEach(t=>{t.outgoing.filter(on).length&&this.resetSequenceFlow(t)})},sn.prototype.resetSequenceFlow=function(t){this._simulator.setConfig(t,{activeOutgoing:void 0})},sn.prototype.setSequenceFlow=function(t){const e=t.outgoing.filter(on);if(e.length<2)return;const{activeOutgoing:n}=this._simulator.getConfig(t);let i;i=n?function(t,e){var n=t.outgoing.filter(on),i=n.indexOf(e||t.sequenceFlow);return n[i+1]?n[i+1]:n[0]}(t,n):e[0],this._simulator.setConfig(t,{activeOutgoing:i}),t.outgoing.forEach(t=>{const e=t===i?"--token-simulation-grey-darken-30":"--token-simulation-grey-lighten-56",n=this._simulationStyles.get(e);this._elementColors.set(t,{stroke:n})})},sn.$inject=["eventBus","elementRegistry","elementColors","simulator","simulationStyles"],rn.$inject=["elementRegistry","graphicsFactory"],rn.prototype.get=function(t){const e=cn(t);if(e)return an(t)?{stroke:e.label&&e.label.get("color")}:{fill:e.get("background-color"),stroke:e.get("border-color")}},rn.prototype.set=function(t,e){const{fill:n,stroke:i}=e,o=cn(t);o&&(an(t)?o.label&&o.label.set("color",i):(o.set("background-color",n),o.set("border-color",i)),this._forceRedraw(t))},rn.prototype._forceRedraw=function(t){const e=this._elementRegistry.getGraphics(t),n=t.waypoints?"connection":"shape";this._graphicsFactory.update(n,t,e)};var ln={elementColors:["type",rn]},pn={__depends__:[ln,Le],exclusiveGatewaySettings:["type",sn]};function hn(t,e,n){this._elementRegistry=e,this._elementColors=n,this._colorCache={},t.on($t,5e4,t=>{t.active?this.preserveColors():this.resetColors()})}hn.prototype.preserveColors=function(){this._elementRegistry.forEach(t=>{this._colorCache[t.id]=this._elementColors.get(t),this._elementColors.set(t,{stroke:"#000",fill:"#fff"})})},hn.prototype.resetColors=function(){this._elementRegistry.forEach(t=>{const e=this._colorCache[t.id];e&&this._elementColors.set(t,e)}),this._colorCache={}},hn.$inject=["eventBus","elementRegistry","elementColors"];var un={__depends__:[ln],__init__:["preserveElementColors"],preserveElementColors:["type",hn]};function mn(t,e){var n=this;this._canvas=e,this.entries=[],this._init(),t.on($t,(function(t){t.active?Object(Rt.classes)(n.container).remove("hidden"):Object(Rt.classes)(n.container).add("hidden")}))}mn.prototype._init=function(){this.container=Object(Rt.domify)(''),this._canvas.getContainer().appendChild(this.container)},mn.prototype.addEntry=function(t,e){var n=0;this.entries.forEach((function(t){e>=t.index&&n++})),this.container.insertBefore(t,this.container.childNodes[n]),this.entries.push({entry:t,index:e})},mn.$inject=["eventBus","canvas"];var dn={__depends__:[Bt,Xt,ie,Ce,$e,Me,Ge,Ve,Ze,Ke,Xe,nn,pn,un,{__init__:["tokenSimulationPalette"],tokenSimulationPalette:["type",mn]}]};function fn(t,e,n,i,o,s,r,c){let a=!1;function l(t,e,n){const i=t[e];t[e]=function(){return n.call(this,i,arguments)}}function p(t,e){l(t,e,(function(t,e){if(!a)return t.apply(this,e)}))}function h(t,e){l(t,e,(function(t,e){if(a)throw new Error("model is read-only");return t.apply(this,e)}))}t.on($t,10001,t=>{a=t.active,a&&(i.cancel(),e.close(),n.cancel()),r._update()}),p(e,"open"),p(n,"init"),p(i,"activate"),p(n,"init"),p(i,"activate"),h(s,"moveShape"),h(s,"updateAttachment"),h(s,"moveElements"),h(s,"moveConnection"),h(s,"layoutConnection"),h(s,"createConnection"),h(s,"createShape"),h(s,"createLabel"),h(s,"appendShape"),h(s,"removeElements"),h(s,"distributeElements"),h(s,"removeShape"),h(s,"removeConnection"),h(s,"replaceShape"),h(s,"pasteElements"),h(s,"alignElements"),h(s,"resizeShape"),h(s,"createSpace"),h(s,"updateWaypoints"),h(s,"reconnectStart"),h(s,"reconnectEnd"),l(o,"trigger",(function(t,e){const n=e[0];if(!a||!function(t,e){return t.indexOf(e)>-1}(["undo","redo","copy","paste","removeSelection","spaceTool","lassoTool","globalConnectTool","distributeElements","alignElements","directEditing"],n))return t.apply(this,e)}))}fn.$inject=["eventBus","contextPad","dragging","directEditing","editorActions","modeling","palette","paletteProvider"];var vn={__init__:["disableModeling"],disableModeling:["type",fn]};function gn(t,e,n,i){this._eventBus=t,this._canvas=e,this._selection=n,this._contextPad=i,this._active=!1,t.on("import.parse.start",()=>{this._active&&(this.toggleMode(!1),t.once("import.done",()=>{this.toggleMode(!0)}))}),t.on("diagram.init",()=>{this._canvasParent=this._canvas.getContainer().parentNode,this._palette=Object(Rt.query)(".djs-palette",this._canvas.getContainer()),this._init()})}gn.prototype._init=function(){this._container=Object(Rt.domify)(`\n
\n Token Simulation ${_e()}\n
\n `),Rt.event.bind(this._container,"click",()=>this.toggleMode()),this._canvas.getContainer().appendChild(this._container)},gn.prototype.toggleMode=function(t=!this._active){if(t!==this._active){if(t)this._container.innerHTML=`Token Simulation ${ye()}`,Object(Rt.classes)(this._canvasParent).add("simulation"),Object(Rt.classes)(this._palette).add("hidden");else{this._container.innerHTML=`Token Simulation ${_e()}`,Object(Rt.classes)(this._canvasParent).remove("simulation"),Object(Rt.classes)(this._palette).remove("hidden");const t=this._selection.get();1===t.length&&this._contextPad.open(t[0])}this._eventBus.fire($t,{active:t}),this._active=t}},gn.$inject=["eventBus","canvas","selection","contextPad"];var _n={__init__:["toggleMode"],toggleMode:["type",gn]};function yn(t,e,n,i,o,s){o.register({toggleTokenSimulation:function(){e.toggleMode()}}),o.register({togglePauseTokenSimulation:function(){n.toggle()}}),o.register({resetTokenSimulation:function(){i.resetSimulation()}});const r=s.get("log",!1);r&&o.register({toggleTokenSimulationLog:function(){r.toggle()}})}yn.$inject=["eventBus","toggleMode","pauseSimulation","resetSimulation","editorActions","injector"];var bn={__init__:["tokenSimulationEditorActions"],tokenSimulationEditorActions:["type",yn]};function wn(t,e){var n=e.get("editorActions",!1),i=e.get("keyboard",!1);if(i&&n){var o=!1;t.on("keyboard.init",(function(){i.addListener(1e4,(function(t){!function(t){Sn(["t","T"],t)?n.trigger("toggleTokenSimulation"):o&&(Sn(["l","L"],t)?n.trigger("toggleTokenSimulationLog"):Sn([" ","Spacebar"],t)?n.trigger("togglePauseTokenSimulation"):Sn(["r","R"],t)&&n.trigger("resetTokenSimulation"))}(t.keyEvent)}))})),t.on($t,(function(t){var e=t.active;o=!!e}))}}function Sn(t,e){return t.indexOf(e.key)>-1}wn.$inject=["eventBus","injector"];var En={__init__:["tokenSimulationKeyboardBindings"],tokenSimulationKeyboardBindings:["type",wn]};e.a={__depends__:[dn,vn,_n,bn,En]}}}]); \ No newline at end of file diff --git a/container/context/dist/static/js/npm.bpmn-js-token-simulation.66e3ad08.js.gz b/container/context/dist/static/js/npm.bpmn-js-token-simulation.66e3ad08.js.gz deleted file mode 100644 index 655cb722..00000000 Binary files a/container/context/dist/static/js/npm.bpmn-js-token-simulation.66e3ad08.js.gz and /dev/null differ diff --git a/container/context/dist/static/js/npm.tsparticles.0c0cc16f.js b/container/context/dist/static/js/npm.tsparticles.0c0cc16f.js new file mode 100644 index 00000000..c15467c6 --- /dev/null +++ b/container/context/dist/static/js/npm.tsparticles.0c0cc16f.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([["npm.tsparticles"],{"3da5":function(t,e,i){"use strict";!function(){try{if("undefined"==typeof window)return;"SVGPathSeg"in window||(window.SVGPathSeg=function(t,e,i){this.pathSegType=t,this.pathSegTypeAsLetter=e,this._owningPathSegList=i},window.SVGPathSeg.prototype.classname="SVGPathSeg",window.SVGPathSeg.PATHSEG_UNKNOWN=0,window.SVGPathSeg.PATHSEG_CLOSEPATH=1,window.SVGPathSeg.PATHSEG_MOVETO_ABS=2,window.SVGPathSeg.PATHSEG_MOVETO_REL=3,window.SVGPathSeg.PATHSEG_LINETO_ABS=4,window.SVGPathSeg.PATHSEG_LINETO_REL=5,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS=6,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL=7,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS=8,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL=9,window.SVGPathSeg.PATHSEG_ARC_ABS=10,window.SVGPathSeg.PATHSEG_ARC_REL=11,window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS=12,window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL=13,window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS=14,window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL=15,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS=16,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL=17,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS=18,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL=19,window.SVGPathSeg.prototype._segmentChanged=function(){this._owningPathSegList&&this._owningPathSegList.segmentChanged(this)},window.SVGPathSegClosePath=function(t){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CLOSEPATH,"z",t)},window.SVGPathSegClosePath.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegClosePath.prototype.toString=function(){return"[object SVGPathSegClosePath]"},window.SVGPathSegClosePath.prototype._asPathString=function(){return this.pathSegTypeAsLetter},window.SVGPathSegClosePath.prototype.clone=function(){return new window.SVGPathSegClosePath(void 0)},window.SVGPathSegMovetoAbs=function(t,e,i){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_MOVETO_ABS,"M",t),this._x=e,this._y=i},window.SVGPathSegMovetoAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegMovetoAbs.prototype.toString=function(){return"[object SVGPathSegMovetoAbs]"},window.SVGPathSegMovetoAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegMovetoAbs.prototype.clone=function(){return new window.SVGPathSegMovetoAbs(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegMovetoAbs.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegMovetoAbs.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),window.SVGPathSegMovetoRel=function(t,e,i){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_MOVETO_REL,"m",t),this._x=e,this._y=i},window.SVGPathSegMovetoRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegMovetoRel.prototype.toString=function(){return"[object SVGPathSegMovetoRel]"},window.SVGPathSegMovetoRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegMovetoRel.prototype.clone=function(){return new window.SVGPathSegMovetoRel(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegMovetoRel.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegMovetoRel.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoAbs=function(t,e,i){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_ABS,"L",t),this._x=e,this._y=i},window.SVGPathSegLinetoAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoAbs.prototype.toString=function(){return"[object SVGPathSegLinetoAbs]"},window.SVGPathSegLinetoAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegLinetoAbs.prototype.clone=function(){return new window.SVGPathSegLinetoAbs(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegLinetoAbs.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegLinetoAbs.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoRel=function(t,e,i){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_REL,"l",t),this._x=e,this._y=i},window.SVGPathSegLinetoRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoRel.prototype.toString=function(){return"[object SVGPathSegLinetoRel]"},window.SVGPathSegLinetoRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegLinetoRel.prototype.clone=function(){return new window.SVGPathSegLinetoRel(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegLinetoRel.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegLinetoRel.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoCubicAbs=function(t,e,i,o,s,n,a){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS,"C",t),this._x=e,this._y=i,this._x1=o,this._y1=s,this._x2=n,this._y2=a},window.SVGPathSegCurvetoCubicAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoCubicAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicAbs]"},window.SVGPathSegCurvetoCubicAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y},window.SVGPathSegCurvetoCubicAbs.prototype.clone=function(){return new window.SVGPathSegCurvetoCubicAbs(void 0,this._x,this._y,this._x1,this._y1,this._x2,this._y2)},Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"x1",{get:function(){return this._x1},set:function(t){this._x1=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"y1",{get:function(){return this._y1},set:function(t){this._y1=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"x2",{get:function(){return this._x2},set:function(t){this._x2=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"y2",{get:function(){return this._y2},set:function(t){this._y2=t,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoCubicRel=function(t,e,i,o,s,n,a){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL,"c",t),this._x=e,this._y=i,this._x1=o,this._y1=s,this._x2=n,this._y2=a},window.SVGPathSegCurvetoCubicRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoCubicRel.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicRel]"},window.SVGPathSegCurvetoCubicRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y},window.SVGPathSegCurvetoCubicRel.prototype.clone=function(){return new window.SVGPathSegCurvetoCubicRel(void 0,this._x,this._y,this._x1,this._y1,this._x2,this._y2)},Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"x1",{get:function(){return this._x1},set:function(t){this._x1=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"y1",{get:function(){return this._y1},set:function(t){this._y1=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"x2",{get:function(){return this._x2},set:function(t){this._x2=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"y2",{get:function(){return this._y2},set:function(t){this._y2=t,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoQuadraticAbs=function(t,e,i,o,s){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS,"Q",t),this._x=e,this._y=i,this._x1=o,this._y1=s},window.SVGPathSegCurvetoQuadraticAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoQuadraticAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticAbs]"},window.SVGPathSegCurvetoQuadraticAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x+" "+this._y},window.SVGPathSegCurvetoQuadraticAbs.prototype.clone=function(){return new window.SVGPathSegCurvetoQuadraticAbs(void 0,this._x,this._y,this._x1,this._y1)},Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype,"x1",{get:function(){return this._x1},set:function(t){this._x1=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype,"y1",{get:function(){return this._y1},set:function(t){this._y1=t,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoQuadraticRel=function(t,e,i,o,s){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL,"q",t),this._x=e,this._y=i,this._x1=o,this._y1=s},window.SVGPathSegCurvetoQuadraticRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoQuadraticRel.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticRel]"},window.SVGPathSegCurvetoQuadraticRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x+" "+this._y},window.SVGPathSegCurvetoQuadraticRel.prototype.clone=function(){return new window.SVGPathSegCurvetoQuadraticRel(void 0,this._x,this._y,this._x1,this._y1)},Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype,"x1",{get:function(){return this._x1},set:function(t){this._x1=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype,"y1",{get:function(){return this._y1},set:function(t){this._y1=t,this._segmentChanged()},enumerable:!0}),window.SVGPathSegArcAbs=function(t,e,i,o,s,n,a,r){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_ARC_ABS,"A",t),this._x=e,this._y=i,this._r1=o,this._r2=s,this._angle=n,this._largeArcFlag=a,this._sweepFlag=r},window.SVGPathSegArcAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegArcAbs.prototype.toString=function(){return"[object SVGPathSegArcAbs]"},window.SVGPathSegArcAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._r1+" "+this._r2+" "+this._angle+" "+(this._largeArcFlag?"1":"0")+" "+(this._sweepFlag?"1":"0")+" "+this._x+" "+this._y},window.SVGPathSegArcAbs.prototype.clone=function(){return new window.SVGPathSegArcAbs(void 0,this._x,this._y,this._r1,this._r2,this._angle,this._largeArcFlag,this._sweepFlag)},Object.defineProperty(window.SVGPathSegArcAbs.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"r1",{get:function(){return this._r1},set:function(t){this._r1=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"r2",{get:function(){return this._r2},set:function(t){this._r2=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"angle",{get:function(){return this._angle},set:function(t){this._angle=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"largeArcFlag",{get:function(){return this._largeArcFlag},set:function(t){this._largeArcFlag=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"sweepFlag",{get:function(){return this._sweepFlag},set:function(t){this._sweepFlag=t,this._segmentChanged()},enumerable:!0}),window.SVGPathSegArcRel=function(t,e,i,o,s,n,a,r){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_ARC_REL,"a",t),this._x=e,this._y=i,this._r1=o,this._r2=s,this._angle=n,this._largeArcFlag=a,this._sweepFlag=r},window.SVGPathSegArcRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegArcRel.prototype.toString=function(){return"[object SVGPathSegArcRel]"},window.SVGPathSegArcRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._r1+" "+this._r2+" "+this._angle+" "+(this._largeArcFlag?"1":"0")+" "+(this._sweepFlag?"1":"0")+" "+this._x+" "+this._y},window.SVGPathSegArcRel.prototype.clone=function(){return new window.SVGPathSegArcRel(void 0,this._x,this._y,this._r1,this._r2,this._angle,this._largeArcFlag,this._sweepFlag)},Object.defineProperty(window.SVGPathSegArcRel.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"r1",{get:function(){return this._r1},set:function(t){this._r1=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"r2",{get:function(){return this._r2},set:function(t){this._r2=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"angle",{get:function(){return this._angle},set:function(t){this._angle=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"largeArcFlag",{get:function(){return this._largeArcFlag},set:function(t){this._largeArcFlag=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"sweepFlag",{get:function(){return this._sweepFlag},set:function(t){this._sweepFlag=t,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoHorizontalAbs=function(t,e){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS,"H",t),this._x=e},window.SVGPathSegLinetoHorizontalAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoHorizontalAbs.prototype.toString=function(){return"[object SVGPathSegLinetoHorizontalAbs]"},window.SVGPathSegLinetoHorizontalAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x},window.SVGPathSegLinetoHorizontalAbs.prototype.clone=function(){return new window.SVGPathSegLinetoHorizontalAbs(void 0,this._x)},Object.defineProperty(window.SVGPathSegLinetoHorizontalAbs.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoHorizontalRel=function(t,e){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL,"h",t),this._x=e},window.SVGPathSegLinetoHorizontalRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoHorizontalRel.prototype.toString=function(){return"[object SVGPathSegLinetoHorizontalRel]"},window.SVGPathSegLinetoHorizontalRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x},window.SVGPathSegLinetoHorizontalRel.prototype.clone=function(){return new window.SVGPathSegLinetoHorizontalRel(void 0,this._x)},Object.defineProperty(window.SVGPathSegLinetoHorizontalRel.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoVerticalAbs=function(t,e){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS,"V",t),this._y=e},window.SVGPathSegLinetoVerticalAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoVerticalAbs.prototype.toString=function(){return"[object SVGPathSegLinetoVerticalAbs]"},window.SVGPathSegLinetoVerticalAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._y},window.SVGPathSegLinetoVerticalAbs.prototype.clone=function(){return new window.SVGPathSegLinetoVerticalAbs(void 0,this._y)},Object.defineProperty(window.SVGPathSegLinetoVerticalAbs.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoVerticalRel=function(t,e){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL,"v",t),this._y=e},window.SVGPathSegLinetoVerticalRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoVerticalRel.prototype.toString=function(){return"[object SVGPathSegLinetoVerticalRel]"},window.SVGPathSegLinetoVerticalRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._y},window.SVGPathSegLinetoVerticalRel.prototype.clone=function(){return new window.SVGPathSegLinetoVerticalRel(void 0,this._y)},Object.defineProperty(window.SVGPathSegLinetoVerticalRel.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoCubicSmoothAbs=function(t,e,i,o,s){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS,"S",t),this._x=e,this._y=i,this._x2=o,this._y2=s},window.SVGPathSegCurvetoCubicSmoothAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoCubicSmoothAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicSmoothAbs]"},window.SVGPathSegCurvetoCubicSmoothAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y},window.SVGPathSegCurvetoCubicSmoothAbs.prototype.clone=function(){return new window.SVGPathSegCurvetoCubicSmoothAbs(void 0,this._x,this._y,this._x2,this._y2)},Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype,"x2",{get:function(){return this._x2},set:function(t){this._x2=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype,"y2",{get:function(){return this._y2},set:function(t){this._y2=t,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoCubicSmoothRel=function(t,e,i,o,s){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL,"s",t),this._x=e,this._y=i,this._x2=o,this._y2=s},window.SVGPathSegCurvetoCubicSmoothRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoCubicSmoothRel.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicSmoothRel]"},window.SVGPathSegCurvetoCubicSmoothRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y},window.SVGPathSegCurvetoCubicSmoothRel.prototype.clone=function(){return new window.SVGPathSegCurvetoCubicSmoothRel(void 0,this._x,this._y,this._x2,this._y2)},Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype,"x2",{get:function(){return this._x2},set:function(t){this._x2=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype,"y2",{get:function(){return this._y2},set:function(t){this._y2=t,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoQuadraticSmoothAbs=function(t,e,i){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS,"T",t),this._x=e,this._y=i},window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticSmoothAbs]"},window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype.clone=function(){return new window.SVGPathSegCurvetoQuadraticSmoothAbs(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoQuadraticSmoothRel=function(t,e,i){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL,"t",t),this._x=e,this._y=i},window.SVGPathSegCurvetoQuadraticSmoothRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoQuadraticSmoothRel.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticSmoothRel]"},window.SVGPathSegCurvetoQuadraticSmoothRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegCurvetoQuadraticSmoothRel.prototype.clone=function(){return new window.SVGPathSegCurvetoQuadraticSmoothRel(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothRel.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothRel.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),window.SVGPathElement.prototype.createSVGPathSegClosePath=function(){return new window.SVGPathSegClosePath(void 0)},window.SVGPathElement.prototype.createSVGPathSegMovetoAbs=function(t,e){return new window.SVGPathSegMovetoAbs(void 0,t,e)},window.SVGPathElement.prototype.createSVGPathSegMovetoRel=function(t,e){return new window.SVGPathSegMovetoRel(void 0,t,e)},window.SVGPathElement.prototype.createSVGPathSegLinetoAbs=function(t,e){return new window.SVGPathSegLinetoAbs(void 0,t,e)},window.SVGPathElement.prototype.createSVGPathSegLinetoRel=function(t,e){return new window.SVGPathSegLinetoRel(void 0,t,e)},window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicAbs=function(t,e,i,o,s,n){return new window.SVGPathSegCurvetoCubicAbs(void 0,t,e,i,o,s,n)},window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicRel=function(t,e,i,o,s,n){return new window.SVGPathSegCurvetoCubicRel(void 0,t,e,i,o,s,n)},window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticAbs=function(t,e,i,o){return new window.SVGPathSegCurvetoQuadraticAbs(void 0,t,e,i,o)},window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticRel=function(t,e,i,o){return new window.SVGPathSegCurvetoQuadraticRel(void 0,t,e,i,o)},window.SVGPathElement.prototype.createSVGPathSegArcAbs=function(t,e,i,o,s,n,a){return new window.SVGPathSegArcAbs(void 0,t,e,i,o,s,n,a)},window.SVGPathElement.prototype.createSVGPathSegArcRel=function(t,e,i,o,s,n,a){return new window.SVGPathSegArcRel(void 0,t,e,i,o,s,n,a)},window.SVGPathElement.prototype.createSVGPathSegLinetoHorizontalAbs=function(t){return new window.SVGPathSegLinetoHorizontalAbs(void 0,t)},window.SVGPathElement.prototype.createSVGPathSegLinetoHorizontalRel=function(t){return new window.SVGPathSegLinetoHorizontalRel(void 0,t)},window.SVGPathElement.prototype.createSVGPathSegLinetoVerticalAbs=function(t){return new window.SVGPathSegLinetoVerticalAbs(void 0,t)},window.SVGPathElement.prototype.createSVGPathSegLinetoVerticalRel=function(t){return new window.SVGPathSegLinetoVerticalRel(void 0,t)},window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothAbs=function(t,e,i,o){return new window.SVGPathSegCurvetoCubicSmoothAbs(void 0,t,e,i,o)},window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothRel=function(t,e,i,o){return new window.SVGPathSegCurvetoCubicSmoothRel(void 0,t,e,i,o)},window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothAbs=function(t,e){return new window.SVGPathSegCurvetoQuadraticSmoothAbs(void 0,t,e)},window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothRel=function(t,e){return new window.SVGPathSegCurvetoQuadraticSmoothRel(void 0,t,e)},"getPathSegAtLength"in window.SVGPathElement.prototype||(window.SVGPathElement.prototype.getPathSegAtLength=function(t){if(void 0===t||!isFinite(t))throw"Invalid arguments.";const e=document.createElementNS("http://www.w3.org/2000/svg","path");e.setAttribute("d",this.getAttribute("d"));let i=e.pathSegList.numberOfItems-1;if(i<=0)return 0;do{if(e.pathSegList.removeItem(i),t>e.getTotalLength())break;i--}while(i>0);return i})),"SVGPathSegList"in window&&"appendItem"in window.SVGPathSegList.prototype||(window.SVGPathSegList=function(t){this._pathElement=t,this._list=this._parsePath(this._pathElement.getAttribute("d")),this._mutationObserverConfig={attributes:!0,attributeFilter:["d"]},this._pathElementMutationObserver=new MutationObserver(this._updateListFromPathMutations.bind(this)),this._pathElementMutationObserver.observe(this._pathElement,this._mutationObserverConfig)},window.SVGPathSegList.prototype.classname="SVGPathSegList",Object.defineProperty(window.SVGPathSegList.prototype,"numberOfItems",{get:function(){return this._checkPathSynchronizedToList(),this._list.length},enumerable:!0}),Object.defineProperty(window.SVGPathSegList.prototype,"length",{get:function(){return this._checkPathSynchronizedToList(),this._list.length},enumerable:!0}),Object.defineProperty(window.SVGPathElement.prototype,"pathSegList",{get:function(){return this._pathSegList||(this._pathSegList=new window.SVGPathSegList(this)),this._pathSegList},enumerable:!0}),Object.defineProperty(window.SVGPathElement.prototype,"normalizedPathSegList",{get:function(){return this.pathSegList},enumerable:!0}),Object.defineProperty(window.SVGPathElement.prototype,"animatedPathSegList",{get:function(){return this.pathSegList},enumerable:!0}),Object.defineProperty(window.SVGPathElement.prototype,"animatedNormalizedPathSegList",{get:function(){return this.pathSegList},enumerable:!0}),window.SVGPathSegList.prototype._checkPathSynchronizedToList=function(){this._updateListFromPathMutations(this._pathElementMutationObserver.takeRecords())},window.SVGPathSegList.prototype._updateListFromPathMutations=function(t){if(!this._pathElement)return;let e=!1;t.forEach((function(t){"d"==t.attributeName&&(e=!0)})),e&&(this._list=this._parsePath(this._pathElement.getAttribute("d")))},window.SVGPathSegList.prototype._writeListToPath=function(){this._pathElementMutationObserver.disconnect(),this._pathElement.setAttribute("d",window.SVGPathSegList._pathSegArrayAsString(this._list)),this._pathElementMutationObserver.observe(this._pathElement,this._mutationObserverConfig)},window.SVGPathSegList.prototype.segmentChanged=function(t){this._writeListToPath()},window.SVGPathSegList.prototype.clear=function(){this._checkPathSynchronizedToList(),this._list.forEach((function(t){t._owningPathSegList=null})),this._list=[],this._writeListToPath()},window.SVGPathSegList.prototype.initialize=function(t){return this._checkPathSynchronizedToList(),this._list=[t],t._owningPathSegList=this,this._writeListToPath(),t},window.SVGPathSegList.prototype._checkValidIndex=function(t){if(isNaN(t)||t<0||t>=this.numberOfItems)throw"INDEX_SIZE_ERR"},window.SVGPathSegList.prototype.getItem=function(t){return this._checkPathSynchronizedToList(),this._checkValidIndex(t),this._list[t]},window.SVGPathSegList.prototype.insertItemBefore=function(t,e){return this._checkPathSynchronizedToList(),e>this.numberOfItems&&(e=this.numberOfItems),t._owningPathSegList&&(t=t.clone()),this._list.splice(e,0,t),t._owningPathSegList=this,this._writeListToPath(),t},window.SVGPathSegList.prototype.replaceItem=function(t,e){return this._checkPathSynchronizedToList(),t._owningPathSegList&&(t=t.clone()),this._checkValidIndex(e),this._list[e]=t,t._owningPathSegList=this,this._writeListToPath(),t},window.SVGPathSegList.prototype.removeItem=function(t){this._checkPathSynchronizedToList(),this._checkValidIndex(t);const e=this._list[t];return this._list.splice(t,1),this._writeListToPath(),e},window.SVGPathSegList.prototype.appendItem=function(t){return this._checkPathSynchronizedToList(),t._owningPathSegList&&(t=t.clone()),this._list.push(t),t._owningPathSegList=this,this._writeListToPath(),t},window.SVGPathSegList._pathSegArrayAsString=function(t){let e="",i=!0;return t.forEach((function(t){i?(i=!1,e+=t._asPathString()):e+=" "+t._asPathString()})),e},window.SVGPathSegList.prototype._parsePath=function(t){if(!t||0==t.length)return[];const e=this,i=function(){this.pathSegList=[]};i.prototype.appendSegment=function(t){this.pathSegList.push(t)};const o=function(t){this._string=t,this._currentIndex=0,this._endIndex=this._string.length,this._previousCommand=window.SVGPathSeg.PATHSEG_UNKNOWN,this._skipOptionalSpaces()};o.prototype._isCurrentSpace=function(){const t=this._string[this._currentIndex];return t<=" "&&(" "==t||"\n"==t||"\t"==t||"\r"==t||"\f"==t)},o.prototype._skipOptionalSpaces=function(){for(;this._currentIndex="0"&&t<="9")&&e!=window.SVGPathSeg.PATHSEG_CLOSEPATH?e==window.SVGPathSeg.PATHSEG_MOVETO_ABS?window.SVGPathSeg.PATHSEG_LINETO_ABS:e==window.SVGPathSeg.PATHSEG_MOVETO_REL?window.SVGPathSeg.PATHSEG_LINETO_REL:e:window.SVGPathSeg.PATHSEG_UNKNOWN},o.prototype.initialCommandIsMoveTo=function(){if(!this.hasMoreData())return!0;const t=this.peekSegmentType();return t==window.SVGPathSeg.PATHSEG_MOVETO_ABS||t==window.SVGPathSeg.PATHSEG_MOVETO_REL},o.prototype._parseNumber=function(){let t=0,e=0,i=1,o=0,s=1,n=1;const a=this._currentIndex;if(this._skipOptionalSpaces(),this._currentIndex"9")&&"."!=this._string.charAt(this._currentIndex))return;const r=this._currentIndex;for(;this._currentIndex="0"&&this._string.charAt(this._currentIndex)<="9";)this._currentIndex++;if(this._currentIndex!=r){let t=this._currentIndex-1,i=1;for(;t>=r;)e+=i*(this._string.charAt(t--)-"0"),i*=10}if(this._currentIndex=this._endIndex||this._string.charAt(this._currentIndex)<"0"||this._string.charAt(this._currentIndex)>"9")return;for(;this._currentIndex="0"&&this._string.charAt(this._currentIndex)<="9";)i*=10,o+=(this._string.charAt(this._currentIndex)-"0")/i,this._currentIndex+=1}if(this._currentIndex!=a&&this._currentIndex+1=this._endIndex||this._string.charAt(this._currentIndex)<"0"||this._string.charAt(this._currentIndex)>"9")return;for(;this._currentIndex="0"&&this._string.charAt(this._currentIndex)<="9";)t*=10,t+=this._string.charAt(this._currentIndex)-"0",this._currentIndex++}let l=e+o;return l*=s,t&&(l*=Math.pow(10,n*t)),a!=this._currentIndex?(this._skipOptionalSpacesOrDelimiter(),l):void 0},o.prototype._parseArcFlag=function(){if(this._currentIndex>=this._endIndex)return;let t=!1;const e=this._string.charAt(this._currentIndex++);if("0"==e)t=!1;else{if("1"!=e)return;t=!0}return this._skipOptionalSpacesOrDelimiter(),t},o.prototype.parseSegment=function(){const t=this._string[this._currentIndex];let i,o=this._pathSegTypeFromChar(t);if(o==window.SVGPathSeg.PATHSEG_UNKNOWN){if(this._previousCommand==window.SVGPathSeg.PATHSEG_UNKNOWN)return null;if(o=this._nextCommandHelper(t,this._previousCommand),o==window.SVGPathSeg.PATHSEG_UNKNOWN)return null}else this._currentIndex++;switch(this._previousCommand=o,o){case window.SVGPathSeg.PATHSEG_MOVETO_REL:return new window.SVGPathSegMovetoRel(e,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_MOVETO_ABS:return new window.SVGPathSegMovetoAbs(e,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_REL:return new window.SVGPathSegLinetoRel(e,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_ABS:return new window.SVGPathSegLinetoAbs(e,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL:return new window.SVGPathSegLinetoHorizontalRel(e,this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS:return new window.SVGPathSegLinetoHorizontalAbs(e,this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL:return new window.SVGPathSegLinetoVerticalRel(e,this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS:return new window.SVGPathSegLinetoVerticalAbs(e,this._parseNumber());case window.SVGPathSeg.PATHSEG_CLOSEPATH:return this._skipOptionalSpaces(),new window.SVGPathSegClosePath(e);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL:return i={x1:this._parseNumber(),y1:this._parseNumber(),x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoCubicRel(e,i.x,i.y,i.x1,i.y1,i.x2,i.y2);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS:return i={x1:this._parseNumber(),y1:this._parseNumber(),x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoCubicAbs(e,i.x,i.y,i.x1,i.y1,i.x2,i.y2);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL:return i={x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoCubicSmoothRel(e,i.x,i.y,i.x2,i.y2);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS:return i={x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoCubicSmoothAbs(e,i.x,i.y,i.x2,i.y2);case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL:return i={x1:this._parseNumber(),y1:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoQuadraticRel(e,i.x,i.y,i.x1,i.y1);case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS:return i={x1:this._parseNumber(),y1:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoQuadraticAbs(e,i.x,i.y,i.x1,i.y1);case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL:return new window.SVGPathSegCurvetoQuadraticSmoothRel(e,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS:return new window.SVGPathSegCurvetoQuadraticSmoothAbs(e,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_ARC_REL:return i={x1:this._parseNumber(),y1:this._parseNumber(),arcAngle:this._parseNumber(),arcLarge:this._parseArcFlag(),arcSweep:this._parseArcFlag(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegArcRel(e,i.x,i.y,i.x1,i.y1,i.arcAngle,i.arcLarge,i.arcSweep);case window.SVGPathSeg.PATHSEG_ARC_ABS:return i={x1:this._parseNumber(),y1:this._parseNumber(),arcAngle:this._parseNumber(),arcLarge:this._parseArcFlag(),arcSweep:this._parseArcFlag(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegArcAbs(e,i.x,i.y,i.x1,i.y1,i.arcAngle,i.arcLarge,i.arcSweep);default:throw"Unknown path seg type."}};const s=new i,n=new o(t);if(!n.initialCommandIsMoveTo())return[];for(;n.hasMoreData();){const t=n.parseSegment();if(!t)return[];s.appendSegment(t)}return s.pathSegList})}catch(t){console.warn("An error occurred in tsParticles pathseg polyfill. If the Polygon Mask is not working, please open an issue here: https://github.com/matteobruni/tsparticles",t)}}()},ebf8:function(t,e,i){"use strict";function o(t,e,i){return Math.min(Math.max(t,e),i)}function s(t,e,i,o){return Math.floor((t*i+e*o)/(i+o))}function n(t){const e=l(t);let i=r(t);return e===i&&(i=0),Math.random()*(e-i)+i}function a(t){return"number"==typeof t?t:n(t)}function r(t){return"number"==typeof t?t:t.min}function l(t){return"number"==typeof t?t:t.max}function c(t,e){if(t===e||void 0===e&&"number"==typeof t)return t;const i=r(t),o=l(t);return void 0!==e?{min:Math.min(i,e),max:Math.max(o,e)}:c(i,o)}function h(t){const e=t.random,{enable:i,minimumValue:o}="boolean"==typeof e?{enable:e,minimumValue:0}:e;return a(i?c(t.value,o):t.value)}function d(t,e){const i=t.x-e.x,o=t.y-e.y;return{dx:i,dy:o,distance:Math.sqrt(i*i+o*o)}}function u(t,e){return d(t,e).distance}function p(t,e,i,o){return yt.create(t.x*(i-o)/(i+o)+2*e.x*o/(i+o),t.y)}function v(t,e){switch(e){case"ease-out-quad":return 1-(1-t)**2;case"ease-out-cubic":return 1-(1-t)**3;case"ease-out-quart":return 1-(1-t)**4;case"ease-out-quint":return 1-(1-t)**5;case"ease-out-expo":return 1===t?1:1-Math.pow(2,-10*t);case"ease-out-sine":return Math.sin(t*Math.PI/2);case"ease-out-back":{const e=1.70158;return 1+(e+1)*Math.pow(t-1,3)+e*Math.pow(t-1,2)}case"ease-out-circ":return Math.sqrt(1-Math.pow(t-1,2));default:return t}}function y(t,e,i,o,s,n){const a={bounced:!1};return e.min>=o.min&&e.min<=o.max&&e.max>=o.min&&e.max<=o.max&&(t.max>=i.min&&t.max<=(i.max+i.min)/2&&s>0||t.min<=i.max&&t.min>(i.max+i.min)/2&&s<0)&&(a.velocity=s*-n,a.bounced=!0),a}function w(t,e){if(e instanceof Array){for(const i of e)if(t.matches(i))return!0;return!1}return t.matches(e)}function f(){return"undefined"==typeof window||!window||void 0===window.document||!window.document}function g(t,e){return t===e||e instanceof Array&&e.indexOf(t)>-1}async function m(t){var e,i;try{await document.fonts.load(`${null!==(e=t.weight)&&void 0!==e?e:"400"} 36px '${null!==(i=t.font)&&void 0!==i?i:"Verdana"}'`)}catch(t){}}function b(t,e,i=!0){return t[void 0!==e&&i?e%t.length:function(t){return Math.floor(Math.random()*t.length)}(t)]}function S(t,e,i,o){return function(t,e,i){let o=!0;i&&"bottom"!==i||(o=t.top0);!o||i&&"right"!==i||(o=t.left0);return o}(P(t,null!=i?i:0),e,o)}function P(t,e){return{bottom:t.y+e,left:t.x-e,right:t.x+e,top:t.y-e}}function _(t,...e){for(const i of e){if(null==i)continue;if("object"!=typeof i){t=i;continue}const e=Array.isArray(i);!e||"object"==typeof t&&t&&Array.isArray(t)?e||"object"==typeof t&&t&&!Array.isArray(t)||(t={}):t=[];for(const e in i){if("__proto__"===e)continue;const o=i[e],s="object"==typeof o,n=t;n[e]=s&&Array.isArray(o)?o.map(t=>_(n[e],t)):_(n[e],o)}}return t}function x(t,e){return e instanceof Array?!!e.find(e=>e.enable&&g(t,e.mode)):g(t,e.mode)}function C(t,e,i){if(e instanceof Array)for(const o of e){const e=o.mode;o.enable&&g(t,e)&&A(o,i)}else{const o=e.mode;e.enable&&g(t,o)&&A(e,i)}}function A(t,e){const i=t.selectors;if(i instanceof Array)for(const o of i)e(o,t);else e(i,t)}function V(t,e){if(e&&t)return t instanceof Array?t.find(t=>w(e,t.selectors)):w(e,t.selectors)?t:void 0}function G(t){return{position:t.getPosition(),radius:t.getRadius(),mass:t.getMass(),velocity:t.velocity,factor:yt.create(h(t.options.bounce.horizontal),h(t.options.bounce.vertical))}}function T(t,e){const{x:i,y:o}=t.velocity.sub(e.velocity),[s,n]=[t.position,e.position],{dx:a,dy:r}=d(n,s);if(i*a+o*r>=0){const i=-Math.atan2(r,a),o=t.mass,s=e.mass,n=t.velocity.rotate(i),l=e.velocity.rotate(i),c=p(n,l,o,s),h=p(l,n,o,s),d=c.rotate(-i),u=h.rotate(-i);t.velocity.x=d.x*t.factor.x,t.velocity.y=d.y*t.factor.y,e.velocity.x=u.x*e.factor.x,e.velocity.y=u.y*e.factor.y}}function E(t,e){const i=P(t.getPosition(),t.getRadius()),o=y({min:i.left,max:i.right},{min:i.top,max:i.bottom},{min:e.left,max:e.right},{min:e.top,max:e.bottom},t.velocity.x,h(t.options.bounce.horizontal));o.bounced&&(void 0!==o.velocity&&(t.velocity.x=o.velocity),void 0!==o.position&&(t.position.x=o.position));const s=y({min:i.top,max:i.bottom},{min:i.left,max:i.right},{min:e.top,max:e.bottom},{min:e.left,max:e.right},t.velocity.y,h(t.options.bounce.vertical));s.bounced&&(void 0!==s.velocity&&(t.velocity.y=s.velocity),void 0!==s.position&&(t.position.y=s.position))}function O(t,e,i){let o=i;return o<0&&(o+=1),o>1&&(o-=1),o<1/6?t+6*(e-t)*o:o<.5?e:o<2/3?t+(e-t)*(2/3-o)*6:t}function k(t){if(t.startsWith("rgb")){const e=/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(,\s*([\d.]+)\s*)?\)/i.exec(t);return e?{a:e.length>4?parseFloat(e[5]):1,b:parseInt(e[3],10),g:parseInt(e[2],10),r:parseInt(e[1],10)}:void 0}if(t.startsWith("hsl")){const e=/hsla?\(\s*(\d+)\s*,\s*(\d+)%\s*,\s*(\d+)%\s*(,\s*([\d.]+)\s*)?\)/i.exec(t);return e?function(t){const e=L(t);return{a:t.a,b:e.b,g:e.g,r:e.r}}({a:e.length>4?parseFloat(e[5]):1,h:parseInt(e[1],10),l:parseInt(e[3],10),s:parseInt(e[2],10)}):void 0}if(t.startsWith("hsv")){const e=/hsva?\(\s*(\d+)°\s*,\s*(\d+)%\s*,\s*(\d+)%\s*(,\s*([\d.]+)\s*)?\)/i.exec(t);return e?function(t){const e=I(t);return{a:t.a,b:e.b,g:e.g,r:e.r}}({a:e.length>4?parseFloat(e[5]):1,h:parseInt(e[1],10),s:parseInt(e[2],10),v:parseInt(e[3],10)}):void 0}{const e=/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,i=t.replace(e,(t,e,i,o,s)=>e+e+i+i+o+o+(void 0!==s?s+s:"")),o=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i.exec(i);return o?{a:void 0!==o[4]?parseInt(o[4],16)/255:1,b:parseInt(o[3],16),g:parseInt(o[2],16),r:parseInt(o[1],16)}:void 0}}function M(t,e,i=!0){var o,s,n;if(void 0===t)return;const a="string"==typeof t?{value:t}:t;let r;if("string"==typeof a.value)r=a.value===K.randomColorValue?H():function(t){return k(t)}(a.value);else if(a.value instanceof Array){r=M({value:b(a.value,e,i)})}else{const t=a.value,e=null!==(o=t.rgb)&&void 0!==o?o:a.value;if(void 0!==e.r)r=e;else{const e=null!==(s=t.hsl)&&void 0!==s?s:a.value;if(void 0!==e.h&&void 0!==e.l)r=L(e);else{const e=null!==(n=t.hsv)&&void 0!==n?n:a.value;void 0!==e.h&&void 0!==e.v&&(r=I(e))}}}return r}function R(t,e,i=!0){const o=M(t,e,i);return void 0!==o?z(o):void 0}function z(t){const e=t.r/255,i=t.g/255,o=t.b/255,s=Math.max(e,i,o),n=Math.min(e,i,o),a={h:0,l:(s+n)/2,s:0};return s!=n&&(a.s=a.l<.5?(s-n)/(s+n):(s-n)/(2-s-n),a.h=e===s?(i-o)/(s-n):a.h=i===s?2+(o-e)/(s-n):4+(e-i)/(s-n)),a.l*=100,a.s*=100,a.h*=60,a.h<0&&(a.h+=360),a}function L(t){const e={b:0,g:0,r:0},i={h:t.h/360,l:t.l/100,s:t.s/100};if(0===i.s)e.b=i.l,e.g=i.l,e.r=i.l;else{const t=i.l<.5?i.l*(1+i.s):i.l+i.s-i.l*i.s,o=2*i.l-t;e.r=O(o,t,i.h+1/3),e.g=O(o,t,i.h),e.b=O(o,t,i.h-1/3)}return e.r=Math.floor(255*e.r),e.g=Math.floor(255*e.g),e.b=Math.floor(255*e.b),e}function I(t){const e={b:0,g:0,r:0},i=t.h/60,o=t.s/100,s=t.v/100,n=s*o,a=n*(1-Math.abs(i%2-1));let r;if(i>=0&&i<=1?r={r:n,g:a,b:0}:i>1&&i<=2?r={r:a,g:n,b:0}:i>2&&i<=3?r={r:0,g:n,b:a}:i>3&&i<=4?r={r:0,g:a,b:n}:i>4&&i<=5?r={r:a,g:0,b:n}:i>5&&i<=6&&(r={r:n,g:0,b:a}),r){const t=s-n;e.r=Math.floor(255*(r.r+t)),e.g=Math.floor(255*(r.g+t)),e.b=Math.floor(255*(r.b+t))}return e}function H(t){const e=null!=t?t:0;return{b:Math.floor(n(c(e,256))),g:Math.floor(n(c(e,256))),r:Math.floor(n(c(e,256)))}}function D(t,e){return`rgba(${t.r}, ${t.g}, ${t.b}, ${null!=e?e:1})`}function N(t,e){return`hsla(${t.h}, ${t.s}%, ${t.l}%, ${null!=e?e:1})`}function j(t,e,i,o){let n=t,a=e;return void 0===n.r&&(n=L(t)),void 0===a.r&&(a=L(e)),{b:s(n.b,a.b,i,o),g:s(n.g,a.g,i,o),r:s(n.r,a.r,i,o)}}function F(t,e,i){var o,s;if(i===K.randomColorValue)return H();if("mid"!==i)return i;{const i=null!==(o=t.getFillColor())&&void 0!==o?o:t.getStrokeColor(),n=null!==(s=null==e?void 0:e.getFillColor())&&void 0!==s?s:null==e?void 0:e.getStrokeColor();if(i&&n&&e)return j(i,n,t.getRadius(),e.getRadius());{const t=null!=i?i:n;if(t)return L(t)}}}function B(t,e,i){const o="string"==typeof t?t:t.value;return o===K.randomColorValue?i?M({value:o}):e?K.randomColorValue:K.midColorValue:M({value:o})}function q(t){return void 0!==t?{h:t.h.value,s:t.s.value,l:t.l.value}:void 0}function U(t,e,i){const o={h:{enable:!1,value:t.h},s:{enable:!1,value:t.s},l:{enable:!1,value:t.l}};return e&&(W(o.h,e.h,i),W(o.s,e.s,i),W(o.l,e.l,i)),o}function W(t,e,i){if(t.enable=e.enable,t.enable){if(t.velocity=e.speed/100*i,e.sync)return;t.status=0,t.velocity*=Math.random(),t.value&&(t.value*=Math.random())}else t.velocity=0}function Q(t,e,i){t.beginPath(),t.moveTo(e.x,e.y),t.lineTo(i.x,i.y),t.closePath()}function $(t,e){t.clearRect(0,0,e.width,e.height)}i.d(e,"a",(function(){return gs}));class Z{constructor(t,e){this.position={x:t,y:e}}}class X extends Z{constructor(t,e,i){super(t,e),this.radius=i}contains(t){return u(t,this.position)<=this.radius}intersects(t){const e=t,i=t,o=this.position,s=t.position,n=Math.abs(s.x-o.x),a=Math.abs(s.y-o.y),r=this.radius;if(void 0!==i.radius){return r+i.radius>Math.sqrt(n*n+a+a)}if(void 0!==e.size){const t=e.size.width,i=e.size.height,o=Math.pow(n-t,2)+Math.pow(a-i,2);return!(n>r+t||a>r+i)&&(n<=t||a<=i||o<=r*r)}return!1}}class J extends Z{constructor(t,e,i,o){super(t,e),this.size={height:o,width:i}}contains(t){const e=this.size.width,i=this.size.height,o=this.position;return t.x>=o.x&&t.x<=o.x+e&&t.y>=o.y&&t.y<=o.y+i}intersects(t){const e=t,i=t,o=this.size.width,s=this.size.height,n=this.position,a=t.position;if(void 0!==i.radius)return i.intersects(this);if(void 0!==e.size){const t=e.size,i=t.width,r=t.height;return a.xn.x&&a.yn.y}return!1}}class Y extends X{constructor(t,e,i,o){super(t,e,i),this.canvasSize=o,this.canvasSize={height:o.height,width:o.width}}contains(t){if(super.contains(t))return!0;const e={x:t.x-this.canvasSize.width,y:t.y};if(super.contains(e))return!0;const i={x:t.x-this.canvasSize.width,y:t.y-this.canvasSize.height};if(super.contains(i))return!0;const o={x:t.x,y:t.y-this.canvasSize.height};return super.contains(o)}intersects(t){if(super.intersects(t))return!0;const e=t,i=t,o={x:t.position.x-this.canvasSize.width,y:t.position.y-this.canvasSize.height};if(void 0!==i.radius){const t=new X(o.x,o.y,2*i.radius);return super.intersects(t)}if(void 0!==e.size){const t=new J(o.x,o.y,2*e.size.width,2*e.size.height);return super.intersects(t)}return!1}}class K{}function tt(t,e,i,o,s){if(o){let o={passive:!0};"boolean"==typeof s?o.capture=s:void 0!==s&&(o=s),t.addEventListener(e,i,o)}else{const o=s;t.removeEventListener(e,i,o)}}K.generatedAttribute="generated",K.randomColorValue="random",K.midColorValue="mid",K.touchEndEvent="touchend",K.mouseDownEvent="mousedown",K.mouseUpEvent="mouseup",K.mouseMoveEvent="mousemove",K.touchStartEvent="touchstart",K.touchMoveEvent="touchmove",K.mouseLeaveEvent="mouseleave",K.mouseOutEvent="mouseout",K.touchCancelEvent="touchcancel",K.resizeEvent="resize",K.visibilityChangeEvent="visibilitychange",K.noPolygonDataLoaded="No polygon data loaded.",K.noPolygonFound="No polygon found, you need to specify SVG url in config.";class et{constructor(t){this.container=t,this.canPush=!0,this.mouseMoveHandler=t=>this.mouseTouchMove(t),this.touchStartHandler=t=>this.mouseTouchMove(t),this.touchMoveHandler=t=>this.mouseTouchMove(t),this.touchEndHandler=()=>this.mouseTouchFinish(),this.mouseLeaveHandler=()=>this.mouseTouchFinish(),this.touchCancelHandler=()=>this.mouseTouchFinish(),this.touchEndClickHandler=t=>this.mouseTouchClick(t),this.mouseUpHandler=t=>this.mouseTouchClick(t),this.mouseDownHandler=()=>this.mouseDown(),this.visibilityChangeHandler=()=>this.handleVisibilityChange(),this.themeChangeHandler=t=>this.handleThemeChange(t),this.oldThemeChangeHandler=t=>this.handleThemeChange(t),this.resizeHandler=()=>this.handleWindowResize()}addListeners(){this.manageListeners(!0)}removeListeners(){this.manageListeners(!1)}manageListeners(t){var e;const i=this.container,o=i.actualOptions,s=o.interactivity.detectsOn;let n=K.mouseLeaveEvent;if("window"===s)i.interactivity.element=window,n=K.mouseOutEvent;else if("parent"===s&&i.canvas.element){const t=i.canvas.element;i.interactivity.element=null!==(e=t.parentElement)&&void 0!==e?e:t.parentNode}else i.interactivity.element=i.canvas.element;const a=!f()&&"undefined"!=typeof matchMedia&&matchMedia("(prefers-color-scheme: dark)");a&&(void 0!==a.addEventListener?tt(a,"change",this.themeChangeHandler,t):void 0!==a.addListener&&(t?a.addListener(this.oldThemeChangeHandler):a.removeListener(this.oldThemeChangeHandler)));const r=i.interactivity.element;if(!r)return;const l=r;(o.interactivity.events.onHover.enable||o.interactivity.events.onClick.enable)&&(tt(r,K.mouseMoveEvent,this.mouseMoveHandler,t),tt(r,K.touchStartEvent,this.touchStartHandler,t),tt(r,K.touchMoveEvent,this.touchMoveHandler,t),o.interactivity.events.onClick.enable?(tt(r,K.touchEndEvent,this.touchEndClickHandler,t),tt(r,K.mouseUpEvent,this.mouseUpHandler,t),tt(r,K.mouseDownEvent,this.mouseDownHandler,t)):tt(r,K.touchEndEvent,this.touchEndHandler,t),tt(r,n,this.mouseLeaveHandler,t),tt(r,K.touchCancelEvent,this.touchCancelHandler,t)),i.canvas.element&&(i.canvas.element.style.pointerEvents=l===i.canvas.element?"initial":"none"),o.interactivity.events.resize&&("undefined"!=typeof ResizeObserver?this.resizeObserver&&!t?(i.canvas.element&&this.resizeObserver.unobserve(i.canvas.element),this.resizeObserver.disconnect(),delete this.resizeObserver):!this.resizeObserver&&t&&i.canvas.element&&(this.resizeObserver=new ResizeObserver(t=>{t.find(t=>t.target===i.canvas.element)&&this.handleWindowResize()}),this.resizeObserver.observe(i.canvas.element)):tt(window,K.resizeEvent,this.resizeHandler,t)),document&&tt(document,K.visibilityChangeEvent,this.visibilityChangeHandler,t,!1)}handleWindowResize(){this.resizeTimeout&&(clearTimeout(this.resizeTimeout),delete this.resizeTimeout),this.resizeTimeout=setTimeout(async()=>{var t;return await(null===(t=this.container.canvas)||void 0===t?void 0:t.windowResize())},500)}handleVisibilityChange(){const t=this.container,e=t.actualOptions;this.mouseTouchFinish(),e.pauseOnBlur&&((null===document||void 0===document?void 0:document.hidden)?(t.pageHidden=!0,t.pause()):(t.pageHidden=!1,t.getAnimationStatus()?t.play(!0):t.draw(!0)))}mouseDown(){const t=this.container.interactivity;if(t){const e=t.mouse;e.clicking=!0,e.downPosition=e.position}}mouseTouchMove(t){var e,i,o,s,n,a,r;const l=this.container,c=l.actualOptions;if(void 0===(null===(e=l.interactivity)||void 0===e?void 0:e.element))return;let h;l.interactivity.mouse.inside=!0;const d=l.canvas.element;if(t.type.startsWith("mouse")){this.canPush=!0;const e=t;if(l.interactivity.element===window){if(d){const t=d.getBoundingClientRect();h={x:e.clientX-t.left,y:e.clientY-t.top}}}else if("parent"===c.interactivity.detectsOn){const t=e.target,s=e.currentTarget,n=l.canvas.element;if(t&&s&&n){const i=t.getBoundingClientRect(),o=s.getBoundingClientRect(),a=n.getBoundingClientRect();h={x:e.offsetX+2*i.left-(o.left+a.left),y:e.offsetY+2*i.top-(o.top+a.top)}}else h={x:null!==(i=e.offsetX)&&void 0!==i?i:e.clientX,y:null!==(o=e.offsetY)&&void 0!==o?o:e.clientY}}else e.target===l.canvas.element&&(h={x:null!==(s=e.offsetX)&&void 0!==s?s:e.clientX,y:null!==(n=e.offsetY)&&void 0!==n?n:e.clientY})}else{this.canPush="touchmove"!==t.type;const e=t,i=e.touches[e.touches.length-1],o=null==d?void 0:d.getBoundingClientRect();h={x:i.clientX-(null!==(a=null==o?void 0:o.left)&&void 0!==a?a:0),y:i.clientY-(null!==(r=null==o?void 0:o.top)&&void 0!==r?r:0)}}const u=l.retina.pixelRatio;h&&(h.x*=u,h.y*=u),l.interactivity.mouse.position=h,l.interactivity.status=K.mouseMoveEvent}mouseTouchFinish(){const t=this.container.interactivity;if(void 0===t)return;const e=t.mouse;delete e.position,delete e.clickPosition,delete e.downPosition,t.status=K.mouseLeaveEvent,e.inside=!1,e.clicking=!1}mouseTouchClick(t){const e=this.container,i=e.actualOptions,o=e.interactivity.mouse;o.inside=!0;let s=!1;const n=o.position;if(void 0!==n&&i.interactivity.events.onClick.enable){for(const[,t]of e.plugins)if(void 0!==t.clickPositionValid&&(s=t.clickPositionValid(n),s))break;s||this.doMouseTouchClick(t),o.clicking=!1}}doMouseTouchClick(t){const e=this.container,i=e.actualOptions;if(this.canPush){const t=e.interactivity.mouse.position;if(!t)return;e.interactivity.mouse.clickPosition={x:t.x,y:t.y},e.interactivity.mouse.clickTime=(new Date).getTime();const o=i.interactivity.events.onClick;if(o.mode instanceof Array)for(const t of o.mode)this.handleClickMode(t);else this.handleClickMode(o.mode)}"touchend"===t.type&&setTimeout(()=>this.mouseTouchFinish(),500)}handleThemeChange(t){const e=t.matches?this.container.options.defaultDarkTheme:this.container.options.defaultLightTheme,i=this.container.options.themes.find(t=>t.name===e);i&&i.default.auto&&this.container.loadTheme(e)}handleClickMode(t){const e=this.container,i=e.actualOptions,o=i.interactivity.modes.push.quantity,s=i.interactivity.modes.remove.quantity;switch(t){case"push":if(o>0){const t=b([void 0,...i.interactivity.modes.push.groups]),s=void 0!==t?e.actualOptions.particles.groups[t]:void 0;e.particles.push(o,e.interactivity.mouse,s,t)}break;case"remove":e.particles.removeQuantity(s);break;case"bubble":e.bubble.clicking=!0;break;case"repulse":e.repulse.clicking=!0,e.repulse.count=0;for(const t of e.repulse.particles)t.velocity.setTo(t.initialVelocity);e.repulse.particles=[],e.repulse.finish=!1,setTimeout(()=>{e.destroyed||(e.repulse.clicking=!1)},1e3*i.interactivity.modes.repulse.duration);break;case"attract":e.attract.clicking=!0,e.attract.count=0;for(const t of e.attract.particles)t.velocity.setTo(t.initialVelocity);e.attract.particles=[],e.attract.finish=!1,setTimeout(()=>{e.destroyed||(e.attract.clicking=!1)},1e3*i.interactivity.modes.attract.duration);break;case"pause":e.getAnimationStatus()?e.pause():e.play()}for(const[,i]of e.plugins)i.handleClickMode&&i.handleClickMode(t)}}class it{constructor(t){this.container=t,this.type=0}}class ot{constructor(t){this.container=t}async nextFrame(t){var e;try{const i=this.container;if(void 0!==i.lastFrameTime&&t1e3)return void i.draw(!1);if(await i.particles.draw(s),i.duration>0&&i.lifeTime>i.duration)return void i.destroy();i.getAnimationStatus()&&i.draw(!1)}catch(t){console.error("tsParticles error in animation loop",t)}}}var st,nt=function(t,e,i,o,s){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?s.call(t,i):s?s.value=i:e.set(t,i),i},at=function(t,e,i,o){if("a"===i&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?o:"a"===i?o.call(t):o?o.value:e.get(t)};class rt{constructor(t,e){this.container=e,st.set(this,void 0),nt(this,st,t,"f"),this.externalInteractors=[],this.particleInteractors=[],this.init()}init(){const t=at(this,st,"f").plugins.getInteractors(this.container,!0);this.externalInteractors=[],this.particleInteractors=[];for(const e of t)switch(e.type){case 0:this.externalInteractors.push(e);break;case 1:this.particleInteractors.push(e)}}async externalInteract(t){for(const e of this.externalInteractors)e.isEnabled()&&await e.interact(t)}async particlesInteract(t,e){for(const e of this.externalInteractors)e.reset(t);for(const i of this.particleInteractors)i.isEnabled(t)&&await i.interact(t,e)}}st=new WeakMap;class lt{constructor(t){this.container=t,this.type=1}}class ct{constructor(t){this.container=t}move(t,e){t.destroyed||(this.moveParticle(t,e),this.moveParallax(t))}moveParticle(t,e){var i,o,s,n,r;const c=t.options,h=c.move;if(!h.enable)return;const u=this.container,p=this.getProximitySpeedFactor(t),v=(null!==(i=(n=t.retina).moveSpeed)&&void 0!==i?i:n.moveSpeed=a(h.speed)*u.retina.pixelRatio)*u.retina.reduceFactor,y=null!==(o=(r=t.retina).moveDrift)&&void 0!==o?o:r.moveDrift=a(t.options.move.drift)*u.retina.pixelRatio,w=l(c.size.value)*u.retina.pixelRatio,f=v*((h.size?t.getRadius()/w:1)*p*(e.factor||1)/2);this.applyPath(t,e);const g=h.gravity,m=g.enable&&g.inverse?-1:1;g.enable&&f&&(t.velocity.y+=m*(g.acceleration*e.factor)/(60*f)),y&&f&&(t.velocity.x+=y*e.factor/(60*f));const b=t.moveDecay;1!=b&&t.velocity.multTo(b);const S=t.velocity.mult(f),P=null!==(s=t.retina.maxSpeed)&&void 0!==s?s:u.retina.maxSpeed;g.enable&&g.maxSpeed>0&&(!g.inverse&&S.y>=0&&S.y>=P||g.inverse&&S.y<=0&&S.y<=-P)&&(S.y=m*P,f&&(t.velocity.y=S.y/f));const _=t.options.zIndex,x=(1-t.zIndexFactor)**_.velocityRate;h.spin.enable?this.spin(t,f):(1!=x&&S.multTo(x),t.position.addTo(S),h.vibrate&&(t.position.x+=Math.sin(t.position.x*Math.cos(t.position.y)),t.position.y+=Math.cos(t.position.y*Math.sin(t.position.x)))),function(t){const e=t.initialPosition,{dx:i,dy:o}=d(e,t.position),s=Math.abs(i),n=Math.abs(o),a=t.retina.maxDistance.horizontal,r=t.retina.maxDistance.vertical;if(a||r)if((a&&s>=a||r&&n>=r)&&!t.misplaced)t.misplaced=!!a&&s>a||!!r&&n>r,a&&(t.velocity.x=t.velocity.y/2-t.velocity.x),r&&(t.velocity.y=t.velocity.x/2-t.velocity.y);else if((!a||se.x&&o.x>0)&&(o.x*=-Math.random()),r&&(i.ye.y&&o.y>0)&&(o.y*=-Math.random())}}(t)}spin(t,e){const i=this.container;if(!t.spin)return;const o={x:"clockwise"===t.spin.direction?Math.cos:Math.sin,y:"clockwise"===t.spin.direction?Math.sin:Math.cos};t.position.x=t.spin.center.x+t.spin.radius*o.x(t.spin.angle),t.position.y=t.spin.center.y+t.spin.radius*o.y(t.spin.angle),t.spin.radius+=t.spin.acceleration;const s=Math.max(i.canvas.size.width,i.canvas.size.height);t.spin.radius>s/2?(t.spin.radius=s/2,t.spin.acceleration*=-1):t.spin.radius<0&&(t.spin.radius=0,t.spin.acceleration*=-1),t.spin.angle+=e/100*(1-t.spin.radius/s)}applyPath(t,e){const i=t.options.move.path;if(!i.enable)return;const s=this.container;if(t.lastPathTime<=t.pathDelay)return void(t.lastPathTime+=e.value);const n=s.pathGenerator.generate(t);t.velocity.addTo(n),i.clamp&&(t.velocity.x=o(t.velocity.x,-1,1),t.velocity.y=o(t.velocity.y,-1,1)),t.lastPathTime-=t.pathDelay}moveParallax(t){const e=this.container,i=e.actualOptions;if(f()||!i.interactivity.events.onHover.parallax.enable)return;const o=i.interactivity.events.onHover.parallax.force,s=e.interactivity.mouse.position;if(!s)return;const n=e.canvas.size.width/2,a=e.canvas.size.height/2,r=i.interactivity.events.onHover.parallax.smooth,l=t.getRadius()/o,c=(s.x-n)*l,h=(s.y-a)*l;t.offset.x+=(c-t.offset.x)/r,t.offset.y+=(h-t.offset.y)/r}getProximitySpeedFactor(t){const e=this.container,i=e.actualOptions;if(!g("slow",i.interactivity.events.onHover.mode))return 1;const o=this.container.interactivity.mouse.position;if(!o)return 1;const s=u(o,t.getPosition()),n=e.retina.slowModeRadius;if(s>n)return 1;return(s/n||0)/i.interactivity.modes.slow.factor}}var ht,dt=function(t,e,i,o,s){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?s.call(t,i):s?s.value=i:e.set(t,i),i};class ut{constructor(t){ht.set(this,void 0),dt(this,ht,t,"f"),this.plugins=[],this.interactorsInitializers=new Map,this.updatersInitializers=new Map,this.interactors=new Map,this.updaters=new Map,this.presets=new Map,this.drawers=new Map,this.pathGenerators=new Map}getPlugin(t){return this.plugins.find(e=>e.id===t)}addPlugin(t){this.getPlugin(t.id)||this.plugins.push(t)}getAvailablePlugins(t){const e=new Map;for(const i of this.plugins)i.needsPlugin(t.actualOptions)&&e.set(i.id,i.getPlugin(t));return e}loadOptions(t,e){for(const i of this.plugins)i.loadOptions(t,e)}getPreset(t){return this.presets.get(t)}addPreset(t,e,i=!1){!i&&this.getPreset(t)||this.presets.set(t,e)}addShapeDrawer(t,e){this.getShapeDrawer(t)||this.drawers.set(t,e)}getShapeDrawer(t){return this.drawers.get(t)}getSupportedShapes(){return this.drawers.keys()}getPathGenerator(t){return this.pathGenerators.get(t)}addPathGenerator(t,e){this.getPathGenerator(t)||this.pathGenerators.set(t,e)}getInteractors(t,e=!1){let i=this.interactors.get(t);return i&&!e||(i=[...this.interactorsInitializers.values()].map(e=>e(t)),this.interactors.set(t,i)),i}addInteractor(t,e){this.interactorsInitializers.set(t,e)}getUpdaters(t,e=!1){let i=this.updaters.get(t);return i&&!e||(i=[...this.updatersInitializers.values()].map(e=>e(t)),this.updaters.set(t,i)),i}addParticleUpdater(t,e){this.updatersInitializers.set(t,e)}}ht=new WeakMap;class pt{constructor(t,e){this.position=t,this.particle=e}}class vt{constructor(t,e){this.rectangle=t,this.capacity=e,this.points=[],this.divided=!1}subdivide(){const t=this.rectangle.position.x,e=this.rectangle.position.y,i=this.rectangle.size.width,o=this.rectangle.size.height,s=this.capacity;this.northEast=new vt(new J(t,e,i/2,o/2),s),this.northWest=new vt(new J(t+i/2,e,i/2,o/2),s),this.southEast=new vt(new J(t,e+o/2,i/2,o/2),s),this.southWest=new vt(new J(t+i/2,e+o/2,i/2,o/2),s),this.divided=!0}insert(t){var e,i,o,s,n;return!!this.rectangle.contains(t.position)&&(this.points.lengthe.particle.getRadius()||a.push(e.particle);return this.divided&&(null===(i=this.northEast)||void 0===i||i.query(t,a),null===(o=this.northWest)||void 0===o||o.query(t,a),null===(s=this.southEast)||void 0===s||s.query(t,a),null===(n=this.southWest)||void 0===n||n.query(t,a)),a}}class yt{constructor(t,e){let i,o;if(void 0===e){if("number"==typeof t)throw new Error("tsParticles - Vector not initialized correctly");const e=t;[i,o]=[e.x,e.y]}else[i,o]=[t,e];this.x=i,this.y=o}static clone(t){return yt.create(t.x,t.y)}static create(t,e){return new yt(t,e)}static get origin(){return yt.create(0,0)}get angle(){return Math.atan2(this.y,this.x)}set angle(t){this.updateFromAngle(t,this.length)}get length(){return Math.sqrt(this.x**2+this.y**2)}set length(t){this.updateFromAngle(this.angle,t)}add(t){return yt.create(this.x+t.x,this.y+t.y)}addTo(t){this.x+=t.x,this.y+=t.y}sub(t){return yt.create(this.x-t.x,this.y-t.y)}subFrom(t){this.x-=t.x,this.y-=t.y}mult(t){return yt.create(this.x*t,this.y*t)}multTo(t){this.x*=t,this.y*=t}div(t){return yt.create(this.x/t,this.y/t)}divTo(t){this.x/=t,this.y/=t}distanceTo(t){return this.sub(t).length}getLengthSq(){return this.x**2+this.y**2}distanceToSq(t){return this.sub(t).getLengthSq()}manhattanDistanceTo(t){return Math.abs(t.x-this.x)+Math.abs(t.y-this.y)}copy(){return yt.clone(this)}setTo(t){this.x=t.x,this.y=t.y}rotate(t){return yt.create(this.x*Math.cos(t)-this.y*Math.sin(t),this.x*Math.sin(t)+this.y*Math.cos(t))}updateFromAngle(t,e){this.x=Math.cos(t)*e,this.y=Math.sin(t)*e}}class wt extends yt{constructor(t,e,i){super(t,e),this.z=void 0===i?t.z:i}static clone(t){return wt.create(t.x,t.y,t.z)}static create(t,e,i){return new wt(t,e,i)}add(t){return t instanceof wt?wt.create(this.x+t.x,this.y+t.y,this.z+t.z):super.add(t)}addTo(t){super.addTo(t),t instanceof wt&&(this.z+=t.z)}sub(t){return t instanceof wt?wt.create(this.x-t.x,this.y-t.y,this.z-t.z):super.sub(t)}subFrom(t){super.subFrom(t),t instanceof wt&&(this.z-=t.z)}mult(t){return wt.create(this.x*t,this.y*t,this.z*t)}multTo(t){super.multTo(t),this.z*=t}div(t){return wt.create(this.x/t,this.y/t,this.z/t)}divTo(t){super.divTo(t),this.z/=t}copy(){return wt.clone(this)}setTo(t){super.setTo(t),t instanceof wt&&(this.z=t.z)}}class ft{constructor(t){this.container=t,this.size={height:0,width:0},this.context=null,this.generatedCanvas=!1}init(){this.resize(),this.initStyle(),this.initCover(),this.initTrail(),this.initBackground(),this.paint()}loadCanvas(t){var e;this.generatedCanvas&&(null===(e=this.element)||void 0===e||e.remove()),this.generatedCanvas=t.dataset&&K.generatedAttribute in t.dataset?"true"===t.dataset[K.generatedAttribute]:this.generatedCanvas,this.element=t,this.originalStyle=_({},this.element.style),this.size.height=t.offsetHeight,this.size.width=t.offsetWidth,this.context=this.element.getContext("2d"),this.container.retina.init(),this.initBackground()}destroy(){var t;this.generatedCanvas&&(null===(t=this.element)||void 0===t||t.remove()),this.draw(t=>{$(t,this.size)})}paint(){const t=this.container.actualOptions;this.draw(e=>{t.backgroundMask.enable&&t.backgroundMask.cover&&this.coverColor?($(e,this.size),this.paintBase(D(this.coverColor,this.coverColor.a))):this.paintBase()})}clear(){const t=this.container.actualOptions,e=t.particles.move.trail;t.backgroundMask.enable?this.paint():e.enable&&e.length>0&&this.trailFillColor?this.paintBase(D(this.trailFillColor,1/e.length)):this.draw(t=>{$(t,this.size)})}async windowResize(){if(!this.element)return;const t=this.container;this.resize();const e=t.updateActualOptions();t.particles.setDensity();for(const[,e]of t.plugins)void 0!==e.resize&&e.resize();e&&await t.refresh()}resize(){if(!this.element)return;const t=this.container,e=t.retina.pixelRatio,i=t.canvas.size,o=i.width,s=i.height;i.width=this.element.offsetWidth*e,i.height=this.element.offsetHeight*e,this.element.width=i.width,this.element.height=i.height,this.container.started&&(this.resizeFactor={width:i.width/o,height:i.height/s})}drawConnectLine(t,e){this.draw(i=>{var o;const s=this.lineStyle(t,e);if(!s)return;const n=t.getPosition(),a=e.getPosition();!function(t,e,i,o,s){t.save(),Q(t,o,s),t.lineWidth=e,t.strokeStyle=i,t.stroke(),t.restore()}(i,null!==(o=t.retina.linksWidth)&&void 0!==o?o:this.container.retina.linksWidth,s,n,a)})}drawGrabLine(t,e,i,o){const s=this.container;this.draw(n=>{var a;const r=t.getPosition();!function(t,e,i,o,s,n){t.save(),Q(t,i,o),t.strokeStyle=D(s,n),t.lineWidth=e,t.stroke(),t.restore()}(n,null!==(a=t.retina.linksWidth)&&void 0!==a?a:s.retina.linksWidth,r,o,e,i)})}drawParticle(t,e){var i,o,s,n,a,r;if(t.spawning||t.destroyed)return;const l=t.getFillColor(),c=null!==(i=t.getStrokeColor())&&void 0!==i?i:l;if(!l&&!c)return;let[h,d]=this.getPluginParticleColors(t);const u=t.options.twinkle.particles,p=u.enable&&Math.random(){const o=(1-t.zIndexFactor)**y.sizeRate,s=d?N(d,m*w):S;if(f<=0)return;const n=this.container;for(const e of n.particles.updaters)e.beforeDraw&&e.beforeDraw(t);!function(t,e,i,o,s,n,a,r,l,c,h,d){var u,p,v,y,w,f;const g=i.getPosition(),m=i.options.tilt,b=i.options.roll;if(e.save(),m.enable||b.enable){const t=b.enable&&i.roll,o=m.enable&&i.tilt,s=t&&("horizontal"===b.mode||"both"===b.mode),n=t&&("vertical"===b.mode||"both"===b.mode);e.setTransform(s?Math.cos(i.roll.angle):1,o?Math.cos(i.tilt.value)*i.tilt.cosDirection:0,o?Math.sin(i.tilt.value)*i.tilt.sinDirection:0,n?Math.sin(i.roll.angle):1,g.x,g.y)}else e.translate(g.x,g.y);e.beginPath();const S=(null!==(p=null===(u=i.rotate)||void 0===u?void 0:u.value)&&void 0!==p?p:0)+(i.options.rotate.path?i.velocity.angle:0);0!==S&&e.rotate(S),a&&(e.globalCompositeOperation=r);const P=i.shadowColor;if(h.enable&&P&&(e.shadowBlur=h.blur,e.shadowColor=D(P),e.shadowOffsetX=h.offset.x,e.shadowOffsetY=h.offset.y),d){const t=d.angle.value,i="radial"===d.type?e.createRadialGradient(0,0,0,0,0,l):e.createLinearGradient(Math.cos(t)*-l,Math.sin(t)*-l,Math.cos(t)*l,Math.sin(t)*l);for(const t of d.colors)i.addColorStop(t.stop,N({h:t.value.h.value,s:t.value.s.value,l:t.value.l.value},null!==(y=null===(v=t.opacity)||void 0===v?void 0:v.value)&&void 0!==y?y:c));e.fillStyle=i}else s&&(e.fillStyle=s);const _=i.stroke;e.lineWidth=null!==(w=i.strokeWidth)&&void 0!==w?w:0,n&&(e.strokeStyle=n),function(t,e,i,o,s,n){if(!i.shape)return;const a=t.drawers.get(i.shape);if(!a)return;a.draw(e,i,o,s,n,t.retina.pixelRatio)}(t,e,i,l,c,o),(null!==(f=null==_?void 0:_.width)&&void 0!==f?f:0)>0&&e.stroke(),i.close&&e.closePath(),i.fill&&e.fill(),e.restore(),e.save(),m.enable&&i.tilt?e.setTransform(1,Math.cos(i.tilt.value)*i.tilt.cosDirection,Math.sin(i.tilt.value)*i.tilt.sinDirection,1,g.x,g.y):e.translate(g.x,g.y),0!==S&&e.rotate(S),a&&(e.globalCompositeOperation=r),function(t,e,i,o,s,n){if(!i.shape)return;const a=t.drawers.get(i.shape);if(!(null==a?void 0:a.afterEffect))return;a.afterEffect(e,i,o,s,n,t.retina.pixelRatio)}(t,e,i,l,c,o),e.restore()}(this.container,i,t,e,S,s,v.backgroundMask.enable,v.backgroundMask.composite,f*o,b,t.options.shadow,t.gradient);for(const e of n.particles.updaters)e.afterDraw&&e.afterDraw(t)})}drawPlugin(t,e){this.draw(i=>{!function(t,e,i){e.draw&&(t.save(),e.draw(t,i),t.restore())}(i,t,e)})}drawParticlePlugin(t,e,i){this.draw(o=>{!function(t,e,i,o){void 0!==e.drawParticle&&(t.save(),e.drawParticle(t,i,o),t.restore())}(o,t,e,i)})}initBackground(){const t=this.container.actualOptions.background,e=this.element,i=null==e?void 0:e.style;if(i){if(t.color){const e=M(t.color);i.backgroundColor=e?D(e,t.opacity):""}else i.backgroundColor="";i.backgroundImage=t.image||"",i.backgroundPosition=t.position||"",i.backgroundRepeat=t.repeat||"",i.backgroundSize=t.size||""}}draw(t){if(this.context)return t(this.context)}initCover(){const t=this.container.actualOptions.backgroundMask.cover,e=M(t.color);e&&(this.coverColor={r:e.r,g:e.g,b:e.b,a:t.opacity})}initTrail(){const t=this.container.actualOptions,e=M(t.particles.move.trail.fillColor);if(e){const i=t.particles.move.trail;this.trailFillColor={r:e.r,g:e.g,b:e.b,a:1/i.length}}}getPluginParticleColors(t){let e,i;for(const[,o]of this.container.plugins)if(!e&&o.particleFillColor&&(e=R(o.particleFillColor(t))),!i&&o.particleStrokeColor&&(i=R(o.particleStrokeColor(t))),e&&i)break;return[e,i]}initStyle(){const t=this.element,e=this.container.actualOptions;if(!t)return;const i=this.originalStyle;e.fullScreen.enable?(this.originalStyle=_({},t.style),t.style.setProperty("position","fixed","important"),t.style.setProperty("z-index",e.fullScreen.zIndex.toString(10),"important"),t.style.setProperty("top","0","important"),t.style.setProperty("left","0","important"),t.style.setProperty("width","100%","important"),t.style.setProperty("height","100%","important")):i&&(t.style.position=i.position,t.style.zIndex=i.zIndex,t.style.top=i.top,t.style.left=i.left,t.style.width=i.width,t.style.height=i.height);for(const i in e.style){if(!i||!e.style)continue;const o=e.style[i];o&&t.style.setProperty(i,o,"important")}}paintBase(t){this.draw(e=>{!function(t,e,i){t.save(),t.fillStyle=null!=i?i:"rgba(0,0,0,0)",t.fillRect(0,0,e.width,e.height),t.restore()}(e,this.size,t)})}lineStyle(t,e){return this.draw(i=>{const o=this.container.actualOptions.interactivity.modes.connect;return function(t,e,i,o){const s=Math.floor(i.getRadius()/e.getRadius()),n=e.getFillColor(),a=i.getFillColor();if(!n||!a)return;const r=e.getPosition(),l=i.getPosition(),c=j(n,a,e.getRadius(),i.getRadius()),h=t.createLinearGradient(r.x,r.y,l.x,l.y);return h.addColorStop(0,N(n,o)),h.addColorStop(s>1?1:s,D(c,o)),h.addColorStop(1,N(a,o)),h}(i,t,e,o.links.opacity)})}}class gt{constructor(){this.value="#fff"}static create(t,e){const i=new gt;return i.load(t),void 0!==e&&("string"==typeof e||e instanceof Array?i.load({value:e}):i.load(e)),i}load(t){void 0!==(null==t?void 0:t.value)&&(this.value=t.value)}}class mt{constructor(){this.color=new gt,this.color.value="",this.image="",this.position="",this.repeat="",this.size="",this.opacity=1}load(t){void 0!==t&&(void 0!==t.color&&(this.color=gt.create(this.color,t.color)),void 0!==t.image&&(this.image=t.image),void 0!==t.position&&(this.position=t.position),void 0!==t.repeat&&(this.repeat=t.repeat),void 0!==t.size&&(this.size=t.size),void 0!==t.opacity&&(this.opacity=t.opacity))}}class bt{constructor(){this.color=new gt,this.opacity=1}load(t){void 0!==t&&(void 0!==t.color&&(this.color=gt.create(this.color,t.color)),void 0!==t.opacity&&(this.opacity=t.opacity))}}class St{constructor(){this.composite="destination-out",this.cover=new bt,this.enable=!1}load(t){if(void 0!==t){if(void 0!==t.composite&&(this.composite=t.composite),void 0!==t.cover){const e=t.cover,i="string"==typeof t.cover?{color:t.cover}:t.cover;this.cover.load(void 0!==e.color?e:{color:i})}void 0!==t.enable&&(this.enable=t.enable)}}}class Pt{constructor(){this.enable=!0,this.zIndex=0}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.zIndex&&(this.zIndex=t.zIndex))}}class _t{constructor(){this.enable=!1,this.mode=[]}load(t){void 0!==t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode))}}class xt{constructor(){this.selectors=[],this.enable=!1,this.mode=[],this.type="circle"}get elementId(){return this.ids}set elementId(t){this.ids=t}get el(){return this.elementId}set el(t){this.elementId=t}get ids(){return this.selectors instanceof Array?this.selectors.map(t=>t.replace("#","")):this.selectors.replace("#","")}set ids(t){this.selectors=t instanceof Array?t.map(t=>"#"+t):"#"+t}load(t){var e,i;if(void 0===t)return;const o=null!==(i=null!==(e=t.ids)&&void 0!==e?e:t.elementId)&&void 0!==i?i:t.el;void 0!==o&&(this.ids=o),void 0!==t.selectors&&(this.selectors=t.selectors),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.type&&(this.type=t.type)}}class Ct{constructor(){this.enable=!1,this.force=2,this.smooth=10}load(t){void 0!==t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.force&&(this.force=t.force),void 0!==t.smooth&&(this.smooth=t.smooth))}}class At{constructor(){this.enable=!1,this.mode=[],this.parallax=new Ct}load(t){void 0!==t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode),this.parallax.load(t.parallax))}}class Vt{constructor(){this.onClick=new _t,this.onDiv=new xt,this.onHover=new At,this.resize=!0}get onclick(){return this.onClick}set onclick(t){this.onClick=t}get ondiv(){return this.onDiv}set ondiv(t){this.onDiv=t}get onhover(){return this.onHover}set onhover(t){this.onHover=t}load(t){var e,i,o;if(void 0===t)return;this.onClick.load(null!==(e=t.onClick)&&void 0!==e?e:t.onclick);const s=null!==(i=t.onDiv)&&void 0!==i?i:t.ondiv;void 0!==s&&(s instanceof Array?this.onDiv=s.map(t=>{const e=new xt;return e.load(t),e}):(this.onDiv=new xt,this.onDiv.load(s))),this.onHover.load(null!==(o=t.onHover)&&void 0!==o?o:t.onhover),void 0!==t.resize&&(this.resize=t.resize)}}class Gt{constructor(){this.distance=200,this.duration=.4,this.easing="ease-out-quad",this.factor=1,this.maxSpeed=50,this.speed=1}load(t){t&&(void 0!==t.distance&&(this.distance=t.distance),void 0!==t.duration&&(this.duration=t.duration),void 0!==t.easing&&(this.easing=t.easing),void 0!==t.factor&&(this.factor=t.factor),void 0!==t.maxSpeed&&(this.maxSpeed=t.maxSpeed),void 0!==t.speed&&(this.speed=t.speed))}}class Tt{constructor(){this.distance=200}load(t){t&&void 0!==t.distance&&(this.distance=t.distance)}}class Et{constructor(){this.distance=200,this.duration=.4,this.mix=!1}load(t){void 0!==t&&(void 0!==t.distance&&(this.distance=t.distance),void 0!==t.duration&&(this.duration=t.duration),void 0!==t.mix&&(this.mix=t.mix),void 0!==t.opacity&&(this.opacity=t.opacity),void 0!==t.color&&(t.color instanceof Array?this.color=t.color.map(t=>gt.create(void 0,t)):(this.color instanceof Array&&(this.color=new gt),this.color=gt.create(this.color,t.color))),void 0!==t.size&&(this.size=t.size))}}class Ot extends Et{constructor(){super(),this.selectors=[]}get ids(){return this.selectors instanceof Array?this.selectors.map(t=>t.replace("#","")):this.selectors.replace("#","")}set ids(t){this.selectors=t instanceof Array?t.map(t=>"#"+t):"#"+t}load(t){super.load(t),void 0!==t&&(void 0!==t.ids&&(this.ids=t.ids),void 0!==t.selectors&&(this.selectors=t.selectors))}}class kt extends Et{load(t){super.load(t),void 0!==t&&void 0!==t.divs&&(t.divs instanceof Array?this.divs=t.divs.map(t=>{const e=new Ot;return e.load(t),e}):((this.divs instanceof Array||!this.divs)&&(this.divs=new Ot),this.divs.load(t.divs)))}}class Mt{constructor(){this.opacity=.5}load(t){void 0!==t&&void 0!==t.opacity&&(this.opacity=t.opacity)}}class Rt{constructor(){this.distance=80,this.links=new Mt,this.radius=60}get line_linked(){return this.links}set line_linked(t){this.links=t}get lineLinked(){return this.links}set lineLinked(t){this.links=t}load(t){var e,i;void 0!==t&&(void 0!==t.distance&&(this.distance=t.distance),this.links.load(null!==(i=null!==(e=t.links)&&void 0!==e?e:t.lineLinked)&&void 0!==i?i:t.line_linked),void 0!==t.radius&&(this.radius=t.radius))}}class zt{constructor(){this.blink=!1,this.consent=!1,this.opacity=1}load(t){void 0!==t&&(void 0!==t.blink&&(this.blink=t.blink),void 0!==t.color&&(this.color=gt.create(this.color,t.color)),void 0!==t.consent&&(this.consent=t.consent),void 0!==t.opacity&&(this.opacity=t.opacity))}}class Lt{constructor(){this.distance=100,this.links=new zt}get line_linked(){return this.links}set line_linked(t){this.links=t}get lineLinked(){return this.links}set lineLinked(t){this.links=t}load(t){var e,i;void 0!==t&&(void 0!==t.distance&&(this.distance=t.distance),this.links.load(null!==(i=null!==(e=t.links)&&void 0!==e?e:t.lineLinked)&&void 0!==i?i:t.line_linked))}}class It{constructor(){this.start=new gt,this.stop=new gt,this.start.value="#ffffff",this.stop.value="#000000"}load(t){void 0!==t&&(this.start=gt.create(this.start,t.start),this.stop=gt.create(this.stop,t.stop))}}class Ht{constructor(){this.gradient=new It,this.radius=1e3}load(t){void 0!==t&&(this.gradient.load(t.gradient),void 0!==t.radius&&(this.radius=t.radius))}}class Dt{constructor(){this.color=new gt,this.color.value="#000000",this.length=2e3}load(t){void 0!==t&&(this.color=gt.create(this.color,t.color),void 0!==t.length&&(this.length=t.length))}}class Nt{constructor(){this.area=new Ht,this.shadow=new Dt}load(t){void 0!==t&&(this.area.load(t.area),this.shadow.load(t.shadow))}}class jt{constructor(){this.default=!0,this.groups=[],this.quantity=4}get particles_nb(){return this.quantity}set particles_nb(t){this.quantity=t}load(t){var e;if(void 0===t)return;void 0!==t.default&&(this.default=t.default),void 0!==t.groups&&(this.groups=t.groups.map(t=>t)),this.groups.length||(this.default=!0);const i=null!==(e=t.quantity)&&void 0!==e?e:t.particles_nb;void 0!==i&&(this.quantity=i)}}class Ft{constructor(){this.quantity=2}get particles_nb(){return this.quantity}set particles_nb(t){this.quantity=t}load(t){var e;if(void 0===t)return;const i=null!==(e=t.quantity)&&void 0!==e?e:t.particles_nb;void 0!==i&&(this.quantity=i)}}class Bt{constructor(){this.distance=200,this.duration=.4,this.factor=100,this.speed=1,this.maxSpeed=50,this.easing="ease-out-quad"}load(t){t&&(void 0!==t.distance&&(this.distance=t.distance),void 0!==t.duration&&(this.duration=t.duration),void 0!==t.easing&&(this.easing=t.easing),void 0!==t.factor&&(this.factor=t.factor),void 0!==t.speed&&(this.speed=t.speed),void 0!==t.maxSpeed&&(this.maxSpeed=t.maxSpeed))}}class qt extends Bt{constructor(){super(),this.selectors=[]}get ids(){return this.selectors instanceof Array?this.selectors.map(t=>t.replace("#","")):this.selectors.replace("#","")}set ids(t){this.selectors=t instanceof Array?t.map(()=>"#"+t):"#"+t}load(t){super.load(t),void 0!==t&&(void 0!==t.ids&&(this.ids=t.ids),void 0!==t.selectors&&(this.selectors=t.selectors))}}class Ut extends Bt{load(t){super.load(t),void 0!==(null==t?void 0:t.divs)&&(t.divs instanceof Array?this.divs=t.divs.map(t=>{const e=new qt;return e.load(t),e}):((this.divs instanceof Array||!this.divs)&&(this.divs=new qt),this.divs.load(t.divs)))}}class Wt{constructor(){this.factor=3,this.radius=200}get active(){return!1}set active(t){}load(t){void 0!==t&&(void 0!==t.factor&&(this.factor=t.factor),void 0!==t.radius&&(this.radius=t.radius))}}class Qt{constructor(){this.delay=1,this.pauseOnStop=!1,this.quantity=1}load(t){void 0!==t&&(void 0!==t.delay&&(this.delay=t.delay),void 0!==t.quantity&&(this.quantity=t.quantity),void 0!==t.particles&&(this.particles=_({},t.particles)),void 0!==t.pauseOnStop&&(this.pauseOnStop=t.pauseOnStop))}}class $t{constructor(){this.attract=new Gt,this.bounce=new Tt,this.bubble=new kt,this.connect=new Rt,this.grab=new Lt,this.light=new Nt,this.push=new jt,this.remove=new Ft,this.repulse=new Ut,this.slow=new Wt,this.trail=new Qt}load(t){void 0!==t&&(this.attract.load(t.attract),this.bubble.load(t.bubble),this.connect.load(t.connect),this.grab.load(t.grab),this.light.load(t.light),this.push.load(t.push),this.remove.load(t.remove),this.repulse.load(t.repulse),this.slow.load(t.slow),this.trail.load(t.trail))}}class Zt{constructor(){this.detectsOn="window",this.events=new Vt,this.modes=new $t}get detect_on(){return this.detectsOn}set detect_on(t){this.detectsOn=t}load(t){var e,i,o;if(void 0===t)return;const s=null!==(e=t.detectsOn)&&void 0!==e?e:t.detect_on;void 0!==s&&(this.detectsOn=s),this.events.load(t.events),this.modes.load(t.modes),!0===(null===(o=null===(i=t.modes)||void 0===i?void 0:i.slow)||void 0===o?void 0:o.active)&&(this.events.onHover.mode instanceof Array?this.events.onHover.mode.indexOf("slow")<0&&this.events.onHover.mode.push("slow"):"slow"!==this.events.onHover.mode&&(this.events.onHover.mode=[this.events.onHover.mode,"slow"]))}}class Xt{load(t){var e,i;t&&(void 0!==t.position&&(this.position={x:null!==(e=t.position.x)&&void 0!==e?e:50,y:null!==(i=t.position.y)&&void 0!==i?i:50}),void 0!==t.options&&(this.options=_({},t.options)))}}class Jt{constructor(){this.factor=4,this.value=!0}load(t){t&&(void 0!==t.factor&&(this.factor=t.factor),void 0!==t.value&&(this.value=t.value))}}class Yt{constructor(){this.disable=!1,this.reduce=new Jt}load(t){t&&(void 0!==t.disable&&(this.disable=t.disable),this.reduce.load(t.reduce))}}class Kt{constructor(){this.count=0,this.enable=!1,this.offset=0,this.speed=1,this.sync=!0}load(t){void 0!==t&&(void 0!==t.count&&(this.count=t.count),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.offset&&(this.offset=c(t.offset)),void 0!==t.speed&&(this.speed=t.speed),void 0!==t.sync&&(this.sync=t.sync))}}class te{constructor(){this.h=new Kt,this.s=new Kt,this.l=new Kt}load(t){t&&(this.h.load(t.h),this.s.load(t.s),this.l.load(t.l))}}class ee extends gt{constructor(){super(),this.animation=new te}static create(t,e){const i=new ee;return i.load(t),void 0!==e&&("string"==typeof e||e instanceof Array?i.load({value:e}):i.load(e)),i}load(t){if(super.load(t),!t)return;const e=t.animation;void 0!==e&&(void 0!==e.enable?this.animation.h.load(e):this.animation.load(t.animation))}}class ie{constructor(){this.angle=new oe,this.colors=[],this.type="random"}load(t){t&&(this.angle.load(t.angle),void 0!==t.colors&&(this.colors=t.colors.map(t=>{const e=new ne;return e.load(t),e})),void 0!==t.type&&(this.type=t.type))}}class oe{constructor(){this.value=0,this.animation=new ae,this.direction="clockwise"}load(t){t&&(this.animation.load(t.animation),void 0!==t.value&&(this.value=t.value),void 0!==t.direction&&(this.direction=t.direction))}}class se{constructor(){this.value=0,this.animation=new re}load(t){t&&(this.animation.load(t.animation),void 0!==t.value&&(this.value=c(t.value)))}}class ne{constructor(){this.stop=0,this.value=new ee}load(t){t&&(void 0!==t.stop&&(this.stop=t.stop),this.value=ee.create(this.value,t.value),void 0!==t.opacity&&(this.opacity=new se,"number"==typeof t.opacity?this.opacity.value=t.opacity:this.opacity.load(t.opacity)))}}class ae{constructor(){this.count=0,this.enable=!1,this.speed=0,this.sync=!1}load(t){t&&(void 0!==t.count&&(this.count=t.count),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=t.speed),void 0!==t.sync&&(this.sync=t.sync))}}class re{constructor(){this.count=0,this.enable=!1,this.speed=0,this.sync=!1,this.startValue="random"}load(t){t&&(void 0!==t.count&&(this.count=t.count),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=t.speed),void 0!==t.sync&&(this.sync=t.sync),void 0!==t.startValue&&(this.startValue=t.startValue))}}class le{constructor(){this.enable=!1,this.minimumValue=0}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.minimumValue&&(this.minimumValue=t.minimumValue))}}class ce{constructor(){this.random=new le,this.value=0}load(t){t&&("boolean"==typeof t.random?this.random.enable=t.random:this.random.load(t.random),void 0!==t.value&&(this.value=c(t.value,this.random.enable?this.random.minimumValue:void 0)))}}class he extends ce{constructor(){super(),this.random.minimumValue=.1,this.value=1}}class de{constructor(){this.horizontal=new he,this.vertical=new he}load(t){t&&(this.horizontal.load(t.horizontal),this.vertical.load(t.vertical))}}class ue{constructor(){this.enable=!0,this.retries=0}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.retries&&(this.retries=t.retries))}}class pe{constructor(){this.bounce=new de,this.enable=!1,this.mode="bounce",this.overlap=new ue}load(t){void 0!==t&&(this.bounce.load(t.bounce),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode),this.overlap.load(t.overlap))}}class ve extends ce{constructor(){super(),this.value=3}}class ye extends ce{constructor(){super(),this.value={min:4,max:9}}}class we{constructor(){this.count=1,this.factor=new ve,this.rate=new ye,this.sizeOffset=!0}load(t){t&&(void 0!==t.count&&(this.count=t.count),this.factor.load(t.factor),this.rate.load(t.rate),void 0!==t.particles&&(this.particles=_({},t.particles)),void 0!==t.sizeOffset&&(this.sizeOffset=t.sizeOffset))}}class fe{constructor(){this.mode="none",this.split=new we}load(t){t&&(void 0!==t.mode&&(this.mode=t.mode),this.split.load(t.split))}}class ge extends ce{constructor(){super(),this.sync=!1}load(t){t&&(super.load(t),void 0!==t.sync&&(this.sync=t.sync))}}class me extends ce{constructor(){super(),this.random.minimumValue=1e-4,this.sync=!1}load(t){void 0!==t&&(super.load(t),void 0!==t.sync&&(this.sync=t.sync))}}class be{constructor(){this.count=0,this.delay=new ge,this.duration=new me}load(t){void 0!==t&&(void 0!==t.count&&(this.count=t.count),this.delay.load(t.delay),this.duration.load(t.duration))}}class Se{constructor(){this.blur=5,this.color=new gt,this.enable=!1,this.color.value="#00ff00"}load(t){void 0!==t&&(void 0!==t.blur&&(this.blur=t.blur),this.color=gt.create(this.color,t.color),void 0!==t.enable&&(this.enable=t.enable))}}class Pe{constructor(){this.enable=!1,this.frequency=1}load(t){void 0!==t&&(void 0!==t.color&&(this.color=gt.create(this.color,t.color)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.frequency&&(this.frequency=t.frequency),void 0!==t.opacity&&(this.opacity=t.opacity))}}class _e{constructor(){this.blink=!1,this.color=new gt,this.consent=!1,this.distance=100,this.enable=!1,this.frequency=1,this.opacity=1,this.shadow=new Se,this.triangles=new Pe,this.width=1,this.warp=!1}load(t){void 0!==t&&(void 0!==t.id&&(this.id=t.id),void 0!==t.blink&&(this.blink=t.blink),this.color=gt.create(this.color,t.color),void 0!==t.consent&&(this.consent=t.consent),void 0!==t.distance&&(this.distance=t.distance),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.frequency&&(this.frequency=t.frequency),void 0!==t.opacity&&(this.opacity=t.opacity),this.shadow.load(t.shadow),this.triangles.load(t.triangles),void 0!==t.width&&(this.width=t.width),void 0!==t.warp&&(this.warp=t.warp))}}class xe{constructor(){this.distance=200,this.enable=!1,this.rotate={x:3e3,y:3e3}}get rotateX(){return this.rotate.x}set rotateX(t){this.rotate.x=t}get rotateY(){return this.rotate.y}set rotateY(t){this.rotate.y=t}load(t){var e,i,o,s;if(!t)return;void 0!==t.distance&&(this.distance=t.distance),void 0!==t.enable&&(this.enable=t.enable);const n=null!==(i=null===(e=t.rotate)||void 0===e?void 0:e.x)&&void 0!==i?i:t.rotateX;void 0!==n&&(this.rotate.x=n);const a=null!==(s=null===(o=t.rotate)||void 0===o?void 0:o.y)&&void 0!==s?s:t.rotateY;void 0!==a&&(this.rotate.y=a)}}class Ce{constructor(){this.offset=0,this.value=90}load(t){void 0!==t&&(void 0!==t.offset&&(this.offset=t.offset),void 0!==t.value&&(this.value=t.value))}}class Ae{constructor(){this.acceleration=9.81,this.enable=!1,this.inverse=!1,this.maxSpeed=50}load(t){t&&(void 0!==t.acceleration&&(this.acceleration=t.acceleration),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.inverse&&(this.inverse=t.inverse),void 0!==t.maxSpeed&&(this.maxSpeed=t.maxSpeed))}}class Ve{constructor(){this.default="out"}load(t){var e,i,o,s;t&&(void 0!==t.default&&(this.default=t.default),this.bottom=null!==(e=t.bottom)&&void 0!==e?e:t.default,this.left=null!==(i=t.left)&&void 0!==i?i:t.default,this.right=null!==(o=t.right)&&void 0!==o?o:t.default,this.top=null!==(s=t.top)&&void 0!==s?s:t.default)}}class Ge extends ce{constructor(){super()}}class Te{constructor(){this.clamp=!0,this.delay=new Ge,this.enable=!1,this.options={}}load(t){void 0!==t&&(void 0!==t.clamp&&(this.clamp=t.clamp),this.delay.load(t.delay),void 0!==t.enable&&(this.enable=t.enable),this.generator=t.generator,t.options&&(this.options=_(this.options,t.options)))}}class Ee{constructor(){this.acceleration=0,this.enable=!1}load(t){t&&(void 0!==t.acceleration&&(this.acceleration=c(t.acceleration)),void 0!==t.enable&&(this.enable=t.enable),this.position=t.position?_({},t.position):void 0)}}class Oe{constructor(){this.enable=!1,this.length=10,this.fillColor=new gt,this.fillColor.value="#000000"}load(t){void 0!==t&&(void 0!==t.enable&&(this.enable=t.enable),this.fillColor=gt.create(this.fillColor,t.fillColor),void 0!==t.length&&(this.length=t.length))}}class ke{constructor(){this.angle=new Ce,this.attract=new xe,this.decay=0,this.distance={},this.direction="none",this.drift=0,this.enable=!1,this.gravity=new Ae,this.path=new Te,this.outModes=new Ve,this.random=!1,this.size=!1,this.speed=2,this.spin=new Ee,this.straight=!1,this.trail=new Oe,this.vibrate=!1,this.warp=!1}get collisions(){return!1}set collisions(t){}get bounce(){return this.collisions}set bounce(t){this.collisions=t}get out_mode(){return this.outMode}set out_mode(t){this.outMode=t}get outMode(){return this.outModes.default}set outMode(t){this.outModes.default=t}get noise(){return this.path}set noise(t){this.path=t}load(t){var e,i,o;if(void 0===t)return;void 0!==t.angle&&("number"==typeof t.angle?this.angle.value=t.angle:this.angle.load(t.angle)),this.attract.load(t.attract),void 0!==t.decay&&(this.decay=t.decay),void 0!==t.direction&&(this.direction=t.direction),void 0!==t.distance&&(this.distance="number"==typeof t.distance?{horizontal:t.distance,vertical:t.distance}:_({},t.distance)),void 0!==t.drift&&(this.drift=c(t.drift)),void 0!==t.enable&&(this.enable=t.enable),this.gravity.load(t.gravity);const s=null!==(e=t.outMode)&&void 0!==e?e:t.out_mode;void 0===t.outModes&&void 0===s||("string"==typeof t.outModes||void 0===t.outModes&&void 0!==s?this.outModes.load({default:null!==(i=t.outModes)&&void 0!==i?i:s}):this.outModes.load(t.outModes)),this.path.load(null!==(o=t.path)&&void 0!==o?o:t.noise),void 0!==t.random&&(this.random=t.random),void 0!==t.size&&(this.size=t.size),void 0!==t.speed&&(this.speed=c(t.speed)),this.spin.load(t.spin),void 0!==t.straight&&(this.straight=t.straight),this.trail.load(t.trail),void 0!==t.vibrate&&(this.vibrate=t.vibrate),void 0!==t.warp&&(this.warp=t.warp)}}class Me{constructor(){this.count=0,this.enable=!1,this.speed=1,this.sync=!1}load(t){t&&(void 0!==t.count&&(this.count=t.count),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=t.speed),void 0!==t.sync&&(this.sync=t.sync))}}class Re extends Me{constructor(){super(),this.destroy="none",this.enable=!1,this.speed=2,this.startValue="random",this.sync=!1}get opacity_min(){return this.minimumValue}set opacity_min(t){this.minimumValue=t}load(t){var e;void 0!==t&&(super.load(t),void 0!==t.destroy&&(this.destroy=t.destroy),void 0!==t.enable&&(this.enable=t.enable),this.minimumValue=null!==(e=t.minimumValue)&&void 0!==e?e:t.opacity_min,void 0!==t.speed&&(this.speed=t.speed),void 0!==t.startValue&&(this.startValue=t.startValue),void 0!==t.sync&&(this.sync=t.sync))}}class ze extends ce{constructor(){super(),this.animation=new Re,this.random.minimumValue=.1,this.value=1}get anim(){return this.animation}set anim(t){this.animation=t}load(t){var e;if(!t)return;super.load(t);const i=null!==(e=t.animation)&&void 0!==e?e:t.anim;void 0!==i&&(this.animation.load(i),this.value=c(this.value,this.animation.enable?this.animation.minimumValue:void 0))}}class Le extends ce{constructor(){super(),this.value=45,this.random.enable=!1,this.random.minimumValue=0}load(t){void 0!==t&&super.load(t)}}class Ie{constructor(){this.animation=new Me,this.enable=!1,this.opacity=1,this.rotation=new Le,this.width=1}load(t){void 0!==t&&(this.animation.load(t.animation),this.rotation.load(t.rotation),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.opacity&&(this.opacity=t.opacity),void 0!==t.width&&(this.width=t.width),void 0!==t.radius&&(this.radius=t.radius),void 0!==t.color&&(this.color=gt.create(this.color,t.color)))}}class He{constructor(){this.enable=!1,this.area=800,this.factor=1e3}get value_area(){return this.area}set value_area(t){this.area=t}load(t){var e;if(void 0===t)return;void 0!==t.enable&&(this.enable=t.enable);const i=null!==(e=t.area)&&void 0!==e?e:t.value_area;void 0!==i&&(this.area=i),void 0!==t.factor&&(this.factor=t.factor)}}class De{constructor(){this.density=new He,this.limit=0,this.value=100}get max(){return this.limit}set max(t){this.limit=t}load(t){var e;if(void 0===t)return;this.density.load(t.density);const i=null!==(e=t.limit)&&void 0!==e?e:t.max;void 0!==i&&(this.limit=i),void 0!==t.value&&(this.value=t.value)}}class Ne extends ce{constructor(){super(),this.enabled=!1,this.distance=1,this.duration=1,this.factor=1,this.speed=1}load(t){super.load(t),t&&(void 0!==t.enabled&&(this.enabled=t.enabled),void 0!==t.distance&&(this.distance=t.distance),void 0!==t.duration&&(this.duration=t.duration),void 0!==t.factor&&(this.factor=t.factor),void 0!==t.speed&&(this.speed=t.speed))}}class je{constructor(){this.enable=!1,this.value=0}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.value&&(this.value=t.value))}}class Fe{constructor(){this.darken=new je,this.enable=!1,this.enlighten=new je,this.mode="vertical",this.speed=25}load(t){t&&(void 0!==t.backColor&&(this.backColor=gt.create(this.backColor,t.backColor)),this.darken.load(t.darken),void 0!==t.enable&&(this.enable=t.enable),this.enlighten.load(t.enlighten),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.speed&&(this.speed=c(t.speed)))}}class Be{constructor(){this.enable=!1,this.speed=0,this.sync=!1}load(t){void 0!==t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=t.speed),void 0!==t.sync&&(this.sync=t.sync))}}class qe extends ce{constructor(){super(),this.animation=new Be,this.direction="clockwise",this.path=!1,this.value=0}load(t){t&&(super.load(t),void 0!==t.direction&&(this.direction=t.direction),this.animation.load(t.animation),void 0!==t.path&&(this.path=t.path))}}class Ue{constructor(){this.blur=0,this.color=new gt,this.enable=!1,this.offset={x:0,y:0},this.color.value="#000000"}load(t){void 0!==t&&(void 0!==t.blur&&(this.blur=t.blur),this.color=gt.create(this.color,t.color),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.offset&&(void 0!==t.offset.x&&(this.offset.x=t.offset.x),void 0!==t.offset.y&&(this.offset.y=t.offset.y)))}}class We{constructor(){this.options={},this.type="circle"}get image(){var t;return null!==(t=this.options.image)&&void 0!==t?t:this.options.images}set image(t){this.options.image=t,this.options.images=t}get custom(){return this.options}set custom(t){this.options=t}get images(){return this.image}set images(t){this.image=t}get stroke(){return[]}set stroke(t){}get character(){var t;return null!==(t=this.options.character)&&void 0!==t?t:this.options.char}set character(t){this.options.character=t,this.options.char=t}get polygon(){var t;return null!==(t=this.options.polygon)&&void 0!==t?t:this.options.star}set polygon(t){this.options.polygon=t,this.options.star=t}load(t){var e,i,o;if(void 0===t)return;const s=null!==(e=t.options)&&void 0!==e?e:t.custom;if(void 0!==s)for(const t in s){const e=s[t];void 0!==e&&(this.options[t]=_(null!==(i=this.options[t])&&void 0!==i?i:{},e))}this.loadShape(t.character,"character","char",!0),this.loadShape(t.polygon,"polygon","star",!1),this.loadShape(null!==(o=t.image)&&void 0!==o?o:t.images,"image","images",!0),void 0!==t.type&&(this.type=t.type)}loadShape(t,e,i,o){var s,n,a,r;void 0!==t&&(t instanceof Array?(this.options[e]instanceof Array||(this.options[e]=[],this.options[i]&&!o||(this.options[i]=[])),this.options[e]=_(null!==(s=this.options[e])&&void 0!==s?s:[],t),this.options[i]&&!o||(this.options[i]=_(null!==(n=this.options[i])&&void 0!==n?n:[],t))):(this.options[e]instanceof Array&&(this.options[e]={},this.options[i]&&!o||(this.options[i]={})),this.options[e]=_(null!==(a=this.options[e])&&void 0!==a?a:{},t),this.options[i]&&!o||(this.options[i]=_(null!==(r=this.options[i])&&void 0!==r?r:{},t))))}}class Qe extends Me{constructor(){super(),this.destroy="none",this.enable=!1,this.speed=5,this.startValue="random",this.sync=!1}get size_min(){return this.minimumValue}set size_min(t){this.minimumValue=t}load(t){var e;void 0!==t&&(super.load(t),void 0!==t.destroy&&(this.destroy=t.destroy),void 0!==t.enable&&(this.enable=t.enable),this.minimumValue=null!==(e=t.minimumValue)&&void 0!==e?e:t.size_min,void 0!==t.speed&&(this.speed=t.speed),void 0!==t.startValue&&(this.startValue=t.startValue),void 0!==t.sync&&(this.sync=t.sync))}}class $e extends ce{constructor(){super(),this.animation=new Qe,this.random.minimumValue=1,this.value=3}get anim(){return this.animation}set anim(t){this.animation=t}load(t){var e;if(!t)return;super.load(t);const i=null!==(e=t.animation)&&void 0!==e?e:t.anim;void 0!==i&&(this.animation.load(i),this.value=c(this.value,this.animation.enable?this.animation.minimumValue:void 0))}}class Ze{constructor(){this.width=0}load(t){void 0!==t&&(void 0!==t.color&&(this.color=ee.create(this.color,t.color)),void 0!==t.width&&(this.width=t.width),void 0!==t.opacity&&(this.opacity=t.opacity))}}class Xe{constructor(){this.enable=!1,this.speed=0,this.sync=!1}load(t){void 0!==t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=t.speed),void 0!==t.sync&&(this.sync=t.sync))}}class Je extends ce{constructor(){super(),this.animation=new Xe,this.direction="clockwise",this.enable=!1,this.value=0}load(t){t&&(super.load(t),this.animation.load(t.animation),void 0!==t.direction&&(this.direction=t.direction),void 0!==t.enable&&(this.enable=t.enable))}}class Ye{constructor(){this.enable=!1,this.frequency=.05,this.opacity=1}load(t){void 0!==t&&(void 0!==t.color&&(this.color=gt.create(this.color,t.color)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.frequency&&(this.frequency=t.frequency),void 0!==t.opacity&&(this.opacity=t.opacity))}}class Ke{constructor(){this.lines=new Ye,this.particles=new Ye}load(t){void 0!==t&&(this.lines.load(t.lines),this.particles.load(t.particles))}}class ti{constructor(){this.distance=5,this.enable=!1,this.speed=50}load(t){t&&(void 0!==t.distance&&(this.distance=c(t.distance)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=c(t.speed)))}}class ei extends ce{constructor(){super(),this.opacityRate=1,this.sizeRate=1,this.velocityRate=1}load(t){super.load(t),t&&(void 0!==t.opacityRate&&(this.opacityRate=t.opacityRate),void 0!==t.sizeRate&&(this.sizeRate=t.sizeRate),void 0!==t.velocityRate&&(this.velocityRate=t.velocityRate))}}class ii{constructor(){this.bounce=new de,this.collisions=new pe,this.color=new ee,this.destroy=new fe,this.gradient=[],this.groups={},this.life=new be,this.links=new _e,this.move=new ke,this.number=new De,this.opacity=new ze,this.orbit=new Ie,this.reduceDuplicates=!1,this.repulse=new Ne,this.roll=new Fe,this.rotate=new qe,this.shadow=new Ue,this.shape=new We,this.size=new $e,this.stroke=new Ze,this.tilt=new Je,this.twinkle=new Ke,this.wobble=new ti,this.zIndex=new ei}get line_linked(){return this.links}set line_linked(t){this.links=t}get lineLinked(){return this.links}set lineLinked(t){this.links=t}load(t){var e,i,o,s,n,a,r,l;if(void 0===t)return;this.bounce.load(t.bounce),this.color.load(ee.create(this.color,t.color)),this.destroy.load(t.destroy),this.life.load(t.life);const c=null!==(i=null!==(e=t.links)&&void 0!==e?e:t.lineLinked)&&void 0!==i?i:t.line_linked;if(void 0!==c&&this.links.load(c),void 0!==t.groups)for(const e in t.groups){const i=t.groups[e];void 0!==i&&(this.groups[e]=_(null!==(o=this.groups[e])&&void 0!==o?o:{},i))}this.move.load(t.move),this.number.load(t.number),this.opacity.load(t.opacity),this.orbit.load(t.orbit),void 0!==t.reduceDuplicates&&(this.reduceDuplicates=t.reduceDuplicates),this.repulse.load(t.repulse),this.roll.load(t.roll),this.rotate.load(t.rotate),this.shape.load(t.shape),this.size.load(t.size),this.shadow.load(t.shadow),this.tilt.load(t.tilt),this.twinkle.load(t.twinkle),this.wobble.load(t.wobble),this.zIndex.load(t.zIndex);const h=null!==(n=null===(s=t.move)||void 0===s?void 0:s.collisions)&&void 0!==n?n:null===(a=t.move)||void 0===a?void 0:a.bounce;void 0!==h&&(this.collisions.enable=h),this.collisions.load(t.collisions);const d=null!==(r=t.stroke)&&void 0!==r?r:null===(l=t.shape)||void 0===l?void 0:l.stroke;d&&(d instanceof Array?this.stroke=d.map(t=>{const e=new Ze;return e.load(t),e}):(this.stroke instanceof Array&&(this.stroke=new Ze),this.stroke.load(d)));const u=t.gradient;u&&(u instanceof Array?this.gradient=u.map(t=>{const e=new ie;return e.load(t),e}):(this.gradient instanceof Array&&(this.gradient=new ie),this.gradient.load(u)))}}class oi{constructor(){this.maxWidth=1/0,this.options={},this.mode="canvas"}load(t){t&&(void 0!==t.maxWidth&&(this.maxWidth=t.maxWidth),void 0!==t.mode&&("screen"===t.mode?this.mode="screen":this.mode="canvas"),void 0!==t.options&&(this.options=_({},t.options)))}}class si{constructor(){this.auto=!1,this.mode="any",this.value=!1}load(t){t&&(void 0!==t.auto&&(this.auto=t.auto),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.value&&(this.value=t.value))}}class ni{constructor(){this.name="",this.default=new si}load(t){void 0!==t&&(void 0!==t.name&&(this.name=t.name),this.default.load(t.default),void 0!==t.options&&(this.options=_({},t.options)))}}var ai,ri,li,ci=function(t,e,i,o,s){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?s.call(t,i):s?s.value=i:e.set(t,i),i},hi=function(t,e,i,o){if("a"===i&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?o:"a"===i?o.call(t):o?o.value:e.get(t)};class di{constructor(t){ai.add(this),ri.set(this,void 0),ci(this,ri,t,"f"),this.autoPlay=!0,this.background=new mt,this.backgroundMask=new St,this.fullScreen=new Pt,this.detectRetina=!0,this.duration=0,this.fpsLimit=120,this.interactivity=new Zt,this.manualParticles=[],this.motion=new Yt,this.particles=new ii,this.pauseOnBlur=!0,this.pauseOnOutsideViewport=!0,this.responsive=[],this.style={},this.themes=[],this.zLayers=100}get fps_limit(){return this.fpsLimit}set fps_limit(t){this.fpsLimit=t}get retina_detect(){return this.detectRetina}set retina_detect(t){this.detectRetina=t}get backgroundMode(){return this.fullScreen}set backgroundMode(t){this.fullScreen.load(t)}load(t){var e,i,o,s,n;if(void 0===t)return;if(void 0!==t.preset)if(t.preset instanceof Array)for(const e of t.preset)this.importPreset(e);else this.importPreset(t.preset);void 0!==t.autoPlay&&(this.autoPlay=t.autoPlay);const a=null!==(e=t.detectRetina)&&void 0!==e?e:t.retina_detect;void 0!==a&&(this.detectRetina=a),void 0!==t.duration&&(this.duration=t.duration);const r=null!==(i=t.fpsLimit)&&void 0!==i?i:t.fps_limit;void 0!==r&&(this.fpsLimit=r),void 0!==t.pauseOnBlur&&(this.pauseOnBlur=t.pauseOnBlur),void 0!==t.pauseOnOutsideViewport&&(this.pauseOnOutsideViewport=t.pauseOnOutsideViewport),void 0!==t.zLayers&&(this.zLayers=t.zLayers),this.background.load(t.background);const l=null!==(o=t.fullScreen)&&void 0!==o?o:t.backgroundMode;if("boolean"==typeof l?this.fullScreen.enable=l:this.fullScreen.load(l),this.backgroundMask.load(t.backgroundMask),this.interactivity.load(t.interactivity),void 0!==t.manualParticles&&(this.manualParticles=t.manualParticles.map(t=>{const e=new Xt;return e.load(t),e})),this.motion.load(t.motion),this.particles.load(t.particles),this.style=_(this.style,t.style),hi(this,ri,"f").plugins.loadOptions(this,t),void 0!==t.responsive)for(const e of t.responsive){const t=new oi;t.load(e),this.responsive.push(t)}if(this.responsive.sort((t,e)=>t.maxWidth-e.maxWidth),void 0!==t.themes)for(const e of t.themes){const t=new ni;t.load(e),this.themes.push(t)}this.defaultDarkTheme=null===(s=hi(this,ai,"m",li).call(this,"dark"))||void 0===s?void 0:s.name,this.defaultLightTheme=null===(n=hi(this,ai,"m",li).call(this,"light"))||void 0===n?void 0:n.name}setTheme(t){if(t){const e=this.themes.find(e=>e.name===t);e&&this.load(e.options)}else{const t="undefined"!=typeof matchMedia&&matchMedia("(prefers-color-scheme: dark)"),e=t&&t.matches,i=hi(this,ai,"m",li).call(this,e?"dark":"light");i&&this.load(i.options)}}setResponsive(t,e,i){this.load(i);const o=this.responsive.find(i=>"screen"===i.mode&&screen?i.maxWidth*e>screen.availWidth:i.maxWidth*e>t);return this.load(null==o?void 0:o.options),null==o?void 0:o.maxWidth}importPreset(t){this.load(hi(this,ri,"f").plugins.getPreset(t))}}ri=new WeakMap,ai=new WeakSet,li=function(t){var e;return null!==(e=this.themes.find(e=>e.default.value&&e.default.mode===t))&&void 0!==e?e:this.themes.find(t=>t.default.value&&"any"===t.default.mode)};var ui,pi=function(t,e,i,o,s){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?s.call(t,i):s?s.value=i:e.set(t,i),i},vi=function(t,e,i,o){if("a"===i&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?o:"a"===i?o.call(t):o?o.value:e.get(t)};const yi=t=>{(g(t.outMode,t.checkModes)||g(t.outMode,t.checkModes))&&(t.coord>t.maxCoord-2*t.radius?t.setCb(-t.radius):t.coord<2*t.radius&&t.setCb(t.radius))};class wi{constructor(t,e,i,s,c,d){var p,v,y,w,f,g,m,S,P;this.id=e,this.container=i,this.group=d,ui.set(this,void 0),pi(this,ui,t,"f"),this.fill=!0,this.close=!0,this.lastPathTime=0,this.destroyed=!1,this.unbreakable=!1,this.splitCount=0,this.misplaced=!1,this.retina={maxDistance:{}};const _=i.retina.pixelRatio,x=i.actualOptions,C=new ii;C.load(x.particles);const A=C.shape.type,V=C.reduceDuplicates;if(this.shape=A instanceof Array?b(A,this.id,V):A,null==c?void 0:c.shape){if(c.shape.type){const t=c.shape.type;this.shape=t instanceof Array?b(t,this.id,V):t}const t=new We;t.load(c.shape),this.shape&&(this.shapeData=this.loadShapeData(t,V))}else this.shapeData=this.loadShapeData(C.shape,V);void 0!==c&&C.load(c),void 0!==(null===(p=this.shapeData)||void 0===p?void 0:p.particles)&&C.load(null===(v=this.shapeData)||void 0===v?void 0:v.particles),this.fill=null!==(w=null===(y=this.shapeData)||void 0===y?void 0:y.fill)&&void 0!==w?w:this.fill,this.close=null!==(g=null===(f=this.shapeData)||void 0===f?void 0:f.close)&&void 0!==g?g:this.close,this.options=C,this.pathDelay=1e3*h(this.options.move.path.delay);const G=a(this.options.zIndex.value);i.retina.initParticle(this);const T=this.options.size,E=T.value;this.size={enable:T.animation.enable,value:h(T)*i.retina.pixelRatio,max:l(E)*_,min:r(E)*_,loops:0,maxLoops:T.animation.count};const O=T.animation;if(O.enable){switch(this.size.status=0,O.startValue){case"min":this.size.value=this.size.min,this.size.status=0;break;case"random":this.size.value=n(this.size)*_,this.size.status=Math.random()>=.5?0:1;break;case"max":default:this.size.value=this.size.max,this.size.status=1}this.size.velocity=(null!==(m=this.retina.sizeAnimationSpeed)&&void 0!==m?m:i.retina.sizeAnimationSpeed)/100*i.retina.reduceFactor,O.sync||(this.size.velocity*=Math.random())}this.direction=function(t){if("number"==typeof t)return t*Math.PI/180;switch(t){case"top":return-Math.PI/2;case"top-right":return-Math.PI/4;case"right":return 0;case"bottom-right":return Math.PI/4;case"bottom":return Math.PI/2;case"bottom-left":return 3*Math.PI/4;case"left":return Math.PI;case"top-left":return-3*Math.PI/4;case"none":default:return Math.random()*Math.PI*2}}(this.options.move.direction),this.bubble={inRange:!1},this.initialVelocity=this.calculateVelocity(),this.velocity=this.initialVelocity.copy(),this.moveDecay=1-a(this.options.move.decay),this.position=this.calcPosition(i,s,o(G,0,i.zLayers)),this.initialPosition=this.position.copy(),this.offset=yt.origin;const k=i.particles;k.needsSort=k.needsSort||k.lastZIndex0,this.options.move.spin.enable){const t=null!==(S=this.options.move.spin.position)&&void 0!==S?S:{x:50,y:50},e={x:t.x/100*i.canvas.size.width,y:t.y/100*i.canvas.size.height},o=u(this.getPosition(),e);this.spin={center:e,direction:this.velocity.x>=0?"clockwise":"counter-clockwise",angle:this.velocity.angle,radius:o,acceleration:null!==(P=this.retina.spinAcceleration)&&void 0!==P?P:a(this.options.move.spin.acceleration)}}this.shadowColor=M(this.options.shadow.color);for(const t of i.particles.updaters)t.init&&t.init(this);R&&R.particleInit&&R.particleInit(i,this);for(const[,t]of i.plugins)t.particleCreated&&t.particleCreated(this)}isVisible(){return!this.destroyed&&!this.spawning&&this.isInsideCanvas()}isInsideCanvas(){const t=this.getRadius(),e=this.container.canvas.size;return this.position.x>=-t&&this.position.y>=-t&&this.position.y<=e.height+t&&this.position.x<=e.width+t}draw(t){const e=this.container;for(const[,i]of e.plugins)e.canvas.drawParticlePlugin(i,this,t);e.canvas.drawParticle(this,t)}getPosition(){return{x:this.position.x+this.offset.x,y:this.position.y+this.offset.y,z:this.position.z}}getRadius(){var t;return null!==(t=this.bubble.radius)&&void 0!==t?t:this.size.value}getMass(){return this.getRadius()**2*Math.PI/2}getFillColor(){var t,e,i;const o=null!==(t=this.bubble.color)&&void 0!==t?t:q(this.color);if(o&&this.roll&&(this.backColor||this.roll.alter)){if(Math.floor((null!==(i=null===(e=this.roll)||void 0===e?void 0:e.angle)&&void 0!==i?i:0)/(Math.PI/2))%2){if(this.backColor)return this.backColor;if(this.roll.alter)return function(t,e,i){return{h:t.h,s:t.s,l:t.l+("darken"===e?-1:1)*i}}(o,this.roll.alter.type,this.roll.alter.value)}}return o}getStrokeColor(){var t,e;return null!==(e=null!==(t=this.bubble.color)&&void 0!==t?t:q(this.strokeColor))&&void 0!==e?e:this.getFillColor()}destroy(t){if(this.destroyed=!0,this.bubble.inRange=!1,this.unbreakable)return;this.destroyed=!0,this.bubble.inRange=!1;for(const[,e]of this.container.plugins)e.particleDestroyed&&e.particleDestroyed(this,t);if(t)return;"split"===this.options.destroy.mode&&this.split()}reset(){this.opacity&&(this.opacity.loops=0),this.size.loops=0}split(){const t=this.options.destroy.split;if(t.count>=0&&this.splitCount++>t.count)return;const e=a(t.rate.value);for(let t=0;t{yi({outMode:e,checkModes:["bounce","bounce-horizontal"],coord:d.x,maxCoord:t.canvas.size.width,setCb:t=>d.x+=t,radius:u})},y=e=>{yi({outMode:e,checkModes:["bounce","bounce-vertical"],coord:d.y,maxCoord:t.canvas.size.height,setCb:t=>d.y+=t,radius:u})};return v(null!==(a=p.left)&&void 0!==a?a:p.default),v(null!==(r=p.right)&&void 0!==r?r:p.default),y(null!==(l=p.top)&&void 0!==l?l:p.default),y(null!==(c=p.bottom)&&void 0!==c?c:p.default),this.checkOverlap(d,o)?this.calcPosition(t,void 0,i,o+1):d}checkOverlap(t,e=0){const i=this.options.collisions,o=this.getRadius();if(!i.enable)return!1;const s=i.overlap;if(s.enable)return!1;const n=s.retries;if(n>=0&&e>n)throw new Error("Particle is overlapping and can't be placed");let a=!1;for(const e of this.container.particles.array)if(u(t,e.position)=0&&t<=this.count))return;let s=0;for(let n=t;se.position.z-t.position.z||t.id-e.id),this.lastZIndex=this.zArray[this.zArray.length-1].position.z,this.needsSort=!1);for(const[,i]of e.plugins)e.canvas.drawPlugin(i,t);for(const e of this.zArray)e.draw(t)}clear(){this.array=[],this.zArray=[]}push(t,e,i,o){this.pushing=!0;for(let s=0;s0){const t=this.count+1-s;t>0&&this.removeQuantity(t)}return this.pushParticle(t,e,i)}addSplitParticle(t){const e=t.options.destroy.split,i=new ii;i.load(t.options);const o=a(e.factor.value);i.color.load({value:{hsl:t.getFillColor()}}),"number"==typeof i.size.value?i.size.value/=o:(i.size.value.min/=o,i.size.value.max/=o),i.load(e.particles);const s=e.sizeOffset?c(-t.size.value,t.size.value):0,r={x:t.position.x+n(s),y:t.position.y+n(s)};return this.pushParticle(r,i,t.group,e=>!(e.size.value<.5)&&(e.velocity.length=n(c(t.velocity.length,e.velocity.length)),e.splitCount=t.splitCount+1,e.unbreakable=!0,setTimeout(()=>{e.unbreakable=!1},500),!0))}removeQuantity(t,e){this.removeAt(0,t,e)}getLinkFrequency(t,e){const i=c(t.id,e.id),o=`${r(i)}_${l(i)}`;let s=this.freqs.links.get(o);return void 0===s&&(s=Math.random(),this.freqs.links.set(o,s)),s}getTriangleFrequency(t,e,i){let[o,s,n]=[t.id,e.id,i.id];o>s&&([s,o]=[o,s]),s>n&&([n,s]=[s,n]),o>n&&([n,o]=[o,n]);const a=`${o}_${s}_${n}`;let r=this.freqs.triangles.get(a);return void 0===r&&(r=Math.random(),this.freqs.triangles.set(a,r)),r}addManualParticles(){const t=this.container,e=t.actualOptions;for(const i of e.manualParticles){const e=i.position?{x:i.position.x*t.canvas.size.width/100,y:i.position.y*t.canvas.size.height/100}:void 0;this.addParticle(e,i.options)}}setDensity(){const t=this.container.actualOptions;for(const e in t.particles.groups)this.applyDensity(t.particles.groups[e],0,e);this.applyDensity(t.particles,t.manualParticles.length)}applyDensity(t,e,i){var o;if(!(null===(o=t.number.density)||void 0===o?void 0:o.enable))return;const s=t.number,n=this.initDensityFactor(s.density),a=s.value,r=s.limit>0?s.limit:a,l=Math.min(a,r)*n+e,c=Math.min(this.count,this.array.filter(t=>t.group===i).length);this.limit=s.limit*n,cl&&this.removeQuantity(c-l,i)}initDensityFactor(t){const e=this.container;if(!e.canvas.element||!t.enable)return 1;const i=e.canvas.element,o=e.retina.pixelRatio;return i.width*i.height/(t.factor*o**2*t.area)}pushParticle(t,e,i,o){try{const s=new wi(mi(this,fi,"f"),this.nextId,this.container,t,e,i);let n=!0;if(o&&(n=o(s)),!n)return;return this.array.push(s),this.zArray.push(s),this.nextId++,s}catch(t){return void console.warn("error adding particle: "+t)}}}fi=new WeakMap;class Si{constructor(t){this.container=t}init(){const t=this.container,e=t.actualOptions;this.pixelRatio=!e.detectRetina||f()?1:window.devicePixelRatio;const i=this.container.actualOptions.motion;if(i&&(i.disable||i.reduce.value))if(f()||"undefined"==typeof matchMedia||!matchMedia)this.reduceFactor=1;else{const e=matchMedia("(prefers-reduced-motion: reduce)");if(e){this.handleMotionChange(e);const i=()=>{this.handleMotionChange(e),t.refresh().catch(()=>{})};void 0!==e.addEventListener?e.addEventListener("change",i):void 0!==e.addListener&&e.addListener(i)}}else this.reduceFactor=1;const o=this.pixelRatio;if(t.canvas.element){const e=t.canvas.element;t.canvas.size.width=e.offsetWidth*o,t.canvas.size.height=e.offsetHeight*o}const s=e.particles;this.attractDistance=s.move.attract.distance*o,this.linksDistance=s.links.distance*o,this.linksWidth=s.links.width*o,this.sizeAnimationSpeed=s.size.animation.speed*o,this.maxSpeed=s.move.gravity.maxSpeed*o,void 0!==s.orbit.radius&&(this.orbitRadius=s.orbit.radius*this.container.retina.pixelRatio);const n=e.interactivity.modes;this.connectModeDistance=n.connect.distance*o,this.connectModeRadius=n.connect.radius*o,this.grabModeDistance=n.grab.distance*o,this.repulseModeDistance=n.repulse.distance*o,this.bounceModeDistance=n.bounce.distance*o,this.attractModeDistance=n.attract.distance*o,this.slowModeRadius=n.slow.radius*o,this.bubbleModeDistance=n.bubble.distance*o,n.bubble.size&&(this.bubbleModeSize=n.bubble.size*o)}initParticle(t){const e=t.options,i=this.pixelRatio,o=e.move.distance,s=t.retina;s.attractDistance=e.move.attract.distance*i,s.linksDistance=e.links.distance*i,s.linksWidth=e.links.width*i,s.moveDrift=a(e.move.drift)*i,s.moveSpeed=a(e.move.speed)*i,s.sizeAnimationSpeed=e.size.animation.speed*i,t.spin&&(s.spinAcceleration=a(e.move.spin.acceleration)*i);const n=s.maxDistance;n.horizontal=void 0!==o.horizontal?o.horizontal*i:void 0,n.vertical=void 0!==o.vertical?o.vertical*i:void 0,s.maxSpeed=e.move.gravity.maxSpeed*i}handleMotionChange(t){const e=this.container.actualOptions;if(t.matches){const t=e.motion;this.reduceFactor=t.disable?0:t.reduce.value?1/t.reduce.factor:1}else this.reduceFactor=1}}var Pi,_i=function(t,e,i,o,s){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?s.call(t,i):s?s.value=i:e.set(t,i),i},xi=function(t,e,i,o){if("a"===i&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?o:"a"===i?o.call(t):o?o.value:e.get(t)};class Ci{constructor(t,e,i,...o){this.id=e,Pi.set(this,void 0),_i(this,Pi,t,"f"),this.fpsLimit=120,this.duration=0,this.lifeTime=0,this.firstStart=!0,this.started=!1,this.destroyed=!1,this.paused=!0,this.lastFrameTime=0,this.zLayers=100,this.pageHidden=!1,this._sourceOptions=i,this._initialSourceOptions=i,this.retina=new Si(this),this.canvas=new ft(this),this.particles=new bi(xi(this,Pi,"f"),this),this.drawer=new ot(this),this.presets=o,this.pathGenerator={generate:()=>{const t=yt.create(0,0);return t.length=Math.random(),t.angle=Math.random()*Math.PI*2,t},init:()=>{},update:()=>{}},this.interactivity={mouse:{clicking:!1,inside:!1}},this.bubble={},this.repulse={particles:[]},this.attract={particles:[]},this.plugins=new Map,this.drawers=new Map,this.density=1,this._options=new di(xi(this,Pi,"f")),this.actualOptions=new di(xi(this,Pi,"f")),this.eventListeners=new et(this),"undefined"!=typeof IntersectionObserver&&IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(t=>this.intersectionManager(t)))}get options(){return this._options}get sourceOptions(){return this._sourceOptions}play(t){const e=this.paused||t;if(!this.firstStart||this.actualOptions.autoPlay){if(this.paused&&(this.paused=!1),e)for(const[,t]of this.plugins)t.play&&t.play();this.draw(e||!1)}else this.firstStart=!1}pause(){if(void 0!==this.drawAnimationFrame&&((f()?t=>clearTimeout(t):t=>(window.cancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.mozCancelRequestAnimationFrame||window.oCancelRequestAnimationFrame||window.msCancelRequestAnimationFrame||window.clearTimeout)(t))(this.drawAnimationFrame),delete this.drawAnimationFrame),!this.paused){for(const[,t]of this.plugins)t.pause&&t.pause();this.pageHidden||(this.paused=!0)}}draw(t){let e=t;this.drawAnimationFrame=(f()?t=>setTimeout(t):t=>(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||window.setTimeout)(t))(async t=>{e&&(this.lastFrameTime=void 0,e=!1),await this.drawer.nextFrame(t)})}getAnimationStatus(){return!this.paused&&!this.pageHidden}setNoise(t,e,i){this.setPath(t,e,i)}setPath(t,e,i){var o,s,n;if(t)if("function"==typeof t)this.pathGenerator.generate=t,e&&(this.pathGenerator.init=e),i&&(this.pathGenerator.update=i);else{const e=this.pathGenerator;this.pathGenerator=t,(o=this.pathGenerator).generate||(o.generate=e.generate),(s=this.pathGenerator).init||(s.init=e.init),(n=this.pathGenerator).update||(n.update=e.update)}}destroy(){this.stop(),this.canvas.destroy();for(const[,t]of this.drawers)t.destroy&&t.destroy(this);for(const t of this.drawers.keys())this.drawers.delete(t);this.destroyed=!0}exportImg(t){this.exportImage(t)}exportImage(t,e,i){var o;return null===(o=this.canvas.element)||void 0===o?void 0:o.toBlob(t,null!=e?e:"image/png",i)}exportConfiguration(){return JSON.stringify(this.actualOptions,void 0,2)}refresh(){return this.stop(),this.start()}reset(){return this._options=new di(xi(this,Pi,"f")),this.refresh()}stop(){if(this.started){this.firstStart=!0,this.started=!1,this.eventListeners.removeListeners(),this.pause(),this.particles.clear(),this.canvas.clear(),this.interactivity.element instanceof HTMLElement&&this.intersectionObserver&&this.intersectionObserver.unobserve(this.interactivity.element);for(const[,t]of this.plugins)t.stop&&t.stop();for(const t of this.plugins.keys())this.plugins.delete(t);this.particles.linksColors=new Map,delete this.particles.grabLineColor,delete this.particles.linksColor,this._sourceOptions=this._options}}async loadTheme(t){this.currentTheme=t,await this.refresh()}async start(){if(!this.started){await this.init(),this.started=!0,this.eventListeners.addListeners(),this.interactivity.element instanceof HTMLElement&&this.intersectionObserver&&this.intersectionObserver.observe(this.interactivity.element);for(const[,t]of this.plugins)void 0!==t.startAsync?await t.startAsync():void 0!==t.start&&t.start();this.play()}}addClickHandler(t){const e=this.interactivity.element;if(!e)return;const i=(e,i,o)=>{if(this.destroyed)return;const s=this.retina.pixelRatio,n={x:i.x*s,y:i.y*s},a=this.particles.quadTree.queryCircle(n,o*s);t(e,a)};let o=!1,s=!1;e.addEventListener("click",t=>{if(this.destroyed)return;const e=t,o={x:e.offsetX||e.clientX,y:e.offsetY||e.clientY};i(t,o,1)}),e.addEventListener("touchstart",()=>{this.destroyed||(o=!0,s=!1)}),e.addEventListener("touchmove",()=>{this.destroyed||(s=!0)}),e.addEventListener("touchend",t=>{var e,n,a;if(!this.destroyed){if(o&&!s){const o=t;let s=o.touches[o.touches.length-1];if(!s&&(s=o.changedTouches[o.changedTouches.length-1],!s))return;const r=null===(e=this.canvas.element)||void 0===e?void 0:e.getBoundingClientRect(),l={x:s.clientX-(null!==(n=null==r?void 0:r.left)&&void 0!==n?n:0),y:s.clientY-(null!==(a=null==r?void 0:r.top)&&void 0!==a?a:0)};i(t,l,Math.max(s.radiusX,s.radiusY))}o=!1,s=!1}}),e.addEventListener("touchcancel",()=>{this.destroyed||(o=!1,s=!1)})}updateActualOptions(){this.actualOptions.responsive=[];const t=this.actualOptions.setResponsive(this.canvas.size.width,this.retina.pixelRatio,this._options);return this.actualOptions.setTheme(this.currentTheme),this.responsiveMaxWidth!=t&&(this.responsiveMaxWidth=t,!0)}async init(){this._options=new di(xi(this,Pi,"f"));for(const t of this.presets)this._options.load(xi(this,Pi,"f").plugins.getPreset(t));const t=xi(this,Pi,"f").plugins.getSupportedShapes();for(const e of t){const t=xi(this,Pi,"f").plugins.getShapeDrawer(e);t&&this.drawers.set(e,t)}this._options.load(this._initialSourceOptions),this._options.load(this._sourceOptions),this.actualOptions=new di(xi(this,Pi,"f")),this.actualOptions.load(this._options),this.retina.init(),this.canvas.init(),this.updateActualOptions(),this.canvas.initBackground(),this.canvas.resize(),this.zLayers=this.actualOptions.zLayers,this.duration=a(this.actualOptions.duration),this.lifeTime=0,this.fpsLimit=this.actualOptions.fpsLimit>0?this.actualOptions.fpsLimit:120;const e=xi(this,Pi,"f").plugins.getAvailablePlugins(this);for(const[t,i]of e)this.plugins.set(t,i);for(const[,t]of this.drawers)t.init&&await t.init(this);for(const[,t]of this.plugins)t.init?t.init(this.actualOptions):void 0!==t.initAsync&&await t.initAsync(this.actualOptions);const i=this.actualOptions.particles.move.path;i.generator&&this.setPath(xi(this,Pi,"f").plugins.getPathGenerator(i.generator)),this.particles.init(),this.particles.setDensity();for(const[,t]of this.plugins)void 0!==t.particlesSetup&&t.particlesSetup()}intersectionManager(t){if(this.actualOptions.pauseOnOutsideViewport)for(const e of t)e.target===this.interactivity.element&&(e.isIntersecting?this.play():this.pause())}}Pi=new WeakMap;var Ai,Vi=function(t,e,i,o,s){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?s.call(t,i):s?s.value=i:e.set(t,i),i},Gi=function(t,e,i,o){if("a"===i&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?o:"a"===i?o.call(t):o?o.value:e.get(t)};class Ti{constructor(t){Ai.set(this,void 0),Vi(this,Ai,t,"f")}dom(){return Gi(this,Ai,"f").domArray}domItem(t){const e=this.dom(),i=e[t];if(i&&!i.destroyed)return i;e.splice(t,1)}async loadOptions(t){var e,i,o;const s=null!==(e=t.tagId)&&void 0!==e?e:"tsparticles"+Math.floor(1e4*Math.random()),{options:n,index:a}=t;let r=null!==(i=t.element)&&void 0!==i?i:document.getElementById(s);r||(r=document.createElement("div"),r.id=s,null===(o=document.querySelector("body"))||void 0===o||o.append(r));const l=n instanceof Array?b(n,a):n,c=this.dom(),h=c.findIndex(t=>t.id===s);if(h>=0){const t=this.domItem(h);t&&!t.destroyed&&(t.destroy(),c.splice(h,1))}let d;if("canvas"===r.tagName.toLowerCase())d=r,d.dataset[K.generatedAttribute]="false";else{const t=r.getElementsByTagName("canvas");t.length?(d=t[0],d.dataset[K.generatedAttribute]="false"):(d=document.createElement("canvas"),d.dataset[K.generatedAttribute]="true",d.style.width="100%",d.style.height="100%",r.appendChild(d))}const u=new Ci(Gi(this,Ai,"f"),s,l);return h>=0?c.splice(h,0,u):c.push(u),u.canvas.loadCanvas(d),await u.start(),u}async loadRemoteOptions(t){const{url:e,index:i}=t,o=e instanceof Array?b(e,i):e;if(!o)return;const s=await fetch(o);if(!s.ok)return n=s.status,console.error("Error tsParticles - fetch status: "+n),void console.error("Error tsParticles - File config not found");var n;const a=await s.json();return this.loadOptions({tagId:t.tagId,element:t.element,index:i,options:a})}load(t,e,i){const o={index:i};return"string"==typeof t?o.tagId=t:o.options=t,"number"==typeof e?o.index=null!=e?e:o.index:o.options=null!=e?e:o.options,this.loadOptions(o)}async set(t,e,i,o){const s={index:o};return"string"==typeof t?s.tagId=t:s.element=t,e instanceof HTMLElement?s.element=e:s.options=e,"number"==typeof i?s.index=i:s.options=null!=i?i:s.options,this.loadOptions(s)}async loadJSON(t,e,i){let o,s;return"number"==typeof e||void 0===e?o=t:(s=t,o=e),this.loadRemoteOptions({tagId:s,url:o,index:i})}async setJSON(t,e,i,o){let s,n,a,r;return t instanceof HTMLElement?(r=t,s=e,a=i):(n=t,r=e,s=i,a=o),this.loadRemoteOptions({tagId:n,url:s,index:a,element:r})}setOnClickHandler(t){const e=this.dom();if(0===e.length)throw new Error("Can only set click handlers after calling tsParticles.load() or tsParticles.loadJSON()");for(const i of e)i.addClickHandler(t)}}Ai=new WeakMap;var Ei,Oi,ki=function(t,e,i,o,s){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?s.call(t,i):s?s.value=i:e.set(t,i),i},Mi=function(t,e,i,o){if("a"===i&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?o:"a"===i?o.call(t):o?o.value:e.get(t)};Ei=new WeakMap,Oi=new WeakMap;class Ri{constructor(){this.radius=0,this.mass=0}load(t){t&&(void 0!==t.mass&&(this.mass=t.mass),void 0!==t.radius&&(this.radius=t.radius))}}class zi extends ce{constructor(){super(),this.density=5,this.random.minimumValue=1,this.value=50,this.limit=new Ri}load(t){t&&(super.load(t),void 0!==t.density&&(this.density=t.density),"number"==typeof t.limit?this.limit.radius=t.limit:this.limit.load(t.limit))}}class Li{constructor(){this.color=new gt,this.color.value="#000000",this.draggable=!1,this.opacity=1,this.destroy=!0,this.orbits=!1,this.size=new zi}load(t){void 0!==t&&(void 0!==t.color&&(this.color=gt.create(this.color,t.color)),void 0!==t.draggable&&(this.draggable=t.draggable),this.name=t.name,void 0!==t.opacity&&(this.opacity=t.opacity),void 0!==t.position&&(this.position={x:t.position.x,y:t.position.y}),void 0!==t.size&&this.size.load(t.size),void 0!==t.destroy&&(this.destroy=t.destroy),void 0!==t.orbits&&(this.orbits=t.orbits))}}class Ii{constructor(t,e,i,o){var s,n,r;this.absorbers=t,this.container=e,this.initialPosition=o?yt.create(o.x,o.y):void 0,i instanceof Li?this.options=i:(this.options=new Li,this.options.load(i)),this.dragging=!1,this.name=this.options.name,this.opacity=this.options.opacity,this.size=a(this.options.size.value)*e.retina.pixelRatio,this.mass=this.size*this.options.size.density*e.retina.reduceFactor;const l=this.options.size.limit;this.limit={radius:l.radius*e.retina.pixelRatio*e.retina.reduceFactor,mass:l.mass},this.color=null!==(s=M(this.options.color))&&void 0!==s?s:{b:0,g:0,r:0},this.position=null!==(r=null===(n=this.initialPosition)||void 0===n?void 0:n.copy())&&void 0!==r?r:this.calcPosition()}attract(t){const e=this.container,i=this.options;if(i.draggable){const t=e.interactivity.mouse;if(t.clicking&&t.downPosition){u(this.position,t.downPosition)<=this.size&&(this.dragging=!0)}else this.dragging=!1;this.dragging&&t.position&&(this.position.x=t.position.x,this.position.y=t.position.y)}const o=t.getPosition(),{dx:s,dy:n,distance:a}=d(this.position,o),r=yt.create(s,n);if(r.length=this.mass/Math.pow(a,2)*e.retina.reduceFactor,at.getRadius()&&a=0?"clockwise":"counter-clockwise");const n=t.absorberOrbit.length,a=t.absorberOrbit.angle,r=t.absorberOrbitDirection;t.velocity.x=0,t.velocity.y=0;const l={x:"clockwise"===r?Math.cos:Math.sin,y:"clockwise"===r?Math.sin:Math.cos};t.position.x=this.position.x+n*l.x(a),t.position.y=this.position.y+n*l.y(a),t.absorberOrbit.length-=e.length,t.absorberOrbit.angle+=(null!==(i=t.retina.moveSpeed)&&void 0!==i?i:0)*o.retina.pixelRatio/100*o.retina.reduceFactor}else{const i=yt.origin;i.length=e.length,i.angle=e.angle,t.velocity.addTo(i)}}}class Hi{constructor(t){this.container=t,this.array=[],this.absorbers=[],this.interactivityAbsorbers=[];const e=t;e.getAbsorber=t=>void 0===t||"number"==typeof t?this.array[t||0]:this.array.find(e=>e.name===t),e.addAbsorber=(t,e)=>this.addAbsorber(t,e)}init(t){var e,i;if(!t)return;t.absorbers&&(t.absorbers instanceof Array?this.absorbers=t.absorbers.map(t=>{const e=new Li;return e.load(t),e}):(this.absorbers instanceof Array&&(this.absorbers=new Li),this.absorbers.load(t.absorbers)));const o=null===(i=null===(e=t.interactivity)||void 0===e?void 0:e.modes)||void 0===i?void 0:i.absorbers;if(o&&(o instanceof Array?this.interactivityAbsorbers=o.map(t=>{const e=new Li;return e.load(t),e}):(this.interactivityAbsorbers instanceof Array&&(this.interactivityAbsorbers=new Li),this.interactivityAbsorbers.load(o))),this.absorbers instanceof Array)for(const t of this.absorbers)this.addAbsorber(t);else this.addAbsorber(this.absorbers)}particleUpdate(t){for(const e of this.array)if(e.attract(t),t.destroyed)break}draw(t){for(const e of this.array)t.save(),e.draw(t),t.restore()}stop(){this.array=[]}resize(){for(const t of this.array)t.resize()}handleClickMode(t){const e=this.container,i=this.absorbers,o=this.interactivityAbsorbers;if("absorber"===t){let t;o instanceof Array?o.length>0&&(t=b(o)):t=o;const s=null!=t?t:i instanceof Array?b(i):i,n=e.interactivity.mouse.clickPosition;this.addAbsorber(s,n)}}addAbsorber(t,e){const i=new Ii(this,this.container,t,e);return this.array.push(i),i}removeAbsorber(t){const e=this.array.indexOf(t);e>=0&&this.array.splice(e,1)}}class Di{constructor(){this.id="absorbers"}getPlugin(t){return new Hi(t)}needsPlugin(t){var e,i,o;if(void 0===t)return!1;const s=t.absorbers;let n=!1;return s instanceof Array?s.length&&(n=!0):(void 0!==s||(null===(o=null===(i=null===(e=t.interactivity)||void 0===e?void 0:e.events)||void 0===i?void 0:i.onClick)||void 0===o?void 0:o.mode)&&g("absorber",t.interactivity.events.onClick.mode))&&(n=!0),n}loadOptions(t,e){var i,o;if(!this.needsPlugin(t)&&!this.needsPlugin(e))return;const s=t;if(null==e?void 0:e.absorbers)if((null==e?void 0:e.absorbers)instanceof Array)s.absorbers=null==e?void 0:e.absorbers.map(t=>{const e=new Li;return e.load(t),e});else{let t=s.absorbers;void 0===(null==t?void 0:t.load)&&(s.absorbers=t=new Li),t.load(null==e?void 0:e.absorbers)}const n=null===(o=null===(i=null==e?void 0:e.interactivity)||void 0===i?void 0:i.modes)||void 0===o?void 0:o.absorbers;if(n)if(n instanceof Array)s.interactivity.modes.absorbers=n.map(t=>{const e=new Li;return e.load(t),e});else{let t=s.interactivity.modes.absorbers;void 0===(null==t?void 0:t.load)&&(s.interactivity.modes.absorbers=t=new Li),t.load(n)}}}class Ni{randomPosition(t,e,i){const[o,s]=[e.width/2,e.height/2],n=((t,e)=>{const i=Math.random()/4,o=Math.atan(e/t*Math.tan(2*Math.PI*i)),s=Math.random();return s<.25?o:s<.5?Math.PI-o:s<.75?Math.PI+o:-o})(o,s),a=(h=n,(l=o)*(c=s)/Math.sqrt((c*Math.cos(h))**2+(l*Math.sin(h))**2)),r=i?a*Math.sqrt(Math.random()):a;var l,c,h;return{x:t.x+r*Math.cos(n),y:t.y+r*Math.sin(n)}}}class ji{constructor(){this.wait=!1}load(t){void 0!==t&&(void 0!==t.count&&(this.count=t.count),void 0!==t.delay&&(this.delay=t.delay),void 0!==t.duration&&(this.duration=t.duration),void 0!==t.wait&&(this.wait=t.wait))}}class Fi{constructor(){this.quantity=1,this.delay=.1}load(t){void 0!==t&&(void 0!==t.quantity&&(this.quantity=c(t.quantity)),void 0!==t.delay&&(this.delay=c(t.delay)))}}class Bi{constructor(){this.mode="percent",this.height=0,this.width=0}load(t){void 0!==t&&(void 0!==t.mode&&(this.mode=t.mode),void 0!==t.height&&(this.height=t.height),void 0!==t.width&&(this.width=t.width))}}class qi{constructor(){this.autoPlay=!0,this.fill=!0,this.life=new ji,this.rate=new Fi,this.shape="square",this.startCount=0}load(t){void 0!==t&&(void 0!==t.autoPlay&&(this.autoPlay=t.autoPlay),void 0!==t.size&&(void 0===this.size&&(this.size=new Bi),this.size.load(t.size)),void 0!==t.direction&&(this.direction=t.direction),this.domId=t.domId,void 0!==t.fill&&(this.fill=t.fill),this.life.load(t.life),this.name=t.name,void 0!==t.particles&&(this.particles=_({},t.particles)),this.rate.load(t.rate),void 0!==t.shape&&(this.shape=t.shape),void 0!==t.position&&(this.position={x:t.position.x,y:t.position.y}),void 0!==t.spawnColor&&(void 0===this.spawnColor&&(this.spawnColor=new ee),this.spawnColor.load(t.spawnColor)),void 0!==t.startCount&&(this.startCount=t.startCount))}}var Ui,Wi,Qi,$i=function(t,e,i,o,s){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?s.call(t,i):s?s.value=i:e.set(t,i),i},Zi=function(t,e,i,o){if("a"===i&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?o:"a"===i?o.call(t):o?o.value:e.get(t)};class Xi{constructor(t,e,i,o,s){var n,a,r,l,c,h,d;this.emitters=e,this.container=i,Ui.set(this,void 0),Wi.set(this,void 0),Qi.set(this,void 0),$i(this,Qi,t,"f"),this.currentDuration=0,this.currentEmitDelay=0,this.currentSpawnDelay=0,this.initialPosition=s,o instanceof qi?this.options=o:(this.options=new qi,this.options.load(o)),this.spawnDelay=1e3*(null!==(n=this.options.life.delay)&&void 0!==n?n:0)/this.container.retina.reduceFactor,this.name=this.options.name,this.shape=null===(a=Zi(this,Qi,"f").emitterShapeManager)||void 0===a?void 0:a.getShape(this.options.shape),this.fill=this.options.fill,$i(this,Ui,!this.options.life.wait,"f"),$i(this,Wi,!1,"f");let u=_({},this.options.particles);null!=u||(u={}),null!==(r=u.move)&&void 0!==r||(u.move={}),null!==(l=(d=u.move).direction)&&void 0!==l||(d.direction=this.options.direction),this.options.spawnColor&&(this.spawnColor=R(this.options.spawnColor)),this.paused=!this.options.autoPlay,this.particlesOptions=u,this.size=null!==(c=this.options.size)&&void 0!==c?c:(()=>{const t=new Bi;return t.load({height:0,mode:"percent",width:0}),t})(),this.lifeCount=null!==(h=this.options.life.count)&&void 0!==h?h:-1,this.immortal=this.lifeCount<=0,this.play()}externalPlay(){this.paused=!1,this.play()}externalPause(){this.paused=!0,this.pause()}play(){var t;if(!this.paused&&this.container.retina.reduceFactor&&(this.lifeCount>0||this.immortal||!this.options.life.count)&&(Zi(this,Ui,"f")||this.currentSpawnDelay>=(null!==(t=this.spawnDelay)&&void 0!==t?t:0))){if(void 0===this.emitDelay){const t=a(this.options.rate.delay);this.emitDelay=1e3*t/this.container.retina.reduceFactor}(this.lifeCount>0||this.immortal)&&this.prepareToDie()}}pause(){this.paused||delete this.emitDelay}resize(){const t=this.initialPosition;this.position=t&&S(t,this.container.canvas.size)?t:this.calcPosition()}update(t){var e,i,o;this.paused||(Zi(this,Ui,"f")&&($i(this,Ui,!1,"f"),this.currentSpawnDelay=null!==(e=this.spawnDelay)&&void 0!==e?e:0,this.currentEmitDelay=null!==(i=this.emitDelay)&&void 0!==i?i:0),Zi(this,Wi,"f")||($i(this,Wi,!0,"f"),this.emitParticles(this.options.startCount)),void 0!==this.duration&&(this.currentDuration+=t.value,this.currentDuration>=this.duration&&(this.pause(),void 0!==this.spawnDelay&&delete this.spawnDelay,this.immortal||this.lifeCount--,this.lifeCount>0||this.immortal?(this.position=this.calcPosition(),this.spawnDelay=1e3*(null!==(o=this.options.life.delay)&&void 0!==o?o:0)/this.container.retina.reduceFactor):this.destroy(),this.currentDuration-=this.duration,delete this.duration)),void 0!==this.spawnDelay&&(this.currentSpawnDelay+=t.value,this.currentSpawnDelay>=this.spawnDelay&&(this.play(),this.currentSpawnDelay-=this.currentSpawnDelay,delete this.spawnDelay)),void 0!==this.emitDelay&&(this.currentEmitDelay+=t.value,this.currentEmitDelay>=this.emitDelay&&(this.emit(),this.currentEmitDelay-=this.emitDelay)))}getPosition(){if(this.options.domId){const t=this.container,e=document.getElementById(this.options.domId);if(e){const i=e.getBoundingClientRect();return{x:(i.x+i.width/2)*t.retina.pixelRatio,y:(i.y+i.height/2)*t.retina.pixelRatio}}}return this.position}getSize(){const t=this.container;if(this.options.domId){const e=document.getElementById(this.options.domId);if(e){const i=e.getBoundingClientRect();return{width:i.width*t.retina.pixelRatio,height:i.height*t.retina.pixelRatio}}}return{width:"percent"===this.size.mode?t.canvas.size.width*this.size.width/100:this.size.width,height:"percent"===this.size.mode?t.canvas.size.height*this.size.height/100:this.size.height}}prepareToDie(){var t;if(this.paused)return;const e=null===(t=this.options.life)||void 0===t?void 0:t.duration;this.container.retina.reduceFactor&&(this.lifeCount>0||this.immortal)&&void 0!==e&&e>0&&(this.duration=1e3*e)}destroy(){this.emitters.removeEmitter(this)}calcPosition(){var t,e;const i=this.container,o=this.options.position;return{x:(null!==(t=null==o?void 0:o.x)&&void 0!==t?t:100*Math.random())/100*i.canvas.size.width,y:(null!==(e=null==o?void 0:o.y)&&void 0!==e?e:100*Math.random())/100*i.canvas.size.height}}emit(){if(this.paused)return;const t=a(this.options.rate.quantity);this.emitParticles(t)}emitParticles(t){var e,i,o;const s=this.container,n=this.getPosition(),a=this.getSize();for(let r=0;rvoid 0===t||"number"==typeof t?this.array[t||0]:this.array.find(e=>e.name===t),i.addEmitter=(t,e)=>this.addEmitter(t,e),i.removeEmitter=t=>{const e=i.getEmitter(t);e&&this.removeEmitter(e)},i.playEmitter=t=>{const e=i.getEmitter(t);e&&e.externalPlay()},i.pauseEmitter=t=>{const e=i.getEmitter(t);e&&e.externalPause()}}init(t){var e,i;if(!t)return;t.emitters&&(t.emitters instanceof Array?this.emitters=t.emitters.map(t=>{const e=new qi;return e.load(t),e}):(this.emitters instanceof Array&&(this.emitters=new qi),this.emitters.load(t.emitters)));const o=null===(i=null===(e=t.interactivity)||void 0===e?void 0:e.modes)||void 0===i?void 0:i.emitters;if(o&&(o instanceof Array?this.interactivityEmitters=o.map(t=>{const e=new qi;return e.load(t),e}):(this.interactivityEmitters instanceof Array&&(this.interactivityEmitters=new qi),this.interactivityEmitters.load(o))),this.emitters instanceof Array)for(const t of this.emitters)this.addEmitter(t);else this.addEmitter(this.emitters)}play(){for(const t of this.array)t.play()}pause(){for(const t of this.array)t.pause()}stop(){this.array=[]}update(t){for(const e of this.array)e.update(t)}handleClickMode(t){const e=this.container,i=this.emitters,o=this.interactivityEmitters;if("emitter"===t){let t;o instanceof Array?o.length>0&&(t=b(o)):t=o;const s=null!=t?t:i instanceof Array?b(i):i,n=e.interactivity.mouse.clickPosition;this.addEmitter(_({},s),n)}}resize(){for(const t of this.array)t.resize()}addEmitter(t,e){const i=new qi;i.load(t);const o=new Xi(Ki(this,Ji,"f"),this,this.container,i,e);return this.array.push(o),o}removeEmitter(t){const e=this.array.indexOf(t);e>=0&&this.array.splice(e,1)}}Ji=new WeakMap;var eo,io=function(t,e,i,o,s){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?s.call(t,i):s?s.value=i:e.set(t,i),i};const oo=new Map;class so{constructor(t){eo.set(this,void 0),io(this,eo,t,"f")}addShape(t,e){this.getShape(t)||oo.set(t,e)}getShape(t){return oo.get(t)}getSupportedShapes(){return oo.keys()}}function no(t,e){return t+e*(Math.random()-.5)}eo=new WeakMap;class ao{randomPosition(t,e,i){if(i)return{x:no(t.x,e.width),y:no(t.y,e.height)};{const i=e.width/2,o=e.height/2,s=Math.floor(4*Math.random()),n=2*(Math.random()-.5);switch(s){case 0:return{x:t.x+n*i,y:t.y-o};case 1:return{x:t.x-i,y:t.y+n*o};case 2:return{x:t.x+n*i,y:t.y+o};case 3:default:return{x:t.x+i,y:t.y+n*o}}}}}var ro,lo=function(t,e,i,o,s){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?s.call(t,i):s?s.value=i:e.set(t,i),i},co=function(t,e,i,o){if("a"===i&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?o:"a"===i?o.call(t):o?o.value:e.get(t)};class ho{constructor(t){ro.set(this,void 0),lo(this,ro,t,"f"),this.id="emitters"}getPlugin(t){return new to(co(this,ro,"f"),t)}needsPlugin(t){var e,i,o;if(void 0===t)return!1;const s=t.emitters;return s instanceof Array&&!!s.length||void 0!==s||!!(null===(o=null===(i=null===(e=t.interactivity)||void 0===e?void 0:e.events)||void 0===i?void 0:i.onClick)||void 0===o?void 0:o.mode)&&g("emitter",t.interactivity.events.onClick.mode)}loadOptions(t,e){var i,o;if(!this.needsPlugin(t)&&!this.needsPlugin(e))return;const s=t;if(null==e?void 0:e.emitters)if((null==e?void 0:e.emitters)instanceof Array)s.emitters=null==e?void 0:e.emitters.map(t=>{const e=new qi;return e.load(t),e});else{let t=s.emitters;void 0===(null==t?void 0:t.load)&&(s.emitters=t=new qi),t.load(null==e?void 0:e.emitters)}const n=null===(o=null===(i=null==e?void 0:e.interactivity)||void 0===i?void 0:i.modes)||void 0===o?void 0:o.emitters;if(n)if(n instanceof Array)s.interactivity.modes.emitters=n.map(t=>{const e=new qi;return e.load(t),e});else{let t=s.interactivity.modes.emitters;void 0===(null==t?void 0:t.load)&&(s.interactivity.modes.emitters=t=new qi),t.load(n)}}}ro=new WeakMap;class uo extends it{constructor(t){super(t),this.delay=0}async interact(t){var e,i,o,s;if(!this.container.retina.reduceFactor)return;const n=this.container,a=n.actualOptions.interactivity.modes.trail,r=1e3*a.delay/this.container.retina.reduceFactor;if(this.delay=0&&r<=1};return r<0?(l.x=t.x,l.y=t.y):r>1&&(l.x=e.x,l.y=e.y),l}function Po(t,e,i){const{dx:o,dy:s}=d(t,e),n=Math.atan2(s,o),a=yt.create(Math.sin(n),-Math.cos(n)),r=2*(i.x*a.x+i.y*a.y);a.multTo(r),i.subFrom(a)}class _o{constructor(t){this.container=t,this.dimension={height:0,width:0},this.path2DSupported=!!window.Path2D,this.options=new go,this.polygonMaskMoveRadius=this.options.move.radius*t.retina.pixelRatio}async initAsync(t){this.options.load(null==t?void 0:t.polygon);const e=this.options;this.polygonMaskMoveRadius=e.move.radius*this.container.retina.pixelRatio,e.enable&&await this.initRawData()}resize(){const t=this.container,e=this.options;e.enable&&"none"!==e.type&&(this.redrawTimeout&&clearTimeout(this.redrawTimeout),this.redrawTimeout=window.setTimeout(async()=>{await this.initRawData(!0),await t.particles.redraw()},250))}stop(){delete this.raw,delete this.paths}particlesInitialization(){const t=this.options;return!(!t.enable||"inline"!==t.type||"one-per-point"!==t.inline.arrangement&&"per-point"!==t.inline.arrangement)&&(this.drawPoints(),!0)}particlePosition(t){var e,i;if(this.options.enable&&(null!==(i=null===(e=this.raw)||void 0===e?void 0:e.length)&&void 0!==i?i:0)>0)return _({},t||this.randomPoint())}particleBounce(t,e,i){return this.polygonBounce(t,e,i)}clickPositionValid(t){const e=this.options;return e.enable&&"none"!==e.type&&"inline"!==e.type&&this.checkInsidePolygon(t)}draw(t){var e;if(!(null===(e=this.paths)||void 0===e?void 0:e.length))return;const i=this.options,o=i.draw;if(!i.enable||!o.enable)return;const s=this.raw;for(const e of this.paths){const i=e.path2d,n=this.path2DSupported;t&&(n&&i&&this.offset?bo(t,i,o.stroke,this.offset):s&&mo(t,s,o.stroke))}}polygonBounce(t,e,i){const o=this.options;if(!this.raw||!o.enable||"top"!==i)return!1;if("inside"===o.type||"outside"===o.type){let e,i,o;const s=t.getPosition(),n=t.getRadius();for(let a=0,r=this.raw.length-1;a=e.x&&(i.x=-1),t.position.y>=e.y&&(i.y=-1),t.position.x=e.x+2*n*i.x,t.position.y=e.y+2*n*i.y,t.velocity.mult(-1),!0}}else if("inline"===o.type&&t.initialPosition){if(u(t.initialPosition,t.getPosition())>this.polygonMaskMoveRadius)return t.velocity.x=t.velocity.y/2-t.velocity.x,t.velocity.y=t.velocity.x/2-t.velocity.y,!0}return!1}checkInsidePolygon(t){var e,i;const o=this.container,s=this.options;if(!s.enable||"none"===s.type||"inline"===s.type)return!0;if(!this.raw)throw new Error(K.noPolygonFound);const n=o.canvas.size,a=null!==(e=null==t?void 0:t.x)&&void 0!==e?e:Math.random()*n.width,r=null!==(i=null==t?void 0:t.y)&&void 0!==i?i:Math.random()*n.height;let l=!1;for(let t=0,e=this.raw.length-1;tr!=o.y>r&&a<(o.x-i.x)*(r-i.y)/(o.y-i.y)+i.x&&(l=!l)}return"inside"===s.type?l:"outside"===s.type&&!l}parseSvgPath(t,e){var i,o,s;const n=null!=e&&e;if(void 0!==this.paths&&!n)return this.raw;const a=this.container,r=this.options,l=(new DOMParser).parseFromString(t,"image/svg+xml"),c=l.getElementsByTagName("svg")[0];let h=c.getElementsByTagName("path");h.length||(h=l.getElementsByTagName("path")),this.paths=[];for(let t=0;tt+e.length,0)/l.particles.number.value;for(const e of this.paths){const i=u*t-d;if(i<=e.length){h=e.element.getPointAtLength(i);break}d+=e.length}return{x:(null!==(i=null==h?void 0:h.x)&&void 0!==i?i:0)*c.scale+(null!==(s=null===(o=this.offset)||void 0===o?void 0:o.x)&&void 0!==s?s:0),y:(null!==(n=null==h?void 0:h.y)&&void 0!==n?n:0)*c.scale+(null!==(r=null===(a=this.offset)||void 0===a?void 0:a.y)&&void 0!==r?r:0)}}getPointByIndex(t){if(!this.raw||!this.raw.length)throw new Error(K.noPolygonDataLoaded);const e=this.raw[t%this.raw.length];return{x:e.x,y:e.y}}createPath2D(){var t,e;const i=this.options;if(this.path2DSupported&&(null===(t=this.paths)||void 0===t?void 0:t.length))for(const t of this.paths){const o=null===(e=t.element)||void 0===e?void 0:e.getAttribute("d");if(o){const e=new Path2D(o),s=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGMatrix(),n=new Path2D,a=s.scale(i.scale);n.addPath?(n.addPath(e,a),t.path2d=n):delete t.path2d}else delete t.path2d;!t.path2d&&this.raw&&(t.path2d=new Path2D,t.path2d.moveTo(this.raw[0].x,this.raw[0].y),this.raw.forEach((e,i)=>{var o;i>0&&(null===(o=t.path2d)||void 0===o||o.lineTo(e.x,e.y))}),t.path2d.closePath())}}async initRawData(t){const e=this.options;if(e.url)this.raw=await this.downloadSvgPath(e.url,t);else if(e.data){const i=e.data;let o;if("string"!=typeof i){const t=i.path instanceof Array?i.path.map(t=>``).join(""):``;o=`${t}`}else o=i;this.raw=this.parseSvgPath(o,t)}this.createPath2D()}}class xo{constructor(){this.id="polygonMask"}getPlugin(t){return new _o(t)}needsPlugin(t){var e,i,o;return null!==(i=null===(e=null==t?void 0:t.polygon)||void 0===e?void 0:e.enable)&&void 0!==i?i:void 0!==(null===(o=null==t?void 0:t.polygon)||void 0===o?void 0:o.type)&&"none"!==t.polygon.type}loadOptions(t,e){if(!this.needsPlugin(e))return;const i=t;let o=i.polygon;void 0===(null==o?void 0:o.load)&&(i.polygon=o=new go),o.load(null==e?void 0:e.polygon)}}class Co{init(t){const e=t.options.roll;if(e.enable)if(t.roll={angle:Math.random()*Math.PI*2,speed:a(e.speed)/360},e.backColor)t.backColor=R(e.backColor);else if(e.darken.enable&&e.enlighten.enable){const i=Math.random()>=.5?"darken":"enlighten";t.roll.alter={type:i,value:"darken"===i?e.darken.value:e.enlighten.value}}else e.darken.enable?t.roll.alter={type:"darken",value:e.darken.value}:e.enlighten.enable&&(t.roll.alter={type:"enlighten",value:e.enlighten.value});else t.roll={angle:0,speed:0}}isEnabled(t){const e=t.options.roll;return!t.destroyed&&!t.spawning&&e.enable}update(t,e){this.isEnabled(t)&&function(t,e){const i=t.options.roll;if(!t.roll||!i.enable)return;const o=t.roll.speed*e.factor,s=2*Math.PI;t.roll.angle+=o,t.roll.angle>s&&(t.roll.angle-=s)}(t,e)}}class Ao{constructor(t){this.container=t}init(t){const e=t.options.rotate;t.rotate={enable:e.animation.enable,value:a(e.value)*Math.PI/180};let i=e.direction;if("random"===i){i=Math.floor(2*Math.random())>0?"counter-clockwise":"clockwise"}switch(i){case"counter-clockwise":case"counterClockwise":t.rotate.status=1;break;case"clockwise":t.rotate.status=0}const o=t.options.rotate.animation;o.enable&&(t.rotate.velocity=o.speed/360*this.container.retina.reduceFactor,o.sync||(t.rotate.velocity*=Math.random()))}isEnabled(t){const e=t.options.rotate,i=e.animation;return!t.destroyed&&!t.spawning&&!e.path&&i.enable}update(t,e){this.isEnabled(t)&&function(t,e){var i;const o=t.rotate;if(!o)return;const s=t.options.rotate.animation,n=(null!==(i=o.velocity)&&void 0!==i?i:0)*e.factor,a=2*Math.PI;if(s.enable)switch(o.status){case 0:o.value+=n,o.value>a&&(o.value-=a);break;case 1:default:o.value-=n,o.value<0&&(o.value+=a)}}(t,e)}}class Vo{getSidesCount(){return 12}draw(t,e,i){t.arc(0,0,i,0,2*Math.PI,!1)}}function Go(t,e,i,o,s){var a;const r=e;if(!r||!i.enable)return;const l=n(i.offset),c=(null!==(a=e.velocity)&&void 0!==a?a:0)*t.factor+3.6*l;s&&0!==r.status?(r.value-=c,r.value<0&&(r.status=0,r.value+=r.value)):(r.value+=c,s&&r.value>o&&(r.status=1,r.value-=r.value%o)),r.value>o&&(r.value%=o)}class To{constructor(t){this.container=t}init(t){const e=R(t.options.color,t.id,t.options.reduceDuplicates);e&&(t.color=U(e,t.options.color.animation,this.container.retina.reduceFactor))}isEnabled(t){var e,i,o;const s=t.options.color.animation;return!t.destroyed&&!t.spawning&&(void 0!==(null===(e=t.color)||void 0===e?void 0:e.h.value)&&s.h.enable||void 0!==(null===(i=t.color)||void 0===i?void 0:i.s.value)&&s.s.enable||void 0!==(null===(o=t.color)||void 0===o?void 0:o.l.value)&&s.l.enable)}update(t,e){!function(t,e){var i,o,s;const n=t.options.color.animation;void 0!==(null===(i=t.color)||void 0===i?void 0:i.h)&&Go(e,t.color.h,n.h,360,!1),void 0!==(null===(o=t.color)||void 0===o?void 0:o.s)&&Go(e,t.color.s,n.s,100,!0),void 0!==(null===(s=t.color)||void 0===s?void 0:s.l)&&Go(e,t.color.l,n.l,100,!0)}(t,e)}}class Eo extends it{constructor(t){super(t)}isEnabled(){const t=this.container,e=t.actualOptions,i=t.interactivity.mouse,o=e.interactivity.events;if(!(i.position&&o.onHover.enable||i.clickPosition&&o.onClick.enable))return!1;const s=o.onHover.mode,n=o.onClick.mode;return g("attract",s)||g("attract",n)}reset(){}async interact(){const t=this.container,e=t.actualOptions,i=t.interactivity.status===K.mouseMoveEvent,o=e.interactivity.events,s=o.onHover.enable,n=o.onHover.mode,a=o.onClick.enable,r=o.onClick.mode;i&&s&&g("attract",n)?this.hoverAttract():a&&g("attract",r)&&this.clickAttract()}hoverAttract(){const t=this.container,e=t.interactivity.mouse.position;if(!e)return;const i=t.retina.attractModeDistance;this.processAttract(e,i,new X(e.x,e.y,i))}processAttract(t,e,i){const s=this.container,n=s.actualOptions.interactivity.modes.attract,a=s.particles.quadTree.query(i);for(const i of a){const{dx:s,dy:a,distance:r}=d(i.position,t),l=n.speed*n.factor,c=o(v(1-r/e,n.easing)*l,0,n.maxSpeed),h=yt.create(0===r?l:s/r*c,0===r?l:a/r*c);i.position.subFrom(h)}}clickAttract(){const t=this.container;if(t.attract.finish||(t.attract.count||(t.attract.count=0),t.attract.count++,t.attract.count===t.particles.count&&(t.attract.finish=!0)),t.attract.clicking){const e=t.interactivity.mouse.clickPosition;if(!e)return;const i=t.retina.attractModeDistance;this.processAttract(e,i,new X(e.x,e.y,i))}else!1===t.attract.clicking&&(t.attract.particles=[])}}class Oo extends it{constructor(t){super(t)}isEnabled(){const t=this.container,e=t.actualOptions,i=t.interactivity.mouse,o=e.interactivity.events,s=o.onDiv;return i.position&&o.onHover.enable&&g("bounce",o.onHover.mode)||x("bounce",s)}async interact(){const t=this.container,e=t.actualOptions.interactivity.events,i=t.interactivity.status===K.mouseMoveEvent,o=e.onHover.enable,s=e.onHover.mode,n=e.onDiv;i&&o&&g("bounce",s)?this.processMouseBounce():C("bounce",n,(t,e)=>this.singleSelectorBounce(t,e))}reset(){}processMouseBounce(){const t=this.container,e=10*t.retina.pixelRatio,i=t.interactivity.mouse.position,o=t.retina.bounceModeDistance;i&&this.processBounce(i,o,new X(i.x,i.y,o+e))}singleSelectorBounce(t,e){const i=this.container,o=document.querySelectorAll(t);o.length&&o.forEach(t=>{const o=t,s=i.retina.pixelRatio,n={x:(o.offsetLeft+o.offsetWidth/2)*s,y:(o.offsetTop+o.offsetHeight/2)*s},a=o.offsetWidth/2*s,r=10*s,l="circle"===e.type?new X(n.x,n.y,a+r):new J(o.offsetLeft*s-r,o.offsetTop*s-r,o.offsetWidth*s+2*r,o.offsetHeight*s+2*r);this.processBounce(n,a,l)})}processBounce(t,e,i){const o=this.container.particles.quadTree.query(i);for(const s of o)i instanceof X?T(G(s),{position:t,radius:e,mass:e**2*Math.PI/2,velocity:yt.origin,factor:yt.origin}):i instanceof J&&E(s,P(t,e))}}function ko(t,e,i,s){if(e>=i){return o(t+(e-i)*s,t,e)}if(ethis.singleSelectorHover(t,e))}singleSelectorHover(t,e){const i=this.container,o=document.querySelectorAll(t);o.length&&o.forEach(t=>{const o=t,s=i.retina.pixelRatio,n={x:(o.offsetLeft+o.offsetWidth/2)*s,y:(o.offsetTop+o.offsetHeight/2)*s},a=o.offsetWidth/2*s,r="circle"===e.type?new X(n.x,n.y,a):new J(o.offsetLeft*s,o.offsetTop*s,o.offsetWidth*s,o.offsetHeight*s),l=i.particles.quadTree.query(r);for(const t of l){if(!r.contains(t.getPosition()))continue;t.bubble.inRange=!0;const e=V(i.actualOptions.interactivity.modes.bubble.divs,o);t.bubble.div&&t.bubble.div===o||(this.reset(t,!0),t.bubble.div=o),this.hoverBubbleSize(t,1,e),this.hoverBubbleOpacity(t,1,e),this.hoverBubbleColor(t,1,e)}})}process(t,e,i,o){const s=this.container,n=o.bubbleObj.optValue;if(void 0===n)return;const a=s.actualOptions.interactivity.modes.bubble.duration,r=s.retina.bubbleModeDistance,l=o.particlesObj.optValue,c=o.bubbleObj.value,h=o.particlesObj.value||0,d=o.type;if(n!==l)if(s.bubble.durationEnd)c&&("size"===d&&delete t.bubble.radius,"opacity"===d&&delete t.bubble.opacity);else if(e<=r){if((null!=c?c:h)!==n){const e=h-i*(h-n)/a;"size"===d&&(t.bubble.radius=e),"opacity"===d&&(t.bubble.opacity=e)}}else"size"===d&&delete t.bubble.radius,"opacity"===d&&delete t.bubble.opacity}clickBubble(){var t,e;const i=this.container,o=i.actualOptions,s=i.interactivity.mouse.clickPosition;if(!s)return;const n=i.retina.bubbleModeDistance,a=i.particles.quadTree.queryCircle(s,n);for(const n of a){if(!i.bubble.clicking)continue;n.bubble.inRange=!i.bubble.durationEnd;const a=u(n.getPosition(),s),r=((new Date).getTime()-(i.interactivity.mouse.clickTime||0))/1e3;r>o.interactivity.modes.bubble.duration&&(i.bubble.durationEnd=!0),r>2*o.interactivity.modes.bubble.duration&&(i.bubble.clicking=!1,i.bubble.durationEnd=!1);const c={bubbleObj:{optValue:i.retina.bubbleModeSize,value:n.bubble.radius},particlesObj:{optValue:l(n.options.size.value)*i.retina.pixelRatio,value:n.size.value},type:"size"};this.process(n,a,r,c);const h={bubbleObj:{optValue:o.interactivity.modes.bubble.opacity,value:n.bubble.opacity},particlesObj:{optValue:l(n.options.opacity.value),value:null!==(e=null===(t=n.opacity)||void 0===t?void 0:t.value)&&void 0!==e?e:1},type:"opacity"};this.process(n,a,r,h),i.bubble.durationEnd?delete n.bubble.color:a<=i.retina.bubbleModeDistance?this.hoverBubbleColor(n,a):delete n.bubble.color}}hoverBubble(){const t=this.container,e=t.interactivity.mouse.position;if(void 0===e)return;const i=t.retina.bubbleModeDistance,o=t.particles.quadTree.queryCircle(e,i);for(const s of o){s.bubble.inRange=!0;const o=u(s.getPosition(),e),n=1-o/i;o<=i?n>=0&&t.interactivity.status===K.mouseMoveEvent&&(this.hoverBubbleSize(s,n),this.hoverBubbleOpacity(s,n),this.hoverBubbleColor(s,n)):this.reset(s),t.interactivity.status===K.mouseLeaveEvent&&this.reset(s)}}hoverBubbleSize(t,e,i){const o=this.container,s=(null==i?void 0:i.size)?i.size*o.retina.pixelRatio:o.retina.bubbleModeSize;if(void 0===s)return;const n=l(t.options.size.value)*o.retina.pixelRatio,a=ko(t.size.value,s,n,e);void 0!==a&&(t.bubble.radius=a)}hoverBubbleOpacity(t,e,i){var o,s,n;const a=this.container.actualOptions,r=null!==(o=null==i?void 0:i.opacity)&&void 0!==o?o:a.interactivity.modes.bubble.opacity;if(!r)return;const c=t.options.opacity.value,h=ko(null!==(n=null===(s=t.opacity)||void 0===s?void 0:s.value)&&void 0!==n?n:1,r,l(c),e);void 0!==h&&(t.bubble.opacity=h)}hoverBubbleColor(t,e,i){const o=this.container.actualOptions,s=null!=i?i:o.interactivity.modes.bubble;if(!t.bubble.finalColor){const e=s.color;if(!e)return;const i=e instanceof Array?b(e):e;t.bubble.finalColor=R(i)}if(t.bubble.finalColor)if(s.mix){t.bubble.color=void 0;const i=t.getFillColor();t.bubble.color=i?z(j(i,t.bubble.finalColor,1-e,e)):t.bubble.finalColor}else t.bubble.color=t.bubble.finalColor}}class Ro extends it{constructor(t){super(t)}isEnabled(){const t=this.container,e=t.interactivity.mouse,i=t.actualOptions.interactivity.events;return!(!i.onHover.enable||!e.position)&&g("connect",i.onHover.mode)}reset(){}async interact(){const t=this.container;if(t.actualOptions.interactivity.events.onHover.enable&&"mousemove"===t.interactivity.status){const e=t.interactivity.mouse.position;if(!e)return;const i=Math.abs(t.retina.connectModeRadius),o=t.particles.quadTree.queryCircle(e,i);let s=0;for(const e of o){const i=e.getPosition();for(const n of o.slice(s+1)){const o=n.getPosition(),s=Math.abs(t.retina.connectModeDistance),a=Math.abs(i.x-o.x),r=Math.abs(i.y-o.y);athis.singleSelectorRepulse(t,e))}singleSelectorRepulse(t,e){const i=this.container,o=document.querySelectorAll(t);o.length&&o.forEach(t=>{const o=t,s=i.retina.pixelRatio,n={x:(o.offsetLeft+o.offsetWidth/2)*s,y:(o.offsetTop+o.offsetHeight/2)*s},a=o.offsetWidth/2*s,r="circle"===e.type?new X(n.x,n.y,a):new J(o.offsetLeft*s,o.offsetTop*s,o.offsetWidth*s,o.offsetHeight*s),l=V(i.actualOptions.interactivity.modes.repulse.divs,o);this.processRepulse(n,a,r,l)})}hoverRepulse(){const t=this.container,e=t.interactivity.mouse.position;if(!e)return;const i=t.retina.repulseModeDistance;this.processRepulse(e,i,new X(e.x,e.y,i))}processRepulse(t,e,i,s){var n;const a=this.container,r=a.particles.quadTree.query(i),l=a.actualOptions.interactivity.modes.repulse;for(const i of r){const{dx:a,dy:r,distance:c}=d(i.position,t),h=(null!==(n=null==s?void 0:s.speed)&&void 0!==n?n:l.speed)*l.factor,u=o(v(1-c/e,l.easing)*h,0,l.maxSpeed),p=yt.create(0===c?h:a/c*u,0===c?h:r/c*u);i.position.addTo(p)}}clickRepulse(){const t=this.container;if(t.repulse.finish||(t.repulse.count||(t.repulse.count=0),t.repulse.count++,t.repulse.count===t.particles.count&&(t.repulse.finish=!0)),t.repulse.clicking){const e=t.retina.repulseModeDistance,i=Math.pow(e/6,3),o=t.interactivity.mouse.clickPosition;if(void 0===o)return;const s=new X(o.x,o.y,i),n=t.particles.quadTree.query(s);for(const e of n){const{dx:s,dy:n,distance:a}=d(o,e.position),r=a**2,l=t.actualOptions.interactivity.modes.repulse.speed,c=-i*l/r;if(r<=i){t.repulse.particles.push(e);const i=yt.create(s,n);i.length=c,e.velocity.setTo(i)}}}else if(!1===t.repulse.clicking){for(const e of t.repulse.particles)e.velocity.setTo(e.initialVelocity);t.repulse.particles=[]}}}const Io=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d.]+%?\))|currentcolor/gi;async function Ho(t){return new Promise(e=>{t.loading=!0;const i=new Image;i.addEventListener("load",()=>{t.element=i,t.loading=!1,e()}),i.addEventListener("error",()=>{t.error=!0,t.loading=!1,console.error("Error tsParticles - loading image: "+t.source),e()}),i.src=t.source})}async function Do(t){if("svg"!==t.type)return void await Ho(t);t.loading=!0;const e=await fetch(t.source);t.loading=!1,e.ok||(console.error("Error tsParticles - Image not found"),t.error=!0),t.error||(t.svgData=await e.text())}function No(t,e,i,o){var s,n,a;const r=function(t,e,i){const{svgData:o}=t;if(!o)return"";const s=N(e,i);if(o.includes("fill"))return o.replace(Io,()=>s);const n=o.indexOf(">");return`${o.substring(0,n)} fill="${s}"${o.substring(n)}`}(t,i,null!==(n=null===(s=o.opacity)||void 0===s?void 0:s.value)&&void 0!==n?n:1),l=new Blob([r],{type:"image/svg+xml"}),c=URL||window.URL||window.webkitURL||window,h=c.createObjectURL(l),d=new Image,u={data:Object.assign(Object.assign({},t),{svgData:r}),ratio:e.width/e.height,replaceColor:null!==(a=e.replaceColor)&&void 0!==a?a:e.replace_color,source:e.src};return d.addEventListener("load",()=>{const e=o.image;e&&(e.loaded=!0,t.element=d),c.revokeObjectURL(h)}),d.addEventListener("error",()=>{c.revokeObjectURL(h);const e=Object.assign(Object.assign({},t),{error:!1,loading:!0});Ho(e).then(()=>{const i=o.image;i&&(t.element=e.element,i.loaded=!0)})}),d.src=h,u}var jo,Fo=function(t,e,i,o,s){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?s.call(t,i):s?s.value=i:e.set(t,i),i},Bo=function(t,e,i,o){if("a"===i&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?o:"a"===i?o.call(t):o?o.value:e.get(t)};class qo{constructor(){jo.set(this,void 0),Fo(this,jo,[],"f")}getSidesCount(){return 12}getImages(t){const e=Bo(this,jo,"f").find(e=>e.id===t.id);return e||(Bo(this,jo,"f").push({id:t.id,images:[]}),this.getImages(t))}addImage(t,e){const i=this.getImages(t);null==i||i.images.push(e)}destroy(){Fo(this,jo,[],"f")}async loadImageShape(t,e){const i=e.src;if(!i)throw new Error("Error tsParticles - No image.src");try{const o={source:i,type:i.substr(i.length-3),error:!1,loading:!0};this.addImage(t,o);const s=e.replaceColor?Do:Ho;await s(o)}catch(t){throw new Error(`tsParticles error - ${e.src} not found`)}}draw(t,e,i,o){var s,n;const a=e.image,r=null===(s=null==a?void 0:a.data)||void 0===s?void 0:s.element;if(!r)return;const l=null!==(n=null==a?void 0:a.ratio)&&void 0!==n?n:1,c={x:-i,y:-i};(null==a?void 0:a.data.svgData)&&(null==a?void 0:a.replaceColor)||(t.globalAlpha=o),t.drawImage(r,c.x,c.y,2*i,2*i/l),(null==a?void 0:a.data.svgData)&&(null==a?void 0:a.replaceColor)||(t.globalAlpha=1)}loadShape(t){var e,i,o;if("image"!==t.shape&&"images"!==t.shape)return;const s=this.getImages(t.container).images,n=t.shapeData,a=s.find(t=>t.source===n.src);let r;if(!a)return void this.loadImageShape(t.container,n).then(()=>{this.loadShape(t)});if(a.error)return;const l=t.getFillColor();r=a.svgData&&n.replaceColor&&l?No(a,n,l,t):{data:a,loaded:!0,ratio:n.width/n.height,replaceColor:null!==(e=n.replaceColor)&&void 0!==e?e:n.replace_color,source:n.src},r.ratio||(r.ratio=1);const c={image:r,fill:null!==(i=n.fill)&&void 0!==i?i:t.fill,close:null!==(o=n.close)&&void 0!==o?o:t.close};t.image=c.image,t.fill=c.fill,t.close=c.close}}jo=new WeakMap;class Uo{constructor(t){this.container=t}init(){}isEnabled(t){return!t.destroyed}update(t,e){if(!this.isEnabled(t))return;const i=t.life;let o=!1;if(t.spawning){if(i.delayTime+=e.value,!(i.delayTime>=t.life.delay))return;o=!0,t.spawning=!1,i.delayTime=0,i.time=0}if(-1===i.duration)return;if(t.spawning)return;if(o?i.time=0:i.time+=e.value,i.time0&&t.life.count--,0===t.life.count)return void t.destroy();const s=this.container.canvas.size,r=c(0,s.width),l=c(0,s.width);t.position.x=n(r),t.position.y=n(l),t.spawning=!0,i.delayTime=0,i.time=0,t.reset();const h=t.options.life;i.delay=1e3*a(h.delay.value),i.duration=1e3*a(h.duration.value)}}class Wo{getSidesCount(){return 1}draw(t,e,i){t.moveTo(-i/2,0),t.lineTo(i/2,0)}}class Qo{constructor(t){this.container=t}init(t){const e=t.options.opacity;t.opacity={enable:e.animation.enable,max:l(e.value),min:r(e.value),value:a(e.value),loops:0,maxLoops:e.animation.count};const i=e.animation;if(i.enable){t.opacity.status=0;const o=e.value;switch(t.opacity.min=r(o),t.opacity.max=l(o),i.startValue){case"min":t.opacity.value=t.opacity.min,t.opacity.status=0;break;case"random":t.opacity.value=n(t.opacity),t.opacity.status=Math.random()>=.5?0:1;break;case"max":default:t.opacity.value=t.opacity.max,t.opacity.status=1}t.opacity.velocity=i.speed/100*this.container.retina.reduceFactor,i.sync||(t.opacity.velocity*=Math.random())}}isEnabled(t){var e,i,o;return!t.destroyed&&!t.spawning&&!!t.opacity&&t.opacity.enable&&((null!==(e=t.opacity.maxLoops)&&void 0!==e?e:0)<=0||(null!==(i=t.opacity.loops)&&void 0!==i?i:0)<(null!==(o=t.opacity.maxLoops)&&void 0!==o?o:0))}update(t,e){this.isEnabled(t)&&function(t,e){var i,s,n,a,r;if(!t.opacity)return;const l=t.opacity.min,c=t.opacity.max;if(!t.destroyed&&t.opacity.enable&&((null!==(i=t.opacity.maxLoops)&&void 0!==i?i:0)<=0||(null!==(s=t.opacity.loops)&&void 0!==s?s:0)<(null!==(n=t.opacity.maxLoops)&&void 0!==n?n:0))){switch(t.opacity.status){case 0:t.opacity.value>=c?(t.opacity.status=1,t.opacity.loops||(t.opacity.loops=0),t.opacity.loops++):t.opacity.value+=(null!==(a=t.opacity.velocity)&&void 0!==a?a:0)*e.factor;break;case 1:t.opacity.value<=l?(t.opacity.status=0,t.opacity.loops||(t.opacity.loops=0),t.opacity.loops++):t.opacity.value-=(null!==(r=t.opacity.velocity)&&void 0!==r?r:0)*e.factor}!function(t,e,i,o){switch(t.options.opacity.animation.destroy){case"max":e>=o&&t.destroy();break;case"min":e<=i&&t.destroy()}}(t,t.opacity.value,l,c),t.destroyed||(t.opacity.value=o(t.opacity.value,l,c))}}(t,e)}}class $o{constructor(t){this.container=t}init(){}isEnabled(t){return!t.destroyed&&!t.spawning}update(t,e){var i,o,s,n;const a=t.options.move.outModes;this.updateOutMode(t,e,null!==(i=a.bottom)&&void 0!==i?i:a.default,"bottom"),this.updateOutMode(t,e,null!==(o=a.left)&&void 0!==o?o:a.default,"left"),this.updateOutMode(t,e,null!==(s=a.right)&&void 0!==s?s:a.default,"right"),this.updateOutMode(t,e,null!==(n=a.top)&&void 0!==n?n:a.default,"top")}updateOutMode(t,e,i,o){switch(i){case"bounce":case"bounce-vertical":case"bounce-horizontal":case"bounceVertical":case"bounceHorizontal":case"split":this.bounce(t,e,o,i);break;case"destroy":this.destroy(t,o);break;case"out":this.out(t,o);break;case"none":default:this.none(t,o)}}destroy(t,e){const i=this.container;S(t.position,i.canvas.size,t.getRadius(),e)||i.particles.remove(t,void 0,!0)}out(t,e){const i=this.container;if(S(t.position,i.canvas.size,t.getRadius(),e))return;const o=t.options.move.warp,s=i.canvas.size,n={bottom:s.height+t.getRadius()+t.offset.y,left:-t.getRadius()-t.offset.x,right:s.width+t.getRadius()+t.offset.x,top:-t.getRadius()-t.offset.y},a=t.getRadius(),r=P(t.position,a);"right"===e&&r.left>s.width+t.offset.x?(t.position.x=n.left,t.initialPosition.x=t.position.x,o||(t.position.y=Math.random()*s.height,t.initialPosition.y=t.position.y)):"left"===e&&r.right<-t.offset.x&&(t.position.x=n.right,t.initialPosition.x=t.position.x,o||(t.position.y=Math.random()*s.height,t.initialPosition.y=t.position.y)),"bottom"===e&&r.top>s.height+t.offset.y?(o||(t.position.x=Math.random()*s.width,t.initialPosition.x=t.position.x),t.position.y=n.top,t.initialPosition.y=t.position.y):"top"===e&&r.bottom<-t.offset.y&&(o||(t.position.x=Math.random()*s.width,t.initialPosition.x=t.position.x),t.position.y=n.bottom,t.initialPosition.y=t.position.y)}bounce(t,e,i,o){const s=this.container;let n=!1;for(const[,o]of s.plugins)if(void 0!==o.particleBounce&&(n=o.particleBounce(t,e,i)),n)break;if(n)return;const r=t.getPosition(),l=t.offset,c=t.getRadius(),h=P(r,c),d=s.canvas.size;!function(t){if("bounce"!==t.outMode&&"bounce-horizontal"!==t.outMode&&"bounceHorizontal"!==t.outMode&&"split"!==t.outMode)return;const e=t.particle.velocity.x;let i=!1;if("right"===t.direction&&t.bounds.right>=t.canvasSize.width&&e>0||"left"===t.direction&&t.bounds.left<=0&&e<0){const e=a(t.particle.options.bounce.horizontal.value);t.particle.velocity.x*=-e,i=!0}if(!i)return;const o=t.offset.x+t.size;t.bounds.right>=t.canvasSize.width?t.particle.position.x=t.canvasSize.width-o:t.bounds.left<=0&&(t.particle.position.x=o),"split"===t.outMode&&t.particle.destroy()}({particle:t,outMode:o,direction:i,bounds:h,canvasSize:d,offset:l,size:c}),function(t){if("bounce"===t.outMode||"bounce-vertical"===t.outMode||"bounceVertical"===t.outMode||"split"===t.outMode){const e=t.particle.velocity.y;let i=!1;if("bottom"===t.direction&&t.bounds.bottom>=t.canvasSize.height&&e>0||"top"===t.direction&&t.bounds.top<=0&&e<0){const e=a(t.particle.options.bounce.vertical.value);t.particle.velocity.y*=-e,i=!0}if(!i)return;const o=t.offset.y+t.size;t.bounds.bottom>=t.canvasSize.height?t.particle.position.y=t.canvasSize.height-o:t.bounds.top<=0&&(t.particle.position.y=o),"split"===t.outMode&&t.particle.destroy()}}({particle:t,outMode:o,direction:i,bounds:h,canvasSize:d,offset:l,size:c})}none(t,e){if(t.options.move.distance.horizontal&&("left"===e||"right"===e)||t.options.move.distance.vertical&&("top"===e||"bottom"===e))return;const i=t.options.move.gravity,o=this.container,s=o.canvas.size,n=t.getRadius();if(i.enable){const a=t.position;(!i.inverse&&a.y>s.height+n&&"bottom"===e||i.inverse&&a.y<-n&&"top"===e)&&o.particles.remove(t)}else{if(t.velocity.y>0&&t.position.y<=s.height+n||t.velocity.y<0&&t.position.y>=-n||t.velocity.x>0&&t.position.x<=s.width+n||t.velocity.x<0&&t.position.x>=-n)return;S(t.position,o.canvas.size,n,e)||o.particles.remove(t)}}}class Zo extends lt{constructor(t){super(t)}async interact(t){var e;const i=this.container,o=null!==(e=t.retina.attractDistance)&&void 0!==e?e:i.retina.attractDistance,s=t.getPosition(),n=i.particles.quadTree.queryCircle(s,o);for(const e of n){if(t===e||!e.options.move.attract.enable||e.destroyed||e.spawning)continue;const i=e.getPosition(),{dx:o,dy:n}=d(s,i),a=t.options.move.attract.rotate,r=o/(1e3*a.x),l=n/(1e3*a.y),c=e.size.value/t.size.value,h=1/c;t.velocity.x-=r*c,t.velocity.y-=l*c,e.velocity.x+=r*h,e.velocity.y+=l*h}}isEnabled(t){return t.options.move.attract.enable}reset(){}}function Xo(t,e){T(G(t),G(e))}class Jo extends lt{constructor(t){super(t)}isEnabled(t){return t.options.collisions.enable}reset(){}async interact(t){const e=this.container,i=t.getPosition(),o=t.getRadius(),s=e.particles.quadTree.queryCircle(i,2*o);for(const e of s){if(t===e||!e.options.collisions.enable||t.options.collisions.mode!==e.options.collisions.mode||e.destroyed||e.spawning)continue;const s=e.getPosition();if(Math.round(i.z)!==Math.round(s.z))continue;u(i,s)<=o+e.getRadius()&&this.resolveCollision(t,e)}}resolveCollision(t,e){switch(t.options.collisions.mode){case"absorb":this.absorb(t,e);break;case"bounce":Xo(t,e);break;case"destroy":!function(t,e){t.unbreakable||e.unbreakable||Xo(t,e),void 0===t.getRadius()&&void 0!==e.getRadius()?t.destroy():void 0!==t.getRadius()&&void 0===e.getRadius()?e.destroy():void 0!==t.getRadius()&&void 0!==e.getRadius()&&(t.getRadius()>=e.getRadius()?e.destroy():t.destroy())}(t,e)}}absorb(t,e){const i=this.container,s=i.fpsLimit/1e3;if(void 0===t.getRadius()&&void 0!==e.getRadius())t.destroy();else if(void 0!==t.getRadius()&&void 0===e.getRadius())e.destroy();else if(void 0!==t.getRadius()&&void 0!==e.getRadius())if(t.getRadius()>=e.getRadius()){const n=o(t.getRadius()/e.getRadius(),0,e.getRadius())*s;t.size.value+=n,e.size.value-=n,e.getRadius()<=i.retina.pixelRatio&&(e.size.value=0,e.destroy())}else{const n=o(e.getRadius()/t.getRadius(),0,t.getRadius())*s;t.size.value-=n,e.size.value+=n,t.getRadius()<=i.retina.pixelRatio&&(t.size.value=0,t.destroy())}}}function Yo(t,e,i,o,s){let n=u(t,e);if(!s||n<=i)return n;if(n=u(t,{x:e.x-o.width,y:e.y}),n<=i)return n;if(n=u(t,{x:e.x-o.width,y:e.y-o.height}),n<=i)return n;return n=u(t,{x:e.x,y:e.y-o.height}),n}class Ko extends lt{constructor(t){super(t)}isEnabled(t){return t.options.links.enable}reset(){}async interact(t){var e;t.links=[];const i=t.getPosition(),o=this.container,s=o.canvas.size;if(i.x<0||i.y<0||i.x>s.width||i.y>s.height)return;const n=t.options.links,a=n.opacity,r=null!==(e=t.retina.linksDistance)&&void 0!==e?e:o.retina.linksDistance,l=n.warp,c=l?new Y(i.x,i.y,r,s):new X(i.x,i.y,r),h=o.particles.quadTree.query(c);for(const e of h){const o=e.options.links;if(t===e||!o.enable||n.id!==o.id||e.spawning||e.destroyed||-1!==t.links.map(t=>t.destination).indexOf(e)||-1!==e.links.map(t=>t.destination).indexOf(t))continue;const c=e.getPosition();if(c.x<0||c.y<0||c.x>s.width||c.y>s.height)continue;const h=Yo(i,c,r,s,l&&o.warp);if(h>r)return;const d=(1-h/r)*a;this.setColor(t),t.links.push({destination:e,opacity:d})}}setColor(t){const e=this.container,i=t.options.links;let o=void 0===i.id?e.particles.linksColor:e.particles.linksColors.get(i.id);if(!o){o=B(i.color,i.blink,i.consent),void 0===i.id?e.particles.linksColor=o:e.particles.linksColors.set(i.id,o)}}}class ts{constructor(t){this.container=t}particleCreated(t){t.links=[]}particleDestroyed(t){t.links=[]}drawParticle(t,e){const i=e,o=this.container,s=o.particles,n=e.options;if(i.links.length>0){t.save();const e=i.links.filter(t=>o.particles.getLinkFrequency(i,t.destination)<=n.links.frequency);for(const t of e){const a=t.destination;if(n.links.triangles.enable){const r=e.map(t=>t.destination),l=a.links.filter(t=>o.particles.getLinkFrequency(a,t.destination)<=a.options.links.frequency&&r.indexOf(t.destination)>=0);if(l.length)for(const e of l){const o=e.destination;s.getTriangleFrequency(i,a,o)>n.links.triangles.frequency||this.drawLinkTriangle(i,t,e)}}t.opacity>0&&o.retina.linksWidth>0&&this.drawLinkLine(i,t)}t.restore()}}drawLinkTriangle(t,e,i){var o;const s=this.container,n=s.actualOptions,a=e.destination,r=i.destination,l=t.options.links.triangles,c=null!==(o=l.opacity)&&void 0!==o?o:(e.opacity+i.opacity)/2;if(c<=0)return;const h=t.getPosition(),d=a.getPosition(),p=r.getPosition();s.canvas.draw(e=>{if(u(h,d)>s.retina.linksDistance||u(p,d)>s.retina.linksDistance||u(p,h)>s.retina.linksDistance)return;let i=M(l.color);if(!i){const e=t.options.links,o=void 0!==e.id?s.particles.linksColors.get(e.id):s.particles.linksColor;i=F(t,a,o)}i&&function(t,e,i,o,s,n,a,r){!function(t,e,i,o){t.beginPath(),t.moveTo(e.x,e.y),t.lineTo(i.x,i.y),t.lineTo(o.x,o.y),t.closePath()}(t,e,i,o),s&&(t.globalCompositeOperation=n),t.fillStyle=D(a,r),t.fill()}(e,h,d,p,n.backgroundMask.enable,n.backgroundMask.composite,i,c)})}drawLinkLine(t,e){const i=this.container,o=i.actualOptions,s=e.destination;let n=e.opacity;const a=t.getPosition(),r=s.getPosition();i.canvas.draw(e=>{var l,c;let h;const p=t.options.twinkle.lines;if(p.enable){const t=p.frequency,e=M(p.color);Math.random()new Ko(t))}(t),await async function(t){const e=new es;await t.addPlugin(e)}(t)}class os{getSidesCount(t){var e,i;const o=t.shapeData;return null!==(i=null!==(e=null==o?void 0:o.sides)&&void 0!==e?e:null==o?void 0:o.nb_sides)&&void 0!==i?i:5}draw(t,e,i){const o=this.getCenter(e,i),s=this.getSidesData(e,i),n=s.count.numerator*s.count.denominator,a=s.count.numerator/s.count.denominator,r=180*(a-2)/a,l=Math.PI-Math.PI*r/180;if(t){t.beginPath(),t.translate(o.x,o.y),t.moveTo(0,0);for(let e=0;e=c?(t.size.status=1,t.size.loops||(t.size.loops=0),t.size.loops++):t.size.value+=r;break;case 1:t.size.value<=l?(t.size.status=0,t.size.loops||(t.size.loops=0),t.size.loops++):t.size.value-=r}!function(t,e,i,o){switch(t.options.size.animation.destroy){case"max":e>=o&&t.destroy();break;case"min":e<=i&&t.destroy()}}(t,t.size.value,l,c),t.destroyed||(t.size.value=o(t.size.value,l,c))}}(t,e)}}const ls=Math.sqrt(2);class cs{getSidesCount(){return 4}draw(t,e,i){t.rect(-i/ls,-i/ls,2*i/ls,2*i/ls)}}class hs{getSidesCount(t){var e,i;const o=t.shapeData;return null!==(i=null!==(e=null==o?void 0:o.sides)&&void 0!==e?e:null==o?void 0:o.nb_sides)&&void 0!==i?i:5}draw(t,e,i){var o;const s=e.shapeData,n=this.getSidesCount(e),a=null!==(o=null==s?void 0:s.inset)&&void 0!==o?o:2;t.moveTo(0,0-i);for(let e=0;eo&&(r.status=1,r.value-=r.value%o)),r.value>o&&(r.value%=o)}class us{constructor(t){this.container=t}init(t){var e,i;const o=this.container;t.stroke=t.options.stroke instanceof Array?b(t.options.stroke,t.id,t.options.reduceDuplicates):t.options.stroke,t.strokeWidth=t.stroke.width*o.retina.pixelRatio;const s=null!==(e=R(t.stroke.color))&&void 0!==e?e:t.getFillColor();s&&(t.strokeColor=U(s,null===(i=t.stroke.color)||void 0===i?void 0:i.animation,o.retina.reduceFactor))}isEnabled(t){var e,i,o,s;const n=null===(e=t.stroke)||void 0===e?void 0:e.color;return!t.destroyed&&!t.spawning&&!!n&&(void 0!==(null===(i=t.strokeColor)||void 0===i?void 0:i.h.value)&&n.animation.h.enable||void 0!==(null===(o=t.strokeColor)||void 0===o?void 0:o.s.value)&&n.animation.s.enable||void 0!==(null===(s=t.strokeColor)||void 0===s?void 0:s.l.value)&&n.animation.l.enable)}update(t,e){this.isEnabled(t)&&function(t,e){var i,o,s,n,a,r,l,c,h,d;if(!(null===(i=t.stroke)||void 0===i?void 0:i.color))return;const u=t.stroke.color.animation,p=null!==(s=null===(o=t.strokeColor)||void 0===o?void 0:o.h)&&void 0!==s?s:null===(n=t.color)||void 0===n?void 0:n.h;p&&ds(e,p,u.h,360,!1);const v=null!==(r=null===(a=t.strokeColor)||void 0===a?void 0:a.s)&&void 0!==r?r:null===(l=t.color)||void 0===l?void 0:l.s;v&&ds(e,v,u.s,100,!0);const y=null!==(h=null===(c=t.strokeColor)||void 0===c?void 0:c.l)&&void 0!==h?h:null===(d=t.color)||void 0===d?void 0:d.l;y&&ds(e,y,u.l,100,!0)}(t,e)}}const ps=["text","character","char"];class vs{getSidesCount(){return 12}async init(t){const e=t.actualOptions;if(ps.find(t=>g(t,e.particles.shape.type))){const t=ps.map(t=>e.particles.shape.options[t]).find(t=>!!t);if(t instanceof Array){const e=[];for(const i of t)e.push(m(i));await Promise.allSettled(e)}else void 0!==t&&await m(t)}}draw(t,e,i,o){var s,n,a;const r=e.shapeData;if(void 0===r)return;const l=r.value;if(void 0===l)return;const c=e;void 0===c.text&&(c.text=l instanceof Array?b(l,e.randomIndexData):l);const h=c.text,d=null!==(s=r.style)&&void 0!==s?s:"",u=null!==(n=r.weight)&&void 0!==n?n:"400",p=2*Math.round(i),v=null!==(a=r.font)&&void 0!==a?a:"Verdana",y=e.fill,w=h.length*i/2;t.font=`${d} ${u} ${p}px "${v}"`;const f={x:-w,y:i/2};t.globalAlpha=o,y?t.fillText(h,f.x,f.y):t.strokeText(h,f.x,f.y),t.globalAlpha=1}}async function ys(t){await async function(t){await t.addInteractor("externalAttract",t=>new Eo(t))}(t),await async function(t){await t.addInteractor("externalBounce",t=>new Oo(t))}(t),await async function(t){await t.addInteractor("externalBubble",t=>new Mo(t))}(t),await async function(t){await t.addInteractor("externalConnect",t=>new Ro(t))}(t),await async function(t){await t.addInteractor("externalGrab",t=>new zo(t))}(t),await async function(t){await t.addInteractor("externalRepulse",t=>new Lo(t))}(t),await async function(t){await t.addInteractor("particlesAttract",t=>new Zo(t))}(t),await async function(t){await t.addInteractor("particlesCollisions",t=>new Jo(t))}(t),await is(t),await async function(t){await t.addShape("circle",new Vo)}(t),await async function(t){const e=new qo;await t.addShape("image",e),await t.addShape("images",e)}(t),await async function(t){await t.addShape("line",new Wo)}(t),await as(t),await async function(t){const e=new cs;await t.addShape("edge",e),await t.addShape("square",e)}(t),await async function(t){await t.addShape("star",new hs)}(t),await async function(t){const e=new vs;for(const i of ps)await t.addShape(i,e)}(t),await async function(t){await t.addParticleUpdater("life",t=>new Uo(t))}(t),await async function(t){await t.addParticleUpdater("opacity",t=>new Qo(t))}(t),await async function(t){await t.addParticleUpdater("size",()=>new rs)}(t),await async function(t){await t.addParticleUpdater("angle",t=>new Ao(t))}(t),await async function(t){await t.addParticleUpdater("color",t=>new To(t))}(t),await async function(t){await t.addParticleUpdater("strokeColor",t=>new us(t))}(t),await async function(t){await t.addParticleUpdater("outModes",t=>new $o(t))}(t)}class ws{constructor(t){this.container=t}init(t){const e=t.options.tilt;t.tilt={enable:e.enable,value:a(e.value)*Math.PI/180,sinDirection:Math.random()>=.5?1:-1,cosDirection:Math.random()>=.5?1:-1};let i=e.direction;if("random"===i){i=Math.floor(2*Math.random())>0?"counter-clockwise":"clockwise"}switch(i){case"counter-clockwise":case"counterClockwise":t.tilt.status=1;break;case"clockwise":t.tilt.status=0}const o=t.options.tilt.animation;o.enable&&(t.tilt.velocity=o.speed/360*this.container.retina.reduceFactor,o.sync||(t.tilt.velocity*=Math.random()))}isEnabled(t){const e=t.options.tilt.animation;return!t.destroyed&&!t.spawning&&e.enable}update(t,e){this.isEnabled(t)&&function(t,e){var i;if(!t.tilt)return;const o=t.options.tilt.animation,s=(null!==(i=t.tilt.velocity)&&void 0!==i?i:0)*e.factor,n=2*Math.PI;if(o.enable)switch(t.tilt.status){case 0:t.tilt.value+=s,t.tilt.value>n&&(t.tilt.value-=n);break;case 1:default:t.tilt.value-=s,t.tilt.value<0&&(t.tilt.value+=n)}}(t,e)}}class fs{constructor(t){this.container=t}init(t){const e=t.options.wobble;e.enable?t.wobble={angle:Math.random()*Math.PI*2,speed:a(e.speed)/360}:t.wobble={angle:0,speed:0},t.retina.wobbleDistance=a(e.distance)*this.container.retina.pixelRatio}isEnabled(t){return!t.destroyed&&!t.spawning&&t.options.wobble.enable}update(t,e){this.isEnabled(t)&&function(t,e){var i;if(!t.options.wobble.enable||!t.wobble)return;const o=t.wobble.speed*e.factor,s=(null!==(i=t.retina.wobbleDistance)&&void 0!==i?i:0)*e.factor/(1e3/60),n=2*Math.PI;t.wobble.angle+=o,t.wobble.angle>n&&(t.wobble.angle-=n),t.position.x+=s*Math.cos(t.wobble.angle),t.position.y+=s*Math.abs(Math.sin(t.wobble.angle))}(t,e)}}const gs=new class{constructor(){Ei.set(this,void 0),Oi.set(this,void 0),ki(this,Ei,!1,"f"),this.domArray=[],ki(this,Oi,new Ti(this),"f"),this.plugins=new ut(this)}init(){Mi(this,Ei,"f")||ki(this,Ei,!0,"f")}async loadFromArray(t,e,i){return Mi(this,Oi,"f").load(t,e,i)}async load(t,e){return Mi(this,Oi,"f").load(t,e)}async set(t,e,i){return Mi(this,Oi,"f").set(t,e,i)}async loadJSON(t,e,i){return Mi(this,Oi,"f").loadJSON(t,e,i)}async setJSON(t,e,i,o){return Mi(this,Oi,"f").setJSON(t,e,i,o)}setOnClickHandler(t){Mi(this,Oi,"f").setOnClickHandler(t)}dom(){return Mi(this,Oi,"f").dom()}domItem(t){return Mi(this,Oi,"f").domItem(t)}async refresh(){for(const t of this.dom())await t.refresh()}async addShape(t,e,i,o,s){let n;n="function"==typeof e?{afterEffect:o,destroy:s,draw:e,init:i}:e,this.plugins.addShapeDrawer(t,n),await this.refresh()}async addPreset(t,e,i=!1){this.plugins.addPreset(t,e,i),await this.refresh()}async addPlugin(t){this.plugins.addPlugin(t),await this.refresh()}async addPathGenerator(t,e){this.plugins.addPathGenerator(t,e),await this.refresh()}async addInteractor(t,e){this.plugins.addInteractor(t,e),await this.refresh()}async addParticleUpdater(t,e){this.plugins.addParticleUpdater(t,e),await this.refresh()}};gs.init();const{particlesJS:ms,pJSDom:bs}=(t=>{const e=(e,i)=>t.load(e,i);e.load=(e,i,o)=>{t.loadJSON(e,i).then(t=>{t&&o(t)}).catch(()=>{o(void 0)})},e.setOnClickHandler=e=>{t.setOnClickHandler(e)};return{particlesJS:e,pJSDom:t.dom()}})(gs);!async function(t){await ys(t),await async function(t){await t.addInteractor("externalTrail",t=>new uo(t))}(t),await async function(t){await t.addParticleUpdater("roll",()=>new Co)}(t),await async function(t){await t.addParticleUpdater("tilt",t=>new ws(t))}(t),await async function(t){await t.addParticleUpdater("wobble",t=>new fs(t))}(t),await async function(t){const e=new Di;await t.addPlugin(e)}(t),await async function(t){t.emitterShapeManager||(t.emitterShapeManager=new so(t)),t.addEmitterShape||(t.addEmitterShape=(e,i)=>{var o;null===(o=t.emitterShapeManager)||void 0===o||o.addShape(e,i)});const e=new ho(t);await t.addPlugin(e),t.addEmitterShape("circle",new Ni),t.addEmitterShape("square",new ao)}(t),await async function(t){f()||"SVGPathSeg"in window||await i.e("npm.tsparticles").then(i.t.bind(null,"3da5",7));const e=new xo;await t.addPlugin(e)}(t)}(gs)}}]); \ No newline at end of file diff --git a/container/context/dist/static/js/npm.tsparticles.0c0cc16f.js.gz b/container/context/dist/static/js/npm.tsparticles.0c0cc16f.js.gz new file mode 100644 index 00000000..1cc091a9 Binary files /dev/null and b/container/context/dist/static/js/npm.tsparticles.0c0cc16f.js.gz differ diff --git a/container/context/dist/static/js/npm.tsparticles.58602065.js b/container/context/dist/static/js/npm.tsparticles.58602065.js deleted file mode 100644 index bc8396ca..00000000 --- a/container/context/dist/static/js/npm.tsparticles.58602065.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([["npm.tsparticles"],{"3da5":function(t,e,i){"use strict";!function(){try{if("undefined"==typeof window)return;"SVGPathSeg"in window||(window.SVGPathSeg=function(t,e,i){this.pathSegType=t,this.pathSegTypeAsLetter=e,this._owningPathSegList=i},window.SVGPathSeg.prototype.classname="SVGPathSeg",window.SVGPathSeg.PATHSEG_UNKNOWN=0,window.SVGPathSeg.PATHSEG_CLOSEPATH=1,window.SVGPathSeg.PATHSEG_MOVETO_ABS=2,window.SVGPathSeg.PATHSEG_MOVETO_REL=3,window.SVGPathSeg.PATHSEG_LINETO_ABS=4,window.SVGPathSeg.PATHSEG_LINETO_REL=5,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS=6,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL=7,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS=8,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL=9,window.SVGPathSeg.PATHSEG_ARC_ABS=10,window.SVGPathSeg.PATHSEG_ARC_REL=11,window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS=12,window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL=13,window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS=14,window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL=15,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS=16,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL=17,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS=18,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL=19,window.SVGPathSeg.prototype._segmentChanged=function(){this._owningPathSegList&&this._owningPathSegList.segmentChanged(this)},window.SVGPathSegClosePath=function(t){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CLOSEPATH,"z",t)},window.SVGPathSegClosePath.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegClosePath.prototype.toString=function(){return"[object SVGPathSegClosePath]"},window.SVGPathSegClosePath.prototype._asPathString=function(){return this.pathSegTypeAsLetter},window.SVGPathSegClosePath.prototype.clone=function(){return new window.SVGPathSegClosePath(void 0)},window.SVGPathSegMovetoAbs=function(t,e,i){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_MOVETO_ABS,"M",t),this._x=e,this._y=i},window.SVGPathSegMovetoAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegMovetoAbs.prototype.toString=function(){return"[object SVGPathSegMovetoAbs]"},window.SVGPathSegMovetoAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegMovetoAbs.prototype.clone=function(){return new window.SVGPathSegMovetoAbs(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegMovetoAbs.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegMovetoAbs.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),window.SVGPathSegMovetoRel=function(t,e,i){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_MOVETO_REL,"m",t),this._x=e,this._y=i},window.SVGPathSegMovetoRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegMovetoRel.prototype.toString=function(){return"[object SVGPathSegMovetoRel]"},window.SVGPathSegMovetoRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegMovetoRel.prototype.clone=function(){return new window.SVGPathSegMovetoRel(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegMovetoRel.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegMovetoRel.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoAbs=function(t,e,i){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_ABS,"L",t),this._x=e,this._y=i},window.SVGPathSegLinetoAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoAbs.prototype.toString=function(){return"[object SVGPathSegLinetoAbs]"},window.SVGPathSegLinetoAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegLinetoAbs.prototype.clone=function(){return new window.SVGPathSegLinetoAbs(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegLinetoAbs.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegLinetoAbs.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoRel=function(t,e,i){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_REL,"l",t),this._x=e,this._y=i},window.SVGPathSegLinetoRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoRel.prototype.toString=function(){return"[object SVGPathSegLinetoRel]"},window.SVGPathSegLinetoRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegLinetoRel.prototype.clone=function(){return new window.SVGPathSegLinetoRel(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegLinetoRel.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegLinetoRel.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoCubicAbs=function(t,e,i,o,s,n,a){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS,"C",t),this._x=e,this._y=i,this._x1=o,this._y1=s,this._x2=n,this._y2=a},window.SVGPathSegCurvetoCubicAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoCubicAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicAbs]"},window.SVGPathSegCurvetoCubicAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y},window.SVGPathSegCurvetoCubicAbs.prototype.clone=function(){return new window.SVGPathSegCurvetoCubicAbs(void 0,this._x,this._y,this._x1,this._y1,this._x2,this._y2)},Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"x1",{get:function(){return this._x1},set:function(t){this._x1=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"y1",{get:function(){return this._y1},set:function(t){this._y1=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"x2",{get:function(){return this._x2},set:function(t){this._x2=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicAbs.prototype,"y2",{get:function(){return this._y2},set:function(t){this._y2=t,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoCubicRel=function(t,e,i,o,s,n,a){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL,"c",t),this._x=e,this._y=i,this._x1=o,this._y1=s,this._x2=n,this._y2=a},window.SVGPathSegCurvetoCubicRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoCubicRel.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicRel]"},window.SVGPathSegCurvetoCubicRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y},window.SVGPathSegCurvetoCubicRel.prototype.clone=function(){return new window.SVGPathSegCurvetoCubicRel(void 0,this._x,this._y,this._x1,this._y1,this._x2,this._y2)},Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"x1",{get:function(){return this._x1},set:function(t){this._x1=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"y1",{get:function(){return this._y1},set:function(t){this._y1=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"x2",{get:function(){return this._x2},set:function(t){this._x2=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicRel.prototype,"y2",{get:function(){return this._y2},set:function(t){this._y2=t,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoQuadraticAbs=function(t,e,i,o,s){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS,"Q",t),this._x=e,this._y=i,this._x1=o,this._y1=s},window.SVGPathSegCurvetoQuadraticAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoQuadraticAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticAbs]"},window.SVGPathSegCurvetoQuadraticAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x+" "+this._y},window.SVGPathSegCurvetoQuadraticAbs.prototype.clone=function(){return new window.SVGPathSegCurvetoQuadraticAbs(void 0,this._x,this._y,this._x1,this._y1)},Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype,"x1",{get:function(){return this._x1},set:function(t){this._x1=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticAbs.prototype,"y1",{get:function(){return this._y1},set:function(t){this._y1=t,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoQuadraticRel=function(t,e,i,o,s){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL,"q",t),this._x=e,this._y=i,this._x1=o,this._y1=s},window.SVGPathSegCurvetoQuadraticRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoQuadraticRel.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticRel]"},window.SVGPathSegCurvetoQuadraticRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x1+" "+this._y1+" "+this._x+" "+this._y},window.SVGPathSegCurvetoQuadraticRel.prototype.clone=function(){return new window.SVGPathSegCurvetoQuadraticRel(void 0,this._x,this._y,this._x1,this._y1)},Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype,"x1",{get:function(){return this._x1},set:function(t){this._x1=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticRel.prototype,"y1",{get:function(){return this._y1},set:function(t){this._y1=t,this._segmentChanged()},enumerable:!0}),window.SVGPathSegArcAbs=function(t,e,i,o,s,n,a,r){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_ARC_ABS,"A",t),this._x=e,this._y=i,this._r1=o,this._r2=s,this._angle=n,this._largeArcFlag=a,this._sweepFlag=r},window.SVGPathSegArcAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegArcAbs.prototype.toString=function(){return"[object SVGPathSegArcAbs]"},window.SVGPathSegArcAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._r1+" "+this._r2+" "+this._angle+" "+(this._largeArcFlag?"1":"0")+" "+(this._sweepFlag?"1":"0")+" "+this._x+" "+this._y},window.SVGPathSegArcAbs.prototype.clone=function(){return new window.SVGPathSegArcAbs(void 0,this._x,this._y,this._r1,this._r2,this._angle,this._largeArcFlag,this._sweepFlag)},Object.defineProperty(window.SVGPathSegArcAbs.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"r1",{get:function(){return this._r1},set:function(t){this._r1=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"r2",{get:function(){return this._r2},set:function(t){this._r2=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"angle",{get:function(){return this._angle},set:function(t){this._angle=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"largeArcFlag",{get:function(){return this._largeArcFlag},set:function(t){this._largeArcFlag=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcAbs.prototype,"sweepFlag",{get:function(){return this._sweepFlag},set:function(t){this._sweepFlag=t,this._segmentChanged()},enumerable:!0}),window.SVGPathSegArcRel=function(t,e,i,o,s,n,a,r){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_ARC_REL,"a",t),this._x=e,this._y=i,this._r1=o,this._r2=s,this._angle=n,this._largeArcFlag=a,this._sweepFlag=r},window.SVGPathSegArcRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegArcRel.prototype.toString=function(){return"[object SVGPathSegArcRel]"},window.SVGPathSegArcRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._r1+" "+this._r2+" "+this._angle+" "+(this._largeArcFlag?"1":"0")+" "+(this._sweepFlag?"1":"0")+" "+this._x+" "+this._y},window.SVGPathSegArcRel.prototype.clone=function(){return new window.SVGPathSegArcRel(void 0,this._x,this._y,this._r1,this._r2,this._angle,this._largeArcFlag,this._sweepFlag)},Object.defineProperty(window.SVGPathSegArcRel.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"r1",{get:function(){return this._r1},set:function(t){this._r1=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"r2",{get:function(){return this._r2},set:function(t){this._r2=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"angle",{get:function(){return this._angle},set:function(t){this._angle=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"largeArcFlag",{get:function(){return this._largeArcFlag},set:function(t){this._largeArcFlag=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegArcRel.prototype,"sweepFlag",{get:function(){return this._sweepFlag},set:function(t){this._sweepFlag=t,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoHorizontalAbs=function(t,e){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS,"H",t),this._x=e},window.SVGPathSegLinetoHorizontalAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoHorizontalAbs.prototype.toString=function(){return"[object SVGPathSegLinetoHorizontalAbs]"},window.SVGPathSegLinetoHorizontalAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x},window.SVGPathSegLinetoHorizontalAbs.prototype.clone=function(){return new window.SVGPathSegLinetoHorizontalAbs(void 0,this._x)},Object.defineProperty(window.SVGPathSegLinetoHorizontalAbs.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoHorizontalRel=function(t,e){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL,"h",t),this._x=e},window.SVGPathSegLinetoHorizontalRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoHorizontalRel.prototype.toString=function(){return"[object SVGPathSegLinetoHorizontalRel]"},window.SVGPathSegLinetoHorizontalRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x},window.SVGPathSegLinetoHorizontalRel.prototype.clone=function(){return new window.SVGPathSegLinetoHorizontalRel(void 0,this._x)},Object.defineProperty(window.SVGPathSegLinetoHorizontalRel.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoVerticalAbs=function(t,e){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS,"V",t),this._y=e},window.SVGPathSegLinetoVerticalAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoVerticalAbs.prototype.toString=function(){return"[object SVGPathSegLinetoVerticalAbs]"},window.SVGPathSegLinetoVerticalAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._y},window.SVGPathSegLinetoVerticalAbs.prototype.clone=function(){return new window.SVGPathSegLinetoVerticalAbs(void 0,this._y)},Object.defineProperty(window.SVGPathSegLinetoVerticalAbs.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),window.SVGPathSegLinetoVerticalRel=function(t,e){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL,"v",t),this._y=e},window.SVGPathSegLinetoVerticalRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegLinetoVerticalRel.prototype.toString=function(){return"[object SVGPathSegLinetoVerticalRel]"},window.SVGPathSegLinetoVerticalRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._y},window.SVGPathSegLinetoVerticalRel.prototype.clone=function(){return new window.SVGPathSegLinetoVerticalRel(void 0,this._y)},Object.defineProperty(window.SVGPathSegLinetoVerticalRel.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoCubicSmoothAbs=function(t,e,i,o,s){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS,"S",t),this._x=e,this._y=i,this._x2=o,this._y2=s},window.SVGPathSegCurvetoCubicSmoothAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoCubicSmoothAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicSmoothAbs]"},window.SVGPathSegCurvetoCubicSmoothAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y},window.SVGPathSegCurvetoCubicSmoothAbs.prototype.clone=function(){return new window.SVGPathSegCurvetoCubicSmoothAbs(void 0,this._x,this._y,this._x2,this._y2)},Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype,"x2",{get:function(){return this._x2},set:function(t){this._x2=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothAbs.prototype,"y2",{get:function(){return this._y2},set:function(t){this._y2=t,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoCubicSmoothRel=function(t,e,i,o,s){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL,"s",t),this._x=e,this._y=i,this._x2=o,this._y2=s},window.SVGPathSegCurvetoCubicSmoothRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoCubicSmoothRel.prototype.toString=function(){return"[object SVGPathSegCurvetoCubicSmoothRel]"},window.SVGPathSegCurvetoCubicSmoothRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x2+" "+this._y2+" "+this._x+" "+this._y},window.SVGPathSegCurvetoCubicSmoothRel.prototype.clone=function(){return new window.SVGPathSegCurvetoCubicSmoothRel(void 0,this._x,this._y,this._x2,this._y2)},Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype,"x2",{get:function(){return this._x2},set:function(t){this._x2=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoCubicSmoothRel.prototype,"y2",{get:function(){return this._y2},set:function(t){this._y2=t,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoQuadraticSmoothAbs=function(t,e,i){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS,"T",t),this._x=e,this._y=i},window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticSmoothAbs]"},window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype.clone=function(){return new window.SVGPathSegCurvetoQuadraticSmoothAbs(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothAbs.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),window.SVGPathSegCurvetoQuadraticSmoothRel=function(t,e,i){window.SVGPathSeg.call(this,window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL,"t",t),this._x=e,this._y=i},window.SVGPathSegCurvetoQuadraticSmoothRel.prototype=Object.create(window.SVGPathSeg.prototype),window.SVGPathSegCurvetoQuadraticSmoothRel.prototype.toString=function(){return"[object SVGPathSegCurvetoQuadraticSmoothRel]"},window.SVGPathSegCurvetoQuadraticSmoothRel.prototype._asPathString=function(){return this.pathSegTypeAsLetter+" "+this._x+" "+this._y},window.SVGPathSegCurvetoQuadraticSmoothRel.prototype.clone=function(){return new window.SVGPathSegCurvetoQuadraticSmoothRel(void 0,this._x,this._y)},Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothRel.prototype,"x",{get:function(){return this._x},set:function(t){this._x=t,this._segmentChanged()},enumerable:!0}),Object.defineProperty(window.SVGPathSegCurvetoQuadraticSmoothRel.prototype,"y",{get:function(){return this._y},set:function(t){this._y=t,this._segmentChanged()},enumerable:!0}),window.SVGPathElement.prototype.createSVGPathSegClosePath=function(){return new window.SVGPathSegClosePath(void 0)},window.SVGPathElement.prototype.createSVGPathSegMovetoAbs=function(t,e){return new window.SVGPathSegMovetoAbs(void 0,t,e)},window.SVGPathElement.prototype.createSVGPathSegMovetoRel=function(t,e){return new window.SVGPathSegMovetoRel(void 0,t,e)},window.SVGPathElement.prototype.createSVGPathSegLinetoAbs=function(t,e){return new window.SVGPathSegLinetoAbs(void 0,t,e)},window.SVGPathElement.prototype.createSVGPathSegLinetoRel=function(t,e){return new window.SVGPathSegLinetoRel(void 0,t,e)},window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicAbs=function(t,e,i,o,s,n){return new window.SVGPathSegCurvetoCubicAbs(void 0,t,e,i,o,s,n)},window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicRel=function(t,e,i,o,s,n){return new window.SVGPathSegCurvetoCubicRel(void 0,t,e,i,o,s,n)},window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticAbs=function(t,e,i,o){return new window.SVGPathSegCurvetoQuadraticAbs(void 0,t,e,i,o)},window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticRel=function(t,e,i,o){return new window.SVGPathSegCurvetoQuadraticRel(void 0,t,e,i,o)},window.SVGPathElement.prototype.createSVGPathSegArcAbs=function(t,e,i,o,s,n,a){return new window.SVGPathSegArcAbs(void 0,t,e,i,o,s,n,a)},window.SVGPathElement.prototype.createSVGPathSegArcRel=function(t,e,i,o,s,n,a){return new window.SVGPathSegArcRel(void 0,t,e,i,o,s,n,a)},window.SVGPathElement.prototype.createSVGPathSegLinetoHorizontalAbs=function(t){return new window.SVGPathSegLinetoHorizontalAbs(void 0,t)},window.SVGPathElement.prototype.createSVGPathSegLinetoHorizontalRel=function(t){return new window.SVGPathSegLinetoHorizontalRel(void 0,t)},window.SVGPathElement.prototype.createSVGPathSegLinetoVerticalAbs=function(t){return new window.SVGPathSegLinetoVerticalAbs(void 0,t)},window.SVGPathElement.prototype.createSVGPathSegLinetoVerticalRel=function(t){return new window.SVGPathSegLinetoVerticalRel(void 0,t)},window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothAbs=function(t,e,i,o){return new window.SVGPathSegCurvetoCubicSmoothAbs(void 0,t,e,i,o)},window.SVGPathElement.prototype.createSVGPathSegCurvetoCubicSmoothRel=function(t,e,i,o){return new window.SVGPathSegCurvetoCubicSmoothRel(void 0,t,e,i,o)},window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothAbs=function(t,e){return new window.SVGPathSegCurvetoQuadraticSmoothAbs(void 0,t,e)},window.SVGPathElement.prototype.createSVGPathSegCurvetoQuadraticSmoothRel=function(t,e){return new window.SVGPathSegCurvetoQuadraticSmoothRel(void 0,t,e)},"getPathSegAtLength"in window.SVGPathElement.prototype||(window.SVGPathElement.prototype.getPathSegAtLength=function(t){if(void 0===t||!isFinite(t))throw"Invalid arguments.";const e=document.createElementNS("http://www.w3.org/2000/svg","path");e.setAttribute("d",this.getAttribute("d"));let i=e.pathSegList.numberOfItems-1;if(i<=0)return 0;do{if(e.pathSegList.removeItem(i),t>e.getTotalLength())break;i--}while(i>0);return i})),"SVGPathSegList"in window&&"appendItem"in window.SVGPathSegList.prototype||(window.SVGPathSegList=function(t){this._pathElement=t,this._list=this._parsePath(this._pathElement.getAttribute("d")),this._mutationObserverConfig={attributes:!0,attributeFilter:["d"]},this._pathElementMutationObserver=new MutationObserver(this._updateListFromPathMutations.bind(this)),this._pathElementMutationObserver.observe(this._pathElement,this._mutationObserverConfig)},window.SVGPathSegList.prototype.classname="SVGPathSegList",Object.defineProperty(window.SVGPathSegList.prototype,"numberOfItems",{get:function(){return this._checkPathSynchronizedToList(),this._list.length},enumerable:!0}),Object.defineProperty(window.SVGPathSegList.prototype,"length",{get:function(){return this._checkPathSynchronizedToList(),this._list.length},enumerable:!0}),Object.defineProperty(window.SVGPathElement.prototype,"pathSegList",{get:function(){return this._pathSegList||(this._pathSegList=new window.SVGPathSegList(this)),this._pathSegList},enumerable:!0}),Object.defineProperty(window.SVGPathElement.prototype,"normalizedPathSegList",{get:function(){return this.pathSegList},enumerable:!0}),Object.defineProperty(window.SVGPathElement.prototype,"animatedPathSegList",{get:function(){return this.pathSegList},enumerable:!0}),Object.defineProperty(window.SVGPathElement.prototype,"animatedNormalizedPathSegList",{get:function(){return this.pathSegList},enumerable:!0}),window.SVGPathSegList.prototype._checkPathSynchronizedToList=function(){this._updateListFromPathMutations(this._pathElementMutationObserver.takeRecords())},window.SVGPathSegList.prototype._updateListFromPathMutations=function(t){if(!this._pathElement)return;let e=!1;t.forEach((function(t){"d"==t.attributeName&&(e=!0)})),e&&(this._list=this._parsePath(this._pathElement.getAttribute("d")))},window.SVGPathSegList.prototype._writeListToPath=function(){this._pathElementMutationObserver.disconnect(),this._pathElement.setAttribute("d",window.SVGPathSegList._pathSegArrayAsString(this._list)),this._pathElementMutationObserver.observe(this._pathElement,this._mutationObserverConfig)},window.SVGPathSegList.prototype.segmentChanged=function(t){this._writeListToPath()},window.SVGPathSegList.prototype.clear=function(){this._checkPathSynchronizedToList(),this._list.forEach((function(t){t._owningPathSegList=null})),this._list=[],this._writeListToPath()},window.SVGPathSegList.prototype.initialize=function(t){return this._checkPathSynchronizedToList(),this._list=[t],t._owningPathSegList=this,this._writeListToPath(),t},window.SVGPathSegList.prototype._checkValidIndex=function(t){if(isNaN(t)||t<0||t>=this.numberOfItems)throw"INDEX_SIZE_ERR"},window.SVGPathSegList.prototype.getItem=function(t){return this._checkPathSynchronizedToList(),this._checkValidIndex(t),this._list[t]},window.SVGPathSegList.prototype.insertItemBefore=function(t,e){return this._checkPathSynchronizedToList(),e>this.numberOfItems&&(e=this.numberOfItems),t._owningPathSegList&&(t=t.clone()),this._list.splice(e,0,t),t._owningPathSegList=this,this._writeListToPath(),t},window.SVGPathSegList.prototype.replaceItem=function(t,e){return this._checkPathSynchronizedToList(),t._owningPathSegList&&(t=t.clone()),this._checkValidIndex(e),this._list[e]=t,t._owningPathSegList=this,this._writeListToPath(),t},window.SVGPathSegList.prototype.removeItem=function(t){this._checkPathSynchronizedToList(),this._checkValidIndex(t);const e=this._list[t];return this._list.splice(t,1),this._writeListToPath(),e},window.SVGPathSegList.prototype.appendItem=function(t){return this._checkPathSynchronizedToList(),t._owningPathSegList&&(t=t.clone()),this._list.push(t),t._owningPathSegList=this,this._writeListToPath(),t},window.SVGPathSegList._pathSegArrayAsString=function(t){let e="",i=!0;return t.forEach((function(t){i?(i=!1,e+=t._asPathString()):e+=" "+t._asPathString()})),e},window.SVGPathSegList.prototype._parsePath=function(t){if(!t||0==t.length)return[];const e=this,i=function(){this.pathSegList=[]};i.prototype.appendSegment=function(t){this.pathSegList.push(t)};const o=function(t){this._string=t,this._currentIndex=0,this._endIndex=this._string.length,this._previousCommand=window.SVGPathSeg.PATHSEG_UNKNOWN,this._skipOptionalSpaces()};o.prototype._isCurrentSpace=function(){const t=this._string[this._currentIndex];return t<=" "&&(" "==t||"\n"==t||"\t"==t||"\r"==t||"\f"==t)},o.prototype._skipOptionalSpaces=function(){for(;this._currentIndex="0"&&t<="9")&&e!=window.SVGPathSeg.PATHSEG_CLOSEPATH?e==window.SVGPathSeg.PATHSEG_MOVETO_ABS?window.SVGPathSeg.PATHSEG_LINETO_ABS:e==window.SVGPathSeg.PATHSEG_MOVETO_REL?window.SVGPathSeg.PATHSEG_LINETO_REL:e:window.SVGPathSeg.PATHSEG_UNKNOWN},o.prototype.initialCommandIsMoveTo=function(){if(!this.hasMoreData())return!0;const t=this.peekSegmentType();return t==window.SVGPathSeg.PATHSEG_MOVETO_ABS||t==window.SVGPathSeg.PATHSEG_MOVETO_REL},o.prototype._parseNumber=function(){let t=0,e=0,i=1,o=0,s=1,n=1;const a=this._currentIndex;if(this._skipOptionalSpaces(),this._currentIndex"9")&&"."!=this._string.charAt(this._currentIndex))return;const r=this._currentIndex;for(;this._currentIndex="0"&&this._string.charAt(this._currentIndex)<="9";)this._currentIndex++;if(this._currentIndex!=r){let t=this._currentIndex-1,i=1;for(;t>=r;)e+=i*(this._string.charAt(t--)-"0"),i*=10}if(this._currentIndex=this._endIndex||this._string.charAt(this._currentIndex)<"0"||this._string.charAt(this._currentIndex)>"9")return;for(;this._currentIndex="0"&&this._string.charAt(this._currentIndex)<="9";)i*=10,o+=(this._string.charAt(this._currentIndex)-"0")/i,this._currentIndex+=1}if(this._currentIndex!=a&&this._currentIndex+1=this._endIndex||this._string.charAt(this._currentIndex)<"0"||this._string.charAt(this._currentIndex)>"9")return;for(;this._currentIndex="0"&&this._string.charAt(this._currentIndex)<="9";)t*=10,t+=this._string.charAt(this._currentIndex)-"0",this._currentIndex++}let l=e+o;return l*=s,t&&(l*=Math.pow(10,n*t)),a!=this._currentIndex?(this._skipOptionalSpacesOrDelimiter(),l):void 0},o.prototype._parseArcFlag=function(){if(this._currentIndex>=this._endIndex)return;let t=!1;const e=this._string.charAt(this._currentIndex++);if("0"==e)t=!1;else{if("1"!=e)return;t=!0}return this._skipOptionalSpacesOrDelimiter(),t},o.prototype.parseSegment=function(){const t=this._string[this._currentIndex];let i,o=this._pathSegTypeFromChar(t);if(o==window.SVGPathSeg.PATHSEG_UNKNOWN){if(this._previousCommand==window.SVGPathSeg.PATHSEG_UNKNOWN)return null;if(o=this._nextCommandHelper(t,this._previousCommand),o==window.SVGPathSeg.PATHSEG_UNKNOWN)return null}else this._currentIndex++;switch(this._previousCommand=o,o){case window.SVGPathSeg.PATHSEG_MOVETO_REL:return new window.SVGPathSegMovetoRel(e,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_MOVETO_ABS:return new window.SVGPathSegMovetoAbs(e,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_REL:return new window.SVGPathSegLinetoRel(e,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_ABS:return new window.SVGPathSegLinetoAbs(e,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_REL:return new window.SVGPathSegLinetoHorizontalRel(e,this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_HORIZONTAL_ABS:return new window.SVGPathSegLinetoHorizontalAbs(e,this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_REL:return new window.SVGPathSegLinetoVerticalRel(e,this._parseNumber());case window.SVGPathSeg.PATHSEG_LINETO_VERTICAL_ABS:return new window.SVGPathSegLinetoVerticalAbs(e,this._parseNumber());case window.SVGPathSeg.PATHSEG_CLOSEPATH:return this._skipOptionalSpaces(),new window.SVGPathSegClosePath(e);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_REL:return i={x1:this._parseNumber(),y1:this._parseNumber(),x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoCubicRel(e,i.x,i.y,i.x1,i.y1,i.x2,i.y2);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_ABS:return i={x1:this._parseNumber(),y1:this._parseNumber(),x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoCubicAbs(e,i.x,i.y,i.x1,i.y1,i.x2,i.y2);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_REL:return i={x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoCubicSmoothRel(e,i.x,i.y,i.x2,i.y2);case window.SVGPathSeg.PATHSEG_CURVETO_CUBIC_SMOOTH_ABS:return i={x2:this._parseNumber(),y2:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoCubicSmoothAbs(e,i.x,i.y,i.x2,i.y2);case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_REL:return i={x1:this._parseNumber(),y1:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoQuadraticRel(e,i.x,i.y,i.x1,i.y1);case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_ABS:return i={x1:this._parseNumber(),y1:this._parseNumber(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegCurvetoQuadraticAbs(e,i.x,i.y,i.x1,i.y1);case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL:return new window.SVGPathSegCurvetoQuadraticSmoothRel(e,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS:return new window.SVGPathSegCurvetoQuadraticSmoothAbs(e,this._parseNumber(),this._parseNumber());case window.SVGPathSeg.PATHSEG_ARC_REL:return i={x1:this._parseNumber(),y1:this._parseNumber(),arcAngle:this._parseNumber(),arcLarge:this._parseArcFlag(),arcSweep:this._parseArcFlag(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegArcRel(e,i.x,i.y,i.x1,i.y1,i.arcAngle,i.arcLarge,i.arcSweep);case window.SVGPathSeg.PATHSEG_ARC_ABS:return i={x1:this._parseNumber(),y1:this._parseNumber(),arcAngle:this._parseNumber(),arcLarge:this._parseArcFlag(),arcSweep:this._parseArcFlag(),x:this._parseNumber(),y:this._parseNumber()},new window.SVGPathSegArcAbs(e,i.x,i.y,i.x1,i.y1,i.arcAngle,i.arcLarge,i.arcSweep);default:throw"Unknown path seg type."}};const s=new i,n=new o(t);if(!n.initialCommandIsMoveTo())return[];for(;n.hasMoreData();){const t=n.parseSegment();if(!t)return[];s.appendSegment(t)}return s.pathSegList})}catch(t){console.warn("An error occurred in tsParticles pathseg polyfill. If the Polygon Mask is not working, please open an issue here: https://github.com/matteobruni/tsparticles",t)}}()},ebf8:function(t,e,i){"use strict";function o(t,e,i){return Math.min(Math.max(t,e),i)}function s(t,e,i,o){return Math.floor((t*i+e*o)/(i+o))}function n(t){const e=l(t);let i=r(t);return e===i&&(i=0),Math.random()*(e-i)+i}function a(t){return"number"==typeof t?t:n(t)}function r(t){return"number"==typeof t?t:t.min}function l(t){return"number"==typeof t?t:t.max}function c(t,e){if(t===e||void 0===e&&"number"==typeof t)return t;const i=r(t),o=l(t);return void 0!==e?{min:Math.min(i,e),max:Math.max(o,e)}:c(i,o)}function h(t){const e=t.random,{enable:i,minimumValue:o}="boolean"==typeof e?{enable:e,minimumValue:0}:e;return a(i?c(t.value,o):t.value)}function d(t,e){const i=t.x-e.x,o=t.y-e.y;return{dx:i,dy:o,distance:Math.sqrt(i*i+o*o)}}function u(t,e){return d(t,e).distance}function p(t,e,i,o){return yt.create(t.x*(i-o)/(i+o)+2*e.x*o/(i+o),t.y)}function v(t,e){switch(e){case"ease-out-quad":return 1-(1-t)**2;case"ease-out-cubic":return 1-(1-t)**3;case"ease-out-quart":return 1-(1-t)**4;case"ease-out-quint":return 1-(1-t)**5;case"ease-out-expo":return 1===t?1:1-Math.pow(2,-10*t);case"ease-out-sine":return Math.sin(t*Math.PI/2);case"ease-out-back":{const e=1.70158;return 1+(e+1)*Math.pow(t-1,3)+e*Math.pow(t-1,2)}case"ease-out-circ":return Math.sqrt(1-Math.pow(t-1,2));default:return t}}function y(t,e,i,o,s,n){const a={bounced:!1};return e.min>=o.min&&e.min<=o.max&&e.max>=o.min&&e.max<=o.max&&(t.max>=i.min&&t.max<=(i.max+i.min)/2&&s>0||t.min<=i.max&&t.min>(i.max+i.min)/2&&s<0)&&(a.velocity=s*-n,a.bounced=!0),a}function w(t,e){if(e instanceof Array){for(const i of e)if(t.matches(i))return!0;return!1}return t.matches(e)}function f(){return"undefined"==typeof window||!window||void 0===window.document||!window.document}function g(t,e){return t===e||e instanceof Array&&e.indexOf(t)>-1}async function m(t){var e,i;try{await document.fonts.load(`${null!==(e=t.weight)&&void 0!==e?e:"400"} 36px '${null!==(i=t.font)&&void 0!==i?i:"Verdana"}'`)}catch(t){}}function b(t,e,i=!0){return t[void 0!==e&&i?e%t.length:function(t){return Math.floor(Math.random()*t.length)}(t)]}function S(t,e,i,o){return function(t,e,i){let o=!0;i&&"bottom"!==i||(o=t.top0);!o||i&&"right"!==i||(o=t.left0);return o}(P(t,null!=i?i:0),e,o)}function P(t,e){return{bottom:t.y+e,left:t.x-e,right:t.x+e,top:t.y-e}}function _(t,...e){for(const i of e){if(null==i)continue;if("object"!=typeof i){t=i;continue}const e=Array.isArray(i);!e||"object"==typeof t&&t&&Array.isArray(t)?e||"object"==typeof t&&t&&!Array.isArray(t)||(t={}):t=[];for(const e in i){if("__proto__"===e)continue;const o=i[e],s="object"==typeof o,n=t;n[e]=s&&Array.isArray(o)?o.map(t=>_(n[e],t)):_(n[e],o)}}return t}function x(t,e){return e instanceof Array?!!e.find(e=>e.enable&&g(t,e.mode)):g(t,e.mode)}function C(t,e,i){if(e instanceof Array)for(const o of e){const e=o.mode;o.enable&&g(t,e)&&A(o,i)}else{const o=e.mode;e.enable&&g(t,o)&&A(e,i)}}function A(t,e){const i=t.selectors;if(i instanceof Array)for(const o of i)e(o,t);else e(i,t)}function V(t,e){if(e&&t)return t instanceof Array?t.find(t=>w(e,t.selectors)):w(e,t.selectors)?t:void 0}function G(t){return{position:t.getPosition(),radius:t.getRadius(),mass:t.getMass(),velocity:t.velocity,factor:yt.create(h(t.options.bounce.horizontal),h(t.options.bounce.vertical))}}function T(t,e){const{x:i,y:o}=t.velocity.sub(e.velocity),[s,n]=[t.position,e.position],{dx:a,dy:r}=d(n,s);if(i*a+o*r>=0){const i=-Math.atan2(r,a),o=t.mass,s=e.mass,n=t.velocity.rotate(i),l=e.velocity.rotate(i),c=p(n,l,o,s),h=p(l,n,o,s),d=c.rotate(-i),u=h.rotate(-i);t.velocity.x=d.x*t.factor.x,t.velocity.y=d.y*t.factor.y,e.velocity.x=u.x*e.factor.x,e.velocity.y=u.y*e.factor.y}}function E(t,e){const i=P(t.getPosition(),t.getRadius()),o=y({min:i.left,max:i.right},{min:i.top,max:i.bottom},{min:e.left,max:e.right},{min:e.top,max:e.bottom},t.velocity.x,h(t.options.bounce.horizontal));o.bounced&&(void 0!==o.velocity&&(t.velocity.x=o.velocity),void 0!==o.position&&(t.position.x=o.position));const s=y({min:i.top,max:i.bottom},{min:i.left,max:i.right},{min:e.top,max:e.bottom},{min:e.left,max:e.right},t.velocity.y,h(t.options.bounce.vertical));s.bounced&&(void 0!==s.velocity&&(t.velocity.y=s.velocity),void 0!==s.position&&(t.position.y=s.position))}function O(t,e,i){let o=i;return o<0&&(o+=1),o>1&&(o-=1),o<1/6?t+6*(e-t)*o:o<.5?e:o<2/3?t+(e-t)*(2/3-o)*6:t}function k(t){if(t.startsWith("rgb")){const e=/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(,\s*([\d.]+)\s*)?\)/i.exec(t);return e?{a:e.length>4?parseFloat(e[5]):1,b:parseInt(e[3],10),g:parseInt(e[2],10),r:parseInt(e[1],10)}:void 0}if(t.startsWith("hsl")){const e=/hsla?\(\s*(\d+)\s*,\s*(\d+)%\s*,\s*(\d+)%\s*(,\s*([\d.]+)\s*)?\)/i.exec(t);return e?function(t){const e=L(t);return{a:t.a,b:e.b,g:e.g,r:e.r}}({a:e.length>4?parseFloat(e[5]):1,h:parseInt(e[1],10),l:parseInt(e[3],10),s:parseInt(e[2],10)}):void 0}if(t.startsWith("hsv")){const e=/hsva?\(\s*(\d+)°\s*,\s*(\d+)%\s*,\s*(\d+)%\s*(,\s*([\d.]+)\s*)?\)/i.exec(t);return e?function(t){const e=I(t);return{a:t.a,b:e.b,g:e.g,r:e.r}}({a:e.length>4?parseFloat(e[5]):1,h:parseInt(e[1],10),s:parseInt(e[2],10),v:parseInt(e[3],10)}):void 0}{const e=/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,i=t.replace(e,(t,e,i,o,s)=>e+e+i+i+o+o+(void 0!==s?s+s:"")),o=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i.exec(i);return o?{a:void 0!==o[4]?parseInt(o[4],16)/255:1,b:parseInt(o[3],16),g:parseInt(o[2],16),r:parseInt(o[1],16)}:void 0}}function M(t,e,i=!0){var o,s,n;if(void 0===t)return;const a="string"==typeof t?{value:t}:t;let r;if("string"==typeof a.value)r=a.value===K.randomColorValue?H():function(t){return k(t)}(a.value);else if(a.value instanceof Array){r=M({value:b(a.value,e,i)})}else{const t=a.value,e=null!==(o=t.rgb)&&void 0!==o?o:a.value;if(void 0!==e.r)r=e;else{const e=null!==(s=t.hsl)&&void 0!==s?s:a.value;if(void 0!==e.h&&void 0!==e.l)r=L(e);else{const e=null!==(n=t.hsv)&&void 0!==n?n:a.value;void 0!==e.h&&void 0!==e.v&&(r=I(e))}}}return r}function R(t,e,i=!0){const o=M(t,e,i);return void 0!==o?z(o):void 0}function z(t){const e=t.r/255,i=t.g/255,o=t.b/255,s=Math.max(e,i,o),n=Math.min(e,i,o),a={h:0,l:(s+n)/2,s:0};return s!=n&&(a.s=a.l<.5?(s-n)/(s+n):(s-n)/(2-s-n),a.h=e===s?(i-o)/(s-n):a.h=i===s?2+(o-e)/(s-n):4+(e-i)/(s-n)),a.l*=100,a.s*=100,a.h*=60,a.h<0&&(a.h+=360),a}function L(t){const e={b:0,g:0,r:0},i={h:t.h/360,l:t.l/100,s:t.s/100};if(0===i.s)e.b=i.l,e.g=i.l,e.r=i.l;else{const t=i.l<.5?i.l*(1+i.s):i.l+i.s-i.l*i.s,o=2*i.l-t;e.r=O(o,t,i.h+1/3),e.g=O(o,t,i.h),e.b=O(o,t,i.h-1/3)}return e.r=Math.floor(255*e.r),e.g=Math.floor(255*e.g),e.b=Math.floor(255*e.b),e}function I(t){const e={b:0,g:0,r:0},i=t.h/60,o=t.s/100,s=t.v/100,n=s*o,a=n*(1-Math.abs(i%2-1));let r;if(i>=0&&i<=1?r={r:n,g:a,b:0}:i>1&&i<=2?r={r:a,g:n,b:0}:i>2&&i<=3?r={r:0,g:n,b:a}:i>3&&i<=4?r={r:0,g:a,b:n}:i>4&&i<=5?r={r:a,g:0,b:n}:i>5&&i<=6&&(r={r:n,g:0,b:a}),r){const t=s-n;e.r=Math.floor(255*(r.r+t)),e.g=Math.floor(255*(r.g+t)),e.b=Math.floor(255*(r.b+t))}return e}function H(t){const e=null!=t?t:0;return{b:Math.floor(n(c(e,256))),g:Math.floor(n(c(e,256))),r:Math.floor(n(c(e,256)))}}function D(t,e){return`rgba(${t.r}, ${t.g}, ${t.b}, ${null!=e?e:1})`}function N(t,e){return`hsla(${t.h}, ${t.s}%, ${t.l}%, ${null!=e?e:1})`}function j(t,e,i,o){let n=t,a=e;return void 0===n.r&&(n=L(t)),void 0===a.r&&(a=L(e)),{b:s(n.b,a.b,i,o),g:s(n.g,a.g,i,o),r:s(n.r,a.r,i,o)}}function F(t,e,i){var o,s;if(i===K.randomColorValue)return H();if("mid"!==i)return i;{const i=null!==(o=t.getFillColor())&&void 0!==o?o:t.getStrokeColor(),n=null!==(s=null==e?void 0:e.getFillColor())&&void 0!==s?s:null==e?void 0:e.getStrokeColor();if(i&&n&&e)return j(i,n,t.getRadius(),e.getRadius());{const t=null!=i?i:n;if(t)return L(t)}}}function B(t,e,i){const o="string"==typeof t?t:t.value;return o===K.randomColorValue?i?M({value:o}):e?K.randomColorValue:K.midColorValue:M({value:o})}function q(t){return void 0!==t?{h:t.h.value,s:t.s.value,l:t.l.value}:void 0}function U(t,e,i){const o={h:{enable:!1,value:t.h},s:{enable:!1,value:t.s},l:{enable:!1,value:t.l}};return e&&(W(o.h,e.h,i),W(o.s,e.s,i),W(o.l,e.l,i)),o}function W(t,e,i){if(t.enable=e.enable,t.enable){if(t.velocity=e.speed/100*i,e.sync)return;t.status=0,t.velocity*=Math.random(),t.value&&(t.value*=Math.random())}else t.velocity=0}function Q(t,e,i){t.beginPath(),t.moveTo(e.x,e.y),t.lineTo(i.x,i.y),t.closePath()}function $(t,e){t.clearRect(0,0,e.width,e.height)}i.d(e,"a",(function(){return gs}));class Z{constructor(t,e){this.position={x:t,y:e}}}class X extends Z{constructor(t,e,i){super(t,e),this.radius=i}contains(t){return u(t,this.position)<=this.radius}intersects(t){const e=t,i=t,o=this.position,s=t.position,n=Math.abs(s.x-o.x),a=Math.abs(s.y-o.y),r=this.radius;if(void 0!==i.radius){return r+i.radius>Math.sqrt(n*n+a+a)}if(void 0!==e.size){const t=e.size.width,i=e.size.height,o=Math.pow(n-t,2)+Math.pow(a-i,2);return!(n>r+t||a>r+i)&&(n<=t||a<=i||o<=r*r)}return!1}}class J extends Z{constructor(t,e,i,o){super(t,e),this.size={height:o,width:i}}contains(t){const e=this.size.width,i=this.size.height,o=this.position;return t.x>=o.x&&t.x<=o.x+e&&t.y>=o.y&&t.y<=o.y+i}intersects(t){const e=t,i=t,o=this.size.width,s=this.size.height,n=this.position,a=t.position;if(void 0!==i.radius)return i.intersects(this);if(void 0!==e.size){const t=e.size,i=t.width,r=t.height;return a.xn.x&&a.yn.y}return!1}}class Y extends X{constructor(t,e,i,o){super(t,e,i),this.canvasSize=o,this.canvasSize={height:o.height,width:o.width}}contains(t){if(super.contains(t))return!0;const e={x:t.x-this.canvasSize.width,y:t.y};if(super.contains(e))return!0;const i={x:t.x-this.canvasSize.width,y:t.y-this.canvasSize.height};if(super.contains(i))return!0;const o={x:t.x,y:t.y-this.canvasSize.height};return super.contains(o)}intersects(t){if(super.intersects(t))return!0;const e=t,i=t,o={x:t.position.x-this.canvasSize.width,y:t.position.y-this.canvasSize.height};if(void 0!==i.radius){const t=new X(o.x,o.y,2*i.radius);return super.intersects(t)}if(void 0!==e.size){const t=new J(o.x,o.y,2*e.size.width,2*e.size.height);return super.intersects(t)}return!1}}class K{}function tt(t,e,i,o,s){if(o){let o={passive:!0};"boolean"==typeof s?o.capture=s:void 0!==s&&(o=s),t.addEventListener(e,i,o)}else{const o=s;t.removeEventListener(e,i,o)}}K.generatedAttribute="generated",K.randomColorValue="random",K.midColorValue="mid",K.touchEndEvent="touchend",K.mouseDownEvent="mousedown",K.mouseUpEvent="mouseup",K.mouseMoveEvent="mousemove",K.touchStartEvent="touchstart",K.touchMoveEvent="touchmove",K.mouseLeaveEvent="mouseleave",K.mouseOutEvent="mouseout",K.touchCancelEvent="touchcancel",K.resizeEvent="resize",K.visibilityChangeEvent="visibilitychange",K.noPolygonDataLoaded="No polygon data loaded.",K.noPolygonFound="No polygon found, you need to specify SVG url in config.";class et{constructor(t){this.container=t,this.canPush=!0,this.mouseMoveHandler=t=>this.mouseTouchMove(t),this.touchStartHandler=t=>this.mouseTouchMove(t),this.touchMoveHandler=t=>this.mouseTouchMove(t),this.touchEndHandler=()=>this.mouseTouchFinish(),this.mouseLeaveHandler=()=>this.mouseTouchFinish(),this.touchCancelHandler=()=>this.mouseTouchFinish(),this.touchEndClickHandler=t=>this.mouseTouchClick(t),this.mouseUpHandler=t=>this.mouseTouchClick(t),this.mouseDownHandler=()=>this.mouseDown(),this.visibilityChangeHandler=()=>this.handleVisibilityChange(),this.themeChangeHandler=t=>this.handleThemeChange(t),this.oldThemeChangeHandler=t=>this.handleThemeChange(t),this.resizeHandler=()=>this.handleWindowResize()}addListeners(){this.manageListeners(!0)}removeListeners(){this.manageListeners(!1)}manageListeners(t){var e;const i=this.container,o=i.actualOptions,s=o.interactivity.detectsOn;let n=K.mouseLeaveEvent;if("window"===s)i.interactivity.element=window,n=K.mouseOutEvent;else if("parent"===s&&i.canvas.element){const t=i.canvas.element;i.interactivity.element=null!==(e=t.parentElement)&&void 0!==e?e:t.parentNode}else i.interactivity.element=i.canvas.element;const a=!f()&&"undefined"!=typeof matchMedia&&matchMedia("(prefers-color-scheme: dark)");a&&(void 0!==a.addEventListener?tt(a,"change",this.themeChangeHandler,t):void 0!==a.addListener&&(t?a.addListener(this.oldThemeChangeHandler):a.removeListener(this.oldThemeChangeHandler)));const r=i.interactivity.element;if(!r)return;const l=r;(o.interactivity.events.onHover.enable||o.interactivity.events.onClick.enable)&&(tt(r,K.mouseMoveEvent,this.mouseMoveHandler,t),tt(r,K.touchStartEvent,this.touchStartHandler,t),tt(r,K.touchMoveEvent,this.touchMoveHandler,t),o.interactivity.events.onClick.enable?(tt(r,K.touchEndEvent,this.touchEndClickHandler,t),tt(r,K.mouseUpEvent,this.mouseUpHandler,t),tt(r,K.mouseDownEvent,this.mouseDownHandler,t)):tt(r,K.touchEndEvent,this.touchEndHandler,t),tt(r,n,this.mouseLeaveHandler,t),tt(r,K.touchCancelEvent,this.touchCancelHandler,t)),i.canvas.element&&(i.canvas.element.style.pointerEvents=l===i.canvas.element?"initial":"none"),o.interactivity.events.resize&&("undefined"!=typeof ResizeObserver?this.resizeObserver&&!t?(i.canvas.element&&this.resizeObserver.unobserve(i.canvas.element),this.resizeObserver.disconnect(),delete this.resizeObserver):!this.resizeObserver&&t&&i.canvas.element&&(this.resizeObserver=new ResizeObserver(t=>{t.find(t=>t.target===i.canvas.element)&&this.handleWindowResize()}),this.resizeObserver.observe(i.canvas.element)):tt(window,K.resizeEvent,this.resizeHandler,t)),document&&tt(document,K.visibilityChangeEvent,this.visibilityChangeHandler,t,!1)}handleWindowResize(){this.resizeTimeout&&(clearTimeout(this.resizeTimeout),delete this.resizeTimeout),this.resizeTimeout=setTimeout(async()=>{var t;return await(null===(t=this.container.canvas)||void 0===t?void 0:t.windowResize())},500)}handleVisibilityChange(){const t=this.container,e=t.actualOptions;this.mouseTouchFinish(),e.pauseOnBlur&&((null===document||void 0===document?void 0:document.hidden)?(t.pageHidden=!0,t.pause()):(t.pageHidden=!1,t.getAnimationStatus()?t.play(!0):t.draw(!0)))}mouseDown(){const t=this.container.interactivity;if(t){const e=t.mouse;e.clicking=!0,e.downPosition=e.position}}mouseTouchMove(t){var e,i,o,s,n,a,r;const l=this.container,c=l.actualOptions;if(void 0===(null===(e=l.interactivity)||void 0===e?void 0:e.element))return;let h;l.interactivity.mouse.inside=!0;const d=l.canvas.element;if(t.type.startsWith("mouse")){this.canPush=!0;const e=t;if(l.interactivity.element===window){if(d){const t=d.getBoundingClientRect();h={x:e.clientX-t.left,y:e.clientY-t.top}}}else if("parent"===c.interactivity.detectsOn){const t=e.target,s=e.currentTarget,n=l.canvas.element;if(t&&s&&n){const i=t.getBoundingClientRect(),o=s.getBoundingClientRect(),a=n.getBoundingClientRect();h={x:e.offsetX+2*i.left-(o.left+a.left),y:e.offsetY+2*i.top-(o.top+a.top)}}else h={x:null!==(i=e.offsetX)&&void 0!==i?i:e.clientX,y:null!==(o=e.offsetY)&&void 0!==o?o:e.clientY}}else e.target===l.canvas.element&&(h={x:null!==(s=e.offsetX)&&void 0!==s?s:e.clientX,y:null!==(n=e.offsetY)&&void 0!==n?n:e.clientY})}else{this.canPush="touchmove"!==t.type;const e=t,i=e.touches[e.touches.length-1],o=null==d?void 0:d.getBoundingClientRect();h={x:i.clientX-(null!==(a=null==o?void 0:o.left)&&void 0!==a?a:0),y:i.clientY-(null!==(r=null==o?void 0:o.top)&&void 0!==r?r:0)}}const u=l.retina.pixelRatio;h&&(h.x*=u,h.y*=u),l.interactivity.mouse.position=h,l.interactivity.status=K.mouseMoveEvent}mouseTouchFinish(){const t=this.container.interactivity;if(void 0===t)return;const e=t.mouse;delete e.position,delete e.clickPosition,delete e.downPosition,t.status=K.mouseLeaveEvent,e.inside=!1,e.clicking=!1}mouseTouchClick(t){const e=this.container,i=e.actualOptions,o=e.interactivity.mouse;o.inside=!0;let s=!1;const n=o.position;if(void 0!==n&&i.interactivity.events.onClick.enable){for(const[,t]of e.plugins)if(void 0!==t.clickPositionValid&&(s=t.clickPositionValid(n),s))break;s||this.doMouseTouchClick(t),o.clicking=!1}}doMouseTouchClick(t){const e=this.container,i=e.actualOptions;if(this.canPush){const t=e.interactivity.mouse.position;if(!t)return;e.interactivity.mouse.clickPosition={x:t.x,y:t.y},e.interactivity.mouse.clickTime=(new Date).getTime();const o=i.interactivity.events.onClick;if(o.mode instanceof Array)for(const t of o.mode)this.handleClickMode(t);else this.handleClickMode(o.mode)}"touchend"===t.type&&setTimeout(()=>this.mouseTouchFinish(),500)}handleThemeChange(t){const e=t.matches?this.container.options.defaultDarkTheme:this.container.options.defaultLightTheme,i=this.container.options.themes.find(t=>t.name===e);i&&i.default.auto&&this.container.loadTheme(e)}handleClickMode(t){const e=this.container,i=e.actualOptions,o=i.interactivity.modes.push.quantity,s=i.interactivity.modes.remove.quantity;switch(t){case"push":if(o>0){const t=b([void 0,...i.interactivity.modes.push.groups]),s=void 0!==t?e.actualOptions.particles.groups[t]:void 0;e.particles.push(o,e.interactivity.mouse,s,t)}break;case"remove":e.particles.removeQuantity(s);break;case"bubble":e.bubble.clicking=!0;break;case"repulse":e.repulse.clicking=!0,e.repulse.count=0;for(const t of e.repulse.particles)t.velocity.setTo(t.initialVelocity);e.repulse.particles=[],e.repulse.finish=!1,setTimeout(()=>{e.destroyed||(e.repulse.clicking=!1)},1e3*i.interactivity.modes.repulse.duration);break;case"attract":e.attract.clicking=!0,e.attract.count=0;for(const t of e.attract.particles)t.velocity.setTo(t.initialVelocity);e.attract.particles=[],e.attract.finish=!1,setTimeout(()=>{e.destroyed||(e.attract.clicking=!1)},1e3*i.interactivity.modes.attract.duration);break;case"pause":e.getAnimationStatus()?e.pause():e.play()}for(const[,i]of e.plugins)i.handleClickMode&&i.handleClickMode(t)}}class it{constructor(t){this.container=t,this.type=0}}class ot{constructor(t){this.container=t}nextFrame(t){var e;try{const i=this.container;if(void 0!==i.lastFrameTime&&t1e3)return void i.draw(!1);if(i.particles.draw(s),i.duration>0&&i.lifeTime>i.duration)return void i.destroy();i.getAnimationStatus()&&i.draw(!1)}catch(t){console.error("tsParticles error in animation loop",t)}}}var st,nt=function(t,e,i,o,s){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?s.call(t,i):s?s.value=i:e.set(t,i),i},at=function(t,e,i,o){if("a"===i&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?o:"a"===i?o.call(t):o?o.value:e.get(t)};class rt{constructor(t,e){this.container=e,st.set(this,void 0),nt(this,st,t,"f"),this.externalInteractors=[],this.particleInteractors=[],this.init()}init(){const t=at(this,st,"f").plugins.getInteractors(this.container,!0);this.externalInteractors=[],this.particleInteractors=[];for(const e of t)switch(e.type){case 0:this.externalInteractors.push(e);break;case 1:this.particleInteractors.push(e)}}externalInteract(t){for(const e of this.externalInteractors)e.isEnabled()&&e.interact(t)}particlesInteract(t,e){for(const e of this.externalInteractors)e.reset(t);for(const i of this.particleInteractors)i.isEnabled(t)&&i.interact(t,e)}}st=new WeakMap;class lt{constructor(t){this.container=t,this.type=1}}class ct{constructor(t){this.container=t}move(t,e){t.destroyed||(this.moveParticle(t,e),this.moveParallax(t))}moveParticle(t,e){var i,o,s,n,r;const c=t.options,h=c.move;if(!h.enable)return;const u=this.container,p=this.getProximitySpeedFactor(t),v=(null!==(i=(n=t.retina).moveSpeed)&&void 0!==i?i:n.moveSpeed=a(h.speed)*u.retina.pixelRatio)*u.retina.reduceFactor,y=null!==(o=(r=t.retina).moveDrift)&&void 0!==o?o:r.moveDrift=a(t.options.move.drift)*u.retina.pixelRatio,w=l(c.size.value)*u.retina.pixelRatio,f=v*((h.size?t.getRadius()/w:1)*p*(e.factor||1)/2);this.applyPath(t,e);const g=h.gravity,m=g.enable&&g.inverse?-1:1;g.enable&&f&&(t.velocity.y+=m*(g.acceleration*e.factor)/(60*f)),y&&f&&(t.velocity.x+=y*e.factor/(60*f));const b=t.moveDecay;1!=b&&t.velocity.multTo(b);const S=t.velocity.mult(f),P=null!==(s=t.retina.maxSpeed)&&void 0!==s?s:u.retina.maxSpeed;g.enable&&g.maxSpeed>0&&(!g.inverse&&S.y>=0&&S.y>=P||g.inverse&&S.y<=0&&S.y<=-P)&&(S.y=m*P,f&&(t.velocity.y=S.y/f));const _=t.options.zIndex,x=(1-t.zIndexFactor)**_.velocityRate;h.spin.enable?this.spin(t,f):(1!=x&&S.multTo(x),t.position.addTo(S),h.vibrate&&(t.position.x+=Math.sin(t.position.x*Math.cos(t.position.y)),t.position.y+=Math.cos(t.position.y*Math.sin(t.position.x)))),function(t){const e=t.initialPosition,{dx:i,dy:o}=d(e,t.position),s=Math.abs(i),n=Math.abs(o),a=t.retina.maxDistance.horizontal,r=t.retina.maxDistance.vertical;if(a||r)if((a&&s>=a||r&&n>=r)&&!t.misplaced)t.misplaced=!!a&&s>a||!!r&&n>r,a&&(t.velocity.x=t.velocity.y/2-t.velocity.x),r&&(t.velocity.y=t.velocity.x/2-t.velocity.y);else if((!a||se.x&&o.x>0)&&(o.x*=-Math.random()),r&&(i.ye.y&&o.y>0)&&(o.y*=-Math.random())}}(t)}spin(t,e){const i=this.container;if(!t.spin)return;const o={x:"clockwise"===t.spin.direction?Math.cos:Math.sin,y:"clockwise"===t.spin.direction?Math.sin:Math.cos};t.position.x=t.spin.center.x+t.spin.radius*o.x(t.spin.angle),t.position.y=t.spin.center.y+t.spin.radius*o.y(t.spin.angle),t.spin.radius+=t.spin.acceleration;const s=Math.max(i.canvas.size.width,i.canvas.size.height);t.spin.radius>s/2?(t.spin.radius=s/2,t.spin.acceleration*=-1):t.spin.radius<0&&(t.spin.radius=0,t.spin.acceleration*=-1),t.spin.angle+=e/100*(1-t.spin.radius/s)}applyPath(t,e){const i=t.options.move.path;if(!i.enable)return;const s=this.container;if(t.lastPathTime<=t.pathDelay)return void(t.lastPathTime+=e.value);const n=s.pathGenerator.generate(t);t.velocity.addTo(n),i.clamp&&(t.velocity.x=o(t.velocity.x,-1,1),t.velocity.y=o(t.velocity.y,-1,1)),t.lastPathTime-=t.pathDelay}moveParallax(t){const e=this.container,i=e.actualOptions;if(f()||!i.interactivity.events.onHover.parallax.enable)return;const o=i.interactivity.events.onHover.parallax.force,s=e.interactivity.mouse.position;if(!s)return;const n=e.canvas.size.width/2,a=e.canvas.size.height/2,r=i.interactivity.events.onHover.parallax.smooth,l=t.getRadius()/o,c=(s.x-n)*l,h=(s.y-a)*l;t.offset.x+=(c-t.offset.x)/r,t.offset.y+=(h-t.offset.y)/r}getProximitySpeedFactor(t){const e=this.container,i=e.actualOptions;if(!g("slow",i.interactivity.events.onHover.mode))return 1;const o=this.container.interactivity.mouse.position;if(!o)return 1;const s=u(o,t.getPosition()),n=e.retina.slowModeRadius;if(s>n)return 1;return(s/n||0)/i.interactivity.modes.slow.factor}}var ht,dt=function(t,e,i,o,s){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?s.call(t,i):s?s.value=i:e.set(t,i),i};class ut{constructor(t){ht.set(this,void 0),dt(this,ht,t,"f"),this.plugins=[],this.interactorsInitializers=new Map,this.updatersInitializers=new Map,this.interactors=new Map,this.updaters=new Map,this.presets=new Map,this.drawers=new Map,this.pathGenerators=new Map}getPlugin(t){return this.plugins.find(e=>e.id===t)}addPlugin(t){this.getPlugin(t.id)||this.plugins.push(t)}getAvailablePlugins(t){const e=new Map;for(const i of this.plugins)i.needsPlugin(t.actualOptions)&&e.set(i.id,i.getPlugin(t));return e}loadOptions(t,e){for(const i of this.plugins)i.loadOptions(t,e)}getPreset(t){return this.presets.get(t)}addPreset(t,e,i=!1){!i&&this.getPreset(t)||this.presets.set(t,e)}addShapeDrawer(t,e){this.getShapeDrawer(t)||this.drawers.set(t,e)}getShapeDrawer(t){return this.drawers.get(t)}getSupportedShapes(){return this.drawers.keys()}getPathGenerator(t){return this.pathGenerators.get(t)}addPathGenerator(t,e){this.getPathGenerator(t)||this.pathGenerators.set(t,e)}getInteractors(t,e=!1){let i=this.interactors.get(t);return i&&!e||(i=[...this.interactorsInitializers.values()].map(e=>e(t)),this.interactors.set(t,i)),i}addInteractor(t,e){this.interactorsInitializers.set(t,e)}getUpdaters(t,e=!1){let i=this.updaters.get(t);return i&&!e||(i=[...this.updatersInitializers.values()].map(e=>e(t)),this.updaters.set(t,i)),i}addParticleUpdater(t,e){this.updatersInitializers.set(t,e)}}ht=new WeakMap;class pt{constructor(t,e){this.position=t,this.particle=e}}class vt{constructor(t,e){this.rectangle=t,this.capacity=e,this.points=[],this.divided=!1}subdivide(){const t=this.rectangle.position.x,e=this.rectangle.position.y,i=this.rectangle.size.width,o=this.rectangle.size.height,s=this.capacity;this.northEast=new vt(new J(t,e,i/2,o/2),s),this.northWest=new vt(new J(t+i/2,e,i/2,o/2),s),this.southEast=new vt(new J(t,e+o/2,i/2,o/2),s),this.southWest=new vt(new J(t+i/2,e+o/2,i/2,o/2),s),this.divided=!0}insert(t){var e,i,o,s,n;return!!this.rectangle.contains(t.position)&&(this.points.lengthe.particle.getRadius()||a.push(e.particle);return this.divided&&(null===(i=this.northEast)||void 0===i||i.query(t,a),null===(o=this.northWest)||void 0===o||o.query(t,a),null===(s=this.southEast)||void 0===s||s.query(t,a),null===(n=this.southWest)||void 0===n||n.query(t,a)),a}}class yt{constructor(t,e){let i,o;if(void 0===e){if("number"==typeof t)throw new Error("tsParticles - Vector not initialized correctly");const e=t;[i,o]=[e.x,e.y]}else[i,o]=[t,e];this.x=i,this.y=o}static clone(t){return yt.create(t.x,t.y)}static create(t,e){return new yt(t,e)}static get origin(){return yt.create(0,0)}get angle(){return Math.atan2(this.y,this.x)}set angle(t){this.updateFromAngle(t,this.length)}get length(){return Math.sqrt(this.x**2+this.y**2)}set length(t){this.updateFromAngle(this.angle,t)}add(t){return yt.create(this.x+t.x,this.y+t.y)}addTo(t){this.x+=t.x,this.y+=t.y}sub(t){return yt.create(this.x-t.x,this.y-t.y)}subFrom(t){this.x-=t.x,this.y-=t.y}mult(t){return yt.create(this.x*t,this.y*t)}multTo(t){this.x*=t,this.y*=t}div(t){return yt.create(this.x/t,this.y/t)}divTo(t){this.x/=t,this.y/=t}distanceTo(t){return this.sub(t).length}getLengthSq(){return this.x**2+this.y**2}distanceToSq(t){return this.sub(t).getLengthSq()}manhattanDistanceTo(t){return Math.abs(t.x-this.x)+Math.abs(t.y-this.y)}copy(){return yt.clone(this)}setTo(t){this.x=t.x,this.y=t.y}rotate(t){return yt.create(this.x*Math.cos(t)-this.y*Math.sin(t),this.x*Math.sin(t)+this.y*Math.cos(t))}updateFromAngle(t,e){this.x=Math.cos(t)*e,this.y=Math.sin(t)*e}}class wt extends yt{constructor(t,e,i){super(t,e),this.z=void 0===i?t.z:i}static clone(t){return wt.create(t.x,t.y,t.z)}static create(t,e,i){return new wt(t,e,i)}add(t){return t instanceof wt?wt.create(this.x+t.x,this.y+t.y,this.z+t.z):super.add(t)}addTo(t){super.addTo(t),t instanceof wt&&(this.z+=t.z)}sub(t){return t instanceof wt?wt.create(this.x-t.x,this.y-t.y,this.z-t.z):super.sub(t)}subFrom(t){super.subFrom(t),t instanceof wt&&(this.z-=t.z)}mult(t){return wt.create(this.x*t,this.y*t,this.z*t)}multTo(t){super.multTo(t),this.z*=t}div(t){return wt.create(this.x/t,this.y/t,this.z/t)}divTo(t){super.divTo(t),this.z/=t}copy(){return wt.clone(this)}setTo(t){super.setTo(t),t instanceof wt&&(this.z=t.z)}}class ft{constructor(t){this.container=t,this.size={height:0,width:0},this.context=null,this.generatedCanvas=!1}init(){this.resize(),this.initStyle(),this.initCover(),this.initTrail(),this.initBackground(),this.paint()}loadCanvas(t){var e;this.generatedCanvas&&(null===(e=this.element)||void 0===e||e.remove()),this.generatedCanvas=t.dataset&&K.generatedAttribute in t.dataset?"true"===t.dataset[K.generatedAttribute]:this.generatedCanvas,this.element=t,this.originalStyle=_({},this.element.style),this.size.height=t.offsetHeight,this.size.width=t.offsetWidth,this.context=this.element.getContext("2d"),this.container.retina.init(),this.initBackground()}destroy(){var t;this.generatedCanvas&&(null===(t=this.element)||void 0===t||t.remove()),this.draw(t=>{$(t,this.size)})}paint(){const t=this.container.actualOptions;this.draw(e=>{t.backgroundMask.enable&&t.backgroundMask.cover&&this.coverColor?($(e,this.size),this.paintBase(D(this.coverColor,this.coverColor.a))):this.paintBase()})}clear(){const t=this.container.actualOptions,e=t.particles.move.trail;t.backgroundMask.enable?this.paint():e.enable&&e.length>0&&this.trailFillColor?this.paintBase(D(this.trailFillColor,1/e.length)):this.draw(t=>{$(t,this.size)})}async windowResize(){if(!this.element)return;const t=this.container;this.resize();const e=t.updateActualOptions();t.particles.setDensity();for(const[,e]of t.plugins)void 0!==e.resize&&e.resize();e&&await t.refresh()}resize(){if(!this.element)return;const t=this.container,e=t.retina.pixelRatio,i=t.canvas.size,o=i.width,s=i.height;i.width=this.element.offsetWidth*e,i.height=this.element.offsetHeight*e,this.element.width=i.width,this.element.height=i.height,this.container.started&&(this.resizeFactor={width:i.width/o,height:i.height/s})}drawConnectLine(t,e){this.draw(i=>{var o;const s=this.lineStyle(t,e);if(!s)return;const n=t.getPosition(),a=e.getPosition();!function(t,e,i,o,s){t.save(),Q(t,o,s),t.lineWidth=e,t.strokeStyle=i,t.stroke(),t.restore()}(i,null!==(o=t.retina.linksWidth)&&void 0!==o?o:this.container.retina.linksWidth,s,n,a)})}drawGrabLine(t,e,i,o){const s=this.container;this.draw(n=>{var a;const r=t.getPosition();!function(t,e,i,o,s,n){t.save(),Q(t,i,o),t.strokeStyle=D(s,n),t.lineWidth=e,t.stroke(),t.restore()}(n,null!==(a=t.retina.linksWidth)&&void 0!==a?a:s.retina.linksWidth,r,o,e,i)})}drawParticle(t,e){var i,o,s,n,a,r;if(t.spawning||t.destroyed)return;const l=t.getFillColor(),c=null!==(i=t.getStrokeColor())&&void 0!==i?i:l;if(!l&&!c)return;let[h,d]=this.getPluginParticleColors(t);const u=t.options.twinkle.particles,p=u.enable&&Math.random(){const o=(1-t.zIndexFactor)**y.sizeRate,s=d?N(d,m*w):S;if(f<=0)return;const n=this.container;for(const e of n.particles.updaters)e.beforeDraw&&e.beforeDraw(t);!function(t,e,i,o,s,n,a,r,l,c,h,d){var u,p,v,y,w,f;const g=i.getPosition(),m=i.options.tilt,b=i.options.roll;if(e.save(),m.enable||b.enable){const t=b.enable&&i.roll,o=m.enable&&i.tilt,s=t&&("horizontal"===b.mode||"both"===b.mode),n=t&&("vertical"===b.mode||"both"===b.mode);e.setTransform(s?Math.cos(i.roll.angle):1,o?Math.cos(i.tilt.value)*i.tilt.cosDirection:0,o?Math.sin(i.tilt.value)*i.tilt.sinDirection:0,n?Math.sin(i.roll.angle):1,g.x,g.y)}else e.translate(g.x,g.y);e.beginPath();const S=(null!==(p=null===(u=i.rotate)||void 0===u?void 0:u.value)&&void 0!==p?p:0)+(i.options.rotate.path?i.velocity.angle:0);0!==S&&e.rotate(S),a&&(e.globalCompositeOperation=r);const P=i.shadowColor;if(h.enable&&P&&(e.shadowBlur=h.blur,e.shadowColor=D(P),e.shadowOffsetX=h.offset.x,e.shadowOffsetY=h.offset.y),d){const t=d.angle.value,i="radial"===d.type?e.createRadialGradient(0,0,0,0,0,l):e.createLinearGradient(Math.cos(t)*-l,Math.sin(t)*-l,Math.cos(t)*l,Math.sin(t)*l);for(const t of d.colors)i.addColorStop(t.stop,N({h:t.value.h.value,s:t.value.s.value,l:t.value.l.value},null!==(y=null===(v=t.opacity)||void 0===v?void 0:v.value)&&void 0!==y?y:c));e.fillStyle=i}else s&&(e.fillStyle=s);const _=i.stroke;e.lineWidth=null!==(w=i.strokeWidth)&&void 0!==w?w:0,n&&(e.strokeStyle=n),function(t,e,i,o,s,n){if(!i.shape)return;const a=t.drawers.get(i.shape);if(!a)return;a.draw(e,i,o,s,n,t.retina.pixelRatio)}(t,e,i,l,c,o),(null!==(f=null==_?void 0:_.width)&&void 0!==f?f:0)>0&&e.stroke(),i.close&&e.closePath(),i.fill&&e.fill(),e.restore(),e.save(),m.enable&&i.tilt?e.setTransform(1,Math.cos(i.tilt.value)*i.tilt.cosDirection,Math.sin(i.tilt.value)*i.tilt.sinDirection,1,g.x,g.y):e.translate(g.x,g.y),0!==S&&e.rotate(S),a&&(e.globalCompositeOperation=r),function(t,e,i,o,s,n){if(!i.shape)return;const a=t.drawers.get(i.shape);if(!(null==a?void 0:a.afterEffect))return;a.afterEffect(e,i,o,s,n,t.retina.pixelRatio)}(t,e,i,l,c,o),e.restore()}(this.container,i,t,e,S,s,v.backgroundMask.enable,v.backgroundMask.composite,f*o,b,t.options.shadow,t.gradient);for(const e of n.particles.updaters)e.afterDraw&&e.afterDraw(t)})}drawPlugin(t,e){this.draw(i=>{!function(t,e,i){e.draw&&(t.save(),e.draw(t,i),t.restore())}(i,t,e)})}drawParticlePlugin(t,e,i){this.draw(o=>{!function(t,e,i,o){void 0!==e.drawParticle&&(t.save(),e.drawParticle(t,i,o),t.restore())}(o,t,e,i)})}initBackground(){const t=this.container.actualOptions.background,e=this.element,i=null==e?void 0:e.style;if(i){if(t.color){const e=M(t.color);i.backgroundColor=e?D(e,t.opacity):""}else i.backgroundColor="";i.backgroundImage=t.image||"",i.backgroundPosition=t.position||"",i.backgroundRepeat=t.repeat||"",i.backgroundSize=t.size||""}}draw(t){if(this.context)return t(this.context)}initCover(){const t=this.container.actualOptions.backgroundMask.cover,e=M(t.color);e&&(this.coverColor={r:e.r,g:e.g,b:e.b,a:t.opacity})}initTrail(){const t=this.container.actualOptions,e=M(t.particles.move.trail.fillColor);if(e){const i=t.particles.move.trail;this.trailFillColor={r:e.r,g:e.g,b:e.b,a:1/i.length}}}getPluginParticleColors(t){let e,i;for(const[,o]of this.container.plugins)if(!e&&o.particleFillColor&&(e=R(o.particleFillColor(t))),!i&&o.particleStrokeColor&&(i=R(o.particleStrokeColor(t))),e&&i)break;return[e,i]}initStyle(){const t=this.element,e=this.container.actualOptions;if(!t)return;const i=this.originalStyle;e.fullScreen.enable?(this.originalStyle=_({},t.style),t.style.setProperty("position","fixed","important"),t.style.setProperty("z-index",e.fullScreen.zIndex.toString(10),"important"),t.style.setProperty("top","0","important"),t.style.setProperty("left","0","important"),t.style.setProperty("width","100%","important"),t.style.setProperty("height","100%","important")):i&&(t.style.position=i.position,t.style.zIndex=i.zIndex,t.style.top=i.top,t.style.left=i.left,t.style.width=i.width,t.style.height=i.height);for(const i in e.style){if(!i||!e.style)continue;const o=e.style[i];o&&t.style.setProperty(i,o,"important")}}paintBase(t){this.draw(e=>{!function(t,e,i){t.save(),t.fillStyle=null!=i?i:"rgba(0,0,0,0)",t.fillRect(0,0,e.width,e.height),t.restore()}(e,this.size,t)})}lineStyle(t,e){return this.draw(i=>{const o=this.container.actualOptions.interactivity.modes.connect;return function(t,e,i,o){const s=Math.floor(i.getRadius()/e.getRadius()),n=e.getFillColor(),a=i.getFillColor();if(!n||!a)return;const r=e.getPosition(),l=i.getPosition(),c=j(n,a,e.getRadius(),i.getRadius()),h=t.createLinearGradient(r.x,r.y,l.x,l.y);return h.addColorStop(0,N(n,o)),h.addColorStop(s>1?1:s,D(c,o)),h.addColorStop(1,N(a,o)),h}(i,t,e,o.links.opacity)})}}class gt{constructor(){this.value="#fff"}static create(t,e){const i=new gt;return i.load(t),void 0!==e&&("string"==typeof e||e instanceof Array?i.load({value:e}):i.load(e)),i}load(t){void 0!==(null==t?void 0:t.value)&&(this.value=t.value)}}class mt{constructor(){this.color=new gt,this.color.value="",this.image="",this.position="",this.repeat="",this.size="",this.opacity=1}load(t){void 0!==t&&(void 0!==t.color&&(this.color=gt.create(this.color,t.color)),void 0!==t.image&&(this.image=t.image),void 0!==t.position&&(this.position=t.position),void 0!==t.repeat&&(this.repeat=t.repeat),void 0!==t.size&&(this.size=t.size),void 0!==t.opacity&&(this.opacity=t.opacity))}}class bt{constructor(){this.color=new gt,this.opacity=1}load(t){void 0!==t&&(void 0!==t.color&&(this.color=gt.create(this.color,t.color)),void 0!==t.opacity&&(this.opacity=t.opacity))}}class St{constructor(){this.composite="destination-out",this.cover=new bt,this.enable=!1}load(t){if(void 0!==t){if(void 0!==t.composite&&(this.composite=t.composite),void 0!==t.cover){const e=t.cover,i="string"==typeof t.cover?{color:t.cover}:t.cover;this.cover.load(void 0!==e.color?e:{color:i})}void 0!==t.enable&&(this.enable=t.enable)}}}class Pt{constructor(){this.enable=!0,this.zIndex=0}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.zIndex&&(this.zIndex=t.zIndex))}}class _t{constructor(){this.enable=!1,this.mode=[]}load(t){void 0!==t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode))}}class xt{constructor(){this.selectors=[],this.enable=!1,this.mode=[],this.type="circle"}get elementId(){return this.ids}set elementId(t){this.ids=t}get el(){return this.elementId}set el(t){this.elementId=t}get ids(){return this.selectors instanceof Array?this.selectors.map(t=>t.replace("#","")):this.selectors.replace("#","")}set ids(t){this.selectors=t instanceof Array?t.map(t=>"#"+t):"#"+t}load(t){var e,i;if(void 0===t)return;const o=null!==(i=null!==(e=t.ids)&&void 0!==e?e:t.elementId)&&void 0!==i?i:t.el;void 0!==o&&(this.ids=o),void 0!==t.selectors&&(this.selectors=t.selectors),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.type&&(this.type=t.type)}}class Ct{constructor(){this.enable=!1,this.force=2,this.smooth=10}load(t){void 0!==t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.force&&(this.force=t.force),void 0!==t.smooth&&(this.smooth=t.smooth))}}class At{constructor(){this.enable=!1,this.mode=[],this.parallax=new Ct}load(t){void 0!==t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode),this.parallax.load(t.parallax))}}class Vt{constructor(){this.onClick=new _t,this.onDiv=new xt,this.onHover=new At,this.resize=!0}get onclick(){return this.onClick}set onclick(t){this.onClick=t}get ondiv(){return this.onDiv}set ondiv(t){this.onDiv=t}get onhover(){return this.onHover}set onhover(t){this.onHover=t}load(t){var e,i,o;if(void 0===t)return;this.onClick.load(null!==(e=t.onClick)&&void 0!==e?e:t.onclick);const s=null!==(i=t.onDiv)&&void 0!==i?i:t.ondiv;void 0!==s&&(s instanceof Array?this.onDiv=s.map(t=>{const e=new xt;return e.load(t),e}):(this.onDiv=new xt,this.onDiv.load(s))),this.onHover.load(null!==(o=t.onHover)&&void 0!==o?o:t.onhover),void 0!==t.resize&&(this.resize=t.resize)}}class Gt{constructor(){this.distance=200,this.duration=.4,this.easing="ease-out-quad",this.factor=1,this.maxSpeed=50,this.speed=1}load(t){t&&(void 0!==t.distance&&(this.distance=t.distance),void 0!==t.duration&&(this.duration=t.duration),void 0!==t.easing&&(this.easing=t.easing),void 0!==t.factor&&(this.factor=t.factor),void 0!==t.maxSpeed&&(this.maxSpeed=t.maxSpeed),void 0!==t.speed&&(this.speed=t.speed))}}class Tt{constructor(){this.distance=200}load(t){t&&void 0!==t.distance&&(this.distance=t.distance)}}class Et{constructor(){this.distance=200,this.duration=.4,this.mix=!1}load(t){void 0!==t&&(void 0!==t.distance&&(this.distance=t.distance),void 0!==t.duration&&(this.duration=t.duration),void 0!==t.mix&&(this.mix=t.mix),void 0!==t.opacity&&(this.opacity=t.opacity),void 0!==t.color&&(t.color instanceof Array?this.color=t.color.map(t=>gt.create(void 0,t)):(this.color instanceof Array&&(this.color=new gt),this.color=gt.create(this.color,t.color))),void 0!==t.size&&(this.size=t.size))}}class Ot extends Et{constructor(){super(),this.selectors=[]}get ids(){return this.selectors instanceof Array?this.selectors.map(t=>t.replace("#","")):this.selectors.replace("#","")}set ids(t){this.selectors=t instanceof Array?t.map(t=>"#"+t):"#"+t}load(t){super.load(t),void 0!==t&&(void 0!==t.ids&&(this.ids=t.ids),void 0!==t.selectors&&(this.selectors=t.selectors))}}class kt extends Et{load(t){super.load(t),void 0!==t&&void 0!==t.divs&&(t.divs instanceof Array?this.divs=t.divs.map(t=>{const e=new Ot;return e.load(t),e}):((this.divs instanceof Array||!this.divs)&&(this.divs=new Ot),this.divs.load(t.divs)))}}class Mt{constructor(){this.opacity=.5}load(t){void 0!==t&&void 0!==t.opacity&&(this.opacity=t.opacity)}}class Rt{constructor(){this.distance=80,this.links=new Mt,this.radius=60}get line_linked(){return this.links}set line_linked(t){this.links=t}get lineLinked(){return this.links}set lineLinked(t){this.links=t}load(t){var e,i;void 0!==t&&(void 0!==t.distance&&(this.distance=t.distance),this.links.load(null!==(i=null!==(e=t.links)&&void 0!==e?e:t.lineLinked)&&void 0!==i?i:t.line_linked),void 0!==t.radius&&(this.radius=t.radius))}}class zt{constructor(){this.blink=!1,this.consent=!1,this.opacity=1}load(t){void 0!==t&&(void 0!==t.blink&&(this.blink=t.blink),void 0!==t.color&&(this.color=gt.create(this.color,t.color)),void 0!==t.consent&&(this.consent=t.consent),void 0!==t.opacity&&(this.opacity=t.opacity))}}class Lt{constructor(){this.distance=100,this.links=new zt}get line_linked(){return this.links}set line_linked(t){this.links=t}get lineLinked(){return this.links}set lineLinked(t){this.links=t}load(t){var e,i;void 0!==t&&(void 0!==t.distance&&(this.distance=t.distance),this.links.load(null!==(i=null!==(e=t.links)&&void 0!==e?e:t.lineLinked)&&void 0!==i?i:t.line_linked))}}class It{constructor(){this.start=new gt,this.stop=new gt,this.start.value="#ffffff",this.stop.value="#000000"}load(t){void 0!==t&&(this.start=gt.create(this.start,t.start),this.stop=gt.create(this.stop,t.stop))}}class Ht{constructor(){this.gradient=new It,this.radius=1e3}load(t){void 0!==t&&(this.gradient.load(t.gradient),void 0!==t.radius&&(this.radius=t.radius))}}class Dt{constructor(){this.color=new gt,this.color.value="#000000",this.length=2e3}load(t){void 0!==t&&(this.color=gt.create(this.color,t.color),void 0!==t.length&&(this.length=t.length))}}class Nt{constructor(){this.area=new Ht,this.shadow=new Dt}load(t){void 0!==t&&(this.area.load(t.area),this.shadow.load(t.shadow))}}class jt{constructor(){this.default=!0,this.groups=[],this.quantity=4}get particles_nb(){return this.quantity}set particles_nb(t){this.quantity=t}load(t){var e;if(void 0===t)return;void 0!==t.default&&(this.default=t.default),void 0!==t.groups&&(this.groups=t.groups.map(t=>t)),this.groups.length||(this.default=!0);const i=null!==(e=t.quantity)&&void 0!==e?e:t.particles_nb;void 0!==i&&(this.quantity=i)}}class Ft{constructor(){this.quantity=2}get particles_nb(){return this.quantity}set particles_nb(t){this.quantity=t}load(t){var e;if(void 0===t)return;const i=null!==(e=t.quantity)&&void 0!==e?e:t.particles_nb;void 0!==i&&(this.quantity=i)}}class Bt{constructor(){this.distance=200,this.duration=.4,this.factor=100,this.speed=1,this.maxSpeed=50,this.easing="ease-out-quad"}load(t){t&&(void 0!==t.distance&&(this.distance=t.distance),void 0!==t.duration&&(this.duration=t.duration),void 0!==t.easing&&(this.easing=t.easing),void 0!==t.factor&&(this.factor=t.factor),void 0!==t.speed&&(this.speed=t.speed),void 0!==t.maxSpeed&&(this.maxSpeed=t.maxSpeed))}}class qt extends Bt{constructor(){super(),this.selectors=[]}get ids(){return this.selectors instanceof Array?this.selectors.map(t=>t.replace("#","")):this.selectors.replace("#","")}set ids(t){this.selectors=t instanceof Array?t.map(()=>"#"+t):"#"+t}load(t){super.load(t),void 0!==t&&(void 0!==t.ids&&(this.ids=t.ids),void 0!==t.selectors&&(this.selectors=t.selectors))}}class Ut extends Bt{load(t){super.load(t),void 0!==(null==t?void 0:t.divs)&&(t.divs instanceof Array?this.divs=t.divs.map(t=>{const e=new qt;return e.load(t),e}):((this.divs instanceof Array||!this.divs)&&(this.divs=new qt),this.divs.load(t.divs)))}}class Wt{constructor(){this.factor=3,this.radius=200}get active(){return!1}set active(t){}load(t){void 0!==t&&(void 0!==t.factor&&(this.factor=t.factor),void 0!==t.radius&&(this.radius=t.radius))}}class Qt{constructor(){this.delay=1,this.pauseOnStop=!1,this.quantity=1}load(t){void 0!==t&&(void 0!==t.delay&&(this.delay=t.delay),void 0!==t.quantity&&(this.quantity=t.quantity),void 0!==t.particles&&(this.particles=_({},t.particles)),void 0!==t.pauseOnStop&&(this.pauseOnStop=t.pauseOnStop))}}class $t{constructor(){this.attract=new Gt,this.bounce=new Tt,this.bubble=new kt,this.connect=new Rt,this.grab=new Lt,this.light=new Nt,this.push=new jt,this.remove=new Ft,this.repulse=new Ut,this.slow=new Wt,this.trail=new Qt}load(t){void 0!==t&&(this.attract.load(t.attract),this.bubble.load(t.bubble),this.connect.load(t.connect),this.grab.load(t.grab),this.light.load(t.light),this.push.load(t.push),this.remove.load(t.remove),this.repulse.load(t.repulse),this.slow.load(t.slow),this.trail.load(t.trail))}}class Zt{constructor(){this.detectsOn="window",this.events=new Vt,this.modes=new $t}get detect_on(){return this.detectsOn}set detect_on(t){this.detectsOn=t}load(t){var e,i,o;if(void 0===t)return;const s=null!==(e=t.detectsOn)&&void 0!==e?e:t.detect_on;void 0!==s&&(this.detectsOn=s),this.events.load(t.events),this.modes.load(t.modes),!0===(null===(o=null===(i=t.modes)||void 0===i?void 0:i.slow)||void 0===o?void 0:o.active)&&(this.events.onHover.mode instanceof Array?this.events.onHover.mode.indexOf("slow")<0&&this.events.onHover.mode.push("slow"):"slow"!==this.events.onHover.mode&&(this.events.onHover.mode=[this.events.onHover.mode,"slow"]))}}class Xt{load(t){var e,i;t&&(void 0!==t.position&&(this.position={x:null!==(e=t.position.x)&&void 0!==e?e:50,y:null!==(i=t.position.y)&&void 0!==i?i:50}),void 0!==t.options&&(this.options=_({},t.options)))}}class Jt{constructor(){this.factor=4,this.value=!0}load(t){t&&(void 0!==t.factor&&(this.factor=t.factor),void 0!==t.value&&(this.value=t.value))}}class Yt{constructor(){this.disable=!1,this.reduce=new Jt}load(t){t&&(void 0!==t.disable&&(this.disable=t.disable),this.reduce.load(t.reduce))}}class Kt{constructor(){this.count=0,this.enable=!1,this.offset=0,this.speed=1,this.sync=!0}load(t){void 0!==t&&(void 0!==t.count&&(this.count=t.count),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.offset&&(this.offset=c(t.offset)),void 0!==t.speed&&(this.speed=t.speed),void 0!==t.sync&&(this.sync=t.sync))}}class te{constructor(){this.h=new Kt,this.s=new Kt,this.l=new Kt}load(t){t&&(this.h.load(t.h),this.s.load(t.s),this.l.load(t.l))}}class ee extends gt{constructor(){super(),this.animation=new te}static create(t,e){const i=new ee;return i.load(t),void 0!==e&&("string"==typeof e||e instanceof Array?i.load({value:e}):i.load(e)),i}load(t){if(super.load(t),!t)return;const e=t.animation;void 0!==e&&(void 0!==e.enable?this.animation.h.load(e):this.animation.load(t.animation))}}class ie{constructor(){this.angle=new oe,this.colors=[],this.type="random"}load(t){t&&(this.angle.load(t.angle),void 0!==t.colors&&(this.colors=t.colors.map(t=>{const e=new ne;return e.load(t),e})),void 0!==t.type&&(this.type=t.type))}}class oe{constructor(){this.value=0,this.animation=new ae,this.direction="clockwise"}load(t){t&&(this.animation.load(t.animation),void 0!==t.value&&(this.value=t.value),void 0!==t.direction&&(this.direction=t.direction))}}class se{constructor(){this.value=0,this.animation=new re}load(t){t&&(this.animation.load(t.animation),void 0!==t.value&&(this.value=c(t.value)))}}class ne{constructor(){this.stop=0,this.value=new ee}load(t){t&&(void 0!==t.stop&&(this.stop=t.stop),this.value=ee.create(this.value,t.value),void 0!==t.opacity&&(this.opacity=new se,"number"==typeof t.opacity?this.opacity.value=t.opacity:this.opacity.load(t.opacity)))}}class ae{constructor(){this.count=0,this.enable=!1,this.speed=0,this.sync=!1}load(t){t&&(void 0!==t.count&&(this.count=t.count),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=t.speed),void 0!==t.sync&&(this.sync=t.sync))}}class re{constructor(){this.count=0,this.enable=!1,this.speed=0,this.sync=!1,this.startValue="random"}load(t){t&&(void 0!==t.count&&(this.count=t.count),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=t.speed),void 0!==t.sync&&(this.sync=t.sync),void 0!==t.startValue&&(this.startValue=t.startValue))}}class le{constructor(){this.enable=!1,this.minimumValue=0}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.minimumValue&&(this.minimumValue=t.minimumValue))}}class ce{constructor(){this.random=new le,this.value=0}load(t){t&&("boolean"==typeof t.random?this.random.enable=t.random:this.random.load(t.random),void 0!==t.value&&(this.value=c(t.value,this.random.enable?this.random.minimumValue:void 0)))}}class he extends ce{constructor(){super(),this.random.minimumValue=.1,this.value=1}}class de{constructor(){this.horizontal=new he,this.vertical=new he}load(t){t&&(this.horizontal.load(t.horizontal),this.vertical.load(t.vertical))}}class ue{constructor(){this.enable=!0,this.retries=0}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.retries&&(this.retries=t.retries))}}class pe{constructor(){this.bounce=new de,this.enable=!1,this.mode="bounce",this.overlap=new ue}load(t){void 0!==t&&(this.bounce.load(t.bounce),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode),this.overlap.load(t.overlap))}}class ve extends ce{constructor(){super(),this.value=3}}class ye extends ce{constructor(){super(),this.value={min:4,max:9}}}class we{constructor(){this.count=1,this.factor=new ve,this.rate=new ye,this.sizeOffset=!0}load(t){t&&(void 0!==t.count&&(this.count=t.count),this.factor.load(t.factor),this.rate.load(t.rate),void 0!==t.particles&&(this.particles=_({},t.particles)),void 0!==t.sizeOffset&&(this.sizeOffset=t.sizeOffset))}}class fe{constructor(){this.mode="none",this.split=new we}load(t){t&&(void 0!==t.mode&&(this.mode=t.mode),this.split.load(t.split))}}class ge extends ce{constructor(){super(),this.sync=!1}load(t){t&&(super.load(t),void 0!==t.sync&&(this.sync=t.sync))}}class me extends ce{constructor(){super(),this.random.minimumValue=1e-4,this.sync=!1}load(t){void 0!==t&&(super.load(t),void 0!==t.sync&&(this.sync=t.sync))}}class be{constructor(){this.count=0,this.delay=new ge,this.duration=new me}load(t){void 0!==t&&(void 0!==t.count&&(this.count=t.count),this.delay.load(t.delay),this.duration.load(t.duration))}}class Se{constructor(){this.blur=5,this.color=new gt,this.enable=!1,this.color.value="#00ff00"}load(t){void 0!==t&&(void 0!==t.blur&&(this.blur=t.blur),this.color=gt.create(this.color,t.color),void 0!==t.enable&&(this.enable=t.enable))}}class Pe{constructor(){this.enable=!1,this.frequency=1}load(t){void 0!==t&&(void 0!==t.color&&(this.color=gt.create(this.color,t.color)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.frequency&&(this.frequency=t.frequency),void 0!==t.opacity&&(this.opacity=t.opacity))}}class _e{constructor(){this.blink=!1,this.color=new gt,this.consent=!1,this.distance=100,this.enable=!1,this.frequency=1,this.opacity=1,this.shadow=new Se,this.triangles=new Pe,this.width=1,this.warp=!1}load(t){void 0!==t&&(void 0!==t.id&&(this.id=t.id),void 0!==t.blink&&(this.blink=t.blink),this.color=gt.create(this.color,t.color),void 0!==t.consent&&(this.consent=t.consent),void 0!==t.distance&&(this.distance=t.distance),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.frequency&&(this.frequency=t.frequency),void 0!==t.opacity&&(this.opacity=t.opacity),this.shadow.load(t.shadow),this.triangles.load(t.triangles),void 0!==t.width&&(this.width=t.width),void 0!==t.warp&&(this.warp=t.warp))}}class xe{constructor(){this.distance=200,this.enable=!1,this.rotate={x:3e3,y:3e3}}get rotateX(){return this.rotate.x}set rotateX(t){this.rotate.x=t}get rotateY(){return this.rotate.y}set rotateY(t){this.rotate.y=t}load(t){var e,i,o,s;if(!t)return;void 0!==t.distance&&(this.distance=t.distance),void 0!==t.enable&&(this.enable=t.enable);const n=null!==(i=null===(e=t.rotate)||void 0===e?void 0:e.x)&&void 0!==i?i:t.rotateX;void 0!==n&&(this.rotate.x=n);const a=null!==(s=null===(o=t.rotate)||void 0===o?void 0:o.y)&&void 0!==s?s:t.rotateY;void 0!==a&&(this.rotate.y=a)}}class Ce{constructor(){this.offset=0,this.value=90}load(t){void 0!==t&&(void 0!==t.offset&&(this.offset=t.offset),void 0!==t.value&&(this.value=t.value))}}class Ae{constructor(){this.acceleration=9.81,this.enable=!1,this.inverse=!1,this.maxSpeed=50}load(t){t&&(void 0!==t.acceleration&&(this.acceleration=t.acceleration),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.inverse&&(this.inverse=t.inverse),void 0!==t.maxSpeed&&(this.maxSpeed=t.maxSpeed))}}class Ve{constructor(){this.default="out"}load(t){var e,i,o,s;t&&(void 0!==t.default&&(this.default=t.default),this.bottom=null!==(e=t.bottom)&&void 0!==e?e:t.default,this.left=null!==(i=t.left)&&void 0!==i?i:t.default,this.right=null!==(o=t.right)&&void 0!==o?o:t.default,this.top=null!==(s=t.top)&&void 0!==s?s:t.default)}}class Ge extends ce{constructor(){super()}}class Te{constructor(){this.clamp=!0,this.delay=new Ge,this.enable=!1,this.options={}}load(t){void 0!==t&&(void 0!==t.clamp&&(this.clamp=t.clamp),this.delay.load(t.delay),void 0!==t.enable&&(this.enable=t.enable),this.generator=t.generator,t.options&&(this.options=_(this.options,t.options)))}}class Ee{constructor(){this.acceleration=0,this.enable=!1}load(t){t&&(void 0!==t.acceleration&&(this.acceleration=c(t.acceleration)),void 0!==t.enable&&(this.enable=t.enable),this.position=t.position?_({},t.position):void 0)}}class Oe{constructor(){this.enable=!1,this.length=10,this.fillColor=new gt,this.fillColor.value="#000000"}load(t){void 0!==t&&(void 0!==t.enable&&(this.enable=t.enable),this.fillColor=gt.create(this.fillColor,t.fillColor),void 0!==t.length&&(this.length=t.length))}}class ke{constructor(){this.angle=new Ce,this.attract=new xe,this.decay=0,this.distance={},this.direction="none",this.drift=0,this.enable=!1,this.gravity=new Ae,this.path=new Te,this.outModes=new Ve,this.random=!1,this.size=!1,this.speed=2,this.spin=new Ee,this.straight=!1,this.trail=new Oe,this.vibrate=!1,this.warp=!1}get collisions(){return!1}set collisions(t){}get bounce(){return this.collisions}set bounce(t){this.collisions=t}get out_mode(){return this.outMode}set out_mode(t){this.outMode=t}get outMode(){return this.outModes.default}set outMode(t){this.outModes.default=t}get noise(){return this.path}set noise(t){this.path=t}load(t){var e,i,o;if(void 0===t)return;void 0!==t.angle&&("number"==typeof t.angle?this.angle.value=t.angle:this.angle.load(t.angle)),this.attract.load(t.attract),void 0!==t.decay&&(this.decay=t.decay),void 0!==t.direction&&(this.direction=t.direction),void 0!==t.distance&&(this.distance="number"==typeof t.distance?{horizontal:t.distance,vertical:t.distance}:_({},t.distance)),void 0!==t.drift&&(this.drift=c(t.drift)),void 0!==t.enable&&(this.enable=t.enable),this.gravity.load(t.gravity);const s=null!==(e=t.outMode)&&void 0!==e?e:t.out_mode;void 0===t.outModes&&void 0===s||("string"==typeof t.outModes||void 0===t.outModes&&void 0!==s?this.outModes.load({default:null!==(i=t.outModes)&&void 0!==i?i:s}):this.outModes.load(t.outModes)),this.path.load(null!==(o=t.path)&&void 0!==o?o:t.noise),void 0!==t.random&&(this.random=t.random),void 0!==t.size&&(this.size=t.size),void 0!==t.speed&&(this.speed=c(t.speed)),this.spin.load(t.spin),void 0!==t.straight&&(this.straight=t.straight),this.trail.load(t.trail),void 0!==t.vibrate&&(this.vibrate=t.vibrate),void 0!==t.warp&&(this.warp=t.warp)}}class Me{constructor(){this.count=0,this.enable=!1,this.speed=1,this.sync=!1}load(t){t&&(void 0!==t.count&&(this.count=t.count),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=t.speed),void 0!==t.sync&&(this.sync=t.sync))}}class Re extends Me{constructor(){super(),this.destroy="none",this.enable=!1,this.speed=2,this.startValue="random",this.sync=!1}get opacity_min(){return this.minimumValue}set opacity_min(t){this.minimumValue=t}load(t){var e;void 0!==t&&(super.load(t),void 0!==t.destroy&&(this.destroy=t.destroy),void 0!==t.enable&&(this.enable=t.enable),this.minimumValue=null!==(e=t.minimumValue)&&void 0!==e?e:t.opacity_min,void 0!==t.speed&&(this.speed=t.speed),void 0!==t.startValue&&(this.startValue=t.startValue),void 0!==t.sync&&(this.sync=t.sync))}}class ze extends ce{constructor(){super(),this.animation=new Re,this.random.minimumValue=.1,this.value=1}get anim(){return this.animation}set anim(t){this.animation=t}load(t){var e;if(!t)return;super.load(t);const i=null!==(e=t.animation)&&void 0!==e?e:t.anim;void 0!==i&&(this.animation.load(i),this.value=c(this.value,this.animation.enable?this.animation.minimumValue:void 0))}}class Le extends ce{constructor(){super(),this.value=45,this.random.enable=!1,this.random.minimumValue=0}load(t){void 0!==t&&super.load(t)}}class Ie{constructor(){this.animation=new Me,this.enable=!1,this.opacity=1,this.rotation=new Le,this.width=1}load(t){void 0!==t&&(this.animation.load(t.animation),this.rotation.load(t.rotation),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.opacity&&(this.opacity=t.opacity),void 0!==t.width&&(this.width=t.width),void 0!==t.radius&&(this.radius=t.radius),void 0!==t.color&&(this.color=gt.create(this.color,t.color)))}}class He{constructor(){this.enable=!1,this.area=800,this.factor=1e3}get value_area(){return this.area}set value_area(t){this.area=t}load(t){var e;if(void 0===t)return;void 0!==t.enable&&(this.enable=t.enable);const i=null!==(e=t.area)&&void 0!==e?e:t.value_area;void 0!==i&&(this.area=i),void 0!==t.factor&&(this.factor=t.factor)}}class De{constructor(){this.density=new He,this.limit=0,this.value=100}get max(){return this.limit}set max(t){this.limit=t}load(t){var e;if(void 0===t)return;this.density.load(t.density);const i=null!==(e=t.limit)&&void 0!==e?e:t.max;void 0!==i&&(this.limit=i),void 0!==t.value&&(this.value=t.value)}}class Ne extends ce{constructor(){super(),this.enabled=!1,this.distance=1,this.duration=1,this.factor=1,this.speed=1}load(t){super.load(t),t&&(void 0!==t.enabled&&(this.enabled=t.enabled),void 0!==t.distance&&(this.distance=t.distance),void 0!==t.duration&&(this.duration=t.duration),void 0!==t.factor&&(this.factor=t.factor),void 0!==t.speed&&(this.speed=t.speed))}}class je{constructor(){this.enable=!1,this.value=0}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.value&&(this.value=t.value))}}class Fe{constructor(){this.darken=new je,this.enable=!1,this.enlighten=new je,this.mode="vertical",this.speed=25}load(t){t&&(void 0!==t.backColor&&(this.backColor=gt.create(this.backColor,t.backColor)),this.darken.load(t.darken),void 0!==t.enable&&(this.enable=t.enable),this.enlighten.load(t.enlighten),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.speed&&(this.speed=c(t.speed)))}}class Be{constructor(){this.enable=!1,this.speed=0,this.sync=!1}load(t){void 0!==t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=t.speed),void 0!==t.sync&&(this.sync=t.sync))}}class qe extends ce{constructor(){super(),this.animation=new Be,this.direction="clockwise",this.path=!1,this.value=0}load(t){t&&(super.load(t),void 0!==t.direction&&(this.direction=t.direction),this.animation.load(t.animation),void 0!==t.path&&(this.path=t.path))}}class Ue{constructor(){this.blur=0,this.color=new gt,this.enable=!1,this.offset={x:0,y:0},this.color.value="#000000"}load(t){void 0!==t&&(void 0!==t.blur&&(this.blur=t.blur),this.color=gt.create(this.color,t.color),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.offset&&(void 0!==t.offset.x&&(this.offset.x=t.offset.x),void 0!==t.offset.y&&(this.offset.y=t.offset.y)))}}class We{constructor(){this.options={},this.type="circle"}get image(){var t;return null!==(t=this.options.image)&&void 0!==t?t:this.options.images}set image(t){this.options.image=t,this.options.images=t}get custom(){return this.options}set custom(t){this.options=t}get images(){return this.image}set images(t){this.image=t}get stroke(){return[]}set stroke(t){}get character(){var t;return null!==(t=this.options.character)&&void 0!==t?t:this.options.char}set character(t){this.options.character=t,this.options.char=t}get polygon(){var t;return null!==(t=this.options.polygon)&&void 0!==t?t:this.options.star}set polygon(t){this.options.polygon=t,this.options.star=t}load(t){var e,i,o;if(void 0===t)return;const s=null!==(e=t.options)&&void 0!==e?e:t.custom;if(void 0!==s)for(const t in s){const e=s[t];void 0!==e&&(this.options[t]=_(null!==(i=this.options[t])&&void 0!==i?i:{},e))}this.loadShape(t.character,"character","char",!0),this.loadShape(t.polygon,"polygon","star",!1),this.loadShape(null!==(o=t.image)&&void 0!==o?o:t.images,"image","images",!0),void 0!==t.type&&(this.type=t.type)}loadShape(t,e,i,o){var s,n,a,r;void 0!==t&&(t instanceof Array?(this.options[e]instanceof Array||(this.options[e]=[],this.options[i]&&!o||(this.options[i]=[])),this.options[e]=_(null!==(s=this.options[e])&&void 0!==s?s:[],t),this.options[i]&&!o||(this.options[i]=_(null!==(n=this.options[i])&&void 0!==n?n:[],t))):(this.options[e]instanceof Array&&(this.options[e]={},this.options[i]&&!o||(this.options[i]={})),this.options[e]=_(null!==(a=this.options[e])&&void 0!==a?a:{},t),this.options[i]&&!o||(this.options[i]=_(null!==(r=this.options[i])&&void 0!==r?r:{},t))))}}class Qe extends Me{constructor(){super(),this.destroy="none",this.enable=!1,this.speed=5,this.startValue="random",this.sync=!1}get size_min(){return this.minimumValue}set size_min(t){this.minimumValue=t}load(t){var e;void 0!==t&&(super.load(t),void 0!==t.destroy&&(this.destroy=t.destroy),void 0!==t.enable&&(this.enable=t.enable),this.minimumValue=null!==(e=t.minimumValue)&&void 0!==e?e:t.size_min,void 0!==t.speed&&(this.speed=t.speed),void 0!==t.startValue&&(this.startValue=t.startValue),void 0!==t.sync&&(this.sync=t.sync))}}class $e extends ce{constructor(){super(),this.animation=new Qe,this.random.minimumValue=1,this.value=3}get anim(){return this.animation}set anim(t){this.animation=t}load(t){var e;if(!t)return;super.load(t);const i=null!==(e=t.animation)&&void 0!==e?e:t.anim;void 0!==i&&(this.animation.load(i),this.value=c(this.value,this.animation.enable?this.animation.minimumValue:void 0))}}class Ze{constructor(){this.width=0}load(t){void 0!==t&&(void 0!==t.color&&(this.color=ee.create(this.color,t.color)),void 0!==t.width&&(this.width=t.width),void 0!==t.opacity&&(this.opacity=t.opacity))}}class Xe{constructor(){this.enable=!1,this.speed=0,this.sync=!1}load(t){void 0!==t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=t.speed),void 0!==t.sync&&(this.sync=t.sync))}}class Je extends ce{constructor(){super(),this.animation=new Xe,this.direction="clockwise",this.enable=!1,this.value=0}load(t){t&&(super.load(t),this.animation.load(t.animation),void 0!==t.direction&&(this.direction=t.direction),void 0!==t.enable&&(this.enable=t.enable))}}class Ye{constructor(){this.enable=!1,this.frequency=.05,this.opacity=1}load(t){void 0!==t&&(void 0!==t.color&&(this.color=gt.create(this.color,t.color)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.frequency&&(this.frequency=t.frequency),void 0!==t.opacity&&(this.opacity=t.opacity))}}class Ke{constructor(){this.lines=new Ye,this.particles=new Ye}load(t){void 0!==t&&(this.lines.load(t.lines),this.particles.load(t.particles))}}class ti{constructor(){this.distance=5,this.enable=!1,this.speed=50}load(t){t&&(void 0!==t.distance&&(this.distance=c(t.distance)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=c(t.speed)))}}class ei extends ce{constructor(){super(),this.opacityRate=1,this.sizeRate=1,this.velocityRate=1}load(t){super.load(t),t&&(void 0!==t.opacityRate&&(this.opacityRate=t.opacityRate),void 0!==t.sizeRate&&(this.sizeRate=t.sizeRate),void 0!==t.velocityRate&&(this.velocityRate=t.velocityRate))}}class ii{constructor(){this.bounce=new de,this.collisions=new pe,this.color=new ee,this.destroy=new fe,this.gradient=[],this.groups={},this.life=new be,this.links=new _e,this.move=new ke,this.number=new De,this.opacity=new ze,this.orbit=new Ie,this.reduceDuplicates=!1,this.repulse=new Ne,this.roll=new Fe,this.rotate=new qe,this.shadow=new Ue,this.shape=new We,this.size=new $e,this.stroke=new Ze,this.tilt=new Je,this.twinkle=new Ke,this.wobble=new ti,this.zIndex=new ei}get line_linked(){return this.links}set line_linked(t){this.links=t}get lineLinked(){return this.links}set lineLinked(t){this.links=t}load(t){var e,i,o,s,n,a,r,l;if(void 0===t)return;this.bounce.load(t.bounce),this.color.load(ee.create(this.color,t.color)),this.destroy.load(t.destroy),this.life.load(t.life);const c=null!==(i=null!==(e=t.links)&&void 0!==e?e:t.lineLinked)&&void 0!==i?i:t.line_linked;if(void 0!==c&&this.links.load(c),void 0!==t.groups)for(const e in t.groups){const i=t.groups[e];void 0!==i&&(this.groups[e]=_(null!==(o=this.groups[e])&&void 0!==o?o:{},i))}this.move.load(t.move),this.number.load(t.number),this.opacity.load(t.opacity),this.orbit.load(t.orbit),void 0!==t.reduceDuplicates&&(this.reduceDuplicates=t.reduceDuplicates),this.repulse.load(t.repulse),this.roll.load(t.roll),this.rotate.load(t.rotate),this.shape.load(t.shape),this.size.load(t.size),this.shadow.load(t.shadow),this.tilt.load(t.tilt),this.twinkle.load(t.twinkle),this.wobble.load(t.wobble),this.zIndex.load(t.zIndex);const h=null!==(n=null===(s=t.move)||void 0===s?void 0:s.collisions)&&void 0!==n?n:null===(a=t.move)||void 0===a?void 0:a.bounce;void 0!==h&&(this.collisions.enable=h),this.collisions.load(t.collisions);const d=null!==(r=t.stroke)&&void 0!==r?r:null===(l=t.shape)||void 0===l?void 0:l.stroke;d&&(d instanceof Array?this.stroke=d.map(t=>{const e=new Ze;return e.load(t),e}):(this.stroke instanceof Array&&(this.stroke=new Ze),this.stroke.load(d)));const u=t.gradient;u&&(u instanceof Array?this.gradient=u.map(t=>{const e=new ie;return e.load(t),e}):(this.gradient instanceof Array&&(this.gradient=new ie),this.gradient.load(u)))}}class oi{constructor(){this.maxWidth=1/0,this.options={},this.mode="canvas"}load(t){t&&(void 0!==t.maxWidth&&(this.maxWidth=t.maxWidth),void 0!==t.mode&&("screen"===t.mode?this.mode="screen":this.mode="canvas"),void 0!==t.options&&(this.options=_({},t.options)))}}class si{constructor(){this.auto=!1,this.mode="any",this.value=!1}load(t){t&&(void 0!==t.auto&&(this.auto=t.auto),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.value&&(this.value=t.value))}}class ni{constructor(){this.name="",this.default=new si}load(t){void 0!==t&&(void 0!==t.name&&(this.name=t.name),this.default.load(t.default),void 0!==t.options&&(this.options=_({},t.options)))}}var ai,ri,li,ci=function(t,e,i,o,s){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?s.call(t,i):s?s.value=i:e.set(t,i),i},hi=function(t,e,i,o){if("a"===i&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?o:"a"===i?o.call(t):o?o.value:e.get(t)};class di{constructor(t){ai.add(this),ri.set(this,void 0),ci(this,ri,t,"f"),this.autoPlay=!0,this.background=new mt,this.backgroundMask=new St,this.fullScreen=new Pt,this.detectRetina=!0,this.duration=0,this.fpsLimit=120,this.interactivity=new Zt,this.manualParticles=[],this.motion=new Yt,this.particles=new ii,this.pauseOnBlur=!0,this.pauseOnOutsideViewport=!0,this.responsive=[],this.style={},this.themes=[],this.zLayers=100}get fps_limit(){return this.fpsLimit}set fps_limit(t){this.fpsLimit=t}get retina_detect(){return this.detectRetina}set retina_detect(t){this.detectRetina=t}get backgroundMode(){return this.fullScreen}set backgroundMode(t){this.fullScreen.load(t)}load(t){var e,i,o,s,n;if(void 0===t)return;if(void 0!==t.preset)if(t.preset instanceof Array)for(const e of t.preset)this.importPreset(e);else this.importPreset(t.preset);void 0!==t.autoPlay&&(this.autoPlay=t.autoPlay);const a=null!==(e=t.detectRetina)&&void 0!==e?e:t.retina_detect;void 0!==a&&(this.detectRetina=a),void 0!==t.duration&&(this.duration=t.duration);const r=null!==(i=t.fpsLimit)&&void 0!==i?i:t.fps_limit;void 0!==r&&(this.fpsLimit=r),void 0!==t.pauseOnBlur&&(this.pauseOnBlur=t.pauseOnBlur),void 0!==t.pauseOnOutsideViewport&&(this.pauseOnOutsideViewport=t.pauseOnOutsideViewport),void 0!==t.zLayers&&(this.zLayers=t.zLayers),this.background.load(t.background);const l=null!==(o=t.fullScreen)&&void 0!==o?o:t.backgroundMode;if("boolean"==typeof l?this.fullScreen.enable=l:this.fullScreen.load(l),this.backgroundMask.load(t.backgroundMask),this.interactivity.load(t.interactivity),void 0!==t.manualParticles&&(this.manualParticles=t.manualParticles.map(t=>{const e=new Xt;return e.load(t),e})),this.motion.load(t.motion),this.particles.load(t.particles),this.style=_(this.style,t.style),hi(this,ri,"f").plugins.loadOptions(this,t),void 0!==t.responsive)for(const e of t.responsive){const t=new oi;t.load(e),this.responsive.push(t)}if(this.responsive.sort((t,e)=>t.maxWidth-e.maxWidth),void 0!==t.themes)for(const e of t.themes){const t=new ni;t.load(e),this.themes.push(t)}this.defaultDarkTheme=null===(s=hi(this,ai,"m",li).call(this,"dark"))||void 0===s?void 0:s.name,this.defaultLightTheme=null===(n=hi(this,ai,"m",li).call(this,"light"))||void 0===n?void 0:n.name}setTheme(t){if(t){const e=this.themes.find(e=>e.name===t);e&&this.load(e.options)}else{const t="undefined"!=typeof matchMedia&&matchMedia("(prefers-color-scheme: dark)"),e=t&&t.matches,i=hi(this,ai,"m",li).call(this,e?"dark":"light");i&&this.load(i.options)}}setResponsive(t,e,i){this.load(i);const o=this.responsive.find(i=>"screen"===i.mode&&screen?i.maxWidth*e>screen.availWidth:i.maxWidth*e>t);return this.load(null==o?void 0:o.options),null==o?void 0:o.maxWidth}importPreset(t){this.load(hi(this,ri,"f").plugins.getPreset(t))}}ri=new WeakMap,ai=new WeakSet,li=function(t){var e;return null!==(e=this.themes.find(e=>e.default.value&&e.default.mode===t))&&void 0!==e?e:this.themes.find(t=>t.default.value&&"any"===t.default.mode)};var ui,pi=function(t,e,i,o,s){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?s.call(t,i):s?s.value=i:e.set(t,i),i},vi=function(t,e,i,o){if("a"===i&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?o:"a"===i?o.call(t):o?o.value:e.get(t)};const yi=t=>{(g(t.outMode,t.checkModes)||g(t.outMode,t.checkModes))&&(t.coord>t.maxCoord-2*t.radius?t.setCb(-t.radius):t.coord<2*t.radius&&t.setCb(t.radius))};class wi{constructor(t,e,i,s,c,d){var p,v,y,w,f,g,m,S,P;this.id=e,this.container=i,this.group=d,ui.set(this,void 0),pi(this,ui,t,"f"),this.fill=!0,this.close=!0,this.lastPathTime=0,this.destroyed=!1,this.unbreakable=!1,this.splitCount=0,this.misplaced=!1,this.retina={maxDistance:{}};const _=i.retina.pixelRatio,x=i.actualOptions,C=new ii;C.load(x.particles);const A=C.shape.type,V=C.reduceDuplicates;if(this.shape=A instanceof Array?b(A,this.id,V):A,null==c?void 0:c.shape){if(c.shape.type){const t=c.shape.type;this.shape=t instanceof Array?b(t,this.id,V):t}const t=new We;t.load(c.shape),this.shape&&(this.shapeData=this.loadShapeData(t,V))}else this.shapeData=this.loadShapeData(C.shape,V);void 0!==c&&C.load(c),void 0!==(null===(p=this.shapeData)||void 0===p?void 0:p.particles)&&C.load(null===(v=this.shapeData)||void 0===v?void 0:v.particles),this.fill=null!==(w=null===(y=this.shapeData)||void 0===y?void 0:y.fill)&&void 0!==w?w:this.fill,this.close=null!==(g=null===(f=this.shapeData)||void 0===f?void 0:f.close)&&void 0!==g?g:this.close,this.options=C,this.pathDelay=1e3*h(this.options.move.path.delay);const G=a(this.options.zIndex.value);i.retina.initParticle(this);const T=this.options.size,E=T.value;this.size={enable:T.animation.enable,value:h(T)*i.retina.pixelRatio,max:l(E)*_,min:r(E)*_,loops:0,maxLoops:T.animation.count};const O=T.animation;if(O.enable){switch(this.size.status=0,O.startValue){case"min":this.size.value=this.size.min,this.size.status=0;break;case"random":this.size.value=n(this.size)*_,this.size.status=Math.random()>=.5?0:1;break;case"max":default:this.size.value=this.size.max,this.size.status=1}this.size.velocity=(null!==(m=this.retina.sizeAnimationSpeed)&&void 0!==m?m:i.retina.sizeAnimationSpeed)/100*i.retina.reduceFactor,O.sync||(this.size.velocity*=Math.random())}this.direction=function(t){if("number"==typeof t)return t*Math.PI/180;switch(t){case"top":return-Math.PI/2;case"top-right":return-Math.PI/4;case"right":return 0;case"bottom-right":return Math.PI/4;case"bottom":return Math.PI/2;case"bottom-left":return 3*Math.PI/4;case"left":return Math.PI;case"top-left":return-3*Math.PI/4;case"none":default:return Math.random()*Math.PI*2}}(this.options.move.direction),this.bubble={inRange:!1},this.initialVelocity=this.calculateVelocity(),this.velocity=this.initialVelocity.copy(),this.moveDecay=1-a(this.options.move.decay),this.position=this.calcPosition(i,s,o(G,0,i.zLayers)),this.initialPosition=this.position.copy(),this.offset=yt.origin;const k=i.particles;k.needsSort=k.needsSort||k.lastZIndex0,this.options.move.spin.enable){const t=null!==(S=this.options.move.spin.position)&&void 0!==S?S:{x:50,y:50},e={x:t.x/100*i.canvas.size.width,y:t.y/100*i.canvas.size.height},o=u(this.getPosition(),e);this.spin={center:e,direction:this.velocity.x>=0?"clockwise":"counter-clockwise",angle:this.velocity.angle,radius:o,acceleration:null!==(P=this.retina.spinAcceleration)&&void 0!==P?P:a(this.options.move.spin.acceleration)}}this.shadowColor=M(this.options.shadow.color);for(const t of i.particles.updaters)t.init&&t.init(this);R&&R.particleInit&&R.particleInit(i,this);for(const[,t]of i.plugins)t.particleCreated&&t.particleCreated(this)}isVisible(){return!this.destroyed&&!this.spawning&&this.isInsideCanvas()}isInsideCanvas(){const t=this.getRadius(),e=this.container.canvas.size;return this.position.x>=-t&&this.position.y>=-t&&this.position.y<=e.height+t&&this.position.x<=e.width+t}draw(t){const e=this.container;for(const[,i]of e.plugins)e.canvas.drawParticlePlugin(i,this,t);e.canvas.drawParticle(this,t)}getPosition(){return{x:this.position.x+this.offset.x,y:this.position.y+this.offset.y,z:this.position.z}}getRadius(){var t;return null!==(t=this.bubble.radius)&&void 0!==t?t:this.size.value}getMass(){return this.getRadius()**2*Math.PI/2}getFillColor(){var t,e,i;const o=null!==(t=this.bubble.color)&&void 0!==t?t:q(this.color);if(o&&this.roll&&(this.backColor||this.roll.alter)){if(Math.floor((null!==(i=null===(e=this.roll)||void 0===e?void 0:e.angle)&&void 0!==i?i:0)/(Math.PI/2))%2){if(this.backColor)return this.backColor;if(this.roll.alter)return function(t,e,i){return{h:t.h,s:t.s,l:t.l+("darken"===e?-1:1)*i}}(o,this.roll.alter.type,this.roll.alter.value)}}return o}getStrokeColor(){var t,e;return null!==(e=null!==(t=this.bubble.color)&&void 0!==t?t:q(this.strokeColor))&&void 0!==e?e:this.getFillColor()}destroy(t){if(this.destroyed=!0,this.bubble.inRange=!1,this.unbreakable)return;this.destroyed=!0,this.bubble.inRange=!1;for(const[,e]of this.container.plugins)e.particleDestroyed&&e.particleDestroyed(this,t);if(t)return;"split"===this.options.destroy.mode&&this.split()}reset(){this.opacity&&(this.opacity.loops=0),this.size.loops=0}split(){const t=this.options.destroy.split;if(t.count>=0&&this.splitCount++>t.count)return;const e=a(t.rate.value);for(let t=0;t{yi({outMode:e,checkModes:["bounce","bounce-horizontal"],coord:d.x,maxCoord:t.canvas.size.width,setCb:t=>d.x+=t,radius:u})},y=e=>{yi({outMode:e,checkModes:["bounce","bounce-vertical"],coord:d.y,maxCoord:t.canvas.size.height,setCb:t=>d.y+=t,radius:u})};return v(null!==(a=p.left)&&void 0!==a?a:p.default),v(null!==(r=p.right)&&void 0!==r?r:p.default),y(null!==(l=p.top)&&void 0!==l?l:p.default),y(null!==(c=p.bottom)&&void 0!==c?c:p.default),this.checkOverlap(d,o)?this.calcPosition(t,void 0,i,o+1):d}checkOverlap(t,e=0){const i=this.options.collisions,o=this.getRadius();if(!i.enable)return!1;const s=i.overlap;if(s.enable)return!1;const n=s.retries;if(n>=0&&e>n)throw new Error("Particle is overlapping and can't be placed");let a=!1;for(const e of this.container.particles.array)if(u(t,e.position)=0&&t<=this.count))return;let s=0;for(let n=t;se.position.z-t.position.z||t.id-e.id),this.lastZIndex=this.zArray[this.zArray.length-1].position.z,this.needsSort=!1);for(const[,i]of e.plugins)e.canvas.drawPlugin(i,t);for(const e of this.zArray)e.draw(t)}clear(){this.array=[],this.zArray=[]}push(t,e,i,o){this.pushing=!0;for(let s=0;s0){const t=this.count+1-s;t>0&&this.removeQuantity(t)}return this.pushParticle(t,e,i)}addSplitParticle(t){const e=t.options.destroy.split,i=new ii;i.load(t.options);const o=a(e.factor.value);i.color.load({value:{hsl:t.getFillColor()}}),"number"==typeof i.size.value?i.size.value/=o:(i.size.value.min/=o,i.size.value.max/=o),i.load(e.particles);const s=e.sizeOffset?c(-t.size.value,t.size.value):0,r={x:t.position.x+n(s),y:t.position.y+n(s)};return this.pushParticle(r,i,t.group,e=>!(e.size.value<.5)&&(e.velocity.length=n(c(t.velocity.length,e.velocity.length)),e.splitCount=t.splitCount+1,e.unbreakable=!0,setTimeout(()=>{e.unbreakable=!1},500),!0))}removeQuantity(t,e){this.removeAt(0,t,e)}getLinkFrequency(t,e){const i=c(t.id,e.id),o=`${r(i)}_${l(i)}`;let s=this.freqs.links.get(o);return void 0===s&&(s=Math.random(),this.freqs.links.set(o,s)),s}getTriangleFrequency(t,e,i){let[o,s,n]=[t.id,e.id,i.id];o>s&&([s,o]=[o,s]),s>n&&([n,s]=[s,n]),o>n&&([n,o]=[o,n]);const a=`${o}_${s}_${n}`;let r=this.freqs.triangles.get(a);return void 0===r&&(r=Math.random(),this.freqs.triangles.set(a,r)),r}addManualParticles(){const t=this.container,e=t.actualOptions;for(const i of e.manualParticles){const e=i.position?{x:i.position.x*t.canvas.size.width/100,y:i.position.y*t.canvas.size.height/100}:void 0;this.addParticle(e,i.options)}}setDensity(){const t=this.container.actualOptions;for(const e in t.particles.groups)this.applyDensity(t.particles.groups[e],0,e);this.applyDensity(t.particles,t.manualParticles.length)}applyDensity(t,e,i){var o;if(!(null===(o=t.number.density)||void 0===o?void 0:o.enable))return;const s=t.number,n=this.initDensityFactor(s.density),a=s.value,r=s.limit>0?s.limit:a,l=Math.min(a,r)*n+e,c=Math.min(this.count,this.array.filter(t=>t.group===i).length);this.limit=s.limit*n,cl&&this.removeQuantity(c-l,i)}initDensityFactor(t){const e=this.container;if(!e.canvas.element||!t.enable)return 1;const i=e.canvas.element,o=e.retina.pixelRatio;return i.width*i.height/(t.factor*o**2*t.area)}pushParticle(t,e,i,o){try{const s=new wi(mi(this,fi,"f"),this.nextId,this.container,t,e,i);let n=!0;if(o&&(n=o(s)),!n)return;return this.array.push(s),this.zArray.push(s),this.nextId++,s}catch(t){return void console.warn("error adding particle: "+t)}}}fi=new WeakMap;class Si{constructor(t){this.container=t}init(){const t=this.container,e=t.actualOptions;this.pixelRatio=!e.detectRetina||f()?1:window.devicePixelRatio;const i=this.container.actualOptions.motion;if(i&&(i.disable||i.reduce.value))if(f()||"undefined"==typeof matchMedia||!matchMedia)this.reduceFactor=1;else{const e=matchMedia("(prefers-reduced-motion: reduce)");if(e){this.handleMotionChange(e);const i=()=>{this.handleMotionChange(e),t.refresh().catch(()=>{})};void 0!==e.addEventListener?e.addEventListener("change",i):void 0!==e.addListener&&e.addListener(i)}}else this.reduceFactor=1;const o=this.pixelRatio;if(t.canvas.element){const e=t.canvas.element;t.canvas.size.width=e.offsetWidth*o,t.canvas.size.height=e.offsetHeight*o}const s=e.particles;this.attractDistance=s.move.attract.distance*o,this.linksDistance=s.links.distance*o,this.linksWidth=s.links.width*o,this.sizeAnimationSpeed=s.size.animation.speed*o,this.maxSpeed=s.move.gravity.maxSpeed*o,void 0!==s.orbit.radius&&(this.orbitRadius=s.orbit.radius*this.container.retina.pixelRatio);const n=e.interactivity.modes;this.connectModeDistance=n.connect.distance*o,this.connectModeRadius=n.connect.radius*o,this.grabModeDistance=n.grab.distance*o,this.repulseModeDistance=n.repulse.distance*o,this.bounceModeDistance=n.bounce.distance*o,this.attractModeDistance=n.attract.distance*o,this.slowModeRadius=n.slow.radius*o,this.bubbleModeDistance=n.bubble.distance*o,n.bubble.size&&(this.bubbleModeSize=n.bubble.size*o)}initParticle(t){const e=t.options,i=this.pixelRatio,o=e.move.distance,s=t.retina;s.attractDistance=e.move.attract.distance*i,s.linksDistance=e.links.distance*i,s.linksWidth=e.links.width*i,s.moveDrift=a(e.move.drift)*i,s.moveSpeed=a(e.move.speed)*i,s.sizeAnimationSpeed=e.size.animation.speed*i,t.spin&&(s.spinAcceleration=a(e.move.spin.acceleration)*i);const n=s.maxDistance;n.horizontal=void 0!==o.horizontal?o.horizontal*i:void 0,n.vertical=void 0!==o.vertical?o.vertical*i:void 0,s.maxSpeed=e.move.gravity.maxSpeed*i}handleMotionChange(t){const e=this.container.actualOptions;if(t.matches){const t=e.motion;this.reduceFactor=t.disable?0:t.reduce.value?1/t.reduce.factor:1}else this.reduceFactor=1}}var Pi,_i=function(t,e,i,o,s){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?s.call(t,i):s?s.value=i:e.set(t,i),i},xi=function(t,e,i,o){if("a"===i&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?o:"a"===i?o.call(t):o?o.value:e.get(t)};class Ci{constructor(t,e,i,...o){this.id=e,Pi.set(this,void 0),_i(this,Pi,t,"f"),this.fpsLimit=120,this.duration=0,this.lifeTime=0,this.firstStart=!0,this.started=!1,this.destroyed=!1,this.paused=!0,this.lastFrameTime=0,this.zLayers=100,this.pageHidden=!1,this._sourceOptions=i,this._initialSourceOptions=i,this.retina=new Si(this),this.canvas=new ft(this),this.particles=new bi(xi(this,Pi,"f"),this),this.drawer=new ot(this),this.presets=o,this.pathGenerator={generate:()=>{const t=yt.create(0,0);return t.length=Math.random(),t.angle=Math.random()*Math.PI*2,t},init:()=>{},update:()=>{}},this.interactivity={mouse:{clicking:!1,inside:!1}},this.bubble={},this.repulse={particles:[]},this.attract={particles:[]},this.plugins=new Map,this.drawers=new Map,this.density=1,this._options=new di(xi(this,Pi,"f")),this.actualOptions=new di(xi(this,Pi,"f")),this.eventListeners=new et(this),"undefined"!=typeof IntersectionObserver&&IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(t=>this.intersectionManager(t)))}get options(){return this._options}get sourceOptions(){return this._sourceOptions}play(t){const e=this.paused||t;if(!this.firstStart||this.actualOptions.autoPlay){if(this.paused&&(this.paused=!1),e)for(const[,t]of this.plugins)t.play&&t.play();this.draw(e||!1)}else this.firstStart=!1}pause(){if(void 0!==this.drawAnimationFrame&&((f()?t=>clearTimeout(t):t=>(window.cancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.mozCancelRequestAnimationFrame||window.oCancelRequestAnimationFrame||window.msCancelRequestAnimationFrame||window.clearTimeout)(t))(this.drawAnimationFrame),delete this.drawAnimationFrame),!this.paused){for(const[,t]of this.plugins)t.pause&&t.pause();this.pageHidden||(this.paused=!0)}}draw(t){let e=t;this.drawAnimationFrame=(f()?t=>setTimeout(t):t=>(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||window.setTimeout)(t))(t=>{e&&(this.lastFrameTime=void 0,e=!1),this.drawer.nextFrame(t)})}getAnimationStatus(){return!this.paused&&!this.pageHidden}setNoise(t,e,i){this.setPath(t,e,i)}setPath(t,e,i){t&&("function"==typeof t?(this.pathGenerator.generate=t,e&&(this.pathGenerator.init=e),i&&(this.pathGenerator.update=i)):(t.generate&&(this.pathGenerator.generate=t.generate),t.init&&(this.pathGenerator.init=t.init),t.update&&(this.pathGenerator.update=t.update)))}destroy(){this.stop(),this.canvas.destroy();for(const[,t]of this.drawers)t.destroy&&t.destroy(this);for(const t of this.drawers.keys())this.drawers.delete(t);this.destroyed=!0}exportImg(t){this.exportImage(t)}exportImage(t,e,i){var o;return null===(o=this.canvas.element)||void 0===o?void 0:o.toBlob(t,null!=e?e:"image/png",i)}exportConfiguration(){return JSON.stringify(this.actualOptions,void 0,2)}refresh(){return this.stop(),this.start()}reset(){return this._options=new di(xi(this,Pi,"f")),this.refresh()}stop(){if(this.started){this.firstStart=!0,this.started=!1,this.eventListeners.removeListeners(),this.pause(),this.particles.clear(),this.canvas.clear(),this.interactivity.element instanceof HTMLElement&&this.intersectionObserver&&this.intersectionObserver.unobserve(this.interactivity.element);for(const[,t]of this.plugins)t.stop&&t.stop();for(const t of this.plugins.keys())this.plugins.delete(t);this.particles.linksColors=new Map,delete this.particles.grabLineColor,delete this.particles.linksColor,this._sourceOptions=this._options}}async loadTheme(t){this.currentTheme=t,await this.refresh()}async start(){if(!this.started){await this.init(),this.started=!0,this.eventListeners.addListeners(),this.interactivity.element instanceof HTMLElement&&this.intersectionObserver&&this.intersectionObserver.observe(this.interactivity.element);for(const[,t]of this.plugins)void 0!==t.startAsync?await t.startAsync():void 0!==t.start&&t.start();this.play()}}addClickHandler(t){const e=this.interactivity.element;if(!e)return;const i=(e,i,o)=>{if(this.destroyed)return;const s=this.retina.pixelRatio,n={x:i.x*s,y:i.y*s},a=this.particles.quadTree.queryCircle(n,o*s);t(e,a)};let o=!1,s=!1;e.addEventListener("click",t=>{if(this.destroyed)return;const e=t,o={x:e.offsetX||e.clientX,y:e.offsetY||e.clientY};i(t,o,1)}),e.addEventListener("touchstart",()=>{this.destroyed||(o=!0,s=!1)}),e.addEventListener("touchmove",()=>{this.destroyed||(s=!0)}),e.addEventListener("touchend",t=>{var e,n,a;if(!this.destroyed){if(o&&!s){const o=t;let s=o.touches[o.touches.length-1];if(!s&&(s=o.changedTouches[o.changedTouches.length-1],!s))return;const r=null===(e=this.canvas.element)||void 0===e?void 0:e.getBoundingClientRect(),l={x:s.clientX-(null!==(n=null==r?void 0:r.left)&&void 0!==n?n:0),y:s.clientY-(null!==(a=null==r?void 0:r.top)&&void 0!==a?a:0)};i(t,l,Math.max(s.radiusX,s.radiusY))}o=!1,s=!1}}),e.addEventListener("touchcancel",()=>{this.destroyed||(o=!1,s=!1)})}updateActualOptions(){this.actualOptions.responsive=[];const t=this.actualOptions.setResponsive(this.canvas.size.width,this.retina.pixelRatio,this._options);return this.actualOptions.setTheme(this.currentTheme),this.responsiveMaxWidth!=t&&(this.responsiveMaxWidth=t,!0)}async init(){this._options=new di(xi(this,Pi,"f"));for(const t of this.presets)this._options.load(xi(this,Pi,"f").plugins.getPreset(t));const t=xi(this,Pi,"f").plugins.getSupportedShapes();for(const e of t){const t=xi(this,Pi,"f").plugins.getShapeDrawer(e);t&&this.drawers.set(e,t)}this._options.load(this._initialSourceOptions),this._options.load(this._sourceOptions),this.actualOptions=new di(xi(this,Pi,"f")),this.actualOptions.load(this._options),this.retina.init(),this.canvas.init(),this.updateActualOptions(),this.canvas.initBackground(),this.canvas.resize(),this.zLayers=this.actualOptions.zLayers,this.duration=a(this.actualOptions.duration),this.lifeTime=0,this.fpsLimit=this.actualOptions.fpsLimit>0?this.actualOptions.fpsLimit:120;const e=xi(this,Pi,"f").plugins.getAvailablePlugins(this);for(const[t,i]of e)this.plugins.set(t,i);for(const[,t]of this.drawers)t.init&&await t.init(this);for(const[,t]of this.plugins)t.init?t.init(this.actualOptions):void 0!==t.initAsync&&await t.initAsync(this.actualOptions);const i=this.actualOptions.particles.move.path;if(i.generator){const t=xi(this,Pi,"f").plugins.getPathGenerator(i.generator);t&&(t.init&&(this.pathGenerator.init=t.init),t.generate&&(this.pathGenerator.generate=t.generate),t.update&&(this.pathGenerator.update=t.update))}this.particles.init(),this.particles.setDensity();for(const[,t]of this.plugins)void 0!==t.particlesSetup&&t.particlesSetup()}intersectionManager(t){if(this.actualOptions.pauseOnOutsideViewport)for(const e of t)e.target===this.interactivity.element&&(e.isIntersecting?this.play():this.pause())}}Pi=new WeakMap;var Ai,Vi=function(t,e,i,o,s){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?s.call(t,i):s?s.value=i:e.set(t,i),i},Gi=function(t,e,i,o){if("a"===i&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?o:"a"===i?o.call(t):o?o.value:e.get(t)};class Ti{constructor(t){Ai.set(this,void 0),Vi(this,Ai,t,"f")}dom(){return Gi(this,Ai,"f").domArray}domItem(t){const e=this.dom(),i=e[t];if(i&&!i.destroyed)return i;e.splice(t,1)}async loadOptions(t){var e,i,o;const s=null!==(e=t.tagId)&&void 0!==e?e:"tsparticles"+Math.floor(1e4*Math.random()),{options:n,index:a}=t;let r=null!==(i=t.element)&&void 0!==i?i:document.getElementById(s);r||(r=document.createElement("div"),r.id=s,null===(o=document.querySelector("body"))||void 0===o||o.append(r));const l=n instanceof Array?b(n,a):n,c=this.dom(),h=c.findIndex(t=>t.id===s);if(h>=0){const t=this.domItem(h);t&&!t.destroyed&&(t.destroy(),c.splice(h,1))}let d;if("canvas"===r.tagName.toLowerCase())d=r,d.dataset[K.generatedAttribute]="false";else{const t=r.getElementsByTagName("canvas");t.length?(d=t[0],d.dataset[K.generatedAttribute]="false"):(d=document.createElement("canvas"),d.dataset[K.generatedAttribute]="true",d.style.width="100%",d.style.height="100%",r.appendChild(d))}const u=new Ci(Gi(this,Ai,"f"),s,l);return h>=0?c.splice(h,0,u):c.push(u),u.canvas.loadCanvas(d),await u.start(),u}async loadRemoteOptions(t){const{url:e,index:i}=t,o=e instanceof Array?b(e,i):e;if(!o)return;const s=await fetch(o);if(!s.ok)return n=s.status,console.error("Error tsParticles - fetch status: "+n),void console.error("Error tsParticles - File config not found");var n;const a=await s.json();return this.loadOptions({tagId:t.tagId,element:t.element,index:i,options:a})}load(t,e,i){const o={index:i};return"string"==typeof t?o.tagId=t:o.options=t,"number"==typeof e?o.index=null!=e?e:o.index:o.options=null!=e?e:o.options,this.loadOptions(o)}async set(t,e,i,o){const s={index:o};return"string"==typeof t?s.tagId=t:s.element=t,e instanceof HTMLElement?s.element=e:s.options=e,"number"==typeof i?s.index=i:s.options=null!=i?i:s.options,this.loadOptions(s)}async loadJSON(t,e,i){let o,s;return"number"==typeof e||void 0===e?o=t:(s=t,o=e),this.loadRemoteOptions({tagId:s,url:o,index:i})}async setJSON(t,e,i,o){let s,n,a,r;return t instanceof HTMLElement?(r=t,s=e,a=i):(n=t,r=e,s=i,a=o),this.loadRemoteOptions({tagId:n,url:s,index:a,element:r})}setOnClickHandler(t){const e=this.dom();if(0===e.length)throw new Error("Can only set click handlers after calling tsParticles.load() or tsParticles.loadJSON()");for(const i of e)i.addClickHandler(t)}}Ai=new WeakMap;var Ei,Oi,ki=function(t,e,i,o,s){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?s.call(t,i):s?s.value=i:e.set(t,i),i},Mi=function(t,e,i,o){if("a"===i&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?o:"a"===i?o.call(t):o?o.value:e.get(t)};Ei=new WeakMap,Oi=new WeakMap;class Ri{constructor(){this.radius=0,this.mass=0}load(t){t&&(void 0!==t.mass&&(this.mass=t.mass),void 0!==t.radius&&(this.radius=t.radius))}}class zi extends ce{constructor(){super(),this.density=5,this.random.minimumValue=1,this.value=50,this.limit=new Ri}load(t){t&&(super.load(t),void 0!==t.density&&(this.density=t.density),"number"==typeof t.limit?this.limit.radius=t.limit:this.limit.load(t.limit))}}class Li{constructor(){this.color=new gt,this.color.value="#000000",this.draggable=!1,this.opacity=1,this.destroy=!0,this.orbits=!1,this.size=new zi}load(t){void 0!==t&&(void 0!==t.color&&(this.color=gt.create(this.color,t.color)),void 0!==t.draggable&&(this.draggable=t.draggable),this.name=t.name,void 0!==t.opacity&&(this.opacity=t.opacity),void 0!==t.position&&(this.position={x:t.position.x,y:t.position.y}),void 0!==t.size&&this.size.load(t.size),void 0!==t.destroy&&(this.destroy=t.destroy),void 0!==t.orbits&&(this.orbits=t.orbits))}}class Ii{constructor(t,e,i,o){var s,n,r;this.absorbers=t,this.container=e,this.initialPosition=o?yt.create(o.x,o.y):void 0,i instanceof Li?this.options=i:(this.options=new Li,this.options.load(i)),this.dragging=!1,this.name=this.options.name,this.opacity=this.options.opacity,this.size=a(this.options.size.value)*e.retina.pixelRatio,this.mass=this.size*this.options.size.density*e.retina.reduceFactor;const l=this.options.size.limit;this.limit={radius:l.radius*e.retina.pixelRatio*e.retina.reduceFactor,mass:l.mass},this.color=null!==(s=M(this.options.color))&&void 0!==s?s:{b:0,g:0,r:0},this.position=null!==(r=null===(n=this.initialPosition)||void 0===n?void 0:n.copy())&&void 0!==r?r:this.calcPosition()}attract(t){const e=this.container,i=this.options;if(i.draggable){const t=e.interactivity.mouse;if(t.clicking&&t.downPosition){u(this.position,t.downPosition)<=this.size&&(this.dragging=!0)}else this.dragging=!1;this.dragging&&t.position&&(this.position.x=t.position.x,this.position.y=t.position.y)}const o=t.getPosition(),{dx:s,dy:n,distance:a}=d(this.position,o),r=yt.create(s,n);if(r.length=this.mass/Math.pow(a,2)*e.retina.reduceFactor,at.getRadius()&&a=0?"clockwise":"counter-clockwise");const n=t.absorberOrbit.length,a=t.absorberOrbit.angle,r=t.absorberOrbitDirection;t.velocity.x=0,t.velocity.y=0;const l={x:"clockwise"===r?Math.cos:Math.sin,y:"clockwise"===r?Math.sin:Math.cos};t.position.x=this.position.x+n*l.x(a),t.position.y=this.position.y+n*l.y(a),t.absorberOrbit.length-=e.length,t.absorberOrbit.angle+=(null!==(i=t.retina.moveSpeed)&&void 0!==i?i:0)*o.retina.pixelRatio/100*o.retina.reduceFactor}else{const i=yt.origin;i.length=e.length,i.angle=e.angle,t.velocity.addTo(i)}}}class Hi{constructor(t){this.container=t,this.array=[],this.absorbers=[],this.interactivityAbsorbers=[];const e=t;e.getAbsorber=t=>void 0===t||"number"==typeof t?this.array[t||0]:this.array.find(e=>e.name===t),e.addAbsorber=(t,e)=>this.addAbsorber(t,e)}init(t){var e,i;if(!t)return;t.absorbers&&(t.absorbers instanceof Array?this.absorbers=t.absorbers.map(t=>{const e=new Li;return e.load(t),e}):(this.absorbers instanceof Array&&(this.absorbers=new Li),this.absorbers.load(t.absorbers)));const o=null===(i=null===(e=t.interactivity)||void 0===e?void 0:e.modes)||void 0===i?void 0:i.absorbers;if(o&&(o instanceof Array?this.interactivityAbsorbers=o.map(t=>{const e=new Li;return e.load(t),e}):(this.interactivityAbsorbers instanceof Array&&(this.interactivityAbsorbers=new Li),this.interactivityAbsorbers.load(o))),this.absorbers instanceof Array)for(const t of this.absorbers)this.addAbsorber(t);else this.addAbsorber(this.absorbers)}particleUpdate(t){for(const e of this.array)if(e.attract(t),t.destroyed)break}draw(t){for(const e of this.array)t.save(),e.draw(t),t.restore()}stop(){this.array=[]}resize(){for(const t of this.array)t.resize()}handleClickMode(t){const e=this.container,i=this.absorbers,o=this.interactivityAbsorbers;if("absorber"===t){let t;o instanceof Array?o.length>0&&(t=b(o)):t=o;const s=null!=t?t:i instanceof Array?b(i):i,n=e.interactivity.mouse.clickPosition;this.addAbsorber(s,n)}}addAbsorber(t,e){const i=new Ii(this,this.container,t,e);return this.array.push(i),i}removeAbsorber(t){const e=this.array.indexOf(t);e>=0&&this.array.splice(e,1)}}class Di{constructor(){this.id="absorbers"}getPlugin(t){return new Hi(t)}needsPlugin(t){var e,i,o;if(void 0===t)return!1;const s=t.absorbers;let n=!1;return s instanceof Array?s.length&&(n=!0):(void 0!==s||(null===(o=null===(i=null===(e=t.interactivity)||void 0===e?void 0:e.events)||void 0===i?void 0:i.onClick)||void 0===o?void 0:o.mode)&&g("absorber",t.interactivity.events.onClick.mode))&&(n=!0),n}loadOptions(t,e){var i,o;if(!this.needsPlugin(t)&&!this.needsPlugin(e))return;const s=t;if(null==e?void 0:e.absorbers)if((null==e?void 0:e.absorbers)instanceof Array)s.absorbers=null==e?void 0:e.absorbers.map(t=>{const e=new Li;return e.load(t),e});else{let t=s.absorbers;void 0===(null==t?void 0:t.load)&&(s.absorbers=t=new Li),t.load(null==e?void 0:e.absorbers)}const n=null===(o=null===(i=null==e?void 0:e.interactivity)||void 0===i?void 0:i.modes)||void 0===o?void 0:o.absorbers;if(n)if(n instanceof Array)s.interactivity.modes.absorbers=n.map(t=>{const e=new Li;return e.load(t),e});else{let t=s.interactivity.modes.absorbers;void 0===(null==t?void 0:t.load)&&(s.interactivity.modes.absorbers=t=new Li),t.load(n)}}}class Ni{randomPosition(t,e,i){const[o,s]=[e.width/2,e.height/2],n=((t,e)=>{const i=Math.random()/4,o=Math.atan(e/t*Math.tan(2*Math.PI*i)),s=Math.random();return s<.25?o:s<.5?Math.PI-o:s<.75?Math.PI+o:-o})(o,s),a=(h=n,(l=o)*(c=s)/Math.sqrt((c*Math.cos(h))**2+(l*Math.sin(h))**2)),r=i?a*Math.sqrt(Math.random()):a;var l,c,h;return{x:t.x+r*Math.cos(n),y:t.y+r*Math.sin(n)}}}class ji{constructor(){this.wait=!1}load(t){void 0!==t&&(void 0!==t.count&&(this.count=t.count),void 0!==t.delay&&(this.delay=t.delay),void 0!==t.duration&&(this.duration=t.duration),void 0!==t.wait&&(this.wait=t.wait))}}class Fi{constructor(){this.quantity=1,this.delay=.1}load(t){void 0!==t&&(void 0!==t.quantity&&(this.quantity=c(t.quantity)),void 0!==t.delay&&(this.delay=c(t.delay)))}}class Bi{constructor(){this.mode="percent",this.height=0,this.width=0}load(t){void 0!==t&&(void 0!==t.mode&&(this.mode=t.mode),void 0!==t.height&&(this.height=t.height),void 0!==t.width&&(this.width=t.width))}}class qi{constructor(){this.autoPlay=!0,this.fill=!0,this.life=new ji,this.rate=new Fi,this.shape="square",this.startCount=0}load(t){void 0!==t&&(void 0!==t.autoPlay&&(this.autoPlay=t.autoPlay),void 0!==t.size&&(void 0===this.size&&(this.size=new Bi),this.size.load(t.size)),void 0!==t.direction&&(this.direction=t.direction),this.domId=t.domId,void 0!==t.fill&&(this.fill=t.fill),this.life.load(t.life),this.name=t.name,void 0!==t.particles&&(this.particles=_({},t.particles)),this.rate.load(t.rate),void 0!==t.shape&&(this.shape=t.shape),void 0!==t.position&&(this.position={x:t.position.x,y:t.position.y}),void 0!==t.spawnColor&&(void 0===this.spawnColor&&(this.spawnColor=new ee),this.spawnColor.load(t.spawnColor)),void 0!==t.startCount&&(this.startCount=t.startCount))}}var Ui,Wi,Qi,$i=function(t,e,i,o,s){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?s.call(t,i):s?s.value=i:e.set(t,i),i},Zi=function(t,e,i,o){if("a"===i&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?o:"a"===i?o.call(t):o?o.value:e.get(t)};class Xi{constructor(t,e,i,o,s){var n,a,r,l,c,h,d;this.emitters=e,this.container=i,Ui.set(this,void 0),Wi.set(this,void 0),Qi.set(this,void 0),$i(this,Qi,t,"f"),this.currentDuration=0,this.currentEmitDelay=0,this.currentSpawnDelay=0,this.initialPosition=s,o instanceof qi?this.options=o:(this.options=new qi,this.options.load(o)),this.spawnDelay=1e3*(null!==(n=this.options.life.delay)&&void 0!==n?n:0)/this.container.retina.reduceFactor,this.name=this.options.name,this.shape=null===(a=Zi(this,Qi,"f").emitterShapeManager)||void 0===a?void 0:a.getShape(this.options.shape),this.fill=this.options.fill,$i(this,Ui,!this.options.life.wait,"f"),$i(this,Wi,!1,"f");let u=_({},this.options.particles);null!=u||(u={}),null!==(r=u.move)&&void 0!==r||(u.move={}),null!==(l=(d=u.move).direction)&&void 0!==l||(d.direction=this.options.direction),this.options.spawnColor&&(this.spawnColor=R(this.options.spawnColor)),this.paused=!this.options.autoPlay,this.particlesOptions=u,this.size=null!==(c=this.options.size)&&void 0!==c?c:(()=>{const t=new Bi;return t.load({height:0,mode:"percent",width:0}),t})(),this.lifeCount=null!==(h=this.options.life.count)&&void 0!==h?h:-1,this.immortal=this.lifeCount<=0,this.play()}externalPlay(){this.paused=!1,this.play()}externalPause(){this.paused=!0,this.pause()}play(){var t;if(!this.paused&&this.container.retina.reduceFactor&&(this.lifeCount>0||this.immortal||!this.options.life.count)&&(Zi(this,Ui,"f")||this.currentSpawnDelay>=(null!==(t=this.spawnDelay)&&void 0!==t?t:0))){if(void 0===this.emitDelay){const t=a(this.options.rate.delay);this.emitDelay=1e3*t/this.container.retina.reduceFactor}(this.lifeCount>0||this.immortal)&&this.prepareToDie()}}pause(){this.paused||delete this.emitDelay}resize(){const t=this.initialPosition;this.position=t&&S(t,this.container.canvas.size)?t:this.calcPosition()}update(t){var e,i,o;this.paused||(Zi(this,Ui,"f")&&($i(this,Ui,!1,"f"),this.currentSpawnDelay=null!==(e=this.spawnDelay)&&void 0!==e?e:0,this.currentEmitDelay=null!==(i=this.emitDelay)&&void 0!==i?i:0),Zi(this,Wi,"f")||($i(this,Wi,!0,"f"),this.emitParticles(this.options.startCount)),void 0!==this.duration&&(this.currentDuration+=t.value,this.currentDuration>=this.duration&&(this.pause(),void 0!==this.spawnDelay&&delete this.spawnDelay,this.immortal||this.lifeCount--,this.lifeCount>0||this.immortal?(this.position=this.calcPosition(),this.spawnDelay=1e3*(null!==(o=this.options.life.delay)&&void 0!==o?o:0)/this.container.retina.reduceFactor):this.destroy(),this.currentDuration-=this.duration,delete this.duration)),void 0!==this.spawnDelay&&(this.currentSpawnDelay+=t.value,this.currentSpawnDelay>=this.spawnDelay&&(this.play(),this.currentSpawnDelay-=this.currentSpawnDelay,delete this.spawnDelay)),void 0!==this.emitDelay&&(this.currentEmitDelay+=t.value,this.currentEmitDelay>=this.emitDelay&&(this.emit(),this.currentEmitDelay-=this.emitDelay)))}getPosition(){if(this.options.domId){const t=this.container,e=document.getElementById(this.options.domId);if(e){const i=e.getBoundingClientRect();return{x:(i.x+i.width/2)*t.retina.pixelRatio,y:(i.y+i.height/2)*t.retina.pixelRatio}}}return this.position}getSize(){const t=this.container;if(this.options.domId){const e=document.getElementById(this.options.domId);if(e){const i=e.getBoundingClientRect();return{width:i.width*t.retina.pixelRatio,height:i.height*t.retina.pixelRatio}}}return{width:"percent"===this.size.mode?t.canvas.size.width*this.size.width/100:this.size.width,height:"percent"===this.size.mode?t.canvas.size.height*this.size.height/100:this.size.height}}prepareToDie(){var t;if(this.paused)return;const e=null===(t=this.options.life)||void 0===t?void 0:t.duration;this.container.retina.reduceFactor&&(this.lifeCount>0||this.immortal)&&void 0!==e&&e>0&&(this.duration=1e3*e)}destroy(){this.emitters.removeEmitter(this)}calcPosition(){var t,e;const i=this.container,o=this.options.position;return{x:(null!==(t=null==o?void 0:o.x)&&void 0!==t?t:100*Math.random())/100*i.canvas.size.width,y:(null!==(e=null==o?void 0:o.y)&&void 0!==e?e:100*Math.random())/100*i.canvas.size.height}}emit(){if(this.paused)return;const t=a(this.options.rate.quantity);this.emitParticles(t)}emitParticles(t){var e,i,o;const s=this.container,n=this.getPosition(),a=this.getSize();for(let r=0;rvoid 0===t||"number"==typeof t?this.array[t||0]:this.array.find(e=>e.name===t),i.addEmitter=(t,e)=>this.addEmitter(t,e),i.removeEmitter=t=>{const e=i.getEmitter(t);e&&this.removeEmitter(e)},i.playEmitter=t=>{const e=i.getEmitter(t);e&&e.externalPlay()},i.pauseEmitter=t=>{const e=i.getEmitter(t);e&&e.externalPause()}}init(t){var e,i;if(!t)return;t.emitters&&(t.emitters instanceof Array?this.emitters=t.emitters.map(t=>{const e=new qi;return e.load(t),e}):(this.emitters instanceof Array&&(this.emitters=new qi),this.emitters.load(t.emitters)));const o=null===(i=null===(e=t.interactivity)||void 0===e?void 0:e.modes)||void 0===i?void 0:i.emitters;if(o&&(o instanceof Array?this.interactivityEmitters=o.map(t=>{const e=new qi;return e.load(t),e}):(this.interactivityEmitters instanceof Array&&(this.interactivityEmitters=new qi),this.interactivityEmitters.load(o))),this.emitters instanceof Array)for(const t of this.emitters)this.addEmitter(t);else this.addEmitter(this.emitters)}play(){for(const t of this.array)t.play()}pause(){for(const t of this.array)t.pause()}stop(){this.array=[]}update(t){for(const e of this.array)e.update(t)}handleClickMode(t){const e=this.container,i=this.emitters,o=this.interactivityEmitters;if("emitter"===t){let t;o instanceof Array?o.length>0&&(t=b(o)):t=o;const s=null!=t?t:i instanceof Array?b(i):i,n=e.interactivity.mouse.clickPosition;this.addEmitter(_({},s),n)}}resize(){for(const t of this.array)t.resize()}addEmitter(t,e){const i=new qi;i.load(t);const o=new Xi(Ki(this,Ji,"f"),this,this.container,i,e);return this.array.push(o),o}removeEmitter(t){const e=this.array.indexOf(t);e>=0&&this.array.splice(e,1)}}Ji=new WeakMap;var eo,io=function(t,e,i,o,s){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?s.call(t,i):s?s.value=i:e.set(t,i),i};const oo=new Map;class so{constructor(t){eo.set(this,void 0),io(this,eo,t,"f")}addShape(t,e){this.getShape(t)||oo.set(t,e)}getShape(t){return oo.get(t)}getSupportedShapes(){return oo.keys()}}function no(t,e){return t+e*(Math.random()-.5)}eo=new WeakMap;class ao{randomPosition(t,e,i){if(i)return{x:no(t.x,e.width),y:no(t.y,e.height)};{const i=e.width/2,o=e.height/2,s=Math.floor(4*Math.random()),n=2*(Math.random()-.5);switch(s){case 0:return{x:t.x+n*i,y:t.y-o};case 1:return{x:t.x-i,y:t.y+n*o};case 2:return{x:t.x+n*i,y:t.y+o};case 3:default:return{x:t.x+i,y:t.y+n*o}}}}}var ro,lo=function(t,e,i,o,s){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?s.call(t,i):s?s.value=i:e.set(t,i),i},co=function(t,e,i,o){if("a"===i&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?o:"a"===i?o.call(t):o?o.value:e.get(t)};class ho{constructor(t){ro.set(this,void 0),lo(this,ro,t,"f"),this.id="emitters"}getPlugin(t){return new to(co(this,ro,"f"),t)}needsPlugin(t){var e,i,o;if(void 0===t)return!1;const s=t.emitters;return s instanceof Array&&!!s.length||void 0!==s||!!(null===(o=null===(i=null===(e=t.interactivity)||void 0===e?void 0:e.events)||void 0===i?void 0:i.onClick)||void 0===o?void 0:o.mode)&&g("emitter",t.interactivity.events.onClick.mode)}loadOptions(t,e){var i,o;if(!this.needsPlugin(t)&&!this.needsPlugin(e))return;const s=t;if(null==e?void 0:e.emitters)if((null==e?void 0:e.emitters)instanceof Array)s.emitters=null==e?void 0:e.emitters.map(t=>{const e=new qi;return e.load(t),e});else{let t=s.emitters;void 0===(null==t?void 0:t.load)&&(s.emitters=t=new qi),t.load(null==e?void 0:e.emitters)}const n=null===(o=null===(i=null==e?void 0:e.interactivity)||void 0===i?void 0:i.modes)||void 0===o?void 0:o.emitters;if(n)if(n instanceof Array)s.interactivity.modes.emitters=n.map(t=>{const e=new qi;return e.load(t),e});else{let t=s.interactivity.modes.emitters;void 0===(null==t?void 0:t.load)&&(s.interactivity.modes.emitters=t=new qi),t.load(n)}}}ro=new WeakMap;class uo extends it{constructor(t){super(t),this.delay=0}interact(t){var e,i,o,s;if(!this.container.retina.reduceFactor)return;const n=this.container,a=n.actualOptions.interactivity.modes.trail,r=1e3*a.delay/this.container.retina.reduceFactor;if(this.delay=0&&r<=1};return r<0?(l.x=t.x,l.y=t.y):r>1&&(l.x=e.x,l.y=e.y),l}function Po(t,e,i){const{dx:o,dy:s}=d(t,e),n=Math.atan2(s,o),a=yt.create(Math.sin(n),-Math.cos(n)),r=2*(i.x*a.x+i.y*a.y);a.multTo(r),i.subFrom(a)}class _o{constructor(t){this.container=t,this.dimension={height:0,width:0},this.path2DSupported=!!window.Path2D,this.options=new go,this.polygonMaskMoveRadius=this.options.move.radius*t.retina.pixelRatio}async initAsync(t){this.options.load(null==t?void 0:t.polygon);const e=this.options;this.polygonMaskMoveRadius=e.move.radius*this.container.retina.pixelRatio,e.enable&&await this.initRawData()}resize(){const t=this.container,e=this.options;e.enable&&"none"!==e.type&&(this.redrawTimeout&&clearTimeout(this.redrawTimeout),this.redrawTimeout=window.setTimeout(async()=>{await this.initRawData(!0),t.particles.redraw()},250))}stop(){delete this.raw,delete this.paths}particlesInitialization(){const t=this.options;return!(!t.enable||"inline"!==t.type||"one-per-point"!==t.inline.arrangement&&"per-point"!==t.inline.arrangement)&&(this.drawPoints(),!0)}particlePosition(t){var e,i;if(this.options.enable&&(null!==(i=null===(e=this.raw)||void 0===e?void 0:e.length)&&void 0!==i?i:0)>0)return _({},t||this.randomPoint())}particleBounce(t,e,i){return this.polygonBounce(t,e,i)}clickPositionValid(t){const e=this.options;return e.enable&&"none"!==e.type&&"inline"!==e.type&&this.checkInsidePolygon(t)}draw(t){var e;if(!(null===(e=this.paths)||void 0===e?void 0:e.length))return;const i=this.options,o=i.draw;if(!i.enable||!o.enable)return;const s=this.raw;for(const e of this.paths){const i=e.path2d,n=this.path2DSupported;t&&(n&&i&&this.offset?bo(t,i,o.stroke,this.offset):s&&mo(t,s,o.stroke))}}polygonBounce(t,e,i){const o=this.options;if(!this.raw||!o.enable||"top"!==i)return!1;if("inside"===o.type||"outside"===o.type){let e,i,o;const s=t.getPosition(),n=t.getRadius();for(let a=0,r=this.raw.length-1;a=e.x&&(i.x=-1),t.position.y>=e.y&&(i.y=-1),t.position.x=e.x+2*n*i.x,t.position.y=e.y+2*n*i.y,t.velocity.mult(-1),!0}}else if("inline"===o.type&&t.initialPosition){if(u(t.initialPosition,t.getPosition())>this.polygonMaskMoveRadius)return t.velocity.x=t.velocity.y/2-t.velocity.x,t.velocity.y=t.velocity.x/2-t.velocity.y,!0}return!1}checkInsidePolygon(t){var e,i;const o=this.container,s=this.options;if(!s.enable||"none"===s.type||"inline"===s.type)return!0;if(!this.raw)throw new Error(K.noPolygonFound);const n=o.canvas.size,a=null!==(e=null==t?void 0:t.x)&&void 0!==e?e:Math.random()*n.width,r=null!==(i=null==t?void 0:t.y)&&void 0!==i?i:Math.random()*n.height;let l=!1;for(let t=0,e=this.raw.length-1;tr!=o.y>r&&a<(o.x-i.x)*(r-i.y)/(o.y-i.y)+i.x&&(l=!l)}return"inside"===s.type?l:"outside"===s.type&&!l}parseSvgPath(t,e){var i,o,s;const n=null!=e&&e;if(void 0!==this.paths&&!n)return this.raw;const a=this.container,r=this.options,l=(new DOMParser).parseFromString(t,"image/svg+xml"),c=l.getElementsByTagName("svg")[0];let h=c.getElementsByTagName("path");h.length||(h=l.getElementsByTagName("path")),this.paths=[];for(let t=0;tt+e.length,0)/l.particles.number.value;for(const e of this.paths){const i=u*t-d;if(i<=e.length){h=e.element.getPointAtLength(i);break}d+=e.length}return{x:(null!==(i=null==h?void 0:h.x)&&void 0!==i?i:0)*c.scale+(null!==(s=null===(o=this.offset)||void 0===o?void 0:o.x)&&void 0!==s?s:0),y:(null!==(n=null==h?void 0:h.y)&&void 0!==n?n:0)*c.scale+(null!==(r=null===(a=this.offset)||void 0===a?void 0:a.y)&&void 0!==r?r:0)}}getPointByIndex(t){if(!this.raw||!this.raw.length)throw new Error(K.noPolygonDataLoaded);const e=this.raw[t%this.raw.length];return{x:e.x,y:e.y}}createPath2D(){var t,e;const i=this.options;if(this.path2DSupported&&(null===(t=this.paths)||void 0===t?void 0:t.length))for(const t of this.paths){const o=null===(e=t.element)||void 0===e?void 0:e.getAttribute("d");if(o){const e=new Path2D(o),s=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGMatrix(),n=new Path2D,a=s.scale(i.scale);n.addPath?(n.addPath(e,a),t.path2d=n):delete t.path2d}else delete t.path2d;!t.path2d&&this.raw&&(t.path2d=new Path2D,t.path2d.moveTo(this.raw[0].x,this.raw[0].y),this.raw.forEach((e,i)=>{var o;i>0&&(null===(o=t.path2d)||void 0===o||o.lineTo(e.x,e.y))}),t.path2d.closePath())}}async initRawData(t){const e=this.options;if(e.url)this.raw=await this.downloadSvgPath(e.url,t);else if(e.data){const i=e.data;let o;if("string"!=typeof i){const t=i.path instanceof Array?i.path.map(t=>``).join(""):``;o=`${t}`}else o=i;this.raw=this.parseSvgPath(o,t)}this.createPath2D()}}class xo{constructor(){this.id="polygonMask"}getPlugin(t){return new _o(t)}needsPlugin(t){var e,i,o;return null!==(i=null===(e=null==t?void 0:t.polygon)||void 0===e?void 0:e.enable)&&void 0!==i?i:void 0!==(null===(o=null==t?void 0:t.polygon)||void 0===o?void 0:o.type)&&"none"!==t.polygon.type}loadOptions(t,e){if(!this.needsPlugin(e))return;const i=t;let o=i.polygon;void 0===(null==o?void 0:o.load)&&(i.polygon=o=new go),o.load(null==e?void 0:e.polygon)}}class Co{init(t){const e=t.options.roll;if(e.enable)if(t.roll={angle:Math.random()*Math.PI*2,speed:a(e.speed)/360},e.backColor)t.backColor=R(e.backColor);else if(e.darken.enable&&e.enlighten.enable){const i=Math.random()>=.5?"darken":"enlighten";t.roll.alter={type:i,value:"darken"===i?e.darken.value:e.enlighten.value}}else e.darken.enable?t.roll.alter={type:"darken",value:e.darken.value}:e.enlighten.enable&&(t.roll.alter={type:"enlighten",value:e.enlighten.value});else t.roll={angle:0,speed:0}}isEnabled(t){const e=t.options.roll;return!t.destroyed&&!t.spawning&&e.enable}update(t,e){this.isEnabled(t)&&function(t,e){const i=t.options.roll;if(!t.roll||!i.enable)return;const o=t.roll.speed*e.factor,s=2*Math.PI;t.roll.angle+=o,t.roll.angle>s&&(t.roll.angle-=s)}(t,e)}}class Ao{constructor(t){this.container=t}init(t){const e=t.options.rotate;t.rotate={enable:e.animation.enable,value:a(e.value)*Math.PI/180};let i=e.direction;if("random"===i){i=Math.floor(2*Math.random())>0?"counter-clockwise":"clockwise"}switch(i){case"counter-clockwise":case"counterClockwise":t.rotate.status=1;break;case"clockwise":t.rotate.status=0}const o=t.options.rotate.animation;o.enable&&(t.rotate.velocity=o.speed/360*this.container.retina.reduceFactor,o.sync||(t.rotate.velocity*=Math.random()))}isEnabled(t){const e=t.options.rotate,i=e.animation;return!t.destroyed&&!t.spawning&&!e.path&&i.enable}update(t,e){this.isEnabled(t)&&function(t,e){var i;const o=t.rotate;if(!o)return;const s=t.options.rotate.animation,n=(null!==(i=o.velocity)&&void 0!==i?i:0)*e.factor,a=2*Math.PI;if(s.enable)switch(o.status){case 0:o.value+=n,o.value>a&&(o.value-=a);break;case 1:default:o.value-=n,o.value<0&&(o.value+=a)}}(t,e)}}class Vo{getSidesCount(){return 12}draw(t,e,i){t.arc(0,0,i,0,2*Math.PI,!1)}}function Go(t,e,i,o,s){var a;const r=e;if(!r||!i.enable)return;const l=n(i.offset),c=(null!==(a=e.velocity)&&void 0!==a?a:0)*t.factor+3.6*l;s&&0!==r.status?(r.value-=c,r.value<0&&(r.status=0,r.value+=r.value)):(r.value+=c,s&&r.value>o&&(r.status=1,r.value-=r.value%o)),r.value>o&&(r.value%=o)}class To{constructor(t){this.container=t}init(t){const e=R(t.options.color,t.id,t.options.reduceDuplicates);e&&(t.color=U(e,t.options.color.animation,this.container.retina.reduceFactor))}isEnabled(t){var e,i,o;const s=t.options.color.animation;return!t.destroyed&&!t.spawning&&(void 0!==(null===(e=t.color)||void 0===e?void 0:e.h.value)&&s.h.enable||void 0!==(null===(i=t.color)||void 0===i?void 0:i.s.value)&&s.s.enable||void 0!==(null===(o=t.color)||void 0===o?void 0:o.l.value)&&s.l.enable)}update(t,e){!function(t,e){var i,o,s;const n=t.options.color.animation;void 0!==(null===(i=t.color)||void 0===i?void 0:i.h)&&Go(e,t.color.h,n.h,360,!1),void 0!==(null===(o=t.color)||void 0===o?void 0:o.s)&&Go(e,t.color.s,n.s,100,!0),void 0!==(null===(s=t.color)||void 0===s?void 0:s.l)&&Go(e,t.color.l,n.l,100,!0)}(t,e)}}class Eo extends it{constructor(t){super(t)}isEnabled(){const t=this.container,e=t.actualOptions,i=t.interactivity.mouse,o=e.interactivity.events;if(!(i.position&&o.onHover.enable||i.clickPosition&&o.onClick.enable))return!1;const s=o.onHover.mode,n=o.onClick.mode;return g("attract",s)||g("attract",n)}reset(){}interact(){const t=this.container,e=t.actualOptions,i=t.interactivity.status===K.mouseMoveEvent,o=e.interactivity.events,s=o.onHover.enable,n=o.onHover.mode,a=o.onClick.enable,r=o.onClick.mode;i&&s&&g("attract",n)?this.hoverAttract():a&&g("attract",r)&&this.clickAttract()}hoverAttract(){const t=this.container,e=t.interactivity.mouse.position;if(!e)return;const i=t.retina.attractModeDistance;this.processAttract(e,i,new X(e.x,e.y,i))}processAttract(t,e,i){const s=this.container,n=s.actualOptions.interactivity.modes.attract,a=s.particles.quadTree.query(i);for(const i of a){const{dx:s,dy:a,distance:r}=d(i.position,t),l=n.speed*n.factor,c=o(v(1-r/e,n.easing)*l,0,n.maxSpeed),h=yt.create(0===r?l:s/r*c,0===r?l:a/r*c);i.position.subFrom(h)}}clickAttract(){const t=this.container;if(t.attract.finish||(t.attract.count||(t.attract.count=0),t.attract.count++,t.attract.count===t.particles.count&&(t.attract.finish=!0)),t.attract.clicking){const e=t.interactivity.mouse.clickPosition;if(!e)return;const i=t.retina.attractModeDistance;this.processAttract(e,i,new X(e.x,e.y,i))}else!1===t.attract.clicking&&(t.attract.particles=[])}}class Oo extends it{constructor(t){super(t)}isEnabled(){const t=this.container,e=t.actualOptions,i=t.interactivity.mouse,o=e.interactivity.events,s=o.onDiv;return i.position&&o.onHover.enable&&g("bounce",o.onHover.mode)||x("bounce",s)}interact(){const t=this.container,e=t.actualOptions.interactivity.events,i=t.interactivity.status===K.mouseMoveEvent,o=e.onHover.enable,s=e.onHover.mode,n=e.onDiv;i&&o&&g("bounce",s)?this.processMouseBounce():C("bounce",n,(t,e)=>this.singleSelectorBounce(t,e))}reset(){}processMouseBounce(){const t=this.container,e=10*t.retina.pixelRatio,i=t.interactivity.mouse.position,o=t.retina.bounceModeDistance;i&&this.processBounce(i,o,new X(i.x,i.y,o+e))}singleSelectorBounce(t,e){const i=this.container,o=document.querySelectorAll(t);o.length&&o.forEach(t=>{const o=t,s=i.retina.pixelRatio,n={x:(o.offsetLeft+o.offsetWidth/2)*s,y:(o.offsetTop+o.offsetHeight/2)*s},a=o.offsetWidth/2*s,r=10*s,l="circle"===e.type?new X(n.x,n.y,a+r):new J(o.offsetLeft*s-r,o.offsetTop*s-r,o.offsetWidth*s+2*r,o.offsetHeight*s+2*r);this.processBounce(n,a,l)})}processBounce(t,e,i){const o=this.container.particles.quadTree.query(i);for(const s of o)i instanceof X?T(G(s),{position:t,radius:e,mass:e**2*Math.PI/2,velocity:yt.origin,factor:yt.origin}):i instanceof J&&E(s,P(t,e))}}function ko(t,e,i,s){if(e>=i){return o(t+(e-i)*s,t,e)}if(ethis.singleSelectorHover(t,e))}singleSelectorHover(t,e){const i=this.container,o=document.querySelectorAll(t);o.length&&o.forEach(t=>{const o=t,s=i.retina.pixelRatio,n={x:(o.offsetLeft+o.offsetWidth/2)*s,y:(o.offsetTop+o.offsetHeight/2)*s},a=o.offsetWidth/2*s,r="circle"===e.type?new X(n.x,n.y,a):new J(o.offsetLeft*s,o.offsetTop*s,o.offsetWidth*s,o.offsetHeight*s),l=i.particles.quadTree.query(r);for(const t of l){if(!r.contains(t.getPosition()))continue;t.bubble.inRange=!0;const e=V(i.actualOptions.interactivity.modes.bubble.divs,o);t.bubble.div&&t.bubble.div===o||(this.reset(t,!0),t.bubble.div=o),this.hoverBubbleSize(t,1,e),this.hoverBubbleOpacity(t,1,e),this.hoverBubbleColor(t,1,e)}})}process(t,e,i,o){const s=this.container,n=o.bubbleObj.optValue;if(void 0===n)return;const a=s.actualOptions.interactivity.modes.bubble.duration,r=s.retina.bubbleModeDistance,l=o.particlesObj.optValue,c=o.bubbleObj.value,h=o.particlesObj.value||0,d=o.type;if(n!==l)if(s.bubble.durationEnd)c&&("size"===d&&delete t.bubble.radius,"opacity"===d&&delete t.bubble.opacity);else if(e<=r){if((null!=c?c:h)!==n){const e=h-i*(h-n)/a;"size"===d&&(t.bubble.radius=e),"opacity"===d&&(t.bubble.opacity=e)}}else"size"===d&&delete t.bubble.radius,"opacity"===d&&delete t.bubble.opacity}clickBubble(){var t,e;const i=this.container,o=i.actualOptions,s=i.interactivity.mouse.clickPosition;if(!s)return;const n=i.retina.bubbleModeDistance,a=i.particles.quadTree.queryCircle(s,n);for(const n of a){if(!i.bubble.clicking)continue;n.bubble.inRange=!i.bubble.durationEnd;const a=u(n.getPosition(),s),r=((new Date).getTime()-(i.interactivity.mouse.clickTime||0))/1e3;r>o.interactivity.modes.bubble.duration&&(i.bubble.durationEnd=!0),r>2*o.interactivity.modes.bubble.duration&&(i.bubble.clicking=!1,i.bubble.durationEnd=!1);const c={bubbleObj:{optValue:i.retina.bubbleModeSize,value:n.bubble.radius},particlesObj:{optValue:l(n.options.size.value)*i.retina.pixelRatio,value:n.size.value},type:"size"};this.process(n,a,r,c);const h={bubbleObj:{optValue:o.interactivity.modes.bubble.opacity,value:n.bubble.opacity},particlesObj:{optValue:l(n.options.opacity.value),value:null!==(e=null===(t=n.opacity)||void 0===t?void 0:t.value)&&void 0!==e?e:1},type:"opacity"};this.process(n,a,r,h),i.bubble.durationEnd?delete n.bubble.color:a<=i.retina.bubbleModeDistance?this.hoverBubbleColor(n,a):delete n.bubble.color}}hoverBubble(){const t=this.container,e=t.interactivity.mouse.position;if(void 0===e)return;const i=t.retina.bubbleModeDistance,o=t.particles.quadTree.queryCircle(e,i);for(const s of o){s.bubble.inRange=!0;const o=u(s.getPosition(),e),n=1-o/i;o<=i?n>=0&&t.interactivity.status===K.mouseMoveEvent&&(this.hoverBubbleSize(s,n),this.hoverBubbleOpacity(s,n),this.hoverBubbleColor(s,n)):this.reset(s),t.interactivity.status===K.mouseLeaveEvent&&this.reset(s)}}hoverBubbleSize(t,e,i){const o=this.container,s=(null==i?void 0:i.size)?i.size*o.retina.pixelRatio:o.retina.bubbleModeSize;if(void 0===s)return;const n=l(t.options.size.value)*o.retina.pixelRatio,a=ko(t.size.value,s,n,e);void 0!==a&&(t.bubble.radius=a)}hoverBubbleOpacity(t,e,i){var o,s,n;const a=this.container.actualOptions,r=null!==(o=null==i?void 0:i.opacity)&&void 0!==o?o:a.interactivity.modes.bubble.opacity;if(!r)return;const c=t.options.opacity.value,h=ko(null!==(n=null===(s=t.opacity)||void 0===s?void 0:s.value)&&void 0!==n?n:1,r,l(c),e);void 0!==h&&(t.bubble.opacity=h)}hoverBubbleColor(t,e,i){const o=this.container.actualOptions,s=null!=i?i:o.interactivity.modes.bubble;if(!t.bubble.finalColor){const e=s.color;if(!e)return;const i=e instanceof Array?b(e):e;t.bubble.finalColor=R(i)}if(t.bubble.finalColor)if(s.mix){t.bubble.color=void 0;const i=t.getFillColor();t.bubble.color=i?z(j(i,t.bubble.finalColor,1-e,e)):t.bubble.finalColor}else t.bubble.color=t.bubble.finalColor}}class Ro extends it{constructor(t){super(t)}isEnabled(){const t=this.container,e=t.interactivity.mouse,i=t.actualOptions.interactivity.events;return!(!i.onHover.enable||!e.position)&&g("connect",i.onHover.mode)}reset(){}interact(){const t=this.container;if(t.actualOptions.interactivity.events.onHover.enable&&"mousemove"===t.interactivity.status){const e=t.interactivity.mouse.position;if(!e)return;const i=Math.abs(t.retina.connectModeRadius),o=t.particles.quadTree.queryCircle(e,i);let s=0;for(const e of o){const i=e.getPosition();for(const n of o.slice(s+1)){const o=n.getPosition(),s=Math.abs(t.retina.connectModeDistance),a=Math.abs(i.x-o.x),r=Math.abs(i.y-o.y);athis.singleSelectorRepulse(t,e))}singleSelectorRepulse(t,e){const i=this.container,o=document.querySelectorAll(t);o.length&&o.forEach(t=>{const o=t,s=i.retina.pixelRatio,n={x:(o.offsetLeft+o.offsetWidth/2)*s,y:(o.offsetTop+o.offsetHeight/2)*s},a=o.offsetWidth/2*s,r="circle"===e.type?new X(n.x,n.y,a):new J(o.offsetLeft*s,o.offsetTop*s,o.offsetWidth*s,o.offsetHeight*s),l=V(i.actualOptions.interactivity.modes.repulse.divs,o);this.processRepulse(n,a,r,l)})}hoverRepulse(){const t=this.container,e=t.interactivity.mouse.position;if(!e)return;const i=t.retina.repulseModeDistance;this.processRepulse(e,i,new X(e.x,e.y,i))}processRepulse(t,e,i,s){var n;const a=this.container,r=a.particles.quadTree.query(i),l=a.actualOptions.interactivity.modes.repulse;for(const i of r){const{dx:a,dy:r,distance:c}=d(i.position,t),h=(null!==(n=null==s?void 0:s.speed)&&void 0!==n?n:l.speed)*l.factor,u=o(v(1-c/e,l.easing)*h,0,l.maxSpeed),p=yt.create(0===c?h:a/c*u,0===c?h:r/c*u);i.position.addTo(p)}}clickRepulse(){const t=this.container;if(t.repulse.finish||(t.repulse.count||(t.repulse.count=0),t.repulse.count++,t.repulse.count===t.particles.count&&(t.repulse.finish=!0)),t.repulse.clicking){const e=t.retina.repulseModeDistance,i=Math.pow(e/6,3),o=t.interactivity.mouse.clickPosition;if(void 0===o)return;const s=new X(o.x,o.y,i),n=t.particles.quadTree.query(s);for(const e of n){const{dx:s,dy:n,distance:a}=d(o,e.position),r=a**2,l=t.actualOptions.interactivity.modes.repulse.speed,c=-i*l/r;if(r<=i){t.repulse.particles.push(e);const i=yt.create(s,n);i.length=c,e.velocity.setTo(i)}}}else if(!1===t.repulse.clicking){for(const e of t.repulse.particles)e.velocity.setTo(e.initialVelocity);t.repulse.particles=[]}}}const Io=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d.]+%?\))|currentcolor/gi;async function Ho(t){return new Promise(e=>{t.loading=!0;const i=new Image;i.addEventListener("load",()=>{t.element=i,t.loading=!1,e()}),i.addEventListener("error",()=>{t.error=!0,t.loading=!1,console.error("Error tsParticles - loading image: "+t.source),e()}),i.src=t.source})}async function Do(t){if("svg"!==t.type)return void await Ho(t);t.loading=!0;const e=await fetch(t.source);t.loading=!1,e.ok||(console.error("Error tsParticles - Image not found"),t.error=!0),t.error||(t.svgData=await e.text())}function No(t,e,i,o){var s,n,a;const r=function(t,e,i){const{svgData:o}=t;if(!o)return"";const s=N(e,i);if(o.includes("fill"))return o.replace(Io,()=>s);const n=o.indexOf(">");return`${o.substring(0,n)} fill="${s}"${o.substring(n)}`}(t,i,null!==(n=null===(s=o.opacity)||void 0===s?void 0:s.value)&&void 0!==n?n:1),l=new Blob([r],{type:"image/svg+xml"}),c=URL||window.URL||window.webkitURL||window,h=c.createObjectURL(l),d=new Image,u={data:Object.assign(Object.assign({},t),{svgData:r}),ratio:e.width/e.height,replaceColor:null!==(a=e.replaceColor)&&void 0!==a?a:e.replace_color,source:e.src};return d.addEventListener("load",()=>{const e=o.image;e&&(e.loaded=!0,t.element=d),c.revokeObjectURL(h)}),d.addEventListener("error",()=>{c.revokeObjectURL(h);const e=Object.assign(Object.assign({},t),{error:!1,loading:!0});Ho(e).then(()=>{const i=o.image;i&&(t.element=e.element,i.loaded=!0)})}),d.src=h,u}var jo,Fo=function(t,e,i,o,s){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!s)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?s.call(t,i):s?s.value=i:e.set(t,i),i},Bo=function(t,e,i,o){if("a"===i&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!o:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?o:"a"===i?o.call(t):o?o.value:e.get(t)};class qo{constructor(){jo.set(this,void 0),Fo(this,jo,[],"f")}getSidesCount(){return 12}getImages(t){const e=Bo(this,jo,"f").find(e=>e.id===t.id);return e||(Bo(this,jo,"f").push({id:t.id,images:[]}),this.getImages(t))}addImage(t,e){const i=this.getImages(t);null==i||i.images.push(e)}destroy(){Fo(this,jo,[],"f")}async loadImageShape(t,e){const i=e.src;if(!i)throw new Error("Error tsParticles - No image.src");try{const o={source:i,type:i.substr(i.length-3),error:!1,loading:!0};this.addImage(t,o);const s=e.replaceColor?Do:Ho;await s(o)}catch(t){throw new Error(`tsParticles error - ${e.src} not found`)}}draw(t,e,i,o){var s,n;const a=e.image,r=null===(s=null==a?void 0:a.data)||void 0===s?void 0:s.element;if(!r)return;const l=null!==(n=null==a?void 0:a.ratio)&&void 0!==n?n:1,c={x:-i,y:-i};(null==a?void 0:a.data.svgData)&&(null==a?void 0:a.replaceColor)||(t.globalAlpha=o),t.drawImage(r,c.x,c.y,2*i,2*i/l),(null==a?void 0:a.data.svgData)&&(null==a?void 0:a.replaceColor)||(t.globalAlpha=1)}loadShape(t){var e,i,o;if("image"!==t.shape&&"images"!==t.shape)return;const s=this.getImages(t.container).images,n=t.shapeData,a=s.find(t=>t.source===n.src);let r;if(!a)return void this.loadImageShape(t.container,n).then(()=>{this.loadShape(t)});if(a.error)return;const l=t.getFillColor();r=a.svgData&&n.replaceColor&&l?No(a,n,l,t):{data:a,loaded:!0,ratio:n.width/n.height,replaceColor:null!==(e=n.replaceColor)&&void 0!==e?e:n.replace_color,source:n.src},r.ratio||(r.ratio=1);const c={image:r,fill:null!==(i=n.fill)&&void 0!==i?i:t.fill,close:null!==(o=n.close)&&void 0!==o?o:t.close};t.image=c.image,t.fill=c.fill,t.close=c.close}}jo=new WeakMap;class Uo{constructor(t){this.container=t}init(){}isEnabled(t){return!t.destroyed}update(t,e){if(!this.isEnabled(t))return;const i=t.life;let o=!1;if(t.spawning){if(i.delayTime+=e.value,!(i.delayTime>=t.life.delay))return;o=!0,t.spawning=!1,i.delayTime=0,i.time=0}if(-1===i.duration)return;if(t.spawning)return;if(o?i.time=0:i.time+=e.value,i.time0&&t.life.count--,0===t.life.count)return void t.destroy();const s=this.container.canvas.size,r=c(0,s.width),l=c(0,s.width);t.position.x=n(r),t.position.y=n(l),t.spawning=!0,i.delayTime=0,i.time=0,t.reset();const h=t.options.life;i.delay=1e3*a(h.delay.value),i.duration=1e3*a(h.duration.value)}}class Wo{getSidesCount(){return 1}draw(t,e,i){t.moveTo(-i/2,0),t.lineTo(i/2,0)}}class Qo{constructor(t){this.container=t}init(t){const e=t.options.opacity;t.opacity={enable:e.animation.enable,max:l(e.value),min:r(e.value),value:a(e.value),loops:0,maxLoops:e.animation.count};const i=e.animation;if(i.enable){t.opacity.status=0;const o=e.value;switch(t.opacity.min=r(o),t.opacity.max=l(o),i.startValue){case"min":t.opacity.value=t.opacity.min,t.opacity.status=0;break;case"random":t.opacity.value=n(t.opacity),t.opacity.status=Math.random()>=.5?0:1;break;case"max":default:t.opacity.value=t.opacity.max,t.opacity.status=1}t.opacity.velocity=i.speed/100*this.container.retina.reduceFactor,i.sync||(t.opacity.velocity*=Math.random())}}isEnabled(t){var e,i,o;return!t.destroyed&&!t.spawning&&!!t.opacity&&t.opacity.enable&&((null!==(e=t.opacity.maxLoops)&&void 0!==e?e:0)<=0||(null!==(i=t.opacity.loops)&&void 0!==i?i:0)<(null!==(o=t.opacity.maxLoops)&&void 0!==o?o:0))}update(t,e){this.isEnabled(t)&&function(t,e){var i,s,n,a,r;if(!t.opacity)return;const l=t.opacity.min,c=t.opacity.max;if(!t.destroyed&&t.opacity.enable&&((null!==(i=t.opacity.maxLoops)&&void 0!==i?i:0)<=0||(null!==(s=t.opacity.loops)&&void 0!==s?s:0)<(null!==(n=t.opacity.maxLoops)&&void 0!==n?n:0))){switch(t.opacity.status){case 0:t.opacity.value>=c?(t.opacity.status=1,t.opacity.loops||(t.opacity.loops=0),t.opacity.loops++):t.opacity.value+=(null!==(a=t.opacity.velocity)&&void 0!==a?a:0)*e.factor;break;case 1:t.opacity.value<=l?(t.opacity.status=0,t.opacity.loops||(t.opacity.loops=0),t.opacity.loops++):t.opacity.value-=(null!==(r=t.opacity.velocity)&&void 0!==r?r:0)*e.factor}!function(t,e,i,o){switch(t.options.opacity.animation.destroy){case"max":e>=o&&t.destroy();break;case"min":e<=i&&t.destroy()}}(t,t.opacity.value,l,c),t.destroyed||(t.opacity.value=o(t.opacity.value,l,c))}}(t,e)}}class $o{constructor(t){this.container=t}init(){}isEnabled(t){return!t.destroyed&&!t.spawning}update(t,e){var i,o,s,n;const a=t.options.move.outModes;this.updateOutMode(t,e,null!==(i=a.bottom)&&void 0!==i?i:a.default,"bottom"),this.updateOutMode(t,e,null!==(o=a.left)&&void 0!==o?o:a.default,"left"),this.updateOutMode(t,e,null!==(s=a.right)&&void 0!==s?s:a.default,"right"),this.updateOutMode(t,e,null!==(n=a.top)&&void 0!==n?n:a.default,"top")}updateOutMode(t,e,i,o){switch(i){case"bounce":case"bounce-vertical":case"bounce-horizontal":case"bounceVertical":case"bounceHorizontal":case"split":this.bounce(t,e,o,i);break;case"destroy":this.destroy(t,o);break;case"out":this.out(t,o);break;case"none":default:this.none(t,o)}}destroy(t,e){const i=this.container;S(t.position,i.canvas.size,t.getRadius(),e)||i.particles.remove(t,void 0,!0)}out(t,e){const i=this.container;if(S(t.position,i.canvas.size,t.getRadius(),e))return;const o=t.options.move.warp,s=i.canvas.size,n={bottom:s.height+t.getRadius()+t.offset.y,left:-t.getRadius()-t.offset.x,right:s.width+t.getRadius()+t.offset.x,top:-t.getRadius()-t.offset.y},a=t.getRadius(),r=P(t.position,a);"right"===e&&r.left>s.width+t.offset.x?(t.position.x=n.left,t.initialPosition.x=t.position.x,o||(t.position.y=Math.random()*s.height,t.initialPosition.y=t.position.y)):"left"===e&&r.right<-t.offset.x&&(t.position.x=n.right,t.initialPosition.x=t.position.x,o||(t.position.y=Math.random()*s.height,t.initialPosition.y=t.position.y)),"bottom"===e&&r.top>s.height+t.offset.y?(o||(t.position.x=Math.random()*s.width,t.initialPosition.x=t.position.x),t.position.y=n.top,t.initialPosition.y=t.position.y):"top"===e&&r.bottom<-t.offset.y&&(o||(t.position.x=Math.random()*s.width,t.initialPosition.x=t.position.x),t.position.y=n.bottom,t.initialPosition.y=t.position.y)}bounce(t,e,i,o){const s=this.container;let n=!1;for(const[,o]of s.plugins)if(void 0!==o.particleBounce&&(n=o.particleBounce(t,e,i)),n)break;if(n)return;const r=t.getPosition(),l=t.offset,c=t.getRadius(),h=P(r,c),d=s.canvas.size;!function(t){if("bounce"!==t.outMode&&"bounce-horizontal"!==t.outMode&&"bounceHorizontal"!==t.outMode&&"split"!==t.outMode)return;const e=t.particle.velocity.x;let i=!1;if("right"===t.direction&&t.bounds.right>=t.canvasSize.width&&e>0||"left"===t.direction&&t.bounds.left<=0&&e<0){const e=a(t.particle.options.bounce.horizontal.value);t.particle.velocity.x*=-e,i=!0}if(!i)return;const o=t.offset.x+t.size;t.bounds.right>=t.canvasSize.width?t.particle.position.x=t.canvasSize.width-o:t.bounds.left<=0&&(t.particle.position.x=o),"split"===t.outMode&&t.particle.destroy()}({particle:t,outMode:o,direction:i,bounds:h,canvasSize:d,offset:l,size:c}),function(t){if("bounce"===t.outMode||"bounce-vertical"===t.outMode||"bounceVertical"===t.outMode||"split"===t.outMode){const e=t.particle.velocity.y;let i=!1;if("bottom"===t.direction&&t.bounds.bottom>=t.canvasSize.height&&e>0||"top"===t.direction&&t.bounds.top<=0&&e<0){const e=a(t.particle.options.bounce.vertical.value);t.particle.velocity.y*=-e,i=!0}if(!i)return;const o=t.offset.y+t.size;t.bounds.bottom>=t.canvasSize.height?t.particle.position.y=t.canvasSize.height-o:t.bounds.top<=0&&(t.particle.position.y=o),"split"===t.outMode&&t.particle.destroy()}}({particle:t,outMode:o,direction:i,bounds:h,canvasSize:d,offset:l,size:c})}none(t,e){if(t.options.move.distance.horizontal&&("left"===e||"right"===e)||t.options.move.distance.vertical&&("top"===e||"bottom"===e))return;const i=t.options.move.gravity,o=this.container,s=o.canvas.size,n=t.getRadius();if(i.enable){const a=t.position;(!i.inverse&&a.y>s.height+n&&"bottom"===e||i.inverse&&a.y<-n&&"top"===e)&&o.particles.remove(t)}else{if(t.velocity.y>0&&t.position.y<=s.height+n||t.velocity.y<0&&t.position.y>=-n||t.velocity.x>0&&t.position.x<=s.width+n||t.velocity.x<0&&t.position.x>=-n)return;S(t.position,o.canvas.size,n,e)||o.particles.remove(t)}}}class Zo extends lt{constructor(t){super(t)}interact(t){var e;const i=this.container,o=null!==(e=t.retina.attractDistance)&&void 0!==e?e:i.retina.attractDistance,s=t.getPosition(),n=i.particles.quadTree.queryCircle(s,o);for(const e of n){if(t===e||!e.options.move.attract.enable||e.destroyed||e.spawning)continue;const i=e.getPosition(),{dx:o,dy:n}=d(s,i),a=t.options.move.attract.rotate,r=o/(1e3*a.x),l=n/(1e3*a.y),c=e.size.value/t.size.value,h=1/c;t.velocity.x-=r*c,t.velocity.y-=l*c,e.velocity.x+=r*h,e.velocity.y+=l*h}}isEnabled(t){return t.options.move.attract.enable}reset(){}}function Xo(t,e){T(G(t),G(e))}class Jo extends lt{constructor(t){super(t)}isEnabled(t){return t.options.collisions.enable}reset(){}interact(t){const e=this.container,i=t.getPosition(),o=t.getRadius(),s=e.particles.quadTree.queryCircle(i,2*o);for(const e of s){if(t===e||!e.options.collisions.enable||t.options.collisions.mode!==e.options.collisions.mode||e.destroyed||e.spawning)continue;const s=e.getPosition();if(Math.round(i.z)!==Math.round(s.z))continue;u(i,s)<=o+e.getRadius()&&this.resolveCollision(t,e)}}resolveCollision(t,e){switch(t.options.collisions.mode){case"absorb":this.absorb(t,e);break;case"bounce":Xo(t,e);break;case"destroy":!function(t,e){t.unbreakable||e.unbreakable||Xo(t,e),void 0===t.getRadius()&&void 0!==e.getRadius()?t.destroy():void 0!==t.getRadius()&&void 0===e.getRadius()?e.destroy():void 0!==t.getRadius()&&void 0!==e.getRadius()&&(t.getRadius()>=e.getRadius()?e.destroy():t.destroy())}(t,e)}}absorb(t,e){const i=this.container,s=i.fpsLimit/1e3;if(void 0===t.getRadius()&&void 0!==e.getRadius())t.destroy();else if(void 0!==t.getRadius()&&void 0===e.getRadius())e.destroy();else if(void 0!==t.getRadius()&&void 0!==e.getRadius())if(t.getRadius()>=e.getRadius()){const n=o(t.getRadius()/e.getRadius(),0,e.getRadius())*s;t.size.value+=n,e.size.value-=n,e.getRadius()<=i.retina.pixelRatio&&(e.size.value=0,e.destroy())}else{const n=o(e.getRadius()/t.getRadius(),0,t.getRadius())*s;t.size.value-=n,e.size.value+=n,t.getRadius()<=i.retina.pixelRatio&&(t.size.value=0,t.destroy())}}}function Yo(t,e,i,o,s){let n=u(t,e);if(!s||n<=i)return n;if(n=u(t,{x:e.x-o.width,y:e.y}),n<=i)return n;if(n=u(t,{x:e.x-o.width,y:e.y-o.height}),n<=i)return n;return n=u(t,{x:e.x,y:e.y-o.height}),n}class Ko extends lt{constructor(t){super(t)}isEnabled(t){return t.options.links.enable}reset(){}interact(t){var e;t.links=[];const i=t.getPosition(),o=this.container,s=o.canvas.size;if(i.x<0||i.y<0||i.x>s.width||i.y>s.height)return;const n=t.options.links,a=n.opacity,r=null!==(e=t.retina.linksDistance)&&void 0!==e?e:o.retina.linksDistance,l=n.warp,c=l?new Y(i.x,i.y,r,s):new X(i.x,i.y,r),h=o.particles.quadTree.query(c);for(const e of h){const o=e.options.links;if(t===e||!o.enable||n.id!==o.id||e.spawning||e.destroyed||-1!==t.links.map(t=>t.destination).indexOf(e)||-1!==e.links.map(t=>t.destination).indexOf(t))continue;const c=e.getPosition();if(c.x<0||c.y<0||c.x>s.width||c.y>s.height)continue;const h=Yo(i,c,r,s,l&&o.warp);if(h>r)return;const d=(1-h/r)*a;this.setColor(t),t.links.push({destination:e,opacity:d})}}setColor(t){const e=this.container,i=t.options.links;let o=void 0===i.id?e.particles.linksColor:e.particles.linksColors.get(i.id);if(!o){o=B(i.color,i.blink,i.consent),void 0===i.id?e.particles.linksColor=o:e.particles.linksColors.set(i.id,o)}}}class ts{constructor(t){this.container=t}particleCreated(t){t.links=[]}particleDestroyed(t){t.links=[]}drawParticle(t,e){const i=e,o=this.container,s=o.particles,n=e.options;if(i.links.length>0){t.save();const e=i.links.filter(t=>o.particles.getLinkFrequency(i,t.destination)<=n.links.frequency);for(const t of e){const a=t.destination;if(n.links.triangles.enable){const r=e.map(t=>t.destination),l=a.links.filter(t=>o.particles.getLinkFrequency(a,t.destination)<=a.options.links.frequency&&r.indexOf(t.destination)>=0);if(l.length)for(const e of l){const o=e.destination;s.getTriangleFrequency(i,a,o)>n.links.triangles.frequency||this.drawLinkTriangle(i,t,e)}}t.opacity>0&&o.retina.linksWidth>0&&this.drawLinkLine(i,t)}t.restore()}}drawLinkTriangle(t,e,i){var o;const s=this.container,n=s.actualOptions,a=e.destination,r=i.destination,l=t.options.links.triangles,c=null!==(o=l.opacity)&&void 0!==o?o:(e.opacity+i.opacity)/2;if(c<=0)return;const h=t.getPosition(),d=a.getPosition(),p=r.getPosition();s.canvas.draw(e=>{if(u(h,d)>s.retina.linksDistance||u(p,d)>s.retina.linksDistance||u(p,h)>s.retina.linksDistance)return;let i=M(l.color);if(!i){const e=t.options.links,o=void 0!==e.id?s.particles.linksColors.get(e.id):s.particles.linksColor;i=F(t,a,o)}i&&function(t,e,i,o,s,n,a,r){!function(t,e,i,o){t.beginPath(),t.moveTo(e.x,e.y),t.lineTo(i.x,i.y),t.lineTo(o.x,o.y),t.closePath()}(t,e,i,o),s&&(t.globalCompositeOperation=n),t.fillStyle=D(a,r),t.fill()}(e,h,d,p,n.backgroundMask.enable,n.backgroundMask.composite,i,c)})}drawLinkLine(t,e){const i=this.container,o=i.actualOptions,s=e.destination;let n=e.opacity;const a=t.getPosition(),r=s.getPosition();i.canvas.draw(e=>{var l,c;let h;const p=t.options.twinkle.lines;if(p.enable){const t=p.frequency,e=M(p.color);Math.random()new Ko(t))}(t),await async function(t){const e=new es;await t.addPlugin(e)}(t)}class os{getSidesCount(t){var e,i;const o=t.shapeData;return null!==(i=null!==(e=null==o?void 0:o.sides)&&void 0!==e?e:null==o?void 0:o.nb_sides)&&void 0!==i?i:5}draw(t,e,i){const o=this.getCenter(e,i),s=this.getSidesData(e,i),n=s.count.numerator*s.count.denominator,a=s.count.numerator/s.count.denominator,r=180*(a-2)/a,l=Math.PI-Math.PI*r/180;if(t){t.beginPath(),t.translate(o.x,o.y),t.moveTo(0,0);for(let e=0;e=c?(t.size.status=1,t.size.loops||(t.size.loops=0),t.size.loops++):t.size.value+=r;break;case 1:t.size.value<=l?(t.size.status=0,t.size.loops||(t.size.loops=0),t.size.loops++):t.size.value-=r}!function(t,e,i,o){switch(t.options.size.animation.destroy){case"max":e>=o&&t.destroy();break;case"min":e<=i&&t.destroy()}}(t,t.size.value,l,c),t.destroyed||(t.size.value=o(t.size.value,l,c))}}(t,e)}}const ls=Math.sqrt(2);class cs{getSidesCount(){return 4}draw(t,e,i){t.rect(-i/ls,-i/ls,2*i/ls,2*i/ls)}}class hs{getSidesCount(t){var e,i;const o=t.shapeData;return null!==(i=null!==(e=null==o?void 0:o.sides)&&void 0!==e?e:null==o?void 0:o.nb_sides)&&void 0!==i?i:5}draw(t,e,i){var o;const s=e.shapeData,n=this.getSidesCount(e),a=null!==(o=null==s?void 0:s.inset)&&void 0!==o?o:2;t.moveTo(0,0-i);for(let e=0;eo&&(r.status=1,r.value-=r.value%o)),r.value>o&&(r.value%=o)}class us{constructor(t){this.container=t}init(t){var e,i;const o=this.container;t.stroke=t.options.stroke instanceof Array?b(t.options.stroke,t.id,t.options.reduceDuplicates):t.options.stroke,t.strokeWidth=t.stroke.width*o.retina.pixelRatio;const s=null!==(e=R(t.stroke.color))&&void 0!==e?e:t.getFillColor();s&&(t.strokeColor=U(s,null===(i=t.stroke.color)||void 0===i?void 0:i.animation,o.retina.reduceFactor))}isEnabled(t){var e,i,o,s;const n=null===(e=t.stroke)||void 0===e?void 0:e.color;return!t.destroyed&&!t.spawning&&!!n&&(void 0!==(null===(i=t.strokeColor)||void 0===i?void 0:i.h.value)&&n.animation.h.enable||void 0!==(null===(o=t.strokeColor)||void 0===o?void 0:o.s.value)&&n.animation.s.enable||void 0!==(null===(s=t.strokeColor)||void 0===s?void 0:s.l.value)&&n.animation.l.enable)}update(t,e){this.isEnabled(t)&&function(t,e){var i,o,s,n,a,r,l,c,h,d;if(!(null===(i=t.stroke)||void 0===i?void 0:i.color))return;const u=t.stroke.color.animation,p=null!==(s=null===(o=t.strokeColor)||void 0===o?void 0:o.h)&&void 0!==s?s:null===(n=t.color)||void 0===n?void 0:n.h;p&&ds(e,p,u.h,360,!1);const v=null!==(r=null===(a=t.strokeColor)||void 0===a?void 0:a.s)&&void 0!==r?r:null===(l=t.color)||void 0===l?void 0:l.s;v&&ds(e,v,u.s,100,!0);const y=null!==(h=null===(c=t.strokeColor)||void 0===c?void 0:c.l)&&void 0!==h?h:null===(d=t.color)||void 0===d?void 0:d.l;y&&ds(e,y,u.l,100,!0)}(t,e)}}const ps=["text","character","char"];class vs{getSidesCount(){return 12}async init(t){const e=t.actualOptions;if(ps.find(t=>g(t,e.particles.shape.type))){const t=ps.map(t=>e.particles.shape.options[t]).find(t=>!!t);if(t instanceof Array){const e=[];for(const i of t)e.push(m(i));await Promise.allSettled(e)}else void 0!==t&&await m(t)}}draw(t,e,i,o){var s,n,a;const r=e.shapeData;if(void 0===r)return;const l=r.value;if(void 0===l)return;const c=e;void 0===c.text&&(c.text=l instanceof Array?b(l,e.randomIndexData):l);const h=c.text,d=null!==(s=r.style)&&void 0!==s?s:"",u=null!==(n=r.weight)&&void 0!==n?n:"400",p=2*Math.round(i),v=null!==(a=r.font)&&void 0!==a?a:"Verdana",y=e.fill,w=h.length*i/2;t.font=`${d} ${u} ${p}px "${v}"`;const f={x:-w,y:i/2};t.globalAlpha=o,y?t.fillText(h,f.x,f.y):t.strokeText(h,f.x,f.y),t.globalAlpha=1}}async function ys(t){await async function(t){await t.addInteractor("externalAttract",t=>new Eo(t))}(t),await async function(t){await t.addInteractor("externalBounce",t=>new Oo(t))}(t),await async function(t){await t.addInteractor("externalBubble",t=>new Mo(t))}(t),await async function(t){await t.addInteractor("externalConnect",t=>new Ro(t))}(t),await async function(t){await t.addInteractor("externalGrab",t=>new zo(t))}(t),await async function(t){await t.addInteractor("externalRepulse",t=>new Lo(t))}(t),await async function(t){await t.addInteractor("particlesAttract",t=>new Zo(t))}(t),await async function(t){await t.addInteractor("particlesCollisions",t=>new Jo(t))}(t),await is(t),await async function(t){await t.addShape("circle",new Vo)}(t),await async function(t){const e=new qo;await t.addShape("image",e),await t.addShape("images",e)}(t),await async function(t){await t.addShape("line",new Wo)}(t),await as(t),await async function(t){const e=new cs;await t.addShape("edge",e),await t.addShape("square",e)}(t),await async function(t){await t.addShape("star",new hs)}(t),await async function(t){const e=new vs;for(const i of ps)await t.addShape(i,e)}(t),await async function(t){await t.addParticleUpdater("life",t=>new Uo(t))}(t),await async function(t){await t.addParticleUpdater("opacity",t=>new Qo(t))}(t),await async function(t){await t.addParticleUpdater("size",()=>new rs)}(t),await async function(t){await t.addParticleUpdater("angle",t=>new Ao(t))}(t),await async function(t){await t.addParticleUpdater("color",t=>new To(t))}(t),await async function(t){await t.addParticleUpdater("strokeColor",t=>new us(t))}(t),await async function(t){await t.addParticleUpdater("outModes",t=>new $o(t))}(t)}class ws{constructor(t){this.container=t}init(t){const e=t.options.tilt;t.tilt={enable:e.enable,value:a(e.value)*Math.PI/180,sinDirection:Math.random()>=.5?1:-1,cosDirection:Math.random()>=.5?1:-1};let i=e.direction;if("random"===i){i=Math.floor(2*Math.random())>0?"counter-clockwise":"clockwise"}switch(i){case"counter-clockwise":case"counterClockwise":t.tilt.status=1;break;case"clockwise":t.tilt.status=0}const o=t.options.tilt.animation;o.enable&&(t.tilt.velocity=o.speed/360*this.container.retina.reduceFactor,o.sync||(t.tilt.velocity*=Math.random()))}isEnabled(t){const e=t.options.tilt.animation;return!t.destroyed&&!t.spawning&&e.enable}update(t,e){this.isEnabled(t)&&function(t,e){var i;if(!t.tilt)return;const o=t.options.tilt.animation,s=(null!==(i=t.tilt.velocity)&&void 0!==i?i:0)*e.factor,n=2*Math.PI;if(o.enable)switch(t.tilt.status){case 0:t.tilt.value+=s,t.tilt.value>n&&(t.tilt.value-=n);break;case 1:default:t.tilt.value-=s,t.tilt.value<0&&(t.tilt.value+=n)}}(t,e)}}class fs{constructor(t){this.container=t}init(t){const e=t.options.wobble;e.enable?t.wobble={angle:Math.random()*Math.PI*2,speed:a(e.speed)/360}:t.wobble={angle:0,speed:0},t.retina.wobbleDistance=a(e.distance)*this.container.retina.pixelRatio}isEnabled(t){return!t.destroyed&&!t.spawning&&t.options.wobble.enable}update(t,e){this.isEnabled(t)&&function(t,e){var i;if(!t.options.wobble.enable||!t.wobble)return;const o=t.wobble.speed*e.factor,s=(null!==(i=t.retina.wobbleDistance)&&void 0!==i?i:0)*e.factor/(1e3/60),n=2*Math.PI;t.wobble.angle+=o,t.wobble.angle>n&&(t.wobble.angle-=n),t.position.x+=s*Math.cos(t.wobble.angle),t.position.y+=s*Math.abs(Math.sin(t.wobble.angle))}(t,e)}}const gs=new class{constructor(){Ei.set(this,void 0),Oi.set(this,void 0),ki(this,Ei,!1,"f"),this.domArray=[],ki(this,Oi,new Ti(this),"f"),this.plugins=new ut(this)}init(){Mi(this,Ei,"f")||ki(this,Ei,!0,"f")}async loadFromArray(t,e,i){return Mi(this,Oi,"f").load(t,e,i)}async load(t,e){return Mi(this,Oi,"f").load(t,e)}async set(t,e,i){return Mi(this,Oi,"f").set(t,e,i)}async loadJSON(t,e,i){return Mi(this,Oi,"f").loadJSON(t,e,i)}async setJSON(t,e,i,o){return Mi(this,Oi,"f").setJSON(t,e,i,o)}setOnClickHandler(t){Mi(this,Oi,"f").setOnClickHandler(t)}dom(){return Mi(this,Oi,"f").dom()}domItem(t){return Mi(this,Oi,"f").domItem(t)}async refresh(){for(const t of this.dom())await t.refresh()}async addShape(t,e,i,o,s){let n;n="function"==typeof e?{afterEffect:o,destroy:s,draw:e,init:i}:e,this.plugins.addShapeDrawer(t,n),await this.refresh()}async addPreset(t,e,i=!1){this.plugins.addPreset(t,e,i),await this.refresh()}async addPlugin(t){this.plugins.addPlugin(t),await this.refresh()}async addPathGenerator(t,e){this.plugins.addPathGenerator(t,e),await this.refresh()}async addInteractor(t,e){this.plugins.addInteractor(t,e),await this.refresh()}async addParticleUpdater(t,e){this.plugins.addParticleUpdater(t,e),await this.refresh()}};gs.init();const{particlesJS:ms,pJSDom:bs}=(t=>{const e=(e,i)=>t.load(e,i);e.load=(e,i,o)=>{t.loadJSON(e,i).then(t=>{t&&o(t)}).catch(()=>{o(void 0)})},e.setOnClickHandler=e=>{t.setOnClickHandler(e)};return{particlesJS:e,pJSDom:t.dom()}})(gs);!async function(t){await ys(t),await async function(t){await t.addInteractor("externalTrail",t=>new uo(t))}(t),await async function(t){await t.addParticleUpdater("roll",()=>new Co)}(t),await async function(t){await t.addParticleUpdater("tilt",t=>new ws(t))}(t),await async function(t){await t.addParticleUpdater("wobble",t=>new fs(t))}(t),await async function(t){const e=new Di;await t.addPlugin(e)}(t),await async function(t){t.emitterShapeManager||(t.emitterShapeManager=new so(t)),t.addEmitterShape||(t.addEmitterShape=(e,i)=>{var o;null===(o=t.emitterShapeManager)||void 0===o||o.addShape(e,i)});const e=new ho(t);await t.addPlugin(e),t.addEmitterShape("circle",new Ni),t.addEmitterShape("square",new ao)}(t),await async function(t){f()||"SVGPathSeg"in window||await i.e("npm.tsparticles").then(i.t.bind(null,"3da5",7));const e=new xo;await t.addPlugin(e)}(t)}(gs)}}]); \ No newline at end of file diff --git a/container/context/dist/static/js/npm.tsparticles.58602065.js.gz b/container/context/dist/static/js/npm.tsparticles.58602065.js.gz deleted file mode 100644 index 88b147a7..00000000 Binary files a/container/context/dist/static/js/npm.tsparticles.58602065.js.gz and /dev/null differ diff --git a/package.json b/package.json index 4e099630..f5d3fbc3 100644 --- a/package.json +++ b/package.json @@ -53,11 +53,11 @@ ] }, "devDependencies": { - "@babel/core": "^7.17.2", + "@babel/core": "^7.17.4", "@babel/plugin-external-helpers": "^7.16.7", "@babel/plugin-proposal-class-properties": "^7.16.7", "@babel/plugin-proposal-decorators": "^7.17.2", - "@babel/plugin-proposal-object-rest-spread": "^7.16.7", + "@babel/plugin-proposal-object-rest-spread": "^7.17.3", "@babel/plugin-syntax-dynamic-import": "^7.8.3", "@babel/plugin-syntax-jsx": "^7.16.7", "@babel/plugin-transform-async-to-generator": "^7.16.8", @@ -80,9 +80,9 @@ "@rollup/plugin-strip": "^2.1.0", "@rollup/plugin-sucrase": "^4.0.2", "@rollup/plugin-typescript": "^8.3.0", - "@types/node": "^17.0.16", - "@typescript-eslint/eslint-plugin": "^5.11.0", - "@typescript-eslint/parser": "^5.11.0", + "@types/node": "^17.0.18", + "@typescript-eslint/eslint-plugin": "^5.12.0", + "@typescript-eslint/parser": "^5.12.0", "@vue/cli-plugin-babel": "^4.5.15", "@vue/cli-plugin-eslint": "^4.5.15", "@vue/cli-service": "^4.5.15", @@ -100,7 +100,7 @@ "css-loader": "^5.2.7", "cssnano": "^5.0.17", "cz-conventional-changelog": "^3.3.0", - "eslint": "^8.8.0", + "eslint": "^8.9.0", "eslint-import-resolver-babel-module": "^5.3.1", "eslint-plugin-import": "^2.25.4", "eslint-plugin-prettier": "^4.0.0", @@ -108,14 +108,14 @@ "graceful-fs": "4.2.9", "husky": "^7.0.4", "lerna": "^4.0.0", - "lint-staged": "^12.3.3", + "lint-staged": "^12.3.4", "postcss": "^8.4.6", "postcss-nested": "^5.0.6", - "postcss-preset-env": "^7.3.1", + "postcss-preset-env": "^7.3.3", "postcss-simple-vars": "^6.0.3", "prettier": "^2.5.1", "rimraf": "^3.0.2", - "rollup": "^2.67.1", + "rollup": "^2.67.2", "rollup-plugin-filesize": "^9.1.2", "rollup-plugin-postcss": "^4.0.2", "rollup-plugin-progress": "^1.1.2", @@ -136,7 +136,7 @@ }, "dependencies": { "@babel/runtime": "^7.17.2", - "caniuse-lite": "^1.0.30001310", + "caniuse-lite": "^1.0.30001312", "core-js": "^3.21.0", "ts-vue-plugin": "^0.1.3", "typescript-ioc": "^3.2.2", diff --git a/packages/@hecate/h-button/dist/index.esm.js.map b/packages/@hecate/h-button/dist/index.esm.js.map index fdff1683..7bb8f144 100644 --- a/packages/@hecate/h-button/dist/index.esm.js.map +++ b/packages/@hecate/h-button/dist/index.esm.js.map @@ -1 +1 @@ -{"version":3,"file":"index.esm.js","sources":["../src/HButton.vue"],"sourcesContent":["\n\n\n"],"names":["let"],"mappings":"+MA0BAA"} \ No newline at end of file +{"version":3,"file":"index.esm.js","sources":["../src/HButton.vue"],"sourcesContent":["\r\n\r\n\r\n"],"names":["let"],"mappings":"+MA0BAA"} \ No newline at end of file diff --git a/packages/@hecate/h-table/dist/index.esm.js.map b/packages/@hecate/h-table/dist/index.esm.js.map index 3d376207..5e6c4da0 100644 --- a/packages/@hecate/h-table/dist/index.esm.js.map +++ b/packages/@hecate/h-table/dist/index.esm.js.map @@ -1 +1 @@ -{"version":3,"file":"index.esm.js","sources":["../src/HTable.vue"],"sourcesContent":["\n\n\n"],"names":["let"],"mappings":"2OAiFAA"} \ No newline at end of file +{"version":3,"file":"index.esm.js","sources":["../src/HTable.vue"],"sourcesContent":["\r\n\r\n\r\n"],"names":["let"],"mappings":"2OAiFAA"} \ No newline at end of file diff --git a/packages/@hecate/utils/dist/index.esm.js.map b/packages/@hecate/utils/dist/index.esm.js.map index 797c7bd5..f1c6c64e 100644 --- a/packages/@hecate/utils/dist/index.esm.js.map +++ b/packages/@hecate/utils/dist/index.esm.js.map @@ -1 +1 @@ -{"version":3,"file":"index.esm.js","sources":["../src/lib/database.ts","../src/lib/array.ts","../src/lib/message.ts","../src/lib/crypto.ts","../src/lib/index.ts"],"sourcesContent":["import { default as localforage } from 'localforage';\n\n/**\n * 这里使用单例模式,主要是因为将静态类,赋值给Vue.prototype会出现 Property '' is a static member of type '' 错误。\n * 参考以下文章\n * {@see https://techformist.com/static-variables-methods-typescript/}\n * {@see https://www.xspdf.com/resolution/54250655.html}\n * {@see https://www.typescriptlang.org/docs/handbook/classes.html#static-properties}\n *\n * 单例模式饿汉式与懒汉式\n * {@see https://zhuanlan.zhihu.com/p/129264092}\n */\nclass LocalForage {\n private static instance = new LocalForage();\n\n private constructor() {}\n\n public static getInstance(): LocalForage {\n return this.instance;\n }\n\n /**\n * 参考https://github.com/localForage/localForage/blob/master/typings/localforage.d.ts\n *\n * @param key\n */\n public getItem(key: string): Promise {\n return localforage.getItem(key);\n }\n\n public setItem(key: string, value: T): Promise {\n return localforage.setItem(key, value);\n }\n\n public removeItem(key: string): Promise {\n return localforage.removeItem(key);\n }\n\n public clear(): Promise {\n return localforage.clear();\n }\n\n public length(): Promise {\n return localforage.length();\n }\n\n public key(keyIndex: number): Promise {\n return localforage.key(keyIndex);\n }\n\n public keys(): Promise {\n return localforage.keys();\n }\n public iterate(iteratee: (value: T, key: string, iterationNumber: number) => U): Promise {\n return localforage.iterate(iteratee);\n }\n\n public setDriver(driver: string | string[]): Promise {\n return localforage.setDriver(driver);\n }\n\n public config(options: LocalForageOptions): boolean {\n return localforage.config(options);\n }\n\n public createInstance(options: LocalForageOptions): LocalForage {\n return localforage.createInstance(options);\n }\n}\n\nexport const _localForage: LocalForage = LocalForage.getInstance();\n\nclass LocalStorage {\n private static instance = new LocalStorage();\n\n private constructor() {}\n\n public static getInstance(): LocalStorage {\n return this.instance;\n }\n\n public setObject(key: string, value: T): void {\n this.setItem(key, JSON.stringify(value));\n }\n\n public getObject(key: string): T | null {\n const result = this.getItem(key);\n if (result) {\n return JSON.parse(result);\n }\n return null;\n }\n\n public setItem(key: string, value: string): void {\n localStorage.setItem(key, value);\n }\n public getItem(key: string): string | null {\n return localStorage.getItem(key);\n }\n\n public removeItem(key: string): void {\n localStorage.removeItem(key);\n }\n\n public clear(): void {\n localStorage.clear();\n }\n\n public isExist(key: string): boolean {\n if (key && key in localStorage) {\n return true;\n } else {\n return false;\n }\n }\n}\n\nexport const _localStorage: LocalStorage = LocalStorage.getInstance();\n","import * as lodash from 'lodash';\r\n\r\nclass ArrayUtils {\r\n private static instance = new ArrayUtils();\r\n\r\n private constructor() {}\r\n\r\n public static getInstance(): ArrayUtils {\r\n return this.instance;\r\n }\r\n\r\n public find(array: T[], element: T, comparator): T | undefined {\r\n return lodash.find(array, (item) => item[comparator] === element[comparator]);\r\n }\r\n\r\n public remove(array: T[], element: T, comparator): T[] {\r\n return lodash.remove(array, (item) => item[comparator] === element[comparator]);\r\n }\r\n}\r\n\r\nexport const _array: ArrayUtils = ArrayUtils.getInstance();\r\n","import Swal, { SweetAlertIcon, SweetAlertResult } from 'sweetalert2';\r\n\r\n/**\r\n * 这里使用单例模式,主要是因为将静态类,赋值给Vue.prototype会出现 Property '' is a static member of type '' 错误。\r\n * 参考以下文章\r\n * {@see https://techformist.com/static-variables-methods-typescript/}\r\n * {@see https://www.xspdf.com/resolution/54250655.html}\r\n * {@see https://www.typescriptlang.org/docs/handbook/classes.html#static-properties}\r\n *\r\n * 单例模式饿汉式与懒汉式\r\n * {@see https://zhuanlan.zhihu.com/p/129264092}\r\n */\r\nclass Notify {\r\n private static instance = new Notify();\r\n\r\n private constructor() {}\r\n\r\n public static getInstance(): Notify {\r\n return this.instance;\r\n }\r\n\r\n public information(title: string, icon: SweetAlertIcon): Promise> {\r\n return Swal.fire({\r\n position: 'top',\r\n title: title,\r\n icon: icon,\r\n timer: 2000,\r\n showConfirmButton: false,\r\n });\r\n }\r\n\r\n public info(text: string): Promise> {\r\n return this.information(text, 'info');\r\n }\r\n\r\n public error(text: string): Promise> {\r\n return this.information(text, 'error');\r\n }\r\n\r\n public warning(text: string): Promise> {\r\n return this.information(text, 'warning');\r\n }\r\n\r\n public success(text: string): Promise> {\r\n return this.information(text, 'success');\r\n }\r\n\r\n public question(text: string): Promise> {\r\n return this.information(text, 'question');\r\n }\r\n}\r\n\r\nexport const _notify: Notify = Notify.getInstance();\r\n\r\nexport { Swal, SweetAlertIcon, SweetAlertResult };\r\n","import CryptoJS from 'crypto-js';\nimport NodeRSA from 'node-rsa';\n\nclass AES {\n private static instance = new AES();\n\n private constructor() {}\n\n public static getInstance(): AES {\n return this.instance;\n }\n\n private default_key = 'abcd12345sxyzhkj';\n\n //加密\n public encrypt(key: string, content: unknown): string {\n key = key ? key : this.default_key;\n const _key = CryptoJS.enc.Utf8.parse(key);\n const _srcs = CryptoJS.enc.Utf8.parse(content);\n const encrypted = CryptoJS.AES.encrypt(_srcs, _key, { mode: CryptoJS.mode.ECB, padding: CryptoJS.pad.Pkcs7 });\n return encrypted.toString();\n }\n\n //解密\n public decrypt(key: string, content: unknown): string {\n key = key ? key : this.default_key;\n const _key = CryptoJS.enc.Utf8.parse(key);\n const decrypt = CryptoJS.AES.decrypt(content, _key, { mode: CryptoJS.mode.ECB, padding: CryptoJS.pad.Pkcs7 });\n return CryptoJS.enc.Utf8.stringify(decrypt).toString();\n }\n}\n\nexport const _aes: AES = AES.getInstance();\n\nclass RSA {\n private static instance = new RSA();\n\n private constructor() {}\n\n public static getInstance(): RSA {\n return this.instance;\n }\n\n public create(): RSAPair {\n const key = new NodeRSA({ b: 512 });\n key.setOptions({ encryptionScheme: 'pkcs1' });\n return { publicKey: key.exportKey('pkcs8-public'), privateKey: key.exportKey('pkcs8-private') };\n }\n\n public encrypt(publicKey: string, content: any): string {\n const key = new NodeRSA(publicKey, 'pkcs8-public', { encryptionScheme: 'pkcs1' });\n if (content instanceof Object || content instanceof Array) {\n return key.encrypt(JSON.stringify(content), 'base64', 'utf8');\n } else {\n return key.encrypt(new String(content), 'base64', 'utf8');\n }\n }\n\n public decrypt(privateKey: string, content: string): any {\n const key = new NodeRSA(privateKey, 'pkcs8-private', { encryptionScheme: 'pkcs1' });\n return key.decrypt(content, 'utf8');\n }\n}\n\nexport const _rsa: RSA = RSA.getInstance();\n","import * as lodash from 'lodash';\nimport * as shortid from 'shortid';\nimport { Base64 } from 'js-base64';\nimport moment from 'moment';\nimport { _localForage, _localStorage } from './database';\nimport { _array } from './array';\nimport { _notify, Swal, SweetAlertIcon, SweetAlertResult } from './message';\nimport { _rsa, _aes } from './crypto';\n\nmoment.locale('zh-cn');\n\nexport {\n _localForage,\n _localStorage,\n _notify,\n _array,\n Swal,\n SweetAlertIcon,\n SweetAlertResult,\n lodash,\n shortid,\n moment,\n _rsa,\n _aes,\n Base64,\n};\n"],"names":["LocalForage","LocalStorage","ArrayUtils","Notify","AES","RSA","moment"],"mappings":"mNAYA,yoBACmBA,mjBA4DAC,mRCtEAC,gjBCUAC,ofCTAC,0mBA+BAC,uCC1BnBC"} \ No newline at end of file +{"version":3,"file":"index.esm.js","sources":["../src/lib/database.ts","../src/lib/array.ts","../src/lib/message.ts","../src/lib/crypto.ts","../src/lib/index.ts"],"sourcesContent":["import { default as localforage } from 'localforage';\r\n\r\n/**\r\n * 这里使用单例模式,主要是因为将静态类,赋值给Vue.prototype会出现 Property '' is a static member of type '' 错误。\r\n * 参考以下文章\r\n * {@see https://techformist.com/static-variables-methods-typescript/}\r\n * {@see https://www.xspdf.com/resolution/54250655.html}\r\n * {@see https://www.typescriptlang.org/docs/handbook/classes.html#static-properties}\r\n *\r\n * 单例模式饿汉式与懒汉式\r\n * {@see https://zhuanlan.zhihu.com/p/129264092}\r\n */\r\nclass LocalForage {\r\n private static instance = new LocalForage();\r\n\r\n private constructor() {}\r\n\r\n public static getInstance(): LocalForage {\r\n return this.instance;\r\n }\r\n\r\n /**\r\n * 参考https://github.com/localForage/localForage/blob/master/typings/localforage.d.ts\r\n *\r\n * @param key\r\n */\r\n public getItem(key: string): Promise {\r\n return localforage.getItem(key);\r\n }\r\n\r\n public setItem(key: string, value: T): Promise {\r\n return localforage.setItem(key, value);\r\n }\r\n\r\n public removeItem(key: string): Promise {\r\n return localforage.removeItem(key);\r\n }\r\n\r\n public clear(): Promise {\r\n return localforage.clear();\r\n }\r\n\r\n public length(): Promise {\r\n return localforage.length();\r\n }\r\n\r\n public key(keyIndex: number): Promise {\r\n return localforage.key(keyIndex);\r\n }\r\n\r\n public keys(): Promise {\r\n return localforage.keys();\r\n }\r\n public iterate(iteratee: (value: T, key: string, iterationNumber: number) => U): Promise {\r\n return localforage.iterate(iteratee);\r\n }\r\n\r\n public setDriver(driver: string | string[]): Promise {\r\n return localforage.setDriver(driver);\r\n }\r\n\r\n public config(options: LocalForageOptions): boolean {\r\n return localforage.config(options);\r\n }\r\n\r\n public createInstance(options: LocalForageOptions): LocalForage {\r\n return localforage.createInstance(options);\r\n }\r\n}\r\n\r\nexport const _localForage: LocalForage = LocalForage.getInstance();\r\n\r\nclass LocalStorage {\r\n private static instance = new LocalStorage();\r\n\r\n private constructor() {}\r\n\r\n public static getInstance(): LocalStorage {\r\n return this.instance;\r\n }\r\n\r\n public setObject(key: string, value: T): void {\r\n this.setItem(key, JSON.stringify(value));\r\n }\r\n\r\n public getObject(key: string): T | null {\r\n const result = this.getItem(key);\r\n if (result) {\r\n return JSON.parse(result);\r\n }\r\n return null;\r\n }\r\n\r\n public setItem(key: string, value: string): void {\r\n localStorage.setItem(key, value);\r\n }\r\n public getItem(key: string): string | null {\r\n return localStorage.getItem(key);\r\n }\r\n\r\n public removeItem(key: string): void {\r\n localStorage.removeItem(key);\r\n }\r\n\r\n public clear(): void {\r\n localStorage.clear();\r\n }\r\n\r\n public isExist(key: string): boolean {\r\n if (key && key in localStorage) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }\r\n}\r\n\r\nexport const _localStorage: LocalStorage = LocalStorage.getInstance();\r\n","import * as lodash from 'lodash';\r\n\r\nclass ArrayUtils {\r\n private static instance = new ArrayUtils();\r\n\r\n private constructor() {}\r\n\r\n public static getInstance(): ArrayUtils {\r\n return this.instance;\r\n }\r\n\r\n public find(array: T[], element: T, comparator): T | undefined {\r\n return lodash.find(array, (item) => item[comparator] === element[comparator]);\r\n }\r\n\r\n public remove(array: T[], element: T, comparator): T[] {\r\n return lodash.remove(array, (item) => item[comparator] === element[comparator]);\r\n }\r\n}\r\n\r\nexport const _array: ArrayUtils = ArrayUtils.getInstance();\r\n","import Swal, { SweetAlertIcon, SweetAlertResult } from 'sweetalert2';\r\n\r\n/**\r\n * 这里使用单例模式,主要是因为将静态类,赋值给Vue.prototype会出现 Property '' is a static member of type '' 错误。\r\n * 参考以下文章\r\n * {@see https://techformist.com/static-variables-methods-typescript/}\r\n * {@see https://www.xspdf.com/resolution/54250655.html}\r\n * {@see https://www.typescriptlang.org/docs/handbook/classes.html#static-properties}\r\n *\r\n * 单例模式饿汉式与懒汉式\r\n * {@see https://zhuanlan.zhihu.com/p/129264092}\r\n */\r\nclass Notify {\r\n private static instance = new Notify();\r\n\r\n private constructor() {}\r\n\r\n public static getInstance(): Notify {\r\n return this.instance;\r\n }\r\n\r\n public information(title: string, icon: SweetAlertIcon): Promise> {\r\n return Swal.fire({\r\n position: 'top',\r\n title: title,\r\n icon: icon,\r\n timer: 2000,\r\n showConfirmButton: false,\r\n });\r\n }\r\n\r\n public info(text: string): Promise> {\r\n return this.information(text, 'info');\r\n }\r\n\r\n public error(text: string): Promise> {\r\n return this.information(text, 'error');\r\n }\r\n\r\n public warning(text: string): Promise> {\r\n return this.information(text, 'warning');\r\n }\r\n\r\n public success(text: string): Promise> {\r\n return this.information(text, 'success');\r\n }\r\n\r\n public question(text: string): Promise> {\r\n return this.information(text, 'question');\r\n }\r\n}\r\n\r\nexport const _notify: Notify = Notify.getInstance();\r\n\r\nexport { Swal, SweetAlertIcon, SweetAlertResult };\r\n","import CryptoJS from 'crypto-js';\r\nimport NodeRSA from 'node-rsa';\r\n\r\nclass AES {\r\n private static instance = new AES();\r\n\r\n private constructor() {}\r\n\r\n public static getInstance(): AES {\r\n return this.instance;\r\n }\r\n\r\n private default_key = 'abcd12345sxyzhkj';\r\n\r\n //加密\r\n public encrypt(key: string, content: unknown): string {\r\n key = key ? key : this.default_key;\r\n const _key = CryptoJS.enc.Utf8.parse(key);\r\n const _srcs = CryptoJS.enc.Utf8.parse(content);\r\n const encrypted = CryptoJS.AES.encrypt(_srcs, _key, { mode: CryptoJS.mode.ECB, padding: CryptoJS.pad.Pkcs7 });\r\n return encrypted.toString();\r\n }\r\n\r\n //解密\r\n public decrypt(key: string, content: unknown): string {\r\n key = key ? key : this.default_key;\r\n const _key = CryptoJS.enc.Utf8.parse(key);\r\n const decrypt = CryptoJS.AES.decrypt(content, _key, { mode: CryptoJS.mode.ECB, padding: CryptoJS.pad.Pkcs7 });\r\n return CryptoJS.enc.Utf8.stringify(decrypt).toString();\r\n }\r\n}\r\n\r\nexport const _aes: AES = AES.getInstance();\r\n\r\nclass RSA {\r\n private static instance = new RSA();\r\n\r\n private constructor() {}\r\n\r\n public static getInstance(): RSA {\r\n return this.instance;\r\n }\r\n\r\n public create(): RSAPair {\r\n const key = new NodeRSA({ b: 512 });\r\n key.setOptions({ encryptionScheme: 'pkcs1' });\r\n return { publicKey: key.exportKey('pkcs8-public'), privateKey: key.exportKey('pkcs8-private') };\r\n }\r\n\r\n public encrypt(publicKey: string, content: any): string {\r\n const key = new NodeRSA(publicKey, 'pkcs8-public', { encryptionScheme: 'pkcs1' });\r\n if (content instanceof Object || content instanceof Array) {\r\n return key.encrypt(JSON.stringify(content), 'base64', 'utf8');\r\n } else {\r\n return key.encrypt(new String(content), 'base64', 'utf8');\r\n }\r\n }\r\n\r\n public decrypt(privateKey: string, content: string): any {\r\n const key = new NodeRSA(privateKey, 'pkcs8-private', { encryptionScheme: 'pkcs1' });\r\n return key.decrypt(content, 'utf8');\r\n }\r\n}\r\n\r\nexport const _rsa: RSA = RSA.getInstance();\r\n","import * as lodash from 'lodash';\r\nimport * as shortid from 'shortid';\r\nimport { Base64 } from 'js-base64';\r\nimport moment from 'moment';\r\nimport { _localForage, _localStorage } from './database';\r\nimport { _array } from './array';\r\nimport { _notify, Swal, SweetAlertIcon, SweetAlertResult } from './message';\r\nimport { _rsa, _aes } from './crypto';\r\n\r\nmoment.locale('zh-cn');\r\n\r\nexport {\r\n _localForage,\r\n _localStorage,\r\n _notify,\r\n _array,\r\n Swal,\r\n SweetAlertIcon,\r\n SweetAlertResult,\r\n lodash,\r\n shortid,\r\n moment,\r\n _rsa,\r\n _aes,\r\n Base64,\r\n};\r\n"],"names":["LocalForage","LocalStorage","ArrayUtils","Notify","AES","RSA","moment"],"mappings":"mNAYA,yoBACmBA,mjBA4DAC,mRCtEAC,gjBCUAC,ofCTAC,0mBA+BAC,uCC1BnBC"} \ No newline at end of file diff --git a/packages/@hecate/utils/dist/index.min.js.map b/packages/@hecate/utils/dist/index.min.js.map index 783cb255..83bb6996 100644 --- a/packages/@hecate/utils/dist/index.min.js.map +++ b/packages/@hecate/utils/dist/index.min.js.map @@ -1 +1 @@ -{"version":3,"file":"index.min.js","sources":["../src/lib/database.ts","../src/lib/array.ts","../src/lib/message.ts","../src/lib/crypto.ts"],"sourcesContent":["import { default as localforage } from 'localforage';\n\n/**\n * 这里使用单例模式,主要是因为将静态类,赋值给Vue.prototype会出现 Property '' is a static member of type '' 错误。\n * 参考以下文章\n * {@see https://techformist.com/static-variables-methods-typescript/}\n * {@see https://www.xspdf.com/resolution/54250655.html}\n * {@see https://www.typescriptlang.org/docs/handbook/classes.html#static-properties}\n *\n * 单例模式饿汉式与懒汉式\n * {@see https://zhuanlan.zhihu.com/p/129264092}\n */\nclass LocalForage {\n private static instance = new LocalForage();\n\n private constructor() {}\n\n public static getInstance(): LocalForage {\n return this.instance;\n }\n\n /**\n * 参考https://github.com/localForage/localForage/blob/master/typings/localforage.d.ts\n *\n * @param key\n */\n public getItem(key: string): Promise {\n return localforage.getItem(key);\n }\n\n public setItem(key: string, value: T): Promise {\n return localforage.setItem(key, value);\n }\n\n public removeItem(key: string): Promise {\n return localforage.removeItem(key);\n }\n\n public clear(): Promise {\n return localforage.clear();\n }\n\n public length(): Promise {\n return localforage.length();\n }\n\n public key(keyIndex: number): Promise {\n return localforage.key(keyIndex);\n }\n\n public keys(): Promise {\n return localforage.keys();\n }\n public iterate(iteratee: (value: T, key: string, iterationNumber: number) => U): Promise {\n return localforage.iterate(iteratee);\n }\n\n public setDriver(driver: string | string[]): Promise {\n return localforage.setDriver(driver);\n }\n\n public config(options: LocalForageOptions): boolean {\n return localforage.config(options);\n }\n\n public createInstance(options: LocalForageOptions): LocalForage {\n return localforage.createInstance(options);\n }\n}\n\nexport const _localForage: LocalForage = LocalForage.getInstance();\n\nclass LocalStorage {\n private static instance = new LocalStorage();\n\n private constructor() {}\n\n public static getInstance(): LocalStorage {\n return this.instance;\n }\n\n public setObject(key: string, value: T): void {\n this.setItem(key, JSON.stringify(value));\n }\n\n public getObject(key: string): T | null {\n const result = this.getItem(key);\n if (result) {\n return JSON.parse(result);\n }\n return null;\n }\n\n public setItem(key: string, value: string): void {\n localStorage.setItem(key, value);\n }\n public getItem(key: string): string | null {\n return localStorage.getItem(key);\n }\n\n public removeItem(key: string): void {\n localStorage.removeItem(key);\n }\n\n public clear(): void {\n localStorage.clear();\n }\n\n public isExist(key: string): boolean {\n if (key && key in localStorage) {\n return true;\n } else {\n return false;\n }\n }\n}\n\nexport const _localStorage: LocalStorage = LocalStorage.getInstance();\n","import * as lodash from 'lodash';\r\n\r\nclass ArrayUtils {\r\n private static instance = new ArrayUtils();\r\n\r\n private constructor() {}\r\n\r\n public static getInstance(): ArrayUtils {\r\n return this.instance;\r\n }\r\n\r\n public find(array: T[], element: T, comparator): T | undefined {\r\n return lodash.find(array, (item) => item[comparator] === element[comparator]);\r\n }\r\n\r\n public remove(array: T[], element: T, comparator): T[] {\r\n return lodash.remove(array, (item) => item[comparator] === element[comparator]);\r\n }\r\n}\r\n\r\nexport const _array: ArrayUtils = ArrayUtils.getInstance();\r\n","import Swal, { SweetAlertIcon, SweetAlertResult } from 'sweetalert2';\r\n\r\n/**\r\n * 这里使用单例模式,主要是因为将静态类,赋值给Vue.prototype会出现 Property '' is a static member of type '' 错误。\r\n * 参考以下文章\r\n * {@see https://techformist.com/static-variables-methods-typescript/}\r\n * {@see https://www.xspdf.com/resolution/54250655.html}\r\n * {@see https://www.typescriptlang.org/docs/handbook/classes.html#static-properties}\r\n *\r\n * 单例模式饿汉式与懒汉式\r\n * {@see https://zhuanlan.zhihu.com/p/129264092}\r\n */\r\nclass Notify {\r\n private static instance = new Notify();\r\n\r\n private constructor() {}\r\n\r\n public static getInstance(): Notify {\r\n return this.instance;\r\n }\r\n\r\n public information(title: string, icon: SweetAlertIcon): Promise> {\r\n return Swal.fire({\r\n position: 'top',\r\n title: title,\r\n icon: icon,\r\n timer: 2000,\r\n showConfirmButton: false,\r\n });\r\n }\r\n\r\n public info(text: string): Promise> {\r\n return this.information(text, 'info');\r\n }\r\n\r\n public error(text: string): Promise> {\r\n return this.information(text, 'error');\r\n }\r\n\r\n public warning(text: string): Promise> {\r\n return this.information(text, 'warning');\r\n }\r\n\r\n public success(text: string): Promise> {\r\n return this.information(text, 'success');\r\n }\r\n\r\n public question(text: string): Promise> {\r\n return this.information(text, 'question');\r\n }\r\n}\r\n\r\nexport const _notify: Notify = Notify.getInstance();\r\n\r\nexport { Swal, SweetAlertIcon, SweetAlertResult };\r\n","import CryptoJS from 'crypto-js';\nimport NodeRSA from 'node-rsa';\n\nclass AES {\n private static instance = new AES();\n\n private constructor() {}\n\n public static getInstance(): AES {\n return this.instance;\n }\n\n private default_key = 'abcd12345sxyzhkj';\n\n //加密\n public encrypt(key: string, content: unknown): string {\n key = key ? key : this.default_key;\n const _key = CryptoJS.enc.Utf8.parse(key);\n const _srcs = CryptoJS.enc.Utf8.parse(content);\n const encrypted = CryptoJS.AES.encrypt(_srcs, _key, { mode: CryptoJS.mode.ECB, padding: CryptoJS.pad.Pkcs7 });\n return encrypted.toString();\n }\n\n //解密\n public decrypt(key: string, content: unknown): string {\n key = key ? key : this.default_key;\n const _key = CryptoJS.enc.Utf8.parse(key);\n const decrypt = CryptoJS.AES.decrypt(content, _key, { mode: CryptoJS.mode.ECB, padding: CryptoJS.pad.Pkcs7 });\n return CryptoJS.enc.Utf8.stringify(decrypt).toString();\n }\n}\n\nexport const _aes: AES = AES.getInstance();\n\nclass RSA {\n private static instance = new RSA();\n\n private constructor() {}\n\n public static getInstance(): RSA {\n return this.instance;\n }\n\n public create(): RSAPair {\n const key = new NodeRSA({ b: 512 });\n key.setOptions({ encryptionScheme: 'pkcs1' });\n return { publicKey: key.exportKey('pkcs8-public'), privateKey: key.exportKey('pkcs8-private') };\n }\n\n public encrypt(publicKey: string, content: any): string {\n const key = new NodeRSA(publicKey, 'pkcs8-public', { encryptionScheme: 'pkcs1' });\n if (content instanceof Object || content instanceof Array) {\n return key.encrypt(JSON.stringify(content), 'base64', 'utf8');\n } else {\n return key.encrypt(new String(content), 'base64', 'utf8');\n }\n }\n\n public decrypt(privateKey: string, content: string): any {\n const key = new NodeRSA(privateKey, 'pkcs8-private', { encryptionScheme: 'pkcs1' });\n return key.decrypt(content, 'utf8');\n }\n}\n\nexport const _rsa: RSA = RSA.getInstance();\n"],"names":["LocalForage","LocalStorage","ArrayUtils","Notify","AES","RSA"],"mappings":"2qCAamBA,mjBA4DAC,mRCtEAC,wjBCUAC,okBCTAC,koBA+BAC"} \ No newline at end of file +{"version":3,"file":"index.min.js","sources":["../src/lib/database.ts","../src/lib/array.ts","../src/lib/message.ts","../src/lib/crypto.ts"],"sourcesContent":["import { default as localforage } from 'localforage';\r\n\r\n/**\r\n * 这里使用单例模式,主要是因为将静态类,赋值给Vue.prototype会出现 Property '' is a static member of type '' 错误。\r\n * 参考以下文章\r\n * {@see https://techformist.com/static-variables-methods-typescript/}\r\n * {@see https://www.xspdf.com/resolution/54250655.html}\r\n * {@see https://www.typescriptlang.org/docs/handbook/classes.html#static-properties}\r\n *\r\n * 单例模式饿汉式与懒汉式\r\n * {@see https://zhuanlan.zhihu.com/p/129264092}\r\n */\r\nclass LocalForage {\r\n private static instance = new LocalForage();\r\n\r\n private constructor() {}\r\n\r\n public static getInstance(): LocalForage {\r\n return this.instance;\r\n }\r\n\r\n /**\r\n * 参考https://github.com/localForage/localForage/blob/master/typings/localforage.d.ts\r\n *\r\n * @param key\r\n */\r\n public getItem(key: string): Promise {\r\n return localforage.getItem(key);\r\n }\r\n\r\n public setItem(key: string, value: T): Promise {\r\n return localforage.setItem(key, value);\r\n }\r\n\r\n public removeItem(key: string): Promise {\r\n return localforage.removeItem(key);\r\n }\r\n\r\n public clear(): Promise {\r\n return localforage.clear();\r\n }\r\n\r\n public length(): Promise {\r\n return localforage.length();\r\n }\r\n\r\n public key(keyIndex: number): Promise {\r\n return localforage.key(keyIndex);\r\n }\r\n\r\n public keys(): Promise {\r\n return localforage.keys();\r\n }\r\n public iterate(iteratee: (value: T, key: string, iterationNumber: number) => U): Promise {\r\n return localforage.iterate(iteratee);\r\n }\r\n\r\n public setDriver(driver: string | string[]): Promise {\r\n return localforage.setDriver(driver);\r\n }\r\n\r\n public config(options: LocalForageOptions): boolean {\r\n return localforage.config(options);\r\n }\r\n\r\n public createInstance(options: LocalForageOptions): LocalForage {\r\n return localforage.createInstance(options);\r\n }\r\n}\r\n\r\nexport const _localForage: LocalForage = LocalForage.getInstance();\r\n\r\nclass LocalStorage {\r\n private static instance = new LocalStorage();\r\n\r\n private constructor() {}\r\n\r\n public static getInstance(): LocalStorage {\r\n return this.instance;\r\n }\r\n\r\n public setObject(key: string, value: T): void {\r\n this.setItem(key, JSON.stringify(value));\r\n }\r\n\r\n public getObject(key: string): T | null {\r\n const result = this.getItem(key);\r\n if (result) {\r\n return JSON.parse(result);\r\n }\r\n return null;\r\n }\r\n\r\n public setItem(key: string, value: string): void {\r\n localStorage.setItem(key, value);\r\n }\r\n public getItem(key: string): string | null {\r\n return localStorage.getItem(key);\r\n }\r\n\r\n public removeItem(key: string): void {\r\n localStorage.removeItem(key);\r\n }\r\n\r\n public clear(): void {\r\n localStorage.clear();\r\n }\r\n\r\n public isExist(key: string): boolean {\r\n if (key && key in localStorage) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }\r\n}\r\n\r\nexport const _localStorage: LocalStorage = LocalStorage.getInstance();\r\n","import * as lodash from 'lodash';\r\n\r\nclass ArrayUtils {\r\n private static instance = new ArrayUtils();\r\n\r\n private constructor() {}\r\n\r\n public static getInstance(): ArrayUtils {\r\n return this.instance;\r\n }\r\n\r\n public find(array: T[], element: T, comparator): T | undefined {\r\n return lodash.find(array, (item) => item[comparator] === element[comparator]);\r\n }\r\n\r\n public remove(array: T[], element: T, comparator): T[] {\r\n return lodash.remove(array, (item) => item[comparator] === element[comparator]);\r\n }\r\n}\r\n\r\nexport const _array: ArrayUtils = ArrayUtils.getInstance();\r\n","import Swal, { SweetAlertIcon, SweetAlertResult } from 'sweetalert2';\r\n\r\n/**\r\n * 这里使用单例模式,主要是因为将静态类,赋值给Vue.prototype会出现 Property '' is a static member of type '' 错误。\r\n * 参考以下文章\r\n * {@see https://techformist.com/static-variables-methods-typescript/}\r\n * {@see https://www.xspdf.com/resolution/54250655.html}\r\n * {@see https://www.typescriptlang.org/docs/handbook/classes.html#static-properties}\r\n *\r\n * 单例模式饿汉式与懒汉式\r\n * {@see https://zhuanlan.zhihu.com/p/129264092}\r\n */\r\nclass Notify {\r\n private static instance = new Notify();\r\n\r\n private constructor() {}\r\n\r\n public static getInstance(): Notify {\r\n return this.instance;\r\n }\r\n\r\n public information(title: string, icon: SweetAlertIcon): Promise> {\r\n return Swal.fire({\r\n position: 'top',\r\n title: title,\r\n icon: icon,\r\n timer: 2000,\r\n showConfirmButton: false,\r\n });\r\n }\r\n\r\n public info(text: string): Promise> {\r\n return this.information(text, 'info');\r\n }\r\n\r\n public error(text: string): Promise> {\r\n return this.information(text, 'error');\r\n }\r\n\r\n public warning(text: string): Promise> {\r\n return this.information(text, 'warning');\r\n }\r\n\r\n public success(text: string): Promise> {\r\n return this.information(text, 'success');\r\n }\r\n\r\n public question(text: string): Promise> {\r\n return this.information(text, 'question');\r\n }\r\n}\r\n\r\nexport const _notify: Notify = Notify.getInstance();\r\n\r\nexport { Swal, SweetAlertIcon, SweetAlertResult };\r\n","import CryptoJS from 'crypto-js';\r\nimport NodeRSA from 'node-rsa';\r\n\r\nclass AES {\r\n private static instance = new AES();\r\n\r\n private constructor() {}\r\n\r\n public static getInstance(): AES {\r\n return this.instance;\r\n }\r\n\r\n private default_key = 'abcd12345sxyzhkj';\r\n\r\n //加密\r\n public encrypt(key: string, content: unknown): string {\r\n key = key ? key : this.default_key;\r\n const _key = CryptoJS.enc.Utf8.parse(key);\r\n const _srcs = CryptoJS.enc.Utf8.parse(content);\r\n const encrypted = CryptoJS.AES.encrypt(_srcs, _key, { mode: CryptoJS.mode.ECB, padding: CryptoJS.pad.Pkcs7 });\r\n return encrypted.toString();\r\n }\r\n\r\n //解密\r\n public decrypt(key: string, content: unknown): string {\r\n key = key ? key : this.default_key;\r\n const _key = CryptoJS.enc.Utf8.parse(key);\r\n const decrypt = CryptoJS.AES.decrypt(content, _key, { mode: CryptoJS.mode.ECB, padding: CryptoJS.pad.Pkcs7 });\r\n return CryptoJS.enc.Utf8.stringify(decrypt).toString();\r\n }\r\n}\r\n\r\nexport const _aes: AES = AES.getInstance();\r\n\r\nclass RSA {\r\n private static instance = new RSA();\r\n\r\n private constructor() {}\r\n\r\n public static getInstance(): RSA {\r\n return this.instance;\r\n }\r\n\r\n public create(): RSAPair {\r\n const key = new NodeRSA({ b: 512 });\r\n key.setOptions({ encryptionScheme: 'pkcs1' });\r\n return { publicKey: key.exportKey('pkcs8-public'), privateKey: key.exportKey('pkcs8-private') };\r\n }\r\n\r\n public encrypt(publicKey: string, content: any): string {\r\n const key = new NodeRSA(publicKey, 'pkcs8-public', { encryptionScheme: 'pkcs1' });\r\n if (content instanceof Object || content instanceof Array) {\r\n return key.encrypt(JSON.stringify(content), 'base64', 'utf8');\r\n } else {\r\n return key.encrypt(new String(content), 'base64', 'utf8');\r\n }\r\n }\r\n\r\n public decrypt(privateKey: string, content: string): any {\r\n const key = new NodeRSA(privateKey, 'pkcs8-private', { encryptionScheme: 'pkcs1' });\r\n return key.decrypt(content, 'utf8');\r\n }\r\n}\r\n\r\nexport const _rsa: RSA = RSA.getInstance();\r\n"],"names":["LocalForage","LocalStorage","ArrayUtils","Notify","AES","RSA"],"mappings":"2qCAamBA,mjBA4DAC,mRCtEAC,wjBCUAC,okBCTAC,koBA+BAC"} \ No newline at end of file diff --git a/packages/@hecate/utils/dist/index.umd.js.map b/packages/@hecate/utils/dist/index.umd.js.map index 32b2be4e..79dc492a 100644 --- a/packages/@hecate/utils/dist/index.umd.js.map +++ b/packages/@hecate/utils/dist/index.umd.js.map @@ -1 +1 @@ -{"version":3,"file":"index.umd.js","sources":["../src/lib/database.ts","../src/lib/array.ts","../src/lib/message.ts","../src/lib/crypto.ts"],"sourcesContent":["import { default as localforage } from 'localforage';\n\n/**\n * 这里使用单例模式,主要是因为将静态类,赋值给Vue.prototype会出现 Property '' is a static member of type '' 错误。\n * 参考以下文章\n * {@see https://techformist.com/static-variables-methods-typescript/}\n * {@see https://www.xspdf.com/resolution/54250655.html}\n * {@see https://www.typescriptlang.org/docs/handbook/classes.html#static-properties}\n *\n * 单例模式饿汉式与懒汉式\n * {@see https://zhuanlan.zhihu.com/p/129264092}\n */\nclass LocalForage {\n private static instance = new LocalForage();\n\n private constructor() {}\n\n public static getInstance(): LocalForage {\n return this.instance;\n }\n\n /**\n * 参考https://github.com/localForage/localForage/blob/master/typings/localforage.d.ts\n *\n * @param key\n */\n public getItem(key: string): Promise {\n return localforage.getItem(key);\n }\n\n public setItem(key: string, value: T): Promise {\n return localforage.setItem(key, value);\n }\n\n public removeItem(key: string): Promise {\n return localforage.removeItem(key);\n }\n\n public clear(): Promise {\n return localforage.clear();\n }\n\n public length(): Promise {\n return localforage.length();\n }\n\n public key(keyIndex: number): Promise {\n return localforage.key(keyIndex);\n }\n\n public keys(): Promise {\n return localforage.keys();\n }\n public iterate(iteratee: (value: T, key: string, iterationNumber: number) => U): Promise {\n return localforage.iterate(iteratee);\n }\n\n public setDriver(driver: string | string[]): Promise {\n return localforage.setDriver(driver);\n }\n\n public config(options: LocalForageOptions): boolean {\n return localforage.config(options);\n }\n\n public createInstance(options: LocalForageOptions): LocalForage {\n return localforage.createInstance(options);\n }\n}\n\nexport const _localForage: LocalForage = LocalForage.getInstance();\n\nclass LocalStorage {\n private static instance = new LocalStorage();\n\n private constructor() {}\n\n public static getInstance(): LocalStorage {\n return this.instance;\n }\n\n public setObject(key: string, value: T): void {\n this.setItem(key, JSON.stringify(value));\n }\n\n public getObject(key: string): T | null {\n const result = this.getItem(key);\n if (result) {\n return JSON.parse(result);\n }\n return null;\n }\n\n public setItem(key: string, value: string): void {\n localStorage.setItem(key, value);\n }\n public getItem(key: string): string | null {\n return localStorage.getItem(key);\n }\n\n public removeItem(key: string): void {\n localStorage.removeItem(key);\n }\n\n public clear(): void {\n localStorage.clear();\n }\n\n public isExist(key: string): boolean {\n if (key && key in localStorage) {\n return true;\n } else {\n return false;\n }\n }\n}\n\nexport const _localStorage: LocalStorage = LocalStorage.getInstance();\n","import * as lodash from 'lodash';\r\n\r\nclass ArrayUtils {\r\n private static instance = new ArrayUtils();\r\n\r\n private constructor() {}\r\n\r\n public static getInstance(): ArrayUtils {\r\n return this.instance;\r\n }\r\n\r\n public find(array: T[], element: T, comparator): T | undefined {\r\n return lodash.find(array, (item) => item[comparator] === element[comparator]);\r\n }\r\n\r\n public remove(array: T[], element: T, comparator): T[] {\r\n return lodash.remove(array, (item) => item[comparator] === element[comparator]);\r\n }\r\n}\r\n\r\nexport const _array: ArrayUtils = ArrayUtils.getInstance();\r\n","import Swal, { SweetAlertIcon, SweetAlertResult } from 'sweetalert2';\r\n\r\n/**\r\n * 这里使用单例模式,主要是因为将静态类,赋值给Vue.prototype会出现 Property '' is a static member of type '' 错误。\r\n * 参考以下文章\r\n * {@see https://techformist.com/static-variables-methods-typescript/}\r\n * {@see https://www.xspdf.com/resolution/54250655.html}\r\n * {@see https://www.typescriptlang.org/docs/handbook/classes.html#static-properties}\r\n *\r\n * 单例模式饿汉式与懒汉式\r\n * {@see https://zhuanlan.zhihu.com/p/129264092}\r\n */\r\nclass Notify {\r\n private static instance = new Notify();\r\n\r\n private constructor() {}\r\n\r\n public static getInstance(): Notify {\r\n return this.instance;\r\n }\r\n\r\n public information(title: string, icon: SweetAlertIcon): Promise> {\r\n return Swal.fire({\r\n position: 'top',\r\n title: title,\r\n icon: icon,\r\n timer: 2000,\r\n showConfirmButton: false,\r\n });\r\n }\r\n\r\n public info(text: string): Promise> {\r\n return this.information(text, 'info');\r\n }\r\n\r\n public error(text: string): Promise> {\r\n return this.information(text, 'error');\r\n }\r\n\r\n public warning(text: string): Promise> {\r\n return this.information(text, 'warning');\r\n }\r\n\r\n public success(text: string): Promise> {\r\n return this.information(text, 'success');\r\n }\r\n\r\n public question(text: string): Promise> {\r\n return this.information(text, 'question');\r\n }\r\n}\r\n\r\nexport const _notify: Notify = Notify.getInstance();\r\n\r\nexport { Swal, SweetAlertIcon, SweetAlertResult };\r\n","import CryptoJS from 'crypto-js';\nimport NodeRSA from 'node-rsa';\n\nclass AES {\n private static instance = new AES();\n\n private constructor() {}\n\n public static getInstance(): AES {\n return this.instance;\n }\n\n private default_key = 'abcd12345sxyzhkj';\n\n //加密\n public encrypt(key: string, content: unknown): string {\n key = key ? key : this.default_key;\n const _key = CryptoJS.enc.Utf8.parse(key);\n const _srcs = CryptoJS.enc.Utf8.parse(content);\n const encrypted = CryptoJS.AES.encrypt(_srcs, _key, { mode: CryptoJS.mode.ECB, padding: CryptoJS.pad.Pkcs7 });\n return encrypted.toString();\n }\n\n //解密\n public decrypt(key: string, content: unknown): string {\n key = key ? key : this.default_key;\n const _key = CryptoJS.enc.Utf8.parse(key);\n const decrypt = CryptoJS.AES.decrypt(content, _key, { mode: CryptoJS.mode.ECB, padding: CryptoJS.pad.Pkcs7 });\n return CryptoJS.enc.Utf8.stringify(decrypt).toString();\n }\n}\n\nexport const _aes: AES = AES.getInstance();\n\nclass RSA {\n private static instance = new RSA();\n\n private constructor() {}\n\n public static getInstance(): RSA {\n return this.instance;\n }\n\n public create(): RSAPair {\n const key = new NodeRSA({ b: 512 });\n key.setOptions({ encryptionScheme: 'pkcs1' });\n return { publicKey: key.exportKey('pkcs8-public'), privateKey: key.exportKey('pkcs8-private') };\n }\n\n public encrypt(publicKey: string, content: any): string {\n const key = new NodeRSA(publicKey, 'pkcs8-public', { encryptionScheme: 'pkcs1' });\n if (content instanceof Object || content instanceof Array) {\n return key.encrypt(JSON.stringify(content), 'base64', 'utf8');\n } else {\n return key.encrypt(new String(content), 'base64', 'utf8');\n }\n }\n\n public decrypt(privateKey: string, content: string): any {\n const key = new NodeRSA(privateKey, 'pkcs8-private', { encryptionScheme: 'pkcs1' });\n return key.decrypt(content, 'utf8');\n }\n}\n\nexport const _rsa: RSA = RSA.getInstance();\n"],"names":["LocalForage","LocalStorage","ArrayUtils","Notify","AES","RSA"],"mappings":"osDAamBA,mjBA4DAC,mRCtEAC,wjBCUAC,okBCTAC,koBA+BAC"} \ No newline at end of file +{"version":3,"file":"index.umd.js","sources":["../src/lib/database.ts","../src/lib/array.ts","../src/lib/message.ts","../src/lib/crypto.ts"],"sourcesContent":["import { default as localforage } from 'localforage';\r\n\r\n/**\r\n * 这里使用单例模式,主要是因为将静态类,赋值给Vue.prototype会出现 Property '' is a static member of type '' 错误。\r\n * 参考以下文章\r\n * {@see https://techformist.com/static-variables-methods-typescript/}\r\n * {@see https://www.xspdf.com/resolution/54250655.html}\r\n * {@see https://www.typescriptlang.org/docs/handbook/classes.html#static-properties}\r\n *\r\n * 单例模式饿汉式与懒汉式\r\n * {@see https://zhuanlan.zhihu.com/p/129264092}\r\n */\r\nclass LocalForage {\r\n private static instance = new LocalForage();\r\n\r\n private constructor() {}\r\n\r\n public static getInstance(): LocalForage {\r\n return this.instance;\r\n }\r\n\r\n /**\r\n * 参考https://github.com/localForage/localForage/blob/master/typings/localforage.d.ts\r\n *\r\n * @param key\r\n */\r\n public getItem(key: string): Promise {\r\n return localforage.getItem(key);\r\n }\r\n\r\n public setItem(key: string, value: T): Promise {\r\n return localforage.setItem(key, value);\r\n }\r\n\r\n public removeItem(key: string): Promise {\r\n return localforage.removeItem(key);\r\n }\r\n\r\n public clear(): Promise {\r\n return localforage.clear();\r\n }\r\n\r\n public length(): Promise {\r\n return localforage.length();\r\n }\r\n\r\n public key(keyIndex: number): Promise {\r\n return localforage.key(keyIndex);\r\n }\r\n\r\n public keys(): Promise {\r\n return localforage.keys();\r\n }\r\n public iterate(iteratee: (value: T, key: string, iterationNumber: number) => U): Promise {\r\n return localforage.iterate(iteratee);\r\n }\r\n\r\n public setDriver(driver: string | string[]): Promise {\r\n return localforage.setDriver(driver);\r\n }\r\n\r\n public config(options: LocalForageOptions): boolean {\r\n return localforage.config(options);\r\n }\r\n\r\n public createInstance(options: LocalForageOptions): LocalForage {\r\n return localforage.createInstance(options);\r\n }\r\n}\r\n\r\nexport const _localForage: LocalForage = LocalForage.getInstance();\r\n\r\nclass LocalStorage {\r\n private static instance = new LocalStorage();\r\n\r\n private constructor() {}\r\n\r\n public static getInstance(): LocalStorage {\r\n return this.instance;\r\n }\r\n\r\n public setObject(key: string, value: T): void {\r\n this.setItem(key, JSON.stringify(value));\r\n }\r\n\r\n public getObject(key: string): T | null {\r\n const result = this.getItem(key);\r\n if (result) {\r\n return JSON.parse(result);\r\n }\r\n return null;\r\n }\r\n\r\n public setItem(key: string, value: string): void {\r\n localStorage.setItem(key, value);\r\n }\r\n public getItem(key: string): string | null {\r\n return localStorage.getItem(key);\r\n }\r\n\r\n public removeItem(key: string): void {\r\n localStorage.removeItem(key);\r\n }\r\n\r\n public clear(): void {\r\n localStorage.clear();\r\n }\r\n\r\n public isExist(key: string): boolean {\r\n if (key && key in localStorage) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }\r\n}\r\n\r\nexport const _localStorage: LocalStorage = LocalStorage.getInstance();\r\n","import * as lodash from 'lodash';\r\n\r\nclass ArrayUtils {\r\n private static instance = new ArrayUtils();\r\n\r\n private constructor() {}\r\n\r\n public static getInstance(): ArrayUtils {\r\n return this.instance;\r\n }\r\n\r\n public find(array: T[], element: T, comparator): T | undefined {\r\n return lodash.find(array, (item) => item[comparator] === element[comparator]);\r\n }\r\n\r\n public remove(array: T[], element: T, comparator): T[] {\r\n return lodash.remove(array, (item) => item[comparator] === element[comparator]);\r\n }\r\n}\r\n\r\nexport const _array: ArrayUtils = ArrayUtils.getInstance();\r\n","import Swal, { SweetAlertIcon, SweetAlertResult } from 'sweetalert2';\r\n\r\n/**\r\n * 这里使用单例模式,主要是因为将静态类,赋值给Vue.prototype会出现 Property '' is a static member of type '' 错误。\r\n * 参考以下文章\r\n * {@see https://techformist.com/static-variables-methods-typescript/}\r\n * {@see https://www.xspdf.com/resolution/54250655.html}\r\n * {@see https://www.typescriptlang.org/docs/handbook/classes.html#static-properties}\r\n *\r\n * 单例模式饿汉式与懒汉式\r\n * {@see https://zhuanlan.zhihu.com/p/129264092}\r\n */\r\nclass Notify {\r\n private static instance = new Notify();\r\n\r\n private constructor() {}\r\n\r\n public static getInstance(): Notify {\r\n return this.instance;\r\n }\r\n\r\n public information(title: string, icon: SweetAlertIcon): Promise> {\r\n return Swal.fire({\r\n position: 'top',\r\n title: title,\r\n icon: icon,\r\n timer: 2000,\r\n showConfirmButton: false,\r\n });\r\n }\r\n\r\n public info(text: string): Promise> {\r\n return this.information(text, 'info');\r\n }\r\n\r\n public error(text: string): Promise> {\r\n return this.information(text, 'error');\r\n }\r\n\r\n public warning(text: string): Promise> {\r\n return this.information(text, 'warning');\r\n }\r\n\r\n public success(text: string): Promise> {\r\n return this.information(text, 'success');\r\n }\r\n\r\n public question(text: string): Promise> {\r\n return this.information(text, 'question');\r\n }\r\n}\r\n\r\nexport const _notify: Notify = Notify.getInstance();\r\n\r\nexport { Swal, SweetAlertIcon, SweetAlertResult };\r\n","import CryptoJS from 'crypto-js';\r\nimport NodeRSA from 'node-rsa';\r\n\r\nclass AES {\r\n private static instance = new AES();\r\n\r\n private constructor() {}\r\n\r\n public static getInstance(): AES {\r\n return this.instance;\r\n }\r\n\r\n private default_key = 'abcd12345sxyzhkj';\r\n\r\n //加密\r\n public encrypt(key: string, content: unknown): string {\r\n key = key ? key : this.default_key;\r\n const _key = CryptoJS.enc.Utf8.parse(key);\r\n const _srcs = CryptoJS.enc.Utf8.parse(content);\r\n const encrypted = CryptoJS.AES.encrypt(_srcs, _key, { mode: CryptoJS.mode.ECB, padding: CryptoJS.pad.Pkcs7 });\r\n return encrypted.toString();\r\n }\r\n\r\n //解密\r\n public decrypt(key: string, content: unknown): string {\r\n key = key ? key : this.default_key;\r\n const _key = CryptoJS.enc.Utf8.parse(key);\r\n const decrypt = CryptoJS.AES.decrypt(content, _key, { mode: CryptoJS.mode.ECB, padding: CryptoJS.pad.Pkcs7 });\r\n return CryptoJS.enc.Utf8.stringify(decrypt).toString();\r\n }\r\n}\r\n\r\nexport const _aes: AES = AES.getInstance();\r\n\r\nclass RSA {\r\n private static instance = new RSA();\r\n\r\n private constructor() {}\r\n\r\n public static getInstance(): RSA {\r\n return this.instance;\r\n }\r\n\r\n public create(): RSAPair {\r\n const key = new NodeRSA({ b: 512 });\r\n key.setOptions({ encryptionScheme: 'pkcs1' });\r\n return { publicKey: key.exportKey('pkcs8-public'), privateKey: key.exportKey('pkcs8-private') };\r\n }\r\n\r\n public encrypt(publicKey: string, content: any): string {\r\n const key = new NodeRSA(publicKey, 'pkcs8-public', { encryptionScheme: 'pkcs1' });\r\n if (content instanceof Object || content instanceof Array) {\r\n return key.encrypt(JSON.stringify(content), 'base64', 'utf8');\r\n } else {\r\n return key.encrypt(new String(content), 'base64', 'utf8');\r\n }\r\n }\r\n\r\n public decrypt(privateKey: string, content: string): any {\r\n const key = new NodeRSA(privateKey, 'pkcs8-private', { encryptionScheme: 'pkcs1' });\r\n return key.decrypt(content, 'utf8');\r\n }\r\n}\r\n\r\nexport const _rsa: RSA = RSA.getInstance();\r\n"],"names":["LocalForage","LocalStorage","ArrayUtils","Notify","AES","RSA"],"mappings":"osDAamBA,mjBA4DAC,mRCtEAC,wjBCUAC,okBCTAC,koBA+BAC"} \ No newline at end of file diff --git a/packages/@hecate/utils/dist/lib/index.esm.js.map b/packages/@hecate/utils/dist/lib/index.esm.js.map index cb2cef36..dc0a7f70 100644 --- a/packages/@hecate/utils/dist/lib/index.esm.js.map +++ b/packages/@hecate/utils/dist/lib/index.esm.js.map @@ -1 +1 @@ -{"version":3,"file":"index.esm.js","sources":["../../src/lib/database.ts","../../src/lib/array.ts","../../src/lib/message.ts","../../src/lib/crypto.ts","../../src/lib/index.ts"],"sourcesContent":["import { default as localforage } from 'localforage';\n\n/**\n * 这里使用单例模式,主要是因为将静态类,赋值给Vue.prototype会出现 Property '' is a static member of type '' 错误。\n * 参考以下文章\n * {@see https://techformist.com/static-variables-methods-typescript/}\n * {@see https://www.xspdf.com/resolution/54250655.html}\n * {@see https://www.typescriptlang.org/docs/handbook/classes.html#static-properties}\n *\n * 单例模式饿汉式与懒汉式\n * {@see https://zhuanlan.zhihu.com/p/129264092}\n */\nclass LocalForage {\n private static instance = new LocalForage();\n\n private constructor() {}\n\n public static getInstance(): LocalForage {\n return this.instance;\n }\n\n /**\n * 参考https://github.com/localForage/localForage/blob/master/typings/localforage.d.ts\n *\n * @param key\n */\n public getItem(key: string): Promise {\n return localforage.getItem(key);\n }\n\n public setItem(key: string, value: T): Promise {\n return localforage.setItem(key, value);\n }\n\n public removeItem(key: string): Promise {\n return localforage.removeItem(key);\n }\n\n public clear(): Promise {\n return localforage.clear();\n }\n\n public length(): Promise {\n return localforage.length();\n }\n\n public key(keyIndex: number): Promise {\n return localforage.key(keyIndex);\n }\n\n public keys(): Promise {\n return localforage.keys();\n }\n public iterate(iteratee: (value: T, key: string, iterationNumber: number) => U): Promise {\n return localforage.iterate(iteratee);\n }\n\n public setDriver(driver: string | string[]): Promise {\n return localforage.setDriver(driver);\n }\n\n public config(options: LocalForageOptions): boolean {\n return localforage.config(options);\n }\n\n public createInstance(options: LocalForageOptions): LocalForage {\n return localforage.createInstance(options);\n }\n}\n\nexport const _localForage: LocalForage = LocalForage.getInstance();\n\nclass LocalStorage {\n private static instance = new LocalStorage();\n\n private constructor() {}\n\n public static getInstance(): LocalStorage {\n return this.instance;\n }\n\n public setObject(key: string, value: T): void {\n this.setItem(key, JSON.stringify(value));\n }\n\n public getObject(key: string): T | null {\n const result = this.getItem(key);\n if (result) {\n return JSON.parse(result);\n }\n return null;\n }\n\n public setItem(key: string, value: string): void {\n localStorage.setItem(key, value);\n }\n public getItem(key: string): string | null {\n return localStorage.getItem(key);\n }\n\n public removeItem(key: string): void {\n localStorage.removeItem(key);\n }\n\n public clear(): void {\n localStorage.clear();\n }\n\n public isExist(key: string): boolean {\n if (key && key in localStorage) {\n return true;\n } else {\n return false;\n }\n }\n}\n\nexport const _localStorage: LocalStorage = LocalStorage.getInstance();\n","import * as lodash from 'lodash';\r\n\r\nclass ArrayUtils {\r\n private static instance = new ArrayUtils();\r\n\r\n private constructor() {}\r\n\r\n public static getInstance(): ArrayUtils {\r\n return this.instance;\r\n }\r\n\r\n public find(array: T[], element: T, comparator): T | undefined {\r\n return lodash.find(array, (item) => item[comparator] === element[comparator]);\r\n }\r\n\r\n public remove(array: T[], element: T, comparator): T[] {\r\n return lodash.remove(array, (item) => item[comparator] === element[comparator]);\r\n }\r\n}\r\n\r\nexport const _array: ArrayUtils = ArrayUtils.getInstance();\r\n","import Swal, { SweetAlertIcon, SweetAlertResult } from 'sweetalert2';\r\n\r\n/**\r\n * 这里使用单例模式,主要是因为将静态类,赋值给Vue.prototype会出现 Property '' is a static member of type '' 错误。\r\n * 参考以下文章\r\n * {@see https://techformist.com/static-variables-methods-typescript/}\r\n * {@see https://www.xspdf.com/resolution/54250655.html}\r\n * {@see https://www.typescriptlang.org/docs/handbook/classes.html#static-properties}\r\n *\r\n * 单例模式饿汉式与懒汉式\r\n * {@see https://zhuanlan.zhihu.com/p/129264092}\r\n */\r\nclass Notify {\r\n private static instance = new Notify();\r\n\r\n private constructor() {}\r\n\r\n public static getInstance(): Notify {\r\n return this.instance;\r\n }\r\n\r\n public information(title: string, icon: SweetAlertIcon): Promise> {\r\n return Swal.fire({\r\n position: 'top',\r\n title: title,\r\n icon: icon,\r\n timer: 2000,\r\n showConfirmButton: false,\r\n });\r\n }\r\n\r\n public info(text: string): Promise> {\r\n return this.information(text, 'info');\r\n }\r\n\r\n public error(text: string): Promise> {\r\n return this.information(text, 'error');\r\n }\r\n\r\n public warning(text: string): Promise> {\r\n return this.information(text, 'warning');\r\n }\r\n\r\n public success(text: string): Promise> {\r\n return this.information(text, 'success');\r\n }\r\n\r\n public question(text: string): Promise> {\r\n return this.information(text, 'question');\r\n }\r\n}\r\n\r\nexport const _notify: Notify = Notify.getInstance();\r\n\r\nexport { Swal, SweetAlertIcon, SweetAlertResult };\r\n","import CryptoJS from 'crypto-js';\nimport NodeRSA from 'node-rsa';\n\nclass AES {\n private static instance = new AES();\n\n private constructor() {}\n\n public static getInstance(): AES {\n return this.instance;\n }\n\n private default_key = 'abcd12345sxyzhkj';\n\n //加密\n public encrypt(key: string, content: unknown): string {\n key = key ? key : this.default_key;\n const _key = CryptoJS.enc.Utf8.parse(key);\n const _srcs = CryptoJS.enc.Utf8.parse(content);\n const encrypted = CryptoJS.AES.encrypt(_srcs, _key, { mode: CryptoJS.mode.ECB, padding: CryptoJS.pad.Pkcs7 });\n return encrypted.toString();\n }\n\n //解密\n public decrypt(key: string, content: unknown): string {\n key = key ? key : this.default_key;\n const _key = CryptoJS.enc.Utf8.parse(key);\n const decrypt = CryptoJS.AES.decrypt(content, _key, { mode: CryptoJS.mode.ECB, padding: CryptoJS.pad.Pkcs7 });\n return CryptoJS.enc.Utf8.stringify(decrypt).toString();\n }\n}\n\nexport const _aes: AES = AES.getInstance();\n\nclass RSA {\n private static instance = new RSA();\n\n private constructor() {}\n\n public static getInstance(): RSA {\n return this.instance;\n }\n\n public create(): RSAPair {\n const key = new NodeRSA({ b: 512 });\n key.setOptions({ encryptionScheme: 'pkcs1' });\n return { publicKey: key.exportKey('pkcs8-public'), privateKey: key.exportKey('pkcs8-private') };\n }\n\n public encrypt(publicKey: string, content: any): string {\n const key = new NodeRSA(publicKey, 'pkcs8-public', { encryptionScheme: 'pkcs1' });\n if (content instanceof Object || content instanceof Array) {\n return key.encrypt(JSON.stringify(content), 'base64', 'utf8');\n } else {\n return key.encrypt(new String(content), 'base64', 'utf8');\n }\n }\n\n public decrypt(privateKey: string, content: string): any {\n const key = new NodeRSA(privateKey, 'pkcs8-private', { encryptionScheme: 'pkcs1' });\n return key.decrypt(content, 'utf8');\n }\n}\n\nexport const _rsa: RSA = RSA.getInstance();\n","import * as lodash from 'lodash';\nimport * as shortid from 'shortid';\nimport { Base64 } from 'js-base64';\nimport moment from 'moment';\nimport { _localForage, _localStorage } from './database';\nimport { _array } from './array';\nimport { _notify, Swal, SweetAlertIcon, SweetAlertResult } from './message';\nimport { _rsa, _aes } from './crypto';\n\nmoment.locale('zh-cn');\n\nexport {\n _localForage,\n _localStorage,\n _notify,\n _array,\n Swal,\n SweetAlertIcon,\n SweetAlertResult,\n lodash,\n shortid,\n moment,\n _rsa,\n _aes,\n Base64,\n};\n"],"names":["LocalForage","LocalStorage","ArrayUtils","Notify","AES","RSA","moment"],"mappings":"sUAYA,yoBACmBA,mjBA4DAC,mRCtEAC,gjBCUAC,ofCTAC,0mBA+BAC,uCC1BnBC"} \ No newline at end of file +{"version":3,"file":"index.esm.js","sources":["../../src/lib/database.ts","../../src/lib/array.ts","../../src/lib/message.ts","../../src/lib/crypto.ts","../../src/lib/index.ts"],"sourcesContent":["import { default as localforage } from 'localforage';\r\n\r\n/**\r\n * 这里使用单例模式,主要是因为将静态类,赋值给Vue.prototype会出现 Property '' is a static member of type '' 错误。\r\n * 参考以下文章\r\n * {@see https://techformist.com/static-variables-methods-typescript/}\r\n * {@see https://www.xspdf.com/resolution/54250655.html}\r\n * {@see https://www.typescriptlang.org/docs/handbook/classes.html#static-properties}\r\n *\r\n * 单例模式饿汉式与懒汉式\r\n * {@see https://zhuanlan.zhihu.com/p/129264092}\r\n */\r\nclass LocalForage {\r\n private static instance = new LocalForage();\r\n\r\n private constructor() {}\r\n\r\n public static getInstance(): LocalForage {\r\n return this.instance;\r\n }\r\n\r\n /**\r\n * 参考https://github.com/localForage/localForage/blob/master/typings/localforage.d.ts\r\n *\r\n * @param key\r\n */\r\n public getItem(key: string): Promise {\r\n return localforage.getItem(key);\r\n }\r\n\r\n public setItem(key: string, value: T): Promise {\r\n return localforage.setItem(key, value);\r\n }\r\n\r\n public removeItem(key: string): Promise {\r\n return localforage.removeItem(key);\r\n }\r\n\r\n public clear(): Promise {\r\n return localforage.clear();\r\n }\r\n\r\n public length(): Promise {\r\n return localforage.length();\r\n }\r\n\r\n public key(keyIndex: number): Promise {\r\n return localforage.key(keyIndex);\r\n }\r\n\r\n public keys(): Promise {\r\n return localforage.keys();\r\n }\r\n public iterate(iteratee: (value: T, key: string, iterationNumber: number) => U): Promise {\r\n return localforage.iterate(iteratee);\r\n }\r\n\r\n public setDriver(driver: string | string[]): Promise {\r\n return localforage.setDriver(driver);\r\n }\r\n\r\n public config(options: LocalForageOptions): boolean {\r\n return localforage.config(options);\r\n }\r\n\r\n public createInstance(options: LocalForageOptions): LocalForage {\r\n return localforage.createInstance(options);\r\n }\r\n}\r\n\r\nexport const _localForage: LocalForage = LocalForage.getInstance();\r\n\r\nclass LocalStorage {\r\n private static instance = new LocalStorage();\r\n\r\n private constructor() {}\r\n\r\n public static getInstance(): LocalStorage {\r\n return this.instance;\r\n }\r\n\r\n public setObject(key: string, value: T): void {\r\n this.setItem(key, JSON.stringify(value));\r\n }\r\n\r\n public getObject(key: string): T | null {\r\n const result = this.getItem(key);\r\n if (result) {\r\n return JSON.parse(result);\r\n }\r\n return null;\r\n }\r\n\r\n public setItem(key: string, value: string): void {\r\n localStorage.setItem(key, value);\r\n }\r\n public getItem(key: string): string | null {\r\n return localStorage.getItem(key);\r\n }\r\n\r\n public removeItem(key: string): void {\r\n localStorage.removeItem(key);\r\n }\r\n\r\n public clear(): void {\r\n localStorage.clear();\r\n }\r\n\r\n public isExist(key: string): boolean {\r\n if (key && key in localStorage) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }\r\n}\r\n\r\nexport const _localStorage: LocalStorage = LocalStorage.getInstance();\r\n","import * as lodash from 'lodash';\r\n\r\nclass ArrayUtils {\r\n private static instance = new ArrayUtils();\r\n\r\n private constructor() {}\r\n\r\n public static getInstance(): ArrayUtils {\r\n return this.instance;\r\n }\r\n\r\n public find(array: T[], element: T, comparator): T | undefined {\r\n return lodash.find(array, (item) => item[comparator] === element[comparator]);\r\n }\r\n\r\n public remove(array: T[], element: T, comparator): T[] {\r\n return lodash.remove(array, (item) => item[comparator] === element[comparator]);\r\n }\r\n}\r\n\r\nexport const _array: ArrayUtils = ArrayUtils.getInstance();\r\n","import Swal, { SweetAlertIcon, SweetAlertResult } from 'sweetalert2';\r\n\r\n/**\r\n * 这里使用单例模式,主要是因为将静态类,赋值给Vue.prototype会出现 Property '' is a static member of type '' 错误。\r\n * 参考以下文章\r\n * {@see https://techformist.com/static-variables-methods-typescript/}\r\n * {@see https://www.xspdf.com/resolution/54250655.html}\r\n * {@see https://www.typescriptlang.org/docs/handbook/classes.html#static-properties}\r\n *\r\n * 单例模式饿汉式与懒汉式\r\n * {@see https://zhuanlan.zhihu.com/p/129264092}\r\n */\r\nclass Notify {\r\n private static instance = new Notify();\r\n\r\n private constructor() {}\r\n\r\n public static getInstance(): Notify {\r\n return this.instance;\r\n }\r\n\r\n public information(title: string, icon: SweetAlertIcon): Promise> {\r\n return Swal.fire({\r\n position: 'top',\r\n title: title,\r\n icon: icon,\r\n timer: 2000,\r\n showConfirmButton: false,\r\n });\r\n }\r\n\r\n public info(text: string): Promise> {\r\n return this.information(text, 'info');\r\n }\r\n\r\n public error(text: string): Promise> {\r\n return this.information(text, 'error');\r\n }\r\n\r\n public warning(text: string): Promise> {\r\n return this.information(text, 'warning');\r\n }\r\n\r\n public success(text: string): Promise> {\r\n return this.information(text, 'success');\r\n }\r\n\r\n public question(text: string): Promise> {\r\n return this.information(text, 'question');\r\n }\r\n}\r\n\r\nexport const _notify: Notify = Notify.getInstance();\r\n\r\nexport { Swal, SweetAlertIcon, SweetAlertResult };\r\n","import CryptoJS from 'crypto-js';\r\nimport NodeRSA from 'node-rsa';\r\n\r\nclass AES {\r\n private static instance = new AES();\r\n\r\n private constructor() {}\r\n\r\n public static getInstance(): AES {\r\n return this.instance;\r\n }\r\n\r\n private default_key = 'abcd12345sxyzhkj';\r\n\r\n //加密\r\n public encrypt(key: string, content: unknown): string {\r\n key = key ? key : this.default_key;\r\n const _key = CryptoJS.enc.Utf8.parse(key);\r\n const _srcs = CryptoJS.enc.Utf8.parse(content);\r\n const encrypted = CryptoJS.AES.encrypt(_srcs, _key, { mode: CryptoJS.mode.ECB, padding: CryptoJS.pad.Pkcs7 });\r\n return encrypted.toString();\r\n }\r\n\r\n //解密\r\n public decrypt(key: string, content: unknown): string {\r\n key = key ? key : this.default_key;\r\n const _key = CryptoJS.enc.Utf8.parse(key);\r\n const decrypt = CryptoJS.AES.decrypt(content, _key, { mode: CryptoJS.mode.ECB, padding: CryptoJS.pad.Pkcs7 });\r\n return CryptoJS.enc.Utf8.stringify(decrypt).toString();\r\n }\r\n}\r\n\r\nexport const _aes: AES = AES.getInstance();\r\n\r\nclass RSA {\r\n private static instance = new RSA();\r\n\r\n private constructor() {}\r\n\r\n public static getInstance(): RSA {\r\n return this.instance;\r\n }\r\n\r\n public create(): RSAPair {\r\n const key = new NodeRSA({ b: 512 });\r\n key.setOptions({ encryptionScheme: 'pkcs1' });\r\n return { publicKey: key.exportKey('pkcs8-public'), privateKey: key.exportKey('pkcs8-private') };\r\n }\r\n\r\n public encrypt(publicKey: string, content: any): string {\r\n const key = new NodeRSA(publicKey, 'pkcs8-public', { encryptionScheme: 'pkcs1' });\r\n if (content instanceof Object || content instanceof Array) {\r\n return key.encrypt(JSON.stringify(content), 'base64', 'utf8');\r\n } else {\r\n return key.encrypt(new String(content), 'base64', 'utf8');\r\n }\r\n }\r\n\r\n public decrypt(privateKey: string, content: string): any {\r\n const key = new NodeRSA(privateKey, 'pkcs8-private', { encryptionScheme: 'pkcs1' });\r\n return key.decrypt(content, 'utf8');\r\n }\r\n}\r\n\r\nexport const _rsa: RSA = RSA.getInstance();\r\n","import * as lodash from 'lodash';\r\nimport * as shortid from 'shortid';\r\nimport { Base64 } from 'js-base64';\r\nimport moment from 'moment';\r\nimport { _localForage, _localStorage } from './database';\r\nimport { _array } from './array';\r\nimport { _notify, Swal, SweetAlertIcon, SweetAlertResult } from './message';\r\nimport { _rsa, _aes } from './crypto';\r\n\r\nmoment.locale('zh-cn');\r\n\r\nexport {\r\n _localForage,\r\n _localStorage,\r\n _notify,\r\n _array,\r\n Swal,\r\n SweetAlertIcon,\r\n SweetAlertResult,\r\n lodash,\r\n shortid,\r\n moment,\r\n _rsa,\r\n _aes,\r\n Base64,\r\n};\r\n"],"names":["LocalForage","LocalStorage","ArrayUtils","Notify","AES","RSA","moment"],"mappings":"sUAYA,yoBACmBA,mjBA4DAC,mRCtEAC,gjBCUAC,ofCTAC,0mBA+BAC,uCC1BnBC"} \ No newline at end of file diff --git a/packages/@hecate/utils/dist/lib/index.min.js.map b/packages/@hecate/utils/dist/lib/index.min.js.map index a8bf262d..e36feaac 100644 --- a/packages/@hecate/utils/dist/lib/index.min.js.map +++ b/packages/@hecate/utils/dist/lib/index.min.js.map @@ -1 +1 @@ -{"version":3,"file":"index.min.js","sources":["../../src/lib/database.ts","../../src/lib/array.ts","../../src/lib/message.ts","../../src/lib/crypto.ts"],"sourcesContent":["import { default as localforage } from 'localforage';\n\n/**\n * 这里使用单例模式,主要是因为将静态类,赋值给Vue.prototype会出现 Property '' is a static member of type '' 错误。\n * 参考以下文章\n * {@see https://techformist.com/static-variables-methods-typescript/}\n * {@see https://www.xspdf.com/resolution/54250655.html}\n * {@see https://www.typescriptlang.org/docs/handbook/classes.html#static-properties}\n *\n * 单例模式饿汉式与懒汉式\n * {@see https://zhuanlan.zhihu.com/p/129264092}\n */\nclass LocalForage {\n private static instance = new LocalForage();\n\n private constructor() {}\n\n public static getInstance(): LocalForage {\n return this.instance;\n }\n\n /**\n * 参考https://github.com/localForage/localForage/blob/master/typings/localforage.d.ts\n *\n * @param key\n */\n public getItem(key: string): Promise {\n return localforage.getItem(key);\n }\n\n public setItem(key: string, value: T): Promise {\n return localforage.setItem(key, value);\n }\n\n public removeItem(key: string): Promise {\n return localforage.removeItem(key);\n }\n\n public clear(): Promise {\n return localforage.clear();\n }\n\n public length(): Promise {\n return localforage.length();\n }\n\n public key(keyIndex: number): Promise {\n return localforage.key(keyIndex);\n }\n\n public keys(): Promise {\n return localforage.keys();\n }\n public iterate(iteratee: (value: T, key: string, iterationNumber: number) => U): Promise {\n return localforage.iterate(iteratee);\n }\n\n public setDriver(driver: string | string[]): Promise {\n return localforage.setDriver(driver);\n }\n\n public config(options: LocalForageOptions): boolean {\n return localforage.config(options);\n }\n\n public createInstance(options: LocalForageOptions): LocalForage {\n return localforage.createInstance(options);\n }\n}\n\nexport const _localForage: LocalForage = LocalForage.getInstance();\n\nclass LocalStorage {\n private static instance = new LocalStorage();\n\n private constructor() {}\n\n public static getInstance(): LocalStorage {\n return this.instance;\n }\n\n public setObject(key: string, value: T): void {\n this.setItem(key, JSON.stringify(value));\n }\n\n public getObject(key: string): T | null {\n const result = this.getItem(key);\n if (result) {\n return JSON.parse(result);\n }\n return null;\n }\n\n public setItem(key: string, value: string): void {\n localStorage.setItem(key, value);\n }\n public getItem(key: string): string | null {\n return localStorage.getItem(key);\n }\n\n public removeItem(key: string): void {\n localStorage.removeItem(key);\n }\n\n public clear(): void {\n localStorage.clear();\n }\n\n public isExist(key: string): boolean {\n if (key && key in localStorage) {\n return true;\n } else {\n return false;\n }\n }\n}\n\nexport const _localStorage: LocalStorage = LocalStorage.getInstance();\n","import * as lodash from 'lodash';\r\n\r\nclass ArrayUtils {\r\n private static instance = new ArrayUtils();\r\n\r\n private constructor() {}\r\n\r\n public static getInstance(): ArrayUtils {\r\n return this.instance;\r\n }\r\n\r\n public find(array: T[], element: T, comparator): T | undefined {\r\n return lodash.find(array, (item) => item[comparator] === element[comparator]);\r\n }\r\n\r\n public remove(array: T[], element: T, comparator): T[] {\r\n return lodash.remove(array, (item) => item[comparator] === element[comparator]);\r\n }\r\n}\r\n\r\nexport const _array: ArrayUtils = ArrayUtils.getInstance();\r\n","import Swal, { SweetAlertIcon, SweetAlertResult } from 'sweetalert2';\r\n\r\n/**\r\n * 这里使用单例模式,主要是因为将静态类,赋值给Vue.prototype会出现 Property '' is a static member of type '' 错误。\r\n * 参考以下文章\r\n * {@see https://techformist.com/static-variables-methods-typescript/}\r\n * {@see https://www.xspdf.com/resolution/54250655.html}\r\n * {@see https://www.typescriptlang.org/docs/handbook/classes.html#static-properties}\r\n *\r\n * 单例模式饿汉式与懒汉式\r\n * {@see https://zhuanlan.zhihu.com/p/129264092}\r\n */\r\nclass Notify {\r\n private static instance = new Notify();\r\n\r\n private constructor() {}\r\n\r\n public static getInstance(): Notify {\r\n return this.instance;\r\n }\r\n\r\n public information(title: string, icon: SweetAlertIcon): Promise> {\r\n return Swal.fire({\r\n position: 'top',\r\n title: title,\r\n icon: icon,\r\n timer: 2000,\r\n showConfirmButton: false,\r\n });\r\n }\r\n\r\n public info(text: string): Promise> {\r\n return this.information(text, 'info');\r\n }\r\n\r\n public error(text: string): Promise> {\r\n return this.information(text, 'error');\r\n }\r\n\r\n public warning(text: string): Promise> {\r\n return this.information(text, 'warning');\r\n }\r\n\r\n public success(text: string): Promise> {\r\n return this.information(text, 'success');\r\n }\r\n\r\n public question(text: string): Promise> {\r\n return this.information(text, 'question');\r\n }\r\n}\r\n\r\nexport const _notify: Notify = Notify.getInstance();\r\n\r\nexport { Swal, SweetAlertIcon, SweetAlertResult };\r\n","import CryptoJS from 'crypto-js';\nimport NodeRSA from 'node-rsa';\n\nclass AES {\n private static instance = new AES();\n\n private constructor() {}\n\n public static getInstance(): AES {\n return this.instance;\n }\n\n private default_key = 'abcd12345sxyzhkj';\n\n //加密\n public encrypt(key: string, content: unknown): string {\n key = key ? key : this.default_key;\n const _key = CryptoJS.enc.Utf8.parse(key);\n const _srcs = CryptoJS.enc.Utf8.parse(content);\n const encrypted = CryptoJS.AES.encrypt(_srcs, _key, { mode: CryptoJS.mode.ECB, padding: CryptoJS.pad.Pkcs7 });\n return encrypted.toString();\n }\n\n //解密\n public decrypt(key: string, content: unknown): string {\n key = key ? key : this.default_key;\n const _key = CryptoJS.enc.Utf8.parse(key);\n const decrypt = CryptoJS.AES.decrypt(content, _key, { mode: CryptoJS.mode.ECB, padding: CryptoJS.pad.Pkcs7 });\n return CryptoJS.enc.Utf8.stringify(decrypt).toString();\n }\n}\n\nexport const _aes: AES = AES.getInstance();\n\nclass RSA {\n private static instance = new RSA();\n\n private constructor() {}\n\n public static getInstance(): RSA {\n return this.instance;\n }\n\n public create(): RSAPair {\n const key = new NodeRSA({ b: 512 });\n key.setOptions({ encryptionScheme: 'pkcs1' });\n return { publicKey: key.exportKey('pkcs8-public'), privateKey: key.exportKey('pkcs8-private') };\n }\n\n public encrypt(publicKey: string, content: any): string {\n const key = new NodeRSA(publicKey, 'pkcs8-public', { encryptionScheme: 'pkcs1' });\n if (content instanceof Object || content instanceof Array) {\n return key.encrypt(JSON.stringify(content), 'base64', 'utf8');\n } else {\n return key.encrypt(new String(content), 'base64', 'utf8');\n }\n }\n\n public decrypt(privateKey: string, content: string): any {\n const key = new NodeRSA(privateKey, 'pkcs8-private', { encryptionScheme: 'pkcs1' });\n return key.decrypt(content, 'utf8');\n }\n}\n\nexport const _rsa: RSA = RSA.getInstance();\n"],"names":["LocalForage","LocalStorage","ArrayUtils","Notify","AES","RSA"],"mappings":"0qCAamBA,mjBA4DAC,mRCtEAC,wjBCUAC,okBCTAC,koBA+BAC"} \ No newline at end of file +{"version":3,"file":"index.min.js","sources":["../../src/lib/database.ts","../../src/lib/array.ts","../../src/lib/message.ts","../../src/lib/crypto.ts"],"sourcesContent":["import { default as localforage } from 'localforage';\r\n\r\n/**\r\n * 这里使用单例模式,主要是因为将静态类,赋值给Vue.prototype会出现 Property '' is a static member of type '' 错误。\r\n * 参考以下文章\r\n * {@see https://techformist.com/static-variables-methods-typescript/}\r\n * {@see https://www.xspdf.com/resolution/54250655.html}\r\n * {@see https://www.typescriptlang.org/docs/handbook/classes.html#static-properties}\r\n *\r\n * 单例模式饿汉式与懒汉式\r\n * {@see https://zhuanlan.zhihu.com/p/129264092}\r\n */\r\nclass LocalForage {\r\n private static instance = new LocalForage();\r\n\r\n private constructor() {}\r\n\r\n public static getInstance(): LocalForage {\r\n return this.instance;\r\n }\r\n\r\n /**\r\n * 参考https://github.com/localForage/localForage/blob/master/typings/localforage.d.ts\r\n *\r\n * @param key\r\n */\r\n public getItem(key: string): Promise {\r\n return localforage.getItem(key);\r\n }\r\n\r\n public setItem(key: string, value: T): Promise {\r\n return localforage.setItem(key, value);\r\n }\r\n\r\n public removeItem(key: string): Promise {\r\n return localforage.removeItem(key);\r\n }\r\n\r\n public clear(): Promise {\r\n return localforage.clear();\r\n }\r\n\r\n public length(): Promise {\r\n return localforage.length();\r\n }\r\n\r\n public key(keyIndex: number): Promise {\r\n return localforage.key(keyIndex);\r\n }\r\n\r\n public keys(): Promise {\r\n return localforage.keys();\r\n }\r\n public iterate(iteratee: (value: T, key: string, iterationNumber: number) => U): Promise {\r\n return localforage.iterate(iteratee);\r\n }\r\n\r\n public setDriver(driver: string | string[]): Promise {\r\n return localforage.setDriver(driver);\r\n }\r\n\r\n public config(options: LocalForageOptions): boolean {\r\n return localforage.config(options);\r\n }\r\n\r\n public createInstance(options: LocalForageOptions): LocalForage {\r\n return localforage.createInstance(options);\r\n }\r\n}\r\n\r\nexport const _localForage: LocalForage = LocalForage.getInstance();\r\n\r\nclass LocalStorage {\r\n private static instance = new LocalStorage();\r\n\r\n private constructor() {}\r\n\r\n public static getInstance(): LocalStorage {\r\n return this.instance;\r\n }\r\n\r\n public setObject(key: string, value: T): void {\r\n this.setItem(key, JSON.stringify(value));\r\n }\r\n\r\n public getObject(key: string): T | null {\r\n const result = this.getItem(key);\r\n if (result) {\r\n return JSON.parse(result);\r\n }\r\n return null;\r\n }\r\n\r\n public setItem(key: string, value: string): void {\r\n localStorage.setItem(key, value);\r\n }\r\n public getItem(key: string): string | null {\r\n return localStorage.getItem(key);\r\n }\r\n\r\n public removeItem(key: string): void {\r\n localStorage.removeItem(key);\r\n }\r\n\r\n public clear(): void {\r\n localStorage.clear();\r\n }\r\n\r\n public isExist(key: string): boolean {\r\n if (key && key in localStorage) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }\r\n}\r\n\r\nexport const _localStorage: LocalStorage = LocalStorage.getInstance();\r\n","import * as lodash from 'lodash';\r\n\r\nclass ArrayUtils {\r\n private static instance = new ArrayUtils();\r\n\r\n private constructor() {}\r\n\r\n public static getInstance(): ArrayUtils {\r\n return this.instance;\r\n }\r\n\r\n public find(array: T[], element: T, comparator): T | undefined {\r\n return lodash.find(array, (item) => item[comparator] === element[comparator]);\r\n }\r\n\r\n public remove(array: T[], element: T, comparator): T[] {\r\n return lodash.remove(array, (item) => item[comparator] === element[comparator]);\r\n }\r\n}\r\n\r\nexport const _array: ArrayUtils = ArrayUtils.getInstance();\r\n","import Swal, { SweetAlertIcon, SweetAlertResult } from 'sweetalert2';\r\n\r\n/**\r\n * 这里使用单例模式,主要是因为将静态类,赋值给Vue.prototype会出现 Property '' is a static member of type '' 错误。\r\n * 参考以下文章\r\n * {@see https://techformist.com/static-variables-methods-typescript/}\r\n * {@see https://www.xspdf.com/resolution/54250655.html}\r\n * {@see https://www.typescriptlang.org/docs/handbook/classes.html#static-properties}\r\n *\r\n * 单例模式饿汉式与懒汉式\r\n * {@see https://zhuanlan.zhihu.com/p/129264092}\r\n */\r\nclass Notify {\r\n private static instance = new Notify();\r\n\r\n private constructor() {}\r\n\r\n public static getInstance(): Notify {\r\n return this.instance;\r\n }\r\n\r\n public information(title: string, icon: SweetAlertIcon): Promise> {\r\n return Swal.fire({\r\n position: 'top',\r\n title: title,\r\n icon: icon,\r\n timer: 2000,\r\n showConfirmButton: false,\r\n });\r\n }\r\n\r\n public info(text: string): Promise> {\r\n return this.information(text, 'info');\r\n }\r\n\r\n public error(text: string): Promise> {\r\n return this.information(text, 'error');\r\n }\r\n\r\n public warning(text: string): Promise> {\r\n return this.information(text, 'warning');\r\n }\r\n\r\n public success(text: string): Promise> {\r\n return this.information(text, 'success');\r\n }\r\n\r\n public question(text: string): Promise> {\r\n return this.information(text, 'question');\r\n }\r\n}\r\n\r\nexport const _notify: Notify = Notify.getInstance();\r\n\r\nexport { Swal, SweetAlertIcon, SweetAlertResult };\r\n","import CryptoJS from 'crypto-js';\r\nimport NodeRSA from 'node-rsa';\r\n\r\nclass AES {\r\n private static instance = new AES();\r\n\r\n private constructor() {}\r\n\r\n public static getInstance(): AES {\r\n return this.instance;\r\n }\r\n\r\n private default_key = 'abcd12345sxyzhkj';\r\n\r\n //加密\r\n public encrypt(key: string, content: unknown): string {\r\n key = key ? key : this.default_key;\r\n const _key = CryptoJS.enc.Utf8.parse(key);\r\n const _srcs = CryptoJS.enc.Utf8.parse(content);\r\n const encrypted = CryptoJS.AES.encrypt(_srcs, _key, { mode: CryptoJS.mode.ECB, padding: CryptoJS.pad.Pkcs7 });\r\n return encrypted.toString();\r\n }\r\n\r\n //解密\r\n public decrypt(key: string, content: unknown): string {\r\n key = key ? key : this.default_key;\r\n const _key = CryptoJS.enc.Utf8.parse(key);\r\n const decrypt = CryptoJS.AES.decrypt(content, _key, { mode: CryptoJS.mode.ECB, padding: CryptoJS.pad.Pkcs7 });\r\n return CryptoJS.enc.Utf8.stringify(decrypt).toString();\r\n }\r\n}\r\n\r\nexport const _aes: AES = AES.getInstance();\r\n\r\nclass RSA {\r\n private static instance = new RSA();\r\n\r\n private constructor() {}\r\n\r\n public static getInstance(): RSA {\r\n return this.instance;\r\n }\r\n\r\n public create(): RSAPair {\r\n const key = new NodeRSA({ b: 512 });\r\n key.setOptions({ encryptionScheme: 'pkcs1' });\r\n return { publicKey: key.exportKey('pkcs8-public'), privateKey: key.exportKey('pkcs8-private') };\r\n }\r\n\r\n public encrypt(publicKey: string, content: any): string {\r\n const key = new NodeRSA(publicKey, 'pkcs8-public', { encryptionScheme: 'pkcs1' });\r\n if (content instanceof Object || content instanceof Array) {\r\n return key.encrypt(JSON.stringify(content), 'base64', 'utf8');\r\n } else {\r\n return key.encrypt(new String(content), 'base64', 'utf8');\r\n }\r\n }\r\n\r\n public decrypt(privateKey: string, content: string): any {\r\n const key = new NodeRSA(privateKey, 'pkcs8-private', { encryptionScheme: 'pkcs1' });\r\n return key.decrypt(content, 'utf8');\r\n }\r\n}\r\n\r\nexport const _rsa: RSA = RSA.getInstance();\r\n"],"names":["LocalForage","LocalStorage","ArrayUtils","Notify","AES","RSA"],"mappings":"0qCAamBA,mjBA4DAC,mRCtEAC,wjBCUAC,okBCTAC,koBA+BAC"} \ No newline at end of file diff --git a/packages/@hecate/utils/dist/lib/index.umd.js.map b/packages/@hecate/utils/dist/lib/index.umd.js.map index 6fdf72bf..b4f94922 100644 --- a/packages/@hecate/utils/dist/lib/index.umd.js.map +++ b/packages/@hecate/utils/dist/lib/index.umd.js.map @@ -1 +1 @@ -{"version":3,"file":"index.umd.js","sources":["../../src/lib/database.ts","../../src/lib/array.ts","../../src/lib/message.ts","../../src/lib/crypto.ts"],"sourcesContent":["import { default as localforage } from 'localforage';\n\n/**\n * 这里使用单例模式,主要是因为将静态类,赋值给Vue.prototype会出现 Property '' is a static member of type '' 错误。\n * 参考以下文章\n * {@see https://techformist.com/static-variables-methods-typescript/}\n * {@see https://www.xspdf.com/resolution/54250655.html}\n * {@see https://www.typescriptlang.org/docs/handbook/classes.html#static-properties}\n *\n * 单例模式饿汉式与懒汉式\n * {@see https://zhuanlan.zhihu.com/p/129264092}\n */\nclass LocalForage {\n private static instance = new LocalForage();\n\n private constructor() {}\n\n public static getInstance(): LocalForage {\n return this.instance;\n }\n\n /**\n * 参考https://github.com/localForage/localForage/blob/master/typings/localforage.d.ts\n *\n * @param key\n */\n public getItem(key: string): Promise {\n return localforage.getItem(key);\n }\n\n public setItem(key: string, value: T): Promise {\n return localforage.setItem(key, value);\n }\n\n public removeItem(key: string): Promise {\n return localforage.removeItem(key);\n }\n\n public clear(): Promise {\n return localforage.clear();\n }\n\n public length(): Promise {\n return localforage.length();\n }\n\n public key(keyIndex: number): Promise {\n return localforage.key(keyIndex);\n }\n\n public keys(): Promise {\n return localforage.keys();\n }\n public iterate(iteratee: (value: T, key: string, iterationNumber: number) => U): Promise {\n return localforage.iterate(iteratee);\n }\n\n public setDriver(driver: string | string[]): Promise {\n return localforage.setDriver(driver);\n }\n\n public config(options: LocalForageOptions): boolean {\n return localforage.config(options);\n }\n\n public createInstance(options: LocalForageOptions): LocalForage {\n return localforage.createInstance(options);\n }\n}\n\nexport const _localForage: LocalForage = LocalForage.getInstance();\n\nclass LocalStorage {\n private static instance = new LocalStorage();\n\n private constructor() {}\n\n public static getInstance(): LocalStorage {\n return this.instance;\n }\n\n public setObject(key: string, value: T): void {\n this.setItem(key, JSON.stringify(value));\n }\n\n public getObject(key: string): T | null {\n const result = this.getItem(key);\n if (result) {\n return JSON.parse(result);\n }\n return null;\n }\n\n public setItem(key: string, value: string): void {\n localStorage.setItem(key, value);\n }\n public getItem(key: string): string | null {\n return localStorage.getItem(key);\n }\n\n public removeItem(key: string): void {\n localStorage.removeItem(key);\n }\n\n public clear(): void {\n localStorage.clear();\n }\n\n public isExist(key: string): boolean {\n if (key && key in localStorage) {\n return true;\n } else {\n return false;\n }\n }\n}\n\nexport const _localStorage: LocalStorage = LocalStorage.getInstance();\n","import * as lodash from 'lodash';\r\n\r\nclass ArrayUtils {\r\n private static instance = new ArrayUtils();\r\n\r\n private constructor() {}\r\n\r\n public static getInstance(): ArrayUtils {\r\n return this.instance;\r\n }\r\n\r\n public find(array: T[], element: T, comparator): T | undefined {\r\n return lodash.find(array, (item) => item[comparator] === element[comparator]);\r\n }\r\n\r\n public remove(array: T[], element: T, comparator): T[] {\r\n return lodash.remove(array, (item) => item[comparator] === element[comparator]);\r\n }\r\n}\r\n\r\nexport const _array: ArrayUtils = ArrayUtils.getInstance();\r\n","import Swal, { SweetAlertIcon, SweetAlertResult } from 'sweetalert2';\r\n\r\n/**\r\n * 这里使用单例模式,主要是因为将静态类,赋值给Vue.prototype会出现 Property '' is a static member of type '' 错误。\r\n * 参考以下文章\r\n * {@see https://techformist.com/static-variables-methods-typescript/}\r\n * {@see https://www.xspdf.com/resolution/54250655.html}\r\n * {@see https://www.typescriptlang.org/docs/handbook/classes.html#static-properties}\r\n *\r\n * 单例模式饿汉式与懒汉式\r\n * {@see https://zhuanlan.zhihu.com/p/129264092}\r\n */\r\nclass Notify {\r\n private static instance = new Notify();\r\n\r\n private constructor() {}\r\n\r\n public static getInstance(): Notify {\r\n return this.instance;\r\n }\r\n\r\n public information(title: string, icon: SweetAlertIcon): Promise> {\r\n return Swal.fire({\r\n position: 'top',\r\n title: title,\r\n icon: icon,\r\n timer: 2000,\r\n showConfirmButton: false,\r\n });\r\n }\r\n\r\n public info(text: string): Promise> {\r\n return this.information(text, 'info');\r\n }\r\n\r\n public error(text: string): Promise> {\r\n return this.information(text, 'error');\r\n }\r\n\r\n public warning(text: string): Promise> {\r\n return this.information(text, 'warning');\r\n }\r\n\r\n public success(text: string): Promise> {\r\n return this.information(text, 'success');\r\n }\r\n\r\n public question(text: string): Promise> {\r\n return this.information(text, 'question');\r\n }\r\n}\r\n\r\nexport const _notify: Notify = Notify.getInstance();\r\n\r\nexport { Swal, SweetAlertIcon, SweetAlertResult };\r\n","import CryptoJS from 'crypto-js';\nimport NodeRSA from 'node-rsa';\n\nclass AES {\n private static instance = new AES();\n\n private constructor() {}\n\n public static getInstance(): AES {\n return this.instance;\n }\n\n private default_key = 'abcd12345sxyzhkj';\n\n //加密\n public encrypt(key: string, content: unknown): string {\n key = key ? key : this.default_key;\n const _key = CryptoJS.enc.Utf8.parse(key);\n const _srcs = CryptoJS.enc.Utf8.parse(content);\n const encrypted = CryptoJS.AES.encrypt(_srcs, _key, { mode: CryptoJS.mode.ECB, padding: CryptoJS.pad.Pkcs7 });\n return encrypted.toString();\n }\n\n //解密\n public decrypt(key: string, content: unknown): string {\n key = key ? key : this.default_key;\n const _key = CryptoJS.enc.Utf8.parse(key);\n const decrypt = CryptoJS.AES.decrypt(content, _key, { mode: CryptoJS.mode.ECB, padding: CryptoJS.pad.Pkcs7 });\n return CryptoJS.enc.Utf8.stringify(decrypt).toString();\n }\n}\n\nexport const _aes: AES = AES.getInstance();\n\nclass RSA {\n private static instance = new RSA();\n\n private constructor() {}\n\n public static getInstance(): RSA {\n return this.instance;\n }\n\n public create(): RSAPair {\n const key = new NodeRSA({ b: 512 });\n key.setOptions({ encryptionScheme: 'pkcs1' });\n return { publicKey: key.exportKey('pkcs8-public'), privateKey: key.exportKey('pkcs8-private') };\n }\n\n public encrypt(publicKey: string, content: any): string {\n const key = new NodeRSA(publicKey, 'pkcs8-public', { encryptionScheme: 'pkcs1' });\n if (content instanceof Object || content instanceof Array) {\n return key.encrypt(JSON.stringify(content), 'base64', 'utf8');\n } else {\n return key.encrypt(new String(content), 'base64', 'utf8');\n }\n }\n\n public decrypt(privateKey: string, content: string): any {\n const key = new NodeRSA(privateKey, 'pkcs8-private', { encryptionScheme: 'pkcs1' });\n return key.decrypt(content, 'utf8');\n }\n}\n\nexport const _rsa: RSA = RSA.getInstance();\n"],"names":["LocalForage","LocalStorage","ArrayUtils","Notify","AES","RSA"],"mappings":"msDAamBA,mjBA4DAC,mRCtEAC,wjBCUAC,okBCTAC,koBA+BAC"} \ No newline at end of file +{"version":3,"file":"index.umd.js","sources":["../../src/lib/database.ts","../../src/lib/array.ts","../../src/lib/message.ts","../../src/lib/crypto.ts"],"sourcesContent":["import { default as localforage } from 'localforage';\r\n\r\n/**\r\n * 这里使用单例模式,主要是因为将静态类,赋值给Vue.prototype会出现 Property '' is a static member of type '' 错误。\r\n * 参考以下文章\r\n * {@see https://techformist.com/static-variables-methods-typescript/}\r\n * {@see https://www.xspdf.com/resolution/54250655.html}\r\n * {@see https://www.typescriptlang.org/docs/handbook/classes.html#static-properties}\r\n *\r\n * 单例模式饿汉式与懒汉式\r\n * {@see https://zhuanlan.zhihu.com/p/129264092}\r\n */\r\nclass LocalForage {\r\n private static instance = new LocalForage();\r\n\r\n private constructor() {}\r\n\r\n public static getInstance(): LocalForage {\r\n return this.instance;\r\n }\r\n\r\n /**\r\n * 参考https://github.com/localForage/localForage/blob/master/typings/localforage.d.ts\r\n *\r\n * @param key\r\n */\r\n public getItem(key: string): Promise {\r\n return localforage.getItem(key);\r\n }\r\n\r\n public setItem(key: string, value: T): Promise {\r\n return localforage.setItem(key, value);\r\n }\r\n\r\n public removeItem(key: string): Promise {\r\n return localforage.removeItem(key);\r\n }\r\n\r\n public clear(): Promise {\r\n return localforage.clear();\r\n }\r\n\r\n public length(): Promise {\r\n return localforage.length();\r\n }\r\n\r\n public key(keyIndex: number): Promise {\r\n return localforage.key(keyIndex);\r\n }\r\n\r\n public keys(): Promise {\r\n return localforage.keys();\r\n }\r\n public iterate(iteratee: (value: T, key: string, iterationNumber: number) => U): Promise {\r\n return localforage.iterate(iteratee);\r\n }\r\n\r\n public setDriver(driver: string | string[]): Promise {\r\n return localforage.setDriver(driver);\r\n }\r\n\r\n public config(options: LocalForageOptions): boolean {\r\n return localforage.config(options);\r\n }\r\n\r\n public createInstance(options: LocalForageOptions): LocalForage {\r\n return localforage.createInstance(options);\r\n }\r\n}\r\n\r\nexport const _localForage: LocalForage = LocalForage.getInstance();\r\n\r\nclass LocalStorage {\r\n private static instance = new LocalStorage();\r\n\r\n private constructor() {}\r\n\r\n public static getInstance(): LocalStorage {\r\n return this.instance;\r\n }\r\n\r\n public setObject(key: string, value: T): void {\r\n this.setItem(key, JSON.stringify(value));\r\n }\r\n\r\n public getObject(key: string): T | null {\r\n const result = this.getItem(key);\r\n if (result) {\r\n return JSON.parse(result);\r\n }\r\n return null;\r\n }\r\n\r\n public setItem(key: string, value: string): void {\r\n localStorage.setItem(key, value);\r\n }\r\n public getItem(key: string): string | null {\r\n return localStorage.getItem(key);\r\n }\r\n\r\n public removeItem(key: string): void {\r\n localStorage.removeItem(key);\r\n }\r\n\r\n public clear(): void {\r\n localStorage.clear();\r\n }\r\n\r\n public isExist(key: string): boolean {\r\n if (key && key in localStorage) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }\r\n}\r\n\r\nexport const _localStorage: LocalStorage = LocalStorage.getInstance();\r\n","import * as lodash from 'lodash';\r\n\r\nclass ArrayUtils {\r\n private static instance = new ArrayUtils();\r\n\r\n private constructor() {}\r\n\r\n public static getInstance(): ArrayUtils {\r\n return this.instance;\r\n }\r\n\r\n public find(array: T[], element: T, comparator): T | undefined {\r\n return lodash.find(array, (item) => item[comparator] === element[comparator]);\r\n }\r\n\r\n public remove(array: T[], element: T, comparator): T[] {\r\n return lodash.remove(array, (item) => item[comparator] === element[comparator]);\r\n }\r\n}\r\n\r\nexport const _array: ArrayUtils = ArrayUtils.getInstance();\r\n","import Swal, { SweetAlertIcon, SweetAlertResult } from 'sweetalert2';\r\n\r\n/**\r\n * 这里使用单例模式,主要是因为将静态类,赋值给Vue.prototype会出现 Property '' is a static member of type '' 错误。\r\n * 参考以下文章\r\n * {@see https://techformist.com/static-variables-methods-typescript/}\r\n * {@see https://www.xspdf.com/resolution/54250655.html}\r\n * {@see https://www.typescriptlang.org/docs/handbook/classes.html#static-properties}\r\n *\r\n * 单例模式饿汉式与懒汉式\r\n * {@see https://zhuanlan.zhihu.com/p/129264092}\r\n */\r\nclass Notify {\r\n private static instance = new Notify();\r\n\r\n private constructor() {}\r\n\r\n public static getInstance(): Notify {\r\n return this.instance;\r\n }\r\n\r\n public information(title: string, icon: SweetAlertIcon): Promise> {\r\n return Swal.fire({\r\n position: 'top',\r\n title: title,\r\n icon: icon,\r\n timer: 2000,\r\n showConfirmButton: false,\r\n });\r\n }\r\n\r\n public info(text: string): Promise> {\r\n return this.information(text, 'info');\r\n }\r\n\r\n public error(text: string): Promise> {\r\n return this.information(text, 'error');\r\n }\r\n\r\n public warning(text: string): Promise> {\r\n return this.information(text, 'warning');\r\n }\r\n\r\n public success(text: string): Promise> {\r\n return this.information(text, 'success');\r\n }\r\n\r\n public question(text: string): Promise> {\r\n return this.information(text, 'question');\r\n }\r\n}\r\n\r\nexport const _notify: Notify = Notify.getInstance();\r\n\r\nexport { Swal, SweetAlertIcon, SweetAlertResult };\r\n","import CryptoJS from 'crypto-js';\r\nimport NodeRSA from 'node-rsa';\r\n\r\nclass AES {\r\n private static instance = new AES();\r\n\r\n private constructor() {}\r\n\r\n public static getInstance(): AES {\r\n return this.instance;\r\n }\r\n\r\n private default_key = 'abcd12345sxyzhkj';\r\n\r\n //加密\r\n public encrypt(key: string, content: unknown): string {\r\n key = key ? key : this.default_key;\r\n const _key = CryptoJS.enc.Utf8.parse(key);\r\n const _srcs = CryptoJS.enc.Utf8.parse(content);\r\n const encrypted = CryptoJS.AES.encrypt(_srcs, _key, { mode: CryptoJS.mode.ECB, padding: CryptoJS.pad.Pkcs7 });\r\n return encrypted.toString();\r\n }\r\n\r\n //解密\r\n public decrypt(key: string, content: unknown): string {\r\n key = key ? key : this.default_key;\r\n const _key = CryptoJS.enc.Utf8.parse(key);\r\n const decrypt = CryptoJS.AES.decrypt(content, _key, { mode: CryptoJS.mode.ECB, padding: CryptoJS.pad.Pkcs7 });\r\n return CryptoJS.enc.Utf8.stringify(decrypt).toString();\r\n }\r\n}\r\n\r\nexport const _aes: AES = AES.getInstance();\r\n\r\nclass RSA {\r\n private static instance = new RSA();\r\n\r\n private constructor() {}\r\n\r\n public static getInstance(): RSA {\r\n return this.instance;\r\n }\r\n\r\n public create(): RSAPair {\r\n const key = new NodeRSA({ b: 512 });\r\n key.setOptions({ encryptionScheme: 'pkcs1' });\r\n return { publicKey: key.exportKey('pkcs8-public'), privateKey: key.exportKey('pkcs8-private') };\r\n }\r\n\r\n public encrypt(publicKey: string, content: any): string {\r\n const key = new NodeRSA(publicKey, 'pkcs8-public', { encryptionScheme: 'pkcs1' });\r\n if (content instanceof Object || content instanceof Array) {\r\n return key.encrypt(JSON.stringify(content), 'base64', 'utf8');\r\n } else {\r\n return key.encrypt(new String(content), 'base64', 'utf8');\r\n }\r\n }\r\n\r\n public decrypt(privateKey: string, content: string): any {\r\n const key = new NodeRSA(privateKey, 'pkcs8-private', { encryptionScheme: 'pkcs1' });\r\n return key.decrypt(content, 'utf8');\r\n }\r\n}\r\n\r\nexport const _rsa: RSA = RSA.getInstance();\r\n"],"names":["LocalForage","LocalStorage","ArrayUtils","Notify","AES","RSA"],"mappings":"msDAamBA,mjBA4DAC,mRCtEAC,wjBCUAC,okBCTAC,koBA+BAC"} \ No newline at end of file diff --git a/packages/@hephaestus/h-bpmn-moddle/dist/index.esm.js.map b/packages/@hephaestus/h-bpmn-moddle/dist/index.esm.js.map index fb729628..4871454d 100644 --- a/packages/@hephaestus/h-bpmn-moddle/dist/index.esm.js.map +++ b/packages/@hephaestus/h-bpmn-moddle/dist/index.esm.js.map @@ -1 +1 @@ -{"version":3,"file":"index.esm.js","sources":["../src/plugins/translate/zh.ts","../src/plugins/translate/custom.ts"],"sourcesContent":["/**\n * This is a sample file that should be replaced with the actual translation.\n *\n * Checkout https://github.com/bpmn-io/bpmn-js-i18n for a list of available\n * translations and labels to translate.\n */\nexport default {\n 'Activate the create/remove space tool': '启动创建/删除空间工具',\n 'Activate the global connect tool': '启动全局连接工具',\n 'Activate the hand tool': '启动手动工具',\n 'Activate the lasso tool': '启动 Lasso 工具',\n 'Ad-hoc': 'Ad-hoc子流程',\n 'Add Lane above': '添加到通道之上',\n 'Add Lane below': '添加到通道之下',\n 'Append compensation activity': '追加补偿活动',\n 'Append {type}': '追加 {type}',\n 'Business Rule Task': '规则任务',\n 'Call Activity': '引用流程',\n 'Cancel Boundary Event': '取消边界事件',\n 'Cancel End Event': '结束取消事件',\n 'Change type': '更改类型',\n 'Collapsed Pool': '折叠池',\n 'Compensation Boundary Event': '补偿边界事件',\n 'Compensation End Event': '结束补偿事件',\n 'Compensation Intermediate Throw Event': '中间补偿抛出事件',\n 'Compensation Start Event': '补偿启动事件',\n 'Complex Gateway': '复杂网关',\n 'Conditional Boundary Event (non-interrupting)': '条件边界事件 (非中断)',\n 'Conditional Boundary Event': '条件边界事件',\n 'Conditional Intermediate Catch Event': '中间条件捕获事件',\n 'Conditional Start Event (non-interrupting)': '条件启动事件 (非中断)',\n 'Conditional Start Event': '条件启动事件',\n 'Connect using Association': '文本关联',\n 'Connect using DataInputAssociation': '数据关联',\n 'Connect using Sequence/MessageFlow or Association': '消息关联',\n 'Create IntermediateThrowEvent/BoundaryEvent': '创建中间抛出/边界事件',\n 'Create Pool/Participant': '创建池/参与者',\n 'Create expanded SubProcess': '创建可折叠子流程',\n 'Create {type}': '创建 {type}',\n 'Divide into three Lanes': '分成三条通道',\n 'Divide into two Lanes': '分成两条通道',\n 'End Event': '结束事件',\n 'Error Boundary Event': '错误边界事件',\n 'Error End Event': '结束错误事件',\n 'Error Start Event': '错误启动事件',\n 'Escalation Boundary Event (non-interrupting)': '升级边界事件 (非中断)',\n 'Escalation Boundary Event': '升级边界事件',\n 'Escalation End Event': '结束升级事件',\n 'Escalation Intermediate Throw Event': '中间升级抛出事件',\n 'Escalation Start Event (non-interrupting)': '升级启动事件 (非中断)',\n 'Escalation Start Event': '升级启动事件',\n 'Event Sub Process': '事件子流程',\n 'Event based Gateway': '事件网关',\n 'Exclusive Gateway': '独占网关',\n 'Expanded Pool': '展开池',\n 'Inclusive Gateway': '包容网关',\n 'Intermediate Throw Event': '中间抛出事件',\n 'Link Intermediate Catch Event': '中间链接捕获事件',\n 'Link Intermediate Throw Event': '中间链接抛出事件',\n Loop: '循环',\n 'Manual Task': '手动任务',\n 'Message Boundary Event (non-interrupting)': '消息边界事件 (非中断)',\n 'Message Boundary Event': '消息边界事件',\n 'Message End Event': '结束消息事件',\n 'Message Intermediate Catch Event': '中间消息捕获事件',\n 'Message Intermediate Throw Event': '中间消息抛出事件',\n 'Message Start Event (non-interrupting)': '消息启动事件 (非中断)',\n 'Message Start Event': '消息启动事件',\n 'Parallel Gateway': '并行网关',\n 'Parallel Multi Instance': '并行多实例',\n 'Receive Task': '接受任务',\n Remove: '移除',\n 'Script Task': '脚本任务',\n 'Send Task': '发送任务',\n 'Sequential Multi Instance': '串行多实例',\n 'Service Task': '服务任务',\n 'Signal Boundary Event (non-interrupting)': '信号边界事件 (非中断)',\n 'Signal Boundary Event': '信号边界事件',\n 'Signal End Event': '结束信号事件',\n 'Signal Intermediate Catch Event': '中间信号捕获事件',\n 'Signal Intermediate Throw Event': '中间信号抛出事件',\n 'Signal Start Event (non-interrupting)': '信号启动事件 (非中断)',\n 'Signal Start Event': '信号启动事件',\n 'Start Event': '开始事件',\n 'Sub Process (collapsed)': '可折叠子流程',\n 'Sub Process (expanded)': '可展开子流程',\n 'Sub Process': '子流程',\n Task: '任务',\n 'Terminate End Event': '终止边界事件',\n 'Timer Boundary Event (non-interrupting)': '定时边界事件 (非中断)',\n 'Timer Boundary Event': '定时边界事件',\n 'Timer Intermediate Catch Event': '中间定时捕获事件',\n 'Timer Start Event (non-interrupting)': '定时启动事件 (非中断)',\n 'Timer Start Event': '定时启动事件',\n Transaction: '事务',\n 'User Task': '用户任务',\n 'already rendered {element}': '{element} 已呈现',\n 'diagram not part of bpmn:Definitions': '图表不是 bpmn:Definitions 的一部分',\n 'element required': '需要元素',\n 'element {element} referenced by {referenced}#{property} not yet drawn':\n '元素 {element} 的引用 {referenced}#{property} 尚未绘制',\n 'failed to import {element}': '{element} 导入失败',\n 'flow elements must be children of pools/participants': '元素必须是池/参与者的子级',\n 'more than {count} child lanes': '超过 {count} 条通道',\n 'no diagram to display': '没有要显示的图表',\n 'no parent for {element} in {parent}': '在 {element} 中没有父元素 {parent}',\n 'no process or collaboration to display': '没有可显示的流程或协作',\n 'no shape type specified': '未指定形状类型',\n 'out of bounds release': '越界释放',\n};\n","import TranslationsChinese from './zh';\n\nfunction translater(template: string, replacements: Record): string {\n const _replacements = replacements || {};\n\n const _template = TranslationsChinese[template] || template;\n\n return _template.replace(/{([^}]+)}/g, function (_, key) {\n return _replacements[key] || '{' + key + '}';\n });\n}\n\nexport default {\n translate: ['value', translater],\n};\n"],"names":[],"mappings":"iiBAMA,4sHCMA,0BAVA"} \ No newline at end of file +{"version":3,"file":"index.esm.js","sources":["../src/plugins/translate/zh.ts","../src/plugins/translate/custom.ts"],"sourcesContent":["/**\r\n * This is a sample file that should be replaced with the actual translation.\r\n *\r\n * Checkout https://github.com/bpmn-io/bpmn-js-i18n for a list of available\r\n * translations and labels to translate.\r\n */\r\nexport default {\r\n 'Activate the create/remove space tool': '启动创建/删除空间工具',\r\n 'Activate the global connect tool': '启动全局连接工具',\r\n 'Activate the hand tool': '启动手动工具',\r\n 'Activate the lasso tool': '启动 Lasso 工具',\r\n 'Ad-hoc': 'Ad-hoc子流程',\r\n 'Add Lane above': '添加到通道之上',\r\n 'Add Lane below': '添加到通道之下',\r\n 'Append compensation activity': '追加补偿活动',\r\n 'Append {type}': '追加 {type}',\r\n 'Business Rule Task': '规则任务',\r\n 'Call Activity': '引用流程',\r\n 'Cancel Boundary Event': '取消边界事件',\r\n 'Cancel End Event': '结束取消事件',\r\n 'Change type': '更改类型',\r\n 'Collapsed Pool': '折叠池',\r\n 'Compensation Boundary Event': '补偿边界事件',\r\n 'Compensation End Event': '结束补偿事件',\r\n 'Compensation Intermediate Throw Event': '中间补偿抛出事件',\r\n 'Compensation Start Event': '补偿启动事件',\r\n 'Complex Gateway': '复杂网关',\r\n 'Conditional Boundary Event (non-interrupting)': '条件边界事件 (非中断)',\r\n 'Conditional Boundary Event': '条件边界事件',\r\n 'Conditional Intermediate Catch Event': '中间条件捕获事件',\r\n 'Conditional Start Event (non-interrupting)': '条件启动事件 (非中断)',\r\n 'Conditional Start Event': '条件启动事件',\r\n 'Connect using Association': '文本关联',\r\n 'Connect using DataInputAssociation': '数据关联',\r\n 'Connect using Sequence/MessageFlow or Association': '消息关联',\r\n 'Create IntermediateThrowEvent/BoundaryEvent': '创建中间抛出/边界事件',\r\n 'Create Pool/Participant': '创建池/参与者',\r\n 'Create expanded SubProcess': '创建可折叠子流程',\r\n 'Create {type}': '创建 {type}',\r\n 'Divide into three Lanes': '分成三条通道',\r\n 'Divide into two Lanes': '分成两条通道',\r\n 'End Event': '结束事件',\r\n 'Error Boundary Event': '错误边界事件',\r\n 'Error End Event': '结束错误事件',\r\n 'Error Start Event': '错误启动事件',\r\n 'Escalation Boundary Event (non-interrupting)': '升级边界事件 (非中断)',\r\n 'Escalation Boundary Event': '升级边界事件',\r\n 'Escalation End Event': '结束升级事件',\r\n 'Escalation Intermediate Throw Event': '中间升级抛出事件',\r\n 'Escalation Start Event (non-interrupting)': '升级启动事件 (非中断)',\r\n 'Escalation Start Event': '升级启动事件',\r\n 'Event Sub Process': '事件子流程',\r\n 'Event based Gateway': '事件网关',\r\n 'Exclusive Gateway': '独占网关',\r\n 'Expanded Pool': '展开池',\r\n 'Inclusive Gateway': '包容网关',\r\n 'Intermediate Throw Event': '中间抛出事件',\r\n 'Link Intermediate Catch Event': '中间链接捕获事件',\r\n 'Link Intermediate Throw Event': '中间链接抛出事件',\r\n Loop: '循环',\r\n 'Manual Task': '手动任务',\r\n 'Message Boundary Event (non-interrupting)': '消息边界事件 (非中断)',\r\n 'Message Boundary Event': '消息边界事件',\r\n 'Message End Event': '结束消息事件',\r\n 'Message Intermediate Catch Event': '中间消息捕获事件',\r\n 'Message Intermediate Throw Event': '中间消息抛出事件',\r\n 'Message Start Event (non-interrupting)': '消息启动事件 (非中断)',\r\n 'Message Start Event': '消息启动事件',\r\n 'Parallel Gateway': '并行网关',\r\n 'Parallel Multi Instance': '并行多实例',\r\n 'Receive Task': '接受任务',\r\n Remove: '移除',\r\n 'Script Task': '脚本任务',\r\n 'Send Task': '发送任务',\r\n 'Sequential Multi Instance': '串行多实例',\r\n 'Service Task': '服务任务',\r\n 'Signal Boundary Event (non-interrupting)': '信号边界事件 (非中断)',\r\n 'Signal Boundary Event': '信号边界事件',\r\n 'Signal End Event': '结束信号事件',\r\n 'Signal Intermediate Catch Event': '中间信号捕获事件',\r\n 'Signal Intermediate Throw Event': '中间信号抛出事件',\r\n 'Signal Start Event (non-interrupting)': '信号启动事件 (非中断)',\r\n 'Signal Start Event': '信号启动事件',\r\n 'Start Event': '开始事件',\r\n 'Sub Process (collapsed)': '可折叠子流程',\r\n 'Sub Process (expanded)': '可展开子流程',\r\n 'Sub Process': '子流程',\r\n Task: '任务',\r\n 'Terminate End Event': '终止边界事件',\r\n 'Timer Boundary Event (non-interrupting)': '定时边界事件 (非中断)',\r\n 'Timer Boundary Event': '定时边界事件',\r\n 'Timer Intermediate Catch Event': '中间定时捕获事件',\r\n 'Timer Start Event (non-interrupting)': '定时启动事件 (非中断)',\r\n 'Timer Start Event': '定时启动事件',\r\n Transaction: '事务',\r\n 'User Task': '用户任务',\r\n 'already rendered {element}': '{element} 已呈现',\r\n 'diagram not part of bpmn:Definitions': '图表不是 bpmn:Definitions 的一部分',\r\n 'element required': '需要元素',\r\n 'element {element} referenced by {referenced}#{property} not yet drawn':\r\n '元素 {element} 的引用 {referenced}#{property} 尚未绘制',\r\n 'failed to import {element}': '{element} 导入失败',\r\n 'flow elements must be children of pools/participants': '元素必须是池/参与者的子级',\r\n 'more than {count} child lanes': '超过 {count} 条通道',\r\n 'no diagram to display': '没有要显示的图表',\r\n 'no parent for {element} in {parent}': '在 {element} 中没有父元素 {parent}',\r\n 'no process or collaboration to display': '没有可显示的流程或协作',\r\n 'no shape type specified': '未指定形状类型',\r\n 'out of bounds release': '越界释放',\r\n};\r\n","import TranslationsChinese from './zh';\r\n\r\nfunction translater(template: string, replacements: Record): string {\r\n const _replacements = replacements || {};\r\n\r\n const _template = TranslationsChinese[template] || template;\r\n\r\n return _template.replace(/{([^}]+)}/g, function (_, key) {\r\n return _replacements[key] || '{' + key + '}';\r\n });\r\n}\r\n\r\nexport default {\r\n translate: ['value', translater],\r\n};\r\n"],"names":[],"mappings":"iiBAMA,4sHCMA,0BAVA"} \ No newline at end of file diff --git a/packages/@hephaestus/h-bpmn-moddle/dist/index.min.js.map b/packages/@hephaestus/h-bpmn-moddle/dist/index.min.js.map index 89e3f32f..5c90cca3 100644 --- a/packages/@hephaestus/h-bpmn-moddle/dist/index.min.js.map +++ b/packages/@hephaestus/h-bpmn-moddle/dist/index.min.js.map @@ -1 +1 @@ -{"version":3,"file":"index.min.js","sources":["../src/plugins/translate/custom.ts"],"sourcesContent":["import TranslationsChinese from './zh';\n\nfunction translater(template: string, replacements: Record): string {\n const _replacements = replacements || {};\n\n const _template = TranslationsChinese[template] || template;\n\n return _template.replace(/{([^}]+)}/g, function (_, key) {\n return _replacements[key] || '{' + key + '}';\n });\n}\n\nexport default {\n translate: ['value', translater],\n};\n"],"names":[],"mappings":"85HAEA"} \ No newline at end of file +{"version":3,"file":"index.min.js","sources":["../src/plugins/translate/custom.ts"],"sourcesContent":["import TranslationsChinese from './zh';\r\n\r\nfunction translater(template: string, replacements: Record): string {\r\n const _replacements = replacements || {};\r\n\r\n const _template = TranslationsChinese[template] || template;\r\n\r\n return _template.replace(/{([^}]+)}/g, function (_, key) {\r\n return _replacements[key] || '{' + key + '}';\r\n });\r\n}\r\n\r\nexport default {\r\n translate: ['value', translater],\r\n};\r\n"],"names":[],"mappings":"85HAEA"} \ No newline at end of file diff --git a/packages/@hephaestus/h-bpmn-moddle/dist/index.umd.js.map b/packages/@hephaestus/h-bpmn-moddle/dist/index.umd.js.map index 11dc86f3..3bf9330a 100644 --- a/packages/@hephaestus/h-bpmn-moddle/dist/index.umd.js.map +++ b/packages/@hephaestus/h-bpmn-moddle/dist/index.umd.js.map @@ -1 +1 @@ -{"version":3,"file":"index.umd.js","sources":["../src/plugins/translate/custom.ts"],"sourcesContent":["import TranslationsChinese from './zh';\n\nfunction translater(template: string, replacements: Record): string {\n const _replacements = replacements || {};\n\n const _template = TranslationsChinese[template] || template;\n\n return _template.replace(/{([^}]+)}/g, function (_, key) {\n return _replacements[key] || '{' + key + '}';\n });\n}\n\nexport default {\n translate: ['value', translater],\n};\n"],"names":[],"mappings":"+iKAEA"} \ No newline at end of file +{"version":3,"file":"index.umd.js","sources":["../src/plugins/translate/custom.ts"],"sourcesContent":["import TranslationsChinese from './zh';\r\n\r\nfunction translater(template: string, replacements: Record): string {\r\n const _replacements = replacements || {};\r\n\r\n const _template = TranslationsChinese[template] || template;\r\n\r\n return _template.replace(/{([^}]+)}/g, function (_, key) {\r\n return _replacements[key] || '{' + key + '}';\r\n });\r\n}\r\n\r\nexport default {\r\n translate: ['value', translater],\r\n};\r\n"],"names":[],"mappings":"+iKAEA"} \ No newline at end of file diff --git a/packages/@hephaestus/h-bpmn-moddle/package.json b/packages/@hephaestus/h-bpmn-moddle/package.json index 6e1cdce5..763d5a89 100644 --- a/packages/@hephaestus/h-bpmn-moddle/package.json +++ b/packages/@hephaestus/h-bpmn-moddle/package.json @@ -27,7 +27,7 @@ "@types/bpmn-moddle": "^5.1.6", "bpmn-js": "^8.9.1", "bpmn-js-properties-panel": "^0.46.0", - "bpmn-js-token-simulation": "^0.25.0", + "bpmn-js-token-simulation": "^0.26.0", "camunda-bpmn-moddle": "^6.1.1", "diagram-js": "^8.1.1" } diff --git a/packages/@herodotus/ui/package.json b/packages/@herodotus/ui/package.json index 3184f754..597d0ce3 100644 --- a/packages/@herodotus/ui/package.json +++ b/packages/@herodotus/ui/package.json @@ -22,17 +22,17 @@ "@hecate/h-table": "^1.0.0", "@hecate/plugins": "^1.0.0", "@hecate/utils": "^1.0.0", - "axios": "^0.25.0", + "axios": "^0.26.0", "core-js": "^3.21.0", "nprogress": "^0.2.0", - "particles.vue": "^2.40.2", + "particles.vue": "^2.41.1", "vee-validate": "3.4.14", "vue-router": "^3.5.3", "vuex": "^3.6.0", "vuex-module-decorators": "^1.0.1" }, "devDependencies": { - "@types/node": "^17.0.16", + "@types/node": "^17.0.18", "@vue/cli-plugin-router": "^4.5.15", "@vue/cli-plugin-typescript": "^4.5.15", "@vue/cli-plugin-vuex": "^4.5.15", diff --git a/yarn.lock b/yarn.lock index b0e48370..58d096db 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2,13 +2,12 @@ # yarn lockfile v1 -"@ampproject/remapping@^2.0.0": - version "2.0.2" - resolved "https://registry.npmmirror.com/@ampproject/remapping/-/remapping-2.0.2.tgz#f3d9760bf30588c51408dbe7c05ff2bb13069307" - integrity sha512-sE8Gx+qSDMLoJvb3QarJJlDQK7SSY4rK3hxp4XsiANeFOmjU46ZI7Y9adAQRJrmbz8zbtZkp3mJTT+rGxtF0XA== +"@ampproject/remapping@^2.1.0": + version "2.1.1" + resolved "https://registry.npmmirror.com/@ampproject/remapping/-/remapping-2.1.1.tgz#7922fb0817bf3166d8d9e258c57477e3fd1c3610" + integrity sha512-Aolwjd7HSC2PyY0fDj/wA/EimQT4HfEnFYNp5s9CQlrdhyvWTtvZ5YzrUPu6R6/1jKiUlxu8bUhkdSnKHNAHMA== dependencies: - "@jridgewell/trace-mapping" "^0.2.2" - sourcemap-codec "1.4.8" + "@jridgewell/trace-mapping" "^0.3.0" "@babel/code-frame@^7.0.0", "@babel/code-frame@^7.10.4", "@babel/code-frame@^7.12.13", "@babel/code-frame@^7.8.3": version "7.12.13" @@ -49,6 +48,11 @@ resolved "https://registry.npmmirror.com/@babel/compat-data/download/@babel/compat-data-7.16.8.tgz#31560f9f29fdf1868de8cb55049538a1b9732a60" integrity "sha1-MVYPnyn98YaN6MtVBJU4oblzKmA= sha512-m7OkX0IdKLKPpBlJtF561YJal5y/jyI5fNfWbPxh2D/nbzzGI4qRyrD8xO2jB24u7l+5I2a43scCG2IrfjC50Q==" +"@babel/compat-data@^7.17.0": + version "7.17.0" + resolved "https://registry.npmmirror.com/@babel/compat-data/-/compat-data-7.17.0.tgz#86850b8597ea6962089770952075dcaabb8dba34" + integrity sha512-392byTlpGWXMv4FbyWw3sAZ/FrW/DrwqLGXpy0mbyNe9Taqv1mg9yON5/o0cnr8XYCkFTZbC1eV+c+LAROgrng== + "@babel/core@^7.11.0": version "7.12.13" resolved "https://registry.npm.taobao.org/@babel/core/download/@babel/core-7.12.13.tgz?cache=0&sync_timestamp=1612314761804&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40babel%2Fcore%2Fdownload%2F%40babel%2Fcore-7.12.13.tgz#b73a87a3a3e7d142a66248bf6ad88b9ceb093425" @@ -70,20 +74,20 @@ semver "^5.4.1" source-map "^0.5.0" -"@babel/core@^7.17.2": - version "7.17.2" - resolved "https://registry.npmmirror.com/@babel/core/-/core-7.17.2.tgz#2c77fc430e95139d816d39b113b31bf40fb22337" - integrity sha512-R3VH5G42VSDolRHyUO4V2cfag8WHcZyxdq5Z/m8Xyb92lW/Erm/6kM+XtRFGf3Mulre3mveni2NHfEUws8wSvw== +"@babel/core@^7.17.4": + version "7.17.4" + resolved "https://registry.npmmirror.com/@babel/core/-/core-7.17.4.tgz#a22f1ae8999122873b3d18865e98c7a3936b8c8b" + integrity sha512-R9x5r4t4+hBqZTmioSnkrW+I6NmbojwjGT8p4G2Gw1thWbXIHGDnmGdLdFw0/7ljucdIrNRp7Npgb4CyBYzzJg== dependencies: - "@ampproject/remapping" "^2.0.0" + "@ampproject/remapping" "^2.1.0" "@babel/code-frame" "^7.16.7" - "@babel/generator" "^7.17.0" + "@babel/generator" "^7.17.3" "@babel/helper-compilation-targets" "^7.16.7" "@babel/helper-module-transforms" "^7.16.7" "@babel/helpers" "^7.17.2" - "@babel/parser" "^7.17.0" + "@babel/parser" "^7.17.3" "@babel/template" "^7.16.7" - "@babel/traverse" "^7.17.0" + "@babel/traverse" "^7.17.3" "@babel/types" "^7.17.0" convert-source-map "^1.7.0" debug "^4.1.0" @@ -136,6 +140,15 @@ jsesc "^2.5.1" source-map "^0.5.0" +"@babel/generator@^7.17.3": + version "7.17.3" + resolved "https://registry.npmmirror.com/@babel/generator/-/generator-7.17.3.tgz#a2c30b0c4f89858cb87050c3ffdfd36bdf443200" + integrity sha512-+R6Dctil/MgUsZsZAkYgK+ADNSZzJRRy0TvY65T71z/CR854xHQ1EweBYXdfT+HNeN7w0cSJJEzgxZMv40pxsg== + dependencies: + "@babel/types" "^7.17.0" + jsesc "^2.5.1" + source-map "^0.5.0" + "@babel/helper-annotate-as-pure@^7.12.13": version "7.12.13" resolved "https://registry.npm.taobao.org/@babel/helper-annotate-as-pure/download/@babel/helper-annotate-as-pure-7.12.13.tgz?cache=0&sync_timestamp=1612314636125&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40babel%2Fhelper-annotate-as-pure%2Fdownload%2F%40babel%2Fhelper-annotate-as-pure-7.12.13.tgz#0f58e86dfc4bb3b1fcd7db806570e177d439b6ab" @@ -626,6 +639,11 @@ resolved "https://registry.npmmirror.com/@babel/parser/-/parser-7.17.0.tgz#f0ac33eddbe214e4105363bb17c3341c5ffcc43c" integrity sha512-VKXSCQx5D8S04ej+Dqsr1CzYvvWgf20jIw2D+YhQCrIlr2UZGaDds23Y0xg75/skOxpLCRpUZvk/1EAVkGoDOw== +"@babel/parser@^7.17.3": + version "7.17.3" + resolved "https://registry.npmmirror.com/@babel/parser/-/parser-7.17.3.tgz#b07702b982990bf6fdc1da5049a23fece4c5c3d0" + integrity sha512-7yJPvPV+ESz2IUTPbOL+YkIGyCqOyNIzdguKQuJGnH7bg1WTIifuM21YqokFt/THWh1AkCRn9IgoykTRCBVpzA== + "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@^7.16.7": version "7.16.7" resolved "https://registry.npmmirror.com/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/download/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.16.7.tgz#4eda6d6c2a0aa79c70fa7b6da67763dfe2141050" @@ -828,6 +846,17 @@ "@babel/plugin-syntax-object-rest-spread" "^7.8.3" "@babel/plugin-transform-parameters" "^7.16.7" +"@babel/plugin-proposal-object-rest-spread@^7.17.3": + version "7.17.3" + resolved "https://registry.npmmirror.com/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.17.3.tgz#d9eb649a54628a51701aef7e0ea3d17e2b9dd390" + integrity sha512-yuL5iQA/TbZn+RGAfxQXfi7CNLmKi1f8zInn4IgobuCWcAb7i+zj4TYzQ9l8cEzVyJ89PDGuqxK1xZpUDISesw== + dependencies: + "@babel/compat-data" "^7.17.0" + "@babel/helper-compilation-targets" "^7.16.7" + "@babel/helper-plugin-utils" "^7.16.7" + "@babel/plugin-syntax-object-rest-spread" "^7.8.3" + "@babel/plugin-transform-parameters" "^7.16.7" + "@babel/plugin-proposal-optional-catch-binding@^7.12.13": version "7.12.13" resolved "https://registry.npm.taobao.org/@babel/plugin-proposal-optional-catch-binding/download/@babel/plugin-proposal-optional-catch-binding-7.12.13.tgz?cache=0&sync_timestamp=1612314772947&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40babel%2Fplugin-proposal-optional-catch-binding%2Fdownload%2F%40babel%2Fplugin-proposal-optional-catch-binding-7.12.13.tgz#4640520afe57728af14b4d1574ba844f263bcae5" @@ -1889,6 +1918,22 @@ debug "^4.1.0" globals "^11.1.0" +"@babel/traverse@^7.17.3": + version "7.17.3" + resolved "https://registry.npmmirror.com/@babel/traverse/-/traverse-7.17.3.tgz#0ae0f15b27d9a92ba1f2263358ea7c4e7db47b57" + integrity sha512-5irClVky7TxRWIRtxlh2WPUUOLhcPN06AGgaQSB8AEwuyEBgJVuJ5imdHm5zxk8w0QS5T+tDfnDxAlhWjpb7cw== + dependencies: + "@babel/code-frame" "^7.16.7" + "@babel/generator" "^7.17.3" + "@babel/helper-environment-visitor" "^7.16.7" + "@babel/helper-function-name" "^7.16.7" + "@babel/helper-hoist-variables" "^7.16.7" + "@babel/helper-split-export-declaration" "^7.16.7" + "@babel/parser" "^7.17.3" + "@babel/types" "^7.17.0" + debug "^4.1.0" + globals "^11.1.0" + "@babel/types@^7.0.0", "@babel/types@^7.12.1", "@babel/types@^7.12.13", "@babel/types@^7.4.4", "@babel/types@^7.7.0": version "7.12.13" resolved "https://registry.npm.taobao.org/@babel/types/download/@babel/types-7.12.13.tgz?cache=0&sync_timestamp=1612314639153&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2F%40babel%2Ftypes%2Fdownload%2F%40babel%2Ftypes-7.12.13.tgz#8be1aa8f2c876da11a9cf650c0ecf656913ad611" @@ -2021,19 +2066,26 @@ dependencies: postcss-value-parser "^4.2.0" +"@csstools/postcss-progressive-custom-properties@^1.1.0": + version "1.2.0" + resolved "https://registry.npmmirror.com/@csstools/postcss-progressive-custom-properties/-/postcss-progressive-custom-properties-1.2.0.tgz#7d53b773de50874c3885918dcb10cac97bf66ed5" + integrity sha512-YLpFPK5OaLIRKZhUfnrZPT9s9cmtqltIOg7W6jPcxmiDpnZ4lk+odfufZttOAgcg6IHWvNLgcITSLpJxIQB/qQ== + dependencies: + postcss-value-parser "^4.2.0" + "@discoveryjs/json-ext@^0.5.0": version "0.5.2" resolved "https://registry.npm.taobao.org/@discoveryjs/json-ext/download/@discoveryjs/json-ext-0.5.2.tgz#8f03a22a04de437254e8ce8cc84ba39689288752" integrity "sha1-jwOiKgTeQ3JU6M6MyEujlokoh1I= sha512-HyYEUDeIj5rRQU2Hk5HTB2uHsbRQpF70nvMhVzi+VJR0X+xNEhjPui4/kBf3VeH/wqD28PT4sVOm8qqLjBrSZg==" -"@eslint/eslintrc@^1.0.5": - version "1.0.5" - resolved "https://registry.npmmirror.com/@eslint/eslintrc/download/@eslint/eslintrc-1.0.5.tgz#33f1b838dbf1f923bfa517e008362b78ddbbf318" - integrity "sha1-M/G4ONvx+SO/pRfgCDYreN278xg= sha512-BLxsnmK3KyPunz5wmCCpqy0YelEoxxGmH73Is+Z74oOTMtExcjkr3dDR6quwrjh1YspA8DH9gnX1o069KiS9AQ==" +"@eslint/eslintrc@^1.1.0": + version "1.1.0" + resolved "https://registry.npmmirror.com/@eslint/eslintrc/-/eslintrc-1.1.0.tgz#583d12dbec5d4f22f333f9669f7d0b7c7815b4d3" + integrity sha512-C1DfL7XX4nPqGd6jcP01W9pVM1HYCuUkFk1432D7F0v3JSlUIeOYn9oCoi3eoLZ+iwBSb29BMFxxny0YrrEZqg== dependencies: ajv "^6.12.4" debug "^4.3.2" - espree "^9.2.0" + espree "^9.3.1" globals "^13.9.0" ignore "^4.0.6" import-fresh "^3.2.1" @@ -2101,13 +2153,18 @@ resolved "https://registry.npmmirror.com/@jridgewell/resolve-uri/-/resolve-uri-3.0.4.tgz#b876e3feefb9c8d3aa84014da28b5e52a0640d72" integrity sha512-cz8HFjOFfUBtvN+NXYSFMHYRdxZMaEl0XypVrhzxBgadKIXhIkRd8aMeHhmF56Sl7SuS8OnUpQ73/k9LE4VnLg== -"@jridgewell/trace-mapping@^0.2.2": - version "0.2.4" - resolved "https://registry.npmmirror.com/@jridgewell/trace-mapping/-/trace-mapping-0.2.4.tgz#9c3a1f8e260fe59003bac7b0e355fe04ca875389" - integrity sha512-W/qPHey63KLHPC7zzvXeul8ouaugOu232lUPbyBAuoG9s+bmDSP1ANulLjGCf34Je3sGUPtw/Cg52e7ALY9+3w== +"@jridgewell/sourcemap-codec@^1.4.10": + version "1.4.11" + resolved "https://registry.npmmirror.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.11.tgz#771a1d8d744eeb71b6adb35808e1a6c7b9b8c8ec" + integrity sha512-Fg32GrJo61m+VqYSdRSjRXMjQ06j8YIYfcTqndLYVAaHmroZHLJZCydsWBOTDqXS2v+mjxohBWEMfg97GXmYQg== + +"@jridgewell/trace-mapping@^0.3.0": + version "0.3.4" + resolved "https://registry.npmmirror.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.4.tgz#f6a0832dffd5b8a6aaa633b7d9f8e8e94c83a0c3" + integrity sha512-vFv9ttIedivx0ux3QSjhgtCVjPZd5l46ZOMDSCwnH1yUO2e964gO8LZGyv2QkqcgR6TnBU1v+1IFqmeoG+0UJQ== dependencies: "@jridgewell/resolve-uri" "^3.0.3" - sourcemap-codec "1.4.8" + "@jridgewell/sourcemap-codec" "^1.4.10" "@lerna/add@4.0.0": version "4.0.0" @@ -3357,10 +3414,10 @@ resolved "https://registry.npm.taobao.org/@types/node/download/@types/node-14.14.25.tgz#15967a7b577ff81383f9b888aa6705d43fbbae93" integrity "sha1-FZZ6e1d/+BOD+biIqmcF1D+7rpM= sha512-EPpXLOVqDvisVxtlbvzfyqSsFeQxltFbluZNRndIb8tr9KiBnYNLzrc1N3pyKUCww2RNrfHDViqDWWE1LCJQtQ==" -"@types/node@^17.0.16": - version "17.0.16" - resolved "https://registry.npmmirror.com/@types/node/-/node-17.0.16.tgz#e3733f46797b9df9e853ca9f719c8a6f7b84cd26" - integrity sha512-ydLaGVfQOQ6hI1xK2A5nVh8bl0OGoIfYMxPWHqqYe9bTkWCfqiVvZoh2I/QF2sNSkZzZyROBoTefIEI+PB6iIA== +"@types/node@^17.0.18": + version "17.0.18" + resolved "https://registry.npmmirror.com/@types/node/-/node-17.0.18.tgz#3b4fed5cfb58010e3a2be4b6e74615e4847f1074" + integrity sha512-eKj4f/BsN/qcculZiRSujogjvp5O/k4lOW5m35NopjZM/QwLOR075a8pJW5hD+Rtdm2DaCVPENS6KtSQnUD6BA== "@types/normalize-package-data@^2.4.0": version "2.4.0" @@ -3480,14 +3537,14 @@ semver "^7.3.5" tsutils "^3.21.0" -"@typescript-eslint/eslint-plugin@^5.11.0": - version "5.11.0" - resolved "https://registry.npmmirror.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.11.0.tgz#3b866371d8d75c70f9b81535e7f7d3aa26527c7a" - integrity sha512-HJh33bgzXe6jGRocOj4FmefD7hRY4itgjzOrSs3JPrTNXsX7j5+nQPciAUj/1nZtwo2kAc3C75jZO+T23gzSGw== +"@typescript-eslint/eslint-plugin@^5.12.0": + version "5.12.0" + resolved "https://registry.npmmirror.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.12.0.tgz#bb46dd7ce7015c0928b98af1e602118e97df6c70" + integrity sha512-fwCMkDimwHVeIOKeBHiZhRUfJXU8n6xW1FL9diDxAyGAFvKcH4csy0v7twivOQdQdA0KC8TDr7GGRd3L4Lv0rQ== dependencies: - "@typescript-eslint/scope-manager" "5.11.0" - "@typescript-eslint/type-utils" "5.11.0" - "@typescript-eslint/utils" "5.11.0" + "@typescript-eslint/scope-manager" "5.12.0" + "@typescript-eslint/type-utils" "5.12.0" + "@typescript-eslint/utils" "5.12.0" debug "^4.3.2" functional-red-black-tree "^1.0.1" ignore "^5.1.8" @@ -3517,23 +3574,23 @@ "@typescript-eslint/typescript-estree" "5.8.0" debug "^4.3.2" -"@typescript-eslint/parser@^5.11.0": - version "5.11.0" - resolved "https://registry.npmmirror.com/@typescript-eslint/parser/-/parser-5.11.0.tgz#b4fcaf65513f9b34bdcbffdda055724a5efb7e04" - integrity sha512-x0DCjetHZYBRovJdr3U0zG9OOdNXUaFLJ82ehr1AlkArljJuwEsgnud+Q7umlGDFLFrs8tU8ybQDFocp/eX8mQ== +"@typescript-eslint/parser@^5.12.0": + version "5.12.0" + resolved "https://registry.npmmirror.com/@typescript-eslint/parser/-/parser-5.12.0.tgz#0ca669861813df99ce54916f66f524c625ed2434" + integrity sha512-MfSwg9JMBojMUoGjUmX+D2stoQj1CBYTCP0qnnVtu9A+YQXVKNtLjasYh+jozOcrb/wau8TCfWOkQTiOAruBog== dependencies: - "@typescript-eslint/scope-manager" "5.11.0" - "@typescript-eslint/types" "5.11.0" - "@typescript-eslint/typescript-estree" "5.11.0" + "@typescript-eslint/scope-manager" "5.12.0" + "@typescript-eslint/types" "5.12.0" + "@typescript-eslint/typescript-estree" "5.12.0" debug "^4.3.2" -"@typescript-eslint/scope-manager@5.11.0": - version "5.11.0" - resolved "https://registry.npmmirror.com/@typescript-eslint/scope-manager/-/scope-manager-5.11.0.tgz#f5aef83ff253f457ecbee5f46f762298f0101e4b" - integrity sha512-z+K4LlahDFVMww20t/0zcA7gq/NgOawaLuxgqGRVKS0PiZlCTIUtX0EJbC0BK1JtR4CelmkPK67zuCgpdlF4EA== +"@typescript-eslint/scope-manager@5.12.0": + version "5.12.0" + resolved "https://registry.npmmirror.com/@typescript-eslint/scope-manager/-/scope-manager-5.12.0.tgz#59619e6e5e2b1ce6cb3948b56014d3a24da83f5e" + integrity sha512-GAMobtIJI8FGf1sLlUWNUm2IOkIjvn7laFWyRx7CLrv6nLBI7su+B7lbStqVlK5NdLvHRFiJo2HhiDF7Ki01WQ== dependencies: - "@typescript-eslint/types" "5.11.0" - "@typescript-eslint/visitor-keys" "5.11.0" + "@typescript-eslint/types" "5.12.0" + "@typescript-eslint/visitor-keys" "5.12.0" "@typescript-eslint/scope-manager@5.8.0": version "5.8.0" @@ -3543,32 +3600,32 @@ "@typescript-eslint/types" "5.8.0" "@typescript-eslint/visitor-keys" "5.8.0" -"@typescript-eslint/type-utils@5.11.0": - version "5.11.0" - resolved "https://registry.npmmirror.com/@typescript-eslint/type-utils/-/type-utils-5.11.0.tgz#58be0ba73d1f6ef8983d79f7f0bc2209b253fefe" - integrity sha512-wDqdsYO6ofLaD4DsGZ0jGwxp4HrzD2YKulpEZXmgN3xo4BHJwf7kq49JTRpV0Gx6bxkSUmc9s0EIK1xPbFFpIA== +"@typescript-eslint/type-utils@5.12.0": + version "5.12.0" + resolved "https://registry.npmmirror.com/@typescript-eslint/type-utils/-/type-utils-5.12.0.tgz#aaf45765de71c6d9707c66ccff76ec2b9aa31bb6" + integrity sha512-9j9rli3zEBV+ae7rlbBOotJcI6zfc6SHFMdKI9M3Nc0sy458LJ79Os+TPWeBBL96J9/e36rdJOfCuyRSgFAA0Q== dependencies: - "@typescript-eslint/utils" "5.11.0" + "@typescript-eslint/utils" "5.12.0" debug "^4.3.2" tsutils "^3.21.0" -"@typescript-eslint/types@5.11.0": - version "5.11.0" - resolved "https://registry.npmmirror.com/@typescript-eslint/types/-/types-5.11.0.tgz#ba345818a2540fdf2755c804dc2158517ab61188" - integrity sha512-cxgBFGSRCoBEhvSVLkKw39+kMzUKHlJGVwwMbPcTZX3qEhuXhrjwaZXWMxVfxDgyMm+b5Q5b29Llo2yow8Y7xQ== +"@typescript-eslint/types@5.12.0": + version "5.12.0" + resolved "https://registry.npmmirror.com/@typescript-eslint/types/-/types-5.12.0.tgz#5b4030a28222ee01e851836562c07769eecda0b8" + integrity sha512-JowqbwPf93nvf8fZn5XrPGFBdIK8+yx5UEGs2QFAYFI8IWYfrzz+6zqlurGr2ctShMaJxqwsqmra3WXWjH1nRQ== "@typescript-eslint/types@5.8.0": version "5.8.0" resolved "https://registry.npmmirror.com/@typescript-eslint/types/download/@typescript-eslint/types-5.8.0.tgz#e7fa74ec35d9dbe3560d039d3d8734986c3971e0" integrity "sha1-5/p07DXZ2+NWDQOdPYc0mGw5ceA= sha512-LdCYOqeqZWqCMOmwFnum6YfW9F3nKuxJiR84CdIRN5nfHJ7gyvGpXWqL/AaW0k3Po0+wm93ARAsOdzlZDPCcXg==" -"@typescript-eslint/typescript-estree@5.11.0": - version "5.11.0" - resolved "https://registry.npmmirror.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.11.0.tgz#53f9e09b88368191e52020af77c312a4777ffa43" - integrity sha512-yVH9hKIv3ZN3lw8m/Jy5I4oXO4ZBMqijcXCdA4mY8ull6TPTAoQnKKrcZ0HDXg7Bsl0Unwwx7jcXMuNZc0m4lg== +"@typescript-eslint/typescript-estree@5.12.0": + version "5.12.0" + resolved "https://registry.npmmirror.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.12.0.tgz#cabf545fd592722f0e2b4104711e63bf89525cd2" + integrity sha512-Dd9gVeOqt38QHR0BEA8oRaT65WYqPYbIc5tRFQPkfLquVEFPD1HAtbZT98TLBkEcCkvwDYOAvuSvAD9DnQhMfQ== dependencies: - "@typescript-eslint/types" "5.11.0" - "@typescript-eslint/visitor-keys" "5.11.0" + "@typescript-eslint/types" "5.12.0" + "@typescript-eslint/visitor-keys" "5.12.0" debug "^4.3.2" globby "^11.0.4" is-glob "^4.0.3" @@ -3588,24 +3645,24 @@ semver "^7.3.5" tsutils "^3.21.0" -"@typescript-eslint/utils@5.11.0": - version "5.11.0" - resolved "https://registry.npmmirror.com/@typescript-eslint/utils/-/utils-5.11.0.tgz#d91548ef180d74c95d417950336d9260fdbe1dc5" - integrity sha512-g2I480tFE1iYRDyMhxPAtLQ9HAn0jjBtipgTCZmd9I9s11OV8CTsG+YfFciuNDcHqm4csbAgC2aVZCHzLxMSUw== +"@typescript-eslint/utils@5.12.0": + version "5.12.0" + resolved "https://registry.npmmirror.com/@typescript-eslint/utils/-/utils-5.12.0.tgz#92fd3193191621ab863add2f553a7b38b65646af" + integrity sha512-k4J2WovnMPGI4PzKgDtQdNrCnmBHpMUFy21qjX2CoPdoBcSBIMvVBr9P2YDP8jOqZOeK3ThOL6VO/sy6jtnvzw== dependencies: "@types/json-schema" "^7.0.9" - "@typescript-eslint/scope-manager" "5.11.0" - "@typescript-eslint/types" "5.11.0" - "@typescript-eslint/typescript-estree" "5.11.0" + "@typescript-eslint/scope-manager" "5.12.0" + "@typescript-eslint/types" "5.12.0" + "@typescript-eslint/typescript-estree" "5.12.0" eslint-scope "^5.1.1" eslint-utils "^3.0.0" -"@typescript-eslint/visitor-keys@5.11.0": - version "5.11.0" - resolved "https://registry.npmmirror.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.11.0.tgz#888542381f1a2ac745b06d110c83c0b261487ebb" - integrity sha512-E8w/vJReMGuloGxJDkpPlGwhxocxOpSVgSvjiLO5IxZPmxZF30weOeJYyPSEACwM+X4NziYS9q+WkN/2DHYQwA== +"@typescript-eslint/visitor-keys@5.12.0": + version "5.12.0" + resolved "https://registry.npmmirror.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.12.0.tgz#1ac9352ed140b07ba144ebf371b743fdf537ec16" + integrity sha512-cFwTlgnMV6TgezQynx2c/4/tx9Tufbuo9LPzmWqyRC3QC4qTGkAG1C6pBr0/4I10PAI/FlYunI3vJjIcu+ZHMg== dependencies: - "@typescript-eslint/types" "5.11.0" + "@typescript-eslint/types" "5.12.0" eslint-visitor-keys "^3.0.0" "@typescript-eslint/visitor-keys@5.8.0": @@ -4188,11 +4245,6 @@ acorn@^8.5.0: resolved "https://registry.nlark.com/acorn/download/acorn-8.5.0.tgz#4512ccb99b3698c752591e9bb4472e38ad43cee2" integrity "sha1-RRLMuZs2mMdSWR6btEcuOK1DzuI= sha512-yXbYeFy+jUuYd3/CDcg2NkIYE991XYX/bje7LmjJigUciaeO1JR4XxXgCIV1/Zc/dRuFEyw1L0pbA+qynJkW5Q==" -acorn@^8.6.0: - version "8.6.0" - resolved "https://registry.npmmirror.com/acorn/download/acorn-8.6.0.tgz?cache=0&sync_timestamp=1637225522161&other_urls=https%3A%2F%2Fregistry.npmmirror.com%2Facorn%2Fdownload%2Facorn-8.6.0.tgz#e3692ba0eb1a0c83eaa4f37f5fa7368dd7142895" - integrity "sha1-42kroOsaDIPqpPN/X6c2jdcUKJU= sha512-U1riIR+lBSNi3IbxtaHOIKdH8sLFv3NYfNv8sg7ZsNhcfl4HF2++BfqqrNAxoCLQW1iiylOj76ecnaUxz+z9yw==" - acorn@^8.7.0: version "8.7.0" resolved "https://registry.npmmirror.com/acorn/download/acorn-8.7.0.tgz#90951fde0f8f09df93549481e5fc141445b791cf" @@ -4647,12 +4699,12 @@ aws4@^1.8.0: resolved "https://registry.npm.taobao.org/aws4/download/aws4-1.11.0.tgz?cache=0&sync_timestamp=1604101210422&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Faws4%2Fdownload%2Faws4-1.11.0.tgz#d61f46d83b2519250e2784daf5b09479a8b41c59" integrity "sha1-1h9G2DslGSUOJ4Ta9bCUeai0HFk= sha512-xh1Rl34h6Fi1DC2WWKfxUTVqRsNnr6LsKz2+hfwDxQJWmrx8+c7ylaqBMcHfl1U1r2dsifOvKX3LQuLNZ+XSvA==" -axios@^0.25.0: - version "0.25.0" - resolved "https://registry.npmmirror.com/axios/download/axios-0.25.0.tgz#349cfbb31331a9b4453190791760a8d35b093e0a" - integrity sha512-cD8FOb0tRH3uuEe6+evtAbgJtfxr7ly3fQjYcMcuPlgkwVS9xboaVIpcDV+cYQe+yGykgwZCs1pzjntcGa6l5g== +axios@^0.26.0: + version "0.26.0" + resolved "https://registry.npmmirror.com/axios/-/axios-0.26.0.tgz#9a318f1c69ec108f8cd5f3c3d390366635e13928" + integrity sha512-lKoGLMYtHvFrPVt3r+RBMp9nh34N0M8zEfCWqdWZx6phynIEhQqAdydpyBAAG211zlhX9Rgu08cOamy6XjE5Og== dependencies: - follow-redirects "^1.14.7" + follow-redirects "^1.14.8" babel-code-frame@^6.22.0: version "6.26.0" @@ -4926,10 +4978,10 @@ bpmn-js-properties-panel@^0.46.0: selection-update "^0.1.2" semver "^6.3.0" -bpmn-js-token-simulation@^0.25.0: - version "0.25.0" - resolved "https://registry.npmmirror.com/bpmn-js-token-simulation/-/bpmn-js-token-simulation-0.25.0.tgz#7c0743d8e41155513ab9554b14afaae66c5ae55b" - integrity sha512-UkWjMXmQXBGfqN8y1zoww2IxnKQpFZ+ZPcszbdQ4DCWjGPVNrbK0nEPpKSKIurfLXoR7haZyPi0YrnDXT7NLDQ== +bpmn-js-token-simulation@^0.26.0: + version "0.26.0" + resolved "https://registry.npmmirror.com/bpmn-js-token-simulation/-/bpmn-js-token-simulation-0.26.0.tgz#d163db001cd782fd3738dd5d3aaaacfc70604c8b" + integrity sha512-amtNmjF022PDWPUNqSo1eUFHFwWIhgiTvFm2OcCKvbJogbWP8eBnIipMocdA8S+tgCgx+GkOPkfDCHPxj75Aeg== dependencies: min-dash "^3.8.1" min-dom "^3.1.3" @@ -5395,10 +5447,10 @@ caniuse-lite@^1.0.30001297: resolved "https://registry.npmmirror.com/caniuse-lite/download/caniuse-lite-1.0.30001298.tgz#0e690039f62e91c3ea581673d716890512e7ec52" integrity "sha1-DmkAOfYukcPqWBZz1xaJBRLn7FI= sha512-AcKqikjMLlvghZL/vfTHorlQsLDhGRalYf1+GmWCf5SCMziSGjRYQW/JEksj14NaYHIR6KIhrFAy0HV5C25UzQ==" -caniuse-lite@^1.0.30001310: - version "1.0.30001310" - resolved "https://registry.npmmirror.com/caniuse-lite/-/caniuse-lite-1.0.30001310.tgz#da02cd07432c9eece6992689d1b84ca18139eea8" - integrity sha512-cb9xTV8k9HTIUA3GnPUJCk0meUnrHL5gy5QePfDjxHyNBcnzPzrHFv5GqfP7ue5b1ZyzZL0RJboD6hQlPXjhjg== +caniuse-lite@^1.0.30001312: + version "1.0.30001312" + resolved "https://registry.npmmirror.com/caniuse-lite/-/caniuse-lite-1.0.30001312.tgz#e11eba4b87e24d22697dae05455d5aea28550d5f" + integrity sha512-Wiz1Psk2MEK0pX3rUzWaunLTZzqS2JYZFzNKqAiJGiuxIjRPLgV6+VDPOg6lQOUxmDwhTlh198JsTTi8Hzw6aQ== case-sensitive-paths-webpack-plugin@^2.3.0: version "2.3.0" @@ -6425,12 +6477,12 @@ crypto-js@^4.1.1: resolved "https://registry.nlark.com/crypto-js/download/crypto-js-4.1.1.tgz#9e485bcf03521041bd85844786b83fb7619736cf" integrity "sha1-nkhbzwNSEEG9hYRHhrg/t2GXNs8= sha512-o2JlM7ydqd3Qk9CA0L4NL6mTzU2sdx96a+oOfPu8Mkl/PK51vSyoi8/rQ8NknZtk44vq15lmhAj9CIAGwgeWKw==" -css-blank-pseudo@^3.0.2: - version "3.0.2" - resolved "https://registry.npmmirror.com/css-blank-pseudo/download/css-blank-pseudo-3.0.2.tgz#f8660f6a48b17888a9277e53f25cc5abec1f0169" - integrity sha512-hOb1LFjRR+8ocA071xUSmg5VslJ8NGo/I2qpUpdeAYyBVCgupS5O8SEVo4SxEMYyFBNodBkzG3T1iqW9HCXxew== +css-blank-pseudo@^3.0.3: + version "3.0.3" + resolved "https://registry.npmmirror.com/css-blank-pseudo/-/css-blank-pseudo-3.0.3.tgz#36523b01c12a25d812df343a32c322d2a2324561" + integrity sha512-VS90XWtsHGqoM0t4KpH053c4ehxZ2E6HtGI7x68YFV0pTo/QmkV/YFA+NnlvK8guxZVNWGQhVNJGC39Q8XF4OQ== dependencies: - postcss-selector-parser "^6.0.8" + postcss-selector-parser "^6.0.9" css-color-names@0.0.4, css-color-names@^0.0.4: version "0.0.4" @@ -6457,12 +6509,12 @@ css-declaration-sorter@^6.0.3: dependencies: timsort "^0.3.0" -css-has-pseudo@^3.0.3: - version "3.0.3" - resolved "https://registry.npmmirror.com/css-has-pseudo/download/css-has-pseudo-3.0.3.tgz#4824a34cb92dae7e09ea1d3fd19691b653412098" - integrity sha512-0gDYWEKaGacwxCqvQ3Ypg6wGdD1AztbMm5h1JsactG2hP2eiflj808QITmuWBpE7sjSEVrAlZhPTVd/nNMj/hQ== +css-has-pseudo@^3.0.4: + version "3.0.4" + resolved "https://registry.npmmirror.com/css-has-pseudo/-/css-has-pseudo-3.0.4.tgz#57f6be91ca242d5c9020ee3e51bbb5b89fc7af73" + integrity sha512-Vse0xpR1K9MNlp2j5w1pgWIJtm1a8qS0JwS9goFYcImjlHEmywP9VUF05aGBXzGpDJF86QXk4L0ypBmwPhGArw== dependencies: - postcss-selector-parser "^6.0.8" + postcss-selector-parser "^6.0.9" css-loader@^3.5.3: version "3.6.0" @@ -6610,10 +6662,10 @@ css@^2.0.0: source-map-resolve "^0.5.2" urix "^0.1.0" -cssdb@^6.1.0: - version "6.1.0" - resolved "https://registry.npmmirror.com/cssdb/-/cssdb-6.1.0.tgz#75d63b1257e33af72ffdfec65f0f342189e4ab37" - integrity sha512-tZEDdN57Wlb5DRbOpJI9hSoP0t6DjtzSRswFoWo0hmJxfAXTBuDAcp2Oybj6BgQ+sErs9hXnWS1kzYKDKHanmg== +cssdb@^6.3.0: + version "6.3.1" + resolved "https://registry.npmmirror.com/cssdb/-/cssdb-6.3.1.tgz#d8e521c70b32df082ea5373cdd51ac4dc6b6c151" + integrity sha512-Ho3gIkGY4O8S3J54fHu7RP5GHWz85McDhimaXEwf7qV0MSPhLM0jdd61zqs1kkadIVDAvfqoku0kArbWaMYolw== cssesc@^3.0.0: version "3.0.0" @@ -7685,10 +7737,10 @@ eslint-scope@^6.0.0: esrecurse "^4.3.0" estraverse "^5.2.0" -eslint-scope@^7.1.0: - version "7.1.0" - resolved "https://registry.npmmirror.com/eslint-scope/download/eslint-scope-7.1.0.tgz?cache=0&sync_timestamp=1637466913662&other_urls=https%3A%2F%2Fregistry.npmmirror.com%2Feslint-scope%2Fdownload%2Feslint-scope-7.1.0.tgz#c1f6ea30ac583031f203d65c73e723b01298f153" - integrity "sha1-wfbqMKxYMDHyA9Zcc+cjsBKY8VM= sha512-aWwkhnS0qAXqNOgKOK0dJ2nvzEbhEvpy8OlJ9kZ0FeZnA6zpjv1/Vei+puGFFX7zkPCkHHXb7IDX3A+7yPrRWg==" +eslint-scope@^7.1.1: + version "7.1.1" + resolved "https://registry.npmmirror.com/eslint-scope/-/eslint-scope-7.1.1.tgz#fff34894c2f65e5226d3041ac480b4513a163642" + integrity sha512-QKQM/UXpIiHcLqJ5AOyIW7XZmzjkzQXYE54n1++wb0u9V/abW3l9uQnxX8Z5Xd18xyKIMTUAyQ0k1e8pz6LUrw== dependencies: esrecurse "^4.3.0" estraverse "^5.2.0" @@ -7715,22 +7767,17 @@ eslint-visitor-keys@^3.0.0: resolved "https://registry.nlark.com/eslint-visitor-keys/download/eslint-visitor-keys-3.0.0.tgz#e32e99c6cdc2eb063f204eda5db67bfe58bb4186" integrity "sha1-4y6Zxs3C6wY/IE7aXbZ7/li7QYY= sha512-mJOZa35trBTb3IyRmo8xmKBZlxf+N7OnUl4+ZhJHs/r+0770Wh/LEACE2pqMGMe27G/4y8P2bYGk4J70IC5k1Q==" -eslint-visitor-keys@^3.1.0: - version "3.1.0" - resolved "https://registry.npmmirror.com/eslint-visitor-keys/download/eslint-visitor-keys-3.1.0.tgz?cache=0&sync_timestamp=1636378395014&other_urls=https%3A%2F%2Fregistry.npmmirror.com%2Feslint-visitor-keys%2Fdownload%2Feslint-visitor-keys-3.1.0.tgz#eee4acea891814cda67a7d8812d9647dd0179af2" - integrity "sha1-7uSs6okYFM2men2IEtlkfdAXmvI= sha512-yWJFpu4DtjsWKkt5GeNBBuZMlNcYVs6vRCLoCVEJrTjaSB6LC98gFipNK/erM2Heg/E8mIK+hXG/pJMLK+eRZA==" - -eslint-visitor-keys@^3.2.0: - version "3.2.0" - resolved "https://registry.npmmirror.com/eslint-visitor-keys/download/eslint-visitor-keys-3.2.0.tgz#6fbb166a6798ee5991358bc2daa1ba76cc1254a1" - integrity sha512-IOzT0X126zn7ALX0dwFiUQEdsfzrm4+ISsQS8nukaJXwEyYKRSnEIIDULYg1mCtGp7UUXgfGl7BIolXREQK+XQ== +eslint-visitor-keys@^3.3.0: + version "3.3.0" + resolved "https://registry.npmmirror.com/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz#f6480fa6b1f30efe2d1968aa8ac745b862469826" + integrity sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA== -eslint@^8.8.0: - version "8.8.0" - resolved "https://registry.npmmirror.com/eslint/-/eslint-8.8.0.tgz#9762b49abad0cb4952539ffdb0a046392e571a2d" - integrity sha512-H3KXAzQGBH1plhYS3okDix2ZthuYJlQQEGE5k0IKuEqUSiyu4AmxxlJ2MtTYeJ3xB4jDhcYCwGOg2TXYdnDXlQ== +eslint@^8.9.0: + version "8.9.0" + resolved "https://registry.npmmirror.com/eslint/-/eslint-8.9.0.tgz#a2a8227a99599adc4342fd9b854cb8d8d6412fdb" + integrity sha512-PB09IGwv4F4b0/atrbcMFboF/giawbBLVC7fyDamk5Wtey4Jh2K+rYaBhCAbUyEI4QzB1ly09Uglc9iCtFaG2Q== dependencies: - "@eslint/eslintrc" "^1.0.5" + "@eslint/eslintrc" "^1.1.0" "@humanwhocodes/config-array" "^0.9.2" ajv "^6.10.0" chalk "^4.0.0" @@ -7738,10 +7785,10 @@ eslint@^8.8.0: debug "^4.3.2" doctrine "^3.0.0" escape-string-regexp "^4.0.0" - eslint-scope "^7.1.0" + eslint-scope "^7.1.1" eslint-utils "^3.0.0" - eslint-visitor-keys "^3.2.0" - espree "^9.3.0" + eslint-visitor-keys "^3.3.0" + espree "^9.3.1" esquery "^1.4.0" esutils "^2.0.2" fast-deep-equal "^3.1.3" @@ -7775,23 +7822,14 @@ espree@^9.0.0: acorn-jsx "^5.3.1" eslint-visitor-keys "^3.0.0" -espree@^9.2.0: - version "9.2.0" - resolved "https://registry.npmmirror.com/espree/download/espree-9.2.0.tgz#c50814e01611c2d0f8bd4daa83c369eabba80dbc" - integrity "sha1-xQgU4BYRwtD4vU2qg8Np6ruoDbw= sha512-oP3utRkynpZWF/F2x/HZJ+AGtnIclaR7z1pYPxy7NYM2fSO6LgK/Rkny8anRSPK/VwEA1eqm2squui0T7ZMOBg==" - dependencies: - acorn "^8.6.0" - acorn-jsx "^5.3.1" - eslint-visitor-keys "^3.1.0" - -espree@^9.3.0: - version "9.3.0" - resolved "https://registry.npmmirror.com/espree/download/espree-9.3.0.tgz#c1240d79183b72aaee6ccfa5a90bc9111df085a8" - integrity "sha1-wSQNeRg7cqrubM+lqQvJER3whag= sha512-d/5nCsb0JcqsSEeQzFZ8DH1RmxPcglRWh24EFTlUEmCKoehXGdpsx0RkHDubqUI8LSAIKMQp4r9SzQ3n+sm4HQ==" +espree@^9.3.1: + version "9.3.1" + resolved "https://registry.npmmirror.com/espree/-/espree-9.3.1.tgz#8793b4bc27ea4c778c19908e0719e7b8f4115bcd" + integrity sha512-bvdyLmJMfwkV3NCRl5ZhJf22zBFo1y8bYh3VYb+bfzqNB4Je68P2sSuXyuFquzWLebHpNd2/d5uv7yoP9ISnGQ== dependencies: acorn "^8.7.0" acorn-jsx "^5.3.1" - eslint-visitor-keys "^3.1.0" + eslint-visitor-keys "^3.3.0" esprima@^4.0.0: version "4.0.1" @@ -8374,10 +8412,10 @@ follow-redirects@^1.0.0: resolved "https://registry.npm.taobao.org/follow-redirects/download/follow-redirects-1.13.2.tgz?cache=0&sync_timestamp=1611607023541&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ffollow-redirects%2Fdownload%2Ffollow-redirects-1.13.2.tgz#dd73c8effc12728ba5cf4259d760ea5fb83e3147" integrity "sha1-3XPI7/wScoulz0JZ12DqX7g+MUc= sha512-6mPTgLxYm3r6Bkkg0vNM0HTjfGrOEtsfbhagQvbxDEsEkpNhw582upBaoRZylzen6krEmxXJgt9Ju6HiI4O7BA==" -follow-redirects@^1.14.7: - version "1.14.7" - resolved "https://registry.npmmirror.com/follow-redirects/download/follow-redirects-1.14.7.tgz#2004c02eb9436eee9a21446a6477debf17e81685" - integrity sha512-+hbxoLbFMbRKDwohX8GkTataGqO6Jb7jGwpAlwgy2bIz25XtRm7KEzJM76R1WiNT5SwZkX4Y75SwBolkpmE7iQ== +follow-redirects@^1.14.8: + version "1.14.8" + resolved "https://registry.npmmirror.com/follow-redirects/-/follow-redirects-1.14.8.tgz#016996fb9a11a100566398b1c6839337d7bfa8fc" + integrity sha512-1x0S9UVJHsQprFcEC/qnNzBLcIxsjAV905f/UkQxbclCsoTWlacCNOpQa/anodLl2uaEKFhfWOvM2Qg77+15zA== for-in@^0.1.4: version "0.1.8" @@ -10429,10 +10467,10 @@ lines-and-columns@^1.1.6: resolved "https://registry.npm.taobao.org/lines-and-columns/download/lines-and-columns-1.1.6.tgz#1c00c743b433cd0a4e80758f7b64a57440d9ff00" integrity "sha1-HADHQ7QzzQpOgHWPe2SldEDZ/wA= sha512-8ZmlJFVK9iCmtLz19HpSsR8HaAMWBT284VMNednLwlIMDP2hJDCIhUp0IZ2xUcZ+Ob6BM0VvCSJwzASDM45NLQ==" -lint-staged@^12.3.3: - version "12.3.3" - resolved "https://registry.npmmirror.com/lint-staged/-/lint-staged-12.3.3.tgz#0a465962fe53baa2b4b9da50801ead49a910e03b" - integrity sha512-OqcLsqcPOqzvsfkxjeBpZylgJ3SRG1RYqc9LxC6tkt6tNsq1bNVkAixBwX09f6CobcHswzqVOCBpFR1Fck0+ag== +lint-staged@^12.3.4: + version "12.3.4" + resolved "https://registry.npmmirror.com/lint-staged/-/lint-staged-12.3.4.tgz#4b1ff8c394c3e6da436aaec5afd4db18b5dac360" + integrity sha512-yv/iK4WwZ7/v0GtVkNb3R82pdL9M+ScpIbJLJNyCXkJ1FGaXvRCOg/SeL59SZtPpqZhE7BD6kPKFLIDUhDx2/w== dependencies: cli-truncate "^3.1.0" colorette "^2.0.16" @@ -12266,12 +12304,12 @@ parseurl@~1.3.2, parseurl@~1.3.3: resolved "https://registry.npm.taobao.org/parseurl/download/parseurl-1.3.3.tgz?cache=0&sync_timestamp=1593529696791&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fparseurl%2Fdownload%2Fparseurl-1.3.3.tgz#9da19e7bee8d12dff0513ed5b76957793bc2e8d4" integrity "sha1-naGee+6NEt/wUT7Vt2lXeTvC6NQ= sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==" -particles.vue@^2.40.2: - version "2.40.2" - resolved "https://registry.npmmirror.com/particles.vue/-/particles.vue-2.40.2.tgz#67587d38e43c990e52e773c5ce5474b016d47ef0" - integrity sha512-d/Yk4XgasKRY4o7AjZX7iyUSlGvKVIdN+cSEyE2WzTS4/OdNufwxFWatyNiSs1nWRQBecggdaB1hzXCRBrO2dQ== +particles.vue@^2.41.1: + version "2.41.1" + resolved "https://registry.npmmirror.com/particles.vue/-/particles.vue-2.41.1.tgz#a17c24c11961a2f5b462c7a5171843072adb38a7" + integrity sha512-YHNCraBQVi9JpGDgkvufBg64bh+JrW2FYHnphMJNRA3fqXqQW8Q+9fblMglDjS7exHC2B5/k8REHHreqTyd8eg== dependencies: - tsparticles "^1.40.2" + tsparticles "^1.41.1" vue-class-component "<8" vue-property-decorator "<10" @@ -12542,17 +12580,17 @@ postcss-clamp@^3.0.0: dependencies: postcss-value-parser "^4.1.0" -postcss-color-functional-notation@^4.2.1: - version "4.2.1" - resolved "https://registry.npmmirror.com/postcss-color-functional-notation/download/postcss-color-functional-notation-4.2.1.tgz#a25e9e1855e14d04319222a689f120b3240d39e0" - integrity "sha1-ol6eGFXhTQQxkiKmifEgsyQNOeA= sha512-62OBIXCjRXpQZcFOYIXwXBlpAVWrYk8ek1rcjvMING4Q2cf0ipyN9qT+BhHA6HmftGSEnFQu2qgKO3gMscl3Rw==" +postcss-color-functional-notation@^4.2.2: + version "4.2.2" + resolved "https://registry.npmmirror.com/postcss-color-functional-notation/-/postcss-color-functional-notation-4.2.2.tgz#f59ccaeb4ee78f1b32987d43df146109cc743073" + integrity sha512-DXVtwUhIk4f49KK5EGuEdgx4Gnyj6+t2jBSEmxvpIK9QI40tWrpS2Pua8Q7iIZWBrki2QOaeUdEaLPPa91K0RQ== dependencies: postcss-value-parser "^4.2.0" -postcss-color-hex-alpha@^8.0.2: - version "8.0.2" - resolved "https://registry.npmmirror.com/postcss-color-hex-alpha/download/postcss-color-hex-alpha-8.0.2.tgz#7a248b006dd47bd83063f662352d31fd982f74ec" - integrity "sha1-eiSLAG3Ue9gwY/ZiNS0x/ZgvdOw= sha512-gyx8RgqSmGVK156NAdKcsfkY3KPGHhKqvHTL3hhveFrBBToguKFzhyiuk3cljH6L4fJ0Kv+JENuPXs1Wij27Zw==" +postcss-color-hex-alpha@^8.0.3: + version "8.0.3" + resolved "https://registry.npmmirror.com/postcss-color-hex-alpha/-/postcss-color-hex-alpha-8.0.3.tgz#61a0fd151d28b128aa6a8a21a2dad24eebb34d52" + integrity sha512-fESawWJCrBV035DcbKRPAVmy21LpoyiXdPTuHUfWJ14ZRjY7Y7PA6P4g8z6LQGYhU1WAxkTxjIjurXzoe68Glw== dependencies: postcss-value-parser "^4.2.0" @@ -12635,12 +12673,12 @@ postcss-custom-selectors@^6.0.0: dependencies: postcss-selector-parser "^6.0.4" -postcss-dir-pseudo-class@^6.0.3: - version "6.0.3" - resolved "https://registry.npmmirror.com/postcss-dir-pseudo-class/download/postcss-dir-pseudo-class-6.0.3.tgz#febfe305e75267913a53bf5094c7679f5cfa9b55" - integrity sha512-qiPm+CNAlgXiMf0J5IbBBEXA9l/Q5HGsNGkL3znIwT2ZFRLGY9U2fTUpa4lqCUXQOxaLimpacHeQC80BD2qbDw== +postcss-dir-pseudo-class@^6.0.4: + version "6.0.4" + resolved "https://registry.npmmirror.com/postcss-dir-pseudo-class/-/postcss-dir-pseudo-class-6.0.4.tgz#9afe49ea631f0cb36fa0076e7c2feb4e7e3f049c" + integrity sha512-I8epwGy5ftdzNWEYok9VjW9whC4xnelAtbajGv4adql4FIF09rnrxnA9Y8xSHN47y7gqFIv10C5+ImsLeJpKBw== dependencies: - postcss-selector-parser "^6.0.8" + postcss-selector-parser "^6.0.9" postcss-discard-comments@^4.0.2: version "4.0.2" @@ -12710,48 +12748,49 @@ postcss-discard-overridden@^5.0.4: resolved "https://registry.npmmirror.com/postcss-discard-overridden/-/postcss-discard-overridden-5.0.4.tgz#cc999d6caf18ea16eff8b2b58f48ec3ddee35c9c" integrity sha512-3j9QH0Qh1KkdxwiZOW82cId7zdwXVQv/gRXYDnwx5pBtR1sTkU4cXRK9lp5dSdiM0r0OICO/L8J6sV1/7m0kHg== -postcss-double-position-gradients@^3.0.4: - version "3.0.4" - resolved "https://registry.npmmirror.com/postcss-double-position-gradients/download/postcss-double-position-gradients-3.0.4.tgz#2484b9785ef3ba81b0f03a279c52ec58fc5344c2" - integrity "sha1-JIS5eF7zuoGw8DonnFLsWPxTRMI= sha512-qz+s5vhKJlsHw8HjSs+HVk2QGFdRyC68KGRQGX3i+GcnUjhWhXQEmCXW6siOJkZ1giu0ddPwSO6I6JdVVVPoog==" +postcss-double-position-gradients@^3.0.5: + version "3.1.0" + resolved "https://registry.npmmirror.com/postcss-double-position-gradients/-/postcss-double-position-gradients-3.1.0.tgz#a8614fb3a2a4b8877bffb8961b770e00322bbad1" + integrity sha512-oz73I08yMN3oxjj0s8mED1rG+uOYoK3H8N9RjQofyg52KBRNmePJKg3fVwTpL2U5ZFbCzXoZBsUD/CvZdlqE4Q== dependencies: + "@csstools/postcss-progressive-custom-properties" "^1.1.0" postcss-value-parser "^4.2.0" -postcss-env-function@^4.0.4: - version "4.0.4" - resolved "https://registry.npmmirror.com/postcss-env-function/download/postcss-env-function-4.0.4.tgz#4e85359ca4fcdde4ec4b73752a41de818dbe91cc" - integrity "sha1-ToU1nKT83eTsS3N1KkHegY2+kcw= sha512-0ltahRTPtXSIlEZFv7zIvdEib7HN0ZbUQxrxIKn8KbiRyhALo854I/CggU5lyZe6ZBvSTJ6Al2vkZecI2OhneQ==" +postcss-env-function@^4.0.5: + version "4.0.5" + resolved "https://registry.npmmirror.com/postcss-env-function/-/postcss-env-function-4.0.5.tgz#b9614d50abd91e4c88a114644a9766880dabe393" + integrity sha512-gPUJc71ji9XKyl0WSzAalBeEA/89kU+XpffpPxSaaaZ1c48OL36r1Ep5R6+9XAPkIiDlSvVAwP4io12q/vTcvA== dependencies: postcss-value-parser "^4.2.0" -postcss-focus-visible@^6.0.3: - version "6.0.3" - resolved "https://registry.npmmirror.com/postcss-focus-visible/download/postcss-focus-visible-6.0.3.tgz#14635b71a6b9140f488f11f26cbc9965a13f6843" - integrity "sha1-FGNbcaa5FA9IjxHybLyZZaE/aEM= sha512-ozOsg+L1U8S+rxSHnJJiET6dNLyADcPHhEarhhtCI9DBLGOPG/2i4ddVoFch9LzrBgb8uDaaRI4nuid2OM82ZA==" +postcss-focus-visible@^6.0.4: + version "6.0.4" + resolved "https://registry.npmmirror.com/postcss-focus-visible/-/postcss-focus-visible-6.0.4.tgz#50c9ea9afa0ee657fb75635fabad25e18d76bf9e" + integrity sha512-QcKuUU/dgNsstIK6HELFRT5Y3lbrMLEOwG+A4s5cA+fx3A3y/JTq3X9LaOj3OC3ALH0XqyrgQIgey/MIZ8Wczw== dependencies: - postcss-selector-parser "^6.0.8" + postcss-selector-parser "^6.0.9" -postcss-focus-within@^5.0.3: - version "5.0.3" - resolved "https://registry.npmmirror.com/postcss-focus-within/download/postcss-focus-within-5.0.3.tgz#0b0bf425f14a646bbfd973b463e2d20d85a3a841" - integrity "sha1-Cwv0JfFKZGu/2XO0Y+LSDYWjqEE= sha512-fk9y2uFS6/Kpp7/A9Hz9Z4rlFQ8+tzgBcQCXAFSrXFGAbKx+4ZZOmmfHuYjCOMegPWoz0pnC6fNzi8j7Xyqp5Q==" +postcss-focus-within@^5.0.4: + version "5.0.4" + resolved "https://registry.npmmirror.com/postcss-focus-within/-/postcss-focus-within-5.0.4.tgz#5b1d2ec603195f3344b716c0b75f61e44e8d2e20" + integrity sha512-vvjDN++C0mu8jz4af5d52CB184ogg/sSxAFS+oUJQq2SuCe7T5U2iIsVJtsCp2d6R4j0jr5+q3rPkBVZkXD9fQ== dependencies: - postcss-selector-parser "^6.0.8" + postcss-selector-parser "^6.0.9" postcss-font-variant@^5.0.0: version "5.0.0" resolved "https://registry.npm.taobao.org/postcss-font-variant/download/postcss-font-variant-5.0.0.tgz#efd59b4b7ea8bb06127f2d031bfbb7f24d32fa66" integrity "sha1-79WbS36ouwYSfy0DG/u38k0y+mY= sha512-1fmkBaCALD72CK2a9i468mA/+tr9/1cBxRRMXOUaZqO43oWPR5imcyPjXwuv7PXbCid4ndlP5zWhidQVVa3hmA==" -postcss-gap-properties@^3.0.2: - version "3.0.2" - resolved "https://registry.npmmirror.com/postcss-gap-properties/download/postcss-gap-properties-3.0.2.tgz#562fbf43a6a721565b3ca0e01008690991d2f726" - integrity "sha1-Vi+/Q6anIVZbPKDgEAhpCZHS9yY= sha512-EaMy/pbxtQnKDsnbEjdqlkCkROTQZzolcLKgIE+3b7EuJfJydH55cZeHfm+MtIezXRqhR80VKgaztO/vHq94Fw==" +postcss-gap-properties@^3.0.3: + version "3.0.3" + resolved "https://registry.npmmirror.com/postcss-gap-properties/-/postcss-gap-properties-3.0.3.tgz#6401bb2f67d9cf255d677042928a70a915e6ba60" + integrity sha512-rPPZRLPmEKgLk/KlXMqRaNkYTUpE7YC+bOIQFN5xcu1Vp11Y4faIXv6/Jpft6FMnl6YRxZqDZG0qQOW80stzxQ== -postcss-image-set-function@^4.0.5: - version "4.0.5" - resolved "https://registry.npmmirror.com/postcss-image-set-function/-/postcss-image-set-function-4.0.5.tgz#8cb3a971507e2c00d5532658af62529c89f0ecc6" - integrity sha512-D4jXzlypkJ6BiSoUGazrRlR+GF3SED+BeiRDzOmuinDKdAn/Wuu8KtEGa5Z4pg4kxyeSMBywMgNt2+Yi/TZPPw== +postcss-image-set-function@^4.0.6: + version "4.0.6" + resolved "https://registry.npmmirror.com/postcss-image-set-function/-/postcss-image-set-function-4.0.6.tgz#bcff2794efae778c09441498f40e0c77374870a9" + integrity sha512-KfdC6vg53GC+vPd2+HYzsZ6obmPqOk6HY09kttU19+Gj1nC3S3XBVEXDHxkhxTohgZqzbUb94bKXvKDnYWBm/A== dependencies: postcss-value-parser "^4.2.0" @@ -12760,11 +12799,12 @@ postcss-initial@^4.0.1: resolved "https://registry.npm.taobao.org/postcss-initial/download/postcss-initial-4.0.1.tgz#529f735f72c5724a0fb30527df6fb7ac54d7de42" integrity "sha1-Up9zX3LFckoPswUn32+3rFTX3kI= sha512-0ueD7rPqX8Pn1xJIjay0AZeIuDoF+V+VvMt/uOnn+4ezUKhZM/NokDeP6DwMNyIoYByuN/94IQnt5FEkaN59xQ==" -postcss-lab-function@^4.0.3: - version "4.0.3" - resolved "https://registry.npmmirror.com/postcss-lab-function/download/postcss-lab-function-4.0.3.tgz#633745b324afbcd5881da85fe2cef58b17487536" - integrity "sha1-YzdFsySvvNWIHahf4s71ixdIdTY= sha512-MH4tymWmefdZQ7uVG/4icfLjAQmH6o2NRYyVh2mKoB4RXJp9PjsyhZwhH4ouaCQHvg+qJVj3RzeAR1EQpIlXZA==" +postcss-lab-function@^4.1.0: + version "4.1.1" + resolved "https://registry.npmmirror.com/postcss-lab-function/-/postcss-lab-function-4.1.1.tgz#8b37dfcb9ca4ff82bbe7192c7ba3cc2bccbc0ef1" + integrity sha512-j3Z0WQCimY2tMle++YcmygnnVbt6XdnrCV1FO2IpzaCSmtTF2oO8h4ZYUA1Q+QHYroIiaWPvNHt9uBR4riCksQ== dependencies: + "@csstools/postcss-progressive-custom-properties" "^1.1.0" postcss-value-parser "^4.2.0" postcss-load-config@^2.0.0: @@ -12793,10 +12833,10 @@ postcss-loader@^3.0.0: postcss-load-config "^2.0.0" schema-utils "^1.0.0" -postcss-logical@^5.0.3: - version "5.0.3" - resolved "https://registry.npmmirror.com/postcss-logical/download/postcss-logical-5.0.3.tgz#9934e0fb16af70adbd94217b24d2f315ceb5c2f0" - integrity sha512-P5NcHWYrif0vK8rgOy/T87vg0WRIj3HSknrvp1wzDbiBeoDPVmiVRmkown2eSQdpPveat/MC1ess5uhzZFVnqQ== +postcss-logical@^5.0.4: + version "5.0.4" + resolved "https://registry.npmmirror.com/postcss-logical/-/postcss-logical-5.0.4.tgz#ec75b1ee54421acc04d5921576b7d8db6b0e6f73" + integrity sha512-RHXxplCeLh9VjinvMrZONq7im4wjWGlRJAqmAVLXyZaXwfDWP73/oq4NdIp+OZwhQUMj0zjqDfM5Fj7qby+B4g== postcss-media-minmax@^5.0.0: version "5.0.0" @@ -13328,71 +13368,72 @@ postcss-ordered-values@^5.0.5: cssnano-utils "^3.0.2" postcss-value-parser "^4.2.0" -postcss-overflow-shorthand@^3.0.2: - version "3.0.2" - resolved "https://registry.npmmirror.com/postcss-overflow-shorthand/download/postcss-overflow-shorthand-3.0.2.tgz#b4e9c89728cd1e4918173dfb95936b75f78d4148" - integrity "sha1-tOnIlyjNHkkYFz37lZNrdfeNQUg= sha512-odBMVt6PTX7jOE9UNvmnLrFzA9pXS44Jd5shFGGtSHY80QCuJF+14McSy0iavZggRZ9Oj//C9vOKQmexvyEJMg==" +postcss-overflow-shorthand@^3.0.3: + version "3.0.3" + resolved "https://registry.npmmirror.com/postcss-overflow-shorthand/-/postcss-overflow-shorthand-3.0.3.tgz#ebcfc0483a15bbf1b27fdd9b3c10125372f4cbc2" + integrity sha512-CxZwoWup9KXzQeeIxtgOciQ00tDtnylYIlJBBODqkgS/PU2jISuWOL/mYLHmZb9ZhZiCaNKsCRiLp22dZUtNsg== postcss-page-break@^3.0.4: version "3.0.4" resolved "https://registry.npm.taobao.org/postcss-page-break/download/postcss-page-break-3.0.4.tgz?cache=0&sync_timestamp=1601208027220&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fpostcss-page-break%2Fdownload%2Fpostcss-page-break-3.0.4.tgz#7fbf741c233621622b68d435babfb70dd8c1ee5f" integrity "sha1-f790HCM2IWIraNQ1ur+3DdjB7l8= sha512-1JGu8oCjVXLa9q9rFTo4MbeeA5FMe00/9C7lN4va606Rdb+HkxXtXsmEDrIraQ11fGz/WvKWa8gMuCKkrXpTsQ==" -postcss-place@^7.0.3: - version "7.0.3" - resolved "https://registry.npmmirror.com/postcss-place/download/postcss-place-7.0.3.tgz#ca8040dfd937c7769a233a3bd6e66e139cf89e62" - integrity "sha1-yoBA39k3x3aaIzo71uZuE5z4nmI= sha512-tDQ3m+GYoOar+KoQgj+pwPAvGHAp/Sby6vrFiyrELrMKQJ4AejL0NcS0mm296OKKYA2SRg9ism/hlT/OLhBrdQ==" +postcss-place@^7.0.4: + version "7.0.4" + resolved "https://registry.npmmirror.com/postcss-place/-/postcss-place-7.0.4.tgz#eb026650b7f769ae57ca4f938c1addd6be2f62c9" + integrity sha512-MrgKeiiu5OC/TETQO45kV3npRjOFxEHthsqGtkh3I1rPbZSbXGD/lZVi9j13cYh+NA8PIAPyk6sGjT9QbRyvSg== dependencies: postcss-value-parser "^4.2.0" -postcss-preset-env@^7.3.1: - version "7.3.1" - resolved "https://registry.npmmirror.com/postcss-preset-env/-/postcss-preset-env-7.3.1.tgz#f17c609cfab3432620b92888464f92b4dba5eca0" - integrity sha512-x7fNsJxfkY60P4FUNwhJUOfXBFfnObd2EcUYY97sXZ0XRLgmAE65es9EFIYHq1rAk7X3LMfbG+L9wYgkrNsq5Q== +postcss-preset-env@^7.3.3: + version "7.3.3" + resolved "https://registry.npmmirror.com/postcss-preset-env/-/postcss-preset-env-7.3.3.tgz#2c08a717549b282c89be7c90827147814d41809b" + integrity sha512-/4EIceyxf6LKihp88YnQ0uExt//EHozxOspsCQbLq9/RB4W0zutdk52XJZzDYtCkvergw0NTTQvB7TpdxBRbvQ== dependencies: "@csstools/postcss-font-format-keywords" "^1.0.0" "@csstools/postcss-hwb-function" "^1.0.0" "@csstools/postcss-is-pseudo-class" "^2.0.0" "@csstools/postcss-normalize-display-values" "^1.0.0" + "@csstools/postcss-progressive-custom-properties" "^1.1.0" autoprefixer "^10.4.2" browserslist "^4.19.1" - css-blank-pseudo "^3.0.2" - css-has-pseudo "^3.0.3" + css-blank-pseudo "^3.0.3" + css-has-pseudo "^3.0.4" css-prefers-color-scheme "^6.0.3" - cssdb "^6.1.0" + cssdb "^6.3.0" postcss-attribute-case-insensitive "^5.0.0" postcss-clamp "^3.0.0" - postcss-color-functional-notation "^4.2.1" - postcss-color-hex-alpha "^8.0.2" + postcss-color-functional-notation "^4.2.2" + postcss-color-hex-alpha "^8.0.3" postcss-color-rebeccapurple "^7.0.2" postcss-custom-media "^8.0.0" postcss-custom-properties "^12.1.4" postcss-custom-selectors "^6.0.0" - postcss-dir-pseudo-class "^6.0.3" - postcss-double-position-gradients "^3.0.4" - postcss-env-function "^4.0.4" - postcss-focus-visible "^6.0.3" - postcss-focus-within "^5.0.3" + postcss-dir-pseudo-class "^6.0.4" + postcss-double-position-gradients "^3.0.5" + postcss-env-function "^4.0.5" + postcss-focus-visible "^6.0.4" + postcss-focus-within "^5.0.4" postcss-font-variant "^5.0.0" - postcss-gap-properties "^3.0.2" - postcss-image-set-function "^4.0.5" + postcss-gap-properties "^3.0.3" + postcss-image-set-function "^4.0.6" postcss-initial "^4.0.1" - postcss-lab-function "^4.0.3" - postcss-logical "^5.0.3" + postcss-lab-function "^4.1.0" + postcss-logical "^5.0.4" postcss-media-minmax "^5.0.0" postcss-nesting "^10.1.2" postcss-opacity-percentage "^1.1.2" - postcss-overflow-shorthand "^3.0.2" + postcss-overflow-shorthand "^3.0.3" postcss-page-break "^3.0.4" - postcss-place "^7.0.3" - postcss-pseudo-class-any-link "^7.1.0" + postcss-place "^7.0.4" + postcss-pseudo-class-any-link "^7.1.1" postcss-replace-overflow-wrap "^4.0.0" postcss-selector-not "^5.0.0" -postcss-pseudo-class-any-link@^7.1.0: - version "7.1.0" - resolved "https://registry.npmmirror.com/postcss-pseudo-class-any-link/-/postcss-pseudo-class-any-link-7.1.0.tgz#88eb02b9529c5458ffebc68df3760534b6c9fbbf" - integrity sha512-l7sAkLmm3bYq8wt8/0r/dn6o9mVCPq7MOiNrb/Xi2zBlw/+w1V2jKFo/3IijKHfJ92SwDqkVLPwQfGO3xxUdAw== +postcss-pseudo-class-any-link@^7.1.1: + version "7.1.1" + resolved "https://registry.npmmirror.com/postcss-pseudo-class-any-link/-/postcss-pseudo-class-any-link-7.1.1.tgz#534eb1dadd9945eb07830dbcc06fb4d5d865b8e0" + integrity sha512-JRoLFvPEX/1YTPxRxp1JO4WxBVXJYrSY7NHeak5LImwJ+VobFMwYDQHvfTXEpcn+7fYIeGkC29zYFhFWIZD8fg== dependencies: postcss-selector-parser "^6.0.9" @@ -14613,10 +14654,10 @@ rollup-pluginutils@^2.8.2: dependencies: estree-walker "^0.6.1" -rollup@^2.67.1: - version "2.67.1" - resolved "https://registry.npmmirror.com/rollup/-/rollup-2.67.1.tgz#4402665706fa00f321d446ce45f880e02cf54f01" - integrity sha512-1Sbcs4OuW+aD+hhqpIRl+RqooIpF6uQcfzU/QSI7vGkwADY6cM4iLsBGRM2CGLXDTDN5y/yShohFmnKegSPWzg== +rollup@^2.67.2: + version "2.67.2" + resolved "https://registry.npmmirror.com/rollup/-/rollup-2.67.2.tgz#d95e15f60932ad21e05a870bd0aa0b235d056f04" + integrity sha512-hoEiBWwZtf1QdK3jZIq59L0FJj4Fiv4RplCO4pvCRC86qsoFurWB4hKQIjoRf3WvJmk5UZ9b0y5ton+62fC7Tw== optionalDependencies: fsevents "~2.3.2" @@ -15178,7 +15219,7 @@ source-map@^0.5.0, source-map@^0.5.6, source-map@~0.5.1: resolved "https://registry.npm.taobao.org/source-map/download/source-map-0.5.7.tgz?cache=0&sync_timestamp=1593529658602&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsource-map%2Fdownload%2Fsource-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc" integrity "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w= sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==" -sourcemap-codec@1.4.8, sourcemap-codec@^1.4.4: +sourcemap-codec@^1.4.4: version "1.4.8" resolved "https://registry.npm.taobao.org/sourcemap-codec/download/sourcemap-codec-1.4.8.tgz#ea804bd94857402e6992d05a38ef1ae35a9ab4c4" integrity "sha1-6oBL2UhXQC5pktBaOO8a41qatMQ= sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==" @@ -16078,10 +16119,10 @@ tslint@^5.20.1: tslib "^1.8.0" tsutils "^2.29.0" -tsparticles@^1.40.2: - version "1.40.2" - resolved "https://registry.npmmirror.com/tsparticles/-/tsparticles-1.40.2.tgz#ea5245576428b4245ebbbef82a1b379f3e0f961d" - integrity sha512-EU+YnBibI5GD8QUZLYyG7U4p3AWQfzVyPuXXCQMhuqtiN8GConmYHHrFWjrRisduOK7ayLckRHnNpPQ3PcHYSQ== +tsparticles@^1.41.1: + version "1.41.1" + resolved "https://registry.npmmirror.com/tsparticles/-/tsparticles-1.41.1.tgz#b4b3c84c4b13467c7e181190c24b4eef1f3b6188" + integrity sha512-j6vtiRBld+D8G/EGBmgcUYo35jx8VuOvL57uI1wsxYy55G8/CSW2fnTU6uV7TZ9e0EmnENLKEX1UzGKRny0aug== tsutils@^2.29.0: version "2.29.0"