PageSourceSearch

https://www.crossoceanpartners.com/wp-content/themes/cross-ocean-partners/public/js/bundle.js?ver=1784885263

js crossoceanpartners.com collected 2026-10-05 06:46:09 UTC 1,389,910 bytes, 2 lines download raw bytes

vendor: 5,381 bytes, lines 1-2
1/*! For license information please see bundle.js.LICENSE.txt */
2(function(){var __webpack_modules__={75:function(t,e,i){"use strict";var r=i(453),n=i(487),s=n(r("String.prototype.indexOf"));t.exports=function(t,e){var i=r(t,!!e);return"function"==typeof i&&s(t,".prototype.")>-1?n(i):i}},487:function(t,e,i){"use strict";var r=i(743),n=i(453),s=i(897),a=i(675),o=n("%Function.prototype.apply%"),l=n("%Function.prototype.call%"),h=n("%Reflect.apply%",!0)||r.call(l,o),c=i(36),u=n("%Math.max%");t.exports=function(t){if("function"!=typeof t)throw new a("a function is required");var e=h(r,l,arguments);return s(e,1+u(0,t.length-(arguments.length-1)),!0)};var d=function(){return h(r,o,arguments)};c?c(t.exports,"apply",{value:d}):t.exports.apply=d},41:function(t,e,i){"use strict";var r=i(36),n=i(68),s=i(675),a=i(795);t.exports=function(t,e,i){if(!t||"object"!=typeof t&&"function"!=typeof t)throw new s("`obj` must be an object or a function`");if("string"!=typeof e&&"symbol"!=typeof e)throw new s("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new s("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new s("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new s("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new s("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,h=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],u=!!a&&a(t,e);if(r)r(t,e,{configurable:null===h&&u?u.configurable:!h,enumerable:null===o&&u?u.enumerable:!o,value:i,writable:null===l&&u?u.writable:!l});else{if(!c&&(o||l||h))throw new n("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");t[e]=i}}},570:function(t){"use strict";function e(t,e,r){r=r||2;var s,a,o,l,u,d,f,m=e&&e.length,g=m?e[0]*r:t.length,y=i(t,0,g,r,!0),v=[];if(!y||y.next===y.prev)return v;if(m&&(y=function(t,e,r,n){var s,a,o,l=[];for(s=0,a=e.length;s<a;s++)(o=i(t,e[s]*n,s<a-1?e[s+1]*n:t.length,n,!1))===o.next&&(o.steiner=!0),l.push(p(o));for(l.sort(h),s=0;s<l.length;s++)r=c(l[s],r);return r}(t,e,y,r)),t.length>80*r){s=o=t[0],a=l=t[1];for(var x=r;x<g;x+=r)(u=t[x])<s&&(s=u),(d=t[x+1])<a&&(a=d),u>o&&(o=u),d>l&&(l=d);f=0!==(f=Math.max(o-s,l-a))?32767/f:0}return n(y,v,r,s,a,f,0),v}function i(t,e,i,r,n){var s,a;if(n===A(t,e,i,r)>0)for(s=e;s<i;s+=r)a=E(s,t[s],t[s+1],a);else for(s=i-r;s>=e;s-=r)a=E(s,t[s],t[s+1],a);return a&&y(a,a.next)&&(w(a),a=a.next),a}function r(t,e){if(!t)return t;e||(e=t);var i,r=t;do{if(i=!1,r.steiner||!y(r,r.next)&&0!==g(r.prev,r,r.next))r=r.next;else{if(w(r),(r=e=r.prev)===r.next)break;i=!0}}while(i||r!==e);return e}function n(t,e,i,h,c,u,p){if(t){!p&&u&&function(t,e,i,r){var n=t;do{0===n.z&&(n.z=d(n.x,n.y,e,i,r)),n.prevZ=n.prev,n.nextZ=n.next,n=n.next}while(n!==t);n.prevZ.nextZ=null,n.prevZ=null,function(t){var e,i,r,n,s,a,o,l,h=1;do{for(i=t,t=null,s=null,a=0;i;){for(a++,r=i,o=0,e=0;e<h&&(o++,r=r.nextZ);e++);for(l=h;o>0||l>0&&r;)0!==o&&(0===l||!r||i.z<=r.z)?(n=i,i=i.nextZ,o--):(n=r,r=r.nextZ,l--),s?s.nextZ=n:t=n,n.prevZ=s,s=n;i=r}s.nextZ=null,h*=2}while(a>1)}(n)}(t,h,c,u);for(var f,m,g=t;t.prev!==t.next;)if(f=t.prev,m=t.next,u?a(t,h,c,u):s(t))e.push(f.i/i|0),e.push(t.i/i|0),e.push(m.i/i|0),w(t),t=m.next,g=m.next;else if((t=m)===g){p?1===p?n(t=o(r(t),e,i),e,i,h,c,u,2):2===p&&l(t,e,i,h,c,u):n(r(t),e,i,h,c,u,1);break}}}function s(t){var e=t.prev,i=t,r=t.next;if(g(e,i,r)>=0)return!1;for(var n=e.x,s=i.x,a=r.x,o=e.y,l=i.y,h=r.y,c=n<s?n<a?n:a:s<a?s:a,u=o<l?o<h?o:h:l<h?l:h,d=n>s?n>a?n:a:s>a?s:a,p=o>l?o>h?o:h:l>h?l:h,m=r.next;m!==e;){if(m.x>=c&&m.x<=d&&m.y>=u&&m.y<=p&&f(n,o,s,l,a,h,m.x,m.y)&&g(m.prev,m,m.next)>=0)return!1;m=m.next}return!0}function a(t,e,i,r){var n=t.prev,s=t,a=t.next;if(g(n,s,a)>=0)return!1;for(var o=n.x,l=s.x,h=a.x,c=n.y,u=s.y,p=a.y,m=o<l?o<h?o:h:l<h?l:h,y=c<u?c<p?c:p:u<p?u:p,v=o>l?o>h?o:h:l>h?l:h,x=c>u?c>p?c:p:u>p?u:p,_=d(m,y,e,i,r),b=d(v,x,e,i,r),S=t.prevZ,E=t.nextZ;S&&S.z>=_&&E&&E.z<=b;){if(S.x>=m&&S.x<=v&&S.y>=y&&S.y<=x&&S!==n&&S!==a&&f(o,c,l,u,h,p,S.x,S.y)&&g(S.prev,S,S.next)>=0)return!1;if(S=S.prevZ,E.x>=m&&E.x<=v&&E.y>=y&&E.y<=x&&E!==n&&E!==a&&f(o,c,l,u,h,p,E.x,E.y)&&g(E.prev,E,E.next)>=0)return!1;E=E.nextZ}for(;S&&S.z>=_;){if(S.x>=m&&S.x<=v&&S.y>=y&&S.y<=x&&S!==n&&S!==a&&f(o,c,l,u,h,p,S.x,S.y)&&g(S.prev,S,S.next)>=0)return!1;S=S.prevZ}for(;E&&E.z<=b;){if(E.x>=m&&E.x<=v&&E.y>=y&&E.y<=x&&E!==n&&E!==a&&f(o,c,l,u,h,p,E.x,E.y)&&g(E.prev,E,E.next)>=0)return!1;E=E.nextZ}return!0}function o(t,e,i){var n=t;do{var s=n.prev,a=n.next.next;!y(s,a)&&v(s,n,n.next,a)&&b(s,a)&&b(a,s)&&(e.push(s.i/i|0),e.push(n.i/i|0),e.push(a.i/i|0),w(n),w(n.next),n=t=a),n=n.next}while(n!==t);return r(n)}function l(t,e,i,s,a,o){var l=t;do{for(var h=l.next.next;h!==l.prev;){if(l.i!==h.i&&m(l,h)){var c=S(l,h);return l=r(l,l.next),c=r(c,c.next),n(l,e,i,s,a,o,0),void n(c,e,i,s,a,o,0)}h=h.next}l=l.next}while(l!==t)}function h(t,e){return t.x-e.x}function c(t,e){var i=function(t,e){var i,r=e,n=t.x,s=t.y,a=-1/0;do{if(s<=r.y&&s>=r.next.y&&r.next.y!==r.y){var o=r.x+(s-r.y)*(r.next.x-r.x)/(r.next.y-r.y
vendor: 4,903 bytes, line 2
2);if(o<=n&&o>a&&(a=o,i=r.x<r.next.x?r:r.next,o===n))return i}r=r.next}while(r!==e);if(!i)return null;var l,h=i,c=i.x,d=i.y,p=1/0;r=i;do{n>=r.x&&r.x>=c&&n!==r.x&&f(s<d?n:a,s,c,d,s<d?a:n,s,r.x,r.y)&&(l=Math.abs(s-r.y)/(n-r.x),b(r,t)&&(l<p||l===p&&(r.x>i.x||r.x===i.x&&u(i,r)))&&(i=r,p=l)),r=r.next}while(r!==h);return i}(t,e);if(!i)return e;var n=S(i,t);return r(n,n.next),r(i,i.next)}function u(t,e){return g(t.prev,t,e.prev)<0&&g(e.next,t,t.next)<0}function d(t,e,i,r,n){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=(t-i)*n|0)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=(e-r)*n|0)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function p(t){var e=t,i=t;do{(e.x<i.x||e.x===i.x&&e.y<i.y)&&(i=e),e=e.next}while(e!==t);return i}function f(t,e,i,r,n,s,a,o){return(n-a)*(e-o)>=(t-a)*(s-o)&&(t-a)*(r-o)>=(i-a)*(e-o)&&(i-a)*(s-o)>=(n-a)*(r-o)}function m(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var i=t;do{if(i.i!==t.i&&i.next.i!==t.i&&i.i!==e.i&&i.next.i!==e.i&&v(i,i.next,t,e))return!0;i=i.next}while(i!==t);return!1}(t,e)&&(b(t,e)&&b(e,t)&&function(t,e){var i=t,r=!1,n=(t.x+e.x)/2,s=(t.y+e.y)/2;do{i.y>s!=i.next.y>s&&i.next.y!==i.y&&n<(i.next.x-i.x)*(s-i.y)/(i.next.y-i.y)+i.x&&(r=!r),i=i.next}while(i!==t);return r}(t,e)&&(g(t.prev,t,e.prev)||g(t,e.prev,e))||y(t,e)&&g(t.prev,t,t.next)>0&&g(e.prev,e,e.next)>0)}function g(t,e,i){return(e.y-t.y)*(i.x-e.x)-(e.x-t.x)*(i.y-e.y)}function y(t,e){return t.x===e.x&&t.y===e.y}function v(t,e,i,r){var n=_(g(t,e,i)),s=_(g(t,e,r)),a=_(g(i,r,t)),o=_(g(i,r,e));return n!==s&&a!==o||!(0!==n||!x(t,i,e))||!(0!==s||!x(t,r,e))||!(0!==a||!x(i,t,r))||!(0!==o||!x(i,e,r))}function x(t,e,i){return e.x<=Math.max(t.x,i.x)&&e.x>=Math.min(t.x,i.x)&&e.y<=Math.max(t.y,i.y)&&e.y>=Math.min(t.y,i.y)}function _(t){return t>0?1:t<0?-1:0}function b(t,e){return g(t.prev,t,t.next)<0?g(t,e,t.next)>=0&&g(t,t.prev,e)>=0:g(t,e,t.prev)<0||g(t,t.next,e)<0}function S(t,e){var i=new T(t.i,t.x,t.y),r=new T(e.i,e.x,e.y),n=t.next,s=e.prev;return t.next=e,e.prev=t,i.next=n,n.prev=i,r.next=i,i.prev=r,s.next=r,r.prev=s,r}function E(t,e,i,r){var n=new T(t,e,i);return r?(n.next=r.next,n.prev=r,r.next.prev=n,r.next=n):(n.prev=n,n.next=n),n}function w(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function T(t,e,i){this.i=t,this.x=e,this.y=i,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}function A(t,e,i,r){for(var n=0,s=e,a=i-r;s<i;s+=r)n+=(t[a]-t[s])*(t[s+1]+t[a+1]),a=s;return n}t.exports=e,t.exports.default=e,e.deviation=function(t,e,i,r){var n=e&&e.length,s=n?e[0]*i:t.length,a=Math.abs(A(t,0,s,i));if(n)for(var o=0,l=e.length;o<l;o++){var h=e[o]*i,c=o<l-1?e[o+1]*i:t.length;a-=Math.abs(A(t,h,c,i))}var u=0;for(o=0;o<r.length;o+=3){var d=r[o]*i,p=r[o+1]*i,f=r[o+2]*i;u+=Math.abs((t[d]-t[f])*(t[p+1]-t[d+1])-(t[d]-t[p])*(t[f+1]-t[d+1]))}return 0===a&&0===u?0:Math.abs((u-a)/a)},e.flatten=function(t){for(var e=t[0][0].length,i={vertices:[],holes:[],dimensions:e},r=0,n=0;n<t.length;n++){for(var s=0;s<t[n].length;s++)for(var a=0;a<e;a++)i.vertices.push(t[n][s][a]);n>0&&(r+=t[n-1].length,i.holes.push(r))}return i}},36:function(t,e,i){"use strict";var r=i(453)("%Object.defineProperty%",!0)||!1;if(r)try{r({},"a",{value:1})}catch(t){r=!1}t.exports=r},237:function(t){"use strict";t.exports=EvalError},383:function(t){"use strict";t.exports=Error},290:function(t){"use strict";t.exports=RangeError},538:function(t){"use strict";t.exports=ReferenceError},68:function(t){"use strict";t.exports=SyntaxError},675:function(t){"use strict";t.exports=TypeError},345:function(t){"use strict";t.exports=URIError},228:function(t){"use strict";var e=Object.prototype.hasOwnProperty,i="~";function r(){}function n(t,e,i){this.fn=t,this.context=e,this.once=i||!1}function s(t,e,r,s,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var o=new n(r,s||t,a),l=i?i+e:e;return t._events[l]?t._events[l].fn?t._events[l]=[t._events[l],o]:t._events[l].push(o):(t._events[l]=o,t._eventsCount++),t}function a(t,e){0==--t._eventsCount?t._events=new r:delete t._events[e]}function o(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(i=!1)),o.prototype.eventNames=function(){var t,r,n=[];if(0===this._eventsCount)return n;for(r in t=this._events)e.call(t,r)&&n.push(i?r.slice(1):r);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(t)):n},o.prototype.listeners=function(t){var e=i?i+t:t,r=this._events[e];if(!r)return[];if(r.fn)return[r.fn];for(var n=0,s=r.length,a=new Array(s);n<s;n++)a[n]=r[n].fn;return a},o.prototype.listenerCount=function(t){var e=i?i+t:t,r=this._events[e];return r?r.fn?1:r.length:0},o.prototype.emit=function(t,e,r,n,s,a){var o=i?i+t:t;if(!this._events[o])return!1;var l,h,c=this._events[o],u=arguments.length;
2if(c.fn){switch(c.once&&this.removeListener(t,c.fn,void 0,!0),u){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,e),!0;case 3:return c.fn.call(c.context,e,r),!0;case 4:return c.fn.call(c.context,e,r,n),!0;case 5:return c.fn.call(c.context,e,r,n,s),!0;case 6:return c.fn.call(c.context,e,r,n,s,a),!0}for(h=1,l=new Array(u-1);h<u;h++)l[h-1]=arguments[h];c.fn.apply(c.context,l)}else{var d,p=c.length;for(h=0;h<p;h++)switch(c[h].once&&this.removeListener(t,c[h].fn,void 0,!0),u){case 1:c[h].fn.call(c[h].context);break;case 2:c[h].fn.call(c[h].context,e);break;case 3:c[h].fn.call(c[h].context,e,r);break;case 4:c[h].fn.call(c[h].context,e,r,n);break;default:if(!l)for(d=1,l=new Array(u-1);d<u;d++)l[d-1]=arguments[d];c[h].fn.apply(c[h].context,l)}}return!0},o.prototype.on=function(t,e,i){return s(this,t,e,i,!1)},o.prototype.once=function(t,e,i){return s(this,t,e,i,!0)},o.prototype.removeListener=function(t,e,r,n){var s=i?i+t:t;if(!this._events[s])return this;if(!e)return a(this,s),this;var o=this._events[s];if(o.fn)o.fn!==e||n&&!o.once||r&&o.context!==r||a(this,s);else{for(var l=0,h=[],c=o.length;l<c;l++)(o[l].fn!==e||n&&!o[l].once||r&&o[l].context!==r)&&h.push(o[l]);h.length?this._events[s]=1===h.length?h[0]:h:a(this,s)}return this},o.prototype.removeAllListeners=function(t){var e;return t?(e=i?i+t:t,this._events[e]&&a(this,e)):(this._events=new r,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prefixed=i,o.EventEmitter=o,t.exports=o},353:function(t){"use strict";var e=Object.prototype.toString,i=Math.max,r=function(t,e){for(var i=[],r=0;r<t.length;r+=1)i[r]=t[r];for(var n=0;n<e.length;n+=1)i[n+t.length]=e[n];return i};t.exports=function(t){var n=this;if("function"!=typeof n||"[object Function]"!==e.apply(n))throw new TypeError("Function.prototype.bind called on incompatible "+n);for(var s,a=function(t,e){for(var i=[],r=1,n=0;r<t.length;r+=1,n+=1)i[n]=t[r];return i}(arguments),o=i(0,n.length-a.length),l=[],h=0;h<o;h++)l[h]="$"+h;if(s=Function("binder","return function ("+function(t,e){for(var i="",r=0;r<t.length;r+=1)i+=t[r],r+1<t.length&&(i+=",");return i}(l)+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof s){var e=n.apply(this,r(a,arguments));return Object(e)===e?e:this}return n.apply(t,r(a,arguments))})),n.prototype){var c=function(){};c.prototype=n.prototype,s.prototype=new c,c.prototype=null}return s}},743:function(t,e,i){"use strict";var r=i(353);t.exports=Function.prototype.bind||r},453:function(t,e,i){"use strict";var r,n=i(383),s=i(237),a=i(290),o=i(538),l=i(68),h=i(675),c=i(345),u=Function,d=function(t){try{return u('"use strict"; return ('+t+").constructor;")()}catch(t){}},p=Object.getOwnPropertyDescriptor;if(p)try{p({},"")}catch(t){p=null}var f=function(){throw new h},m=p?function(){try{return f}catch(t){try{return p(arguments,"callee").get}catch(t){return f}}}():f,g=i(39)(),y=i(24)(),v=Object.getPrototypeOf||(y?function(t){return t.__proto__}:null),x={},_="undefined"!=typeof Uint8Array&&v?v(Uint8Array):r,b={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":g&&v?v([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":x,"%AsyncGenerator%":x,"%AsyncGeneratorFunction%":x,"%AsyncIteratorPrototype%":x,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":n,"%eval%":eval,"%EvalError%":s,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":u,"%GeneratorFunction%":x,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
2IteratorPrototype%":g&&v?v(v([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&g&&v?v((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":a,"%ReferenceError%":o,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&g&&v?v((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":g&&v?v(""[Symbol.iterator]()):r,"%Symbol%":g?Symbol:r,"%SyntaxError%":l,"%ThrowTypeError%":m,"%TypedArray%":_,"%TypeError%":h,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":c,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};if(v)try{null.error}catch(t){var S=v(v(t));b["%Error.prototype%"]=S}var E=function t(e){var i;if("%AsyncFunction%"===e)i=d("async function () {}");else if("%GeneratorFunction%"===e)i=d("function* () {}");else if("%AsyncGeneratorFunction%"===e)i=d("async function* () {}");else if("%AsyncGenerator%"===e){var r=t("%AsyncGeneratorFunction%");r&&(i=r.prototype)}else if("%AsyncIteratorPrototype%"===e){var n=t("%AsyncGenerator%");n&&v&&(i=v(n.prototype))}return b[e]=i,i},w={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},T=i(743),A=i(957),M=T.call(Function.call,Array.prototype.concat),P=T.call(Function.apply,Array.prototype.splice),C=T.call(Function.call,String.prototype.replace),k=T.call(Function.call,String.prototype.slice),I=T.call(Function.call,RegExp.prototype.exec),D=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,R=/\\(\\)?/g,O=function(t,e){var i,r=t;if(A(w,r)&&(r="%"+(i=w[r])[0]+"%"),A(b,r)){var n=b[r];if(n===x&&(n=E(r)),void 0===n&&!e)throw new h("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:r,value:n}}throw new l("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new h("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new h('"allowMissing" argument must be a boolean');if(null===I(/^%?[^%]*%?$/,t))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=function(t){var e=k(t,0,1),i=k(t,-1);if("%"===e&&"%"!==i)throw new l("invalid intrinsic syntax, expected closing `%`");if("%"===i&&"%"!==e)throw new l("invalid intrinsic syntax, expected opening `%`");var r=[];
vendor: 7,132 bytes, line 2
2return C(t,D,(function(t,e,i,n){r[r.length]=i?C(n,R,"$1"):e||t})),r}(t),r=i.length>0?i[0]:"",n=O("%"+r+"%",e),s=n.name,a=n.value,o=!1,c=n.alias;c&&(r=c[0],P(i,M([0,1],c)));for(var u=1,d=!0;u<i.length;u+=1){var f=i[u],m=k(f,0,1),g=k(f,-1);if(('"'===m||"'"===m||"`"===m||'"'===g||"'"===g||"`"===g)&&m!==g)throw new l("property names with quotes must have matching quotes");if("constructor"!==f&&d||(o=!0),A(b,s="%"+(r+="."+f)+"%"))a=b[s];else if(null!=a){if(!(f in a)){if(!e)throw new h("base intrinsic for "+t+" exists, but the property is not available.");return}if(p&&u+1>=i.length){var y=p(a,f);a=(d=!!y)&&"get"in y&&!("originalValue"in y.get)?y.get:a[f]}else d=A(a,f),a=a[f];d&&!o&&(b[s]=a)}}return a}},795:function(t,e,i){"use strict";var r=i(453)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(t){r=null}t.exports=r},592:function(t,e,i){"use strict";var r=i(36),n=function(){return!!r};n.hasArrayLengthDefineBug=function(){if(!r)return null;try{return 1!==r([],"length",{value:1}).length}catch(t){return!0}},t.exports=n},24:function(t){"use strict";var e={__proto__:null,foo:{}},i=Object;t.exports=function(){return{__proto__:e}.foo===e.foo&&!(e instanceof i)}},39:function(t,e,i){"use strict";var r="undefined"!=typeof Symbol&&Symbol,n=i(333);t.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&n()}},333:function(t){"use strict";t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),i=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(i))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var r=Object.getOwnPropertySymbols(t);if(1!==r.length||r[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var n=Object.getOwnPropertyDescriptor(t,e);if(42!==n.value||!0!==n.enumerable)return!1}return!0}},957:function(t,e,i){"use strict";var r=Function.prototype.call,n=Object.prototype.hasOwnProperty,s=i(743);t.exports=s.call(r,n)},158:function(t){var e=function(){"use strict";var t,e,i,r,n,s,a,o,l,h,c,u,d,p,f,m,g,y,v,x,_,b,S,E="leader-line",w=1,T=2,A=3,M=4,P={top:w,right:T,bottom:A,left:M},C=1,k=2,I=3,D=4,R=5,O={straight:C,arc:k,fluid:I,magnet:D,grid:R},L="behind",F=E+"-defs",B='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" id="leader-line-defs"><style><![CDATA[.leader-line{position:absolute;overflow:visible!important;pointer-events:none!important;font-size:16px}#leader-line-defs{width:0;height:0;position:absolute;left:0;top:0}.leader-line-line-path{fill:none}.leader-line-mask-bg-rect{fill:#fff}.leader-line-caps-mask-anchor,.leader-line-caps-mask-marker-shape{fill:#000}.leader-line-caps-mask-anchor{stroke:#000}.leader-line-caps-mask-line,.leader-line-plugs-face{stroke:transparent}.leader-line-line-mask-shape{stroke:#fff}.leader-line-line-outline-mask-shape{stroke:#000}.leader-line-plug-mask-shape{fill:#fff;stroke:#000}.leader-line-plug-outline-mask-shape{fill:#000;stroke:#fff}.leader-line-areaAnchor{position:absolute;overflow:visible!important}]]></style><defs><circle id="leader-line-disc" cx="0" cy="0" r="5"/><rect id="leader-line-square" x="-5" y="-5" width="10" height="10"/><polygon id="leader-line-arrow1" points="-8,-8 8,0 -8,8 -5,0"/><polygon id="leader-line-arrow2" points="-4,-8 4,0 -4,8 -7,5 -2,0 -7,-5"/><polygon id="leader-line-arrow3" points="-4,-5 8,0 -4,5"/><g id="leader-line-hand"><path style="fill: #fcfcfc" d="M9.19 11.14h4.75c1.38 0 2.49-1.11 2.49-2.49 0-.51-.15-.98-.41-1.37h1.3c1.38 0 2.49-1.11 2.49-2.49s-1.11-2.53-2.49-2.53h1.02c1.38 0 2.49-1.11 2.49-2.49s-1.11-2.49-2.49-2.49h14.96c1.37 0 2.49-1.11 2.49-2.49s-1.11-2.49-2.49-2.49H16.58C16-9.86 14.28-11.14 9.7-11.14c-4.79 0-6.55 3.42-7.87 4.73H-2.14v13.23h3.68C3.29 9.97 5.47 11.14 9.19 11.14L9.19 11.14Z"/><path style="fill: black" d="M13.95 12c1.85 0 3.35-1.5 3.35-3.35 0-.17-.02-.34-.04-.51h.07c1.85 0 3.35-1.5 3.35-3.35 0-.79-.27-1.51-.72-2.08 1.03-.57 1.74-1.67 1.74-2.93 0-.59-.16-1.15-.43-1.63h12.04c1.85 0 3.35-1.5 3.35-3.35 0-1.85-1.5-3.35-3.35-3.35H17.2C16.26-10.93 13.91-12 9.7-12 5.36-12 3.22-9.4 1.94-7.84c0 0-.29.33-.5.57-.63 0-3.58 0-3.58 0C-2.61-7.27-3-6.88-3-6.41v13.23c0 .47.39.86.86.86 0 0 2.48 0 3.2 0C2.9 10.73 5.29 12 9.19 12L13.95 12ZM9.19 10.28c-3.46 0-5.33-1.05-6.9-3.87-.15-.27-.44-.44-.75-.44 0 0-1.81 0-2.82 0V-5.55c1.06 0 3.11 0 3.11 0 .25 0 .44-.06.61-.25l.83-.95c1.23-1.49 2.91-3.53 6.43-3.53 3.45 0 4.9.74 5.57 1.72h-4.3c-.48 0-.86.38-.86.86s.39.86.86.86h22.34c.9 0 1.63.73 1.63 1.63 0 .9-.73 1.63-1.63 1.63H15.83c-.48 0-.86.38-.86.86 0 .47.39.86.86.86h2.52c.9 0 1.63.73 1.63 1.63s-.73 1.63-1.63 1.63h-3.12c-.48 0-.86.38-.86.86 0 .47.39.86.86.86h2.11c.88 0 1.63.76 1.63 1.67 0 .9-.73 1.63-1.63 1.63h-3.2c-.48 0-.86.39-.86.86 0 .47.39.86.86.86h1.36c.05.16.09.34.09.51 0 .9-.73 1.63-1.63 1.63C13.95 10.28 9.19 10.28 9.19 10.28Z"/></g><g id="leader-line-crosshair"><path d="M0-78.97c-43.54 0-78.97 35.43-78.97 78.97 0 43.54 35.43 78.97 78.97 78.97s78.97-35.43 78.97-78.97C78.97-43.54 43.55-78.97 0-78.97ZM76.51-1.21h-9.91v-9.11h-2.43v9.11h-11.45c-.64-28.12-23.38-50.86-51.5-51.5V-64.17h9.11V-66.6h-9.11v-9.91C42.46-75.86 75.86-42.45 76.51-1.21ZM-1.21-30.76h-9.11v2.43h9.11V-4.2c-1.44.42-2.57 1.54-2.98 2.98H-28.33v-9.11h-2.43v9.11H-50.29C-49.65-28-27.99-49.65-1.21-50.29V-30.76ZM-30.76 1.21v9.11h2.43v-9.11H-4.2c.42 1.44 1.54 2.57 2.98 2.98v24.13h-9.11v2.43h9.11v19.53C-27.99 49.65-49.65 28-50.29 1.21H-30.76ZM1.22 30.75h9.11v-2.43h-9.11V4.2c1.44-.42 2.56-1.54 2.98-2.98h24.13v9.11h2.43v-9.11h19.53C49.65 28 28 49.65 1.22 50.29V30.75ZM30.76-1.21v-9.11h-2.43v9.11H4.2c-.42-1.44-1.54-2.56-2.98-2.98V-28.33h9.11v-2.43h-9.11V-50.29C28-49.65 49.65-28 50.29-1.21H30.76ZM-1.21-76.51v9.91h-9.11v2.43h9.11v11.45c-28.12.64-50.86 23.38-51.5 51.5H-64.17v-9.11H-66.6v9.11h-9.91C-75.86-42.45-42.45-75.86-1.21-76.51ZM-76.51 1.21h9.91v9.11h2.43v-9.11h11.45c.64 28.12 23.38 50.86 51.5 51.5v11.45h-9.11v2.43h9.11v9.91C-42.45 75.86-75.86 42.45-76.51 1.21ZM1.22 76.51v-9.91h9.11v-2.43h-9.11v-11.45c28.12-.64 50.86-23.38 51.5-51.5h11.45v9.11h2.43v-9.11h9.91C75.86 42.45 42.45 75.86 1.22 76.51Z"/><path d="M0 83.58-7.1 96 7.1 96Z"/><path d="M0-83.58 7.1-96-7.1-96"/><path d="M83.58 0 96 7.1 96-7.1Z"/><path d="M-83.58 0-96-7.1-96 7.1Z"/></g></defs></svg>',N={disc:{elmId:"leader-line-disc",noRotate:!0,bBox:{left:-5,top:-5,width:10,height:10,right:5,bottom:5},widthR:2.5,heightR:2.5,bCircle:5,sideLen:5,backLen:5,overhead:0,outlineBase:1,outlineMax:4},square:{elmId:"leader-line-square",noRotate:!0,bBox:{left:-5,top:-5,width:10,height:10,right:5,bottom:5},widthR:2.5,heightR:2.5,bCircle:5,sideLen:5,backLen:5,overhead:0,outlineBase:1,outlineMax:4},arrow1:{elmId:"leader-line-arrow1",bBox:{left:-8,top:-8,width:16,height:16,right:8,bottom:8}
vendor: 37,427 bytes, line 2
2,widthR:4,heightR:4,bCircle:8,sideLen:8,backLen:8,overhead:8,outlineBase:2,outlineMax:1.5},arrow2:{elmId:"leader-line-arrow2",bBox:{left:-7,top:-8,width:11,height:16,right:4,bottom:8},widthR:2.75,heightR:4,bCircle:8,sideLen:8,backLen:7,overhead:4,outlineBase:1,outlineMax:1.75},arrow3:{elmId:"leader-line-arrow3",bBox:{left:-4,top:-5,width:12,height:10,right:8,bottom:5},widthR:3,heightR:2.5,bCircle:8,sideLen:5,backLen:4,overhead:8,outlineBase:1,outlineMax:2.5},hand:{elmId:"leader-line-hand",bBox:{left:-3,top:-12,width:40,height:24,right:37,bottom:12},widthR:10,heightR:6,bCircle:37,sideLen:12,backLen:3,overhead:37},crosshair:{elmId:"leader-line-crosshair",noRotate:!0,bBox:{left:-96,top:-96,width:192,height:192,right:96,bottom:96},widthR:48,heightR:48,bCircle:96,sideLen:96,backLen:96,overhead:0}},V={behind:L,disc:"disc",square:"square",arrow1:"arrow1",arrow2:"arrow2",arrow3:"arrow3",hand:"hand",crosshair:"crosshair"},z={disc:"disc",square:"square",arrow1:"arrow1",arrow2:"arrow2",arrow3:"arrow3",hand:"hand",crosshair:"crosshair"},G=[w,T,A,M],U="auto",H={x:"left",y:"top",width:"width",height:"height"},j=80,W=4,X=5,$=120,Y=8,q=3.75,K=10,Z=30,J=.5522847,Q=.25*Math.PI,tt=/^\s*(\-?[\d\.]+)\s*(\%)?\s*$/,et="http://www.w3.org/2000/svg",it="-ms-scroll-limit"in document.documentElement.style&&"-ms-ime-align"in document.documentElement.style&&!window.navigator.msPointerEnabled,rt=!it&&!!document.uniqueID,nt="MozAppearance"in document.documentElement.style,st=!(it||nt||!window.chrome||!window.CSS),at=!(it||rt||nt||st||window.chrome||!("WebkitAppearance"in document.documentElement.style)),ot=rt||it?.2:.1,lt={path:I,lineColor:"coral",lineSize:4,plugSE:[L,"arrow1"],plugSizeSE:[1,1],lineOutlineEnabled:!1,lineOutlineColor:"indianred",lineOutlineSize:.25,plugOutlineEnabledSE:[!1,!1],plugOutlineSizeSE:[1,1]},ht=(_={}.toString,b={}.hasOwnProperty.toString,S=b.call(Object),function(t){var e,i;return t&&"[object Object]"===_.call(t)&&(!(e=Object.getPrototypeOf(t))||(i=e.hasOwnProperty("constructor")&&e.constructor)&&"function"==typeof i&&b.call(i)===S)}),ct=Number.isFinite||function(t){return"number"==typeof t&&window.isFinite(t)},ut=(p={ease:[.25,.1,.25,1],linear:[0,0,1,1],"ease-in":[.42,0,1,1],"ease-out":[0,0,.58,1],"ease-in-out":[.42,0,.58,1]},f=1e3/60/2,m=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||function(t){setTimeout(t,f)},g=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||function(t){clearTimeout(t)},y=Number.isFinite||function(t){return"number"==typeof t&&window.isFinite(t)},v=[],x=0,{add:function(t,e,i,r,n,s,a){var o,l,h,c,u,d,m,g,y,_,b,S,E,w=++x;function T(e,i){return{value:t(i),timeRatio:e,outputRatio:i}}if("string"==typeof n&&(n=p[n]),t=t||function(){},i<f)l=[T(0,0),T(1,1)];else{if(h=f/i,l=[T(0,0)],0===n[0]&&0===n[1]&&1===n[2]&&1===n[3])for(u=h;u<=1;u+=h)l.push(T(u,u));else for(d=c=(u=h)/10;d<=1;d+=c)_=(y=(g=d)*g)*g,E=3*(b=1-g)*y,u<=(m={x:(S=b*b*3*g)*n[0]+E*n[2]+_,y:S*n[1]+E*n[3]+_}).x&&(l.push(T(m.x,m.y)),u+=h);l.push(T(1,1))}return o={animId:w,frameCallback:e,duration:i,count:r,frames:l,reverse:!!s},v.push(o),!1!==a&&wt(o,a),w},remove:function(t){var e;v.some((function(i,r){return i.animId===t&&(e=r,!(i.framesStart=null))}))&&v.splice(e,1)},start:function(t,e,i){v.some((function(r){return r.animId===t&&(r.reverse=!!e,wt(r,i),!0)}))},stop:function(t,e){var i;return v.some((function(r){return r.animId===t&&(e?null!=r.lastFrame&&(i=r.frames[r.lastFrame].timeRatio):(i=(Date.now()-r.framesStart)/r.duration,r.reverse&&(i=1-i),i<0?i=0:1<i&&(i=1)),!(r.framesStart=null))})),i},validTiming:function(t){return"string"==typeof t?p[t]:Array.isArray(t)&&[0,1,2,3].every((function(e){return y(t[e])&&0<=t[e]&&t[e]<=1}))?[t[0],t[1],t[2],t[3]]:null}}),dt=function(t){t.SVGPathElement.prototype.getPathData&&t.SVGPathElement.prototype.setPathData||function(){function e(t){this._string=t,this._currentIndex=0,this._endIndex=this._string.length,this._prevCommand=null,this._skipOptionalSpaces()}var i={Z:"Z",M:"M",L:"L",C:"C",Q:"Q",A:"A",H:"H",V:"V",S:"S",T:"T",z:"Z",m:"m",l:"l",c:"c",q:"q",a:"a",h:"h",v:"v",s:"s",t:"t"},r=-1!==t.navigator.userAgent.indexOf("MSIE ");function n(t){if(!t||0===t.length)return[];var i=new e(t),r=[];if(i.initialCommandIsMoveTo())for(;i.hasMoreData();){var n=i.parseSegment();if(null===n)break;r.push(n)}return r}function s(t){return t.map((function(t){return{type:t.type,values:Array.prototype.slice.call(t.values)}}))}function a(t){var e=[],i=null,r=null,n=null,s=null,a=null,o=null,l=null;return t.forEach((function(t){var h,c,d,p,f,m,g,y,v,x,_,b,S,E,w;"M"===t.type?(E=t.values[0],w=t.values[1],e.push({type:"M",values:[E,w]}),s=o=E,a=l=w):"C"===t.type?(d=t.values[0],p=t.values[1],h=t.values[2],c=t.values[3],E=t.values[4],w=t.values[5],e.push({type:"C",values:[d,p,h,c,E,w]}),r=h,n=c,s=E,a=w):"L"===t.type?(E=t.values[0],w=t.values[1],e.push({type:"L",values:[E,w]}),s=E,a=w):"H"===t.type?(E=t.values[0],e.push({type:"L",values:[E,a]}),s=E):"V"===t.type?(w=t.values[0],e.push({type:"L",values:[s,w]}),a=w):"S"===t.type?(h=t.values[0],c=t.values[1],E=t.values[2],w=t.values[3],m="C"===i||"S"===i?(f=s+(s-r),a+(a-n)):(f=s,a),e.push({type:"C",values:[f,m,h,c,E,w]}),r=h,n=c,s=E,a=w):"T"===t.type?(E=t.values[0],w=t.values[1],p="Q"===i||"T"===i?(d=s+(s-r),a+(a-n)):(d=s,a),f=s+2*(d-s)/3,m=a+2*(p-a)/3,g=E+2*(d-E)/3,y=w+2*(p-w)/3,e.push({type:"C",values:[f,m,g,y,E,w]}),r=d,n=p,s=E,a=w):"Q"===t.type?(d=t.values[0],p=t.values[1],E=t.values[2],w=t.values[3],f=s+2*(d-s)/3,m=a+2*(p-a)/3,g=E+2*(d-E)/3,y=w+2*(p-w)/3,e.push({type:"C",values:[f,m,g,y,E,w]}),r=d,n=p,s=E,a=w):"A"===t.type?(v=t.values[0],x=t.values[1],_=t.values[2],b=t.values[3],S=t.values[4],E=t.values[5],w=t.values[6],0===v||0===x?(e.push({type:"C",values:[s,a,E,w,E,w]}),s=E,a=w):s===E&&a===w||u(s,a,E,w,v,x,_,b,S).forEach((function(t){e.push({type:"C",values:t}),s=E,a=w}))):"Z"===t.type&&(e.push(t),s=o,a=l),i=t.type})),e}e.prototype={parseSegment:function(){var t=this._string[this._currentIndex],e=i[t]?i[t]:null;if(null===e){if(null===this._prevCommand)return null;if(null===(e=("+"===t||"-"===t||"."===t||"0"<=t&&t<="9")&&"Z"!==this._prevCommand?"M"===this._prevCommand?"L":"m"===this._prevCommand?"l":this._prevCommand:null))return null}else this._currentIndex+=1;var r=null,n=(this._prevCommand=e).toUpperCase();return"H"===n||"V"===n?r=[this._parseNumber()]:"M"===n||"L"===n||"T"===n?r=[this._parseNumber(),this._parseNumber()]:"S"===n||"Q"===n?r=[this._parseNumber(),this._parseNumber(),this._parseNumber(),this._parseNumber()]:"C"===n?r=[this._parseNumber(),this._parseNumber(),this._parseNumber(),this._parseNumber(),this._parseNumber(),this._parseNumber()]:"A"===n?r=[this._parseNumber(),this._parseNumber(),this._parseNumber(),this._parseArcFlag(),this._parseArcFlag(),this._parseNumber(),this._parseNumber()]:"Z"===n&&(this._skipOptionalSpaces(),r=[]),null===r||0<=r.indexOf(null)?null:{type:e,values:r}},hasMoreData:function(){return this._currentIndex<this._endIndex},peekSegmentType:function(){var t=this._string[this._currentIndex];return i[t]?i[t]:null},initialCommandIsMoveTo:function(){if(!this.hasMoreData())return!0;var t=this.peekSegmentType();return"M"===t||"m"===t},_isCurrentSpace:function(){var t=this._string[this._currentIndex];return t<=" "&&(" "===t||"\n"===t||"\t"===t||"\r"===t||"\f"===t)},_skipOptionalSpaces:function(){for(;this._currentIndex<this._endIndex&&this._isCurrentSpace();)this._currentIndex+=1;return this._currentIndex<this._endIndex},_skipOptionalSpacesOrDelimiter:function(){return!(this._currentIndex<this._endIndex&&!this._isCurrentSpace()&&","!==this._string[this._currentIndex])&&(this._skipOptionalSpaces()&&this._currentIndex<this._endIndex&&","===this._string[this._currentIndex]&&(this._currentIndex+=1,this._skipOptionalSpaces()),this._currentIndex<this._endIndex)},_parseNumber:function(){var t=0,e=0,i=1,r=0,n=1,s=1,a=this._currentIndex;if(this._skipOptionalSpaces(),this._currentIndex<this._endIndex&&"+"===this._string[this._currentIndex]?this._currentIndex+=1:this._currentIndex<this._endIndex&&"-"===this._string[this._currentIndex]&&(this._currentIndex+=1,n=-1),this._currentIndex===this._endIndex||(this._string[this._currentIndex]<"0"||"9"<this._string[this._currentIndex])&&"."!==this._string[this._currentIndex])return null;for(var o=this._currentIndex;this._currentIndex<this._endIndex&&"0"<=this._string[this._currentIndex]&&this._string[this._currentIndex]<="9";)this._currentIndex+=1;if(this._currentIndex!==o)for(var l=this._currentIndex-1,h=1;o<=l;)e+=h*(this._string[l]-"0"),--l,h*=10;if(this._currentIndex<this._endIndex&&"."===this._string[this._currentIndex]){if(this._currentIndex+=1,this._currentIndex>=this._endIndex||this._string[this._currentIndex]<"0"||"9"<this._string[this._currentIndex])return null;for(;this._currentIndex<this._endIndex&&"0"<=this._string[this._currentIndex]&&this._string[this._currentIndex]<="9";)i*=10,r+=(this._string.charAt(this._currentIndex)-"0")/i,this._currentIndex+=1}if(this._currentIndex!==a&&this._currentIndex+1<this._endIndex&&("e"===this._string[this._currentIndex]||"E"===this._string[this._currentIndex])&&"x"!==this._string[this._currentIndex+1]&&"m"!==this._string[this._currentIndex+1]){if(this._currentIndex+=1,"+"===this._string[this._currentIndex]?this._currentIndex+=1:"-"===this._string[this._currentIndex]&&(this._currentIndex+=1,s=-1),this._currentIndex>=this._endIndex||this._string[this._currentIndex]<"0"||"9"<this._string[this._currentIndex])return null;for(;this._currentIndex<this._endIndex&&"0"<=this._string[this._currentIndex]&&this._string[this._currentIndex]<="9";)t*=10,t+=this._string[this._currentIndex]-"0",this._currentIndex+=1}var c=e+r;return c*=n,t&&(c*=Math.pow(10,s*t)),a===this._currentIndex?null:(this._skipOptionalSpacesOrDelimiter(),c)},_parseArcFlag:function(){if(this._currentIndex>=this._endIndex)return null;var t=null,e=this._string[this._currentIndex];if(this._currentIndex+=1,"0"===e)t=0;else{if("1"!==e)return null;t=1}return this._skipOptionalSpacesOrDelimiter(),t}};var o=t.SVGPathElement.prototype.setAttribute,l=t.SVGPathElement.prototype.removeAttribute,h=t.Symbol?t.Symbol():"__cachedPathData",c=t.Symbol?t.Symbol():"__cachedNormalizedPathData",u=function(t,e,i,r,n,s,a,o,l,h){function c(t,e,i){return{x:t*Math.cos(i)-e*Math.sin(i),y:t*Math.sin(i)+e*Math.cos(i)}}var d,p,f,m,g,y,v,x,_,b,S,E,w,T,A,M=(d=a,Math.PI*d/180),P=[];h?(T=h[0],A=h[1],E=h[2],w=h[3]):(t=(p=c(t,e,-M)).x,e=p.y,1<(y=(m=(t-(i=(f=c(i,r,-M)).x))/2)*m/(n*n)+(g=(e-(r=f.y))/2)*g/(s*s))&&(n*=y=Math.sqrt(y),s*=y),_=(v=n*n)*(x=s*s)-v*g*g-x*m*m,b=v*g*g+x*m*m,E=(S=(o===l?-1:1)*Math.sqrt(Math.abs(_/b)))*n*g/s+(t+i)/2,w=S*-s*m/n+(e+r)/2,T=Math.asin(parseFloat(((e-w)/s).toFixed(9))),A=Math.asin(parseFloat(((r-w)/s).toFixed(9))),t<E&&(T=Math.PI-T),i<E&&(A=Math.PI-A),T<0&&(T=2*Math.PI+T),A<0&&(A=2*Math.PI+A),l&&A<T&&(T-=2*Math.PI),!l&&T<A&&(A-=2*Math.PI));var C,k,I,D=A-T;Math.abs(D)>120*Math.PI/180&&(C=A,k=i,I=r,A=l&&T<A?T+120*Math.PI/180*1:T+120*Math.PI/180*-1,i=E+n*Math.cos(A),r=w+s*Math.sin(A),P=u(i,r,k,I,n,s,a,0,l,[A,C,E,w])),D=A-T;var R=Math.cos(T),O=Math.sin(T),L=Math.cos(A),F=Math.sin(A),B=Math.tan(D/4),N=4/3*n*B,V=4/3*s*B,z=[t,e],G=[t+N*O,e-V*R],U=[i+N*F,r-V*L],H=[i,r];if(G[0]=2*z[0]-G[0],G[1]=2*z[1]-G[1],h)return[G,U,H].concat(P);P=[G,U,H].concat(P).join().split(",");var j=[],W=[];return P.forEach((function(t,e){e%2?W.push(c(P[e-1],P[e],M).y):W.push(c(P[e],P[e+1],M).x),6===W.length&&(j.push(W),W=[])})),j};t.SVGPathElement.prototype.setAttribute=function(t,e){"d"===t&&(this[h]=null,this[c]=null),o.call(this,t,e)},t.SVGPathElement.prototype.removeAttribute=function(t,e){"d"===t&&(this[h]=null,this[c]=null),l.call(this,t)},t.SVGPathElement.prototype.getPathData=function(t){if(t&&t.normalize){if(this[c])return s(this[c]);this[h]?d=s(this[h]):(d=n(this.getAttribute("d")||""),this[h]=s(d));var e=a((i=[],u=l=o=r=null,d.forEach((function(t){var e,n,s,a,h,c,d=t.type;"M"===d?(h=t.values[0],c=t.values[1],i.push({type:"M",values:[h,c]}),r=l=h,o=u=c):"m"===d?(h=r+t.values[0],c=o+t.values[1],i.push({type:"M",values:[h,c]}),r=l=h,o=u=c):"L"===d?(h=t.values[0],c=t.values[1],i.push({type:"L",values:[h,c]}),r=h,o=c):"l"===d?(h=r+t.values[0],c=o+t.values[1],i.push({type:"L",values:[h,c]}),r=h,o=c):"C"===d?(e=t.values[0],n=t.values[1],s=t.values[2],a=t.values[3],h=t.values[4],c=t.values[5],i.push({type:"C",values:[e,n,s,a,h,c]}),r=h,o=c):"c"===d?(e=r+t.values[0],n=o+t.values[1],s=r+t.values[2],a=o+t.values[3],h=r+t.values[4],c=o+t.values[5],i.push({type:"C",values:[e,n,s,a,h,c]}),r=h,o=c):"Q"===d?(e=t.values[0],n=t.values[1],h=t.values[2],c=t.values[3],i.push({type:"Q",values:[e,n,h,c]}),r=h,o=c):"q"===d?(e=r+t.values[0],n=o+t.values[1],h=r+t.values[2],c=o+t.values[3],i.push({type:"Q",values:[e,n,h,c]}),r=h,o=c):"A"===d?(h=t.values[5],c=t.values[6],i.push({type:"A",values:[t.values[0],t.values[1],t.values[2],t.values[3],t.values[4],h,c]}),r=h,o=c):"a"===d?(h=r+t.values[5],c=o+t.values[6],i.push({type:"A",values:[t.values[0],t.values[1],t.values[2],t.values[3],t.values[4],h,c]}),r=h,o=c):"H"===d?(h=t.values[0],i.push({type:"H",values:[h]}),r=h):"h"===d?(h=r+t.values[0],i.push({type:"H",values:[h]}),r=h):"V"===d?(c=t.values[0],i.push({type:"V",values:[c]}),o=c):"v"===d?(c=o+t.values[0],i.push({type:"V",values:[c]}),o=c):"S"===d?(s=t.values[0],a=t.values[1],h=t.values[2],c=t.values[3],i.push({type:"S",values:[s,a,h,c]}),r=h,o=c):"s"===d?(s=r+t.values[0],a=o+t.values[1],h=r+t.values[2],c=o+t.values[3],i.push({type:"S",values:[s,a,h,c]}),r=h,o=c):"T"===d?(h=t.values[0],c=t.values[1],i.push({type:"T",values:[h,c]}),r=h,o=c):"t"===d?(h=r+t.values[0],c=o+t.values[1],i.push({type:"T",values:[h,c]}),r=h,o=c):"Z"!==d&&"z"!==d||(i.push({type:"Z",values:[]}),r=l,o=u)})),i));return this[c]=s(e),e}if(this[h])return s(this[h]);var i,r,o,l,u,d=n(this.getAttribute("d")||"");return this[h]=s(d),d},t.SVGPathElement.prototype.setPathData=function(t){if(0===t.length)r?this.setAttribute("d",""):this.removeAttribute("d");else{for(var e="",i=0,n=t.length;i<n;i+=1){var s=t[i];0<i&&(e+=" "),e+=s.type,s.values&&0<s.values.length&&(e+=" "+s.values.join(" "))}this.setAttribute("d",e)}},t.SVGRectElement.prototype.getPathData=function(t){var e=this.x.baseVal.value,i=this.y.baseVal.value,r=this.width.baseVal.value,n=this.height.baseVal.value,s=this.hasAttribute("rx")?this.rx.baseVal.value:this.ry.baseVal.value,o=this.hasAttribute("ry")?this.ry.baseVal.value:this.rx.baseVal.value;r/2<s&&(s=r/2),n/2<o&&(o=n/2);var l=(l=[{type:"M",values:[e+s,i]},{type:"H",values:[e+r-s]},{type:"A",values:[s,o,0,0,1,e+r,i+o]},{type:"V",values:[i+n-o]},{type:"A",values:[s,o,0,0,1,e+r-s,i+n]},{type:"H",values:[e+s]},{type:"A",values:[s,o,0,0,1,e,i+n-o]},{type:"V",values:[i+o]},{type:"A",values:[s,o,0,0,1,e+s,i]},{type:"Z",values:[]}]).filter((function(t){return"A"!==t.type||0!==t.values[0]&&0!==t.values[1]}));return t&&!0===t.normalize&&(l=a(l)),l},t.SVGCircleElement.prototype.getPathData=function(t){var e=this.cx.baseVal.value,i=this.cy.baseVal.value,r=this.r.baseVal.value,n=[{type:"M",values:[e+r,i]},{type:"A",values:[r,r,0,0,1,e,i+r]},{type:"A",values:[r,r,0,0,1,e-r,i]},{type:"A",values:[r,r,0,0,1,e,i-r]},{type:"A",values:[r,r,0,0,1,e+r,i]},{type:"Z",values:[]}];return t&&!0===t.normalize&&(n=a(n)),n},t.SVGEllipseElement.prototype.getPathData=function(t){var e=this.cx.baseVal.value,i=this.cy.baseVal.value,r=this.rx.baseVal.value,n=this.ry.baseVal.value,s=[{type:"M",values:[e+r,i]},{type:"A",values:[r,n,0,0,1,e,i+n]},{type:"A",values:[r,n,0,0,1,e-r,i]},{type:"A",values:[r,n,0,0,1,e,i-n]},{type:"A",values:[r,n,0,0,1,e+r,i]},{type:"Z",values:[]}];return t&&!0===t.normalize&&(s=a(s)),s},t.SVGLineElement.prototype.getPathData=function(){return[{type:"M",values:[this.x1.baseVal.value,this.y1.baseVal.value]},{type:"L",values:[this.x2.baseVal.value,this.y2.baseVal.value]}]},t.SVGPolylineElement.prototype.getPathData=function(){for(var t=[],e=0;e<this.points.numberOfItems;e+=1){var i=this.points.getItem(e);t.push({type:0===e?"M":"L",values:[i.x,i.y]})}return t},t.SVGPolygonElement.prototype.getPathData=function(){for(var t=[],e=0;e<this.points.numberOfItems;e+=1){var i=this.points.getItem(e);t.push({type:0===e?"M":"L",values:[i.x,i.y]})}return t.push({type:"Z",values:[]}),t}}()},pt=(u={},St.m=c=[function(t,e,i){i.r(e);var r=[],n=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return setTimeout(t,1e3/60)},s=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||function(t){return clearTimeout(t)},a=Date.now(),o=void 0;function l(){var t=void 0,e=void 0;o&&(s.call(window,o),o=null),r.forEach((function(e){var i;(i=e.event)&&(e.event=null,e.listener(i),t=!0)})),t?(a=Date.now(),e=!0):Date.now()-a<500&&(e=!0),e&&(o=n.call(window,l))}function h(t){var e=-1;return r.some((function(i,r){return i.listener===t&&(e=r,!0)})),e}var c={add:function(t){var e=void 0;return-1===h(t)?(r.push(e={listener:t}),function(t){e.event=t,o||l()}):null},remove:function(t){var e;-1<(e=h(t))&&(r.splice(e,1),!r.length&&o&&(s.call(window,o),o=null))}};e.default=c}],St.c=u,St.d=function(t,e,i){St.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},St.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},St.t=function(t,e){if(1&e&&(t=St(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(St.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)St.d(i,r,function(e){return t[e]}.bind(null,r));return i},St.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return St.d(e,"a",e),e},St.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},St.p="",St(St.s=0).default),ft={line_altColor:{iniValue:!1},line_color:{},line_colorTra:{iniValue:!1},line_strokeWidth:{},plug_enabled:{iniValue:!1},plug_enabledSE:{hasSE:!0,iniValue:!1},plug_plugSE:{hasSE:!0,iniValue:L},plug_colorSE:{hasSE:!0},plug_colorTraSE:{hasSE:!0,iniValue:!1},plug_markerWidthSE:{hasSE:!0},plug_markerHeightSE:{hasSE:!0},lineOutline_enabled:{iniValue:!1},lineOutline_color:{},lineOutline_colorTra:{iniValue:!1},lineOutline_strokeWidth:{},lineOutline_inStrokeWidth:{},plugOutline_enabledSE:{hasSE:!0,iniValue:!1},plugOutline_plugSE:{hasSE:!0,iniValue:L},plugOutline_colorSE:{hasSE:!0},plugOutline_colorTraSE:{hasSE:!0,iniValue:!1},plugOutline_strokeWidthSE:{hasSE:!0},plugOutline_inStrokeWidthSE:{hasSE:!0},position_socketXYSE:{hasSE:!0,hasProps:!0},position_plugOverheadSE:{hasSE:!0},position_path:{},position_lineStrokeWidth:{},position_socketGravitySE:{hasSE:!0},path_pathData:{},path_edge:{hasProps:!0},viewBox_bBox:{hasProps:!0},viewBox_plugBCircleSE:{hasSE:!0},lineMask_enabled:{iniValue:!1},lineMask_outlineMode:{iniValue:!1},lineMask_x:{},lineMask_y:{},lineOutlineMask_x:{},lineOutlineMask_y:{},maskBGRect_x:{},maskBGRect_y:{},capsMaskAnchor_enabledSE:{hasSE:!0,iniValue:!1},capsMaskAnchor_pathDataSE:{hasSE:!0},capsMaskAnchor_strokeWidthSE:{hasSE:!0},capsMaskMarker_enabled:{iniValue:!1},capsMaskMarker_enabledSE:{hasSE:!0,iniValue:!1},capsMaskMarker_plugSE:{hasSE:!0,iniValue:L},capsMaskMarker_markerWidthSE:{hasSE:!0},capsMaskMarker_markerHeightSE:{hasSE:!0},caps_enabled:{iniValue:!1},attach_plugSideLenSE:{hasSE:!0},attach_plugBackLenSE:{hasSE:!0}},mt={show_on:{},show_effect:{},show_animOptions:{},show_animId:{},show_inAnim:{}},gt="fade",yt=[],vt={},xt=0,_t={},bt=0;function St(t){if(u[t])return u[t].exports;var e=u[t]={i:t,l:!1,exports:{}};return c[t].call(e.exports,e,e.exports,St),e.l=!0,e.exports}function Et(){var t=Date.now(),e=!1;d&&(g.call(window,d),d=null),v.forEach((function(i){var r,n,s;if(i.framesStart){if((r=t-i.framesStart)>=i.duration&&i.count&&i.loopsLeft<=1)return s=i.frames[i.lastFrame=i.reverse?0:i.frames.length-1],i.frameCallback(s.value,!0,s.timeRatio,s.outputRatio),void(i.framesStart=null);if(r>i.duration){if(n=Math.floor(r/i.duration),i.count){if(n>=i.loopsLeft)return s=i.frames[i.lastFrame=i.reverse?0:i.frames.length-1],i.frameCallback(s.value,!0,s.timeRatio,s.outputRatio),void(i.framesStart=null);i.loopsLeft-=n}i.framesStart+=i.duration*n,r=t-i.framesStart}i.reverse&&(r=i.duration-r),s=i.frames[i.lastFrame=Math.round(r/f)],!1!==i.frameCallback(s.value,!1,s.timeRatio,s.outputRatio)?e=!0:i.framesStart=null}})),e&&(d=m.call(window,Et))}function wt(t,e){t.framesStart=Date.now(),null!=e&&(t.framesStart-=t.duration*(t.reverse?1-e:e)),t.loopsLeft=t.count,t.lastFrame=null,Et()}function Tt(t,e){var i,r;return typeof t!=typeof e||(i=ht(t)?"obj":Array.isArray(t)?"array":"")!=(ht(e)?"obj":Array.isArray(e)?"array":"")||("obj"===i?Tt(r=Object.keys(t).sort(),Object.keys(e).sort())||r.some((function(i){return Tt(t[i],e[i])})):"array"===i?t.length!==e.length||t.some((function(t,i){return Tt(t,e[i])})):t!==e)}function At(t){return t?ht(t)?Object.keys(t).reduce((function(e,i){return e[i]=At(t[i]),e}),{}):Array.isArray(t)?t.map(At):t:t}function Mt(t){var e,i,r,n=1,s=t=(t+"").trim();function a(t){var e=1,i=tt.exec(t);return i&&(e=parseFloat(i[1]),i[2]?e=0<=e&&e<=100?e/100:1:(e<0||1<e)&&(e=1)),e}return(e=/^(rgba|hsla|hwb|gray|device\-cmyk)\s*\(([\s\S]+)\)$/i.exec(t))?(i=e[1].toLowerCase(),r=e[2].trim().split(/\s*,\s*/),"rgba"===i&&4===r.length?(n=a(r[3]),s="rgb("+r.slice(0,3).join(", ")+")"):"hsla"===i&&4===r.length?(n=a(r[3]),s="hsl("+r.slice(0,3).join(", ")+")"):"hwb"===i&&4===r.length?(n=a(r[3]),s="hwb("+r.slice(0,3).join(", ")+")"):"gray"===i&&2===r.length?(n=a(r[1]),s="gray("+r[0]+")"):"device-cmyk"===i&&5<=r.length&&(n=a(r[4]),s="device-cmyk("+r.slice(0,4).join(", ")+")")):(e=/^\#(?:([\da-f]{6})([\da-f]{2})|([\da-f]{3})([\da-f]))$/i.exec(t))?s=e[1]?(n=parseInt(e[2],16)/255,"#"+e[1]):(n=parseInt(e[4]+e[4],16)/255,"#"+e[3]):"transparent"===t.toLocaleLowerCase()&&(n=0),[n,s]}function Pt(t){return!(!t||t.nodeType!==Node.ELEMENT_NODE||"function"!=typeof t.getBoundingClientRect)}function Ct(t,e){var i,r,n,s,a={};if(!(n=t.ownerDocument))return console.error("Cannot get document that contains the element."),null;if(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_DISCONNECTED)return console.error("A disconnected element was passed."),null;for(r in i=t.getBoundingClientRect())a[r]=i[r];if(!e){if(!(s=n.defaultView))return console.error("Cannot get window that contains the element."),null;a.left+=s.pageXOffset,a.right+=s.pageXOffset,a.top+=s.pageYOffset,a.bottom+=s.pageYOffset}return a}function kt(t,e){var i,r,n=[],s=t;for(e=e||window;;){if(!(i=s.ownerDocument))return console.error("Cannot get document that contains the element."),null;if(!(r=i.defaultView))return console.error("Cannot get window that contains the element."),null;if(r===e)break;if(!(s=r.frameElement))return console.error("`baseWindow` was not found."),null;n.unshift(s)}return n}function It(t,e){var i,r,n=0,s=0;return(r=kt(t,e=e||window))?r.length?(r.forEach((function(t,e){var i,r,a=Ct(t,0<e);n+=a.left,s+=a.top,r=(i=t).ownerDocument.defaultView.getComputedStyle(i,""),a={left:i.clientLeft+parseFloat(r.paddingLeft),top:i.clientTop+parseFloat(r.paddingTop)},n+=a.left,s+=a.top})),(i=Ct(t,!0)).left+=n,i.right+=n,i.top+=s,i.bottom+=s,i):Ct(t):null}function Dt(t,e){var i=t.x-e.x,r=t.y-e.y;return Math.sqrt(i*i+r*r)}function Rt(t,e,i){var r=e.x-t.x,n=e.y-t.y;return{x:t.x+r*i,y:t.y+n*i,angle:Math.atan2(n,r)/(Math.PI/180)}}function Ot(t,e,i){var r=Math.atan2(t.y-e.y,e.x-t.x);return{x:e.x+Math.cos(r)*i,y:e.y+Math.sin(r)*i*-1}}function Lt(t,e,i,r,n){var s=n*n,a=s*n,o=1-n,l=o*o,h=l*o,c=h*t.x+3*l*n*e.x+3*o*s*i.x+a*r.x,u=h*t.y+3*l*n*e.y+3*o*s*i.y+a*r.y,d=t.x+2*n*(e.x-t.x)+s*(i.x-2*e.x+t.x),p=t.y+2*n*(e.y-t.y)+s*(i.y-2*e.y+t.y),f=e.x+2*n*(i.x-e.x)+s*(r.x-2*i.x+e.x),m=e.y+2*n*(i.y-e.y)+s*(r.y-2*i.y+e.y),g=o*t.x+n*e.x,y=o*t.y+n*e.y,v=o*i.x+n*r.x,x=o*i.y+n*r.y,_=90-180*Math.atan2(d-f,p-m)/Math.PI;return{x:c,y:u,fromP2:{x:d,y:p},toP1:{x:f,y:m},fromP1:{x:g,y:y},toP2:{x:v,y:x},angle:_+=180<_?-180:180}}function Ft(t,e,i,r,n){function s(t,e,i,r,n){return t*(t*(-3*e+9*i-9*r+3*n)+6*e-12*i+6*r)-3*e+3*i}var a,o,l,h,c=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],u=0,d=(n=null==n||1<n?1:n<0?0:n)/2;return[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816].forEach((function(n,p){o=s(a=d*n+d,t.x,e.x,i.x,r.x),l=s(a,t.y,e.y,i.y,r.y),h=o*o+l*l,u+=c[p]*Math.sqrt(h)})),d*u}function Bt(t,e,i,r,n){for(var s,a=.5,o=1-a;s=Ft(t,e,i,r,o),!(Math.abs(s-n)<=.01);)o+=(s<n?1:-1)*(a/=2);return o}function Nt(t,e){var i;return t.forEach((function(t){var r=e?t.map((function(t){var i={x:t.x,y:t.y};return e(i),i})):t;(i=i||[{type:"M",values:[r[0].x,r[0].y]}]).push(r.length?2===r.length?{type:"L",values:[r[1].x,r[1].y]}:{type:"C",values:[r[1].x,r[1].y,r[2].x,r[2].y,r[3].x,r[3].y]}:{type:"Z",values:[]})})),i}function Vt(t){var e=[],i=0;return t.forEach((function(t){var r=(2===t.length?Dt:Ft).apply(null,t);e.push(r),i+=r})),{segsLen:e,lenAll:i}}function zt(t,e){return null==t||null==e||t.length!==e.length||t.some((function(t,i){var r=e[i];return t.type!==r.type||t.values.some((function(t,e){return t!==r.values[e]}))}))}function Gt(t,e,i){t.events[e]?t.events[e].indexOf(i)<0&&t.events[e].push(i):t.events[e]=[i]}function Ut(t,e,i){var r;t.events[e]&&-1<(r=t.events[e].indexOf(i))&&t.events[e].splice(r,1)}function Ht(t){a&&clearTimeout(a),yt.push(t),a=setTimeout((function(){yt.forEach((function(t){t()})),yt=[]}),0)}function jt(t,e){t.reflowTargets.indexOf(e)<0&&t.reflowTargets.push(e)}function Wt(t){t.reflowTargets.forEach((function(t){var e;e=t,setTimeout((function(){var t=e.parentNode,i=e.nextSibling;t.insertBefore(t.removeChild(e),i)}),0)})),t.reflowTargets=[]}function Xt(t,e,i,r,n,s,a){var l,h,c;"auto-start-reverse"===i?("boolean"!=typeof o&&(e.setAttribute("orient","auto-start-reverse"),o=e.orientType.baseVal===SVGMarkerElement.SVG_MARKER_ORIENT_UNKNOWN),o?e.setAttribute("orient",i):((l=n.createSVGTransform()).setRotate(180,0,0),s.transform.baseVal.appendItem(l),e.setAttribute("orient","auto"),c=!0)):(e.setAttribute("orient",i),!1===o&&s.transform.baseVal.clear()),h=e.viewBox.baseVal,c?(h.x=-r.right,h.y=-r.bottom):(h.x=r.left,h.y=r.top),h.width=r.width,h.height=r.height,rt&&jt(t,a)}function $t(t,e){return{prop:t?"markerEnd":"markerStart",orient:e?e.noRotate?"0":t?"auto":"auto-start-reverse":null}}function Yt(t,e){Object.keys(e).forEach((function(i){var r=e[i];t[i]=null!=r.iniValue?r.hasSE?[r.iniValue,r.iniValue]:r.iniValue:r.hasSE?r.hasProps?[{},{}]:[]:r.hasProps?{}:null}))}function qt(t,e,i,r,n){return r!==e[i]&&(e[i]=r,n&&n.forEach((function(e){e(t,r,i)})),!0)}function Kt(t){function e(t,e){return t+parseFloat(e)}var i=t.document,r=t.getComputedStyle(i.documentElement,""),n=t.getComputedStyle(i.body,""),s={x:0,y:0};return"static"!==n.position?(s.x-=[r.marginLeft,r.borderLeftWidth,r.paddingLeft,n.marginLeft,n.borderLeftWidth].reduce(e,0),s.y-=[r.marginTop,r.borderTopWidth,r.paddingTop,n.marginTop,n.borderTopWidth].reduce(e,0)):"static"!==r.position&&(s.x-=[r.marginLeft,r.borderLeftWidth].reduce(e,0),s.y-=[r.marginTop,r.borderTopWidth].reduce(e,0)),s}function Zt(t){var e,i=t.document;i.getElementById(F)||(e=(new t.DOMParser).parseFromString(B,"image/svg+xml"),i.body.appendChild(e.documentElement),dt(t))}function Jt(t){var e,i,r,n,s,a,o,l,h,c,u,d,p,f,m,g,y,v,x,_=t.options,b=t.curStats,S=t.aplStats,E=b.position_socketXYSE,P=!1;function O(t,e){var i=e===w?{x:t.left+t.width/2,y:t.top}:e===T?{x:t.right,y:t.top+t.height/2}:e===A?{x:t.left+t.width/2,y:t.bottom}:{x:t.left,y:t.top+t.height/2};return i.socketId=e,i}function L(t){return{x:t.x,y:t.y}}if(b.position_path=_.path,b.position_lineStrokeWidth=b.line_strokeWidth,b.position_socketGravitySE=e=At(_.socketGravitySE),i=[0,1].map((function(e){var i,r,n,s=_.anchorSE[e],a=t.optionIsAttach.anchorSE[e],o=!1!==a?_t[s._id]:null,l=!1!==a&&o.conf.getStrokeWidth?o.conf.getStrokeWidth(o,t):0,h=!1!==a&&o.conf.getBBoxNest?o.conf.getBBoxNest(o,t,l):It(s,t.baseWindow);return b.capsMaskAnchor_pathDataSE[e]=!1!==a&&o.conf.getPathData?o.conf.getPathData(o,t,l):(r=null!=(i=h).right?i.right:i.left+i.width,n=null!=i.bottom?i.bottom:i.top+i.height,[{type:"M",values:[i.left,i.top]},{type:"L",values:[r,i.top]},{type:"L",values:[r,n]},{type:"L",values:[i.left,n]},{type:"Z",values:[]}]),b.capsMaskAnchor_strokeWidthSE[e]=l,h})),o=-1,_.socketSE[0]&&_.socketSE[1]?(E[0]=O(i[0],_.socketSE[0]),E[1]=O(i[1],_.socketSE[1])):(_.socketSE[0]||_.socketSE[1]?(a=_.socketSE[0]?(s=0,1):(s=1,0),E[s]=O(i[s],_.socketSE[s]),(n=G.map((function(t){return O(i[a],t)}))).forEach((function(t){var e=Dt(t,E[s]);(e<o||-1===o)&&(E[a]=t,o=e)}))):(n=G.map((function(t){return O(i[1],t)})),G.map((function(t){return O(i[0],t)})).forEach((function(t){n.forEach((function(e){var i=Dt(t,e);(i<o||-1===o)&&(E[0]=t,E[1]=e,o=i)}))}))),[0,1].forEach((function(t){var e,r;_.socketSE[t]||(i[t].width||i[t].height?i[t].width||E[t].socketId!==M&&E[t].socketId!==T?i[t].height||E[t].socketId!==w&&E[t].socketId!==A||(E[t].socketId=0<=E[t?0:1].y-i[t].top?A:w):E[t].socketId=0<=E[t?0:1].x-i[t].left?T:M:(e=E[t?0:1].x-i[t].left,r=E[t?0:1].y-i[t].top,E[t].socketId=Math.abs(e)>=Math.abs(r)?0<=e?T:M:0<=r?A:w))}))),b.position_path!==S.position_path||b.position_lineStrokeWidth!==S.position_lineStrokeWidth||[0,1].some((function(t){return b.position_plugOverheadSE[t]!==S.position_plugOverheadSE[t]||(s=E[t],a=S.position_socketXYSE[t],s.x!==a.x||s.y!==a.y||s.socketId!==a.socketId)||(i=e[t],r=S.position_socketGravitySE[t],(n=null==i?"auto":Array.isArray(i)?"array":"number")!=(null==r?"auto":Array.isArray(r)?"array":"number")||("array"==n?i[0]!==r[0]||i[1]!==r[1]:i!==r));var i,r,n,s,a}))){switch(t.pathList.baseVal=r=[],t.pathList.animVal=null,b.position_path){case C:r.push([L(E[0]),L(E[1])]);break;case k:d="number"==typeof e[0]&&0<e[0]||"number"==typeof e[1]&&0<e[1],m=(p=Q*(d?-1:1))-(f=Math.atan2(E[1].y-E[0].y,E[1].x-E[0].x)),g=Math.PI-f-p,y=Dt(E[0],E[1])/Math.sqrt(2)*J,v={x:E[0].x+Math.cos(m)*y,y:E[0].y+Math.sin(m)*y*-1},x={x:E[1].x+Math.cos(g)*y,y:E[1].y+Math.sin(g)*y*-1},r.push([L(E[0]),v,x,L(E[1])]);break;case I:case D:h=[e[0],b.position_path===D?0:e[1]],c=[],u=[],E.forEach((function(t,e){var i,r,n,s,a=h[e],o=Array.isArray(a)?{x:a[0],y:a[1]}:"number"==typeof a?t.socketId===w?{x:0,y:-a}:t.socketId===T?{x:a,y:0}:t.socketId===A?{x:0,y:a}:{x:-a,y:0}:(i=E[e?0:1],n=0<(r=b.position_plugOverheadSE[e])?$+(Y<r?(r-Y)*q:0):j+(b.position_lineStrokeWidth>W?(b.position_lineStrokeWidth-W)*X:0),t.socketId===w?((s=(t.y-i.y)/2)<n&&(s=n),{x:0,y:-s}):t.socketId===T?((s=(i.x-t.x)/2)<n&&(s=n),{x:s,y:0}):t.socketId===A?((s=(i.y-t.y)/2)<n&&(s=n),{x:0,y:s}):((s=(t.x-i.x)/2)<n&&(s=n),{x:-s,y:0}));c[e]=t.x+o.x,u[e]=t.y+o.y})),r.push([L(E[0]),{x:c[0],y:u[0]},{x:c[1],y:u[1]},L(E[1])]);break;case R:!function(){var t,i=1,n=2,s=3,a=4,o=[[],[]],l=[];function h(t){return t===i?s:t===n?a:t===s?i:n}function c(t){return t===n||t===a?"x":"y"}function u(t,e,r){var a={x:t.x,y:t.y};if(r){if(r===h(t.dirId))throw new Error("Invalid dirId: "+r);a.dirId=r}else a.dirId=t.dirId;return a.dirId===i?a.y-=e:a.dirId===n?a.x+=e:a.dirId===s?a.y+=e:a.x-=e,a}function d(t,e){return e.dirId===i?t.y<=e.y:e.dirId===n?t.x>=e.x:e.dirId===s?t.y>=e.y:t.x<=e.x}function p(t,e){return e.dirId===i||e.dirId===s?t.x===e.x:t.y===e.y}function f(t){return t[0]?{contain:0,notContain:1}:{contain:1,notContain:0}}function m(t,e,i){return Math.abs(e[i]-t[i])}function g(t,e,r){return"x"===r?t.x<e.x?n:a:t.y<e.y?s:i}for(E.forEach((function(t,r){var c,d=L(t),p=e[r];c=Array.isArray(p)?p[0]<0?[a,-p[0]]:0<p[0]?[n,p[0]]:p[1]<0?[i,-p[1]]:0<p[1]?[s,p[1]]:[t.socketId,0]:"number"!=typeof p?[t.socketId,Z]:0<=p?[t.socketId,p]:[h(t.socketId),-p],d.dirId=c[0],p=c[1],o[r].push(d),l[r]=u(d,p)}));function(){var t,e,i,r,a=[d(l[1],l[0]),d(l[0],l[1])],h=[c(l[0].dirId),c(l[1].dirId)];if(h[0]===h[1]){if(a[0]&&a[1])return void(p(l[1],l[0])||(l[0][h[0]]===l[1][h[1]]?(o[0].push(l[0]),o[1].push(l[1])):(t=l[0][h[0]]+(l[1][h[1]]-l[0][h[0]])/2,o[0].push(u(l[0],Math.abs(t-l[0][h[0]]))),o[1].push(u(l[1],Math.abs(t-l[1][h[1]]))))));a[0]!==a[1]?(e=f(a),(i=m(l[e.notContain],l[e.contain],h[e.notContain]))<Z&&(l[e.notContain]=u(l[e.notContain],Z-i)),o[e.notContain].push(l[e.notContain]),l[e.notContain]=u(l[e.notContain],Z,p(l[e.contain],l[e.notContain])?"x"===h[e.notContain]?s:n:g(l[e.notContain],l[e.contain],"x"===h[e.notContain]?"y":"x"))):(i=m(l[0],l[1],"x"===h[0]?"y":"x"),o.forEach((function(t,e){var r=0===e?1:0;t.push(l[e]),l[e]=u(l[e],Z,2*Z<=i?g(l[e],l[r],"x"===h[e]?"y":"x"):"x"===h[e]?s:n)})))}else{if(a[0]&&a[1])return void(p(l[1],l[0])?o[1].push(l[1]):p(l[0],l[1])?o[0].push(l[0]):o[0].push("x"===h[0]?{x:l[1].x,y:l[0].y}:{x:l[0].x,y:l[1].y}));a[0]!==a[1]?(e=f(a),o[e.notContain].push(l[e.notContain]),l[e.notContain]=u(l[e.notContain],Z,m(l[e.notContain],l[e.contain],h[e.contain])>=Z?g(l[e.notContain],l[e.contain],h[e.contain]):l[e.contain].dirId)):(r=[{x:l[0].x,y:l[0].y},{x:l[1].x,y:l[1].y}],o.forEach((function(t,e){var i=0===e?1:0,n=m(r[e],r[i],h[e]);n<Z&&(l[e]=u(l[e],Z-n)),t.push(l[e]),l[e]=u(l[e],Z,g(l[e],l[i],h[i]))})))}return 1}(););o[1].reverse(),o[0].concat(o[1]).forEach((function(e,i){var n={x:e.x,y:e.y};0<i&&r.push([t,n]),t=n}))}()}l=[],b.position_plugOverheadSE.forEach((function(t,e){var n,s,a,o,h,c,u,d,p,f,m,g=!e;0<t?2===(n=r[s=g?0:r.length-1]).length?(l[s]=l[s]||Dt.apply(null,n),l[s]>K&&(l[s]-t<K&&(t=l[s]-K),a=Rt(n[0],n[1],(g?t:l[s]-t)/l[s]),r[s]=g?[a,n[1]]:[n[0],a],l[s]-=t)):(l[s]=l[s]||Ft.apply(null,n),l[s]>K&&(l[s]-t<K&&(t=l[s]-K),a=Lt(n[0],n[1],n[2],n[3],Bt(n[0],n[1],n[2],n[3],g?t:l[s]-t)),h=g?(o=n[0],a.toP1):(o=n[3],a.fromP2),c=Math.atan2(o.y-a.y,a.x-o.x),u=Dt(a,h),a.x=o.x+Math.cos(c)*t,a.y=o.y+Math.sin(c)*t*-1,h.x=a.x+Math.cos(c)*u,h.y=a.y+Math.sin(c)*u*-1,r[s]=g?[a,a.toP1,a.toP2,n[3]]:[n[0],a.fromP1,a.fromP2,a],l[s]=null)):t<0&&(n=r[s=g?0:r.length-1],d=E[e].socketId,p=d===M||d===T?"x":"y",t<(m=-i[e]["x"==p?"width":"height"])&&(t=m),f=t*(d===M||d===w?-1:1),2===n.length?n[g?0:n.length-1][p]+=f:(g?[0,1]:[n.length-2,n.length-1]).forEach((function(t){n[t][p]+=f})),l[s]=null)})),S.position_socketXYSE=At(E),S.position_plugOverheadSE=At(b.position_plugOverheadSE),S.position_path=b.position_path,S.position_lineStrokeWidth=b.position_lineStrokeWidth,S.position_socketGravitySE=At(e),P=!0,t.events.apl_position&&t.events.apl_position.forEach((function(e){e(t,r)}))}return P}function Qt(t,e){e!==t.isShown&&(!!e!=!!t.isShown&&(t.svg.style.visibility=e?"":"hidden"),t.isShown=e,t.events&&t.events.svgShow&&t.events.svgShow.forEach((function(i){i(t,e)})))}function te(e,i){var r,n,s,a,o,l,h,c,u,d,p,f,m,g,y,v,x,_,b,S,E,w,T,A,M,P,C,k,I,D,R,O,F,B,V,G,U,j,W,X,$,Y,q,K,Z,J,Q,tt,et,it,ht,ct,ut={};i.line&&(ut.line=(n=(r=e).options,s=r.curStats,a=r.events,o=!1,o=qt(r,s,"line_color",n.lineColor,a.cur_line_color)||o,o=qt(r,s,"line_colorTra",Mt(s.line_color)[0]<1)||o,o=qt(r,s,"line_strokeWidth",n.lineSize,a.cur_line_strokeWidth)||o)),(i.plug||ut.line)&&(ut.plug=(h=(l=e).options,c=l.curStats,u=l.events,d=!1,[0,1].forEach((function(t){var e,i,r,n,s,a,o,p,f=h.plugSE[t];d=qt(l,c.plug_enabledSE,t,f!==L)||d,d=qt(l,c.plug_plugSE,t,f)||d,d=qt(l,c.plug_colorSE,t,p=h.plugColorSE[t]||c.line_color,u.cur_plug_colorSE)||d,d=qt(l,c.plug_colorTraSE,t,Mt(p)[0]<1)||d,f!==L&&(n=i=(e=N[z[f]]).widthR*h.plugSizeSE[t],s=r=e.heightR*h.plugSizeSE[t],at&&(n*=c.line_strokeWidth,s*=c.line_strokeWidth),d=qt(l,c.plug_markerWidthSE,t,n)||d,d=qt(l,c.plug_markerHeightSE,t,s)||d,c.capsMaskMarker_markerWidthSE[t]=i,c.capsMaskMarker_markerHeightSE[t]=r),c.plugOutline_plugSE[t]=c.capsMaskMarker_plugSE[t]=f,c.plug_enabledSE[t]?(p=c.line_strokeWidth/lt.lineSize*h.plugSizeSE[t],c.position_plugOverheadSE[t]=e.overhead*p,c.viewBox_plugBCircleSE[t]=e.bCircle*p,a=e.sideLen*p,o=e.backLen*p):(c.position_plugOverheadSE[t]=-c.line_strokeWidth/2,c.viewBox_plugBCircleSE[t]=a=o=0),qt(l,c.attach_plugSideLenSE,t,a,u.cur_attach_plugSideLenSE),qt(l,c.attach_plugBackLenSE,t,o,u.cur_attach_plugBackLenSE),c.capsMaskAnchor_enabledSE[t]=!c.plug_enabledSE[t]})),d=qt(l,c,"plug_enabled",c.plug_enabledSE[0]||c.plug_enabledSE[1])||d)),(i.lineOutline||ut.line)&&(ut.lineOutline=(m=(p=e).options,y=!1,y=qt(p,g=p.curStats,"lineOutline_enabled",m.lineOutlineEnabled)||y,y=qt(p,g,"lineOutline_color",m.lineOutlineColor)||y,y=qt(p,g,"lineOutline_colorTra",Mt(g.lineOutline_color)[0]<1)||y,f=g.line_strokeWidth*m.lineOutlineSize,y=qt(p,g,"lineOutline_strokeWidth",g.line_strokeWidth-2*f)||y,y=qt(p,g,"lineOutline_inStrokeWidth",g.lineOutline_colorTra?g.lineOutline_strokeWidth+2*ot:g.line_strokeWidth-f)||y)),(i.plugOutline||ut.line||ut.plug||ut.lineOutline)&&(ut.plugOutline=(x=(v=e).options,_=v.curStats,b=!1,[0,1].forEach((function(t){var e,i=_.plugOutline_plugSE[t],r=i!==L?N[z[i]]:null;b=qt(v,_.plugOutline_enabledSE,t,x.plugOutlineEnabledSE[t]&&_.plug_enabled&&_.plug_enabledSE[t]&&!!r&&!!r.outlineBase)||b,b=qt(v,_.plugOutline_colorSE,t,e=x.plugOutlineColorSE[t]||_.lineOutline_color)||b,b=qt(v,_.plugOutline_colorTraSE,t,Mt(e)[0]<1)||b,r&&r.outlineBase&&((e=x.plugOutlineSizeSE[t])>r.outlineMax&&(e=r.outlineMax),e*=2*r.outlineBase,b=qt(v,_.plugOutline_strokeWidthSE,t,e)||b,b=qt(v,_.plugOutline_inStrokeWidthSE,t,_.plugOutline_colorTraSE[t]?e-ot/(_.line_strokeWidth/lt.lineSize)/x.plugSizeSE[t]*2:e/2)||b)}
vendor: 4,491 bytes, line 2
2)),b)),(i.faces||ut.line||ut.plug||ut.lineOutline||ut.plugOutline)&&(ut.faces=(w=(S=e).curStats,T=S.aplStats,A=S.events,M=!1,!w.line_altColor&&qt(S,T,"line_color",E=w.line_color,A.apl_line_color)&&(S.lineFace.style.stroke=E,M=!0),qt(S,T,"line_strokeWidth",E=w.line_strokeWidth,A.apl_line_strokeWidth)&&(S.lineShape.style.strokeWidth=E+"px",M=!0,(nt||rt)&&(jt(S,S.lineShape),rt&&(jt(S,S.lineFace),jt(S,S.lineMaskCaps)))),qt(S,T,"lineOutline_enabled",E=w.lineOutline_enabled,A.apl_lineOutline_enabled)&&(S.lineOutlineFace.style.display=E?"inline":"none",M=!0),w.lineOutline_enabled&&(qt(S,T,"lineOutline_color",E=w.lineOutline_color,A.apl_lineOutline_color)&&(S.lineOutlineFace.style.stroke=E,M=!0),qt(S,T,"lineOutline_strokeWidth",E=w.lineOutline_strokeWidth,A.apl_lineOutline_strokeWidth)&&(S.lineOutlineMaskShape.style.strokeWidth=E+"px",M=!0,rt&&(jt(S,S.lineOutlineMaskCaps),jt(S,S.lineOutlineFace))),qt(S,T,"lineOutline_inStrokeWidth",E=w.lineOutline_inStrokeWidth,A.apl_lineOutline_inStrokeWidth)&&(S.lineMaskShape.style.strokeWidth=E+"px",M=!0,rt&&(jt(S,S.lineOutlineMaskCaps),jt(S,S.lineOutlineFace)))),qt(S,T,"plug_enabled",E=w.plug_enabled,A.apl_plug_enabled)&&(S.plugsFace.style.display=E?"inline":"none",M=!0),w.plug_enabled&&[0,1].forEach((function(t){var e=w.plug_plugSE[t],i=e!==L?N[z[e]]:null,r=$t(t,i);qt(S,T.plug_enabledSE,t,E=w.plug_enabledSE[t],A.apl_plug_enabledSE)&&(S.plugsFace.style[r.prop]=E?"url(#"+S.plugMarkerIdSE[t]+")":"none",M=!0),w.plug_enabledSE[t]&&(qt(S,T.plug_plugSE,t,e,A.apl_plug_plugSE)&&(S.plugFaceSE[t].href.baseVal="#"+i.elmId,Xt(S,S.plugMarkerSE[t],r.orient,i.bBox,S.svg,S.plugMarkerShapeSE[t],S.plugsFace),M=!0,nt&&jt(S,S.plugsFace)),qt(S,T.plug_colorSE,t,E=w.plug_colorSE[t],A.apl_plug_colorSE)&&(S.plugFaceSE[t].style.fill=E,M=!0,(st||at||rt)&&!w.line_colorTra&&jt(S,rt?S.lineMaskCaps:S.capsMaskLine)),["markerWidth","markerHeight"].forEach((function(e){var i="plug_"+e+"SE";qt(S,T[i],t,E=w[i][t],A["apl_"+i])&&(S.plugMarkerSE[t][e].baseVal.value=E,M=!0)})),qt(S,T.plugOutline_enabledSE,t,E=w.plugOutline_enabledSE[t],A.apl_plugOutline_enabledSE)&&(E?(S.plugFaceSE[t].style.mask="url(#"+S.plugMaskIdSE[t]+")",S.plugOutlineFaceSE[t].style.display="inline"):(S.plugFaceSE[t].style.mask="none",S.plugOutlineFaceSE[t].style.display="none"),M=!0),w.plugOutline_enabledSE[t]&&(qt(S,T.plugOutline_plugSE,t,e,A.apl_plugOutline_plugSE)&&(S.plugOutlineFaceSE[t].href.baseVal=S.plugMaskShapeSE[t].href.baseVal=S.plugOutlineMaskShapeSE[t].href.baseVal="#"+i.elmId,[S.plugMaskSE[t],S.plugOutlineMaskSE[t]].forEach((function(t){t.x.baseVal.value=i.bBox.left,t.y.baseVal.value=i.bBox.top,t.width.baseVal.value=i.bBox.width,t.height.baseVal.value=i.bBox.height})),M=!0),qt(S,T.plugOutline_colorSE,t,E=w.plugOutline_colorSE[t],A.apl_plugOutline_colorSE)&&(S.plugOutlineFaceSE[t].style.fill=E,M=!0,rt&&(jt(S,S.lineMaskCaps),jt(S,S.lineOutlineMaskCaps))),qt(S,T.plugOutline_strokeWidthSE,t,E=w.plugOutline_strokeWidthSE[t],A.apl_plugOutline_strokeWidthSE)&&(S.plugOutlineMaskShapeSE[t].style.strokeWidth=E+"px",M=!0),qt(S,T.plugOutline_inStrokeWidthSE,t,E=w.plugOutline_inStrokeWidthSE[t],A.apl_plugOutline_inStrokeWidthSE)&&(S.plugMaskShapeSE[t].style.strokeWidth=E+"px",M=!0)))})),M)),(i.position||ut.line||ut.plug)&&(ut.position=Jt(e)),(i.path||ut.position)&&(ut.path=(k=(P=e).curStats,I=P.aplStats,D=P.pathList.animVal||P.pathList.baseVal,R=k.path_edge,O=!1,D&&(R.x1=R.x2=D[0][0].x,R.y1=R.y2=D[0][0].y,k.path_pathData=C=Nt(D,(function(t){t.x<R.x1&&(R.x1=t.x),t.y<R.y1&&(R.y1=t.y),t.x>R.x2&&(R.x2=t.x),t.y>R.y2&&(R.y2=t.y)})),zt(C,I.path_pathData)&&(P.linePath.setPathData(C),I.path_pathData=C,O=!0,rt?(jt(P,P.plugsFace),jt(P,P.lineMaskCaps)):nt&&jt(P,P.linePath),P.events.apl_path&&P.events.apl_path.forEach((function(t){t(P,C)})))),O)),ut.viewBox=(B=(F=e).curStats,V=F.aplStats,G=B.path_edge,U=B.viewBox_bBox,j=V.viewBox_bBox,W=F.svg.viewBox.baseVal,X=F.svg.style,$=!1,Y=Math.max(B.line_strokeWidth/2,B.viewBox_plugBCircleSE[0]||0,B.viewBox_plugBCircleSE[1]||0),q={x1:G.x1-Y,y1:G.y1-Y,x2:G.x2+Y,y2:G.y2+Y},F.events.new_edge4viewBox&&F.events.new_edge4viewBox.forEach((function(t){t(F,q)})),U.x=B.lineMask_x=B.lineOutlineMask_x=B.maskBGRect_x=q.x1,U.y=B.lineMask_y=B.lineOutlineMask_y=B.maskBGRect_y=q.y1,U.width=q.x2-q.x1,U.height=q.y2-q.y1,["x","y","width","height"].forEach((function(t){var e;(e=U[t])!==j[t]&&(W[t]=j[t]=e,X[H[t]]=e+("x"===t||"y"===t?F.bodyOffset[t]:0)+"px",$=!0)})),$),ut.mask=(J=(K=e).curStats,Q=K.aplStats,tt=!1,J.plug_enabled?[0,1].forEac
vendor: 17,707 bytes, line 2
2h((function(t){J.capsMaskMarker_enabledSE[t]=J.plug_enabledSE[t]&&J.plug_colorTraSE[t]||J.plugOutline_enabledSE[t]&&J.plugOutline_colorTraSE[t]})):J.capsMaskMarker_enabledSE[0]=J.capsMaskMarker_enabledSE[1]=!1,J.capsMaskMarker_enabled=J.capsMaskMarker_enabledSE[0]||J.capsMaskMarker_enabledSE[1],J.lineMask_outlineMode=J.lineOutline_enabled,J.caps_enabled=J.capsMaskMarker_enabled||J.capsMaskAnchor_enabledSE[0]||J.capsMaskAnchor_enabledSE[1],J.lineMask_enabled=J.caps_enabled||J.lineMask_outlineMode,(J.lineMask_enabled&&!J.lineMask_outlineMode||J.lineOutline_enabled)&&["x","y"].forEach((function(t){var e="maskBGRect_"+t;qt(K,Q,e,Z=J[e])&&(K.maskBGRect[t].baseVal.value=Z,tt=!0)})),qt(K,Q,"lineMask_enabled",Z=J.lineMask_enabled)&&(K.lineFace.style.mask=Z?"url(#"+K.lineMaskId+")":"none",tt=!0,at&&jt(K,K.lineMask)),J.lineMask_enabled&&(qt(K,Q,"lineMask_outlineMode",Z=J.lineMask_outlineMode)&&(Z?(K.lineMaskBG.style.display="none",K.lineMaskShape.style.display="inline"):(K.lineMaskBG.style.display="inline",K.lineMaskShape.style.display="none"),tt=!0),["x","y"].forEach((function(t){var e="lineMask_"+t;qt(K,Q,e,Z=J[e])&&(K.lineMask[t].baseVal.value=Z,tt=!0)})),qt(K,Q,"caps_enabled",Z=J.caps_enabled)&&(K.lineMaskCaps.style.display=K.lineOutlineMaskCaps.style.display=Z?"inline":"none",tt=!0,at&&jt(K,K.capsMaskLine)),J.caps_enabled&&([0,1].forEach((function(t){var e;qt(K,Q.capsMaskAnchor_enabledSE,t,Z=J.capsMaskAnchor_enabledSE[t])&&(K.capsMaskAnchorSE[t].style.display=Z?"inline":"none",tt=!0,at&&jt(K,K.lineMask)),J.capsMaskAnchor_enabledSE[t]&&(zt(e=J.capsMaskAnchor_pathDataSE[t],Q.capsMaskAnchor_pathDataSE[t])&&(K.capsMaskAnchorSE[t].setPathData(e),Q.capsMaskAnchor_pathDataSE[t]=e,tt=!0),qt(K,Q.capsMaskAnchor_strokeWidthSE,t,Z=J.capsMaskAnchor_strokeWidthSE[t])&&(K.capsMaskAnchorSE[t].style.strokeWidth=Z+"px",tt=!0))})),qt(K,Q,"capsMaskMarker_enabled",Z=J.capsMaskMarker_enabled)&&(K.capsMaskLine.style.display=Z?"inline":"none",tt=!0),J.capsMaskMarker_enabled&&[0,1].forEach((function(t){var e=J.capsMaskMarker_plugSE[t],i=e!==L?N[z[e]]:null,r=$t(t,i);qt(K,Q.capsMaskMarker_enabledSE,t,Z=J.capsMaskMarker_enabledSE[t])&&(K.capsMaskLine.style[r.prop]=Z?"url(#"+K.lineMaskMarkerIdSE[t]+")":"none",tt=!0),J.capsMaskMarker_enabledSE[t]&&(qt(K,Q.capsMaskMarker_plugSE,t,e)&&(K.capsMaskMarkerShapeSE[t].href.baseVal="#"+i.elmId,Xt(K,K.capsMaskMarkerSE[t],r.orient,i.bBox,K.svg,K.capsMaskMarkerShapeSE[t],K.capsMaskLine),tt=!0,nt&&(jt(K,K.capsMaskLine),jt(K,K.lineFace))),["markerWidth","markerHeight"].forEach((function(e){var i="capsMaskMarker_"+e+"SE";qt(K,Q[i],t,Z=J[i][t])&&(K.capsMaskMarkerSE[t][e].baseVal.value=Z,tt=!0)})))})))),J.lineOutline_enabled&&["x","y"].forEach((function(t){var e="lineOutlineMask_"+t;qt(K,Q,e,Z=J[e])&&(K.lineOutlineMask[t].baseVal.value=Z,tt=!0)})),tt),i.effect&&(ht=(et=e).curStats,ct=et.aplStats,Object.keys(t).forEach((function(e){var i=t[e],r=e+"_enabled",n=e+"_options",s=ht[n];qt(et,ct,r,it=ht[r])?(it&&(ct[n]=At(s)),i[it?"init":"remove"](et)):it&&Tt(s,ct[n])&&(i.remove(et),ct[r]=!0,ct[n]=At(s),i.init(et))}))),(st||at)&&ut.line&&!ut.path&&jt(e,e.lineShape),st&&ut.plug&&!ut.line&&jt(e,e.plugsFace),Wt(e)}function ee(t,e){return{duration:ct(t.duration)&&0<t.duration?t.duration:e.duration,timing:ut.validTiming(t.timing)?t.timing:At(e.timing)}}function ie(t,i,r,n){var s,a=t.curStats,o=t.aplStats,l={};function h(){["show_on","show_effect","show_animOptions"].forEach((function(t){o[t]=a[t]}))}a.show_on=i,r&&e[r]&&(a.show_effect=r,a.show_animOptions=ee(ht(n)?n:{},e[r].defaultAnimOptions)),l.show_on=a.show_on!==o.show_on,l.show_effect=a.show_effect!==o.show_effect,l.show_animOptions=Tt(a.show_animOptions,o.show_animOptions),l.show_effect||l.show_animOptions?a.show_inAnim?(s=l.show_effect?e[o.show_effect].stop(t,!0,!0):e[o.show_effect].stop(t),h(),e[o.show_effect].init(t,s)):l.show_on&&(o.show_effect&&l.show_effect&&e[o.show_effect].stop(t,!0,!0),h(),e[o.show_effect].init(t)):l.show_on&&(h(),e[o.show_effect].start(t))}function re(t,e,i){var r={props:t,optionName:i};return t.attachments.indexOf(e)<0&&(!e.conf.bind||e.conf.bind(e,r))&&(t.attachments.push(e),e.boundTargets.push(r),1)}function ne(t,e,i){var r=t.attachments.indexOf(e);-1<r&&t.attachments.splice(r,1),e.boundTargets.some((function(i,n){return i.props===t&&(e.conf.unbind&&e.conf.unbind(e,i),r=n,!0)}))&&(e.boundTargets.splice(r,1),i||Ht((function(){e.boundTargets.length||s(e)})))}function se(s,a){var o,l,h,c,u,d,p,f,m,g,y,v,x,_,b,S,w,T=s.options,A={};function M(t,e,i,r,n){var s={};return i?null!=r?(s.container=t[i],s.key=r):(s.container=t,s.key=i):(s.container=t,s.key=e),s.default=n,s.acceptsAuto=null==s.default,s}function C(t,e,i,r,n,s,a){var o,l,h,c=M(t,i,n,s,a);return null!=e[i]&&(l=(e[i]+"").toLowerCase())&&(c.acceptsAuto&&l===U||(h=r[l]))&&h!==c.container[c.key]&&(c.container[c.key]=h,o=!0),null!=c.container[c.key]||c.acceptsAuto||(c.container[c.key]=c.default,o=!0),o}function k(t,e,i,r,n,s,a,o,l){var h,c,u,d,p=M(t,i,n,s,a);if(!r){if(null==p.default)throw new Error("Invalid `type`: "+i);r=typeof p.default}return null!=e[i]&&(p.acceptsAuto&&(e[i]+"").toLowerCase()===U||(u=c=e[i],("number"===(d=r)?ct(u):typeof u===d)&&(c=l&&"string"===r&&c?c.trim():c,1)&&(!o||o(c))))&&c!==p.container[p.key]&&(p.container[p.key]=c,h=!0),null!=p.container[p.key]||p.acceptsAuto||(p.container[p.key]=p.default,h=!0),h}if(a=a||{},["start","end"].forEach((function(t,e){var i=a[t],r=!1;if(i&&(Pt(i)||(r=n(i,"anchor")))&&i!==T.anchorSE[e]){if(!1!==s.optionIsAttach.anchorSE[e]&&ne(s,_t[T.anchorSE[e]._id]),r&&!re(s,_t[i._id],t))throw new Error("Can't bind attachment");T.anchorSE[e]=i,s.optionIsAttach.anchorSE[e]=r,l=A.position=!0}})),!T.anchorSE[0]||!T.anchorSE[1]||T.anchorSE[0]===T.anchorSE[1])throw new Error("`start` and `end` are required.");function I(t){var e=d.appendChild(S.createElementNS(et,"mask"));return e.id=t,e.maskUnits.baseVal=SVGUnitTypes.SVG_UNIT_TYPE_USERSPACEONUSE,[e.x,e.y,e.width,e.height].forEach((function(t){t.baseVal.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PX,0)})),e}function D(t){var e=d.appendChild(S.createElementNS(et,"marker"));return e.id=t,e.markerUnits.baseVal=SVGMarkerElement.SVG_MARKERUNITS_STROKEWIDTH,e.viewBox.baseVal||e.setAttribute("viewBox","0 0 0 0"),e}function R(t){return[t.width,t.height].forEach((function(t){t.baseVal.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PERCENTAGE,100)})),t}l&&(o=function(t,e){var i,r,n;if(!(i=kt(t))||!(r=kt(e)))throw new Error("Cannot get frames.");return i.length&&r.length&&(i.reverse(),r.reverse(),i.some((function(t){return r.some((function(e){return e===t&&(n=e.contentWindow,!0)}))}))),n||window}(!1!==s.optionIsAttach.anchorSE[0]?_t[T.anchorSE[0]._id].element:T.anchorSE[0],!1!==s.optionIsAttach.anchorSE[1]?_t[T.anchorSE[1]._id].element:T.anchorSE[1]))!==s.baseWindow&&(c=o,b=(h=s).aplStats,S=c.document,w=E+"-"+h._id,h.pathList={},Yt(b,ft),Object.keys(t).forEach((function(e){var i=e+"_enabled";b[i]&&(t[e].remove(h),b[i]=!1)})),h.baseWindow&&h.svg&&h.baseWindow.document.body.removeChild(h.svg),Zt(h.baseWindow=c),h.bodyOffset=Kt(c),h.svg=u=S.createElementNS(et,"svg"),u.className.baseVal=E,u.viewBox.baseVal||u.setAttribute("viewBox","0 0 0 0"),h.defs=d=u.appendChild(S.createElementNS(et,"defs")),h.linePath=f=d.appendChild(S.createElementNS(et,"path")),f.id=m=w+"-line-path",f.className.baseVal=E+"-line-path",at&&(f.style.fill="none"),h.lineShape=f=d.appendChild(S.createElementNS(et,"use")),f.id=g=w+"-line-shape",f.href.baseVal="#"+m,(p=d.appendChild(S.createElementNS(et,"g"))).id=y=w+"-caps",h.capsMaskAnchorSE=[0,1].map((function(){var t=p.appendChild(S.createElementNS(et,"path"));return t.className.baseVal=E+"-caps-mask-anchor",t})),h.lineMaskMarkerIdSE=[w+"-caps-mask-marker-0",w+"-caps-mask-marker-1"],h.capsMaskMarkerSE=[0,1].map((function(t){return D(h.lineMaskMarkerIdSE[t])})),h.capsMaskMarkerShapeSE=[0,1].map((function(t){var e=h.capsMaskMarkerSE[t].appendChild(S.createElementNS(et,"use"));return e.className.baseVal=E+"-caps-mask-marker-shape",e})),h.capsMaskLine=f=p.appendChild(S.createElementNS(et,"use")),f.className.baseVal=E+"-caps-mask-line",f.href.baseVal="#"+g,h.maskBGRect=f=R(d.appendChild(S.createElementNS(et,"rect"))),f.id=v=w+"-mask-bg-rect",f.className.baseVal=E+"-mask-bg-rect",at&&(f.style.fill="white"),h.lineMask=R(I(h.lineMaskId=w+"-line-mask")),h.lineMaskBG=f=h.lineMask.appendChild(S.createElementNS(et,"use")),f.href.baseVal="#"+v,h.lineMaskShape=f=h.lineMask.appendChild(S.createElementNS(et,"use")),f.className.baseVal=E+"-line-mask-shape",f.href.baseVal="#"+m,f.style.display="none",h.lineMaskCaps=f=h.lineMask.appendChild(S.createElementNS(et,"use")),f.href.baseVal="#"+y,h.lineOutlineMask=R(I(x=w+"-line-outline-mask")),(f=h.lineOutlineMask.appendChild(S.createElementNS(et,"use"))).href.baseVal="#"+v,h.lineOutlineMaskShape=f=h.lineOutlineMask.appendChild(S.createElementNS(et,"use")),f.className.baseVal=E+"-line-outline-mask-shape",f.href.baseVal="#"+m,h.lineOutlineMaskCaps=f=h.lineOutlineMask.appendChild(S.createElementNS(et,"use")),f.href.baseVal="#"+y,h.face=u.appendChild(S.createElementNS(et,"g")),h.lineFace=f=h.face.appendChild(S.createElementNS(et,"use")),f.href.baseVal="#"+g,h.lineOutlineFace=f=h.face.appendChild(S.createElementNS(et,"use")),f.href.baseVal="#"+g,f.style.mask="url(#"+x+")",f.style.display="none",h.plugMaskIdSE=[w+"-plug-mask-0",w+"-plug-mask-1"],h.plugMaskSE=[0,1].map((function(t){return I(h.plugMaskIdSE[t])})),h.plugMaskShapeSE=[0,1].map((function(t){var e=h.plugMaskSE[t].appendChild(S.createElementNS(et,"use"));return e.className.baseVal=E+"-plug-mask-shape",e})),_=[],h.plugOutlineMaskSE=[0,1].map((function(t){return I(_[t]=w+"-plug-outline-mask-"+t)})),h.plugOutlineMaskShapeSE=[0,1].map((function(t){var e=h.plugOutlineMaskSE[t].appendChild(S.createElementNS(et,"use"));return e.className.baseVal=E+"-plug-outline-mask-shape",e})),h.plugMarkerIdSE=[w+"-plug-marker-0",w+"-plug-marker-1"],h.plugMarkerSE=[0,1].map((function(t){var e=D(h.plugMarkerIdSE[t]);return at&&(e.markerUnits.baseVal=SVGMarkerElement.SVG_MARKERUNITS_USERSPACEONUSE),e})),h.plugMarkerShapeSE=[0,1].map((function(t){return h.plugMarkerSE[t].appendChild(S.createElementNS(et,"g"))})),h.plugFaceSE=[0,1].map((function(t){return h.plugMarkerShapeSE[t].appendChild(S.createElementNS(et,"use"))})),h.plugOutlineFaceSE=[0,1].map((function(t){var e=h.plugMarkerShapeSE[t].appendChild(S.createElementNS(et,"use"));return e.style.mask="url(#"+_[t]+")",e.style.display="none",e})),h.plugsFace=f=h.face.appendChild(S.createElementNS(et,"use")),f.className.baseVal=E+"-plugs-face",f.href.baseVal="#"+g,f.style.display="none",h.curStats.show_inAnim?(h.isShown=1,e[b.show_effect].stop(h,!0)):h.isShown||(u.style.visibility="hidden"),S.body.appendChild(u),[0,1,2].forEach((function(t){var e,i=h.options.labelSEM[t];i&&n(i,"label")&&(e=_t[i._id]).conf.initSvg&&e.conf.initSvg(e,h)})),A.line=A.plug=A.lineOutline=A.plugOutline=A.faces=A.effect=!0),A.position=C(T,a,"path",O,null,null,lt.path)||A.position,A.position=C(T,a,"startSocket",P,"socketSE",0)||A.position,A.position=C(T,a,"endSocket",P,"socketSE",1)||A.position,[a.startSocketGravity,a.endSocketGravity].forEach((function(t,e){var i,r,n=!1;null!=t&&(Array.isArray(t)?ct(t[0])&&ct(t[1])&&(n=[t[0],t[1]],Array.isArray(T.socketGravitySE[e])&&(i=n,r=T.socketGravitySE[e],i.length===r.length&&i.every((function(t,e){return t===r[e]})))&&(n=!1)):((t+"").toLowerCase()===U?n=null:ct(t)&&0<=t&&(n=t),n===T.socketGravitySE[e]&&(n=!1)),!1!==n&&(T.socketGravitySE[e]=n,A.position=!0))})),A.line=k(T,a,"color",null,"lineColor",null,lt.lineColor,null,!0)||A.line,A.line=k(T,a,"size",null,"lineSize",null,lt.lineSize,(function(t){return 0<t}))||A.line,["startPlug","endPlug"].forEach((function(t,e){A.plug=C(T,a,t,V,"plugSE",e,lt.plugSE[e])||A.plug,A.plug=k(T,a,t+"Color","string","plugColorSE",e,null,null,!0)||A.plug,A.plug=k(T,a,t+"Size",null,"plugSizeSE",e,lt.plugSizeSE[e],(function(t){return 0<t}))||A.plug})),A.lineOutline=k(T,a,"outline",null,"lineOutlineEnabled",null,lt.lineOutlineEnabled)||A.lineOutline,A.lineOutline=k(T,a,"outlineColor",null,"lineOutlineColor",null,lt.lineOutlineColor,null,!0)||A.lineOutline,A.lineOutline=k(T,a,"outlineSize",null,"lineOutlineSize",null,lt.lineOutlineSize,(function(t){return 0<t&&t<=.48}))||A.lineOutline,["startPlugOutline","endPlugOutline"].forEach((function(t,e){A.plugOutline=k(T,a,t,null,"plugOutlineEnabledSE",e,lt.plugOutlineEnabledSE[e])||A.plugOutline,A.plugOutline=k(T,a,t+"Color","string","plugOutlineColorSE",e,null,null,!0)||A.plugOutline,A.plugOutline=k(T,a,t+"Size",null,"plugOutlineSizeSE",e,lt.plugOutlineSizeSE[e],(function(t){return 1<=t}))||A.plugOutline})),["startLabel","endLabel","middleLabel"].forEach((function(t,e){var o,l,h,c=a[t],u=T.labelSEM[e]&&!s.optionIsAttach.labelSEM[e]?_t[T.labelSEM[e]._id].text:T.labelSEM[e],d=!1;if((o="string"==typeof c)&&(c=c.trim()),(o||c&&(d=n(c,"label")))&&c!==u){if(T.labelSEM[e]&&(ne(s,_t[T.labelSEM[e]._id]),T.labelSEM[e]=""),c){if(d?(l=_t[(h=c)._id]).boundTargets.slice().forEach((function(t){l.conf.removeOption(l,t)})):h=new r(i.captionLabel,[c]),!re(s,_t[h._id],t))throw new Error("Can't bind attachment");T.labelSEM[e]=h}s.optionIsAttach.labelSEM[e]=d}})),Object.keys(t).forEach((function(e){var i,r,n=t[e],o=e+"_enabled",l=e+"_options";function h(t){var e={};return n.optionsConf.forEach((function(i){var r=i[0],n=i[3];null==i[4]||e[n]||(e[n]=[]),("function"==typeof r?r:"id"===r?C:k).apply(null,[e,t].concat(i.slice(1)))})),e}function c(t){var i,r=e+"_animOptions";return t.hasOwnProperty("animation")?ht(t.animation)?i=s.curStats[r]=ee(t.animation,n.defaultAnimOptions):(i=!!t.animation,s.curStats[r]=i?ee({},n.defaultAnimOptions):null):(i=!!n.defaultEnabled,s.curStats[r]=i?ee({},n.defaultAnimOptions):null),i}a.hasOwnProperty(e)&&(i=a[e],ht(i)?(s.curStats[o]=!0,r=s.curStats[l]=h(i),n.anim&&(s.curStats[l].animation=c(i))):(r=s.curStats[o]=!!i)&&(s.curStats[l]=h({}),n.anim&&(s.curStats[l].animation=c({}))),Tt(r,T[e])&&(T[e]=r,A.effect=!0))})),te(s,A)}function ae(i,r,n){var s={options:{anchorSE:[],socketSE:[],socketGravitySE:[],plugSE:[],plugColorSE:[],plugSizeSE:[],plugOutlineEnabledSE:[],plugOutlineColorSE:[],plugOutlineSizeSE:[],labelSEM:["","",""]},optionIsAttach:{anchorSE:[!1,!1],labelSEM:[!1,!1,!1]},curStats:{},aplStats:{},attachments:[],events:{},reflowTargets:[]};Yt(s.curStats,ft),Yt(s.aplStats,ft),Object.keys(t).forEach((function(e){var i=t[e].stats;Yt(s.curStats,i),Yt(s.aplStats,i),s.options[e]=!1})),Yt(s.curStats,mt),Yt(s.aplStats,mt),s.curStats.show_effect=gt,s.curStats.show_animOptions=At(e[gt].defaultAnimOptions),Object.defineProperty(this,"_id",{value:++xt}),s._id=this._id,vt[this._id]=s,1===arguments.length&&(n=i,i=null),n=n||{},(i||r)&&(n=At(n),i&&(n.start=i),r&&(n.end=r)),s.isShown=s.aplStats.show_on=!n.hide,this.setOptions(n)}function oe(t){return function(e){var i={};i[t]=e,this.setOptions(i)}}function le(t,e){var i,r={conf:t,curStats:{},aplStats:{},boundTargets:[]},n={};t.argOptions.every((function(t){return!(!e.length||("string"==typeof t.type?typeof e[0]!==t.type:"function"!=typeof t.type||!t.type(e[0]))||(n[t.optionName]=e.shift(),0))})),i=e.length&&ht(e[0])?At(e[0]):{},Object.keys(n).forEach((function(t){i[t]=n[t]})),t.stats&&(Yt(r.curStats,t.stats),Yt(r.aplStats,t.stats)),Object.defineProperty(this,"_id",{value:++bt}),Object.defineProperty(this,"isRemoved",{get:function(){return!_t[this._id]}}),r._id=this._id,t.init&&!t.init(r,i)||(_t[this._id]=r)}return t={dash:{stats:{dash_len:{},dash_gap:{},dash_maxOffset:{}},anim:!0,defaultAnimOptions:{duration:1e3,timing:"linear"},optionsConf:[["type","len","number",null,null,null,function(t){return 0<t}],["type","gap","number",null,null,null,function(t){return 0<t}]],init:function(e){Gt(e,"apl_line_strokeWidth",t.dash.update),e.lineFace.style.strokeDashoffset=0,t.dash.update(e)},remove:function(e){var i=e.curStats;Ut(e,"apl_line_strokeWidth",t.dash.update),i.dash_animId&&(ut.remove(i.dash_animId),i.dash_animId=null),e.lineFace.style.strokeDasharray="none",e.lineFace.style.strokeDashoffset=0,Yt(e.aplStats,t.dash.stats)},update:function(t){var e,i=t.curStats,r=t.aplStats,n=r.dash_options,s=!1;i.dash_len=n.len||2*r.line_strokeWidth,i.dash_gap=n.gap||r.line_strokeWidth,i.dash_maxOffset=i.dash_len+i.dash_gap,s=qt(t,r,"dash_len",i.dash_len)||s,(s=qt(t,r,"dash_gap",i.dash_gap)||s)&&(t.lineFace.style.strokeDasharray=r.dash_len+","+r.dash_gap),i.dash_animOptions?(s=qt(t,r,"dash_maxOffset",i.dash_maxOffset),r.dash_animOptions&&(s||Tt(i.dash_animOptions,r.dash_animOptions))&&(i.dash_animId&&(e=ut.stop(i.dash_animId),ut.remove(i.dash_animId)),r.dash_animOptions=null),r.dash_animOptions||(i.dash_animId=ut.add((function(t){return(1-t)*r.dash_maxOffset+"px"}),(function(e){t.lineFace.style.strokeDashoffset=e}),i.dash_animOptions.duration,0,i.dash_animOptions.timing,!1,e),r.dash_animOptions=At(i.dash_animOptions))):r.dash_animOptions&&(i.dash_animId&&(ut.remove(i.dash_animId),i.dash_animId=null),t.lineFace.style.strokeDashoffset=0,r.dash_animOptions=null)}},gradient:{stats:{gradient_colorSE:{hasSE:!0},gradient_pointSE:{hasSE:!0,hasProps:!0}},optionsConf:[["type","startColor","string","colorSE",0,null,null,!0],["type","endColor","string","colorSE",1,null,null,!0]],init:function(e){var i,r=e.baseWindow.document,n=e.defs,s=E+"-"+e._id+"-gradient";e.efc_gradient_gradient=i=n.appendChild(r.createElementNS(et,"linearGradient")),i.id=s,i.gradientUnits.baseVal=SVGUnitTypes.SVG_UNIT_TYPE_USERSPACEONUSE,[i.x1,i.y1,i.x2,i.y2].forEach((function(t){t.baseVal.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PX,0)})),e.efc_gradient_stopSE=[0,1].map((function(t){var i=e.efc_gradient_gradient.appendChild(r.createElementNS(et,"stop"));try{i.offset.baseVal=t}
vendor: 4,259 bytes, line 2
2catch(e){if(e.code!==DOMException.NO_MODIFICATION_ALLOWED_ERR)throw e;i.setAttribute("offset",t)}return i})),Gt(e,"cur_plug_colorSE",t.gradient.update),Gt(e,"apl_path",t.gradient.update),e.curStats.line_altColor=!0,e.lineFace.style.stroke="url(#"+s+")",t.gradient.update(e)},remove:function(e){e.efc_gradient_gradient&&(e.defs.removeChild(e.efc_gradient_gradient),e.efc_gradient_gradient=e.efc_gradient_stopSE=null),Ut(e,"cur_plug_colorSE",t.gradient.update),Ut(e,"apl_path",t.gradient.update),e.curStats.line_altColor=!1,e.lineFace.style.stroke=e.curStats.line_color,Yt(e.aplStats,t.gradient.stats)},update:function(t){var e,i,r=t.curStats,n=t.aplStats,s=n.gradient_options,a=t.pathList.animVal||t.pathList.baseVal;[0,1].forEach((function(t){r.gradient_colorSE[t]=s.colorSE[t]||r.plug_colorSE[t]})),i=a[0][0],r.gradient_pointSE[0]={x:i.x,y:i.y},i=(e=a[a.length-1])[e.length-1],r.gradient_pointSE[1]={x:i.x,y:i.y},[0,1].forEach((function(e){var i;qt(t,n.gradient_colorSE,e,i=r.gradient_colorSE[e])&&(at?(i=Mt(i),t.efc_gradient_stopSE[e].style.stopColor=i[1],t.efc_gradient_stopSE[e].style.stopOpacity=i[0]):t.efc_gradient_stopSE[e].style.stopColor=i),["x","y"].forEach((function(s){(i=r.gradient_pointSE[e][s])!==n.gradient_pointSE[e][s]&&(t.efc_gradient_gradient[s+(e+1)].baseVal.value=n.gradient_pointSE[e][s]=i)}))}))}},dropShadow:{stats:{dropShadow_dx:{},dropShadow_dy:{},dropShadow_blur:{},dropShadow_color:{},dropShadow_opacity:{},dropShadow_x:{},dropShadow_y:{}},optionsConf:[["type","dx",null,null,null,2],["type","dy",null,null,null,4],["type","blur",null,null,null,3,function(t){return 0<=t}],["type","color",null,null,null,"#000",null,!0],["type","opacity",null,null,null,.8,function(t){return 0<=t&&t<=1}]],init:function(e){var i,r,n,s,a,o=e.baseWindow.document,l=e.defs,c=E+"-"+e._id+"-dropShadow",u=(i=o,r=c,a={},"boolean"!=typeof h&&(h=!!window.SVGFEDropShadowElement&&!at),a.elmsAppend=[a.elmFilter=n=i.createElementNS(et,"filter")],n.filterUnits.baseVal=SVGUnitTypes.SVG_UNIT_TYPE_USERSPACEONUSE,n.x.baseVal.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PX,0),n.y.baseVal.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PX,0),n.width.baseVal.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PERCENTAGE,100),n.height.baseVal.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PERCENTAGE,100),n.id=r,h?(a.elmOffset=a.elmBlur=s=n.appendChild(i.createElementNS(et,"feDropShadow")),a.styleFlood=s.style):(a.elmBlur=n.appendChild(i.createElementNS(et,"feGaussianBlur")),a.elmOffset=s=n.appendChild(i.createElementNS(et,"feOffset")),s.result.baseVal="offsetblur",s=n.appendChild(i.createElementNS(et,"feFlood")),a.styleFlood=s.style,(s=n.appendChild(i.createElementNS(et,"feComposite"))).in2.baseVal="offsetblur",s.operator.baseVal=SVGFECompositeElement.SVG_FECOMPOSITE_OPERATOR_IN,(s=n.appendChild(i.createElementNS(et,"feMerge"))).appendChild(i.createElementNS(et,"feMergeNode")),s.appendChild(i.createElementNS(et,"feMergeNode")).in1.baseVal="SourceGraphic"),a);["elmFilter","elmOffset","elmBlur","styleFlood","elmsAppend"].forEach((function(t){e["efc_dropShadow_"+t]=u[t]})),u.elmsAppend.forEach((function(t){l.appendChild(t)})),e.face.setAttribute("filter","url(#"+c+")"),Gt(e,"new_edge4viewBox",t.dropShadow.adjustEdge),t.dropShadow.update(e)},remove:function(e){var i=e.defs;e.efc_dropShadow_elmsAppend&&(e.efc_dropShadow_elmsAppend.forEach((function(t){i.removeChild(t)})),e.efc_dropShadow_elmFilter=e.efc_dropShadow_elmOffset=e.efc_dropShadow_elmBlur=e.efc_dropShadow_styleFlood=e.efc_dropShadow_elmsAppend=null),Ut(e,"new_edge4viewBox",t.dropShadow.adjustEdge),te(e,{}),e.face.removeAttribute("filter"),Yt(e.aplStats,t.dropShadow.stats)},update:function(t){var e,i,r=t.curStats,n=t.aplStats,s=n.dropShadow_options;r.dropShadow_dx=e=s.dx,qt(t,n,"dropShadow_dx",e)&&(t.efc_dropShadow_elmOffset.dx.baseVal=e,i=!0),r.dropShadow_dy=e=s.dy,qt(t,n,"dropShadow_dy",e)&&(t.efc_dropShadow_elmOffset.dy.baseVal=e,i=!0),r.dropShadow_blur=e=s.blur,qt(t,n,"dropShadow_blur",e)&&(t.efc_dropShadow_elmBlur.setStdDeviation(e,e),i=!0),i&&te(t,{}),r.dropShadow_color=e=s.color,qt(t,n,"dropShadow_color",e)&&(t.efc_dropShadow_styleFlood.floodColor=e),r.dropShadow_opacity=e=s.opacity,qt(t,n,"dropShadow_opacity",e)&&(t.efc_dropShadow_styleFlood.floodOpacity=e)}
vendor: 26,621 bytes, line 2
2,adjustEdge:function(t,e){var i,r,n=t.curStats,s=t.aplStats;null!=n.dropShadow_dx&&(i=3*n.dropShadow_blur,(r={x1:e.x1-i+n.dropShadow_dx,y1:e.y1-i+n.dropShadow_dy,x2:e.x2+i+n.dropShadow_dx,y2:e.y2+i+n.dropShadow_dy}).x1<e.x1&&(e.x1=r.x1),r.y1<e.y1&&(e.y1=r.y1),r.x2>e.x2&&(e.x2=r.x2),r.y2>e.y2&&(e.y2=r.y2),["x","y"].forEach((function(i){var r,a="dropShadow_"+i;n[a]=r=e[i+"1"],qt(t,s,a,r)&&(t.efc_dropShadow_elmFilter[i].baseVal.value=r)})))}}},Object.keys(t).forEach((function(e){var i=t[e],r=i.stats;r[e+"_enabled"]={iniValue:!1},r[e+"_options"]={hasProps:!0},i.anim&&(r[e+"_animOptions"]={},r[e+"_animId"]={})})),e={none:{defaultAnimOptions:{},init:function(t,i){var r=t.curStats;r.show_animId&&(ut.remove(r.show_animId),r.show_animId=null),e.none.start(t,i)},start:function(t,i){e.none.stop(t,!0)},stop:function(t,e,i){var r=t.curStats;return i=null!=i?i:t.aplStats.show_on,r.show_inAnim=!1,e&&Qt(t,i),i?1:0}},fade:{defaultAnimOptions:{duration:300,timing:"linear"},init:function(t,i){var r=t.curStats,n=t.aplStats;r.show_animId&&ut.remove(r.show_animId),r.show_animId=ut.add((function(t){return t}),(function(i,r){r?e.fade.stop(t,!0):(t.svg.style.opacity=i+"",rt&&(jt(t,t.svg),Wt(t)))}),n.show_animOptions.duration,1,n.show_animOptions.timing,null,!1),e.fade.start(t,i)},start:function(t,e){var i,r=t.curStats;r.show_inAnim&&(i=ut.stop(r.show_animId)),Qt(t,1),r.show_inAnim=!0,ut.start(r.show_animId,!t.aplStats.show_on,null!=e?e:i)},stop:function(t,e,i){var r,n=t.curStats;return i=null!=i?i:t.aplStats.show_on,r=n.show_inAnim?ut.stop(n.show_animId):i?1:0,n.show_inAnim=!1,e&&(t.svg.style.opacity=i?"":"0",Qt(t,i)),r}},draw:{defaultAnimOptions:{duration:500,timing:[.58,0,.42,1]},init:function(t,i){var r=t.curStats,n=t.aplStats,s=t.pathList.baseVal,a=Vt(s),o=a.segsLen,l=a.lenAll;r.show_animId&&ut.remove(r.show_animId),r.show_animId=ut.add((function(t){var e,i,r,n,a=-1;if(0===t)i=[[s[0][0],s[0][0]]];else if(1===t)i=s;else{for(e=l*t,i=[];e>=o[++a];)i.push(s[a]),e-=o[a];e&&(2===(r=s[a]).length?i.push([r[0],Rt(r[0],r[1],e/o[a])]):(n=Lt(r[0],r[1],r[2],r[3],Bt(r[0],r[1],r[2],r[3],e)),i.push([r[0],n.fromP1,n.fromP2,n])))}return i}),(function(i,r){r?e.draw.stop(t,!0):(t.pathList.animVal=i,te(t,{path:!0}))}),n.show_animOptions.duration,1,n.show_animOptions.timing,null,!1),e.draw.start(t,i)},start:function(t,i){var r,n=t.curStats;n.show_inAnim&&(r=ut.stop(n.show_animId)),Qt(t,1),n.show_inAnim=!0,Gt(t,"apl_position",e.draw.update),ut.start(n.show_animId,!t.aplStats.show_on,null!=i?i:r)},stop:function(t,e,i){var r,n=t.curStats;return i=null!=i?i:t.aplStats.show_on,r=n.show_inAnim?ut.stop(n.show_animId):i?1:0,n.show_inAnim=!1,e&&(t.pathList.animVal=i?null:[[t.pathList.baseVal[0][0],t.pathList.baseVal[0][0]]],te(t,{path:!0}),Qt(t,i)),r},update:function(t){Ut(t,"apl_position",e.draw.update),t.curStats.show_inAnim?e.draw.init(t,e.draw.stop(t)):t.aplStats.show_animOptions={}}}},[["start","anchorSE",0],["end","anchorSE",1],["color","lineColor"],["size","lineSize"],["startSocketGravity","socketGravitySE",0],["endSocketGravity","socketGravitySE",1],["startPlugColor","plugColorSE",0],["endPlugColor","plugColorSE",1],["startPlugSize","plugSizeSE",0],["endPlugSize","plugSizeSE",1],["outline","lineOutlineEnabled"],["outlineColor","lineOutlineColor"],["outlineSize","lineOutlineSize"],["startPlugOutline","plugOutlineEnabledSE",0],["endPlugOutline","plugOutlineEnabledSE",1],["startPlugOutlineColor","plugOutlineColorSE",0],["endPlugOutlineColor","plugOutlineColorSE",1],["startPlugOutlineSize","plugOutlineSizeSE",0],["endPlugOutlineSize","plugOutlineSizeSE",1]].forEach((function(t){var e=t[0],i=t[1],r=t[2];Object.defineProperty(ae.prototype,e,{get:function(){var t=null!=r?vt[this._id].options[i][r]:i?vt[this._id].options[i]:vt[this._id].options[e];return null==t?U:At(t)},set:oe(e),enumerable:!0})})),[["path",O],["startSocket",P,"socketSE",0],["endSocket",P,"socketSE",1],["startPlug",V,"plugSE",0],["endPlug",V,"plugSE",1]].forEach((function(t){var e=t[0],i=t[1],r=t[2],n=t[3];Object.defineProperty(ae.prototype,e,{get:function(){var t,s=null!=n?vt[this._id].options[r][n]:r?vt[this._id].options[r]:vt[this._id].options[e];return s?Object.keys(i).some((function(e){return i[e]===s&&(t=e,!0)}))?t:new Error("It's broken"):U},set:oe(e),enumerable:!0})})),Object.keys(t).forEach((function(e){var i=t[e];Object.defineProperty(ae.prototype,e,{get:function(){var t,r,n=vt[this._id].options[e];return ht(n)?(t=n,r=i.optionsConf.reduce((function(e,i){var r,n=i[0],s=i[1],a=i[2],o=i[3],l=i[4],h=null!=l?t[o][l]:o?t[o]:t[s];return e[s]="id"===n?h?Object.keys(a).some((function(t){return a[t]===h&&(r=t,!0)}))?r:new Error("It's broken"):U:null==h?U:At(h),e}),{}),i.anim&&(r.animation=At(t.animation)),r):n},set:oe(e),enumerable:!0})})),["startLabel","endLabel","middleLabel"].forEach((function(t,e){Object.defineProperty(ae.prototype,t,{get:function(){var t=vt[this._id],i=t.options;return i.labelSEM[e]&&!t.optionIsAttach.labelSEM[e]?_t[i.labelSEM[e]._id].text:i.labelSEM[e]||""},set:oe(t),enumerable:!0})})),ae.prototype.setOptions=function(t){return se(vt[this._id],t),this},ae.prototype.position=function(){return te(vt[this._id],{position:!0}),this},ae.prototype.remove=function(){var e=vt[this._id],i=e.curStats;Object.keys(t).forEach((function(t){var e=t+"_animId";i[e]&&ut.remove(i[e])})),i.show_animId&&ut.remove(i.show_animId),e.attachments.slice().forEach((function(t){ne(e,t)})),e.baseWindow&&e.svg&&e.baseWindow.document.body.removeChild(e.svg),delete vt[this._id]},ae.prototype.show=function(t,e){return ie(vt[this._id],!0,t,e),this},ae.prototype.hide=function(t,e){return ie(vt[this._id],!1,t,e),this},s=function(t){t&&_t[t._id]&&(t.boundTargets.slice().forEach((function(e){ne(e.props,t,!0)})),t.conf.remove&&t.conf.remove(t),delete _t[t._id])},le.prototype.remove=function(){var t=this,e=_t[t._id];e&&(e.boundTargets.slice().forEach((function(t){e.conf.removeOption(e,t)})),Ht((function(){var e=_t[t._id];e&&(console.error("LeaderLineAttachment was not removed by removeOption"),s(e))})))},r=le,window.LeaderLineAttachment=r,n=function(t,e){return t instanceof r&&(!(t.isRemoved||e&&_t[t._id].conf.type!==e)||null)},i={pointAnchor:{type:"anchor",argOptions:[{optionName:"element",type:Pt}],init:function(t,e){return t.element=i.pointAnchor.checkElement(e.element),t.x=i.pointAnchor.parsePercent(e.x,!0)||[.5,!0],t.y=i.pointAnchor.parsePercent(e.y,!0)||[.5,!0],!0},removeOption:function(t,e){var n=e.props,s={},a=t.element,o=n.options.anchorSE["start"===e.optionName?1:0];a===o&&(a=o===document.body?new r(i.pointAnchor,[a]):document.body),s[e.optionName]=a,se(n,s)},getBBoxNest:function(t,e){var i=It(t.element,e.baseWindow),r=i.width,n=i.height;return i.width=i.height=0,i.left=i.right=i.left+t.x[0]*(t.x[1]?r:1),i.top=i.bottom=i.top+t.y[0]*(t.y[1]?n:1),i},parsePercent:function(t,e){var i,r,n=!1;return ct(t)?r=t:"string"==typeof t&&(i=tt.exec(t))&&i[2]&&(n=0!=(r=parseFloat(i[1])/100)),null!=r&&(e||0<=r)?[r,n]:null},checkElement:function(t){if(null==t)t=document.body;else if(!Pt(t))throw new Error("`element` must be Element");return t}},areaAnchor:{type:"anchor",argOptions:[{optionName:"element",type:Pt},{optionName:"shape",type:"string"}],stats:{color:{},strokeWidth:{},elementWidth:{},elementHeight:{},elementLeft:{},elementTop:{},pathListRel:{},bBoxRel:{},pathData:{},viewBoxBBox:{hasProps:!0},dashLen:{},dashGap:{}},init:function(t,e){var r,n,s,a=[];return t.element=i.pointAnchor.checkElement(e.element),"string"==typeof e.color&&(t.color=e.color.trim()),"string"==typeof e.fillColor&&(t.fill=e.fillColor.trim()),ct(e.size)&&0<=e.size&&(t.size=e.size),e.dash&&(t.dash=!0,ct(e.dash.len)&&0<e.dash.len&&(t.dashLen=e.dash.len),ct(e.dash.gap)&&0<e.dash.gap&&(t.dashGap=e.dash.gap)),"circle"===e.shape?t.shape=e.shape:"polygon"===e.shape&&Array.isArray(e.points)&&3<=e.points.length&&e.points.every((function(e){var r={};return!(!(r.x=i.pointAnchor.parsePercent(e[0],!0))||!(r.y=i.pointAnchor.parsePercent(e[1],!0))||(a.push(r),(r.x[1]||r.y[1])&&(t.hasRatio=!0),0))}))?(t.shape=e.shape,t.points=a):(t.shape="rect",t.radius=ct(e.radius)&&0<=e.radius?e.radius:0),"rect"!==t.shape&&"circle"!==t.shape||(t.x=i.pointAnchor.parsePercent(e.x,!0)||[-.05,!0],t.y=i.pointAnchor.parsePercent(e.y,!0)||[-.05,!0],t.width=i.pointAnchor.parsePercent(e.width)||[1.1,!0],t.height=i.pointAnchor.parsePercent(e.height)||[1.1,!0],(t.x[1]||t.y[1]||t.width[1]||t.height[1])&&(t.hasRatio=!0)),r=t.element.ownerDocument,t.svg=n=r.createElementNS(et,"svg"),n.className.baseVal=E+"-areaAnchor",n.viewBox.baseVal||n.setAttribute("viewBox","0 0 0 0"),t.path=n.appendChild(r.createElementNS(et,"path")),t.path.style.fill=t.fill||"none",t.isShown=!1,n.style.visibility="hidden",r.body.appendChild(n),Zt(s=r.defaultView),t.bodyOffset=Kt(s),t.updateColor=function(){var e,i=t.curStats,r=t.aplStats,n=t.boundTargets.length?t.boundTargets[0].props.curStats:null;i.color=e=t.color||(n?n.line_color:lt.lineColor),qt(t,r,"color",e)&&(t.path.style.stroke=e)},t.updateShow=function(){Qt(t,t.boundTargets.some((function(t){return!0===t.props.isShown})))},!0},bind:function(t,e){var i=e.props;return t.color||Gt(i,"cur_line_color",t.updateColor),Gt(i,"svgShow",t.updateShow),Ht((function(){t.updateColor(),t.updateShow()})),!0},unbind:function(t,e){var r=e.props;t.color||Ut(r,"cur_line_color",t.updateColor),Ut(r,"svgShow",t.updateShow),1<t.boundTargets.length&&Ht((function(){t.updateColor(),t.updateShow(),i.areaAnchor.update(t)&&t.boundTargets.forEach((function(t){te(t.props,{position:!0})}))}))},removeOption:function(t,e){i.pointAnchor.removeOption(t,e)},remove:function(t){t.boundTargets.length&&(console.error("LeaderLineAttachment was not unbound by remove"),t.boundTargets.forEach((function(e){i.areaAnchor.unbind(t,e)}))),t.svg.parentNode.removeChild(t.svg)},getStrokeWidth:function(t,e){return i.areaAnchor.update(t)&&1<t.boundTargets.length&&Ht((function(){t.boundTargets.forEach((function(t){t.props!==e&&te(t.props,{position:!0})}))})),t.curStats.strokeWidth},getPathData:function(t,e){var i=It(t.element,e.baseWindow);return Nt(t.curStats.pathListRel,(function(t){t.x+=i.left,t.y+=i.top}))},getBBoxNest:function(t,e){var i=It(t.element,e.baseWindow),r=t.curStats.bBoxRel;return{left:r.left+i.left,top:r.top+i.top,right:r.right+i.left,bottom:r.bottom+i.top,width:r.width,height:r.height}},update:function(t){var e,i,r,n,s,a,o,l,h,c,u,d,p,f,m,g,y,v,x,_,b,S,E,w,T,A,M,P,C,k,I,D,R=t.curStats,O=t.aplStats,L=t.boundTargets.length?t.boundTargets[0].props.curStats:null,F={};if(F.strokeWidth=qt(t,R,"strokeWidth",null!=t.size?t.size:L?L.line_strokeWidth:lt.lineSize),e=Ct(t.element),F.elementWidth=qt(t,R,"elementWidth",e.width),F.elementHeight=qt(t,R,"elementHeight",e.height),F.elementLeft=qt(t,R,"elementLeft",e.left),F.elementTop=qt(t,R,"elementTop",e.top),F.strokeWidth||t.hasRatio&&(F.elementWidth||F.elementHeight)){switch(t.shape){case"rect":(P={left:t.x[0]*(t.x[1]?e.width:1),top:t.y[0]*(t.y[1]?e.height:1),width:t.width[0]*(t.width[1]?e.width:1),height:t.height[0]*(t.height[1]?e.height:1)}).right=P.left+P.width,P.bottom=P.top+P.height,E=R.strokeWidth/2,b=(S=Math.min(P.width,P.height))?S/2*Math.SQRT2+E:0,A=(_=t.radius?t.radius<=b?t.radius:b:0)?(T=_-(w=(_-E)/Math.SQRT2),M=_*J,A=[{x:P.left-T,y:P.top+w},{x:P.left+w,y:P.top-T},{x:P.right-w,y:P.top-T},{x:P.right+T,y:P.top+w},{x:P.right+T,y:P.bottom-w},{x:P.right-w,y:P.bottom+T},{x:P.left+w,y:P.bottom+T},{x:P.left-T,y:P.bottom-w}],R.pathListRel=[[A[0],{x:A[0].x,y:A[0].y-M},{x:A[1].x-M,y:A[1].y},A[1]]],A[1].x!==A[2].x&&R.pathListRel.push([A[1],A[2]]),R.pathListRel.push([A[2],{x:A[2].x+M,y:A[2].y},{x:A[3].x,y:A[3].y-M},A[3]]),A[3].y!==A[4].y&&R.pathListRel.push([A[3],A[4]]),R.pathListRel.push([A[4],{x:A[4].x,y:A[4].y+M},{x:A[5].x+M,y:A[5].y},A[5]]),A[5].x!==A[6].x&&R.pathListRel.push([A[5],A[6]]),R.pathListRel.push([A[6],{x:A[6].x-M,y:A[6].y},{x:A[7].x,y:A[7].y+M},A[7]]),A[7].y!==A[0].y&&R.pathListRel.push([A[7],A[0]]),R.pathListRel.push([]),T=_-w+R.strokeWidth/2,[{x:P.left-T,y:P.top-T},{x:P.right+T,y:P.bottom+T}]):(T=R.strokeWidth/2,A=[{x:P.left-T,y:P.top-T},{x:P.right+T,y:P.bottom+T}],R.pathListRel=[[A[0],{x:A[1].x,y:A[0].y}],[{x:A[1].x,y:A[0].y},A[1]],[A[1],{x:A[0].x,y:A[1].y}],[]],[{x:P.left-R.strokeWidth,y:P.top-R.strokeWidth},{x:P.right+R.strokeWidth,y:P.bottom+R.strokeWidth}]),R.bBoxRel={left:A[0].x,top:A[0].y,right:A[1].x,bottom:A[1].y,width:A[1].x-A[0].x,height:A[1].y-A[0].y};break;case"circle":(x={left:t.x[0]*(t.x[1]?e.width:1),top:t.y[0]*(t.y[1]?e.height:1),width:t.width[0]*(t.width[1]?e.width:1),height:t.height[0]*(t.height[1]?e.height:1)}).width||x.height||(x.width=x.height=10),x.width||(x.width=x.height),x.height||(x.height=x.width),x.right=x.left+x.width,x.bottom=x.top+x.height,o=x.left+x.width/2,l=x.top+x.height/2,p=R.strokeWidth/2,f=x.width/2,m=x.height/2,h=f*Math.SQRT2+p,c=m*Math.SQRT2+p,u=h*J,d=c*J,v=[{x:o-h,y:l},{x:o,y:l-c},{x:o+h,y:l},{x:o,y:l+c}],R.pathListRel=[[v[0],{x:v[0].x,y:v[0].y-d},{x:v[1].x-u,y:v[1].y},v[1]],[v[1],{x:v[1].x+u,y:v[1].y},{x:v[2].x,y:v[2].y-d},v[2]],[v[2],{x:v[2].x,y:v[2].y+d},{x:v[3].x+u,y:v[3].y},v[3]],[v[3],{x:v[3].x-u,y:v[3].y},{x:v[0].x,y:v[0].y+d},v[0]],[]],g=h-f+R.strokeWidth/2,y=c-m+R.strokeWidth/2,v=[{x:x.left-g,y:x.top-y},{x:x.right+g,y:x.bottom+y}],R.bBoxRel={left:v[0].x,top:v[0].y,right:v[1].x,bottom:v[1].y,width:v[1].x-v[0].x,height:v[1].y-v[0].y};break;case"polygon":t.points.forEach((function(t){var i=t.x[0]*(t.x[1]?e.width:1),s=t.y[0]*(t.y[1]?e.height:1);r?(i<r.left&&(r.left=i),i>r.right&&(r.right=i),s<r.top&&(r.top=s),s>r.bottom&&(r.bottom=s)):r={left:i,right:i,top:s,bottom:s},n?R.pathListRel.push([n,{x:i,y:s}]):R.pathListRel=[],n={x:i,y:s}})),R.pathListRel.push([]),s=R.strokeWidth/2,a=[{x:r.left-s,y:r.top-s},{x:r.right+s,y:r.bottom+s}],R.bBoxRel={left:a[0].x,top:a[0].y,right:a[1].x,bottom:a[1].y,width:a[1].x-a[0].x,height:a[1].y-a[0].y}}F.pathListRel=F.bBoxRel=!0}return(F.pathListRel||F.elementLeft||F.elementTop)&&(R.pathData=Nt(R.pathListRel,(function(t){t.x+=e.left,t.y+=e.top}))),qt(t,O,"strokeWidth",i=R.strokeWidth)&&(t.path.style.strokeWidth=i+"px"),zt(i=R.pathData,O.pathData)&&(t.path.setPathData(i),O.pathData=i,F.pathData=!0),t.dash&&(!F.pathData&&(!F.strokeWidth||t.dashLen&&t.dashGap)||(R.dashLen=t.dashLen||2*R.strokeWidth,R.dashGap=t.dashGap||R.strokeWidth),F.dash=qt(t,O,"dashLen",R.dashLen)||F.dash,F.dash=qt(t,O,"dashGap",R.dashGap)||F.dash,F.dash&&(t.path.style.strokeDasharray=O.dashLen+","+O.dashGap)),C=R.viewBoxBBox,k=O.viewBoxBBox,I=t.svg.viewBox.baseVal,D=t.svg.style,C.x=R.bBoxRel.left+e.left,C.y=R.bBoxRel.top+e.top,C.width=R.bBoxRel.width,C.height=R.bBoxRel.height,["x","y","width","height"].forEach((function(e){(i=C[e])!==k[e]&&(I[e]=k[e]=i,D[H[e]]=i+("x"===e||"y"===e?t.bodyOffset[e]:0)+"px")})),F.strokeWidth||F.pathListRel||F.bBoxRel}},mouseHoverAnchor:{type:"anchor",argOptions:[{optionName:"element",type:Pt},{optionName:"showEffectName",type:"string"}],style:{backgroundImage:"url('data:image/svg+xml;charset=utf-8;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij48cG9seWdvbiBwb2ludHM9IjI0LDAgMCw4IDgsMTEgMCwxOSA1LDI0IDEzLDE2IDE2LDI0IiBmaWxsPSJjb3JhbCIvPjwvc3ZnPg==')",backgroundSize:"",backgroundRepeat:"no-repeat",backgroundColor:"#f8f881",cursor:"default"},hoverStyle:{backgroundImage:"none",backgroundColor:"#fadf8f"},padding:{top:1,right:15,bottom:1,left:2},minHeight:15,backgroundPosition:{right:2,top:2},backgroundSize:{width:12,height:12},dirKeys:[["top","Top"],["right","Right"],["bottom","Bottom"],["left","Left"]],init:function(t,r){var n,s,a,o,l,h,c,u,d,p,f,m=i.mouseHoverAnchor,g={};if(t.element=i.pointAnchor.checkElement(r.element),!((p=(u=t.element).ownerDocument)&&(d=p.defaultView)&&d.HTMLElement&&u instanceof d.HTMLElement))throw new Error("`element` must be HTML element");return m.style.backgroundSize=m.backgroundSize.width+"px "+m.backgroundSize.height+"px",["style","hoverStyle"].forEach((function(e){var i=m[e];t[e]=Object.keys(i).reduce((function(t,e){return t[e]=i[e],t}),{})})),"inline"===(n=t.element.ownerDocument.defaultView.getComputedStyle(t.element,"")).display?t.style.display="inline-block":"none"===n.display&&(t.style.display="block"),i.mouseHoverAnchor.dirKeys.forEach((function(e){var i=e[0],r="padding"+e[1];parseFloat(n[r])<m.padding[i]&&(t.style[r]=m.padding[i]+"px")})),t.style.display&&(o=t.element.style.display,t.element.style.display=t.style.display),i.mouseHoverAnchor.dirKeys.forEach((function(e){var i="padding"+e[1];t.style[i]&&(g[i]=t.element.style[i],t.element.style[i]=t.style[i])})),(a=t.element.getBoundingClientRect()).height<m.minHeight&&(rt?(f=m.minHeight,"content-box"===n.boxSizing?f-=parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth)+parseFloat(n.paddingTop)+parseFloat(n.paddingBottom):"padding-box"===n.boxSizing&&(f-=parseFloat(n.borderTopWidth)+parseFloat(n.borderBottomWidth)),t.style.height=f+"px"):t.style.height=parseFloat(n.height)+(m.minHeight-a.height)+"px"),t.style.backgroundPosition=at?a.width-m.backgroundSize.width-m.backgroundPosition.right+"px "+m.backgroundPosition.top+"px":"right "+m.backgroundPosition.right+"px top "+m.backgroundPosition.top+"px",t.style.display&&(t.element.style.display=o),i.mouseHoverAnchor.dirKeys.forEach((function(e){var i="padding"+e[1];t.style[i]&&(t.element.style[i]=g[i])})),["style","hoverStyle"].forEach((function(e){var i=t[e],n=r[e];ht(n)&&Object.keys(n).forEach((function(t){"string"==typeof n[t]||ct(n[t])?i[t]=n[t]:null==n[t]&&delete i[t]}))})),"function"==typeof r.onSwitch&&(c=r.onSwitch),r.showEffectName&&e[r.showEffectName]&&(t.showEffectName=l=r.showEffectName),h=r.animOptions,t.elmStyle=s=t.element.style,t.mouseenter=function(e){t.hoverStyleSave=m.getStyles(s,Object.keys(t.hoverStyle)),m.setStyles(s,t.hoverStyle),t.boundTargets.forEach((function(t){ie(t.props,!0,l,h)})),c&&c(e)},t.mouseleave=function(e){m.setStyles(s,t.hoverStyleSave),t.boundTargets.forEach((function(t){ie(t.props,!1,l,h)})),c&&c(e)},!0},bind:function(t,e){var r,n,s,a,o;return e.props.svg?i.mouseHoverAnchor.llShow(e.props,!1,t.showEffectName):Ht((function(){i.mouseHoverAnchor.llShow(e.props,!1,t.showEffectName)})),t.enabled||(t.styleSave=i.mouseHoverAnchor.getStyles(t.elmStyle,Object.keys(t.style)),i.mouseHoverAnchor.setStyles(t.elmStyle,t.style),t.removeEventListener=(r=t.element,n=t.mouseenter,s=t.mouseleave,"onmouseenter"in r&&"onmouseleave"in r?(r.addEventListener("mouseenter",n,!1),r.addEventListener("mouseleave",s,!1),function(){r.removeEventListener("mouseenter",n,!1),r.removeEventListener("mouseleave",s,!1)}):(console.warn("mouseenter and mouseleave events polyfill is enabled."),a=function(t){t.relatedTarget&&(t.relatedTarget===this||this.compareDocumentPosition(t.relatedTarget)&Node.DOCUMENT_POSITION_CONTAINED_BY)||n.apply(this,arguments)},r.addEventListener("mouseover",a),o=function(t){t.relatedTarget&&(t.relatedTarget===this||this.compareDocumentPosition(t.relatedTarget)&Node.DOCUMENT_POSITION_CONTAINED_BY)||s.apply(this,arguments)},r.addEventListener("mouseout",o),function(){r.removeEventListener("mouseover",a,!1),r.removeEventListener("mouseout",o,!1)})),t.enabled=!0),!0},unbind:function(t,e){t.enabled&&t.boundTargets.length<=1&&(t.removeEventListener(),i.mouseHoverAnchor.setStyles(t.elmStyle,t.styleSave),t.enabled=!1),i.mouseHoverAnchor.llShow(e.props,!0,t.showEffectName)},removeOption:function(t,e){i.pointAnchor.removeOption(t,e)},remove:function(t){t.boundTargets.length&&(console.error("LeaderLineAttachment was not unbound by remove"),t.boundTargets.forEach((function(e){i.mouseHoverAnchor.unbind(t,e)})))},getBBoxNest:function(t,e){return It(t.element,e.baseWindow)},llShow:function(t,i,r){e[r||t.curStats.show_effect].stop(t,!0,i),t.aplStats.show_on=i},getStyles:function(t,e){return e.reduce((function(e,i){return e[i]=t[i],e}),{})},setStyles:function(t,e){Object.keys(e).forEach((function(i){t[i]=e[i]}))}},captionLabel:{type:"label",argOptions:[{optionName:"text",type:"string"}],stats:{color:{},x:{},y:{}},textStyleProps:["fontFamily","fontStyle","fontVariant","fontWeight","fontStretch","fontSize","fontSizeAdjust","kerning","letterSpacing","wordSpacing","textDecoration"],init:function(t,e){return"string"==typeof e.text&&(t.text=e.text.trim()),!!t.text&&("string"==typeof e.color&&(t.color=e.color.trim()),t.outlineColor="string"==typeof e.outlineColor?e.outlineColor.trim():"#fff",Array.isArray(e.offset)&&ct(e.offset[0])&&ct(e.offset[1])&&(t.offset={x:e.offset[0],y:e.offset[1]}),ct(e.lineOffset)&&(t.lineOffset=e.lineOffset),i.captionLabel.textStyleProps.forEach((function(i){null!=e[i]&&(t[i]=e[i])})),t.updateColor=function(e){i.captionLabel.updateColor(t,e)},t.updateSocketXY=function(e){var i,r,n,s,a=t.curStats,o=t.aplStats,l=e.curStats,h=l.position_socketXYSE[t.socketIndex];null!=h.x&&(t.offset?(a.x=h.x+t.offset.x,a.y=h.y+t.offset.y):(i=t.height/2,r=Math.max(l.attach_plugSideLenSE[t.socketIndex]||0,l.line_strokeWidth/2),n=l.position_socketXYSE[t.socketIndex?0:1],h.socketId===M||h.socketId===T?(a.x=h.socketId===M?h.x-i-t.width:h.x+i,a.y=n.y<h.y?h.y+r+i:h.y-r-i-t.height):(a.x=n.x<h.x?h.x+r+i:h.x-r-i-t.width,a.y=h.socketId===w?h.y-i-t.height:h.y+i)),qt(t,o,"x",s=a.x)&&(t.elmPosition.x.baseVal.getItem(0).value=s),qt(t,o,"y",s=a.y)&&(t.elmPosition.y.baseVal.getItem(0).value=s+t.height))},t.updatePath=function(e){var r,n,s=t.curStats,a=t.aplStats,o=e.pathList.animVal||e.pathList.baseVal;o&&(r=i.captionLabel.getMidPoint(o,t.lineOffset),s.x=r.x-t.width/2,s.y=r.y-t.height/2,qt(t,a,"x",n=s.x)&&(t.elmPosition.x.baseVal.getItem(0).value=n),qt(t,a,"y",n=s.y)&&(t.elmPosition.y.baseVal.getItem(0).value=n+t.height))},t.updateShow=function(e){i.captionLabel.updateShow(t,e)},at&&(t.adjustEdge=function(e,r){var n=t.curStats;null!=n.x&&i.captionLabel.adjustEdge(r,{x:n.x,y:n.y,width:t.width,height:t.height},t.strokeWidth/2)}),!0)},updateColor:function(t,e){var i,r=t.curStats,n=t.aplStats,s=e.curStats;r.color=i=t.color||s.line_color,qt(t,n,"color",i)&&(t.styleFill.fill=i)},updateShow:function(t,e){var i=!0===e.isShown;i!==t.isShown&&(t.styleShow.visibility=i?"":"hidden",t.isShown=i)},adjustEdge:function(t,e,i){var r={x1:e.x-i,y1:e.y-i,x2:e.x+e.width+i,y2:e.y+e.height+i};r.x1<t.x1&&(t.x1=r.x1),r.y1<t.y1&&(t.y1=r.y1),r.x2>t.x2&&(t.x2=r.x2),r.y2>t.y2&&(t.y2=r.y2)},newText:function(t,e,i,r,n){var s,a,o,h,c,u=e.createElementNS(et,"text");return u.textContent=t,[u.x,u.y].forEach((function(t){var e=i.createSVGLength();e.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PX,0),t.baseVal.initialize(e)})),"boolean"!=typeof l&&(l="paintOrder"in u.style),n&&!l?(a=e.createElementNS(et,"defs"),u.id=r,a.appendChild(u),(h=(s=e.createElementNS(et,"g")).appendChild(e.createElementNS(et,"use"))).href.baseVal="#"+r,(o=s.appendChild(e.createElementNS(et,"use"))).href.baseVal="#"+r,(c=h.style).strokeLinejoin="round",{elmPosition:u,styleText:u.style,styleFill:o.style,styleStroke:c,styleShow:s.style,elmsAppend:[a,s]}):(c=u.style,n&&(c.strokeLinejoin="round",c.paintOrder="stroke"),{elmPosition:u,styleText:c,styleFill:c,styleStroke:n?c:null,styleShow:c,elmsAppend:[u]})},getMidPoint:function(t,e){var i,r,n=Vt(t),s=n.segsLen,a=n.lenAll,o=-1,l=a/2+(e||0);if(l<=0)return 2===(i=t[0]).length?Rt(i[0],i[1],0):Lt(i[0],i[1],i[2],i[3],0);if(a<=l)return 2===(i=t[t.length-1]).length?Rt(i[0],i[1],1):Lt(i[0],i[1],i[2],i[3],1);for(r=[];l>s[++o];)r.push(t[o]),l-=s[o];return 2===(i=t[o]).length?Rt(i[0],i[1],l/s[o]):Lt(i[0],i[1],i[2],i[3],Bt(i[0],i[1],i[2],i[3],l))},initSvg:function(t,e){var r,n,s=i.captionLabel.newText(t.text,e.baseWindow.document,e.svg,E+"-captionLabel-"+t._id,t.outlineColor);["elmPosition","styleFill","styleShow","elmsAppend"].forEach((function(e){t[e]=s[e]})),t.isShown=!1,t.styleShow.visibility="hidden",i.captionLabel.textStyleProps.forEach((function(e){null!=t[e]&&(s.styleText[e]=t[e])})),s.elmsAppend.forEach((function(t){e.svg.appendChild(t)})),r=s.elmPosition.getBBox(),t.width=r.width,t.height=r.height,t.outlineColor&&(n=10<(n=r.height/9)?10:n<2?2:n,s.styleStroke.strokeWidth=n+"px",s.styleStroke.stroke=t.outlineColor),t.strokeWidth=n||0,Yt(t.aplStats,i.captionLabel.stats),t.updateColor(e),t.refSocketXY?t.updateSocketXY(e):t.updatePath(e),at&&te(e,{}),t.updateShow(e)},bind:function(t,e){var r=e.props;return t.color||Gt(r,"cur_line_color",t.updateColor),(t.refSocketXY="startLabel"===e.optionName||"endLabel"===e.optionName)?(t.socketIndex="startLabel"===e.optionName?0:1,Gt(r,"apl_position",t.updateSocketXY),t.offset||(Gt(r,"cur_attach_plugSideLenSE",t.updateSocketXY),Gt(r,"cur_line_strokeWidth",t.updateSocketXY))):Gt(r,"apl_path",t.updatePath),Gt(r,"svgShow",t.updateShow),at&&Gt(r,"new_edge4viewBox",t.adjustEdge),i.captionLabel.initSvg(t,r),!0},unbind:function(t,e){var r=e.props;t.elmsAppend&&(t.elmsAppend.forEach((function(t){r.svg.removeChild(t)})),t.elmPosition=t.styleFill=t.styleShow=t.elmsAppend=null),Yt(t.curStats,i.captionLabel.stats),Yt(t.aplStats,i.captionLabel.stats),t.color||Ut(r,"cur_line_color",t.updateColor),t.refSocketXY?(Ut(r,"apl_position",t.updateSocketXY),t.offset||(Ut(r,"cur_attach_plugSideLenSE",t.updateSocketXY),Ut(r,"cur_line_strokeWidth",t.updateSocketXY))):Ut(r,"apl_path",t.updatePath),Ut(r,"svgShow",t.updateShow),at&&(Ut(r,"new_edge4viewBox",t.adjustEdge),te(r,{}))},removeOption:function(t,e){var i=e.props,r={};r[e.optionName]="",se(i,r)},remove:function(t){t.boundTargets.length&&(console.error("LeaderLineAttachment was not unbound by remove"),t.boundTargets.forEach((function(e){i.captionLabel.unbind(t,e)})))}},pathLabel:{type:"label",argOptions:[{optionName:"text",type:"string"}],stats:{color:{},startOffset:{},pathData:{}},init:function(t,e){return"string"==typeof e.text&&(t.text=e.text.trim()),!!t.text&&("string"==typeof e.color&&(t.color=e.color.trim()),t.outlineColor="string"==typeof e.outlineColor?e.outlineColor.trim():"#fff",ct(e.lineOffset)&&(t.lineOffset=e.lineOffset),i.captionLabel.textStyleProps.forEach((function(i){null!=e[i]&&(t[i]=e[i])})),t.updateColor=function(e){i.captionLabel.updateColor(t,e)},t.updatePath=function(e){var r,n=t.curStats,s=t.aplStats,a=e.curStats,o=e.pathList.animVal||e.pathList.baseVal;o&&(n.pathData=r=i.pathLabel.getOffsetPathData(o,a.line_strokeWidth/2+t.strokeWidth/2+t.height/4,1.25*t.height),zt(r,s.pathData)&&(t.elmPath.setPathData(r),s.pathData=r,t.bBox=t.elmPosition.getBBox(),t.updateStartOffset(e)))},t.updateStartOffset=function(e){var i,r,n,s,a=t.curStats,o=t.aplStats,l=e.curStats;a.pathData&&(2===t.semIndex&&!t.lineOffset||(n=a.pathData.reduce((function(t,e){var i,n=e.values;switch(e.type){case"M":r={x:n[0],y:n[1]};break;case"L":i={x:n[0],y:n[1]},r&&(t+=Dt(r,i)),r=i;break;case"C":i={x:n[4],y:n[5]},r&&(t+=Ft(r,{x:n[0],y:n[1]},{x:n[2],y:n[3]}
vendor: 2,119 bytes, line 2
2,i)),r=i}return t}),0),s=0===t.semIndex?0:1===t.semIndex?n:n/2,2!==t.semIndex&&(i=Math.max(l.attach_plugBackLenSE[t.semIndex]||0,l.line_strokeWidth/2)+t.strokeWidth/2+t.height/4,s=(s+=0===t.semIndex?i:-i)<0?0:n<s?n:s),t.lineOffset&&(s=(s+=t.lineOffset)<0?0:n<s?n:s),a.startOffset=s,qt(t,o,"startOffset",s)&&(t.elmOffset.startOffset.baseVal.value=s)))},t.updateShow=function(e){i.captionLabel.updateShow(t,e)},at&&(t.adjustEdge=function(e,r){t.bBox&&i.captionLabel.adjustEdge(r,t.bBox,t.strokeWidth/2)}),!0)},getOffsetPathData:function(t,e,i){var r,n,s=[];function a(t,e){return Math.abs(t.x-e.x)<3&&Math.abs(t.y-e.y)<3}return t.forEach((function(t){var i,n,o,l,h,c,u,d,p,f,m,g,y,v,x,_,b,S,E,w,T;2===t.length?(S=t[0],E=t[1],w=e,T=Math.atan2(S.y-E.y,E.x-S.x)+.5*Math.PI,i=[{x:S.x+Math.cos(T)*w,y:S.y+Math.sin(T)*w*-1},{x:E.x+Math.cos(T)*w,y:E.y+Math.sin(T)*w*-1}],r?(o=r.points,0<=(l=Math.atan2(o[1].y-o[0].y,o[0].x-o[1].x)-Math.atan2(t[0].y-t[1].y,t[1].x-t[0].x))&&l<=Math.PI?n={type:"line",points:i,inside:!0}:(c=Ot(o[0],o[1],e),h=Ot(i[1],i[0],e),d=o[0],f=h,m=i[1],g=(p=c).x-d.x,y=p.y-d.y,v=m.x-f.x,x=m.y-f.y,_=(-y*(d.x-f.x)+g*(d.y-f.y))/(-v*y+g*x),b=(v*(d.y-f.y)-x*(d.x-f.x))/(-v*y+g*x),n=(u=0<=_&&_<=1&&0<=b&&b<=1?{x:d.x+b*g,y:d.y+b*y}:null)?{type:"line",points:[o[1]=u,i[1]]}:(o[1]=a(h,c)?h:c,{type:"line",points:[h,i[1]]}),r.len=Dt(o[0],o[1]))):n={type:"line",points:i},n.len=Dt(n.points[0],n.points[1]),s.push(r=n)):(s.push({type:"cubic",points:function(t,e,i,r,n,s){for(var a,o,l=Ft(t,e,i,r)/16,h=1/(16<n?n/16*l:l),c=[],u=0;o=(90-(a=Lt(t,e,i,r,u)).angle)*(Math.PI/180),c.push({x:a.x+Math.cos(o)*n,y:a.y+Math.sin(o)*n*-1}),!(1<=u);)1<(u+=h)&&(u=1);return c}(t[0],t[1],t[2],t[3],e)}),r=null)})),r=null,s.forEach((function(t){var n;r="line"===t.type?(t.inside&&(r.len>e?((n=r.points)[1]=Ot(n[0],n[1],-e),r.len=Dt(n[0],n[1])):(r.points=null,r.len=0),t.len>e+i?((n=t.points)[0]=Ot(n[1],n[0],-(e+i)),t.len=Dt(n[0],n[1])):(t.points=null,t.len=0)),t):null})),s.reduce((function(t,e){var i=e.points;return i&&(n&&a(i[0],n)||t.push({type:"M",values:[i[0].x,i[0].y]}),"line"===e.type?t.push({type:"L",values:[i[1].x,i[1].y]}
vendor: 3,205 bytes, line 2
2):(i.shift(),i.forEach((function(e){t.push({type:"L",values:[e.x,e.y]})}))),n=i[i.length-1]),t}),[])},newText:function(t,e,i,r){var n,s,a,o,h,c,u,d,p=e.createElementNS(et,"defs"),f=p.appendChild(e.createElementNS(et,"path"));return f.id=n=i+"-path",(o=(a=e.createElementNS(et,"text")).appendChild(e.createElementNS(et,"textPath"))).href.baseVal="#"+n,o.startOffset.baseVal.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PX,0),o.textContent=t,"boolean"!=typeof l&&(l="paintOrder"in a.style),r&&!l?(a.id=s=i+"-text",p.appendChild(a),(u=(h=e.createElementNS(et,"g")).appendChild(e.createElementNS(et,"use"))).href.baseVal="#"+s,(c=h.appendChild(e.createElementNS(et,"use"))).href.baseVal="#"+s,(d=u.style).strokeLinejoin="round",{elmPosition:a,elmPath:f,elmOffset:o,styleText:a.style,styleFill:c.style,styleStroke:d,styleShow:h.style,elmsAppend:[p,h]}):(d=a.style,r&&(d.strokeLinejoin="round",d.paintOrder="stroke"),{elmPosition:a,elmPath:f,elmOffset:o,styleText:d,styleFill:d,styleStroke:r?d:null,styleShow:d,elmsAppend:[p,a]})},initSvg:function(t,e){var r,n,s=i.pathLabel.newText(t.text,e.baseWindow.document,E+"-pathLabel-"+t._id,t.outlineColor);["elmPosition","elmPath","elmOffset","styleFill","styleShow","elmsAppend"].forEach((function(e){t[e]=s[e]})),t.isShown=!1,t.styleShow.visibility="hidden",i.captionLabel.textStyleProps.forEach((function(e){null!=t[e]&&(s.styleText[e]=t[e])})),s.elmsAppend.forEach((function(t){e.svg.appendChild(t)})),s.elmPath.setPathData([{type:"M",values:[0,100]},{type:"h",values:[100]}]),r=s.elmPosition.getBBox(),s.styleText.textAnchor=["start","end","middle"][t.semIndex],2!==t.semIndex||t.lineOffset||s.elmOffset.startOffset.baseVal.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PERCENTAGE,50),t.height=r.height,t.outlineColor&&(n=10<(n=r.height/9)?10:n<2?2:n,s.styleStroke.strokeWidth=n+"px",s.styleStroke.stroke=t.outlineColor),t.strokeWidth=n||0,Yt(t.aplStats,i.pathLabel.stats),t.updateColor(e),t.updatePath(e),t.updateStartOffset(e),at&&te(e,{}),t.updateShow(e)},bind:function(t,e){var r=e.props;return t.color||Gt(r,"cur_line_color",t.updateColor),Gt(r,"cur_line_strokeWidth",t.updatePath),Gt(r,"apl_path",t.updatePath),t.semIndex="startLabel"===e.optionName?0:"endLabel"===e.optionName?1:2,2===t.semIndex&&!t.lineOffset||Gt(r,"cur_attach_plugBackLenSE",t.updateStartOffset),Gt(r,"svgShow",t.updateShow),at&&Gt(r,"new_edge4viewBox",t.adjustEdge),i.pathLabel.initSvg(t,r),!0},unbind:function(t,e){var r=e.props;t.elmsAppend&&(t.elmsAppend.forEach((function(t){r.svg.removeChild(t)})),t.elmPosition=t.elmPath=t.elmOffset=t.styleFill=t.styleShow=t.elmsAppend=null),Yt(t.curStats,i.pathLabel.stats),Yt(t.aplStats,i.pathLabel.stats),t.color||Ut(r,"cur_line_color",t.updateColor),Ut(r,"cur_line_strokeWidth",t.updatePath),Ut(r,"apl_path",t.updatePath),2===t.semIndex&&!t.lineOffset||Ut(r,"cur_attach_plugBackLenSE",t.updateStartOffset),Ut(r,"svgShow",t.updateShow),at&&(Ut(r,"new_edge4viewBox",t.adjustEdge),te(r,{}))},removeOption:function(t,e){var i=e.props,r={};r[e.optionName]="",se(i,r)},remove:function(t){t.boundTargets.length&&(console.error("LeaderLineAttachment was not unbound by remove"),t.boundTargets.forEach((function(e){i.pathLabel.unbind(t,e)})))}}}
vendor: 19,260 bytes, line 2
2,Object.keys(i).forEach((function(t){ae[t]=function(){return new r(i[t],Array.prototype.slice.call(arguments))}})),ae.positionByWindowResize=!0,window.addEventListener("resize",pt.add((function(){ae.positionByWindowResize&&Object.keys(vt).forEach((function(t){te(vt[t],{position:!0})}))})),!1),ae}();t.exports=e},891:function(module,exports,__webpack_require__){var factory;"undefined"!=typeof navigator&&(factory=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)&&(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}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(e,i){return"float32"===e?new Float32Array(i):"int16"===e?new Int16Array(i):"uint8c"===e?new Uint8ClampedArray(i):t(e,i)}: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},_typeof$6(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=(_count=0,function(){return idPrefix$1+"__lottie_element_"+(_count+=1)}),_count;function HSVtoRGB(t,e,i){var r,n,s,a,o,l,h,c;switch(l=i*(1-e),h=i*(1-(o=6*t-(a=Math.floor(6*t)))*e),c=i*(1-(1-o)*e),a%6){case 0:r=i,n=c,s=l;break;case 1:r=h,n=i,s=l;break;case 2:r=l,n=i,s=c;break;case 3:r=l,n=h,s=i;break;case 4:r=c,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),r/=6*a;break;case e:r=i-t+2*a,r/=6*a;break;case i:r=t-e+4*a,r/=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},_typeof$5(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||(e=function(e){if(window.Worker&&window.Blob&&getWebWorker()){var i=new Blob(["var _workerSelf = self; self.onmessage = ",e.toString()],{type:"text/javascript"}),r=URL.createObjectURL(i);return new Worker(r)}return t=e,n}((function(t){if(s.dataManager||(s.dataManager=function(){function t(n,s){var a,o,l,h,c,u,d,p=n.length;for(o=0;o<p;o+=1)if("ks"in(a=n[o])&&!a.completed){if(a.completed=!0,a.hasMask){var f=a.masksProperties;for(h=f.length,l=0;l<h;l+=1)if(f[l].pt.k.i)r(f[l].pt.k);else for(u=f[l].pt.k.length,c=0;c<u;c+=1)f[l].pt.k[c].s&&r(f[l].pt.k[c].s[0]),f[l].pt.k[c].e&&r(f[l].pt.k[c].e[0])}0===a.ty?(a.layers=e(a.refId,s),t(a.layers,s)):4===a.ty?i(a.shapes):5===a.ty&&(0===(d=a).t.a.length&&d.t.p)}}function e(t,e){var i=function(t,e){for(var i=0,r=e.length;i<r;){if(e[i].id===t)return e[i];i+=1}return null}(t,e);return i?i.layers.__used?JSON.parse(JSON.stringify(i.layers)):(i.layers.__used=!0,i.layers):null}function i(t){var e,n,s;for(e=t.length-1;e>=0;e-=1)if("sh"===t[e].ty)if(t[e].ks.k.i)r(t[e].ks.k);else for(s=t[e].ks.k.length,n=0;n<s;n+=1)t[e].ks.k[n].s&&r(t[e].ks.k[n].s[0]),t[e].ks.k[n].e&&r(t[e].ks.k[n].e[0]);else"gr"===t[e].ty&&i(t[e].it)}function r(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 n(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 s,a=function(){var t=[4,4,14];function e(t){var e,i,r,n=t.length;for(e=0;e<n;e+=1)5===t[e].ty&&(void 0,r=(i=t[e]).t.d,i.t.d={k:[{s:r,t:0}]})}return function(i){if(n(t,i.v)&&(e(i.layers),i.assets)){var r,s=i.assets.length;for(r=0;r<s;r+=1)i.assets[r].layers&&e(i.assets[r].layers)}}}(),o=(s=[4,7,99],function(t){if(t.chars&&!n(s,t.v)){var e,r=t.chars.length;for(e=0;e<r;e+=1){var a=t.chars[e];a.data&&a.data.shapes&&(i(a.data.shapes),a.data.ip=0,a.data.op=99999,a.data.st=0,a.data.sr=1,a.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}},t.chars[e].t||(a.data.shapes.push({ty:"no"}),a.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"})))}}}),l=function(){var t=[5,7,15];function e(t){var e,i,r=t.length;for(e=0;e<r;e+=1)5===t[e].ty&&(i=void 0,"number"==typeof(i=t[e].t.p).a&&(i.a={a:0,k:i.a}),"number"==typeof i.p&&(i.p={a:0,k:i.p}),"number"==typeof i.r&&(i.r={a:0,k:i.r}))}return function(i){if(n(t,i.v)&&(e(i.layers),i.assets)){var r,s=i.assets.length;for(r=0;r<s;r+=1)i.assets[r].layers&&e(i.assets[r].layers)}}}(),h=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(n=t[i].c.k.length,r=0;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(n(t,e.v)&&(i(e.layers),e.assets)){var r,s=e.assets.length;for(r=0;r<s;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(n=t[i].ks.k.length,r=0;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(s=h.length,n=0;n<s;n+=1)if(h[n].pt.k.i)h[n].pt.k.c=h[n].cl;else for(o=h[n].pt.k.length,a=0;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(n(t,e.v)&&(i(e.layers),e.assets)){var r,s=e.assets.length;for(r=0;r<s;r+=1)e.assets[r].layers&&i(e.assets[r].layers)}}}();var u={completeData:function(i){i.__complete||(h(i),a(i),o(i),l(i),c(i),t(i.layers,i.assets),function(i,r){if(i){var n=0,s=i.length;for(n=0;n<s;n+=1)1===i[n].t&&(i[n].data.layers=e(i[n].data.refId,r),t(i[n].data.layers,r))}}(i.chars,i.assets),i.__complete=!0)}};return u.checkColors=h,u.checkChars=o,u.checkPathProperties=l,u.checkShapes=c,u.completeLayers=t,u}()),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)s=t(a),r(s);else try{s=t(a),r(s)}catch(t){n&&n(t)}};try{a.open(["G","E","T"].join(""),e,!0)}catch(t){a.open(["G","E","T"].join(""),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 e=t.data.animation;s.dataManager.completeData(e),s.postMessage({id:t.data.id,payload:e,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"})}))})),e.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 o(t,e){var n="processId_"+(i+=1);return r[n]={onComplete:t,onError:e},n}return{loadAnimation:function(t,i,r){a();var n=o(i,r);e.postMessage({type:"loadAnimation",path:t,fullPath:window.location.origin+window.location.pathname,id:n})},loadData:function(t,i,r){a();var n=o(i,r);e.postMessage({type:"loadData",path:t,fullPath:window.location.origin+window.location.pathname,id:n})},completeAnimation:function(t,i,r){a();var n=o(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,r+=t.u?t.u:"",r+=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(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 a(){this._imageLoaded=e.bind(this),this._footageLoaded=i.bind(this),this.testImageLoaded=n.bind(this),this.createFootageData=s.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return a.prototype={loadAssets:function(t,e){var i;this.imagesLoadedCb=e;var 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]))))},setAssetsPath:function(t){this.assetsPath=t||""},setPath:function(t){this.path=t||""},loadedImages:function(){return this.totalImages===this.loadedAssets},loadedFootages:function(){return this.totalFootages===this.loadedFootagesCount},destroy:function(){this.imagesLoadedCb=null,this.images.length=0},getAsset:function(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},createImgData:function(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},createImageData:function(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},imageLoaded:e,footageLoaded:i,setCacheType:function(t,e){"svg"===t?(this._elementHelper=e,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},a}();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 new 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},_typeof$4(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: 8,591 bytes, line 2
2w 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));var 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(n=t.assets.length,e=0;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)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);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){var r=Number(t);if(isNaN(r)){var n=this.getMarkerData(t);n&&this.goToAndStop(n.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
vendor: 6,137 bytes, line 2
2.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?(i=!0,e=0):(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!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,e+=t.u?t.u:"",e+=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
vendor: 2,874 bytes, line 2
2,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 u(s,t),s.setData(t,i),s}function h(){n+=1,f()}function c(){n-=1}function u(t,i){t.addEventListener("destroy",o),t.addEventListener("_active",h),t.addEventListener("_idle",c),e.push({elem:i,animation:t}),r+=1}function d(t){var o,l=t-i;for(o=0;o<r;o+=1)e[o].animation.advanceTime(l);i=t,n&&!a?window.requestAnimationFrame(d):s=!0}function p(t){i=t,window.requestAnimationFrame(d)}function f(){!a&&n&&s&&(window.requestAnimationFrame(p),s=!1)}return t.registerAnimation=l,t.loadAnimation=function(t){var e=new AnimationItem;return u(e,null),e.setParams(t),e},t.setSpeed=function(t,i){var n;for(n=0;n<r;n+=1)e[n].animation.setSpeed(t,i)},t.setDirection=function(t,i){var n;for(n=0;n<r;n+=1)e[n].animation.setDirection(t,i)},t.play=function(t){var i;for(i=0;i<r;i+=1)e[i].animation.play(t)},t.pause=function(t){var i;for(i=0;i<r;i+=1)e[i].animation.pause(t)},t.stop=function(t){var i;for(i=0;i<r;i+=1)e[i].animation.stop(t)},t.togglePause=function(t){var i;for(i=0;i<r;i+=1)e[i].animation.togglePause(t)},t.searchAnimations=function(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)}},t.resize=function(){var t;for(t=0;t<r;t+=1)e[t].animation.resize()},t.goToAndStop=function(t,i,n){var s;for(s=0;s<r;s+=1)e[s].animation.goToAndStop(t,i,n)},t.destroy=function(t){var i;for(i=r-1;i>=0;i-=1)e[i].animation.destroy(t)},t.freeze=function(){a=!0},t.unfreeze=function(){a=!1,f()},t.setVolume=function(t,i){var n;for(n=0;n<r;n+=1)e[n].animation.setVolume(t,i)},t.mute=function(t){var i;for(i=0;i<r;i+=1)e[i].animation.mute(t)},t.unmute=function(t){var i;for(i=0;i<r;i+=1)e[i].animation.unmute(t)},t.getRegisteredAnimations=function(){var t,i=e.length,r=[];for(t=0;t<i;t+=1)r.push(e[t].animation);return r},t}(),BezierFactory=function(){var t={getBezierEasing:function(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 c([t,i,r,n]);return e[a]=o,o}},e={},i=11,r=1/(i-1),n="function"==typeof Float32Array;function s(t,e){return 1-3*e+3*t}function a(t,e){return 3*e-6*t}function o(t){return 3*t}function l(t,e,i){return((s(e,i)*t+a(e,i))*t+o(e))*t}
vendor: 5,609 bytes, line 2
2function h(t,e,i){return 3*s(e,i)*t*t+2*a(e,i)*t+o(e)}function c(t){this._p=t,this._mSampleValues=n?new Float32Array(i):new Array(i),this._precomputed=!1,this.get=this.get.bind(this)}return c.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:l(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],n=0;n<i;++n)this._mSampleValues[n]=l(n*r,t,e)},_getTForX:function(t){for(var e=this._p[0],n=this._p[2],s=this._mSampleValues,a=0,o=1,c=i-1;o!==c&&s[o]<=t;++o)a+=r;var u=a+(t-s[--o])/(s[o+1]-s[o])*r,d=h(u,e,n);return d>=.001?function(t,e,i,r){for(var n=0;n<4;++n){var s=h(e,i,r);if(0===s)return e;e-=(l(e,i,r)-t)/s}return e}(t,u,e,n):0===d?u:function(t,e,i,r,n){var s,a,o=0;do{(s=l(a=e+(i-e)/2,r,n)-t)>0?i=a:e=a}while(Math.abs(s)>1e-7&&++o<10);return a}(t,a,a+r,e,n)}},t}(),pooling={double:function(t){return t.concat(createSizedArray(t.length))}},poolFactory=function(t,e,i){var r=0,n=t,s=createSizedArray(n);return{newElement:function(){return r?s[r-=1]:e()},release:function(t){r===n&&(s=pooling.double(s),n*=2),i&&i(t),s[r]=t,r+=1}}},bezierLengthPool=poolFactory(8,(function(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}})),segmentsLengthPool=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}var i=function(t,e,i,r){var n,s,a,o,l,h,c=getDefaultCurveSegments(),u=0,d=[],p=[],f=bezierLengthPool.newElement();for(a=i.length,n=0;n<c;n+=1){for(l=n/(c-1),h=0,s=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],d[s]=o,null!==p[s]&&(h+=bmPow(d[s]-p[s],2)),p[s]=d[s];h&&(u+=h=bmSqrt(h)),f.percents[n]=l,f.lengths[n]=u}return f.addedLength=u,f};function r(t){this.segmentLength=0,this.points=new Array(t)}function n(t,e){this.partialLength=t,this.point=e}var s,a=(s={},function(t,i,a,o){var l=(t[0]+"_"+t[1]+"_"+i[0]+"_"+i[1]+"_"+a[0]+"_"+a[1]+"_"+o[0]+"_"+o[1]).replace(/\./g,"p");if(!s[l]){var h,c,u,d,p,f,m,g=getDefaultCurveSegments(),y=0,v=null;2===t.length&&(t[0]!==i[0]||t[1]!==i[1])&&e(t[0],t[1],i[0],i[1],t[0]+a[0],t[1]+a[1])&&e(t[0],t[1],i[0],i[1],i[0]+o[0],i[1]+o[1])&&(g=2);var x=new r(g);for(u=a.length,h=0;h<g;h+=1){for(m=createSizedArray(u),p=h/(g-1),f=0,c=0;c<u;c+=1)d=bmPow(1-p,3)*t[c]+3*bmPow(1-p,2)*p*(t[c]+a[c])+3*(1-p)*bmPow(p,2)*(i[c]+o[c])+bmPow(p,3)*i[c],m[c]=d,null!==v&&(f+=bmPow(m[c]-v[c],2));y+=f=bmSqrt(f),x.points[h]=new n(f,m),v=m}x.segmentLength=y,s[l]=x}return s[l]});function o(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}var l=createTypedArray("float32",8);return{getSegmentsLength:function(t){var e,r=segmentsLengthPool.newElement(),n=t.c,s=t.v,a=t.o,o=t.i,l=t._length,h=r.lengths,c=0;for(e=0;e<l-1;e+=1)h[e]=i(s[e],s[e+1],a[e],o[e+1]),c+=h[e].addedLength;return n&&l&&(h[e]=i(s[e],s[0],a[e],o[0]),c+=h[e].addedLength),r.totalLength=c,r},getNewSegment:function(e,i,r,n,s,a,h){s<0?s=0:s>1&&(s=1);var c,u=o(s,h),d=o(a=a>1?1:a,h),p=e.length,f=1-u,m=1-d,g=f*f*f,y=u*f*f*3,v=u*u*f*3,x=u*u*u,_=f*f*m,b=u*f*m+f*u*m+f*f*d,S=u*u*m+f*u*d+u*f*d,E=u*u*d,w=f*m*m,T=u*m*m+f*d*m+f*m*d,A=u*d*m+f*d*d+u*m*d,M=u*d*d,P=m*m*m,C=d*m*m+m*d*m+m*m*d,k=d*d*m+m*d*d+d*m*d,I=d*d*d;for(c=0;c<p;c+=1)l[4*c]=t.round(1e3*(g*e[c]+y*r[c]+v*n[c]+x*i[c]))/1e3,l[4*c+1]=t.round(1e3*(_*e[c]+b*r[c]+S*n[c]+E*i[c]))/1e3,l[4*c+2]=t.round(1e3*(w*e[c]+T*r[c]+A*n[c]+M*i[c]))/1e3,l[4*c+3]=t.round(1e3*(P*e[c]+C*r[c]+k*n[c]+I*i[c]))/1e3;return l},getPointInSegment:function(e,i,r,n,s,a){var l=o(s,a),h=1-l;return[t.round(1e3*(h*h*h*e[0]+(l*h*h+h*l*h+h*h*l)*r[0]+(l*l*h+h*l*l+l*h*l)*n[0]+l*l*l*i[0]))/1e3,t.round(1e3*(h*h*h*e[1]+(l*h*h+h*l*h+h*h*l)*r[1]+(l*l*h+h*l*l+l*h*l)*n[1]+l*l*l*i[1]))/1e3]},buildBezierData:a,pointOnLine2D:e,pointOnLine3D:function(i,r,n,s,a,o,l,h,c){if(0===n&&0===o&&0===c)return e(i,r,s,a,l,h);var u,d=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(c-n,2)),f=t.sqrt(t.pow(l-s,2)+t.pow(h-a,2)+t.pow(c-o,2));return(u=d>p?d>f?d-p-f:f-p-d:f>p?f-p-d:p-d-f)>-1e-4&&u<1e-4}}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(t,e){var i,r=this.offsetTime;"multidimensional"===this.propType&&(i=createTypedArray("float32",this.pv.length));for(var n,s,a,o,l,h,c,u,d,p=e.lastIndex,f=p,m=this.keyframes.length-1,g=!0;g;){if(n=this.keyframes[f],s=this.keyframes[f+1],f===m-1&&t>=s.t-r){n.h&&(n=s),p=0;break}if(s.t-r>t){p=f;break}f<m-1?f+=1:(p=0,g=!1)}a=this.keyframesMetadata[f]||{};var y,v=s.t-r,x=n.t-r;if(n.to){a.bezierData||(a.bezierData=bez.buildBezierData(n.s,s.s||n.e,n.to,n.ti));var _=a.bezierData;if(t>=v||t<x){var b=t>=v?_.points.length-1:0;for(l=_.points[b].point.length,o=0;o<l;o+=1)i[o]=_.points[b].point[o]}else{a.__fnct?d=a.__fnct:(d=BezierFactory.getBezierEasing(n.o.x,n.o.y,n.i.x,n.i.y,n.n).get,a.__fnct=d),h=d((t-x)/(v-x));var S,E=_.segmentLength*h,w=e.lastFrame<t&&e._lastKeyframeIndex===f?e._lastAddedLe
vendor: 6,222 bytes, line 2
2ngth:0;for(u=e.lastFrame<t&&e._lastKeyframeIndex===f?e._lastPoint:0,g=!0,c=_.points.length;g;){if(w+=_.points[u].partialLength,0===E||0===h||u===_.points.length-1){for(l=_.points[u].point.length,o=0;o<l;o+=1)i[o]=_.points[u].point[o];break}if(E>=w&&E<w+_.points[u+1].partialLength){for(S=(E-w)/_.points[u+1].partialLength,l=_.points[u].point.length,o=0;o<l;o+=1)i[o]=_.points[u].point[o]+(_.points[u+1].point[o]-_.points[u].point[o])*S;break}u<c-1?u+=1:g=!1}e._lastPoint=u,e._lastAddedLength=w-_.points[u].partialLength,e._lastKeyframeIndex=f}}else{var T,A,M,P,C;if(m=n.s.length,y=s.s||n.e,this.sh&&1!==n.h)t>=v?(i[0]=y[0],i[1]=y[1],i[2]=y[2]):t<=x?(i[0]=n.s[0],i[1]=n.s[1],i[2]=n.s[2]):quaternionToEuler(i,slerp(createQuaternion(n.s),createQuaternion(y),(t-x)/(v-x)));else for(f=0;f<m;f+=1)1!==n.h&&(t>=v?h=1:t<x?h=0:(n.o.x.constructor===Array?(a.__fnct||(a.__fnct=[]),a.__fnct[f]?d=a.__fnct[f]:(T=void 0===n.o.x[f]?n.o.x[0]:n.o.x[f],A=void 0===n.o.y[f]?n.o.y[0]:n.o.y[f],M=void 0===n.i.x[f]?n.i.x[0]:n.i.x[f],P=void 0===n.i.y[f]?n.i.y[0]:n.i.y[f],d=BezierFactory.getBezierEasing(T,A,M,P).get,a.__fnct[f]=d)):a.__fnct?d=a.__fnct:(T=n.o.x,A=n.o.y,M=n.i.x,P=n.i.y,d=BezierFactory.getBezierEasing(T,A,M,P).get,n.keyframeMetadata=d),h=d((t-x)/(v-x)))),y=s.s||n.e,C=1===n.h?n.s[f]:n.s[f]+(y[f]-n.s[f])*h,"multidimensional"===this.propType?i[f]=C:i=C}return e.lastIndex=p,i}function slerp(t,e,i){var r,n,s,a,o,l=[],h=t[0],c=t[1],u=t[2],d=t[3],p=e[0],f=e[1],m=e[2],g=e[3];return(n=h*p+c*f+u*m+d*g)<0&&(n=-n,p=-p,f=-f,m=-m,g=-g),1-n>1e-6?(r=Math.acos(n),s=Math.sin(r),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*c+o*f,l[2]=a*u+o*m,l[3]=a*d+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);return[o*l*a+n*s*h,o*s*a+n*l*h,n*l*a-o*s*h,n*s*a-o*l*h]}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);else{var t;this.lock=!0,this._mdf=this._isFirstFrame;var 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){var n;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 s=e.k.length;for(this.v=createTypedArray("float32",s),this.pv=createTypedArray("float32",s),this.vel=createTypedArray("float32",s),n=0;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){var n;this.propType="multidimensional";var 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 c=e.k[0].s.length;for(this.v=createTypedArray("float32",c),this.pv=createTypedArray("float32",c),n=0;n<c;n+=1)this.v[n]=initFrame,this.pv[n]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",c)},this.addEffect=addEffect}
vendor: 9,106 bytes, line 2
2var PropertyFactory={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(){var t;this._mdf=!1;var 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=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=new ShapePath;t.setPathData(this.c,this._length);var e=this.v,i=this.o,r=this.i,n=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],r[0][0],r[0][1],i[0][0],i[0][1],0,!1),n=1);var s,a=this._length-1,o=this._length;for(s=n;s<o;s+=1)t.setTripleAt(e[a][0],e[a][1],r[a][0],r[a][1],i[a][0],i[a][1],s,!1),a-=1;return t},ShapePath.prototype.length=function(){return this._length};var shapePool=(factory=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})),factory.clone=function(t){var e,i=factory.newElement(),r=void 0===t._length?t.v.length:t._length;for(i.setLength(r),i.c=t.c,e=0;e<r;e+=1)i.setTripleAt(t.v[e][0],t.v[e][1],t.o[e][0],t.o[e][1],t.i[e][0],t.i[e][1],e);return i},factory),factory;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=(ob={newShapeCollection:function(){return _length?pool[_length-=1]:new ShapeCollection},release:function(t){var e,i=t._length;for(e=0;e<i;e+=1)shapePool.release(t.shapes[e]);t._length=0,_length===_maxLength&&(pool=pooling.double(pool),_maxLength*=2),pool[_length]=t,_length+=1}},_length=0,_maxLength=4,pool=createSizedArray(_maxLength),ob),ob,_length,_maxLength,pool,ShapePropertyFactory=function(){var t=-999999;function e(t,e,i){var r,n,s,a,o,l,h,c,u,d=i.lastIndex,p=this.keyframes;if(t<p[0].t-this.offsetTime)r=p[0].s[0],s=!0,d=0;else if(t>=p[p.length-1].t-this.offsetTime)r=p[p.length-1].s?p[p.length-1].s[0]:p[p.length-2].e[0],s=!0;else{for(var f,m,g,y=d,v=p.length-1,x=!0;x&&(f=p[y],!((m=p[y+1]).t-this.offsetTime>t));)y<v-1?y+=1:x=!1;if(g=this.keyframesMetadata[y]||{},d=y,!(s=1===f.h)){if(t>=m.t-this.offsetTime)c=1;else if(t<f.t-this.offsetTime)c=0;else{var _;g.__fnct?_=g.__fnct:(_=BezierFactory.getBezierEasing(f.o.x,f.o.y,f.i.x,f.i.y).get,g.__fnct=_),c=_((t-(f.t-this.offsetTime))/(m.t-this.offsetTime-(f.t-this.offsetTime)))}n=m.s?m.s[0]:f.e[0]}r=f.s[0]}for(l=e._length,h=r.i[0].length,i.lastIndex=d,a=0;a<l;a+=1)for(o=0;o<h;o+=1)u=s?r.i[a][o]:r.i[a][o]+(n.i[a][o]-r.i[a][o])*c,e.i[a][o]=u,u=s?r.o[a][o]:r.o[a][o]+(n.o[a][o]-r.o[a][o])*c,e.o[a][o]=u,u=s?r.v[a][o]:r.v[a][o]+(n.v[a][o]-r.v[a][o])*c,e.v[a][o]=u}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){(function(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})(this.v,t)||(this.v=shapePool.clone(t),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function s(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var t,e;this.lock=!0,this._mdf=!1,t=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var 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}else this._mdf=!1}function a(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 o(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function l(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)]}a.prototype.interpolateShape=e,a.prototype.getValue=s,a.prototype.setVValue=n,a.prototype.addEffect=o,l.prototype.getValue=s,l.prototype.interpolateShape=e,l.prototype.setVValue=n,l.prototype.addEffect=o;var h=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=Pro
vendor: 14,333 bytes, line 2
2pertyFactory.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,c=this.is.v,u=2*Math.PI*o/(2*n),d=2*Math.PI*l/(2*n),p=-Math.PI/2;p+=this.r.v;var f=3===this.data.d?-1:1;for(this.v._length=0,t=0;t<n;t+=1){i=a?h:c,r=a?u:d;var m=(e=a?o:l)*Math.cos(p),g=e*Math.sin(p),y=0===m&&0===g?0:g/Math.sqrt(m*m+g*g),v=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-y*r*i*f,g-v*r*i*f,m+y*r*i*f,g+v*r*i*f,t,!0),a=!a,p+=s*f}},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),c=0===l&&0===h?0:h/Math.sqrt(l*l+h*h),u=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-c*s*n*o,h-u*s*n*o,l+c*s*n*o,h+u*s*n*o,t,!0),a+=i*o}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],t),t}(),u=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}();return{getShapeProp:function(t,e,i){var r;return 3===i||4===i?r=(3===i?e.pt:e.ks).k.length?new l(t,e,i):new a(t,e,i):5===i?r=new u(t,e):6===i?r=new h(t,e):7===i&&(r=new c(t,e)),r.k&&t.addDynamicProperty(r),r},getConstructorFunction:function(){return a},getKeyframedConstructorFunction:function(){return l}}}(),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 c(t,e){return this.shear(i(t),i(e))}function u(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 d(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,c,u,d,p,f,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]=c,this.props[11]=u,this.props[12]=d,this.props[13]=p,this.props[14]=f,this.props[15]=m,this}function f(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,c,u,d,p,f,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===c&&0===u)return g[12]=g[12]*t+g[15]*d,g[13]=g[13]*s+g[15]*p,g[14]=g[14]*c+g[15]*f,g[15]*=m,this._identityCalculated=!1,this;var y=g[0],v=g[1],x=g[2],_=g[3],b=g[4],S=g[5],E=g[6],w=g[7],T=g[8],A=g[9],M=g[10],P=g[11],C=g[12],k=g[13],I=g[14],D=g[15];return g[0]=y*t+v*n+x*l+_*d,g[1]=y*e+v*s+x*h+_*p,g[2]=y*i+v*a+x*c+_*f,g[3]=y*r+v*o+x*u+_*m,g[4]=b*t+S*n+E*l+w*d,g[5]=b*e+S*s+E*h+w*p,g[6]=b*i+S*a+E*c+w*f,g[7]=b*r+S*o+E*u+w*m,g[8]=T*t+A*n+M*l+P*d,g[9]=T*e+A*s+M*h+P*p,g[10]=T*i+A*a+M*c+P*f,g[11]=T*r+A*o+M*u+P*m,g[12]=C*t+k*n+I*l+D*d,g[13]=C*e+k*s+I*h+D*p,g[14]=C*i+k*a+I*c+D*f,g[15]=C*r+k*o+I*u+D*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 y(){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 v(t){for(var e=0;e<16;){if(t.props[e]!==this.props[e])return!1;e+=1}return!0}function x(t){var e;for(e=0;e<16;e+=1)t.props[e]=this.props[e];return t}function _(t){var e;for(e=0;e<16;e+=1)this.props[e]=t[e]}function b(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 S(t,e,i){return t*this.props[0]+e*this.props[4]+i*this.props[8]+this.props[12]}function E(t,e,i){return t*this.props[1]+e*this.props[5]+i*this.props[9]+this.props[13]}function w(t,e,i){return t*this.props[2]+e*this.props[6]+i*this.props[10]+this.props[14]}function T(){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 A(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]=A(t[e]);return r}function P(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 C(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 k(t,e){if(this.isIdentity())return t+","+e;var i=this.props;return Math.round(100*(t*i[0]+e*i[4]+i[12]))/100+","+Math.round(100*(t*i[1]+e*i[5]+i[13]))/100}function I(){for(var t=0,e=this.props,i="matrix3d(";t<16;)i+=r(1e4*e[t])/1e4,i+=15===t?")":",",t+=1;return i}function D(t){return t<1e-6&&t>0||t>-1e-6&&t<0?r(1e4*t)/1e4:t}function R(){var t=this.props;return"matrix("+D(t[0])+","+D(t[1])+","+D(t[4])+","+D(t[5])+","+D(t[12])+","+D(t[13])+")"}return function(){this.reset=n,this.rotate=s,this.rotateX=a,this.rotateY=o,this.rotateZ=l,this.skew=c,this.skewFromAxis=u,this.shear=h,this.scale=d,this.setTransform=p,this.translate=f,this.transform=m,this.multiply=g,this.applyToPoint=b,this.applyToX=S,this.applyToY=E,this.applyToZ=w,this.applyToPointArray=C,this.applyToTriplePoints=P,this.applyToPointStringified=k,this.toCSS=I,this.to2dCSS=R,this.clone=x,this.cloneFromProps=_,this.equals=v,this.inversePoints=M,this.inversePoint=A,this.getInverseMatrix=T,this._t=this.transform,this.isIdentity=y,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},_typeof$3(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(t){}var ShapeModifiers=function(){var t={},e={};return t.registerModifier=function(t,i){e[t]||(e[t]=i)},t.getModifier=function(t,i,r){return new e[t](i,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=Pro
vendor: 7,456 bytes, line 2
2pertyFactory.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=[];e<=1?s.push({s:t,e:e}):t>=1?s.push({s:t-1,e:e-1}):(s.push({s:t,e:1}),s.push({s:0,e:e-1}));var a,o,l=[],h=s.length;for(a=0;a<h;a+=1){var c,u;(o=s[a]).e*n<r||o.s*n>r+i||(c=o.s*n<=r?0:(o.s*n-r)/i,u=o.e*n>=r+i?1:(o.e*n-r)/i,l.push([c,u]))}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){var e,i,r,n;if(this._mdf||t){var s=this.o.v%360/360;if(s<0&&(s+=1),(e=this.s.v>1?1+s:this.s.v<0?0+s:this.s.v+s)>(i=this.e.v>1?1+s:this.e.v<0?0+s:this.e.v+s)){var a=e;e=i,i=a}e=1e-4*Math.round(1e4*e),i=1e-4*Math.round(1e4*i),this.sValue=e,this.eValue=i}else e=this.sValue,i=this.eValue;var o,l,h,c,u,d=this.shapes.length,p=0;if(i===e)for(n=0;n<d;n+=1)this.shapes[n].localShapeCollection.releaseShapes(),this.shapes[n].shape._mdf=!0,this.shapes[n].shape.paths=this.shapes[n].localShapeCollection,this._mdf&&(this.shapes[n].pathsData.length=0);else if(1===i&&0===e||0===i&&1===e){if(this._mdf)for(n=0;n<d;n+=1)this.shapes[n].pathsData.length=0,this.shapes[n].shape._mdf=!0}else{var f,m,g=[];for(n=0;n<d;n+=1)if((f=this.shapes[n]).shape._mdf||this._mdf||t||2===this.m){if(l=(r=f.shape.paths)._length,u=0,!f.shape._mdf&&f.pathsData.length)u=f.totalShapeLength;else{for(h=this.releasePathsData(f.pathsData),o=0;o<l;o+=1)c=bez.getSegmentsLength(r.shapes[o]),h.push(c),u+=c.totalLength;f.totalShapeLength=u,f.pathsData=h}p+=u,f.shape._mdf=!0}else f.shape.paths=f.localShapeCollection;var y,v=e,x=i,_=0;for(n=d-1;n>=0;n-=1)if((f=this.shapes[n]).shape._mdf){for((m=f.localShapeCollection).releaseShapes(),2===this.m&&d>1?(y=this.calculateShapeEdges(e,i,f.totalShapeLength,_,p),_+=f.totalShapeLength):y=[[v,x]],l=y.length,o=0;o<l;o+=1){v=y[o][0],x=y[o][1],g.length=0,x<=1?g.push({s:f.totalShapeLength*v,e:f.totalShapeLength*x}):v>=1?g.push({s:f.totalShapeLength*(v-1),e:f.totalShapeLength*(x-1)}):(g.push({s:f.totalShapeLength*v,e:f.totalShapeLength}),g.push({s:0,e:f.totalShapeLength*(x-1)}));var b=this.addShapes(f,g[0]);if(g[0].s!==g[0].e){if(g.length>1)if(f.shape.paths.shapes[f.shape.paths._length-1].c){var S=b.pop();this.addPaths(b,m),b=this.addShapes(f,g[1],S)}else this.addPaths(b,m),b=this.addShapes(f,g[1]);this.addPaths(b,m)}}f.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,c,u=t.pathsData,d=t.shape.paths.shapes,p=t.shape.paths._length,f=0,m=[],g=!0;for(i?(o=i._length,c=i._length):(i=shapePool.newElement(),o=0,c=0),m.push(i),r=0;r<p;r+=1){for(l=u[r].lengths,i.c=d[r].c,s=d[r].c?l.length:l.length+1,n=1;n<s;n+=1)if(f+(a=l[n-1]).addedLength<e.s)f+=a.addedLength,i.c=!1;else{if(f>e.e){i.c=!1;break}e.s<=f&&e.e>=f+a.addedLength?(this.addSegment(d[r].v[n-1],d[r].o[n-1],d[r].i[n],d[r].v[n],i,o,g),g=!1):(h=bez.getNewSegment(d[r].v[n-1],d[r].v[n],d[r].o[n-1],d[r].i[n],(e.s-f)/a.addedLength,(e.e-f)/a.addedLength,l[n-1]),this.addSegmentFromArray(h,i,o,g),g=!1,i.c=!1),f+=a.addedLength,o+=1}if(d[r].c&&l.length){if(a=l[n-1],f<=e.e){var y=l[n-1].addedLength;e.s<=f&&e.e>=f+y?(this.addSegment(d[r].v[n-1],d[r].o[n-1],d[r].i[0],d[r].v[0],i,o,g),g=!1):(h=bez.getNewSegment(d[r].v[n-1],d[r].v[0],d[r].o[n-1],d[r].i[0],(e.s-f)/y,(e.e-f)/y,l[n-1]),this.addSegmentFromArray(h,i,o,g),g=!1,i.c=!1)}else i.c=!1;f+=a.addedLength,o+=1}if(i._length&&(i.setXYAt(i.v[c][0],i.v[c][1],"i",c),i.setXYAt(i.v[i._length-1][0],i.v[i._length-1][1],"o",i._length-1)),f>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=e/100,r=[0,0],n=t._length,s=0;for(s=0;s<n;s+=1)r[0]+=t.v[s][0],r[1]+=t.v[s][1];r[0]/=n,r[1]/=n;var a,o,l,h,c,u,d=shapePool.newElement();for(d.c=t.c,s=0;s<n;s+=1)a=t.v[s][0]+(r[0]-t.v[s][0])*i,o=t.v[s][1]+(r[1]-t.v[s][1])*i,l=t.o[s][0]+(r[0]-t.o[s][0])*-i,h=t.o[s][1]+(r[1]-t.o[s][1])*-i,c=t.i[s][0]+(r[0]-t.i[s][0])*-i,u=t.i[s][1]+(r[1]-t.i[s][1])*-i,d.setTripleAt(a,o,l,h,c,u,s);return d},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,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 e.prototype={applyToMatrix:function(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])},getValue:function(e){if(this.elem.globalData.frameId!==this.frameId){if
vendor: 35,805 bytes, line 2
2(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){var r,n;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 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}},precalculateMatrix:function(){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)}},autoOrient:function(){}},extendPrototype([DynamicPropertyContainer],e),e.prototype.addDynamicProperty=function(t){this._addDynamicProperty(t),this.elem.addDynamicProperty(t),this._isDirty=!0},e.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(t,i,r){return new e(t,i,r)}}}();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 Math.abs(t)<=1e-5}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[3*e-t-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]);else{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,c=e[1]-Math.sin(i)*r*n;t.setTripleAt(h,c,h+Math.cos(o)*s,c-Math.sin(o)*s,h+Math.cos(l)*a,c-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],c=e.v[(i+1)%e._length],u=2===s?Math.sqrt(Math.pow(l[0]-h[0],2)+Math.pow(l[1]-h[1],2)):0,d=2===s?Math.sqrt(Math.pow(l[0]-c[0],2)+Math.pow(l[1]-c[1],2)):0;setPoint(t,e.v[i%e._length],o,a,r,d/(2*(n+1)),u/(2*(n+1)),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/(2*(r+1)),l/(2*(r+1)),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){var i,r,n,s,a,o,l;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 h=lineIntersection(i,r,n,s);null===h&&(h=r);var c=lineIntersection(a,o,n,s);return null===c&&(c=a),new PolynomialBezier(i,h,c,o)}function joinLines(t,e,i,r,n){var s=e.points[3],a=i.points[0];if(3===r)return s;if(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)),c=h?pointDistance(h,s):pointDistance(s,a)/2,u=polarOffset(s,o,2*c*roundCorner);return t.setXYAt(u[0],u[1],"o",t.length()-1),u=polarOffset(a,l,2*c*roundCorner),t.setTripleAt(a[0],a[1],a[0],a[1],u[0],u[1],t.length()),a}var d=lineIntersection(pointEqual(s,e.points[2])?e.points[0]:e.points[2],s,a,pointEqual(a,i.points[1])?i.points[3]:i.points[1]);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,i,r,n,s,a=!1;if(this._mdf||t){var o,l=Math.ceil(this.c.v);if(this._groups.length<l){for(;this._groups.length<l;){var h={it:this.cloneElements(this._elements),ty:"gr"};h.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,h),this._groups.splice(0,0,h),this._currentCopies+=1}this.elem.reloadShapes(),a=!0}for(s=0,r=0;r<=this._groups.length-1;r+=1){if(o=s<l,this._groups[r]._render=o,this.changeGroupRender(this._groups[r].it,o),!o){var c=this.elemsData[r].it,u=c[c.length-1];0!==u.transform.op.v?(u.transform.op._mdf=!0,u.transform.op.v=0):u.transform.op._mdf=!1}s+=1}this._currentCopies=l;var d=this.o.v,p=d%1,f=d>0?Math.floor(d):Math.ceil(d),m=this.pMatrix.props,g=this.rMatrix.props,y=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var v,x,_=0;if(d>0){for(;_<f;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),_+=1;p&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,p,!1),_+=p)}else if(d<0){for(;_>f;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),_-=1;p&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-p,!0),_-=p)}for(r=1===this.data.m?0:this._currentCopies-1,n=1===this.data.m?1:-1,s=this._currentCopies;s;){if(x=(i=(e=this.elemsData[r].it)[e.length-1].transform.mProps.v.props).length,e[e.length-1].transform.mProps._mdf=!0,e[e.length-1].transform.op._mdf=!0,e[e.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(r/(this._currentCopies-1)),0!==_){for((0!==r&&1===n||r!==this._currentCopies-1&&-1===n)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]),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(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[15]),v=0;v<x;v+=1)i[v]=this.matrix.props[v];this.matrix.reset()}else for(this.matrix.reset(),v=0;v<x;v+=1)i[v]=this.matrix.props[v];_+=1,s-=1,r+=n}}else for(s=this._currentCopies,r=0,n=1;s;)i=(e=this.elemsData[r].it)[e.length-1].transform.mProps.v.props,e[e.length-1].transform.mProps._mdf=!1,e[e.length-1].transform.op._mdf=!1,s-=1,r+=n;return a},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=shapePool.newElement();r.c=t.c;var n,s,a,o,l,h,c,u,d,p,f,m,g=t._length,y=0;for(i=0;i<g;i+=1)n=t.v[i],a=t.o[i],s=t.i[i],n[0]===a[0]&&n[1]===a[1]&&n[0]===s[0]&&n[1]===s[1]?0!==i&&i!==g-1||t.c?(o=0===i?t.v[g-1]:t.v[i-1],h=(l=Math.sqrt(Math.pow(n[0]-o[0],2)+Math.pow(n[1]-o[1],2)))?Math.min(l/2,e)/l:0,c=f=n[0]+(o[0]-n[0])*h,u=m=n[1]-(n[1]-o[1])*h,d=c-(c-n[0])*roundCorner,p=u-(u-n[1])*roundCorner,r.setTripleAt(c,u,d,p,f,m,y),y+=1,o=i===g-1?t.v[0]:t.v[i+1],h=(l=Math.sqrt(Math.pow(n[0]-o[0],2)+Math.pow(n[1]-o[1],2)))?Math.min(l/2,e)/l:0,c=d=n[0]+(o[0]-n[0])*h,u=p=n[1]+(o[1]-n[1])*h,f=c-(c-n[0])*roundCorner,m=u-(u-n[1])*roundCorner,r.setTripleAt(c,u,d,p,f,m,y),y+=1):(r.setTripleAt(n[0],n[1],a[0],a[1],s[0],s[1],y),y+=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],y),y+=1);return r},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)),c=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,c));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=shapePool.newElement();n.c=t.c;var s,a,o,l=t.length();t.c||(l-=1);var h=[];for(s=0;s<l;s+=1)o=PolynomialBezier.shapeSegment(t,s),h.push(offsetSegmentSplit(o,e));if(!t.c)for(s=l-1;s>=0;s-=1)o=PolynomialBezier.shapeSegmentInverted(t,s),h.push(offsetSegmentSplit(o,e));h=pruneIntersections(h);var c=null,u=null;for(s=0;s<h.length;s+=1){var d=h[s];for(u&&(c=joinLines(n,u,d[0],i,r)),u=d[d.length-1],a=0;a<d.length;a+=1)o=d[a],c&&pointEqual(o.points[0],c)?n.setXYAt(o.points[1][0],o.points[1][1],"o",n.length()-1):n.setTripleAt(o.points[0][0],o.points[0][1],o.points[1][0],o.points[1][1],o.points[0][0],o.points[0][1],n.length()),n.setTripleAt(o.points[3][0],o.points[3][1],o.points[3][0],o.points[3][1],o.points[2][0],o.points[2][1],n.length()),c=o.points[3]}return h.length&&joinLines(n,u,h[0][0],i,r),n},OffsetPathModifier.prototype.processShapes=function(t){var e,i,r,n,s,a,o=this.shapes.length,l=this.amount.v,h=this.miterLimit.v,c=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,c,h));s.shape.paths=s.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var FontManager=function(){var t={w:0,size:0,shapes:[],data:{shapes:[]}},e=[];e=e.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 i=127988,r=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function n(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="300px",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=function(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(",")}(t)+", "+e,{node:r,w:n,parent:i}}function s(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 a(t){var e=0,i=t.charCodeAt(0);if(i>=55296&&i<=56319){var r=t.charCodeAt(1);r>=56320&&r<=57343&&(e=1024*(i-55296)+r-56320+65536)}return e}function o(t){var e=a(t);return e>=127462&&e<=127487}var l=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)};l.isModifier=function(t,e){var i=t.toString(16)+e.toString(16);return-1!==r.indexOf(i)},l.isZeroWidthJoiner=function(t){return 8205===t},l.isFlagEmoji=function(t){return o(t.substr(0,2))&&o(t.substr(2,2))},l.isRegionalCode=o,l.isCombinedCharacter=function(t){return-1!==e.indexOf(t)},l.isRegionalFlag=function(t,e){var r=a(t.substr(e,2));if(r!==i)return!1;var n=0;for(e+=2;n<5;){if((r=a(t.substr(e,2)))<917601||r>917626)return!1;n+=1,e+=2}return 917631===a(t.substr(e,2))},l.isVariationSelector=function(t){return 65039===t},l.BLACK_FLAG_CODE_POINT=i;var h={addChars:function(t){if(t){var e;this.chars||(this.chars=[]);var 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)}}},addFonts:function(t,e){if(t){if(this.chars)return this.isLoaded=!0,void(this.fonts=t.list);if(!document.body)return this.isLoaded=!0,t.list.forEach((function(t){t.helper=s(t),t.cache={}})),void(this.fonts=t.list);var i,r=t.list,a=r.length,o=a;for(i=0;i<a;i+=1){var l,h,c=!0;if(r[i].loaded=!1,r[i].monoCase=n(r[i].fFamily,"monospace"),r[i].sansCase=n(r[i].fFamily,"sans-serif"),r[i].fPath){if("p"===r[i].fOrigin||3===r[i].origin){if((l=document.querySelectorAll('style[f-forigin="p"][f-family="'+r[i].fFamily+'"], style[f-origin="3"][f-family="'+r[i].fFamily+'"]')).length>0&&(c=!1),c){var u=createTag("style");u.setAttribute("f-forigin",r[i].fOrigin),u.setAttribute("f-origin",r[i].origin),u.setAttribute("f-family",r[i].fFamily),u.type="text/css",u.innerText="@font-face {font-family: "+r[i].fFamily+"; font-style: normal; src: url('"+r[i].fPath+"');}",e.appendChild(u)}}else if("g"===r[i].fOrigin||1===r[i].origin){for(l=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),h=0;h<l.length;h+=1)-1!==l[h].href.indexOf(r[i].fPath)&&(c=!1);if(c){var d=createTag("link");d.setAttribute("f-forigin",r[i].fOrigin),d.setAttribute("f-origin",r[i].origin),d.type="text/css",d.rel="stylesheet",d.href=r[i].fPath,document.body.appendChild(d)}}else if("t"===r[i].fOrigin||2===r[i].origin){for(l=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),h=0;h<l.length;h+=1)r[i].fPath===l[h].src&&(c=!1);if(c){var p=createTag("link");p.setAttribute("f-forigin",r[i].fOrigin),p.setAttribute("f-origin",r[i].origin),p.setAttribute("rel","stylesheet"),p.setAttribute("href",r[i].fPath),e.appendChild(p)}}}else r[i].loaded=!0,o-=1;r[i].helper=s(r[i],e),r[i].cache={},this.fonts.push(r[i])}0===o?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(e,i,r){for(var n=0,s=this.chars.length;n<s;){if(this.chars[n].ch===e&&this.chars[n].style===i&&this.chars[n].fFamily===r)return this.chars[n];n+=1}return("string"==typeof e&&13!==e.charCodeAt(0)||!e)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",e,i,r)),t},getFontByName:function(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]},measureText:function(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},checkLoadedFonts:function(){var t,e,i,r=this.fonts.length,n=r;for(t=0;t<r;t+=1)this.fonts[t].loaded?n-=1:"n"===this.fonts[t].fOrigin||0===this.fonts[t].origin?this.fonts[t].loaded=!0:(e=this.fonts[t].monoCase.node,i=this.fonts[t].monoCase.w,e.offsetWidth!==i?(n-=1,this.fonts[t].loaded=!0):(e=this.fonts[t].sansCase.node,i=this.fonts[t].sansCase.w,e.offsetWidth!==i&&(n-=1,this.fonts[t].loaded=!0)),this.fonts[t].loaded&&(this.fonts[t].sansCase.parent.parentNode.removeChild(this.fonts[t].sansCase.parent),this.fonts[t].monoCase.parent.parentNode.removeChild(this.fonts[t].monoCase.parent)));0!==n&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}};return l.prototype=h,l}();function SlotManager(t){this.animationData=t}function slotFactory(t){return new SlotManager(t)}function 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=(blendModeEnums={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"},function(t){return blendModeEnums[t]||""}),blendModeEnums;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=t.ef||[];this.effectElements=[];var n,s=r.length;for(i=0;i<s;i+=1)n=new GroupEffect(r[i],e),this.effectElements.push(n)}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){var i;this.data=t,this.effectElements=[],this.initDynamicPropertyContainer(e);var 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)}
vendor: 7,053 bytes, line 2
2},BaseRenderer.prototype.createCamera=function(){throw new 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){var e;this.completeLayers=!1;var 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,i=t.shift();if("number"==typeof i)e=this.elements[i];else{var r,n=this.elements.length;for(r=0;r<n;r+=1)if(this.elements[r].data.nm===i){e=this.elements[r];break}}return 0===t.length?e:e.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,n,s=this.globalData.defs,a=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(a),this.solidPath="";var o,l,h,c,u,d,p=this.masksProperties,f=0,m=[],g=createElementID(),y="clipPath",v="clip-path";for(r=0;r<a;r+=1)if(("a"!==p[r].mode&&"n"!==p[r].mode||p[r].inv||100!==p[r].o.k||p[r].o.x)&&(y="mask",v="mask"),"s"!==p[r].mode&&"i"!==p[r].mode||0!==f?h=null:((h=createNS("rect")).setAttribute("fill","#ffffff"),h.setAttribute("width",this.element.comp.data.w||0),h.setAttribute("height",this.element.comp.data.h||0),m.push(h)),n=createNS("path"),"n"===p[r].mode)this.viewData[r]={op:PropertyFactory.getProp(this.element,p[r].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,p[r],3),elem:n,lastPath:""},s.appendChild(n);else{var x;if(f+=1,n.setAttribute("fill","s"===p[r].mode?"#000000":"#ffffff"),n.setAttribute("clip-rule","nonzero"),0!==p[r].x.k?(y="mask",v="mask",d=PropertyFactory.getProp(this.element,p[r].x,0,null,this.element),x=createElementID(),(c=createNS("filter")).setAttribute("id",x),(u=createNS("feMorphology")).setAttribute("operator","erode"),u.setAttribute("in","SourceGraphic"),u.setAttribute("radius","0"),c.appendChild(u),s.appendChild(c),n.setAttribute("stroke","s"===p[r].mode?"#000000":"#ffffff")):(u=null,d=null),this.storedData[r]={elem:n,x:d,expan:u,lastPath:"",lastOperator:"",filterId:x,lastRadius:0},"i"===p[r].mode){l=m.length;var _=createNS("g");for(o=0;o<l;o+=1)_.appendChild(m[o]);var b=createNS("mask");b.setAttribute("mask-type","alpha"),b.setAttribute("id",g+"_"+f),b.appendChild(n),s.appendChild(b),_.setAttribute("mask","url("+getLocationHref()+"#"+g+"_"+f+")"),m.length=0,m.push(_)}else m.push(n);p[r].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[r]={elem:n,lastPath:"",op:PropertyFactory.getProp(this.element,p[r].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,p[r],3),invRect:h},this.viewData[r].prop.k||this.drawPath(p[r],this.viewData[r].prop.v,this.viewData[r])}for(this.maskElement=createNS(y),a=m.length,r=0;r<a;r+=1)this.maskElement.appendChild(m[r]);f>0&&(this.maskElement.setAttribute("id",g),this.element.maskedElement.setAttribute(v,"url("+getLocationHref()+"#"+g+")"),s.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}}}
vendor: 4,283 bytes, line 2
2,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=[];e.push(this.finalTransform);for(var i,r=!0,n=this.comp;r;)n.finalTransform?(n.data.hasMask&&e.splice(0,0,n.finalTransform),n=n.comp):r=!1;var s,a=e.length;for(i=0;i<a;i+=1)s=e[i].mat.applyToPointArray(0,0,0),t=[t[0]-s[0],t[1]-s[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(){var t="M0,0 ";return t+=" h"+this.globalData.compSize.w,t+=" v"+this.globalData.compSize.h,(t+=" 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(n=e._length,r=1;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={createFilter:function(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},createAlphaToLuminanceFilter:function(){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}},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(this.filters=[],e=0;e<n;e+=1){i=null;var l=t.data.ef[e].ty;registeredEffects$1[l]&&(i=new(0,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: 13,653 bytes, line 2
2function 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 c=createNS("feFuncA");c.setAttribute("type","table"),c.setAttribute("tableValues","1.0 0.0"),h.appendChild(c),this.globalData.defs.appendChild(i);var u=createNS("rect");u.setAttribute("width",this.comp.data.w),u.setAttribute("height",this.comp.data.h),u.setAttribute("x","0"),u.setAttribute("y","0"),u.setAttribute("fill","#ffffff"),u.setAttribute("opacity","0"),l.setAttribute("filter","url("+getLocationHref()+"#"+e+")"),l.appendChild(u),(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(u),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,[])}},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=this.shapeModifiers.length;0<e;)if(this.shapeModifiers[0].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)return void(i[r].pos=e);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){var n;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 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=createElementID(),r=createNS(1===e.t?"linearGradient":"radialGradient");r.setAttribute("id",i),r.setAttribute("spreadMethod","pad"),r.setAttribute("gradientUnits","userSpaceOnUse");var n,s,a,o=[];for(a=4*e.g.p,s=0;s<a;s+=4)n=createNS("stop"),r.appendChild(n),o.push(n);t.setAttribute("gf"===e.ty?"fill":"stroke","url("+getLocationHref()+"#"+i+")"),this.gf=r,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[
vendor: 8,893 bytes, line 2
20].s.length:t.g.k.k.length;var c=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),c.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=c,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]),l+="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,c,u,d,p,f,m=r.styles.length,g=r.lvl;for(c=0;c<m;c+=1){if(l=r.sh._mdf||n,r.styles[c].lvl<g){for(d=e.reset(),p=g-r.styles[c].lvl,f=r.transformers.length-1;!l&&p>0;)l=r.transformers[f].mProps._mdf||l,p-=1,f-=1;if(l)for(p=g-r.styles[c].lvl,f=r.transformers.length-1;p>0;)d.multiply(r.transformers[f].mProps.v),p-=1,f-=1}else d=t;if(a=(u=r.sh.paths)._length,l){for(o="",s=0;s<a;s+=1)(h=u.shapes[s])&&h._length&&(o+=buildShapeString(h,h._length,h.c,d));r.caches[c]=o}else o=r.caches[c];r.styles[c].d+=!0===i.hd?"":o,r.styles[c]._mdf=l||r.styles[c]._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(0,e,i)}function o(t,e,i){var r,n,s,a,o,l=e.gf,h=e.g._hasOpacity,c=e.s.v,u=e.e.v;if(e.o._mdf||i){var d="gf"===t.ty?"fill-opacity":"stroke-opacity";e.style.pElem.setAttribute(d,e.o.v)}if(e.s._mdf||i){var p=1===t.t?"x1":"cx",f="x1"===p?"y1":"cy";l.setAttribute(p,c[0]),l.setAttribute(f,c[1]),h&&!e.g._collapsable&&(e.of.setAttribute(p,c[0]),e.of.setAttribute(f,c[1]))}if(e.g._cmdf||i){r=e.cst;var m=e.g.c;for(s=r.length,n=0;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(s=(r=e.g._collapsable?e.cst:e.ost).length,n=0;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",u[0]),l.setAttribute("y2",u[1]),h&&!e.g._collapsable&&(e.of.setAttribute("x2",u[0]),e.of.setAttribute("y2",u[1])));else if((e.s._mdf||e.e._mdf||i)&&(o=Math.sqrt(Math.pow(c[0]-u[0],2)+Math.pow(c[1]-u[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(c[0]-u[0],2)+Math.pow(c[1]-u[1],2)));var y=Math.atan2(u[1]-c[1],u[0]-c[0]),v=e.h.v;v>=1?v=.99:v<=-1&&(v=-.99);var x=o*v,_=Math.cos(y+e.a.v)*x+c[0],b=Math.sin(y+e.a.v)*x+c[1];l.setAttribute("fx",_),l.setAttribute("fy",b),h&&!e.g._collapsable&&(e.of.setAttribute("fx",_),e.of.setAttribute("fy",b))}}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(r=this.stylesList[i],o=!1,a.length=0,t=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(){var t;this._isFirstFrame=!0;var 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()}
vendor: 30,018 bytes, line 2
2,SVGShapeElement.prototype.searchShapes=function(t,e,i,r,n,s,a){var o,l,h,c,u,d,p=[].concat(s),f=t.length-1,m=[],g=[];for(o=f;o>=0;o-=1){if((d=this.searchProcessedElement(t[o]))?e[o]=i[d-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)d?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(d)for(h=e[o].it.length,l=0;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?(d||(e[o]=this.createTransformElement(t[o],r)),c=e[o].transform,p.push(c)):"sh"===t[o].ty||"rc"===t[o].ty||"el"===t[o].ty||"sr"===t[o].ty?(d||(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?(d?(u=e[o]).closed=!1:((u=ShapeModifiers.getModifier(t[o].ty)).init(this,t[o]),e[o]=u,this.shapeModifiers.push(u)),g.push(u)):"rp"===t[o].ty&&(d?(u=e[o]).closed=!0:(u=ShapeModifiers.getModifier(t[o].ty),e[o]=u,u.init(this,t,o,e),this.shapeModifiers.push(u),a=!1),g.push(u));this.addProcessedElement(t[o],o+1)}for(f=m.length,o=0;o<f;o+=1)m[o].closed=!0;for(f=g.length,o=0;o<f;o+=1)g[o].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){var t;this.renderModifiers();var 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=this.currentData,i=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var r;this.lock=!0,this._mdf=!1;var n=this.effectsSequence.length,s=t||this.data.d.k[this.keysIndex].s;for(r=0;r<n;r+=1)s=i!==this.keysIndex?this.effectsSequence[r](s,s.t):this.effectsSequence[r](this.currentData,s.t);e!==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,i,r,n,s,a,o,l=this.elem.globalData.fontManager,h=this.data,c=[],u=0,d=h.m.g,p=0,f=0,m=0,g=[],y=0,v=0,x=l.getFontByName(t.f),_=0,b=getFontProperties(x);t.fWeight=b.weight,t.fStyle=b.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),i=t.finalText.length,t.finalLineHeight=t.lh;var S,E=t.tr/1e3*t.finalSize;if(t.sz)for(var w,T,A=!0,M=t.sz[0],P=t.sz[1];A;){w=0,y=0,i=(T=this.buildFinalText(t.t)).length,E=t.tr/1e3*t.finalSize;var C=-1;for(e=0;e<i;e+=1)S=T[e].charCodeAt(0),r=!1," "===T[e]?C=e:13!==S&&3!==S||(y=0,r=!0,w+=t.finalLineHeight||1.2*t.finalSize),l.chars?(o=l.getCharData(T[e],x.fStyle,x.fFamily),_=r?0:o.w*t.finalSize/100):_=l.measureText(T[e],t.f,t.finalSize),y+_>M&&" "!==T[e]?(-1===C?i+=1:e=C,w+=t.finalLineHeight||1.2*t.finalSize,T.splice(e,C===e?1:0,"\r"),C=-1,y=0):(y+=_,y+=E);w+=x.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&P<w?(t.finalSize-=1,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=T,i=t.finalText.length,A=!1)}y=-E,_=0;var k,I=0;for(e=0;e<i;e+=1)if(r=!1,13===(S=(k=t.finalText[e]).charCodeAt(0))||3===S?(I=0,g.push(y),v=y>v?y:v,y=-2*E,n="",r=!0,m+=1):n=k,l.chars?(o=l.getCharData(k,x.fStyle,l.getFontByName(t.f).fFamily),_=r?0:o.w*t.finalSize/100):_=l.measureText(n,t.f,t.finalSize)," "===k?I+=_+E:(y+=_+E+I,I=0),c.push({l:_,an:_,add:p,n:r,anIndexes:[],val:n,line:m,animatorJustifyOffset:0}),2==d){if(p+=_,""===n||" "===n||e===i-1){for(""!==n&&" "!==n||(p-=_);f<=e;)c[f].an=p,c[f].ind=u,c[f].extra=_,f+=1;u+=1,p=0}}else if(3==d){if(p+=_,""===n||e===i-1){for(""===n&&(p-=_);f<=e;)c[f].an=p,c[f].ind=u,c[f].extra=_,f+=1;p=0,u+=1}}else c[u].ind=u,c[u].extra=0,u+=1;if(t.l=c,v=y>v?y:v,g.push(y),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=v,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=g;var D,R,O,L,F=h.a;a=F.length;var B=[];for(s=0;s<a;s+=1){for((D=F[s]).a.sc&&(t.strokeColorAnim=!0),D.a.sw&&(t.strokeWidthAnim=!0),(D.a.fc||D.a.fh||D.a.fs||D.a.fb)&&(t.fillColorAnim=!0),L=0,O=D.s.b,e=0;e<i;e+=1)(R=c[e]).anIndexes[s]=L,(1==O&&""!==R.val||2==O&&""!==R.val&&" "!==R.val||3==O&&(R.n||" "==R.val||e==i-1)||4==O&&(R.n||e==i-1))&&(1===D.s.rn&&B.push(L),L+=1);h.a[s].s.totalChars=L;var N,V=-1;if(1===D.s.rn)for(e=0;e<i;e+=1)V!=(R=c[e]).anIndexes[s]&&(V=R.anIndexes[s],N=B.splice(Math.floor(Math.random()*B.length),1)[0]),R.anIndexes[s]=N}t.yOffset=t.finalLineHeight||1.2*t.finalSize,t.ls=t.ls||0,t.ascent=x.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),this.e="e"in e?PropertyFactory.getProp(t,e.e,0,0,this):{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,c=this.finalS,u=this.finalE,d=this.data.sh;if(2===d)h=l(h=u===c?r>=u?1:0:t(0,e(.5/(u-c)+(r-c)/(u-c),1)));else if(3===d)h=l(h=u===c?r>=u?0:1:1-t(0,e(.5/(u-c)+(r-c)/(u-c),1)));else if(4===d)u===c?h=0:(h=t(0,e(.5/(u-c)+(r-c)/(u-c),1)))<.5?h*=2:h=1-2*(h-.5),h=l(h);else if(5===d){if(u===c)h=0;else{var p=u-c,f=-p/2+(r=e(t(0,r+.5-c),u-c)),m=p/2;h=Math.sqrt(1-f*f/(m*m))}h=l(h)}else 6===d?(u===c?h=0:(r=e(t(0,r+.5-c),u-c),h=(1+Math.cos(Math.PI+2*Math.PI*r/(u-c)))/2),h=l(h)):(r>=i(c)&&(h=t(0,e(r-c<0?e(u,1)-(c-r):u-r,1))),h=l(h));if(100!==this.sm.v){var g=.01*this.sm.v;0===g&&(g=1e-8);var y=.5-.5*g;h<y?h=0:(h=(h-y)/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,c,u,d,p,f,m,g,y,v,x,_,b=this._moreOptions.alignment.v,S=this._animatorsData,E=this._textData,w=this.mHelper,T=this._renderType,A=this.renderedLetters.length,M=t.l;if(this._hasMaskedPath){if(_=this._pathData.m,!this._pathData.n||this._pathData._mdf){var P,C=_.v;for(this._pathData.r.v&&(C=C.reverse()),a={tLength:0,segments:[]},s=C._length-1,y=0,n=0;n<s;n+=1)P=bez.buildBezierData(C.v[n],C.v[n+1],[C.o[n][0]-C.v[n][0],C.o[n][1]-C.v[n][1]],[C.i[n+1][0]-C.v[n+1][0],C.i[n+1][1]-C.v[n+1][1]]),a.tLength+=P.segmentLength,a.segments.push(P),y+=P.segmentLength;n=s,_.v.c&&(P=bez.buildBezierData(C.v[n],C.v[0],[C.o[n][0]-C.v[n][0],C.o[n][1]-C.v[n][1]],[C.i[0][0]-C.v[0][0],C.i[0][1]-C.v[0][1]]),a.tLength+=P.segmentLength,a.segments.push(P),y+=P.segmentLength),this._pathData.pi=a}if(a=this._pathData.pi,o=this._pathData.f.v,d=0,u=1,h=0,c=!0,m=a.segments,o<0&&_.v.c)for(a.tLength<Math.abs(o)&&(o=-Math.abs(o)%a.tLength),u=(f=m[d=m.length-1].points).length-1;o<0;)o+=f[u].partialLength,(u-=1)<0&&(u=(f=m[d-=1].points).length-1);p=(f=m[d].points)[u-1],g=(l=f[u]).partialLength}s=M.length,i=0,r=0;var k,I,D,R,O,L=1.2*t.finalSize*.714,F=!0;D=S.length;var B,N,V,z,G,U,H,j,W,X,$,Y,q=-1,K=o,Z=d,J=u,Q=-1,tt="",et=this.defaultPropsArray;if(2===t.j||1===t.j){var it=0,rt=0,nt=2===t.j?-.5:-1,st=0,at=!0;for(n=0;n<s;n+=1)if(M[n].n){for(it&&(it+=rt);st<n;)M[st].animatorJustifyOffset=it,st+=1;it=0,at=!0}else{for(I=0;I<D;I+=1)(k=S[I].a).t.propType&&(at&&2===t.j&&(rt+=k.t.v*nt),(O=S[I].s.getMult(M[n].anIndexes[I],E.a[I].s.totalChars)).length?it+=k.t.v*O[0]*nt:it+=k.t.v*O*nt);at=!1}for(it&&(it+=rt);st<n;)M[st].animatorJustifyOffset=it,st+=1}for(n=0;n<s;n+=1){if(w.reset(),z=1,M[n].n)i=0,r+=t.yOffset,r+=F?1:0,o=K,F=!1,this._hasMaskedPath&&(u=J,p=(f=m[d=Z].points)[u-1],g=(l=f[u]).partialLength,h=0),tt="",$="",W="",Y="",et=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Q!==M[n].line){switch(t.j){case 1:o+=y-t.lineWidths[M[n].line];break;case 2:o+=(y-t.lineWidths[M[n].line])/2}Q=M[n].line}q!==M[n].ind&&(M[q]&&(o+=M[q].extra),o+=M[n].an/2,q=M[n].ind),o+=b[0]*M[n].an*.005;var ot=0;for(I=0;I<D;I+=1)(k=S[I].a).p.propType&&((O=S[I].s.getMult(M[n].anIndexes[I],E.a[I].s.totalChars)).length?ot+=k.p.v[0]*O[0]:ot+=k.p.v[0]*O),k.a.propType&&((O=S[I].s.getMult(M[n].anIndexes[I],E.a[I].s.totalChars)).length?ot+=k.a.v[0]*O[0]:ot+=k.a.v[0]*O);for(c=!0,this._pathData.a.v&&(o=.5*M[0].an+(y-this._pathData.f.v-.5*M[0].an-.5*M[M.length-1].an)*q/(s-1),o+=this._pathData.f.v);c;)h+g>=o+ot||!f?(v=(o+ot-h)/l.partialLength,N=p.point[0]+(l.point[0]-p.point[0])*v,V=p.point[1]+(l.point[1]-p.point[1])*v,w.translate(-b[0]*M[n].an*.005,-b[1]*L*.01),c=!1):f&&(h+=l.partialLength,(u+=1)>=f.length&&(u=0,m[d+=1]?f=m[d].points:_.v.c?(u=0,f=m[d=0].points):(h-=l.partialLength,f=null)),f&&(p=l,g=(l=f[u]).partialLength));B=M[n].an/2-M[n].add,w.translate(-B,0,0)}else B=M[n].an/2-M[n].add,w.translate(-B,0,0),w.translate(-b[0]*M[n].an*.005,-b[1]*L*.01,0);for(I=0;I<D;I+=1)(k=S[I].a).t.propType&&(O=S[I].s.getMult(M[n].anIndexes[I],E.a[I].s.totalChars),0===i&&0===t.j||(this._hasMaskedPath?O.length?o+=k.t.v*O[0]:o+=k.t.v*O:O.length?i+=k.t.v*O[0]:i+=k.t.v*O));for(t.strokeWidthAnim&&(U=t.sw||0),t.strokeColorAnim&&(G=t.sc?[t.sc[0],t.sc[1],t.sc[2]]:[0,0,0]),t.fillColorAnim&&t.fc&&(H=[t.fc[0],t.fc[1],t.fc[2]]),I=0;I<D;I+=1)(k=S[I].a).a.propType&&((O=S[I].s.getMult(M[n].anIndexes[I],E.a[I].s.totalChars)).length?w.translate(-k.a.v[0]*O[0],-k.a.v[1]*O[1],k.a.v[2]*O[2]):w.translate(-k.a.v[0]*O,-k.a.v[1]*O,k.a.v[2]*O));for(I=0;I<D;I+=1)(k=S[I].a).s.propType&&((O=S[I].s.getMult(M[n].anIndexes[I],E.a[I].s.totalChars)).length?w.scale(1+(k.s.v[0]-1)*O[0],1+(k.s.v[1]-1)*O[1],1):w.scale(1+(k.s.v[0]-1)*O,1+(k.s.v[1]-1)*O,1));for(I=0;I<D;I+=1){if(k=S[I].a,O=S[I].s.getMult(M[n].anIndexes[I],E.a[I].s.totalChars),k.sk.propType&&(O.length?w.skewFromAxis(-k.sk.v*O[0],k.sa.v*O[1]):w.skewFromAxis(-k.sk.v*O,k.sa.v*O)),k.r.propType&&(O.length?w.rotateZ(-k.r.v*O[2]):w.rotateZ(-k.r.v*O)),k.ry.propType&&(O.length?w.rotateY(k.ry.v*O[1]):w.rotateY(k.ry.v*O)),k.rx.propType&&(O.length?w.rotateX(k.rx.v*O[0]):w.rotateX(k.rx.v*O)),k.o.propType&&(O.length?z+=(k.o.v*O[0]-z)*O[0]:z+=(k.o.v*O-z)*O),t.strokeWidthAnim&&k.sw.propType&&(O.length?U+=k.sw.v*O[0]:U+=k.sw.v*O),t.strokeColorAnim&&k.sc.propType)for(j=0;j<3;j+=1)O.length?G[j]+=(k.sc.v[j]-G[j])*O[0]:G[j]+=(k.sc.v[j]-G[j])*O;if(t.fillColorAnim&&t.fc){if(k.fc.propType)for(j=0;j<3;j+=1)O.length?H[j]+=(k.fc.v[j]-H[j])*O[0]:H[j]+=(k.fc.v[j]-H[j])*O;k.fh.propType&&(H=O.length?addHueToRGB(H,k.fh.v*O[0]):addHueToRGB(H,k.fh.v*O)),k.fs.propType&&(H=O.length?addSaturationToRGB(H,k.fs.v*O[0]):addSaturationToRGB(H,k.fs.v*O)),k.fb.propType&&(H=O.length?addBrightnessToRGB(H,k.fb.v*O[0]):addBrightnessToRGB(H,k.fb.v*O))}}for(I=0;I<D;I+=1)(k=S[I].a).p.propType&&(O=S[I].s.getMult(M[n].anIndexes[I],E.a[I].s.totalChars),this._hasMaskedPath?O.length?w.translate(0,k.p.v[1]*O[0],-k.p.v[2]*O[1]):w.translate(0,k.p.v[1]*O,-k.p.v[2]*O):O.length?w.translate(k.p.v[0]*O[0],k.p.v[1]*O[1],-k.p.v[2]*O[2]):w.translate(k.p.v[0]*O,k.p.v[1]*O,-k.p.v[2]*O));if(t.strokeWidthAnim&&(W=U<0?0:U),t.strokeColorAnim&&(X="rgb("+Math.round(255*G[0])+","+Math.round(255*G[1])+","+Math.round(255*G[2])+")"),t.fillColorAnim&&t.fc&&($="rgb("+Math.round(255*H[0])+","+Math.round(255*H[1])+","+Math.round(255*H[2])+")"),this._hasMaskedPath){if(w.translate(0,-t.ls),w.translate(0,b[1]*L*.01+r,0),this._pathData.p.v){x=(l.point[1]-p.point[1])/(l.point[0]-p.point[0]);var lt=180*Math.atan(x)/Math.PI;l.point[0]<p.point[0]&&(lt+=180),w.rotate(-lt*Math.PI/180)}w.translate(N,V,0),o-=b[0]*M[n].an*.005,M[n+1]&&q!==M[n+1].ind&&(o+=M[n].an/2,o+=.001*t.tr*t.finalSize)}else{switch(w.translate(i,r,0),t.ps&&w.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:w.translate(M[n].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[M[n].line]),0,0);break;case 2:w.translate(M[n].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[M[n].line])/2,0,0)}w.translate(0,-t.ls),w.translate(B,0,0),w.translate(b[0]*M[n].an*.005,b[1]*L*.01,0),i+=M[n].l+.001*t.tr*t.finalSize}"html"===T?tt=w.toCSS():"svg"===T?tt=w.to2dCSS():et=[w.props[0],w.props[1],w.props[2],w.props[3],w.props[4],w.props[5],w.props[6],w.props[7],w.props[8],w.props[9],w.props[10],w.props[11],w.props[12],w.props[13],w.props[14],w.props[15]],Y=z}A<=n?(R=new LetterProps(Y,W,X,$,tt,et),this.renderedLetters.push(R),A+=1,this.lettersChangedFlag=!0):(R=this.renderedLetters[n],this.lettersChangedFlag=R.update(Y,W,X,$,tt,et)||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&&(r=e[i].ks.k,s+=buildShapeString(r,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;)t[e]===String.fromCharCode(13)||t[e]===String.fromCharCode(3)?(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(){var t,e;this.addDynamicProperty(this);var i=this.textProperty.currentData;this.renderedLetters=createSizedArray(i?i.l.length:0),i.fc?this.layerElement.setAttribute("fill",this.buildColor(i.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),i.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(i.sc)),this.layerElement.setAttribute("stroke-width",i.sw)),this.layerElement.setAttribute("font-size",i.finalSize);var r=this.globalData.fontManager.getFontByName(i.f);if(r.fClass)this.layerElement.setAttribute("class",r.fClass);else{this.layerElement.setAttribute("font-family",r.fFamily);var n=i.fWeight,s=i.fStyle;this.layerElement.setAttribute("font-style",s),this.layerElement.setAttribute("font-weight",n)}this.layerElement.setAttribute("aria-label",i.t);var a,o=i.l||[],l=!!this.globalData.fontManager.chars;e=o.length;var h=this.mHelper,c=this.data.singleShape,u=0,d=0,p=!0,f=.001*i.tr*i.finalSize;if(!c||l||i.sz){var m,g=this.textSpans.length;for(t=0;t<e;t+=1){if(this.textSpans[t]||(this.textSpans[t]={span:null,childSpan:null,glyph:null}),!l||!c||0===t){if(a=g>t?this.textSpans[t].span:createNS(l?"g":"text"),g<=t){if(a.setAttribute("stroke-linecap","butt"),a.setAttribute("stroke-linejoin","round"),a.setAttribute("stroke-miterlimit","4"),this.textSpans[t].span=a,l){var y=createNS("g");a.appendChild(y),this.textSpans[t].childSpan=y}this.textSpans[t].span=a,this.layerElement.appendChild(a)}a.style.display="inherit"}if(h.reset(),c&&(o[t].n&&(u=-f,d+=i.yOffset,d+=p?1:0,p=!1),this.applyTextPropertiesToMatrix(i,h,o[t].line,u,d),u+=o[t].l||0,u+=f),l){var v;if(1===(m=this.globalData.fontManager.getCharData(i.finalText[t],r.fStyle,this.globalData.fontManager.getFontByName(i.f).fFamily)).t)v=new SVGCompElement(m.data,this.globalData,this);else{var x=emptyShapeData;m.data&&m.data.shapes&&(x=this.buildShapeData(m.data,i.finalSize)),v=new SVGShapeElement(x,this.globalData,this)}if(this.textSpans[t].glyph){var _=this.textSpans[t].glyph;this.textSpans[t].childSpan.removeChild(_.layerElement),_.destroy()}this.textSpans[t].glyph=v,v._debug=!0,v.prepareFrame(0),v.renderFrame(),this.textSpans[t].childSpan.appendChild(v.layerElement),1===m.t&&this.textSpans[t].childSpan.setAttribute("transform","scale("+i.finalSize/100+","+i.finalSize/100+")")}else c&&a.setAttribute("transform","translate("+h.props[12]+","+h.props[13]+")"),a.textContent=o[t].val,a.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}c&&a&&a.setAttribute("d","")}else{var b=this.textContainer,S="start";switch(i.j){case 1:S="end";break;case 2:S="middle";break;default:S="start"}b.setAttribute("text-anchor",S),b.setAttribute("letter-spacing",f);var E=this.buildTextContents(i.finalText);for(e=E.length,d=i.ps?i.ps[1]+i.ascent:0,t=0;t<e;t+=1)(a=this.textSpans[t].span||createNS("tspan")).textContent=E[t],a.setAttribute("x",0),a.setAttribute("y",d),a.style.display="inherit",b.appendChild(a),this.textSpans[t]||(this.textSpans[t]={span:null,glyph:null}),this.textSpans[t].span=a,d+=i.finalLineHeight;this.layerElement.appendChild(b)}for(;t<this.textSpans.length;)this.textSpans[t].span.style.display="none",t+=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(this.renderedFrame=this.comp.renderedFrame,t=0;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)){var t,e;this._sizeChanged=!0;var i,r,n,s=this.textAnimator.renderedLetters,a=this.textProperty.currentData.l;for(e=a.length,t=0;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,
20,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(){var t;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var 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){var e;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 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=t.getBaseElement();if(i){for(var r,n=0;n<e;)this.elements[n]&&!0!==this.elements[n]&&this.elements[n].getBaseElement()&&(r=this.elements[n].getBaseElement()),n+=1;r?this.layerElement.insertBefore(i,r):this.layerElement.appendChild(i)}},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=this.tm.v;e===this.data.op&&(e=this.data.op-1),this.renderedFrame=e}var i,r=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),i=r-1;i>=0;i-=1)(this.completeLayers||this.elements[i])&&(this.elements[i].prepareFrame(this.renderedFrame-this.layers[i].st),this.elements[i]._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 n,s,a;e||(n=createNS("svg"),s=createNS("filter"),a=createNS("feColorMatrix"),s.setAttribute("id",t),a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","sRGB"),a.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"),s.appendChild(a),n.appendChild(s),n.setAttribute("id",t+"_svg"),featureSupport.svgLumaHidden&&(n.style.display="none"),r=n,document.body.appendChild(r),e=createTag("canvas"),(i=e.getContext("2d")).filter="url
2(#"+t+")",i.fillStyle="rgba(0,0,0,0)",i.fillRect(0,0,1,1))}return{load:n,get:function(r){return e||n(),e.width=r.width,e.height=r.height,i.filter="url(#"+t+")",e}}};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={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(this.filters=[],e=0;e<r;e+=1){i=null;var n=t.data.ef[e].ty;registeredEffects[n]&&(i=new(0,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){var i;this.data=t,this.element=e,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var 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,e,i,r,n=this.element.finalTransform.mat,s=this.element.canvasContext,a=this.masksProperties.length;for(s.beginPath(),t=0;t<a;t+=1)if("n"!==this.masksProperties[t].mode){var o;this.masksProperties[t].inv&&(s.moveTo(0,0),s.lineTo(this.element.globalData.compSize.w,0),s.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),s.lineTo(0,this.element.globalData.compSize.h),s.lineTo(0,0)),r=this.viewData[t].v,e=n.applyToPointArray(r.v[0][0],r.v[0][1],0),s.moveTo(e[0],e[1]);var l=r._length;for(o=1;o<l;o+=1)i=n.applyToTriplePoints(r.o[o-1],r.i[o],r.v[o]),s.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5]);i=n.applyToTriplePoints(r.o[o-1],r.i[0],r.v[0]),s.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5])}this.element.globalData.renderer.save(!0),s.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=4;"rc"===e.ty?s=5:"el"===e.ty?s=6:"sr"===e.ty&&(s=7),this.sh=ShapePropertyFactory.getShapeProp(t,e,s,t);var a,o=i.length;for(n=0;n<o;n+=1)i[n].closed||(a={transforms:r.addTransformSequence(i[n].transforms),trNodes:[]},this.styledShapes.push(a),i[n].elements.push(a
vendor: 4,451 bytes, line 2
2))}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(){var t;for(this.stack=[],this.cArrPos=0,this.cTr=new Matrix,t=0;t<15;t+=1){var e=new CanvasContext;this.stack[t]=e}this._length=15,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 
2n,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
vendor: 7,056 bytes, line 2
2].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.renderableEffectsManager=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 
vendor: 16,758 bytes, line 2
2n=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(){var t;this._isFirstFrame=!0;var 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,c,u=t.length-1,d=[],p=[],f=[].concat(n);for(s=u;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],f),d.push(e[s].style);else if("gr"===t[s].ty){if(l)for(o=e[s].it.length,a=0;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,f)}else"tr"===t[s].ty?(l||(c=this.createTransformElement(t[s]),e[s]=c),f.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(d),u=p.length,s=0;s<u;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,c=this.globalData.renderer,u=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(c.save(),s=l.elements,"st"===o||"gs"===o?(c.ctxStrokeStyle("st"===o?l.co:l.grd),c.ctxLineWidth(l.wi),c.ctxLineCap(l.lc),c.ctxLineJoin(l.lj),c.ctxMiterLimit(l.ml||0)):c.ctxFillStyle("fl"===o?l.co:l.grd),c.ctxOpacity(l.coOp),"st"!==o&&"gs"!==o&&u.beginPath(),c.ctxTransform(l.preTransforms.finalTransform.props),i=s.length,e=0;e<i;e+=1){for("st"!==o&&"gs"!==o||(u.beginPath(),l.da&&(u.setLineDash(l.da),u.lineDashOffset=l.do)),n=(a=s[e].trNodes).length,r=0;r<n;r+=1)"m"===a[r].t?u.moveTo(a[r].p[0],a[r].p[1]):"c"===a[r].t?u.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]):u.closePath();"st"!==o&&"gs"!==o||(c.ctxStroke(),l.da&&u.setLineDash(this.dashResetter))}"st"!==o&&"gs"!==o&&this.globalData.renderer.ctxFill(l.r),c.restore()}},CVShapeElement.prototype.renderShape=function(t,e,i,r){var n,s;for(s=t,n=e.length-1;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(r=h._length,i=1;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,n=e.style;if(!n.grd||e.g._mdf||e.s._mdf||e.e._mdf||1!==t.t&&(e.h._mdf||e.a._mdf)){var s,a=this.globalData.canvasContext,o=e.s.v,l=e.e.v;if(1===t.t)r=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)),c=Math.atan2(l[1]-o[1],l[0]-o[0]),u=e.h.v;u>=1?u=.99:u<=-1&&(u=-.99);var d=h*u,p=Math.cos(c+e.a.v)*d+o[0],f=Math.sin(c+e.a.v)*d+o[1];r=a.createRadialGradient(p,f,0,o[0],o[1],h)}var m=t.g.p,g=e.g.c,y=1;for(s=0;s<m;s+=1)e.g._hasOpacity&&e.g._collapsable&&(y=e.g.o[2*s+1]),r.addColorStop(g[4*s]/100,"rgba("+g[4*s+1]+","+g[4*s+2]+","+g[4*s+3]+","+y+")");n.grd=r}n.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=this.textProperty.currentData;this.renderedLetters=createSizedArray(t.l?t.l.length:0);var e=!1;t.fc?(e=!0,this.values.fill=this.buildColor(t.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=e;var i=!1;t.sc&&(i=!0,this.values.stroke=this.buildColor(t.sc),this.values.sWidth=t.sw);var r,n,s,a,o,l,h,c,u,d,p,f,m=this.globalData.fontManager.getFontByName(t.f),g=t.l,y=this.mHelper;this.stroke=i,this.values.fValue=t.finalSize+"px "+this.globalData.fontManager.getFontByName(t.f).fFamily,n=t.finalText.length;var v=this.data.singleShape,x=.001*t.tr*t.finalSize,_=0,b=0,S=!0,E=0;for(r=0;r<n;r+=1){a=(s=this.globalData.fontManager.getCharData(t.finalText[r],m.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily))&&s.data||{},y.reset(),v&&g[r].n&&(_=-x,b+=t.yOffset,b+=S?1:0,S=!1),u=(h=a.shapes?a.shapes[0].it:[]).length,y.scale(t.finalSize/100,t.finalSize/100),v&&this.applyTextPropertiesToMatrix(t,y,g[r].line,_,b),p=createSizedArray(u-1);var w=0;for(c=0;c<u;c+=1)if("sh"===h[c].ty){for(l=h[c].ks.k.i.length,d=h[c].ks.k,f=[],o=1;o<l;o+=1)1===o&&f.push(y.applyToX(d.v[0][0],d.v[0][1],0),y.applyToY(d.v[0][0],d.v[0][1],0)),f.push(y.applyToX(d.o[o-1][0],d.o[o-1][1],0),y.applyToY(d.o[o-1][0],d.o[o-1][1],0),y.applyToX(d.i[o][0],d.i[o][1],0),y.applyToY(d.i[o][0],d.i[o][1],0),y.applyToX(d.v[o][0],d.v[o][1],0),y.applyToY(d.v[o][0],d.v[o][1],0));f.push(y.applyToX(d.o[o-1][0],d.o[o-1][1],0),y.applyToY(d.o[o-1][0],d.o[o-1][1],0),y.applyToX(d.i[0][0],d.i[0][1],0),y.applyToY(d.i[0][0],d.i[0][1],0),y.applyToX(d.v[0][0],d.v[0][1],0),y.applyToY(d.v[0][0],d.v[0][1],0)),p[w]=f,w+=1}v&&(_+=g[r].l,_+=x),this.textSpans[E]?this.textSpans[E].elem=p:this.textSpans[E]={elem:p},E+=1}},CVTextElement.prototype.renderInnerContent=function(){var t,e,i,r,n,s;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 a,o=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;e=l.length;var h,c,u=null,d=null,p=null,f=this.globalData.renderer;for(t=0;t<e;t+=1)if(!l[t].n){if((a=o[t])&&(f.save(),f.ctxTransform(a.p),f.ctxOpacity(a.o)),this.fill){for(a&&a.fc?u!==a.fc&&(f.ctxFillStyle(a.fc),u=a.fc):u!==this.values.fill&&(u=this.values.fill,f.ctxFillStyle(this.values.fill)),r=(h=this.textSpans[t].elem).length,this.globalData.canvasContext.beginPath(),i=0;i<r;i+=1)for(s=(c=h[i]).length,this.globalData.canvasContext.moveTo(c[0],c[1]),n=2;n<s;n+=6)this.globalData.canvasContext.bezierCurveTo(c[n],c[n+1],c[n+2],c[n+3],c[n+4],c[n+5]);this.globalData.canvasContext.closePath(),f.ctxFill()}if(this.stroke){for(a&&a.sw?p!==a.sw&&(p=a.sw,f.ctxLineWidth(a.sw)):p!==this.values.sWidth&&(p=this.values.sWidth,f.ctxLineWidth(this.values.sWidth)),a&&a.sc?d!==a.sc&&(d=a.sc,f.ctxStrokeStyle(a.sc)):d!==this.values.stroke&&(d=this.values.stroke,f.ctxStrokeStyle(this.values.stroke)),r=(h=this.textSpans[t].elem).length,this.globalData.canvasContext.beginPath(),i=0;i<r;i+=1)for(s=(c=h[i]).length,this.globalData.canvasContext.moveTo(c[0],c[1]),n=2;n<s;n+=6)this.globalData.canvasContext.bezierCurveTo(c[n],c[n+1],c[n+2],c[n+3],c[n+4],c[n+5]);this.globalData.canvasContext.closePath(),f.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=createTag("canvas");t.width=this.assetData.w,t.height=this.assetData.h;var e,i,r=t.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?e=(i=s)*o:i=(e=n)/o,r.drawImage(this.img,(n-e)/2,(s-i)/2,e,i,0,0,this.assetData.w,this.assetData.h),this.img=t}},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(){this.renderConfig.clearCanvas?this.contextData.reset():this.canvasContext.restore()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(t){this.renderConfig.clearCanvas?(t&&(this.globalData.blendMode="source-over"),this.contextData.restore(t)):this.canvasContext.restore()},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){var i,r,n,s;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 a=this.renderConfig.preserveAspectRatio.split(" "),o=a[1]||"meet",l=a[0]||"xMidYMid",h=l.substr(0,4),c=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)),this.transformCanvas.tx="xMid"===h&&(s<n&&"meet"===o||s>n&&"slice"===o)?(i-this.transformCanvas.w*(r/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===h&&(s<n&&"meet"===o||s>n&&"slice"===o)?(i-this.transformCanvas.w*(r/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.t
vendor: 6,067 bytes, line 2
2y="YMid"===c&&(s>n&&"meet"===o||s<n&&"slice"===o)?(r-this.transformCanvas.h*(i/this.transformCanvas.w))/2*this.renderConfig.dpr:"YMax"===c&&(s>n&&"meet"===o||s<n&&"slice"===o)?(r-this.transformCanvas.h*(i/this.transformCanvas.w))*this.renderConfig.dpr: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.tx=0,this.transformCanvas.ty=0):(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){var i;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 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=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var i,r=this.stack[this.cArrPos];for(i=0;i<16;i+=1)r.transform[i]=e[i];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 2
2,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: 16,384 bytes, line 2
2,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,c,u=[[t[0],r[0]],[t[1],r[1]]],d=0;d<2;++d)s=6*t[d]-12*e[d]+6*i[d],n=-3*t[d]+9*e[d]-9*i[d]+3*r[d],a=3*e[d]-3*t[d],s|=0,a|=0,0==(n|=0)&&0===s||(0===n?(o=-a/s)>0&&o<1&&u[d].push(this.calculateF(o,t,e,i,r,d)):(l=s*s-4*a*n)>=0&&((h=(-s+bmSqrt(l))/(2*n))>0&&h<1&&u[d].push(this.calculateF(h,t,e,i,r,d)),(c=(-s-bmSqrt(l))/(2*n))>0&&c<1&&u[d].push(this.calculateF(c,t,e,i,r,d))));this.shapeBoundingBox.left=bmMin.apply(null,u[0]),this.shapeBoundingBox.top=bmMin.apply(null,u[1]),this.shapeBoundingBox.right=bmMax.apply(null,u[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,u[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))return;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,n,s=this.globalData.fontManager.getFontByName(t.f);if(!this.globalData.fontManager.chars)if(e.fontSize=t.finalSize+"px",e.lineHeight=t.finalSize+"px",s.fClass)this.innerElem.className=s.fClass;else{e.fontFamily=s.fFamily;var a=t.fWeight,o=t.fStyle;e.fontStyle=o,e.fontWeight=a}var l,h,c,u=t.l;n=u.length;var d,p=this.mHelper,f="",m=0;for(r=0;r<n;r+=1){if(this.globalData.fontManager.chars?(this.textPaths[m]?l=this.textPaths[m]:((l=createNS("path")).setAttribute("stroke-linecap",lineCapEnum[1]),l.setAttribute("stroke-linejoin",lineJoinEnum[2]),l.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[m]?c=(h=this.textSpans[m]).children[0]:((h=createTag("div")).style.lineHeight=0,(c=createNS("svg")).appendChild(l),styleDiv(h)))):this.isMasked?l=this.textPaths[m]?this.textPaths[m]:createNS("text"):this.textSpans[m]?(h=this.textSpans[m],l=this.textPaths[m]):(styleDiv(h=createTag("span")),styleDiv(l=createTag("span")),h.appendChild(l)),this.globalData.fontManager.chars){var g,y=this.globalData.fontManager.getCharData(t.finalText[r],s.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily);if(g=y?y.data:null,p.reset(),g&&g.shapes&&g.shapes.length&&(d=g.shapes[0].it,p.scale(t.finalSize/100,t.finalSize/100),f=this.createPathShape(p,d),l.setAttribute("d",f)),this.isMasked)this.innerElem.appendChild(l);else{if(this.innerElem.appendChild(h),g&&g.shapes){document.body.appendChild(c);var v=c.getBBox();c.setAttribute("width",v.width+2),c.setAttribute("height",v.height+2),c.setAttribute("viewBox",v.x-1+" "+(v.y-1)+" "+(v.width+2)+" "+(v.height+2));var x=c.style,_="translate("+(v.x-1)+"px,"+(v.y-1)+"px)";x.transform=_,x.webkitTransform=_,u[r].yOffset=v.y-1}else c.setAttribute("width",1),c.setAttribute("height",1);h.appendChild(c)}}else if(l.textContent=u[r].val,l.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(l);else{this.innerElem.appendChild(h);var b=l.style,S="translate3d(0,"+-t.finalSize/1.2+"px,0)";b.transform=S,b.webkitTransform=S}this.isMasked?this.textSpans[m]=l:this.textSpans[m]=h,this.textSpans[m].style.display="block",this.textPaths[m]=l,m+=1}for(;m<this.textSpans.length;)this.textSpans[m].style.display="none",m+=1},HTextElement.prototype.renderInnerContent=function(){var t;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 e="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";t.transform=e,t.webkitTransform=e}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){var i,r,n,s,a,o=0,l=this.textAnimator.renderedLetters,h=this.textProperty.currentData.l;for(r=h.length,i=0;i<r;i+=1)h[i].n?o+=1:(s=this.textSpans[i],a=this.textPaths[i],n=l[o],o+=1,n._mdf.m&&(this.isMasked?s.setAttribute("transform",n.m):(s.style.webkitTransform=n.m,s.style.transform=n.m)),s.style.opacity=n.o,n.sw&&n._mdf.sw&&a.setAttribute("stroke-width",n.sw),n.sc&&n._mdf.sc&&a.setAttribute("stroke",n.sc),n.fc&&n._mdf.fc&&(a.setAttribute("fill",n.fc),a.style.color=n.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var c=this.innerElem.getBBox();if(this.currentBBox.w!==c.width&&(this.currentBBox.w=c.width,this.svgElement.setAttribute("width",c.width)),this.currentBBox.h!==c.height&&(this.currentBBox.h=c.height,this.svgElement.setAttribute("height",c.height)),this.currentBBox.w!==c.width+2||this.currentBBox.h!==c.height+2||this.currentBBox.x!==c.x-1||this.currentBBox.y!==c.y-1){this.currentBBox.w=c.width+2,this.currentBBox.h=c.height+2,this.currentBBox.x=c.x-1,this.currentBBox.y=c.y-1,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),t=this.svgElement.style;var u="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";t.transform=u,t.webkitTransform=u}}}},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,e,i=this._isFirstFrame;if(this.hierarchy)for(e=this.hierarchy.length,t=0;t<e;t+=1)i=this.hierarchy[t].finalTransform.mProp._mdf||i;if(i||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(t=e=this.hierarchy.length-1;t>=0;t-=1){var r=this.hierarchy[t].finalTransform.mProp;this.mat.translate(-r.p.v[0],-r.p.v[1],r.p.v[2]),this.mat.rotateX(-r.or.v[0]).rotateY(-r.or.v[1]).rotateZ(r.or.v[2]),this.mat.rotateX(-r.rx.v).rotateY(-r.ry.v).rotateZ(r.rz.v),this.mat.scale(1/r.s.v[0],1/r.s.v[1],1/r.s.v[2]),this.mat.translate(r.a.v[0],r.a.v[1],r.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 n;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]];var s=Math.sqrt(Math.pow(n[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 c=!this._prevMat.equals(this.mat);if((c||this.pe._mdf)&&this.comp.threeDElements){var u,d,p;for(e=this.comp.threeDElements.length,t=0;t<e;t+=1)if("3d"===(u=this.comp.threeDElements[t]).type){if(c){var f=this.mat.toCSS();(p=u.container.style).transform=f,p.webkitTransform=f}this.pe._mdf&&((d=u.perspectiveElem.style).perspective=this.pe.v+"px",d.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")),e.endPos=Math.max(e.endPos,t)):("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(){var t;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var 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,"+
vendor: 9,058 bytes, line 2
2e+",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(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},_typeof$2(t)}function seedRandom(t,e){var i,r=this,n=256,s="random",a=e.pow(n,6),o=e.pow(2,52),l=2*o,h=255;function c(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=h&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=h&s+1],i=i*n+o[h&(o[s]=o[a=h&a+e])+(o[a]=e)];return r.i=s,r.j=a,i}}function u(t,e){return e.i=t.i,e.j=t.j,e.S=t.S.slice(),e}function d(t,e){var i,r=[],n=_typeof$2(t);if(e&&"object"==n)for(i in t)try{r.push(d(t[i],e-1))}catch(t){}return r.length?r:"string"==n?t:t+"\0"}function p(t,e){for(var i,r=t+"",n=0;n<r.length;)e[h&n]=h&(i^=19*e[h&n])+r.charCodeAt(n++);return f(e)}function f(t){return String.fromCharCode.apply(0,t)}e["seed"+s]=function(h,m,g){var y=[],v=p(d((m=!0===m?{entropy:!0}:m||{}).entropy?[h,f(t)]:null===h?function(){try{i;var e=new Uint8Array(n);return(r.crypto||r.msCrypto).getRandomValues(e),f(e)}catch(e){var s=r.navigator,a=s&&s.plugins;return[+new Date,r,a,r.screen,f(t)]}}():h,3),y),x=new c(y),_=function(){for(var t=x.g(6),e=a,i=0;t<o;)t=(t+i)*n,e*=n,i=x.g(1);for(;t>=l;)t/=2,e/=2,i>>>=1;return(t+i)/e};return _.int32=function(){return 0|x.g(4)},_.quick=function(){return x.g(4)/4294967296},_.double=_,p(f(x.S),t),(m.pass||g||function(t,i,r,n){return n&&(n.S&&u(n,x),t.state=function(){return u(x,{})}),r?(e[s]=t,i):t})(_,v,"global"in m?m.global:this==e,m.state)},p(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},_typeof$1(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))[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))[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(n=t.length,i=createTypedArray("float32",n),r=0;r<n;r+=1)i[r]=t[r]*e;return i}if(isNumerable(s,t)&&$bm_isInstanceOfArray(e)){for(n=e.length,i=createTypedArray("float32",n),r=0;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(n=t.length,i=createTypedArray("float32",n),r=0;r<n;r+=1)i[r]=t[r]/e;return i}if(isNumerable(s,t)&&$bm_isInstanceOfArray(e)){for(n=e.length,i=createTypedArray("float32",n),r=0;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);var i;e||(e=helperLengthArray);var 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+6*(e-t)*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=i;i=e,e=s}if(t<=e)return r;if(t>=i)return n;var a,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(a=0;a<l;a+=1)h[a]=r[a]+(n[a]-r[a])*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)}
vendor: 6,004 bytes, line 2
2function createPath(t,e,i,r){var n,s=t.length,a=shapePool.newElement();a.setPathData(!!r,s);var o,l,h=[0,0];for(n=0;n<s;n+=1)o=e&&e[n]?e[n]:h,l=i&&i[n]?i[n]:h,a.setTripleAt(t[n][0],t[n][1],l[0]+t[n][0],l[1]+t[n][1],o[0]+t[n][0],o[1]+t[n][1],n,!0);return a}function initiateExpression(elem,data,property){function noOp(t){return t}if(!elem.globalData.renderConfig.runExpressions)return noOp;var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=-1!==val.indexOf("random"),elemType=elem.data.ty,transform,$bm_transform,content,effect,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,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,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),a=Math.floor(5*time);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=5*time,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&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),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),time,velocity,value,text,textIndex,textTotal,selectorValue;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){var e,i,r;if(!data.k.length||"number"==typeof data.k[0])throw new Error("The property has no keyframe at index "+t);t-=1,e={time:data.k[t].t/elem.comp.globalData.frameRate,value:[]};var n=Object.prototype.hasOwnProperty.call(data.k[t],"s")?data.k[t].s:data.k[t-1].e;for(r=n.length,i=0;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),parent,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||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,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,numKe
vendor: 13,051 bytes, line 2
2ys,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={initExpressions:function(t){var e=0,i=[];t.renderer.compInterface=CompExpressionInterface(t.renderer),t.renderer.globalData.projectInterface.registerComposition(t.renderer),t.renderer.globalData.pushExpression=function(){e+=1},t.renderer.globalData.popExpression=function(){0==(e-=1)&&function(){var t,e=i.length;for(t=0;t<e;t+=1)i[t].release();i.length=0}()},t.renderer.globalData.registerExpressionProperty=function(t){-1===i.indexOf(t)&&i.push(t)}}};return 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(){return t}return function(n){return n?"unidimensional"===n.propType?function(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}}(n):function(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}}(n):r}}(),TransformExpressionInterface=function(t){function e(t){switch(t){case"scale":case"Scale":case"ADBE Scale":case 6:return e.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return e.rotation;case"ADBE Rotate X":return e.xRotation;case"ADBE Rotate Y":return e.yRotation;case"position":case"Position":case"ADBE Position":case 2:return e.position;case"ADBE Position_0":return e.xPosition;case"ADBE Position_1":return e.yPosition;case"ADBE Position_2":return e.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return e.anchorPoint;case"opacity":case"Opacity":case 11:return e.opacity;default:return null}}var i,r,n,s;return Object.defineProperty(e,"rotation",{get:ExpressionPropertyInterface(t.r||t.rz)}),Object.defineProperty(e,"zRotation",{get:ExpressionPropertyInterface(t.rz||t.r)}),Object.defineProperty(e,"xRotation",{get:ExpressionPropertyInterface(t.rx)}),Object.defineProperty(e,"yRotation",{get:ExpressionPropertyInterface(t.ry)}),Object.defineProperty(e,"scale",{get:ExpressionPropertyInterface(t.s)}),t.p?s=ExpressionPropertyInterface(t.p):(i=ExpressionPropertyInterface(t.px),r=ExpressionPropertyInterface(t.py),t.pz&&(n=ExpressionPropertyInterface(t.pz))),Object.defineProperty(e,"position",{get:function(){return t.p?s():[i(),r(),n?n():0]}}),Object.defineProperty(e,"xPosition",{get:ExpressionPropertyInterface(t.px)}),Object.defineProperty(e,"yPosition",{get:ExpressionPropertyInterface(t.py)}),Object.defineProperty(e,"zPosition",{get:ExpressionPropertyInterface(t.pz)}),Object.defineProperty(e,"anchorPoint",{get:ExpressionPropertyInterface(t.a)}),Object.defineProperty(e,"opacity",{get:ExpressionPropertyInterface(t.o)}),Object.defineProperty(e,"skew",{get:ExpressionPropertyInterface(t.sk)}),Object.defineProperty(e,"skewAxis",{get:ExpressionPropertyInterface(t.sa)}),Object.defineProperty(e,"orientation",{get:ExpressionPropertyInterface(t.or)}),e},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)}return e.inversePoint(t)}function l(){return[1,1,1,1]}return function(h){var c;function u(t){switch(t){case"ADBE Root Vectors Group":case"Contents":case 2:return u.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return c;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return u.effect;case"ADBE Text Properties":return u.textInterface;default:return null}}u.getMatrix=t,u.invertPoint=a,u.applyPoint=s,u.toWorld=i,u.toWorldVec=e,u.fromWorld=n,u.fromWorldVec=r,u.toComp=i,u.fromComp=o,u.sampleImage=l,u.sourceRectAtTime=h.sourceRectAtTime.bind(h),u._elem=h;var d=getDescriptor(c=TransformExpressionInterface(h.finalTransform.mProp),"anchorPoint");return Object.defineProperties(u,{hasParent:{get:function(){return h.hierarchy.length}},parent:{get:function(){return h.hierarchy[0].layerInterface}},rotation:getDescriptor(c,"rotation"),scale:getDescriptor(c,"scale"),position:getDescriptor(c,"position"),opacity:getDescriptor(c,"opacity"),anchorPoint:d,anchor_point:d,transform:{get:function(){return c}},active:{get:function(){return h.isInRange}}}),u.startTime=h.data.st,u.index=h.data.ind,u.source=h.data.refId,u.height=0===h.data.ty?h.data.h:100,u.width=0===h.data.ty?h.data.w:100,u.inPoint=h.data.ip/h.comp.globalData.frameRate,u.outPoint=h.data.op/h.comp.globalData.frameRate,u._name=h.data.nm,u.registerMaskInterface=function(t){u.mask=new MaskManagerInterface(t,h)},u.registerEffectsInterface=function(t){u.effect=t},u}}(),propertyGroupFactory=function(t,e){return function(i){return(i=void 0===i?1:i)<=0?t:e(i-1)}},PropertyInterface=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)return 5===e[r].ty?h[r]:h[r]();r+=1}throw new Error}var o,l=propertyGroupFactory(a,n),h=[],c=i.ef.length;for(o=0;o<c;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);return t.p.setGroupProperty&&t.p.setGroupProperty(PropertyInterface("",r)),function(){return 10===e?i.comp.compInterface(t.p.v):n()}}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(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,a,d){var p,f=[],m=t?t.length:0;for(p=0;p<m;p+=1)"gr"===t[p].ty?f.push(e(t[p],a[p],d)):"fl"===t[p].ty?f.push(i(t[p],a[p],d)):"st"===t[p].ty?f.push(n(t[p],a[p],d)):"tm"===t[p].ty?f.push(s(t[p],a[p],d)):"tr"===t[p].ty||("el"===t[p].ty?f.push(o(t[p],a[p],d)):"sr"===t[p].ty?f.push(l(t[p],a[p],d)):"sh"===t[p].ty?f.push(ShapePathInterface(t[p],a[p],d)):"rc"===t[p].ty?f.push(h(t[p],a[p],d)):"rd"===t[p].ty?f.push(c(t[p],a[p],d)):"rp"===t[p].ty?f.push(u(t[p],a[p],d)):"gf"===t[p].ty?f.push(r(t[p],a[p],d)):f.push((t[p],a[p],function(){return null})));return f}function e(e,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=function(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 o=a(e.it[e.it.length-1],i.it[i.it.length-1],s.propertyGroup);return s.transform=o,s.propertyIndex=e.cix,s._name=e.nm,s}(e,i,n.propertyGroup),o=a(e.it[e.it.length-1],i.it[i.it.length-1],n.propertyGroup);return n.content=s,n.transform=o,Object.defineProperty(n,"_name",{get:function(){return e.nm}}),n.numProperties=e.np,n.propertyIndex=e.ix,n.nm=e.nm,n.mn=e.mn,n}function i(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 r(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 n(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 s(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}
vendor: 17,909 bytes, line 2
2var 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 a(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 o(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 l(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?t.is&&t.is.ix===e?r.innerRoundness:null:r.innerRadius}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 h(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 c(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 u(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}return s.propertyGroup=propertyGroupFactory(s,(function(){return r})),n=t(e,i,s.propertyGroup),s.numProperties=n.length,s._name="Contents",s}}(),TextExpressionInterface=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},_typeof(t)}var FootageInterface=(dataInterfaceFactory=function(t){function e(t){return"Outline"===t?e.outlineInterface():null}return e._name="Outline",e.outlineInterface=function(t){var e="",i=t.getFootageData();function r(t){if(i[t])return e=t,"object"===_typeof(i=i[t])?r:i;var n=t.indexOf(e);if(-1!==n){var s=parseInt(t.substr(n+e.length),10);return"object"===_typeof(i=i[s])?r:i}return""}return function(){return e="",i=t.getFootageData(),r}}(t),e},function(t){function e(t){return"Data"===t?e.dataInterface:null}return e._name="Data",e.dataInterface=dataInterfaceFactory(t),e}),dataInterfaceFactory,interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(t){return interfaces[t]||null}var expressionHelpers={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=this.getValueAtTime(t),i=this.getValueAtTime(t+-.01),r=0;if(e.length){var n;for(n=0;n<e.length;n+=1)r+=Math.pow(i[n]-e[n],2);r=100*Math.sqrt(r)}else r=0;return r},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(e=createTypedArray("float32",n.length),i=0;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,c=h[h.length-1].t;if(l<=c)return this.pv;if(i?n=c-(r=e?Math.abs(c-this.elem.comp.globalData.frameRate*e):Math.max(0,c-this.elem.data.ip)):((!e||e>h.length-1)&&(e=h.length-1),r=c-(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 u=this.getValueAtTime(n/this.comp.globalData.frameRate,0),d=this.getValueAtTime(c/this.comp.globalData.frameRate,0),p=this.getValueAtTime(((l-n)%r+n)/this.comp.globalData.frameRate,0),f=Math.floor((l-n)/r);if(this.pv.length){for(a=(o=new Array(u.length)).length,s=0;s<a;s+=1)o[s]=(d[s]-u[s])*f+p[s];return o}return(d-u)*f+p}if("continue"===t){var m=this.getValueAtTime(c/this.comp.globalData.frameRate,0),g=this.getValueAtTime((c-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(a=(o=new Array(m.length)).length,s=0;s<a;s+=1)o[s]=m[s]+(m[s]-g[s])*((l-c)/this.comp.globalData.frameRate)/5e-4;return o}return m+(l-c)/.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,c=h[0].t;if(l>=c)return this.pv;if(i?n=c+(r=e?Math.abs(this.elem.comp.globalData.frameRate*e):Math.max(0,this.elem.data.op-c)):((!e||e>h.length-1)&&(e=h.length-1),r=(n=h[e].t)-c),"pingpong"===t){if(Math.floor((c-l)/r)%2==0)return this.getValueAtTime(((c-l)%r+c)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var u=this.getValueAtTime(c/this.comp.globalData.frameRate,0),d=this.getValueAtTime(n/this.comp.globalData.frameRate,0),p=this.getValueAtTime((r-(c-l)%r+c)/this.comp.globalData.frameRate,0),f=Math.floor((c-l)/r)+1;if(this.pv.length){for(a=(o=new Array(u.length)).length,s=0;s<a;s+=1)o[s]=p[s]-(d[s]-u[s])*f;return o}return p-(d-u)*f}if("continue"===t){var m=this.getValueAtTime(c/this.comp.globalData.frameRate,0),g=this.getValueAtTime((c+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(a=(o=new Array(m.length)).length,s=0;s<a;s+=1)o[s]=m[s]+(m[s]-g[s])*(c-l)/.001;return o}return m+(m-g)*(c-l)/.001}}return this.getValueAtTime((r-((c-l)%r+c))/this.comp.globalData.frameRate,0)}function i(t,e){if(!this.k)return this.pv;if(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=e>1?(n+t-s)/(e-1):1,o=0,l=0;for(i=this.pv.length?createTypedArray("float32",this.pv.length):0;o<e;){if(r=this.getValueAtTime(s+o*a),this.pv.length)for(l=0;l<this.pv.length;l+=1)i[l]+=r[l];else i+=r;o+=1}if(this.pv.length)for(l=0;l<this.pv.length;l+=1)i[l]/=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),c=this.or.getValueAtTime(t);e.rotateZ(-o*this.rz.mult).rotateY(l*this.ry.mult).rotateX(h*this.rx.mult).rotateZ(-c[2]*this.or.mult).rotateY(c[1]*this.or.mult).rotateX(c[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var u=this.px.getValueAtTime(t),d=this.py.getValueAtTime(t);if(this.data.p.z){var p=this.pz.getValueAtTime(t);e.translate(u*this.px.mult,d*this.py.mult,-p*this.pz.mult)}else e.translate(u*this.px.mult,d*this.py.mult,0)}else{var f=this.p.getValueAtTime(t);e.translate(f[0]*this.p.mult,f[1]*this.p.mult,-f[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;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 c=0;return 0!==s&&(c=createTypedArray("float32",1===n.a?n.k[0].s.length:n.k.length)),h._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:c},expressionHelpers.searchExpressions(r,n,h),h.k&&l.addDynamicProperty(h),h};var o=ShapePropertyFactory.getConstructorFunction(),l=ShapePropertyFactory.getKeyframedConstructorFunction();function h(){}h.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)o[i]="i"===t||"o"===t?[s[i][0]-a[i][0],s[i][1]-a[i][1]]:[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=this.v;void 0!==e&&(i=this.getValueAtTime(e,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(i));for(var r,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 c=o,u=i.c&&o===l-1?0:o+1,d=(a-h)/s[o].addedLength;r=bez.getPointInSegment(i.v[c],i.v[u],i.o[c],i.i[u],d,s[o]);break}h+=s[o].addedLength,o+=1}return r||(r=i.c?[i.v[0][0],i.v[0][1]]:[i.v[i._length-1][0],i.v[i._length-1][1]]),r},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([h],o),extendPrototype([h],l),l.prototype.getValueAtTime=function(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},l.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(){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=function(){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}}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");
vendor: 5,079 bytes, line 2
2s.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 c=createNS("feComposite");c.setAttribute("in",r+"_drop_shadow_3"),c.setAttribute("in2",r+"_drop_shadow_2"),c.setAttribute("operator","in"),c.setAttribute("result",r+"_drop_shadow_4"),t.appendChild(c);var u=this.createMergeNode(r,[r+"_drop_shadow_4",n]);t.appendChild(u)}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=1+(i=this.filterManager.effectElements[0].p.v-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){var e;this.initialized||this.initialize();var i,r,n=this.paths.length;for(e=0;e<n;
vendor: 4,652 bytes, line 2
2e+=1)if(-1!==this.paths[e].m&&(i=this.elem.maskManager.viewData[this.paths[e].m],r=this.paths[e].p,(t||this.filterManager._mdf||i.prop._mdf)&&r.setAttribute("d",i.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||i.prop._mdf)){var s;if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){var a=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),o=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),l=r.getTotalLength();s="0 0 0 "+l*a+" ";var h,c=l*(o-a),u=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01,d=Math.floor(c/u);for(h=0;h<d;h+=1)s+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";s+="0 "+10*l+" 0 0"}else s="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;r.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 p=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*p[0])+","+bmFloor(255*p[1])+","+bmFloor(255*p[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=Math.min(t,e),h=Math.max(t,e),c=Array.call(null,{length:256}),u=0,d=n-r,p=e-t;o<=256;)a=(s=o/256)<=l?p<0?n:r:s>=h?p<0?r:n:r+d*Math.pow((s-t)/p,1/i),c[u]=a,u+=1,o+=256/255;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);
vendor: 4,219 bytes, line 2
2this.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=t.layerElement.parentNode;if(i){for(var r,n=i.children,s=0,a=n.length;s<a&&n[s]!==t.layerElement;)s+=1;s<=a-2&&(r=n[s+1]);var o=createNS("use");o.setAttribute("href","#"+e),r?i.insertBefore(o,r):i.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*this.filterManager.effectElements[0].p.v,i=this.filterManager.effectElements[1].p.v,r=3==i?0:e,n=2==i?0:e;this.feGaussianBlur.setAttribute("stdDeviation",r+" "+n);var s=1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",s)}},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},module.exports=factory())},151:function(){}
vendor: 5,698 bytes, line 2
2,859:function(t,e,i){var r="function"==typeof Map&&Map.prototype,n=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,s=r&&n&&"function"==typeof n.get?n.get:null,a=r&&Map.prototype.forEach,o="function"==typeof Set&&Set.prototype,l=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,h=o&&l&&"function"==typeof l.get?l.get:null,c=o&&Set.prototype.forEach,u="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,d="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,p="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,f=Boolean.prototype.valueOf,m=Object.prototype.toString,g=Function.prototype.toString,y=String.prototype.match,v=String.prototype.slice,x=String.prototype.replace,_=String.prototype.toUpperCase,b=String.prototype.toLowerCase,S=RegExp.prototype.test,E=Array.prototype.concat,w=Array.prototype.join,T=Array.prototype.slice,A=Math.floor,M="function"==typeof BigInt?BigInt.prototype.valueOf:null,P=Object.getOwnPropertySymbols,C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,k="function"==typeof Symbol&&"object"==typeof Symbol.iterator,I="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,D=Object.prototype.propertyIsEnumerable,R=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function O(t,e){if(t===1/0||t===-1/0||t!=t||t&&t>-1e3&&t<1e3||S.call(/e/,e))return e;var i=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var r=t<0?-A(-t):A(t);if(r!==t){var n=String(r),s=v.call(e,n.length+1);return x.call(n,i,"$&_")+"."+x.call(x.call(s,/([0-9]{3})/g,"$&_"),/_$/,"")}}return x.call(e,i,"$&_")}var L=i(634),F=L.custom,B=U(F)?F:null;function N(t,e,i){var r="double"===(i.quoteStyle||e)?'"':"'";return r+t+r}function V(t){return x.call(String(t),/"/g,"&quot;")}function z(t){return!("[object Array]"!==W(t)||I&&"object"==typeof t&&I in t)}function G(t){return!("[object RegExp]"!==W(t)||I&&"object"==typeof t&&I in t)}function U(t){if(k)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!C)return!1;try{return C.call(t),!0}catch(t){}return!1}t.exports=function t(e,r,n,o){var l=r||{};if(j(l,"quoteStyle")&&"single"!==l.quoteStyle&&"double"!==l.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(j(l,"maxStringLength")&&("number"==typeof l.maxStringLength?l.maxStringLength<0&&l.maxStringLength!==1/0:null!==l.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var m=!j(l,"customInspect")||l.customInspect;if("boolean"!=typeof m&&"symbol"!==m)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(j(l,"indent")&&null!==l.indent&&"\t"!==l.indent&&!(parseInt(l.indent,10)===l.indent&&l.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(j(l,"numericSeparator")&&"boolean"!=typeof l.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var _=l.numericSeparator;if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return $(e,l);if("number"==typeof e){if(0===e)return 1/0/e>0?"0":"-0";var S=String(e);return _?O(e,S):S}if("bigint"==typeof e){var A=String(e)+"n";return _?O(e,A):A}var P=void 0===l.depth?5:l.depth;if(void 0===n&&(n=0),n>=P&&P>0&&"object"==typeof e)return z(e)?"[Array]":"[Object]";var F,H=function(t,e){var i;if("\t"===t.indent)i="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;i=w.call(Array(t.indent+1)," ")}return{base:i,prev:w.call(Array(e+1),i)}}(l,n);if(void 0===o)o=[];else if(X(o,e)>=0)return"[Circular]";function Y(e,i,r){if(i&&(o=T.call(o)).push(i),r){var s={depth:l.depth};return j(l,"quoteStyle")&&(s.quoteStyle=l.quoteStyle),t(e,s,n+1,o)}return t(e,l,n+1,o)}if("function"==typeof e&&!G(e)){var tt=function(t){if(t.name)return t.name;var e=y.call(g.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}(e),et=Q(e,Y);return"[Function"+(tt?": "+tt:" (anonymous)")+"]"+(et.length>0?" { "+w.call(et,", ")+" }":"")}if(U(e)){var it=k?x.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):C.call(e);return"object"!=typeof e||k?it:q(it)}if((F=e)&&"object"==typeof F&&("undefined"!=typeof HTMLElement&&F instanceof HTMLElement||"string"==typeof F.nodeName&&"function"==typeof F.getAttribute)){for(var rt="<"+b.call(String(e.nodeName)),nt=e.attributes||[],st=0;st<nt.length;st++)rt+=" "+nt[st].name+"="+N(V(nt[st].value),"double",l);return rt+=">",e.childNodes&&e.childNodes.length&&(rt+="..."),rt+"</"+b.call(String(e.nodeName))+">"}if(z(e)){if(0===e.length)return"[]";var at=Q(e,Y);return H&&!function(t){for(var e=0;e<t.length;e++)if(X(t[e],"\n")>=0)return!1;return!0}(at)?"["+J(at,H)+"]":"[ "+w.call(at,", ")+" ]"}if(function(t){return!("[object Error]"!==W(t)||I&&"object"==typeof t&&I in t)}(e)){var ot=Q(e,Y);return"cause"in Error.prototype||!("cause"in e)||D.call(e,"cause")?0===ot.length?"["+String(e)+"]":"{ ["+String(e)+"] "+w.call(ot,", ")+" }":"{ ["+String(e)+"] "+w.call(E.call("[cause]: "+Y(e.cause),ot),", ")+" }"}if("object"==typeof e&&m){if(B&&"function"==typeof e[B]&&L)return L(e,{depth:P-n});if("symbol"!==m&&"function"==typeof e.inspect)return e.inspect()}if(function(t){if(!s||!t||"object"!=typeof t)return!1;try{s.call(t);try{h.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}(e)){var lt=[];
vendor: 5,856 bytes, line 2
2return a&&a.call(e,(function(t,i){lt.push(Y(i,e,!0)+" => "+Y(t,e))})),Z("Map",s.call(e),lt,H)}if(function(t){if(!h||!t||"object"!=typeof t)return!1;try{h.call(t);try{s.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}(e)){var ht=[];return c&&c.call(e,(function(t){ht.push(Y(t,e))})),Z("Set",h.call(e),ht,H)}if(function(t){if(!u||!t||"object"!=typeof t)return!1;try{u.call(t,u);try{d.call(t,d)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}(e))return K("WeakMap");if(function(t){if(!d||!t||"object"!=typeof t)return!1;try{d.call(t,d);try{u.call(t,u)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}(e))return K("WeakSet");if(function(t){if(!p||!t||"object"!=typeof t)return!1;try{return p.call(t),!0}catch(t){}return!1}(e))return K("WeakRef");if(function(t){return!("[object Number]"!==W(t)||I&&"object"==typeof t&&I in t)}(e))return q(Y(Number(e)));if(function(t){if(!t||"object"!=typeof t||!M)return!1;try{return M.call(t),!0}catch(t){}return!1}(e))return q(Y(M.call(e)));if(function(t){return!("[object Boolean]"!==W(t)||I&&"object"==typeof t&&I in t)}(e))return q(f.call(e));if(function(t){return!("[object String]"!==W(t)||I&&"object"==typeof t&&I in t)}(e))return q(Y(String(e)));if("undefined"!=typeof window&&e===window)return"{ [object Window] }";if(e===i.g)return"{ [object globalThis] }";if(!function(t){return!("[object Date]"!==W(t)||I&&"object"==typeof t&&I in t)}(e)&&!G(e)){var ct=Q(e,Y),ut=R?R(e)===Object.prototype:e instanceof Object||e.constructor===Object,dt=e instanceof Object?"":"null prototype",pt=!ut&&I&&Object(e)===e&&I in e?v.call(W(e),8,-1):dt?"Object":"",ft=(ut||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(pt||dt?"["+w.call(E.call([],pt||[],dt||[]),": ")+"] ":"");return 0===ct.length?ft+"{}":H?ft+"{"+J(ct,H)+"}":ft+"{ "+w.call(ct,", ")+" }"}return String(e)};var H=Object.prototype.hasOwnProperty||function(t){return t in this};function j(t,e){return H.call(t,e)}function W(t){return m.call(t)}function X(t,e){if(t.indexOf)return t.indexOf(e);for(var i=0,r=t.length;i<r;i++)if(t[i]===e)return i;return-1}function $(t,e){if(t.length>e.maxStringLength){var i=t.length-e.maxStringLength,r="... "+i+" more character"+(i>1?"s":"");return $(v.call(t,0,e.maxStringLength),e)+r}return N(x.call(x.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Y),"single",e)}function Y(t){var e=t.charCodeAt(0),i={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return i?"\\"+i:"\\x"+(e<16?"0":"")+_.call(e.toString(16))}function q(t){return"Object("+t+")"}function K(t){return t+" { ? }"}function Z(t,e,i,r){return t+" ("+e+") {"+(r?J(i,r):w.call(i,", "))+"}"}function J(t,e){if(0===t.length)return"";var i="\n"+e.prev+e.base;return i+w.call(t,","+i)+"\n"+e.prev}function Q(t,e){var i=z(t),r=[];if(i){r.length=t.length;for(var n=0;n<t.length;n++)r[n]=j(t,n)?e(t[n],t):""}var s,a="function"==typeof P?P(t):[];if(k){s={};for(var o=0;o<a.length;o++)s["$"+a[o]]=a[o]}for(var l in t)j(t,l)&&(i&&String(Number(l))===l&&l<t.length||k&&s["$"+l]instanceof Symbol||(S.call(/[^\w$]/,l)?r.push(e(l,t)+": "+e(t[l],t)):r.push(l+": "+e(t[l],t))));if("function"==typeof P)for(var h=0;h<a.length;h++)D.call(t,a[h])&&r.push("["+e(a[h])+"]: "+e(t[a[h]],t));return r}},655:function(t,e,i){var r;t=i.nmd(t),function(n){e&&e.nodeType,t&&t.nodeType;var s="object"==typeof i.g&&i.g;s.global!==s&&s.window!==s&&s.self;var a,o=2147483647,l=36,h=26,c=38,u=700,d=/^xn--/,p=/[^\x20-\x7E]/,f=/[\x2E\u3002\uFF0E\uFF61]/g,m={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},g=l-1,y=Math.floor,v=String.fromCharCode;function x(t){throw new RangeError(m[t])}function _(t,e){for(var i=t.length,r=[];i--;)r[i]=e(t[i]);return r}function b(t,e){var i=t.split("@"),r="";return i.length>1&&(r=i[0]+"@",t=i[1]),r+_((t=t.replace(f,".")).split("."),e).join(".")}function S(t){for(var e,i,r=[],n=0,s=t.length;n<s;)(e=t.charCodeAt(n++))>=55296&&e<=56319&&n<s?56320==(64512&(i=t.charCodeAt(n++)))?r.push(((1023&e)<<10)+(1023&i)+65536):(r.push(e),n--):r.push(e);return r}function E(t){return _(t,(function(t){var e="";return t>65535&&(e+=v((t-=65536)>>>10&1023|55296),t=56320|1023&t),e+v(t)})).join("")}function w(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function T(t,e,i){var r=0;for(t=i?y(t/u):t>>1,t+=y(t/e);t>g*h>>1;r+=l)t=y(t/g);return y(r+(g+1)*t/(t+c))}function A(t){var e,i,r,n,s,a,c,u,d,p,f,m=[],g=t.length,v=0,_=128,b=72;for((i=t.lastIndexOf("-"))<0&&(i=0),r=0;r<i;++r)t.charCodeAt(r)>=128&&x("not-basic"),m.push(t.charCodeAt(r));for(n=i>0?i+1:0;n<g;){for(s=v,a=1,c=l;n>=g&&x("invalid-input"),((u=(f=t.charCodeAt(n++))-48<10?f-22:f-65<26?f-65:f-97<26?f-97:l)>=l||u>y((o-v)/a))&&x("overflow"),v+=u*a,!(u<(d=c<=b?1:c>=b+h?h:c-b));c+=l)a>y(o/(p=l-d))&&x("overflow"),a*=p;b=T(v-s,e=m.length+1,0==s),y(v/e)>o-_&&x("overflow"),_+=y(v/e),v%=e,m.splice(v++,0,_)}return E(m)}function M(t){var e,i,r,n,s,a,c,u,d,p,f,m,g,_,b,E=[];for(m=(t=S(t)).length,e=128,i=0,s=72,a=0;a<m;++a)(f=t[a])<128&&E.push(v(f));for(r=n=E.length,n&&E.push("-");r<m;){for(c=o,a=0;a<m;++a)(f=t[a])>=e&&f<c&&(c=f);for(c-e>y((o-i)/(g=r+1))&&x("overflow"),i+=(c-e)*g,e=c,a=0;a<m;++a)if((f=t[a])<e&&++i>o&&x("overflow"),f==e){for(u=i,d=l;!(u<(p=d<=s?1:d>=s+h?h:d-s));d+=l)b=u-p,_=l-p,E.push(v(w(p+b%_,0))),u=y(b/_);E.push(v(w(u,0))),s=T(i,g,r==n),i=0,++r}++i,++e}return E.join("")}a={version:"1.4.1",ucs2:{decode:S,encode:E},decode:A,encode:M,toASCII:function(t){return b(t,(function(t){return p.test(t)?"xn--"+M(t):t}))},toUnicode:function(t){return b(t,(function(t){return d.test(t)?A(t.slice(4).toLowerCase()):t}))}},void 0===(r=function(){return a}.call(e,i,e,t))||(t.exports=r)}()},765:function(t){"use strict";var e=String.prototype.replace,i=/%20/g,r="RFC3986";t.exports={default:r,formatters:{RFC1738:function(t){return e.call(t,i,"+")}
vendor: 1,796 bytes, line 2
2,RFC3986:function(t){return String(t)}},RFC1738:"RFC1738",RFC3986:r}},373:function(t,e,i){"use strict";var r=i(636),n=i(642),s=i(765);t.exports={formats:s,parse:n,stringify:r}},642:function(t,e,i){"use strict";var r=i(720),n=Object.prototype.hasOwnProperty,s=Array.isArray,a={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:r.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},o=function(t){return t.replace(/&#(\d+);/g,(function(t,e){return String.fromCharCode(parseInt(e,10))}))},l=function(t,e){return t&&"string"==typeof t&&e.comma&&t.indexOf(",")>-1?t.split(","):t},h=function(t,e,i,r){if(t){var s=i.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/g,o=i.depth>0&&/(\[[^[\]]*])/.exec(s),h=o?s.slice(0,o.index):s,c=[];if(h){if(!i.plainObjects&&n.call(Object.prototype,h)&&!i.allowPrototypes)return;c.push(h)}for(var u=0;i.depth>0&&null!==(o=a.exec(s))&&u<i.depth;){if(u+=1,!i.plainObjects&&n.call(Object.prototype,o[1].slice(1,-1))&&!i.allowPrototypes)return;c.push(o[1])}return o&&c.push("["+s.slice(o.index)+"]"),function(t,e,i,r){for(var n=r?e:l(e,i),s=t.length-1;s>=0;--s){var a,o=t[s];if("[]"===o&&i.parseArrays)a=i.allowEmptyArrays&&""===n?[]:[].concat(n);else{a=i.plainObjects?Object.create(null):{};var h="["===o.charAt(0)&&"]"===o.charAt(o.length-1)?o.slice(1,-1):o,c=i.decodeDotInKeys?h.replace(/%2E/g,"."):h,u=parseInt(c,10);i.parseArrays||""!==c?!isNaN(u)&&o!==c&&String(u)===c&&u>=0&&i.parseArrays&&u<=i.arrayLimit?(a=[])[u]=n:"__proto__"!==c&&(a[c]=n):a={0:n}}n=a}return n}(c,e,i,r)}};t.exports=function(t,e){var i=function(t){if(!t)return a;
vendor: 10,486 bytes, line 2
2if(void 0!==t.allowEmptyArrays&&"boolean"!=typeof t.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==t.decodeDotInKeys&&"boolean"!=typeof t.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===t.charset?a.charset:t.charset,i=void 0===t.duplicates?a.duplicates:t.duplicates;if("combine"!==i&&"first"!==i&&"last"!==i)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===t.allowDots?!0===t.decodeDotInKeys||a.allowDots:!!t.allowDots,allowEmptyArrays:"boolean"==typeof t.allowEmptyArrays?!!t.allowEmptyArrays:a.allowEmptyArrays,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:a.allowSparse,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:a.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:a.comma,decodeDotInKeys:"boolean"==typeof t.decodeDotInKeys?t.decodeDotInKeys:a.decodeDotInKeys,decoder:"function"==typeof t.decoder?t.decoder:a.decoder,delimiter:"string"==typeof t.delimiter||r.isRegExp(t.delimiter)?t.delimiter:a.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:a.depth,duplicates:i,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:a.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:a.strictNullHandling}}(e);if(""===t||null==t)return i.plainObjects?Object.create(null):{};for(var c="string"==typeof t?function(t,e){var i,h={__proto__:null},c=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,u=e.parameterLimit===1/0?void 0:e.parameterLimit,d=c.split(e.delimiter,u),p=-1,f=e.charset;if(e.charsetSentinel)for(i=0;i<d.length;++i)0===d[i].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[i]?f="utf-8":"utf8=%26%2310003%3B"===d[i]&&(f="iso-8859-1"),p=i,i=d.length);for(i=0;i<d.length;++i)if(i!==p){var m,g,y=d[i],v=y.indexOf("]="),x=-1===v?y.indexOf("="):v+1;-1===x?(m=e.decoder(y,a.decoder,f,"key"),g=e.strictNullHandling?null:""):(m=e.decoder(y.slice(0,x),a.decoder,f,"key"),g=r.maybeMap(l(y.slice(x+1),e),(function(t){return e.decoder(t,a.decoder,f,"value")}))),g&&e.interpretNumericEntities&&"iso-8859-1"===f&&(g=o(g)),y.indexOf("[]=")>-1&&(g=s(g)?[g]:g);var _=n.call(h,m);_&&"combine"===e.duplicates?h[m]=r.combine(h[m],g):_&&"last"!==e.duplicates||(h[m]=g)}return h}(t,i):t,u=i.plainObjects?Object.create(null):{},d=Object.keys(c),p=0;p<d.length;++p){var f=d[p],m=h(f,c[f],i,"string"==typeof t);u=r.merge(u,m,i)}return!0===i.allowSparse?u:r.compact(u)}},636:function(t,e,i){"use strict";var r=i(920),n=i(720),s=i(765),a=Object.prototype.hasOwnProperty,o={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},l=Array.isArray,h=Array.prototype.push,c=function(t,e){h.apply(t,l(e)?e:[e])},u=Date.prototype.toISOString,d=s.default,p={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:n.encode,encodeValuesOnly:!1,format:d,formatter:s.formatters[d],indices:!1,serializeDate:function(t){return u.call(t)},skipNulls:!1,strictNullHandling:!1},f={},m=function t(e,i,s,a,o,h,u,d,m,g,y,v,x,_,b,S,E,w){for(var T,A=e,M=w,P=0,C=!1;void 0!==(M=M.get(f))&&!C;){var k=M.get(e);if(P+=1,void 0!==k){if(k===P)throw new RangeError("Cyclic object value");C=!0}void 0===M.get(f)&&(P=0)}if("function"==typeof g?A=g(i,A):A instanceof Date?A=x(A):"comma"===s&&l(A)&&(A=n.maybeMap(A,(function(t){return t instanceof Date?x(t):t}))),null===A){if(h)return m&&!S?m(i,p.encoder,E,"key",_):i;A=""}if("string"==typeof(T=A)||"number"==typeof T||"boolean"==typeof T||"symbol"==typeof T||"bigint"==typeof T||n.isBuffer(A))return m?[b(S?i:m(i,p.encoder,E,"key",_))+"="+b(m(A,p.encoder,E,"value",_))]:[b(i)+"="+b(String(A))];var I,D=[];if(void 0===A)return D;if("comma"===s&&l(A))S&&m&&(A=n.maybeMap(A,m)),I=[{value:A.length>0?A.join(",")||null:void 0}];else if(l(g))I=g;else{var R=Object.keys(A);I=y?R.sort(y):R}var O=d?i.replace(/\./g,"%2E"):i,L=a&&l(A)&&1===A.length?O+"[]":O;if(o&&l(A)&&0===A.length)return L+"[]";for(var F=0;F<I.length;++F){var B=I[F],N="object"==typeof B&&void 0!==B.value?B.value:A[B];if(!u||null!==N){var V=v&&d?B.replace(/\./g,"%2E"):B,z=l(A)?"function"==typeof s?s(L,V):L:L+(v?"."+V:"["+V+"]");w.set(e,P);var G=r();G.set(f,w),c(D,t(N,z,s,a,o,h,u,d,"comma"===s&&S&&l(A)?null:m,g,y,v,x,_,b,S,E,G))}}return D};t.exports=function(t,e){var i,n=t,h=function(t){if(!t)return p;if(void 0!==t.allowEmptyArrays&&"boolean"!=typeof t.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==t.encodeDotInKeys&&"boolean"!=typeof t.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==t.encoder&&void 0!==t.encoder&&"function"!=typeof t.encoder)throw new TypeError("Encoder has to be a function.");var e=t.charset||p.charset;if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var i=s.default;if(void 0!==t.format){if(!a.call(s.formatters,t.format))throw new TypeError("Unknown format option provided.");i=t.format}var r,n=s.formatters[i],h=p.filter;if(("function"==typeof t.filter||l(t.filter))&&(h=t.filter),r=t.arrayFormat in o?t.arrayFormat:"indices"in t?t.indices?"indices":"repeat":p.arrayFormat,"commaRoundTrip"in t&&"boolean"!=typeof t.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var c=void 0===t.allowDots?!0===t.encodeDotInKeys||p.allowDots:!!t.allowDots;return{addQueryPrefix:"boolean"==typeof t.addQueryPrefix?t.addQueryPrefix:p.addQueryPrefix,allowDots:c,allowEmptyArrays:"boolean"==typeof t.allowEmptyArrays?!!t.allowEmptyArrays:p.allowEmptyArrays,arrayFormat:r,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:p.charsetSentinel,commaRoundTrip:t.commaRoundTrip,delimiter:void 0===t.delimiter?p.delimiter:t.delimiter,encode:"boolean"==typeof t.encode?t.encode:p.encode,encodeDotInKeys:"boolean"==typeof t.encodeDotInKeys?t.encodeDotInKeys:p.encodeDotInKeys,encoder:"function"==typeof t.encoder?t.encoder:p.encoder,encodeValuesOnly:"boolean"==typeof t.encodeValuesOnly?t.encodeValuesOnly:p.encodeValuesOnly,filter:h,format:i,formatter:n,serializeDate:"function"==typeof t.serializeDate?t.serializeDate:p.serializeDate,skipNulls:"boolean"==typeof t.skipNulls?t.skipNulls:p.skipNulls,sort:"function"==typeof t.sort?t.sort:null,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:p.strictNullHandling}}(e);"function"==typeof h.filter?n=(0,h.filter)("",n):l(h.filter)&&(i=h.filter);var u=[];if("object"!=typeof n||null===n)return"";var d=o[h.arrayFormat],f="comma"===d&&h.commaRoundTrip;i||(i=Object.keys(n)),h.sort&&i.sort(h.sort);for(var g=r(),y=0;y<i.length;++y){var v=i[y];h.skipNulls&&null===n[v]||c(u,m(n[v],v,d,f,h.allowEmptyArrays,h.strictNullHandling,h.skipNulls,h.encodeDotInKeys,h.encode?h.encoder:null,h.filter,h.sort,h.allowDots,h.serializeDate,h.format,h.formatter,h.encodeValuesOnly,h.charset,g))}var x=u.join(h.delimiter),_=!0===h.addQueryPrefix?"?":"";return h.charsetSentinel&&("iso-8859-1"===h.charset?_+="utf8=%26%2310003%3B&":_+="utf8=%E2%9C%93&"),x.length>0?_+x:""}},720:function(t,e,i){"use strict";var r=i(765),n=Object.prototype.hasOwnProperty,s=Array.isArray,a=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),o=function(t,e){for(var i=e&&e.plainObjects?Object.create(null):{},r=0;r<t.length;++r)void 0!==t[r]&&(i[r]=t[r]);return i},l=1024;t.exports={arrayToObject:o,assign:function(t,e){return Object.keys(e).reduce((function(t,i){return t[i]=e[i],t}),t)},combine:function(t,e){return[].concat(t,e)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],i=[],r=0;r<e.length;++r)for(var n=e[r],a=n.obj[n.prop],o=Object.keys(a),l=0;l<o.length;++l){var h=o[l],c=a[h];"object"==typeof c&&null!==c&&-1===i.indexOf(c)&&(e.push({obj:a,prop:h}),i.push(c))}return function(t){for(;t.length>1;){var e=t.pop(),i=e.obj[e.prop];if(s(i)){for(var r=[],n=0;n<i.length;++n)void 0!==i[n]&&r.push(i[n]);e.obj[e.prop]=r}}}(e),t},decode:function(t,e,i){var r=t.replace(/\+/g," ");if("iso-8859-1"===i)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(t){return r}},encode:function(t,e,i,n,s){if(0===t.length)return t;var o=t;if("symbol"==typeof t?o=Symbol.prototype.toString.call(t):"string"!=typeof t&&(o=String(t)),"iso-8859-1"===i)return escape(o).replace(/%u[0-9a-f]{4}/gi,(function(t){return"%26%23"+parseInt(t.slice(2),16)+"%3B"}));for(var h="",c=0;c<o.length;c+=l){for(var u=o.length>=l?o.slice(c,c+l):o,d=[],p=0;p<u.length;++p){var f=u.charCodeAt(p);45===f||46===f||95===f||126===f||f>=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122||s===r.RFC1738&&(40===f||41===f)?d[d.length]=u.charAt(p):f<128?d[d.length]=a[f]:f<2048?d[d.length]=a[192|f>>6]+a[128|63&f]:f<55296||f>=57344?d[d.length]=a[224|f>>12]+a[128|f>>6&63]+a[128|63&f]:(p+=1,f=65536+((1023&f)<<10|1023&u.charCodeAt(p)),d[d.length]=a[240|f>>18]+a[128|f>>12&63]+a[128|f>>6&63]+a[128|63&f])}h+=d.join("")}return h},isBuffer:function(t){return!(!t||"object"!=typeof t||!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t)))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(s(t)){for(var i=[],r=0;r<t.length;r+=1)i.push(e(t[r]));return i}return e(t)},merge:function t(e,i,r){if(!i)return e;if("object"!=typeof i){if(s(e))e.push(i);else{if(!e||"object"!=typeof e)return[e,i];(r&&(r.plainObjects||r.allowPrototypes)||!n.call(Object.prototype,i
vendor: 4,119 bytes, line 2
2))&&(e[i]=!0)}return e}if(!e||"object"!=typeof e)return[e].concat(i);var a=e;return s(e)&&!s(i)&&(a=o(e,r)),s(e)&&s(i)?(i.forEach((function(i,s){if(n.call(e,s)){var a=e[s];a&&"object"==typeof a&&i&&"object"==typeof i?e[s]=t(a,i,r):e.push(i)}else e[s]=i})),e):Object.keys(i).reduce((function(e,s){var a=i[s];return n.call(e,s)?e[s]=t(e[s],a,r):e[s]=a,e}),a)}}},897:function(t,e,i){"use strict";var r=i(453),n=i(41),s=i(592)(),a=i(795),o=i(675),l=r("%Math.floor%");t.exports=function(t,e){if("function"!=typeof t)throw new o("`fn` is not a function");if("number"!=typeof e||e<0||e>4294967295||l(e)!==e)throw new o("`length` must be a positive 32-bit integer");var i=arguments.length>2&&!!arguments[2],r=!0,h=!0;if("length"in t&&a){var c=a(t,"length");c&&!c.configurable&&(r=!1),c&&!c.writable&&(h=!1)}return(r||h||!i)&&(s?n(t,"length",e,!0,!0):n(t,"length",e)),t}},920:function(t,e,i){"use strict";var r=i(453),n=i(75),s=i(859),a=i(675),o=r("%WeakMap%",!0),l=r("%Map%",!0),h=n("WeakMap.prototype.get",!0),c=n("WeakMap.prototype.set",!0),u=n("WeakMap.prototype.has",!0),d=n("Map.prototype.get",!0),p=n("Map.prototype.set",!0),f=n("Map.prototype.has",!0),m=function(t,e){for(var i,r=t;null!==(i=r.next);r=i)if(i.key===e)return r.next=i.next,i.next=t.next,t.next=i,i};t.exports=function(){var t,e,i,r={assert:function(t){if(!r.has(t))throw new a("Side channel does not contain "+s(t))},get:function(r){if(o&&r&&("object"==typeof r||"function"==typeof r)){if(t)return h(t,r)}else if(l){if(e)return d(e,r)}else if(i)return function(t,e){var i=m(t,e);return i&&i.value}(i,r)},has:function(r){if(o&&r&&("object"==typeof r||"function"==typeof r)){if(t)return u(t,r)}else if(l){if(e)return f(e,r)}else if(i)return function(t,e){return!!m(t,e)}(i,r);return!1},set:function(r,n){o&&r&&("object"==typeof r||"function"==typeof r)?(t||(t=new o),c(t,r,n)):l?(e||(e=new l),p(e,r,n)):(i||(i={key:{},next:null}),function(t,e,i){var r=m(t,e);r?r.value=i:t.next={key:e,next:t.next,value:i}}(i,r,n))}};return r}},835:function(t,e,i){"use strict";var r=i(655);function n(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var s=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,o=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,l=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),h=["'"].concat(l),c=["%","/","?",";","#"].concat(h),u=["/","?","#"],d=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,f={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},y=i(373);function v(t,e,i){if(t&&"object"==typeof t&&t instanceof n)return t;var r=new n;return r.parse(t,e,i),r}n.prototype.parse=function(t,e,i){if("string"!=typeof t)throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var n=t.indexOf("?"),a=-1!==n&&n<t.indexOf("#")?"?":"#",l=t.split(a);l[0]=l[0].replace(/\\/g,"/");var v=t=l.join(a);if(v=v.trim(),!i&&1===t.split("#").length){var x=o.exec(v);if(x)return this.path=v,this.href=v,this.pathname=x[1],x[2]?(this.search=x[2],this.query=e?y.parse(this.search.substr(1)):this.search.substr(1)):e&&(this.search="",this.query={}),this}var _=s.exec(v);if(_){var b=(_=_[0]).toLowerCase();this.protocol=b,v=v.substr(_.length)}if(i||_||v.match(/^\/\/[^@/]+@[^@/]+/)){var S="//"===v.substr(0,2);!S||_&&m[_]||(v=v.substr(2),this.slashes=!0)}if(!m[_]&&(S||_&&!g[_])){for(var E,w,T=-1,A=0;A<u.length;A++)-1!==(M=v.indexOf(u[A]))&&(-1===T||M<T)&&(T=M);for(-1!==(w=-1===T?v.lastIndexOf("@"):v.lastIndexOf("@",T))&&(E=v.slice(0,w),v=v.slice(w+1),this.auth=decodeURIComponent(E)),T=-1,A=0;A<c.length;A++){var M;-1!==(M=v.indexOf(c[A]))&&(-1===T||M<T)&&(T=M)}-1===T&&(T=v.length),this.host=v.slice(0,T),v=v.slice(T),this.parseHost(),this.hostname=this.hostname||"";var P="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!P)for(var C=this.hostname.split(/\./),k=(A=0,C.length);A<k;A++){var I=C[A];if(I&&!I.match(d)){for(var D="",R=0,O=I.length;R<O;
vendor: 2,267 bytes, line 2
2R++)I.charCodeAt(R)>127?D+="x":D+=I[R];if(!D.match(d)){var L=C.slice(0,A),F=C.slice(A+1),B=I.match(p);B&&(L.push(B[1]),F.unshift(B[2])),F.length&&(v="/"+F.join(".")+v),this.hostname=L.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),P||(this.hostname=r.toASCII(this.hostname));var N=this.port?":"+this.port:"",V=this.hostname||"";this.host=V+N,this.href+=this.host,P&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==v[0]&&(v="/"+v))}if(!f[b])for(A=0,k=h.length;A<k;A++){var z=h[A];if(-1!==v.indexOf(z)){var G=encodeURIComponent(z);G===z&&(G=escape(z)),v=v.split(z).join(G)}}var U=v.indexOf("#");-1!==U&&(this.hash=v.substr(U),v=v.slice(0,U));var H=v.indexOf("?");if(-1!==H?(this.search=v.substr(H),this.query=v.substr(H+1),e&&(this.query=y.parse(this.query)),v=v.slice(0,H)):e&&(this.search="",this.query={}),v&&(this.pathname=v),g[b]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){N=this.pathname||"";var j=this.search||"";this.path=N+j}return this.href=this.format(),this},n.prototype.format=function(){var t=this.auth||"";t&&(t=(t=encodeURIComponent(t)).replace(/%3A/i,":"),t+="@");var e=this.protocol||"",i=this.pathname||"",r=this.hash||"",n=!1,s="";this.host?n=t+this.host:this.hostname&&(n=t+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(n+=":"+this.port)),this.query&&"object"==typeof this.query&&Object.keys(this.query).length&&(s=y.stringify(this.query,{arrayFormat:"repeat",addQueryPrefix:!1}));var a=this.search||s&&"?"+s||"";return e&&":"!==e.substr(-1)&&(e+=":"),this.slashes||(!e||g[e])&&!1!==n?(n="//"+(n||""),i&&"/"!==i.charAt(0)&&(i="/"+i)):n||(n=""),r&&"#"!==r.charAt(0)&&(r="#"+r),a&&"?"!==a.charAt(0)&&(a="?"+a),e+n+(i=i.replace(/[?#]/g,(function(t){return encodeURIComponent(t)})))+(a=a.replace("#","%23"))+r},n.prototype.resolve=function(t){return this.resolveObject(v(t,!1,!0)).format()},n.prototype.resolveObject=function(t){if("string"==typeof t){var e=new n;e.parse(t,!1,!0),t=e}for(var i=new n,r=Object.keys(this),s=0;s<r.length;s++){var a=r[s];i[a]=this[a]}if(i.hash=t.hash,""===t.href)return i.href=i.format(),i;if(t.slashes&&!t.protocol){for(var o=Object.keys(t),l=0;l<o.length;l++){var h=o[l];
2"protocol"!==h&&(i[h]=t[h])}return g[i.protocol]&&i.hostname&&!i.pathname&&(i.pathname="/",i.path=i.pathname),i.href=i.format(),i}if(t.protocol&&t.protocol!==i.protocol){if(!g[t.protocol]){for(var c=Object.keys(t),u=0;u<c.length;u++){var d=c[u];i[d]=t[d]}return i.href=i.format(),i}if(i.protocol=t.protocol,t.host||m[t.protocol])i.pathname=t.pathname;else{for(var p=(t.pathname||"").split("/");p.length&&!(t.host=p.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),""!==p[0]&&p.unshift(""),p.length<2&&p.unshift(""),i.pathname=p.join("/")}if(i.search=t.search,i.query=t.query,i.host=t.host||"",i.auth=t.auth,i.hostname=t.hostname||t.host,i.port=t.port,i.pathname||i.search){var f=i.pathname||"",y=i.search||"";i.path=f+y}return i.slashes=i.slashes||t.slashes,i.href=i.format(),i}var v=i.pathname&&"/"===i.pathname.charAt(0),x=t.host||t.pathname&&"/"===t.pathname.charAt(0),_=x||v||i.host&&t.pathname,b=_,S=i.pathname&&i.pathname.split("/")||[],E=(p=t.pathname&&t.pathname.split("/")||[],i.protocol&&!g[i.protocol]);if(E&&(i.hostname="",i.port=null,i.host&&(""===S[0]?S[0]=i.host:S.unshift(i.host)),i.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(""===p[0]?p[0]=t.host:p.unshift(t.host)),t.host=null),_=_&&(""===p[0]||""===S[0])),x)i.host=t.host||""===t.host?t.host:i.host,i.hostname=t.hostname||""===t.hostname?t.hostname:i.hostname,i.search=t.search,i.query=t.query,S=p;else if(p.length)S||(S=[]),S.pop(),S=S.concat(p),i.search=t.search,i.query=t.query;else if(null!=t.search)return E&&(i.host=S.shift(),i.hostname=i.host,(P=!!(i.host&&i.host.indexOf("@")>0)&&i.host.split("@"))&&(i.auth=P.shift(),i.hostname=P.shift(),i.host=i.hostname)),i.search=t.search,i.query=t.query,null===i.pathname&&null===i.search||(i.path=(i.pathname?i.pathname:"")+(i.search?i.search:"")),i.href=i.format(),i;if(!S.length)return i.pathname=null,i.search?i.path="/"+i.search:i.path=null,i.href=i.format(),i;for(var w=S.slice(-1)[0],T=(i.host||t.host||S.length>1)&&("."===w||".."===w)||""===w,A=0,M=S.length;M>=0;M--)"."===(w=S[M])?S.splice(M,1):".."===w?(S.splice(M,1),A++):A&&(S.splice(M,1),A--);if(!_&&!b)for(;A--;A)S.unshift("..");!_||""===S[0]||S[0]&&"/"===S[0].charAt(0)||S.unshift(""),T&&"/"!==S.join("/").substr(-1)&&S.push("");var P,C=""===S[0]||S[0]&&"/"===S[0].charAt(0);return E&&(i.hostname=C?"":S.length?S.shift():"",i.host=i.hostname,(P=!!(i.host&&i.host.indexOf("@")>0)&&i.host.split("@"))&&(i.auth=P.shift(),i.hostname=P.shift(),i.host=i.hostname)),(_=_||i.host&&S.length)&&!C&&S.unshift(""),S.length>0?i.pathname=S.join("/"):(i.pathname=null,i.path=null),null===i.pathname&&null===i.search||(i.path=(i.pathname?i.pathname:"")+(i.search?i.search:"")),i.auth=t.auth||i.auth,i.slashes=i.slashes||t.slashes,i.href=i.format(),i},n.prototype.parseHost=function(){var t=this.host,e=a.exec(t);e&&(":"!==(e=e[0])&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)},e.qg=v,e.hd=function(t,e){return v(t,!1,!0).resolve(e)},e.GP=function(t){return"string"==typeof t&&(t=v(t)),t instanceof n?t.format():n.prototype.format.call(t)}},224:function(t){t.exports=function(){"use strict";let t,e,i,r,n,s,a,o,l,h,c,u,d,p,f,m,g,y,v,x,_,b,S,E,w,T,A,M,P,C,k,I,D,R,O,L,F,B,N,V=0,z=0,G=0,U=!1,H=!1,j=!1,W=!1;const X={bounce:["sk-bounce","sk-bounce-dot",2],chase:["sk-chase","sk-chase-dot",6],circle:["sk-circle","sk-circle-dot",12],"circle-fade":["sk-circle-fade","sk-circle-fade-dot",12],flow:["sk-flow","sk-flow-dot",3],fold:["sk-fold","sk-fold-cube",4],grid:["sk-grid","sk-grid-cube",9],plane:["sk-plane","",0],pulse:["sk-pulse","",5],swing:["sk-swing","sk-swing-dot",2],wander:["sk-wander","sk-wander-cube",3],wave:["sk-wave","sk-wave-rect",5]},$={selector:".venobox",autoplay:!1,bgcolor:"#fff",border:"0",customClass:!1,infinigall:!1,maxWidth:"100%",navigation:!0,navKeyboard:!0,navTouch:!0,navSpeed:300,numeration:!1,overlayClose:!0,overlayColor:"rgba(23,23,23,0.95)",popup:!1,ratio:"16x9",share:!1,shareStyle:"pill",spinner:"bounce",spinColor:"#d2d2d2",titleattr:"title",titlePosition:"top",titleStyle:"bar",toolsBackground:"#1C1C1C",toolsColor:"#d2d2d2",onPreOpen:function(){return!0},onPostOpen:function(){},onPreClose:function(){return!0},onNavComplete:function(){},onContentLoaded:function(){},onInit:function(){},jQuerySelectors:!1,focusItem:!1,fitView:!1,initialScale:.9,transitionSpeed:200};function Y(t,e,i){if("[object Object]"===Object.prototype.toString.call(t)){let r;for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.call(i,t[r],r,t)}else{let r=0,n=t.length;for(r=0;r<n;r++)e.call(i,t[r],r,t)}}function q(t){return t}function K({timing:t,draw:e,duration:i}){let r=performance.now();requestAnimationFrame((function n(s){let a=(s-r)/i;a>1&&(a=1);let o=t(a);e(o),a<1&&requestAnimationFrame(n)}))}function Z(t){if(!t)return!1;v=!0,o=t,b=!1,S=!1,w=t.getAttribute("data-maxwidth")||t.settings.maxWidth,T=t.getAttribute("data-overlay")||t.settings.overlayColor,A=t.getAttribute("data-ratio")||t.settings.ratio,M=t.hasAttribute("data-autoplay")||t.settings.autoplay,P=t.getAttribute("data-href")||t.getAttribute("href"),C=t.getAttribute("data-customclass")||t.settings.customClass,F=t.getAttribute(t.settings.titleattr)||"",O=t.getAttribute("data-border")||t.settings.border,k=t.hasAttribute("data-fitview")||t.settings.fitView}function J(){return!(!o||!document.body.classList.contains("vbox-open"))&&(!o.settings.onPreClose||"function"!=typeof o.settings.onPreClose||!1!==o.settings.onPreClose(o,f,D,R))&&(document.body.removeEventListener("keydown",et),document.body.classList.remove("vbox-open"),o.settings.focusItem&&o.focus(),void K({duration:200,timing:q,draw:function(t){E.style.opacity=1-t,1===t&&E.remove()}}))}function Q(){ht(D)}function tt(){ht(R)}function et(t){27===t.keyCode&&J(),B||(37==t.keyCode&&!0===S&&ht(R),39==t.keyCode&&!0===b&&ht(D),B=setTimeout((()=>{B=null}),100))}function it(t){a.classList.contains("vbox-"+t)||function(){v=!1,a.style.opacity=0,a.innerHTML=x,W?(a.classList.add("vbox-grab"),a.addEventListener("touchstart",rt,!1),a.addEventListener("touchend",nt,!1),a.addEventListener("touchmove",st,!1),a.addEventListener("mousedown",rt,!1),a.addEventListener("mouseup",nt,!1),a.addEventListener("mouseout",nt,!1),a.addEventListener("mousemove",st,!1)):(a.classList.remove("vbox-grab"),a.removeEventListener("touchstart",rt,!1),a.removeEventListener("touchend",nt,!1),a.removeEventListener("touchmove",st,!1),a.removeEventListener("mousedown",rt,!1),a.removeEventListener("mouseup",nt,!1),a.removeEventListener("mouseout",nt,!1),a.removeEventListener("mousemove",st,!1));let t=a.querySelector(":first-child");t.classList.add("vbox-child"),t.style.backgroundColor=o.settings.bgcolor,t.style.transform="scale("+o.settings.initialScale+")",t.style.transition="transform "+o.settings.transitionSpeed+"ms";let e=a.querySelector(".vbox-child img");e&&e.addEventListener("dragstart",(function(t){t.preventDefault()})),s.scrollTo(0,0),t.style.transform="scale(1)",E.style.setProperty("--vbox-padding",O),E.style.setProperty("--vbox-max-width",w),Y(E.classList,(function(t){"vbox-overlay"!==t&&E.classList.remove(t)})),C&&E.classList.add(C),k?a.classList.add("vbox-fit"):a.classList.remove("vbox-fit"),K({duration:o.settings.transitionSpeed,timing:q,draw:function(t){a.style.opacity=t,1===t&&d.classList.add("vbox-hidden")}}),o.settings.onContentLoaded&&"function"==typeof o.settings.onContentLoaded&&o.settings.onContentLoaded(x)}()}function rt(t){if(!v){let e=.84*o.settings.navSpeed;a.style.transition="margin "+e+"ms ease-out, opacity "+e+"ms ease-out",V=z="touchstart"===t.type?t.touches[0].pageX:t.pageX,I=u="touchstart"===t.type?t.touches[0].pageY:t.pageY,U=!0}}function nt(t){if(U){U=!1;
vendor: 10,755 bytes, line 2
2let t=o,e=!1;G=z-V,G<0&&b&&(t=D,e=!0),G>0&&S&&(t=R,e=!0),Math.abs(G)>=50&&e?ht(t):(a.style.marginLeft=0,a.style.opacity=1)}}function st(t){if(U&&!v){z="touchmove"===t.type?t.touches[0].pageX:t.pageX,u="touchmove"===t.type?t.touches[0].pageY:t.pageY,h=z-V,c=u-I;let e=Math.abs(h);if(e>Math.abs(c)&&e<=180){let i=1.5*(1-e/180);t.preventDefault(),a.style.marginLeft=h+"px",a.style.opacity=i}}}function at(t){if(!t)return!1;L=t.dataset.gall,_=t.settings.numeration,g=t.settings.infinigall,i.innerHTML="";let n=t.dataset.vbtype;t.settings.share&&"iframe"!==n&&"inline"!==n&&"ajax"!==n&&function(t){if(navigator.canShare){const e={url:t};i.insertAdjacentHTML("beforeend",'<div class="vbox-link-btn vbox-share-mobile"><svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 16 16" fill="currentColor"><path fill-rule="evenodd" d="M3.5 6a.5.5 0 0 0-.5.5v8a.5.5 0 0 0 .5.5h9a.5.5 0 0 0 .5-.5v-8a.5.5 0 0 0-.5-.5h-2a.5.5 0 0 1 0-1h2A1.5 1.5 0 0 1 14 6.5v8a1.5 1.5 0 0 1-1.5 1.5h-9A1.5 1.5 0 0 1 2 14.5v-8A1.5 1.5 0 0 1 3.5 5h2a.5.5 0 0 1 0 1h-2z"/><path fill-rule="evenodd" d="M7.646.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1-.708.708L8.5 1.707V10.5a.5.5 0 0 1-1 0V1.707L5.354 3.854a.5.5 0 1 1-.708-.708l3-3z"/></svg></div>'),i.querySelector(".vbox-share-mobile").addEventListener("click",(function(t){t.preventDefault(),navigator.share(e)}))}i.insertAdjacentHTML("beforeend",'<a target="_blank" href="'+t+'" download><svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 16 16" fill="currentColor"><path d="M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5z"/><path d="M7.646 11.854a.5.5 0 0 0 .708 0l3-3a.5.5 0 0 0-.708-.708L8.5 10.293V1.5a.5.5 0 0 0-1 0v8.793L5.354 8.146a.5.5 0 1 0-.708.708l3 3z"/></svg></a>'),i.insertAdjacentHTML("beforeend",'<div class="vbox-tooltip"><div class="vbox-link-btn vbox-share-copy"><span class="vbox-tooltip-text" id="myTooltip"></span><svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 16 16" fill="currentColor"><path fill-rule="evenodd" d="M10.854 7.146a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708 0l-1.5-1.5a.5.5 0 1 1 .708-.708L7.5 9.793l2.646-2.647a.5.5 0 0 1 .708 0z"/><path d="M4 1.5H3a2 2 0 0 0-2 2V14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V3.5a2 2 0 0 0-2-2h-1v1h1a1 1 0 0 1 1 1V14a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V3.5a1 1 0 0 1 1-1h1v-1z"/><path d="M9.5 1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5h3zm-3-1A1.5 1.5 0 0 0 5 1.5v1A1.5 1.5 0 0 0 6.5 4h3A1.5 1.5 0 0 0 11 2.5v-1A1.5 1.5 0 0 0 9.5 0h-3z"/></svg></div ></div>'),i.querySelector(".vbox-share-copy").addEventListener("click",(function(e){e.preventDefault();let i=document.getElementById("myTooltip");navigator.clipboard.writeText(t).then((function(){i.innerHTML='<div class="vbox-tooltip-inner">Copied</div>'}),(function(){console.log("copy failed")}))}))}(t.href),y=document.querySelectorAll('.vbox-item[data-gall="'+L+'"]'),l=Array.prototype.indexOf.call(y,t),y.length<2&&(_=!1),y.length<3&&(g=!1),D=y[l+1],R=y[l-1],!D&&g&&(D=y[0]),!R&&g&&(R=y[y.length-1]),y.length>=1?(f=l+1,e.innerHTML=f+" / "+y.length):f=1,_?e.classList.remove("vbox-hidden"):e.classList.add("vbox-hidden"),""!==F?r.classList.remove("vbox-hidden"):r.classList.add("vbox-hidden"),r.innerHTML=F,S=!1,b=!1,(D||g)&&(b=!0),(l>0||g)&&(S=!0),W=(S||b)&&t.settings.navTouch;let s=E.querySelector(".vbox-next"),a=E.querySelector(".vbox-prev");S?a.classList.remove("vbox-hidden"):a.classList.add("vbox-hidden"),b?s.classList.remove("vbox-hidden"):s.classList.add("vbox-hidden"),t.settings.navigation||(s.classList.add("vbox-hidden"),a.classList.add("vbox-hidden"))}function ot(e){if(!e)return!1;t.style.backgroundColor=T,p.innerHTML=function(t){if(!t)return"Loading...";let e='<div class="sk-center '+t[0]+'">',i=0;for(i=0;i<t[2];i++)e+='<div class="'+t[1]+'"></div>';return e+="</div>",e}(X[e.settings.spinner]),E.style.setProperty("--sk-color",e.settings.spinColor),d.classList.remove("vbox-hidden"),i.classList.remove("vbox-top","vbox-bottom"),r.classList.remove("vbox-top","vbox-bottom"),"top"==e.settings.titlePosition?(r.classList.add("vbox-top"),i.classList.add("vbox-bottom")):(r.classList.add("vbox-bottom"),i.classList.add("vbox-top"));let n="bar"===e.settings.titleStyle?"100%":"auto",s="pill"===e.settings.titleStyle?"5em":"0",a="bar"===e.settings.shareStyle?"100%":"auto",o="pill"===e.settings.shareStyle?"5em":"0",l="transparent"===e.settings.titleStyle?"transparent":e.settings.toolsBackground,h="transparent"===e.settings.shareStyle?"transparent":e.settings.toolsBackground;E.style.setProperty("--vbox-title-width",n),E.style.setProperty("--vbox-title-radius",s),E.style.setProperty("--vbox-share-width",a),E.style.setProperty("--vbox-share-radius",o),E.style.setProperty("--vbox-tools-color",e.settings.toolsColor),E.style.setProperty("--vbox-title-background",l),E.style.setProperty("--vbox-share-background",h)}function lt(){if(!o)return!1;switch(o.dataset.vbtype){case"iframe":t=P,e=A,a.classList.add("vbox-loading"),x='<div class="venoratio venoratio-'+e+'"><iframe src="'+t+'"></iframe></div>',a.classList.remove("vbox-loading"),it("animated");break;case"inline":!function(t){let e=document.querySelector(t);e&&(a.classList.add("vbox-loading"),x='<div class="vbox-inline">'+e.innerHTML+"</div>",a.classList.remove("vbox-loading"),it("animated"))}(P);break;case"ajax":!function(t){a.classList.add("vbox-loading");let e=new XMLHttpRequest;e.open("GET",t,!0),e.onload=function(){x='<div class="vbox-inline">'+e.response+"</div>",function(){var t;if(t=x,H.innerHTML=t,m=H.querySelectorAll("img"),m.length){let t=0;Y(m,(function(e){let i=e.src;const r=new Image;r.onload=function(){t++,t==m.length&&(a.classList.remove("vbox-loading"),it("animated"))},r.onerror=function(){t++,t==m.length&&(a.classList.remove("vbox-loading"),it("animated"))},r.src=i}))}else a.classList.remove("vbox-loading"),it("animated")}()},e.onerror=function(){x='<div class="vbox-inline"></div>',a.classList.remove("vbox-loading"),it("animated")},e.send()}(P);break;case"video":!function(t,e,i){let r;a.classList.add("vbox-loading");let n=function(t){let e,i,r;if(i=t.match(/(https?:\/\/)?((www\.)?(youtube(-nocookie)?|youtube.googleapis)\.com.*(v\/|v=|vi=|vi\/|e\/|embed\/|user\/.*\/u\/\d+\/)|youtu\.be\/)([_0-9a-z-]+)/i),i&&i[7])e="youtube",r=i[7];else{let n=/^.*(vimeo\.com\/)((channels\/[A-z]+\/)|(groups\/[A-z]+\/videos\/))?([0-9]+)/;i=t.match(n),i&&i[5]&&(e="vimeo",r=i[5])}return{type:e,id:r}}(t);if("vimeo"==n.type||"youtube"==n.type){let s;r=i?"?rel=0&autoplay=1":"?rel=0";let a=r+function(t){let e="",i=decodeURIComponent(t).split("?");if(void 0!==i[1]){let t,r,n=i[1].split("&");for(r=0;r<n.length;r++)t=n[r].split("="),e=e+"&"+t[0]+"="+t[1]}return encodeURI(e)}(t);"vimeo"==n.type?s="https://player.vimeo.com/video/":"youtube"==n.type&&(s="https://www.youtube-nocookie.com/embed/"),x='<div class="venoratio venoratio-'+e+'"><iframe webkitallowfullscreen mozallowfullscreen allowfullscreen allow="autoplay" frameborder="0" src="'+s+n.id+a+'"></iframe></div>'}else r=i?" autoplay":"",x='<div class="venoratio venoratio-'+e+'"><video src="'+t+'"'+r+" controls>Your browser does not support the video tag.</video></div>";a.classList.remove("vbox-loading"),it("animated")}(P,A,M);break;default:!function(t){j.onload=function(){x='<div class="vbox-child"><img src="'+t+'"></div>',a.classList.remove("vbox-loading"),it("animated")},j.src=t}(P)}var t,e}function ht(t){if(!t||v||!document.body.classList.contains("vbox-open"))return!1;Z(t),ot(t);const e=.84*o.settings.navSpeed;a.style.transition="margin "+e+"ms ease-out, opacity "+e+"ms ease-out",t===R&&a.classList.add("swipe-right"),t===D&&a.classList.add("swipe-left"),d.classList.remove("vbox-hidden");const i=a.style.opacity;a.classList.add("vbox-animated","vbox-loading"),N=a.cloneNode(!1),N.classList.add("cloned"),N.classList.remove("swipe-left","swipe-right"),N.style.opacity=0,N.style.marginLeft="0",N.style.marginRight="0";const r=a;s.append(N),a=N,a.classList.remove("cloned"),at(t),K({duration:o.settings.navSpeed,timing:q,draw:function(t){r.style.opacity=i-t/i,1===t&&(r.remove(),a.classList.remove("vbox-animated"),it("loading"),v=!1,o.settings.onNavComplete&&"function"==typeof o.settings.onNavComplete&&o.settings.onNavComplete(o,f,D,R))}}),lt()}function ct(l){return!(document.body.classList.contains("vbox-open")||!l)&&(!l.settings.onPreOpen||"function"!=typeof l.settings.onPreOpen||!1!==l.settings.onPreOpen(l))&&(Z(l),document.body.insertAdjacentHTML("beforeend",n),document.body.classList.add("vbox-open"),E=document.querySelector(".vbox-overlay"),t=E.querySelector(".vbox-backdrop"),s=E.querySelector(".vbox-container"),a=s.querySelector(".vbox-content"),e=E.querySelector(".vbox-num"),i=E.querySelector(".vbox-share"),r=E.querySelector(".vbox-title"),d=E.querySelector(".vbox-preloader"),p=d.querySelector(".vbox-preloader-inner"),E.style.opacity=0,ot(l),at(l),a.classList.add("vbox-animated","vbox-loading"),K({duration:200,timing:q,draw:function(t){E.style.opacity=t,1===t&&(a.classList.remove("vbox-animated"),v=!1,it("loading"),o.settings.onPostOpen&&"function"==typeof o.settings.onPostOpen&&o.settings.onPostOpen(o,f,D,R))}}),lt(),l.settings.navKeyboard&&(document.body.addEventListener("keydown",et),document.body.addEventListener("keyup",(()=>{B&&(clearTimeout(B),B=null)}))),document.querySelector(".vbox-prev").addEventListener("click",(function(){ht(R)})),document.querySelector(".vbox-next").addEventListener("click",(function(){ht(D)})),void E.addEventListener("click",(function(t){let e=document.querySelector(".vbox-close");e&&(e.contains(t.target)||e===t.target||o.settings.overlayClose&&(t.target.classList.contains("vbox-overlay")||t.target.classList.contains("vbox-content")||t.target.classList.contains("vbox-backdrop")||t.target.classList.contains("vbox-close")||t.target.classList.contains("vbox-preloader")||t.target.classList.contains("vbox-container")))&&J()})))}const ut=function(t){const e={};let i=function(t,e){let i={};return Y(t,(function(e,r){i[r]=t[r]})),Y(e,(function(t,r){i[r]=e[r]})),i}($,t||{});return e.close=J,e.next=Q,e.prev=tt,e.open=ct,e.settings=i,function(t,e){e.onInit&&"function"==typeof e.onInit&&e.onInit(t);let i=e.jQuerySelectors||document.querySelectorAll(e.selector);if(n='<div class="vbox-overlay"><div class="vbox-backdrop"></div><div class="vbox-preloader"><div class="vbox-preloader-inner"></div></div><div class="vbox-container"><div class="vbox-content"></div></div><div class="vbox-title"></div><div class="vbox-left-corner"><div class="vbox-num">0/0</div></div><div class="vbox-close"><svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" fill="currentColor" class="vbox-close-icon" viewB
2ox="0 0 16 16"><path fill-rule="evenodd" d="M13.854 2.146a.5.5 0 0 1 0 .708l-11 11a.5.5 0 0 1-.708-.708l11-11a.5.5 0 0 1 .708 0Z"/><path fill-rule="evenodd" d="M2.146 2.146a.5.5 0 0 0 0 .708l11 11a.5.5 0 0 0 .708-.708l-11-11a.5.5 0 0 0-.708 0Z"/></svg></div><a class="vbox-next"><span>Next</span></a><a class="vbox-prev"><span>Prev</span></a><div class="vbox-share"></div></div>',H=H||document.createElement("div"),j=j||new Image,Y(i,(function(t){if(t instanceof Element){if(t.classList.contains("vbox-item"))return!0;t.settings=e,t.classList.add("vbox-item"),t.addEventListener("click",(function(e){return e.preventDefault(),t.blur(),ct(t),!1}))}})),e.popup){let t=document.querySelector(e.popup);t.settings=e,ct(t)}}(e,i),e};return"function"==typeof jQuery&&jQuery.fn.extend({venobox:function(t){const e=t||{};e.jQuerySelectors=this,new ut(e)}}),ut}()},634:function(){}},__webpack_module_cache__={};function __webpack_require__(t){var e=__webpack_module_cache__[t];if(void 0!==e)return e.exports;var i=__webpack_module_cache__[t]={id:t,loaded:!1,exports:{}};return __webpack_modules__[t].call(i.exports,i,i.exports,__webpack_require__),i.loaded=!0,i.exports}__webpack_require__.amdO={},__webpack_require__.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return __webpack_require__.d(e,{a:e}),e},__webpack_require__.d=function(t,e){for(var i in e)__webpack_require__.o(e,i)&&!__webpack_require__.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),__webpack_require__.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},__webpack_require__.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t};var __webpack_exports__={};!function(){"use strict";var t=__webpack_require__(224),e=__webpack_require__.n(t);function i(t){return null!==t&&"object"==typeof t&&"constructor"in t&&t.constructor===Object}function r(t={},e={}){Object.keys(e).forEach((n=>{void 0===t[n]?t[n]=e[n]:i(e[n])&&i(t[n])&&Object.keys(e[n]).length>0&&r(t[n],e[n])}))}const n={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function s(){const t="undefined"!=typeof document?document:{};return r(t,n),t}const a={document:n,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(t){return"undefined"==typeof setTimeout?(t(),null):setTimeout(t,0)},cancelAnimationFrame(t){"undefined"!=typeof setTimeout&&clearTimeout(t)}};function o(){const t="undefined"!=typeof window?window:{};return r(t,a),t}class l extends Array{constructor(t){"number"==typeof t?super(t):(super(...t||[]),function(t){const e=t.__proto__;Object.defineProperty(t,"__proto__",{get(){return e},set(t){e.__proto__=t}})}(this))}}function h(t=[]){const e=[];return t.forEach((t=>{Array.isArray(t)?e.push(...h(t)):e.push(t)})),e}function c(t,e){return Array.prototype.filter.call(t,e)}function u(t,e){const i=o(),r=s();let n=[];if(!e&&t instanceof l)return t;if(!t)return new l(n);if("string"==typeof t){const i=t.trim();if(i.indexOf("<")>=0&&i.indexOf(">")>=0){let t="div";0===i.indexOf("<li")&&(t="ul"),0===i.indexOf("<tr")&&(t="tbody"),0!==i.indexOf("<td")&&0!==i.indexOf("<th")||(t="tr"),0===i.indexOf("<tbody")&&(t="table"),0===i.indexOf("<option")&&(t="select");const e=r.createElement(t);e.innerHTML=i;for(let t=0;t<e.childNodes.length;t+=1)n.push(e.childNodes[t])}else n=function(t,e){if("string"!=typeof t)return[t];const i=[],r=e.querySelectorAll(t);for(let t=0;t<r.length;t+=1)i.push(r[t]);return i}(t.trim(),e||r)}else if(t.nodeType||t===i||t===r)n.push(t);else if(Array.isArray(t)){if(t instanceof l)return t;n=t}return new l(function(t){const e=[];for(let i=0;i<t.length;i+=1)-1===e.indexOf(t[i])&&e.push(t[i]);return e}(n))}u.fn=l.prototype;const d="resize scroll".split(" ");function p(t){return function(...e){if(void 0===e[0]){for(let e=0;e<this.length;e+=1)d.indexOf(t)<0&&(t in this[e]?this[e][t]():u(this[e]).trigger(t));return this}return this.on(t,...e)}}p("click"),p("blur"),p("focus"),p("focusin"),p("focusout"),p("keyup"),p("keydown"),p("keypress"),p("submit"),p("change"),p("mousedown"),p("mousemove"),p("mouseup"),p("mouseenter"),p("mouseleave"),p("mouseout"),p("mouseover"),p("touchstart"),p("touchend"),p("touchmove"),p("resize"),p("scroll");const f={addClass:function(...t){const e=h(t.map((t=>t.split(" "))));return this.forEach((t=>{t.classList.add(...e)})),this},removeClass:function(...t){const e=h(t.map((t=>t.split(" "))));return this.forEach((t=>{t.classList.remove(...e)})),this},hasClass:function(...t){const e=h(t.map((t=>t.split(" "))));return c(this,(t=>e.filter((e=>t.classList.contains(e))).length>0)).length>0},toggleClass:function(...t){const e=h(t.map((t=>t.split(" "))));this.forEach((t=>{e.forEach((e=>{t.classList.toggle(e)}))}))},attr:function(t,e){if(1===arguments.length&&"string"==typeof t)return this[0]?this[0].getAttribute(t):void 0;for(let i=0;i<this.length;i+=1)if(2===arguments.length)this[i].setAttribute(t,e);else for(const e in t)this[i][e]=t[e],this[i].setAttribute(e,t[e]);return this},removeAttr:function(t){for(let e=0;e<this.length;e+=1)this[e].removeAttribute(t);return this},transform:function(t){for(let e=0;e<this.length;e+=1)this[e].style.transform=t;return this},transition:function(t){for(let e=0;e<this.length;e+=1)this[e].style.transitionDuration="string"!=typeof t?`${t}ms`:t;return this},on:function(...t){let[e,i,r,n]=t;function s(t){const e=t.target;if(!e)return;const n=t.target.dom7EventData||[];if(n.indexOf(t)<0&&n.unshift(t),u(e).is(i))r.apply(e,n);else{const t=u(e).parents();for(let e=0;e<t.length;e+=1)u(t[e]).is(i)&&r.apply(t[e],n)}}function a(t){const e=t&&t.target&&t.target.dom7EventData||[];e.indexOf(t)<0&&e.unshift(t),r.apply(this,e)}"function"==typeof t[1]&&([e,r,n]=t,i=void 0),n||(n=!1);const o=e.split(" ");let l;for(let t=0;t<this.length;t+=1){const e=this[t];if(i)for(l=0;l<o.length;l+=1){const t=o[l];e.dom7LiveListeners||(e.dom7LiveListeners={}),e.dom7LiveListeners[t]||(e.dom7LiveListeners[t]=[]),e.dom7LiveListeners[t].push({listener:r,proxyListener:s}),e.addEventListener(t,s,n)}else for(l=0;l<o.length;l+=1){const t=o[l];e.dom7Listeners||(e.dom7Listeners={}),e.dom7Listeners[t]||(e.dom7Listeners[t]=[]),e.dom7Listeners[t].push({listener:r,proxyListener:a}),e.addEventListener(t,a,n)}}return this},off:function(...t){let[e,i,r,n]=t;"function"==typeof t[1]&&([e,r,n]=t,i=void 0),n||(n=!1);const s=e.split(" ");for(let t=0;t<s.length;t+=1){const e=s[t];for(let t=0;t<this.length;t+=1){const s=this[t];let a;if(!i&&s.dom7Listeners?a=s.dom7Listeners[e]:i&&s.dom7LiveListeners&&(a=s.dom7LiveListeners[e]),a&&a.length)for(let t=a.length-1;t>=0;t-=1){const i=a[t];r&&i.listener===r||r&&i.listener&&i.listener.dom7proxy&&i.listener.dom7proxy===r?(s.removeEventListener(e,i.proxyListener,n),a.splice(t,1)
vendor: 5,365 bytes, line 2
2):r||(s.removeEventListener(e,i.proxyListener,n),a.splice(t,1))}}}return this},trigger:function(...t){const e=o(),i=t[0].split(" "),r=t[1];for(let n=0;n<i.length;n+=1){const s=i[n];for(let i=0;i<this.length;i+=1){const n=this[i];if(e.CustomEvent){const i=new e.CustomEvent(s,{detail:r,bubbles:!0,cancelable:!0});n.dom7EventData=t.filter(((t,e)=>e>0)),n.dispatchEvent(i),n.dom7EventData=[],delete n.dom7EventData}}}return this},transitionEnd:function(t){const e=this;return t&&e.on("transitionend",(function i(r){r.target===this&&(t.call(this,r),e.off("transitionend",i))})),this},outerWidth:function(t){if(this.length>0){if(t){const t=this.styles();return this[0].offsetWidth+parseFloat(t.getPropertyValue("margin-right"))+parseFloat(t.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function(t){if(this.length>0){if(t){const t=this.styles();return this[0].offsetHeight+parseFloat(t.getPropertyValue("margin-top"))+parseFloat(t.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},styles:function(){const t=o();return this[0]?t.getComputedStyle(this[0],null):{}},offset:function(){if(this.length>0){const t=o(),e=s(),i=this[0],r=i.getBoundingClientRect(),n=e.body,a=i.clientTop||n.clientTop||0,l=i.clientLeft||n.clientLeft||0,h=i===t?t.scrollY:i.scrollTop,c=i===t?t.scrollX:i.scrollLeft;return{top:r.top+h-a,left:r.left+c-l}}return null},css:function(t,e){const i=o();let r;if(1===arguments.length){if("string"!=typeof t){for(r=0;r<this.length;r+=1)for(const e in t)this[r].style[e]=t[e];return this}if(this[0])return i.getComputedStyle(this[0],null).getPropertyValue(t)}if(2===arguments.length&&"string"==typeof t){for(r=0;r<this.length;r+=1)this[r].style[t]=e;return this}return this},each:function(t){return t?(this.forEach(((e,i)=>{t.apply(e,[e,i])})),this):this},html:function(t){if(void 0===t)return this[0]?this[0].innerHTML:null;for(let e=0;e<this.length;e+=1)this[e].innerHTML=t;return this},text:function(t){if(void 0===t)return this[0]?this[0].textContent.trim():null;for(let e=0;e<this.length;e+=1)this[e].textContent=t;return this},is:function(t){const e=o(),i=s(),r=this[0];let n,a;if(!r||void 0===t)return!1;if("string"==typeof t){if(r.matches)return r.matches(t);if(r.webkitMatchesSelector)return r.webkitMatchesSelector(t);if(r.msMatchesSelector)return r.msMatchesSelector(t);for(n=u(t),a=0;a<n.length;a+=1)if(n[a]===r)return!0;return!1}if(t===i)return r===i;if(t===e)return r===e;if(t.nodeType||t instanceof l){for(n=t.nodeType?[t]:t,a=0;a<n.length;a+=1)if(n[a]===r)return!0;return!1}return!1},index:function(){let t,e=this[0];if(e){for(t=0;null!==(e=e.previousSibling);)1===e.nodeType&&(t+=1);return t}},eq:function(t){if(void 0===t)return this;const e=this.length;if(t>e-1)return u([]);if(t<0){const i=e+t;return u(i<0?[]:[this[i]])}return u([this[t]])},append:function(...t){let e;const i=s();for(let r=0;r<t.length;r+=1){e=t[r];for(let t=0;t<this.length;t+=1)if("string"==typeof e){const r=i.createElement("div");for(r.innerHTML=e;r.firstChild;)this[t].appendChild(r.firstChild)}else if(e instanceof l)for(let i=0;i<e.length;i+=1)this[t].appendChild(e[i]);else this[t].appendChild(e)}return this},prepend:function(t){const e=s();let i,r;for(i=0;i<this.length;i+=1)if("string"==typeof t){const n=e.createElement("div");for(n.innerHTML=t,r=n.childNodes.length-1;r>=0;r-=1)this[i].insertBefore(n.childNodes[r],this[i].childNodes[0])}else if(t instanceof l)for(r=0;r<t.length;r+=1)this[i].insertBefore(t[r],this[i].childNodes[0]);else this[i].insertBefore(t,this[i].childNodes[0]);return this},next:function(t){return this.length>0?t?this[0].nextElementSibling&&u(this[0].nextElementSibling).is(t)?u([this[0].nextElementSibling]):u([]):this[0].nextElementSibling?u([this[0].nextElementSibling]):u([]):u([])},nextAll:function(t){const e=[];let i=this[0];if(!i)return u([]);for(;i.nextElementSibling;){const r=i.nextElementSibling;t?u(r).is(t)&&e.push(r):e.push(r),i=r}return u(e)},prev:function(t){if(this.length>0){const e=this[0];return t?e.previousElementSibling&&u(e.previousElementSibling).is(t)?u([e.previousElementSibling]):u([]):e.previousElementSibling?u([e.previousElementSibling]):u([])}return u([])},prevAll:function(t){const e=[];let i=this[0];if(!i)return u([]);for(;i.previousElementSibling;){const r=i.previousElementSibling;t?u(r).is(t)&&e.push(r):e.push(r),i=r}return u(e)},parent:function(t){const e=[];for(let i=0;i<this.length;i+=1)null!==this[i].parentNode&&(t?u(this[i].parentNode).is(t)&&e.push(this[i].parentNode):e.push(this[i].parentNode));return u(e)},parents:function(t){const e=[];for(let i=0;i<this.length;i+=1){let r=this[i].parentNode;for(;r;)t?u(r).is(t)&&e.push(r):e.push(r),r=r.parentNode}return u(e)},closest:function(t){let e=this;return void 0===t?u([]):(e.is(t)||(e=e.parents(t).eq(0)),e)},find:function(t){const e=[];for(let i=0;i<this.length;i+=1){const r=this[i].querySelectorAll(t);for(let t=0;t<r.length;t+=1)e.push(r[t])}return u(e)},children:function(t){const e=[];for(let i=0;i<this.length;i+=1){const r=this[i].children;for(let i=0;i<r.length;i+=1)t&&!u(r[i]).is(t)||e.push(r[i])}return u(e)},filter:function(t){return u(c(this,t))},remove:function(){for(let t=0;t<this.length;t+=1)this[t].parentNode&&this[t].parentNode.removeChild(this[t]);return this}};Object.keys(f).forEach((t=>{Object.defineProperty(u.fn,t,{value:f[t],writable:!0})}
vendor: 15,724 bytes, line 2
2));var m=u;function g(t,e=0){return setTimeout(t,e)}function y(){return Date.now()}function v(t){return"object"==typeof t&&null!==t&&t.constructor&&"Object"===Object.prototype.toString.call(t).slice(8,-1)}function x(...t){const e=Object(t[0]),i=["__proto__","constructor","prototype"];for(let n=1;n<t.length;n+=1){const s=t[n];if(null!=s&&(r=s,!("undefined"!=typeof window&&void 0!==window.HTMLElement?r instanceof HTMLElement:r&&(1===r.nodeType||11===r.nodeType)))){const t=Object.keys(Object(s)).filter((t=>i.indexOf(t)<0));for(let i=0,r=t.length;i<r;i+=1){const r=t[i],n=Object.getOwnPropertyDescriptor(s,r);void 0!==n&&n.enumerable&&(v(e[r])&&v(s[r])?s[r].__swiper__?e[r]=s[r]:x(e[r],s[r]):!v(e[r])&&v(s[r])?(e[r]={},s[r].__swiper__?e[r]=s[r]:x(e[r],s[r])):e[r]=s[r])}}}var r;return e}function _(t,e,i){t.style.setProperty(e,i)}function b({swiper:t,targetPosition:e,side:i}){const r=o(),n=-t.translate;let s,a=null;const l=t.params.speed;t.wrapperEl.style.scrollSnapType="none",r.cancelAnimationFrame(t.cssModeFrameID);const h=e>n?"next":"prev",c=(t,e)=>"next"===h&&t>=e||"prev"===h&&t<=e,u=()=>{s=(new Date).getTime(),null===a&&(a=s);const o=Math.max(Math.min((s-a)/l,1),0),h=.5-Math.cos(o*Math.PI)/2;let d=n+h*(e-n);if(c(d,e)&&(d=e),t.wrapperEl.scrollTo({[i]:d}),c(d,e))return t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout((()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[i]:d})})),void r.cancelAnimationFrame(t.cssModeFrameID);t.cssModeFrameID=r.requestAnimationFrame(u)};u()}let S,E,w;function T(){return S||(S=function(){const t=o(),e=s();return{smoothScroll:e.documentElement&&"scrollBehavior"in e.documentElement.style,touch:!!("ontouchstart"in t||t.DocumentTouch&&e instanceof t.DocumentTouch),passiveListener:function(){let e=!1;try{const i=Object.defineProperty({},"passive",{get(){e=!0}});t.addEventListener("testPassiveListener",null,i)}catch(t){}return e}(),gestures:"ongesturestart"in t}}()),S}var A={on(t,e,i){const r=this;if(!r.eventsListeners||r.destroyed)return r;if("function"!=typeof e)return r;const n=i?"unshift":"push";return t.split(" ").forEach((t=>{r.eventsListeners[t]||(r.eventsListeners[t]=[]),r.eventsListeners[t][n](e)})),r},once(t,e,i){const r=this;if(!r.eventsListeners||r.destroyed)return r;if("function"!=typeof e)return r;function n(...i){r.off(t,n),n.__emitterProxy&&delete n.__emitterProxy,e.apply(r,i)}return n.__emitterProxy=e,r.on(t,n,i)},onAny(t,e){const i=this;if(!i.eventsListeners||i.destroyed)return i;if("function"!=typeof t)return i;const r=e?"unshift":"push";return i.eventsAnyListeners.indexOf(t)<0&&i.eventsAnyListeners[r](t),i},offAny(t){const e=this;if(!e.eventsListeners||e.destroyed)return e;if(!e.eventsAnyListeners)return e;const i=e.eventsAnyListeners.indexOf(t);return i>=0&&e.eventsAnyListeners.splice(i,1),e},off(t,e){const i=this;return!i.eventsListeners||i.destroyed?i:i.eventsListeners?(t.split(" ").forEach((t=>{void 0===e?i.eventsListeners[t]=[]:i.eventsListeners[t]&&i.eventsListeners[t].forEach(((r,n)=>{(r===e||r.__emitterProxy&&r.__emitterProxy===e)&&i.eventsListeners[t].splice(n,1)}))})),i):i},emit(...t){const e=this;if(!e.eventsListeners||e.destroyed)return e;if(!e.eventsListeners)return e;let i,r,n;return"string"==typeof t[0]||Array.isArray(t[0])?(i=t[0],r=t.slice(1,t.length),n=e):(i=t[0].events,r=t[0].data,n=t[0].context||e),r.unshift(n),(Array.isArray(i)?i:i.split(" ")).forEach((t=>{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach((e=>{e.apply(n,[t,...r])})),e.eventsListeners&&e.eventsListeners[t]&&e.eventsListeners[t].forEach((t=>{t.apply(n,r)}))})),e}},M={updateSize:function(){const t=this;let e,i;const r=t.$el;e=void 0!==t.params.width&&null!==t.params.width?t.params.width:r[0].clientWidth,i=void 0!==t.params.height&&null!==t.params.height?t.params.height:r[0].clientHeight,0===e&&t.isHorizontal()||0===i&&t.isVertical()||(e=e-parseInt(r.css("padding-left")||0,10)-parseInt(r.css("padding-right")||0,10),i=i-parseInt(r.css("padding-top")||0,10)-parseInt(r.css("padding-bottom")||0,10),Number.isNaN(e)&&(e=0),Number.isNaN(i)&&(i=0),Object.assign(t,{width:e,height:i,size:t.isHorizontal()?e:i}))},updateSlides:function(){const t=this;function e(e){return t.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}function i(t,i){return parseFloat(t.getPropertyValue(e(i))||0)}const r=t.params,{$wrapperEl:n,size:s,rtlTranslate:a,wrongRTL:o}=t,l=t.virtual&&r.virtual.enabled,h=l?t.virtual.slides.length:t.slides.length,c=n.children(`.${t.params.slideClass}`),u=l?t.virtual.slides.length:c.length;let d=[];const p=[],f=[];let m=r.slidesOffsetBefore;"function"==typeof m&&(m=r.slidesOffsetBefore.call(t));let g=r.slidesOffsetAfter;"function"==typeof g&&(g=r.slidesOffsetAfter.call(t));const y=t.snapGrid.length,v=t.slidesGrid.length;let x=r.spaceBetween,b=-m,S=0,E=0;if(void 0===s)return;"string"==typeof x&&x.indexOf("%")>=0&&(x=parseFloat(x.replace("%",""))/100*s),t.virtualSize=-x,a?c.css({marginLeft:"",marginBottom:"",marginTop:""}):c.css({marginRight:"",marginBottom:"",marginTop:""}),r.centeredSlides&&r.cssMode&&(_(t.wrapperEl,"--swiper-centered-offset-before",""),_(t.wrapperEl,"--swiper-centered-offset-after",""));const w=r.grid&&r.grid.rows>1&&t.grid;let T;w&&t.grid.initSlides(u);const A="auto"===r.slidesPerView&&r.breakpoints&&Object.keys(r.breakpoints).filter((t=>void 0!==r.breakpoints[t].slidesPerView)).length>0;for(let n=0;n<u;n+=1){T=0;const a=c.eq(n);if(w&&t.grid.updateSlide(n,a,u,e),"none"!==a.css("display")){if("auto"===r.slidesPerView){A&&(c[n].style[e("width")]="");const s=getComputedStyle(a[0]),o=a[0].style.transform,l=a[0].style.webkitTransform;if(o&&(a[0].style.transform="none"),l&&(a[0].style.webkitTransform="none"),r.roundLengths)T=t.isHorizontal()?a.outerWidth(!0):a.outerHeight(!0);else{const t=i(s,"width"),e=i(s,"padding-left"),r=i(s,"padding-right"),n=i(s,"margin-left"),o=i(s,"margin-right"),l=s.getPropertyValue("box-sizing");if(l&&"border-box"===l)T=t+n+o;else{const{clientWidth:i,offsetWidth:s}=a[0];T=t+e+r+n+o+(s-i)}}o&&(a[0].style.transform=o),l&&(a[0].style.webkitTransform=l),r.roundLengths&&(T=Math.floor(T))}else T=(s-(r.slidesPerView-1)*x)/r.slidesPerView,r.roundLengths&&(T=Math.floor(T)),c[n]&&(c[n].style[e("width")]=`${T}px`);c[n]&&(c[n].swiperSlideSize=T),f.push(T),r.centeredSlides?(b=b+T/2+S/2+x,0===S&&0!==n&&(b=b-s/2-x),0===n&&(b=b-s/2-x),Math.abs(b)<.001&&(b=0),r.roundLengths&&(b=Math.floor(b)),E%r.slidesPerGroup==0&&d.push(b),p.push(b)):(r.roundLengths&&(b=Math.floor(b)),(E-Math.min(t.params.slidesPerGroupSkip,E))%t.params.slidesPerGroup==0&&d.push(b),p.push(b),b=b+T+x),t.virtualSize+=T+x,S=T,E+=1}}if(t.virtualSize=Math.max(t.virtualSize,s)+g,a&&o&&("slide"===r.effect||"coverflow"===r.effect)&&n.css({width:`${t.virtualSize+r.spaceBetween}px`}),r.setWrapperSize&&n.css({[e("width")]:`${t.virtualSize+r.spaceBetween}px`}),w&&t.grid.updateWrapperSize(T,d,e),!r.centeredSlides){const e=[];for(let i=0;i<d.length;i+=1){let n=d[i];r.roundLengths&&(n=Math.floor(n)),d[i]<=t.virtualSize-s&&e.push(n)}d=e,Math.floor(t.virtualSize-s)-Math.floor(d[d.length-1])>1&&d.push(t.virtualSize-s)}if(0===d.length&&(d=[0]),0!==r.spaceBetween){const i=t.isHorizontal()&&a?"marginLeft":e("marginRight");c.filter(((t,e)=>!r.cssMode||e!==c.length-1)).css({[i]:`${x}px`})}if(r.centeredSlides&&r.centeredSlidesBounds){let t=0;f.forEach((e=>{t+=e+(r.spaceBetween?r.spaceBetween:0)})),t-=r.spaceBetween;const e=t-s;d=d.map((t=>t<0?-m:t>e?e+g:t))}if(r.centerInsufficientSlides){let t=0;if(f.forEach((e=>{t+=e+(r.spaceBetween?r.spaceBetween:0)})),t-=r.spaceBetween,t<s){const e=(s-t)/2;d.forEach(((t,i)=>{d[i]=t-e})),p.forEach(((t,i)=>{p[i]=t+e}))}}if(Object.assign(t,{slides:c,snapGrid:d,slidesGrid:p,slidesSizesGrid:f}),r.centeredSlides&&r.cssMode&&!r.centeredSlidesBounds){_(t.wrapperEl,"--swiper-centered-offset-before",-d[0]+"px"),_(t.wrapperEl,"--swiper-centered-offset-after",t.size/2-f[f.length-1]/2+"px");const e=-t.snapGrid[0],i=-t.slidesGrid[0];t.snapGrid=t.snapGrid.map((t=>t+e)),t.slidesGrid=t.slidesGrid.map((t=>t+i))}if(u!==h&&t.emit("slidesLengthChange"),d.length!==y&&(t.params.watchOverflow&&t.checkOverflow(),t.emit("snapGridLengthChange")),p.length!==v&&t.emit("slidesGridLengthChange"),r.watchSlidesProgress&&t.updateSlidesOffset(),!(l||r.cssMode||"slide"!==r.effect&&"fade"!==r.effect)){const e=`${r.containerModifierClass}backface-hidden`,i=t.$el.hasClass(e);u<=r.maxBackfaceHiddenSlides?i||t.$el.addClass(e):i&&t.$el.removeClass(e)}},updateAutoHeight:function(t){const e=this,i=[],r=e.virtual&&e.params.virtual.enabled;let n,s=0;"number"==typeof t?e.setTransition(t):!0===t&&e.setTransition(e.params.speed);const a=t=>r?e.slides.filter((e=>parseInt(e.getAttribute("data-swiper-slide-index"),10)===t))[0]:e.slides.eq(t)[0];if("auto"!==e.params.slidesPerView&&e.params.slidesPerView>1)if(e.params.centeredSlides)(e.visibleSlides||m([])).each((t=>{i.push(t)}));else for(n=0;n<Math.ceil(e.params.slidesPerView);n+=1){const t=e.activeIndex+n;if(t>e.slides.length&&!r)break;i.push(a(t))}else i.push(a(e.activeIndex));for(n=0;n<i.length;n+=1)if(void 0!==i[n]){const t=i[n].offsetHeight;s=t>s?t:s}(s||0===s)&&e.$wrapperEl.css("height",`${s}px`)},updateSlidesOffset:function(){const t=this,e=t.slides;for(let i=0;i<e.length;i+=1)e[i].swiperSlideOffset=t.isHorizontal()?e[i].offsetLeft:e[i].offsetTop},updateSlidesProgress:function(t=this&&this.translate||0){const e=this,i=e.params,{slides:r,rtlTranslate:n,snapGrid:s}=e;if(0===r.length)return;void 0===r[0].swiperSlideOffset&&e.updateSlidesOffset();let a=-t;n&&(a=t),r.removeClass(i.slideVisibleClass),e.visibleSlidesIndexes=[],e.visibleSlides=[];for(let t=0;t<r.length;t+=1){const o=r[t];let l=o.swiperSlideOffset;i.cssMode&&i.centeredSlides&&(l-=r[0].swiperSlideOffset);const h=(a+(i.centeredSlides?e.minTranslate():0)-l)/(o.swiperSlideSize+i.spaceBetween),c=(a-s[0]+(i.centeredSlides?e.minTranslate():0)-l)/(o.swiperSlideSize+i.spaceBetween),u=-(a-l),d=u+e.slidesSizesGrid[t];(u>=0&&u<e.size-1||d>1&&d<=e.size||u<=0&&d>=e.size)&&(e.visibleSlides.push(o),e.visibleSlidesIndexes.push(t),r.eq(t).addClass(i.slideVisibleClass)),o.progress=n?-h:h,o.originalProgress=n?-c:c}e.visibleSlides=m(e.visibleSlides)},updateProgress:function(t){const e=this;if(void 0===t){const i=e.rtlTranslate?-1:1;t=e&&e.translate&&e.translate*i||0}const i=e.params,r=e.maxTranslate()-e.minTranslate();let{progress:n,isBeginning:s,isEnd:a}=e;const o=s,l=a;0===r?(n=0,s=!0,a=!0):(n=(t-e.minTranslate())/r,s=n<=0,a=n>=1),Object.assign(e,{progress:n,isBeginning:s,isEnd:a}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&e.updateSlidesProgress(t),s&&!o&&e.emit("reachBeginning toEdge"),a&&!l&&e.emit("reachEnd toEdge"),(o&&!s||l&&!a)&&e.emit("fromEdge"),e.emit("progress",n)},updateSlidesClasses:function(){const t=this,{slides:e,params:i,$wrapperEl:r,activeIndex:n,realIndex:s}=t,a=t.virtual&&i.virtual.enabled;let o;e.removeClass(`${i.slideActiveClass} ${i.slideNextClass} ${i.slidePrevClass} ${i.slideDuplicateActiveClass} ${i.slideDuplicateNextClass} ${i.slideDuplicatePrevClass}`),o=a?t.$wrapperEl.find(`.${i.slideClass}[data-swiper-slide-index="${n}"]`):e.eq(n),o.addClass(i.slideActiveClass),i.loop&&(o.hasClass(i.slideDuplicateClass)?r.children(`.${i.slideClass}:not(.${i.slideDuplicateClass})[data-swiper-slide-index="${s}"]`).addClass(i.slideDuplicateActiveClass):r.children(`.${i.slideClass}.${i.slideDuplicateClass}[data-swiper-slide-index="${s}"]`).addClass(i.slideDuplicateActiveClass));let l=o.nextAll(`.${i.slideClass}`).eq(0).addClass(i.slideNextClass);i.loop&&0===l.length&&(l=e.eq(0),l.addClass(i.slideNextClass));let h=o.prevAll(`.${i.slideClass}`).eq(0).addClass(i.slidePrevClass);i.loop&&0===h.length&&(h=e.eq(-1),h.addClass(i.slidePrevClass)),i.loop&&(l.hasClass(i.slideDuplicateClass)?r.children(`.${i.slideClass}:not(.${i.slideDuplicateClass})[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicateNextClass):r.children(`.${i.slideClass}.${i.slideDuplicateClass}[data-swiper-slide-index="${l.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicateNextClass),h.hasClass(i.slideDuplicateClass)?r.children(`.${i.slideClass}:not(.${i.slideDuplicateClass})[data-swiper-slide-index="${h.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicatePrevClass):r.children(`.${i.slideClass}.${i.slideDuplicateClass}[data-swiper-slide-index="${h.attr("data-swiper-slide-index")}"]`).addClass(i.slideDuplicatePrevClass)),t.emitSlidesClasses()},updateActiveIndex:function(t){const e=this,i=e.rtlTranslate?e.translate:-e.translate,{slidesGrid:r,snapGrid:n,params:s,activeIndex:a,realIndex:o,snapIndex:l}=e;let h,c=t;if(void 0===c){for(let t=0;t<r.length;t+=1)void 0!==r[t+1]?i>=r[t]&&i<r[t+1]-(r[t+1]-r[t])/2?c=t:i>=r[t]&&i<r[t+1]&&(c=t+1):i>=r[t]&&(c=t);s.normalizeSlideIndex&&(c<0||void 0===c)&&(c=0)}if(n.indexOf(i)>=0)h=n.indexOf(i);else{const t=Math.min(s.slidesPerGroupSkip,c);h=t+Math.floor((c-t)/s.slidesPerGroup)}if(h>=n.length&&(h=n.length-1),c===a)return void(h!==l&&(e.snapIndex=h,e.emit("snapIndexChange")));const u=parseInt(e.slides.eq(c).attr("data-swiper-slide-index")||c,10);Object.assign(e,{snapIndex:h,realIndex:u,previousIndex:a,activeIndex:c}),e.emit("activeIndexChange"),e.emit("snapIndexChange"),o!==u&&e.emit("realIndexChange"),(e.initialized||e.params.runCallbacksOnInit)&&e.emit("slideChange")},updateClickedSlide:function(t){const e=this,i=e.params,r=m(t).closest(`.${i.slideClass}`)[0];let n,s=!1;if(r)for(let t=0;t<e.slides.length;t+=1)if(e.slides[t]===r){s=!0,n=t;break}if(!r||!s)return e.clickedSlide=void 0,void(e.clickedIndex=void 0);e.clickedSlide=r,e.virtual&&e.params.virtual.enabled?e.clickedIndex=parseInt(m(r).attr("data-swiper-slide-index"),10):e.clickedIndex=n,i.slideToClickedSlide&&void 0!==e.clickedIndex&&e.clickedIndex!==e.activeIndex&&e.slideToClickedSlide()}},P={getTranslate:function(t=(this.isHorizontal()?"x":"y")){const{params:e,rtlTranslate:i,translate:r,$wrapperEl:n}=this;if(e.virtualTranslate)return i?-r:r;if(e.cssMode)return r;let s=function(t,e="x"){const i=o();let r,n,s;const a=function(t){const e=o();let i;return e.getComputedStyle&&(i=e.getComputedStyle(t,null)),!i&&t.currentStyle&&(i=t.currentStyle),i||(i=t.style),i}(t);return i.WebKitCSSMatrix?(n=a.transform||a.webkitTransform,n.split(",").length>6&&(n=n.split(", ").map((t=>t.replace(",","."))).join(", ")),s=new i.WebKitCSSMatrix("none"===n?"":n)):(s=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=s.toString().split(",")),"x"===e&&(n=i.WebKitCSSMatrix?s.m41:16===r.length?parseFloat(r[12]):parseFloat(r[4])),"y"===e&&(n=i.WebKitCSSMatrix?s.m42:16===r.length?parseFloat(r[13]):parseFloat(r[5])),n||0}(n[0],t);return i&&(s=-s),s||0},setTranslate:function(t,e){const i=this,{rtlTranslate:r,params:n,$wrapperEl:s,wrapperEl:a,progress:o}=i;let l,h=0,c=0;i.isHorizontal()?h=r?-t:t:c=t,n.roundLengths&&(h=Math.floor(h),c=Math.floor(c)),n.cssMode?a[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-h:-c:n.virtualTranslate||s.transform(`translate3d(${h}px, ${c}px, 0px)`),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?h:c;const u=i.maxTranslate()-i.minTranslate();l=0===u?0:(t-i.minTranslate())/u,l!==o&&i.updateProgress(t),i.emit("setTranslate",i.translate,e)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(t=0,e=this.params.speed,i=!0,r=!0,n){const s=this,{params:a,wrapperEl:o}=s;
vendor: 13,363 bytes, line 2
2if(s.animating&&a.preventInteractionOnTransition)return!1;const l=s.minTranslate(),h=s.maxTranslate();let c;if(c=r&&t>l?l:r&&t<h?h:t,s.updateProgress(c),a.cssMode){const t=s.isHorizontal();if(0===e)o[t?"scrollLeft":"scrollTop"]=-c;else{if(!s.support.smoothScroll)return b({swiper:s,targetPosition:-c,side:t?"left":"top"}),!0;o.scrollTo({[t?"left":"top"]:-c,behavior:"smooth"})}return!0}return 0===e?(s.setTransition(0),s.setTranslate(c),i&&(s.emit("beforeTransitionStart",e,n),s.emit("transitionEnd"))):(s.setTransition(e),s.setTranslate(c),i&&(s.emit("beforeTransitionStart",e,n),s.emit("transitionStart")),s.animating||(s.animating=!0,s.onTranslateToWrapperTransitionEnd||(s.onTranslateToWrapperTransitionEnd=function(t){s&&!s.destroyed&&t.target===this&&(s.$wrapperEl[0].removeEventListener("transitionend",s.onTranslateToWrapperTransitionEnd),s.$wrapperEl[0].removeEventListener("webkitTransitionEnd",s.onTranslateToWrapperTransitionEnd),s.onTranslateToWrapperTransitionEnd=null,delete s.onTranslateToWrapperTransitionEnd,i&&s.emit("transitionEnd"))}),s.$wrapperEl[0].addEventListener("transitionend",s.onTranslateToWrapperTransitionEnd),s.$wrapperEl[0].addEventListener("webkitTransitionEnd",s.onTranslateToWrapperTransitionEnd))),!0}};function C({swiper:t,runCallbacks:e,direction:i,step:r}){const{activeIndex:n,previousIndex:s}=t;let a=i;if(a||(a=n>s?"next":n<s?"prev":"reset"),t.emit(`transition${r}`),e&&n!==s){if("reset"===a)return void t.emit(`slideResetTransition${r}`);t.emit(`slideChangeTransition${r}`),"next"===a?t.emit(`slideNextTransition${r}`):t.emit(`slidePrevTransition${r}`)}}var k={slideTo:function(t=0,e=this.params.speed,i=!0,r,n){if("number"!=typeof t&&"string"!=typeof t)throw new Error(`The 'index' argument cannot have type other than 'number' or 'string'. [${typeof t}] given.`);if("string"==typeof t){const e=parseInt(t,10);if(!isFinite(e))throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${t}] given.`);t=e}const s=this;let a=t;a<0&&(a=0);const{params:o,snapGrid:l,slidesGrid:h,previousIndex:c,activeIndex:u,rtlTranslate:d,wrapperEl:p,enabled:f}=s;if(s.animating&&o.preventInteractionOnTransition||!f&&!r&&!n)return!1;const m=Math.min(s.params.slidesPerGroupSkip,a);let g=m+Math.floor((a-m)/s.params.slidesPerGroup);g>=l.length&&(g=l.length-1);const y=-l[g];if(o.normalizeSlideIndex)for(let t=0;t<h.length;t+=1){const e=-Math.floor(100*y),i=Math.floor(100*h[t]),r=Math.floor(100*h[t+1]);void 0!==h[t+1]?e>=i&&e<r-(r-i)/2?a=t:e>=i&&e<r&&(a=t+1):e>=i&&(a=t)}if(s.initialized&&a!==u){if(!s.allowSlideNext&&y<s.translate&&y<s.minTranslate())return!1;if(!s.allowSlidePrev&&y>s.translate&&y>s.maxTranslate()&&(u||0)!==a)return!1}let v;if(a!==(c||0)&&i&&s.emit("beforeSlideChangeStart"),s.updateProgress(y),v=a>u?"next":a<u?"prev":"reset",d&&-y===s.translate||!d&&y===s.translate)return s.updateActiveIndex(a),o.autoHeight&&s.updateAutoHeight(),s.updateSlidesClasses(),"slide"!==o.effect&&s.setTranslate(y),"reset"!==v&&(s.transitionStart(i,v),s.transitionEnd(i,v)),!1;if(o.cssMode){const t=s.isHorizontal(),i=d?y:-y;if(0===e){const e=s.virtual&&s.params.virtual.enabled;e&&(s.wrapperEl.style.scrollSnapType="none",s._immediateVirtual=!0),p[t?"scrollLeft":"scrollTop"]=i,e&&requestAnimationFrame((()=>{s.wrapperEl.style.scrollSnapType="",s._swiperImmediateVirtual=!1}))}else{if(!s.support.smoothScroll)return b({swiper:s,targetPosition:i,side:t?"left":"top"}),!0;p.scrollTo({[t?"left":"top"]:i,behavior:"smooth"})}return!0}return s.setTransition(e),s.setTranslate(y),s.updateActiveIndex(a),s.updateSlidesClasses(),s.emit("beforeTransitionStart",e,r),s.transitionStart(i,v),0===e?s.transitionEnd(i,v):s.animating||(s.animating=!0,s.onSlideToWrapperTransitionEnd||(s.onSlideToWrapperTransitionEnd=function(t){s&&!s.destroyed&&t.target===this&&(s.$wrapperEl[0].removeEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.$wrapperEl[0].removeEventListener("webkitTransitionEnd",s.onSlideToWrapperTransitionEnd),s.onSlideToWrapperTransitionEnd=null,delete s.onSlideToWrapperTransitionEnd,s.transitionEnd(i,v))}),s.$wrapperEl[0].addEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.$wrapperEl[0].addEventListener("webkitTransitionEnd",s.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(t=0,e=this.params.speed,i=!0,r){if("string"==typeof t){const e=parseInt(t,10);if(!isFinite(e))throw new Error(`The passed-in 'index' (string) couldn't be converted to 'number'. [${t}] given.`);t=e}const n=this;let s=t;return n.params.loop&&(s+=n.loopedSlides),n.slideTo(s,e,i,r)},slideNext:function(t=this.params.speed,e=!0,i){const r=this,{animating:n,enabled:s,params:a}=r;if(!s)return r;let o=a.slidesPerGroup;"auto"===a.slidesPerView&&1===a.slidesPerGroup&&a.slidesPerGroupAuto&&(o=Math.max(r.slidesPerViewDynamic("current",!0),1));const l=r.activeIndex<a.slidesPerGroupSkip?1:o;if(a.loop){if(n&&a.loopPreventsSlide)return!1;r.loopFix(),r._clientLeft=r.$wrapperEl[0].clientLeft}return a.rewind&&r.isEnd?r.slideTo(0,t,e,i):r.slideTo(r.activeIndex+l,t,e,i)},slidePrev:function(t=this.params.speed,e=!0,i){const r=this,{params:n,animating:s,snapGrid:a,slidesGrid:o,rtlTranslate:l,enabled:h}=r;if(!h)return r;if(n.loop){if(s&&n.loopPreventsSlide)return!1;r.loopFix(),r._clientLeft=r.$wrapperEl[0].clientLeft}function c(t){return t<0?-Math.floor(Math.abs(t)):Math.floor(t)}const u=c(l?r.translate:-r.translate),d=a.map((t=>c(t)));let p=a[d.indexOf(u)-1];if(void 0===p&&n.cssMode){let t;a.forEach(((e,i)=>{u>=e&&(t=i)})),void 0!==t&&(p=a[t>0?t-1:t])}let f=0;if(void 0!==p&&(f=o.indexOf(p),f<0&&(f=r.activeIndex-1),"auto"===n.slidesPerView&&1===n.slidesPerGroup&&n.slidesPerGroupAuto&&(f=f-r.slidesPerViewDynamic("previous",!0)+1,f=Math.max(f,0))),n.rewind&&r.isBeginning){const n=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(n,t,e,i)}return r.slideTo(f,t,e,i)},slideReset:function(t=this.params.speed,e=!0,i){return this.slideTo(this.activeIndex,t,e,i)},slideToClosest:function(t=this.params.speed,e=!0,i,r=.5){const n=this;let s=n.activeIndex;const a=Math.min(n.params.slidesPerGroupSkip,s),o=a+Math.floor((s-a)/n.params.slidesPerGroup),l=n.rtlTranslate?n.translate:-n.translate;if(l>=n.snapGrid[o]){const t=n.snapGrid[o];l-t>(n.snapGrid[o+1]-t)*r&&(s+=n.params.slidesPerGroup)}else{const t=n.snapGrid[o-1];l-t<=(n.snapGrid[o]-t)*r&&(s-=n.params.slidesPerGroup)}return s=Math.max(s,0),s=Math.min(s,n.slidesGrid.length-1),n.slideTo(s,t,e,i)},slideToClickedSlide:function(){const t=this,{params:e,$wrapperEl:i}=t,r="auto"===e.slidesPerView?t.slidesPerViewDynamic():e.slidesPerView;let n,s=t.clickedIndex;if(e.loop){if(t.animating)return;n=parseInt(m(t.clickedSlide).attr("data-swiper-slide-index"),10),e.centeredSlides?s<t.loopedSlides-r/2||s>t.slides.length-t.loopedSlides+r/2?(t.loopFix(),s=i.children(`.${e.slideClass}[data-swiper-slide-index="${n}"]:not(.${e.slideDuplicateClass})`).eq(0).index(),g((()=>{t.slideTo(s)}))):t.slideTo(s):s>t.slides.length-r?(t.loopFix(),s=i.children(`.${e.slideClass}[data-swiper-slide-index="${n}"]:not(.${e.slideDuplicateClass})`).eq(0).index(),g((()=>{t.slideTo(s)}))):t.slideTo(s)}else t.slideTo(s)}},I={loopCreate:function(){const t=this,e=s(),{params:i,$wrapperEl:r}=t,n=r.children().length>0?m(r.children()[0].parentNode):r;n.children(`.${i.slideClass}.${i.slideDuplicateClass}`).remove();let a=n.children(`.${i.slideClass}`);if(i.loopFillGroupWithBlank){const t=i.slidesPerGroup-a.length%i.slidesPerGroup;if(t!==i.slidesPerGroup){for(let r=0;r<t;r+=1){const t=m(e.createElement("div")).addClass(`${i.slideClass} ${i.slideBlankClass}`);n.append(t)}a=n.children(`.${i.slideClass}`)}}"auto"!==i.slidesPerView||i.loopedSlides||(i.loopedSlides=a.length),t.loopedSlides=Math.ceil(parseFloat(i.loopedSlides||i.slidesPerView,10)),t.loopedSlides+=i.loopAdditionalSlides,t.loopedSlides>a.length&&t.params.loopedSlidesLimit&&(t.loopedSlides=a.length);const o=[],l=[];a.each(((t,e)=>{m(t).attr("data-swiper-slide-index",e)}));for(let e=0;e<t.loopedSlides;e+=1){const t=e-Math.floor(e/a.length)*a.length;l.push(a.eq(t)[0]),o.unshift(a.eq(a.length-t-1)[0])}for(let t=0;t<l.length;t+=1)n.append(m(l[t].cloneNode(!0)).addClass(i.slideDuplicateClass));for(let t=o.length-1;t>=0;t-=1)n.prepend(m(o[t].cloneNode(!0)).addClass(i.slideDuplicateClass))},loopFix:function(){const t=this;t.emit("beforeLoopFix");const{activeIndex:e,slides:i,loopedSlides:r,allowSlidePrev:n,allowSlideNext:s,snapGrid:a,rtlTranslate:o}=t;let l;t.allowSlidePrev=!0,t.allowSlideNext=!0;const h=-a[e]-t.getTranslate();e<r?(l=i.length-3*r+e,l+=r,t.slideTo(l,0,!1,!0)&&0!==h&&t.setTranslate((o?-t.translate:t.translate)-h)):e>=i.length-r&&(l=-i.length+e+r,l+=r,t.slideTo(l,0,!1,!0)&&0!==h&&t.setTranslate((o?-t.translate:t.translate)-h)),t.allowSlidePrev=n,t.allowSlideNext=s,t.emit("loopFix")},loopDestroy:function(){const{$wrapperEl:t,params:e,slides:i}=this;t.children(`.${e.slideClass}.${e.slideDuplicateClass},.${e.slideClass}.${e.slideBlankClass}`).remove(),i.removeAttr("data-swiper-slide-index")}};function D(t){const e=this,i=s(),r=o(),n=e.touchEventsData,{params:a,touches:l,enabled:h}=e;if(!h)return;if(e.animating&&a.preventInteractionOnTransition)return;!e.animating&&a.cssMode&&a.loop&&e.loopFix();let c=t;c.originalEvent&&(c=c.originalEvent);let u=m(c.target);if("wrapper"===a.touchEventsTarget&&!u.closest(e.wrapperEl).length)return;if(n.isTouchEvent="touchstart"===c.type,!n.isTouchEvent&&"which"in c&&3===c.which)return;if(!n.isTouchEvent&&"button"in c&&c.button>0)return;if(n.isTouched&&n.isMoved)return;const d=!!a.noSwipingClass&&""!==a.noSwipingClass,p=t.composedPath?t.composedPath():t.path;d&&c.target&&c.target.shadowRoot&&p&&(u=m(p[0]));const f=a.noSwipingSelector?a.noSwipingSelector:`.${a.noSwipingClass}`,g=!(!c.target||!c.target.shadowRoot);if(a.noSwiping&&(g?function(t,e=this){return function e(i){if(!i||i===s()||i===o())return null;i.assignedSlot&&(i=i.assignedSlot);const r=i.closest(t);return r||i.getRootNode?r||e(i.getRootNode().host):null}(e)}(f,u[0]):u.closest(f)[0]))return void(e.allowClick=!0);if(a.swipeHandler&&!u.closest(a.swipeHandler)[0])return;l.currentX="touchstart"===c.type?c.targetTouches[0].pageX:c.pageX,l.currentY="touchstart"===c.type?c.targetTouches[0].pageY:c.pageY;const v=l.currentX,x=l.currentY,_=a.edgeSwipeDetection||a.iOSEdgeSwipeDetection,b=a.edgeSwipeThreshold||a.iOSEdgeSwipeThreshold;if(_&&(v<=b||v>=r.innerWidth-b)){if("prevent"!==_)return;t.preventDefault()}if(Object.assign(n,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),l.startX=v,l.startY=x,n.touchStartTime=y(),e.allowClick=!0,e.updateSize(),e.swipeDirection=void 0,a.threshold>0&&(n.allowThresholdMove=!1),"touchstart"!==c.type){let t=!0;u.is(n.focusableElements)&&(t=!1,"SELECT"===u[0].nodeName&&(n.isTouched=!1)),i.activeElement&&m(i.activeElement).is(n.focusableElements)&&i.activeElement!==u[0]&&i.activeElement.blur();const r=t&&e.allowTouchMove&&a.touchStartPreventDefault;!a.touchStartForcePreventDefault&&!r||u[0].isContentEditable||c.preventDefault()}e.params.freeMode&&e.params.freeMode.enabled&&e.freeMode&&e.animating&&!a.cssMode&&e.freeMode.onTouchStart(),e.emit("touchStart",c)}function R(t){const e=s(),i=this,r=i.touchEventsData,{params:n,touches:a,rtlTranslate:o,enabled:l}=i;if(!l)return;let h=t;if(h.originalEvent&&(h=h.originalEvent),!r.isTouched)return void(r.startMoving&&r.isScrolling&&i.emit("touchMoveOpposite",h));if(r.isTouchEvent&&"touchmove"!==h.type)return;const c="touchmove"===h.type&&h.targetTouches&&(h.targetTouches[0]||h.changedTouches[0]),u="touchmove"===h.type?c.pageX:h.pageX,d="touchmove"===h.type?c.pageY:h.pageY;if(h.preventedByNestedSwiper)return a.startX=u,void(a.startY=d);if(!i.allowTouchMove)return m(h.target).is(r.focusableElements)||(i.allowClick=!1),void(r.isTouched&&(Object.assign(a,{startX:u,startY:d,currentX:u,currentY:d}),r.touchStartTime=y()));if(r.isTouchEvent&&n.touchReleaseOnEdges&&!n.loop)if(i.isVertical()){if(d<a.startY&&i.translate<=i.maxTranslate()||d>a.startY&&i.translate>=i.minTranslate())return r.isTouched=!1,void(r.isMoved=!1)}else if(u<a.startX&&i.translate<=i.maxTranslate()||u>a.startX&&i.translate>=i.minTranslate())return;if(r.isTouchEvent&&e.activeElement&&h.target===e.activeElement&&m(h.target).is(r.focusableElements))return r.isMoved=!0,void(i.allowClick=!1);if(r.allowTouchCallbacks&&i.emit("touchMove",h),h.targetTouches&&h.targetTouches.length>1)return;a.currentX=u,a.currentY=d;const p=a.currentX-a.startX,f=a.currentY-a.startY;if(i.params.threshold&&Math.sqrt(p**2+f**2)<i.params.threshold)return;if(void 0===r.isScrolling){let t;i.isHorizontal()&&a.currentY===a.startY||i.isVertical()&&a.currentX===a.startX?r.isScrolling=!1:p*p+f*f>=25&&(t=180*Math.atan2(Math.abs(f),Math.abs(p))/Math.PI,r.isScrolling=i.isHorizontal()?t>n.touchAngle:90-t>n.touchAngle)}if(r.isScrolling&&i.emit("touchMoveOpposite",h),void 0===r.startMoving&&(a.currentX===a.startX&&a.currentY===a.startY||(r.startMoving=!0)),r.isScrolling)return void(r.isTouched=!1);if(!r.startMoving)return;i.allowClick=!1,!n.cssMode&&h.cancelable&&h.preventDefault(),n.touchMoveStopPropagation&&!n.nested&&h.stopPropagation(),r.isMoved||(n.loop&&!n.cssMode&&i.loopFix(),r.startTranslate=i.getTranslate(),i.setTransition(0),i.animating&&i.$wrapperEl.trigger("webkitTransitionEnd transitionend"),r.allowMomentumBounce
vendor: 1,100 bytes, line 2
2=!1,!n.grabCursor||!0!==i.allowSlideNext&&!0!==i.allowSlidePrev||i.setGrabCursor(!0),i.emit("sliderFirstMove",h)),i.emit("sliderMove",h),r.isMoved=!0;let g=i.isHorizontal()?p:f;a.diff=g,g*=n.touchRatio,o&&(g=-g),i.swipeDirection=g>0?"prev":"next",r.currentTranslate=g+r.startTranslate;let v=!0,x=n.resistanceRatio;if(n.touchReleaseOnEdges&&(x=0),g>0&&r.currentTranslate>i.minTranslate()?(v=!1,n.resistance&&(r.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+r.startTranslate+g)**x)):g<0&&r.currentTranslate<i.maxTranslate()&&(v=!1,n.resistance&&(r.currentTranslate=i.maxTranslate()+1-(i.maxTranslate()-r.startTranslate-g)**x)),v&&(h.preventedByNestedSwiper=!0),!i.allowSlideNext&&"next"===i.swipeDirection&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!i.allowSlidePrev&&"prev"===i.swipeDirection&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),i.allowSlidePrev||i.allowSlideNext||(r.currentTranslate=r.startTranslate),n.threshold>0){if(!(Math.abs(g)>n.threshold||r.allowThresholdMove))return void(r.currentTranslate=r.startTranslate);
vendor: 5,269 bytes, line 2
2if(!r.allowThresholdMove)return r.allowThresholdMove=!0,a.startX=a.currentX,a.startY=a.currentY,r.currentTranslate=r.startTranslate,void(a.diff=i.isHorizontal()?a.currentX-a.startX:a.currentY-a.startY)}n.followFinger&&!n.cssMode&&((n.freeMode&&n.freeMode.enabled&&i.freeMode||n.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),i.params.freeMode&&n.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(r.currentTranslate),i.setTranslate(r.currentTranslate))}function O(t){const e=this,i=e.touchEventsData,{params:r,touches:n,rtlTranslate:s,slidesGrid:a,enabled:o}=e;if(!o)return;let l=t;if(l.originalEvent&&(l=l.originalEvent),i.allowTouchCallbacks&&e.emit("touchEnd",l),i.allowTouchCallbacks=!1,!i.isTouched)return i.isMoved&&r.grabCursor&&e.setGrabCursor(!1),i.isMoved=!1,void(i.startMoving=!1);r.grabCursor&&i.isMoved&&i.isTouched&&(!0===e.allowSlideNext||!0===e.allowSlidePrev)&&e.setGrabCursor(!1);const h=y(),c=h-i.touchStartTime;if(e.allowClick){const t=l.path||l.composedPath&&l.composedPath();e.updateClickedSlide(t&&t[0]||l.target),e.emit("tap click",l),c<300&&h-i.lastClickTime<300&&e.emit("doubleTap doubleClick",l)}if(i.lastClickTime=y(),g((()=>{e.destroyed||(e.allowClick=!0)})),!i.isTouched||!i.isMoved||!e.swipeDirection||0===n.diff||i.currentTranslate===i.startTranslate)return i.isTouched=!1,i.isMoved=!1,void(i.startMoving=!1);let u;if(i.isTouched=!1,i.isMoved=!1,i.startMoving=!1,u=r.followFinger?s?e.translate:-e.translate:-i.currentTranslate,r.cssMode)return;if(e.params.freeMode&&r.freeMode.enabled)return void e.freeMode.onTouchEnd({currentPos:u});let d=0,p=e.slidesSizesGrid[0];for(let t=0;t<a.length;t+=t<r.slidesPerGroupSkip?1:r.slidesPerGroup){const e=t<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;void 0!==a[t+e]?u>=a[t]&&u<a[t+e]&&(d=t,p=a[t+e]-a[t]):u>=a[t]&&(d=t,p=a[a.length-1]-a[a.length-2])}let f=null,m=null;r.rewind&&(e.isBeginning?m=e.params.virtual&&e.params.virtual.enabled&&e.virtual?e.virtual.slides.length-1:e.slides.length-1:e.isEnd&&(f=0));const v=(u-a[d])/p,x=d<r.slidesPerGroupSkip-1?1:r.slidesPerGroup;if(c>r.longSwipesMs){if(!r.longSwipes)return void e.slideTo(e.activeIndex);"next"===e.swipeDirection&&(v>=r.longSwipesRatio?e.slideTo(r.rewind&&e.isEnd?f:d+x):e.slideTo(d)),"prev"===e.swipeDirection&&(v>1-r.longSwipesRatio?e.slideTo(d+x):null!==m&&v<0&&Math.abs(v)>r.longSwipesRatio?e.slideTo(m):e.slideTo(d))}else{if(!r.shortSwipes)return void e.slideTo(e.activeIndex);!e.navigation||l.target!==e.navigation.nextEl&&l.target!==e.navigation.prevEl?("next"===e.swipeDirection&&e.slideTo(null!==f?f:d+x),"prev"===e.swipeDirection&&e.slideTo(null!==m?m:d)):l.target===e.navigation.nextEl?e.slideTo(d+x):e.slideTo(d)}}function L(){const t=this,{params:e,el:i}=t;if(i&&0===i.offsetWidth)return;e.breakpoints&&t.setBreakpoint();const{allowSlideNext:r,allowSlidePrev:n,snapGrid:s}=t;t.allowSlideNext=!0,t.allowSlidePrev=!0,t.updateSize(),t.updateSlides(),t.updateSlidesClasses(),("auto"===e.slidesPerView||e.slidesPerView>1)&&t.isEnd&&!t.isBeginning&&!t.params.centeredSlides?t.slideTo(t.slides.length-1,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),t.autoplay&&t.autoplay.running&&t.autoplay.paused&&t.autoplay.run(),t.allowSlidePrev=n,t.allowSlideNext=r,t.params.watchOverflow&&s!==t.snapGrid&&t.checkOverflow()}function F(t){const e=this;e.enabled&&(e.allowClick||(e.params.preventClicks&&t.preventDefault(),e.params.preventClicksPropagation&&e.animating&&(t.stopPropagation(),t.stopImmediatePropagation())))}function B(){const t=this,{wrapperEl:e,rtlTranslate:i,enabled:r}=t;if(!r)return;let n;t.previousTranslate=t.translate,t.isHorizontal()?t.translate=-e.scrollLeft:t.translate=-e.scrollTop,0===t.translate&&(t.translate=0),t.updateActiveIndex(),t.updateSlidesClasses();const s=t.maxTranslate()-t.minTranslate();n=0===s?0:(t.translate-t.minTranslate())/s,n!==t.progress&&t.updateProgress(i?-t.translate:t.translate),t.emit("setTranslate",t.translate,!1)}let N=!1;function V(){}const z=(t,e)=>{const i=s(),{params:r,touchEvents:n,el:a,wrapperEl:o,device:l,support:h}=t,c=!!r.nested,u="on"===e?"addEventListener":"removeEventListener",d=e;if(h.touch){const e=!("touchstart"!==n.start||!h.passiveListener||!r.passiveListeners)&&{passive:!0,capture:!1};a[u](n.start,t.onTouchStart,e),a[u](n.move,t.onTouchMove,h.passiveListener?{passive:!1,capture:c}:c),a[u](n.end,t.onTouchEnd,e),n.cancel&&a[u](n.cancel,t.onTouchEnd,e)}else a[u](n.start,t.onTouchStart,!1),i[u](n.move,t.onTouchMove,c),i[u](n.end,t.onTouchEnd,!1);(r.preventClicks||r.preventClicksPropagation)&&a[u]("click",t.onClick,!0),r.cssMode&&o[u]("scroll",t.onScroll),r.updateOnWindowResize?t[d](l.ios||l.android?"resize orientationchange observerUpdate":"resize observerUpdate",L,!0):t[d]("observerUpdate",L,!0)};var G={attachEvents:function(){const t=this,e=s(),{params:i,support:r}=t;t.onTouchStart=D.bind(t),t.onTouchMove=R.bind(t),t.onTouchEnd=O.bind(t),i.cssMode&&(t.onScroll=B.bind(t)),t.onClick=F.bind(t),r.touch&&!N&&(e.addEventListener("touchstart",V),N=!0),z(t,"on")},detachEvents:function(){z(this,"off")}};const U=(t,e)=>t.grid&&e.grid&&e.grid.rows>1;var H={setBreakpoint:function(){const t=this,{activeIndex:e,initialized:i,loopedSlides:r=0,params:n,$el:s}=t,a=n.breakpoints;if(!a||a&&0===Object.keys(a).length)return;
vendor: 7,906 bytes, line 2
2const o=t.getBreakpoint(a,t.params.breakpointsBase,t.el);if(!o||t.currentBreakpoint===o)return;const l=(o in a?a[o]:void 0)||t.originalParams,h=U(t,n),c=U(t,l),u=n.enabled;h&&!c?(s.removeClass(`${n.containerModifierClass}grid ${n.containerModifierClass}grid-column`),t.emitContainerClasses()):!h&&c&&(s.addClass(`${n.containerModifierClass}grid`),(l.grid.fill&&"column"===l.grid.fill||!l.grid.fill&&"column"===n.grid.fill)&&s.addClass(`${n.containerModifierClass}grid-column`),t.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach((e=>{const i=n[e]&&n[e].enabled,r=l[e]&&l[e].enabled;i&&!r&&t[e].disable(),!i&&r&&t[e].enable()}));const d=l.direction&&l.direction!==n.direction,p=n.loop&&(l.slidesPerView!==n.slidesPerView||d);d&&i&&t.changeDirection(),x(t.params,l);const f=t.params.enabled;Object.assign(t,{allowTouchMove:t.params.allowTouchMove,allowSlideNext:t.params.allowSlideNext,allowSlidePrev:t.params.allowSlidePrev}),u&&!f?t.disable():!u&&f&&t.enable(),t.currentBreakpoint=o,t.emit("_beforeBreakpoint",l),p&&i&&(t.loopDestroy(),t.loopCreate(),t.updateSlides(),t.slideTo(e-r+t.loopedSlides,0,!1)),t.emit("breakpoint",l)},getBreakpoint:function(t,e="window",i){if(!t||"container"===e&&!i)return;let r=!1;const n=o(),s="window"===e?n.innerHeight:i.clientHeight,a=Object.keys(t).map((t=>{if("string"==typeof t&&0===t.indexOf("@")){const e=parseFloat(t.substr(1));return{value:s*e,point:t}}return{value:t,point:t}}));a.sort(((t,e)=>parseInt(t.value,10)-parseInt(e.value,10)));for(let t=0;t<a.length;t+=1){const{point:s,value:o}=a[t];"window"===e?n.matchMedia(`(min-width: ${o}px)`).matches&&(r=s):o<=i.clientWidth&&(r=s)}return r||"max"}},j={addClasses:function(){const t=this,{classNames:e,params:i,rtl:r,$el:n,device:s,support:a}=t,o=function(t,e){const i=[];return t.forEach((t=>{"object"==typeof t?Object.keys(t).forEach((r=>{t[r]&&i.push(e+r)})):"string"==typeof t&&i.push(e+t)})),i}(["initialized",i.direction,{"pointer-events":!a.touch},{"free-mode":t.params.freeMode&&i.freeMode.enabled},{autoheight:i.autoHeight},{rtl:r},{grid:i.grid&&i.grid.rows>1},{"grid-column":i.grid&&i.grid.rows>1&&"column"===i.grid.fill},{android:s.android},{ios:s.ios},{"css-mode":i.cssMode},{centered:i.cssMode&&i.centeredSlides},{"watch-progress":i.watchSlidesProgress}],i.containerModifierClass);e.push(...o),n.addClass([...e].join(" ")),t.emitContainerClasses()},removeClasses:function(){const{$el:t,classNames:e}=this;t.removeClass(e.join(" ")),this.emitContainerClasses()}},W={loadImage:function(t,e,i,r,n,s){const a=o();let l;function h(){s&&s()}m(t).parent("picture")[0]||t.complete&&n?h():e?(l=new a.Image,l.onload=h,l.onerror=h,r&&(l.sizes=r),i&&(l.srcset=i),e&&(l.src=e)):h()},preloadImages:function(){const t=this;function e(){null!=t&&t&&!t.destroyed&&(void 0!==t.imagesLoaded&&(t.imagesLoaded+=1),t.imagesLoaded===t.imagesToLoad.length&&(t.params.updateOnImagesReady&&t.update(),t.emit("imagesReady")))}t.imagesToLoad=t.$el.find("img");for(let i=0;i<t.imagesToLoad.length;i+=1){const r=t.imagesToLoad[i];t.loadImage(r,r.currentSrc||r.getAttribute("src"),r.srcset||r.getAttribute("srcset"),r.sizes||r.getAttribute("sizes"),!0,e)}}},X={init:!0,direction:"horizontal",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopedSlidesLimit:!0,loopFillGroupWithBlank:!1,loopPreventsSlide:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0,_emitClasses:!1};function $(t,e){return function(i={}){const r=Object.keys(i)[0],n=i[r];"object"==typeof n&&null!==n?(["navigation","pagination","scrollbar"].indexOf(r)>=0&&!0===t[r]&&(t[r]={auto:!0}),r in t&&"enabled"in n?(!0===t[r]&&(t[r]={enabled:!0}),"object"!=typeof t[r]||"enabled"in t[r]||(t[r].enabled=!0),t[r]||(t[r]={enabled:!1}),x(e,i)):x(e,i)):x(e,i)}}const Y={eventsEmitter:A,update:M,translate:P,transition:{setTransition:function(t,e){const i=this;i.params.cssMode||i.$wrapperEl.transition(t),i.emit("setTransition",t,e)},transitionStart:function(t=!0,e){const i=this,{params:r}=i;r.cssMode||(r.autoHeight&&i.updateAutoHeight(),C({swiper:i,runCallbacks:t,direction:e,step:"Start"}))},transitionEnd:function(t=!0,e){const i=this,{params:r}=i;i.animating=!1,r.cssMode||(i.setTransition(0),C({swiper:i,runCallbacks:t,direction:e,step:"End"}))}},slide:k,loop:I,grabCursor:{setGrabCursor:function(t){const e=this;if(e.support.touch||!e.params.simulateTouch||e.params.watchOverflow&&e.isLocked||e.params.cssMode)return;const i="container"===e.params.touchEventsTarget?e.el:e.wrapperEl;i.style.cursor="move",i.style.cursor=t?"grabbing":"grab"},unsetGrabCursor:function(){const t=this;t.support.touch||t.params.watchOverflow&&t.isLocked||t.params.cssMode||(t["container"===t.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="")}},events:G,breakpoints:H,checkOverflow:{checkOverflow:function(){const t=this,{isLocked:e,params:i}=t,{slidesOffsetBefore:r}=i;if(r){const e=t.slides.length-1,i=t.slidesGrid[e]+t.slidesSizesGrid[e]+2*r;t.isLocked=t.size>i}else t.isLocked=1===t.snapGrid.length;!0===i.allowSlideNext&&(t.allowSlideNext=!t.isLocked),!0===i.allowSlidePrev&&(t.allowSlidePrev=!t.isLocked),e&&e!==t.isLocked&&(t.isEnd=!1),e!==t.isLocked&&t.emit(t.isLocked?"lock":"unlock")}},classes:j,images:W},q={};class K{constructor(...t){let e,i;if(1===t.length&&t[0].constructor&&"Object"===Object.prototype.toString.call(t[0]).slice(8,-1)?i=t[0]:[e,i]=t,i||(i={}),i=x({},i),e&&!i.el&&(i.el=e),i.el&&m(i.el).length>1){const t=[];return m(i.el).each((e=>{const r=x({},i,{el:e});t.push(new K(r))})),t}const r=this;r.__swiper__=!0,r.support=T(),r.device=function(t={}){return E||(E=function({userAgent:t}={}){const e=T(),i=o(),r=i.navigator.platform,n=t||i.navigator.userAgent,s={ios:!1,android:!1},a=i.screen.width,l=i.screen.height,h=n.match(/(Android);?[\s\/]+([\d.]+)?/);let c=n.match(/(iPad).*OS\s([\d_]+)/);const u=n.match(/(iPod)(.*OS\s([\d_]+))?/),d=!c&&n.match(/(iPhone\sOS|iOS)\s([\d_]+)/),p="Win32"===r;let f="MacIntel"===r;return!c&&f&&e.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${a}x${l}`)>
vendor: 5,212 bytes, line 2
2=0&&(c=n.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),f=!1),h&&!p&&(s.os="android",s.android=!0),(c||d||u)&&(s.os="ios",s.ios=!0),s}(t)),E}({userAgent:i.userAgent}),r.browser=(w||(w=function(){const t=o();return{isSafari:function(){const e=t.navigator.userAgent.toLowerCase();return e.indexOf("safari")>=0&&e.indexOf("chrome")<0&&e.indexOf("android")<0}(),isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(t.navigator.userAgent)}}()),w),r.eventsListeners={},r.eventsAnyListeners=[],r.modules=[...r.__modules__],i.modules&&Array.isArray(i.modules)&&r.modules.push(...i.modules);const n={};r.modules.forEach((t=>{t({swiper:r,extendParams:$(i,n),on:r.on.bind(r),once:r.once.bind(r),off:r.off.bind(r),emit:r.emit.bind(r)})}));const s=x({},X,n);return r.params=x({},s,q,i),r.originalParams=x({},r.params),r.passedParams=x({},i),r.params&&r.params.on&&Object.keys(r.params.on).forEach((t=>{r.on(t,r.params.on[t])})),r.params&&r.params.onAny&&r.onAny(r.params.onAny),r.$=m,Object.assign(r,{enabled:r.params.enabled,el:e,classNames:[],slides:m(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return"horizontal"===r.params.direction},isVertical(){return"vertical"===r.params.direction},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:r.params.allowSlideNext,allowSlidePrev:r.params.allowSlidePrev,touchEvents:function(){const t=["touchstart","touchmove","touchend","touchcancel"],e=["pointerdown","pointermove","pointerup"];return r.touchEventsTouch={start:t[0],move:t[1],end:t[2],cancel:t[3]},r.touchEventsDesktop={start:e[0],move:e[1],end:e[2]},r.support.touch||!r.params.simulateTouch?r.touchEventsTouch:r.touchEventsDesktop}(),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:r.params.focusableElements,lastClickTime:y(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:r.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),r.emit("_swiper"),r.params.init&&r.init(),r}enable(){const t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))}disable(){const t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))}setProgress(t,e){const i=this;t=Math.min(Math.max(t,0),1);const r=i.minTranslate(),n=(i.maxTranslate()-r)*t+r;i.translateTo(n,void 0===e?0:e),i.updateActiveIndex(),i.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const e=t.el.className.split(" ").filter((e=>0===e.indexOf("swiper")||0===e.indexOf(t.params.containerModifierClass)));t.emit("_containerClasses",e.join(" "))}getSlideClasses(t){const e=this;return e.destroyed?"":t.className.split(" ").filter((t=>0===t.indexOf("swiper-slide")||0===t.indexOf(e.params.slideClass))).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const e=[];t.slides.each((i=>{const r=t.getSlideClasses(i);e.push({slideEl:i,classNames:r}),t.emit("_slideClass",i,r)})),t.emit("_slideClasses",e)}slidesPerViewDynamic(t="current",e=!1){const{params:i,slides:r,slidesGrid:n,slidesSizesGrid:s,size:a,activeIndex:o}=this;let l=1;if(i.centeredSlides){let t,e=r[o].swiperSlideSize;for(let i=o+1;i<r.length;i+=1)r[i]&&!t&&(e+=r[i].swiperSlideSize,l+=1,e>a&&(t=!0));for(let i=o-1;i>=0;i-=1)r[i]&&!t&&(e+=r[i].swiperSlideSize,l+=1,e>a&&(t=!0))}else if("current"===t)for(let t=o+1;t<r.length;t+=1)(e?n[t]+s[t]-n[o]<a:n[t]-n[o]<a)&&(l+=1);else for(let t=o-1;t>=0;t-=1)n[o]-n[t]<a&&(l+=1);return l}update(){const t=this;if(!t||t.destroyed)return;const{snapGrid:e,params:i}=t;function r(){const e=t.rtlTranslate?-1*t.translate:t.translate,i=Math.min(Math.max(e,t.maxTranslate()),t.minTranslate());t.setTranslate(i),t.updateActiveIndex(),t.updateSlidesClasses()}let n;i.breakpoints&&t.setBreakpoint(),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.params.freeMode&&t.params.freeMode.enabled?(r(),t.params.autoHeight&&t.updateAutoHeight()):(n=("auto"===t.params.slidesPerView||t.params.slidesPerView>1)&&t.isEnd&&!t.params.centeredSlides?t.slideTo(t.slides.length-1,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0),n||r()),i.watchOverflow&&e!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,e=!0){const i=this,r=i.params.direction;return t||(t="horizontal"===r?"vertical":"horizontal"),t===r||"horizontal"!==t&&"vertical"!==t||(i.$el.removeClass(`${i.params.containerModifierClass}${r}`).addClass(`${i.params.containerModifierClass}${t}`),i.emitContainerClasses(),i.params.direction=t,i.slides.each((e=>{"vertical"===t?e.style.width="":e.style.height=""})),i.emit("changeDirection"),e&&i.update()),i}changeLanguageDirection(t){const e=this;e.rtl&&"rtl"===t||!e.rtl&&"ltr"===t||(e.rtl="rtl"===t,e.rtlTranslate="horizontal"===e.params.direction&&e.rtl,e.rtl?(e.$el.addClass(`${e.params.containerModifierClass}rtl`),e.el.dir="rtl"):(e.$el.removeClass(`${e.params.containerModifierClass}
2rtl`),e.el.dir="ltr"),e.update())}mount(t){const e=this;if(e.mounted)return!0;const i=m(t||e.params.el);if(!(t=i[0]))return!1;t.swiper=e;const r=()=>`.${(e.params.wrapperClass||"").trim().split(" ").join(".")}`;let n=(()=>{if(t&&t.shadowRoot&&t.shadowRoot.querySelector){const e=m(t.shadowRoot.querySelector(r()));return e.children=t=>i.children(t),e}return i.children?i.children(r()):m(i).children(r())})();if(0===n.length&&e.params.createElements){const t=s().createElement("div");n=m(t),t.className=e.params.wrapperClass,i.append(t),i.children(`.${e.params.slideClass}`).each((t=>{n.append(t)}))}return Object.assign(e,{$el:i,el:t,$wrapperEl:n,wrapperEl:n[0],mounted:!0,rtl:"rtl"===t.dir.toLowerCase()||"rtl"===i.css("direction"),rtlTranslate:"horizontal"===e.params.direction&&("rtl"===t.dir.toLowerCase()||"rtl"===i.css("direction")),wrongRTL:"-webkit-box"===n.css("display")}),!0}init(t){const e=this;return e.initialized||!1===e.mount(t)||(e.emit("beforeInit"),e.params.breakpoints&&e.setBreakpoint(),e.addClasses(),e.params.loop&&e.loopCreate(),e.updateSize(),e.updateSlides(),e.params.watchOverflow&&e.checkOverflow(),e.params.grabCursor&&e.enabled&&e.setGrabCursor(),e.params.preloadImages&&e.preloadImages(),e.params.loop?e.slideTo(e.params.initialSlide+e.loopedSlides,0,e.params.runCallbacksOnInit,!1,!0):e.slideTo(e.params.initialSlide,0,e.params.runCallbacksOnInit,!1,!0),e.attachEvents(),e.initialized=!0,e.emit("init"),e.emit("afterInit")),e}destroy(t=!0,e=!0){const i=this,{params:r,$el:n,$wrapperEl:s,slides:a}=i;return void 0===i.params||i.destroyed||(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),r.loop&&i.loopDestroy(),e&&(i.removeClasses(),n.removeAttr("style"),s.removeAttr("style"),a&&a.length&&a.removeClass([r.slideVisibleClass,r.slideActiveClass,r.slideNextClass,r.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index")),i.emit("destroy"),Object.keys(i.eventsListeners).forEach((t=>{i.off(t)})),!1!==t&&(i.$el[0].swiper=null,function(t){const e=t;Object.keys(e).forEach((t=>{try{e[t]=null}catch(t){}try{delete e[t]}catch(t){}}))}(i)),i.destroyed=!0),null}static extendDefaults(t){x(q,t)}static get extendedDefaults(){return q}static get defaults(){return X}static installModule(t){K.prototype.__modules__||(K.prototype.__modules__=[]);const e=K.prototype.__modules__;"function"==typeof t&&e.indexOf(t)<0&&e.push(t)}static use(t){return Array.isArray(t)?(t.forEach((t=>K.installModule(t))),K):(K.installModule(t),K)}}Object.keys(Y).forEach((t=>{Object.keys(Y[t]).forEach((e=>{K.prototype[e]=Y[t][e]}))})),K.use([function({swiper:t,on:e,emit:i}){const r=o();let n=null,s=null;const a=()=>{t&&!t.destroyed&&t.initialized&&(i("beforeResize"),i("resize"))},l=()=>{t&&!t.destroyed&&t.initialized&&i("orientationchange")};e("init",(()=>{t.params.resizeObserver&&void 0!==r.ResizeObserver?t&&!t.destroyed&&t.initialized&&(n=new ResizeObserver((e=>{s=r.requestAnimationFrame((()=>{const{width:i,height:r}=t;let n=i,s=r;e.forEach((({contentBoxSize:e,contentRect:i,target:r})=>{r&&r!==t.el||(n=i?i.width:(e[0]||e).inlineSize,s=i?i.height:(e[0]||e).blockSize)})),n===i&&s===r||a()}))})),n.observe(t.el)):(r.addEventListener("resize",a),r.addEventListener("orientationchange",l))})),e("destroy",(()=>{s&&r.cancelAnimationFrame(s),n&&n.unobserve&&t.el&&(n.unobserve(t.el),n=null),r.removeEventListener("resize",a),r.removeEventListener("orientationchange",l)}))},function({swiper:t,extendParams:e,on:i,emit:r}){const n=[],s=o(),a=(t,e={})=>{const i=new(s.MutationObserver||s.WebkitMutationObserver)((t=>{if(1===t.length)return void r("observerUpdate",t[0]);const e=function(){r("observerUpdate",t[0])};s.requestAnimationFrame?s.requestAnimationFrame(e):s.setTimeout(e,0)}));i.observe(t,{attributes:void 0===e.attributes||e.attributes,childList:void 0===e.childList||e.childList,characterData:void 0===e.characterData||e.characterData}),n.push(i)};e({observer:!1,observeParents:!1,observeSlideChildren:!1}),i("init",(()=>{if(t.params.observer){if(t.params.observeParents){const e=t.$el.parents();for(let t=0;t<e.length;t+=1)a(e[t])}a(t.$el[0],{childList:t.params.observeSlideChildren}),a(t.$wrapperEl[0],{attributes:!1})}})),i("destroy",(()=>
vendor: 4,257 bytes, line 2
2{n.forEach((t=>{t.disconnect()})),n.splice(0,n.length)}))}]);var Z=K;function J({swiper:t,extendParams:e,on:i,emit:r}){let n;function a(){if(!t.size)return t.autoplay.running=!1,void(t.autoplay.paused=!1);const e=t.slides.eq(t.activeIndex);let i=t.params.autoplay.delay;e.attr("data-swiper-autoplay")&&(i=e.attr("data-swiper-autoplay")||t.params.autoplay.delay),clearTimeout(n),n=g((()=>{let e;t.params.autoplay.reverseDirection?t.params.loop?(t.loopFix(),e=t.slidePrev(t.params.speed,!0,!0),r("autoplay")):t.isBeginning?t.params.autoplay.stopOnLastSlide?l():(e=t.slideTo(t.slides.length-1,t.params.speed,!0,!0),r("autoplay")):(e=t.slidePrev(t.params.speed,!0,!0),r("autoplay")):t.params.loop?(t.loopFix(),e=t.slideNext(t.params.speed,!0,!0),r("autoplay")):t.isEnd?t.params.autoplay.stopOnLastSlide?l():(e=t.slideTo(0,t.params.speed,!0,!0),r("autoplay")):(e=t.slideNext(t.params.speed,!0,!0),r("autoplay")),(t.params.cssMode&&t.autoplay.running||!1===e)&&a()}),i)}function o(){return void 0===n&&!t.autoplay.running&&(t.autoplay.running=!0,r("autoplayStart"),a(),!0)}function l(){return!!t.autoplay.running&&void 0!==n&&(n&&(clearTimeout(n),n=void 0),t.autoplay.running=!1,r("autoplayStop"),!0)}function h(e){t.autoplay.running&&(t.autoplay.paused||(n&&clearTimeout(n),t.autoplay.paused=!0,0!==e&&t.params.autoplay.waitForTransition?["transitionend","webkitTransitionEnd"].forEach((e=>{t.$wrapperEl[0].addEventListener(e,u)})):(t.autoplay.paused=!1,a())))}function c(){const e=s();"hidden"===e.visibilityState&&t.autoplay.running&&h(),"visible"===e.visibilityState&&t.autoplay.paused&&(a(),t.autoplay.paused=!1)}function u(e){t&&!t.destroyed&&t.$wrapperEl&&e.target===t.$wrapperEl[0]&&(["transitionend","webkitTransitionEnd"].forEach((e=>{t.$wrapperEl[0].removeEventListener(e,u)})),t.autoplay.paused=!1,t.autoplay.running?a():l())}function d(){t.params.autoplay.disableOnInteraction?l():(r("autoplayPause"),h()),["transitionend","webkitTransitionEnd"].forEach((e=>{t.$wrapperEl[0].removeEventListener(e,u)}))}function p(){t.params.autoplay.disableOnInteraction||(t.autoplay.paused=!1,r("autoplayResume"),a())}t.autoplay={running:!1,paused:!1},e({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}}),i("init",(()=>{t.params.autoplay.enabled&&(o(),s().addEventListener("visibilitychange",c),t.params.autoplay.pauseOnMouseEnter&&(t.$el.on("mouseenter",d),t.$el.on("mouseleave",p)))})),i("beforeTransitionStart",((e,i,r)=>{t.autoplay.running&&(r||!t.params.autoplay.disableOnInteraction?t.autoplay.pause(i):l())})),i("sliderFirstMove",(()=>{t.autoplay.running&&(t.params.autoplay.disableOnInteraction?l():h())})),i("touchEnd",(()=>{t.params.cssMode&&t.autoplay.paused&&!t.params.autoplay.disableOnInteraction&&a()})),i("destroy",(()=>{t.$el.off("mouseenter",d),t.$el.off("mouseleave",p),t.autoplay.running&&l(),s().removeEventListener("visibilitychange",c)})),Object.assign(t.autoplay,{pause:h,run:a,start:o,stop:l})}function Q({swiper:t,extendParams:e,emit:i,once:r}){e({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}}),Object.assign(t,{freeMode:{onTouchStart:function(){const e=t.getTranslate();t.setTranslate(e),t.setTransition(0),t.touchEventsData.velocities.length=0,t.freeMode.onTouchEnd({currentPos:t.rtl?t.translate:-t.translate})},onTouchMove:function(){const{touchEventsData:e,touches:i}=t;0===e.velocities.length&&e.velocities.push({position:i[t.isHorizontal()?"startX":"startY"],time:e.touchStartTime}),e.velocities.push({position:i[t.isHorizontal()?"currentX":"currentY"],time:y()})},onTouchEnd:function({currentPos:e}){const{params:n,$wrapperEl:s,rtlTranslate:a,snapGrid:o,touchEventsData:l}=t,h=y()-l.touchStartTime;if(e<-t.minTranslate())t.slideTo(t.activeIndex);else if(e>-t.maxTranslate())t.slides.length<o.length?t.slideTo(o.length-1):t.slideTo(t.slides.length-1);else{if(n.freeMode.momentum){if(l.velocities.length>1){const e=l.velocities.pop(),i=l.velocities.pop(),r=e.position-i.position,s=e.time-i.time;t.velocity=r/s,t.velocity/=2,Math.abs(t.velocity)<n.freeMode.minimumVelocity&&(t.velocity=0),(s>150||y()-e.time>300)&&(t.velocity=0)}else t.velocity=0;
2t.velocity*=n.freeMode.momentumVelocityRatio,l.velocities.length=0;let e=1e3*n.freeMode.momentumRatio;const h=t.velocity*e;let c=t.translate+h;a&&(c=-c);let u,d=!1;const p=20*Math.abs(t.velocity)*n.freeMode.momentumBounceRatio;let f;if(c<t.maxTranslate())n.freeMode.momentumBounce?(c+t.maxTranslate()<-p&&(c=t.maxTranslate()-p),u=t.maxTranslate(),d=!0,l.allowMomentumBounce=!0):c=t.maxTranslate(),n.loop&&n.centeredSlides&&(f=!0);else if(c>t.minTranslate())n.freeMode.momentumBounce?(c-t.minTranslate()>p&&(c=t.minTranslate()+p),u=t.minTranslate(),d=!0,l.allowMomentumBounce=!0):c=t.minTranslate(),n.loop&&n.centeredSlides&&(f=!0);else if(n.freeMode.sticky){let e;for(let t=0;t<o.length;t+=1)if(o[t]>-c){e=t;break}c=Math.abs(o[e]-c)<Math.abs(o[e-1]-c)||"next"===t.swipeDirection?o[e]:o[e-1],c=-c}if(f&&r("transitionEnd",(()=>{t.loopFix()})),0!==t.velocity){if(e=a?Math.abs((-c-t.translate)/t.velocity):Math.abs((c-t.translate)/t.velocity),n.freeMode.sticky){const i=Math.abs((a?-c:c)-t.translate),r=t.slidesSizesGrid[t.activeIndex];e=i<r?n.speed:i<2*r?1.5*n.speed:2.5*n.speed}}else if(n.freeMode.sticky)return void t.slideToClosest();n.freeMode.momentumBounce&&d?(t.updateProgress(u),t.setTransition(e),t.setTranslate(c),t.transitionStart(!0,t.swipeDirection),t.animating=!0,s.transitionEnd((()=>{t&&!t.destroyed&&l.allowMomentumBounce&&(i("momentumBounce"),t.setTransition(n.speed),setTimeout((()=>{t.setTranslate(u),s.transitionEnd((()=>{t&&!t.destroyed&&t.transitionEnd()}))}),0))}))):t.velocity?(i("_freeModeNoMomentumRelease"),t.updateProgress(c),t.setTransition(e),t.setTranslate(c),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,s.transitionEnd((()=>{t&&!t.destroyed&&t.transitionEnd()})))):t.updateProgress(c),t.updateActiveIndex(),t.updateSlidesClasses()}else{if(n.freeMode.sticky)return void t.slideToClosest();n.freeMode&&i("_freeModeNoMomentumRelease")}(!n.freeMode.momentum||h>=n.longSwipesMs)&&(t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}}}})}function tt(t,e){return t.transformEl?e.find(t.transformEl).css({"backface-visibility":"hidden","-webkit-backface-visibility":"hidden"}):e}function et({swiper:t,extendParams:e,on:i}){e({fadeEffect:{crossFade:!1,transformEl:null}}),function(t){const{effect:e,swiper:i,on:r,setTranslate:n,setTransition:s,overwriteParams:a,perspective:o,recreateShadows:l,getEffectParams:h}=t;let c;r("beforeInit",(()=>{if(i.params.effect!==e)return;i.classNames.push(`${i.params.containerModifierClass}${e}`),o&&o()&&i.classNames.push(`${i.params.containerModifierClass}3d`);const t=a?a():{};Object.assign(i.params,t),Object.assign(i.originalParams,t)})),r("setTranslate",(()=>{i.params.effect===e&&n()})),r("setTransition",((t,r)=>{i.params.effect===e&&s(r)})),r("transitionEnd",(()=>{if(i.params.effect===e&&l){if(!h||!h().slideShadows)return;i.slides.each((t=>{i.$(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").remove()})),l()}})),r("virtualUpdate",(()=>{i.params.effect===e&&(i.slides.length||(c=!0),requestAnimationFrame((()=>{c&&i.slides&&i.slides.length&&(n(),c=!1)})))}))}({effect:"fade",swiper:t,on:i,setTranslate:()=>{const{slides:e}=t,i=t.params.fadeEffect;for(let r=0;r<e.length;r+=1){const e=t.slides.eq(r);let n=-e[0].swiperSlideOffset;t.params.virtualTranslate||(n-=t.translate);let s=0;t.isHorizontal()||(s=n,n=0);const a=t.params.fadeEffect.crossFade?Math.max(1-Math.abs(e[0].progress),0):1+Math.min(Math.max(e[0].progress,-1),0);tt(i,e).css({opacity:a}).transform(`translate3d(${n}px, ${s}px, 0px)`)}},setTransition:e=>{const{transformEl:i}=t.params.fadeEffect;(i?t.slides.find(i):t.slides).transition(e),function({swiper:t,duration:e,transformEl:i,allSlides:r}){const{slides:n,activeIndex:s,$wrapperEl:a}=t;if(t.params.virtualTranslate&&0!==e){let e,o=!1;e=r?i?n.find(i):n:i?n.eq(s).find(i):n.eq(s),e.transitionEnd((()=>{if(o)return;if(!t||t.destroyed)return;o=!0,t.animating=!1;const e=["webkitTransitionEnd","transitionend"];for(let t=0;t<e.length;t+=1)a.trigger(e[t])}))}}({swiper:t,duration:e,transformEl:i,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})}function it(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function rt(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}var nt,st,at,ot,lt,ht,ct,ut,dt,pt,ft,mt={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},gt={duration:.5,overwrite:!1,delay:0},yt=1e8,vt=1e-8,xt=2*Math.PI,_t=xt/4,bt=0,St=Math.sqrt,Et=Math.cos,wt=Math.sin,Tt=function(t){return"string"==typeof t},At=function(t){return"function"==typeof t},Mt=function(t){return"number"==typeof t},Pt=function(t){return void 0===t},Ct=function(t){return"object"==typeof t},kt=function(t){return!1!==t},It=function(){return"undefined"!=typeof window},Dt=function(t){return At(t)||Tt(t)},Rt="function"==typeof ArrayBuffer&&ArrayBuffer.isView||function(){},Ot=Array.isArray,Lt=/(?:-?\.?\d|\.)+/gi,Ft=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Bt=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Nt=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,Vt=/[+-]=-?[.\d]+/,zt=/[^,'"\[\]\s]+/gi,Gt=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,Ut={},Ht={},jt=function(t){return(Ht=xe(t,Ut))&&xr},Wt=function(t,e){return console.warn("Invalid property",t,"set to",e,"Missing plugin? gsap.registerPlugin()")},Xt=function(t,e){return!e&&console.warn(t)},$t=function(t,e){return t&&(Ut[t]=e)&&Ht&&(Ht[t]=e)||Ut},Yt=function(){return 0},qt={suppressEvents:!0,isStart:!0,kill:!1},Kt={suppressEvents:!0,kill:!1},Zt={suppressEvents:!0},Jt={},Qt=[],te={},ee={},ie={},re=30,ne=[],se="",ae=function(t){var e,i,r=t[0];if(Ct(r)||At(r)||(t=[t]),!(e=(r._gsap||{}).harness)){for(i=ne.length;i--&&!ne[i].targetTest(r););e=ne[i]}for(i=t.length;i--;)t[i]&&(t[i]._gsap||(t[i]._gsap=new Ri(t[i],e)))||t.splice(i,1);return t},oe=function(t){return t._gsap||ae(Ke(t))[0]._gsap}
vendor: 4,572 bytes, line 2
2,le=function(t,e,i){return(i=t[e])&&At(i)?t[e]():Pt(i)&&t.getAttribute&&t.getAttribute(e)||i},he=function(t,e){return(t=t.split(",")).forEach(e)||t},ce=function(t){return Math.round(1e5*t)/1e5||0},ue=function(t){return Math.round(1e7*t)/1e7||0},de=function(t,e){var i=e.charAt(0),r=parseFloat(e.substr(2));return t=parseFloat(t),"+"===i?t+r:"-"===i?t-r:"*"===i?t*r:t/r},pe=function(t,e){for(var i=e.length,r=0;t.indexOf(e[r])<0&&++r<i;);return r<i},fe=function(){var t,e,i=Qt.length,r=Qt.slice(0);for(te={},Qt.length=0,t=0;t<i;t++)(e=r[t])&&e._lazy&&(e.render(e._lazy[0],e._lazy[1],!0)._lazy=0)},me=function(t,e,i,r){Qt.length&&!st&&fe(),t.render(e,i,r||st&&e<0&&(t._initted||t._startAt)),Qt.length&&!st&&fe()},ge=function(t){var e=parseFloat(t);return(e||0===e)&&(t+"").match(zt).length<2?e:Tt(t)?t.trim():t},ye=function(t){return t},ve=function(t,e){for(var i in e)i in t||(t[i]=e[i]);return t},xe=function(t,e){for(var i in e)t[i]=e[i];return t},_e=function t(e,i){for(var r in i)"__proto__"!==r&&"constructor"!==r&&"prototype"!==r&&(e[r]=Ct(i[r])?t(e[r]||(e[r]={}),i[r]):i[r]);return e},be=function(t,e){var i,r={};for(i in t)i in e||(r[i]=t[i]);return r},Se=function(t){var e,i=t.parent||ot,r=t.keyframes?(e=Ot(t.keyframes),function(t,i){for(var r in i)r in t||"duration"===r&&e||"ease"===r||(t[r]=i[r])}):ve;if(kt(t.inherit))for(;i;)r(t,i.vars.defaults),i=i.parent||i._dp;return t},Ee=function(t,e,i,r,n){void 0===i&&(i="_first"),void 0===r&&(r="_last");var s,a=t[r];if(n)for(s=e[n];a&&a[n]>s;)a=a._prev;return a?(e._next=a._next,a._next=e):(e._next=t[i],t[i]=e),e._next?e._next._prev=e:t[r]=e,e._prev=a,e.parent=e._dp=t,e},we=function(t,e,i,r){void 0===i&&(i="_first"),void 0===r&&(r="_last");var n=e._prev,s=e._next;n?n._next=s:t[i]===e&&(t[i]=s),s?s._prev=n:t[r]===e&&(t[r]=n),e._next=e._prev=e.parent=null},Te=function(t,e){t.parent&&(!e||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},Ae=function(t,e){if(t&&(!e||e._end>t._dur||e._start<0))for(var i=t;i;)i._dirty=1,i=i.parent;return t},Me=function(t,e,i,r){return t._startAt&&(st?t._startAt.revert(Kt):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(e,!0,r))},Pe=function t(e){return!e||e._ts&&t(e.parent)},Ce=function(t){return t._repeat?ke(t._tTime,t=t.duration()+t._rDelay)*t:0},ke=function(t,e){var i=Math.floor(t/=e);return t&&i===t?i-1:i},Ie=function(t,e){return(t-e._start)*e._ts+(e._ts>=0?0:e._dirty?e.totalDuration():e._tDur)},De=function(t){return t._end=ue(t._start+(t._tDur/Math.abs(t._ts||t._rts||vt)||0))},Re=function(t,e){var i=t._dp;return i&&i.smoothChildTiming&&t._ts&&(t._start=ue(i._time-(t._ts>0?e/t._ts:((t._dirty?t.totalDuration():t._tDur)-e)/-t._ts)),De(t),i._dirty||Ae(i,t)),t},Oe=function(t,e){var i;if((e._time||!e._dur&&e._initted||e._start<t._time&&(e._dur||!e.add))&&(i=Ie(t.rawTime(),e),(!e._dur||Xe(0,e.totalDuration(),i)-e._tTime>vt)&&e.render(i,!0)),Ae(t,e)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur<t.duration())for(i=t;i._dp;)i.rawTime()>=0&&i.totalTime(i._tTime),i=i._dp;t._zTime=-1e-8}},Le=function(t,e,i,r){return e.parent&&Te(e),e._start=ue((Mt(i)?i:i||t!==ot?He(t,i,e):t._time)+e._delay),e._end=ue(e._start+(e.totalDuration()/Math.abs(e.timeScale())||0)),Ee(t,e,"_first","_last",t._sort?"_start":0),Ve(e)||(t._recent=e),r||Oe(t,e),t._ts<0&&Re(t,t._tTime),t},Fe=function(t,e){return(Ut.ScrollTrigger||Wt("scrollTrigger",e))&&Ut.ScrollTrigger.create(e,t)},Be=function(t,e,i,r,n){return Gi(t,e,n),t._initted?!i&&t._pt&&!st&&(t._dur&&!1!==t.vars.lazy||!t._dur&&t.vars.lazy)&&dt!==_i.frame?(Qt.push(t),t._lazy=[n,r],1):void 0:1},Ne=function t(e){var i=e.parent;return i&&i._ts&&i._initted&&!i._lock&&(i.rawTime()<0||t(i))},Ve=function(t){var e=t.data;return"isFromStart"===e||"isStart"===e},ze=function(t,e,i,r){var n=t._repeat,s=ue(e)||0,a=t._tTime/t._tDur;return a&&!r&&(t._time*=s/t._dur),t._dur=s,t._tDur=n?n<0?1e10:ue(s*(n+1)+t._rDelay*n):s,a>0&&!r&&Re(t,t._tTime=t._tDur*a),t.parent&&De(t),i||Ae(t.parent,t),t},Ge=function(t){return t instanceof Li?Ae(t):ze(t,t._dur)},Ue={_start:0,endTime:Yt,totalDuration:Yt},He=function t(e,i,r){var n,s,a,o=e.labels,l=e._recent||Ue,h=e.duration()>=yt?l.endTime(!1):e._dur;return Tt(i)&&(isNaN(i)||i in o)?(s=i.charAt(0),a="%"===i.substr(-1),n=i.indexOf("="),"<"===s||">"===s?(n>=0&&(i=i.replace(/=/,"")),("<"===s?l._start:l.endTime(l._repeat>=0))+(parseFloat(i.substr(1))||0)*(a?(n<0?l:r).totalDuration()/100:1)):n<0?(i in o||(o[i]=h),o[i]):(s=parseFloat(i.charAt(n-1)+i.substr(n+1)),a&&r&&(s=s/100*(Ot(r)?r[0]:r).totalDuration()),n>1?t(e,i.substr(0,n-1),r)+s:h+s)):null==i?h:+i}
vendor: 9,942 bytes, line 2
2,je=function(t,e,i){var r,n,s=Mt(e[1]),a=(s?2:1)+(t<2?0:1),o=e[a];if(s&&(o.duration=e[1]),o.parent=i,t){for(r=o,n=i;n&&!("immediateRender"in r);)r=n.vars.defaults||{},n=kt(n.vars.inherit)&&n.parent;o.immediateRender=kt(r.immediateRender),t<2?o.runBackwards=1:o.startAt=e[a-1]}return new Xi(e[0],o,e[a+1])},We=function(t,e){return t||0===t?e(t):e},Xe=function(t,e,i){return i<t?t:i>e?e:i},$e=function(t,e){return Tt(t)&&(e=Gt.exec(t))?e[1]:""},Ye=[].slice,qe=function(t,e){return t&&Ct(t)&&"length"in t&&(!e&&!t.length||t.length-1 in t&&Ct(t[0]))&&!t.nodeType&&t!==lt},Ke=function(t,e,i){return at&&!e&&at.selector?at.selector(t):!Tt(t)||i||!ht&&bi()?Ot(t)?function(t,e,i){return void 0===i&&(i=[]),t.forEach((function(t){var r;return Tt(t)&&!e||qe(t,1)?(r=i).push.apply(r,Ke(t)):i.push(t)}))||i}(t,i):qe(t)?Ye.call(t,0):t?[t]:[]:Ye.call((e||ct).querySelectorAll(t),0)},Ze=function(t){return t=Ke(t)[0]||Xt("Invalid scope")||{},function(e){var i=t.current||t.nativeElement||t;return Ke(e,i.querySelectorAll?i:i===t?Xt("Invalid scope")||ct.createElement("div"):t)}},Je=function(t){return t.sort((function(){return.5-Math.random()}))},Qe=function(t){if(At(t))return t;var e=Ct(t)?t:{each:t},i=Pi(e.ease),r=e.from||0,n=parseFloat(e.base)||0,s={},a=r>0&&r<1,o=isNaN(r)||a,l=e.axis,h=r,c=r;return Tt(r)?h=c={center:.5,edges:.5,end:1}[r]||0:!a&&o&&(h=r[0],c=r[1]),function(t,a,u){var d,p,f,m,g,y,v,x,_,b=(u||e).length,S=s[b];if(!S){if(!(_="auto"===e.grid?0:(e.grid||[1,yt])[1])){for(v=-yt;v<(v=u[_++].getBoundingClientRect().left)&&_<b;);_<b&&_--}for(S=s[b]=[],d=o?Math.min(_,b)*h-.5:r%_,p=_===yt?0:o?b*c/_-.5:r/_|0,v=0,x=yt,y=0;y<b;y++)f=y%_-d,m=p-(y/_|0),S[y]=g=l?Math.abs("y"===l?m:f):St(f*f+m*m),g>v&&(v=g),g<x&&(x=g);"random"===r&&Je(S),S.max=v-x,S.min=x,S.v=b=(parseFloat(e.amount)||parseFloat(e.each)*(_>b?b-1:l?"y"===l?b/_:_:Math.max(_,b/_))||0)*("edges"===r?-1:1),S.b=b<0?n-b:n,S.u=$e(e.amount||e.each)||0,i=i&&b<0?Ai(i):i}return b=(S[t]-S.min)/S.max||0,ue(S.b+(i?i(b):b)*S.v)+S.u}},ti=function(t){var e=Math.pow(10,((t+"").split(".")[1]||"").length);return function(i){var r=ue(Math.round(parseFloat(i)/t)*t*e);return(r-r%1)/e+(Mt(i)?0:$e(i))}},ei=function(t,e){var i,r,n=Ot(t);return!n&&Ct(t)&&(i=n=t.radius||yt,t.values?(t=Ke(t.values),(r=!Mt(t[0]))&&(i*=i)):t=ti(t.increment)),We(e,n?At(t)?function(e){return r=t(e),Math.abs(r-e)<=i?r:e}:function(e){for(var n,s,a=parseFloat(r?e.x:e),o=parseFloat(r?e.y:0),l=yt,h=0,c=t.length;c--;)(n=r?(n=t[c].x-a)*n+(s=t[c].y-o)*s:Math.abs(t[c]-a))<l&&(l=n,h=c);return h=!i||l<=i?t[h]:e,r||h===e||Mt(e)?h:h+$e(e)}:ti(t))},ii=function(t,e,i,r){return We(Ot(t)?!e:!0===i?!!(i=0):!r,(function(){return Ot(t)?t[~~(Math.random()*t.length)]:(i=i||1e-5)&&(r=i<1?Math.pow(10,(i+"").length-2):1)&&Math.floor(Math.round((t-i/2+Math.random()*(e-t+.99*i))/i)*i*r)/r}))},ri=function(t,e,i){return We(i,(function(i){return t[~~e(i)]}))},ni=function(t){for(var e,i,r,n,s=0,a="";~(e=t.indexOf("random(",s));)r=t.indexOf(")",e),n="["===t.charAt(e+7),i=t.substr(e+7,r-e-7).match(n?zt:Lt),a+=t.substr(s,e-s)+ii(n?i:+i[0],n?0:+i[1],+i[2]||1e-5),s=r+1;return a+t.substr(s,t.length-s)},si=function(t,e,i,r,n){var s=e-t,a=r-i;return We(n,(function(e){return i+((e-t)/s*a||0)}))},ai=function(t,e,i){var r,n,s,a=t.labels,o=yt;for(r in a)(n=a[r]-e)<0==!!i&&n&&o>(n=Math.abs(n))&&(s=r,o=n);return s},oi=function(t,e,i){var r,n,s,a=t.vars,o=a[e],l=at,h=t._ctx;if(o)return r=a[e+"Params"],n=a.callbackScope||t,i&&Qt.length&&fe(),h&&(at=h),s=r?o.apply(n,r):o.call(n),at=l,s},li=function(t){return Te(t),t.scrollTrigger&&t.scrollTrigger.kill(!!st),t.progress()<1&&oi(t,"onInterrupt"),t},hi=[],ci=function(t){if(t)if(t=!t.name&&t.default||t,It()||t.headless){var e=t.name,i=At(t),r=e&&!i&&t.init?function(){this._props=[]}:t,n={init:Yt,render:er,add:Vi,kill:rr,modifier:ir,rawVars:0},s={targetTest:0,get:0,getSetter:Zi,aliases:{},register:0};if(bi(),t!==r){if(ee[e])return;ve(r,ve(be(t,n),s)),xe(r.prototype,xe(n,be(t,s))),ee[r.prop=e]=r,t.targetTest&&(ne.push(r),Jt[e]=1),e=("css"===e?"CSS":e.charAt(0).toUpperCase()+e.substr(1))+"Plugin"}$t(e,r),t.register&&t.register(xr,r,ar)}else hi.push(t)},ui=255,di={aqua:[0,ui,ui],lime:[0,ui,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,ui],navy:[0,0,128],white:[ui,ui,ui],olive:[128,128,0],yellow:[ui,ui,0],orange:[ui,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[ui,0,0],pink:[ui,192,203],cyan:[0,ui,ui],transparent:[ui,ui,ui,0]},pi=function(t,e,i){return(6*(t+=t<0?1:t>1?-1:0)<1?e+(i-e)*t*6:t<.5?i:3*t<2?e+(i-e)*(2/3-t)*6:e)*ui+.5|0},fi=function(t,e,i){var r,n,s,a,o,l,h,c,u,d,p=t?Mt(t)?[t>>16,t>>8&ui,t&ui]:0:di.black;if(!p){if(","===t.substr(-1)&&(t=t.substr(0,t.length-1)),di[t])p=di[t];else if("#"===t.charAt(0)){if(t.length<6&&(r=t.charAt(1),n=t.charAt(2),s=t.charAt(3),t="#"+r+r+n+n+s+s+(5===t.length?t.charAt(4)+t.charAt(4):"")),9===t.length)return[(p=parseInt(t.substr(1,6),16))>>16,p>>8&ui,p&ui,parseInt(t.substr(7),16)/255];p=[(t=parseInt(t.substr(1),16))>>16,t>>8&ui,t&ui]}else if("hsl"===t.substr(0,3))if(p=d=t.match(Lt),e){if(~t.indexOf("="))return p=t.match(Ft),i&&p.length<4&&(p[3]=1),p}else a=+p[0]%360/360,o=+p[1]/100,r=2*(l=+p[2]/100)-(n=l<=.5?l*(o+1):l+o-l*o),p.length>3&&(p[3]*=1),p[0]=pi(a+1/3,r,n),p[1]=pi(a,r,n),p[2]=pi(a-1/3,r,n);else p=t.match(Lt)||di.transparent;p=p.map(Number)}return e&&!d&&(r=p[0]/ui,n=p[1]/ui,s=p[2]/ui,l=((h=Math.max(r,n,s))+(c=Math.min(r,n,s)))/2,h===c?a=o=0:(u=h-c,o=l>.5?u/(2-h-c):u/(h+c),a=h===r?(n-s)/u+(n<s?6:0):h===n?(s-r)/u+2:(r-n)/u+4,a*=60),p[0]=~~(a+.5),p[1]=~~(100*o+.5),p[2]=~~(100*l+.5)),i&&p.length<4&&(p[3]=1),p},mi=function(t){var e=[],i=[],r=-1;return t.split(yi).forEach((function(t){var n=t.match(Bt)||[];e.push.apply(e,n),i.push(r+=n.length+1)})),e.c=i,e},gi=function(t,e,i){var r,n,s,a,o="",l=(t+o).match(yi),h=e?"hsla(":"rgba(",c=0;if(!l)return t;if(l=l.map((function(t){return(t=fi(t,e,1))&&h+(e?t[0]+","+t[1]+"%,"+t[2]+"%,"+t[3]:t.join(","))+")"})),i&&(s=mi(t),(r=i.c).join(o)!==s.c.join(o)))for(a=(n=t.replace(yi,"1").split(Bt)).length-1;c<a;c++)o+=n[c]+(~r.indexOf(c)?l.shift()||h+"0,0,0,0)":(s.length?s:l.length?l:i).shift());if(!n)for(a=(n=t.split(yi)).length-1;c<a;c++)o+=n[c]+l[c];return o+n[a]},yi=function(){var t,e="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b";for(t in di)e+="|"+t+"\\b";return new RegExp(e+")","gi")}(),vi=/hsl[a]?\(/,xi=function(t){var e,i=t.join(" ");if(yi.lastIndex=0,yi.test(i))return e=vi.test(i),t[1]=gi(t[1],e),t[0]=gi(t[0],e,mi(t[1])),!0},_i=function(){var t,e,i,r,n,s,a=Date.now,o=500,l=33,h=a(),c=h,u=1e3/240,d=u,p=[],f=function i(f){var m,g,y,v,x=a()-c,_=!0===f;if((x>o||x<0)&&(h+=x-l),((m=(y=(c+=x)-h)-d)>0||_)&&(v=++r.frame,n=y-1e3*r.time,r.time=y/=1e3,d+=m+(m>=u?4:u-m),g=1),_||(t=e(i)),g)for(s=0;s<p.length;s++)p[s](y,n,v,f)};return r={time:0,frame:0,tick:function(){f(!0)},deltaRatio:function(t){return n/(1e3/(t||60))},wake:function(){ut&&(!ht&&It()&&(lt=ht=window,ct=lt.document||{},Ut.gsap=xr,(lt.gsapVersions||(lt.gsapVersions=[])).push(xr.version),jt(Ht||lt.GreenSockGlobals||!lt.gsap&&lt||{}),hi.forEach(ci)),i="undefined"!=typeof requestAnimationFrame&&requestAnimationFrame,t&&r.sleep(),e=i||function(t){return setTimeout(t,d-1e3*r.time+1|0)},ft=1,f(2))},sleep:function(){(i?cancelAnimationFrame:clearTimeout)(t),ft=0,e=Yt},lagSmoothing:function(t,e){o=t||1/0,l=Math.min(e||33,o)},fps:function(t){u=1e3/(t||240),d=1e3*r.time+u},add:function(t,e,i){var n=e?function(e,i,s,a){t(e,i,s,a),r.remove(n)}:t;return r.remove(t),p[i?"unshift":"push"](n),bi(),n},remove:function(t,e){~(e=p.indexOf(t))&&p.splice(e,1)&&s>=e&&s--},_listeners:p},r}(),bi=function(){return!ft&&_i.wake()},Si={},Ei=/^[\d.\-M][\d.\-,\s]/,wi=/["']/g,Ti=function(t){for(var e,i,r,n={},s=t.substr(1,t.length-3).split(":"),a=s[0],o=1,l=s.length;o<l;o++)i=s[o],e=o!==l-1?i.lastIndexOf(","):i.length,r=i.substr(0,e),n[a]=isNaN(r)?r.replace(wi,"").trim():+r,a=i.substr(e+1).trim();return n},Ai=function(t){return function(e){return 1-t(1-e)}},Mi=function t(e,i){for(var r,n=e._first;n;)n instanceof Li?t(n,i):!n.vars.yoyoEase||n._yoyo&&n._repeat||n._yoyo===i||(n.timeline?t(n.timeline,i):(r=n._ease,n._ease=n._yEase,n._yEase=r,n._yoyo=i)),n=n._next},Pi=function(t,e){return t&&(At(t)?t:Si[t]||function(t){var e,i,r,n,s=(t+"").split("("),a=Si[s[0]];return a&&s.length>1&&a.config?a.config.apply(null,~t.indexOf("{")?[Ti(s[1])]:(e=t,i=e.indexOf("(")+1,r=e.indexOf(")"),n=e.indexOf("(",i),e.substring(i,~n&&n<r?e.indexOf(")",r+1):r)).split(",").map(ge)):Si._CE&&Ei.test(t)?Si._CE("",t):a}(t))||e},Ci=function(t,e,i,r){void 0===i&&(i=function(t){return 1-e(1-t)}),void 0===r&&(r=function(t){return t<.5?e(2*t)/2:1-e(2*(1-t))/2});var n,s={easeIn:e,easeOut:i,easeInOut:r};return he(t,(function(t){for(var e in Si[t]=Ut[t]=s,Si[n=t.toLowerCase()]=i,s)Si[n+("easeIn"===e?".in":"easeOut"===e?".out":".inOut")]=Si[t+"."+e]=s[e]})),s},ki=function(t){return function(e){return e<.5?(1-t(1-2*e))/2:.5+t(2*(e-.5))/2}},Ii=function t(e,i,r){var n=i>=1?i:1,s=(r||(e?.3:.45))/(i<1?i:1),a=s/xt*(Math.asin(1/n)||0),o=function(t){return 1===t?1:n*Math.pow(2,-10*t)*wt((t-a)*s)+1},l="out"===e?o:"in"===e?function(t){return 1-o(1-t)}:ki(o);return s=xt/s,l.config=function(i,r){return t(e,i,r)},l},Di=function t(e,i){void 0===i&&(i=1.70158);var r=function(t){return t?--t*t*((i+1)*t+i)+1:0},n="out"===e?r:"in"===e?function(t){return 1-r(1-t)}:ki(r);return n.config=function(i){return t(e,i)},n};he("Linear,Quad,Cubic,Quart,Quint,Strong",(function(t,e){var i=e<5?e+1:e;Ci(t+",Power"+(i-1),e?function(t){return Math.pow(t,i)}:function(t){return t},(function(t){return 1-Math.pow(1-t,i)}),(function(t){return t<.5?Math.pow(2*t,i)/2:1-Math.pow(2*(1-t),i)/2}))})),Si.Linear.easeNone=Si.none=Si.Linear.easeIn,Ci("Elastic",Ii("in"),Ii("out"),Ii()),function(t,e){var i=1/e,r=2*i,n=2.5*i,s=function(s){return s<i?t*s*s:s<r?t*Math.pow(s-1.5/e,2)+.75:s<n?t*(s-=2.25/e)*s+.9375:t*Math.pow(s-2.625/e,2)+.984375};Ci("Bounce",(function(t){return 1-s(1-t)}),s)}
vendor: 14,198 bytes, line 2
2(7.5625,2.75),Ci("Expo",(function(t){return t?Math.pow(2,10*(t-1)):0})),Ci("Circ",(function(t){return-(St(1-t*t)-1)})),Ci("Sine",(function(t){return 1===t?1:1-Et(t*_t)})),Ci("Back",Di("in"),Di("out"),Di()),Si.SteppedEase=Si.steps=Ut.SteppedEase={config:function(t,e){void 0===t&&(t=1);var i=1/t,r=t+(e?0:1),n=e?1:0;return function(t){return((r*Xe(0,.99999999,t)|0)+n)*i}}},gt.ease=Si["quad.out"],he("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",(function(t){return se+=t+","+t+"Params,"}));var Ri=function(t,e){this.id=bt++,t._gsap=this,this.target=t,this.harness=e,this.get=e?e.get:le,this.set=e?e.getSetter:Zi},Oi=function(){function t(t){this.vars=t,this._delay=+t.delay||0,(this._repeat=t.repeat===1/0?-2:t.repeat||0)&&(this._rDelay=t.repeatDelay||0,this._yoyo=!!t.yoyo||!!t.yoyoEase),this._ts=1,ze(this,+t.duration,1,1),this.data=t.data,at&&(this._ctx=at,at.data.push(this)),ft||_i.wake()}var e=t.prototype;return e.delay=function(t){return t||0===t?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+t-this._delay),this._delay=t,this):this._delay},e.duration=function(t){return arguments.length?this.totalDuration(this._repeat>0?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},e.totalDuration=function(t){return arguments.length?(this._dirty=0,ze(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,e){if(bi(),!arguments.length)return this._tTime;var i=this._dp;if(i&&i.smoothChildTiming&&this._ts){for(Re(this,t),!i._dp||i.parent||Oe(i,this);i&&i.parent;)i.parent._time!==i._start+(i._ts>=0?i._tTime/i._ts:(i.totalDuration()-i._tTime)/-i._ts)&&i.totalTime(i._tTime,!0),i=i.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&t<this._tDur||this._ts<0&&t>0||!this._tDur&&!t)&&Le(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!e||this._initted&&Math.abs(this._zTime)===vt||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),me(this,t,e)),this},e.time=function(t,e){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+Ce(this))%(this._dur+this._rDelay)||(t?this._dur:0),e):this._time},e.totalProgress=function(t,e){return arguments.length?this.totalTime(this.totalDuration()*t,e):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>0?1:0},e.progress=function(t,e){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?t:1-t)+Ce(this),e):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(t,e){var i=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*i,e):this._repeat?ke(this._tTime,i)+1:1},e.timeScale=function(t,e){if(!arguments.length)return-1e-8===this._rts?0:this._rts;if(this._rts===t)return this;var i=this.parent&&this._ts?Ie(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||-1e-8===t?0:this._rts,this.totalTime(Xe(-Math.abs(this._delay),this._tDur,i),!1!==e),De(this),function(t){for(var e=t.parent;e&&e.parent;)e._dirty=1,e.totalDuration(),e=e.parent;return t}(this)},e.paused=function(t){return arguments.length?(this._ps!==t&&(this._ps=t,t?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(bi(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&Math.abs(this._zTime)!==vt&&(this._tTime-=vt)))),this):this._ps},e.startTime=function(t){if(arguments.length){this._start=t;var e=this.parent||this._dp;return e&&(e._sort||!this.parent)&&Le(e,this,t-this._delay),this}return this._start},e.endTime=function(t){return this._start+(kt(t)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(t){var e=this.parent||this._dp;return e?t&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Ie(e.rawTime(t),this):this._tTime:this._tTime},e.revert=function(t){void 0===t&&(t=Zt);var e=st;return st=t,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(t),this.totalTime(-.01,t.suppressEvents)),"nested"!==this.data&&!1!==t.kill&&this.kill(),st=e,this},e.globalTime=function(t){for(var e=this,i=arguments.length?t:e.rawTime();e;)i=e._start+i/(Math.abs(e._ts)||1),e=e._dp;return!this.parent&&this._sat?this._sat.globalTime(t):i},e.repeat=function(t){return arguments.length?(this._repeat=t===1/0?-2:t,Ge(this)):-2===this._repeat?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var e=this._time;return this._rDelay=t,Ge(this),e?this.time(e):this}return this._rDelay},e.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},e.seek=function(t,e){return this.totalTime(He(this,t),kt(e))},e.restart=function(t,e){return this.play().totalTime(t?-this._delay:0,kt(e))},e.play=function(t,e){return null!=t&&this.seek(t,e),this.reversed(!1).paused(!1)},e.reverse=function(t,e){return null!=t&&this.seek(t||this.totalDuration(),e),this.reversed(!0).paused(!1)},e.pause=function(t,e){return null!=t&&this.seek(t,e),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(t){return arguments.length?(!!t!==this.reversed()&&this.timeScale(-this._rts||(t?-1e-8:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-1e-8,this},e.isActive=function(){var t,e=this.parent||this._dp,i=this._start;return!(e&&!(this._ts&&this._initted&&e.isActive()&&(t=e.rawTime(!0))>=i&&t<this.endTime(!0)-vt))},e.eventCallback=function(t,e,i){var r=this.vars;return arguments.length>1?(e?(r[t]=e,i&&(r[t+"Params"]=i),"onUpdate"===t&&(this._onUpdate=e)):delete r[t],this):r[t]},e.then=function(t){var e=this;return new Promise((function(i){var r=At(t)?t:ye,n=function(){var t=e.then;e.then=null,At(r)&&(r=r(e))&&(r.then||r===e)&&(e.then=t),i(r),e.then=t};e._initted&&1===e.totalProgress()&&e._ts>=0||!e._tTime&&e._ts<0?n():e._prom=n}))},e.kill=function(){li(this)},t}();ve(Oi.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-1e-8,_prom:0,_ps:!1,_rts:1});var Li=function(t){function e(e,i){var r;return void 0===e&&(e={}),(r=t.call(this,e)||this).labels={},r.smoothChildTiming=!!e.smoothChildTiming,r.autoRemoveChildren=!!e.autoRemoveChildren,r._sort=kt(e.sortChildren),ot&&Le(e.parent||ot,it(r),i),e.reversed&&r.reverse(),e.paused&&r.paused(!0),e.scrollTrigger&&Fe(it(r),e.scrollTrigger),r}rt(e,t);var i=e.prototype;return i.to=function(t,e,i){return je(0,arguments,this),this},i.from=function(t,e,i){return je(1,arguments,this),this},i.fromTo=function(t,e,i,r){return je(2,arguments,this),this},i.set=function(t,e,i){return e.duration=0,e.parent=this,Se(e).repeatDelay||(e.repeat=0),e.immediateRender=!!e.immediateRender,new Xi(t,e,He(this,i),1),this},i.call=function(t,e,i){return Le(this,Xi.delayedCall(0,t,e),i)},i.staggerTo=function(t,e,i,r,n,s,a){return i.duration=e,i.stagger=i.stagger||r,i.onComplete=s,i.onCompleteParams=a,i.parent=this,new Xi(t,i,He(this,n)),this},i.staggerFrom=function(t,e,i,r,n,s,a){return i.runBackwards=1,Se(i).immediateRender=kt(i.immediateRender),this.staggerTo(t,e,i,r,n,s,a)},i.staggerFromTo=function(t,e,i,r,n,s,a,o){return r.startAt=i,Se(r).immediateRender=kt(r.immediateRender),this.staggerTo(t,e,r,n,s,a,o)},i.render=function(t,e,i){var r,n,s,a,o,l,h,c,u,d,p,f,m=this._time,g=this._dirty?this.totalDuration():this._tDur,y=this._dur,v=t<=0?0:ue(t),x=this._zTime<0!=t<0&&(this._initted||!y);if(this!==ot&&v>g&&t>=0&&(v=g),v!==this._tTime||i||x){if(m!==this._time&&y&&(v+=this._time-m,t+=this._time-m),r=v,u=this._start,l=!(c=this._ts),x&&(y||(m=this._zTime),(t||!e)&&(this._zTime=t)),this._repeat){if(p=this._yoyo,o=y+this._rDelay,this._repeat<-1&&t<0)return this.totalTime(100*o+t,e,i);if(r=ue(v%o),v===g?(a=this._repeat,r=y):((a=~~(v/o))&&a===v/o&&(r=y,a--),r>y&&(r=y)),d=ke(this._tTime,o),!m&&this._tTime&&d!==a&&this._tTime-d*o-this._dur<=0&&(d=a),p&&1&a&&(r=y-r,f=1),a!==d&&!this._lock){var _=p&&1&d,b=_===(p&&1&a);if(a<d&&(_=!_),m=_?0:v%y?y:v,this._lock=1,this.render(m||(f?0:ue(a*o)),e,!y)._lock=0,this._tTime=v,!e&&this.parent&&oi(this,"onRepeat"),this.vars.repeatRefresh&&!f&&(this.invalidate()._lock=1),m&&m!==this._time||l!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(y=this._dur,g=this._tDur,b&&(this._lock=2,m=_?y:-1e-4,this.render(m,!0),this.vars.repeatRefresh&&!f&&this.invalidate()),this._lock=0,!this._ts&&!l)return this;Mi(this,f)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(h=function(t,e,i){var r;if(i>e)for(r=t._first;r&&r._start<=i;){if("isPause"===r.data&&r._start>e)return r;r=r._next}else for(r=t._last;r&&r._start>=i;){if("isPause"===r.data&&r._start<e)return r;r=r._prev}}(this,ue(m),ue(r)),h&&(v-=r-(r=h._start))),this._tTime=v,this._time=r,this._act=!c,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=t,m=0),!m&&r&&!e&&!a&&(oi(this,"onStart"),this._tTime!==v))return this;if(r>=m&&t>=0)for(n=this._first;n;){if(s=n._next,(n._act||r>=n._start)&&n._ts&&h!==n){if(n.parent!==this)return this.render(t,e,i);if(n.render(n._ts>0?(r-n._start)*n._ts:(n._dirty?n.totalDuration():n._tDur)+(r-n._start)*n._ts,e,i),r!==this._time||!this._ts&&!l){h=0,s&&(v+=this._zTime=-1e-8);break}}n=s}else{n=this._last;for(var S=t<0?t:r;n;){if(s=n._prev,(n._act||S<=n._end)&&n._ts&&h!==n){if(n.parent!==this)return this.render(t,e,i);if(n.render(n._ts>0?(S-n._start)*n._ts:(n._dirty?n.totalDuration():n._tDur)+(S-n._start)*n._ts,e,i||st&&(n._initted||n._startAt)),r!==this._time||!this._ts&&!l){h=0,s&&(v+=this._zTime=S?-1e-8:vt);break}}n=s}}if(h&&!e&&(this.pause(),h.render(r>=m?0:-1e-8)._zTime=r>=m?1:-1,this._ts))return this._start=u,De(this),this.render(t,e,i);this._onUpdate&&!e&&oi(this,"onUpdate",!0),(v===g&&this._tTime>=this.totalDuration()||!v&&m)&&(u!==this._start&&Math.abs(c)===Math.abs(this._ts)||this._lock||((t||!y)&&(v===g&&this._ts>0||!v&&this._ts<0)&&Te(this,1),e||t<0&&!m||!v&&!m&&g||(oi(this,v===g&&t>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(v<g&&this.timeScale()>0)&&this._prom())))}return this},i.add=function(t,e){var i=this;if(Mt(e)||(e=He(this,e,t)),!(t instanceof Oi)){if(Ot(t))return t.forEach((function(t){return i.add(t,e)})),this;if(Tt(t))return this.addLabel(t,e);if(!At(t))return this;t=Xi.delayedCall(0,t)}return this!==t?Le(this,t,e):this},i.getChildren=function(t,e,i,r){void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===i&&(i=!0),void 0===r&&(r=-yt);for(var n=[],s=this._first;s;)s._start>=r&&(s instanceof Xi?e&&n.push(s):(i&&n.push(s),t&&n.push.apply(n,s.getChildren(!0,e,i)))),s=s._next;return n},i.getById=function(t){for(var e=this.getChildren(1,1,1),i=e.length;i--;)if(e[i].vars.id===t)return e[i]},i.remove=function(t){return Tt(t)?this.removeLabel(t):At(t)?this.killTweensOf(t):(we(this,t),t===this._recent&&(this._recent=this._last),Ae(this))},i.totalTime=function(e,i){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=ue(_i.time-(this._ts>0?e/this._ts:(this.totalDuration()-e)/-this._ts))),t.prototype.totalTime.call(this,e,i),this._forcing=0,this):this._tTime},i.addLabel=function(t,e){return this.labels[t]=He(this,e),this},i.removeLabel=function(t){return delete this.labels[t],this},i.addPause=function(t,e,i){var r=Xi.delayedCall(0,e||Yt,i);return r.data="isPause",this._hasPause=1,Le(this,r,He(this,t))},i.removePause=function(t){var e=this._first;for(t=He(this,t);e;)e._start===t&&"isPause"===e.data&&Te(e),e=e._next},i.killTweensOf=function(t,e,i){for(var r=this.getTweensOf(t,i),n=r.length;n--;)Fi!==r[n]&&r[n].kill(t,e);return this},i.getTweensOf=function(t,e){for(var i,r=[],n=Ke(t),s=this._first,a=Mt(e);s;)s instanceof Xi?pe(s._targets,n)&&(a?(!Fi||s._initted&&s._ts)&&s.globalTime(0)<=e&&s.globalTime(s.totalDuration())>e:!e||s.isActive())&&r.push(s):(i=s.getTweensOf(n,e)).length&&r.push.apply(r,i),s=s._next;return r},i.tweenTo=function(t,e){e=e||{};var i,r=this,n=He(r,t),s=e,a=s.startAt,o=s.onStart,l=s.onStartParams,h=s.immediateRender,c=Xi.to(r,ve({ease:e.ease||"none",lazy:!1,immediateRender:!1,time:n,overwrite:"auto",duration:e.duration||Math.abs((n-(a&&"time"in a?a.time:r._time))/r.timeScale())||vt,onStart:function(){if(r.pause(),!i){var t=e.duration||Math.abs((n-(a&&"time"in a?a.time:r._time))/r.timeScale());c._dur!==t&&ze(c,t,0,1).render(c._time,!0,!0),i=1}o&&o.apply(c,l||[])}},e));return h?c.render(0):c},i.tweenFromTo=function(t,e,i){return this.tweenTo(e,ve({startAt:{time:He(this,t)}},i))},i.recent=function(){return this._recent},i.nextLabel=function(t){return void 0===t&&(t=this._time),ai(this,He(this,t))},i.previousLabel=function(t){return void 0===t&&(t=this._time),ai(this,He(this,t),1)},i.currentLabel=function(t){return arguments.length?this.seek(t,!0):this.previousLabel(this._time+vt)},i.shiftChildren=function(t,e,i){void 0===i&&(i=0);for(var r,n=this._first,s=this.labels;n;)n._start>=i&&(n._start+=t,n._end+=t),n=n._next;if(e)for(r in s)s[r]>=i&&(s[r]+=t);return Ae(this)},i.invalidate=function(e){var i=this._first;for(this._lock=0;i;)i.invalidate(e),i=i._next;return t.prototype.invalidate.call(this,e)},i.clear=function(t){void 0===t&&(t=!0);for(var e,i=this._first;i;)e=i._next,this.remove(i),i=e;return this._dp&&(this._time=this._tTime=this._pTime=0),t&&(this.labels={}),Ae(this)},i.totalDuration=function(t){var e,i,r,n=0,s=this,a=s._last,o=yt;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-t:t));if(s._dirty){for(r=s.parent;a;)e=a._prev,a._dirty&&a.totalDuration(),(i=a._start)>o&&s._sort&&a._ts&&!s._lock?(s._lock=1,Le(s,a,i-a._delay,1)._lock=0):o=i,i<0&&a._ts&&(n-=i,(!r&&!s._dp||r&&r.smoothChildTiming)&&(s._start+=i/s._ts,s._time-=i,s._tTime-=i),s.shiftChildren(-i,!1,-Infinity),o=0),a._end>n&&a._ts&&(n=a._end),a=e;ze(s,s===ot&&s._time>n?s._time:n,1,1),s._dirty=0}return s._tDur},e.updateRoot=function(t){if(ot._ts&&(me(ot,Ie(t,ot)),dt=_i.frame),_i.frame>=re){re+=mt.autoSleep||120;var e=ot._first;if((!e||!e._ts)&&mt.autoSleep&&_i._listeners.length<2){for(;e&&!e._ts;)e=e._next;e||_i.sleep()}}},e}(Oi);ve(Li.prototype,{_lock:0,_hasPause:0,_forcing:0});
vendor: 15,448 bytes, line 2
2var Fi,Bi,Ni=function(t,e,i,r,n,s,a){var o,l,h,c,u,d,p,f,m=new ar(this._pt,t,e,0,1,tr,null,n),g=0,y=0;for(m.b=i,m.e=r,i+="",(p=~(r+="").indexOf("random("))&&(r=ni(r)),s&&(s(f=[i,r],t,e),i=f[0],r=f[1]),l=i.match(Nt)||[];o=Nt.exec(r);)c=o[0],u=r.substring(g,o.index),h?h=(h+1)%5:"rgba("===u.substr(-5)&&(h=1),c!==l[y++]&&(d=parseFloat(l[y-1])||0,m._pt={_next:m._pt,p:u||1===y?u:",",s:d,c:"="===c.charAt(1)?de(d,c)-d:parseFloat(c)-d,m:h&&h<4?Math.round:0},g=Nt.lastIndex);return m.c=g<r.length?r.substring(g,r.length):"",m.fp=a,(Vt.test(r)||p)&&(m.e=0),this._pt=m,m},Vi=function(t,e,i,r,n,s,a,o,l,h){At(r)&&(r=r(n||0,t,s));var c,u=t[e],d="get"!==i?i:At(u)?l?t[e.indexOf("set")||!At(t["get"+e.substr(3)])?e:"get"+e.substr(3)](l):t[e]():u,p=At(u)?l?qi:Yi:$i;if(Tt(r)&&(~r.indexOf("random(")&&(r=ni(r)),"="===r.charAt(1)&&((c=de(d,r)+($e(d)||0))||0===c)&&(r=c)),!h||d!==r||Bi)return isNaN(d*r)||""===r?(!u&&!(e in t)&&Wt(e,r),Ni.call(this,t,e,d,r,p,o||mt.stringFilter,l)):(c=new ar(this._pt,t,e,+d||0,r-(d||0),"boolean"==typeof u?Qi:Ji,0,p),l&&(c.fp=l),a&&c.modifier(a,this,t),this._pt=c)},zi=function(t,e,i,r,n,s){var a,o,l,h;if(ee[t]&&!1!==(a=new ee[t]).init(n,a.rawVars?e[t]:function(t,e,i,r,n){if(At(t)&&(t=Hi(t,n,e,i,r)),!Ct(t)||t.style&&t.nodeType||Ot(t)||Rt(t))return Tt(t)?Hi(t,n,e,i,r):t;var s,a={};for(s in t)a[s]=Hi(t[s],n,e,i,r);return a}(e[t],r,n,s,i),i,r,s)&&(i._pt=o=new ar(i._pt,n,t,0,1,a.render,a,0,a.priority),i!==pt))for(l=i._ptLookup[i._targets.indexOf(n)],h=a._props.length;h--;)l[a._props[h]]=o;return a},Gi=function t(e,i,r){var n,s,a,o,l,h,c,u,d,p,f,m,g,y=e.vars,v=y.ease,x=y.startAt,_=y.immediateRender,b=y.lazy,S=y.onUpdate,E=y.runBackwards,w=y.yoyoEase,T=y.keyframes,A=y.autoRevert,M=e._dur,P=e._startAt,C=e._targets,k=e.parent,I=k&&"nested"===k.data?k.vars.targets:C,D="auto"===e._overwrite&&!nt,R=e.timeline;if(R&&(!T||!v)&&(v="none"),e._ease=Pi(v,gt.ease),e._yEase=w?Ai(Pi(!0===w?v:w,gt.ease)):0,w&&e._yoyo&&!e._repeat&&(w=e._yEase,e._yEase=e._ease,e._ease=w),e._from=!R&&!!y.runBackwards,!R||T&&!y.stagger){if(m=(u=C[0]?oe(C[0]).harness:0)&&y[u.prop],n=be(y,Jt),P&&(P._zTime<0&&P.progress(1),i<0&&E&&_&&!A?P.render(-1,!0):P.revert(E&&M?Kt:qt),P._lazy=0),x){if(Te(e._startAt=Xi.set(C,ve({data:"isStart",overwrite:!1,parent:k,immediateRender:!0,lazy:!P&&kt(b),startAt:null,delay:0,onUpdate:S&&function(){return oi(e,"onUpdate")},stagger:0},x))),e._startAt._dp=0,e._startAt._sat=e,i<0&&(st||!_&&!A)&&e._startAt.revert(Kt),_&&M&&i<=0&&r<=0)return void(i&&(e._zTime=i))}else if(E&&M&&!P)if(i&&(_=!1),a=ve({overwrite:!1,data:"isFromStart",lazy:_&&!P&&kt(b),immediateRender:_,stagger:0,parent:k},n),m&&(a[u.prop]=m),Te(e._startAt=Xi.set(C,a)),e._startAt._dp=0,e._startAt._sat=e,i<0&&(st?e._startAt.revert(Kt):e._startAt.render(-1,!0)),e._zTime=i,_){if(!i)return}else t(e._startAt,vt,vt);for(e._pt=e._ptCache=0,b=M&&kt(b)||b&&!M,s=0;s<C.length;s++){if(c=(l=C[s])._gsap||ae(C)[s]._gsap,e._ptLookup[s]=p={},te[c.id]&&Qt.length&&fe(),f=I===C?s:I.indexOf(l),u&&!1!==(d=new u).init(l,m||n,e,f,I)&&(e._pt=o=new ar(e._pt,l,d.name,0,1,d.render,d,0,d.priority),d._props.forEach((function(t){p[t]=o})),d.priority&&(h=1)),!u||m)for(a in n)ee[a]&&(d=zi(a,n,e,f,l,I))?d.priority&&(h=1):p[a]=o=Vi.call(e,l,a,"get",n[a],f,I,0,y.stringFilter);e._op&&e._op[s]&&e.kill(l,e._op[s]),D&&e._pt&&(Fi=e,ot.killTweensOf(l,p,e.globalTime(i)),g=!e.parent,Fi=0),e._pt&&b&&(te[c.id]=1)}h&&sr(e),e._onInit&&e._onInit(e)}e._onUpdate=S,e._initted=(!e._op||e._pt)&&!g,T&&i<=0&&R.render(yt,!0,!0)},Ui=function(t,e,i,r){var n,s,a=e.ease||r||"power1.inOut";if(Ot(e))s=i[t]||(i[t]=[]),e.forEach((function(t,i){return s.push({t:i/(e.length-1)*100,v:t,e:a})}));else for(n in e)s=i[n]||(i[n]=[]),"ease"===n||s.push({t:parseFloat(t),v:e[n],e:a})},Hi=function(t,e,i,r,n){return At(t)?t.call(e,i,r,n):Tt(t)&&~t.indexOf("random(")?ni(t):t},ji=se+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",Wi={};he(ji+",id,stagger,delay,duration,paused,scrollTrigger",(function(t){return Wi[t]=1}));var Xi=function(t){function e(e,i,r,n){var s;"number"==typeof i&&(r.duration=i,i=r,r=null);var a,o,l,h,c,u,d,p,f=(s=t.call(this,n?i:Se(i))||this).vars,m=f.duration,g=f.delay,y=f.immediateRender,v=f.stagger,x=f.overwrite,_=f.keyframes,b=f.defaults,S=f.scrollTrigger,E=f.yoyoEase,w=i.parent||ot,T=(Ot(e)||Rt(e)?Mt(e[0]):"length"in i)?[e]:Ke(e);if(s._targets=T.length?ae(T):Xt("GSAP target "+e+" not found. https://gsap.com",!mt.nullTargetWarn)||[],s._ptLookup=[],s._overwrite=x,_||v||Dt(m)||Dt(g)){if(i=s.vars,(a=s.timeline=new Li({data:"nested",defaults:b||{},targets:w&&"nested"===w.data?w.vars.targets:T})).kill(),a.parent=a._dp=it(s),a._start=0,v||Dt(m)||Dt(g)){if(h=T.length,d=v&&Qe(v),Ct(v))for(c in v)~ji.indexOf(c)&&(p||(p={}),p[c]=v[c]);for(o=0;o<h;o++)(l=be(i,Wi)).stagger=0,E&&(l.yoyoEase=E),p&&xe(l,p),u=T[o],l.duration=+Hi(m,it(s),o,u,T),l.delay=(+Hi(g,it(s),o,u,T)||0)-s._delay,!v&&1===h&&l.delay&&(s._delay=g=l.delay,s._start+=g,l.delay=0),a.to(u,l,d?d(o,u,T):0),a._ease=Si.none;a.duration()?m=g=0:s.timeline=0}else if(_){Se(ve(a.vars.defaults,{ease:"none"})),a._ease=Pi(_.ease||i.ease||"none");var A,M,P,C=0;if(Ot(_))_.forEach((function(t){return a.to(T,t,">")})),a.duration();else{for(c in l={},_)"ease"===c||"easeEach"===c||Ui(c,_[c],l,_.easeEach);for(c in l)for(A=l[c].sort((function(t,e){return t.t-e.t})),C=0,o=0;o<A.length;o++)(P={ease:(M=A[o]).e,duration:(M.t-(o?A[o-1].t:0))/100*m})[c]=M.v,a.to(T,P,C),C+=P.duration;a.duration()<m&&a.to({},{duration:m-a.duration()})}}m||s.duration(m=a.duration())}else s.timeline=0;return!0!==x||nt||(Fi=it(s),ot.killTweensOf(T),Fi=0),Le(w,it(s),r),i.reversed&&s.reverse(),i.paused&&s.paused(!0),(y||!m&&!_&&s._start===ue(w._time)&&kt(y)&&Pe(it(s))&&"nested"!==w.data)&&(s._tTime=-1e-8,s.render(Math.max(0,-g)||0)),S&&Fe(it(s),S),s}rt(e,t);var i=e.prototype;return i.render=function(t,e,i){var r,n,s,a,o,l,h,c,u,d=this._time,p=this._tDur,f=this._dur,m=t<0,g=t>p-vt&&!m?p:t<vt?0:t;if(f){if(g!==this._tTime||!t||i||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==m){if(r=g,c=this.timeline,this._repeat){if(a=f+this._rDelay,this._repeat<-1&&m)return this.totalTime(100*a+t,e,i);if(r=ue(g%a),g===p?(s=this._repeat,r=f):((s=~~(g/a))&&s===ue(g/a)&&(r=f,s--),r>f&&(r=f)),(l=this._yoyo&&1&s)&&(u=this._yEase,r=f-r),o=ke(this._tTime,a),r===d&&!i&&this._initted&&s===o)return this._tTime=g,this;s!==o&&(c&&this._yEase&&Mi(c,l),this.vars.repeatRefresh&&!l&&!this._lock&&this._time!==a&&this._initted&&(this._lock=i=1,this.render(ue(a*s),!0).invalidate()._lock=0))}if(!this._initted){if(Be(this,m?t:r,i,e,g))return this._tTime=0,this;if(!(d===this._time||i&&this.vars.repeatRefresh&&s!==o))return this;if(f!==this._dur)return this.render(t,e,i)}if(this._tTime=g,this._time=r,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=h=(u||this._ease)(r/f),this._from&&(this.ratio=h=1-h),r&&!d&&!e&&!s&&(oi(this,"onStart"),this._tTime!==g))return this;for(n=this._pt;n;)n.r(h,n.d),n=n._next;c&&c.render(t<0?t:c._dur*c._ease(r/this._dur),e,i)||this._startAt&&(this._zTime=t),this._onUpdate&&!e&&(m&&Me(this,t,0,i),oi(this,"onUpdate")),this._repeat&&s!==o&&this.vars.onRepeat&&!e&&this.parent&&oi(this,"onRepeat"),g!==this._tDur&&g||this._tTime!==g||(m&&!this._onUpdate&&Me(this,t,0,!0),(t||!f)&&(g===this._tDur&&this._ts>0||!g&&this._ts<0)&&Te(this,1),e||m&&!d||!(g||d||l)||(oi(this,g===p?"onComplete":"onReverseComplete",!0),this._prom&&!(g<p&&this.timeScale()>0)&&this._prom()))}}else!function(t,e,i,r){var n,s,a,o=t.ratio,l=e<0||!e&&(!t._start&&Ne(t)&&(t._initted||!Ve(t))||(t._ts<0||t._dp._ts<0)&&!Ve(t))?0:1,h=t._rDelay,c=0;if(h&&t._repeat&&(c=Xe(0,t._tDur,e),s=ke(c,h),t._yoyo&&1&s&&(l=1-l),s!==ke(t._tTime,h)&&(o=1-l,t.vars.repeatRefresh&&t._initted&&t.invalidate())),l!==o||st||r||t._zTime===vt||!e&&t._zTime){if(!t._initted&&Be(t,e,r,i,c))return;for(a=t._zTime,t._zTime=e||(i?vt:0),i||(i=e&&!a),t.ratio=l,t._from&&(l=1-l),t._time=0,t._tTime=c,n=t._pt;n;)n.r(l,n.d),n=n._next;e<0&&Me(t,e,0,!0),t._onUpdate&&!i&&oi(t,"onUpdate"),c&&t._repeat&&!i&&t.parent&&oi(t,"onRepeat"),(e>=t._tDur||e<0)&&t.ratio===l&&(l&&Te(t,1),i||st||(oi(t,l?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=e)}(this,t,e,i);return this},i.targets=function(){return this._targets},i.invalidate=function(e){return(!e||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(e),t.prototype.invalidate.call(this,e)},i.resetTo=function(t,e,i,r,n){ft||_i.wake(),this._ts||this.play();var s=Math.min(this._dur,(this._dp._time-this._start)*this._ts);return this._initted||Gi(this,s),function(t,e,i,r,n,s,a,o){var l,h,c,u,d=(t._pt&&t._ptCache||(t._ptCache={}))[e];if(!d)for(d=t._ptCache[e]=[],c=t._ptLookup,u=t._targets.length;u--;){if((l=c[u][e])&&l.d&&l.d._pt)for(l=l.d._pt;l&&l.p!==e&&l.fp!==e;)l=l._next;if(!l)return Bi=1,t.vars[e]="+=0",Gi(t,a),Bi=0,o?Xt(e+" not eligible for reset"):1;d.push(l)}for(u=d.length;u--;)(l=(h=d[u])._pt||h).s=!r&&0!==r||n?l.s+(r||0)+s*l.c:r,l.c=i-l.s,h.e&&(h.e=ce(i)+$e(h.e)),h.b&&(h.b=l.s+$e(h.b))}(this,t,e,i,r,this._ease(s/this._dur),s,n)?this.resetTo(t,e,i,r,1):(Re(this,0),this.parent||Ee(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},i.kill=function(t,e){if(void 0===e&&(e="all"),!(t||e&&"all"!==e))return this._lazy=this._pt=0,this.parent?li(this):this;if(this.timeline){var i=this.timeline.totalDuration();return this.timeline.killTweensOf(t,e,Fi&&!0!==Fi.vars.overwrite)._first||li(this),this.parent&&i!==this.timeline.totalDuration()&&ze(this,this._dur*this.timeline._tDur/i,0,1),this}var r,n,s,a,o,l,h,c=this._targets,u=t?Ke(t):c,d=this._ptLookup,p=this._pt;if((!e||"all"===e)&&function(t,e){for(var i=t.length,r=i===e.length;r&&i--&&t[i]===e[i];);return i<0}(c,u))return"all"===e&&(this._pt=0),li(this);for(r=this._op=this._op||[],"all"!==e&&(Tt(e)&&(o={},he(e,(function(t){return o[t]=1})),e=o),e=function(t,e){var i,r,n,s,a=t[0]?oe(t[0]).harness:0,o=a&&a.aliases;if(!o)return e;for(r in i=xe({},e),o)if(r in i)for(n=(s=o[r].split(",")).length;n--;)i[s[n]]=i[r];return i}(c,e)),h=c.length;h--;)if(~u.indexOf(c[h]))for(o in n=d[h],"all"===e?(r[h]=e,a=n,s={}):(s=r[h]=r[h]||{},a=e),a)(l=n&&n[o])&&("kill"in l.d&&!0!==l.d.kill(o)||we(this,l,"_pt"),delete n[o]),"all"!==s&&(s[o]=1);return this._initted&&!this._pt&&p&&li(this),this},e.to=function(t,i){return new e(t,i,arguments[2])},e.from=function(t,e){return je(1,arguments)},e.delayedCall=function(t,i,r,n){return new e(i,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:t,onComplete:i,onReverseComplete:i,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:n})},e.fromTo=function(t,e,i){return je(2,arguments)},e.set=function(t,i){return i.duration=0,i.repeatDelay||(i.repeat=0),new e(t,i)},e.killTweensOf=function(t,e,i){return ot.killTweensOf(t,e,i)},e}(Oi);ve(Xi.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),he("staggerTo,staggerFrom,staggerFromTo",(function(t){Xi[t]=function(){var e=new Li,i=Ye.call(arguments,0);return i.splice("staggerFromTo"===t?5:4,0,0),e[t].apply(e,i)}}));var $i=function(t,e,i){return t[e]=i},Yi=function(t,e,i){return t[e](i)},qi=function(t,e,i,r){return t[e](r.fp,i)},Ki=function(t,e,i){return t.setAttribute(e,i)},Zi=function(t,e){return At(t[e])?Yi:Pt(t[e])&&t.setAttribute?Ki:$i},Ji=function(t,e){return e.set(e.t,e.p,Math.round(1e6*(e.s+e.c*t))/1e6,e)},Qi=function(t,e){return e.set(e.t,e.p,!!(e.s+e.c*t),e)},tr=function(t,e){var i=e._pt,r="";if(!t&&e.b)r=e.b;else if(1===t&&e.e)r=e.e;else{for(;i;)r=i.p+(i.m?i.m(i.s+i.c*t):Math.round(1e4*(i.s+i.c*t))/1e4)+r,i=i._next;r+=e.c}e.set(e.t,e.p,r,e)},er=function(t,e){for(var i=e._pt;i;)i.r(t,i.d),i=i._next},ir=function(t,e,i,r){for(var n,s=this._pt;s;)n=s._next,s.p===r&&s.modifier(t,e,i),s=n},rr=function(t){for(var e,i,r=this._pt;r;)i=r._next,r.p===t&&!r.op||r.op===t?we(this,r,"_pt"):r.dep||(e=1),r=i;return!e},nr=function(t,e,i,r){r.mSet(t,e,r.m.call(r.tween,i,r.mt),r)},sr=function(t){for(var e,i,r,n,s=t._pt;s;){for(e=s._next,i=r;i&&i.pr>s.pr;)i=i._next;(s._prev=i?i._prev:n)?s._prev._next=s:r=s,(s._next=i)?i._prev=s:n=s,s=e}t._pt=r},ar=function(){function t(t,e,i,r,n,s,a,o,l){this.t=e,this.s=r,this.c=n,this.p=i,this.r=s||Ji,this.d=a||this,this.set=o||$i,this.pr=l||0,this._next=t,t&&(t._prev=this)}return t.prototype.modifier=function(t,e,i){this.mSet=this.mSet||this.set,this.set=nr,this.m=t,this.mt=i,this.tween=e},t}();he(se+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",(function(t){return Jt[t]=1})),Ut.TweenMax=Ut.TweenLite=Xi,Ut.TimelineLite=Ut.TimelineMax=Li,ot=new Li({sortChildren:!1,defaults:gt,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),mt.stringFilter=xi;var or=[],lr={},hr=[],cr=0,ur=0,dr=function(t){return(lr[t]||hr).map((function(t){return t()}))},pr=function(){var t=Date.now(),e=[];t-cr>2&&(dr("matchMediaInit"),or.forEach((function(t){var i,r,n,s,a=t.queries,o=t.conditions;for(r in a)(i=lt.matchMedia(a[r]).matches)&&(n=1),i!==o[r]&&(o[r]=i,s=1);s&&(t.revert(),n&&e.push(t))})),dr("matchMediaRevert"),e.forEach((function(t){return t.onMatch(t,(function(e){return t.add(null,e)}))})),cr=t,dr("matchMedia"))},fr=function(){function t(t,e){this.selector=e&&Ze(e),this.data=[],this._r=[],this.isReverted=!1,this.id=ur++,t&&this.add(t)}var e=t.prototype;return e.add=function(t,e,i){At(t)&&(i=e,e=t,t=At);var r=this,n=function(){var t,n=at,s=r.selector;return n&&n!==r&&n.data.push(r),i&&(r.selector=Ze(i)),at=r,t=e.apply(r,arguments),At(t)&&r._r.push(t),at=n,r.selector=s,r.isReverted=!1,t};return r.last=n,t===At?n(r,(function(t){return r.add(null,t)})):t?r[t]=n:n},e.ignore=function(t){var e=at;at=null,t(this),at=e},e.getTweens=function(){var e=[];return this.data.forEach((function(i){return i instanceof t?e.push.apply(e,i.getTweens()):i instanceof Xi&&!(i.parent&&"nested"===i.parent.data)&&e.push(i)})),e},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(t,e){var i=this;if(t?function(){for(var e,r=i.getTweens(),n=i.data.length;n--;)"isFlip"===(e=i.data[n]).data&&(e.revert(),e.getChildren(!0,!0,!1).forEach((function(t){return r.splice(r.indexOf(t),1)})));for(r.map((function(t){return{g:t._dur||t._delay||t._sat&&!t._sat.vars.immediateRender?t.globalTime(0):-1/0,t:t}})).sort((function(t,e){return e.g-t.g||-1/0})).forEach((function(e){return e.t.revert(t)})),n=i.data.length;n--;)(e=i.data[n])instanceof Li?"nested"!==e.data&&(e.scrollTrigger&&e.scrollTrigger.revert(),e.kill()):!(e instanceof Xi)&&e.revert&&e.revert(t);i._r.forEach((function(e){return e(t,i)})),i.isReverted=!0}():this.data.forEach((function(t){return t.kill&&t.kill()})),this.clear(),e)for(var r=or.length;r--;)or[r].id===this.id&&or.splice(r,1)},e.revert=function(t){this.kill(t||{})},t}(),mr=function(){function t(t){this.contexts=[],this.scope=t,at&&at.data.push(this)}var e=t.prototype;return e.add=function(t,e,i){Ct(t)||(t={matches:t});var r,n,s,a=new fr(0,i||this.scope),o=a.conditions={};for(n in at&&!a.selector&&(a.selector=at.selector),this.contexts.push(a),e=a.add("onMatch",e),a.queries=t,t)"all"===n?s=1:(r=lt.matchMedia(t[n]))&&(or.indexOf(a)<0&&or.push(a),(o[n]=r.matches)&&(s=1),r.addListener?r.addListener(pr):r.addEventListener("change",pr));return s&&e(a,(function(t){return a.add(null,t)})),this},e.revert=function(t){this.kill(t||{})}
vendor: 4,501 bytes, line 2
2,e.kill=function(t){this.contexts.forEach((function(e){return e.kill(t,!0)}))},t}(),gr={registerPlugin:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];e.forEach((function(t){return ci(t)}))},timeline:function(t){return new Li(t)},getTweensOf:function(t,e){return ot.getTweensOf(t,e)},getProperty:function(t,e,i,r){Tt(t)&&(t=Ke(t)[0]);var n=oe(t||{}).get,s=i?ye:ge;return"native"===i&&(i=""),t?e?s((ee[e]&&ee[e].get||n)(t,e,i,r)):function(e,i,r){return s((ee[e]&&ee[e].get||n)(t,e,i,r))}:t},quickSetter:function(t,e,i){if((t=Ke(t)).length>1){var r=t.map((function(t){return xr.quickSetter(t,e,i)})),n=r.length;return function(t){for(var e=n;e--;)r[e](t)}}t=t[0]||{};var s=ee[e],a=oe(t),o=a.harness&&(a.harness.aliases||{})[e]||e,l=s?function(e){var r=new s;pt._pt=0,r.init(t,i?e+i:e,pt,0,[t]),r.render(1,r),pt._pt&&er(1,pt)}:a.set(t,o);return s?l:function(e){return l(t,o,i?e+i:e,a,1)}},quickTo:function(t,e,i){var r,n=xr.to(t,xe(((r={})[e]="+=0.1",r.paused=!0,r),i||{})),s=function(t,i,r){return n.resetTo(e,t,i,r)};return s.tween=n,s},isTweening:function(t){return ot.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Pi(t.ease,gt.ease)),_e(gt,t||{})},config:function(t){return _e(mt,t||{})},registerEffect:function(t){var e=t.name,i=t.effect,r=t.plugins,n=t.defaults,s=t.extendTimeline;(r||"").split(",").forEach((function(t){return t&&!ee[t]&&!Ut[t]&&Xt(e+" effect requires "+t+" plugin.")})),ie[e]=function(t,e,r){return i(Ke(t),ve(e||{},n),r)},s&&(Li.prototype[e]=function(t,i,r){return this.add(ie[e](t,Ct(i)?i:(r=i)&&{},this),r)})},registerEase:function(t,e){Si[t]=Pi(e)},parseEase:function(t,e){return arguments.length?Pi(t,e):Si},getById:function(t){return ot.getById(t)},exportRoot:function(t,e){void 0===t&&(t={});var i,r,n=new Li(t);for(n.smoothChildTiming=kt(t.smoothChildTiming),ot.remove(n),n._dp=0,n._time=n._tTime=ot._time,i=ot._first;i;)r=i._next,!e&&!i._dur&&i instanceof Xi&&i.vars.onComplete===i._targets[0]||Le(n,i,i._start-i._delay),i=r;return Le(ot,n,0),n},context:function(t,e){return t?new fr(t,e):at},matchMedia:function(t){return new mr(t)},matchMediaRefresh:function(){return or.forEach((function(t){var e,i,r=t.conditions;for(i in r)r[i]&&(r[i]=!1,e=1);e&&t.revert()}))||pr()},addEventListener:function(t,e){var i=lr[t]||(lr[t]=[]);~i.indexOf(e)||i.push(e)},removeEventListener:function(t,e){var i=lr[t],r=i&&i.indexOf(e);r>=0&&i.splice(r,1)},utils:{wrap:function t(e,i,r){var n=i-e;return Ot(e)?ri(e,t(0,e.length),i):We(r,(function(t){return(n+(t-e)%n)%n+e}))},wrapYoyo:function t(e,i,r){var n=i-e,s=2*n;return Ot(e)?ri(e,t(0,e.length-1),i):We(r,(function(t){return e+((t=(s+(t-e)%s)%s||0)>n?s-t:t)}))},distribute:Qe,random:ii,snap:ei,normalize:function(t,e,i){return si(t,e,0,1,i)},getUnit:$e,clamp:function(t,e,i){return We(i,(function(i){return Xe(t,e,i)}))},splitColor:fi,toArray:Ke,selector:Ze,mapRange:si,pipe:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return function(t){return e.reduce((function(t,e){return e(t)}),t)}},unitize:function(t,e){return function(i){return t(parseFloat(i))+(e||$e(i))}},interpolate:function t(e,i,r,n){var s=isNaN(e+i)?0:function(t){return(1-t)*e+t*i};if(!s){var a,o,l,h,c,u=Tt(e),d={};if(!0===r&&(n=1)&&(r=null),u)e={p:e},i={p:i};else if(Ot(e)&&!Ot(i)){for(l=[],h=e.length,c=h-2,o=1;o<h;o++)l.push(t(e[o-1],e[o]));h--,s=function(t){t*=h;var e=Math.min(c,~~t);return l[e](t-e)},r=i}else n||(e=xe(Ot(e)?[]:{},e));if(!l){for(a in i)Vi.call(d,e,a,"get",i[a]);s=function(t){return er(t,d)||(u?e.p:e)}}}return We(r,s)},shuffle:Je},install:jt,effects:ie,ticker:_i,updateRoot:Li.updateRoot,plugins:ee,globalTimeline:ot,core:{PropTween:ar,globals:$t,Tween:Xi,Timeline:Li,Animation:Oi,getCache:oe,_removeLinkedListItem:we,reverting:function(){return st},context:function(t){return t&&at&&(at.data.push(t),t._ctx=at),at},suppressOverwrites:function(t){return nt=t}}};he("to,from,fromTo,delayedCall,set,killTweensOf",(function(t){return gr[t]=Xi[t]})),_i.add(Li.updateRoot),pt=gr.to({},{duration:0});var yr=function(t,e){for(var i=t._pt;i&&i.p!==e&&i.op!==e&&i.fp!==e;)i=i._next;return i},vr=function(t,e){return{name:t,rawVars:1,init:function(t,i,r){r._onInit=function(t){var r,n;if(Tt(i)&&(r={},he(i,(function(t){return r[t]=1})),i=r),e){for(n in r={},i)r[n]=e(i[n]);i=r}!function(t,e){var i,r,n,s=t._targets;for(i in e)for(r=s.length;r--;)(n=t._ptLookup[r][i])&&(n=n.d)&&(n._pt&&(n=yr(n,i)),n&&n.modifier&&n.modifier(e[i],t,s[r],i))}(t,i)}}}}
vendor: 4,913 bytes, line 2
2,xr=gr.registerPlugin({name:"attr",init:function(t,e,i,r,n){var s,a,o;for(s in this.tween=i,e)o=t.getAttribute(s)||"",(a=this.add(t,"setAttribute",(o||0)+"",e[s],r,n,0,0,s)).op=s,a.b=o,this._props.push(s)},render:function(t,e){for(var i=e._pt;i;)st?i.set(i.t,i.p,i.b,i):i.r(t,i.d),i=i._next}},{name:"endArray",init:function(t,e){for(var i=e.length;i--;)this.add(t,i,t[i]||0,e[i],0,0,0,0,0,1)}},vr("roundProps",ti),vr("modifiers"),vr("snap",ei))||gr;Xi.version=Li.version=xr.version="3.12.5",ut=1,It()&&bi(),Si.Power0,Si.Power1,Si.Power2,Si.Power3,Si.Power4,Si.Linear,Si.Quad,Si.Cubic,Si.Quart,Si.Quint,Si.Strong,Si.Elastic,Si.Back,Si.SteppedEase,Si.Bounce,Si.Sine,Si.Expo,Si.Circ;var _r,br,Sr,Er,wr,Tr,Ar,Mr,Pr={},Cr=180/Math.PI,kr=Math.PI/180,Ir=Math.atan2,Dr=/([A-Z])/g,Rr=/(left|right|width|margin|padding|x)/i,Or=/[\s,\(]\S/,Lr={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Fr=function(t,e){return e.set(e.t,e.p,Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},Br=function(t,e){return e.set(e.t,e.p,1===t?e.e:Math.round(1e4*(e.s+e.c*t))/1e4+e.u,e)},Nr=function(t,e){return e.set(e.t,e.p,t?Math.round(1e4*(e.s+e.c*t))/1e4+e.u:e.b,e)},Vr=function(t,e){var i=e.s+e.c*t;e.set(e.t,e.p,~~(i+(i<0?-.5:.5))+e.u,e)},zr=function(t,e){return e.set(e.t,e.p,t?e.e:e.b,e)},Gr=function(t,e){return e.set(e.t,e.p,1!==t?e.b:e.e,e)},Ur=function(t,e,i){return t.style[e]=i},Hr=function(t,e,i){return t.style.setProperty(e,i)},jr=function(t,e,i){return t._gsap[e]=i},Wr=function(t,e,i){return t._gsap.scaleX=t._gsap.scaleY=i},Xr=function(t,e,i,r,n){var s=t._gsap;s.scaleX=s.scaleY=i,s.renderTransform(n,s)},$r=function(t,e,i,r,n){var s=t._gsap;s[e]=i,s.renderTransform(n,s)},Yr="transform",qr=Yr+"Origin",Kr=function t(e,i){var r=this,n=this.target,s=n.style,a=n._gsap;if(e in Pr&&s){if(this.tfm=this.tfm||{},"transform"===e)return Lr.transform.split(",").forEach((function(e){return t.call(r,e,i)}));if(~(e=Lr[e]||e).indexOf(",")?e.split(",").forEach((function(t){return r.tfm[t]=mn(n,t)})):this.tfm[e]=a.x?a[e]:mn(n,e),e===qr&&(this.tfm.zOrigin=a.zOrigin),this.props.indexOf(Yr)>=0)return;a.svg&&(this.svgo=n.getAttribute("data-svg-origin"),this.props.push(qr,i,"")),e=Yr}(s||i)&&this.props.push(e,i,s[e])},Zr=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},Jr=function(){var t,e,i=this.props,r=this.target,n=r.style,s=r._gsap;for(t=0;t<i.length;t+=3)i[t+1]?r[i[t]]=i[t+2]:i[t+2]?n[i[t]]=i[t+2]:n.removeProperty("--"===i[t].substr(0,2)?i[t]:i[t].replace(Dr,"-$1").toLowerCase());if(this.tfm){for(e in this.tfm)s[e]=this.tfm[e];s.svg&&(s.renderTransform(),r.setAttribute("data-svg-origin",this.svgo||"")),(t=Ar())&&t.isStart||n[Yr]||(Zr(n),s.zOrigin&&n[qr]&&(n[qr]+=" "+s.zOrigin+"px",s.zOrigin=0,s.renderTransform()),s.uncache=1)}},Qr=function(t,e){var i={target:t,props:[],revert:Jr,save:Kr};return t._gsap||xr.core.getCache(t),e&&e.split(",").forEach((function(t){return i.save(t)})),i},tn=function(t,e){var i=br.createElementNS?br.createElementNS((e||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),t):br.createElement(t);return i&&i.style?i:br.createElement(t)},en=function t(e,i,r){var n=getComputedStyle(e);return n[i]||n.getPropertyValue(i.replace(Dr,"-$1").toLowerCase())||n.getPropertyValue(i)||!r&&t(e,nn(i)||i,1)||""},rn="O,Moz,ms,Ms,Webkit".split(","),nn=function(t,e,i){var r=(e||wr).style,n=5;if(t in r&&!i)return t;for(t=t.charAt(0).toUpperCase()+t.substr(1);n--&&!(rn[n]+t in r););return n<0?null:(3===n?"ms":n>=0?rn[n]:"")+t},sn=function(){"undefined"!=typeof window&&window.document&&(_r=window,br=_r.document,Sr=br.documentElement,wr=tn("div")||{style:{}},tn("div"),Yr=nn(Yr),qr=Yr+"Origin",wr.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Mr=!!nn("perspective"),Ar=xr.core.reverting,Er=1)},an=function t(e){var i,r=tn("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),n=this.parentNode,s=this.nextSibling,a=this.style.cssText;if(Sr.appendChild(r),r.appendChild(this),this.style.display="block",e)try{i=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=t}catch(t){}else this._gsapBBox&&(i=this._gsapBBox());return n&&(s?n.insertBefore(this,s):n.appendChild(this)),Sr.removeChild(r),this.style.cssText=a,i},on=function(t,e){for(var i=e.length;i--;)if(t.hasAttribute(e[i]))return t.getAttribute(e[i])},ln=function(t){var e;try{e=t.getBBox()}catch(i){e=an.call(t,!0)}return e&&(e.width||e.height)||t.getBBox===an||(e=an.call(t,!0)),!e||e.width||e.x||e.y?e:{x:+on(t,["x","cx","x1"])||0,y:+on(t,["y","cy","y1"])||0,width:0,height:0}},hn=function(t){return!(!t.getCTM||t.parentNode&&!t.ownerSVGElement||!ln(t))},cn=function(t,e){if(e){var i,r=t.style;e in Pr&&e!==qr&&(e=Yr),r.removeProperty?("ms"!==(i=e.substr(0,2))&&"webkit"!==e.substr(0,6)||(e="-"+e),r.removeProperty("--"===i?e:e.replace(Dr,"-$1").toLowerCase())):r.removeAttribute(e)}}
vendor: 9,077 bytes, line 2
2,un=function(t,e,i,r,n,s){var a=new ar(t._pt,e,i,0,1,s?Gr:zr);return t._pt=a,a.b=r,a.e=n,t._props.push(i),a},dn={deg:1,rad:1,turn:1},pn={grid:1,flex:1},fn=function t(e,i,r,n){var s,a,o,l,h=parseFloat(r)||0,c=(r+"").trim().substr((h+"").length)||"px",u=wr.style,d=Rr.test(i),p="svg"===e.tagName.toLowerCase(),f=(p?"client":"offset")+(d?"Width":"Height"),m=100,g="px"===n,y="%"===n;if(n===c||!h||dn[n]||dn[c])return h;if("px"!==c&&!g&&(h=t(e,i,r,"px")),l=e.getCTM&&hn(e),(y||"%"===c)&&(Pr[i]||~i.indexOf("adius")))return s=l?e.getBBox()[d?"width":"height"]:e[f],ce(y?h/s*m:h/100*s);if(u[d?"width":"height"]=m+(g?c:n),a=~i.indexOf("adius")||"em"===n&&e.appendChild&&!p?e:e.parentNode,l&&(a=(e.ownerSVGElement||{}).parentNode),a&&a!==br&&a.appendChild||(a=br.body),(o=a._gsap)&&y&&o.width&&d&&o.time===_i.time&&!o.uncache)return ce(h/o.width*m);if(!y||"height"!==i&&"width"!==i)(y||"%"===c)&&!pn[en(a,"display")]&&(u.position=en(e,"position")),a===e&&(u.position="static"),a.appendChild(wr),s=wr[f],a.removeChild(wr),u.position="absolute";else{var v=e.style[i];e.style[i]=m+n,s=e[f],v?e.style[i]=v:cn(e,i)}return d&&y&&((o=oe(a)).time=_i.time,o.width=a[f]),ce(g?s*h/m:s&&h?m/s*h:0)},mn=function(t,e,i,r){var n;return Er||sn(),e in Lr&&"transform"!==e&&~(e=Lr[e]).indexOf(",")&&(e=e.split(",")[0]),Pr[e]&&"transform"!==e?(n=Mn(t,r),n="transformOrigin"!==e?n[e]:n.svg?n.origin:Pn(en(t,qr))+" "+n.zOrigin+"px"):(!(n=t.style[e])||"auto"===n||r||~(n+"").indexOf("calc("))&&(n=_n[e]&&_n[e](t,e,i)||en(t,e)||le(t,e)||("opacity"===e?1:0)),i&&!~(n+"").trim().indexOf(" ")?fn(t,e,n,i)+i:n},gn=function(t,e,i,r){if(!i||"none"===i){var n=nn(e,t,1),s=n&&en(t,n,1);s&&s!==i?(e=n,i=s):"borderColor"===e&&(i=en(t,"borderTopColor"))}var a,o,l,h,c,u,d,p,f,m,g,y=new ar(this._pt,t.style,e,0,1,tr),v=0,x=0;if(y.b=i,y.e=r,i+="","auto"==(r+="")&&(u=t.style[e],t.style[e]=r,r=en(t,e)||r,u?t.style[e]=u:cn(t,e)),xi(a=[i,r]),r=a[1],l=(i=a[0]).match(Bt)||[],(r.match(Bt)||[]).length){for(;o=Bt.exec(r);)d=o[0],f=r.substring(v,o.index),c?c=(c+1)%5:"rgba("!==f.substr(-5)&&"hsla("!==f.substr(-5)||(c=1),d!==(u=l[x++]||"")&&(h=parseFloat(u)||0,g=u.substr((h+"").length),"="===d.charAt(1)&&(d=de(h,d)+g),p=parseFloat(d),m=d.substr((p+"").length),v=Bt.lastIndex-m.length,m||(m=m||mt.units[e]||g,v===r.length&&(r+=m,y.e+=m)),g!==m&&(h=fn(t,e,u,m)||0),y._pt={_next:y._pt,p:f||1===x?f:",",s:h,c:p-h,m:c&&c<4||"zIndex"===e?Math.round:0});y.c=v<r.length?r.substring(v,r.length):""}else y.r="display"===e&&"none"===r?Gr:zr;return Vt.test(r)&&(y.e=0),this._pt=y,y},yn={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},vn=function(t){var e=t.split(" "),i=e[0],r=e[1]||"50%";return"top"!==i&&"bottom"!==i&&"left"!==r&&"right"!==r||(t=i,i=r,r=t),e[0]=yn[i]||i,e[1]=yn[r]||r,e.join(" ")},xn=function(t,e){if(e.tween&&e.tween._time===e.tween._dur){var i,r,n,s=e.t,a=s.style,o=e.u,l=s._gsap;if("all"===o||!0===o)a.cssText="",r=1;else for(n=(o=o.split(",")).length;--n>-1;)i=o[n],Pr[i]&&(r=1,i="transformOrigin"===i?qr:Yr),cn(s,i);r&&(cn(s,Yr),l&&(l.svg&&s.removeAttribute("transform"),Mn(s,1),l.uncache=1,Zr(a)))}},_n={clearProps:function(t,e,i,r,n){if("isFromStart"!==n.data){var s=t._pt=new ar(t._pt,e,i,0,0,xn);return s.u=r,s.pr=-10,s.tween=n,t._props.push(i),1}}},bn=[1,0,0,1,0,0],Sn={},En=function(t){return"matrix(1, 0, 0, 1, 0, 0)"===t||"none"===t||!t},wn=function(t){var e=en(t,Yr);return En(e)?bn:e.substr(7).match(Ft).map(ce)},Tn=function(t,e){var i,r,n,s,a=t._gsap||oe(t),o=t.style,l=wn(t);return a.svg&&t.getAttribute("transform")?"1,0,0,1,0,0"===(l=[(n=t.transform.baseVal.consolidate().matrix).a,n.b,n.c,n.d,n.e,n.f]).join(",")?bn:l:(l!==bn||t.offsetParent||t===Sr||a.svg||(n=o.display,o.display="block",(i=t.parentNode)&&t.offsetParent||(s=1,r=t.nextElementSibling,Sr.appendChild(t)),l=wn(t),n?o.display=n:cn(t,"display"),s&&(r?i.insertBefore(t,r):i?i.appendChild(t):Sr.removeChild(t))),e&&l.length>6?[l[0],l[1],l[4],l[5],l[12],l[13]]:l)},An=function(t,e,i,r,n,s){var a,o,l,h=t._gsap,c=n||Tn(t,!0),u=h.xOrigin||0,d=h.yOrigin||0,p=h.xOffset||0,f=h.yOffset||0,m=c[0],g=c[1],y=c[2],v=c[3],x=c[4],_=c[5],b=e.split(" "),S=parseFloat(b[0])||0,E=parseFloat(b[1])||0;i?c!==bn&&(o=m*v-g*y)&&(l=S*(-g/o)+E*(m/o)-(m*_-g*x)/o,S=S*(v/o)+E*(-y/o)+(y*_-v*x)/o,E=l):(S=(a=ln(t)).x+(~b[0].indexOf("%")?S/100*a.width:S),E=a.y+(~(b[1]||b[0]).indexOf("%")?E/100*a.height:E)),r||!1!==r&&h.smooth?(x=S-u,_=E-d,h.xOffset=p+(x*m+_*y)-x,h.yOffset=f+(x*g+_*v)-_):h.xOffset=h.yOffset=0,h.xOrigin=S,h.yOrigin=E,h.smooth=!!r,h.origin=e,h.originIsAbsolute=!!i,t.style[qr]="0px 0px",s&&(un(s,h,"xOrigin",u,S),un(s,h,"yOrigin",d,E),un(s,h,"xOffset",p,h.xOffset),un(s,h,"yOffset",f,h.yOffset)),t.setAttribute("data-svg-origin",S+" "+E)},Mn=function(t,e){var i=t._gsap||new Ri(t);if("x"in i&&!e&&!i.uncache)return i;var r,n,s,a,o,l,h,c,u,d,p,f,m,g,y,v,x,_,b,S,E,w,T,A,M,P,C,k,I,D,R,O,L=t.style,F=i.scaleX<0,B="px",N="deg",V=getComputedStyle(t),z=en(t,qr)||"0";return r=n=s=l=h=c=u=d=p=0,a=o=1,i.svg=!(!t.getCTM||!hn(t)),V.translate&&("none"===V.translate&&"none"===V.scale&&"none"===V.rotate||(L[Yr]=("none"!==V.translate?"translate3d("+(V.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+("none"!==V.rotate?"rotate("+V.rotate+") ":"")+("none"!==V.scale?"scale("+V.scale.split(" ").join(",")+") ":"")+("none"!==V[Yr]?V[Yr]:"")),L.scale=L.rotate=L.translate="none"),g=Tn(t,i.svg),i.svg&&(i.uncache?(M=t.getBBox(),z=i.xOrigin-M.x+"px "+(i.yOrigin-M.y)+"px",A=""):A=!e&&t.getAttribute("data-svg-origin"),An(t,A||z,!!A||i.originIsAbsolute,!1!==i.smooth,g)),f=i.xOrigin||0,m=i.yOrigin||0,g!==bn&&(_=g[0],b=g[1],S=g[2],E=g[3],r=w=g[4],n=T=g[5],6===g.length?(a=Math.sqrt(_*_+b*b),o=Math.sqrt(E*E+S*S),l=_||b?Ir(b,_)*Cr:0,(u=S||E?Ir(S,E)*Cr+l:0)&&(o*=Math.abs(Math.cos(u*kr))),i.svg&&(r-=f-(f*_+m*S),n-=m-(f*b+m*E))):(O=g[6],D=g[7],C=g[8],k=g[9],I=g[10],R=g[11],r=g[12],n=g[13],s=g[14],h=(y=Ir(O,I))*Cr,y&&(A=w*(v=Math.cos(-y))+C*(x=Math.sin(-y)),M=T*v+k*x,P=O*v+I*x,C=w*-x+C*v,k=T*-x+k*v,I=O*-x+I*v,R=D*-x+R*v,w=A,T=M,O=P),c=(y=Ir(-S,I))*Cr,y&&(v=Math.cos(-y),R=E*(x=Math.sin(-y))+R*v,_=A=_*v-C*x,b=M=b*v-k*x,S=P=S*v-I*x),l=(y=Ir(b,_))*Cr,y&&(A=_*(v=Math.cos(y))+b*(x=Math.sin(y)),M=w*v+T*x,b=b*v-_*x,T=T*v-w*x,_=A,w=M),h&&Math.abs(h)+Math.abs(l)>359.9&&(h=l=0,c=180-c),a=ce(Math.sqrt(_*_+b*b+S*S)),o=ce(Math.sqrt(T*T+O*O)),y=Ir(w,T),u=Math.abs(y)>2e-4?y*Cr:0,p=R?1/(R<0?-R:R):0),i.svg&&(A=t.getAttribute("transform"),i.forceCSS=t.setAttribute("transform","")||!En(en(t,Yr)),A&&t.setAttribute("transform",A))),Math.abs(u)>90&&Math.abs(u)<270&&(F?(a*=-1,u+=l<=0?180:-180,l+=l<=0?180:-180):(o*=-1,u+=u<=0?180:-180)),e=e||i.uncache,i.x=r-((i.xPercent=r&&(!e&&i.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-r)?-50:0)))?t.offsetWidth*i.xPercent/100:0)+B,i.y=n-((i.yPercent=n&&(!e&&i.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-n)?-50:0)))?t.offsetHeight*i.yPercent/100:0)+B,i.z=s+B,i.scaleX=ce(a),i.scaleY=ce(o),i.rotation=ce(l)+N,i.rotationX=ce(h)+N,i.rotationY=ce(c)+N,i.skewX=u+N,i.skewY=d+N,i.transformPerspective=p+B,(i.zOrigin=parseFloat(z.split(" ")[2])||!e&&i.zOrigin||0)&&(L[qr]=Pn(z)),i.xOffset=i.yOffset=0,i.force3D=mt.force3D,i.renderTransform=i.svg?Ln:Mr?On:kn,i.uncache=0,i},Pn=function(t){return(t=t.split(" "))[0]+" "+t[1]},Cn=function(t,e,i){var r=$e(e);return ce(parseFloat(e)+parseFloat(fn(t,"x",i+"px",r)))+r},kn=function(t,e){e.z="0px",e.rotationY=e.rotationX="0deg",e.force3D=0,On(t,e)},In="0deg",Dn="0px",Rn=") ",On=function(t,e){var i=e||this,r=i.xPercent,n=i.yPercent,s=i.x,a=i.y,o=i.z,l=i.rotation,h=i.rotationY,c=i.rotationX,u=i.skewX,d=i.skewY,p=i.scaleX,f=i.scaleY,m=i.transformPerspective,g=i.force3D,y=i.target,v=i.zOrigin,x="",_="auto"===g&&t&&1!==t||!0===g;if(v&&(c!==In||h!==In)){var b,S=parseFloat(h)*kr,E=Math.sin(S),w=Math.cos(S);S=parseFloat(c)*kr,b=Math.cos(S),s=Cn(y,s,E*b*-v),a=Cn(y,a,-Math.sin(S)*-v),o=Cn(y,o,w*b*-v+v)}m!==Dn&&(x+="perspective("+m+Rn),(r||n)&&(x+="translate("+r+"%, "+n+"%) "),(_||s!==Dn||a!==Dn||o!==Dn)&&(x+=o!==Dn||_?"translate3d("+s+", "+a+", "+o+") ":"translate("+s+", "+a+Rn),l!==In&&(x+="rotate("+l+Rn),h!==In&&(x+="rotateY("+h+Rn),c!==In&&(x+="rotateX("+c+Rn),u===In&&d===In||(x+="skew("+u+", "+d+Rn),1===p&&1===f||(x+="scale("+p+", "+f+Rn),y.style[Yr]=x||"translate(0, 0)"},Ln=function(t,e){var i,r,n,s,a,o=e||this,l=o.xPercent,h=o.yPercent,c=o.x,u=o.y,d=o.rotation,p=o.skewX,f=o.skewY,m=o.scaleX,g=o.scaleY,y=o.target,v=o.xOrigin,x=o.yOrigin,_=o.xOffset,b=o.yOffset,S=o.forceCSS,E=parseFloat(c),w=parseFloat(u);d=parseFloat(d),p=parseFloat(p),(f=parseFloat(f))&&(p+=f=parseFloat(f),d+=f),d||p?(d*=kr,p*=kr,i=Math.cos(d)*m,r=Math.sin(d)*m,n=Math.sin(d-p)*-g,s=Math.cos(d-p)*g,p&&(f*=kr,a=Math.tan(p-f),n*=a=Math.sqrt(1+a*a),s*=a,f&&(a=Math.tan(f),i*=a=Math.sqrt(1+a*a),r*=a)),i=ce(i),r=ce(r),n=ce(n),s=ce(s)):(i=m,s=g,r=n=0),(E&&!~(c+"").indexOf("px")||w&&!~(u+"").indexOf("px"))&&(E=fn(y,"x",c,"px"),w=fn(y,"y",u,"px")),(v||x||_||b)&&(E=ce(E+v-(v*i+x*n)+_),w=ce(w+x-(v*r+x*s)+b)),(l||h)&&(a=y.getBBox(),E=ce(E+l/100*a.width),w=ce(w+h/100*a.height)),a="matrix("+i+","+r+","+n+","+s+","+E+","+w+")",y.setAttribute("transform",a),S&&(y.style[Yr]=a)}
vendor: 5,551 bytes, line 2
2,Fn=function(t,e,i,r,n){var s,a,o=360,l=Tt(n),h=parseFloat(n)*(l&&~n.indexOf("rad")?Cr:1)-r,c=r+h+"deg";return l&&("short"===(s=n.split("_")[1])&&(h%=o)!=h%180&&(h+=h<0?o:-360),"cw"===s&&h<0?h=(h+36e9)%o-~~(h/o)*o:"ccw"===s&&h>0&&(h=(h-36e9)%o-~~(h/o)*o)),t._pt=a=new ar(t._pt,e,i,r,h,Br),a.e=c,a.u="deg",t._props.push(i),a},Bn=function(t,e){for(var i in e)t[i]=e[i];return t},Nn=function(t,e,i){var r,n,s,a,o,l,h,c=Bn({},i._gsap),u=i.style;for(n in c.svg?(s=i.getAttribute("transform"),i.setAttribute("transform",""),u[Yr]=e,r=Mn(i,1),cn(i,Yr),i.setAttribute("transform",s)):(s=getComputedStyle(i)[Yr],u[Yr]=e,r=Mn(i,1),u[Yr]=s),Pr)(s=c[n])!==(a=r[n])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(n)<0&&(o=$e(s)!==(h=$e(a))?fn(i,n,s,h):parseFloat(s),l=parseFloat(a),t._pt=new ar(t._pt,r,n,o,l-o,Fr),t._pt.u=h||0,t._props.push(n));Bn(r,c)};he("padding,margin,Width,Radius",(function(t,e){var i="Top",r="Right",n="Bottom",s="Left",a=(e<3?[i,r,n,s]:[i+s,i+r,n+r,n+s]).map((function(i){return e<2?t+i:"border"+i+t}));_n[e>1?"border"+t:t]=function(t,e,i,r,n){var s,o;if(arguments.length<4)return s=a.map((function(e){return mn(t,e,i)})),5===(o=s.join(" ")).split(s[0]).length?s[0]:o;s=(r+"").split(" "),o={},a.forEach((function(t,e){return o[t]=s[e]=s[e]||s[(e-1)/2|0]})),t.init(e,o,n)}}));var Vn,zn,Gn={name:"css",register:sn,targetTest:function(t){return t.style&&t.nodeType},init:function(t,e,i,r,n){var s,a,o,l,h,c,u,d,p,f,m,g,y,v,x,_,b=this._props,S=t.style,E=i.vars.startAt;for(u in Er||sn(),this.styles=this.styles||Qr(t),_=this.styles.props,this.tween=i,e)if("autoRound"!==u&&(a=e[u],!ee[u]||!zi(u,e,i,r,t,n)))if(h=typeof a,c=_n[u],"function"===h&&(h=typeof(a=a.call(i,r,t,n))),"string"===h&&~a.indexOf("random(")&&(a=ni(a)),c)c(this,t,u,a,i)&&(x=1);else if("--"===u.substr(0,2))s=(getComputedStyle(t).getPropertyValue(u)+"").trim(),a+="",yi.lastIndex=0,yi.test(s)||(d=$e(s),p=$e(a)),p?d!==p&&(s=fn(t,u,s,p)+p):d&&(a+=d),this.add(S,"setProperty",s,a,r,n,0,0,u),b.push(u),_.push(u,0,S[u]);else if("undefined"!==h){if(E&&u in E?(s="function"==typeof E[u]?E[u].call(i,r,t,n):E[u],Tt(s)&&~s.indexOf("random(")&&(s=ni(s)),$e(s+"")||"auto"===s||(s+=mt.units[u]||$e(mn(t,u))||""),"="===(s+"").charAt(1)&&(s=mn(t,u))):s=mn(t,u),l=parseFloat(s),(f="string"===h&&"="===a.charAt(1)&&a.substr(0,2))&&(a=a.substr(2)),o=parseFloat(a),u in Lr&&("autoAlpha"===u&&(1===l&&"hidden"===mn(t,"visibility")&&o&&(l=0),_.push("visibility",0,S.visibility),un(this,S,"visibility",l?"inherit":"hidden",o?"inherit":"hidden",!o)),"scale"!==u&&"transform"!==u&&~(u=Lr[u]).indexOf(",")&&(u=u.split(",")[0])),m=u in Pr)if(this.styles.save(u),g||((y=t._gsap).renderTransform&&!e.parseTransform||Mn(t,e.parseTransform),v=!1!==e.smoothOrigin&&y.smooth,(g=this._pt=new ar(this._pt,S,Yr,0,1,y.renderTransform,y,0,-1)).dep=1),"scale"===u)this._pt=new ar(this._pt,y,"scaleY",y.scaleY,(f?de(y.scaleY,f+o):o)-y.scaleY||0,Fr),this._pt.u=0,b.push("scaleY",u),u+="X";else{if("transformOrigin"===u){_.push(qr,0,S[qr]),a=vn(a),y.svg?An(t,a,0,v,0,this):((p=parseFloat(a.split(" ")[2])||0)!==y.zOrigin&&un(this,y,"zOrigin",y.zOrigin,p),un(this,S,u,Pn(s),Pn(a)));continue}if("svgOrigin"===u){An(t,a,1,v,0,this);continue}if(u in Sn){Fn(this,y,u,l,f?de(l,f+a):a);continue}if("smoothOrigin"===u){un(this,y,"smooth",y.smooth,a);continue}if("force3D"===u){y[u]=a;continue}if("transform"===u){Nn(this,a,t);continue}}else u in S||(u=nn(u)||u);if(m||(o||0===o)&&(l||0===l)&&!Or.test(a)&&u in S)o||(o=0),(d=(s+"").substr((l+"").length))!==(p=$e(a)||(u in mt.units?mt.units[u]:d))&&(l=fn(t,u,s,p)),this._pt=new ar(this._pt,m?y:S,u,l,(f?de(l,f+o):o)-l,m||"px"!==p&&"zIndex"!==u||!1===e.autoRound?Fr:Vr),this._pt.u=p||0,d!==p&&"%"!==p&&(this._pt.b=s,this._pt.r=Nr);else if(u in S)gn.call(this,t,u,s,f?f+a:a);else if(u in t)this.add(t,u,s||t[u],f?f+a:a,r,n);else if("parseTransform"!==u){Wt(u,a);continue}m||(u in S?_.push(u,0,S[u]):_.push(u,1,s||t[u])),b.push(u)}x&&sr(this)},render:function(t,e){if(e.tween._time||!Ar())for(var i=e._pt;i;)i.r(t,i.d),i=i._next;else e.styles.revert()},get:mn,aliases:Lr,getSetter:function(t,e,i){var r=Lr[e];return r&&r.indexOf(",")<0&&(e=r),e in Pr&&e!==qr&&(t._gsap.x||mn(t,"x"))?i&&Tr===i?"scale"===e?Wr:jr:(Tr=i||{})&&("scale"===e?Xr:$r):t.style&&!Pt(t.style[e])?Ur:~e.indexOf("-")?Hr:Zi(t,e)},core:{_removeProperty:cn,_getMatrix:Tn}};xr.utils.checkPrefix=nn,xr.core.getStyleSaver=Qr,zn=he("x,y,z,scale,scaleX,scaleY,xPercent,yPercent"+","+(Vn="rotation,rotationX,rotationY,skewX,skewY")+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",(function(t){Pr[t]=1})),he(Vn,(function(t){mt.units[t]="deg",Sn[t]=1})),Lr[zn[13]]="x,y,z,scale,scaleX,scaleY,xPercent,yPercent,"+Vn,he("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",(function(t){var e=t.split(":");Lr[e[1]]=zn[e[0]]})),he("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",(function(t){mt.units[t]="px"})),xr.registerPlugin(Gn);var Un=xr.registerPlugin(Gn)||xr,Hn=(Un.core.Tween,/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi),jn=/(?:(-)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,Wn=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/gi,Xn=/(^[#\.][a-z]|[a-y][a-z])/i,$n=Math.PI/180,Yn=180/Math.PI,qn=Math.sin,Kn=Math.cos,Zn=Math.abs,Jn=Math.sqrt,Qn=Math.atan2,ts=1e8,es=function(t){return"string"==typeof t},is=function(t){return"number"==typeof t},rs={},ns={},ss=1e5,as=function(t){return Math.round((t+ts)%1*ss)/ss||(t<0?0:1)},os=function(t){return Math.round(t*ss)/ss||0},ls=function(t){return Math.round(1e10*t)/1e10||0}
vendor: 9,372 bytes, line 2
2,hs=function(t,e,i,r){var n=t[e],s=1===r?6:_s(n,i,r);if((s||!r)&&s+i+2<n.length)return t.splice(e,0,n.slice(0,i+s+2)),n.splice(0,i+s),1},cs=function(t,e,i){var r=t.length,n=~~(i*r);if(t[n]>e){for(;--n&&t[n]>e;);n<0&&(n=0)}else for(;t[++n]<e&&n<r;);return n<r?n:r-1},us=function(t,e){return e.totalLength=t.totalLength,t.samples?(e.samples=t.samples.slice(0),e.lookup=t.lookup.slice(0),e.minLength=t.minLength,e.resolution=t.resolution):t.totalPoints&&(e.totalPoints=t.totalPoints),e},ds=function(t,e){var i=t.length,r=t[i-1]||[],n=r.length;i&&e[0]===r[n-2]&&e[1]===r[n-1]&&(e=r.concat(e.slice(2)),i--),t[i]=e};function ps(t){var e,i=(t=es(t)&&Xn.test(t)&&document.querySelector(t)||t).getAttribute?t:0;return i&&(t=t.getAttribute("d"))?(i._gsPath||(i._gsPath={}),(e=i._gsPath[t])&&!e._dirty?e:i._gsPath[t]=Ts(t)):t?es(t)?Ts(t):is(t[0])?[t]:t:console.warn("Expecting a <path> element or an SVG path data string")}function fs(t){var e,i=0;for(t.reverse();i<t.length;i+=2)e=t[i],t[i]=t[i+1],t[i+1]=e;t.reversed=!t.reversed}var ms={rect:"rx,ry,x,y,width,height",circle:"r,cx,cy",ellipse:"rx,ry,cx,cy",line:"x1,x2,y1,y2"};function gs(t,e,i){var r,n=t[e],s=t[e+2],a=t[e+4];return n+=(s-n)*i,n+=((s+=(a-s)*i)-n)*i,r=s+(a+(t[e+6]-a)*i-s)*i-n,n=t[e+1],n+=((s=t[e+3])-n)*i,n+=((s+=((a=t[e+5])-s)*i)-n)*i,os(Qn(s+(a+(t[e+7]-a)*i-s)*i-n,r)*Yn)}function ys(t,e,i){i=void 0===i?1:ls(i)||0,e=ls(e)||0;var r=Math.max(0,~~(Zn(i-e)-1e-8)),n=function(t){for(var e=[],i=0;i<t.length;i++)e[i]=us(t[i],t[i].slice(0));return us(t,e)}(t);if(e>i&&(e=1-e,i=1-i,function(t,e){var i=t.length;for(t.reverse();i--;)t[i].reversed||fs(t[i])}(n),n.totalLength=0),e<0||i<0){var s=Math.abs(~~Math.min(e,i))+1;e+=s,i+=s}n.totalLength||xs(n);var a,o,l,h,c,u,d,p,f=i>1,m=bs(n,e,rs,!0),g=bs(n,i,ns),y=g.segment,v=m.segment,x=g.segIndex,_=m.segIndex,b=g.i,S=m.i,E=_===x,w=b===S&&E;if(f||r){for(a=x<_||E&&b<S||w&&g.t<m.t,hs(n,_,S,m.t)&&(_++,a||(x++,w?(g.t=(g.t-m.t)/(1-m.t),b=0):E&&(b-=S))),Math.abs(1-(i-e))<1e-5?x=_-1:!g.t&&x?x--:hs(n,x,b,g.t)&&a&&_++,1===m.t&&(_=(_+1)%n.length),c=[],d=1+(u=n.length)*r,p=_,d+=(u-_+x)%u,h=0;h<d;h++)ds(c,n[p++%u]);n=c}else if(l=1===g.t?6:_s(y,b,g.t),e!==i)for(o=_s(v,S,w?m.t/g.t:m.t),E&&(l+=o),y.splice(b+l+2),(o||S)&&v.splice(0,S+o),h=n.length;h--;)(h<_||h>x)&&n.splice(h,1);else y.angle=gs(y,b+l,0),m=y[b+=l],g=y[b+1],y.length=y.totalLength=0,y.totalPoints=n.totalPoints=8,y.push(m,g,m,g,m,g,m,g);return n.totalLength=0,n}function vs(t,e,i){e=e||0,t.samples||(t.samples=[],t.lookup=[]);var r,n,s,a,o,l,h,c,u,d,p,f,m,g,y,v,x,_=~~t.resolution||12,b=1/_,S=i?e+6*i+1:t.length,E=t[e],w=t[e+1],T=e?e/6*_:0,A=t.samples,M=t.lookup,P=(e?t.minLength:ts)||ts,C=A[T+i*_-1],k=e?A[T-1]:0;for(A.length=M.length=0,n=e+2;n<S;n+=6){if(s=t[n+4]-E,a=t[n+2]-E,o=t[n]-E,c=t[n+5]-w,u=t[n+3]-w,d=t[n+1]-w,l=h=p=f=0,Zn(s)<.01&&Zn(c)<.01&&Zn(o)+Zn(d)<.01)t.length>8&&(t.splice(n,6),n-=6,S-=6);else for(r=1;r<=_;r++)l=h-(h=((g=b*r)*g*s+3*(m=1-g)*(g*a+m*o))*g),p=f-(f=(g*g*c+3*m*(g*u+m*d))*g),(v=Jn(p*p+l*l))<P&&(P=v),k+=v,A[T++]=k;E+=s,w+=c}if(C)for(C-=k;T<A.length;T++)A[T]+=C;if(A.length&&P){if(t.totalLength=x=A[A.length-1]||0,t.minLength=P,x/P<9999)for(v=y=0,r=0;r<x;r+=P)M[v++]=A[y]<r?++y:y}else t.totalLength=A[0]=0;return e?k-A[e/2-1]:k}function xs(t,e){var i,r,n;for(n=i=r=0;n<t.length;n++)t[n].resolution=~~e||12,r+=t[n].length,i+=vs(t[n]);return t.totalPoints=r,t.totalLength=i,t}function _s(t,e,i){if(i<=0||i>=1)return 0;var r=t[e],n=t[e+1],s=t[e+2],a=t[e+3],o=t[e+4],l=t[e+5],h=r+(s-r)*i,c=s+(o-s)*i,u=n+(a-n)*i,d=a+(l-a)*i,p=h+(c-h)*i,f=u+(d-u)*i,m=o+(t[e+6]-o)*i,g=l+(t[e+7]-l)*i;return c+=(m-c)*i,d+=(g-d)*i,t.splice(e+2,4,os(h),os(u),os(p),os(f),os(p+(c-p)*i),os(f+(d-f)*i),os(c),os(d),os(m),os(g)),t.samples&&t.samples.splice(e/6*t.resolution|0,0,0,0,0,0,0,0),6}function bs(t,e,i,r){i=i||{},t.totalLength||xs(t),(e<0||e>1)&&(e=as(e));var n,s,a,o,l,h,c,u=0,d=t[0];if(e)if(1===e)c=1,h=(d=t[u=t.length-1]).length-8;else{if(t.length>1){for(a=t.totalLength*e,l=h=0;(l+=t[h++].totalLength)<a;)u=h;e=(a-(o=l-(d=t[u]).totalLength))/(l-o)||0}n=d.samples,s=d.resolution,a=d.totalLength*e,o=(h=d.lookup.length?d.lookup[~~(a/d.minLength)]||0:cs(n,a,e))?n[h-1]:0,(l=n[h])<a&&(o=l,l=n[++h]),c=1/s*((a-o)/(l-o)+h%s),h=6*~~(h/s),r&&1===c&&(h+6<d.length?(h+=6,c=0):u+1<t.length&&(h=c=0,d=t[++u]))}else c=h=u=0,d=t[0];return i.t=c,i.i=h,i.path=t,i.segment=d,i.segIndex=u,i}function Ss(t,e,i,r){var n,s,a,o,l,h,c,u,d,p=t[0],f=r||{};if((e<0||e>1)&&(e=as(e)),p.lookup||xs(t),t.length>1){for(a=t.totalLength*e,l=h=0;(l+=t[h++].totalLength)<a;)p=t[h];e=(a-(o=l-p.totalLength))/(l-o)||0}return n=p.samples,s=p.resolution,a=p.totalLength*e,o=(h=p.lookup.length?p.lookup[e<1?~~(a/p.minLength):p.lookup.length-1]||0:cs(n,a,e))?n[h-1]:0,(l=n[h])<a&&(o=l,l=n[++h]),d=1-(c=1/s*((a-o)/(l-o)+h%s)||0),u=p[h=6*~~(h/s)],f.x=os((c*c*(p[h+6]-u)+3*d*(c*(p[h+4]-u)+d*(p[h+2]-u)))*c+u),f.y=os((c*c*(p[h+7]-(u=p[h+1]))+3*d*(c*(p[h+5]-u)+d*(p[h+3]-u)))*c+u),i&&(f.angle=p.totalLength?gs(p,h,c>=1?1-1e-9:c||1e-9):p.angle||0),f}function Es(t,e,i,r,n,s,a){for(var o,l,h,c,u,d=t.length;--d>-1;)for(l=(o=t[d]).length,h=0;h<l;h+=2)c=o[h],u=o[h+1],o[h]=c*e+u*r+s,o[h+1]=c*i+u*n+a;return t._dirty=1,t}function ws(t,e,i,r,n,s,a,o,l){if(t!==o||e!==l){i=Zn(i),r=Zn(r);var h=n%360*$n,c=Kn(h),u=qn(h),d=Math.PI,p=2*d,f=(t-o)/2,m=(e-l)/2,g=c*f+u*m,y=-u*f+c*m,v=g*g,x=y*y,_=v/(i*i)+x/(r*r);_>1&&(i=Jn(_)*i,r=Jn(_)*r);var b=i*i,S=r*r,E=(b*S-b*x-S*v)/(b*x+S*v);E<0&&(E=0);var w=(s===a?-1:1)*Jn(E),T=w*(i*y/r),A=w*(-r*g/i),M=(t+o)/2+(c*T-u*A),P=(e+l)/2+(u*T+c*A),C=(g-T)/i,k=(y-A)/r,I=(-g-T)/i,D=(-y-A)/r,R=C*C+k*k,O=(k<0?-1:1)*Math.acos(C/Jn(R)),L=(C*D-k*I<0?-1:1)*Math.acos((C*I+k*D)/Jn(R*(I*I+D*D)));isNaN(L)&&(L=d),!a&&L>0?L-=p:a&&L<0&&(L+=p),O%=p,L%=p;var F,B=Math.ceil(Zn(L)/(p/4)),N=[],V=L/B,z=4/3*qn(V/2)/(1+Kn(V/2)),G=c*i,U=u*i,H=u*-r,j=c*r;for(F=0;F<B;F++)g=Kn(n=O+F*V),y=qn(n),C=Kn(n+=V),k=qn(n),N.push(g-z*y,y+z*g,C+z*k,k-z*C,C,k);for(F=0;F<N.length;F+=2)g=N[F],y=N[F+1],N[F]=g*G+y*H+M,N[F+1]=g*U+y*j+P;return N[F-2]=o,N[F-1]=l,N}}function Ts(t){var e,i,r,n,s,a,o,l,h,c,u,d,p,f,m,g=(t+"").replace(Wn,(function(t){var e=+t;return e<1e-4&&e>-1e-4?0:e})).match(Hn)||[],y=[],v=0,x=0,_=2/3,b=g.length,S=0,E="ERROR: malformed path: "+t,w=function(t,e,i,r){c=(i-t)/3,u=(r-e)/3,o.push(t+c,e+u,i-c,r-u,i,r)};if(!t||!isNaN(g[0])||isNaN(g[1]))return console.log(E),y;for(e=0;e<b;e++)if(p=s,isNaN(g[e])?a=(s=g[e].toUpperCase())!==g[e]:e--,r=+g[e+1],n=+g[e+2],a&&(r+=v,n+=x),e||(l=r,h=n),"M"===s)o&&(o.length<8?y.length-=1:S+=o.length),v=l=r,x=h=n,o=[r,n],y.push(o),e+=2,s="L";else if("C"===s)o||(o=[0,0]),a||(v=x=0),o.push(r,n,v+1*g[e+3],x+1*g[e+4],v+=1*g[e+5],x+=1*g[e+6]),e+=6;else if("S"===s)c=v,u=x,"C"!==p&&"S"!==p||(c+=v-o[o.length-4],u+=x-o[o.length-3]),a||(v=x=0),o.push(c,u,r,n,v+=1*g[e+3],x+=1*g[e+4]),e+=4;else if("Q"===s)c=v+(r-v)*_,u=x+(n-x)*_,a||(v=x=0),v+=1*g[e+3],x+=1*g[e+4],o.push(c,u,v+(r-v)*_,x+(n-x)*_,v,x),e+=4;else if("T"===s)c=v-o[o.length-4],u=x-o[o.length-3],o.push(v+c,x+u,r+(v+1.5*c-r)*_,n+(x+1.5*u-n)*_,v=r,x=n),e+=2;else if("H"===s)w(v,x,v=r,x),e+=1;else if("V"===s)w(v,x,v,x=r+(a?x-v:0)),e+=1;else if("L"===s||"Z"===s)"Z"===s&&(r=l,n=h,o.closed=!0),("L"===s||Zn(v-r)>.5||Zn(x-n)>.5)&&(w(v,x,r,n),"L"===s&&(e+=2)),v=r,x=n;else if("A"===s){if(f=g[e+4],m=g[e+5],c=g[e+6],u=g[e+7],i=7,f.length>1&&(f.length<3?(u=c,c=m,i--):(u=m,c=f.substr(2),i-=2),m=f.charAt(1),f=f.charAt(0)),d=ws(v,x,+g[e+1],+g[e+2],+g[e+3],+f,+m,(a?v:0)+1*c,(a?x:0)+1*u),e+=i,d)for(i=0;i<d.length;i++)o.push(d[i]);v=o[o.length-2],x=o[o.length-1]}else console.log(E);return(e=o.length)<6?(y.pop(),e=0):o[0]===o[e-2]&&o[1]===o[e-1]&&(o.closed=!0),y.totalPoints=S+e,y}function As(t,e){void 0===e&&(e=1);for(var i=t[0],r=0,n=[i,r],s=2;s<t.length;s+=2)n.push(i,r,t[s],r=(t[s]-i)*e/2,i=t[s],-r);return n}function Ms(t,e){Zn(t[0]-t[2])<1e-4&&Zn(t[1]-t[3])<1e-4&&(t=t.slice(2));var i,r,n,s,a,o,l,h,c,u,d,p,f,m,g=t.length-2,y=+t[0],v=+t[1],x=+t[2],_=+t[3],b=[y,v,y,v],S=x-y,E=_-v,w=Math.abs(t[g]-y)<.001&&Math.abs(t[g+1]-v)<.001;for(w&&(t.push(x,_),x=y,_=v,y=t[g-2],v=t[g-1],t.unshift(y,v),g+=4),e=e||0===e?+e:1,n=2;n<g;n+=2)i=y,r=v,y=x,v=_,x=+t[n+2],_=+t[n+3],y===x&&v===_||(s=S,a=E,S=x-y,E=_-v,h=((o=Jn(s*s+a*a))+(l=Jn(S*S+E*E)))*e*.25/Jn(Math.pow(S/l+s/o,2)+Math.pow(E/l+a/o,2)),d=y-((c=y-(y-i)*(o?h/o:0))+(((u=y+(x-y)*(l?h/l:0))-c)*(3*o/(o+l)+.5)/4||0)),m=v-((p=v-(v-r)*(o?h/o:0))+(((f=v+(_-v)*(l?h/l:0))-p)*(3*o/(o+l)+.5)/4||0)),y===i&&v===r||b.push(os(c+d),os(p+m),os(y),os(v),os(u+d),os(f+m)));return y!==x||v!==_||b.length<4?b.push(os(x),os(_),os(x),os(_)):b.length-=2,2===b.length?b.push(y,v,y,v,y,v):w&&(b.splice(0,6),b.length=b.length-6),b}function Ps(t){is(t[0])&&(t=[t]);var e,i,r,n,s="",a=t.length;for(i=0;i<a;i++){for(n=t[i],s+="M"+os(n[0])+","+os(n[1])+" C",e=n.length,r=2;r<e;r++)s+=os(n[r++])+","+os(n[r++])+" "+os(n[r++])+","+os(n[r++])+" "+os(n[r++])+","+os(n[r])+" ";n.closed&&(s+="z")}return s}var Cs,ks,Is,Ds,Rs,Os,Ls,Fs,Bs,Ns="transform",Vs=Ns+"Origin",zs=function(t){var e=t.ownerDocument||t;!(Ns in t.style)&&"msTransform"in t.style&&(Vs=(Ns="msTransform")+"Origin");for(;e.parentNode&&(e=e.parentNode););if(ks=window,Ls=new Ks,e){Cs=e,Is=e.documentElement,Ds=e.body,(Fs=Cs.createElementNS("http://www.w3.org/2000/svg","g")).style.transform="none";var i=e.createElement("div"),r=e.createElement("div"),n=e&&(e.body||e.firstElementChild);n&&n.appendChild&&(n.appendChild(i),i.appendChild(r),i.setAttribute("style","position:static;
2transform:translate3d(0,0,1px)"),Bs=r.offsetParent!==i,n.removeChild(i))}return e},Gs=[],Us=[],Hs=function(){return ks.pageYOffset||Cs.scrollTop||Is.scrollTop||Ds.scrollTop||0},js=function(){return ks.pageXOffset||Cs.scrollLeft||Is.scrollLeft||Ds.scrollLeft||0},Ws=function(t){return t.ownerSVGElement||("svg"===(t.tagName+"").toLowerCase()?t:null)},Xs=function t(e){return"fixed"===ks.getComputedStyle(e).position||((e=e.parentNode)&&1===e.nodeType?t(e):void 0)},$s=function t(e,i){if(e.parentNode&&(Cs||zs(e))){var r=Ws(e),n=r?r.getAttribute("xmlns")||"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",s=r?i?"rect":"g":"div",a=2!==i?0:100,o=3===i?100:0,l="position:absolute;display:block;pointer-events:none;margin:0;padding:0;",h=Cs.createElementNS?Cs.createElementNS(n.replace(/^https/,"http"),s):Cs.createElement(s);return i&&(r?(Os||(Os=t(e)),h.setAttribute("width",.01),h.setAttribute("height",.01),h.setAttribute("transform","translate("+a+","+o+")"),Os.appendChild(h)):(Rs||((Rs=t(e)).style.cssText=l),h.style.cssText=l+"width:0.1px;height:0.1px;top:"+o+"px;left:"+a+"px",Rs.appendChild(h))),h}throw"Need document and parent."},Ys=function(t){var e,i=t.getCTM();return i||(e=t.style[Ns],t.style[Ns]="none",t.appendChild(Fs),i=Fs.getCTM(),t.removeChild(Fs),e?t.style[Ns]=e:t.style.removeProperty(Ns.replace(/([A-Z])/g,"-$1").toLowerCase())),i||Ls.clone()},qs=function(t,e,i,r,n,s,a){return t.a=e,t.b=i,t.c=r,t.d=n,t.e=s,t.f=a,t},Ks=function(){function t(t,e,i,r,n,s){void 0===t&&(t=1),void 0===e&&(e=0),void 0===i&&(i=0),void 0===r&&(r=1),void 0===n&&(n=0),void 0===s&&(s=0),qs(this,t,e,i,r,n,s)}var e=t.prototype;return e.inverse=function(){var t=this.a,e=this.b,i=this.c,r=this.d,n=this.e,s=this.f,a=t*r-e*i||1e-10;return qs(this,r/a,-e/a,-i/a,t/a,(i*s-r*n)/a,-(t*s-e*n)/a)},e.multiply=function(t){var e=this.a,i=this.b,r=this.c,n=this.d,s=this.e,a=this.f,o=t.a,l=t.c,h=t.b,c=t.d,u=t.e,d=t.f;return qs(this,o*e+h*r,o*i+h*n,l*e+c*r,l*i+c*n,s+u*e+d*r,a+u*i+d*n)},e.clone=function(){return new t(this.a,this.b,this.c,this.d,this.e,this.f)},e.equals=function(t){var e=this.a,i=this.b,r=this.c,n=this.d,s=this.e,a=this.f;return e===t.a&&i===t.b&&r===t.c&&n===t.d&&s===t.e&&a===t.f},e.apply=function(t,e){void 0===e&&(e={});var i=t.x,r=t.y,n=this.a,s=this.b,a=this.c,o=this.d,l=this.e,h=this.f;return e.x=i*n+r*a+l||0,e.y=i*s+r*o+h||0,e},t}();function Zs(t,e,i,r){if(!t||!t.parentNode||(Cs||zs(t)).documentElement===t)return new Ks;var n=function(t){for(var e,i;t&&t!==Ds;)(i=t._gsap)&&i.uncache&&i.get(t,"x"),i&&!i.scaleX&&!i.scaleY&&i.renderTransform&&(i.scaleX=i.scaleY=1e-4,i.renderTransform(1,i),e?e.push(i):e=[i]),t=t.parentNode;return e}(t),s=Ws(t)?Gs:Us,a=function(t,e){var i,r,n,s,a,o,l=Ws(t),h=t===l,c=l?Gs:Us,u=t.parentNode;if(t===ks)return t;if(c.length||c.push($s(t,1),$s(t,2),$s(t,3)),i=l?Os:Rs,l)h?(s=-(n=Ys(t)).e/n.a,a=-n.f/n.d,r=Ls):t.getBBox?(n=t.getBBox(),r=(r=t.transform?t.transform.baseVal:{}).numberOfItems?r.numberOfItems>1?function(t){for(var e=new Ks,i=0;i<t.numberOfItems;i++)e.multiply(t.getItem(i).matrix);return e}(r):r.getItem(0).matrix:Ls,s=r.a*n.x+r.c*n.y,a=r.b*n.x+r.d*n.y):(r=new Ks,s=a=0),e&&"g"===t.tagName.toLowerCase()&&(s=a=0),(h?l:u).appendChild(i),i.setAttribute("transform","matrix("+r.a+","+r.b+","+r.c+","+r.d+","+(r.e+s)+","+(r.f+a)+")");else{if(s=a=0,Bs)for(r=t.offsetParent,n=t;n&&(n=n.parentNode)&&n!==r&&n.parentNode;)(ks.getComputedStyle(n)[Ns]+"").length>4&&(s=n.offsetLeft,a=n.offsetTop,n=0);if("absolute"!==(o=ks.getComputedStyle(t)).position&&"fixed"!==o.position)for(r=t.offsetParent;u&&u!==r;)s+=u.scrollLeft||0,a+=u.scrollTop||0,u=u.parentNode;(n=i.style).top=t.offsetTop-a+"px",n.left=t.offsetLeft-s+"px",n[Ns]=o[Ns],n[Vs]=o[Vs],n.position="fixed"===o.position?"fixed":"absolute",t.parentNode.appendChild(i)}return i}(t,i),o=s[0].getBoundingClientRect(),l=s[1].getBoundingClientRect(),h=s[2].getBoundingClientRect(),c=a.parentNode,u=!r&&Xs(t),d=new Ks((l.left-o.left)/100,(l.top-o.top)/100,(h.left-o.left)/100,(h.top-o.top)/100,o.left+(u?0:js()),o.top+(u?0:Hs()));if(c.removeChild(a),n)for(o=n.length;o--;)(l=n[o]).scaleX=l.scaleY=0,l.renderTransform(1,l);return e?d.inverse():d}var Js,Qs,ta,ea,ia,ra,na="x,translateX,left,marginLeft,xPercent".split(","),sa="y,translateY,top,marginTop,yPercent".split(","),aa=Math.PI/180,oa=function(t,e,
vendor: 5,303 bytes, line 2
2i,r){for(var n=e.length,s=2===r?0:r,a=0;a<n;a++)t[s]=parseFloat(e[a][i]),2===r&&(t[s+1]=0),s+=2;return t},la=function(t,e,i){return parseFloat(t._gsap.get(t,e,i||"px"))||0},ha=function(t){var e,i=t[0],r=t[1];for(e=2;e<t.length;e+=2)i=t[e]+=i,r=t[e+1]+=r},ca=function(t,e,i,r,n,s,a,o,l){return"cubic"===a.type?e=[e]:(!1!==a.fromCurrent&&e.unshift(la(i,r,o),n?la(i,n,l):0),a.relative&&ha(e),e=[(n?Ms:As)(e,a.curviness)]),e=s(ma(e,i,a)),ga(t,i,r,e,"x",o),n&&ga(t,i,n,e,"y",l),xs(e,a.resolution||(0===a.curviness?20:12))},ua=function(t){return t},da=/[-+\.]*\d+\.?(?:e-|e\+)?\d*/g,pa=function(t,e,i){var r,n=Zs(t),s=0,a=0;return"svg"===(t.tagName+"").toLowerCase()?(r=t.viewBox.baseVal).width||(r={width:+t.getAttribute("width"),height:+t.getAttribute("height")}):r=e&&t.getBBox&&t.getBBox(),e&&"auto"!==e&&(s=e.push?e[0]*(r?r.width:t.offsetWidth||0):e.x,a=e.push?e[1]*(r?r.height:t.offsetHeight||0):e.y),i.apply(s||a?n.apply({x:s,y:a}):{x:n.e,y:n.f})},fa=function(t,e,i,r){var n,s=Zs(t.parentNode,!0,!0),a=s.clone().multiply(Zs(e)),o=pa(t,i,s),l=pa(e,r,s),h=l.x,c=l.y;return a.e=a.f=0,"auto"===r&&e.getTotalLength&&"path"===e.tagName.toLowerCase()&&(n=e.getAttribute("d").match(da)||[],h+=(n=a.apply({x:+n[0],y:+n[1]})).x,c+=n.y),n&&(h-=(n=a.apply(e.getBBox())).x,c-=n.y),a.e=h-o.x,a.f=c-o.y,a},ma=function(t,e,i){var r,n,s,a=i.align,o=i.matrix,l=i.offsetX,h=i.offsetY,c=i.alignOrigin,u=t[0][0],d=t[0][1],p=la(e,"x"),f=la(e,"y");return t&&t.length?(a&&("self"===a||(r=ea(a)[0]||e)===e?Es(t,1,0,0,1,p-u,f-d):(c&&!1!==c[2]?Js.set(e,{transformOrigin:100*c[0]+"% "+100*c[1]+"%"}):c=[la(e,"xPercent")/-100,la(e,"yPercent")/-100],s=(n=fa(e,r,c,"auto")).apply({x:u,y:d}),Es(t,n.a,n.b,n.c,n.d,p+n.e-(s.x-n.e),f+n.f-(s.y-n.f)))),o?Es(t,o.a,o.b,o.c,o.d,o.e,o.f):(l||h)&&Es(t,1,0,0,1,l||0,h||0),t):ps("M0,0L0,0")},ga=function(t,e,i,r,n,s){var a=e._gsap,o=a.harness,l=o&&o.aliases&&o.aliases[i],h=l&&l.indexOf(",")<0?l:i,c=t._pt=new Qs(t._pt,e,h,0,0,ua,0,a.set(e,h,t));c.u=ta(a.get(e,h,s))||0,c.path=r,c.pp=n,t._props.push(h)},ya={version:"3.12.5",name:"motionPath",register:function(t,e,i){ta=(Js=t).utils.getUnit,ea=Js.utils.toArray,ia=Js.core.getStyleSaver,ra=Js.core.reverting||function(){},Qs=i},init:function(t,e,i){if(!Js)return console.warn("Please gsap.registerPlugin(MotionPathPlugin)"),!1;"object"==typeof e&&!e.style&&e.path||(e={path:e});var r,n,s,a,o=[],l=e,h=l.path,c=l.autoRotate,u=l.unitX,d=l.unitY,p=l.x,f=l.y,m=h[0],g=(s=e.start,a="end"in e?e.end:1,function(t){return s||1!==a?ys(t,s,a):t});if(this.rawPaths=o,this.target=t,this.tween=i,this.styles=ia&&ia(t,"transform"),(this.rotate=c||0===c)&&(this.rOffset=parseFloat(c)||0,this.radians=!!e.useRadians,this.rProp=e.rotation||"rotation",this.rSet=t._gsap.set(t,this.rProp,this),this.ru=ta(t._gsap.get(t,this.rProp))||0),Array.isArray(h)&&!("closed"in h)&&"number"!=typeof m){for(n in m)!p&&~na.indexOf(n)?p=n:!f&&~sa.indexOf(n)&&(f=n);for(n in p&&f?o.push(ca(this,oa(oa([],h,p,0),h,f,1),t,p,f,g,e,u||ta(h[0][p]),d||ta(h[0][f]))):p=f=0,m)n!==p&&n!==f&&o.push(ca(this,oa([],h,n,2),t,n,0,g,e,ta(h[0][n])))}else xs(r=g(ma(ps(e.path),t,e)),e.resolution),o.push(r),ga(this,t,e.x||"x",r,"x",e.unitX||"px"),ga(this,t,e.y||"y",r,"y",e.unitY||"px")},render:function(t,e){var i=e.rawPaths,r=i.length,n=e._pt;if(e.tween._time||!ra()){for(t>1?t=1:t<0&&(t=0);r--;)Ss(i[r],t,!r&&e.rotate,i[r]);for(;n;)n.set(n.t,n.p,n.path[n.pp]+n.u,n.d,t),n=n._next;e.rotate&&e.rSet(e.target,e.rProp,i[0].angle*(e.radians?aa:1)+e.rOffset+e.ru,e,t)}else e.styles.revert()},getLength:function(t){return xs(ps(t)).totalLength},sliceRawPath:ys,getRawPath:ps,pointsToSegment:Ms,stringToRawPath:Ts,rawPathToString:Ps,transformRawPath:Es,getGlobalMatrix:Zs,getPositionOnPath:Ss,cacheRawPathMeasurements:xs,convertToPath:function(t,e){return ea(t).map((function(t){return function(t,e){var i,r,n,s,a,o,l,h,c,u,d,p,f,m,g,y,v,x,_,b,S,E,w=t.tagName.toLowerCase(),T=.552284749831;return"path"!==w&&t.getBBox?(o=function(t,e){var i,r=document.createElementNS("http://www.w3.org/2000/svg","path"),n=[].slice.call(t.attributes),s=n.length;for(e=","+e+",";--s>-1;)i=n[s].nodeName.toLowerCase(),e.indexOf(","+i+",")<0&&r.setAttributeNS(null,i,n[s].nodeValue);return r}(t,"x,y,width,height,cx,cy,rx,ry,r,x1,x2,y1,y2,points"),E=function(t,e){for(var i=e?e.split(","):[],r={},n=i.length;--n>-1;)r[i[n]]=+t.getAttribute(i[n])||0;return r}(t,ms[w]),"rect"===w?(s=E.rx,a=E.ry||s,r=E.x,n=E.y,u=E.width-2*s,d=E.height-2*a,i=s||a?"M"+(y=(m=(f=r+s)+u)+s)+","+(x=n+a)+" V"+(_=x+d)+" C"+[y,b=_+a*T,g=m+s*T,S=_+a,m,S,m-(m-f)/3,S,f+(m-f)/3,S,f,S,p=r+s*(1-T),S,r,b,r,_,r,_-(_-x)/3,r,x+(_-x)/3,r,x,r,v=n+a*(1-T),p,n,f,n,f+(m-f)/3,n,m-(m-f)/3,n,m,n,g,n,y,v,y,x].join(",")+"z":"M"+(r+u)+","+n+" v"+d+" h"+-u+" v"+-d+" h"+u+"z"):"circle"===w||"ellipse"===w?("circle"===w?h=(s=a=E.r)*T:(s=E.rx,h=(a=E.ry)*T),i="M"+((r=E.cx)+s)+","+(n=E.cy)+" C"+[r+s,n+h,r+(l=s*T),n+a,r,n+a,r-l,n+a,r-s,n+h,r-s,n,r-s,n-h,r-l,n-a,r,n-a,r+l,n-a,r+s,n-h,r+s,n].join(",")+"z"):"line"===w?i="M"+E.x1+","+E.y1+" L"+E.x2+","+E.y2:"polyline"!==w&&"polygon"!==w||(i="M"+(r=(c=(t.getAttribute("points")+"").match(jn)||[]).shift())+","+(n=c.shift())+" L"+c.join(","),"polygon"===w&&(i+=","+r+","+n+"z")),o.setAttribute("d",Ps(o._gsRawPath=Ts(i))),e&&t.parentNode&&(t.parentNode.insertBefore(o,t),t.parentNode.removeChild(t)),o):t}(t,!1!==e)}))}
vendor: 47,708 bytes, line 2
2,convertCoordinates:function(t,e,i){var r=Zs(e,!0,!0).multiply(Zs(t));return i?r.apply(i):r},getAlignMatrix:fa,getRelativePosition:function(t,e,i,r){var n=fa(t,e,i,r);return{x:n.e,y:n.f}},arrayToRawPath:function(t,e){var i=oa(oa([],t,(e=e||{}).x||"x",0),t,e.y||"y",1);return e.relative&&ha(i),["cubic"===e.type?i:Ms(i,e.curviness)]}};function va(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(Js||"undefined"!=typeof window&&(Js=window.gsap)&&Js.registerPlugin&&Js)&&Js.registerPlugin(ya),Un.registerPlugin(ya),Un.registerPlugin(ya);var xa,_a,ba,Sa,Ea,wa,Ta,Aa,Ma,Pa,Ca,ka,Ia,Da=function(){return xa||"undefined"!=typeof window&&(xa=window.gsap)&&xa.registerPlugin&&xa},Ra=1,Oa=[],La=[],Fa=[],Ba=Date.now,Na=function(t,e){return e},Va=function(t,e){return~Fa.indexOf(t)&&Fa[Fa.indexOf(t)+1][e]},za=function(t){return!!~Pa.indexOf(t)},Ga=function(t,e,i,r,n){return t.addEventListener(e,i,{passive:!1!==r,capture:!!n})},Ua=function(t,e,i,r){return t.removeEventListener(e,i,!!r)},Ha="scrollLeft",ja="scrollTop",Wa=function(){return Ca&&Ca.isPressed||La.cache++},Xa=function(t,e){var i=function i(r){if(r||0===r){Ra&&(ba.history.scrollRestoration="manual");var n=Ca&&Ca.isPressed;r=i.v=Math.round(r)||(Ca&&Ca.iOS?1:0),t(r),i.cacheID=La.cache,n&&Na("ss",r)}else(e||La.cache!==i.cacheID||Na("ref"))&&(i.cacheID=La.cache,i.v=t());return i.v+i.offset};return i.offset=0,t&&i},$a={s:Ha,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:Xa((function(t){return arguments.length?ba.scrollTo(t,Ya.sc()):ba.pageXOffset||Sa[Ha]||Ea[Ha]||wa[Ha]||0}))},Ya={s:ja,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:$a,sc:Xa((function(t){return arguments.length?ba.scrollTo($a.sc(),t):ba.pageYOffset||Sa[ja]||Ea[ja]||wa[ja]||0}))},qa=function(t,e){return(e&&e._ctx&&e._ctx.selector||xa.utils.toArray)(t)[0]||("string"==typeof t&&!1!==xa.config().nullTargetWarn?console.warn("Element not found:",t):null)},Ka=function(t,e){var i=e.s,r=e.sc;za(t)&&(t=Sa.scrollingElement||Ea);var n=La.indexOf(t),s=r===Ya.sc?1:2;!~n&&(n=La.push(t)-1),La[n+s]||Ga(t,"scroll",Wa);var a=La[n+s],o=a||(La[n+s]=Xa(Va(t,i),!0)||(za(t)?r:Xa((function(e){return arguments.length?t[i]=e:t[i]}))));return o.target=t,a||(o.smooth="smooth"===xa.getProperty(t,"scrollBehavior")),o},Za=function(t,e,i){var r=t,n=t,s=Ba(),a=s,o=e||50,l=Math.max(500,3*o),h=function(t,e){var l=Ba();e||l-s>o?(n=r,r=t,a=s,s=l):i?r+=t:r=n+(t-n)/(l-a)*(s-a)};return{update:h,reset:function(){n=r=i?0:r,a=s=0},getVelocity:function(t){var e=a,o=n,c=Ba();return(t||0===t)&&t!==r&&h(t),s===a||c-a>l?0:(r+(i?o:-o))/((i?c:s)-e)*1e3}}},Ja=function(t,e){return e&&!t._gsapAllow&&t.preventDefault(),t.changedTouches?t.changedTouches[0]:t},Qa=function(t){var e=Math.max.apply(Math,t),i=Math.min.apply(Math,t);return Math.abs(e)>=Math.abs(i)?e:i},to=function(){(Ma=xa.core.globals().ScrollTrigger)&&Ma.core&&function(){var t=Ma.core,e=t.bridge||{},i=t._scrollers,r=t._proxies;i.push.apply(i,La),r.push.apply(r,Fa),La=i,Fa=r,Na=function(t,i){return e[t](i)}}()},eo=function(t){return xa=t||Da(),!_a&&xa&&"undefined"!=typeof document&&document.body&&(ba=window,Sa=document,Ea=Sa.documentElement,wa=Sa.body,Pa=[ba,Sa,Ea,wa],xa.utils.clamp,Ia=xa.core.context||function(){},Aa="onpointerenter"in wa?"pointer":"mouse",Ta=io.isTouch=ba.matchMedia&&ba.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in ba||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,ka=io.eventTypes=("ontouchstart"in Ea?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in Ea?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout((function(){return Ra=0}),500),to(),_a=1),_a};$a.op=Ya,La.cache=0;var io=function(){function t(t){this.init(t)}var e,i;return t.prototype.init=function(t){_a||eo(xa)||console.warn("Please gsap.registerPlugin(Observer)"),Ma||to();var e=t.tolerance,i=t.dragMinimum,r=t.type,n=t.target,s=t.lineHeight,a=t.debounce,o=t.preventDefault,l=t.onStop,h=t.onStopDelay,c=t.ignore,u=t.wheelSpeed,d=t.event,p=t.onDragStart,f=t.onDragEnd,m=t.onDrag,g=t.onPress,y=t.onRelease,v=t.onRight,x=t.onLeft,_=t.onUp,b=t.onDown,S=t.onChangeX,E=t.onChangeY,w=t.onChange,T=t.onToggleX,A=t.onToggleY,M=t.onHover,P=t.onHoverEnd,C=t.onMove,k=t.ignoreCheck,I=t.isNormalizer,D=t.onGestureStart,R=t.onGestureEnd,O=t.onWheel,L=t.onEnable,F=t.onDisable,B=t.onClick,N=t.scrollSpeed,V=t.capture,z=t.allowClicks,G=t.lockAxis,U=t.onLockAxis;this.target=n=qa(n)||Ea,this.vars=t,c&&(c=xa.utils.toArray(c)),e=e||1e-9,i=i||0,u=u||1,N=N||1,r=r||"wheel,touch,pointer",a=!1!==a,s||(s=parseFloat(ba.getComputedStyle(wa).lineHeight)||22);var H,j,W,X,$,Y,q,K=this,Z=0,J=0,Q=t.passive||!o,tt=Ka(n,$a),et=Ka(n,Ya),it=tt(),rt=et(),nt=~r.indexOf("touch")&&!~r.indexOf("pointer")&&"pointerdown"===ka[0],st=za(n),at=n.ownerDocument||Sa,ot=[0,0,0],lt=[0,0,0],ht=0,ct=function(){return ht=Ba()},ut=function(t,e){return(K.event=t)&&c&&~c.indexOf(t.target)||e&&nt&&"touch"!==t.pointerType||k&&k(t,e)},dt=function(){var t=K.deltaX=Qa(ot),i=K.deltaY=Qa(lt),r=Math.abs(t)>=e,n=Math.abs(i)>=e;w&&(r||n)&&w(K,t,i,ot,lt),r&&(v&&K.deltaX>0&&v(K),x&&K.deltaX<0&&x(K),S&&S(K),T&&K.deltaX<0!=Z<0&&T(K),Z=K.deltaX,ot[0]=ot[1]=ot[2]=0),n&&(b&&K.deltaY>0&&b(K),_&&K.deltaY<0&&_(K),E&&E(K),A&&K.deltaY<0!=J<0&&A(K),J=K.deltaY,lt[0]=lt[1]=lt[2]=0),(X||W)&&(C&&C(K),W&&(m(K),W=!1),X=!1),Y&&!(Y=!1)&&U&&U(K),$&&(O(K),$=!1),H=0},pt=function(t,e,i){ot[i]+=t,lt[i]+=e,K._vx.update(t),K._vy.update(e),a?H||(H=requestAnimationFrame(dt)):dt()},ft=function(t,e){G&&!q&&(K.axis=q=Math.abs(t)>Math.abs(e)?"x":"y",Y=!0),"y"!==q&&(ot[2]+=t,K._vx.update(t,!0)),"x"!==q&&(lt[2]+=e,K._vy.update(e,!0)),a?H||(H=requestAnimationFrame(dt)):dt()},mt=function(t){if(!ut(t,1)){var e=(t=Ja(t,o)).clientX,r=t.clientY,n=e-K.x,s=r-K.y,a=K.isDragging;K.x=e,K.y=r,(a||Math.abs(K.startX-e)>=i||Math.abs(K.startY-r)>=i)&&(m&&(W=!0),a||(K.isDragging=!0),ft(n,s),a||p&&p(K))}},gt=K.onPress=function(t){ut(t,1)||t&&t.button||(K.axis=q=null,j.pause(),K.isPressed=!0,t=Ja(t),Z=J=0,K.startX=K.x=t.clientX,K.startY=K.y=t.clientY,K._vx.reset(),K._vy.reset(),Ga(I?n:at,ka[1],mt,Q,!0),K.deltaX=K.deltaY=0,g&&g(K))},yt=K.onRelease=function(t){if(!ut(t,1)){Ua(I?n:at,ka[1],mt,!0);var e=!isNaN(K.y-K.startY),i=K.isDragging,r=i&&(Math.abs(K.x-K.startX)>3||Math.abs(K.y-K.startY)>3),s=Ja(t);!r&&e&&(K._vx.reset(),K._vy.reset(),o&&z&&xa.delayedCall(.08,(function(){if(Ba()-ht>300&&!t.defaultPrevented)if(t.target.click)t.target.click();else if(at.createEvent){var e=at.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,ba,1,s.screenX,s.screenY,s.clientX,s.clientY,!1,!1,!1,!1,0,null),t.target.dispatchEvent(e)}}))),K.isDragging=K.isGesturing=K.isPressed=!1,l&&i&&!I&&j.restart(!0),f&&i&&f(K),y&&y(K,r)}},vt=function(t){return t.touches&&t.touches.length>1&&(K.isGesturing=!0)&&D(t,K.isDragging)},xt=function(){return(K.isGesturing=!1)||R(K)},_t=function(t){if(!ut(t)){var e=tt(),i=et();pt((e-it)*N,(i-rt)*N,1),it=e,rt=i,l&&j.restart(!0)}},bt=function(t){if(!ut(t)){t=Ja(t,o),O&&($=!0);var e=(1===t.deltaMode?s:2===t.deltaMode?ba.innerHeight:1)*u;pt(t.deltaX*e,t.deltaY*e,0),l&&!I&&j.restart(!0)}},St=function(t){if(!ut(t)){var e=t.clientX,i=t.clientY,r=e-K.x,n=i-K.y;K.x=e,K.y=i,X=!0,l&&j.restart(!0),(r||n)&&ft(r,n)}},Et=function(t){K.event=t,M(K)},wt=function(t){K.event=t,P(K)},Tt=function(t){return ut(t)||Ja(t,o)&&B(K)};j=K._dc=xa.delayedCall(h||.25,(function(){K._vx.reset(),K._vy.reset(),j.pause(),l&&l(K)})).pause(),K.deltaX=K.deltaY=0,K._vx=Za(0,50,!0),K._vy=Za(0,50,!0),K.scrollX=tt,K.scrollY=et,K.isDragging=K.isGesturing=K.isPressed=!1,Ia(this),K.enable=function(t){return K.isEnabled||(Ga(st?at:n,"scroll",Wa),r.indexOf("scroll")>=0&&Ga(st?at:n,"scroll",_t,Q,V),r.indexOf("wheel")>=0&&Ga(n,"wheel",bt,Q,V),(r.indexOf("touch")>=0&&Ta||r.indexOf("pointer")>=0)&&(Ga(n,ka[0],gt,Q,V),Ga(at,ka[2],yt),Ga(at,ka[3],yt),z&&Ga(n,"click",ct,!0,!0),B&&Ga(n,"click",Tt),D&&Ga(at,"gesturestart",vt),R&&Ga(at,"gestureend",xt),M&&Ga(n,Aa+"enter",Et),P&&Ga(n,Aa+"leave",wt),C&&Ga(n,Aa+"move",St)),K.isEnabled=!0,t&&t.type&&gt(t),L&&L(K)),K},K.disable=function(){K.isEnabled&&(Oa.filter((function(t){return t!==K&&za(t.target)})).length||Ua(st?at:n,"scroll",Wa),K.isPressed&&(K._vx.reset(),K._vy.reset(),Ua(I?n:at,ka[1],mt,!0)),Ua(st?at:n,"scroll",_t,V),Ua(n,"wheel",bt,V),Ua(n,ka[0],gt,V),Ua(at,ka[2],yt),Ua(at,ka[3],yt),Ua(n,"click",ct,!0),Ua(n,"click",Tt),Ua(at,"gesturestart",vt),Ua(at,"gestureend",xt),Ua(n,Aa+"enter",Et),Ua(n,Aa+"leave",wt),Ua(n,Aa+"move",St),K.isEnabled=K.isPressed=K.isDragging=!1,F&&F(K))},K.kill=K.revert=function(){K.disable();var t=Oa.indexOf(K);t>=0&&Oa.splice(t,1),Ca===K&&(Ca=0)},Oa.push(K),I&&za(n)&&(Ca=K),K.enable(d)},e=t,(i=[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}])&&va(e.prototype,i),t}();io.version="3.12.5",io.create=function(t){return new io(t)},io.register=eo,io.getAll=function(){return Oa.slice()},io.getById=function(t){return Oa.filter((function(e){return e.vars.id===t}))[0]},Da()&&xa.registerPlugin(io);var ro,no,so,ao,oo,lo,ho,co,uo,po,fo,mo,go,yo,vo,xo,_o,bo,So,Eo,wo,To,Ao,Mo,Po,Co,ko,Io,Do,Ro,Oo,Lo,Fo,Bo,No,Vo,zo,Go,Uo=1,Ho=Date.now,jo=Ho(),Wo=0,Xo=0,$o=function(t,e,i){var r=ol(t)&&("clamp("===t.substr(0,6)||t.indexOf("max")>-1);return i["_"+e+"Clamp"]=r,r?t.substr(6,t.length-7):t},Yo=function(t,e){return!e||ol(t)&&"clamp("===t.substr(0,6)?t:"clamp("+t+")"},qo=function t(){return Xo&&requestAnimationFrame(t)},Ko=function(){return yo=1},Zo=function(){return yo=0},Jo=function(t){return t},Qo=function(t){return Math.round(1e5*t)/1e5||0},tl=function(){return"undefined"!=typeof window},el=function(){return ro||tl()&&(ro=window.gsap)&&ro.registerPlugin&&ro},il=function(t){return!!~ho.indexOf(t)},rl=function(t){return("Height"===t?Oo:so["inner"+t])||oo["client"+t]||lo["client"+t]},nl=function(t){return Va(t,"getBoundingClientRect")||(il(t)?function(){return yh.width=so.innerWidth,yh.height=Oo,yh}:function(){return kl(t)})},sl=function(t,e){var i=e.s,r=e.d2,n=e.d,s=e.a;return Math.max(0,(i="scroll"+r)&&(s=Va(t,i))?s()-nl(t)()[n]:il(t)?(oo[i]||lo[i])-rl(r):t[i]-t["offset"+r])},al=function(t,e){for(var i=0;i<So.length;i+=3)(!e||~e.indexOf(So[i+1]))&&t(So[i],So[i+1],So[i+2])},ol=function(t){return"string"==typeof t},ll=function(t){return"function"==typeof t},hl=function(t){return"number"==typeof t},cl=function(t){return"object"==typeof t},ul=function(t,e,i){return t&&t.progress(e?0:1)&&i&&t.pause()},dl=function(t,e){if(t.enabled){var i=t._ctx?t._ctx.add((function(){return e(t)})):e(t);i&&i.totalTime&&(t.callbackAnimation=i)}},pl=Math.abs,fl="left",ml="right",gl="bottom",yl="width",vl="height",xl="Right",_l="Left",bl="Top",Sl="Bottom",El="padding",wl="margin",Tl="Width",Al="Height",Ml="px",Pl=function(t){return so.getComputedStyle(t)},Cl=function(t,e){for(var i in e)i in t||(t[i]=e[i]);return t},kl=function(t,e){var i=e&&"matrix(1, 0, 0, 1, 0, 0)"!==Pl(t)[vo]&&ro.to(t,{x:0,y:0,xPercent:0,yPercent:0,rotation:0,rotationX:0,rotationY:0,scale:1,skewX:0,skewY:0}).progress(1),r=t.getBoundingClientRect();return i&&i.progress(0).kill(),r},Il=function(t,e){var i=e.d2;return t["offset"+i]||t["client"+i]||0},Dl=function(t){var e,i=[],r=t.labels,n=t.duration();for(e in r)i.push(r[e]/n);return i},Rl=function(t){var e=ro.utils.snap(t),i=Array.isArray(t)&&t.slice(0).sort((function(t,e){return t-e}));return i?function(t,r,n){var s;if(void 0===n&&(n=.001),!r)return e(t);if(r>0){for(t-=n,s=0;s<i.length;s++)if(i[s]>=t)return i[s];return i[s-1]}for(s=i.length,t+=n;s--;)if(i[s]<=t)return i[s];return i[0]}:function(i,r,n){void 0===n&&(n=.001);var s=e(i);return!r||Math.abs(s-i)<n||s-i<0==r<0?s:e(r<0?i-t:i+t)}},Ol=function(t,e,i,r){return i.split(",").forEach((function(i){return t(e,i,r)}))},Ll=function(t,e,i,r,n){return t.addEventListener(e,i,{passive:!r,capture:!!n})},Fl=function(t,e,i,r){return t.removeEventListener(e,i,!!r)},Bl=function(t,e,i){(i=i&&i.wheelHandler)&&(t(e,"wheel",i),t(e,"touchmove",i))},Nl={startColor:"green",endColor:"red",indent:0,fontSize:"16px",fontWeight:"normal"},Vl={toggleActions:"play",anticipatePin:0},zl={top:0,left:0,center:.5,bottom:1,right:1},Gl=function(t,e){if(ol(t)){var i=t.indexOf("="),r=~i?+(t.charAt(i-1)+1)*parseFloat(t.substr(i+1)):0;~i&&(t.indexOf("%")>i&&(r*=e/100),t=t.substr(0,i-1)),t=r+(t in zl?zl[t]*e:~t.indexOf("%")?parseFloat(t)*e/100:parseFloat(t)||0)}return t},Ul=function(t,e,i,r,n,s,a,o){var l=n.startColor,h=n.endColor,c=n.fontSize,u=n.indent,d=n.fontWeight,p=ao.createElement("div"),f=il(i)||"fixed"===Va(i,"pinType"),m=-1!==t.indexOf("scroller"),g=f?lo:i,y=-1!==t.indexOf("start"),v=y?l:h,x="border-color:"+v+";font-size:"+c+";color:"+v+";font-weight:"+d+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return x+="position:"+((m||o)&&f?"fixed;":"absolute;"),(m||o||!f)&&(x+=(r===Ya?ml:gl)+":"+(s+parseFloat(u))+"px;"),a&&(x+="box-sizing:border-box;text-align:left;width:"+a.offsetWidth+"px;"),p._isStart=y,p.setAttribute("class","gsap-marker-"+t+(e?" marker-"+e:"")),p.style.cssText=x,p.innerText=e||0===e?t+"-"+e:t,g.children[0]?g.insertBefore(p,g.children[0]):g.appendChild(p),p._offset=p["offset"+r.op.d2],Hl(p,0,r,y),p},Hl=function(t,e,i,r){var n={display:"block"},s=i[r?"os2":"p2"],a=i[r?"p2":"os2"];t._isFlipped=r,n[i.a+"Percent"]=r?-100:0,n[i.a]=r?"1px":0,n["border"+s+Tl]=1,n["border"+a+Tl]=0,n[i.p]=e+"px",ro.set(t,n)},jl=[],Wl={},Xl=function(){return Ho()-Wo>34&&(No||(No=requestAnimationFrame(ch)))},$l=function(){(!Ao||!Ao.isPressed||Ao.startX>lo.clientWidth)&&(La.cache++,Ao?No||(No=requestAnimationFrame(ch)):ch(),Wo||Ql("scrollStart"),Wo=Ho())},Yl=function(){Co=so.innerWidth,Po=so.innerHeight},ql=function(){La.cache++,!go&&!To&&!ao.fullscreenElement&&!ao.webkitFullscreenElement&&(!Mo||Co!==so.innerWidth||Math.abs(so.innerHeight-Po)>.25*so.innerHeight)&&co.restart(!0)},Kl={},Zl=[],Jl=function t(){return Fl(wh,"scrollEnd",t)||oh(!0)},Ql=function(t){return Kl[t]&&Kl[t].map((function(t){return t()}))||Zl},th=[],eh=function(t){for(var e=0;e<th.length;e+=5)(!t||th[e+4]&&th[e+4].query===t)&&(th[e].style.cssText=th[e+1],th[e].getBBox&&th[e].setAttribute("transform",th[e+2]||""),th[e+3].uncache=1)},ih=function(t,e){var i;for(xo=0;xo<jl.length;xo++)!(i=jl[xo])||e&&i._ctx!==e||(t?i.kill(1):i.revert(!0,!0));Lo=!0,e&&eh(e),e||Ql("revert")},rh=function(t,e){La.cache++,(e||!Vo)&&La.forEach((function(t){return ll(t)&&t.cacheID++&&(t.rec=0)})),ol(t)&&(so.history.scrollRestoration=Do=t)},nh=0,sh=function(){lo.appendChild(Ro),Oo=!Ao&&Ro.offsetHeight||so.innerHeight,lo.removeChild(Ro)},ah=function(t){return uo(".gsap-marker-start, .gsap-marker-end, .gsap-marker-scroller-start, .gsap-marker-scroller-end").forEach((function(e){return e.style.display=t?"none":"block"}))},oh=function(t,e){if(!Wo||t||Lo){sh(),Vo=wh.isRefreshing=!0,La.forEach((function(t){return ll(t)&&++t.cacheID&&(t.rec=t())}));var i=Ql("refreshInit");Eo&&wh.sort(),e||ih(),La.forEach((function(t){ll(t)&&(t.smooth&&(t.target.style.scrollBehavior="auto"),t(0))})),jl.slice(0).forEach((function(t){return t.refresh()})),Lo=!1,jl.forEach((function(t){if(t._subPinOffset&&t.pin){var e=t.vars.horizontal?"offsetWidth":"offsetHeight",i=t.pin[e];t.revert(!0,1),t.adjustPinSpacing(t.pin[e]-i),t.refresh()}})),Fo=1,ah(!0),jl.forEach((function(t){var e=sl(t.scroller,t._dir),i="max"===t.vars.end||t._endClamp&&t.end>e,r=t._startClamp&&t.start>=e;(i||r)&&t.setPositions(r?e-1:t.start,i?Math.max(r?e:t.start+1,e):t.end,!0)})),ah(!1),Fo=0,i.forEach((function(t){return t&&t.render&&t.render(-1)})),La.forEach((function(t){ll(t)&&(t.smooth&&requestAnimationFrame((function(){return t.target.style.scrollBehavior="smooth"})),t.rec&&t(t.rec))})),rh(Do,1),co.pause(),nh++,Vo=2,ch(2),jl.forEach((function(t){return ll(t.vars.onRefresh)&&t.vars.onRefresh(t)})),Vo=wh.isRefreshing=!1,Ql("refresh")}else Ll(wh,"scrollEnd",Jl)},lh=0,hh=1,ch=function(t){if(2===t||!Vo&&!Lo){wh.isUpdating=!0,Go&&Go.update(0);var e=jl.length,i=Ho(),r=i-jo>=50,n=e&&jl[0].scroll();if(hh=lh>n?-1:1,Vo||(lh=n),r&&(Wo&&!yo&&i-Wo>200&&(Wo=0,Ql("scrollEnd")),fo=jo,jo=i),hh<0){for(xo=e;xo-- >0;)jl[xo]&&jl[xo].update(0,r);hh=1}else for(xo=0;xo<e;xo++)jl[xo]&&jl[xo].update(0,r);wh.isUpdating=!1}No=0},uh=[fl,"top",gl,ml,wl+Sl,wl+xl,wl+bl,wl+_l,"display","flexShrink","float","zIndex","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","gridArea","justifySelf","alignSelf","placeSelf","order"],dh=uh.concat([yl,vl,"boxSizing","max"+Tl,"max"+Al,"position",wl,El,El+bl,El+xl,El+Sl,El+_l]),ph=function(t,e,i,r){if(!t._gsap.swappedIn){for(var n,s=uh.length,a=e.style,o=t.style;s--;)a[n=uh[s]]=i[n];a.position="absolute"===i.position?"absolute":"relative","inline"===i.display&&(a.display="inline-block"),o[gl]=o[ml]="auto",a.flexBasis=i.flexBasis||"auto",a.overflow="visible",a.boxSizing="border-box",a[yl]=Il(t,$a)+Ml,a[vl]=Il(t,Ya)+Ml,a[El]=o[wl]=o.top=o[fl]="0",mh(r),o[yl]=o["max"+Tl]=i[yl],o[vl]=o["max"+Al]=i[vl],o[El]=i[El],t.parentNode!==e&&(t.parentNode.insertBefore(e,t),e.appendChild(t)),t._gsap.swappedIn=!0}},fh=/([A-Z])/g,mh=function(t){if(t){var e,i,r=t.t.style,n=t.length,s=0;for((t.t._gsap||ro.core.getCache(t.t)).uncache=1;s<n;s+=2)i=t[s+1],e=t[s],i?r[e]=i:r[e]&&r.removeProperty(e.replace(fh,"-$1").toLowerCase())}},gh=function(t){for(var e=dh.length,i=t.style,r=[],n=0;n<e;n++)r.push(dh[n],i[dh[n]]);return r.t=t,r},yh={left:0,top:0},vh=function(t,e,i,r,n,s,a,o,l,h,c,u,d,p){ll(t)&&(t=t(o)),ol(t)&&"max"===t.substr(0,3)&&(t=u+("="===t.charAt(4)?Gl("0"+t.substr(3),i):0));var f,m,g,y=d?d.time():0;if(d&&d.seek(0),isNaN(t)||(t=+t),hl(t))d&&(t=ro.utils.mapRange(d.scrollTrigger.start,d.scrollTrigger.end,0,u,t)),a&&Hl(a,i,r,!0);else{ll(e)&&(e=e(o));var v,x,_,b,S=(t||"0").split(" ");g=qa(e,o)||lo,(v=kl(g)||{})&&(v.left||v.top)||"none"!==Pl(g).display||(b=g.style.display,g.style.display="block",v=kl(g),b?g.style.display=b:g.style.removeProperty("display")),x=Gl(S[0],v[r.d]),_=Gl(S[1]||"0",i),t=v[r.p]-l[r.p]-h+x+n-_,a&&Hl(a,_,r,i-_<20||a._isStart&&_>20),i-=i-_}if(p&&(o[p]=t||-.001,t<0&&(t=0)),s){var E=t+i,w=s._isStart;f="scroll"+r.d2,Hl(s,E,r,w&&E>20||!w&&(c?Math.max(lo[f],oo[f]):s.parentNode[f])<=E+1),c&&(l=kl(a),c&&(s.style[r.op.p]=l[r.op.p]-r.op.m-s._offset+Ml))}return d&&g&&(f=kl(g),d.seek(u),m=kl(g),d._caScrollDist=f[r.p]-m[r.p],t=t/d._caScrollDist*u),d&&d.seek(y),d?t:Math.round(t)},xh=/(webkit|moz|length|cssText|inset)/i,_h=function(t,e,i,r){if(t.parentNode!==e){var n,s,a=t.style;if(e===lo){for(n in t._stOrig=a.cssText,s=Pl(t))+n||xh.test(n)||!s[n]||"string"!=typeof a[n]||"0"===n||(a[n]=s[n]);a.top=i,a.left=r}else a.cssText=t._stOrig;ro.core.getCache(t).uncache=1,e.appendChild(t)}},bh=function(t,e,i){var r=e,n=r;return function(e){var s=Math.round(t());return s!==r&&s!==n&&Math.abs(s-r)>3&&Math.abs(s-n)>3&&(e=s,i&&i()),n=r,r=e,e}},Sh=function(t,e,i){var r={};r[e.p]="+="+i,ro.set(t,r)},Eh=function(t,e){var i=Ka(t,e),r="_scroll"+e.p2,n=function e(n,s,a,o,l){var h=e.tween,c=s.onComplete,u={};a=a||i();var d=bh(i,a,(function(){h.kill(),e.tween=0}));return l=o&&l||0,o=o||n-a,h&&h.kill(),s[r]=n,s.inherit=!1,s.modifiers=u,u[r]=function(){return d(a+o*h.ratio+l*h.ratio*h.ratio)},s.onUpdate=function(){La.cache++,e.tween&&ch()},s.onComplete=function(){e.tween=0,c&&c.call(h)},h=e.tween=ro.to(t,s)};return t[r]=i,i.wheelHandler=function(){return n.tween&&n.tween.kill()&&(n.tween=0)},Ll(t,"wheel",i.wheelHandler),wh.isTouch&&Ll(t,"touchmove",i.wheelHandler),n},wh=function(){function t(e,i){no||t.register(ro)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),Io(this),this.init(e,i)}return t.prototype.init=function(e,i){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),Xo){var r,n,s,a,o,l,h,c,u,d,p,f,m,g,y,v,x,_,b,S,E,w,T,A,M,P,C,k,I,D,R,O,L,F,B,N,V,z,G,U,H,j=e=Cl(ol(e)||hl(e)||e.nodeType?{trigger:e}:e,Vl),W=j.onUpdate,X=j.toggleClass,$=j.id,Y=j.onToggle,q=j.onRefresh,K=j.scrub,Z=j.trigger,J=j.pin,Q=j.pinSpacing,tt=j.invalidateOnRefresh,et=j.anticipatePin,it=j.onScrubComplete,rt=j.onSnapComplete,nt=j.once,st=j.snap,at=j.pinReparent,ot=j.pinSpacer,lt=j.containerAnimation,ht=j.fastScrollEnd,ct=j.preventOverlaps,ut=e.horizontal||e.containerAnimation&&!1!==e.horizontal?$a:Ya,dt=!K&&0!==K,pt=qa(e.scroller||so),ft=ro.core.getCache(pt),mt=il(pt),gt="fixed"===("pinType"in e?e.pinType:Va(pt,"pinType")||mt&&"fixed"),yt=[e.onEnter,e.onLeave,e.onEnterBack,e.onLeaveBack],vt=dt&&e.toggleActions.split(" "),xt="markers"in e?e.markers:Vl.markers,_t=mt?0:parseFloat(Pl(pt)["border"+ut.p2+Tl])||0,bt=this,St=e.onRefreshInit&&function(){return e.onRefreshInit(bt)},Et=function(t,e,i){var r=i.d,n=i.d2,s=i.a;return(s=Va(t,"getBoundingClientRect"))?function(){return s()[r]}:function(){return(e?rl(n):t["client"+n])||0}}(pt,mt,ut),wt=function(t,e){return!e||~Fa.indexOf(t)?nl(t):function(){return yh}}(pt,mt),Tt=0,At=0,Mt=0,Pt=Ka(pt,ut);if(bt._startClamp=bt._endClamp=!1,bt._dir=ut,et*=45,bt.scroller=pt,bt.scroll=lt?lt.time.bind(lt):Pt,a=Pt(),bt.vars=e,i=i||e.animation,"refreshPriority"in e&&(Eo=1,-9999===e.refreshPriority&&(Go=bt)),ft.tweenScroll=ft.tweenScroll||{top:Eh(pt,Ya),left:Eh(pt,$a)},bt.tweenTo=r=ft.tweenScroll[ut.p],bt.scrubDuration=function(t){(L=hl(t)&&t)?O?O.duration(t):O=ro.to(i,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:L,paused:!0,onComplete:function(){return it&&it(bt)}}):(O&&O.progress(1).kill(),O=0)},i&&(i.vars.lazy=!1,i._initted&&!bt.isReverted||!1!==i.vars.immediateRender&&!1!==e.immediateRender&&i.duration()&&i.render(0,!0,!0),bt.animation=i.pause(),i.scrollTrigger=bt,bt.scrubDuration(K),D=0,$||($=i.vars.id)),st&&(cl(st)&&!st.push||(st={snapTo:st}),"scrollBehavior"in lo.style&&ro.set(mt?[lo,oo]:pt,{scrollBehavior:"auto"}),La.forEach((function(t){return ll(t)&&t.target===(mt?ao.scrollingElement||oo:pt)&&(t.smooth=!1)})),s=ll(st.snapTo)?st.snapTo:"labels"===st.snapTo?function(t){return function(e){return ro.utils.snap(Dl(t),e)}}(i):"labelsDirectional"===st.snapTo?(Rt=i,function(t,e){return Rl(Dl(Rt))(t,e.direction)}):!1!==st.directional?function(t,e){return Rl(st.snapTo)(t,Ho()-At<500?0:e.direction)}:ro.utils.snap(st.snapTo),F=st.duration||{min:.1,max:2},F=cl(F)?po(F.min,F.max):po(F,F),B=ro.delayedCall(st.delay||L/2||.1,(function(){var t=Pt(),e=Ho()-At<500,n=r.tween;if(!(e||Math.abs(bt.getVelocity())<10)||n||yo||Tt===t)bt.isActive&&Tt!==t&&B.restart(!0);else{var a,o,c=(t-l)/g,u=i&&!dt?i.totalProgress():c,d=e?0:(u-R)/(Ho()-fo)*1e3||0,p=ro.utils.clamp(-c,1-c,pl(d/2)*d/.185),f=c+(!1===st.inertia?0:p),m=st,y=m.onStart,v=m.onInterrupt,x=m.onComplete;if(a=s(f,bt),hl(a)||(a=f),o=Math.round(l+a*g),t<=h&&t>=l&&o!==t){if(n&&!n._initted&&n.data<=pl(o-t))return;!1===st.inertia&&(p=a-c),r(o,{duration:F(pl(.185*Math.max(pl(f-u),pl(a-u))/d/.05||0)),ease:st.ease||"power3",data:pl(o-t),onInterrupt:function(){return B.restart(!0)&&v&&v(bt)},onComplete:function(){bt.update(),Tt=Pt(),i&&(O?O.resetTo("totalProgress",a,i._tTime/i._tDur):i.progress(a)),D=R=i&&!dt?i.totalProgress():bt.progress,rt&&rt(bt),x&&x(bt)}},t,p*g,o-t-p*g),y&&y(bt,r.tween)}}})).pause()),$&&(Wl[$]=bt),(G=(Z=bt.trigger=qa(Z||!0!==J&&J))&&Z._gsap&&Z._gsap.stRevert)&&(G=G(bt)),J=!0===J?Z:qa(J),ol(X)&&(X={targets:Z,className:X}),J&&(!1===Q||Q===wl||(Q=!(!Q&&J.parentNode&&J.parentNode.style&&"flex"===Pl(J.parentNode).display)&&El),bt.pin=J,(n=ro.core.getCache(J)).spacer?y=n.pinState:(ot&&((ot=qa(ot))&&!ot.nodeType&&(ot=ot.current||ot.nativeElement),n.spacerIsNative=!!ot,ot&&(n.spacerState=gh(ot))),n.spacer=_=ot||ao.createElement("div"),_.classList.add("pin-spacer"),$&&_.classList.add("pin-spacer-"+$),n.pinState=y=gh(J)),!1!==e.force3D&&ro.set(J,{force3D:!0}),bt.spacer=_=n.spacer,I=Pl(J),A=I[Q+ut.os2],S=ro.getProperty(J),E=ro.quickSetter(J,ut.a,Ml),ph(J,_,I),x=gh(J)),xt){f=cl(xt)?Cl(xt,Nl):Nl,d=Ul("scroller-start",$,pt,ut,f,0),p=Ul("scroller-end",$,pt,ut,f,0,d),b=d["offset"+ut.op.d2];var Ct=qa(Va(pt,"content")||pt);c=this.markerStart=Ul("start",$,Ct,ut,f,b,0,lt),u=this.markerEnd=Ul("end",$,Ct,ut,f,b,0,lt),lt&&(z=ro.quickSetter([c,u],ut.a,Ml)),gt||Fa.length&&!0===Va(pt,"fixedMarkers")||(H=Pl(U=mt?lo:pt).position,U.style.position="absolute"===H||"fixed"===H?H:"relative",ro.set([d,p],{force3D:!0}),P=ro.quickSetter(d,ut.a,Ml),k=ro.quickSetter(p,ut.a,Ml))}if(lt){var kt=lt.vars.onUpdate,It=lt.vars.onUpdateParams;lt.eventCallback("onUpdate",(function(){bt.update(0,0,1),kt&&kt.apply(lt,It||[])}))}if(bt.previous=function(){return jl[jl.indexOf(bt)-1]},bt.next=function(){return jl[jl.indexOf(bt)+1]},bt.revert=function(t,e){if(!e)return bt.kill(!0);var r=!1!==t||!bt.enabled,n=go;r!==bt.isReverted&&(r&&(N=Math.max(Pt(),bt.scroll.rec||0),Mt=bt.progress,V=i&&i.progress()),c&&[c,u,d,p].forEach((function(t){return t.style.display=r?"none":"block"})),r&&(go=bt,bt.update(r)),!J||at&&bt.isActive||(r?function(t,e,i){mh(i);var r=t._gsap;if(r.spacerIsNative)mh(r.spacerState);else if(t._gsap.swappedIn){var n=e.parentNode;n&&(n.insertBefore(t,e),n.removeChild(e))}t._gsap.swappedIn=!1}(J,_,y):ph(J,_,Pl(J),M)),r||bt.update(r),go=n,bt.isReverted=r)},bt.refresh=function(n,s,f,b){if(!go&&bt.enabled||s)if(J&&n&&Wo)Ll(t,"scrollEnd",Jl);else{!Vo&&St&&St(bt),go=bt,r.tween&&!f&&(r.tween.kill(),r.tween=0),O&&O.pause(),tt&&i&&i.revert({kill:!1}).invalidate(),bt.isReverted||bt.revert(!0,!0),bt._subPinOffset=!1;var E,A,P,k,I,D,R,L,F,z,G,U,H,j=Et(),W=wt(),X=lt?lt.duration():sl(pt,ut),$=g<=.01,Y=0,K=b||0,et=cl(f)?f.end:e.end,it=e.endTrigger||Z,rt=cl(f)?f.start:e.start||(0!==e.start&&Z?J?"0 0":"0 100%":0),nt=bt.pinnedContainer=e.pinnedContainer&&qa(e.pinnedContainer,bt),st=Z&&Math.max(0,jl.indexOf(bt))||0,ot=st;for(xt&&cl(f)&&(U=ro.getProperty(d,ut.p),H=ro.getProperty(p,ut.p));ot--;)(D=jl[ot]).end||D.refresh(0,1)||(go=bt),!(R=D.pin)||R!==Z&&R!==J&&R!==nt||D.isReverted||(z||(z=[]),z.unshift(D),D.revert(!0,!0)),D!==jl[ot]&&(st--,ot--);for(ll(rt)&&(rt=rt(bt)),rt=$o(rt,"start",bt),l=vh(rt,Z,j,ut,Pt(),c,d,bt,W,_t,gt,X,lt,bt._startClamp&&"_startClamp")||(J?-.001:0),ll(et)&&(et=et(bt)),ol(et)&&!et.indexOf("+=")&&(~et.indexOf(" ")?et=(ol(rt)?rt.split(" ")[0]:"")+et:(Y=Gl(et.substr(2),j),et=ol(rt)?rt:(lt?ro.utils.mapRange(0,lt.duration(),lt.scrollTrigger.start,lt.scrollTrigger.end,l):l)+Y,it=Z)),et=$o(et,"end",bt),h=Math.max(l,vh(et||(it?"100% 0":X),it,j,ut,Pt()+Y,u,p,bt,W,_t,gt,X,lt,bt._endClamp&&"_endClamp"))||-.001,Y=0,ot=st;ot--;)(R=(D=jl[ot]).pin)&&D.start-D._pinPush<=l&&!lt&&D.end>0&&(E=D.end-(bt._startClamp?Math.max(0,D.start):D.start),(R===Z&&D.start-D._pinPush<l||R===nt)&&isNaN(rt)&&(Y+=E*(1-D.progress)),R===J&&(K+=E));if(l+=Y,h+=Y,bt._startClamp&&(bt._startClamp+=Y),bt._endClamp&&!Vo&&(bt._endClamp=h||-.001,h=Math.min(h,sl(pt,ut))),g=h-l||(l-=.01)&&.001,$&&(Mt=ro.utils.clamp(0,1,ro.utils.normalize(l,h,N))),bt._pinPush=K,c&&Y&&((E={})[ut.a]="+="+Y,nt&&(E[ut.p]="-="+Pt()),ro.set([c,u],E)),!J||Fo&&bt.end>=sl(pt,ut)){if(Z&&Pt()&&!lt)for(A=Z.parentNode;A&&A!==lo;)A._pinOffset&&(l-=A._pinOffset,h-=A._pinOffset),A=A.parentNode}else E=Pl(J),k=ut===Ya,P=Pt(),w=parseFloat(S(ut.a))+K,!X&&h>1&&(G={style:G=(mt?ao.scrollingElement||oo:pt).style,value:G["overflow"+ut.a.toUpperCase()]},mt&&"scroll"!==Pl(lo)["overflow"+ut.a.toUpperCase()]&&(G.style["overflow"+ut.a.toUpperCase()]="scroll")),ph(J,_,E),x=gh(J),A=kl(J,!0),L=gt&&Ka(pt,k?$a:Ya)(),Q?((M=[Q+ut.os2,g+K+Ml]).t=_,(ot=Q===El?Il(J,ut)+g+K:0)&&(M.push(ut.d,ot+Ml),"auto"!==_.style.flexBasis&&(_.style.flexBasis=ot+Ml)),mh(M),nt&&jl.forEach((function(t){t.pin===nt&&!1!==t.vars.pinSpacing&&(t._subPinOffset=!0)})),gt&&Pt(N)):(ot=Il(J,ut))&&"auto"!==_.style.flexBasis&&(_.style.flexBasis=ot+Ml),gt&&((I={top:A.top+(k?P-l:L)+Ml,left:A.left+(k?L:P-l)+Ml,boxSizing:"border-box",position:"fixed"})[yl]=I["max"+Tl]=Math.ceil(A.width)+Ml,I[vl]=I["max"+Al]=Math.ceil(A.height)+Ml,I[wl]=I[wl+bl]=I[wl+xl]=I[wl+Sl]=I[wl+_l]="0",I[El]=E[El],I[El+bl]=E[El+bl],I[El+xl]=E[El+xl],I[El+Sl]=E[El+Sl],I[El+_l]=E[El+_l],v=function(t,e,i){for(var r,n=[],s=t.length,a=i?8:0;a<s;a+=2)r=t[a],n.push(r,r in e?e[r]:t[a+1]);return n.t=t.t,n}(y,I,at),Vo&&Pt(0)),i?(F=i._initted,wo(1),i.render(i.duration(),!0,!0),T=S(ut.a)-w+g+K,C=Math.abs(g-T)>1,gt&&C&&v.splice(v.length-2,2),i.render(0,!0,!0),F||i.invalidate(!0),i.parent||i.totalTime(i.totalTime()),wo(0)):T=g,G&&(G.value?G.style["overflow"+ut.a.toUpperCase()]=G.value:G.style.removeProperty("overflow-"+ut.a));z&&z.forEach((function(t){return t.revert(!1,!0)})),bt.start=l,bt.end=h,a=o=Vo?N:Pt(),lt||Vo||(a<N&&Pt(N),bt.scroll.rec=0),bt.revert(!1,!0),At=Ho(),B&&(Tt=-1,B.restart(!0)),go=0,i&&dt&&(i._initted||V)&&i.progress()!==V&&i.progress(V||0,!0).render(i.time(),!0,!0),($||Mt!==bt.progress||lt||tt)&&(i&&!dt&&i.totalProgress(lt&&l<-.001&&!Mt?ro.utils.normalize(l,h,0):Mt,!0),bt.progress=$||(a-l)/g===Mt?0:Mt),J&&Q&&(_._pinOffset=Math.round(bt.progress*T)),O&&O.invalidate(),isNaN(U)||(U-=ro.getProperty(d,ut.p),H-=ro.getProperty(p,ut.p),Sh(d,ut,U),Sh(c,ut,U-(b||0)),Sh(p,ut,H),Sh(u,ut,H-(b||0))),$&&!Vo&&bt.update(),!q||Vo||m||(m=!0,q(bt),m=!1)}},bt.getVelocity=function(){return(Pt()-o)/(Ho()-fo)*1e3||0},bt.endAnimation=function(){ul(bt.callbackAnimation),i&&(O?O.progress(1):i.paused()?dt||ul(i,bt.direction<0,1):ul(i,i.reversed()))},bt.labelToScroll=function(t){return i&&i.labels&&(l||bt.refresh()||l)+i.labels[t]/i.duration()*g||0},bt.getTrailing=function(t){var e=jl.indexOf(bt),i=bt.direction>0?jl.slice(0,e).reverse():jl.slice(e+1);return(ol(t)?i.filter((function(e){return e.vars.preventOverlaps===t})):i).filter((function(t){return bt.direction>0?t.end<=l:t.start>=h}))},bt.update=function(t,e,n){if(!lt||n||t){var s,c,u,p,f,m,y,b=!0===Vo?N:bt.scroll(),S=t?0:(b-l)/g,M=S<0?0:S>1?1:S||0,I=bt.progress;if(e&&(o=a,a=lt?Pt():b,st&&(R=D,D=i&&!dt?i.totalProgress():M)),et&&J&&!go&&!Uo&&Wo&&(!M&&l<b+(b-o)/(Ho()-fo)*et?M=1e-4:1===M&&h>b+(b-o)/(Ho()-fo)*et&&(M=.9999)),M!==I&&bt.enabled){if(p=(f=(s=bt.isActive=!!M&&M<1)!=(!!I&&I<1))||!!M!=!!I,bt.direction=M>I?1:-1,bt.progress=M,p&&!go&&(c=M&&!I?0:1===M?1:1===I?2:3,dt&&(u=!f&&"none"!==vt[c+1]&&vt[c+1]||vt[c],y=i&&("complete"===u||"reset"===u||u in i))),ct&&(f||y)&&(y||K||!i)&&(ll(ct)?ct(bt):bt.getTrailing(ct).forEach((function(t){return t.endAnimation()}))),dt||(!O||go||Uo?i&&i.totalProgress(M,!(!go||!At&&!t)):(O._dp._time-O._start!==O._time&&O.render(O._dp._time-O._start),O.resetTo?O.resetTo("totalProgress",M,i._tTime/i._tDur):(O.vars.totalProgress=M,O.invalidate().restart()))),J)if(t&&Q&&(_.style[Q+ut.os2]=A),gt){if(p){if(m=!t&&M>I&&h+1>b&&b+1>=sl(pt,ut),at)if(t||!s&&!m)_h(J,_);else{var L=kl(J,!0),F=b-l;_h(J,lo,L.top+(ut===Ya?F:0)+Ml,L.left+(ut===Ya?0:F)+Ml)}mh(s||m?v:x),C&&M<1&&s||E(w+(1!==M||m?0:T))}}else E(Qo(w+T*M));st&&!r.tween&&!go&&!Uo&&B.restart(!0),X&&(f||nt&&M&&(M<1||!Bo))&&uo(X.targets).forEach((function(t){return t.classList[s||nt?"add":"remove"](X.className)})),W&&!dt&&!t&&W(bt),p&&!go?(dt&&(y&&("complete"===u?i.pause().totalProgress(1):"reset"===u?i.restart(!0).pause():"restart"===u?i.restart(!0):i[u]()),W&&W(bt)),!f&&Bo||(Y&&f&&dl(bt,Y),yt[c]&&dl(bt,yt[c]),nt&&(1===M?bt.kill(!1,1):yt[c]=0),f||yt[c=1===M?1:3]&&dl(bt,yt[c])),ht&&!s&&Math.abs(bt.getVelocity())>(hl(ht)?ht:2500)&&(ul(bt.callbackAnimation),O?O.progress(1):ul(i,"reverse"===u?1:!M,1))):dt&&W&&!go&&W(bt)}if(k){var V=lt?b/lt.duration()*(lt._caScrollDist||0):b;P(V+(d._isFlipped?1:0)),k(V)}z&&z(-b/lt.duration()*(lt._caScrollDist||0))}},bt.enable=function(e,i){bt.enabled||(bt.enabled=!0,Ll(pt,"resize",ql),mt||Ll(pt,"scroll",$l),St&&Ll(t,"refreshInit",St),!1!==e&&(bt.progress=Mt=0,a=o=Tt=Pt()),!1!==i&&bt.refresh())},bt.getTween=function(t){return t&&r?r.tween:O},bt.setPositions=function(t,e,i,r){if(lt){var n=lt.scrollTrigger,s=lt.duration(),a=n.end-n.start;t=n.start+a*t/s,e=n.start+a*e/s}bt.refresh(!1,!1,{start:Yo(t,i&&!!bt._startClamp),end:Yo(e,i&&!!bt._endClamp)},r),bt.update()},bt.adjustPinSpacing=function(t){if(M&&t){var e=M.indexOf(ut.d)+1;M[e]=parseFloat(M[e])+t+Ml,M[1]=parseFloat(M[1])+t+Ml,mh(M)}},bt.disable=function(e,i){if(bt.enabled&&(!1!==e&&bt.revert(!0,!0),bt.enabled=bt.isActive=!1,i||O&&O.pause(),N=0,n&&(n.uncache=1),St&&Fl(t,"refreshInit",St),B&&(B.pause(),r.tween&&r.tween.kill()&&(r.tween=0)),!mt)){for(var s=jl.length;s--;)if(jl[s].scroller===pt&&jl[s]!==bt)return;Fl(pt,"resize",ql),mt||Fl(pt,"scroll",$l)}},bt.kill=function(t,r){bt.disable(t,r),O&&!r&&O.kill(),$&&delete Wl[$];var s=jl.indexOf(bt);s>=0&&jl.splice(s,1),s===xo&&hh>0&&xo--,s=0,jl.forEach((function(t){return t.scroller===bt.scroller&&(s=1)})),s||Vo||(bt.scroll.rec=0),i&&(i.scrollTrigger=null,t&&i.revert({kill:!1}),r||i.kill()),c&&[c,u,d,p].forEach((function(t){return t.parentNode&&t.parentNode.removeChild(t)})),Go===bt&&(Go=0),J&&(n&&(n.uncache=1),s=0,jl.forEach((function(t){return t.pin===J&&s++})),s||(n.spacer=0)),e.onKill&&e.onKill(bt)},jl.push(bt),bt.enable(!1,!1),G&&G(bt),i&&i.add&&!g){var Dt=bt.update;bt.update=function(){bt.update=Dt,l||h||bt.refresh()},ro.delayedCall(.01,bt.update),g=.01,l=h=0}else bt.refresh();J&&function(){if(zo!==nh){var t=zo=nh;requestAnimationFrame((function(){return t===nh&&oh(!0)}))}}()}else this.update=this.refresh=this.kill=Jo;var Rt},t.register=function(e){return no||(ro=e||el(),tl()&&window.document&&t.enable(),no=Xo),no},t.defaults=function(t){if(t)for(var e in t)Vl[e]=t[e];return Vl},t.disable=function(t,e){Xo=0,jl.forEach((function(i){return i[e?"kill":"disable"](t)})),Fl(so,"wheel",$l),Fl(ao,"scroll",$l),clearInterval(mo),Fl(ao,"touchcancel",Jo),Fl(lo,"touchstart",Jo),Ol(Fl,ao,"pointerdown,touchstart,mousedown",Ko),Ol(Fl,ao,"pointerup,touchend,mouseup",Zo),co.kill(),al(Fl);for(var i=0;i<La.length;i+=3)Bl(Fl,La[i],La[i+1]),Bl(Fl,La[i],La[i+2])},t.enable=function(){if(so=window,ao=document,oo=ao.documentElement,lo=ao.body,ro&&(uo=ro.utils.toArray,po=ro.utils.clamp,Io=ro.core.context||Jo,wo=ro.core.suppressOverwrites||Jo,Do=so.history.scrollRestoration||"auto",lh=so.pageYOffset,ro.core.globals("ScrollTrigger",t),lo)){Xo=1,(Ro=document.createElement("div")).style.height="100vh",Ro.style.position="absolute",sh(),qo(),io.register(ro),t.isTouch=io.isTouch,ko=io.isTouch&&/(iPad|iPhone|iPod|Mac)/g.test(navigator.userAgent),Mo=1===io.isTouch,Ll(so,"wheel",$l),ho=[so,ao,oo,lo],ro.matchMedia?(t.matchMedia=function(t){var e,i=ro.matchMedia();for(e in t)i.add(e,t[e]);return i},ro.addEventListener("matchMediaInit",(function(){return ih()})),ro.addEventListener("matchMediaRevert",(function(){return eh()})),ro.addEventListener("matchMedia",(function(){oh(0,1),Ql("matchMedia")})),ro.matchMedia("(orientation: portrait)",(function(){return Yl(),Yl}))):console.warn("Requires GSAP 3.11.0 or later"),Yl(),Ll(ao,"scroll",$l);var e,i,r=lo.style,n=r.borderTopStyle,s=ro.core.Animation.prototype;for(s.revert||Object.defineProperty(s,"revert",{value:function(){return this.time(-.01,!0)}}),r.borderTopStyle="solid",e=kl(lo),Ya.m=Math.round(e.top+Ya.sc())||0,$a.m=Math.round(e.left+$a.sc())||0,n?r.borderTopStyle=n:r.removeProperty("border-top-style"),mo=setInterval(Xl,250),ro.delayedCall(.5,(function(){return Uo=0})),Ll(ao,"touchcancel",Jo),Ll(lo,"touchstart",Jo),Ol(Ll,ao,"pointerdown,touchstart,mousedown",Ko),Ol(Ll,ao,"pointerup,touchend,mouseup",Zo),vo=ro.utils.checkPrefix("transform"),dh.push(vo),no=Ho(),co=ro.delayedCall(.2,oh).pause(),So=[ao,"visibilitychange",function(){var t=so.innerWidth,e=so.innerHeight;ao.hidden?(_o=t,bo=e):_o===t&&bo===e||ql()},ao,"DOMContentLoaded",oh,so,"load",oh,so,"resize",ql],al(Ll),jl.forEach((function(t){return t.enable(0,1)})),i=0;i<La.length;i+=3)Bl(Fl,La[i],La[i+1]),Bl(Fl,La[i],La[i+2])}},t.config=function(e){"limitCallbacks"in e&&(Bo=!!e.limitCallbacks);var i=e.syncInterval;i&&clearInterval(mo)||(mo=i)&&setInterval(Xl,i),"ignoreMobileResize"in e&&(Mo=1===t.isTouch&&e.ignoreMobileResize),"autoRefreshEvents"in e&&(al(Fl)||al(Ll,e.autoRefreshEvents||"none"),To=-1===(e.autoRefreshEvents+"").indexOf("resize"))},t.scrollerProxy=function(t,e){var i=qa(t),r=La.indexOf(i),n=il(i);~r&&La.splice(r,n?6:2),e&&(n?Fa.unshift(so,e,lo,e,oo,e):Fa.unshift(i,e))},t.clearMatchMedia=function(t){jl.forEach((function(e){return e._ctx&&e._ctx.query===t&&e._ctx.kill(!0,!0)}))},t.isInViewport=function(t,e,i){var r=(ol(t)?qa(t):t).getBoundingClientRect(),n=r[i?yl:vl]*e||0;return i?r.right-n>0&&r.left+n<so.innerWidth:r.bottom-n>0&&r.top+n<so.innerHeight},t.positionInViewport=function(t,e,i){ol(t)&&(t=qa(t));var r=t.getBoundingClientRect(),n=r[i?yl:vl],s=null==e?n/2:e in zl?zl[e]*n:~e.indexOf("%")?parseFloat(e)*n/100:parseFloat(e)||0;return i?(r.left+s)/so.innerWidth:(r.top+s)/so.innerHeight},t.killAll=function(t){if(jl.slice(0).forEach((function(t){return"ScrollSmoother"!==t.vars.id&&t.kill()})),!0!==t){var e=Kl.killAll||[];Kl={},e.forEach((function(t){return t()}))}},t}();wh.version="3.12.5",wh.saveStyles=function(t){return t?uo(t).forEach((function(t){if(t&&t.style){var e=th.indexOf(t);e>=0&&th.splice(e,5),th.push(t,t.style.cssText,t.getBBox&&t.getAttribute("transform"),ro.core.getCache(t),Io())}})):th},wh.revert=function(t,e){return ih(!t,e)},wh.create=function(t,e){return new wh(t,e)},wh.refresh=function(t){return t?ql():(no||wh.register())&&oh(!0)},wh.update=function(t){return++La.cache&&ch(!0===t?2:0)},wh.clearScrollMemory=rh,wh.maxScroll=function(t,e){return sl(t,e?$a:Ya)},wh.getScrollFunc=function(t,e){return Ka(qa(t),e?$a:Ya)},wh.getById=function(t){return Wl[t]},wh.getAll=function(){return jl.filter((function(t){return"ScrollSmoother"!==t.vars.id}))},wh.isScrolling=function(){return!!Wo},wh.snapDirectional=Rl,wh.addEventListener=function(t,e){var i=Kl[t]||(Kl[t]=[]);~i.indexOf(e)||i.push(e)},wh.removeEventListener=function(t,e){var i=Kl[t],r=i&&i.indexOf(e);r>=0&&i.splice(r,1)},wh.batch=function(t,e){var i,r=[],n={},s=e.interval||.016,a=e.batchMax||1e9,o=function(t,e){var i=[],r=[],n=ro.delayedCall(s,(function(){e(i,r),i=[],r=[]})).pause();return function(t){i.length||n.restart(!0),i.push(t.trigger),r.push(t),a<=i.length&&n.progress(1)}};for(i in e)n[i]="on"===i.substr(0,2)&&ll(e[i])&&"onRefreshInit"!==i?o(0,e[i]):e[i];return ll(a)&&(a=a(),Ll(wh,"refresh",(function(){return a=e.batchMax()}))),uo(t).forEach((function(t){var e={};for(i in n)e[i]=n[i];e.trigger=t,r.push(wh.create(e))})),r};var Th,Ah=function(t,e,i,r){return e>r?t(r):e<0&&t(0),i>r?(r-e)/(i-e):i<0?e/(e-i):1},Mh=function t(e,i){!0===i?e.style.removeProperty("touch-action"):e.style.touchAction=!0===i?"auto":i?"pan-"+i+(io.isTouch?" pinch-zoom":""):"none",e===oo&&t(lo,i)},Ph={auto:1,scroll:1},Ch=function(t){var e,i=t.event,r=t.target,n=t.axis,s=(i.changedTouches?i.changedTouches[0]:i).target,a=s._gsap||ro.core.getCache(s),o=Ho();if(!a._isScrollT||o-a._isScrollT>2e3){for(;s&&s!==lo&&(s.scrollHeight<=s.clientHeight&&s.scrollWidth<=s.clientWidth||!Ph[(e=Pl(s)).overflowY]&&!Ph[e.overflowX]);)s=s.parentNode;a._isScroll=s&&s!==r&&!il(s)&&(Ph[(e=Pl(s)).overflowY]||Ph[e.overflowX]),a._isScrollT=o}(a._isScroll||"x"===n)&&(i.stopPropagation(),i._gsapAllow=!0)},kh=function(t,e,i,r){return io.create({target:t,capture:!0,debounce:!1,lockAxis:!0,type:e,onWheel:r=r&&Ch,onPress:r,onDrag:r,onScroll:r,onEnable:function(){return i&&Ll(ao,io.eventTypes[0],Dh,!1,!0)},onDisable:function(){return Fl(ao,io.eventTypes[0],Dh,!0)}})},Ih=/(input|label|select|textarea)/i,Dh=function(t){var e=Ih.test(t.target.tagName);(e||Th)&&(t._gsapAllow=!0,Th=e)};wh.sort=function(t){return jl.sort(t||function(t,e){return-1e6*(t.vars.refreshPriority||0)+t.start-(e.start+-1e6*(e.vars.refreshPriority||0))})},wh.observe=function(t){return new io(t)},wh.normalizeScroll=function(t){if(void 0===t)return Ao;if(!0===t&&Ao)return Ao.enable();if(!1===t)return Ao&&Ao.kill(),void(Ao=t);var e=t instanceof io?t:function(t){cl(t)||(t={}),t.preventDefault=t.isNormalizer=t.allowClicks=!0,t.type||(t.type="wheel,touch"),t.debounce=!!t.debounce,t.id=t.id||"normalizer";var e,i,r,n,s,a,o,l,h=t,c=h.normalizeScrollX,u=h.momentum,d=h.allowNestedScroll,p=h.onRelease,f=qa(t.target)||oo,m=ro.core.globals().ScrollSmoother,g=m&&m.get(),y=ko&&(t.content&&qa(t.content)||g&&!1!==t.content&&!g.smooth()&&g.content()),v=Ka(f,Ya),x=Ka(f,$a),_=1,b=(io.isTouch&&so.visualViewport?so.visualViewport.scale*so.visualViewport.width:so.outerWidth)/so.innerWidth,S=0,E=ll(u)?function(){return u(e)}:function(){return u||2.8},w=kh(f,t.type,!0,d),T=function(){return n=!1},A=Jo,M=Jo,P=function(){i=sl(f,Ya),M=po(ko?1:0,i),c&&(A=po(0,sl(f,$a))),r=nh},C=function(){y._gsap.y=Qo(parseFloat(y._gsap.y)+v.offset)+"px",y.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(y._gsap.y)+", 0, 1)",v.offset=v.cacheID=0},k=function(){P(),s.isActive()&&s.vars.scrollY>i&&(v()>i?s.progress(1)&&v(i):s.resetTo("scrollY",i))};return y&&ro.set(y,{y:"+=0"}),t.ignoreCheck=function(t){return ko&&"touchmove"===t.type&&function(){if(n){requestAnimationFrame(T);var t=Qo(e.deltaY/2),i=M(v.v-t);if(y&&i!==v.v+v.offset){v.offset=i-v.v;var r=Qo((parseFloat(y&&y._gsap.y)||0)-v.offset);y.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+r+", 0, 1)",y._gsap.y=r+"px",v.cacheID=La.cache,ch()}return!0}v.offset&&C(),n=!0}()||_>1.05&&"touchstart"!==t.type||e.isGesturing||t.touches&&t.touches.length>1},t.onPress=function(){n=!1;var t=_;_=Qo((so.visualViewport&&so.visualViewport.scale||1)/b),s.pause(),t!==_&&Mh(f,_>1.01||!c&&"x"),a=x(),o=v(),P(),r=nh},t.onRelease=t.onGestureStart=function(t,e){if(v.offset&&C(),e){La.cache++;var r,n,a=E();c&&(n=(r=x())+.05*a*-t.velocityX/.227,a*=Ah(x,r,n,sl(f,$a)),s.vars.scrollX=A(n)),n=(r=v())+.05*a*-t.velocityY/.227,a*=Ah(v,r,n,sl(f,Ya)),s.vars.scrollY=M(n),s.invalidate().duration(a).play(.01),(ko&&s.vars.scrollY>=i||r>=i-1)&&ro.to({},{onUpdate:k,duration:a})}else l.restart(!0);p&&p(t)},t.onWheel=function(){s._ts&&s.pause(),Ho()-S>1e3&&(r=0,S=Ho())},t.onChange=function(t,e,i,n,s){if(nh!==r&&P(),e&&c&&x(A(n[2]===e?a+(t.startX-t.x):x()+e-n[1])),i){v.offset&&C();var l=s[2]===i,h=l?o+t.startY-t.y:v()+i-s[1],u=M(h);l&&h!==u&&(o+=u-h),v(u)}(i||e)&&ch()},t.onEnable=function(){Mh(f,!c&&"x"),wh.addEventListener("refresh",k),Ll(so,"resize",k),v.smooth&&(v.target.style.scrollBehavior="auto",v.smooth=x.smooth=!1),w.enable()},t.onDisable=function(){Mh(f,!0),Fl(so,"resize",k),wh.removeEventListener("refresh",k),w.kill()},t.lockAxis=!1!==t.lockAxis,(e=new io(t)).iOS=ko,ko&&!v()&&v(1),ko&&ro.ticker.add(Jo),l=e._dc,s=ro.to(e,{ease:"power4",paused:!0,inherit:!1,scrollX:c?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:bh(v,v(),(function(){return s.pause()}))},onUpdate:ch,onComplete:l.vars.onComplete}),e}(t);return Ao&&Ao.target===e.target&&Ao.kill(),il(e.target)&&(Ao=e),e},wh.core={_getVelocityProp:Za,_inputObserver:kh,_scrollers:La,_proxies:Fa,bridge:{ss:function(){Wo||Ql("scrollStart"),Wo=Ho()},ref:function(){return go}}},el()&&ro.registerPlugin(wh),Un.registerPlugin(wh);var Rh=(t=>(t[t.WEBGL_LEGACY=0]="WEBGL_LEGACY",t[t.WEBGL=1]="WEBGL",t[t.WEBGL2=2]="WEBGL2",t))(Rh||{}),Oh=(t=>(t[t.UNKNOWN=0]="UNKNOWN",t[t.WEBGL=1]="WEBGL",t[t.CANVAS=2]="CANVAS",t))(Oh||{}),Lh=(t=>(t[t.COLOR=16384]="COLOR",t[t.DEPTH=256]="DEPTH",t[t.STENCIL=1024]="STENCIL",t))(Lh||{}),Fh=(t=>(t[t.NORMAL=0]="NORMAL",t[t.ADD=1]="ADD",t[t.MULTIPLY=2]="MULTIPLY",t[t.SCREEN=3]="SCREEN",t[t.OVERLAY=4]="OVERLAY",t[t.DARKEN=5]="DARKEN",t[t.LIGHTEN=6]="LIGHTEN",t[t.COLOR_DODGE=7]="COLOR_DODGE",t[t.COLOR_BURN=8]="COLOR_BURN",t[t.HARD_LIGHT=9]="HARD_LIGHT",t[t.SOFT_LIGHT=10]="SOFT_LIGHT",t[t.DIFFERENCE=11]="DIFFERENCE",t[t.EXCLUSION=12]="EXCLUSION",t[t.HUE=13]="HUE",t[t.SATURATION=14]="SATURATION",t[t.COLOR=15]="COLOR",t[t.LUMINOSITY=16]="LUMINOSITY",t[t.NORMAL_NPM=17]="NORMAL_NPM",t[t.ADD_NPM=18]="ADD_NPM",t[t.SCREEN_NPM=19]="SCREEN_NPM",t[t.NONE=20]="NONE",t[t.SRC_OVER=0]="SRC_OVER",t[t.SRC_IN=21]="SRC_IN",t[t.SRC_OUT=22]="SRC_OUT",t[t.SRC_ATOP=23]="SRC_ATOP",t[t.DST_OVER=24]="DST_OVER",t[t.DST_IN=25]="DST_IN",t[t.DST_OUT=26]="DST_OUT",t[t.DST_ATOP=27]="DST_ATOP",t[t.ERASE=26]="ERASE",t[t.SUBTRACT=28]="SUBTRACT",t[t.XOR=29]="XOR",t))(Fh||{}),Bh=(t=>(t[t.POINTS=0]="POINTS",t[t.LINES=1]="LINES",t[t.LINE_LOOP=2]="LINE_LOOP",t[t.LINE_STRIP=3]="LINE_STRIP",t[t.TRIANGLES=4]="TRIANGLES",t[t.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",t[t.TRIANGLE_FAN=6]="TRIANGLE_FAN",t))(Bh||{}),Nh=(t=>(t[t.RGBA=6408]="RGBA",t[t.RGB=6407]="RGB",t[t.RG=33319]="RG",t[t.RED=6403]="RED",t[t.RGBA_INTEGER=36249]="RGBA_INTEGER",t[t.RGB_INTEGER=36248]="RGB_INTEGER",t[t.RG_INTEGER=33320]="RG_INTEGER",t[t.RED_INTEGER=36244]="RED_INTEGER",t[t.ALPHA=6406]="ALPHA",t[t.LUMINANCE=6409]="LUMINANCE",t[t.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",t[t.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",t[t.DEPTH_STENCIL=34041]="DEPTH_STENCIL",t))(Nh||{}),Vh=(t=>(t[t.TEXTURE_2D=3553]="TEXTURE_2D",t[t.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",t[t.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",t[t.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",t[t.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",t[t.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",t[t.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",t))(Vh||{}),zh=(t=>(t[t.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",t[t.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",t[t.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",t[t.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",t[t.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",t[t.UNSIGNED_INT=5125]="UNSIGNED_INT",t[t.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",t[t.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",t[t.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",t[t.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",t[t.BYTE=5120]="BYTE",t[t.SHORT=5122]="SHORT",t[t.INT=5124]="INT",t[t.FLOAT=5126]="FLOAT",t[t.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",t[t.HALF_FLOAT=36193]="HALF_FLOAT",t))(zh||{}),Gh=(t=>(t[t.FLOAT=0]="FLOAT",t[t.INT=1]="INT",t[t.UINT=2]="UINT",t))(Gh||{}),Uh=(t=>(t[t.NEAREST=0]="NEAREST",t[t.LINEAR=1]="LINEAR",t))(Uh||{}),Hh=(t=>(t[t.CLAMP=33071]="CLAMP",t[t.REPEAT=10497]="REPEAT",t[t.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",t))(Hh||{}),jh=(t=>(t[t.OFF=0]="OFF",t[t.POW2=1]="POW2",t[t.ON=2]="ON",t[t.ON_MANUAL=3]="ON_MANUAL",t))(jh||{}),Wh=(t=>(t[t.NPM=0]="NPM",t[t.UNPACK=1]="UNPACK",t[t.PMA=2]="PMA",t[t.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",t[t.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",t[t.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA",t))(Wh||{}),Xh=(t=>(t[t.NO=0]="NO",t[t.YES=1]="YES",t[t.AUTO=2]="AUTO",t[t.BLEND=0]="BLEND",t[t.CLEAR=1]="CLEAR",t[t.BLIT=2]="BLIT",t))(Xh||{}),$h=(t=>(t[t.AUTO=0]="AUTO",t[t.MANUAL=1]="MANUAL",t))($h||{}),Yh=(t=>(t.LOW="lowp",t.MEDIUM="mediump",t.HIGH="highp",t))(Yh||{}),qh=(t=>(t[t.NONE=0]="NONE",t[t.SCISSOR=1]="SCISSOR",t[t.STENCIL=2]="STENCIL",t[t.SPRITE=3]="SPRITE",t[t.COLOR=4]="COLOR",t))(qh||{}),Kh=(t=>(t[t.NONE=0]="NONE",t[t.LOW=2]="LOW",t[t.MEDIUM=4]="MEDIUM",t[t.HIGH=8]="HIGH",t))(Kh||{}),Zh=(t=>(t[t.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",t[t.ARRAY_BUFFER=34962]="ARRAY_BUFFER",t[t.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",t))(Zh||{});const Jh={ADAPTER:{createCanvas:(t,e)=>{const i=document.createElement("canvas");return i.width=t,i.height=e,i},getCanvasRenderingContext2D:()=>CanvasRenderingContext2D,getWebGLRenderingContext:()=>WebGLRenderingContext,getNavigator:()=>navigator,getBaseUrl:()=>document.baseURI??window.location.href,getFontFaceSet:()=>document.fonts,fetch:(t,e)=>fetch(t,e),parseXML:t=>(new DOMParser).parseFromString(t,"text/xml")},RESOLUTION:1,CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1};var Qh=/iPhone/i,tc=/iPod/i,ec=/iPad/i,ic=/\biOS-universal(?:.+)Mac\b/i,rc=/\bAndroid(?:.+)Mobile\b/i,nc=/Android/i,sc=/(?:SD4930UR|\bSilk(?:.
2+)Mobile\b)/i,ac=/Silk/i,oc=/Windows Phone/i,lc=/\bWindows(?:.+)ARM\b/i,hc=/BlackBerry/i,cc=/BB10/i,uc=/Opera Mini/i,dc=/\b(CriOS|Chrome)(?:.+)Mobile/i,pc=/Mobile(?:.+)Firefox\b/i,fc=function(t){return void 0!==t&&"MacIntel"===t.platform&&"number"==typeof t.maxTouchPoints&&t.maxTouchPoints>1&&"undefined"==typeof MSStream};function mc(t){var e={userAgent:"",platform:"",maxTouchPoints:0};t||"undefined"==typeof navigator?"string"==typeof t?e.userAgent=t:t&&t.userAgent&&(e={userAgent:t.userAgent,platform:t.platform,maxTouchPoints:t.maxTouchPoints||0}):e={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0};var i=e.userAgent,r=i.split("[FBAN");void 0!==r[1]&&(i=r[0]),void 0!==(r=i.split("Twitter"))[1]&&(i=r[0]);var n=function(t){return function(e){return e.test(t)}}(i),s={apple:{phone:n(Qh)&&!n(oc),ipod:n(tc),tablet:!n(Qh)&&(n(ec)||fc(e))&&!n(oc),universal:n(ic),device:(n(Qh)||n(tc)||n(ec)||n(ic)||fc(e))&&!n(oc)},amazon:{phone:n(sc),tablet:!n(sc)&&n(ac),device:n(sc)||n(ac)},android:{phone:!n(oc)&&n(sc)||!n(oc)&&n(rc),tablet:!n(oc)&&!n(sc)&&!n(rc)&&(n(ac)||n(nc)),device:!n(oc)&&(n(sc)||n(ac)||n(rc)||n(nc))||n(/\bokhttp\b/i)},windows:{phone:n(oc),tablet:n(lc),device:n(oc)||n(lc)},other:{blackberry:n(hc),blackberry10:n(cc),opera:n(uc),firefox:n(pc),chrome:n(dc),device:n(hc)||n(cc)||n(uc)||n(pc)||n(dc)},any:!1,phone:!1,tablet:!1};return s.any=s.apple.device||s.android.device||s.windows.device||s.other.device,s.phone=s.apple.phone||s.android.phone||s.windows.phone,s.tablet=s.apple.tablet||s.android.tablet||s.windows.tablet,s}const gc=(mc.default??mc)(globalThis.navigator);Jh.RETINA_PREFIX=/@([0-9\.]+)x/,Jh.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;var yc=__webpack_require__(228),vc=__webpack_require__(570);__webpack_require__(835);const xc={};function _c(t,e,i=3){if(xc[e])return;let r=(new Error).stack;typeof r>"u"?console.warn("PixiJS Deprecation Warning: ",`${e}\nDeprecated since v${t}`):(r=r.split("\n").splice(i).join("\n"),console.groupCollapsed?(console.groupCollapsed("%cPixiJS Deprecation Warning: %c%s","color:#614108;background:#fffbe6","font-weight:normal;color:#614108;background:#fffbe6",`${e}\nDeprecated since v${t}`),console.warn(r),console.groupEnd()):(console.warn("PixiJS Deprecation Warning: ",`${e}\nDeprecated since v${t}`),console.warn(r))),xc[e]=!0}function bc(t){if("string"!=typeof t)throw new TypeError(`Path must be a string. Received ${JSON.stringify(t)}`)}function Sc(t){return t.split("?")[0].split("#")[0]}const Ec={toPosix(t){return t.replace(new RegExp("\\".replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g"),"/")},isUrl(t){return/^https?:/.test(this.toPosix(t))},isDataUrl(t){return/^data:([a-z]+\/[a-z0-9-+.]+(;[a-z0-9-.!#$%*+.{}|~`]+=[a-z0-9-.!#$%*+.{}()_|~`]+)*)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s<>]*?)$/i.test(t)},isBlobUrl(t){return t.startsWith("blob:")},hasProtocol(t){return/^[^/:]+:/.test(this.toPosix(t))},getProtocol(t){bc(t),t=this.toPosix(t);const e=/^file:\/\/\//.exec(t);if(e)return e[0];const i=/^[^/:]+:\/{0,2}/.exec(t);return i?i[0]:""},toAbsolute(t,e,i){if(bc(t),this.isDataUrl(t)||this.isBlobUrl(t))return t;const r=Sc(this.toPosix(e??Jh.ADAPTER.getBaseUrl())),n=Sc(this.toPosix(i??this.rootname(r)));return(t=this.toPosix(t)).startsWith("/")?Ec.join(n,t.slice(1)):this.isAbsolute(t)?t:this.join(r,t)},normalize(t){if(bc(t),0===t.length)return".";if(this.isDataUrl(t)||this.isBlobUrl(t))return t;let e="";const i=(t=this.toPosix(t)).startsWith("/");this.hasProtocol(t)&&(e=this.rootname(t),t=t.slice(e.length));const r=t.endsWith("/");return t=function(t,e){let i="",r=0,n=-1,s=0,a=-1;for(let e=0;e<=t.length;++e){if(e<t.length)a=t.charCodeAt(e);else{if(47===a)break;a=47}if(47===a){if(n!==e-1&&1!==s)if(n!==e-1&&2===s){if(i.length<2||2!==r||46!==i.charCodeAt(i.length-1)||46!==i.charCodeAt(i.length-2))if(i.length>2){const t=i.lastIndexOf("/");if(t!==i.length-1){-1===t?(i="",r=0):(i=i.slice(0,t),r=i.length-1-i.lastIndexOf("/")),n=e,s=0;continue}}else if(2===i.length||1===i.length){i="",r=0,n=e,s=0;continue}}else i.length>0?i+=`/${t.slice(n+1,e)}`:i=t.slice(n+1,e),r=e-n-1;n=e,s=0}else 46===a&&-1!==s?++s:s=-1}return i}(t),t.length>0&&r&&(t+="/"),i?`/${t}`:e+t},isAbsolute(t){return bc(t),t=this.toPosix(t),!!this.hasProtocol(t)||t.startsWith("/")},join(...t){if(0===t.length)return".";let e;for(let i=0;i<t.length;++i){const r=t[i];if(bc(r),r.length>0)if(void 0===e)e=r;else{const n=t[i-1]??"";this.joinExtensions.includes(this.extname(n).toLowerCase())?e+=`/../${r}`:e+=`/${r}`}}return void 0===e?".":this.normalize(e)},dirname(t){if(bc(t),0===t.length)return".";
2let e=(t=this.toPosix(t)).charCodeAt(0);const i=47===e;let r=-1,n=!0;const s=this.getProtocol(t),a=t;for(let i=(t=t.slice(s.length)).length-1;i>=1;--i)if(e=t.charCodeAt(i),47===e){if(!n){r=i;break}}else n=!1;return-1===r?i?"/":this.isUrl(a)?s+t:s:i&&1===r?"//":s+t.slice(0,r)},rootname(t){bc(t);let e="";if(e=(t=this.toPosix(t)).startsWith("/")?"/":this.getProtocol(t),this.isUrl(t)){const i=t.indexOf("/",e.length);e=-1!==i?t.slice(0,i):t,e.endsWith("/")||(e+="/")}return e},basename(t,e){bc(t),e&&bc(e),t=Sc(this.toPosix(t));let i,r=0,n=-1,s=!0;if(void 0!==e&&e.length>0&&e.length<=t.length){if(e.length===t.length&&e===t)return"";let a=e.length-1,o=-1;for(i=t.length-1;i>=0;--i){const l=t.charCodeAt(i);if(47===l){if(!s){r=i+1;break}}else-1===o&&(s=!1,o=i+1),a>=0&&(l===e.charCodeAt(a)?-1==--a&&(n=i):(a=-1,n=o))}return r===n?n=o:-1===n&&(n=t.length),t.slice(r,n)}for(i=t.length-1;i>=0;--i)if(47===t.charCodeAt(i)){if(!s){r=i+1;break}}else-1===n&&(s=!1,n=i+1);return-1===n?"":t.slice(r,n)},extname(t){bc(t);let e=-1,i=0,r=-1,n=!0,s=0;for(let a=(t=Sc(this.toPosix(t))).length-1;a>=0;--a){const o=t.charCodeAt(a);if(47!==o)-1===r&&(n=!1,r=a+1),46===o?-1===e?e=a:1!==s&&(s=1):-1!==e&&(s=-1);else if(!n){i=a+1;break}}return-1===e||-1===r||0===s||1===s&&e===r-1&&e===i+1?"":t.slice(e,r)},parse(t){bc(t);const e={root:"",dir:"",base:"",ext:"",name:""};if(0===t.length)return e;let i=(t=Sc(this.toPosix(t))).charCodeAt(0);const r=this.isAbsolute(t);let n;e.root=this.rootname(t),n=r||this.hasProtocol(t)?1:0;let s=-1,a=0,o=-1,l=!0,h=t.length-1,c=0;for(;h>=n;--h)if(i=t.charCodeAt(h),47!==i)-1===o&&(l=!1,o=h+1),46===i?-1===s?s=h:1!==c&&(c=1):-1!==s&&(c=-1);else if(!l){a=h+1;break}return-1===s||-1===o||0===c||1===c&&s===o-1&&s===a+1?-1!==o&&(e.base=e.name=0===a&&r?t.slice(1,o):t.slice(a,o)):(0===a&&r?(e.name=t.slice(1,s),e.base=t.slice(1,o)):(e.name=t.slice(a,s),e.base=t.slice(a,o)),e.ext=t.slice(s,o)),e.dir=this.dirname(t),e},sep:"/",delimiter:":",joinExtensions:[".html"]};let wc,Tc;async function Ac(){return wc??(wc=(async()=>{const t=document.createElement("canvas").getContext("webgl");if(!t)return Wh.UNPACK;const e=await new Promise((t=>{const e=document.createElement("video");e.onloadeddata=()=>t(e),e.onerror=()=>t(null),e.autoplay=!1,e.crossOrigin="anonymous",e.preload="auto",e.src="data:video/webm;base64,GkXfo59ChoEBQveBAULygQRC84EIQoKEd2VibUKHgQJChYECGFOAZwEAAAAAAAHTEU2bdLpNu4tTq4QVSalmU6yBoU27i1OrhBZUrmtTrIHGTbuMU6uEElTDZ1OsggEXTbuMU6uEHFO7a1OsggG97AEAAAAAAABZAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAVSalmoCrXsYMPQkBNgIRMYXZmV0GETGF2ZkSJiEBEAAAAAAAAFlSua8yuAQAAAAAAAEPXgQFzxYgAAAAAAAAAAZyBACK1nIN1bmSIgQCGhVZfVlA5g4EBI+ODhAJiWgDglLCBArqBApqBAlPAgQFVsIRVuYEBElTDZ9Vzc9JjwItjxYgAAAAAAAAAAWfInEWjh0VOQ09ERVJEh49MYXZjIGxpYnZweC12cDlnyKJFo4hEVVJBVElPTkSHlDAwOjAwOjAwLjA0MDAwMDAwMAAAH0O2dcfngQCgwqGggQAAAIJJg0IAABAAFgA4JBwYSgAAICAAEb///4r+AAB1oZ2mm+6BAaWWgkmDQgAAEAAWADgkHBhKAAAgIABIQBxTu2uRu4+zgQC3iveBAfGCAXHwgQM=",e.load()}));if(!e)return Wh.UNPACK;const i=t.createTexture();t.bindTexture(t.TEXTURE_2D,i);const r=t.createFramebuffer();t.bindFramebuffer(t.FRAMEBUFFER,r),t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,i,0),t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),t.pixelStorei(t.UNPACK_COLORSPACE_CONVERSION_WEBGL,t.NONE),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,e);const n=new Uint8Array(4);return t.readPixels(0,0,1,1,t.RGBA,t.UNSIGNED_BYTE,n),t.deleteFramebuffer(r),t.deleteTexture(i),t.getExtension("WEBGL_lose_context")?.loseContext(),n[0]<=n[3]?Wh.PMA:Wh.UNPACK})()),wc}var Mc={grad:.9,turn:360,rad:360/(2*Math.PI)},Pc=function(t){return"string"==typeof t?t.length>0:"number"==typeof t},Cc=function(t,e,i){return void 0===e&&(e=0),void 0===i&&(i=Math.pow(10,e)),Math.round(i*t)/i+0},kc=function(t,e,i){return void 0===e&&(e=0),void 0===i&&(i=1),t>i?i:t>e?t:e},Ic=function(t){return(t=isFinite(t)?t%360:0)>0?t:t+360},Dc=function(t){return{r:kc(t.r,0,255),g:kc(t.g,0,255),b:kc(t.b,0,255),a:kc(t.a)}},Rc=function(t){return{r:Cc(t.r),g:Cc(t.g),b:Cc(t.b),a:Cc(t.a,3)}},Oc=/^#([0-9a-f]{3,8})$/i,Lc=function(t){var e=t.toString(16);return e.length<2?"0"+e:e},Fc=function(t){var e=t.r,i=t.g,r=t.b,n=t.a,s=Math.max(e,i,r),a=s-Math.min(e,i,r),o=a?s===e?(i-r)/a:s===i?2+(r-e)/a:4+(e-i)/a:0;return{h:60*(o<0?o+6:o),s:s?a/s*100:0,v:s/255*100,a:n}},Bc=function(t){var e=t.h,i=t.s,r=t.v,n=t.a;e=e/360*6,i/=100,r/=100;var s=Math.floor(e),a=r*(1-i),o=r*(1-(e-s)*i),l=r*(1-(1-e+s)*i),h=s%6;return{r:255*[r,o,a,a,l,r][h],g:255*[l,r,r,o,a,a][h],b:255*[a,a,l,r,r,o][h],a:n}},Nc=function(t){return{h:Ic(t.h),s:kc(t.s,0,100),l:kc(t.l,0,100),a:kc(t.a)}},Vc=function(t){return{h:Cc(t.h),s:Cc(t.s),l:Cc(t.l),a:Cc(t.a,3)}},zc=function(t){return Bc((i=(e=t).s,{h:e.h,s:(i*=((r=e.l)<50?r:100-r)/100)>0?2*i/(r+i)*100:0,v:r+i,a:e.a}));var e,i,r},Gc=function(t){return{h:(e=Fc(t)).h,s:(n=(200-(i=e.s))*(r=e.v)/100)>0&&n<200?i*r/100/(n<=100?n:200-n)*100:0,l:n/2,a:e.a};var e,i,r,n},Uc=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Hc=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,jc=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\
vendor: 6,859 bytes, line 2
2s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Wc=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,Xc={string:[[function(t){var e=Oc.exec(t);return e?(t=e[1]).length<=4?{r:parseInt(t[0]+t[0],16),g:parseInt(t[1]+t[1],16),b:parseInt(t[2]+t[2],16),a:4===t.length?Cc(parseInt(t[3]+t[3],16)/255,2):1}:6===t.length||8===t.length?{r:parseInt(t.substr(0,2),16),g:parseInt(t.substr(2,2),16),b:parseInt(t.substr(4,2),16),a:8===t.length?Cc(parseInt(t.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(t){var e=jc.exec(t)||Wc.exec(t);return e?e[2]!==e[4]||e[4]!==e[6]?null:Dc({r:Number(e[1])/(e[2]?100/255:1),g:Number(e[3])/(e[4]?100/255:1),b:Number(e[5])/(e[6]?100/255:1),a:void 0===e[7]?1:Number(e[7])/(e[8]?100:1)}):null},"rgb"],[function(t){var e=Uc.exec(t)||Hc.exec(t);if(!e)return null;var i,r,n=Nc({h:(i=e[1],r=e[2],void 0===r&&(r="deg"),Number(i)*(Mc[r]||1)),s:Number(e[3]),l:Number(e[4]),a:void 0===e[5]?1:Number(e[5])/(e[6]?100:1)});return zc(n)},"hsl"]],object:[[function(t){var e=t.r,i=t.g,r=t.b,n=t.a,s=void 0===n?1:n;return Pc(e)&&Pc(i)&&Pc(r)?Dc({r:Number(e),g:Number(i),b:Number(r),a:Number(s)}):null},"rgb"],[function(t){var e=t.h,i=t.s,r=t.l,n=t.a,s=void 0===n?1:n;if(!Pc(e)||!Pc(i)||!Pc(r))return null;var a=Nc({h:Number(e),s:Number(i),l:Number(r),a:Number(s)});return zc(a)},"hsl"],[function(t){var e=t.h,i=t.s,r=t.v,n=t.a,s=void 0===n?1:n;if(!Pc(e)||!Pc(i)||!Pc(r))return null;var a=function(t){return{h:Ic(t.h),s:kc(t.s,0,100),v:kc(t.v,0,100),a:kc(t.a)}}({h:Number(e),s:Number(i),v:Number(r),a:Number(s)});return Bc(a)},"hsv"]]},$c=function(t,e){for(var i=0;i<e.length;i++){var r=e[i][0](t);if(r)return[r,e[i][1]]}return[null,void 0]},Yc=function(t,e){var i=Gc(t);return{h:i.h,s:kc(i.s+100*e,0,100),l:i.l,a:i.a}},qc=function(t){return(299*t.r+587*t.g+114*t.b)/1e3/255},Kc=function(t,e){var i=Gc(t);return{h:i.h,s:i.s,l:kc(i.l+100*e,0,100),a:i.a}},Zc=function(){function t(t){this.parsed=function(t){return"string"==typeof t?$c(t.trim(),Xc.string):"object"==typeof t&&null!==t?$c(t,Xc.object):[null,void 0]}(t)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return t.prototype.isValid=function(){return null!==this.parsed},t.prototype.brightness=function(){return Cc(qc(this.rgba),2)},t.prototype.isDark=function(){return qc(this.rgba)<.5},t.prototype.isLight=function(){return qc(this.rgba)>=.5},t.prototype.toHex=function(){return e=(t=Rc(this.rgba)).r,i=t.g,r=t.b,s=(n=t.a)<1?Lc(Cc(255*n)):"","#"+Lc(e)+Lc(i)+Lc(r)+s;var t,e,i,r,n,s},t.prototype.toRgb=function(){return Rc(this.rgba)},t.prototype.toRgbString=function(){return e=(t=Rc(this.rgba)).r,i=t.g,r=t.b,(n=t.a)<1?"rgba("+e+", "+i+", "+r+", "+n+")":"rgb("+e+", "+i+", "+r+")";var t,e,i,r,n},t.prototype.toHsl=function(){return Vc(Gc(this.rgba))},t.prototype.toHslString=function(){return e=(t=Vc(Gc(this.rgba))).h,i=t.s,r=t.l,(n=t.a)<1?"hsla("+e+", "+i+"%, "+r+"%, "+n+")":"hsl("+e+", "+i+"%, "+r+"%)";var t,e,i,r,n},t.prototype.toHsv=function(){return t=Fc(this.rgba),{h:Cc(t.h),s:Cc(t.s),v:Cc(t.v),a:Cc(t.a,3)};var t},t.prototype.invert=function(){return Jc({r:255-(t=this.rgba).r,g:255-t.g,b:255-t.b,a:t.a});var t},t.prototype.saturate=function(t){return void 0===t&&(t=.1),Jc(Yc(this.rgba,t))},t.prototype.desaturate=function(t){return void 0===t&&(t=.1),Jc(Yc(this.rgba,-t))},t.prototype.grayscale=function(){return Jc(Yc(this.rgba,-1))},t.prototype.lighten=function(t){return void 0===t&&(t=.1),Jc(Kc(this.rgba,t))},t.prototype.darken=function(t){return void 0===t&&(t=.1),Jc(Kc(this.rgba,-t))},t.prototype.rotate=function(t){return void 0===t&&(t=15),this.hue(this.hue()+t)},t.prototype.alpha=function(t){return"number"==typeof t?Jc({r:(e=this.rgba).r,g:e.g,b:e.b,a:t}):Cc(this.rgba.a,3);var e},t.prototype.hue=function(t){var e=Gc(this.rgba);return"number"==typeof t?Jc({h:t,s:e.s,l:e.l,a:e.a}):Cc(e.h)},t.prototype.isEqual=function(t){return this.toHex()===Jc(t).toHex()},t}(),Jc=function(t){return t instanceof Zc?t:new Zc(t)},Qc=[];!function(t){t.forEach((function(t){Qc.indexOf(t)<0&&(t(Zc,Xc),Qc.push(t))}))}([function(t,e){var i={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",s
2andybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},r={};for(var n in i)r[i[n]]=n;var s={};t.prototype.toName=function(e){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var n,a,o=r[this.toHex()];if(o)return o;if(null==e?void 0:e.closest){var l=this.toRgb(),h=1/0,c="black";if(!s.length)for(var u in i)s[u]=new t(i[u]).toRgb();for(var d in i){var p=(n=l,a=s[d],Math.pow(n.r-a.r,2)+Math.pow(n.g-a.g,2)+Math.pow(n.b-a.b,2));p<h&&(h=p,c=d)}return c}},e.string.push([function(e){var r=e.toLowerCase(),n="transparent"===r?"#0000":i[r];return n?new t(n).toRgb():null},"name"])}]);const tu=class t{constructor(t=16777215){this._value=null,this._components=new Float32Array(4),this._components.fill(1),this._int=16777215,this.value=t}get red(){return this._components[0]}get green(){return this._components[1]}get blue(){return this._components[2]}get alpha(){return this._components[3]}setValue(t){return this.value=t,this}set value(e){if(e instanceof t)this._value=this.cloneSource(e._value),this._int=e._int,this._components.set(e._components);else{if(null===e)throw new Error("Cannot set PIXI.Color#value to null");(null===this._value||!this.isSourceEqual(this._value,e))&&(this.normalize(e),this._value=this.cloneSource(e))}}get value(){return this._value}cloneSource(t){return"string"==typeof t||"number"==typeof t||t instanceof Number||null===t?t:Array.isArray(t)||ArrayBuffer.isView(t)?t.slice(0):"object"==typeof t&&null!==t?{...t}:t}isSourceEqual(t,e){const i=typeof t;if(i!==typeof e)return!1;if("number"===i||"string"===i||t instanceof Number)return t===e;if(Array.isArray(t)&&Array.isArray(e)||ArrayBuffer.isView(t)&&ArrayBuffer.isView(e))return t.length===e.length&&t.every(((t,i)=>t===e[i]));if(null!==t&&null!==e){const i=Object.keys(t),r=Object.keys(e);return i.length===r.length&&i.every((i=>t[i]===e[i]))}return t===e}toRgba(){const[t,e,i,r]=this._components;return{r:t,g:e,b:i,a:r}}toRgb(){const[t,e,i]=this._components;return{r:t,g:e,b:i}}toRgbaString(){const[t,e,i]=this.toUint8RgbArray();return`rgba(${t},${e},${i},${this.alpha})`}toUint8RgbArray(t){const[e,i,r]=this._components;return(t=t??[])[0]=Math.round(255*e),t[1]=Math.round(255*i),t[2]=Math.round(255*r),t}toRgbArray(t){t=t??[];const[e,i,r]=this._components;return t[0]=e,t[1]=i,t[2]=r,t}toNumber(){return this._int}toLittleEndianNumber(){const t=this._int;return(t>>16)+(65280&t)+((255&t)<<16)}multiply(e){const[i,r,n,s]=t.temp.setValue(e)._components;return this._components[0]*=i,this._components[1]*=r,this._components[2]*=n,this._components[3]*=s,this.refreshInt(),this._value=null,this}premultiply(t,e=!0){return e&&(this._components[0]*=t,this._components[1]*=t,this._components[2]*=t),this._components[3]=t,this.refreshInt(),this._value=null,this}toPremultiplied(t,e=!0){if(1===t)return(255<<24)+this._int;if(0===t)return e?0:this._int;let i=this._int>>16&255,r=this._int>>8&255,n=255&this._int;return e&&(i=i*t+.5|0,r=r*t+.5|0,n=n*t+.5|0),(255*t<<24)+(i<<16)+(r<<8)+n}toHex(){const t=this._int.toString(16);return`#${"000000".substring(0,6-t.length)+t}`}toHexa(){const t=Math.round(255*this._components[3]).toString(16);return this.toHex()+"00".substring(0,2-t.length)+t}setAlpha(t){return this._components[3]=this._clamp(t),this}round(t){const[e,i,r]=this._components;return this._components[0]=Math.round(e*t)/t,this._components[1]=Math.round(i*t)/t,this._components[2]=Math.round(r*t)/t,this.refreshInt(),this._value=null,this}toArray(t){t=t??[];const[e,i,r,n]=this._components;return t[0]=e,t[1]=i,t[2]=r,t[3]=n,t}normalize(e){let i,r,n,s;if(("number"==typeof e||e instanceof Number)&&e>=0&&e<=16777215)i=(e>>16&255)/255,r=(e>>8&255)/255,n=(255&e)/255,s=1;else if((Array.isArray(e)||e instanceof Float32Array)&&e.length>=3&&e.length<=4)e=this._clamp(e),[i,r,n,s=1]=e;else if((e instanceof Uint8Array||e instanceof Uint8ClampedArray)&&e.length>=3&&e.length<=4)e=this._clamp(e,0,255),[i,r,n,s=255]=e,i/=255,r/=255,n/=255,s/=255;else if("string"==typeof e||"object"==typeof e){if("string"==typeof e){const i=t.HEX_PATTERN.exec(e);i&&(e=`#${i[2]}`)}const a=Jc(e);a.isValid()&&(({r:i,g:r,b:n,a:s}=a.rgba),i/=255,r/=255,n/=255)}if(void 0===i)throw new Error(`Unable to convert color ${e}`);this._components[0]=i,this._components[1]=r,this._components[2]=n,this._components[3]=s,this.refreshInt()}refreshInt(){this._clamp(this._components);const[t,e,i]=this._components;this._int=(255*t<<16)+(255*e<<8)+(255*i|0)}_clamp(t,e=0,i=1){return"number"==typeof t?Math.min(Math.max(t,e),i):(t.forEach(((r,n)=>{t[n]=Math.min(Math.max(r,e),i)})),t)}};tu.shared=new tu,tu.temp=new tu,tu.HEX_PATTERN=/^(#|0x)?(([a-f0-9]{3}){1,2}([a-f0-9]{2})?)$/i;let eu=tu;const iu=function(){const t=[],e=[];for(let i=0;i<32;i++)t[i]=i,e[i]=i;t[Fh.NORMAL_NPM]=Fh.NORMAL,t[Fh.ADD_NPM]=Fh.ADD,t[Fh.SCREEN_NPM]=Fh.SCREEN,e[Fh.NORMAL]=Fh.NORMAL_NPM,e[Fh.ADD]=Fh.ADD_NPM,e[Fh.SCREEN]=Fh.SCREEN_NPM;const i=[];return i.push(e),i.push(t),i}();function ru(t,e){return iu[e?1:0][t]}function nu(t){if(4===t.BYTES_PER_ELEMENT)return t instanceof Float32Array?"Float32Array":t instanceof Uint32Array?"Uint32Array":"Int32Array";if(2===t.BYTES_PER_ELEMENT){if(t instanceof Uint16Array)return"Uint16Array"}else if(1===t.BYTES_PER_ELEMENT&&t instanceof Uint8Array)return"Uint8Array";return null}function su(t){return t+=0===t?1:0,--t,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,1+(t|=t>>>16)}function au(t){return!(t&t-1||!t)}function ou(t){let e=(t>65535?1:0)<<4,i=((t>>>=e)>255?1:0)<<3;return e|=i,i=((t>>>=i)>15?1:0)<<2,e|=i,i=((t>>>=i)>3?1:0)<<1,e|=i,e|(t>>>=i)>>1}function lu(t,e,i){const r=t.length;let n;if(e>=r||0===i)return;const s=r-(i=e+i>r?r-e:i);for(n=e;n<s;++n)t[n]=t[n+i];t.length=s}function hu(t){return 0===t?0:t<0?-1:1}Float32Array,Uint32Array,Int32Array,Uint8Array;let cu=0;function uu(){return++cu}const du=class{constructor(t,e,i,r){this.left=t,this.top=e,this.right=i,this.bottom=r}get width(){return this.right-this.left}get height(){return this.bottom-this.top}isEmpty(){return this.left===this.right||this.top===this.bottom}};
2du.EMPTY=new du(0,0,0,0);let pu=du;const fu={},mu=Object.create(null),gu=Object.create(null);class yu{constructor(t,e,i){this._canvas=Jh.ADAPTER.createCanvas(),this._context=this._canvas.getContext("2d"),this.resolution=i||Jh.RESOLUTION,this.resize(t,e)}clear(){this._checkDestroyed(),this._context.setTransform(1,0,0,1,0,0),this._context.clearRect(0,0,this._canvas.width,this._canvas.height)}resize(t,e){this._checkDestroyed(),this._canvas.width=Math.round(t*this.resolution),this._canvas.height=Math.round(e*this.resolution)}destroy(){this._context=null,this._canvas=null}get width(){return this._checkDestroyed(),this._canvas.width}set width(t){this._checkDestroyed(),this._canvas.width=Math.round(t)}get height(){return this._checkDestroyed(),this._canvas.height}set height(t){this._checkDestroyed(),this._canvas.height=Math.round(t)}get canvas(){return this._checkDestroyed(),this._canvas}get context(){return this._checkDestroyed(),this._context}_checkDestroyed(){if(null===this._canvas)throw new TypeError("The CanvasRenderTarget has already been destroyed")}}function vu(t,e,i){for(let r=0,n=4*i*e;r<e;++r,n+=4)if(0!==t[n+3])return!1;return!0}function xu(t,e,i,r,n){const s=4*e;for(let e=r,a=r*s+4*i;e<=n;++e,a+=s)if(0!==t[a+3])return!1;return!0}function _u(t,e=1){const i=Jh.RETINA_PREFIX?.exec(t);return i?parseFloat(i[1]):e}var bu=(t=>(t.Renderer="renderer",t.Application="application",t.RendererSystem="renderer-webgl-system",t.RendererPlugin="renderer-webgl-plugin",t.CanvasRendererSystem="renderer-canvas-system",t.CanvasRendererPlugin="renderer-canvas-plugin",t.Asset="asset",t.LoadParser="load-parser",t.ResolveParser="resolve-parser",t.CacheParser="cache-parser",t.DetectionParser="detection-parser",t))(bu||{});const Su=t=>{if("function"==typeof t||"object"==typeof t&&t.extension){if(!t.extension)throw new Error("Extension class must have an extension object");t={..."object"!=typeof t.extension?{type:t.extension}:t.extension,ref:t}}if("object"!=typeof t)throw new Error("Invalid extension type");return"string"==typeof(t={...t}).type&&(t.type=[t.type]),t},Eu=(t,e)=>Su(t).priority??e,wu={_addHandlers:{},_removeHandlers:{},_queue:{},remove(...t){return t.map(Su).forEach((t=>{t.type.forEach((e=>this._removeHandlers[e]?.(t)))})),this},add(...t){return t.map(Su).forEach((t=>{t.type.forEach((e=>{const i=this._addHandlers,r=this._queue;i[e]?i[e]?.(t):(r[e]=r[e]||[],r[e]?.push(t))}))})),this},handle(t,e,i){const r=this._addHandlers,n=this._removeHandlers;if(r[t]||n[t])throw new Error(`Extension type ${t} already has a handler`);r[t]=e,n[t]=i;const s=this._queue;return s[t]&&(s[t]?.forEach((t=>e(t))),delete s[t]),this},handleByMap(t,e){return this.handle(t,(t=>{t.name&&(e[t.name]=t.ref)}),(t=>{t.name&&delete e[t.name]}))},handleByList(t,e,i=-1){return this.handle(t,(t=>{e.includes(t.ref)||(e.push(t.ref),e.sort(((t,e)=>Eu(e,i)-Eu(t,i))))}),(t=>{const i=e.indexOf(t.ref);-1!==i&&e.splice(i,1)}))}};class Tu{constructor(t){"number"==typeof t?this.rawBinaryData=new ArrayBuffer(t):t instanceof Uint8Array?this.rawBinaryData=t.buffer:this.rawBinaryData=t,this.uint32View=new Uint32Array(this.rawBinaryData),this.float32View=new Float32Array(this.rawBinaryData)}get int8View(){return this._int8View||(this._int8View=new Int8Array(this.rawBinaryData)),this._int8View}get uint8View(){return this._uint8View||(this._uint8View=new Uint8Array(this.rawBinaryData)),this._uint8View}get int16View(){return this._int16View||(this._int16View=new Int16Array(this.rawBinaryData)),this._int16View}get uint16View(){return this._uint16View||(this._uint16View=new Uint16Array(this.rawBinaryData)),this._uint16View}get int32View(){return this._int32View||(this._int32View=new Int32Array(this.rawBinaryData)),this._int32View}view(t){return this[`${t}View`]}destroy(){this.rawBinaryData=null,this._int8View=null,this._uint8View=null,this._int16View=null,this._uint16View=null,this._int32View=null,this.uint32View=null,this.float32View=null}static sizeOf(t){switch(t){case"int8":case"uint8":return 1;case"int16":case"uint16":return 2;case"int32":case"uint32":case"float32":return 4;default:throw new Error(`${t} isn't a valid view type`)}}}const Au=["precision mediump float;","void main(void){","float test = 0.1;","%forloop%","gl_FragColor = vec4(0.0);","}"].join("\n");function Mu(t){let e="";for(let i=0;i<t;++i)i>0&&(e+="\nelse "),i<t-1&&(e+=`if(test == ${i}.0){}`);return e}class Pu{constructor(){this.data=0,this.blendMode=Fh.NORMAL,this.polygonOffset=0,this.blend=!0,this.depthMask=!0}get blend(){return!!(1&this.data)}set blend(t){!!(1&this.data)!==t&&(this.data^=1)}get offsets(){return!!(2&this.data)}set offsets(t){!!(2&this.data)!==t&&(this.data^=2)}
vendor: 25,112 bytes, line 2
2get culling(){return!!(4&this.data)}set culling(t){!!(4&this.data)!==t&&(this.data^=4)}get depthTest(){return!!(8&this.data)}set depthTest(t){!!(8&this.data)!==t&&(this.data^=8)}get depthMask(){return!!(32&this.data)}set depthMask(t){!!(32&this.data)!==t&&(this.data^=32)}get clockwiseFrontFace(){return!!(16&this.data)}set clockwiseFrontFace(t){!!(16&this.data)!==t&&(this.data^=16)}get blendMode(){return this._blendMode}set blendMode(t){this.blend=t!==Fh.NONE,this._blendMode=t}get polygonOffset(){return this._polygonOffset}set polygonOffset(t){this.offsets=!!t,this._polygonOffset=t}static for2d(){const t=new Pu;return t.depthTest=!1,t.blend=!0,t}}Pu.prototype.toString=function(){return`[@pixi/core:State blendMode=${this.blendMode} clockwiseFrontFace=${this.clockwiseFrontFace} culling=${this.culling} depthMask=${this.depthMask} polygonOffset=${this.polygonOffset}]`};const Cu=[];function ku(t,e){if(!t)return null;let i="";if("string"==typeof t){const e=/\.(\w{3,4})(?:$|\?|#)/i.exec(t);e&&(i=e[1].toLowerCase())}for(let r=Cu.length-1;r>=0;--r){const n=Cu[r];if(n.test&&n.test(t,i))return new n(t,e)}throw new Error("Unrecognized source type to auto-detect Resource")}class Iu{constructor(t){this.items=[],this._name=t,this._aliasCount=0}emit(t,e,i,r,n,s,a,o){if(arguments.length>8)throw new Error("max arguments reached");const{name:l,items:h}=this;this._aliasCount++;for(let c=0,u=h.length;c<u;c++)h[c][l](t,e,i,r,n,s,a,o);return h===this.items&&this._aliasCount--,this}ensureNonAliasedItems(){this._aliasCount>0&&this.items.length>1&&(this._aliasCount=0,this.items=this.items.slice(0))}add(t){return t[this._name]&&(this.ensureNonAliasedItems(),this.remove(t),this.items.push(t)),this}remove(t){const e=this.items.indexOf(t);return-1!==e&&(this.ensureNonAliasedItems(),this.items.splice(e,1)),this}contains(t){return this.items.includes(t)}removeAll(){return this.ensureNonAliasedItems(),this.items.length=0,this}destroy(){this.removeAll(),this.items.length=0,this._name=""}get empty(){return 0===this.items.length}get name(){return this._name}}Object.defineProperties(Iu.prototype,{dispatch:{value:Iu.prototype.emit},run:{value:Iu.prototype.emit}});class Du{constructor(t=0,e=0){this._width=t,this._height=e,this.destroyed=!1,this.internal=!1,this.onResize=new Iu("setRealSize"),this.onUpdate=new Iu("update"),this.onError=new Iu("onError")}bind(t){this.onResize.add(t),this.onUpdate.add(t),this.onError.add(t),(this._width||this._height)&&this.onResize.emit(this._width,this._height)}unbind(t){this.onResize.remove(t),this.onUpdate.remove(t),this.onError.remove(t)}resize(t,e){(t!==this._width||e!==this._height)&&(this._width=t,this._height=e,this.onResize.emit(t,e))}get valid(){return!!this._width&&!!this._height}update(){this.destroyed||this.onUpdate.emit()}load(){return Promise.resolve(this)}get width(){return this._width}get height(){return this._height}style(t,e,i){return!1}dispose(){}destroy(){this.destroyed||(this.destroyed=!0,this.dispose(),this.onError.removeAll(),this.onError=null,this.onResize.removeAll(),this.onResize=null,this.onUpdate.removeAll(),this.onUpdate=null)}static test(t,e){return!1}}class Ru extends Du{constructor(t,e){const{width:i,height:r}=e||{};if(!i||!r)throw new Error("BufferResource width or height invalid");super(i,r),this.data=t,this.unpackAlignment=e.unpackAlignment??4}upload(t,e,i){const r=t.gl;r.pixelStorei(r.UNPACK_ALIGNMENT,this.unpackAlignment),r.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL,e.alphaMode===Wh.UNPACK);const n=e.realWidth,s=e.realHeight;return i.width===n&&i.height===s?r.texSubImage2D(e.target,0,0,0,n,s,e.format,i.type,this.data):(i.width=n,i.height=s,r.texImage2D(e.target,0,i.internalFormat,n,s,0,e.format,i.type,this.data)),!0}dispose(){this.data=null}static test(t){return null===t||t instanceof Int8Array||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array}}const Ou={scaleMode:Uh.NEAREST,alphaMode:Wh.NPM},Lu=class t extends yc{constructor(e=null,i=null){super(),i=Object.assign({},t.defaultOptions,i);const{alphaMode:r,mipmap:n,anisotropicLevel:s,scaleMode:a,width:o,height:l,wrapMode:h,format:c,type:u,target:d,resolution:p,resourceOptions:f}=i;e&&!(e instanceof Du)&&((e=ku(e,f)).internal=!0),this.resolution=p||Jh.RESOLUTION,this.width=Math.round((o||0)*this.resolution)/this.resolution,this.height=Math.round((l||0)*this.resolution)/this.resolution,this._mipmap=n,this.anisotropicLevel=s,this._wrapMode=h,this._scaleMode=a,this.format=c,this.type=u,this.target=d,this.alphaMode=r,this.uid=uu(),this.touched=0,this.isPowerOfTwo=!1,this._refreshPOT(),this._glTextures={},this.dirtyId=0,this.dirtyStyleId=0,this.cacheId=null,this.valid=o>0&&l>0,this.textureCacheIds=[],this.destroyed=!1,this.resource=null,this._batchEnabled=0,this._batchLocation=0,this.parentTextureArray=null,this.setResource(e)}get realWidth(){return Math.round(this.width*this.resolution)}get realHeight(){return Math.round(this.height*this.resolution)}get mipmap(){return this._mipmap}set mipmap(t){this._mipmap!==t&&(this._mipmap=t,this.dirtyStyleId++)}get scaleMode(){return this._scaleMode}set scaleMode(t){this._scaleMode!==t&&(this._scaleMode=t,this.dirtyStyleId++)}get wrapMode(){return this._wrapMode}set wrapMode(t){this._wrapMode!==t&&(this._wrapMode=t,this.dirtyStyleId++)}setStyle(t,e){let i;return void 0!==t&&t!==this.scaleMode&&(this.scaleMode=t,i=!0),void 0!==e&&e!==this.mipmap&&(this.mipmap=e,i=!0),i&&this.dirtyStyleId++,this}setSize(t,e,i){return i=i||this.resolution,this.setRealSize(t*i,e*i,i)}setRealSize(t,e,i){return this.resolution=i||this.resolution,this.width=Math.round(t)/this.resolution,this.height=Math.round(e)/this.resolution,this._refreshPOT(),this.update(),this}_refreshPOT(){this.isPowerOfTwo=au(this.realWidth)&&au(this.realHeight)}setResolution(t){const e=this.resolution;return e===t||(this.resolution=t,this.valid&&(this.width=Math.round(this.width*e)/t,this.height=Math.round(this.height*e)/t,this.emit("update",this)),this._refreshPOT()),this}setResource(t){if(this.resource===t)return this;if(this.resource)throw new Error("Resource can be set only once");return t.bind(this),this.resource=t,this}update(){this.valid?(this.dirtyId++,this.dirtyStyleId++,this.emit("update",this)):this.width>0&&this.height>0&&(this.valid=!0,this.emit("loaded",this),this.emit("update",this))}onError(t){this.emit("error",this,t)}destroy(){this.resource&&(this.resource.unbind(this),this.resource.internal&&this.resource.destroy(),this.resource=null),this.cacheId&&(delete gu[this.cacheId],delete mu[this.cacheId],this.cacheId=null),this.valid=!1,this.dispose(),t.removeFromCache(this),this.textureCacheIds=null,this.destroyed=!0,this.emit("destroyed",this),this.removeAllListeners()}dispose(){this.emit("dispose",this)}castToBaseTexture(){return this}static from(e,i,r=Jh.STRICT_TEXTURE_CACHE){const n="string"==typeof e;let s=null;if(n)s=e;else{if(!e._pixiId){const t=i?.pixiIdPrefix||"pixiid";e._pixiId=`${t}_${uu()}`}s=e._pixiId}let a=gu[s];if(n&&r&&!a)throw new Error(`The cacheId "${s}" does not exist in BaseTextureCache.`);return a||(a=new t(e,i),a.cacheId=s,t.addToCache(a,s)),a}static fromBuffer(e,i,r,n){e=e||new Float32Array(i*r*4);const s=new Ru(e,{width:i,height:r,...n?.resourceOptions});let a,o;return e instanceof Float32Array?(a=Nh.RGBA,o=zh.FLOAT):e instanceof Int32Array?(a=Nh.RGBA_INTEGER,o=zh.INT):e instanceof Uint32Array?(a=Nh.RGBA_INTEGER,o=zh.UNSIGNED_INT):e instanceof Int16Array?(a=Nh.RGBA_INTEGER,o=zh.SHORT):e instanceof Uint16Array?(a=Nh.RGBA_INTEGER,o=zh.UNSIGNED_SHORT):e instanceof Int8Array?(a=Nh.RGBA,o=zh.BYTE):(a=Nh.RGBA,o=zh.UNSIGNED_BYTE),s.internal=!0,new t(s,Object.assign({},Ou,{type:o,format:a},n))}static addToCache(t,e){e&&(t.textureCacheIds.includes(e)||t.textureCacheIds.push(e),gu[e]&&gu[e]!==t&&console.warn(`BaseTexture added to the cache with an id [${e}] that already had an entry`),gu[e]=t)}static removeFromCache(t){if("string"==typeof t){const e=gu[t];if(e){const i=e.textureCacheIds.indexOf(t);return i>-1&&e.textureCacheIds.splice(i,1),delete gu[t],e}}else if(t?.textureCacheIds){for(let e=0;e<t.textureCacheIds.length;++e)delete gu[t.textureCacheIds[e]];return t.textureCacheIds.length=0,t}return null}};Lu.defaultOptions={mipmap:jh.POW2,anisotropicLevel:0,scaleMode:Uh.LINEAR,wrapMode:Hh.CLAMP,alphaMode:Wh.UNPACK,target:Vh.TEXTURE_2D,format:Nh.RGBA,type:zh.UNSIGNED_BYTE},Lu._globalBatch=0;let Fu=Lu;class Bu{constructor(){this.texArray=null,this.blend=0,this.type=Bh.TRIANGLES,this.start=0,this.size=0,this.data=null}}let Nu=0;class Vu{constructor(t,e=!0,i=!1){this.data=t||new Float32Array(1),this._glBuffers={},this._updateID=0,this.index=i,this.static=e,this.id=Nu++,this.disposeRunner=new Iu("disposeBuffer")}update(t){t instanceof Array&&(t=new Float32Array(t)),this.data=t||this.data,this._updateID++}dispose(){this.disposeRunner.emit(this,!1)}destroy(){this.dispose(),this.data=null}set index(t){this.type=t?Zh.ELEMENT_ARRAY_BUFFER:Zh.ARRAY_BUFFER}get index(){return this.type===Zh.ELEMENT_ARRAY_BUFFER}static from(t){return t instanceof Array&&(t=new Float32Array(t)),new Vu(t)}}class zu{constructor(t,e=0,i=!1,r=zh.FLOAT,n,s,a,o=1){this.buffer=t,this.size=e,this.normalized=i,this.type=r,this.stride=n,this.start=s,this.instance=a,this.divisor=o}destroy(){this.buffer=null}static from(t,e,i,r,n){return new zu(t,e,i,r,n)}}const Gu={Float32Array:Float32Array,Uint32Array:Uint32Array,Int32Array:Int32Array,Uint8Array:Uint8Array},Uu={5126:4,5123:2,5121:1};let Hu=0;const ju={Float32Array:Float32Array,Uint32Array:Uint32Array,Int32Array:Int32Array,Uint8Array:Uint8Array,Uint16Array:Uint16Array};class Wu{constructor(t=[],e={}){this.buffers=t,this.indexBuffer=null,this.attributes=e,this.glVertexArrayObjects={},this.id=Hu++,this.instanced=!1,this.instanceCount=1,this.disposeRunner=new Iu("disposeGeometry"),this.refCount=0}addAttribute(t,e,i=0,r=!1,n,s,a,o=!1){if(!e)throw new Error("You must pass a buffer when creating an attribute");e instanceof Vu||(e instanceof Array&&(e=new Float32Array(e)),e=new Vu(e));const l=t.split("|");if(l.length>1){for(let t=0;t<l.length;t++)this.addAttribute(l[t],e,i,r,n);return this}let h=this.buffers.indexOf(e);return-1===h&&(this.buffers.push(e),h=this.buffers.length-1),this.attributes[t]=new zu(h,i,r,n,s,a,o),this.instanced=this.instanced||o,this}getAttribute(t){return this.attributes[t]}getBuffer(t){return this.buffers[this.getAttribute(t).buffer]}addIndex(t){return t instanceof Vu||(t instanceof Array&&(t=new Uint16Array(t)),t=new Vu(t)),t.type=Zh.ELEMENT_ARRAY_BUFFER,this.indexBuffer=t,this.buffers.includes(t)||this.buffers.push(t),this}getIndex(){return this.indexBuffer}interleave(){if(1===this.buffers.length||2===this.buffers.length&&this.indexBuffer)return this;const t=[],e=[],i=new Vu;let r;for(r in this.attributes){const i=this.attributes[r],n=this.buffers[i.buffer];t.push(n.data),e.push(i.size*Uu[i.type]/4),i.buffer=0}for(i.data=function(t,e){let i=0,r=0;const n={};for(let n=0;n<t.length;n++)r+=e[n],i+=t[n].length;const s=new ArrayBuffer(4*i);let a=null,o=0;for(let i=0;i<t.length;i++){const l=e[i],h=t[i],c=nu(h);n[c]||(n[c]=new Gu[c](s)),a=n[c];for(let t=0;t<h.length;t++)a[(t/l|0)*r+o+t%l]=h[t];o+=l}return new Float32Array(s)}(t,e),r=0;r<this.buffers.length;r++)this.buffers[r]!==this.indexBuffer&&this.buffers[r].destroy();return this.buffers=[i],this.indexBuffer&&this.buffers.push(this.indexBuffer),this}getSize(){for(const t in this.attributes){const e=this.attributes[t];return this.buffers[e.buffer].data.length/(e.stride/4||e.size)}return 0}dispose(){this.disposeRunner.emit(this,!1)}destroy(){this.dispose(),this.buffers=null,this.indexBuffer=null,this.attributes=null}clone(){const t=new Wu;for(let e=0;e<this.buffers.length;e++)t.buffers[e]=new Vu(this.buffers[e].data.slice(0));for(const e in this.attributes){const i=this.attributes[e];t.attributes[e]=new zu(i.buffer,i.size,i.normalized,i.type,i.stride,i.start,i.instance)}return this.indexBuffer&&(t.indexBuffer=t.buffers[this.buffers.indexOf(this.indexBuffer)],t.indexBuffer.type=Zh.ELEMENT_ARRAY_BUFFER),t}static merge(t){const e=new Wu,i=[],r=[],n=[];let s;for(let e=0;e<t.length;e++){s=t[e];for(let t=0;t<s.buffers.length;t++)r[t]=r[t]||0,r[t]+=s.buffers[t].data.length,n[t]=0}for(let t=0;t<s.buffers.length;t++)i[t]=new(ju[nu(s.buffers[t].data)])(r[t]),e.buffers[t]=new Vu(i[t]);for(let e=0;e<t.length;e++){s=t[e];for(let t=0;t<s.buffers.length;t++)i[t].set(s.buffers[t].data,n[t]),n[t]+=s.buffers[t].data.length}if(e.attributes=s.attributes,s.indexBuffer){e.indexBuffer=e.buffers[s.buffers.indexOf(s.indexBuffer)],e.indexBuffer.type=Zh.ELEMENT_ARRAY_BUFFER;let i=0,r=0,n=0,a=0;for(let t=0;t<s.buffers.length;t++)if(s.buffers[t]!==s.indexBuffer){a=t;break}for(const t in s.attributes){const e=s.attributes[t];(0|e.buffer)===a&&(r+=e.size*Uu[e.type]/4)}for(let s=0;s<t.length;s++){const o=t[s].indexBuffer.data;for(let t=0;t<o.length;t++)e.indexBuffer.data[t+n]+=i;i+=t[s].buffers[a].data.length/r,n+=o.length}}return e}}class Xu extends Wu{constructor(t=!1){super(),this._buffer=new Vu(null,t,!1),this._indexBuffer=new Vu(null,t,!0),this.addAttribute("aVertexPosition",this._buffer,2,!1,zh.FLOAT).addAttribute("aTextureCoord",this._buffer,2,!1,zh.FLOAT).addAttribute("aColor",this._buffer,4,!0,zh.UNSIGNED_BYTE).addAttribute("aTextureId",this._buffer,1,!0,zh.FLOAT).addIndex(this._indexBuffer)}}const $u=2*Math.PI,Yu=180/Math.PI,qu=Math.PI/180;var Ku=(t=>(t[t.POLY=0]="POLY",t[t.RECT=1]="RECT",t[t.CIRC=2]="CIRC",t[t.ELIP=3]="ELIP",t[t.RREC=4]="RREC",t))(Ku||{});class Zu{constructor(t=0,e=0){this.x=0,this.y=0,this.x=t,this.y=e}clone(){return new Zu(this.x,this.y)}copyFrom(t){return this.set(t.x,t.y),this}copyTo(t){return t.set(this.x,this.y),t}equals(t){return t.x===this.x&&t.y===this.y}set(t=0,e=t){return this.x=t,this.y=e,this}}Zu.prototype.toString=function(){return`[@pixi/math:Point x=${this.x} y=${this.y}]`};const Ju=[new Zu,new Zu,new Zu,new Zu];class Qu{constructor(t=0,e=0,i=0,r=0){this.x=Number(t),this.y=Number(e),this.width=Number(i),this.height=Number(r),this.type=Ku.RECT}get left(){return this.x}get right(){return this.x+this.width}get top(){return this.y}get bottom(){return this.y+this.height}static get EMPTY(){return new Qu(0,0,0,0)}clone(){return new Qu(this.x,this.y,this.width,this.height)}copyFrom(t){return this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height,this}copyTo(t){return t.x=this.x,t.y=this.y,t.width=this.width,t.height=this.height,t}contains(t,e){return!(this.width<=0||this.height<=0)&&t>=this.x&&t<this.x+this.width&&e>=this.y&&e<this.y+this.height}intersects(t,e){if(!e){const e=this.x<t.x?t.x:this.x;if((this.right>t.right?t.right:this.right)<=e)return!1;const i=this.y<t.y?t.y:this.y;return(this.bottom>t.bottom?t.bottom:this.bottom)>i}const i=this.left,r=this.right,n=this.top,s=this.bottom;if(r<=i||s<=n)return!1;const a=Ju[0].set(t.left,t.top),o=Ju[1].set(t.left,t.bottom),l=Ju[2].set(t.right,t.top),h=Ju[3].set(t.right,t.bottom);if(l.x<=a.x||o.y<=a.y)return!1;const c=Math.sign(e.a*e.d-e.b*e.c);if(0===c||(e.apply(a,a),e.apply(o,o),e.apply(l,l),e.apply(h,h),Math.max(a.x,o.x,l.x,h.x)<=i||Math.min(a.x,o.x,l.x,h.x)>=r||Math.max(a.y,o.y,l.y,h.y)<=n||Math.min(a.y,o.y,l.y,h.y)>=s))return!1;const u=c*(o.y-a.y),d=c*(a.x-o.x),p=u*i+d*n,f=u*r+d*n,m=u*i+d*s,g=u*r+d*s;if(Math.max(p,f,m,g)<=u*a.x+d*a.y||Math.min(p,f,m,g)>=u*h.x+d*h.y)return!1;const y=c*(a.y-l.y),v=c*(l.x-a.x),x=y*i+v*n,_=y*r+v*n,b=y*i+v*s,S=y*r+v*s;return!(Math.max(x,_,b,S)<=y*a.x+v*a.y||Math.min(x,_,b,S)>=y*h.x+v*h.y)}pad(t=0,e=t){return this.x-=t,this.y-=e,this.width+=2*t,this.height+=2*e,this}fit(t){const e=Math.max(this.x,t.x),i=Math.min(this.x+this.width,t.x+t.width),r=Math.max(this.y,t.y),n=Math.min(this.y+this.height,t.y+t.height);return this.x=e,this.width=Math.max(i-e,0),this.y=r,this.height=Math.max(n-r,0),this}ceil(t=1,e=.001){const i=Math.ceil((this.x+this.width-e)*t)/t,r=Math.ceil((this.y+this.height-e)*t)/t;return this.x=Math.floor((this.x+e)*t)/t,this.y=Math.floor((this.y+e)*t)/t,this.width=i-this.x,this.height=r-this.y,this}enlarge(t){const e=Math.min(this.x,t.x),i=Math.max(this.x+this.width,t.x+t.width),r=Math.min(this.y,t.y),n=Math.max(this.y+this.height,t.y+t.height);return this.x=e,this.width=i-e,this.y=r,this.height=n-r,this}}Qu.prototype.toString=function(){return`[@pixi/math:Rectangle x=${this.x} y=${this.y} width=${this.width} height=${this.height}]`};class td{constructor(t=0,e=0,i=0){this.x=t,this.y=e,this.radius=i,this.type=Ku.CIRC}clone(){return new td(this.x,this.y,this.radius)}contains(t,e){if(this.radius<=0)return!1;const i=this.radius*this.radius;let r=this.x-t,n=this.y-e;return r*=r,n*=n,r+n<=i}getBounds(){return new Qu(this.x-this.radius,this.y-this.radius,2*this.radius,2*this.radius)}}td.prototype.toString=function(){return`[@pixi/math:Circle x=${this.x} y=${this.y} radius=${this.radius}]`};class ed{constructor(t=0,e=0,i=0,r=0){this.x=t,this.y=e,this.width=i,this.height=r,this.type=Ku.ELIP}clone(){return new ed(this.x,this.y,this.width,this.height)}contains(t,e){if(this.width<=0||this.height<=0)return!1;let i=(t-this.x)/this.width,r=(e-this.y)/this.height;return i*=i,r*=r,i+r<=1}getBounds(){return new Qu(this.x-this.width,this.y-this.height,this.width,this.height)}}ed.prototype.toString=function(){return`[@pixi/math:Ellipse x=${this.x} y=${this.y} width=${this.width} height=${this.height}]`};class id{constructor(...t){let e=Array.isArray(t[0])?t[0]:t;if("number"!=typeof e[0]){const t=[];for(let i=0,r=e.length;i<r;i++)t.push(e[i].x,e[i].y);e=t}this.points=e,this.type=Ku.POLY,this.closeStroke=!0}clone(){const t=this.points.slice(),e=new id(t);return e.closeStroke=this.closeStroke,e}contains(t,e){let i=!1;const r=this.points.length/2;for(let n=0,s=r-1;n<r;s=n++){const r=this.points[2*n],a=this.points[2*n+1],o=this.points[2*s],l=this.points[2*s+1];a>e!=l>e&&t<(e-a)/(l-a)*(o-r)+r&&(i=!i)}return i}}id.prototype.toString=function(){return`[@pixi/math:PolygoncloseStroke=${this.closeStroke}points=${this.points.reduce(((t,e)=>`${t}, ${e}`),"")}]`};class rd{constructor(t=0,e=0,i=0,r=0,n=20){this.x=t,this.y=e,this.width=i,this.height=r,this.radius=n,this.type=Ku.RREC}clone(){return new rd(this.x,this.y,this.width,this.height,this.radius)}contains(t,e){if(this.width<=0||this.height<=0)return!1;if(t>=this.x&&t<=this.x+this.width&&e>=this.y&&e<=this.y+this.height){const i=Math.max(0,Math.min(this.radius,Math.min(this.width,this.height)/2));if(e>=this.y+i&&e<=this.y+this.height-i||t>=this.x+i&&t<=this.x+this.width-i)return!0;let r=t-(this.x+i),n=e-(this.y+i);const s=i*i;if(r*r+n*n<=s||(r=t-(this.x+this.width-i),r*r+n*n<=s)||(n=e-(this.y+this.height-i),r*r+n*n<=s)||(r=t-(this.x+i),r*r+n*n<=s))return!0}return!1}}rd.prototype.toString=function(){return`[@pixi/math:RoundedRectangle x=${this.x} y=${this.y}width=${this.width} height=${this.height} radius=${this.radius}]`};class nd{constructor(t=1,e=0,i=0,r=1,n=0,s=0){this.array=null,this.a=t,this.b=e,this.c=i,this.d=r,this.tx=n,this.ty=s}fromArray(t){this.a=t[0],this.b=t[1],this.c=t[3],this.d=t[4],this.tx=t[2],this.ty=t[5]}set(t,e,i,r,n,s){return this.a=t,this.b=e,this.c=i,this.d=r,this.tx=n,this.ty=s,this}toArray(t,e){this.array||(this.array=new Float32Array(9));const i=e||this.array;return t?(i[0]=this.a,i[1]=this.b,i[2]=0,i[3]=this.c,i[4]=this.d,i[5]=0,i[6]=this.tx,i[7]=this.ty,i[8]=1):(i[0]=this.a,i[1]=this.c,i[2]=this.tx,i[3]=this.b,i[4]=this.d,i[5]=this.ty,i[6]=0,i[7]=0,i[8]=1),i}apply(t,e){e=e||new Zu;const i=t.x,r=t.y;return e.x=this.a*i+this.c*r+this.tx,e.y=this.b*i+this.d*r+this.ty,e}applyInverse(t,e){e=e||new Zu;const i=1/(this.a*this.d+this.c*-this.b),r=t.x,n=t.y;return e.x=this.d*i*r+-this.c*i*n+(this.ty*this.c-this.tx*this.d)*i,e.y=this.a*i*n+-this.b*i*r+(-this.ty*this.a+this.tx*this.b)*i,e}translate(t,e){return this.tx+=t,this.ty+=e,this}scale(t,e){return this.a*=t,this.d*=e,this.c*=t,this.b*=e,this.tx*=t,this.ty*=e,this}rotate(t){const e=Math.cos(t),i=Math.sin(t),r=this.a,n=this.c,s=this.tx;return this.a=r*e-this.b*i,this.b=r*i+this.b*e,this.c=n*e-this.d*i,this.d=n*i+this.d*e,this.tx=s*e-this.ty*i,this.ty=s*i+this.ty*e,this}append(t){const e=this.a,i=this.b,r=this.c,n=this.d;return this.a=t.a*e+t.b*r,this.b=t.a*i+t.b*n,this.c=t.c*e+t.d*r,this.d=t.c*i+t.d*n,this.tx=t.tx*e+t.ty*r+this.tx,this.ty=t.tx*i+t.ty*n+this.ty,this}setTransform(t,e,i,r,n,s,a,o,l){return this.a=Math.cos(a+l)*n,this.b=Math.sin(a+l)*n,this.c=-Math.sin(a-o)*s,this.d=Math.cos(a-o)*s,this.tx=t-(i*this.a+r*this.c),this.ty=e-(i*this.b+r*this.d),this}prepend(t){const e=this.tx;if(1!==t.a||0!==t.b||0!==t.c||1!==t.d){const e=this.a,i=this.c;this.a=e*t.a+this.b*t.c,this.b=e*t.b+this.b*t.d,this.c=i*t.a+this.d*t.c,this.d=i*t.b+this.d*t.d}return this.tx=e*t.a+this.ty*t.c+t.tx,this.ty=e*t.b+this.ty*t.d+t.ty,this}decompose(t){const e=this.a,i=this.b,r=this.c,n=this.d,s=t.pivot,a=-Math.atan2(-r,n),o=Math.atan2(i,e),l=Math.abs(a+o);return l<1e-5||Math.abs($u-l)<1e-5?(t.rotation=o,t.skew.x=t.skew.y=0):(t.rotation=0,t.skew.x=a,t.skew.y=o),t.scale.x=Math.sqrt(e*e+i*i),t.scale.y=Math.sqrt(r*r+n*n),t.position.x=this.tx+(s.x*e+s.y*r),t.position.y=this.ty+(s.x*i+s.y*n),t}invert(){const t=this.a,e=this.b,i=this.c,r=this.d,n=this.tx,s=t*r-e*i;return this.a=r/s,this.b=-e/s,this.c=-i/s,this.d=t/s,this.tx=(i*this.ty-r*n)/s,this.ty=-(t*this.ty-e*n)/s,this}identity(){return this.a=1,this.b=0,this.c=0,this.d=1,this.tx=0,this.ty=0,this}clone(){const t=new nd;return t.a=this.a,t.b=this.b,t.c=this.c,t.d=this.d,t.tx=this.tx,t.ty=this.ty,t}copyTo(t){return t.a=this.a,t.b=this.b,t.c=this.c,t.d=this.d,t.tx=this.tx,t.ty=this.ty,t}copyFrom(t){return this.a=t.a,this.b=t.b,this.c=t.c,this.d=t.d,this.tx=t.tx,this.ty=t.ty,this}static get IDENTITY(){return new nd}static get TEMP_MATRIX(){return new nd}}nd.prototype.toString=function(){return`[@pixi/math:Matrix a=${this.a} b=${this.b} c=${this.c} d=${this.d} tx=${this.tx} ty=${this.ty}]`};const sd=[1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1],ad=[0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1],od=[0,-1,-1,-1,0,1,1,1,0,1,1,1,0,-1,-1,-1],ld=[1,1,0,-1,-1,-1,0,1,-1,-1,0,1,1,1,0,-1],hd=[],cd=[],ud=Math.sign;!function(){for(let t=0;t<16;t++){const e=[];hd.push(e);for(let i=0;i<16;i++){const r=ud(sd[t]*sd[i]+od[t]*ad[i]),n=ud(ad[t]*sd[i]+ld[t]*ad[i]),s=ud(sd[t]*od[i]+od[t]*ld[i]),a=ud(ad[t]*od[i]+ld[t]*ld[i]);for(let t=0;t<16;t++)if(sd[t]===r&&ad[t]===n&&od[t]===s&&ld[t]===a){e.push(t);break}}}for(let t=0;t<16;t++){const e=new nd;e.set(sd[t],ad[t],od[t],ld[t],0,0),cd.push(e)}}();const dd={E:0,SE:1,S:2,SW:3,W:4,NW:5,N:6,NE:7,MIRROR_VERTICAL:8,MAIN_DIAGONAL:10,MIRROR_HORIZONTAL:12,REVERSE_DIAGONAL:14,uX:t=>sd[t],uY:t=>ad[t],vX:t=>od[t],vY:t=>ld[t],inv:t=>8&t?15&t:7&-t,add:(t,e)=>hd[t][e],sub:(t,e)=>hd[t][dd.inv(e)],rotate180:t=>4^t,isVertical:t=>2==(3&t),byDirection:(t,e)=>2*Math.abs(t)<=Math.abs(e)?e>=0?dd.S:dd.N:2*Math.abs(e)<=Math.abs(t)?t>0?dd.E:dd.W:e>0?t>0?dd.SE:dd.SW:t>0?dd.NE:dd.NW,matrixAppendRotationInv:(t,e,i=0,r=0)=>{const n=cd[dd.inv(e)];n.tx=i,n.ty=r,t.append(n)}};class pd{constructor(t,e,i=0,r=0){this._x=i,this._y=r,this.cb=t,this.scope=e}clone(t=this.cb,e=this.scope){return new pd(t,e,this._x,this._y)}set(t=0,e=t){return(this._x!==t||this._y!==e)&&(this._x=t,this._y=e,this.cb.call(this.scope)),this}copyFrom(t){return(this._x!==t.x||this._y!==t.y)&&(this._x=t.x,this._y=t.y,this.cb.call(this.scope)),this}copyTo(t){return t.set(this._x,this._y),t}equals(t){return t.x===this._x&&t.y===this._y}get x(){return this._x}set x(t){this._x!==t&&(this._x=t,this.cb.call(this.scope))}get y(){return this._y}set y(t){this._y!==t&&(this._y=t,this.cb.call(this.scope))}}pd.prototype.toString=function(){return`[@pixi/math:ObservablePoint x=${this.x} y=${this.y} scope=${this.scope}]`};const fd=class{constructor(){this.worldTransform=new nd,this.localTransform=new nd,this.position=new pd(this.onChange,this,0,0),this.scale=new pd(this.onChange,this,1,1),this.pivot=new pd(this.onChange,this,0,0),this.skew=new pd(this.updateSkew,this,0,0),this._rotation=0,this._cx=1,this._sx=0,this._cy=0,this._sy=1,this._localID=0,this._currentLocalID=0,this._worldID=0,this._parentID=0}onChange(){this._localID++}updateSkew(){this._cx=Math.cos(this._rotation+this.skew.y),this._sx=Math.sin(this._rotation+this.skew.y),this._cy=-Math.sin(this._rotation-this.skew.x),this._sy=Math.cos(this._rotation-this.skew.x),this._localID++}updateLocalTransform(){const t=this.localTransform;this._localID!==this._currentLocalID&&(t.a=this._cx*this.scale.x,t.b=this._sx*this.scale.x,t.c=this._cy*this.scale.y,t.d=this._sy*this.scale.y,t.tx=this.position.x-(this.pivot.x*t.a+this.pivot.y*t.c),t.ty=this.position.y-(this.pivot.x*t.b+this.pivot.y*t.d),this._currentLocalID=this._localID,this._parentID=-1)}updateTransform(t){const e=this.localTransform;if(this._localID!==this._currentLocalID&&(e.a=this._cx*this.scale.x,e.b=this._sx*this.scale.x,e.c=this._cy*this.scale.y,e.d=this._sy*this.scale.y,e.tx=this.position.x-(this.pivot.x*e.a+this.pivot.y*e.c),e.ty=this.position.y-(this.pivot.x*e.b+this.pivot.y*e.d),this._currentLocalID=this._localID,this._parentID=-1),this._parentID!==t._worldID){const i=t.
2worldTransform,r=this.worldTransform;r.a=e.a*i.a+e.b*i.c,r.b=e.a*i.b+e.b*i.d,r.c=e.c*i.a+e.d*i.c,r.d=e.c*i.b+e.d*i.d,r.tx=e.tx*i.a+e.ty*i.c+i.tx,r.ty=e.tx*i.b+e.ty*i.d+i.ty,this._parentID=t._worldID,this._worldID++}}setFromMatrix(t){t.decompose(this),this._localID++}get rotation(){return this._rotation}set rotation(t){this._rotation!==t&&(this._rotation=t,this.updateSkew())}};fd.IDENTITY=new fd;let md=fd;md.prototype.toString=function(){return`[@pixi/math:Transform position=(${this.position.x}, ${this.position.y}) rotation=${this.rotation} scale=(${this.scale.x}, ${this.scale.y}) skew=(${this.skew.x}, ${this.skew.y}) ]`};const gd=[{test:t=>"float"===t.type&&1===t.size&&!t.isArray,code:t=>`\n            if(uv["${t}"] !== ud["${t}"].value)\n            {\n                ud["${t}"].value = uv["${t}"]\n                gl.uniform1f(ud["${t}"].location, uv["${t}"])\n            }\n            `},{test:(t,e)=>!("sampler2D"!==t.type&&"samplerCube"!==t.type&&"sampler2DArray"!==t.type||1!==t.size||t.isArray||null!=e&&void 0===e.castToBaseTexture),code:t=>`t = syncData.textureCount++;\n\n            renderer.texture.bind(uv["${t}"], t);\n\n            if(ud["${t}"].value !== t)\n            {\n                ud["${t}"].value = t;\n                gl.uniform1i(ud["${t}"].location, t);\n; // eslint-disable-line max-len\n            }`},{test:(t,e)=>"mat3"===t.type&&1===t.size&&!t.isArray&&void 0!==e.a,code:t=>`\n            gl.uniformMatrix3fv(ud["${t}"].location, false, uv["${t}"].toArray(true));\n            `,codeUbo:t=>`\n                var ${t}_matrix = uv.${t}.toArray(true);\n\n                data[offset] = ${t}_matrix[0];\n                data[offset+1] = ${t}_matrix[1];\n                data[offset+2] = ${t}_matrix[2];\n        \n                data[offset + 4] = ${t}_matrix[3];\n                data[offset + 5] = ${t}_matrix[4];\n                data[offset + 6] = ${t}_matrix[5];\n        \n                data[offset + 8] = ${t}_matrix[6];\n                data[offset + 9] = ${t}_matrix[7];\n                data[offset + 10] = ${t}_matrix[8];\n            `},{test:(t,e)=>"vec2"===t.type&&1===t.size&&!t.isArray&&void 0!==e.x,code:t=>`\n                cv = ud["${t}"].value;\n                v = uv["${t}"];\n\n                if(cv[0] !== v.x || cv[1] !== v.y)\n                {\n                    cv[0] = v.x;\n                    cv[1] = v.y;\n                    gl.uniform2f(ud["${t}"].location, v.x, v.y);\n                }`,codeUbo:t=>`\n                v = uv.${t};\n\n                data[offset] = v.x;\n                data[offset+1] = v.y;\n            `},{test:t=>"vec2"===t.type&&1===t.size&&!t.isArray,code:t=>`\n                cv = ud["${t}"].value;\n                v = uv["${t}"];\n\n                if(cv[0] !== v[0] || cv[1] !== v[1])\n                {\n                    cv[0] = v[0];\n                    cv[1] = v[1];\n                    gl.uniform2f(ud["${t}"].location, v[0], v[1]);\n                }\n            `},{test:(t,e)=>"vec4"===t.type&&1===t.size&&!t.isArray&&void 0!==e.width,code:t=>`\n                cv = ud["${t}"].value;\n                v = uv["${t}"];\n\n                if(cv[0] !== v.x || cv[1] !== v.y || cv[2] !== v.width || cv[3] !== v.height)\n                {\n                    cv[0] = v.x;\n                    cv[1] = v.y;\n                    cv[2] = v.width;\n                    cv[3] = v.height;\n                    gl.uniform4f(ud["${t}"].location, v.x, v.y, v.width, v.height)\n                }`,codeUbo:t=>`\n                    v = uv.${t};\n\n                    data[offset] = v.x;\n                    data[offset+1] = v.y;\n                    data[offset+2] = v.width;\n                    data[offset+3] = v.height;\n                `},{test:(t,e)=>"vec4"===t.type&&1===t.size&&!t.isArray&&void 0!==e.red,code:t=>`\n                cv = ud["${t}"].value;\n                v = uv["${t}"];\n\n                if(cv[0] !== v.red || cv[1] !== v.green || cv[2] !== v.blue || cv[3] !== v.alpha)\n                {\n                    cv[0] = v.red;\n                    cv[1] = v.green;\n                    cv[2] = v.blue;\n                    cv[3] = v.alpha;\n                    gl.uniform4f(ud["${t}"].location, v.red, v.green, v.blue, v.alpha)\n                }`,codeUbo:t=>`\n                    v = uv.${t};\n\n                    data[offset] = v.red;\n                    data[offset+1] = v.green;\n                    data[offset+2] = v.blue;\n                    data[offset+3] = v.alpha;\n                `},{test:(t,e)=>"vec3"===t.type&&1===t.size&&!t.isArray&&void 0!==e.red,code:t=>`\n                cv = ud["${t}"].value;\n                v = uv["${t}"];\n\n                if(cv[0] !== v.red || cv[1] !== v.green || cv[2] !== v.blue || cv[3] !== v.a)\n                {\n                    cv[0] = v.red;\n                    cv[1] = v.green;\n                    cv[2] = v.blue;\n    \n                    gl.uniform3f(ud["${t}"].location, v.red, v.green, v.blue)\n                }`,codeUbo:t=>`\n                    v = uv.${t};\n\n                    data[offset] = v.red;\n                    data[offset+1] = v.green;\n                    data[offset+2] = v.blue;\n                `},{test:t=>"vec4"===t.type&&1===t.size&&!t.isArray,code:t=>`\n                cv = ud["${t}"].value;\n                v = uv["${t}"];\n\n                if(cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])\n                {\n                    cv[0] = v[0];\n                    cv[1] = v[1];\n                    cv[2] = v[2];\n                    cv[3] = v[3];\n\n                    gl.uniform4f(ud["${t}"].location, v[0], v[1], v[2], v[3])\n                }`}],yd={float:"\n    if (cv !== v)\n    {\n        cu.value = v;\n        gl.uniform1f(location, v);\n    }",vec2:"\n    if (cv[0] !== v[0] || cv[1] !== v[1])\n    {\n        cv[0] = v[0];\n        cv[1] = v[1];\n\n        gl.uniform2f(location, v[0], v[1])\n    }",vec3:"\n    if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2])\n    {\n        cv[0] = v[0];\n        cv[1] = v[1];\n        cv[2] = v[2];\n\n        gl.uniform3f(location, v[0], v[1], v[2])\n    }",vec4:"\n    if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])\n    {\n        cv[0] = v[0];\n        cv[1] = v[1];\n        cv[2] = v[2];\n        cv[3] = v[3];\n\n        gl.uniform4f(location, v[0], v[1], v[2], v[3]);\n    }",int:"\n    if (cv !== v)\n    {\n        cu.value = v;\n\n        gl.uniform1i(location, v);\n    }",ivec2:"\n    if (cv[0] !== v[0] || cv[1] !== v[1])\n    {\n        cv[0] = v[0];\n        cv[1] = v[1];\n\n        gl.uniform2i(location, v[0], v[1]);\n    }",ivec3:"\n    if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2])\n    {\n        cv[0] = v[0];\n        cv[1] = v[1];\n        cv[2] = v[2];\n\n        gl.uniform3i(location, v[0], v[1], v[2]);\n    }",ivec4:"\n    if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])\n    {\n        cv[0] = v[0];\n        cv[1] = v[1];\n        cv[2] = v[2];\n        cv[3] = v[3];\n\n        gl.uniform4i(location, v[0], v[1], v[2], v[3]);\n    }",uint:"\n    if (cv !== v)\n    {\n        cu.value = v;\n\n        gl.uniform1ui(location, v);\n    }",uvec2:"\n    if (cv[0] !== v[0] || cv[1] !== v[1])\n    {\n        cv[0] = v[0];\n        cv[1] = v[1];\n\n        gl.uniform2ui(location, v[0], v[1]);\n    }",uvec3:"\n    if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2])\n    {\n        cv[0] = v[0];\n        cv[1] = v[1];\n        cv[2] = v[2];\n\n        gl.uniform3ui(location, v[0], v[1], v[2]);\n    }",uvec4:"\n    if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])\n    {\n        cv[0] = v[0];\n        cv[1] = v[1];\n        cv[2] = v[2];\n        cv[3] = v[3];\n\n        gl.uniform4ui(location, v[0], v[1], v[2], v[3]);\n    }",bool:"\n    if (cv !== v)\n    {\n        cu.value = v;\n        gl.uniform1i(location, v);\n    }",bvec2:"\n    if (cv[0] != v[0] || cv[1] != v[1])\n    {\n        cv[0] = v[0];\n        cv[1] = v[1];\n\n        gl.uniform2i(location, v[0], v[1]);\n    }",bvec3:"\n    if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2])\n    {\n        cv[0] = v[0];\n        cv[1] = v[1];\n        cv[2] = v[2];\n\n        gl.uniform3i(location, v[0], v[1], v[2]);\n    }",bvec4:"\n    if (cv[0] !== v[0] || cv[1] !== v[1] || cv[2] !== v[2] || cv[3] !== v[3])\n    {\n        cv[0] = v[0];\n        cv[1] = v[1];\n        cv[2] = v[2];\n        cv[3] = v[3];\n\n        gl.uniform4i(location, v[0], v[1], v[2], v[3]);\n    }",mat2:"gl.uniformMatrix2fv(location, false, v)",mat3:"gl.uniformMatrix3fv(location, false, v)",mat4:"gl.uniformMatrix4fv(location, false, v)",sampler2D:"\n    if (cv !== v)\n    {\n        cu.value = v;\n\n        gl.uniform1i(location, v);\n    }",samplerCube:"\n    if (cv !== v)\n    {\n        cu.value = v;\n\n        gl.uniform1i(location, v);\n    }",sampler2DArray:"\n    if (cv !== v)\n    {\n        cu.value = v;\n\n        gl.uniform1i(location, v);\n    }"},vd={float:"gl.uniform1fv(location, v)",vec2:"gl.uniform2fv(location, v)",vec3:"gl.uniform3fv(location, v)",vec4:"gl.uniform4fv(location, v)",mat4:"gl.uniformMatrix4fv(location, false, v)",mat3:"gl.uniformMatrix3fv(location, false, v)",mat2:"gl.uniformMatrix2fv(location, false, v)",int:"gl.uniform1iv(location, v)",ivec2:"gl.uniform2iv(location, v)",ivec3:"gl.uniform3iv(location, v)",ivec4:"gl.uniform4iv(location, v)",uint:"gl.uniform1uiv(location, v)",uvec2:"gl.uniform2uiv(location, v)",uvec3:"gl.uniform3uiv(location, v)",uvec4:"gl.uniform4uiv(location, v)",bool:"gl.uniform1iv(location, v)",bvec2:"gl.uniform2iv(location, v)",bvec3:"gl.uniform3iv(location, v)",bvec4:"gl.uniform4iv(location, v)",sampler2D:"gl.uniform1iv(location, v)",samplerCube:"gl.uniform1iv(location, v)",sampler2DArray:"gl.uniform1iv(location, v)"},xd={};let _d,bd=xd;const Sd={float:1,vec2:2,vec3:3,vec4:4,int:1,ivec2:2,ivec3:3,ivec4:4,uint:1,uvec2:2,uvec3:3,uvec4:4,bool:1,bvec2:2,bvec3:3,bvec4:4,mat2:4,mat3:9,mat4:16,sampler2D:1};function Ed(t){return Sd[t]}let wd=null;const Td={FLOAT:"float",FLOAT_VEC2:"vec2",FLOAT_VEC3:"vec3",FLOAT_VEC4:"vec4",INT:"int",INT_VEC2:"ivec2",INT_VEC3:"ivec3",INT_VEC4:"ivec4",UNSIGNED_INT:"uint",UNSIGNED_INT_VEC2:"uvec2",UNSIGNED_INT_VEC3:"uvec3",UNSIGNED_INT_VEC4:"uvec4",BOOL:"bool",BOOL_VEC2:"bvec2",BOOL_VEC3:"bvec3",BOOL_VEC4:"bvec4",FLOAT_MAT2:"mat2",FLOAT_MAT3:"mat3",FLOAT_MAT4:"mat4",SAMPLER_2D:"sampler2D",INT_SAMPLER_2D:"sampler2D",UNSIGNED_INT_SAMPLER_2D:"sampler2D",SAMPLER_CUBE:"samplerCube",INT_SAMPLER_CUBE:"samplerCube",UNSIGNED_INT_SAMPLER_CUBE:"samplerCube",SAMPLER_2D_ARRAY:"sampler2DArray",INT_SAMPLER_2D_ARRAY:"sampler2DArray",UNSIGNED_INT_SAMPLER_2D_ARRAY:"sampler2DArray"};function Ad(t,e){if(!wd){const e=Object.keys(Td);wd={};for(let i=0;i<e.length;++i){const r=e[i];wd[t[r]]=Td[r]}}return wd[e]}function Md(t,e,i){if("precision"!==t.substring(0,9)){let r=e;return e===Yh.HIGH&&i!==Yh.HIGH&&(r=Yh.MEDIUM),`precision ${r} float;\n${t}`}return i!==Yh.HIGH&&"precision highp"===t.substring(0,15)?t.replace("precision highp","precision mediump"):t}let Pd=0;const Cd={},kd=class t{constructor(e,i,r="pixi-shader",n={}){this.extra={},this.id=Pd++,this.vertexSrc=e||t.defaultVertexSrc,this.fragmentSrc=i||t.defaultFragmentSrc,this.vertexSrc=this.vertexSrc.trim(),this.fragmentSrc=this.fragmentSrc.trim(),this.extra=n,"#version"!==this.vertexSrc.substring(0,8)&&(r=r.replace(/\s+/g,"-"),Cd[r]?(Cd[r]++,r+=`-${Cd[r]}`):Cd[r]=1,this.vertexSrc=`#define SHADER_NAME ${r}\n${this.vertexSrc}`,this.fragmentSrc=`#define SHADER_NAME ${r}\n${this.fragmentSrc}`,this.vertexSrc=Md(this.vertexSrc,t.defaultVertexPrecision,Yh.HIGH),this.fragmentSrc=Md(this.fragmentSrc,t.defaultFragmentPrecision,function(){if(!_d){_d=Yh.MEDIUM;const t=function(){if(bd===xd||bd?.isContextLost()){const t=Jh.ADAPTER.createCanvas();let e;Jh.PREFER_ENV>=Rh.WEBGL2&&(e=t.getContext("webgl2",{})),e||(e=t.getContext("webgl",{})||t.getContext("experimental-webgl",{}),e?e.getExtension("WEBGL_draw_buffers"):e=null),bd=e}return bd}();if(t&&t.getShaderPrecisionFormat){const e=t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.HIGH_FLOAT);e&&(_d=e.precision?Yh.HIGH:Yh.MEDIUM)}}return _d}())),this.glPrograms={},this.syncUniforms=null}static get defaultVertexSrc(){return"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void){\n   gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0
2)).xy, 0.0, 1.0);\n   vTextureCoord = aTextureCoord;\n}\n"}static get defaultFragmentSrc(){return"varying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\n\nvoid main(void){\n   gl_FragColor *= texture2D(uSampler, vTextureCoord);\n}"}static from(e,i,r){const n=e+i;let s=fu[n];return s||(fu[n]=s=new t(e,i,r)),s}};kd.defaultVertexPrecision=Yh.HIGH,kd.defaultFragmentPrecision=gc.apple.device?Yh.HIGH:Yh.MEDIUM;let Id=kd,Dd=0;class Rd{constructor(t,e,i){this.group=!0,this.syncUniforms={},this.dirtyId=0,this.id=Dd++,this.static=!!e,this.ubo=!!i,t instanceof Vu?(this.buffer=t,this.buffer.type=Zh.UNIFORM_BUFFER,this.autoManage=!1,this.ubo=!0):(this.uniforms=t,this.ubo&&(this.buffer=new Vu(new Float32Array(1)),this.buffer.type=Zh.UNIFORM_BUFFER,this.autoManage=!0))}update(){this.dirtyId++,!this.autoManage&&this.buffer&&this.buffer.update()}add(t,e,i){if(this.ubo)throw new Error("[UniformGroup] uniform groups in ubo mode cannot be modified, or have uniform groups nested in them");this.uniforms[t]=new Rd(e,i)}static from(t,e,i){return new Rd(t,e,i)}static uboFrom(t,e){return new Rd(t,e??!0,!0)}}class Od{constructor(t,e){this.uniformBindCount=0,this.program=t,this.uniformGroup=e?e instanceof Rd?e:new Rd(e):new Rd({}),this.disposeRunner=new Iu("disposeShader")}checkUniformExists(t,e){if(e.uniforms[t])return!0;for(const i in e.uniforms){const r=e.uniforms[i];if(!0===r.group&&this.checkUniformExists(t,r))return!0}return!1}destroy(){this.uniformGroup=null,this.disposeRunner.emit(this),this.disposeRunner.destroy()}get uniforms(){return this.uniformGroup.uniforms}static from(t,e,i){const r=Id.from(t,e);return new Od(r,i)}}class Ld{constructor(t,e){if(this.vertexSrc=t,this.fragTemplate=e,this.programCache={},this.defaultGroupCache={},!e.includes("%count%"))throw new Error('Fragment template must contain "%count%".');if(!e.includes("%forloop%"))throw new Error('Fragment template must contain "%forloop%".')}generateShader(t){if(!this.programCache[t]){const e=new Int32Array(t);for(let i=0;i<t;i++)e[i]=i;this.defaultGroupCache[t]=Rd.from({uSamplers:e},!0);let i=this.fragTemplate;i=i.replace(/%count%/gi,`${t}`),i=i.replace(/%forloop%/gi,this.generateSampleSrc(t)),this.programCache[t]=new Id(this.vertexSrc,i)}const e={tint:new Float32Array([1,1,1,1]),translationMatrix:new nd,default:this.defaultGroupCache[t]};return new Od(this.programCache[t],e)}generateSampleSrc(t){let e="";e+="\n",e+="\n";for(let i=0;i<t;i++)i>0&&(e+="\nelse "),i<t-1&&(e+=`if(vTextureId < ${i}.5)`),e+="\n{",e+=`\n\tcolor = texture2D(uSamplers[${i}], vTextureCoord);`,e+="\n}";return e+="\n",e+="\n",e}}class Fd{constructor(){this.elements=[],this.ids=[],this.count=0}clear(){for(let t=0;t<this.count;t++)this.elements[t]=null;this.count=0}}class Bd{constructor(t){this.renderer=t}flush(){}destroy(){this.renderer=null}start(){}stop(){this.flush()}render(t){}}const Nd=class t extends Bd{constructor(e){super(e),this.setShaderGenerator(),this.geometryClass=Xu,this.vertexSize=6,this.state=Pu.for2d(),this.size=4*t.defaultBatchSize,this._vertexCount=0,this._indexCount=0,this._bufferedElements=[],this._bufferedTextures=[],this._bufferSize=0,this._shader=null,this._packedGeometries=[],this._packedGeometryPoolSize=2,this._flushId=0,this._aBuffers={},this._iBuffers={},this.maxTextures=1,this.renderer.on("prerender",this.onPrerender,this),e.runners.contextChange.add(this),this._dcIndex=0,this._aIndex=0,this._iIndex=0,this._attributeBuffer=null,this._indexBuffer=null,this._tempBoundTextures=[]}static get defaultMaxTextures(){return this._defaultMaxTextures=this._defaultMaxTextures??function(t){let e=!0;const i=Jh.ADAPTER.getNavigator();if(gc.tablet||gc.phone){if(gc.apple.device){const t=i.userAgent.match(/OS (\d+)_(\d+)?/);t&&parseInt(t[1],10)<11&&(e=!1)}if(gc.android.device){const t=i.userAgent.match(/Android\s([0-9.]*)/);t&&parseInt(t[1],10)<7&&(e=!1)}}return e?32:4}(),this._defaultMaxTextures}static set defaultMaxTextures(t){this._defaultMaxTextures=t}static get canUploadSameBuffer(){return this._canUploadSameBuffer=this._canUploadSameBuffer??!gc.apple.device,this._canUploadSameBuffer}static set canUploadSameBuffer(t){this._canUploadSameBuffer=t}get MAX_TEXTURES(){return _c("7.1.0","BatchRenderer#MAX_TEXTURES renamed to BatchRenderer#maxTextures"),this.maxTextures}static get defaultVertexSrc(){return"precision highp float;\nattribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\nattribute vec4 aColor;\nattribute float aTextureId;\n\nuniform mat3 projectionMatrix;\nuniform mat3 translationMatrix;\nuniform vec4 tint;\n\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\nvarying float vTextureId;\n\nvoid main(void){\n    gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0
2)).xy, 0.0, 1.0);\n\n    vTextureCoord = aTextureCoord;\n    vTextureId = aTextureId;\n    vColor = aColor * tint;\n}\n"}static get defaultFragmentTemplate(){return"varying vec2 vTextureCoord;\nvarying vec4 vColor;\nvarying float vTextureId;\nuniform sampler2D uSamplers[%count%];\n\nvoid main(void){\n    vec4 color;\n    %forloop%\n    gl_FragColor = color * vColor;\n}\n"}setShaderGenerator({vertex:e=t.defaultVertexSrc,fragment:i=t.defaultFragmentTemplate}={}){this.shaderGenerator=new Ld(e,i)}contextChange(){const e=this.renderer.gl;Jh.PREFER_ENV===Rh.WEBGL_LEGACY?this.maxTextures=1:(this.maxTextures=Math.min(e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS),t.defaultMaxTextures),this.maxTextures=function(t,e){if(0===t)throw new Error("Invalid value of `0` passed to `checkMaxIfStatementsInShader`");const i=e.createShader(e.FRAGMENT_SHADER);for(;;){const r=Au.replace(/%forloop%/gi,Mu(t));if(e.shaderSource(i,r),e.compileShader(i),e.getShaderParameter(i,e.COMPILE_STATUS))break;t=t/2|0}return t}(this.maxTextures,e)),this._shader=this.shaderGenerator.generateShader(this.maxTextures);for(let t=0;t<this._packedGeometryPoolSize;t++)this._packedGeometries[t]=new this.geometryClass;this.initFlushBuffers()}initFlushBuffers(){const{_drawCallPool:e,_textureArrayPool:i}=t,r=this.size/4,n=Math.floor(r/this.maxTextures)+1;for(;e.length<r;)e.push(new Bu);for(;i.length<n;)i.push(new Fd);for(let t=0;t<this.maxTextures;t++)this._tempBoundTextures[t]=null}onPrerender(){this._flushId=0}render(t){t._texture.valid&&(this._vertexCount+t.vertexData.length/2>this.size&&this.flush(),this._vertexCount+=t.vertexData.length/2,this._indexCount+=t.indices.length,this._bufferedTextures[this._bufferSize]=t._texture.baseTexture,this._bufferedElements[this._bufferSize++]=t)}buildTexturesAndDrawCalls(){const{_bufferedTextures:e,maxTextures:i}=this,r=t._textureArrayPool,n=this.renderer.batch,s=this._tempBoundTextures,a=this.renderer.textureGC.count;let o=++Fu._globalBatch,l=0,h=r[0],c=0;n.copyBoundTextures(s,i);for(let t=0;t<this._bufferSize;++t){const u=e[t];e[t]=null,u._batchEnabled!==o&&(h.count>=i&&(n.boundArray(h,s,o,i),this.buildDrawCalls(h,c,t),c=t,h=r[++l],++o),u._batchEnabled=o,u.touched=a,h.elements[h.count++]=u)}h.count>0&&(n.boundArray(h,s,o,i),this.buildDrawCalls(h,c,this._bufferSize),++l,++o);for(let t=0;t<s.length;t++)s[t]=null;Fu._globalBatch=o}buildDrawCalls(e,i,r){const{_bufferedElements:n,_attributeBuffer:s,_indexBuffer:a,vertexSize:o}=this,l=t._drawCallPool;let h=this._dcIndex,c=this._aIndex,u=this._iIndex,d=l[h];d.start=this._iIndex,d.texArray=e;for(let t=i;t<r;++t){const r=n[t],p=r._texture.baseTexture,f=iu[p.alphaMode?1:0][r.blendMode];n[t]=null,i<t&&d.blend!==f&&(d.size=u-d.start,i=t,d=l[++h],d.texArray=e,d.start=u),this.packInterleavedGeometry(r,s,a,c,u),c+=r.vertexData.length/2*o,u+=r.indices.length,d.blend=f}i<r&&(d.size=u-d.start,++h),this._dcIndex=h,this._aIndex=c,this._iIndex=u}bindAndClearTexArray(t){const e=this.renderer.texture;for(let i=0;i<t.count;i++)e.bind(t.elements[i],t.ids[i]),t.elements[i]=null;t.count=0}updateGeometry(){const{_packedGeometries:e,_attributeBuffer:i,_indexBuffer:r}=this;t.canUploadSameBuffer?(e[this._flushId]._buffer.update(i.rawBinaryData),e[this._flushId]._indexBuffer.update(r),this.renderer.geometry.updateBuffers()):(this._packedGeometryPoolSize<=this._flushId&&(this._packedGeometryPoolSize++,e[this._flushId]=new this.geometryClass),e[this._flushId]._buffer.update(i.rawBinaryData),e[this._flushId]._indexBuffer.update(r),this.renderer.geometry.bind(e[this._flushId]),this.renderer.geometry.updateBuffers(),this._flushId++)}drawBatches(){const e=this._dcIndex,{gl:i,state:r}=this.renderer,n=t._drawCallPool;let s=null;for(let t=0;t<e;t++){const{texArray:e,type:a,size:o,start:l,blend:h}=n[t];s!==e&&(s=e,this.bindAndClearTexArray(e)),this.state.blendMode=h,r.set(this.state),i.drawElements(a,o,i.UNSIGNED_SHORT,2*l)}}flush(){0!==this._vertexCount&&(this._attributeBuffer=this.getAttributeBuffer(this._vertexCount),this._indexBuffer=this.getIndexBuffer(this._indexCount),this._aIndex=0,this._iIndex=0,this._dcIndex=0,this.buildTexturesAndDrawCalls(),this.updateGeometry(),this.drawBatches(),this._bufferSize=0,this._vertexCount=0,this._indexCount=0)}start(){this.renderer.state.set(this.state),this.renderer.texture.ensureSamplerType(this.maxTextures),this.renderer.shader.bind(this._shader),t.canUploadSameBuffer&&this.renderer.geometry.bind(this._packedGeometries[this._flushId])}stop(){this.flush()}destroy(){for(let t=0;t<this._packedGeometryPoolSize;t++)this._packedGeometries[t]&&this._packedGeometries[t].destroy();this.renderer.off("prerender",this.onPrerender,this),this._aBuffers=null,this._iBuffers=null,this._packedGeometries=null,this._attributeBuffer=null,this._indexBuffer=null,this._shader&&(this._shader.destroy(),this._shader=null),super.destroy()}getAttributeBuffer(t){const e=su(Math.ceil(t/8)),i=ou(e),r=8*e;this._aBuffers.length<=i&&(this._iBuffers.length=i+1);let n=this._aBuffers[r];return n||(this._aBuffers[r]=n=new Tu(r*this.vertexSize*4)),n}getIndexBuffer(t){const e=su(Math.ceil(t/12)),i=ou(e),r=12*e;this._iBuffers.length<=i&&(this._iBuffers.length=i+1);let n=this._iBuffers[i];return n||(this._iBuffers[i]=n=new Uint16Array(r)),n}packInterleavedGeometry(t,e,i,r,n){const{uint32View:s,float32View:a}=e,o=r/this.vertexSize,l=t.uvs,h=t.indices,c=t.vertexData,u=t._texture.baseTexture._batchLocation,d=Math.min(t.worldAlpha,1),p=eu.shared.setValue(t._tintRGB).toPremultiplied(d,t._texture.baseTexture.alphaMode>0);for(let t=0;t<c.length;t+=2)a[r++]=c[t],a[r++]=c[t+1],a[r++]=l[t],a[r++]=l[t+1],s[r++]=p,a[r++]=u;for(let t=0;t<h.length;t++)i[n++]=o+h[t]}};Nd.defaultBatchSize=4096,Nd.extension={name:"batch",type:bu.RendererPlugin},Nd._drawCallPool=[],Nd._textureArrayPool=[];let Vd=Nd;wu.add(Vd);const zd=class t extends Od{constructor(e,i,r){super(Id.from(e||t.defaultVertexSrc,i||t.defaultFragmentSrc),r),this.padding=0,this.resolution=t.defaultResolution,this.multisample=t.defaultMultisample,this.enabled=!0,this.autoFit=!0,this.state=new Pu}apply(t,e,i,r,n){t.applyFilter(this,e,i,r)}get blendMode(){return this.state.blendMode}set blendMode(t){this.state.blendMode=t}get resolution(){return this._resolution}set resolution(t){this._resolution=t}static get defaultVertexSrc(){return"attribute vec2 aVertexPosition;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nuniform vec4 inputSize;\nuniform vec4 outputFrame;\n\nvec4 filterVertexPosition( void )\n{\n    vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy;
2\n\n    return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);\n}\n\nvec2 filterTextureCoord( void )\n{\n    return aVertexPosition * (outputFrame.zw * inputSize.zw);\n}\n\nvoid main(void)\n{\n    gl_Position = filterVertexPosition();\n    vTextureCoord = filterTextureCoord();\n}\n"}static get defaultFragmentSrc(){return"varying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\n\nvoid main(void){\n   gl_FragColor = texture2D(uSampler, vTextureCoord);\n}\n"}};zd.defaultResolution=1,zd.defaultMultisample=Kh.NONE;let Gd=zd;class Ud{constructor(){this.clearBeforeRender=!0,this._backgroundColor=new eu(0),this.alpha=1}init(t){this.clearBeforeRender=t.clearBeforeRender;const{backgroundColor:e,background:i,backgroundAlpha:r}=t,n=i??e;void 0!==n&&(this.color=n),this.alpha=r}get color(){return this._backgroundColor.value}set color(t){this._backgroundColor.setValue(t)}get alpha(){return this._backgroundColor.alpha}set alpha(t){this._backgroundColor.setAlpha(t)}get backgroundColor(){return this._backgroundColor}destroy(){}}Ud.defaultOptions={backgroundAlpha:1,backgroundColor:0,clearBeforeRender:!0},Ud.extension={type:[bu.RendererSystem,bu.CanvasRendererSystem],name:"background"},wu.add(Ud);class Hd{constructor(t){this.renderer=t,this.emptyRenderer=new Bd(t),this.currentRenderer=this.emptyRenderer}setObjectRenderer(t){this.currentRenderer!==t&&(this.currentRenderer.stop(),this.currentRenderer=t,this.currentRenderer.start())}flush(){this.setObjectRenderer(this.emptyRenderer)}reset(){this.setObjectRenderer(this.emptyRenderer)}copyBoundTextures(t,e){const{boundTextures:i}=this.renderer.texture;for(let r=e-1;r>=0;--r)t[r]=i[r]||null,t[r]&&(t[r]._batchLocation=r)}boundArray(t,e,i,r){const{elements:n,ids:s,count:a}=t;let o=0;for(let t=0;t<a;t++){const a=n[t],l=a._batchLocation;if(l>=0&&l<r&&e[l]===a)s[t]=l;else for(;o<r;){const r=e[o];if(!r||r._batchEnabled!==i||r._batchLocation!==o){s[t]=o,a._batchLocation=o,e[o]=a;break}o++}}}destroy(){this.renderer=null}}Hd.extension={type:bu.RendererSystem,name:"batch"},wu.add(Hd);let jd=0;class Wd{constructor(t){this.renderer=t,this.webGLVersion=1,this.extensions={},this.supports={uint32Indices:!1},this.handleContextLost=this.handleContextLost.bind(this),this.handleContextRestored=this.handleContextRestored.bind(this)}get isLost(){return!this.gl||this.gl.isContextLost()}contextChange(t){this.gl=t,this.renderer.gl=t,this.renderer.CONTEXT_UID=jd++}init(t){if(t.context)this.initFromContext(t.context);else{const e=this.renderer.background.alpha<1,i=t.premultipliedAlpha;this.preserveDrawingBuffer=t.preserveDrawingBuffer,this.useContextAlpha=t.useContextAlpha,this.powerPreference=t.powerPreference,this.initFromOptions({alpha:e,premultipliedAlpha:i,antialias:t.antialias,stencil:!0,preserveDrawingBuffer:t.preserveDrawingBuffer,powerPreference:t.powerPreference})}}initFromContext(t){this.gl=t,this.validateContext(t),this.renderer.gl=t,this.renderer.CONTEXT_UID=jd++,this.renderer.runners.contextChange.emit(t);const e=this.renderer.view;void 0!==e.addEventListener&&(e.addEventListener("webglcontextlost",this.handleContextLost,!1),e.addEventListener("webglcontextrestored",this.handleContextRestored,!1))}initFromOptions(t){const e=this.createContext(this.renderer.view,t);this.initFromContext(e)}createContext(t,e){let i;if(Jh.PREFER_ENV>=Rh.WEBGL2&&(i=t.getContext("webgl2",e)),i)this.webGLVersion=2;else if(this.webGLVersion=1,i=t.getContext("webgl",e)||t.getContext("experimental-webgl",e),!i)throw new Error("This browser does not support WebGL. Try using the canvas renderer");return this.gl=i,this.getExtensions(),this.gl}getExtensions(){const{gl:t}=this,e={loseContext:t.getExtension("WEBGL_lose_context"),anisotropicFiltering:t.getExtension("EXT_texture_filter_anisotropic"),floatTextureLinear:t.getExtension("OES_texture_float_linear"),s3tc:t.getExtension("WEBGL_compressed_texture_s3tc"),s3tc_sRGB:t.getExtension("WEBGL_compressed_texture_s3tc_srgb"),etc:t.getExtension("WEBGL_compressed_texture_etc"),etc1:t.getExtension("WEBGL_compressed_texture_etc1"),pvrtc:t.getExtension("WEBGL_compressed_texture_pvrtc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),atc:t.getExtension("WEBGL_compressed_texture_atc"),astc:t.getExtension("WEBGL_compressed_texture_astc"),bptc:t.getExtension("EXT_texture_compression_bptc")};1===this.webGLVersion?Object.assign(this.extensions,e,{drawBuffers:t.getExtension("WEBGL_draw_buffers"),depthTexture:t.getExtension("WEBGL_depth_texture"),vertexArrayObject:t.getExtension("OES_vertex_array_object")||t.getExtension("MOZ_OES_vertex_array_object")||t.getExtension("WEBKIT_OES_vertex_array_object"),uint32ElementIndex:t.getExtension("OES_element_index_uint"),floatTexture:t.getExtension("OES_texture_float"),floatTextureLinear:t.getExtension("OES_texture_float_linear"),textureHalfFloat:t.getExtension("OES_texture_half_float"),textureHalfFloatLinear:t.getExtension("OES_texture_half_float_linear")}):2===this.webGLVersion&&Object.assign(this.extensions,e,{colorBufferFloat:t.getExtension("EXT_color_buffer_float")})}handleContextLost(t){t.preventDefault(),setTimeout((()=>{this.gl.isContextLost()&&this.extensions.loseContext&&this.extensions.loseContext.restoreContext()}),0)}handleContextRestored(){this.renderer.runners.contextChange.emit(this.gl)}destroy(){const t=this.renderer.view;this.renderer=null,void 0!==t.removeEventListener&&(t.removeEventListener("webglcontextlost",this.handleContextLost),t.removeEventListener("webglcontextrestored",this.handleContextRestored)),this.gl.useProgram(null),this.extensions.loseContext&&this.extensions.loseContext.loseContext()}postrender(){this.renderer.objectRenderer.renderingToScreen&&this.gl.flush()}validateContext(t){const e=t.getContextAttributes(),i="WebGL2RenderingContext"in globalThis&&t instanceof globalThis.WebGL2RenderingContext;i&&(this.webGLVersion=2),e&&!e.stencil&&console.warn("Provided WebGL context does not have a stencil buffer, masks may not render correctly");const r=i||!!t.getExtension("OES_element_index_uint");this.supports.uint32Indices=r,r||console.warn("Provided WebGL context does not support 32 index buffer, complex graphics may not render correctly")}}Wd.defaultOptions={context:null,antialias:!1,premultipliedAlpha:!0,preserveDrawingBuffer:!1,powerPreference:"default"},Wd.extension={type:bu.RendererSystem,name:"context"},wu.add(Wd);class Xd{constructor(t,e){if(this.width=Math.round(t),this.height=Math.round(e),!this.width||!this.height)throw new Error("Framebuffer width or height is zero");this.stencil=!1,this.depth=!1,this.dirtyId=0,this.dirtyFormat=0,this.dirtySize=0,this.depthTexture=null,this.colorTextures=[],this.glFramebuffers={},this.disposeRunner=new Iu("disposeFramebuffer"),this.multisample=Kh.NONE}get colorTexture(){return this.colorTextures[0]}addColorTexture(t=0,e){return this.colorTextures[t]=e||new Fu(null,{scaleMode:Uh.NEAREST,resolution:1,mipmap:jh.OFF,width:this.width,height:this.height}),this.dirtyId++,this.dirtyFormat++,this}addDepthTexture(t){return this.depthTexture=t||new Fu(null,{scaleMode:Uh.NEAREST,resolution:1,width:this.width,height:this.height,mipmap:jh.OFF,format:Nh.DEPTH_COMPONENT,type:zh.UNSIGNED_SHORT}),this.dirtyId++,this.dirtyFormat++,this}enableDepth(){return this.depth=!0,this.dirtyId++,this.dirtyFormat++,this}enableStencil(){return this.stencil=!0,this.dirtyId++,this.dirtyFormat++,this}resize(t,e){if(t=Math.round(t),e=Math.round(e),!t||!e)throw new Error("Framebuffer width and height must not be zero");if(t!==this.width||e!==this.height){this.width=t,this.height=e,this.dirtyId++,this.dirtySize++;for(let i=0;i<this.colorTextures.length;i++){const r=this.colorTextures[i],n=r.resolution;r.setSize(t/n,e/n)}if(this.depthTexture){const i=this.depthTexture.resolution;this.depthTexture.setSize(t/i,e/i)}}}dispose(){this.disposeRunner.emit(this,!1)}destroyDepthTexture(){this.depthTexture&&(this.depthTexture.destroy(),this.depthTexture=null,++this.dirtyId,++this.dirtyFormat)}}class $d extends Fu{constructor(t={}){"number"==typeof t&&(t={width:arguments[0],height:arguments[1],scaleMode:arguments[2],resolution:arguments[3]}),t.width=t.width??100,t.height=t.height??100,t.multisample??(t.multisample=Kh.NONE),super(null,t),this.mipmap=jh.OFF,this.valid=!0,this._clear=new eu([0,0,0,0]),this.framebuffer=new Xd(this.realWidth,this.realHeight).addColorTexture(0,this),this.framebuffer.multisample=t.multisample,this.maskStack=[],this.filterStack=[{}]}set clearColor(t){this._clear.setValue(t)}get clearColor(){return this._clear.value}get clear(){return this._clear}get multisample(){return this.framebuffer.multisample}set multisample(t){this.framebuffer.multisample=t}resize(t,e){this.framebuffer.resize(t*this.resolution,e*this.resolution),this.setRealSize(this.framebuffer.width,this.framebuffer.he
2ight)}dispose(){this.framebuffer.dispose(),super.dispose()}destroy(){super.destroy(),this.framebuffer.destroyDepthTexture(),this.framebuffer=null}}class Yd extends Du{constructor(t){const e=t;super(e.naturalWidth||e.videoWidth||e.displayWidth||e.width,e.naturalHeight||e.videoHeight||e.displayHeight||e.height),this.source=t,this.noSubImage=!1}static crossOrigin(t,e,i){void 0!==i||e.startsWith("data:")?!1!==i&&(t.crossOrigin="string"==typeof i?i:"anonymous"):t.crossOrigin=function(t,e=globalThis.location){if(t.startsWith("data:"))return"";e=e||globalThis.location;const i=new URL(t,document.baseURI);return i.hostname!==e.hostname||i.port!==e.port||i.protocol!==e.protocol?"anonymous":""}(e)}upload(t,e,i,r){const n=t.gl,s=e.realWidth,a=e.realHeight;if(r=r||this.source,typeof HTMLImageElement<"u"&&r instanceof HTMLImageElement){if(!r.complete||0===r.naturalWidth)return!1}else if(typeof HTMLVideoElement<"u"&&r instanceof HTMLVideoElement&&r.readyState<=1)return!1;return n.pixelStorei(n.UNPACK_PREMULTIPLY_ALPHA_WEBGL,e.alphaMode===Wh.UNPACK),this.noSubImage||e.target!==n.TEXTURE_2D||i.width!==s||i.height!==a?(i.width=s,i.height=a,n.texImage2D(e.target,0,i.internalFormat,e.format,i.type,r)):n.texSubImage2D(n.TEXTURE_2D,0,0,0,e.format,i.type,r),!0}update(){if(this.destroyed)return;const t=this.source,e=t.naturalWidth||t.videoWidth||t.width,i=t.naturalHeight||t.videoHeight||t.height;this.resize(e,i),super.update()}dispose(){this.source=null}}class qd extends Yd{constructor(t,e){if(e=e||{},"string"==typeof t){const i=new Image;Yd.crossOrigin(i,t,e.crossorigin),i.src=t,t=i}super(t),!t.complete&&this._width&&this._height&&(this._width=0,this._height=0),this.url=t.src,this._process=null,this.preserveBitmap=!1,this.createBitmap=(e.createBitmap??Jh.CREATE_IMAGE_BITMAP)&&!!globalThis.createImageBitmap,this.alphaMode="number"==typeof e.alphaMode?e.alphaMode:null,this.bitmap=null,this._load=null,!1!==e.autoLoad&&this.load()}load(t){return this._load||(void 0!==t&&(this.createBitmap=t),this._load=new Promise(((t,e)=>{const i=this.source;this.url=i.src;const r=()=>{this.destroyed||(i.onload=null,i.onerror=null,this.update(),this._load=null,this.createBitmap?t(this.process()):t(this))};i.complete&&i.src?r():(i.onload=r,i.onerror=t=>{e(t),this.onError.emit(t)})}))),this._load}process(){const t=this.source;if(null!==this._process)return this._process;if(null!==this.bitmap||!globalThis.createImageBitmap)return Promise.resolve(this);const e=globalThis.createImageBitmap,i=!t.crossOrigin||"anonymous"===t.crossOrigin;return this._process=fetch(t.src,{mode:i?"cors":"no-cors"}).then((t=>t.blob())).then((i=>e(i,0,0,t.width,t.height,{premultiplyAlpha:null===this.alphaMode||this.alphaMode===Wh.UNPACK?"premultiply":"none"}))).then((t=>this.destroyed?Promise.reject():(this.bitmap=t,this.update(),this._process=null,Promise.resolve(this)))),this._process}upload(t,e,i){if("number"==typeof this.alphaMode&&(e.alphaMode=this.alphaMode),!this.createBitmap)return super.upload(t,e,i);if(!this.bitmap&&(this.process(),!this.bitmap))return!1;if(super.upload(t,e,i,this.bitmap),!this.preserveBitmap){let t=!0;const r=e._glTextures;for(const n in r){const s=r[n];if(s!==i&&s.dirtyId!==e.dirtyId){t=!1;break}}t&&(this.bitmap.close&&this.bitmap.close(),this.bitmap=null)}return!0}dispose(){this.source.onload=null,this.source.onerror=null,super.dispose(),this.bitmap&&(this.bitmap.close(),this.bitmap=null),this._process=null,this._load=null}static test(t){return typeof HTMLImageElement<"u"&&("string"==typeof t||t instanceof HTMLImageElement)}}class Kd{constructor(){this.x0=0,this.y0=0,this.x1=1,this.y1=0,this.x2=1,this.y2=1,this.x3=0,this.y3=1,this.uvsFloat32=new Float32Array(8)}set(t,e,i){const r=e.width,n=e.height;if(i){const e=t.width/2/r,s=t.height/2/n,a=t.x/r+e,o=t.y/n+s;i=dd.add(i,dd.NW),this.x0=a+e*dd.uX(i),this.y0=o+s*dd.uY(i),i=dd.add(i,2),this.x1=a+e*dd.uX(i),this.y1=o+s*dd.uY(i),i=dd.add(i,2),this.x2=a+e*dd.uX(i),this.y2=o+s*dd.uY(i),i=dd.add(i,2),this.x3=a+e*dd.uX(i),this.y3=o+s*dd.uY(i)}else this.x0=t.x/r,this.y0=t.y/n,this.x1=(t.x+t.width)/r,this.y1=t.y/n,this.x2=(t.x+t.width)/r,this.y2=(t.y+t.height)/n,this.x3=t.x/r,this.y3=(t.y+t.height)/n;this.uvsFloat32[0]=this.x0,this.uvsFloat32[1]=this.y0,this.uvsFloat32[2]=this.x1,this.uvsFloat32[3]=this.y1,this.uvsFloat32[4]=this.x2,this.uvsFloat32[5]=this.y2,this.uvsFloat32[6]=this.x3,this.uvsFloat32[7]=this.y3}}Kd.prototype.toString=function(){return`[@pixi/core:TextureUvs x0=${this.x0} y0=${this.y0} x1=${this.x1} y1=${this.y1} x2=${this.x2} y2=${this.y2} x3=${this.x3} y3=${this.y3}]`};const Zd=new Kd;function Jd(t){t.destroy=function(){},t.on=function(){},t.once=function(){},t.emit=function(){}}class Qd extends yc{constructor(t,e,i,r,n,s,a){if(super(),this.noFrame=!1,e||(this.noFrame=!0,e=new Qu(0,0,1,1)),t instanceof Qd&&(t=t.baseTexture),this.baseTexture=t,this._frame=e,this.trim=r,this.valid=!1,this.destroyed=!1,this._uvs=Zd,this.uvMatrix=null,this.orig=i||e,this._rotate=Number(n||0),!0===n)this._rotate=2;else if(this._rotate%2!=0)throw new Error("attempt to use diamond-shaped UVs. If you are sure, set rotation manually");this.defaultAnchor=s?new Zu(s.x,s.y):new Zu(0,0),this.defaultBorders=a,this._updateID=0,this.textureCacheIds=[],t.valid?this.noFrame?t.valid&&this.onBaseTextureUpdated(t):this.frame=e:t.once("loaded",this.onBaseTextureUpdated,this),this.noFrame&&t.on("update",this.onBaseTextureUpdated,this)}update(){this.baseTexture.resource&&this.baseTexture.resource.update(
vendor: 25,934 bytes, line 2
2)}onBaseTextureUpdated(t){if(this.noFrame){if(!this.baseTexture.valid)return;this._frame.width=t.width,this._frame.height=t.height,this.valid=!0,this.updateUvs()}else this.frame=this._frame;this.emit("update",this)}destroy(t){if(this.baseTexture){if(t){const{resource:t}=this.baseTexture;t?.url&&mu[t.url]&&Qd.removeFromCache(t.url),this.baseTexture.destroy()}this.baseTexture.off("loaded",this.onBaseTextureUpdated,this),this.baseTexture.off("update",this.onBaseTextureUpdated,this),this.baseTexture=null}this._frame=null,this._uvs=null,this.trim=null,this.orig=null,this.valid=!1,Qd.removeFromCache(this),this.textureCacheIds=null,this.destroyed=!0,this.emit("destroyed",this),this.removeAllListeners()}clone(){const t=this._frame.clone(),e=this._frame===this.orig?t:this.orig.clone(),i=new Qd(this.baseTexture,!this.noFrame&&t,e,this.trim?.clone(),this.rotate,this.defaultAnchor,this.defaultBorders);return this.noFrame&&(i._frame=t),i}updateUvs(){this._uvs===Zd&&(this._uvs=new Kd),this._uvs.set(this._frame,this.baseTexture,this.rotate),this._updateID++}static from(t,e={},i=Jh.STRICT_TEXTURE_CACHE){const r="string"==typeof t;let n=null;if(r)n=t;else if(t instanceof Fu){if(!t.cacheId){const i=e?.pixiIdPrefix||"pixiid";t.cacheId=`${i}-${uu()}`,Fu.addToCache(t,t.cacheId)}n=t.cacheId}else{if(!t._pixiId){const i=e?.pixiIdPrefix||"pixiid";t._pixiId=`${i}_${uu()}`}n=t._pixiId}let s=mu[n];if(r&&i&&!s)throw new Error(`The cacheId "${n}" does not exist in TextureCache.`);return s||t instanceof Fu?!s&&t instanceof Fu&&(s=new Qd(t),Qd.addToCache(s,n)):(e.resolution||(e.resolution=_u(t)),s=new Qd(new Fu(t,e)),s.baseTexture.cacheId=n,Fu.addToCache(s.baseTexture,n),Qd.addToCache(s,n)),s}static fromURL(t,e){const i=Object.assign({autoLoad:!1},e?.resourceOptions),r=Qd.from(t,Object.assign({resourceOptions:i},e),!1),n=r.baseTexture.resource;return r.baseTexture.valid?Promise.resolve(r):n.load().then((()=>Promise.resolve(r)))}static fromBuffer(t,e,i,r){return new Qd(Fu.fromBuffer(t,e,i,r))}static fromLoader(t,e,i,r){const n=new Fu(t,Object.assign({scaleMode:Fu.defaultOptions.scaleMode,resolution:_u(e)},r)),{resource:s}=n;s instanceof qd&&(s.url=e);const a=new Qd(n);return i||(i=e),Fu.addToCache(a.baseTexture,i),Qd.addToCache(a,i),i!==e&&(Fu.addToCache(a.baseTexture,e),Qd.addToCache(a,e)),a.baseTexture.valid?Promise.resolve(a):new Promise((t=>{a.baseTexture.once("loaded",(()=>t(a)))}))}static addToCache(t,e){e&&(t.textureCacheIds.includes(e)||t.textureCacheIds.push(e),mu[e]&&mu[e]!==t&&console.warn(`Texture added to the cache with an id [${e}] that already had an entry`),mu[e]=t)}static removeFromCache(t){if("string"==typeof t){const e=mu[t];if(e){const i=e.textureCacheIds.indexOf(t);return i>-1&&e.textureCacheIds.splice(i,1),delete mu[t],e}}else if(t?.textureCacheIds){for(let e=0;e<t.textureCacheIds.length;++e)mu[t.textureCacheIds[e]]===t&&delete mu[t.textureCacheIds[e]];return t.textureCacheIds.length=0,t}return null}get resolution(){return this.baseTexture.resolution}get frame(){return this._frame}set frame(t){this._frame=t,this.noFrame=!1;const{x:e,y:i,width:r,height:n}=t,s=e+r>this.baseTexture.width,a=i+n>this.baseTexture.height;if(s||a){const t=s&&a?"and":"or",o=`X: ${e} + ${r} = ${e+r} > ${this.baseTexture.width}`,l=`Y: ${i} + ${n} = ${i+n} > ${this.baseTexture.height}`;throw new Error(`Texture Error: frame does not fit inside the base Texture dimensions: ${o} ${t} ${l}`)}this.valid=r&&n&&this.baseTexture.valid,!this.trim&&!this.rotate&&(this.orig=t),this.valid&&this.updateUvs()}get rotate(){return this._rotate}set rotate(t){this._rotate=t,this.valid&&this.updateUvs()}get width(){return this.orig.width}get height(){return this.orig.height}castToBaseTexture(){return this.baseTexture}static get EMPTY(){return Qd._EMPTY||(Qd._EMPTY=new Qd(new Fu),Jd(Qd._EMPTY),Jd(Qd._EMPTY.baseTexture)),Qd._EMPTY}static get WHITE(){if(!Qd._WHITE){const t=Jh.ADAPTER.createCanvas(16,16),e=t.getContext("2d");t.width=16,t.height=16,e.fillStyle="white",e.fillRect(0,0,16,16),Qd._WHITE=new Qd(Fu.from(t)),Jd(Qd._WHITE),Jd(Qd._WHITE.baseTexture)}return Qd._WHITE}}class tp extends Qd{constructor(t,e){super(t,e),this.valid=!0,this.filterFrame=null,this.filterPoolKey=null,this.updateUvs()}get framebuffer(){return this.baseTexture.framebuffer}get multisample(){return this.framebuffer.multisample}set multisample(t){this.framebuffer.multisample=t}resize(t,e,i=!0){const r=this.baseTexture.resolution,n=Math.round(t*r)/r,s=Math.round(e*r)/r;this.valid=n>0&&s>0,this._frame.width=this.orig.width=n,this._frame.height=this.orig.height=s,i&&this.baseTexture.resize(n,s),this.updateUvs()}setResolution(t){const{baseTexture:e}=this;e.resolution!==t&&(e.setResolution(t),this.resize(e.width,e.height,!1))}static create(t){return new tp(new $d(t))}}class ep{constructor(t){this.texturePool={},this.textureOptions=t||{},this.enableFullScreen=!1,this._pixelsWidth=0,this._pixelsHeight=0}createTexture(t,e,i=Kh.NONE){const r=new $d(Object.assign({width:t,height:e,resolution:1,multisample:i},this.textureOptions));return new tp(r)}getOptimalTexture(t,e,i=1,r=Kh.NONE){let n;t=Math.max(Math.ceil(t*i-1e-6),1),e=Math.max(Math.ceil(e*i-1e-6),1),this.enableFullScreen&&t===this._pixelsWidth&&e===this._pixelsHeight?n=r>1?-r:-1:(n=((65535&(t=su(t)))<<16|65535&(e=su(e)))>>>0,r>1&&(n+=4294967296*r)),this.texturePool[n]||(this.texturePool[n]=[]);let s=this.texturePool[n].pop();return s||(s=this.createTexture(t,e,r)),s.filterPoolKey=n,s.setResolution(i),s}getFilterTexture(t,e,i){const r=this.getOptimalTexture(t.width,t.height,e||t.resolution,i||Kh.NONE);return r.filterFrame=t.filterFrame,r}returnTexture(t){const e=t.filterPoolKey;t.filterFrame=null,this.texturePool[e].push(t)}returnFilterTexture(t){this.returnTexture(t)}clear(t){if(t=!1!==t)for(const t in this.texturePool){const e=this.texturePool[t];if(e)for(let t=0;t<e.length;t++)e[t].destroy(!0)}this.texturePool={}}setScreenSize(t){if(t.width!==this._pixelsWidth||t.height!==this._pixelsHeight){this.enableFullScreen=t.width>0&&t.height>0;for(const t in this.texturePool){if(!(Number(t)<0))continue;const e=this.texturePool[t];if(e)for(let t=0;t<e.length;t++)e[t].destroy(!0);this.texturePool[t]=[]}this._pixelsWidth=t.width,this._pixelsHeight=t.height}}}ep.SCREEN_KEY=-1;class ip extends Wu{constructor(){super(),this.addAttribute("aVertexPosition",new Float32Array([0,0,1,0,1,1,0,1])).addIndex([0,1,3,2])}}class rp extends Wu{constructor(){super(),this.vertices=new Float32Array([-1,-1,1,-1,1,1,-1,1]),this.uvs=new Float32Array([0,0,1,0,1,1,0,1]),this.vertexBuffer=new Vu(this.vertices),this.uvBuffer=new Vu(this.uvs),this.addAttribute("aVertexPosition",this.vertexBuffer).addAttribute("aTextureCoord",this.uvBuffer).addIndex([0,1,2,0,2,3])}map(t,e){let i=0,r=0;return this.uvs[0]=i,this.uvs[1]=r,this.uvs[2]=i+e.width/t.width,this.uvs[3]=r,this.uvs[4]=i+e.width/t.width,this.uvs[5]=r+e.height/t.height,this.uvs[6]=i,this.uvs[7]=r+e.height/t.height,i=e.x,r=e.y,this.vertices[0]=i,this.vertices[1]=r,this.vertices[2]=i+e.width,this.vertices[3]=r,this.vertices[4]=i+e.width,this.vertices[5]=r+e.height,this.vertices[6]=i,this.vertices[7]=r+e.height,this.invalidate(),this}invalidate(){return this.vertexBuffer._updateID++,this.uvBuffer._updateID++,this}}class np{constructor(){this.renderTexture=null,this.target=null,this.legacy=!1,this.resolution=1,this.multisample=Kh.NONE,this.sourceFrame=new Qu,this.destinationFrame=new Qu,this.bindingSourceFrame=new Qu,this.bindingDestinationFrame=new Qu,this.filters=[],this.transform=null}clear(){this.target=null,this.filters=null,this.renderTexture=null}}const sp=[new Zu,new Zu,new Zu,new Zu],ap=new nd;class op{constructor(t){this.renderer=t,this.defaultFilterStack=[{}],this.texturePool=new ep,this.statePool=[],this.quad=new ip,this.quadUv=new rp,this.tempRect=new Qu,this.activeState={},this.globalUniforms=new Rd({outputFrame:new Qu,inputSize:new Float32Array(4),inputPixel:new Float32Array(4),inputClamp:new Float32Array(4),resolution:1,filterArea:new Float32Array(4),filterClamp:new Float32Array(4)},!0),this.forceClear=!1,this.useMaxPadding=!1}init(){this.texturePool.setScreenSize(this.renderer.view)}push(t,e){const i=this.renderer,r=this.defaultFilterStack,n=this.statePool.pop()||new np,s=i.renderTexture;let a,o;if(s.current){const t=s.current;a=t.resolution,o=t.multisample}else a=i.resolution,o=i.multisample;let l=e[0].resolution||a,h=e[0].multisample??o,c=e[0].padding,u=e[0].autoFit,d=e[0].legacy??!0;for(let t=1;t<e.length;t++){const i=e[t];l=Math.min(l,i.resolution||a),h=Math.min(h,i.multisample??o),c=this.useMaxPadding?Math.max(c,i.padding):c+i.padding,u=u&&i.autoFit,d=d||(i.legacy??!0)}1===r.length&&(this.defaultFilterStack[0].renderTexture=s.current),r.push(n),n.resolution=l,n.multisample=h,n.legacy=d,n.target=t,n.sourceFrame.copyFrom(t.filterArea||t.getBounds(!0)),n.sourceFrame.pad(c);const p=this.tempRect.copyFrom(s.sourceFrame);i.projection.transform&&this.transformAABB(ap.copyFrom(i.projection.transform).invert(),p),u?(n.sourceFrame.fit(p),(n.sourceFrame.width<=0||n.sourceFrame.height<=0)&&(n.sourceFrame.width=0,n.sourceFrame.height=0)):n.sourceFrame.intersects(p)||(n.sourceFrame.width=0,n.sourceFrame.height=0),this.roundFrame(n.sourceFrame,s.current?s.current.resolution:i.resolution,s.sourceFrame,s.destinationFrame,i.projection.transform),n.renderTexture=this.getOptimalFilterTexture(n.sourceFrame.width,n.sourceFrame.height,l,h),n.filters=e,n.destinationFrame.width=n.renderTexture.width,n.destinationFrame.height=n.renderTexture.height;const f=this.tempRect;f.x=0,f.y=0,f.width=n.sourceFrame.width,f.height=n.sourceFrame.height,n.renderTexture.filterFrame=n.sourceFrame,n.bindingSourceFrame.copyFrom(s.sourceFrame),n.bindingDestinationFrame.copyFrom(s.destinationFrame),n.transform=i.projection.transform,i.projection.transform=null,s.bind(n.renderTexture,n.sourceFrame,f),i.framebuffer.clear(0,0,0,0)}pop(){const t=this.defaultFilterStack,e=t.pop(),i=e.filters;this.activeState=e;const r=this.globalUniforms.uniforms;r.outputFrame=e.sourceFrame,r.resolution=e.resolution;const n=r.inputSize,s=r.inputPixel,a=r.inputClamp;if(n[0]=e.destinationFrame.width,n[1]=e.destinationFrame.height,n[2]=1/n[0],n[3]=1/n[1],s[0]=Math.round(n[0]*e.resolution),s[1]=Math.round(n[1]*e.resolution),s[2]=1/s[0],s[3]=1/s[1],a[0]=.5*s[2],a[1]=.5*s[3],a[2]=e.sourceFrame.width*n[2]-.5*s[2],a[3]=e.sourceFrame.height*n[3]-.5*s[3],e.legacy){const t=r.filterArea;t[0]=e.destinationFrame.width,t[1]=e.destinationFrame.height,t[2]=e.sourceFrame.x,t[3]=e.sourceFrame.y,r.filterClamp=r.inputClamp}this.globalUniforms.update();const o=t[t.length-1];if(this.renderer.framebuffer.blit(),1===i.length)i[0].apply(this,e.renderTexture,o.renderTexture,Xh.BLEND,e),this.returnFilterTexture(e.renderTexture);else{let t=e.renderTexture,r=this.getOptimalFilterTexture(t.width,t.height,e.resolution);r.filterFrame=t.filterFrame;let n=0;for(n=0;n<i.length-1;++n){1===n&&e.multisample>1&&(r=this.getOptimalFilterTexture(t.width,t.height,e.resolution),r.filterFrame=t.filterFrame),i[n].apply(this,t,r,Xh.CLEAR,e);const s=t;t=r,r=s}i[n].apply(this,t,o.renderTexture,Xh.BLEND,e),n>1&&e.multisample>1&&this.returnFilterTexture(e.renderTexture),this.returnFilterTexture(t),this.returnFilterTexture(r)}e.clear(),this.statePool.push(e)}bindAndClear(t,e=Xh.CLEAR){const{renderTexture:i,state:r}=this.renderer;if(t===this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?this.renderer.projection.transform=this.activeState.transform:this.renderer.projection.transform=null,t?.filterFrame){const e=this.tempRect;e.x=0,e.y=0,e.width=t.filterFrame.width,e.height=t.filterFrame.height,i.bind(t,t.filterFrame,e)}else t!==this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?i.bind(t):this.renderer.renderTexture.bind(t,this.activeState.bindingSourceFrame,this.activeState.bindingDestinationFrame);const n=1&r.stateId||this.forceClear;(e===Xh.CLEAR||e===Xh.BLIT&&n)&&this.renderer.framebuffer.clear(0,0,0,0)}applyFilter(t,e,i,r){const n=this.renderer;n.state.set(t.state),this.bindAndClear(i,r),t.uniforms.uSampler=e,t.uniforms.filterGlobals=this.globalUniforms,n.shader.bind(t),t.legacy=!!t.program.attributeData.aTextureCoord,t.legacy?(this.quadUv.map(e._frame,e.filterFrame),n.geometry.bind(this.quadUv),n.geometry.draw(Bh.TRIANGLES)):(n.geometry.bind(this.quad),n.geometry.draw(Bh.TRIANGLE_STRIP))}calculateSpriteMatrix(t,e){const{sourceFrame:i,destinationFrame:r}=this.activeState,{orig:n}=e._texture,s=t.set(r.width,0,0,r.height,i.x,i.y),a=e.worldTransform.copyTo(nd.TEMP_MATRIX);return a.invert(),s.prepend(a),s.scale(1/n.width,1/n.height),s.translate(e.anchor.x,e.anchor.y),s}destroy(){this.renderer=null,this.texturePool.clear(!1)}getOptimalFilterTexture(t,e,i=1,r=Kh.NONE){return this.texturePool.getOptimalTexture(t,e,i,r)}getFilterTexture(t,e,i){if("number"==typeof t){const i=t;t=e,e=i}t=t||this.activeState.renderTexture;const r=this.texturePool.getOptimalTexture(t.width,t.height,e||t.resolution,i||Kh.NONE);return r.filterFrame=t.filterFrame,r}returnFilterTexture(t){this.texturePool.returnTexture(t)}emptyPool(){this.texturePool.clear(!0)}resize(){this.texturePool.setScreenSize(this.renderer.view)}transformAABB(t,e){const i=sp[0],r=sp[1],n=sp[2],s=sp[3];i.set(e.left,e.top),r.set(e.left,e.bottom),n.set(e.right,e.top),s.set(e.right,e.bottom),t.apply(i,i),t.apply(r,r),t.apply(n,n),t.apply(s,s);const a=Math.min(i.x,r.x,n.x,s.x),o=Math.min(i.y,r.y,n.y,s.y),l=Math.max(i.x,r.x,n.x,s.x),h=Math.max(i.y,r.y,n.y,s.y);e.x=a,e.y=o,e.width=l-a,e.height=h-o}roundFrame(t,e,i,r,n){if(!(t.width<=0||t.height<=0||i.width<=0||i.height<=0)){if(n){const{a:t,b:e,c:i,d:r}=n;if((Math.abs(e)>1e-4||Math.abs(i)>1e-4)&&(Math.abs(t)>1e-4||Math.abs(r)>1e-4))return}(n=n?ap.copyFrom(n):ap.identity()).translate(-i.x,-i.y).scale(r.width/i.width,r.height/i.height).translate(r.x,r.y),this.transformAABB(n,t),t.ceil(e),this.transformAABB(n.invert(),t)}}}op.extension={type:bu.RendererSystem,name:"filter"},wu.add(op);class lp{constructor(t){this.framebuffer=t,this.stencil=null,this.dirtyId=-1,this.dirtyFormat=-1,this.dirtySize=-1,this.multisample=Kh.NONE,this.msaaBuffer=null,this.blitFramebuffer=null,this.mipLevel=0}}const hp=new Qu;class cp{constructor(t){this.renderer=t,this.managedFramebuffers=[],this.unknownFramebuffer=new Xd(10,10),this.msaaSamples=null}contextChange(){this.disposeAll(!0);const t=this.gl=this.renderer.gl;if(this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.current=this.unknownFramebuffer,this.viewport=new Qu,this.hasMRT=!0,this.writeDepthTexture=!0,1===this.renderer.context.webGLVersion){let e=this.renderer.context.extensions.drawBuffers,i=this.renderer.context.extensions.depthTexture;Jh.PREFER_ENV===Rh.WEBGL_LEGACY&&(e=null,i=null),e?t.drawBuffers=t=>e.drawBuffersWEBGL(t):(this.hasMRT=!1,t.drawBuffers=()=>{}),i||(this.writeDepthTexture=!1)}else this.msaaSamples=t.getInternalformatParameter(t.RENDERBUFFER,t.RGBA8,t.SAMPLES)}bind(t,e,i=0){const{gl:r}=this;if(t){const n=t.glFramebuffers[this.CONTEXT_UID]||this.initFramebuffer(t);this.current!==t&&(this.current=t,r.bindFramebuffer(r.FRAMEBUFFER,n.framebuffer)),n.mipLevel!==i&&(t.dirtyId++,t.dirtyFormat++,n.mipLevel=i),n.dirtyId!==t.dirtyId&&(n.dirtyId=t.dirtyId,n.dirtyFormat!==t.dirtyFormat?(n.dirtyFormat=t.dirtyFormat,n.dirtySize=t.dirtySize,this.updateFramebuffer(t,i)):n.dirtySize!==t.dirtySize&&(n.dirtySize=t.dirtySize,this.resizeFramebuffer(t)));for(let e=0;e<t.colorTextures.length;e++){const i=t.colorTextures[e];this.renderer.texture.unbind(i.parentTextureArray||i)}if(t.depthTexture&&this.renderer.texture.unbind(t.depthTexture),e){const t=e.width>>i,r=e.height>>i,n=t/e.width;this.setViewport(e.x*n,e.y*n,t,r)}else{const e=t.width>>i,r=t.height>>i;this.setViewport(0,0,e,r)}}else this.current&&(this.current=null,r.bindFramebuffer(r.FRAMEBUFFER,null)),e?this.setViewport(e.x,e.y,e.width,e.height):this.setViewport(0,0,this.renderer.width,this.renderer.height)}setViewport(t,e,i,r){const n=this.viewport;t=Math.round(t),e=Math.round(e),i=Math.round(i),r=Math.round(r),(n.width!==i||n.height!==r||n.x!==t||n.y!==e)&&(n.x=t,n.y=e,n.width=i,n.height=r,this.gl.viewport(t,e,i,r))}get size(){return this.current?{x:0,y:0,width:this.current.width,height:this.current.height}:{x:0,y:0,width:this.renderer.width,height:this.renderer.height}}clear(t,e,i,r,n=Lh.COLOR|Lh.DEPTH){const{gl:s}=this;s.clearColor(t,e,i,r),s.clear(n)}initFramebuffer(t){const{gl:e}=this,i=new lp(e.createFramebuffer());return i.multisample=this.detectSamples(t.multisample),t.glFramebuffers[this.CONTEXT_UID]=i,this.managedFramebuffers.push(t),t.disposeRunner.add(this),i}resizeFramebuffer(t){const{gl:e}=this,i=t.glFramebuffers[this.CONTEXT_UID];if(i.stencil){let r;e.bindRenderbuffer(e.RENDERBUFFER,i.stencil),r=1===this.renderer.context.webGLVersion?e.DEPTH_STENCIL:t.depth&&t.stencil?e.DEPTH24_STENCIL8:t.depth?e.DEPTH_COMPONENT24:e.STENCIL_INDEX8,i.msaaBuffer?e.renderbufferStorageMultisample(e.RENDERBUFFER,i.multisample,r,t.width,t.height):e.renderbufferStorage(e.RENDERBUFFER,r,t.width,t.height)}const r=t.colorTextures;let n=r.length;e.drawBuffers||(n=Math.min(n,1));for(let s=0;s<n;s++){const n=r[s],a=n.parentTextureArray||n;this.renderer.texture.bind(a,0),0===s&&i.msaaBuffer&&(e.bindRenderbuffer(e.RENDERBUFFER,i.msaaBuffer),e.renderbufferStorageMultisample(e.RENDERBUFFER,i.multisample,a._glTextures[this.CONTEXT_UID].internalFormat,t.width,t.height))}t.depthTexture&&this.writeDepthTexture&&this.renderer.texture.bind(t.depthTexture,0)}updateFramebuffer(t,e){const{gl:i}=this,r=t.glFramebuffers[this.CONTEXT_UID],n=t.colorTextures;let s=n.length;i.drawBuffers||(s=Math.min(s,1)),r.multisample>1&&this.canMultisampleFramebuffer(t)?r.msaaBuffer=r.msaaBuffer||i.createRenderbuffer():r.msaaBuffer&&(i.deleteRenderbuffer(r.msaaBuffer),r.msaaBuffer=null,r.blitFramebuffer&&(r.blitFramebuffer.dispose(),r.blitFramebuffer=null));const a=[];for(let o=0;o<s;o++){const s=n[o],l=s.parentTextureArray||s;this.renderer.texture.bind(l,0),0===o&&r.msaaBuffer?(i.bindRenderbuffer(i.RENDERBUFFER,r.msaaBuffer),i.renderbufferStorageMultisample(i.RENDERBUFFER,r.multisample,l._glTextures[this.CONTEXT_UID].internalFormat,t.width,t.height),i.framebufferRenderbuffer(i.FRAMEBUFFER,i.COLOR_ATTACHMENT0,i.RENDERBUFFER,r.msaaBuffer)):(i.framebufferTexture2D(i.FRAMEBUFFER,i.COLOR_ATTACHMENT0+o,s.target,l._glTextures[this.CONTEXT_UID].texture,e),a.push(i.COLOR_ATTACHMENT0+o))}if(a.length>1&&i.drawBuffers(a),t.depthTexture&&this.writeDepthTexture){const r=t.depthTexture;this.renderer.texture.bind(r,0),i.framebufferTexture2D(i.FRAMEBUFFER,i.DEPTH_ATTACHMENT,i.TEXTURE_2D,r._glTextures[this.CONTEXT_UID].texture,e)}if(!t.stencil&&!t.depth||t.depthTexture&&this.writeDepthTexture)r.stencil&&(i.deleteRenderbuffer(r.stencil),r.stencil=null);else{let e,n;r.stencil=r.stencil||i.createRenderbuffer(),1===this.renderer.context.webGLVersion?(e=i.DEPTH_STENCIL_ATTACHMENT,n=i.DEPTH_STENCIL):t.depth&&t.stencil?(e=i.DEPTH_STENCIL_ATTACHMENT,n=i.DEPTH24_STENCIL8):t.depth?(e=i.DEPTH_ATTACHMENT,n=i.DEPTH_COMPONENT24):(e=i.STENCIL_ATTACHMENT,n=i.STENCIL_INDEX8),i.bindRenderbuffer(i.RENDERBUFFER,r.stencil),r.msaaBuffer?i.renderbufferStorageMultisample(i.RENDERBUFFER,r.multisample,n,t.width,t.height):i.renderbufferStorage(i.RENDERBUFFER,n,t.width,t.height),i.framebufferRenderbuffer(i.FRAMEBUFFER,e,i.RENDERBUFFER,r.stencil)}}canMultisampleFramebuffer(t){return 1!==this.renderer.context.webGLVersion&&t.colorTextures.length<=1&&!t.depthTexture}detectSamples(t){const{msaaSamples:e}=this;let i=Kh.NONE;if(t<=1||null===e)return i;for(let r=0;r<e.length;r++)if(e[r]<=t){i=e[r];break}return 1===i&&(i=Kh.NONE),i}blit(t,e,i){const{current:r,renderer:n,gl:s,CONTEXT_UID:a}=this;if(2!==n.context.webGLVersion||!r)return;const o=r.glFramebuffers[a];if(!o)return;if(!t){if(!o.msaaBuffer)return;const e=r.colorTextures[0];if(!e)return;o.blitFramebuffer||(o.blitFramebuffer=new Xd(r.width,r.height),o.blitFramebuffer.addColorTexture(0,e)),(t=o.blitFramebuffer).colorTextures[0]!==e&&(t.colorTextures[0]=e,t.dirtyId++,t.dirtyFormat++),(t.width!==r.width||t.height!==r.height)&&(t.width=r.width,t.height=r.height,t.dirtyId++,t.dirtySize++)}e||((e=hp).width=r.width,e.height=r.height),i||(i=e);const l=e.width===i.width&&e.height===i.height;this.bind(t),s.bindFramebuffer(s.READ_FRAMEBUFFER,o.framebuffer),s.blitFramebuffer(e.left,e.top,e.right,e.bottom,i.left,i.top,i.right,i.bottom,s.COLOR_BUFFER_BIT,l?s.NEAREST:s.LINEAR),s.bindFramebuffer(s.READ_FRAMEBUFFER,t.glFramebuffers[this.CONTEXT_UID].framebuffer)}disposeFramebuffer(t,e){const i=t.glFramebuffers[this.CONTEXT_UID],r=this.gl;if(!i)return;delete t.glFramebuffers[this.CONTEXT_UID];const n=this.managedFramebuffers.indexOf(t);n>=0&&this.managedFramebuffers.splice(n,1),t.disposeRunner.remove(this),e||(r.deleteFramebuffer(i.framebuffer),i.msaaBuffer&&r.deleteRenderbuffer(i.msaaBuffer),i.stencil&&r.deleteRenderbuffer(i.stencil)),i.blitFramebuffer&&this.disposeFramebuffer(i.blitFramebuffer,e)}disposeAll(t){const e=this.managedFramebuffers;this.managedFramebuffers=[];for(let i=0;i<e.length;i++)this.disposeFramebuffer(e[i],t)}forceStencil(){const t=this.current;if(!t)return;const e=t.glFramebuffers[this.CONTEXT_UID];if(!e||e.stencil&&t.stencil)return;t.stencil=!0;const i=t.width,r=t.height,n=this.gl,s=e.stencil=n.createRenderbuffer();let a,o;n.bindRenderbuffer(n.RENDERBUFFER,s),1===this.renderer.context.webGLVersion?(a=n.DEPTH_STENCIL_ATTACHMENT,o=n.DEPTH_STENCIL):t.depth?(a=n.DEPTH_STENCIL_ATTACHMENT,o=n.DEPTH24_STENCIL8):(a=n.STENCIL_ATTACHMENT,o=n.STENCIL_INDEX8),e.msaaBuffer?n.renderbufferStorageMultisample(n.RENDERBUFFER,e.multisample,o,i,r):n.renderbufferStorage(n.RENDERBUFFER,o,i,r),n.framebufferRenderbuffer(n.FRAMEBUFFER,a,n.RENDERBUFFER,s)}reset(){this.current=this.unknownFramebuffer,this.viewport=new Qu}destroy(){this.renderer=null}}cp.extension={type:bu.RendererSystem,name:"framebuffer"},wu.add(cp);const up={5126:4,5123:2,5121:1};class dp{constructor(t){this.renderer=t,this._activeGeometry=null,this._activeVao=null,this.hasVao=!0,this.hasInstance=!0,this.canUseUInt32ElementIndex=!1,this.managedGeometries={}}contextChange(){this.disposeAll(!0);const t=this.gl=this.renderer.gl,e=this.renderer.context;if(this.CONTEXT_UID=this.renderer.CONTEXT_UID,2!==e.webGLVersion){let e=this.renderer.context.extensions.vertexArrayObject;Jh.PREFER_ENV===Rh.WEBGL_LEGACY&&(e=null),e?(t.createVertexArray=()=>e.createVertexArrayOES(),t.bindVertexArray=t=>e.bindVertexArrayOES(t),t.deleteVertexArray=t=>e.deleteVertexArrayOES(t)):(this.hasVao=!1,t.createVertexArray=()=>null,t.bindVertexArray=()=>null,t.deleteVertexArray=()=>null)}if(2!==e.webGLVersion){const e=t.getExtension("ANGLE_instanced_arrays");e?(t.vertexAttribDivisor=(t,i)=>e.vertexAttribDivisorANGLE(t,i),t.drawElementsInstanced=(t,i,r,n,s)=>e.drawElementsInstancedANGLE(t,i,r,n,s),t.drawArraysInstanced=(t,i,r,n)=>e.drawArraysInstancedANGLE(t,i,r,n)):this.hasInstance=!1}this.canUseUInt32ElementIndex=2===e.webGLVersion||!!e.extensions.uint32ElementIndex}bind(t,e){e=e||this.renderer.shader.shader;const{gl:i}=this;let r=t.glVertexArrayObjects[this.CONTEXT_UID],n=!1;r||(this.managedGeometries[t.id]=t,t.disposeRunner.add(this),t.glVertexArrayObjects[this.CONTEXT_UID]=r={},n=!0);const s=r[e.program.id]||this.initGeometryVao(t,e,n);this._activeGeometry=t,this._activeVao!==s&&(this._activeVao=s,this.hasVao?i.bindVertexArray(s):this.activateVao(t,e.program)),this.updateBuffers()}reset(){this.unbind()}updateBuffers(){const t=this._activeGeometry,e=this.renderer.buffer;for(let i=0;i<t.buffers.length;i++){const r=t.buffers[i];e.update(r)}}checkCompatibility(t,e){const i=t.attributes,r=e.attributeData;for(const t in r)if(!i[t])throw new Error(`shader and geometry incompatible, geometry missing the "${t}" attribute`)}getSignature(t,e){const i=t.attributes,r=e.attributeData,n=["g",t.id];for(const t in i)r[t]&&n.push(t,r[t].location);return n.join("-")}initGeometryVao(t,e,i=!0){const r=this.gl,n=this.CONTEXT_UID,s=this.renderer.buffer,a=e.program;a.glPrograms[n]||this.renderer.shader.generateProgram(e),this.checkCompatibility(t,a);const o=this.getSignature(t,a),l=t.glVertexArrayObjects[this.CONTEXT_UID];let h=l[o];if(h)return l[a.id]=h,h;const c=t.buffers,u=t.attributes,d={},p={};for(const t in c)d[t]=0,p[t]=0;for(const t in u)!u[t].size&&a.attributeData[t]?u[t].size=a.attributeData[t].size:u[t].size||console.warn(`PIXI Geometry attribute '${t}' size cannot be determined (likely the bound shader does not have the attribute)`),d[u[t].buffer]+=u[t].size*up[u[t].type];for(const t in u){const e=u[t],i=e.size;void 0===e.stride&&(d[e.buffer]===i*up[e.type]?e.stride=0:e.stride=d[e.buffer]),void 0===e.start&&(e.start=p[e.buffer],p[e.buffer]+=i*up[e.type])}h=r.createVertexArray(),r.bindVertexArray(h);for(let t=0;t<c.length;t++){const e=c[t];s.bind(e),i&&e._glBuffers[n].refCount++}return this.activateVao(t,a),l[a.id]=h,l[o]=h,r.bindVertexArray(null),s.unbind(Zh.ARRAY_BUFFER),h}disposeGeometry(t,e){if(!this.managedGeometries[t.id])return;delete this.managedGeometries[t.id];const i=t.glVertexArrayObjects[this.CONTEXT_UID],r=this.gl,n=t.buffers,s=this.renderer?.buffer;if(t.disposeRunner.remove(this),i){if(s)for(let t=0;t<n.length;t++){const i=n[t]._glBuffers[this.CONTEXT_UID];i&&(i.refCount--,0===i.refCount&&!e&&s.dispose(n[t],e))}if(!e)for(const t in i)if("g"===t[0]){const e=i[t];this._activeVao===e&&this.unbind(),r.deleteVertexArray(e)}delete t.glVertexArrayObjects[this.CONTEXT_UID]}}disposeAll(t){const e=Object.keys(this.managedGeometries);for(let i=0;i<e.length;i++)this.disposeGeometry(this.managedGeometries[e[i]],t)}activateVao(t,e){const i=this.gl,r=this.CONTEXT_UID,n=this.renderer.buffer,s=t.buffers,a=t.attributes;t.indexBuffer&&n.bind(t.indexBuffer);let o=null;for(const t in a){const l=a[t],h=s[l.buffer],c=h._glBuffers[r];if(e.attributeData[t]){o!==c&&(n.bind(h),o=c);const r=e.attributeData[t].location;if(i.enableVertexAttribArray(r),i.vertexAttribPointer(r,l.size,l.type||i.FLOAT,l.
2normalized,l.stride,l.start),l.instance){if(!this.hasInstance)throw new Error("geometry error, GPU Instancing is not supported on this device");i.vertexAttribDivisor(r,l.divisor)}}}}draw(t,e,i,r){const{gl:n}=this,s=this._activeGeometry;if(s.indexBuffer){const a=s.indexBuffer.data.BYTES_PER_ELEMENT,o=2===a?n.UNSIGNED_SHORT:n.UNSIGNED_INT;2===a||4===a&&this.canUseUInt32ElementIndex?s.instanced?n.drawElementsInstanced(t,e||s.indexBuffer.data.length,o,(i||0)*a,r||1):n.drawElements(t,e||s.indexBuffer.data.length,o,(i||0)*a):console.warn("unsupported index buffer type: uint32")}else s.instanced?n.drawArraysInstanced(t,i,e||s.getSize(),r||1):n.drawArrays(t,i,e||s.getSize());return this}unbind(){this.gl.bindVertexArray(null),this._activeVao=null,this._activeGeometry=null}destroy(){this.renderer=null}}dp.extension={type:bu.RendererSystem,name:"geometry"},wu.add(dp);const pp=new nd;class fp{constructor(t,e){this._texture=t,this.mapCoord=new nd,this.uClampFrame=new Float32Array(4),this.uClampOffset=new Float32Array(2),this._textureID=-1,this._updateID=0,this.clampOffset=0,this.clampMargin=typeof e>"u"?.5:e,this.isSimple=!1}get texture(){return this._texture}set texture(t){this._texture=t,this._textureID=-1}multiplyUvs(t,e){void 0===e&&(e=t);const i=this.mapCoord;for(let r=0;r<t.length;r+=2){const n=t[r],s=t[r+1];e[r]=n*i.a+s*i.c+i.tx,e[r+1]=n*i.b+s*i.d+i.ty}return e}update(t){const e=this._texture;if(!e||!e.valid||!t&&this._textureID===e._updateID)return!1;this._textureID=e._updateID,this._updateID++;const i=e._uvs;this.mapCoord.set(i.x1-i.x0,i.y1-i.y0,i.x3-i.x0,i.y3-i.y0,i.x0,i.y0);const r=e.orig,n=e.trim;n&&(pp.set(r.width/n.width,0,0,r.height/n.height,-n.x/n.width,-n.y/n.height),this.mapCoord.append(pp));const s=e.baseTexture,a=this.uClampFrame,o=this.clampMargin/s.resolution,l=this.clampOffset;return a[0]=(e._frame.x+o+l)/s.width,a[1]=(e._frame.y+o+l)/s.height,a[2]=(e._frame.x+e._frame.width-o+l)/s.width,a[3]=(e._frame.y+e._frame.height-o+l)/s.height,this.uClampOffset[0]=l/s.realWidth,this.uClampOffset[1]=l/s.realHeight,this.isSimple=e._frame.width===s.width&&e._frame.height===s.height&&0===e.rotate,!0}}class mp extends Gd{constructor(t,e,i){let r=null;"string"!=typeof t&&void 0===e&&void 0===i&&(r=t,t=void 0,e=void 0,i=void 0),super(t||"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\nuniform mat3 otherMatrix;\n\nvarying vec2 vMaskCoord;\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n    gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0
2)).xy, 0.0, 1.0);\n\n    vTextureCoord = aTextureCoord;\n    vMaskCoord = ( otherMatrix * vec3( aTextureCoord, 1.0)  ).xy;\n}\n",e||"varying vec2 vMaskCoord;\nvarying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform sampler2D mask;\nuniform float alpha;\nuniform float npmAlpha;\nuniform vec4 maskClamp;\n\nvoid main(void)\n{\n    float clip = step(3.5,\n        step(maskClamp.x, vMaskCoord.x) +\n        step(maskClamp.y, vMaskCoord.y) +\n        step(vMaskCoord.x, maskClamp.z) +\n        step(vMaskCoord.y, maskClamp.w));\n\n    vec4 original = texture2D(uSampler, vTextureCoord);\n    vec4 masky = texture2D(mask, vMaskCoord);\n    float alphaMul = 1.0 - npmAlpha * (1.0 - masky.a);\n\n    original *= (alphaMul * masky.r * alpha * clip);\n\n    gl_FragColor = original;\n}\n",i),this.maskSprite=r,this.maskMatrix=new nd}get maskSprite(){return this._maskSprite}set maskSprite(t){this._maskSprite=t,this._maskSprite&&(this._maskSprite.renderable=!1)}apply(t,e,i,r){const n=this._maskSprite,s=n._texture;s.valid&&(s.uvMatrix||(s.uvMatrix=new fp(s,0)),s.uvMatrix.update(),this.uniforms.npmAlpha=s.baseTexture.alphaMode?0:1,this.uniforms.mask=s,this.uniforms.otherMatrix=t.calculateSpriteMatrix(this.maskMatrix,n).prepend(s.uvMatrix.mapCoord),this.uniforms.alpha=n.worldAlpha,this.uniforms.maskClamp=s.uvMatrix.uClampFrame,t.applyFilter(this,e,i,r))}}class gp{constructor(t=null){this.type=qh.NONE,this.autoDetect=!0,this.maskObject=t||null,this.pooled=!1,this.isMaskData=!0,this.resolution=null,this.multisample=Gd.defaultMultisample,this.enabled=!0,this.colorMask=15,this._filters=null,this._stencilCounter=0,this._scissorCounter=0,this._scissorRect=null,this._scissorRectLocal=null,this._colorMask=15,this._target=null}get filter(){return this._filters?this._filters[0]:null}set filter(t){t?this._filters?this._filters[0]=t:this._filters=[t]:this._filters=null}reset(){this.pooled&&(this.maskObject=null,this.type=qh.NONE,this.autoDetect=!0),this._target=null,this._scissorRectLocal=null}copyCountersOrReset(t){t?(this._stencilCounter=t._stencilCounter,this._scissorCounter=t._scissorCounter,this._scissorRect=t._scissorRect):(this._stencilCounter=0,this._scissorCounter=0,this._scissorRect=null)}}class yp{constructor(t){this.renderer=t,this.enableScissor=!0,this.alphaMaskPool=[],this.maskDataPool=[],this.maskStack=[],this.alphaMaskIndex=0}setMaskStack(t){this.maskStack=t,this.renderer.scissor.setMaskStack(t),this.renderer.stencil.setMaskStack(t)}push(t,e){let i=e;if(!i.isMaskData){const t=this.maskDataPool.pop()||new gp;t.pooled=!0,t.maskObject=e,i=t}const r=0!==this.maskStack.length?this.maskStack[this.maskStack.length-1]:null;if(i.copyCountersOrReset(r),i._colorMask=r?r._colorMask:15,i.autoDetect&&this.detect(i),i._target=t,i.type!==qh.SPRITE&&this.maskStack.push(i),i.enabled)switch(i.type){case qh.SCISSOR:this.renderer.scissor.push(i);break;case qh.STENCIL:this.renderer.stencil.push(i);break;case qh.SPRITE:i.copyCountersOrReset(null),this.pushSpriteMask(i);break;case qh.COLOR:this.pushColorMask(i)}i.type===qh.SPRITE&&this.maskStack.push(i)}pop(t){const e=this.maskStack.pop();if(e&&e._target===t){if(e.enabled)switch(e.type){case qh.SCISSOR:this.renderer.scissor.pop(e);break;case qh.STENCIL:this.renderer.stencil.pop(e.maskObject);break;case qh.SPRITE:this.popSpriteMask(e);break;case qh.COLOR:this.popColorMask(e)}if(e.reset(),e.pooled&&this.maskDataPool.push(e),0!==this.maskStack.length){const t=this.maskStack[this.maskStack.length-1];t.type===qh.SPRITE&&t._filters&&(t._filters[0].maskSprite=t.maskObject)}}}detect(t){const e=t.maskObject;e?e.isSprite?t.type=qh.SPRITE:this.enableScissor&&this.renderer.scissor.testScissor(t)?t.type=qh.SCISSOR:t.type=qh.STENCIL:t.type=qh.COLOR}pushSpriteMask(t){const{maskObject:e}=t,i=t._target;let r=t._filters;r||(r=this.alphaMaskPool[this.alphaMaskIndex],r||(r=this.alphaMaskPool[this.alphaMaskIndex]=[new mp])),r[0].resolution=t.resolution,r[0].multisample=t.multisample,r[0].maskSprite=e;const n=i.filterArea;i.filterArea=e.getBounds(!0),this.renderer.filter.push(i,r),i.filterArea=n,t._filters||this.alphaMaskIndex++}
2popSpriteMask(t){this.renderer.filter.pop(),t._filters?t._filters[0].maskSprite=null:(this.alphaMaskIndex--,this.alphaMaskPool[this.alphaMaskIndex][0].maskSprite=null)}pushColorMask(t){const e=t._colorMask,i=t._colorMask=e&t.colorMask;i!==e&&this.renderer.gl.colorMask(!!(1&i),!!(2&i),!!(4&i),!!(8&i))}popColorMask(t){const e=t._colorMask,i=this.maskStack.length>0?this.maskStack[this.maskStack.length-1]._colorMask:15;i!==e&&this.renderer.gl.colorMask(!!(1&i),!!(2&i),!!(4&i),!!(8&i))}destroy(){this.renderer=null}}yp.extension={type:bu.RendererSystem,name:"mask"},wu.add(yp);class vp{constructor(t){this.renderer=t,this.maskStack=[],this.glConst=0}getStackLength(){return this.maskStack.length}setMaskStack(t){const{gl:e}=this.renderer,i=this.getStackLength();this.maskStack=t;const r=this.getStackLength();r!==i&&(0===r?e.disable(this.glConst):(e.enable(this.glConst),this._useCurrent()))}_useCurrent(){}destroy(){this.renderer=null,this.maskStack=null}}const xp=new nd,_p=[],bp=class t extends vp{constructor(t){super(t),this.glConst=Jh.ADAPTER.getWebGLRenderingContext().SCISSOR_TEST}getStackLength(){const t=this.maskStack[this.maskStack.length-1];return t?t._scissorCounter:0}calcScissorRect(t){if(t._scissorRectLocal)return;const e=t._scissorRect,{maskObject:i}=t,{renderer:r}=this,n=r.renderTexture,s=i.getBounds(!0,_p.pop()??new Qu);this.roundFrameToPixels(s,n.current?n.current.resolution:r.resolution,n.sourceFrame,n.destinationFrame,r.projection.transform),e&&s.fit(e),t._scissorRectLocal=s}static isMatrixRotated(t){if(!t)return!1;const{a:e,b:i,c:r,d:n}=t;return(Math.abs(i)>1e-4||Math.abs(r)>1e-4)&&(Math.abs(e)>1e-4||Math.abs(n)>1e-4)}testScissor(e){const{maskObject:i}=e;if(!i.isFastRect||!i.isFastRect()||t.isMatrixRotated(i.worldTransform)||t.isMatrixRotated(this.renderer.projection.transform))return!1;this.calcScissorRect(e);const r=e._scissorRectLocal;return r.width>0&&r.height>0}roundFrameToPixels(e,i,r,n,s){t.isMatrixRotated(s)||((s=s?xp.copyFrom(s):xp.identity()).translate(-r.x,-r.y).scale(n.width/r.width,n.height/r.height).translate(n.x,n.y),this.renderer.filter.transformAABB(s,e),e.fit(n),e.x=Math.round(e.x*i),e.y=Math.round(e.y*i),e.width=Math.round(e.width*i),e.height=Math.round(e.height*i))}push(t){t._scissorRectLocal||this.calcScissorRect(t);const{gl:e}=this.renderer;t._scissorRect||e.enable(e.SCISSOR_TEST),t._scissorCounter++,t._scissorRect=t._scissorRectLocal,this._useCurrent()}pop(t){const{gl:e}=this.renderer;t&&_p.push(t._scissorRectLocal),this.getStackLength()>0?this._useCurrent():e.disable(e.SCISSOR_TEST)}_useCurrent(){const t=this.maskStack[this.maskStack.length-1]._scissorRect;let e;e=this.renderer.renderTexture.current?t.y:this.renderer.height-t.height-t.y,this.renderer.gl.scissor(t.x,e,t.width,t.height)}};bp.extension={type:bu.RendererSystem,name:"scissor"};let Sp=bp;wu.add(Sp);class Ep extends vp{constructor(t){super(t),this.glConst=Jh.ADAPTER.getWebGLRenderingContext().STENCIL_TEST}getStackLength(){const t=this.maskStack[this.maskStack.length-1];return t?t._stencilCounter:0}push(t){const e=t.maskObject,{gl:i}=this.renderer,r=t._stencilCounter;0===r&&(this.renderer.framebuffer.forceStencil(),i.clearStencil(0),i.clear(i.STENCIL_BUFFER_BIT),i.enable(i.STENCIL_TEST)),t._stencilCounter++;const n=t._colorMask;0!==n&&(t._colorMask=0,i.colorMask(!1,!1,!1,!1)),i.stencilFunc(i.EQUAL,r,4294967295),i.stencilOp(i.KEEP,i.KEEP,i.INCR),e.renderable=!0,e.render(this.renderer),this.renderer.batch.flush(),e.renderable=!1,0!==n&&(t._colorMask=n,i.colorMask(!!(1&n),!!(2&n),!!(4&n),!!(8&n))),this._useCurrent()}pop(t){const e=this.renderer.gl;if(0===this.getStackLength())e.disable(e.STENCIL_TEST);else{const i=0!==this.maskStack.length?this.maskStack[this.maskStack.length-1]:null,r=i?i._colorMask:15;0!==r&&(i._colorMask=0,e.colorMask(!1,!1,!1,!1)),e.stencilOp(e.KEEP,e.KEEP,e.DECR),t.renderable=!0,t.render(this.renderer),this.renderer.batch.flush(),t.renderable=!1,0!==r&&(i._colorMask=r,e.colorMask(!!(1&r),!!(2&r),!!(4&r),!!(8&r))),this._useCurrent()}}_useCurrent(){const t=this.renderer.gl;t.stencilFunc(t.EQUAL,this.getStackLength(),4294967295),t.stencilOp(t.KEEP,t.KEEP,t.KEEP)}}Ep.extension={type:bu.RendererSystem,name:"stencil"},wu.add(Ep);class wp{constructor(t){this.renderer=t,this.plugins={},Object.defineProperties(this.plugins,{extract:{enumerable:!1,get(){return _c("7.0.0","renderer.plugins.extract has moved to renderer.extract"),t.extract}},prepare:{enumerable:!1,get(){return _c("7.0.0","renderer.plugins.prepare has moved to renderer.prepare"),t.prepare}},interaction:{enumerable:!1,get(){return _c("7.0.0","renderer.plugins.interaction has been deprecated, use renderer.events"),t.events}}})}init(){const t=this.rendererPlugins;for(const e in t)this.plugins[e]=new t[e](this.renderer)}destroy(){for(const t in this.plugins)this.plugins[t].destroy(),this.plugins[t]=null}}wp.extension={type:[bu.RendererSystem,bu.CanvasRendererSystem],name:"_plugin"},wu.add(wp);class Tp{constructor(t){this.renderer=t,this.destinationFrame=null,this.sourceFrame=null,this.defaultFrame=null,this.projectionMatrix=new nd,this.transform=null}update(t,e,i,r){this.destinationFrame=t||this.destinationFrame||this.defaultFrame,this.sourceFrame=e||this.sourceFrame||t,this.calculateProjection(this.destinationFrame,this.sourceFrame,i,r),this.transform&&this.projectionMatrix.append(this.transform);const n=this.renderer;n.globalUniforms.uniforms.projectionMatrix=this.projectionMatrix,n.globalUniforms.update(),n.shader.shader&&n.shader.syncUniformGroup(n.shader.shader.uniforms.globals)}
vendor: 4,265 bytes, line 2
2calculateProjection(t,e,i,r){const n=this.projectionMatrix,s=r?-1:1;n.identity(),n.a=1/e.width*2,n.d=s*(1/e.height*2),n.tx=-1-e.x*n.a,n.ty=-s-e.y*n.d}setTransform(t){}destroy(){this.renderer=null}}Tp.extension={type:bu.RendererSystem,name:"projection"},wu.add(Tp);const Ap=new md,Mp=new Qu;class Pp{constructor(t){this.renderer=t,this._tempMatrix=new nd}generateTexture(t,e){const{region:i,...r}=e||{},n=i?.copyTo(Mp)||t.getLocalBounds(Mp,!0),s=r.resolution||this.renderer.resolution;n.width=Math.max(n.width,1/s),n.height=Math.max(n.height,1/s),r.width=n.width,r.height=n.height,r.resolution=s,r.multisample??(r.multisample=this.renderer.multisample);const a=tp.create(r);this._tempMatrix.tx=-n.x,this._tempMatrix.ty=-n.y;const o=t.transform;return t.transform=Ap,this.renderer.render(t,{renderTexture:a,transform:this._tempMatrix,skipUpdateTransform:!!t.parent,blit:!0}),t.transform=o,a}destroy(){}}Pp.extension={type:[bu.RendererSystem,bu.CanvasRendererSystem],name:"textureGenerator"},wu.add(Pp);const Cp=new Qu,kp=new Qu;class Ip{constructor(t){this.renderer=t,this.defaultMaskStack=[],this.current=null,this.sourceFrame=new Qu,this.destinationFrame=new Qu,this.viewportFrame=new Qu}contextChange(){const t=this.renderer?.gl.getContextAttributes();this._rendererPremultipliedAlpha=!!(t&&t.alpha&&t.premultipliedAlpha)}bind(t=null,e,i){const r=this.renderer;let n,s,a;this.current=t,t?(n=t.baseTexture,a=n.resolution,e||(Cp.width=t.frame.width,Cp.height=t.frame.height,e=Cp),i||(kp.x=t.frame.x,kp.y=t.frame.y,kp.width=e.width,kp.height=e.height,i=kp),s=n.framebuffer):(a=r.resolution,e||(Cp.width=r._view.screen.width,Cp.height=r._view.screen.height,e=Cp),i||((i=Cp).width=e.width,i.height=e.height));const o=this.viewportFrame;o.x=i.x*a,o.y=i.y*a,o.width=i.width*a,o.height=i.height*a,t||(o.y=r.view.height-(o.y+o.height)),o.ceil(),this.renderer.framebuffer.bind(s,o),this.renderer.projection.update(i,e,a,!s),t?this.renderer.mask.setMaskStack(n.maskStack):this.renderer.mask.setMaskStack(this.defaultMaskStack),this.sourceFrame.copyFrom(e),this.destinationFrame.copyFrom(i)}clear(t,e){const i=this.current?this.current.baseTexture.clear:this.renderer.background.backgroundColor,r=eu.shared.setValue(t||i);(this.current&&this.current.baseTexture.alphaMode>0||!this.current&&this._rendererPremultipliedAlpha)&&r.premultiply(r.alpha);const n=this.destinationFrame,s=this.current?this.current.baseTexture:this.renderer._view.screen,a=n.width!==s.width||n.height!==s.height;if(a){let{x:t,y:e,width:i,height:r}=this.viewportFrame;t=Math.round(t),e=Math.round(e),i=Math.round(i),r=Math.round(r),this.renderer.gl.enable(this.renderer.gl.SCISSOR_TEST),this.renderer.gl.scissor(t,e,i,r)}this.renderer.framebuffer.clear(r.red,r.green,r.blue,r.alpha,e),a&&this.renderer.scissor.pop()}resize(){this.bind(null)}reset(){this.bind(null)}destroy(){this.renderer=null}}Ip.extension={type:bu.RendererSystem,name:"renderTexture"},wu.add(Ip);class Dp{constructor(t,e){this.program=t,this.uniformData=e,this.uniformGroups={},this.uniformDirtyGroups={},this.uniformBufferBindings={}}destroy(){this.uniformData=null,this.uniformGroups=null,this.uniformDirtyGroups=null,this.uniformBufferBindings=null,this.program=null}}function Rp(t,e,i){const r=t.createShader(e);return t.shaderSource(r,i),t.compileShader(r),r}function Op(t){const e=new Array(t);for(let t=0;t<e.length;t++)e[t]=!1;return e}function Lp(t,e){switch(t){case"float":case"int":case"uint":case"sampler2D":case"sampler2DArray":return 0;case"vec2":return new Float32Array(2*e);case"vec3":return new Float32Array(3*e);case"vec4":return new Float32Array(4*e);case"ivec2":return new Int32Array(2*e);case"ivec3":return new Int32Array(3*e);case"ivec4":return new Int32Array(4*e);case"uvec2":return new Uint32Array(2*e);case"uvec3":return new Uint32Array(3*e);case"uvec4":return new Uint32Array(4*e);case"bool":return!1;case"bvec2":return Op(2*e);case"bvec3":return Op(3*e);case"bvec4":return Op(4*e);case"mat2":return new Float32Array([1,0,0,1]);case"mat3":return new Float32Array([1,0,0,0,1,0,0,0,1]);case"mat4":return new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])}return null}function Fp(t,e){const i=t.getShaderSource(e).split("\n").map(((t,e)=>`${e}: ${t}`)),r=t.getShaderInfoLog(e),n=r.split("\n"),s={},a=n.map((t=>
2parseFloat(t.replace(/^ERROR\: 0\:([\d]+)\:.*$/,"$1")))).filter((t=>!(!t||s[t]||(s[t]=!0,0)))),o=[""];a.forEach((t=>{i[t-1]=`%c${i[t-1]}%c`,o.push("background: #FF0000; color:#FFFFFF; font-size: 10px","font-size: 10px")}));const l=i.join("\n");o[0]=l,console.error(r),console.groupCollapsed("click to view full shader code"),console.warn(...o),console.groupEnd()}function Bp(t,e,i,r,n){i.buffer.update(n)}const Np={float:"\n        data[offset] = v;\n    ",vec2:"\n        data[offset] = v[0];\n        data[offset+1] = v[1];\n    ",vec3:"\n        data[offset] = v[0];\n        data[offset+1] = v[1];\n        data[offset+2] = v[2];\n\n    ",vec4:"\n        data[offset] = v[0];\n        data[offset+1] = v[1];\n        data[offset+2] = v[2];\n        data[offset+3] = v[3];\n    ",mat2:"\n        data[offset] = v[0];\n        data[offset+1] = v[1];\n\n        data[offset+4] = v[2];\n        data[offset+5] = v[3];\n    ",mat3:"\n        data[offset] = v[0];\n        data[offset+1] = v[1];\n        data[offset+2] = v[2];\n\n        data[offset + 4] = v[3];\n        data[offset + 5] = v[4];\n        data[offset + 6] = v[5];\n\n        data[offset + 8] = v[6];\n        data[offset + 9] = v[7];\n        data[offset + 10] = v[8];\n    ",mat4:"\n        for(var i = 0; i < 16; i++)\n        {\n            data[offset + i] = v[i];\n        }\n    "},Vp={float:4,vec2:8,vec3:12,vec4:16,int:4,ivec2:8,ivec3:12,ivec4:16,uint:4,uvec2:8,uvec3:12,uvec4:16,bool:4,bvec2:8,bvec3:12,bvec4:16,mat2:32,mat3:48,mat4:64};let zp,Gp=0;const Up={textureCount:0,uboCount:0};class Hp{constructor(t){this.destroyed=!1,this.renderer=t,this.systemCheck(),this.gl=null,this.shader=null,this.program=null,this.cache={},this._uboCache={},this.id=Gp++}systemCheck(){if(!function(){if("boolean"==typeof zp)return zp;try{zp=!0===new Function("param1","param2","param3","return param1[param2] === param3;")({a:"b"},"a","b")}catch{zp=!1}return zp}())throw new Error("Current environment does not allow unsafe-eval, please use @pixi/unsafe-eval module to enable support.")}contextChange(t){this.gl=t,this.reset()}bind(t,e){t.disposeRunner.add(this),t.uniforms.globals=this.renderer.globalUniforms;const i=t.program,r=i.glPrograms[this.renderer.CONTEXT_UID]||this.generateProgram(t);return this.shader=t,this.program!==i&&(this.program=i,this.gl.useProgram(r.program)),e||(Up.textureCount=0,Up.uboCount=0,this.syncUniformGroup(t.uniformGroup,Up)),r}setUniforms(t){const e=this.shader.program,i=e.glPrograms[this.renderer.CONTEXT_UID];e.syncUniforms(i.uniformData,t,this.renderer)}syncUniformGroup(t,e){const i=this.getGlProgram();(!t.static||t.dirtyId!==i.uniformDirtyGroups[t.id])&&(i.uniformDirtyGroups[t.id]=t.dirtyId,this.syncUniforms(t,i,e))}syncUniforms(t,e,i){(t.syncUniforms[this.shader.program.id]||this.createSyncGroups(t))(e.uniformData,t.uniforms,this.renderer,i)}createSyncGroups(t){const e=this.getSignature(t,this.shader.program.uniformData,"u");return this.cache[e]||(this.cache[e]=function(t,e){const i=["\n        var v = null;\n        var cv = null;\n        var cu = null;\n        var t = 0;\n        var gl = renderer.gl;\n    "];for(const r in t.uniforms){const n=e[r];if(!n){!0===t.uniforms[r]?.group&&(t.uniforms[r].ubo?i.push(`\n                        renderer.shader.syncUniformBufferGroup(uv.${r}, '${r}');\n                    `):i.push(`\n                        renderer.shader.syncUniformGroup(uv.${r}, syncData);\n                    `));continue}const s=t.uniforms[r];let a=!1;for(let t=0;t<gd.length;t++)if(gd[t].test(n,s)){i.push(gd[t].code(r,s)),a=!0;break}if(!a){const t=(1!==n.size||n.isArray?vd:yd)[n.type].replace("location",`ud["${r}"].location`);i.push(`\n            cu = ud["${r}"];\n            cv = cu.value;\n            v = uv["${r}"];\n            ${t};`)}}return new Function("ud","uv","renderer","syncData",i.join("\n"))}(t,this.shader.program.uniformData)),t.syncUniforms[this.shader.program.id]=this.cache[e],t.syncUniforms[this.shader.program.id]}syncUniformBufferGroup(t,e){const i=this.getGlProgram();if(!t.static||0!==t.dirtyId||!i.uniformGroups[t.id]){t.dirtyId=0;const r=i.uniformGroups[t.id]||this.createSyncBufferGroup(t,i,e);
2t.buffer.update(),r(i.uniformData,t.uniforms,this.renderer,Up,t.buffer)}this.renderer.buffer.bindBufferBase(t.buffer,i.uniformBufferBindings[e])}createSyncBufferGroup(t,e,i){const{gl:r}=this.renderer;this.renderer.buffer.bind(t.buffer);const n=this.gl.getUniformBlockIndex(e.program,i);e.uniformBufferBindings[i]=this.shader.uniformBindCount,r.uniformBlockBinding(e.program,n,this.shader.uniformBindCount),this.shader.uniformBindCount++;const s=this.getSignature(t,this.shader.program.uniformData,"ubo");let a=this._uboCache[s];if(a||(a=this._uboCache[s]=function(t,e){if(!t.autoManage)return{size:0,syncFunc:Bp};const i=function(t,e){const i=[];for(const r in t)e[r]&&i.push(e[r]);return i.sort(((t,e)=>t.index-e.index)),i}(t.uniforms,e),{uboElements:r,size:n}=function(t){const e=t.map((t=>({data:t,offset:0,dataLen:0,dirty:0})));let i=0,r=0,n=0;for(let t=0;t<e.length;t++){const s=e[t];if(i=Vp[s.data.type],s.data.size>1&&(i=Math.max(i,16)*s.data.size),s.dataLen=i,r%i!=0&&r<16){const t=r%i%16;r+=t,n+=t}r+i>16?(n=16*Math.ceil(n/16),s.offset=n,n+=i,r=i):(s.offset=n,r+=i,n+=i)}return n=16*Math.ceil(n/16),{uboElements:e,size:n}}(i),s=["\n    var v = null;\n    var v2 = null;\n    var cv = null;\n    var t = 0;\n    var gl = renderer.gl\n    var index = 0;\n    var data = buffer.data;\n    "];for(let e=0;e<r.length;e++){const i=r[e],n=t.uniforms[i.data.name],a=i.data.name;let o=!1;for(let t=0;t<gd.length;t++){const e=gd[t];if(e.codeUbo&&e.test(i.data,n)){s.push(`offset = ${i.offset/4};`,gd[t].codeUbo(i.data.name,n)),o=!0;break}}if(!o)if(i.data.size>1){const t=Ed(i.data.type),e=Math.max(Vp[i.data.type]/16,1),r=t/e,n=(4-r%4)%4;s.push(`\n                cv = ud.${a}.value;\n                v = uv.${a};\n                offset = ${i.offset/4};\n\n                t = 0;\n\n                for(var i=0; i < ${i.data.size*e}; i++)\n                {\n                    for(var j = 0; j < ${r}; j++)\n                    {\n                        data[offset++] = v[t++];\n                    }\n                    offset += ${n};\n                }\n\n                `)}else{const t=Np[i.data.type];s.push(`\n                cv = ud.${a}.value;\n                v = uv.${a};\n                offset = ${i.offset/4};\n                ${t};\n                `)}}return s.push("\n       renderer.buffer.update(buffer);\n    "),{size:n,syncFunc:new Function("ud","uv","renderer","syncData","buffer",s.join("\n"))}}(t,this.shader.program.uniformData)),t.autoManage){const e=new Float32Array(a.size/4);t.buffer.update(e)}return e.uniformGroups[t.id]=a.syncFunc,e.uniformGroups[t.id]}getSignature(t,e,i){const r=t.uniforms,n=[`${i}-`];for(const t in r)n.push(t),e[t]&&n.push(e[t].type);return n.join("-")}getGlProgram(){return this.shader?this.shader.program.glPrograms[this.renderer.CONTEXT_UID]:null}generateProgram(t){const e=this.gl,i=t.program,r=function(t,e){const i=Rp(t,t.VERTEX_SHADER,e.vertexSrc),r=Rp(t,t.FRAGMENT_SHADER,e.fragmentSrc),n=t.createProgram();t.attachShader(n,i),t.attachShader(n,r);const s=e.extra?.transformFeedbackVaryings;if(s&&("function"!=typeof t.transformFeedbackVaryings?console.warn("TransformFeedback is not supported but TransformFeedbackVaryings are given."):t.transformFeedbackVaryings(n,s.names,"separate"===s.bufferMode?t.SEPARATE_ATTRIBS:t.INTERLEAVED_ATTRIBS)),t.linkProgram(n),t.getProgramParameter(n,t.LINK_STATUS)||function(t,e,i,r){t.getProgramParameter(e,t.LINK_STATUS)||(t.getShaderParameter(i,t.COMPILE_STATUS)||Fp(t,i),t.getShaderParameter(r,t.COMPILE_STATUS)||Fp(t,r),console.error("PixiJS Error: Could not initialize shader."),""!==t.getProgramInfoLog(e)&&console.warn("PixiJS Warning: gl.getProgramInfoLog()",t.getProgramInfoLog(e)))}(t,n,i,r),e.attributeData=function(t,e){const i={},r=e.getProgramParameter(t,e.ACTIVE_ATTRIBUTES);for(let n=0;n<r;n++){const r=e.getActiveAttrib(t,n);if(r.name.startsWith("gl_"))continue;const s=Ad(e,r.type),a={type:s,name:r.name,size:Ed(s),location:e.getAttribLocation(t,r.name)};i[r.name]=a}return i}(n,t),e.uniformData=function(t,e){const i={},r=e.getProgramParameter(t,e.ACTIVE_UNIFORMS);for(let n=0;n<r;n++){const r=e.getActiveUniform(t,n),s=r.name.replace(/\[.*?\]$/,""),a=!!r.name.match(/\[.*?\]$/),o=Ad(e,r.type);i[s]={name:s,index:n,type:o,size:r.size,isArray:a,value:Lp(o,r.size)}}return i}(n,t),!/^[ \t]*#[ \t]*version[ \t]+300[ \t]+es[ \t]*$/m.test(e.vertexSrc)){const i=Object.keys(e.attributeData);i.sort(((t,e)=>t>e?1:-1));for(let r=0;r<i.length;r++)e.attributeData[i[r]].location=r,t.bindAttribLocation(n,r,i[r]);t.linkProgram(n)}t.deleteShader(i),t.deleteShader(r);const a={};for(const i in e.uniformData){const r=e.uniformData[i];a[i]={location:t.getUniformLocation(n,i),value:Lp(r.type,r.size)}}return new Dp(n,a)}(e,i);return i.glPrograms[this.renderer.CONTEXT_UID]=r,r}reset(){this.program=null,this.shader=null}disposeShader(t){this.shader===t&&(this.shader=null)}destroy(){this.renderer=null,this.destroyed=!0}}Hp.extension={type:bu.RendererSystem,name:"shader"},wu.add(Hp);
2class jp{constructor(t){this.renderer=t}run(t){const{renderer:e}=this;e.runners.init.emit(e.options),t.hello&&console.log(`PixiJS 7.4.2 - ${e.rendererLogId} - https://pixijs.com`),e.resize(e.screen.width,e.screen.height)}destroy(){}}jp.defaultOptions={hello:!1},jp.extension={type:[bu.RendererSystem,bu.CanvasRendererSystem],name:"startup"},wu.add(jp);const Wp=class t{constructor(){this.gl=null,this.stateId=0,this.polygonOffset=0,this.blendMode=Fh.NONE,this._blendEq=!1,this.map=[],this.map[0]=this.setBlend,this.map[1]=this.setOffset,this.map[2]=this.setCullFace,this.map[3]=this.setDepthTest,this.map[4]=this.setFrontFace,this.map[5]=this.setDepthMask,this.checks=[],this.defaultState=new Pu,this.defaultState.blend=!0}contextChange(t){this.gl=t,this.blendModes=function(t,e=[]){return e[Fh.NORMAL]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],e[Fh.ADD]=[t.ONE,t.ONE],e[Fh.MULTIPLY]=[t.DST_COLOR,t.ONE_MINUS_SRC_ALPHA,t.ONE,t.ONE_MINUS_SRC_ALPHA],e[Fh.SCREEN]=[t.ONE,t.ONE_MINUS_SRC_COLOR,t.ONE,t.ONE_MINUS_SRC_ALPHA],e[Fh.OVERLAY]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],e[Fh.DARKEN]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],e[Fh.LIGHTEN]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],e[Fh.COLOR_DODGE]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],e[Fh.COLOR_BURN]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],e[Fh.HARD_LIGHT]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],e[Fh.SOFT_LIGHT]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],e[Fh.DIFFERENCE]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],e[Fh.EXCLUSION]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],e[Fh.HUE]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],e[Fh.SATURATION]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],e[Fh.COLOR]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],e[Fh.LUMINOSITY]=[t.ONE,t.ONE_MINUS_SRC_ALPHA],e[Fh.NONE]=[0,0],e[Fh.NORMAL_NPM]=[t.SRC_ALPHA,t.ONE_MINUS_SRC_ALPHA,t.ONE,t.ONE_MINUS_SRC_ALPHA],e[Fh.ADD_NPM]=[t.SRC_ALPHA,t.ONE,t.ONE,t.ONE],e[Fh.SCREEN_NPM]=[t.SRC_ALPHA,t.ONE_MINUS_SRC_COLOR,t.ONE,t.ONE_MINUS_SRC_ALPHA],e[Fh.SRC_IN]=[t.DST_ALPHA,t.ZERO],e[Fh.SRC_OUT]=[t.ONE_MINUS_DST_ALPHA,t.ZERO],e[Fh.SRC_ATOP]=[t.DST_ALPHA,t.ONE_MINUS_SRC_ALPHA],e[Fh.DST_OVER]=[t.ONE_MINUS_DST_ALPHA,t.ONE],e[Fh.DST_IN]=[t.ZERO,t.SRC_ALPHA],e[Fh.DST_OUT]=[t.ZERO,t.ONE_MINUS_SRC_ALPHA],e[Fh.DST_ATOP]=[t.ONE_MINUS_DST_ALPHA,t.SRC_ALPHA],e[Fh.XOR]=[t.ONE_MINUS_DST_ALPHA,t.ONE_MINUS_SRC_ALPHA],e[Fh.SUBTRACT]=[t.ONE,t.ONE,t.ONE,t.ONE,t.FUNC_REVERSE_SUBTRACT,t.FUNC_ADD],e}(t),this.set(this.defaultState),this.reset()}set(t){if(t=t||this.defaultState,this.stateId!==t.data){let e=this.stateId^t.data,i=0;for(;e;)1&e&&this.map[i].call(this,!!(t.data&1<<i)),e>>=1,i++;this.stateId=t.data}for(let e=0;e<this.checks.length;e++)this.checks[e](this,t)}forceState(t){t=t||this.defaultState;for(let e=0;e<this.map.length;e++)this.map[e].call(this,!!(t.data&1<<e));for(let e=0;e<this.checks.length;e++)this.checks[e](this,t);this.stateId=t.data}setBlend(e){this.updateCheck(t.checkBlendMode,e),this.gl[e?"enable":"disable"](this.gl.BLEND)}setOffset(e){this.updateCheck(t.checkPolygonOffset,e),this.gl[e?"enable":"disable"](this.gl.POLYGON_OFFSET_FILL)}setDepthTest(t){this.gl[t?"enable":"disable"](this.gl.DEPTH_TEST)}setDepthMask(t){this.gl.depthMask(t)}setCullFace(t){this.gl[t?"enable":"disable"](this.gl.CULL_FACE)}setFrontFace(t){this.gl.frontFace(this.gl[t?"CW":"CCW"])}setBlendMode(t){if(t===this.blendMode)return;this.blendMode=t;const e=this.blendModes[t],i=this.gl;2===e.length?i.blendFunc(e[0],e[1]):i.blendFuncSeparate(e[0],e[1],e[2],e[3]),6===e.length?(this._blendEq=!0,i.blendEquationSeparate(e[4],e[5])):this._blendEq&&(this._blendEq=!1,i.blendEquationSeparate(i.FUNC_ADD,i.FUNC_ADD))}setPolygonOffset(t,e){this.gl.polygonOffset(t,e)}reset(){this.gl.pixelStorei(this.gl.UNPACK_FLIP_Y_WEBGL,!1),this.forceState(this.defaultState),this._blendEq=!0,this.blendMode=-1,this.setBlendMode(0)}updateCheck(t,e){const i=this.checks.indexOf(t);e&&-1===i?this.checks.push(t):!e&&-1!==i&&this.checks.splice(i,1)}static checkBlendMode(t,e){t.setBlendMode(e.blendMode)}static checkPolygonOffset(t,e){t.setPolygonOffset(1,e.polygonOffset)}destroy(){this.gl=null}};Wp.extension={type:bu.RendererSystem,name:"state"};let Xp=Wp;wu.add(Xp);class $p extends yc{constructor(){super(...arguments),this.runners={},this._systemsHash={}}setup(t){this.addRunners(...t.runners);const e=(t.priority??[]).filter((e=>t.systems[e])),i=[...e,...Object.keys(t.systems).filter((t=>!e.includes(t)))];for(const e of i)this.addSystem(t.systems[e],e)}addRunners(...t){t.forEach((t=>{this.runners[t]=new Iu(t)}))}addSystem(t,e){const i=new t(this);if(this[e])throw new Error(`Whoops! The name "${e}" is already in use`);this[e]=i,this._systemsHash[e]=i;for(const t in this.runners)this.runners[t].add(i);return this}emitWithCustomOptions(t,e){const i=Object.keys(this._systemsHash);
vendor: 11,093 bytes, line 2
2t.items.forEach((r=>{const n=i.find((t=>this._systemsHash[t]===r));r[t.name](e[n])}))}destroy(){Object.values(this.runners).forEach((t=>{t.destroy()})),this._systemsHash={}}}const Yp=class t{constructor(e){this.renderer=e,this.count=0,this.checkCount=0,this.maxIdle=t.defaultMaxIdle,this.checkCountMax=t.defaultCheckCountMax,this.mode=t.defaultMode}postrender(){this.renderer.objectRenderer.renderingToScreen&&(this.count++,this.mode!==$h.MANUAL&&(this.checkCount++,this.checkCount>this.checkCountMax&&(this.checkCount=0,this.run())))}run(){const t=this.renderer.texture,e=t.managedTextures;let i=!1;for(let r=0;r<e.length;r++){const n=e[r];n.resource&&this.count-n.touched>this.maxIdle&&(t.destroyTexture(n,!0),e[r]=null,i=!0)}if(i){let t=0;for(let i=0;i<e.length;i++)null!==e[i]&&(e[t++]=e[i]);e.length=t}}unload(t){const e=this.renderer.texture,i=t._texture;i&&!i.framebuffer&&e.destroyTexture(i);for(let e=t.children.length-1;e>=0;e--)this.unload(t.children[e])}destroy(){this.renderer=null}};Yp.defaultMode=$h.AUTO,Yp.defaultMaxIdle=3600,Yp.defaultCheckCountMax=600,Yp.extension={type:bu.RendererSystem,name:"textureGC"};let qp=Yp;wu.add(qp);class Kp{constructor(t){this.texture=t,this.width=-1,this.height=-1,this.dirtyId=-1,this.dirtyStyleId=-1,this.mipmap=!1,this.wrapMode=33071,this.type=zh.UNSIGNED_BYTE,this.internalFormat=Nh.RGBA,this.samplerType=0}}class Zp{constructor(t){this.renderer=t,this.boundTextures=[],this.currentLocation=-1,this.managedTextures=[],this._unknownBoundTextures=!1,this.unknownTexture=new Fu,this.hasIntegerTextures=!1}contextChange(){const t=this.gl=this.renderer.gl;this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.webGLVersion=this.renderer.context.webGLVersion,this.internalFormats=function(t){let e;return e="WebGL2RenderingContext"in globalThis&&t instanceof globalThis.WebGL2RenderingContext?{[zh.UNSIGNED_BYTE]:{[Nh.RGBA]:t.RGBA8,[Nh.RGB]:t.RGB8,[Nh.RG]:t.RG8,[Nh.RED]:t.R8,[Nh.RGBA_INTEGER]:t.RGBA8UI,[Nh.RGB_INTEGER]:t.RGB8UI,[Nh.RG_INTEGER]:t.RG8UI,[Nh.RED_INTEGER]:t.R8UI,[Nh.ALPHA]:t.ALPHA,[Nh.LUMINANCE]:t.LUMINANCE,[Nh.LUMINANCE_ALPHA]:t.LUMINANCE_ALPHA},[zh.BYTE]:{[Nh.RGBA]:t.RGBA8_SNORM,[Nh.RGB]:t.RGB8_SNORM,[Nh.RG]:t.RG8_SNORM,[Nh.RED]:t.R8_SNORM,[Nh.RGBA_INTEGER]:t.RGBA8I,[Nh.RGB_INTEGER]:t.RGB8I,[Nh.RG_INTEGER]:t.RG8I,[Nh.RED_INTEGER]:t.R8I},[zh.UNSIGNED_SHORT]:{[Nh.RGBA_INTEGER]:t.RGBA16UI,[Nh.RGB_INTEGER]:t.RGB16UI,[Nh.RG_INTEGER]:t.RG16UI,[Nh.RED_INTEGER]:t.R16UI,[Nh.DEPTH_COMPONENT]:t.DEPTH_COMPONENT16},[zh.SHORT]:{[Nh.RGBA_INTEGER]:t.RGBA16I,[Nh.RGB_INTEGER]:t.RGB16I,[Nh.RG_INTEGER]:t.RG16I,[Nh.RED_INTEGER]:t.R16I},[zh.UNSIGNED_INT]:{[Nh.RGBA_INTEGER]:t.RGBA32UI,[Nh.RGB_INTEGER]:t.RGB32UI,[Nh.RG_INTEGER]:t.RG32UI,[Nh.RED_INTEGER]:t.R32UI,[Nh.DEPTH_COMPONENT]:t.DEPTH_COMPONENT24},[zh.INT]:{[Nh.RGBA_INTEGER]:t.RGBA32I,[Nh.RGB_INTEGER]:t.RGB32I,[Nh.RG_INTEGER]:t.RG32I,[Nh.RED_INTEGER]:t.R32I},[zh.FLOAT]:{[Nh.RGBA]:t.RGBA32F,[Nh.RGB]:t.RGB32F,[Nh.RG]:t.RG32F,[Nh.RED]:t.R32F,[Nh.DEPTH_COMPONENT]:t.DEPTH_COMPONENT32F},[zh.HALF_FLOAT]:{[Nh.RGBA]:t.RGBA16F,[Nh.RGB]:t.RGB16F,[Nh.RG]:t.RG16F,[Nh.RED]:t.R16F},[zh.UNSIGNED_SHORT_5_6_5]:{[Nh.RGB]:t.RGB565},[zh.UNSIGNED_SHORT_4_4_4_4]:{[Nh.RGBA]:t.RGBA4},[zh.UNSIGNED_SHORT_5_5_5_1]:{[Nh.RGBA]:t.RGB5_A1},[zh.UNSIGNED_INT_2_10_10_10_REV]:{[Nh.RGBA]:t.RGB10_A2,[Nh.RGBA_INTEGER]:t.RGB10_A2UI},[zh.UNSIGNED_INT_10F_11F_11F_REV]:{[Nh.RGB]:t.R11F_G11F_B10F},[zh.UNSIGNED_INT_5_9_9_9_REV]:{[Nh.RGB]:t.RGB9_E5},[zh.UNSIGNED_INT_24_8]:{[Nh.DEPTH_STENCIL]:t.DEPTH24_STENCIL8},[zh.FLOAT_32_UNSIGNED_INT_24_8_REV]:{[Nh.DEPTH_STENCIL]:t.DEPTH32F_STENCIL8}}:{[zh.UNSIGNED_BYTE]:{[Nh.RGBA]:t.RGBA,[Nh.RGB]:t.RGB,[Nh.ALPHA]:t.ALPHA,[Nh.LUMINANCE]:t.LUMINANCE,[Nh.LUMINANCE_ALPHA]:t.LUMINANCE_ALPHA},[zh.UNSIGNED_SHORT_5_6_5]:{[Nh.RGB]:t.RGB},[zh.UNSIGNED_SHORT_4_4_4_4]:{[Nh.RGBA]:t.RGBA},[zh.UNSIGNED_SHORT_5_5_5_1]:{[Nh.RGBA]:t.RGBA}},e}(t),this.samplerTypes=function(t){let e;return e="WebGL2RenderingContext"in globalThis&&t instanceof globalThis.WebGL2RenderingContext?{[t.RGB]:Gh.FLOAT,[t.RGBA]:Gh.FLOAT,[t.ALPHA]:Gh.FLOAT,[t.LUMINANCE]:Gh.FLOAT,[t.LUMINANCE_ALPHA]:Gh.FLOAT,[t.R8]:Gh.FLOAT,[t.R8_SNORM]:Gh.FLOAT,[t.RG8]:Gh.FLOAT,[t.RG8_SNORM]:Gh.FLOAT,[t.RGB8]:Gh.FLOAT,[t.RGB8_SNORM]:Gh.FLOAT,[t.RGB565]:Gh.FLOAT,[t.RGBA4]:Gh.FLOAT,[t.RGB5_A1]:Gh.FLOAT,[t.RGBA8]:Gh.FLOAT,[t.RGBA8_SNORM]:Gh.FLOAT,[t.RGB10_A2]:Gh.FLOAT,[t.RGB10_A2UI]:Gh.FLOAT,[t.SRGB8]:Gh.FLOAT,[t.SRGB8_ALPHA8]:Gh.FLOAT,[t.R16F]:Gh.FLOAT,[t.RG16F]:Gh.FLOAT,[t.RGB16F]:Gh.FLOAT,[t.RGBA16F]:Gh.FLOAT,[t.R32F]:Gh.FLOAT,[t.RG32F]:Gh.FLOAT,[t.RGB32F]:Gh.FLOAT,[t.RGBA32F]:Gh.FLOAT,[t.R11F_G11F_B10F]:Gh.FLOAT,[t.RGB9_E5]:Gh.FLOAT,[t.R8I]:Gh.INT,[t.R8UI]:Gh.UINT,[t.R16I]:Gh.INT,[t.R16UI]:Gh.UINT,[t.R32I]:Gh.INT,[t.R32UI]:Gh.UINT,[t.RG8I]:Gh.INT,[t.RG8UI]:Gh.UINT,[t.RG16I]:Gh.INT,[t.RG16UI]:Gh.UINT,[t.RG32I]:Gh.INT,[t.RG32UI]:Gh.UINT,[t.RGB8I]:Gh.INT,[t.RGB8UI]:Gh.UINT,[t.RGB16I]:Gh.INT,[t.RGB16UI]:Gh.UINT,[t.RGB32I]:Gh.INT,[t.RGB32UI]:Gh.UINT,[t.RGBA8I]:Gh.INT,[t.RGBA8UI]:Gh.UINT,[t.RGBA16I]:Gh.INT,[t.RGBA16UI]:Gh.UINT,[t.RGBA32I]:Gh.INT,[t.RGBA32UI]:Gh.UINT,[t.DEPTH_COMPONENT16]:Gh.FLOAT,[t.DEPTH_COMPONENT24]:Gh.FLOAT,[t.DEPTH_COMPONENT32F]:Gh.FLOAT,[t.DEPTH_STENCIL]:Gh.FLOAT,[t.DEPTH24_STENCIL8]:Gh.FLOAT,[t.DEPTH32F_STENCIL8]:Gh.FLOAT}:{[t.RGB]:Gh.FLOAT,[t.RGBA]:Gh.FLOAT,[t.ALPHA]:Gh.FLOAT,[t.LUMINANCE]:Gh.FLOAT,[t.LUMINANCE_ALPHA]:Gh.FLOAT,[t.DEPTH_STENCIL]:Gh.FLOAT},e}(t);const e=t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS);this.boundTextures.length=e;for(let t=0;t<e;t++)this.boundTextures[t]=null;this.emptyTextures={};const i=new Kp(t.createTexture());t.bindTexture(t.TEXTURE_2D,i.texture),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,1,1,0,t.RGBA,t.UNSIGNED_BYTE,new Uint8Array(4)),this.emptyTextures[t.TEXTURE_2D]=i,this.emptyTextures[t.TEXTURE_CUBE_MAP]=new Kp(t.createTexture()),t.bindTexture(t.TEXTURE_CUBE_MAP,this.emptyTextures[t.TEXTURE_CUBE_MAP].texture);for(let e=0;e<6;e++)t.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+e,0,t.RGBA,1,1,0,t.RGBA,t.UNSIGNED_BYTE,null);t.texParameteri(t.TEXTURE_CUBE_MAP,t.TEXTURE_MAG_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_CUBE_MAP,t.TEXTURE_MIN_FILTER,t.LINEAR);for(let t=0;t<this.boundTextures.length;t++)this.bind(null,t)}bind(t,e=0){const{gl:i}=this;if(t=t?.castToBaseTexture(),t?.valid&&!t.parentTextureArray){t.touched=this.renderer.textureGC.count;const r=t._glTextures[this.CONTEXT_UID]||this.initTexture(t);this.boundTextures[e]!==t&&(this.currentLocation!==e&&(this.currentLocation=e,i.activeTexture(i.TEXTURE0+e)),i.bindTexture(t.target,r.texture)),r.dirtyId!==t.dirtyId?(this.currentLocation!==e&&(this.currentLocation=e,i.activeTexture(i.TEXTURE0+e)),this.updateTexture(t)):r.dirtyStyleId!==t.dirtyStyleId&&this.updateTextureStyle(t),this.boundTextures[e]=t}else this.currentLocation!==e&&(this.currentLocation=e,i.activeTexture(i.TEXTURE0+e)),i.bindTexture(i.TEXTURE_2D,this.emptyTextures[i.TEXTURE_2D].texture),this.boundTextures[e]=null}reset(){this._unknownBoundTextures=!0,this.hasIntegerTextures=!1,this.currentLocation=-1;for(let t=0;t<this.boundTextures.length;t++)this.boundTextures[t]=this.unknownTexture}unbind(t){const{gl:e,boundTextures:i}=this;if(this._unknownBoundTextures){this._unknownBoundTextures=!1;for(let t=0;t<i.length;t++)i[t]===this.unknownTexture&&this.bind(null,t)}for(let r=0;r<i.length;r++)i[r]===t&&(this.currentLocation!==r&&(e.activeTexture(e.TEXTURE0+r),this.currentLocation=r),e.bindTexture(t.target,this.emptyTextures[t.target].texture),i[r]=null)}ensureSamplerType(t){const{boundTextures:e,hasIntegerTextures:i,CONTEXT_UID:r}=this;if(i)for(let i=t-1;i>=0;--i){const t=e[i];t&&t._glTextures[r].samplerType!==Gh.FLOAT&&this.renderer.texture.unbind(t)}}initTexture(t){const e=new Kp(this.gl.createTexture());return e.dirtyId=-1,t._glTextures[this.CONTEXT_UID]=e,this.managedTextures.push(t),t.on("dispose",this.destroyTexture,this),e}initTextureType(t,e){e.internalFormat=this.internalFormats[t.type]?.[t.format]??t.format,e.samplerType=this.samplerTypes[e.internalFormat]??Gh.FLOAT,2===this.webGLVersion&&t.type===zh.HALF_FLOAT?e.type=this.gl.HALF_FLOAT:e.type=t.type}updateTexture(t){const e=t._glTextures[this.CONTEXT_UID];if(!e)return;const i=this.renderer;if(this.initTextureType(t,e),t.resource?.upload(i,t,e))e.samplerType!==Gh.FLOAT&&(this.hasIntegerTextures=!0);else{const r=t.realWidth,n=t.realHeight,s=i.gl;(e.width!==r||e.height!==n||e.dirtyId<0)&&(e.width=r,e.height=n,s.texImage2D(t.target,0,e.internalFormat,r,n,0,t.format,e.type,null))}t.dirtyStyleId!==e.dirtyStyleId&&this.updateTextureStyle(t),e.dirtyId=t.dirtyId}destroyTexture(t,e){const{gl:i}=this;if((t=t.castToBaseTexture())._glTextures[this.CONTEXT_UID]&&(this.unbind(t),i.deleteTexture(t._glTextures[this.CONTEXT_UID].texture),t.off("dispose",this.destroyTexture,this),delete t._glTextures[this.CONTEXT_UID],!e)){const e=this.managedTextures.indexOf(t);-1!==e&&lu(this.managedTextures,e,1)}}updateTextureStyle(t){const e=t._glTextures[this.CONTEXT_UID];e&&(t.mipmap!==jh.POW2&&2===this.webGLVersion||t.isPowerOfTwo?e.mipmap=t.mipmap>=1:e.mipmap=!1,2===this.webGLVersion||t.isPowerOfTwo?e.wrapMode=t.wrapMode:e.wrapMode=Hh.CLAMP,t.resource?.style(this.renderer,t,e)||this.setStyle(t,e),e.dirtyStyleId=t.dirtyStyleId)}setStyle(t,e){const i=this.gl;if(e.mipmap&&t.mipmap!==jh.ON_MANUAL&&i.generateMipmap(t.target),i.texParameteri(t.target,i.TEXTURE_WRAP_S,e.wrapMode),i.texParameteri(t.target,i.TEXTURE_WRAP_T,e.wrapMode),e.mipmap){i.texParameteri(t.target,i.TEXTURE_MIN_FILTER,t.scaleMode===Uh.LINEAR?i.LINEAR_MIPMAP_LINEAR:i.NEAREST_MIPMAP_NEAREST);const e=this.renderer.context.extensions.anisotropicFiltering;if(e&&t.anisotropicLevel>0&&t.scaleMode===Uh.LINEAR){const r=Math.min(t.anisotropicLevel,i.getParameter(e.MAX_TEXTURE_MAX_ANISOTROPY_EXT));i.texParameterf(t.target,e.TEXTURE_MAX_ANISOTROPY_EXT,r)}}else i.texParameteri(t.target,i.TEXTURE_MIN_FILTER,t.scaleMode===Uh.LINEAR?i.LINEAR:i.NEAREST);i.texParameteri(t.target,i.TEXTURE_MAG_FILTER,t.scaleMode===Uh.LINEAR?i.LINEAR:i.NEAREST)}destroy(){this.renderer=null}}Zp.extension={type:bu.RendererSystem,name:"texture"},wu.add(Zp);class Jp{constructor(t){this.renderer=t}contextChange(){this.gl=this.renderer.gl,this.CONTEXT_UID=this.renderer.CONTEXT_UID}bind(t){const{gl:e,CONTEXT_UID:i}=this,r=t._glTransformFeedbacks[i]||this.createGLTransformFeedback(t);e.bindTransformFeedback(e.TRANSFORM_FEEDBACK,r)}unbind(){const{gl:t}=this;t.bindTransformFeedback(t.TRANSFORM_FEEDBACK,null)}beginTransformFeedback(t,e){const{gl:i,renderer:r}=this;e&&r.shader.bind(e),i.beginTransformFeedback(t)}endTransformFeedback(){const{gl:t}=this;t.endTransformFeedback()}createGLTransformFeedback(t){const{gl:e,renderer:i,CONTEXT_UID:r}=this,n=e.createTransformFeedback();t._glTransformFeedbacks[r]=n,e.bindTransformFeedback(e.TRANSFORM_FEEDBACK,n);for(let n=0;n<t.buffers.length;n++){const s=t.buffers[n];s&&(i.buffer.update(s),s._glBuffers[r].refCount++,e.bindBufferBase(e.TRANSFORM_FEEDBACK_BUFFER,n,s._glBuffers[r].buffer||null))}return e.bindTransformFeedback(e.TRANSFORM_FEEDBACK,null),t.disposeRunner.add(this),n}disposeTransformFeedback(t,e){const i=t._glTransformFeedbacks[this.CONTEXT_UID],r=this.gl;
2t.disposeRunner.remove(this);const n=this.renderer.buffer;if(n)for(let i=0;i<t.buffers.length;i++){const r=t.buffers[i];if(!r)continue;const s=r._glBuffers[this.CONTEXT_UID];s&&(s.refCount--,0===s.refCount&&!e&&n.dispose(r,e))}i&&(e||r.deleteTransformFeedback(i),delete t._glTransformFeedbacks[this.CONTEXT_UID])}destroy(){this.renderer=null}}Jp.extension={type:bu.RendererSystem,name:"transformFeedback"},wu.add(Jp);class Qp{constructor(t){this.renderer=t}init(t){this.screen=new Qu(0,0,t.width,t.height),this.element=t.view||Jh.ADAPTER.createCanvas(),this.resolution=t.resolution||Jh.RESOLUTION,this.autoDensity=!!t.autoDensity}resizeView(t,e){this.element.width=Math.round(t*this.resolution),this.element.height=Math.round(e*this.resolution);const i=this.element.width/this.resolution,r=this.element.height/this.resolution;this.screen.width=i,this.screen.height=r,this.autoDensity&&(this.element.style.width=`${i}px`,this.element.style.height=`${r}px`),this.renderer.emit("resize",i,r),this.renderer.runners.resize.emit(this.screen.width,this.screen.height)}destroy(t){t&&this.element.parentNode?.removeChild(this.element),this.renderer=null,this.element=null,this.screen=null}}Qp.defaultOptions={width:800,height:600,resolution:void 0,autoDensity:!1},Qp.extension={type:[bu.RendererSystem,bu.CanvasRendererSystem],name:"_view"},wu.add(Qp),Jh.PREFER_ENV=Rh.WEBGL2,Jh.STRICT_TEXTURE_CACHE=!1,Jh.RENDER_OPTIONS={...Wd.defaultOptions,...Ud.defaultOptions,...Qp.defaultOptions,...jp.defaultOptions},Object.defineProperties(Jh,{WRAP_MODE:{get(){return Fu.defaultOptions.wrapMode},set(t){_c("7.1.0","settings.WRAP_MODE is deprecated, use BaseTexture.defaultOptions.wrapMode"),Fu.defaultOptions.wrapMode=t}},SCALE_MODE:{get(){return Fu.defaultOptions.scaleMode},set(t){_c("7.1.0","settings.SCALE_MODE is deprecated, use BaseTexture.defaultOptions.scaleMode"),Fu.defaultOptions.scaleMode=t}},MIPMAP_TEXTURES:{get(){return Fu.defaultOptions.mipmap},set(t){_c("7.1.0","settings.MIPMAP_TEXTURES is deprecated, use BaseTexture.defaultOptions.mipmap"),Fu.defaultOptions.mipmap=t}},ANISOTROPIC_LEVEL:{get(){return Fu.defaultOptions.anisotropicLevel},set(t){_c("7.1.0","settings.ANISOTROPIC_LEVEL is deprecated, use BaseTexture.defaultOptions.anisotropicLevel"),Fu.defaultOptions.anisotropicLevel=t}},FILTER_RESOLUTION:{get(){return _c("7.1.0","settings.FILTER_RESOLUTION is deprecated, use Filter.defaultResolution"),Gd.defaultResolution},set(t){Gd.defaultResolution=t}},FILTER_MULTISAMPLE:{get(){return _c("7.1.0","settings.FILTER_MULTISAMPLE is deprecated, use Filter.defaultMultisample"),Gd.defaultMultisample},set(t){Gd.defaultMultisample=t}},SPRITE_MAX_TEXTURES:{get(){return Vd.defaultMaxTextures},set(t){_c("7.1.0","settings.SPRITE_MAX_TEXTURES is deprecated, use BatchRenderer.defaultMaxTextures"),Vd.defaultMaxTextures=t}},SPRITE_BATCH_SIZE:{get(){return Vd.defaultBatchSize},set(t){_c("7.1.0","settings.SPRITE_BATCH_SIZE is deprecated, use BatchRenderer.defaultBatchSize"),Vd.defaultBatchSize=t}}
vendor: 8,471 bytes, line 2
2,CAN_UPLOAD_SAME_BUFFER:{get(){return Vd.canUploadSameBuffer},set(t){_c("7.1.0","settings.CAN_UPLOAD_SAME_BUFFER is deprecated, use BatchRenderer.canUploadSameBuffer"),Vd.canUploadSameBuffer=t}},GC_MODE:{get(){return qp.defaultMode},set(t){_c("7.1.0","settings.GC_MODE is deprecated, use TextureGCSystem.defaultMode"),qp.defaultMode=t}},GC_MAX_IDLE:{get(){return qp.defaultMaxIdle},set(t){_c("7.1.0","settings.GC_MAX_IDLE is deprecated, use TextureGCSystem.defaultMaxIdle"),qp.defaultMaxIdle=t}},GC_MAX_CHECK_COUNT:{get(){return qp.defaultCheckCountMax},set(t){_c("7.1.0","settings.GC_MAX_CHECK_COUNT is deprecated, use TextureGCSystem.defaultCheckCountMax"),qp.defaultCheckCountMax=t}},PRECISION_VERTEX:{get(){return Id.defaultVertexPrecision},set(t){_c("7.1.0","settings.PRECISION_VERTEX is deprecated, use Program.defaultVertexPrecision"),Id.defaultVertexPrecision=t}},PRECISION_FRAGMENT:{get(){return Id.defaultFragmentPrecision},set(t){_c("7.1.0","settings.PRECISION_FRAGMENT is deprecated, use Program.defaultFragmentPrecision"),Id.defaultFragmentPrecision=t}}});var tf=(t=>(t[t.INTERACTION=50]="INTERACTION",t[t.HIGH=25]="HIGH",t[t.NORMAL=0]="NORMAL",t[t.LOW=-25]="LOW",t[t.UTILITY=-50]="UTILITY",t))(tf||{});class ef{constructor(t,e=null,i=0,r=!1){this.next=null,this.previous=null,this._destroyed=!1,this.fn=t,this.context=e,this.priority=i,this.once=r}match(t,e=null){return this.fn===t&&this.context===e}emit(t){this.fn&&(this.context?this.fn.call(this.context,t):this.fn(t));const e=this.next;return this.once&&this.destroy(!0),this._destroyed&&(this.next=null),e}connect(t){this.previous=t,t.next&&(t.next.previous=this),this.next=t.next,t.next=this}destroy(t=!1){this._destroyed=!0,this.fn=null,this.context=null,this.previous&&(this.previous.next=this.next),this.next&&(this.next.previous=this.previous);const e=this.next;return this.next=t?null:e,this.previous=null,e}}const rf=class t{constructor(){this.autoStart=!1,this.deltaTime=1,this.lastTime=-1,this.speed=1,this.started=!1,this._requestId=null,this._maxElapsedMS=100,this._minElapsedMS=0,this._protected=!1,this._lastFrame=-1,this._head=new ef(null,null,1/0),this.deltaMS=1/t.targetFPMS,this.elapsedMS=1/t.targetFPMS,this._tick=t=>{this._requestId=null,this.started&&(this.update(t),this.started&&null===this._requestId&&this._head.next&&(this._requestId=requestAnimationFrame(this._tick)))}}_requestIfNeeded(){null===this._requestId&&this._head.next&&(this.lastTime=performance.now(),this._lastFrame=this.lastTime,this._requestId=requestAnimationFrame(this._tick))}_cancelIfNeeded(){null!==this._requestId&&(cancelAnimationFrame(this._requestId),this._requestId=null)}_startIfPossible(){this.started?this._requestIfNeeded():this.autoStart&&this.start()}add(t,e,i=tf.NORMAL){return this._addListener(new ef(t,e,i))}addOnce(t,e,i=tf.NORMAL){return this._addListener(new ef(t,e,i,!0))}_addListener(t){let e=this._head.next,i=this._head;if(e){for(;e;){if(t.priority>e.priority){t.connect(i);break}i=e,e=e.next}t.previous||t.connect(i)}else t.connect(i);return this._startIfPossible(),this}remove(t,e){let i=this._head.next;for(;i;)i=i.match(t,e)?i.destroy():i.next;return this._head.next||this._cancelIfNeeded(),this}get count(){if(!this._head)return 0;let t=0,e=this._head;for(;e=e.next;)t++;return t}start(){this.started||(this.started=!0,this._requestIfNeeded())}stop(){this.started&&(this.started=!1,this._cancelIfNeeded())}destroy(){if(!this._protected){this.stop();let t=this._head.next;for(;t;)t=t.destroy(!0);this._head.destroy(),this._head=null}}update(e=performance.now()){let i;if(e>this.lastTime){if(i=this.elapsedMS=e-this.lastTime,i>this._maxElapsedMS&&(i=this._maxElapsedMS),i*=this.speed,this._minElapsedMS){const t=e-this._lastFrame|0;if(t<this._minElapsedMS)return;this._lastFrame=e-t%this._minElapsedMS}this.deltaMS=i,this.deltaTime=this.deltaMS*t.targetFPMS;const r=this._head;let n=r.next;for(;n;)n=n.emit(this.deltaTime);r.next||this._cancelIfNeeded()}else this.deltaTime=this.deltaMS=this.elapsedMS=0;this.lastTime=e}get FPS(){return 1e3/this.elapsedMS}get minFPS(){return 1e3/this._maxElapsedMS}set minFPS(e){const i=Math.min(this.maxFPS,e),r=Math.min(Math.max(0,i)/1e3,t.targetFPMS);this._maxElapsedMS=1/r}get maxFPS(){return this._minElapsedMS?Math.round(1e3/this._minElapsedMS):0}set maxFPS(t){if(0===t)this._minElapsedMS=0;else{const e=Math.max(this.minFPS,t);this._minElapsedMS=1/(e/1e3)}}static get shared(){if(!t._shared){const e=t._shared=new t;e.autoStart=!0,e._protected=!0}return t._shared}static get system(){if(!t._system){const e=t._system=new t;e.autoStart=!0,e._protected=!0}return t._system}};rf.targetFPMS=.06;let nf=rf;Object.defineProperties(Jh,{TARGET_FPMS:{get(){return nf.targetFPMS},set(t){_c("7.1.0","settings.TARGET_FPMS is deprecated, use Ticker.targetFPMS"),nf.targetFPMS=t}}});class sf{static init(t){t=Object.assign({autoStart:!0,sharedTicker:!1},t),Object.defineProperty(this,"ticker",{set(t){this._ticker&&this._ticker.remove(this.render,this),this._ticker=t,t&&t.add(this.render,this,tf.LOW)},get(){return this._ticker}}),this.stop=()=>{this._ticker.stop()},this.start=()=>{this._ticker.start()},this._ticker=null,this.ticker=t.sharedTicker?nf.shared:new nf,t.autoStart&&this.start()}static destroy(){if(this._ticker){const t=this._ticker;this.ticker=null,t.destroy()}}}sf.extension=bu.Application,wu.add(sf);const af=[];wu.handleByList(bu.Renderer,af);const of="attribute vec2 aVertexPosition;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nuniform vec4 inputSize;\nuniform vec4 outputFrame;\n\nvec4 filterVertexPosition( void )\n{\n    vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy;\n\n    return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);\n}\n\nvec2 filterTextureCoord( void )\n{\n    return aVertexPosition * (outputFrame.zw * inputSize.zw);\n}\n\nvoid main(void)\n{\n    gl_Position = filterVertexPosition();\n    vTextureCoord = filterTextureCoord();\n}\n";class lf{constructor(t){this.renderer=t}contextChange(t){let e;if(1===this.renderer.context.webGLVersion){const i=t.getParameter(t.FRAMEBUFFER_BINDING);t.bindFramebuffer(t.FRAMEBUFFER,null),e=t.getParameter(t.SAMPLES),t.bindFramebuffer(t.FRAMEBUFFER,i)}else{const i=t.getParameter(t.DRAW_FRAMEBUFFER_BINDING);t.bindFramebuffer(t.DRAW_FRAMEBUFFER,null),e=t.getParameter(t.SAMPLES),t.bindFramebuffer(t.DRAW_FRAMEBUFFER,i)}e>=Kh.HIGH?this.multisample=Kh.HIGH:e>=Kh.MEDIUM?this.multisample=Kh.MEDIUM:e>=Kh.LOW?this.multisample=Kh.LOW:this.multisample=Kh.NONE}destroy(){}}lf.extension={type:bu.RendererSystem,name:"_multisample"},wu.add(lf);class hf{constructor(t){this.buffer=t||null,this.updateID=-1,this.byteLength=-1,this.refCount=0}}class cf{constructor(t){this.renderer=t,this.managedBuffers={},this.boundBufferBases={}}destroy(){this.renderer=null}contextChange(){this.disposeAll(!0),this.gl=this.renderer.gl,this.CONTEXT_UID=this.renderer.CONTEXT_UID}bind(t){const{gl:e,CONTEXT_UID:i}=this,r=t._glBuffers[i]||this.createGLBuffer(t);e.bindBuffer(t.type,r.buffer)}unbind(t){const{gl:e}=this;e.bindBuffer(t,null)}bindBufferBase(t,e){const{gl:i,CONTEXT_UID:r}=this;if(this.boundBufferBases[e]!==t){const n=t._glBuffers[r]||this.createGLBuffer(t);this.boundBufferBases[e]=t,i.bindBufferBase(i.UNIFORM_BUFFER,e,n.buffer)}}bindBufferRange(t,e,i){const{gl:r,CONTEXT_UID:n}=this;i=i||0;const s=t._glBuffers[n]||this.createGLBuffer(t);r.bindBufferRange(r.UNIFORM_BUFFER,e||0,s.buffer,256*i,256)}update(t){const{gl:e,CONTEXT_UID:i}=this,r=t._glBuffers[i]||this.createGLBuffer(t);if(t._updateID!==r.updateID)if(r.updateID=t._updateID,e.bindBuffer(t.type,r.buffer),r.byteLength>=t.data.byteLength)e.bufferSubData(t.type,0,t.data);else{const i=t.static?e.STATIC_DRAW:e.DYNAMIC_DRAW;r.byteLength=t.data.byteLength,e.bufferData(t.type,t.data,i)}}dispose(t,e){if(!this.managedBuffers[t.id])return;delete this.managedBuffers[t.id];const i=t._glBuffers[this.CONTEXT_UID],r=this.gl;t.disposeRunner.remove(this),i&&(e||r.deleteBuffer(i.buffer),delete t._glBuffers[this.CONTEXT_UID])}disposeAll(t){const e=Object.keys(this.managedBuffers);for(let i=0;i<e.length;i++)this.dispose(this.managedBuffers[e[i]],t)}createGLBuffer(t){const{CONTEXT_UID:e,gl:i}=this;return t._glBuffers[e]=new hf(i.createBuffer()),this.managedBuffers[t.id]=t,t.disposeRunner.add(this),t._glBuffers[e]}}cf.extension={type:bu.RendererSystem,name:"buffer"},wu.add(cf);class uf{constructor(t){this.renderer=t}render(t,e){const i=this.renderer;let r,n,s,a;
2if(e&&(r=e.renderTexture,n=e.clear,s=e.transform,a=e.skipUpdateTransform),this.renderingToScreen=!r,i.runners.prerender.emit(),i.emit("prerender"),i.projection.transform=s,!i.context.isLost){if(r||(this.lastObjectRendered=t),!a){const e=t.enableTempParent();t.updateTransform(),t.disableTempParent(e)}i.renderTexture.bind(r),i.batch.currentRenderer.start(),(n??i.background.clearBeforeRender)&&i.renderTexture.clear(),t.render(i),i.batch.currentRenderer.flush(),r&&(e.blit&&i.framebuffer.blit(),r.baseTexture.update()),i.runners.postrender.emit(),i.projection.transform=null,i.emit("postrender")}}destroy(){this.renderer=null,this.lastObjectRendered=null}}uf.extension={type:bu.RendererSystem,name:"objectRenderer"},wu.add(uf);const df=class t extends $p{constructor(e){super(),this.type=Oh.WEBGL,e=Object.assign({},Jh.RENDER_OPTIONS,e),this.gl=null,this.CONTEXT_UID=0,this.globalUniforms=new Rd({projectionMatrix:new nd},!0);const i={runners:["init","destroy","contextChange","resolutionChange","reset","update","postrender","prerender","resize"],systems:t.__systems,priority:["_view","textureGenerator","background","_plugin","startup","context","state","texture","buffer","geometry","framebuffer","transformFeedback","mask","scissor","stencil","projection","textureGC","filter","renderTexture","batch","objectRenderer","_multisample"]};this.setup(i),"useContextAlpha"in e&&(_c("7.0.0","options.useContextAlpha is deprecated, use options.premultipliedAlpha and options.backgroundAlpha instead"),e.premultipliedAlpha=e.useContextAlpha&&"notMultiplied"!==e.useContextAlpha,e.backgroundAlpha=!1===e.useContextAlpha?1:e.backgroundAlpha),this._plugin.rendererPlugins=t.__plugins,this.options=e,this.startup.run(this.options)}static test(t){return!t?.forceCanvas&&(typeof Tc>"u"&&(Tc=function(){const t={stencil:!0,failIfMajorPerformanceCaveat:Jh.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT};try{if(!Jh.ADAPTER.getWebGLRenderingContext())return!1;const e=Jh.ADAPTER.createCanvas();let i=e.getContext("webgl",t)||e.getContext("experimental-webgl",t);const r=!!i?.getContextAttributes()?.stencil;if(i){const t=i.getExtension("WEBGL_lose_context");t&&t.loseContext()}return i=null,r}catch{return!1}}()),Tc)}render(t,e){this.objectRenderer.render(t,e)}resize(t,e){this._view.resizeView(t,e)}reset(){return this.runners.reset.emit(),this}clear(){this.renderTexture.bind(),this.renderTexture.clear()}destroy(t=!1){this.runners.destroy.items.reverse(),this.emitWithCustomOptions(this.runners.destroy,{_view:t}),super.destroy()}get plugins(){return this._plugin.plugins}get multisample(){return this._multisample.multisample}get width(){return this._view.element.width}get height(){return this._view.element.height}get resolution(){return this._view.resolution}set resolution(t){this._view.resolution=t,this.runners.resolutionChange.emit(t)}get autoDensity(){return this._view.autoDensity}get view(){return this._view.element}get screen(){return this._view.screen}get lastObjectRendered(){return this.objectRenderer.lastObjectRendered}get renderingToScreen(){return this.objectRenderer.renderingToScreen}get rendererLogId(){return`WebGL ${this.context.webGLVersion}`}get clearBeforeRender(){return _c("7.0.0","renderer.clearBeforeRender has been deprecated, please use renderer.background.clearBeforeRender instead."),this.background.clearBeforeRender}get useContextAlpha(){return _c("7.0.0","renderer.useContextAlpha has been deprecated, please use renderer.context.premultipliedAlpha instead."),this.context.useContextAlpha}get preserveDrawingBuffer(){return _c("7.0.0","renderer.preserveDrawingBuffer has been deprecated, we cannot truly know this unless pixi created the context"),this.context.preserveDrawingBuffer}get backgroundColor(){return _c("7.0.0","renderer.backgroundColor has been deprecated, use renderer.background.color instead."),this.background.color}set backgroundColor(t){_c("7.0.0","renderer.backgroundColor has been deprecated, use renderer.background.color instead."),this.background.color=t}get backgroundAlpha(){return _c("7.0.0","renderer.backgroundAlpha has been deprecated, use renderer.background.alpha instead."),this.background.alpha}set backgroundAlpha(t){_c("7.0.0","renderer.backgroundAlpha has been deprecated, use renderer.background.alpha instead."),this.background.alpha=t}get powerPreference(){return _c("7.0.0","renderer.powerPreference has been deprecated, we can only know this if pixi creates the context"),this.context.powerPreference}generateTexture(t,e){return this.textureGenerator.generateTexture(t,e)}};df.extension={type:bu.Renderer,priority:1},df.__plugins={},df.__systems={};let pf=df;wu.handleByMap(bu.RendererPlugin,pf.__plugins),wu.handleByMap(bu.RendererSystem,pf.__systems),wu.add(pf);class ff extends Du{constructor(t,e){const{width:i,height:r}=e||{};
2super(i,r),this.items=[],this.itemDirtyIds=[];for(let e=0;e<t;e++){const t=new Fu;this.items.push(t),this.itemDirtyIds.push(-2)}this.length=t,this._load=null,this.baseTexture=null}initFromArray(t,e){for(let i=0;i<this.length;i++)t[i]&&(t[i].castToBaseTexture?this.addBaseTextureAt(t[i].castToBaseTexture(),i):t[i]instanceof Du?this.addResourceAt(t[i],i):this.addResourceAt(ku(t[i],e),i))}dispose(){for(let t=0,e=this.length;t<e;t++)this.items[t].destroy();this.items=null,this.itemDirtyIds=null,this._load=null}addResourceAt(t,e){if(!this.items[e])throw new Error(`Index ${e} is out of bounds`);return t.valid&&!this.valid&&this.resize(t.width,t.height),this.items[e].setResource(t),this}bind(t){if(null!==this.baseTexture)throw new Error("Only one base texture per TextureArray is allowed");super.bind(t);for(let e=0;e<this.length;e++)this.items[e].parentTextureArray=t,this.items[e].on("update",t.update,t)}unbind(t){super.unbind(t);for(let e=0;e<this.length;e++)this.items[e].parentTextureArray=null,this.items[e].off("update",t.update,t)}load(){if(this._load)return this._load;const t=this.items.map((t=>t.resource)).filter((t=>t)).map((t=>t.load()));return this._load=Promise.all(t).then((()=>{const{realWidth:t,realHeight:e}=this.items[0];return this.resize(t,e),this.update(),Promise.resolve(this)})),this._load}}const mf=class t extends ff{constructor(e,i){const{width:r,height:n,autoLoad:s,linkBaseTexture:a}=i||{};if(e&&e.length!==t.SIDES)throw new Error(`Invalid length. Got ${e.length}, expected 6`);super(6,{width:r,height:n});for(let e=0;e<t.SIDES;e++)this.items[e].target=Vh.TEXTURE_CUBE_MAP_POSITIVE_X+e;this.linkBaseTexture=!1!==a,e&&this.initFromArray(e,i),!1!==s&&this.load()}bind(t){super.bind(t),t.target=Vh.TEXTURE_CUBE_MAP}addBaseTextureAt(t,e,i){if(void 0===i&&(i=this.linkBaseTexture),!this.items[e])throw new Error(`Index ${e} is out of bounds`);if(!this.linkBaseTexture||t.parentTextureArray||Object.keys(t._glTextures).length>0){if(!t.resource)throw new Error("CubeResource does not support copying of renderTexture.");this.addResourceAt(t.resource,e)}else t.target=Vh.TEXTURE_CUBE_MAP_POSITIVE_X+e,t.parentTextureArray=this.baseTexture,this.items[e]=t;return t.valid&&!this.valid&&this.resize(t.realWidth,t.realHeight),this.items[e]=t,this}upload(e,i,r){const n=this.itemDirtyIds;for(let s=0;s<t.SIDES;s++){const t=this.items[s];(n[s]<t.dirtyId||r.dirtyId<i.dirtyId)&&(t.valid&&t.resource?(t.resource.upload(e,t,r),n[s]=t.dirtyId):n[s]<-1&&(e.gl.texImage2D(t.target,0,r.internalFormat,i.realWidth,i.realHeight,0,i.format,r.type,null),n[s]=-1))}return!0}static test(e){return Array.isArray(e)&&e.length===t.SIDES}};mf.SIDES=6;let gf=mf;class yf extends Yd{constructor(t,e){let i,r,n;e=e||{},"string"==typeof t?(i=yf.EMPTY,r=t,n=!0):(i=t,r=null,n=!1),super(i),this.url=r,this.crossOrigin=e.crossOrigin??!0,this.alphaMode="number"==typeof e.alphaMode?e.alphaMode:null,this.ownsImageBitmap=e.ownsImageBitmap??n,this._load=null,!1!==e.autoLoad&&this.load()}load(){return this._load||(this._load=new Promise((async(t,e)=>{if(null!==this.url)try{const e=await Jh.ADAPTER.fetch(this.url,{mode:this.crossOrigin?"cors":"no-cors"});if(this.destroyed)return;const i=await e.blob();if(this.destroyed)return;const r=await createImageBitmap(i,{premultiplyAlpha:null===this.alphaMode||this.alphaMode===Wh.UNPACK?"premultiply":"none"});if(this.destroyed)return void r.close();this.source=r,this.update(),t(this)}catch(t){if(this.destroyed)return;e(t),this.onError.emit(t)}else t(this)}))),this._load}upload(t,e,i){return this.source instanceof ImageBitmap?("number"==typeof this.alphaMode&&(e.alphaMode=this.alphaMode),super.upload(t,e,i)):(this.load(),!1)}dispose(){this.ownsImageBitmap&&this.source instanceof ImageBitmap&&this.source.close(),super.dispose(),this._load=null}static test(t){return!!globalThis.createImageBitmap&&typeof ImageBitmap<"u"&&("string"==typeof t||t instanceof ImageBitmap)}static get EMPTY(){return yf._EMPTY=yf._EMPTY??Jh.ADAPTER.createCanvas(0,0),yf._EMPTY}}const vf=class t extends Yd{constructor(t,e){e=e||{},super(Jh.ADAPTER.createCanvas()),this._width=0,this._height=0,this.svg=t,this.scale=e.scale||1,this._overrideWidth=e.width,this._overrideHeight=e.height,this._resolve=null,this._crossorigin=e.crossorigin,this._load=null,!1!==e.autoLoad&&this.load()}load(){return this._load||(this._load=new Promise((e=>{if(this._resolve=()=>{this.update(),e(this)},t.SVG_XML.test(this.svg.trim())){if(!btoa)throw new Error("Your browser doesn't support base64 conversions.");this.svg=`data:image/svg+xml;base64,${btoa(unescape(encodeURIComponent(this.svg)))}`}this._loadSvg()}))),this._load}_loadSvg(){const t=new Image;Yd.crossOrigin(t,this.svg,this._crossorigin),t.src=this.svg,t.onerror=e=>{this._resolve&&(t.onerror=null,this.onError.emit(e))},t.onload=()=>
vendor: 31,509 bytes, line 2
2{if(!this._resolve)return;const e=t.width,i=t.height;if(!e||!i)throw new Error("The SVG image must have width and height defined (in pixels), canvas API needs them.");let r=e*this.scale,n=i*this.scale;(this._overrideWidth||this._overrideHeight)&&(r=this._overrideWidth||this._overrideHeight/i*e,n=this._overrideHeight||this._overrideWidth/e*i),r=Math.round(r),n=Math.round(n);const s=this.source;s.width=r,s.height=n,s._pixiId=`canvas_${uu()}`,s.getContext("2d").drawImage(t,0,0,e,i,0,0,r,n),this._resolve(),this._resolve=null}}static getSize(e){const i=t.SVG_SIZE.exec(e),r={};return i&&(r[i[1]]=Math.round(parseFloat(i[3])),r[i[5]]=Math.round(parseFloat(i[7]))),r}dispose(){super.dispose(),this._resolve=null,this._crossorigin=null}static test(e,i){return"svg"===i||"string"==typeof e&&e.startsWith("data:image/svg+xml")||"string"==typeof e&&t.SVG_XML.test(e)}};vf.SVG_XML=/^(<\?xml[^?]+\?>)?\s*(<!--[^(-->)]*-->)?\s*\<svg/m,vf.SVG_SIZE=/<svg[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*>/i;let xf=vf;const _f=class t extends Yd{constructor(e,i){if(i=i||{},!(e instanceof HTMLVideoElement)){const r=document.createElement("video");!1!==i.autoLoad&&r.setAttribute("preload","auto"),!1!==i.playsinline&&(r.setAttribute("webkit-playsinline",""),r.setAttribute("playsinline","")),!0===i.muted&&(r.setAttribute("muted",""),r.muted=!0),!0===i.loop&&r.setAttribute("loop",""),!1!==i.autoPlay&&r.setAttribute("autoplay",""),"string"==typeof e&&(e=[e]);const n=e[0].src||e[0];Yd.crossOrigin(r,n,i.crossorigin);for(let i=0;i<e.length;++i){const n=document.createElement("source");let{src:s,mime:a}=e[i];if(s=s||e[i],s.startsWith("data:"))a=s.slice(5,s.indexOf(";"));else if(!s.startsWith("blob:")){const e=s.split("?").shift().toLowerCase(),i=e.slice(e.lastIndexOf(".")+1);a=a||t.MIME_TYPES[i]||`video/${i}`}n.src=s,a&&(n.type=a),r.appendChild(n)}e=r}super(e),this.noSubImage=!0,this._autoUpdate=!0,this._isConnectedToTicker=!1,this._updateFPS=i.updateFPS||0,this._msToNextUpdate=0,this.autoPlay=!1!==i.autoPlay,this._videoFrameRequestCallback=this._videoFrameRequestCallback.bind(this),this._videoFrameRequestCallbackHandle=null,this._load=null,this._resolve=null,this._reject=null,this._onCanPlay=this._onCanPlay.bind(this),this._onError=this._onError.bind(this),this._onPlayStart=this._onPlayStart.bind(this),this._onPlayStop=this._onPlayStop.bind(this),this._onSeeked=this._onSeeked.bind(this),!1!==i.autoLoad&&this.load()}update(t=0){if(!this.destroyed){if(this._updateFPS){const t=nf.shared.elapsedMS*this.source.playbackRate;this._msToNextUpdate=Math.floor(this._msToNextUpdate-t)}(!this._updateFPS||this._msToNextUpdate<=0)&&(super.update(),this._msToNextUpdate=this._updateFPS?Math.floor(1e3/this._updateFPS):0)}}_videoFrameRequestCallback(){this.update(),this.destroyed?this._videoFrameRequestCallbackHandle=null:this._videoFrameRequestCallbackHandle=this.source.requestVideoFrameCallback(this._videoFrameRequestCallback)}load(){if(this._load)return this._load;const t=this.source;return(t.readyState===t.HAVE_ENOUGH_DATA||t.readyState===t.HAVE_FUTURE_DATA)&&t.width&&t.height&&(t.complete=!0),t.addEventListener("play",this._onPlayStart),t.addEventListener("pause",this._onPlayStop),t.addEventListener("seeked",this._onSeeked),this._isSourceReady()?this._onCanPlay():(t.addEventListener("canplay",this._onCanPlay),t.addEventListener("canplaythrough",this._onCanPlay),t.addEventListener("error",this._onError,!0)),this._load=new Promise(((e,i)=>{this.valid?e(this):(this._resolve=e,this._reject=i,t.load())})),this._load}_onError(t){this.source.removeEventListener("error",this._onError,!0),this.onError.emit(t),this._reject&&(this._reject(t),this._reject=null,this._resolve=null)}_isSourcePlaying(){const t=this.source;return!t.paused&&!t.ended}_isSourceReady(){return this.source.readyState>2}_onPlayStart(){this.valid||this._onCanPlay(),this._configureAutoUpdate()}_onPlayStop(){this._configureAutoUpdate()}_onSeeked(){this._autoUpdate&&!this._isSourcePlaying()&&(this._msToNextUpdate=0,this.update(),this._msToNextUpdate=0)}_onCanPlay(){const t=this.source;t.removeEventListener("canplay",this._onCanPlay),t.removeEventListener("canplaythrough",this._onCanPlay);const e=this.valid;this._msToNextUpdate=0,this.update(),this._msToNextUpdate=0,!e&&this._resolve&&(this._resolve(this),this._resolve=null,this._reject=null),this._isSourcePlaying()?this._onPlayStart():this.autoPlay&&t.play()}dispose(){this._configureAutoUpdate();const t=this.source;t&&(t.removeEventListener("play",this._onPlayStart),t.removeEventListener("pause",this._onPlayStop),t.removeEventListener("seeked",this._onSeeked),t.removeEventListener("canplay",this._onCanPlay),t.removeEventListener("canplaythrough",this._onCanPlay),t.removeEventListener("error",this._onError,!0),t.pause(),t.src="",t.load()),super.dispose()}get autoUpdate(){return this._autoUpdate}set autoUpdate(t){t!==this._autoUpdate&&(this._autoUpdate=t,this._configureAutoUpdate())}get updateFPS(){return this._updateFPS}set updateFPS(t){t!==this._updateFPS&&(this._updateFPS=t,this._configureAutoUpdate())}_configureAutoUpdate(){this._autoUpdate&&this._isSourcePlaying()?!this._updateFPS&&this.source.requestVideoFrameCallback?(this._isConnectedToTicker&&(nf.shared.remove(this.update,this),this._isConnectedToTicker=!1,this._msToNextUpdate=0),null===this._videoFrameRequestCallbackHandle&&(this._videoFrameRequestCallbackHandle=this.source.requestVideoFrameCallback(this._videoFrameRequestCallback))):(null!==this._videoFrameRequestCallbackHandle&&(this.source.cancelVideoFrameCallback(this._videoFrameRequestCallbackHandle),this._videoFrameRequestCallbackHandle=null),this._isConnectedToTicker||(nf.shared.add(this.update,this),this._isConnectedToTicker=!0,this._msToNextUpdate=0)):(null!==this._videoFrameRequestCallbackHandle&&(this.source.cancelVideoFrameCallback(this._videoFrameRequestCallbackHandle),this._videoFrameRequestCallbackHandle=null),this._isConnectedToTicker&&(nf.shared.remove(this.update,this),this._isConnectedToTicker=!1,this._msToNextUpdate=0))}static test(e,i){return globalThis.HTMLVideoElement&&e instanceof HTMLVideoElement||t.TYPES.includes(i)}};_f.TYPES=["mp4","m4v","webm","ogg","ogv","h264","avi","mov"],_f.MIME_TYPES={ogv:"video/ogg",mov:"video/quicktime",m4v:"video/mp4"};let bf=_f;Cu.push(yf,qd,class extends Yd{constructor(t){super(t)}static test(t){const{OffscreenCanvas:e}=globalThis;return!!(e&&t instanceof e)||globalThis.HTMLCanvasElement&&t instanceof HTMLCanvasElement}},bf,class extends Yd{constructor(t){super(t)}static test(t){return!!globalThis.VideoFrame&&t instanceof globalThis.VideoFrame}},xf,Ru,gf,class extends ff{constructor(t,e){const{width:i,height:r}=e||{};let n,s;Array.isArray(t)?(n=t,s=t.length):s=t,super(s,{width:i,height:r}),n&&this.initFromArray(n,e)}addBaseTextureAt(t,e){if(!t.resource)throw new Error("ArrayResource does not support RenderTexture");return this.addResourceAt(t.resource,e),this}bind(t){super.bind(t),t.target=Vh.TEXTURE_2D_ARRAY}upload(t,e,i){const{length:r,itemDirtyIds:n,items:s}=this,{gl:a}=t;i.dirtyId<0&&a.texImage3D(a.TEXTURE_2D_ARRAY,0,i.internalFormat,this._width,this._height,r,0,e.format,i.type,null);for(let t=0;t<r;t++){const r=s[t];n[t]<r.dirtyId&&(n[t]=r.dirtyId,r.valid&&a.texSubImage3D(a.TEXTURE_2D_ARRAY,0,0,0,t,r.resource.width,r.resource.height,1,e.format,i.type,r.resource.source))}return!0}});class Sf{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,this.rect=null,this.updateID=-1}isEmpty(){return this.minX>this.maxX||this.minY>this.maxY}clear(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}getRectangle(t){return this.minX>this.maxX||this.minY>this.maxY?Qu.EMPTY:((t=t||new Qu(0,0,1,1)).x=this.minX,t.y=this.minY,t.width=this.maxX-this.minX,t.height=this.maxY-this.minY,t)}addPoint(t){this.minX=Math.min(this.minX,t.x),this.maxX=Math.max(this.maxX,t.x),this.minY=Math.min(this.minY,t.y),this.maxY=Math.max(this.maxY,t.y)}addPointMatrix(t,e){const{a:i,b:r,c:n,d:s,tx:a,ty:o}=t,l=i*e.x+n*e.y+a,h=r*e.x+s*e.y+o;this.minX=Math.min(this.minX,l),this.maxX=Math.max(this.maxX,l),this.minY=Math.min(this.minY,h),this.maxY=Math.max(this.maxY,h)}addQuad(t){let e=this.minX,i=this.minY,r=this.maxX,n=this.maxY,s=t[0],a=t[1];e=s<e?s:e,i=a<i?a:i,r=s>r?s:r,n=a>n?a:n,s=t[2],a=t[3],e=s<e?s:e,i=a<i?a:i,r=s>r?s:r,n=a>n?a:n,s=t[4],a=t[5],e=s<e?s:e,i=a<i?a:i,r=s>r?s:r,n=a>n?a:n,s=t[6],a=t[7],e=s<e?s:e,i=a<i?a:i,r=s>r?s:r,n=a>n?a:n,this.minX=e,this.minY=i,this.maxX=r,this.maxY=n}addFrame(t,e,i,r,n){this.addFrameMatrix(t.worldTransform,e,i,r,n)}addFrameMatrix(t,e,i,r,n){const s=t.a,a=t.b,o=t.c,l=t.d,h=t.tx,c=t.ty;let u=this.minX,d=this.minY,p=this.maxX,f=this.maxY,m=s*e+o*i+h,g=a*e+l*i+c;u=m<u?m:u,d=g<d?g:d,p=m>p?m:p,f=g>f?g:f,m=s*r+o*i+h,g=a*r+l*i+c,u=m<u?m:u,d=g<d?g:d,p=m>p?m:p,f=g>f?g:f,m=s*e+o*n+h,g=a*e+l*n+c,u=m<u?m:u,d=g<d?g:d,p=m>p?m:p,f=g>f?g:f,m=s*r+o*n+h,g=a*r+l*n+c,u=m<u?m:u,d=g<d?g:d,p=m>p?m:p,f=g>f?g:f,this.minX=u,this.minY=d,this.maxX=p,this.maxY=f}addVertexData(t,e,i){let r=this.minX,n=this.minY,s=this.maxX,a=this.maxY;for(let o=e;o<i;o+=2){const e=t[o],i=t[o+1];r=e<r?e:r,n=i<n?i:n,s=e>s?e:s,a=i>a?i:a}this.minX=r,this.minY=n,this.maxX=s,this.maxY=a}addVertices(t,e,i,r){this.addVerticesMatrix(t.worldTransform,e,i,r)}addVerticesMatrix(t,e,i,r,n=0,s=n){const a=t.a,o=t.b,l=t.c,h=t.d,c=t.tx,u=t.ty;let d=this.minX,p=this.minY,f=this.maxX,m=this.maxY;for(let t=i;t<r;t+=2){const i=e[t],r=e[t+1],g=a*i+l*r+c,y=h*r+o*i+u;d=Math.min(d,g-n),f=Math.max(f,g+n),p=Math.min(p,y-s),m=Math.max(m,y+s)}this.minX=d,this.minY=p,this.maxX=f,this.maxY=m}addBounds(t){const e=this.minX,i=this.minY,r=this.maxX,n=this.maxY;this.minX=t.minX<e?t.minX:e,this.minY=t.minY<i?t.minY:i,this.maxX=t.maxX>r?t.maxX:r,this.maxY=t.maxY>n?t.maxY:n}addBoundsMask(t,e){const i=t.minX>e.minX?t.minX:e.minX,r=t.minY>e.minY?t.minY:e.minY,n=t.maxX<e.maxX?t.maxX:e.maxX,s=t.maxY<e.maxY?t.maxY:e.maxY;if(i<=n&&r<=s){const t=this.minX,e=this.minY,a=this.maxX,o=this.maxY;this.minX=i<t?i:t,this.minY=r<e?r:e,this.maxX=n>a?n:a,this.maxY=s>o?s:o}}addBoundsMatrix(t,e){this.addFrameMatrix(e,t.minX,t.minY,t.maxX,t.maxY)}addBoundsArea(t,e){const i=t.minX>e.x?t.minX:e.x,r=t.minY>e.y?t.minY:e.y,n=t.maxX<e.x+e.width?t.maxX:e.x+e.width,s=t.maxY<e.y+e.height?t.maxY:e.y+e.height;if(i<=n&&r<=s){const t=this.minX,e=this.minY,a=this.maxX,o=this.maxY;this.minX=i<t?i:t,this.minY=r<e?r:e,this.maxX=n>a?n:a,this.maxY=s>o?s:o}}pad(t=0,e=t){this.isEmpty()||(this.minX-=t,this.maxX+=t,this.minY-=e,this.maxY+=e)}addFramePad(t,e,i,r,n,s){t-=n,e-=s,i+=n,r+=s,this.minX=this.minX<t?this.minX:t,this.maxX=this.maxX>i?this.maxX:i,this.minY=this.minY<e?this.minY:e,this.maxY=this.maxY>r?this.maxY:r}}class Ef extends yc{constructor(){super(),this.tempDisplayObjectParent=null,this.transform=new md,this.alpha=1,this.visible=!0,this.renderable=!0,this.cullable=!1,this.cullArea=null,this.parent=null,this.worldAlpha=1,this._lastSortedIndex=0,this._zIndex=0,this.filterArea=null,this.filters=null,this._enabledFilters=null,this._bounds=new Sf,this._localBounds=null,this._boundsID=0,this._boundsRect=null,this._localBoundsRect=null,this._mask=null,this._maskRefCount=0,this._destroyed=!1,this.isSprite=!1,this.isMask=!1}static mixin(t){const e=Object.keys(t);for(let i=0;i<e.length;++i){const r=e[i];Object.defineProperty(Ef.prototype,r,Object.getOwnPropertyDescriptor(t,r))}}get destroyed(){return this._destroyed}_recursivePostUpdateTransform(){this.parent?(this.parent._recursivePostUpdateTransform(),this.transform.updateTransform(this.parent.transform)):this.transform.updateTransform(this._tempDisplayObjectParent.transform)}updateTransform(){this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha}getBounds(t,e){return t||(this.parent?(this._recursivePostUpdateTransform(),this.updateTransform()):(this.parent=this._tempDisplayObjectParent,this.updateTransform(),this.parent=null)),this._bounds.updateID!==this._boundsID&&(this.calculateBounds(),this._bounds.updateID=this._boundsID),e||(this._boundsRect||(this._boundsRect=new Qu),e=this._boundsRect),this._bounds.getRectangle(e)}getLocalBounds(t){t||(this._localBoundsRect||(this._localBoundsRect=new Qu),t=this._localBoundsRect),this._localBounds||(this._localBounds=new Sf);const e=this.transform,i=this.parent;this.parent=null,this._tempDisplayObjectParent.worldAlpha=i?.worldAlpha??1,this.transform=this._tempDisplayObjectParent.transform;const r=this._bounds,n=this._boundsID;this._bounds=this._localBounds;const s=this.getBounds(!1,t);return this.parent=i,this.transform=e,this._bounds=r,this._bounds.updateID+=this._boundsID-n,s}toGlobal(t,e,i=!1){return i||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.apply(t,e)}toLocal(t,e,i,r){return e&&(t=e.toGlobal(t,i,r)),r||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.applyInverse(t,i)}setParent(t){if(!t||!t.addChild)throw new Error("setParent: Argument must be a Container");return t.addChild(this),t}removeFromParent(){this.parent?.removeChild(this)}setTransform(t=0,e=0,i=1,r=1,n=0,s=0,a=0,o=0,l=0){return this.position.x=t,this.position.y=e,this.scale.x=i||1,this.scale.y=r||1,this.rotation=n,this.skew.x=s,this.skew.y=a,this.pivot.x=o,this.pivot.y=l,this}destroy(t){this.removeFromParent(),this._destroyed=!0,this.transform=null,this.parent=null,this._bounds=null,this.mask=null,this.cullArea=null,this.filters=null,this.filterArea=null,this.hitArea=null,this.eventMode="auto",this.interactiveChildren=!1,this.emit("destroyed"),this.removeAllListeners()}get _tempDisplayObjectParent(){return null===this.tempDisplayObjectParent&&(this.tempDisplayObjectParent=new wf),this.tempDisplayObjectParent}enableTempParent(){const t=this.parent;return this.parent=this._tempDisplayObjectParent,t}disableTempParent(t){this.parent=t}get x(){return this.position.x}set x(t){this.transform.position.x=t}get y(){return this.position.y}set y(t){this.transform.position.y=t}get worldTransform(){return this.transform.worldTransform}get localTransform(){return this.transform.localTransform}get position(){return this.transform.position}set position(t){this.transform.position.copyFrom(t)}get scale(){return this.transform.scale}set scale(t){this.transform.scale.copyFrom(t)}get pivot(){return this.transform.pivot}set pivot(t){this.transform.pivot.copyFrom(t)}get skew(){return this.transform.skew}set skew(t){this.transform.skew.copyFrom(t)}get rotation(){return this.transform.rotation}set rotation(t){this.transform.rotation=t}get angle(){return this.transform.rotation*Yu}set angle(t){this.transform.rotation=t*qu}get zIndex(){return this._zIndex}set zIndex(t){this._zIndex!==t&&(this._zIndex=t,this.parent&&(this.parent.sortDirty=!0))}get worldVisible(){let t=this;do{if(!t.visible)return!1;t=t.parent}while(t);return!0}get mask(){return this._mask}set mask(t){if(this._mask!==t){if(this._mask){const t=this._mask.isMaskData?this._mask.maskObject:this._mask;t&&(t._maskRefCount--,0===t._maskRefCount&&(t.renderable=!0,t.isMask=!1))}if(this._mask=t,this._mask){const t=this._mask.isMaskData?this._mask.maskObject:this._mask;t&&(0===t._maskRefCount&&(t.renderable=!1,t.isMask=!0),t._maskRefCount++)}}}}class wf extends Ef{constructor(){super(...arguments),this.sortDirty=null}}Ef.prototype.displayObjectUpdateTransform=Ef.prototype.updateTransform;const Tf=new nd;function Af(t,e){return t.zIndex===e.zIndex?t._lastSortedIndex-e._lastSortedIndex:t.zIndex-e.zIndex}const Mf=class t extends Ef{constructor(){super(),this.children=[],this.sortableChildren=t.defaultSortableChildren,this.sortDirty=!1}onChildrenChange(t){}addChild(...t){if(t.length>1)for(let e=0;e<t.length;e++)this.addChild(t[e]);else{const e=t[0];e.parent&&e.parent.removeChild(e),e.parent=this,this.sortDirty=!0,e.transform._parentID=-1,this.children.push(e),this._boundsID++,this.onChildrenChange(this.children.length-1),this.emit("childAdded",e,this,this.children.length-1),e.emit("added",this)}return t[0]}addChildAt(t,e){if(e<0||e>this.children.length)throw new Error(`${t}addChildAt: The index ${e} supplied is out of bounds ${this.children.length}`);return t.parent&&t.parent.removeChild(t),t.parent=this,this.sortDirty=!0,t.transform._parentID=-1,this.children.splice(e,0,t),this._boundsID++,this.onChildrenChange(e),t.emit("added",this),this.emit("childAdded",t,this,e),t}swapChildren(t,e){if(t===e)return;const i=this.getChildIndex(t),r=this.getChildIndex(e);this.children[i]=e,this.children[r]=t,this.onChildrenChange(i<r?i:r)}getChildIndex(t){const e=this.children.indexOf(t);if(-1===e)throw new Error("The supplied DisplayObject must be a child of the caller");return e}setChildIndex(t,e){if(e<0||e>=this.children.length)throw new Error(`The index ${e} supplied is out of bounds ${this.children.length}`);const i=this.getChildIndex(t);lu(this.children,i,1),this.children.splice(e,0,t),this.onChildrenChange(e)}getChildAt(t){if(t<0||t>=this.children.length)throw new Error(`getChildAt: Index (${t}) does not exist.`);return this.children[t]}removeChild(...t){if(t.length>1)for(let e=0;e<t.length;e++)this.removeChild(t[e]);else{const e=t[0],i=this.children.indexOf(e);if(-1===i)return null;e.parent=null,e.transform._parentID=-1,lu(this.children,i,1),this._boundsID++,this.onChildrenChange(i),e.emit("removed",this),this.emit("childRemoved",e,this,i)}return t[0]}removeChildAt(t){const e=this.getChildAt(t);return e.parent=null,e.transform._parentID=-1,lu(this.children,t,1),this._boundsID++,this.onChildrenChange(t),e.emit("removed",this),this.emit("childRemoved",e,this,t),e}removeChildren(t=0,e=this.children.length){const i=t,r=e-i;let n;if(r>0&&r<=e){n=this.children.splice(i,r);for(let t=0;t<n.length;++t)n[t].parent=null,n[t].transform&&(n[t].transform._parentID=-1);this._boundsID++,this.onChildrenChange(t);for(let t=0;t<n.length;++t)n[t].emit("removed",this),this.emit("childRemoved",n[t],this,t);return n}if(0===r&&0===this.children.length)return[];throw new RangeError("removeChildren: numeric values are outside the acceptable range.")}sortChildren(){let t=!1;for(let e=0,i=this.children.length;e<i;++e){const i=this.children[e];i._lastSortedIndex=e,!t&&0!==i.zIndex&&(t=!0)}t&&this.children.length>1&&this.children.sort(Af),this.sortDirty=!1}updateTransform(){this.sortableChildren&&this.sortDirty&&this.sortChildren(),this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha;for(let t=0,e=this.children.length;t<e;++t){const e=this.children[t];e.visible&&e.updateTransform()}}calculateBounds(){this._bounds.clear(),this._calculateBounds();for(let t=0;t<this.children.length;t++){const e=this.children[t];if(e.visible&&e.renderable)if(e.calculateBounds(),e._mask){const t=e._mask.isMaskData?e._mask.maskObject:e._mask;t?(t.calculateBounds(),this._bounds.addBoundsMask(e._bounds,t._bounds)):this._bounds.addBounds(e._bounds)}else e.filterArea?this._bounds.addBoundsArea(e._bounds,e.filterArea):this._bounds.addBounds(e._bounds)}this._bounds.updateID=this._boundsID}getLocalBounds(t,e=!1){const i=super.getLocalBounds(t);if(!e)for(let t=0,e=this.children.length;t<e;++t){const e=this.children[t];e.visible&&e.updateTransform()}return i}_calculateBounds(){}_renderWithCulling(e){const i=e.renderTexture.sourceFrame;if(!(i.width>0&&i.height>0))return;let r,n;this.cullArea?(r=this.cullArea,n=this.worldTransform):this._render!==t.prototype._render&&(r=this.getBounds(!0));const s=e.projection.transform;if(s&&(n?(n=Tf.copyFrom(n),n.prepend(s)):n=s),r&&i.intersects(r,n))this._render(e);else if(this.cullArea)return;for(let t=0,i=this.children.length;t<i;++t){const i=this.children[t],r=i.cullable;i.cullable=r||!this.cullArea,i.render(e),i.cullable=r}}render(t){if(this.visible&&!(this.worldAlpha<=0)&&this.renderable)if(this._mask||this.filters?.length)this.renderAdvanced(t);else if(this.cullable)this._renderWithCulling(t);else{this._render(t);for(let e=0,i=this.children.length;e<i;++e)this.children[e].render(t)}}renderAdvanced(t){const e=this.filters,i=this._mask;if(e){this._enabledFilters||(this._enabledFilters=[]),this._enabledFilters.length=0;for(let t=0;t<e.length;t++)e[t].enabled&&this._enabledFilters.push(e[t])}const r=e&&this._enabledFilters?.length||i&&(!i.isMaskData||i.enabled&&(i.autoDetect||i.type!==qh.NONE));if(r&&t.batch.flush(),e&&this._enabledFilters?.length&&t.filter.push(this,this._enabledFilters),i&&t.mask.push(this,this._mask),this.cullable)this._renderWithCulling(t);else{this._render(t);for(let e=0,i=this.children.length;e<i;++e)this.children[e].render(t)}r&&t.batch.flush(),i&&t.mask.pop(this),e&&this._enabledFilters?.length&&t.filter.pop()}_render(t){}destroy(t){super.destroy(),this.sortDirty=!1;const e="boolean"==typeof t?t:t?.children,i=this.removeChildren(0,this.children.length);if(e)for(let e=0;e<i.length;++e)i[e].destroy(t)}get width(){return this.scale.x*this.getLocalBounds().width}set width(t){const e=this.getLocalBounds().width;this.scale.x=0!==e?t/e:1,this._width=t}get height(){return this.scale.y*this.getLocalBounds().height}set height(t){const e=this.getLocalBounds().height;this.scale.y=0!==e?t/e:1,this._height=t}};Mf.defaultSortableChildren=!1;let Pf=Mf;Pf.prototype.containerUpdateTransform=Pf.prototype.updateTransform,Object.defineProperties(Jh,{SORTABLE_CHILDREN:{get(){return Pf.defaultSortableChildren},set(t){_c("7.1.0","settings.SORTABLE_CHILDREN is deprecated, use Container.defaultSortableChildren"),Pf.defaultSortableChildren=t}}});const Cf=new Zu,kf=new Uint16Array([0,1,2,0,2,3]);class If extends Pf{constructor(t){super(),this._anchor=new pd(this._onAnchorUpdate,this,t?t.defaultAnchor.x:0,t?t.defaultAnchor.y:0),this._texture=null,this._width=0,this._height=0,this._tintColor=new eu(16777215),this._tintRGB=null,this.tint=16777215,this.blendMode=Fh.NORMAL,this._cachedTint=16777215,this.uvs=null,this.texture=t||Qd.EMPTY,this.vertexData=new Float32Array(8),this.vertexTrimmedData=null,this._transformID=-1,this._textureID=-1,this._transformTrimmedID=-1,this._textureTrimmedID=-1,this.indices=kf,this.pluginName="batch",this.isSprite=!0,this._roundPixels=Jh.ROUND_PIXELS}_onTextureUpdate(){this._textureID=-1,this._textureTrimmedID=-1,this._cachedTint=16777215,this._width&&(this.scale.x=hu(this.scale.x)*this._width/this._texture.orig.width),this._height&&(this.scale.y=hu(this.scale.y)*this._height/this._texture.orig.height)}_onAnchorUpdate(){this._transformID=-1,this._transformTrimmedID=-1}calculateVertices(){const t=this._texture;if(this._transformID===this.transform._worldID&&this._textureID===t._updateID)return;this._textureID!==t._updateID&&(this.uvs=this._texture._uvs.uvsFloat32),this._transformID=this.transform._worldID,this._textureID=t._updateID;const e=this.transform.worldTransform,i=e.a,r=e.b,n=e.c,s=e.d,a=e.tx,o=e.ty,l=this.vertexData,h=t.trim,c=t.orig,u=this._anchor;let d=0,p=0,f=0,m=0;if(h?(p=h.x-u._x*c.width,d=p+h.width,m=h.y-u._y*c.height,f=m+h.height):(p=-u._x*c.width,d=p+c.width,m=-u._y*c.height,f=m+c.height),l[0]=i*p+n*m+a,l[1]=s*m+r*p+o,l[2]=i*d+n*m+a,l[3]=s*m+r*d+o,l[4]=i*d+n*f+a,l[5]=s*f+r*d+o,l[6]=i*p+n*f+a,l[7]=s*f+r*p+o,this._roundPixels){const t=Jh.RESOLUTION;for(let e=0;e<l.length;++e)l[e]=Math.round(l[e]*t)/t}}calculateTrimmedVertices(){if(this.vertexTrimmedData){if(this._transformTrimmedID===this.transform._worldID&&this._textureTrimmedID===this._texture._updateID)return}else this.vertexTrimmedData=new Float32Array(8);this._transformTrimmedID=this.transform._worldID,this._textureTrimmedID=this._texture._updateID;const t=this._texture,e=this.vertexTrimmedData,i=t.orig,r=this._anchor,n=this.transform.worldTransform,s=n.a,a=n.b,o=n.c,l=n.d,h=n.tx,c=n.ty,u=-r._x*i.width,d=u+i.width,p=-r._y*i.height,f=p+i.height;if(e[0]=s*u+o*p+h,e[1]=l*p+a*u+c,e[2]=s*d+o*p+h,e[3]=l*p+a*d+c,e[4]=s*d+o*f+h,e[5]=l*f+a*d+c,e[6]=s*u+o*f+h,e[7]=l*f+a*u+c,this._roundPixels){const t=Jh.RESOLUTION;for(let i=0;i<e.length;++i)e[i]=Math.round(e[i]*t)/t}}_render(t){this.calculateVertices(),t.batch.setObjectRenderer(t.plugins[this.pluginName]),t.plugins[this.pluginName].render(this)}_calculateBounds(){const t=this._texture.trim,e=this._texture.orig;!t||t.width===e.width&&t.height===e.height?(this.calculateVertices(),this._bounds.addQuad(this.vertexData)):(this.calculateTrimmedVertices(),this._bounds.addQuad(this.vertexTrimmedData))}getLocalBounds(t){return 0===this.children.length?(this._localBounds||(this._localBounds=new Sf),this._localBounds.minX=this._texture.orig.width*-this._anchor._x,this._localBounds.minY=this._texture.orig.height*-this._anchor._y,this._localBounds.maxX=this._texture.orig.width*(1-this._anchor._x),this._localBounds.maxY=this._texture.orig.height*(1-this._anchor._y),t||(this._localBoundsRect||(this._localBoundsRect=new Qu),t=this._localBoundsRect),this._localBounds.getRectangle(t)):super.getLocalBounds.call(this,t)}containsPoint(t){this.worldTransform.applyInverse(t,Cf);const e=this._texture.orig.width,i=this._texture.orig.height,r=-e*this.anchor.x;let n=0;return Cf.x>=r&&Cf.x<r+e&&(n=-i*this.anchor.y,Cf.y>=n&&Cf.y<n+i)}destroy(t){if(super.destroy(t),this._texture.off("update",this._onTextureUpdate,this),this._anchor=null,"boolean"==typeof t?t:t?.texture){const e="boolean"==typeof t?t:t?.baseTexture;this._texture.destroy(!!e)}this._texture=null}static from(t,e){const i=t instanceof Qd?t:Qd.from(t,e);return new If(i)}set roundPixels(t){this._roundPixels!==t&&(this._transformID=-1,this._transformTrimmedID=-1),this._roundPixels=t}get roundPixels(){return this._roundPixels}get width(){return Math.abs(this.scale.x)*this._texture.orig.width}set width(t){const e=hu(this.scale.x)||1;this.scale.x=e*t/this._texture.orig.width,this._width=t}get height(){return Math.abs(this.scale.y)*this._texture.orig.height}set height(t){const e=hu(this.scale.y)||1;this.scale.y=e*t/this._texture.orig.height,this._height=t}get anchor(){return this._anchor}set anchor(t){this._anchor.copyFrom(t)}get tint(){return this._tintColor.value}set tint(t){this._tintColor.setValue(t),this._tintRGB=this._tintColor.toLittleEndianNumber()}get tintValue(){return this._tintColor.toNumber()}get texture(){return this._texture}set texture(t){this._texture!==t&&(this._texture&&this._texture.off("update",this._onTextureUpdate,this),this._texture=t||Qd.EMPTY,this._cachedTint=16777215,this._textureID=-1,this._textureTrimmedID=-1,t&&(t.baseTexture.valid?this._onTextureUpdate():t.once("update",this._onTextureUpdate,this)))}}const Df=new nd;Ef.prototype._cacheAsBitmap=!1,Ef.prototype._cacheData=null,Ef.prototype._cacheAsBitmapResolution=null,Ef.prototype._cacheAsBitmapMultisample=null;class Rf{constructor(){this.textureCacheId=null,this.originalRender=null,this.originalRenderCanvas=null,this.originalCalculateBounds=null,this.originalGetLocalBounds=null,this.originalUpdateTransform=null,this.originalDestroy=null,this.originalMask=null,this.originalFilterArea=null,this.originalContainsPoint=null,this.sprite=null}}Object.defineProperties(Ef.prototype,{cacheAsBitmapResolution:{get(){return this._cacheAsBitmapResolution},set(t){t!==this._cacheAsBitmapResolution&&(this._cacheAsBitmapResolution=t,this.cacheAsBitmap&&(this.cacheAsBitmap=!1,this.cacheAsBitmap=!0))}},cacheAsBitmapMultisample:{get(){return this._cacheAsBitmapMultisample},set(t){t!==this._cacheAsBitmapMultisample&&(this._cacheAsBitmapMultisample=t,this.cacheAsBitmap&&(this.cacheAsBitmap=!1,this.cacheAsBitmap=!0))}},cacheAsBitmap:{get(){return this._cacheAsBitmap},set(t){if(this._cacheAsBitmap===t)return;let e;this._cacheAsBitmap=t,t?(this._cacheData||(this._cacheData=new Rf),e=this._cacheData,e.originalRender=this.render,e.originalRenderCanvas=this.renderCanvas,e.originalUpdateTransform=this.updateTransform,e.originalCalculateBounds=this.calculateBounds,e.originalGetLocalBounds=this.getLocalBounds,e.originalDestroy=this.destroy,e.originalContainsPoint=this.containsPoint,e.originalMask=this._mask,e.originalFilterArea=this.filterArea,this.render=this._renderCached,this.renderCanvas=this._renderCachedCanvas,this.destroy=this._cacheAsBitmapDestroy):(e=this._cacheData,e.sprite&&this._destroyCachedDisplayObject(),this.render=e.originalRender,this.renderCanvas=e.originalRenderCanvas,this.calculateBounds=e.originalCalculateBounds,this.getLocalBounds=e.originalGetLocalBounds,this.destroy=e.originalDestroy,this.updateTransform=e.originalUpdateTransform,this.containsPoint=e.originalContainsPoint,this._mask=e.originalMask,this.filterArea=e.originalFilterArea)}}}),Ef.prototype._renderCached=function(t){!this.visible||this.worldAlpha<=0||!this.renderable||(this._initCachedDisplayObject(t),this._cacheData.sprite.transform._worldID=this.transform._worldID,this._cacheData.sprite.worldAlpha=this.worldAlpha,this._cacheData.sprite._render(t))},Ef.prototype._initCachedDisplayObject=function(t){if(this._cacheData?.sprite)return;const e=this.alpha;this.alpha=1,t.batch.flush();const i=this.getLocalBounds(new Qu,!0);if(this.filters?.length){const t=this.filters[0].padding;i.pad(t)}const r=this.cacheAsBitmapResolution||t.resolution;i.ceil(r),i.width=Math.max(i.width,1/r),i.height=Math.max(i.height,1/r);const n=t.renderTexture.current,s=t.renderTexture.sourceFrame.clone(),a=t.renderTexture.destinationFrame.clone(),o=t.projection.transform,l=tp.create({width:i.width,height:i.height,resolution:r,multisample:this.cacheAsBitmapMultisample??t.multisample}),h=`cacheAsBitmap_${uu()}`;this._cacheData.textureCacheId=h,Fu.addToCache(l.baseTexture,h),Qd.addToCache(l,h);const c=this.transform.localTransform.copyTo(Df).invert().translate(-i.x,-i.y);this.render=this._cacheData.originalRender,t.render(this,{renderTexture:l,clear:!0,transform:c,skipUpdateTransform:!1}),t.framebuffer.blit(),t.projection.transform=o,t.renderTexture.bind(n,s,a),this.render=this._renderCached,this.updateTransform=this.displayObjectUpdateTransform,this.calculateBounds=this._calculateCachedBounds,this.getLocalBounds=this._getCachedLocalBounds,this._mask=null,this.filterArea=null,this.alpha=e;const u=new If(l);u.transform.worldTransform=this.transform.worldTransform,u.anchor.x=-i.x/i.width,u.anchor.y=-i.y/i.height,u.alpha=e,u._bounds=this._bounds,this._cacheData.sprite=u,this.transform._parentID=-1,this.parent?this.updateTransform():(this.enableTempParent(),this.updateTransform(),this.disableTempParent(null)),this.containsPoint=u.containsPoint.bind(u)},Ef.prototype._renderCachedCanvas=function(t){!this.visible||this.worldAlpha<=0||!this.renderable||(this._initCachedDisplayObjectCanvas(t),this._cacheData.sprite.worldAlpha=this.worldAlpha,this._cacheData.sprite._renderCanvas(t))},Ef.prototype._initCachedDisplayObjectCanvas=function(t){if(this._cacheData?.sprite)return;const e=this.getLocalBounds(new Qu,!0),i=this.alpha;this.alpha=1;const r=t.canvasContext.activeContext,n=t._projTransform,s=this.cacheAsBitmapResolution||t.resolution;e.ceil(s),e.width=Math.max(e.width,1/s),e.height=Math.max(e.height,1/s);const a=tp.create({width:e.width,height:e.height,resolution:s}),o=`cacheAsBitmap_${uu()}`;this._cacheData.textureCacheId=o,Fu.addToCache(a.baseTexture,o),Qd.addToCache(a,o);const l=Df;this.transform.localTransform.copyTo(l),l.invert(),l.tx-=e.x,l.ty-=e.y,this.renderCanvas=this._cacheData.originalRenderCanvas,t.render(this,{renderTexture:a,clear:!0,transform:l,ski
2pUpdateTransform:!1}),t.canvasContext.activeContext=r,t._projTransform=n,this.renderCanvas=this._renderCachedCanvas,this.updateTransform=this.displayObjectUpdateTransform,this.calculateBounds=this._calculateCachedBounds,this.getLocalBounds=this._getCachedLocalBounds,this._mask=null,this.filterArea=null,this.alpha=i;const h=new If(a);h.transform.worldTransform=this.transform.worldTransform,h.anchor.x=-e.x/e.width,h.anchor.y=-e.y/e.height,h.alpha=i,h._bounds=this._bounds,this._cacheData.sprite=h,this.transform._parentID=-1,this.parent?this.updateTransform():(this.parent=t._tempDisplayObjectParent,this.updateTransform(),this.parent=null),this.containsPoint=h.containsPoint.bind(h)},Ef.prototype._calculateCachedBounds=function(){this._bounds.clear(),this._cacheData.sprite.transform._worldID=this.transform._worldID,this._cacheData.sprite._calculateBounds(),this._bounds.updateID=this._boundsID},Ef.prototype._getCachedLocalBounds=function(){return this._cacheData.sprite.getLocalBounds(null)},Ef.prototype._destroyCachedDisplayObject=function(){this._cacheData.sprite._texture.destroy(!0),this._cacheData.sprite=null,Fu.removeFromCache(this._cacheData.textureCacheId),Qd.removeFromCache(this._cacheData.textureCacheId),this._cacheData.textureCacheId=null},Ef.prototype._cacheAsBitmapDestroy=function(t){this.cacheAsBitmap=!1,this.destroy(t)},Ef.prototype.name=null,Pf.prototype.getChildByName=function(t,e){for(let e=0,i=this.children.length;e<i;e++)if(this.children[e].name===t)return this.children[e];if(e)for(let e=0,i=this.children.length;e<i;e++){const i=this.children[e];if(!i.getChildByName)continue;const r=i.getChildByName(t,!0);if(r)return r}return null},Ef.prototype.getGlobalPosition=function(t=new Zu,e=!1){return this.parent?this.parent.toGlobal(this.position,t,e):(t.x=this.position.x,t.y=this.position.y),t};const Of={5:[.153388,.221461,.250301],7:[.071303,.131514,.189879,.214607],9:[.028532,.067234,.124009,.179044,.20236],11:[.0093,.028002,.065984,.121703,.175713,.198596],13:[.002406,.009255,.027867,.065666,.121117,.174868,.197641],15:[489e-6,.002403,.009246,.02784,.065602,.120999,.174697,.197448]},Lf=["varying vec2 vBlurTexCoords[%size%];","uniform sampler2D uSampler;","void main(void)","{","    gl_FragColor = vec4(0.0);","    %blur%","}"].join("\n");class Ff extends Gd{constructor(t,e=8,i=4,r=Gd.defaultResolution,n=5){const s=function(t,e){const i=Math.ceil(t/2);let r,n="\n    attribute vec2 aVertexPosition;\n\n    uniform mat3 projectionMatrix;\n\n    uniform float strength;\n\n    varying vec2 vBlurTexCoords[%size%];\n\n    uniform vec4 inputSize;\n    uniform vec4 outputFrame;\n\n    vec4 filterVertexPosition( void )\n    {\n        vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy;\n\n        return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);\n    }\n\n    vec2 filterTextureCoord( void )\n    {\n        return aVertexPosition * (outputFrame.zw * inputSize.zw);\n    }\n\n    void main(void)\n    {\n        gl_Position = filterVertexPosition();\n\n        vec2 textureCoord = filterTextureCoord();\n        %blur%\n    }",s="";r=e?"vBlurTexCoords[%index%] =  textureCoord + vec2(%sampleIndex% * strength, 0.0);":"vBlurTexCoords[%index%] =  textureCoord + vec2(0.0, %sampleIndex% * strength);";for(let e=0;e<t;e++){let t=r.replace("%index%",e.toString());t=t.replace("%sampleIndex%",e-(i-1)+".0"),s+=t,s+="\n"}return n=n.replace("%blur%",s),n=n.replace("%size%",t.toString()),n}(n,t),a=function(t){const e=Of[t],i=e.length;let r,n=Lf,s="";for(let n=0;n<t;n++){let a="gl_FragColor += texture2D(uSampler, vBlurTexCoords[%index%]) * %value%;".replace("%index%",n.toString());r=n,n>=i&&(r=t-n-1),a=a.replace("%value%",e[r].toString()),s+=a,s+="\n"}return n=n.replace("%blur%",s),n=n.replace("%size%",t.toString()),n}(n);super(s,a),this.horizontal=t,this.resolution=r,this._quality=0,this.quality=i,this.blur=e}apply(t,e,i,r){if(i?this.horizontal?this.uniforms.strength=1/i.width*(i.width/e.width):this.uniforms.strength=1/i.height*(i.height/e.height):this.horizontal?this.uniforms.strength=1/t.renderer.width*(t.renderer.width/e.width):this.uniforms.strength=1/t.renderer.height*(t.renderer.height/e.he
2ight),this.uniforms.strength*=this.strength,this.uniforms.strength/=this.passes,1===this.passes)t.applyFilter(this,e,i,r);else{const n=t.getFilterTexture(),s=t.renderer;let a=e,o=n;this.state.blend=!1,t.applyFilter(this,a,o,Xh.CLEAR);for(let e=1;e<this.passes-1;e++){t.bindAndClear(a,Xh.BLIT),this.uniforms.uSampler=o;const e=o;o=a,a=e,s.shader.bind(this),s.geometry.draw(5)}this.state.blend=!0,t.applyFilter(this,o,i,r),t.returnFilterTexture(n)}}get blur(){return this.strength}set blur(t){this.padding=1+2*Math.abs(t),this.strength=t}get quality(){return this._quality}set quality(t){this._quality=t,this.passes=t}}class Bf extends Gd{constructor(){const t={m:new Float32Array([1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0]),uAlpha:1};super(of,"varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform float m[20];\nuniform float uAlpha;\n\nvoid main(void)\n{\n    vec4 c = texture2D(uSampler, vTextureCoord);\n\n    if (uAlpha == 0.0) {\n        gl_FragColor = c;\n        return;\n    }\n\n    // Un-premultiply alpha before applying the color matrix. See issue #3539.\n    if (c.a > 0.0) {\n      c.rgb /= c.a;\n    }\n\n    vec4 result;\n\n    result.r = (m[0] * c.r);\n        result.r += (m[1] * c.g);\n        result.r += (m[2] * c.b);\n        result.r += (m[3] * c.a);\n        result.r += m[4];\n\n    result.g = (m[5] * c.r);\n        result.g += (m[6] * c.g);\n        result.g += (m[7] * c.b);\n        result.g += (m[8] * c.a);\n        result.g += m[9];\n\n    result.b = (m[10] * c.r);\n       result.b += (m[11] * c.g);\n       result.b += (m[12] * c.b);\n       result.b += (m[13] * c.a);\n       result.b += m[14];\n\n    result.a = (m[15] * c.r);\n       result.a += (m[16] * c.g);\n       result.a += (m[17] * c.b);\n       result.a += (m[18] * c.a);\n       result.a += m[19];\n\n    vec3 rgb = mix(c.rgb, result.rgb, uAlpha);\n\n    // Premultiply alpha again.\n    rgb *= result.a;\n\n    gl_FragColor = vec4(rgb, result.a);\n}\n",t),this.alpha=1}_loadMatrix(t,e=!1){let i=t;e&&(this._multiply(i,this.uniforms.m,t),i=this._colorMatrix(i)),this.uniforms.m=i}_multiply(t,e,i){return t[0]=e[0]*i[0]+e[1]*i[5]+e[2]*i[10]+e[3]*i[15],t[1]=e[0]*i[1]+e[1]*i[6]+e[2]*i[11]+e[3]*i[16],t[2]=e[0]*i[2]+e[1]*i[7]+e[2]*i[12]+e[3]*i[17],t[3]=e[0]*i[3]+e[1]*i[8]+e[2]*i[13]+e[3]*i[18],t[4]=e[0]*i[4]+e[1]*i[9]+e[2]*i[14]+e[3]*i[19]+e[4],t[5]=e[5]*i[0]+e[6]*i[5]+e[7]*i[10]+e[8]*i[15],t[6]=e[5]*i[1]+e[6]*i[6]+e[7]*i[11]+e[8]*i[16],t[7]=e[5]*i[2]+e[6]*i[7]+e[7]*i[12]+e[8]*i[17],t[8]=e[5]*i[3]+e[6]*i[8]+e[7]*i[13]+e[8]*i[18],t[9]=e[5]*i[4]+e[6]*i[9]+e[7]*i[14]+e[8]*i[19]+e[9],t[10]=e[10]*i[0]+e[11]*i[5]+e[12]*i[10]+e[13]*i[15],t[11]=e[10]*i[1]+e[11]*i[6]+e[12]*i[11]+e[13]*i[16],t[12]=e[10]*i[2]+e[11]*i[7]+e[12]*i[12]+e[13]*i[17],t[13]=e[10]*i[3]+e[11]*i[8]+e[12]*i[13]+e[13]*i[18],t[14]=e[10]*i[4]+e[11]*i[9]+e[12]*i[14]+e[13]*i[19]+e[14],t[15]=e[15]*i[0]+e[16]*i[5]+e[17]*i[10]+e[18]*i[15],t[16]=e[15]*i[1]+e[16]*i[6]+e[17]*i[11]+e[18]*i[16],t[17]=e[15]*i[2]+e[16]*i[7]+e[17]*i[12]+e[18]*i[17],t[18]=e[15]*i[3]+e[16]*i[8]+e[17]*i[13]+e[18]*i[18],t[19]=e[15]*i[4]+e[16]*i[9]+e[17]*i[14]+e[18]*i[19]+e[19],t}_colorMatrix(t){const e=new Float32Array(t);return e[4]/=255,e[9]/=255,e[14]/=255,e[19]/=255,e}brightness(t,e){const i=[t,0,0,0,0,0,t,0,0,0,0,0,t,0,0,0,0,0,1,0];this._loadMatrix(i,e)}tint(t,e){const[i,r,n]=eu.shared.setValue(t).toArray(),s=[i,0,0,0,0,0,r,0,0,0,0,0,n,0,0,0,0,0,1,0];this._loadMatrix(s,e)}greyscale(t,e){const i=[t,t,t,0,0,t,t,t,0,0,t,t,t,0,0,0,0,0,1,0];this._loadMatrix(i,e)}blackAndWhite(t){this._loadMatrix([.3,.6,.1,0,0,.3,.6,.1,0,0,.3,.6,.1,0,0,0,0,0,1,0],t)}hue(t,e){t=(t||0)/180*Math.PI;const i=Math.cos(t),r=Math.sin(t),n=1/3,s=(0,Math.sqrt)(n),a=[i+(1-i)*n,n*(1-i)-s*r,n*(1-i)+s*r,0,0,n*(1-i)+s*r,i+n*(1-i),n*(1-i)-s*r,0,0,n*(1-i)-s*r,n*(1-i)+s*r,i+n*(1-i),0,0,0,0,0,1,0];this._loadMatrix(a,e)}contrast(t,e){const i=(t||0)+1,r=-.5*(i-1),n=[i,0,0,0,r,0,i,0,0,r,0,0,i,0,r,0,0,0,1,0];this._loadMatrix(n,e)}saturate(t=0,e){const i=2*t/3+1,r=-.5*(i-1),n=[i,r,r,0,0,r,i,r,0,0,r,r,i,0,0,0,0,0,1,0];this._loadMatrix(n,e)}desaturate(){this.saturate(-1)}negative(t){this._loadMatrix([-1,0,0,1,0,0,-1,0,1,0,0,0,-1,1,0,0,0,0,1,0],t)}sepia(t){this._loadMatrix([.393,.7689999,.18899999,0,0,.349,.6859999,.16799999,0,0,.272,.5339999,.13099999,0,0,0,0,0,1,0],t)}technicolor(t){this._loadMatrix([1.9125277891456083,-.8545344976951645,-.091555084827
255585,0,11.793603434377337,-.3087833385928097,1.7658908555458428,-.10601743074722245,0,-70.35205161461398,-.231103377548616,-.7501899197440212,1.847597816108189,0,30.950940869491138,0,0,0,1,0],t)}polaroid(t){this._loadMatrix([1.438,-.062,-.062,0,0,-.122,1.378,-.122,0,0,-.016,-.016,1.483,0,0,0,0,0,1,0],t)}toBGR(t){this._loadMatrix([0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0],t)}kodachrome(t){this._loadMatrix([1.1285582396593525,-.3967382283601348,-.03992559172921793,0,63.72958762196502,-.16404339962244616,1.0835251566291304,-.05498805115633132,0,24.732407896706203,-.16786010706155763,-.5603416277695248,1.6014850761964943,0,35.62982807460946,0,0,0,1,0],t)}browni(t){this._loadMatrix([.5997023498159715,.34553243048391263,-.2708298674538042,0,47.43192855600873,-.037703249837783157,.8609577587992641,.15059552388459913,0,-36.96841498319127,.24113635128153335,-.07441037908422492,.44972182064877153,0,-7.562075277591283,0,0,0,1,0],t)}vintage(t){this._loadMatrix([.6279345635605994,.3202183420819367,-.03965408211312453,0,9.651285835294123,.02578397704808868,.6441188644374771,.03259127616149294,0,7.462829176470591,.0466055556782719,-.0851232987247891,.5241648018700465,0,5.159190588235296,0,0,0,1,0],t)}colorTone(t,e,i,r,n){t=t||.2,e=e||.15,i=i||16770432,r=r||3375104;const s=eu.shared,[a,o,l]=s.setValue(i).toArray(),[h,c,u]=s.setValue(r).toArray(),d=[.3,.59,.11,0,0,a,o,l,t,0,h,c,u,e,0,a-h,o-c,l-u,0,0];this._loadMatrix(d,n)}night(t,e){const i=[-2*(t=t||.1),-t,0,0,0,-t,0,t,0,0,0,t,2*t,0,0,0,0,0,1,0];this._loadMatrix(i,e)}predator(t,e){const i=[11.224130630493164*t,-4.794486999511719*t,-2.8746118545532227*t,0*t,.40342438220977783*t,-3.6330697536468506*t,9.193157196044922*t,-2.951810836791992*t,0*t,-1.316135048866272*t,-3.2184197902679443*t,-4.2375030517578125*t,7.476448059082031*t,0*t,.8044459223747253*t,0,0,0,1,0];this._loadMatrix(i,e)}lsd(t){this._loadMatrix([2,-.4,.5,0,0,-.5,2,-.4,0,0,-.4,-.5,3,0,0,0,0,0,1,0],t)}reset(){this._loadMatrix([1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],!1)}get matrix(){return this.uniforms.m}set matrix(t){this.uniforms.m=t}get alpha(){return this.uniforms.uAlpha}set alpha(t){this.uniforms.uAlpha=t}}Bf.prototype.grayscale=Bf.prototype.greyscale;const Nf={AlphaFilter:class extends Gd{constructor(t=1){super("attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n    gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0
2)).xy, 0.0, 1.0);\n    vTextureCoord = aTextureCoord;\n}","varying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform float uAlpha;\n\nvoid main(void)\n{\n   gl_FragColor = texture2D(uSampler, vTextureCoord) * uAlpha;\n}\n",{uAlpha:1}),this.alpha=t}get alpha(){return this.uniforms.uAlpha}set alpha(t){this.uniforms.uAlpha=t}},BlurFilter:class extends Gd{constructor(t=8,e=4,i=Gd.defaultResolution,r=5){super(),this._repeatEdgePixels=!1,this.blurXFilter=new Ff(!0,t,e,i,r),this.blurYFilter=new Ff(!1,t,e,i,r),this.resolution=i,this.quality=e,this.blur=t,this.repeatEdgePixels=!1}apply(t,e,i,r){const n=Math.abs(this.blurXFilter.strength),s=Math.abs(this.blurYFilter.strength);if(n&&s){const n=t.getFilterTexture();this.blurXFilter.apply(t,e,n,Xh.CLEAR),this.blurYFilter.apply(t,n,i,r),t.returnFilterTexture(n)}else s?this.blurYFilter.apply(t,e,i,r):this.blurXFilter.apply(t,e,i,r)}updatePadding(){this._repeatEdgePixels?this.padding=0:this.padding=2*Math.max(Math.abs(this.blurXFilter.strength),Math.abs(this.blurYFilter.strength))}get blur(){return this.blurXFilter.blur}set blur(t){this.blurXFilter.blur=this.blurYFilter.blur=t,this.updatePadding()}get quality(){return this.blurXFilter.quality}set quality(t){this.blurXFilter.quality=this.blurYFilter.quality=t}get blurX(){return this.blurXFilter.blur}set blurX(t){this.blurXFilter.blur=t,this.updatePadding()}get blurY(){return this.blurYFilter.blur}set blurY(t){this.blurYFilter.blur=t,this.updatePadding()}get blendMode(){return this.blurYFilter.blendMode}set blendMode(t){this.blurYFilter.blendMode=t}get repeatEdgePixels(){return this._repeatEdgePixels}set repeatEdgePixels(t){this._repeatEdgePixels=t,this.updatePadding()}},BlurFilterPass:Ff,ColorMatrixFilter:Bf,DisplacementFilter:class extends Gd{constructor(t,e){const i=new nd;t.renderable=!1,super("attribute vec2 aVertexPosition;\n\nuniform mat3 projectionMatrix;\nuniform mat3 filterMatrix;\n\nvarying vec2 vTextureCoord;\nvarying vec2 vFilterCoord;\n\nuniform vec4 inputSize;\nuniform vec4 outputFrame;\n\nvec4 filterVertexPosition( void )\n{\n    vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy;\n\n    return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);\n}\n\nvec2 filterTextureCoord( void )\n{\n    return aVertexPosition * (outputFrame.zw * inputSize.zw);\n}\n\nvoid main(void)\n{\n\tgl_Position = filterVertexPosition();\n\tvTextureCoord = filterTextureCoord();\n\tvFilterCoord = ( filterMatrix * vec3( vTextureCoord, 1.0)  ).xy;\n}\n","varying vec2 vFilterCoord;\nvarying vec2 vTextureCoord;\n\nuniform vec2 scale;\nuniform mat2 rotation;\nuniform sampler2D uSampler;\nuniform sampler2D mapSampler;\n\nuniform highp vec4 inputSize;\nuniform vec4 inputClamp;\n\nvoid main(void)\n{\n  vec4 map =  texture2D(mapSampler, vFilterCoord);\n\n  map -= 0.5;\n  map.xy = scale * inputSize.zw * (rotation * map.xy);\n\n  gl_FragColor = texture2D(uSampler, clamp(vec2(vTextureCoord.x + map.x, vTextureCoord.y + map.y), inputClamp.xy, inputClamp.zw));\n}\n",{mapSampler:t._texture,filterMatrix:i,scale:{x:1,y:1},rotation:new Float32Array([1,0,0,1])}),this.maskSprite=t,this.maskMatrix=i,null==e&&(e=20),this.scale=new Zu(e,e)}apply(t,e,i,r){this.uniforms.filterMatrix=t.calculateSpriteMatrix(this.maskMatrix,this.maskSprite),this.uniforms.scale.x=this.scale.x,this.uniforms.scale.y=this.scale.y;const n=this.maskSprite.worldTransform,s=Math.sqrt(n.a*n.a+n.b*n.b),a=Math.sqrt(n.c*n.c+n.d*n.d);0!==s&&0!==a&&(this.uniforms.rotation[0]=n.a/s,this.uniforms.rotation[1]=n.b/s,this.uniforms.rotation[2]=n.c/a,this.uniforms.rotation[3]=n.d/a),t.applyFilter(this,e,i,r)}get map(){return this.uniforms.mapSampler}set map(t){this.uniforms.mapSampler=t}},FXAAFilter:class extends Gd{constructor(){super("\nattribute vec2 aVertexPosition;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 v_rgbNW;\nvarying vec2 v_rgbNE;\nvarying vec2 v_rgbSW;\nvarying vec2 v_rgbSE;\nvarying vec2 v_rgbM;\n\nvarying vec2 vFragCoord;\n\nuniform vec4 inputSize;\nuniform vec4 outputFrame;\n\nvec4 filterVertexPosition( void )\n{\n    vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy;
2\n\n    return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);\n}\n\nvoid texcoords(vec2 fragCoord, vec2 inverseVP,\n               out vec2 v_rgbNW, out vec2 v_rgbNE,\n               out vec2 v_rgbSW, out vec2 v_rgbSE,\n               out vec2 v_rgbM) {\n    v_rgbNW = (fragCoord + vec2(-1.0, -1.0)) * inverseVP;\n    v_rgbNE = (fragCoord + vec2(1.0, -1.0)) * inverseVP;\n    v_rgbSW = (fragCoord + vec2(-1.0, 1.0)) * inverseVP;\n    v_rgbSE = (fragCoord + vec2(1.0, 1.0)) * inverseVP;\n    v_rgbM = vec2(fragCoord * inverseVP);\n}\n\nvoid main(void) {\n\n   gl_Position = filterVertexPosition();\n\n   vFragCoord = aVertexPosition * outputFrame.zw;\n\n   texcoords(vFragCoord, inputSize.zw, v_rgbNW, v_rgbNE, v_rgbSW, v_rgbSE, v_rgbM);\n}\n",'varying vec2 v_rgbNW;\nvarying vec2 v_rgbNE;\nvarying vec2 v_rgbSW;\nvarying vec2 v_rgbSE;\nvarying vec2 v_rgbM;\n\nvarying vec2 vFragCoord;\nuniform sampler2D uSampler;\nuniform highp vec4 inputSize;\n\n\n/**\n Basic FXAA implementation based on the code on geeks3d.com with the\n modification that the texture2DLod stuff was removed since it\'s\n unsupported by WebGL.\n\n --\n\n From:\n https://github.com/mitsuhiko/webgl-meincraft\n\n Copyright (c) 2011 by Armin Ronacher.\n\n Some rights reserved.\n\n Redistribution and use in source and binary forms, with or without\n modification, are permitted provided that the following conditions are\n met:\n\n * Redistributions of source code must retain the above copyright\n notice, this list of conditions and the following disclaimer.\n\n * Redistributions in binary form must reproduce the above\n copyright notice, this list of conditions and the following\n disclaimer in the documentation and/or other materials provided\n with the distribution.\n\n * The names of the contributors may not be used to endorse or\n promote products derived from this software without specific\n prior written permission.\n\n THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\n#ifndef FXAA_REDUCE_MIN\n#define FXAA_REDUCE_MIN   (1.0/ 128.0)\n#endif\n#ifndef FXAA_REDUCE_MUL\n#define FXAA_REDUCE_MUL   (1.0 / 8.0)\n#endif\n#ifndef FXAA_SPAN_MAX\n#define FXAA_SPAN_MAX     8.0\n#endif\n\n//optimized version for mobile, where dependent\n//texture reads can be a bottleneck\nvec4 fxaa(sampler2D tex, vec2 fragCoord, vec2 inverseVP,\n          vec2 v_rgbNW, vec2 v_rgbNE,\n          vec2 v_rgbSW, vec2 v_rgbSE,\n          vec2 v_rgbM) {\n    vec4 color;\n    vec3 rgbNW = texture2D(tex, v_rgbNW).xyz;\n    vec3 rgbNE = texture2D(tex, v_rgbNE).xyz;\n    vec3 rgbSW = texture2D(tex, v_rgbSW).xyz;\n    vec3 rgbSE = texture2D(tex, v_rgbSE).xyz;\n    vec4 texColor = texture2D(tex, v_rgbM);\n    vec3 rgbM  = texColor.xyz;\n    vec3 luma = vec3(0.299, 0.587, 0.114);\n    float lumaNW = dot(rgbNW, luma);\n    float lumaNE = dot(rgbNE, luma);\n    float lumaSW = dot(rgbSW, luma);\n    float lumaSE = dot(rgbSE, luma);\n    float lumaM  = dot(rgbM,  luma);\n    float lumaMin = min(lumaM, min(min(lumaNW, lumaNE), min(lumaSW, lumaSE)));\n    float lumaMax = max(lumaM, max(max(lumaNW, lumaNE), max(lumaSW, lumaSE)));\n\n    mediump vec2 dir;\n    dir.x = -((lumaNW + lumaNE) - (lumaSW + lumaSE));\n    dir.y =  ((lumaNW + lumaSW) - (lumaNE + lumaSE));\n\n    float dirReduce = max((lumaNW + lumaNE + lumaSW + lumaSE) *\n                          (0.25 * FXAA_REDUCE_MUL), FXAA_REDUCE_MIN);\n\n    float rcpDirMin = 1.0 / (min(abs(dir.x), abs(dir.y)) + dirReduce);\n    dir = min(vec2(FXAA_SPAN_MAX, FXAA_SPAN_MAX),\n              max(vec2(-FXAA_SPAN_MAX, -FXAA_SPAN_MAX),\n                  dir * rcpDirMin)) * inverseVP;\n\n    vec3 rgbA = 0.5 * (\n                       texture2D(tex, fragCoord * inverseVP + dir * (1.0 / 3.0 - 0.5)).xyz +\n                       texture2D(tex, fragCoord * inverseVP + dir * (2.0 / 3.0 - 0.5)).xyz);\n    vec3 rgbB = rgbA * 0.5 + 0.25 * (\n                                     texture2D(tex, fragCoord * inverseVP + dir * -0.5).xyz +\n                                     texture2D(tex, fragCoord * inverseVP + dir * 0.5).xyz);
2\n\n    float lumaB = dot(rgbB, luma);\n    if ((lumaB < lumaMin) || (lumaB > lumaMax))\n        color = vec4(rgbA, texColor.a);\n    else\n        color = vec4(rgbB, texColor.a);\n    return color;\n}\n\nvoid main() {\n\n      vec4 color;\n\n      color = fxaa(uSampler, vFragCoord, inputSize.zw, v_rgbNW, v_rgbNE, v_rgbSW, v_rgbSE, v_rgbM);\n\n      gl_FragColor = color;\n}\n')}},NoiseFilter:class extends Gd{constructor(t=.5,e=Math.random()){super(of,"precision highp float;\n\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\n\nuniform float uNoise;\nuniform float uSeed;\nuniform sampler2D uSampler;\n\nfloat rand(vec2 co)\n{\n    return fract(sin(dot(co.xy, vec2(12.9898, 78.233))) * 43758.5453);\n}\n\nvoid main()\n{\n    vec4 color = texture2D(uSampler, vTextureCoord);\n    float randomValue = rand(gl_FragCoord.xy * uSeed);\n    float diff = (randomValue - 0.5) * uNoise;\n\n    // Un-premultiply alpha before applying the color matrix. See issue #3539.\n    if (color.a > 0.0) {\n        color.rgb /= color.a;\n    }\n\n    color.r += diff;\n    color.g += diff;\n    color.b += diff;\n\n    // Premultiply alpha again.\n    color.rgb *= color.a;\n\n    gl_FragColor = color;\n}\n",{uNoise:0,uSeed:0}),this.noise=t,this.seed=e}get noise(){return this.uniforms.uNoise}set noise(t){this.uniforms.uNoise=t}get seed(){return this.uniforms.uSeed}set seed(t){this.uniforms.uSeed=t}}};Object.entries(Nf).forEach((([t,e])=>{Object.defineProperty(Nf,t,{get(){return _c("7.1.0",`filters.${t} has moved to ${t}`),e}})}));const Vf=new class{constructor(){this.interactionFrequency=10,this._deltaTime=0,this._didMove=!1,this.tickerAdded=!1,this._pauseUpdate=!0}init(t){this.removeTickerListener(),this.events=t,this.interactionFrequency=10,this._deltaTime=0,this._didMove=!1,this.tickerAdded=!1,this._pauseUpdate=!0}get pauseUpdate(){return this._pauseUpdate}set pauseUpdate(t){this._pauseUpdate=t}addTickerListener(){this.tickerAdded||!this.domElement||(nf.system.add(this.tickerUpdate,this,tf.INTERACTION),this.tickerAdded=!0)}removeTickerListener(){this.tickerAdded&&(nf.system.remove(this.tickerUpdate,this),this.tickerAdded=!1)}pointerMoved(){this._didMove=!0}update(){if(!this.domElement||this._pauseUpdate)return;if(this._didMove)return void(this._didMove=!1);const t=this.events.rootPointerEvent;this.events.supportsTouchEvents&&"touch"===t.pointerType||globalThis.document.dispatchEvent(new PointerEvent("pointermove",{clientX:t.clientX,clientY:t.clientY}))}tickerUpdate(t){this._deltaTime+=t,!(this._deltaTime<this.interactionFrequency)&&(this._deltaTime=0,this.update())}};class zf{constructor(t){this.bubbles=!0,this.cancelBubble=!0,this.cancelable=!1,this.composed=!1,this.defaultPrevented=!1,this.eventPhase=zf.prototype.NONE,this.propagationStopped=!1,this.propagationImmediatelyStopped=!1,this.layer=new Zu,this.page=new Zu,this.NONE=0,this.CAPTURING_PHASE=1,this.AT_TARGET=2,this.BUBBLING_PHASE=3,this.manager=t}get layerX(){return this.layer.x}get layerY(){return this.layer.y}get pageX(){return this.page.x}get pageY(){return this.page.y}get data(){return this}composedPath(){return this.manager&&(!this.path||this.path[this.path.length-1]!==this.target)&&(this.path=this.target?this.manager.propagationPath(this.target):[]),this.path}initEvent(t,e,i){throw new Error("initEvent() is a legacy DOM API. It is not implemented in the Federated Events API.")}initUIEvent(t,e,i,r,n){throw new Error("initUIEvent() is a legacy DOM API. It is not implemented in the Federated Events API.")}preventDefault(){this.nativeEvent instanceof Event&&this.nativeEvent.cancelable&&this.nativeEvent.preventDefault(),this.defaultPrevented=!0}stopImmediatePropagation(){this.propagationImmediatelyStopped=!0}stopPropagation(){this.propagationStopped=!0}}class Gf extends zf{constructor(){super(...arguments),this.client=new Zu,this.movement=new Zu,this.offset=new Zu,this.global=new Zu,this.screen=new Zu}get clientX(){return this.client.x}get clientY(){return this.client.y}get x(){return this.clientX}get y(){return this.clientY}get movementX(){return this.movement.x}get movementY(){return this.movement.y}get offsetX(){return this.offset.x}get offsetY(){return this.offset.y}get globalX(){return this.global.x}get globalY(){return this.global.y}get screenX(){return this.screen.x}get screenY(){return this.screen.y}
2getLocalPosition(t,e,i){return t.worldTransform.applyInverse(i||this.global,e)}getModifierState(t){return"getModifierState"in this.nativeEvent&&this.nativeEvent.getModifierState(t)}initMouseEvent(t,e,i,r,n,s,a,o,l,h,c,u,d,p,f){throw new Error("Method not implemented.")}}class Uf extends Gf{constructor(){super(...arguments),this.width=0,this.height=0,this.isPrimary=!1}getCoalescedEvents(){return"pointermove"===this.type||"mousemove"===this.type||"touchmove"===this.type?[this]:[]}getPredictedEvents(){throw new Error("getPredictedEvents is not supported!")}}class Hf extends Gf{constructor(){super(...arguments),this.DOM_DELTA_PIXEL=0,this.DOM_DELTA_LINE=1,this.DOM_DELTA_PAGE=2}}Hf.DOM_DELTA_PIXEL=0,Hf.DOM_DELTA_LINE=1,Hf.DOM_DELTA_PAGE=2;const jf=new Zu,Wf=new Zu;class Xf{constructor(t){this.dispatch=new yc,this.moveOnAll=!1,this.enableGlobalMoveEvents=!0,this.mappingState={trackingData:{}},this.eventPool=new Map,this._allInteractiveElements=[],this._hitElements=[],this._isPointerMoveEvent=!1,this.rootTarget=t,this.hitPruneFn=this.hitPruneFn.bind(this),this.hitTestFn=this.hitTestFn.bind(this),this.mapPointerDown=this.mapPointerDown.bind(this),this.mapPointerMove=this.mapPointerMove.bind(this),this.mapPointerOut=this.mapPointerOut.bind(this),this.mapPointerOver=this.mapPointerOver.bind(this),this.mapPointerUp=this.mapPointerUp.bind(this),this.mapPointerUpOutside=this.mapPointerUpOutside.bind(this),this.mapWheel=this.mapWheel.bind(this),this.mappingTable={},this.addEventMapping("pointerdown",this.mapPointerDown),this.addEventMapping("pointermove",this.mapPointerMove),this.addEventMapping("pointerout",this.mapPointerOut),this.addEventMapping("pointerleave",this.mapPointerOut),this.addEventMapping("pointerover",this.mapPointerOver),this.addEventMapping("pointerup",this.mapPointerUp),this.addEventMapping("pointerupoutside",this.mapPointerUpOutside),this.addEventMapping("wheel",this.mapWheel)}addEventMapping(t,e){this.mappingTable[t]||(this.mappingTable[t]=[]),this.mappingTable[t].push({fn:e,priority:0}),this.mappingTable[t].sort(((t,e)=>t.priority-e.priority))}dispatchEvent(t,e){t.propagationStopped=!1,t.propagationImmediatelyStopped=!1,this.propagate(t,e),this.dispatch.emit(e||t.type,t)}mapEvent(t){if(!this.rootTarget)return;const e=this.mappingTable[t.type];if(e)for(let i=0,r=e.length;i<r;i++)e[i].fn(t);else console.warn(`[EventBoundary]: Event mapping not defined for ${t.type}`)}
2hitTest(t,e){Vf.pauseUpdate=!0;const i=this[this._isPointerMoveEvent&&this.enableGlobalMoveEvents?"hitTestMoveRecursive":"hitTestRecursive"](this.rootTarget,this.rootTarget.eventMode,jf.set(t,e),this.hitTestFn,this.hitPruneFn);return i&&i[0]}propagate(t,e){if(!t.target)return;const i=t.composedPath();t.eventPhase=t.CAPTURING_PHASE;for(let r=0,n=i.length-1;r<n;r++)if(t.currentTarget=i[r],this.notifyTarget(t,e),t.propagationStopped||t.propagationImmediatelyStopped)return;if(t.eventPhase=t.AT_TARGET,t.currentTarget=t.target,this.notifyTarget(t,e),!t.propagationStopped&&!t.propagationImmediatelyStopped){t.eventPhase=t.BUBBLING_PHASE;for(let r=i.length-2;r>=0;r--)if(t.currentTarget=i[r],this.notifyTarget(t,e),t.propagationStopped||t.propagationImmediatelyStopped)return}}all(t,e,i=this._allInteractiveElements){if(0===i.length)return;t.eventPhase=t.BUBBLING_PHASE;const r=Array.isArray(e)?e:[e];for(let e=i.length-1;e>=0;e--)r.forEach((r=>{t.currentTarget=i[e],this.notifyTarget(t,r)}))}propagationPath(t){const e=[t];for(let i=0;i<2048&&t!==this.rootTarget;i++){if(!t.parent)throw new Error("Cannot find propagation path to disconnected target");e.push(t.parent),t=t.parent}return e.reverse(),e}hitTestMoveRecursive(t,e,i,r,n,s=!1){let a=!1;if(this._interactivePrune(t))return null;if(("dynamic"===t.eventMode||"dynamic"===e)&&(Vf.pauseUpdate=!1),t.interactiveChildren&&t.children){const o=t.children;for(let l=o.length-1;l>=0;l--){const h=o[l],c=this.hitTestMoveRecursive(h,this._isInteractive(e)?e:h.eventMode,i,r,n,s||n(t,i));if(c){if(c.length>0&&!c[c.length-1].parent)continue;const e=t.isInteractive();(c.length>0||e)&&(e&&this._allInteractiveElements.push(t),c.push(t)),0===this._hitElements.length&&(this._hitElements=c),a=!0}}}const o=this._isInteractive(e),l=t.isInteractive();return o&&l&&this._allInteractiveElements.push(t),s||this._hitElements.length>0?null:a?this._hitElements:o&&!n(t,i)&&r(t,i)?l?[t]:[]:null}hitTestRecursive(t,e,i,r,n){if(this._interactivePrune(t)||n(t,i))return null;if(("dynamic"===t.eventMode||"dynamic"===e)&&(Vf.pauseUpdate=!1),t.interactiveChildren&&t.children){const s=t.children;for(let a=s.length-1;a>=0;a--){const o=s[a],l=this.hitTestRecursive(o,this._isInteractive(e)?e:o.eventMode,i,r,n);if(l){if(l.length>0&&!l[l.length-1].parent)continue;const e=t.isInteractive();return(l.length>0||e)&&l.push(t),l}}}const s=this._isInteractive(e),a=t.isInteractive();return s&&r(t,i)?a?[t]:[]:null}_isInteractive(t){return"static"===t||"dynamic"===t}_interactivePrune(t){return!(t&&!t.isMask&&t.visible&&t.renderable&&"none"!==t.eventMode&&("passive"!==t.eventMode||t.interactiveChildren)&&!t.isMask)}hitPruneFn(t,e){if(t.hitArea&&(t.worldTransform.applyInverse(e,Wf),!t.hitArea.contains(Wf.x,Wf.y)))return!0;if(t._mask){const i=t._mask.isMaskData?t._mask.maskObject:t._mask;if(i&&!i.containsPoint?.(e))return!0}return!1}hitTestFn(t,e){return"passive"!==t.eventMode&&(!!t.hitArea||!!t.containsPoint&&t.containsPoint(e))}notifyTarget(t,e){const i=`on${e=e??t.type}`;t.currentTarget[i]?.(t);const r=t.eventPhase===t.CAPTURING_PHASE||t.eventPhase===t.AT_TARGET?`${e}capture`:e;this.notifyListeners(t,r),t.eventPhase===t.AT_TARGET&&this.notifyListeners(t,e)}mapPointerDown(t){if(!(t instanceof Uf))return void console.warn("EventBoundary cannot map a non-pointer event as a pointer event");const e=this.createPointerEvent(t);if(this.dispatchEvent(e,"pointerdown"),"touch"===e.pointerType)this.dispatchEvent(e,"touchstart");else if("mouse"===e.pointerType||"pen"===e.pointerType){const t=2===e.button;this.dispatchEvent(e,t?"rightdown":"mousedown")}this.trackingData(t.pointerId).pressTargetsByButton[t.button]=e.composedPath(),this.freeEvent(e)}mapPointerMove(t){if(!(t instanceof Uf))return void console.warn("EventBoundary cannot map a non-pointer event as a pointer event");this._allInteractiveElements.length=0,this._hitElements.length=0,this._isPointerMoveEvent=!0;const e=this.createPointerEvent(t);this._isPointerMoveEvent=!1;const i="mouse"===e.pointerType||"pen"===e.pointerType,r=this.trackingData(t.pointerId),n=this.findMountedTarget(r.overTargets);if(r.overTargets?.length>0&&n!==e.target){const r="mousemove"===t.type?"mouseout":"pointerout",s=this.createPointerEvent(t,r,n);if(this.dispatchEvent(s,"pointerout"),i&&this.dispatchEvent(s,"mouseout"),!e.composedPath().includes(n)){const r=this.createPointerEvent(t,"pointerleave",n);for(r.eventPhase=r.AT_TARGET;r.target&&!e.composedPath().includes(r.target);)r.currentTarget=r.target,this.notifyTarget(r),i&&this.notifyTarget(r,"mouseleave"),r.target=r.target.parent;this.freeEvent(r)}this.freeEvent(s)}if(n!==e.target){const r="mousemove"===t.type?"mouseover":"pointerover",s=this.clonePointerEvent(e,r);this.dispatchEvent(s,"pointerover"),i&&this.dispatchEvent(s,"mouseover");let a=n?.parent;for(;a&&a!==this.rootTarget.parent&&a!==e.target;)a=a.parent;if(!a||a===this.rootTarget.parent){const t=this.clonePointerEvent(e,"pointerenter");for(t.eventPhase=t.AT_TARGET;t.target&&t.target!==n&&t.target!==this.rootTarget.parent;)t.currentTarget=t.target,this.notifyTarget(t),i&&this.notifyTarget(t,"mouseenter"),t.target=t.target.parent;this.freeEvent(t)}this.freeEvent(s)}const s=[],a=this.enableGlobalMoveEvents??!0;this.moveOnAll?s.push("pointermove"):this.dispatchEvent(e,"pointermove"),a&&s.push("globalpointermove"),"touch"===e.pointerType&&(this.moveOnAll?s.splice(1,0,"touchmove"):this.dispatchEvent(e,"touchmove"),a&&s.push("globaltouchmove")),i&&(this.moveOnAll?s.splice(1,0,"mousemove"):this.dispatchEvent(e,"mousemove"),a&&s.push("globalmousemove"),this.cursor=e.target?.cursor),s.length>0&&this.all(e,s),this._allInteractiveElements.length=0,this._hitElements.length=0,r.overTargets=e.composedPath(),this.freeEvent(e)}mapPointerOver(t){if(!(t instanceof Uf))return void console.warn("EventBoundary cannot map a non-pointer event as a pointer event");const e=this.trackingData(t.pointerId),i=this.createPointerEvent(t),r="mouse"===i.pointerType||"pen"===i.pointerType;this.dispatchEvent(i,"pointerover"),r&&this.dispatchEvent(i,"mouseover"),"mouse"===i.pointerType&&(this.cursor=i.target?.cursor);const n=this.clonePointerEvent(i,"pointerenter");for(n.eventPhase=n.AT_TARGET;n.target&&n.target!==this.rootTarget.parent;)n.currentTarget=n.target,this.notifyTarget(n),r&&this.notifyTarget(n,"mouseenter"),n.target=n.target.parent;e.overTargets=i.composedPath(),this.freeEvent(i),this.freeEvent(n)}mapPointerOut(t){if(!(t instanceof Uf))return void console.warn("EventBoundary cannot map a non-pointer event as a pointer event");const e=this.trackingData(t.pointerId);if(e.overTargets){const i="mouse"===t.pointerType||"pen"===t.pointerType,r=this.findMountedTarget(e.overTargets),n=this.createPointerEvent(t,"pointerout",r);this.dispatchEvent(n),i&&this.dispatchEvent(n,"mouseout");const s=this.createPointerEvent(t,"pointerleave",r);for(s.eventPhase=s.AT_TARGET;s.target&&s.target!==this.rootTarget.parent;)s.currentTarget=s.target,this.notifyTarget(s),i&&this.notifyTarget(s,"mouseleave"),s.target=s.target.parent;e.overTargets=null,this.freeEvent(n),this.freeEvent(s)}this.cursor=null}mapPointerUp(t){if(!(t instanceof Uf))return void console.warn("EventBoundary cannot map a non-pointer event as a pointer event");const e=performance.now(),i=this.createPointerEvent(t);if(this.dispatchEvent(i,"pointerup"),"touch"===i.pointerType)this.dispatchEvent(i,"touchend");else if("mouse"===i.pointerType||"pen"===i.pointerType){const t=2===i.button;this.dispatchEvent(i,t?"rightup":"mouseup")}const r=this.trackingData(t.pointerId),n=this.findMountedTarget(r.pressTargetsByButton[t.button]);let s=n;if(n&&!i.composedPath().includes(n)){let e=n;for(;e&&!i.composedPath().includes(e);){if(i.currentTarget=e,this.notifyTarget(i,"pointerupoutside"),"touch"===i.pointerType)this.notifyTarget(i,"touchendoutside");else if("mouse"===i.pointerType||"pen"===i.pointerType){const t=2===i.button;this.notifyTarget(i,t?"rightupoutside":"mouseupoutside")}e=e.parent}delete r.pressTargetsByButton[t.button],s=e}if(s){const n=this.clonePointerEvent(i,"click");n.target=s,n.path=null,r.clicksByButton[t.button]||(r.clicksByButton[t.button]={clickCount:0,target:n.target,timeStamp:e});const a=r.clicksByButton[t.button];if(a.target===n.target&&e-a.timeStamp<200?++a.clickCount:a.clickCount=1,a.target=n.target,a.timeStamp=e,n.detail=a.clickCount,"mouse"===n.pointerType){const t=2===n.button;this.dispatchEvent(n,t?"rightclick":"click")}else"touch"===n.pointerType&&this.dispatchEvent(n,"tap");this.dispatchEvent(n,"pointertap"),this.freeEvent(n)}this.freeEvent(i)}mapPointerUpOutside(t){if(!(t instanceof Uf))return void console.warn("EventBoundary cannot map a non-pointer event as a pointer event");const e=this.trackingData(t.pointerId),i=this.findMountedTarget(e.pressTargetsByButton[t.button]),r=this.createPointerEvent(t);if(i){let n=i;for(;n;)r.currentTarget=n,this.notifyTarget(r,"pointerupoutside"),"touch"===r.pointerType?this.notifyTarget(r,"touchendoutside"):("mouse"===r.pointerType||"pen"===r.pointerType)&&this.notifyTarget(r,2===r.button?"rightupoutside":"mouseupoutside"),n=n.parent;delete e.pressTargetsByButton[t.button]}this.freeEvent(r)}mapWheel(t){if(!(t instanceof Hf))return void console.warn("EventBoundary cannot map a non-wheel event as a wheel event");const e=this.createWheelEvent(t);this.dispatchEvent(e),this.freeEvent(e)}findMountedTarget(t){if(!t)return null;let e=t[0];for(let i=1;i<t.length&&t[i].parent===e;i++)e=t[i];return e}createPointerEvent(t,e,i){const r=this.allocateEvent(Uf);return this.copyPointerData(t,r),this.copyMouseData(t,r),this.copyData(t,r),r.nativeEvent=t.nativeEvent,r.originalEvent=t,r.target=i??this.hitTest(r.global.x,r.global.y)??this._hitElements[0],"string"==typeof e&&(r.type=e),r}createWheelEvent(t){const e=this.allocateEvent(Hf);return this.copyWheelData(t,e),this.copyMouseData(t,e),this.copyData(t,e),e.nativeEvent=t.nativeEvent,e.originalEvent=t,e.target=this.hitTest(e.global.x,e.global.y),e}clonePointerEvent(t,e){const i=this.allocateEvent(Uf);return i.nativeEvent=t.nativeEvent,i.originalEvent=t.originalEvent,this.copyPointerData(t,i),this.copyMouseData(t,i),this.copyData(t,i),i.target=t.target,i.path=t.composedPath().slice(),i.type=e??i.type,i}copyWheelData(t,e){e.deltaMode=t.deltaMode,e.deltaX=t.deltaX,e.deltaY=t.deltaY,e.deltaZ=t.deltaZ}copyPointerData(t,e){t instanceof Uf&&e instanceof Uf&&(e.pointerId=t.pointerId,e.width=t.width,e.height=t.height,e.isPrimary=t.isPrimary,e.pointerType=t.pointerType,e.pressure=t.pressure,e.tangentialPressure=t.tangentialPressure,e.tiltX=t.tiltX,e.t
vendor: 8,045 bytes, line 2
2iltY=t.tiltY,e.twist=t.twist)}copyMouseData(t,e){t instanceof Gf&&e instanceof Gf&&(e.altKey=t.altKey,e.button=t.button,e.buttons=t.buttons,e.client.copyFrom(t.client),e.ctrlKey=t.ctrlKey,e.metaKey=t.metaKey,e.movement.copyFrom(t.movement),e.screen.copyFrom(t.screen),e.shiftKey=t.shiftKey,e.global.copyFrom(t.global))}copyData(t,e){e.isTrusted=t.isTrusted,e.srcElement=t.srcElement,e.timeStamp=performance.now(),e.type=t.type,e.detail=t.detail,e.view=t.view,e.which=t.which,e.layer.copyFrom(t.layer),e.page.copyFrom(t.page)}trackingData(t){return this.mappingState.trackingData[t]||(this.mappingState.trackingData[t]={pressTargetsByButton:{},clicksByButton:{},overTarget:null}),this.mappingState.trackingData[t]}allocateEvent(t){this.eventPool.has(t)||this.eventPool.set(t,[]);const e=this.eventPool.get(t).pop()||new t(this);return e.eventPhase=e.NONE,e.currentTarget=null,e.path=null,e.target=null,e}freeEvent(t){if(t.manager!==this)throw new Error("It is illegal to free an event not managed by this EventBoundary!");const e=t.constructor;this.eventPool.has(e)||this.eventPool.set(e,[]),this.eventPool.get(e).push(t)}notifyListeners(t,e){const i=t.currentTarget._events[e];if(i&&t.currentTarget.isInteractive())if("fn"in i)i.once&&t.currentTarget.removeListener(e,i.fn,void 0,!0),i.fn.call(i.context,t);else for(let r=0,n=i.length;r<n&&!t.propagationImmediatelyStopped;r++)i[r].once&&t.currentTarget.removeListener(e,i[r].fn,void 0,!0),i[r].fn.call(i[r].context,t)}}const $f={touchstart:"pointerdown",touchend:"pointerup",touchendoutside:"pointerupoutside",touchmove:"pointermove",touchcancel:"pointercancel"},Yf=class t{constructor(e){this.supportsTouchEvents="ontouchstart"in globalThis,this.supportsPointerEvents=!!globalThis.PointerEvent,this.domElement=null,this.resolution=1,this.renderer=e,this.rootBoundary=new Xf(null),Vf.init(this),this.autoPreventDefault=!0,this.eventsAdded=!1,this.rootPointerEvent=new Uf(null),this.rootWheelEvent=new Hf(null),this.cursorStyles={default:"inherit",pointer:"pointer"},this.features=new Proxy({...t.defaultEventFeatures},{set:(t,e,i)=>("globalMove"===e&&(this.rootBoundary.enableGlobalMoveEvents=i),t[e]=i,!0)}),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOverOut=this.onPointerOverOut.bind(this),this.onWheel=this.onWheel.bind(this)}static get defaultEventMode(){return this._defaultEventMode}init(e){const{view:i,resolution:r}=this.renderer;this.setTargetElement(i),this.resolution=r,t._defaultEventMode=e.eventMode??"auto",Object.assign(this.features,e.eventFeatures??{}),this.rootBoundary.enableGlobalMoveEvents=this.features.globalMove}resolutionChange(t){this.resolution=t}destroy(){this.setTargetElement(null),this.renderer=null}setCursor(t){t=t||"default";let e=!0;if(globalThis.OffscreenCanvas&&this.domElement instanceof OffscreenCanvas&&(e=!1),this.currentCursor===t)return;this.currentCursor=t;const i=this.cursorStyles[t];if(i)switch(typeof i){case"string":e&&(this.domElement.style.cursor=i);break;case"function":i(t);break;case"object":e&&Object.assign(this.domElement.style,i)}else e&&"string"==typeof t&&!Object.prototype.hasOwnProperty.call(this.cursorStyles,t)&&(this.domElement.style.cursor=t)}get pointer(){return this.rootPointerEvent}onPointerDown(t){if(!this.features.click)return;this.rootBoundary.rootTarget=this.renderer.lastObjectRendered;const e=this.normalizeToPointerData(t);this.autoPreventDefault&&e[0].isNormalized&&(t.cancelable||!("cancelable"in t))&&t.preventDefault();for(let t=0,i=e.length;t<i;t++){const i=e[t],r=this.bootstrapEvent(this.rootPointerEvent,i);this.rootBoundary.mapEvent(r)}this.setCursor(this.rootBoundary.cursor)}onPointerMove(t){if(!this.features.move)return;this.rootBoundary.rootTarget=this.renderer.lastObjectRendered,Vf.pointerMoved();const e=this.normalizeToPointerData(t);for(let t=0,i=e.length;t<i;t++){const i=this.bootstrapEvent(this.rootPointerEvent,e[t]);this.rootBoundary.mapEvent(i)}this.setCursor(this.rootBoundary.cursor)}onPointerUp(t){if(!this.features.click)return;this.rootBoundary.rootTarget=this.renderer.lastObjectRendered;let e=t.target;t.composedPath&&t.composedPath().length>0&&(e=t.composedPath()[0]);const i=e!==this.domElement?"outside":"",r=this.normalizeToPointerData(t);for(let t=0,e=r.length;t<e;t++){const e=this.bootstrapEvent(this.rootPointerEvent,r[t]);e.type+=i,this.rootBoundary.mapEvent(e)}this.setCursor(this.rootBoundary.cursor)}onPointerOverOut(t){if(!this.features.click)return;this.rootBoundary.rootTarget=this.renderer.lastObjectRendered;const e=this.normalizeToPointerData(t);for(let t=0,i=e.length;t<i;t++){const i=this.bootstrapEvent(this.rootPointerEvent,e[t]);this.rootBoundary.mapEvent(i)}this.setCursor(this.rootBoundary.cursor)}onWheel(t){if(!this.features.wheel)return;const e=this.normalizeWheelEvent(t);this.rootBoundary.rootTarget=this.renderer.lastObjectRendered,this.rootBoundary.mapEvent(e)}setTargetElement(t){this.removeEvents(),this.domElement=t,Vf.domElement=t,this.addEvents()}addEvents(){if(this.eventsAdded||!this.domElement)return;Vf.addTickerListener();const t=this.domElement.style;t&&(globalThis.navigator.msPointerEnabled?(t.msContentZooming="none",t.msTouchAction="none"):this.supportsPointerEvents&&(t.touchAction="none")),this.supportsPointerEvents?(globalThis.document.addEventListener("pointermove",this.onPointerMove,!0),this.domElement.addEventListener("pointerdown",this.onPointerDown,!0),this.domElement.addEventListener("pointerleave",this.onPointerOverOut,!0),this.domElement.addEventListener("pointerover",this.onPointerOverOut,!0),globalThis.addEventListener("pointerup",this.onPointerUp,!0)):(globalThis.document.addEventListener("mousemove",this.onPointerMove,!0),this.domElement.addEventListener("mousedown",this.onPointerDown,!0),this.domElement.addEventListener("mouseout",this.onPointerOverOut,!0),this.domElement.addEventListener("mouseover",this.onPointerOverOut,!0),globalThis.addEventListener("mouseup",this.onPointerUp,!0),this.supportsTouchEvents&&(this.domElement.addEventListener("touchstart",this.onPointerDown,!0),this.domElement.addEventListener("touchend",this.onPointerUp,!0),this.domElement.addEventListener("touchmove",this.onPointerMove,!0))),this.domElement.addEventListener("wheel",this.onWheel,{passive:!0,capture:!0}),this.eventsAdded=!0}removeEvents(){if(!this.eventsAdded||!this.domElement)return;Vf.removeTickerListener();const t=this.domElement.style;globalThis.navigator.msPointerEnabled?(t.msContentZooming="",t.msTouchAction=""):this.supportsPointerEvents&&(t.touchAction=""),this.supportsPointerEvents?(globalThis.document.removeEventListener("pointermove",this.onPointerMove,!0),this.domElement.removeEventListener("pointerdown",this.onPointerDown,!0),this.domElement.removeEventListener("pointerleave",this.onPointerOverOut,!0),this.domElement.removeEventListener("pointerover",this.onPointerOverOut,!0),globalThis.removeEventListener("pointerup",this.onPointerUp,!0)):(globalThis.document.removeEventListener("mousemove",this.onPointerMove,!0),this.domElement.removeEventListener("mousedown",this.onPointerDown,!0),this.domElement.removeEventListener("mouseout",this.onPointerOverOut,!0),this.domElement.removeEventListener("mouseover",this.onPointerOverOut,!0),globalThis.removeEventListener("mouseup",this.onPointerUp,!0),this.supportsTouchEvents&&(this.domElement.removeEventListener("touchstart",this.onPointerDown,!0),this.domElement.removeEventListener("touchend",this.onPointerUp,!0),this.domElement.removeEventListener("touchmove",this.onPointerMove,!0))),this.domElement.removeEventListener("wheel",this.onWheel,!0),this.domElement=null,this.eventsAdded=!1}mapPositionToPoint(t,e,i){const r=this.domElement.isConnected?this.domElement.getBoundingClientRect():{x:0,y:0,width:this.domElement.width,height:this.domElement.height,left:0,top:0},n=1/this.resolution;t.x=(e-r.left)*(this.domElement.width/r.width)*n,t.y=(i-r.top)*(this.domElement.height/r.height)*n}normalizeToPointerData(t){const e=[];
2if(this.supportsTouchEvents&&t instanceof TouchEvent)for(let i=0,r=t.changedTouches.length;i<r;i++){const r=t.changedTouches[i];typeof r.button>"u"&&(r.button=0),typeof r.buttons>"u"&&(r.buttons=1),typeof r.isPrimary>"u"&&(r.isPrimary=1===t.touches.length&&"touchstart"===t.type),typeof r.width>"u"&&(r.width=r.radiusX||1),typeof r.height>"u"&&(r.height=r.radiusY||1),typeof r.tiltX>"u"&&(r.tiltX=0),typeof r.tiltY>"u"&&(r.tiltY=0),typeof r.pointerType>"u"&&(r.pointerType="touch"),typeof r.pointerId>"u"&&(r.pointerId=r.identifier||0),typeof r.pressure>"u"&&(r.pressure=r.force||.5),typeof r.twist>"u"&&(r.twist=0),typeof r.tangentialPressure>"u"&&(r.tangentialPressure=0),typeof r.layerX>"u"&&(r.layerX=r.offsetX=r.clientX),typeof r.layerY>"u"&&(r.layerY=r.offsetY=r.clientY),r.isNormalized=!0,r.type=t.type,e.push(r)}else if(!globalThis.MouseEvent||t instanceof MouseEvent&&!(this.supportsPointerEvents&&t instanceof globalThis.PointerEvent)){const i=t;typeof i.isPrimary>"u"&&(i.isPrimary=!0),typeof i.width>"u"&&(i.width=1),typeof i.height>"u"&&(i.height=1),typeof i.tiltX>"u"&&(i.tiltX=0),typeof i.tiltY>"u"&&(i.tiltY=0),typeof i.pointerType>"u"&&(i.pointerType="mouse"),typeof i.pointerId>"u"&&(i.pointerId=1),typeof i.pressure>"u"&&(i.pressure=.5),typeof i.twist>"u"&&(i.twist=0),typeof i.tangentialPressure>"u"&&(i.tangentialPressure=0),i.isNormalized=!0,e.push(i)}else e.push(t);return e}normalizeWheelEvent(t){const e=this.rootWheelEvent;return this.transferMouseData(e,t),e.deltaX=t.deltaX,e.deltaY=t.deltaY,e.deltaZ=t.deltaZ,e.deltaMode=t.deltaMode,this.mapPositionToPoint(e.screen,t.clientX,t.clientY),e.global.copyFrom(e.screen),e.offset.copyFrom(e.screen),e.nativeEvent=t,e.type=t.type,e}bootstrapEvent(t,e){return t.originalEvent=null,t.nativeEvent=e,t.pointerId=e.pointerId,t.width=e.width,t.height=e.height,t.isPrimary=e.isPrimary,t.pointerType=e.pointerType,t.pressure=e.pressure,t.tangentialPressure=e.tangentialPressure,t.tiltX=e.tiltX,t.tiltY=e.tiltY,t.twist=e.twist,this.transferMouseData(t,e),this.mapPositionToPoint(t.screen,e.clientX,e.clientY),t.global.copyFrom(t.screen),t.offset.copyFrom(t.screen),t.isTrusted=e.isTrusted,"pointerleave"===t.type&&(t.type="pointerout"),t.type.startsWith("mouse")&&(t.type=t.type.replace("mouse","pointer")),t.type.startsWith("touch")&&(t.type=$f[t.type]||t.type),t}transferMouseData(t,e){t.isTrusted=e.isTrusted,t.srcElement=e.srcElement,t.timeStamp=performance.now(),t.type=e.type,t.altKey=e.altKey,t.button=e.button,t.buttons=e.buttons,t.client.x=e.clientX,t.client.y=e.clientY,t.ctrlKey=e.ctrlKey,t.metaKey=e.metaKey,t.movement.x=e.movementX,t.movement.y=e.movementY,t.page.x=e.pageX,t.page.y=e.pageY,t.relatedTarget=null,t.shiftKey=e.shiftKey}};Yf.extension={name:"events",type:[bu.RendererSystem,bu.CanvasRendererSystem]},Yf.defaultEventFeatures={move:!0,globalMove:!0,click:!0,wheel:!0};let qf=Yf;function Kf(t){return"dynamic"===t||"static"===t}wu.add(qf);const Zf={onclick:null,onmousedown:null,onmouseenter:null,onmouseleave:null,onmousemove:null,onglobalmousemove:null,onmouseout:null,onmouseover:null,onmouseup:null,onmouseupoutside:null,onpointercancel:null,onpointerdown:null,onpointerenter:null,onpointerleave:null,onpointermove:null,onglobalpointermove:null,onpointerout:null,onpointerover:null,onpointertap:null,onpointerup:null,onpointerupoutside:null,onrightclick:null,onrightdown:null,onrightup:null,onrightupoutside:null,ontap:null,ontouchcancel:null,ontouchend:null,ontouchendoutside:null,ontouchmove:null,onglobaltouchmove:null,ontouchstart:null,onwheel:null,_internalInteractive:void 0,get interactive(){return this._internalInteractive??Kf(qf.defaultEventMode)},set interactive(t){_c("7.2.0","Setting interactive is deprecated, use eventMode = 'none'/'passive'/'auto'/'static'/'dynamic' instead."),this._internalInteractive=t,this.eventMode=t?"static":"auto"},_internalEventMode:void 0,get eventMode(){return this._internalEventMode??qf.defaultEventMode},set eventMode(t){this._internalInteractive=Kf(t),this._internalEventMode=t},isInteractive(){return"static"===this.eventMode||"dynamic"===this.eventMode},interactiveChildren:!0,hitArea:null,addEventListener(t,e,i){const r="boolean"==typeof i&&i||"object"==typeof i&&i.capture,n="object"==typeof i?i.signal:void 0,s="object"==typeof i&&!0===i.once,a="function"==typeof e?void 0:e;t=r?`${t}capture`:t;const o="function"==typeof e?e:e.handleEvent,l=this;n&&n.addEventListener("abort",(()=>{l.off(t,o,a)})),s?l.once(t,o,a):l.on(t,o,a)},removeEventListener(t,e,i){const r="function"==typeof e?void 0:e;t="boolean"==typeof i&&i||"object"==typeof i&&i.capture?`${t}capture`:t,e="function"==typeof e?e:e.handleEvent,this.off(t,e,r)},dispatchEvent(t){if(!(t instanceof zf))throw new Error("DisplayObject cannot propagate events outside of the Federated Events API");return t.defaultPrevented=!1,t.path=null,t.target=this,t.manager.dispatchEvent(t),!t.defaultPrevented}};Ef.mixin(Zf),Ef.mixin({accessible:!1,accessibleTitle:null,accessibleHint:null,tabIndex:0,_accessibleActive:!1,_accessibleDiv:null,accessibleType:"button",accessiblePointerEvents:"auto",accessibleChildren:!0,renderId:-1});class Jf{constructor(t){this.debug=!1,this._isActive=!1,this._isMobileAccessibility=!1,this.pool=[],this.renderId=0,this.children=[],this.androidUpdateCount=0,this.androidUpdateFrequency=500,this._hookDiv=null,(gc.tablet||gc.phone)&&this.createTouchHook();const e=document.createElement("div");
2e.style.width="100px",e.style.height="100px",e.style.position="absolute",e.style.top="0px",e.style.left="0px",e.style.zIndex=2..toString(),this.div=e,this.renderer=t,this._onKeyDown=this._onKeyDown.bind(this),this._onMouseMove=this._onMouseMove.bind(this),globalThis.addEventListener("keydown",this._onKeyDown,!1)}get isActive(){return this._isActive}get isMobileAccessibility(){return this._isMobileAccessibility}createTouchHook(){const t=document.createElement("button");t.style.width="1px",t.style.height="1px",t.style.position="absolute",t.style.top="-1000px",t.style.left="-1000px",t.style.zIndex=2..toString(),t.style.backgroundColor="#FF0000",t.title="select to enable accessibility for this content",t.addEventListener("focus",(()=>{this._isMobileAccessibility=!0,this.activate(),this.destroyTouchHook()})),document.body.appendChild(t),this._hookDiv=t}destroyTouchHook(){this._hookDiv&&(document.body.removeChild(this._hookDiv),this._hookDiv=null)}activate(){this._isActive||(this._isActive=!0,globalThis.document.addEventListener("mousemove",this._onMouseMove,!0),globalThis.removeEventListener("keydown",this._onKeyDown,!1),this.renderer.on("postrender",this.update,this),this.renderer.view.parentNode?.appendChild(this.div))}deactivate(){!this._isActive||this._isMobileAccessibility||(this._isActive=!1,globalThis.document.removeEventListener("mousemove",this._onMouseMove,!0),globalThis.addEventListener("keydown",this._onKeyDown,!1),this.renderer.off("postrender",this.update),this.div.parentNode?.removeChild(this.div))}updateAccessibleObjects(t){if(!t.visible||!t.accessibleChildren)return;t.accessible&&t.isInteractive()&&(t._accessibleActive||this.addChild(t),t.renderId=this.renderId);const e=t.children;if(e)for(let t=0;t<e.length;t++)this.updateAccessibleObjects(e[t])}update(){const t=performance.now();if(gc.android.device&&t<this.androidUpdateCount||(this.androidUpdateCount=t+this.androidUpdateFrequency,!this.renderer.renderingToScreen))return;this.renderer.lastObjectRendered&&this.updateAccessibleObjects(this.renderer.lastObjectRendered);const{x:e,y:i,width:r,height:n}=this.renderer.view.getBoundingClientRect(),{width:s,height:a,resolution:o}=this.renderer,l=r/s*o,h=n/a*o;let c=this.div;c.style.left=`${e}px`,c.style.top=`${i}px`,c.style.width=`${s}px`,c.style.height=`${a}px`;for(let t=0;t<this.children.length;t++){const e=this.children[t];if(e.renderId!==this.renderId)e._accessibleActive=!1,lu(this.children,t,1),this.div.removeChild(e._accessibleDiv),this.pool.push(e._accessibleDiv),e._accessibleDiv=null,t--;else{c=e._accessibleDiv;let t=e.hitArea;const i=e.worldTransform;e.hitArea?(c.style.left=(i.tx+t.x*i.a)*l+"px",c.style.top=(i.ty+t.y*i.d)*h+"px",c.style.width=t.width*i.a*l+"px",c.style.height=t.height*i.d*h+"px"):(t=e.getBounds(),this.capHitArea(t),c.style.left=t.x*l+"px",c.style.top=t.y*h+"px",c.style.width=t.width*l+"px",c.style.height=t.height*h+"px",c.title!==e.accessibleTitle&&null!==e.accessibleTitle&&(c.title=e.accessibleTitle),c.getAttribute("aria-label")!==e.accessibleHint&&null!==e.accessibleHint&&c.setAttribute("aria-label",e.accessibleHint)),(e.accessibleTitle!==c.title||e.tabIndex!==c.tabIndex)&&(c.title=e.accessibleTitle,c.tabIndex=e.tabIndex,this.debug&&this.updateDebugHTML(c))}}this.renderId++}updateDebugHTML(t){t.innerHTML=`type: ${t.type}</br> title : ${t.title}</br> tabIndex: ${t.tabIndex}`}capHitArea(t){t.x<0&&(t.width+=t.x,t.x=0),t.y<0&&(t.height+=t.y,t.y=0);const{width:e,height:i}=this.renderer;t.x+t.width>e&&(t.width=e-t.x),t.y+t.height>i&&(t.height=i-t.y)}addChild(t){let e=this.pool.pop();e||(e=document.createElement("button"),e.style.width="100px",e.style.height="100px",e.style.backgroundColor=this.debug?"rgba(255,255,255,0.5)":"transparent",e.style.position="absolute",e.style.zIndex=2..toString(),e.style.borderStyle="none",navigator.userAgent.toLowerCase().includes("chrome")?e.setAttribute("aria-live","off"):e.setAttribute("aria-live","polite"),navigator.userAgent.match(/rv:.*Gecko\//)?e.setAttribute("aria-relevant","additions"):e.setAttribute("aria-relevant","text"),e.addEventListener("click",this._onClick.bind(this)),e.addEventListener("focus",this._onFocus.bind(this)),e.addEventListener("focusout",this._onFocusOut.bind(this))),e.style.pointerEvents=t.accessiblePointerEvents,e.type=t.accessibleType,t.accessibleTitle&&null!==t.accessibleTitle?e.title=t.accessibleTitle:(!t.accessibleHint||null===t.accessibleHint)&&(e.title=`displayObject ${t.tabIndex}`),t.accessibleHint&&null!==t.accessibleHint&&e.setAttribute("aria-label",t.accessibleHint),this.debug&&this.updateDebugHTML(e),t._accessibleActive=!0,t._accessibleDiv=e,e.displayObject=t,this.children.push(t),this.div.appendChild(t._accessibleDiv),t._accessibleDiv.tabIndex=t.tabIndex}_dispatchEvent(t,e){const{displayObject:i}=t.target,r=this.renderer.events.rootBoundary,n=Object.assign(new zf(r),{target:i});r.rootTarget=this.renderer.lastObjectRendered,e.forEach((t=>r.dispatchEvent(n,t)))}_onClick(t){this._dispatchEvent(t,["click","pointertap","tap"])}_onFocus(t){t.target.getAttribute("aria-live")||t.target.setAttribute("aria-live","assertive"),this._dispatchEvent(t,["mouseover"])}_onFocusOut(t){t.target.getAttribute("aria-live")||t.target.setAttribute("aria-live","polite"),this._dispatchEvent(t,["mouseout"])}_onKeyDown(t){9===t.keyCode&&this.activate()}_onMouseMove(t){0===t.movementX&&0===t.movementY||this.deactivate()}destroy(){this.destroyTouchHook(),this.div=null,globalThis.document.removeEventListener("mousemove",this._onMouseMove,!0),globalThis.removeEventListener("keydown",this._onKeyDown),this.pool=null,this.children=null,this.renderer=null}}Jf.extension={name:"accessibility",type:[bu.RendererPlugin,bu.CanvasRendererPlugin]},wu.add(Jf);const Qf=class t{constructor(e){this.stage=new Pf,e=Object.assign({forceCanvas:!1},e),this.renderer=function(t){for(const e of af)if(e.test(t))return new e(t);throw new Error("Unable to auto-detect a suitable renderer.")}(e),t._plugins.forEach((t=>{t.init.call(this,e)}))}render(){this.renderer.render(this.stage)}get view(){return this.renderer?.view}get screen(){return this.renderer?.screen}destroy(e,i){const r=t._plugins.slice(0);r.reverse(),r.forEach((t=>{t.destroy.call(this)})),this.stage.destroy(i),this.stage=null,this.renderer.destroy(e),this.renderer=null}};Qf._plugins=[];let tm=Qf;wu.handleByList(bu.Application,tm._plugins);class em{static init(t){Object.defineProperty(this,"resizeTo",{set(t){globalThis.removeEventListener("resize",this.queueResize),this._resizeTo=t,t&&(globalThis.addEventListener("resize",this.queueResize),this.resize())},get(){return this._resizeTo}}),this.queueResize=()=>{this._resizeTo&&(this.cancelResize(),this._resizeId=requestAnimationFrame((()=>this.resize())))},this.cancelResize=()=>{this._resizeId&&(cancelAnimationFrame(this._resizeId),this._resizeId=null)},this.resize=()=>{if(!this._resizeTo)return;let t,e;if(this.cancelResize(),this._resizeTo===globalThis.window)t=globalThis.innerWidth,e=globalThis.innerHeight;else{const{clientWidth:i,clientHeight:r}=this._resizeTo;t=i,e=r}this.renderer.resize(t,e),this.render()},this._resizeId=null,this._resizeTo=null,this.resizeTo=t.resizeTo||null}static destroy(){globalThis.removeEventListener("resize",this.queueResize),this.cancelResize(),this.cancelResize=null,this.queueResize=null,this.resizeTo=null,this.resize=null}}em.extension=bu.Application,wu.add(em);const im={loader:bu.LoadParser,resolver:bu.ResolveParser,cache:bu.CacheParser,detection:bu.DetectionParser};wu.handle(bu.Asset,(t=>{const e=t.ref;Object.entries(im).filter((([t])=>
2!!e[t])).forEach((([t,i])=>wu.add(Object.assign(e[t],{extension:e[t].extension??i}))))}),(t=>{const e=t.ref;Object.keys(im).filter((t=>!!e[t])).forEach((t=>wu.remove(e[t])))}));class rm{constructor(t,e=!1){this._loader=t,this._assetList=[],this._isLoading=!1,this._maxConcurrent=1,this.verbose=e}add(t){t.forEach((t=>{this._assetList.push(t)})),this.verbose&&console.log("[BackgroundLoader] assets: ",this._assetList),this._isActive&&!this._isLoading&&this._next()}async _next(){if(this._assetList.length&&this._isActive){this._isLoading=!0;const t=[],e=Math.min(this._assetList.length,this._maxConcurrent);for(let i=0;i<e;i++)t.push(this._assetList.pop());await this._loader.load(t),this._isLoading=!1,this._next()}}get active(){return this._isActive}set active(t){this._isActive!==t&&(this._isActive=t,t&&!this._isLoading&&this._next())}}function nm(t,e){const i=t.split("?")[0],r=Ec.extname(i).toLowerCase();return Array.isArray(e)?e.includes(r):r===e}const sm=(t,e,i=!1)=>(Array.isArray(t)||(t=[t]),e?t.map((t=>"string"==typeof t||i?e(t):t)):t),am=new class{constructor(){this._parsers=[],this._cache=new Map,this._cacheMap=new Map}reset(){this._cacheMap.clear(),this._cache.clear()}has(t){return this._cache.has(t)}get(t){const e=this._cache.get(t);return e||console.warn(`[Assets] Asset id ${t} was not found in the Cache`),e}set(t,e){const i=sm(t);let r;for(let t=0;t<this.parsers.length;t++){const n=this.parsers[t];if(n.test(e)){r=n.getCacheableAssets(i,e);break}}r||(r={},i.forEach((t=>{r[t]=e})));const n=Object.keys(r),s={cacheKeys:n,keys:i};if(i.forEach((t=>{this._cacheMap.set(t,s)})),n.forEach((t=>{this._cache.has(t)&&this._cache.get(t)!==e&&console.warn("[Cache] already has key:",t),this._cache.set(t,r[t])})),e instanceof Qd){const t=e;i.forEach((e=>{t.baseTexture!==Qd.EMPTY.baseTexture&&Fu.addToCache(t.baseTexture,e),Qd.addToCache(t,e)}))}}remove(t){if(!this._cacheMap.has(t))return void console.warn(`[Assets] Asset id ${t} was not found in the Cache`);const e=this._cacheMap.get(t);e.cacheKeys.forEach((t=>{this._cache.delete(t)})),e.keys.forEach((t=>{this._cacheMap.delete(t)}))}get parsers(){return this._parsers}},om=t=>!Array.isArray(t);class lm{constructor(){this._parsers=[],this._parsersValidated=!1,this.parsers=new Proxy(this._parsers,{set:(t,e,i)=>(this._parsersValidated=!1,t[e]=i,!0)}),this.promiseCache={}}reset(){this._parsersValidated=!1,this.promiseCache={}}_getLoadPromiseAndParser(t,e){const i={promise:null,parser:null};return i.promise=(async()=>{let r=null,n=null;if(e.loadParser&&(n=this._parserHash[e.loadParser],n||console.warn(`[Assets] specified load parser "${e.loadParser}" not found while loading ${t}`)),!n){for(let i=0;i<this.parsers.length;i++){const r=this.parsers[i];if(r.load&&r.test?.(t,e,this)){n=r;break}}if(!n)return console.warn(`[Assets] ${t} could not be loaded as we don't know how to parse it, ensure the correct parser has been added`),null}r=await n.load(t,e,this),i.parser=n;for(let t=0;t<this.parsers.length;t++){const n=this.parsers[t];n.parse&&n.parse&&await(n.testParse?.(r,e,this))&&(r=await n.parse(r,e,this)||r,i.parser=n)}return r})(),i}async load(t,e){this._parsersValidated||this._validateParsers();let i=0;const r={},n=om(t),s=sm(t,(t=>({alias:[t],src:t}))),a=s.length,o=s.map((async t=>{const n=Ec.toAbsolute(t.src);if(!r[t.src])try{this.promiseCache[n]||(this.promiseCache[n]=this._getLoadPromiseAndParser(n,t)),r[t.src]=await this.promiseCache[n].promise,e&&e(++i/a)}catch(e){throw delete this.promiseCache[n],delete r[t.src],new Error(`[Loader.load] Failed to load ${n}.\n${e}`)}}));return await Promise.all(o),n?r[s[0].src]:r}async unload(t){const e=sm(t,(t=>({alias:[t],src:t}))).map((async t=>{const e=Ec.toAbsolute(t.src),i=this.promiseCache[e];if(i){const r=await i.promise;delete this.promiseCache[e],i.parser?.unload?.(r,t,this)}}));await Promise.all(e)}_validateParsers(){this._parsersValidated=!0,this._parserHash=this._parsers.filter((t=>t.name)).reduce(((t,e)=>(t[e.name]&&console.warn(`[Assets] loadParser name conflict "${e.name}"`),{...t,[e.name]:e})),{})}}var hm=(t=>(t[t.Low=0]="Low",t[t.Normal=1]="Normal",t[t.High=2]="High",t))(hm||{});function cm(t,e){if(Array.isArray(e)){for(const i of e)if(t.startsWith(`data:${i}`))return!0;return!1}return t.startsWith(`data:${e}`)}const um={extension:{type:bu.LoadParser,priority:hm.Low},name:"loadJson",test(t){return cm(t,"application/json")||nm(t,".json")},async load(t){return await(await Jh.ADAPTER.fetch(t)).json()}};wu.add(um);const dm={name:"loadTxt",extension:{type:bu.LoadParser,priority:hm.Low},test(t){return cm(t,"text/plain")||nm(t,".txt")},async load(t){return await(await Jh.ADAPTER.fetch(t)).text()}};wu.add(dm);const pm=["normal","bold","100","200","300","400","500","600","700","800","900"],fm=[".ttf",".otf",".woff",".woff2"],mm=["font/ttf","font/otf","font/woff","font/woff2"],gm=/^(--|-?[A-Z_])[0-9A-Z_-]*$/i,ym=/^[0-9A-Za-z%:/?#\[\]@!\$&'()\*\+,;=\-._~]*$/,vm={extension:{type:bu.LoadParser,priority:hm.Low},name:"loadWebFont",test(t){return cm(t,mm)||nm(t,fm)},async load(t,e){const i=Jh.ADAPTER.getFontFaceSet();if(i){const n=[],s=e.data?.family??function(t){const e=Ec.extname(t),i=Ec.base
2name(t,e).replace(/(-|_)/g," ").toLowerCase().split(" ").map((t=>t.charAt(0).toUpperCase()+t.slice(1)));let r=i.length>0;for(const t of i)if(!t.match(gm)){r=!1;break}let n=i.join(" ");return r||(n=`"${n.replace(/[\\"]/g,"\\$&")}"`),n}(t),a=e.data?.weights?.filter((t=>pm.includes(t)))??["normal"],o=e.data??{};for(let e=0;e<a.length;e++){const l=a[e],h=new FontFace(s,`url(${r=t,ym.test(r)?r:encodeURI(r)})`,{...o,weight:l});await h.load(),i.add(h),n.push(h)}return 1===n.length?n[0]:n}var r;return console.warn("[loadWebFont] FontFace API is not supported. Skipping loading font"),null},unload(t){(Array.isArray(t)?t:[t]).forEach((t=>Jh.ADAPTER.getFontFaceSet().delete(t)))}};wu.add(vm);let xm=null;class _m{constructor(){xm||(xm=URL.createObjectURL(new Blob(['(function() {\n  "use strict";\n  const WHITE_PNG = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO+ip1sAAAAASUVORK5CYII=";\n  async function checkImageBitmap() {\n    try {\n      if (typeof createImageBitmap != "function")\n        return !1;\n      const imageBlob = await (await fetch(WHITE_PNG)).blob(), imageBitmap = await createImageBitmap(imageBlob);\n      return imageBitmap.width === 1 && imageBitmap.height === 1;\n    } catch {\n      return !1;\n    }\n  }\n  checkImageBitmap().then((result) => {\n    self.postMessage(result);\n  });\n})();\n'],{type:"application/javascript"}))),this.worker=new Worker(xm)}}_m.revokeObjectURL=function(){xm&&(URL.revokeObjectURL(xm),xm=null)};let bm=null;class Sm{constructor(){bm||(bm=URL.createObjectURL(new Blob(['(function() {\n  "use strict";\n  async function loadImageBitmap(url) {\n    const response = await fetch(url);\n    if (!response.ok)\n      throw new Error(`[WorkerManager.loadImageBitmap] Failed to fetch ${url}: ${response.status} ${response.statusText}`);\n    const imageBlob = await response.blob();\n    return await createImageBitmap(imageBlob);\n  }\n  self.onmessage = async (event) => {\n    try {\n      const imageBitmap = await loadImageBitmap(event.data.data[0]);\n      self.postMessage({\n        data: imageBitmap,\n        uuid: event.data.uuid,\n        id: event.data.id\n      }, [imageBitmap]);\n    } catch (e) {\n      self.postMessage({\n        error: e,\n        uuid: event.data.uuid,\n        id: event.data.id\n      });\n    }\n  };\n})();\n'],{type:"application/javascript"}))),this.worker=new Worker(bm)}}Sm.revokeObjectURL=function(){bm&&(URL.revokeObjectURL(bm),bm=null)};let Em,wm=0;const Tm=new class{constructor(){this._initialized=!1,this._createdWorkers=0,this.workerPool=[],this.queue=[],this.resolveHash={}}isImageBitmapSupported(){return void 0!==this._isImageBitmapSupported||(this._isImageBitmapSupported=new Promise((t=>{const{worker:e}=new _m;e.addEventListener("message",(i=>{e.terminate(),_m.revokeObjectURL(),t(i.data)}))}))),this._isImageBitmapSupported}loadImageBitmap(t){return this._run("loadImageBitmap",[t])}async _initWorkers(){this._initialized||(this._initialized=!0)}getWorker(){void 0===Em&&(Em=navigator.hardwareConcurrency||4);let t=this.workerPool.pop();return!t&&this._createdWorkers<Em&&(this._createdWorkers++,t=(new Sm).worker,t.addEventListener("message",(t=>{this.complete(t.data),this.returnWorker(t.target),this.next()}))),t}returnWorker(t){this.workerPool.push(t)}complete(t){void 0!==t.error?this.resolveHash[t.uuid].reject(t.error):this.resolveHash[t.uuid].resolve(t.data),this.resolveHash[t.uuid]=null}async _run(t,e){await this._initWorkers();const i=new Promise(((i,r)=>{this.queue.push({id:t,arguments:e,resolve:i,reject:r})}));return this.next(),i}next(){if(!this.queue.length)return;const t=this.getWorker();if(!t)return;const e=this.queue.pop(),i=e.id;this.resolveHash[wm]={resolve:e.resolve,reject:e.reject},t.postMessage({data:e.arguments,uuid:wm++,id:i})}};function Am(t,e,i){t.resource.internal=!0;const r=new Qd(t),n=()=>{delete e.promiseCache[i],am.has(i)&&am.remove(i)};return r.baseTexture.once("destroyed",(()=>{i in e.promiseCache&&(console.warn("[Assets] A BaseTexture managed by Assets was destroyed instead of unloaded! Use Assets.unload() instead of destroying the BaseTexture."),n())})),r.once("destroyed",(()=>{t.destroyed||(console.warn("[Assets] A Texture managed by Assets was destroyed instead of unloaded! Use Assets.unload() instead of destroying the Texture."),n())})),r}const Mm=[".jpeg",".jpg",".png",".webp",".avif"],Pm=["image/jpeg","image/png","image/webp","image/avif"],Cm={name:"loadTextures",extension:{type:bu.LoadParser,priority:hm.High},config:{preferWorkers:!0,preferCreateImageBitmap:!0,crossOrigin:"anonymous"},test(t){return cm(t,Pm)||nm(t,Mm)},async load(t,e,i){const r=globalThis.createImageBitmap&&this.config.preferCreateImageBitmap;let n;n=r?this.config.preferWorkers&&await Tm.isImageBitmapSupported()?await Tm.loadImageBitmap(t):await async function(t){const e=await Jh.ADAPTER.fetch(t);if(!e.ok)throw new Error(`[loadImageBitmap] Failed to fetch ${t}: ${e.status} ${e.statusText}`);const i=await e.blob();return await createImageBitmap(i)}(t):await new Promise(((e,i)=>{const r=new Image;r.crossOrigin=this.config.crossOrigin,r.src=t,r.complete?e(r):(r.onload=()=>e(r),r.onerror=t=>i(t))}));const s={...e.data};s.resolution??(s.resolution=_u(t)),r&&void 0===s.resourceOptions?.ownsImageBitmap&&(s.resourceOptions={...s.resourceOptions},s.resourceOptions.ownsImageBitmap=!0);const a=new Fu(n,s);return a.resource.src=t,Am(a,i,t)},unload(t){t.destroy(!0)}};wu.add(Cm);const km={extension:{type:bu.LoadParser,priority:hm.High},name:"loadSVG",test(t){return cm(t,"image/svg+xml")||nm(t,".svg")},async testParse(t){return xf.test(t)},async parse(t,e,i){const r=new xf(t,e?.data?.resourceOptions);await r.load();const n=new Fu(r,{resolution:_u(t),...e?.data});return n.resource.src=e.src,Am(n,i,e.src)},async load(t,e){return(await Jh.ADAPTER.fetch(t)).text()},unload:Cm.unload};wu.add(km);const Im=[".mp4",".m4v",".webm",".ogv"],Dm=["video/mp4","video/webm","video/ogg"],Rm={name:"loadVideo",extension:{type:bu.LoadParser,priority:hm.High},config:{defaultAutoPlay:!0,defaultUpdateFPS:0,defaultLoop:!1,defaultMuted:!1,defaultPlaysinline:!0},test(t){return cm(t,Dm)||nm(t,Im)},async load(t,e,i){let r;const n=await(await Jh.ADAPTER.fetch(t)).blob(),s=URL.createObjectURL(n);try{const n={autoPlay:this.config.defaultAutoPlay,updateFPS:this.config.defaultUpdateFPS,loop:this.config.defaultLoop,muted:this.config.defaultMuted,playsinline:this.config.defaultPlaysinline,...e?.data?.resourceOptions,autoLoad:!0},a=new bf(s,n);await a.load();const o=new Fu(a,{alphaMode:await Ac(),resolution:_u(t),...e?.data});o.resource.src=t,r=Am(o,i,t),r.baseTexture.once("destroyed",(()=>{URL.revokeObjectURL(s)}))}catch(t){throw URL.revokeObjectURL(s),t}return r},unload(t){t.destroy(!0)}};
2function Om(t,e,i,r,n){const s=e[i];for(let a=0;a<s.length;a++){const o=s[a];i<e.length-1?Om(t.replace(r[i],o),e,i+1,r,n):n.push(t.replace(r[i],o))}}function Lm(t){const e=t.match(/\{(.*?)\}/g),i=[];if(e){const r=[];e.forEach((t=>{const e=t.substring(1,t.length-1).split(",");r.push(e)})),Om(t,r,0,e,i)}else i.push(t);return i}wu.add(Rm);class Fm{constructor(){this._defaultBundleIdentifierOptions={connector:"-",createBundleAssetId:(t,e)=>`${t}${this._bundleIdConnector}${e}`,extractAssetIdFromBundle:(t,e)=>e.replace(`${t}${this._bundleIdConnector}`,"")},this._bundleIdConnector=this._defaultBundleIdentifierOptions.connector,this._createBundleAssetId=this._defaultBundleIdentifierOptions.createBundleAssetId,this._extractAssetIdFromBundle=this._defaultBundleIdentifierOptions.extractAssetIdFromBundle,this._assetMap={},this._preferredOrder=[],this._parsers=[],this._resolverHash={},this._bundles={}}setBundleIdentifier(t){if(this._bundleIdConnector=t.connector??this._bundleIdConnector,this._createBundleAssetId=t.createBundleAssetId??this._createBundleAssetId,this._extractAssetIdFromBundle=t.extractAssetIdFromBundle??this._extractAssetIdFromBundle,"bar"!==this._extractAssetIdFromBundle("foo",this._createBundleAssetId("foo","bar")))throw new Error("[Resolver] GenerateBundleAssetId are not working correctly")}prefer(...t){t.forEach((t=>{this._preferredOrder.push(t),t.priority||(t.priority=Object.keys(t.params))})),this._resolverHash={}}set basePath(t){this._basePath=t}get basePath(){return this._basePath}set rootPath(t){this._rootPath=t}get rootPath(){return this._rootPath}get parsers(){return this._parsers}reset(){this.setBundleIdentifier(this._defaultBundleIdentifierOptions),this._assetMap={},this._preferredOrder=[],this._resolverHash={},this._rootPath=null,this._basePath=null,this._manifest=null,this._bundles={},this._defaultSearchParams=null}setDefaultSearchParams(t){if("string"==typeof t)this._defaultSearchParams=t;else{const e=t;this._defaultSearchParams=Object.keys(e).map((t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`)).join("&")}}getAlias(t){const{alias:e,name:i,src:r,srcs:n}=t;return sm(e||i||r||n,(t=>"string"==typeof t?t:Array.isArray(t)?t.map((t=>t?.src??t?.srcs??t)):t?.src||t?.srcs?t.src??t.srcs:t),!0)}addManifest(t){this._manifest&&console.warn("[Resolver] Manifest already exists, this will be overwritten"),this._manifest=t,t.bundles.forEach((t=>{this.addBundle(t.name,t.assets)}))}addBundle(t,e){const i=[];Array.isArray(e)?e.forEach((e=>{const r=e.src??e.srcs,n=e.alias??e.name;let s;if("string"==typeof n){const e=this._createBundleAssetId(t,n);i.push(e),s=[n,e]}else{const e=n.map((e=>this._createBundleAssetId(t,e)));i.push(...e),s=[...n,...e]}this.add({...e,alias:s,src:r})})):Object.keys(e).forEach((r=>{const n=[r,this._createBundleAssetId(t,r)];if("string"==typeof e[r])this.add({alias:n,src:e[r]});else if(Array.isArray(e[r]))this.add({alias:n,src:e[r]});else{const t=e[r],i=t.src??t.srcs;this.add({...t,alias:n,src:Array.isArray(i)?i:[i]})}i.push(...n)})),this._bundles[t]=i}add(t,e,i,r,n){const s=[];let a;"string"==typeof t||Array.isArray(t)&&"string"==typeof t[0]?(_c("7.2.0","Assets.add now uses an object instead of individual parameters.\nPlease use Assets.add({ alias, src, data, format, loadParser }) instead."),s.push({alias:t,src:e,data:i,format:r,loadParser:n})):Array.isArray(t)?s.push(...t):s.push(t),a=t=>{this.hasKey(t)&&console.warn(`[Resolver] already has key: ${t} overwriting`)},sm(s).forEach((t=>{const{src:e,srcs:i}=t;let{data:r,format:n,loadParser:s}=t;const o=sm(e||i).map((t=>"string"==typeof t?Lm(t):Array.isArray(t)?t:[t])),l=this.getAlias(t);Array.isArray(l)?l.forEach(a):a(l);const h=[];o.forEach((t=>{t.forEach((t=>{let e={};if("object"!=typeof t){e.src=t;for(let i=0;i<this._parsers.length;i++){const r=this._parsers[i];if(r.test(t)){e=r.parse(t);break}}}else r=t.data??r,n=t.format??n,s=t.loadParser??s,e={...e,...t};if(!l)throw new Error(`[Resolver] alias is undefined for this asset: ${e.src}`);e=this.buildResolvedAsset(e,{aliases:l,data:r,format:n,loadParser:s}),h.push(e)}))})),l.forEach((t=>{this._assetMap[t]=h}))}))}resolveBundle(t){const e=om(t);t=sm(t);const i={};return t.forEach((t=>{const e=this._bundles[t];if(e){const r=this.resolve(e),n={};for(const e in r){const i=r[e];n[this._extractAssetIdFromBundle(t,e)]=i}i[t]=n}})),e?i[t[0]]:i}resolveUrl(t){const e=this.resolve(t);if("string"!=typeof t){const t={};for(const i in e)t[i]=e[i].src;return t}return e.src}resolve(t){const e=om(t);t=sm(t);const i={};return t.forEach((t=>{if(!this._resolverHash[t])if(this._assetMap[t]){let e=this._assetMap[t];const i=e[0],r=this._getPreferredOrder(e);
2r?.priority.forEach((t=>{r.params[t].forEach((i=>{const r=e.filter((e=>!!e[t]&&e[t]===i));r.length&&(e=r)}))})),this._resolverHash[t]=e[0]??i}else this._resolverHash[t]=this.buildResolvedAsset({alias:[t],src:t},{});i[t]=this._resolverHash[t]})),e?i[t[0]]:i}hasKey(t){return!!this._assetMap[t]}hasBundle(t){return!!this._bundles[t]}_getPreferredOrder(t){for(let e=0;e<t.length;e++){const e=t[0],i=this._preferredOrder.find((t=>t.params.format.includes(e.format)));if(i)return i}return this._preferredOrder[0]}_appendDefaultSearchParams(t){return this._defaultSearchParams?`${t}${/\?/.test(t)?"&":"?"}${this._defaultSearchParams}`:t}buildResolvedAsset(t,e){const{aliases:i,data:r,loadParser:n,format:s}=e;return(this._basePath||this._rootPath)&&(t.src=Ec.toAbsolute(t.src,this._basePath,this._rootPath)),t.alias=i??t.alias??[t.src],t.src=this._appendDefaultSearchParams(t.src),t.data={...r||{},...t.data},t.loadParser=n??t.loadParser,t.format=s??t.format??Ec.extname(t.src).slice(1),t.srcs=t.src,t.name=t.alias,t}}const Bm=new class{constructor(){this._detections=[],this._initialized=!1,this.resolver=new Fm,this.loader=new lm,this.cache=am,this._backgroundLoader=new rm(this.loader),this._backgroundLoader.active=!0,this.reset()}async init(t={}){if(this._initialized)return void console.warn("[Assets]AssetManager already initialized, did you load before calling this Assets.init()?");if(this._initialized=!0,t.defaultSearchParams&&this.resolver.setDefaultSearchParams(t.defaultSearchParams),t.basePath&&(this.resolver.basePath=t.basePath),t.bundleIdentifier&&this.resolver.setBundleIdentifier(t.bundleIdentifier),t.manifest){let e=t.manifest;"string"==typeof e&&(e=await this.load(e)),this.resolver.addManifest(e)}const e=t.texturePreference?.resolution??1,i="number"==typeof e?[e]:e,r=await this._detectFormats({preferredFormats:t.texturePreference?.format,skipDetections:t.skipDetections,detections:this._detections});this.resolver.prefer({params:{format:r,resolution:i}}),t.preferences&&this.setPreferences(t.preferences)}add(t,e,i,r,n){this.resolver.add(t,e,i,r,n)}async load(t,e){this._initialized||await this.init();const i=om(t),r=sm(t).map((t=>{if("string"!=typeof t){const e=this.resolver.getAlias(t);return e.some((t=>!this.resolver.hasKey(t)))&&this.add(t),Array.isArray(e)?e[0]:e}return this.resolver.hasKey(t)||this.add({alias:t,src:t}),t})),n=this.resolver.resolve(r),s=await this._mapLoadToResolve(n,e);return i?s[r[0]]:s}addBundle(t,e){this.resolver.addBundle(t,e)}async loadBundle(t,e){this._initialized||await this.init();let i=!1;"string"==typeof t&&(i=!0,t=[t]);const r=this.resolver.resolveBundle(t),n={},s=Object.keys(r);let a=0,o=0;const l=()=>{e?.(++a/o)},h=s.map((t=>{const e=r[t];return o+=Object.keys(e).length,this._mapLoadToResolve(e,l).then((e=>{n[t]=e}))}));return await Promise.all(h),i?n[t[0]]:n}async backgroundLoad(t){this._initialized||await this.init(),"string"==typeof t&&(t=[t]);const e=this.resolver.resolve(t);this._backgroundLoader.add(Object.values(e))}async backgroundLoadBundle(t){this._initialized||await this.init(),"string"==typeof t&&(t=[t]);const e=this.resolver.resolveBundle(t);Object.values(e).forEach((t=>{this._backgroundLoader.add(Object.values(t))}))}reset(){this.resolver.reset(),this.loader.reset(),this.cache.reset(),this._initialized=!1}get(t){if("string"==typeof t)return am.get(t);const e={};for(let i=0;i<t.length;i++)e[i]=am.get(t[i]);return e}async _mapLoadToResolve(t,e){const i=Object.values(t),r=Object.keys(t);this._backgroundLoader.active=!1;const n=await this.loader.load(i,e);this._backgroundLoader.active=!0;const s={};return i.forEach(((t,e)=>{const i=n[t.src],a=[t.src];t.alias&&a.push(...t.alias),s[r[e]]=i,am.set(a,i)})),s}async unload(t){this._initialized||await this.init();const e=sm(t).map((t=>"string"!=typeof t?t.src:t)),i=this.resolver.resolve(e);await this._unloadFromResolved(i)}async unloadBundle(t){this._initialized||await this.init(),t=sm(t);const e=this.resolver.resolveBundle(t),i=Object.keys(e).map((t=>this._unloadFromResolved(e[t])));await Promise.all(i)}async _unloadFromResolved(t){const e=Object.values(t);e.forEach((t=>{am.remove(t.src)})),await this.loader.unload(e)}async _detectFormats(t){let e=[];t.preferredFormats&&(e=Array.isArray(t.preferredFormats)?t.preferredFormats:[t.preferredFormats]);for(const i of t.detections)t.skipDetections||await i.test()?e=await i.add(e):t.skipDetections||(e=await i.remove(e));return e=e.filter(((t,i)=>e.indexOf(t)===i)),e}get detections(){return this._detections}get preferWorkers(){return Cm.config.preferWorkers}set preferWorkers(t){_c("7.2.0","Assets.prefersWorkers is deprecated, use Assets.setPreferences({ preferWorkers: true }) instead."),this.setPreferences({preferWorkers:t})}
2setPreferences(t){this.loader.parsers.forEach((e=>{e.config&&Object.keys(e.config).filter((e=>e in t)).forEach((i=>{e.config[i]=t[i]}))}))}};wu.handleByList(bu.LoadParser,Bm.loader.parsers).handleByList(bu.ResolveParser,Bm.resolver.parsers).handleByList(bu.CacheParser,Bm.cache.parsers).handleByList(bu.DetectionParser,Bm.detections);const Nm={extension:bu.CacheParser,test:t=>Array.isArray(t)&&t.every((t=>t instanceof Qd)),getCacheableAssets:(t,e)=>{const i={};return t.forEach((t=>{e.forEach(((e,r)=>{i[t+(0===r?"":r+1)]=e}))})),i}};async function Vm(t){if("Image"in globalThis)return new Promise((e=>{const i=new Image;i.onload=()=>{e(!0)},i.onerror=()=>{e(!1)},i.src=t}));if("createImageBitmap"in globalThis&&"fetch"in globalThis){try{const e=await(await fetch(t)).blob();await createImageBitmap(e)}catch{return!1}return!0}return!1}wu.add(Nm);const zm={extension:{type:bu.DetectionParser,priority:1},test:async()=>Vm("data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAB0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAIAAAACAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQ0MAAAAABNjb2xybmNseAACAAIAAYAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAACVtZGF0EgAKCBgANogQEAwgMg8f8D///8WfhwB8+ErK42A="),add:async t=>[...t,"avif"],remove:async t=>t.filter((t=>"avif"!==t))};wu.add(zm);const Gm={extension:{type:bu.DetectionParser,priority:0},test:async()=>Vm("data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA="),add:async t=>[...t,"webp"],remove:async t=>t.filter((t=>"webp"!==t))};wu.add(Gm);const Um=["png","jpg","jpeg"],Hm={extension:{type:bu.DetectionParser,priority:-1},test:()=>Promise.resolve(!0),add:async t=>[...t,...Um],remove:async t=>t.filter((t=>!Um.includes(t)))};wu.add(Hm);const jm="WorkerGlobalScope"in globalThis&&globalThis instanceof globalThis.WorkerGlobalScope;function Wm(t){return!jm&&""!==document.createElement("video").canPlayType(t)}const Xm={extension:{type:bu.DetectionParser,priority:0},test:async()=>Wm("video/webm"),add:async t=>[...t,"webm"],remove:async t=>t.filter((t=>"webm"!==t))};wu.add(Xm);const $m={extension:{type:bu.DetectionParser,priority:0},test:async()=>Wm("video/mp4"),add:async t=>[...t,"mp4","m4v"],remove:async t=>t.filter((t=>"mp4"!==t&&"m4v"!==t))};wu.add($m);const Ym={extension:{type:bu.DetectionParser,priority:0},test:async()=>Wm("video/ogg"),add:async t=>[...t,"ogv"],remove:async t=>t.filter((t=>"ogv"!==t))};wu.add(Ym);const qm={extension:bu.ResolveParser,test:Cm.test,parse:t=>({resolution:parseFloat(Jh.RETINA_PREFIX.exec(t)?.[1]??"1"),format:Ec.extname(t).slice(1),src:t})};wu.add(qm);const Km=(t,e)=>{const i=e.split("?")[1];return i&&(t+=`?${i}`),t};var Zm=(t=>(t[t.COMPRESSED_RGB_S3TC_DXT1_EXT=33776]="COMPRESSED_RGB_S3TC_DXT1_EXT",t[t.COMPRESSED_RGBA_S3TC_DXT1_EXT=33777]="COMPRESSED_RGBA_S3TC_DXT1_EXT",t[t.COMPRESSED_RGBA_S3TC_DXT3_EXT=33778]="COMPRESSED_RGBA_S3TC_DXT3_EXT",t[t.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779]="COMPRESSED_RGBA_S3TC_DXT5_EXT",t[t.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT=35917]="COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT",t[t.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT=35918]="COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT",t[t.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT=35919]="COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT",t[t.COMPRESSED_SRGB_S3TC_DXT1_EXT=35916]="COMPRESSED_SRGB_S3TC_DXT1_EXT",t[t.COMPRESSED_R11_EAC=37488]="COMPRESSED_R11_EAC",t[t.COMPRESSED_SIGNED_R11_EAC=37489]="COMPRESSED_SIGNED_R11_EAC",t[t.COMPRESSED_RG11_EAC=37490]="COMPRESSED_RG11_EAC",t[t.COMPRESSED_SIGNED_RG11_EAC=37491]="COMPRESSED_SIGNED_RG11_EAC",t[t.COMPRESSED_RGB8_ETC2=37492]="COMPRESSED_RGB8_ETC2",t[t.COMPRESSED_RGBA8_ETC2_EAC=37496]="COMPRESSED_RGBA8_ETC2_EAC",t[t.COMPRESSED_SRGB8_ETC2=37493]="COMPRESSED_SRGB8_ETC2",t[t.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC=37497]="COMPRESSED_SRGB8_ALPHA8_ETC2_EAC",t[t.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2=37494]="COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2",t[t.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2=37495]="COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2",t[t.COMPRESSED_RGB_PVRTC_4BPPV1_IMG=35840]="COMPRESSED_RGB_PVRTC_4BPPV1_IMG",t[t.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG=35842]="COMPRESSED_RGBA_PVRTC_4BPPV1_IMG",t[t.COMPRESSED_RGB_PVRTC_2BPPV1_IMG=35841]="COMPRESSED_RGB_PVRTC_2BPPV1_IMG",t[t.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG=35843]="COMPRESSED_RGBA_PVRTC_2BPPV1_IMG",t[t.COMPRESSED_RGB_ETC1_WEBGL=36196]="COMPRESSED_RGB_ETC1_WEBGL",t[t.COMPRESSED_RGB_ATC_WEBGL=35986]="COMPRESSED_RGB_ATC_WEBGL",t[t.COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL=35987]="COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL",t[t.COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL=34798]="COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL",t[t.COMPRESSED_RGBA_ASTC_4x4_KHR=37808]="COMPRESSED_RGBA_ASTC_4x4_KHR",t[t.COMPRESSED_RGBA_BPTC_UNORM_EXT=36492]="COMPRESSED_RGBA_BPTC_UNORM_EXT",t[t.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT=36493]="COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT",t[t.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT=36494]="COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT",t[t.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT=36495]="COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT",t))(Zm||{});const Jm={33776:.5,33777:.5,33778:1,33779:1,35916:.5,35917:.5,35918:1,35919:1,37488:.5,37489:.5,3749
20:1,37491:1,37492:.5,37496:1,37493:.5,37497:1,37494:.5,37495:.5,35840:.5,35842:.5,35841:.25,35843:.25,36196:.5,35986:.5,35987:1,34798:1,37808:1,36492:1,36493:1,36494:1,36495:1};let Qm,tg;function eg(){tg={bptc:Qm.getExtension("EXT_texture_compression_bptc"),astc:Qm.getExtension("WEBGL_compressed_texture_astc"),etc:Qm.getExtension("WEBGL_compressed_texture_etc"),s3tc:Qm.getExtension("WEBGL_compressed_texture_s3tc"),s3tc_sRGB:Qm.getExtension("WEBGL_compressed_texture_s3tc_srgb"),pvrtc:Qm.getExtension("WEBGL_compressed_texture_pvrtc")||Qm.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),etc1:Qm.getExtension("WEBGL_compressed_texture_etc1"),atc:Qm.getExtension("WEBGL_compressed_texture_atc")}}const ig={extension:{type:bu.DetectionParser,priority:2},test:async()=>{const t=Jh.ADAPTER.createCanvas().getContext("webgl");return t?(Qm=t,!0):(console.warn("WebGL not available for compressed textures."),!1)},add:async t=>{tg||eg();const e=[];for(const t in tg)tg[t]&&e.push(t);return[...e,...t]},remove:async t=>(tg||eg(),t.filter((t=>!(t in tg))))};wu.add(ig);class rg extends Ru{constructor(t,e={width:1,height:1,autoLoad:!0}){let i,r;"string"==typeof t?(i=t,r=new Uint8Array):(i=null,r=t),super(r,e),this.origin=i,this.buffer=r?new Tu(r):null,this._load=null,this.loaded=!1,null!==this.origin&&!1!==e.autoLoad&&this.load(),null===this.origin&&this.buffer&&(this._load=Promise.resolve(this),this.loaded=!0,this.onBlobLoaded(this.buffer.rawBinaryData))}onBlobLoaded(t){}load(){return this._load||(this._load=fetch(this.origin).then((t=>t.blob())).then((t=>t.arrayBuffer())).then((t=>(this.data=new Uint32Array(t),this.buffer=new Tu(t),this.loaded=!0,this.onBlobLoaded(t),this.update(),this)))),this._load}}class ng extends rg{constructor(t,e){super(t,e),this.format=e.format,this.levels=e.levels||1,this._width=e.width,this._height=e.height,this._extension=ng._formatToExtension(this.format),(e.levelBuffers||this.buffer)&&(this._levelBuffers=e.levelBuffers||ng._createLevelBuffers(t instanceof Uint8Array?t:this.buffer.uint8View,this.format,this.levels,4,4,this.width,this.height))}upload(t,e,i){const r=t.gl;if(!t.context.extensions[this._extension])throw new Error(`${this._extension} textures are not supported on the current machine`);if(!this._levelBuffers)return!1;r.pixelStorei(r.UNPACK_ALIGNMENT,4);for(let t=0,e=this.levels;t<e;t++){const{levelID:e,levelWidth:i,levelHeight:n,levelBuffer:s}=this._levelBuffers[t];r.compressedTexImage2D(r.TEXTURE_2D,e,this.format,i,n,0,s)}return!0}onBlobLoaded(){this._levelBuffers=ng._createLevelBuffers(this.buffer.uint8View,this.format,this.levels,4,4,this.width,this.height)}static _formatToExtension(t){if(t>=33776&&t<=33779)return"s3tc";if(t>=35916&&t<=35919)return"s3tc_sRGB";if(t>=37488&&t<=37497)return"etc";if(t>=35840&&t<=35843)return"pvrtc";if(36196===t)return"etc1";if(35986===t||35987===t||34798===t)return"atc";if(t>=36492&&t<=36495)return"bptc";if(37808===t)return"astc";throw new Error(`Invalid (compressed) texture format given: ${t}`)}static _createLevelBuffers(t,e,i,r,n,s,a){const o=new Array(i);let l=t.byteOffset,h=s,c=a,u=h+r-1&~(r-1),d=c+n-1&~(n-1),p=u*d*Jm[e];for(let s=0;s<i;s++)o[s]={levelID:s,levelWidth:i>1?h:u,levelHeight:i>1?c:d,levelBuffer:new Uint8Array(t.buffer,l,p)},l+=p,h=h>>1||1,c=c>>1||1,u=h+r-1&~(r-1),d=c+n-1&~(n-1),p=u*d*Jm[e];return o}}const sg=827611204,ag=861165636,og=894720068,lg={[sg]:Zm.COMPRESSED_RGBA_S3TC_DXT1_EXT,[ag]:Zm.COMPRESSED_RGBA_S3TC_DXT3_EXT,[og]:Zm.COMPRESSED_RGBA_S3TC_DXT5_EXT},hg={70:Zm.COMPRESSED_RGBA_S3TC_DXT1_EXT,71:Zm.COMPRESSED_RGBA_S3TC_DXT1_EXT,73:Zm.COMPRESSED_RGBA_S3TC_DXT3_EXT,74:Zm.COMPRESSED_RGBA_S3TC_DXT3_EXT,76:Zm.COMPRESSED_RGBA_S3TC_DXT5_EXT,77:Zm.COMPRESSED_RGBA_S3TC_DXT5_EXT,72:Zm.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT,75:Zm.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT,78:Zm.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT,96:Zm.COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT,95:Zm.COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT,98:Zm.COMPRESSED_RGBA_BPTC_UNORM_EXT,99:Zm.COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT},cg=[171,75,84,88,32,49,49,187,13,10,26,10],ug={[zh.UNSIGNED_BYTE]:1,[zh.UNSIGNED_SHORT]:2,[zh.INT]:4,[zh.UNSIGNED_INT]:4,[zh.FLOAT]:4,[zh.HALF_FLOAT]:8},dg={[Nh.RGBA]:4,[Nh.RGB]:3,[Nh.RG]:2,[Nh.RED]:1,[Nh.LUMINANCE]:1,[Nh.LUMINANCE_ALPHA]:2,[Nh.ALPHA]:1},pg={[zh.UNSIGNED_SHORT_4_4_4_4]:2,[zh.UNSIGNED_SHORT_5_5_5_1]:2,[zh.UNSIGNED_SHORT_5_6_5]:2};function fg(t){switch(t){case Nh.RGBA:return Nh.RGBA_INTEGER;case Nh.RGB:return Nh.RGB_INTEGER;case Nh.RG:return Nh.RG_INTEGER;case Nh.RED:return Nh.RED_INTEGER;default:return t}}const mg={extension:{type:bu.LoadParser,priority:hm.High},name:"loadDDS",test(t){return nm(t,".dds")},async load(t,e,i){const r=function(t){const e=new Uint32Array(t);if(542327876!==e[0])throw new Error("Invalid DDS file magic word");const i=new Uint32Array(t,0,124/Uint32Array.BYTES_PER_ELEMENT),r=i[3],n=i[4],s=i[7],a=new Uint32Array(t,19*Uint32Array.BYTES_PER_ELEMENT,32/Uint32Array.BYTES_PER_ELEMENT),o=a[1];if(4&o){const i=a[2];if(808540228!==i){const e=lg[i],a=new Uint8Array(t,128);return[new ng(a,{format:e,width:n,height:r,levels:s})]}const o=128,l=new Uint32Array(e.buffer,o,20/Uint32Array.BYTES_PER_ELEMENT),h=l[0],c=l[1],u=l[2],d=l[3],p=hg[h];if(void 0===p)throw new Error(`DDSParser cannot parse texture data with DXGI format ${h}`);
2if(4===u)throw new Error("DDSParser does not support cubemap textures");if(6===c)throw new Error("DDSParser does not supported 3D texture data");const f=new Array,m=148;if(1===d)f.push(new Uint8Array(t,m));else{const e=Jm[p];let i=0,a=n,o=r;for(let t=0;t<s;t++)i+=Math.max(1,a+3&-4)*Math.max(1,o+3&-4)*e,a>>>=1,o>>>=1;let l=m;for(let e=0;e<d;e++)f.push(new Uint8Array(t,l,i)),l+=i}return f.map((t=>new ng(t,{format:p,width:n,height:r,levels:s})))}throw 64&o?new Error("DDSParser does not support uncompressed texture data."):512&o?new Error("DDSParser does not supported YUV uncompressed texture data."):131072&o?new Error("DDSParser does not support single-channel (lumninance) texture data!"):2&o?new Error("DDSParser does not support single-channel (alpha) texture data!"):new Error("DDSParser failed to load a texture file due to an unknown reason!")}(await(await Jh.ADAPTER.fetch(t)).arrayBuffer()).map((r=>Am(new Fu(r,{mipmap:jh.OFF,alphaMode:Wh.NO_PREMULTIPLIED_ALPHA,resolution:_u(t),...e.data}),i,t)));return 1===r.length?r[0]:r},unload(t){Array.isArray(t)?t.forEach((t=>t.destroy(!0))):t.destroy(!0)}};wu.add(mg);const gg={extension:{type:bu.LoadParser,priority:hm.High},name:"loadKTX",test(t){return nm(t,".ktx")},async load(t,e,i){const r=await(await Jh.ADAPTER.fetch(t)).arrayBuffer(),{compressed:n,uncompressed:s,kvData:a}=function(t,e,i=!1){const r=new DataView(e);if(!function(t,e){for(let i=0;i<cg.length;i++)if(e.getUint8(i)!==cg[i])return console.error(`${t} is not a valid *.ktx file!`),!1;return!0}(t,r))return null;const n=67305985===r.getUint32(12,!0),s=r.getUint32(16,n),a=r.getUint32(24,n),o=r.getUint32(28,n),l=r.getUint32(36,n),h=r.getUint32(40,n)||1,c=r.getUint32(44,n)||1,u=r.getUint32(48,n)||1,d=r.getUint32(52,n),p=r.getUint32(56,n),f=r.getUint32(60,n);if(0===h||1!==c)throw new Error("Only 2D textures are supported");if(1!==d)throw new Error("CubeTextures are not supported by KTXLoader yet!");if(1!==u)throw new Error("WebGL does not support array textures");const m=l+3&-4,g=h+3&-4,y=new Array(u);let v,x=l*h;if(0===s&&(x=m*g),v=0!==s?ug[s]?ug[s]*dg[a]:pg[s]:Jm[o],void 0===v)throw new Error("Unable to resolve the pixel format stored in the *.ktx file!");const _=i?function(t,e,i){const r=new Map;let n=0;for(;n<e;){const s=t.getUint32(64+n,i),a=64+n+4,o=3-(s+3)%4;if(0===s||s>e-n){console.error("KTXLoader: keyAndValueByteSize out of bounds");break}let l=0;for(;l<s&&0!==t.getUint8(a+l);l++);if(-1===l){console.error("KTXLoader: Failed to find null byte terminating kvData key");break}const h=(new TextDecoder).decode(new Uint8Array(t.buffer,a,l)),c=new DataView(t.buffer,a+l+1,s-l-1);r.set(h,c),n+=4+s+o}return r}(r,f,n):null;let b=x*v,S=l,E=h,w=m,T=g,A=64+f;for(let t=0;t<p;t++){const i=r.getUint32(A,n);let a=A+4;for(let i=0;i<u;i++){let r=y[i];r||(r=y[i]=new Array(p)),r[t]={levelID:t,levelWidth:p>1||0!==s?S:w,levelHeight:p>1||0!==s?E:T,levelBuffer:new Uint8Array(e,a,b)},a+=b}A+=i+4,A=A%4!=0?A+4-A%4:A,S=S>>1||1,E=E>>1||1,w=S+4-1&-4,T=E+4-1&-4,b=w*T*v}return 0!==s?{uncompressed:y.map((t=>{let e=t[0].levelBuffer,i=!1;return s===zh.FLOAT?e=new Float32Array(t[0].levelBuffer.buffer,t[0].levelBuffer.byteOffset,t[0].levelBuffer.byteLength/4):s===zh.UNSIGNED_INT?(i=!0,e=new Uint32Array(t[0].levelBuffer.buffer,t[0].levelBuffer.byteOffset,t[0].levelBuffer.byteLength/4)):s===zh.INT&&(i=!0,e=new Int32Array(t[0].levelBuffer.buffer,t[0].levelBuffer.byteOffset,t[0].levelBuffer.byteLength/4)),{resource:new Ru(e,{width:t[0].levelWidth,height:t[0].levelHeight}),type:s,format:i?fg(a):a}})),kvData:_}:{compressed:y.map((t=>new ng(null,{format:o,width:l,height:h,levels:p,levelBuffers:t}))),kvData:_}}(t,r),o=n??s,l={mipmap:jh.OFF,alphaMode:Wh.NO_PREMULTIPLIED_ALPHA,resolution:_u(t),...e.data},h=o.map((e=>{o===s&&Object.assign(l,{type:e.type,format:e.format});const r=e.resource??e,n=new Fu(r,l);return n.ktxKeyValueData=a,Am(n,i,t)}));return 1===h.length?h[0]:h},unload(t){Array.isArray(t)?t.forEach((t=>t.destroy(!0))):t.destroy(!0)}};wu.add(gg);const yg=["s3tc","s3tc_sRGB","etc","etc1","pvrtc","atc","astc","bptc"],vg={extension:bu.ResolveParser,test:t=>{const e=Ec.extname(t).slice(1);return["basis","ktx","dds"].includes(e)},parse:t=>{const e=t.split("."),i=e.pop();if(["ktx","dds"].includes(i)){const i=e.pop();if(yg.includes(i))return{resolution:parseFloat(Jh.RETINA_PREFIX.exec(t)?.[1]??"1"),format:i,src:t}}return{resolution:parseFloat(Jh.RETINA_PREFIX.exec(t)?.[1]??"1"),format:i,src:t}}};wu.add(vg);const xg=new Qu,_g=class t{constructor(t){this.renderer=t,this._rendererPremultipliedAlpha=!1}contextChange(){const t=this.renderer?.gl.getContextAttributes();this._rendererPremultipliedAlpha=!!(t&&t.alpha&&t.premultipliedAlpha)}async image(t,e,i,r){const n=new Image;return n.src=await this.base64(t,e,i,r),n}async base64(t,e,i,r){const n=this.canvas(t,r);if(void 0!==n.toBlob)return new Promise(((t,r)=>{n.toBlob((e=>{if(!e)return void r(new Error("ICanvas.toBlob failed!"));const i=new FileReader;i.onload=()=>t(i.result),i.onerror=r,i.readAsDataURL(e)}),e,i)}
2));if(void 0!==n.toDataURL)return n.toDataURL(e,i);if(void 0!==n.convertToBlob){const t=await n.convertToBlob({type:e,quality:i});return new Promise(((e,i)=>{const r=new FileReader;r.onload=()=>e(r.result),r.onerror=i,r.readAsDataURL(t)}))}throw new Error("Extract.base64() requires ICanvas.toDataURL, ICanvas.toBlob, or ICanvas.convertToBlob to be implemented")}canvas(e,i){const{pixels:r,width:n,height:s,flipY:a,premultipliedAlpha:o}=this._rawPixels(e,i);a&&t._flipY(r,n,s),o&&t._unpremultiplyAlpha(r);const l=new yu(n,s,1),h=new ImageData(new Uint8ClampedArray(r.buffer),n,s);return l.context.putImageData(h,0,0),l.canvas}pixels(e,i){const{pixels:r,width:n,height:s,flipY:a,premultipliedAlpha:o}=this._rawPixels(e,i);return a&&t._flipY(r,n,s),o&&t._unpremultiplyAlpha(r),r}_rawPixels(t,e){const i=this.renderer;if(!i)throw new Error("The Extract has already been destroyed");let r,n,s=!1,a=!1,o=!1;t&&(t instanceof tp?n=t:(n=i.generateTexture(t,{region:e,resolution:i.resolution,multisample:i.multisample}),o=!0,e&&(xg.width=e.width,xg.height=e.height,e=xg)));const l=i.gl;if(n){if(r=n.baseTexture.resolution,e=e??n.frame,s=!1,a=n.baseTexture.alphaMode>0&&n.baseTexture.format===Nh.RGBA,!o){i.renderTexture.bind(n);const t=n.framebuffer.glFramebuffers[i.CONTEXT_UID];t.blitFramebuffer&&i.framebuffer.bind(t.blitFramebuffer)}}else r=i.resolution,e||((e=xg).width=i.width/r,e.height=i.height/r),s=!0,a=this._rendererPremultipliedAlpha,i.renderTexture.bind();const h=Math.max(Math.round(e.width*r),1),c=Math.max(Math.round(e.height*r),1),u=new Uint8Array(4*h*c);return l.readPixels(Math.round(e.x*r),Math.round(e.y*r),h,c,l.RGBA,l.UNSIGNED_BYTE,u),o&&n?.destroy(!0),{pixels:u,width:h,height:c,flipY:s,premultipliedAlpha:a}}destroy(){this.renderer=null}static _flipY(t,e,i){const r=e<<2,n=i>>1,s=new Uint8Array(r);for(let e=0;e<n;e++){const n=e*r,a=(i-e-1)*r;s.set(t.subarray(n,n+r)),t.copyWithin(n,a,a+r),t.set(s,a)}}static _unpremultiplyAlpha(t){t instanceof Uint8ClampedArray&&(t=new Uint8Array(t.buffer));const e=t.length;for(let i=0;i<e;i+=4){const e=t[i+3];if(0!==e){const r=255.001/e;t[i]=t[i]*r+.5,t[i+1]=t[i+1]*r+.5,t[i+2]=t[i+2]*r+.5}}}};_g.extension={name:"extract",type:bu.RendererSystem};let bg=_g;wu.add(bg);const Sg={build(t){const e=t.points;let i,r,n,s,a,o;if(t.type===Ku.CIRC){const e=t.shape;i=e.x,r=e.y,a=o=e.radius,n=s=0}else if(t.type===Ku.ELIP){const e=t.shape;i=e.x,r=e.y,a=e.width,o=e.height,n=s=0}else{const e=t.shape,l=e.width/2,h=e.height/2;i=e.x+l,r=e.y+h,a=o=Math.max(0,Math.min(e.radius,Math.min(l,h))),n=l-a,s=h-o}if(!(a>=0&&o>=0&&n>=0&&s>=0))return void(e.length=0);const l=Math.ceil(2.3*Math.sqrt(a+o)),h=8*l+(n?4:0)+(s?4:0);if(e.length=h,0===h)return;if(0===l)return e.length=8,e[0]=e[6]=i+n,e[1]=e[3]=r+s,e[2]=e[4]=i-n,void(e[5]=e[7]=r-s);let c=0,u=4*l+(n?2:0)+2,d=u,p=h;{const t=n+a,o=s,l=i+t,h=i-t,f=r+o;if(e[c++]=l,e[c++]=f,e[--u]=f,e[--u]=h,s){const t=r-o;e[d++]=h,e[d++]=t,e[--p]=t,e[--p]=l}}for(let t=1;t<l;t++){const h=Math.PI/2*(t/l),f=n+Math.cos(h)*a,m=s+Math.sin(h)*o,g=i+f,y=i-f,v=r+m,x=r-m;e[c++]=g,e[c++]=v,e[--u]=v,e[--u]=y,e[d++]=y,e[d++]=x,e[--p]=x,e[--p]=g}{const t=s+o,a=i+n,l=i-n,h=r+t,u=r-t;e[c++]=a,e[c++]=h,e[--p]=u,e[--p]=a,n&&(e[c++]=l,e[c++]=h,e[--p]=u,e[--p]=l)}},triangulate(t,e){const i=t.points,r=e.points,n=e.indices;if(0===i.length)return;let s=r.length/2;const a=s;let o,l;if(t.type!==Ku.RREC){const e=t.shape;o=e.x,l=e.y}else{const e=t.shape;o=e.x+e.width/2,l=e.y+e.height/2}const h=t.matrix;r.push(t.matrix?h.a*o+h.c*l+h.tx:o,t.matrix?h.b*o+h.d*l+h.ty:l),s++,r.push(i[0],i[1]);for(let t=2;t<i.length;t+=2)r.push(i[t],i[t+1]),n.push(s++,a,s);n.push(a+1,a,s)}};function Eg(t,e=!1){const i=t.length;if(i<6)return;let r=0;for(let e=0,n=t[i-2],s=t[i-1];e<i;e+=2){const i=t[e],a=t[e+1];r+=(i-n)*(a+s),n=i,s=a}if(!e&&r>0||e&&r<=0){const e=i/2;for(let r=e+e%2;r<i;r+=2){const e=i-r-2,n=i-r-1,s=r,a=r+1;[t[e],t[s]]=[t[s],t[e]],[t[n],t[a]]=[t[a],t[n]]}}}const wg={build(t){t.points=t.shape.points.slice()},triangulate(t,e){let i=t.points;const r=t.holes,n=e.points,s=e.indices;if(i.length>=6){Eg(i,!1);const t=[];for(let e=0;e<r.length;e++){const n=r[e];Eg(n.points,!0),t.push(i.length/2),i=i.concat(n.points)}const e=vc(i,t,2);if(!e)return;const a=n.length/2;for(let t=0;t<e.length;t+=3)s.push(e[t]+a),s.push(e[t+1]+a),s.push(e[t+2]+a);for(let t=0;t<i.length;t++)n.push(i[t])}}}
2,Tg={build(t){const e=t.shape,i=e.x,r=e.y,n=e.width,s=e.height,a=t.points;a.length=0,n>=0&&s>=0&&a.push(i,r,i+n,r,i+n,r+s,i,r+s)},triangulate(t,e){const i=t.points,r=e.points;if(0===i.length)return;const n=r.length/2;r.push(i[0],i[1],i[2],i[3],i[6],i[7],i[4],i[5]),e.indices.push(n,n+1,n+2,n+1,n+2,n+3)}},Ag={build(t){Sg.build(t)},triangulate(t,e){Sg.triangulate(t,e)}};var Mg=(t=>(t.MITER="miter",t.BEVEL="bevel",t.ROUND="round",t))(Mg||{}),Pg=(t=>(t.BUTT="butt",t.ROUND="round",t.SQUARE="square",t))(Pg||{});const Cg={adaptive:!0,maxLength:10,minSegments:8,maxSegments:2048,epsilon:1e-4,_segmentsCount(t,e=20){if(!this.adaptive||!t||isNaN(t))return e;let i=Math.ceil(t/this.maxLength);return i<this.minSegments?i=this.minSegments:i>this.maxSegments&&(i=this.maxSegments),i}};class kg{static curveTo(t,e,i,r,n,s){const a=s[s.length-2],o=s[s.length-1]-e,l=a-t,h=r-e,c=i-t,u=Math.abs(o*c-l*h);if(u<1e-8||0===n)return(s[s.length-2]!==t||s[s.length-1]!==e)&&s.push(t,e),null;const d=o*o+l*l,p=h*h+c*c,f=o*h+l*c,m=n*Math.sqrt(d)/u,g=n*Math.sqrt(p)/u,y=m*f/d,v=g*f/p,x=m*c+g*l,_=m*h+g*o,b=l*(g+y),S=o*(g+y),E=c*(m+v),w=h*(m+v);return{cx:x+t,cy:_+e,radius:n,startAngle:Math.atan2(S-_,b-x),endAngle:Math.atan2(w-_,E-x),anticlockwise:l*h>c*o}}static arc(t,e,i,r,n,s,a,o,l){const h=a-s,c=Cg._segmentsCount(Math.abs(h)*n,40*Math.ceil(Math.abs(h)/$u)),u=h/(2*c),d=2*u,p=Math.cos(u),f=Math.sin(u),m=c-1,g=m%1/m;for(let t=0;t<=m;++t){const e=u+s+d*(t+g*t),a=Math.cos(e),o=-Math.sin(e);l.push((p*a+f*o)*n+i,(p*-o+f*a)*n+r)}}}class Ig{static curveLength(t,e,i,r,n,s,a,o){let l=0,h=0,c=0,u=0,d=0,p=0,f=0,m=0,g=0,y=0,v=0,x=t,_=e;for(let b=1;b<=10;++b)h=b/10,c=h*h,u=c*h,d=1-h,p=d*d,f=p*d,m=f*t+3*p*h*i+3*d*c*n+u*a,g=f*e+3*p*h*r+3*d*c*s+u*o,y=x-m,v=_-g,x=m,_=g,l+=Math.sqrt(y*y+v*v);return l}static curveTo(t,e,i,r,n,s,a){const o=a[a.length-2],l=a[a.length-1];a.length-=2;const h=Cg._segmentsCount(Ig.curveLength(o,l,t,e,i,r,n,s));let c=0,u=0,d=0,p=0,f=0;a.push(o,l);for(let m=1,g=0;m<=h;++m)g=m/h,c=1-g,u=c*c,d=u*c,p=g*g,f=p*g,a.push(d*o+3*u*g*t+3*c*p*i+f*n,d*l+3*u*g*e+3*c*p*r+f*s)}}function Dg(t,e,i,r,n,s,a,o){let l,h;a?(l=r,h=-i):(l=-r,h=i);const c=t-i*n+l,u=e-r*n+h,d=t+i*s+l,p=e+r*s+h;return o.push(c,u,d,p),2}function Rg(t,e,i,r,n,s,a,o){const l=i-t,h=r-e;
2let c=Math.atan2(l,h),u=Math.atan2(n-t,s-e);o&&c<u?c+=2*Math.PI:!o&&c>u&&(u+=2*Math.PI);let d=c;const p=u-c,f=Math.abs(p),m=Math.sqrt(l*l+h*h),g=1+(15*f*Math.sqrt(m)/Math.PI|0),y=p/g;if(d+=y,o){a.push(t,e,i,r);for(let i=1,r=d;i<g;i++,r+=y)a.push(t,e,t+Math.sin(r)*m,e+Math.cos(r)*m);a.push(t,e,n,s)}else{a.push(i,r,t,e);for(let i=1,r=d;i<g;i++,r+=y)a.push(t+Math.sin(r)*m,e+Math.cos(r)*m,t,e);a.push(n,s,t,e)}return 2*g}function Og(t,e){t.lineStyle.native?function(t,e){let i=0;const r=t.shape,n=t.points||r.points,s=r.type!==Ku.POLY||r.closeStroke;if(0===n.length)return;const a=e.points,o=e.indices,l=n.length/2,h=a.length/2;let c=h;for(a.push(n[0],n[1]),i=1;i<l;i++)a.push(n[2*i],n[2*i+1]),o.push(c,c+1),c++;s&&o.push(c,h)}(t,e):function(t,e){const i=t.shape;let r=t.points||i.points.slice();const n=e.closePointEps;if(0===r.length)return;const s=t.lineStyle,a=new Zu(r[0],r[1]),o=new Zu(r[r.length-2],r[r.length-1]),l=i.type!==Ku.POLY||i.closeStroke,h=Math.abs(a.x-o.x)<n&&Math.abs(a.y-o.y)<n;if(l){r=r.slice(),h&&(r.pop(),r.pop(),o.set(r[r.length-2],r[r.length-1]));const t=.5*(a.x+o.x),e=.5*(o.y+a.y);r.unshift(t,e),r.push(t,e)}const c=e.points,u=r.length/2;let d=r.length;const p=c.length/2,f=s.width/2,m=f*f,g=s.miterLimit*s.miterLimit;let y=r[0],v=r[1],x=r[2],_=r[3],b=0,S=0,E=-(v-_),w=y-x,T=0,A=0,M=Math.sqrt(E*E+w*w);E/=M,w/=M,E*=f,w*=f;const P=s.alignment,C=2*(1-P),k=2*P;l||(s.cap===Pg.ROUND?d+=Rg(y-E*(C-k)*.5,v-w*(C-k)*.5,y-E*C,v-w*C,y+E*k,v+w*k,c,!0)+2:s.cap===Pg.SQUARE&&(d+=Dg(y,v,E,w,C,k,!0,c))),c.push(y-E*C,v-w*C,y+E*k,v+w*k);for(let t=1;t<u-1;++t){y=r[2*(t-1)],v=r[2*(t-1)+1],x=r[2*t],_=r[2*t+1],b=r[2*(t+1)],S=r[2*(t+1)+1],E=-(v-_),w=y-x,M=Math.sqrt(E*E+w*w),E/=M,w/=M,E*=f,w*=f,T=-(_-S),A=x-b,M=Math.sqrt(T*T+A*A),T/=M,A/=M,T*=f,A*=f;const e=x-y,i=v-_,n=x-b,a=S-_,o=e*n+i*a,l=i*n-a*e,h=l<0;if(Math.abs(l)<.001*Math.abs(o)){c.push(x-E*C,_-w*C,x+E*k,_+w*k),o>=0&&(s.join===Mg.ROUND?d+=Rg(x,_,x-E*C,_-w*C,x-T*C,_-A*C,c,!1)+4:d+=2,c.push(x-T*k,_-A*k,x+T*C,_+A*C));continue}const u=(-E+y)*(-w+_)-(-E+x)*(-w+v),p=(-T+b)*(-A+_)-(-T+x)*(-A+S),P=(e*p-n*u)/l,I=(a*u-i*p)/l,D=(P-x)*(P-x)+(I-_)*(I-_),R=x+(P-x)*C,O=_+(I-_)*C,L=x-(P-x)*k,F=_-(I-_)*k,B=h?C:k,N=D<=Math.min(e*e+i*i,n*n+a*a)+B*B*m;let V=s.join;if(V===Mg.MITER&&D/m>g&&(V=Mg.BEVEL),N)switch(V){case Mg.MITER:c.push(R,O,L,F);break;case Mg.BEVEL:h?c.push(R,O,x+E*k,_+w*k,R,O,x+T*k,_+A*k):c.push(x-E*C,_-w*C,L,F,x-T*C,_-A*C,L,F),d+=2;break;case Mg.ROUND:h?(c.push(R,O,x+E*k,_+w*k),d+=Rg(x,_,x+E*k,_+w*k,x+T*k,_+A*k,c,!0)+4,c.push(R,O,x+T*k,_+A*k)):(c.push(x-E*C,_-w*C,L,F),d+=Rg(x,_,x-E*C,_-w*C,x-T*C,_-A*C,c,!1)+4,c.push(x-T*C,_-A*C,L,F))}else{switch(c.push(x-E*C,_-w*C,x+E*k,_+w*k),V){case Mg.MITER:h?c.push(L,F,L,F):c.push(R,O,R,O),d+=2;break;case Mg.ROUND:d+=h?Rg(x,_,x+E*k,_+w*k,x+T*k,_+A*k,c,!0)+2:Rg(x,_,x-E*C,_-w*C,x-T*C,_-A*C,c,!1)+2}c.push(x-T*C,_-A*C,x+T*k,_+A*k),d+=2}}y=r[2*(u-2)],v=r[2*(u-2)+1],x=r[2*(u-1)],_=r[2*(u-1)+1],E=-(v-_),w=y-x,M=Math.sqrt(E*E+w*w),E/=M,w/=M,E*=f,w*=f,c.push(x-E*C,_-w*C,x+E*k,_+w*k),l||(s.cap===Pg.ROUND?d+=Rg(x-E*(C-k)*.5,_-w*(C-k)*.5,x-E*C,_-w*C,x+E*k,_+w*k,c,!1)+2:s.cap===Pg.SQUARE&&(d+=Dg(x,_,E,w,C,k,!1,c)));const I=e.indices,D=Cg.epsilon*Cg.epsilon;for(let t=p;t<d+p-2;++t)y=c[2*t],v=c[2*t+1],x=c[2*(t+1)],_=c[2*(t+1)+1],b=c[2*(t+2)],S=c[2*(t+2)+1],!(Math.abs(y*(_-S)+x*(S-v)+b*(v-_))<D)&&I.push(t,t+1,t+2)}(t,e)}class Lg{static curveLength(t,e,i,r,n,s){const a=t-2*i+n,o=e-2*r+s,l=2*i-2*t,h=2*r-2*e,c=4*(a*a+o*o),u=4*(a*l+o*h),d=l*l+h*h,p=2*Math.sqrt(c+u+d),f=Math.sqrt(c),m=2*c*f,g=2*Math.sqrt(d),y=u/f;return(m*p+f*u*(p-g)+(4*d*c-u*u)*Math.log((2*f+y+p)/(y+g)))/(4*m)}static curveTo(t,e,i,r,n){const s=n[n.length-2],a=n[n.length-1],o=Cg._segmentsCount(Lg.curveLength(s,a,t,e,i,r));let l=0,h=0;for(let c=1;c<=o;++c){const u=c/o;l=s+(t-s)*u,h=a+(e-a)*u,n.push(l+(t+(i-t)*u-l)*u,h+(e+(r-e)*u-h)*u)}}}const Fg={[Ku.POLY]:wg,[Ku.CIRC]:Sg,[Ku.ELIP]:Sg,[Ku.RECT]:Tg,[Ku.RREC]:Ag},Bg=[],Ng=[];class Vg{constructor(t,e=null,i=null,r=null){this.points=[],this.holes=[],this.shape=t,this.lineStyle=i,this.fillStyle=e,this.matrix=r,this.type=t.type}clone(){return new Vg(this.shape,this.fillStyle,this.lineStyle,this.matrix
2)}destroy(){this.shape=null,this.holes.length=0,this.holes=null,this.points.length=0,this.points=null,this.lineStyle=null,this.fillStyle=null}}class zg{constructor(){this.reset()}begin(t,e,i){this.reset(),this.style=t,this.start=e,this.attribStart=i}end(t,e){this.attribSize=e-this.attribStart,this.size=t-this.start}reset(){this.style=null,this.size=0,this.start=0,this.attribStart=0,this.attribSize=0}}const Gg=new Zu,Ug=class t extends Xu{constructor(){super(),this.closePointEps=1e-4,this.boundsPadding=0,this.uvsFloat32=null,this.indicesUint16=null,this.batchable=!1,this.points=[],this.colors=[],this.uvs=[],this.indices=[],this.textureIds=[],this.graphicsData=[],this.drawCalls=[],this.batchDirty=-1,this.batches=[],this.dirty=0,this.cacheDirty=-1,this.clearDirty=0,this.shapeIndex=0,this._bounds=new Sf,this.boundsDirty=-1}get bounds(){return this.updateBatches(),this.boundsDirty!==this.dirty&&(this.boundsDirty=this.dirty,this.calculateBounds()),this._bounds}invalidate(){this.boundsDirty=-1,this.dirty++,this.batchDirty++,this.shapeIndex=0,this.points.length=0,this.colors.length=0,this.uvs.length=0,this.indices.length=0,this.textureIds.length=0;for(let t=0;t<this.drawCalls.length;t++)this.drawCalls[t].texArray.clear(),Ng.push(this.drawCalls[t]);this.drawCalls.length=0;for(let t=0;t<this.batches.length;t++){const e=this.batches[t];e.reset(),Bg.push(e)}this.batches.length=0}clear(){return this.graphicsData.length>0&&(this.invalidate(),this.clearDirty++,this.graphicsData.length=0),this}drawShape(t,e=null,i=null,r=null){const n=new Vg(t,e,i,r);return this.graphicsData.push(n),this.dirty++,this}drawHole(t,e=null){if(!this.graphicsData.length)return null;const i=new Vg(t,null,null,e),r=this.graphicsData[this.graphicsData.length-1];return i.lineStyle=r.lineStyle,r.holes.push(i),this.dirty++,this}destroy(){super.destroy();for(let t=0;t<this.graphicsData.length;++t)this.graphicsData[t].destroy();this.points.length=0,this.points=null,this.colors.length=0,this.colors=null,this.uvs.length=0,this.uvs=null,this.indices.length=0,this.indices=null,this.indexBuffer.destroy(),this.indexBuffer=null,this.graphicsData.length=0,this.graphicsData=null,this.drawCalls.length=0,this.drawCalls=null,this.batches.length=0,this.batches=null,this._bounds=null}containsPoint(t){const e=this.graphicsData;for(let i=0;i<e.length;++i){const r=e[i];if(r.fillStyle.visible&&r.shape&&(r.matrix?r.matrix.applyInverse(t,Gg):Gg.copyFrom(t),r.shape.contains(Gg.x,Gg.y))){let t=!1;if(r.holes)for(let e=0;e<r.holes.length;e++)if(r.holes[e].shape.contains(Gg.x,Gg.y)){t=!0;break}if(!t)return!0}}return!1}updateBatches(){if(!this.graphicsData.length)return void(this.batchable=!0);if(!this.validateBatching())return;this.cacheDirty=this.dirty;const t=this.uvs,e=this.graphicsData;let i=null,r=null;this.batches.length>0&&(i=this.batches[this.batches.length-1],r=i.style);for(let n=this.shapeIndex;n<e.length;n++){this.shapeIndex++;const s=e[n],a=s.fillStyle,o=s.lineStyle;Fg[s.type].build(s),s.matrix&&this.transformPoints(s.points,s.matrix),(a.visible||o.visible)&&this.processHoles(s.holes);for(let e=0;e<2;e++){const n=0===e?a:o;if(!n.visible)continue;const l=n.texture.baseTexture,h=this.indices.length,c=this.points.length/2;l.wrapMode=Hh.REPEAT,0===e?this.processFill(s):this.processLine(s);const u=this.points.length/2-c;0!==u&&(i&&!this._compareStyles(r,n)&&(i.end(h,c),i=null),i||(i=Bg.pop()||new zg,i.begin(n,h,c),this.batches.push(i),r=n),this.addUvs(this.points,t,n.texture,c,u,n.matrix))}}const n=this.indices.length,s=this.points.length/2;if(i&&i.end(n,s),0===this.batches.length)return void(this.batchable=!0);const a=s>65535;this.indicesUint16&&this.indices.length===this.indicesUint16.length&&a===this.indicesUint16.BYTES_PER_ELEMENT>2?this.indicesUint16.set(this.indices):this.indicesUint16=a?new Uint32Array(this.indices):new Uint16Array(this.indices),this.batchable=this.isBatchable(),this.batchable?this.packBatches():this.buildDrawCalls()}_compareStyles(t,e){return!(!t||!e||t.texture.baseTexture!==e.texture.baseTexture||t.color+t.alpha!==e.color+e.alpha||!!t.native!=!!e.native)}validateBatching(){if(this.dirty===this.cacheDirty||!this.graphicsData.length)return!1;for(let t=0,e=this.graphicsData.length;t<e;t++){const e=this.graphicsData[t],i=e.fillStyle,r=e.lineStyle;if(i&&!i.texture.baseTexture.valid||r&&!r.texture.baseTexture.valid)return!1}return!0}packBatches(){this.batchDirty++,this.uvsFloat32=new Float32Array(this.uvs);const t=this.batches;for(let e=0,i=t.length;e<i;e++){const i=t[e];for(let t=0;t<i.size;t++){const e=i.start+t;this.indicesUint16[e]=this.indicesUint16[e]-i.attribStart}}}isBatchable(){if(this.points.length>131070)return!1;const e=this.batches;for(let t=0;t<e.length;t++)if(e[t].style.native)return!1;return this.points.length<2*t.BATCHABLE_SIZE}buildDrawCalls(){let t=++Fu._globalBatch;for(let t=0;t<this.drawCalls.length;t++)this.drawCalls[t].texArray.clear(),Ng.push(this.drawCalls[t]);this.drawCalls.length=0;const e=this.colors,i=this.textureIds;let r=Ng.pop();r||(r=new Bu,r.texArray=new Fd),r.texArray.count=0,r.start=0,r.size=0,r.type=Bh.TRIANGLES;let n=0,s=null,a=0,o=!1,l=Bh.TRIANGLES,h=0;this.drawCalls.push(r);for(let c=0;c<this.batches.length;c++){const u=this.batches[c],d=8,p=u.style,f=p.texture.baseTexture;o!==!!p.native&&(o=!!p.native,l=o?Bh.LINES:Bh.TRIANGLES,s=null,n=d,t++),s!==f&&(s=f,f._batchEnabled!==t&&(n===d&&(t++,n=0,r.size>0&&(r=Ng.pop(),r||(r=new Bu,r.texArray=new Fd),this.drawCalls.push(r)),r.start=h,r.size=0,r.texArray.count=0,r.type=l),f.touched=1,f._batchEnabled=t,f._batchLocation=n,f.wrapMode=Hh.REPEAT,r.texArray.elements[r.texArray.count++
2]=f,n++)),r.size+=u.size,h+=u.size,a=f._batchLocation,this.addColors(e,p.color,p.alpha,u.attribSize,u.attribStart),this.addTextureIds(i,a,u.attribSize,u.attribStart)}Fu._globalBatch=t,this.packAttributes()}packAttributes(){const t=this.points,e=this.uvs,i=this.colors,r=this.textureIds,n=new ArrayBuffer(3*t.length*4),s=new Float32Array(n),a=new Uint32Array(n);let o=0;for(let n=0;n<t.length/2;n++)s[o++]=t[2*n],s[o++]=t[2*n+1],s[o++]=e[2*n],s[o++]=e[2*n+1],a[o++]=i[n],s[o++]=r[n];this._buffer.update(n),this._indexBuffer.update(this.indicesUint16)}processFill(t){t.holes.length?wg.triangulate(t,this):Fg[t.type].triangulate(t,this)}processLine(t){Og(t,this);for(let e=0;e<t.holes.length;e++)Og(t.holes[e],this)}processHoles(t){for(let e=0;e<t.length;e++){const i=t[e];Fg[i.type].build(i),i.matrix&&this.transformPoints(i.points,i.matrix)}}calculateBounds(){const t=this._bounds;t.clear(),t.addVertexData(this.points,0,this.points.length),t.pad(this.boundsPadding,this.boundsPadding)}transformPoints(t,e){for(let i=0;i<t.length/2;i++){const r=t[2*i],n=t[2*i+1];t[2*i]=e.a*r+e.c*n+e.tx,t[2*i+1]=e.b*r+e.d*n+e.ty}}addColors(t,e,i,r,n=0){const s=eu.shared.setValue(e).toLittleEndianNumber(),a=eu.shared.setValue(s).toPremultiplied(i);t.length=Math.max(t.length,n+r);for(let e=0;e<r;e++)t[n+e]=a}addTextureIds(t,e,i,r=0){t.length=Math.max(t.length,r+i);for(let n=0;n<i;n++)t[r+n]=e}addUvs(t,e,i,r,n,s=null){let a=0;const o=e.length,l=i.frame;for(;a<n;){let i=t[2*(r+a)],n=t[2*(r+a)+1];if(s){const t=s.a*i+s.c*n+s.tx;n=s.b*i+s.d*n+s.ty,i=t}a++,e.push(i/l.width,n/l.height)}const h=i.baseTexture;(l.width<h.width||l.height<h.height)&&this.adjustUvs(e,i,o,n)}adjustUvs(t,e,i,r){const n=e.baseTexture,s=1e-6,a=i+2*r,o=e.frame,l=o.width/n.width,h=o.height/n.height;let c=o.x/o.width,u=o.y/o.height,d=Math.floor(t[i]+s),p=Math.floor(t[i+1]+s);for(let e=i+2;
2e<a;e+=2)d=Math.min(d,Math.floor(t[e]+s)),p=Math.min(p,Math.floor(t[e+1]+s));c-=d,u-=p;for(let e=i;e<a;e+=2)t[e]=(t[e]+c)*l,t[e+1]=(t[e+1]+u)*h}};Ug.BATCHABLE_SIZE=100;let Hg=Ug;class jg{constructor(){this.color=16777215,this.alpha=1,this.texture=Qd.WHITE,this.matrix=null,this.visible=!1,this.reset()}clone(){const t=new jg;return t.color=this.color,t.alpha=this.alpha,t.texture=this.texture,t.matrix=this.matrix,t.visible=this.visible,t}reset(){this.color=16777215,this.alpha=1,this.texture=Qd.WHITE,this.matrix=null,this.visible=!1}destroy(){this.texture=null,this.matrix=null}}class Wg extends jg{constructor(){super(...arguments),this.width=0,this.alignment=.5,this.native=!1,this.cap=Pg.BUTT,this.join=Mg.MITER,this.miterLimit=10}clone(){const t=new Wg;return t.color=this.color,t.alpha=this.alpha,t.texture=this.texture,t.matrix=this.matrix,t.visible=this.visible,t.width=this.width,t.alignment=this.alignment,t.native=this.native,t.cap=this.cap,t.join=this.join,t.miterLimit=this.miterLimit,t}reset(){super.reset(),this.color=0,this.alignment=.5,this.width=0,this.native=!1,this.cap=Pg.BUTT,this.join=Mg.MITER,this.miterLimit=10}}const Xg={},$g=class t extends Pf{constructor(t=null){super(),this.shader=null,this.pluginName="batch",this.currentPath=null,this.batches=[],this.batchTint=-1,this.batchDirty=-1,this.vertexData=null,this._fillStyle=new jg,this._lineStyle=new Wg,this._matrix=null,this._holeMode=!1,this.state=Pu.for2d(),this._geometry=t||new Hg,this._geometry.refCount++,this._transformID=-1,this._tintColor=new eu(16777215),this.blendMode=Fh.NORMAL}get geometry(){return this._geometry}clone(){return this.finishPoly(),new t(this._geometry)}set blendMode(t){this.state.blendMode=t}get blendMode(){return this.state.blendMode}get tint(){return this._tintColor.value}set tint(t){this._tintColor.setValue(t)}get fill(){return this._fillStyle}get line(){return this._lineStyle}lineStyle(t=null,e=0,i,r=.5,n=!1){return"number"==typeof t&&(t={width:t,color:e,alpha:i,alignment:r,native:n}),this.lineTextureStyle(t)}lineTextureStyle(t){const e={width:0,texture:Qd.WHITE,color:t?.texture?16777215:0,matrix:null,alignment:.5,native:!1,cap:Pg.BUTT,join:Mg.MITER,miterLimit:10};t=Object.assign(e,t),this.normalizeColor(t),this.currentPath&&this.startPoly();
2const i=t.width>0&&t.alpha>0;return i?(t.matrix&&(t.matrix=t.matrix.clone(),t.matrix.invert()),Object.assign(this._lineStyle,{visible:i},t)):this._lineStyle.reset(),this}startPoly(){if(this.currentPath){const t=this.currentPath.points,e=this.currentPath.points.length;e>2&&(this.drawShape(this.currentPath),this.currentPath=new id,this.currentPath.closeStroke=!1,this.currentPath.points.push(t[e-2],t[e-1]))}else this.currentPath=new id,this.currentPath.closeStroke=!1}finishPoly(){this.currentPath&&(this.currentPath.points.length>2?(this.drawShape(this.currentPath),this.currentPath=null):this.currentPath.points.length=0)}moveTo(t,e){return this.startPoly(),this.currentPath.points[0]=t,this.currentPath.points[1]=e,this}lineTo(t,e){this.currentPath||this.moveTo(0,0);const i=this.currentPath.points,r=i[i.length-2],n=i[i.length-1];return(r!==t||n!==e)&&i.push(t,e),this}_initCurve(t=0,e=0){this.currentPath?0===this.currentPath.points.length&&(this.currentPath.points=[t,e]):this.moveTo(t,e)}quadraticCurveTo(t,e,i,r){this._initCurve();const n=this.currentPath.points;return 0===n.length&&this.moveTo(0,0),Lg.curveTo(t,e,i,r,n),this}bezierCurveTo(t,e,i,r,n,s){return this._initCurve(),Ig.curveTo(t,e,i,r,n,s,this.currentPath.points),this}arcTo(t,e,i,r,n){this._initCurve(t,e);const s=this.currentPath.points,a=kg.curveTo(t,e,i,r,n,s);if(a){const{cx:t,cy:e,radius:i,startAngle:r,endAngle:n,anticlockwise:s}=a;this.arc(t,e,i,r,n,s)}return this}arc(t,e,i,r,n,s=!1){if(r===n)return this;if(!s&&n<=r?n+=$u:s&&r<=n&&(r+=$u),n-r==0)return this;const a=t+Math.cos(r)*i,o=e+Math.sin(r)*i,l=this._geometry.closePointEps;let h=this.currentPath?this.currentPath.points:null;if(h){const t=Math.abs(h[h.length-2]-a),e=Math.abs(h[h.length-1]-o);t<l&&e<l||h.push(a,o)}else this.moveTo(a,o),h=this.currentPath.points;return kg.arc(a,o,t,e,i,r,n,s,h),this}beginFill(t=0,e){return this.beginTextureFill({texture:Qd.WHITE,color:t,alpha:e})}normalizeColor(t){const e=eu.shared.setValue(t.color??0);t.color=e.toNumber(),t.alpha??(t.alpha=e.alpha)}beginTextureFill(t){const e={texture:Qd.WHITE,color:16777215,matrix:null};t=Object.assign(e,t),this.normalizeColor(t),this.currentPath&&this.startPoly();const i=t.alpha>0;return i?(t.matrix&&(t.matrix=t.matrix.clone(),t.matrix.invert()),Object.assign(this._fillStyle,{visible:i},t)):this._fillStyle.reset(),this}endFill(){return this.finishPoly(),this._fillStyle.reset(),this}drawRect(t,e,i,r){return this.drawShape(new Qu(t,e,i,r))}drawRoundedRect(t,e,i,r,n){return this.drawShape(new rd(t,e,i,r,n))}drawCircle(t,e,i){return this.drawShape(new td(t,e,i))}drawEllipse(t,e,i,r){return this.drawShape(new ed(t,e,i,r))}drawPolygon(...t){let e,i=!0;const r=t[0];r.points?(i=r.closeStroke,e=r.points):e=Array.isArray(t[0])?t[0]:t;const n=new id(e);return n.closeStroke=i,this.drawShape(n),this}drawShape(t){return this._holeMode?this._geometry.drawHole(t,this._matrix):this._geometry.drawShape(t,this._fillStyle.clone(),this._lineStyle.clone(),this._matrix),this}clear(){return this._geometry.clear(),this._lineStyle.reset(),this._fillStyle.reset(),this._boundsID++,this._matrix=null,this._holeMode=!1,this.currentPath=null,this}isFastRect(){const t=this._geometry.graphicsData;return!(1!==t.length||t[0].shape.type!==Ku.RECT||t[0].matrix||t[0].holes.length||t[0].lineStyle.visible&&t[0].lineStyle.width)}_render(t){this.finishPoly();const e=this._geometry;e.updateBatches(),e.batchable?(this.batchDirty!==e.batchDirty&&this._populateBatches(),this._renderBatched(t)):(t.batch.flush(),this._renderDirect(t))}_populateBatches(){const t=this._geometry,e=this.blendMode,i=t.batches.length;this.batchTint=-1,this._transformID=-1,this.batchDirty=t.batchDirty,this.batches.length=i,this.vertexData=new Float32Array(t.points);for(let r=0;r<i;r++){const i=t.batches[r],n=i.style.color,s=new Float32Array(this.vertexData.buffer,4*i.attribStart*2,2*i.attribSize),a=new Float32Array(t.uvsFloat32.buffer,4*i.attribStart*2,2*i.attribSize),o={vertexData:s,blendMode:e,indices:new Uint16Array(t.indicesUint16.buffer,2*i.start,i.size),uvs:a,_batchRGB:eu.shared.setValue(n).toRgbArray(),_tintRGB:n,_texture:i.style.texture,alpha:i.style.alpha,worldAlpha:1};this.batches[r]=o}}_renderBatched(t){if(this.batches.length){t.batch.setObjectRenderer(t.plugins[this.pluginName]),this.calculateVertices(),this.calculateTints();for(let e=0,i=this.batches.length;e<i;e++){const i=this.batches[e];i.worldAlpha=this.worldAlpha*i.alpha,t.plugins[this.pluginName].render(i)}}}_renderDirect(t){const e=this._resolveDirectShader(t),i=this._geometry,r=this.worldAlpha,n=e.uniforms,s=i.drawCalls;n.translationMatrix=this.transform.worldTransform,eu.shared.setValue(this._tintColor).premultiply(r).toArray(n.tint),t.shader.bind(e),t.geometry.bind(i,e),t.state.set(this.state);for(let e=0,r=s.length;e<r;e++)this._renderDrawCallDirect(t,i.drawCalls[e])}_renderDrawCallDirect(t,e){const{texArray:i,type:r,size:n,start:s}=e,a=i.count;for(let e=0;e<a;e++)t.texture.bind(i.elements[e],e);t.geometry.draw(r,n,s)}_resolveDirectShader(t){let e=this.shader;const i=this.pluginName;if(!e){if(!Xg[i]){const{maxTextures:e}=t.plugins[i],r=new Int32Array(e);for(let t=0;t<e;t++)r[t]=t;const n={tint:new Float32Array([1,1,1,1]),translationMatrix:new nd,default:Rd.from({uSamplers:r},!0)},s=t.plugins[i]._shader.program;Xg[i]=new Od(s,n)}e=Xg[i]}return e}_calculateBounds(){this.finishPoly();const t=this._geometry;if(!t.graphicsData.length)return;const{minX:e,minY:i,maxX:r,maxY:n}=t.bounds;this._bounds.addFrame(this.transform,e,i,r,n)}containsPoint(e){return this.worldTransform.applyInverse(e,t._TEMP_POINT),this._geometry.containsPoint(t._TEMP_POINT)}calculateTints(){if(this.batchTint!==this.tint){this.batchTint=this._tintColor.toNumber();for(let t=0;t<this.batches.length;t++){const e=this.batches[t];e._tintRGB=eu.shared.setValue(this._tintColor).multiply(e._batchRGB).toLittleEndianNumber()}}}calculateVertices(){const t=this.transform._worldID;if(this._transformID===t)return;this._transformID=t;const e=this.transform.worldTransform,i=e.a,r=e.b,n=e.c,s=e.d,a=e.tx,o=e.ty,l=this._geometry.points,h=this.vertexData;let c=0;for(let t=0;t<l.length;t+=2){const e=l[t],u=l[t+1];h[c++]=i*e+n*u+a,h[c++]=s*u+r*e+o}}closePath(){const t=this.currentPath;return t&&(t.closeStroke=!0,this.finishPoly()),this}setMatrix(t){return this._matrix=t,this}beginHole(){return this.finishPoly(),this._holeMode=!0,this}endHole(){return this.finishPoly(),this._holeMode=!1,this}destroy(t){this._geometry.refCount--,0===this._geometry.refCount&&this._geometry.dispose(),this._matrix=null,this.currentPath=null,this._lineStyle.destroy(),this._lineStyle=null,this._fillStyle.destroy(),this._fillStyle=null,this._geometry=null,this.shader=null,this.vertexData=null,this.batches.length=0,this.batches=null,
2super.destroy(t)}};$g.curves=Cg,$g._TEMP_POINT=new Zu;let Yg=$g;class qg{constructor(t,e){this.uvBuffer=t,this.uvMatrix=e,this.data=null,this._bufferUpdateId=-1,this._textureUpdateId=-1,this._updateID=0}update(t){if(!t&&this._bufferUpdateId===this.uvBuffer._updateID&&this._textureUpdateId===this.uvMatrix._updateID)return;this._bufferUpdateId=this.uvBuffer._updateID,this._textureUpdateId=this.uvMatrix._updateID;const e=this.uvBuffer.data;(!this.data||this.data.length!==e.length)&&(this.data=new Float32Array(e.length)),this.uvMatrix.multiplyUvs(e,this.data),this._updateID++}}const Kg=new Zu,Zg=new id,Jg=class t extends Pf{constructor(t,e,i,r=Bh.TRIANGLES){super(),this.geometry=t,this.shader=e,this.state=i||Pu.for2d(),this.drawMode=r,this.start=0,this.size=0,this.uvs=null,this.indices=null,this.vertexData=new Float32Array(1),this.vertexDirty=-1,this._transformID=-1,this._roundPixels=Jh.ROUND_PIXELS,this.batchUvs=null}get geometry(){return this._geometry}set geometry(t){this._geometry!==t&&(this._geometry&&(this._geometry.refCount--,0===this._geometry.refCount&&this._geometry.dispose()),this._geometry=t,this._geometry&&this._geometry.refCount++,this.vertexDirty=-1)}get uvBuffer(){return this.geometry.buffers[1]}get verticesBuffer(){return this.geometry.buffers[0]}set material(t){this.shader=t}get material(){return this.shader}set blendMode(t){this.state.blendMode=t}get blendMode(){return this.state.blendMode}set roundPixels(t){this._roundPixels!==t&&(this._transformID=-1),this._roundPixels=t}get roundPixels(){return this._roundPixels}get tint(){return"tint"in this.shader?this.shader.tint:null}set tint(t){this.shader.tint=t}get tintValue(){return this.shader.tintValue}get texture(){return"texture"in this.shader?this.shader.texture:null}set texture(t){this.shader.texture=t}_render(e){const i=this.geometry.buffers[0].data;this.shader.batchable&&this.drawMode===Bh.TRIANGLES&&i.length<2*t.BATCHABLE_SIZE?this._renderToBatch(e):this._renderDefault(e)}_renderDefault(t){const e=this.shader;e.alpha=this.worldAlpha,e.update&&e.update(),t.batch.flush(),e.uniforms.translationMatrix=this.transform.worldTransform.toArray(!0),t.shader.bind(e),t.state.set(this.state),t.geometry.bind(this.geometry,e),t.geometry.draw(this.drawMode,this.size,this.start,this.geometry.instanceCount)}_renderToBatch(t){const e=this.geometry,i=this.shader;i.uvMatrix&&(i.uvMatrix.update(),this.calculateUvs()),this.calculateVertices(),this.indices=e.indexBuffer.data,this._tintRGB=i._tintRGB,this._texture=i.texture;const r=this.material.pluginName;t.batch.setObjectRenderer(t.plugins[r]),t.plugins[r].render(this)}calculateVertices(){const t=this.geometry.buffers[0],e=t.data,i=t._updateID;if(i===this.vertexDirty&&this._transformID===this.transform._worldID)return;this._transformID=this.transform._worldID,this.vertexData.length!==e.length&&(this.vertexData=new Float32Array(e.length));const r=this.transform.worldTransform,n=r.a,s=r.b,a=r.c,o=r.d,l=r.tx,h=r.ty,c=this.vertexData;for(let t=0;t<c.length/2;t++){const i=e[2*t],r=e[2*t+1];c[2*t]=n*i+a*r+l,c[2*t+1]=s*i+o*r+h}if(this._roundPixels){const t=Jh.RESOLUTION;for(let e=0;e<c.length;++e)c[e]=Math.round(c[e]*t)/t}this.vertexDirty=i}calculateUvs(){const t=this.geometry.buffers[1],e=this.shader;e.uvMatrix.isSimple?this.uvs=t.data:(this.batchUvs||(this.batchUvs=new qg(t,e.uvMatrix)),this.batchUvs.update(),this.uvs=this.batchUvs.data)}_calculateBounds(){this.calculateVertices(),this._bounds.addVertexData(this.vertexData,0,this.vertexData.length)}containsPoint(t){if(!this.getBounds().contains(t.x,t.y))return!1;this.worldTransform.applyInverse(t,Kg);const e=this.geometry.getBuffer("aVertexPosition").data,i=Zg.points,r=this.geometry.getIndex().data,n=r.length,s=4===this.drawMode?3:1;for(let t=0;t+2<n;t+=s){const n=2*r[t],s=2*r[t+1],a=2*r[t+2];if(i[0]=e[n],i[1]=e[n+1],i[2]=e[s],i[3]=e[s+1],i[4]=e[a],i[5]=e[a+1],Zg.contains(Kg.x,Kg.y))return!0}return!1}destroy(t){super.destroy(t),this._cachedTexture&&(this._cachedTexture.destroy(),this._cachedTexture=null),this.geometry=null,this.shader=null,this.state=null,this.uvs=null,this.indices=null,this.vertexData=null}};Jg.BATCHABLE_SIZE=100;let Qg=Jg;class ty extends Wu{constructor(t,e,i){super();const r=new Vu(t),n=new Vu(e,!0),s=new Vu(i,!0,!0);this.addAttribute("aVertexPosition",r,2,!1,zh.FLOAT).addAttribute("aTextureCoord",n,2,!1,zh.FLOAT).addIndex(s),this._updateId=-1}get vertexDirtyId(){return this.buffers[0]._updateID}}class ey extends Od{constructor(t,e){const i={uSampler:t,alpha:1,uTextureMatrix:nd.IDENTITY,uColor:new Float32Array([1,1,1,1])};
2(e=Object.assign({tint:16777215,alpha:1,pluginName:"batch"},e)).uniforms&&Object.assign(i,e.uniforms),super(e.program||Id.from("attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\nuniform mat3 translationMatrix;\nuniform mat3 uTextureMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n    gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n\n    vTextureCoord = (uTextureMatrix * vec3(aTextureCoord, 1.0)).xy;\n}\n","varying vec2 vTextureCoord;\nuniform vec4 uColor;\n\nuniform sampler2D uSampler;\n\nvoid main(void)\n{\n    gl_FragColor = texture2D(uSampler, vTextureCoord) * uColor;\n}\n"),i),this._colorDirty=!1,this.uvMatrix=new fp(t),this.batchable=void 0===e.program,this.pluginName=e.pluginName,this._tintColor=new eu(e.tint),this._tintRGB=this._tintColor.toLittleEndianNumber(),this._colorDirty=!0,this.alpha=e.alpha}get texture(){return this.uniforms.uSampler}set texture(t){this.uniforms.uSampler!==t&&(!this.uniforms.uSampler.baseTexture.alphaMode!=!t.baseTexture.alphaMode&&(this._colorDirty=!0),this.uniforms.uSampler=t,this.uvMatrix.texture=t)}set alpha(t){t!==this._alpha&&(this._alpha=t,this._colorDirty=!0)}get alpha(){return this._alpha}set tint(t){t!==this.tint&&(this._tintColor.setValue(t),this._tintRGB=this._tintColor.toLittleEndianNumber(),this._colorDirty=!0)}get tint(){return this._tintColor.value}get tintValue(){return this._tintColor.toNumber()}update(){if(this._colorDirty){this._colorDirty=!1;const t=this.texture.baseTexture.alphaMode;eu.shared.setValue(this._tintColor).premultiply(this._alpha,t).toArray(this.uniforms.uColor)}this.uvMatrix.update()&&(this.uniforms.uTextureMatrix=this.uvMatrix.mapCoord)}}class iy{constructor(t,e,i){this.geometry=new Wu,this.indexBuffer=null,this.size=i,this.dynamicProperties=[],this.staticProperties=[];for(let i=0;i<t.length;++i){let r=t[i];r={attributeName:r.attributeName,size:r.size,uploadFunction:r.uploadFunction,type:r.type||zh.FLOAT,offset:r.offset},e[i]?this.dynamicProperties.push(r):this.staticProperties.push(r)}this.staticStride=0,this.staticBuffer=null,this.staticData=null,this.staticDataUint32=null,this.dynamicStride=0,this.dynamicBuffer=null,this.dynamicData=null,this.dynamicDataUint32=null,this._updateID=0,this.initBuffers()}initBuffers(){const t=this.geometry;let e=0;this.indexBuffer=new Vu(function(t,e=null){const i=6*t;if((e=e||new Uint16Array(i)).length!==i)throw new Error(`Out buffer length is incorrect, got ${e.length} and expected ${i}`);for(let t=0,r=0;t<i;t+=6,r+=4)e[t+0]=r+0,e[t+1]=r+1,e[t+2]=r+2,e[t+3]=r+0,e[t+4]=r+2,e[t+5]=r+3;return e}(this.size),!0,!0),t.addIndex(this.indexBuffer),this.dynamicStride=0;for(let t=0;t<this.dynamicProperties.length;++t){const i=this.dynamicProperties[t];i.offset=e,e+=i.size,this.dynamicStride+=i.size}const i=new ArrayBuffer(this.size*this.dynamicStride*4*4);this.dynamicData=new Float32Array(i),this.dynamicDataUint32=new Uint32Array(i),this.dynamicBuffer=new Vu(this.dynamicData,!1,!1);let r=0;this.staticStride=0;for(let t=0;t<this.staticProperties.length;++t){const e=this.staticProperties[t];e.offset=r,r+=e.size,this.staticStride+=e.size}const n=new ArrayBuffer(this.size*this.staticStride*4*4);this.staticData=new Float32Array(n),this.staticDataUint32=new Uint32Array(n),this.staticBuffer=new Vu(this.staticData,!0,!1);for(let e=0;e<this.dynamicProperties.length;++e){const i=this.dynamicProperties[e];t.addAttribute(i.attributeName,this.dynamicBuffer,0,i.type===zh.UNSIGNED_BYTE,i.type,4*this.dynamicStride,4*i.offset)}for(let e=0;e<this.staticProperties.length;++e){const i=this.staticProperties[e];t.addAttribute(i.attributeName,this.staticBuffer,0,i.type===zh.UNSIGNED_BYTE,i.type,4*this.staticStride,4*i.offset)}}uploadDynamic(t,e,i){for(let r=0;r<this.dynamicProperties.length;r++){const n=this.dynamicProperties[r];n.uploadFunction(t,e,i,n.type===zh.UNSIGNED_BYTE?this.dynamicDataUint32:this.dynamicData,this.dynamicStride,n.offset)}this.dynamicBuffer._updateID++}uploadStatic(t,e,i){for(let r=0;r<this.staticProperties.length;r++){const n=this.staticProperties[r];
vendor: 19,766 bytes, line 2
2n.uploadFunction(t,e,i,n.type===zh.UNSIGNED_BYTE?this.staticDataUint32:this.staticData,this.staticStride,n.offset)}this.staticBuffer._updateID++}destroy(){this.indexBuffer=null,this.dynamicProperties=null,this.dynamicBuffer=null,this.dynamicData=null,this.dynamicDataUint32=null,this.staticProperties=null,this.staticBuffer=null,this.staticData=null,this.staticDataUint32=null,this.geometry.destroy()}}class ry extends Bd{constructor(t){super(t),this.shader=null,this.properties=null,this.tempMatrix=new nd,this.properties=[{attributeName:"aVertexPosition",size:2,uploadFunction:this.uploadVertices,offset:0},{attributeName:"aPositionCoord",size:2,uploadFunction:this.uploadPosition,offset:0},{attributeName:"aRotation",size:1,uploadFunction:this.uploadRotation,offset:0},{attributeName:"aTextureCoord",size:2,uploadFunction:this.uploadUvs,offset:0},{attributeName:"aColor",size:1,type:zh.UNSIGNED_BYTE,uploadFunction:this.uploadTint,offset:0}],this.shader=Od.from("attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\nattribute vec4 aColor;\n\nattribute vec2 aPositionCoord;\nattribute float aRotation;\n\nuniform mat3 translationMatrix;\nuniform vec4 uColor;\n\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\n\nvoid main(void){\n    float x = (aVertexPosition.x) * cos(aRotation) - (aVertexPosition.y) * sin(aRotation);\n    float y = (aVertexPosition.x) * sin(aRotation) + (aVertexPosition.y) * cos(aRotation);\n\n    vec2 v = vec2(x, y);\n    v = v + aPositionCoord;\n\n    gl_Position = vec4((translationMatrix * vec3(v, 1.0)).xy, 0.0, 1.0);\n\n    vTextureCoord = aTextureCoord;\n    vColor = aColor * uColor;\n}\n","varying vec2 vTextureCoord;\nvarying vec4 vColor;\n\nuniform sampler2D uSampler;\n\nvoid main(void){\n    vec4 color = texture2D(uSampler, vTextureCoord) * vColor;\n    gl_FragColor = color;\n}",{}),this.state=Pu.for2d()}render(t){const e=t.children,i=t._maxSize,r=t._batchSize,n=this.renderer;let s=e.length;if(0===s)return;s>i&&!t.autoResize&&(s=i);let a=t._buffers;a||(a=t._buffers=this.generateBuffers(t));const o=e[0]._texture.baseTexture,l=o.alphaMode>0;this.state.blendMode=ru(t.blendMode,l),n.state.set(this.state);const h=n.gl,c=t.worldTransform.copyTo(this.tempMatrix);c.prepend(n.globalUniforms.uniforms.projectionMatrix),this.shader.uniforms.translationMatrix=c.toArray(!0),this.shader.uniforms.uColor=eu.shared.setValue(t.tintRgb).premultiply(t.worldAlpha,l).toArray(this.shader.uniforms.uColor),this.shader.uniforms.uSampler=o,this.renderer.shader.bind(this.shader);let u=!1;for(let i=0,o=0;i<s;i+=r,o+=1){let l=s-i;l>r&&(l=r),o>=a.length&&a.push(this._generateOneMoreBuffer(t));const c=a[o];c.uploadDynamic(e,i,l);const d=t._bufferUpdateIDs[o]||0;u=u||c._updateID<d,u&&(c._updateID=t._updateID,c.uploadStatic(e,i,l)),n.geometry.bind(c.geometry),h.drawElements(h.TRIANGLES,6*l,h.UNSIGNED_SHORT,0)}}generateBuffers(t){const e=[],i=t._maxSize,r=t._batchSize,n=t._properties;for(let t=0;t<i;t+=r)e.push(new iy(this.properties,n,r));return e}_generateOneMoreBuffer(t){const e=t._batchSize,i=t._properties;return new iy(this.properties,i,e)}uploadVertices(t,e,i,r,n,s){let a=0,o=0,l=0,h=0;for(let c=0;c<i;++c){const i=t[e+c],u=i._texture,d=i.scale.x,p=i.scale.y,f=u.trim,m=u.orig;f?(o=f.x-i.anchor.x*m.width,a=o+f.width,h=f.y-i.anchor.y*m.height,l=h+f.height):(a=m.width*(1-i.anchor.x),o=m.width*-i.anchor.x,l=m.height*(1-i.anchor.y),h=m.height*-i.anchor.y),r[s]=o*d,r[s+1]=h*p,r[s+n]=a*d,r[s+n+1]=h*p,r[s+2*n]=a*d,r[s+2*n+1]=l*p,r[s+3*n]=o*d,r[s+3*n+1]=l*p,s+=4*n}}uploadPosition(t,e,i,r,n,s){for(let a=0;a<i;a++){const i=t[e+a].position;r[s]=i.x,r[s+1]=i.y,r[s+n]=i.x,r[s+n+1]=i.y,r[s+2*n]=i.x,r[s+2*n+1]=i.y,r[s+3*n]=i.x,r[s+3*n+1]=i.y,s+=4*n}}uploadRotation(t,e,i,r,n,s){for(let a=0;a<i;a++){const i=t[e+a].rotation;r[s]=i,r[s+n]=i,r[s+2*n]=i,r[s+3*n]=i,s+=4*n}}uploadUvs(t,e,i,r,n,s){for(let a=0;a<i;++a){const i=t[e+a]._texture._uvs;i?(r[s]=i.x0,r[s+1]=i.y0,r[s+n]=i.x1,r[s+n+1]=i.y1,r[s+2*n]=i.x2,r[s+2*n+1]=i.y2,r[s+3*n]=i.x3,r[s+3*n+1]=i.y3,s+=4*n):(r[s]=0,r[s+1]=0,r[s+n]=0,r[s+n+1]=0,r[s+2*n]=0,r[s+2*n+1]=0,r[s+3*n]=0,r[s+3*n+1]=0,s+=4*n)}}uploadTint(t,e,i,r,n,s){for(let a=0;a<i;++a){const i=t[e+a],o=eu.shared.setValue(i._tintRGB).toPremultiplied(i.alpha,i.texture.baseTexture.alphaMode>0);r[s]=o,r[s+n]=o,r[s+2*n]=o,r[s+3*n]=o,s+=4*n}}destroy(){super.destroy(),this.shader&&(this.shader.destroy(),this.shader=null),this.tempMatrix=null}}ry.extension={name:"particle",type:bu.RendererPlugin},wu.add(ry);var ny=(t=>(t[t.LINEAR_VERTICAL=0]="LINEAR_VERTICAL",t[t.LINEAR_HORIZONTAL=1]="LINEAR_HORIZONTAL",t))(ny||{});const sy={willReadFrequently:!0},ay=class t{static get experimentalLetterSpacingSupported(){let e=t._experimentalLetterSpacingSupported;if(void 0!==e){const i=Jh.ADAPTER.getCanvasRenderingContext2D().prototype;e=t._experimentalLetterSpacingSupported="letterSpacing"in i||"textLetterSpacing"in i}return e}constructor(t,e,i,r,n,s,a,o,l){this.text=t,this.style=e,this.width=i,this.height=r,this.lines=n,this.lineWidths=s,this.lineHeight=a,this.maxLineWidth=o,this.fontProperties=l}static measureText(e,i,r,n=t._canvas){r=r??i.wordWrap;const s=i.toFontString(),a=t.measureFont(s);0===a.fontSize&&(a.fontSize=i.fontSize,a.ascent=i.fontSize);const o=n.getContext("2d",sy);o.font=s;const l=(r?t.wordWrap(e,i,n):e).split(/(?:\r\n|\r|\n)/),h=new Array(l.length);let c=0;for(let e=0;e<l.length;e++){const r=t._measureText(l[e],i.letterSpacing,o);h[e]=r,c=Math.max(c,r)}let u=c+i.strokeThickness;i.dropShadow&&(u+=i.dropShadowDistance);const d=i.lineHeight||a.fontSize+i.strokeThickness;let p=Math.max(d,a.fontSize+2*i.strokeThickness)+i.leading+(l.length-1)*(d+i.leading);return i.dropShadow&&(p+=i.dropShadowDistance),new t(e,i,u,p,l,h,d+i.leading,c,a)}static _measureText(e,i,r){let n=!1;t.experimentalLetterSpacingSupported&&(t.experimentalLetterSpacing?(r.letterSpacing=`${i}px`,r.textLetterSpacing=`${i}px`,n=!0):(r.letterSpacing="0px",r.textLetterSpacing="0px"));let s=r.measureText(e).width;return s>0&&(n?s-=i:s+=(t.graphemeSegmenter(e).length-1)*i),s}static wordWrap(e,i,r=t._canvas){const n=r.getContext("2d",sy);let s=0,a="",o="";const l=Object.create(null),{letterSpacing:h,whiteSpace:c}=i,u=t.collapseSpaces(c),d=t.collapseNewlines(c);let p=!u;const f=i.wordWrapWidth+h,m=t.tokenize(e);for(let e=0;e<m.length;e++){let r=m[e];if(t.isNewline(r)){if(!d){o+=t.addLine(a),p=!u,a="",s=0;continue}r=" "}if(u){const e=t.isBreakingSpace(r),i=t.isBreakingSpace(a[a.length-1]);if(e&&i)continue}const c=t.getFromCache(r,h,l,n);if(c>f)if(""!==a&&(o+=t.addLine(a),a="",s=0),t.canBreakWords(r,i.breakWords)){const e=t.wordWrapSplit(r);for(let c=0;c<e.length;c++){let u=e[c],d=u,m=1;for(;e[c+m];){const n=e[c+m];if(t.canBreakChars(d,n,r,c,i.breakWords))break;u+=n,d=n,m++}c+=m-1;const g=t.getFromCache(u,h,l,n);g+s>f&&(o+=t.addLine(a),p=!1,a="",s=0),a+=u,s+=g}}else{a.length>0&&(o+=t.addLine(a),a="",s=0);const i=e===m.length-1;o+=t.addLine(r,!i),p=!1,a="",s=0}else c+s>f&&(p=!1,o+=t.addLine(a),a="",s=0),(a.length>0||!t.isBreakingSpace(r)||p)&&(a+=r,s+=c)}return o+=t.addLine(a,!1),o}static addLine(e,i=!0){return e=t.trimRight(e),i?`${e}\n`:e}static getFromCache(e,i,r,n){let s=r[e];return"number"!=typeof s&&(s=t._measureText(e,i,n)+i,r[e]=s),s}static collapseSpaces(t){return"normal"===t||"pre-line"===t}static collapseNewlines(t){return"normal"===t}static trimRight(e){if("string"!=typeof e)return"";for(let i=e.length-1;i>=0;i--){const r=e[i];if(!t.isBreakingSpace(r))break;e=e.slice(0,-1)}return e}static isNewline(e){return"string"==typeof e&&t._newlines.includes(e.charCodeAt(0))}static isBreakingSpace(e,i){return"string"==typeof e&&t._breakingSpaces.includes(e.charCodeAt(0))}static tokenize(e){const i=[];let r="";if("string"!=typeof e)return i;for(let n=0;n<e.length;n++){const s=e[n],a=e[n+1];t.isBreakingSpace(s,a)||t.isNewline(s)?(""!==r&&(i.push(r),r=""),i.push(s)):r+=s}return""!==r&&i.push(r),i}static canBreakWords(t,e){return e}static canBreakChars(t,e,i,r,n){return!0}static wordWrapSplit(e){return t.graphemeSegmenter(e)}static measureFont(e){if(t._fonts[e])return t._fonts[e];const i={ascent:0,descent:0,fontSize:0},r=t._canvas,n=t._context;n.font=e;const s=t.METRICS_STRING+t.BASELINE_SYMBOL,a=Math.ceil(n.measureText(s).width);let o=Math.ceil(n.measureText(t.BASELINE_SYMBOL).width);const l=Math.ceil(t.HEIGHT_MULTIPLIER*o);if(o=o*t.BASELINE_MULTIPLIER|0,0===a||0===l)return t._fonts[e]=i,i;r.width=a,r.height=l,n.fillStyle="#f00",n.fillRect(0,0,a,l),n.font=e,n.textBaseline="alphabetic",n.fillStyle="#000",n.fillText(s,0,o);const h=n.getImageData(0,0,a,l).data,c=h.length,u=4*a;let d=0,p=0,f=!1;for(d=0;d<o;++d){for(let t=0;t<u;t+=4)if(255!==h[p+t]){f=!0;break}if(f)break;p+=u}for(i.ascent=o-d,p=c-u,f=!1,d=l;d>o;--d){for(let t=0;t<u;t+=4)if(255!==h[p+t]){f=!0;break}if(f)break;p-=u}return i.descent=d-o,i.fontSize=i.ascent+i.descent,t._fonts[e]=i,i}static clearMetrics(e=""){e?delete t._fonts[e]:t._fonts={}}static get _canvas(){if(!t.__canvas){let e;try{const i=new OffscreenCanvas(0,0);if(i.getContext("2d",sy)?.measureText)return t.__canvas=i,i;e=Jh.ADAPTER.createCanvas()}catch{e=Jh.ADAPTER.createCanvas()}e.width=e.height=10,t.__canvas=e}return t.__canvas}static get _context(){return t.__context||(t.__context=t._canvas.getContext("2d",sy)),t.__context}};ay.METRICS_STRING="|ÉqÅ",ay.BASELINE_SYMBOL="M",ay.BASELINE_MULTIPLIER=1.4,ay.HEIGHT_MULTIPLIER=2,ay.graphemeSegmenter=(()=>{if("function"==typeof Intl?.Segmenter){const t=new Intl.Segmenter;return e=>[...t.segment(e)].map((t=>t.segment))}return t=>[...t]})(),ay.experimentalLetterSpacing=!1,ay._fonts={},ay._newlines=[10,13],ay._breakingSpaces=[9,32,8192,8193,8194,8195,8196,8197,8198,8200,8201,8202,8287,12288];let oy=ay;const ly=["serif","sans-serif","monospace","cursive","fantasy","system-ui"],hy=class t{constructor(t){this.styleID=0,this.reset(),dy(this,t,t)}clone(){const e={};return dy(e,this,t.defaultStyle),new t(e)}reset(){dy(this,t.defaultStyle,t.defaultStyle)}get align(){return this._align}set align(t){this._align!==t&&(this._align=t,this.styleID++)}get breakWords(){return this._breakWords}set breakWords(t){this._breakWords!==t&&(this._breakWords=t,this.styleID++)}get dropShadow(){return this._dropShadow}set dropShadow(t){this._dropShadow!==t&&(this._dropShadow=t,this.styleID++)}get dropShadowAlpha(){return this._dropShadowAlpha}set dropShadowAlpha(t){this._dropShadowAlpha!==t&&(this._dropShadowAlpha=t,this.styleID++)}get dropShadowAngle(){return this._dropShadowAngle}set dropShadowAngle(t){this._dropShadowAngle!==t&&(this._dropShadowAngle=t,this.styleID++)}get dropShadowBlur(){return this._dropShadowBlur}set dropShadowBlur(t){this._dropShadowBlur!==t&&(this._dropShadowBlur=t,this.styleID++)}get dropShadowColor(){return this._dropShadowColor}set dropShadowColor(t){const e=uy(t);this._dropShadowColor!==e&&(this._dropShadowColor=e,this.styleID++)}get dropShadowDistance(){return this._dropShadowDistance}set dropShadowDistance(t){this._dropShadowDistance!==t&&(this._dropShadowDistance=t,this.styleID++)}get fill(){return this._fill}set fill(t){const e=uy(t);this._fill!==e&&(this._fill=e,this.styleID++)}get fillGradientType(){return this._fillGradientType}set fillGradientType(t){this._fillGradientType!==t&&(this._fillGradientType=t,this.styleID++)}get fillGradientStops(){return this._fillGradientStops}set fillGradientStops(t){(function(t,e){if(!Array.isArray(t)||!Array.isArray(e)||t.length!==e.length)return!1;for(let i=0;i<t.length;++i)if(t[i]!==e[i])return!1;return!0})(this._fillGradientStops,t)||(this._fillGradientStops=t,this.styleID++)}get fontFamily(){return this._fontFamily}set fontFamily(t){this.fontFamily!==t&&(this._fontFamily=t,this.styleID++)}get fontSize(){return this._fontSize}set fontSize(t){this._fontSize!==t&&(this._fontSize=t,this.styleID++)}get fontStyle(){return this._fontStyle}set fontStyle(t){this._fontStyle!==t&&(this._fontStyle=t,this.styleID++)}get fontVariant(){return this._fontVariant}set fontVariant(t){this._fontVariant!==t&&(this._fontVariant=t,this.styleID++)}get fontWeight(){return this._fontWeight}set fontWeight(t){this._fontWeight!==t&&(this._fontWeight=t,this.styleID++)}get letterSpacing(){return this._letterSpacing}set letterSpacing(t){this._letterSpacing!==t&&(this._letterSpacing=t,this.styleID++)}get lineHeight(){return this._lineHeight}set lineHeight(t){this._lineHeight!==t&&(this._lineHeight=t,this.styleID++)}get leading(){return this._leading}set leading(t){this._leading!==t&&(this._leading=t,this.styleID++)}get lineJoin(){return this._lineJoin}set lineJoin(t){this._lineJoin!==t&&(this._lineJoin=t,this.styleID++)}get miterLimit(){return this._miterLimit}set miterLimit(t){this._miterLimit!==t&&(this._miterLimit=t,this.styleID++)}get padding(){return this._padding}set padding(t){this._padding!==t&&(this._padding=t,this.styleID++)}get stroke(){return this._stroke}set stroke(t){const e=uy(t);this._stroke!==e&&(this._stroke=e,this.styleID++)}get strokeThickness(){return this._strokeThickness}set strokeThickness(t){this._strokeThickness!==t&&(this._strokeThickness=t,this.styleID++)}get textBaseline(){return this._textBaseline}set textBaseline(t){this._textBaseline!==t&&(this._textBaseline=t,this.styleID++)}get trim(){return this._trim}set trim(t){this._trim!==t&&(this._trim=t,this.styleID++)}get whiteSpace(){return this._whiteSpace}set whiteSpace(t){this._whiteSpace!==t&&(this._whiteSpace=t,this.styleID++)}get wordWrap(){return this._wordWrap}set wordWrap(t){this._wordWrap!==t&&(this._wordWrap=t,this.styleID++)}get wordWrapWidth(){return this._wordWrapWidth}set wordWrapWidth(t){this._wordWrapWidth!==t&&(this._wordWrapWidth=t,this.styleID++)}toFontString(){const t="number"==typeof this.fontSize?`${this.fontSize}px`:this.fontSize;let e=this.fontFamily;Array.isArray(this.fontFamily)||(e=this.fontFamily.split(","));for(let t=e.length-1;t>=0;t--){let i=e[t].trim();!/([\"\'])[^\'\"]+\1/.test(i)&&!ly.includes(i)&&(i=`"${i}"`),e[t]=i}return`${this.fontStyle} ${this.fontVariant} ${this.fontWeight} ${t} ${e.join(",")}`}};hy.defaultStyle={align:"left",breakWords:!1,dropShadow:!1,dropShadowAlpha:1,dropShadowAngle:Math.PI/6,dropShadowBlur:0,dropShadowColor:"black",dropShadowDistance:5,fill:"black",fillGradientType:ny.LINEAR_VERTICAL,fillGradientStops:[],fontFamily:"Arial",fontSize:26,fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",leading:0,letterSpacing:0,lineHeight:0,lineJoin:"miter",miterLimit:10,padding:0,stroke:"black",strokeThickness:0,textBaseline:"alphabetic",trim:!1,whiteSpace:"pre",wordWrap:!1,wordWrapWidth:100};let cy=hy;function uy(t){const e=eu.shared,i=t=>{const i=e.setValue(t);return 1===i.alpha?i.toHex():i.toRgbaString()};return Array.isArray(t)?t.map(i):i(t)}function dy(t,e,i){for(const r in i)Array.isArray(e[r])?t[r]=e[r].slice():t[r]=e[r]}const py={texture:!0,children:!1,baseTexture:!0},fy=class t extends If{constructor(e,i,r){let n=!1;r||(r=Jh.ADAPTER.createCanvas(),n=!0),r.width=3,r.height=3;const s=Qd.from(r);s.orig=new Qu,s.trim=new Qu,super(s),this._ownCanvas=n,this.canvas=r,this.context=r.getContext("2d",{willReadFrequently:!0}),this._resolution=t.defaultResolution??Jh.RESOLUTION,this._autoResolution=t.defaultAutoResolution,this._text=null,this._style=null,this._styleListener=null,this._font="",this.text=e,this.style=i,this.localStyleID=-1}static get experimentalLetterSpacing(){return oy.experimentalLetterSpacing}static set experimentalLetterSpacing(t){_c("7.1.0","Text.experimentalLetterSpacing is deprecated, use TextMetrics.experimentalLetterSpacing"),oy.experimentalLetterSpacing=t}updateText(t){const e=this._style;if(this.localStyleID!==e.styleID&&(this.dirty=!0,this.localStyleID=e.styleID),!this.dirty&&t)return;this._font=this._style.toFontString();const i=this.context,r=oy.measureText(this._text||" ",this._style,this._style.wordWrap,this.canvas),n=r.width,s=r.height,a=r.lines,o=r.lineHeight,l=r.lineWidths,h=r.maxLineWidth,c=r.fontProperties;let u,d;this.canvas.width=Math.ceil(Math.ceil(Math.max(1,n)+2*e.padding)*this._resolution),this.canvas.height=Math.ceil(Math.ceil(Math.max(1,s)+2*e.padding)*this._resolution),i.scale(this._resolution,this._resolution),i.clearRect(0,0,this.canvas.width,this.canvas.height),i.font=this._font,i.lineWidth=e.strokeThickness,i.textBaseline=e.textBaseline,i.lineJoin=e.lineJoin,i.miterLimit=e.miterLimit;const p=e.dropShadow?2:1;for(let t=0;t<p;++t){const n=e.dropShadow&&0===t,p=n?Math.ceil(Math.max(1,s)+2*e.padding):0,f=p*this._resolution;if(n){i.fillStyle="black",i.strokeStyle="black";const t=e.dropShadowColor,r=e.dropShadowBlur*this._resolution,n=e.dropShadowDistance*this._resolution;i.shadowColor=eu.shared.setValue(t).setAlpha(e.dropShadowAlpha).toRgbaString(),i.shadowBlur=r,i.shadowOffsetX=Math.cos(e.dropShadowAngle)*n,i.shadowOffsetY=Math.sin(e.dropShadowAngle)*n+f}else i.fillStyle=this._generateFillStyle(e,a,r),i.strokeStyle=e.stroke,i.shadowColor="black",i.shadowBlur=0,i.shadowOffsetX=0,i.shadowOffsetY=0;let m=(o-c.fontSize)/2;o-c.fontSize<0&&(m=0);for(let t=0;t<a.length;t++)u=e.strokeThickness/2,d=e.strokeThickness/2+t*o+c.ascent+m,"right"===e.align?u+=h-l[t]:"center"===e.align&&(u+=(h-l[t])/2),e.stroke&&e.strokeThickness&&this.drawLetterSpacing(a[t],u+e.padding,d+e.padding-p,!0),e.fill&&this.drawLetterSpacing(a[t],u+e.padding,d+e.padding-p)}this.updateTexture()}drawLetterSpacing(t,e,i,r=!1){const n=this._style.letterSpacing;let s=!1;if(oy.experimentalLetterSpacingSupported&&(oy.experimentalLetterSpacing?(this.context.letterSpacing=`${n}px`,this.context.textLetterSpacing=`${n}px`,s=!0):(this.context.letterSpacing="0px",this.context.textLetterSpacing="0px")),0===n||s)return void(r?this.context.strokeText(t,e,i):this.context.fillText(t,e,i));let a=e;const o=oy.graphemeSegmenter(t);let l=this.context.measureText(t).width,h=0;for(let t=0;t<o.length;++t){const e=o[t];r?this.context.strokeText(e,a,i):this.context.fillText(e,a,i);let s="";for(let e=t+1;e<o.length;++e)s+=o[e];h=this.context.measureText(s).width,a+=l-h+n,l=h}}updateTexture(){const t=this.canvas;if(this._style.trim){const e=function(t){const e=function(t){const{width:e,height:i}=t,r=t.getContext("2d",{willReadFrequently:!0});if(null===r)throw new TypeError("Failed to get canvas 2D context");const n=r.getImageData(0,0,e,i).data;let s=0,a=0,o=e-1,l=i-1;for(;a<i&&vu(n,e,a);)++a;if(a===i)return pu.EMPTY;for(;vu(n,e,l);)--l;for(;xu(n,e,s,a,l);)++s;for(;xu(n,e,o,a,l);)--o;return++o,++l,new pu(s,a,o,l)}(t),{width:i,height:r}=e;let n=null;if(!e.isEmpty()){const s=t.getContext("2d");if(null===s)throw new TypeError("Failed to get canvas 2D context");n=s.getImageData(e.left,e.top,i,r)}return{width:i,height:r,data:n}}(t);e.data&&(t.width=e.width,t.height=e.height,this.context.putImageData(e.data,0,0))}const e=this._texture,i=this._style,r=i.trim?0:i.padding,n=e.baseTexture;e.trim.width=e._frame.width=t.width/this._resolution,e.trim.height=e._frame.height=t.height/this._resolution,e.trim.x=-r,e.trim.y=-r,e.orig.width=e._frame.width-2*r,e.orig.height=e._frame.height-2*r,this._onTextureUpdate(),n.setRealSize(t.width,t.height,this._resolution),e.updateUvs(),this.dirty=!1}_render(t){this._autoResolution&&this._resolution!==t.resolution&&(this._resolution=t.resolution,this.dirty=!0),this.updateText(!0),super._render(t)}updateTransform(){this.updateText(!0),super.updateTransform()}getBounds(t,e){return this.updateText(!0),-1===this._textureID&&(t=!1),super.getBounds(t,e)}getLocalBounds(t){return this.updateText(!0),super.getLocalBounds.call(this,t)}_calculateBounds(){this.calculateVertices(),this._bounds.addQuad(this.vertexData)}_generateFillStyle(t,e,i){const r=t.fill;if(!Array.isArray(r))return r;if(1===r.length)return r[0];let n;const s=t.dropShadow?t.dropShadowDistance:0,a=t.padding||0,o=this.canvas.width/this._resolution-s-2*a,l=this.canvas.height/this._resolution-s-2*a,h=r.
2slice(),c=t.fillGradientStops.slice();if(!c.length){const t=h.length+1;for(let e=1;e<t;++e)c.push(e/t)}if(h.unshift(r[0]),c.unshift(0),h.push(r[r.length-1]),c.push(1),t.fillGradientType===ny.LINEAR_VERTICAL){n=this.context.createLinearGradient(o/2,a,o/2,l+a);const r=i.fontProperties.fontSize+t.strokeThickness;for(let t=0;t<e.length;t++){const s=i.lineHeight*(t-1)+r,a=i.lineHeight*t;let o=a;t>0&&s>a&&(o=(a+s)/2);const u=a+r,d=i.lineHeight*(t+1);let p=u;t+1<e.length&&d<u&&(p=(u+d)/2);const f=(p-o)/l;for(let t=0;t<h.length;t++){let e=0;e="number"==typeof c[t]?c[t]:t/h.length;let i=Math.min(1,Math.max(0,o/l+e*f));i=Number(i.toFixed(5)),n.addColorStop(i,h[t])}}}else{n=this.context.createLinearGradient(a,l/2,o+a,l/2);const t=h.length+1;let e=1;for(let i=0;i<h.length;i++){let r;r="number"==typeof c[i]?c[i]:e/t,n.addColorStop(r,h[i]),e++}}return n}destroy(t){"boolean"==typeof t&&(t={children:t}),t=Object.assign({},py,t),super.destroy(t),this._ownCanvas&&(this.canvas.height=this.canvas.width=0),this.context=null,this.canvas=null,this._style=null}get width(){return this.updateText(!0),Math.abs(this.scale.x)*this._texture.orig.width}set width(t){this.updateText(!0);const e=hu(this.scale.x)||1;this.scale.x=e*t/this._texture.orig.width,this._width=t}get height(){return this.updateText(!0),Math.abs(this.scale.y)*this._texture.orig.height}set height(t){this.updateText(!0);const e=hu(this.scale.y)||1;this.scale.y=e*t/this._texture.orig.height,this._height=t}get style(){return this._style}set style(t){t=t||{},this._style=t instanceof cy?t:new cy(t),this.localStyleID=-1,this.dirty=!0}get text(){return this._text}set text(t){t=String(t??""),this._text!==t&&(this._text=t,this.dirty=!0)}get resolution(){return this._resolution}set resolution(t){this._autoResolution=!1,this._resolution!==t&&(this._resolution=t,this.dirty=!0)}};fy.defaultAutoResolution=!0;let my=fy;class gy{constructor(t){this.maxItemsPerFrame=t,this.itemsLeft=0}beginFrame(){this.itemsLeft=this.maxItemsPerFrame}allowedToUpload(){return this.itemsLeft-- >0}}function yy(t,e){let i=!1;if(t?._textures?.length)for(let r=0;r<t._textures.length;r++)if(t._textures[r]instanceof Qd){const n=t._textures[r].baseTexture;e.includes(n)||(e.push(n),i=!0)}return i}function vy(t,e){if(t.baseTexture instanceof Fu){const i=t.baseTexture;return e.includes(i)||e.push(i),!0}return!1}function xy(t,e){if(t._texture&&t._texture instanceof Qd){const i=t._texture.baseTexture;return e.includes(i)||e.push(i),!0}return!1}function _y(t,e){return e instanceof my&&(e.updateText(!0),!0)}function by(t,e){if(e instanceof cy){const t=e.toFontString();return oy.measureFont(t),!0}return!1}function Sy(t,e){if(t instanceof my){e.includes(t.style)||e.push(t.style),e.includes(t)||e.push(t);const i=t._texture.baseTexture;return e.includes(i)||e.push(i),!0}return!1}function Ey(t,e){return t instanceof cy&&(e.includes(t)||e.push(t),!0)}const wy=class t{constructor(e){this.limiter=new gy(t.uploadsPerFrame),this.renderer=e,this.uploadHookHelper=null,this.queue=[],this.addHooks=[],this.uploadHooks=[],this.completes=[],this.ticking=!1,this.delayedTick=()=>{this.queue&&this.prepareItems()},this.registerFindHook(Sy),this.registerFindHook(Ey),this.registerFindHook(yy),this.registerFindHook(vy),this.registerFindHook(xy),this.registerUploadHook(_y),this.registerUploadHook(by)}upload(t){return new Promise((e=>{t&&this.add(t),this.queue.length?(this.completes.push(e),this.ticking||(this.ticking=!0,nf.system.addOnce(this.tick,this,tf.UTILITY))):e()}))}tick(){setTimeout(this.delayedTick,0)}prepareItems(){for(this.limiter.beginFrame();this.queue.length&&this.limiter.allowedToUpload();){const t=this.queue[0];let e=!1;if(t&&!t._destroyed)for(let i=0,r=this.uploadHooks.length;i<r;i++)if(this.uploadHooks[i](this.uploadHookHelper,t)){this.queue.shift(),e=!0;break}e||this.queue.shift()}if(this.queue.length)nf.system.addOnce(this.tick,this,tf.UTILITY);else{this.ticking=!1;const t=this.completes.slice(0);this.completes.length=0;for(let e=0,i=t.length;e<i;e++)t[e]()}}registerFindHook(t){return t&&this.addHooks.push(t),this}registerUploadHook(t){return t&&this.uploadHooks.push(t),this}add(t){for(let e=0,i=this.addHooks.length;e<i&&!this.addHooks[e](t,this.queue);e++);if(t instanceof Pf)for(let e=t.children.length-1;e>=0;e--)this.add(t.children[e]);return this}destroy(){this.ticking&&nf.system.remove(this.tick,this),this.ticking=!1,this.addHooks=null,this.uploadHooks=null,this.renderer=null,this.completes=null,this.queue=null,this.limiter=null,this.uploadHookHelper=null}};wy.uploadsPerFrame=4;let Ty=wy;function Ay(t,e){return e instanceof Fu&&(e._glTextures[t.CONTEXT_UID]||t.texture.bind(e),!0)}function My(t,e){if(!(e instanceof Yg))return!1;const{geometry:i}=e;e.finishPoly(),i.updateBatches();const{batches:r}=i;for(let e=0;e<r.length;e++){const{texture:i}=r[e].style;i&&Ay(t,i.baseTexture)}return i.batchable||t.geometry.bind(i,e._resolveDirectShader(t)),!0}function Py(t,e){return t instanceof Yg&&(e.push(t),!0)}Object.defineProperties(Jh,{UPLOADS_PER_FRAME:{get(){return Ty.uploadsPerFrame},set(t){_c("7.1.0","settings.UPLOADS_PER_FRAME is deprecated, use prepare.BasePrepare.uploadsPerFrame"),Ty.uploadsPerFrame=t}}});class Cy extends Ty{constructor(t){super(t),this.uploadHookHelper=this.renderer,this.registerFindHook(Py),this.registerUploadHook(Ay),this.registerUploadHook(My)}}Cy.extension={name:"prepare",type:bu.RendererSystem},wu.add(Cy),new Zu;var ky="#version 100\n#define SHADER_NAME Tiling-Sprite-100\n\nprecision lowp float;\n\nattribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\nuniform mat3 translationMatrix;\nuniform mat3 uTransform;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n    gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0
2)).xy, 0.0, 1.0);\n\n    vTextureCoord = (uTransform * vec3(aTextureCoord, 1.0)).xy;\n}\n";const Iy=new nd;class Dy extends Bd{constructor(t){super(t),t.runners.contextChange.add(this),this.quad=new rp,this.state=Pu.for2d()}contextChange(){const t=this.renderer,e={globals:t.globalUniforms};this.simpleShader=Od.from(ky,"#version 100\n#define SHADER_NAME Tiling-Sprite-Simple-100\n\nprecision lowp float;\n\nvarying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform vec4 uColor;\n\nvoid main(void)\n{\n    vec4 texSample = texture2D(uSampler, vTextureCoord);\n    gl_FragColor = texSample * uColor;\n}\n",e),this.shader=t.context.webGLVersion>1?Od.from("#version 300 es\n#define SHADER_NAME Tiling-Sprite-300\n\nprecision lowp float;\n\nin vec2 aVertexPosition;\nin vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\nuniform mat3 translationMatrix;\nuniform mat3 uTransform;\n\nout vec2 vTextureCoord;\n\nvoid main(void)\n{\n    gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n\n    vTextureCoord = (uTransform * vec3(aTextureCoord, 1.0)).xy;\n}\n","#version 300 es\n#define SHADER_NAME Tiling-Sprite-100\n\nprecision lowp float;\n\nin vec2 vTextureCoord;\n\nout vec4 fragmentColor;\n\nuniform sampler2D uSampler;\nuniform vec4 uColor;\nuniform mat3 uMapCoord;\nuniform vec4 uClampFrame;\nuniform vec2 uClampOffset;\n\nvoid main(void)\n{\n    vec2 coord = vTextureCoord + ceil(uClampOffset - vTextureCoord);\n    coord = (uMapCoord * vec3(coord, 1.0)).xy;\n    vec2 unclamped = coord;\n    coord = clamp(coord, uClampFrame.xy, uClampFrame.zw);\n\n    vec4 texSample = texture(uSampler, coord, unclamped == coord ? 0.0f : -32.0f);// lod-bias very negative to force lod 0\n\n    fragmentColor = texSample * uColor;\n}\n",e):Od.from(ky,"#version 100\n#ifdef GL_EXT_shader_texture_lod\n    #extension GL_EXT_shader_texture_lod : enable\n#endif\n#define SHADER_NAME Tiling-Sprite-100\n\nprecision lowp float;\n\nvarying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform vec4 uColor;\nuniform mat3 uMapCoord;\nuniform vec4 uClampFrame;\nuniform vec2 uClampOffset;\n\nvoid main(void)\n{\n    vec2 coord = vTextureCoord + ceil(uClampOffset - vTextureCoord);\n    coord = (uMapCoord * vec3(coord, 1.0)).xy;\n    vec2 unclamped = coord;\n    coord = clamp(coord, uClampFrame.xy, uClampFrame.zw);\n\n    #ifdef GL_EXT_shader_texture_lod\n        vec4 texSample = unclamped == coord\n            ? texture2D(uSampler, coord) \n            : texture2DLodEXT(uSampler, coord, 0);\n    #else\n        vec4 texSample = texture2D(uSampler, coord);\n    #endif\n\n    gl_FragColor = texSample * uColor;\n}\n",e)}render(t){const e=this.renderer,i=this.quad;let r=i.vertices;r[0]=r[6]=t._width*-t.anchor.x,r[1]=r[3]=t._height*-t.anchor.y,r[2]=r[4]=t._width*(1-t.anchor.x),r[5]=r[7]=t._height*(1-t.anchor.y);const n=t.uvRespectAnchor?t.anchor.x:0,s=t.uvRespectAnchor?t.anchor.y:0;r=i.uvs,r[0]=r[6]=-n,r[1]=r[3]=-s,r[2]=r[4]=1-n,r[5]=r[7]=1-s,i.invalidate();const a=t._texture,o=a.baseTexture,l=o.alphaMode>0,h=t.tileTransform.localTransform,c=t.uvMatrix;let u=o.isPowerOfTwo&&a.frame.width===o.width&&a.frame.height===o.height;u&&(o._glTextures[e.CONTEXT_UID]?u=o.wrapMode!==Hh.CLAMP:o.wrapMode===Hh.CLAMP&&(o.wrapMode=Hh.REPEAT));const d=u?this.simpleShader:this.shader,p=a.width,f=a.height,m=t._width,g=t._height;Iy.set(h.a*p/m,h.b*p/g,h.c*f/m,h.d*f/g,h.tx/m,h.ty/g),Iy.invert(),u?Iy.prepend(c.mapCoord):(d.uniforms.uMapCoord=c.mapCoord.toArray(!0),d.uniforms.uClampFrame=c.uClampFrame,d.uniforms.uClampOffset=c.uClampOffset),d.uniforms.uTransform=Iy.toArray(!0),d.uniforms.uColor=eu.shared.setValue(t.tint).premultiply(t.worldAlpha,l).toArray(d.uniforms.uColor),d.uniforms.translationMatrix=t.transform.worldTransform.toArray(!0),d.uniforms.uSampler=a,e.shader.bind(d),e.geometry.bind(i),this.state.blendMode=ru(t.blendMode,l),e.state.set(this.state),e.geometry.draw(this.renderer.gl.TRIANGLES,6,0)}}Dy.extension={name:"tilingSprite",type:bu.RendererPlugin},wu.add(Dy);const Ry=class t{constructor(t,e,i){this.linkedSheets=[],(t instanceof Fu||t instanceof Qd)&&(t={texture:t,data:e,resolutionFilename:i});const{texture:r,data:n,resolutionFilename:s=null,cachePrefix:a=""}=t;this.cachePrefix=a,this._texture=r instanceof Qd?r:null,this.baseTexture=r instanceof Fu?r:this._texture.baseTexture,this.textures={},this.animations={},this.data=n;const o=this.baseTexture.resource;this.resolution=this._updateResolution(s||(o?o.url:null)),this._frames=this.data.frames,this._frameKeys=Object.keys(this._frames),this._batchIndex=0,this._callback=null}_updateResolution(t=null){const{scale:e}=this.data.meta;let i=_u(t,null);return null===i&&(i="number"==typeof e?e:parseFloat(e??"1")),1!==i&&this.baseTexture.setRe
2solution(i),i}parse(){return new Promise((e=>{this._callback=e,this._batchIndex=0,this._frameKeys.length<=t.BATCH_SIZE?(this._processFrames(0),this._processAnimations(),this._parseComplete()):this._nextBatch()}))}_processFrames(e){let i=e;const r=t.BATCH_SIZE;for(;i-e<r&&i<this._frameKeys.length;){const t=this._frameKeys[i],e=this._frames[t],r=e.frame;if(r){let i=null,n=null;const s=!1!==e.trimmed&&e.sourceSize?e.sourceSize:e.frame,a=new Qu(0,0,Math.floor(s.w)/this.resolution,Math.floor(s.h)/this.resolution);i=e.rotated?new Qu(Math.floor(r.x)/this.resolution,Math.floor(r.y)/this.resolution,Math.floor(r.h)/this.resolution,Math.floor(r.w)/this.resolution):new Qu(Math.floor(r.x)/this.resolution,Math.floor(r.y)/this.resolution,Math.floor(r.w)/this.resolution,Math.floor(r.h)/this.resolution),!1!==e.trimmed&&e.spriteSourceSize&&(n=new Qu(Math.floor(e.spriteSourceSize.x)/this.resolution,Math.floor(e.spriteSourceSize.y)/this.resolution,Math.floor(r.w)/this.resolution,Math.floor(r.h)/this.resolution)),this.textures[t]=new Qd(this.baseTexture,i,a,n,e.rotated?2:0,e.anchor,e.borders),Qd.addToCache(this.textures[t],this.cachePrefix+t.toString())}i++}}_processAnimations(){const t=this.data.animations||{};for(const e in t){this.animations[e]=[];for(let i=0;i<t[e].length;i++){const r=t[e][i];this.animations[e].push(this.textures[r])}}}_parseComplete(){const t=this._callback;this._callback=null,this._batchIndex=0,t.call(this,this.textures)}_nextBatch(){this._processFrames(this._batchIndex*t.BATCH_SIZE),this._batchIndex++,setTimeout((()=>{this._batchIndex*t.BATCH_SIZE<this._frameKeys.length?this._nextBatch():(this._processAnimations(),this._parseComplete())}),0)}destroy(t=!1){for(const t in this.textures)this.textures[t].destroy();this._frames=null,this._frameKeys=null,this.data=null,this.textures=null,t&&(this._texture?.destroy(),this.baseTexture.destroy()),this._texture=null,this.baseTexture=null,this.linkedSheets=[]}};Ry.BATCH_SIZE=1e3;let Oy=Ry;const Ly=["jpg","png","jpeg","avif","webp","s3tc","s3tc_sRGB","etc","etc1","pvrtc","atc","astc","bptc"];function Fy(t,e,i){const r={};if(t.forEach((t=>{r[t]=e})),Object.keys(e.textures).forEach((t=>{r[`${e.cachePrefix}${t}`]=e.textures[t]})),!i){const i=Ec.dirname(t[0]);e.linkedSheets.forEach(((t,n)=>{Object.assign(r,Fy([`${i}/${e.data.meta.related_multi_packs[n]}`],t,!0))}))}return r}const By={extension:bu.Asset,cache:{test:t=>t instanceof Oy,getCacheableAssets:(t,e)=>Fy(t,e,!1)},resolver:{test:t=>{const e=t.split("?")[0].split("."),i=e.pop(),r=e.pop();return"json"===i&&Ly.includes(r)},parse:t=>{const e=t.split(".");return{resolution:parseFloat(Jh.RETINA_PREFIX.exec(t)?.[1]??"1"),format:e[e.length-2],src:t}}},loader:{name:"spritesheetLoader",extension:{type:bu.LoadParser,priority:hm.Normal},async testParse(t,e){return".json"===Ec.extname(e.src).toLowerCase()&&!!t.frames},async parse(t,e,i){const{texture:r,imageFilename:n,cachePrefix:s}=e?.data??{};let a,o=Ec.dirname(e.src);if(o&&o.lastIndexOf("/")!==o.length-1&&(o+="/"),r&&r.baseTexture)a=r;else{const r=Km(o+(n??t.meta.image),e.src);a=(await i.load([r]))[r]}const l=new Oy({texture:a.baseTexture,data:t,resolutionFilename:e.src,cachePrefix:s});await l.parse();const h=t?.meta?.related_multi_packs;if(Array.isArray(h)){const t=[];for(const r of h){if("string"!=typeof r)continue;let n=o+r;e.data?.ignoreMultiPack||(n=Km(n,e.src),t.push(i.load({src:n,data:{ignoreMultiPack:!0}})))}const r=await Promise.all(t);l.linkedSheets=r,r.forEach((t=>{t.linkedSheets=[l].concat(l.linkedSheets.filter((e=>e!==t)))}))}return l},unload(t){t.destroy(!0)}}};wu.add(By);class Ny{constructor(){this.info=[],this.common=[],this.page=[],this.char=[],this.kerning=[],this.distanceField=[]}}class Vy{static test(t){return"string"==typeof t&&t.startsWith("info face=")}static parse(t){const e=t.match(/^[a-z]+\s+.+$/gm),i={info:[],common:[],page:[],char:[],chars:[],kerning:[],kernings:[],distanceField:[]};for(const t in e){const r=e[t].match(/^[a-z]+/gm)[0],n=e[t].match(/[a-zA-Z]+=([^\s"']+|"([^"]*)")/gm),s={};for(const t in n){const e=n[t].split("="),i=e[0],r=e[1].replace(/"/gm,""),a=parseFloat(r),o=isNaN(a)?r:a;s[i]=o}i[r].push(s)}const r=new Ny;return i.info.forEach((t=>r.info.push({face:t.face,size:parseInt(t.size,10)}))),i.common.forEach((t=>r.common.push({lineHeight:parseInt(t.lineHeight,10)}))),i.page.forEach((t=>r.page.push({id:parseInt(t.id,10),file:t.file}))),i.char.forEach((t=>r.char.push({id:parseInt(t.id,10),page:parseInt(t.page,10),x:parseInt(t.x,10),y:parseInt(t.y,10),width:parseInt(t.width,10),height:parseInt(t.height,10),xoffset:parseInt(t.xoffset,10),yoffset:parseInt(t.yoffset,10),xadvance:parseInt(t.xadvance,10)}))),i.kerning.forEach((t=>r.kerning.push({first:parseInt(t.first,10),second:parseInt(t.second,10),amount:parseInt(t.amount,10)}))),i.distanceField.forEach((t=>r.distanceField.push({distanceRange:parseInt(t.distanceRange,10),fieldType:t.fieldType}))),r}}class zy{static test(t){const e=t;return"string"!=typeof t&&"getElementsByTagName"in t&&e.getElementsByTagName("page").length&&null!==e.getElementsByTagName("info")[0].getAttribute("face")}static parse(t){const e=new Ny,i=t.getElementsByTagName("info"),r=t.getElementsByTagName("common"),n=t.getElementsByTagName("page"),s=t.getElementsByTagName("char"),a=t.getElementsByTagName("kerning"),o=t.getElementsByTagName("distanceField");for(let t=0;t<i.length;t++)e.info.push({face:i[t].getAttribute("face"),size:parseInt(i[t].getAttribute("size"),10)});for(let t=0;t<r.length;t++)e.common.push({lineHeight:parseInt(r[t].getAttribute("lineHeight"),10)});for(let t=0;t<n.length;t++)e.page.push({id:parseInt(n[t].getAttribute("id"),10)||0,file:n[t].getAttribute("file")});for(let t=0;t<s.length;t++){const i=s[t];e.char.push({id:parseInt(i.getAttribute("id"),10),page:parseInt(i.getAttribute("page"),10)||0,x:parseInt(i.getAttribute("x"),10),y:parseInt(i.getAttribute("y"),10),width:parseInt(i.getAttribute("width"),10),height:parseInt(i.getAttribute("height"),10),xoffset:parseInt(i.getAttribute("xoffset"),10),yoffset:parseInt(i.getAttribute("yoffset"),10),xadvance:parseInt(i.getAttribute("xadvance"),10)})}for(let t=0;t<a.length;t++)e.kerning.push({first:parseInt(a[t].getAttribute("first"),10),second:parseInt(a[t].getAttribute("second"),10),amount:parseInt(a[t].getAttribute("amount"),10)});for(let t=0;t<o.length;
2t++)e.distanceField.push({fieldType:o[t].getAttribute("fieldType"),distanceRange:parseInt(o[t].getAttribute("distanceRange"),10)});return e}}class Gy{static test(t){return!("string"!=typeof t||!t.includes("<font>"))&&zy.test(Jh.ADAPTER.parseXML(t))}static parse(t){return zy.parse(Jh.ADAPTER.parseXML(t))}}const Uy=[Vy,zy,Gy];function Hy(t,e,i,r,n,s,a){const o=i.text,l=i.fontProperties;e.translate(r,n),e.scale(s,s);const h=a.strokeThickness/2,c=-a.strokeThickness/2;if(e.font=a.toFontString(),e.lineWidth=a.strokeThickness,e.textBaseline=a.textBaseline,e.lineJoin=a.lineJoin,e.miterLimit=a.miterLimit,e.fillStyle=function(t,e,i,r,n,s){const a=i.fill;if(!Array.isArray(a))return a;if(1===a.length)return a[0];let o;const l=i.dropShadow?i.dropShadowDistance:0,h=i.padding||0,c=t.width/r-l-2*h,u=t.height/r-l-2*h,d=a.slice(),p=i.fillGradientStops.slice();if(!p.length){const t=d.length+1;for(let e=1;e<t;++e)p.push(e/t)}if(d.unshift(a[0]),p.unshift(0),d.push(a[a.length-1]),p.push(1),i.fillGradientType===ny.LINEAR_VERTICAL){o=e.createLinearGradient(c/2,h,c/2,u+h);let t=0;const r=(s.fontProperties.fontSize+i.strokeThickness)/u;for(let e=0;e<n.length;e++){const i=s.lineHeight*e;for(let e=0;e<d.length;e++){let n=0;n="number"==typeof p[e]?p[e]:e/d.length;const s=i/u+n*r;let a=Math.max(t,s);a=Math.min(a,1),o.addColorStop(a,d[e]),t=a}}}else{o=e.createLinearGradient(h,u/2,c+h,u/2);const t=d.length+1;let i=1;for(let e=0;e<d.length;e++){let r;r="number"==typeof p[e]?p[e]:i/t,o.addColorStop(r,d[e]),i++}}return o}(t,e,a,s,[o],i),e.strokeStyle=a.stroke,a.dropShadow){const t=a.dropShadowColor,i=a.dropShadowBlur*s,r=a.dropShadowDistance*s;e.shadowColor=eu.shared.setValue(t).setAlpha(a.dropShadowAlpha).toRgbaString(),e.shadowBlur=i,e.shadowOffsetX=Math.cos(a.dropShadowAngle)*r,e.shadowOffsetY=Math.sin(a.dropShadowAngle)*r}else e.shadowColor="black",e.shadowBlur=0,e.shadowOffsetX=0,e.shadowOffsetY=0;a.stroke&&a.strokeThickness&&e.strokeText(o,h,c+i.lineHeight-l.descent),a.fill&&e.fillText(o,h,c+i.lineHeight-l.descent),e.setTransform(1,0,0,1,0,0),e.fillStyle="rgba(0, 0, 0, 0)"}function jy(t){return Array.from?Array.from(t):t.split("")}function Wy(t){return t.codePointAt?t.codePointAt(0):t.charCodeAt(0)}const Xy=class t{constructor(t,e,i){const[r]=t.info,[n]=t.common,[s]=t.page,[a]=t.distanceField,o=_u(s.file),l={};this._ownsTextures=i,this.font=r.face,this.size=r.size,this.lineHeight=n.lineHeight/o,this.chars={},this.pageTextures=l;for(let i=0;i<t.page.length;i++){const{id:r,file:n}=t.page[i];l[r]=e instanceof Array?e[i]:e[n],a?.fieldType&&"none"!==a.fieldType&&(l[r].baseTexture.alphaMode=Wh.NO_PREMULTIPLIED_ALPHA,l[r].baseTexture.mipmap=jh.OFF)}for(let e=0;e<t.char.length;e++){const{id:i,page:r}=t.char[e];let{x:n,y:s,width:a,height:h,xoffset:c,yoffset:u,xadvance:d}=t.char[e];n/=o,s/=o,a/=o,h/=o,c/=o,u/=o,d/=o;const p=new Qu(n+l[r].frame.x/o,s+l[r].frame.y/o,a,h);this.chars[i]={xOffset:c,yOffset:u,xAdvance:d,kerning:{},texture:new Qd(l[r].baseTexture,p),page:r}}for(let e=0;e<t.kerning.length;e++){let{first:i,second:r,amount:n}=t.kerning[e];i/=o,r/=o,n/=o,this.chars[r]&&(this.chars[r].kerning[i]=n)}this.distanceFieldRange=a?.distanceRange,this.distanceFieldType=a?.fieldType?.toLowerCase()??"none"}destroy(){for(const t in this.chars)this.chars[t].texture.destroy(),this.chars[t].texture=null;for(const t in this.pageTextures)this._ownsTextures&&this.pageTextures[t].destroy(!0),this.pageTextures[t]=null;this.chars=null,this.pageTextures=null}static install(e,i,r){let n;if(e instanceof Ny)n=e;else{const t=function(t){for(let e=0;e<Uy.length;e++)if(Uy[e].test(t))return Uy[e];return null}(e);if(!t)throw new Error("Unrecognized data format for font.");n=t.parse(e)}i instanceof Qd&&(i=[i]);const s=new t(n,i,r);return t.available[s.font]=s,s}static uninstall(e){const i=t.available[e];if(!i)throw new Error(`No font found named '${e}'`);i.destroy(),delete t.available[e]}static from(e,i,r){if(!e)throw new Error("[BitmapFont] Property `name` is required.");const{chars:n,padding:s,resolution:a,textureWidth:o,textureHeight:l,...h}=Object.assign({},t.defaultOptions,r),c=function(t){"string"==typeof t&&(t=[t]);const e=[];for(let i=0,r=t.length;i<r;i++){const r=t[i];if(Array.isArray(r)){if(2!==r.length)throw new Error(`[BitmapFont]: Invalid character range length, expecting 2 got ${r.length}.`);
2const t=r[0].charCodeAt(0),i=r[1].charCodeAt(0);if(i<t)throw new Error("[BitmapFont]: Invalid character range.");for(let r=t,n=i;r<=n;r++)e.push(String.fromCharCode(r))}else e.push(...jy(r))}if(0===e.length)throw new Error("[BitmapFont]: Empty set when resolving characters.");return e}(n),u=i instanceof cy?i:new cy(i),d=o,p=new Ny;p.info[0]={face:u.fontFamily,size:u.fontSize},p.common[0]={lineHeight:u.fontSize};let f,m,g,y=0,v=0,x=0;const _=[],b=[];for(let t=0;t<c.length;t++){f||(f=Jh.ADAPTER.createCanvas(),f.width=o,f.height=l,m=f.getContext("2d"),g=new Fu(f,{resolution:a,...h}),_.push(g),b.push(new Qd(g)),p.page.push({id:b.length-1,file:""}));const e=c[t],i=oy.measureText(e,u,!1,f),r=i.width,n=Math.ceil(i.height),S=Math.ceil(("italic"===u.fontStyle?2:1)*r);if(v>=l-n*a){if(0===v)throw new Error(`[BitmapFont] textureHeight ${l}px is too small (fontFamily: '${u.fontFamily}', fontSize: ${u.fontSize}px, char: '${e}')`);--t,f=null,m=null,g=null,v=0,y=0,x=0;continue}if(x=Math.max(n+i.fontProperties.descent,x),S*a+y>=d){if(0===y)throw new Error(`[BitmapFont] textureWidth ${o}px is too small (fontFamily: '${u.fontFamily}', fontSize: ${u.fontSize}px, char: '${e}')`);--t,v+=x*a,v=Math.ceil(v),y=0,x=0;continue}Hy(f,m,i,y,v,a,u);const E=Wy(i.text);p.char.push({id:E,page:b.length-1,x:y/a,y:v/a,width:S,height:n,xoffset:0,yoffset:0,xadvance:r-(u.dropShadow?u.dropShadowDistance:0)-(u.stroke?u.strokeThickness:0)}),y+=(S+2*s)*a,y=Math.ceil(y)}if(!r?.skipKerning)for(let t=0,e=c.length;t<e;t++){const i=c[t];for(let t=0;t<e;t++){const e=c[t],r=m.measureText(i).width,n=m.measureText(e).width,s=m.measureText(i+e).width-(r+n);s&&p.kerning.push({first:Wy(i),second:Wy(e),amount:s})}}const S=new t(p,b,!0);return void 0!==t.available[e]&&t.uninstall(e),t.available[e]=S,S}};Xy.ALPHA=[["a","z"],["A","Z"]," "],Xy.NUMERIC=[["0","9"]],Xy.ALPHANUMERIC=[["a","z"],["A","Z"],["0","9"]," "],Xy.ASCII=[[" ","~"]],Xy.defaultOptions={resolution:1,textureWidth:512,textureHeight:512,padding:4,chars:Xy.ALPHANUMERIC},Xy.available={};let $y=Xy;const Yy=[],qy=[],Ky=[];(class t extends Pf{constructor(e,i={}){super();const{align:r,tint:n,maxWidth:s,letterSpacing:a,fontName:o,fontSize:l}=Object.assign({},t.styleDefaults,i);if(!$y.available[o])throw new Error(`Missing BitmapFont "${o}"`);this._activePagesMeshData=[],this._textWidth=0,this._textHeight=0,this._align=r,this._tintColor=new eu(n),this._font=void 0,this._fontName=o,this._fontSize=l,this.text=e,this._maxWidth=s,this._maxLineHeight=0,this._letterSpacing=a,this._anchor=new pd((()=>{this.dirty=!0}),this,0,0),this._roundPixels=Jh.ROUND_PIXELS,this.dirty=!0,this._resolution=Jh.RESOLUTION,this._autoResolution=!0,this._textureCache={}}updateText(){const t=$y.available[this._fontName],e=this.fontSize,i=e/t.size,r=new Zu,n=[],s=[],a=[],o=jy(this._text.replace(/(?:\r\n|\r)/g,"\n")||" "),l=this._maxWidth*t.size/e,h="none"===t.distanceFieldType?Yy:qy;let c=null,u=0,d=0,p=0,f=-1,m=0,g=0,y=0,v=0;for(let e=0;e<o.length;e++){const i=o[e],h=Wy(i);if(/(?:\s)/.test(i)&&(f=e,m=u,v++),"\r"===i||"\n"===i){s.push(u),a.push(-1),d=Math.max(d,u),++p,++g,r.x=0,r.y+=t.lineHeight,c=null,v=0;continue}const x=t.chars[h];if(!x)continue;c&&x.kerning[c]&&(r.x+=x.kerning[c]);const _=Ky.pop()||{texture:Qd.EMPTY,line:0,charCode:0,prevSpaces:0,position:new Zu};_.texture=x.texture,_.line=p,_.charCode=h,_.position.x=Math.round(r.x+x.xOffset+this._letterSpacing/2),_.position.y=Math.round(r.y+x.yOffset),_.prevSpaces=v,n.push(_),u=_.position.x+Math.max(x.xAdvance-x.xOffset,x.texture.orig.width),r.x+=x.xAdvance+this._letterSpacing,y=Math.max(y,x.yOffset+x.texture.height),c=h,-1!==f&&l>0&&r.x>l&&(++g,lu(n,1+f-g,1+e-f),e=f,f=-1,s.push(m),a.push(n.length>0?n[n.length-1].prevSpaces:0),d=Math.max(d,m),p++,r.x=0,r.y+=t.lineHeight,c=null,v=0)}const x=o[o.length-1];"\r"!==x&&"\n"!==x&&(/(?:\s)/.test(x)&&(u=m),s.push(u),d=Math.max(d,u),a.push(-1));const _=[];for(let t=0;t<=p;t++){let e=0;"right"===this._align?e=d-s[t]:"center"===this._align?e=(d-s[t])/2:"justify"===this._align&&(e=a[t]<0?0:(d-s[t])/a[t]),_.push(e)}const b=n.length,S={},E=[],w=this._activePagesMeshData;h.push(...w);for(let e=0;e<b;e++){const i=n[e].texture,r=i.baseTexture.uid;if(!S[r]){let e=h.pop();if(!e){const i=new ty;let r,n;"none"===t.distanceFieldType?(r=new ey(Qd.EMPTY),n=Fh.NORMAL):(r=new ey(Qd.EMPTY,{program:Id.from("// Mesh material default fragment\r\nattribute vec2 aVertexPosition;\r\nattribute vec2 aTextureCoord;\r\n\r\nuniform mat3 projectionMatrix;\r\nuniform mat3 translationMatrix;\r\nuniform mat3 uTextureMatrix;\r\n\r\nvarying vec2 vTextureCoord;\r\n\r\nvoid main(void)\r\n{\r\n    gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0
2)).xy, 0.0, 1.0);\r\n\r\n    vTextureCoord = (uTextureMatrix * vec3(aTextureCoord, 1.0)).xy;\r\n}\r\n","// Pixi texture info\r\nvarying vec2 vTextureCoord;\r\nuniform sampler2D uSampler;\r\n\r\n// Tint\r\nuniform vec4 uColor;\r\n\r\n// on 2D applications fwidth is screenScale / glyphAtlasScale * distanceFieldRange\r\nuniform float uFWidth;\r\n\r\nvoid main(void) {\r\n\r\n  // To stack MSDF and SDF we need a non-pre-multiplied-alpha texture.\r\n  vec4 texColor = texture2D(uSampler, vTextureCoord);\r\n\r\n  // MSDF\r\n  float median = texColor.r + texColor.g + texColor.b -\r\n                  min(texColor.r, min(texColor.g, texColor.b)) -\r\n                  max(texColor.r, max(texColor.g, texColor.b));\r\n  // SDF\r\n  median = min(median, texColor.a);\r\n\r\n  float screenPxDistance = uFWidth * (median - 0.5);\r\n  float alpha = clamp(screenPxDistance + 0.5, 0.0, 1.0);\r\n  if (median < 0.01) {\r\n    alpha = 0.0;\r\n  } else if (median > 0.99) {\r\n    alpha = 1.0;\r\n  }\r\n\r\n  // Gamma correction for coverage-like alpha\r\n  float luma = dot(uColor.rgb, vec3(0.299, 0.587, 0.114));\r\n  float gamma = mix(1.0, 1.0 / 2.2, luma);\r\n  float coverage = pow(uColor.a * alpha, gamma);  \r\n\r\n  // NPM Textures, NPM outputs\r\n  gl_FragColor = vec4(uColor.rgb, coverage);\r\n}\r\n"),uniforms:{uFWidth:0}}),n=Fh.NORMAL_NPM);const s=new Qg(i,r);s.blendMode=n,e={index:0,indexCount:0,vertexCount:0,uvsCount:0,total:0,mesh:s,vertices:null,uvs:null,indices:null}}e.index=0,e.indexCount=0,e.vertexCount=0,e.uvsCount=0,e.total=0;const{_textureCache:n}=this;n[r]=n[r]||new Qd(i.baseTexture),e.mesh.texture=n[r],e.mesh.tint=this._tintColor.value,E.push(e),S[r]=e}S[r].total++}for(let t=0;t<w.length;t++)E.includes(w[t])||this.removeChild(w[t].mesh);for(let t=0;t<E.length;t++)E[t].mesh.parent!==this&&this.addChild(E[t].mesh);this._activePagesMeshData=E;for(const t in S){const e=S[t],i=e.total;if(!(e.indices?.length>6*i)||e.vertices.length<2*Qg.BATCHABLE_SIZE)e.vertices=new Float32Array(8*i),e.uvs=new Float32Array(8*i),e.indices=new Uint16Array(6*i);else{const t=e.total,i=e.vertices;for(let e=4*t*2;e<i.length;e++)i[e]=0}e.mesh.size=6*i}for(let t=0;t<b;t++){const e=n[t];let r=e.position.x+_[e.line]*("justify"===this._align?e.prevSpaces:1);this._roundPixels&&(r=Math.round(r));const s=r*i,a=e.position.y*i,o=e.texture,l=S[o.baseTexture.uid],h=o.frame,c=o._uvs,u=l.index++;l.indices[6*u+0]=0+4*u,l.indices[6*u+1]=1+4*u,l.indices[6*u+2]=2+4*u,l.indices[6*u+3]=0+4*u,l.indices[6*u+4]=2+4*u,l.indices[6*u+5]=3+4*u,l.vertices[8*u+0]=s,l.vertices[8*u+1]=a,l.vertices[8*u+2]=s+h.width*i,l.vertices[8*u+3]=a,l.vertices[8*u+4]=s+h.width*i,l.vertices[8*u+5]=a+h.height*i,l.vertices[8*u+6]=s,l.vertices[8*u+7]=a+h.height*i,l.uvs[8*u+0]=c.x0,l.uvs[8*u+1]=c.y0,l.uvs[8*u+2]=c.x1,l.uvs[8*u+3]=c.y1,l.uvs[8*u+4]=c.x2,l.uvs[8*u+5]=c.y2,l.uvs[8*u+6]=c.x3,l.uvs[8*u+7]=c.y3}this._textWidth=d*i,this._textHeight=(r.y+t.lineHeight)*i;for(const t in S){const e=S[t];if(0!==this.anchor.x||0!==this.anchor.y){let t=0;const i=this._textWidth*this.anchor.x,r=this._textHeight*this.anchor.y;for(let n=0;n<e.total;n++)e.vertices[t++]-=i,e.vertices[t++]-=r,e.vertices[t++]-=i,e.vertices[t++]-=r,e.vertices[t++]-=i,e.vertices[t++]-=r,e.vertices[t++]-=i,e.vertices[t++]-=r}this._maxLineHeight=y*i;const r=e.mesh.geometry.getBuffer("aVertexPosition"),n=e.mesh.geometry.getBuffer("aTextureCoord"),s=e.mesh.geometry.getIndex();r.data=e.vertices,n.data=e.uvs,s.data=e.indices,r.update(),n.update(),s.update()}for(let t=0;t<n.length;t++)Ky.push(n[t]);this._font=t,this.dirty=!1}updateTransform(){this.validate(),this.containerUpdateTransform()}_render(t){this._autoResolution&&this._resolution!==t.resolution&&(this._resolution=t.resolution,this.dirty=!0);const{distanceFieldRange:e,distanceFieldType:i,size:r}=$y.available[this._fontName];if("none"!==i){const{a:i,b:n,c:s,d:a}=this.worldTransform,o=Math.sqrt(i*i+n*n),l=Math.sqrt(s*s+a*a),h=(Math.abs(o)+Math.abs(l))/2,c=this.fontSize/r,u=t._view.resolution;for(const t of this._activePagesMeshData)t.mesh.shader.uniforms.uFWidth=h*e*c*u}super._render(t)}getLocalBounds(){return this.validate(),super.getLocalBounds()}validate(){const t=$y.available[this._fontName];if(!t)throw new Error(`Missing BitmapFont "${this._fontName}"`);this._font!==t&&(this.dirty=!0),this.dirty&&this.updateText()}get tint(){return this._tintColor.value}set tint(t){if(this.tint!==t){this._tintColor.setValue(t);for(let e=0;e<this._activePagesMeshData.length;e++)this._activePagesMeshData[e].mesh.tint=t}}get align(){return this._align}set align(t){this._align!==t&&(this._align=t,this.dirty=!0)}get fontName(){return this._fontName}set fontName(t){if(!$y.available[t])throw new Error(`Missing BitmapFont "${t}"`);this._fontName!==t&&(this._fontName=t,this.dirty=!0)}get fontSize(){return this._fontSize??$y.available[this._fontName].size}set fontSize(t){this._fontSize!==t&&(this._fontSize=t,this.dirty=!0)}get anchor(){return this._anchor}
2set anchor(t){"number"==typeof t?this._anchor.set(t):this._anchor.copyFrom(t)}get text(){return this._text}set text(t){t=String(t??""),this._text!==t&&(this._text=t,this.dirty=!0)}get maxWidth(){return this._maxWidth}set maxWidth(t){this._maxWidth!==t&&(this._maxWidth=t,this.dirty=!0)}get maxLineHeight(){return this.validate(),this._maxLineHeight}get textWidth(){return this.validate(),this._textWidth}get letterSpacing(){return this._letterSpacing}set letterSpacing(t){this._letterSpacing!==t&&(this._letterSpacing=t,this.dirty=!0)}get roundPixels(){return this._roundPixels}set roundPixels(t){t!==this._roundPixels&&(this._roundPixels=t,this.dirty=!0)}get textHeight(){return this.validate(),this._textHeight}get resolution(){return this._resolution}set resolution(t){this._autoResolution=!1,this._resolution!==t&&(this._resolution=t,this.dirty=!0)}destroy(t){const{_textureCache:e}=this,i="none"===$y.available[this._fontName].distanceFieldType?Yy:qy;i.push(...this._activePagesMeshData);for(const t of this._activePagesMeshData)this.removeChild(t.mesh);this._activePagesMeshData=[],i.filter((t=>e[t.mesh.texture.baseTexture.uid])).forEach((t=>{t.mesh.texture=Qd.EMPTY}));for(const t in e)e[t].destroy(),delete e[t];this._font=null,this._tintColor=null,this._textureCache=null,super.destroy(t)}}).styleDefaults={align:"left",tint:16777215,maxWidth:0,letterSpacing:0};const Zy=[".xml",".fnt"],Jy={extension:{type:bu.LoadParser,priority:hm.Normal},name:"loadBitmapFont",test(t){return Zy.includes(Ec.extname(t).toLowerCase())},async testParse(t){return Vy.test(t)||Gy.test(t)},async parse(t,e,i){const r=Vy.test(t)?Vy.parse(t):Gy.parse(t),{src:n}=e,{page:s}=r,a=[];for(let t=0;t<s.length;++t){const e=s[t].file;let i=Ec.join(Ec.dirname(n),e);i=Km(i,n),a.push(i)}const o=await i.load(a),l=a.map((t=>o[t]));return $y.install(r,l,!0)},async load(t,e){return(await Jh.ADAPTER.fetch(t)).text()},unload(t){t.destroy()}};wu.add(Jy);const Qy=class t extends cy{constructor(){super(...arguments),this._fonts=[],this._overrides=[],this._stylesheet="",this.fontsDirty=!1}static from(e){return new t(Object.keys(t.defaultOptions).reduce(((t,i)=>({...t,[i]:e[i]})),{}))}cleanFonts(){this._fonts.length>0&&(this._fonts.forEach((e=>{URL.revokeObjectURL(e.src),e.refs--,0===e.refs&&(e.fontFace&&document.fonts.delete(e.fontFace),delete t.availableFonts[e.originalUrl])})),this.fontFamily="Arial",this._fonts.length=0,this.styleID++,this.fontsDirty=!0)}loadFont(e,i={}){const{availableFonts:r}=t;if(r[e]){const t=r[e];return this._fonts.push(t),t.refs++,this.styleID++,this.fontsDirty=!0,Promise.resolve()}return Jh.ADAPTER.fetch(e).then((t=>t.blob())).then((async t=>new Promise(((e,i)=>{const r=URL.createObjectURL(t),n=new FileReader;n.onload=()=>e([r,n.result]),n.onerror=i,n.readAsDataURL(t)})))).then((async([t,n])=>{const s=Object.assign({family:Ec.basename(e,Ec.extname(e)),weight:"normal",style:"normal",display:"auto",src:t,dataSrc:n,refs:1,originalUrl:e,fontFace:null},i);r[e]=s,this._fonts.push(s),this.styleID++;const a=new FontFace(s.family,`url(${s.src})`,{weight:s.weight,style:s.style,display:s.display});s.fontFace=a,await a.load(),document.fonts.add(a),await document.fonts.ready,this.styleID++,this.fontsDirty=!0}))}addOverride(...t){const e=t.filter((t=>!this._overrides.includes(t)));e.length>0&&(this._overrides.push(...e),this.styleID++)}removeOverride(...t){const e=t.filter((t=>this._overrides.includes(t)));e.length>0&&(this._overrides=this._overrides.filter((t=>!e.includes(t))),this.styleID++)}toCSS(t){return[`transform: scale(${t})`,"transform-origin: top left","display: inline-block",`color: ${this.normalizeColor(this.fill)}`,`font-size: ${this.fontSize}px`,`font-family: ${this.fontFamily}`,`font-weight: ${this.fontWeight}`,`font-style: ${this.fontStyle}`,`font-variant: ${this.fontVariant}`,`letter-spacing: ${this.letterSpacing}px`,`text-align: ${this.align}`,`padding: ${this.padding}px`,`white-space: ${this.whiteSpace}`,...this.lineHeight?[`line-height: ${this.lineHeight}px`]:[],...this.wordWrap?["word-wrap: "+(this.breakWords?"break-all":"break-word"),`max-width: ${this.wordWrapWidth}px`]:[],...this.strokeThickness?[`-webkit-text-stroke-width: ${this.strokeThickness}px`,`-webkit-text-stroke-color: ${this.normalizeColor(this.stroke)}`,`text-stroke-width: ${this.strokeThickness}px`,`text-stroke-color: ${this.normalizeColor(this.stroke)}`,"paint-order: stroke"]:[],...this.dropShadow?[this.dropShadowToCSS()]:[],...this._overrides].join(";")}toGlobalCSS(){return this._fonts.reduce(((t,e)=>`${t}\n            @font-face {\n                font-family: "${e.family}";\n                src: url('${e.dataSrc}');
2\n                font-weight: ${e.weight};\n                font-style: ${e.style};\n                font-display: ${e.display};\n            }`),this._stylesheet)}get stylesheet(){return this._stylesheet}set stylesheet(t){this._stylesheet!==t&&(this._stylesheet=t,this.styleID++)}normalizeColor(t){return Array.isArray(t)&&(e=t,_c("7.2.0","utils.rgb2hex is deprecated, use Color#toNumber instead"),t=eu.shared.setValue(e).toNumber()),"number"==typeof t?function(t){return _c("7.2.0","utils.hex2string is deprecated, use Color#toHex instead"),eu.shared.setValue(t).toHex()}(t):t;var e}dropShadowToCSS(){let t=this.normalizeColor(this.dropShadowColor);const e=this.dropShadowAlpha,i=Math.round(Math.cos(this.dropShadowAngle)*this.dropShadowDistance),r=Math.round(Math.sin(this.dropShadowAngle)*this.dropShadowDistance);t.startsWith("#")&&e<1&&(t+=(255*e|0).toString(16).padStart(2,"0"));const n=`${i}px ${r}px`;return this.dropShadowBlur>0?`text-shadow: ${n} ${this.dropShadowBlur}px ${t}`:`text-shadow: ${n} ${t}`}reset(){Object.assign(this,t.defaultOptions)}onBeforeDraw(){const{fontsDirty:t}=this;return this.fontsDirty=!1,this.isSafari&&this._fonts.length>0&&t?new Promise((t=>setTimeout(t,100))):Promise.resolve()}get isSafari(){const{userAgent:t}=Jh.ADAPTER.getNavigator();return/^((?!chrome|android).)*safari/i.test(t)}set fillGradientStops(t){console.warn("[HTMLTextStyle] fillGradientStops is not supported by HTMLText")}get fillGradientStops(){return super.fillGradientStops}set fillGradientType(t){console.warn("[HTMLTextStyle] fillGradientType is not supported by HTMLText")}get fillGradientType(){return super.fillGradientType}set miterLimit(t){console.warn("[HTMLTextStyle] miterLimit is not supported by HTMLText")}get miterLimit(){return super.miterLimit}set trim(t){console.warn("[HTMLTextStyle] trim is not supported by HTMLText")}get trim(){return super.trim}set textBaseline(t){console.warn("[HTMLTextStyle] textBaseline is not supported by HTMLText")}get textBaseline(){return super.textBaseline}set leading(t){console.warn("[HTMLTextStyle] leading is not supported by HTMLText")}get leading(){return super.leading}set lineJoin(t){console.warn("[HTMLTextStyle] lineJoin is not supported by HTMLText")}get lineJoin(){return super.lineJoin}};Qy.availableFonts={},Qy.defaultOptions={align:"left",breakWords:!1,dropShadow:!1,dropShadowAlpha:1,dropShadowAngle:Math.PI/6,dropShadowBlur:0,dropShadowColor:"black",dropShadowDistance:5,fill:"black",fontFamily:"Arial",fontSize:26,fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",letterSpacing:0,lineHeight:0,padding:0,stroke:"black",strokeThickness:0,whiteSpace:"normal",wordWrap:!1,wordWrapWidth:100};let tv=Qy;const ev=class t extends If{constructor(e="",i={}){super(Qd.EMPTY),this._text=null,this._style=null,this._autoResolution=!0,this.localStyleID=-1,this.dirty=!1,this._updateID=0,this.ownsStyle=!1;const r=new Image,n=Qd.from(r,{scaleMode:Jh.SCALE_MODE,resourceOptions:{autoLoad:!1}});n.orig=new Qu,n.trim=new Qu,this.texture=n;const s="http://www.w3.org/2000/svg",a="http://www.w3.org/1999/xhtml",o=document.createElementNS(s,"svg"),l=document.createElementNS(s,"foreignObject"),h=document.createElementNS(a,"div"),c=document.createElementNS(a,"style");l.setAttribute("width","10000"),l.setAttribute("height","10000"),l.style.overflow="hidden",o.appendChild(l),this.maxWidth=t.defaultMaxWidth,this.maxHeight=t.defaultMaxHeight,this._domElement=h,this._styleElement=c,this._svgRoot=o,this._foreignObject=l,this._foreignObject.appendChild(c),this._foreignObject.appendChild(h),this._image=r,this._loadImage=new Image,this._autoResolution=t.defaultAutoResolution,this._resolution=t.defaultResolution??Jh.RESOLUTION,this.text=e,this.style=i}measureText(t){const{text:e,style:i,resolution:r}=Object.assign({text:this._text,style:this._style,resolution:this._resolution},t);Object.assign(this._domElement,{innerHTML:e,style:i.toCSS(r)}),this._styleElement.textContent=i.toGlobalCSS(),document.body.appendChild(this._svgRoot);const n=this._domElement.getBoundingClientRect();this._svgRoot.remove();const{width:s,height:a}=n;(s>this.maxWidth||a>this.maxHeight)&&console.warn("[HTMLText] Large expanse of text, increase HTMLText.maxWidth or HTMLText.maxHeight property.");const o=Math.min(this.maxWidth,Math.ceil(s)),l=Math.min(this.maxHeight,Math.ceil(a));return this._svgRoot.setAttribute("width",o.toString()),this._svgRoot.setAttribute("height",l.toString()),e!==this._text&&(this._domElement.innerHTML=this._text),i!==this._style&&(Object.assign(this._domElement,{style:this._style?.toCSS(r)}),this._styleElement.textContent=this._style?.toGlobalCSS()),{width:o+2*i.padding,height:l+2*i.padding}}async updateText(t=!0){const{style:e,_image:i,_loadImage:r}=this;if(this.localStyleID!==e.styleID&&(this.dirty=!0,this.localStyleID=e.styleID),!this.dirty&&t)return;const{width:n,height:s}=this.measureText();i.width=r.width=Math.ceil(Math.max(1,n)),i.height=r.height=Math.ceil(Math.max(1,s)),this._updateID++;const a=this._updateID;await new Promise((t=>{r.onload=async()=>{a<this._updateID||(await e.onBeforeDraw(),i.src=r.src,r.onload=null,r.src="",this.updateTexture()),t()};const n=(new XMLSerializer).serializeToString(this._svgRoot);r.src=`data:image/svg+xml;charset=utf8,${encodeURIComponent(n)}`}))}get source(){return this._image}updateTexture(){const{style:t,texture:e,_image:i,resolution:r}=this,{padding:n}=t,{baseTexture:s}=e;e.trim.width=e._frame.width=i.width/r,e.trim.height=e._frame.height=i.height/r,e.trim.x=-n,e.trim.y=-n,e.orig.width=e._frame.width-2*n,e.orig.height=e._frame.height-2*n,this._onTextureUpdate(),s.setRealSize(i.width,i.height,r),this.dirty=!1}_render(t){this._autoResolution&&this._resolution!==t.resolution&&(this._resolution=t.resolution,this.dirty=!0),this.updateText(!0),super._render(t)}_renderCanvas(t){this._autoResolution&&this._resolution!==t.resolution&&(this._resolution=t.resolution,this.dirty=!0),this.updateText(!0),super._renderCanvas(t)}getLocalBounds(t){return this.updateText(!0),super.getLocalBounds(t)}_calculateBounds(){this.updateText(!0),this.calculateVertices(),this._bounds.addQuad(this.vertexData)}_onStyleChange(){this.dirty=!0}destroy(e){"boolean"==typeof e&&(e={children:e}),e=Object.assign({},t.defaultDestroyOptions,e),super.destroy(e);const i=null;this.ownsStyle&&this._style?.cleanFonts(),this._style=i,this._svgRoot?.remove(),this._svgRoot=i,this._domElement?.remove(),this._domElement=i,this._foreignObject?.remove(),this._foreignObject=i,this._styleElement?.remove(),this._styleElement=i,this._loadImage.src="",this._loadImage.onload=null,this._loadImage=i,this._image.src="",this._image=i}get width(){return this.updateText(!0),Math.abs(this.scale.x)*this._image.width/this.resolution}set width(t){this.updateText(!0);const e=hu(this.scale.x)||1;this.scale.x=e*t/this._image.width/this.resolution,this._width=t}get height(){return this.updateText(!0),Math.abs(this.scale.y)*this._image.height/this.resolution}set height(t){this.updateText(!0);const e=hu(this.scale.y)||1;this.scale.y=e*t/this._image.height/this.resolution,this._height=t}get style(){return this._style}set style(t){this._style!==t&&((t=t||{})instanceof tv?(this.ownsStyle=!1,this._style=t):t instanceof cy?(console.warn("[HTMLText] Cloning TextStyle, if this is not what you want, use HTMLTextStyle"),this.ownsStyle=!0,this._style=tv.from(t)):(this.ownsStyle=!0,this._style=new tv
2(t)),this.localStyleID=-1,this.dirty=!0)}get text(){return this._text}set text(t){t=String(""===t||null==t?" ":t),t=this.sanitiseText(t),this._text!==t&&(this._text=t,this.dirty=!0)}get resolution(){return this._resolution}set resolution(t){this._autoResolution=!1,this._resolution!==t&&(this._resolution=t,this.dirty=!0)}sanitiseText(t){return t.replace(/<br>/gi,"<br/>").replace(/<hr>/gi,"<hr/>").replace(/&nbsp;/gi,"&#160;")}};ev.defaultDestroyOptions={texture:!0,children:!1,baseTexture:!0},ev.defaultMaxWidth=2024,ev.defaultMaxHeight=2024,ev.defaultAutoResolution=!0;const iv=class extends Gd{constructor(t){super("attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n    gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n    vTextureCoord = aTextureCoord;\n}","varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform vec4 filterArea;\nuniform vec2 dimensions;\n\nuniform vec2 light;\nuniform bool parallel;\nuniform float aspect;\n\nuniform float gain;\nuniform float lacunarity;\nuniform float time;\nuniform float alpha;\n\n${perlin}\n\nvoid main(void) {\n    vec2 coord = vTextureCoord * filterArea.xy / dimensions.xy;\n\n    float d;\n\n    if (parallel) {\n        float _cos = light.x;\n        float _sin = light.y;\n        d = (_cos * coord.x) + (_sin * coord.y * aspect);\n    } else {\n        float dx = coord.x - light.x / dimensions.x;\n        float dy = (coord.y - light.y / dimensions.y) * aspect;\n        float dis = sqrt(dx * dx + dy * dy) + 0.00001;\n        d = dy / dis;\n    }\n\n    vec3 dir = vec3(d, d, 0.0);\n\n    float noise = turb(dir + vec3(time, 0.0, 62.1 + time) * 0.05, vec3(480.0, 320.0, 480.0), lacunarity, gain);\n    noise = mix(noise, 0.0, 0.3);\n    //fade vertically.\n    vec4 mist = vec4(noise, noise, noise, 1.0) * (1.0 - coord.y);\n    mist.a = 1.0;\n    // apply user alpha\n    mist *= alpha;\n\n    gl_FragColor = texture2D(uSampler, vTextureCoord) + mist;\n\n}\n".replace("${perlin}","vec3 mod289(vec3 x)\n{\n    return x - floor(x * (1.0 / 289.0)) * 289.0;\n}\nvec4 mod289(vec4 x)\n{\n    return x - floor(x * (1.0 / 289.0)) * 289.0;\n}\nvec4 permute(vec4 x)\n{\n    return mod289(((x * 34.0) + 1.0) * x);\n}\nvec4 taylorInvSqrt(vec4 r)\n{\n    return 1.79284291400159 - 0.85373472095314 * r;\n}\nvec3 fade(vec3 t)\n{\n    return t * t * t * (t * (t * 6.0 - 15.0) + 10.0);\n}\n// Classic Perlin noise, periodic variant\nfloat pnoise(vec3 P, vec3 rep)\n{\n    vec3 Pi0 = mod(floor(P), rep); // Integer part, modulo period\n    vec3 Pi1 = mod(Pi0 + vec3(1.0), rep); // Integer part + 1, mod period\n    Pi0 = mod289(Pi0);\n    Pi1 = mod289(Pi1);\n    vec3 Pf0 = fract(P); // Fractional part for interpolation\n    vec3 Pf1 = Pf0 - vec3(1.0); // Fractional part - 1.0\n    vec4 ix = vec4(Pi0.x, Pi1.x, Pi0.x, Pi1.x);\n    vec4 iy = vec4(Pi0.yy, Pi1.yy);\n    vec4 iz0 = Pi0.zzzz;\n    vec4 iz1 = Pi1.zzzz;\n    vec4 ixy = permute(permute(ix) + iy);\n    vec4 ixy0 = permute(ixy + iz0);\n    vec4 ixy1 = permute(ixy + iz1);\n    vec4 gx0 = ixy0 * (1.0 / 7.0);\n    vec4 gy0 = fract(floor(gx0) * (1.0 / 7.0)) - 0.5;\n    gx0 = fract(gx0);\n    vec4 gz0 = vec4(0.5) - abs(gx0) - abs(gy0);\n    vec4 sz0 = step(gz0, vec4(0.0));\n    gx0 -= sz0 * (step(0.0, gx0) - 0.5);\n    gy0 -= sz0 * (step(0.0, gy0) - 0.5);\n    vec4 gx1 = ixy1 * (1.0 / 7.0);\n    vec4 gy1 = fract(floor(gx1) * (1.0 / 7.0)) - 0.5;\n    gx1 = fract(gx1);\n    vec4 gz1 = vec4(0.5) - abs(gx1) - abs(gy1);\n    vec4 sz1 = step(gz1, vec4(0.0));\n    gx1 -= sz1 * (step(0.0, gx1) - 0.5);\n    gy1 -= sz1 * (step(0.0, gy1) - 0.5);\n    vec3 g000 = vec3(gx0.x, gy0.x, gz0.x);\n    vec3 g100 = vec3(gx0.y, gy0.y, gz0.y);\n    vec3 g010 = vec3(gx0.z, gy0.z, gz0.z);\n    vec3 g110 = vec3(gx0.w, gy0.w, gz0.w);\n    vec3 g001 = vec3(gx1.x, gy1.x, gz1.x);\n    vec3 g101 = vec3(gx1.y, gy1.y, gz1.y);\n    vec3 g011 = vec3(gx1.z, gy1.z, gz1.z);\n    vec3 g111 = vec3(gx1.w, gy1.w, gz1.w);\n    vec4 norm0 = taylorInvSqrt(vec4(dot(g000, g000), dot(g010, g010), dot(g100, g100), dot(g110, g110)));\n    g000 *= norm0.x;\n    g010 *= norm0.y;\n    g100 *= norm0.z;\n    g110 *= norm0.w;\n    vec4 norm1 = taylorInvSqrt(vec4(dot(g001, g001), dot(g011, g011), dot(g101, g101), dot(g111, g111)));\n    g001 *= norm1.x;\n    g011 *= norm1.y;\n    g101 *= norm1.z;\n    g111 *= norm1.w;\n    float n000 = dot(g000, Pf0);\n    float n100 = dot(g100, vec3(Pf1.x, Pf0.yz));\n    float n010 = dot(g010, vec3(Pf0.x, Pf1.y, Pf0.z));\n    float n110 = dot(g110, vec3(Pf1.xy, Pf0.z));\n    float n001 = dot(g001, vec3(Pf0.xy, Pf1.z));\n    float n101 = dot(g101, vec3(Pf1.x, Pf0.y, Pf1.z));\n    float n011 = dot(g011, vec3(Pf0.x, Pf1.yz));\n    float n111 = dot(g111, Pf1);\n    vec3 fade_xyz = fade(Pf0);\n    vec4 n_z = mix(vec4(n000, n100, n010, n110), vec4(n001, n101, n011, n111), fade_xyz.z);\n    vec2 n_yz = mix(n_z.xy, n_z.zw, fade_xyz.y);\n    float n_xyz = mix(n_yz.x, n_yz.y, fade_xyz.x);\n    return 2.2 * n_xyz;\n}\nfloat turb(vec3 P, vec3 rep, float lacunarity, float gain)\n{\n    float sum = 0.0;\n    float sc = 1.0;\n    float totalgain = 1.0;\n    for (float i = 0.0; i < 6.0; i++)\n    {\n        sum += totalgain * pnoise(P * sc, rep);\n        sc *= lacunarity;\n        totalgain *= gain;\n    }\n    return abs(sum);\n}\n")),this.parallel=!0,this.time=0,this._angle=0,this.uniforms.dimensions=new Float32Array(2);const e=Object.assign(iv.defaults,t);this._angleLight=new Zu,this.angle=e.angle,this.gain=e.gain,this.lacunarity=e.lacunarity,this.alpha=e.alpha,this.parallel=e.parallel,this.center=e.center,this.time=e.time}apply(t,e,i,r){const{width:n,height:s}=e.filterFrame;this.uniforms.light=this.parallel?this._angleLight:this.center,this.uniforms.parallel=this.parallel,this.uniforms.dimensions[0]=n,this.uniforms.dimensions[1]=s,this.uniforms.aspect=s/n,this.uniforms.time=this.time,this.uniforms.alpha=this.alpha,t.applyFilter(this,e,i,r)}get angle(){return this._angle}set angle(t){this._angle=t;const e=t*qu;this._angleLight.x=Math.cos(e),this._angleLight.y=Math.sin(e)}get gain(){return this.uniforms.gain}set gain(t){this.uniforms.gain=t}get lacunarity(){return this.uniforms.lacunarity}set lacunarity(t){this.uniforms.lacunarity=t}get alpha(){return this.uniforms.alpha}set alpha(t){this.uniforms.alpha=t}};let rv=iv;rv.defaults={angle:30,gain:.5,lacunarity:2.5,time:0,parallel:!0,center:[0,0],alpha:1};var nv,sv,av,ov,lv,hv,cv,uv,dv=function(){document.querySelector('[data-target="godrays"]')&&function(){var t=document.querySelector('[data-target="godrays"]'),e=new tm({width:window.innerWidth,height:window.innerHeight});
2t.appendChild(e.view);var i=new Yg;i.beginFill(804218),i.drawRect(0,0,window.innerWidth,window.innerHeight),i.endFill(),e.stage.addChild(i);var r=new rv;r.parallel=!0,r.center=[window.innerWidth/2,-100],r.lacunrity=2.5,r.gain=.4,r.angle=30,i.filters=[r];var n=30;e.ticker.add((function(){n+=.0095,r.time=n}))}()},pv=1,fv=function(t,e){return t.actions.forEach((function(t){return t.vars[e]&&t.vars[e](t)}))},mv={},gv=180/Math.PI,yv=Math.PI/180,vv={},xv={},_v={},bv=function(t){return"string"==typeof t?t.split(" ").join("").split(","):t},Sv=bv("onStart,onUpdate,onComplete,onReverseComplete,onInterrupt"),Ev=bv("transform,transformOrigin,width,height,position,top,left,opacity,zIndex,maxWidth,maxHeight,minWidth,minHeight"),wv=function(t){return nv(t)[0]||console.warn("Element not found:",t)},Tv=function(t){return Math.round(1e4*t)/1e4||0},Av=function(t,e,i){return t.forEach((function(t){return t.classList[i](e)}))},Mv={zIndex:1,kill:1,simple:1,spin:1,clearProps:1,targets:1,toggleClass:1,onComplete:1,onUpdate:1,onInterrupt:1,onStart:1,delay:1,repeat:1,repeatDelay:1,yoyo:1,scale:1,fade:1,absolute:1,props:1,onEnter:1,onLeave:1,custom:1,paused:1,nested:1,prune:1,absoluteOnLeave:1},Pv={zIndex:1,simple:1,clearProps:1,scale:1,absolute:1,fitChild:1,getVars:1,props:1},Cv=function(t){return t.replace(/([A-Z])/g,"-$1").toLowerCase()},kv=function(t,e){var i,r={};for(i in t)e[i]||(r[i]=t[i]);return r},Iv={},Dv=function(t){var e=Iv[t]=bv(t);return _v[t]=e.concat(Ev),e},Rv=function t(e,i,r){void 0===r&&(r=0);for(var n=e.parentNode,s=1e3*Math.pow(10,r)*(i?-1:1),a=i?900*-s:0;e;)a+=s,e=e.previousSibling;return n?a+t(n,i,r+1):a},Ov=function(t,e,i){return t.forEach((function(t){return t.d=Rv(i?t.element:t.t,e)})),t.sort((function(t,e){return t.d-e.d})),t},Lv=function(t,e){for(var i,r,n=t.element.style,s=t.css=t.css||[],a=e.length;a--;)r=n[i=e[a]]||n.getPropertyValue(i),s.push(r?i:xv[i]||(xv[i]=Cv(i)),r);return n},Fv=function(t){var e=t.css,i=t.element.style,r=0;for(t.cache.uncache=1;r<e.length;r+=2)e[r+1]?i[e[r]]=e[r+1]:i.removeProperty(e[r]);!e[e.indexOf("transform")+1]&&i.translate&&(i.removeProperty("translate"),i.removeProperty("scale"),i.removeProperty("rotate"))},Bv=function(t,e){t.forEach((function(t){return t.a.cache.uncache=1})),e||t.finalStates.forEach(Fv)},Nv="paddingTop,paddingRight,paddingBottom,paddingLeft,gridArea,transition".split(","),Vv=function(t,e,i){var r,n,s,a=t.element,o=t.width,l=t.height,h=t.uncache,c=t.getProp,u=a.style,d=4;if("object"!=typeof e&&(e=t),av&&1!==i)return av._abs.push({t:a,b:t,a:t,sd:0}),av._final.push((function(){return(t.cache.uncache=1)&&Fv(t)})),a;for(n="none"===c("display"),t.isVisible&&!n||(n&&(Lv(t,["display"]).display=e.display),t.matrix=e.matrix,t.width=o=t.
vendor: 4,123 bytes, line 2
2width||e.width,t.height=l=t.height||e.height),Lv(t,Nv),s=window.getComputedStyle(a);d--;)u[Nv[d]]=s[Nv[d]];if(u.gridArea="1 / 1 / 1 / 1",u.transition="none",u.position="absolute",u.width=o+"px",u.height=l+"px",u.top||(u.top="0px"),u.left||(u.left="0px"),h)r=new rx(a);else if((r=kv(t,vv)).position="absolute",t.simple){var p=a.getBoundingClientRect();r.matrix=new Ks(1,0,0,1,p.left+js(),p.top+Hs())}else r.matrix=Zs(a,!1,!1,!0);return r=Xv(r,t,!0),t.x=hv(r.x,.01),t.y=hv(r.y,.01),a},zv=function(t,e){return!0!==e&&(e=nv(e),t=t.filter((function(t){if(-1!==e.indexOf((t.sd<0?t.b:t.a).element))return!0;t.t._gsap.renderTransform(1),t.b.isVisible&&(t.t.style.width=t.b.width+"px",t.t.style.height=t.b.height+"px")}))),t},Gv=function(t){return Ov(t,!0).forEach((function(t){return(t.a.isVisible||t.b.isVisible)&&Vv(t.sd<0?t.b:t.a,t.b,1)}))},Uv=function(t,e,i,r){return t instanceof rx?t:t instanceof ix?function(t,e){return e&&t.idLookup[Uv(e).id]||t.elementStates[0]}(t,r):new rx("string"==typeof t?wv(t)||console.warn(t+" not found"):t,e,i)},Hv=function(t,e){var i,r=t.style||t;for(i in e)r[i]=e[i]},jv=function(t){return t.map((function(t){return t.element}))},Wv=function(t,e,i){return t&&e.length&&i.add(t(jv(e),i,new ix(e,0,!0)),0)},Xv=function(t,e,i,r,n,s){var a,o,l,h,c,u,d,p=t.element,f=t.cache,m=t.parent,g=t.x,y=t.y,v=e.width,x=e.height,_=e.scaleX,b=e.scaleY,S=e.rotation,E=e.bounds,w=s&&cv&&cv(p,"transform"),T=t,A=e.matrix,M=A.e,P=A.f,C=t.bounds.width!==E.width||t.bounds.height!==E.height||t.scaleX!==_||t.scaleY!==b||t.rotation!==S,k=!C&&t.simple&&e.simple&&!n;return k||!m?(_=b=1,S=a=0):(c=function(t){var e=t._gsap||sv.core.getCache(t);return e.gmCache===sv.ticker.frame?e.gMatrix:(e.gmCache=sv.ticker.frame,e.gMatrix=Zs(t,!0,!1,!0))}(m),u=c.clone().multiply(e.ctm?e.matrix.clone().multiply(e.ctm):e.matrix),S=Tv(Math.atan2(u.b,u.a)*gv),a=Tv(Math.atan2(u.c,u.d)*gv+S)%360,_=Math.sqrt(Math.pow(u.a,2)+Math.pow(u.b,2)),b=Math.sqrt(Math.pow(u.c,2)+Math.pow(u.d,2))*Math.cos(a*yv),n&&(n=nv(n)[0],h=sv.getProperty(n),d=n.getBBox&&"function"==typeof n.getBBox&&n.getBBox(),T={scaleX:h("scaleX"),scaleY:h("scaleY"),width:d?d.width:Math.ceil(parseFloat(h("width","px"))),height:d?d.height:parseFloat(h("height","px"))}),f.rotation=S+"deg",f.skewX=a+"deg"),i?(_*=v!==T.width&&T.width?v/T.width:1,b*=x!==T.height&&T.height?x/T.height:1,f.scaleX=_,f.scaleY=b):(v=hv(v*_/T.scaleX,0),x=hv(x*b/T.scaleY,0),p.style.width=v+"px",p.style.height=x+"px"),r&&Hv(p,e.props),k||!m?(g+=M-t.matrix.e,y+=P-t.matrix.f):C||m!==e.parent?(f.renderTransform(1,f),u=Zs(n||p,!1,!1,!0),o=c.apply({x:u.e,y:u.f}),g+=(l=c.apply({x:M,y:P})).x-o.x,y+=l.y-o.y):(c.e=c.f=0,g+=(l=c.apply({x:M-t.matrix.e,y:P-t.matrix.f})).x,y+=l.y),g=hv(g,.02),y=hv(y,.02),!s||s instanceof rx?(f.x=g+"px",f.y=y+"px",f.renderTransform(1,f)):w&&w.revert(),s&&(s.x=g,s.y=y,s.rotation=S,s.skewX=a,i?(s.scaleX=_,s.scaleY=b):(s.width=v,s.height=x)),s||f},$v=function(t,e){return t instanceof ix?t:new ix(t,e)},Yv=function(t,e,i){var r=t.idLookup[i],n=t.alt[i];return!n.isVisible||(e.getElementState(n.element)||n).isVisible&&r.isVisible?r:n},qv=[],Kv="width,height,overflowX,overflowY".split(","),Zv=function(t){if(t!==uv){var e=lv.style,i=lv.clientWidth===window.outerWidth,r=lv.clientHeight===window.outerHeight,n=4;if(t&&(i||r)){for(;n--;)qv[n]=e[Kv[n]];i&&(e.width=lv.clientWidth+"px",e.overflowY="hidden"),r&&(e.height=lv.clientHeight+"px",e.overflowX="hidden"),uv=t}else if(uv){for(;n--;)qv[n]?e[Kv[n]]=qv[n]:e.removeProperty(Cv(Kv[n]));uv=t}}},Jv=function(t,e,i,r){t instanceof ix&&e instanceof ix||console.warn("Not a valid state object.");var n,s,a,o,l,h,c,u,d,p,f,m,g,y,v,x=i=i||{},_=x.clearProps,b=x.onEnter,S=x.onLeave,E=x.absolute,w=x.absoluteOnLeave,T=x.custom,A=x.delay,M=x.paused,P=x.repeat,C=x.repeatDelay,k=x.yoyo,I=x.toggleClass,D=x.nested,R=x.zIndex,O=x.scale,L=x.fade,F=x.stagger,B=x.spin,N=x.prune,V=("props"in i?i:t).props,z=kv(i,Mv),G=sv.timeline({delay:A,paused:M,repeat:P,repeatDelay:C,yoyo:k,data:"isFlip"}),U=z,H=[],j=[],W=[],X=[],$=!0===B?1:B||0,Y="function"==typeof B?B:function(){return $},q=t.interrupted||e.interrupted,K=G[1!==r?"to":"from"];
2for(s in e.idLookup)f=e.alt[s]?Yv(e,t,s):e.idLookup[s],l=f.element,p=t.idLookup[s],t.alt[s]&&l===p.element&&(t.alt[s].isVisible||!f.isVisible)&&(p=t.alt[s]),p?(h={t:l,b:p,a:f,sd:p.element===l?0:f.isVisible?1:-1},W.push(h),h.sd&&(h.sd<0&&(h.b=f,h.a=p),q&&Lv(h.b,V?_v[V]:Ev),L&&W.push(h.swap={t:p.element,b:h.b,a:h.a,sd:-h.sd,swap:h})),l._flip=p.element._flip=av?av.timeline:G):f.isVisible&&(W.push({t:l,b:kv(f,{isVisible:1}),a:f,sd:0,entering:1}),l._flip=av?av.timeline:G);V&&(Iv[V]||Dv(V)).forEach((function(t){return z[t]=function(e){return W[e].a.props[t]}})),W.finalStates=d=[],m=function(){for(Ov(W),Zv(!0),o=0;o<W.length;o++)h=W[o],g=h.a,y=h.b,!N||g.isDifferent(y)||h.entering?(l=h.t,D&&!(h.sd<0)&&o&&(g.matrix=Zs(l,!1,!1,!0)),y.isVisible&&g.isVisible?(h.sd<0?(c=new rx(l,V,t.simple),Xv(c,g,O,0,0,c),c.matrix=Zs(l,!1,!1,!0),c.css=h.b.css,h.a=g=c,L&&(l.style.opacity=q?y.opacity:g.opacity),F&&X.push(l)):h.sd>0&&L&&(l.style.opacity=q?g.opacity-y.opacity:"0"),Xv(g,y,O,V)):y.isVisible!==g.isVisible&&(y.isVisible?g.isVisible||(y.css=g.css,j.push(y),W.splice(o--,1),E&&D&&Xv(g,y,O,V)):(g.isVisible&&H.push(g),W.splice(o--,1))),O||(l.style.maxWidth=Math.max(g.width,y.width)+"px",l.style.maxHeight=Math.max(g.height,y.height)+"px",l.style.minWidth=Math.min(g.width,y.width)+"px",l.style.minHeight=Math.min(g.height,y.height)+"px"),D&&I&&l.classList.add(I)):W.splice(o--,1),d.push(g);var e;if(I&&(e=d.map((function(t){return t.element})),D&&e.forEach((function(t){return t.classList.remove(I)}))),Zv(!1),O?(z.scaleX=function(t){return W[t].a.scaleX},z.scaleY=function(t){return W[t].a.scaleY}):(z.width=function(t){return W[t].a.width+"px"},z.height=function(t){return W[t].a.height+"px"},z.autoRound=i.autoRound||!1),z.x=function(t){return W[t].a.x+"px"},z.y=function(t){return W[t].a.y+"px"},z.rotation=function(t){return W[t].a.rotation+(B?360*Y(t,u[t],u):0)},z.skewX=function(t){return W[t].a.skewX},u=W.map((function(t){return t.t})),(R||0===R)&&(z.modifiers={zIndex:function(){return R}},z.zIndex=R,z.immediateRender=!1!==i.immediateRender),L&&(z.opacity=function(t){return W[t].sd<0?0:W[t].sd>0?W[t].a.opacity:"+=0"}),X.length){F=sv.utils.distribute(F);var r=u.slice(X.length);z.stagger=function(t,e){return F(~X.indexOf(e)?u.indexOf(W[t].swap.t):t,e,r)}}if(Sv.forEach((function(t){return i[t]&&G.eventCallback(t,i[t],i[t+"Params"])})),T&&u.length)for(s in U=kv(z,Mv),"scale"in T&&(T.scaleX=T.scaleY=T.scale,delete T.scale),T)(n=kv(T[s],Pv))[s]=z[s],!("duration"in n)&&"duration"in z&&(n.duration=z.duration),n.stagger=z.stagger,K.call(G,u,n,0),delete U[s];(u.length||j.length||H.length)&&(I&&G.add((function(){return Av(e,I,G._zTime<0?"remove":"add")}),0)&&!M&&Av(e,I,"add"),u.length&&K.call(G,u,U,0)),Wv(b,H,G),Wv(S,j,G);var p=av&&av.timeline;p&&(p.add(G,0),av._final.push((function(){return Bv(W,!_)}))),a=G.duration(),G.call((function(){var t=G.time()>=a;t&&!p&&Bv(W,!_),I&&Av(e,I,t?"remove":"add")}))},w&&(E=W.filter((function(t){return!t.sd&&!t.a.isVisible&&t.b.isVisible})).map((function(t){return t.a.element}))),av?(E&&(v=av._abs).push.apply(v,zv(W,E)),av._run.push(m)):(E&&Gv(zv(W,E)),m());var Z=av?av.timeline:G;return Z.revert=function(){return tx(Z,1,1)},Z},Qv=function t(e){e.vars.onInterrupt&&e.vars.onInterrupt.apply(e,e.vars.onInterruptParams||[]),e.getChildren(!0,!1,!0).forEach(t)},tx=function(t,e,i){if(t&&t.progress()<1&&(!t.paused()||i))return e&&(Qv(t),e<2&&t.progress(1),t.kill()),!0},ex=function(t){for(var e,i=t.idLookup={},r=t.alt={},n=t.elementStates,s=n.length;s--;)i[(e=n[s]).id]?r[e.id]=e:i[e.id]=e},ix=function(){function t(t,e,i){if(this.props=e&&e.props,this.simple=!(!e||!e.simple),i)this.targets=jv(t),this.elementStates=t,ex(this);else{this.targets=nv(t);var r=e&&(!1===e.kill||e.batch&&!e.kill);av&&!r&&av._kill.push(this),this.update(r||!!av)}}var e=t.prototype;return e.update=function(t){var e=this;return this.elementStates=this.targets.map((function(t){return new rx(t,e.props,e.simple)})),ex(this),this.interrupt(t),this.recordInlineStyles(),this},e.clear=function(){return this.targets.length=this.elementStates.length=0,ex(this),this}
vendor: 4,870 bytes, line 2
2,e.fit=function(t,e,i){for(var r,n,s=Ov(this.elementStates.slice(0),!1,!0),a=(t||this).idLookup,o=0;o<s.length;o++)r=s[o],i&&(r.matrix=Zs(r.element,!1,!1,!0)),(n=a[r.id])&&Xv(r,n,e,!0,0,r),r.matrix=Zs(r.element,!1,!1,!0);return this},e.getProperty=function(t,e){var i=this.getElementState(t)||vv;return(e in i?i:i.props||vv)[e]},e.add=function(t){for(var e,i,r,n=t.targets.length,s=this.idLookup,a=this.alt;n--;)(r=s[(i=t.elementStates[n]).id])&&(i.element===r.element||a[i.id]&&a[i.id].element===i.element)?(e=this.elementStates.indexOf(i.element===r.element?r:a[i.id]),this.targets.splice(e,1,t.targets[n]),this.elementStates.splice(e,1,i)):(this.targets.push(t.targets[n]),this.elementStates.push(i));return t.interrupted&&(this.interrupted=!0),t.simple||(this.simple=!1),ex(this),this},e.compare=function(t){var e,i,r,n,s,a,o,l,h=t.idLookup,c=this.idLookup,u=[],d=[],p=[],f=[],m=[],g=t.alt,y=this.alt,v=function(t,e,i){return(t.isVisible!==e.isVisible?t.isVisible?p:f:t.isVisible?d:u).push(i)&&m.push(i)},x=function(t,e,i){return m.indexOf(i)<0&&v(t,e,i)};for(r in h)s=g[r],a=y[r],n=(e=s?Yv(t,this,r):h[r]).element,i=c[r],a?(l=i.isVisible||!a.isVisible&&n===i.element?i:a,(o=!s||e.isVisible||s.isVisible||l.element!==s.element?e:s).isVisible&&l.isVisible&&o.element!==l.element?((o.isDifferent(l)?d:u).push(o.element,l.element),m.push(o.element,l.element)):v(o,l,o.element),s&&o.element===s.element&&(s=h[r]),x(o.element!==i.element&&s?s:o,i,i.element),x(s&&s.element===a.element?s:o,a,a.element),s&&x(s,a.element===s.element?a:i,s.element)):(i?i.isDifferent(e)?v(e,i,n):u.push(n):p.push(n),s&&x(s,i,s.element));for(r in c)h[r]||(f.push(c[r].element),y[r]&&f.push(y[r].element));return{changed:d,unchanged:u,enter:p,leave:f}},e.recordInlineStyles=function(){for(var t=_v[this.props]||Ev,e=this.elementStates.length;e--;)Lv(this.elementStates[e],t)},e.interrupt=function(t){var e=this,i=[];this.targets.forEach((function(r){var n=r._flip,s=tx(n,t?0:1);t&&s&&i.indexOf(n)<0&&n.add((function(){return e.updateVisibility()})),s&&i.push(n)})),!t&&i.length&&this.updateVisibility(),this.interrupted||(this.interrupted=!!i.length)},e.updateVisibility=function(){this.elementStates.forEach((function(t){var e=t.element.getBoundingClientRect();t.isVisible=!!(e.width||e.height||e.top||e.left),t.uncache=1}))},e.getElementState=function(t){return this.elementStates[this.targets.indexOf(wv(t))]},e.makeAbsolute=function(){return Ov(this.elementStates.slice(0),!0,!0).map(Vv)},t}(),rx=function(){function t(t,e,i){this.element=t,this.update(e,i)}var e=t.prototype;return e.isDifferent=function(t){var e=this.bounds,i=t.bounds;return e.top!==i.top||e.left!==i.left||e.width!==i.width||e.height!==i.height||!this.matrix.equals(t.matrix)||this.opacity!==t.opacity||this.props&&t.props&&JSON.stringify(this.props)!==JSON.stringify(t.props)},e.update=function(t,e){var i,r,n=this,s=n.element,a=sv.getProperty(s),o=sv.core.getCache(s),l=s.getBoundingClientRect(),h=s.getBBox&&"function"==typeof s.getBBox&&"svg"!==s.nodeName.toLowerCase()&&s.getBBox(),c=e?new Ks(1,0,0,1,l.left+js(),l.top+Hs()):Zs(s,!1,!1,!0);n.getProp=a,n.element=s,n.id=((r=(i=s).getAttribute("data-flip-id"))||i.setAttribute("data-flip-id",r="auto-"+pv++),r),n.matrix=c,n.cache=o,n.bounds=l,n.isVisible=!!(l.width||l.height||l.left||l.top),n.display=a("display"),n.position=a("position"),n.parent=s.parentNode,n.x=a("x"),n.y=a("y"),n.scaleX=o.scaleX,n.scaleY=o.scaleY,n.rotation=a("rotation"),n.skewX=a("skewX"),n.opacity=a("opacity"),n.width=h?h.width:hv(a("width","px"),.04),n.height=h?h.height:hv(a("height","px"),.04),t&&function(t,e){for(var i=sv.getProperty(t.element,null,"native"),r=t.props={},n=e.length;n--;)r[e[n]]=(i(e[n])+"").trim();r.zIndex&&(r.zIndex=parseFloat(r.zIndex)||0)}(n,Iv[t]||Dv(t)),n.ctm=s.getCTM&&"svg"===s.nodeName.toLowerCase()&&Ys(s).inverse(),n.simple=e||1===Tv(c.a)&&!Tv(c.b)&&!Tv(c.c)&&1===Tv(c.d),n.uncache=0},t}(),nx=function(){function t(t,e){this.vars=t,this.batch=e,this.states=[],this.timeline=e.timeline}var e=t.prototype;return e.getStateById=function(t){for(var e=this.states.length;e--;)if(this.states[e].idLookup[t])return this.states[e]},e.kill=function(){this.batch.remove(this)},t}(),sx=function(){function t(t){this.id=t,this.actions=[],this._kill=[],this._final=[],this._abs=[],this._run=[],this.data={},this.state=new ix,this.timeline=sv.timeline()}var e=t.prototype;return e.add=function(t){var e=this.actions.filter((function(e){return e.vars===t}));return e.length?e[0]:(e=new nx("function"==typeof t?{animate:t}:t,this),this.actions.push(e),e)},e.remove=function(t){var e=this.actions.indexOf(t);return e>=0&&this.actions.splice(e,1),this},e.getState=function(t){var e=this,i=av,r=ov;return av=this,this.state.clear(),this._kill.length=0,this.actions.forEach((function(i){i.vars.getState&&(i.states.length=0,ov=i,i.state=i.vars.getState(i)),t&&i.states.forEac
2h((function(t){return e.state.add(t)}))})),ov=r,av=i,this.killConflicts(),this},e.animate=function(){var t,e,i=this,r=av,n=this.timeline,s=this.actions.length;for(av=this,n.clear(),this._abs.length=this._final.length=this._run.length=0,this.actions.forEach((function(t){t.vars.animate&&t.vars.animate(t);var e,i,r=t.vars.onEnter,n=t.vars.onLeave,s=t.targets;s&&s.length&&(r||n)&&(e=new ix,t.states.forEach((function(t){return e.add(t)})),(i=e.compare(ax.getState(s))).enter.length&&r&&r(i.enter),i.leave.length&&n&&n(i.leave))})),Gv(this._abs),this._run.forEach((function(t){return t()})),e=n.duration(),t=this._final.slice(0),n.add((function(){e<=n.time()&&(t.forEach((function(t){return t()})),fv(i,"onComplete"))})),av=r;s--;)this.actions[s].vars.once&&this.actions[s].kill();return fv(this,"onStart"),n.restart(),this},e.loadState=function(t){t||(t=function(){return 0});var e=[];return this.actions.forEach((function(i){if(i.vars.loadState){var r,n=function n(s){s&&(i.targets=s),~(r=e.indexOf(n))&&(e.splice(r,1),e.length||t())};e.push(n),i.vars.loadState(n)}})),e.length||t(),this},e.setState=function(){return this.actions.forEach((function(t){return t.targets=t.vars.setState&&t.vars.setState(t)})),this},e.killConflicts=function(t){return this.state.interrupt(t),this._kill.forEach((function(e){return e.interrupt(t)})),this},e.run=function(t,e){var i=this;return this!==av&&(t||this.getState(e),this.loadState((function(){i._killed||(i.setState(),i.animate())}))),this},e.clear=function(t){this.state.clear(),t||(this.actions.length=0)},e.getStateById=function(t){for(var e,i=this.actions.length;i--;)if(e=this.actions[i].getStateById(t))return e;return this.state.idLookup[t]&&this.state},e.kill=function(){this._killed=1,this.clear(),delete mv[this.id]},t}(),ax=function(){function t(){}return t.getState=function(e,i){var r=$v(e,i);return ov&&ov.states.push(r),i&&i.batch&&t.batch(i.batch).state.add(r),r},t.from=function(t,e){return"clearProps"in(e=e||{})||(e.clearProps=!0),Jv(t,$v(e.targets||t.targets,{props:e.props||t.props,simple:e.simple,kill:!!e.kill}),e,-1)},t.to=function(t,e){return Jv(t,$v(e.targets||t.targets,{props:e.props||t.props,simple:e.simple,kill:!!e.kill}),e,1)},t.fromTo=function(t,e,i){return Jv(t,e,i)},t.fit=function(t,e,i){var r=i?kv(i,Pv):{},n=i||r,s=n.absolute,a=n.scale,o=n.getVars,l=n.props,h=n.runBackwards,c=n.onComplete,u=n.simple,d=i&&i.fitChild&&wv(i.fitChild),p=Uv(e,l,u,t),f=Uv(t,0,u,p),m=l?_v[l]:Ev,g=sv.context();return l&&Hv(r,p.props),Lv(f,m),h&&("immediateRender"in r||(r.immediateRender=!0),r.onComplete=function(){Fv(f),c&&c.apply(this,arguments)}),s&&Vv(f,p),r=Xv(f,p,a||d,l,d,r.duration||o?r:0),g&&!o&&g.add((function(){return function(){return Fv(f)}})),o?r:r.duration?sv.to(f.element,r):null},t.makeAbsolute=function(t,e){return(t instanceof ix?t:new ix(t,e)).makeAbsolute()},t.batch=function(t){return t||(t="default"),mv[t]||(mv[t]=new sx(t))},t.killFlipsOf=function(t,e){(t instanceof ix?t.targets:nv(t)).forEach((function(t){return t&&tx(t._flip,!1!==e?1:2)}))},t.isFlipping=function(e){var i=t.getByTarget(e);return!!i&&i.isActive()},t.getByTarget=function(t){return(wv(t)||vv)._flip},t.getElementState=function(t,e){return new rx(wv(t),e)},t.convertCoordinates=function(t,e,i){var r=Zs(e,!0,!0).multiply(Zs(t));return i?r.apply(i):r},t.register=function(t){if(lv="undefined"!=typeof document&&document.body){sv=t,zs(lv),nv=sv.utils.toArray,cv=sv.core.getStyleSaver;var e=sv.utils.snap(.1);hv=function(t,i){return e(parseFloat(t)+i)}}},t}();ax.version="3.12.5","undefined"!=typeof window&&window.gsap&&window.gsap.registerPlugin(ax),Un.registerPlugin(ax);var ox=__webpack_require__(891),lx=__webpack_require__.n(ox);Un.registerPlugin(wh);function hx(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,r=Array(e);i<e;i++)r[i]=t[i];return r}var cx=__webpack_require__(158),ux=__webpack_require__.n(cx);function dx(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,r=Array(e);i<e;i++)r[i]=t[i];return r}__webpack_require__(151);function px(t){return t+.5|0}const fx=(t,e,i)=>Math.max(Math.min(t,i),e);function mx(t){return fx(px(2.55*t),0,255)}function gx(t){return fx(px(255*t),0,255)}function yx(t){return fx(px(t/2.55)/100,0,1)}function vx(t){return fx(px(100*t),0,100)}const xx={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},_x=[..."0123456789ABCDEF"],bx=t=>_x[15&t],Sx=t=>_x[(240&t)>>4]+_x[15&t],Ex=t=>(240&t)>>4==(15&t);const wx=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Tx(t,e,i){const 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 Ax(t,e,i){const 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 Mx(t,e,i){const r=Tx(t,1,.5);let n;for(e+i>1&&(n=1/(e+i),e*=n,i*=n),n=0;n<3;n++)r[n]*=1-e-i,r[n]+=e;return r}function Px(t){const e=t.r/255,i=t.g/255,r=t.b/255,n=Math.max(e,i,r),s=Math.min(e,i,r),a=(n+s)/2;let o,l,h;return n!==s&&(h=n-s,l=a>
vendor: 2,951 bytes, line 2
2.5?h/(2-n-s):h/(n+s),o=function(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}(e,i,r,h,n),o=60*o+.5),[0|o,l||0,a]}function Cx(t,e,i,r){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,i,r)).map(gx)}function kx(t,e,i){return Cx(Tx,t,e,i)}function Ix(t){return(t%360+360)%360}const Dx={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"},Rx={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",KocTate:"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"};let Ox;const Lx=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/,Fx=t=>
vendor: 6,165 bytes, line 2
2t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055,Bx=t=>t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4);function Nx(t,e,i){if(t){let r=Px(t);r[e]=Math.max(0,Math.min(r[e]+r[e]*i,0===e?360:1)),r=kx(r),t.r=r[0],t.g=r[1],t.b=r[2]}}function Vx(t,e){return t?Object.assign(e||{},t):t}function zx(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=gx(t[3]))):(e=Vx(t,{r:0,g:0,b:0,a:1})).a=gx(e.a),e}function Gx(t){return"r"===t.charAt(0)?function(t){const e=Lx.exec(t);let i,r,n,s=255;if(e){if(e[7]!==i){const t=+e[7];s=e[8]?mx(t):fx(255*t,0,255)}return i=+e[1],r=+e[3],n=+e[5],i=255&(e[2]?mx(i):fx(i,0,255)),r=255&(e[4]?mx(r):fx(r,0,255)),n=255&(e[6]?mx(n):fx(n,0,255)),{r:i,g:r,b:n,a:s}}}(t):function(t){const e=wx.exec(t);let i,r=255;if(!e)return;e[5]!==i&&(r=e[6]?mx(+e[5]):gx(+e[5]));const n=Ix(+e[2]),s=+e[3]/100,a=+e[4]/100;return i="hwb"===e[1]?function(t,e,i){return Cx(Mx,t,e,i)}(n,s,a):"hsv"===e[1]?function(t,e,i){return Cx(Ax,t,e,i)}(n,s,a):kx(n,s,a),{r:i[0],g:i[1],b:i[2],a:r}}(t)}class Ux{constructor(t){if(t instanceof Ux)return t;const e=typeof t;let i;var r,n,s;"object"===e?i=zx(t):"string"===e&&(s=(r=t).length,"#"===r[0]&&(4===s||5===s?n={r:255&17*xx[r[1]],g:255&17*xx[r[2]],b:255&17*xx[r[3]],a:5===s?17*xx[r[4]]:255}:7!==s&&9!==s||(n={r:xx[r[1]]<<4|xx[r[2]],g:xx[r[3]]<<4|xx[r[4]],b:xx[r[5]]<<4|xx[r[6]],a:9===s?xx[r[7]]<<4|xx[r[8]]:255})),i=n||function(t){Ox||(Ox=function(){const t={},e=Object.keys(Rx),i=Object.keys(Dx);let r,n,s,a,o;for(r=0;r<e.length;r++){for(a=o=e[r],n=0;n<i.length;n++)s=i[n],o=o.replace(s,Dx[s]);s=parseInt(Rx[a],16),t[o]=[s>>16&255,s>>8&255,255&s]}return t}(),Ox.transparent=[0,0,0,0]);const e=Ox[t.toLowerCase()];return e&&{r:e[0],g:e[1],b:e[2],a:4===e.length?e[3]:255}}(t)||Gx(t)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var t=Vx(this._rgb);return t&&(t.a=yx(t.a)),t}set rgb(t){this._rgb=zx(t)}rgbString(){return this._valid?function(t){return t&&(t.a<255?`rgba(${t.r}, ${t.g}, ${t.b}, ${yx(t.a)})`:`rgb(${t.r}, ${t.g}, ${t.b})`)}(this._rgb):void 0}hexString(){return this._valid?function(t){var e=(t=>Ex(t.r)&&Ex(t.g)&&Ex(t.b)&&Ex(t.a))(t)?bx:Sx;return t?"#"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):"")(t.a,e):void 0}(this._rgb):void 0}hslString(){return this._valid?function(t){if(!t)return;const e=Px(t),i=e[0],r=vx(e[1]),n=vx(e[2]);return t.a<255?`hsla(${i}, ${r}%, ${n}%, ${yx(t.a)})`:`hsl(${i}, ${r}%, ${n}%)`}(this._rgb):void 0}mix(t,e){if(t){const i=this.rgb,r=t.rgb;let n;const s=e===n?.5:e,a=2*s-1,o=i.a-r.a,l=((a*o==-1?a:(a+o)/(1+a*o))+1)/2;n=1-l,i.r=255&l*i.r+n*r.r+.5,i.g=255&l*i.g+n*r.g+.5,i.b=255&l*i.b+n*r.b+.5,i.a=s*i.a+(1-s)*r.a,this.rgb=i}return this}interpolate(t,e){return t&&(this._rgb=function(t,e,i){const r=Bx(yx(t.r)),n=Bx(yx(t.g)),s=Bx(yx(t.b));return{r:gx(Fx(r+i*(Bx(yx(e.r))-r))),g:gx(Fx(n+i*(Bx(yx(e.g))-n))),b:gx(Fx(s+i*(Bx(yx(e.b))-s))),a:t.a+i*(e.a-t.a)}}(this._rgb,t._rgb,e)),this}clone(){return new Ux(this.rgb)}alpha(t){return this._rgb.a=gx(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=px(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){return this._rgb.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Nx(this._rgb,2,t),this}darken(t){return Nx(this._rgb,2,-t),this}saturate(t){return Nx(this._rgb,1,t),this}desaturate(t){return Nx(this._rgb,1,-t),this}rotate(t){return function(t,e){var i=Px(t);i[0]=Ix(i[0]+e),i=kx(i),t.r=i[0],t.g=i[1],t.b=i[2]}(this._rgb,t),this}}function Hx(){}const jx=(()=>{let t=0;return()=>t++})();function Wx(t){return null==t}function Xx(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return"[object"===e.slice(0,7)&&"Array]"===e.slice(-6)}function $x(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}function Yx(t){return("number"==typeof t||t instanceof Number)&&isFinite(+t)}function qx(t,e){return Yx(t)?t:e}function Kx(t,e){return void 0===t?e:t}const Zx=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function Jx(t,e,i){if(t&&"function"==typeof t.call)return t.apply(i,e)}function Qx(t,e,i,r){let n,s,a;if(Xx(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($x(t))for(a=Object.keys(t),s=a.length,n=0;n<s;n++)e.call(i,t[a[n]],a[n])}function t_(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 e_(t){if(Xx(t))return t.map(e_);if($x(t)){const e=Object.create(null),i=Object.keys(t),r=i.length;let n=0;for(;n<r;++n)e[i[n]]=e_(t[i[n]]);return e}return t}function i_(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function r_(t,e,i,r){if(!i_(t))return;const n=e[t],s=i[t];$x(n)&&$x(s)?n_(n,s,r):e[t]=e_(s)}function n_(t,e,i){const r=Xx(e)?e:[e],n=r.length;if(!$x(t))return t;const s=(i=i||{}).merger||r_;let a;for(let e=0;e<n;++e){if(a=r[e],!$x(a))continue;const n=Object.keys(a);for(let e=0,r=n.length;e<r;++e)s(n[e],t,a,i)}return t}function s_(t,e){return n_(t,e,{merger:a_})}function a_(t,e,i){if(!i_(t))return;const r=e[t],n=i[t];$x(r)&&$x(n)?s_(r,n):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=e_(n))}const o_={"":t=>t,x:t=>t.x,y:t=>t.y};function l_(t,e){const i=o_[e]||(o_[e]=function(t){const e=function(t){const e=t.split("."),i=[];let r="";for(const t of e)r+=t,r.endsWith("\\")?r=r.slice(0,-1)+".":(i.push(r),r="");return i}(t);return t=>{for(const i of e){if(""===i)break;t=t&&t[i]}return t}}(e));return i(t)}function h_(t){return t.charAt(0).toUpperCase()+t.slice(1)}const c_=t=>void 0!==t,u_=t=>"function"==typeof t,d_=(t,e)=>{if(t.size!==e.size)return!1;for(const i of t)if(!e.has(i))return!1;return!0},p_=Math.PI,f_=2*p_,m_=f_+p_,g_=Number.POSITIVE_INFINITY,y_=p_/180,v_=p_/2,x_=p_/4,__=2*p_/3,b_=Math.log10,S_=Math.sign;function E_(t,e,i){return Math.abs(t-e)<i}function w_(t){const e=Math.round(t);t=E_(t,e,t/1e3)?e:t;const i=Math.pow(10,Math.floor(b_(t))),r=t/i;return(r<=1?1:r<=2?2:r<=5?5:10)*i}function T_(t){return!isNaN(parseFloat(t))&&isFinite(t)}
vendor: 4,283 bytes, line 2
2function A_(t,e,i){let r,n,s;for(r=0,n=t.length;r<n;r++)s=t[r][i],isNaN(s)||(e.min=Math.min(e.min,s),e.max=Math.max(e.max,s))}function M_(t){return t*(p_/180)}function P_(t){return t*(180/p_)}function C_(t){if(!Yx(t))return;let e=1,i=0;for(;Math.round(t*e)/e!==t;)e*=10,i++;return i}function k_(t,e){const i=e.x-t.x,r=e.y-t.y,n=Math.sqrt(i*i+r*r);let s=Math.atan2(r,i);return s<-.5*p_&&(s+=f_),{angle:s,distance:n}}function I_(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function D_(t,e){return(t-e+m_)%f_-p_}function R_(t){return(t%f_+f_)%f_}function O_(t,e,i,r){const n=R_(t),s=R_(e),a=R_(i),o=R_(s-n),l=R_(a-n),h=R_(n-s),c=R_(n-a);return n===s||n===a||r&&s===a||o>l&&h<c}function L_(t,e,i){return Math.max(e,Math.min(i,t))}function F_(t,e,i,r=1e-6){return t>=Math.min(e,i)-r&&t<=Math.max(e,i)+r}function B_(t,e,i){i=i||(i=>t[i]<e);let r,n=t.length-1,s=0;for(;n-s>1;)r=s+n>>1,i(r)?s=r:n=r;return{lo:s,hi:n}}const N_=(t,e,i,r)=>B_(t,i,r?r=>{const n=t[r][e];return n<i||n===i&&t[r+1][e]===i}:r=>t[r][e]<i),V_=(t,e,i)=>B_(t,i,(r=>t[r][e]>=i)),z_=["push","pop","shift","splice","unshift"];function G_(t,e){const i=t._chartjs;if(!i)return;const r=i.listeners,n=r.indexOf(e);-1!==n&&r.splice(n,1),r.length>0||(z_.forEach((e=>{delete t[e]})),delete t._chartjs)}function U_(t){const e=new Set(t);return e.size===t.length?t:Array.from(e)}const H_="undefined"==typeof window?function(t){return t()}:window.requestAnimationFrame;function j_(t,e){let i=[],r=!1;return function(...n){i=n,r||(r=!0,H_.call(window,(()=>{r=!1,t.apply(e,i)})))}}const W_=t=>"start"===t?"left":"end"===t?"right":"center",X_=(t,e,i)=>"start"===t?e:"end"===t?i:(e+i)/2;function $_(t,e,i){const r=e.length;let n=0,s=r;if(t._sorted){const{iScale:a,_parsed:o}=t,l=a.axis,{min:h,max:c,minDefined:u,maxDefined:d}=a.getUserBounds();u&&(n=L_(Math.min(N_(o,l,h).lo,i?r:N_(e,l,a.getPixelForValue(h)).lo),0,r-1)),s=d?L_(Math.max(N_(o,a.axis,c,!0).hi+1,i?0:N_(e,l,a.getPixelForValue(c),!0).hi+1),n,r)-n:r-n}return{start:n,count:s}}function Y_(t){const{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;const s=r.xmin!==e.min||r.xmax!==e.max||r.ymin!==i.min||r.ymax!==i.max;return Object.assign(r,n),s}const q_=t=>0===t||1===t,K_=(t,e,i)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*f_/i),Z_=(t,e,i)=>Math.pow(2,-10*t)*Math.sin((t-e)*f_/i)+1,J_={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=>1-Math.cos(t*v_),easeOutSine:t=>Math.sin(t*v_),easeInOutSine:t=>-.5*(Math.cos(p_*t)-1),easeInExpo:t=>0===t?0:Math.pow(2,10*(t-1)),easeOutExpo:t=>1===t?1:1-Math.pow(2,-10*t),easeInOutExpo:t=>q_(t)?t:t<.5?.5*Math.pow(2,10*(2*t-1)):.5*(2-Math.pow(2,-10*(2*t-1))),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=>q_(t)?t:K_(t,.075,.3),easeOutElastic:t=>q_(t)?t:Z_(t,.075,.3),easeInOutElastic(t){const e=.1125;return q_(t)?t:t<.5?.5*K_(2*t,e,.45):.5+.5*Z_(2*t-1,e,.45)},easeInBack(t){const e=1.70158;return t*t*((e+1)*t-e)},easeOutBack(t){const e=1.70158;return(t-=1)*t*((e+1)*t+e)+1},easeInOutBack(t){let e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:t=>1-J_.easeOutBounce(1-t),easeOutBounce(t){const e=7.5625,i=2.75;return t<1/i?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*J_.easeInBounce(2*t):.5*J_.easeOutBounce(2*t-1)+.5};function Q_(t){if(t&&"object"==typeof t){const e=t.toString();return"[object CanvasPattern]"===e||"[object CanvasGradient]"===e}return!1}function tb(t){return Q_(t)?t:new Ux(t)}function eb(t){return Q_(t)?t:new Ux(t).saturate(.5).darken(.1).hexString()}const ib=["x","y","borderWidth","radius","tension"],rb=["color","borderColor","backgroundColor"],nb=new Map;
vendor: 2,034 bytes, line 2
2function sb(t,e,i){return function(t,e){e=e||{};const i=t+JSON.stringify(e);let r=nb.get(i);return r||(r=new Intl.NumberFormat(t,e),nb.set(i,r)),r}(e,i).format(t)}const ab={values(t){return Xx(t)?t:""+t},numeric(t,e,i){if(0===t)return"0";const r=this.chart.options.locale;let n,s=t;if(i.length>1){const e=Math.max(Math.abs(i[0].value),Math.abs(i[i.length-1].value));(e<1e-4||e>1e15)&&(n="scientific"),s=function(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}(t,i)}const a=b_(Math.abs(s)),o=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:n,minimumFractionDigits:o,maximumFractionDigits:o};return Object.assign(l,this.options.ticks.format),sb(t,r,l)},logarithmic(t,e,i){if(0===t)return"0";const r=i[e].significand||t/Math.pow(10,Math.floor(b_(t)));return[1,2,3,5,10,15].includes(r)||e>.8*i.length?ab.numeric.call(this,t,e,i):""}};var ob={formatters:ab};const lb=Object.create(null),hb=Object.create(null);function cb(t,e){if(!e)return t;const i=e.split(".");for(let e=0,r=i.length;e<r;++e){const r=i[e];t=t[r]||(t[r]=Object.create(null))}return t}function ub(t,e,i){return"string"==typeof e?n_(cb(t,e),i):n_(cb(t,""),e)}class db{constructor(t,e){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)=>eb(e.backgroundColor),this.hoverBorderColor=(t,e)=>eb(e.borderColor),this.hoverColor=(t,e)=>eb(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={}
vendor: 4,130 bytes, line 2
2,this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(e)}set(t,e){return ub(this,t,e)}get(t){return cb(this,t)}describe(t,e){return ub(hb,t,e)}override(t,e){return ub(lb,t,e)}route(t,e,i,r){const n=cb(this,t),s=cb(this,i),a="_"+e;Object.defineProperties(n,{[a]:{value:n[e],writable:!0},[e]:{enumerable:!0,get(){const t=this[a],e=s[r];return $x(t)?Object.assign({},e,t):Kx(t,e)},set(t){this[a]=t}}})}apply(t){t.forEach((t=>t(this)))}}var pb=new db({_scriptable:t=>!t.startsWith("on"),_indexable:t=>"events"!==t,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(t){t.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),t.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),t.set("animations",{colors:{type:"color",properties:rb},numbers:{type:"number",properties:ib}}),t.describe("animations",{_fallback:"animation"}),t.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}}}})},function(t){t.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(t){t.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width: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:ob.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),t.route("scale.ticks","color","","color"),t.route("scale.grid","color","","borderColor"),t.route("scale.border","color","","borderColor"),t.route("scale.title","color","","color"),t.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t&&"dash"!==t}),t.describe("scales",{_fallback:"scale"}),t.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t})}]);function fb(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 mb(t,e,i,r){let n=(r=r||{}).data=r.data||{},s=r.garbageCollect=r.garbageCollect||[];r.font!==e&&(n=r.data={},s=r.garbageCollect=[],r.font=e),t.save(),t.font=e;let a=0;const o=i.length;let l,h,c,u,d;for(l=0;l<o;l++)if(u=i[l],null==u||Xx(u)){if(Xx(u))for(h=0,c=u.length;h<c;h++)d=u[h],null==d||Xx(d)||(a=fb(t,n,s,a,d))}else a=fb(t,n,s,a,u);t.restore();const p=s.length/2;if(p>i.length){for(l=0;l<p;l++)delete n[s[l]];s.splice(0,p)}return a}function gb(t,e,i){const r=t.currentDevicePixelRatio,n=0!==i?Math.max(i/2,.5):0;return Math.round((e-n)*r)/r+n}function yb(t,e){(e||t)&&((e=e||t.getContext("2d")).save(),e.resetTransform(),e.clearRect(0,0,t.width,t.height),e.restore())}function vb(t,e,i,r){xb(t,e,i,r,null)}function xb(t,e,i,r,n){let s,a,o,l,h,c,u,d;const p=e.pointStyle,f=e.rotation,m=e.radius;let g=(f||0)*y_;if(p&&"object"==typeof p&&(s=p.toString(),"[object HTMLImageElement]"===s||"[object HTMLCanvasElement]"===s))return t.save(),t.translate(i,r),t.rotate(g),t.drawImage(p,-p.width/2,-p.height/2,p.width,p.height),void t.restore();if(!(isNaN(m)||m<=0)){switch(t.beginPath(),p){default:n?t.ellipse(i,r,n/2,m,0,0,f_):t.arc(i,r,m,0,f_),t.closePath();break;case"triangle":c=n?n/2:m,t.moveTo(i+Math.sin(g)*c,r-Math.cos(g)*m),g+=__,t.lineTo(i+Math.sin(g)*c,r-Math.cos(g)*m),g+=__,t.lineTo(i+Math.sin(g)*c,r-Math.cos(g)*m),t.closePath();break;case"rectRounded":h=.516*m,l=m-h,a=Math.cos(g+x_)*l,u=Math.cos(g+x_)*(n?n/2-h:l),o=Math.sin(g+x_)*l,d=Math.sin(g+x_)*(n?
vendor: 4,653 bytes, line 2
2n/2-h:l),t.arc(i-u,r-o,h,g-p_,g-v_),t.arc(i+d,r-a,h,g-v_,g),t.arc(i+u,r+o,h,g,g+v_),t.arc(i-d,r+a,h,g+v_,g+p_),t.closePath();break;case"rect":if(!f){l=Math.SQRT1_2*m,c=n?n/2:l,t.rect(i-c,r-l,2*c,2*l);break}g+=x_;case"rectRot":u=Math.cos(g)*(n?n/2:m),a=Math.cos(g)*m,o=Math.sin(g)*m,d=Math.sin(g)*(n?n/2:m),t.moveTo(i-u,r-o),t.lineTo(i+d,r-a),t.lineTo(i+u,r+o),t.lineTo(i-d,r+a),t.closePath();break;case"crossRot":g+=x_;case"cross":u=Math.cos(g)*(n?n/2:m),a=Math.cos(g)*m,o=Math.sin(g)*m,d=Math.sin(g)*(n?n/2:m),t.moveTo(i-u,r-o),t.lineTo(i+u,r+o),t.moveTo(i+d,r-a),t.lineTo(i-d,r+a);break;case"star":u=Math.cos(g)*(n?n/2:m),a=Math.cos(g)*m,o=Math.sin(g)*m,d=Math.sin(g)*(n?n/2:m),t.moveTo(i-u,r-o),t.lineTo(i+u,r+o),t.moveTo(i+d,r-a),t.lineTo(i-d,r+a),g+=x_,u=Math.cos(g)*(n?n/2:m),a=Math.cos(g)*m,o=Math.sin(g)*m,d=Math.sin(g)*(n?n/2:m),t.moveTo(i-u,r-o),t.lineTo(i+u,r+o),t.moveTo(i+d,r-a),t.lineTo(i-d,r+a);break;case"line":a=n?n/2:Math.cos(g)*m,o=Math.sin(g)*m,t.moveTo(i-a,r-o),t.lineTo(i+a,r+o);break;case"dash":t.moveTo(i,r),t.lineTo(i+Math.cos(g)*(n?n/2:m),r+Math.sin(g)*m);break;case!1:t.closePath()}t.fill(),e.borderWidth>0&&t.stroke()}}function _b(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 bb(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()}function Sb(t){t.restore()}function Eb(t,e,i,r,n){if(!e)return t.lineTo(i.x,i.y);if("middle"===n){const 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 wb(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 Tb(t,e,i,r,n){if(n.strikethrough||n.underline){const s=t.measureText(r),a=e-s.actualBoundingBoxLeft,o=e+s.actualBoundingBoxRight,l=i-s.actualBoundingBoxAscent,h=i+s.actualBoundingBoxDescent,c=n.strikethrough?(l+h)/2:h;t.strokeStyle=t.fillStyle,t.beginPath(),t.lineWidth=n.decorationWidth||2,t.moveTo(a,c),t.lineTo(o,c),t.stroke()}}function Ab(t,e){const i=t.fillStyle;t.fillStyle=e.color,t.fillRect(e.left,e.top,e.width,e.height),t.fillStyle=i}function Mb(t,e,i,r,n,s={}){const a=Xx(e)?e:[e],o=s.strokeWidth>0&&""!==s.strokeColor;let l,h;for(t.save(),t.font=n.string,function(t,e){e.translation&&t.translate(e.translation[0],e.translation[1]),Wx(e.rotation)||t.rotate(e.rotation),e.color&&(t.fillStyle=e.color),e.textAlign&&(t.textAlign=e.textAlign),e.textBaseline&&(t.textBaseline=e.textBaseline)}(t,s),l=0;l<a.length;++l)h=a[l],s.backdrop&&Ab(t,s.backdrop),o&&(s.strokeColor&&(t.strokeStyle=s.strokeColor),Wx(s.strokeWidth)||(t.lineWidth=s.strokeWidth),t.strokeText(h,i,r,s.maxWidth)),t.fillText(h,i,r,s.maxWidth),Tb(t,i,r,h,s),r+=Number(n.lineHeight);t.restore()}function Pb(t,e){const{x:i,y:r,w:n,h:s,radius:a}=e;t.arc(i+a.topLeft,r+a.topLeft,a.topLeft,1.5*p_,p_,!0),t.lineTo(i,r+s-a.bottomLeft),t.arc(i+a.bottomLeft,r+s-a.bottomLeft,a.bottomLeft,p_,v_,!0),t.lineTo(i+n-a.bottomRight,r+s),t.arc(i+n-a.bottomRight,r+s-a.bottomRight,a.bottomRight,v_,0,!0),t.lineTo(i+n,r+a.topRight),t.arc(i+n-a.topRight,r+a.topRight,a.topRight,0,-v_,!0),t.lineTo(i+a.topLeft,r)}const Cb=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,kb=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function Ib(t,e){const i=(""+t).match(Cb);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}const Db=t=>+t||0;function Rb(t,e){const i={},r=$x(e),n=r?Object.keys(e):e,s=$x(t)?r?i=>Kx(t[i],t[e[i]]):e=>t[e]:()=>t;for(const t of n)i[t]=Db(s(t));return i}function Ob(t){return Rb(t,{top:"y",right:"x",bottom:"y",left:"x"})}function Lb(t){return Rb(t,["topLeft","topRight","bottomLeft","bottomRight"])}function Fb(t){const e=Ob(t);return e.width=e.left+e.right,e.height=e.top+e.bottom,e}function Bb(t,e){t=t||{},e=e||pb.font;let i=Kx(t.size,e.size);"string"==typeof i&&(i=parseInt(i,10));let r=Kx(t.style,e.style);r&&!(""+r).match(kb)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const n={family:Kx(t.family,e.family),lineHeight:Ib(Kx(t.lineHeight,e.lineHeight),i),size:i,style:r,weight:Kx(t.weight,e.weight),string:""};return n.string=function(t){return!t||Wx(t.size)||Wx(t.family)?null:(t.style?t.style+" ":"")+(t.weight?t.weight+" ":"")+t.size+"px "+t.family}(n),n}function Nb(t,e,i,r){let n,s,a,o=!0;for(n=0,s=t.length;n<s;++n)if(a=t[n],void 0!==a&&(void 0!==e&&"function"==typeof a&&(a=a(e),o=!1),void 0!==i&&Xx(a)&&(a=a[i%a.length],o=!1),void 0!==a))return r&&!o&&(r.cacheable=!1),a}function Vb(t,e){return Object.assign(Object.create(t),e)}function zb(t,e=[""],i,r,n=(()=>
vendor: 8,642 bytes, line 2
2t[0])){const s=i||t;void 0===r&&(r=Zb("_fallback",t));const a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:t,_rootScopes:s,_fallback:r,_getTarget:n,override:i=>zb([i,...t],e,s,r)};return new Proxy(a,{deleteProperty(e,i){return delete e[i],delete e._keys,delete t[0][i],!0},get(i,r){return Wb(i,r,(()=>function(t,e,i,r){let n;for(const s of e)if(n=Zb(Hb(s,t),i),void 0!==n)return jb(t,n)?qb(i,r,t,n):n}(r,e,t,i)))},getOwnPropertyDescriptor(t,e){return Reflect.getOwnPropertyDescriptor(t._scopes[0],e)},getPrototypeOf(){return Reflect.getPrototypeOf(t[0])},has(t,e){return Jb(t).includes(e)},ownKeys(t){return Jb(t)},set(t,e,i){const r=t._storage||(t._storage=n());return t[e]=r[e]=i,delete t._keys,!0}})}function Gb(t,e,i,r){const n={_cacheable:!1,_proxy:t,_context:e,_subProxy:i,_stack:new Set,_descriptors:Ub(t,r),setContext:e=>Gb(t,e,i,r),override:n=>Gb(t.override(n),e,i,r)};return new Proxy(n,{deleteProperty(e,i){return delete e[i],delete t[i],!0},get(t,e,i){return Wb(t,e,(()=>function(t,e,i){const{_proxy:r,_context:n,_subProxy:s,_descriptors:a}=t;let o=r[e];return u_(o)&&a.isScriptable(e)&&(o=function(t,e,i,r){const{_proxy:n,_context:s,_subProxy:a,_stack:o}=i;if(o.has(t))throw new Error("Recursion detected: "+Array.from(o).join("->")+"->"+t);o.add(t);let l=e(s,a||r);return o.delete(t),jb(t,l)&&(l=qb(n._scopes,n,t,l)),l}(e,o,t,i)),Xx(o)&&o.length&&(o=function(t,e,i,r){const{_proxy:n,_context:s,_subProxy:a,_descriptors:o}=i;if(void 0!==s.index&&r(t))return e[s.index%e.length];if($x(e[0])){const i=e,r=n._scopes.filter((t=>t!==i));e=[];for(const l of i){const i=qb(r,n,t,l);e.push(Gb(i,s,a&&a[t],o))}}return e}(e,o,t,a.isIndexable)),jb(e,o)&&(o=Gb(o,n,s&&s[e],a)),o}(t,e,i)))},getOwnPropertyDescriptor(e,i){return e._descriptors.allKeys?Reflect.has(t,i)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(t,i)},getPrototypeOf(){return Reflect.getPrototypeOf(t)},has(e,i){return Reflect.has(t,i)},ownKeys(){return Reflect.ownKeys(t)},set(e,i,r){return t[i]=r,delete e[i],!0}})}function Ub(t,e={scriptable:!0,indexable:!0}){const{_scriptable:i=e.scriptable,_indexable:r=e.indexable,_allKeys:n=e.allKeys}=t;return{allKeys:n,scriptable:i,indexable:r,isScriptable:u_(i)?i:()=>i,isIndexable:u_(r)?r:()=>r}}const Hb=(t,e)=>t?t+h_(e):e,jb=(t,e)=>$x(e)&&"adapters"!==t&&(null===Object.getPrototypeOf(e)||e.constructor===Object);function Wb(t,e,i){if(Object.prototype.hasOwnProperty.call(t,e)||"constructor"===e)return t[e];const r=i();return t[e]=r,r}function Xb(t,e,i){return u_(t)?t(e,i):t}const $b=(t,e)=>!0===t?e:"string"==typeof t?l_(e,t):void 0;function Yb(t,e,i,r,n){for(const s of e){const e=$b(i,s);if(e){t.add(e);const s=Xb(e._fallback,i,n);if(void 0!==s&&s!==i&&s!==r)return s}else if(!1===e&&void 0!==r&&i!==r)return null}return!1}function qb(t,e,i,r){const n=e._rootScopes,s=Xb(e._fallback,i,r),a=[...t,...n],o=new Set;o.add(r);let l=Kb(o,a,i,s||i,r);return null!==l&&(void 0===s||s===i||(l=Kb(o,a,s,l,r),null!==l))&&zb(Array.from(o),[""],n,s,(()=>function(t,e,i){const r=t._getTarget();e in r||(r[e]={});const n=r[e];return Xx(n)&&$x(i)?i:n||{}}(e,i,r)))}function Kb(t,e,i,r,n){for(;i;)i=Yb(t,e,i,r,n);return i}function Zb(t,e){for(const i of e){if(!i)continue;const e=i[t];if(void 0!==e)return e}}function Jb(t){let e=t._keys;return e||(e=t._keys=function(t){const e=new Set;for(const i of t)for(const t of Object.keys(i).filter((t=>!t.startsWith("_"))))e.add(t);return Array.from(e)}(t._scopes)),e}function Qb(t,e,i,r){const{iScale:n}=t,{key:s="r"}=this._parsing,a=new Array(r);let o,l,h,c;for(o=0,l=r;o<l;++o)h=o+i,c=e[h],a[o]={r:n.parse(l_(c,s),h)};return a}const tS=Number.EPSILON||1e-14,eS=(t,e)=>e<t.length&&!t[e].skip&&t[e],iS=t=>"x"===t?"y":"x";function rS(t,e,i,r){const n=t.skip?e:t,s=e,a=i.skip?e:i,o=I_(s,n),l=I_(a,s);let h=o/(o+l),c=l/(o+l);h=isNaN(h)?0:h,c=isNaN(c)?0:c;const u=r*h,d=r*c;return{previous:{x:s.x-u*(a.x-n.x),y:s.y-u*(a.y-n.y)},next:{x:s.x+d*(a.x-n.x),y:s.y+d*(a.y-n.y)}}}function nS(t,e,i){return Math.max(Math.min(t,i),e)}function sS(t,e,i,r,n){let s,a,o,l;if(e.spanGaps&&(t=t.filter((t=>!t.skip))),"monotone"===e.cubicInterpolationMode)!function(t,e="x"){const i=iS(e),r=t.length,n=Array(r).fill(0),s=Array(r);let a,o,l,h=eS(t,0);for(a=0;a<r;++a)if(o=l,l=h,h=eS(t,a+1),l){if(h){const t=h[e]-l[e];n[a]=0!==t?(h[i]-l[i])/t:0}s[a]=o?h?S_(n[a-1])!==S_(n[a])?0:(n[a-1]+n[a])/2:n[a-1]:n[a]}!function(t,e,i){const r=t.length;let n,s,a,o,l,h=eS(t,0);for(let c=0;c<r-1;++c)l=h,h=eS(t,c+1),l&&h&&(E_(e[c],0,tS)?i[c]=i[c+1]=0:(n=i[c]/e[c],s=i[c+1]/e[c],o=Math.pow(n,2)+Math.pow(s,2),o<=9||(a=3/Math.sqrt(o),i[c]=n*a*e[c],i[c+1]=s*a*e[c])))}(t,n,s),function(t,e,i="x"){const r=iS(i),n=t.length;let s,a,o,l=eS(t,0);for(let h=0;h<n;++h){if(a=o,o=l,l=eS(t,h+1),!o)continue;const n=o[i],c=o[r];a&&(s=(n-a[i])/3,o[`cp1${i}`]=n-s,o[`cp1${r}`]=c-s*e[h]),l&&(s=(l[i]-n)/3,o[`cp2${i}`]=n+s,o[`cp2${r}`]=c+s*e[h])}}(t,s,e)}(t,n);else{let i=r?t[t.length-1]:t[0];for(s=0,a=t.length;s<a;++s)o=t[s],l=rS(i,o,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&&function(t,e){let i,r,n,s,a,o=_b(t[0],e);for(i=0,r=t.length;i<r;++i)a=s,s=o,o=i<r-1&&_b(t[i+1],e),s&&(n=t[i],a&&(n.cp1x=nS(n.cp1x,e.left,e.right),n.cp1y=nS(n.cp1y,e.top,e.bottom)),o&&(n.cp2x=nS(n.cp2x,e.left,e.right),n.cp2y=nS(n.cp2y,e.top,e.bottom)))}(t,i)}function aS(){return"undefined"!=typeof window&&"undefined"!=typeof document}function oS(t){let e=t.parentNode;return e&&"[object ShadowRoot]"===e.toString()&&(e=e.host),e}function lS(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}const hS=t=>t.ownerDocument.defaultView.getComputedStyle(t,null),cS=["top","right","bottom","left"];function uS(t,e,i){const r={};i=i?"-"+i:"";for(let n=0;n<4;n++){const s=cS[n];r[s]=parseFloat(t[e+"-"+s+i])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const dS=(t,e,i)=>(t>0||e>0)&&(!i||!i.shadowRoot);function pS(t,e){if("native"in t)return t;const{canvas:i,currentDevicePixelRatio:r}=e,n=hS(i),s="border-box"===n.boxSizing,a=uS(n,"padding"),o=uS(n,"border","width"),{x:l,y:h,box:c}=function(t,e){const i=t.touches,r=i&&i.length?i[0]:t,{offsetX:n,offsetY:s}=r;let a,o,l=!1;if(dS(n,s,t.target))a=n,o=s;else{const t=e.getBoundingClientRect();a=r.clientX-t.left,o=r.clientY-t.top,l=!0}return{x:a,y:o,box:l}}(t,i),u=a.left+(c&&o.left),d=a.top+(c&&o.top);let{width:p,height:f}=e;return s&&(p-=a.width+o.width,f-=a.height+o.height),{x:Math.round((l-u)/p*i.width/r),y:Math.round((h-d)/f*i.height/r)}}const fS=t=>Math.round(10*t)/10;function mS(t,e,i){const r=e||1,n=Math.floor(t.height*r),s=Math.floor(t.width*r);t.height=Math.floor(t.height),t.width=Math.floor(t.width);const 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)}const gS=function(){let t=!1;try{const e={get passive(){return t=!0,!1}};aS()&&(window.addEventListener("test",null,e),window.removeEventListener("test",null,e))}catch(t){}return t}();function yS(t,e){const i=function(t,e){return hS(t).getPropertyValue(e)}(t,e),r=i&&i.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function vS(t,e,i,r){return{x:t.x+i*(e.x-t.x),y:t.y+i*(e.y-t.y)}}function xS(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 _S(t,e,i,r){const n={x:t.cp2x,y:t.cp2y},s={x:e.cp1x,y:e.cp1y},a=vS(t,n,i),o=vS(n,s,i),l=vS(s,e,i),h=vS(a,o,i),c=vS(o,l,i);return vS(h,c,i)}function bS(t,e,i){return t?function(t,e){return{x(i){return t+t+e-i},setWidth(t){e=t},textAlign(t){return"center"===t?t:"right"===t?"left":"right"},xPlus(t,e){return t-e},leftForLtr(t,e){return t-e}}}(e,i):{x(t){return t},setWidth(t){},textAlign(t){return t},xPlus(t,e){return t+e},leftForLtr(t,e){return t}}}function SS(t,e){let i,r;"ltr"!==e&&"rtl"!==e||(i=t.canvas.style,r=[i.getPropertyValue("direction"),i.getPropertyPriority("direction")],i.setProperty("direction",e,"important"),t.prevTextDirection=r)}function ES(t,e){void 0!==e&&(delete t.prevTextDirection,t.canvas.style.setProperty("direction",e[0],e[1]))}function wS(t){return"angle"===t?{between:O_,compare:D_,normalize:R_}:{between:F_,compare:(t,e)=>t-e,normalize:t=>t}}function TS({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 AS(t,e,i){if(!i)return[t];const{property:r,start:n,end:s}=i,a=e.length,{compare:o,between:l,normalize:h}=wS(r),{start:c,end:u,loop:d,style:p}
vendor: 2,853 bytes, line 2
2=function(t,e,i){const{property:r,start:n,end:s}=i,{between:a,normalize:o}=wS(r),l=e.length;let h,c,{start:u,end:d,loop:p}=t;if(p){for(u+=l,d+=l,h=0,c=l;h<c&&a(o(e[u%l][r]),n,s);++h)u--,d--;u%=l,d%=l}return d<u&&(d+=l),{start:u,end:d,loop:p,style:t.style}}(t,e,i),f=[];let m,g,y,v=!1,x=null;for(let t=c,i=c;t<=u;++t)g=e[t%a],g.skip||(m=h(g[r]),m!==y&&(v=l(m,n,s),null===x&&(v||l(n,y,m)&&0!==o(n,y))&&(x=0===o(m,n)?t:i),null!==x&&(!v||0===o(s,m)||l(s,y,m))&&(f.push(TS({start:x,end:t,loop:d,count:a,style:p})),x=null),i=t,y=m));return null!==x&&f.push(TS({start:x,end:u,loop:d,count:a,style:p})),f}function MS(t,e){const i=[],r=t.segments;for(let n=0;n<r.length;n++){const s=AS(r[n],t.points,e);s.length&&i.push(...s)}return i}function PS(t){return{backgroundColor:t.backgroundColor,borderCapStyle:t.borderCapStyle,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderJoinStyle:t.borderJoinStyle,borderWidth:t.borderWidth,borderColor:t.borderColor}}function CS(t,e){if(!e)return!1;const i=[],r=function(t,e){return Q_(e)?(i.includes(e)||i.push(e),i.indexOf(e)):e};return JSON.stringify(t,r)!==JSON.stringify(e,r)}class kS{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,i,r){const 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=H_.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(t=Date.now()){let e=0;this._charts.forEach(((i,r)=>{if(!i.running||!i.items.length)return;const n=i.items;let s,a=n.length-1,o=!1;for(;a>=0;--a)s=n[a],s._active?(s._total>i.duration&&(i.duration=s._total),s.tick(t),o=!0):(n[a]=n[n.length-1],n.pop());o&&(r.draw(),this._notify(r,i,t,"progress")),n.length||(i.running=!1,this._notify(r,i,t,"complete"),i.initial=!1),e+=n.length})),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let 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){const 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;const e=this._charts.get(t);return!!(e&&e.running&&e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const i=e.items;let 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 IS=new kS;const DS="transparent",RS={boolean(t,e,i){return i>.5?e:t},color(t,e,i){const r=tb(t||DS),n=r.valid&&tb(e||DS);
vendor: 5,752 bytes, line 2
2return n&&n.valid?n.mix(r,i).hexString():e},number(t,e,i){return t+(e-t)*i}};class OS{constructor(t,e,i,r){const n=e[i];r=Nb([t.to,r,n,t.from]);const s=Nb([t.from,n,r]);this._active=!0,this._fn=t.fn||RS[t.type||typeof s],this._easing=J_[t.easing]||J_.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=s,this._to=r,this._promises=void 0}active(){return this._active}update(t,e,i){if(this._active){this._notify(!1);const r=this._target[this._prop],n=i-this._start,s=this._duration-n;this._start=i,this._duration=Math.floor(Math.max(s,t.duration)),this._total+=n,this._loop=!!t.loop,this._to=Nb([t.to,e,r,t.from]),this._from=Nb([t.from,r,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,i=this._duration,r=this._prop,n=this._from,s=this._loop,a=this._to;let o;if(this._active=n!==a&&(s||e<i),!this._active)return this._target[r]=a,void this._notify(!0);e<0?this._target[r]=n:(o=e/i%2,o=s&&o>1?2-o:o,o=this._easing(Math.min(1,Math.max(0,o))),this._target[r]=this._fn(n,a,o))}wait(){const t=this._promises||(this._promises=[]);return new Promise(((e,i)=>{t.push({res:e,rej:i})}))}_notify(t){const e=t?"res":"rej",i=this._promises||[];for(let t=0;t<i.length;t++)i[t][e]()}}class LS{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!$x(t))return;const e=Object.keys(pb.animation),i=this._properties;Object.getOwnPropertyNames(t).forEach((r=>{const n=t[r];if(!$x(n))return;const s={};for(const t of e)s[t]=n[t];(Xx(n.properties)&&n.properties||[r]).forEach((t=>{t!==r&&i.has(t)||i.set(t,s)}))}))}_animateOptions(t,e){const i=e.options,r=function(t,e){if(!e)return;let i=t.options;if(i)return i.$shared&&(t.options=i=Object.assign({},i,{$shared:!1,$animations:{}})),i;t.options=e}(t,i);if(!r)return[];const n=this._createAnimations(r,i);return i.$shared&&function(t,e){const i=[],r=Object.keys(e);for(let e=0;e<r.length;e++){const n=t[r[e]];n&&n.active()&&i.push(n.wait())}return Promise.all(i)}(t.options.$animations,i).then((()=>{t.options=i}),(()=>{})),n}_createAnimations(t,e){const i=this._properties,r=[],n=t.$animations||(t.$animations={}),s=Object.keys(e),a=Date.now();let o;for(o=s.length-1;o>=0;--o){const l=s[o];if("$"===l.charAt(0))continue;if("options"===l){r.push(...this._animateOptions(t,e));continue}const h=e[l];let c=n[l];const u=i.get(l);if(c){if(u&&c.active()){c.update(u,h,a);continue}c.cancel()}u&&u.duration?(n[l]=c=new OS(u,t,l,h),r.push(c)):t[l]=h}return r}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const i=this._createAnimations(t,e);return i.length?(IS.add(this._chart,i),!0):void 0}}function FS(t,e){const 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 BS(t,e){const i=[],r=t._getSortedDatasetMetas(e);let n,s;for(n=0,s=r.length;n<s;++n)i.push(r[n].index);return i}function NS(t,e,i,r={}){const n=t.keys,s="single"===r.mode;let a,o,l,h;if(null!==e){for(a=0,o=n.length;a<o;++a){if(l=+n[a],l===i){if(r.all)continue;break}h=t.values[l],Yx(h)&&(s||0===e||S_(e)===S_(h))&&(e+=h)}return e}}function VS(t,e){const i=t&&t.options.stacked;return i||void 0===i&&void 0!==e.stack}function zS(t,e,i){const r=t[e]||(t[e]={});return r[i]||(r[i]={})}function GS(t,e,i,r){for(const n of e.getMatchingVisibleMetas(r).reverse()){const e=t[n.index];if(i&&e>0||!i&&e<0)return n.index}return null}function US(t,e){const{chart:i,_cachedMeta:r}=t,n=i._stacks||(i._stacks={}),{iScale:s,vScale:a,index:o}=r,l=s.axis,h=a.axis,c=function(t,e,i){return`${t.id}.${e.id}.${i.stack||i.type}`}(s,a,r),u=e.length;let d;for(let t=0;t<u;++t){const i=e[t],{[l]:s,[h]:u}=i;d=(i._stacks||(i._stacks={}))[h]=zS(n,c,s),d[o]=u,d._top=GS(d,a,!0,r.type),d._bottom=GS(d,a,!1,r.type),(d._visualValues||(d._visualValues={}))[o]=u}}function HS(t,e){const i=t.scales;return Object.keys(i).filter((t=>i[t].axis===e)).shift()}function jS(t,e){const i=t.controller.index,r=t.vScale&&t.vScale.axis;if(r){e=e||t._parsed;for(const t of e){const e=t._stacks;if(!e||void 0===e[r]||void 0===e[r][i])return;delete e[r][i],void 0!==e[r]._visualValues&&void 0!==e[r]._visualValues[i]&&delete e[r]._visualValues[i]}}}const WS=t=>"reset"===t||"none"===t,XS=(t,e)=>e?t:Object.assign({},t);class $S{static defaults={};static datasetElementType=null;static dataElementType=null;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.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=VS(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&jS(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,i=this.getDataset(),r=(t,e,i,r)=>"x"===t?e:"r"===t?r:i,n=e.xAxisID=Kx(i.xAxisID,HS(t,"x")),s=e.yAxisID=Kx(i.yAxisID,HS(t,"y")),a=e.rAxisID=Kx(i.rAxisID,HS(t,"r")),o=e.indexAxis,l=e.iAxisID=r(o,n,s,a),h=e.vAxisID=r(o,s,n,a);e.xScale=this.getScaleForId(n),e.yScale=this.getScaleForId(s),e.rScale=this.getScaleForId(a),e.
vendor: 4,141 bytes, line 2
2iScale=this.getScaleForId(l),e.vScale=this.getScaleForId(h)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&G_(this._data,this),t._stacked&&jS(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),i=this._data;if($x(e)){const t=this._cachedMeta;this._data=function(t,e){const{iScale:i,vScale:r}=e,n="x"===i.axis?"x":"y",s="x"===r.axis?"x":"y",a=Object.keys(t),o=new Array(a.length);let l,h,c;for(l=0,h=a.length;l<h;++l)c=a[l],o[l]={[n]:c,[s]:t[c]};return o}(e,t)}else if(i!==e){if(i){G_(i,this);const t=this._cachedMeta;jS(t),t._parsed=[]}e&&Object.isExtensible(e)&&((r=e)._chartjs?r._chartjs.listeners.push(this):(Object.defineProperty(r,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[this]}}),z_.forEach((t=>{const e="_onData"+h_(t),i=r[t];Object.defineProperty(r,t,{configurable:!0,enumerable:!1,value(...t){const n=i.apply(this,t);return r._chartjs.listeners.forEach((i=>{"function"==typeof i[e]&&i[e](...t)})),n}})})))),this._syncList=[],this._data=e}var r}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,i=this.getDataset();let r=!1;this._dataCheck();const n=e._stacked;e._stacked=VS(e.vScale,e),e.stack!==i.stack&&(r=!0,jS(e),e.stack=i.stack),this._resyncElements(t),(r||n!==e._stacked)&&US(this,e._parsed)}configure(){const 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){const{_cachedMeta:i,_data:r}=this,{iScale:n,_stacked:s}=i,a=n.axis;let o,l,h,c=0===t&&e===r.length||i._sorted,u=t>0&&i._parsed[t-1];if(!1===this._parsing)i._parsed=r,i._sorted=!0,h=r;else{h=Xx(r[t])?this.parseArrayData(i,r,t,e):$x(r[t])?this.parseObjectData(i,r,t,e):this.parsePrimitiveData(i,r,t,e);const n=()=>null===l[a]||u&&l[a]<u[a];for(o=0;o<e;++o)i._parsed[o+t]=l=h[o],c&&(n()&&(c=!1),u=l);i._sorted=c}s&&US(this,h)}parsePrimitiveData(t,e,i,r){const{iScale:n,vScale:s}=t,a=n.axis,o=s.axis,l=n.getLabels(),h=n===s,c=new Array(r);let u,d,p;for(u=0,d=r;u<d;++u)p=u+i,c[u]={[a]:h||n.parse(l[p],p),[o]:s.parse(e[p],p)};return c}parseArrayData(t,e,i,r){const{xScale:n,yScale:s}=t,a=new Array(r);let o,l,h,c;for(o=0,l=r;o<l;++o)h=o+i,c=e[h],a[o]={x:n.parse(c[0],h),y:s.parse(c[1],h)};return a}parseObjectData(t,e,i,r){const{xScale:n,yScale:s}=t,{xAxisKey:a="x",yAxisKey:o="y"}=this._parsing,l=new Array(r);let h,c,u,d;for(h=0,c=r;h<c;++h)u=h+i,d=e[u],l[h]={x:n.parse(l_(d,a),u),y:s.parse(l_(d,o),u)};return l}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,i){const r=this.chart,n=this._cachedMeta,s=e[t.axis];return NS({keys:BS(r,!0),values:e._stacks[t.axis]._visualValues},s,n.index,{mode:i})}updateRangeFromParsed(t,e,i,r){const n=i[e.axis];let s=null===n?NaN:n;const a=r&&i._stacks[e.axis];r&&a&&(r.values=a,s=NS(r,n,this._cachedMeta.index)),t.min=Math.min(t.min,s),t.max=Math.max(t.max,s)}getMinMax(t,e){const i=this._cachedMeta,r=i._parsed,n=i._sorted&&t===i.iScale,s=r.length,a=this._getOtherScale(t),o=((t,e,i)=>t&&!e.hidden&&e._stacked&&{keys:BS(i,!0),values:null})(e,i,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:h,max:c}=function(t){const{min:e,max:i,minDefined:r,maxDefined:n}=t.getUserBounds();return{min:r?e:Number.NEGATIVE_INFINITY,max:n?i:Number.POSITIVE_INFINITY}}(a);let u,d;function p(){d=r[u];const e=d[a.axis];return!Yx(d[t.axis])||h>e||c<e}for(u=0;u<s&&(p()||(this.updateRangeFromParsed(l,t,d,o),!n));++u);if(n)for(u=s-1;u>=0;--u)if(!p()){this.updateRangeFromParsed(l,t,d,o);break}return l}getAllParsedValues(t){const e=this._cachedMeta._parsed,i=[];let r,n,s;for(r=0,n=e.length;r<n;++r)s=e[r][t.axis],Yx(s)&&i.push(s);return i}getMaxOverflow(){return!1}
vendor: 5,496 bytes, line 2
2getLabelAndValue(t){const 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){const e=this._cachedMeta;this.update(t||"default"),e._clip=function(t){let e,i,r,n;return $x(t)?(e=t.top,i=t.right,r=t.bottom,n=t.left):e=i=r=n=t,{top:e,right:i,bottom:r,left:n,disabled:!1===t}}(Kx(this.options.clip,function(t,e,i){if(!1===i)return!1;const r=FS(t,i),n=FS(e,i);return{top:n.end,right:r.end,bottom:n.start,left:r.start}}(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this.chart,i=this._cachedMeta,r=i.data||[],n=e.chartArea,s=[],a=this._drawStart||0,o=this._drawCount||r.length-a,l=this.options.drawActiveElementsOnTop;let h;for(i.dataset&&i.dataset.draw(t,n,a,o),h=a;h<a+o;++h){const e=r[h];e.hidden||(e.active&&l?s.push(e):e.draw(t,n))}for(h=0;h<s.length;++h)s[h].draw(t,n)}getStyle(t,e){const i=e?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(i):this.resolveDataElementOptions(t||0,i)}getContext(t,e,i){const r=this.getDataset();let n;if(t>=0&&t<this._cachedMeta.data.length){const e=this._cachedMeta.data[t];n=e.$context||(e.$context=function(t,e,i){return Vb(t,{active:!1,dataIndex:e,parsed:void 0,raw:void 0,element:i,index:e,mode:"default",type:"data"})}(this.getContext(),t,e)),n.parsed=this.getParsed(t),n.raw=r.data[t],n.index=n.dataIndex=t}else n=this.$context||(this.$context=function(t,e){return Vb(t,{active:!1,dataset:void 0,datasetIndex:e,index:e,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),n.dataset=r,n.index=n.datasetIndex=this.index;return n.active=!!e,n.mode=i,n}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){const r="active"===e,n=this._cachedDataOpts,s=t+"-"+e,a=n[s],o=this.enableOptionSharing&&c_(i);if(a)return XS(a,o);const l=this.chart.config,h=l.datasetElementScopeKeys(this._type,t),c=r?[`${t}Hover`,"hover",t,""]:[t,""],u=l.getOptionScopes(this.getDataset(),h),d=Object.keys(pb.elements[t]),p=l.resolveNamedOptions(u,d,(()=>this.getContext(i,r,e)),c);return p.$shared&&(p.$shared=o,n[s]=Object.freeze(XS(p,o))),p}_resolveAnimations(t,e,i){const r=this.chart,n=this._cachedDataOpts,s=`animation-${e}`,a=n[s];if(a)return a;let o;if(!1!==r.options.animation){const r=this.chart.config,n=r.datasetAnimationScopeKeys(this._type,e),s=r.getOptionScopes(this.getDataset(),n);o=r.createResolver(s,this.getContext(t,i,e))}const l=new LS(r,o&&o.animations);return o&&o._cacheable&&(n[s]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||WS(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const 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){WS(r)?Object.assign(t,i):this._resolveAnimations(e,r).update(t,i)}updateSharedOptions(t,e,i){t&&!WS(e)&&this._resolveAnimations(void 0,e).update(t,i)}_setStyle(t,e,i,r){t.active=r;const 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(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,i=this._cachedMeta.data;for(const[t,e,i]of this._syncList)this[t](e,i);this._syncList=[];const 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){const r=this._cachedMeta,n=r.data,s=t+e;let a;const o=t=>{for(t.length+=e,a=t.length-1;a>=s;a--)t[a]=t[a-e]};for(o(n),a=t;a<s;++a)n[a]=new this.dataElementType;this._parsing&&o(r._parsed),this.parse(t,e),i&&this.updateElements(n,t,e,"reset")}updateElements(t,e,i,r){}_removeElements(t,e){const i=this._cachedMeta;if(this._parsing){const r=i._parsed.splice(t,e);i._stacked&&jS(i,r)}i.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,i,r]=t;this[e](i,r)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const 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]);const i=arguments.length-2;i&&this._sync(["_insertElements",t,i])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function YS(t){const e=t.iScale,i=function(t,e){if(!t._cache.$bar){const i=t.getMatchingVisibleMetas(e);let r=[];for(let e=0,n=i.length;e<n;e++)r=r.concat(i[e].controller.getAllParsedValues(t));t._cache.$bar=U_(r.sort(((t,e)=>t-e)))}return t._cache.$bar}(e,t.type);let r,n,s,a,o=e._length;const l=()=>{32767!==s&&-32768!==s&&(c_(a)&&(o=Math.min(o,Math.abs(s-a)||o)),a=s)};for(r=0,n=i.length;r<n;++r)s=e.getPixelForValue(i[r]),l();for(a=void 0,r=0,n=e.ticks.length;r<n;++r)s=e.getPixelForTick(r),l();return o}
vendor: 5,470 bytes, line 2
2function qS(t,e,i,r){return Xx(t)?function(t,e,i,r){const n=i.parse(t[0],r),s=i.parse(t[1],r),a=Math.min(n,s),o=Math.max(n,s);let 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}}(t,e,i,r):e[i.axis]=i.parse(t,r),e}function KS(t,e,i,r){const n=t.iScale,s=t.vScale,a=n.getLabels(),o=n===s,l=[];let h,c,u,d;for(h=i,c=i+r;h<c;++h)d=e[h],u={},u[n.axis]=o||n.parse(a[h],h),l.push(qS(d,u,s,h));return l}function ZS(t){return t&&void 0!==t.barStart&&void 0!==t.barEnd}function JS(t,e,i,r){let n=e.borderSkipped;const s={};if(!n)return void(t.borderSkipped=s);if(!0===n)return void(t.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:a,end:o,reverse:l,top:h,bottom:c}=function(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}}(t);"middle"===n&&i&&(t.enableBorderRadius=!0,(i._top||0)===r?n=h:(i._bottom||0)===r?n=c:(s[QS(c,a,o,l)]=!0,n=h)),s[QS(n,a,o,l)]=!0,t.borderSkipped=s}function QS(t,e,i,r){var n,s,a;return r?(a=i,t=tE(t=(n=t)===(s=e)?a:n===a?s:n,i,e)):t=tE(t,e,i),t}function tE(t,e,i){return"start"===t?e:"end"===t?i:t}function eE(t,{inflateAmount:e},i){t.inflateAmount="auto"===e?1===i?.33:0:e}class iE extends $S{static id="doughnut";static 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"};static descriptors={_scriptable:t=>"spacing"!==t,_indexable:t=>"spacing"!==t&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:i,color:r}}=t.legend.options;return e.labels.map(((e,n)=>{const s=t.getDatasetMeta(0).controller.getStyle(n);return{text:e,fillStyle:s.backgroundColor,strokeStyle:s.borderColor,fontColor:r,lineWidth:s.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(n),index:n}}))}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}}}};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){const i=this.getDataset().data,r=this._cachedMeta;if(!1===this._parsing)r._parsed=i;else{let n,s,a=t=>+i[t];if($x(i[t])){const{key:t="value"}=this._parsing;a=e=>+l_(i[e],t)}for(n=t,s=t+e;n<s;++n)r._parsed[n]=a(n)}}_getRotation(){return M_(this.options.rotation-90)}_getCircumference(){return M_(this.options.circumference)}_getRotationExtents(){let t=f_,e=-f_;for(let i=0;i<this.chart.data.datasets.length;++i)if(this.chart.isDatasetVisible(i)&&this.chart.getDatasetMeta(i).type===this._type){const 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){const e=this.chart,{chartArea:i}=e,r=this._cachedMeta,n=r.data,s=this.getMaxBorderWidth()+this.getMaxOffset(n)+this.options.spacing,a=Math.max((Math.min(i.width,i.height)-s)/2,0),o=Math.min((_=this.options.cutout,b=a,"string"==typeof _&&_.endsWith("%")?parseFloat(_)/100:+_/b),1),l=this._getRingWeight(this.index),{circumference:h,rotation:c}=this._getRotationExtents(),{ratioX:u,ratioY:d,offsetX:p,offsetY:f}=function(t,e,i){let r=1,n=1,s=0,a=0;if(e<f_){const o=t,l=o+e,h=Math.cos(o),c=Math.sin(o),u=Math.cos(l),d=Math.sin(l),p=(t,e,r)=>O_(t,o,l,!0)?1:Math.max(e,e*i,r,r*i),f=(t,e,r)=>O_(t,o,l,!0)?-1:Math.min(e,e*i,r,r*i),m=p(0,h,u),g=p(v_,c,d),y=f(p_,h,u),v=f(p_+v_,c,d);r=(m-y)/2,n=(g-v)/2,s=-(m+y)/2,a=-(g+v)/2}return{ratioX:r,ratioY:n,offsetX:s,offsetY:a}}(c,h,o),m=(i.width-s)/u,g=(i.height-s)/d,y=Math.max(Math.min(m,g)/2,0),v=Zx(this.options.radius,y),x=(v-Math.max(v*o,0))/this._getVisibleDatasetWeightTotal();var _,b;this.offsetX=p*v,this.offsetY=f*v,r.total=this.calculateTotal(),this.outerRadius=v-x*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-x*l,0),this.updateElements(n,0,n.length,t)}_circumference(t,e){const i=this.options,r=this._cachedMeta,n=this._getCircumference();return e&&i.animation.animateRotate||!this.chart.getDataVisibility(t)||null===r._parsed[t]||r.data[t].hidden?0:this.calculateCircumference(r._parsed[t]*n/f_)}updateElements(t,e,i,r){const n="reset"===r,s=this.chart,a=s.chartArea,o=s.options.animation,l=(a.left+a.right)/2,h=(a.top+a.bottom)/2,c=n&&o.animateScale,u=c?0:this.innerRadius,d=c?0:this.outerRadius,{sharedOptions:p,includeOptions:f}=this._getSharedOptions(e,r);let m,g=this._getRotation();for(m=0;m<e;++m)g+=this._circumference(m,n);for(m=e;m<e+i;++m){const e=this._circumference(m,n),i=t[m],s={x:l+this.offsetX,y:h+this.offsetY,startAngle:g,endAngle:g+e,circumference:e,outerRadius:d,innerRadius:u};f&&(s.options=p||this.resolveDataElementOptions(m,i.active?"active":r)),g+=e,this.updateElement(i,m,s,r)}}calculateTotal(){const t=this._cachedMeta,e=t.data;let i,r=0;for(i=0;i<e.length;i++){const n=t._parsed[i];null===n||isNaN(n)||!this.chart.getDataVisibility(i)||e[i].hidden||(r+=Math.abs(n))}return r}calculateCircumference(t){const e=this._cachedMeta.total;return e>0&&!isNaN(t)?f_*(Math.abs(t)/e):0}
vendor: 4,083 bytes, line 2
2getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,r=i.data.labels||[],n=sb(e._parsed[t],i.options.locale);return{label:r[t]||"",value:n}}getMaxBorderWidth(t){let e=0;const i=this.chart;let r,n,s,a,o;if(!t)for(r=0,n=i.data.datasets.length;r<n;++r)if(i.isDatasetVisible(r)){s=i.getDatasetMeta(r),t=s.data,a=s.controller;break}if(!t)return 0;for(r=0,n=t.length;r<n;++r)o=a.resolveDataElementOptions(r),"inner"!==o.borderAlign&&(e=Math.max(e,o.borderWidth||0,o.hoverBorderWidth||0));return e}getMaxOffset(t){let e=0;for(let i=0,r=t.length;i<r;++i){const 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(Kx(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}class rE extends $S{static id="polarArea";static defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:i,color:r}}=t.legend.options;return e.labels.map(((e,n)=>{const s=t.getDatasetMeta(0).controller.getStyle(n);return{text:e,fillStyle:s.backgroundColor,strokeStyle:s.borderColor,fontColor:r,lineWidth:s.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(n),index:n}}))}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart,r=i.data.labels||[],n=sb(e._parsed[t].r,i.options.locale);return{label:r[t]||"",value:n}}parseObjectData(t,e,i,r){return Qb.bind(this)(t,e,i,r)}update(t){const e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}getMinMax(){const t=this._cachedMeta,e={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach(((t,i)=>{const 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(){const t=this.chart,e=t.chartArea,i=t.options,r=Math.min(e.right-e.left,e.bottom-e.top),n=Math.max(r/2,0),s=(n-Math.max(i.cutoutPercentage?n/100*i.cutoutPercentage:1,0))/t.getVisibleDatasetCount();this.outerRadius=n-s*this.index,this.innerRadius=this.outerRadius-s}updateElements(t,e,i,r){const n="reset"===r,s=this.chart,a=s.options.animation,o=this._cachedMeta.rScale,l=o.xCenter,h=o.yCenter,c=o.getIndexAngle(0)-.5*p_;let u,d=c;const p=360/this.countVisibleElements();for(u=0;u<e;++u)d+=this._computeAngle(u,r,p);for(u=e;u<e+i;u++){const e=t[u];let i=d,f=d+this._computeAngle(u,r,p),m=s.getDataVisibility(u)?o.getDistanceFromCenterForValue(this.getParsed(u).r):0;d=f,n&&(a.animateScale&&(m=0),a.animateRotate&&(i=f=c));const g={x:l,y:h,innerRadius:0,outerRadius:m,startAngle:i,endAngle:f,options:this.resolveDataElementOptions(u,e.active?"active":r)};this.updateElement(e,u,g,r)}}countVisibleElements(){const t=this._cachedMeta;let 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)?M_(this.resolveDataElementOptions(t,e).angle||i):0}}var nE=Object.freeze({__proto__:null,BarController:class extends $S{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(t,e,i,r){return KS(t,e,i,r)}
vendor: 4,879 bytes, line 2
2parseArrayData(t,e,i,r){return KS(t,e,i,r)}parseObjectData(t,e,i,r){const{iScale:n,vScale:s}=t,{xAxisKey:a="x",yAxisKey:o="y"}=this._parsing,l="x"===n.axis?a:o,h="x"===s.axis?a:o,c=[];let u,d,p,f;for(u=i,d=i+r;u<d;++u)f=e[u],p={},p[n.axis]=n.parse(l_(f,l),u),c.push(qS(l_(f,h),p,s,u));return c}updateRangeFromParsed(t,e,i,r){super.updateRangeFromParsed(t,e,i,r);const 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){const e=this._cachedMeta,{iScale:i,vScale:r}=e,n=this.getParsed(t),s=n._custom,a=ZS(s)?"["+s.start+", "+s.end+"]":""+r.getLabelForValue(n[r.axis]);return{label:""+i.getLabelForValue(n[i.axis]),value:a}}initialize(){this.enableOptionSharing=!0,super.initialize(),this._cachedMeta.stack=this.getDataset().stack}update(t){const e=this._cachedMeta;this.updateElements(e.data,0,e.data.length,t)}updateElements(t,e,i,r){const n="reset"===r,{index:s,_cachedMeta:{vScale:a}}=this,o=a.getBasePixel(),l=a.isHorizontal(),h=this._getRuler(),{sharedOptions:c,includeOptions:u}=this._getSharedOptions(e,r);for(let d=e;d<e+i;d++){const e=this.getParsed(d),i=n||Wx(e[a.axis])?{base:o,head:o}:this._calculateBarValuePixels(d),p=this._calculateBarIndexPixels(d,h),f=(e._stacks||{})[a.axis],m={horizontal:l,base:i.base,enableBorderRadius:!f||ZS(e._custom)||s===f._top||s===f._bottom,x:l?i.head:p.center,y:l?p.center:i.head,height:l?p.size:Math.abs(i.size),width:l?Math.abs(i.size):p.size};u&&(m.options=c||this.resolveDataElementOptions(d,t[d].active?"active":r));const g=m.options||t[d].options;JS(m,g,f,s),eE(m,g,h.ratio),this.updateElement(t[d],d,m,r)}}_getStacks(t,e){const{iScale:i}=this._cachedMeta,r=i.getMatchingVisibleMetas(this._type).filter((t=>t.controller.options.grouped)),n=i.options.stacked,s=[],a=t=>{const i=t.controller.getParsed(e),r=i&&i[t.vScale.axis];if(Wx(r)||isNaN(r))return!0};for(const i of r)if((void 0===e||!a(i))&&((!1===n||-1===s.indexOf(i.stack)||void 0===n&&void 0===i.stack)&&s.push(i.stack),i.index===t))break;return s.length||s.push(void 0),s}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,i){const r=this._getStacks(t,i),n=void 0!==e?r.indexOf(e):-1;return-1===n?r.length-1:n}_getRuler(){const t=this.options,e=this._cachedMeta,i=e.iScale,r=[];let n,s;for(n=0,s=e.data.length;n<s;++n)r.push(i.getPixelForValue(this.getParsed(n)[i.axis],n));const a=t.barThickness;return{min:a||YS(e),pixels:r,start:i._startPixel,end:i._endPixel,stackCount:this._getStackCount(),scale:i,grouped:t.grouped,ratio:a?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:i,index:r},options:{base:n,minBarLength:s}}=this,a=n||0,o=this.getParsed(t),l=o._custom,h=ZS(l);let c,u,d=o[e.axis],p=0,f=i?this.applyStack(e,o,i):d;f!==d&&(p=f-d,f=d),h&&(d=l.barStart,f=l.barEnd-l.barStart,0!==d&&S_(d)!==S_(l.barEnd)&&(p=0),p+=d);const m=Wx(n)||h?p:n;let g=e.getPixelForValue(m);if(c=this.chart.getDataVisibility(t)?e.getPixelForValue(p+f):g,u=c-g,Math.abs(u)<s){u=function(t,e,i){return 0!==t?S_(t):(e.isHorizontal()?1:-1)*(e.min>=i?1:-1)}(u,e,a)*s,d===a&&(g-=u/2);const t=e.getPixelForDecimal(0),n=e.getPixelForDecimal(1),l=Math.min(t,n),p=Math.max(t,n);g=Math.max(Math.min(g,p),l),c=g+u,i&&!h&&(o._stacks[e.axis]._visualValues[r]=e.getValueForPixel(c)-e.getValueForPixel(g))}if(g===e.getPixelForValue(a)){const t=S_(u)*e.getLineWidthForValue(a)/2;g+=t,u-=t}return{size:u,base:g,head:c,center:c+u/2}}_calculateBarIndexPixels(t,e){const i=e.scale,r=this.options,n=r.skipNull,s=Kx(r.maxBarThickness,1/0);let a,o;if(e.grouped){const i=n?this._getStackCount(t):e.stackCount,l="flex"===r.barThickness?function(t,e,i,r){const n=e.pixels,s=n[t];let a=t>0?n[t-1]:null,o=t<n.length-1?n[t+1]:null;const l=i.categoryPercentage;null===a&&(a=s-(null===o?e.end-e.start:o-s)),null===o&&(o=s+s-a);const h=s-(s-Math.min(a,o))/2*l;return{chunk:Math.abs(o-a)/2*l/r,ratio:i.barPercentage,start:h}}(t,e,r,i):function(t,e,i,r){const n=i.barThickness;let s,a;return Wx(n)?(s=e.min*i.categoryPercentage,a=i.barPercentage):(s=n*r,a=1),{chunk:s/r,ratio:a,start:e.pixels[t]-s/2}}(t,e,r,i),h=this._getStackIndex(this.index,this._cachedMeta.stack,n?t:void 0);a=l.start+l.chunk*h+l.chunk/2,o=Math.min(s,l.chunk*l.ratio)}else a=i.getPixelForValue(this.getParsed(t)[i.axis],t),o=Math.min(s,e.min*e.ratio);return{base:a-o/2,head:a+o/2,center:a,size:o}}draw(){const t=this._cachedMeta,e=t.vScale,i=t.data,r=i.length;let n=0;for(;n<r;++n)null===this.getParsed(n)[e.axis]||i[n].hidden||i[n].draw(this._ctx)}},BubbleController:class extends $S{static id="bubble";static defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}};static overrides={scales:{x:{type:"linear"},y:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,super.initialize()}
vendor: 4,224 bytes, line 2
2parsePrimitiveData(t,e,i,r){const 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,r){const n=super.parseArrayData(t,e,i,r);for(let t=0;t<n.length;t++){const r=e[i+t];n[t]._custom=Kx(r[2],this.resolveDataElementOptions(t+i).radius)}return n}parseObjectData(t,e,i,r){const n=super.parseObjectData(t,e,i,r);for(let t=0;t<n.length;t++){const r=e[i+t];n[t]._custom=Kx(r&&r.r&&+r.r,this.resolveDataElementOptions(t+i).radius)}return n}getMaxOverflow(){const t=this._cachedMeta.data;let 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){const e=this._cachedMeta,i=this.chart.data.labels||[],{xScale:r,yScale:n}=e,s=this.getParsed(t),a=r.getLabelForValue(s.x),o=n.getLabelForValue(s.y),l=s._custom;return{label:i[t]||"",value:"("+a+", "+o+(l?", "+l:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,i,r){const n="reset"===r,{iScale:s,vScale:a}=this._cachedMeta,{sharedOptions:o,includeOptions:l}=this._getSharedOptions(e,r),h=s.axis,c=a.axis;for(let u=e;u<e+i;u++){const e=t[u],i=!n&&this.getParsed(u),d={},p=d[h]=n?s.getPixelForDecimal(.5):s.getPixelForValue(i[h]),f=d[c]=n?a.getBasePixel():a.getPixelForValue(i[c]);d.skip=isNaN(p)||isNaN(f),l&&(d.options=o||this.resolveDataElementOptions(u,e.active?"active":r),n&&(d.options.radius=0)),this.updateElement(e,u,d,r)}}resolveDataElementOptions(t,e){const i=this.getParsed(t);let r=super.resolveDataElementOptions(t,e);r.$shared&&(r=Object.assign({},r,{$shared:!1}));const n=r.radius;return"active"!==e&&(r.radius=0),r.radius+=Kx(i&&i._custom,n),r}},DoughnutController:iE,LineController:class extends $S{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:i,data:r=[],_dataset:n}=e,s=this.chart._animationsDisabled;let{start:a,count:o}=$_(e,r,s);this._drawStart=a,this._drawCount=o,Y_(e)&&(a=0,o=r.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!n._decimated,i.points=r;const l=this.resolveDatasetElementOptions(t);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(i,void 0,{animated:!s,options:l},t),this.updateElements(r,a,o,t)}updateElements(t,e,i,r){const n="reset"===r,{iScale:s,vScale:a,_stacked:o,_dataset:l}=this._cachedMeta,{sharedOptions:h,includeOptions:c}=this._getSharedOptions(e,r),u=s.axis,d=a.axis,{spanGaps:p,segment:f}=this.options,m=T_(p)?p:Number.POSITIVE_INFINITY,g=this.chart._animationsDisabled||n||"none"===r,y=e+i,v=t.length;let x=e>0&&this.getParsed(e-1);for(let i=0;i<v;++i){const p=t[i],v=g?p:{};if(i<e||i>=y){v.skip=!0;continue}const _=this.getParsed(i),b=Wx(_[d]),S=v[u]=s.getPixelForValue(_[u],i),E=v[d]=n||b?a.getBasePixel():a.getPixelForValue(o?this.applyStack(a,_,o):_[d],i);v.skip=isNaN(S)||isNaN(E)||b,v.stop=i>0&&Math.abs(_[u]-x[u])>m,f&&(v.parsed=_,v.raw=l.data[i]),c&&(v.options=h||this.resolveDataElementOptions(i,p.active?"active":r)),g||this.updateElement(p,i,v,r),x=_}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,i=e.options&&e.options.borderWidth||0,r=t.data||[];if(!r.length)return i;const n=r[0].size(this.resolveDataElementOptions(0)),s=r[r.length-1].size(this.resolveDataElementOptions(r.length-1));return Math.max(i,n,s)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}},PieController:class extends iE{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}},PolarAreaController:rE,RadarController:class extends $S{static id="radar";static defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}};static overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};getLabelAndValue(t){const e=this._cachedMeta.vScale,i=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(i[e.axis])}}
vendor: 4,330 bytes, line 2
2parseObjectData(t,e,i,r){return Qb.bind(this)(t,e,i,r)}update(t){const e=this._cachedMeta,i=e.dataset,r=e.data||[],n=e.iScale.getLabels();if(i.points=r,"resize"!==t){const e=this.resolveDatasetElementOptions(t);this.options.showLine||(e.borderWidth=0);const 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){const n=this._cachedMeta.rScale,s="reset"===r;for(let a=e;a<e+i;a++){const 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,c={x:l,y:h,angle:o.angle,skip:isNaN(l)||isNaN(h),options:i};this.updateElement(e,a,c,r)}}},ScatterController:class extends $S{static id="scatter";static defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1};static overrides={interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}};getLabelAndValue(t){const e=this._cachedMeta,i=this.chart.data.labels||[],{xScale:r,yScale:n}=e,s=this.getParsed(t),a=r.getLabelForValue(s.x),o=n.getLabelForValue(s.y);return{label:i[t]||"",value:"("+a+", "+o+")"}}update(t){const e=this._cachedMeta,{data:i=[]}=e,r=this.chart._animationsDisabled;let{start:n,count:s}=$_(e,i,r);if(this._drawStart=n,this._drawCount=s,Y_(e)&&(n=0,s=i.length),this.options.showLine){this.datasetElementType||this.addElements();const{dataset:n,_dataset:s}=e;n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!s._decimated,n.points=i;const a=this.resolveDatasetElementOptions(t);a.segment=this.options.segment,this.updateElement(n,void 0,{animated:!r,options:a},t)}else this.datasetElementType&&(delete e.dataset,this.datasetElementType=!1);this.updateElements(i,n,s,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(t,e,i,r){const n="reset"===r,{iScale:s,vScale:a,_stacked:o,_dataset:l}=this._cachedMeta,h=this.resolveDataElementOptions(e,r),c=this.getSharedOptions(h),u=this.includeOptions(r,c),d=s.axis,p=a.axis,{spanGaps:f,segment:m}=this.options,g=T_(f)?f:Number.POSITIVE_INFINITY,y=this.chart._animationsDisabled||n||"none"===r;let v=e>0&&this.getParsed(e-1);for(let h=e;h<e+i;++h){const e=t[h],i=this.getParsed(h),f=y?e:{},x=Wx(i[p]),_=f[d]=s.getPixelForValue(i[d],h),b=f[p]=n||x?a.getBasePixel():a.getPixelForValue(o?this.applyStack(a,i,o):i[p],h);f.skip=isNaN(_)||isNaN(b)||x,f.stop=h>0&&Math.abs(i[d]-v[d])>g,m&&(f.parsed=i,f.raw=l.data[h]),u&&(f.options=c||this.resolveDataElementOptions(h,e.active?"active":r)),y||this.updateElement(e,h,f,r),v=i}this.updateSharedOptions(c,r,h)}getMaxOverflow(){const 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}const i=t.dataset,r=i.options&&i.options.borderWidth||0;if(!e.length)return r;const n=e[0].size(this.resolveDataElementOptions(0)),s=e[e.length-1].size(this.resolveDataElementOptions(e.length-1));return Math.max(r,n,s)/2}}});function sE(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class aE{static override(t){Object.assign(aE.prototype,t)}options;constructor(t){this.options=t||{}}init(){}formats(){return sE()}parse(){return sE()}format(){return sE()}add(){return sE()}diff(){return sE()}startOf(){return sE()}endOf(){return sE()}}var oE=aE;function lE(t,e,i,r){const{controller:n,data:s,_sorted:a}=t,o=n._cachedMeta.iScale;if(o&&e===o.axis&&"r"!==e&&a&&s.length){const t=o._reversePixels?V_:N_;if(!r)return t(s,e,i);if(n._sharedOptions){const r=s[0],n="function"==typeof r.getRange&&r.getRange(e);if(n){const r=t(s,e,i-n),a=t(s,e,i+n);return{lo:r.lo,hi:a.hi}}}}return{lo:0,hi:s.length-1}}function hE(t,e,i,r,n){const s=t.getSortedVisibleDatasetMetas(),a=i[e];for(let t=0,i=s.length;t<i;++t){const{index:i,data:o}=s[t],{lo:l,hi:h}=lE(s[t],e,a,n);for(let t=l;t<=h;++t){const e=o[t];e.skip||r(e,i,t)}}}function cE(t,e,i,r,n){const s=[];return n||t.isPointInArea(e)?(hE(t,i,e,(function(i,a,o){(n||_b(i,t.chartArea,0))&&i.inRange(e.x,e.y,r)&&s.push({element:i,datasetIndex:a,index:o})}),!0),s):s}function uE(t,e,i,r,n,s){return s||t.isPointInArea(e)?"r"!==i||r?function(t,e,
vendor: 6,400 bytes, line 2
2i,r,n,s){let a=[];const o=function(t){const e=-1!==t.indexOf("x"),i=-1!==t.indexOf("y");return function(t,r){const n=e?Math.abs(t.x-r.x):0,s=i?Math.abs(t.y-r.y):0;return Math.sqrt(Math.pow(n,2)+Math.pow(s,2))}}(i);let l=Number.POSITIVE_INFINITY;return hE(t,i,e,(function(i,h,c){const u=i.inRange(e.x,e.y,n);if(r&&!u)return;const d=i.getCenterPoint(n);if(!s&&!t.isPointInArea(d)&&!u)return;const p=o(e,d);p<l?(a=[{element:i,datasetIndex:h,index:c}],l=p):p===l&&a.push({element:i,datasetIndex:h,index:c})})),a}(t,e,i,r,n,s):function(t,e,i,r){let n=[];return hE(t,i,e,(function(t,i,s){const{startAngle:a,endAngle:o}=t.getProps(["startAngle","endAngle"],r),{angle:l}=k_(t,{x:e.x,y:e.y});O_(l,a,o)&&n.push({element:t,datasetIndex:i,index:s})})),n}(t,e,i,n):[]}function dE(t,e,i,r,n){const s=[],a="x"===i?"inXRange":"inYRange";let o=!1;return hE(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 pE={evaluateInteractionItems:hE,modes:{index(t,e,i,r){const n=pS(e,t),s=i.axis||"x",a=i.includeInvisible||!1,o=i.intersect?cE(t,n,s,r,a):uE(t,n,s,!1,r,a),l=[];return o.length?(t.getSortedVisibleDatasetMetas().forEach((t=>{const e=o[0].index,i=t.data[e];i&&!i.skip&&l.push({element:i,datasetIndex:t.index,index:e})})),l):[]},dataset(t,e,i,r){const n=pS(e,t),s=i.axis||"xy",a=i.includeInvisible||!1;let o=i.intersect?cE(t,n,s,r,a):uE(t,n,s,!1,r,a);if(o.length>0){const e=o[0].datasetIndex,i=t.getDatasetMeta(e).data;o=[];for(let t=0;t<i.length;++t)o.push({element:i[t],datasetIndex:e,index:t})}return o},point(t,e,i,r){return cE(t,pS(e,t),i.axis||"xy",r,i.includeInvisible||!1)},nearest(t,e,i,r){const n=pS(e,t),s=i.axis||"xy",a=i.includeInvisible||!1;return uE(t,n,s,i.intersect,r,a)},x(t,e,i,r){return dE(t,pS(e,t),"x",i.intersect,r)},y(t,e,i,r){return dE(t,pS(e,t),"y",i.intersect,r)}}};const fE=["left","top","right","bottom"];function mE(t,e){return t.filter((t=>t.pos===e))}function gE(t,e){return t.filter((t=>-1===fE.indexOf(t.pos)&&t.box.axis===e))}function yE(t,e){return t.sort(((t,i)=>{const r=e?i:t,n=e?t:i;return r.weight===n.weight?r.index-n.index:r.weight-n.weight}))}function vE(t,e,i,r){return Math.max(t[i],e[i])+Math.max(t[r],e[r])}function xE(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 _E(t,e,i,r){const{pos:n,box:s}=i,a=t.maxPadding;if(!$x(n)){i.size&&(t[n]-=i.size);const e=r[i.stack]||{size:0,count:1};e.size=Math.max(e.size,i.horizontal?s.height:s.width),i.size=e.size/e.count,t[n]+=i.size}s.getPadding&&xE(a,s.getPadding());const o=Math.max(0,e.outerWidth-vE(a,t,"left","right")),l=Math.max(0,e.outerHeight-vE(a,t,"top","bottom")),h=o!==t.w,c=l!==t.h;return t.w=o,t.h=l,i.horizontal?{same:h,other:c}:{same:c,other:h}}function bE(t,e){const i=e.maxPadding;return function(t){const 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 SE(t,e,i,r){const n=[];let s,a,o,l,h,c;for(s=0,a=t.length,h=0;s<a;++s){o=t[s],l=o.box,l.update(o.width||e.w,o.height||e.h,bE(o.horizontal,e));const{same:a,other:u}=_E(e,i,o,r);h|=a&&n.length,c=c||u,l.fullSize||n.push(o)}return h&&SE(n,e,i,r)||c}function EE(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 wE(t,e,i,r){const n=i.padding;let{x:s,y:a}=e;for(const o of t){const t=o.box,l=r[o.stack]||{count:1,placed:0,weight:1},h=o.stackWeight/l.weight||1;if(o.horizontal){const r=e.w*h,s=l.size||t.height;c_(l.start)&&(a=l.start),t.fullSize?EE(t,n.left,a,i.outerWidth-n.right-n.left,s):EE(t,e.left+l.placed,a,r,s),l.start=a,l.placed+=r,a=t.bottom}else{const r=e.h*h,a=l.size||t.width;c_(l.start)&&(s=l.start),t.fullSize?EE(t,s,n.top,a,i.outerHeight-n.bottom-n.top):EE(t,s,e.top+l.placed,a,r),l.start=s,l.placed+=r,s=t.right}}e.x=s,e.y=a}var TE={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){const 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,r){if(!t)return;const n=Fb(t.options.layout.padding),s=Math.max(e-n.width,0),a=Math.max(i-n.height,0),o=function(t){const e=function(t){const e=[];let i,r,n,s,a,o;for(i=0,r=(t||[]).length;i<r;++i)n=t[i],({position:s,options:{stack:a,stackWeight:o=1}}=n),e.push({index:i,box:n,pos:s,horizontal:n.isHorizontal(),weight:n.weight,stack:a&&s+a,stackWeight:o});return e}(t),i=yE(e.filter((t=>t.box.fullSize)),!0),r=yE(mE(e,"left"),!0),n=yE(mE(e,"right")),s=yE(mE(e,"top"),!0),a=yE(mE(e,"bottom")),o=gE(e,"x"),l=gE(e,"y");return{fullSize:i,leftAndTop:r.concat(s),rightAndBottom:n.concat(l).concat(a).concat(o),chartArea:mE(e,"chartArea"),vertical:r.concat(n).concat(l),horizontal:s.concat(a).concat(o)}}(t.boxes),l=o.vertical,h=o.horizontal;Qx(t.boxes,(t=>{"function"==typeof t.beforeLayout&&t.beforeLayout()}));const c=l.reduce(((t,e)=>e.box.options&&!1===e.box.options.display?t:t+1),0)||1,u=Object.freeze({outerWidth:e,outerHeight:i,padding:n,availableWidth:s,availableHeight:a,vBoxMaxWidth:s/2/c,hBoxMaxHeight:a/2}),d=Object.assign({},n);xE(d,Fb(r));const p=Object.assign({maxPadding:d,w:s,h:a,x:n.left,y:n.top},n),f=function(t,e){const i=function(t){const e={};for(const i of t){const{stack:t,pos:r,stackWeight:n}=i;if(!t||!fE.includes(r))continue;const s=e[t]||(e[t]={count:0,placed:0,weight:0,size:0});s.count++,s.weight+=n}return e}(t),{vBoxMaxWidth:r,hBoxMaxHeight:n}=e;let s,a,o;for(s=0,a=t.length;s<a;++s){o=t[s];const{fullSize:a}=o.box,l=i[o.stack],h=l&&o.stackWeight/l.weight;o.horizontal?(o.width=h?h*r:a&&e.availableWidth,o.height=n):(o.width=r,o.height=h?h*n:a&&e.availableHeight)}return i}(l.concat(h),u);SE(o.fullSize,p,u,f),SE(l,p,u,f),SE(h,p,u,f)&&SE(l,p,u,f),function(t){const e=t.maxPadding;function i(i){const 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")}(p),wE(o.leftAndTop,p,u,f),p.x+=p.w,p.y+=p.h,wE(o.rightAndBottom,p,u,f),t.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},Qx(o.chartArea,(e=>{const i=e.box;Object.assign(i,t.chartArea),i.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})}))}};class AE{acquireContext(t,e){}releaseContext(t){return!1}
vendor: 4,576 bytes, line 2
2addEventListener(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 ME extends AE{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const PE="$chartjs",CE={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},kE=t=>null===t||""===t,IE=!!gS&&{passive:!0};function DE(t,e,i){t&&t.canvas&&t.canvas.removeEventListener(e,i,IE)}function RE(t,e){for(const i of t)if(i===e||i.contains(e))return!0}function OE(t,e,i){const r=t.canvas,n=new MutationObserver((t=>{let e=!1;for(const i of t)e=e||RE(i.addedNodes,r),e=e&&!RE(i.removedNodes,r);e&&i()}));return n.observe(document,{childList:!0,subtree:!0}),n}function LE(t,e,i){const r=t.canvas,n=new MutationObserver((t=>{let e=!1;for(const i of t)e=e||RE(i.removedNodes,r),e=e&&!RE(i.addedNodes,r);e&&i()}));return n.observe(document,{childList:!0,subtree:!0}),n}const FE=new Map;let BE=0;function NE(){const t=window.devicePixelRatio;t!==BE&&(BE=t,FE.forEach(((e,i)=>{i.currentDevicePixelRatio!==t&&e()})))}function VE(t,e,i){const r=t.canvas,n=r&&oS(r);if(!n)return;const s=j_(((t,e)=>{const r=n.clientWidth;i(t,e),r<n.clientWidth&&i()}),window),a=new ResizeObserver((t=>{const e=t[0],i=e.contentRect.width,r=e.contentRect.height;0===i&&0===r||s(i,r)}));return a.observe(n),function(t,e){FE.size||window.addEventListener("resize",NE),FE.set(t,e)}(t,s),a}function zE(t,e,i){i&&i.disconnect(),"resize"===e&&function(t){FE.delete(t),FE.size||window.removeEventListener("resize",NE)}(t)}function GE(t,e,i){const r=t.canvas,n=j_((e=>{null!==t.ctx&&i(function(t,e){const i=CE[t.type]||t.type,{x:r,y:n}=pS(t,e);return{type:i,chart:e,native:t,x:void 0!==r?r:null,y:void 0!==n?n:null}}(e,t))}),t);return function(t,e,i){t&&t.addEventListener(e,i,IE)}(r,e,n),n}class UE extends AE{acquireContext(t,e){const i=t&&t.getContext&&t.getContext("2d");return i&&i.canvas===t?(function(t,e){const i=t.style,r=t.getAttribute("height"),n=t.getAttribute("width");if(t[PE]={initial:{height:r,width:n,style:{display:i.display,height:i.height,width:i.width}}},i.display=i.display||"block",i.boxSizing=i.boxSizing||"border-box",kE(n)){const e=yS(t,"width");void 0!==e&&(t.width=e)}if(kE(r))if(""===t.style.height)t.height=t.width/(e||2);else{const e=yS(t,"height");void 0!==e&&(t.height=e)}}(t,e),i):null}releaseContext(t){const e=t.canvas;if(!e[PE])return!1;const i=e[PE].initial;["height","width"].forEach((t=>{const r=i[t];Wx(r)?e.removeAttribute(t):e.setAttribute(t,r)}));const r=i.style||{};return Object.keys(r).forEach((t=>{e.style[t]=r[t]})),e.width=e.width,delete e[PE],!0}addEventListener(t,e,i){this.removeEventListener(t,e);const r=t.$proxies||(t.$proxies={}),n={attach:OE,detach:LE,resize:VE}[e]||GE;r[e]=n(t,e,i)}removeEventListener(t,e){const i=t.$proxies||(t.$proxies={}),r=i[e];r&&(({attach:zE,detach:zE,resize:zE}[e]||DE)(t,e,r),i[e]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,i,r){return function(t,e,i,r){const n=hS(t),s=uS(n,"margin"),a=lS(n.maxWidth,t,"clientWidth")||g_,o=lS(n.maxHeight,t,"clientHeight")||g_,l=function(t,e,i){let r,n;if(void 0===e||void 0===i){const s=t&&oS(t);if(s){const t=s.getBoundingClientRect(),a=hS(s),o=uS(a,"border","width"),l=uS(a,"padding");e=t.width-l.width-o.width,i=t.height-l.height-o.height,r=lS(a.maxWidth,s,"clientWidth"),n=lS(a.maxHeight,s,"clientHeight")}else e=t.clientWidth,i=t.clientHeight}return{width:e,height:i,maxWidth:r||g_,maxHeight:n||g_}}(t,e,i);let{width:h,height:c}=l;if("content-box"===n.boxSizing){const t=uS(n,"border","width"),e=uS(n,"padding");h-=e.width+t.width,c-=e.height+t.height}return h=Math.max(0,h-s.width),c=Math.max(0,r?h/r:c-s.height),h=fS(Math.min(h,a,l.maxWidth)),c=fS(Math.min(c,o,l.maxHeight)),h&&!c&&(c=fS(h/2)),(void 0!==e||void 0!==i)&&r&&l.height&&c>l.height&&(c=l.height,h=fS(Math.floor(c*r))),{width:h,height:c}}(t,e,i,r)}isAttached(t){const e=t&&oS(t);return!(!e||!e.isConnected)}}class HE{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(t){const{x:e,y:i}=this.getProps(["x","y"],t);return{x:e,y:i}}hasValue(){return T_(this.x)&&T_(this.y)}getProps(t,e){const i=this.$animations;if(!e||!i)return this;const r={};return t.forEach((t=>{r[t]=i[t]&&i[t].active()?i[t]._to:this[t]})),r}}
vendor: 4,681 bytes, line 2
2function jE(t,e,i,r,n){const s=Kx(r,0),a=Math.min(Kx(n,t.length),t.length);let o,l,h,c=0;for(i=Math.ceil(i),n&&(o=n-r,i=o/Math.floor(o/i)),h=s;h<0;)c++,h=Math.round(s+c*i);for(l=Math.max(s,0);l<a;l++)l===h&&(e.push(t[l]),c++,h=Math.round(s+c*i))}const WE=(t,e,i)=>"top"===e||"left"===e?t[e]+i:t[e]-i,XE=(t,e)=>Math.min(e||t,t);function $E(t,e){const i=[],r=t.length/e,n=t.length;let s=0;for(;s<n;s+=r)i.push(t[Math.floor(s)]);return i}function YE(t,e,i){const r=t.ticks.length,n=Math.min(e,r-1),s=t._startPixel,a=t._endPixel,o=1e-6;let l,h=t.getPixelForTick(n);if(!(i&&(l=1===r?Math.max(h-s,a-h):0===e?(t.getPixelForTick(1)-h)/2:(h-t.getPixelForTick(n-1))/2,h+=n<e?l:-l,h<s-o||h>a+o)))return h}function qE(t){return t.drawTicks?t.tickLength:0}function KE(t,e){if(!t.display)return 0;const i=Bb(t.font,e),r=Fb(t.padding);return(Xx(t.text)?t.text.length:1)*i.lineHeight+r.height}function ZE(t,e,i){let r=W_(t);return(i&&"right"!==e||!i&&"right"===e)&&(r=(t=>"left"===t?"right":"right"===t?"left":t)(r)),r}class JE extends HE{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:r}=this;return t=qx(t,Number.POSITIVE_INFINITY),e=qx(e,Number.NEGATIVE_INFINITY),i=qx(i,Number.POSITIVE_INFINITY),r=qx(r,Number.NEGATIVE_INFINITY),{min:qx(t,i),max:qx(e,r),minDefined:Yx(t),maxDefined:Yx(e)}}getMinMax(t){let e,{min:i,max:r,minDefined:n,maxDefined:s}=this.getUserBounds();if(n&&s)return{min:i,max:r};const a=this.getMatchingVisibleMetas();for(let o=0,l=a.length;o<l;++o)e=a[o].controller.getMinMax(this,t),n||(i=Math.min(i,e.min)),s||(r=Math.max(r,e.max));return i=s&&i>r?r:i,r=n&&i>r?i:r,{min:qx(i,qx(r,i)),max:qx(r,qx(i,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Jx(this.options.beforeUpdate,[this])}update(t,e,i){const{beginAtZero:r,grace:n,ticks:s}=this.options,a=s.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=function(t,e,i){const{min:r,max:n}=t,s=Zx(e,(n-r)/2),a=(t,e)=>i&&0===t?0:t+e;return{min:a(r,-Math.abs(s)),max:a(n,s)}}(this,n,r),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const o=a<this.ticks.length;this._convertTicksToLabels(o?$E(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),s.display&&(s.autoSkip||"auto"===s.source)&&(this.ticks=function(t,e){const i=t.options.ticks,r=function(t){const e=t.options.offset,i=t._tickSize(),r=t._length/i+(e?0:1),n=t._maxLength/i;return Math.floor(Math.min(r,n))}(t),n=Math.min(i.maxTicksLimit||r,r),s=i.major.enabled?function(t){const e=[];let i,r;for(i=0,r=t.length;i<r;i++)t[i].major&&e.push(i);return e}(e):[],a=s.length,o=s[0],l=s[a-1],h=[];if(a>
vendor: 16,628 bytes, line 2
2n)return function(t,e,i,r){let n,s=0,a=i[0];for(r=Math.ceil(r),n=0;n<t.length;n++)n===a&&(e.push(t[n]),s++,a=i[s*r])}(e,h,s,a/n),h;const c=function(t,e,i){const r=function(t){const e=t.length;let i,r;if(e<2)return!1;for(r=t[0],i=1;i<e;++i)if(t[i]-t[i-1]!==r)return!1;return r}(t),n=e.length/i;if(!r)return Math.max(n,1);const s=function(t){const e=[],i=Math.sqrt(t);let r;for(r=1;r<i;r++)t%r==0&&(e.push(r),e.push(t/r));return i===(0|i)&&e.push(i),e.sort(((t,e)=>t-e)).pop(),e}(r);for(let t=0,e=s.length-1;t<e;t++){const e=s[t];if(e>n)return e}return Math.max(n,1)}(s,e,n);if(a>0){let t,i;const r=a>1?Math.round((l-o)/(a-1)):null;for(jE(e,h,c,Wx(r)?0:o-r,o),t=0,i=a-1;t<i;t++)jE(e,h,c,s[t],s[t+1]);return jE(e,h,c,l,Wx(r)?e.length:l+r),h}return jE(e,h,c),h}(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),o&&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(){Jx(this.options.afterUpdate,[this])}beforeSetDimensions(){Jx(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(){Jx(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),Jx(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Jx(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let i,r,n;for(i=0,r=t.length;i<r;i++)n=t[i],n.label=Jx(e.callback,[n.value,i,t],this)}afterTickToLabelConversion(){Jx(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Jx(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,i=XE(this.ticks.length,t.ticks.maxTicksLimit),r=e.minRotation||0,n=e.maxRotation;let s,a,o,l=r;if(!this._isVisible()||!e.display||r>=n||i<=1||!this.isHorizontal())return void(this.labelRotation=r);const h=this._getLabelSizes(),c=h.widest.width,u=h.highest.height,d=L_(this.chart.width-c,0,this.maxWidth);s=t.offset?this.maxWidth/i:d/(i-1),c+6>s&&(s=d/(i-(t.offset?.5:1)),a=this.maxHeight-qE(t.grid)-e.padding-KE(t.title,this.chart.options.font),o=Math.sqrt(c*c+u*u),l=P_(Math.min(Math.asin(L_((h.highest.height+6)/s,-1,1)),Math.asin(L_(a/o,-1,1))-Math.asin(L_(u/o,-1,1)))),l=Math.max(r,Math.min(n,l))),this.labelRotation=l}afterCalculateLabelRotation(){Jx(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Jx(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:i,title:r,grid:n}}=this,s=this._isVisible(),a=this.isHorizontal();if(s){const s=KE(r,e.options.font);if(a?(t.width=this.maxWidth,t.height=qE(n)+s):(t.height=this.maxHeight,t.width=qE(n)+s),i.display&&this.ticks.length){const{first:e,last:r,widest:n,highest:s}=this._getLabelSizes(),o=2*i.padding,l=M_(this.labelRotation),h=Math.cos(l),c=Math.sin(l);if(a){const e=i.mirror?0:c*n.width+h*s.height;t.height=Math.min(this.maxHeight,t.height+e+o)}else{const e=i.mirror?0:h*n.width+c*s.height;t.width=Math.min(this.maxWidth,t.width+e+o)}this._calculatePadding(e,r,c,h)}}this._handleMargins(),a?(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){const{ticks:{align:n,padding:s},position:a}=this.options,o=0!==this.labelRotation,l="top"!==a&&"x"===this.axis;if(this.isHorizontal()){const a=this.getPixelForTick(0)-this.left,h=this.right-this.getPixelForTick(this.ticks.length-1);let c=0,u=0;o?l?(c=r*t.width,u=i*e.height):(c=i*t.height,u=r*e.width):"start"===n?u=e.width:"end"===n?c=t.width:"inner"!==n&&(c=t.width/2,u=e.width/2),this.paddingLeft=Math.max((c-a+s)*this.width/(this.width-a),0),this.paddingRight=Math.max((u-h+s)*this.width/(this.width-h),0)}else{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(){Jx(this.options.afterFit,[this])}isHorizontal(){const{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++)Wx(t[e].label)&&(t.splice(e,1),i--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let i=this.ticks;e<i.length&&(i=$E(i,e)),this._labelSizes=t=this._computeLabelSizes(i,i.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,e,i){const{ctx:r,_longestTextCache:n}=this,s=[],a=[],o=Math.floor(e/XE(e,i));let l,h,c,u,d,p,f,m,g,y,v,x=0,_=0;for(l=0;l<e;l+=o){if(u=t[l].label,d=this._resolveTickFontOptions(l),r.font=p=d.string,f=n[p]=n[p]||{data:{},gc:[]},m=d.lineHeight,g=y=0,Wx(u)||Xx(u)){if(Xx(u))for(h=0,c=u.length;h<c;++h)v=u[h],Wx(v)||Xx(v)||(g=fb(r,f.data,f.gc,g,v),y+=m)}else g=fb(r,f.data,f.gc,g,u),y=m;s.push(g),a.push(y),x=Math.max(g,x),_=Math.max(y,_)}!function(t,e){Qx(t,(t=>{const i=t.gc,r=i.length/2;let n;if(r>e){for(n=0;n<r;++n)delete t.data[i[n]];i.splice(0,r)}}))}(n,e);const b=s.indexOf(x),S=a.indexOf(_),E=t=>({width:s[t]||0,height:a[t]||0});return{first:E(0),last:E(e-1),widest:E(b),highest:E(S),widths:s,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return L_(this._alignToPixels?gb(this.chart,e,0):e,-32768,32767)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&t<e.length){const i=e[t];return i.$context||(i.$context=function(t,e,i){return Vb(t,{tick:i,index:e,type:"tick"})}(this.getContext(),t,i))}return this.$context||(this.$context=Vb(this.chart.getContext(),{scale:this,type:"scale"}))}_tickSize(){const t=this.options.ticks,e=M_(this.labelRotation),i=Math.abs(Math.cos(e)),r=Math.abs(Math.sin(e)),n=this._getLabelSizes(),s=t.autoSkipPadding||0,a=n?n.widest.width+s:0,o=n?n.highest.height+s:0;return this.isHorizontal()?o*i>a*r?a/i:o/r:o*r<a*i?o/i:a/r}_isVisible(){const t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,i=this.chart,r=this.options,{grid:n,position:s,border:a}=r,o=n.offset,l=this.isHorizontal(),h=this.ticks.length+(o?1:0),c=qE(n),u=[],d=a.setContext(this.getContext()),p=d.display?d.width:0,f=p/2,m=function(t){return gb(i,t,p)};let g,y,v,x,_,b,S,E,w,T,A,M;if("top"===s)g=m(this.bottom),b=this.bottom-c,E=g-f,T=m(t.top)+f,M=t.bottom;else if("bottom"===s)g=m(this.top),T=t.top,M=m(t.bottom)-f,b=g+f,E=this.top+c;else if("left"===s)g=m(this.right),_=this.right-c,S=g-f,w=m(t.left)+f,A=t.right;else if("right"===s)g=m(this.left),w=t.left,A=m(t.right)-f,_=g+f,S=this.left+c;else if("x"===e){if("center"===s)g=m((t.top+t.bottom)/2+.5);else if($x(s)){const t=Object.keys(s)[0],e=s[t];g=m(this.chart.scales[t].getPixelForValue(e))}T=t.top,M=t.bottom,b=g+f,E=b+c}else if("y"===e){if("center"===s)g=m((t.left+t.right)/2);else if($x(s)){const t=Object.keys(s)[0],e=s[t];g=m(this.chart.scales[t].getPixelForValue(e))}_=g-f,S=_-c,w=t.left,A=t.right}const P=Kx(r.ticks.maxTicksLimit,h),C=Math.max(1,Math.ceil(h/P));for(y=0;y<h;y+=C){const t=this.getContext(y),e=n.setContext(t),r=a.setContext(t),s=e.lineWidth,h=e.color,c=r.dash||[],d=r.dashOffset,p=e.tickWidth,f=e.tickColor,m=e.tickBorderDash||[],g=e.tickBorderDashOffset;v=YE(this,y,o),void 0!==v&&(x=gb(i,v,s),l?_=S=w=A=x:b=E=T=M=x,u.push({tx1:_,ty1:b,tx2:S,ty2:E,x1:w,y1:T,x2:A,y2:M,width:s,color:h,borderDash:c,borderDashOffset:d,tickWidth:p,tickColor:f,tickBorderDash:m,tickBorderDashOffset:g}))}return this._ticksLength=h,this._borderValue=g,u}_computeLabelItems(t){const e=this.axis,i=this.options,{position:r,ticks:n}=i,s=this.isHorizontal(),a=this.ticks,{align:o,crossAlign:l,padding:h,mirror:c}=n,u=qE(i.grid),d=u+h,p=c?-h:d,f=-M_(this.labelRotation),m=[];let g,y,v,x,_,b,S,E,w,T,A,M,P="middle";if("top"===r)b=this.bottom-p,S=this._getXAxisLabelAlignment();else if("bottom"===r)b=this.top+p,S=this._getXAxisLabelAlignment();else if("left"===r){const t=this._getYAxisLabelAlignment(u);S=t.textAlign,_=t.x}else if("right"===r){const t=this._getYAxisLabelAlignment(u);S=t.textAlign,_=t.x}else if("x"===e){if("center"===r)b=(t.top+t.bottom)/2+d;else if($x(r)){const t=Object.keys(r)[0],e=r[t];b=this.chart.scales[t].getPixelForValue(e)+d}S=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===r)_=(t.left+t.right)/2-d;else if($x(r)){const t=Object.keys(r)[0],e=r[t];_=this.chart.scales[t].getPixelForValue(e)}S=this._getYAxisLabelAlignment(u).textAlign}"y"===e&&("start"===o?P="top":"end"===o&&(P="bottom"));const C=this._getLabelSizes();for(g=0,y=a.length;g<y;++g){v=a[g],x=v.label;const t=n.setContext(this.getContext(g));E=this.getPixelForTick(g)+n.labelOffset,w=this._resolveTickFontOptions(g),T=w.lineHeight,A=Xx(x)?x.length:1;const e=A/2,i=t.color,o=t.textStrokeColor,h=t.textStrokeWidth;let u,d=S;if(s?(_=E,"inner"===S&&(d=g===y-1?this.options.reverse?"left":"right":0===g?this.options.reverse?"right":"left":"center"),M="top"===r?"near"===l||0!==f?-A*T+T/2:"center"===l?-C.highest.height/2-e*T+T:-C.highest.height+T/2:"near"===l||0!==f?T/2:"center"===l?C.highest.height/2-e*T:C.highest.height-A*T,c&&(M*=-1),0===f||t.showLabelBackdrop||(_+=T/2*Math.sin(f))):(b=E,M=(1-A)*T/2),t.showLabelBackdrop){const e=Fb(t.backdropPadding),i=C.heights[g],r=C.widths[g];let n=M-e.top,s=0-e.left;switch(P){case"middle":n-=i/2;break;case"bottom":n-=i}switch(S){case"center":s-=r/2;break;case"right":s-=r;break;case"inner":g===y-1?s-=r:g>0&&(s-=r/2)}u={left:s,top:n,width:r+e.width,height:i+e.height,color:t.backdropColor}}m.push({label:x,font:w,textOffset:M,options:{rotation:f,color:i,strokeColor:o,strokeWidth:h,textAlign:d,textBaseline:P,translation:[_,b],backdrop:u}})}return m}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-M_(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){const{position:e,ticks:{crossAlign:i,mirror:r,padding:n}}=this.options,s=t+n,a=this._getLabelSizes().widest.width;let o,l;return"left"===e?r?(l=this.right+n,"near"===i?o="left":"center"===i?(o="center",l+=a/2):(o="right",l+=a)):(l=this.right-s,"near"===i?o="right":"center"===i?(o="center",l-=a/2):(o="left",l=this.left)):"right"===e?r?(l=this.left+n,"near"===i?o="right":"center"===i?(o="center",l-=a/2):(o="left",l-=a)):(l=this.left+s,"near"===i?o="left":"center"===i?(o="center",l+=a/2):(o="right",l=this.right)):o="right",{textAlign:o,x:l}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,e=this.options.position;return"left"===e||"right"===e?{top:0,left:this.left,bottom:t.height,right:this.right}:"top"===e||"bottom"===e?{top:this.top,left:0,bottom:this.bottom,right:t.width}:void 0}drawBackground(){const{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){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const i=this.ticks.findIndex((e=>e.value===t));return i>=0?e.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){const e=this.options.grid,i=this.ctx,r=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let n,s;const a=(t,e,r)=>{r.width&&r.color&&(i.save(),i.lineWidth=r.width,i.strokeStyle=r.color,i.setLineDash(r.borderDash||[]),i.lineDashOffset=r.borderDashOffset,i.beginPath(),i.moveTo(t.x,t.y),i.lineTo(e.x,e.y),i.stroke(),i.restore())};if(e.display)for(n=0,s=r.length;n<s;++n){const t=r[n];e.drawOnChartArea&&a({x:t.x1,y:t.y1},{x:t.x2,y:t.y2},t),e.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(){const{chart:t,ctx:e,options:{border:i,grid:r}}=this,n=i.setContext(this.getContext()),s=i.display?n.width:0;if(!s)return;const a=r.setContext(this.getContext(0)).lineWidth,o=this._borderValue;let l,h,c,u;this.isHorizontal()?(l=gb(t,this.left,s)-s/2,h=gb(t,this.right,a)+a/2,c=u=o):(c=gb(t,this.top,s)-s/2,u=gb(t,this.bottom,a)+a/2,l=h=o),e.save(),e.lineWidth=n.width,e.strokeStyle=n.color,e.beginPath(),e.moveTo(l,c),e.lineTo(h,u),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const e=this.ctx,i=this._computeLabelArea();i&&bb(e,i);const r=this.getLabelItems(t);for(const t of r){const i=t.options,r=t.font;Mb(e,t.label,0,t.textOffset,r,i)}i&&Sb(e)}drawTitle(){const{ctx:t,options:{position:e,title:i,reverse:r}}=this;if(!i.display)return;const n=Bb(i.font),s=Fb(i.padding),a=i.align;let o=n.lineHeight/2;"bottom"===e||"center"===e||$x(e)?(o+=s.bottom,Xx(i.text)&&(o+=n.lineHeight*(i.text.length-1))):o+=s.top;const{titleX:l,titleY:h,maxWidth:c,rotation:u}=function(t,e,i,r){const{top:n,left:s,bottom:a,right:o,chart:l}=t,{chartArea:h,scales:c}=l;let u,d,p,f=0;const m=a-n,g=o-s;if(t.isHorizontal()){if(d=X_(r,s,o),$x(i)){const t=Object.keys(i)[0],r=i[t];p=c[t].getPixelForValue(r)+m-e}else p="center"===i?(h.bottom+h.top)/2+m-e:WE(t,i,e);u=o-s}else{if($x(i)){const t=Object.keys(i)[0],r=i[t];d=c[t].getPixelForValue(r)-g+e}else d="center"===i?(h.left+h.right)/2-g+e:WE(t,i,e);p=X_(r,a,n),f="left"===i?-v_:v_}return{titleX:d,titleY:p,maxWidth:u,rotation:f}}(this,o,e,a);Mb(t,i.text,0,0,n,{color:i.color,maxWidth:c,rotation:u,textAlign:ZE(a,e,r),textBaseline:"middle",translation:[l,h]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,e=t.ticks&&t.ticks.z||0,i=Kx(t.grid&&t.grid.z,-1),r=Kx(t.border&&t.border.z,0);return this._isVisible()&&this.draw===JE.prototype.draw?[{z:i,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:r,draw:()=>{this.drawBorder()}},{z:e,draw:t=>{this.drawLabels(t)}}]:[{z:e,draw:t=>{this.draw(t)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",r=[];let n,s;for(n=0,s=e.length;n<s;++n){const s=e[n];s[i]!==this.id||t&&s.type!==t||r.push(s)}return r}_resolveTickFontOptions(t){return Bb(this.options.ticks.setContext(this.getContext(t)).font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class QE{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){const e=Object.getPrototypeOf(t);let i;(function(t){return"id"in t&&"defaults"in t})(e)&&(i=this.register(e));const r=this.items,n=t.id,s=this.scope+"."+n;if(!n)throw new Error("class does not have id: "+t);return n in r||(r[n]=t,function(t,e,i){const r=n_(Object.create(null),[i?pb.get(i):{},pb.get(e),t.defaults]);pb.set(e,r),t.defaultRoutes&&function(t,e){Object.keys(e).forEach((i=>{const r=i.split("."),n=r.pop(),s=[t].concat(r).join("."),a=e[i].split("."),o=a.pop(),l=a.join(".");pb.route(s,n,l,o)}))}(e,t.defaultRoutes),t.descriptors&&pb.describe(e,t.descriptors)}(t,s,i),this.override&&pb.override(t.id,t.overrides)),s}get(t){return this.items[t]}unregister(t){const e=this.items,i=t.id,r=this.scope;
vendor: 4,589 bytes, line 2
2i in e&&delete e[i],r&&i in pb[r]&&(delete pb[r][i],this.override&&delete lb[i])}}class tw{constructor(){this.controllers=new QE($S,"datasets",!0),this.elements=new QE(HE,"elements"),this.plugins=new QE(Object,"plugins"),this.scales=new QE(JE,"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=>{const r=i||this._getRegistryForType(e);i||r.isForType(e)||r===this.plugins&&e.id?this._exec(t,r,e):Qx(e,(e=>{const r=i||this._getRegistryForType(e);this._exec(t,r,e)}))}))}_exec(t,e,i){const r=h_(t);Jx(i["before"+r],[],i),e[t](i),Jx(i["after"+r],[],i)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const i=this._typedRegistries[e];if(i.isForType(t))return i}return this.plugins}_get(t,e,i){const r=e.get(t);if(void 0===r)throw new Error('"'+t+'" is not a registered '+i+".");return r}}var ew=new tw;class iw{constructor(){this._init=[]}notify(t,e,i,r){"beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const 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,r){r=r||{};for(const n of t){const t=n.plugin;if(!1===Jx(t[i],[e,r,n.options],t)&&r.cancelable)return!1}return!0}invalidate(){Wx(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){const i=t&&t.config,r=Kx(i.options&&i.options.plugins,{}),n=function(t){const e={},i=[],r=Object.keys(ew.plugins.items);for(let t=0;t<r.length;t++)i.push(ew.getPlugin(r[t]));const n=t.plugins||[];for(let t=0;t<n.length;t++){const r=n[t];-1===i.indexOf(r)&&(i.push(r),e[r.id]=!0)}return{plugins:i,localIds:e}}(i);return!1!==r||e?function(t,{plugins:e,localIds:i},r,n){const s=[],a=t.getContext();for(const o of e){const e=o.id,l=rw(r[e],n);null!==l&&s.push({plugin:o,options:nw(t.config,{plugin:o,local:i[e]},l,a)})}return s}(t,n,r,e):[]}_notifyStateChanges(t){const 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 rw(t,e){return e||!1!==t?!0===t?{}:t:null}function nw(t,{plugin:e,local:i},r,n){const 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 sw(t,e){const i=pb.datasets[t]||{};return((e.datasets||{})[t]||{}).indexAxis||e.indexAxis||i.indexAxis||"x"}function aw(t){if("x"===t||"y"===t||"r"===t)return t}function ow(t,...e){if(aw(t))return t;for(const r of e){const e=r.axis||("top"===(i=r.position)||"bottom"===i?"x":"left"===i||"right"===i?"y":void 0)||t.length>1&&aw(t[0].toLowerCase());if(e)return e}var i;throw new Error(`Cannot determine type of '${t}' axis. Please provide 'axis' or 'position' option.`)}function lw(t,e,i){if(i[e+"AxisID"]===t)return{axis:e}}function hw(t){const e=t.options||(t.options={});e.plugins=Kx(e.plugins,{}),e.scales=function(t,e){const i=lb[t.type]||{scales:{}},r=e.scales||{},n=sw(t.type,e),s=Object.create(null);return Object.keys(r).forEach((e=>{const a=r[e];if(!$x(a))return console.error(`Invalid scale configuration for scale: ${e}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${e}`);const o=ow(e,a,function(t,e){if(e.data&&e.data.datasets){const i=e.data.datasets.filter((e=>e.xAxisID===t||e.yAxisID===t));if(i.length)return lw(t,"x",i[0])||lw(t,"y",i[0])}return{}}(e,t),pb.scales[a.type]),l=function(t,e){return t===e?"_index_":"_value_"}(o,n),h=i.scales||{};s[e]=s_(Object.create(null),[{axis:o},a,h[o],h[l]])}
vendor: 8,692 bytes, line 2
2)),t.data.datasets.forEach((i=>{const n=i.type||t.type,a=i.indexAxis||sw(n,e),o=(lb[n]||{}).scales||{};Object.keys(o).forEach((t=>{const e=function(t,e){let i=t;return"_index_"===t?i=e:"_value_"===t&&(i="x"===e?"y":"x"),i}(t,a),n=i[e+"AxisID"]||e;s[n]=s[n]||Object.create(null),s_(s[n],[{axis:e},r[n],o[t]])}))})),Object.keys(s).forEach((t=>{const e=s[t];s_(e,[pb.scales[e.type],pb.scale])})),s}(t,e)}function cw(t){return(t=t||{}).datasets=t.datasets||[],t.labels=t.labels||[],t}const uw=new Map,dw=new Set;function pw(t,e){let i=uw.get(t);return i||(i=e(),uw.set(t,i),dw.add(i)),i}const fw=(t,e,i)=>{const r=l_(e,i);void 0!==r&&t.add(r)};class mw{constructor(t){this._config=function(t){return(t=t||{}).data=cw(t.data),hw(t),t}(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=cw(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),hw(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return pw(t,(()=>[[`datasets.${t}`,""]]))}datasetAnimationScopeKeys(t,e){return pw(`${t}.transition.${e}`,(()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]]))}datasetElementScopeKeys(t,e){return pw(`${t}-${e}`,(()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]]))}pluginScopeKeys(t){const e=t.id;return pw(`${this.type}-plugin-${e}`,(()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]]))}_cachedScopes(t,e){const i=this._scopeCache;let r=i.get(t);return r&&!e||(r=new Map,i.set(t,r)),r}getOptionScopes(t,e,i){const{options:r,type:n}=this,s=this._cachedScopes(t,i),a=s.get(e);if(a)return a;const o=new Set;e.forEach((e=>{t&&(o.add(t),e.forEach((e=>fw(o,t,e)))),e.forEach((t=>fw(o,r,t))),e.forEach((t=>fw(o,lb[n]||{},t))),e.forEach((t=>fw(o,pb,t))),e.forEach((t=>fw(o,hb,t)))}));const l=Array.from(o);return 0===l.length&&l.push(Object.create(null)),dw.has(e)&&s.set(e,l),l}chartOptionScopes(){const{options:t,type:e}=this;return[t,lb[e]||{},pb.datasets[e]||{},{type:e},pb,hb]}resolveNamedOptions(t,e,i,r=[""]){const n={$shared:!0},{resolver:s,subPrefixes:a}=gw(this._resolverCache,t,r);let o=s;(function(t,e){const{isScriptable:i,isIndexable:r}=Ub(t);for(const n of e){const e=i(n),s=r(n),a=(s||e)&&t[n];if(e&&(u_(a)||yw(a))||s&&Xx(a))return!0}return!1})(s,e)&&(n.$shared=!1,o=Gb(s,i=u_(i)?i():i,this.createResolver(t,i,a)));for(const t of e)n[t]=o[t];return n}createResolver(t,e,i=[""],r){const{resolver:n}=gw(this._resolverCache,t,i);return $x(e)?Gb(n,e,void 0,r):n}}function gw(t,e,i){let r=t.get(e);r||(r=new Map,t.set(e,r));const n=i.join();let s=r.get(n);return s||(s={resolver:zb(e,i),subPrefixes:i.filter((t=>!t.toLowerCase().includes("hover")))},r.set(n,s)),s}const yw=t=>$x(t)&&Object.getOwnPropertyNames(t).some((e=>u_(t[e]))),vw=["top","bottom","left","right","chartArea"];function xw(t,e){return"top"===t||"bottom"===t||-1===vw.indexOf(t)&&"x"===e}function _w(t,e){return function(i,r){return i[t]===r[t]?i[e]-r[e]:i[t]-r[t]}}function bw(t){const e=t.chart,i=e.options.animation;e.notifyPlugins("afterRender"),Jx(i&&i.onComplete,[t],e)}function Sw(t){const e=t.chart,i=e.options.animation;Jx(i&&i.onProgress,[t],e)}function Ew(t){return aS()&&"string"==typeof t?t=document.getElementById(t):t&&t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas),t}const ww={},Tw=t=>{const e=Ew(t);return Object.values(ww).filter((t=>t.canvas===e)).pop()};function Aw(t,e,i){const r=Object.keys(t);for(const n of r){const r=+n;if(r>=e){const s=t[n];delete t[n],(i>0||r>e)&&(t[r+i]=s)}}}function Mw(t,e,i){return t.options.clip?t[i]:e[i]}class Pw{static defaults=pb;static instances=ww;static overrides=lb;static registry=ew;static version="4.4.3";static getChart=Tw;static register(...t){ew.add(...t),Cw()}static unregister(...t){ew.remove(...t),Cw()}constructor(t,e){const i=this.config=new mw(e),r=Ew(t),n=Tw(r);if(n)throw new Error("Canvas is already in use. Chart with ID '"+n.id+"' must be destroyed before the canvas with ID '"+n.canvas.id+"' can be reused.");const s=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||function(t){return!aS()||"undefined"!=typeof OffscreenCanvas&&t instanceof OffscreenCanvas?ME:UE}(r)),this.platform.updateConfig(i);const a=this.platform.acquireContext(r,s.aspectRatio),o=a&&a.canvas,l=o&&o.height,h=o&&o.width;this.id=jx(),this.ctx=a,this.canvas=o,this.width=h,this.height=l,this._options=s,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 iw,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(t,e){let i;return function(...r){return e?(clearTimeout(i),i=setTimeout(t,e,r)):t.apply(this,r),e}}((t=>this.update(t)),s.resizeDelay||0),this._dataChanges=[],ww[this.id]=this,a&&o?(IS.listen(this,"complete",bw),IS.listen(this,"progress",Sw),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:i,height:r,_aspectRatio:n}=this;return Wx(t)?e&&n?n:r?i/r: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}get registry(){return ew}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():mS(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return yb(this.canvas,this.ctx),this}stop(){return IS.stop(this),this}resize(t,e){IS.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const i=this.options,r=this.canvas,n=i.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(r,t,e,n),a=i.devicePixelRatio||this.platform.getDevicePixelRatio(),o=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,mS(this,a,!0)&&(this.notifyPlugins("resize",{size:s}),Jx(i.onResize,[this,s],this),this.attached&&this._doResize(o)&&this.render())}ensureScalesHaveIDs(){Qx(this.options.scales||{},((t,e)=>{t.id=e}))}buildOrUpdateScales(){const t=this.options,e=t.scales,i=this.scales,r=Object.keys(i).reduce(((t,e)=>(t[e]=!1,t)),{});let n=[];e&&(n=n.concat(Object.keys(e).map((t=>{const i=e[t],r=ow(t,i),n="r"===r,s="x"===r;return{options:i,dposition:n?"chartArea":s?"bottom":"left",dtype:n?"radialLinear":s?"category":"linear"}})))),Qx(n,(e=>{const n=e.options,s=n.id,a=ow(s,n),o=Kx(n.type,e.dtype);void 0!==n.position&&xw(n.position,a)===xw(e.dposition)||(n.position=e.dposition),r[s]=!0;let l=null;s in i&&i[s].type===o?l=i[s]:(l=new(ew.getScale(o))({id:s,type:o,ctx:this.ctx,chart:this}),i[l.id]=l),l.init(n,t)})),Qx(r,((t,e)=>{t||delete i[e]})),Qx(i,(t=>{TE.configure(this,t,t.options),TE.addBox(this,t)}))}_updateMetasets(){const 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(_w("order","index"))}_removeUnreferencedMetasets(){const{_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(){const t=[],e=this.data.datasets;let i,r;for(this._removeUnreferencedMetasets(),i=0,r=e.length;i<r;i++){const r=e[i];let n=this.getDatasetMeta(i);const s=r.type||this.config.type;if(n.type&&n.type!==s&&(this._destroyDatasetMeta(i),n=this.getDatasetMeta(i)),n.type=s,n.indexAxis=r.indexAxis||sw(s,this.options),n.order=r.order||0,n.index=i,n.label=""+r.label,n.visible=this.isDatasetVisible(i),n.controller)n.controller.updateIndex(i),n.controller.linkScales();else{const e=ew.getController(s),{datasetElementType:r,dataElementType:a}=pb.datasets[s];Object.assign(e,{dataElementType:ew.getElement(a),datasetElementType:r&&ew.getElement(r)}),n.controller=new e(this,i),t.push(n.controller)}}return this._updateMetasets(),t}_resetElements(){Qx(this.data.datasets,((t,e)=>{this.getDatasetMeta(e).controller.reset()}),this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;
vendor: 4,785 bytes, line 2
2e.update();const i=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),r=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const n=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let t=0,e=this.data.datasets.length;t<e;t++){const{controller:e}=this.getDatasetMeta(t),i=!r&&-1===n.indexOf(e);e.buildOrUpdateElements(i),s=Math.max(+e.getMaxOverflow(),s)}s=this._minPadding=i.layout.autoPadding?s:0,this._updateLayout(s),r||Qx(n,(t=>{t.reset()})),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(_w("z","_idx"));const{_active:a,_lastEvent:o}=this;o?this._eventHandler(o,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){Qx(this.scales,(t=>{TE.removeBox(this,t)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),i=new Set(t.events);d_(e,i)&&!!this._responsiveListeners===t.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:i,start:r,count:n}of e)Aw(t,r,"_removeElements"===i?-n:n)}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,i=e=>new Set(t.filter((t=>t[0]===e)).map(((t,e)=>e+","+t.splice(1).join(",")))),r=i(0);for(let t=1;t<e;t++)if(!d_(r,i(t)))return;return Array.from(r).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;TE.update(this,this.width,this.height,t);const e=this.chartArea,i=e.width<=0||e.height<=0;this._layers=[],Qx(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,u_(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const 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})&&(IS.has(this)?this.attached&&!IS.running(this)&&IS.start(this):(this.draw(),bw({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:t,height:e}=this._resizeBeforeDraw;this._resize(t,e),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0)return;if(!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const 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){const e=this._sortedMetasets,i=[];let r,n;for(r=0,n=e.length;r<n;++r){const n=e[r];t&&!n.visible||i.push(n)}return i}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const t=this.getSortedVisibleDatasetMetas();for(let e=t.length-1;e>=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,i=t._clip,r=!i.disabled,n=function(t,e){const{xScale:i,yScale:r}=t;return i&&r?{left:Mw(i,e,"left"),right:Mw(i,e,"right"),top:Mw(r,e,"top"),bottom:Mw(r,e,"bottom")}:e}(t,this.chartArea),s={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",s)&&(r&&bb(e,{left:!1===i.left?0:n.left-i.left,right:!1===i.right?this.width:n.right+i.right,top:!1===i.top?0:n.top-i.top,bottom:!1===i.bottom?this.height:n.bottom+i.bottom}),t.controller.draw(),r&&Sb(e),s.cancelable=!1,this.notifyPlugins("afterDatasetDraw",s))}isPointInArea(t){return _b(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,i,r){const n=pE.modes[e];return"function"==typeof n?n(this,t,i,r):[]}getDatasetMeta(t){const e=this.data.datasets[t],i=this._metasets;let 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=Vb(null,{chart:this,type:"chart"}))}
vendor: 4,108 bytes, line 2
2getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const 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){const r=i?"show":"hide",n=this.getDatasetMeta(t),s=n.controller._resolveAnimations(void 0,r);c_(e)?(n.data[e].hidden=!i,this.update()):(this.setDatasetVisibility(t,i),s.update(n,{visible:i}),this.update((e=>e.datasetIndex===t?r:void 0)))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),IS.remove(this),t=0,e=this.data.datasets.length;t<e;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:e}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),yb(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),delete ww[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,e=this.platform,i=(i,r)=>{e.addEventListener(this,i,r),t[i]=r},r=(t,e,i)=>{t.offsetX=e,t.offsetY=i,this._eventHandler(t)};Qx(this.options.events,(t=>i(t,r)))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,i=(i,r)=>{e.addEventListener(this,i,r),t[i]=r},r=(i,r)=>{t[i]&&(e.removeEventListener(this,i,r),delete t[i])},n=(t,e)=>{this.canvas&&this.resize(t,e)};let s;const a=()=>{r("attach",a),this.attached=!0,this.resize(),i("resize",n),i("detach",s)};s=()=>{this.attached=!1,r("resize",n),this._stop(),this._resize(0,0),i("attach",a)},e.isAttached(this.canvas)?a():s()}unbindEvents(){Qx(this._listeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._listeners={},Qx(this._responsiveListeners,((t,e)=>{this.platform.removeEventListener(this,e,t)})),this._responsiveListeners=void 0}updateHoverStyle(t,e,i){const r=i?"set":"remove";let n,s,a,o;for("dataset"===e&&(n=this.getDatasetMeta(t[0].datasetIndex),n.controller["_"+r+"DatasetHoverStyle"]()),a=0,o=t.length;a<o;++a){s=t[a];const e=s&&this.getDatasetMeta(s.datasetIndex).controller;e&&e[r+"HoverStyle"](s.element,s.datasetIndex,s.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],i=t.map((({datasetIndex:t,index:e})=>{const i=this.getDatasetMeta(t);if(!i)throw new Error("No dataset found at index "+t);return{datasetIndex:t,element:i.data[e],index:e}}));!t_(i,e)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,e))}notifyPlugins(t,e,i){return this._plugins.notify(this,t,e,i)}isPluginEnabled(t){return 1===this._plugins._cache.filter((e=>e.plugin.id===t)).length}_updateHoverStyles(t,e,i){const 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){const 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;const 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){const{_active:r=[],options:n}=this,s=e,a=this._getActiveElements(t,r,i,s),o=function(t){return"mouseup"===t.type||"click"===t.type||"contextmenu"===t.type}(t),l=function(t,e,i,r){return i&&"mouseout"!==t.type?r?e:t:null}(t,this._lastEvent,i,o);i&&(this._lastEvent=null,Jx(n.onHover,[t,a,this],this),o&&Jx(n.onClick,[t,a,this],this));const h=!t_(a,r);
vendor: 4,138 bytes, line 2
2return(h||e)&&(this._active=a,this._updateHoverStyles(a,r,e)),this._lastEvent=l,h}_getActiveElements(t,e,i,r){if("mouseout"===t.type)return[];if(!i)return e;const n=this.options.hover;return this.getElementsAtEventForMode(t,n.mode,n,r)}}function Cw(){return Qx(Pw.instances,(t=>t._plugins.invalidate()))}function kw(t,e,i,r){return{x:i+t*Math.cos(e),y:r+t*Math.sin(e)}}function Iw(t,e,i,r,n,s){const{x:a,y:o,startAngle:l,pixelMargin:h,innerRadius:c}=e,u=Math.max(e.outerRadius+r+i-h,0),d=c>0?c+r+i+h:0;let p=0;const f=n-l;if(r){const t=((c>0?c-r:0)+(u>0?u-r:0))/2;p=(f-(0!==t?f*t/(t+r):f))/2}const m=(f-Math.max(.001,f*u-i/p_)/u)/2,g=l+m+p,y=n-m-p,{outerStart:v,outerEnd:x,innerStart:_,innerEnd:b}=function(t,e,i,r){const n=Rb(t.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]),s=(i-e)/2,a=Math.min(s,r*e/2),o=t=>{const e=(i-Math.min(s,t))*r/2;return L_(t,0,Math.min(s,e))};return{outerStart:o(n.outerStart),outerEnd:o(n.outerEnd),innerStart:L_(n.innerStart,0,a),innerEnd:L_(n.innerEnd,0,a)}}(e,d,u,y-g),S=u-v,E=u-x,w=g+v/S,T=y-x/E,A=d+_,M=d+b,P=g+_/A,C=y-b/M;if(t.beginPath(),s){const e=(w+T)/2;if(t.arc(a,o,u,w,e),t.arc(a,o,u,e,T),x>0){const e=kw(E,T,a,o);t.arc(e.x,e.y,x,T,y+v_)}const i=kw(M,y,a,o);if(t.lineTo(i.x,i.y),b>0){const e=kw(M,C,a,o);t.arc(e.x,e.y,b,y+v_,C+Math.PI)}const r=(y-b/d+(g+_/d))/2;if(t.arc(a,o,d,y-b/d,r,!0),t.arc(a,o,d,r,g+_/d,!0),_>0){const e=kw(A,P,a,o);t.arc(e.x,e.y,_,P+Math.PI,g-v_)}const n=kw(S,g,a,o);if(t.lineTo(n.x,n.y),v>0){const e=kw(S,w,a,o);t.arc(e.x,e.y,v,g-v_,w)}}else{t.moveTo(a,o);const e=Math.cos(w)*u+a,i=Math.sin(w)*u+o;t.lineTo(e,i);const r=Math.cos(T)*u+a,n=Math.sin(T)*u+o;t.lineTo(r,n)}t.closePath()}class Dw extends HE{static id="arc";static defaults={borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0};static defaultRoutes={backgroundColor:"backgroundColor"};static descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;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){const r=this.getProps(["x","y"],i),{angle:n,distance:s}=k_(r,{x:t,y:e}),{startAngle:a,endAngle:o,innerRadius:l,outerRadius:h,circumference:c}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),u=(this.options.spacing+this.options.borderWidth)/2,d=Kx(c,o-a)>=f_||O_(n,a,o),p=F_(s,l+u,h+u);return d&&p}getCenterPoint(t){const{x:e,y:i,startAngle:r,endAngle:n,innerRadius:s,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],t),{offset:o,spacing:l}=this.options,h=(r+n)/2,c=(s+a+l+o)/2;return{x:e+Math.cos(h)*c,y:i+Math.sin(h)*c}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:i}=this,r=(e.offset||0)/4,n=(e.spacing||0)/2,s=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=i>f_?Math.floor(i/f_):0,0===i||this.innerRadius<0||this.outerRadius<0)return;t.save();const a=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(a)*r,Math.sin(a)*r);const o=r*(1-Math.sin(Math.min(p_,i||0)));t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor,function(t,e,i,r,n){const{fullCircles:s,startAngle:a,circumference:o}=e;let l=e.endAngle;if(s){Iw(t,e,i,r,l,n);for(let e=0;e<s;++e)t.fill();isNaN(o)||(l=a+(o%f_||f_))}Iw(t,e,i,r,l,n),t.fill()}(t,this,o,n,s),function(t,e,i,r,n){const{fullCircles:s,startAngle:a,circumference:o,options:l}=e,{borderWidth:h,borderJoinStyle:c,borderDash:u,borderDashOffset:d}=l,p="inner"===l.borderAlign;if(!h)return;t.setLineDash(u||[]),t.lineDashOffset=d,p?(t.lineWidth=2*h,t.lineJoin=c||"round"):(t.lineWidth=h,t.lineJoin=c||"bevel");let f=e.endAngle;if(s){Iw(t,e,i,r,f,n);for(let e=0;e<s;++e)t.stroke();isNaN(o)||(f=a+(o%f_||f_))}p&&function(t,e,i){const{startAngle:r,pixelMargin:n,x:s,y:a,outerRadius:o,innerRadius:l}=e;let h=n/o;
vendor: 4,964 bytes, line 2
2t.beginPath(),t.arc(s,a,o,r-h,i+h),l>n?(h=n/l,t.arc(s,a,l,i+h,r-h,!0)):t.arc(s,a,n,i+v_,r-v_),t.closePath(),t.clip()}(t,e,f),s||(Iw(t,e,i,r,f,n),t.stroke())}(t,this,o,n,s),t.restore()}}function Rw(t,e,i=e){t.lineCap=Kx(i.borderCapStyle,e.borderCapStyle),t.setLineDash(Kx(i.borderDash,e.borderDash)),t.lineDashOffset=Kx(i.borderDashOffset,e.borderDashOffset),t.lineJoin=Kx(i.borderJoinStyle,e.borderJoinStyle),t.lineWidth=Kx(i.borderWidth,e.borderWidth),t.strokeStyle=Kx(i.borderColor,e.borderColor)}function Ow(t,e,i){t.lineTo(i.x,i.y)}function Lw(t,e,i={}){const 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),c=n<a&&s<a||n>o&&s>o;return{count:r,start:l,loop:e.loop,ilen:h<l&&!c?r+h-l:h-l}}function Fw(t,e,i,r){const{points:n,options:s}=e,{count:a,start:o,loop:l,ilen:h}=Lw(n,i,r),c=function(t){return t.stepped?Eb:t.tension||"monotone"===t.cubicInterpolationMode?wb:Ow}(s);let u,d,p,{move:f=!0,reverse:m}=r||{};for(u=0;u<=h;++u)d=n[(o+(m?h-u:u))%a],d.skip||(f?(t.moveTo(d.x,d.y),f=!1):c(t,p,d,m,s.stepped),p=d);return l&&(d=n[(o+(m?h:0))%a],c(t,p,d,m,s.stepped)),!!l}function Bw(t,e,i,r){const n=e.points,{count:s,start:a,ilen:o}=Lw(n,i,r),{move:l=!0,reverse:h}=r||{};let c,u,d,p,f,m,g=0,y=0;const v=t=>(a+(h?o-t:t))%s,x=()=>{p!==f&&(t.lineTo(g,f),t.lineTo(g,p),t.lineTo(g,m))};for(l&&(u=n[v(0)],t.moveTo(u.x,u.y)),c=0;c<=o;++c){if(u=n[v(c)],u.skip)continue;const e=u.x,i=u.y,r=0|e;r===d?(i<p?p=i:i>f&&(f=i),g=(y*g+e)/++y):(x(),t.lineTo(e,i),d=r,y=0,p=f=i),m=i}x()}function Nw(t){const e=t.options,i=e.borderDash&&e.borderDash.length;return t._decimated||t._loop||e.tension||"monotone"===e.cubicInterpolationMode||e.stepped||i?Fw:Bw}const Vw="function"==typeof Path2D;class zw extends HE{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t};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){const i=this.options;if((i.tension||"monotone"===i.cubicInterpolationMode)&&!i.stepped&&!this._pointsUpdated){const r=i.spanGaps?this._loop:this._fullLoop;sS(this._points,i,t,r,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=function(t,e){const i=t.points,r=t.options.spanGaps,n=i.length;if(!n)return[];const s=!!t._loop,{start:a,end:o}=function(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 s%=e,{start:n,end:s}}(i,n,s,r);return function(t,e,i,r){return r&&r.setContext&&i?function(t,e,i,r){const n=t._chart.getContext(),s=PS(t.options),{_datasetIndex:a,options:{spanGaps:o}}=t,l=i.length,h=[];let c=s,u=e[0].start,d=u;function p(t,e,r,n){const 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}),c=n,u=e%l)}}for(const t of e){u=o?u:t.start;let e,s=i[u%l];for(d=u+1;d<=t.end;d++){const o=i[d%l];e=PS(r.setContext(Vb(n,{type:"segment",p0:s,p1:o,p0DataIndex:(d-1)%l,p1DataIndex:d%l,datasetIndex:a}))),CS(e,c)&&p(u,d-1,t.loop,c),s=o,c=e}u<d-1&&p(u,d-1,t.loop,c)}return h}(t,e,i,r):e}(t,!0===r?[{start:a,end:o,loop:s}]:function(t,e,i,r){const n=t.length,s=[];let a,o=e,l=t[e];for(a=e+1;a<=i;++a){const i=t[a%n];i.skip||i.stop?l.skip||(r=!1,s.push({start:e%n,end:(a-1)%n,loop:r}),e=o=i.stop?a:null):(o=a,l.skip&&(e=a)),l=i}return null!==o&&s.push({start:e%n,end:o%n,loop:r}),s}(i,a,o<a?o+n:o,!!t._fullLoop&&0===a&&o===n-1),i,e)}(this,this.options.segment))}first(){const t=this.segments,e=this.points;return t.length&&e[t[0].start]}last(){const t=this.segments,e=this.points,i=t.length;return i&&e[t[i-1].end]}interpolate(t,e){const i=this.options,r=t[e],n=this.points,s=MS(this,{property:e,start:r,end:r});if(!s.length)return;const a=[],o=function(t){return t.stepped?xS:t.tension||"monotone"===t.cubicInterpolationMode?_S:vS}(i);let l,h;for(l=0,h=s.length;l<h;++l){const{start:h,end:c}=s[l],u=n[h],d=n[c];if(u===d){a.push(u);continue}const p=o(u,d,Math.abs((r-u[e])/(d[e]-u[e])),i.stepped);p[e]=t[e],a.push(p)}return 1===a.length?a[0]:a}pathSegment(t,e,i){return Nw(this)(t,this,e,i)}path(t,e,i){const r=this.segments,n=Nw(this);let s=this._loop;e=e||0,i=i||this.points.length-e;for(const a of r)s&=n(t,this,a,{start:e,end:e+i-1});return!!s}draw(t,e,i,r){const n=this.options||{};(this.points||[]).length&&n.borderWidth&&(t.save(),function(t,e,
vendor: 7,371 bytes, line 2
2i,r){Vw&&!e.options.segment?function(t,e,i,r){let n=e._path;n||(n=e._path=new Path2D,e.path(n,i,r)&&n.closePath()),Rw(t,e.options),t.stroke(n)}(t,e,i,r):function(t,e,i,r){const{segments:n,options:s}=e,a=Nw(e);for(const o of n)Rw(t,s,o.style),t.beginPath(),a(t,e,o,{start:i,end:i+r-1})&&t.closePath(),t.stroke()}(t,e,i,r)}(t,this,i,r),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function Gw(t,e,i,r){const n=t.options,{[i]:s}=t.getProps([i],r);return Math.abs(e-s)<n.radius+n.hitRadius}class Uw extends HE{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};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){const 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 Gw(this,t,"x",e)}inYRange(t,e){return Gw(this,t,"y",e)}getCenterPoint(t){const{x:e,y:i}=this.getProps(["x","y"],t);return{x:e,y:i}}size(t){let e=(t=t||this.options||{}).radius||0;return e=Math.max(e,e&&t.hoverRadius||0),2*(e+(e&&t.borderWidth||0))}draw(t,e){const i=this.options;this.skip||i.radius<.1||!_b(this,e,this.size(i)/2)||(t.strokeStyle=i.borderColor,t.lineWidth=i.borderWidth,t.fillStyle=i.backgroundColor,vb(t,i,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}function Hw(t,e){const{x:i,y:r,base:n,width:s,height:a}=t.getProps(["x","y","base","width","height"],e);let o,l,h,c,u;return t.horizontal?(u=a/2,o=Math.min(i,n),l=Math.max(i,n),h=r-u,c=r+u):(u=s/2,o=i-u,l=i+u,h=Math.min(r,n),c=Math.max(r,n)),{left:o,top:h,right:l,bottom:c}}function jw(t,e,i,r){return t?0:L_(e,i,r)}function Ww(t,e,i,r){const n=null===e,s=null===i,a=t&&!(n&&s)&&Hw(t,r);return a&&(n||F_(e,a.left,a.right))&&(s||F_(i,a.top,a.bottom))}function Xw(t,e){t.rect(e.x,e.y,e.w,e.h)}function $w(t,e,i={}){const 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}}class Yw extends HE{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};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){const{inflateAmount:e,options:{borderColor:i,backgroundColor:r}}=this,{inner:n,outer:s}=function(t){const e=Hw(t),i=e.right-e.left,r=e.bottom-e.top,n=function(t,e,i){const r=t.options.borderWidth,n=t.borderSkipped,s=Ob(r);return{t:jw(n.top,s.top,0,i),r:jw(n.right,s.right,0,e),b:jw(n.bottom,s.bottom,0,i),l:jw(n.left,s.left,0,e)}}(t,i/2,r/2),s=function(t,e,i){const{enableBorderRadius:r}=t.getProps(["enableBorderRadius"]),n=t.options.borderRadius,s=Lb(n),a=Math.min(e,i),o=t.borderSkipped,l=r||$x(n);return{topLeft:jw(!l||o.top||o.left,s.topLeft,0,a),topRight:jw(!l||o.top||o.right,s.topRight,0,a),bottomLeft:jw(!l||o.bottom||o.left,s.bottomLeft,0,a),bottomRight:jw(!l||o.bottom||o.right,s.bottomRight,0,a)}}(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))}}}}(this),a=(o=s.radius).topLeft||o.topRight||o.bottomLeft||o.bottomRight?Pb:Xw;var o;t.save(),s.w===n.w&&s.h===n.h||(t.beginPath(),a(t,$w(s,e,n)),t.clip(),a(t,$w(n,-e,s)),t.fillStyle=i,t.fill("evenodd")),t.beginPath(),a(t,$w(n,e)),t.fillStyle=r,t.fill(),t.restore()}inRange(t,e,i){return Ww(this,t,e,i)}inXRange(t,e){return Ww(this,t,null,e)}inYRange(t,e){return Ww(this,null,t,e)}getCenterPoint(t){const{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}}var qw=Object.freeze({__proto__:null,ArcElement:Dw,BarElement:Yw,LineElement:zw,PointElement:Uw});const Kw=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],Zw=Kw.map((t=>t.replace("rgb(","rgba(").replace(")",", 0.5)")));function Jw(t){return Kw[t%Kw.length]}function Qw(t){return Zw[t%Zw.length]}function tT(t){let e;for(e in t)if(t[e].borderColor||t[e].backgroundColor)return!0;return!1}var eT={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(t,e,i){if(!i.enabled)return;const{data:{datasets:r},options:n}=t.config,{elements:s}=n;if(!i.forceOverride&&(tT(r)||(a=n)&&(a.borderColor||a.backgroundColor)||s&&tT(s)))return;var a;const o=function(t){let e=0;return(i,r)=>{const n=t.getDatasetMeta(r).controller;n instanceof iE?e=function(t,e){return t.backgroundColor=t.data.map((()=>Jw(e++))),e}(i,e):n instanceof rE?e=function(t,e){return t.backgroundColor=t.data.map((()=>Qw(e++))),e}(i,e):n&&(e=function(t,e){return t.borderColor=Jw(e),t.backgroundColor=Qw(e),++e}(i,e))}}(t);r.forEach(o)}};function iT(t){if(t._decimated){const e=t._data;delete t._decimated,delete t._data,Object.defineProperty(t,"data",{configurable:!0,enumerable:!0,writable:!0,value:e})}}function rT(t){t.data.datasets.forEach((t=>{iT(t)}))}var nT={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(t,e,i)=>{if(!i.enabled)return void rT(t);const r=t.width;t.data.datasets.forEach(((e,n)=>{const{_data:s,indexAxis:a}=e,o=t.getDatasetMeta(n),l=s||e.data;if("y"===Nb([a,t.options.indexAxis]))return;if(!o.controller.supportsDecimation)return;const h=t.scales[o.xAxisID];if("linear"!==h.type&&"time"!==h.type)return;if(t.options.parsing)return;let c,{start:u,count:d}=function(t,e){const i=e.length;let r,n=0;const{iScale:s}=t,{min:a,max:o,minDefined:l,maxDefined:h}=s.getUserBounds();return l&&(n=L_(N_(e,s.axis,a).lo,0,i-1)),r=h?L_(N_(e,s.axis,o).hi+1,n,i)-n:i-n,{start:n,count:r}}(o,l);if(d<=(i.threshold||4*r))iT(e);else{switch(Wx(s)&&(e._data=l,delete e.data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(t){this._data=t}})),i.algorithm){case"lttb":c=function(t,e,i,r,n){const s=n.samples||r;if(s>=i)return t.slice(e,e+i);const a=[],o=(i-2)/(s-2);let l=0;const h=e+i-1;let c,u,d,p,f,m=e;for(a[l++]=t[m],c=0;c<s-2;c++){let r,n=0,s=0;const h=Math.floor((c+1)*o)+1+e,g=Math.min(Math.floor((c+2)*o)+1,i)+e,y=g-h;for(r=h;r<g;r++)n+=t[r].x,s+=t[r].y;n/=y,s/=y;const v=Math.floor(c*o)+1+e,x=Math.min(Math.floor((c+1)*o)+1,i)+e,{x:_,y:b}=t[m];for(d=p=-1,r=v;r<x;r++)p=.5*Math.abs((_-n)*(t[r].y-b)-(_-t[r].x)*(s-b)),p>d&&(d=p,u=t[r],f=r);a[l++]=u,m=f}return a[l++]=t[h],a}(l,u,d,r,i);break;case"min-max":c=function(t,e,i,r){let n,s,a,o,l,h,c,u,d,p,f=0,m=0;const g=[],y=e+i-1,v=t[e].x,x=t[y].x-v;for(n=e;n<e+i;++n){s=t[n],a=(s.x-v)/x*r,o=s.y;const e=0|a;if(e===l)o<d?(d=o,h=n):o>p&&(p=o,c=n),f=(m*f+s.x)/++m;else{const i=n-1;if(!Wx(h)&&!Wx(c)){const e=Math.min(h,c),r=Math.max(h,c);e!==u&&e!==i&&g.push({...t[e],x:f}),r!==u&&r!==i&&g.push({...t[r],x:f})}n>
vendor: 4,506 bytes, line 2
20&&i!==u&&g.push(t[i]),g.push(s),l=e,m=0,d=p=o,h=c=u=n}}return g}(l,u,d,r);break;default:throw new Error(`Unsupported decimation algorithm '${i.algorithm}'`)}e._decimated=c}}))},destroy(t){rT(t)}};function sT(t,e,i,r){if(r)return;let n=e[t],s=i[t];return"angle"===t&&(n=R_(n),s=R_(s)),{property:t,start:n,end:s}}function aT(t,e,i){for(;e>t;e--){const t=i[e];if(!isNaN(t.x)&&!isNaN(t.y))break}return e}function oT(t,e,i,r){return t&&e?r(t[i],e[i]):t?t[i]:e?e[i]:0}function lT(t,e){let i=[],r=!1;return Xx(t)?(r=!0,i=t):i=function(t,e){const{x:i=null,y:r=null}=t||{},n=e.points,s=[];return e.segments.forEach((({start:t,end:e})=>{e=aT(t,e,n);const 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}(t,e),i.length?new zw({points:i,options:{tension:0},_loop:r,_fullLoop:r}):null}function hT(t){return t&&!1!==t.fill}function cT(t,e,i){let r=t[e].fill;const n=[e];let s;if(!i)return r;for(;!1!==r&&-1===n.indexOf(r);){if(!Yx(r))return r;if(s=t[r],!s)return!1;if(s.visible)return r;n.push(r),r=s.fill}return!1}function uT(t,e,i){const r=function(t){const e=t.options,i=e.fill;let r=Kx(i&&i.target,i);return void 0===r&&(r=!!e.backgroundColor),!1!==r&&null!==r&&(!0===r?"origin":r)}(t);if($x(r))return!isNaN(r.value)&&r;let n=parseFloat(r);return Yx(n)&&Math.floor(n)===n?function(t,e,i,r){return"-"!==t&&"+"!==t||(i=e+i),!(i===e||i<0||i>=r)&&i}(r[0],e,n,i):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function dT(t,e,i){const r=[];for(let n=0;n<i.length;n++){const s=i[n],{first:a,last:o,point:l}=pT(s,e,"x");if(!(!l||a&&o))if(a)r.unshift(l);else if(t.push(l),!o)break}t.push(...r)}function pT(t,e,i){const r=t.interpolate(e,i);if(!r)return{};const n=r[i],s=t.segments,a=t.points;let o=!1,l=!1;for(let t=0;t<s.length;t++){const e=s[t],r=a[e.start][i],h=a[e.end][i];if(F_(n,r,h)){o=n===r,l=n===h;break}}return{first:o,last:l,point:r}}class fT{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,e,i){const{x:r,y:n,radius:s}=this;return e=e||{start:0,end:f_},t.arc(r,n,s,e.end,e.start,!0),!i.bounds}interpolate(t){const{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 mT(t,e,i){const r=function(t){const{chart:e,fill:i,line:r}=t;if(Yx(i))return function(t,e){const i=t.getDatasetMeta(e);return i&&t.isDatasetVisible(e)?i.dataset:null}(e,i);if("stack"===i)return function(t){const{scale:e,index:i,line:r}=t,n=[],s=r.segments,a=r.points,o=function(t,e){const i=[],r=t.getMatchingVisibleMetas("line");for(let t=0;t<r.length;t++){const n=r[t];if(n.index===e)break;n.hidden||i.unshift(n.dataset)}return i}(e,i);o.push(lT({x:null,y:e.bottom},r));for(let t=0;t<s.length;t++){const e=s[t];for(let t=e.start;t<=e.end;t++)dT(n,a[t],o)}return new zw({points:n,options:{}})}(t);if("shape"===i)return!0;const n=function(t){return(t.scale||{}).getPointPositionForValue?function(t){const{scale:e,fill:i}=t,r=e.options,n=e.getLabels().length,s=r.reverse?e.max:e.min,a=function(t,e,i){let r;return r="start"===t?i:"end"===t?e.options.reverse?e.min:e.max:$x(t)?t.value:e.getBaseValue(),r}(i,e,s),o=[];if(r.grid.circular){const t=e.getPointPositionForValue(0,s);return new fT({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}(t):function(t){const{scale:e={},fill:i}=t,r=function(t,e){let i=null;return"start"===t?i=e.bottom:"end"===t?i=e.top:$x(t)?i=e.getPixelForValue(t.value):e.getBasePixel&&(i=e.getBasePixel()),i}(i,e);if(Yx(r)){const t=e.isHorizontal();return{x:t?r:null,y:t?null:r}}return null}(t)}(t);return n instanceof fT?n:lT(n,r)}(e),{line:n,scale:s,axis:a}=e,o=n.options,l=o.fill,h=o.backgroundColor,{above:c=h,below:u=h}=l||{};r&&n.points.length&&(bb(t,i),function(t,e){const{line:i,target:r,above:n,below:s,area:a,scale:o}=e,l=i._loop?"angle":e.axis;t.save(),"x"===l&&s!==n&&(gT(t,r,a.top),yT(t,{line:i,target:r,color:n,scale:o,property:l}),t.restore(),t.save(),gT(t,r,a.bottom)),yT(t,{line:i,target:r,color:s,scale:o,property:l}),t.restore()}(t,{line:n,target:r,above:c,below:u,area:i,scale:s,axis:a}),Sb(t))}function gT(t,e,i){const{segments:r,points:n}=e;let s=!0,a=!1;t.beginPath();for(const o of r){const{start:r,end:l}=o,h=n[r],c=n[aT(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}),a?t.closePath():t.lineTo(c.x,i)}t.lineTo(e.first().x,i),t.closePath(),t.clip()}function yT(t,e){const{line:i,target:r,property:n,color:s,scale:a}
vendor: 4,206 bytes, line 2
2=e,o=function(t,e,i){const r=t.segments,n=t.points,s=e.points,a=[];for(const t of r){let{start:r,end:o}=t;o=aT(r,o,n);const l=sT(i,n[r],n[o],t.loop);if(!e.segments){a.push({source:t,target:l,start:n[r],end:n[o]});continue}const h=MS(e,l);for(const e of h){const r=sT(i,s[e.start],s[e.end],e.loop),o=AS(t,n,r);for(const t of o)a.push({source:t,target:e,start:{[i]:oT(l,r,"start",Math.max)},end:{[i]:oT(l,r,"end",Math.min)}})}}return a}(i,r,n);for(const{source:e,target:l,start:h,end:c}of o){const{style:{backgroundColor:o=s}={}}=e,u=!0!==r;t.save(),t.fillStyle=o,vT(t,a,u&&sT(n,h,c)),t.beginPath();const d=!!i.pathSegment(t,e);let p;if(u){d?t.closePath():xT(t,r,c,n);const e=!!r.pathSegment(t,l,{move:d,reverse:!0});p=d&&e,p||xT(t,r,h,n)}t.closePath(),t.fill(p?"evenodd":"nonzero"),t.restore()}}function vT(t,e,i){const{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 xT(t,e,i,r){const n=e.interpolate(i,r);n&&t.lineTo(n.x,n.y)}var _T={id:"filler",afterDatasetsUpdate(t,e,i){const r=(t.data.datasets||[]).length,n=[];let s,a,o,l;for(a=0;a<r;++a)s=t.getDatasetMeta(a),o=s.dataset,l=null,o&&o.options&&o instanceof zw&&(l={visible:t.isDatasetVisible(a),index:a,fill:uT(o,a,r),chart:t,axis:s.controller.options.indexAxis,scale:s.vScale,line:o}),s.$filler=l,n.push(l);for(a=0;a<r;++a)l=n[a],l&&!1!==l.fill&&(l.fill=cT(n,a,i.propagate))},beforeDraw(t,e,i){const r="beforeDraw"===i.drawTime,n=t.getSortedVisibleDatasetMetas(),s=t.chartArea;for(let e=n.length-1;e>=0;--e){const i=n[e].$filler;i&&(i.line.updateControlPoints(s,i.axis),r&&i.fill&&mT(t.ctx,i,s))}},beforeDatasetsDraw(t,e,i){if("beforeDatasetsDraw"!==i.drawTime)return;const r=t.getSortedVisibleDatasetMetas();for(let e=r.length-1;e>=0;--e){const i=r[e].$filler;hT(i)&&mT(t.ctx,i,t.chartArea)}},beforeDatasetDraw(t,e,i){const r=e.meta.$filler;hT(r)&&"beforeDatasetDraw"===i.drawTime&&mT(t.ctx,r,t.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const bT=(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)}};class ST extends HE{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(){const t=this.options.labels||{};let e=Jx(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(){const{options:t,ctx:e}=this;if(!t.display)return void(this.width=this.height=0);const i=t.labels,r=Bb(i.font),n=r.size,s=this._computeTitleHeight(),{boxWidth:a,itemHeight:o}=bT(i,n);let l,h;e.font=r.string,this.isHorizontal()?(l=this.maxWidth,h=this._fitRows(s,n,a,o)+10):(h=this.maxHeight,l=this._fitCols(s,r,a,o)+10),this.width=Math.min(l,t.maxWidth||this.maxWidth),this.height=Math.min(h,t.maxHeight||this.maxHeight)}_fitRows(t,e,i,r){const{ctx:n,maxWidth:s,options:{labels:{padding:a}}}=this,o=this.legendHitBoxes=[],l=this.lineWidths=[0],h=r+a;let c=t;n.textAlign="left",n.textBaseline="middle";let u=-1,d=-h;return this.legendItems.forEach(((t,p)=>{const f=i+e/2+n.measureText(t.text).width;(0===p||l[l.length-1]+f+2*a>s)&&(c+=h,l[l.length-(p>0?0:1)]=0,d+=h,u++),o[p]={left:0,top:d,row:u,width:f,height:r},l[l.length-1]+=f+a})),c}_fitCols(t,e,i,r){const{ctx:n,maxHeight:s,options:{labels:{padding:a}}}=this,o=this.legendHitBoxes=[],l=this.columnSizes=[],h=s-t;
vendor: 4,287 bytes, line 2
2let c=a,u=0,d=0,p=0,f=0;return this.legendItems.forEach(((t,s)=>{const{itemWidth:m,itemHeight:g}=function(t,e,i,r,n){const s=function(t,e,i,r){let n=t.text;return n&&"string"!=typeof n&&(n=n.reduce(((t,e)=>t.length>e.length?t:e))),e+i.size/2+r.measureText(n).width}(r,t,e,i),a=function(t,e,i){let r=t;return"string"!=typeof e.text&&(r=ET(e,i)),r}(n,r,e.lineHeight);return{itemWidth:s,itemHeight:a}}(i,e,n,t,r);s>0&&d+g+2*a>h&&(c+=u+a,l.push({width:u,height:d}),p+=u+a,f++,u=d=0),o[s]={left:p,top:d,col:f,width:m,height:g},u=Math.max(u,m),d+=g+a})),c+=u,l.push({width:u,height:d}),c}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:i,labels:{padding:r},rtl:n}}=this,s=bS(n,this.left,this.width);if(this.isHorizontal()){let n=0,a=X_(i,this.left+r,this.right-this.lineWidths[n]);for(const o of e)n!==o.row&&(n=o.row,a=X_(i,this.left+r,this.right-this.lineWidths[n])),o.top+=this.top+t+r,o.left=s.leftForLtr(s.x(a),o.width),a+=o.width+r}else{let n=0,a=X_(i,this.top+t+r,this.bottom-this.columnSizes[n].height);for(const o of e)o.col!==n&&(n=o.col,a=X_(i,this.top+t+r,this.bottom-this.columnSizes[n].height)),o.top=a,o.left+=this.left+r,o.left=s.leftForLtr(s.x(o.left),o.width),a+=o.height+r}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;bb(t,this),this._draw(),Sb(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:i,ctx:r}=this,{align:n,labels:s}=t,a=pb.color,o=bS(t.rtl,this.left,this.width),l=Bb(s.font),{padding:h}=s,c=l.size,u=c/2;let d;this.drawTitle(),r.textAlign=o.textAlign("left"),r.textBaseline="middle",r.lineWidth=.5,r.font=l.string;const{boxWidth:p,boxHeight:f,itemHeight:m}=bT(s,c),g=this.isHorizontal(),y=this._computeTitleHeight();d=g?{x:X_(n,this.left+h,this.right-i[0]),y:this.top+h+y,line:0}:{x:this.left+h,y:X_(n,this.top+y+h,this.bottom-e[0].height),line:0},SS(this.ctx,t.textDirection);const v=m+h;this.legendItems.forEach(((x,_)=>{r.strokeStyle=x.fontColor,r.fillStyle=x.fontColor;const b=r.measureText(x.text).width,S=o.textAlign(x.textAlign||(x.textAlign=s.textAlign)),E=p+u+b;let w=d.x,T=d.y;if(o.setWidth(this.width),g?_>0&&w+E+h>this.right&&(T=d.y+=v,d.line++,w=d.x=X_(n,this.left+h,this.right-i[d.line])):_>0&&T+v>this.bottom&&(w=d.x=w+e[d.line].width+h,d.line++,T=d.y=X_(n,this.top+y+h,this.bottom-e[d.line].height)),function(t,e,i){if(isNaN(p)||p<=0||isNaN(f)||f<0)return;r.save();const n=Kx(i.lineWidth,1);if(r.fillStyle=Kx(i.fillStyle,a),r.lineCap=Kx(i.lineCap,"butt"),r.lineDashOffset=Kx(i.lineDashOffset,0),r.lineJoin=Kx(i.lineJoin,"miter"),r.lineWidth=n,r.strokeStyle=Kx(i.strokeStyle,a),r.setLineDash(Kx(i.lineDash,[])),s.usePointStyle){const a={radius:f*Math.SQRT2/2,pointStyle:i.pointStyle,rotation:i.rotation,borderWidth:n},l=o.xPlus(t,p/2);xb(r,a,l,e+u,s.pointStyleWidth&&p)}else{const s=e+Math.max((c-f)/2,0),a=o.leftForLtr(t,p),l=Lb(i.borderRadius);r.beginPath(),Object.values(l).some((t=>0!==t))?Pb(r,{x:a,y:s,w:p,h:f,radius:l}):r.rect(a,s,p,f),r.fill(),0!==n&&r.stroke()}r.restore()}(o.x(w),T,x),w=((t,e,i,r)=>t===(r?"left":"right")?i:"center"===t?(e+i)/2:e)(S,w+p+u,g?w+E:this.right,t.rtl),function(t,e,i){Mb(r,i.text,t,e+m/2,l,{strikethrough:i.hidden,textAlign:o.textAlign(i.textAlign)})}(o.x(w),T,x),g)d.x+=E+h;else if("string"!=typeof x.text){const t=l.lineHeight;d.y+=ET(x,t)+h}else d.y+=v})),ES(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,i=Bb(e.font),r=Fb(e.padding);if(!e.display)return;const n=bS(t.rtl,this.left,this.width),s=this.ctx,a=e.position,o=i.size/2,l=r.top+o;let h,c=this.left,u=this.width;if(this.isHorizontal())u=Math.max(...this.lineWidths),h=this.top+l,c=X_(t.align,c,this.right-u);else{const e=this.columnSizes.reduce(((t,e)=>Math.max(t,e.height)),0);h=l+X_(t.align,this.top,this.bottom-e-t.labels.padding-this._computeTitleHeight())}const d=X_(a,c,c+u);s.textAlign=n.textAlign(W_(a)),s.textBaseline="middle",s.strokeStyle=e.color,s.fillStyle=e.color,s.font=i.string,Mb(s,e.text,d,h,i)}_computeTitleHeight(){const t=this.options.title,e=Bb(t.font),i=Fb(t.padding);return t.display?e.lineHeight+i.height:0}_getLegendItemAt(t,e){let i,r,n;if(F_(t,this.left,this.right)&&F_(e,this.top,this.bottom))for(n=this.legendHitBoxes,i=0;i<n.length;
vendor: 6,295 bytes, line 2
2++i)if(r=n[i],F_(t,r.left,r.left+r.width)&&F_(e,r.top,r.top+r.height))return this.legendItems[i];return null}handleEvent(t){const e=this.options;if(!function(t,e){return!("mousemove"!==t&&"mouseout"!==t||!e.onHover&&!e.onLeave)||!(!e.onClick||"click"!==t&&"mouseup"!==t)}(t.type,e))return;const i=this._getLegendItemAt(t.x,t.y);if("mousemove"===t.type||"mouseout"===t.type){const r=this._hoveredItem,n=((t,e)=>null!==t&&null!==e&&t.datasetIndex===e.datasetIndex&&t.index===e.index)(r,i);r&&!n&&Jx(e.onLeave,[t,r,this],this),this._hoveredItem=i,i&&!n&&Jx(e.onHover,[t,i,this],this)}else i&&Jx(e.onClick,[t,i,this],this)}}function ET(t,e){return e*(t.text?t.text.length:0)}var wT={id:"legend",_element:ST,start(t,e,i){const r=t.legend=new ST({ctx:t.ctx,options:i,chart:t});TE.configure(t,r,i),TE.addBox(t,r)},stop(t){TE.removeBox(t,t.legend),delete t.legend},beforeUpdate(t,e,i){const r=t.legend;TE.configure(t,r,i),r.options=i},afterUpdate(t){const 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){const 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){const e=t.data.datasets,{labels:{usePointStyle:i,pointStyle:r,textAlign:n,color:s,useBorderRadius:a,borderRadius:o}}=t.legend.options;return t._getSortedDatasetMetas().map((t=>{const l=t.controller.getStyle(i?0:void 0),h=Fb(l.borderWidth);return{text:e[t.index].label,fillStyle:l.backgroundColor,fontColor:s,hidden:!t.visible,lineCap:l.borderCapStyle,lineDash:l.borderDash,lineDashOffset:l.borderDashOffset,lineJoin:l.borderJoinStyle,lineWidth:(h.width+h.height)/4,strokeStyle:l.borderColor,pointStyle:r||l.pointStyle,rotation:l.rotation,textAlign:n||l.textAlign,borderRadius:a&&(o||l.borderRadius),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 TT extends HE{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){const i=this.options;if(this.left=0,this.top=0,!i.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=t,this.height=this.bottom=e;const r=Xx(i.text)?i.text.length:1;this._padding=Fb(i.padding);const n=r*Bb(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=n:this.width=n}isHorizontal(){const t=this.options.position;return"top"===t||"bottom"===t}_drawArgs(t){const{top:e,left:i,bottom:r,right:n,options:s}=this,a=s.align;let o,l,h,c=0;return this.isHorizontal()?(l=X_(a,i,n),h=e+t,o=n-i):("left"===s.position?(l=i+t,h=X_(a,r,e),c=-.5*p_):(l=n-t,h=X_(a,e,r),c=.5*p_),o=r-e),{titleX:l,titleY:h,maxWidth:o,rotation:c}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const i=Bb(e.font),r=i.lineHeight/2+this._padding.top,{titleX:n,titleY:s,maxWidth:a,rotation:o}=this._drawArgs(r);Mb(t,e.text,0,0,i,{color:e.color,maxWidth:a,rotation:o,textAlign:W_(e.align),textBaseline:"middle",translation:[n,s]})}}var AT={id:"title",_element:TT,start(t,e,i){!function(t,e){const i=new TT({ctx:t.ctx,options:e,chart:t});TE.configure(t,i,e),TE.addBox(t,i),t.titleBlock=i}(t,i)},stop(t){const e=t.titleBlock;TE.removeBox(t,e),delete t.titleBlock},beforeUpdate(t,e,i){const r=t.titleBlock;TE.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}};const MT=new WeakMap;var PT={id:"subtitle",start(t,e,i){const r=new TT({ctx:t.ctx,options:i,chart:t});TE.configure(t,r,i),TE.addBox(t,r),MT.set(t,r)},stop(t){TE.removeBox(t,MT.get(t)),MT.delete(t)},beforeUpdate(t,e,i){const r=MT.get(t);TE.configure(t,r,i),r.options=i},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const CT={average(t){if(!t.length)return!1;let e,i,r=new Set,n=0,s=0;for(e=0,i=t.length;e<i;++e){const i=t[e].element;if(i&&i.hasValue()){const t=i.tooltipPosition();r.add(t.x),n+=t.y,++s}}const a=[...r].reduce(((t,e)=>t+e))/r.size;return{x:a,y:n/s}},nearest(t,e){if(!t.length)return!1;let i,r,n,s=e.x,a=e.y,o=Number.POSITIVE_INFINITY;for(i=0,r=t.length;i<r;++i){const r=t[i].element;if(r&&r.hasValue()){const t=I_(e,r.getCenterPoint());t<o&&(o=t,n=r)}}if(n){const t=n.tooltipPosition();s=t.x,a=t.y}return{x:s,y:a}}};function kT(t,e){return e&&(Xx(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function IT(t){return("string"==typeof t||t instanceof String)&&t.indexOf("\n")>-1?t.split("\n"):t}function DT(t,e){const{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 RT(t,e){const i=t.chart.ctx,{body:r,footer:n,title:s}=t,{boxWidth:a,boxHeight:o}=e,l=Bb(e.bodyFont),h=Bb(e.titleFont),c=Bb(e.footerFont),u=s.length,d=n.length,p=r.length,f=Fb(e.padding);let m=f.height,g=0,y=r.reduce(((t,e)=>t+e.before.length+e.lines.length+e.after.length),0);y+=t.beforeBody.length+t.afterBody.length,u&&(m+=u*h.lineHeight+(u-1)*e.titleSpacing+e.titleMarginBottom),y&&(m+=p*(e.displayColors?Math.max(o,l.lineHeight):l.lineHeight)+(y-p)*l.lineHeight+(y-1)*e.bodySpacing),d&&(m+=e.footerMarginTop+d*c.lineHeight+(d-1)*e.footerSpacing);let v=0;const x=function(t){g=Math.max(g,i.measureText(t).width+v)};return i.save(),i.font=h.string,Qx(t.title,x),i.font=l.string,Qx(t.beforeBody.concat(t.afterBody),x),v=e.displayColors?a+2+e.boxPadding:0,Qx(r,(t=>{Qx(t.before,x),Qx(t.lines,x),Qx(t.after,x)})),v=0,i.font=c.string,Qx(t.footer,x),i.restore(),g+=f.width,{width:g,height:m}}
vendor: 4,449 bytes, line 2
2function OT(t,e,i,r){const{x:n,width:s}=i,{width:a,chartArea:{left:o,right:l}}=t;let h="center";return"center"===r?h=n<=(o+l)/2?"left":"right":n<=s/2?h="left":n>=a-s/2&&(h="right"),function(t,e,i,r){const{x:n,width:s}=r,a=i.caretSize+i.caretPadding;return"left"===t&&n+s+a>e.width||"right"===t&&n-s-a<0||void 0}(h,t,e,i)&&(h="center"),h}function LT(t,e,i){const r=i.yAlign||e.yAlign||function(t,e){const{y:i,height:r}=e;return i<r/2?"top":i>t.height-r/2?"bottom":"center"}(t,i);return{xAlign:i.xAlign||e.xAlign||OT(t,e,i,r),yAlign:r}}function FT(t,e,i,r){const{caretSize:n,caretPadding:s,cornerRadius:a}=t,{xAlign:o,yAlign:l}=i,h=n+s,{topLeft:c,topRight:u,bottomLeft:d,bottomRight:p}=Lb(a);let f=function(t,e){let{x:i,width:r}=t;return"right"===e?i-=r:"center"===e&&(i-=r/2),i}(e,o);const m=function(t,e,i){let{y:r,height:n}=t;return"top"===e?r+=i:r-="bottom"===e?n+i:n/2,r}(e,l,h);return"center"===l?"left"===o?f+=h:"right"===o&&(f-=h):"left"===o?f-=Math.max(c,d)+n:"right"===o&&(f+=Math.max(u,p)+n),{x:L_(f,0,r.width-e.width),y:L_(m,0,r.height-e.height)}}function BT(t,e,i){const r=Fb(i.padding);return"center"===e?t.x+t.width/2:"right"===e?t.x+t.width-r.right:t.x+r.left}function NT(t){return kT([],IT(t))}function VT(t,e){const i=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return i?t.override(i):t}const zT={beforeTitle:Hx,title(t){if(t.length>0){const 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:Hx,beforeBody:Hx,beforeLabel:Hx,label(t){if(this&&this.options&&"dataset"===this.options.mode)return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const i=t.formattedValue;return Wx(i)||(e+=i),e},labelColor(t){const 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){const e=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:Hx,afterBody:Hx,beforeFooter:Hx,footer:Hx,afterFooter:Hx};function GT(t,e,i,r){const n=t[e].call(i,r);return void 0===n?zT[e].call(i,r):n}class UT extends HE{static positioners=CT;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,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(){const t=this._cachedAnimations;if(t)return t;const e=this.chart,i=this.options.setContext(this.getContext()),r=i.enabled&&e.options.animation&&i.animations,n=new LS(this.chart,r);return r._cacheable&&(this._cachedAnimations=Object.freeze(n)),n}getContext(){return this.$context||(this.$context=Vb(this.chart.getContext(),{tooltip:this,tooltipItems:this._tooltipItems,type:"tooltip"}))}getTitle(t,e){const{callbacks:i}=e,r=GT(i,"beforeTitle",this,t),n=GT(i,"title",this,t),s=GT(i,"afterTitle",this,t);let a=[];return a=kT(a,IT(r)),a=kT(a,IT(n)),a=kT(a,IT(s)),a}getBeforeBody(t,e){return NT(GT(e.callbacks,"beforeBody",this,t))}getBody(t,e){const{callbacks:i}=e,r=[];return Qx(t,(t=>{const e={before:[],lines:[],after:[]},n=VT(i,t);kT(e.before,IT(GT(n,"beforeLabel",this,t))),kT(e.lines,GT(n,"label",this,t)),kT(e.after,IT(GT(n,"afterLabel",this,t))),r.push(e)})),r}getAfterBody(t,e){return NT(GT(e.callbacks,"afterBody",this,t))}getFooter(t,e){const{callbacks:i}=e,r=GT(i,"beforeFooter",this,t),n=GT(i,"footer",this,t),s=GT(i,"afterFooter",this,t);let a=[];return a=kT(a,IT(r)),a=kT(a,IT(n)),a=kT(a,IT(s)),a}_createItems(t){const e=this._active,i=this.chart.data,r=[],n=[],s=[];let a,o,l=[];for(a=0,o=e.length;a<o;++a)l.push(DT(this.chart,e[a]));return t.filter&&(l=l.filter(((e,r,n)=>
vendor: 10,213 bytes, line 2
2t.filter(e,r,n,i)))),t.itemSort&&(l=l.sort(((e,r)=>t.itemSort(e,r,i)))),Qx(l,(e=>{const i=VT(t.callbacks,e);r.push(GT(i,"labelColor",this,e)),n.push(GT(i,"labelPointStyle",this,e)),s.push(GT(i,"labelTextColor",this,e))})),this.labelColors=r,this.labelPointStyles=n,this.labelTextColors=s,this.dataPoints=l,l}update(t,e){const i=this.options.setContext(this.getContext()),r=this._active;let n,s=[];if(r.length){const t=CT[i.position].call(this,r,this._eventPosition);s=this._createItems(i),this.title=this.getTitle(s,i),this.beforeBody=this.getBeforeBody(s,i),this.body=this.getBody(s,i),this.afterBody=this.getAfterBody(s,i),this.footer=this.getFooter(s,i);const e=this._size=RT(this,i),a=Object.assign({},t,e),o=LT(this.chart,i,a),l=FT(i,a,o,this.chart);this.xAlign=o.xAlign,this.yAlign=o.yAlign,n={opacity:1,x:l.x,y:l.y,width:e.width,height:e.height,caretX:t.x,caretY:t.y}}else 0!==this.opacity&&(n={opacity:0});this._tooltipItems=s,this.$context=void 0,n&&this._resolveAnimations().update(this,n),t&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,i,r){const 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){const{xAlign:r,yAlign:n}=this,{caretSize:s,cornerRadius:a}=i,{topLeft:o,topRight:l,bottomLeft:h,bottomRight:c}=Lb(a),{x:u,y:d}=t,{width:p,height:f}=e;let m,g,y,v,x,_;return"center"===n?(x=d+f/2,"left"===r?(m=u,g=m-s,v=x+s,_=x-s):(m=u+p,g=m+s,v=x-s,_=x+s),y=m):(g="left"===r?u+Math.max(o,h)+s:"right"===r?u+p-Math.max(l,c)-s:this.caretX,"top"===n?(v=d,x=v-s,m=g-s,y=g+s):(v=d+f,x=v+s,m=g+s,y=g-s),_=v),{x1:m,x2:g,x3:y,y1:v,y2:x,y3:_}}drawTitle(t,e,i){const r=this.title,n=r.length;let s,a,o;if(n){const l=bS(i.rtl,this.x,this.width);for(t.x=BT(this,i.titleAlign,i),e.textAlign=l.textAlign(i.titleAlign),e.textBaseline="middle",s=Bb(i.titleFont),a=i.titleSpacing,e.fillStyle=i.titleColor,e.font=s.string,o=0;o<n;++o)e.fillText(r[o],l.x(t.x),t.y+s.lineHeight/2),t.y+=s.lineHeight+a,o+1===n&&(t.y+=i.titleMarginBottom-a)}}_drawColorBox(t,e,i,r,n){const s=this.labelColors[i],a=this.labelPointStyles[i],{boxHeight:o,boxWidth:l}=n,h=Bb(n.bodyFont),c=BT(this,"left",n),u=r.x(c),d=o<h.lineHeight?(h.lineHeight-o)/2:0,p=e.y+d;if(n.usePointStyle){const e={radius:Math.min(l,o)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},i=r.leftForLtr(u,l)+l/2,h=p+o/2;t.strokeStyle=n.multiKeyBackground,t.fillStyle=n.multiKeyBackground,vb(t,e,i,h),t.strokeStyle=s.borderColor,t.fillStyle=s.backgroundColor,vb(t,e,i,h)}else{t.lineWidth=$x(s.borderWidth)?Math.max(...Object.values(s.borderWidth)):s.borderWidth||1,t.strokeStyle=s.borderColor,t.setLineDash(s.borderDash||[]),t.lineDashOffset=s.borderDashOffset||0;const e=r.leftForLtr(u,l),i=r.leftForLtr(r.xPlus(u,1),l-2),a=Lb(s.borderRadius);Object.values(a).some((t=>0!==t))?(t.beginPath(),t.fillStyle=n.multiKeyBackground,Pb(t,{x:e,y:p,w:l,h:o,radius:a}),t.fill(),t.stroke(),t.fillStyle=s.backgroundColor,t.beginPath(),Pb(t,{x:i,y:p+1,w:l-2,h:o-2,radius:a}),t.fill()):(t.fillStyle=n.multiKeyBackground,t.fillRect(e,p,l,o),t.strokeRect(e,p,l,o),t.fillStyle=s.backgroundColor,t.fillRect(i,p+1,l-2,o-2))}t.fillStyle=this.labelTextColors[i]}drawBody(t,e,i){const{body:r}=this,{bodySpacing:n,bodyAlign:s,displayColors:a,boxHeight:o,boxWidth:l,boxPadding:h}=i,c=Bb(i.bodyFont);let u=c.lineHeight,d=0;const p=bS(i.rtl,this.x,this.width),f=function(i){e.fillText(i,p.x(t.x+d),t.y+u/2),t.y+=u+n},m=p.textAlign(s);let g,y,v,x,_,b,S;for(e.textAlign=s,e.textBaseline="middle",e.font=c.string,t.x=BT(this,m,i),e.fillStyle=i.bodyColor,Qx(this.beforeBody,f),d=a&&"right"!==m?"center"===s?l/2+h:l+2+h:0,x=0,b=r.length;x<b;++x){for(g=r[x],y=this.labelTextColors[x],e.fillStyle=y,Qx(g.before,f),v=g.lines,a&&v.length&&(this._drawColorBox(e,t,x,p,i),u=Math.max(c.lineHeight,o)),_=0,S=v.length;_<S;++_)f(v[_]),u=c.lineHeight;Qx(g.after,f)}d=0,u=c.lineHeight,Qx(this.afterBody,f),t.y-=n}drawFooter(t,e,i){const r=this.footer,n=r.length;let s,a;if(n){const o=bS(i.rtl,this.x,this.width);for(t.x=BT(this,i.footerAlign,i),t.y+=i.footerMarginTop,e.textAlign=o.textAlign(i.footerAlign),e.textBaseline="middle",s=Bb(i.footerFont),e.fillStyle=i.footerColor,e.font=s.string,a=0;a<n;++a)e.fillText(r[a],o.x(t.x),t.y+s.lineHeight/2),t.y+=s.lineHeight+i.footerSpacing}}drawBackground(t,e,i,r){const{xAlign:n,yAlign:s}=this,{x:a,y:o}=t,{width:l,height:h}=i,{topLeft:c,topRight:u,bottomLeft:d,bottomRight:p}=Lb(r.cornerRadius);e.fillStyle=r.backgroundColor,e.strokeStyle=r.borderColor,e.lineWidth=r.borderWidth,e.beginPath(),e.moveTo(a+c,o),"top"===s&&this.drawCaret(t,e,i,r),e.lineTo(a+l-u,o),e.quadraticCurveTo(a+l,o,a+l,o+u),"center"===s&&"right"===n&&this.drawCaret(t,e,i,r),e.lineTo(a+l,o+h-p),e.quadraticCurveTo(a+l,o+h,a+l-p,o+h),"bottom"===s&&this.drawCaret(t,e,i,r),e.lineTo(a+d,o+h),e.quadraticCurveTo(a,o+h,a,o+h-d),"center"===s&&"left"===n&&this.drawCaret(t,e,i,r),e.lineTo(a,o+c),e.quadraticCurveTo(a,o,a+c,o),e.closePath(),e.fill(),r.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,i=this.$animations,r=i&&i.x,n=i&&i.y;if(r||n){const i=CT[t.position].call(this,this._active,this._eventPosition);if(!i)return;const s=this._size=RT(this,t),a=Object.assign({},i,this._size),o=LT(e,t,a),l=FT(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){const e=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(e);const r={width:this.width,height:this.height},n={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const s=Fb(e.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&a&&(t.save(),t.globalAlpha=i,this.drawBackground(n,t,r,e),SS(t,e.textDirection),n.y+=s.top,this.drawTitle(n,t,e),this.drawBody(n,t,e),this.drawFooter(n,t,e),ES(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const i=this._active,r=t.map((({datasetIndex:t,index:e})=>{const i=this.chart.getDatasetMeta(t);if(!i)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:i.data[e],index:e}})),n=!t_(i,r),s=this._positionChanged(r,e);(n||s)&&(this._active=r,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,i=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const r=this.options,n=this._active||[],s=this._getActiveElements(t,n,e,i),a=this._positionChanged(s,t),o=e||!t_(s,n)||a;return o&&(this._active=s,(r.enabled||r.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),o}_getActiveElements(t,e,i,r){const n=this.options;if("mouseout"===t.type)return[];if(!r)return e.filter((t=>this.chart.data.datasets[t.datasetIndex]&&void 0!==this.chart.getDatasetMeta(t.datasetIndex).controller.getParsed(t.index)));const s=this.chart.getElementsAtEventForMode(t,n.mode,n,i);return n.reverse&&s.reverse(),s}_positionChanged(t,e){const{caretX:i,caretY:r,options:n}=this,s=CT[n.position].call(this,t,e);return!1!==s&&(i!==s.x||r!==s.y)}}var HT={id:"tooltip",_element:UT,positioners:CT,afterInit(t,e,i){i&&(t.tooltip=new UT({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){const e=t.tooltip;if(e&&e._willRender()){const i={tooltip:e};if(!1===t.notifyPlugins("beforeTooltipDraw",{...i,cancelable:!0}))return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",i)}},afterEvent(t,e){if(t.tooltip){const 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)=>e.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:zT},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"]},jT=Object.freeze({__proto__:null,Colors:eT,Decimation:nT,Filler:_T,Legend:wT,SubTitle:PT,Title:AT,Tooltip:HT});function WT(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}function XT(t,e,{horizontal:i,minRotation:r}){const n=M_(r),s=(i?Math.sin(n):Math.cos(n))||.001,a=.75*e*(""+t).length;return Math.min(e/s,a)}class $T extends JE{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 Wx(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:i}=this.getUserBounds();let{min:r,max:n}=this;const s=t=>r=e?r:t,a=t=>n=i?n:t;if(t){const t=S_(r),e=S_(n);t<0&&e<0?a(0):t>0&&e>0&&s(0)}if(r===n){let e=0===n?1:Math.abs(.05*n);a(n+e),t||s(r-e)}this.min=r,this.max=n}getTickLimit(){const t=this.options.ticks;let e,{maxTicksLimit:i,stepSize:r}=t;return r?(e=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,e>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${e} ticks. Limiting to 1000.`),e=1e3)):(e=this.computeTickLimit(),i=i||11),i&&(e=Math.min(i,e)),e}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let i=this.getTickLimit();i=Math.max(2,i);const r=function(t,e){const i=[],{bounds:r,step:n,min:s,max:a,precision:o,count:l,maxTicks:h,maxDigits:c,includeBounds:u}
vendor: 9,551 bytes, line 2
2=t,d=n||1,p=h-1,{min:f,max:m}=e,g=!Wx(s),y=!Wx(a),v=!Wx(l),x=(m-f)/(c+1);let _,b,S,E,w=w_((m-f)/p/d)*d;if(w<1e-14&&!g&&!y)return[{value:f},{value:m}];E=Math.ceil(m/w)-Math.floor(f/w),E>p&&(w=w_(E*w/p/d)*d),Wx(o)||(_=Math.pow(10,o),w=Math.ceil(w*_)/_),"ticks"===r?(b=Math.floor(f/w)*w,S=Math.ceil(m/w)*w):(b=f,S=m),g&&y&&n&&function(t,e){const i=Math.round(t);return i-e<=t&&i+e>=t}((a-s)/n,w/1e3)?(E=Math.round(Math.min((a-s)/w,h)),w=(a-s)/E,b=s,S=a):v?(b=g?s:b,S=y?a:S,E=l-1,w=(S-b)/E):(E=(S-b)/w,E=E_(E,Math.round(E),w/1e3)?Math.round(E):Math.ceil(E));const T=Math.max(C_(w),C_(b));_=Math.pow(10,Wx(o)?T:o),b=Math.round(b*_)/_,S=Math.round(S*_)/_;let A=0;for(g&&(u&&b!==s?(i.push({value:s}),b<s&&A++,E_(Math.round((b+A*w)*_)/_,s,XT(s,x,t))&&A++):b<s&&A++);A<E;++A){const t=Math.round((b+A*w)*_)/_;if(y&&t>a)break;i.push({value:t})}return y&&u&&S!==a?i.length&&E_(i[i.length-1].value,a,XT(a,x,t))?i[i.length-1].value=a:i.push({value:a}):y&&S!==a||i.push({value:S}),i}({maxTicks: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&&A_(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}configure(){const t=this.ticks;let e=this.min,i=this.max;if(super.configure(),this.options.offset&&t.length){const 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 sb(t,this.chart.options.locale,this.options.ticks.format)}}class YT extends $T{static id="linear";static defaults={ticks:{callback:ob.formatters.numeric}};determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=Yx(t)?t:0,this.max=Yx(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,i=M_(this.options.ticks.minRotation),r=(t?Math.sin(i):Math.cos(i))||.001,n=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,n.lineHeight/r))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}const qT=t=>Math.floor(b_(t)),KT=(t,e)=>Math.pow(10,qT(t)+e);function ZT(t){return 1==t/Math.pow(10,qT(t))}function JT(t,e,i){const r=Math.pow(10,i),n=Math.floor(t/r);return Math.ceil(e/r)-n}class QT extends JE{static id="logarithmic";static defaults={ticks:{callback:ob.formatters.logarithmic,major:{enabled:!0}}};constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const i=$T.prototype.parse.apply(this,[t,e]);if(0!==i)return Yx(i)&&i>0?i:null;this._zero=!0}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=Yx(t)?Math.max(0,t):null,this.max=Yx(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!Yx(this._userMin)&&(this.min=t===KT(this.min,0)?KT(this.min,-1):KT(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let i=this.min,r=this.max;const n=e=>i=t?i:e,s=t=>r=e?r:t;i===r&&(i<=0?(n(1),s(10)):(n(KT(i,-1)),s(KT(r,1)))),i<=0&&n(KT(r,-1)),r<=0&&s(KT(i,1)),this.min=i,this.max=r}buildTicks(){const t=this.options,e=function(t,{min:e,max:i}){e=qx(t.min,e);const r=[],n=qT(e);let s=function(t,e){let i=qT(e-t);for(;JT(t,e,i)>10;)i++;for(;JT(t,e,i)<10;)i--;return Math.min(i,qT(t))}(e,i),a=s<0?Math.pow(10,Math.abs(s)):1;const o=Math.pow(10,s),l=n>s?Math.pow(10,n):0,h=Math.round((e-l)*a)/a,c=Math.floor((e-l)/o/10)*o*10;let u=Math.floor((h-c)/Math.pow(10,s)),d=qx(t.min,Math.round((l+c+u*Math.pow(10,s))*a)/a);for(;d<i;)r.push({value:d,major:ZT(d),significand:u}),u>=10?u=u<15?15:20:u++,u>=20&&(s++,u=2,a=s>=0?1:a),d=Math.round((l+c+u*Math.pow(10,s))*a)/a;const p=qx(t.max,d);return r.push({value:p,major:ZT(p),significand:u}),r}({min:this._userMin,max:this._userMax},this);return"ticks"===t.bounds&&A_(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":sb(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=b_(t),this._valueRange=b_(this.max)-b_(t)}getPixelForValue(t){return void 0!==t&&0!==t||(t=this.min),null===t||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(b_(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}function tA(t){const e=t.ticks;if(e.display&&t.display){const t=Fb(e.backdropPadding);return Kx(e.font&&e.font.size,pb.font.size)+t.height}return 0}function eA(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 iA(t,e,i,r,n){const s=Math.abs(Math.sin(i)),a=Math.abs(Math.cos(i));let 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){const r=t.drawingArea,{extra:n,additionalAngle:s,padding:a,size:o}=i,l=t.getPointPosition(e,r+n+a,s),h=Math.round(P_(R_(l.angle+v_))),c=function(t,e,i){return 90===i||270===i?t-=e/2:(i>270||i<90)&&(t-=e),t}(l.y,o.h,h),u=function(t){return 0===t||180===t?"center":t<180?"left":"right"}(h),d=function(t,e,i){return"right"===i?t-=e:"center"===i&&(t-=e/2),t}(l.x,o.w,u);return{visible:!0,x:l.x,y:c,textAlign:u,left:d,top:c,right:d+o.w,bottom:c+o.h}}function nA(t,e){if(!e)return!0;const{left:i,top:r,right:n,bottom:s}=t;return!(_b({x:i,y:r},e)||_b({x:i,y:s},e)||_b({x:n,y:r},e)||_b({x:n,y:s},e))}function sA(t,e,i){const{left:r,top:n,right:s,bottom:a}=i,{backdropColor:o}=e;if(!Wx(o)){const i=Lb(e.borderRadius),l=Fb(e.backdropPadding);t.fillStyle=o;const h=r-l.left,c=n-l.top,u=s-r+l.width,d=a-n+l.height;Object.values(i).some((t=>0!==t))?(t.beginPath(),Pb(t,{x:h,y:c,w:u,h:d,radius:i}),t.fill()):t.fillRect(h,c,u,d)}}function aA(t,e,i,r){const{ctx:n}=t;if(i)n.arc(t.xCenter,t.yCenter,e,0,f_);else{let i=t.getPointPosition(0,e);n.moveTo(i.x,i.y);for(let s=1;s<r;s++)i=t.getPointPosition(s,e),n.lineTo(i.x,i.y)}}class oA extends $T{static id="radialLinear";static defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:ob.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}};static defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};static descriptors={angleLines:{_fallback:"grid"}};constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=Fb(tA(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(){const{min:t,max:e}=this.getMinMax(!1);this.min=Yx(t)&&!isNaN(t)?t:0,this.max=Yx(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/tA(this.options))}generateTickLabels(t){$T.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map(((t,e)=>{const i=Jx(this.options.pointLabels.callback,[t,e],this);return i||0===i?i:""})).filter(((t,e)=>this.chart.getDataVisibility(e)))}fit(){const t=this.options;t.display&&t.pointLabels.display?function(t){const 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),r=[],n=[],s=t._pointLabels.length,a=t.options.pointLabels,o=a.centerPointLabels?p_/s:0;for(let u=0;u<s;u++){const s=a.setContext(t.getPointLabelContext(u));n[u]=s.padding;const d=t.getPointPosition(u,t.drawingArea+n[u],o),p=Bb(s.font),f=(l=t.ctx,h=p,c=Xx(c=t._pointLabels[u])?c:[c],{w:mb(l,h.string,c),h:c.length*h.lineHeight});r[u]=f;const m=R_(t.getIndexAngle(u)+o),g=Math.round(P_(m));iA(i,e,m,eA(g,d.x,f.w,0,180),eA(g,d.y,f.h,90,270))}var l,h,c;t.setCenterPoint(e.l-i.l,i.r-e.r,e.t-i.t,i.b-e.b),t._pointLabelItems=function(t,e,i){const r=[],n=t._pointLabels.length,s=t.options,{centerPointLabels:a,display:o}=s.pointLabels,l={extra:tA(s)/2,additionalAngle:a?p_/n:0};let h;for(let s=0;s<n;s++){l.padding=i[s],l.size=e[s];const n=rA(t,s,l);r.push(n),"auto"===o&&(n.visible=nA(n,h),n.visible&&(h=n))}return r}(t,r,n)}(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){return R_(t*(f_/(this._pointLabels.length||1))+M_(this.options.startAngle||0))}getDistanceFromCenterForValue(t){if(Wx(t))return NaN;const e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e}getValueForDistanceFromCenter(t){if(Wx(t))return NaN;const e=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(t){const e=this._pointLabels||[];if(t>=0&&t<e.length){const i=e[t];
vendor: 10,301 bytes, line 2
2return function(t,e,i){return Vb(t,{label:i,index:e,type:"pointLabel"})}(this.getContext(),t,i)}}getPointPosition(t,e,i=0){const r=this.getIndexAngle(t)-v_+i;return{x:Math.cos(r)*e+this.xCenter,y:Math.sin(r)*e+this.yCenter,angle:r}}getPointPositionForValue(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:e,top:i,right:r,bottom:n}=this._pointLabelItems[t];return{left:e,top:i,right:r,bottom:n}}drawBackground(){const{backgroundColor:t,grid:{circular:e}}=this.options;if(t){const i=this.ctx;i.save(),i.beginPath(),aA(this,this.getDistanceFromCenterForValue(this._endValue),e,this._pointLabels.length),i.closePath(),i.fillStyle=t,i.fill(),i.restore()}}drawGrid(){const t=this.ctx,e=this.options,{angleLines:i,grid:r,border:n}=e,s=this._pointLabels.length;let a,o,l;if(e.pointLabels.display&&function(t,e){const{ctx:i,options:{pointLabels:r}}=t;for(let n=e-1;n>=0;n--){const e=t._pointLabelItems[n];if(!e.visible)continue;const s=r.setContext(t.getPointLabelContext(n));sA(i,s,e);const a=Bb(s.font),{x:o,y:l,textAlign:h}=e;Mb(i,t._pointLabels[n],o,l+a.lineHeight/2,a,{color:s.color,textAlign:h,textBaseline:"middle"})}}(this,s),r.display&&this.ticks.forEach(((t,e)=>{if(0!==e||0===e&&this.min<0){o=this.getDistanceFromCenterForValue(t.value);const i=this.getContext(e),a=r.setContext(i),l=n.setContext(i);!function(t,e,i,r,n){const s=t.ctx,a=e.circular,{color:o,lineWidth:l}=e;!a&&!r||!o||!l||i<0||(s.save(),s.strokeStyle=o,s.lineWidth=l,s.setLineDash(n.dash),s.lineDashOffset=n.dashOffset,s.beginPath(),aA(t,i,a,r),s.closePath(),s.stroke(),s.restore())}(this,a,o,s,l)}})),i.display){for(t.save(),a=s-1;a>=0;a--){const r=i.setContext(this.getPointLabelContext(a)),{color:n,lineWidth:s}=r;s&&n&&(t.lineWidth=s,t.strokeStyle=n,t.setLineDash(r.borderDash),t.lineDashOffset=r.borderDashOffset,o=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),l=this.getPointPosition(a,o),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(l.x,l.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,i=e.ticks;if(!i.display)return;const r=this.getIndexAngle(0);let n,s;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(r),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach(((r,a)=>{if(0===a&&this.min>=0&&!e.reverse)return;const o=i.setContext(this.getContext(a)),l=Bb(o.font);if(n=this.getDistanceFromCenterForValue(this.ticks[a].value),o.showLabelBackdrop){t.font=l.string,s=t.measureText(r.label).width,t.fillStyle=o.backdropColor;const e=Fb(o.backdropPadding);t.fillRect(-s/2-e.left,-n-l.size/2-e.top,s+e.width,l.size+e.height)}Mb(t,r.label,0,-n,l,{color:o.color,strokeColor:o.textStrokeColor,strokeWidth:o.textStrokeWidth})})),t.restore()}drawTitle(){}}const lA={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}},hA=Object.keys(lA);function cA(t,e){return t-e}function uA(t,e){if(Wx(e))return null;const i=t._adapter,{parser:r,round:n,isoWeekday:s}=t._parseOpts;let a=e;return"function"==typeof r&&(a=r(a)),Yx(a)||(a="string"==typeof r?i.parse(a,r):i.parse(a)),null===a?null:(n&&(a="week"!==n||!T_(s)&&!0!==s?i.startOf(a,n):i.startOf(a,"isoWeek",s)),+a)}function dA(t,e,i,r){const n=hA.length;for(let s=hA.indexOf(t);s<n-1;++s){const t=lA[hA[s]],n=t.steps?t.steps:Number.MAX_SAFE_INTEGER;if(t.common&&Math.ceil((i-e)/(n*t.size))<=r)return hA[s]}return hA[n-1]}function pA(t,e,i){if(i){if(i.length){const{lo:r,hi:n}=B_(i,e);t[i[r]>=e?i[r]:i[n]]=!0}}else t[e]=!0}function fA(t,e,i){const r=[],n={},s=e.length;let a,o;for(a=0;a<s;++a)o=e[a],n[o]=a,r.push({value:o,major:!1});return 0!==s&&i?function(t,e,i,r){const n=t._adapter,s=+n.startOf(e[0].value,r),a=e[e.length-1].value;let o,l;for(o=s;o<=a;o=+n.add(o,1,r))l=i[o],l>=0&&(e[l].major=!0);return e}(t,r,n,i):r}class mA extends JE{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};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={}){const i=t.time||(t.time={}),r=this._adapter=new oE(t.adapters.date);r.init(e),s_(i.displayFormats,r.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:uA(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,i=t.time.unit||"day";let{min:r,max:n,minDefined:s,maxDefined:a}=this.getUserBounds();function o(t){s||isNaN(t.min)||(r=Math.min(r,t.min)),a||isNaN(t.max)||(n=Math.max(n,t.max))}s&&a||(o(this._getLabelBounds()),"ticks"===t.bounds&&"labels"===t.ticks.source||o(this.getMinMax(!1))),r=Yx(r)&&!isNaN(r)?r:+e.startOf(Date.now(),i),n=Yx(n)&&!isNaN(n)?n:+e.endOf(Date.now(),i)+1,this.min=Math.min(r,n-1),this.max=Math.max(r+1,n)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],i=t[t.length-1]),{min:e,max:i}}buildTicks(){const t=this.options,e=t.time,i=t.ticks,r="labels"===i.source?this.getLabelTimestamps():this._generate();"ticks"===t.bounds&&r.length&&(this.min=this._userMin||r[0],this.max=this._userMax||r[r.length-1]);const n=this.min,s=function(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}(r,n,this.max);return this._unit=e.unit||(i.autoSkip?dA(e.minUnit,this.min,this.max,this._getLabelCapacity(n)):function(t,e,i,r,n){for(let s=hA.length-1;s>=hA.indexOf(i);s--){const i=hA[s];if(lA[i].common&&t._adapter.diff(n,r,i)>=e-1)return i}return hA[i?hA.indexOf(i):0]}(this,s.length,e.minUnit,this.min,this.max)),this._majorUnit=i.major.enabled&&"year"!==this._unit?function(t){for(let e=hA.indexOf(t)+1,i=hA.length;e<i;++e)if(lA[hA[e]].common)return hA[e]}(this._unit):void 0,this.initOffsets(r),t.reverse&&s.reverse(),fA(this,s,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map((t=>+t.value)))}initOffsets(t=[]){let e,i,r=0,n=0;this.options.offset&&t.length&&(e=this.getDecimalForValue(t[0]),r=1===t.length?1-e:(this.getDecimalForValue(t[1])-e)/2,i=this.getDecimalForValue(t[t.length-1]),n=1===t.length?i:(i-this.getDecimalForValue(t[t.length-2]))/2);const s=t.length<3?.5:.25;r=L_(r,0,s),n=L_(n,0,s),this._offsets={start:r,end:n,factor:1/(r+1+n)}}_generate(){const t=this._adapter,e=this.min,i=this.max,r=this.options,n=r.time,s=n.unit||dA(n.minUnit,e,i,this._getLabelCapacity(e)),a=Kx(r.ticks.stepSize,1),o="week"===s&&n.isoWeekday,l=T_(o)||!0===o,h={};let c,u,d=e;if(l&&(d=+t.startOf(d,"isoWeek",o)),d=+t.startOf(d,l?"day":s),t.diff(i,e,s)>1e5*a)throw new Error(e+" and "+i+" are too far apart with stepSize of "+a+" "+s);const p="data"===r.ticks.source&&this.getDataTimestamps();for(c=d,u=0;c<i;c=+t.add(c,a,s),u++)pA(h,c,p);return c!==i&&"ticks"!==r.bounds&&1!==u||pA(h,c,p),Object.keys(h).sort(cA).map((t=>+t))}getLabelForValue(t){const e=this._adapter,i=this.options.time;return i.tooltipFormat?e.format(t,i.tooltipFormat):e.format(t,i.displayFormats.datetime)}format(t,e){const i=this.options.time.displayFormats,r=this._unit,n=e||i[r];return this._adapter.format(t,n)}_tickFormatFunction(t,e,i,r){const n=this.options,s=n.ticks.callback;if(s)return Jx(s,[t,e,i],this);const a=n.time.displayFormats,o=this._unit,l=this._majorUnit,h=o&&a[o],c=l&&a[l],u=i[e],d=l&&c&&u&&u.major;return this._adapter.format(t,r||(d?c:h))}generateTickLabels(t){let e,i,r;for(e=0,i=t.length;e<i;++e)r=t[e],r.label=this._tickFormatFunction(r.value,e,t)}getDecimalForValue(t){return null===t?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const e=this._offsets,i=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+i)*e.factor)}getValueForPixel(t){const e=this._offsets,i=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+i*(this.max-this.min)}_getLabelSize(t){const e=this.options.ticks,i=this.ctx.measureText(t).width,r=M_(this.isHorizontal()?e.maxRotation:e.minRotation),n=Math.cos(r),s=Math.sin(r),a=this._resolveTickFontOptions(0).size;return{w:i*n+a*s,h:i*s+a*n}}_getLabelCapacity(t){const e=this.options.time,i=e.displayFormats,r=i[e.unit]||i.millisecond,n=this._tickFormatFunction(t,0,fA(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;const 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(){const t=this._cache.labels||[];let e,i;if(t.length)return t;const r=this.getLabels();for(e=0,i=r.length;e<i;++e)t.push(uA(this,r[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return U_(t.sort(cA))}}function gA(t,e,i){let r,n,s,a,o=0,l=t.length-1;i?(e>=t[o].pos&&e<=t[l].pos&&({lo:o,hi:l}=N_(t,"pos",e)),({pos:r,time:s}=t[o]),({pos:n,time:a}=t[l])):(e>=t[o].time&&e<=t[l].time&&({lo:o,hi:l}=N_(t,"time",e)),({time:r,pos:s}=t[o]),({time:n,pos:a}=t[l]));const h=n-r;return h?s+(a-s)*(e-r)/h:s}var yA=Object.freeze({__proto__:null,CategoryScale:class extends JE{static id="category";static defaults={ticks:{callback:WT}};constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const t=this.getLabels();for(const{index:i,label:r}of e)t[i]===r&&t.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(Wx(t))return null;const i=this.getLabels();return((t,e)=>null===t?null:L_(Math.round(t),0,e))(e=isFinite(e)&&i[e]===t?e:function(t,e,
2i,r){const n=t.indexOf(e);return-1===n?((t,e,i,r)=>("string"==typeof e?(i=t.push(e)-1,r.unshift({index:i,label:e})):isNaN(e)&&(i=null),i))(t,e,i,r):n!==t.lastIndexOf(e)?i:n}(i,t,Kx(e,t),this._addedLabels),i.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{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(){const t=this.min,e=this.max,i=this.options.offset,r=[];let 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){return WT.call(this,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){const 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}},LinearScale:YT,LogarithmicScale:QT,RadialLinearScale:oA,TimeScale:mA,TimeSeriesScale:class extends mA{static id="timeseries";static defaults=mA.defaults;constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=gA(e,this.min),this._tableRange=gA(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:i}=this,r=[],n=[];let s,a,o,l,h;for(s=0,a=t.length;s<a;++s)l=t[s],l>=e&&l<=i&&r.push(l);if(r.length<2)return[{time:e,pos:0},{time:i,pos:1}];for(s=0,a=r.length;s<a;++s)h=r[s+1],o=r[s-1],l=r[s],Math.round((h+o)/2)!==l&&n.push({time:l,pos:s/(a-1)});return n}_generate(){const t=this.min,e=this.max;let i=super.getDataTimestamps();return i.includes(t)&&i.length||i.splice(0,0,t),i.includes(e)&&1!==i.length||i.push(e),i.sort(((t,e)=>t-e))}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const 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,t}getDecimalForValue(t){return(gA(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,i=this.getDecimalForPixel(t)/e.factor-e.end;return gA(this._table,i*this._tableRange+this._minPos,!0)}}});const vA=[nE,qw,jT,yA];Pw.register(...vA);var xA=Pw,_A=function(){if("undefined"!=typeof window){if(window.devicePixelRatio)return window.devicePixelRatio;var t=window.screen;if(t)return(t.deviceXDPI||1)/(t.logicalXDPI||1)}return 1}(),bA=function(t,e,i){var r,n=[].concat(e),s=n.length,a=t.font,o=0;for(t.font=i.string,r=0;r<s;++r)o=Math.max(t.measureText(n[r]).width,o);return t.font=a,{height:s*i.lineHeight,width:o}};function SA(t,e){var i=e.x,r=e.y;if(null===i)return{x:0,y:-1};if(null===r)return{x:1,y:0};var n=t.x-i,s=t.y-r,a=Math.sqrt(n*n+s*s);return{x:a?n/a:0,y:a?s/a:-1}}var EA=0,wA=1,TA=2,AA=4,MA=8;function PA(t,e,i){var r=EA;return t<i.left?r|=wA:t>i.right&&(r|=TA),e<i.top?r|=MA:e>i.bottom&&(r|=AA),r}function CA(t,e){var i,r,n=e.anchor,s=t;return e.clamp&&(s=function(t,e){for(var i,r,n,s=t.x0,a=t.y0,o=t.x1,l=t.y1,h=PA(s,a,e),c=PA(o,l,e);h|c&&!(h&c);)(i=h||c)&MA?(r=s+(o-s)*(e.top-a)/(l-a),n=e.top):i&AA?(r=s+(o-s)*(e.bottom-a)/(l-a),n=e.bottom):i&TA?(n=a+(l-a)*(e.right-s)/(o-s),r=e.right):i&wA&&(n=a+(l-a)*(e.left-s)/(o-s),r=e.left),i===h?h=PA(s=r,a=n,e):c=PA(o=r,l=n,e);return{x0:s,x1:o,y0:a,y1:l}}(s,e.area)),"start"===n?(i=s.x0,r=s.y0):"end"===n?(i=s.x1,r=s.y1):(i=(s.x0+s.x1)/2,r=(s.y0+s.y1)/2),function(t,e,i,r,n){switch(n){case"center":i=r=0;break;case"bottom":i=0,r=1;break;case"right":i=1,r=0;break;case"left":i=-1,r=0;break;case"top":i=0,r=-1;break;case"start":i=-i,r=-r;break;case"end":break;default:n*=Math.PI/180,i=Math.cos(n),r=Math.sin(n)}return{x:t,y:e,vx:i,vy:r}}(i,r,t.vx,t.vy,e.align)}var kA=function(t,e){var i=(t.startAngle+t.endAngle)/2,r=Math.cos(i),n=Math.sin(i),s=t.innerRadius,a=t.outerRadius;return CA({x0:t.x+r*s,y0:t.y+n*s,x1:t.x+r*a,y1:t.y+n*a,vx:r,vy:n},e)},IA=function(t,e){var i=SA(t,e.origin),r=i.x*t.options.radius,n=i.y*t.options.radius;return CA({x0:t.x-r,y0:t.y-n,x1:t.x+r,y1:t.y+n,vx:i.x,vy:i.y},e)},DA=function(t,e){var i=SA(t,e.origin),r=t.x,n=t.y,s=0,a=0;return t.horizontal?(r=Math.min(t.x,t.base),s=Math.abs(t.base-t.x)):(n=Math.min(t.y,t.base),a=Math.abs(t.base-t.y)),CA({x0:r,y0:n+a,x1:r+s,y1:n,vx:i.x,vy:i.y},e)},RA=function(t,e){var i=SA(t,e.origin);return CA({x0:t.x,y0:t.y,x1:t.x+(t.width||0),y1:t.y+(t.height||0),vx:i.x,vy:i.y},e)},OA=function(t){return Math.round(t*_A)/_A};function LA(t,e){var i=e.chart.getDatasetMeta(e.datasetIndex).vScale;if(!i)return null;if(void 0!==i.xCenter&&void 0!==i.yCenter)return{x:i.xCenter,y:i.yCenter};var r=i.getBasePixel();return t.horizontal?{x:r,y:null}:{x:null,y:r}}function FA(t,e,i){var r=t.shadowBlur,n=i.stroked,s=OA(i.x),a=OA(i.y),o=OA(i.w);n&&t.strokeText(e,s,a,o),i.filled&&(r&&n&&(t.shadowBlur=0),t.fillText(e,s,a,o),r&&n&&(t.shadowBlur=r))}
vendor: 8,685 bytes, line 2
2var BA=function(t,e,i,r){var n=this;n._config=t,n._index=r,n._model=null,n._rects=null,n._ctx=e,n._el=i};n_(BA.prototype,{_modelize:function(t,e,i,r){var n,s=this,a=s._index,o=Bb(Nb([i.font,{}],r,a)),l=Nb([i.color,pb.color],r,a);return{align:Nb([i.align,"center"],r,a),anchor:Nb([i.anchor,"center"],r,a),area:r.chart.chartArea,backgroundColor:Nb([i.backgroundColor,null],r,a),borderColor:Nb([i.borderColor,null],r,a),borderRadius:Nb([i.borderRadius,0],r,a),borderWidth:Nb([i.borderWidth,0],r,a),clamp:Nb([i.clamp,!1],r,a),clip:Nb([i.clip,!1],r,a),color:l,display:t,font:o,lines:e,offset:Nb([i.offset,4],r,a),opacity:Nb([i.opacity,1],r,a),origin:LA(s._el,r),padding:Fb(Nb([i.padding,4],r,a)),positioner:(n=s._el,n instanceof Dw?kA:n instanceof Uw?IA:n instanceof Yw?DA:RA),rotation:Nb([i.rotation,0],r,a)*(Math.PI/180),size:bA(s._ctx,e,o),textAlign:Nb([i.textAlign,"start"],r,a),textShadowBlur:Nb([i.textShadowBlur,0],r,a),textShadowColor:Nb([i.textShadowColor,l],r,a),textStrokeColor:Nb([i.textStrokeColor,l],r,a),textStrokeWidth:Nb([i.textStrokeWidth,0],r,a)}},update:function(t){var e,i,r,n=this,s=null,a=null,o=n._index,l=n._config,h=Nb([l.display,!0],t,o);h&&(e=t.dataset.data[o],(r=Wx(i=Kx(Jx(l.formatter,[e,t]),e))?[]:function(t){var e,i=[];for(t=[].concat(t);t.length;)"string"==typeof(e=t.pop())?i.unshift.apply(i,e.split("\n")):Array.isArray(e)?t.push.apply(t,e):Wx(t)||i.unshift(""+e);return i}(i)).length&&(a=function(t){var e=t.borderWidth||0,i=t.padding,r=t.size.height,n=t.size.width,s=-n/2,a=-r/2;return{frame:{x:s-i.left-e,y:a-i.top-e,w:n+i.width+2*e,h:r+i.height+2*e},text:{x:s,y:a,w:n,h:r}}}(s=n._modelize(h,r,l,t)))),n._model=s,n._rects=a},geometry:function(){return this._rects?this._rects.frame:{}},rotation:function(){return this._model?this._model.rotation:0},visible:function(){return this._model&&this._model.opacity},model:function(){return this._model},draw:function(t,e){var i,r,n,s,a=t.ctx,o=this._model,l=this._rects;this.visible()&&(a.save(),o.clip&&(i=o.area,a.beginPath(),a.rect(i.left,i.top,i.right-i.left,i.bottom-i.top),a.clip()),a.globalAlpha=(r=0,n=o.opacity,s=1,Math.max(r,Math.min(n,s))),a.translate(OA(e.x),OA(e.y)),a.rotate(o.rotation),function(t,e,i){var r=i.backgroundColor,n=i.borderColor,s=i.borderWidth;(r||n&&s)&&(t.beginPath(),function(t,e,i,r,n,s){var a=Math.PI/2;if(s){var o=Math.min(s,n/2,r/2),l=e+o,h=i+o,c=e+r-o,u=i+n-o;t.moveTo(e,h),l<c&&h<u?(t.arc(l,h,o,-Math.PI,-a),t.arc(c,h,o,-a,0),t.arc(c,u,o,0,a),t.arc(l,u,o,a,Math.PI)):l<c?(t.moveTo(l,i),t.arc(c,h,o,-a,a),t.arc(l,h,o,a,Math.PI+a)):h<u?(t.arc(l,h,o,-Math.PI,0),t.arc(l,u,o,0,Math.PI)):t.arc(l,h,o,-Math.PI,Math.PI),t.closePath(),t.moveTo(e,i)}else t.rect(e,i,r,n)}(t,OA(e.x)+s/2,OA(e.y)+s/2,OA(e.w)-s,OA(e.h)-s,i.borderRadius),t.closePath(),r&&(t.fillStyle=r,t.fill()),n&&s&&(t.strokeStyle=n,t.lineWidth=s,t.lineJoin="miter",t.stroke()))}(a,l.frame,o),function(t,e,i,r){var n,s=r.textAlign,a=r.color,o=!!a,l=r.font,h=e.length,c=r.textStrokeColor,u=r.textStrokeWidth,d=c&&u;if(h&&(o||d))for(i=function(t,e,i){var r=i.lineHeight,n=t.w,s=t.x;return"center"===e?s+=n/2:"end"!==e&&"right"!==e||(s+=n),{h:r,w:n,x:s,y:t.y+r/2}}(i,s,l),t.font=l.string,t.textAlign=s,t.textBaseline="middle",t.shadowBlur=r.textShadowBlur,t.shadowColor=r.textShadowColor,o&&(t.fillStyle=a),d&&(t.lineJoin="round",t.lineWidth=u,t.strokeStyle=c),n=0,h=e.length;n<h;++n)FA(t,e[n],{stroked:d,filled:o,w:i.w,x:i.x,y:i.y+i.h*n})}(a,o.lines,l.text,o),a.restore())}});var NA=Number.MIN_SAFE_INTEGER||-9007199254740991,VA=Number.MAX_SAFE_INTEGER||9007199254740991;function zA(t,e,i){var r=Math.cos(i),n=Math.sin(i),s=e.x,a=e.y;return{x:s+r*(t.x-s)-n*(t.y-a),y:a+n*(t.x-s)+r*(t.y-a)}}function GA(t,e){var i,r,n,s,a,o=VA,l=NA,h=e.origin;for(i=0;i<t.length;++i)n=(r=t[i]).x-h.x,s=r.y-h.y,a=e.vx*n+e.vy*s,o=Math.min(o,a),l=Math.max(l,a);return{min:o,max:l}}function UA(t,e){var i=e.x-t.x,r=e.y-t.y,n=Math.sqrt(i*i+r*r);return{vx:(e.x-t.x)/n,vy:(e.y-t.y)/n,origin:t,ln:n}}var HA=function(){this._rotation=0,this._rect={x:0,y:0,w:0,h:0}};function jA(t,e,i){var r=e.positioner(t,e),n=r.vx,s=r.vy;if(!n&&!s)return{x:r.x,y:r.y};var a=i.w,o=i.h,l=e.rotation,h=Math.abs(a/2*Math.cos(l))+Math.abs(o/2*Math.sin(l)),c=Math.abs(a/2*Math.sin(l))+Math.abs(o/2*Math.cos(l)),u=1/Math.max(Math.abs(n),Math.abs(s));return h*=n*u,c*=s*u,h+=e.offset*n,c+=e.offset*s,{x:r.x+h,y:r.y+c}}n_(HA.prototype,{center:function(){var t=this._rect;return{x:t.x+t.w/2,y:t.y+t.h/2}},update:function(t,e,i){this._rotation=i,this._rect={x:e.x+t.x,y:e.y+t.y,w:e.w,h:e.h}},contains:function(t){var e=this,i=e._rect;return!((t=zA(t,e.center(),-e._rotation)).x<i.x-1||t.y<i.y-1||t.x>i.x+i.w+2||t.y>i.y+i.h+2)},intersects:function(t){var e,i,r,n=this._points(),s=t._points(),a=[UA(n[0],n[1]),UA(n[0],n[3])];for(this._rotation!==t._rotation&&a.push(UA(s[0],s[1]),UA(s[0],s[3])),e=0;e<a.length;++e)if(i=GA(n,a[e]),r=GA(s,a[e]),i.max<r.min||r.max<i.min)return!1;return!0},_points:function(){var t=this,e=t._rect,i=t._rotation,r=t.center();return[zA({x:e.x,y:e.y},r,i),zA({x:e.x+e.w,y:e.y},r,i),zA({x:e.x+e.w,y:e.y+e.h},r,i),zA({x:e.x,y:e.y+e.h},r,i)]}});var WA={prepare:function(t){var e,i,r,n,s,a=[];for(e=0,r=t.length;e<r;++e)for(i=0,n=t[e].length;i<n;++i)s=t[e][i],a.push(s),s.$layout={_box:new HA,_hidable:!1,_visible:!0,_set:e,_idx:s._index};return a.sort((function(t,e){var i=t.$layout,r=e.$layout;return i._idx===r._idx?r._set-i._set:r._idx-i._idx})),this.update(a),a},update:function(t){var e,i,r,n,s,a=!1;for(e=0,i=t.length;e<i;++e)n=(r=t[e]).model(),(s=r.$layout)._hidable=n&&"auto"===n.display,s._visible=r.visible(),a|=s._hidable;a&&function(t){var e,i,r,n,s,a,o;for(e=0,i=t.length;e<i;++e)(n=(r=t[e]).$layout)._visible&&(o=new Proxy(r._el,{get:(t,e)=>t.getProps([e],!0)[e]}),s=r.geometry(),a=jA(o,r.model(),s),n._box.update(a,s,r.rotation()));!function(t,e){var i,r,n,s;for(i=t.length-1;i>=0;--i)for(n=t[i].$layout,r=i-1;r>=0&&n._visible;--r)(s=t[r].$layout)._visible&&n._box.intersects(s._box)&&e(n,s)}(t,(function(t,e){var i=t._hidable,r=e._hidable;i&&r||r?e._visible=!1:i&&(t._visible=!1)}))}(t)},lookup:function(t,e){var i,r;for(i=t.length-1;i>=0;--i)if((r=t[i].$layout)&&r._visible&&r._box.contains(e))return t[i];return null},draw:function(t,e){var i,r,n,s,a,o;for(i=0,r=e.length;i<r;++i)(s=(n=e[i]).$layout)._visible&&(a=n.geometry(),o=jA(n._el,n.model(),a),s._box.update(o,a,n.rotation()),n.draw(t,o))}},XA="$datalabels",$A="$default";function YA(t,e,i,r){if(e){var n,s=i.$context,a=i.$groups;e[a._set]&&(n=e[a._set][a._key])&&!0===Jx(n,[s,r])&&(t[XA]._dirty=!0,i.update(s))}}var qA={id:"datalabels",defaults:{align:"center",anchor:"center",backgroundColor:null,borderColor:null,borderRadius:0,borderWidth:0,clamp:!1,clip:!1,color:void 0,display:!0,font:{family:void 0,lineHeight:1.2,size:void 0,style:void 0,weight:null},formatter:function(t){if(Wx(t))return null;var e,i,r,n=t;if($x(t))if(Wx(t.label))if(Wx(t.r))for(n="",r=0,i=(e=Object.keys(t)).length;r<i;++r)n+=(0!==r?", ":"")+e[r]+": "+t[e[r]];else n=t.r;else n=t.label;return""+n},labels:void 0,listeners:{},offset:4,opacity:1,padding:{top:4,right:4,bottom:4,left:4},rotation:0,textAlign:"start",textStrokeColor:void 0,textStrokeWidth:0,textShadowBlur:0,textShadowColor:void 0},beforeInit:function(t){t[XA]={_actives:[]}},beforeUpdate:function(t){var e=t[XA];e._listened=!1,e._listeners={},e._datasets=[],e._labels=[]},afterDatasetUpdate:function(t,e,i){var r,n,s,a,o,l,h,c,u=e.index,d=t[XA],p=d._datasets[u]=[],f=t.isDatasetVisible(u),m=t.data.datasets[u],g=function(t,e){var i,r,n,s=t.datalabels,a=[];return!1===s?null:(!0===s&&(s={}),e=n_({},[e,s]),r=e.labels||{},n=Object.keys(r),delete e.labels,n.length?n.forEach((function(t){r[t]&&a.push(n_({},[e,r[t],{_key:t}]))})):a.push(e),i=a.reduce((function(t,e){return Qx(e.listeners||{},(function(i,r){t[r]=t[r]||{},t[r][e._key||$A]=i})),delete e.listeners,t}),{}),{labels:a,listeners:i})}(m,i),y=e.meta.data||[],v=t.ctx;for(v.save(),r=0,s=y.length;r<s;++r)if((h=y[r])[XA]=[],f&&h&&t.getDataVisibility(r)&&!h.skip)for(n=0,a=g.labels.length;n<a;++n)l=(o=g.labels[n])._key,(c=new BA(o,v,h,r)).$groups={_set:u,_key:l||$A},c.$context={active:!1,chart:t,dataIndex:r,dataset:m,datasetIndex:u},c.update(c.$context),h[XA].push(c),p.push(c);v.restore(),n_(d._listeners,g.listeners,{merger:function(t,i,r){i[t]=i[t]||{},i[t][e.index]=r[t],d._listened=!0}})},afterUpdate:function(t){t[XA]._labels=WA.prepare(t[XA]._datasets)},afterDatasetsDraw:function(t){WA.draw(t,t[XA]._labels)},beforeEvent:function(t,e){if(t[XA]._listened){var i=e.event;switch(i.type){case"mousemove":case"mouseout":!function(t,e){var i,r,n=t[XA],s=n._listeners;if(s.enter||s.leave){if("mousemove"===e.type)r=WA.lookup(n._labels,e);else if("mouseout"!==e.type)return;
2i=n._hovered,n._hovered=r,function(t,e,i,r,n){var s,a;(i||r)&&(i?r?i!==r&&(a=s=!0):a=!0:s=!0,a&&YA(t,e.leave,i,n),s&&YA(t,e.enter,r,n))}(t,s,i,r,e)}}(t,i);break;case"click":!function(t,e){var i=t[XA],r=i._listeners.click,n=r&&WA.lookup(i._labels,e);n&&YA(t,r,n,e)}(t,i)}}},afterEvent:function(t){var e,i,r,n,s,a,o,l=t[XA],h=function(t,e){var i,r,n,s,a=t.slice(),o=[];for(i=0,n=e.length;i<n;++i)s=e[i],-1===(r=a.indexOf(s))?o.push([s,1]):a.splice(r,1);for(i=0,n=a.length;i<n;++i)o.push([a[i],-1]);return o}(l._actives,l._actives=t.getActiveElements());for(e=0,i=h.length;e<i;++e)if((s=h[e])[1])for(r=0,n=(o=s[0].element[XA]||[]).length;r<n;++r)(a=o[r]).$context.active=1===s[1],a.update(a.$context);(l._dirty||h.length)&&(WA.update(l._labels),t.render()),delete l._dirty}};const KA={modes:{point(t,e){return JA(t,e,{intersect:!0})},nearest(t,e,i){return function(t,e,i){let r=Number.POSITIVE_INFINITY;return JA(t,e,i).reduce(((t,n)=>{const s=n.getCenterPoint(),a=function(t,e,i){return"x"===i?{x:t.x,y:e.y}:"y"===i?{x:e.x,y:t.y}:e}(e,s,i.axis),o=I_(e,a);return o<r?(t=[n],r=o):o===r&&t.push(n),t}),[]).sort(((t,e)=>t._index-e._index)).slice(0,1)}(t,e,i)},x(t,e,i){return JA(t,e,{intersect:i.intersect,axis:"x"})},y(t,e,i){return JA(t,e,{intersect:i.intersect,axis:"y"})}}};function ZA(t,e,i){return(KA.modes[i.mode]||KA.modes.nearest)(t,e,i)}function JA(t,e,i){return t.visibleElements.filter((t=>i.intersect?t.inRange(e.x,e.y):function(t,e,i){return"x"!==i&&"y"!==i?t.inRange(e.x,e.y,"x",!0)||t.inRange(e.x,e.y,"y",!0):t.inRange(e.x,e.y,i,!0)}(t,e,i.axis)))}const QA=(t,e)=>e>t||t.length>e.length&&t.slice(0,e.length)===e,tM=.001,eM=(t,e,i)=>Math.min(i,Math.max(e,t));function iM(t,e,i){for(const r of Object.keys(t))t[r]=eM(t[r],e,i);return t}function rM(t,{x:e,y:i,x2:r,y2:n},s,a){const o=a/2,l=t.x>=e-o-tM&&t.x<=r+o+tM,h=t.y>=i-o-tM&&t.y<=n+o+tM;return"x"===s?l:("y"===s||l)&&h}function nM(t,e){const{centerX:i,centerY:r}=t.getProps(["centerX","centerY"],e);return{x:i,y:r}}const sM=t=>"string"==typeof t&&t.endsWith("%"),aM=t=>parseFloat(t)/100,oM=t=>eM(aM(t),0,1),lM=(t,e)=>({x:t,y:e,x2:t,y2:e,width:0,height:0}),hM={box:t=>lM(t.centerX,t.centerY),ellipse:t=>({centerX:t.centerX,centerY:t.centerX,radius:0,width:0,height:0}),label:t=>lM(t.centerX,t.centerY),line:t=>lM(t.x,t.y),point:t=>({centerX:t.centerX,centerY:t.centerY,radius:0,width:0,height:0}),polygon:t=>lM(t.centerX,t.centerY)};function cM(t,e){return"start"===e?0:"end"===e?t:sM(e)?oM(e)*t:t/2}function uM(t,e,i=!0){return"number"==typeof e?e:sM(e)?(i?oM(e):aM(e))*t:t}function dM(t,e="center"){return $x(t)?{x:Kx(t.x,e),y:Kx(t.y,e)}:{x:t=Kx(t,e),y:t}}function pM(t){return t&&(c_(t.xValue)||c_(t.yValue))}function fM(t,e,i){const r=i.init;if(r)return!0===r?gM(e,i):function(t,e,i){const r=Jx(i.init,[{chart:t,properties:e,options:i}]);return!0===r?gM(e,i):$x(r)?r:void 0}(t,e,i)}function mM(t,e,i){let r=!1;return e.forEach((e=>{u_(t[e])?(r=!0,i[e]=t[e]):c_(i[e])&&delete i[e]})),r}function gM(t,e){const i=e.type||"line";return hM[i](t)}const yM=new Map,vM=t=>t.reduce((function(t,e){return t+e.string}),"");function xM(t){if(t&&"object"==typeof t){const e=t.toString();return"[object HTMLImageElement]"===e||"[object HTMLCanvasElement]"===e}}function _M(t,{x:e,y:i},r){r&&(t.translate(e,i),t.rotate(M_(r)),t.translate(-e,-i))}function bM(t,e){if(e&&e.borderWidth)return t.lineCap=e.borderCapStyle,t.setLineDash(e.borderDash),t.lineDashOffset=e.borderDashOffset,t.lineJoin=e.borderJoinStyle,t.lineWidth=e.borderWidth,t.strokeStyle=e.borderColor,!0}function SM(t,e){t.shadowColor=e.backgroundShadowColor,t.shadowBlur=e.shadowBlur,t.shadowOffsetX=e.shadowOffsetX,t.shadowOffsetY=e.shadowOffsetY}function EM(t,e){const i=e.content;if(xM(i))return{width:uM(i.width,e.width),height:uM(i.height,e.height)};const r=e.font,n=Xx(r)?r.map((t=>Bb(t))):[Bb(r)],s=e.textStrokeWidth,a=Xx(i)?i:[i],o=a.join()+vM(n)+s+(t._measureText?"-spriting":"");return yM.has(o)||yM.set(o,function(t,e,i,r){t.save();const n=e.length;let s=0,a=r;for(let o=0;o<n;o++){const n=i[Math.min(o,i.length-1)];t.font=n.string;const l=e[o];s=Math.max(s,t.measureText(l).width+r),a+=n.lineHeight}
vendor: 2,592 bytes, line 2
2return t.restore(),{width:s,height:a}}(t,a,n,s)),yM.get(o)}function wM(t,e,i){const{x:r,y:n,width:s,height:a}=e;t.save(),SM(t,i);const o=bM(t,i);t.fillStyle=i.backgroundColor,t.beginPath(),Pb(t,{x:r,y:n,w:s,h:a,radius:iM(Lb(i.borderRadius),0,Math.min(s,a)/2)}),t.closePath(),t.fill(),o&&(t.shadowColor=i.borderShadowColor,t.stroke()),t.restore()}const TM={xScaleID:{min:"xMin",max:"xMax",start:"left",end:"right",startProp:"x",endProp:"x2"},yScaleID:{min:"yMin",max:"yMax",start:"bottom",end:"top",startProp:"y",endProp:"y2"}};function AM(t,e,i){return Yx(e="number"==typeof e?e:t.parse(e))?t.getPixelForValue(e):i}function MM(t,e,i){const r=e[i];if(r||"scaleID"===i)return r;const n=i.charAt(0),s=Object.values(t).filter((t=>t.axis&&t.axis===n));return s.length?s[0].id:n}function PM(t,e){if(t){const i=t.options.reverse;return{start:AM(t,e.min,i?e.end:e.start),end:AM(t,e.max,i?e.start:e.end)}}}function CM(t,e){const{chartArea:i,scales:r}=t,n=r[MM(r,e,"xScaleID")],s=r[MM(r,e,"yScaleID")];let a=i.width/2,o=i.height/2;return n&&(a=AM(n,e.xValue,n.left+n.width/2)),s&&(o=AM(s,e.yValue,s.top+s.height/2)),{x:a,y:o}}function kM(t,e){const i=t.scales,r=i[MM(i,e,"xScaleID")],n=i[MM(i,e,"yScaleID")];if(!r&&!n)return{};let{left:s,right:a}=r||t.chartArea,{top:o,bottom:l}=n||t.chartArea;const h=RM(r,{min:e.xMin,max:e.xMax,start:s,end:a});s=h.start,a=h.end;const c=RM(n,{min:e.yMin,max:e.yMax,start:l,end:o});return o=c.start,l=c.end,{x:s,y:o,x2:a,y2:l,width:a-s,height:l-o,centerX:s+(a-s)/2,centerY:o+(l-o)/2}}function IM(t,e){if(!pM(e)){const i=kM(t,e);let r=e.radius;r&&!isNaN(r)||(r=Math.min(i.width,i.height)/2,e.radius=r);const n=2*r,s=i.centerX+e.xAdjust,a=i.centerY+e.yAdjust;return{x:s-r,y:a-r,x2:s+r,y2:a+r,centerX:s,centerY:a,width:n,height:n,radius:r}}return function(t,e){const i=CM(t,e),r=2*e.radius;return{x:i.x-e.radius+e.xAdjust,y:i.y-e.radius+e.yAdjust,x2:i.x+e.radius+e.xAdjust,y2:i.y+e.radius+e.yAdjust,centerX:i.x+e.xAdjust,centerY:i.y+e.yAdjust,radius:e.radius,width:r,height:r}}(t,e)}function DM(t,e){const i=kM(t,e);return i.initProperties=fM(t,i,e),i.elements=[{type:"label",optionScope:"label",properties:LM(t,i,e),initProperties:i.initProperties}],i}function RM(t,e){const i=PM(t,e)||e;return{start:Math.min(i.start,i.end),end:Math.max(i.start,i.end)}}function OM(t,e){const{start:i,end:r,borderWidth:n}=t,{position:s,padding:{start:a,end:o},adjust:l}=e;return i+n/2+l+cM(r-n-i-a-o-e.size,s)}function LM(t,e,i){const r=i.label;r.backgroundColor="transparent",r.callout.display=!1;const n=dM(r.position),s=Fb(r.padding),a=EM(t.ctx,r),o=function({properties:t,options:e}
2,i,r,n){const{x:s,x2:a,width:o}=t;return OM({start:s,end:a,size:o,borderWidth:e.borderWidth},{position:r.x,padding:{start:n.left,end:n.right},adjust:e.label.xAdjust,size:i.width})}({properties:e,options:i},a,n,s),l=function({properties:t,options:e},i,r,n){const{y:s,y2:a,height:o}=t;return OM({start:s,end:a,size:o,borderWidth:e.borderWidth},{position:r.y,padding:{start:n.top,end:n.bottom},adjust:e.label.yAdjust,size:i.height})}({properties:e,options:i},a,n,s),h=a.width+s.width,c=a.height+s.height;return{x:o,y:l,x2:o+h,y2:l+c,width:h,height:c,centerX:o+h/2,centerY:l+c/2,rotation:r.rotation}}function FM(t,e,i){const r=Math.cos(i),n=Math.sin(i),s=e.x,a=e.y;return{x:s+r*(t.x-s)-n*(t.y-a),y:a+n*(t.x-s)+r*(t.y-a)}}const BM=["enter","leave"],NM=BM.concat("click");function VM({state:t,event:e},i,r,n){let s;for(const a of r)n.indexOf(a)<0&&(s=zM(a.options[i]||t.listeners[i],a,e)||s);return s}function zM(t,e,i){return!0===Jx(t,[e.$context,i])}const GM=["afterDraw","beforeDraw"];function UM(t,e,i){if(t.hooked)return Jx(e.options[i]||t.hooks[i],[e.$context])}function HM(t,e,i,r){if(Yx(e[i])&&!function(t,e,i){return c_(t[e])||c_(t[i])}(t.options,i,r)){const r=t[i]!==e[i];return t[i]=e[i],r}}function jM(t,e){for(const i of["scaleID","xScaleID","yScaleID"]){const r=MM(e,t,i);r&&!e[r]&&WM(t,i)&&console.warn(`No scale found with id '${r}' for annotation '${t.id}'`)}}function WM(t,e){if("scaleID"===e)return!0;const i=e.charAt(0);for(const e of["Min","Max","Value"])if(c_(t[i+e]))return!0;return!1}function XM(t,e,i,r){for(const n of i){const i=t[n];if(c_(i)){const t=e.parse(i);r.min=Math.min(r.min,t),r.max=Math.max(r.max,t)}}}class $M extends HE{inRange(t,e,i,r){const{x:n,y:s}=FM({x:t,y:e},this.getCenterPoint(r),M_(-this.options.rotation));return rM({x:n,y:s},this.getProps(["x","y","x2","y2"],r),i,this.options.borderWidth)}getCenterPoint(t){return nM(this,t)}draw(t){t.save(),_M(t,this.getCenterPoint(),this.options.rotation),wM(t,this,this.options),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,e){return DM(t,e)}}$M.id="boxAnnotation",$M.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderRadius:0,borderShadowColor:"transparent",borderWidth:1,display:!0,init:void 0,label:{backgroundColor:"transparent",borderWidth:0,callout:{display:!1},color:"black",content:null,display:!1,drawTime:void 0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:"bold"},height:void 0,opacity:void 0,padding:6,position:"center",rotation:void 0,textAlign:"start",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,yAdjust:0,z:void 0},rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0},$M.defaultRoutes={borderColor:"color",backgroundColor:"color"},$M.descriptors={label:{_fallback:!0}};const YM=["left","bottom","top","right"];class qM extends HE{inRange(t,e,i,r){const{x:n,y:s}=FM({x:t,y:e},this.getCenterPoint(r),M_(-this.rotation));return rM({x:n,y:s},this.getProps(["x","y","x2","y2"],r),i,this.options.borderWidth)}getCenterPoint(t){return nM(this,t)}draw(t){const e=this.options,i=!c_(this._visible)||this._visible;e.display&&e.content&&i&&(t.save(),_M(t,this.getCenterPoint(),this.rotation),function(t,e){const{pointX:i,pointY:r,options:n}=e,s=n.callout,a=s&&s.display&&function(t,e){const i=e.position;return YM.includes(i)?i:function(t,e){const{x:i,y:r,x2:n,y2:s,width:a,height:o,pointX:l,pointY:h,centerX:c,centerY:u,rotation:d}=t,p={x:c,y:u},f=e.start,m=uM(a,f),g=[i,i+m,i+m,n],y=[r+uM(o,f),s,r,s],v=[];for(let t=0;t<4;t++){const e=FM({x:g[t],y:y[t]},p,M_(d));v.push({position:YM[t],distance:I_(e,{x:l,y:h})})}return v.sort(((t,e)=>t.distance-e.distance))[0].position}(t,e)}(e,s);if(!a||function(t,e,i){const{pointX:r,pointY:n}=t,s=e.margin;let a=r,o=n;return"left"===i?a+=s:"right"===i?a-=s:"top"===i?o+=s:"bottom"===i&&(o-=s),t.inRange(a,o)}(e,s,a))return;t.save(),t.beginPath();if(!bM(t,s))return t.restore();const{separatorStart:o,separatorEnd:l}=function(t,e){const{x:i,y:r,x2:n,y2:s}=t,a=function(t,e){const{width:i,height:r,options:n}=t,s=n.callout.margin+n.borderWidth/2;return"right"===e?i+s:"bottom"===e?r+s:-s}(t,e);let o,l;return"left"===e||"right"===e?(o={x:i+a,y:r},l={x:o.x,y:s}):(o={x:i,y:r+a},l={x:n,y:o.y}),{separatorStart:o,separatorEnd:l}}(e,a),{sideStart:h,sideEnd:c}
vendor: 18,568 bytes, line 2
2=function(t,e,i){const{y:r,width:n,height:s,options:a}=t,o=a.callout.start,l=function(t,e){const i=e.side;return"left"===t||"top"===t?-i:i}(e,a.callout);let h,c;return"left"===e||"right"===e?(h={x:i.x,y:r+uM(s,o)},c={x:h.x+l,y:h.y}):(h={x:i.x+uM(n,o),y:i.y},c={x:h.x,y:h.y+l}),{sideStart:h,sideEnd:c}}(e,a,o);(s.margin>0||0===n.borderWidth)&&(t.moveTo(o.x,o.y),t.lineTo(l.x,l.y)),t.moveTo(h.x,h.y),t.lineTo(c.x,c.y);const u=FM({x:i,y:r},e.getCenterPoint(),M_(-e.rotation));t.lineTo(u.x,u.y),t.stroke(),t.restore()}(t,this),wM(t,this,e),function(t,e,i){const r=i.content;if(xM(r))return t.save(),t.globalAlpha=function(t,e){const i=T_(t)?t:e;return T_(i)?eM(i,0,1):1}(i.opacity,r.style.opacity),t.drawImage(r,e.x,e.y,e.width,e.height),void t.restore();const n=Xx(r)?r:[r],s=i.font,a=Xx(s)?s.map((t=>Bb(t))):[Bb(s)],o=i.color,l=Xx(o)?o:[o],h=function(t,e){const{x:i,width:r}=t,n=e.textAlign;return"center"===n?i+r/2:"end"===n||"right"===n?i+r:i}(e,i),c=e.y+i.textStrokeWidth/2;t.save(),t.textBaseline="middle",t.textAlign=i.textAlign,function(t,e){if(e.textStrokeWidth>0)return t.lineJoin="round",t.miterLimit=2,t.lineWidth=e.textStrokeWidth,t.strokeStyle=e.textStrokeColor,!0}(t,i)&&function(t,{x:e,y:i},r,n){t.beginPath();let s=0;r.forEach((function(r,a){const o=n[Math.min(a,n.length-1)],l=o.lineHeight;t.font=o.string,t.strokeText(r,e,i+l/2+s),s+=l})),t.stroke()}(t,{x:h,y:c},n,a),function(t,{x:e,y:i},r,{fonts:n,colors:s}){let a=0;r.forEach((function(r,o){const l=s[Math.min(o,s.length-1)],h=n[Math.min(o,n.length-1)],c=h.lineHeight;t.beginPath(),t.font=h.string,t.fillStyle=l,t.fillText(r,e,i+c/2+a),a+=c,t.fill()}))}(t,{x:h,y:c},n,{fonts:a,colors:l}),t.restore()}(t,function({x:t,y:e,width:i,height:r,options:n}){const s=n.borderWidth/2,a=Fb(n.padding);return{x:t+a.left+s,y:e+a.top+s,width:i-a.left-a.right-n.borderWidth,height:r-a.top-a.bottom-n.borderWidth}}(this),e),t.restore())}resolveElementProperties(t,e){let i;if(pM(e))i=CM(t,e);else{const{centerX:r,centerY:n}=kM(t,e);i={x:r,y:n}}const r=Fb(e.padding),n=function(t,e,i,r){const n=e.width+r.width+i.borderWidth,s=e.height+r.height+i.borderWidth,a=dM(i.position,"center"),o=KM(t.x,n,i.xAdjust,a.x),l=KM(t.y,s,i.yAdjust,a.y);return{x:o,y:l,x2:o+n,y2:l+s,width:n,height:s,centerX:o+n/2,centerY:l+s/2}}(i,EM(t.ctx,e),e,r);return{initProperties:fM(t,n,e),pointX:i.x,pointY:i.y,...n,rotation:e.rotation}}}function KM(t,e,i=0,r){return t-cM(e,r)+i}qM.id="labelAnnotation",qM.defaults={adjustScaleRange:!0,backgroundColor:"transparent",backgroundShadowColor:"transparent",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderRadius:0,borderShadowColor:"transparent",borderWidth:0,callout:{borderCapStyle:"butt",borderColor:void 0,borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:1,display:!1,margin:5,position:"auto",side:5,start:"50%"},color:"black",content:null,display:!0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:void 0},height:void 0,init:void 0,opacity:void 0,padding:6,position:"center",rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,textAlign:"center",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0},qM.defaultRoutes={borderColor:"color"};const ZM=(t,e,i)=>({x:t.x+i*(e.x-t.x),y:t.y+i*(e.y-t.y)}),JM=(t,e,i)=>ZM(e,i,Math.abs((t-e.y)/(i.y-e.y))).x,QM=(t,e,i)=>ZM(e,i,Math.abs((t-e.x)/(i.x-e.x))).y,tP=t=>t*t,eP=(t,e,i,r)=>(1-r)*(1-r)*t+2*(1-r)*r*e+r*r*i,iP=(t,e,i,r)=>({x:eP(t.x,e.x,i.x,r),y:eP(t.y,e.y,i.y,r)}),rP=(t,e,i,r)=>2*(1-r)*(e-t)+2*r*(i-e),nP=(t,e,i,r)=>-Math.atan2(rP(t.x,e.x,i.x,r),rP(t.y,e.y,i.y,r))+.5*p_;class sP extends HE{inRange(t,e,i,r){const n=this.options.borderWidth/2;if("x"!==i&&"y"!==i){const i={mouseX:t,mouseY:e},{path:s,ctx:a}=this;if(s){bM(a,this.options);const{chart:n}=this.$context,o=t*n.currentDevicePixelRatio,l=e*n.currentDevicePixelRatio,h=a.isPointInStroke(s,o,l)||lP(this,i,r);return a.restore(),h}return function(t,{mouseX:e,mouseY:i},r=.001,n){const{x:s,y:a,x2:o,y2:l}=t.getProps(["x","y","x2","y2"],n),h=o-s,c=l-a,u=tP(h)+tP(c),d=0===u?-1:((e-s)*h+(i-a)*c)/u;let p,f;return d<0?(p=s,f=a):d>1?(p=o,f=l):(p=s+d*h,f=a+d*c),tP(e-p)+tP(i-f)<=r}(this,i,tP(n),r)||lP(this,i,r)}return function(t,{mouseX:e,mouseY:i},r,{hBorderWidth:n,useFinalPosition:s}){const a=((t,e,{x:i,y:r,x2:n,y2:s},a)=>"y"===a?{start:Math.min(r,s),end:Math.max(r,s),value:e}:{start:Math.min(i,n),end:Math.max(i,n),value:t})(e,i,t.getProps(["x","y","x2","y2"],s),r);return a.value>=a.start-n&&a.value<=a.end+n||lP(t,{mouseX:e,mouseY:i},s,r)}(this,{mouseX:t,mouseY:e},i,{hBorderWidth:n,useFinalPosition:r})}getCenterPoint(t){return nM(this,t)}draw(t){const{x:e,y:i,x2:r,y2:n,cp:s,options:a}=this;if(t.save(),!bM(t,a))return t.restore();SM(t,a);const o=Math.sqrt(Math.pow(r-e,2)+Math.pow(n-i,2));if(a.curve&&s)return function(t,e,i,r){const{x:n,y:s,x2:a,y2:o,options:l}=e,{startOpts:h,endOpts:c,startAdjust:u,endAdjust:d}=uP(e),p={x:n,y:s},f={x:a,y:o},m=nP(p,i,f,0),g=nP(p,i,f,1)-p_,y=iP(p,i,f,u/r),v=iP(p,i,f,1-d/r),x=new Path2D;t.beginPath(),x.moveTo(y.x,y.y),x.quadraticCurveTo(i.x,i.y,v.x,v.y),t.shadowColor=l.borderShadowColor,t.stroke(x),e.path=x,e.ctx=t,fP(t,y,{angle:m,adjust:u},h),fP(t,v,{angle:g,adjust:d},c)}(t,this,s,o),t.restore();const{startOpts:l,endOpts:h,startAdjust:c,endAdjust:u}=uP(this),d=Math.atan2(n-i,r-e);t.translate(e,i),t.rotate(d),t.beginPath(),t.moveTo(0+c,0),t.lineTo(o-u,0),t.shadowColor=a.borderShadowColor,t.stroke(),pP(t,0,c,l),pP(t,o,-u,h),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,e){const i=function(t,e){const{scales:i,chartArea:r}=t,n=i[e.scaleID],s={x:r.left,y:r.top,x2:r.right,y2:r.bottom};return n?function(t,e,i){const r=AM(t,i.value,NaN),n=AM(t,i.endValue,r);t.isHorizontal()?(e.x=r,e.x2=n):(e.y=r,e.y2=n)}(n,s,e):function(t,e,i){for(const r of Object.keys(TM)){const n=t[MM(t,i,r)];if(n){const{min:t,max:s,start:a,end:o,startProp:l,endProp:h}=TM[r],c=PM(n,{min:i[t],max:i[s],start:n[a],end:n[o]});e[l]=c.start,e[h]=c.end}}}(i,s,e),s}(t,e),{x:r,y:n,x2:s,y2:a}=i,o=function({x:t,y:e,x2:i,y2:r},{top:n,right:s,bottom:a,left:o}){return!(t<o&&i<o||t>s&&i>s||e<n&&r<n||e>a&&r>a)}(i,t.chartArea),l=o?function(t,e,i){const{x:r,y:n}=oP(t,e,i),{x:s,y:a}=oP(e,t,i);return{x:r,y:n,x2:s,y2:a,width:Math.abs(s-r),height:Math.abs(a-n)}}({x:r,y:n},{x:s,y:a},t.chartArea):{x:r,y:n,x2:s,y2:a,width:Math.abs(s-r),height:Math.abs(a-n)};if(l.centerX=(s+r)/2,l.centerY=(a+n)/2,l.initProperties=fM(t,l,e),e.curve){const t={x:l.x,y:l.y},i={x:l.x2,y:l.y2};l.cp=function(t,e,i){const{x:r,y:n,x2:s,y2:a,centerX:o,centerY:l}=t,h=Math.atan2(a-n,s-r),c=dM(e.controlPoint,0);return FM({x:o+uM(i,c.x,!1),y:l+uM(i,c.y,!1)},{x:o,y:l},h)}(l,e,I_(t,i))}const h=function(t,e,i){const r=i.borderWidth,n=Fb(i.padding),s=EM(t.ctx,i);return function(t,e,i,r){const{width:n,height:s,padding:a}=i,{xAdjust:o,yAdjust:l}=e,h={x:t.x,y:t.y},c={x:t.x2,y:t.y2},u="auto"===e.rotation?function(t){const{x:e,y:i,x2:r,y2:n}=t,s=Math.atan2(n-i,r-e);return s>p_/2?s-p_:s<p_/-2?s+p_:s}(t):M_(e.rotation),d=function(t,e,i){const r=Math.cos(i),n=Math.sin(i);return{w:Math.abs(t*r)+Math.abs(e*n),h:Math.abs(t*n)+Math.abs(e*r)}}(n,s,u),p=function(t,e,i,r){let n;const s=function(t,e){const{x:i,x2:r,y:n,y2:s}=t,a=Math.min(n,s)-e.top,o=Math.min(i,r)-e.left,l=e.bottom-Math.max(n,s),h=e.right-Math.max(i,r);return{x:Math.min(o,h),y:Math.min(a,l),dx:o<=h?1:-1,dy:a<=l?1:-1}}(t,r);return n="start"===e.position?hP({w:t.x2-t.x,h:t.y2-t.y},i,0,s):"end"===e.position?1-hP({w:t.x-t.x2,h:t.y-t.y2},i,0,s):cM(1,e.position),n}(t,e,{labelSize:d,padding:a},r),f=t.cp?iP(h,t.cp,c,p):ZM(h,c,p),m={size:d.w,min:r.left,max:r.right,padding:a.left},g={size:d.h,min:r.top,max:r.bottom,padding:a.top},y=cP(f.x,m)+o,v=cP(f.y,g)+l;return{x:y-n/2,y:v-s/2,x2:y+n/2,y2:v+s/2,centerX:y,centerY:v,pointX:f.x,pointY:f.y,width:n,height:s,rotation:P_(u)}}(e,i,{width:s.width+n.width+r,height:s.height+n.height+r,padding:n},t.chartArea)}(t,l,e.label);return h._visible=o,l.elements=[{type:"label",optionScope:"label",properties:h,initProperties:l.initProperties}],l}}sP.id="lineAnnotation";const aP={backgroundColor:void 0,backgroundShadowColor:void 0,borderColor:void 0,borderDash:void 0,borderDashOffset:void 0,borderShadowColor:void 0,borderWidth:void 0,display:void 0,fill:void 0,length:void 0,shadowBlur:void 0,shadowOffsetX:void 0,shadowOffsetY:void 0,width:void 0};function oP({x:t,y:e},i,{top:r,right:n,bottom:s,left:a}){return t<a&&(e=QM(a,{x:t,y:e},i),t=a),t>n&&(e=QM(n,{x:t,y:e},i),t=n),e<r&&(t=JM(r,{x:t,y:e},i),e=r),e>s&&(t=JM(s,{x:t,y:e},i),e=s),{x:t,y:e}}function lP(t,{mouseX:e,mouseY:i},r,n){const s=t.label;return s.options.display&&s.inRange(e,i,n,r)}function hP(t,e,i,r){const{labelSize:n,padding:s}=e,a=t.w*r.dx,o=t.h*r.dy,l=a>0&&(n.w/2+s.left-r.x)/a,h=o>0&&(n.h/2+s.top-r.y)/o;return eM(Math.max(l,h),0,.25)}function cP(t,e){const{size:i,min:r,max:n,padding:s}=e,a=i/2;return i>n-r?(n+r)/2:(r>=t-s-a&&(t=r+s+a),n<=t+s+a&&(t=n-s-a),t)}function uP(t){const e=t.options,i=e.arrowHeads&&e.arrowHeads.start,r=e.arrowHeads&&e.arrowHeads.end;return{startOpts:i,endOpts:r,startAdjust:dP(t,i),endAdjust:dP(t,r)}}function dP(t,e){if(!e||!e.display)return 0;const{length:i,width:r}=e,n=t.options.borderWidth/2,s={x:i,y:r+n},a={x:0,y:n};return Math.abs(JM(0,s,a))}function pP(t,e,i,r){if(!r||!r.display)return;const{length:n,width:s,fill:a,backgroundColor:o,borderColor:l}=r,h=Math.abs(e-n)+i;t.beginPath(),SM(t,r),bM(t,r),t.moveTo(h,-s),t.lineTo(e+i,0),t.lineTo(h,s),!0===a?(t.fillStyle=o||l,t.closePath(),t.fill(),t.shadowColor="transparent"):t.shadowColor=r.borderShadowColor,t.stroke()}function fP(t,{x:e,y:i},{angle:r,adjust:n},s){s&&s.display&&(t.save(),t.translate(e,i),t.rotate(r),pP(t,0,-n,s),t.restore())}sP.defaults={adjustScaleRange:!0,arrowHeads:{display:!1,end:Object.assign({},aP),fill:!1,length:12,start:Object.assign({},aP),width:6},borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:2,curve:!1,controlPoint:{y:"-50%"},display:!0,endValue:void 0,init:void 0,label:{backgroundColor:"rgba(0,0,0,0.8)",backgroundShadowColor:"transparent",borderCapStyle:"butt",borderColor:"black",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderRadius:6,borderShadowColor:"transparent",borderWidth:0,callout:Object.assign({},qM.defaults.callout),color:"#fff",content:null,display:!1,drawTime:void 0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:"bold"},height:void 0,opacity:void 0,padding:6,position:"center",rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,textAlign:"center",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,yAdjust:0,z:void 0},scaleID:void 0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,value:void 0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0},sP.descriptors={arrowHeads:{start:{_fallback:!0},end:{_fallback:!0},_fallback:!0}},sP.defaultRoutes={borderColor:"color"};class mP extends HE{inRange(t,e,i,r){const n=this.options.rotation,s=this.options.borderWidth;if("x"!==i&&"y"!==i)return function(t,e,i,r){const{width:n,height:s,centerX:a,centerY:o}=e,l=n/2,h=s/2;if(l<=0||h<=0)return!1;const c=M_(i||0),u=r/2||0,d=Math.cos(c),p=Math.sin(c),f=Math.pow(d*(t.x-a)+p*(t.y-o),2),m=Math.pow(p*(t.x-a)-d*(t.y-o),2);return f/Math.pow(l+u,2)+m/Math.pow(h+u,2)<=1.0001}({x:t,y:e},this.getProps(["width","height","centerX","centerY"],r),n,s);const{x:a,y:o,x2:l,y2:h}=this.getProps(["x","y","x2","y2"],r),c=s/2,u="y"===i?{start:o,end:h}:{start:a,end:l},d=FM({x:t,y:e},this.getCenterPoint(r),M_(-n));return d[i]>=u.start-c-tM&&d[i]<=u.end+c+tM}getCenterPoint(t){return nM(this,t)}draw(t){const{width:e,height:i,centerX:r,centerY:n,options:s}=this;t.save(),_M(t,this.getCenterPoint(),s.rotation),SM(t,this.options),t.beginPath(),t.fillStyle=s.backgroundColor;const a=bM(t,s);t.ellipse(r,n,i/2,e/2,p_/2,0,2*p_),t.fill(),a&&(t.shadowColor=s.borderShadowColor,t.stroke()),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,e){return DM(t,e)}}mP.id="ellipseAnnotation",mP.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:1,display:!0,init:void 0,label:Object.assign({},$M.defaults.label),rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0},mP.defaultRoutes={borderColor:"color",backgroundColor:"color"},mP.descriptors={label:{_fallback:!0}};class gP extends HE{inRange(t,e,i,r){const{x:n,y:s,x2:a,y2:o,width:l}=this.getProps(["x","y","x2","y2","width"],r),h=this.options.borderWidth;if("x"!==i&&"y"!==i)return function(t,e,i,r){if(!t||!e||i<=0)return!1;const n=r/2;return Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)<=Math.pow(i+n,2)}({x:t,y:e},this.getCenterPoint(r),l/2,h);const c=h/2,u="y"===i?{start:s,end:o,value:e}:{start:n,end:a,value:t};return u.value>=u.start-c&&u.value<=u.end+c}getCenterPoint(t){return nM(this,t)}draw(t){const e=this.options,i=e.borderWidth;if(e.radius<.1)return;t.save(),t.fillStyle=e.backgroundColor,SM(t,e);const r=bM(t,e);(function(t,e,i,r){const{radius:n,options:s}=e,a=s.pointStyle,o=s.rotation;let l=(o||0)*y_;if(xM(a))return t.save(),t.translate(i,r),t.rotate(l),t.drawImage(a,-a.width/2,-a.height/2,a.width,a.height),void t.restore();(t=>isNaN(t)||t<=0)(n)||function(t,{x:e,y:i,radius:r,rotation:n,style:s,rad:a}){let o,l,h,c;switch(t.beginPath(),s){default:t.arc(e,i,r,0,f_),t.closePath();break;case"triangle":t.moveTo(e+Math.sin(a)*r,i-Math.cos(a)*r),a+=__,t.lineTo(e+Math.sin(a)*r,i-Math.cos(a)*r),a+=__,t.lineTo(e+Math.sin(a)*r,i-Math.cos(a)*r),t.closePath();break;case"rectRounded":c=.516*r,h=r-c,o=Math.cos(a+x_)*h,l=Math.sin(a+x_)*h,t.arc(e-o,i-l,c,a-p_,a-v_),t.arc(e+l,i-o,c,a-v_,a),t.arc(e+o,i+l,c,a,a+v_),t.arc(e-l,i+o,c,a+v_,a+p_),t.closePath();break;case"rect":if(!n){h=Math.SQRT1_2*r,t.rect(e-h,i-h,2*h,2*h);break}a+=x_;case"rectRot":o=Math.cos(a)*r,l=Math.sin(a)*r,t.moveTo(e-o,i-l),t.lineTo(e+l,i-o),t.lineTo(e+o,i+l),t.lineTo(e-l,i+o),t.closePath();break;case"crossRot":a+=x_;case"cross":o=Math.cos(a)*r,l=Math.sin(a)*r,t.moveTo(e-o,i-l),t.lineTo(e+o,i+l),t.moveTo(e+l,i-o),t.lineTo(e-l,i+o);break;case"star":o=Math.cos(a)*r,l=Math.sin(a)*r,t.moveTo(e-o,i-l),t.lineTo(e+o,i+l),t.moveTo(e+l,i-o),t.lineTo(e-l,i+o),a+=x_,o=Math.cos(a)*r,l=Math.sin(a)*r,t.moveTo(e-o,i-l),t.lineTo(e+o,i+l),t.moveTo(e+l,i-o),t.lineTo(e-l,i+o);break;case"line":o=Math.cos(a)*r,l=Math.sin(a)*r,t.moveTo(e-o,i-l),t.lineTo(e+o,i+l);break;case"dash":t.moveTo(e,i),t.lineTo(e+Math.cos(a)*r,i+Math.sin(a)*r)}t.fill()}(t,{x:i,y:r,radius:n,rotation:o,style:a,rad:l})})(t,this,this.centerX,this.centerY),r&&!xM(e.pointStyle)&&(t.shadowColor=e.borderShadowColor,t.stroke()),t.restore(),e.borderWidth=i}resolveElementProperties(t,e){const i=IM(t,e);return i.initProperties=fM(t,i,e),i}}gP.id="pointAnnotation",gP.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:1,display:!0,init:void 0,pointStyle:"circle",radius:10,rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0},gP.defaultRoutes={borderColor:"color",backgroundColor:"color"};class yP extends HE{inRange(t,e,i,r){if("x"!==i&&"y"!==i)return this.options.radius>=.1&&this.elements.length>1&&function(t,e,i,r){let n=!1,s=t[t.length-1].getProps(["bX","bY"],r);for(const a of t){const t=a.getProps(["bX","bY"],r);t.bY>i!=s.bY>i&&e<(s.bX-t.bX)*(i-t.bY)/(s.bY-t.bY)+t.bX&&(n=!n),s=t}return n}(this.elements,t,e,r);const n=FM({x:t,y:e},this.getCenterPoint(r),M_(-this.options.rotation)),s=this.elements.map((t=>"y"===i?t.bY:t.bX)),a=Math.min(...s),o=Math.max(...s);return n[i]>=a&&n[i]<=o}getCenterPoint(t){return nM(this,t)}draw(t){const{elements:e,options:i}=this;t.save(),t.beginPath(),t.fillStyle=i.backgroundColor,SM(t,i);const r=bM(t,i);let n=!0;for(const i of e)n?(t.moveTo(i.x,i.y),n=!1):t.lineTo(i.x,i.y);t.closePath(),t.fill(),r&&(t.shadowColor=i.borderShadowColor,t.stroke()),t.restore()}resolveElementProperties(t,e){const i=IM(t,e),{sides:r,rotation:n}=e,s=[],a=2*p_/r;let o=n*y_;for(let n=0;n<r;n++,o+=a){const r=vP(i,e,o);r.initProperties=fM(t,i,e),s.push(r)}return i.elements=s,i}}function vP({centerX:t,centerY:e},{radius:i,borderWidth:r},n){const s=r/2,a=Math.sin(n),o=Math.cos(n),l={x:t+a*i,y:e-o*i};return{type:"point",optionScope:"point",properties:{x:l.x,y:l.y,centerX:l.x,centerY:l.y,bX:t+a*(i+s),bY:e-o*(i+s)}}}yP.id="polygonAnnotation",yP.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderShadowColor:"transparent",borderWidth:1,display:!0,init:void 0,point:{radius:0},radius:10,rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,sides:3,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0},yP.defaultRoutes={borderColor:"color",backgroundColor:"color"};const xP={box:$M,ellipse:mP,label:qM,line:sP,point:gP,polygon:yP};Object.keys(xP).forEach((t=>{pb.describe(`elements.${xP[t].id}`,{_fallback:"plugins.annotation.common"})}));const _P={update:Object.assign},bP=NM.concat(GM),SP=(t,e)=>$x(e)?CP(t,e):t,EP=t=>"color"===t||"font"===t;function wP(t="line"){return xP[t]?t:(console.warn(`Unknown annotation type: '${t}', defaulting to 'line'`),"line")}function TP(t){return isNaN(t.x)||isNaN(t.y)}function AP(t,e,i,r){const n=t.elements||(t.elements=[]);n.length=e.length;for(let t=0;t<e.length;t++){const s=e[t],a=s.properties,o=MP(n,t,s.type,s.initProperties),l=i[s.optionScope].override(s);a.options=PP(l),r.update(o,a)}}function MP(t,e,i,r){const n=xP[wP(i)];let s=t[e];return s&&s instanceof n||(s=t[e]=new n,Object.assign(s,r)),s}function PP(t){const e=xP[wP(t.type)],i={};i.id=t.id,i.type=t.type,i.drawTime=t.drawTime,Object.assign(i,CP(t,e.defaults),CP(t,e.defaultRoutes));for(const e of bP)i[e]=t[e];return i}function CP(t,e){const i={};for(const r of Object.keys(e)){const n=e[r],s=t[r];EP(r)&&Xx(s)?i[r]=s.map((t=>SP(t,n))):i[r]=SP(s,n)}return i}function kP(t,e,i){return e.$context||(e.$context=Object.assign(Object.create(t.getContext()),{element:e,id:i.id,type:"annotation"}))}const IP=new Map,DP=NM.concat(GM);var RP,OP,LP,FP,BP={id:"annotation",version:"3.0.1",beforeRegister(){!function(t,e,
2i,r=!0){const n=i.split(".");let s=0;for(const a of e.split(".")){const o=n[s++];if(parseInt(a,10)<parseInt(o,10))break;if(QA(o,a)){if(r)throw new Error(`${t} v${i} is not supported. v${e} or newer is required.`);return!1}}}("chart.js","4.0",Pw.version)},afterRegister(){Pw.register(xP)},afterUnregister(){Pw.unregister(xP)},beforeInit(t){IP.set(t,{annotations:[],elements:[],visibleElements:[],listeners:{},listened:!1,moveListened:!1,hooks:{},hooked:!1,hovered:[]})},beforeUpdate(t,e,i){const r=IP.get(t).annotations=[];let n=i.annotations;$x(n)?Object.keys(n).forEach((t=>{const e=n[t];$x(e)&&(e.id=t,r.push(e))})):Xx(n)&&r.push(...n),function(t,e){for(const i of t)jM(i,e)}(r,t.scales)},afterDataLimits(t,e){const i=IP.get(t);!function(t,e,i){const r=function(t,e,i){const r=e.axis,n=e.id,s=r+"ScaleID",a={min:Kx(e.min,Number.NEGATIVE_INFINITY),max:Kx(e.max,Number.POSITIVE_INFINITY)};for(const o of i)o.scaleID===n?XM(o,e,["value","endValue"],a):MM(t,o,s)===n&&XM(o,e,[r+"Min",r+"Max",r+"Value"],a);return a}(t.scales,e,i);let n=HM(e,r,"min","suggestedMin");n=HM(e,r,"max","suggestedMax")||n,n&&u_(e.handleTickRangeOptions)&&e.handleTickRangeOptions()}(t,e.scale,i.annotations.filter((t=>t.display&&t.adjustScaleRange)))},afterUpdate(t,e,i){const r=IP.get(t);!function(t,e,i){e.listened=mM(i,NM,e.listeners),e.moveListened=!1,e._getElements=ZA,BM.forEach((t=>{u_(i[t])&&(e.moveListened=!0)})),e.listened&&e.moveListened||e.annotations.forEach((t=>{!e.listened&&u_(t.click)&&(e.listened=!0),e.moveListened||BM.forEac
2h((i=>{u_(t[i])&&(e.listened=!0,e.moveListened=!0)}))}))}(0,r,i),function(t,e,i,r){const n=function(t,e,i){return"reset"===i||"none"===i||"resize"===i?_P:new LS(t,e)}(t,i.animations,r),s=e.annotations,a=function(t,e){const i=e.length,r=t.length;if(r<i){const e=i-r;t.splice(r,0,...new Array(e))}else r>i&&t.splice(i,r-i);return t}(e.elements,s);for(let e=0;e<s.length;e++){const i=s[e],r=MP(a,e,i.type),o=i.setContext(kP(t,r,i)),l=r.resolveElementProperties(t,o);l.skip=TP(l),"elements"in l&&(AP(r,l.elements,o,n),delete l.elements),c_(r.x)||Object.assign(r,l),Object.assign(r,l.initProperties),l.options=PP(o),n.update(r,l)}}(t,r,i,e.mode),r.visibleElements=r.elements.filter((t=>!t.skip&&t.options.display)),function(t,e,i){const r=e.visibleElements;e.hooked=mM(i,GM,e.hooks),e.hooked||r.forEach((t=>{e.hooked||GM.forEach((i=>{u_(t.options[i])&&(e.hooked=!0)}))}))}(0,r,i)},beforeDatasetsDraw(t,e,i){NP(t,"beforeDatasetsDraw",i.clip)},afterDatasetsDraw(t,e,i){NP(t,"afterDatasetsDraw",i.clip)},beforeDraw(t,e,i){NP(t,"beforeDraw",i.clip)},afterDraw(t,e,i){NP(t,"afterDraw",i.clip)},beforeEvent(t,e,i){(function(t,e,i){if(t.listened)switch(e.type){case"mousemove":case"mouseout":return function(t,e,i){if(!t.moveListened)return;let r;r="mousemove"===e.type?ZA(t,e,i.interaction):[];const n=t.hovered;t.hovered=r;const s={state:t,event:e};let a=VM(s,"leave",n,r);return VM(s,"enter",r,n)||a}(t,e,i);case"click":return function(t,e,i){const r=t.listeners,n=ZA(t,e,i.interaction);let s;for(const t of n)s=zM(t.options.click||r.click,t,e)||s;return s}(t,e,i)}})(IP.get(t),e.event,i)&&(e.changed=!0)},afterDestroy(t){IP.delete(t)},_getState(t){return IP.get(t)},defaults:{animations:{numbers:{properties:["x","y","x2","y2","width","height","centerX","centerY","pointX","pointY","radius"],type:"number"}},clip:!0,interaction:{mode:void 0,axis:void 0,intersect:void 0},common:{drawTime:"afterDatasetsDraw",init:!1,label:{}}},descriptors:{_indexable:!1,_scriptable:t=>!DP.includes(t)&&"init"!==t,annotations:{_allKeys:!1,_fallback:(t,e)=>`elements.${xP[wP(e.type)].id}`},interaction:{_fallback:!0},common:{label:{_indexable:EP,_fallback:!0},_indexable:EP}},additionalOptionScopes:[""]};function NP(t,e,i){const{ctx:r,chartArea:n}=t,s=IP.get(t);i&&bb(r,n);const a=function(t,e){const i=[];for(const r of t)if(r.options.drawTime===e&&i.push({element:r,main:!0}),r.elements&&r.elements.length)for(const t of r.elements)t.options.display&&t.options.drawTime===e&&i.push({element:t});return i}(s.visibleElements,e).sort(((t,e)=>t.element.options.z-e.element.options.z));for(const t of a)VP(r,n,s,t);i&&Sb(r)}function VP(t,e,i,r){const n=r.element;r.main?(UM(i,n,"beforeDraw"),n.draw(t,e),UM(i,n,"afterDraw")):n.draw(t,e)}function zP(t){return zP="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},zP(t)}function GP(){GP=function(){return e};var t,e={},i=Object.prototype,r=i.hasOwnProperty,n=Object.defineProperty||function(t,e,i){t[e]=i.value},s="function"==typeof Symbol?Symbol:{},a=s.iterator||"@@iterator",o=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function h(t,e,i){return Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},"")}catch(t){h=function(t,e,i){return t[e]=i}}function c(t,e,i,r){var s=e&&e.prototype instanceof y?e:y,a=Object.create(s.prototype),o=new k(r||[]);return n(a,"_invoke",{value:A(t,i,o)}),a}function u(t,e,i){try{return{type:"normal",arg:t.call(e,i)}}catch(t){return{type:"throw",arg:t}}}e.wrap=c;var d="suspendedStart",p="suspendedYield",f="executing",m="completed",g={};function y(){}function v(){}function x(){}var _={};h(_,a,(function(){return this}));var b=Object.getPrototypeOf,S=b&&b(b(I([])));S&&S!==i&&r.call(S,a)&&(_=S);var E=x.prototype=y.prototype=Object.create(_);function w(t){["next","throw","return"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function T(t,e){function i(n,s,a,o){var l=u(t[n],t,s);if("throw"!==l.type){var h=l.arg,c=h.value;return c&&"object"==zP(c)&&r.call(c,"__await")?e.resolve(c.__await).then((function(t){i("next",t,a,o)}),(function(t){i("throw",t,a,o)})):e.resolve(c).then((function(t){h.value=t,a(h)}),(function(t){return i("throw",t,a,o)}))}o(l.arg)}var s;n(this,"_invoke",{value:function(t,r){function n(){return new e((function(e,n){i(t,r,e,n)}))}return s=s?s.then(n,n):n()}})}function A(e,i,r){var n=d;return function(s,a){if(n===f)throw Error("Generator is already running");if(n===m){if("throw"===s)throw a;return{value:t,done:!0}}for(r.method=s,r.arg=a;;){var o=r.delegate;if(o){var l=M(o,r);if(l){if(l===g)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===d)throw n=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=f;var h=u(e,i,r);if("normal"===h.type){if(n=r.done?m:p,h.arg===g)continue;return{value:h.arg,done:r.done}}"throw"===h.type&&(n=m,r.method="throw",r.arg=h.arg)}}}function M(e,i){var r=i.method,n=e.iterator[r];if(n===t)return i.delegate=null,"throw"===r&&e.iterator.return&&
vendor: 1,569 bytes, line 2
2(i.method="return",i.arg=t,M(e,i),"throw"===i.method)||"return"!==r&&(i.method="throw",i.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var s=u(n,e.iterator,i.arg);if("throw"===s.type)return i.method="throw",i.arg=s.arg,i.delegate=null,g;var a=s.arg;return a?a.done?(i[e.resultName]=a.value,i.next=e.nextLoc,"return"!==i.method&&(i.method="next",i.arg=t),i.delegate=null,g):a:(i.method="throw",i.arg=new TypeError("iterator result is not an object"),i.delegate=null,g)}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function I(e){if(e||""===e){var i=e[a];if(i)return i.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,s=function i(){for(;++n<e.length;)if(r.call(e,n))return i.value=e[n],i.done=!1,i;return i.value=t,i.done=!0,i};return s.next=s}}throw new TypeError(zP(e)+" is not iterable")}return v.prototype=x,n(E,"constructor",{value:x,configurable:!0}),n(x,"constructor",{value:v,configurable:!0}),v.displayName=h(x,l,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,h(t,l,"GeneratorFunction")),t.prototype=Object.create(E),t},e.awrap=function(t){return{__await:t}}
2,w(T.prototype),h(T.prototype,o,(function(){return this})),e.AsyncIterator=T,e.async=function(t,i,r,n,s){void 0===s&&(s=Promise);var a=new T(c(t,i,r,n),s);return e.isGeneratorFunction(i)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},w(E),h(E,l,"Generator"),h(E,a,(function(){return this})),h(E,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),i=[];for(var r in e)i.push(r);return i.reverse(),function t(){for(;i.length;){var r=i.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=I,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(C),!e)for(var i in this)"t"===i.charAt(0)&&r.call(this,i)&&!isNaN(+i.slice(1))&&(this[i]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var i=this;function n(r,n){return o.type="throw",o.arg=e,i.next=r,n&&(i.method="next",i.arg=t),!!n}for(var s=this.tryEntries.length-1;s>=0;--s){var a=this.tryEntries[s],o=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),h=r.call(a,"finallyLoc");if(l&&h){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!h)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var i=this.tryEntries.length-1;i>=0;--i){var n=this.tryEntries[i];if(n.tryLoc<=this.prev&&r.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var s=n;break}}s&&("break"===t||"continue"===t)&&s.tryLoc<=e&&e<=s.finallyLoc&&(s=null);var a=s?s.completion:{};return a.type=t,a.arg=e,s?(this.method="next",this.next=s.finallyLoc,g):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),g},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),C(i),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.tryLoc===t){var r=i.completion;if("throw"===r.type){var n=r.arg;C(i)}return n}}throw Error("illegal catch attempt")},delegateYield:function(e,i,r){return this.delegate={iterator:I(e),resultName:i,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function UP(t,e,i,r,n,s,a){try{var o=t[s](a),l=o.value}catch(t){return void i(t)}o.done?e(l):Promise.resolve(l).then(r,n)}Un.registerPlugin(wh),console.log("%cCreated by %cTWK%cwww.thewebkitchen.co.uk","background: #13212E; color: #FFFFFF; padding: 5px 0px 5px 10px; margin: 25px 0px;","background: #13212E; color: #05E5C8; padding: 5px 10px 5px 0px; font-weight: bold;","background: #FFFFFF; padding: 5px 10px;"),document.querySelector("html").classList.remove("no-js"),document.querySelector("html").classList.add("js"),function(){if(document.querySelectorAll("[data-js=shorten-text]").length>0){var t=document.getElementById("long-text"),e=t.innerHTML,i=e.substr(0,200)+"...",r=!0;!function n(){t.innerHTML=r?i:e;var s=document.createElement("a");s.href="#",s.textContent=r?"Read more":"Read less",s.classList.add(r?"read-more":"read-less"),r?(t.classList.remove("is-open"),t.classList.add("is-close")):(t.classList.add("is-open"),t.classList.remove("is-close")),s.addEventListener("click",(function(t){t.preventDefault(),r=!r,n()})),t.appendChild(s)}()}}(),(FP=document.querySelectorAll(".button, .button-light, .button-center")).length>0&&FP.forEach((function(t){var e=t.querySelector(".path-animate"),i=t.querySelector("svg"),r=Un.timeline({paused:!0,defaults:{duration:.7,ease:"power1.inOut"}});r.to(e,{strokeDashoffset:0,strokeWidth:"2px",strokeDasharray:220}).to(i,{scale:1.1},"<"),t.addEventListener("mouseenter",(function(){r.play()})),t.addEventListener("mouseleave",(function(){r.reverse()}))})),function(){function t(t){document.querySelectorAll(".department-filters [data-js-order]").forEach((function(t){t.dataset.active=!1})),document.querySelector(".department-filters [data-js-order="+t+"]").dataset.active=!0}function e(){var e=document.querySelector(".department-filters [data-active=true]"),i=null==e?void 0:e.dataset.jsOrder,r=new URLSearchParams(window.location.search);if(r.has("filter")&&t(i=r.get("filter")),i){var n=Un.utils.toArray(".department-items [data-js-order]"),s=ax.getState(n);document.querySelectorAll(".department-items [data-js-order]").forEach((function(t){t.dataset.jsOrder.split(",").includes(i)?t.style.display="block":t.style.display="none"})),ax.from(s,{duration:.8,scale:!0,absolute:!1,ease:"power1.inOut",onEnter:function(t){return Un.fromTo(t,{opacity:0,y:100},{opacity:1,y:0,duration:.8,stagger:.1})},onLeave:function(t){return Un.to(t,{opacity:0,y:100,duration:.8})}})}}window.addEventListener("load",(function(t){e()}),!1),document.querySelectorAll(".department-filters [data-js-order]").forEach((function(i){i.addEventListener("click",(function(i){t(this.dataset.jsOrder),window.history.pushState("","","?filter="+this.dataset.jsOrder),e()}),!1)}))}(),function(){var t=document.querySelector("#lottie_illustration");t&&lx().loadAnimation({container:t,renderer:"svg",loop:!0,autoplay:!0,path:"../wp-content/themes/cross-ocean-partners/FourStrategies.json"});var e=document.querySelectorAll(".illustration-circles");e.length>0&&e.forEach((function(t){var e=t.querySelector(".circle-one"),i=t.querySelector(".circle-two"),r=t.querySelector(".circles-group");Un.set(t,{scale:3}),Un.set(e,{x:150}
2),Un.set(i,{x:-150}),Un.timeline({repeat:-1,repeatDelay:.2,scrollTrigger:{trigger:t,start:"top center"}}).to(e,{x:0,duration:.5,ease:"power4.out"}).to(i,{x:0,duration:.5,ease:"power4.out"},"<+0.3").to(r,{rotate:360,transformOrigin:"center",ease:"power4.out",duration:2.5,delay:.3}).to(i,{x:-150,duration:.5,ease:"power4.out"}).to(e,{x:150,duration:.5,ease:"power4.out"},"<+0.3")}));var i=document.querySelectorAll(".illustration-globe");i.length>0&&i.forEach((function(t){t.querySelector("#_circle_");var e=t.querySelector("#_x31_"),i=t.querySelector("#_x32_"),r=t.querySelector("#_x33_"),n=t.querySelector("#_x34_");Un.timeline({repeat:-1,repeatDelay:1.2,scrollTrigger:{trigger:t,start:"top center"}}).to(e,{rotate:360,transformOrigin:"center",duration:2.5,ease:"power1.out"}).to(n,{rotate:-360,transformOrigin:"center",duration:2.5,ease:"power1.out"},"<+0.5").to(i,{rotate:360,transformOrigin:"center",duration:2.5,ease:"power1.out"},"<+0.5").to(r,{rotate:-360,transformOrigin:"center",duration:2.5,ease:"power1.out"},"<+0.5").to(r,{rotate:0,transformOrigin:"center",duration:2.5,ease:"power1.out"}).to(i,{rotate:0,transformOrigin:"center",duration:2.5,ease:"power1.out"},"<+0.5").to(n,{rotate:0,transformOrigin:"center",duration:2.5,ease:"power1.out"},"<+0.5").to(e,{rotate:0,transformOrigin:"center",duration:2.5,ease:"power1.out"},"<+0.5")}))}(),RP=new(e())({selector:".inline-popup",customClass:"twk-inline-popup",numeration:!1,infinigall:!1,share:!1,spinner:"pulse",bgcolor:"white",overlayColor:"rgb(0 39 86 / 50%)",onPostOpen:function(t,e,i,r){document.querySelector(".twk-inline-popup .vbox-close").style.display="none",document.querySelector(".vbox-content .custom-close-button").addEventListener("click",(function(){RP.close()}),!1)}}),function(){if(document.querySelector(".one-swiper")){var t=document.querySelector(".swiper-progress #animate"),e=t.r.baseVal.value,i=2*Math.PI*e,r=i;t.style.strokeDasharray=i,t.style.strokeDashoffset=r,t.style.transitionDuration="0ms";var n=new Z(".one-swiper",{modules:[J,et],slidesPerView:1,spaceBetween:120,loop:!0,effect:"fade",fadeEffect:{crossFade:!0},autoplay:{delay:7e3,disableOnInteraction:!1,stopOnLastSlide:!1},on:{afterInit:function(){t.style.transitionDuration="".concat(this.params.autoplay.delay,"ms"),t.style.strokeDashoffset=0},slideChangeTransitionStart:function(){var t=this.slides[this.previousIndex],e=this.slides[this.activeIndex];t.style.opacity=0,t.style.visibility="hidden",e.style.opacity=1,e.style.visibility="visible"},transitionEnd:function(){var t=this.slides[this.previousIndex],e=this.slides[this.activeIndex];t.style.opacity=0,t.style.visibility="hidden",e.style.opacity=1,e.style.visibility="visible"}}});n.on("slideChange",(function(){t.style.transitionDuration="0ms",t.style.strokeDashoffset=r})),n.on("autoplay",(function(){setTimeout((function(){t.style.transitionDuration="".concat(n.params.autoplay.delay,"ms"),t.style.strokeDashoffset=0}),200)})),n.on("touchMove",(function(){console.log("touchMove"),t.style.transitionDuration="0ms",t.style.strokeDashoffset=r,setTimeout((function(){t.style.transitionDuration="".concat(n.params.autoplay.delay,"ms"),t.style.strokeDashoffset=0}),200)}))}}(),function(){var t=document.querySelector('[data-element="strategies"]');if(t){var e=document.querySelector('[data-element="strategies"] .prose_container');document.querySelectorAll('[data-element="strategy_box"]').forEach((function(e,i){window.innerHeight-e.offsetHeight>0?(e.style.marginTop="300px",e.style.marginBottom="300px"):(e.style.marginTop="100px",e.style.marginBottom="100px");var r=e.getAttribute("data-bg"),n=e.getAttribute("data-circle"),s=e.getAttribute("data-rotate"),a=document.querySelector('[data-element="strategy_svg"]'),o=(a.querySelector("path"),a.querySelector("ellipse"));Un.set(a,{rotate:-10}),Un.to(t,{ease:"none",scrollTrigger:{trigger:e,start:"top 85%",end:"bottom 30%",onEnter:function(){Un.to(t,{backgroundColor:r,duration:.8}),Un.to(o,{fill:n,duration:.8}),Un.to(a,{rotate:s,transformOrigin:"center",duration:.8})},onEnterBack:function(){Un.to(t,{backgroundColor:r,duration:.8}),Un.to(o,{fill:n,duration:.8}),Un.to(a,{rotate:s,transformOrigin:"center",duration:.8})}}})}));var i=e.offsetHeight-window.innerHeight;window.matchMedia("(min-width: 1024px)").matches?Un.to(e,{y:-i,ease:"none",scrollTrigger:{trigger:t,pin:!0,start:"top top",end:"+="+i+"px",scrub:!0,pinSpacing:!0}}):Un.to(e,{ease:"none",scrollTrigger:{trigger:t,start:"top top",end:"+="+i+"px",scrub:!0,pinSpacing:!0}})}}(),function(){function t(){document.querySelectorAll(".prose table").length>0&&function(t){return function(t){if(Array.isArray(t))return hx(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return hx(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?hx(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}
2(document.querySelectorAll(".prose table")).forEach((function(t){var e,i;e=t,(i=i||document.createElement("div")).classList.add("responsive-table"),e.parentNode.insertBefore(i,e),i.appendChild(e)}))}window.addEventListener("load",(function(e){t()}),!1)}(),function(){if(document.querySelector(".timeline-swiper")){var t=function t(e){cancelAnimationFrame(i),n.forEach((function(t){t.position()})),!0!==e&&(i=requestAnimationFrame(t))},e=new Z(".timeline-swiper",{modules:[Q],freeMode:!0,slidesPerView:1,breakpoints:{1024:{slidesPerView:"auto"}},centeredSlides:!0,spaceBetween:20,on:{init:function(){this.slideNext()}}});document.querySelector(".swiper-pagination .next").addEventListener("click",(function(){e.slideNext()})),document.querySelector(".swiper-pagination .prev").addEventListener("click",(function(){e.slidePrev()}));for(var i,r=document.querySelectorAll(".timeline-swiper .dot"),n=[],s=0;s<r.length-1;s++)n.push(new(ux())(r[s],r[s+1],{startPlug:"behind",endPlug:"behind",size:1,startPlugSize:1,endPlugSize:1,startSocket:"right",endSocket:"left",color:"#ffffff47",path:"fluid"}));e.on("sliderMove",(function(){n.forEach((function(t){t.position()}))})),e.on("slideChangeTransitionStart",t),e.on("slideResetTransitionStart",t),e.on("slideChangeTransitionEnd",(function(){t(!0)})),e.on("slideResetTransitionEnd",(function(){t(!0)}));var a=document.querySelectorAll(".timeline-swiper .swiper-slide");a&&function(t){return function(t){if(Array.isArray(t))return dx(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return dx(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?dx(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(a).forEach((function(t,e){var i=t.querySelector(".slide-content-wrapper"),r=t.querySelector(".dot"),n=0;requestAnimationFrame((function t(){n+=.01,Un.to(i,{duration:.1,y:10*Math.sin(n+e),ease:"none",onUpdate:function(){}}),Un.to(r,{duration:.1,y:4*Math.sin(n+e),ease:"none"}),requestAnimationFrame(t)}))}))}}(),function(t){return function(){var e=this,i=arguments;return new Promise((function(r,n){var s=t.apply(e,i);function a(t){UP(s,r,n,a,o,"next",t)}function o(t){UP(s,r,n,a,o,"throw",t)}a(void 0)}))}}(GP().mark((function t(){var e,i,r,n,s,a;return GP().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:(e=document.getElementById("chart"))&&(i=document.querySelectorAll("[data-name=data] > div"),r=[],i.length>0&&i.forEach((function(t){var e=t.getAttribute("data-title"),i=t.getAttribute("data-amount");r.push({title:e,amount:i})})),n=r.reduce((function(t,e){return t>e.amount?t:e.amount}),0),s=1.5*parseInt(n),a="18",window.innerWidth<768&&(s=1.65*parseInt(n),a="16"),xA.register(qA),xA.register(BP),wh.create({trigger:e,start:"top center",onEnter:function(){new xA(e,{type:"bar",data:{labels:r.map((function(t){return t.title})),datasets:[{type:"bar",label:"$ bn",data:r.map((function(t){return t.amount})),backgroundColor:"#002756"}]},options:{responsive:!0,maintainAspectRatio:!0,animation:{duration:3e3},plugins:{tooltip:{enabled:!1},legend:{display:!1},datalabels:{color:"#002756",anchor:"end",align:"top",offset:4,font:{size:a,family:"ivymode"}}},scales:{y:{display:!1,max:s},x:{ticks:{color:"#383838",font:{size:"15",family:"ivymode"}},grid:{display:!1}}}}})}}));case 2:case"end":return t.stop()}}),t)})))(),function(){var t=document.querySelector(".loading-animation");if(t){var e=document.querySelector(".top-nav div:nth-child(1)"),i=document.querySelector(".banner__content"),r=document.querySelector(".banner__cta"),n=document.getElementById("loading-logo"),s=null==n?void 0:n.querySelector(".logo__globe"),a=null==n?void 0:n.querySelector(".logo__yellow"),o=null==n?void 0:n.querySelector(".logo__text");Un.set(s,{x:75}),Un.set(a,{x:75}),Un.set(o,{x:-150}),Un.timeline({onComplete:function(){document.querySelector("body").classList.remove("overflow-hidden"),t.remove()},onStart:function(){document.querySelector("body").classList.add("overflow-hidden"),Un.set(e,{opacity:0,y:-150}),Un.set(i,{opacity:0,y:50}),Un.set(r,{opacity:0,y:150})}}).to(a,{opacity:1,rotate:1080,transformOrigin:"center",ease:"power3.out",duration:1}).to([s,a],{x:0,duration:.8},"+=0.3").to(o,{opacity:1,duration:.8,x:0}
2,"<").to(n,{opacity:0,duration:.8},"+=1.4").to(t,{opacity:0,duration:.8},"-=.2").to(i,{opacity:1,y:0,duration:.8},"-=0.5").to([e,r],{opacity:1,y:0,duration:.8})}}(),OP=Un.utils.toArray("[twk-aos]"),LP=!1,OP.forEach((function(t){if(null!==t.closest("section")){var e=document.querySelector("main.main"),i=null==e?void 0:e.firstElementChild.id;LP=t.closest("section").id===i}var r=LP?"top bottom-=20px":"top bottom-=150px",n=.8,s="<",a=!1,o="section";null!==t.getAttribute("twk-aos-trigger")&&(r=t.getAttribute("twk-aos-trigger")),null!==t.getAttribute("twk-aos-duration")&&(n=t.getAttribute("twk-aos-duration")/1e3),null!==t.getAttribute("twk-aos-delay")&&(s=t.getAttribute("twk-aos-delay")/1e3),null!==t.getAttribute("twk-aos-stagger")&&(Number.isNaN(parseInt(t.getAttribute("twk-aos-stagger")))||t.getAttribute("twk-aos-stagger")),null!==t.getAttribute("twk-aos-marker")&&(a=!0,o=t.getAttribute("twk-aos-marker"));var l,h,c=Un.timeline({defaults:{duration:n,ease:"power1.out"},scrollTrigger:{trigger:t,fastScrollEnd:!0,once:!0,start:r,end:"bottom 80%",id:o,markers:a,toggleClass:"twk-aos-animating",onEnter:function(){return t.classList.add("twk-aos-animate")},onLeave:function(){return t.classList.add("twk-aos-animated")}}});switch(t.getAttribute("twk-aos")){case"fade":default:l={opacity:0}
2,h={opacity:1};break;case"fade-up":l={opacity:0,y:"100px"},h={opacity:1,y:"0px"};break;case"fade-down":l={opacity:0,y:"-100px"},h={opacity:1,y:"0px"};break;case"fade-left":l={opacity:0,x:"100px"},h={opacity:1,x:"0px"};break;case"fade-right":l={opacity:0,x:"-100px"},h={opacity:1,x:"0px"};break;case"slide-up":l={y:"100px"},h={y:"0"};break;case"slide-down":l={y:"-100px"},h={y:"0"};break;case"slide-left":l={x:"100px"},h={x:"0"};break;case"slide-right":l={x:"-100px"},h={x:"0"};break;case"zoom-in":l={scale:.7},h={scale:1};break;case"zoom-out":l={scale:1.1},h={scale:1};break;case"fade-zoom-in":l={opacity:0,scale:.5},h={opacity:1,scale:1}}null!==t.getAttribute("twk-aos-stagger")?(c.to(t,{opacity:1,x:0,y:0,scale:1}),t.querySelectorAll(":scope > *").forEach((function(t,e){var i="[twk-aos-stagger] > ."+Un.utils.toArray(t)[0].classList[0]+":nth-child("+(e+1)+")";(c=Un.timeline({scrollTrigger:{trigger:i}})).fromTo(i,l,h,s)}))):c.fromTo(t,l,h,s)})),window.innerWidth<991?setTimeout((function(){dv()}),4e3):dv(),jQuery(document).ready((function(t){t(document).on("click",".scroll-to",(function(e){e.preventDefault(),t("html, body").animate({scrollTop:t(t.attr(this,"href")).offset().top},500)})),t('a[href^="mailto:"]').each((function(){t(this).addClass("no-force-blank")})),t('a:not(.no-force-blank):not(.vbox-item):not([class^="magnific-"])').each((function(){new RegExp("/"+window.location.host+"/").test(this.href)||t(this).click((function(t){t.preventDefault(),window.open(this.href,"_blank")}))})),t((function(){t('a[href$=".pdf"]').prop("target","_blank")}));var e=document.querySelector("#hamburger"),i=document.querySelector('[data-name="topmenu"]'),r=document.querySelector('[data-name="whitelogo"]'),n=document.querySelector('[data-name="darklogo"]'),s=document.documentElement;e.addEventListener("click",(function(){e.classList.toggle("open"),i.classList.toggle("open"),r&&(r.classList.toggle("hidden"),n.classList.toggle("hidden")),s.classList.toggle("overflow-hidden"),s.classList.toggle("h-screen")}))}))}()})();

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.