PageSourceSearch

https://www.customerlift.ai/_next/static/chunks/pages/_app-c484c198006ce400.js

js customerlift.ai collected 2026-10-05 15:31:09 UTC 663,478 bytes, 21 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{4696:function(t,e,i){"use strict";var r,n=i(7294);function s(){return(s=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t}).apply(this,arguments)}var a=function(t){return n.createElement("svg",s({width:"1em",height:"1em",viewBox:"0 0 10 6",xmlns:"http://www.w3.org/2000/svg"},t),r||(r=n.createElement("path",{d:"m5 3.781 3.3-3.3.942.943L5 5.667.758 1.424 1.7.481l3.3 3.3Z"})))};e.Z=a},2484:function(t,e,i){"use strict";var r,n=i(7294);function s(){return(s=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t}).apply(this,arguments)}var a=function(t){return n.createElement("svg",s({width:"1em",height:"1em",viewBox:"0 0 15 14",xmlns:"http://www.w3.org/2000/svg"},t),r||(r=n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.5 0h-2v6h-6v2h6v6h2V8h6V6h-6V0Z"})))};e.Z=a},9630:function(t,e,i){"use strict";var r,n=i(7294);function s(){return(s=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t}).apply(this,arguments)}var a=function(t){return n.createElement("svg",s({width:"1em",height:"1em",viewBox:"0 0 22 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),r||(r=n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.296 9.97c-.34.62-1 1.03-1.75 1.03h-7.45l-1.1 2h12v2h-12c-1.52 0-2.48-1.63-1.75-2.97l1.35-2.44L2.996 2h-2V0h3.27l.94 2h14.8c.76 0 1.24.82.87 1.48l-3.58 6.49ZM18.306 4H6.156l2.37 5h7.02l2.76-5ZM6.996 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2Zm8.01 2c0-1.1.89-2 1.99-2s2 .9 2 2-.9 2-2 2-1.99-.9-1.99-2Z",fill:"#000"})))};e.Z=a},9669:function(t,e,i){t.exports=i(1609)},5448:function(t,e,i){"use strict";var r=i(4867),n=i(6026),s=i(4372),a=i(5327),o=i(4097),l=i(4109),h=i(7985),u=i(7874),c=i(2648),f=i(644),p=i(205);t.exports=function(t){return new Promise(function(e,i){var d,m=t.data,g=t.headers,v=t.responseType;function y(){t.cancelToken&&t.cancelToken.unsubscribe(d),t.signal&&t.signal.removeEventListener("abort",d)}r.isFormData(m)&&r.isStandardBrowserEnv()&&delete g["Content-Type"];var b=new XMLHttpRequest;if(t.auth){var x=t.auth.username||"",_=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";g.Authorization="Basic "+btoa(x+":"+_)}var w=o(t.baseURL,t.url);function k(){if(b){var r="getAllResponseHeaders"in b?l(b.getAllResponseHeaders()):null;n(function(t){e(t),y()},function(t){i(t),y()},{data:v&&"text"!==v&&"json"!==v?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:r,config:t,request:b}),b=null}}if(b.open(t.method.toUpperCase(),a(w,t.params,t.paramsSerializer),!0),b.timeout=t.timeout,"onloadend"in b?b.onloadend=k:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(k)},b.onabort=function(){b&&(i(new c("Request aborted",c.ECONNABORTED,t,b)),b=null)},b.onerror=function(){i(new c("Network Error",c.ERR_NETWORK,t,b,b)),b=null},b.ontimeout=function(){var e=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",r=t.transitional||u;t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),i(new c(e,r.clarifyTimeoutError?c.ETIMEDOUT:c.ECONNABORTED,t,b)),b=null},r.isStandardBrowserEnv()){var E=(t.withCredentials||h(w))&&t.xsrfCookieName?s.read(t.xsrfCookieName):void 0;E&&(g[t.xsrfHeaderName]=E)}"setRequestHeader"in b&&r.forEach(g,function(t,e){void 0===m&&"content-type"===e.toLowerCase()?delete g[e]:b.setRequestHeader(e,t)}
1),r.isUndefined(t.withCredentials)||(b.withCredentials=!!t.withCredentials),v&&"json"!==v&&(b.responseType=t.responseType),"function"==typeof t.onDownloadProgress&&b.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&b.upload&&b.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(d=function(t){b&&(i(!t||t&&t.type?new f:t),b.abort(),b=null)},t.cancelToken&&t.cancelToken.subscribe(d),t.signal&&(t.signal.aborted?d():t.signal.addEventListener("abort",d))),m||(m=null);var S=p(w);if(S&&-1===["http","https","file"].indexOf(S)){i(new c("Unsupported protocol "+S+":",c.ERR_BAD_REQUEST,t));return}b.send(m)})}},1609:function(t,e,i){"use strict";var r=i(4867),n=i(1849),s=i(321),a=i(7185);function o(t){var e=new s(t),i=n(s.prototype.request,e);return r.extend(i,s.prototype,e),r.extend(i,e),i.create=function(e){return o(a(t,e))},i}var l=o(i(5546));l.Axios=s,l.CanceledError=i(644),l.CancelToken=i(4972),l.isCancel=i(6502),l.VERSION=i(7288).version,l.toFormData=i(7675),l.AxiosError=i(2648),l.Cancel=l.CanceledError,l.all=function(t){return Promise.all(t)},l.spread=i(8713),l.isAxiosError=i(6268),t.exports=l,t.exports.default=l},4972:function(t,e,i){"use strict";var r=i(644);function n(t){if("function"!=typeof t)throw TypeError("executor must be a function.");this.promise=new Promise(function(t){e=t});var e,i=this;this.promise.then(function(t){if(i._listeners){var e,r=i._listeners.length;for(e=0;e<r;e++)i._listeners[e](t);i._listeners=null}}),this.promise.then=function(t){var e,r=new Promise(function(t){i.subscribe(t),e=t}).then(t);return r.cancel=function(){i.unsubscribe(e)},r},t(function(t){i.reason||(i.reason=new r(t),e(i.reason))})}n.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},n.prototype.subscribe=function(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]},n.prototype.unsubscribe=function(t){if(this._listeners){var e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}},n.source=function(){var t;return{token:new n(function(e){t=e}),cancel:t}},t.exports=n},644:function(t,e,i){"use strict";var r=i(2648);function n(t){r.call(this,null==t?"canceled":t,r.ERR_CANCELED),this.name="CanceledError"}i(4867).inherits(n,r,{__CANCEL__:!0}),t.exports=n},6502:function(t){"use strict";t.exports=function(t){return!!(t&&t.__CANCEL__)}},321:function(t,e,i){"use strict";var r=i(4867),n=i(5327),s=i(782),a=i(3572),o=i(7185),l=i(4097),h=i(4875),u=h.validators;function c(t){this.defaults=t,this.interceptors={request:new s,response:new s}}c.prototype.request=function(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},(e=o(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var i,r=e.transitional;void 0!==r&&h.assertOptions(r,{silentJSONParsing:u.transitional(u.boolean),forcedJSONParsing:u.transitional(u.boolean),clarifyTimeoutError:u.transitional(u.boolean)},!1);var n=[],s=!0;this.interceptors.request.forEach(function(t){("function"!=typeof t.runWhen||!1!==t.runWhen(e))&&(s=s&&t.synchronous,n.unshift(t.fulfilled,t.rejected))});var l=[];if(this.interceptors.response.forEach(function(t){l.push(t.fulfilled,t.rejected)}),!s){var c=[a,void 0];for(Array.prototype.unshift.apply(c,n),c=c.concat(l),i=Promise.resolve(e);c.length;)i=i.then(c.shift(),c.shift());return i}for(var f=e;n.length;){var p=n.shift(),d=n.shift();try{f=p(f)}catch(t){d(t);break}}try{i=a(f)}catch(t){return Promise.reject(t)}for(;l.length;)i=i.then(l.shift(),l.shift());return i},c.prototype.getUri=function(t){return n(l((t=o(this.defaults,t)).baseURL,t.url),t.params,t.paramsSerializer)},r.forEach(["delete","get","head","options"],function(t){c.prototype[t]=function(e,i){return this.request(o(i||{},{method:t,url:e,data:(i||{}).data}))}}),r.forEach(["post","put","patch"],function(t){function e(e){return function(i,r,n){return this.request(o(n||{},{method:t,headers:e?{"Content-Type":"multipart/form-data"}:{},url:i,data:r}))}}c.prototype[t]=e(),c.prototype[t+"Form"]=e(!0)}),t.exports=c}
vendor: 5,524 bytes, line 1
1,2648:function(t,e,i){"use strict";var r=i(4867);function n(t,e,i,r,n){Error.call(this),this.message=t,this.name="AxiosError",e&&(this.code=e),i&&(this.config=i),r&&(this.request=r),n&&(this.response=n)}r.inherits(n,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var s=n.prototype,a={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach(function(t){a[t]={value:t}}),Object.defineProperties(n,a),Object.defineProperty(s,"isAxiosError",{value:!0}),n.from=function(t,e,i,a,o,l){var h=Object.create(s);return r.toFlatObject(t,h,function(t){return t!==Error.prototype}),n.call(h,t.message,e,i,a,o),h.name=t.name,l&&Object.assign(h,l),h},t.exports=n},782:function(t,e,i){"use strict";var r=i(4867);function n(){this.handlers=[]}n.prototype.use=function(t,e,i){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!i&&i.synchronous,runWhen:i?i.runWhen:null}),this.handlers.length-1},n.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},n.prototype.forEach=function(t){r.forEach(this.handlers,function(e){null!==e&&t(e)})},t.exports=n},4097:function(t,e,i){"use strict";var r=i(1793),n=i(7303);t.exports=function(t,e){return t&&!r(e)?n(t,e):e}},3572:function(t,e,i){"use strict";var r=i(4867),n=i(8527),s=i(6502),a=i(5546),o=i(644);function l(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new o}t.exports=function(t){return l(t),t.headers=t.headers||{},t.data=n.call(t,t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),r.forEach(["delete","get","head","post","put","patch","common"],function(e){delete t.headers[e]}),(t.adapter||a.adapter)(t).then(function(e){return l(t),e.data=n.call(t,e.data,e.headers,t.transformResponse),e},function(e){return!s(e)&&(l(t),e&&e.response&&(e.response.data=n.call(t,e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)})}},7185:function(t,e,i){"use strict";var r=i(4867);t.exports=function(t,e){e=e||{};var i={};function n(t,e){return r.isPlainObject(t)&&r.isPlainObject(e)?r.merge(t,e):r.isPlainObject(e)?r.merge({},e):r.isArray(e)?e.slice():e}function s(i){return r.isUndefined(e[i])?r.isUndefined(t[i])?void 0:n(void 0,t[i]):n(t[i],e[i])}function a(t){if(!r.isUndefined(e[t]))return n(void 0,e[t])}function o(i){return r.isUndefined(e[i])?r.isUndefined(t[i])?void 0:n(void 0,t[i]):n(void 0,e[i])}function l(i){return i in e?n(t[i],e[i]):i in t?n(void 0,t[i]):void 0}var h={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:l};return r.forEach(Object.keys(t).concat(Object.keys(e)),function(t){var e=h[t]||s,n=e(t);r.isUndefined(n)&&e!==l||(i[t]=n)}),i}},6026:function(t,e,i){"use strict";var r=i(2648);t.exports=function(t,e,i){var n=i.config.validateStatus;!i.status||!n||n(i.status)?t(i):e(new r("Request failed with status code "+i.status,[r.ERR_BAD_REQUEST,r.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))}},8527:function(t,e,i){"use strict";var r=i(4867),n=i(5546);t.exports=function(t,e,i){var s=this||n;return r.forEach(i,function(i){t=i.call(s,t,e)}),t}},5546:function(t,e,i){"use strict";var r=i(3454),n=i(4867),s=i(6016),a=i(2648),o=i(7874),l=i(7675),h={"Content-Type":"application/x-www-form-urlencoded"};function u(t,e){!n.isUndefined(t)&&n.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function c(t,e,i){if(n.isString(t))try{return(e||JSON.parse)(t),n.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(i||JSON.stringify)(t)}var f={transitional:o,adapter:function(){var t;return"undefined"!=typeof XMLHttpRequest?t=i(5448):void 0!==r&&"[object process]"===Object.prototype.toString.call(r)&&(t=i(5448)),t}(),transformRequest:[function(t,e){if(s(e,"Accept"),s(e,"Content-Type"),n.isFormData(t)||n.isArrayBuffer(t)||n.isBuffer(t)||n.isStream(t)||n.isFile(t)||n.isBlob(t))return t;if(n.isArrayBufferView(t))return t.buffer;if(n.isURLSearchParams(t))return u(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString();var i,r=n.isObject(t),a=e&&e["Content-Type"];if((i=n.isFileList(t))||r&&"multipart/form-data"===a){var o=this.env&&this.env.FormData;return l(i?{"files[]":t}:t,o&&new o)}return r||"application/json"===a?(u(e,"application/json"),c(t)):t}],transformResponse:[function(t){var e=this.transitional||f.transitional,i=e&&e.silentJSONParsing,r=e&&e.forcedJSONParsing,s=!i&&"json"===this.responseType;if(s||r&&n.isString(t)&&t.length)try{return JSON.parse(t)}catch(t){if(s){if("SyntaxError"===t.name)throw a.from(t,a.ERR_BAD_RESPONSE,this,null,this.response);throw t}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:i(1623)},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};
1n.forEach(["delete","get","head"],function(t){f.headers[t]={}}),n.forEach(["post","put","patch"],function(t){f.headers[t]=n.merge(h)}),t.exports=f},7874:function(t){"use strict";t.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},7288:function(t){t.exports={version:"0.27.2"}},1849:function(t){"use strict";t.exports=function(t,e){return function(){for(var i=Array(arguments.length),r=0;r<i.length;r++)i[r]=arguments[r];return t.apply(e,i)}}},5327:function(t,e,i){"use strict";var r=i(4867);function n(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,i){if(!e)return t;if(i)s=i(e);else if(r.isURLSearchParams(e))s=e.toString();else{var s,a=[];r.forEach(e,function(t,e){null!=t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),a.push(n(e)+"="+n(t))}))}),s=a.join("&")}if(s){var o=t.indexOf("#");-1!==o&&(t=t.slice(0,o)),t+=(-1===t.indexOf("?")?"?":"&")+s}return t}},7303:function(t){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},4372:function(t,e,i){"use strict";var r=i(4867);t.exports=r.isStandardBrowserEnv()?function(){return{write:function(t,e,i,n,s,a){var o=[];o.push(t+"="+encodeURIComponent(e)),r.isNumber(i)&&o.push("expires="+new Date(i).toGMTString()),r.isString(n)&&o.push("path="+n),r.isString(s)&&o.push("domain="+s),!0===a&&o.push("secure"),document.cookie=o.join("; ")},read:function(t){var e=document.cookie.match(RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},1793:function(t){"use strict";t.exports=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}},6268:function(t,e,i){"use strict";var r=i(4867);t.exports=function(t){return r.isObject(t)&&!0===t.isAxiosError}},7985:function(t,e,i){"use strict";var r=i(4867);t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a");function n(t){var r=t;return e&&(i.setAttribute("href",r),r=i.href),i.setAttribute("href",r),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:"/"===i.pathname.charAt(0)?i.pathname:"/"+i.pathname}}return t=n(window.location.href),function(e){var i=r.isString(e)?n(e):e;return i.protocol===t.protocol&&i.host===t.host}}():function(){return function(){return!0}}()},6016:function(t,e,i){"use strict";var r=i(4867);t.exports=function(t,e){r.forEach(t,function(i,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=i,delete t[r])})}},1623:function(t){t.exports=null},4109:function(t,e,i){"use strict";var r=i(4867),n=["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"];t.exports=function(t){var e,i,s,a={};return t&&r.forEach(t.split("\n"),function(t){s=t.indexOf(":"),e=r.trim(t.substr(0,s)).toLowerCase(),i=r.trim(t.substr(s+1)),e&&!(a[e]&&n.indexOf(e)>=0)&&("set-cookie"===e?a[e]=(a[e]?a[e]:[]).concat([i]):a[e]=a[e]?a[e]+", "+i:i)}),a}},205:function(t){"use strict";t.exports=function(t){var e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}},8713:function(t){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},7675:function(t,e,i){"use strict";var r=i(1876).Buffer,n=i(4867);function s(t,e){e=e||new FormData;var i=[];function s(t){return null===t?"":n.isDate(t)?t.toISOString():n.isArrayBuffer(t)||n.isTypedArray(t)?"function"==typeof Blob?new Blob([t]):r.from(t):t}function a(t,r){if(n.isPlainObject(t)||n.isArray(t)){if(-1!==i.indexOf(t))throw Error("Circular reference detected in "+r);i.push(t),n.forEach(t,function(t,i){if(!n.isUndefined(t)){var o,l=r?r+"."+i:i;if(t&&!r&&"object"==typeof t){if(n.endsWith(i,"{}"))t=JSON.stringify(t);else if(n.endsWith(i,"[]")&&(o=n.toArray(t))){o.forEach(function(t){n.isUndefined(t)||e.append(l,s(t))});return}}a(t,l)}}),i.pop()}
vendor: 4,085 bytes, line 1
1else e.append(r,s(t))}return a(t),e}t.exports=s},4875:function(t,e,i){"use strict";var r=i(7288).version,n=i(2648),s={};["object","boolean","number","function","string","symbol"].forEach(function(t,e){s[t]=function(i){return typeof i===t||"a"+(e<1?"n ":" ")+t}});var a={};function o(t,e,i){if("object"!=typeof t)throw new n("options must be an object",n.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(t),s=r.length;s-- >0;){var a=r[s],o=e[a];if(o){var l=t[a],h=void 0===l||o(l,a,t);if(!0!==h)throw new n("option "+a+" must be "+h,n.ERR_BAD_OPTION_VALUE);continue}if(!0!==i)throw new n("Unknown option "+a,n.ERR_BAD_OPTION)}}s.transitional=function(t,e,i){function s(t,e){return"[Axios v"+r+"] Transitional option '"+t+"'"+e+(i?". "+i:"")}return function(i,r,o){if(!1===t)throw new n(s(r," has been removed"+(e?" in "+e:"")),n.ERR_DEPRECATED);return e&&!a[r]&&(a[r]=!0,console.warn(s(r," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(i,r,o)}},t.exports={assertOptions:o,validators:s}},4867:function(t,e,i){"use strict";var r=i(1849),n=Object.prototype.toString,s=function(t){return function(e){var i=n.call(e);return t[i]||(t[i]=i.slice(8,-1).toLowerCase())}}(Object.create(null));function a(t){return t=t.toLowerCase(),function(e){return s(e)===t}}function o(t){return Array.isArray(t)}function l(t){return void 0===t}function h(t){return null!==t&&!l(t)&&null!==t.constructor&&!l(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}var u=a("ArrayBuffer");function c(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&u(t.buffer)}function f(t){return"string"==typeof t}function p(t){return"number"==typeof t}function d(t){return null!==t&&"object"==typeof t}function m(t){if("object"!==s(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}var g=a("Date"),v=a("File"),y=a("Blob"),b=a("FileList");function x(t){return"[object Function]"===n.call(t)}function _(t){return d(t)&&x(t.pipe)}function w(t){var e="[object FormData]";return t&&("function"==typeof FormData&&t instanceof FormData||n.call(t)===e||x(t.toString)&&t.toString()===e)}var k=a("URLSearchParams");function E(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function S(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document}function P(t,e){if(null!=t){if("object"!=typeof t&&(t=[t]),o(t))for(var i=0,r=t.length;i<r;i++)e.call(null,t[i],i,t);else for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.call(null,t[n],n,t)}}function M(){var t={};function e(e,i){m(t[i])&&m(e)?t[i]=M(t[i],e):m(e)?t[i]=M({},e):o(e)?t[i]=e.slice():t[i]=e}for(var i=0,r=arguments.length;i<r;i++)P(arguments[i],e);return t}function C(t,e,i){return P(e,function(e,n){i&&"function"==typeof e?t[n]=r(e,i):t[n]=e}),t}function A(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}function T(t,e,i,r){t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,i&&Object.assign(t.prototype,i)}function D(t,e,i){var r,n,s,a={};e=e||{};do{for(n=(r=Object.getOwnPropertyNames(t)).length;n-- >0;)a[s=r[n]]||(e[s]=t[s],a[s]=!0);t=Object.getPrototypeOf(t)}while(t&&(!i||i(t,e))&&t!==Object.prototype);return e}function O(t,e,i){t=String(t),(void 0===i||i>t.length)&&(i=t.length),i-=e.length;var r=t.indexOf(e,i);return -1!==r&&r===i}function F(t){if(!t)return null;var e=t.length;if(l(e))return null;for(var i=Array(e);e-- >0;)i[e]=t[e];return i}var L=function(t){return function(e){return t&&e instanceof t}}("undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array));t.exports={isArray:o,isArrayBuffer:u,isBuffer:h,isFormData:w,isArrayBufferView:c,isString:f,isNumber:p,isObject:d,isPlainObject:m,isUndefined:l,isDate:g,isFile:v,isBlob:y,isFunction:x,isStream:_,isURLSearchParams:k,isStandardBrowserEnv:S,forEach:P,merge:M,extend:C,trim:E,stripBOM:A,inherits:T,toFlatObject:D,kindOf:s,kindOfTest:a,endsWith:O,toArray:F,isTypedArray:L,isFileList:b}}
vendor: 15,717 bytes, line 1
1,2945:function(t,e,i){t.exports={default:i(6981),__esModule:!0}},5861:function(t,e,i){t.exports={default:i(5627),__esModule:!0}},2242:function(t,e,i){t.exports={default:i(3391),__esModule:!0}},5105:function(t,e,i){t.exports={default:i(381),__esModule:!0}},5345:function(t,e,i){t.exports={default:i(433),__esModule:!0}},3516:function(t,e,i){t.exports={default:i(25),__esModule:!0}},4275:function(t,e,i){t.exports={default:i(2392),__esModule:!0}},9663:function(t,e){"use strict";e.__esModule=!0,e.default=function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}},2600:function(t,e,i){"use strict";e.__esModule=!0;var r=n(i(2242));function n(t){return t&&t.__esModule?t:{default:t}}e.default=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),(0,r.default)(t,n.key,n)}}return function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e}}()},8239:function(t,e,i){"use strict";e.__esModule=!0;var r=n(i(2945));function n(t){return t&&t.__esModule?t:{default:t}}e.default=r.default||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t}},3196:function(t,e,i){"use strict";e.__esModule=!0;var r=a(i(5345)),n=a(i(5861)),s=a(i(2444));function a(t){return t&&t.__esModule?t:{default:t}}e.default=function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":(0,s.default)(e)));t.prototype=(0,n.default)(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(r.default?(0,r.default)(t,e):t.__proto__=e)}},9135:function(t,e,i){"use strict";e.__esModule=!0;var r=n(i(2444));function n(t){return t&&t.__esModule?t:{default:t}}e.default=function(t,e){if(!t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&((void 0===e?"undefined":(0,r.default)(e))==="object"||"function"==typeof e)?e:t}},2444:function(t,e,i){"use strict";e.__esModule=!0;var r=a(i(4275)),n=a(i(3516)),s="function"==typeof n.default&&"symbol"==typeof r.default?function(t){return typeof t}:function(t){return t&&"function"==typeof n.default&&t.constructor===n.default&&t!==n.default.prototype?"symbol":typeof t};function a(t){return t&&t.__esModule?t:{default:t}}e.default="function"==typeof n.default&&"symbol"===s(r.default)?function(t){return void 0===t?"undefined":s(t)}:function(t){return t&&"function"==typeof n.default&&t.constructor===n.default&&t!==n.default.prototype?"symbol":void 0===t?"undefined":s(t)}},6981:function(t,e,i){i(2699),t.exports=i(4579).Object.assign},5627:function(t,e,i){i(6760);var r=i(4579).Object;t.exports=function(t,e){return r.create(t,e)}},3391:function(t,e,i){i(1477);var r=i(4579).Object;t.exports=function(t,e,i){return r.defineProperty(t,e,i)}},381:function(t,e,i){i(7220),t.exports=i(4579).Object.getPrototypeOf},433:function(t,e,i){i(9349),t.exports=i(4579).Object.setPrototypeOf},25:function(t,e,i){i(3155),i(4058),i(8174),i(6461),t.exports=i(4579).Symbol},2392:function(t,e,i){i(1867),i(3871),t.exports=i(5103).f("iterator")},5663:function(t){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},9003:function(t){t.exports=function(){}},2159:function(t,e,i){var r=i(6727);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},7428:function(t,e,i){var r=i(7932),n=i(8728),s=i(6531);t.exports=function(t){return function(e,i,a){var o,l=r(e),h=n(l.length),u=s(a,h);if(t&&i!=i){for(;h>u;)if((o=l[u++])!=o)return!0}else for(;h>u;u++)if((t||u in l)&&l[u]===i)return t||u||0;return!t&&-1}}},2894:function(t){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},4579:function(t){var e=t.exports={version:"2.6.12"};"number"==typeof __e&&(__e=e)},9216:function(t,e,i){var r=i(5663);t.exports=function(t,e,i){if(r(t),void 0===e)return t;switch(i){case 1:return function(i){return t.call(e,i)};case 2:return function(i,r){return t.call(e,i,r)};case 3:return function(i,r,n){return t.call(e,i,r,n)}}return function(){return t.apply(e,arguments)}}},8333:function(t){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on  "+t);return t}},9666:function(t,e,i){t.exports=!i(7929)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},7467:function(t,e,i){var r=i(6727),n=i(3938).document,s=r(n)&&r(n.createElement);t.exports=function(t){return s?n.createElement(t):{}}},3338:function(t){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},337:function(t,e,i){var r=i(6162),n=i(8195),s=i(6274);t.exports=function(t){var e=r(t),i=n.f;if(i)for(var a,o=i(t),l=s.f,h=0;o.length>h;)l.call(t,a=o[h++])&&e.push(a);return e}},3856:function(t,e,i){var r=i(3938),n=i(4579),s=i(9216),a=i(1818),o=i(7069),l="prototype",h=function(t,e,i){var u,c,f,p=t&h.F,d=t&h.G,m=t&h.S,g=t&h.P,v=t&h.B,y=t&h.W,b=d?n:n[e]||(n[e]={}),x=b[l],_=d?r:m?r[e]:(r[e]||{})[l];for(u in d&&(i=e),i)!((c=!p&&_&&void 0!==_[u])&&o(b,u))&&(f=c?_[u]:i[u],b[u]=d&&"function"!=typeof _[u]?i[u]:v&&c?s(f,r):y&&_[u]==f?function(t){var e=function(e,i,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,i)}return new t(e,i,r)}return t.apply(this,arguments)};return e[l]=t[l],e}(f):g&&"function"==typeof f?s(Function.call,f):f,g&&((b.virtual||(b.virtual={}))[u]=f,t&h.R&&x&&!x[u]&&a(x,u,f)))};h.F=1,h.G=2,h.S=4,h.P=8,h.B=16,h.W=32,h.U=64,h.R=128,t.exports=h},7929:function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},3938:function(t){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},7069:function(t){var e={}.hasOwnProperty;t.exports=function(t,i){return e.call(t,i)}},1818:function(t,e,i){var r=i(4743),n=i(3101);t.exports=i(9666)?function(t,e,i){return r.f(t,e,n(1,i))}:function(t,e,i){return t[e]=i,t}},4881:function(t,e,i){var r=i(3938).document;t.exports=r&&r.documentElement},3758:function(t,e,i){t.exports=!i(9666)&&!i(7929)(function(){return 7!=Object.defineProperty(i(7467)("div"),"a",{get:function(){return 7}}).a})},799:function(t,e,i){var r=i(2894);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},1421:function(t,e,i){var r=i(2894);t.exports=Array.isArray||function(t){return"Array"==r(t)}},6727:function(t){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},3945:function(t,e,i){"use strict";var r=i(526),n=i(3101),s=i(5378),a={};i(1818)(a,i(2939)("iterator"),function(){return this}),t.exports=function(t,e,i){t.prototype=r(a,{next:n(1,i)}),s(t,e+" Iterator")}},5700:function(t,e,i){"use strict";var r=i(6227),n=i(3856),s=i(7470),a=i(1818),o=i(5449),l=i(3945),h=i(5378),u=i(5089),c=i(2939)("iterator"),f=!([].keys&&"next"in[].keys()),p="@@iterator",d="keys",m="values",g=function(){return this};t.exports=function(t,e,i,v,y,b,x){l(i,e,v);var _,w,k,E=function(t){return!f&&t in C?C[t]:function(){return new i(this,t)}},S=e+" Iterator",P=y==m,M=!1,C=t.prototype,A=C[c]||C[p]||y&&C[y],T=A||E(y),D=y?P?E("entries"):T:void 0,O="Array"==e&&C.entries||A;if(O&&(k=u(O.call(new t)))!==Object.prototype&&k.next&&(h(k,S,!0),r||"function"==typeof k[c]||a(k,c,g)),P&&A&&A.name!==m&&(M=!0,T=function(){return A.call(this)}),(!r||x)&&(f||M||!C[c])&&a(C,c,T),o[e]=T,o[S]=g,y){if(_={values:P?T:E(m),keys:b?T:E(d),entries:D},x)for(w in _)w in C||s(C,w,_[w]);else n(n.P+n.F*(f||M),e,_)}return _}},5084:function(t){t.exports=function(t,e){return{value:e,done:!!t}}},5449:function(t){t.exports={}},6227:function(t){t.exports=!0},7177:function(t,e,i){var r=i(5730)("meta"),n=i(6727),s=i(7069),a=i(4743).f,o=0,l=Object.isExtensible||function(){return!0},h=!i(7929)(function(){return l(Object.preventExtensions({}))}),u=function(t){a(t,r,{value:{i:"O"+ ++o,w:{}}})},c=function(t,e){if(!n(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!s(t,r)){if(!l(t))return"F";if(!e)return"E";u(t)}return t[r].i},f=function(t,e){if(!s(t,r)){if(!l(t))return!0;if(!e)return!1;u(t)}return t[r].w},p=function(t){return h&&d.NEED&&l(t)&&!s(t,r)&&u(t),t},d=t.exports={KEY:r,NEED:!1,fastKey:c,getWeak:f,onFreeze:p}},8082:function(t,e,i){"use strict";var r=i(9666),n=i(6162),s=i(8195),a=i(6274),o=i(6530),l=i(799),h=Object.assign;t.exports=!h||i(7929)(function(){var t={},e={},i=Symbol(),r="abcdefghijklmnopqrst";return t[i]=7,r.split("").forEach(function(t){e[t]=t}),7!=h({},t)[i]||Object.keys(h({},e)).join("")!=r})?function(t,e){for(var i=o(t),h=arguments.length,u=1,c=s.f,f=a.f;h>u;)for(var p,d=l(arguments[u++]),m=c?n(d).concat(c(d)):n(d),g=m.length,v=0;g>v;)p=m[v++],(!r||f.call(d,p))&&(i[p]=d[p]);return i}:h},526:function(t,e,i){var r=i(2159),n=i(7856),s=i(3338),a=i(8989)("IE_PROTO"),o=function(){},l="prototype",h=function(){var t,e=i(7467)("iframe"),r=s.length,n="<",a=">";for(e.style.display="none",i(4881).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(n+"script"+a+"document.F=Object"+n+"/script"+a),t.close(),h=t.F;r--;)delete h[l][s[r]];return h()};t.exports=Object.create||function(t,e){var i;return null!==t?(o[l]=r(t),i=new o,o[l]=null,i[a]=t):i=h(),void 0===e?i:n(i,e)}},4743:function(t,e,i){var r=i(2159),n=i(3758),s=i(3206),a=Object.defineProperty;e.f=i(9666)?Object.defineProperty:function(t,e,i){if(r(t),e=s(e,!0),r(i),n)try{return a(t,e,i)}catch(t){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(t[e]=i.value),t}},7856:function(t,e,i){var r=i(4743),n=i(2159),s=i(6162);t.exports=i(9666)?Object.defineProperties:function(t,e){n(t);for(var i,a=s(e),o=a.length,l=0;o>l;)r.f(t,i=a[l++],e[i]);return t}},6183:function(t,e,i){var r=i(6274),n=i(3101),s=i(7932),a=i(3206),o=i(7069),l=i(3758),h=Object.getOwnPropertyDescriptor;e.f=i(9666)?h:function(t,e){if(t=s(t),e=a(e,!0),l)try{return h(t,e)}catch(t){}if(o(t,e))return n(!r.f.call(t,e),t[e])}},4368:function(t,e,i){var r=i(7932),n=i(3230).f,s={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],o=function(t){try{return n(t)}catch(t){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==s.call(t)?o(t):n(r(t))}},3230:function(t,e,i){var r=i(2963),n=i(3338).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,n)}},8195:function(t,e){e.f=Object.getOwnPropertySymbols},5089:function(t,e,i){var r=i(7069),n=i(6530),s=i(8989)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return r(t=n(t),s)?t[s]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},2963:function(t,e,i){var r=i(7069),n=i(7932),s=i(7428)(!1),a=i(8989)("IE_PROTO");t.exports=function(t,e){var i,o=n(t),l=0,h=[];for(i in o)i!=a&&r(o,i)&&h.push(i);for(;e.length>l;)r(o,i=e[l++])&&(~s(h,i)||h.push(i));return h}},6162:function(t,e,i){var r=i(2963),n=i(3338);t.exports=Object.keys||function(t){return r(t,n)}},6274:function(t,e){e.f=({}).propertyIsEnumerable},2584:function(t,e,i){var r=i(3856),n=i(4579),s=i(7929);t.exports=function(t,e){var i=(n.Object||{})[t]||Object[t],a={};a[t]=e(i),r(r.S+r.F*s(function(){i(1)}),"Object",a)}},3101:function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},7470:function(t,e,i){t.exports=i(1818)},2906:function(t,e,i){var r=i(6727),n=i(2159),s=function(t,e){if(n(t),!r(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,r){try{(r=i(9216)(Function.call,i(6183).f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,i){return s(t,i),e?t.__proto__=i:r(t,i),t}}({},!1):void 0),check:s}},5378:function(t,e,i){var r=i(4743).f,n=i(7069),s=i(2939)("toStringTag");t.exports=function(t,e,i){t&&!n(t=i?t:t.prototype,s)&&r(t,s,{configurable:!0,value:e})}},8989:function(t,e,i){var r=i(250)("keys"),n=i(5730);t.exports=function(t){return r[t]||(r[t]=n(t))}},250:function(t,e,i){var r=i(4579),n=i(3938),s="__core-js_shared__",a=n[s]||(n[s]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:i(6227)?"pure":"global",copyright:"\xa9 2020 Denis Pushkarev (zloirock.ru)"})},510:function(t,e,i){var r=i(1052),n=i(8333);t.exports=function(t){return function(e,i){var s,a,o=String(n(e)),l=r(i),h=o.length;return l<0||l>=h?t?"":void 0:(s=o.charCodeAt(l))<55296||s>56319||l+1===h||(a=o.charCodeAt(l+1))<56320||a>57343?t?o.charAt(l):s:t?o.slice(l,l+2):(s-55296<<10)+(a-56320)+65536}}},6531:function(t,e,i){var r=i(1052),n=Math.max,s=Math.min;t.exports=function(t,e){return(t=r(t))<0?n(t+e,0):s(t,e)}},1052:function(t){var e=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:e)(t)}},7932:function(t,e,i){var r=i(799),n=i(8333);t.exports=function(t){return r(n(t))}},8728:function(t,e,i){var r=i(1052),n=Math.min;t.exports=function(t){return t>0?n(r(t),9007199254740991):0}},6530:function(t,e,i){var r=i(8333);t.exports=function(t){return Object(r(t))}},3206:function(t,e,i){var r=i(6727);t.exports=function(t,e){var i,n;if(!r(t))return t;if(e&&"function"==typeof(i=t.toString)&&!r(n=i.call(t))||"function"==typeof(i=t.valueOf)&&!r(n=i.call(t))||!e&&"function"==typeof(i=t.toString)&&!r(n=i.call(t)))return n;throw TypeError("Can't convert object to primitive value")}},5730:function(t){var e=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+i).toString(36))}},6347:function(t,e,i){var r=i(3938),n=i(4579),s=i(6227),a=i(5103),o=i(4743).f;t.exports=function(t){var e=n.Symbol||(n.Symbol=s?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||o(e,t,{value:a.f(t)})}},5103:function(t,e,i){e.f=i(2939)},2939:function(t,e,i){var r=i(250)("wks"),n=i(5730),s=i(3938).Symbol,a="function"==typeof s;(t.exports=function(t){return r[t]||(r[t]=a&&s[t]||(a?s:n)("Symbol."+t))}).store=r},3882:function(t,e,i){"use strict";var r=i(9003),n=i(5084),s=i(5449),a=i(7932);t.exports=i(5700)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,i=this._i++;return!t||i>=t.length?(this._t=void 0,n(1)):"keys"==e?n(0,i):"values"==e?n(0,t[i]):n(0,[i,t[i]])},"values"),s.Arguments=s.Array,r("keys"),r("values"),r("entries")},2699:function(t,e,i){var r=i(3856);r(r.S+r.F,"Object",{assign:i(8082)})},6760:function(t,e,i){var r=i(3856);r(r.S,"Object",{create:i(526)})},1477:function(t,e,i){var r=i(3856);r(r.S+!i(9666)*r.F,"Object",{defineProperty:i(4743).f})},7220:function(t,e,i){var r=i(6530),n=i(5089);i(2584)("getPrototypeOf",function(){return function(t){return n(r(t))}})},9349:function(t,e,i){var r=i(3856);r(r.S,"Object",{setPrototypeOf:i(2906).set})},4058:function(){},1867:function(t,e,i){"use strict";var r=i(510)(!0);i(5700)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,i=this._i;return i>=e.length?{value:void 0,done:!0}:(t=r(e,i),this._i+=t.length,{value:t,done:!1})})},3155:function(t,e,i){"use strict";var r=i(3938),n=i(7069),s=i(9666),a=i(3856),o=i(7470),l=i(7177).KEY,h=i(7929),u=i(250),c=i(5378),f=i(5730),p=i(2939),d=i(5103),m=i(6347),g=i(337),v=i(1421),y=i(2159),b=i(6727),x=i(6530),_=i(7932),w=i(3206),k=i(3101),E=i(526),S=i(4368),P=i(6183),M=i(8195),C=i(4743),A=i(6162),T=P.f,D=C.f,O=S.f,F=r.Symbol,L=r.JSON,I=L&&L.stringify,R="prototype",B=p("_hidden"),j=p("toPrimitive"),z={}.propertyIsEnumerable,N=u("symbol-registry"),V=u("symbols"),H=u("op-symbol
1s"),W=Object[R],U="function"==typeof F&&!!M.f,G=r.QObject,q=!G||!G[R]||!G[R].findChild,Y=s&&h(function(){return 7!=E(D({},"a",{get:function(){return D(this,"a",{value:7}).a}})).a})?function(t,e,i){var r=T(W,e);r&&delete W[e],D(t,e,i),r&&t!==W&&D(W,e,r)}:D,X=function(t){var e=V[t]=E(F[R]);return e._k=t,e},$=U&&"symbol"==typeof F.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof F},Z=function(t,e,i){return(t===W&&Z(H,e,i),y(t),e=w(e,!0),y(i),n(V,e))?(i.enumerable?(n(t,B)&&t[B][e]&&(t[B][e]=!1),i=E(i,{enumerable:k(0,!1)})):(n(t,B)||D(t,B,k(1,{})),t[B][e]=!0),Y(t,e,i)):D(t,e,i)},J=function(t,e){y(t);for(var i,r=g(e=_(e)),n=0,s=r.length;s>n;)Z(t,i=r[n++],e[i]);return t},K=function(t,e){return void 0===e?E(t):J(E(t),e)},Q=function(t){var e=z.call(this,t=w(t,!0));return(!(this===W&&n(V,t))||!!n(H,t))&&(!(e||!n(this,t)||!n(V,t)||n(this,B)&&this[B][t])||e)},tt=function(t,e){if(t=_(t),e=w(e,!0),!(t===W&&n(V,e))||n(H,e)){var i=T(t,e);return i&&n(V,e)&&!(n(t,B)&&t[B][e])&&(i.enumerable=!0),i}},te=function(t){for(var e,i=O(_(t)),r=[],s=0;i.length>s;)n(V,e=i[s++])||e==B||e==l||r.push(e);return r},ti=function(t){for(var e,i=t===W,r=O(i?H:_(t)),s=[],a=0;r.length>a;)n(V,e=r[a++])&&(!i||n(W,e))&&s.push(V[e]);return s};U||(o((F=function(){if(this instanceof F)throw TypeError("Symbol is not a constructor!");var t=f(arguments.length>0?arguments[0]:void 0),e=function(i){this===W&&e.call(H,i),n(this,B)&&n(this[B],t)&&(this[B][t]=!1),Y(this,t,k(1,i))};return s&&q&&Y(W,t,{configurable:!0,set:e}),X(t)})[R],"toString",function(){return this._k}),P.f=tt,C.f=Z,i(3230).f=S.f=te,i(6274).f=Q,M.f=ti,s&&!i(6227)&&o(W,"propertyIsEnumerable",Q,!0),d.f=function(t){return X(p(t))}),a(a.G+a.W+!U*a.F,{Symbol:F});for(var tr="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tn=0;tr.length>tn;)p(tr[tn++]);for(var ts=A(p.store),ta=0;ts.length>ta;)m(ts[ta++]);a(a.S+!U*a.F,"Symbol",{for:function(t){return n(N,t+="")?N[t]:N[t]=F(t)},keyFor:function(t){if(!$(t))throw TypeError(t+" is not a symbol!");for(var e in N)if(N[e]===t)return e},useSetter:function(){q=!0},useSimple:function(){q=!1}}),a(a.S+!U*a.F,"Object",{create:K,defineProperty:Z,defineProperties:J,getOwnPropertyDescriptor:tt,getOwnPropertyNames:te,getOwnPropertySymbols:ti});var to=h(function(){M.f(1)});a(a.S+a.F*to,"Object",{getOwnPropertySymbols:function(t){return M.f(x(t))}}),L&&a(a.S+a.F*(!U||h(function(){var t=F();return"[null]"!=I([t])||"{}"!=I({a:t})||"{}"!=I(Object(t))})),"JSON",{stringify:function(t){for(var e,i,r=[t],n=1;arguments.length>n;)r.push(arguments[n++]);if(i=e=r[1],!(!b(e)&&void 0===t||$(t)))return v(e)||(e=function(t,e){if("function"==typeof i&&(e=i.call(this,t,e)),!$(e))return e}),r[1]=e,I.apply(L,r)}}),F[R][j]||i(1818)(F[R],j,F[R].valueOf),c(F,"Symbol"),c(Math,"Math",!0),c(r.JSON,"JSON",!0)},8174:function(t,e,i){i(6347)("asyncIterator")},6461:function(t,e,i){i(6347)("observable")},3871:function(t,e,i){i(3882);for(var r=i(3938),n=i(1818),s=i(5449),a=i(2939)("toStringTag"),o="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),l=0;l<o.length;l++){var h=o[l],u=r[h],c=u&&u.prototype;c&&!c[a]&&n(c,a,h),s[h]=s.Array}},1248:function(module,exports,__webpack_require__){"undefined"!=typeof navigator&&function(t,e){module.exports=e()}(0,function(){"use strict";var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(t){_useWebWorker=!!t},getWebWorker=function(){return _useWebWorker},setLocationHref=function(t){locationHref=t},getLocationHref=function(){return locationHref};function createTag(t){return document.createElement(t)}function extendPrototype(t,e){var i,r,n=t.length;for(i=0;i<n;i+=1)for(var s in r=t[i].prototype)Object.prototype.hasOwnProperty.call(r,s)&&
vendor: 18,386 bytes, line 1
1(e.prototype[s]=r[s])}function getDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)}function createProxyFunction(t){function e(){}return e.prototype=t,e}var audioControllerFactory=function(){function t(t){this.audios=[],this.audioFactory=t,this._volume=1,this._isMuted=!1}return t.prototype={addAudio:function(t){this.audios.push(t)},pause:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].pause()},resume:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].resume()},setRate:function(t){var e,i=this.audios.length;for(e=0;e<i;e+=1)this.audios[e].setRate(t)},createAudio:function(t){return this.audioFactory?this.audioFactory(t):window.Howl?new window.Howl({src:[t]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(t){this.audioFactory=t},setVolume:function(t){this._volume=t,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].volume(this._volume*(this._isMuted?0:1))}},function(){return new t}}(),createTypedArray=function(){function t(t,e){var i,r=0,n=[];switch(t){case"int16":case"uint8c":i=1;break;default:i=1.1}for(r=0;r<e;r+=1)n.push(i);return n}function e(e,i){return"float32"===e?new Float32Array(i):"int16"===e?new Int16Array(i):"uint8c"===e?new Uint8ClampedArray(i):t(e,i)}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?e:t}();function createSizedArray(t){return Array.apply(null,{length:t})}function _typeof$6(t){return(_typeof$6="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),_shouldRoundValues=!1,bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};function ProjectInterface$1(){return{}}!function(){var t,e=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],i=e.length;for(t=0;t<i;t+=1)BMMath[e[t]]=Math[e[t]]}(),BMMath.random=Math.random,BMMath.abs=function(t){if("object"===_typeof$6(t)&&t.length){var e,i=createSizedArray(t.length),r=t.length;for(e=0;e<r;e+=1)i[e]=Math.abs(t[e]);return i}return Math.abs(t)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function roundValues(t){_shouldRoundValues=!!t}function bmRnd(t){return _shouldRoundValues?Math.round(t):t}function styleDiv(t){t.style.position="absolute",t.style.top=0,t.style.left=0,t.style.display="block",t.style.transformOrigin="0 0",t.style.webkitTransformOrigin="0 0",t.style.backfaceVisibility="visible",t.style.webkitBackfaceVisibility="visible",t.style.transformStyle="preserve-3d",t.style.webkitTransformStyle="preserve-3d",t.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(t,e,i,r){this.type=t,this.currentTime=e,this.totalTime=i,this.direction=r<0?-1:1}function BMCompleteEvent(t,e){this.type=t,this.direction=e<0?-1:1}function BMCompleteLoopEvent(t,e,i,r){this.type=t,this.currentLoop=i,this.totalLoops=e,this.direction=r<0?-1:1}function BMSegmentStartEvent(t,e,i){this.type=t,this.firstFrame=e,this.totalFrames=i}function BMDestroyEvent(t,e){this.type=t,this.target=e}function BMRenderFrameErrorEvent(t,e){this.type="renderFrameError",this.nativeError=t,this.currentTime=e}function BMConfigErrorEvent(t){this.type="configError",this.nativeError=t}function BMAnimationConfigErrorEvent(t,e){this.type=t,this.nativeError=e}var createElementID=function(){var t=0;return function(){return t+=1,idPrefix$1+"__lottie_element_"+t}}();function HSVtoRGB(t,e,i){var r,n,s,a,o,l,h,u;switch(a=Math.floor(6*t),o=6*t-a,l=i*(1-e),h=i*(1-o*e),u=i*(1-(1-o)*e),a%6){case 0:r=i,n=u,s=l;break;case 1:r=h,n=i,s=l;break;case 2:r=l,n=i,s=u;break;case 3:r=l,n=h,s=i;break;case 4:r=u,n=l,s=i;break;case 5:r=i,n=l,s=h}return[r,n,s]}function RGBtoHSV(t,e,i){var r,n=Math.max(t,e,i),s=Math.min(t,e,i),a=n-s,o=0===n?0:a/n,l=n/255;switch(n){case s:r=0;break;case t:r=(e-i+a*(e<i?6:0))/(6*a);break;case e:r=(i-t+2*a)/(6*a);break;case i:r=(t-e+4*a)/(6*a)}return[r,o,l]}function addSaturationToRGB(t,e){var i=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return i[1]+=e,i[1]>1?i[1]=1:i[1]<=0&&(i[1]=0),HSVtoRGB(i[0],i[1],i[2])}function addBrightnessToRGB(t,e){var i=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return i[2]+=e,i[2]>1?i[2]=1:i[2]<0&&(i[2]=0),HSVtoRGB(i[0],i[1],i[2])}function addHueToRGB(t,e){var i=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return i[0]+=e/360,i[0]>1?i[0]-=1:i[0]<0&&(i[0]+=1),HSVtoRGB(i[0],i[1],i[2])}var rgbToHex=function(){var t,e,i=[];for(t=0;t<256;t+=1)e=t.toString(16),i[t]=1===e.length?"0"+e:e;return function(t,e,r){return t<0&&(t=0),e<0&&(e=0),r<0&&(r=0),"#"+i[t]+i[e]+i[r]}}(),setSubframeEnabled=function(t){subframeEnabled=!!t},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(t){expressionsPlugin=t},getExpressionsPlugin=function(){return expressionsPlugin},setExpressionInterfaces=function(t){expressionsInterfaces=t},getExpressionInterfaces=function(){return expressionsInterfaces},setDefaultCurveSegments=function(t){defaultCurveSegments=t},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(t){idPrefix$1=t},getIdPrefix=function(){return idPrefix$1};function createNS(t){return document.createElementNS(svgNS,t)}function _typeof$5(t){return(_typeof$5="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var dataManager=function(){var t,e,i=1,r=[],n={onmessage:function(){},postMessage:function(e){t({data:e})}},s={postMessage:function(t){n.onmessage({data:t})}};function a(e){if(window.Worker&&window.Blob&&getWebWorker()){var i=new Blob(["var _workerSelf = self; self.onmessage = ",e.toString()],{type:"text/javascript"});return new Worker(URL.createObjectURL(i))}return t=e,n}function o(){e||((e=a(function(t){function e(){function t(e,i){var a,o,l,h,u,c,f=e.length;for(o=0;o<f;o+=1)if("ks"in(a=e[o])&&!a.completed){if(a.completed=!0,a.hasMask){var d=a.masksProperties;for(l=0,h=d.length;l<h;l+=1)if(d[l].pt.k.i)s(d[l].pt.k);else for(u=0,c=d[l].pt.k.length;u<c;u+=1)d[l].pt.k[u].s&&s(d[l].pt.k[u].s[0]),d[l].pt.k[u].e&&s(d[l].pt.k[u].e[0])}0===a.ty?(a.layers=r(a.refId,i),t(a.layers,i)):4===a.ty?n(a.shapes):5===a.ty&&p(a)}}function e(e,i){if(e){var n=0,s=e.length;for(n=0;n<s;n+=1)1===e[n].t&&(e[n].data.layers=r(e[n].data.refId,i),t(e[n].data.layers,i))}}function i(t,e){for(var i=0,r=e.length;i<r;){if(e[i].id===t)return e[i];i+=1}return null}function r(t,e){var r=i(t,e);return r?r.layers.__used?JSON.parse(JSON.stringify(r.layers)):(r.layers.__used=!0,r.layers):null}function n(t){var e,i,r;for(e=t.length-1;e>=0;e-=1)if("sh"===t[e].ty){if(t[e].ks.k.i)s(t[e].ks.k);else for(i=0,r=t[e].ks.k.length;i<r;i+=1)t[e].ks.k[i].s&&s(t[e].ks.k[i].s[0]),t[e].ks.k[i].e&&s(t[e].ks.k[i].e[0])}else"gr"===t[e].ty&&n(t[e].it)}function s(t){var e,i=t.i.length;for(e=0;e<i;e+=1)t.i[e][0]+=t.v[e][0],t.i[e][1]+=t.v[e][1],t.o[e][0]+=t.v[e][0],t.o[e][1]+=t.v[e][1]}function a(t,e){var i=e?e.split("."):[100,100,100];return t[0]>i[0]||!(i[0]>t[0])&&(t[1]>i[1]||!(i[1]>t[1])&&(t[2]>i[2]||!(i[2]>t[2])&&null))}var o=function(){var t=[4,4,14];function e(t){var e=t.t.d;t.t.d={k:[{s:e,t:0}]}}function i(t){var i,r=t.length;for(i=0;i<r;i+=1)5===t[i].ty&&e(t[i])}return function(e){if(a(t,e.v)&&(i(e.layers),e.assets)){var r,n=e.assets.length;for(r=0;r<n;r+=1)e.assets[r].layers&&i(e.assets[r].layers)}}}(),l=function(){var t=[4,7,99];return function(e){if(e.chars&&!a(t,e.v)){var i,r=e.chars.length;for(i=0;i<r;i+=1){var s=e.chars[i];s.data&&s.data.shapes&&(n(s.data.shapes),s.data.ip=0,s.data.op=99999,s.data.st=0,s.data.sr=1,s.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},e.chars[i].t||(s.data.shapes.push({ty:"no"}),s.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}}(),h=function(){var t=[5,7,15];function e(t){var e=t.t.p;"number"==typeof e.a&&(e.a={a:0,k:e.a}),"number"==typeof e.p&&(e.p={a:0,k:e.p}),"number"==typeof e.r&&(e.r={a:0,k:e.r})}function i(t){var i,r=t.length;for(i=0;i<r;i+=1)5===t[i].ty&&e(t[i])}return function(e){if(a(t,e.v)&&(i(e.layers),e.assets)){var r,n=e.assets.length;for(r=0;r<n;r+=1)e.assets[r].layers&&i(e.assets[r].layers)}}}(),u=function(){var t=[4,1,9];function e(t){var i,r,n,s=t.length;for(i=0;i<s;i+=1)if("gr"===t[i].ty)e(t[i].it);else if("fl"===t[i].ty||"st"===t[i].ty){if(t[i].c.k&&t[i].c.k[0].i)for(r=0,n=t[i].c.k.length;r<n;r+=1)t[i].c.k[r].s&&(t[i].c.k[r].s[0]/=255,t[i].c.k[r].s[1]/=255,t[i].c.k[r].s[2]/=255,t[i].c.k[r].s[3]/=255),t[i].c.k[r].e&&(t[i].c.k[r].e[0]/=255,t[i].c.k[r].e[1]/=255,t[i].c.k[r].e[2]/=255,t[i].c.k[r].e[3]/=255);else t[i].c.k[0]/=255,t[i].c.k[1]/=255,t[i].c.k[2]/=255,t[i].c.k[3]/=255}}function i(t){var i,r=t.length;for(i=0;i<r;i+=1)4===t[i].ty&&e(t[i].shapes)}return function(e){if(a(t,e.v)&&(i(e.layers),e.assets)){var r,n=e.assets.length;for(r=0;r<n;r+=1)e.assets[r].layers&&i(e.assets[r].layers)}}}(),c=function(){var t=[4,4,18];function e(t){var i,r,n;for(i=t.length-1;i>=0;i-=1)if("sh"===t[i].ty){if(t[i].ks.k.i)t[i].ks.k.c=t[i].closed;else for(r=0,n=t[i].ks.k.length;r<n;r+=1)t[i].ks.k[r].s&&(t[i].ks.k[r].s[0].c=t[i].closed),t[i].ks.k[r].e&&(t[i].ks.k[r].e[0].c=t[i].closed)}else"gr"===t[i].ty&&e(t[i].it)}function i(t){var i,r,n,s,a,o,l=t.length;for(r=0;r<l;r+=1){if((i=t[r]).hasMask){var h=i.masksProperties;for(n=0,s=h.length;n<s;n+=1)if(h[n].pt.k.i)h[n].pt.k.c=h[n].cl;else for(a=0,o=h[n].pt.k.length;a<o;a+=1)h[n].pt.k[a].s&&(h[n].pt.k[a].s[0].c=h[n].cl),h[n].pt.k[a].e&&(h[n].pt.k[a].e[0].c=h[n].cl)}4===i.ty&&e(i.shapes)}}return function(e){if(a(t,e.v)&&(i(e.layers),e.assets)){var r,n=e.assets.length;for(r=0;r<n;r+=1)e.assets[r].layers&&i(e.assets[r].layers)}}}();function f(i){i.__complete||(u(i),o(i),l(i),h(i),c(i),t(i.layers,i.assets),e(i.chars,i.assets),i.__complete=!0)}function p(t){0===t.t.a.length&&t.t.p}var d={};return d.completeData=f,d.checkColors=u,d.checkChars=l,d.checkPathProperties=h,d.checkShapes=c,d.completeLayers=t,d}if(s.dataManager||(s.dataManager=e()),s.assetLoader||(s.assetLoader=function(){function t(t){var e=t.getResponseHeader("content-type");return e&&"json"===t.responseType&&-1!==e.indexOf("json")||t.response&&"object"===_typeof$5(t.response)?t.response:t.response&&"string"==typeof t.response?JSON.parse(t.response):t.responseText?JSON.parse(t.responseText):null}return{load:function(e,i,r,n){var s,a=new XMLHttpRequest;try{a.responseType="json"}catch(t){}a.onreadystatechange=function(){if(4===a.readyState){if(200===a.status)r(s=t(a));else try{s=t(a),r(s)}catch(t){n&&n(t)}}};try{a.open("GET",e,!0)}catch(t){a.open("GET",i+"/"+e,!0)}a.send()}}}()),"loadAnimation"===t.data.type)s.assetLoader.load(t.data.path,t.data.fullPath,function(e){s.dataManager.completeData(e),s.postMessage({id:t.data.id,payload:e,status:"success"})},function(){s.postMessage({id:t.data.id,status:"error"})});else if("complete"===t.data.type){var i=t.data.animation;s.dataManager.completeData(i),s.postMessage({id:t.data.id,payload:i,status:"success"})}else"loadData"===t.data.type&&s.assetLoader.load(t.data.path,t.data.fullPath,function(e){s.postMessage({id:t.data.id,payload:e,status:"success"})},function(){s.postMessage({id:t.data.id,status:"error"})})})).onmessage=function(t){var e=t.data,i=e.id,n=r[i];r[i]=null,"success"===e.status?n.onComplete(e.payload):n.onError&&n.onError()})}function l(t,e){var n="processId_"+(i+=1);return r[n]={onComplete:t,onError:e},n}return{loadAnimation:function(t,i,r){o();var n=l(i,r);e.postMessage({type:"loadAnimation",path:t,fullPath:window.location.origin+window.location.pathname,id:n})},loadData:function(t,i,r){o();var n=l(i,r);e.postMessage({type:"loadData",path:t,fullPath:window.location.origin+window.location.pathname,id:n})},completeAnimation:function(t,i,r){o();var n=l(i,r);e.postMessage({type:"complete",animation:t,id:n})}}}(),ImagePreloader=function(){var t=function(){var t=createTag("canvas");t.width=1,t.height=1;var e=t.getContext("2d");return e.fillStyle="rgba(0,0,0,0)",e.fillRect(0,0,1,1),t}();function e(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function i(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function r(t,e,i){var r="";if(t.e)r=t.p;else if(e){var n=t.p;-1!==n.indexOf("images/")&&(n=n.split("/")[1]),r=e+n}else r=i+(t.u?t.u:"")+t.p;return r}function n(t){var e=0,i=setInterval((function(){(t.getBBox().width||e>500)&&(this._imageLoaded(),clearInterval(i)),e+=1}).bind(this),50)}function s(e){var i=r(e,this.assetsPath,this.path),n=createNS("image");isSafari?this.testImageLoaded(n):n.addEventListener("load",this._imageLoaded,!1),n.addEventListener("error",(function(){s.img=t,this._imageLoaded()}).bind(this),!1),n.setAttributeNS("http://www.w3.org/1999/xlink","href",i),this._elementHelper.append?this._elementHelper.append(n):this._elementHelper.appendChild(n);var s={img:n,assetData:e};return s}function a(e){var i=r(e,this.assetsPath,this.path),n=createTag("img");n.crossOrigin="anonymous",n.addEventListener("load",this._imageLoaded,!1),n.addEventListener("error",(function(){s.img=t,this._imageLoaded()}).bind(this),!1),n.src=i;var s={img:n,assetData:e};return s}function o(t){var e={assetData:t},i=r(t,this.assetsPath,this.path);return dataManager.loadData(i,(function(t){e.img=t,this._footageLoaded()}).bind(this),(function(){e.img={},this._footageLoaded()}).bind(this)),e}function l(t,e){this.imagesLoadedCb=e;var i,r=t.length;for(i=0;i<r;i+=1)t[i].layers||(t[i].t&&"seq"!==t[i].t?3===t[i].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(t[i]))):(this.totalImages+=1,this.images.push(this._createImageData(t[i]))))}function h(t){this.path=t||""}function u(t){this.assetsPath=t||""}function c(t){for(var e=0,i=this.images.length;e<i;){if(this.images[e].assetData===t)return this.images[e].img;e+=1}return null}function f(){this.imagesLoadedCb=null,this.images.length=0}function p(){return this.totalImages===this.loadedAssets}function d(){return this.totalFootages===this.loadedFootagesCount}function m(t,e){"svg"===t?(this._elementHelper=e,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function g(){this._imageLoaded=e.bind(this),this._footageLoaded=i.bind(this),this.testImageLoaded=n.bind(this),this.createFootageData=o.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return g.prototype={loadAssets:l,setAssetsPath:u,setPath:h,loadedImages:p,loadedFootages:d,destroy:f,getAsset:c,createImgData:a,createImageData:s,imageLoaded:e,footageLoaded:i,setCacheType:m},g}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(t,e){if(this._cbs[t])for(var i=this._cbs[t],r=0;r<i.length;r+=1)i[r](e)},addEventListener:function(t,e){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(e),(function(){this.removeEventListener(t,e)}).bind(this)},removeEventListener:function(t,e){if(e){if(this._cbs[t]){for(var i=0,r=this._cbs[t].length;i<r;)this._cbs[t][i]===e&&(this._cbs[t].splice(i,1),i-=1,r-=1),i+=1;this._cbs[t].length||(this._cbs[t]=null)}}else this._cbs[t]=null}};var markerParser=function(){function t(t){for(var e,i=t.split("\r\n"),r={},n=0,s=0;s<i.length;s+=1)2===(e=i[s].split(":")).length&&(r[e[0]]=e[1].trim(),n+=1);if(0===n)throw Error();return r}return function(e){for(var i=[],r=0;r<e.length;r+=1){var n=e[r],s={time:n.tm,duration:n.dr};try{s.payload=JSON.parse(e[r].cm)}catch(i){try{s.payload=t(e[r].cm)}catch(t){s.payload={name:e[r].cm}}}i.push(s)}return i}}(),ProjectInterface=function(){function t(t){this.compositions.push(t)}return function(){function e(t){for(var e=0,i=this.compositions.length;e<i;){if(this.compositions[e].data&&this.compositions[e].data.nm===t)return this.compositions[e].prepareFrame&&this.compositions[e].data.xt&&this.compositions[e].prepareFrame(this.currentFrame),this.compositions[e].compInterface;e+=1}return null}return e.compositions=[],e.currentFrame=0,e.registerComposition=t,e}}(),renderers={},registerRenderer=function(t,e){renderers[t]=e};function getRenderer(t){return renderers[t]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var t in renderers)if(renderers[t])return t;return""}function _typeof$4(t){return(_typeof$4="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var AnimationItem=function(){this._cbs=[],this.name="",this.path="",this.isLoaded=!1,this.currentFrame=0,this.currentRawFrame=0,this.firstFrame=0,this.totalFrames=0,this.frameRate=0,this.frameMult=0,this.playSpeed=1,this.playDirection=1,this.playCount=0,this.animationData={},this.assets=[],this.isPaused=!0,this.autoplay=!1,this.loop=!0,this.renderer=null,this.animationID=createElementID(),this.assetsPath="",this.timeCompleted=0,this.segmentPos=0,this.isSubframeEnabled=getSubframeEnabled(),this.segments=[],this._idle=!0,this._completedLoop=!1,this.projectInterface=ProjectInterface(),this.imagePreloader=new ImagePreloader,this.audioController=audioControllerFactory(),this.markers=[],this.configAnimation=this.configAnimation.bind(this),this.onSetupError=this.onSetupError.bind(this),this.onSegmentComplete=this.onSegmentComplete.bind(this),this.drawnFrameEvent=ne
vendor: 2,552 bytes, line 1
1w BMEnterFrameEvent("drawnFrame",0,0,0),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(t){(t.wrapper||t.container)&&(this.wrapper=t.wrapper||t.container);var e="svg";t.animType?e=t.animType:t.renderer&&(e=t.renderer);var i=getRenderer(e);this.renderer=new i(this,t.rendererSettings),this.imagePreloader.setCacheType(e,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=e,""===t.loop||null===t.loop||void 0===t.loop||!0===t.loop?this.loop=!0:!1===t.loop?this.loop=!1:this.loop=parseInt(t.loop,10),this.autoplay=!("autoplay"in t)||t.autoplay,this.name=t.name?t.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(t,"autoloadSegments")||t.autoloadSegments,this.assetsPath=t.assetsPath,this.initialSegment=t.initialSegment,t.audioFactory&&this.audioController.setAudioFactory(t.audioFactory),t.animationData?this.setupAnimation(t.animationData):t.path&&(-1!==t.path.lastIndexOf("\\")?this.path=t.path.substr(0,t.path.lastIndexOf("\\")+1):this.path=t.path.substr(0,t.path.lastIndexOf("/")+1),this.fileName=t.path.substr(t.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(t.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(t){dataManager.completeAnimation(t,this.configAnimation)},AnimationItem.prototype.setData=function(t,e){e&&"object"!==_typeof$4(e)&&(e=JSON.parse(e));var i={wrapper:t,animationData:e},r=t.attributes;i.path=r.getNamedItem("data-animation-path")?r.getNamedItem("data-animation-path").value:r.getNamedItem("data-bm-path")?r.getNamedItem("data-bm-path").value:r.getNamedItem("bm-path")?r.getNamedItem("bm-path").value:"",i.animType=r.getNamedItem("data-anim-type")?r.getNamedItem("data-anim-type").value:r.getNamedItem("data-bm-type")?r.getNamedItem("data-bm-type").value:r.getNamedItem("bm-type")?r.getNamedItem("bm-type").value:r.getNamedItem("data-bm-renderer")?r.getNamedItem("data-bm-renderer").value:r.getNamedItem("bm-renderer")?r.getNamedItem("bm-renderer").value:getRegisteredRenderer()||"canvas";var n=r.getNamedItem("data-anim-loop")?r.getNamedItem("data-anim-loop").value:r.getNamedItem("data-bm-loop")?r.getNamedItem("data-bm-loop").value:r.getNamedItem("bm-loop")?r.getNamedItem("bm-loop").value:"";"false"===n?i.loop=!1:"true"===n?i.loop=!0:""!==n&&(i.loop=parseInt(n,10));
vendor: 79,604 bytes, line 1
1var s=r.getNamedItem("data-anim-autoplay")?r.getNamedItem("data-anim-autoplay").value:r.getNamedItem("data-bm-autoplay")?r.getNamedItem("data-bm-autoplay").value:!r.getNamedItem("bm-autoplay")||r.getNamedItem("bm-autoplay").value;i.autoplay="false"!==s,i.name=r.getNamedItem("data-name")?r.getNamedItem("data-name").value:r.getNamedItem("data-bm-name")?r.getNamedItem("data-bm-name").value:r.getNamedItem("bm-name")?r.getNamedItem("bm-name").value:"","false"===(r.getNamedItem("data-anim-prerender")?r.getNamedItem("data-anim-prerender").value:r.getNamedItem("data-bm-prerender")?r.getNamedItem("data-bm-prerender").value:r.getNamedItem("bm-prerender")?r.getNamedItem("bm-prerender").value:"")&&(i.prerender=!1),i.path?this.setParams(i):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(t){t.op>this.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var e,i,r=this.animationData.layers,n=r.length,s=t.layers,a=s.length;for(i=0;i<a;i+=1)for(e=0;e<n;){if(r[e].id===s[i].id){r[e]=s[i];break}e+=1}if((t.chars||t.fonts)&&(this.renderer.globalData.fontManager.addChars(t.chars),this.renderer.globalData.fontManager.addFonts(t.fonts,this.renderer.globalData.defs)),t.assets)for(e=0,n=t.assets.length;e<n;e+=1)this.animationData.assets.push(t.assets[e]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(t){this.animationData=t;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var t=this.animationData.segments;if(!t||0===t.length||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var e=t.shift();this.timeCompleted=e.time*this.frameRate;var i=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(i,this.includeLayers.bind(this),(function(){this.trigger("data_failed")}).bind(this))},AnimationItem.prototype.loadSegments=function(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(t){if(this.renderer)try{this.animationData=t,this.initialSegment?(this.totalFrames=Math.floor(this.initialSegment[1]-this.initialSegment[0]),this.firstFrame=Math.round(this.initialSegment[0])):(this.totalFrames=Math.floor(this.animationData.op-this.animationData.ip),this.firstFrame=Math.round(this.animationData.ip)),this.renderer.configAnimation(t),t.assets||(t.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(t.assets),this.markers=markerParser(t.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(t){this.triggerConfigError(t)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(t,e){var i="number"==typeof t?t:void 0,r="number"==typeof e?e:void 0;this.renderer.updateContainerSize(i,r)},AnimationItem.prototype.setSubframe=function(t){this.isSubframeEnabled=!!t},AnimationItem.prototype.gotoFrame=function(){this.currentFrame=this.isSubframeEnabled?this.currentRawFrame:~~this.currentRawFrame,this.timeCompleted!==this.totalFrames&&this.currentFrame>this.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},AnimationItem.prototype.play=function(t){(!t||this.name===t)&&!0===this.isPaused&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(t){t&&this.name!==t||!1!==this.isPaused||(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(t){t&&this.name!==t||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(t){for(var e,i=0;i<this.markers.length;i+=1)if((e=this.markers[i]).payload&&e.payload.name===t)return e;return null},AnimationItem.prototype.goToAndStop=function(t,e,i){if(!i||this.name===i){if(isNaN(Number(t))){var r=this.getMarkerData(t);r&&this.goToAndStop(r.time,!0)}else e?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(t,e,i){if(!i||this.name===i){var r=Number(t);if(isNaN(r)){var n=this.getMarkerData(t);n&&(n.duration?this.playSegments([n.time,n.time+n.duration],!0):this.goToAndStop(n.time,!0))}else this.goToAndStop(r,e,i);this.play()}},AnimationItem.prototype.advanceTime=function(t){if(!0!==this.isPaused&&!1!==this.isLoaded){var e=this.currentRawFrame+t*this.frameModifier,i=!1;e>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?e>=this.totalFrames?(this.playCount+=1,this.checkSegments(e%this.totalFrames)||(this.setCurrentRawFrameValue(e%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(e):this.checkSegments(e>this.totalFrames?e%this.totalFrames:0)||(i=!0,e=this.totalFrames-1):e<0?this.checkSegments(e%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&!0!==this.loop)?(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(i=!0,e=0)):this.setCurrentRawFrameValue(e),i&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]<t[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=t[0]-t[1],this.timeCompleted=this.totalFrames,this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-e)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=t[1]-t[0],this.timeCompleted=this.totalFrames,this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+e)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(t,e){var i=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<t?i=t:this.currentRawFrame+this.firstFrame>e&&(i=e-t)),this.firstFrame=t,this.totalFrames=e-t,this.timeCompleted=this.totalFrames,-1!==i&&this.goToAndStop(i,!0)},AnimationItem.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),"object"===_typeof$4(t[0])){var i,r=t.length;for(i=0;i<r;i+=1)this.segments.push(t[i])}else this.segments.push(t);this.segments.length&&e&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(t){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),t&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(t){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),t),!0)},AnimationItem.prototype.destroy=function(t){(!t||this.name===t)&&this.renderer&&(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(t){this.currentRawFrame=t,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(t){this.playSpeed=t,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(t){this.playDirection=t<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(t){this.loop=t},AnimationItem.prototype.setVolume=function(t,e){e&&this.name!==e||this.audioController.setVolume(t)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(t){t&&this.name!==t||this.audioController.mute()},AnimationItem.prototype.unmute=function(t){t&&this.name!==t||this.audioController.unmute()},AnimationItem.prototype.updaFrameModifier=function(){this.frameModifier=this.frameMult*this.playSpeed*this.playDirection,this.audioController.setRate(this.playSpeed*this.playDirection)},AnimationItem.prototype.getPath=function(){return this.path},AnimationItem.prototype.getAssetsPath=function(t){var e="";if(t.e)e=t.p;else if(this.assetsPath){var i=t.p;-1!==i.indexOf("images/")&&(i=i.split("/")[1]),e=this.assetsPath+i}else e=this.path+(t.u?t.u:"")+t.p;return e},AnimationItem.prototype.getAssetData=function(t){for(var e=0,i=this.assets.length;e<i;){if(t===this.assets[e].id)return this.assets[e];e+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(t){return t?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(t,e,i){try{this.renderer.getElementByPath(t).updateDocumentData(e,i)}catch(t){}},AnimationItem.prototype.trigger=function(t){if(this._cbs&&this._cbs[t])switch(t){case"enterFrame":this.triggerEvent(t,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameModifier));break;case"drawnFrame":this.drawnFrameEvent.currentTime=this.currentFrame,this.drawnFrameEvent.totalTime=this.totalFrames,this.drawnFrameEvent.direction=this.frameModifier,this.triggerEvent(t,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(t,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(t,new BMCompleteEvent(t,this.frameMult));break;case"segmentStart":this.triggerEvent(t,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(t,new BMDestroyEvent(t,this));break;default:this.triggerEvent(t)}"enterFrame"===t&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===t&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult)),"complete"===t&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(t,this.frameMult)),"segmentStart"===t&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames)),"destroy"===t&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(t,this))},AnimationItem.prototype.triggerRenderFrameError=function(t){var e=new BMRenderFrameErrorEvent(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)},AnimationItem.prototype.triggerConfigError=function(t){var e=new BMConfigErrorEvent(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)};var animationManager=function(){var t={},e=[],i=0,r=0,n=0,s=!0,a=!1;function o(t){for(var i=0,n=t.target;i<r;)e[i].animation!==n||(e.splice(i,1),i-=1,r-=1,n.isPaused||c()),i+=1}function l(t,i){if(!t)return null;for(var n=0;n<r;){if(e[n].elem===t&&null!==e[n].elem)return e[n].animation;n+=1}var s=new AnimationItem;return f(s,t),s.setData(t,i),s}function h(){var t,i=e.length,r=[];for(t=0;t<i;t+=1)r.push(e[t].animation);return r}function u(){n+=1,P()}function c(){n-=1}function f(t,i){t.addEventListener("destroy",o),t.addEventListener("_active",u),t.addEventListener("_idle",c),e.push({elem:i,animation:t}),r+=1}function p(t){var e=new AnimationItem;return f(e,null),e.setParams(t),e}function d(t,i){var n;for(n=0;n<r;n+=1)e[n].animation.setSpeed(t,i)}function m(t,i){var n;for(n=0;n<r;n+=1)e[n].animation.setDirection(t,i)}function g(t){var i;for(i=0;i<r;i+=1)e[i].animation.play(t)}function v(t){var o,l=t-i;for(o=0;o<r;o+=1)e[o].animation.advanceTime(l);i=t,n&&!a?window.requestAnimationFrame(v):s=!0}function y(t){i=t,window.requestAnimationFrame(v)}function b(t){var i;for(i=0;i<r;i+=1)e[i].animation.pause(t)}function x(t,i,n){var s;for(s=0;s<r;s+=1)e[s].animation.goToAndStop(t,i,n)}function _(t){var i;for(i=0;i<r;i+=1)e[i].animation.stop(t)}function w(t){var i;for(i=0;i<r;i+=1)e[i].animation.togglePause(t)}function k(t){var i;for(i=r-1;i>=0;i-=1)e[i].animation.destroy(t)}function E(t,e,i){var r,n=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),s=n.length;for(r=0;r<s;r+=1)i&&n[r].setAttribute("data-bm-type",i),l(n[r],t);if(e&&0===s){i||(i="svg");var a=document.getElementsByTagName("body")[0];a.innerText="";var o=createTag("div");o.style.width="100%",o.style.height="100%",o.setAttribute("data-bm-type",i),a.appendChild(o),l(o,t)}}function S(){var t;for(t=0;t<r;t+=1)e[t].animation.resize()}function P(){!a&&n&&s&&(window.requestAnimationFrame(y),s=!1)}function M(){a=!0}function C(){a=!1,P()}function A(t,i){var n;for(n=0;n<r;n+=1)e[n].animation.setVolume(t,i)}function T(t){var i;for(i=0;i<r;i+=1)e[i].animation.mute(t)}function D(t){var i;for(i=0;i<r;i+=1)e[i].animation.unmute(t)}return t.registerAnimation=l,t.loadAnimation=p,t.setSpeed=d,t.setDirection=m,t.play=g,t.pause=b,t.stop=_,t.togglePause=w,t.searchAnimations=E,t.resize=S,t.goToAndStop=x,t.destroy=k,t.freeze=M,t.unfreeze=C,t.setVolume=A,t.mute=T,t.unmute=D,t.getRegisteredAnimations=h,t}(),BezierFactory=function(){var t={};t.getBezierEasing=i;var e={};function i(t,i,r,n,s){var a=s||("bez_"+t+"_"+i+"_"+r+"_"+n).replace(/\./g,"p");if(e[a])return e[a];var o=new v([t,i,r,n]);return e[a]=o,o}var r=4,n=.001,s=1e-7,a=10,o=11,l=.1,h="function"==typeof Float32Array;function u(t,e){return 1-3*e+3*t}function c(t,e){return 3*e-6*t}function f(t){return 3*t}function p(t,e,i){return((u(e,i)*t+c(e,i))*t+f(e))*t}function d(t,e,i){return 3*u(e,i)*t*t+2*c(e,i)*t+f(e)}function m(t,e,i,r,n){var o,l,h=0;do(o=p(l=e+(i-e)/2,r,n)-t)>0?i=l:e=l;while(Math.abs(o)>s&&++h<a);return l}function g(t,e,i,n){for(var s=0;s<r;++s){var a=d(e,i,n);if(0===a)break;var o=p(e,i,n)-t;e-=o/a}return e}function v(t){this._p=t,this._mSampleValues=h?new Float32Array(o):Array(o),this._precomputed=!1,this.get=this.get.bind(this)}return v.prototype={get:function(t){var e=this._p[0],i=this._p[1],r=this._p[2],n=this._p[3];return(this._precomputed||this._precompute(),e===i&&r===n)?t:0===t?0:1===t?1:p(this._getTForX(t),i,n)},_precompute:function(){var t=this._p[0],e=this._p[1],i=this._p[2],r=this._p[3];this._precomputed=!0,(t!==e||i!==r)&&this._calcSampleValues()},_calcSampleValues:function(){for(var t=this._p[0],e=this._p[2],i=0;i<o;++i)this._mSampleValues[i]=p(i*l,t,e)},_getTForX:function(t){for(var e=this._p[0],i=this._p[2],r=this._mSampleValues,s=0,a=1,h=o-1;a!==h&&r[a]<=t;++a)s+=l;var u=s+(t-r[--a])/(r[a+1]-r[a])*l,c=d(u,e,i);return c>=n?g(t,u,e,i):0===c?u:m(t,s,s+l,e,i)}},t}(),pooling=function(){return{double:function(t){return t.concat(createSizedArray(t.length))}}}(),poolFactory=function(){return function(t,e,i){var r=0,n=t,s=createSizedArray(n);return{newElement:function(){var t;return r?(r-=1,t=s[r]):t=e(),t},release:function(t){r===n&&(s=pooling.double(s),n*=2),i&&i(t),s[r]=t,r+=1}}}}(),bezierLengthPool=function(){return poolFactory(8,function(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}})}(),segmentsLengthPool=function(){return poolFactory(8,function(){return{lengths:[],totalLength:0}},function(t){var e,i=t.lengths.length;for(e=0;e<i;e+=1)bezierLengthPool.release(t.lengths[e]);t.lengths.length=0})}();function bezFunction(){var t=Math;function e(t,e,i,r,n,s){var a=t*r+e*n+i*s-n*r-s*t-i*e;return a>-.001&&a<.001}function i(i,r,n,s,a,o,l,h,u){if(0===n&&0===o&&0===u)return e(i,r,s,a,l,h);var c,f=t.sqrt(t.pow(s-i,2)+t.pow(a-r,2)+t.pow(o-n,2)),p=t.sqrt(t.pow(l-i,2)+t.pow(h-r,2)+t.pow(u-n,2)),d=t.sqrt(t.pow(l-s,2)+t.pow(h-a,2)+t.pow(u-o,2));return(c=f>p?f>d?f-p-d:d-p-f:d>p?d-p-f:p-f-d)>-.0001&&c<1e-4}var r=function(){return function(t,e,i,r){var n,s,a,o,l,h,u=getDefaultCurveSegments(),c=0,f=[],p=[],d=bezierLengthPool.newElement();for(n=0,a=i.length;n<u;n+=1){for(s=0,l=n/(u-1),h=0;s<a;s+=1)o=bmPow(1-l,3)*t[s]+3*bmPow(1-l,2)*l*i[s]+3*(1-l)*bmPow(l,2)*r[s]+bmPow(l,3)*e[s],f[s]=o,null!==p[s]&&(h+=bmPow(f[s]-p[s],2)),p[s]=f[s];h&&(c+=h=bmSqrt(h)),d.percents[n]=l,d.lengths[n]=c}return d.addedLength=c,d}}();function n(t){var e,i=segmentsLengthPool.newElement(),n=t.c,s=t.v,a=t.o,o=t.i,l=t._length,h=i.lengths,u=0;for(e=0;e<l-1;e+=1)h[e]=r(s[e],s[e+1],a[e],o[e+1]),u+=h[e].addedLength;return n&&l&&(h[e]=r(s[e],s[0],a[e],o[0]),u+=h[e].addedLength),i.totalLength=u,i}function s(t){this.segmentLength=0,this.points=Array(t)}function a(t,e){this.partialLength=t,this.point=e}var o=function(){var t={};return function(i,r,n,o){var l=(i[0]+"_"+i[1]+"_"+r[0]+"_"+r[1]+"_"+n[0]+"_"+n[1]+"_"+o[0]+"_"+o[1]).replace(/\./g,"p");if(!t[l]){var h,u,c,f,p,d,m,g=getDefaultCurveSegments(),v=0,y=null;2===i.length&&(i[0]!==r[0]||i[1]!==r[1])&&e(i[0],i[1],r[0],r[1],i[0]+n[0],i[1]+n[1])&&e(i[0],i[1],r[0],r[1],r[0]+o[0],r[1]+o[1])&&(g=2);var b=new s(g);for(h=0,c=n.length;h<g;h+=1){for(u=0,m=createSizedArray(c),p=h/(g-1),d=0;u<c;u+=1)f=bmPow(1-p,3)*i[u]+3*bmPow(1-p,2)*p*(i[u]+n[u])+3*(1-p)*bmPow(p,2)*(r[u]+o[u])+bmPow(p,3)*r[u],m[u]=f,null!==y&&(d+=bmPow(m[u]-y[u],2));v+=d=bmSqrt(d),b.points[h]=new a(d,m),y=m}b.segmentLength=v,t[l]=b}return t[l]}}();function l(t,e){var i=e.percents,r=e.lengths,n=i.length,s=bmFloor((n-1)*t),a=t*e.addedLength,o=0;if(s===n-1||0===s||a===r[s])return i[s];for(var l=r[s]>a?-1:1,h=!0;h;)if(r[s]<=a&&r[s+1]>a?(o=(a-r[s])/(r[s+1]-r[s]),h=!1):s+=l,s<0||s>=n-1){if(s===n-1)return i[s];h=!1}return i[s]+(i[s+1]-i[s])*o}function h(e,i,r,n,s,a){var o=l(s,a),h=1-o;return[t.round((h*h*h*e[0]+(o*h*h+h*o*h+h*h*o)*r[0]+(o*o*h+h*o*o+o*h*o)*n[0]+o*o*o*i[0])*1e3)/1e3,t.round((h*h*h*e[1]+(o*h*h+h*o*h+h*h*o)*r[1]+(o*o*h+h*o*o+o*h*o)*n[1]+o*o*o*i[1])*1e3)/1e3]}var u=createTypedArray("float32",8);return{getSegmentsLength:n,getNewSegment:function(e,i,r,n,s,a,o){s<0?s=0:s>1&&(s=1);var h,c=l(s,o),f=l(a=a>1?1:a,o),p=e.length,d=1-c,m=1-f,g=d*d*d,v=c*d*d*3,y=c*c*d*3,b=c*c*c,x=d*d*m,_=c*d*m+d*c*m+d*d*f,w=c*c*m+d*c*f+c*d*f,k=c*c*f,E=d*m*m,S=c*m*m+d*f*m+d*m*f,P=c*f*m+d*f*f+c*m*f,M=c*f*f,C=m*m*m,A=f*m*m+m*f*m+m*m*f,T=f*f*m+m*f*f+f*m*f,D=f*f*f;for(h=0;h<p;h+=1)u[4*h]=t.round((g*e[h]+v*r[h]+y*n[h]+b*i[h])*1e3)/1e3,u[4*h+1]=t.round((x*e[h]+_*r[h]+w*n[h]+k*i[h])*1e3)/1e3,u[4*h+2]=t.round((E*e[h]+S*r[h]+P*n[h]+M*i[h])*1e3)/1e3,u[4*h+3]=t.round((C*e[h]+A*r[h]+T*n[h]+D*i[h])*1e3)/1e3;return u},getPointInSegment:h,buildBezierData:o,pointOnLine2D:e,pointOnLine3D:i}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(t,e){var i,r,n,s,a,o=this.offsetTime;"multidimensional"===this.propType&&(g=createTypedArray("float32",this.pv.length));for(var l=e.lastIndex,h=l,u=this.keyframes.length-1,c=!0;c;){if(v=this.keyframes[h],y=this.keyframes[h+1],h===u-1&&t>=y.t-o){v.h&&(v=y),l=0;break}if(y.t-o>t){l=h;break}h<u-1?h+=1:(l=0,c=!1)}b=this.keyframesMetadata[h]||{};var f=y.t-o,p=v.t-o;if(v.to){b.bezierData||(b.bezierData=bez.buildBezierData(v.s,y.s||v.e,v.to,v.ti));var d=b.bezierData;if(t>=f||t<p){var m=t>=f?d.points.length-1:0;for(x=0,_=d.points[m].point.length;x<_;x+=1)g[x]=d.points[m].point[x]}else{b.__fnct?S=b.__fnct:(S=BezierFactory.getBezierEasing(v.o.x,v.o.y,v.i.x,v.i.y,v.n).get,b.__fnct=S),w=S((t-p)/(f-p));var g,v,y,b,x,_,w,k,E,S,P,M,C=d.segmentLength*w,A=e.lastFrame<t&&e._lastKeyframeIndex===h?e._lastAddedLength:0;for(E=e.lastFrame<t&&e._lastKeyframeIndex===h?e._lastPoint:0,c=!0,k=d.points.length;c;){if(A+=d.points[E].partialLength,0===C||0===w||E===d.points.length-1){for(x=0,_=d.points[E].point.length;x<_;x+=1)g[x]=d.points[E].point[x];break}if(C>=A&&C<A+d.points[E+1].partialLength){for(x=0,M=(C-A)/d.points[E+1].partialLength,_=d.points[E].point.length;x<_;x+=1)g[x]=d.points[E].point[x]+(d.points[E+1].point[x]-d.points[E].point[x])*M;break}E<k-1?E+=1:c=!1}e._lastPoint=E,e._lastAddedLength=A-d.points[E].partialLength,e._lastKeyframeIndex=h}}else if(u=v.s.length,P=y.s||v.e,this.sh&&1!==v.h)t>=f?(g[0]=P[0],g[1]=P[1],g[2]=P[2]):t<=p?(g[0]=v.s[0],g[1]=v.s[1],g[2]=v.s[2]):quaternionToEuler(g,slerp(createQuaternion(v.s),createQuaternion(P),(t-p)/(f-p)));else for(h=0;h<u;h+=1)1!==v.h&&(t>=f?w=1:t<p?w=0:(v.o.x.constructor===Array?(b.__fnct||(b.__fnct=[]),b.__fnct[h]?S=b.__fnct[h]:(i=void 0===v.o.x[h]?v.o.x[0]:v.o.x[h],r=void 0===v.o.y[h]?v.o.y[0]:v.o.y[h],n=void 0===v.i.x[h]?v.i.x[0]:v.i.x[h],s=void 0===v.i.y[h]?v.i.y[0]:v.i.y[h],S=BezierFactory.getBezierEasing(i,r,n,s).get,b.__fnct[h]=S)):b.__fnct?S=b.__fnct:(i=v.o.x,r=v.o.y,n=v.i.x,s=v.i.y,S=BezierFactory.getBezierEasing(i,r,n,s).get,v.keyframeMetadata=S),w=S((t-p)/(f-p)))),P=y.s||v.e,a=1===v.h?v.s[h]:v.s[h]+(P[h]-v.s[h])*w,"multidimensional"===this.propType?g[h]=a:g=a;return e.lastIndex=l,g}function slerp(t,e,i){var r,n,s,a,o,l=[],h=t[0],u=t[1],c=t[2],f=t[3],p=e[0],d=e[1],m=e[2],g=e[3];return(n=h*p+u*d+c*m+f*g)<0&&(n=-n,p=-p,d=-d,m=-m,g=-g),1-n>1e-6?(s=Math.sin(r=Math.acos(n)),a=Math.sin((1-i)*r)/s,o=Math.sin(i*r)/s):(a=1-i,o=i),l[0]=a*h+o*p,l[1]=a*u+o*d,l[2]=a*c+o*m,l[3]=a*f+o*g,l}function quaternionToEuler(t,e){var i=e[0],r=e[1],n=e[2],s=e[3],a=Math.atan2(2*r*s-2*i*n,1-2*r*r-2*n*n),o=Math.asin(2*i*r+2*n*s),l=Math.atan2(2*i*s-2*r*n,1-2*i*i-2*n*n);t[0]=a/degToRads,t[1]=o/degToRads,t[2]=l/degToRads}function createQuaternion(t){var e=t[0]*degToRads,i=t[1]*degToRads,r=t[2]*degToRads,n=Math.cos(e/2),s=Math.cos(i/2),a=Math.cos(r/2),o=Math.sin(e/2),l=Math.sin(i/2),h=Math.sin(r/2),u=n*s*a-o*l*h;return[o*l*a+n*s*h,o*s*a+n*l*h,n*l*a-o*s*h,u]}function getValueAtCurrentTime(){var t=this.comp.renderedFrame-this.offsetTime,e=this.keyframes[0].t-this.offsetTime,i=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(t===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=i&&t>=i||this._caching.lastFrame<e&&t<e))){this._caching.lastFrame>=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var r=this.interpolateValue(t,this._caching);this.pv=r}return this._caching.lastFrame=t,this.pv}function setVValue(t){var e;if("unidimensional"===this.propType)e=t*this.mult,mathAbs(this.v-e)>1e-5&&(this.v=e,this._mdf=!0);else for(var i=0,r=this.v.length;i<r;)e=t[i]*this.mult,mathAbs(this.v[i]-e)>1e-5&&(this.v[i]=e,this._mdf=!0),i+=1}function processEffectsSequence(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var t,e=this.effectsSequence.length,i=this.kf?this.pv:this.data.k;for(t=0;t<e;t+=1)i=this.effectsSequence[t](i);this.setVValue(i),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function ValueProperty(t,e,i,r){this.propType="unidimensional",this.mult=i||1,this.data=e,this.v=i?e.k*i:e.k,this.pv=e.k,this._mdf=!1,this.elem=t,this.container=r,this.comp=t.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(t,e,i,r){this.propType="multidimensional",this.mult=i||1,this.data=e,this._mdf=!1,this.elem=t,this.container=r,this.comp=t.comp,this.k=!1,this.kf=!1,this.frameId=-1;var n,s=e.k.length;for(n=0,this.v=createTypedArray("float32",s),this.pv=createTypedArray("float32",s),this.vel=createTypedArray("float32",s);n<s;n+=1)this.v[n]=e.k[n]*this.mult,this.pv[n]=e.k[n];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(t,e,i,r){this.propType="unidimensional",this.keyframes=e.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=e,this.mult=i||1,this.elem=t,this.container=r,this.comp=t.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(t,e,i,r){this.propType="multidimensional";var n,s,a,o,l,h=e.k.length;for(n=0;n<h-1;n+=1)e.k[n].to&&e.k[n].s&&e.k[n+1]&&e.k[n+1].s&&(s=e.k[n].s,a=e.k[n+1].s,o=e.k[n].to,l=e.k[n].ti,(2===s.length&&!(s[0]===a[0]&&s[1]===a[1])&&bez.pointOnLine2D(s[0],s[1],a[0],a[1],s[0]+o[0],s[1]+o[1])&&bez.pointOnLine2D(s[0],s[1],a[0],a[1],a[0]+l[0],a[1]+l[1])||3===s.length&&!(s[0]===a[0]&&s[1]===a[1]&&s[2]===a[2])&&bez.pointOnLine3D(s[0],s[1],s[2],a[0],a[1],a[2],s[0]+o[0],s[1]+o[1],s[2]+o[2])&&bez.pointOnLine3D(s[0],s[1],s[2],a[0],a[1],a[2],a[0]+l[0],a[1]+l[1],a[2]+l[2]))&&(e.k[n].to=null,e.k[n].ti=null),s[0]===a[0]&&s[1]===a[1]&&0===o[0]&&0===o[1]&&0===l[0]&&0===l[1]&&(2===s.length||s[2]===a[2]&&0===o[2]&&0===l[2])&&(e.k[n].to=null,e.k[n].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=e,this.keyframes=e.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=i||1,this.elem=t,this.container=r,this.comp=t.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var u=e.k[0].s.length;for(n=0,this.v=createTypedArray("float32",u),this.pv=createTypedArray("float32",u);n<u;n+=1)this.v[n]=initFrame,this.pv[n]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",u)},this.addEffect=addEffect}var PropertyFactory=function(){return{getProp:function(t,e,i,r,n){var s;if(e.sid&&(e=t.globalData.slotManager.getProp(e)),e.k.length){if("number"==typeof e.k[0])s=new MultiDimensionalProperty(t,e,r,n);else switch(i){case 0:s=new KeyframedValueProperty(t,e,r,n);break;case 1:s=new KeyframedMultidimensionalProperty(t,e,r,n)}}else s=new ValueProperty(t,e,r,n);return s.effectsSequence.length&&n.addDynamicProperty(s),s}}}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){this._mdf=!1;var t,e=this.dynamicProperties.length;for(t=0;t<e;t+=1)this.dynamicProperties[t].getValue(),this.dynamicProperties[t]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(t){this.container=t,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=function(){return poolFactory(8,function(){return createTypedArray("float32",2)})}();function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(t,e){this.c=t,this.setLength(e);for(var i=0;i<e;)this.v[i]=pointPool.newElement(),this.o[i]=pointPool.newElement(),this.i[i]=pointPool.newElement(),i+=1},ShapePath.prototype.setLength=function(t){for(;this._maxLength<t;)this.doubleArrayLength();this._length=t},ShapePath.prototype.doubleArrayLength=function(){this.v=this.v.concat(createSizedArray(this._maxLength)),this.i=this.i.concat(createSizedArray(this._maxLength)),this.o=this.o.concat(createSizedArray(this._maxLength)),this._maxLength*=2},ShapePath.prototype.setXYAt=function(t,e,i,r,n){var s;switch(this._length=Math.max(this._length,r+1),this._length>=this._maxLength&&this.doubleArrayLength(),i){case"v":s=this.v;break;case"i":s=this.i;break;case"o":s=this.o;break;default:s=[]}s[r]&&(!s[r]||n)||(s[r]=pointPool.newElement()),s[r][0]=t,s[r][1]=e},ShapePath.prototype.setTripleAt=function(t,e,i,r,n,s,a,o){this.setXYAt(t,e,"v",a,o),this.setXYAt(i,r,"o",a,o),this.setXYAt(n,s,"i",a,o)},ShapePath.prototype.reverse=function(){var t,e=new ShapePath;e.setPathData(this.c,this._length);var i=this.v,r=this.o,n=this.i,s=0;this.c&&(e.setTripleAt(i[0][0],i[0][1],n[0][0],n[0][1],r[0][0],r[0][1],0,!1),s=1);var a=this._length-1,o=this._length;for(t=s;t<o;t+=1)e.setTripleAt(i[a][0],i[a][1],n[a][0],n[a][1],r[a][0],r[a][1],t,!1),a-=1;return e},ShapePath.prototype.length=function(){return this._length};var shapePool=function(){function t(t){var i,r=e.newElement(),n=void 0===t._length?t.v.length:t._length;for(r.setLength(n),r.c=t.c,i=0;i<n;i+=1)r.setTripleAt(t.v[i][0],t.v[i][1],t.o[i][0],t.o[i][1],t.i[i][0],t.i[i][1],i);return r}var e=poolFactory(4,function(){return new ShapePath},function(t){var e,i=t._length;for(e=0;e<i;e+=1)pointPool.release(t.v[e]),pointPool.release(t.i[e]),pointPool.release(t.o[e]),t.v[e]=null,t.i[e]=null,t.o[e]=null;t._length=0,t.c=!1});return e.clone=t,e}();function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var t;for(t=0;t<this._length;t+=1)shapePool.release(this.shapes[t]);this._length=0};var shapeCollectionPool=function(){var t={newShapeCollection:n,release:s},e=0,i=4,r=createSizedArray(4);function n(){var t;return e?(e-=1,t=r[e]):t=new ShapeCollection,t}function s(t){var n,s=t._length;for(n=0;n<s;n+=1)shapePool.release(t.shapes[n]);t._length=0,e===i&&(r=pooling.double(r),i*=2),r[e]=t,e+=1}return t}(),ShapePropertyFactory=function(){var t=-999999;function e(t,e,i){var r=i.lastIndex,n=this.keyframes;if(t<n[0].t-this.offsetTime)s=n[0].s[0],o=!0,r=0;else if(t>=n[n.length-1].t-this.offsetTime)s=n[n.length-1].s?n[n.length-1].s[0]:n[n.length-2].e[0],o=!0;else{for(var s,a,o,l,h,u,c,f,p,d,m,g,v,y=r,b=n.length-1,x=!0;x&&(d=n[y],!((m=n[y+1]).t-this.offsetTime>t));)y<b-1?y+=1:x=!1;g=this.keyframesMetadata[y]||{},o=1===d.h,r=y,o||(t>=m.t-this.offsetTime?f=1:t<d.t-this.offsetTime?f=0:(g.__fnct?v=g.__fnct:(v=BezierFactory.getBezierEasing(d.o.x,d.o.y,d.i.x,d.i.y).get,g.__fnct=v),f=v((t-(d.t-this.offsetTime))/(m.t-this.offsetTime-(d.t-this.offsetTime)))),a=m.s?m.s[0]:d.e[0]),s=d.s[0]}for(l=0,u=e._length,c=s.i[0].length,i.lastIndex=r;l<u;l+=1)for(h=0;h<c;h+=1)p=o?s.i[l][h]:s.i[l][h]+(a.i[l][h]-s.i[l][h])*f,e.i[l][h]=p,p=o?s.o[l][h]:s.o[l][h]+(a.o[l][h]-s.o[l][h])*f,e.o[l][h]=p,p=o?s.v[l][h]:s.v[l][h]+(a.v[l][h]-s.v[l][h])*f,e.v[l][h]=p}function i(){var e=this.comp.renderedFrame-this.offsetTime,i=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime,n=this._caching.lastFrame;return n!==t&&(n<i&&e<i||n>r&&e>r)||(this._caching.lastIndex=n<e?this._caching.lastIndex:0,this.interpolateShape(e,this.pv,this._caching)),this._caching.lastFrame=e,this.pv}function r(){this.paths=this.localShapeCollection}function n(t,e){if(t._length!==e._length||t.c!==e.c)return!1;var i,r=t._length;for(i=0;i<r;i+=1)if(t.v[i][0]!==e.v[i][0]||t.v[i][1]!==e.v[i][1]||t.o[i][0]!==e.o[i][0]||t.o[i][1]!==e.o[i][1]||t.i[i][0]!==e.i[i][0]||t.i[i][1]!==e.i[i][1])return!1;return!0}function s(t){n(this.v,t)||(this.v=shapePool.clone(t),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function a(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1,t=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var t,e,i=this.effectsSequence.length;for(e=0;e<i;e+=1)t=this.effectsSequence[e](t);this.setVValue(t),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function o(t,e,i){this.propType="shape",this.comp=t.comp,this.container=t,this.elem=t,this.data=e,this.k=!1,this.kf=!1,this._mdf=!1;var n=3===i?e.pt.k:e.ks.k;this.v=shapePool.clone(n),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=r,this.effectsSequence=[]}function l(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function h(e,n,s){this.propType="shape",this.comp=e.comp,this.elem=e,this.container=e,this.offsetTime=e.data.st,this.keyframes=3===s?n.pt.k:n.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var a=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,a),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=t,this.reset=r,this._caching={lastFrame:t,lastIndex:0},this.effectsSequence=[i.bind(this)]}o.prototype.interpolateShape=e,o.prototype.getValue=a,o.prototype.setVValue=s,o.prototype.addEffect=l,h.prototype.getValue=a,h.prototype.interpolateShape=e,h.prototype.setVValue=s,h.prototype.addEffect=l;var u=function(){var t=roundCorner;function e(t,e){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=e.d,this.elem=t,this.comp=t.comp,this.frameId=-1,this.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.s=PropertyFactory.getProp(t,e.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return e.prototype={reset:r,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var e=this.p.v[0],i=this.p.v[1],r=this.s.v[0]/2,n=this.s.v[1]/2,s=3!==this.d,a=this.v;a.v[0][0]=e,a.v[0][1]=i-n,a.v[1][0]=s?e+r:e-r,a.v[1][1]=i,a.v[2][0]=e,a.v[2][1]=i+n,a.v[3][0]=s?e-r:e+r,a.v[3][1]=i,a.i[0][0]=s?e-r*t:e+r*t,a.i[0][1]=i-n,a.i[1][0]=s?e+r:e-r,a.i[1][1]=i-n*t,a.i[2][0]=s?e+r*t:e-r*t,a.i[2][1]=i+n,a.i[3][0]=s?e-r:e+r,a.i[3][1]=i+n*t,a.o[0][0]=s?e+r*t:e-r*t,a.o[0][1]=i-n,a.o[1][0]=s?e+r:e-r,a.o[1][1]=i+n*t,a.o[2][0]=s?e-r*t:e+r*t,a.o[2][1]=i+n,a.o[3][0]=s?e-r:e+r,a.o[3][1]=i-n*t}},extendPrototype([DynamicPropertyContainer],e),e}(),c=function(){function t(t,e){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=t,this.comp=t.comp,this.data=e,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),1===e.sy?(this.ir=PropertyFactory.getProp(t,e.ir,0,0,this),this.is=PropertyFactory.getProp(t,e.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(t,e.pt,0,0,this),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.r=PropertyFactory.getProp(t,e.r,0,degToRads,this),this.or=PropertyFactory.getProp(t,e.or,0,0,this),this.os=PropertyFactory.getProp(t,e.os,0,.01,this),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertToPath())}return t.prototype={reset:r,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var t,e,i,r,n=2*Math.floor(this.pt.v),s=2*Math.PI/n,a=!0,o=this.or.v,l=this.ir.v,h=this.os.v,u=this.is.v,c=2*Math.PI*o/(2*n),f=2*Math.PI*l/(2*n),p=-Math.PI/2;p+=this.r.v;var d=3===this.data.d?-1:1;for(t=0,this.v._length=0;t<n;t+=1){e=a?o:l,i=a?h:u,r=a?c:f;var m=e*Math.cos(p),g=e*Math.sin(p),v=0===m&&0===g?0:g/Math.sqrt(m*m+g*g),y=0===m&&0===g?0:-m/Math.sqrt(m*m+g*g);m+=+this.p.v[0],g+=+this.p.v[1],this.v.setTripleAt(m,g,m-v*r*i*d,g-y*r*i*d,m+v*r*i*d,g+y*r*i*d,t,!0),a=!a,p+=s*d}},convertPolygonToPath:function(){var t,e=Math.floor(this.pt.v),i=2*Math.PI/e,r=this.or.v,n=this.os.v,s=2*Math.PI*r/(4*e),a=-(.5*Math.PI),o=3===this.data.d?-1:1;for(a+=this.r.v,this.v._length=0,t=0;t<e;t+=1){var l=r*Math.cos(a),h=r*Math.sin(a),u=0===l&&0===h?0:h/Math.sqrt(l*l+h*h),c=0===l&&0===h?0:-l/Math.sqrt(l*l+h*h);l+=+this.p.v[0],h+=+this.p.v[1],this.v.setTripleAt(l,h,l-u*s*n*o,h-c*s*n*o,l+u*s*n*o,h+c*s*n*o,t,!0),a+=i*o}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],t),t}(),f=function(){function t(t,e){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=t,this.comp=t.comp,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.s=PropertyFactory.getProp(t,e.s,1,0,this),this.r=PropertyFactory.getProp(t,e.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return t.prototype={convertRectToPath:function(){var t=this.p.v[0],e=this.p.v[1],i=this.s.v[0]/2,r=this.s.v[1]/2,n=bmMin(i,r,this.r.v),s=n*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(t+i,e-r+n,t+i,e-r+n,t+i,e-r+s,0,!0),this.v.setTripleAt(t+i,e+r-n,t+i,e+r-s,t+i,e+r-n,1,!0),0!==n?(this.v.setTripleAt(t+i-n,e+r,t+i-n,e+r,t+i-s,e+r,2,!0),this.v.setTripleAt(t-i+n,e+r,t-i+s,e+r,t-i+n,e+r,3,!0),this.v.setTripleAt(t-i,e+r-n,t-i,e+r-n,t-i,e+r-s,4,!0),this.v.setTripleAt(t-i,e-r+n,t-i,e-r+s,t-i,e-r+n,5,!0),this.v.setTripleAt(t-i+n,e-r,t-i+n,e-r,t-i+s,e-r,6,!0),this.v.setTripleAt(t+i-n,e-r,t+i-s,e-r,t+i-n,e-r,7,!0)):(this.v.setTripleAt(t-i,e+r,t-i+s,e+r,t-i,e+r,2),this.v.setTripleAt(t-i,e-r,t-i,e-r+s,t-i,e-r,3))):(this.v.setTripleAt(t+i,e-r+n,t+i,e-r+s,t+i,e-r+n,0,!0),0!==n?(this.v.setTripleAt(t+i-n,e-r,t+i-n,e-r,t+i-s,e-r,1,!0),this.v.setTripleAt(t-i+n,e-r,t-i+s,e-r,t-i+n,e-r,2,!0),this.v.setTripleAt(t-i,e-r+n,t-i,e-r+n,t-i,e-r+s,3,!0),this.v.setTripleAt(t-i,e+r-n,t-i,e+r-s,t-i,e+r-n,4,!0),this.v.setTripleAt(t-i+n,e+r,t-i+n,e+r,t-i+s,e+r,5,!0),this.v.setTripleAt(t+i-n,e+r,t+i-s,e+r,t+i-n,e+r,6,!0),this.v.setTripleAt(t+i,e+r-n,t+i,e+r-n,t+i,e+r-s,7,!0)):(this.v.setTripleAt(t-i,e-r,t-i+s,e-r,t-i,e-r,1,!0),this.v.setTripleAt(t-i,e+r,t-i,e+r-s,t-i,e+r,2,!0),this.v.setTripleAt(t+i,e+r,t+i-s,e+r,t+i,e+r,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:r},extendPrototype([DynamicPropertyContainer],t),t}();function p(t,e,i){var r;return 3===i||4===i?r=(3===i?e.pt:e.ks).k.length?new h(t,e,i):new o(t,e,i):5===i?r=new f(t,e):6===i?r=new u(t,e):7===i&&(r=new c(t,e)),r.k&&t.addDynamicProperty(r),r}function d(){return o}function m(){return h}var g={};return g.getShapeProp=p,g.getConstructorFunction=d,g.getKeyframedConstructorFunction=m,g}(),Matrix=function(){var t=Math.cos,e=Math.sin,i=Math.tan,r=Math.round;function n(){return this.props[0]=1,this.props[1]=0,this.props[2]=0,this.props[3]=0,this.props[4]=0,this.props[5]=1,this.props[6]=0,this.props[7]=0,this.props[8]=0,this.props[9]=0,this.props[10]=1,this.props[11]=0,this.props[12]=0,this.props[13]=0,this.props[14]=0,this.props[15]=1,this}function s(i){if(0===i)return this;var r=t(i),n=e(i);return this._t(r,-n,0,0,n,r,0,0,0,0,1,0,0,0,0,1)}function a(i){if(0===i)return this;var r=t(i),n=e(i);return this._t(1,0,0,0,0,r,-n,0,0,n,r,0,0,0,0,1)}function o(i){if(0===i)return this;var r=t(i),n=e(i);return this._t(r,0,n,0,0,1,0,0,-n,0,r,0,0,0,0,1)}function l(i){if(0===i)return this;var r=t(i),n=e(i);return this._t(r,-n,0,0,n,r,0,0,0,0,1,0,0,0,0,1)}function h(t,e){return this._t(1,e,t,1,0,0)}function u(t,e){return this.shear(i(t),i(e))}function c(r,n){var s=t(n),a=e(n);return this._t(s,a,0,0,-a,s,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,i(r),1,0,0,0,0,1,0,0,0,0,1)._t(s,-a,0,0,a,s,0,0,0,0,1,0,0,0,0,1)}function f(t,e,i){return(i||0===i||(i=1),1===t&&1===e&&1===i)?this:this._t(t,0,0,0,0,e,0,0,0,0,i,0,0,0,0,1)}function p(t,e,i,r,n,s,a,o,l,h,u,c,f,p,d,m){return this.props[0]=t,this.props[1]=e,this.props[2]=i,this.props[3]=r,this.props[4]=n,this.props[5]=s,this.props[6]=a,this.props[7]=o,this.props[8]=l,this.props[9]=h,this.props[10]=u,this.props[11]=c,this.props[12]=f,this.props[13]=p,this.props[14]=d,this.props[15]=m,this}function d(t,e,i){return(i=i||0,0!==t||0!==e||0!==i)?this._t(1,0,0,0,0,1,0,0,0,0,1,0,t,e,i,1):this}function m(t,e,i,r,n,s,a,o,l,h,u,c,f,p,d,m){var g=this.props;if(1===t&&0===e&&0===i&&0===r&&0===n&&1===s&&0===a&&0===o&&0===l&&0===h&&1===u&&0===c)return g[12]=g[12]*t+g[15]*f,g[13]=g[13]*s+g[15]*p,g[14]=g[14]*u+g[15]*d,g[15]*=m,this._identityCalculated=!1,this;var v=g[0],y=g[1],b=g[2],x=g[3],_=g[4],w=g[5],k=g[6],E=g[7],S=g[8],P=g[9],M=g[10],C=g[11],A=g[12],T=g[13],D=g[14],O=g[15];return g[0]=v*t+y*n+b*l+x*f,g[1]=v*e+y*s+b*h+x*p,g[2]=v*i+y*a+b*u+x*d,g[3]=v*r+y*o+b*c+x*m,g[4]=_*t+w*n+k*l+E*f,g[5]=_*e+w*s+k*h+E*p,g[6]=_*i+w*a+k*u+E*d,g[7]=_*r+w*o+k*c+E*m,g[8]=S*t+P*n+M*l+C*f,g[9]=S*e+P*s+M*h+C*p,g[10]=S*i+P*a+M*u+C*d,g[11]=S*r+P*o+M*c+C*m,g[12]=A*t+T*n+D*l+O*f,g[13]=A*e+T*s+D*h+O*p,g[14]=A*i+T*a+D*u+O*d,g[15]=A*r+T*o+D*c+O*m,this._identityCalculated=!1,this}function g(t){var e=t.props;return this.transform(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}function v(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function y(t){for(var e=0;e<16;){if(t.props[e]!==this.props[e])return!1;e+=1}return!0}function b(t){var e;for(e=0;e<16;e+=1)t.props[e]=this.props[e];return t}function x(t){var e;for(e=0;e<16;e+=1)this.props[e]=t[e]}function _(t,e,i){return{x:t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12],y:t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13],z:t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]}}function w(t,e,i){return t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12]}function k(t,e,i){return t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13]}function E(t,e,i){return t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]}function S(){var t=this.props[0]*this.props[5]-this.props[1]*this.props[4],e=this.props[5]/t,i=-this.props[1]/t,r=-this.props[4]/t,n=this.props[0]/t,s=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/t,a=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/t,o=new Matrix;return o.props[0]=e,o.props[1]=i,o.props[4]=r,o.props[5]=n,o.props[12]=s,o.props[13]=a,o}function P(t){return this.getInverseMatrix().applyToPointArray(t[0],t[1],t[2]||0)}function M(t){var e,i=t.length,r=[];for(e=0;e<i;e+=1)r[e]=P(t[e]);return r}function C(t,e,i){var r=createTypedArray("float32",6);if(this.isIdentity())r[0]=t[0],r[1]=t[1],r[2]=e[0],r[3]=e[1],r[4]=i[0],r[5]=i[1];else{var n=this.props[0],s=this.props[1],a=this.props[4],o=this.props[5],l=this.props[12],h=this.props[13];r[0]=t[0]*n+t[1]*a+l,r[1]=t[0]*s+t[1]*o+h,r[2]=e[0]*n+e[1]*a+l,r[3]=e[0]*s+e[1]*o+h,r[4]=i[0]*n+i[1]*a+l,r[5]=i[0]*s+i[1]*o+h}return r}function A(t,e,i){return this.isIdentity()?[t,e,i]:[t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12],t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13],t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]]}function T(t,e){if(this.isIdentity())return t+","+e;var i=this.props;return Math.round((t*i[0]+e*i[4]+i[12])*100)/100+","+Math.round((t*i[1]+e*i[5]+i[13])*100)/100}function D(){for(var t=0,e=this.props,i="matrix3d(",n=1e4;t<16;)i+=r(e[t]*n)/n+(15===t?")":","),t+=1;return i}function O(t){var e=1e4;return t<1e-6&&t>0||t>-.000001&&t<0?r(t*e)/e:t}function F(){var t=this.props;return"matrix("+O(t[0])+","+O(t[1])+","+O(t[4])+","+O(t[5])+","+O(t[12])+","+O(t[13])+")"}return function(){this.reset=n,this.rotate=s,this.rotateX=a,this.rotateY=o,this.rotateZ=l,this.skew=u,this.skewFromAxis=c,this.shear=h,this.scale=f,this.setTransform=p,this.translate=d,this.transform=m,this.multiply=g,this.applyToPoint=_,this.applyToX=w,this.applyToY=k,this.applyToZ=E,this.applyToPointArray=A,this.applyToTriplePoints=C,this.applyToPointStringified=T,this.toCSS=D,this.to2dCSS=F,this.clone=b,this.cloneFromProps=x,this.equals=y,this.inversePoints=M,this.inversePoint=P,this.getInverseMatrix=S,this._t=this.transform,this.isIdentity=v,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(t){return(_typeof$3="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var lottie={},standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="";function setLocation(t){setLocationHref(t)}function searchAnimations(){!0===standalone?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function setSubframeRendering(t){setSubframeEnabled(t)}function setPrefix(t){setIdPrefix(t)}function loadAnimation(t){return!0===standalone&&(t.animationData=JSON.parse(animationData)),animationManager.loadAnimation(t)}function setQuality(t){if("string"==typeof t)switch(t){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(t)&&t>1&&setDefaultCurveSegments(t);getDefaultCurveSegments()>=50?roundValues(!1):roundValues(!0)}function inBrowser(){return"undefined"!=typeof navigator}function installPlugin(t,e){"expressions"===t&&setExpressionsPlugin(e)}function getFactory(t){switch(t){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(t){for(var e=queryString.split("&"),i=0;i<e.length;i+=1){var r=e[i].split("=");if(decodeURIComponent(r[0])==t)return decodeURIComponent(r[1])}return null}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.12.2";var queryString="";if(standalone){var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",renderer=getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{"object"!==_typeof$3(exports)&&__webpack_require__.amdO}catch(err){}var ShapeModifiers=function(){var t={},e={};function i(t,i){e[t]||(e[t]=i)}function r(t,i,r){return new e[t](i,r)}return t.registerModifier=i,t.getModifier=r,t}();function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(t){if(!this.closed){t.sh.container.addDynamicProperty(t.sh);var e={shape:t.sh,data:t,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(e),this.addShapeToModifier(e),this._isAnimated&&t.setAsAnimated()}},ShapeModifier.prototype.init=function(t,e){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier),extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(t,e){this.s=PropertyFactory.getProp(t,e.s,0,.01,this),this.e=PropertyFactory.getProp(t,e.e,0,.01,this),this.o=PropertyFactory.getProp(t,e.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=e.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(t){t.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(t,e,i,r,n){var s,a,o=[];e<=1?o.push({s:t,e:e}):t>=1?o.push({s:t-1,e:e-1}):(o.push({s:t,e:1}),o.push({s:0,e:e-1}));var l=[],h=o.length;for(s=0;s<h;s+=1)(a=o[s]).e*n<r||a.s*n>r+i||l.push([a.s*n<=r?0:(a.s*n-r)/i,a.e*n>=r+i?1:(a.e*n-r)/i]);return l.length||l.push([0,0]),l},TrimModifier.prototype.releasePathsData=function(t){var e,i=t.length;for(e=0;e<i;e+=1)segmentsLengthPool.release(t[e]);return t.length=0,t},TrimModifier.prototype.processShapes=function(t){if(this._mdf||t){var e=this.o.v%360/360;if(e<0&&(e+=1),(s=this.s.v>1?1+e:this.s.v<0?0+e:this.s.v+e)>(a=this.e.v>1?1+e:this.e.v<0?0+e:this.e.v+e)){var i=s;s=a,a=i}s=1e-4*Math.round(1e4*s),a=1e-4*Math.round(1e4*a),this.sValue=s,this.eValue=a}else s=this.sValue,a=this.eValue;var r=this.shapes.length,n=0;if(a===s)for(l=0;l<r;l+=1)this.shapes[l].localShapeCollection.releaseShapes(),this.shapes[l].shape._mdf=!0,this.shapes[l].shape.paths=this.shapes[l].localShapeCollection,this._mdf&&(this.shapes[l].pathsData.length=0);else if(1===a&&0===s||0===a&&1===s){if(this._mdf)for(l=0;l<r;l+=1)this.shapes[l].pathsData.length=0,this.shapes[l].shape._mdf=!0}else{var s,a,o,l,h,u,c,f,p,d,m,g,v=[];for(l=0;l<r;l+=1)if((d=this.shapes[l]).shape._mdf||this._mdf||t||2===this.m){if(u=(o=d.shape.paths)._length,p=0,!d.shape._mdf&&d.pathsData.length)p=d.totalShapeLength;else{for(h=0,c=this.releasePathsData(d.pathsData);h<u;h+=1)f=bez.getSegmentsLength(o.shapes[h]),c.push(f),p+=f.totalLength;d.totalShapeLength=p,d.pathsData=c}n+=p,d.shape._mdf=!0}else d.shape.paths=d.localShapeCollection;var y=s,b=a,x=0;for(l=r-1;l>=0;l-=1)if((d=this.shapes[l]).shape._mdf){for((m=d.localShapeCollection).releaseShapes(),2===this.m&&r>1?(g=this.calculateShapeEdges(s,a,d.totalShapeLength,x,n),x+=d.totalShapeLength):g=[[y,b]],u=g.length,h=0;h<u;h+=1){y=g[h][0],b=g[h][1],v.length=0,b<=1?v.push({s:d.totalShapeLength*y,e:d.totalShapeLength*b}):y>=1?v.push({s:d.totalShapeLength*(y-1),e:d.totalShapeLength*(b-1)}):(v.push({s:d.totalShapeLength*y,e:d.totalShapeLength}),v.push({s:0,e:d.totalShapeLength*(b-1)}));var _=this.addShapes(d,v[0]);if(v[0].s!==v[0].e){if(v.length>1){if(d.shape.paths.shapes[d.shape.paths._length-1].c){var w=_.pop();this.addPaths(_,m),_=this.addShapes(d,v[1],w)}else this.addPaths(_,m),_=this.addShapes(d,v[1])}this.addPaths(_,m)}}d.shape.paths=m}}},TrimModifier.prototype.addPaths=function(t,e){var i,r=t.length;for(i=0;i<r;i+=1)e.addShape(t[i])},TrimModifier.prototype.addSegment=function(t,e,i,r,n,s,a){n.setXYAt(e[0],e[1],"o",s),n.setXYAt(i[0],i[1],"i",s+1),a&&n.setXYAt(t[0],t[1],"v",s),n.setXYAt(r[0],r[1],"v",s+1)},TrimModifier.prototype.addSegmentFromArray=function(t,e,i,r){e.setXYAt(t[1],t[5],"o",i),e.setXYAt(t[2],t[6],"i",i+1),r&&e.setXYAt(t[0],t[4],"v",i),e.setXYAt(t[3],t[7],"v",i+1)},TrimModifier.prototype.addShapes=function(t,e,i){var r,n,s,a,o,l,h,u,c=t.pathsData,f=t.shape.paths.shapes,p=t.shape.paths._length,d=0,m=[],g=!0;for(i?(o=i._length,u=i._length):(i=shapePool.newElement(),o=0,u=0),m.push(i),r=0;r<p;r+=1){for(n=1,l=c[r].lengths,i.c=f[r].c,s=f[r].c?l.length:l.length+1;n<s;n+=1)if(d+(a=l[n-1]).addedLength<e.s)d+=a.addedLength,i.c=!1;else if(d>e.e){i.c=!1;break}else e.s<=d&&e.e>=d+a.addedLength?(this.addSegment(f[r].v[n-1],f[r].o[n-1],f[r].i[n],f[r].v[n],i,o,g),g=!1):(h=bez.getNewSegment(f[r].v[n-1],f[r].v[n],f[r].o[n-1],f[r].i[n],(e.s-d)/a.addedLength,(e.e-d)/a.addedLength,l[n-1]),this.addSegmentFromArray(h,i,o,g),g=!1,i.c=!1),d+=a.addedLength,o+=1;if(f[r].c&&l.length){if(a=l[n-1],d<=e.e){var v=l[n-1].addedLength;e.s<=d&&e.e>=d+v?(this.addSegment(f[r].v[n-1],f[r].o[n-1],f[r].i[0],f[r].v[0],i,o,g),g=!1):(h=bez.getNewSegment(f[r].v[n-1],f[r].v[0],f[r].o[n-1],f[r].i[0],(e.s-d)/v,(e.e-d)/v,l[n-1]),this.addSegmentFromArray(h,i,o,g),g=!1,i.c=!1)}else i.c=!1;d+=a.addedLength,o+=1}if(i._length&&(i.setXYAt(i.v[u][0],i.v[u][1],"i",u),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),d>e.e)break;r<p-1&&(i=shapePool.newElement(),g=!0,m.push(i),o=0)}return m},extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,e.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(t,e){var i,r,n,s,a,o,l=e/100,h=[0,0],u=t._length,c=0;for(c=0;c<u;c+=1)h[0]+=t.v[c][0],h[1]+=t.v[c][1];h[0]/=u,h[1]/=u;var f=shapePool.newElement();for(c=0,f.c=t.c;c<u;c+=1)i=t.v[c][0]+(h[0]-t.v[c][0])*l,r=t.v[c][1]+(h[1]-t.v[c][1])*l,n=t.o[c][0]+-((h[0]-t.o[c][0])*l),s=t.o[c][1]+-((h[1]-t.o[c][1])*l),a=t.i[c][0]+-((h[0]-t.i[c][0])*l),o=t.i[c][1]+-((h[1]-t.i[c][1])*l),f.setTripleAt(i,r,n,s,a,o,c);return f},PuckerAndBloatModifier.prototype.processShapes=function(t){var e,i,r,n,s,a,o=this.shapes.length,l=this.amount.v;if(0!==l)for(i=0;i<o;i+=1){if(a=(s=this.shapes[i]).localShapeCollection,!(!s.shape._mdf&&!this._mdf&&!t))for(a.releaseShapes(),s.shape._mdf=!0,e=s.shape.paths.shapes,n=s.shape.paths._length,r=0;r<n;r+=1)a.addShape(this.processPath(e[r],l));s.shape.paths=s.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var t=[0,0];function e(t){var e=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||e,this.a&&t.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&t.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&t.skewFromAxis(-this.sk.v,this.sa.v),this.r?t.rotate(-this.r.v):t.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.data.p.s?this.data.p.z?t.translate(this.px.v,this.py.v,-this.pz.v):t.translate(this.px.v,this.py.v,0):t.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function i(e){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||e){var i;if(this.v.cloneFromProps(this.pre.props),this.appliedTransformations<1&&this.v.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations<2&&this.v.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&this.appliedTransformations<3&&this.v.skewFromAxis(-this.sk.v,this.sa.v),this.r&&this.appliedTransformations<4?this.v.rotate(-this.r.v):!this.r&&this.appliedTransformations<4&&this.v.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.autoOriented){if(i=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(r=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/i,0),n=this.p.getValueAtTime(this.p.keyframes[0].t/i,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(r=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/i,0),n=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/i,0)):(r=this.p.pv,n=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/i,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){r=[],n=[];var r,n,s=this.px,a=this.py;s._caching.lastFrame+s.offsetTime<=s.keyframes[0].t?(r[0]=s.getValueAtTime((s.keyframes[0].t+.01)/i,0),r[1]=a.getValueAtTime((a.keyframes[0].t+.01)/i,0),n[0]=s.getValueAtTime(s.keyframes[0].t/i,0),n[1]=a.getValueAtTime(a.keyframes[0].t/i,0)):s._caching.lastFrame+s.offsetTime>=s.keyframes[s.keyframes.length-1].t?(r[0]=s.getValueAtTime(s.keyframes[s.keyframes.length-1].t/i,0),r[1]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/i,0),n[0]=s.getValueAtTime((s.keyframes[s.keyframes.length-1].t-.01)/i,0),n[1]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/i,0)):(r=[s.pv,a.pv],n[0]=s.getValueAtTime((s._caching.lastFrame+s.offsetTime-.01)/i,s.offsetTime),n[1]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/i,a.offsetTime))}else r=n=t;this.v.rotate(-Math.atan2(r[1]-n[1],r[0]-n[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function r(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}}function n(){}function s(t){this._addDynamicProperty(t),this.elem.addDynamicProperty(t),this._isDirty=!0}function a(t,e,i){if(this.elem=t,this.frameId=-1,this.propType="transform",this.data=e,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(i||t),e.p&&e.p.s?(this.px=PropertyFactory.getProp(t,e.p.x,0,0,this),this.py=PropertyFactory.getProp(t,e.p.y,0,0,this),e.p.z&&(this.pz=PropertyFactory.getProp(t,e.p.z,0,0,this))):this.p=PropertyFactory.getProp(t,e.p||{k:[0,0,0]},1,0,this),e.rx){if(this.rx=PropertyFactory.getProp(t,e.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(t,e.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(t,e.rz,0,degToRads,this),e.or.k[0].ti){var r,n=e.or.k.length;for(r=0;r<n;r+=1)e.or.k[r].to=null,e.or.k[r].ti=null}this.or=PropertyFactory.getProp(t,e.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(t,e.r||{k:0},0,degToRads,this);e.sk&&(this.sk=PropertyFactory.getProp(t,e.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(t,e.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(t,e.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(t,e.s||{k:[100,100,100]},1,.01,this),e.o?this.o=PropertyFactory.getProp(t,e.o,0,.01,t):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return a.prototype={applyToMatrix:e,getValue:i,precalculateMatrix:r,autoOrient:n},extendPrototype([DynamicPropertyContainer],a),a.prototype.addDynamicProperty=s,a.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(t,e,i){return new a(t,e,i)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function floatEqual(t,e){return 1e5*Math.abs(t-e)<=Math.min(Math.abs(t),Math.abs(e))}function floatZero(t){return 1e-5>=Math.abs(t)}function lerp(t,e,i){return t*(1-i)+e*i}function lerpPoint(t,e,i){return[lerp(t[0],e[0],i),lerp(t[1],e[1],i)]}function quadRoots(t,e,i){if(0===t)return[];var r=e*e-4*t*i;if(r<0)return[];var n=-e/(2*t);if(0===r)return[n];var s=Math.sqrt(r)/(2*t);return[n-s,n+s]}function polynomialCoefficients(t,e,i,r){return[-t+3*e-3*i+r,3*t-6*e+3*i,-3*t+3*e,t]}function singlePoint(t){return new PolynomialBezier(t,t,t,t,!1)}function PolynomialBezier(t,e,i,r,n){n&&pointEqual(t,e)&&(e=lerpPoint(t,r,1/3)),n&&pointEqual(i,r)&&(i=lerpPoint(t,r,2/3));var s=polynomialCoefficients(t[0],e[0],i[0],r[0]),a=polynomialCoefficients(t[1],e[1],i[1],r[1]);this.a=[s[0],a[0]],this.b=[s[1],a[1]],this.c=[s[2],a[2]],this.d=[s[3],a[3]],this.points=[t,e,i,r]}function extrema(t,e){var i=t.points[0][e],r=t.points[t.points.length-1][e];if(i>r){var n=r;r=i,i=n}for(var s=quadRoots(3*t.a[e],2*t.b[e],t.c[e]),a=0;a<s.length;a+=1)if(s[a]>0&&s[a]<1){var o=t.point(s[a])[e];o<i?i=o:o>r&&(r=o)}return{min:i,max:r}}function intersectData(t,e,i){var r=t.boundingBox();return{cx:r.cx,cy:r.cy,width:r.width,height:r.height,bez:t,t:(e+i)/2,t1:e,t2:i}}function splitData(t){var e=t.bez.split(.5);return[intersectData(e[0],t.t1,t.t),intersectData(e[1],t.t,t.t2)]}function boxIntersect(t,e){return 2*Math.abs(t.cx-e.cx)<t.width+e.width&&2*Math.abs(t.cy-e.cy)<t.height+e.height}function intersectsImpl(t,e,i,r,n,s){if(boxIntersect(t,e)){if(i>=s||t.width<=r&&t.height<=r&&e.width<=r&&e.height<=r){n.push([t.t,e.t]);return}var a=splitData(t),o=splitData(e);intersectsImpl(a[0],o[0],i+1,r,n,s),intersectsImpl(a[0],o[1],i+1,r,n,s),intersectsImpl(a[1],o[0],i+1,r,n,s),intersectsImpl(a[1],o[1],i+1,r,n,s)}}function crossProduct(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function lineIntersection(t,e,i,r){var n=[t[0],t[1],1],s=[e[0],e[1],1],a=[i[0],i[1],1],o=[r[0],r[1],1],l=crossProduct(crossProduct(n,s),crossProduct(a,o));return floatZero(l[2])?null:[l[0]/l[2],l[1]/l[2]]}function polarOffset(t,e,i){return[t[0]+Math.cos(e)*i,t[1]-Math.sin(e)*i]}function pointDistance(t,e){return Math.hypot(t[0]-e[0],t[1]-e[1])}function pointEqual(t,e){return floatEqual(t[0],e[0])&&floatEqual(t[1],e[1])}function ZigZagModifier(){}function setPoint(t,e,i,r,n,s,a){var o=i-Math.PI/2,l=i+Math.PI/2,h=e[0]+Math.cos(i)*r*n,u=e[1]-Math.sin(i)*r*n;t.setTripleAt(h,u,h+Math.cos(o)*s,u-Math.sin(o)*s,h+Math.cos(l)*a,u-Math.sin(l)*a,t.length())}function getPerpendicularVector(t,e){var i=[e[0]-t[0],e[1]-t[1]],r=-(.5*Math.PI);return[Math.cos(r)*i[0]-Math.sin(r)*i[1],Math.sin(r)*i[0]+Math.cos(r)*i[1]]}function getProjectingAngle(t,e){var i=0===e?t.length()-1:e-1,r=(e+1)%t.length(),n=getPerpendicularVector(t.v[i],t.v[r]);return Math.atan2(0,1)-Math.atan2(n[1],n[0])}function zigZagCorner(t,e,i,r,n,s,a){var o=getProjectingAngle(e,i),l=e.v[i%e._length],h=e.v[0===i?e._length-1:i-1],u=e.v[(i+1)%e._length],c=2===s?Math.sqrt(Math.pow(l[0]-h[0],2)+Math.pow(l[1]-h[1],2)):0,f=2===s?Math.sqrt(Math.pow(l[0]-u[0],2)+Math.pow(l[1]-u[1],2)):0;setPoint(t,e.v[i%e._length],o,a,r,f/((n+1)*2),c/((n+1)*2),s)}function zigZagSegment(t,e,i,r,n,s){for(var a=0;a<r;a+=1){var o=(a+1)/(r+1),l=2===n?Math.sqrt(Math.pow(e.points[3][0]-e.points[0][0],2)+Math.pow(e.points[3][1]-e.points[0][1],2)):0,h=e.normalAngle(o);setPoint(t,e.point(o),h,s,i,l/((r+1)*2),l/((r+1)*2),n),s=-s}return s}function linearOffset(t,e,i){var r=Math.atan2(e[0]-t[0],e[1]-t[1]);return[polarOffset(t,r,i),polarOffset(e,r,i)]}function offsetSegment(t,e){i=(l=linearOffset(t.points[0],t.points[1],e))[0],r=l[1],n=(l=linearOffset(t.points[1],t.points[2],e))[0],s=l[1],a=(l=linearOffset(t.points[2],t.points[3],e))[0],o=l[1];var i,r,n,s,a,o,l,h=lineIntersection(i,r,n,s);null===h&&(h=r);var u=lineIntersection(a,o,n,s);return null===u&&(u=a),new PolynomialBezier(i,h,u,o)}function joinLines(t,e,i,r,n){var s=e.points[3],a=i.points[0];if(3===r||pointEqual(s,a))return s;if(2===r){var o=-e.tangentAngle(1),l=-i.tangentAngle(0)+Math.PI,h=lineIntersection(s,polarOffset(s,o+Math.PI/2,100),a,polarOffset(a,o+Math.PI/2,100)),u=h?pointDistance(h,s):pointDistance(s,a)/2,c=polarOffset(s,o,2*u*roundCorner);return t.setXYAt(c[0],c[1],"o",t.length()-1),c=polarOffset(a,l,2*u*roundCorner),t.setTripleAt(a[0],a[1],a[0],a[1],c[0],c[1],t.length()),a}var f=pointEqual(s,e.points[2])?e.points[0]:e.points[2],p=pointEqual(a,i.points[1])?i.points[3]:i.points[1],d=lineIntersection(f,s,a,p);return d&&pointDistance(d,s)<n?(t.setTripleAt(d[0],d[1],d[0],d[1],d[0],d[1],t.length()),d):s}function getIntersection(t,e){var i=t.intersections(e);return(i.length&&floatEqual(i[0][0],1)&&i.shift(),i.length)?i[0]:null}function pruneSegmentIntersection(t,e){var i=t.slice(),r=e.slice(),n=getIntersection(t[t.length-1],e[0]);return(n&&(i[t.length-1]=t[t.length-1].split(n[0])[0],r[0]=e[0].split(n[1])[1]),t.length>1&&e.length>1&&(n=getIntersection(t[0],e[e.length-1])))?[[t[0].split(n[0])[0]],[e[e.length-1].split(n[1])[1]]]:[i,r]}function pruneIntersections(t){for(var e,i=1;i<t.length;i+=1)e=pruneSegmentIntersection(t[i-1],t[i]),t[i-1]=e[0],t[i]=e[1];return t.length>1&&(e=pruneSegmentIntersection(t[t.length-1],t[0]),t[t.length-1]=e[0],t[0]=e[1]),t}function offsetSegmentSplit(t,e){var i,r,n,s,a=t.inflectionPoints();if(0===a.length)return[offsetSegment(t,e)];if(1===a.length||floatEqual(a[1],1))return i=(n=t.split(a[0]))[0],r=n[1],[offsetSegment(i,e),offsetSegment(r,e)];i=(n=t.split(a[0]))[0];var o=(a[1]-a[0])/(1-a[0]);return s=(n=n[1].split(o))[0],r=n[1],[offsetSegment(i,e),offsetSegment(s,e),offsetSegment(r,e)]}function OffsetPathModifier(){}function getFontProperties(t){for(var e=t.fStyle?t.fStyle.split(" "):[],i="normal",r="normal",n=e.length,s=0;s<n;s+=1)switch(e[s].toLowerCase()){case"italic":r="italic";break;case"bold":i="700";break;case"black":i="900";break;case"medium":i="500";break;case"regular":case"normal":i="400";break;case"light":case"thin":i="200"}return{style:r,weight:t.fWeight||i}}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(t,e.c,0,null,this),this.o=PropertyFactory.getProp(t,e.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(t,e.tr,this),this.so=PropertyFactory.getProp(t,e.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(t,e.tr.eo,0,.01,this),this.data=e,this.dynamicProperties.length||this.getValue(!0),this._isAnimated=!!this.dynamicProperties.length,this.pMatrix=new Matrix,this.rMatrix=new Matrix,this.sMatrix=new Matrix,this.tMatrix=new Matrix,this.matrix=new Matrix},RepeaterModifier.prototype.applyTransforms=function(t,e,i,r,n,s){var a=s?-1:1,o=r.s.v[0]+(1-r.s.v[0])*(1-n),l=r.s.v[1]+(1-r.s.v[1])*(1-n);t.translate(r.p.v[0]*a*n,r.p.v[1]*a*n,r.p.v[2]),e.translate(-r.a.v[0],-r.a.v[1],r.a.v[2]),e.rotate(-r.r.v*a*n),e.translate(r.a.v[0],r.a.v[1],r.a.v[2]),i.translate(-r.a.v[0],-r.a.v[1],r.a.v[2]),i.scale(s?1/o:o,s?1/l:l),i.translate(r.a.v[0],r.a.v[1],r.a.v[2])},RepeaterModifier.prototype.init=function(t,e,i,r){for(this.elem=t,this.arr=e,this.pos=i,this.elemsData=r,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e[i]);i>0;)i-=1,this._elements.unshift(e[i]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(t){var e,i=t.length;for(e=0;e<i;e+=1)t[e]._processed=!1,"gr"===t[e].ty&&this.resetElements(t[e].it)},RepeaterModifier.prototype.cloneElements=function(t){var e=JSON.parse(JSON.stringify(t));return this.resetElements(e),e},RepeaterModifier.prototype.changeGroupRender=function(t,e){var i,r=t.length;for(i=0;i<r;i+=1)t[i]._render=e,"gr"===t[i].ty&&this.changeGroupRender(t[i].it,e)},RepeaterModifier.prototype.processShapes=function(t){var e=!1;if(this._mdf||t){var i,r,n,s,a,o,l,h,u=Math.ceil(this.c.v);if(this._groups.length<u){for(;this._groups.length<u;){var c={it:this.cloneElements(this._elements),ty:"gr"};c.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,c),this._groups.splice(0,0,c),this._currentCopies+=1}this.elem.reloadShapes(),e=!0}for(n=0,a=0;n<=this._groups.length-1;n+=1){if(o=a<u,this._groups[n]._render=o,this.changeGroupRender(this._groups[n].it,o),!o){var f=this.elemsData[n].it,p=f[f.length-1];0!==p.transform.op.v?(p.transform.op._mdf=!0,p.transform.op.v=0):p.transform.op._mdf=!1}a+=1}this._currentCopies=u;var d=this.o.v,m=d%1,g=d>0?Math.floor(d):Math.ceil(d),v=this.pMatrix.props,y=this.rMatrix.props,b=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var x=0;if(d>0){for(;x<g;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),x+=1;m&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,m,!1),x+=m)}else if(d<0){for(;x>g;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),x-=1;m&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-m,!0),x-=m)}for(n=1===this.data.m?0:this._currentCopies-1,s=1===this.data.m?1:-1,a=this._currentCopies;a;){if(h=(r=(i=this.elemsData[n].it)[i.length-1].transform.mProps.v.props).length,i[i.length-1].transform.mProps._mdf=!0,i[i.length-1].transform.op._mdf=!0,i[i.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(n/(this._currentCopies-1)),0!==x){for((0!==n&&1===s||n!==this._currentCopies-1&&-1===s)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(y[0],y[1],y[2],y[3],y[4],y[5],y[6],y[7],y[8],y[9],y[10],y[11],y[12],y[13],y[14],y[15]),this.matrix.transform(b[0],b[1],b[2],b[3],b[4],b[5],b[6],b[7],b[8],b[9],b[10],b[11],b[12],b[13],b[14],b[15]),this.matrix.transform(v[0],v[1],v[2],v[3],v[4],v[5],v[6],v[7],v[8],v[9],v[10],v[11],v[12],v[13],v[14],v[15]),l=0;l<h;l+=1)r[l]=this.matrix.props[l];this.matrix.reset()}else for(this.matrix.reset(),l=0;l<h;l+=1)r[l]=this.matrix.props[l];x+=1,a-=1,n+=s}}else for(a=this._currentCopies,n=0,s=1;a;)r=(i=this.elemsData[n].it)[i.length-1].transform.mProps.v.props,i[i.length-1].transform.mProps._mdf=!1,i[i.length-1].transform.op._mdf=!1,a-=1,n+=s;return e},RepeaterModifier.prototype.addShape=function(){},extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(t,e.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(t,e){var i,r,n,s,a,o,l,h,u,c,f,p,d,m=shapePool.newElement();m.c=t.c;var g=t._length,v=0;for(i=0;i<g;i+=1)r=t.v[i],s=t.o[i],n=t.i[i],r[0]===s[0]&&r[1]===s[1]&&r[0]===n[0]&&r[1]===n[1]?0!==i&&i!==g-1||t.c?(a=0===i?t.v[g-1]:t.v[i-1],l=(o=Math.sqrt(Math.pow(r[0]-a[0],2)+Math.pow(r[1]-a[1],2)))?Math.min(o/2,e)/o:0,h=p=r[0]+(a[0]-r[0])*l,u=d=r[1]-(r[1]-a[1])*l,c=h-(h-r[0])*roundCorner,f=u-(u-r[1])*roundCorner,m.setTripleAt(h,u,c,f,p,d,v),v+=1,a=i===g-1?t.v[0]:t.v[i+1],l=(o=Math.sqrt(Math.pow(r[0]-a[0],2)+Math.pow(r[1]-a[1],2)))?Math.min(o/2,e)/o:0,h=c=r[0]+(a[0]-r[0])*l,u=f=r[1]+(a[1]-r[1])*l,p=h-(h-r[0])*roundCorner,d=u-(u-r[1])*roundCorner,m.setTripleAt(h,u,c,f,p,d,v)):m.setTripleAt(r[0],r[1],s[0],s[1],n[0],n[1],v):m.setTripleAt(t.v[i][0],t.v[i][1],t.o[i][0],t.o[i][1],t.i[i][0],t.i[i][1],v),v+=1;return m},RoundCornersModifier.prototype.processShapes=function(t){var e,i,r,n,s,a,o=this.shapes.length,l=this.rd.v;if(0!==l)for(i=0;i<o;i+=1){if(a=(s=this.shapes[i]).localShapeCollection,!(!s.shape._mdf&&!this._mdf&&!t))for(a.releaseShapes(),s.shape._mdf=!0,e=s.shape.paths.shapes,n=s.shape.paths._length,r=0;r<n;r+=1)a.addShape(this.processPath(e[r],l));s.shape.paths=s.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},PolynomialBezier.prototype.point=function(t){return[((this.a[0]*t+this.b[0])*t+this.c[0])*t+this.d[0],((this.a[1]*t+this.b[1])*t+this.c[1])*t+this.d[1]]},PolynomialBezier.prototype.derivative=function(t){return[(3*t*this.a[0]+2*this.b[0])*t+this.c[0],(3*t*this.a[1]+2*this.b[1])*t+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(t){var e=this.derivative(t);return Math.atan2(e[1],e[0])},PolynomialBezier.prototype.normalAngle=function(t){var e=this.derivative(t);return Math.atan2(e[0],e[1])},PolynomialBezier.prototype.inflectionPoints=function(){var t=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(t))return[];var e=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/t,i=e*e-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/t;if(i<0)return[];var r=Math.sqrt(i);return floatZero(r)?r>0&&r<1?[e]:[]:[e-r,e+r].filter(function(t){return t>0&&t<1})},PolynomialBezier.prototype.split=function(t){if(t<=0)return[singlePoint(this.points[0]),this];if(t>=1)return[this,singlePoint(this.points[this.points.length-1])];var e=lerpPoint(this.points[0],this.points[1],t),i=lerpPoint(this.points[1],this.points[2],t),r=lerpPoint(this.points[2],this.points[3],t),n=lerpPoint(e,i,t),s=lerpPoint(i,r,t),a=lerpPoint(n,s,t);return[new PolynomialBezier(this.points[0],e,n,a,!0),new PolynomialBezier(a,s,r,this.points[3],!0)]},PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var t=this.bounds();return{left:t.x.min,right:t.x.max,top:t.y.min,bottom:t.y.max,width:t.x.max-t.x.min,height:t.y.max-t.y.min,cx:(t.x.max+t.x.min)/2,cy:(t.y.max+t.y.min)/2}},PolynomialBezier.prototype.intersections=function(t,e,i){void 0===e&&(e=2),void 0===i&&(i=7);var r=[];return intersectsImpl(intersectData(this,0,1),intersectData(t,0,1),0,e,r,i),r},PolynomialBezier.shapeSegment=function(t,e){var i=(e+1)%t.length();return new PolynomialBezier(t.v[e],t.o[e],t.i[i],t.v[i],!0)},PolynomialBezier.shapeSegmentInverted=function(t,e){var i=(e+1)%t.length();return new PolynomialBezier(t.v[i],t.i[i],t.o[e],t.v[e],!0)},extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(t,e.s,0,null,this),this.frequency=PropertyFactory.getProp(t,e.r,0,null,this),this.pointsType=PropertyFactory.getProp(t,e.pt,0,null,this),this._isAnimated=0!==this.amplitude.effectsSequence.length||0!==this.frequency.effectsSequence.length||0!==this.pointsType.effectsSequence.length},ZigZagModifier.prototype.processPath=function(t,e,i,r){var n=t._length,s=shapePool.newElement();if(s.c=t.c,t.c||(n-=1),0===n)return s;var a=-1,o=PolynomialBezier.shapeSegment(t,0);zigZagCorner(s,t,0,e,i,r,a);for(var l=0;l<n;l+=1)a=zigZagSegment(s,o,e,i,r,-a),o=l!==n-1||t.c?PolynomialBezier.shapeSegment(t,(l+1)%n):null,zigZagCorner(s,t,l+1,e,i,r,a);return s},ZigZagModifier.prototype.processShapes=function(t){var e,i,r,n,s,a,o=this.shapes.length,l=this.amplitude.v,h=Math.max(0,Math.round(this.frequency.v)),u=this.pointsType.v;if(0!==l)for(i=0;i<o;i+=1){if(a=(s=this.shapes[i]).localShapeCollection,!(!s.shape._mdf&&!this._mdf&&!t))for(a.releaseShapes(),s.shape._mdf=!0,e=s.shape.paths.shapes,n=s.shape.paths._length,r=0;r<n;r+=1)a.addShape(this.processPath(e[r],l,h,u));s.shape.paths=s.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)},extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,e.a,0,null,this),this.miterLimit=PropertyFactory.getProp(t,e.ml,0,null,this),this.lineJoin=e.lj,this._isAnimated=0!==this.amount.effectsSequence.length},OffsetPathModifier.prototype.processPath=function(t,e,i,r){var n,s,a,o=shapePool.newElement();o.c=t.c;var l=t.length();t.c||(l-=1);var h=[];for(n=0;n<l;n+=1)a=PolynomialBezier.shapeSegment(t,n),h.push(offsetSegmentSplit(a,e));if(!t.c)for(n=l-1;n>=0;n-=1)a=PolynomialBezier.shapeSegmentInverted(t,n),h.push(offsetSegmentSplit(a,e));h=pruneIntersections(h);var u=null,c=null;for(n=0;n<h.length;n+=1){var f=h[n];for(c&&(u=joinLines(o,c,f[0],i,r)),c=f[f.length-1],s=0;s<f.length;s+=1)a=f[s],u&&pointEqual(a.points[0],u)?o.setXYAt(a.points[1][0],a.points[1][1],"o",o.length()-1):o.setTripleAt(a.points[0][0],a.points[0][1],a.points[1][0],a.points[1][1],a.points[0][0],a.points[0][1],o.length()),o.setTripleAt(a.points[3][0],a.points[3][1],a.points[3][0],a.points[3][1],a.points[2][0],a.points[2][1],o.length()),u=a.points[3]}return h.length&&joinLines(o,c,h[0][0],i,r),o},OffsetPathModifier.prototype.processShapes=function(t){var e,i,r,n,s,a,o=this.shapes.length,l=this.amount.v,h=this.miterLimit.v,u=this.lineJoin;if(0!==l)for(i=0;i<o;i+=1){if(a=(s=this.shapes[i]).localShapeCollection,!(!s.shape._mdf&&!this._mdf&&!t))for(a.releaseShapes(),s.shape._mdf=!0,e=s.shape.paths.shapes,n=s.shape.paths._length,r=0;r<n;r+=1)a.addShape(this.processPath(e[r],l,u,h));s.shape.paths=s.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var FontManager=function(){var t=5e3,e={w:0,size:0,shapes:[],data:{shapes:[]}},i=[];i=i.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var r=127988,n=917631,s=917601,a=917626,o=65039,l=8205,h=127462,u=127487,c=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function f(t){var e,i=t.split(","),r=i.length,n=[];for(e=0;e<r;e+=1)"sans-serif"!==i[e]&&"monospace"!==i[e]&&n.push(i[e]);return n.join(",")}function p(t,e){var i=createTag("span");i.setAttribute("aria-hidden",!0),i.style.fontFamily=e;var r=createTag("span");r.innerText="giItT1WQy@!-/#",i.style.position="absolute",i.style.left="-10000px",i.style.top="-10000px",i.style.fontSize="300
1px",i.style.fontVariant="normal",i.style.fontStyle="normal",i.style.fontWeight="normal",i.style.letterSpacing="0",i.appendChild(r),document.body.appendChild(i);var n=r.offsetWidth;return r.style.fontFamily=f(t)+", "+e,{node:r,w:n,parent:i}}function d(){var e,i,r,n=this.fonts.length,s=n;for(e=0;e<n;e+=1)this.fonts[e].loaded?s-=1:"n"===this.fonts[e].fOrigin||0===this.fonts[e].origin?this.fonts[e].loaded=!0:(i=this.fonts[e].monoCase.node,r=this.fonts[e].monoCase.w,i.offsetWidth!==r?(s-=1,this.fonts[e].loaded=!0):(i=this.fonts[e].sansCase.node,r=this.fonts[e].sansCase.w,i.offsetWidth!==r&&(s-=1,this.fonts[e].loaded=!0)),this.fonts[e].loaded&&(this.fonts[e].sansCase.parent.parentNode.removeChild(this.fonts[e].sansCase.parent),this.fonts[e].monoCase.parent.parentNode.removeChild(this.fonts[e].monoCase.parent)));0!==s&&Date.now()-this.initTime<t?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function m(t,e){var i,r=document.body&&e?"svg":"canvas",n=getFontProperties(t);if("svg"===r){var s=createNS("text");s.style.fontSize="100px",s.setAttribute("font-family",t.fFamily),s.setAttribute("font-style",n.style),s.setAttribute("font-weight",n.weight),s.textContent="1",t.fClass?(s.style.fontFamily="inherit",s.setAttribute("class",t.fClass)):s.style.fontFamily=t.fFamily,e.appendChild(s),i=s}else{var a=new OffscreenCanvas(500,500).getContext("2d");a.font=n.style+" "+n.weight+" 100px "+t.fFamily,i=a}return{measureText:function(t){return"svg"===r?(i.textContent=t,i.getComputedTextLength()):i.measureText(t).width}}}function g(t,e){if(!t){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=t.list;return}if(!document.body){this.isLoaded=!0,t.list.forEach(function(t){t.helper=m(t),t.cache={}}),this.fonts=t.list;return}var i=t.list,r=i.length,n=r;for(s=0;s<r;s+=1){var s,a,o,l=!0;if(i[s].loaded=!1,i[s].monoCase=p(i[s].fFamily,"monospace"),i[s].sansCase=p(i[s].fFamily,"sans-serif"),i[s].fPath){if("p"===i[s].fOrigin||3===i[s].origin){if((a=document.querySelectorAll('style[f-forigin="p"][f-family="'+i[s].fFamily+'"], style[f-origin="3"][f-family="'+i[s].fFamily+'"]')).length>0&&(l=!1),l){var h=createTag("style");h.setAttribute("f-forigin",i[s].fOrigin),h.setAttribute("f-origin",i[s].origin),h.setAttribute("f-family",i[s].fFamily),h.type="text/css",h.innerText="@font-face {font-family: "+i[s].fFamily+"; font-style: normal; src: url('"+i[s].fPath+"');}",e.appendChild(h)}}else if("g"===i[s].fOrigin||1===i[s].origin){for(o=0,a=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]');o<a.length;o+=1)-1!==a[o].href.indexOf(i[s].fPath)&&(l=!1);if(l){var u=createTag("link");u.setAttribute("f-forigin",i[s].fOrigin),u.setAttribute("f-origin",i[s].origin),u.type="text/css",u.rel="stylesheet",u.href=i[s].fPath,document.body.appendChild(u)}}else if("t"===i[s].fOrigin||2===i[s].origin){for(o=0,a=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]');o<a.length;o+=1)i[s].fPath===a[o].src&&(l=!1);if(l){var c=createTag("link");c.setAttribute("f-forigin",i[s].fOrigin),c.setAttribute("f-origin",i[s].origin),c.setAttribute("rel","stylesheet"),c.setAttribute("href",i[s].fPath),e.appendChild(c)}}}else i[s].loaded=!0,n-=1;i[s].helper=m(i[s],e),i[s].cache={},this.fonts.push(i[s])}0===n?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function v(t){if(t){this.chars||(this.chars=[]);var e,i,r,n=t.length,s=this.chars.length;for(e=0;e<n;e+=1){for(i=0,r=!1;i<s;)this.chars[i].style===t[e].style&&this.chars[i].fFamily===t[e].fFamily&&this.chars[i].ch===t[e].ch&&(r=!0),i+=1;r||(this.chars.push(t[e]),s+=1)}}}function y(t,i,r){for(var n=0,s=this.chars.length;n<s;){if(this.chars[n].ch===t&&this.chars[n].style===i&&this.chars[n].fFamily===r)return this.chars[n];n+=1}return("string"==typeof t&&13!==t.charCodeAt(0)||!t)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",t,i,r)),e}function b(t,e,i){var r=this.getFontByName(e),n=t;if(!r.cache[n]){var s=r.helper;if(" "===t){var a=s.measureText("|"+t+"|"),o=s.measureText("||");r.cache[n]=(a-o)/100}else r.cache[n]=s.measureText(t)/100}return r.cache[n]*i}function x(t){for(var e=0,i=this.fonts.length;e<i;){if(this.fonts[e].fName===t)return this.fonts[e];e+=1}return this.fonts[0]}function _(t){var e=0,i=t.charCodeAt(0);if(i>=55296&&i<=56319){var r=t.charCodeAt(1);r>=56320&&r<=57343&&(e=(i-55296)*1024+r-56320+65536)}return e}function w(t,e){var i=t.toString(16)+e.toString(16);return -1!==c.indexOf(i)}function k(t){return t===l}function E(t){return t===o}function S(t){var e=_(t);return e>=h&&e<=u}function P(t){return S(t.substr(0,2))&&S(t.substr(2,2))}function M(t){return -1!==i.indexOf(t)}function C(t,e){var i=_(t.substr(e,2));if(i!==r)return!1;var o=0;for(e+=2;o<5;){if((i=_(t.substr(e,2)))<s||i>a)return!1;o+=1,e+=2}return _(t.substr(e,2))===n}function A(){this.isLoaded=!0}var T=function(){this.fonts=[],this.chars=null,this.typekitLoaded=0,this.isLoaded=!1,this._warned=!1,this.initTime=Date.now(),this.setIsLoadedBinded=this.setIsLoaded.bind(this),this.checkLoadedFontsBinded=this.checkLoadedFonts.bind(this)};T.isModifier=w,T.isZeroWidthJoiner=k,T.isFlagEmoji=P,T.isRegionalCode=S,T.isCombinedCharacter=M,T.isRegionalFlag=C,T.isVariationSelector=E,T.BLACK_FLAG_CODE_POINT=r;var D={addChars:v,addFonts:g,getCharData:y,getFontByName:x,measureText:b,checkLoadedFonts:d,setIsLoaded:A};return T.prototype=D,T}();function SlotManager(t){this.animationData=t}function slotFactory(t){return new SlotManager(t)}
vendor: 20,030 bytes, line 1
1function RenderableElement(){}SlotManager.prototype.getProp=function(t){return this.animationData.slots&&this.animationData.slots[t.sid]?Object.assign(t,this.animationData.slots[t.sid].p):t},RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(t){-1===this.renderableComponents.indexOf(t)&&this.renderableComponents.push(t)},removeRenderableComponent:function(t){-1!==this.renderableComponents.indexOf(t)&&this.renderableComponents.splice(this.renderableComponents.indexOf(t),1)},prepareRenderableFrame:function(t){this.checkLayerLimits(t)},checkTransparency:function(){this.finalTransform.mProp.o.v<=0?!this.isTransparent&&this.globalData.renderConfig.hideOnTransparent&&(this.isTransparent=!0,this.hide()):this.isTransparent&&(this.isTransparent=!1,this.show())},checkLayerLimits:function(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var t,e=this.renderableComponents.length;for(t=0;t<e;t+=1)this.renderableComponents[t].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var getBlendMode=function(){var t={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(e){return t[e]||""}}();function SliderEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function AngleEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function ColorEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,1,0,i)}function PointEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,1,0,i)}function LayerIndexEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function MaskIndexEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function CheckboxEffect(t,e,i){this.p=PropertyFactory.getProp(e,t.v,0,0,i)}function NoValueEffect(){this.p={}}function EffectsManager(t,e){var i,r,n=t.ef||[];this.effectElements=[];var s=n.length;for(i=0;i<s;i+=1)r=new GroupEffect(n[i],e),this.effectElements.push(r)}function GroupEffect(t,e){this.init(t,e)}function BaseElement(){}function FrameElement(){}function FootageElement(t,e,i){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.footageData=e.imageLoader.getAsset(this.assetData),this.initBaseData(t,e,i)}function AudioElement(t,e,i){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.initBaseData(t,e,i),this._isPlaying=!1,this._canPlay=!1;var r=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(r),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,t.au&&t.au.lv?t.au.lv:{k:[100]},1,.01,this)}function BaseRenderer(){}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(t,e){this.data=t,this.effectElements=[],this.initDynamicPropertyContainer(e);var i,r,n=this.data.ef.length,s=this.data.ef;for(i=0;i<n;i+=1){switch(r=null,s[i].ty){case 0:r=new SliderEffect(s[i],e,this);break;case 1:r=new AngleEffect(s[i],e,this);break;case 2:r=new ColorEffect(s[i],e,this);break;case 3:r=new PointEffect(s[i],e,this);break;case 4:case 7:r=new CheckboxEffect(s[i],e,this);break;case 10:r=new LayerIndexEffect(s[i],e,this);break;case 11:r=new MaskIndexEffect(s[i],e,this);break;case 5:r=new EffectsManager(s[i],e,this);break;default:r=new NoValueEffect(s[i],e,this)}r&&this.effectElements.push(r)}},BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var t=0,e=this.data.masksProperties.length;t<e;){if("n"!==this.data.masksProperties[t].mode&&!1!==this.data.masksProperties[t].cl)return!0;t+=1}return!1},initExpressions:function(){var t=getExpressionInterfaces();if(t){var e=t("layer"),i=t("effects"),r=t("shape"),n=t("text"),s=t("comp");this.layerInterface=e(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var a=i.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(a),0===this.data.ty||this.data.xt?this.compInterface=s(this):4===this.data.ty?(this.layerInterface.shapeInterface=r(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=n(this),this.layerInterface.text=this.layerInterface.textInterface)}},setBlendMode:function(){var t=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=t},initBaseData:function(t,e,i){this.globalData=e,this.comp=i,this.data=t,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(t,e){var i,r=this.dynamicProperties.length;for(i=0;i<r;i+=1)(e||this._isParent&&"transform"===this.dynamicProperties[i].propType)&&(this.dynamicProperties[i].getValue(),this.dynamicProperties[i]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&this.dynamicProperties.push(t)}},FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){var t=getExpressionInterfaces();if(t){var e=t("footage");this.layerInterface=e(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData},AudioElement.prototype.prepareFrame=function(t){if(this.prepareRenderableFrame(t,!0),this.prepareProperties(t,!0),this.tm._placeholder)this._currentTime=t/this.data.sr;else{var e=this.tm.v;this._currentTime=e}this._volume=this.lv.v[0];var i=this._volume*this._volumeMultiplier;this._previousVolume!==i&&(this._previousVolume=i,this.audio.volume(i))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(t){this.audio.rate(t)},AudioElement.prototype.volume=function(t){this._volumeMultiplier=t,this._previousVolume=t*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){},BaseRenderer.prototype.checkLayers=function(t){var e,i,r=this.layers.length;for(this.completeLayers=!0,e=r-1;e>=0;e-=1)!this.elements[e]&&(i=this.layers[e]).ip-i.st<=t-this.layers[e].st&&i.op-i.st>t-this.layers[e].st&&this.buildItem(e),this.completeLayers=!!this.elements[e]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:default:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 6:return this.createAudio(t);case 13:return this.createCamera(t);case 15:return this.createFootage(t)}},BaseRenderer.prototype.createCamera=function(){throw Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(t){return new AudioElement(t,this.globalData,this)},BaseRenderer.prototype.createFootage=function(t){return new FootageElement(t,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.buildItem(t);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(t){this.completeLayers=!1;var e,i,r=t.length,n=this.layers.length;for(e=0;e<r;e+=1)for(i=0;i<n;){if(this.layers[i].id===t[e].id){this.layers[i]=t[e];break}i+=1}},BaseRenderer.prototype.setProjectInterface=function(t){this.globalData.projectInterface=t},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(t,e,i){for(var r=this.elements,n=this.layers,s=0,a=n.length;s<a;)n[s].ind==e&&(r[s]&&!0!==r[s]?(i.push(r[s]),r[s].setAsParent(),void 0!==n[s].parent?this.buildElementParenting(t,n[s].parent,i):t.setHierarchy(i)):(this.buildItem(s),this.addPendingElement(t))),s+=1},BaseRenderer.prototype.addPendingElement=function(t){this.pendingElements.push(t)},BaseRenderer.prototype.searchExtraCompositions=function(t){var e,i=t.length;for(e=0;e<i;e+=1)if(t[e].xt){var r=this.createComp(t[e]);r.initExpressions(),this.globalData.projectInterface.registerComposition(r)}},BaseRenderer.prototype.getElementById=function(t){var e,i=this.elements.length;for(e=0;e<i;e+=1)if(this.elements[e].data.ind===t)return this.elements[e];return null},BaseRenderer.prototype.getElementByPath=function(t){var e=t.shift();if("number"==typeof e)i=this.elements[e];else{var i,r,n=this.elements.length;for(r=0;r<n;r+=1)if(this.elements[r].data.nm===e){i=this.elements[r];break}}return 0===t.length?i:i.getElementByPath(t)},BaseRenderer.prototype.setupGlobalData=function(t,e){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(t),this.globalData.fontManager.addChars(t.chars),this.globalData.fontManager.addFonts(t.fonts,e),this.globalData.getAssetData=this.animationItem.getAssetData.bind(this.animationItem),this.globalData.getAssetsPath=this.animationItem.getAssetsPath.bind(this.animationItem),this.globalData.imageLoader=this.animationItem.imagePreloader,this.globalData.audioController=this.animationItem.audioController,this.globalData.frameId=0,this.globalData.frameRate=t.fr,this.globalData.nm=t.nm,this.globalData.compSize={w:t.w,h:t.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}function MaskElement(t,e,i){this.data=t,this.element=e,this.globalData=i,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var r=this.globalData.defs,n=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(n),this.solidPath="";var s=this.masksProperties,a=0,o=[],l=createElementID(),h="clipPath",u="clip-path";for(c=0;c<n;c+=1)if(("a"!==s[c].mode&&"n"!==s[c].mode||s[c].inv||100!==s[c].o.k||s[c].o.x)&&(h="mask",u="mask"),("s"===s[c].mode||"i"===s[c].mode)&&0===a?((m=createNS("rect")).setAttribute("fill","#ffffff"),m.setAttribute("width",this.element.comp.data.w||0),m.setAttribute("height",this.element.comp.data.h||0),o.push(m)):m=null,f=createNS("path"),"n"===s[c].mode)this.viewData[c]={op:PropertyFactory.getProp(this.element,s[c].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,s[c],3),elem:f,lastPath:""},r.appendChild(f);else{if(a+=1,f.setAttribute("fill","s"===s[c].mode?"#000000":"#ffffff"),f.setAttribute("clip-rule","nonzero"),0!==s[c].x.k?(h="mask",u="mask",y=PropertyFactory.getProp(this.element,s[c].x,0,null,this.element),b=createElementID(),(g=createNS("filter")).setAttribute("id",b),(v=createNS("feMorphology")).setAttribute("operator","erode"),v.setAttribute("in","SourceGraphic"),v.setAttribute("radius","0"),g.appendChild(v),r.appendChild(g),f.setAttribute("stroke","s"===s[c].mode?"#000000":"#ffffff")):(v=null,y=null),this.storedData[c]={elem:f,x:y,expan:v,lastPath:"",lastOperator:"",filterId:b,lastRadius:0},"i"===s[c].mode){d=o.length;var c,f,p,d,m,g,v,y,b,x=createNS("g");for(p=0;p<d;p+=1)x.appendChild(o[p]);var _=createNS("mask");_.setAttribute("mask-type","alpha"),_.setAttribute("id",l+"_"+a),_.appendChild(f),r.appendChild(_),x.setAttribute("mask","url("+getLocationHref()+"#"+l+"_"+a+")"),o.length=0,o.push(x)}else o.push(f);s[c].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[c]={elem:f,lastPath:"",op:PropertyFactory.getProp(this.element,s[c].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,s[c],3),invRect:m},this.viewData[c].prop.k||this.drawPath(s[c],this.viewData[c].prop.v,this.viewData[c])}for(c=0,this.maskElement=createNS(h),n=o.length;c<n;c+=1)this.maskElement.appendChild(o[c]);a>0&&(this.maskElement.setAttribute("id",l),this.element.maskedElement.setAttribute(u,"url("+getLocationHref()+"#"+l+")"),r.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}TransformElement.prototype={initTransform:function(){var t=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:t,localMat:t,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var t,e=this.finalTransform.mat,i=0,r=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;i<r;){if(this.hierarchy[i].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}i+=1}if(this.finalTransform._matMdf)for(t=this.finalTransform.mProp.v.props,e.cloneFromProps(t),i=0;i<r;i+=1)e.multiply(this.hierarchy[i].finalTransform.mProp.v)}this.finalTransform._matMdf&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var t=0,e=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;t<e;)this.localTransforms[t]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[t]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),t+=1;if(this.finalTransform._localMatMdf){var i=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(i),t=1;t<e;t+=1){var r=this.localTransforms[t].matrix;i.multiply(r)}i.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var n=this.finalTransform.localOpacity;for(t=0;t<e;t+=1)n*=.01*this.localTransforms[t].opacity;this.finalTransform.localOpacity=n}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var t=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(t.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var e=0,i=t.length;for(e=0;e<i;e+=1)this.localTransforms.push(t[e])}}},globalToLocal:function(t){var e,i,r=[];r.push(this.finalTransform);for(var n=!0,s=this.comp;n;)s.finalTransform?(s.data.hasMask&&r.splice(0,0,s.finalTransform),s=s.comp):n=!1;var a=r.length;for(e=0;e<a;e+=1)i=r[e].mat.applyToPointArray(0,0,0),t=[t[0]-i[0],t[1]-i[1],0];return t},mHelper:new Matrix},MaskElement.prototype.getMaskProperty=function(t){return this.viewData[t].prop},MaskElement.prototype.renderFrame=function(t){var e,i=this.element.finalTransform.mat,r=this.masksProperties.length;for(e=0;e<r;e+=1)if((this.viewData[e].prop._mdf||t)&&this.drawPath(this.masksProperties[e],this.viewData[e].prop.v,this.viewData[e]),(this.viewData[e].op._mdf||t)&&this.viewData[e].elem.setAttribute("fill-opacity",this.viewData[e].op.v),"n"!==this.masksProperties[e].mode&&(this.viewData[e].invRect&&(this.element.finalTransform.mProp._mdf||t)&&this.viewData[e].invRect.setAttribute("transform",i.getInverseMatrix().to2dCSS()),this.storedData[e].x&&(this.storedData[e].x._mdf||t))){var n=this.storedData[e].expan;this.storedData[e].x.v<0?("erode"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="erode",this.storedData[e].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[e].filterId+")")),n.setAttribute("radius",-this.storedData[e].x.v)):("dilate"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="dilate",this.storedData[e].elem.setAttribute("filter",null)),this.storedData[e].elem.setAttribute("stroke-width",2*this.storedData[e].x.v))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){return"M0,0 "+(" h"+this.globalData.compSize.w+" v"+this.globalData.compSize.h+" h-"+this.globalData.compSize.w+" v-"+this.globalData.compSize.h)+" "},MaskElement.prototype.drawPath=function(t,e,i){var r,n,s=" M"+e.v[0][0]+","+e.v[0][1];for(r=1,n=e._length;r<n;r+=1)s+=" C"+e.o[r-1][0]+","+e.o[r-1][1]+" "+e.i[r][0]+","+e.i[r][1]+" "+e.v[r][0]+","+e.v[r][1];if(e.c&&n>1&&(s+=" C"+e.o[r-1][0]+","+e.o[r-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),i.lastPath!==s){var a="";i.elem&&(e.c&&(a=t.inv?this.solidPath+s:s),i.elem.setAttribute("d",a)),i.lastPath=s}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var t={};function e(t,e){var i=createNS("filter");return i.setAttribute("id",t),!0!==e&&(i.setAttribute("filterUnits","objectBoundingBox"),i.setAttribute("x","0%"),i.setAttribute("y","0%"),i.setAttribute("width","100%"),i.setAttribute("height","100%")),i}function i(){var t=createNS("feColorMatrix");return t.setAttribute("type","matrix"),t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("values","0 0 0 1 0  0 0 0 1 0  0 0 0 1 0  0 0 0 1 1"),t}return t.createFilter=e,t.createAlphaToLuminanceFilter=i,t}(),featureSupport=function(){var t={maskType:!0,svgLumaHidden:!0,offscreenCanvas:"undefined"!=typeof OffscreenCanvas};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(t.maskType=!1),/firefox/i.test(navigator.userAgent)&&(t.svgLumaHidden=!1),t}(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(t){var e,i,r="SourceGraphic",n=t.data.ef?t.data.ef.length:0,s=createElementID(),a=filtersFactory.createFilter(s,!0),o=0;for(e=0,this.filters=[];e<n;e+=1){i=null;var l=t.data.ef[e].ty;registeredEffects$1[l]&&(i=new registeredEffects$1[l].effect(a,t.effectsManager.effectElements[e],t,idPrefix+o,r),r=idPrefix+o,registeredEffects$1[l].countsAsEffect&&(o+=1)),i&&this.filters.push(i)}o&&(t.globalData.defs.appendChild(a),t.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+s+")")),this.filters.length&&t.addRenderableComponent(this)}function registerEffect$1(t,e,i){registeredEffects$1[t]={effect:e,countsAsEffect:i}}function SVGBaseElement(){}function HierarchyElement(){}
vendor: 4,900 bytes, line 1
1function RenderableDOMElement(){}function IImageElement(t,e,i){this.assetData=e.getAssetData(t.refId),this.assetData&&this.assetData.sid&&(this.assetData=e.slotManager.getProp(this.assetData)),this.initElement(t,e,i),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ProcessedElement(t,e){this.elem=t,this.pos=e}function IShapeElement(){}SVGEffects.prototype.renderFrame=function(t){var e,i=this.filters.length;for(e=0;e<i;e+=1)this.filters[e].renderFrame(t)},SVGEffects.prototype.getEffects=function(t){var e,i=this.filters.length,r=[];for(e=0;e<i;e+=1)this.filters[e].type===t&&r.push(this.filters[e]);return r},SVGBaseElement.prototype={initRendererElement:function(){this.layerElement=createNS("g")},createContainerElements:function(){this.matteElement=createNS("g"),this.transformedElement=this.layerElement,this.maskedElement=this.layerElement,this._sizeChanged=!1;var t=null;if(this.data.td){this.matteMasks={};var e=createNS("g");e.setAttribute("id",this.layerId),e.appendChild(this.layerElement),t=e,this.globalData.defs.appendChild(e)}else this.data.tt?(this.matteElement.appendChild(this.layerElement),t=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0===this.data.ty&&!this.data.hd){var i=createNS("clipPath"),r=createNS("path");r.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var n=createElementID();if(i.setAttribute("id",n),i.appendChild(r),this.globalData.defs.appendChild(i),this.checkMasks()){var s=createNS("g");s.setAttribute("clip-path","url("+getLocationHref()+"#"+n+")"),s.appendChild(this.layerElement),this.transformedElement=s,t?t.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+n+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(t){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[t]){var e,i,r,n,s=this.layerId+"_"+t;if(1===t||3===t){var a=createNS("mask");a.setAttribute("id",s),a.setAttribute("mask-type",3===t?"luminance":"alpha"),(r=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),a.appendChild(r),this.globalData.defs.appendChild(a),featureSupport.maskType||1!==t||(a.setAttribute("mask-type","luminance"),e=createElementID(),i=filtersFactory.createFilter(e),this.globalData.defs.appendChild(i),i.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(n=createNS("g")).appendChild(r),a.appendChild(n),n.setAttribute("filter","url("+getLocationHref()+"#"+e+")"))}else if(2===t){var o=createNS("mask");o.setAttribute("id",s),o.setAttribute("mask-type","alpha");var l=createNS("g");o.appendChild(l),e=createElementID(),i=filtersFactory.createFilter(e);var h=createNS("feComponentTransfer");h.setAttribute("in","SourceGraphic"),i.appendChild(h);var u=createNS("feFuncA");u.setAttribute("type","table"),u.setAttribute("tableValues","1.0 0.0"),h.appendChild(u),this.globalData.defs.appendChild(i);var c=createNS("rect");c.setAttribute("width",this.comp.data.w),c.setAttribute("height",this.comp.data.h),c.setAttribute("x","0"),c.setAttribute("y","0"),c.setAttribute("fill","#ffffff"),c.setAttribute("opacity","0"),l.setAttribute("filter","url("+getLocationHref()+"#"+e+")"),l.appendChild(c),(r=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),l.appendChild(r),featureSupport.maskType||(o.setAttribute("mask-type","luminance"),i.appendChild(filtersFactory.createAlphaToLuminanceFilter()),n=createNS("g"),l.appendChild(c),n.appendChild(this.layerElement),l.appendChild(n)),this.globalData.defs.appendChild(o)}this.matteMasks[t]=s}return this.matteMasks[t]},setMatte:function(t){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+t+")")}},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(t){this.hierarchy=t},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}}
vendor: 47,656 bytes, line 1
1,function(){extendPrototype([RenderableElement,createProxyFunction({initElement:function(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initTransform(t,e,i),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],RenderableDOMElement)}(),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData);this.innerElem=createNS("image"),this.innerElem.setAttribute("width",this.assetData.w+"px"),this.innerElem.setAttribute("height",this.assetData.h+"px"),this.innerElem.setAttribute("preserveAspectRatio",this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio),this.innerElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},IShapeElement.prototype={addShapeToModifiers:function(t){var e,i=this.shapeModifiers.length;for(e=0;e<i;e+=1)this.shapeModifiers[e].addShape(t)},isShapeInAnimatedModifiers:function(t){for(var e=0,i=this.shapeModifiers.length;e<i;)if(this.shapeModifiers[e].isAnimatedWithShape(t))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var t,e=this.shapes.length;for(t=0;t<e;t+=1)this.shapes[t].sh.reset();for(t=(e=this.shapeModifiers.length)-1;t>=0&&!this.shapeModifiers[t].processShapes(this._isFirstFrame);t-=1);}},searchProcessedElement:function(t){for(var e=this.processedElements,i=0,r=e.length;i<r;){if(e[i].elem===t)return e[i].pos;i+=1}return 0},addProcessedElement:function(t,e){for(var i=this.processedElements,r=i.length;r;)if(i[r-=1].elem===t){i[r].pos=e;return}i.push(new ProcessedElement(t,e))},prepareFrame:function(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(t,e,i){this.caches=[],this.styles=[],this.transformers=t,this.lStr="",this.sh=i,this.lvl=e,this._isAnimated=!!i.k;for(var r=0,n=t.length;r<n;){if(t[r].mProps.dynamicProperties.length){this._isAnimated=!0;break}r+=1}}function SVGStyleData(t,e){this.data=t,this.type=t.ty,this.d="",this.lvl=e,this._mdf=!1,this.closed=!0===t.hd,this.pElem=createNS("path"),this.msElem=null}function DashProperty(t,e,i,r){this.elem=t,this.frameId=-1,this.dataProps=createSizedArray(e.length),this.renderer=i,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",e.length?e.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(r);var n,s,a=e.length||0;for(n=0;n<a;n+=1)s=PropertyFactory.getProp(t,e[n].v,0,0,this),this.k=s.k||this.k,this.dataProps[n]={n:e[n].n,p:s};this.k||this.getValue(!0),this._isAnimated=this.k}function SVGStrokeStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},"svg",this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=i,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=i}function SVGNoStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.style=i}function GradientProperty(t,e,i){this.data=e,this.c=createTypedArray("uint8c",4*e.p);var r=e.k.k[0].s?e.k.k[0].s.length-4*e.p:e.k.k.length-4*e.p;this.o=createTypedArray("float32",r),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=r,this.initDynamicPropertyContainer(i),this.prop=PropertyFactory.getProp(t,e.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.initGradientData(t,e,i)}function SVGGradientStrokeStyleData(t,e,i){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},"svg",this),this.initGradientData(t,e,i),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(t,e,i){this.transform={mProps:t,op:e,container:i},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0},SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1},DashProperty.prototype.getValue=function(t){if((this.elem.globalData.frameId!==this.frameId||t)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||t,this._mdf)){var e=0,i=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),e=0;e<i;e+=1)"o"!==this.dataProps[e].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[e].p.v:this.dashArray[e]=this.dataProps[e].p.v:this.dashoffset[0]=this.dataProps[e].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),extendPrototype([DynamicPropertyContainer],SVGNoStyleData),GradientProperty.prototype.comparePoints=function(t,e){for(var i=0,r=this.o.length/2;i<r;){if(Math.abs(t[4*i]-t[4*e+2*i])>.01)return!1;i+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var t=0,e=this.data.k.k.length;t<e;){if(!this.comparePoints(this.data.k.k[t].s,this.data.p))return!1;t+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(t){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||t){var e,i,r,n=4*this.data.p;for(e=0;e<n;e+=1)i=e%4==0?100:255,r=Math.round(this.prop.v[e]*i),this.c[e]!==r&&(this.c[e]=r,this._cmdf=!t);if(this.o.length)for(n=this.prop.v.length,e=4*this.data.p;e<n;e+=1)i=e%2==0?100:1,r=e%2==0?Math.round(100*this.prop.v[e]):this.prop.v[e],this.o[e-4*this.data.p]!==r&&(this.o[e-4*this.data.p]=r,this._omdf=!t);this._mdf=!t}},extendPrototype([DynamicPropertyContainer],GradientProperty),SVGGradientFillStyleData.prototype.initGradientData=function(t,e,i){this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.s=PropertyFactory.getProp(t,e.s,1,null,this),this.e=PropertyFactory.getProp(t,e.e,1,null,this),this.h=PropertyFactory.getProp(t,e.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(t,e.a||{k:0},0,degToRads,this),this.g=new GradientProperty(t,e.g,this),this.style=i,this.stops=[],this.setGradientData(i.pElem,e),this.setGradientOpacity(e,i),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(t,e){var i,r,n,s=createElementID(),a=createNS(1===e.t?"linearGradient":"radialGradient");a.setAttribute("id",s),a.setAttribute("spreadMethod","pad"),a.setAttribute("gradientUnits","userSpaceOnUse");var o=[];for(r=0,n=4*e.g.p;r<n;r+=4)i=createNS("stop"),a.appendChild(i),o.push(i);t.setAttribute("gf"===e.ty?"fill":"stroke","url("+getLocationHref()+"#"+s+")"),this.gf=a,this.cst=o},SVGGradientFillStyleData.prototype.setGradientOpacity=function(t,e){if(this.g._hasOpacity&&!this.g._collapsable){var i,r,n,s=createNS("mask"),a=createNS("path");s.appendChild(a);var o=createElementID(),l=createElementID();s.setAttribute("id",l);var h=createNS(1===t.t?"linearGradient":"radialGradient");h.setAttribute("id",o),h.setAttribute("spreadMethod","pad"),h.setAttribute("gradientUnits","userSpaceOnUse"),n=t.g.k.k[0].s?t.g.k.k[0].s.length:t.g.k.k.length;var u=this.stops;for(r=4*t.g.p;r<n;r+=2)(i=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),h.appendChild(i),u.push(i);a.setAttribute("gf"===t.ty?"fill":"stroke","url("+getLocationHref()+"#"+o+")"),"gs"===t.ty&&(a.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]),a.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]),1===t.lj&&a.setAttribute("stroke-miterlimit",t.ml)),this.of=h,this.ms=s,this.ost=u,this.maskId=l,e.msElem=a}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(t,e,i,r){if(0===e)return"";var n,s=t.o,a=t.i,o=t.v,l=" M"+r.applyToPointStringified(o[0][0],o[0][1]);for(n=1;n<e;n+=1)l+=" C"+r.applyToPointStringified(s[n-1][0],s[n-1][1])+" "+r.applyToPointStringified(a[n][0],a[n][1])+" "+r.applyToPointStringified(o[n][0],o[n][1]);return i&&e&&(l+=" C"+r.applyToPointStringified(s[n-1][0],s[n-1][1])+" "+r.applyToPointStringified(a[0][0],a[0][1])+" "+r.applyToPointStringified(o[0][0],o[0][1])+"z"),l},SVGElementsRenderer=function(){var t=new Matrix,e=new Matrix;function i(t,e,i){(i||e.transform.op._mdf)&&e.transform.container.setAttribute("opacity",e.transform.op.v),(i||e.transform.mProps._mdf)&&e.transform.container.setAttribute("transform",e.transform.mProps.v.to2dCSS())}function r(){}function n(i,r,n){var s,a,o,l,h,u,c,f,p,d,m=r.styles.length,g=r.lvl;for(u=0;u<m;u+=1){if(l=r.sh._mdf||n,r.styles[u].lvl<g){for(f=e.reset(),p=g-r.styles[u].lvl,d=r.transformers.length-1;!l&&p>0;)l=r.transformers[d].mProps._mdf||l,p-=1,d-=1;if(l)for(p=g-r.styles[u].lvl,d=r.transformers.length-1;p>0;)f.multiply(r.transformers[d].mProps.v),p-=1,d-=1}else f=t;if(a=(c=r.sh.paths)._length,l){for(s=0,o="";s<a;s+=1)(h=c.shapes[s])&&h._length&&(o+=buildShapeString(h,h._length,h.c,f));r.caches[u]=o}else o=r.caches[u];r.styles[u].d+=!0===i.hd?"":o,r.styles[u]._mdf=l||r.styles[u]._mdf}}function s(t,e,i){var r=e.style;(e.c._mdf||i)&&r.pElem.setAttribute("fill","rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||i)&&r.pElem.setAttribute("fill-opacity",e.o.v)}function a(t,e,i){o(t,e,i),l(t,e,i)}function o(t,e,i){var r,n,s,a,o,l=e.gf,h=e.g._hasOpacity,u=e.s.v,c=e.e.v;if(e.o._mdf||i){var f="gf"===t.ty?"fill-opacity":"stroke-opacity";e.style.pElem.setAttribute(f,e.o.v)}if(e.s._mdf||i){var p=1===t.t?"x1":"cx",d="x1"===p?"y1":"cy";l.setAttribute(p,u[0]),l.setAttribute(d,u[1]),h&&!e.g._collapsable&&(e.of.setAttribute(p,u[0]),e.of.setAttribute(d,u[1]))}if(e.g._cmdf||i){r=e.cst;var m=e.g.c;for(n=0,s=r.length;n<s;n+=1)(a=r[n]).setAttribute("offset",m[4*n]+"%"),a.setAttribute("stop-color","rgb("+m[4*n+1]+","+m[4*n+2]+","+m[4*n+3]+")")}if(h&&(e.g._omdf||i)){var g=e.g.o;for(n=0,s=(r=e.g._collapsable?e.cst:e.ost).length;n<s;n+=1)a=r[n],e.g._collapsable||a.setAttribute("offset",g[2*n]+"%"),a.setAttribute("stop-opacity",g[2*n+1])}if(1===t.t)(e.e._mdf||i)&&(l.setAttribute("x2",c[0]),l.setAttribute("y2",c[1]),h&&!e.g._collapsable&&(e.of.setAttribute("x2",c[0]),e.of.setAttribute("y2",c[1])));else if((e.s._mdf||e.e._mdf||i)&&(o=Math.sqrt(Math.pow(u[0]-c[0],2)+Math.pow(u[1]-c[1],2)),l.setAttribute("r",o),h&&!e.g._collapsable&&e.of.setAttribute("r",o)),e.e._mdf||e.h._mdf||e.a._mdf||i){o||(o=Math.sqrt(Math.pow(u[0]-c[0],2)+Math.pow(u[1]-c[1],2)));var v=Math.atan2(c[1]-u[1],c[0]-u[0]),y=e.h.v;y>=1?y=.99:y<=-1&&(y=-.99);var b=o*y,x=Math.cos(v+e.a.v)*b+u[0],_=Math.sin(v+e.a.v)*b+u[1];l.setAttribute("fx",x),l.setAttribute("fy",_),h&&!e.g._collapsable&&(e.of.setAttribute("fx",x),e.of.setAttribute("fy",_))}}function l(t,e,i){var r=e.style,n=e.d;n&&(n._mdf||i)&&n.dashStr&&(r.pElem.setAttribute("stroke-dasharray",n.dashStr),r.pElem.setAttribute("stroke-dashoffset",n.dashoffset[0])),e.c&&(e.c._mdf||i)&&r.pElem.setAttribute("stroke","rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||i)&&r.pElem.setAttribute("stroke-opacity",e.o.v),(e.w._mdf||i)&&(r.pElem.setAttribute("stroke-width",e.w.v),r.msElem&&r.msElem.setAttribute("stroke-width",e.w.v))}return{createRenderFunction:function(t){switch(t.ty){case"fl":return s;case"gf":return o;case"gs":return a;case"st":return l;case"sh":case"el":case"rc":case"sr":return n;case"tr":return i;case"no":return r;default:return null}}}}();function SVGShapeElement(t,e,i){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,e,i),this.prevViewData=[]}function LetterProps(t,e,i,r,n,s){this.o=t,this.sw=e,this.sc=i,this.fc=r,this.m=n,this.p=s,this._mdf={o:!0,sw:!!e,sc:!!i,fc:!!r,m:!0,p:!0}}function TextProperty(t,e){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,e.d&&e.d.sid&&(e.d=t.globalData.slotManager.getProp(e.d)),this.data=e,this.elem=t,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var t,e,i,r,n=this.shapes.length,s=this.stylesList.length,a=[],o=!1;for(i=0;i<s;i+=1){for(t=0,r=this.stylesList[i],o=!1,a.length=0;t<n;t+=1)-1!==(e=this.shapes[t]).styles.indexOf(r)&&(a.push(e),o=e._isAnimated||o);a.length>1&&o&&this.setShapesAsAnimated(a)}},SVGShapeElement.prototype.setShapesAsAnimated=function(t){var e,i=t.length;for(e=0;e<i;e+=1)t[e].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(t,e){var i,r=new SVGStyleData(t,e),n=r.pElem;return"st"===t.ty?i=new SVGStrokeStyleData(this,t,r):"fl"===t.ty?i=new SVGFillStyleData(this,t,r):"gf"===t.ty||"gs"===t.ty?(i=new("gf"===t.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,t,r),this.globalData.defs.appendChild(i.gf),i.maskId&&(this.globalData.defs.appendChild(i.ms),this.globalData.defs.appendChild(i.of),n.setAttribute("mask","url("+getLocationHref()+"#"+i.maskId+")"))):"no"===t.ty&&(i=new SVGNoStyleData(this,t,r)),("st"===t.ty||"gs"===t.ty)&&(n.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]),n.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]),n.setAttribute("fill-opacity","0"),1===t.lj&&n.setAttribute("stroke-miterlimit",t.ml)),2===t.r&&n.setAttribute("fill-rule","evenodd"),t.ln&&n.setAttribute("id",t.ln),t.cl&&n.setAttribute("class",t.cl),t.bm&&(n.style["mix-blend-mode"]=getBlendMode(t.bm)),this.stylesList.push(r),this.addToAnimatedContents(t,i),i},SVGShapeElement.prototype.createGroupElement=function(t){var e=new ShapeGroupData;return t.ln&&e.gr.setAttribute("id",t.ln),t.cl&&e.gr.setAttribute("class",t.cl),t.bm&&(e.gr.style["mix-blend-mode"]=getBlendMode(t.bm)),e},SVGShapeElement.prototype.createTransformElement=function(t,e){var i=TransformPropertyFactory.getTransformProperty(this,t,this),r=new SVGTransformData(i,i.o,e);return this.addToAnimatedContents(t,r),r},SVGShapeElement.prototype.createShapeElement=function(t,e,i){var r=4;"rc"===t.ty?r=5:"el"===t.ty?r=6:"sr"===t.ty&&(r=7);var n=new SVGShapeData(e,i,ShapePropertyFactory.getShapeProp(this,t,r,this));return this.shapes.push(n),this.addShapeToModifiers(n),this.addToAnimatedContents(t,n),n},SVGShapeElement.prototype.addToAnimatedContents=function(t,e){for(var i=0,r=this.animatedContents.length;i<r;){if(this.animatedContents[i].element===e)return;i+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(t),element:e,data:t})},SVGShapeElement.prototype.setElementStyles=function(t){var e,i=t.styles,r=this.stylesList.length;for(e=0;e<r;e+=1)this.stylesList[e].closed||i.push(this.stylesList[e])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var t,e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(t,e,i,r,n,s,a){var o,l,h,u,c,f,p=[].concat(s),d=t.length-1,m=[],g=[];for(o=d;o>=0;o-=1){if((f=this.searchProcessedElement(t[o]))?e[o]=i[f-1]:t[o]._render=a,"fl"===t[o].ty||"st"===t[o].ty||"gf"===t[o].ty||"gs"===t[o].ty||"no"===t[o].ty)f?e[o].style.closed=!1:e[o]=this.createStyleElement(t[o],n),t[o]._render&&e[o].style.pElem.parentNode!==r&&r.appendChild(e[o].style.pElem),m.push(e[o].style);else if("gr"===t[o].ty){if(f)for(l=0,h=e[o].it.length;l<h;l+=1)e[o].prevViewData[l]=e[o].it[l];else e[o]=this.createGroupElement(t[o]);this.searchShapes(t[o].it,e[o].it,e[o].prevViewData,e[o].gr,n+1,p,a),t[o]._render&&e[o].gr.parentNode!==r&&r.appendChild(e[o].gr)}else"tr"===t[o].ty?(f||(e[o]=this.createTransformElement(t[o],r)),u=e[o].transform,p.push(u)):"sh"===t[o].ty||"rc"===t[o].ty||"el"===t[o].ty||"sr"===t[o].ty?(f||(e[o]=this.createShapeElement(t[o],p,n)),this.setElementStyles(e[o])):"tm"===t[o].ty||"rd"===t[o].ty||"ms"===t[o].ty||"pb"===t[o].ty||"zz"===t[o].ty||"op"===t[o].ty?(f?(c=e[o]).closed=!1:((c=ShapeModifiers.getModifier(t[o].ty)).init(this,t[o]),e[o]=c,this.shapeModifiers.push(c)),g.push(c)):"rp"===t[o].ty&&(f?(c=e[o]).closed=!0:(c=ShapeModifiers.getModifier(t[o].ty),e[o]=c,c.init(this,t,o,e),this.shapeModifiers.push(c),a=!1),g.push(c));this.addProcessedElement(t[o],o+1)}for(o=0,d=m.length;o<d;o+=1)m[o].closed=!0;for(o=0,d=g.length;o<d;o+=1)g[o].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var t,e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].reset();for(this.renderShape(),t=0;t<e;t+=1)(this.stylesList[t]._mdf||this._isFirstFrame)&&(this.stylesList[t].msElem&&(this.stylesList[t].msElem.setAttribute("d",this.stylesList[t].d),this.stylesList[t].d="M0 0"+this.stylesList[t].d),this.stylesList[t].pElem.setAttribute("d",this.stylesList[t].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var t,e,i=this.animatedContents.length;for(t=0;t<i;t+=1)e=this.animatedContents[t],(this._isFirstFrame||e.element._isAnimated)&&!0!==e.data&&e.fn(e.data,e.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},LetterProps.prototype.update=function(t,e,i,r,n,s){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var a=!1;return this.o!==t&&(this.o=t,this._mdf.o=!0,a=!0),this.sw!==e&&(this.sw=e,this._mdf.sw=!0,a=!0),this.sc!==i&&(this.sc=i,this._mdf.sc=!0,a=!0),this.fc!==r&&(this.fc=r,this._mdf.fc=!0,a=!0),this.m!==n&&(this.m=n,this._mdf.m=!0,a=!0),s.length&&(this.p[0]!==s[0]||this.p[1]!==s[1]||this.p[4]!==s[4]||this.p[5]!==s[5]||this.p[12]!==s[12]||this.p[13]!==s[13])&&(this.p=s,this._mdf.p=!0,a=!0),a},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},TextProperty.prototype.setCurrentData=function(t){t.__complete||this.completeTextData(t),this.currentData=t,this.currentData.boxWidth=this.currentData.boxWidth||this.defaultBoxWidth,this._mdf=!0},TextProperty.prototype.searchProperty=function(){return this.searchKeyframes()},TextProperty.prototype.searchKeyframes=function(){return this.kf=this.data.d.k.length>1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(t){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||t){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var e,i=this.currentData,r=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var n=this.effectsSequence.length,s=t||this.data.d.k[this.keysIndex].s;for(e=0;e<n;e+=1)s=r!==this.keysIndex?this.effectsSequence[e](s,s.t):this.effectsSequence[e](this.currentData,s.t);i!==s&&this.setCurrentData(s),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},TextProperty.prototype.getKeyframeValue=function(){for(var t=this.data.d.k,e=this.elem.comp.renderedFrame,i=0,r=t.length;i<=r-1&&i!==r-1&&!(t[i+1].t>e);)i+=1;return this.keysIndex!==i&&(this.keysIndex=i),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(t){for(var e,i,r=[],n=0,s=t.length,a=!1,o=!1,l="";n<s;)a=o,o=!1,e=t.charCodeAt(n),l=t.charAt(n),FontManager.isCombinedCharacter(e)?a=!0:e>=55296&&e<=56319?FontManager.isRegionalFlag(t,n)?l=t.substr(n,14):(i=t.charCodeAt(n+1))>=56320&&i<=57343&&(FontManager.isModifier(e,i)?(l=t.substr(n,2),a=!0):l=FontManager.isFlagEmoji(t.substr(n,4))?t.substr(n,4):t.substr(n,2)):e>56319?(i=t.charCodeAt(n+1),FontManager.isVariationSelector(e)&&(a=!0)):FontManager.isZeroWidthJoiner(e)&&(a=!0,o=!0),a?(r[r.length-1]+=l,a=!1):r.push(l),n+=l.length;return r},TextProperty.prototype.completeTextData=function(t){t.__complete=!0;var e=this.elem.globalData.fontManager,i=this.data,r=[],n=0,s=i.m.g,a=0,o=0,l=0,h=[],u=0,c=0,f=e.getFontByName(t.f),p=0,d=getFontProperties(f);t.fWeight=d.weight,t.fStyle=d.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),v=t.finalText.length,t.finalLineHeight=t.lh;var m=t.tr/1e3*t.finalSize;if(t.sz)for(var g,v,y,b,x,_,w,k,E,S,P=!0,M=t.sz[0],C=t.sz[1];P;){S=this.buildFinalText(t.t),E=0,u=0,v=S.length,m=t.tr/1e3*t.finalSize;var A=-1;for(g=0;g<v;g+=1)k=S[g].charCodeAt(0),y=!1," "===S[g]?A=g:(13===k||3===k)&&(u=0,y=!0,E+=t.finalLineHeight||1.2*t.finalSize),e.chars?(w=e.getCharData(S[g],f.fStyle,f.fFamily),p=y?0:w.w*t.finalSize/100):p=e.measureText(S[g],t.f,t.finalSize),u+p>M&&" "!==S[g]?(-1===A?v+=1:g=A,E+=t.finalLineHeight||1.2*t.finalSize,S.splice(g,A===g?1:0,"\r"),A=-1,u=0):u+=p+m;E+=f.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&C<E?(t.finalSize-=1,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=S,v=t.finalText.length,P=!1)}u=-m,p=0;var T=0;for(g=0;g<v;g+=1)if(y=!1,13===(k=(F=t.finalText[g]).charCodeAt(0))||3===k?(T=0,h.push(u),c=u>c?u:c,u=-2*m,b="",y=!0,l+=1):b=F,e.chars?(w=e.getCharData(F,f.fStyle,e.getFontByName(t.f).fFamily),p=y?0:w.w*t.finalSize/100):p=e.measureText(b,t.f,t.finalSize)," "===F?T+=p+m:(u+=p+m+T,T=0),r.push({l:p,an:p,add:a,n:y,anIndexes:[],val:b,line:l,animatorJustifyOffset:0}),2==s){if(a+=p,""===b||" "===b||g===v-1){for((""===b||" "===b)&&(a-=p);o<=g;)r[o].an=a,r[o].ind=n,r[o].extra=p,o+=1;n+=1,a=0}}else if(3==s){if(a+=p,""===b||g===v-1){for(""===b&&(a-=p);o<=g;)r[o].an=a,r[o].ind=n,r[o].extra=p,o+=1;a=0,n+=1}}else r[n].ind=n,r[n].extra=0,n+=1;if(t.l=r,c=u>c?u:c,h.push(u),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=c,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=h;var D=i.a;_=D.length;var O=[];for(x=0;x<_;x+=1){for((L=D[x]).a.sc&&(t.strokeColorAnim=!0),L.a.sw&&(t.strokeWidthAnim=!0),(L.a.fc||L.a.fh||L.a.fs||L.a.fb)&&(t.fillColorAnim=!0),B=0,R=L.s.b,g=0;g<v;g+=1)(I=r[g]).anIndexes[x]=B,(1==R&&""!==I.val||2==R&&""!==I.val&&" "!==I.val||3==R&&(I.n||" "==I.val||g==v-1)||4==R&&(I.n||g==v-1))&&(1===L.s.rn&&O.push(B),B+=1);i.a[x].s.totalChars=B;var F,L,I,R,B,j,z=-1;if(1===L.s.rn)for(g=0;g<v;g+=1)z!=(I=r[g]).anIndexes[x]&&(z=I.anIndexes[x],j=O.splice(Math.floor(Math.random()*O.length),1)[0]),I.anIndexes[x]=j}t.yOffset=t.finalLineHeight||1.2*t.finalSize,t.ls=t.ls||0,t.ascent=f.ascent*t.finalSize/100},TextProperty.prototype.updateDocumentData=function(t,e){e=void 0===e?this.keysIndex:e;var i=this.copyData({},this.data.d.k[e].s);i=this.copyData(i,t),this.data.d.k[e].s=i,this.recalculate(e),this.setCurrentData(i),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(t){var e=this.data.d.k[t].s;e.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(e)},TextProperty.prototype.canResizeFont=function(t){this.canResize=t,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(t){this.minimumFontSize=Math.floor(t)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var t=Math.max,e=Math.min,i=Math.floor;function r(t,e){this._currentTextLength=-1,this.k=!1,this.data=e,this.elem=t,this.comp=t.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(t),this.s=PropertyFactory.getProp(t,e.s||{k:0},0,0,this),"e"in e?this.e=PropertyFactory.getProp(t,e.e,0,0,this):this.e={v:100},this.o=PropertyFactory.getProp(t,e.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(t,e.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(t,e.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(t,e.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(t,e.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return r.prototype={getMult:function(r){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var n=0,s=0,a=1,o=1;this.ne.v>0?n=this.ne.v/100:s=-this.ne.v/100,this.xe.v>0?a=1-this.xe.v/100:o=1+this.xe.v/100;var l=BezierFactory.getBezierEasing(n,s,a,o).get,h=0,u=this.finalS,c=this.finalE,f=this.data.sh;if(2===f)h=l(h=c===u?r>=c?1:0:t(0,e(.5/(c-u)+(r-u)/(c-u),1)));else if(3===f)h=l(h=c===u?r>=c?0:1:1-t(0,e(.5/(c-u)+(r-u)/(c-u),1)));else if(4===f)c===u?h=0:(h=t(0,e(.5/(c-u)+(r-u)/(c-u),1)))<.5?h*=2:h=1-2*(h-.5),h=l(h);else if(5===f){if(c===u)h=0;else{var p=c-u,d=-p/2+(r=e(t(0,r+.5-u),c-u)),m=p/2;h=Math.sqrt(1-d*d/(m*m))}h=l(h)}else 6===f?h=l(h=c===u?0:(1+Math.cos(Math.PI+2*Math.PI*(r=e(t(0,r+.5-u),c-u))/(c-u)))/2):(r>=i(u)&&(h=r-u<0?t(0,e(e(c,1)-(u-r),1)):t(0,e(c-r,1))),h=l(h));if(100!==this.sm.v){var g=.01*this.sm.v;0===g&&(g=1e-8);var v=.5-.5*g;h<v?h=0:(h=(h-v)/g)>1&&(h=1)}return h*this.a.v},getValue:function(t){this.iterateDynamicProperties(),this._mdf=t||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,t&&2===this.data.r&&(this.e.v=this._currentTextLength);var e=2===this.data.r?1:100/this.data.totalChars,i=this.o.v/e,r=this.s.v/e+i,n=this.e.v/e+i;if(r>n){var s=r;r=n,n=s}this.finalS=r,this.finalE=n}},extendPrototype([DynamicPropertyContainer],r),{getTextSelectorProp:function(t,e,i){return new r(t,e,i)}}}();function TextAnimatorDataProperty(t,e,i){var r={propType:!1},n=PropertyFactory.getProp,s=e.a;this.a={r:s.r?n(t,s.r,0,degToRads,i):r,rx:s.rx?n(t,s.rx,0,degToRads,i):r,ry:s.ry?n(t,s.ry,0,degToRads,i):r,sk:s.sk?n(t,s.sk,0,degToRads,i):r,sa:s.sa?n(t,s.sa,0,degToRads,i):r,s:s.s?n(t,s.s,1,.01,i):r,a:s.a?n(t,s.a,1,0,i):r,o:s.o?n(t,s.o,0,.01,i):r,p:s.p?n(t,s.p,1,0,i):r,sw:s.sw?n(t,s.sw,0,0,i):r,sc:s.sc?n(t,s.sc,1,0,i):r,fc:s.fc?n(t,s.fc,1,0,i):r,fh:s.fh?n(t,s.fh,0,0,i):r,fs:s.fs?n(t,s.fs,0,.01,i):r,fb:s.fb?n(t,s.fb,0,.01,i):r,t:s.t?n(t,s.t,0,0,i):r},this.s=TextSelectorProp.getTextSelectorProp(t,e.s,i),this.s.t=e.s.t}function TextAnimatorProperty(t,e,i){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=e,this._elem=i,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(i)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var t,e,i=this._textData.a.length,r=PropertyFactory.getProp;for(t=0;t<i;t+=1)e=this._textData.a[t],this._animatorsData[t]=new TextAnimatorDataProperty(this._elem,e,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:r(this._elem,this._textData.p.a,0,0,this),f:r(this._elem,this._textData.p.f,0,0,this),l:r(this._elem,this._textData.p.l,0,0,this),r:r(this._elem,this._textData.p.r,0,0,this),p:r(this._elem,this._textData.p.p,0,0,this),m:this._elem.maskManager.getMaskProperty(this._textData.p.m)},this._hasMaskedPath=!0):this._hasMaskedPath=!1,this._moreOptions.alignment=r(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(t,e){if(this.lettersChangedFlag=e,this._mdf||this._isFirstFrame||e||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var i,r,n,s,a,o,l,h,u,c,f,p,d,m,g,v,y,b,x=this._moreOptions.alignment.v,_=this._animatorsData,w=this._textData,k=this.mHelper,E=this._renderType,S=this.renderedLetters.length,P=t.l;if(this._hasMaskedPath){if(U=this._pathData.m,!this._pathData.n||this._pathData._mdf){var M,C,A,T,D,O,F,L,I,R,B,j,z,N,V,H,W,U,G,q=U.v;for(this._pathData.r.v&&(q=q.reverse()),D={tLength:0,segments:[]},T=q._length-1,H=0,A=0;A<T;A+=1)G=bez.buildBezierData(q.v[A],q.v[A+1],[q.o[A][0]-q.v[A][0],q.o[A][1]-q.v[A][1]],[q.i[A+1][0]-q.v[A+1][0],q.i[A+1][1]-q.v[A+1][1]]),D.tLength+=G.segmentLength,D.segments.push(G),H+=G.segmentLength;A=T,U.v.c&&(G=bez.buildBezierData(q.v[A],q.v[0],[q.o[A][0]-q.v[A][0],q.o[A][1]-q.v[A][1]],[q.i[0][0]-q.v[0][0],q.i[0][1]-q.v[0][1]]),D.tLength+=G.segmentLength,D.segments.push(G),H+=G.segmentLength),this._pathData.pi=D}if(D=this._pathData.pi,O=this._pathData.f.v,B=0,R=1,L=0,I=!0,N=D.segments,O<0&&U.v.c)for(D.tLength<Math.abs(O)&&(O=-Math.abs(O)%D.tLength),B=N.length-1,R=(z=N[B].points).length-1;O<0;)O+=z[R].partialLength,(R-=1)<0&&(B-=1,R=(z=N[B].points).length-1);j=(z=N[B].points)[R-1],V=(F=z[R]).partialLength}T=P.length,M=0,C=0;var Y=1.2*t.finalSize*.714,X=!0;s=_.length;var $=-1,Z=O,J=B,K=R,Q=-1,tt="",te=this.defaultPropsArray;if(2===t.j||1===t.j){var ti=0,tr=0,tn=2===t.j?-.5:-1,ts=0,ta=!0;for(A=0;A<T;A+=1)if(P[A].n){for(ti&&(ti+=tr);ts<A;)P[ts].animatorJustifyOffset=ti,ts+=1;ti=0,ta=!0}else{for(n=0;n<s;n+=1)(i=_[n].a).t.propType&&(ta&&2===t.j&&(tr+=i.t.v*tn),(o=(r=_[n].s).getMult(P[A].anIndexes[n],w.a[n].s.totalChars)).length?ti+=i.t.v*o[0]*tn:ti+=i.t.v*o*tn);ta=!1}for(ti&&(ti+=tr);ts<A;)P[ts].animatorJustifyOffset=ti,ts+=1}for(A=0;A<T;A+=1){if(k.reset(),c=1,P[A].n)M=0,C+=t.yOffset+(X?1:0),O=Z,X=!1,this._hasMaskedPath&&(B=J,R=K,j=(z=N[B].points)[R-1],V=(F=z[R]).partialLength,L=0),tt="",y="",g="",b="",te=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Q!==P[A].line){switch(t.j){case 1:O+=H-t.lineWidths[P[A].line];break;case 2:O+=(H-t.lineWidths[P[A].line])/2}Q=P[A].line}$!==P[A].ind&&(P[$]&&(O+=P[$].extra),O+=P[A].an/2,$=P[A].ind),O+=x[0]*P[A].an*.005;var to=0;for(n=0;n<s;n+=1)(i=_[n].a).p.propType&&((o=(r=_[n].s).getMult(P[A].anIndexes[n],w.a[n].s.totalChars)).length?to+=i.p.v[0]*o[0]:to+=i.p.v[0]*o),i.a.propType&&((o=(r=_[n].s).getMult(P[A].anIndexes[n],w.a[n].s.totalChars)).length?to+=i.a.v[0]*o[0]:to+=i.a.v[0]*o);for(I=!0,this._pathData.a.v&&(O=.5*P[0].an+(H-this._pathData.f.v-.5*P[0].an-.5*P[P.length-1].an)*$/(T-1)+this._pathData.f.v);I;)L+V>=O+to||!z?(W=(O+to-L)/F.partialLength,h=j.point[0]+(F.point[0]-j.point[0])*W,u=j.point[1]+(F.point[1]-j.point[1])*W,k.translate(-x[0]*P[A].an*.005,-(x[1]*Y*.01)),I=!1):z&&(L+=F.partialLength,(R+=1)>=z.length&&(R=0,N[B+=1]?z=N[B].points:U.v.c?(R=0,z=N[B=0].points):(L-=F.partialLength,z=null)),z&&(j=F,V=(F=z[R]).partialLength));l=P[A].an/2-P[A].add,k.translate(-l,0,0)}else l=P[A].an/2-P[A].add,k.translate(-l,0,0),k.translate(-x[0]*P[A].an*.005,-x[1]*Y*.01,0);for(n=0;n<s;n+=1)(i=_[n].a).t.propType&&(o=(r=_[n].s).getMult(P[A].anIndexes[n],w.a[n].s.totalChars),(0!==M||0!==t.j)&&(this._hasMaskedPath?o.length?O+=i.t.v*o[0]:O+=i.t.v*o:o.length?M+=i.t.v*o[0]:M+=i.t.v*o));for(t.strokeWidthAnim&&(p=t.sw||0),t.strokeColorAnim&&(f=t.sc?[t.sc[0],t.sc[1],t.sc[2]]:[0,0,0]),t.fillColorAnim&&t.fc&&(d=[t.fc[0],t.fc[1],t.fc[2]]),n=0;n<s;n+=1)(i=_[n].a).a.propType&&((o=(r=_[n].s).getMult(P[A].anIndexes[n],w.a[n].s.totalChars)).length?k.translate(-i.a.v[0]*o[0],-i.a.v[1]*o[1],i.a.v[2]*o[2]):k.translate(-i.a.v[0]*o,-i.a.v[1]*o,i.a.v[2]*o));for(n=0;n<s;n+=1)(i=_[n].a).s.propType&&((o=(r=_[n].s).getMult(P[A].anIndexes[n],w.a[n].s.totalChars)).length?k.scale(1+(i.s.v[0]-1)*o[0],1+(i.s.v[1]-1)*o[1],1):k.scale(1+(i.s.v[0]-1)*o,1+(i.s.v[1]-1)*o,1));for(n=0;n<s;n+=1){if(i=_[n].a,o=(r=_[n].s).getMult(P[A].anIndexes[n],w.a[n].s.totalChars),i.sk.propType&&(o.length?k.skewFromAxis(-i.sk.v*o[0],i.sa.v*o[1]):k.skewFromAxis(-i.sk.v*o,i.sa.v*o)),i.r.propType&&(o.length?k.rotateZ(-i.r.v*o[2]):k.rotateZ(-i.r.v*o)),i.ry.propType&&(o.length?k.rotateY(i.ry.v*o[1]):k.rotateY(i.ry.v*o)),i.rx.propType&&(o.length?k.rotateX(i.rx.v*o[0]):k.rotateX(i.rx.v*o)),i.o.propType&&(o.length?c+=(i.o.v*o[0]-c)*o[0]:c+=(i.o.v*o-c)*o),t.strokeWidthAnim&&i.sw.propType&&(o.length?p+=i.sw.v*o[0]:p+=i.sw.v*o),t.strokeColorAnim&&i.sc.propType)for(m=0;m<3;m+=1)o.length?f[m]+=(i.sc.v[m]-f[m])*o[0]:f[m]+=(i.sc.v[m]-f[m])*o;if(t.fillColorAnim&&t.fc){if(i.fc.propType)for(m=0;m<3;m+=1)o.length?d[m]+=(i.fc.v[m]-d[m])*o[0]:d[m]+=(i.fc.v[m]-d[m])*o;i.fh.propType&&(d=o.length?addHueToRGB(d,i.fh.v*o[0]):addHueToRGB(d,i.fh.v*o)),i.fs.propType&&(d=o.length?addSaturationToRGB(d,i.fs.v*o[0]):addSaturationToRGB(d,i.fs.v*o)),i.fb.propType&&(d=o.length?addBrightnessToRGB(d,i.fb.v*o[0]):addBrightnessToRGB(d,i.fb.v*o))}}for(n=0;n<s;n+=1)(i=_[n].a).p.propType&&(o=(r=_[n].s).getMult(P[A].anIndexes[n],w.a[n].s.totalChars),this._hasMaskedPath?o.length?k.translate(0,i.p.v[1]*o[0],-i.p.v[2]*o[1]):k.translate(0,i.p.v[1]*o,-i.p.v[2]*o):o.length?k.translate(i.p.v[0]*o[0],i.p.v[1]*o[1],-i.p.v[2]*o[2]):k.translate(i.p.v[0]*o,i.p.v[1]*o,-i.p.v[2]*o));if(t.strokeWidthAnim&&(g=p<0?0:p),t.strokeColorAnim&&(v="rgb("+Math.round(255*f[0])+","+Math.round(255*f[1])+","+Math.round(255*f[2])+")"),t.fillColorAnim&&t.fc&&(y="rgb("+Math.round(255*d[0])+","+Math.round(255*d[1])+","+Math.round(255*d[2])+")"),this._hasMaskedPath){if(k.translate(0,-t.ls),k.translate(0,x[1]*Y*.01+C,0),this._pathData.p.v){var tl=180*Math.atan((F.point[1]-j.point[1])/(F.point[0]-j.point[0]))/Math.PI;F.point[0]<j.point[0]&&(tl+=180),k.rotate(-tl*Math.PI/180)}k.translate(h,u,0),O-=x[0]*P[A].an*.005,P[A+1]&&$!==P[A+1].ind&&(O+=P[A].an/2+.001*t.tr*t.finalSize)}else{switch(k.translate(M,C,0),t.ps&&k.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:k.translate(P[A].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[P[A].line]),0,0);break;case 2:k.translate(P[A].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[P[A].line])/2,0,0)}k.translate(0,-t.ls),k.translate(l,0,0),k.translate(x[0]*P[A].an*.005,x[1]*Y*.01,0),M+=P[A].l+.001*t.tr*t.finalSize}"html"===E?tt=k.toCSS():"svg"===E?tt=k.to2dCSS():te=[k.props[0],k.props[1],k.props[2],k.props[3],k.props[4],k.props[5],k.props[6],k.props[7],k.props[8],k.props[9],k.props[10],k.props[11],k.props[12],k.props[13],k.props[14],k.props[15]],b=c}S<=A?(a=new LetterProps(b,g,v,y,tt,te),this.renderedLetters.push(a),S+=1,this.lettersChangedFlag=!0):(a=this.renderedLetters[A],this.lettersChangedFlag=a.update(b,g,v,y,tt,te)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty),ITextElement.prototype.initElement=function(t,e,i){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(t,e,i),this.textProperty=new TextProperty(this,t.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(t.t,this.renderType,this),this.initTransform(t,e,i),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)},ITextElement.prototype.createPathShape=function(t,e){var i,r,n=e.length,s="";for(i=0;i<n;i+=1)"sh"===e[i].ty&&(s+=buildShapeString(r=e[i].ks.k,r.i.length,!0,t));return s},ITextElement.prototype.updateDocumentData=function(t,e){this.textProperty.updateDocumentData(t,e)},ITextElement.prototype.canResizeFont=function(t){this.textProperty.canResizeFont(t)},ITextElement.prototype.setMinimumFontSize=function(t){this.textProperty.setMinimumFontSize(t)},ITextElement.prototype.applyTextPropertiesToMatrix=function(t,e,i,r,n){switch(t.ps&&e.translate(t.ps[0],t.ps[1]+t.ascent,0),e.translate(0,-t.ls,0),t.j){case 1:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[i]),0,0);break;case 2:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[i])/2,0,0)}e.translate(r,n,0)},ITextElement.prototype.buildColor=function(t){return"rgb("+Math.round(255*t[0])+","+Math.round(255*t[1])+","+Math.round(255*t[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(t,e,i){this.textSpans=[],this.renderType="svg",this.initElement(t,e,i)}function ISolidElement(t,e,i){this.initElement(t,e,i)}function NullElement(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initFrame(),this.initTransform(t,e,i),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}function SVGCompElement(t,e,i){this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,i),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function SVGRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var i="";if(e&&e.title){var r=createNS("title"),n=createElementID();r.setAttribute("id",n),r.textContent=e.title,this.svgElement.appendChild(r),i+=n}if(e&&e.description){var s=createNS("desc"),a=createElementID();s.setAttribute("id",a),s.textContent=e.description,this.svgElement.appendChild(s),i+=" "+a}i&&this.svgElement.setAttribute("aria-labelledby",i);var o=createNS("defs");this.svgElement.appendChild(o);var l=createNS("g");this.svgElement.appendChild(l),this.layerElement=l,this.renderConfig={preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",progressiveLoad:e&&e.progressiveLoad||!1,hideOnTransparent:!(e&&!1===e.hideOnTransparent),viewBoxOnly:e&&e.viewBoxOnly||!1,viewBoxSize:e&&e.viewBoxSize||!1,className:e&&e.className||"",id:e&&e.id||"",focusable:e&&e.focusable,filterSize:{width:e&&e.filterSize&&e.filterSize.width||"100%",height:e&&e.filterSize&&e.filterSize.height||"100%",x:e&&e.filterSize&&e.filterSize.x||"0%",y:e&&e.filterSize&&e.filterSize.y||"0%"},width:e&&e.width,height:e&&e.height,runExpressions:!e||void 0===e.runExpressions||e.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:o,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],SVGTextLottieElement),SVGTextLottieElement.prototype.createContent=function(){this.data.singleShape&&!this.globalData.fontManager.chars&&(this.textContainer=createNS("text"))},SVGTextLottieElement.prototype.buildTextContents=function(t){for(var e=0,i=t.length,r=[],n="";e<i;)"\r"===t[e]||"\x03"===t[e]?(r.push(n),n=""):n+=t[e],e+=1;return r.push(n),r},SVGTextLottieElement.prototype.buildShapeData=function(t,e){if(t.shapes&&t.shapes.length){var i=t.shapes[0];if(i.it){var r=i.it[i.it.length-1];r.s&&(r.s.k[0]=e,r.s.k[1]=e)}}return t},SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var t=this.textProperty.currentData;this.renderedLetters=createSizedArray(t?t.l.length:0),t.fc?this.layerElement.setAttribute("fill",this.buildColor(t.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),t.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(t.sc)),this.layerElement.setAttribute("stroke-width",t.sw)),this.layerElement.setAttribute("font-size",t.finalSize);var e=this.globalData.fontManager.getFontByName(t.f);if(e.fClass)this.layerElement.setAttribute("class",e.fClass);else{this.layerElement.setAttribute("font-family",e.fFamily);var i=t.fWeight,r=t.fStyle;this.layerElement.setAttribute("font-style",r),this.layerElement.setAttribute("font-weight",i)}this.layerElement.setAttribute("aria-label",t.t);var n=t.l||[],s=!!this.globalData.fontManager.chars;g=n.length;var a=this.mHelper,o="",l=this.data.singleShape,h=0,u=0,c=!0,f=.001*t.tr*t.finalSize;if(!l||s||t.sz){var p=this.textSpans.length;for(m=0;m<g;m+=1){if(this.textSpans[m]||(this.textSpans[m]={span:null,childSpan:null,glyph:null}),!s||!l||0===m){if(v=p>m?this.textSpans[m].span:createNS(s?"g":"text"),p<=m){if(v.setAttribute("stroke-linecap","butt"),v.setAttribute("stroke-linejoin","round"),v.setAttribute("stroke-miterlimit","4"),this.textSpans[m].span=v,s){var d=createNS("g");v.appendChild(d),this.textSpans[m].childSpan=d}this.textSpans[m].span=v,this.layerElement.appendChild(v)}v.style.display="inherit"}if(a.reset(),l&&(n[m].n&&(h=-f,u+=t.yOffset+(c?1:0),c=!1),this.applyTextPropertiesToMatrix(t,a,n[m].line,h,u),h+=(n[m].l||0)+f),s){if(1===(y=this.globalData.fontManager.getCharData(t.finalText[m],e.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily)).t)b=new SVGCompElement(y.data,this.globalData,this);else{var m,g,v,y,b,x=emptyShapeData;y.data&&y.data.shapes&&(x=this.buildShapeData(y.data,t.finalSize)),b=new SVGShapeElement(x,this.globalData,this)}if(this.textSpans[m].glyph){var _=this.textSpans[m].glyph;this.textSpans[m].childSpan.removeChild(_.layerElement),_.destroy()}this.textSpans[m].glyph=b,b._debug=!0,b.prepareFrame(0),b.renderFrame(),this.textSpans[m].childSpan.appendChild(b.layerElement),1===y.t&&this.textSpans[m].childSpan.setAttribute("transform","scale("+t.finalSize/100+","+t.finalSize/100+")")}else l&&v.setAttribute("transform","translate("+a.props[12]+","+a.props[13]+")"),v.textContent=n[m].val,v.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}l&&v&&v.setAttribute("d",o)}else{var w=this.textContainer,k="start";switch(t.j){case 1:k="end";break;case 2:k="middle";break;default:k="start"}w.setAttribute("text-anchor",k),w.setAttribute("letter-spacing",f);var E=this.buildTextContents(t.finalText);for(m=0,g=E.length,u=t.ps?t.ps[1]+t.ascent:0;m<g;m+=1)(v=this.textSpans[m].span||createNS("tspan")).textContent=E[m],v.setAttribute("x",0),v.setAttribute("y",u),v.style.display="inherit",w.appendChild(v),this.textSpans[m]||(this.textSpans[m]={span:null,glyph:null}),this.textSpans[m].span=v,u+=t.finalLineHeight;this.layerElement.appendChild(w)}for(;m<this.textSpans.length;)this.textSpans[m].span.style.display="none",m+=1;this._sizeChanged=!0},SVGTextLottieElement.prototype.sourceRectAtTime=function(){if(this.prepareFrame(this.comp.renderedFrame-this.data.st),this.renderInnerContent(),this._sizeChanged){this._sizeChanged=!1;var t=this.layerElement.getBBox();this.bbox={top:t.y,left:t.x,width:t.width,height:t.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var t,e,i=this.textSpans.length;for(t=0,this.renderedFrame=this.comp.renderedFrame;t<i;t+=1)(e=this.textSpans[t].glyph)&&(e.prepareFrame(this.comp.renderedFrame-this.data.st),e._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var t,e,i,r,n,s=this.textAnimator.renderedLetters,a=this.textProperty.currentData.l;for(t=0,e=a.length;t<e;t+=1)!a[t].n&&(i=s[t],r=this.textSpans[t].span,(n=this.textSpans[t].glyph)&&n.renderFrame(),i._mdf.m&&r.setAttribute("transform",i.m),i._mdf.o&&r.setAttribute("opacity",i.o),i._mdf.sw&&r.setAttribute("stroke-width",i.sw),i._mdf.sc&&r.setAttribute("stroke",i.sc),i._mdf.fc&&r.setAttribute("fill",i.fc))}},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var t=createNS("rect");t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.layerElement.appendChild(t)},NullElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},NullElement.prototype.renderFrame=function(){},NullElement.prototype.getBaseElement=function(){return null},NullElement.prototype.destroy=function(){},NullElement.prototype.sourceRectAtTime=function(){},NullElement.prototype.hide=function(){},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement],NullElement),extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(t){return new NullElement(t,this.globalData,this)},SVGRendererBase.prototype.createShape=function(t){return new SVGShapeElement(t,this.globalData,this)},SVGRendererBase.prototype.createText=function(t){return new SVGTextLottieElement(t,this.globalData,this)},SVGRendererBase.prototype.createImage=function(t){return new IImageElement(t,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(t){return new ISolidElement(t,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(t){this.svgElement.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.svgElement.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),this.renderConfig.viewBoxSize?this.svgElement.setAttribute("viewBox",this.renderConfig.viewBoxSize):this.svgElement.setAttribute("viewBox","0 0 "+t.w+" "+t.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",t.w),this.svgElement.setAttribute("height",t.h),this.svgElement.style.width="100%",this.svgElement.style.height="100%",this.svgElement.style.transform="translate3d(0,
10,0)",this.svgElement.style.contentVisibility=this.renderConfig.contentVisibility),this.renderConfig.width&&this.svgElement.setAttribute("width",this.renderConfig.width),this.renderConfig.height&&this.svgElement.setAttribute("height",this.renderConfig.height),this.renderConfig.className&&this.svgElement.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.svgElement.setAttribute("id",this.renderConfig.id),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var e=this.globalData.defs;this.setupGlobalData(t,e),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=t;var i=createNS("clipPath"),r=createNS("rect");r.setAttribute("width",t.w),r.setAttribute("height",t.h),r.setAttribute("x",0),r.setAttribute("y",0);var n=createElementID();i.setAttribute("id",n),i.appendChild(r),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+n+")"),e.appendChild(i),this.layers=t.layers,this.elements=createSizedArray(t.layers.length)},SVGRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var t,e=this.layers?this.layers.length:0;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(t){var e=0,i=this.layers.length;for(e=0;e<i;e+=1)if(this.layers[e].ind===t)return e;return -1},SVGRendererBase.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!==this.layers[t].ty){e[t]=!0;var i=this.createItem(this.layers[t]);if(e[t]=i,getExpressionsPlugin()&&(0===this.layers[t].ty&&this.globalData.projectInterface.registerComposition(i),i.initExpressions()),this.appendElementInPos(i,t),this.layers[t].tt){var r="tp"in this.layers[t]?this.findIndexByInd(this.layers[t].tp):t-1;if(-1===r)return;if(this.elements[r]&&!0!==this.elements[r]){var n=e[r].getMatte(this.layers[t].tt);i.setMatte(n)}else this.buildItem(r),this.addPendingElement(i)}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();if(t.checkParenting(),t.data.tt)for(var e=0,i=this.elements.length;e<i;){if(this.elements[e]===t){var r="tp"in t.data?this.findIndexByInd(t.data.tp):e-1,n=this.elements[r].getMatte(this.layers[e].tt);t.setMatte(n);break}e+=1}}},SVGRendererBase.prototype.renderFrame=function(t){if(this.renderedFrame!==t&&!this.destroyed){null===t?t=this.renderedFrame:this.renderedFrame=t,this.globalData.frameNum=t,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=t,this.globalData._mdf=!1;var e,i=this.layers.length;for(this.completeLayers||this.checkLayers(t),e=i-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].prepareFrame(t-this.layers[e].st);if(this.globalData._mdf)for(e=0;e<i;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(t,e){var i,r=t.getBaseElement();if(r){for(var n=0;n<e;)this.elements[n]&&!0!==this.elements[n]&&this.elements[n].getBaseElement()&&(i=this.elements[n].getBaseElement()),n+=1;i?this.layerElement.insertBefore(r,i):this.layerElement.appendChild(r)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initTransform(t,e,i),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!e.progressiveLoad)&&this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(t){if(this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=t/this.data.sr;else{var e,i=this.tm.v;i===this.data.op&&(i=this.data.op-1),this.renderedFrame=i}var r=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),e=r-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&(this.elements[e].prepareFrame(this.renderedFrame-this.layers[e].st),this.elements[e]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},ICompElement.prototype.setElements=function(t){this.elements=t},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)},extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)},ShapeTransformManager.prototype={addTransformSequence:function(t){var e,i=t.length,r="_";for(e=0;e<i;e+=1)r+=t[e].transform.key+"_";var n=this.sequences[r];return n||(n={transforms:[].concat(t),finalTransform:new Matrix,_mdf:!1},this.sequences[r]=n,this.sequenceList.push(n)),n},processSequence:function(t,e){for(var i=0,r=t.transforms.length,n=e;i<r&&!e;){if(t.transforms[i].transform.mProps._mdf){n=!0;break}i+=1}if(n)for(t.finalTransform.reset(),i=r-1;i>=0;i-=1)t.finalTransform.multiply(t.transforms[i].transform.mProps.v);t._mdf=n},processSequences:function(t){var e,i=this.sequenceList.length;for(e=0;e<i;e+=1)this.processSequence(this.sequenceList[e],t)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var t="__lottie_element_luma_buffer",e=null,i=null,r=null;function n(){var e=createNS("svg"),i=createNS("filter"),r=createNS("feColorMatrix");return i.setAttribute("id",t),r.setAttribute("type","matrix"),r.setAttribute("color-interpolation-filters","sRGB"),r.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),i.appendChild(r),e.a
vendor: 4,321 bytes, line 1
1ppendChild(i),e.setAttribute("id",t+"_svg"),featureSupport.svgLumaHidden&&(e.style.display="none"),e}function s(){e||(r=n(),document.body.appendChild(r),(i=(e=createTag("canvas")).getContext("2d")).filter="url(#"+t+")",i.fillStyle="rgba(0,0,0,0)",i.fillRect(0,0,1,1))}function a(r){return e||s(),e.width=r.width,e.height=r.height,i.filter="url(#"+t+")",e}return{load:s,get:a}};function createCanvas(t,e){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(t,e);var i=createTag("canvas");return i.width=t,i.height=e,i}var assetLoader=function(){return{loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas:createCanvas}}(),registeredEffects={};function CVEffects(t){var e,i,r=t.data.ef?t.data.ef.length:0;for(e=0,this.filters=[];e<r;e+=1){i=null;var n=t.data.ef[e].ty;registeredEffects[n]&&(i=new registeredEffects[n].effect(t.effectsManager.effectElements[e],t)),i&&this.filters.push(i)}this.filters.length&&t.addRenderableComponent(this)}function registerEffect(t,e){registeredEffects[t]={effect:e}}function CVMaskElement(t,e){this.data=t,this.element=e,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var i,r=this.masksProperties.length,n=!1;for(i=0;i<r;i+=1)"n"!==this.masksProperties[i].mode&&(n=!0),this.viewData[i]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[i],3);this.hasMasks=n,n&&this.element.addRenderableComponent(this)}function CVBaseElement(){}CVEffects.prototype.renderFrame=function(t){var e,i=this.filters.length;for(e=0;e<i;e+=1)this.filters[e].renderFrame(t)},CVEffects.prototype.getEffects=function(t){var e,i=this.filters.length,r=[];for(e=0;e<i;e+=1)this.filters[e].type===t&&r.push(this.filters[e]);return r},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var t=this.element.finalTransform.mat,e=this.element.canvasContext,i=this.masksProperties.length;for(e.beginPath(),r=0;r<i;r+=1)if("n"!==this.masksProperties[r].mode){this.masksProperties[r].inv&&(e.moveTo(0,0),e.lineTo(this.element.globalData.compSize.w,0),e.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),e.lineTo(0,this.element.globalData.compSize.h),e.lineTo(0,0)),a=this.viewData[r].v,n=t.applyToPointArray(a.v[0][0],a.v[0][1],0),e.moveTo(n[0],n[1]);var r,n,s,a,o,l=a._length;for(o=1;o<l;o+=1)s=t.applyToTriplePoints(a.o[o-1],a.i[o],a.v[o]),e.bezierCurveTo(s[0],s[1],s[2],s[3],s[4],s[5]);s=t.applyToTriplePoints(a.o[o-1],a.i[0],a.v[0]),e.bezierCurveTo(s[0],s[1],s[2],s[3],s[4],s[5])}this.element.globalData.renderer.save(!0),e.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};function CVShapeData(t,e,i,r){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var n,s,a=4;"rc"===e.ty?a=5:"el"===e.ty?a=6:"sr"===e.ty&&(a=7),this.sh=ShapePropertyFactory.getShapeProp(t,e,a,t);var o=i.length;for(n=0;n<o;n+=1)i[n].closed||(s={transforms:r.addTransformSequence(i[n].transforms),trNodes:[]},this.styledShapes.push(s),i[n].elements.push(s))}function CVShapeElement(t,e,i){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(t,e,i)}function CVTextElement(t,e,i){this.textSpans=[],this.yOffset=0,this.fillColorAnim=!1,this.strokeColorAnim=!1,this.strokeWidthAnim=!1,this.stroke=!1,this.fill=!1,this.justifyOffset=0,this.currentRender=null,this.renderType="canvas",this.values={fill:"rgba(0,0,0,0)",stroke:"rgba(0,0,0,0)",sWidth:0,fValue:""},this.initElement(t,e,i)}function CVImageElement(t,e,i){this.assetData=e.getAssetData(t.refId),this.img=e.imageLoader.getAsset(this.assetData),this.initElement(t,e,i)}function CVSolidElement(t,e,i){this.initElement(t,e,i)}function CanvasRendererBase(){}function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){this.stack=[],this.cArrPos=0,this.cTr=new Matrix;var t,e=15;for(t=0;t<e;t+=1){var i=new CanvasContext;this.stack[t]=i}
vendor: 5,987 bytes, line 1
1this._length=e,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}function CVCompElement(t,e,i){this.completeLayers=!1,this.layers=t.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(t,e,i),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function CanvasRenderer(t,e){this.animationItem=t,this.renderConfig={clearCanvas:!e||void 0===e.clearCanvas||e.clearCanvas,context:e&&e.context||null,progressiveLoad:e&&e.progressiveLoad||!1,preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",className:e&&e.className||"",id:e&&e.id||"",runExpressions:!e||void 0===e.runExpressions||e.runExpressions},this.renderConfig.dpr=e&&e.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=e&&e.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}function HBaseElement(){}function HSolidElement(t,e,i){this.initElement(t,e,i)}function HShapeElement(t,e,i){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(t,e,i),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(t,e,i){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(t,e,i)}function HCameraElement(t,e,i){this.initFrame(),this.initBaseData(t,e,i),this.initHierarchy();var r=PropertyFactory.getProp;if(this.pe=r(this,t.pe,0,0,this),t.ks.p.s?(this.px=r(this,t.ks.p.x,1,0,this),this.py=r(this,t.ks.p.y,1,0,this),this.pz=r(this,t.ks.p.z,1,0,this)):this.p=r(this,t.ks.p,1,0,this),t.ks.a&&(this.a=r(this,t.ks.a,1,0,this)),t.ks.or.k.length&&t.ks.or.k[0].to){var n,s=t.ks.or.k.length;for(n=0;n<s;n+=1)t.ks.or.k[n].to=null,t.ks.or.k[n].ti=null}this.or=r(this,t.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=r(this,t.ks.rx,0,degToRads,this),this.ry=r(this,t.ks.ry,0,degToRads,this),this.rz=r(this,t.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}function HImageElement(t,e,i){this.assetData=e.getAssetData(t.refId),this.initElement(t,e,i)}function HybridRendererBase(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:e&&e.className||"",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(e&&!1===e.hideOnTransparent),filterSize:{width:e&&e.filterSize&&e.filterSize.width||"400%",height:e&&e.filterSize&&e.filterSize.height||"400%",x:e&&e.filterSize&&e.filterSize.x||"-100%",y:e&&e.filterSize&&e.filterSize.y||"-100%"}},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}function HCompElement(t,e,i){this.layers=t.layers,this.supports3d=!t.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,i),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function HybridRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:e&&e.className||"",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(e&&!1===e.hideOnTransparent),filterSize:{width:e&&e.filterSize&&e.filterSize.width||"400%",height:e&&e.filterSize&&e.filterSize.height||"400%",x:e&&e.filterSize&&e.filterSize.x||"-100%",y:e&&e.filterSize&&e.filterSize.y||"-100%"},runExpressions:!e||void 0===e.runExpressions||e.runExpressions},this.globalData={_mdf:!1,frameNum:-1,renderConfig:this.renderConfig},this.pendingElements=[],this.elements=[],this.threeDElements=[],this.destroyed=!1,this.camera=null,this.supports3d=!0,this.rendererType="html"}CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var t=this.globalData.canvasContext,e=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(e);var i=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(i),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffe
vendor: 27,306 bytes, line 1
1ctsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var t=this.globalData;if(t.blendMode!==this.data.bm){t.blendMode=this.data.bm;var e=getBlendMode(this.data.bm);t.canvasContext.globalCompositeOperation=e}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){this.hidden||this.isInRange&&!this.isTransparent||(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(t){t.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var t=this.buffers[0].getContext("2d");this.clearCanvas(t),t.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var t=this.buffers[1],e=t.getContext("2d");if(this.clearCanvas(e),e.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform),this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1).renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var i=assetLoader.getLumaCanvas(this.canvasContext.canvas);i.getContext("2d").drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(i,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(t,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(t){if(!this.hidden&&!this.data.hd&&(1!==this.data.td||t)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var e=0===this.data.ty;this.prepareLayer(),this.globalData.renderer.save(e),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(e),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement,CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated,extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(t,e){var i={data:t,type:t.ty,preTransforms:this.transformsManager.addTransformSequence(e),transforms:[],elements:[],closed:!0===t.hd},r={};if("fl"===t.ty||"st"===t.ty?(r.c=PropertyFactory.getProp(this,t.c,1,255,this),r.c.k||(i.co="rgb("+bmFloor(r.c.v[0])+","+bmFloor(r.c.v[1])+","+bmFloor(r.c.v[2])+")")):("gf"===t.ty||"gs"===t.ty)&&(r.s=PropertyFactory.getProp(this,t.s,1,null,this),r.e=PropertyFactory.getProp(this,t.e,1,null,this),r.h=PropertyFactory.getProp(this,t.h||{k:0},0,.01,this),r.a=PropertyFactory.getProp(this,t.a||{k:0},0,degToRads,this),r.g=new GradientProperty(this,t.g,this)),r.o=PropertyFactory.getProp(this,t.o,0,.01,this),"st"===t.ty||"gs"===t.ty){if(i.lc=lineCapEnum[t.lc||2],i.lj=lineJoinEnum[t.lj||2],1==t.lj&&(i.ml=t.ml),r.w=PropertyFactory.getProp(this,t.w,0,null,this),r.w.k||(i.wi=r.w.v),t.d){var n=new DashProperty(this,t.d,"canvas",this);r.d=n,r.d.k||(i.da=r.d.dashArray,i.do=r.d.dashoffset[0])}}else i.r=2===t.r?"evenodd":"nonzero";return this.stylesList.push(i),r.style=i,r},CVShapeElement.prototype.createGroupElement=function(){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(t){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,t.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,t,this)}}},CVShapeElement.prototype.createShapeElement=function(t){var e=new CVShapeData(this,t,this.stylesList,this.transformsManager);return this.shapes.push(e),this.addShapeToModifiers(e),e},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var t,e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(t){var e,i=this.stylesList.length;for(e=0;e<i;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.push(t)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var t,e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.pop()},CVShapeElement.prototype.closeStyles=function(t){var e,i=t.length;for(e=0;e<i;e+=1)t[e].closed=!0},CVShapeElement.prototype.searchShapes=function(t,e,i,r,n){var s,a,o,l,h,u,c=t.length-1,f=[],p=[],d=[].concat(n);for(s=c;s>=0;s-=1){if((l=this.searchProcessedElement(t[s]))?e[s]=i[l-1]:t[s]._shouldRender=r,"fl"===t[s].ty||"st"===t[s].ty||"gf"===t[s].ty||"gs"===t[s].ty)l?e[s].style.closed=!1:e[s]=this.createStyleElement(t[s],d),f.push(e[s].style);else if("gr"===t[s].ty){if(l)for(a=0,o=e[s].it.length;a<o;a+=1)e[s].prevViewData[a]=e[s].it[a];else e[s]=this.createGroupElement(t[s]);this.searchShapes(t[s].it,e[s].it,e[s].prevViewData,r,d)}else"tr"===t[s].ty?(l||(u=this.createTransformElement(t[s]),e[s]=u),d.push(e[s]),this.addTransformToStyleList(e[s])):"sh"===t[s].ty||"rc"===t[s].ty||"el"===t[s].ty||"sr"===t[s].ty?l||(e[s]=this.createShapeElement(t[s])):"tm"===t[s].ty||"rd"===t[s].ty||"pb"===t[s].ty||"zz"===t[s].ty||"op"===t[s].ty?(l?(h=e[s]).closed=!1:((h=ShapeModifiers.getModifier(t[s].ty)).init(this,t[s]),e[s]=h,this.shapeModifiers.push(h)),p.push(h)):"rp"===t[s].ty&&(l?(h=e[s]).closed=!0:(h=ShapeModifiers.getModifier(t[s].ty),e[s]=h,h.init(this,t,s,e),this.shapeModifiers.push(h),r=!1),p.push(h));this.addProcessedElement(t[s],s+1)}for(this.removeTransformFromStyleList(),this.closeStyles(f),c=p.length,s=0;s<c;s+=1)p[s].closed=!0},CVShapeElement.prototype.renderInnerContent=function(){this.transformHelper.opacity=1,this.transformHelper._opMdf=!1,this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame),this.renderShape(this.transformHelper,this.shapesData,this.itemsData,!0)},CVShapeElement.prototype.renderShapeTransform=function(t,e){(t._opMdf||e.op._mdf||this._isFirstFrame)&&(e.opacity=t.opacity,e.opacity*=e.op.v,e._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var t,e,i,r,n,s,a,o,l,h=this.stylesList.length,u=this.globalData.renderer,c=this.globalData.canvasContext;for(t=0;t<h;t+=1)if(!(("st"===(o=(l=this.stylesList[t]).type)||"gs"===o)&&0===l.wi||!l.data._shouldRender||0===l.coOp||0===this.globalData.currentGlobalAlpha)){for(u.save(),s=l.elements,"st"===o||"gs"===o?(u.ctxStrokeStyle("st"===o?l.co:l.grd),u.ctxLineWidth(l.wi),u.ctxLineCap(l.lc),u.ctxLineJoin(l.lj),u.ctxMiterLimit(l.ml||0)):u.ctxFillStyle("fl"===o?l.co:l.grd),u.ctxOpacity(l.coOp),"st"!==o&&"gs"!==o&&c.beginPath(),u.ctxTransform(l.preTransforms.finalTransform.props),i=s.length,e=0;e<i;e+=1){for(("st"===o||"gs"===o)&&(c.beginPath(),l.da&&(c.setLineDash(l.da),c.lineDashOffset=l.do)),n=(a=s[e].trNodes).length,r=0;r<n;r+=1)"m"===a[r].t?c.moveTo(a[r].p[0],a[r].p[1]):"c"===a[r].t?c.bezierCurveTo(a[r].pts[0],a[r].pts[1],a[r].pts[2],a[r].pts[3],a[r].pts[4],a[r].pts[5]):c.closePath();("st"===o||"gs"===o)&&(u.ctxStroke(),l.da&&c.setLineDash(this.dashResetter))}"st"!==o&&"gs"!==o&&this.globalData.renderer.ctxFill(l.r),u.restore()}},CVShapeElement.prototype.renderShape=function(t,e,i,r){var n,s,a=e.length-1;for(s=t,n=a;n>=0;n-=1)"tr"===e[n].ty?(s=i[n].transform,this.renderShapeTransform(t,s)):"sh"===e[n].ty||"el"===e[n].ty||"rc"===e[n].ty||"sr"===e[n].ty?this.renderPath(e[n],i[n]):"fl"===e[n].ty?this.renderFill(e[n],i[n],s):"st"===e[n].ty?this.renderStroke(e[n],i[n],s):"gf"===e[n].ty||"gs"===e[n].ty?this.renderGradientFill(e[n],i[n],s):"gr"===e[n].ty?this.renderShape(s,e[n].it,i[n].it):e[n].ty;r&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(t,e){if(this._isFirstFrame||e._mdf||t.transforms._mdf){var i,r,n,s=t.trNodes,a=e.paths,o=a._length;s.length=0;var l=t.transforms.finalTransform;for(n=0;n<o;n+=1){var h=a.shapes[n];if(h&&h.v){for(i=1,r=h._length;i<r;i+=1)1===i&&s.push({t:"m",p:l.applyToPointArray(h.v[0][0],h.v[0][1],0)}),s.push({t:"c",pts:l.applyToTriplePoints(h.o[i-1],h.i[i],h.v[i])});1===r&&s.push({t:"m",p:l.applyToPointArray(h.v[0][0],h.v[0][1],0)}),h.c&&r&&(s.push({t:"c",pts:l.applyToTriplePoints(h.o[i-1],h.i[0],h.v[0])}),s.push({t:"z"}))}}t.trNodes=s}},CVShapeElement.prototype.renderPath=function(t,e){if(!0!==t.hd&&t._shouldRender){var i,r=e.styledShapes.length;for(i=0;i<r;i+=1)this.renderStyledShape(e.styledShapes[i],e.sh)}},CVShapeElement.prototype.renderFill=function(t,e,i){var r=e.style;(e.c._mdf||this._isFirstFrame)&&(r.co="rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||i._opMdf||this._isFirstFrame)&&(r.coOp=e.o.v*i.opacity)},CVShapeElement.prototype.renderGradientFill=function(t,e,i){var r=e.style;if(!r.grd||e.g._mdf||e.s._mdf||e.e._mdf||1!==t.t&&(e.h._mdf||e.a._mdf)){var n,s,a=this.globalData.canvasContext,o=e.s.v,l=e.e.v;if(1===t.t)n=a.createLinearGradient(o[0],o[1],l[0],l[1]);else{var h=Math.sqrt(Math.pow(o[0]-l[0],2)+Math.pow(o[1]-l[1],2)),u=Math.atan2(l[1]-o[1],l[0]-o[0]),c=e.h.v;c>=1?c=.99:c<=-1&&(c=-.99);var f=h*c,p=Math.cos(u+e.a.v)*f+o[0],d=Math.sin(u+e.a.v)*f+o[1];n=a.createRadialGradient(p,d,0,o[0],o[1],h)}var m=t.g.p,g=e.g.c,v=1;for(s=0;s<m;s+=1)e.g._hasOpacity&&e.g._collapsable&&(v=e.g.o[2*s+1]),n.addColorStop(g[4*s]/100,"rgba("+g[4*s+1]+","+g[4*s+2]+","+g[4*s+3]+","+v+")");r.grd=n}r.coOp=e.o.v*i.opacity},CVShapeElement.prototype.renderStroke=function(t,e,i){var r=e.style,n=e.d;n&&(n._mdf||this._isFirstFrame)&&(r.da=n.dashArray,r.do=n.dashoffset[0]),(e.c._mdf||this._isFirstFrame)&&(r.co="rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||i._opMdf||this._isFirstFrame)&&(r.coOp=e.o.v*i.opacity),(e.w._mdf||this._isFirstFrame)&&(r.wi=e.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var t,e,i,r,n,s,a,o,l,h,u,c,f=this.textProperty.currentData;this.renderedLetters=createSizedArray(f.l?f.l.length:0);var p=!1;f.fc?(p=!0,this.values.fill=this.buildColor(f.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=p;var d=!1;f.sc&&(d=!0,this.values.stroke=this.buildColor(f.sc),this.values.sWidth=f.sw);var m=this.globalData.fontManager.getFontByName(f.f),g=f.l,v=this.mHelper;this.stroke=d,this.values.fValue=f.finalSize+"px "+this.globalData.fontManager.getFontByName(f.f).fFamily,e=f.finalText.length;var y=this.data.singleShape,b=.001*f.tr*f.finalSize,x=0,_=0,w=!0,k=0;for(t=0;t<e;t+=1){r=(i=this.globalData.fontManager.getCharData(f.finalText[t],m.fStyle,this.globalData.fontManager.getFontByName(f.f).fFamily))&&i.data||{},v.reset(),y&&g[t].n&&(x=-b,_+=f.yOffset+(w?1:0),w=!1),l=(a=r.shapes?r.shapes[0].it:[]).length,v.scale(f.finalSize/100,f.finalSize/100),y&&this.applyTextPropertiesToMatrix(f,v,g[t].line,x,_),u=createSizedArray(l-1);var E=0;for(o=0;o<l;o+=1)if("sh"===a[o].ty){for(n=1,s=a[o].ks.k.i.length,h=a[o].ks.k,c=[];n<s;n+=1)1===n&&c.push(v.applyToX(h.v[0][0],h.v[0][1],0),v.applyToY(h.v[0][0],h.v[0][1],0)),c.push(v.applyToX(h.o[n-1][0],h.o[n-1][1],0),v.applyToY(h.o[n-1][0],h.o[n-1][1],0),v.applyToX(h.i[n][0],h.i[n][1],0),v.applyToY(h.i[n][0],h.i[n][1],0),v.applyToX(h.v[n][0],h.v[n][1],0),v.applyToY(h.v[n][0],h.v[n][1],0));c.push(v.applyToX(h.o[n-1][0],h.o[n-1][1],0),v.applyToY(h.o[n-1][0],h.o[n-1][1],0),v.applyToX(h.i[0][0],h.i[0][1],0),v.applyToY(h.i[0][0],h.i[0][1],0),v.applyToX(h.v[0][0],h.v[0][1],0),v.applyToY(h.v[0][0],h.v[0][1],0)),u[E]=c,E+=1}y&&(x+=g[t].l+b),this.textSpans[k]?this.textSpans[k].elem=u:this.textSpans[k]={elem:u},k+=1}},CVTextElement.prototype.renderInnerContent=function(){this.validateText(),this.canvasContext.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var t,e,i,r,n,s,a,o,l,h=this.textAnimator.renderedLetters,u=this.textProperty.currentData.l;e=u.length;var c=null,f=null,p=null,d=this.globalData.renderer;for(t=0;t<e;t+=1)if(!u[t].n){if((a=h[t])&&(d.save(),d.ctxTransform(a.p),d.ctxOpacity(a.o)),this.fill){for(a&&a.fc?c!==a.fc&&(d.ctxFillStyle(a.fc),c=a.fc):c!==this.values.fill&&(c=this.values.fill,d.ctxFillStyle(this.values.fill)),r=(o=this.textSpans[t].elem).length,this.globalData.canvasContext.beginPath(),i=0;i<r;i+=1)for(s=(l=o[i]).length,this.globalData.canvasContext.moveTo(l[0],l[1]),n=2;n<s;n+=6)this.globalData.canvasContext.bezierCurveTo(l[n],l[n+1],l[n+2],l[n+3],l[n+4],l[n+5]);this.globalData.canvasContext.closePath(),d.ctxFill()}if(this.stroke){for(a&&a.sw?p!==a.sw&&(p=a.sw,d.ctxLineWidth(a.sw)):p!==this.values.sWidth&&(p=this.values.sWidth,d.ctxLineWidth(this.values.sWidth)),a&&a.sc?f!==a.sc&&(f=a.sc,d.ctxStrokeStyle(a.sc)):f!==this.values.stroke&&(f=this.values.stroke,d.ctxStrokeStyle(this.values.stroke)),r=(o=this.textSpans[t].elem).length,this.globalData.canvasContext.beginPath(),i=0;i<r;i+=1)for(s=(l=o[i]).length,this.globalData.canvasContext.moveTo(l[0],l[1]),n=2;n<s;n+=6)this.globalData.canvasContext.bezierCurveTo(l[n],l[n+1],l[n+2],l[n+3],l[n+4],l[n+5]);this.globalData.canvasContext.closePath(),d.ctxStroke()}a&&this.globalData.renderer.restore()}},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var t,e,i=createTag("canvas");i.width=this.assetData.w,i.height=this.assetData.h;var r=i.getContext("2d"),n=this.img.width,s=this.img.height,a=n/s,o=this.assetData.w/this.assetData.h,l=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;a>o&&"xMidYMid slice"===l||a<o&&"xMidYMid slice"!==l?t=(e=s)*o:e=(t=n)/o,r.drawImage(this.img,(n-t)/2,(s-e)/2,t,e,0,0,this.assetData.w,this.assetData.h),this.img=i}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)},extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(t){return new CVShapeElement(t,this.globalData,this)},CanvasRendererBase.prototype.createText=function(t){return new CVTextElement(t,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(t){return new CVImageElement(t,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(t){return new CVSolidElement(t,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(t){(1!==t[0]||0!==t[1]||0!==t[4]||1!==t[5]||0!==t[12]||0!==t[13])&&this.canvasContext.transform(t[0],t[1],t[4],t[5],t[12],t[13])},CanvasRendererBase.prototype.ctxOpacity=function(t){this.canvasContext.globalAlpha*=t<0?0:t},CanvasRendererBase.prototype.ctxFillStyle=function(t){this.canvasContext.fillStyle=t},CanvasRendererBase.prototype.ctxStrokeStyle=function(t){this.canvasContext.strokeStyle=t},CanvasRendererBase.prototype.ctxLineWidth=function(t){this.canvasContext.lineWidth=t},CanvasRendererBase.prototype.ctxLineCap=function(t){this.canvasContext.lineCap=t},CanvasRendererBase.prototype.ctxLineJoin=function(t){this.canvasContext.lineJoin=t},CanvasRendererBase.prototype.ctxMiterLimit=function(t){this.canvasContext.miterLimit=t},CanvasRendererBase.prototype.ctxFill=function(t){this.canvasContext.fill(t)},CanvasRendererBase.prototype.ctxFillRect=function(t,e,i,r){this.canvasContext.fillRect(t,e,i,r)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}this.contextData.reset()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(t){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}t&&(this.globalData.blendMode="source-over"),this.contextData.restore(t)},CanvasRendererBase.prototype.configAnimation=function(t){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var e=this.animationItem.container.style;e.width="100%",e.height="100%";var i="0px 0px 0px";e.transformOrigin=i,e.mozTransformOrigin=i,e.webkitTransformOrigin=i,e["-webkit-transform"]=i,e.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=t,this.layers=t.layers,this.transformCanvas={w:t.w,h:t.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(t,document.body),this.globalData.canvasContext=this.canvasContext,this.globalData.renderer=this,this.globalData.isDashed=!1,this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.globalData.transformCanvas=this.transformCanvas,this.elements=createSizedArray(t.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(t,e){if(this.reset(),t?(i=t,r=e,this.canvasContext.canvas.width=i,this.canvasContext.canvas.height=r):(this.animationItem.wrapper&&this.animationItem.container?(i=this.animationItem.wrapper.offsetWidth,r=this.animationItem.wrapper.offsetHeight):(i=this.canvasContext.canvas.width,r=this.canvasContext.canvas.height),this.canvasContext.canvas.width=i*this.renderConfig.dpr,this.canvasContext.canvas.height=r*this.renderConfig.dpr),-1!==this.renderConfig.preserveAspectRatio.indexOf("meet")||-1!==this.renderConfig.preserveAspectRatio.indexOf("slice")){var i,r,n,s,a=this.renderConfig.preserveAspectRatio.split(" "),o=a[1]||"meet",l=a[0]||"xMidYMid",h=l.substr(0,4),u=l.substr(4);n=i/r,(s=this.transformCanvas.w/this.transformCanvas.h)>n&&"meet"===o||s<n&&"slice"===o?(this.transformCanvas.sx=i/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=i/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=r/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=r/(this.transformCanvas.h/this.renderConfig.dpr)),"xMid"===h&&(s<n&&"meet"===o||s>n&&"slice"===o)?this.transformCanvas.tx=(i-this.transformCanvas.w*(r/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===h&&(s<n&&"meet"===o||s>n&&"slice"===o)?this.transformCanvas.tx=(i-this.transformCanvas.w*(r/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,"YMid"===u&&(s>n&&"meet"===o||s<n&&"slice"===o)?this.transformCanvas.ty=(r-this.transformCanvas.h*(i/this.transformCanvas.w))/2*this.renderConfig.dpr:"YMax"===u&&(s>n&&"meet"===o||s<n&&"slice"===o)?this.transformCanvas.ty=(r-this.transformCanvas.h*(i/this.transformCanvas.w))*this.renderConfig.dpr:this.transformCanvas.ty=0}else"none"===this.renderConfig.preserveAspectRatio?(this.transformCanvas.sx=i/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=r/(this.transformCanvas.h/this.renderConfig.dpr)):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0;this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){var t;for(this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),t=(this.layers?this.layers.length:0)-1;t>=0;t-=1)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(t,e){if((this.renderedFrame!==t||!0!==this.renderConfig.clearCanvas||e)&&!this.destroyed&&-1!==t){this.renderedFrame=t,this.globalData.frameNum=t-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||e,this.globalData.projectInterface.currentFrame=t;var i,r=this.layers.length;for(this.completeLayers||this.checkLayers(t),i=r-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].prepareFrame(t-this.layers[i].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),i=r-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&this.elements[i].renderFrame();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!==this.layers[t].ty){var i=this.createItem(this.layers[t],this,this.globalData);e[t]=i,i.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"},CVContextData.prototype.duplicate=function(){var t=2*this._length,e=0;for(e=this._length;e<t;e+=1)this.stack[e]=new CanvasContext;this._length=t},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(t){this.cArrPos-=1;var e,i=this.stack[this.cArrPos],r=i.transform,n=this.cTr.props;for(e=0;e<16;e+=1)n[e]=r[e];if(t){this.nativeContext.restore();var s=this.stack[this.cArrPos+1];this.appliedFillStyle=s.fillStyle,this.appliedStrokeStyle=s.strokeStyle,this.appliedLineWidth=s.lineWidth,this.appliedLineCap=s.lineCap,this.appliedLineJoin=s.lineJoin,this.appliedMiterLimit=s.miterLimit}this.nativeContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13]),(t||-1!==i.opacity&&this.currentOpacity!==i.opacity)&&(this.nativeContext.globalAlpha=i.opacity,this.currentOpacity=i.opacity),this.currentFillStyle=i.fillStyle,this.currentStrokeStyle=i.strokeStyle,this.currentLineWidth=i.lineWidth,this.currentLineCap=i.lineCap,this.currentLineJoin=i.lineJoin,this.currentMiterLimit=i.miterLimit},CVContextData.prototype.save=function(t){t&&this.nativeContext.save();var e,i=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var r=this.stack[this.cArrPos];for(e=0;e<16;e+=1)r.transform[e]=i[e];this.cArrPos+=1;var n=this.stack[this.cArrPos];n.opacity=r.opacity,n.fillStyle=r.fillStyle,n.strokeStyle=r.strokeStyle,n.lineWidth=r.lineWidth,n.lineCap=r.lineCap,n.lineJoin=r.lineJoin,n.miterLimit=r.miterLimit},CVContextData.prototype.setOpacity=function(t){this.stack[this.cArrPos].opacity=t},CVContextData.prototype.setContext=function(t){this.nativeContext=t},CVContextData.prototype.fillStyle=function(t){this.stack[this.cArrPos].fillStyle!==t&&(this.currentFillStyle=t,this.stack[this.cArrPos].fillStyle=t)},CVContextData.prototype.strokeStyle=function(t){this.stack[this.cArrPos].strokeStyle!==t&&(this.currentStrokeStyle=t,this.stack[this.cArrPos].strokeStyle=t)},CVContextData.prototype.lineWidth=function(t){this.stack[this.cArrPos].lineWidth!==t&&(this.currentLineWidth=t,this.stack[this.cArrPos].lineWidth=t)},CVContextData.prototype.lineCap=function(t){this.stack[this.cArrPos].lineCap!==t&&(this.currentLineCap=t,this.stack[this.cArrPos].lineCap=t)},CVContextData.prototype.lineJoin=function(t){this.stack[this.cArrPos].lineJoin!==t&&(this.currentLineJoin=t,this.stack[this.cArrPos].lineJoin=t)},CVContextData.prototype.miterLimit=function(t){this.stack[this.cArrPos].miterLimit!==t&&(this.currentMiterLimit=t,this.stack[this.cArrPos].miterLimit=t)},CVContextData.prototype.transform=function(t){this.transformMat.cloneFromProps(t);var e=this.cTr;this.transformMat.multiply(e),e.cloneFromProps(this.transformMat.props);var i=e.props;this.nativeContext.setTransform(i[0],i[1],i[4],i[5],i[12],i[13])},CVContextData.prototype.opacity=function(t){var e=this.stack[this.cArrPos].opacity;e*=t<0?0:t,this.stack[this.cArrPos].opacity!==e&&(this.currentOpacity!==t&&(this.nativeContext.globalAlpha=t,this.currentOpacity=t),this.stack[this.cArrPos].opacity=e)},CVContextData.prototype.fill=function(t){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(t)}
vendor: 5,636 bytes, line 1
1,CVContextData.prototype.fillRect=function(t,e,i,r){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(t,e,i,r)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()},extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var t,e=this.canvasContext;for(e.beginPath(),e.moveTo(0,0),e.lineTo(this.data.w,0),e.lineTo(this.data.w,this.data.h),e.lineTo(0,this.data.h),e.lineTo(0,0),e.clip(),t=this.layers.length-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},CVCompElement.prototype.destroy=function(){var t;for(t=this.layers.length-1;t>=0;t-=1)this.elements[t]&&this.elements[t].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)},HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0!==this.data.bm&&this.setBlendMode()},renderElement:function(){var t=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var e=this.finalTransform.mat.toCSS();t.transform=e,t.webkitTransform=e}this.finalTransform._opMdf&&(t.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting,extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var t;this.data.hasMask?((t=createNS("rect")).setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((t=createTag("div")).style.width=this.data.sw+"px",t.style.height=this.data.sh+"px",t.style.backgroundColor=this.data.sc),this.layerElement.appendChild(t)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var t;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),t=this.svgElement;else{t=createNS("svg");var e=this.comp.data?this.comp.data:this.globalData.compSize;t.setAttribute("width",e.w),t.setAttribute("height",e.h),t.appendChild(this.shapesContainer),this.layerElement.appendChild(t)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=t},HShapeElement.prototype.getTransformedPoint=function(t,e){var i,r=t.length;for(i=0;i<r;i+=1)e=t[i].mProps.v.applyToPointArray(e[0],e[1],0);return e},HShapeElement.prototype.calculateShapeBoundingBox=function(t,e){var i,r,n,s,a,o=t.sh.v,l=t.transformers,h=o._length;if(!(h<=1)){for(i=0;i<h-1;i+=1)r=this.getTransformedPoint(l,o.v[i]),n=this.getTransformedPoint(l,o.o[i]),s=this.getTransformedPoint(l,o.i[i+1]),a=this.getTransformedPoint(l,o.v[i+1]),this.checkBounds(r,n,s,a,e);o.c&&(r=this.getTransformedPoint(l,o.v[i]),n=this.getTransformedPoint(l,o.o[i]),s=this.getTransformedPoint(l,o.i[0]),a=this.getTransformedPoint(l,o.v[0]),this.checkBounds(r,n,s,a,e))}}
vendor: 76,412 bytes, line 1
1,HShapeElement.prototype.checkBounds=function(t,e,i,r,n){this.getBoundsOfCurve(t,e,i,r);var s=this.shapeBoundingBox;n.x=bmMin(s.left,n.x),n.xMax=bmMax(s.right,n.xMax),n.y=bmMin(s.top,n.y),n.yMax=bmMax(s.bottom,n.yMax)},HShapeElement.prototype.shapeBoundingBox={left:0,right:0,top:0,bottom:0},HShapeElement.prototype.tempBoundingBox={x:0,xMax:0,y:0,yMax:0,width:0,height:0},HShapeElement.prototype.getBoundsOfCurve=function(t,e,i,r){for(var n,s,a,o,l,h,u,c=[[t[0],r[0]],[t[1],r[1]]],f=0;f<2;++f)s=6*t[f]-12*e[f]+6*i[f],n=-3*t[f]+9*e[f]-9*i[f]+3*r[f],a=3*e[f]-3*t[f],s|=0,a|=0,0==(n|=0)&&0===s||(0===n?(o=-a/s)>0&&o<1&&c[f].push(this.calculateF(o,t,e,i,r,f)):(l=s*s-4*a*n)>=0&&((h=(-s+bmSqrt(l))/(2*n))>0&&h<1&&c[f].push(this.calculateF(h,t,e,i,r,f)),(u=(-s-bmSqrt(l))/(2*n))>0&&u<1&&c[f].push(this.calculateF(u,t,e,i,r,f))));this.shapeBoundingBox.left=bmMin.apply(null,c[0]),this.shapeBoundingBox.top=bmMin.apply(null,c[1]),this.shapeBoundingBox.right=bmMax.apply(null,c[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,c[1])},HShapeElement.prototype.calculateF=function(t,e,i,r,n,s){return bmPow(1-t,3)*e[s]+3*bmPow(1-t,2)*t*i[s]+3*(1-t)*bmPow(t,2)*r[s]+bmPow(t,3)*n[s]},HShapeElement.prototype.calculateBoundingBox=function(t,e){var i,r=t.length;for(i=0;i<r;i+=1)t[i]&&t[i].sh?this.calculateShapeBoundingBox(t[i],e):t[i]&&t[i].it?this.calculateBoundingBox(t[i].it,e):t[i]&&t[i].style&&t[i].w&&this.expandStrokeBoundingBox(t[i].w,e)},HShapeElement.prototype.expandStrokeBoundingBox=function(t,e){var i=0;if(t.keyframes){for(var r=0;r<t.keyframes.length;r+=1){var n=t.keyframes[r].s;n>i&&(i=n)}i*=t.mult}else i=t.v*t.mult;e.x-=i,e.xMax+=i,e.y-=i,e.yMax+=i},HShapeElement.prototype.currentBoxContains=function(t){return this.currentBBox.x<=t.x&&this.currentBBox.y<=t.y&&this.currentBBox.width+this.currentBBox.x>=t.x+t.width&&this.currentBBox.height+this.currentBBox.y>=t.y+t.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var t=this.tempBoundingBox,e=999999;if(t.x=e,t.xMax=-e,t.y=e,t.yMax=-e,this.calculateBoundingBox(this.itemsData,t),t.width=t.xMax<t.x?0:t.xMax-t.x,t.height=t.yMax<t.y?0:t.yMax-t.y,!this.currentBoxContains(t)){var i=!1;if(this.currentBBox.w!==t.width&&(this.currentBBox.w=t.width,this.shapeCont.setAttribute("width",t.width),i=!0),this.currentBBox.h!==t.height&&(this.currentBBox.h=t.height,this.shapeCont.setAttribute("height",t.height),i=!0),i||this.currentBBox.x!==t.x||this.currentBBox.y!==t.y){this.currentBBox.w=t.width,this.currentBBox.h=t.height,this.currentBBox.x=t.x,this.currentBBox.y=t.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var r=this.shapeCont.style,n="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";r.transform=n,r.webkitTransform=n}}}},extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement,ITextElement],HTextElement),HTextElement.prototype.createContent=function(){if(this.isMasked=this.checkMasks(),this.isMasked){this.renderType="svg",this.compW=this.comp.data.w,this.compH=this.comp.data.h,this.svgElement.setAttribute("width",this.compW),this.svgElement.setAttribute("height",this.compH);var t=createNS("g");this.maskedElement.appendChild(t),this.innerElem=t}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var t=this.textProperty.currentData;this.renderedLetters=createSizedArray(t.l?t.l.length:0);var e=this.innerElem.style,i=t.fc?this.buildColor(t.fc):"rgba(0,0,0,0)";e.fill=i,e.color=i,t.sc&&(e.stroke=this.buildColor(t.sc),e.strokeWidth=t.sw+"px");var r=this.globalData.fontManager.getFontByName(t.f);if(!this.globalData.fontManager.chars){if(e.fontSize=t.finalSize+"px",e.lineHeight=t.finalSize+"px",r.fClass)this.innerElem.className=r.fClass;else{e.fontFamily=r.fFamily;var n=t.fWeight,s=t.fStyle;e.fontStyle=s,e.fontWeight=n}}var a=t.l;c=a.length;var o=this.mHelper,l="",h=0;for(u=0;u<c;u+=1){if(this.globalData.fontManager.chars?(this.textPaths[h]?f=this.textPaths[h]:((f=createNS("path")).setAttribute("stroke-linecap",lineCapEnum[1]),f.setAttribute("stroke-linejoin",lineJoinEnum[2]),f.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[h]?d=(p=this.textSpans[h]).children[0]:((p=createTag("div")).style.lineHeight=0,(d=createNS("svg")).appendChild(f),styleDiv(p)))):this.isMasked?f=this.textPaths[h]?this.textPaths[h]:createNS("text"):this.textSpans[h]?(p=this.textSpans[h],f=this.textPaths[h]):(styleDiv(p=createTag("span")),styleDiv(f=createTag("span")),p.appendChild(f)),this.globalData.fontManager.chars){var u,c,f,p,d,m,g,v=this.globalData.fontManager.getCharData(t.finalText[u],r.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily);if(g=v?v.data:null,o.reset(),g&&g.shapes&&g.shapes.length&&(m=g.shapes[0].it,o.scale(t.finalSize/100,t.finalSize/100),l=this.createPathShape(o,m),f.setAttribute("d",l)),this.isMasked)this.innerElem.appendChild(f);else{if(this.innerElem.appendChild(p),g&&g.shapes){document.body.appendChild(d);var y=d.getBBox();d.setAttribute("width",y.width+2),d.setAttribute("height",y.height+2),d.setAttribute("viewBox",y.x-1+" "+(y.y-1)+" "+(y.width+2)+" "+(y.height+2));var b=d.style,x="translate("+(y.x-1)+"px,"+(y.y-1)+"px)";b.transform=x,b.webkitTransform=x,a[u].yOffset=y.y-1}else d.setAttribute("width",1),d.setAttribute("height",1);p.appendChild(d)}}else if(f.textContent=a[u].val,f.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(f);else{this.innerElem.appendChild(p);var _=f.style,w="translate3d(0,"+-t.finalSize/1.2+"px,0)";_.transform=w,_.webkitTransform=w}this.isMasked?this.textSpans[h]=f:this.textSpans[h]=p,this.textSpans[h].style.display="block",this.textPaths[h]=f,h+=1}for(;h<this.textSpans.length;)this.textSpans[h].style.display="none",h+=1},HTextElement.prototype.renderInnerContent=function(){if(this.validateText(),this.data.singleShape){if(!this._isFirstFrame&&!this.lettersChangedFlag)return;if(this.isMasked&&this.finalTransform._matMdf){this.svgElement.setAttribute("viewBox",-this.finalTransform.mProp.p.v[0]+" "+-this.finalTransform.mProp.p.v[1]+" "+this.compW+" "+this.compH),t=this.svgElement.style;var t,e,i,r,n,s,a="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";t.transform=a,t.webkitTransform=a}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){var o=0,l=this.textAnimator.renderedLetters,h=this.textProperty.currentData.l;for(e=0,i=h.length;e<i;e+=1)h[e].n?o+=1:(n=this.textSpans[e],s=this.textPaths[e],r=l[o],o+=1,r._mdf.m&&(this.isMasked?n.setAttribute("transform",r.m):(n.style.webkitTransform=r.m,n.style.transform=r.m)),n.style.opacity=r.o,r.sw&&r._mdf.sw&&s.setAttribute("stroke-width",r.sw),r.sc&&r._mdf.sc&&s.setAttribute("stroke",r.sc),r.fc&&r._mdf.fc&&(s.setAttribute("fill",r.fc),s.style.color=r.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var u=this.innerElem.getBBox();this.currentBBox.w!==u.width&&(this.currentBBox.w=u.width,this.svgElement.setAttribute("width",u.width)),this.currentBBox.h!==u.height&&(this.currentBBox.h=u.height,this.svgElement.setAttribute("height",u.height));var c=1;if(this.currentBBox.w!==u.width+2*c||this.currentBBox.h!==u.height+2*c||this.currentBBox.x!==u.x-c||this.currentBBox.y!==u.y-c){this.currentBBox.w=u.width+2*c,this.currentBBox.h=u.height+2*c,this.currentBBox.x=u.x-c,this.currentBBox.y=u.y-c,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),t=this.svgElement.style;var f="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";t.transform=f,t.webkitTransform=f}}}},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var t,e,i,r,n=this.comp.threeDElements.length;for(t=0;t<n;t+=1)if("3d"===(e=this.comp.threeDElements[t]).type){i=e.perspectiveElem.style,r=e.container.style;var s=this.pe.v+"px",a="0px 0px 0px",o="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";i.perspective=s,i.webkitPerspective=s,r.transformOrigin=a,r.mozTransformOrigin=a,r.webkitTransformOrigin=a,i.transform=o,i.webkitTransform=o}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var t=this._isFirstFrame;if(this.hierarchy)for(i=0,r=this.hierarchy.length;i<r;i+=1)t=this.hierarchy[i].finalTransform.mProp._mdf||t;if(t||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(i=r=this.hierarchy.length-1;i>=0;i-=1){var e=this.hierarchy[i].finalTransform.mProp;this.mat.translate(-e.p.v[0],-e.p.v[1],e.p.v[2]),this.mat.rotateX(-e.or.v[0]).rotateY(-e.or.v[1]).rotateZ(e.or.v[2]),this.mat.rotateX(-e.rx.v).rotateY(-e.ry.v).rotateZ(e.rz.v),this.mat.scale(1/e.s.v[0],1/e.s.v[1],1/e.s.v[2]),this.mat.translate(e.a.v[0],e.a.v[1],e.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var i,r,n,s=Math.sqrt(Math.pow((n=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]])[0],2)+Math.pow(n[1],2)+Math.pow(n[2],2)),a=[n[0]/s,n[1]/s,n[2]/s],o=Math.sqrt(a[2]*a[2]+a[0]*a[0]),l=Math.atan2(a[1],o),h=Math.atan2(a[0],-a[2]);this.mat.rotateY(h).rotateX(-l)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var u=!this._prevMat.equals(this.mat);if((u||this.pe._mdf)&&this.comp.threeDElements){for(i=0,r=this.comp.threeDElements.length;i<r;i+=1)if("3d"===(c=this.comp.threeDElements[i]).type){if(u){var c,f,p,d=this.mat.toCSS();(p=c.container.style).transform=d,p.webkitTransform=d}this.pe._mdf&&((f=c.perspectiveElem.style).perspective=this.pe.v+"px",f.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null},extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData),e=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(e),e.crossOrigin="anonymous",e.src=t,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)},extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},HybridRendererBase.prototype.appendElementInPos=function(t,e){var i=t.getBaseElement();if(i){var r=this.layers[e];if(r.ddd&&this.supports3d)this.addTo3dContainer(i,e);else if(this.threeDElements)this.addTo3dContainer(i,e);else{for(var n,s,a=0;a<e;)this.elements[a]&&!0!==this.elements[a]&&this.elements[a].getBaseElement&&(s=this.elements[a],n=(this.layers[a].ddd?this.getThreeDContainerByPos(a):s.getBaseElement())||n),a+=1;n?r.ddd&&this.supports3d||this.layerElement.insertBefore(i,n):r.ddd&&this.supports3d||this.layerElement.appendChild(i)}}},HybridRendererBase.prototype.createShape=function(t){return this.supports3d?new HShapeElement(t,this.globalData,this):new SVGShapeElement(t,this.globalData,this)},HybridRendererBase.prototype.createText=function(t){return this.supports3d?new HTextElement(t,this.globalData,this):new SVGTextLottieElement(t,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(t){return this.camera=new HCameraElement(t,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(t){return this.supports3d?new HImageElement(t,this.globalData,this):new IImageElement(t,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(t){return this.supports3d?new HSolidElement(t,this.globalData,this):new ISolidElement(t,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(t){for(var e=0,i=this.threeDElements.length;e<i;){if(this.threeDElements[e].startPos<=t&&this.threeDElements[e].endPos>=t)return this.threeDElements[e].perspectiveElem;e+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(t,e){var i,r,n=createTag("div");styleDiv(n);var s=createTag("div");if(styleDiv(s),"3d"===e){(i=n.style).width=this.globalData.compSize.w+"px",i.height=this.globalData.compSize.h+"px";var a="50% 50%";i.webkitTransformOrigin=a,i.mozTransformOrigin=a,i.transformOrigin=a;var o="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(r=s.style).transform=o,r.webkitTransform=o}n.appendChild(s);var l={container:s,perspectiveElem:n,startPos:t,endPos:t,type:e};return this.threeDElements.push(l),l},HybridRendererBase.prototype.build3dContainers=function(){var t,e,i=this.layers.length,r="";for(t=0;t<i;t+=1)this.layers[t].ddd&&3!==this.layers[t].ty?"3d"!==r&&(r="3d",e=this.createThreeDContainer(t,"3d")):"2d"!==r&&(r="2d",e=this.createThreeDContainer(t,"2d")),e.endPos=Math.max(e.endPos,t);for(t=(i=this.threeDElements.length)-1;t>=0;t-=1)this.resizerElem.appendChild(this.threeDElements[t].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(t,e){for(var i=0,r=this.threeDElements.length;i<r;){if(e<=this.threeDElements[i].endPos){for(var n,s=this.threeDElements[i].startPos;s<e;)this.elements[s]&&this.elements[s].getBaseElement&&(n=this.elements[s].getBaseElement()),s+=1;n?this.threeDElements[i].container.insertBefore(t,n):this.threeDElements[i].container.appendChild(t);break}i+=1}},HybridRendererBase.prototype.configAnimation=function(t){var e=createTag("div"),i=this.animationItem.wrapper,r=e.style;r.width=t.w+"px",r.height=t.h+"px",this.resizerElem=e,styleDiv(e),r.transformStyle="flat",r.mozTransformStyle="flat",r.webkitTransformStyle="flat",this.renderConfig.className&&e.setAttribute("class",this.renderConfig.className),i.appendChild(e),r.overflow="hidden";var n=createNS("svg");n.setAttribute("width","1"),n.setAttribute("height","1"),styleDiv(n),this.resizerElem.appendChild(n);var s=createNS("defs");n.appendChild(s),this.data=t,this.setupGlobalData(t,n),this.globalData.defs=s,this.layers=t.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var t,e=this.layers?this.layers.length:0;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var t,e,i,r,n=this.animationItem.wrapper.offsetWidth,s=this.animationItem.wrapper.offsetHeight,a=n/s;this.globalData.compSize.w/this.globalData.compSize.h>a?(t=n/this.globalData.compSize.w,e=n/this.globalData.compSize.w,i=0,r=(s-this.globalData.compSize.h*(n/this.globalData.compSize.w))/2):(t=s/this.globalData.compSize.h,e=s/this.globalData.compSize.h,i=(n-this.globalData.compSize.w*(s/this.globalData.compSize.h))/2,r=0);var o=this.resizerElem.style;o.webkitTransform="matrix3d("+t+",0,0,0,0,"+e+",0,0,0,0,1,0,"+i+","+r+",0,1)",o.transform=o.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var t,e=this.globalData.compSize.w,i=this.globalData.compSize.h,r=this.threeDElements.length;for(t=0;t<r;t+=1){var n=this.threeDElements[t].perspectiveElem.style;n.webkitPerspective=Math.sqrt(Math.pow(e,2)+Math.pow(i,2))+"px",n.perspective=n.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(t){var e,i=t.length,r=createTag("div");for(e=0;e<i;e+=1)if(t[e].xt){var n=this.createComp(t[e],r,this.globalData.comp,null);n.initExpressions(),this.globalData.projectInterface.registerComposition(n)}},extendPrototype([HybridRendererBase,ICompElement,HBaseElement],HCompElement),HCompElement.prototype._createBaseContainerElements=HCompElement.prototype.createContainerElements,HCompElement.prototype.createContainerElements=function(){this._createBaseContainerElements(),this.data.hasMask?(this.svgElement.setAttribute("width",this.data.w),this.svgElement.setAttribute("height",this.data.h),this.transformedElement=this.baseElement):this.transformedElement=this.layerElement},HCompElement.prototype.addTo3dContainer=function(t,e){for(var i,r=0;r<e;)this.elements[r]&&this.elements[r].getBaseElement&&(i=this.elements[r].getBaseElement()),r+=1;i?this.layerElement.insertBefore(t,i):this.layerElement.appendChild(t)},HCompElement.prototype.createComp=function(t){return this.supports3d?new HCompElement(t,this.globalData,this):new SVGCompElement(t,this.globalData,this)},extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(t){return this.supports3d?new HCompElement(t,this.globalData,this):new SVGCompElement(t,this.globalData,this)};var CompExpressionInterface=function(){return function(t){function e(e){for(var i=0,r=t.layers.length;i<r;){if(t.layers[i].nm===e||t.layers[i].ind===e)return t.elements[i].layerInterface;i+=1}return null}return Object.defineProperty(e,"_name",{value:t.data.nm}),e.layer=e,e.pixelAspect=1,e.height=t.data.h||t.globalData.compSize.h,e.width=t.data.w||t.globalData.compSize.w,e.pixelAspect=1,e.frameDuration=1/t.globalData.frameRate,e.displayStartTime=0,e.numLayers=t.layers.length,e}}();function _typeof$2(t){return(_typeof$2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function seedRandom(t,e){var i,r=this,n=256,s=6,a=52,o="random",l=e.pow(n,s),h=e.pow(2,a),u=2*h,c=n-1;function f(i,r,a){var c=[],f=g(m((r=!0===r?{entropy:!0}:r||{}).entropy?[i,y(t)]:null===i?v():i,3),c),b=new p(c),x=function(){for(var t=b.g(s),e=l,i=0;t<h;)t=(t+i)*n,e*=n,i=b.g(1);for(;t>=u;)t/=2,e/=2,i>>>=1;return(t+i)/e};return x.int32=function(){return 0|b.g(4)},x.quick=function(){return b.g(4)/4294967296},x.double=x,g(y(b.S),t),(r.pass||a||function(t,i,r,n){return(n&&(n.S&&d(n,b),t.state=function(){return d(b,{})}),r)?(e[o]=t,i):t})(x,f,"global"in r?r.global:this==e,r.state)}function p(t){var e,i=t.length,r=this,s=0,a=r.i=r.j=0,o=r.S=[];for(i||(t=[i++]);s<n;)o[s]=s++;for(s=0;s<n;s++)o[s]=o[a=c&a+t[s%i]+(e=o[s])],o[a]=e;r.g=function(t){for(var e,i=0,s=r.i,a=r.j,o=r.S;t--;)e=o[s=c&s+1],i=i*n+o[c&(o[s]=o[a=c&a+e])+(o[a]=e)];return r.i=s,r.j=a,i}}function d(t,e){return e.i=t.i,e.j=t.j,e.S=t.S.slice(),e}function m(t,e){var i,r=[],n=_typeof$2(t);if(e&&"object"==n)for(i in t)try{r.push(m(t[i],e-1))}catch(t){}return r.length?r:"string"==n?t:t+"\0"}function g(t,e){for(var i,r=t+"",n=0;n<r.length;)e[c&n]=c&(i^=19*e[c&n])+r.charCodeAt(n++);return y(e)}function v(){try{if(i)return y(i.randomBytes(n));var e=new Uint8Array(n);return(r.crypto||r.msCrypto).getRandomValues(e),y(e)}catch(e){var s=r.navigator,a=s&&s.plugins;return[+new Date,r,a,r.screen,y(t)]}}function y(t){return String.fromCharCode.apply(0,t)}e["seed"+o]=f,g(e.random(),t)}function initialize$2(t){seedRandom([],t)}var propTypes={SHAPE:"shape"};function _typeof$1(t){return(_typeof$1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(t){return t.constructor===Array||t.constructor===Float32Array}function isNumerable(t,e){return"number"===t||e instanceof Number||"boolean"===t||"string"===t}function $bm_neg(t){var e=_typeof$1(t);if("number"===e||t instanceof Number||"boolean"===e)return-t;if($bm_isInstanceOfArray(t)){var i,r=t.length,n=[];for(i=0;i<r;i+=1)n[i]=-t[i];return n}return t.propType?t.v:-t}initialize$2(BMMath);var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(t,e){var i=_typeof$1(t),r=_typeof$1(e);if(isNumerable(i,t)&&isNumerable(r,e)||"string"===i||"string"===r)return t+e;if($bm_isInstanceOfArray(t)&&isNumerable(r,e))return t=t.slice(0),t[0]+=e,t;if(isNumerable(i,t)&&$bm_isInstanceOfArray(e))return(e=e.slice(0))[0]=t+e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var n=0,s=t.length,a=e.length,o=[];n<s||n<a;)("number"==typeof t[n]||t[n]instanceof Number)&&("number"==typeof e[n]||e[n]instanceof Number)?o[n]=t[n]+e[n]:o[n]=void 0===e[n]?t[n]:t[n]||e[n],n+=1;return o}return 0}var add=sum;function sub(t,e){var i=_typeof$1(t),r=_typeof$1(e);if(isNumerable(i,t)&&isNumerable(r,e))return"string"===i&&(t=parseInt(t,10)),"string"===r&&(e=parseInt(e,10)),t-e;if($bm_isInstanceOfArray(t)&&isNumerable(r,e))return t=t.slice(0),t[0]-=e,t;if(isNumerable(i,t)&&$bm_isInstanceOfArray(e))return(e=e.slice(0))[0]=t-e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var n=0,s=t.length,a=e.length,o=[];n<s||n<a;)("number"==typeof t[n]||t[n]instanceof Number)&&("number"==typeof e[n]||e[n]instanceof Number)?o[n]=t[n]-e[n]:o[n]=void 0===e[n]?t[n]:t[n]||e[n],n+=1;return o}return 0}function mul(t,e){var i,r,n,s=_typeof$1(t),a=_typeof$1(e);if(isNumerable(s,t)&&isNumerable(a,e))return t*e;if($bm_isInstanceOfArray(t)&&isNumerable(a,e)){for(r=0,i=createTypedArray("float32",n=t.length);r<n;r+=1)i[r]=t[r]*e;return i}if(isNumerable(s,t)&&$bm_isInstanceOfArray(e)){for(r=0,i=createTypedArray("float32",n=e.length);r<n;r+=1)i[r]=t*e[r];return i}return 0}function div(t,e){var i,r,n,s=_typeof$1(t),a=_typeof$1(e);if(isNumerable(s,t)&&isNumerable(a,e))return t/e;if($bm_isInstanceOfArray(t)&&isNumerable(a,e)){for(r=0,i=createTypedArray("float32",n=t.length);r<n;r+=1)i[r]=t[r]/e;return i}if(isNumerable(s,t)&&$bm_isInstanceOfArray(e)){for(r=0,i=createTypedArray("float32",n=e.length);r<n;r+=1)i[r]=t/e[r];return i}return 0}function mod(t,e){return"string"==typeof t&&(t=parseInt(t,10)),"string"==typeof e&&(e=parseInt(e,10)),t%e}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(t,e,i){if(e>i){var r=i;i=e,e=r}return Math.min(Math.max(t,e),i)}function radiansToDegrees(t){return t/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(t){return t*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(t,e){if("number"==typeof t||t instanceof Number)return e=e||0,Math.abs(t-e);e||(e=helperLengthArray);var i,r=Math.min(t.length,e.length),n=0;for(i=0;i<r;i+=1)n+=Math.pow(e[i]-t[i],2);return Math.sqrt(n)}function normalize(t){return div(t,length(t))}function rgbToHsl(t){var e,i,r=t[0],n=t[1],s=t[2],a=Math.max(r,n,s),o=Math.min(r,n,s),l=(a+o)/2;if(a===o)e=0,i=0;else{var h=a-o;switch(i=l>.5?h/(2-a-o):h/(a+o),a){case r:e=(n-s)/h+(n<s?6:0);break;case n:e=(s-r)/h+2;break;case s:e=(r-n)/h+4}e/=6}return[e,i,l,t[3]]}function hue2rgb(t,e,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?t+(e-t)*6*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function hslToRgb(t){var e,i,r,n=t[0],s=t[1],a=t[2];if(0===s)e=a,r=a,i=a;else{var o=a<.5?a*(1+s):a+s-a*s,l=2*a-o;e=hue2rgb(l,o,n+1/3),i=hue2rgb(l,o,n),r=hue2rgb(l,o,n-1/3)}return[e,i,r,t[3]]}function linear(t,e,i,r,n){if((void 0===r||void 0===n)&&(r=e,n=i,e=0,i=1),i<e){var s,a=i;i=e,e=a}if(t<=e)return r;if(t>=i)return n;var o=i===e?0:(t-e)/(i-e);if(!r.length)return r+(n-r)*o;var l=r.length,h=createTypedArray("float32",l);for(s=0;s<l;s+=1)h[s]=r[s]+(n[s]-r[s])*o;return h}function random(t,e){if(void 0===e&&(void 0===t?(t=0,e=1):(e=t,t=void 0)),e.length){var i,r=e.length;t||(t=createTypedArray("float32",r));var n=createTypedArray("float32",r),s=BMMath.random();for(i=0;i<r;i+=1)n[i]=t[i]+s*(e[i]-t[i]);return n}return void 0===t&&(t=0),t+BMMath.random()*(e-t)}function createPath(t,e,i,r){var n,s,a,o=t.length,l=shapePool.newElement();l.setPathData(!!r,o);var h=[0,0];for(n=0;n<o;n+=1)s=e&&e[n]?e[n]:h,a=i&&i[n]?i[n]:h,l.setTripleAt(t[n][0],t[n][1],a[0]+t[n][0],a[1]+t[n][1],s[0]+t[n][0],s[1]+t[n][1],n,!0);return l}function initiateExpression(elem,data,property){function noOp(t){return t}if(!elem.globalData.renderConfig.runExpressions)return noOp;var transform,$bm_transform,content,effect,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,time,velocity,value,text,textIndex,textTotal,selectorValue,parent,val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=-1!==val.indexOf("random"),elemType=elem.data.ty,thisProperty=property;thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||!0!==this.data.hd,wiggle=(function(t,e){var i,r,n=this.pv.length?this.pv.length:1,s=createTypedArray("float32",n);t=5;var a=Math.floor(time*t);for(i=0,r=0;i<a;){for(r=0;r<n;r+=1)s[r]+=-e+2*e*BMMath.random();i+=1}var o=time*t,l=o-Math.floor(o),h=createTypedArray("float32",n);if(n>1){for(r=0;r<n;r+=1)h[r]=this.pv[r]+s[r]+(-e+2*e*BMMath.random())*l;return h}return this.pv+s[0]+(-e+2*e*BMMath.random())*l}).bind(this);function loopInDuration(t,e){return loopIn(t,e,!0)}function loopOutDuration(t,e){return loopOut(t,e,!0)}thisProperty.loopIn&&(loop_in=loopIn=thisProperty.loopIn.bind(thisProperty)),thisProperty.loopOut&&(loop_out=loopOut=thisProperty.loopOut.bind(thisProperty)),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty)),this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface);function lookAt(t,e){var i=[e[0]-t[0],e[1]-t[1],e[2]-t[2]],r=Math.atan2(i[0],Math.sqrt(i[1]*i[1]+i[2]*i[2]))/degToRads;return[-Math.atan2(i[1],i[2])/degToRads,r,0]}function easeOut(t,e,i,r,n){return applyEase(easeOutBez,t,e,i,r,n)}function easeIn(t,e,i,r,n){return applyEase(easeInBez,t,e,i,r,n)}function ease(t,e,i,r,n){return applyEase(easeInOutBez,t,e,i,r,n)}function applyEase(t,e,i,r,n,s){void 0===n?(n=i,s=r):e=(e-i)/(r-i),e>1?e=1:e<0&&(e=0);var a=t(e);if($bm_isInstanceOfArray(n)){var o,l=n.length,h=createTypedArray("float32",l);for(o=0;o<l;o+=1)h[o]=(s[o]-n[o])*a+n[o];return h}return(s-n)*a+n}function nearestKey(t){var e,i,r,n=data.k.length;if(data.k.length&&"number"!=typeof data.k[0]){if(i=-1,(t*=elem.comp.globalData.frameRate)<data.k[0].t)i=1,r=data.k[0].t;else{for(e=0;e<n-1;e+=1){if(t===data.k[e].t){i=e+1,r=data.k[e].t;break}if(t>data.k[e].t&&t<data.k[e+1].t){t-data.k[e].t>data.k[e+1].t-t?(i=e+2,r=data.k[e+1].t):(i=e+1,r=data.k[e].t);break}}-1===i&&(i=e+1,r=data.k[e].t)}}else i=0,r=0;var s={};return s.index=i,s.time=r/elem.comp.globalData.frameRate,s}function key(t){if(!data.k.length||"number"==typeof data.k[0])throw Error("The property has no keyframe at index "+t);t-=1,e={time:data.k[t].t/elem.comp.globalData.frameRate,value:[]};var e,i,r,n=Object.prototype.hasOwnProperty.call(data.k[t],"s")?data.k[t].s:data.k[t-1].e;for(i=0,r=n.length;i<r;i+=1)e[i]=n[i],e.value[i]=n[i];return e}function framesToTime(t,e){return e||(e=elem.comp.globalData.frameRate),t/e}function timeToFrames(t,e){return t||0===t||(t=time),e||(e=elem.comp.globalData.frameRate),t*e}function seedRandom(t){BMMath.seedrandom(randSeed+t)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(t,e){return"string"==typeof value?void 0===e?value.substring(t):value.substring(t,e):""}function substr(t,e){return"string"==typeof value?void 0===e?value.substr(t):value.substr(t,e):""}function posterizeTime(t){time=0===t?0:Math.floor(time*t)/t,value=valueAtTime(time)}var index=elem.data.ind,hasParent=!!(elem.hierarchy&&elem.hierarchy.length),randSeed=Math.floor(1e6*Math.random()),globalData=elem.globalData;function executeExpression(t){return(value=t,this.frameExpressionId===elem.globalData.frameId&&"textSelector"!==this.propType)?value:("textSelector"===this.propType&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),!transform&&($bm_transform=transform=elem.layerInterface("ADBE Transform Group"),transform&&(anchorPoint=transform.anchorPoint)),4!==elemType||content||(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),(hasParent=!!(elem.hierarchy&&elem.hierarchy.length))&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob}(),Expressions=function(){var t={};function e(t){var e=0,i=[];function r(){e+=1}function n(){0==(e-=1)&&a()}function s(t){-1===i.indexOf(t)&&i.push(t)}function a(){var t,e=i.length;for(t=0;t<e;t+=1)i[t].release();i.length=0}t.renderer.compInterface=CompExpressionInterface(t.renderer),t.renderer.globalData.projectInterface.registerComposition(t.renderer),t.renderer.globalData.pushExpression=r,t.renderer.globalData.popExpression=n,t.renderer.globalData.registerExpressionProperty=s}return t.initExpressions=e,t.resetFrame=ExpressionManager.resetFrame,t}(),MaskManagerInterface=function(){function t(t,e){this._mask=t,this._data=e}return Object.defineProperty(t.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(t.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}}),function(e){var i,r=createSizedArray(e.viewData.length),n=e.viewData.length;for(i=0;i<n;i+=1)r[i]=new t(e.viewData[i],e.masksProperties[i]);return function(t){for(i=0;i<n;){if(e.masksProperties[i].nm===t)return r[i];i+=1}return null}}}(),ExpressionPropertyInterface=function(){var t={pv:0,v:0,mult:1},e={pv:[0,0,0],v:[0,0,0],mult:1};function i(t,e,i){Object.defineProperty(t,"velocity",{get:function(){return e.getVelocityAtTime(e.comp.currentFrame)}}),t.numKeys=e.keyframes?e.keyframes.length:0,t.key=function(r){if(!t.numKeys)return 0;var n="";n="s"in e.keyframes[r-1]?e.keyframes[r-1].s:"e"in e.keyframes[r-2]?e.keyframes[r-2].e:e.keyframes[r-2].s;var s="unidimensional"===i?new Number(n):Object.assign({},n);return s.time=e.keyframes[r-1].t/e.elem.comp.globalData.frameRate,s.value="unidimensional"===i?n[0]:n,s},t.valueAtTime=e.getValueAtTime,t.speedAtTime=e.getSpeedAtTime,t.velocityAtTime=e.getVelocityAtTime,t.propertyGroup=e.propertyGroup}function r(e){e&&"pv"in e||(e=t);var r=1/e.mult,n=e.pv*r,s=new Number(n);return s.value=n,i(s,e,"unidimensional"),function(){return e.k&&e.getValue(),n=e.v*r,s.value!==n&&((s=new Number(n)).value=n,i(s,e,"unidimensional")),s}}function n(t){t&&"pv"in t||(t=e);var r=1/t.mult,n=t.data&&t.data.l||t.pv.length,s=createTypedArray("float32",n),a=createTypedArray("float32",n);return s.value=a,i(s,t,"multidimensional"),function(){t.k&&t.getValue();for(var e=0;e<n;e+=1)a[e]=t.v[e]*r,s[e]=a[e];return s}}function s(){return t}return function(t){return t?"unidimensional"===t.propType?r(t):n(t):s}}(),TransformExpressionInterface=function(){return function(t){var e,i,r,n;function s(t){switch(t){case"scale":case"Scale":case"ADBE Scale":case 6:return s.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return s.rotation;case"ADBE Rotate X":return s.xRotation;case"ADBE Rotate Y":return s.yRotation;case"position":case"Position":case"ADBE Position":case 2:return s.position;case"ADBE Position_0":return s.xPosition;case"ADBE Position_1":return s.yPosition;case"ADBE Position_2":return s.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return s.anchorPoint;case"opacity":case"Opacity":case 11:return s.opacity;default:return null}}return Object.defineProperty(s,"rotation",{get:ExpressionPropertyInterface(t.r||t.rz)}),Object.defineProperty(s,"zRotation",{get:ExpressionPropertyInterface(t.rz||t.r)}),Object.defineProperty(s,"xRotation",{get:ExpressionPropertyInterface(t.rx)}),Object.defineProperty(s,"yRotation",{get:ExpressionPropertyInterface(t.ry)}),Object.defineProperty(s,"scale",{get:ExpressionPropertyInterface(t.s)}),t.p?n=ExpressionPropertyInterface(t.p):(e=ExpressionPropertyInterface(t.px),i=ExpressionPropertyInterface(t.py),t.pz&&(r=ExpressionPropertyInterface(t.pz))),Object.defineProperty(s,"position",{get:function(){return t.p?n():[e(),i(),r?r():0]}}),Object.defineProperty(s,"xPosition",{get:ExpressionPropertyInterface(t.px)}),Object.defineProperty(s,"yPosition",{get:ExpressionPropertyInterface(t.py)}),Object.defineProperty(s,"zPosition",{get:ExpressionPropertyInterface(t.pz)}),Object.defineProperty(s,"anchorPoint",{get:ExpressionPropertyInterface(t.a)}),Object.defineProperty(s,"opacity",{get:ExpressionPropertyInterface(t.o)}),Object.defineProperty(s,"skew",{get:ExpressionPropertyInterface(t.sk)}),Object.defineProperty(s,"skewAxis",{get:ExpressionPropertyInterface(t.sa)}),Object.defineProperty(s,"orientation",{get:ExpressionPropertyInterface(t.or)}),s}}(),LayerExpressionInterface=function(){function t(t){var e=new Matrix;return void 0!==t?this._elem.finalTransform.mProp.getValueAtTime(t).clone(e):this._elem.finalTransform.mProp.applyToMatrix(e),e}function e(t,e){var i=this.getMatrix(e);return i.props[12]=0,i.props[13]=0,i.props[14]=0,this.applyPoint(i,t)}function i(t,e){var i=this.getMatrix(e);return this.applyPoint(i,t)}function r(t,e){var i=this.getMatrix(e);return i.props[12]=0,i.props[13]=0,i.props[14]=0,this.invertPoint(i,t)}function n(t,e){var i=this.getMatrix(e);return this.invertPoint(i,t)}function s(t,e){if(this._elem.hierarchy&&this._elem.hierarchy.length){var i,r=this._elem.hierarchy.length;for(i=0;i<r;i+=1)this._elem.hierarchy[i].finalTransform.mProp.applyToMatrix(t)}return t.applyToPointArray(e[0],e[1],e[2]||0)}function a(t,e){if(this._elem.hierarchy&&this._elem.hierarchy.length){var i,r=this._elem.hierarchy.length;for(i=0;i<r;i+=1)this._elem.hierarchy[i].finalTransform.mProp.applyToMatrix(t)}return t.inversePoint(e)}function o(t){var e=new Matrix;if(e.reset(),this._elem.finalTransform.mProp.applyToMatrix(e),this._elem.hierarchy&&this._elem.hierarchy.length){var i,r=this._elem.hierarchy.length;for(i=0;i<r;i+=1)this._elem.hierarchy[i].finalTransform.mProp.applyToMatrix(e)}return e.inversePoint(t)}function l(){return[1,1,1,1]}return function(h){function u(t){f.mask=new MaskManagerInterface(t,h)}function c(t){f.effect=t}function f(t){switch(t){case"ADBE Root Vectors Group":case"Contents":case 2:return f.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return p;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return f.effect;case"ADBE Text Properties":return f.textInterface;default:return null}}f.getMatrix=t,f.invertPoint=a,f.applyPoint=s,f.toWorld=i,f.toWorldVec=e,f.fromWorld=n,f.fromWorldVec=r,f.toComp=i,f.fromComp=o,f.sampleImage=l,f.sourceRectAtTime=h.sourceRectAtTime.bind(h),f._elem=h;var p,d=getDescriptor(p=TransformExpressionInterface(h.finalTransform.mProp),"anchorPoint");return Object.defineProperties(f,{hasParent:{get:function(){return h.hierarchy.length}},parent:{get:function(){return h.hierarchy[0].layerInterface}},rotation:getDescriptor(p,"rotation"),scale:getDescriptor(p,"scale"),position:getDescriptor(p,"position"),opacity:getDescriptor(p,"opacity"),anchorPoint:d,anchor_point:d,transform:{get:function(){return p}},active:{get:function(){return h.isInRange}}}),f.startTime=h.data.st,f.index=h.data.ind,f.source=h.data.refId,f.height=0===h.data.ty?h.data.h:100,f.width=0===h.data.ty?h.data.w:100,f.inPoint=h.data.ip/h.comp.globalData.frameRate,f.outPoint=h.data.op/h.comp.globalData.frameRate,f._name=h.data.nm,f.registerMaskInterface=u,f.registerEffectsInterface=c,f}}(),propertyGroupFactory=function(){return function(t,e){return function(i){return(i=void 0===i?1:i)<=0?t:e(i-1)}}}(),PropertyInterface=function(){return function(t,e){var i={_name:t};return function(t){return(t=void 0===t?1:t)<=0?i:e(t-1)}}}(),EffectsExpressionInterface=function(){function t(i,r,n,s){function a(t){for(var e=i.ef,r=0,n=e.length;r<n;){if(t===e[r].nm||t===e[r].mn||t===e[r].ix){if(5===e[r].ty)return h[r];return h[r]()}r+=1}throw Error()}var o,l=propertyGroupFactory(a,n),h=[],u=i.ef.length;for(o=0;o<u;o+=1)5===i.ef[o].ty?h.push(t(i.ef[o],r.effectElements[o],r.effectElements[o].propertyGroup,s)):h.push(e(r.effectElements[o],i.ef[o].ty,s,l));return"ADBE Color Control"===i.mn&&Object.defineProperty(a,"color",{get:function(){return h[0]()}}),Object.defineProperties(a,{numProperties:{get:function(){return i.np}},_name:{value:i.nm},propertyGroup:{value:l}}),a.enabled=0!==i.en,a.active=a.enabled,a}function e(t,e,i,r){var n=ExpressionPropertyInterface(t.p);function s(){return 10===e?i.comp.compInterface(t.p.v):n()}return t.p.setGroupProperty&&t.p.setGroupProperty(PropertyInterface("",r)),s}return{createEffectsInterface:function(e,i){if(e.effectsManager){var r,n=[],s=e.data.ef,a=e.effectsManager.effectElements.length;for(r=0;r<a;r+=1)n.push(t(s[r],e.effectsManager.effectElements[r],i,e));var o=e.data.ef||[],l=function(t){for(r=0,a=o.length;r<a;){if(t===o[r].nm||t===o[r].mn||t===o[r].ix)return n[r];r+=1}return null};return Object.defineProperty(l,"numProperties",{get:function(){return o.length}}),l}return null}}}(),ShapePathInterface=function(){return function(t,e,i){var r=e.sh;function n(t){return"Shape"===t||"shape"===t||"Path"===t||"path"===t||"ADBE Vector Shape"===t||2===t?n.path:null}var s=propertyGroupFactory(n,i);return r.setGroupProperty(PropertyInterface("Path",s)),Object.defineProperties(n,{path:{get:function(){return r.k&&r.getValue(),r}},shape:{get:function(){return r.k&&r.getValue(),r}},_name:{value:t.nm},ix:{value:t.ix},propertyIndex:{value:t.ix},mn:{value:t.mn},propertyGroup:{value:i}}),n}}(),ShapeExpressionInterface=function(){function t(t,e,l){var d,m=[],g=t?t.length:0;for(d=0;d<g;d+=1)"gr"===t[d].ty?m.push(i(t[d],e[d],l)):"fl"===t[d].ty?m.push(r(t[d],e[d],l)):"st"===t[d].ty?m.push(a(t[d],e[d],l)):"tm"===t[d].ty?m.push(o(t[d],e[d],l)):"tr"===t[d].ty||("el"===t[d].ty?m.push(h(t[d],e[d],l)):"sr"===t[d].ty?m.push(u(t[d],e[d],l)):"sh"===t[d].ty?m.push(ShapePathInterface(t[d],e[d],l)):"rc"===t[d].ty?m.push(c(t[d],e[d],l)):"rd"===t[d].ty?m.push(f(t[d],e[d],l)):"rp"===t[d].ty?m.push(p(t[d],e[d],l)):"gf"===t[d].ty?m.push(n(t[d],e[d],l)):m.push(s(t[d],e[d],l)));return m}function e(e,i,r){var n,s=function(t){for(var e=0,i=n.length;e<i;){if(n[e]._name===t||n[e].mn===t||n[e].propertyIndex===t||n[e].ix===t||n[e].ind===t)return n[e];e+=1}return"number"==typeof t?n[t-1]:null};s.propertyGroup=propertyGroupFactory(s,r),n=t(e.it,i.it,s.propertyGroup),s.numProperties=n.length;var a=l(e.it[e.it.length-1],i.it[i.it.length-1],s.propertyGroup);return s.transform=a,s.propertyIndex=e.cix,s._name=e.nm,s}function i(t,i,r){var n=function(t){switch(t){case"ADBE Vectors Group":case"Contents":case 2:return n.content;default:return n.transform}};n.propertyGroup=propertyGroupFactory(n,r);var s=e(t,i,n.propertyGroup),a=l(t.it[t.it.length-1],i.it[i.it.length-1],n.propertyGroup);return n.content=s,n.transform=a,Object.defineProperty(n,"_name",{get:function(){return t.nm}}),n.numProperties=t.np,n.propertyIndex=t.ix,n.nm=t.nm,n.mn=t.mn,n}function r(t,e,i){function r(t){return"Color"===t||"color"===t?r.color:"Opacity"===t||"opacity"===t?r.opacity:null}return Object.defineProperties(r,{color:{get:ExpressionPropertyInterface(e.c)},opacity:{get:ExpressionPropertyInterface(e.o)},_name:{value:t.nm},mn:{value:t.mn}}),e.c.setGroupProperty(PropertyInterface("Color",i)),e.o.setGroupProperty(PropertyInterface("Opacity",i)),r}function n(t,e,i){function r(t){return"Start Point"===t||"start point"===t?r.startPoint:"End Point"===t||"end point"===t?r.endPoint:"Opacity"===t||"opacity"===t?r.opacity:null}return Object.defineProperties(r,{startPoint:{get:ExpressionPropertyInterface(e.s)},endPoint:{get:ExpressionPropertyInterface(e.e)},opacity:{get:ExpressionPropertyInterface(e.o)},type:{get:function(){return"a"}},_name:{value:t.nm},mn:{value:t.mn}}),e.s.setGroupProperty(PropertyInterface("Start Point",i)),e.e.setGroupProperty(PropertyInterface("End Point",i)),e.o.setGroupProperty(PropertyInterface("Opacity",i)),r}function s(){return function(){return null}}function a(t,e,i){var r,n=propertyGroupFactory(h,i),s=propertyGroupFactory(l,n);function a(i){Object.defineProperty(l,t.d[i].nm,{get:ExpressionPropertyInterface(e.d.dataProps[i].p)})}var o=t.d?t.d.length:0,l={};for(r=0;r<o;r+=1)a(r),e.d.dataProps[r].p.setGroupProperty(s);function h(t){return"Color"===t||"color"===t?h.color:"Opacity"===t||"opacity"===t?h.opacity:"Stroke Width"===t||"stroke width"===t?h.strokeWidth:null}return Object.defineProperties(h,{color:{get:ExpressionPropertyInterface(e.c)},opacity:{get:ExpressionPropertyInterface(e.o)},strokeWidth:{get:ExpressionPropertyInterface(e.w)},dash:{get:function(){return l}},_name:{value:t.nm},mn:{value:t.mn}}),e.c.setGroupProperty(PropertyInterface("Color",n)),e.o.setGroupProperty(PropertyInterface("Opacity",n)),e.w.setGroupProperty(PropertyInterface("Stroke Width",n)),h}function o(t,e,i){function r(e){return e===t.e.ix||"End"===e||"end"===e?r.end:e===t.s.ix?r.start:e===t.o.ix?r.offset:null}var n=propertyGroupFactory(r,i);return r.propertyIndex=t.ix,e.s.setGroupProperty(PropertyInterface("Start",n)),e.e.setGroupProperty(PropertyInterface("End",n)),e.o.setGroupProperty(PropertyInterface("Offset",n)),r.propertyIndex=t.ix,r.propertyGroup=i,Object.defineProperties(r,{start:{get:ExpressionPropertyInterface(e.s)},end:{get:ExpressionPropertyInterface(e.e)},offset:{get:ExpressionPropertyInterface(e.o)},_name:{value:t.nm}}),r.mn=t.mn,r}function l(t,e,i){function r(e){return t.a.ix===e||"Anchor Point"===e?r.anchorPoint:t.o.ix===e||"Opacity"===e?r.opacity:t.p.ix===e||"Position"===e?r.position:t.r.ix===e||"Rotation"===e||"ADBE Vector Rotation"===e?r.rotation:t.s.ix===e||"Scale"===e?r.scale:t.sk&&t.sk.ix===e||"Skew"===e?r.skew:t.sa&&t.sa.ix===e||"Skew Axis"===e?r.skewAxis:null}var n=propertyGroupFactory(r,i);return e.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",n)),e.transform.mProps.p.setGroupProperty(PropertyInterface("Position",n)),e.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",n)),e.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",n)),e.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",n)),e.transform.mProps.sk&&(e.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",n)),e.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",n))),e.transform.op.setGroupProperty(PropertyInterface("Opacity",n)),Object.defineProperties(r,{opacity:{get:ExpressionPropertyInterface(e.transform.mProps.o)},position:{get:ExpressionPropertyInterface(e.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(e.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(e.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(e.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(e.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(e.transform.mProps.sa)},_name:{value:t.nm}}),r.ty="tr",r.mn=t.mn,r.propertyGroup=i,r}function h(t,e,i){function r(e){return t.p.ix===e?r.position:t.s.ix===e?r.size:null}var n=propertyGroupFactory(r,i);r.propertyIndex=t.ix;var s="tm"===e.sh.ty?e.sh.prop:e.sh;return s.s.setGroupProperty(PropertyInterface("Size",n)),s.p.setGroupProperty(PropertyInterface("Position",n)),Object.defineProperties(r,{size:{get:ExpressionPropertyInterface(s.s)},position:{get:ExpressionPropertyInterface(s.p)},_name:{value:t.nm}}),r.mn=t.mn,r}function u(t,e,i){function r(e){return t.p.ix===e?r.position:t.r.ix===e?r.rotation:t.pt.ix===e?r.points:t.or.ix===e||"ADBE Vector Star Outer Radius"===e?r.outerRadius:t.os.ix===e?r.outerRoundness:t.ir&&(t.ir.ix===e||"ADBE Vector Star Inner Radius"===e)?r.innerRadius:t.is&&t.is.ix===e?r.innerRoundness:null}var n=propertyGroupFactory(r,i),s="tm"===e.sh.ty?e.sh.prop:e.sh;return r.propertyIndex=t.ix,s.or.setGroupProperty(PropertyInterface("Outer Radius",n)),s.os.setGroupProperty(PropertyInterface("Outer Roundness",n)),s.pt.setGroupProperty(PropertyInterface("Points",n)),s.p.setGroupProperty(PropertyInterface("Position",n)),s.r.setGroupProperty(PropertyInterface("Rotation",n)),t.ir&&(s.ir.setGroupProperty(PropertyInterface("Inner Radius",n)),s.is.setGroupProperty(PropertyInterface("Inner Roundness",n))),Object.defineProperties(r,{position:{get:ExpressionPropertyInterface(s.p)},rotation:{get:ExpressionPropertyInterface(s.r)},points:{get:ExpressionPropertyInterface(s.pt)},outerRadius:{get:ExpressionPropertyInterface(s.or)},outerRoundness:{get:ExpressionPropertyInterface(s.os)},innerRadius:{get:ExpressionPropertyInterface(s.ir)},innerRoundness:{get:ExpressionPropertyInterface(s.is)},_name:{value:t.nm}}),r.mn=t.mn,r}function c(t,e,i){function r(e){return t.p.ix===e?r.position:t.r.ix===e?r.roundness:t.s.ix===e||"Size"===e||"ADBE Vector Rect Size"===e?r.size:null}var n=propertyGroupFactory(r,i),s="tm"===e.sh.ty?e.sh.prop:e.sh;return r.propertyIndex=t.ix,s.p.setGroupProperty(PropertyInterface("Position",n)),s.s.setGroupProperty(PropertyInterface("Size",n)),s.r.setGroupProperty(PropertyInterface("Rotation",n)),Object.defineProperties(r,{position:{get:ExpressionPropertyInterface(s.p)},roundness:{get:ExpressionPropertyInterface(s.r)},size:{get:ExpressionPropertyInterface(s.s)},_name:{value:t.nm}}),r.mn=t.mn,r}function f(t,e,i){function r(e){return t.r.ix===e||"Round Corners 1"===e?r.radius:null}var n=propertyGroupFactory(r,i),s=e;return r.propertyIndex=t.ix,s.rd.setGroupProperty(PropertyInterface("Radius",n)),Object.defineProperties(r,{radius:{get:ExpressionPropertyInterface(s.rd)},_name:{value:t.nm}}),r.mn=t.mn,r}function p(t,e,i){function r(e){return t.c.ix===e||"Copies"===e?r.copies:t.o.ix===e||"Offset"===e?r.offset:null}var n=propertyGroupFactory(r,i),s=e;return r.propertyIndex=t.ix,s.c.setGroupProperty(PropertyInterface("Copies",n)),s.o.setGroupProperty(PropertyInterface("Offset",n)),Object.defineProperties(r,{copies:{get:ExpressionPropertyInterface(s.c)},offset:{get:ExpressionPropertyInterface(s.o)},_name:{value:t.nm}}),r.mn=t.mn,r}return function(e,i,r){var n;function s(t){if("number"==typeof t)return 0===(t=void 0===t?1:t)?r:n[t-1];for(var e=0,i=n.length;e<i;){if(n[e]._name===t)return n[e];e+=1}return null}function a(){return r}return s.propertyGroup=propertyGroupFactory(s,a),n=t(e,i,s.propertyGroup),s.numProperties=n.length,s._name="Contents",s}}(),TextExpressionInterface=function(){return function(t){var e;function i(t){return"ADBE Text Document"===t?i.sourceText:null}return Object.defineProperty(i,"sourceText",{get:function(){t.textProperty.getValue();var i=t.textProperty.currentData.t;return e&&i===e.value||((e=new String(i)).value=i||new String(i),Object.defineProperty(e,"style",{get:function(){return{fillColor:t.textProperty.currentData.fc}}})),e}}),i}}();function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var FootageInterface=function(){var t=function(t){var e="",i=t.getFootageData();function r(t){if(i[t])return(e=t,i=i[t],"object"===_typeof(i))?r:i;var n=t.indexOf(e);return -1!==n?(i=i[parseInt(t.substr(n+e.length),10)],"object"===_typeof(i))?r:i:""}return function(){return e="",i=t.getFootageData(),r}},e=function(e){function i(t){return"Outline"===t?i.outlineInterface():null}return i._name="Outline",i.outlineInterface=t(e),i};return function(t){function i(t){return"Data"===t?i.dataInterface:null}return i._name="Data",i.dataInterface=e(t),i}}(),interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(t){return interfaces[t]||null}var expressionHelpers=function(){return{searchExpressions:function(t,e,i){e.x&&(i.k=!0,i.x=!0,i.initiateExpression=ExpressionManager.initiateExpression,i.effectsSequence.push(i.initiateExpression(t,e,i).bind(i)))},getSpeedAtTime:function(t){var e,i=-.01,r=this.getValueAtTime(t),n=this.getValueAtTime(t+i),s=0;if(r.length){for(e=0;e<r.length;e+=1)s+=Math.pow(n[e]-r[e],2);s=100*Math.sqrt(s)}else s=0;return s},getVelocityAtTime:function(t){if(void 0!==this.vel)return this.vel;var e,i,r=-.001,n=this.getValueAtTime(t),s=this.getValueAtTime(t+r);if(n.length)for(i=0,e=createTypedArray("float32",n.length);i<n.length;i+=1)e[i]=(s[i]-n[i])/r;else e=(s-n)/r;return e},getValueAtTime:function(t){return t*=this.elem.globalData.frameRate,(t-=this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<t?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(t,this._cachingAtTime),this._cachingAtTime.lastFrame=t),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(t){this.propertyGroup=t}}}();function addPropertyDecorator(){function t(t,e,i){if(!this.k||!this.keyframes)return this.pv;t=t?t.toLowerCase():"";var r,n,s,a,o,l=this.comp.renderedFrame,h=this.keyframes,u=h[h.length-1].t;if(l<=u)return this.pv;if(i?(r=e?Math.abs(u-this.elem.comp.globalData.frameRate*e):Math.max(0,u-this.elem.data.ip),n=u-r):((!e||e>h.length-1)&&(e=h.length-1),r=u-(n=h[h.length-1-e].t)),"pingpong"===t){if(Math.floor((l-n)/r)%2!=0)return this.getValueAtTime((r-(l-n)%r+n)/this.comp.globalData.frameRate,0)}else if("offset"===t){var c=this.getValueAtTime(n/this.comp.globalData.frameRate,0),f=this.getValueAtTime(u/this.comp.globalData.frameRate,0),p=this.getValueAtTime(((l-n)%r+n)/this.comp.globalData.frameRate,0),d=Math.floor((l-n)/r);if(this.pv.length){for(s=0,a=(o=Array(c.length)).length;s<a;s+=1)o[s]=(f[s]-c[s])*d+p[s];return o}return(f-c)*d+p}else if("continue"===t){var m=this.getValueAtTime(u/this.comp.globalData.frameRate,0),g=this.getValueAtTime((u-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(s=0,a=(o=Array(m.length)).length;s<a;s+=1)o[s]=m[s]+(m[s]-g[s])*((l-u)/this.comp.globalData.frameRate)/5e-4;return o}return m+(l-u)/.001*(m-g)}return this.getValueAtTime(((l-n)%r+n)/this.comp.globalData.frameRate,0)}function e(t,e,i){if(!this.k)return this.pv;t=t?t.toLowerCase():"";var r,n,s,a,o,l=this.comp.renderedFrame,h=this.keyframes,u=h[0].t;if(l>=u)return this.pv;if(i?(r=e?Math.abs(this.elem.comp.globalData.frameRate*e):Math.max(0,this.elem.data.op-u),n=u+r):((!e||e>h.length-1)&&(e=h.length-1),r=(n=h[e].t)-u),"pingpong"===t){if(Math.floor((u-l)/r)%2==0)return this.getValueAtTime(((u-l)%r+u)/this.comp.globalData.frameRate,0)}else if("offset"===t){var c=this.getValueAtTime(u/this.comp.globalData.frameRate,0),f=this.getValueAtTime(n/this.comp.globalData.frameRate,0),p=this.getValueAtTime((r-(u-l)%r+u)/this.comp.globalData.frameRate,0),d=Math.floor((u-l)/r)+1;if(this.pv.length){for(s=0,a=(o=Array(c.length)).length;s<a;s+=1)o[s]=p[s]-(f[s]-c[s])*d;return o}return p-(f-c)*d}else if("continue"===t){var m=this.getValueAtTime(u/this.comp.globalData.frameRate,0),g=this.getValueAtTime((u+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(s=0,a=(o=Array(m.length)).length;s<a;s+=1)o[s]=m[s]+(m[s]-g[s])*(u-l)/.001;return o}return m+(m-g)*(u-l)/.001}return this.getValueAtTime((r-((u-l)%r+u))/this.comp.globalData.frameRate,0)}function i(t,e){if(!this.k||(t=.5*(t||.4),(e=Math.floor(e||5))<=1))return this.pv;var i,r,n=this.comp.renderedFrame/this.comp.globalData.frameRate,s=n-t,a=n+t,o=e>1?(a-s)/(e-1):1,l=0,h=0;for(i=this.pv.length?createTypedArray("float32",this.pv.length):0;l<e;){if(r=this.getValueAtTime(s+l*o),this.pv.length)for(h=0;h<this.pv.length;h+=1)i[h]+=r[h];else i+=r;l+=1}if(this.pv.length)for(h=0;h<this.pv.length;h+=1)i[h]/=e;else i/=e;return i}function r(t){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var e=this._transformCachingAtTime.v;if(e.cloneFromProps(this.pre.props),this.appliedTransformations<1){var i=this.a.getValueAtTime(t);e.translate(-i[0]*this.a.mult,-i[1]*this.a.mult,i[2]*this.a.mult)}if(this.appliedTransformations<2){var r=this.s.getValueAtTime(t);e.scale(r[0]*this.s.mult,r[1]*this.s.mult,r[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var n=this.sk.getValueAtTime(t),s=this.sa.getValueAtTime(t);e.skewFromAxis(-n*this.sk.mult,s*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var a=this.r.getValueAtTime(t);e.rotate(-a*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var o=this.rz.getValueAtTime(t),l=this.ry.getValueAtTime(t),h=this.rx.getValueAtTime(t),u=this.or.getValueAtTime(t);e.rotateZ(-o*this.rz.mult).rotateY(l*this.ry.mult).rotateX(h*this.rx.mult).rotateZ(-u[2]*this.or.mult).rotateY(u[1]*this.or.mult).rotateX(u[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var c=this.px.getValueAtTime(t),f=this.py.getValueAtTime(t);if(this.data.p.z){var p=this.pz.getValueAtTime(t);e.translate(c*this.px.mult,f*this.py.mult,-p*this.pz.mult)}else e.translate(c*this.px.mult,f*this.py.mult,0)}else{var d=this.p.getValueAtTime(t);e.translate(d[0]*this.p.mult,d[1]*this.p.mult,-d[2]*this.p.mult)}return e}function n(){return this.v.clone(new Matrix)}var s=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(t,e,i){var a=s(t,e,i);return a.dynamicProperties.length?a.getValueAtTime=r.bind(a):a.getValueAtTime=n.bind(a),a.setGroupProperty=expressionHelpers.setGroupProperty,a};var a=PropertyFactory.getProp;function o(t){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),t*=this.elem.globalData.frameRate,(t-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<t?this._caching.lastIndex:0,this._cachingAtTime.lastTime=t,this.interpolateShape(t,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}PropertyFactory.getProp=function(r,n,s,o,l){var h=a(r,n,s,o,l);h.kf?h.getValueAtTime=expressionHelpers.getValueAtTime.bind(h):h.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(h),h.setGroupProperty=expressionHelpers.setGroupProperty,h.loopOut=t,h.loopIn=e,h.smooth=i,h.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(h),h.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(h),h.numKeys=1===n.a?n.k.length:0,h.propertyIndex=n.ix;var u=0;return 0!==s&&(u=createTypedArray("float32",1===n.a?n.k[0].s.length:n.k.length)),h._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:u},expressionHelpers.searchExpressions(r,n,h),h.k&&l.addDynamicProperty(h),h};var l=ShapePropertyFactory.getConstructorFunction(),h=ShapePropertyFactory.getKeyframedConstructorFunction();function u(){}u.prototype={vertices:function(t,e){this.k&&this.getValue();var i,r=this.v;void 0!==e&&(r=this.getValueAtTime(e,0));var n=r._length,s=r[t],a=r.v,o=createSizedArray(n);for(i=0;i<n;i+=1)"i"===t||"o"===t?o[i]=[s[i][0]-a[i][0],s[i][1]-a[i][1]]:o[i]=[s[i][0],s[i][1]];return o},points:function(t){return this.vertices("v",t)},inTangents:function(t){return this.vertices("i",t)},outTangents:function(t){return this.vertices("o",t)},isClosed:function(){return this.v.c},pointOnPath:function(t,e){var i,r=this.v;void 0!==e&&(r=this.getValueAtTime(e,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(r));for(var n=this._segmentsLength,s=n.lengths,a=n.totalLength*t,o=0,l=s.length,h=0;o<l;){if(h+s[o].addedLength>a){var u=o,c=r.c&&o===l-1?0:o+1,f=(a-h)/s[o].addedLength;i=bez.getPointInSegment(r.v[u],r.v[c],r.o[u],r.i[c],f,s[o]);break}h+=s[o].addedLength,o+=1}return i||(i=r.c?[r.v[0][0],r.v[0][1]]:[r.v[r._length-1][0],r.v[r._length-1][1]]),i},vectorOnPath:function(t,e,i){1==t?t=this.v.c:0==t&&(t=.999);var r=this.pointOnPath(t,e),n=this.pointOnPath(t+.001,e),s=n[0]-r[0],a=n[1]-r[1],o=Math.sqrt(Math.pow(s,2)+Math.pow(a,2));return 0===o?[0,0]:"tangent"===i?[s/o,a/o]:[-a/o,s/o]},tangentOnPath:function(t,e){return this.vectorOnPath(t,e,"tangent")},normalOnPath:function(t,e){return this.vectorOnPath(t,e,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([u],l),extendPrototype([u],h),h.prototype.getValueAtTime=o,h.prototype.initiateExpression=ExpressionManager.initiateExpression;var c=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(t,e,i,r,n){var s=c(t,e,i,r,n);return s.propertyIndex=e.ix,s.lock=!1,3===i?expressionHelpers.searchExpressions(t,e.pt,s):4===i&&expressionHelpers.searchExpressions(t,e.ks,s),s.k&&t.addDynamicProperty(s),s}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function t(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}TextProperty.prototype.getExpressionValue=function(t,e){var i=this.calculateExpression(e);if(t.t!==i){var r={};return this.copyData(r,t),r.t=i.toString(),r.__complete=!1,r}return t},TextProperty.prototype.searchProperty=function(){var t=this.searchKeyframes(),e=this.searchExpressions();return this.kf=t||e,this.kf},TextProperty.prototype.searchExpressions=t}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function(t,e){var i,r,n=createNS("feMerge");for(n.setAttribute("result",t),r=0;r<e.length;r+=1)(i=createNS("feMergeNode")).setAttribute("in",e[r]),n.appendChild(i),n.appendChild(i);return n}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(t,e,i,r,n){this.filterManager=e;var s=createNS("feColorMatrix");s.setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","linearRGB"),s.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=s,s.setAttribute("result",r+"_tint_1"),t.appendChild(s),(s=createNS("feColorMatrix")).setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),s.setAttribute("result",r+"_tint_2"),t.appendChild(s),this.matrixFilter=s;var a=this.createMergeNode(r,[n,r+"_tint_1",r+"_tint_2"]);t.appendChild(a)}function SVGFillFilter(t,e,i,r){this.filterManager=e;var n=createNS("feColorMatrix");n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),n.setAttribute("result",r),t.appendChild(n),this.matrixFilter=n}function SVGStrokeEffect(t,e,i){this.initialized=!1,this.filterManager=e,this.elem=i,this.paths=[]}function SVGTritoneFilter(t,e,i,r){this.filterManager=e;var n=createNS("feColorMatrix");n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","linearRGB"),n.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),t.appendChild(n);var s=createNS("feComponentTransfer");s.setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("result",r),this.matrixFilter=s;var a=createNS("feFuncR");a.setAttribute("type","table"),s.appendChild(a),this.feFuncR=a;var o=createNS("feFuncG");o.setAttribute("type","table"),s.appendChild(o),this.feFuncG=o;var l=createNS("feFuncB");l.setAttribute("type","table"),s.appendChild(l),this.feFuncB=l,t.appendChild(s)}function SVGProLevelsFilter(t,e,i,r){this.filterManager=e;var n=this.filterManager.effectElements,s=createNS("feComponentTransfer");(n[10].p.k||0!==n[10].p.v||n[11].p.k||1!==n[11].p.v||n[12].p.k||1!==n[12].p.v||n[13].p.k||0!==n[13].p.v||n[14].p.k||1!==n[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",s)),(n[17].p.k||0!==n[17].p.v||n[18].p.k||1!==n[18].p.v||n[19].p.k||1!==n[19].p.v||n[20].p.k||0!==n[20].p.v||n[21].p.k||1!==n[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",s)),(n[24].p.k||0!==n[24].p.v||n[25].p.k||1!==n[25].p.v||n[26].p.k||1!==n[26].p.v||n[27].p.k||0!==n[27].p.v||n[28].p.k||1!==n[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",s)),(n[31].p.k||0!==n[31].p.v||n[32].p.k||1!==n[32].p.v||n[33].p.k||1!==n[33].p.v||n[34].p.k||0!==n[34].p.v||n[35].p.k||1!==n[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",s)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(s.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(s)),(n[3].p.k||0!==n[3].p.v||n[4].p.k||1!==n[4].p.v||n[5].p.k||1!==n[5].p.v||n[6].p.k||0!==n[6].p.v||n[7].p.k||1!==n[7].p.v)&&((s=createNS("feComponentTransfer")).setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("result",r),t.appendChild(s),this.feFuncRComposed=this.createFeFunc("feFuncR",s),this.feFuncGComposed=this.createFeFunc("feFuncG",s),this.feFuncBComposed=this.createFeFunc("feFuncB",s))}function SVGDropShadowEffect(t,e,i,r,n){var s=e.container.globalData.renderConfig.filterSize,a=e.data.fs||s;t.setAttribute("x",a.x||s.x),t.setAttribute("y",a.y||s.y),t.setAttribute("width",a.width||s.width),t.setAttribute("height",a.height||s.height),this.filterManager=e;var o=createNS("feGaussianBlur");o.setAttribute("in","SourceAlpha"),o.setAttribute("result",r+"_drop_shadow_1"),o.setAttribute("stdDeviation","0"),this.feGaussianBlur=o,t.appendChild(o);var l=createNS("feOffset");l.setAttribute("dx","25"),l.setAttribute("dy","0"),l.setAttribute("in",r+"_drop_shadow_1"),l.setAttribute("result",r+"_drop_shadow_2"),this.feOffset=l,t.appendChild(l);var h=createNS("feFlood");h.setAttribute("flood-color","#00ff00"),h.setAttribute("flood-opacity","1"),h.setAttribute("result",r+"_drop_shadow_3"),this.feFlood=h,t.appendChild(h);var u=createNS("feComposite");u.setAttribute("in",r+"_drop_shadow_3"),u.setAttribute("in2",r+"_drop_shadow_2"),u.setAttribute("operator","in"),u.setAttribute("result",r+"_drop_shadow_4"),t.appendChild(u);var c=this.createMergeNode(r,[r+"_drop_shadow_4",n]);t.appendChild(c)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,i=this.filterManager.effectElements[1].p.v,r=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+r+" 0"),this.matrixFilter.setAttribute("values",i[0]-e[0]+" 0 0 0 "+e[0]+" "+(i[1]-e[1])+" 0 0 0 "+e[1]+" "+(i[2]-e[2])+" 0 0 0 "+e[2]+" 0 0 0 1 0")}},SVGFillFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[2].p.v,i=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+e[0]+" 0 0 0 0 "+e[1]+" 0 0 0 0 "+e[2]+" 0 0 0 "+i+" 0")}},SVGStrokeEffect.prototype.initialize=function(){var t,e,i,r,n=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(r=this.elem.maskManager.masksProperties.length,i=0):r=(i=this.filterManager.effectElements[0].p.v-1)+1,(e=createNS("g")).setAttribute("fill","none"),e.setAttribute("stroke-linecap","round"),e.setAttribute("stroke-dashoffset",1);i<r;i+=1)t=createNS("path"),e.appendChild(t),this.paths.push({p:t,m:i});if(3===this.filterManager.effectElements[10].p.v){var s=createNS("mask"),a=createElementID();s.setAttribute("id",a),s.setAttribute("mask-type","alpha"),s.appendChild(e),this.elem.globalData.defs.appendChild(s);var o=createNS("g");for(o.setAttribute("mask","url("+getLocationHref()+"#"+a+")");n[0];)o.appendChild(n[0]);this.elem.layerElement.appendChild(o),this.masker=s,e.setAttribute("stroke","#fff")}else if(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v){if(2===this.filterManager.effectElements[10].p.v)for(n=this.elem.layerElement.children||this.elem.layerElement.childNodes;n.length;)this.elem.layerElement.removeChild(n[0]);this.elem.layerElement.appendChild(e),this.elem.layerElement.removeAttribute("mask"),e.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=e},SVGStrokeEffect.prototype.renderFrame=function(t){this.initialized||this.initialize();var e=this.paths.length;for(i=0;i<e;i+=1)if(-1!==this.paths[i].m&&(r=this.elem.maskManager.viewData[this.paths[i].m],n=this.paths[i].p,(t||this.filterManager._mdf||r.prop._mdf)&&n.setAttribute("d",r.lastPath),t||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||r.prop._mdf)){if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){var i,r,n,s,a,o=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),l=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),h=n.getTotalLength();s="0 0 0 "+h*o+" ";var u=Math.floor(h*(l-o)/(1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01));for(a=0;a<u;a+=1)s+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";s+="0 "+10*h+" 0 0"}else s="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;n.setAttribute("stroke-dasharray",s)}if((t||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(t||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v)&&(t||this.filterManager.effectElements[3].p._mdf)){var c=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*c[0])+","+bmFloor(255*c[1])+","+bmFloor(255*c[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,i=this.filterManager.effectElements[1].p.v,r=this.filterManager.effectElements[2].p.v,n=r[0]+" "+i[0]+" "+e[0],s=r[1]+" "+i[1]+" "+e[1],a=r[2]+" "+i[2]+" "+e[2];this.feFuncR.setAttribute("tableValues",n),this.feFuncG.setAttribute("tableValues",s),this.feFuncB.setAttribute("tableValues",a)}},SVGProLevelsFilter.prototype.createFeFunc=function(t,e){var i=createNS(t);return i.setAttribute("type","table"),e.appendChild(i),i},SVGProLevelsFilter.prototype.getTableValue=function(t,e,i,r,n){for(var s,a,o=0,l=256,h=Math.min(t,e),u=Math.max(t,e),c=Array.call(null,{length:256}),f=0,p=n-r,d=e-t;o<=256;)a=(s=o/256)<=h?d<0?n:r:s>=u?d<0?r:n:r+p*Math.pow((s-t)/d,1/i),c[f]=a,f+=1,o+=256/(l-1);return c.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e,i=this.filterManager.effectElements;this.feFuncRComposed&&(t||i[3].p._mdf||i[4].p._mdf||i[5].p._mdf||i[6].p._mdf||i[7].p._mdf)&&(e=this.getTableValue(i[3].p.v,i[4].p.v,i[5].p.v,i[6].p.v,i[7].p.v),this.feFuncRComposed.setAttribute("tableValues",e),this.feFuncGComposed.setAttribute("tableValues",e),this.feFuncBComposed.setAttribute("tableValues",e)),this.feFuncR&&(t||i[10].p._mdf||i[11].p._mdf||i[12].p._mdf||i[13].p._mdf||i[14].p._mdf)&&(e=this.getTableValue(i[10].p.v,i[11].p.v,i[12].p.v,i[13].p.v,i[14].p.v),this.feFuncR.setAttribute("tableValues",e)),this.feFuncG&&(t||i[17].p._mdf||i[18].p._mdf||i[19].p._mdf||i[20].p._mdf||i[21].p._mdf)&&(e=this.getTableValue(i[17].p.v,i[18].p.v,i[19].p.v,i[20].p.v,i[21].p.v),this.feFuncG.setAttribute("tableValues",e)),this.feFuncB&&(t||i[24].p._mdf||i[25].p._mdf||i[26].p._mdf||i[27].p._mdf||i[28].p._mdf)&&(e=this.getTableValue(i[24].p.v,i[25].p.v,i[26].p.v,i[27].p.v,i[28].p.v),this.feFuncB.setAttribute("tableValues",e)),this.feFuncA&&(t||i[31].p._mdf||i[32].p._mdf||i[33].p._mdf||i[34].p._mdf||i[35].p._mdf)&&(e=this.getTableValue(i[31].p.v,i[32].p.v,i[33].p.v,i[34].p.v,i[35].p.v),this.feFuncA.setAttribute("tableValues",e))}},extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){if((t||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),t||this.filterManager.effectElements[0].p._mdf){var e=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*e[0]),Math.round(255*e[1]),Math.round(255*e[2])))}if((t||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),t||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var i=this.filterManager.effectElements[3].p.v,r=(this.filterManager.effectElements[2].p.v-90)*degToRads,n=i*Math.cos(r),s=i*Math.sin(r);this.feOffset.setAttribute("dx",n),this.feOffset.setAttribute("dy",s)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(t,e,i){this.initialized=!1,this.filterManager=e,this.filterElem=t,this.elem=i,i.matteElement=createNS("g"),i.matteElement.appendChild(i.layerElement),i.matteElement.appendChild(i.transformedElement),i.baseElement=i.matteElement}function SVGGaussianBlurEffect(t,e,i,r){t.setAttribute("x","-100%"),t.setAttribute("y","-100%"),t.setAttribute("width","300%"),t.setAttribute("height","300%"),this.filterManager=e;var n=createNS("feGaussianBlur");n.setAttribute("result",r),t.appendChild(n),this.feGaussianBlur=n}function TransformEffect(){}function SVGTransformEffect(t,e){this.init(e)}function CVTransformEffect(t){this.init(t)}return SVGMatte3Effect.prototype.findSymbol=function(t){for(var e=0,i=_svgMatteSymbols.length;e<i;){if(_svgMatteSymbols[e]===t)return _svgMatteSymbols[e];e+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(t,e){var i,r=t.layerElement.parentNode;if(r){for(var n=r.children,s=0,a=n.length;s<a&&n[s]!==t.layerElement;)s+=1;s<=a-2&&(i=n[s+1]);var o=createNS("use");o.setAttribute("href","#"+e),i?r.insertBefore(o,i):r.appendChild(o)}},SVGMatte3Effect.prototype.setElementAsMask=function(t,e){if(!this.findSymbol(e)){var i=createElementID(),r=createNS("mask");r.setAttribute("id",e.layerId),r.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(e);var n=t.globalData.defs;n.appendChild(r);var s=createNS("symbol");s.setAttribute("id",i),this.replaceInParent(e,i),s.appendChild(e.layerElement),n.appendChild(s);var a=createNS("use");a.setAttribute("href","#"+i),r.appendChild(a),e.data.hd=!1,e.show()}t.setMatte(e.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var t=this.filterManager.effectElements[0].p.v,e=this.elem.comp.elements,i=0,r=e.length;i<r;)e[i]&&e[i].data.ind===t&&this.setElementAsMask(this.elem,e[i]),i+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGGaussianBlurEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=.3,i=this.filterManager.effectElements[0].p.v*e,r=this.filterManager.effectElements[1].p.v,n=3==r?0:i,s=2==r?0:i;this.feGaussianBlur.setAttribute("stdDeviation",n+" "+s);var a=1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",a)}},TransformEffect.prototype.init=function(t){this.effectsManager=t,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(t){if(this._opMdf=!1,this._mdf=!1,t||this.effectsManager._mdf){var e=this.effectsManager.effectElements,i=e[0].p.v,r=e[1].p.v,n=1===e[2].p.v,s=e[3].p.v,a=n?s:e[4].p.v,o=e[5].p.v,l=e[6].p.v,h=e[7].p.v;this.matrix.reset(),this.matrix.translate(-i[0],-i[1],i[2]),this.matrix.scale(.01*a,.01*s,1),this.matrix.rotate(-h*degToRads),this.matrix.skewFromAxis(-o*degToRads,(l+90)*degToRads),this.matrix.translate(r[0],r[1],0),this._mdf=!0,this.opacity!==e[8].p.v&&(this.opacity=e[8].p.v,this._opMdf=!0)}},extendPrototype([TransformEffect],SVGTransformEffect),extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie})}
1,3454:function(t,e,i){"use strict";var r,n;t.exports=(null==(r=i.g.process)?void 0:r.env)&&"object"==typeof(null==(n=i.g.process)?void 0:n.env)?i.g.process:i(7663)},6840:function(t,e,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return i(1698)}])},6691:function(t,e){"use strict";var i,r;Object.defineProperty(e,"__esModule",{value:!0}),function(t,e){for(var i in e)Object.defineProperty(t,i,{enumerable:!0,get:e[i]})}(e,{ACTION_FAST_REFRESH:function(){return h},ACTION_NAVIGATE:function(){return s},ACTION_PREFETCH:function(){return l},ACTION_REFRESH:function(){return n},ACTION_RESTORE:function(){return a},ACTION_SERVER_ACTION:function(){return u},ACTION_SERVER_PATCH:function(){return o},PrefetchCacheEntryStatus:function(){return r},PrefetchKind:function(){return i},isThenable:function(){return c}});let n="refresh",s="navigate",a="restore",o="server-patch",l="prefetch",h="fast-refresh",u="server-action";function c(t){return t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof t.then}!function(t){t.AUTO="auto",t.FULL="full",t.TEMPORARY="temporary"}(i||(i={})),function(t){t.fresh="fresh",t.reusable="reusable",t.expired="expired",t.stale="stale"}(r||(r={})),("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},4318:function(t,e,i){"use strict";function r(t,e,i,r){return!1}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getDomainLocale",{enumerable:!0,get:function(){return r}}),i(8364),("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},9577:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return w}});let r=i(8754),n=i(5893),s=r._(i(7294)),a=i(1401),o=i(2045),l=i(7420),h=i(7201),u=i(1443),c=i(9953),f=i(5320),p=i(2905),d=i(4318),m=i(953),g=i(6691),v=new Set;function y(t,e,i,r,n,s){if(s||(0,o.isLocalURL)(e)){if(!r.bypassPrefetchedCheck){let n=e+"%"+i+"%"+(void 0!==r.locale?r.locale:"locale"in t?t.locale:void 0);if(v.has(n))return;v.add(n)}(async()=>s?t.prefetch(e,n):t.prefetch(e,i,r))().catch(t=>{})}}function b(t){let e=t.currentTarget.getAttribute("target");return e&&"_self"!==e||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which}function x(t,e,i,r,n,a,l,h,u){let{nodeName:c}=t.currentTarget;if("A"===c.toUpperCase()&&(b(t)||!u&&!(0,o.isLocalURL)(i)))return;t.preventDefault();let f=()=>{let t=null==l||l;"beforePopState"in e?e[n?"replace":"push"](i,r,{shallow:a,locale:h,scroll:t}):e[n?"replace":"push"](r||i,{scroll:t})};u?s.default.startTransition(f):f()}function _(t){return"string"==typeof t?t:(0,l.formatUrl)(t)}let w=s.default.forwardRef(function(t,e){let i,r;let{href:o,as:l,children:v,prefetch:b=null,passHref:w,replace:k,shallow:E,scroll:S,locale:P,onClick:M,onMouseEnter:C,onTouchStart:A,legacyBehavior:T=!1,...D}=t;i=v,T&&("string"==typeof i||"number"==typeof i)&&(i=(0,n.jsx)("a",{children:i}));let O=s.default.useContext(c.RouterContext),F=s.default.useContext(f.AppRouterContext),L=null!=O?O:F,I=!O,R=!1!==b,B=null===b?g.PrefetchKind.AUTO:g.PrefetchKind.FULL,{href:j,as:z}=s.default.useMemo(()=>{if(!O){let t=_(o);return{href:t,as:l?_(l):t}}let[t,e]=(0,a.resolveHref)(O,o,!0);return{href:t,as:l?(0,a.resolveHref)(O,l):e||t}},[O,o,l]),N=s.default.useRef(j),V=s.default.useRef(z);T&&(r=s.default.Children.only(i));let H=T?r&&"object"==typeof r&&r.ref:e,[W,U,G]=(0,p.useIntersection)({rootMargin:"200px"}),q=s.default.useCallback(t=>{(V.current!==z||N.current!==j)&&(G(),V.current=z,N.current=j),W(t),H&&("function"==typeof H?H(t):"object"==typeof H&&(H.current=t))},[z,H,j,G,W]);s.default.useEffect(()=>{L&&U&&R&&y(L,j,z,{locale:P},{kind:B},I)},[z,j,U,P,R,null==O?void 0:O.locale,L,I,B]);let Y={ref:q,onClick(t){T||"function"!=typeof M||M(t),T&&r.props&&"function"==typeof r.props.onClick&&r.props.onClick(t),L&&!t.defaultPrevented&&x(t,L,j,z,k,E,S,P,I)},onMouseEnter(t){T||"function"!=typeof C||C(t),T&&r.props&&"function"==typeof r.props.onMouseEnter&&r.props.onMouseEnter(t),L&&(R||!I)&&y(L,j,z,{locale:P,priority:!0,bypassPrefetchedCheck:!0},{kind:B},I)},onTouchStart:function(t){T||"function"!=typeof A||A(t),T&&r.props&&"function"==typeof r.props.onTouchStart&&r.props.onTouchStart(t),L&&(R||!I)&&y(L,j,z,{locale:P,priority:!0,bypassPrefetchedCheck:!0},{kind:B},I)}};if((0,h.isAbsoluteUrl)(z))Y.href=z;else if(!T||w||"a"===r.type&&!("href"in r.props)){let t=void 0!==P?P:null==O?void 0:O.locale,e=(null==O?void 0:O.isLocaleDomain)&&(0,d.getDomainLocale)(z,t,null==O?void 0:O.locales,null==O?void 0:O.domainLocales);Y.href=e||(0,m.addBasePath)((0,u.addLocale)(z,t,null==O?void 0:O.defaultLocale))}return T?s.default.cloneElement(r,Y):(0,n.jsx)("a",{...D,...Y,children:i})});("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esMo
1dule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},2905:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"useIntersection",{enumerable:!0,get:function(){return u}});let r=i(7294),n=i(3815),s="function"==typeof IntersectionObserver,a=new Map,o=[];function l(t){let e;let i={root:t.root||null,margin:t.rootMargin||""},r=o.find(t=>t.root===i.root&&t.margin===i.margin);if(r&&(e=a.get(r)))return e;let n=new Map;return e={id:i,observer:new IntersectionObserver(t=>{t.forEach(t=>{let e=n.get(t.target),i=t.isIntersecting||t.intersectionRatio>0;e&&i&&e(i)})},t),elements:n},o.push(i),a.set(i,e),e}function h(t,e,i){let{id:r,observer:n,elements:s}=l(i);return s.set(t,e),n.observe(t),function(){if(s.delete(t),n.unobserve(t),0===s.size){n.disconnect(),a.delete(r);let t=o.findIndex(t=>t.root===r.root&&t.margin===r.margin);t>-1&&o.splice(t,1)}}}function u(t){let{rootRef:e,rootMargin:i,disabled:a}=t,o=a||!s,[l,u]=(0,r.useState)(!1),c=(0,r.useRef)(null),f=(0,r.useCallback)(t=>{c.current=t},[]);return(0,r.useEffect)(()=>{if(s){if(o||l)return;let t=c.current;if(t&&t.tagName)return h(t,t=>t&&u(t),{root:null==e?void 0:e.current,rootMargin:i})}else if(!l){let t=(0,n.requestIdleCallback)(()=>u(!0));return()=>(0,n.cancelIdleCallback)(t)}},[o,i,e,l,c.current]),[f,l,(0,r.useCallback)(()=>{u(!1)},[])]}("function"==typeof e.default||"object"==typeof e.default&&null!==e.default)&&void 0===e.default.__esModule&&(Object.defineProperty(e.default,"__esModule",{value:!0}),Object.assign(e.default,e),t.exports=e.default)},4871:function(t,e,i){"use strict";i.d(e,{Z:function(){return h}});var r,n=i(5893),s=i(7294);function a(){return(a=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t}).apply(this,arguments)}var o=function(t){return s.createElement("svg",a({width:"1em",height:"1em",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},t),r||(r=s.createElement("path",{d:"M7 .333 5.825 1.508l4.65 4.658H.333v1.667h10.142l-4.65 4.658L7 13.666 13.667 7 7 .333Z"})))},l=i(5187);function h(t){let{bg:e,size:i,type:r,children:a,disabled:h,Svg:u,myClasses:c,isLoading:f,onClick:p}=t,[d,m]=(0,s.useState)(!1),g="secondary"===e?"bg-btnSecondary":"bg-btnPrimary";g="secondary"===e?"bg-btnSecondary":"danger"===e?"bg-myPaleRed":h?"bg-btnDisabled":"bg-btnPrimary";let v="sm"===i?"text-sm py-2.5 px-4":"text-base px-8 py-[18px]",y="sm"===i?"left-[3px] top-[3px]":"left-1 top-1";return d&&(y="-left-0 -top-0"),(0,n.jsxs)("button",{type:r,className:"relative ".concat(h?"cursor-not-allowed":"hover:cursor-pointer"," outline outline-1 outline-black font-bold inline-flex items-center gap-3 overflow-visible ").concat(v," ").concat(h&&"text-myLightGray"," z-10 ").concat(c&&c),disabled:h,onClick:p,onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1),children:[a,!f&&(u?(0,n.jsx)(u,{fill:"".concat(h&&"#999999")}):(0,n.jsx)(o,{fill:"".concat(h&&"#999999")})),f&&(0,n.jsx)(l.Z,{height:15,width:15}),(0,n.jsx)("div",{className:"absolute h-full w-full -z-10 ".concat(g," ").concat(y," transition-all")})]})}},1901:function(t,e,i){"use strict";var r=i(5893),n=i(1664),s=i.n(n),a=i(4871);let o=t=>{let{href:e,children:i,...n}=t;return(0,r.jsx)(s(),{href:e,legacyBehavior:!0,children:(0,r.jsx)(a.Z,{...n,children:i})})};e.Z=o},4761:function(t,e,i){"use strict";var r=i(5893);i(7294);let n=t=>{let{label:e,Svg:i,placeholder:n,inputType:s,inputName:a,value:o,onChange:l,onKeyDown:h,extraClasses:u,errorMsg:c,disabled:f,hidden:p,description:d}=t;return(0,r.jsxs)("div",{className:"flex flex-col ".concat(u),children:[(0,r.jsx)("label",{className:"mb-2.5 text-sm",htmlFor:a,children:e}),(0,r.jsxs)("div",{className:"flex items-center relative",children:[(0,r.jsx)(i,{className:"absolute ml-4",width:20,height:20}),(0,r.jsx)("input",{placeholder:n,className:"border border-black pl-11 pr-4 w-full text-sm",style:{height:50},type:s,name:a,value:o,onChange:l,onKeyDown:h,disabled:f,hidden:p})]}),(0,r.jsx)("p",{className:"text-sm mt-5",children:d}),(0,r.jsx)("p",{className:"text-red-400 text-sm mt-2",children:c})]})};e.Z=n}
1,5187:function(t,e,i){"use strict";i.d(e,{Z:function(){return o}});var r=i(5893),n=i(9464),s=JSON.parse('{"nm":"icn-loader","mn":"","layers":[{"ty":4,"nm":"circle-blue","mn":"","sr":1,"st":0,"op":1800,"ip":0,"hd":false,"cl":"","ln":"","ddd":0,"bm":0,"tt":0,"hasMask":false,"td":0,"ao":0,"ks":{"a":{"a":0,"k":[37.5,37.5,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6},"sk":{"a":0,"k":0},"p":{"a":0,"k":[40.5,40.5,0],"ix":2},"sa":{"a":0,"k":0},"o":{"a":0,"k":100,"ix":11},"r":{"a":1,"k":[{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[0],"t":0},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[360],"t":120}],"ix":10}},"ef":[],"shapes":[{"ty":"gr","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Group","nm":"Group 1","ix":1,"cix":2,"np":2,"it":[{"ty":"sh","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Shape - Group","nm":"Path 1","ix":1,"d":1,"ks":{"a":0,"k":{"c":true,"i":[[-19.054,0],[0,-19.054],[19.054,0],[0,19.054]],"o":[[19.054,0],[0,19.054],[-19.054,0],[0,-19.054]],"v":[[0,-34.5],[34.5,0],[0,34.5],[-34.5,0]]},"ix":2}},{"ty":"st","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Graphic - Stroke","nm":"Stroke 1","lc":2,"lj":2,"ml":1,"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":8,"ix":5},"d":[],"c":{"a":0,"k":[0,0,0],"ix":3}},{"ty":"tr","a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"sk":{"a":0,"k":0,"ix":4},"p":{"a":0,"k":[37.5,37.5],"ix":2},"r":{"a":0,"k":0,"ix":6},"sa":{"a":0,"k":0,"ix":5},"o":{"a":0,"k":100,"ix":7}}]},{"ty":"tm","bm":0,"cl":"","ln":"","hd":false,"mn":"ADBE Vector Filter - Trim","nm":"Trim Paths 1","ix":2,"e":{"a":1,"k":[{"o":{"x":0.581,"y":0},"i":{"x":0.262,"y":1},"s":[0],"t":0},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":120}],"ix":2},"o":{"a":0,"k":0,"ix":3},"s":{"a":1,"k":[{"o":{"x":0.333,"y":0},"i":{"x":0.123,"y":1},"s":[0],"t":0},{"o":{"x":0.167,"y":0.167},"i":{"x":0.833,"y":0.833},"s":[100],"t":120}],"ix":1},"m":1}],"ind":0}],"ddd":0,"h":81,"w":81,"meta":{"a":"","k":"","d":"","g":"@lottiefiles/toolkit-js 0.17.3","tc":"#ffffff"},"v":"5.5.1","fr":60,"op":120,"ip":0,"assets":[]}');let a={loop:!0,autoplay:!0,animationData:i.t(s,2),rendererSettings:{preserveAspectRatio:"xMidYMid slice"}};var o=t=>{let{height:e,width:i}=t;return(0,r.jsx)(n.Z,{options:a,height:e,width:i})}},9580:function(t,e,i){"use strict";i.d(e,{YC:function(){return o},_e:function(){return s},gg:function(){return a},iC:function(){return n},z0:function(){return r},zX:function(){return l}});let r="https://api.customerlift.ai",n="CustomerLift",s="/auth/shopify-login",a=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],o=1024,l=0},4965:function(t,e,i){"use strict";i.d(e,{z:function(){return r}});let r=(0,i(7294).createContext)(null)},2158:function(t,e,i){"use strict";var r=i(9669),n=i.n(r),s=i(7294),a=i(5811);let o=t=>
1{let[e,i]=(0,s.useState)(),[r,o]=(0,s.useState)(!1),[l,h]=(0,s.useState)("");(0,s.useEffect)(()=>{let e=async()=>{o(!0),h("");try{let e=await n().get(t,{withCredentials:!0});console.log(e),i(e.data)}catch(t){var e,r,s,l;console.log(t),(0,a.I)(t)&&(null===(r=t.response)||void 0===r?void 0:null===(e=r.data)||void 0===e?void 0:e.message)?h(null===(l=t.response)||void 0===l?void 0:null===(s=l.data)||void 0===s?void 0:s.message):h("Whoops, something went wrong.")}o(!1)};t&&e()},[t]);let u=()=>!r&&!!l;return{data:e,isLoading:r,errorMsg:l,shouldDisplayErrorMsg:u}};e.Z=o},3922:function(t,e,i){"use strict";var r=i(7294),n=i(9669),s=i.n(n),a=i(9580),o=i(1163),l=i.n(o),h=i(5811);let u=(t,e,i)=>{let[n,o]=(0,r.useState)(),[u,c]=(0,r.useState)(!0),[f,p]=(0,r.useState)(""),d=async()=>{try{let{email:t,firstName:e,lastName:i,storeUrl:r,role:n,allStores:l,storeCurrency:h}=(await s().get("".concat(a.z0,"/api/user/get-user?from_frontend=true"),{withCredentials:!0})).data;o({email:t||"",firstName:e||"",lastName:i||"",storeUrl:r||"",role:n||"",allStores:l,storeCurrency:h}),c(!1)}catch(s){var t,e,r,n,u,f,d,m,g,v,y;if(console.log(s),c(!1),o(null),(0,h.I)(s)&&(null===(e=s.response)||void 0===e?void 0:null===(t=e.data)||void 0===t?void 0:t.redirect)&&!i)return console.log(null===(u=s.response)||void 0===u?void 0:u.data),window.location.assign(null===(d=s.response)||void 0===d?void 0:null===(f=d.data)||void 0===f?void 0:f.redirect);if((0,h.I)(s)&&(null===(n=s.response)||void 0===n?void 0:null===(r=n.data)||void 0===r?void 0:r.message)){if((null===(g=s.response)||void 0===g?void 0:null===(m=g.data)||void 0===m?void 0:m.message)==="Unauthenticated."&&!i){l().push("/auth/shopify-login");return}p(null===(y=s.response)||void 0===y?void 0:null===(v=y.data)||void 0===v?void 0:v.message);return}p("Whoops, something went wrong: "+s.message)}},m=t=>{o(e=>{if(e)return{...e,firstName:t}})},g=t=>{o(e=>{if(e)return{...e,lastName:t}})},v=t=>{o(e=>{if(e)return{...e,email:t}})};return(0,r.useEffect)(()=>{d()},[]),(0,r.useEffect)(()=>{console.log(t,e,n)},[n,t,e,u]),{user:n,isLoading:u,errorMsg:f,updateFirstName:m,updateLastName:g,updateEmail:v}};e.Z=u},7195:function(t,e,i){"use strict";var r=i(7294),n=i(9669),s=i.n(n),a=i(1163),o=i.n(a),l=i(9580);let h=function(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],[e,i]=(0,r.useState)(null),[n,a]=(0,r.useState)(!1),[h,u]=(0,r.useState)("");return(0,r.useEffect)(()=>{a(!0),(async()=>{try{let t=await s().get(l.z0+"/api/user?from_frontend=true",{withCredentials:!0});console.log(t),i(t.data),a(!1)}catch(i){var e,r,n,h;if(console.log(i),s().isAxiosError(i)&&(null==i?void 0:null===(r=i.response)||void 0===r?void 0:null===(e=r.data)||void 0===e?void 0:e.message)){if((null==i?void 0:null===(h=i.response)||void 0===h?void 0:null===(n=h.data)||void 0===n?void 0:n.message)==="Unauthenticated."&&t){o().push("/auth/shopify-login");return}u(i.response.data.message)}else u("Whoops, somthing went wrong: "+i.message);a(!1)}})()},[]),{user:e,isLoading:n,errorMsg:h,updateFirstName:t=>
1{i(e=>e?{...e,firstName:t}:null)},updateLastName:t=>{i(e=>e?{...e,lastName:t}:null)},updateEmail:t=>{i(e=>e?{...e,email:t}:null)}}};e.Z=h},1698:function(t,e,i){"use strict";let r,n,s,a;i.r(e),i.d(e,{default:function(){return t1}});var o,l,h,u,c,f=i(5893),p=i(7294);i(1784),i(2599),i(5416);var d=i(1664),m=i.n(d),g=i(4965);function v(){return(v=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t}).apply(this,arguments)}var y=function(t){return p.createElement("svg",v({width:"1em",height:"1em",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},t),o||(o=p.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 6h8c1.1 0 2 .9 2 2v10c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2h6l2 2ZM4 6v12h16V8h-8.83l-2-2H4Z"})),l||(l=p.createElement("path",{d:"M13.08 14.04 12.39 17 15 15.47 17.61 17l-.69-2.96 2.3-1.99-3.03-.26L15 9l-1.19 2.79-3.03.26 2.3 1.99Z",fill:"#FEB094"})))};function b(){return(b=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t}).apply(this,arguments)}var x=function(t){return p.createElement("svg",b({width:"1em",height:"1em",viewBox:"0 0 12 12",xmlns:"http://www.w3.org/2000/svg"},t),h||(h=p.createElement("path",{d:"M11.833 1.342 10.658.167 6 4.825 1.34.167.167 1.342 4.825 6 .167 10.66l1.174 1.175L6 7.175l4.658 4.659 1.175-1.175L7.175 6l4.658-4.658Z",fill:"#FEB094"})))},_=t=>{let{href:e,Svg:i,text:r,svgHeight:n,svgWidth:s,myClasses:a}=t;return(0,f.jsx)(m(),{href:e,legacyBehavior:!0,children:(0,f.jsxs)("span",{className:"text-[15px] flex items-center gap-3 hover:cursor-pointer tracking-wide ".concat(a),children:[r,(0,f.jsx)(i,{width:s,height:n})]})})},w=i(3285),k=i(4924),E=i(1378),S=i(372),P=i(1813),M=i(8287),C=i(8844),A=i(3580),T=i(933),D=i(4176),O=i(4480),F=i(8657),L=i(4358),I=i(961),R=i(2196),B=i(7524),j=i(9732),z=i(8961),N=i(3),V=i(6451),H=i(5508),W=i(1592);let U=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function G(t){var e,i;let r=null!=(e=t.innerText)?e:"",n=t.cloneNode(!0);if(!(n instanceof HTMLElement))return r;let s=!1;for(let t of n.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))t.remove(),s=!0;let a=s?null!=(i=n.innerText)?i:"":r;return U.test(a)&&(a=a.replace(U,"")),a}function q(t){let e=t.getAttribute("aria-label");if("string"==typeof e)return e.trim();let i=t.getAttribute("aria-labelledby");if(i){let t=i.split(" ").map(t=>{let e=document.getElementById(t);if(e){let t=e.getAttribute("aria-label");return"string"==typeof t?t.trim():G(e).trim()}return null}).filter(Boolean);if(t.length>0)return t.join(", ")}return G(t).trim()}function Y(t){let e=(0,p.useRef)(""),i=(0,p.useRef)("");return(0,N.z)(()=>{let r=t.current;if(!r)return"";let n=r.innerText;if(e.current===n)return i.current;let s=q(r).trim().toLowerCase();return e.current=n,i.current=s,s})}var X=((r=X||{})[r.Open=0]="Open",r[r.Closed=1]="Closed",r),$=((n=$||{})[n.Single=0]="Single",n[n.Multi=1]="Multi",n),Z=((s=Z||{})[s.Pointer=0]="Pointer",s[s.Other=1]="Other",s),J=((a=J||{})[a.OpenListbox=0]="OpenListbox",a[a.CloseListbox=1]="CloseListbox",a[a.GoToOption=2]="GoToOption",a[a.Search=3]="Search",a[a.ClearSearch=4]="ClearSearch",a[a.RegisterOption=5]="RegisterOption",a[a.UnregisterOption=6]="UnregisterOption",a[a.RegisterLabel=7]="RegisterLabel",a);function K(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t=>t,i=null!==t.activeOptionIndex?t.options[t.activeOptionIndex]:null,r=(0,F.z2)(e(t.options.slice()),t=>t.dataRef.current.domRef.current),n=i?r.indexOf(i):null;return -1===n&&(n=null),{options:r,activeOptionIndex:n}}let Q={1:t=>t.dataRef.current.disabled||1===t.listboxState?t:{...t,activeOptionIndex:null,listboxState:1},0(t){if(t.dataRef.current.disabled||0===t.listboxState)return t;let e=t.activeOptionIndex,{isSelected:i}=t.dataRef.current,r=t.options.findIndex(t=>i(t.dataRef.current.value));return -1!==r&&(e=r),{...t,listboxState:0,activeOptionIndex:e}},2(t,e){var i;if(t.dataRef.current.disabled||1===t.listboxState)return t;let r=K(t),n=(0,D.d)(e,{resolveItems:()=>r.options,resolveActiveIndex:()=>r.activeOptionIndex,resolveId:t=>t.id,resolveDisabled:t=>t.dataRef.current.disabled});return{...t,...r,searchQuery:"",activeOptionIndex:n,activationTrigger:null!=(i=e.trigger)?i:1}},3:(t,e)=>{if(t.dataRef.current.disabled||1===t.listboxState)return t;let i=""!==t.searchQuery?0:1,r=t.searchQuery+e.value.toLowerCase(),n=(null!==t.activeOptionIndex?t.options.slice(t.activeOptionIndex+i).concat(t.options.slice(0,t.activeOptionIndex+i)):t.options).find(t=>{var e;return!t.dataRef.current.disabled&&(null==(e=t.dataRef.current.textValue)?void 0:e.startsWith(r))}),s=n?t.options.indexOf(n):-1;return -1===s||s===t.activeOptionIndex?{...t,searchQuery:r}:{...t,searchQuery:r,activeOptionIndex:s,activationTrigger:1}},4:t=>t.dataRef.current.disabled||1===t.listboxState||""===t.searchQuery?t:{...t,searchQuery:""},5:(t,e)=>{let i={id:e.id,dataRef:e.dataRef},r=K(t,t=>[...t,i]);return null===t.activeOptionIndex&&t.dataRef.current.isSelected(e.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(i)),{...t,...r}},6:(t,e)=>{let i=K(t,t=>{let i=t.findIndex(t=>t.id===e.id);return -1!==i&&t.splice(i,1),t});return{...t,...i,activationTrigger:1}},7:(t,e)=>({...t,labelId:e.id})},tt=(0,p.createContext)(null);function te(t){let e=(0,p.useContext)(tt);
1if(null===e){let e=Error("<".concat(t," /> is missing a parent <Listbox /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(e,te),e}return e}tt.displayName="ListboxActionsContext";let ti=(0,p.createContext)(null);function tr(t){let e=(0,p.useContext)(ti);if(null===e){let e=Error("<".concat(t," /> is missing a parent <Listbox /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(e,tr),e}return e}function tn(t,e){return(0,C.E)(e.type,Q,t,e)}ti.displayName="ListboxDataContext";let ts=p.Fragment;function ta(t,e){let{value:i,defaultValue:r,form:n,name:s,onChange:a,by:o=(t,e)=>t===e,disabled:l=!1,horizontal:h=!1,multiple:u=!1,...c}=t,f=h?"horizontal":"vertical",d=(0,P.T)(e),[m=u?[]:void 0,g]=(0,V.q)(i,a,r),[v,y]=(0,p.useReducer)(tn,{dataRef:(0,p.createRef)(),listboxState:1,options:[],searchQuery:"",labelId:null,activeOptionIndex:null,activationTrigger:1}),b=(0,p.useRef)({static:!1,hold:!1}),x=(0,p.useRef)(null),_=(0,p.useRef)(null),k=(0,p.useRef)(null),S=(0,N.z)("string"==typeof o?(t,e)=>{let i=o;return(null==t?void 0:t[i])===(null==e?void 0:e[i])}:o),A=(0,p.useCallback)(t=>(0,C.E)(T.mode,{1:()=>m.some(e=>S(e,t)),0:()=>S(m,t)}),[m]),T=(0,p.useMemo)(()=>({...v,value:m,disabled:l,mode:u?1:0,orientation:f,compare:S,isSelected:A,optionsPropsRef:b,labelRef:x,buttonRef:_,optionsRef:k}),[m,l,u,v]);(0,E.e)(()=>{v.dataRef.current=T},[T]),(0,R.O)([T.buttonRef,T.optionsRef],(t,e)=>{var i;y({type:1}),(0,F.sP)(e,F.tJ.Loose)||(t.preventDefault(),null==(i=T.buttonRef.current)||i.focus())},0===T.listboxState);let O=(0,p.useMemo)(()=>({open:0===T.listboxState,disabled:l,value:m}),[T,l,m]),I=(0,N.z)(t=>{let e=T.options.find(e=>e.id===t);e&&Y(e.dataRef.current.value)}),z=(0,N.z)(()=>{if(null!==T.activeOptionIndex){let{dataRef:t,id:e}=T.options[T.activeOptionIndex];Y(t.current.value),y({type:2,focus:D.T.Specific,id:e})}}),H=(0,N.z)(()=>y({type:0})),W=(0,N.z)(()=>y({type:1})),U=(0,N.z)((t,e,i)=>t===D.T.Specific?y({type:2,focus:D.T.Specific,id:e,trigger:i}):y({type:2,focus:t,trigger:i})),G=(0,N.z)((t,e)=>(y({type:5,id:t,dataRef:e}),()=>y({type:6,id:t}))),q=(0,N.z)(t=>(y({type:7,id:t}),()=>y({type:7,id:null}))),Y=(0,N.z)(t=>(0,C.E)(T.mode,{0:()=>null==g?void 0:g(t),1(){let e=T.value.slice(),i=e.findIndex(e=>S(e,t));return -1===i?e.push(t):e.splice(i,1),null==g?void 0:g(e)}})),X=(0,N.z)(t=>y({type:3,value:t})),$=(0,N.z)(()=>y({type:4})),Z=(0,p.useMemo)(()=>({onChange:Y,registerOption:G,registerLabel:q,goToOption:U,closeListbox:W,openListbox:H,selectActiveOption:z,selectOption:I,search:X,clearSearch:$}),[]),J={ref:d},K=(0,p.useRef)(null),Q=(0,w.G)();return(0,p.useEffect)(()=>{K.current&&void 0!==r&&Q.addEventListener(K.current,"reset",()=>{Y(r)})},[K,Y]),p.createElement(tt.Provider,{value:Z},p.createElement(ti.Provider,{value:T},p.createElement(L.up,{value:(0,C.E)(T.listboxState,{0:L.ZM.Open,1:L.ZM.Closed})},null!=s&&null!=m&&(0,j.t)({[s]:m}).map((t,e)=>{let[i,r]=t;return p.createElement(B._,{features:B.A.Hidden,ref:0===e?t=>{var e;K.current=null!=(e=null==t?void 0:t.closest("form"))?e:null}:void 0,...(0,M.oA)({key:i,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:n,name:i,value:r})})}),(0,M.sY)({ourProps:J,theirProps:c,slot:O,defaultTag:ts,name:"Listbox"}))))}let to="button";function tl(t,e){var i;let r=(0,k.M)(),{id:n="headlessui-listbox-button-".concat(r),...s}=t,a=tr("Listbox.Button"),o=te("Listbox.Button"),l=(0,P.T)(a.buttonRef,e),h=(0,w.G)(),u=(0,N.z)(t=>{switch(t.key){case T.R.Space:case T.R.Enter:case T.R.ArrowDown:t.preventDefault(),o.openListbox(),h.nextFrame(()=>{a.value||o.goToOption(D.T.First)});break;case T.R.ArrowUp:t.preventDefault(),o.openListbox(),h.nextFrame(()=>{a.value||o.goToOption(D.T.Last)})}}),c=(0,N.z)(t=>{t.key===T.R.Space&&t.preventDefault()}),f=(0,N.z)(t=>{if((0,O.P)(t.currentTarget))return t.preventDefault();0===a.listboxState?(o.closeListbox(),h.nextFrame(()=>{var t;return null==(t=a.buttonRef.current)?void 0:t.focus({preventScroll:!0})}
1)):(t.preventDefault(),o.openListbox())}),d=(0,S.v)(()=>{if(a.labelId)return[a.labelId,n].join(" ")},[a.labelId,n]),m=(0,p.useMemo)(()=>({open:0===a.listboxState,disabled:a.disabled,value:a.value}),[a]),g={ref:l,id:n,type:(0,I.f)(t,a.buttonRef),"aria-haspopup":"listbox","aria-controls":null==(i=a.optionsRef.current)?void 0:i.id,"aria-expanded":0===a.listboxState,"aria-labelledby":d,disabled:a.disabled,onKeyDown:u,onKeyUp:c,onClick:f};return(0,M.sY)({ourProps:g,theirProps:s,slot:m,defaultTag:to,name:"Listbox.Button"})}let th="label";function tu(t,e){let i=(0,k.M)(),{id:r="headlessui-listbox-label-".concat(i),...n}=t,s=tr("Listbox.Label"),a=te("Listbox.Label"),o=(0,P.T)(s.labelRef,e);(0,E.e)(()=>a.registerLabel(r),[r]);let l=(0,N.z)(()=>{var t;return null==(t=s.buttonRef.current)?void 0:t.focus({preventScroll:!0})}),h=(0,p.useMemo)(()=>({open:0===s.listboxState,disabled:s.disabled}),[s]);return(0,M.sY)({ourProps:{ref:o,id:r,onClick:l},theirProps:n,slot:h,defaultTag:th,name:"Listbox.Label"})}let tc="ul",tf=M.AN.RenderStrategy|M.AN.Static;function tp(t,e){var i;let r=(0,k.M)(),{id:n="headlessui-listbox-options-".concat(r),...s}=t,a=tr("Listbox.Options"),o=te("Listbox.Options"),l=(0,P.T)(a.optionsRef,e),h=(0,w.G)(),u=(0,w.G)(),c=(0,L.oJ)(),f=null!==c?(c&L.ZM.Open)===L.ZM.Open:0===a.listboxState;(0,p.useEffect)(()=>{var t;let e=a.optionsRef.current;e&&0===a.listboxState&&e!==(null==(t=(0,z.r)(e))?void 0:t.activeElement)&&e.focus({preventScroll:!0})},[a.listboxState,a.optionsRef]);let d=(0,N.z)(t=>{switch(u.dispose(),t.key){case T.R.Space:if(""!==a.searchQuery)return t.preventDefault(),t.stopPropagation(),o.search(t.key);case T.R.Enter:if(t.preventDefault(),t.stopPropagation(),null!==a.activeOptionIndex){let{dataRef:t}=a.options[a.activeOptionIndex];o.onChange(t.current.value)}0===a.mode&&(o.closeListbox(),(0,A.k)().nextFrame(()=>{var t;return null==(t=a.buttonRef.current)?void 0:t.focus({preventScroll:!0})}
1));break;case(0,C.E)(a.orientation,{vertical:T.R.ArrowDown,horizontal:T.R.ArrowRight}):return t.preventDefault(),t.stopPropagation(),o.goToOption(D.T.Next);case(0,C.E)(a.orientation,{vertical:T.R.ArrowUp,horizontal:T.R.ArrowLeft}):return t.preventDefault(),t.stopPropagation(),o.goToOption(D.T.Previous);case T.R.Home:case T.R.PageUp:return t.preventDefault(),t.stopPropagation(),o.goToOption(D.T.First);case T.R.End:case T.R.PageDown:return t.preventDefault(),t.stopPropagation(),o.goToOption(D.T.Last);case T.R.Escape:return t.preventDefault(),t.stopPropagation(),o.closeListbox(),h.nextFrame(()=>{var t;return null==(t=a.buttonRef.current)?void 0:t.focus({preventScroll:!0})});case T.R.Tab:t.preventDefault(),t.stopPropagation();break;default:1===t.key.length&&(o.search(t.key),u.setTimeout(()=>o.clearSearch(),350))}}),m=(0,S.v)(()=>{var t,e,i;return null!=(i=null==(t=a.labelRef.current)?void 0:t.id)?i:null==(e=a.buttonRef.current)?void 0:e.id},[a.labelRef.current,a.buttonRef.current]),g=(0,p.useMemo)(()=>({open:0===a.listboxState}),[a]),v={"aria-activedescendant":null===a.activeOptionIndex||null==(i=a.options[a.activeOptionIndex])?void 0:i.id,"aria-multiselectable":1===a.mode||void 0,"aria-labelledby":m,"aria-orientation":a.orientation,id:n,onKeyDown:d,role:"listbox",tabIndex:0,ref:l};return(0,M.sY)({ourProps:v,theirProps:s,slot:g,defaultTag:tc,features:tf,visible:f,name:"Listbox.Options"})}let td="li";function tm(t,e){let i=(0,k.M)(),{id:r="headlessui-listbox-option-".concat(i),disabled:n=!1,value:s,...a}=t,o=tr("Listbox.Option"),l=te("Listbox.Option"),h=null!==o.activeOptionIndex&&o.options[o.activeOptionIndex].id===r,u=o.isSelected(s),c=(0,p.useRef)(null),f=Y(c),d=(0,H.E)({disabled:n,value:s,domRef:c,get textValue(){return f()}}),m=(0,P.T)(e,c);(0,E.e)(()=>{if(0!==o.listboxState||!h||0===o.activationTrigger)return;let t=(0,A.k)();return t.requestAnimationFrame(()=>{var t,e;null==(e=null==(t=c.current)?void 0:t.scrollIntoView)||e.call(t,{block:"nearest"})}),t.dispose},[c,h,o.listboxState,o.activationTrigger,o.activeOptionIndex]),(0,E.e)(()=>l.registerOption(r,d),[d,r]);let g=(0,N.z)(t=>{if(n)return t.preventDefault();l.onChange(s),0===o.mode&&(l.closeListbox(),(0,A.k)().nextFrame(()=>{var t;return null==(t=o.buttonRef.current)?void 0:t.focus({preventScroll:!0})}
1))}),v=(0,N.z)(()=>{if(n)return l.goToOption(D.T.Nothing);l.goToOption(D.T.Specific,r)}),y=(0,W.g)(),b=(0,N.z)(t=>y.update(t)),x=(0,N.z)(t=>{y.wasMoved(t)&&(n||h||l.goToOption(D.T.Specific,r,0))}),_=(0,N.z)(t=>{y.wasMoved(t)&&(n||h&&l.goToOption(D.T.Nothing))}),w=(0,p.useMemo)(()=>({active:h,selected:u,disabled:n}),[h,u,n]);return(0,M.sY)({ourProps:{id:r,ref:m,role:"option",tabIndex:!0===n?void 0:-1,"aria-disabled":!0===n||void 0,"aria-selected":u,disabled:void 0,onClick:g,onFocus:v,onPointerEnter:b,onMouseEnter:b,onPointerMove:x,onMouseMove:x,onPointerLeave:_,onMouseLeave:_},theirProps:a,slot:w,defaultTag:td,name:"Listbox.Option"})}let tg=Object.assign((0,M.yV)(ta),{Button:(0,M.yV)(tl),Label:(0,M.yV)(tu),Options:(0,M.yV)(tp),Option:(0,M.yV)(tm)});var tv=i(5007),ty=i(4696);function tb(){return(tb=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(t[r]=i[r])}return t}).apply(this,arguments)}var tx=function(t){return p.createElement("svg",tb({width:"1em",height:"1em",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),u||(u=p.createElement("g",{filter:"url(#active-dot_svg__a)"},p.createElement("rect",{width:8,height:8,rx:4,fill:"#fff",fillOpacity:.01}),p.createElement("rect",{x:.5,y:.5,width:7,height:7,rx:3.5,stroke:"#000"}))),c||(c=p.createElement("defs",null,p.createElement("filter",{id:"active-dot_svg__a",x:0,y:0,width:10,height:10,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB"},p.createElement("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),p.createElement("feColorMatrix",{in:"SourceAlpha",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),p.createElement("feOffset",{dx:2,dy:2}),p.createElement("feColorMatrix",{values:"0 0 0 0 0.658824 0 0 0 0 0.741176 0 0 0 0 0.843137 0 0 0 1 0"}),p.createElement("feBlend",{in2:"BackgroundImageFix",result:"effect1_dropShadow_1045_4976"}),p.createElement("feBlend",{in:"SourceGraphic",in2:"effect1_dropShadow_1045_4976",result:"shape"})))))},t_=i(2484),tw=i(9048),tk=i(4761),tE=i(9630),tS=i(4871),tP=i(9580),tM=i(9669),tC=i.n(tM);function tA(t){let{isOpen:e,openModal:i,closeModal:r}=t;return(0,f.jsx)(tv.u,{appear:!0,show:e,as:p.Fragment,children:(0,f.jsxs)(tw.V,{as:"div",className:"relative z-10",onClose:r,children:[(0,f.jsx)(tv.u.Child,{as:p.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"ease-in duration-200",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,f.jsx)("div",{className:"fixed inset-0 bg-black bg-opacity-60"})}),(0,f.jsx)("div",{className:"fixed inset-0 overflow-y-auto",children:(0,f.jsx)("div",{className:"flex min-h-full items-center justify-center p-4 text-center",children:(0,f.jsx)(tv.u.Child,{as:p.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:(0,f.jsxs)(tw.V.Panel,{className:"w-full max-w-md transform overflow-hidden bg-myBeige border border-white text-left align-middle transition-all",children:[(0,f.jsx)(tw.V.Title,{className:"border-b border-black py-8 px-10",children:(0,f.jsx)("img",{src:"/shopify_with_text.svg",className:"h-12 mx-auto",alt:"Shopify logo"})}),(0,f.jsxs)("div",{className:"px-10 pb-11",children:[(0,f.jsx)("p",{className:"text-center mt-9 mb-8",children:"Log in to link your Shopify account."}),(0,f.jsx)(tT,{}),(0,f.jsx)("button",{onClick:r,className:"underline text-sm mx-auto block",children:"Cancel"})]})]})})})})]})})}let tT=()=>{let[t,e]=(0,p.useState)(""),[i,r]=(0,p.useState)(!1),n=async t=>{t.preventDefault(),r(!0);let i=t.currentTarget["store-url"].value;if(console.log(i),!i){e("Please enter your store url"),r(!1);return}try{let t=await tC().get("".concat(tP.z0,"/api/auth/offline-token?shop=").concat(i,"&from_frontend=true&bypass_privacy_policy=true"),{withCredentials:!0});window.location.assign(t.data.redirect),r(!1)}catch(t){s(t),r(!1)}},s=t=>{var i,r;tC().isAxiosError(t)&&(null==t?void 0:null===(r=t.response)||void 0===r?void 0:null===(i=r.data)||void 0===i?void 0:i.message)?e(t.response.data.message):e(t.message)};return(0,f.jsxs)("form",{onSubmit:n,children:[(0,f.jsx)(tk.Z,{inputName:"store-url",
1Svg:tE.Z,inputType:"text",label:"STORE URL",placeholder:"example.myshopify.com",errorMsg:t}),(0,f.jsx)("div",{className:"flex justify-center",children:(0,f.jsx)(tS.Z,{size:"sm",type:"submit",myClasses:"mt-10 mb-8",isLoading:i,children:"Sign In"})})]})};var tD=i(4202),tO=i(5187),tF=i(1163);function tL(t){let{myClasses:e,user:i}=t,r=(0,tF.useRouter)(),[n,s]=(0,p.useState)(),[a,o]=(0,p.useState)(!1),[l,h]=(0,p.useState)(!1);(0,p.useEffect)(()=>{s(null==i?void 0:i.storeUrl)},[i]);let u=()=>o(!0),c=()=>o(!1),d=async t=>{h(!0);try{await (0,tD.z)();let e=await tC().post(tP.z0+"/api/user/select-store",{storeUrl:t},{withCredentials:!0});console.log(e),s(t),r.reload()}catch(t){console.log(t)}h(!1)},m=t=>{"Add Store"===t?u():d(t)};return(0,f.jsxs)("div",{className:"w-36 sm:w-52 md:w-56 z-30 ".concat(e),children:[(0,f.jsx)(tA,{isOpen:a,openModal:u,closeModal:c}),(0,f.jsx)(tg,{value:n,onChange:m,children:(0,f.jsxs)("div",{className:"relative mt-1",children:[(0,f.jsxs)(tg.Button,{className:"relative w-full cursor-default rounded-lg text-left pr-2 hover:cursor-pointer focus:outline-none focus-visible:border-indigo-500 focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75 focus-visible:ring-offset-2 focus-visible:ring-offset-orange-300 sm:text-sm",children:[l?(0,f.jsx)("div",{className:"flex justify-end",children:(0,f.jsx)(tO.Z,{height:15,width:15})}):(0,f.jsx)("span",{className:"block truncate p-small text-right pr-1 sm:pr-3",children:n}),(0,f.jsx)("span",{className:"pointer-events-none absolute inset-y-0 right-0 flex items-center",children:(0,f.jsx)(ty.Z,{fill:"#FEB094",width:10,height:7,"aria-hidden":"true"})})]}),(0,f.jsx)(tv.u,{as:p.Fragment,leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:(0,f.jsxs)(tg.Options,{className:"absolute max-h-80 md:max-h-96 w-full overflow-auto rounded-md bg-white text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm",children:[null==i?void 0:i.allStores.map((t,e)=>(0,f.jsx)(tg.Option,{className:t=>{let{active:e}=t;return"relative cursor-default hover:cursor-pointer select-none py-4 pl-4 pr-8 border-b border-[#DDDDDD] \n                    "},value:t.url,children:e=>{let{selected:i}=e;return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("span",{className:"block truncate p-small",children:t.url}),i?(0,f.jsx)("span",{className:"absolute inset-y-0 right-4 flex items-center pl-3",children:(0,f.jsx)(tx,{})}):null]})}},e)),(0,f.jsxs)(tg.Option,{className:"p-4 hover:cursor-pointer flex items-center gap-3 p-small",value:"Add Store",children:[(0,f.jsx)(t_.Z,{height:10,width:10,fill:"#FEB094"}),"Add Store"]})]})})]})})]})}var tI=i(2158),tR=i(7195),tB=i(1901),tj=i(3922),tz=i(1266);function tN(t,e){let{title:i,titleId:r,...n}=t;return p.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:e,"aria-labelledby":r},n),i?p.createElement("title",{id:r},i):null,p.createElement("path",{d:"M6.28 5.22a.75.75 0 00-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 101.06 1.06L10 11.06l3.72 3.72a.75.75 0 101.06-1.06L11.06 10l3.72-3.72a.75.75 0 00-1.06-1.06L10 8.94 6.28 5.22z"}))}var tV=p.forwardRef(tN);function tH(t,e){let{title:i,titleId:r,...n}=t;return p.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:e,"aria-labelledby":r},n),i?p.createElement("title",{id:r},i):null,p.createElement("path",{fillRule:"evenodd",d:"M2 4.75A.75.75 0 012.75 4h14.5a.75.75 0 010 1.5H2.75A.75.75 0 012 4.75zM2 10a.75.75 0 01.75-.75h14.5a.75.75 0 010 1.5H2.75A.75.75 0 012 10zm0 5.25a.75.75 0 01.75-.75h14.5a.75.75 0 010 1.5H2.75a.75.75 0 01-.75-.75z",clipRule:"evenodd"}))}var tW=p.forwardRef(tH);let tU=[{text:"Demo",href:"/video-demo"},{text:"Success Stories",href:"/success-stories"}],tG=t=>{var e;let{user:i}=t,r=(0,tI.Z)(tP.z0+"/api/saved-audience/count"),n=null!==(e=r.data)&&void 0!==e?e:0,{isLoading:s}=r;return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(tL,{user:i}),(0,f.jsx)(m(),{href:"/saved-audiences",legacyBehavior:!0,children:(0,f.jsxs)("div",{className:"flex items-center hover:cursor-pointer",children:[(0,f.jsx)(y,{}),(0,f.jsx)("h3",{className:"ml-1",children:n})]})}),(0,f.jsx)(m(),{href:"/profile/info",legacyBehavior:!0,children:(0,f.jsxs)("div",{className:"relative bg-myPurple roun
1ded-full h-8 w-8 flex items-center justify-center mt-1 hover:cursor-pointer",children:[(0,f.jsx)("div",{className:"absolute w-full h-full border border-black rounded-full -top-1 -left-1"}),(0,f.jsx)("div",{className:"mb-2 mr-2 text-[15px]",children:i&&i.firstName[0].toUpperCase()})]})})]})},tq=()=>(0,f.jsxs)("div",{children:[(0,f.jsx)(m(),{href:tP._e,legacyBehavior:!0,children:(0,f.jsx)("span",{className:"text-sm font-bold mr-8 cursor-pointer",children:"Login"})}),(0,f.jsx)(tB.Z,{href:"/auth/connect-store",size:"sm",children:"Get Started"})]}),tY=()=>(0,f.jsx)(tz.p,{children:t=>{let{open:e}=t;return(0,f.jsxs)("div",{className:"relative",children:[(0,f.jsxs)(tz.p.Button,{className:"relative inline-flex items-center justify-center rounded-md p-2 text-black hover:bg-myAqua hover:text-white focus:outline-none focus:ring-2 focus:ring-inset focus:ring-black",children:[(0,f.jsx)("span",{className:"absolute -inset-0.5"}),(0,f.jsx)("span",{className:"sr-only",children:"Open main menu"}),e?(0,f.jsx)(tV,{className:"block h-6 w-6","aria-hidden":"true"}):(0,f.jsx)(tW,{className:"block h-6 w-6","aria-hidden":"true"})]}),e?(0,f.jsx)("div",{className:"absolute top-16 right-0 z-50 min-w-[200px] bg-white border border-black p-4",children:(0,f.jsx)("ul",{children:tU.map(t=>(0,f.jsx)("li",{className:"mt-5 border-b border-gray-300",children:(0,f.jsx)(m(),{href:t.href,children:t.text})},t.href))})}):""]})}});var tX=()=>{let{user:t,isLoading:e}=(0,tR.Z)(),{user:i}=(0,tj.Z)("",!1,!0),r=(0,p.useContext)(g.z),n=()=>{if(!r)return;let{page:e}=r;return"profile"===e?(0,f.jsx)(_,{Svg:x,svgHeight:12,svgWidth:12,href:"/select-audience",text:"Exit My Profile",myClasses:"text-[#141414]"}):"saved audiences"===e?(0,f.jsx)(_,{Svg:x,svgHeight:12,svgWidth:12,href:"/select-audience",text:"Exit Audiences",myClasses:"text-[#141414]"}):(0,f.jsx)(tG,{user:t})},s=i?"/select-audience":"/";return(0,f.jsx)("header",{className:"bg-myBeige h-14 flex items-center border-b border-[#141414]",children:(0,f.jsxs)("div",{className:"container flex items-center justify-between",children:[(0,f.jsx)(m(),{href:s,legacyBehavior:!0,children:(0,f.jsx)("h2",{className:"hidden sm:inline-block font-helvetica text-[22px] hover:cursor-pointer",children:"CustomerLift"})}),(0,f.jsx)(m(),{href:s,legacyBehavior:!0,children:(0,f.jsx)("h2",{className:"sm:hidden font-helvetica text-lg hover:cursor-pointer",children:"CL"})}),(0,f.jsxs)("div",{className:"flex items-center gap-3 sm:gap-6 md:gap-8 ml-2",children:[t?n():(0,f.jsx)(tq,{}),(0,f.jsx)("div",{className:"sm:hidden",children:(0,f.jsx)(tY,{})}),(0,f.jsx)("div",{className:"hidden sm:block",children:tU.map(t=>(0,f.jsx)(m(),{href:t.href,legacyBehavior:!0,children:(0,f.jsx)("span",{className:"text-sm font-bold cursor-pointer ml-5",children:t.text})},t.href))})]})]})})},t$=t=>{let{children:e}=t;return(0,f.jsx)("div",{className:"min-h-screen bg-myBeige flex flex-col",children:(0,f.jsxs)("div",{className:"grow flex flex-col",children:[(0,f.jsx)(tX,{}),(0,f.jsx)("main",{className:"grow flex flex-col",children:e})]})})},tZ=i(6775);let tJ=()=>{tZ.kL.defaults.font.family="Space Grotesk, Arial",tZ.kL.defaults.color="black",tZ.kL.register(tZ.uw,tZ.f$,tZ.ZL,tZ.Dx,tZ.u,tZ.De,tZ.od,tZ.jn,tZ.qi)};var tK=i(4298),tQ=i.n(tK),t0=()=>(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(tQ(),{src:"https://www.googletagmanager.com/gtag/js?id=".concat("G-0KPZSHRJRL"),strategy:"afterInteractive"}),(0,f.jsx)(tQ(),{id:"google-analytics",strategy:"afterInteractive",children:"\n         window.dataLayer = window.dataLayer || []; \n         function gtag(){dataLayer.push(arguments);} \n         gtag('js', new Date()); \n         gtag('config', '".concat("G-0KPZSHRJRL","');\n        ")})]}),t1=function(t){let{Component:e,pageProps:{session:i,...r}}=t,[n,s]=(0,p.useState)(""),a=t=>{s(t)};return tJ(),(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(t0,{}),(0,f.jsx)(g.z.Provider,{value:{page:n,updatePage:a},children:(0,f.jsx)(t$,{children:(0,f.jsx)(e,{...r})})})]})}},5811:function(t,e,i){"use strict";i.d(e,{I:function(){return s}});var r=i(9669),n=i.n(r);function s(t){return n().isAxiosError(t)}}
vendor: 8,682 bytes, lines 1-6
1,4202:function(t,e,i){"use strict";i.d(e,{z:function(){return a}});var r=i(9669),n=i.n(r),s=i(9580);let a=()=>n().get("".concat(s.z0,"/sanctum/csrf-cookie"),{withCredentials:!0})},1876:function(t){var e="/";!function(){var i={675:function(t,e){"use strict";e.byteLength=h,e.toByteArray=c,e.fromByteArray=d;for(var i=[],r=[],n="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,o=s.length;a<o;++a)i[a]=s[a],r[s.charCodeAt(a)]=a;function l(t){var e=t.length;if(e%4>0)throw Error("Invalid string. Length must be a multiple of 4");var i=t.indexOf("=");-1===i&&(i=e);var r=i===e?0:4-i%4;return[i,r]}function h(t){var e=l(t),i=e[0],r=e[1];return(i+r)*3/4-r}function u(t,e,i){return(e+i)*3/4-i}function c(t){var e,i,s=l(t),a=s[0],o=s[1],h=new n(u(t,a,o)),c=0,f=o>0?a-4:a;for(i=0;i<f;i+=4)e=r[t.charCodeAt(i)]<<18|r[t.charCodeAt(i+1)]<<12|r[t.charCodeAt(i+2)]<<6|r[t.charCodeAt(i+3)],h[c++]=e>>16&255,h[c++]=e>>8&255,h[c++]=255&e;return 2===o&&(e=r[t.charCodeAt(i)]<<2|r[t.charCodeAt(i+1)]>>4,h[c++]=255&e),1===o&&(e=r[t.charCodeAt(i)]<<10|r[t.charCodeAt(i+1)]<<4|r[t.charCodeAt(i+2)]>>2,h[c++]=e>>8&255,h[c++]=255&e),h}function f(t){return i[t>>18&63]+i[t>>12&63]+i[t>>6&63]+i[63&t]}function p(t,e,i){for(var r=[],n=e;n<i;n+=3)r.push(f((t[n]<<16&16711680)+(t[n+1]<<8&65280)+(255&t[n+2])));return r.join("")}function d(t){for(var e,r=t.length,n=r%3,s=[],a=16383,o=0,l=r-n;o<l;o+=a)s.push(p(t,o,o+a>l?l:o+a));return 1===n?s.push(i[(e=t[r-1])>>2]+i[e<<4&63]+"=="):2===n&&s.push(i[(e=(t[r-2]<<8)+t[r-1])>>10]+i[e>>4&63]+i[e<<2&63]+"="),s.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},72:function(t,e,i){"use strict";/*!
2 * The buffer module from node.js, for the browser.
3 *
4 * @author   Feross Aboukhadijeh <https://feross.org>
5 * @license  MIT
6 */var r=i(675),n=i(783),s="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=h,e.SlowBuffer=b,e.INSPECT_MAX_BYTES=50;var a=2147483647;function o(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}function l(t){if(t>a)throw RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,h.prototype),e}function h(t,e,i){if("number"==typeof t){if("string"==typeof e)throw TypeError('The "string" argument must be of type string. Received type number');return p(t)}return u(t,e,i)}function u(t,e,i){if("string"==typeof t)return d(t,e);if(ArrayBuffer.isView(t))return m(t);if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(J(t,ArrayBuffer)||t&&J(t.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(J(t,SharedArrayBuffer)||t&&J(t.buffer,SharedArrayBuffer)))return g(t,e,i);if("number"==typeof t)throw TypeError('The "value" argument must not be of type number. Received type number');var r=t.valueOf&&t.valueOf();if(null!=r&&r!==t)return h.from(r,e,i);var n=v(t);if(n)return n;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return h.from(t[Symbol.toPrimitive]("string"),e,i);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function c(t){if("number"!=typeof t)throw TypeError('"size" argument must be of type number');if(t<0)throw RangeError('The value "'+t+'" is invalid for option "size"')}function f(t,e,i){return(c(t),t<=0)?l(t):void 0!==e?"string"==typeof i?l(t).fill(e,i):l(t).fill(e):l(t)}function p(t){return c(t),l(t<0?0:0|y(t))}function d(t,e){if(("string"!=typeof e||""===e)&&(e="utf8"),!h.isEncoding(e))throw TypeError("Unknown encoding: "+e);var i=0|x(t,e),r=l(i),n=r.write(t,e);return n!==i&&(r=r.slice(0,n)),r}function m(t){for(var e=t.length<0?0:0|y(t.length),i=l(e),r=0;r<e;r+=1)i[r]=255&t[r];return i}function g(t,e,i){var r;if(e<0||t.byteLength<e)throw RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(i||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(r=void 0===e&&void 0===i?new Uint8Array(t):void 0===i?new Uint8Array(t,e):new Uint8Array(t,e,i),h.prototype),r}function v(t){if(h.isBuffer(t)){var e=0|y(t.length),i=l(e);return 0===i.length||t.copy(i,0,0,e),i}return void 0!==t.length?"number"!=typeof t.length||K(t.length)?l(0):m(t):"Buffer"===t.type&&Array.isArray(t.data)?m(t.data):void 0}function y(t){if(t>=a)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|t}function b(t){return+t!=t&&(t=0),h.alloc(+t)}function x(t,e){if(h.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||J(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var i=t.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===i)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":return q(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return $(t).length;default:if(n)return r?-1:q(t).length;e=(""+e).toLowerCase(),n=!0}}function _(t,e,i){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length||((void 0===i||i>this.length)&&(i=this.length),i<=0||(i>>>=0)<=(e>>>=0)))return"";for(t||(t="utf8");;)switch(t){case"hex":return B(this,e,i);case"utf8":case"utf-8":return O(this,e,i);case"ascii":return I(this,e,i);case"latin1":case"binary":return R(this,e,i);case"base64":return D(this,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,e,i);default:if(r)throw TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function w(t,e,i){var r=t[e];t[e]=t[i],t[i]=r}function k(t,e,i,r,n){if(0===t.length)return -1;if("string"==typeof i?(r=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),K(i=+i)&&(i=n?0:t.length-1),i<0&&(i=t.length+i),i>=t.length){if(n)return -1;i=t.length-1}else if(i<0){if(!n)return -1;i=0}if("string"==typeof e&&(e=h.from(e,r)),h.isBuffer(e))return 0===e.length?-1:E(t,e,i,r,n);if("number"==typeof e)return(e&=255,"function"==typeof Uint8Array.prototype.indexOf)?n?Uint8Array.prototype.indexOf.call(t,e,i):Uint8Array.prototype.lastIndexOf.call(t,e,i):E(t,[e],i,r,n);throw TypeError("val must be string, number or Buffer")}function E(t,e,i,r,n){var s,a=1,o=t.length,l=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return -1;a=2,o/=2,l/=2,i/=2}function h(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(n){var u=-1;for(s=i;s<o;s++)if(h(t,s)===h(e,-1===u?0:s-u)){if(-1===u&&(u=s),s-u+1===l)return u*a}else -1!==u&&(s-=s-u),u=-1}else for(i+l>o&&(i=o-l),s=i;s>=0;s--){for(var c=!0,f=0;f<l;f++)if(h(t,s+f)!==h(e,f)){c=!1;break}if(c)return s}return -1}function S(t,e,i,r){i=Number(i)||0;var n=t.length-i;r?(r=Number(r))>n&&(r=n):r=n;var s=e.length;r>s/2&&(r=s/2);for(var a=0;a<r;++a){var o=parseInt(e.substr(2*a,2),16);if(K(o))break;t[i+a]=o}return a}function P(t,e,i,r){return Z(q(e,t.length-i),t,i,r)}function M(t,e,i,r){return Z(Y(e),t,i,r)}function C(t,e,i,r){return M(t,e,i,r)}function A(t,e,i,r){return Z($(e),t,i,r)}function T(t,e,i,r){return Z(X(e,t.length-i),t,i,r)}function D(t,e,i){return 0===e&&i===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,i))}function O(t,e,i){i=Math.min(t.length,i);for(var r=[],n=e;n<i;){var s,a,o,l,h=t[n],u=null,c=h>239?4:h>223?3:h>191?2:1;if(n+c<=i)switch(c){case 1:h<128&&(u=h);break;case 2:(192&(s=t[n+1]))==128&&(l=(31&h)<<6|63&s)>127&&(u=l);break;case 3:s=t[n+1],a=t[n+2],(192&s)==128&&(192&a)==128&&(l=(15&h)<<12|(63&s)<<6|63&a)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:s=t[n+1],a=t[n+2],o=t[n+3],(192&s)==128&&(192&a)==128&&(192&o)==128&&(l=(15&h)<<18|(63&s)<<12|(63&a)<<6|63&o)>65535&&l<1114112&&(u=l)}null===u?(u=65533,c=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),n+=c}return L(r)}e.kMaxLength=a,h.TYPED_ARRAY_SUPPORT=o(),h.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(h.prototype,"parent",{enumerable:!0,get:function(){if(h.isBuffer(this))return this.buffer}}),Object.defineProperty(h.prototype,"offset",{enumerable:!0,get:function(){if(h.isBuffer(this))return this.byteOffset}}
vendor: 12,252 bytes, line 6
6),h.poolSize=8192,h.from=function(t,e,i){return u(t,e,i)},Object.setPrototypeOf(h.prototype,Uint8Array.prototype),Object.setPrototypeOf(h,Uint8Array),h.alloc=function(t,e,i){return f(t,e,i)},h.allocUnsafe=function(t){return p(t)},h.allocUnsafeSlow=function(t){return p(t)},h.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==h.prototype},h.compare=function(t,e){if(J(t,Uint8Array)&&(t=h.from(t,t.offset,t.byteLength)),J(e,Uint8Array)&&(e=h.from(e,e.offset,e.byteLength)),!h.isBuffer(t)||!h.isBuffer(e))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var i=t.length,r=e.length,n=0,s=Math.min(i,r);n<s;++n)if(t[n]!==e[n]){i=t[n],r=e[n];break}return i<r?-1:r<i?1:0},h.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},h.concat=function(t,e){if(!Array.isArray(t))throw TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return h.alloc(0);if(void 0===e)for(i=0,e=0;i<t.length;++i)e+=t[i].length;var i,r=h.allocUnsafe(e),n=0;for(i=0;i<t.length;++i){var s=t[i];if(J(s,Uint8Array)&&(s=h.from(s)),!h.isBuffer(s))throw TypeError('"list" argument must be an Array of Buffers');s.copy(r,n),n+=s.length}return r},h.byteLength=x,h.prototype._isBuffer=!0,h.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)w(this,e,e+1);return this},h.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)w(this,e,e+3),w(this,e+1,e+2);return this},h.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)w(this,e,e+7),w(this,e+1,e+6),w(this,e+2,e+5),w(this,e+3,e+4);return this},h.prototype.toString=function(){var t=this.length;return 0===t?"":0==arguments.length?O(this,0,t):_.apply(this,arguments)},h.prototype.toLocaleString=h.prototype.toString,h.prototype.equals=function(t){if(!h.isBuffer(t))throw TypeError("Argument must be a Buffer");return this===t||0===h.compare(this,t)},h.prototype.inspect=function(){var t="",i=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,i).replace(/(.{2})/g,"$1 ").trim(),this.length>i&&(t+=" ... "),"<Buffer "+t+">"},s&&(h.prototype[s]=h.prototype.inspect),h.prototype.compare=function(t,e,i,r,n){if(J(t,Uint8Array)&&(t=h.from(t,t.offset,t.byteLength)),!h.isBuffer(t))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===i&&(i=t?t.length:0),void 0===r&&(r=0),void 0===n&&(n=this.length),e<0||i>t.length||r<0||n>this.length)throw RangeError("out of range index");if(r>=n&&e>=i)return 0;if(r>=n)return -1;if(e>=i)return 1;if(e>>>=0,i>>>=0,r>>>=0,n>>>=0,this===t)return 0;for(var s=n-r,a=i-e,o=Math.min(s,a),l=this.slice(r,n),u=t.slice(e,i),c=0;c<o;++c)if(l[c]!==u[c]){s=l[c],a=u[c];break}return s<a?-1:a<s?1:0},h.prototype.includes=function(t,e,i){return -1!==this.indexOf(t,e,i)},h.prototype.indexOf=function(t,e,i){return k(this,t,e,i,!0)},h.prototype.lastIndexOf=function(t,e,i){return k(this,t,e,i,!1)},h.prototype.write=function(t,e,i,r){if(void 0===e)r="utf8",i=this.length,e=0;else if(void 0===i&&"string"==typeof e)r=e,i=this.length,e=0;else if(isFinite(e))e>>>=0,isFinite(i)?(i>>>=0,void 0===r&&(r="utf8")):(r=i,i=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var n=this.length-e;if((void 0===i||i>n)&&(i=n),t.length>0&&(i<0||e<0)||e>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var s=!1;;)switch(r){case"hex":return S(this,t,e,i);case"utf8":case"utf-8":return P(this,t,e,i);case"ascii":return M(this,t,e,i);case"latin1":case"binary":return C(this,t,e,i);case"base64":return A(this,t,e,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,e,i);default:if(s)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),s=!0}},h.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var F=4096;function L(t){var e=t.length;if(e<=F)return String.fromCharCode.apply(String,t);for(var i="",r=0;r<e;)i+=String.fromCharCode.apply(String,t.slice(r,r+=F));return i}function I(t,e,i){var r="";i=Math.min(t.length,i);for(var n=e;n<i;++n)r+=String.fromCharCode(127&t[n]);return r}function R(t,e,i){var r="";i=Math.min(t.length,i);for(var n=e;n<i;++n)r+=String.fromCharCode(t[n]);return r}function B(t,e,i){var r=t.length;(!e||e<0)&&(e=0),(!i||i<0||i>r)&&(i=r);for(var n="",s=e;s<i;++s)n+=Q[t[s]];return n}function j(t,e,i){for(var r=t.slice(e,i),n="",s=0;s<r.length;s+=2)n+=String.fromCharCode(r[s]+256*r[s+1]);return n}function z(t,e,i){if(t%1!=0||t<0)throw RangeError("offset is not uint");if(t+e>i)throw RangeError("Trying to access beyond buffer length")}function N(t,e,i,r,n,s){if(!h.isBuffer(t))throw TypeError('"buffer" argument must be a Buffer instance');if(e>n||e<s)throw RangeError('"value" argument is out of bounds');if(i+r>t.length)throw RangeError("Index out of range")}function V(t,e,i,r,n,s){if(i+r>t.length||i<0)throw RangeError("Index out of range")}function H(t,e,i,r,s){return e=+e,i>>>=0,s||V(t,e,i,4,34028234663852886e22,-34028234663852886e22),n.write(t,e,i,r,23,4),i+4}function W(t,e,i,r,s){return e=+e,i>>>=0,s||V(t,e,i,8,17976931348623157e292,-17976931348623157e292),n.write(t,e,i,r,52,8),i+8}h.prototype.slice=function(t,e){var i=this.length;t=~~t,e=void 0===e?i:~~e,t<0?(t+=i)<0&&(t=0):t>i&&(t=i),e<0?(e+=i)<0&&(e=0):e>i&&(e=i),e<t&&(e=t);var r=this.subarray(t,e);return Object.setPrototypeOf(r,h.prototype),r},h.prototype.readUIntLE=function(t,e,i){t>>>=0,e>>>=0,i||z(t,e,this.length);for(var r=this[t],n=1,s=0;++s<e&&(n*=256);)r+=this[t+s]*n;return r},h.prototype.readUIntBE=function(t,e,i){t>>>=0,e>>>=0,i||z(t,e,this.length);for(var r=this[t+--e],n=1;e>0&&(n*=256);)r+=this[t+--e]*n;return r},h.prototype.readUInt8=function(t,e){return t>>>=0,e||z(t,1,this.length),this[t]},h.prototype.readUInt16LE=function(t,e){return t>>>=0,e||z(t,2,this.length),this[t]|this[t+1]<<8},h.prototype.readUInt16BE=function(t,e){return t>>>=0,e||z(t,2,this.length),this[t]<<8|this[t+1]},h.prototype.readUInt32LE=function(t,e){return t>>>=0,e||z(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},h.prototype.readUInt32BE=function(t,e){return t>>>=0,e||z(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},h.prototype.readIntLE=function(t,e,i){t>>>=0,e>>>=0,i||z(t,e,this.length);for(var r=this[t],n=1,s=0;++s<e&&(n*=256);)r+=this[t+s]*n;return r>=(n*=128)&&(r-=Math.pow(2,8*e)),r},h.prototype.readIntBE=function(t,e,i){t>>>=0,e>>>=0,i||z(t,e,this.length);for(var r=e,n=1,s=this[t+--r];r>0&&(n*=256);)s+=this[t+--r]*n;return s>=(n*=128)&&(s-=Math.pow(2,8*e)),s},h.prototype.readInt8=function(t,e){return(t>>>=0,e||z(t,1,this.length),128&this[t])?-((255-this[t]+1)*1):this[t]},h.prototype.readInt16LE=function(t,e){t>>>=0,e||z(t,2,this.length);var i=this[t]|this[t+1]<<8;return 32768&i?4294901760|i:i},h.prototype.readInt16BE=function(t,e){t>>>=0,e||z(t,2,this.length);var i=this[t+1]|this[t]<<8;return 32768&i?4294901760|i:i},h.prototype.readInt32LE=function(t,e){return t>>>=0,e||z(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},h.prototype.readInt32BE=function(t,e){return t>>>=0,e||z(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},h.prototype.readFloatLE=function(t,e){return t>>>=0,e||z(t,4,this.length),n.read(this,t,!0,23,4)},h.prototype.readFloatBE=function(t,e){return t>>>=0,e||z(t,4,this.length),n.read(this,t,!1,23,4)},h.prototype.readDoubleLE=function(t,e){return t>>>=0,e||z(t,8,this.length),n.read(this,t,!0,52,8)},h.prototype.readDoubleBE=function(t,e){return t>>>=0,e||z(t,8,this.length),n.read(this,t,!1,52,8)},h.prototype.writeUIntLE=function(t,e,i,r){if(t=+t,e>>>=0,i>>>=0,!r){var n=Math.pow(2,8*i)-1;N(this,t,e,i,n,0)}var s=1,a=0;for(this[e]=255&t;++a<i&&(s*=256);)this[e+a]=t/s&255;return e+i},h.prototype.writeUIntBE=function(t,e,i,r){if(t=+t,e>>>=0,i>>>=0,!r){var n=Math.pow(2,8*i)-1;N(this,t,e,i,n,0)}var s=i-1,a=1;for(this[e+s]=255&t;--s>=0&&(a*=256);)this[e+s]=t/a&255;return e+i},h.prototype.writeUInt8=function(t,e,i){return t=+t,e>>>=0,i||N(this,t,e,1,255,0),this[e]=255&t,e+1},h.prototype.writeUInt16LE=function(t,e,i){return t=+t,e>>>=0,i||N(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},h.prototype.writeUInt16BE=function(t,e,i){return t=+t,e>>>=0,i||N(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},h.prototype.writeUInt32LE=function(t,e,i){return t=+t,e>>>=0,i||N(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},h.prototype.writeUInt32BE=function(t,e,i){return t=+t,e>>>=0,i||N(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},h.prototype.writeIntLE=function(t,e,i,r){if(t=+t,e>>>=0,!r){var n=Math.pow(2,8*i-1);N(this,t,e,i,n-1,-n)}var s=0,a=1,o=0;for(this[e]=255&t;++s<i&&(a*=256);)t<0&&0===o&&0!==this[e+s-1]&&(o=1),this[e+s]=(t/a>>0)-o&255;return e+i},h.prototype.writeIntBE=function(t,e,i,r){if(t=+t,e>>>=0,!r){var n=Math.pow(2,8*i-1);N(this,t,e,i,n-1,-n)}var s=i-1,a=1,o=0;for(this[e+s]=255&t;--s>=0&&(a*=256);)t<0&&0===o&&0!==this[e+s+1]&&(o=1),this[e+s]=(t/a>>0)-o&255;return e+i},h.prototype.writeInt8=function(t,e,i){return t=+t,e>>>=0,i||N(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},h.prototype.writeInt16LE=function(t,e,i){return t=+t,e>>>=0,i||N(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},h.prototype.writeInt16BE=function(t,e,i){return t=+t,e>>>=0,i||N(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},h.prototype.writeInt32LE=function(t,e,i){return t=+t,e>>>=0,i||N(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},h.prototype.writeInt32BE=function(t,e,i){return t=+t,e>>>=0,i||N(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},h.prototype.writeFloatLE=function(t,e,i){return H(this,t,e,!0,i)},h.prototype.writeFloatBE=function(t,e,i){return H(this,t,e,!1,i)},h.prototype.writeDoubleLE=function(t,e,i){return W(this,t,e,!0,i)},h.prototype.writeDoubleBE=function(t,e,i){return W(this,t,e,!1,i)},h.prototype.copy=function(t,e,i,r){if(!h.isBuffer(t))throw TypeError("argument should be a Buffer");if(i||(i=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<i&&(r=i),r===i||0===t.length||0===this.length)return 0;if(e<0)throw RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw RangeError("Index out of range");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-i&&(r=t.length-e+i);var n=r-i;if(this===t&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(e,i,r);else if(this===t&&i<e&&e<r)for(var s=n-1;s>=0;--s)t[s+e]=this[s+i];else Uint8Array.prototype.set.call(t,this.subarray(i,r),e);return n},h.prototype.fill=function(t,e,i,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,i=this.length):"string"==typeof i&&(r=i,i=this.length),void 0!==r&&"string"!=typeof r)throw TypeError("encoding must be a string");if("string"==typeof r&&!h.isEncoding(r))throw TypeError("Unknown encoding: "+r);if(1===t.length){var n,s=t.charCodeAt(0);("utf8"===r&&s<128||"latin1"===r)&&(t=s)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<i)throw RangeError("Out of range index");if(i<=e)return this;if(e>>>=0,i=void 0===i?this.length:i>>>0,t||(t=0),"number"==typeof t)for(n=e;n<i;++n)this[n]=t;else{var a=h.isBuffer(t)?t:h.from(t,r),o=a.length;if(0===o)throw TypeError('The value "'+t+'" is invalid for argument "value"');for(n=0;n<i-e;++n)this[n+e]=a[n%o]}return this};var U=/[^+/0-9A-Za-z-_]/g;function G(t){if((t=(t=t.split("=")[0]).trim().replace(U,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}function q(t,e){e=e||1/0;for(var i,r=t.length,n=null,s=[],a=0;a<r;++a){if((i=t.charCodeAt(a))>
655295&&i<57344){if(!n){if(i>56319||a+1===r){(e-=3)>-1&&s.push(239,191,189);continue}n=i;continue}if(i<56320){(e-=3)>-1&&s.push(239,191,189),n=i;continue}i=(n-55296<<10|i-56320)+65536}else n&&(e-=3)>-1&&s.push(239,191,189);if(n=null,i<128){if((e-=1)<0)break;s.push(i)}else if(i<2048){if((e-=2)<0)break;s.push(i>>6|192,63&i|128)}else if(i<65536){if((e-=3)<0)break;s.push(i>>12|224,i>>6&63|128,63&i|128)}else if(i<1114112){if((e-=4)<0)break;s.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}else throw Error("Invalid code point")}return s}function Y(t){for(var e=[],i=0;i<t.length;++i)e.push(255&t.charCodeAt(i));return e}function X(t,e){for(var i,r,n=[],s=0;s<t.length&&!((e-=2)<0);++s)r=(i=t.charCodeAt(s))>>8,n.push(i%256),n.push(r);return n}function $(t){return r.toByteArray(G(t))}function Z(t,e,i,r){for(var n=0;n<r&&!(n+i>=e.length)&&!(n>=t.length);++n)e[n+i]=t[n];return n}function J(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function K(t){return t!=t}var Q=function(){for(var t="0123456789abcdef",e=Array(256),i=0;i<16;++i)for(var r=16*i,n=0;n<16;++n)e[r+n]=t[i]+t[n];return e}()},783:function(t,e){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */e.read=function(t,e,i,r,n){var s,a,o=8*n-r-1,l=(1<<o)-1,h=l>>1,u=-7,c=i?n-1:0,f=i?-1:1,p=t[e+c];for(c+=f,s=p&(1<<-u)-1,p>>=-u,u+=o;u>0;s=256*s+t[e+c],c+=f,u-=8);for(a=s&(1<<-u)-1,s>>=-u,u+=r;u>0;a=256*a+t[e+c],c+=f,u-=8);if(0===s)s=1-h;else{if(s===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),s-=h}return(p?-1:1)*a*Math.pow(2,s-r)},e.write=function(t,e,i,r,n,s){var a,o,l,h=8*s-n-1,u=(1<<h)-1,c=u>>1,f=23===n?5960464477539062e-23:0,p=r?0:s-1,d=r?1:-1,m=e<0||0===e&&1/e<0?1:0;for(isNaN(e=Math.abs(e))||e===1/0?(o=isNaN(e)?1:0,a=u):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+c>=1?e+=f/l:e+=f*Math.pow(2,1-c),e*l>=2&&(a++,l/=2),a+c>=u?(o=0,a=u):a+c>=1?(o=(e*l-1)*Math.pow(2,n),a+=c):(o=e*Math.pow(2,c-1)*Math.pow(2,n),a=0));n>=8;t[i+p]=255&o,p+=d,o/=256,n-=8);for(a=a<<n|o,h+=n;h>0;t[i+p]=255&a,p+=d,a/=256,h-=8);t[i+p-d]|=128*m}}},r={};function n(t){var e=r[t];if(void 0!==e)return e.exports;var s=r[t]={exports:{}},a=!0;try{i[t](s,s.exports,n),a=!1}finally{a&&delete r[t]}return s.exports}n.ab=e+"/";var s=n(72);t.exports=s}()},5416:function(){},2599:function(){},1784:function(){},7663:function(t){var e="/";!function(){var i={229:function(t){var e,i,r,n=t.exports={};function s(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function o(t){if(e===setTimeout)return setTimeout(t,0);if((e===s||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(i){try{return e.call(null,t,0)}catch(i){return e.call(this,t,0)}}}function l(t){if(i===clearTimeout)return clearTimeout(t);if((i===a||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{return i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:s}catch(t){e=s}try{i="function"==typeof clearTimeout?clearTimeout:a}catch(t){i=a}}();var h=[],u=!1,c=-1;function f(){u&&r&&(u=!1,r.length?h=r.concat(h):c=-1,h.length&&p())}function p(){if(!u){var t=o(f);u=!0;for(var e=h.length;e;){for(r=h,h=[];++c<e;)r&&r[c].run();c=-1,e=h.length}r=null,u=!1,l(t)}}function d(t,e){this.fun=t,this.array=e}function m(){}n.nextTick=function(t){var e=Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)e[i-1]=arguments[i];h.push(new d(t,e)),1!==h.length||u||o(p)},d.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=m,n.addListener=m,n.once=m,n.off=m,n.removeListener=m,n.removeAllListeners=m,n.emit=m,n.prependListener=m,n.prependOnceListener=m,n.listeners=function(t){return[]},n.binding=function(t){throw Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(t){throw Error("process.chdir is not supported")},n.umask=function(){return 0}}},r={};function n(t){var e=r[t];if(void 0!==e)return e.exports;var s=r[t]={exports:{}},a=!0;try{i[t](s,s.exports,n),a=!1}finally{a&&delete r[t]}return s.exports}n.ab=e+"/";var s=n(229);t.exports=s}()}
6,1664:function(t,e,i){t.exports=i(9577)},1163:function(t,e,i){t.exports=i(9090)},4298:function(t,e,i){t.exports=i(2892)},2703:function(t,e,i){"use strict";var r=i(414);function n(){}function s(){}s.resetWarningCache=n,t.exports=function(){function t(t,e,i,n,s,a){if(a!==r){var o=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw o.name="Invariant Violation",o}}function e(){return t}t.isRequired=t;var i={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:s,resetWarningCache:n};return i.PropTypes=i,i}},5697:function(t,e,i){t.exports=i(2703)()},414:function(t){"use strict";var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";t.exports=e},9464:function(t,e,i){"use strict";r={value:!0};var r,n=p(i(8239)),s=p(i(5105)),a=p(i(9663)),o=p(i(2600)),l=p(i(9135)),h=p(i(3196)),u=p(i(7294)),c=p(i(5697)),f=p(i(1248));function p(t){return t&&t.__esModule?t:{default:t}}var d=function(t){function e(){(0,a.default)(this,e);for(var t,i,r,n,o=arguments.length,h=Array(o),u=0;u<o;u++)h[u]=arguments[u];return i=r=(0,l.default)(this,(t=e.__proto__||(0,s.default)(e)).call.apply(t,[this].concat(h))),r.handleClickToPause=function(){r.anim.isPaused?r.anim.play():r.anim.pause()},n=i,(0,l.default)(r,n)}return(0,h.default)(e,t),(0,o.default)(e,[{key:"componentDidMount",value:function(){var t=this.props,e=t.options,i=t.eventListeners,r=e.loop,s=e.autoplay,a=e.animationData,o=e.rendererSettings,l=e.segments;this.options={container:this.el,renderer:"svg",loop:!1!==r,autoplay:!1!==s,segments:!1!==l,animationData:a,rendererSettings:o},this.options=(0,n.default)({},this.options,e),this.anim=f.default.loadAnimation(this.options),this.registerEvents(i)}},{key:"componentWillUpdate",value:function(t){this.options.animationData!==t.options.animationData&&(this.deRegisterEvents(this.props.eventListeners),this.destroy(),this.options=(0,n.default)({},this.options,t.options),this.anim=f.default.loadAnimation(this.options),this.registerEvents(t.eventListeners))}},{key:"componentDidUpdate",value:function(){this.props.isStopped?this.stop():this.props.segments?this.playSegments():this.play(),this.pause(),this.setSpeed(),this.setDirection()}},{key:"componentWillUnmount",value:function(){this.deRegisterEvents(this.props.eventListeners),this.destroy(),this.options.animationData=null,this.anim=null}},{key:"setSpeed",value:function(){this.anim.setSpeed(this.props.speed)}},{key:"setDirection",value:function(){this.anim.setDirection(this.props.direction)}},{key:"play",value:function(){this.anim.play()}},{key:"playSegments",value:function(){this.anim.playSegments(this.props.segments)}},{key:"stop",value:function(){this.anim.stop()}},{key:"pause",value:function(){this.props.isPaused&&!this.anim.isPaused?this.anim.pause():!this.props.isPaused&&this.anim.isPaused&&this.anim.pause()}},{key:"destroy",value:function(){this.anim.destroy()}},{key:"registerEvents",value:function(t){var e=this;t.forEach(function(t){e.anim.addEventListener(t.eventName,t.callback)})}},{key:"deRegisterEvents",value:function(t){var e=this;t.forEach(function(t){e.anim.removeEventListener(t.eventName,t.callback)})}},{key:"render",value:function(){var t=this,e=this.props,i=e.width,r=e.height,s=e.ariaRole,a=e.ariaLabel,o=e.isClickToPauseDisabled,l=e.title,h=function(t){return"number"==typeof t?t+"px":t||"100%"},c=(0,n.default)({width:h(i),height:h(r),overflow:"hidden",margin:"0 auto",outline:"none"},this.props.style),f=o?function(){return null}:this.handleClickToPause;return u.default.createElement("div",{ref:function(e){t.el=e},style:c,onClick:f,title:l,role:s,"aria-label":a,tabIndex:"0"})}}]),e}(u.default.Component);e.Z=d,d.propTypes={eventListeners:c.default.arrayOf(c.default.object),options:c.default.object.isRequired,height:c.default.oneOfType([c.default.string,c.default.number]),width:c.default.oneOfType([c.default.string,c.default.number]),isStopped:c.default.bool,isPaused:c.default.bool,speed:c.default.number,segments:c.default.arrayOf(c.default.number),direction:c.default.number,ariaRole:c.default.string,ariaLabel:c.default.string,isClickToPauseDisabled:c.default.bool,title:c.default.string},d.defaultProps={eventListeners:[],isStopped:!1,isPaused:!1,speed:1,ariaRole:"button",ariaLabel:"animation",isClickToPauseDisabled:!1,title:""}}
6,6775:function(t,e,i){"use strict";i.d(e,{De:function(){return i1},Dx:function(){return i5},N0:function(){return J},ST:function(){return tt},ZL:function(){return iA},ce:function(){return r.d},f$:function(){return rx},jI:function(){return Q},jn:function(){return iv},kL:function(){return e1},od:function(){return ib},qi:function(){return ii},u:function(){return rf},uw:function(){return rg}});var r=i(2454);/*!
7 * Chart.js v3.9.1
8 * https://www.chartjs.org
9 * (c) 2022 Chart.js Contributors
10 * Released under the MIT License
11 */class n{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,i,r){let n=e.listeners[r],s=e.duration;n.forEach(r=>r({chart:t,initial:e.initial,numSteps:s,currentStep:Math.min(i-e.start,s)}))}_refresh(){this._request||(this._running=!0,this._request=r.r.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let e=0;this._charts.forEach((i,r)=>{let n;if(!i.running||!i.items.length)return;let s=i.items,a=s.length-1,o=!1;for(;a>=0;--a)(n=s[a])._active?(n._total>i.duration&&(i.duration=n._total),n.tick(t),o=!0):(s[a]=s[s.length-1],s.pop());o&&(r.draw(),this._notify(r,i,t,"progress")),s.length||(i.running=!1,this._notify(r,i,t,"complete"),i.initial=!1),e+=s.length}),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){let e=this._charts,i=e.get(t);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,i)),i}listen(t,e,i){this._getAnims(t).listeners[e].push(i)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){let e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce((t,e)=>Math.max(t,e._duration),0),this._refresh())}running(t){if(!this._running)return!1;let e=this._charts.get(t);return!!e&&!!e.running&&!!e.items.length}stop(t){let e=this._charts.get(t);if(!e||!e.items.length)return;let i=e.items,r=i.length-1;for(;r>=0;--r)i[r].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var s=new n;let a="transparent",o={boolean:(t,e,i)=>i>.5?e:t,color(t,e,i){let n=(0,r.c)(t||a),s=n.valid&&(0,r.c)(e||a);return s&&s.valid?s.mix(n,i).hexString():e},number:(t,e,i)=>t+(e-t)*i};class l{constructor(t,e,i,n){let s=e[i];n=(0,r.a)([t.to,n,s,t.from]);let a=(0,r.a)([t.from,s,n]);this._active=!0,this._fn=t.fn||o[t.type||typeof a],this._easing=r.e[t.easing]||r.e.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=i,this._from=a,this._to=n,this._promises=void 0}active(){return this._active}update(t,e,i){if(this._active){this._notify(!1);let n=this._target[this._prop],s=i-this._start,a=this._duration-s;this._start=i,this._duration=Math.floor(Math.max(a,t.duration)),this._total+=s,this._loop=!!t.loop,this._to=(0,r.a)([t.to,e,n,t.from]),this._from=(0,r.a)([t.from,n,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){let e;let i=t-this._start,r=this._duration,n=this._prop,s=this._from,a=this._loop,o=this._to;if(this._active=s!==o&&(a||i<r),!this._active){this._target[n]=o,this._notify(!0);return}if(i<0){this._target[n]=s;return}
11e=i/r%2,e=a&&e>1?2-e:e,e=this._easing(Math.min(1,Math.max(0,e))),this._target[n]=this._fn(s,o,e)}wait(){let t=this._promises||(this._promises=[]);return new Promise((e,i)=>{t.push({res:e,rej:i})})}_notify(t){let e=t?"res":"rej",i=this._promises||[];for(let t=0;t<i.length;t++)i[t][e]()}}let h=["x","y","borderWidth","radius","tension"],u=["color","borderColor","backgroundColor"];r.d.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0});let c=Object.keys(r.d.animation);r.d.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),r.d.set("animations",{colors:{type:"color",properties:u},numbers:{type:"number",properties:h}}),r.d.describe("animations",{_fallback:"animation"}),r.d.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>0|t}}}});class f{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!(0,r.i)(t))return;let e=this._properties;Object.getOwnPropertyNames(t).forEach(i=>{let n=t[i];if(!(0,r.i)(n))return;let s={};for(let t of c)s[t]=n[t];((0,r.b)(n.properties)&&n.properties||[i]).forEach(t=>{t!==i&&e.has(t)||e.set(t,s)})})}_animateOptions(t,e){let i=e.options,r=d(t,i);if(!r)return[];let n=this._createAnimations(r,i);return i.$shared&&p(t.options.$animations,i).then(()=>{t.options=i},()=>{}),n}_createAnimations(t,e){let i;let r=this._properties,n=[],s=t.$animations||(t.$animations={}),a=Object.keys(e),o=Date.now();for(i=a.length-1;i>=0;--i){let h=a[i];if("$"===h.charAt(0))continue;if("options"===h){n.push(...this._animateOptions(t,e));continue}let u=e[h],c=s[h],f=r.get(h);if(c){if(f&&c.active()){c.update(f,u,o);continue}c.cancel()}if(!f||!f.duration){t[h]=u;continue}s[h]=c=new l(f,t,h,u),n.push(c)}return n}update(t,e){if(0===this._properties.size){Object.assign(t,e);return}let i=this._createAnimations(t,e);if(i.length)return s.add(this._chart,i),!0}}function p(t,e){let i=[],r=Object.keys(e);for(let e=0;e<r.length;e++){let n=t[r[e]];n&&n.active()&&i.push(n.wait())}return Promise.all(i)}function d(t,e){if(!e)return;let i=t.options;if(!i){t.options=e;return}return i.$shared&&(t.options=i=Object.assign({},i,{$shared:!1,$animations:{}})),i}function m(t,e){let i=t&&t.options||{},r=i.reverse,n=void 0===i.min?e:0,s=void 0===i.max?e:0;return{start:r?s:n,end:r?n:s}}function g(t,e,i){if(!1===i)return!1;let r=m(t,i),n=m(e,i);return{top:n.end,right:r.end,bottom:n.start,left:r.start}}function v(t){let e,i,n,s;return(0,r.i)(t)?(e=t.top,i=t.right,n=t.bottom,s=t.left):e=i=n=s=t,{top:e,right:i,bottom:n,left:s,disabled:!1===t}}function y(t,e){let i,r;let n=[],s=t._getSortedDatasetMetas(e);for(i=0,r=s.length;i<r;++i)n.push(s[i].index);return n}function b(t,e,i,n={}){let s,a,o,l;let h=t.keys,u="single"===n.mode;if(null!==e){for(s=0,a=h.length;s<a;++s){if((o=+h[s])===i){if(n.all)continue;break}l=t.values[o],(0,r.g)(l)&&(u||0===e||(0,r.s)(e)===(0,r.s)(l))&&(e+=l)}return e}}function x(t){let e,i,r;let n=Object.keys(t),s=Array(n.length);for(e=0,i=n.length;e<i;++e)r=n[e],s[e]={x:r,y:t[r]};return s}function _(t,e){let i=t&&t.options.stacked;return i||void 0===i&&void 0!==e.stack}function w(t,e,i){return`${t.id}.${e.id}.${i.stack||i.type}`}function k(t){let{min:e,max:i,minDefined:r,maxDefined:n}=t.getUserBounds();return{min:r?e:Number.NEGATIVE_INFINITY,max:n?i:Number.POSITIVE_INFINITY}}function E(t,e,i){let r=t[e]||(t[e]={});return r[i]||(r[i]={})}function S(t,e,i,r){for(let n of e.getMatchingVisibleMetas(r).reverse()){let e=t[n.index];if(i&&e>0||!i&&e<0)return n.index}return null}function P(t,e){let i;let{chart:r,_cachedMeta:n}=t,s=r._stacks||(r._stacks={}),{iScale:a,vScale:o,index:l}=n,h=a.axis,u=o.axis,c=w(a,o,n),f=e.length;for(let t=0;t<f;++t){let r=e[t],{[h]:a,[u]:f}=r;(i=(r._stacks||(r._stacks={}))[u]=E(s,c,a))[l]=f,i._top=S(i,o,!0,n.type),i._bottom=S(i,o,!1,n.type)}}function M(t,e){let i=t.scales;return Object.keys(i).filter(t=>i[t].axis===e).shift()}function C(t,e){return(0,r.h)(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}function A(t,e,i){return(0,r.h)(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:i,index:e,mode:"default",type:"data"})}function T(t,e){let i=t.controller.index,r=t.vScale&&t.vScale.axis;
11if(r)for(let n of e=e||t._parsed){let t=n._stacks;if(!t||void 0===t[r]||void 0===t[r][i])return;delete t[r][i]}}let D=t=>"reset"===t||"none"===t,O=(t,e)=>e?t:Object.assign({},t),F=(t,e,i)=>t&&!e.hidden&&e._stacked&&{keys:y(i,!0),values:null};class L{constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.initialize()}initialize(){let t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=_(t.vScale,t),this.addElements()}updateIndex(t){this.index!==t&&T(this._cachedMeta),this.index=t}linkScales(){let t=this.chart,e=this._cachedMeta,i=this.getDataset(),n=(t,e,i,r)=>"x"===t?e:"r"===t?r:i,s=e.xAxisID=(0,r.v)(i.xAxisID,M(t,"x")),a=e.yAxisID=(0,r.v)(i.yAxisID,M(t,"y")),o=e.rAxisID=(0,r.v)(i.rAxisID,M(t,"r")),l=e.indexAxis,h=e.iAxisID=n(l,s,a,o),u=e.vAxisID=n(l,a,s,o);e.xScale=this.getScaleForId(s),e.yScale=this.getScaleForId(a),e.rScale=this.getScaleForId(o),e.iScale=this.getScaleForId(h),e.vScale=this.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){let e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){let t=this._cachedMeta;this._data&&(0,r.u)(this._data,this),t._stacked&&T(t)}_dataCheck(){let t=this.getDataset(),e=t.data||(t.data=[]),i=this._data;if((0,r.i)(e))this._data=x(e);else if(i!==e){if(i){(0,r.u)(i,this);let t=this._cachedMeta;T(t),t._parsed=[]}e&&Object.isExtensible(e)&&(0,r.l)(e,this),this._syncList=[],this._data=e}}addElements(){let t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){let e=this._cachedMeta,i=this.getDataset(),r=!1;this._dataCheck();let n=e._stacked;e._stacked=_(e.vScale,e),e.stack!==i.stack&&(r=!0,T(e),e.stack=i.stack),this._resyncElements(t),(r||n!==e._stacked)&&P(this,e._parsed)}configure(){let t=this.chart.config,e=t.datasetScopeKeys(this._type),i=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){let i,n,s;let{_cachedMeta:a,_data:o}=this,{iScale:l,_stacked:h}=a,u=l.axis,c=0===t&&e===o.length||a._sorted,f=t>0&&a._parsed[t-1];if(!1===this._parsing)a._parsed=o,a._sorted=!0,s=o;else{s=(0,r.b)(o[t])?this.parseArrayData(a,o,t,e):(0,r.i)(o[t])?this.parseObjectData(a,o,t,e):this.parsePrimitiveData(a,o,t,e);let l=()=>null===n[u]||f&&n[u]<f[u];for(i=0;i<e;++i)a._parsed[i+t]=n=s[i],c&&(l()&&(c=!1),f=n);a._sorted=c}h&&P(this,s)}parsePrimitiveData(t,e,i,r){let n,s,a;let{iScale:o,vScale:l}=t,h=o.axis,u=l.axis,c=o.getLabels(),f=o===l,p=Array(r);for(n=0,s=r;n<s;++n)a=n+i,p[n]={[h]:f||o.parse(c[a],a),[u]:l.parse(e[a],a)};return p}parseArrayData(t,e,i,r){let n,s,a,o;let{xScale:l,yScale:h}=t,u=Array(r);for(n=0,s=r;n<s;++n)o=e[a=n+i],u[n]={x:l.parse(o[0],a),y:h.parse(o[1],a)};return u}parseObjectData(t,e,i,n){let s,a,o,l;let{xScale:h,yScale:u}=t,{xAxisKey:c="x",yAxisKey:f="y"}=this._parsing,p=Array(n);for(s=0,a=n;s<a;
11++s)l=e[o=s+i],p[s]={x:h.parse((0,r.f)(l,c),o),y:u.parse((0,r.f)(l,f),o)};return p}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,i){let r=this.chart,n=this._cachedMeta,s=e[t.axis];return b({keys:y(r,!0),values:e._stacks[t.axis]},s,n.index,{mode:i})}updateRangeFromParsed(t,e,i,r){let n=i[e.axis],s=null===n?NaN:n,a=r&&i._stacks[e.axis];r&&a&&(r.values=a,s=b(r,n,this._cachedMeta.index)),t.min=Math.min(t.min,s),t.max=Math.max(t.max,s)}getMinMax(t,e){let i,n;let s=this._cachedMeta,a=s._parsed,o=s._sorted&&t===s.iScale,l=a.length,h=this._getOtherScale(t),u=F(e,s,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:f,max:p}=k(h);function d(){let e=(n=a[i])[h.axis];return!(0,r.g)(n[t.axis])||f>e||p<e}for(i=0;i<l&&(d()||(this.updateRangeFromParsed(c,t,n,u),!o));++i);if(o){for(i=l-1;i>=0;--i)if(!d()){this.updateRangeFromParsed(c,t,n,u);break}}return c}getAllParsedValues(t){let e,i,n;let s=this._cachedMeta._parsed,a=[];for(e=0,i=s.length;e<i;++e)n=s[e][t.axis],(0,r.g)(n)&&a.push(n);return a}getMaxOverflow(){return!1}getLabelAndValue(t){let e=this._cachedMeta,i=e.iScale,r=e.vScale,n=this.getParsed(t);return{label:i?""+i.getLabelForValue(n[i.axis]):"",value:r?""+r.getLabelForValue(n[r.axis]):""}}_update(t){let e=this._cachedMeta;this.update(t||"default"),e._clip=v((0,r.v)(this.options.clip,g(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){let t;let e=this._ctx,i=this.chart,r=this._cachedMeta,n=r.data||[],s=i.chartArea,a=[],o=this._drawStart||0,l=this._drawCount||n.length-o,h=this.options.drawActiveElementsOnTop;for(r.dataset&&r.dataset.draw(e,s,o,l),t=o;t<o+l;++t){let i=n[t];i.hidden||(i.active&&h?a.push(i):i.draw(e,s))}for(t=0;t<a.length;++t)a[t].draw(e,s)}getStyle(t,e){let i=e?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(i):this.resolveDataElementOptions(t||0,i)}getContext(t,e,i){let r;let n=this.getDataset();if(t>=0&&t<this._cachedMeta.data.length){let e=this._cachedMeta.data[t];(r=e.$context||(e.$context=A(this.getContext(),t,e))).parsed=this.getParsed(t),r.raw=n.data[t],r.index=r.dataIndex=t}else(r=this.$context||(this.$context=C(this.chart.getContext(),this.index))).dataset=n,r.index=r.datasetIndex=this.index;return r.active=!!e,r.mode=i,r}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e="default",i){let n="active"===e,s=this._cachedDataOpts,a=t+"-"+e,o=s[a],l=this.enableOptionSharing&&(0,r.j)(i);if(o)return O(o,l);let h=this.chart.config,u=h.datasetElementScopeKeys(this._type,t),c=n?[`${t}Hover`,"hover",t,""]:[t,""],f=h.getOptionScopes(this.getDataset(),u),p=Object.keys(r.d.elements[t]),d=()=>this.getContext(i,n),m=h.resolveNamedOptions(f,p,d,c);return m.$shared&&(m.$shared=l,s[a]=Object.freeze(O(m,l))),m}_resolveAnimations(t,e,i){let r;let n=this.chart,s=this._cachedDataOpts,a=`animation-${e}`,o=s[a];if(o)return o;if(!1!==n.options.animation){let n=this.chart.config,s=n.datasetAnimationScopeKeys(this._type,e),a=n.getOptionScopes(this.getDataset(),s);r=n.createResolver(a,this.getContext(t,i,e))}let l=new f(n,r&&r.animations);return r&&r._cacheable&&(s[a]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||D(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){let i=this.resolveDataElementOptions(t,e),r=this._sharedOptions,n=this.getSharedOptions(i),s=this.includeOptions(e,n)||n!==r;return this.updateSharedOptions(n,e,i),{sharedOptions:n,includeOptions:s}}updateElement(t,e,i,r){D(r)?Object.assign(t,i):this._resolveAnimations(e,r).update(t,i)}updateSharedOptions(t,e,i){t&&!D(e)&&this._resolveAnimations(void 0,e).update(t,i)}_setStyle(t,e,i,r){t.active=r;let n=this.getStyle(e,r);this._resolveAnimations(e,i,r).update(t,{options:!r&&this.getSharedOptions(n)||n})}removeHoverStyle(t,e,i){this._setStyle(t,i,"active",!1)}setHoverStyle(t,e,i){this._setStyle(t,i,"active",!0)}_removeDatasetHoverStyle(){let t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){let t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){let e=this._data,i=this._cachedMeta.data;for(let[t,e,i]of this._syncList)this[t](e,i);this._syncList=[];let r=i.length,n=e.length,s=Math.min(n,r);s&&this.parse(0,s),n>r?this._insertElements(r,n-r,t):n<r&&this._removeElements(n,r-n)}_insertElements(t,e,i=!0){let r;let n=this._cachedMeta,s=n.data,a=t+e,o=t=>{for(t.length+=e,r=t.length-1;r>=a;r--)t[r]=t[r-e]};for(o(s),r=t;r<a;++r)s[r]=new this.dataElementType;this._parsing&&o(n._parsed),this.parse(t,e),i&&this.updateElements(s,t,e,"reset")}updateElements(t,e,i,r){}_removeElements(t,e){let i=this._cachedMeta;if(this._parsing){let r=i._parsed.splice(t,e);i._stacked&&T(i,r)}i.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{let[e,i,r]=t;this[e](i,r)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){let t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,e){e&&this._sync(["_removeElements",t,e]);let i=arguments.length-2;i&&this._sync(["_insertElements",t,i])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function I(t,e){if(!t._cache.$bar){let i=t.getMatchingVisibleMetas(e),n=[];for(let e=0,r=i.length;e<r;e++)n=n.concat(i[e].controller.getAllParsedValues(t));t._cache.$bar=(0,r._)(n.sort((t,e)=>t-e))}return t._cache.$bar}function R(t){let e,i,n,s;let a=t.iScale,o=I(a,t.type),l=a._length,h=()=>{32767!==n&&-32768!==n&&((0,r.j)(s)&&(l=Math.min(l,Math.abs(n-s)||l)),s=n)};for(e=0,i=o.length;e<i;++e)n=a.getPixelForValue(o[e]),h();for(e=0,s=void 0,i=a.ticks.length;e<i;++e)n=a.getPixelForTick(e),h();return l}function B(t,e,i,n){let s,a;let o=i.barThickness;return(0,r.k)(o)?(s=e.min*i.categoryPercentage,a=i.barPercentage):(s=o*n,a=1),{chunk:s/n,ratio:a,start:e.pixels[t]-s/2}}function j(t,e,i,r){let n=e.pixels,s=n[t],a=t>0?n[t-1]:null,o=t<n.length-1?n[t+1]:null,l=i.categoryPercentage;null===a&&(a=s-(null===o?e.end-e.start:o-s)),null===o&&(o=s+s-a);let h=s-(s-Math.min(a,o))/2*l;return{chunk:Math.abs(o-a)/2*l/r,ratio:i.barPercentage,start:h}}function z(t,e,i,r){let n=i.parse(t[0],r),s=i.parse(t[1],r),a=Math.min(n,s),o=Math.max(n,s),l=a,h=o;Math.abs(a)>Math.abs(o)&&(l=o,h=a),e[i.axis]=h,e._custom={barStart:l,barEnd:h,start:n,end:s,min:a,max:o}}function N(t,e,i,n){return(0,r.b)(t)?z(t,e,i,n):e[i.axis]=i.parse(t,n),e}function V(t,e,i,r){let n,s,a,o;let l=t.iScale,h=t.vScale,u=l.getLabels(),c=l===h,f=[];for(n=i,s=i+r;n<s;++n)o=e[n],(a={})[l.axis]=c||l.parse(u[n],n),f.push(N(o,a,h,n));return f}function H(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function W(t,e,i){return 0!==t?(0,r.s)(t):(e.isHorizontal()?1:-1)*(e.min>=i?1:-1)}function U(t){let e,i,r,n,s;return t.horizontal?(e=t.base>t.x,i="left",r="right"):(e=t.base<t.y,i="bottom",r="top"),e?(n="end",s="start"):(n="start",s="end"),{start:i,end:r,reverse:e,top:n,bottom:s}}function G(t,e,i,r){let n=e.borderSkipped,s={};if(!n){t.borderSkipped=s;return}if(!0===n){t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}let{start:a,end:o,reverse:l,top:h,bottom:u}=U(t);"middle"===n&&i&&(t.enableBorderRadius=!0,(i._top||0)===r?n=h:(i._bottom||0)===r?n=u:(s[q(u,a,o,l)]=!0,n=h)),s[q(n,a,o,l)]=!0,t.borderSkipped=s}function q(t,e,i,r){return t=r?X(t=Y(t,e,i),i,e):X(t,e,i)}function Y(t,e,i){return t===e?i:t===i?e:t}function X(t,e,i){return"start"===t?e:"end"===t?i:t}
11function $(t,{inflateAmount:e},i){t.inflateAmount="auto"===e?1===i?.33:0:e}L.defaults={},L.prototype.datasetElementType=null,L.prototype.dataElementType=null;class Z extends L{parsePrimitiveData(t,e,i,r){return V(t,e,i,r)}parseArrayData(t,e,i,r){return V(t,e,i,r)}parseObjectData(t,e,i,n){let s,a,o,l;let{iScale:h,vScale:u}=t,{xAxisKey:c="x",yAxisKey:f="y"}=this._parsing,p="x"===h.axis?c:f,d="x"===u.axis?c:f,m=[];for(s=i,a=i+n;s<a;++s)l=e[s],(o={})[h.axis]=h.parse((0,r.f)(l,p),s),m.push(N((0,r.f)(l,d),o,u,s));return m}updateRangeFromParsed(t,e,i,r){super.updateRangeFromParsed(t,e,i,r);let n=i._custom;n&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,n.min),t.max=Math.max(t.max,n.max))}getMaxOverflow(){return 0}getLabelAndValue(t){let{iScale:e,vScale:i}=this._cachedMeta,r=this.getParsed(t),n=r._custom,s=H(n)?"["+n.start+", "+n.end+"]":""+i.getLabelForValue(r[i.axis]);return{label:""+e.getLabelForValue(r[e.axis]),value:s}}initialize(){this.enableOptionSharing=!0,super.initialize(),this._cachedMeta.stack=this.getDataset().stack}update(t){let e=this._cachedMeta;this.updateElements(e.data,0,e.data.length,t)}updateElements(t,e,i,n){let s="reset"===n,{index:a,_cachedMeta:{vScale:o}}=this,l=o.getBasePixel(),h=o.isHorizontal(),u=this._getRuler(),{sharedOptions:c,includeOptions:f}=this._getSharedOptions(e,n);for(let p=e;p<e+i;p++){let e=this.getParsed(p),i=s||(0,r.k)(e[o.axis])?{base:l,head:l}:this._calculateBarValuePixels(p),d=this._calculateBarIndexPixels(p,u),m=(e._stacks||{})[o.axis],g={horizontal:h,base:i.base,enableBorderRadius:!m||H(e._custom)||a===m._top||a===m._bottom,x:h?i.head:d.center,y:h?d.center:i.head,height:h?d.size:Math.abs(i.size),width:h?Math.abs(i.size):d.size};f&&(g.options=c||this.resolveDataElementOptions(p,t[p].active?"active":n));let v=g.options||t[p].options;G(g,v,m,a),$(g,v,u.ratio),this.updateElement(t[p],p,g,n)}}_getStacks(t,e){let{iScale:i}=this._cachedMeta,n=i.getMatchingVisibleMetas(this._type).filter(t=>t.controller.options.grouped),s=i.options.stacked,a=[],o=t=>{let i=t.controller.getParsed(e),n=i&&i[t.vScale.axis];if((0,r.k)(n)||isNaN(n))return!0};for(let i of n)if(!(void 0!==e&&o(i))&&((!1===s||-1===a.indexOf(i.stack)||void 0===s&&void 0===i.stack)&&a.push(i.stack),i.index===t))break;return a.length||a.push(void 0),a}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,i){let r=this._getStacks(t,i),n=void 0!==e?r.indexOf(e):-1;return -1===n?r.length-1:n}_getRuler(){let t,e;let i=this.options,r=this._cachedMeta,n=r.iScale,s=[];for(t=0,e=r.data.length;t<e;++t)s.push(n.getPixelForValue(this.getParsed(t)[n.axis],t));let a=i.barThickness;return{min:a||R(r),pixels:s,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n,grouped:i.grouped,ratio:a?1:i.categoryPercentage*i.barPercentage}}_calculateBarValuePixels(t){let e,i;let{_cachedMeta:{vScale:n,_stacked:s},options:{base:a,minBarLength:o}}=this,l=a||0,h=this.getParsed(t),u=h._custom,c=H(u),f=h[n.axis],p=0,d=s?this.applyStack(n,h,s):f;d!==f&&(p=d-f,d=f),c&&(f=u.barStart,d=u.barEnd-u.barStart,0!==f&&(0,r.s)(f)!==(0,r.s)(u.barEnd)&&(p=0),p+=f);let m=(0,r.k)(a)||c?p:a,g=n.getPixelForValue(m);if(Math.abs(i=(e=this.chart.getDataVisibility(t)?n.getPixelForValue(p+d):g)-g)<o){i=W(i,n,l)*o,f===l&&(g-=i/2);let t=n.getPixelForDecimal(0),r=n.getPixelForDecimal(1),s=Math.min(t,r);e=(g=Math.max(Math.min(g,Math.max(t,r)),s))+i}if(g===n.getPixelForValue(l)){let t=(0,r.s)(i)*n.getLineWidthForValue(l)/2;g+=t,i-=t}return{size:i,base:g,head:e,center:e+i/2}}_calculateBarIndexPixels(t,e){let i,n;let s=e.scale,a=this.options,o=a.skipNull,l=(0,r.v)(a.maxBarThickness,1/0);if(e.grouped){let r=o?this._getStackCount(t):e.stackCount,s="flex"===a.barThickness?j(t,e,a,r):B(t,e,a,r),h=this._getStackIndex(this.index,this._cachedMeta.stack,o?t:void 0);i=s.start+s.chunk*h+s.chunk/2,n=Math.min(l,s.chunk*s.ratio)}else i=s.getPixelForValue(this.getParsed(t)[s.axis],t),n=Math.min(l,e.min*e.ratio);return{base:i-n/2,head:i+n/2,center:i,size:n}}draw(){let t=this._cachedMeta,e=t.vScale,i=t.data,r=i.length,n=0;for(;n<r;++n)null!==this.getParsed(n)[e.axis]&&i[n].draw(this._ctx)}}Z.id="bar",Z.defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}},Z.overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};class J extends L{initialize(){this.enableOptionSharing=!0,super.initialize()}
11parsePrimitiveData(t,e,i,r){let n=super.parsePrimitiveData(t,e,i,r);for(let t=0;t<n.length;t++)n[t]._custom=this.resolveDataElementOptions(t+i).radius;return n}parseArrayData(t,e,i,n){let s=super.parseArrayData(t,e,i,n);for(let t=0;t<s.length;t++){let n=e[i+t];s[t]._custom=(0,r.v)(n[2],this.resolveDataElementOptions(t+i).radius)}return s}parseObjectData(t,e,i,n){let s=super.parseObjectData(t,e,i,n);for(let t=0;t<s.length;t++){let n=e[i+t];s[t]._custom=(0,r.v)(n&&n.r&&+n.r,this.resolveDataElementOptions(t+i).radius)}return s}getMaxOverflow(){let t=this._cachedMeta.data,e=0;for(let i=t.length-1;i>=0;--i)e=Math.max(e,t[i].size(this.resolveDataElementOptions(i))/2);return e>0&&e}getLabelAndValue(t){let e=this._cachedMeta,{xScale:i,yScale:r}=e,n=this.getParsed(t),s=i.getLabelForValue(n.x),a=r.getLabelForValue(n.y),o=n._custom;return{label:e.label,value:"("+s+", "+a+(o?", "+o:"")+")"}}update(t){let e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,i,r){let n="reset"===r,{iScale:s,vScale:a}=this._cachedMeta,{sharedOptions:o,includeOptions:l}=this._getSharedOptions(e,r),h=s.axis,u=a.axis;for(let c=e;c<e+i;c++){let e=t[c],i=!n&&this.getParsed(c),f={},p=f[h]=n?s.getPixelForDecimal(.5):s.getPixelForValue(i[h]),d=f[u]=n?a.getBasePixel():a.getPixelForValue(i[u]);f.skip=isNaN(p)||isNaN(d),l&&(f.options=o||this.resolveDataElementOptions(c,e.active?"active":r),n&&(f.options.radius=0)),this.updateElement(e,c,f,r)}}resolveDataElementOptions(t,e){let i=this.getParsed(t),n=super.resolveDataElementOptions(t,e);n.$shared&&(n=Object.assign({},n,{$shared:!1}));let s=n.radius;return"active"!==e&&(n.radius=0),n.radius+=(0,r.v)(i&&i._custom,s),n}}function K(t,e,i){let n=1,s=1,a=0,o=0;if(e<r.T){let l=t,h=l+e,u=Math.cos(l),c=Math.sin(l),f=Math.cos(h),p=Math.sin(h),d=(t,e,n)=>(0,r.p)(t,l,h,!0)?1:Math.max(e,e*i,n,n*i),m=(t,e,n)=>(0,r.p)(t,l,h,!0)?-1:Math.min(e,e*i,n,n*i),g=d(0,u,f),v=d(r.H,c,p),y=m(r.P,u,f),b=m(r.P+r.H,c,p);n=(g-y)/2,s=(v-b)/2,a=-(g+y)/2,o=-(v+b)/2}return{ratioX:n,ratioY:s,offsetX:a,offsetY:o}}J.id="bubble",J.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}},J.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title:()=>""}}}};class Q extends L{constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,e){let i=this.getDataset().data,n=this._cachedMeta;if(!1===this._parsing)n._parsed=i;else{let s,a,o=t=>+i[t];if((0,r.i)(i[t])){let{key:t="value"}=this._parsing;o=e=>+(0,r.f)(i[e],t)}for(s=t,a=t+e;s<a;++s)n._parsed[s]=o(s)}}_getRotation(){return(0,r.t)(this.options.rotation-90)}_getCircumference(){return(0,r.t)(this.options.circumference)}_getRotationExtents(){let t=r.T,e=-r.T;for(let i=0;i<this.chart.data.datasets.length;++i)if(this.chart.isDatasetVisible(i)){let r=this.chart.getDatasetMeta(i).controller,n=r._getRotation(),s=r._getCircumference();t=Math.min(t,n),e=Math.max(e,n+s)}return{rotation:t,circumference:e-t}}update(t){let{chartArea:e}=this.chart,i=this._cachedMeta,n=i.data,s=this.getMaxBorderWidth()+this.getMaxOffset(n)+this.options.spacing,a=Math.max((Math.min(e.width,e.height)-s)/2,0),o=Math.min((0,r.m)(this.options.cutout,a),1),l=this._getRingWeight(this.index),{circumference:h,rotation:u}=this._getRotationExtents(),{ratioX:c,ratioY:f,offsetX:p,offsetY:d}=K(u,h,o),m=Math.max(Math.min((e.width-s)/c,(e.height-s)/f)/2,0),g=(0,r.n)(this.options.radius,m),v=Math.max(g*o,0),y=(g-v)/this._getVisibleDatasetWeightTotal();this.offsetX=p*g,this.offsetY=d*g,i.total=this.calculateTotal(),this.outerRadius=g-y*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-y*l,0),this.updateElements(n,0,n.length,t)}_circumference(t,e){let i=this.options,n=this._cachedMeta,s=this._getCircumference();return e&&i.animation.animateRotate||!this.chart.getDataVisibility(t)||null===n._parsed[t]||n.data[t].hidden?0:this.calculateCircumference(n._parsed[t]*s/r.T)}updateElements(t,e,i,r){let n;let s="reset"===r,a=this.chart,o=a.chartArea,l=a.options.animation,h=(o.left+o.right)/2,u=(o.top+o.bottom)/2,c=s&&l.animateScale,f=c?0:this.innerRadius,p=c?0:this.outerRadius,{sharedOptions:d,includeOptions:m}=this._getSharedOptions(e,r),g=this._getRotation();for(n=0;n<e;++n)g+=this._circumference(n,s);for(n=e;n<e+i;++n){let e=this._circumference(n,s),i=t[n],a={x:h+this.offsetX,y:u+this.offsetY,startAngle:g,endAngle:g+e,circumference:e,outerRadius:p,innerRadius:f};m&&(a.options=d||this.resolveDataElementOptions(n,i.active?"active":r)),g+=e,this.updateElement(i,n,a,r)}}calculateTotal(){let t;let e=this._cachedMeta,i=e.data,r=0;for(t=0;t<i.length;t++){let n=e._parsed[t];null!==n&&!isNaN(n)&&this.chart.getDataVisibility(t)&&!i[t].hidden&&(r+=Math.abs(n))}return r}calculateCircumference(t){let e=this._cachedMeta.total;return e>0&&!isNaN(t)?r.T*(Math.abs(t)/e):0}
11getLabelAndValue(t){let e=this._cachedMeta,i=this.chart,n=i.data.labels||[],s=(0,r.o)(e._parsed[t],i.options.locale);return{label:n[t]||"",value:s}}getMaxBorderWidth(t){let e,i,r,n,s,a=0,o=this.chart;if(!t){for(e=0,i=o.data.datasets.length;e<i;++e)if(o.isDatasetVisible(e)){t=(r=o.getDatasetMeta(e)).data,n=r.controller;break}}if(!t)return 0;for(e=0,i=t.length;e<i;++e)"inner"!==(s=n.resolveDataElementOptions(e)).borderAlign&&(a=Math.max(a,s.borderWidth||0,s.hoverBorderWidth||0));return a}getMaxOffset(t){let e=0;for(let i=0,r=t.length;i<r;++i){let t=this.resolveDataElementOptions(i);e=Math.max(e,t.offset||0,t.hoverOffset||0)}return e}_getRingWeightOffset(t){let e=0;for(let i=0;i<t;++i)this.chart.isDatasetVisible(i)&&(e+=this._getRingWeight(i));return e}_getRingWeight(t){return Math.max((0,r.v)(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}Q.id="doughnut",Q.defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"},Q.descriptors={_scriptable:t=>"spacing"!==t,_indexable:t=>"spacing"!==t},Q.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){let e=t.data;if(e.labels.length&&e.datasets.length){let{labels:{pointStyle:i}}=t.legend.options;return e.labels.map((e,r)=>{let n=t.getDatasetMeta(0).controller.getStyle(r);return{text:e,fillStyle:n.backgroundColor,strokeStyle:n.borderColor,lineWidth:n.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(r),index:r}})}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}},tooltip:{callbacks:{title:()=>"",label(t){let e=t.label,i=": "+t.formattedValue;return(0,r.b)(e)?(e=e.slice(),e[0]+=i):e+=i,e}}}}};class tt extends L{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){let e=this._cachedMeta,{dataset:i,data:n=[],_dataset:s}=e,a=this.chart._animationsDisabled,{start:o,count:l}=(0,r.q)(e,n,a);this._drawStart=o,this._drawCount=l,(0,r.w)(e)&&(o=0,l=n.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!s._decimated,i.points=n;let h=this.resolveDatasetElementOptions(t);this.options.showLine||(h.borderWidth=0),h.segment=this.options.segment,this.updateElement(i,void 0,{animated:!a,options:h},t),this.updateElements(n,o,l,t)}updateElements(t,e,i,n){let s="reset"===n,{iScale:a,vScale:o,_stacked:l,_dataset:h}=this._cachedMeta,{sharedOptions:u,includeOptions:c}=this._getSharedOptions(e,n),f=a.axis,p=o.axis,{spanGaps:d,segment:m}=this.options,g=(0,r.x)(d)?d:Number.POSITIVE_INFINITY,v=this.chart._animationsDisabled||s||"none"===n,y=e>0&&this.getParsed(e-1);for(let d=e;d<e+i;++d){let e=t[d],i=this.getParsed(d),b=v?e:{},x=(0,r.k)(i[p]),_=b[f]=a.getPixelForValue(i[f],d),w=b[p]=s||x?o.getBasePixel():o.getPixelForValue(l?this.applyStack(o,i,l):i[p],d);b.skip=isNaN(_)||isNaN(w)||x,b.stop=d>0&&Math.abs(i[f]-y[f])>g,m&&(b.parsed=i,b.raw=h.data[d]),c&&(b.options=u||this.resolveDataElementOptions(d,e.active?"active":n)),v||this.updateElement(e,d,b,n),y=i}}getMaxOverflow(){let t=this._cachedMeta,e=t.dataset,i=e.options&&e.options.borderWidth||0,r=t.data||[];return r.length?Math.max(i,r[0].size(this.resolveDataElementOptions(0)),r[r.length-1].size(this.resolveDataElementOptions(r.length-1)))/2:i}draw(){let t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}tt.id="line",tt.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},tt.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class te extends L{constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){let e=this._cachedMeta,i=this.chart,n=i.data.labels||[],s=(0,r.o)(e._parsed[t].r,i.options.locale);return{label:n[t]||"",value:s}}parseObjectData(t,e,i,n){return r.y.bind(this)(t,e,i,n)}update(t){let e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}getMinMax(){let t=this._cachedMeta,e={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((t,i)=>{let r=this.getParsed(i).r;!isNaN(r)&&this.chart.getDataVisibility(i)&&(r<e.min&&(e.min=r),r>e.max&&(e.max=r))}),e}_updateRadius(){let t=this.chart,e=t.chartArea,i=t.options,r=Math.max(Math.min(e.right-e.left,e.bottom-e.top)/2,0),n=Math.max(i.cutoutPercentage?r/100*i.cutoutPercentage:1,0),s=(r-n)/t.getVisibleDatasetCount();this.outerRadius=r-s*this.index,this.innerRadius=this.outerRadius-s}updateElements(t,e,i,n){let s;let a="reset"===n,o=this.chart,l=o.options.animation,h=this._cachedMeta.rScale,u=h.xCenter,c=h.yCenter,f=h.getIndexAngle(0)-.5*r.P,p=f,d=360/this.countVisibleElements();for(s=0;s<e;++s)p+=this._computeAngle(s,n,d);for(s=e;s<e+i;s++){let e=t[s],i=p,r=p+this._computeAngle(s,n,d),m=o.getDataVisibility(s)?h.getDistanceFromCenterForValue(this.getParsed(s).r):0;p=r,a&&(l.animateScale&&(m=0),l.animateRotate&&(i=r=f));let g={x:u,y:c,innerRadius:0,outerRadius:m,startAngle:i,endAngle:r,options:this.resolveDataElementOptions(s,e.active?"active":n)};this.updateElement(e,s,g,n)}}countVisibleElements(){let t=this._cachedMeta,e=0;return t.data.forEach((t,i)=>{!isNaN(this.getParsed(i).r)&&this.chart.getDataVisibility(i)&&e++}),e}_computeAngle(t,e,i){return this.chart.getDataVisibility(t)?(0,r.t)(this.resolveDataElementOptions(t,e).angle||i):0}}te.id="polarArea",te.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},te.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){let e=t.data;if(e.labels.length&&e.datasets.length){let{labels:{pointStyle:i}}=t.legend.options;return e.labels.map((e,r)=>{let n=t.getDatasetMeta(0).controller.getStyle(r);return{text:e,fillStyle:n.backgroundColor,strokeStyle:n.borderColor,lineWidth:n.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(r),index:r}})}return[]}}
11,onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}},tooltip:{callbacks:{title:()=>"",label:t=>t.chart.data.labels[t.dataIndex]+": "+t.formattedValue}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};class ti extends Q{}ti.id="pie",ti.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class tr extends L{getLabelAndValue(t){let e=this._cachedMeta.vScale,i=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(i[e.axis])}}parseObjectData(t,e,i,n){return r.y.bind(this)(t,e,i,n)}update(t){let e=this._cachedMeta,i=e.dataset,r=e.data||[],n=e.iScale.getLabels();if(i.points=r,"resize"!==t){let e=this.resolveDatasetElementOptions(t);this.options.showLine||(e.borderWidth=0);let s={_loop:!0,_fullLoop:n.length===r.length,options:e};this.updateElement(i,void 0,s,t)}this.updateElements(r,0,r.length,t)}updateElements(t,e,i,r){let n=this._cachedMeta.rScale,s="reset"===r;for(let a=e;a<e+i;a++){let e=t[a],i=this.resolveDataElementOptions(a,e.active?"active":r),o=n.getPointPositionForValue(a,this.getParsed(a).r),l=s?n.xCenter:o.x,h=s?n.yCenter:o.y,u={x:l,y:h,angle:o.angle,skip:isNaN(l)||isNaN(h),options:i};this.updateElement(e,a,u,r)}}}tr.id="radar",tr.defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}},tr.overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};class tn{constructor(){this.x=void 0,this.y=void 0,this.active=!1,this.options=void 0,this.$animations=void 0}tooltipPosition(t){let{x:e,y:i}=this.getProps(["x","y"],t);return{x:e,y:i}}hasValue(){return(0,r.x)(this.x)&&(0,r.x)(this.y)}getProps(t,e){let i=this.$animations;if(!e||!i)return this;let r={};return t.forEach(t=>{r[t]=i[t]&&i[t].active()?i[t]._to:this[t]}),r}}tn.defaults={},tn.defaultRoutes=void 0;let ts={values:t=>(0,r.b)(t)?t:""+t,numeric(t,e,i){let n;if(0===t)return"0";let s=this.chart.options.locale,a=t;if(i.length>1){let e=Math.max(Math.abs(i[0].value),Math.abs(i[i.length-1].value));(e<1e-4||e>1e15)&&(n="scientific"),a=ta(t,i)}let o=Math.max(Math.min(-1*Math.floor((0,r.z)(Math.abs(a))),20),0),l={notation:n,minimumFractionDigits:o,maximumFractionDigits:o};return Object.assign(l,this.options.ticks.format),(0,r.o)(t,s,l)},logarithmic(t,e,i){if(0===t)return"0";let n=t/Math.pow(10,Math.floor((0,r.z)(t)));return 1===n||2===n||5===n?ts.numeric.call(this,t,e,i):""}};function ta(t,e){let i=e.length>3?e[2].value-e[1].value:e[1].value-e[0].value;return Math.abs(i)>=1&&t!==Math.floor(t)&&(i=t-Math.floor(t)),i}var to=ts;function tl(t,e){let i=t.options.ticks,n=i.maxTicksLimit||th(t),s=i.major.enabled?tc(e):[],a=s.length,o=s[0],l=s[a-1],h=[];if(a>n)return tf(e,h,s,a/n),h;let u=tu(s,e,n);if(a>0){let t,i;let n=a>1?Math.round((l-o)/(a-1)):null;for(tp(e,h,u,(0,r.k)(n)?0:o-n,o),t=0,i=a-1;t<i;t++)tp(e,h,u,s[t],s[t+1]);return tp(e,h,u,l,(0,r.k)(n)?e.length:l+n),h}return tp(e,h,u),h}function th(t){let e=t.options.offset,i=t._tickSize();return Math.floor(Math.min(t._length/i+(e?0:1),t._maxLength/i))}function tu(t,e,i){let n=td(t),s=e.length/i;if(!n)return Math.max(s,1);let a=(0,r.A)(n);for(let t=0,e=a.length-1;t<e;t++){let e=a[t];
11if(e>s)return e}return Math.max(s,1)}function tc(t){let e,i;let r=[];for(e=0,i=t.length;e<i;e++)t[e].major&&r.push(e);return r}function tf(t,e,i,r){let n,s=0,a=i[0];for(n=0,r=Math.ceil(r);n<t.length;n++)n===a&&(e.push(t[n]),a=i[++s*r])}function tp(t,e,i,n,s){let a,o,l;let h=(0,r.v)(n,0),u=Math.min((0,r.v)(s,t.length),t.length),c=0;for(i=Math.ceil(i),s&&(i=(a=s-n)/Math.floor(a/i)),l=h;l<0;)l=Math.round(h+ ++c*i);for(o=Math.max(h,0);o<u;o++)o===l&&(e.push(t[o]),l=Math.round(h+ ++c*i))}function td(t){let e,i;let r=t.length;if(r<2)return!1;for(i=t[0],e=1;e<r;++e)if(t[e]-t[e-1]!==i)return!1;return i}r.d.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.color,offset:!1,borderDash:[],borderDashOffset:0,borderWidth:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:to.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),r.d.route("scale.ticks","color","","color"),r.d.route("scale.grid","color","","borderColor"),r.d.route("scale.grid","borderColor","","borderColor"),r.d.route("scale.title","color","","color"),r.d.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t}),r.d.describe("scales",{_fallback:"scale"}),r.d.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t});let tm=t=>"left"===t?"right":"right"===t?"left":t,tg=(t,e,i)=>"top"===e||"left"===e?t[e]+i:t[e]-i;function tv(t,e){let i=[],r=t.length/e,n=t.length,s=0;for(;s<n;s+=r)i.push(t[Math.floor(s)]);return i}function ty(t,e,i){let r;let n=t.ticks.length,s=Math.min(e,n-1),a=t._startPixel,o=t._endPixel,l=1e-6,h=t.getPixelForTick(s);if(!i||(r=1===n?Math.max(h-a,o-h):0===e?(t.getPixelForTick(1)-h)/2:(h-t.getPixelForTick(s-1))/2,!((h+=s<e?r:-r)<a-l)&&!(h>o+l)))return h}function tb(t,e){(0,r.Q)(t,t=>{let i;let r=t.gc,n=r.length/2;if(n>e){for(i=0;i<n;++i)delete t.data[r[i]];r.splice(0,n)}})}function tx(t){return t.drawTicks?t.tickLength:0}function t_(t,e){if(!t.display)return 0;let i=(0,r.O)(t.font,e),n=(0,r.K)(t.padding);return((0,r.b)(t.text)?t.text.length:1)*i.lineHeight+n.height}function tw(t,e){return(0,r.h)(t,{scale:e,type:"scale"})}function tk(t,e,i){return(0,r.h)(t,{tick:i,index:e,type:"tick"})}function tE(t,e,i){let n=(0,r.R)(t);return(i&&"right"!==e||!i&&"right"===e)&&(n=tm(n)),n}function tS(t,e,i,n){let s,a,o;let{top:l,left:h,bottom:u,right:c,chart:f}=t,{chartArea:p,scales:d}=f,m=0,g=u-l,v=c-h;if(t.isHorizontal()){if(a=(0,r.S)(n,h,c),(0,r.i)(i)){let t=Object.keys(i)[0],r=i[t];o=d[t].getPixelForValue(r)+g-e}else o="center"===i?(p.bottom+p.top)/2+g-e:tg(t,i,e);s=c-h}else{if((0,r.i)(i)){let t=Object.keys(i)[0],r=i[t];a=d[t].getPixelForValue(r)-v+e}else a="center"===i?(p.left+p.right)/2-v+e:tg(t,i,e);o=(0,r.S)(n,u,l),m="left"===i?-r.H:r.H}return{titleX:a,titleY:o,maxWidth:s,rotation:m}}class tP extends tn{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:i,_suggestedMax:n}=this;return t=(0,r.B)(t,Number.POSITIVE_INFINITY),e=(0,r.B)(e,Number.NEGATIVE_INFINITY),i=(0,r.B)(i,Number.POSITIVE_INFINITY),n=(0,r.B)(n,Number.NEGATIVE_INFINITY),{min:(0,r.B)(t,i),max:(0,r.B)(e,n
11),minDefined:(0,r.g)(t),maxDefined:(0,r.g)(e)}}getMinMax(t){let e,{min:i,max:n,minDefined:s,maxDefined:a}=this.getUserBounds();if(s&&a)return{min:i,max:n};let o=this.getMatchingVisibleMetas();for(let r=0,l=o.length;r<l;++r)e=o[r].controller.getMinMax(this,t),s||(i=Math.min(i,e.min)),a||(n=Math.max(n,e.max));return i=a&&i>n?n:i,n=s&&i>n?i:n,{min:(0,r.B)(i,(0,r.B)(n,i)),max:(0,r.B)(n,(0,r.B)(i,n))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){let t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){(0,r.C)(this.options.beforeUpdate,[this])}update(t,e,i){let{beginAtZero:n,grace:s,ticks:a}=this.options,o=a.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=(0,r.D)(this,s,n),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();let l=o<this.ticks.length;this._convertTicksToLabels(l?tv(this.ticks,o):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),a.display&&(a.autoSkip||"auto"===a.source)&&(this.ticks=tl(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t,e,i=this.options.reverse;this.isHorizontal()?(t=this.left,e=this.right):(t=this.top,e=this.bottom,i=!i),this._startPixel=t,this._endPixel=e,this._reversePixels=i,this._length=e-t,this._alignToPixels=this.options.alignToPixels}afterUpdate(){(0,r.C)(this.options.afterUpdate,[this])}beforeSetDimensions(){(0,r.C)(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){(0,r.C)(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),(0,r.C)(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){(0,r.C)(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){let e,i,n;let s=this.options.ticks;for(e=0,i=t.length;e<i;e++)(n=t[e]).label=(0,r.C)(s.callback,[n.value,e,t],this)}afterTickToLabelConversion(){(0,r.C)(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){(0,r.C)(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){let t,e,i;let n=this.options,s=n.ticks,a=this.ticks.length,o=s.minRotation||0,l=s.maxRotation,h=o;if(!this._isVisible()||!s.display||o>=l||a<=1||!this.isHorizontal()){this.labelRotation=o;return}let u=this._getLabelSizes(),c=u.widest.width,f=u.highest.height,p=(0,r.E)(this.chart.width-c,0,this.maxWidth);c+6>(t=n.offset?this.maxWidth/a:p/(a-1))&&(t=p/(a-(n.offset?.5:1)),e=this.maxHeight-tx(n.grid)-s.padding-t_(n.title,this.chart.options.font),i=Math.sqrt(c*c+f*f),h=Math.max(o,Math.min(l,h=(0,r.F)(Math.min(Math.asin((0,r.E)((u.highest.height+6)/t,-1,1)),Math.asin((0,r.E)(e/i,-1,1))-Math.asin((0,r.E)(f/i,-1,1))))))),this.labelRotation=h}afterCalculateLabelRotation(){(0,r.C)(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){(0,r.C)(this.options.beforeFit,[this])}fit(){let t={width:0,height:0},{chart:e,options:{ticks:i,title:n,grid:s}}=this,a=this._isVisible(),o=this.isHorizontal();if(a){let a=t_(n,e.options.font);if(o?(t.width=this.maxWidth,t.height=tx(s)+a):(t.height=this.maxHeight,t.width=tx(s)+a),i.display&&this.ticks.length){let{first:e,last:n,widest:s,highest:a}=this._getLabelSizes(),l=2*i.padding,h=(0,r.t)(this.labelRotation),u=Math.cos(h),c=Math.sin(h);if(o){let e=i.mirror?0:c*s.width+u*a.height;t.height=Math.min(this.maxHeight,t.height+e+l)}else{let e=i.mirror?0:u*s.width+c*a.height;t.width=Math.min(this.maxWidth,t.width+e+l)}this._calculatePadding(e,n,c,u)}}this._handleMargins(),o?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,i,r){let{ticks:{align:n,padding:s},position:a}=this.options,o=0!==this.labelRotation,l="top"!==a&&"x"===this.axis;if(this.isHorizontal()){let a=this.getPixelForTick(0)-this.left,h=this.right-this.getPixelForTick(this.ticks.length-1),u=0,c=0;o?l?(u=r*t.width,c=i*e.height):(u=i*t.height,c=r*e.width):"start"===n?c=e.width:"end"===n?u=t.width:"inner"!==n&&(u=t.width/2,c=e.width/2),this.paddingLeft=Math.max((u-a+s)*this.width/(this.width-a),0),this.paddingRight=Math.max((c-h+s)*this.width/(this.width-h),0)}
11else{let i=e.height/2,r=t.height/2;"start"===n?(i=0,r=t.height):"end"===n&&(i=e.height,r=0),this.paddingTop=i+s,this.paddingBottom=r+s}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){(0,r.C)(this.options.afterFit,[this])}isHorizontal(){let{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,i;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,i=t.length;e<i;e++)(0,r.k)(t[e].label)&&(t.splice(e,1),i--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){let e=this.options.ticks.sampleSize,i=this.ticks;e<i.length&&(i=tv(i,e)),this._labelSizes=t=this._computeLabelSizes(i,i.length)}return t}_computeLabelSizes(t,e){let i,n,s,a,o,l,h,u,c,f,p;let{ctx:d,_longestTextCache:m}=this,g=[],v=[],y=0,b=0;for(i=0;i<e;++i){if(a=t[i].label,o=this._resolveTickFontOptions(i),d.font=l=o.string,h=m[l]=m[l]||{data:{},gc:[]},u=o.lineHeight,c=f=0,(0,r.k)(a)||(0,r.b)(a)){if((0,r.b)(a))for(n=0,s=a.length;n<s;++n)p=a[n],(0,r.k)(p)||(0,r.b)(p)||(c=(0,r.G)(d,h.data,h.gc,c,p),f+=u)}else c=(0,r.G)(d,h.data,h.gc,c,a),f=u;g.push(c),v.push(f),y=Math.max(c,y),b=Math.max(f,b)}tb(m,e);let x=g.indexOf(y),_=v.indexOf(b),w=t=>({width:g[t]||0,height:v[t]||0});return{first:w(0),last:w(e-1),widest:w(x),highest:w(_),widths:g,heights:v}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){let e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);let e=this._startPixel+t*this._length;return(0,r.I)(this._alignToPixels?(0,r.J)(this.chart,e,0):e)}getDecimalForPixel(t){let e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){let{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){let e=this.ticks||[];if(t>=0&&t<e.length){let i=e[t];return i.$context||(i.$context=tk(this.getContext(),t,i))}return this.$context||(this.$context=tw(this.chart.getContext(),this))}_tickSize(){let t=this.options.ticks,e=(0,r.t)(this.labelRotation),i=Math.abs(Math.cos(e)),n=Math.abs(Math.sin(e)),s=this._getLabelSizes(),a=t.autoSkipPadding||0,o=s?s.widest.width+a:0,l=s?s.highest.height+a:0;return this.isHorizontal()?l*i>o*n?o/i:l/n:l*n<o*i?l/i:o/n}_isVisible(){let t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){let e,i,n,s,a,o,l,h,u,c,f,p;let d=this.axis,m=this.chart,g=this.options,{grid:v,position:y}=g,b=v.offset,x=this.isHorizontal(),_=this.ticks.length+(b?1:0),w=tx(v),k=[],E=v.setContext(this.getContext()),S=E.drawBorder?E.borderWidth:0,P=S/2,M=function(t){return(0,r.J)(m,t,S)};if("top"===y)e=M(this.bottom),o=this.bottom-w,h=e-P,c=M(t.top)+P,p=t.bottom;else if("bottom"===y)e=M(this.top),c=t.top,p=M(t.bottom)-P,o=e+P,h=this.top+w;else if("left"===y)e=M(this.right),a=this.right-w,l=e-P,u=M(t.left)+P,f=t.right;else if("right"===y)e=M(this.left),u=t.left,f=M(t.right)-P,a=e+P,l=this.left+w;else if("x"===d){if("center"===y)e=M((t.top+t.bottom)/2+.5);else if((0,r.i)(y)){let t=Object.keys(y)[0],i=y[t];e=M(this.chart.scales[t].getPixelForValue(i))}c=t.top,p=t.bottom,h=(o=e+P)+w}else if("y"===d){if("center"===y)e=M((t.left+t.right)/2);else if((0,r.i)(y)){let t=Object.keys(y)[0],i=y[t];e=M(this.chart.scales[t].getPixelForValue(i))}l=(a=e-P)-w,u=t.left,f=t.right}let C=(0,r.v)(g.ticks.maxTicksLimit,_),A=Math.max(1,Math.ceil(_/C));for(i=0;i<_;i+=A){let t=v.setContext(this.getContext(i)),e=t.lineWidth,d=t.color,g=t.borderDash||[],y=t.borderDashOffset,_=t.tickWidth,w=t.tickColor,E=t.tickBorderDash||[],S=t.tickBorderDashOffset;void 0!==(n=ty(this,i,b))&&(s=(0,r.J)(m,n,e),x?a=l=u=f=s:o=h=c=p=s,k.push({tx1:a,ty1:o,tx2:l,ty2:h,x1:u,y1:c,x2:f,y2:p,width:e,color:d,borderDash:g,borderDashOffset:y,tickWidth:_,tickColor:w,tickBorderDash:E,tickBorderDashOffset:S}))}return this._ticksLength=_,this._borderValue=e,k}_computeLabelItems(t){let e,i,n,s,a,o,l,h,u,c,f;let p=this.axis,d=this.options,{position:m,ticks:g}=d,v=this.isHorizontal(),y=this.ticks,{align:b,crossAlign:x,padding:_,mirror:w}=g,k=tx(d.grid),E=k+_,S=w?-_:E,P=-(0,r.t)(this.labelRotation),M=[],C="middle";if("top"===m)a=this.bottom-S,o=this._getXAxisLabelAlignment();else if("bottom"===m)a=this.top+S,o=this._getXAxisLabelAlignment();else if("left"===m){let t=this._getYAxisLabelAlignment(k);o=t.textAlign,s=t.x}else if("right"===m){let t=this._getYAxisLabelAlignment(k);o=t.textAlign,s=t.x}else if("x"===p){if("center"===m)a=(t.top+t.bottom)/2+E;else if((0,r.i)(m)){let t=Object.keys(m)[0],e=m[t];a=this.chart.scales[t].getPixelForValue(e)+E}o=this._getXAxisLabelAlignment()}else if("y"===p){if("center"===m)s=(t.left+t.right)/2-E;else if((0,r.i)(m)){let t=Object.keys(m)[0],e=m[t];s=this.chart.scales[t].getPixelForValue(e)}o=this._getYAxisLabelAlignment(k).textAlign}
11"y"===p&&("start"===b?C="top":"end"===b&&(C="bottom"));let A=this._getLabelSizes();for(e=0,i=y.length;e<i;++e){let t;n=y[e].label;let p=g.setContext(this.getContext(e));l=this.getPixelForTick(e)+g.labelOffset,u=(h=this._resolveTickFontOptions(e)).lineHeight;let d=(c=(0,r.b)(n)?n.length:1)/2,b=p.color,_=p.textStrokeColor,k=p.textStrokeWidth,E=o;if(v?(s=l,"inner"===o&&(E=e===i-1?this.options.reverse?"left":"right":0===e?this.options.reverse?"right":"left":"center"),f="top"===m?"near"===x||0!==P?-c*u+u/2:"center"===x?-A.highest.height/2-d*u+u:-A.highest.height+u/2:"near"===x||0!==P?u/2:"center"===x?A.highest.height/2-d*u:A.highest.height-c*u,w&&(f*=-1)):(a=l,f=(1-c)*u/2),p.showLabelBackdrop){let i=(0,r.K)(p.backdropPadding),n=A.heights[e],l=A.widths[e],h=a+f-i.top,u=s-i.left;switch(C){case"middle":h-=n/2;break;case"bottom":h-=n}switch(o){case"center":u-=l/2;break;case"right":u-=l}t={left:u,top:h,width:l+i.width,height:n+i.height,color:p.backdropColor}}M.push({rotation:P,label:n,font:h,color:b,strokeColor:_,strokeWidth:k,textOffset:f,textAlign:E,textBaseline:C,translation:[s,a],backdrop:t})}return M}_getXAxisLabelAlignment(){let{position:t,ticks:e}=this.options;if(-(0,r.t)(this.labelRotation))return"top"===t?"left":"right";let i="center";return"start"===e.align?i="left":"end"===e.align?i="right":"inner"===e.align&&(i="inner"),i}_getYAxisLabelAlignment(t){let e,i;let{position:r,ticks:{crossAlign:n,mirror:s,padding:a}}=this.options,o=this._getLabelSizes(),l=t+a,h=o.widest.width;return"left"===r?s?(i=this.right+a,"near"===n?e="left":"center"===n?(e="center",i+=h/2):(e="right",i+=h)):(i=this.right-l,"near"===n?e="right":"center"===n?(e="center",i-=h/2):(e="left",i=this.left)):"right"===r?s?(i=this.left+a,"near"===n?e="right":"center"===n?(e="center",i-=h/2):(e="left",i-=h)):(i=this.left+l,"near"===n?e="left":"center"===n?(e="center",i+=h/2):(e="right",i=this.right)):e="right",{textAlign:e,x:i}}_computeLabelArea(){if(this.options.ticks.mirror)return;let t=this.chart,e=this.options.position;return"left"===e||"right"===e?{top:0,left:this.left,bottom:t.height,right:this.right}
11:"top"===e||"bottom"===e?{top:this.top,left:0,bottom:this.bottom,right:t.width}:void 0}drawBackground(){let{ctx:t,options:{backgroundColor:e},left:i,top:r,width:n,height:s}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(i,r,n,s),t.restore())}getLineWidthForValue(t){let e=this.options.grid;if(!this._isVisible()||!e.display)return 0;let i=this.ticks.findIndex(e=>e.value===t);return i>=0?e.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){let e,i;let r=this.options.grid,n=this.ctx,s=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t)),a=(t,e,i)=>{i.width&&i.color&&(n.save(),n.lineWidth=i.width,n.strokeStyle=i.color,n.setLineDash(i.borderDash||[]),n.lineDashOffset=i.borderDashOffset,n.beginPath(),n.moveTo(t.x,t.y),n.lineTo(e.x,e.y),n.stroke(),n.restore())};if(r.display)for(e=0,i=s.length;e<i;++e){let t=s[e];r.drawOnChartArea&&a({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),r.drawTicks&&a({x:t.tx1,y:t.ty1},{x:t.tx2,y:t.ty2},{color:t.tickColor,width:t.tickWidth,borderDash:t.tickBorderDash,borderDashOffset:t.tickBorderDashOffset})}}drawBorder(){let t,e,i,n;let{chart:s,ctx:a,options:{grid:o}}=this,l=o.setContext(this.getContext()),h=o.drawBorder?l.borderWidth:0;if(!h)return;let u=o.setContext(this.getContext(0)).lineWidth,c=this._borderValue;this.isHorizontal()?(t=(0,r.J)(s,this.left,h)-h/2,e=(0,r.J)(s,this.right,u)+u/2,i=n=c):(i=(0,r.J)(s,this.top,h)-h/2,n=(0,r.J)(s,this.bottom,u)+u/2,t=e=c),a.save(),a.lineWidth=l.borderWidth,a.strokeStyle=l.borderColor,a.beginPath(),a.moveTo(t,i),a.lineTo(e,n),a.stroke(),a.restore()}drawLabels(t){let e,i;if(!this.options.ticks.display)return;let n=this.ctx,s=this._computeLabelArea();s&&(0,r.L)(n,s);let a=this._labelItems||(this._labelItems=this._computeLabelItems(t));for(e=0,i=a.length;e<i;++e){let t=a[e],i=t.font,s=t.label;t.backdrop&&(n.fillStyle=t.backdrop.color,n.fillRect(t.backdrop.left,t.backdrop.top,t.backdrop.width,t.backdrop.height));let o=t.textOffset;(0,r.M)(n,s,0,o,i,t)}s&&(0,r.N)(n)}drawTitle(){let{ctx:t,options:{position:e,title:i,reverse:n}}=this;if(!i.display)return;let s=(0,r.O)(i.font),a=(0,r.K)(i.padding),o=i.align,l=s.lineHeight/2;"bottom"===e||"center"===e||(0,r.i)(e)?(l+=a.bottom,(0,r.b)(i.text)&&(l+=s.lineHeight*(i.text.length-1))):l+=a.top;let{titleX:h,titleY:u,maxWidth:c,rotation:f}=tS(this,l,e,o);(0,r.M)(t,i.text,0,0,s,{color:i.color,maxWidth:c,rotation:f,textAlign:tE(o,e,n),textBaseline:"middle",translation:[h,u]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){let t=this.options,e=t.ticks&&t.ticks.z||0,i=(0,r.v)(t.grid&&t.grid.z,-1);return this._isVisible()&&this.draw===tP.prototype.draw?[{z:i,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:i+1,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){let e,i;let r=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",s=[];for(e=0,i=r.length;e<i;++e){let i=r[e];i[n]!==this.id||t&&i.type!==t||s.push(i)}return s}_resolveTickFontOptions(t){let e=this.options.ticks.setContext(this.getContext(t));return(0,r.O)(e.font)}_maxDigits(){let t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class tM{constructor(t,e,i){this.type=t,this.scope=e,this.override=i,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){let e;let i=Object.getPrototypeOf(t);tT(i)&&(e=this.register(i));let n=this.items,s=t.id,a=this.scope+"."+s;if(!s)throw Error("class does not have id: "+t);return s in n||(n[s]=t,tC(t,a,e),this.override&&r.d.override(t.id,t.overrides)),a}get(t){return this.items[t]}unregister(t){let e=this.items,i=t.id,n=this.scope;i in e&&delete e[i],n&&i in r.d[n]&&(delete r.d[n][i],this.override&&delete r.U[i])}}function tC(t,e,i){let n=(0,r.V)(Object.create(null),[i?r.d.get(i):{},r.d.get(e),t.defaults]);r.d.set(e,n),t.defaultRoutes&&tA(e,t.defaultRoutes),t.descriptors&&r.d.describe(e,t.descriptors)}function tA(t,e){Object.keys(e).forEach(i=>
11{let n=i.split("."),s=n.pop(),a=[t].concat(n).join("."),o=e[i].split("."),l=o.pop(),h=o.join(".");r.d.route(a,s,h,l)})}function tT(t){return"id"in t&&"defaults"in t}class tD{constructor(){this.controllers=new tM(L,"datasets",!0),this.elements=new tM(tn,"elements"),this.plugins=new tM(Object,"plugins"),this.scales=new tM(tP,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,i){[...e].forEach(e=>{let n=i||this._getRegistryForType(e);i||n.isForType(e)||n===this.plugins&&e.id?this._exec(t,n,e):(0,r.Q)(e,e=>{let r=i||this._getRegistryForType(e);this._exec(t,r,e)})})}_exec(t,e,i){let n=(0,r.W)(t);(0,r.C)(i["before"+n],[],i),e[t](i),(0,r.C)(i["after"+n],[],i)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){let i=this._typedRegistries[e];if(i.isForType(t))return i}return this.plugins}_get(t,e,i){let r=e.get(t);if(void 0===r)throw Error('"'+t+'" is not a registered '+i+".");return r}}var tO=new tD;class tF extends L{update(t){let e=this._cachedMeta,{data:i=[]}=e,n=this.chart._animationsDisabled,{start:s,count:a}=(0,r.q)(e,i,n);if(this._drawStart=s,this._drawCount=a,(0,r.w)(e)&&(s=0,a=i.length),this.options.showLine){let{dataset:r,_dataset:s}=e;r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!s._decimated,r.points=i;let a=this.resolveDatasetElementOptions(t);a.segment=this.options.segment,this.updateElement(r,void 0,{animated:!n,options:a},t)}this.updateElements(i,s,a,t)}addElements(){let{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=tO.getElement("line")),super.addElements()}updateElements(t,e,i,n){let s="reset"===n,{iScale:a,vScale:o,_stacked:l,_dataset:h}=this._cachedMeta,u=this.resolveDataElementOptions(e,n),c=this.getSharedOptions(u),f=this.includeOptions(n,c),p=a.axis,d=o.axis,{spanGaps:m,segment:g}=this.options,v=(0,r.x)(m)?m:Number.POSITIVE_INFINITY,y=this.chart._animationsDisabled||s||"none"===n,b=e>0&&this.getParsed(e-1);for(let u=e;u<e+i;++u){let e=t[u],i=this.getParsed(u),m=y?e:{},x=(0,r.k)(i[d]),_=m[p]=a.getPixelForValue(i[p],u),w=m[d]=s||x?o.getBasePixel():o.getPixelForValue(l?this.applyStack(o,i,l):i[d],u);m.skip=isNaN(_)||isNaN(w)||x,m.stop=u>0&&Math.abs(i[p]-b[p])>v,g&&(m.parsed=i,m.raw=h.data[u]),f&&(m.options=c||this.resolveDataElementOptions(u,e.active?"active":n)),y||this.updateElement(e,u,m,n),b=i}this.updateSharedOptions(c,n,u)}getMaxOverflow(){let t=this._cachedMeta,e=t.data||[];if(!this.options.showLine){let t=0;for(let i=e.length-1;i>=0;--i)t=Math.max(t,e[i].size(this.resolveDataElementOptions(i))/2);return t>0&&t}let i=t.dataset,r=i.options&&i.options.borderWidth||0;return e.length?Math.max(r,e[0].size(this.resolveDataElementOptions(0)),e[e.length-1].size(this.resolveDataElementOptions(e.length-1)))/2:r}}function tL(){throw Error("This method is not implemented: Check that a complete date adapter is provided.")}tF.id="scatter",tF.defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1},tF.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title:()=>"",label:t=>"("+t.label+", "+t.formattedValue+")"}}},scales:{x:{type:"linear"},y:{type:"linear"}}};class tI{constructor(t){this.options=t||{}}init(t){}formats(){return tL()}parse(t,e){return tL()}format(t,e){return tL()}add(t,e,i){return tL()}diff(t,e,i){return tL()}startOf(t,e,i){return tL()}endOf(t,e){return tL()}}tI.override=function(t){Object.assign(tI.prototype,t)};var tR=tI;function tB(t,e,i,n){let{controller:s,data:a,_sorted:o}=t,l=s._cachedMeta.iScale;if(l&&e===l.axis&&"r"!==e&&o&&a.length){let t=l._reversePixels?r.Y:r.Z;if(!n)return t(a,e,i);if(s._sharedOptions){let r=a[0],n="function"==typeof r.getRange&&r.getRange(e);if(n){let r=t(a,e,i-n),s=t(a,e,i+n);return{lo:r.lo,hi:s.hi}}}}return{lo:0,hi:a.length-1}}function tj(t,e,i,r,n){let s=t.getSortedVisibleDatasetMetas(),a=i[e];for(let t=0,i=s.length;t<i;++t){let{index:i,data:o}=s[t],{lo:l,hi:h}=tB(s[t],e,a,n);for(let t=l;t<=h;++t){let e=o[t];e.skip||r(e,i,t)}}}function tz(t){let e=-1!==t.indexOf("x"),i=-1!==t.indexOf("y");return function(t,r){return Math.sqrt(Math.pow(e?Math.abs(t.x-r.x):0,2)+Math.pow(i?Math.abs(t.y-r.y
11):0,2))}}function tN(t,e,i,n,s){let a=[];if(!s&&!t.isPointInArea(e))return a;let o=function(i,o,l){(s||(0,r.$)(i,t.chartArea,0))&&i.inRange(e.x,e.y,n)&&a.push({element:i,datasetIndex:o,index:l})};return tj(t,i,e,o,!0),a}function tV(t,e,i,n){let s=[];function a(t,i,a){let{startAngle:o,endAngle:l}=t.getProps(["startAngle","endAngle"],n),{angle:h}=(0,r.a0)(t,{x:e.x,y:e.y});(0,r.p)(h,o,l)&&s.push({element:t,datasetIndex:i,index:a})}return tj(t,i,e,a),s}function tH(t,e,i,r,n,s){let a=[],o=tz(i),l=Number.POSITIVE_INFINITY;function h(i,h,u){let c=i.inRange(e.x,e.y,n);if(r&&!c)return;let f=i.getCenterPoint(n);if(!(s||t.isPointInArea(f))&&!c)return;let p=o(e,f);p<l?(a=[{element:i,datasetIndex:h,index:u}],l=p):p===l&&a.push({element:i,datasetIndex:h,index:u})}return tj(t,i,e,h),a}function tW(t,e,i,r,n,s){return s||t.isPointInArea(e)?"r"!==i||r?tH(t,e,i,r,n,s):tV(t,e,i,n):[]}function tU(t,e,i,r,n){let s=[],a="x"===i?"inXRange":"inYRange",o=!1;return(tj(t,i,e,(t,r,l)=>{t[a](e[i],n)&&(s.push({element:t,datasetIndex:r,index:l}),o=o||t.inRange(e.x,e.y,n))}),r&&!o)?[]:s}var tG={modes:{index(t,e,i,n){let s=(0,r.X)(e,t),a=i.axis||"x",o=i.includeInvisible||!1,l=i.intersect?tN(t,s,a,n,o):tW(t,s,a,!1,n,o),h=[];return l.length?(t.getSortedVisibleDatasetMetas().forEach(t=>{let e=l[0].index,i=t.data[e];i&&!i.skip&&h.push({element:i,datasetIndex:t.index,index:e})}),h):[]},dataset(t,e,i,n){let s=(0,r.X)(e,t),a=i.axis||"xy",o=i.includeInvisible||!1,l=i.intersect?tN(t,s,a,n,o):tW(t,s,a,!1,n,o);if(l.length>0){let e=l[0].datasetIndex,i=t.getDatasetMeta(e).data;l=[];for(let t=0;t<i.length;++t)l.push({element:i[t],datasetIndex:e,index:t})}return l},point(t,e,i,n){let s=(0,r.X)(e,t);return tN(t,s,i.axis||"xy",n,i.includeInvisible||!1)},nearest(t,e,i,n){let s=(0,r.X)(e,t),a=i.axis||"xy",o=i.includeInvisible||!1;return tW(t,s,a,i.intersect,n,o)},x(t,e,i,n){let s=(0,r.X)(e,t);return tU(t,s,"x",i.intersect,n)},y(t,e,i,n){let s=(0,r.X)(e,t);return tU(t,s,"y",i.intersect,n)}}};let tq=["left","top","right","bottom"];function tY(t,e){return t.filter(t=>t.pos===e)}function tX(t,e){return t.filter(t=>-1===tq.indexOf(t.pos)&&t.box.axis===e)}function t$(t,e){return t.sort((t,i)=>{let r=e?i:t,n=e?t:i;return r.weight===n.weight?r.index-n.index:r.weight-n.weight})}function tZ(t){let e,i,r,n,s,a;let o=[];for(e=0,i=(t||[]).length;e<i;++e)r=t[e],({position:n,options:{stack:s,stackWeight:a=1}}=r),o.push({index:e,box:r,pos:n,horizontal:r.isHorizontal(),weight:r.weight,stack:s&&n+s,stackWeight:a});return o}function tJ(t){let e={};for(let i of t){let{stack:t,pos:r,stackWeight:n}=i;if(!t||!tq.includes(r))continue;let s=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});s.count++,s.weight+=n}return e}function tK(t,e){let i,r,n;let s=tJ(t),{vBoxMaxWidth:a,hBoxMaxHeight:o}=e;for(i=0,r=t.length;i<r;++i){let{fullSize:r}=(n=t[i]).box,l=s[n.stack],h=l&&n.stackWeight/l.weight;
11n.horizontal?(n.width=h?h*a:r&&e.availableWidth,n.height=o):(n.width=a,n.height=h?h*o:r&&e.availableHeight)}return s}function tQ(t){let e=tZ(t),i=t$(e.filter(t=>t.box.fullSize),!0),r=t$(tY(e,"left"),!0),n=t$(tY(e,"right")),s=t$(tY(e,"top"),!0),a=t$(tY(e,"bottom")),o=tX(e,"x"),l=tX(e,"y");return{fullSize:i,leftAndTop:r.concat(s),rightAndBottom:n.concat(l).concat(a).concat(o),chartArea:tY(e,"chartArea"),vertical:r.concat(n).concat(l),horizontal:s.concat(a).concat(o)}}function t0(t,e,i,r){return Math.max(t[i],e[i])+Math.max(t[r],e[r])}function t1(t,e){t.top=Math.max(t.top,e.top),t.left=Math.max(t.left,e.left),t.bottom=Math.max(t.bottom,e.bottom),t.right=Math.max(t.right,e.right)}function t2(t,e,i,n){let{pos:s,box:a}=i,o=t.maxPadding;if(!(0,r.i)(s)){i.size&&(t[s]-=i.size);let e=n[i.stack]||{size:0,count:1};e.size=Math.max(e.size,i.horizontal?a.height:a.width),i.size=e.size/e.count,t[s]+=i.size}a.getPadding&&t1(o,a.getPadding());let l=Math.max(0,e.outerWidth-t0(o,t,"left","right")),h=Math.max(0,e.outerHeight-t0(o,t,"top","bottom")),u=l!==t.w,c=h!==t.h;return t.w=l,t.h=h,i.horizontal?{same:u,other:c}:{same:c,other:u}}function t3(t){let e=t.maxPadding;function i(i){let r=Math.max(e[i]-t[i],0);return t[i]+=r,r}t.y+=i("top"),t.x+=i("left"),i("right"),i("bottom")}function t5(t,e){let i=e.maxPadding;return function(t){let r={left:0,top:0,right:0,bottom:0};return t.forEach(t=>{r[t]=Math.max(e[t],i[t])}),r}(t?["left","right"]:["top","bottom"])}function t4(t,e,i,r){let n,s,a,o,l,h;let u=[];for(n=0,s=t.length,l=0;n<s;++n){(o=(a=t[n]).box).update(a.width||e.w,a.height||e.h,t5(a.horizontal,e));let{same:s,other:c}=t2(e,i,a,r);l|=s&&u.length,h=h||c,o.fullSize||u.push(a)}return l&&t4(u,e,i,r)||h}function t6(t,e,i,r,n){t.top=i,t.left=e,t.right=e+r,t.bottom=i+n,t.width=r,t.height=n}function t8(t,e,i,n){let s=i.padding,{x:a,y:o}=e;for(let l of t){let t=l.box,h=n[l.stack]||{count:1,placed:0,weight:1},u=l.stackWeight/h.weight||1;if(l.horizontal){let n=e.w*u,a=h.size||t.height;(0,r.j)(h.start)&&(o=h.start),t.fullSize?t6(t,s.left,o,i.outerWidth-s.right-s.left,a):t6(t,e.left+h.placed,o,n,a),h.start=o,h.placed+=n,o=t.bottom}else{let n=e.h*u,o=h.size||t.width;(0,r.j)(h.start)&&(a=h.start),t.fullSize?t6(t,a,s.top,o,i.outerHeight-s.bottom-s.top):t6(t,a,e.top+h.placed,o,n),h.start=a,h.placed+=n,a=t.right}}e.x=a,e.y=o}r.d.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}});var t9={addBox(t,e){t.boxes||(t.boxes=[]),e.fullSize=e.fullSize||!1,e.position=e.position||"top",e.weight=e.weight||0,e._layers=e._layers||function(){return[{z:0,draw(t){e.draw(t)}}]},t.boxes.push(e)},removeBox(t,e){let i=t.boxes?t.boxes.indexOf(e):-1;-1!==i&&t.boxes.splice(i,1)},configure(t,e,i){e.fullSize=i.fullSize,e.position=i.position,e.weight=i.weight},update(t,e,i,n){if(!t)return;let s=(0,r.K)(t.options.layout.padding),a=Math.max(e-s.width,0),o=Math.max(i-s.height,0),l=tQ(t.boxes),h=l.vertical,u=l.horizontal;(0,r.Q)(t.boxes,t=>{"function"==typeof t.beforeLayout&&t.beforeLayout()});let c=Object.freeze({outerWidth:e,outerHeight:i,padding:s,availableWidth:a,availableHeight:o,vBoxMaxWidth:a/2/(h.reduce((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1,0)||1),hBoxMaxHeight:o/2}),f=Object.assign({},s);t1(f,(0,r.K)(n));let p=Object.assign({maxPadding:f,w:a,h:o,x:s.left,y:s.top},s),d=tK(h.concat(u),c);t4(l.fullSize,p,c,d),t4(h,p,c,d),t4(u,p,c,d)&&t4(h,p,c,d),t3(p),t8(l.leftAndTop,p,c,d),p.x+=p.w,p.y+=p.h,t8(l.rightAndBottom,p,c,d),t.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},(0,r.Q)(l.chartArea,e=>{let i=e.box;Object.assign(i,t.chartArea),i.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})})}};class t7{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,i){}removeEventListener(t,e,i){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,i,r){return e=Math.max(0,e||t.width),i=i||t.height,{width:e,height:Math.max(0,r?Math.floor(e/r):i)}}isAttached(t){return!0}updateConfig(t){}}class et extends t7{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}
11let ee="$chartjs",ei={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},er=t=>null===t||""===t;function en(t,e){let i=t.style,n=t.getAttribute("height"),s=t.getAttribute("width");if(t[ee]={initial:{height:n,width:s,style:{display:i.display,height:i.height,width:i.width}}},i.display=i.display||"block",i.boxSizing=i.boxSizing||"border-box",er(s)){let e=(0,r.a3)(t,"width");void 0!==e&&(t.width=e)}if(er(n)){if(""===t.style.height)t.height=t.width/(e||2);else{let e=(0,r.a3)(t,"height");void 0!==e&&(t.height=e)}}return t}let es=!!r.a5&&{passive:!0};function ea(t,e,i){t.addEventListener(e,i,es)}function eo(t,e,i){t.canvas.removeEventListener(e,i,es)}function el(t,e){let i=ei[t.type]||t.type,{x:n,y:s}=(0,r.X)(t,e);return{type:i,chart:e,native:t,x:void 0!==n?n:null,y:void 0!==s?s:null}}function eh(t,e){for(let i of t)if(i===e||i.contains(e))return!0}function eu(t,e,i){let r=t.canvas,n=new MutationObserver(t=>{let e=!1;for(let i of t)e=(e=e||eh(i.addedNodes,r))&&!eh(i.removedNodes,r);e&&i()});return n.observe(document,{childList:!0,subtree:!0}),n}function ec(t,e,i){let r=t.canvas,n=new MutationObserver(t=>{let e=!1;for(let i of t)e=(e=e||eh(i.removedNodes,r))&&!eh(i.addedNodes,r);e&&i()});return n.observe(document,{childList:!0,subtree:!0}),n}let ef=new Map,ep=0;function ed(){let t=window.devicePixelRatio;t!==ep&&(ep=t,ef.forEach((e,i)=>{i.currentDevicePixelRatio!==t&&e()}))}function em(t,e){ef.size||window.addEventListener("resize",ed),ef.set(t,e)}function eg(t){ef.delete(t),ef.size||window.removeEventListener("resize",ed)}function ev(t,e,i){let n=t.canvas,s=n&&(0,r.a2)(n);if(!s)return;let a=(0,r.a4)((t,e)=>{let r=s.clientWidth;i(t,e),r<s.clientWidth&&i()},window),o=new ResizeObserver(t=>{let e=t[0],i=e.contentRect.width,r=e.contentRect.height;(0!==i||0!==r)&&a(i,r)});return o.observe(s),em(t,a),o}function ey(t,e,i){i&&i.disconnect(),"resize"===e&&eg(t)}function eb(t,e,i){let n=t.canvas,s=(0,r.a4)(e=>{null!==t.ctx&&i(el(e,t))},t,t=>{let e=t[0];return[e,e.offsetX,e.offsetY]});return ea(n,e,s),s}class ex extends t7{acquireContext(t,e){let i=t&&t.getContext&&t.getContext("2d");return i&&i.canvas===t?(en(t,e),i):null}releaseContext(t){let e=t.canvas;if(!e[ee])return!1;let i=e[ee].initial;["height","width"].forEach(t=>{let n=i[t];(0,r.k)(n)?e.removeAttribute(t):e.setAttribute(t,n)});let n=i.style||{};return Object.keys(n).forEach(t=>{e.style[t]=n[t]}),e.width=e.width,delete e[ee],!0}addEventListener(t,e,i){this.removeEventListener(t,e);let r=t.$proxies||(t.$proxies={}),n={attach:eu,detach:ec,resize:ev}[e]||eb;r[e]=n(t,e,i)}removeEventListener(t,e){let i=t.$proxies||(t.$proxies={}),r=i[e];r&&((({attach:ey,detach:ey,resize:ey})[e]||eo)(t,e,r),i[e]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,i,n){return(0,r.a1)(t,e,i,n)}isAttached(t){let e=(0,r.a2)(t);return!!(e&&e.isConnected)}}function e_(t){return!(0,r.a6)()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?et:ex}class ew{constructor(){this._init=[]}notify(t,e,i,r){"beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));let n=r?this._descriptors(t).filter(r):this._descriptors(t),s=this._notify(n,t,e,i);return"afterDestroy"===e&&(this._notify(n,t,"stop"),this._notify(this._init,t,"uninstall")),s}_notify(t,e,i,n){for(let s of(n=n||{},t)){let t=s.plugin,a=t[i],o=[e,n,s.options];if(!1===(0,r.C)(a,o,t)&&n.cancelable)return!1}return!0}invalidate(){(0,r.k)(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;let e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){let i=t&&t.config,n=(0,r.v)(i.options&&i.options.plugins,{}),s=ek(i);return!1!==n||e?eS(t,s,n,e):[]}_notifyStateChanges(t){let e=this._oldCache||[],i=this._cache,r=(t,e)=>t.filter(t=>!e.some(e=>t.plugin.id===e.plugin.id));this._notify(r(e,i),t,"stop"),this._notify(r(i,e),t,"start")}}function ek(t){let e={},i=[],r=Object.keys(tO.plugins.items);for(let t=0;t<r.length;t++)i.push(tO.getPlugin(r[t]));let n=t.plugins||[];for(let t=0;t<n.length;t++){let r=n[t];-1===i.indexOf(r)&&(i.push(r),e[r.id]=!0)}return{plugins:i,localIds:e}}function eE(t,e){return e||!1!==t?!0===t?{}:t:null}function eS(t,{plugins:e,localIds:i},r,n){let s=[],a=t.getContext();for(let o of e){let e=o.id,l=eE(r[e],n);null!==l&&s.push({plugin:o,options:eP(t.config,{plugin:o,local:i[e]},l,a)})}return s}function eP(t,{plugin:e,local:i},r,n){let s=t.pluginScopeKeys(e),a=t.getOptionScopes(r,s);return i&&e.defaults&&a.push(e.defaults),t.createResolver(a,n,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function eM(t,e){let i=r.d.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||i.indexAxis||"x"}function eC(t,e){let i=t;
11return"_index_"===t?i=e:"_value_"===t&&(i="x"===e?"y":"x"),i}function eA(t,e){return t===e?"_index_":"_value_"}function eT(t){return"top"===t||"bottom"===t?"x":"left"===t||"right"===t?"y":void 0}function eD(t,e){return"x"===t||"y"===t?t:e.axis||eT(e.position)||t.charAt(0).toLowerCase()}function eO(t,e){let i=r.U[t.type]||{scales:{}},n=e.scales||{},s=eM(t.type,e),a=Object.create(null),o=Object.create(null);return Object.keys(n).forEach(t=>{let e=n[t];if(!(0,r.i)(e))return console.error(`Invalid scale configuration for scale: ${t}`);if(e._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${t}`);let l=eD(t,e),h=eA(l,s),u=i.scales||{};a[l]=a[l]||t,o[t]=(0,r.ac)(Object.create(null),[{axis:l},e,u[l],u[h]])}),t.data.datasets.forEach(i=>{let s=i.type||t.type,l=i.indexAxis||eM(s,e),h=(r.U[s]||{}).scales||{};Object.keys(h).forEach(t=>{let e=eC(t,l),s=i[e+"AxisID"]||a[e]||e;o[s]=o[s]||Object.create(null),(0,r.ac)(o[s],[{axis:e},n[s],h[t]])})}),Object.keys(o).forEach(t=>{let e=o[t];(0,r.ac)(e,[r.d.scales[e.type],r.d.scale])}),o}function eF(t){let e=t.options||(t.options={});e.plugins=(0,r.v)(e.plugins,{}),e.scales=eO(t,e)}function eL(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}function eI(t){return(t=t||{}).data=eL(t.data),eF(t),t}let eR=new Map,eB=new Set;function ej(t,e){let i=eR.get(t);return i||(i=e(),eR.set(t,i),eB.add(i)),i}let ez=(t,e,i)=>{let n=(0,r.f)(e,i);void 0!==n&&t.add(n)};class eN{constructor(t){this._config=eI(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=eL(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){let t=this._config;this.clearCache(),eF(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return ej(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,e){return ej(`${t}.transition.${e}`,()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,e){return ej(`${t}-${e}`,()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]])}pluginScopeKeys(t){let e=t.id,i=this.type;return ej(`${i}-plugin-${e}`,()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,e){let i=this._scopeCache,r=i.get(t);return(!r||e)&&(r=new Map,i.set(t,r)),r}getOptionScopes(t,e,i){let{options:n,type:s}=this,a=this._cachedScopes(t,i),o=a.get(e);if(o)return o;let l=new Set;e.forEach(e=>{t&&(l.add(t),e.forEach(e=>ez(l,t,e))),e.forEach(t=>ez(l,n,t)),e.forEach(t=>ez(l,r.U[s]||{},t)),e.forEach(t=>ez(l,r.d,t)),e.forEach(t=>ez(l,r.a7,t))});let h=Array.from(l);return 0===h.length&&h.push(Object.create(null)),eB.has(e)&&a.set(e,h),h}chartOptionScopes(){let{options:t,type:e}=this;return[t,r.U[e]||{},r.d.datasets[e]||{},{type:e},r.d,r.a7]}resolveNamedOptions(t,e,i,n=[""]){let s={$shared:!0},{resolver:a,subPrefixes:o}=eV(this._resolverCache,t,n),l=a;if(eW(a,e)){s.$shared=!1,i=(0,r.a8)(i)?i():i;let e=this.createResolver(t,i,o);l=(0,r.a9)(a,i,e)}for(let t of e)s[t]=l[t];return s}createResolver(t,e,i=[""],n){let{resolver:s}=eV(this._resolverCache,t,i);return(0,r.i)(e)?(0,r.a9)(s,e,void 0,n):s}}function eV(t,e,i){let n=t.get(e);n||(n=new Map,t.set(e,n));let s=i.join(),a=n.get(s);return a||(a={resolver:(0,r.aa)(e,i),subPrefixes:i.filter(t=>!t.toLowerCase().includes("hover"))},n.set(s,a)),a}let eH=t=>(0,r.i)(t)&&Object.getOwnPropertyNames(t).reduce((e,i)=>e||(0,r.a8)(t[i]),!1);function eW(t,e){let{isScriptable:i,isIndexable:n}=(0,r.ab)(t);for(let s of e){let e=i(s),a=n(s),o=(a||e)&&t[s];if(e&&((0,r.a8)(o)||eH(o))||a&&(0,r.b)(o))return!0}return!1}var eU="3.9.1";let eG=["top","bottom","left","right","chartArea"];function eq(t,e){return"top"===t||"bottom"===t||-1===eG.indexOf(t)&&"x"===e}function eY(t,e){return function(i,r){return i[t]===r[t]?i[e]-r[e]:i[t]-r[t]}}function eX(t){let e=t.chart,i=e.options.animation;e.notifyPlugins("afterRender"),(0,r.C)(i&&i.onComplete,[t],e)}function e$(t){let e=t.chart,i=e.options.animation;(0,r.C)(i&&i.onProgress,[t],e)}function eZ(t){return(0,r.a6)()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}let eJ={},eK=t=>{let e=eZ(t);return Object.values(eJ).filter(t=>t.canvas===e).pop()};function eQ(t,e,i){for(let r of Object.keys(t)){let n=+r;if(n>=e){let s=t[r];delete t[r],(i>0||n>e)&&(t[n+i]=s)}}}function e0(t,e,i,r){return i&&"mouseout"!==t.type?r?e:t:null}class e1{constructor(t,e){let i=this.config=new eN(e),n=eZ(t),a=eK(n);if(a)throw Error("Canvas is already in use. Chart with ID '"+a.id+"' must be destroyed before the canvas with ID '"+a.canvas.id+"' can be reused.");let o=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||e_(n)),this.platform.updateConfig(i);let l=this.platform.acquireContext(n,o.aspectRatio),h=l&&l.canvas,u=h&&h.height,c=h&&h.width;if(this.id=(0,r.ad)(),this.ctx=l,this.canvas=h,this.width=c,this.height=u,this._options=o,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new ew,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=(0,r.ae)(t=>this.update(t),o.resizeDelay||0),this._dataChanges=[],eJ[this.id]=this,!l||!h){console.error("Failed to create chart: can't acquire context from the given item");return}s.listen(this,"complete",eX),s.listen(this,"progress",e$),this._initialize(),this.attached&&this.update()}get aspectRatio(){let{options:{aspectRatio:t,maintainAspectRatio:e},width:i,height:n,_aspectRatio:s}=this;return(0,r.k)(t)?e&&s?s:n?i/n:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():(0,r.af)(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return(0,r.ag)(this.canvas,this.ctx),this}stop(){return s.stop(this),this}resize(t,e){s.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){let i=this.options,n=this.canvas,s=i.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(n,t,e,s),o=i.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,(0,r.af)(this,o,!0)&&(this.notifyPlugins("resize",{size:a}),(0,r.C)(i.onResize,[this,a],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){let t=this.options.scales||{};(0,r.Q)(t,(t,e)=>{t.id=e})}buildOrUpdateScales(){let t=this.options,e=t.scales,i=this.scales,n=Object.keys(i).reduce((t,e)=>(t[e]=!1,t),{}),s=[];e&&(s=s.concat(Object.keys(e).map(t=>{let i=e[t],r=eD(t,i),n="r"===r,s="x"===r;return{options:i,dposition:n?"chartArea":s?"bottom":"left",dtype:n?"radialLinear":s?"category":"linear"}}))),(0,r.Q)(s,e=>{let s=e.options,a=s.id,o=eD(a,s),l=(0,r.v)(s.type,e.dtype);(void 0===s.position||eq(s.position,o)!==eq(e.dposition))&&(s.position=e.dposition),n[a]=!0;let h=null;a in i&&i[a].type===l?h=i[a]:i[(h=new(tO.getScale(l))({id:a,type:l,ctx:this.ctx,
11chart:this})).id]=h,h.init(s,t)}),(0,r.Q)(n,(t,e)=>{t||delete i[e]}),(0,r.Q)(i,t=>{t9.configure(this,t,t.options),t9.addBox(this,t)})}_updateMetasets(){let t=this._metasets,e=this.data.datasets.length,i=t.length;if(t.sort((t,e)=>t.index-e.index),i>e){for(let t=e;t<i;++t)this._destroyDatasetMeta(t);t.splice(e,i-e)}this._sortedMetasets=t.slice(0).sort(eY("order","index"))}_removeUnreferencedMetasets(){let{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach((t,i)=>{0===e.filter(e=>e===t._dataset).length&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){let t,e;let i=[],n=this.data.datasets;for(this._removeUnreferencedMetasets(),t=0,e=n.length;t<e;t++){let e=n[t],s=this.getDatasetMeta(t),a=e.type||this.config.type;if(s.type&&s.type!==a&&(this._destroyDatasetMeta(t),s=this.getDatasetMeta(t)),s.type=a,s.indexAxis=e.indexAxis||eM(a,this.options),s.order=e.order||0,s.index=t,s.label=""+e.label,s.visible=this.isDatasetVisible(t),s.controller)s.controller.updateIndex(t),s.controller.linkScales();else{let e=tO.getController(a),{datasetElementType:n,dataElementType:o}=r.d.datasets[a];Object.assign(e.prototype,{dataElementType:tO.getElement(o),datasetElementType:n&&tO.getElement(n)}),s.controller=new e(this,t),i.push(s.controller)}}return this._updateMetasets(),i}_resetElements(){(0,r.Q)(this.data.datasets,(t,e)=>{this.getDatasetMeta(e).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){let e=this.config;e.update();let i=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),n=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;let s=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let t=0,e=this.data.datasets.length;t<e;t++){let{controller:e}=this.getDatasetMeta(t),i=!n&&-1===s.indexOf(e);e.buildOrUpdateElements(i),a=Math.max(+e.getMaxOverflow(),a)}a=this._minPadding=i.layout.autoPadding?a:0,this._updateLayout(a),n||(0,r.Q)(s,t=>{t.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(eY("z","_idx"));let{_active:o,_lastEvent:l}=this;l?this._eventHandler(l,!0):o.length&&this._updateHoverStyles(o,o,!0),this.render()}_updateScales(){(0,r.Q)(this.scales,t=>{t9.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){let t=this.options,e=new Set(Object.keys(this._listeners)),i=new Set(t.events);(0,r.ah)(e,i)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){let{_hiddenIndices:t}=this;for(let{method:e,start:i,count:r}of this._getUniformDataChanges()||[])eQ(t,i,"_removeElements"===e?-r:r)}_getUniformDataChanges(){let t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];let e=this.data.datasets.length,i=e=>new Set(t.filter(t=>t[0]===e).map((t,e)=>e+","+t.splice(1).join(","))),n=i(0);for(let t=1;t<e;t++)if(!(0,r.ah)(n,i(t)))return;return Array.from(n).map(t=>t.split(",")).map(t=>({method:t[1],start:+t[2],count:+t[3]}))}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;t9.update(this,this.width,this.height,t);let e=this.chartArea,i=e.width<=0||e.height<=0;this._layers=[],(0,r.Q)(this.boxes,t=>{i&&"chartArea"===t.position||(t.configure&&t.configure(),this._layers.push(...t._layers()))},this),this._layers.forEach((t,e)=>{t._idx=e}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let t=0,e=this.data.datasets.length;t<e;++t)this.getDatasetMeta(t).controller.configure();for(let e=0,i=this.data.datasets.length;e<i;++e)this._updateDataset(e,(0,r.a8)(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){let i=this.getDatasetMeta(t),r={meta:i,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",r)&&(i.controller._update(e),r.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",r))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(s.has(this)?this.attached&&!s.running(this)&&s.start(this):(this.draw(),eX({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){let{width:t,height:e}=this._resizeBeforeDraw;this._resize(t,e),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0||!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;let e=this._layers;for(t=0;t<e.length&&e[t].z<=0;++t)e[t].draw(this.chartArea);for(this._drawDatasets();t<e.length;++t)e[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){let e,i;let r=this._sortedMetasets,n=[];for(e=0,i=r.length;e<i;++e){let i=r[e];(!t||i.visible)&&n.push(i)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;let t=this.getSortedVisibleDatasetMetas();for(let e=t.length-1;e>=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){let e=this.ctx,i=t._clip,n=!i.disabled,s=this.chartArea,a={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",a)&&(n&&(0,r.L)(e,{left:!1===i.left?0:s.left-i.left,right:!1===i.right?this.width:s.right+i.r
11ight,top:!1===i.top?0:s.top-i.top,bottom:!1===i.bottom?this.height:s.bottom+i.bottom}),t.controller.draw(),n&&(0,r.N)(e),a.cancelable=!1,this.notifyPlugins("afterDatasetDraw",a))}isPointInArea(t){return(0,r.$)(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,i,r){let n=tG.modes[e];return"function"==typeof n?n(this,t,i,r):[]}getDatasetMeta(t){let e=this.data.datasets[t],i=this._metasets,r=i.filter(t=>t&&t._dataset===e).pop();return r||(r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},i.push(r)),r}getContext(){return this.$context||(this.$context=(0,r.h)(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){let e=this.data.datasets[t];if(!e)return!1;let i=this.getDatasetMeta(t);return"boolean"==typeof i.hidden?!i.hidden:!e.hidden}setDatasetVisibility(t,e){this.getDatasetMeta(t).hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,i){let n=i?"show":"hide",s=this.getDatasetMeta(t),a=s.controller._resolveAnimations(void 0,n);(0,r.j)(e)?(s.data[e].hidden=!i,this.update()):(this.setDatasetVisibility(t,i),a.update(s,{visible:i}),this.update(e=>e.datasetIndex===t?n:void 0))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){let e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),s.remove(this),t=0,e=this.data.datasets.length;t<e;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");let{canvas:t,ctx:e}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),(0,r.ag)(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),this.notifyPlugins("destroy"),delete eJ[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){let t=this._listeners,e=this.platform,i=(i,r)=>{e.addEventListener(this,i,r),t[i]=r},n=(t,e,i)=>{t.offsetX=e,t.offsetY=i,this._eventHandler(t)};(0,r.Q)(this.options.events,t=>i(t,n))}bindResponsiveEvents(){let t;this._responsiveListeners||(this._responsiveListeners={});let e=this._responsiveListeners,i=this.platform,r=(t,r)=>{i.addEventListener(this,t,r),e[t]=r},n=(t,r)=>{e[t]&&(i.removeEventListener(this,t,r),delete e[t])},s=(t,e)=>{this.canvas&&this.resize(t,e)},a=()=>{n("attach",a),this.attached=!0,this.resize(),r("resize",s),r("detach",t)};t=()=>{this.attached=!1,n("resize",s),this._stop(),this._resize(0,0),r("attach",a)},i.isAttached(this.canvas)?a():t()}unbindEvents(){(0,r.Q)(this._listeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._listeners={},(0,r.Q)(this._responsiveListeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,e,i){let r,n,s;let a=i?"set":"remove";for("dataset"===e&&this.getDatasetMeta(t[0].datasetIndex).controller["_"+a+"DatasetHoverStyle"](),n=0,s=t.length;n<s;++n){let e=(r=t[n])&&this.getDatasetMeta(r.datasetIndex).controller;e&&e[a+"HoverStyle"](r.element,r.datasetIndex,r.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){let e=this._active||[],i=t.map(({datasetIndex:t,index:e})=>{let i=this.getDatasetMeta(t);if(!i)throw Error("No dataset found at index "+t);return{datasetIndex:t,element:i.data[e],index:e}});(0,r.ai)(i,e)||(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,e))}notifyPlugins(t,e,i){return this._plugins.notify(this,t,e,i)}_updateHoverStyles(t,e,i){let r=this.options.hover,n=(t,e)=>t.filter(t=>!e.some(e=>t.datasetIndex===e.datasetIndex&&t.index===e.index)),s=n(e,t),a=i?t:n(t,e);s.length&&this.updateHoverStyle(s,r.mode,!1),a.length&&r.mode&&this.updateHoverStyle(a,r.mode,!0)}_eventHandler(t,e){let i={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},r=e=>(e.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",i,r))return;let n=this._handleEvent(t,e,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,r),(n||i.changed)&&this.render(),this}_handleEvent(t,e,i){let{_active:n=[],options:s}=this,a=e,o=this._getActiveElements(t,n,i,a),l=(0,r.aj)(t),h=e0(t,this._lastEvent,i,l);i&&(this._lastEvent=null,(0,r.C)(s.onHover,[t,o,this],this),l&&(0,r.C)(s.onClick,[t,o,this],this));let u=!(0,r.ai)(o,n);return(u||e)&&(this._active=o,this._updateHoverStyles(o,n,e)),this._lastEvent=h,u}_getActiveElements(t,e,i,r){if("mouseout"===t.type)return[];if(!i)return e;let n=this.options.hover;return this.getElementsAtEventForMode(t,n.mode,n,r)}}let e2=()=>(0,r.Q)(e1.instances,t=>t._plugins.invalidate()),e3=!0;function e5(t,e,i){let{startAngle:n,pixelMargin:s,x:a,y:o,outerRadius:l,innerRadius:h}=e,u=s/l;
11t.beginPath(),t.arc(a,o,l,n-u,i+u),h>s?(u=s/h,t.arc(a,o,h,i+u,n-u,!0)):t.arc(a,o,s,i+r.H,n-r.H),t.closePath(),t.clip()}function e4(t){return(0,r.al)(t,["outerStart","outerEnd","innerStart","innerEnd"])}function e6(t,e,i,n){let s=e4(t.options.borderRadius),a=(i-e)/2,o=Math.min(a,n*e/2),l=t=>{let e=(i-Math.min(a,t))*n/2;return(0,r.E)(t,0,Math.min(a,e))};return{outerStart:l(s.outerStart),outerEnd:l(s.outerEnd),innerStart:(0,r.E)(s.innerStart,0,o),innerEnd:(0,r.E)(s.innerEnd,0,o)}}function e8(t,e,i,r){return{x:i+t*Math.cos(e),y:r+t*Math.sin(e)}}function e9(t,e,i,n,s,a){let{x:o,y:l,startAngle:h,pixelMargin:u,innerRadius:c}=e,f=Math.max(e.outerRadius+n+i-u,0),p=c>0?c+n+i+u:0,d=0,m=s-h;if(n){let t=((c>0?c-n:0)+(f>0?f-n:0))/2,e=0!==t?m*t/(t+n):m;d=(m-e)/2}let g=Math.max(.001,m*f-i/r.P)/f,v=(m-g)/2,y=h+v+d,b=s-v-d,{outerStart:x,outerEnd:_,innerStart:w,innerEnd:k}=e6(e,p,f,b-y),E=f-x,S=f-_,P=y+x/E,M=b-_/S,C=p+w,A=p+k,T=y+w/C,D=b-k/A;if(t.beginPath(),a){if(t.arc(o,l,f,P,M),_>0){let e=e8(S,M,o,l);t.arc(e.x,e.y,_,M,b+r.H)}let e=e8(A,b,o,l);if(t.lineTo(e.x,e.y),k>0){let e=e8(A,D,o,l);t.arc(e.x,e.y,k,b+r.H,D+Math.PI)}if(t.arc(o,l,p,b-k/p,y+w/p,!0),w>0){let e=e8(C,T,o,l);t.arc(e.x,e.y,w,T+Math.PI,y-r.H)}let i=e8(E,y,o,l);if(t.lineTo(i.x,i.y),x>0){let e=e8(E,P,o,l);t.arc(e.x,e.y,x,y-r.H,P)}}else{t.moveTo(o,l);let e=Math.cos(P)*f+o,i=Math.sin(P)*f+l;t.lineTo(e,i);let r=Math.cos(M)*f+o,n=Math.sin(M)*f+l;t.lineTo(r,n)}t.closePath()}function e7(t,e,i,n,s){let{fullCircles:a,startAngle:o,circumference:l}=e,h=e.endAngle;if(a){e9(t,e,i,n,o+r.T,s);for(let e=0;e<a;++e)t.fill();isNaN(l)||(h=o+l%r.T,l%r.T!=0||(h+=r.T))}return e9(t,e,i,n,h,s),t.fill(),h}function it(t,e,i){let n;let{x:s,y:a,startAngle:o,pixelMargin:l,fullCircles:h}=e,u=Math.max(e.outerRadius-l,0),c=e.innerRadius+l;for(i&&e5(t,e,o+r.T),t.beginPath(),t.arc(s,a,c,o+r.T,o,!0),n=0;n<h;++n)t.stroke();for(t.beginPath(),t.arc(s,a,u,o,o+r.T),n=0;n<h;++n)t.stroke()}function ie(t,e,i,r,n,s){let{options:a}=e,{borderWidth:o,borderJoinStyle:l}=a,h="inner"===a.borderAlign;o&&(h?(t.lineWidth=2*o,t.lineJoin=l||"round"):(t.lineWidth=o,t.lineJoin=l||"bevel"),e.fullCircles&&it(t,e,h),h&&e5(t,e,n),e9(t,e,i,r,n,s),t.stroke())}Object.defineProperties(e1,{defaults:{enumerable:!0,value:r.d},instances:{enumerable:e3,value:eJ},overrides:{enumerable:e3,value:r.U},registry:{enumerable:e3,value:tO},version:{enumerable:e3,value:eU},getChart:{enumerable:e3,value:eK},register:{enumerable:e3,value:(...t)=>{tO.add(...t),e2()}},unregister:{enumerable:e3,value:(...t)=>{tO.remove(...t),e2()}}});class ii extends tn{constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,e,i){let n=this.getProps(["x","y"],i),{angle:s,distance:a}=(0,r.a0)(n,{x:t,y:e}),{startAngle:o,endAngle:l,innerRadius:h,outerRadius:u,circumference:c}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),f=this.options.spacing/2,p=(0,r.v)(c,l-o)>=r.T||(0,r.p)(s,o,l),d=(0,r.ak)(a,h+f,u+f);return p&&d}getCenterPoint(t){let{x:e,y:i,startAngle:r,endAngle:n,innerRadius:s,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],t),{offset:o,spacing:l}=this.options,h=(r+n)/2,u=(s+a+l+o)/2;return{x:e+Math.cos(h)*u,y:i+Math.sin(h)*u}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){let{options:e,circumference:i}=this,n=(e.offset||0)/2,s=(e.spacing||0)/2,a=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=i>r.T?Math.floor(i/r.T):0,0===i||this.innerRadius<0||this.outerRadius<0)return;t.save();let o=0;if(n){o=n/2;let e=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(e)*o,Math.sin(e)*o),this.circumference>=r.P&&(o=n)}t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor;let l=e7(t,this,o,s,a);ie(t,this,o,s,l,a),t.restore()}}function ir(t,e,i=e){t.lineCap=(0,r.v)(i.borderCapStyle,e.borderCapStyle),t.setLineDash((0,r.v)(i.borderDash,e.borderDash)),t.lineDashOffset=(0,r.v)(i.borderDashOffset,e.borderDashOffset),t.lineJoin=(0,r.v)(i.borderJoinStyle,e.borderJoinStyle),t.lineWidth=(0,r.v)(i.borderWidth,e.borderWidth),t.strokeStyle=(0,r.v)(i.borderColor,e.borderColor)}
11function is(t,e,i){t.lineTo(i.x,i.y)}function ia(t){return t.stepped?r.as:t.tension||"monotone"===t.cubicInterpolationMode?r.at:is}function io(t,e,i={}){let r=t.length,{start:n=0,end:s=r-1}=i,{start:a,end:o}=e,l=Math.max(n,a),h=Math.min(s,o),u=n<a&&s<a||n>o&&s>o;return{count:r,start:l,loop:e.loop,ilen:h<l&&!u?r+h-l:h-l}}function il(t,e,i,r){let n,s,a;let{points:o,options:l}=e,{count:h,start:u,loop:c,ilen:f}=io(o,i,r),p=ia(l),{move:d=!0,reverse:m}=r||{};for(n=0;n<=f;++n)(s=o[(u+(m?f-n:n))%h]).skip||(d?(t.moveTo(s.x,s.y),d=!1):p(t,a,s,m,l.stepped),a=s);return c&&p(t,a,s=o[(u+(m?f:0))%h],m,l.stepped),!!c}function ih(t,e,i,r){let n,s,a,o,l,h;let u=e.points,{count:c,start:f,ilen:p}=io(u,i,r),{move:d=!0,reverse:m}=r||{},g=0,v=0,y=t=>(f+(m?p-t:t))%c,b=()=>{o!==l&&(t.lineTo(g,l),t.lineTo(g,o),t.lineTo(g,h))};for(d&&(s=u[y(0)],t.moveTo(s.x,s.y)),n=0;n<=p;++n){if((s=u[y(n)]).skip)continue;let e=s.x,i=s.y,r=0|e;r===a?(i<o?o=i:i>l&&(l=i),g=(v*g+e)/++v):(b(),t.lineTo(e,i),a=r,v=0,o=l=i),h=i}b()}function iu(t){let e=t.options,i=e.borderDash&&e.borderDash.length;return t._decimated||t._loop||e.tension||"monotone"===e.cubicInterpolationMode||e.stepped||i?il:ih}function ic(t){return t.stepped?r.ap:t.tension||"monotone"===t.cubicInterpolationMode?r.aq:r.ar}function ip(t,e,i,r){let n=e._path;!n&&(n=e._path=new Path2D,e.path(n,i,r)&&n.closePath()),ir(t,e.options),t.stroke(n)}function id(t,e,i,r){let{segments:n,options:s}=e,a=iu(e);for(let o of n)ir(t,s,o.style),t.beginPath(),a(t,e,o,{start:i,end:i+r-1})&&t.closePath(),t.stroke()}ii.id="arc",ii.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0},ii.defaultRoutes={backgroundColor:"backgroundColor"};let im="function"==typeof Path2D;function ig(t,e,i,r){im&&!e.options.segment?ip(t,e,i,r):id(t,e,i,r)}class iv extends tn{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,e){let i=this.options;if((i.tension||"monotone"===i.cubicInterpolationMode)&&!i.stepped&&!this._pointsUpdated){let n=i.spanGaps?this._loop:this._fullLoop;(0,r.am)(this._points,i,t,n,e),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=(0,r.an)(this,this.options.segment))}first(){let t=this.segments,e=this.points;return t.length&&e[t[0].start]}last(){let t=this.segments,e=this.points,i=t.length;return i&&e[t[i-1].end]}interpolate(t,e){let i,n;let s=this.options,a=t[e],o=this.points,l=(0,r.ao)(this,{property:e,start:a,end:a});if(!l.length)return;let h=[],u=ic(s);for(i=0,n=l.length;i<n;++i){let{start:r,end:n}=l[i],c=o[r],f=o[n];if(c===f){h.push(c);continue}let p=Math.abs((a-c[e])/(f[e]-c[e])),d=u(c,f,p,s.stepped);d[e]=t[e],h.push(d)}return 1===h.length?h[0]:h}pathSegment(t,e,i){return iu(this)(t,this,e,i)}path(t,e,i){let r=this.segments,n=iu(this),s=this._loop;for(let a of(e=e||0,i=i||this.points.length-e,r))s&=n(t,this,a,{start:e,end:e+i-1});return!!s}draw(t,e,i,r){let n=this.options||{};(this.points||[]).length&&n.borderWidth&&(t.save(),ig(t,this,i,r),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function iy(t,e,i,r){let n=t.options,{[i]:s}=t.getProps([i],r);return Math.abs(e-s)<n.radius+n.hitRadius}iv.id="line",iv.defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0},iv.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"},iv.descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t};class ib extends tn{constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,e,i){let r=this.options,{x:n,y:s}=this.getProps(["x","y"],i);return Math.pow(t-n,2)+Math.pow(e-s,2)<Math.pow(r.hitRadius+r.radius,2)}inXRange(t,e){return iy(this,t,"x",e)}inYRange(t,e){return iy(this,t,"y",e)}getCenterPoint(t){let{x:e,y:i}=this.getProps(["x","y"],t);return{x:e,y:i}}size(t){let e=(t=t||this.options||{}).radius||0,i=(e=Math.max(e,e&&t.hoverRadius||0))&&t.borderWidth||0;return(e+i)*2}draw(t,e){let i=this.options;!this.skip&&!(i.radius<.1)&&(0,r.$)(this,e,this.size(i)/2)&&(t.strokeStyle=i.borderColor,t.lineWidth=i.borderWidth,t.fillStyle=i.backgroundColor,(0,r.au)(t,i,this.x,this.y))}getRange(){let t=this.options||{};return t.radius+t.hitRadius}}function ix(t,e){let i,r,n,s,a;let{x:o,y:l,base:h,width:u,height:c}=t.getProps(["x","y","base","width","height"],e);return t.horizontal?(a=c/2,i=Math.min(o,h),r=Math.max(o,h),n=l-a,s=l+a):(i=o-(a=u/2),r=o+a,n=Math.min(l,h),s=Math.max(l,h)),{left:i,top:n,r
11ight:r,bottom:s}}function i_(t,e,i,n){return t?0:(0,r.E)(e,i,n)}function iw(t,e,i){let n=t.options.borderWidth,s=t.borderSkipped,a=(0,r.aw)(n);return{t:i_(s.top,a.top,0,i),r:i_(s.right,a.right,0,e),b:i_(s.bottom,a.bottom,0,i),l:i_(s.left,a.left,0,e)}}function ik(t,e,i){let{enableBorderRadius:n}=t.getProps(["enableBorderRadius"]),s=t.options.borderRadius,a=(0,r.ax)(s),o=Math.min(e,i),l=t.borderSkipped,h=n||(0,r.i)(s);return{topLeft:i_(!h||l.top||l.left,a.topLeft,0,o),topRight:i_(!h||l.top||l.right,a.topRight,0,o),bottomLeft:i_(!h||l.bottom||l.left,a.bottomLeft,0,o),bottomRight:i_(!h||l.bottom||l.right,a.bottomRight,0,o)}}function iE(t){let e=ix(t),i=e.right-e.left,r=e.bottom-e.top,n=iw(t,i/2,r/2),s=ik(t,i/2,r/2);return{outer:{x:e.left,y:e.top,w:i,h:r,radius:s},inner:{x:e.left+n.l,y:e.top+n.t,w:i-n.l-n.r,h:r-n.t-n.b,radius:{topLeft:Math.max(0,s.topLeft-Math.max(n.t,n.l)),topRight:Math.max(0,s.topRight-Math.max(n.t,n.r)),bottomLeft:Math.max(0,s.bottomLeft-Math.max(n.b,n.l)),bottomRight:Math.max(0,s.bottomRight-Math.max(n.b,n.r))}}}}function iS(t,e,i,n){let s=null===e,a=null===i,o=s&&a,l=t&&!o&&ix(t,n);return l&&(s||(0,r.ak)(e,l.left,l.right))&&(a||(0,r.ak)(i,l.top,l.bottom))}function iP(t){return t.topLeft||t.topRight||t.bottomLeft||t.bottomRight}function iM(t,e){t.rect(e.x,e.y,e.w,e.h)}function iC(t,e,i={}){let r=t.x!==i.x?-e:0,n=t.y!==i.y?-e:0,s=(t.x+t.w!==i.x+i.w?e:0)-r,a=(t.y+t.h!==i.y+i.h?e:0)-n;return{x:t.x+r,y:t.y+n,w:t.w+s,h:t.h+a,radius:t.radius}}ib.id="point",ib.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0},ib.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};class iA extends tn{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){let{inflateAmount:e,options:{borderColor:i,backgroundColor:n}}=this,{inner:s,outer:a}=iE(this),o=iP(a.radius)?r.av:iM;t.save(),(a.w!==s.w||a.h!==s.h)&&(t.beginPath(),o(t,iC(a,e,s)),t.clip(),o(t,iC(s,-e,a)),t.fillStyle=i,t.fill("evenodd")),t.beginPath(),o(t,iC(s,e)),t.fillStyle=n,t.fill(),t.restore()}inRange(t,e,i){return iS(this,t,e,i)}inXRange(t,e){return iS(this,t,null,e)}inYRange(t,e){return iS(this,null,t,e)}getCenterPoint(t){let{x:e,y:i,base:r,horizontal:n}=this.getProps(["x","y","base","horizontal"],t);return{x:n?(e+r)/2:e,y:n?i:(i+r)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}}function iT(t,e,i){let n=t.segments,s=t.points,a=e.points,o=[];for(let t of n){let{start:n,end:l}=t;l=iF(n,l,s);let h=iD(i,s[n],s[l],t.loop);if(!e.segments){o.push({source:t,target:h,start:s[n],end:s[l]});continue}for(let n of(0,r.ao)(e,h)){let e=iD(i,a[n.start],a[n.end],n.loop);for(let a of(0,r.ay)(t,s,e))o.push({source:a,target:n,start:{[i]:iL(h,e,"start",Math.max)},end:{[i]:iL(h,e,"end",Math.min)}})}}return o}function iD(t,e,i,n){if(n)return;let s=e[t],a=i[t];return"angle"===t&&(s=(0,r.az)(s),a=(0,r.az)(a)),{property:t,start:s,end:a}}function iO(t,e){let{x:i=null,y:r=null}=t||{},n=e.points,s=[];return e.segments.forEach(({start:t,end:e})=>{e=iF(t,e,n);let a=n[t],o=n[e];null!==r?(s.push({x:a.x,y:r}),s.push({x:o.x,y:r})):null!==i&&(s.push({x:i,y:a.y}),s.push({x:i,y:o.y}))}),s}function iF(t,e,i){for(;e>t;e--){let t=i[e];if(!isNaN(t.x)&&!isNaN(t.y))break}return e}function iL(t,e,i,r){return t&&e?r(t[i],e[i]):t?t[i]:e?e[i]:0}function iI(t,e){let i=[],n=!1;return(0,r.b)(t)?(n=!0,i=t):i=iO(t,e),i.length?new iv({points:i,options:{tension:0},_loop:n,_fullLoop:n}):null}iA.id="bar",iA.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0},iA.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};function iR(t,e){let i=null;return"start"===t?i=e.bottom:"end"===t?i=e.top:(0,r.i)(t)?i=e.getPixelForValue(t.value):e.getBasePixel&&(i=e.getBasePixel()),i}function iB(t,e,i){return"start"===t?i:"end"===t?e.options.reverse?e.min:e.max:(0,r.i)(t)?t.value:e.getBaseValue()}function ij(t){let{scale:e,index:i,line:r}=t,n=[],s=r.segments,a=r.points,o=iz(e,i);o.push(iI({x:null,y:e.bottom},r));for(let t=0;t<s.length;t++){let e=s[t];for(let t=e.start;t<=e.end;t++)iN(n,a[t],o)}return new iv({points:n,options:{}})}function iz(t,e){let i=[],r=t.getMatchingVisibleMetas("line");for(let t=0;t<r.length;t++){let n=r[t];if(n.index===e)break;n.hidden||i.unshift(n.dataset)}return i}function iN(t,e,i){let r=[];for(let n=0;n<i.length;n++){let{first:s,last:a,point:o}=iV(i[n],e,"x");if(o&&(!s||!a)){if(s)r.unshift(o);else if(t.push(o),!a)break}}t.push(...r)}function iV(t,e,i){let n=t.interpolate(e,i);if(!n)return{};let s=n[i],a=t.segments,o=t.points,l=!1,h=!1;for(let t=0;t<a.length;t++){let e=a[t],n=o[e.start][i],u=o[e.end][i];if((0,r.ak)(s,n,u)){l=s===n,h=s===u;break}}return{first:l,last:h,point:n}}class iH{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,e,i){let{x:n,y:s,radius:a}=this;return e=e||{start:0,end:r.T},t.arc(n,s,a,e.end,e.start,!0),!i.bounds}interpolate(t){let{x:e,y:i,radius:r}=this,n=t.angle;return{x:e+Math.cos(n)*r,y:i+Math.sin(n)*r,angle:n}}}function iW(t,e){let i=t.getDatasetMeta(e);return i&&t.isDatasetVisible(e)?i.dataset:null}function iU(t){return(t.scale||{}).getPointPositionForValue?iq(t):iG(t)}function iG(t){let{scale:e={},fill:i}=t,n=iR(i,e);if((0,r.g)(n)){let t=e.isHorizontal();return{x:t?n:null,y:t?null:n}}return null}function iq(t){let{scale:e,fill:i}=t,r=e.options,n=e.getLabels().length,s=r.reverse?e.max:e.min,a=iB(i,e,s),o=[];if(r.grid.circular){let t=e.getPointPositionForValue(0,s);return new iH({x:t.x,y:t.y,radius:e.getDistanceFromCenterForValue(a)})}for(let t=0;t<n;++t)o.push(e.getPointPositionForValue(t,a));return o}function iY(t,e,i){let{segments:r,points:n}=e,s=!0,a=!1;for(let o of(t.beginPath(),r)){let{start:r,end:l}=o,h=n[r],u=n[iF(r,l,n)];s?(t.moveTo(h.x,h.y),s=!1):(t.lineTo(h.x,i),t.lineTo(h.x,h.y)),(a=!!e.pathSegment(t,o,{move:a}))?t.closePath():t.lineTo(u.x,i)}t.lineTo(e.first().x,i),t.closePath(),t.clip()}function iX(t,e){let{line:i,target:r,property:n,color:s,scale:a}=e;for(let{source:e,target:o,start:l,end:h}of iT(i,r,n)){let u;let{style:{backgroundColor:c=s}={}}=e,f=!0!==r;t.save(),t.fillStyle=c,i$(t,a,f&&iD(n,l,h)),t.beginPath();let p=!!i.pathSegment(t,e);if(f){p?t.closePath():iZ(t,r,h,n);let e=!!r.pathSegment(t,o,{move:p,reverse:!0});(u=p&&e)||iZ(t,r,l,n)}
11t.closePath(),t.fill(u?"evenodd":"nonzero"),t.restore()}}function i$(t,e,i){let{top:r,bottom:n}=e.chart.chartArea,{property:s,start:a,end:o}=i||{};"x"===s&&(t.beginPath(),t.rect(a,r,o-a,n-r),t.clip())}function iZ(t,e,i,r){let n=e.interpolate(i,r);n&&t.lineTo(n.x,n.y)}let iJ=(t,e)=>{let{boxHeight:i=e,boxWidth:r=e}=t;return t.usePointStyle&&(i=Math.min(i,e),r=t.pointStyleWidth||Math.min(r,e)),{boxWidth:r,boxHeight:i,itemHeight:Math.max(e,i)}},iK=(t,e)=>null!==t&&null!==e&&t.datasetIndex===e.datasetIndex&&t.index===e.index;class iQ extends tn{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e,i){this.maxWidth=t,this.maxHeight=e,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){let t=this.options.labels||{},e=(0,r.C)(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter(e=>t.filter(e,this.chart.data))),t.sort&&(e=e.sort((e,i)=>t.sort(e,i,this.chart.data))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){let t,e;let{options:i,ctx:n}=this;if(!i.display){this.width=this.height=0;return}let s=i.labels,a=(0,r.O)(s.font),o=a.size,l=this._computeTitleHeight(),{boxWidth:h,itemHeight:u}=iJ(s,o);n.font=a.string,this.isHorizontal()?(t=this.maxWidth,e=this._fitRows(l,o,h,u)+10):(e=this.maxHeight,t=this._fitCols(l,o,h,u)+10),this.width=Math.min(t,i.maxWidth||this.maxWidth),this.height=Math.min(e,i.maxHeight||this.maxHeight)}_fitRows(t,e,i,r){let{ctx:n,maxWidth:s,options:{labels:{padding:a}}}=this,o=this.legendHitBoxes=[],l=this.lineWidths=[0],h=r+a,u=t;n.textAlign="left",n.textBaseline="middle";let c=-1,f=-h;return this.legendItems.forEach((t,p)=>{let d=i+e/2+n.measureText(t.text).width;(0===p||l[l.length-1]+d+2*a>s)&&(u+=h,l[l.length-(p>0?0:1)]=0,f+=h,c++),o[p]={left:0,top:f,row:c,width:d,height:r},l[l.length-1]+=d+a}),u}_fitCols(t,e,i,r){let{ctx:n,maxHeight:s,options:{labels:{padding:a}}}=this,o=this.legendHitBoxes=[],l=this.columnSizes=[],h=s-t,u=a,c=0,f=0,p=0,d=0;return this.legendItems.forEach((t,s)=>{let m=i+e/2+n.measureText(t.text).width;s>0&&f+r+2*a>h&&(u+=c+a,l.push({width:c,height:f}),p+=c+a,d++,c=f=0),o[s]={left:p,top:f,col:d,width:m,height:r},c=Math.max(c,m),f+=r+a}),u+=c,l.push({width:c,height:f}),u}adjustHitBoxes(){if(!this.options.display)return;let t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:i,labels:{padding:n},rtl:s}}=this,a=(0,r.aA)(s,this.left,this.width);if(this.isHorizontal()){let s=0,o=(0,r.S)(i,this.left+n,this.right-this.lineWidths[s]);for(let l of e)s!==l.row&&(s=l.row,o=(0,r.S)(i,this.left+n,this.right-this.lineWidths[s])),l.top+=this.top+t+n,l.left=a.leftForLtr(a.x(o),l.width),o+=l.width+n}else{let s=0,o=(0,r.S)(i,this.top+t+n,this.bottom-this.columnSizes[s].height);for(let l of e)l.col!==s&&(s=l.col,o=(0,r.S)(i,this.top+t+n,this.bottom-this.columnSizes[s].height)),l.top=o,l.left+=this.left+n,l.left=a.leftForLtr(a.x(l.left),l.width),o+=l.height+n}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){let t=this.ctx;(0,r.L)(t,this),this._draw(),(0,r.N)(t)}}_draw(){let t;let{options:e,columnSizes:i,lineWidths:n,ctx:s}=this,{align:a,labels:o}=e,l=r.d.color,h=(0,r.aA)(e.rtl,this.left,this.width),u=(0,r.O)(o.font),{color:c,padding:f}=o,p=u.size,d=p/2;this.drawTitle(),s.textAlign=h.textAlign("left"),s.textBaseline="middle",s.lineWidth=.5,s.font=u.string;let{boxWidth:m,boxHeight:g,itemHeight:v}=iJ(o,p),y=function(t,e,i){if(isNaN(m)||m<=0||isNaN(g)||g<0)return;s.save();let n=(0,r.v)(i.lineWidth,1);if(s.fillStyle=(0,r.v)(i.fillStyle,l),s.lineCap=(0,r.v)(i.lineCap,"butt"),s.lineDashOffset=(0,r.v)(i.lineDashOffset,0),s.lineJoin=(0,r.v)(i.lineJoin,"miter"),s.lineWidth=n,s.strokeStyle=(0,r.v)(i.strokeStyle,l),s.setLineDash((0,r.v)(i.lineDash,[])),o.usePointStyle){let a={radius:g*Math.SQRT2/2,pointStyle:i.pointStyle,rotation:i.rotation,borderWidth:n},l=h.xPlus(t,m/2),u=e+d;(0,r.aE)(s,a,l,u,o.pointStyleWidth&&m)}else{let a=e+Math.max((p-g)/2,0),o=h.leftForLtr(t,m),l=(0,r.ax)(i.borderRadius);s.beginPath(),Object.values(l).some(t=>0!==t)?(0,r.av)(s,{x:o,y:a,w:m,h:g,radius:l}):s.rect(o,a,m,g),s.fill(),0!==n&&s.stroke()}
11s.restore()},b=function(t,e,i){(0,r.M)(s,i.text,t,e+v/2,u,{strikethrough:i.hidden,textAlign:h.textAlign(i.textAlign)})},x=this.isHorizontal(),_=this._computeTitleHeight();t=x?{x:(0,r.S)(a,this.left+f,this.right-n[0]),y:this.top+f+_,line:0}:{x:this.left+f,y:(0,r.S)(a,this.top+_+f,this.bottom-i[0].height),line:0},(0,r.aB)(this.ctx,e.textDirection);let w=v+f;this.legendItems.forEach((l,u)=>{s.strokeStyle=l.fontColor||c,s.fillStyle=l.fontColor||c;let p=s.measureText(l.text).width,g=h.textAlign(l.textAlign||(l.textAlign=o.textAlign)),v=m+d+p,k=t.x,E=t.y;h.setWidth(this.width),x?u>0&&k+v+f>this.right&&(E=t.y+=w,t.line++,k=t.x=(0,r.S)(a,this.left+f,this.right-n[t.line])):u>0&&E+w>this.bottom&&(k=t.x=k+i[t.line].width+f,t.line++,E=t.y=(0,r.S)(a,this.top+_+f,this.bottom-i[t.line].height)),y(h.x(k),E,l),k=(0,r.aC)(g,k+m+d,x?k+v:this.right,e.rtl),b(h.x(k),E,l),x?t.x+=v+f:t.y+=w}),(0,r.aD)(this.ctx,e.textDirection)}drawTitle(){let t;let e=this.options,i=e.title,n=(0,r.O)(i.font),s=(0,r.K)(i.padding);if(!i.display)return;let a=(0,r.aA)(e.rtl,this.left,this.width),o=this.ctx,l=i.position,h=n.size/2,u=s.top+h,c=this.left,f=this.width;if(this.isHorizontal())f=Math.max(...this.lineWidths),t=this.top+u,c=(0,r.S)(e.align,c,this.right-f);else{let i=this.columnSizes.reduce((t,e)=>Math.max(t,e.height),0);t=u+(0,r.S)(e.align,this.top,this.bottom-i-e.labels.padding-this._computeTitleHeight())}let p=(0,r.S)(l,c,c+f);o.textAlign=a.textAlign((0,r.R)(l)),o.textBaseline="middle",o.strokeStyle=i.color,o.fillStyle=i.color,o.font=n.string,(0,r.M)(o,i.text,p,t,n)}_computeTitleHeight(){let t=this.options.title,e=(0,r.O)(t.font),i=(0,r.K)(t.padding);return t.display?e.lineHeight+i.height:0}_getLegendItemAt(t,e){let i,n,s;if((0,r.ak)(t,this.left,this.right)&&(0,r.ak)(e,this.top,this.bottom)){for(i=0,s=this.legendHitBoxes;i<s.length;++i)if(n=s[i],(0,r.ak)(t,n.left,n.left+n.width)&&(0,r.ak)(e,n.top,n.top+n.height))return this.legendItems[i]}return null}handleEvent(t){let e=this.options;if(!i0(t.type,e))return;let i=this._getLegendItemAt(t.x,t.y);if("mousemove"===t.type||"mouseout"===t.type){let n=this._hoveredItem,s=iK(n,i);n&&!s&&(0,r.C)(e.onLeave,[t,n,this],this),this._hoveredItem=i,i&&!s&&(0,r.C)(e.onHover,[t,i,this],this)}else i&&(0,r.C)(e.onClick,[t,i,this],this)}}function i0(t,e){return("mousemove"===t||"mouseout"===t)&&(!!e.onHover||!!e.onLeave)||!!e.onClick&&("click"===t||"mouseup"===t)}var i1={id:"legend",_element:iQ,start(t,e,i){let r=t.legend=new iQ({ctx:t.ctx,options:i,chart:t});t9.configure(t,r,i),t9.addBox(t,r)},stop(t){t9.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,i){let r=t.legend;t9.configure(t,r,i),r.options=i},afterUpdate(t){let e=t.legend;e.buildLabels(),e.adjustHitBoxes()},afterEvent(t,e){e.replay||t.legend.handleEvent(e.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(t,e,i){let r=e.datasetIndex,n=i.chart;n.isDatasetVisible(r)?(n.hide(r),e.hidden=!0):(n.show(r),e.hidden=!1)},onHover:null,onLeave:null,labels:{color:t=>t.chart.options.color,boxWidth:40,padding:10,generateLabels(t){let e=t.data.datasets,{labels:{usePointStyle:i,pointStyle:n,textAlign:s,color:a}}=t.legend.options;return t._getSortedDatasetMetas().map(t=>{let o=t.controller.getStyle(i?0:void 0),l=(0,r.K)(o.borderWidth);return{text:e[t.index].label,fillStyle:o.backgroundColor,fontColor:a,hidden:!t.visible,lineCap:o.borderCapStyle,lineDash:o.borderDash,lineDashOffset:o.borderDashOffset,lineJoin:o.borderJoinStyle,lineWidth:(l.width+l.height)/4,strokeStyle:o.borderColor,pointStyle:n||o.pointStyle,rotation:o.rotation,textAlign:s||o.textAlign,borderRadius:0,datasetIndex:t.index}},this)}},title:{color:t=>t.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:t=>!t.startsWith("on"),labels:{_scriptable:t=>!["generateLabels","filter","sort"].includes(t)}}};class i2 extends tn{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e){let i=this.options;if(this.left=0,this.top=0,!i.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=e;let n=(0,r.b)(i.text)?i.text.length:1;this._padding=(0,r.K)(i.padding);let s=n*(0,r.O)(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=s:this.width=s}isHorizontal(){let t=this.options.position;return"top"===t||"bottom"===t}_drawArgs(t){let e,i,n;let{top:s,left:a,bottom:o,right:l,options:h}=this,u=h.align,c=0;return this.isHorizontal()?(i=(0,r.S)(u,a,l),n=s+t,e=l-a):("left"===h.position?(i=a+t,n=(0,r.S)(u,o,s),c=-.5*r.P):(i=l-t,n=(0,r.S)(u,s,o),c=.5*r.P),e=o-s),{titleX:i,titleY:n,maxWidth:e,rotation:c}}draw(){let t=this.ctx,e=this.options;if(!e.display)return;let i=(0,r.O)(e.font),n=i.lineHeight/2+this._padding.top,{titleX:s,titleY:a,maxWidth:o,rotation:l}=this._drawArgs(n);(0,r.M)(t,e.text,0,0,i,{color:e.color,maxWidth:o,rotation:l,textAlign:(0,r.R)(e.align),textBaseline:"middle",translation:[s,a]})}}function i3(t,e){let i=new i2({ctx:t.ctx,options:e,chart:t});t9.configure(t,i,e),t9.addBox(t,i),t.titleBlock=i}var i5={id:"title",_element:i2,start(t,e,i){i3(t,i)},stop(t){let e=t.titleBlock;t9.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,i){let r=t.titleBlock;t9.configure(t,r,i),r.options=i},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};new WeakMap;let i4={average(t){let e,i;if(!t.length)return!1;let r=0,n=0,s=0;for(e=0,i=t.length;e<i;++e){let i=t[e].element;if(i&&i.hasValue()){let t=i.tooltipPosition();r+=t.x,n+=t.y,++s}}return{x:r/s,y:n/s}},nearest(t,e){let i,n,s;if(!t.length)return!1;let a=e.x,o=e.y,l=Number.POSITIVE_INFINITY;for(i=0,n=t.length;i<n;++i){let n=t[i].element;if(n&&n.hasValue()){let t=n.getCenterPoint(),i=(0,r.aG)(e,t);i<l&&(l=i,s=n)}}if(s){let t=s.tooltipPosition();a=t.x,o=t.y}return{x:a,y:o}}};function i6(t,e){return e&&((0,r.b)(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function i8(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function i9(t,e){let{element:i,datasetIndex:r,index:n}=e,s=t.getDatasetMeta(r).controller,{label:a,value:o}=s.getLabelAndValue(n);return{chart:t,label:a,parsed:s.getParsed(n),raw:t.data.datasets[r].data[n],formattedValue:o,dataset:s.getDataset(),dataIndex:n,datasetIndex:r,element:i}}function i7(t,e){let i=t.chart.ctx,{body:n,footer:s,title:a}=t,{boxWidth:o,boxHeight:l}=e,h=(0,r.O)(e.bodyFont),u=(0,r.O)(e.titleFont),c=(0,r.O)(e.footerFont),f=a.length,p=s.length,d=n.length,m=(0,r.K)(e.padding),g=m.height,v=0,y=n.reduce((t,e)=>t+e.before.length+e.lines.length+e.after.length,0);y+=t.beforeBody.length+t.afterBody.length,f&&(g+=f*u.lineHeight+(f-1)*e.titleSpacing+e.titleMarginBottom),y&&(g+=d*(e.displayColors?Math.max(l,h.lineHeight):h.lineHeight)+(y-d)*h.lineHeight+(y-1)*e.bodySpacing),p&&(g+=e.footerMarginTop+p*c.lineHeight+(p-1)*e.footerSpacing);let b=0,x=function(t){v=Math.max(v,i.measureText(t).width+b)};return i.save(),i.font=u.string,(0,r.Q)(t.title,x),i.font=h.string,(0,r.Q)(t.beforeBody.concat(t.afterBody),x),b=e.dis
11playColors?o+2+e.boxPadding:0,(0,r.Q)(n,t=>{(0,r.Q)(t.before,x),(0,r.Q)(t.lines,x),(0,r.Q)(t.after,x)}),b=0,i.font=c.string,(0,r.Q)(t.footer,x),i.restore(),{width:v+=m.width,height:g}}function rt(t,e){let{y:i,height:r}=e;return i<r/2?"top":i>t.height-r/2?"bottom":"center"}function re(t,e,i,r){let{x:n,width:s}=r,a=i.caretSize+i.caretPadding;if("left"===t&&n+s+a>e.width||"right"===t&&n-s-a<0)return!0}function ri(t,e,i,r){let{x:n,width:s}=i,{width:a,chartArea:{left:o,right:l}}=t,h="center";return"center"===r?h=n<=(o+l)/2?"left":"right":n<=s/2?h="left":n>=a-s/2&&(h="right"),re(h,t,e,i)&&(h="center"),h}function rr(t,e,i){let r=i.yAlign||e.yAlign||rt(t,i);return{xAlign:i.xAlign||e.xAlign||ri(t,e,i,r),yAlign:r}}function rn(t,e){let{x:i,width:r}=t;return"right"===e?i-=r:"center"===e&&(i-=r/2),i}function rs(t,e,i){let{y:r,height:n}=t;return"top"===e?r+=i:"bottom"===e?r-=n+i:r-=n/2,r}function ra(t,e,i,n){let{caretSize:s,caretPadding:a,cornerRadius:o}=t,{xAlign:l,yAlign:h}=i,u=s+a,{topLeft:c,topRight:f,bottomLeft:p,bottomRight:d}=(0,r.ax)(o),m=rn(e,l),g=rs(e,h,u);return"center"===h?"left"===l?m+=u:"right"===l&&(m-=u):"left"===l?m-=Math.max(c,p)+s:"right"===l&&(m+=Math.max(f,d)+s),{x:(0,r.E)(m,0,n.width-e.width),y:(0,r.E)(g,0,n.height-e.height)}}function ro(t,e,i){let n=(0,r.K)(i.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-n.right:t.x+n.left}function rl(t){return i6([],i8(t))}function rh(t,e,i){return(0,r.h)(t,{tooltip:e,tooltipItems:i,type:"tooltip"})}function ru(t,e){let i=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return i?t.override(i):t}class rc extends tn{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart||t._chart,this._chart=this.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){let t=this._cachedAnimations;if(t)return t;let e=this.chart,i=this.options.setContext(this.getContext()),r=i.enabled&&e.options.animation&&i.animations,n=new f(this.chart,r);return r._cacheable&&(this._cachedAnimations=Object.freeze(n)),n}getContext(){return this.$context||(this.$context=rh(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,e){let{callbacks:i}=e,r=i.beforeTitle.apply(this,[t]),n=i.title.apply(this,[t]),s=i.afterTitle.apply(this,[t]),a=[];return a=i6(a,i8(r)),a=i6(a,i8(n)),a=i6(a,i8(s))}getBeforeBody(t,e){return rl(e.callbacks.beforeBody.apply(this,[t]))}getBody(t,e){let{callbacks:i}=e,n=[];return(0,r.Q)(t,t=>{let e={before:[],lines:[],after:[]},r=ru(i,t);i6(e.before,i8(r.beforeLabel.call(this,t))),i6(e.lines,r.label.call(this,t)),i6(e.after,i8(r.afterLabel.call(this,t))),n.push(e)}),n}getAfterBody(t,e){return rl(e.callbacks.afterBody.apply(this,[t]))}getFooter(t,e){let{callbacks:i}=e,r=i.beforeFooter.apply(this,[t]),n=i.footer.apply(this,[t]),s=i.afterFooter.apply(this,[t]),a=[];return a=i6(a,i8(r)),a=i6(a,i8(n)),a=i6(a,i8(s))}_createItems(t){let e,i;let n=this._active,s=this.chart.data,a=[],o=[],l=[],h=[];for(e=0,i=n.length;e<i;++e)h.push(i9(this.chart,n[e]));return t.filter&&(h=h.filter((e,i,r)=>t.filter(e,i,r,s))),t.itemSort&&(h=h.sort((e,i)=>t.itemSort(e,i,s))),(0,r.Q)(h,e=>{let i=ru(t.callbacks,e);a.push(i.labelColor.call(this,e)),o.push(i.labelPointStyle.call(this,e)),l.push(i.labelTextColor.call(this,e))}),this.labelColors=a,this.labelPointStyles=o,this.labelTextColors=l,this.dataPoints=h,h}update(t,e){let i;let r=this.options.setContext(this.getContext()),n=this._active,s=[];if(n.length){let t=i4[r.position].call(this,n,this._eventPosition);s=this._createItems(r),this.title=this.getTitle(s,r),this.beforeBody=this.getBeforeBody(s,r),this.body=this.getBody(s,r),this.afterBody=this.getAfterBody(s,r),this.footer=this.getFooter(s,r);let e=this._size=i7(this,r),a=Object.assign({},t,e),o=rr(this.chart,r,a),l=ra(r,a,o,this.chart);this.xAlign=o.xAlign,this.yAlign=o.yAlign,i={opacity:1,x:l.x,y:l.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(i={opacity:0}
11);this._tooltipItems=s,this.$context=void 0,i&&this._resolveAnimations().update(this,i),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,i,r){let n=this.getCaretPosition(t,i,r);e.lineTo(n.x1,n.y1),e.lineTo(n.x2,n.y2),e.lineTo(n.x3,n.y3)}getCaretPosition(t,e,i){let n,s,a,o,l,h;let{xAlign:u,yAlign:c}=this,{caretSize:f,cornerRadius:p}=i,{topLeft:d,topRight:m,bottomLeft:g,bottomRight:v}=(0,r.ax)(p),{x:y,y:b}=t,{width:x,height:_}=e;return"center"===c?(l=b+_/2,"left"===u?(s=(n=y)-f,o=l+f,h=l-f):(s=(n=y+x)+f,o=l-f,h=l+f),a=n):(s="left"===u?y+Math.max(d,g)+f:"right"===u?y+x-Math.max(m,v)-f:this.caretX,"top"===c?(l=(o=b)-f,n=s-f,a=s+f):(l=(o=b+_)+f,n=s+f,a=s-f),h=o),{x1:n,x2:s,x3:a,y1:o,y2:l,y3:h}}drawTitle(t,e,i){let n,s,a;let o=this.title,l=o.length;if(l){let h=(0,r.aA)(i.rtl,this.x,this.width);for(a=0,t.x=ro(this,i.titleAlign,i),e.textAlign=h.textAlign(i.titleAlign),e.textBaseline="middle",n=(0,r.O)(i.titleFont),s=i.titleSpacing,e.fillStyle=i.titleColor,e.font=n.string;a<l;++a)e.fillText(o[a],h.x(t.x),t.y+n.lineHeight/2),t.y+=n.lineHeight+s,a+1===l&&(t.y+=i.titleMarginBottom-s)}}_drawColorBox(t,e,i,n,s){let a=this.labelColors[i],o=this.labelPointStyles[i],{boxHeight:l,boxWidth:h,boxPadding:u}=s,c=(0,r.O)(s.bodyFont),f=ro(this,"left",s),p=n.x(f),d=l<c.lineHeight?(c.lineHeight-l)/2:0,m=e.y+d;if(s.usePointStyle){let e={radius:Math.min(h,l)/2,pointStyle:o.pointStyle,rotation:o.rotation,borderWidth:1},i=n.leftForLtr(p,h)+h/2,u=m+l/2;t.strokeStyle=s.multiKeyBackground,t.fillStyle=s.multiKeyBackground,(0,r.au)(t,e,i,u),t.strokeStyle=a.borderColor,t.fillStyle=a.backgroundColor,(0,r.au)(t,e,i,u)}else{t.lineWidth=(0,r.i)(a.borderWidth)?Math.max(...Object.values(a.borderWidth)):a.borderWidth||1,t.strokeStyle=a.borderColor,t.setLineDash(a.borderDash||[]),t.lineDashOffset=a.borderDashOffset||0;let e=n.leftForLtr(p,h-u),i=n.leftForLtr(n.xPlus(p,1),h-u-2),o=(0,r.ax)(a.borderRadius);Object.values(o).some(t=>0!==t)?(t.beginPath(),t.fillStyle=s.multiKeyBackground,(0,r.av)(t,{x:e,y:m,w:h,h:l,radius:o}),t.fill(),t.stroke(),t.fillStyle=a.backgroundColor,t.beginPath(),(0,r.av)(t,{x:i,y:m+1,w:h-2,h:l-2,radius:o}),t.fill()):(t.fillStyle=s.multiKeyBackground,t.fillRect(e,m,h,l),t.strokeRect(e,m,h,l),t.fillStyle=a.backgroundColor,t.fillRect(i,m+1,h-2,l-2))}t.fillStyle=this.labelTextColors[i]}drawBody(t,e,i){let n,s,a,o,l,h,u;let{body:c}=this,{bodySpacing:f,bodyAlign:p,displayColors:d,boxHeight:m,boxWidth:g,boxPadding:v}=i,y=(0,r.O)(i.bodyFont),b=y.lineHeight,x=0,_=(0,r.aA)(i.rtl,this.x,this.width),w=function(i){e.fillText(i,_.x(t.x+x),t.y+b/2),t.y+=b+f},k=_.textAlign(p);for(e.textAlign=p,e.textBaseline="middle",e.font=y.string,t.x=ro(this,k,i),e.fillStyle=i.bodyColor,(0,r.Q)(this.beforeBody,w),x=d&&"right"!==k?"center"===p?g/2+v:g+2+v:0,o=0,h=c.length;o<h;++o){for(n=c[o],s=this.labelTextColors[o],e.fillStyle=s,(0,r.Q)(n.before,w),a=n.lines,d&&a.length&&(this._drawColorBox(e,t,o,_,i),b=Math.max(y.lineHeight,m)),l=0,u=a.length;l<u;++l)w(a[l]),b=y.lineHeight;(0,r.Q)(n.after,w)}
11x=0,b=y.lineHeight,(0,r.Q)(this.afterBody,w),t.y-=f}drawFooter(t,e,i){let n,s;let a=this.footer,o=a.length;if(o){let l=(0,r.aA)(i.rtl,this.x,this.width);for(t.x=ro(this,i.footerAlign,i),t.y+=i.footerMarginTop,e.textAlign=l.textAlign(i.footerAlign),e.textBaseline="middle",n=(0,r.O)(i.footerFont),e.fillStyle=i.footerColor,e.font=n.string,s=0;s<o;++s)e.fillText(a[s],l.x(t.x),t.y+n.lineHeight/2),t.y+=n.lineHeight+i.footerSpacing}}drawBackground(t,e,i,n){let{xAlign:s,yAlign:a}=this,{x:o,y:l}=t,{width:h,height:u}=i,{topLeft:c,topRight:f,bottomLeft:p,bottomRight:d}=(0,r.ax)(n.cornerRadius);e.fillStyle=n.backgroundColor,e.strokeStyle=n.borderColor,e.lineWidth=n.borderWidth,e.beginPath(),e.moveTo(o+c,l),"top"===a&&this.drawCaret(t,e,i,n),e.lineTo(o+h-f,l),e.quadraticCurveTo(o+h,l,o+h,l+f),"center"===a&&"right"===s&&this.drawCaret(t,e,i,n),e.lineTo(o+h,l+u-d),e.quadraticCurveTo(o+h,l+u,o+h-d,l+u),"bottom"===a&&this.drawCaret(t,e,i,n),e.lineTo(o+p,l+u),e.quadraticCurveTo(o,l+u,o,l+u-p),"center"===a&&"left"===s&&this.drawCaret(t,e,i,n),e.lineTo(o,l+c),e.quadraticCurveTo(o,l,o+c,l),e.closePath(),e.fill(),n.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){let e=this.chart,i=this.$animations,r=i&&i.x,n=i&&i.y;if(r||n){let i=i4[t.position].call(this,this._active,this._eventPosition);if(!i)return;let s=this._size=i7(this,t),a=Object.assign({},i,this._size),o=rr(e,t,a),l=ra(t,a,o,e);(r._to!==l.x||n._to!==l.y)&&(this.xAlign=o.xAlign,this.yAlign=o.yAlign,this.width=s.width,this.height=s.height,this.caretX=i.x,this.caretY=i.y,this._resolveAnimations().update(this,l))}}_willRender(){return!!this.opacity}draw(t){let e=this.options.setContext(this.getContext()),i=this.opacity;if(!i)return;this._updateAnimationTarget(e);let n={width:this.width,height:this.height},s={x:this.x,y:this.y};i=.001>Math.abs(i)?0:i;let a=(0,r.K)(e.padding),o=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&o&&(t.save(),t.globalAlpha=i,this.drawBackground(s,t,n,e),(0,r.aB)(t,e.textDirection),s.y+=a.top,this.drawTitle(s,t,e),this.drawBody(s,t,e),this.drawFooter(s,t,e),(0,r.aD)(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){let i=this._active,n=t.map(({datasetIndex:t,index:e})=>{let i=this.chart.getDatasetMeta(t);if(!i)throw Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:i.data[e],index:e}}),s=!(0,r.ai)(i,n),a=this._positionChanged(n,e);(s||a)&&(this._active=n,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,i=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;let n=this.options,s=this._active||[],a=this._getActiveElements(t,s,e,i),o=this._positionChanged(a,t),l=e||!(0,r.ai)(a,s)||o;return l&&(this._active=a,(n.enabled||n.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),l}_getActiveElements(t,e,i,r){let n=this.options;if("mouseout"===t.type)return[];if(!r)return e;let s=this.chart.getElementsAtEventForMode(t,n.mode,n,i);return n.reverse&&s.reverse(),s}_positionChanged(t,e){let{caretX:i,caretY:r,options:n}=this,s=i4[n.position].call(this,t,e);return!1!==s&&(i!==s.x||r!==s.y)}}rc.positioners=i4;var rf={id:"tooltip",_element:rc,positioners:i4,afterInit(t,e,i){i&&(t.tooltip=new rc({chart:t,options:i}))},beforeUpdate(t,e,i){t.tooltip&&t.tooltip.initialize(i)},reset(t,e,i){t.tooltip&&t.tooltip.initialize(i)},afterDraw(t){let e=t.tooltip;if(e&&e._willRender()){let i={tooltip:e};if(!1===t.notifyPlugins("beforeTooltipDraw",i))return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",i)}},afterEvent(t,e){if(t.tooltip){let i=e.replay;t.tooltip.handleEvent(e.event,i,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>
11e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:{beforeTitle:r.aF,title(t){if(t.length>0){let e=t[0],i=e.chart.data.labels,r=i?i.length:0;if(this&&this.options&&"dataset"===this.options.mode)return e.dataset.label||"";if(e.label)return e.label;if(r>0&&e.dataIndex<r)return i[e.dataIndex]}return""},afterTitle:r.aF,beforeBody:r.aF,beforeLabel:r.aF,label(t){if(this&&this.options&&"dataset"===this.options.mode)return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");let i=t.formattedValue;return(0,r.k)(i)||(e+=i),e},labelColor(t){let e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:e.borderColor,backgroundColor:e.backgroundColor,borderWidth:e.borderWidth,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){let e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:r.aF,afterBody:r.aF,beforeFooter:r.aF,footer:r.aF,afterFooter:r.aF}},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>"filter"!==t&&"itemSort"!==t&&"external"!==t,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};let rp=(t,e,i,r)=>("string"==typeof e?(i=t.push(e)-1,r.unshift({index:i,label:e})):isNaN(e)&&(i=null),i);function rd(t,e,i,r){let n=t.indexOf(e);return -1===n?rp(t,e,i,r):n!==t.lastIndexOf(e)?i:n}let rm=(t,e)=>null===t?null:(0,r.E)(Math.round(t),0,e);class rg extends tP{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){let e=this._addedLabels;if(e.length){let t=this.getLabels();for(let{index:i,label:r}of e)t[i]===r&&t.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,e){if((0,r.k)(t))return null;let i=this.getLabels();return rm(e=isFinite(e)&&i[e]===t?e:rd(i,t,(0,r.v)(e,t),this._addedLabels),i.length-1)}determineDataLimits(){let{minDefined:t,maxDefined:e}=this.getUserBounds(),{min:i,max:r}=this.getMinMax(!0);"ticks"!==this.options.bounds||(t||(i=0),e||(r=this.getLabels().length-1)),this.min=i,this.max=r}buildTicks(){let t=this.min,e=this.max,i=this.options.offset,r=[],n=this.getLabels();n=0===t&&e===n.length-1?n:n.slice(t,e+1),this._valueRange=Math.max(n.length-(i?0:1),1),this._startValue=this.min-(i?.5:0);for(let i=t;i<=e;i++)r.push({value:i});return r}getLabelForValue(t){let e=this.getLabels();return t>=0&&t<e.length?e[t]:t}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return"number"!=typeof t&&(t=this.parse(t)),null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){let e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}function rv(t,e){let i,n,s,a;let o=[],l=1e-14,{bounds:h,step:u,min:c,max:f,precision:p,count:d,maxTicks:m,maxDigits:g,includeBounds:v}=t,y=u||1,b=m-1,{min:x,max:_}=e,w=!(0,r.k)(c),k=!(0,r.k)(f),E=!(0,r.k)(d),S=(_-x)/(g+1),P=(0,r.aI)((_-x)/b/y)*y;if(P<l&&!w&&!k)return[{value:x},{value:_}];(a=Math.ceil(_/P)-Math.floor(x/P))>b&&(P=(0,r.aI)(a*P/b/y)*y),(0,r.k)(p)||(P=Math.ceil(P*(i=Math.pow(10,p)))/i),"ticks"===h?(n=Math.floor(x/P)*P,s=Math.ceil(_/P)*P):(n=x,s=_),w&&k&&u&&(0,r.aJ)((f-c)/u,P/1e3)?(a=Math.round(Math.min((f-c)/P,m)),P=(f-c)/a,n=c,s=f):E?(n=w?c:n,P=((s=k?f:s)-n)/(a=d-1)):(a=(s-n)/P,a=(0,r.aK)(a,Math.round(a),P/1e3)?Math.round(a):Math.ceil(a));let M=Math.max((0,r.aL)(P),(0,r.aL)(n));n=Math.round(n*(i=Math.pow(10,(0,r.k)(p)?M:p)))/i,s=Math.round(s*i)/i;let C=0;for(w&&(v&&n!==c?(o.push({value:c}),n<c&&C++,(0,r.aK)(Math.round((n+C*P)*i)/i,c,ry(c,S,t))&&C++):n<c&&C++);C<a;++C)o.push({value:Math.round((n+C*P)*i)/i}
11);return k&&v&&s!==f?o.length&&(0,r.aK)(o[o.length-1].value,f,ry(f,S,t))?o[o.length-1].value=f:o.push({value:f}):k&&s!==f||o.push({value:s}),o}function ry(t,e,{horizontal:i,minRotation:n}){let s=(0,r.t)(n),a=(i?Math.sin(s):Math.cos(s))||.001,o=.75*e*(""+t).length;return Math.min(e/a,o)}rg.id="category",rg.defaults={ticks:{callback:rg.prototype.getLabelForValue}};class rb extends tP{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return(0,r.k)(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){let{beginAtZero:t}=this.options,{minDefined:e,maxDefined:i}=this.getUserBounds(),{min:n,max:s}=this,a=t=>n=e?n:t,o=t=>s=i?s:t;if(t){let t=(0,r.s)(n),e=(0,r.s)(s);t<0&&e<0?o(0):t>0&&e>0&&a(0)}if(n===s){let e=1;(s>=Number.MAX_SAFE_INTEGER||n<=Number.MIN_SAFE_INTEGER)&&(e=Math.abs(.05*s)),o(s+e),t||a(n-e)}this.min=n,this.max=s}getTickLimit(){let t;let{maxTicksLimit:e,stepSize:i}=this.options.ticks;return i?(t=Math.ceil(this.max/i)-Math.floor(this.min/i)+1)>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${t} ticks. Limiting to 1000.`),t=1e3):(t=this.computeTickLimit(),e=e||11),e&&(t=Math.min(e,t)),t}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){let t=this.options,e=t.ticks,i=this.getTickLimit(),n=rv({maxTicks:i=Math.max(2,i),bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:!1!==e.includeBounds},this._range||this);return"ticks"===t.bounds&&(0,r.aH)(n,this,"value"),t.reverse?(n.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),n}configure(){let t=this.ticks,e=this.min,i=this.max;if(super.configure(),this.options.offset&&t.length){let r=(i-e)/Math.max(t.length-1,1)/2;e-=r,i+=r}this._startValue=e,this._endValue=i,this._valueRange=i-e}getLabelForValue(t){return(0,r.o)(t,this.chart.options.locale,this.options.ticks.format)}}class rx extends rb{determineDataLimits(){let{min:t,max:e}=this.getMinMax(!0);this.min=(0,r.g)(t)?t:0,this.max=(0,r.g)(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){let t=this.isHorizontal(),e=t?this.width:this.height,i=(0,r.t)(this.options.ticks.minRotation),n=(t?Math.sin(i):Math.cos(i))||.001;return Math.ceil(e/Math.min(40,this._resolveTickFontOptions(0).lineHeight/n))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}function r_(t){return 1==t/Math.pow(10,Math.floor((0,r.z)(t)))}function rw(t,e){let i=Math.floor((0,r.z)(e.max)),n=Math.ceil(e.max/Math.pow(10,i)),s=[],a=(0,r.B)(t.min,Math.pow(10,Math.floor((0,r.z)(e.min)))),o=Math.floor((0,r.z)(a)),l=Math.floor(a/Math.pow(10,o)),h=o<0?Math.pow(10,Math.abs(o)):1;do s.push({value:a,major:r_(a)}),10==++l&&(l=1,h=++o>=0?1:h),a=Math.round(l*Math.pow(10,o)*h)/h;while(o<i||o===i&&l<n);return s.push({value:(0,r.B)(t.max,a),major:r_(a)}),s}rx.id="linear",rx.defaults={ticks:{callback:to.numeric}};class rk extends tP{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){let i=rb.prototype.parse.apply(this,[t,e]);if(0===i){this._zero=!0;return}return(0,r.g)(i)&&i>0?i:null}determineDataLimits(){let{min:t,max:e}=this.getMinMax(!0);this.min=(0,r.g)(t)?Math.max(0,t):null,this.max=(0,r.g)(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){let{minDefined:t,maxDefined:e}=this.getUserBounds(),i=this.min,n=this.max,s=e=>i=t?i:e,a=t=>n=e?n:t,o=(t,e)=>Math.pow(10,Math.floor((0,r.z)(t))+e);i===n&&(i<=0?(s(1),a(10)):(s(o(i,-1)),a(o(n,1)))),i<=0&&s(o(n,-1)),n<=0&&a(o(i,1)),this._zero&&this.min!==this._suggestedMin&&i===o(this.min,0)&&s(o(i,-1)),this.min=i,this.max=n}buildTicks(){let t=this.options,e=rw({min:this._userMin,max:this._userMax},this);return"ticks"===t.bounds&&(0,r.aH)(e,this,"value"),t.reverse?(e.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),e}getLabelForValue(t){return void 0===t?"0":(0,r.o)(t,this.chart.options.locale,this.options.ticks.format)}configure(){let t=this.min;super.configure(),this._startValue=(0,r.z)(t),this._valueRange=(0,r.z)(this.max)-(0,r.z)(t)}getPixelForValue(t){return((void 0===t||0===t)&&(t=this.min),null===t||isNaN(t))?NaN:this.getPixelForDecimal(t===this.min?0:((0,r.z)(t)-this._startValue)/this._valueRange)}getValueForPixel(t){let e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}function rE(t){let e=t.ticks;if(e.display&&t.display){let t=(0,r.K)(e.backdropPadding);return(0,r.v)(e.font&&e.font.size,r.d.font.size)+t.height}return 0}function rS(t,e,i){return i=(0,r.b)(i)?i:[i],{w:(0,r.aM)(t,e.string,i),h:i.length*e.lineHeight}}function rP(t,e,i,r,n){return t===r||t===n?{start:e-i/2,end:e+i/2}:t<r||t>n?{start:e-i,end:e}:{start:e,end:e+i}}function rM(t){let e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},i=Object.assign({},e),n=[],s=[],a=t._pointLabels.length,o=t.options.pointLabels,l=o.centerPointLabels?r.P/a:0;for(let h=0;h<a;h++){let a=o.setContext(t.getPointLabelContext(h));s[h]=a.padding;let u=t.getPointPosition(h,t.drawingArea+s[h],l),c=(0,r.O)(a.font),f=rS(t.ctx,c,t._pointLabels[h]);n[h]=f;let p=(0,r.az)(t.getIndexAngle(h)+l),d=Math.round((0,r.F)(p));
11rC(i,e,p,rP(d,u.x,f.w,0,180),rP(d,u.y,f.h,90,270))}t.setCenterPoint(e.l-i.l,i.r-e.r,e.t-i.t,i.b-e.b),t._pointLabelItems=rA(t,n,s)}function rC(t,e,i,r,n){let s=Math.abs(Math.sin(i)),a=Math.abs(Math.cos(i)),o=0,l=0;r.start<e.l?(o=(e.l-r.start)/s,t.l=Math.min(t.l,e.l-o)):r.end>e.r&&(o=(r.end-e.r)/s,t.r=Math.max(t.r,e.r+o)),n.start<e.t?(l=(e.t-n.start)/a,t.t=Math.min(t.t,e.t-l)):n.end>e.b&&(l=(n.end-e.b)/a,t.b=Math.max(t.b,e.b+l))}function rA(t,e,i){let n=[],s=t._pointLabels.length,a=t.options,o=rE(a)/2,l=t.drawingArea,h=a.pointLabels.centerPointLabels?r.P/s:0;for(let a=0;a<s;a++){let s=t.getPointPosition(a,l+o+i[a],h),u=Math.round((0,r.F)((0,r.az)(s.angle+r.H))),c=e[a],f=rO(s.y,c.h,u),p=rT(u),d=rD(s.x,c.w,p);n.push({x:s.x,y:f,textAlign:p,left:d,top:f,right:d+c.w,bottom:f+c.h})}return n}function rT(t){return 0===t||180===t?"center":t<180?"left":"right"}function rD(t,e,i){return"right"===i?t-=e:"center"===i&&(t-=e/2),t}function rO(t,e,i){return 90===i||270===i?t-=e/2:(i>270||i<90)&&(t-=e),t}function rF(t,e){let{ctx:i,options:{pointLabels:n}}=t;for(let s=e-1;s>=0;s--){let e=n.setContext(t.getPointLabelContext(s)),a=(0,r.O)(e.font),{x:o,y:l,textAlign:h,left:u,top:c,right:f,bottom:p}=t._pointLabelItems[s],{backdropColor:d}=e;if(!(0,r.k)(d)){let t=(0,r.ax)(e.borderRadius),n=(0,r.K)(e.backdropPadding);i.fillStyle=d;let s=u-n.left,a=c-n.top,o=f-u+n.width,l=p-c+n.height;Object.values(t).some(t=>0!==t)?(i.beginPath(),(0,r.av)(i,{x:s,y:a,w:o,h:l,radius:t}),i.fill()):i.fillRect(s,a,o,l)}(0,r.M)(i,t._pointLabels[s],o,l+a.lineHeight/2,a,{color:e.color,textAlign:h,textBaseline:"middle"})}}function rL(t,e,i,n){let{ctx:s}=t;if(i)s.arc(t.xCenter,t.yCenter,e,0,r.T);else{let i=t.getPointPosition(0,e);s.moveTo(i.x,i.y);for(let r=1;r<n;r++)i=t.getPointPosition(r,e),s.lineTo(i.x,i.y)}}function rI(t,e,i,r){let n=t.ctx,s=e.circular,{color:a,lineWidth:o}=e;(s||r)&&a&&o&&!(i<0)&&(n.save(),n.strokeStyle=a,n.lineWidth=o,n.setLineDash(e.borderDash),n.lineDashOffset=e.borderDashOffset,n.beginPath(),rL(t,i,s,r),n.closePath(),n.stroke(),n.restore())}function rR(t,e,i){return(0,r.h)(t,{label:i,index:e,type:"pointLabel"})}rk.id="logarithmic",rk.defaults={ticks:{callback:to.logarithmic,major:{enabled:!0}}};class rB extends rb{constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){let t=this._padding=(0,r.K)(rE(this.options)/2),e=this.width=this.maxWidth-t.width,i=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+i/2+t.top),this.drawingArea=Math.floor(Math.min(e,i)/2)}determineDataLimits(){let{min:t,max:e}=this.getMinMax(!1);this.min=(0,r.g)(t)&&!isNaN(t)?t:0,this.max=(0,r.g)(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/rE(this.options))}generateTickLabels(t){rb.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((t,e)=>{let i=(0,r.C)(this.options.pointLabels.callback,[t,e],this);return i||0===i?i:""}).filter((t,e)=>this.chart.getDataVisibility(e))}fit(){let t=this.options;t.display&&t.pointLabels.display?rM(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,i,r){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((i-r)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,i,r))}getIndexAngle(t){let e=r.T/(this._pointLabels.length||1),i=this.options.startAngle||0;return(0,r.az)(t*e+(0,r.t)(i))}getDistanceFromCenterForValue(t){if((0,r.k)(t))return NaN;let e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e}getValueForDistanceFromCenter(t){if((0,r.k)(t))return NaN;let e=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(t){let e=this._pointLabels||[];if(t>=0&&t<e.length){let i=e[t];return rR(this.getContext(),t,i)}}getPointPosition(t,e,i=0){let n=this.getIndexAngle(t)-r.H+i;return{x:Math.cos(n)*e+this.xCenter,y:Math.sin(n)*e+this.yCenter,angle:n}}getPointPositionForValue(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){let{left:e,top:i,right:r,bottom:n}=this._pointLabelItems[t];return{left:e,top:i,right:r,bottom:n}}
11drawBackground(){let{backgroundColor:t,grid:{circular:e}}=this.options;if(t){let i=this.ctx;i.save(),i.beginPath(),rL(this,this.getDistanceFromCenterForValue(this._endValue),e,this._pointLabels.length),i.closePath(),i.fillStyle=t,i.fill(),i.restore()}}drawGrid(){let t,e,i;let r=this.ctx,n=this.options,{angleLines:s,grid:a}=n,o=this._pointLabels.length;if(n.pointLabels.display&&rF(this,o),a.display&&this.ticks.forEach((t,i)=>{0!==i&&(e=this.getDistanceFromCenterForValue(t.value),rI(this,a.setContext(this.getContext(i-1)),e,o))}),s.display){for(r.save(),t=o-1;t>=0;t--){let a=s.setContext(this.getPointLabelContext(t)),{color:o,lineWidth:l}=a;l&&o&&(r.lineWidth=l,r.strokeStyle=o,r.setLineDash(a.borderDash),r.lineDashOffset=a.borderDashOffset,e=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),i=this.getPointPosition(t,e),r.beginPath(),r.moveTo(this.xCenter,this.yCenter),r.lineTo(i.x,i.y),r.stroke())}r.restore()}}drawBorder(){}drawLabels(){let t,e;let i=this.ctx,n=this.options,s=n.ticks;if(!s.display)return;let a=this.getIndexAngle(0);i.save(),i.translate(this.xCenter,this.yCenter),i.rotate(a),i.textAlign="center",i.textBaseline="middle",this.ticks.forEach((a,o)=>{if(0===o&&!n.reverse)return;let l=s.setContext(this.getContext(o)),h=(0,r.O)(l.font);if(t=this.getDistanceFromCenterForValue(this.ticks[o].value),l.showLabelBackdrop){i.font=h.string,e=i.measureText(a.label).width,i.fillStyle=l.backdropColor;let n=(0,r.K)(l.backdropPadding);i.fillRect(-e/2-n.left,-t-h.size/2-n.top,e+n.width,h.size+n.height)}(0,r.M)(i,a.label,0,-t,h,{color:l.color})}),i.restore()}drawTitle(){}}rB.id="radialLinear",rB.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:to.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:t=>t,padding:5,centerPointLabels:!1}},rB.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},rB.descriptors={angleLines:{_fallback:"grid"}};let rj={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},rz=Object.keys(rj);function rN(t,e){return t-e}function rV(t,e){if((0,r.k)(e))return null;let i=t._adapter,{parser:n,round:s,isoWeekday:a}=t._parseOpts,o=e;return("function"==typeof n&&(o=n(o)),(0,r.g)(o)||(o="string"==typeof n?i.parse(o,n):i.parse(o)),null===o)?null:(s&&(o="week"===s&&((0,r.x)(a)||!0===a)?i.startOf(o,"isoWeek",a):i.startOf(o,s)),+o)}function rH(t,e,i,r){let n=rz.length;for(let s=rz.indexOf(t);s<n-1;++s){let t=rj[rz[s]],n=t.steps?t.steps:Number.MAX_SAFE_INTEGER;if(t.common&&Math.ceil((i-e)/(n*t.size))<=r)return rz[s]}return rz[n-1]}function rW(t,e,i,r,n){for(let s=rz.length-1;s>=rz.indexOf(i);s--){let i=rz[s];if(rj[i].common&&t._adapter.diff(n,r,i)>=e-1)return i}return rz[i?rz.indexOf(i):0]}function rU(t){for(let e=rz.indexOf(t)+1,i=rz.length;e<i;++e)if(rj[rz[e]].common)return rz[e]}function rG(t,e,i){if(i){if(i.length){let{lo:n,hi:s}=(0,r.aO)(i,e);t[i[n]>=e?i[n]:i[s]]=!0}}else t[e]=!0}function rq(t,e,i,r){let n,s;let a=t._adapter,o=+a.startOf(e[0].value,r),l=e[e.length-1].value;for(n=o;n<=l;n=+a.add(n,1,r))(s=i[n])>=0&&(e[s].major=!0);return e}function rY(t,e,i){let r,n;let s=[],a={},o=e.length;for(r=0;r<o;++r)a[n=e[r]]=r,s.push({value:n,major:!1});return 0!==o&&i?rq(t,s,a,i):s}class rX extends tP{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,e){let i=t.time||(t.time={}),n=this._adapter=new tR(t.adapters.date);n.init(e),(0,r.ac)(i.displayFormats,n.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return void 0===t?null:rV(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){let t=this.options,e=this._adapter,i=t.time.unit||"day",{min:n,max:s,minDefined:a,maxDefined:o}=this.getUserBounds();function l(t){a||isNaN(t.min)||(n=Math.min(n,t.min)),o||isNaN(t.max)||(s=Math.max(s,t.max))}a&&o||(l(this._getLabelBounds()),("ticks"!==t.bounds||"labels"!==t.ticks.source)&&l(this.getMinMax(!1))),n=(0,r.g)(n)&&!isNaN(n)?n:+e.startOf(Date.now(),i),s=(0,r.g)(s)&&!isNaN(s)?s:+e.endOf(Date.now(),i)+1,this.min=Math.min(n,s-1),this.max=Math.max(n+1,s)}_getLabelBounds(){let t=this.getLabelTimestamps(),e=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],i=t[t.length-1]),{min:e,max:i}}buildTicks(){let t=this.options,e=t.time,i=t.ticks,n="labels"===i.source?this.getLabelTimestamps():this._generate();"ticks"===t.bounds&&n.length&&(this.min=this._userMin||n[0],this.max=this._userMax||n[n.length-1]);let s=this.min,a=this.max,o=(0,r.aN)(n,s,a);return this._unit=e.unit||(i.autoSkip?rH(e.minUnit,this.min,this.max,this._getLabelCapacity(s)):rW(this,o.length,e.minUnit,this.min,this.max)),this._majorUnit=i.major.enabled&&"year"!==this._unit?rU(this._unit):void 0,this.initOffsets(n),t.reverse&&o.reverse(),rY(this,o,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t){let e,i,n=0,s=0;this.options.offset&&t.length&&(e=this.getDecimalForValue(t[0]),n=1===t.length?1-e:(this.getDecimalForValue(t[1])-e)/2,i=this.getDecimalForValue(t[t.length-1]),s=1===t.length?
11i:(i-this.getDecimalForValue(t[t.length-2]))/2);let a=t.length<3?.5:.25;n=(0,r.E)(n,0,a),s=(0,r.E)(s,0,a),this._offsets={start:n,end:s,factor:1/(n+1+s)}}_generate(){let t,e;let i=this._adapter,n=this.min,s=this.max,a=this.options,o=a.time,l=o.unit||rH(o.minUnit,n,s,this._getLabelCapacity(n)),h=(0,r.v)(o.stepSize,1),u="week"===l&&o.isoWeekday,c=(0,r.x)(u)||!0===u,f={},p=n;if(c&&(p=+i.startOf(p,"isoWeek",u)),p=+i.startOf(p,c?"day":l),i.diff(s,n,l)>1e5*h)throw Error(n+" and "+s+" are too far apart with stepSize of "+h+" "+l);let d="data"===a.ticks.source&&this.getDataTimestamps();for(t=p,e=0;t<s;t=+i.add(t,h,l),e++)rG(f,t,d);return(t===s||"ticks"===a.bounds||1===e)&&rG(f,t,d),Object.keys(f).sort((t,e)=>t-e).map(t=>+t)}getLabelForValue(t){let e=this._adapter,i=this.options.time;return i.tooltipFormat?e.format(t,i.tooltipFormat):e.format(t,i.displayFormats.datetime)}_tickFormatFunction(t,e,i,n){let s=this.options,a=s.time.displayFormats,o=this._unit,l=this._majorUnit,h=o&&a[o],u=l&&a[l],c=i[e],f=l&&u&&c&&c.major,p=this._adapter.format(t,n||(f?u:h)),d=s.ticks.callback;return d?(0,r.C)(d,[p,e,i],this):p}generateTickLabels(t){let e,i,r;for(e=0,i=t.length;e<i;++e)(r=t[e]).label=this._tickFormatFunction(r.value,e,t)}getDecimalForValue(t){return null===t?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){let e=this._offsets,i=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+i)*e.factor)}getValueForPixel(t){let e=this._offsets,i=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+i*(this.max-this.min)}_getLabelSize(t){let e=this.options.ticks,i=this.ctx.measureText(t).width,n=(0,r.t)(this.isHorizontal()?e.maxRotation:e.minRotation),s=Math.cos(n),a=Math.sin(n),o=this._resolveTickFontOptions(0).size;return{w:i*s+o*a,h:i*a+o*s}}_getLabelCapacity(t){let e=this.options.time,i=e.displayFormats,r=i[e.unit]||i.millisecond,n=this._tickFormatFunction(t,0,rY(this,[t],this._majorUnit),r),s=this._getLabelSize(n),a=Math.floor(this.isHorizontal()?this.width/s.w:this.height/s.h)-1;return a>0?a:1}getDataTimestamps(){let t,e,i=this._cache.data||[];if(i.length)return i;let r=this.getMatchingVisibleMetas();if(this._normalized&&r.length)return this._cache.data=r[0].controller.getAllParsedValues(this);for(t=0,e=r.length;t<e;++t)i=i.concat(r[t].controller.getAllParsedValues(this));return this._cache.data=this.normalize(i)}getLabelTimestamps(){let t,e;let i=this._cache.labels||[];if(i.length)return i;let r=this.getLabels();for(t=0,e=r.length;t<e;++t)i.push(rV(this,r[t]));return this._cache.labels=this._normalized?i:this.normalize(i)}normalize(t){return(0,r._)(t.sort(rN))}}function r$(t,e,i){let n,s,a,o,l=0,h=t.length-1;i?(e>=t[l].pos&&e<=t[h].pos&&({lo:l,hi:h}=(0,r.Z)(t,"pos",e)),{pos:n,time:a}=t[l],{pos:s,time:o}
11=t[h]):(e>=t[l].time&&e<=t[h].time&&({lo:l,hi:h}=(0,r.Z)(t,"time",e)),{time:n,pos:a}=t[l],{time:s,pos:o}=t[h]);let u=s-n;return u?a+(o-a)*(e-n)/u:a}rX.id="time",rX.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};class rZ extends rX{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){let t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=r$(e,this.min),this._tableRange=r$(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){let e,i,r;let{min:n,max:s}=this,a=[],o=[];for(e=0,i=t.length;e<i;++e)(r=t[e])>=n&&r<=s&&a.push(r);if(a.length<2)return[{time:n,pos:0},{time:s,pos:1}];for(e=0,i=a.length;e<i;++e)Math.round((a[e+1]+a[e-1])/2)!==(r=a[e])&&o.push({time:r,pos:e/(i-1)});return o}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;let e=this.getDataTimestamps(),i=this.getLabelTimestamps();return t=e.length&&i.length?this.normalize(e.concat(i)):e.length?e:i,t=this._cache.all=t}getDecimalForValue(t){return(r$(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){let e=this._offsets,i=this.getDecimalForPixel(t)/e.factor-e.end;return r$(this._table,i*this._tableRange+this._minPos,!0)}}rZ.id="timeseries",rZ.defaults=rX.defaults},2454:function(t,e,i){"use strict";let r;/*!
12 * Chart.js v3.9.1
13 * https://www.chartjs.org
14 * (c) 2022 Chart.js Contributors
15 * Released under the MIT License
16 */function n(){}i.d(e,{$:function(){return ew},A:function(){return W},B:function(){return u},C:function(){return d},D:function(){return eV},E:function(){return ti},F:function(){return $},G:function(){return eg},H:function(){return B},I:function(){return tr},J:function(){return ey},K:function(){return ej},L:function(){return ek},M:function(){return eM},N:function(){return eE},O:function(){return ez},P:function(){return O},Q:function(){return m},R:function(){return tg},S:function(){return tv},T:function(){return F},U:function(){return eh},V:function(){return x},W:function(){return M},X:function(){return ix},Y:function(){return to},Z:function(){return ta},_:function(){return tf},a:function(){return eN},a0:function(){return J},a1:function(){return ik},a2:function(){return ic},a3:function(){return iP},a4:function(){return td},a5:function(){return iS},a6:function(){return iu},a7:function(){return eu},a8:function(){return A},a9:function(){return eU},aA:function(){return iI},aB:function(){return iR},aC:function(){return ty},aD:function(){return iB},aE:function(){return e_},aF:function(){return n},aG:function(){return K},aH:function(){return Y},aI:function(){return H},aJ:function(){return q},aK:function(){return G},aL:function(){return Z},aM:function(){return ev},aN:function(){return tl},aO:function(){return ts},aa:function(){return eW},ab:function(){return eG},ac:function(){return _},ad:function(){return s},ae:function(){return tm},af:function(){return iE},ag:function(){return eb},ah:function(){return T},ai:function(){return g},aj:function(){return D},ak:function(){return tn},al:function(){return eI},am:function(){return ih},an:function(){return iG},ao:function(){return iH},ap:function(){return iC},aq:function(){return iA},ar:function(){return iM},as:function(){return eS},at:function(){return eP},au:function(){return ex},av:function(){return eT},aw:function(){return eR},ax:function(){return eB},ay:function(){return iV},az:function(){return tt},b:function(){return o},c:function(){return eo},d:function(){return ed},e:function(){return tE},f:function(){return E},g:function(){return h},h:function(){return eH},i:function(){return l},j:function(){return C},k:function(){return a},l:function(){return tu},m:function(){return f},n:function(){return p},o:function(){return iO},p:function(){return te},q:function(){return tb},r:function(){return tp},s:function(){return V},t:function(){return X},u:function(){return tc},v:function(){return c},w:function(){return tx},x:function(){return U},y:function(){return e9},z:function(){return N}});let s=function(){let t=0;return function(){return t++}}();function a(t){return null==t}function o(t){if(Array.isArray&&Array.isArray(t))return!0;let e=Object.prototype.toString.call(t);return"[object"===e.slice(0,7)&&"Array]"===e.slice(-6)}function l(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}let h=t=>("number"==typeof t||t instanceof Number)&&isFinite(+t);function u(t,e){return h(t)?t:e}function c(t,e){return void 0===t?e:t}let f=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100:t/e,p=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function d(t,e,i){if(t&&"function"==typeof t.call)return t.apply(i,e)}function m(t,e,i,r){let n,s,a;if(o(t)){if(s=t.length,r)for(n=s-1;n>=0;n--)e.call(i,t[n],n);else for(n=0;n<s;n++)e.call(i,t[n],n)}else if(l(t))for(n=0,s=(a=Object.keys(t)).length;n<s;n++)e.call(i,t[a[n]],a[n])}function g(t,e){let i,r,n,s;if(!t||!e||t.length!==e.length)return!1;for(i=0,r=t.length;i<r;++i)if(n=t[i],s=e[i],n.datasetIndex!==s.datasetIndex||n.index!==s.index)return!1;return!0}function v(t){if(o(t))return t.map(v);if(l(t)){let e=Object.create(null),i=Object.keys(t),r=i.length,n=0;for(;n<r;++n)e[i[n]]=v(t[i[n]]);return e}return t}function y(t){return -1===["__proto__","prototype","constructor"].indexOf(t)}function b(t,e,i,r){if(!y(t))return;let n=e[t],s=i[t];l(n)&&l(s)?x(n,s,r):e[t]=v(s)}function x(t,e,i){let r=o(e)?e:[e],n=r.length;if(!l(t))return t;let s=(i=i||{}).merger||b;for(let a=0;a<n;
16++a){if(!l(e=r[a]))continue;let n=Object.keys(e);for(let r=0,a=n.length;r<a;++r)s(n[r],t,e,i)}return t}function _(t,e){return x(t,e,{merger:w})}function w(t,e,i){if(!y(t))return;let r=e[t],n=i[t];l(r)&&l(n)?_(r,n):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=v(n))}let k={"":t=>t,x:t=>t.x,y:t=>t.y};function E(t,e){return(k[e]||(k[e]=S(e)))(t)}function S(t){let e=P(t);return t=>{for(let i of e){if(""===i)break;t=t&&t[i]}return t}}function P(t){let e=t.split("."),i=[],r="";for(let t of e)(r+=t).endsWith("\\")?r=r.slice(0,-1)+".":(i.push(r),r="");return i}function M(t){return t.charAt(0).toUpperCase()+t.slice(1)}let C=t=>void 0!==t,A=t=>"function"==typeof t,T=(t,e)=>{if(t.size!==e.size)return!1;for(let i of t)if(!e.has(i))return!1;return!0};function D(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}let O=Math.PI,F=2*O,L=F+O,I=Number.POSITIVE_INFINITY,R=O/180,B=O/2,j=O/4,z=2*O/3,N=Math.log10,V=Math.sign;function H(t){let e=Math.round(t),i=Math.pow(10,Math.floor(N(t=G(t,e,t/1e3)?e:t))),r=t/i;return(r<=1?1:r<=2?2:r<=5?5:10)*i}function W(t){let e;let i=[],r=Math.sqrt(t);for(e=1;e<r;e++)t%e==0&&(i.push(e),i.push(t/e));return r===(0|r)&&i.push(r),i.sort((t,e)=>t-e).pop(),i}function U(t){return!isNaN(parseFloat(t))&&isFinite(t)}function G(t,e,i){return Math.abs(t-e)<i}function q(t,e){let i=Math.round(t);return i-e<=t&&i+e>=t}function Y(t,e,i){let r,n,s;for(r=0,n=t.length;r<n;r++)isNaN(s=t[r][i])||(e.min=Math.min(e.min,s),e.max=Math.max(e.max,s))}function X(t){return O/180*t}function $(t){return 180/O*t}function Z(t){if(!h(t))return;let e=1,i=0;for(;Math.round(t*e)/e!==t;)e*=10,i++;return i}function J(t,e){let i=e.x-t.x,r=e.y-t.y,n=Math.sqrt(i*i+r*r),s=Math.atan2(r,i);return s<-.5*O&&(s+=F),{angle:s,distance:n}}function K(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Q(t,e){return(t-e+L)%F-O}function tt(t){return(t%F+F)%F}function te(t,e,i,r){let n=tt(t),s=tt(e),a=tt(i),o=tt(s-n),l=tt(a-n),h=tt(n-s),u=tt(n-a);return n===s||n===a||r&&s===a||o>l&&h<u}function ti(t,e,i){return Math.max(e,Math.min(i,t))}function tr(t){return ti(t,-32768,32767)}function tn(t,e,i,r=1e-6){return t>=Math.min(e,i)-r&&t<=Math.max(e,i)+r}function ts(t,e,i){let r;i=i||(i=>t[i]<e);let n=t.length-1,s=0;for(;n-s>1;)i(r=s+n>>1)?s=r:n=r;return{lo:s,hi:n}}let ta=(t,e,i,r)=>ts(t,i,r?r=>t[r][e]<=i:r=>t[r][e]<i),to=(t,e,i)=>ts(t,i,r=>t[r][e]>=i);function tl(t,e,i){let r=0,n=t.length;for(;r<n&&t[r]<e;)r++;for(;n>r&&t[n-1]>i;)n--;return r>0||n<t.length?t.slice(r,n):t}let th=["push","pop","shift","splice","unshift"];function tu(t,e){if(t._chartjs){t._chartjs.listeners.push(e);return}Object.defineProperty(t,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[e]}}),th.forEach(e=>{let i="_onData"+M(e),r=t[e];Object.defineProperty(t,e,{configurable:!0,enumerable:!1,value(...e){let n=r.apply(this,e);return t._chartjs.listeners.forEach(t=>{"function"==typeof t[i]&&t[i](...e)}),n}})})}function tc(t,e){let i=t._chartjs;if(!i)return;let r=i.listeners,n=r.indexOf(e);-1!==n&&r.splice(n,1),r.length>0||(th.forEach(e=>{delete t[e]}),delete t._chartjs)}function tf(t){let e,i;let r=new Set;for(e=0,i=t.length;e<i;++e)r.add(t[e]);return r.size===i?t:Array.from(r)}let tp=function(){return"undefined"==typeof window?function(t){return t()}:window.requestAnimationFrame}();function td(t,e,i){let r=i||(t=>Array.prototype.slice.call(t)),n=!1,s=[];return function(...i){s=r(i),n||(n=!0,tp.call(window,()=>{n=!1,t.apply(e,s)}))}}function tm(t,e){let i;return function(...r){return e?(clearTimeout(i),i=setTimeout(t,e,r)):t.apply(this,r),e}}let tg=t=>"start"===t?"left":"end"===t?"right":"center",tv=(t,e,i)=>"start"===t?e:"end"===t?i:(e+i)/2,ty=(t,e,i,r)=>t===(r?"left":"right")?i:"center"===t?(e+i)/2:e;function tb(t,e,i){let r=e.length,n=0,s=r;if(t._sorted){let{iScale:a,_parsed:o}=t,l=a.axis,{min:h,max:u,minDefined:c,maxDefined:f}=a.getUserBounds();c&&(n=ti(Math.min(ta(o,a.axis,h).lo,i?r:ta(e,l,a.getPixelForValue(h)).lo),0,r-1)),s=f?ti(Math.max(ta(o,a.axis,u,!0).hi+1,i?0:ta(e,l,a.getPixelForValue(u),!0).hi+1),n,r)-n:r-n}return{start:n,count:s}}function tx(t){let{xScale:e,yScale:i,_scaleRanges:r}=t,n={xmin:e.min,xmax:e.max,ymin:i.min,ymax:i.max};if(!r)return t._scaleRanges=n,!0;let s=r.xmin!==e.min||r.xmax!==e.max||r.ymin!==i.min||r.ymax!==i.max;return Object.assign(r,n),s}let t_=t=>
160===t||1===t,tw=(t,e,i)=>-(Math.pow(2,10*(t-=1))*Math.sin((t-e)*F/i)),tk=(t,e,i)=>Math.pow(2,-10*t)*Math.sin((t-e)*F/i)+1,tE={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2),easeInQuint:t=>t*t*t*t*t,easeOutQuint:t=>(t-=1)*t*t*t*t+1,easeInOutQuint:t=>(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2),easeInSine:t=>-Math.cos(t*B)+1,easeOutSine:t=>Math.sin(t*B),easeInOutSine:t=>-.5*(Math.cos(O*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:-Math.pow(2,-10*t)+1,easeInOutExpo:t=>t_(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(-Math.pow(2,-10*(2*t-1))+2),easeInCirc:t=>t>=1?t:-(Math.sqrt(1-t*t)-1),easeOutCirc:t=>Math.sqrt(1-(t-=1)*t),easeInOutCirc:t=>(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1),easeInElastic:t=>t_(t)?t:tw(t,.075,.3),easeOutElastic:t=>t_(t)?t:tk(t,.075,.3),easeInOutElastic(t){let e=.1125,i=.45;return t_(t)?t:t<.5?.5*tw(2*t,e,i):.5+.5*tk(2*t-1,e,i)},easeInBack:t=>t*t*(2.70158*t-1.70158),easeOutBack:t=>(t-=1)*t*(2.70158*t+1.70158)+1,easeInOutBack(t){let e=1.70158;return(t/=.5)<1?t*t*(((e*=1.525)+1)*t-e)*.5:.5*((t-=2)*t*(((e*=1.525)+1)*t+e)+2)},easeInBounce:t=>1-tE.easeOutBounce(1-t),easeOutBounce(t){let e=7.5625,i=2.75;return t<.36363636363636365?e*t*t:t<2/i?e*(t-=1.5/i)*t+.75:t<2.5/i?e*(t-=2.25/i)*t+.9375:e*(t-=2.625/i)*t+.984375},easeInOutBounce:t=>t<.5?.5*tE.easeInBounce(2*t):.5*tE.easeOutBounce(2*t-1)+.5};/*!
17 * @kurkle/color v0.2.1
18 * https://github.com/kurkle/color#readme
19 * (c) 2022 Jukka Kurkela
20 * Released under the MIT License
21 */function tS(t){return t+.5|0}let tP=(t,e,i)=>Math.max(Math.min(t,i),e);function tM(t){return tP(tS(2.55*t),0,255)}function tC(t){return tP(tS(255*t),0,255)}function tA(t){return tP(tS(t/2.55)/100,0,1)}function tT(t){return tP(tS(100*t),0,100)}let tD={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},tO=[..."0123456789ABCDEF"],tF=t=>tO[15&t],tL=t=>tO[(240&t)>>4]+tO[15&t],tI=t=>(240&t)>>4==(15&t),tR=t=>tI(t.r)&&tI(t.g)&&tI(t.b)&&tI(t.a);function tB(t){var e,i=t.length;return"#"===t[0]&&(4===i||5===i?e={r:255&17*tD[t[1]],g:255&17*tD[t[2]],b:255&17*tD[t[3]],a:5===i?17*tD[t[4]]:255}:(7===i||9===i)&&(e={r:tD[t[1]]<<4|tD[t[2]],g:tD[t[3]]<<4|tD[t[4]],b:tD[t[5]]<<4|tD[t[6]],a:9===i?tD[t[7]]<<4|tD[t[8]]:255})),e}let tj=(t,e)=>t<255?e(t):"";function tz(t){var e=tR(t)?tF:tL;return t?"#"+e(t.r)+e(t.g)+e(t.b)+tj(t.a,e):void 0}let tN=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function tV(t,e,i){let r=e*Math.min(i,1-i),n=(e,n=(e+t/30)%12)=>i-r*Math.max(Math.min(n-3,9-n,1),-1);return[n(0),n(8),n(4)]}function tH(t,e,i){let r=(r,n=(r+t/60)%6)=>i-i*e*Math.max(Math.min(n,4-n,1),0);return[r(5),r(3),r(1)]}function tW(t,e,i){let r;let n=tV(t,1,.5);for(e+i>1&&(r=1/(e+i),e*=r,i*=r),r=0;r<3;r++)n[r]*=1-e-i,n[r]+=e;return n}function tU(t,e,i,r,n){return t===n?(e-i)/r+(e<i?6:0):e===n?(i-t)/r+2:(t-e)/r+4}function tG(t){let e,i,r;let n=255,s=t.r/n,a=t.g/n,o=t.b/n,l=Math.max(s,a,o),h=Math.min(s,a,o),u=(l+h)/2;return l!==h&&(r=l-h,i=u>.5?r/(2-l-h):r/(l+h),e=60*(e=tU(s,a,o,r,l))+.5),[0|e,i||0,u]}function tq(t,e,i,r){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,i,r)).map(tC)}function tY(t,e,i){return tq(tV,t,e,i)}function tX(t,e,i){return tq(tW,t,e,i)}function t$(t,e,i){return tq(tH,t,e,i)}function tZ(t){return(t%360+360)%360}function tJ(t){let e;let i=tN.exec(t),r=255;if(!i)return;i[5]!==e&&(r=i[6]?tM(+i[5]):tC(+i[5]));let n=tZ(+i[2]),s=+i[3]/100,a=+i[4]/100;return{r:(e="hwb"===i[1]?tX(n,s,a):"hsv"===i[1]?t$(n,s,a):tY(n,s,a))[0],g:e[1],b:e[2],a:r}}function tK(t,e){var i=tG(t);i[0]=tZ(i[0]+e),i=tY(i),t.r=i[0],t.g=i[1],t.b=i[2]}function tQ(t){if(!t)return;let e=tG(t),i=e[0],r=tT(e[1]),n=tT(e[2]);return t.a<255?`hsla(${i}, ${r}%, ${n}%, ${tA(t.a)})`:`hsl(${i}, ${r}%, ${n}%)`}let t0={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},t1={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",K
21ocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function t2(){let t,e,i,r,n;let s={},a=Object.keys(t1),o=Object.keys(t0);for(t=0;t<a.length;t++){for(e=0,r=n=a[t];e<o.length;e++)i=o[e],n=n.replace(i,t0[i]);i=parseInt(t1[r],16),s[n]=[i>>16&255,i>>8&255,255&i]}return s}function t3(t){r||((r=t2()).transparent=[0,0,0,0]);let e=r[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}let t5=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function t4(t){let e,i,r;let n=t5.exec(t),s=255;if(n){if(n[7]!==e){let t=+n[7];s=n[8]?tM(t):tP(255*t,0,255)}return e=+n[1],i=+n[3],r=+n[5],e=255&(n[2]?tM(e):tP(e,0,255)),i=255&(n[4]?tM(i):tP(i,0,255)),{r:e,g:i,b:r=255&(n[6]?tM(r):tP(r,0,255)),a:s}}}function t6(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${tA(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}let t8=t=>
21t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,t9=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function t7(t,e,i){let r=t9(tA(t.r)),n=t9(tA(t.g)),s=t9(tA(t.b));return{r:tC(t8(r+i*(t9(tA(e.r))-r))),g:tC(t8(n+i*(t9(tA(e.g))-n))),b:tC(t8(s+i*(t9(tA(e.b))-s))),a:t.a+i*(e.a-t.a)}}function et(t,e,i){if(t){let r=tG(t);r[e]=Math.max(0,Math.min(r[e]+r[e]*i,0===e?360:1)),r=tY(r),t.r=r[0],t.g=r[1],t.b=r[2]}}function ee(t,e){return t?Object.assign(e||{},t):t}function ei(t){var e={r:0,g:0,b:0,a:255};return Array.isArray(t)?t.length>=3&&(e={r:t[0],g:t[1],b:t[2],a:255},t.length>3&&(e.a=tC(t[3]))):(e=ee(t,{r:0,g:0,b:0,a:1})).a=tC(e.a),e}function er(t){return"r"===t.charAt(0)?t4(t):tJ(t)}class en{constructor(t){let e;if(t instanceof en)return t;let i=typeof t;"object"===i?e=ei(t):"string"===i&&(e=tB(t)||t3(t)||er(t)),this._rgb=e,this._valid=!!e}get valid(){return this._valid}get rgb(){var t=ee(this._rgb);return t&&(t.a=tA(t.a)),t}set rgb(t){this._rgb=ei(t)}rgbString(){return this._valid?t6(this._rgb):void 0}hexString(){return this._valid?tz(this._rgb):void 0}hslString(){return this._valid?tQ(this._rgb):void 0}mix(t,e){if(t){let i;let r=this.rgb,n=t.rgb,s=e===i?.5:e,a=2*s-1,o=r.a-n.a,l=((a*o==-1?a:(a+o)/(1+a*o))+1)/2;i=1-l,r.r=255&l*r.r+i*n.r+.5,r.g=255&l*r.g+i*n.g+.5,r.b=255&l*r.b+i*n.b+.5,r.a=s*r.a+(1-s)*n.a,this.rgb=r}return this}interpolate(t,e){return t&&(this._rgb=t7(this._rgb,t._rgb,e)),this}clone(){return new en(this.rgb)}alpha(t){return this._rgb.a=tC(t),this}clearer(t){let e=this._rgb;return e.a*=1-t,this}greyscale(){let t=this._rgb,e=tS(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){let e=this._rgb;return e.a*=1+t,this}negate(){let t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return et(this._rgb,2,t),this}darken(t){return et(this._rgb,2,-t),this}saturate(t){return et(this._rgb,1,t),this}desaturate(t){return et(this._rgb,1,-t),this}rotate(t){return tK(this._rgb,t),this}}function es(t){return new en(t)}function ea(t){if(t&&"object"==typeof t){let e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function eo(t){return ea(t)?t:es(t)}function el(t){return ea(t)?t:es(t).saturate(.5).darken(.1).hexString()}let eh=Object.create(null),eu=Object.create(null);function ec(t,e){if(!e)return t;let i=e.split(".");for(let e=0,r=i.length;e<r;++e){let r=i[e];t=t[r]||(t[r]=Object.create(null))}return t}function ef(t,e,i){return"string"==typeof e?x(ec(t,e),i):x(ec(t,""),e)}class ep{constructor(t){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=t=>t.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(t,e)=>el(e.backgroundColor),this.hoverBorderColor=(t,e)=>el(e.borderColor),this.hoverColor=(t,e)=>el(e.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={}
21,this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t)}set(t,e){return ef(this,t,e)}get(t){return ec(this,t)}describe(t,e){return ef(eu,t,e)}override(t,e){return ef(eh,t,e)}route(t,e,i,r){let n=ec(this,t),s=ec(this,i),a="_"+e;Object.defineProperties(n,{[a]:{value:n[e],writable:!0},[e]:{enumerable:!0,get(){let t=this[a],e=s[r];return l(t)?Object.assign({},e,t):c(t,e)},set(t){this[a]=t}}})}}var ed=new ep({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function em(t){return!t||a(t.size)||a(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}function eg(t,e,i,r,n){let s=e[n];return s||(s=e[n]=t.measureText(n).width,i.push(n)),s>r&&(r=s),r}function ev(t,e,i,r){let n,s,a,l,h;let u=(r=r||{}).data=r.data||{},c=r.garbageCollect=r.garbageCollect||[];r.font!==e&&(u=r.data={},c=r.garbageCollect=[],r.font=e),t.save(),t.font=e;let f=0,p=i.length;for(n=0;n<p;n++)if(null!=(l=i[n])&&!0!==o(l))f=eg(t,u,c,f,l);else if(o(l))for(s=0,a=l.length;s<a;s++)null==(h=l[s])||o(h)||(f=eg(t,u,c,f,h));t.restore();let d=c.length/2;if(d>i.length){for(n=0;n<d;n++)delete u[c[n]];c.splice(0,d)}return f}function ey(t,e,i){let r=t.currentDevicePixelRatio,n=0!==i?Math.max(i/2,.5):0;return Math.round((e-n)*r)/r+n}function eb(t,e){(e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore()}function ex(t,e,i,r){e_(t,e,i,r,null)}function e_(t,e,i,r,n){let s,a,o,l,h,u;let c=e.pointStyle,f=e.rotation,p=e.radius,d=(f||0)*R;if(c&&"object"==typeof c&&("[object HTMLImageElement]"===(s=c.toString())||"[object HTMLCanvasElement]"===s)){t.save(),t.translate(i,r),t.rotate(d),t.drawImage(c,-c.width/2,-c.height/2,c.width,c.height),t.restore();return}if(!isNaN(p)&&!(p<=0)){switch(t.beginPath(),c){default:n?t.ellipse(i,r,n/2,p,0,0,F):t.arc(i,r,p,0,F),t.closePath();break;case"triangle":t.moveTo(i+Math.sin(d)*p,r-Math.cos(d)*p),d+=z,t.lineTo(i+Math.sin(d)*p,r-Math.cos(d)*p),d+=z,t.lineTo(i+Math.sin(d)*p,r-Math.cos(d)*p),t.closePath();break;case"rectRounded":h=.516*p,a=Math.cos(d+j)*(l=p-h),o=Math.sin(d+j)*l,t.arc(i-a,r-o,h,d-O,d-B),t.arc(i+o,r-a,h,d-B,d),t.arc(i+a,r+o,h,d,d+B),t.arc(i-o,r+a,h,d+B,d+O),t.closePath();break;case"rect":if(!f){l=Math.SQRT1_2*p,u=n?n/2:l,t.rect(i-u,r-l,2*u,2*l);break}d+=j;case"rectRot":a=Math.cos(d)*p,o=Math.sin(d)*p,t.moveTo(i-a,r-o),t.lineTo(i+o,r-a),t.lineTo(i+a,r+o),t.lineTo(i-o,r+a),t.closePath();break;case"crossRot":d+=j;case"cross":a=Math.cos(d)*p,o=Math.sin(d)*p,t.moveTo(i-a,r-o),t.lineTo(i+a,r+o),t.moveTo(i+o,r-a),t.lineTo(i-o,r+a);break;case"star":a=Math.cos(d)*p,o=Math.sin(d)*p,t.moveTo(i-a,r-o),t.lineTo(i+a,r+o),t.moveTo(i+o,r-a),t.lineTo(i-o,r+a),d+=j,a=Math.cos(d)*p,o=Math.sin(d)*p,t.moveTo(i-a,r-o),t.lineTo(i+a,r+o),t.moveTo(i+o,r-a),t.lineTo(i-o,r+a);break;case"line":a=n?n/2:Math.cos(d)*p,o=Math.sin(d)*p,t.moveTo(i-a,r-o),t.lineTo(i+a,r+o);break;case"dash":t.moveTo(i,r),t.lineTo(i+Math.cos(d)*p,r+Math.sin(d)*p)}t.fill(),e.borderWidth>0&&t.stroke()}}function ew(t,e,i){return i=i||.5,!e||t&&t.x>e.left-i&&t.x<e.right+i&&t.y>e.top-i&&t.y<e.bottom+i}function ek(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function eE(t){t.restore()}function eS(t,e,i,r,n){if(!e)return t.lineTo(i.x,i.y);if("middle"===n){let r=(e.x+i.x)/2;t.lineTo(r,e.y),t.lineTo(r,i.y)}else"after"===n!=!!r?t.lineTo(e.x,i.y):t.lineTo(i.x,e.y);t.lineTo(i.x,i.y)}function eP(t,e,i,r){if(!e)return t.lineTo(i.x,i.y);t.bezierCurveTo(r?e.cp1x:e.cp2x,r?e.cp1y:e.cp2y,r?i.cp2x:i.cp1x,r?i.cp2y:i.cp1y,i.x,i.y)}function eM(t,e,i,r,n,s={}){let l,h;let u=o(e)?e:[e],c=s.strokeWidth>0&&""!==s.strokeColor;for(t.save(),t.font=n.string,eC(t,s),l=0;l<u.length;++l)h=u[l],c&&(s.strokeColor&&(t.strokeStyle=s.strokeColor),a(s.strokeWidth)||(t.lineWidth=s.strokeWidth),t.strokeText(h,i,r,s.maxWidth)),t.fillText(h,i,r,s.maxWidth),eA(t,i,r,h,s),r+=n.lineHeight;t.restore()}function eC(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),a(e.rotation)||t.rotate(e.rotation),e.color&&(t.fillStyle=e.color),e.textAlign&&(t.textAlign=e.textAlign),e.textBaseline&&(t.textBaseline=e.textBaseline)}function eA(t,e,i,r,n){if(n.strikethrough||n.underline){let s=t.measureText(r),a=e-s.actualBoundingBoxLeft,o=e+s.actualBoundingBoxRight,l=i-s.actualBoundingBoxAscent,h=i+s.actualBoundingBoxDescent,u=n.strikethrough?(l+h)/2:h;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=n.decorationWidth||2,t.moveTo(a,u),t.lineTo(o,u),t.stroke()}}function eT(t,e){let{x:i,y:r,w:n,h:s,radius:a}=e;t.arc(i+a.topLeft,r+a.topLeft,a.topLeft,-B,O,!0),t.lineTo(i,r+s-a.bottomLeft),t.arc(i+a.bottomLeft,r+s-a.bottomLeft,a.bottomLeft,O,B,!0),t.lineTo(i+n-a.bottomRight,r+s),t.arc(i+n-a.bottomRight,r+s-a.bottomRight,a.bottomRight,B,0,!0),t.lineTo(i+n,r+a.topRight),t.arc(i+n-a.topRight,r+a.topRight,a.topRight,0,-B,!0),t.lineTo(i+a.topLeft,r)}let eD=new RegExp(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/),eO=new RegExp(/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/);function eF(t,e){let i=(""+t).match(eD);if(!i||"normal"===i[1])return 1.2*e;switch(t=+i[2],i[3]){case"px":return t;case"%":t/=100}return e*t}let eL=t=>+t||0;function eI(t,e){let i={},r=l(e),n=r?Object.keys(e):e,s=l(t)?r?i=>c(t[i],t[e[i]]):e=>t[e]:()=>t;for(let t of n)i[t]=eL(s(t));return i}function eR(t){return eI(t,{top:"y",right:"x",bottom:"y",left:"x"})}function eB(t){return eI(t,["topLeft","topRight","bottomLeft","bottomRight"])}function ej(t){let e=eR(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function ez(t,e){t=t||{},e=e||ed.font;let i=c(t.size,e.size);"string"==typeof i&&(i=parseInt(i,10));let r=c(t.style,e.style);r&&!(""+r).match(eO)&&(console.warn('Invalid font style specified: "'+r+'"'),r="");let n={family:c(t.family,e.family),lineHeight:eF(c(t.lineHeight,e.lineHeight),i),size:i,style:r,weight:c(t.weight,e.weight),string:""};return n.string=em(n),n}function eN(t,e,i,r){let n,s,a,l=!0;for(n=0,s=t.length;n<s;++n)if(void 0!==(a=t[n])&&(void 0!==e&&"function"==typeof a&&(a=a(e),l=!1),void 0!==i&&o(a)&&(a=a[i%a.length],l=!1),void 0!==a))return r&&!l&&(r.cacheable=!1),a}function eV(t,e,i){let{min:r,max:n}=t,s=p(e,(n-r)/2),a=(t,e)=>i&&0===t?0:t+e;return{min:a(r,-Math.abs(s)),max:a(n,s)}}function eH(t,e){return Object.assign(Object.create(t),e)}function eW(t,e=[""],i=t,r,n=()=>t[0]){return C(r)||(r=e4("_fallback",t)),new Proxy({[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:i,_fallback:r,_getTarget:n,override:n=>eW([n,...t],e,i,r)},{deleteProperty:(e,i)=>(delete e[i],delete e._keys,delete t[0][i],!0),get:(i,r)=>eX(i,r,()=>e5(r,e,t,i)),getOwnPropertyDescriptor:(t,e)=>Reflect.getOwnPropertyDescriptor(t._scopes[0],e),getPrototypeOf:()=>Reflect.getPrototypeOf(t[0]),has:(t,e)=>e6(t).includes(e),ownKeys:t=>e6(t),set(t,e,i){let r=t._storage||(t._storage=n());return t[e]=r[e]=i,delete t._keys,!0}})}function eU(t,e,i,r){return new Proxy({_cacheable:!1,_proxy:t,_context:e,_subProxy:i,_stack:new Set,_descriptors:eG(t,r),setContext:e=>eU(t,e,i,r),override:n=>eU(t.override(n),e,i,r)},{deleteProperty:(e,i)=>(delete e[i],delete t[i],!0),get:(t,e,i)=>eX(t,e,()=>e$(t,e,i)),getOwnPropertyDescriptor:(e,i)=>e._descriptors.allKeys?Reflect.has(t,i)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,i),getPrototypeOf:()=>Reflect.getPrototypeOf(t),has:(e,i)=>Reflect.has(t,i),ownKeys:()=>Reflect.ownKeys(t),set:(e,i,r)=>(t[i]=r,delete e[i],!0)})}function eG(t,e={scriptable:!0,indexable:!0}){let{_scriptable:i=e.scriptable,_indexable:r=e.indexable,_allKeys:n=e.allKeys}=t;return{allKeys:n,scriptable:i,indexable:r,isScriptable:A(i)?i:()=>i,isIndexable:A(r)?r:()=>r}}let eq=(t,e)=>t?t+M(e):e,eY=(t,e)=>l(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function eX(t,e,i){if(Object.prototype.hasOwnProperty.call(t,e))return t[e];let r=i();return t[e]=r,r}function e$(t,e,i){let{_proxy:r,_context:n,_subProxy:s,_descriptors:a}=t,l=r[e];return A(l)&&a.isScriptable(e)&&(l=eZ(e,l,t,i)),o(l)&&l.length&&(l=eJ(e,l,t,a.isIndexable)),eY(e,l)&&(l=eU(l,n,s&&s[e],a)),l}function eZ(t,e,i,r){let{_proxy:n,_context:s,_subProxy:a,_stack:o}=i;if(o.has(t))throw Error("Recursion detected: "+Array.from(o).join("->")+"->"+t);return o.add(t),e=e(s,a||r),o.delete(t),eY(t,e)&&(e=e1(n._scopes,n,t,e)),e}function eJ(t,e,i,r){let{_proxy:n,_context:s,_subProxy:a,_descriptors:o}=i;if(C(s.index)&&r(t))e=e[s.index%e.length];else if(l(e[0])){let i=e,r=n._scopes.filter(t=>t!==i);for(let l of(e=[],i)){let i=e1(r,n,t,l);e.push(eU(i,s,a&&a[t],o))}}return e}function eK(t,e,i){return A(t)?t(e,i):t}let eQ=(t,e)=>!0===t?e:"string"==typeof t?E(e,t):void 0;function e0(t,e,i,r,n){for(let s of e){let e=eQ(i,s);if(e){t.add(e);let s=eK(e._fallback,i,n);if(C(s)&&s!==i&&s!==r)return s}else if(!1===e&&C(r)&&i!==r)return null}return!1}function e1(t,e,i,r){let n=e._rootScopes,s=eK(e._fallback,i,r),a=[...t,...n],o=new Set;o.add(r);let l=e2(o,a,i,s||i,r);return!(null===l||C(s)&&s!==i&&null===(l=e2(o,a,s,l,r)))&&eW(Array.from(o),[""],n,s,()=>e3(e,i,r))}function e2(t,e,i,r,n){for(;i;)i=e0(t,e,i,r,n);return i}function e3(t,e,i){let r=t._getTarget();e in r||(r[e]={});let n=r[e];return o(n)&&l(i)?i:n}function e5(t,e,i,r){let n;for(let s of e)if(C(n=e4(eq(s,t),i)))return eY(t,n)?e1(i,r,t,n):n}function e4(t,e){for(let i of e){if(!i)continue;let e=i[t];if(C(e))return e}}function e6(t){let e=t._keys;return e||(e=t._keys=e8(t._scopes)),e}function e8(t){let e=new Set;for(let i of t)for(let t of Object.keys(i).filter(t=>!t.startsWith("_")))e.add(t);return Array.from(e)}function e9(t,e,i,r){let n,s,a,o;let{iScale:l}=t,{key:h="r"}=this._parsing,u=Array(r);for(n=0,s=r;n<s;++n)o=e[a=n+i],u[n]={r:l.parse(E(o,h),a)};return u}let e7=Number.EPSILON||1e-14,it=(t,e)=>e<t.length&&!t[e].skip&&t[e],ie=t=>"x"===t?"y":"x";
21function ii(t,e,i,r){let n=t.skip?e:t,s=e,a=i.skip?e:i,o=K(s,n),l=K(a,s),h=o/(o+l),u=l/(o+l);h=isNaN(h)?0:h,u=isNaN(u)?0:u;let c=r*h,f=r*u;return{previous:{x:s.x-c*(a.x-n.x),y:s.y-c*(a.y-n.y)},next:{x:s.x+f*(a.x-n.x),y:s.y+f*(a.y-n.y)}}}function ir(t,e,i){let r,n,s,a,o;let l=t.length,h=it(t,0);for(let u=0;u<l-1;++u)if(o=h,h=it(t,u+1),o&&h){if(G(e[u],0,e7)){i[u]=i[u+1]=0;continue}(a=Math.pow(r=i[u]/e[u],2)+Math.pow(n=i[u+1]/e[u],2))<=9||(s=3/Math.sqrt(a),i[u]=r*s*e[u],i[u+1]=n*s*e[u])}}function is(t,e,i="x"){let r,n,s;let a=ie(i),o=t.length,l=it(t,0);for(let h=0;h<o;++h){if(n=s,s=l,l=it(t,h+1),!s)continue;let o=s[i],u=s[a];n&&(r=(o-n[i])/3,s[`cp1${i}`]=o-r,s[`cp1${a}`]=u-r*e[h]),l&&(r=(l[i]-o)/3,s[`cp2${i}`]=o+r,s[`cp2${a}`]=u+r*e[h])}}function ia(t,e="x"){let i,r,n;let s=ie(e),a=t.length,o=Array(a).fill(0),l=Array(a),h=it(t,0);for(i=0;i<a;++i)if(r=n,n=h,h=it(t,i+1),n){if(h){let t=h[e]-n[e];o[i]=0!==t?(h[s]-n[s])/t:0}l[i]=r?h?V(o[i-1])!==V(o[i])?0:(o[i-1]+o[i])/2:o[i-1]:o[i]}ir(t,o,l),is(t,l,e)}function io(t,e,i){return Math.max(Math.min(t,i),e)}function il(t,e){let i,r,n,s,a;let o=ew(t[0],e);for(i=0,r=t.length;i<r;++i)a=s,s=o,o=i<r-1&&ew(t[i+1],e),s&&(n=t[i],a&&(n.cp1x=io(n.cp1x,e.left,e.right),n.cp1y=io(n.cp1y,e.top,e.bottom)),o&&(n.cp2x=io(n.cp2x,e.left,e.right),n.cp2y=io(n.cp2y,e.top,e.bottom)))}function ih(t,e,i,r,n){let s,a,o,l;if(e.spanGaps&&(t=t.filter(t=>!t.skip)),"monotone"===e.cubicInterpolationMode)ia(t,n);else{let i=r?t[t.length-1]:t[0];for(s=0,a=t.length;s<a;++s)l=ii(i,o=t[s],t[Math.min(s+1,a-(r?0:1))%a],e.tension),o.cp1x=l.previous.x,o.cp1y=l.previous.y,o.cp2x=l.next.x,o.cp2y=l.next.y,i=o}e.capBezierPoints&&il(t,i)}function iu(){return"undefined"!=typeof window&&"undefined"!=typeof document}function ic(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function ip(t,e,i){let r;return"string"==typeof t?(r=parseInt(t,10),-1!==t.indexOf("%")&&(r=r/100*e.parentNode[i])):r=t,r}let id=t=>window.getComputedStyle(t,null);function im(t,e){return id(t).getPropertyValue(e)}let ig=["top","right","bottom","left"];function iv(t,e,i){let r={};i=i?"-"+i:"";for(let n=0;n<4;n++){let s=ig[n];r[s]=parseFloat(t[e+"-"+s+i])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}let iy=(t,e,i)=>(t>0||e>0)&&(!i||!i.shadowRoot);function ib(t,e){let i,r;let n=t.touches,s=n&&n.length?n[0]:t,{offsetX:a,offsetY:o}=s,l=!1;if(iy(a,o,t.target))i=a,r=o;else{let t=e.getBoundingClientRect();i=s.clientX-t.left,r=s.clientY-t.top,l=!0}return{x:i,y:r,box:l}}function ix(t,e){if("native"in t)return t;let{canvas:i,currentDevicePixelRatio:r}=e,n=id(i),s="border-box"===n.boxSizing,a=iv(n,"padding"),o=iv(n,"border","width"),{x:l,y:h,box:u}=ib(t,i),c=a.left+(u&&o.left),f=a.top+(u&&o.top),{width:p,height:d}=e;return s&&(p-=a.width+o.width,d-=a.height+o.height),{x:Math.round((l-c)/p*i.width/r),y:Math.round((h-f)/d*i.height/r)}}function i_(t,e,i){let r,n;if(void 0===e||void 0===i){let s=ic(t);if(s){let t=s.getBoundingClientRect(),a=id(s),o=iv(a,"border","width"),l=iv(a,"padding");e=t.width-l.width-o.width,i=t.height-l.height-o.height,r=ip(a.maxWidth,s,"clientWidth"),n=ip(a.maxHeight,s,"clientHeight")}else e=t.clientWidth,i=t.clientHeight}return{width:e,height:i,maxWidth:r||I,maxHeight:n||I}}let iw=t=>Math.round(10*t)/10;function ik(t,e,i,r){let n=id(t),s=iv(n,"margin"),a=ip(n.maxWidth,t,"clientWidth")||I,o=ip(n.maxHeight,t,"clientHeight")||I,l=i_(t,e,i),{width:h,height:u}=l;if("content-box"===n.boxSizing){let t=iv(n,"border","width"),e=iv(n,"padding");h-=e.width+t.width,u-=e.height+t.height}return h=Math.max(0,h-s.width),u=Math.max(0,r?Math.floor(h/r):u-s.height),h=iw(Math.min(h,a,l.maxWidth)),u=iw(Math.min(u,o,l.maxHeight)),h&&!u&&(u=iw(h/2)),{width:h,height:u}}function iE(t,e,i){let r=e||1,n=Math.floor(t.height*r),s=Math.floor(t.width*r);t.height=n/r,t.width=s/r;let a=t.canvas;return a.style&&(i||!a.style.height&&!a.style.width)&&(a.style.height=`${t.height}px`,a.style.width=`${t.width}px`),(t.currentDevicePixelRatio!==r||a.height!==n||a.width!==s)&&(t.currentDevicePixelRatio=r,a.height=n,a.width=s,t.ctx.setTransform(r,0,0,r,0,0),!0)}let iS=function(){let t=!1;
21try{let e={get passive(){return t=!0,!1}};window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(t){}return t}();function iP(t,e){let i=im(t,e),r=i&&i.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function iM(t,e,i,r){return{x:t.x+i*(e.x-t.x),y:t.y+i*(e.y-t.y)}}function iC(t,e,i,r){return{x:t.x+i*(e.x-t.x),y:"middle"===r?i<.5?t.y:e.y:"after"===r?i<1?t.y:e.y:i>0?e.y:t.y}}function iA(t,e,i,r){let n={x:t.cp2x,y:t.cp2y},s={x:e.cp1x,y:e.cp1y},a=iM(t,n,i),o=iM(n,s,i),l=iM(s,e,i),h=iM(a,o,i),u=iM(o,l,i);return iM(h,u,i)}let iT=new Map;function iD(t,e){let i=t+JSON.stringify(e=e||{}),r=iT.get(i);return r||(r=new Intl.NumberFormat(t,e),iT.set(i,r)),r}function iO(t,e,i){return iD(e,i).format(t)}let iF=function(t,e){return{x:i=>t+t+e-i,setWidth(t){e=t},textAlign:t=>"center"===t?t:"right"===t?"left":"right",xPlus:(t,e)=>t-e,leftForLtr:(t,e)=>t-e}},iL=function(){return{x:t=>t,setWidth(t){},textAlign:t=>t,xPlus:(t,e)=>t+e,leftForLtr:(t,e)=>t}};function iI(t,e,i){return t?iF(e,i):iL()}function iR(t,e){let i,r;("ltr"===e||"rtl"===e)&&(r=[(i=t.canvas.style).getPropertyValue("direction"),i.getPropertyPriority("direction")],i.setProperty("direction",e,"important"),t.prevTextDirection=r)}function iB(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function ij(t){return"angle"===t?{between:te,compare:Q,normalize:tt}:{between:tn,compare:(t,e)=>t-e,normalize:t=>t}}function iz({start:t,end:e,count:i,loop:r,style:n}){return{start:t%i,end:e%i,loop:r&&(e-t+1)%i==0,style:n}}function iN(t,e,i){let r,n;let{property:s,start:a,end:o}=i,{between:l,normalize:h}=ij(s),u=e.length,{start:c,end:f,loop:p}=t;if(p){for(c+=u,f+=u,r=0,n=u;r<n&&l(h(e[c%u][s]),a,o);++r)c--,f--;c%=u,f%=u}return f<c&&(f+=u),{start:c,end:f,loop:p,style:t.style}}function iV(t,e,i){let r,n,s;if(!i)return[t];let{property:a,start:o,end:l}=i,h=e.length,{compare:u,between:c,normalize:f}=ij(a),{start:p,end:d,loop:m,style:g}=iN(t,e,i),v=[],y=!1,b=null,x=()=>c(o,s,r)&&0!==u(o,s),_=()=>0===u(l,r)||c(l,s,r),w=()=>y||x(),k=()=>!y||_();for(let t=p,i=p;t<=d;++t)(n=e[t%h]).skip||(r=f(n[a]))===s||(y=c(r,o,l),null===b&&w()&&(b=0===u(r,o)?t:i),null!==b&&k()&&(v.push(iz({start:b,end:t,loop:m,count:h,style:g})),b=null),i=t,s=r);return null!==b&&v.push(iz({start:b,end:d,loop:m,count:h,style:g})),v}function iH(t,e){let i=[],r=t.segments;for(let n=0;n<r.length;n++){let s=iV(r[n],t.points,e);s.length&&i.push(...s)}return i}function iW(t,e,i,r){let n=0,s=e-1;if(i&&!r)for(;n<e&&!t[n].skip;)n++;for(;n<e&&t[n].skip;)n++;for(n%=e,i&&(s+=n);s>n&&t[s%e].skip;)s--;return{start:n,end:s%=e}}function iU(t,e,i,r){let n;let s=t.length,a=[],o=e,l=t[e];for(n=e+1;n<=i;++n){let i=t[n%s];i.skip||i.stop?l.skip||(r=!1,a.push({start:e%s,end:(n-1)%s,loop:r}),e=o=i.stop?n:null):(o=n,l.skip&&(e=n)),l=i}return null!==o&&a.push({start:e%s,end:o%s,loop:r}),a}function iG(t,e){let i=t.points,r=t.options.spanGaps,n=i.length;if(!n)return[];let s=!!t._loop,{start:a,end:o}=iW(i,n,s,r);if(!0===r)return iq(t,[{start:a,end:o,loop:s}],i,e);let l=o<a?o+n:o,h=!!t._fullLoop&&0===a&&o===n-1;return iq(t,iU(i,a,l,h),i,e)}function iq(t,e,i,r){return r&&r.setContext&&i?iY(t,e,i,r):e}function iY(t,e,i,r){let n=t._chart.getContext(),s=iX(t.options),{_datasetIndex:a,options:{spanGaps:o}}=t,l=i.length,h=[],u=s,c=e[0].start,f=c;function p(t,e,r,n){let s=o?-1:1;if(t!==e){for(t+=l;i[t%l].skip;)t-=s;for(;i[e%l].skip;)e+=s;t%l!=e%l&&(h.push({start:t%l,end:e%l,loop:r,style:n}),u=n,c=e%l)}}for(let t of e){let e;let s=i[(c=o?c:t.start)%l];for(f=c+1;f<=t.end;f++){let o=i[f%l];i$(e=iX(r.setContext(eH(n,{type:"segment",p0:s,p1:o,p0DataIndex:(f-1)%l,p1DataIndex:f%l,datasetIndex:a}))),u)&&p(c,f-1,t.loop,u),s=o,u=e}c<f-1&&p(c,f-1,t.loop,u)}return h}function iX(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function i$(t,e){return e&&JSON.stringify(t)!==JSON.stringify(e)}},9048:function(t,e,i){"use strict";let r,n,s,a,o;i.d(e,{V:function(){return t2}});var l=i(7294),h=i.t(l,2),u=i(8844),c=i(8287),f=i(1813),p=i(933),d=i(448
210),m=i(4924),g=i(2047),v=i(7524),y=i(8657),b=i(3),x=i(9264),_=((r=_||{})[r.Forwards=0]="Forwards",r[r.Backwards=1]="Backwards",r);function w(){let t=(0,l.useRef)(0);return(0,x.s)("keydown",e=>{"Tab"===e.key&&(t.current=e.shiftKey?1:0)},!0),t}var k=i(2308),E=i(8961);function S(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return(0,l.useMemo)(()=>(0,E.r)(...e),[...e])}var P=i(5508);function M(t,e,i,r){let n=(0,P.E)(i);(0,l.useEffect)(()=>{function i(t){n.current(t)}return(t=null!=t?t:window).addEventListener(e,i,r),()=>t.removeEventListener(e,i,r)},[t,e,r])}var C=i(1291),A=i(7543),T=i(3285);function D(t){function e(){"loading"!==document.readyState&&(t(),document.removeEventListener("DOMContentLoaded",e))}"undefined"!=typeof document&&(document.addEventListener("DOMContentLoaded",e),e())}function O(t){let e=(0,b.z)(t),i=(0,l.useRef)(!1);(0,l.useEffect)(()=>(i.current=!1,()=>{i.current=!0,(0,C.Y)(()=>{i.current&&e()})}),[e])}function F(t){if(!t)return new Set;if("function"==typeof t)return new Set(t());let e=new Set;for(let i of t.current)i.current instanceof HTMLElement&&e.add(i.current);return e}let L="div";var I=((n=I||{})[n.None=1]="None",n[n.InitialFocus=2]="InitialFocus",n[n.TabLock=4]="TabLock",n[n.FocusLock=8]="FocusLock",n[n.RestoreFocus=16]="RestoreFocus",n[n.All=30]="All",n);function R(t,e){let i=(0,l.useRef)(null),r=(0,f.T)(i,e),{initialFocus:n,containers:s,features:a=30,...o}=t;(0,g.H)()||(a=1);let h=S(i);N({ownerDocument:h},!!(16&a));let p=V({ownerDocument:h,container:i,initialFocus:n},!!(2&a));H({ownerDocument:h,container:i,containers:s,previousActiveElement:p},!!(8&a));let d=w(),m=(0,b.z)(t=>{let e=i.current;e&&(()=>{(0,u.E)(d.current,{[_.Forwards]:()=>{(0,y.jA)(e,y.TO.First,{skipElements:[t.relatedTarget]})},[_.Backwards]:()=>{(0,y.jA)(e,y.TO.Last,{skipElements:[t.relatedTarget]})}})})()}),x=(0,T.G)(),k=(0,l.useRef)(!1),E={ref:r,onKeyDown(t){"Tab"==t.key&&(k.current=!0,x.requestAnimationFrame(()=>{k.current=!1}))},onBlur(t){let e=F(s);i.current instanceof HTMLElement&&e.add(i.current);let r=t.relatedTarget;r instanceof HTMLElement&&"true"!==r.dataset.headlessuiFocusGuard&&(W(e,r)||(k.current?(0,y.jA)(i.current,(0,u.E)(d.current,{[_.Forwards]:()=>y.TO.Next,[_.Backwards]:()=>y.TO.Previous})|y.TO.WrapAround,{relativeTo:t.target}):t.target instanceof HTMLElement&&(0,y.C5)(t.target)))}};return l.createElement(l.Fragment,null,!!(4&a)&&l.createElement(v._,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:m,features:v.A.Focusable}),(0,c.sY)({ourProps:E,theirProps:o,defaultTag:L,name:"FocusTrap"}),!!(4&a)&&l.createElement(v._,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:m,features:v.A.Focusable}))}let B=Object.assign((0,c.yV)(R),{features:I}),j=[];function z(){let t=!(arguments.length>0)||void 0===arguments[0]||arguments[0],e=(0,l.useRef)(j.slice());return(0,A.q)((t,i)=>{let[r]=t,[n]=i;!0===n&&!1===r&&(0,C.Y)(()=>{e.current.splice(0)}),!1===n&&!0===r&&(e.current=j.slice())},[t,j,e]),(0,b.z)(()=>{var t;return null!=(t=e.current.find(t=>null!=t&&t.isConnected))?t:null})}function N(t,e){let{ownerDocument:i}=t,r=z(e);(0,A.q)(()=>{e||(null==i?void 0:i.activeElement)===(null==i?void 0:i.body)&&(0,y.C5)(r())},[e]),O(()=>{e&&(0,y.C5)(r())})}function V(t,e){let{ownerDocument:i,container:r,initialFocus:n}=t,s=(0,l.useRef)(null),a=(0,k.t)();return(0,A.q)(()=>{if(!e)return;let t=r.current;t&&(0,C.Y)(()=>{if(!a.current)return;let e=null==i?void 0:i.activeElement;if(null!=n&&n.current){if((null==n?void 0:n.current)===e){s.current=e;return}}else if(t.contains(e)){s.current=e;return}null!=n&&n.current?(0,y.C5)(n.current):(0,y.jA)(t,y.TO.First)===y.fE.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),s.current=null==i?void 0:i.activeElement})},[e]),s}function H(t,e){let{ownerDocument:i,container:r,containers:n,previousActiveElement:s}=t,a=(0,k.t)();M(null==i?void 0:i.defaultView,"focus",t=>{if(!e||!a.current)return;let i=F(n);r.current instanceof HTMLElement&&i.add(r.current);let o=s.current;if(!o)return;let l=t.target;l&&l instanceof HTMLElement?W(i,l)?(s.current=l,(0,y.C5)(l)):(t.preventDefault(),t.stopPropagation(),(0,y.C5)(o)):(0,y.C5)(s.current)},!0)}function W(t,e){for(let i of t)if(i.contains(e))return!0;return!1}D(()=>{function t(t){t.target instanceof HTMLElement&&t.target!==document.body&&j[0]!==t.target&&(j.unshift(t.target),(j=j.filter(t=>null!=t&&t.isConnected)).splice(10))}window.addEventListener("click",t,{capture:!0}),window.addEventListener("mousedown",t,{capture:!0}),window.addEventListener("focus",t,{capture:!0}),document.body.addEventListener("click",t,{capture:!0}),document.body.addEventListener("mousedown",t,{capture:!0}),document.body.addEventListener("focus",t,{capture:!0})});var U=i(3935),G=i(1378);let q=(0,l.createContext)(!1);function Y(){return(0,l.useContext)(q)}function X(t){return l.createElement(q.Provider,{value:t.force},t.children)}var $=i(1830);function Z(t){let e=Y(),i=(0,l.useContext)(tt),r=S(t),[n,s]=(0,l.useState)(()=>
21{if(!e&&null!==i||$.O.isServer)return null;let t=null==r?void 0:r.getElementById("headlessui-portal-root");if(t)return t;if(null===r)return null;let n=r.createElement("div");return n.setAttribute("id","headlessui-portal-root"),r.body.appendChild(n)});return(0,l.useEffect)(()=>{null!==n&&(null!=r&&r.body.contains(n)||null==r||r.body.appendChild(n))},[n,r]),(0,l.useEffect)(()=>{e||null!==i&&s(i.current)},[i,s,e]),n}let J=l.Fragment;function K(t,e){let i=t,r=(0,l.useRef)(null),n=(0,f.T)((0,f.h)(t=>{r.current=t}),e),s=S(r),a=Z(r),[o]=(0,l.useState)(()=>{var t;return $.O.isServer?null:null!=(t=null==s?void 0:s.createElement("div"))?t:null}),h=(0,l.useContext)(ti),u=(0,g.H)();return(0,G.e)(()=>{!a||!o||a.contains(o)||(o.setAttribute("data-headlessui-portal",""),a.appendChild(o))},[a,o]),(0,G.e)(()=>{if(o&&h)return h.register(o)},[h,o]),O(()=>{var t;a&&o&&(o instanceof Node&&a.contains(o)&&a.removeChild(o),a.childNodes.length<=0&&(null==(t=a.parentElement)||t.removeChild(a)))}),u&&a&&o?(0,U.createPortal)((0,c.sY)({ourProps:{ref:n},theirProps:i,defaultTag:J,name:"Portal"}),o):null}let Q=l.Fragment,tt=(0,l.createContext)(null);function te(t,e){let{target:i,...r}=t,n={ref:(0,f.T)(e)};return l.createElement(tt.Provider,{value:i},(0,c.sY)({ourProps:n,theirProps:r,defaultTag:Q,name:"Popover.Group"}))}let ti=(0,l.createContext)(null);function tr(){let t=(0,l.useContext)(ti),e=(0,l.useRef)([]),i=(0,b.z)(i=>(e.current.push(i),t&&t.register(i),()=>r(i))),r=(0,b.z)(i=>{let r=e.current.indexOf(i);-1!==r&&e.current.splice(r,1),t&&t.unregister(i)}),n=(0,l.useMemo)(()=>({register:i,unregister:r,portals:e}),[i,r,e]);return[e,(0,l.useMemo)(()=>function(t){let{children:e}=t;return l.createElement(ti.Provider,{value:n},e)},[n])]}let tn=Object.assign((0,c.yV)(K),{Group:(0,c.yV)(te)}),ts=(0,l.createContext)(null);function ta(){let t=(0,l.useContext)(ts);if(null===t){let t=Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,ta),t}return t}function to(){let[t,e]=(0,l.useState)([]);return[t.length>0?t.join(" "):void 0,(0,l.useMemo)(()=>function(t){let i=(0,b.z)(t=>(e(e=>[...e,t]),()=>e(e=>{let i=e.slice(),r=i.indexOf(t);return -1!==r&&i.splice(r,1),i}))),r=(0,l.useMemo)(()=>({register:i,slot:t.slot,name:t.name,props:t.props}),[i,t.slot,t.name,t.props]);return l.createElement(ts.Provider,{value:r},t.children)},[e])]}let tl="p";function th(t,e){let i=(0,m.M)(),{id:r="headlessui-description-".concat(i),...n}=t,s=ta(),a=(0,f.T)(e);(0,G.e)(()=>s.register(r),[r,s.register]);let o={ref:a,...s.props,id:r};return(0,c.sY)({ourProps:o,theirProps:n,slot:s.slot||{},defaultTag:tl,name:s.name||"Description"})}let tu=Object.assign((0,c.yV)(th),{});var tc=i(4358);let tf=(0,l.createContext)(()=>{});tf.displayName="StackContext";var tp=((s=tp||{})[s.Add=0]="Add",s[s.Remove=1]="Remove",s);function td(){return(0,l.useContext)(tf)}function tm(t){let{children:e,onUpdate:i,type:r,element:n,enabled:s}=t,a=td(),o=(0,b.z)(function(){for(var t=arguments.length,e=Array(t),r=0;r<t;r++)e[r]=arguments[r];null==i||i(...e),a(...e)});return(0,G.e)(()=>{let t=void 0===s||!0===s;return t&&o(0,r,n),()=>{t&&o(1,r,n)}},[o,r,n,s]),l.createElement(tf.Provider,{value:o},e)}var tg=i(2196);function tv(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e}let ty="function"==typeof Object.is?Object.is:tv,{useState:tb,useEffect:tx,useLayoutEffect:t_,useDebugValue:tw}=h;void 0!==window.document&&window.document.createElement;let tk=h.useSyncExternalStore;function tE(t){return tk(t.subscribe,t.getSnapshot,t.getSnapshot)}var tS=i(3580);function tP(t,e){let i=t(),r=new Set;return{getSnapshot:()=>i,subscribe:t=>(r.add(t),()=>r.delete(t)),dispatch(t){for(var n=arguments.length,s=Array(n>1?n-1:0),a=1;a<n;a++)s[a-1]=arguments[a];let o=e[t].call(i,...s);o&&(i=o,r.forEach(t=>t()))}}}function tM(){let t;return{before(e){var i;let{doc:r}=e,n=r.documentElement;t=(null!=(i=r.defaultView)?i:window).innerWidth-n.clientWidth},after(e){let{doc:i,d:r}=e,n=i.documentElement,s=n.clientWidth-n.offsetWidth,a=t-s;r.style(n,"paddingRight","".concat(a,"px"))}}}var tC=i(7253);function tA(){let t;return(0,tC.gn)()?{before(){t=window.pageYOffset},after(e){let{doc:i,d:r,meta:n}=e;function s(t){return n.containers.flatMap(t=>
21t()).some(e=>e.contains(t))}r.style(i.body,"marginTop","-".concat(t,"px")),window.scrollTo(0,0);let a=null;r.addEventListener(i,"click",t=>{if(t.target instanceof HTMLElement)try{let e=t.target.closest("a");if(!e)return;let{hash:r}=new URL(e.href),n=i.querySelector(r);n&&!s(n)&&(a=n)}catch(t){}},!0),r.addEventListener(i,"touchmove",t=>{t.target instanceof HTMLElement&&!s(t.target)&&t.preventDefault()},{passive:!1}),r.add(()=>{window.scrollTo(0,window.pageYOffset+t),a&&a.isConnected&&(a.scrollIntoView({block:"nearest"}),a=null)})}}:{}}function tT(){return{before(t){let{doc:e,d:i}=t;i.style(e.documentElement,"overflow","hidden")}}}function tD(t){let e={};for(let i of t)Object.assign(e,i(e));return e}let tO=tP(()=>new Map,{PUSH(t,e){var i;let r=null!=(i=this.get(t))?i:{doc:t,count:0,d:(0,tS.k)(),meta:new Set};return r.count++,r.meta.add(e),this.set(t,r),this},POP(t,e){let i=this.get(t);return i&&(i.count--,i.meta.delete(e)),this},SCROLL_PREVENT(t){let{doc:e,d:i,meta:r}=t,n={doc:e,d:i,meta:tD(r)},s=[tA(),tM(),tT()];s.forEach(t=>{let{before:e}=t;return null==e?void 0:e(n)}),s.forEach(t=>{let{after:e}=t;return null==e?void 0:e(n)})},SCROLL_ALLOW(t){let{d:e}=t;e.dispose()},TEARDOWN(t){let{doc:e}=t;this.delete(e)}});function tF(t,e,i){let r=tE(tO),n=t?r.get(t):void 0,s=!!n&&n.count>0;return(0,G.e)(()=>{if(!(!t||!e))return tO.dispatch("PUSH",t,i),()=>tO.dispatch("POP",t,i)},[e,t]),s}tO.subscribe(()=>{let t=tO.getSnapshot(),e=new Map;for(let[i]of t)e.set(i,i.documentElement.style.overflow);for(let i of t.values()){let t="hidden"===e.get(i.doc),r=0!==i.count;(r&&!t||!r&&t)&&tO.dispatch(i.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",i),0===i.count&&tO.dispatch("TEARDOWN",i)}});let tL=new Map,tI=new Map;function tR(t){let e=!(arguments.length>1)||void 0===arguments[1]||arguments[1];(0,G.e)(()=>{var i;if(!e)return;let r="function"==typeof t?t():t.current;if(!r)return;function n(){var t;if(!r)return;let e=null!=(t=tI.get(r))?t:1;if(1===e?tI.delete(r):tI.set(r,e-1),1!==e)return;let i=tL.get(r);i&&(null===i["aria-hidden"]?r.removeAttribute("aria-hidden"):r.setAttribute("aria-hidden",i["aria-hidden"]),r.inert=i.inert,tL.delete(r))}let s=null!=(i=tI.get(r))?i:0;return tI.set(r,s+1),0!==s||(tL.set(r,{"aria-hidden":r.getAttribute("aria-hidden"),inert:r.inert}),r.setAttribute("aria-hidden","true"),r.inert=!0),n},[t,e])}function tB(){let{defaultContainers:t=[],portals:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=(0,l.useRef)(null),r=S(i),n=(0,b.z)(()=>{var n;let s=[];for(let e of t)null!==e&&(e instanceof HTMLElement?s.push(e):"current"in e&&e.current instanceof HTMLElement&&s.push(e.current));if(null!=e&&e.current)for(let t of e.current)s.push(t);for(let t of null!=(n=null==r?void 0:r.querySelectorAll("html > *, body > *"))?n:[])t!==document.body&&t!==document.head&&t instanceof HTMLElement&&"headlessui-portal-root"!==t.id&&(t.contains(i.current)||s.some(e=>t.contains(e))||s.push(t));return s});
21return{resolveContainers:n,contains:(0,b.z)(t=>n().some(e=>e.contains(t))),mainTreeNodeRef:i,MainTreeNode:(0,l.useMemo)(()=>function(){return l.createElement(v._,{features:v.A.Hidden,ref:i})},[i])}}var tj=((a=tj||{})[a.Open=0]="Open",a[a.Closed=1]="Closed",a),tz=((o=tz||{})[o.SetTitleId=0]="SetTitleId",o);let tN={0:(t,e)=>t.titleId===e.id?t:{...t,titleId:e.id}},tV=(0,l.createContext)(null);function tH(t){let e=(0,l.useContext)(tV);if(null===e){let e=Error("<".concat(t," /> is missing a parent <Dialog /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(e,tH),e}return e}function tW(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:()=>[document.body];tF(t,e,t=>{var e;return{containers:[...null!=(e=t.containers)?e:[],i]}})}function tU(t,e){return(0,u.E)(e.type,tN,t,e)}tV.displayName="DialogContext";let tG="div",tq=c.AN.RenderStrategy|c.AN.Static;function tY(t,e){var i;let r=(0,m.M)(),{id:n="headlessui-dialog-".concat(r),open:s,onClose:a,initialFocus:o,__demoMode:h=!1,...d}=t,[v,y]=(0,l.useState)(0),x=(0,tc.oJ)();void 0===s&&null!==x&&(s=(x&tc.ZM.Open)===tc.ZM.Open);let _=(0,l.useRef)(null),w=(0,f.T)(_,e),k=S(_),E=t.hasOwnProperty("open")||null!==x,P=t.hasOwnProperty("onClose");if(!E&&!P)throw Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!E)throw Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!P)throw Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if("boolean"!=typeof s)throw Error("You provided an `open` prop to the `Dialog`, but the value is not a boolean. Received: ".concat(s));if("function"!=typeof a)throw Error("You provided an `onClose` prop to the `Dialog`, but the value is not a function. Received: ".concat(a));let C=s?0:1,[A,T]=(0,l.useReducer)(tU,{titleId:null,descriptionId:null,panelRef:(0,l.createRef)()}),D=(0,b.z)(()=>a(!1)),O=(0,b.z)(t=>T({type:0,id:t})),F=!!(0,g.H)()&&!h&&0===C,L=v>1,I=null!==(0,l.useContext)(tV),[R,j]=tr(),{resolveContainers:z,mainTreeNodeRef:N,MainTreeNode:V}=tB({portals:R,defaultContainers:[null!=(i=A.panelRef.current)?i:_.current]}),H=L?"parent":"leaf",W=null!==x&&(x&tc.ZM.Closing)===tc.ZM.Closing,U=!I&&!W&&F;tR((0,l.useCallback)(()=>{var t,e;return null!=(e=Array.from(null!=(t=null==k?void 0:k.querySelectorAll("body > *"))?t:[]).find(t=>"headlessui-portal-root"!==t.id&&t.contains(N.current)&&t instanceof HTMLElement))?e:null},[N]),U);let G=!!L||F;tR((0,l.useCallback)(()=>{var t,e;return null!=(e=Array.from(null!=(t=null==k?void 0:k.querySelectorAll("[data-headlessui-portal]"))?t:[]).find(t=>t.contains(N.current)&&t instanceof HTMLElement))?e:null},[N]),G);let q=!(!F||L);(0,tg.O)(z,D,q);let Y=!(L||0!==C);M(null==k?void 0:k.defaultView,"keydown",t=>{Y&&(t.defaultPrevented||t.key===p.R.Escape&&(t.preventDefault(),t.stopPropagation(),D()))}),tW(k,!(W||0!==C||I),z),(0,l.useEffect)(()=>{if(0!==C||!_.current)return;let t=new ResizeObserver(t=>{for(let e of t){let t=e.target.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&D()}});return t.observe(_.current),()=>t.disconnect()},[C,_,D]);let[$,Z]=to(),J=(0,l.useMemo)(()=>[{dialogState:C,close:D,setTitleId:O},A],[C,A,D,O]),K=(0,l.useMemo)(()=>({open:0===C}),[C]),Q={ref:w,id:n,role:"dialog","aria-modal":0===C||void 0,"aria-labelledby":A.titleId,"aria-describedby":$};return l.createElement(tm,{type:"Dialog",enabled:0===C,element:_,onUpdate:(0,b.z)((t,e)=>{"Dialog"===e&&(0,u.E)(t,{[tp.Add]:()=>y(t=>t+1),[tp.Remove]:()=>y(t=>t-1)})})},l.createElement(X,{force:!0},l.createElement(tn,null,l.createElement(tV.Provider,{value:J},l.createElement(tn.Group,{target:_},l.createElement(X,{force:!1},l.createElement(Z,{slot:K,name:"Dialog.Description"},l.createElement(B,{initialFocus:o,containers:z,features:F?(0,u.E)(H,{parent:B.features.RestoreFocus,leaf:B.features.All&~B.features.FocusLock}):B.features.None},l.createElement(j,null,(0,c.sY)({ourProps:Q,theirProps:d,slot:K,defaultTag:tG,features:tq,visible:0===C,name:"Dialog"}))))))))),l.createElement(V,null))}let tX="div";function t$(t,e){let i=(0,m.M)(),{id:r="headlessui-dialog-overlay-".concat(i),...n}=t,[{dialogState:s,close:a}]=tH("Dialog.Overlay"),o=(0,f.T)(e),h=(0,b.z)(t=>{if(t.target===t.currentTarget){if((0,d.P)(t.currentTarget))return t.preventDefault();t.preventDefault(),t.stopPropagation(),a()}}),u=(0,l.useMemo)(()=>({open:0===s}),[s]);return(0,c.sY)({ourProps:{ref:o,id:r,"aria-hidden":!0,onClick:h},theirProps:n,slot:u,defaultTag:tX,name:"Dialog.Overlay"})}let tZ="div";function tJ(t,e){let i=(0,m.M)(),{id:r="headlessui-dialog-backdrop-".concat(i),...n}=t,[{dialogState:s},a]=tH("Dialog.Backdrop"),o=(0,f.T)(e);(0,l.useEffect)(()=>
21{if(null===a.panelRef.current)throw Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")},[a.panelRef]);let h=(0,l.useMemo)(()=>({open:0===s}),[s]);return l.createElement(X,{force:!0},l.createElement(tn,null,(0,c.sY)({ourProps:{ref:o,id:r,"aria-hidden":!0},theirProps:n,slot:h,defaultTag:tZ,name:"Dialog.Backdrop"})))}let tK="div";function tQ(t,e){let i=(0,m.M)(),{id:r="headlessui-dialog-panel-".concat(i),...n}=t,[{dialogState:s},a]=tH("Dialog.Panel"),o=(0,f.T)(e,a.panelRef),h=(0,l.useMemo)(()=>({open:0===s}),[s]),u=(0,b.z)(t=>{t.stopPropagation()});return(0,c.sY)({ourProps:{ref:o,id:r,onClick:u},theirProps:n,slot:h,defaultTag:tK,name:"Dialog.Panel"})}let t0="h2";function t1(t,e){let i=(0,m.M)(),{id:r="headlessui-dialog-title-".concat(i),...n}=t,[{dialogState:s,setTitleId:a}]=tH("Dialog.Title"),o=(0,f.T)(e);(0,l.useEffect)(()=>(a(r),()=>a(null)),[r,a]);let h=(0,l.useMemo)(()=>({open:0===s}),[s]);return(0,c.sY)({ourProps:{ref:o,id:r},theirProps:n,slot:h,defaultTag:t0,name:"Dialog.Title"})}let t2=Object.assign((0,c.yV)(tY),{Backdrop:(0,c.yV)(tJ),Panel:(0,c.yV)(tQ),Overlay:(0,c.yV)(t$),Title:(0,c.yV)(t1),Description:tu})},1266:function(t,e,i){"use strict";let r,n;i.d(e,{p:function(){return I}});var s,a=i(7294),o=i(8844),l=i(8287),h=i(1813),u=i(4924),c=i(933),f=i(4480),p=i(4358),d=i(961),m=i(8961),g=i(3);let v=null!=(s=a.startTransition)?s:function(t){t()};var y=((r=y||{})[r.Open=0]="Open",r[r.Closed=1]="Closed",r),b=((n=b||{})[n.ToggleDisclosure=0]="ToggleDisclosure",n[n.CloseDisclosure=1]="CloseDisclosure",n[n.SetButtonId=2]="SetButtonId",n[n.SetPanelId=3]="SetPanelId",n[n.LinkPanel=4]="LinkPanel",n[n.UnlinkPanel=5]="UnlinkPanel",n);let x={0:t=>({...t,disclosureState:(0,o.E)(t.disclosureState,{0:1,1:0})}),1:t=>1===t.disclosureState?t:{...t,disclosureState:1},4:t=>!0===t.linkedPanel?t:{...t,linkedPanel:!0},5:t=>!1===t.linkedPanel?t:{...t,linkedPanel:!1},2:(t,e)=>t.buttonId===e.buttonId?t:{...t,buttonId:e.buttonId},3:(t,e)=>t.panelId===e.panelId?t:{...t,panelId:e.panelId}},_=(0,a.createContext)(null);function w(t){let e=(0,a.useContext)(_);if(null===e){let e=Error("<".concat(t," /> is missing a parent <Disclosure /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(e,w),e}return e}_.displayName="DisclosureContext";let k=(0,a.createContext)(null);function E(t){let e=(0,a.useContext)(k);if(null===e){let e=Error("<".concat(t," /> is missing a parent <Disclosure /> component."));throw Error.captureStackTrace&&Error.captureStackTrace(e,E),e}return e}k.displayName="DisclosureAPIContext";let S=(0,a.createContext)(null);function P(){return(0,a.useContext)(S)}function M(t,e){return(0,o.E)(e.type,x,t,e)}S.displayName="DisclosurePanelContext";let C=a.Fragment;function A(t,e){let{defaultOpen:i=!1,...r}=t,n=(0,a.useRef)(null),s=(0,h.T)(e,(0,h.h)(t=>{n.current=t},void 0===t.as||t.as===a.Fragment)),u=(0,a.useRef)(null),c=(0,a.useRef)(null),f=(0,a.useReducer)(M,{disclosureState:i?0:1,linkedPanel:!1,buttonRef:c,panelRef:u,buttonId:null,panelId:null}),[{disclosureState:d,buttonId:v},y]=f,b=(0,g.z)(t=>{y({type:1});let e=(0,m.r)(n);if(!e||!v)return;let i=t?t instanceof HTMLElement?t:t.current instanceof HTMLElement?t.current:e.getElementById(v):e.getElementById(v);null==i||i.focus()}),x=(0,a.useMemo)(()=>({close:b}),[b]),w=(0,a.useMemo)(()=>({open:0===d,close:b}),[d,b]),E={ref:s};return a.createElement(_.Provider,{value:f},a.createElement(k.Provider,{value:x},a.createElement(p.up,{value:(0,o.E)(d,{0:p.ZM.Open,1:p.ZM.Closed})},(0,l.sY)({ourProps:E,theirProps:r,slot:w,defaultTag:C,name:"Disclosure"}))))}let T="button";function D(t,e){let i=(0,u.M)(),{id:r="headlessui-disclosure-button-".concat(i),...n}=t,[s,o]=w("Disclosure.Button"),p=P(),m=null!==p&&p===s.panelId,v=(0,a.useRef)(null),y=(0,h.T)(v,e,m?null:s.buttonRef);(0,a.useEffect)(()=>{if(!m)return o({type:2,buttonId:r}),()=>{o({type:2,buttonId:null})}},[r,o,m]);let b=(0,g.z)(t=>{var e;if(m){if(1===s.disclosureState)return;switch(t.key){case c.R.Space:case c.R.Enter:t.preventDefault(),t.stopPropagation(),o({type:0}),null==(e=s.buttonRef.current)||e.focus()}}else switch(t.key){case c.R.Space:case c.R.Enter:t.preventDefault(),t.stopPropagation(),o({type:0})}}),x=(0,g.z)(t=>{t.key===c.R.Space&&t.preventDefault()}),_=(0,g.z)(e=>{var i;(0,f.P)(e.currentTarget)||t.disabled||(m?(o({type:0}),null==(i=s.buttonRef.current)||i.focus()):o({type:0}))}),k=(0,a.useMemo)(()=>({open:0===s.disclosureState}),[s]),E=(0,d.f)(t,v),S=m?{ref:y,type:E,onKeyDown:b,onClick:_}:{ref:y,id:r,type:E,"aria-expanded":0===s.disclosureState,"aria-controls":s.linkedPanel?s.panelId:void 0,onKeyDown:b,onKeyUp:x,onClick:_};
21return(0,l.sY)({ourProps:S,theirProps:n,slot:k,defaultTag:T,name:"Disclosure.Button"})}let O="div",F=l.AN.RenderStrategy|l.AN.Static;function L(t,e){let i=(0,u.M)(),{id:r="headlessui-disclosure-panel-".concat(i),...n}=t,[s,o]=w("Disclosure.Panel"),{close:c}=E("Disclosure.Panel"),f=(0,h.T)(e,s.panelRef,t=>{v(()=>o({type:t?4:5}))});(0,a.useEffect)(()=>(o({type:3,panelId:r}),()=>{o({type:3,panelId:null})}),[r,o]);let d=(0,p.oJ)(),m=null!==d?(d&p.ZM.Open)===p.ZM.Open:0===s.disclosureState,g=(0,a.useMemo)(()=>({open:0===s.disclosureState,close:c}),[s,c]),y={ref:f,id:r};return a.createElement(S.Provider,{value:s.panelId},(0,l.sY)({ourProps:y,theirProps:n,slot:g,defaultTag:O,features:F,visible:m,name:"Disclosure.Panel"}))}let I=Object.assign((0,l.yV)(A),{Button:(0,l.yV)(D),Panel:(0,l.yV)(L)})},933:function(t,e,i){"use strict";let r;i.d(e,{R:function(){return n}});var n=((r=n||{}).Space=" ",r.Enter="Enter",r.Escape="Escape",r.Backspace="Backspace",r.Delete="Delete",r.ArrowLeft="ArrowLeft",r.ArrowUp="ArrowUp",r.ArrowRight="ArrowRight",r.ArrowDown="ArrowDown",r.Home="Home",r.End="End",r.PageUp="PageUp",r.PageDown="PageDown",r.Tab="Tab",r)},5007:function(t,e,i){"use strict";let r;i.d(e,{u:function(){return W}});var n=i(7294),s=i(8287),a=i(4358),o=i(8844),l=i(2308),h=i(1378),u=i(5508),c=i(2047),f=i(1813);function p(t){let e={called:!1};return function(){for(var i=arguments.length,r=Array(i),n=0;n<i;n++)r[n]=arguments[n];if(!e.called)return e.called=!0,t(...r)}}var d=i(3580);function m(t){for(var e=arguments.length,i=Array(e>1?e-1:0),r=1;r<e;r++)i[r-1]=arguments[r];t&&i.length>0&&t.classList.add(...i)}function g(t){for(var e=arguments.length,i=Array(e>1?e-1:0),r=1;r<e;r++)i[r-1]=arguments[r];t&&i.length>0&&t.classList.remove(...i)}function v(t,e){let i=(0,d.k)();if(!t)return i.dispose;let{transitionDuration:r,transitionDelay:n}=getComputedStyle(t),[s,a]=[r,n].map(t=>{let[e=0]=t.split(",").filter(Boolean).map(t=>t.includes("ms")?parseFloat(t):1e3*parseFloat(t)).sort((t,e)=>e-t);return e}),o=s+a;if(0!==o){i.group(i=>{i.setTimeout(()=>{e(),i.dispose()},o),i.addEventListener(t,"transitionrun",t=>{t.target===t.currentTarget&&i.dispose()})});let r=i.addEventListener(t,"transitionend",t=>{t.target===t.currentTarget&&(e(),r())})}else e();return i.add(()=>e()),i.dispose}function y(t,e,i,r){let n=i?"enter":"leave",s=(0,d.k)(),a=void 0!==r?p(r):()=>{};"enter"===n&&(t.removeAttribute("hidden"),t.style.display="");let l=(0,o.E)(n,{enter:()=>e.enter,leave:()=>e.leave}),h=(0,o.E)(n,{enter:()=>e.enterTo,leave:()=>e.leaveTo}),u=(0,o.E)(n,{enter:()=>e.enterFrom,leave:()=>e.leaveFrom});return g(t,...e.enter,...e.enterTo,...e.enterFrom,...e.leave,...e.leaveFrom,...e.leaveTo,...e.entered),m(t,...l,...u),s.nextFrame(()=>{g(t,...u),m(t,...h),v(t,()=>(g(t,...l),m(t,...e.entered),a()))}),s.dispose}var b=i(3285);function x(t){let{container:e,direction:i,classes:r,onStart:n,onStop:s}=t,a=(0,l.t)(),o=(0,b.G)(),c=(0,u.E)(i);(0,h.e)(()=>{let t=(0,d.k)();o.add(t.dispose);let i=e.current;if(i&&"idle"!==c.current&&a.current)return t.dispose(),n.current(c.current),t.add(y(i,r.current,"enter"===c.current,()=>{t.dispose(),s.current(c.current)})),t.dispose},[i])}var _=i(3),w=i(5602);function k(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,[e,i]=(0,n.useState)(t),r=(0,l.t)(),s=(0,n.useCallback)(t=>{r.current&&i(e=>e|t)},[e,r]),a=(0,n.useCallback)(t=>!!(e&t),[e]);return{flags:e,addFlag:s,hasFlag:a,removeFlag:(0,n.useCallback)(t=>{r.current&&i(e=>e&~t)},[i,r]),toggleFlag:(0,n.useCallback)(t=>{r.current&&i(e=>e^t)},[i])}}function E(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.split(" ").filter(t=>t.trim().length>1)}let S=(0,n.createContext)(null);S.displayName="TransitionContext";var P=((r=P||{}).Visible="visible",r.Hidden="hidden",r);function M(){let t=(0,n.useContext)(S);if(null===t)throw Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return t}function C(){let t=(0,n.useContext)(A);if(null===t)throw Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return t}let A=(0,n.createContext)(null);function T(t){return"children"in t?T(t.children):t.current.filter(t=>{let{el:e}=t;return null!==e.current}).filter(t=>{let{state:e}=t;return"visible"===e}).length>0}function D(t,e){let i=(0,u.E)(t),r=(0,n.useRef)([]),a=(0,l.t)(),h=(0,b.G)(),c=(0,_.z)(function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.l4.Hidden,n=r.current.findIndex(e=>{let{el:i}=e;return i===t});-1!==n&&((0,o.E)(e,{[s.l4.Unmount](){r.current.splice(n,1)},[s.l4.Hidden](){r.current[n].state="hidden"}}),h.microTask(()=>{var t;!T(r)&&a.current&&(null==(t=i.current)||t.call(i))}))}),f=(0,_.z)(t=>{let e=r.current.find(e=>{let{el:i}=e;return i===t});return e?"visible"!==e.state&&(e.state="visible"):r.current.push({el:t,state:"visible"}),()=>c(t,s.l4.Unmount)}),p=(0,n.useRef)([]),d=(0,n.useRef)(Promise.resolve()),m=(0,n.useRef)({enter:[],leave:[],idle:[]}),g=(0,_.z)((t,i,r)=>{p.current.splice(0),e&&(e.chains.current[i]=e.chains.current[i].filter(e=>{let[i]=e;return i!==t})),null==e||e.chains.current[i].push([t,new Promise(t=>{p.current.push(t)})]),null==e||e.chains.current[i].push([t,new Promise(t=>{Promise.all(m.current[i].map(t=>{let[e,i]=t;return i})).then(()=>t())}
21)]),"enter"===i?d.current=d.current.then(()=>null==e?void 0:e.wait.current).then(()=>r(i)):r(i)}),v=(0,_.z)((t,e,i)=>{Promise.all(m.current[e].splice(0).map(t=>{let[e,i]=t;return i})).then(()=>{var t;null==(t=p.current.shift())||t()}).then(()=>i(e))});return(0,n.useMemo)(()=>({children:r,register:f,unregister:c,onStart:g,onStop:v,wait:d,chains:m}),[f,c,r,g,v,m,d])}function O(){}A.displayName="NestingContext";let F=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function L(t){var e;let i={};for(let r of F)i[r]=null!=(e=t[r])?e:O;return i}function I(t){let e=(0,n.useRef)(L(t));return(0,n.useEffect)(()=>{e.current=L(t)},[t]),e}let R="div",B=s.AN.RenderStrategy;function j(t,e){let{beforeEnter:i,afterEnter:r,beforeLeave:l,afterLeave:h,enter:p,enterFrom:d,enterTo:m,entered:g,leave:v,leaveFrom:y,leaveTo:b,...S}=t,P=(0,n.useRef)(null),O=(0,f.T)(P,e),F=S.unmount?s.l4.Unmount:s.l4.Hidden,{show:L,appear:j,initial:z}=M(),[N,V]=(0,n.useState)(L?"visible":"hidden"),H=C(),{register:W,unregister:U}=H,G=(0,n.useRef)(null);(0,n.useEffect)(()=>W(P),[W,P]),(0,n.useEffect)(()=>{if(F===s.l4.Hidden&&P.current){if(L&&"visible"!==N){V("visible");return}return(0,o.E)(N,{hidden:()=>U(P),visible:()=>W(P)})}},[N,P,W,U,L,F]);let q=(0,u.E)({enter:E(p),enterFrom:E(d),enterTo:E(m),entered:E(g),leave:E(v),leaveFrom:E(y),leaveTo:E(b)}),Y=I({beforeEnter:i,afterEnter:r,beforeLeave:l,afterLeave:h}),X=(0,c.H)();(0,n.useEffect)(()=>{if(X&&"visible"===N&&null===P.current)throw Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[P,N,X]);let $=z&&!j,Z=!X||$||G.current===L?"idle":L?"enter":"leave",J=k(0),K=(0,_.z)(t=>(0,o.E)(t,{enter:()=>{J.addFlag(a.ZM.Opening),Y.current.beforeEnter()},leave:()=>{J.addFlag(a.ZM.Closing),Y.current.beforeLeave()},idle:()=>{}})),Q=(0,_.z)(t=>(0,o.E)(t,{enter:()=>{J.removeFlag(a.ZM.Opening),Y.current.afterEnter()},leave:()=>{J.removeFlag(a.ZM.Closing),Y.current.afterLeave()},idle:()=>{}})),tt=D(()=>{V("hidden"),U(P)},H);x({container:P,classes:q,direction:Z,onStart:(0,u.E)(t=>{tt.onStart(P,t,K)}),onStop:(0,u.E)(t=>{tt.onStop(P,t,Q),"leave"!==t||T(tt)||(V("hidden"),U(P))})}),(0,n.useEffect)(()=>{$&&(F===s.l4.Hidden?G.current=null:G.current=L)},[L,$,N]);let te=S,ti={ref:O};return j&&L&&z&&(te={...te,className:(0,w.A)(S.className,...q.current.enter,...q.current.enterFrom)}),n.createElement(A.Provider,{value:tt},n.createElement(a.up,{value:(0,o.E)(N,{visible:a.ZM.Open,hidden:a.ZM.Closed})|J.flags},(0,s.sY)({ourProps:ti,theirProps:te,defaultTag:R,features:B,visible:"visible"===N,name:"Transition.Child"})))}function z(t,e){let{show:i,appear:r=!1,unmount:o,...l}=t,u=(0,n.useRef)(null),p=(0,f.T)(u,e);(0,c.H)();let d=(0,a.oJ)();if(void 0===i&&null!==d&&(i=(d&a.ZM.Open)===a.ZM.Open),![!0,!1].includes(i))throw Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[m,g]=(0,n.useState)(i?"visible":"hidden"),v=D(()=>{g("hidden")}),[y,b]=(0,n.useState)(!0),x=(0,n.useRef)([i]);(0,h.e)(()=>{!1!==y&&x.current[x.current.length-1]!==i&&(x.current.push(i),b(!1))},[x,i]);let w=(0,n.useMemo)(()=>({show:i,appear:r,initial:y}),[i,r,y]);(0,n.useEffect)(()=>{if(i)g("visible");else if(T(v)){let t=u.current;if(!t)return;let e=t.getBoundingClientRect();0===e.x&&0===e.y&&0===e.width&&0===e.height&&g("hidden")}else g("hidden")},[i,v]);let k={unmount:o},E=(0,_.z)(()=>{var e;y&&b(!1),null==(e=t.beforeEnter)||e.call(t)}),P=(0,_.z)(()=>{var e;y&&b(!1),null==(e=t.beforeLeave)||e.call(t)});return n.createElement(A.Provider,{value:v},n.createElement(S.Provider,{value:w},(0,s.sY)({ourProps:{...k,as:n.Fragment,children:n.createElement(H,{ref:p,...k,...l,beforeEnter:E,beforeLeave:P})},theirProps:{},defaultTag:n.Fragment,features:B,visible:"visible"===m,name:"Transition"})))}function N(t,e){let i=null!==(0,n.useContext)(S),r=null!==(0,a.oJ)();return n.createElement(n.Fragment,null,!i&&r?n.createElement(V,{ref:e,...t}):n.createElement(H,{ref:e,...t}))}let V=(0,s.yV)(z),H=(0,s.yV)(j),W=Object.assign(V,{Child:(0,s.yV)(N),Root:V})},372:function(t,e,i){"use strict";i.d(e,{v:function(){return a}});var r=i(7294),n=i(1378),s=i(5508);function a(t,e){let[i,a]=(0,r.useState)(t),o=(0,s.E)(t);return(0,n.e)(()=>a(o.current),[o,a,...e]),i}}
21,6451:function(t,e,i){"use strict";i.d(e,{q:function(){return s}});var r=i(7294),n=i(3);function s(t,e,i){let[s,a]=(0,r.useState)(i),o=void 0!==t,l=(0,r.useRef)(o),h=(0,r.useRef)(!1),u=(0,r.useRef)(!1);return!o||l.current||h.current?o||!l.current||u.current||(u.current=!0,l.current=o,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(h.current=!0,l.current=o,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[o?t:s,(0,n.z)(t=>(o||a(t),null==e?void 0:e(t)))]}},3285:function(t,e,i){"use strict";i.d(e,{G:function(){return s}});var r=i(7294),n=i(3580);function s(){let[t]=(0,r.useState)(n.k);return(0,r.useEffect)(()=>()=>t.dispose(),[t]),t}},3:function(t,e,i){"use strict";i.d(e,{z:function(){return s}});var r=i(7294),n=i(5508);let s=function(t){let e=(0,n.E)(t);return r.useCallback(function(){for(var t=arguments.length,i=Array(t),r=0;r<t;r++)i[r]=arguments[r];return e.current(...i)},[e])}},4924:function(t,e,i){"use strict";i.d(e,{M:function(){return l}});var r,n=i(7294),s=i(1378),a=i(2047),o=i(1830);let l=null!=(r=n.useId)?r:function(){let t=(0,a.H)(),[e,i]=n.useState(t?()=>o.O.nextId():null);return(0,s.e)(()=>{null===e&&i(o.O.nextId())},[e]),null!=e?""+e:void 0}},2308:function(t,e,i){"use strict";i.d(e,{t:function(){return s}});var r=i(7294),n=i(1378);function s(){let t=(0,r.useRef)(!1);return(0,n.e)(()=>(t.current=!0,()=>{t.current=!1}),[]),t}},1378:function(t,e,i){"use strict";i.d(e,{e:function(){return s}});var r=i(7294),n=i(1830);let s=(t,e)=>{n.O.isServer?(0,r.useEffect)(t,e):(0,r.useLayoutEffect)(t,e)}},5508:function(t,e,i){"use strict";i.d(e,{E:function(){return s}});var r=i(7294),n=i(1378);function s(t){let e=(0,r.useRef)(t);return(0,n.e)(()=>{e.current=t},[t]),e}},2196:function(t,e,i){"use strict";i.d(e,{O:function(){return l}});var r=i(7294),n=i(8657),s=i(5508);function a(t,e,i){let n=(0,s.E)(e);(0,r.useEffect)(()=>{function e(t){n.current(t)}return document.addEventListener(t,e,i),()=>document.removeEventListener(t,e,i)},[t,i])}var o=i(9264);function l(t,e){let i=!(arguments.length>2)||void 0===arguments[2]||arguments[2],s=(0,r.useRef)(!1);function l(i,r){if(!s.current||i.defaultPrevented)return;let a=r(i);if(null!==a&&a.getRootNode().contains(a)&&a.isConnected){for(let e of function t(e){return"function"==typeof e?t(e()):Array.isArray(e)||e instanceof Set?e:[e]}(t)){if(null===e)continue;let t=e instanceof HTMLElement?e:e.current;if(null!=t&&t.contains(a)||i.composed&&i.composedPath().includes(t))return}return(0,n.sP)(a,n.tJ.Loose)||-1===a.tabIndex||i.preventDefault(),e(i,a)}}(0,r.useEffect)(()=>{requestAnimationFrame(()=>{s.current=i})},[i]);let h=(0,r.useRef)(null);a("pointerdown",t=>{var e,i;s.current&&(h.current=(null==(i=null==(e=t.composedPath)?void 0:e.call(t))?void 0:i[0])||t.target)},!0),a("mousedown",t=>{var e,i;s.current&&(h.current=(null==(i=null==(e=t.composedPath)?void 0:e.call(t))?void 0:i[0])||t.target)},!0),a("click",t=>{h.current&&(l(t,()=>h.current),h.current=null)},!0),a("touchend",t=>l(t,()=>t.target instanceof HTMLElement?t.target:null),!0),(0,o.s)("blur",t=>l(t,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}},961:function(t,e,i){"use strict";i.d(e,{f:function(){return a}});var r=i(7294),n=i(1378);function s(t){var e;if(t.type)return t.type;let i=null!=(e=t.as)?e:"button";if("string"==typeof i&&"button"===i.toLowerCase())return"button"}function a(t,e){let[i,a]=(0,r.useState)(()=>s(t));return(0,n.e)(()=>{a(s(t))},[t.type,t.as]),(0,n.e)(()=>{i||e.current&&e.current instanceof HTMLButtonElement&&!e.current.hasAttribute("type")&&a("button")},[i,e]),i}},2047:function(t,e,i){"use strict";i.d(e,{H:function(){return s}});var r=i(7294),n=i(1830);function s(){let[t,e]=(0,r.useState)(n.O.isHandoffComplete);return t&&!1===n.O.isHandoffComplete&&e(!1),(0,r.useEffect)(()=>{!0!==t&&e(!0)},[t]),(0,r.useEffect)(()=>n.O.handoff(),[]),t}}
21,1813:function(t,e,i){"use strict";i.d(e,{T:function(){return o},h:function(){return a}});var r=i(7294),n=i(3);let s=Symbol();function a(t){let e=!(arguments.length>1)||void 0===arguments[1]||arguments[1];return Object.assign(t,{[s]:e})}function o(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];let a=(0,r.useRef)(e);(0,r.useEffect)(()=>{a.current=e},[e]);let o=(0,n.z)(t=>{for(let e of a.current)null!=e&&("function"==typeof e?e(t):e.current=t)});return e.every(t=>null==t||(null==t?void 0:t[s]))?void 0:o}},1592:function(t,e,i){"use strict";i.d(e,{g:function(){return s}});var r=i(7294);function n(t){return[t.screenX,t.screenY]}function s(){let t=(0,r.useRef)([-1,-1]);return{wasMoved(e){let i=n(e);return(t.current[0]!==i[0]||t.current[1]!==i[1])&&(t.current=i,!0)},update(e){t.current=n(e)}}}},7543:function(t,e,i){"use strict";i.d(e,{q:function(){return s}});var r=i(7294),n=i(3);function s(t,e){let i=(0,r.useRef)([]),s=(0,n.z)(t);(0,r.useEffect)(()=>{let t=[...i.current];for(let[r,n]of e.entries())if(i.current[r]!==n){let r=s(e,t);return i.current=e,r}},[s,...e])}},9264:function(t,e,i){"use strict";i.d(e,{s:function(){return s}});var r=i(7294),n=i(5508);function s(t,e,i){let s=(0,n.E)(e);(0,r.useEffect)(()=>{function e(t){s.current(t)}return window.addEventListener(t,e,i),()=>window.removeEventListener(t,e,i)},[t,i])}},7524:function(t,e,i){"use strict";let r;i.d(e,{A:function(){return a},_:function(){return l}});var n=i(8287);let s="div";var a=((r=a||{})[r.None=1]="None",r[r.Focusable=2]="Focusable",r[r.Hidden=4]="Hidden",r);function o(t,e){let{features:i=1,...r}=t,a={ref:e,"aria-hidden":(2&i)==2||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(4&i)==4&&(2&i)!=2&&{display:"none"}}};return(0,n.sY)({ourProps:a,theirProps:r,slot:{},defaultTag:s,name:"Hidden"})}let l=(0,n.yV)(o)},4358:function(t,e,i){"use strict";let r;i.d(e,{ZM:function(){return a},oJ:function(){return o},up:function(){return l}});var n=i(7294);let s=(0,n.createContext)(null);s.displayName="OpenClosedContext";var a=((r=a||{})[r.Open=1]="Open",r[r.Closed=2]="Closed",r[r.Closing=4]="Closing",r[r.Opening=8]="Opening",r);function o(){return(0,n.useContext)(s)}function l(t){let{value:e,children:i}=t;return n.createElement(s.Provider,{value:e},i)}},4480:function(t,e,i){"use strict";function r(t){let e=t.parentElement,i=null;for(;e&&!(e instanceof HTMLFieldSetElement);)e instanceof HTMLLegendElement&&(i=e),e=e.parentElement;let r=(null==e?void 0:e.getAttribute("disabled"))==="";return!(r&&n(i))&&r}function n(t){if(!t)return!1;let e=t.previousElementSibling;for(;null!==e;){if(e instanceof HTMLLegendElement)return!1;e=e.previousElementSibling}return!0}i.d(e,{P:function(){return r}})},4176:function(t,e,i){"use strict";let r;function n(t){throw Error("Unexpected object: "+t)}i.d(e,{T:function(){return s},d:function(){return a}});var s=((r=s||{})[r.First=0]="First",r[r.Previous=1]="Previous",r[r.Next=2]="Next",r[r.Last=3]="Last",r[r.Specific=4]="Specific",r[r.Nothing=5]="Nothing",r);function a(t,e){let i=e.resolveItems();if(i.length<=0)return null;let r=e.resolveActiveIndex(),s=null!=r?r:-1,a=(()=>{switch(t.focus){case 0:return i.findIndex(t=>!e.resolveDisabled(t));case 1:{let t=i.slice().reverse().findIndex((t,i,r)=>(-1===s||!(r.length-i-1>=s))&&!e.resolveDisabled(t));return -1===t?t:i.length-1-t}case 2:return i.findIndex((t,i)=>!(i<=s)&&!e.resolveDisabled(t));case 3:{let t=i.slice().reverse().findIndex(t=>!e.resolveDisabled(t));return -1===t?t:i.length-1-t}case 4:return i.findIndex(i=>e.resolveId(i)===t.id);case 5:return null;default:n(t)}})();return -1===a?r:a}},5602:function(t,e,i){"use strict";function r(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return e.filter(Boolean).join(" ")}i.d(e,{A:function(){return r}})},3580:function(t,e,i){"use strict";i.d(e,{k:function(){return n}});var r=i(1291);function n(){let t=[],e={addEventListener:(t,i,r,n)=>(t.addEventListener(i,r,n),e.add(()=>t.removeEventListener(i,r,n))),requestAnimationFrame(){for(var t=arguments.length,i=Array(t),r=0;r<t;r++)i[r]=arguments[r];let n=requestAnimationFrame(...i);return e.add(()=>cancelAnimationFrame(n))},nextFrame(){for(var t=arguments.length,i=Array(t),r=0;r<t;r++)i[r]=arguments[r];return e.requestAnimationFrame(()=>e.requestAnimationFrame(...i))},setTimeout(){for(var t=arguments.length,i=Array(t),r=0;r<t;r++)i[r]=arguments[r];
21let n=setTimeout(...i);return e.add(()=>clearTimeout(n))},microTask(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];let s={current:!0};return(0,r.Y)(()=>{s.current&&i[0]()}),e.add(()=>{s.current=!1})},style(t,e,i){let r=t.style.getPropertyValue(e);return Object.assign(t.style,{[e]:i}),this.add(()=>{Object.assign(t.style,{[e]:r})})},group(t){let e=n();return t(e),this.add(()=>e.dispose())},add:e=>(t.push(e),()=>{let i=t.indexOf(e);if(i>=0)for(let e of t.splice(i,1))e()}),dispose(){for(let e of t.splice(0))e()}};return e}},1830:function(t,e,i){"use strict";i.d(e,{O:function(){return o}});var r=Object.defineProperty,n=(t,e,i)=>e in t?r(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,s=(t,e,i)=>(n(t,"symbol"!=typeof e?e+"":e,i),i);class a{set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}constructor(){s(this,"current",this.detect()),s(this,"handoffState","pending"),s(this,"currentId",0)}}let o=new a},8657:function(t,e,i){"use strict";let r,n,s,a,o;i.d(e,{C5:function(){return y},TO:function(){return c},fE:function(){return f},jA:function(){return w},sP:function(){return g},tJ:function(){return m},z2:function(){return _}});var l=i(8844),h=i(8961);let u=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(t=>"".concat(t,":not([tabindex='-1'])")).join(",");var c=((r=c||{})[r.First=1]="First",r[r.Previous=2]="Previous",r[r.Next=4]="Next",r[r.Last=8]="Last",r[r.WrapAround=16]="WrapAround",r[r.NoScroll=32]="NoScroll",r),f=((n=f||{})[n.Error=0]="Error",n[n.Overflow=1]="Overflow",n[n.Success=2]="Success",n[n.Underflow=3]="Underflow",n),p=((s=p||{})[s.Previous=-1]="Previous",s[s.Next=1]="Next",s);function d(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;return null==t?[]:Array.from(t.querySelectorAll(u)).sort((t,e)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(e.tabIndex||Number.MAX_SAFE_INTEGER)))}var m=((a=m||{})[a.Strict=0]="Strict",a[a.Loose=1]="Loose",a);function g(t){var e;let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t!==(null==(e=(0,h.r)(t))?void 0:e.body)&&(0,l.E)(i,{0:()=>t.matches(u),1(){let e=t;for(;null!==e;){if(e.matches(u))return!0;e=e.parentElement}return!1}})}var v=((o=v||{})[o.Keyboard=0]="Keyboard",o[o.Mouse=1]="Mouse",o);function y(t){null==t||t.focus({preventScroll:!0})}"undefined"!=typeof document&&(document.addEventListener("keydown",t=>{t.metaKey||t.altKey||t.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",t=>{1===t.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===t.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));let b="textarea,input";function x(t){var e,i;return null!=(i=null==(e=null==t?void 0:t.matches)?void 0:e.call(t,b))&&i}function _(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t=>t;return t.slice().sort((t,i)=>{let r=e(t),n=e(i);if(null===r||null===n)return 0;let s=r.compareDocumentPosition(n);return s&Node.DOCUMENT_POSITION_FOLLOWING?-1:s&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function w(t,e){let{sorted:i=!0,relativeTo:r=null,skipElements:n=[]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=Array.isArray(t)?t.length>0?t[0].ownerDocument:document:t.ownerDocument,a=Array.isArray(t)?i?_(t):t:d(t);n.length>0&&a.length>1&&(a=a.filter(t=>!n.includes(t))),r=null!=r?r:s.activeElement;let o=(()=>{if(5&e)return 1;if(10&e)return -1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),l=(()=>{if(1&e)return 0;if(2&e)return Math.max(0,a.indexOf(r))-1;if(4&e)return Math.max(0,a.indexOf(r))+1;if(8&e)return a.length-1;throw Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),h=32&e?{preventScroll:!0}:{},u=0,c=a.length,f;do{if(u>=c||u+c<=0)return 0;let t=l+u;if(16&e)t=(t+c)%c;
21else{if(t<0)return 3;if(t>=c)return 1}null==(f=a[t])||f.focus(h),u+=o}while(f!==s.activeElement);return 6&e&&x(f)&&f.select(),2}},9732:function(t,e,i){"use strict";function r(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];for(let[r,a]of Object.entries(t))s(i,n(e,r),a);return i}function n(t,e){return t?t+"["+e+"]":e}function s(t,e,i){if(Array.isArray(i))for(let[r,a]of i.entries())s(t,n(e,r.toString()),a);else i instanceof Date?t.push([e,i.toISOString()]):"boolean"==typeof i?t.push([e,i?"1":"0"]):"string"==typeof i?t.push([e,i]):"number"==typeof i?t.push([e,"".concat(i)]):null==i?t.push([e,""]):r(i,e,t)}i.d(e,{t:function(){return r}})},8844:function(t,e,i){"use strict";function r(t,e){for(var i=arguments.length,n=Array(i>2?i-2:0),s=2;s<i;s++)n[s-2]=arguments[s];if(t in e){let i=e[t];return"function"==typeof i?i(...n):i}let a=Error('Tried to handle "'.concat(t,'" but there is no handler defined. Only defined handlers are: ').concat(Object.keys(e).map(t=>'"'.concat(t,'"')).join(", "),"."));throw Error.captureStackTrace&&Error.captureStackTrace(a,r),a}i.d(e,{E:function(){return r}})},1291:function(t,e,i){"use strict";function r(t){"function"==typeof queueMicrotask?queueMicrotask(t):Promise.resolve().then(t).catch(t=>setTimeout(()=>{throw t}))}i.d(e,{Y:function(){return r}})},8961:function(t,e,i){"use strict";i.d(e,{r:function(){return n}});var r=i(1830);function n(t){return r.O.isServer?null:t instanceof Node?t.ownerDocument:null!=t&&t.hasOwnProperty("current")&&t.current instanceof Node?t.current.ownerDocument:document}},7253:function(t,e,i){"use strict";function r(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function n(){return/Android/gi.test(window.navigator.userAgent)}function s(){return r()||n()}i.d(e,{gn:function(){return r},tq:function(){return s}})},8287:function(t,e,i){"use strict";let r,n;i.d(e,{AN:function(){return l},l4:function(){return h},oA:function(){return m},sY:function(){return u},yV:function(){return d}});var s=i(7294),a=i(5602),o=i(8844),l=((r=l||{})[r.None=0]="None",r[r.RenderStrategy=1]="RenderStrategy",r[r.Static=2]="Static",r),h=((n=h||{})[n.Unmount=0]="Unmount",n[n.Hidden=1]="Hidden",n);function u(t){let{ourProps:e,theirProps:i,slot:r,defaultTag:n,features:s,visible:a=!0,name:l}=t,h=p(i,e);if(a)return c(h,r,n,l);let u=null!=s?s:0;if(2&u){let{static:t=!1,...e}=h;if(t)return c(e,r,n,l)}if(1&u){let{unmount:t=!0,...e}=h;return(0,o.E)(t?0:1,{0:()=>null,1:()=>c({...e,hidden:!0,style:{display:"none"}},r,n,l)})}return c(h,r,n,l)}function c(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,{as:n=i,children:o,refName:l="ref",...h}=g(t,["unmount","static"]),u=void 0!==t.ref?{[l]:t.ref}:{},c="function"==typeof o?o(e):o;"className"in h&&h.className&&"function"==typeof h.className&&(h.className=h.className(e));let d={};if(e){let t=!1,i=[];for(let[r,n]of Object.entries(e))"boolean"==typeof n&&(t=!0),!0===n&&i.push(r);t&&(d["data-headlessui-state"]=i.join(" "))}if(n===s.Fragment&&Object.keys(m(h)).length>0){if(!(0,s.isValidElement)(c)||Array.isArray(c)&&c.length>1)throw Error(['Passing props on "Fragment"!',"","The current component <".concat(r,' /> is rendering a "Fragment".'),"However we need to passthrough the following props:",Object.keys(h).map(t=>"  - ".concat(t)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(t=>"  - ".concat(t)).join("\n")].join("\n"));let t=c.props,e="function"==typeof(null==t?void 0:t.className)?function(){for(var e=arguments.length,i=Array(e),r=0;r<e;r++)i[r]=arguments[r];return(0,a.A)(null==t?void 0:t.className(...i),h.className)}:(0,a.A)(null==t?void 0:t.className,h.className),i=e?{className:e}:{};return(0,s.cloneElement)(c,Object.assign({},p(c.props,m(g(h,["ref"]))),d,u,f(c.ref,u.ref),i))}return(0,s.createElement)(n,Object.assign({},g(h,["ref"]),n!==s.Fragment&&u,n!==s.Fragment&&d),c)}function f(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return{ref:e.every(t=>null==t)?void 0:t=>{for(let i of e)null!=i&&("function"==typeof i?i(t):i.current=t)}}}function p(){for(var t,e=arguments.length,i=Array(e),r=0;r<e;r++)i[r]=arguments[r];if(0===i.length)return{};if(1===i.length)return i[0];let n={},s={};for(let e of i)for(let i in e)i.startsWith("on")&&"function"==typeof e[i]?(null!=(t=s[i])||(s[i]=[]),s[i].push(e[i])):n[i]=e[i];if(n.disabled||n["aria-disabled"])return Object.assign(n,Object.fromEntries(Object.keys(s).map(t=>[t,void 0])));for(let t in s)Object.assign(n,{[t](e){for(var i=arguments.length,r=Array(i>1?i-1:0),n=1;n<i;n++)r[n-1]=arguments[n];for(let i of s[t]){if((e instanceof Event||(null==e?void 0:e.nativeEvent)instanceof Event)&&e.defaultPrevented)return;i(e,...r)}}});return n}function d(t){var e;return Object.assign((0,s.forwardRef)(t),{displayName:null!=(e=t.displayName)?e:t.name})}function m(t){let e=Object.assign({},t);for(let t in e)void 0===e[t]&&delete e[t];return e}function g(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=Object.assign({},t);for(let t of e)t in i&&delete i[t];return i}}},function(t){var e=function(e){return t(t.s=e)};t.O(0,[774,179],function(){return e(6840),e(9090)}),_N_E=t.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.