@molin.ai/shop-ai 0.2.0 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/molin-shop-ai.min.js +123 -75
- package/package.json +1 -1
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
var
|
|
2
|
-
\f\r]`,
|
|
3
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),zl=/'/g,Nl=/"/g,Ul=/^(?:script|style|textarea|title)$/i,Wl=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),Q=Wl(1),Dg=Wl(2),ve=Symbol.for("lit-noChange"),_t=Symbol.for("lit-nothing"),Hl=new WeakMap,Tr=Fr.createTreeWalker(Fr,129,null,!1),Zl=(t,e)=>{let r=t.length-1,i=[],n,s=e===2?"<svg>":"",o=mi;for(let l=0;l<r;l++){let h=t[l],c,p,f=-1,u=0;for(;u<h.length&&(o.lastIndex=u,p=o.exec(h),p!==null);)u=o.lastIndex,o===mi?p[1]==="!--"?o=Vl:p[1]!==void 0?o=Bl:p[2]!==void 0?(Ul.test(p[2])&&(n=RegExp("</"+p[2],"g")),o=cr):p[3]!==void 0&&(o=cr):o===cr?p[0]===">"?(o=n??mi,f=-1):p[1]===void 0?f=-2:(f=o.lastIndex-p[2].length,c=p[1],o=p[3]===void 0?cr:p[3]==='"'?Nl:zl):o===Nl||o===zl?o=cr:o===Vl||o===Bl?o=mi:(o=cr,n=void 0);let m=o===cr&&t[l+1].startsWith("/>")?" ":"";s+=o===mi?h+lf:f>=0?(i.push(c),h.slice(0,f)+Sn+h.slice(f)+$e+m):h+$e+(f===-2?(i.push(void 0),l):m)}let a=s+(t[r]||"<?>")+(e===2?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[Rl!==void 0?Rl.createHTML(a):a,i]},vi=class t{constructor({strings:e,_$litType$:r},i){let n;this.parts=[];let s=0,o=0,a=e.length-1,l=this.parts,[h,c]=Zl(e,r);if(this.el=t.createElement(h,i),Tr.currentNode=this.el.content,r===2){let p=this.el.content,f=p.firstChild;f.remove(),p.append(...f.childNodes)}for(;(n=Tr.nextNode())!==null&&l.length<a;){if(n.nodeType===1){if(n.hasAttributes()){let p=[];for(let f of n.getAttributeNames())if(f.endsWith(Sn)||f.startsWith($e)){let u=c[o++];if(p.push(f),u!==void 0){let m=n.getAttribute(u.toLowerCase()+Sn).split($e),g=/([.?@])?(.*)/.exec(u);l.push({type:1,index:s,name:g[2],strings:m,ctor:g[1]==="."?kn:g[1]==="?"?Pn:g[1]==="@"?An:ur})}else l.push({type:6,index:s})}for(let f of p)n.removeAttribute(f)}if(Ul.test(n.tagName)){let p=n.textContent.split($e),f=p.length-1;if(f>0){n.textContent=Mr?Mr.emptyScript:"";for(let u=0;u<f;u++)n.append(p[u],gi()),Tr.nextNode(),l.push({type:2,index:++s});n.append(p[f],gi())}}}else if(n.nodeType===8)if(n.data===Po)l.push({type:2,index:s});else{let p=-1;for(;(p=n.data.indexOf($e,p+1))!==-1;)l.push({type:7,index:s}),p+=$e.length-1}s++}}static createElement(e,r){let i=Fr.createElement("template");return i.innerHTML=e,i}};function pr(t,e,r=t,i){var n,s,o,a;if(e===ve)return e;let l=i!==void 0?(n=r._$Co)===null||n===void 0?void 0:n[i]:r._$Cl,h=yi(e)?void 0:e._$litDirective$;return l?.constructor!==h&&((s=l?._$AO)===null||s===void 0||s.call(l,!1),h===void 0?l=void 0:(l=new h(t),l._$AT(t,r,i)),i!==void 0?((o=(a=r)._$Co)!==null&&o!==void 0?o:a._$Co=[])[i]=l:r._$Cl=l),l!==void 0&&(e=pr(t,l._$AS(t,e.values),l,i)),e}var En=class{constructor(e,r){this.u=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(e){var r;let{el:{content:i},parts:n}=this._$AD,s=((r=e?.creationScope)!==null&&r!==void 0?r:Fr).importNode(i,!0);Tr.currentNode=s;let o=Tr.nextNode(),a=0,l=0,h=n[0];for(;h!==void 0;){if(a===h.index){let c;h.type===2?c=new Dr(o,o.nextSibling,this,e):h.type===1?c=new h.ctor(o,h.name,h.strings,this,e):h.type===6&&(c=new Cn(o,this,e)),this.u.push(c),h=n[++l]}a!==h?.index&&(o=Tr.nextNode(),a++)}return s}p(e){let r=0;for(let i of this.u)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,r),r+=i.strings.length-2):i._$AI(e[r])),r++}},Dr=class t{constructor(e,r,i,n){var s;this.type=2,this._$AH=_t,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=n,this._$Cm=(s=n?.isConnected)===null||s===void 0||s}get _$AU(){var e,r;return(r=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&r!==void 0?r:this._$Cm}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=pr(this,e,r),yi(e)?e===_t||e==null||e===""?(this._$AH!==_t&&this._$AR(),this._$AH=_t):e!==this._$AH&&e!==ve&&this.g(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):ql(e)?this.k(e):this.g(e)}S(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.S(e))}g(e){this._$AH!==_t&&yi(this._$AH)?this._$AA.nextSibling.data=e:this.T(Fr.createTextNode(e)),this._$AH=e}$(e){var r;let{values:i,_$litType$:n}=e,s=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=vi.createElement(n.h,this.options)),n);if(((r=this._$AH)===null||r===void 0?void 0:r._$AD)===s)this._$AH.p(i);else{let o=new En(s,this),a=o.v(this.options);o.p(i),this.T(a),this._$AH=o}}_$AC(e){let r=Hl.get(e.strings);return r===void 0&&Hl.set(e.strings,r=new vi(e)),r}k(e){Gl(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let s of e)n===r.length?r.push(i=new t(this.S(gi()),this.S(gi()),this,this.options)):i=r[n],i._$AI(s),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){var i;for((i=this._$AP)===null||i===void 0||i.call(this,!1,!0,r);e&&e!==this._$AB;){let n=e.nextSibling;e.remove(),e=n}}setConnected(e){var r;this._$AM===void 0&&(this._$Cm=e,(r=this._$AP)===null||r===void 0||r.call(this,e))}},ur=class{constructor(e,r,i,n,s){this.type=1,this._$AH=_t,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=s,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=_t}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,r=this,i,n){let s=this.strings,o=!1;if(s===void 0)e=pr(this,e,r,0),o=!yi(e)||e!==this._$AH&&e!==ve,o&&(this._$AH=e);else{let a=e,l,h;for(e=s[0],l=0;l<s.length-1;l++)h=pr(this,a[i+l],r,l),h===ve&&(h=this._$AH[l]),o||(o=!yi(h)||h!==this._$AH[l]),h===_t?e=_t:e!==_t&&(e+=(h??"")+s[l+1]),this._$AH[l]=h}o&&!n&&this.j(e)}j(e){e===_t?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},kn=class extends ur{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===_t?void 0:e}},hf=Mr?Mr.emptyScript:"",Pn=class extends ur{constructor(){super(...arguments),this.type=4}j(e){e&&e!==_t?this.element.setAttribute(this.name,hf):this.element.removeAttribute(this.name)}},An=class extends ur{constructor(e,r,i,n,s){super(e,r,i,n,s),this.type=5}_$AI(e,r=this){var i;if((e=(i=pr(this,e,r,0))!==null&&i!==void 0?i:_t)===ve)return;let n=this._$AH,s=e===_t&&n!==_t||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,o=e!==_t&&(n===_t||s);s&&this.element.removeEventListener(this.name,this,n),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var r,i;typeof this._$AH=="function"?this._$AH.call((i=(r=this.options)===null||r===void 0?void 0:r.host)!==null&&i!==void 0?i:this.element,e):this._$AH.handleEvent(e)}},Cn=class{constructor(e,r,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){pr(this,e)}},Yl={P:Sn,A:$e,M:Po,C:1,L:Zl,D:En,R:ql,V:pr,I:Dr,H:ur,N:Pn,U:An,F:kn,B:Cn},jl=xn.litHtmlPolyfillSupport;jl?.(vi,Dr),((Eo=xn.litHtmlVersions)!==null&&Eo!==void 0?Eo:xn.litHtmlVersions=[]).push("2.7.0");var Xl=(t,e,r)=>{var i,n;let s=(i=r?.renderBefore)!==null&&i!==void 0?i:e,o=s._$litPart$;if(o===void 0){let a=(n=r?.renderBefore)!==null&&n!==void 0?n:null;s._$litPart$=o=new Dr(e.insertBefore(gi(),a),a,void 0,r??{})}return o._$AI(t),o};var Ao,Co;var lt=class extends Le{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,r;let i=super.createRenderRoot();return(e=(r=this.renderOptions).renderBefore)!==null&&e!==void 0||(r.renderBefore=i.firstChild),i}update(e){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Xl(r,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!1)}render(){return ve}};lt.finalized=!0,lt._$litElement$=!0,(Ao=globalThis.litElementHydrateSupport)===null||Ao===void 0||Ao.call(globalThis,{LitElement:lt});var Kl=globalThis.litElementPolyfillSupport;Kl?.({LitElement:lt});((Co=globalThis.litElementVersions)!==null&&Co!==void 0?Co:globalThis.litElementVersions=[]).push("3.3.0");function Vo(t){return[...t.v,(t.i?"!":"")+t.n].join(":")}function cf(t,e=","){return t.map(Vo).join(e)}var nh=typeof CSS<"u"&&CSS.escape||(t=>t.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function Tn(t){for(var e=9,r=t.length;r--;)e=Math.imul(e^t.charCodeAt(r),1597334677);return"#"+((e^e>>>9)>>>0).toString(36)}function Dn(t,e="@media "){return e+gt(t).map(r=>(typeof r=="string"&&(r={min:r}),r.raw||Object.keys(r).map(i=>`(${i}-width:${r[i]})`).join(" and "))).join(",")}function gt(t=[]){return Array.isArray(t)?t:t==null?[]:[t]}function Jl(t){return t}function In(){}var Et={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function sh(t){return t.match(/[-=:;]/g)?.length||0}function Io(t){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(t)?Math.max(0,29.63*(+RegExp.$1/(RegExp.$2?15:1))**.137-43):0,15)<<22|Math.min(sh(t),15)<<18}var pf=["rst-c","st-ch","h-chi","y-lin","nk","sited","ecked","pty","ad-on","cus-w","ver","cus","cus-v","tive","sable","tiona","quire"];function Bo({n:t,i:e,v:r=[]},i,n,s){t&&(t=Vo({n:t,i:e,v:r})),s=[...gt(s)];for(let a of r){let l=i.theme("screens",a);for(let h of gt(l&&Dn(l)||i.v(a))){var o;s.push(h),n|=l?67108864|Io(h):a=="dark"?1073741824:h[0]=="@"?Io(h):(o=h,1<<~(/:([a-z-]+)/.test(o)&&~pf.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:t,p:n,r:s,i:e}}var oh=new Map;function Oo(t){if(t.d){let e=[],r=To(t.r.reduce((i,n)=>n[0]=="@"?(e.push(n),i):n?To(i,s=>To(n,o=>{let a=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(o);if(a){let l=s.indexOf(a[1]);return~l?s.slice(0,l)+a[0]+s.slice(l+a[1].length):Mo(s,o)}return Mo(o,s)})):i,"&"),i=>Mo(i,t.n?"."+nh(t.n):""));return r&&e.push(r.replace(/:merge\((.+?)\)/g,"$1")),e.reduceRight((i,n)=>n+"{"+i+"}",t.d)}}function To(t,e){return t.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(r,i,n)=>e(i)+n)}function Mo(t,e){return t.replace(/&/g,e)}var Ql=new Intl.Collator("en",{numeric:!0});function ah(t,e){for(var r=0,i=t.length;r<i;){let n=i+r>>1;0>=lh(t[n],e)?r=n+1:i=n}return i}function lh(t,e){let r=t.p&Et.o;return r==(e.p&Et.o)&&(r==Et.b||r==Et.o)?0:t.p-e.p||t.o-e.o||Ql.compare(th(t.n),th(e.n))||Ql.compare(eh(t.n),eh(e.n))}function th(t){return(t||"").split(/:/).pop().split("/").pop()||"\0"}function eh(t){return(t||"").replace(/\W/g,e=>String.fromCharCode(127+e.charCodeAt(0)))+"\0"}function Fo(t,e){return Math.round(parseInt(t,16)*e)}function he(t,e={}){if(typeof t=="function")return t(e);let{opacityValue:r="1",opacityVariable:i}=e,n=i?`var(${i})`:r;if(t.includes("<alpha-value>"))return t.replace("<alpha-value>",n);if(t[0]=="#"&&(t.length==4||t.length==7)){let s=(t.length-1)/3,o=[17,1,.062272][s-1];return`rgba(${[Fo(t.substr(1,s),o),Fo(t.substr(1+s,s),o),Fo(t.substr(1+2*s,s),o),n]})`}return n=="1"?t:n=="0"?"#0000":t.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${n})`)}function hh(t,e,r,i,n=[]){return function s(o,{n:a,p:l,r:h=[],i:c},p){let f=[],u="",m=0,g=0;for(let v in o||{}){var d,y;let b=o[v];if(v[0]=="@"){if(!b)continue;if(v[1]=="a"){f.push(...No(a,l,Fn(""+b),p,l,h,c,!0));continue}if(v[1]=="l"){for(let _ of gt(b))f.push(...s(_,{n:a,p:(d=Et[v[7]],l&~Et.o|d),r:v[7]=="d"?[]:h,i:c},p));continue}if(v[1]=="i"){f.push(...gt(b).map(_=>({p:-1,o:0,r:[],d:v+" "+_})));continue}if(v[1]=="k"){f.push({p:Et.d,o:0,r:[v],d:s(b,{p:Et.d},p).map(Oo).join("")});continue}if(v[1]=="f"){f.push(...gt(b).map(_=>({p:Et.d,o:0,r:[v],d:s(_,{p:Et.d},p).map(Oo).join("")})));continue}}if(typeof b!="object"||Array.isArray(b))v=="label"&&b?a=b+Tn(JSON.stringify([l,c,o])):(b||b===0)&&(v=v.replace(/[A-Z]/g,_=>"-"+_.toLowerCase()),g+=1,m=Math.max(m,(y=v)[0]=="-"?0:sh(y)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7,8}$)|([fl].{5}l|g.{8}$|pl))/.test(y)?+!!RegExp.$1||-!!RegExp.$2:0)+1),u+=(u?";":"")+gt(b).map(_=>p.s(v,zo(""+_,p.theme)+(c?" !important":""))).join(";"));else if(v[0]=="@"||v.includes("&")){let _=l;v[0]=="@"&&(v=v.replace(/\bscreen\(([^)]+)\)/g,(x,M)=>{let S=p.theme("screens",M);return S?(_|=67108864,Dn(S,"")):x}),_|=Io(v)),f.push(...s(b,{n:a,p:_,r:[...h,v],i:c},p))}else f.push(...s(b,{p:l,r:[...h,v]},p))}return f.unshift({n:a,p:l,o:Math.max(0,15-g)+1.5*Math.min(m||15,15),r:h,d:u}),f.sort(lh)}(t,Bo(e,r,i,n),r)}function zo(t,e){return t.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(r,i,n,s,o="")=>{let a=e(n,o);return typeof a=="function"&&/color|fill|stroke/i.test(n)?he(a):""+gt(a).filter(l=>Object(l)!==l)})}function ch(t,e){let r,i=[];for(let n of t)n.d&&n.n?r?.p==n.p&&""+r.r==""+n.r?(r.c=[r.c,n.c].filter(Boolean).join(" "),r.d=r.d+";"+n.d):i.push(r={...n,n:n.n&&e}):i.push({...n,n:n.n&&e});return i}function Mn(t,e,r=Et.u,i,n){let s=[];for(let o of t)for(let a of function(l,h,c,p,f){l={...l,i:l.i||f};let u=function(m,g){let d=oh.get(m.n);return d?d(m,g):g.r(m.n,m.v[0]=="dark")}(l,h);return u?typeof u=="string"?({r:p,p:c}=Bo(l,h,c,p),ch(Mn(Fn(u),h,c,p,l.i),l.n)):Array.isArray(u)?u.map(m=>{var g,d;return{o:0,...m,r:[...gt(p),...gt(m.r)],p:(g=c,d=m.p??c,g&~Et.o|d)}}):hh(u,l,h,c,p):[{c:Vo(l),p:0,o:0,r:[]}]}(o,e,r,i,n))s.splice(ah(s,a),0,a);return s}function No(t,e,r,i,n,s,o,a){return ch((a?r.flatMap(l=>Mn([l],i,n,s,o)):Mn(r,i,n,s,o)).map(l=>l.p&Et.o&&(l.n||e==Et.b)?{...l,p:l.p&~Et.o|e,o:0}:l),t)}function uf(t,e,r,i){var n;return n=(s,o)=>{let{n:a,p:l,r:h,i:c}=Bo(s,o,e);return r&&No(a,e,r,o,l,h,c,i)},oh.set(t,n),t}function Do(t,e,r){if(t[t.length-1]!="("){let i=[],n=!1,s=!1,o="";for(let a of t)if(!(a=="("||/[~@]$/.test(a))){if(a[0]=="!"&&(a=a.slice(1),n=!n),a.endsWith(":")){i[a=="dark:"?"unshift":"push"](a.slice(0,-1));continue}a[0]=="-"&&(a=a.slice(1),s=!s),a.endsWith("-")&&(a=a.slice(0,-1)),a&&a!="&"&&(o+=(o&&"-")+a)}o&&(s&&(o="-"+o),e[0].push({n:o,v:i.filter(ff),i:n}))}}function ff(t,e,r){return r.indexOf(t)==e}var rh=new Map;function Fn(t){let e=rh.get(t);if(!e){let r=[],i=[[]],n=0,s=0,o=null,a=0,l=(h,c=0)=>{n!=a&&(r.push(t.slice(n,a+c)),h&&Do(r,i)),n=a+1};for(;a<t.length;a++){let h=t[a];if(s)t[a-1]!="\\"&&(s+=+(h=="[")||-(h=="]"));else if(h=="[")s+=1;else if(o)t[a-1]!="\\"&&o.test(t.slice(a))&&(o=null,n=a+RegExp.lastMatch.length);else if(h=="/"&&t[a-1]!="\\"&&(t[a+1]=="*"||t[a+1]=="/"))o=t[a+1]=="*"?/^\*\//:/^[\r\n]/;else if(h=="(")l(),r.push(h);else if(h==":")t[a+1]!=":"&&l(!1,1);else if(/[\s,)]/.test(h)){l(!0);let c=r.lastIndexOf("(");if(h==")"){let p=r[c-1];if(/[~@]$/.test(p)){let f=i.shift();r.length=c,Do([...r,"#"],i);let{v:u}=i[0].pop();for(let m of f)m.v.splice(+(m.v[0]=="dark")-+(u[0]=="dark"),u.length);Do([...r,uf(p.length>1?p.slice(0,-1)+Tn(JSON.stringify([p,f])):p+"("+cf(f)+")",Et.a,f,/@$/.test(p))],i)}c=r.lastIndexOf("(",c-1)}r.length=c+1}else/[~@]/.test(h)&&t[a+1]=="("&&i.unshift([])}l(!0),rh.set(t,e=i[0])}return e}function V(t,e,r){return[t,Lo(e,r)]}function Lo(t,e){return typeof t=="function"?t:typeof t=="string"&&/^[\w-]+$/.test(t)?(r,i)=>({[t]:e?e(r,i):$o(r,1)}):r=>t||{[r[1]]:$o(r,2)}}function $o(t,e,r=t.slice(e).find(Boolean)||t.$$||t.input){return t.input[0]=="-"?`calc(${r} * -1)`:r}function B(t,e,r,i){return[t,Ho(e,r,i)]}function Ho(t,e,r){let i=typeof e=="string"?(n,s)=>({[e]:r?r(n,s):n._}):e||(({1:n,_:s},o,a)=>({[n||a]:s}));return(n,s)=>{let o=ph(t||n[1]),a=s.theme(o,n.$$)??Ee(n.$$,o,s);if(a!=null)return n._=$o(n,0,a),i(n,s,o)}}function kt(t,e={},r){return[t,df(e,r)]}function df(t={},e){return(r,i)=>{let{section:n=ph(r[0]).replace("-","")+"Color"}=t,[s,o]=mf(r.$$);if(!s)return;let a=i.theme(n,s)||Ee(s,n,i);if(!a||typeof a=="object")return;let{opacityVariable:l=`--tw-${r[0].replace(/-$/,"")}-opacity`,opacitySection:h=n.replace("Color","Opacity"),property:c=n,selector:p}=t,f=i.theme(h,o||"DEFAULT")||o&&Ee(o,h,i),u=e||(({_:g})=>{let d=bi(c,g);return p?{[p]:d}:d});r._={value:he(a,{opacityVariable:l||void 0,opacityValue:f||void 0}),color:g=>he(a,g),opacityVariable:l||void 0,opacityValue:f||void 0};let m=u(r,i);if(!r.dark){let g=i.d(n,s,a);g&&g!==a&&(r._={value:he(g,{opacityVariable:l||void 0,opacityValue:f||"1"}),color:d=>he(g,d),opacityVariable:l||void 0,opacityValue:f||void 0},m={"&":m,[i.v("dark")]:u(r,i)})}return m}}function mf(t){return(t.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/)||[]).slice(1)}function bi(t,e){let r={};return typeof e=="string"?r[t]=e:(e.opacityVariable&&e.value.includes(e.opacityVariable)&&(r[e.opacityVariable]=e.opacityValue||"1"),r[t]=e.value),r}function Ee(t,e,r){if(t[0]=="["&&t.slice(-1)=="]"){if(t=Ir(zo(t.slice(1,-1),r.theme)),!e)return t;if(!(/color|fill|stroke/i.test(e)&&!(/^color:/.test(t)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(t))||/image/i.test(e)&&!(/^image:/.test(t)||/^[a-z-]+\(/.test(t))||/weight/i.test(e)&&!(/^(number|any):/.test(t)||/^\d+$/.test(t))||/position/i.test(e)&&/^(length|size):/.test(t)))return t.replace(/^[a-z-]+:/,"")}}function ph(t){return t.replace(/-./g,e=>e[1].toUpperCase())}function Ir(t){return t.includes("url(")?t.replace(/(.*?)(url\(.*?\))(.*?)/g,(e,r="",i,n="")=>Ir(r)+i+Ir(n)):t.replace(/(^|[^\\])_+/g,(e,r)=>r+" ".repeat(e.length-r.length)).replace(/\\_/g,"_").replace(/(calc|min|max|clamp)\(.+\)/g,e=>e.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}function _i({presets:t=[],...e}){let r={darkMode:void 0,darkColor:void 0,preflight:e.preflight!==!1&&[],theme:{},variants:gt(e.variants),rules:gt(e.rules),ignorelist:gt(e.ignorelist),hash:void 0,stringify:(i,n)=>i+":"+n,finalize:[]};for(let i of gt([...t,{darkMode:e.darkMode,darkColor:e.darkColor,preflight:e.preflight!==!1&>(e.preflight),theme:e.theme,hash:e.hash,stringify:e.stringify,finalize:e.finalize}])){let{preflight:n,darkMode:s=r.darkMode,darkColor:o=r.darkColor,theme:a,variants:l,rules:h,ignorelist:c,hash:p=r.hash,stringify:f=r.stringify,finalize:u}=typeof i=="function"?i(r):i;r={preflight:r.preflight!==!1&&n!==!1&&[...r.preflight,...gt(n)],darkMode:s,darkColor:o,theme:{...r.theme,...a,extend:{...r.theme.extend,...a?.extend}},variants:[...r.variants,...gt(l)],rules:[...r.rules,...gt(h)],ignorelist:[...r.ignorelist,...gt(c)],hash:p,stringify:f,finalize:[...r.finalize,...gt(u)]}}return r}function ih(t,e,r,i,n,s){for(let o of e){let a=r.get(o);a||r.set(o,a=i(o));let l=a(t,n,s);if(l)return l}}function gf(t){var e;return Ro(t[0],typeof(e=t[1])=="function"?e:()=>e)}function yf(t){var e,r;return Array.isArray(t)?Ro(t[0],Lo(t[1],t[2])):Ro(t,Lo(e,r))}function Ro(t,e){return uh(t,(r,i,n,s)=>{let o=i.exec(r);if(o)return o.$$=r.slice(o[0].length),o.dark=s,e(o,n)})}function uh(t,e){let r=gt(t).map(vf);return(i,n,s)=>{for(let o of r){let a=e(i,o,n,s);if(a)return a}}}function vf(t){return typeof t=="string"?RegExp("^"+t+(t.includes("$")||t.slice(-1)=="-"?"":"$")):t}function fh(t,e){let r=_i(t),i=function({theme:l,darkMode:h,darkColor:c=In,variants:p,rules:f,hash:u,stringify:m,ignorelist:g,finalize:d}){let y=new Map,v=new Map,b=new Map,_=new Map,x=uh(g,(w,D)=>D.test(w));p.push(["dark",Array.isArray(h)||h=="class"?`${gt(h)[1]||".dark"} &`:typeof h=="string"&&h!="media"?h:"@media (prefers-color-scheme:dark)"]);let M=typeof u=="function"?w=>u(w,Tn):u?Tn:Jl;M!==Jl&&d.push(w=>({...w,n:w.n&&M(w.n),d:w.d?.replace(/--(tw(?:-[\w-]+)?)\b/g,(D,E)=>"--"+M(E).replace("#",""))}));let S={theme:function({extend:w={},...D}){let E={},T={get colors(){return k("colors")},theme:k,negative(){return{}},breakpoints(P){let I={};for(let O in P)typeof P[O]=="string"&&(I["screen-"+O]=P[O]);return I}};return k;function k(P,I,O,F){if(P){if({1:P,2:F}=/^(\S+?)(?:\s*\/\s*([^/]+))?$/.exec(P)||[,P],/[.[]/.test(P)){let z=[];P.replace(/\[([^\]]+)\]|([^.[]+)/g,(H,G,N=G)=>z.push(N)),P=z.shift(),O=I,I=z.join("-")}let L=E[P]||Object.assign(Object.assign(E[P]={},A(D,P)),A(w,P));if(I==null)return L;I||(I="DEFAULT");let R=L[I]??I.split("-").reduce((z,H)=>z?.[H],L)??O;return F?he(R,{opacityValue:zo(F,k)}):R}let C={};for(let L of[...Object.keys(D),...Object.keys(w)])C[L]=k(L);return C}function A(P,I){let O=P[I];return typeof O=="function"&&(O=O(T)),O&&/color|fill|stroke/i.test(I)?function F(C,L=[]){let R={};for(let z in C){let H=C[z],G=[...L,z];R[G.join("-")]=H,z=="DEFAULT"&&(G=L,R[L.join("-")]=H),typeof H=="object"&&Object.assign(R,F(H,G))}return R}(O):O}}(l),e:nh,h:M,s(w,D){return m(w,D,S)},d(w,D,E){return c(w,D,S,E)},v(w){return y.has(w)||y.set(w,ih(w,p,v,gf,S)||"&:"+w),y.get(w)},r(w,D){let E=JSON.stringify([w,D]);return b.has(E)||b.set(E,!x(w,S)&&ih(w,f,_,yf,S,D)),b.get(E)},f(w){return d.reduce((D,E)=>E(D,S),w)}};return S}(r),n=new Map,s=[],o=new Set;e.resume(l=>n.set(l,l),(l,h)=>{e.insert(l,s.length,h),s.push(h),o.add(l)});function a(l){let h=i.f(l),c=Oo(h);if(c&&!o.has(c)){o.add(c);let p=ah(s,l);e.insert(c,p,l),s.splice(p,0,l)}return h.n}return Object.defineProperties(function(h){if(!n.size)for(let p of gt(r.preflight))typeof p=="function"&&(p=p(i)),p&&(typeof p=="string"?No("",Et.b,Fn(p),i,Et.b,[],!1,!0):hh(p,{},i,Et.b)).forEach(a);h=""+h;let c=n.get(h);if(!c){let p=new Set;for(let f of Mn(Fn(h),i))p.add(f.c).add(a(f));c=[...p].filter(Boolean).join(" "),n.set(h,c).set(c,c)}return c},Object.getOwnPropertyDescriptors({get target(){return e.target},theme:i.theme,config:r,snapshot(){let l=e.snapshot(),h=new Set(o),c=new Map(n),p=[...s];return()=>{l(),o=h,n=c,s=p}},clear(){e.clear(),o=new Set,n=new Map,s=[]},destroy(){this.clear(),e.destroy()}}))}function bf(t,e){return t!=e&&""+t.split(" ").sort()!=""+e.split(" ").sort()}function dh(t){let e=new MutationObserver(r);return{observe(n){e.observe(n,{attributeFilter:["class"],subtree:!0,childList:!0}),i(n),r([{target:n,type:""}])},disconnect(){e.disconnect()}};function r(n){for(let{type:s,target:o}of n)if(s[0]=="a")i(o);else for(let a of o.querySelectorAll("[class]"))i(a);e.takeRecords()}function i(n){let s,o=n.getAttribute?.("class");o&&bf(o,s=t(o))&&n.setAttribute("class",s)}}function _f(t){let e=document.querySelector(t||'style[data-twind=""]');return(!e||e.tagName!="STYLE")&&(e=document.createElement("style"),document.head.prepend(e)),e.dataset.twind="claimed",e}function On(t){let e=t?.cssRules?t:(t&&typeof t!="string"?t:_f(t)).sheet;return{target:e,snapshot(){let r=Array.from(e.cssRules,i=>i.cssText);return()=>{this.clear(),r.forEach(this.insert)}},clear(){for(let r=e.cssRules.length;r--;)e.deleteRule(r)},destroy(){e.ownerNode?.remove()},insert(r,i){try{e.insertRule(r,i)}catch{e.insertRule(":root{}",i)}},resume:In}}var xi={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},columns:{auto:"auto","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},spacing:{px:"1px",0:"0px",...te(4,"rem",4,.5,.5),...te(12,"rem",4,5),14:"3.5rem",...te(64,"rem",4,16,4),72:"18rem",80:"20rem",96:"24rem"},durations:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0,0,0.2,1) infinite",pulse:"pulse 2s cubic-bezier(0.4,0,0.6,1) infinite",bounce:"bounce 1s infinite"},aspectRatio:{auto:"auto",square:"1/1",video:"16/9"},backdropBlur:ot("blur"),backdropBrightness:ot("brightness"),backdropContrast:ot("contrast"),backdropGrayscale:ot("grayscale"),backdropHueRotate:ot("hueRotate"),backdropInvert:ot("invert"),backdropOpacity:ot("opacity"),backdropSaturate:ot("saturate"),backdropSepia:ot("sepia"),backgroundColor:ot("colors"),backgroundImage:{none:"none"},backgroundOpacity:ot("opacity"),backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{none:"none",0:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{...te(200,"",100,0,50),...te(110,"",100,90,5),75:"0.75",125:"1.25"},borderColor:({theme:t})=>({DEFAULT:t("colors.gray.200","currentColor"),...t("colors")}),borderOpacity:ot("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem","1/2":"50%",full:"9999px"},borderSpacing:ot("spacing"),borderWidth:{DEFAULT:"1px",...ce(8,"px")},boxShadow:{sm:"0 1px 2px 0 rgba(0,0,0,0.05)",DEFAULT:"0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1)",md:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1)",lg:"0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)",xl:"0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)","2xl":"0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.05)",none:"0 0 #0000"},boxShadowColor:ot("colors"),caretColor:ot("colors"),accentColor:({theme:t})=>({auto:"auto",...t("colors")}),contrast:{...te(200,"",100,0,50),75:"0.75",125:"1.25"},content:{none:"none"},divideColor:ot("borderColor"),divideOpacity:ot("borderOpacity"),divideWidth:ot("borderWidth"),dropShadow:{sm:"0 1px 1px rgba(0,0,0,0.05)",DEFAULT:["0 1px 2px rgba(0,0,0,0.1)","0 1px 1px rgba(0,0,0,0.06)"],md:["0 4px 3px rgba(0,0,0,0.07)","0 2px 2px rgba(0,0,0,0.06)"],lg:["0 10px 8px rgba(0,0,0,0.04)","0 4px 3px rgba(0,0,0,0.1)"],xl:["0 20px 13px rgba(0,0,0,0.03)","0 8px 5px rgba(0,0,0,0.08)"],"2xl":"0 25px 25px rgba(0,0,0,0.15)",none:"0 0 #0000"},fill:({theme:t})=>({...t("colors"),none:"none"}),grayscale:{DEFAULT:"100%",0:"0"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{DEFAULT:"100%",0:"0"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:t})=>({...t("spacing"),...wi(2,6),...wi(12,12),auto:"auto",full:"100%"}),flexGrow:{DEFAULT:1,0:0},flexShrink:{DEFAULT:1,0:0},fontFamily:{sans:'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'.split(","),serif:'ui-serif,Georgia,Cambria,"Times New Roman",Times,serif'.split(","),mono:'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'.split(",")},fontSize:{xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:ot("spacing"),gradientColorStops:ot("colors"),gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridColumn:{auto:"auto","span-full":"1 / -1"},gridRow:{auto:"auto","span-full":"1 / -1"},gridTemplateColumns:{none:"none"},gridTemplateRows:{none:"none"},height:({theme:t})=>({...t("spacing"),...wi(2,6),min:"min-content",max:"max-content",fit:"fit-content",auto:"auto",full:"100%",screen:"100vh"}),inset:({theme:t})=>({...t("spacing"),...wi(2,4),auto:"auto",full:"100%"}),keyframes:{spin:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},ping:{"0%":{transform:"scale(1)",opacity:"1"},"75%,100%":{transform:"scale(2)",opacity:"0"}},pulse:{"0%,100%":{opacity:"1"},"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{...te(10,"rem",4,3),none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},margin:({theme:t})=>({auto:"auto",...t("spacing")}),maxHeight:({theme:t})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh",...t("spacing")}),maxWidth:({theme:t,breakpoints:e})=>({...e(t("screens")),none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch"}),minHeight:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},opacity:{...te(100,"",100,0,10),5:"0.05",25:"0.25",75:"0.75",95:"0.95"},order:{first:"-9999",last:"9999",none:"0"},padding:ot("spacing"),placeholderColor:ot("colors"),placeholderOpacity:ot("opacity"),outlineColor:ot("colors"),outlineOffset:ce(8,"px"),outlineWidth:ce(8,"px"),ringColor:({theme:t})=>({...t("colors"),DEFAULT:"#3b82f6"}),ringOffsetColor:ot("colors"),ringOffsetWidth:ce(8,"px"),ringOpacity:({theme:t})=>({...t("opacity"),DEFAULT:"0.5"}),ringWidth:{DEFAULT:"3px",...ce(8,"px")},rotate:{...ce(2,"deg"),...ce(12,"deg",3),...ce(180,"deg",45)},saturate:te(200,"",100,0,50),scale:{...te(150,"",100,0,50),...te(110,"",100,90,5),75:"0.75",125:"1.25"},scrollMargin:ot("spacing"),scrollPadding:ot("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{...ce(2,"deg"),...ce(12,"deg",3)},space:ot("spacing"),stroke:({theme:t})=>({...t("colors"),none:"none"}),strokeWidth:te(2),textColor:ot("colors"),textDecorationColor:ot("colors"),textDecorationThickness:{"from-font":"from-font",auto:"auto",...ce(8,"px")},textUnderlineOffset:{auto:"auto",...ce(8,"px")},textIndent:ot("spacing"),textOpacity:ot("opacity"),transitionDuration:({theme:t})=>({...t("durations"),DEFAULT:"150ms"}),transitionDelay:ot("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",colors:"color,background-color,border-color,text-decoration-color,fill,stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4,0,0.2,1)",linear:"linear",in:"cubic-bezier(0.4,0,1,1)",out:"cubic-bezier(0,0,0.2,1)","in-out":"cubic-bezier(0.4,0,0.2,1)"},translate:({theme:t})=>({...t("spacing"),...wi(2,4),full:"100%"}),width:({theme:t})=>({min:"min-content",max:"max-content",fit:"fit-content",screen:"100vw",...t("flexBasis")}),willChange:{scroll:"scroll-position"},zIndex:{...te(50,"",1,0,10),auto:"auto"}};function wi(t,e){let r={};do for(var i=1;i<t;i++)r[`${i}/${t}`]=Number((i/t*100).toFixed(6))+"%";while(++t<=e);return r}function ce(t,e,r=0){let i={};for(;r<=t;r=2*r||1)i[r]=r+e;return i}function te(t,e="",r=1,i=0,n=1,s={}){for(;i<=t;i+=n)s[i]=i/r+e;return s}function ot(t){return({theme:e})=>e(t)}var mh={"*,::before,::after":{boxSizing:"border-box",borderWidth:"0",borderStyle:"solid",borderColor:"theme(borderColor.DEFAULT, currentColor)"},"::before,::after":{"--tw-content":"''"},html:{lineHeight:1.5,WebkitTextSizeAdjust:"100%",MozTabSize:"4",tabSize:4,fontFamily:`theme(fontFamily.sans, ${xi.fontFamily.sans})`,fontFeatureSettings:"theme(fontFamily.sans[1].fontFeatureSettings, normal)"},body:{margin:"0",lineHeight:"inherit"},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},"abbr:where([title])":{textDecoration:"underline dotted"},"h1,h2,h3,h4,h5,h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"b,strong":{fontWeight:"bolder"},"code,kbd,samp,pre":{fontFamily:`theme(fontFamily.mono, ${xi.fontFamily.mono})`,fontFeatureSettings:"theme(fontFamily.mono[1].fontFeatureSettings, normal)",fontSize:"1em"},small:{fontSize:"80%"},"sub,sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"button,input,optgroup,select,textarea":{fontFamily:"inherit",fontSize:"100%",lineHeight:"inherit",color:"inherit",margin:"0",padding:"0"},"button,select":{textTransform:"none"},"button,[type='button'],[type='reset'],[type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},":-moz-focusring":{outline:"auto"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button,::-webkit-outer-spin-button":{height:"auto"},"[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre":{margin:"0"},fieldset:{margin:"0",padding:"0"},legend:{padding:"0"},"ol,ul,menu":{listStyle:"none",margin:"0",padding:"0"},textarea:{resize:"vertical"},"input::placeholder,textarea::placeholder":{opacity:1,color:"theme(colors.gray.400, #9ca3af)"},'button,[role="button"]':{cursor:"pointer"},":disabled":{cursor:"default"},"img,svg,video,canvas,audio,iframe,embed,object":{display:"block",verticalAlign:"middle"},"img,video":{maxWidth:"100%",height:"auto"},"[hidden]":{display:"none"}};var wh=[V("\\[([-\\w]+):(.+)]",({1:t,2:e},r)=>({"@layer overrides":{"&":{[t]:Ee(`[${e}]`,"",r)}}})),V("(group|peer)([~/][^-[]+)?",({input:t},{h:e})=>[{c:e(t)}]),B("aspect-","aspectRatio"),V("container",(t,{theme:e})=>{let{screens:r=e("screens"),center:i,padding:n}=e("container"),s={width:"100%",marginRight:i&&"auto",marginLeft:i&&"auto",...o("xs")};for(let a in r){let l=r[a];typeof l=="string"&&(s[Dn(l)]={"&":{maxWidth:l,...o(a)}})}return s;function o(a){let l=n&&(typeof n=="string"?n:n[a]||n.DEFAULT);if(l)return{paddingRight:l,paddingLeft:l}}}),B("content-","content",({_:t})=>({"--tw-content":t,content:"var(--tw-content)"})),V("(?:box-)?decoration-(slice|clone)","boxDecorationBreak"),V("box-(border|content)","boxSizing",({1:t})=>t+"-box"),V("hidden",{display:"none"}),V("table-(auto|fixed)","tableLayout"),V(["(block|flex|table|grid|inline|contents|flow-root|list-item)","(inline-(block|flex|table|grid))","(table-(caption|cell|column|row|(column|row|footer|header)-group))"],"display"),"(float)-(left|right|none)","(clear)-(left|right|none|both)","(overflow(?:-[xy])?)-(auto|hidden|clip|visible|scroll)","(isolation)-(auto)",V("isolate","isolation"),V("object-(contain|cover|fill|none|scale-down)","objectFit"),B("object-","objectPosition"),V("object-(top|bottom|center|(left|right)(-(top|bottom))?)","objectPosition",Ln),V("overscroll(-[xy])?-(auto|contain|none)",({1:t="",2:e})=>({["overscroll-behavior"+t]:e})),V("(static|fixed|absolute|relative|sticky)","position"),B("-?inset(-[xy])?(?:$|-)","inset",({1:t,_:e})=>({top:t!="-x"&&e,right:t!="-y"&&e,bottom:t!="-x"&&e,left:t!="-y"&&e})),B("-?(top|bottom|left|right)(?:$|-)","inset"),V("(visible|collapse)","visibility"),V("invisible",{visibility:"hidden"}),B("-?z-","zIndex"),V("flex-((row|col)(-reverse)?)","flexDirection",gh),V("flex-(wrap|wrap-reverse|nowrap)","flexWrap"),B("(flex-(?:grow|shrink))(?:$|-)"),B("(flex)-"),B("grow(?:$|-)","flexGrow"),B("shrink(?:$|-)","flexShrink"),B("basis-","flexBasis"),B("-?(order)-"),"-?(order)-(\\d+)",B("grid-cols-","gridTemplateColumns"),V("grid-cols-(\\d+)","gridTemplateColumns",_h),B("col-","gridColumn"),V("col-(span)-(\\d+)","gridColumn",bh),B("col-start-","gridColumnStart"),V("col-start-(auto|\\d+)","gridColumnStart"),B("col-end-","gridColumnEnd"),V("col-end-(auto|\\d+)","gridColumnEnd"),B("grid-rows-","gridTemplateRows"),V("grid-rows-(\\d+)","gridTemplateRows",_h),B("row-","gridRow"),V("row-(span)-(\\d+)","gridRow",bh),B("row-start-","gridRowStart"),V("row-start-(auto|\\d+)","gridRowStart"),B("row-end-","gridRowEnd"),V("row-end-(auto|\\d+)","gridRowEnd"),V("grid-flow-((row|col)(-dense)?)","gridAutoFlow",t=>Ln(gh(t))),V("grid-flow-(dense)","gridAutoFlow"),B("auto-cols-","gridAutoColumns"),B("auto-rows-","gridAutoRows"),B("gap-x(?:$|-)","gap","columnGap"),B("gap-y(?:$|-)","gap","rowGap"),B("gap(?:$|-)","gap"),"(justify-(?:items|self))-",V("justify-","justifyContent",yh),V("(content|items|self)-",t=>({["align-"+t[1]]:yh(t)})),V("(place-(content|items|self))-",({1:t,$$:e})=>({[t]:("wun".includes(e[3])?"space-":"")+e})),B("p([xytrbl])?(?:$|-)","padding",Or("padding")),B("-?m([xytrbl])?(?:$|-)","margin",Or("margin")),B("-?space-(x|y)(?:$|-)","space",({1:t,_:e})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${t}-reverse`]:"0",["margin-"+{y:"top",x:"left"}[t]]:`calc(${e} * calc(1 - var(--tw-space-${t}-reverse)))`,["margin-"+{y:"bottom",x:"right"}[t]]:`calc(${e} * var(--tw-space-${t}-reverse))`}})),V("space-(x|y)-reverse",({1:t})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${t}-reverse`]:"1"}})),B("w-","width"),B("min-w-","minWidth"),B("max-w-","maxWidth"),B("h-","height"),B("min-h-","minHeight"),B("max-h-","maxHeight"),B("font-","fontWeight"),B("font-","fontFamily",({_:t})=>typeof(t=gt(t))[1]=="string"?{fontFamily:be(t)}:{fontFamily:be(t[0]),...t[1]}),V("antialiased",{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}),V("subpixel-antialiased",{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"}),V("italic","fontStyle"),V("not-italic",{fontStyle:"normal"}),V("(ordinal|slashed-zero|(normal|lining|oldstyle|proportional|tabular)-nums|(diagonal|stacked)-fractions)",({1:t,2:e="",3:r})=>e=="normal"?{fontVariantNumeric:"normal"}:{["--tw-"+(r?"numeric-fraction":"pt".includes(e[0])?"numeric-spacing":e?"numeric-figure":t)]:t,fontVariantNumeric:"var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)",...Ye({"--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)"})}),B("tracking-","letterSpacing"),B("leading-","lineHeight"),V("list-(inside|outside)","listStylePosition"),B("list-","listStyleType"),V("list-","listStyleType"),B("placeholder-opacity-","placeholderOpacity",({_:t})=>({"&::placeholder":{"--tw-placeholder-opacity":t}})),kt("placeholder-",{property:"color",selector:"&::placeholder"}),V("text-(left|center|right|justify|start|end)","textAlign"),V("text-(ellipsis|clip)","textOverflow"),B("text-opacity-","textOpacity","--tw-text-opacity"),kt("text-",{property:"color"}),B("text-","fontSize",({_:t})=>typeof t=="string"?{fontSize:t}:{fontSize:t[0],...typeof t[1]=="string"?{lineHeight:t[1]}:t[1]}),B("indent-","textIndent"),V("(overline|underline|line-through)","textDecorationLine"),V("no-underline",{textDecorationLine:"none"}),B("underline-offset-","textUnderlineOffset"),kt("decoration-",{section:"textDecorationColor",opacityVariable:!1,opacitySection:"opacity"}),B("decoration-","textDecorationThickness"),V("decoration-","textDecorationStyle"),V("(uppercase|lowercase|capitalize)","textTransform"),V("normal-case",{textTransform:"none"}),V("truncate",{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),V("align-","verticalAlign"),V("whitespace-","whiteSpace"),V("break-normal",{wordBreak:"normal",overflowWrap:"normal"}),V("break-words",{overflowWrap:"break-word"}),V("break-all",{wordBreak:"break-all"}),V("break-keep",{wordBreak:"keep-all"}),kt("caret-",{opacityVariable:!1,opacitySection:"opacity"}),kt("accent-",{opacityVariable:!1,opacitySection:"opacity"}),V("bg-gradient-to-([trbl]|[tb][rl])","backgroundImage",({1:t})=>`linear-gradient(to ${fr(t," ")},var(--tw-gradient-stops))`),kt("from-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:t})=>({"--tw-gradient-from":t.value,"--tw-gradient-to":t.color({opacityValue:"0"}),"--tw-gradient-stops":"var(--tw-gradient-from),var(--tw-gradient-to)"})),kt("via-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:t})=>({"--tw-gradient-to":t.color({opacityValue:"0"}),"--tw-gradient-stops":`var(--tw-gradient-from),${t.value},var(--tw-gradient-to)`})),kt("to-",{section:"gradientColorStops",property:"--tw-gradient-to",opacityVariable:!1,opacitySection:"opacity"}),V("bg-(fixed|local|scroll)","backgroundAttachment"),V("bg-origin-(border|padding|content)","backgroundOrigin",({1:t})=>t+"-box"),V(["bg-(no-repeat|repeat(-[xy])?)","bg-repeat-(round|space)"],"backgroundRepeat"),V("bg-blend-","backgroundBlendMode"),V("bg-clip-(border|padding|content|text)","backgroundClip",({1:t})=>t+(t=="text"?"":"-box")),B("bg-opacity-","backgroundOpacity","--tw-bg-opacity"),kt("bg-",{section:"backgroundColor"}),B("bg-","backgroundImage"),B("bg-","backgroundPosition"),V("bg-(top|bottom|center|(left|right)(-(top|bottom))?)","backgroundPosition",Ln),B("bg-","backgroundSize"),B("rounded(?:$|-)","borderRadius"),B("rounded-([trbl]|[tb][rl])(?:$|-)","borderRadius",({1:t,_:e})=>{let r={t:["tl","tr"],r:["tr","br"],b:["bl","br"],l:["bl","tl"]}[t]||[t,t];return{[`border-${fr(r[0])}-radius`]:e,[`border-${fr(r[1])}-radius`]:e}}),V("border-(collapse|separate)","borderCollapse"),B("border-opacity(?:$|-)","borderOpacity","--tw-border-opacity"),V("border-(solid|dashed|dotted|double|none)","borderStyle"),B("border-spacing(-[xy])?(?:$|-)","borderSpacing",({1:t,_:e})=>({...Ye({"--tw-border-spacing-x":"0","--tw-border-spacing-y":"0"}),["--tw-border-spacing"+(t||"-x")]:e,["--tw-border-spacing"+(t||"-y")]:e,"border-spacing":"var(--tw-border-spacing-x) var(--tw-border-spacing-y)"})),kt("border-([xytrbl])-",{section:"borderColor"},Or("border","Color")),kt("border-"),B("border-([xytrbl])(?:$|-)","borderWidth",Or("border","Width")),B("border(?:$|-)","borderWidth"),B("divide-opacity(?:$|-)","divideOpacity",({_:t})=>({"&>:not([hidden])~:not([hidden])":{"--tw-divide-opacity":t}})),V("divide-(solid|dashed|dotted|double|none)",({1:t})=>({"&>:not([hidden])~:not([hidden])":{borderStyle:t}})),V("divide-([xy]-reverse)",({1:t})=>({"&>:not([hidden])~:not([hidden])":{["--tw-divide-"+t]:"1"}})),B("divide-([xy])(?:$|-)","divideWidth",({1:t,_:e})=>{let r={x:"lr",y:"tb"}[t];return{"&>:not([hidden])~:not([hidden])":{[`--tw-divide-${t}-reverse`]:"0",[`border-${fr(r[0])}Width`]:`calc(${e} * calc(1 - var(--tw-divide-${t}-reverse)))`,[`border-${fr(r[1])}Width`]:`calc(${e} * var(--tw-divide-${t}-reverse))`}}}),kt("divide-",{property:"borderColor",selector:"&>:not([hidden])~:not([hidden])"}),B("ring-opacity(?:$|-)","ringOpacity","--tw-ring-opacity"),kt("ring-offset-",{property:"--tw-ring-offset-color",opacityVariable:!1}),B("ring-offset(?:$|-)","ringOffsetWidth","--tw-ring-offset-width"),V("ring-inset",{"--tw-ring-inset":"inset"}),kt("ring-",{property:"--tw-ring-color"}),B("ring(?:$|-)","ringWidth",({_:t},{theme:e})=>({...Ye({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","&":{"--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":e("ringOffsetWidth","","0px"),"--tw-ring-offset-color":he(e("ringOffsetColor","","#fff")),"--tw-ring-color":he(e("ringColor","","#93c5fd"),{opacityVariable:"--tw-ring-opacity"}),"--tw-ring-opacity":e("ringOpacity","","0.5")}}),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":`var(--tw-ring-inset) 0 0 0 calc(${t} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),kt("shadow-",{section:"boxShadowColor",opacityVariable:!1,opacitySection:"opacity"},({_:t})=>({"--tw-shadow-color":t.value,"--tw-shadow":"var(--tw-shadow-colored)"})),B("shadow(?:$|-)","boxShadow",({_:t})=>({...Ye({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000"}),"--tw-shadow":be(t),"--tw-shadow-colored":be(t).replace(/([^,]\s+)(?:#[a-f\d]+|(?:(?:hsl|rgb)a?|hwb|lab|lch|color|var)\(.+?\)|[a-z]+)(,|$)/g,"$1var(--tw-shadow-color)$2"),boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),B("(opacity)-"),V("mix-blend-","mixBlendMode"),...vh(),...vh("backdrop-"),B("transition(?:$|-)","transitionProperty",(t,{theme:e})=>({transitionProperty:be(t),transitionTimingFunction:t._=="none"?void 0:be(e("transitionTimingFunction","")),transitionDuration:t._=="none"?void 0:be(e("transitionDuration",""))})),B("duration(?:$|-)","transitionDuration","transitionDuration",be),B("ease(?:$|-)","transitionTimingFunction","transitionTimingFunction",be),B("delay(?:$|-)","transitionDelay","transitionDelay",be),B("animate(?:$|-)","animation",(t,{theme:e,h:r,e:i})=>{let n=be(t),s=n.split(" "),o=e("keyframes",s[0]);return o?{["@keyframes "+(s[0]=i(r(s[0])))]:o,animation:s.join(" ")}:{animation:n}}),"(transform)-(none)",V("transform",Go),V("transform-(cpu|gpu)",({1:t})=>({"--tw-transform":xh(t=="gpu")})),B("scale(-[xy])?-","scale",({1:t,_:e})=>({["--tw-scale"+(t||"-x")]:e,["--tw-scale"+(t||"-y")]:e,...Go()})),B("-?(rotate)-","rotate",jo),B("-?(translate-[xy])-","translate",jo),B("-?(skew-[xy])-","skew",jo),V("origin-(center|((top|bottom)(-(left|right))?)|left|right)","transformOrigin",Ln),"(appearance)-",B("(columns)-"),"(columns)-(\\d+)","(break-(?:before|after|inside))-",B("(cursor)-"),"(cursor)-",V("snap-(none)","scroll-snap-type"),V("snap-(x|y|both)",({1:t})=>({...Ye({"--tw-scroll-snap-strictness":"proximity"}),"scroll-snap-type":t+" var(--tw-scroll-snap-strictness)"})),V("snap-(mandatory|proximity)","--tw-scroll-snap-strictness"),V("snap-(?:(start|end|center)|align-(none))","scroll-snap-align"),V("snap-(normal|always)","scroll-snap-stop"),V("scroll-(auto|smooth)","scroll-behavior"),B("scroll-p([xytrbl])?(?:$|-)","padding",Or("scroll-padding")),B("-?scroll-m([xytrbl])?(?:$|-)","scroll-margin",Or("scroll-margin")),V("touch-(auto|none|manipulation)","touch-action"),V("touch-(pinch-zoom|pan-(?:(x|left|right)|(y|up|down)))",({1:t,2:e,3:r})=>({...Ye({"--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-touch-action":"var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)"}),[`--tw-${e?"pan-x":r?"pan-y":t}`]:t,"touch-action":"var(--tw-touch-action)"})),V("outline-none",{outline:"2px solid transparent","outline-offset":"2px"}),V("outline",{outlineStyle:"solid"}),V("outline-(dashed|dotted|double)","outlineStyle"),B("-?(outline-offset)-"),kt("outline-",{opacityVariable:!1,opacitySection:"opacity"}),B("outline-","outlineWidth"),"(pointer-events)-",B("(will-change)-"),"(will-change)-",["resize(?:-(none|x|y))?","resize",({1:t})=>({x:"horizontal",y:"vertical"})[t]||t||"both"],V("select-(none|text|all|auto)","userSelect"),kt("fill-",{section:"fill",opacityVariable:!1,opacitySection:"opacity"}),kt("stroke-",{section:"stroke",opacityVariable:!1,opacitySection:"opacity"}),B("stroke-","strokeWidth"),V("sr-only",{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"}),V("not-sr-only",{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"})];function Ln(t){return(typeof t=="string"?t:t[1]).replace(/-/g," ").trim()}function gh(t){return(typeof t=="string"?t:t[1]).replace("col","column")}function fr(t,e="-"){let r=[];for(let i of t)r.push({t:"top",r:"right",b:"bottom",l:"left"}[i]);return r.join(e)}function be(t){return t&&""+(t._||t)}function yh({$$:t}){return({r:"flex-","":"flex-",w:"space-",u:"space-",n:"space-"}[t[3]||""]||"")+t}function Or(t,e=""){return({1:r,_:i})=>{let n={x:"lr",y:"tb"}[r]||r+r;return n?{...bi(t+"-"+fr(n[0])+e,i),...bi(t+"-"+fr(n[1])+e,i)}:bi(t+e,i)}}function vh(t=""){let e=["blur","brightness","contrast","grayscale","hue-rotate","invert",t&&"opacity","saturate","sepia",!t&&"drop-shadow"].filter(Boolean),r={};for(let i of e)r[`--tw-${t}${i}`]="var(--tw-empty,/*!*/ /*!*/)";return r={...Ye(r),[`${t}filter`]:e.map(i=>`var(--tw-${t}${i})`).join(" ")},[`(${t}filter)-(none)`,V(`${t}filter`,r),...e.map(i=>B(`${i[0]=="h"?"-?":""}(${t}${i})(?:$|-)`,i,({1:n,_:s})=>({[`--tw-${n}`]:gt(s).map(o=>`${i}(${o})`).join(" "),...r})))]}function jo({1:t,_:e}){return{["--tw-"+t]:e,...Go()}}function Go(){return{...Ye({"--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-transform":xh()}),transform:"var(--tw-transform)"}}function xh(t){return[t?"translate3d(var(--tw-translate-x),var(--tw-translate-y),0)":"translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y))","rotate(var(--tw-rotate))","skewX(var(--tw-skew-x))","skewY(var(--tw-skew-y))","scaleX(var(--tw-scale-x))","scaleY(var(--tw-scale-y))"].join(" ")}function bh({1:t,2:e}){return`${t} ${e} / ${t} ${e}`}function _h({1:t}){return`repeat(${t},minmax(0,1fr))`}function Ye(t){return{"@layer defaults":{"*,::before,::after":t,"::backdrop":t}}}var Sh=[["sticky","@supports ((position: -webkit-sticky) or (position:sticky))"],["motion-reduce","@media (prefers-reduced-motion:reduce)"],["motion-safe","@media (prefers-reduced-motion:no-preference)"],["print","@media print"],["(portrait|landscape)",({1:t})=>`@media (orientation:${t})`],["contrast-(more|less)",({1:t})=>`@media (prefers-contrast:${t})`],["(first-(letter|line)|placeholder|backdrop|before|after)",({1:t})=>`&::${t}`],["(marker|selection)",({1:t})=>`& *::${t},&::${t}`],["file","&::file-selector-button"],["(first|last|only)",({1:t})=>`&:${t}-child`],["even","&:nth-child(2n)"],["odd","&:nth-child(odd)"],["open","&[open]"],["(aria|data)-",({1:t,$$:e},r)=>e&&`&[${t}-${r.theme(t,e)||Ee(e,"",r)||`${e}="true"`}]`],["((group|peer)(~[^-[]+)?)(-\\[(.+)]|[-[].+?)(\\/.+)?",({2:t,3:e="",4:r,5:i="",6:n=e},{e:s,h:o,v:a})=>{let l=Ir(i)||(r[0]=="["?r:a(r.slice(1)));return`${(l.includes("&")?l:"&"+l).replace(/&/g,`:merge(.${s(o(t+n))})`)}${t[0]=="p"?"~":" "}&`}],["(ltr|rtl)",({1:t})=>`[dir="${t}"] &`],["supports-",({$$:t},e)=>{if(t&&(t=e.theme("supports",t)||Ee(t,"",e)),t)return t.includes(":")||(t+=":var(--tw)"),/^\w*\s*\(/.test(t)||(t=`(${t})`),`@supports ${t.replace(/\b(and|or|not)\b/g," $1 ").trim()}`}],["max-",({$$:t},e)=>{if(t&&(t=e.theme("screens",t)||Ee(t,"",e)),typeof t=="string")return`@media not all and (min-width:${t})`}],["min-",({$$:t},e)=>(t&&(t=Ee(t,"",e)),t&&`@media (min-width:${t})`)],[/^\[(.+)]$/,({1:t})=>/[&@]/.test(t)&&Ir(t).replace(/[}]+$/,"").split("{")]];function Eh({colors:t,disablePreflight:e}={}){return{preflight:e?void 0:mh,theme:{...xi,colors:{inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",...t}},variants:Sh,rules:wh,finalize(r){return r.n&&r.d&&r.r.some(i=>/^&::(before|after)$/.test(i))&&!/(^|;)content:/.test(r.d)?{...r,d:"content:var(--tw-content);"+r.d}:r}}}var wf={50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"},xf={50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},Sf={50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},Ef={50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},kf={50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},Pf={50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},Af={50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},Cf={50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},Tf={50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},Mf={50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},Ff={50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},Df={50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},If={50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},Of={50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},Lf={50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},$f={50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},Rf={50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},Vf={50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},Bf={50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},zf={50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},Nf={50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},Hf={50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"},kh={__proto__:null,slate:wf,gray:xf,zinc:Sf,neutral:Ef,stone:kf,red:Pf,orange:Af,amber:Cf,yellow:Tf,lime:Mf,green:Ff,emerald:Df,teal:If,cyan:Of,sky:Lf,blue:$f,indigo:Rf,violet:Vf,purple:Bf,fuchsia:zf,pink:Nf,rose:Hf};function $n({disablePreflight:t}={}){return Eh({colors:kh,disablePreflight:t})}var jf=new Map([["align-self","-ms-grid-row-align"],["color-adjust","-webkit-print-color-adjust"],["column-gap","grid-column-gap"],["forced-color-adjust","-ms-high-contrast-adjust"],["gap","grid-gap"],["grid-template-columns","-ms-grid-columns"],["grid-template-rows","-ms-grid-rows"],["justify-self","-ms-grid-column-align"],["margin-inline-end","-webkit-margin-end"],["margin-inline-start","-webkit-margin-start"],["mask-border","-webkit-mask-box-image"],["mask-border-outset","-webkit-mask-box-image-outset"],["mask-border-slice","-webkit-mask-box-image-slice"],["mask-border-source","-webkit-mask-box-image-source"],["mask-border-repeat","-webkit-mask-box-image-repeat"],["mask-border-width","-webkit-mask-box-image-width"],["overflow-wrap","word-wrap"],["padding-inline-end","-webkit-padding-end"],["padding-inline-start","-webkit-padding-start"],["print-color-adjust","color-adjust"],["row-gap","grid-row-gap"],["scroll-margin-bottom","scroll-snap-margin-bottom"],["scroll-margin-left","scroll-snap-margin-left"],["scroll-margin-right","scroll-snap-margin-right"],["scroll-margin-top","scroll-snap-margin-top"],["scroll-margin","scroll-snap-margin"],["text-combine-upright","-ms-text-combine-horizontal"]]);function Ph(t){return jf.get(t)}function Ah(t){var e=/^(?:(text-(?:decoration$|e|or|si)|back(?:ground-cl|d|f)|box-d|mask(?:$|-[ispro]|-cl)|pr|hyphena|flex-d)|(tab-|column(?!-s)|text-align-l)|(ap)|u|hy)/i.exec(t);return e?e[1]?1:e[2]?2:e[3]?3:5:0}function Ch(t,e){var r=/^(?:(pos)|(cli)|(background-i)|(flex(?:$|-b)|(?:max-|min-)?(?:block-s|inl|he|widt))|dis)/i.exec(t);return r?r[1]?/^sti/i.test(e)?1:0:r[2]?/^pat/i.test(e)?1:0:r[3]?/^image-/i.test(e)?1:0:r[4]?e[3]==="-"?2:0:/^(?:inline-)?grid$/i.test(e)?4:0:0}var Gf=[["-webkit-",1],["-moz-",2],["-ms-",4]];function Rn(){return({stringify:t})=>({stringify(e,r,i){let n="",s=Ph(e);s&&(n+=t(s,r,i)+";");let o=Ah(e),a=Ch(e,r);for(let l of Gf)o&l[1]&&(n+=t(l[0]+e,r,i)+";"),a&l[1]&&(n+=t(e,l[0]+r,i)+";");return n+t(e,r,i)}})}function Vn(){return{rules:[["line-clamp-none",{"-webkit-line-clamp":"unset"}],["line-clamp-",Ho("lineClamp",({_:t})=>Th(t))],["line-clamp-(\\d+)",({1:t})=>Th(t)]]}}function Th(t){return{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":`${t}`}}function Bn({className:t="prose",defaultColor:e="gray",extend:r={},colors:i={}}={}){return i={body:"700",headings:"900",lead:"600",links:"900",bold:"900",counters:"500",bullets:"300",hr:"200",quotes:"900","quote-borders":"200",captions:"500",code:"900","pre-code":"200","pre-bg":"800","th-borders":"300","td-borders":"200",...i,dark:i.dark===null?null:{body:"300",headings:"#fff",lead:"400",links:"#fff",bold:"#fff",counters:"400",bullets:"600",hr:"700",quotes:"100","quote-borders":"700",captions:"400",code:"#fff","pre-code":"300","pre-bg":"rgb(0 0 0 / 50%)","th-borders":"600","td-borders":"700",...i.dark}},{variants:[["headings","h1,h2,h3,h4,h5,h6,th"],["h1"],["h2"],["h3"],["h4"],["h5"],["h6"],["p"],["a"],["blockquote"],["figure"],["figcaption"],["strong"],["em"],["code"],["pre"],["ol"],["ul"],["li"],["table"],["thead"],["tr"],["th"],["td"],["img"],["video"],["hr"],["lead",".lead"]].map(([s,o=s])=>[`${t}-${s}`,(a,l)=>Dh(t,o[0]=="."?"."+l.e(l.h(o.slice(1))):o,l,h=>`& :is(${h.trim()})`)]),rules:[[`(lead|not-${t})`,({1:s},{h:o})=>[{c:o(s)}]],[`${t}-invert`,{"@layer base":{"--tw-prose-body":"var(--tw-prose-invert-body)","--tw-prose-headings":"var(--tw-prose-invert-headings)","--tw-prose-lead":"var(--tw-prose-invert-lead)","--tw-prose-links":"var(--tw-prose-invert-links)","--tw-prose-bold":"var(--tw-prose-invert-bold)","--tw-prose-counters":"var(--tw-prose-invert-counters)","--tw-prose-bullets":"var(--tw-prose-invert-bullets)","--tw-prose-hr":"var(--tw-prose-invert-hr)","--tw-prose-quotes":"var(--tw-prose-invert-quotes)","--tw-prose-quote-borders":"var(--tw-prose-invert-quote-borders)","--tw-prose-captions":"var(--tw-prose-invert-captions)","--tw-prose-code":"var(--tw-prose-invert-code)","--tw-prose-pre-code":"var(--tw-prose-invert-pre-code)","--tw-prose-pre-bg":"var(--tw-prose-invert-pre-bg)","--tw-prose-th-borders":"var(--tw-prose-invert-th-borders)","--tw-prose-td-borders":"var(--tw-prose-invert-td-borders)"}}],[t+"-",({$$:s},o)=>{let a=Fh(o.theme("fontSize",s));return a&&{"@layer components":a}}],[t+"-",({$$:s},o)=>n(s,o)],[t,(s,o)=>({...n(e,o),"@layer base":[Mh(t,o,{a:{color:"var(--tw-prose-links)",textDecorationLine:"underline",fontWeight:"500"},strong:{color:"var(--tw-prose-bold)",fontWeight:"600"},"a strong,blockquote strong,thead th strong":{color:"inherit"},ul:{listStyleType:"disc"},ol:{listStyleType:"decimal"},'ol[type="A"]':{listStyleType:"upper-alpha"},'ol[type="a"]':{listStyleType:"lower-alpha"},'ol[type="A" s]':{listStyleType:"upper-alpha"},'ol[type="a" s]':{listStyleType:"lower-alpha"},'ol[type="I"]':{listStyleType:"upper-roman"},'ol[type="i"]':{listStyleType:"lower-roman"},'ol[type="I" s]':{listStyleType:"upper-roman"},'ol[type="i" s]':{listStyleType:"lower-roman"},'ol[type="1"]':{listStyleType:"decimal"},"ol,ul":{marginTop:U(20,16),marginBottom:U(20,16),paddingLeft:U(26,16)},li:{marginTop:U(8,16),marginBottom:U(8,16)},"ol>li,ul>li":{paddingLeft:U(6,16)},">ul>li p":{marginTop:U(12,16),marginBottom:U(12,16)},">ul>li>*:first-child,>ol>li>*:last-child":{marginTop:U(20,16)},">ul>li>*:last-child,>ol>li>*:last-child":{marginBottom:U(20,16)},"ol>li::marker":{fontWeight:"400",color:"var(--tw-prose-counters)"},"ul>li::marker":{color:"var(--tw-prose-bullets)"},"ul ul,ul ol,ol ul,ol ol":{marginTop:U(12,16),marginBottom:U(12,16)},hr:{borderColor:"var(--tw-prose-hr)",borderTopWidth:"1",marginTop:U(48,16),marginBottom:U(48,16)},blockquote:{marginTop:U(32,20),marginBottom:U(32,20),paddingLeft:U(20,20),fontWeight:"500",fontStyle:"italic",color:"var(--tw-prose-quotes)",borderLeftWidth:"0.25rem",borderLeftColor:"var(--tw-prose-quote-borders)",quotes:'"\\201C""\\201D""\\2018""\\2019"'},"blockquote p:first-of-type::before":{content:"open-quote"},"blockquote p:last-of-type::after":{content:"close-quote"},p:{marginTop:U(20,16),marginBottom:U(20,16)},h1:{color:"var(--tw-prose-headings)",fontWeight:"800",fontSize:U(36,16),marginTop:"0",marginBottom:U(32,36),lineHeight:1.15},"h1 strong":{fontWeight:"900",color:"inherit"},h2:{color:"var(--tw-prose-headings)",fontWeight:"700",fontSize:U(24,16),marginTop:U(48,24),marginBottom:U(24,24),lineHeight:"1.35"},"h2 strong":{fontWeight:"800",color:"inherit"},h3:{color:"var(--tw-prose-headings)",fontWeight:"600",fontSize:U(20,16),marginTop:U(32,20),marginBottom:U(12,20),lineHeight:"1.6"},"h3 strong":{fontWeight:"700",color:"inherit"},h4:{color:"var(--tw-prose-headings)",fontWeight:"600",marginTop:U(24,16),marginBottom:U(8,16),lineHeight:"1.5"},"h4 strong":{fontWeight:"700",color:"inherit"},"hr+*,h2+*,h3+*,h4+*":{marginTop:"0"},"img,video,figure":{marginTop:U(32,16),marginBottom:U(32,16)},"figure>*":{marginTop:"0",marginBottom:"0"},figcaption:{color:"var(--tw-prose-captions)",fontSize:U(14,16),lineHeight:"1.4",marginTop:U(12,14)},code:{color:"var(--tw-prose-code)",fontWeight:"600",fontSize:U(14,16)},"code::before,code::after":{content:'"`"'},"h2 code":{fontSize:U(21,24)},"h3 code":{fontSize:U(18,20)},"a code,h1 code,h2 code,h3 code,h4 code,blockquote code,thead th code":{color:"inherit"},pre:{color:"var(--tw-prose-pre-code)",backgroundColor:"var(--tw-prose-pre-bg)",overflowX:"auto",fontWeight:"400",fontSize:U(14,16),lineHeight:"1.7",marginTop:U(24,14),marginBottom:U(24,14),borderRadius:"0.375rem",paddingTop:U(12,14),paddingRight:U(16,14),paddingBottom:U(12,14),paddingLeft:U(16,14)},"pre code":{backgroundColor:"transparent",borderWidth:"0",borderRadius:"0",padding:"0",fontWeight:"inherit",color:"inherit",fontSize:"inherit",fontFamily:"inherit",lineHeight:"inherit"},"pre code::before":{content:"none"},"pre code::after":{content:"none"},table:{width:"100%",tableLayout:"auto",textAlign:"left",marginTop:U(32,16),marginBottom:U(32,16),fontSize:U(14,16),lineHeight:"1.7"},thead:{borderBottomWidth:"1px",borderBottomColor:"var(--tw-prose-th-borders)"},"thead th":{color:"var(--tw-prose-headings)",fontWeight:"600",verticalAlign:"bottom",paddingRight:U(8,14),paddingBottom:U(8,14),paddingLeft:U(8,14)},"thead th:first-child":{paddingLeft:"0"},"thead th:last-child":{paddingRight:"0"},"tbody tr":{borderBottomWidth:"1px",borderBottomColor:"var(--tw-prose-td-borders)"},"tbody tr:last-child":{borderBottomWidth:"0"},"tbody td,tfoot td":{verticalAlign:"baseline",paddingTop:U(8,14),paddingRight:U(8,14),paddingBottom:U(8,14),paddingLeft:U(8,14)},"tbody td:first-child,tfoot td:first-child":{paddingLeft:"0"},"tbody td:last-child,tfoot td:last-child":{paddingRight:"0"},[`.${o.e(o.h("lead"))}`]:{color:"var(--tw-prose-lead)",fontSize:U(20,16),lineHeight:"1.6",marginTop:U(24,20),marginBottom:U(24,20)},">:first-child":{marginTop:"0"},">:last-child":{marginBottom:"0"}}),Mh(t,o,r)],"@layer components":{...Fh(o.theme("fontSize","base")),color:"var(--tw-prose-body)",maxWidth:"theme(max-w.prose, 65ch)"}})]]};function n(s,o){let a={},l={},h=(c,p,f)=>{let u=o.theme(`colors.${s}.${p}`,p);f["--tw-prose-"+c]=he(u);let m=f!=l&&o.d("colors",`${s}-${p}`,u);m&&(l["--tw-prose-"+c]=he(m))};for(let c in i){let p=i[c];c!="dark"&&p&&h(c,p,a)}for(let c in i.dark||{}){let p=i.dark[c];p&&(i.dark?h("invert-"+c,p,a):h(c,p,l))}return Object.keys(a).length?{"@layer defaults":{"&":a,[o.v("dark")]:l}}:void 0}}function Mh(t,e,r){let i={};for(let n in r)i[Dh(t,n,e,s=>`.${e.e(e.h(t))}${s}`)]=r[n];return i}function Dh(t,e,{e:r,h:i},n){return e.replace(/^[^>:]+$|(>)?((?:[^:,]+(?::[\w-]+)?)|:[\w-]+)(::[\w-]+)?/g,(s,o=" ",a=s,l="")=>n(`${o}:where(${a}):not(:where(.${r(i("not-"+t))} *))${l}`))}function Fh(t){return t?typeof t=="string"?{fontSize:t}:{fontSize:t[0],...typeof t[1]=="string"?{lineHeight:t[1]}:t[1]}:void 0}function U(t,e){return`${(t/e).toFixed(3).replace(/^0|\.?0+$/g,"")}em`}var qo=_i({darkMode:["class"],theme:{extend:{fontFamily:{sans:["InterVariable","sans-serif"],serif:["Roboto SlabVariable","serif"],mono:["Roboto MonoVariable","monospace"]}}},presets:[$n(),Rn(),Vn(),Bn()],hash:!1});function zn(t,e=!0){let r=function(){if(qf)try{let l=On(new CSSStyleSheet);return l.connect=h=>{let c=Uo(h);c.adoptedStyleSheets=[...c.adoptedStyleSheets,l.target]},l.disconnect=In,l}catch{}let s=document.createElement("style");s.media="not all",document.head.prepend(s);let o=[On(s)],a=new WeakMap;return{get target(){return o[0].target},snapshot(){let l=o.map(h=>h.snapshot());return()=>l.forEach(h=>h())},clear(){o.forEach(l=>l.clear())},destroy(){o.forEach(l=>l.destroy())},insert(l,h,c){o[0].insert(l,h,c);let p=this.target.cssRules[h];o.forEach((f,u)=>u&&f.target.insertRule(p.cssText,h))},resume(l,h){return o[0].resume(l,h)},connect(l){let h=document.createElement("style");Uo(l).appendChild(h);let c=On(h),{cssRules:p}=this.target;for(let f=0;f<p.length;f++)c.target.insertRule(p[f].cssText,f);o.push(c),a.set(l,c)},disconnect(l){let h=o.indexOf(a.get(l));h>=0&&o.splice(h,1)}}}(),i=fh({...t,hash:t.hash??e},r),n=dh(i);return function(o){return class extends o{connectedCallback(){super.connectedCallback?.(),r.connect(this),n.observe(Uo(this))}disconnectedCallback(){r.disconnect(this),super.disconnectedCallback?.()}constructor(...l){super(...l),this.tw=i}}}}var qf=typeof ShadowRoot<"u"&&(typeof ShadyCSS>"u"||ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;function Uo(t){return t.shadowRoot||t.attachShadow({mode:"open"})}var Dt=t=>zn(qo)(t);var Hn,Ih,Nn=class extends Dt(lt){constructor(){super();q(this,Hn);this.color="sky-500",this.animated=!1,this.position="top-right"}render(){return Q`
|
|
1
|
+
var of=Object.defineProperty;var af=(t,e,r)=>e in t?of(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var X=(t,e,r)=>(af(t,typeof e!="symbol"?e+"":e,r),r),_o=(t,e,r)=>{if(!e.has(t))throw TypeError("Cannot "+r)};var $=(t,e,r)=>(_o(t,e,"read from private field"),r?r.call(t):e.get(t)),q=(t,e,r)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,r)},ft=(t,e,r,i)=>(_o(t,e,"write to private field"),i?i.call(t,r):e.set(t,r),r);var nt=(t,e,r)=>(_o(t,e,"access private method"),r);var bn=window,_n=bn.ShadowRoot&&(bn.ShadyCSS===void 0||bn.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,wo=Symbol(),Ll=new WeakMap,mi=class{constructor(e,r,i){if(this._$cssResult$=!0,i!==wo)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o,r=this.t;if(_n&&e===void 0){let i=r!==void 0&&r.length===1;i&&(e=Ll.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&Ll.set(r,e))}return e}toString(){return this.cssText}},Ol=t=>new mi(typeof t=="string"?t:t+"",void 0,wo),$t=(t,...e)=>{let r=t.length===1?t[0]:e.reduce((i,n,s)=>i+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+t[s+1],t[0]);return new mi(r,t,wo)},xo=(t,e)=>{_n?t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):e.forEach(r=>{let i=document.createElement("style"),n=bn.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,t.appendChild(i)})},wn=_n?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let i of e.cssRules)r+=i.cssText;return Ol(r)})(t):t;var So,xn=window,$l=xn.trustedTypes,lf=$l?$l.emptyScript:"",Vl=xn.reactiveElementPolyfillSupport,ko={toAttribute(t,e){switch(e){case Boolean:t=t?lf:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},Rl=(t,e)=>e!==t&&(e==e||t==t),Eo={attribute:!0,type:String,converter:ko,reflect:!1,hasChanged:Rl},Ve=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(e){var r;this.finalize(),((r=this.h)!==null&&r!==void 0?r:this.h=[]).push(e)}static get observedAttributes(){this.finalize();let e=[];return this.elementProperties.forEach((r,i)=>{let n=this._$Ep(i,r);n!==void 0&&(this._$Ev.set(n,i),e.push(n))}),e}static createProperty(e,r=Eo){if(r.state&&(r.attribute=!1),this.finalize(),this.elementProperties.set(e,r),!r.noAccessor&&!this.prototype.hasOwnProperty(e)){let i=typeof e=="symbol"?Symbol():"__"+e,n=this.getPropertyDescriptor(e,i,r);n!==void 0&&Object.defineProperty(this.prototype,e,n)}}static getPropertyDescriptor(e,r,i){return{get(){return this[r]},set(n){let s=this[e];this[r]=n,this.requestUpdate(e,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||Eo}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;let e=Object.getPrototypeOf(this);if(e.finalize(),e.h!==void 0&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){let r=this.properties,i=[...Object.getOwnPropertyNames(r),...Object.getOwnPropertySymbols(r)];for(let n of i)this.createProperty(n,r[n])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){let r=[];if(Array.isArray(e)){let i=new Set(e.flat(1/0).reverse());for(let n of i)r.unshift(wn(n))}else e!==void 0&&r.push(wn(e));return r}static _$Ep(e,r){let i=r.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}u(){var e;this._$E_=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(r=>r(this))}addController(e){var r,i;((r=this._$ES)!==null&&r!==void 0?r:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((i=e.hostConnected)===null||i===void 0||i.call(e))}removeController(e){var r;(r=this._$ES)===null||r===void 0||r.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,r)=>{this.hasOwnProperty(r)&&(this._$Ei.set(r,this[r]),delete this[r])})}createRenderRoot(){var e;let r=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return xo(r,this.constructor.elementStyles),r}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(r=>{var i;return(i=r.hostConnected)===null||i===void 0?void 0:i.call(r)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(r=>{var i;return(i=r.hostDisconnected)===null||i===void 0?void 0:i.call(r)})}attributeChangedCallback(e,r,i){this._$AK(e,i)}_$EO(e,r,i=Eo){var n;let s=this.constructor._$Ep(e,i);if(s!==void 0&&i.reflect===!0){let o=(((n=i.converter)===null||n===void 0?void 0:n.toAttribute)!==void 0?i.converter:ko).toAttribute(r,i.type);this._$El=e,o==null?this.removeAttribute(s):this.setAttribute(s,o),this._$El=null}}_$AK(e,r){var i;let n=this.constructor,s=n._$Ev.get(e);if(s!==void 0&&this._$El!==s){let o=n.getPropertyOptions(s),a=typeof o.converter=="function"?{fromAttribute:o.converter}:((i=o.converter)===null||i===void 0?void 0:i.fromAttribute)!==void 0?o.converter:ko;this._$El=s,this[s]=a.fromAttribute(r,o.type),this._$El=null}}requestUpdate(e,r,i){let n=!0;e!==void 0&&(((i=i||this.constructor.getPropertyOptions(e)).hasChanged||Rl)(this[e],r)?(this._$AL.has(e)||this._$AL.set(e,r),i.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,i))):n=!1),!this.isUpdatePending&&n&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(r){Promise.reject(r)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((n,s)=>this[s]=n),this._$Ei=void 0);let r=!1,i=this._$AL;try{r=this.shouldUpdate(i),r?(this.willUpdate(i),(e=this._$ES)===null||e===void 0||e.forEach(n=>{var s;return(s=n.hostUpdate)===null||s===void 0?void 0:s.call(n)}),this.update(i)):this._$Ek()}catch(n){throw r=!1,this._$Ek(),n}r&&this._$AE(i)}willUpdate(e){}_$AE(e){var r;(r=this._$ES)===null||r===void 0||r.forEach(i=>{var n;return(n=i.hostUpdated)===null||n===void 0?void 0:n.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((r,i)=>this._$EO(i,this[i],r)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};Ve.finalized=!0,Ve.elementProperties=new Map,Ve.elementStyles=[],Ve.shadowRootOptions={mode:"open"},Vl?.({ReactiveElement:Ve}),((So=xn.reactiveElementVersions)!==null&&So!==void 0?So:xn.reactiveElementVersions=[]).push("1.6.1");var Po,Sn=window,Dr=Sn.trustedTypes,Bl=Dr?Dr.createPolicy("lit-html",{createHTML:t=>t}):void 0,En="$lit$",Re=`lit$${(Math.random()+"").slice(9)}$`,Co="?"+Re,hf=`<${Co}>`,Ir=document,yi=()=>Ir.createComment(""),vi=t=>t===null||typeof t!="object"&&typeof t!="function",Ul=Array.isArray,Wl=t=>Ul(t)||typeof t?.[Symbol.iterator]=="function",Ao=`[
|
|
2
|
+
\f\r]`,gi=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,zl=/-->/g,Hl=/>/g,ur=RegExp(`>|${Ao}(?:([^\\s"'>=/]+)(${Ao}*=${Ao}*(?:[^
|
|
3
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Nl=/'/g,jl=/"/g,Zl=/^(?:script|style|textarea|title)$/i,Yl=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),J=Yl(1),Rg=Yl(2),_e=Symbol.for("lit-noChange"),_t=Symbol.for("lit-nothing"),Gl=new WeakMap,Fr=Ir.createTreeWalker(Ir,129,null,!1),Xl=(t,e)=>{let r=t.length-1,i=[],n,s=e===2?"<svg>":"",o=gi;for(let l=0;l<r;l++){let h=t[l],c,p,f=-1,u=0;for(;u<h.length&&(o.lastIndex=u,p=o.exec(h),p!==null);)u=o.lastIndex,o===gi?p[1]==="!--"?o=zl:p[1]!==void 0?o=Hl:p[2]!==void 0?(Zl.test(p[2])&&(n=RegExp("</"+p[2],"g")),o=ur):p[3]!==void 0&&(o=ur):o===ur?p[0]===">"?(o=n??gi,f=-1):p[1]===void 0?f=-2:(f=o.lastIndex-p[2].length,c=p[1],o=p[3]===void 0?ur:p[3]==='"'?jl:Nl):o===jl||o===Nl?o=ur:o===zl||o===Hl?o=gi:(o=ur,n=void 0);let m=o===ur&&t[l+1].startsWith("/>")?" ":"";s+=o===gi?h+hf:f>=0?(i.push(c),h.slice(0,f)+En+h.slice(f)+Re+m):h+Re+(f===-2?(i.push(void 0),l):m)}let a=s+(t[r]||"<?>")+(e===2?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[Bl!==void 0?Bl.createHTML(a):a,i]},bi=class t{constructor({strings:e,_$litType$:r},i){let n;this.parts=[];let s=0,o=0,a=e.length-1,l=this.parts,[h,c]=Xl(e,r);if(this.el=t.createElement(h,i),Fr.currentNode=this.el.content,r===2){let p=this.el.content,f=p.firstChild;f.remove(),p.append(...f.childNodes)}for(;(n=Fr.nextNode())!==null&&l.length<a;){if(n.nodeType===1){if(n.hasAttributes()){let p=[];for(let f of n.getAttributeNames())if(f.endsWith(En)||f.startsWith(Re)){let u=c[o++];if(p.push(f),u!==void 0){let m=n.getAttribute(u.toLowerCase()+En).split(Re),g=/([.?@])?(.*)/.exec(u);l.push({type:1,index:s,name:g[2],strings:m,ctor:g[1]==="."?Pn:g[1]==="?"?An:g[1]==="@"?Cn:dr})}else l.push({type:6,index:s})}for(let f of p)n.removeAttribute(f)}if(Zl.test(n.tagName)){let p=n.textContent.split(Re),f=p.length-1;if(f>0){n.textContent=Dr?Dr.emptyScript:"";for(let u=0;u<f;u++)n.append(p[u],yi()),Fr.nextNode(),l.push({type:2,index:++s});n.append(p[f],yi())}}}else if(n.nodeType===8)if(n.data===Co)l.push({type:2,index:s});else{let p=-1;for(;(p=n.data.indexOf(Re,p+1))!==-1;)l.push({type:7,index:s}),p+=Re.length-1}s++}}static createElement(e,r){let i=Ir.createElement("template");return i.innerHTML=e,i}};function fr(t,e,r=t,i){var n,s,o,a;if(e===_e)return e;let l=i!==void 0?(n=r._$Co)===null||n===void 0?void 0:n[i]:r._$Cl,h=vi(e)?void 0:e._$litDirective$;return l?.constructor!==h&&((s=l?._$AO)===null||s===void 0||s.call(l,!1),h===void 0?l=void 0:(l=new h(t),l._$AT(t,r,i)),i!==void 0?((o=(a=r)._$Co)!==null&&o!==void 0?o:a._$Co=[])[i]=l:r._$Cl=l),l!==void 0&&(e=fr(t,l._$AS(t,e.values),l,i)),e}var kn=class{constructor(e,r){this.u=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(e){var r;let{el:{content:i},parts:n}=this._$AD,s=((r=e?.creationScope)!==null&&r!==void 0?r:Ir).importNode(i,!0);Fr.currentNode=s;let o=Fr.nextNode(),a=0,l=0,h=n[0];for(;h!==void 0;){if(a===h.index){let c;h.type===2?c=new Lr(o,o.nextSibling,this,e):h.type===1?c=new h.ctor(o,h.name,h.strings,this,e):h.type===6&&(c=new Tn(o,this,e)),this.u.push(c),h=n[++l]}a!==h?.index&&(o=Fr.nextNode(),a++)}return s}p(e){let r=0;for(let i of this.u)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,r),r+=i.strings.length-2):i._$AI(e[r])),r++}},Lr=class t{constructor(e,r,i,n){var s;this.type=2,this._$AH=_t,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=n,this._$Cm=(s=n?.isConnected)===null||s===void 0||s}get _$AU(){var e,r;return(r=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&r!==void 0?r:this._$Cm}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=fr(this,e,r),vi(e)?e===_t||e==null||e===""?(this._$AH!==_t&&this._$AR(),this._$AH=_t):e!==this._$AH&&e!==_e&&this.g(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Wl(e)?this.k(e):this.g(e)}S(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.S(e))}g(e){this._$AH!==_t&&vi(this._$AH)?this._$AA.nextSibling.data=e:this.T(Ir.createTextNode(e)),this._$AH=e}$(e){var r;let{values:i,_$litType$:n}=e,s=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=bi.createElement(n.h,this.options)),n);if(((r=this._$AH)===null||r===void 0?void 0:r._$AD)===s)this._$AH.p(i);else{let o=new kn(s,this),a=o.v(this.options);o.p(i),this.T(a),this._$AH=o}}_$AC(e){let r=Gl.get(e.strings);return r===void 0&&Gl.set(e.strings,r=new bi(e)),r}k(e){Ul(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let s of e)n===r.length?r.push(i=new t(this.S(yi()),this.S(yi()),this,this.options)):i=r[n],i._$AI(s),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){var i;for((i=this._$AP)===null||i===void 0||i.call(this,!1,!0,r);e&&e!==this._$AB;){let n=e.nextSibling;e.remove(),e=n}}setConnected(e){var r;this._$AM===void 0&&(this._$Cm=e,(r=this._$AP)===null||r===void 0||r.call(this,e))}},dr=class{constructor(e,r,i,n,s){this.type=1,this._$AH=_t,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=s,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=_t}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,r=this,i,n){let s=this.strings,o=!1;if(s===void 0)e=fr(this,e,r,0),o=!vi(e)||e!==this._$AH&&e!==_e,o&&(this._$AH=e);else{let a=e,l,h;for(e=s[0],l=0;l<s.length-1;l++)h=fr(this,a[i+l],r,l),h===_e&&(h=this._$AH[l]),o||(o=!vi(h)||h!==this._$AH[l]),h===_t?e=_t:e!==_t&&(e+=(h??"")+s[l+1]),this._$AH[l]=h}o&&!n&&this.j(e)}j(e){e===_t?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Pn=class extends dr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===_t?void 0:e}},cf=Dr?Dr.emptyScript:"",An=class extends dr{constructor(){super(...arguments),this.type=4}j(e){e&&e!==_t?this.element.setAttribute(this.name,cf):this.element.removeAttribute(this.name)}},Cn=class extends dr{constructor(e,r,i,n,s){super(e,r,i,n,s),this.type=5}_$AI(e,r=this){var i;if((e=(i=fr(this,e,r,0))!==null&&i!==void 0?i:_t)===_e)return;let n=this._$AH,s=e===_t&&n!==_t||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,o=e!==_t&&(n===_t||s);s&&this.element.removeEventListener(this.name,this,n),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var r,i;typeof this._$AH=="function"?this._$AH.call((i=(r=this.options)===null||r===void 0?void 0:r.host)!==null&&i!==void 0?i:this.element,e):this._$AH.handleEvent(e)}},Tn=class{constructor(e,r,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){fr(this,e)}},Kl={P:En,A:Re,M:Co,C:1,L:Xl,D:kn,R:Wl,V:fr,I:Lr,H:dr,N:An,U:Cn,F:Pn,B:Tn},ql=Sn.litHtmlPolyfillSupport;ql?.(bi,Lr),((Po=Sn.litHtmlVersions)!==null&&Po!==void 0?Po:Sn.litHtmlVersions=[]).push("2.7.0");var Jl=(t,e,r)=>{var i,n;let s=(i=r?.renderBefore)!==null&&i!==void 0?i:e,o=s._$litPart$;if(o===void 0){let a=(n=r?.renderBefore)!==null&&n!==void 0?n:null;s._$litPart$=o=new Lr(e.insertBefore(yi(),a),a,void 0,r??{})}return o._$AI(t),o};var To,Mo;var lt=class extends Ve{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,r;let i=super.createRenderRoot();return(e=(r=this.renderOptions).renderBefore)!==null&&e!==void 0||(r.renderBefore=i.firstChild),i}update(e){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Jl(r,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!1)}render(){return _e}};lt.finalized=!0,lt._$litElement$=!0,(To=globalThis.litElementHydrateSupport)===null||To===void 0||To.call(globalThis,{LitElement:lt});var Ql=globalThis.litElementPolyfillSupport;Ql?.({LitElement:lt});((Mo=globalThis.litElementVersions)!==null&&Mo!==void 0?Mo:globalThis.litElementVersions=[]).push("3.3.0");function zo(t){return[...t.v,(t.i?"!":"")+t.n].join(":")}function pf(t,e=","){return t.map(zo).join(e)}var oh=typeof CSS<"u"&&CSS.escape||(t=>t.replace(/[!"'`*+.,;:\\/<=>?@#$%&^|~()[\]{}]/g,"\\$&").replace(/^\d/,"\\3$& "));function Mn(t){for(var e=9,r=t.length;r--;)e=Math.imul(e^t.charCodeAt(r),1597334677);return"#"+((e^e>>>9)>>>0).toString(36)}function In(t,e="@media "){return e+gt(t).map(r=>(typeof r=="string"&&(r={min:r}),r.raw||Object.keys(r).map(i=>`(${i}-width:${r[i]})`).join(" and "))).join(",")}function gt(t=[]){return Array.isArray(t)?t:t==null?[]:[t]}function th(t){return t}function Ln(){}var Et={d:0,b:134217728,c:268435456,a:671088640,u:805306368,o:939524096};function ah(t){return t.match(/[-=:;]/g)?.length||0}function Oo(t){return Math.min(/(?:^|width[^\d]+)(\d+(?:.\d+)?)(p)?/.test(t)?Math.max(0,29.63*(+RegExp.$1/(RegExp.$2?15:1))**.137-43):0,15)<<22|Math.min(ah(t),15)<<18}var uf=["rst-c","st-ch","h-chi","y-lin","nk","sited","ecked","pty","ad-on","cus-w","ver","cus","cus-v","tive","sable","tiona","quire"];function Ho({n:t,i:e,v:r=[]},i,n,s){t&&(t=zo({n:t,i:e,v:r})),s=[...gt(s)];for(let a of r){let l=i.theme("screens",a);for(let h of gt(l&&In(l)||i.v(a))){var o;s.push(h),n|=l?67108864|Oo(h):a=="dark"?1073741824:h[0]=="@"?Oo(h):(o=h,1<<~(/:([a-z-]+)/.test(o)&&~uf.indexOf(RegExp.$1.slice(2,7))||-18))}}return{n:t,p:n,r:s,i:e}}var lh=new Map;function $o(t){if(t.d){let e=[],r=Fo(t.r.reduce((i,n)=>n[0]=="@"?(e.push(n),i):n?Fo(i,s=>Fo(n,o=>{let a=/(:merge\(.+?\))(:[a-z-]+|\\[.+])/.exec(o);if(a){let l=s.indexOf(a[1]);return~l?s.slice(0,l)+a[0]+s.slice(l+a[1].length):Do(s,o)}return Do(o,s)})):i,"&"),i=>Do(i,t.n?"."+oh(t.n):""));return r&&e.push(r.replace(/:merge\((.+?)\)/g,"$1")),e.reduceRight((i,n)=>n+"{"+i+"}",t.d)}}function Fo(t,e){return t.replace(/ *((?:\(.+?\)|\[.+?\]|[^,])+) *(,|$)/g,(r,i,n)=>e(i)+n)}function Do(t,e){return t.replace(/&/g,e)}var eh=new Intl.Collator("en",{numeric:!0});function hh(t,e){for(var r=0,i=t.length;r<i;){let n=i+r>>1;0>=ch(t[n],e)?r=n+1:i=n}return i}function ch(t,e){let r=t.p&Et.o;return r==(e.p&Et.o)&&(r==Et.b||r==Et.o)?0:t.p-e.p||t.o-e.o||eh.compare(rh(t.n),rh(e.n))||eh.compare(ih(t.n),ih(e.n))}function rh(t){return(t||"").split(/:/).pop().split("/").pop()||"\0"}function ih(t){return(t||"").replace(/\W/g,e=>String.fromCharCode(127+e.charCodeAt(0)))+"\0"}function Io(t,e){return Math.round(parseInt(t,16)*e)}function pe(t,e={}){if(typeof t=="function")return t(e);let{opacityValue:r="1",opacityVariable:i}=e,n=i?`var(${i})`:r;if(t.includes("<alpha-value>"))return t.replace("<alpha-value>",n);if(t[0]=="#"&&(t.length==4||t.length==7)){let s=(t.length-1)/3,o=[17,1,.062272][s-1];return`rgba(${[Io(t.substr(1,s),o),Io(t.substr(1+s,s),o),Io(t.substr(1+2*s,s),o),n]})`}return n=="1"?t:n=="0"?"#0000":t.replace(/^(rgb|hsl)(\([^)]+)\)$/,`$1a$2,${n})`)}function ph(t,e,r,i,n=[]){return function s(o,{n:a,p:l,r:h=[],i:c},p){let f=[],u="",m=0,g=0;for(let v in o||{}){var d,y;let b=o[v];if(v[0]=="@"){if(!b)continue;if(v[1]=="a"){f.push(...jo(a,l,Dn(""+b),p,l,h,c,!0));continue}if(v[1]=="l"){for(let _ of gt(b))f.push(...s(_,{n:a,p:(d=Et[v[7]],l&~Et.o|d),r:v[7]=="d"?[]:h,i:c},p));continue}if(v[1]=="i"){f.push(...gt(b).map(_=>({p:-1,o:0,r:[],d:v+" "+_})));continue}if(v[1]=="k"){f.push({p:Et.d,o:0,r:[v],d:s(b,{p:Et.d},p).map($o).join("")});continue}if(v[1]=="f"){f.push(...gt(b).map(_=>({p:Et.d,o:0,r:[v],d:s(_,{p:Et.d},p).map($o).join("")})));continue}}if(typeof b!="object"||Array.isArray(b))v=="label"&&b?a=b+Mn(JSON.stringify([l,c,o])):(b||b===0)&&(v=v.replace(/[A-Z]/g,_=>"-"+_.toLowerCase()),g+=1,m=Math.max(m,(y=v)[0]=="-"?0:ah(y)+(/^(?:(border-(?!w|c|sty)|[tlbr].{2,4}m?$|c.{7,8}$)|([fl].{5}l|g.{8}$|pl))/.test(y)?+!!RegExp.$1||-!!RegExp.$2:0)+1),u+=(u?";":"")+gt(b).map(_=>p.s(v,No(""+_,p.theme)+(c?" !important":""))).join(";"));else if(v[0]=="@"||v.includes("&")){let _=l;v[0]=="@"&&(v=v.replace(/\bscreen\(([^)]+)\)/g,(x,M)=>{let S=p.theme("screens",M);return S?(_|=67108864,In(S,"")):x}),_|=Oo(v)),f.push(...s(b,{n:a,p:_,r:[...h,v],i:c},p))}else f.push(...s(b,{p:l,r:[...h,v]},p))}return f.unshift({n:a,p:l,o:Math.max(0,15-g)+1.5*Math.min(m||15,15),r:h,d:u}),f.sort(ch)}(t,Ho(e,r,i,n),r)}function No(t,e){return t.replace(/theme\((["'`])?(.+?)\1(?:\s*,\s*(["'`])?(.+?)\3)?\)/g,(r,i,n,s,o="")=>{let a=e(n,o);return typeof a=="function"&&/color|fill|stroke/i.test(n)?pe(a):""+gt(a).filter(l=>Object(l)!==l)})}function uh(t,e){let r,i=[];for(let n of t)n.d&&n.n?r?.p==n.p&&""+r.r==""+n.r?(r.c=[r.c,n.c].filter(Boolean).join(" "),r.d=r.d+";"+n.d):i.push(r={...n,n:n.n&&e}):i.push({...n,n:n.n&&e});return i}function Fn(t,e,r=Et.u,i,n){let s=[];for(let o of t)for(let a of function(l,h,c,p,f){l={...l,i:l.i||f};let u=function(m,g){let d=lh.get(m.n);return d?d(m,g):g.r(m.n,m.v[0]=="dark")}(l,h);return u?typeof u=="string"?({r:p,p:c}=Ho(l,h,c,p),uh(Fn(Dn(u),h,c,p,l.i),l.n)):Array.isArray(u)?u.map(m=>{var g,d;return{o:0,...m,r:[...gt(p),...gt(m.r)],p:(g=c,d=m.p??c,g&~Et.o|d)}}):ph(u,l,h,c,p):[{c:zo(l),p:0,o:0,r:[]}]}(o,e,r,i,n))s.splice(hh(s,a),0,a);return s}function jo(t,e,r,i,n,s,o,a){return uh((a?r.flatMap(l=>Fn([l],i,n,s,o)):Fn(r,i,n,s,o)).map(l=>l.p&Et.o&&(l.n||e==Et.b)?{...l,p:l.p&~Et.o|e,o:0}:l),t)}function ff(t,e,r,i){var n;return n=(s,o)=>{let{n:a,p:l,r:h,i:c}=Ho(s,o,e);return r&&jo(a,e,r,o,l,h,c,i)},lh.set(t,n),t}function Lo(t,e,r){if(t[t.length-1]!="("){let i=[],n=!1,s=!1,o="";for(let a of t)if(!(a=="("||/[~@]$/.test(a))){if(a[0]=="!"&&(a=a.slice(1),n=!n),a.endsWith(":")){i[a=="dark:"?"unshift":"push"](a.slice(0,-1));continue}a[0]=="-"&&(a=a.slice(1),s=!s),a.endsWith("-")&&(a=a.slice(0,-1)),a&&a!="&"&&(o+=(o&&"-")+a)}o&&(s&&(o="-"+o),e[0].push({n:o,v:i.filter(df),i:n}))}}function df(t,e,r){return r.indexOf(t)==e}var nh=new Map;function Dn(t){let e=nh.get(t);if(!e){let r=[],i=[[]],n=0,s=0,o=null,a=0,l=(h,c=0)=>{n!=a&&(r.push(t.slice(n,a+c)),h&&Lo(r,i)),n=a+1};for(;a<t.length;a++){let h=t[a];if(s)t[a-1]!="\\"&&(s+=+(h=="[")||-(h=="]"));else if(h=="[")s+=1;else if(o)t[a-1]!="\\"&&o.test(t.slice(a))&&(o=null,n=a+RegExp.lastMatch.length);else if(h=="/"&&t[a-1]!="\\"&&(t[a+1]=="*"||t[a+1]=="/"))o=t[a+1]=="*"?/^\*\//:/^[\r\n]/;else if(h=="(")l(),r.push(h);else if(h==":")t[a+1]!=":"&&l(!1,1);else if(/[\s,)]/.test(h)){l(!0);let c=r.lastIndexOf("(");if(h==")"){let p=r[c-1];if(/[~@]$/.test(p)){let f=i.shift();r.length=c,Lo([...r,"#"],i);let{v:u}=i[0].pop();for(let m of f)m.v.splice(+(m.v[0]=="dark")-+(u[0]=="dark"),u.length);Lo([...r,ff(p.length>1?p.slice(0,-1)+Mn(JSON.stringify([p,f])):p+"("+pf(f)+")",Et.a,f,/@$/.test(p))],i)}c=r.lastIndexOf("(",c-1)}r.length=c+1}else/[~@]/.test(h)&&t[a+1]=="("&&i.unshift([])}l(!0),nh.set(t,e=i[0])}return e}function R(t,e,r){return[t,Vo(e,r)]}function Vo(t,e){return typeof t=="function"?t:typeof t=="string"&&/^[\w-]+$/.test(t)?(r,i)=>({[t]:e?e(r,i):Ro(r,1)}):r=>t||{[r[1]]:Ro(r,2)}}function Ro(t,e,r=t.slice(e).find(Boolean)||t.$$||t.input){return t.input[0]=="-"?`calc(${r} * -1)`:r}function B(t,e,r,i){return[t,Go(e,r,i)]}function Go(t,e,r){let i=typeof e=="string"?(n,s)=>({[e]:r?r(n,s):n._}):e||(({1:n,_:s},o,a)=>({[n||a]:s}));return(n,s)=>{let o=fh(t||n[1]),a=s.theme(o,n.$$)??Pe(n.$$,o,s);if(a!=null)return n._=Ro(n,0,a),i(n,s,o)}}function kt(t,e={},r){return[t,mf(e,r)]}function mf(t={},e){return(r,i)=>{let{section:n=fh(r[0]).replace("-","")+"Color"}=t,[s,o]=gf(r.$$);if(!s)return;let a=i.theme(n,s)||Pe(s,n,i);if(!a||typeof a=="object")return;let{opacityVariable:l=`--tw-${r[0].replace(/-$/,"")}-opacity`,opacitySection:h=n.replace("Color","Opacity"),property:c=n,selector:p}=t,f=i.theme(h,o||"DEFAULT")||o&&Pe(o,h,i),u=e||(({_:g})=>{let d=_i(c,g);return p?{[p]:d}:d});r._={value:pe(a,{opacityVariable:l||void 0,opacityValue:f||void 0}),color:g=>pe(a,g),opacityVariable:l||void 0,opacityValue:f||void 0};let m=u(r,i);if(!r.dark){let g=i.d(n,s,a);g&&g!==a&&(r._={value:pe(g,{opacityVariable:l||void 0,opacityValue:f||"1"}),color:d=>pe(g,d),opacityVariable:l||void 0,opacityValue:f||void 0},m={"&":m,[i.v("dark")]:u(r,i)})}return m}}function gf(t){return(t.match(/^(\[[^\]]+]|[^/]+?)(?:\/(.+))?$/)||[]).slice(1)}function _i(t,e){let r={};return typeof e=="string"?r[t]=e:(e.opacityVariable&&e.value.includes(e.opacityVariable)&&(r[e.opacityVariable]=e.opacityValue||"1"),r[t]=e.value),r}function Pe(t,e,r){if(t[0]=="["&&t.slice(-1)=="]"){if(t=Or(No(t.slice(1,-1),r.theme)),!e)return t;if(!(/color|fill|stroke/i.test(e)&&!(/^color:/.test(t)||/^(#|((hsl|rgb)a?|hwb|lab|lch|color)\(|[a-z]+$)/.test(t))||/image/i.test(e)&&!(/^image:/.test(t)||/^[a-z-]+\(/.test(t))||/weight/i.test(e)&&!(/^(number|any):/.test(t)||/^\d+$/.test(t))||/position/i.test(e)&&/^(length|size):/.test(t)))return t.replace(/^[a-z-]+:/,"")}}function fh(t){return t.replace(/-./g,e=>e[1].toUpperCase())}function Or(t){return t.includes("url(")?t.replace(/(.*?)(url\(.*?\))(.*?)/g,(e,r="",i,n="")=>Or(r)+i+Or(n)):t.replace(/(^|[^\\])_+/g,(e,r)=>r+" ".repeat(e.length-r.length)).replace(/\\_/g,"_").replace(/(calc|min|max|clamp)\(.+\)/g,e=>e.replace(/(-?\d*\.?\d(?!\b-.+[,)](?![^+\-/*])\D)(?:%|[a-z]+)?|\))([+\-/*])/g,"$1 $2 "))}function wi({presets:t=[],...e}){let r={darkMode:void 0,darkColor:void 0,preflight:e.preflight!==!1&&[],theme:{},variants:gt(e.variants),rules:gt(e.rules),ignorelist:gt(e.ignorelist),hash:void 0,stringify:(i,n)=>i+":"+n,finalize:[]};for(let i of gt([...t,{darkMode:e.darkMode,darkColor:e.darkColor,preflight:e.preflight!==!1&>(e.preflight),theme:e.theme,hash:e.hash,stringify:e.stringify,finalize:e.finalize}])){let{preflight:n,darkMode:s=r.darkMode,darkColor:o=r.darkColor,theme:a,variants:l,rules:h,ignorelist:c,hash:p=r.hash,stringify:f=r.stringify,finalize:u}=typeof i=="function"?i(r):i;r={preflight:r.preflight!==!1&&n!==!1&&[...r.preflight,...gt(n)],darkMode:s,darkColor:o,theme:{...r.theme,...a,extend:{...r.theme.extend,...a?.extend}},variants:[...r.variants,...gt(l)],rules:[...r.rules,...gt(h)],ignorelist:[...r.ignorelist,...gt(c)],hash:p,stringify:f,finalize:[...r.finalize,...gt(u)]}}return r}function sh(t,e,r,i,n,s){for(let o of e){let a=r.get(o);a||r.set(o,a=i(o));let l=a(t,n,s);if(l)return l}}function yf(t){var e;return Bo(t[0],typeof(e=t[1])=="function"?e:()=>e)}function vf(t){var e,r;return Array.isArray(t)?Bo(t[0],Vo(t[1],t[2])):Bo(t,Vo(e,r))}function Bo(t,e){return dh(t,(r,i,n,s)=>{let o=i.exec(r);if(o)return o.$$=r.slice(o[0].length),o.dark=s,e(o,n)})}function dh(t,e){let r=gt(t).map(bf);return(i,n,s)=>{for(let o of r){let a=e(i,o,n,s);if(a)return a}}}function bf(t){return typeof t=="string"?RegExp("^"+t+(t.includes("$")||t.slice(-1)=="-"?"":"$")):t}function mh(t,e){let r=wi(t),i=function({theme:l,darkMode:h,darkColor:c=Ln,variants:p,rules:f,hash:u,stringify:m,ignorelist:g,finalize:d}){let y=new Map,v=new Map,b=new Map,_=new Map,x=dh(g,(w,D)=>D.test(w));p.push(["dark",Array.isArray(h)||h=="class"?`${gt(h)[1]||".dark"} &`:typeof h=="string"&&h!="media"?h:"@media (prefers-color-scheme:dark)"]);let M=typeof u=="function"?w=>u(w,Mn):u?Mn:th;M!==th&&d.push(w=>({...w,n:w.n&&M(w.n),d:w.d?.replace(/--(tw(?:-[\w-]+)?)\b/g,(D,E)=>"--"+M(E).replace("#",""))}));let S={theme:function({extend:w={},...D}){let E={},T={get colors(){return k("colors")},theme:k,negative(){return{}},breakpoints(P){let I={};for(let L in P)typeof P[L]=="string"&&(I["screen-"+L]=P[L]);return I}};return k;function k(P,I,L,F){if(P){if({1:P,2:F}=/^(\S+?)(?:\s*\/\s*([^/]+))?$/.exec(P)||[,P],/[.[]/.test(P)){let z=[];P.replace(/\[([^\]]+)\]|([^.[]+)/g,(N,G,H=G)=>z.push(H)),P=z.shift(),L=I,I=z.join("-")}let O=E[P]||Object.assign(Object.assign(E[P]={},A(D,P)),A(w,P));if(I==null)return O;I||(I="DEFAULT");let V=O[I]??I.split("-").reduce((z,N)=>z?.[N],O)??L;return F?pe(V,{opacityValue:No(F,k)}):V}let C={};for(let O of[...Object.keys(D),...Object.keys(w)])C[O]=k(O);return C}function A(P,I){let L=P[I];return typeof L=="function"&&(L=L(T)),L&&/color|fill|stroke/i.test(I)?function F(C,O=[]){let V={};for(let z in C){let N=C[z],G=[...O,z];V[G.join("-")]=N,z=="DEFAULT"&&(G=O,V[O.join("-")]=N),typeof N=="object"&&Object.assign(V,F(N,G))}return V}(L):L}}(l),e:oh,h:M,s(w,D){return m(w,D,S)},d(w,D,E){return c(w,D,S,E)},v(w){return y.has(w)||y.set(w,sh(w,p,v,yf,S)||"&:"+w),y.get(w)},r(w,D){let E=JSON.stringify([w,D]);return b.has(E)||b.set(E,!x(w,S)&&sh(w,f,_,vf,S,D)),b.get(E)},f(w){return d.reduce((D,E)=>E(D,S),w)}};return S}(r),n=new Map,s=[],o=new Set;e.resume(l=>n.set(l,l),(l,h)=>{e.insert(l,s.length,h),s.push(h),o.add(l)});function a(l){let h=i.f(l),c=$o(h);if(c&&!o.has(c)){o.add(c);let p=hh(s,l);e.insert(c,p,l),s.splice(p,0,l)}return h.n}return Object.defineProperties(function(h){if(!n.size)for(let p of gt(r.preflight))typeof p=="function"&&(p=p(i)),p&&(typeof p=="string"?jo("",Et.b,Dn(p),i,Et.b,[],!1,!0):ph(p,{},i,Et.b)).forEach(a);h=""+h;let c=n.get(h);if(!c){let p=new Set;for(let f of Fn(Dn(h),i))p.add(f.c).add(a(f));c=[...p].filter(Boolean).join(" "),n.set(h,c).set(c,c)}return c},Object.getOwnPropertyDescriptors({get target(){return e.target},theme:i.theme,config:r,snapshot(){let l=e.snapshot(),h=new Set(o),c=new Map(n),p=[...s];return()=>{l(),o=h,n=c,s=p}},clear(){e.clear(),o=new Set,n=new Map,s=[]},destroy(){this.clear(),e.destroy()}}))}function _f(t,e){return t!=e&&""+t.split(" ").sort()!=""+e.split(" ").sort()}function gh(t){let e=new MutationObserver(r);return{observe(n){e.observe(n,{attributeFilter:["class"],subtree:!0,childList:!0}),i(n),r([{target:n,type:""}])},disconnect(){e.disconnect()}};function r(n){for(let{type:s,target:o}of n)if(s[0]=="a")i(o);else for(let a of o.querySelectorAll("[class]"))i(a);e.takeRecords()}function i(n){let s,o=n.getAttribute?.("class");o&&_f(o,s=t(o))&&n.setAttribute("class",s)}}function wf(t){let e=document.querySelector(t||'style[data-twind=""]');return(!e||e.tagName!="STYLE")&&(e=document.createElement("style"),document.head.prepend(e)),e.dataset.twind="claimed",e}function On(t){let e=t?.cssRules?t:(t&&typeof t!="string"?t:wf(t)).sheet;return{target:e,snapshot(){let r=Array.from(e.cssRules,i=>i.cssText);return()=>{this.clear(),r.forEach(this.insert)}},clear(){for(let r=e.cssRules.length;r--;)e.deleteRule(r)},destroy(){e.ownerNode?.remove()},insert(r,i){try{e.insertRule(r,i)}catch{e.insertRule(":root{}",i)}},resume:Ln}}var Si={screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"},columns:{auto:"auto","3xs":"16rem","2xs":"18rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem"},spacing:{px:"1px",0:"0px",...ee(4,"rem",4,.5,.5),...ee(12,"rem",4,5),14:"3.5rem",...ee(64,"rem",4,16,4),72:"18rem",80:"20rem",96:"24rem"},durations:{75:"75ms",100:"100ms",150:"150ms",200:"200ms",300:"300ms",500:"500ms",700:"700ms",1e3:"1000ms"},animation:{none:"none",spin:"spin 1s linear infinite",ping:"ping 1s cubic-bezier(0,0,0.2,1) infinite",pulse:"pulse 2s cubic-bezier(0.4,0,0.6,1) infinite",bounce:"bounce 1s infinite"},aspectRatio:{auto:"auto",square:"1/1",video:"16/9"},backdropBlur:ot("blur"),backdropBrightness:ot("brightness"),backdropContrast:ot("contrast"),backdropGrayscale:ot("grayscale"),backdropHueRotate:ot("hueRotate"),backdropInvert:ot("invert"),backdropOpacity:ot("opacity"),backdropSaturate:ot("saturate"),backdropSepia:ot("sepia"),backgroundColor:ot("colors"),backgroundImage:{none:"none"},backgroundOpacity:ot("opacity"),backgroundSize:{auto:"auto",cover:"cover",contain:"contain"},blur:{none:"none",0:"0",sm:"4px",DEFAULT:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},brightness:{...ee(200,"",100,0,50),...ee(110,"",100,90,5),75:"0.75",125:"1.25"},borderColor:({theme:t})=>({DEFAULT:t("colors.gray.200","currentColor"),...t("colors")}),borderOpacity:ot("opacity"),borderRadius:{none:"0px",sm:"0.125rem",DEFAULT:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem","1/2":"50%",full:"9999px"},borderSpacing:ot("spacing"),borderWidth:{DEFAULT:"1px",...ue(8,"px")},boxShadow:{sm:"0 1px 2px 0 rgba(0,0,0,0.05)",DEFAULT:"0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.1)",md:"0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1)",lg:"0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1)",xl:"0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)","2xl":"0 25px 50px -12px rgba(0,0,0,0.25)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.05)",none:"0 0 #0000"},boxShadowColor:ot("colors"),caretColor:ot("colors"),accentColor:({theme:t})=>({auto:"auto",...t("colors")}),contrast:{...ee(200,"",100,0,50),75:"0.75",125:"1.25"},content:{none:"none"},divideColor:ot("borderColor"),divideOpacity:ot("borderOpacity"),divideWidth:ot("borderWidth"),dropShadow:{sm:"0 1px 1px rgba(0,0,0,0.05)",DEFAULT:["0 1px 2px rgba(0,0,0,0.1)","0 1px 1px rgba(0,0,0,0.06)"],md:["0 4px 3px rgba(0,0,0,0.07)","0 2px 2px rgba(0,0,0,0.06)"],lg:["0 10px 8px rgba(0,0,0,0.04)","0 4px 3px rgba(0,0,0,0.1)"],xl:["0 20px 13px rgba(0,0,0,0.03)","0 8px 5px rgba(0,0,0,0.08)"],"2xl":"0 25px 25px rgba(0,0,0,0.15)",none:"0 0 #0000"},fill:({theme:t})=>({...t("colors"),none:"none"}),grayscale:{DEFAULT:"100%",0:"0"},hueRotate:{0:"0deg",15:"15deg",30:"30deg",60:"60deg",90:"90deg",180:"180deg"},invert:{DEFAULT:"100%",0:"0"},flex:{1:"1 1 0%",auto:"1 1 auto",initial:"0 1 auto",none:"none"},flexBasis:({theme:t})=>({...t("spacing"),...xi(2,6),...xi(12,12),auto:"auto",full:"100%"}),flexGrow:{DEFAULT:1,0:0},flexShrink:{DEFAULT:1,0:0},fontFamily:{sans:'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'.split(","),serif:'ui-serif,Georgia,Cambria,"Times New Roman",Times,serif'.split(","),mono:'ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'.split(",")},fontSize:{xs:["0.75rem","1rem"],sm:["0.875rem","1.25rem"],base:["1rem","1.5rem"],lg:["1.125rem","1.75rem"],xl:["1.25rem","1.75rem"],"2xl":["1.5rem","2rem"],"3xl":["1.875rem","2.25rem"],"4xl":["2.25rem","2.5rem"],"5xl":["3rem","1"],"6xl":["3.75rem","1"],"7xl":["4.5rem","1"],"8xl":["6rem","1"],"9xl":["8rem","1"]},fontWeight:{thin:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700",extrabold:"800",black:"900"},gap:ot("spacing"),gradientColorStops:ot("colors"),gridAutoColumns:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridAutoRows:{auto:"auto",min:"min-content",max:"max-content",fr:"minmax(0,1fr)"},gridColumn:{auto:"auto","span-full":"1 / -1"},gridRow:{auto:"auto","span-full":"1 / -1"},gridTemplateColumns:{none:"none"},gridTemplateRows:{none:"none"},height:({theme:t})=>({...t("spacing"),...xi(2,6),min:"min-content",max:"max-content",fit:"fit-content",auto:"auto",full:"100%",screen:"100vh"}),inset:({theme:t})=>({...t("spacing"),...xi(2,4),auto:"auto",full:"100%"}),keyframes:{spin:{from:{transform:"rotate(0deg)"},to:{transform:"rotate(360deg)"}},ping:{"0%":{transform:"scale(1)",opacity:"1"},"75%,100%":{transform:"scale(2)",opacity:"0"}},pulse:{"0%,100%":{opacity:"1"},"50%":{opacity:".5"}},bounce:{"0%, 100%":{transform:"translateY(-25%)",animationTimingFunction:"cubic-bezier(0.8,0,1,1)"},"50%":{transform:"none",animationTimingFunction:"cubic-bezier(0,0,0.2,1)"}}},letterSpacing:{tighter:"-0.05em",tight:"-0.025em",normal:"0em",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeight:{...ee(10,"rem",4,3),none:"1",tight:"1.25",snug:"1.375",normal:"1.5",relaxed:"1.625",loose:"2"},margin:({theme:t})=>({auto:"auto",...t("spacing")}),maxHeight:({theme:t})=>({full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh",...t("spacing")}),maxWidth:({theme:t,breakpoints:e})=>({...e(t("screens")),none:"none",0:"0rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",prose:"65ch"}),minHeight:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content",screen:"100vh"},minWidth:{0:"0px",full:"100%",min:"min-content",max:"max-content",fit:"fit-content"},opacity:{...ee(100,"",100,0,10),5:"0.05",25:"0.25",75:"0.75",95:"0.95"},order:{first:"-9999",last:"9999",none:"0"},padding:ot("spacing"),placeholderColor:ot("colors"),placeholderOpacity:ot("opacity"),outlineColor:ot("colors"),outlineOffset:ue(8,"px"),outlineWidth:ue(8,"px"),ringColor:({theme:t})=>({...t("colors"),DEFAULT:"#3b82f6"}),ringOffsetColor:ot("colors"),ringOffsetWidth:ue(8,"px"),ringOpacity:({theme:t})=>({...t("opacity"),DEFAULT:"0.5"}),ringWidth:{DEFAULT:"3px",...ue(8,"px")},rotate:{...ue(2,"deg"),...ue(12,"deg",3),...ue(180,"deg",45)},saturate:ee(200,"",100,0,50),scale:{...ee(150,"",100,0,50),...ee(110,"",100,90,5),75:"0.75",125:"1.25"},scrollMargin:ot("spacing"),scrollPadding:ot("spacing"),sepia:{0:"0",DEFAULT:"100%"},skew:{...ue(2,"deg"),...ue(12,"deg",3)},space:ot("spacing"),stroke:({theme:t})=>({...t("colors"),none:"none"}),strokeWidth:ee(2),textColor:ot("colors"),textDecorationColor:ot("colors"),textDecorationThickness:{"from-font":"from-font",auto:"auto",...ue(8,"px")},textUnderlineOffset:{auto:"auto",...ue(8,"px")},textIndent:ot("spacing"),textOpacity:ot("opacity"),transitionDuration:({theme:t})=>({...t("durations"),DEFAULT:"150ms"}),transitionDelay:ot("durations"),transitionProperty:{none:"none",all:"all",DEFAULT:"color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",colors:"color,background-color,border-color,text-decoration-color,fill,stroke",opacity:"opacity",shadow:"box-shadow",transform:"transform"},transitionTimingFunction:{DEFAULT:"cubic-bezier(0.4,0,0.2,1)",linear:"linear",in:"cubic-bezier(0.4,0,1,1)",out:"cubic-bezier(0,0,0.2,1)","in-out":"cubic-bezier(0.4,0,0.2,1)"},translate:({theme:t})=>({...t("spacing"),...xi(2,4),full:"100%"}),width:({theme:t})=>({min:"min-content",max:"max-content",fit:"fit-content",screen:"100vw",...t("flexBasis")}),willChange:{scroll:"scroll-position"},zIndex:{...ee(50,"",1,0,10),auto:"auto"}};function xi(t,e){let r={};do for(var i=1;i<t;i++)r[`${i}/${t}`]=Number((i/t*100).toFixed(6))+"%";while(++t<=e);return r}function ue(t,e,r=0){let i={};for(;r<=t;r=2*r||1)i[r]=r+e;return i}function ee(t,e="",r=1,i=0,n=1,s={}){for(;i<=t;i+=n)s[i]=i/r+e;return s}function ot(t){return({theme:e})=>e(t)}var yh={"*,::before,::after":{boxSizing:"border-box",borderWidth:"0",borderStyle:"solid",borderColor:"theme(borderColor.DEFAULT, currentColor)"},"::before,::after":{"--tw-content":"''"},html:{lineHeight:1.5,WebkitTextSizeAdjust:"100%",MozTabSize:"4",tabSize:4,fontFamily:`theme(fontFamily.sans, ${Si.fontFamily.sans})`,fontFeatureSettings:"theme(fontFamily.sans[1].fontFeatureSettings, normal)"},body:{margin:"0",lineHeight:"inherit"},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},"abbr:where([title])":{textDecoration:"underline dotted"},"h1,h2,h3,h4,h5,h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"b,strong":{fontWeight:"bolder"},"code,kbd,samp,pre":{fontFamily:`theme(fontFamily.mono, ${Si.fontFamily.mono})`,fontFeatureSettings:"theme(fontFamily.mono[1].fontFeatureSettings, normal)",fontSize:"1em"},small:{fontSize:"80%"},"sub,sup":{fontSize:"75%",lineHeight:0,position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"button,input,optgroup,select,textarea":{fontFamily:"inherit",fontSize:"100%",lineHeight:"inherit",color:"inherit",margin:"0",padding:"0"},"button,select":{textTransform:"none"},"button,[type='button'],[type='reset'],[type='submit']":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},":-moz-focusring":{outline:"auto"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button,::-webkit-outer-spin-button":{height:"auto"},"[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre":{margin:"0"},fieldset:{margin:"0",padding:"0"},legend:{padding:"0"},"ol,ul,menu":{listStyle:"none",margin:"0",padding:"0"},textarea:{resize:"vertical"},"input::placeholder,textarea::placeholder":{opacity:1,color:"theme(colors.gray.400, #9ca3af)"},'button,[role="button"]':{cursor:"pointer"},":disabled":{cursor:"default"},"img,svg,video,canvas,audio,iframe,embed,object":{display:"block",verticalAlign:"middle"},"img,video":{maxWidth:"100%",height:"auto"},"[hidden]":{display:"none"}};var Sh=[R("\\[([-\\w]+):(.+)]",({1:t,2:e},r)=>({"@layer overrides":{"&":{[t]:Pe(`[${e}]`,"",r)}}})),R("(group|peer)([~/][^-[]+)?",({input:t},{h:e})=>[{c:e(t)}]),B("aspect-","aspectRatio"),R("container",(t,{theme:e})=>{let{screens:r=e("screens"),center:i,padding:n}=e("container"),s={width:"100%",marginRight:i&&"auto",marginLeft:i&&"auto",...o("xs")};for(let a in r){let l=r[a];typeof l=="string"&&(s[In(l)]={"&":{maxWidth:l,...o(a)}})}return s;function o(a){let l=n&&(typeof n=="string"?n:n[a]||n.DEFAULT);if(l)return{paddingRight:l,paddingLeft:l}}}),B("content-","content",({_:t})=>({"--tw-content":t,content:"var(--tw-content)"})),R("(?:box-)?decoration-(slice|clone)","boxDecorationBreak"),R("box-(border|content)","boxSizing",({1:t})=>t+"-box"),R("hidden",{display:"none"}),R("table-(auto|fixed)","tableLayout"),R(["(block|flex|table|grid|inline|contents|flow-root|list-item)","(inline-(block|flex|table|grid))","(table-(caption|cell|column|row|(column|row|footer|header)-group))"],"display"),"(float)-(left|right|none)","(clear)-(left|right|none|both)","(overflow(?:-[xy])?)-(auto|hidden|clip|visible|scroll)","(isolation)-(auto)",R("isolate","isolation"),R("object-(contain|cover|fill|none|scale-down)","objectFit"),B("object-","objectPosition"),R("object-(top|bottom|center|(left|right)(-(top|bottom))?)","objectPosition",$n),R("overscroll(-[xy])?-(auto|contain|none)",({1:t="",2:e})=>({["overscroll-behavior"+t]:e})),R("(static|fixed|absolute|relative|sticky)","position"),B("-?inset(-[xy])?(?:$|-)","inset",({1:t,_:e})=>({top:t!="-x"&&e,right:t!="-y"&&e,bottom:t!="-x"&&e,left:t!="-y"&&e})),B("-?(top|bottom|left|right)(?:$|-)","inset"),R("(visible|collapse)","visibility"),R("invisible",{visibility:"hidden"}),B("-?z-","zIndex"),R("flex-((row|col)(-reverse)?)","flexDirection",vh),R("flex-(wrap|wrap-reverse|nowrap)","flexWrap"),B("(flex-(?:grow|shrink))(?:$|-)"),B("(flex)-"),B("grow(?:$|-)","flexGrow"),B("shrink(?:$|-)","flexShrink"),B("basis-","flexBasis"),B("-?(order)-"),"-?(order)-(\\d+)",B("grid-cols-","gridTemplateColumns"),R("grid-cols-(\\d+)","gridTemplateColumns",xh),B("col-","gridColumn"),R("col-(span)-(\\d+)","gridColumn",wh),B("col-start-","gridColumnStart"),R("col-start-(auto|\\d+)","gridColumnStart"),B("col-end-","gridColumnEnd"),R("col-end-(auto|\\d+)","gridColumnEnd"),B("grid-rows-","gridTemplateRows"),R("grid-rows-(\\d+)","gridTemplateRows",xh),B("row-","gridRow"),R("row-(span)-(\\d+)","gridRow",wh),B("row-start-","gridRowStart"),R("row-start-(auto|\\d+)","gridRowStart"),B("row-end-","gridRowEnd"),R("row-end-(auto|\\d+)","gridRowEnd"),R("grid-flow-((row|col)(-dense)?)","gridAutoFlow",t=>$n(vh(t))),R("grid-flow-(dense)","gridAutoFlow"),B("auto-cols-","gridAutoColumns"),B("auto-rows-","gridAutoRows"),B("gap-x(?:$|-)","gap","columnGap"),B("gap-y(?:$|-)","gap","rowGap"),B("gap(?:$|-)","gap"),"(justify-(?:items|self))-",R("justify-","justifyContent",bh),R("(content|items|self)-",t=>({["align-"+t[1]]:bh(t)})),R("(place-(content|items|self))-",({1:t,$$:e})=>({[t]:("wun".includes(e[3])?"space-":"")+e})),B("p([xytrbl])?(?:$|-)","padding",$r("padding")),B("-?m([xytrbl])?(?:$|-)","margin",$r("margin")),B("-?space-(x|y)(?:$|-)","space",({1:t,_:e})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${t}-reverse`]:"0",["margin-"+{y:"top",x:"left"}[t]]:`calc(${e} * calc(1 - var(--tw-space-${t}-reverse)))`,["margin-"+{y:"bottom",x:"right"}[t]]:`calc(${e} * var(--tw-space-${t}-reverse))`}})),R("space-(x|y)-reverse",({1:t})=>({"&>:not([hidden])~:not([hidden])":{[`--tw-space-${t}-reverse`]:"1"}})),B("w-","width"),B("min-w-","minWidth"),B("max-w-","maxWidth"),B("h-","height"),B("min-h-","minHeight"),B("max-h-","maxHeight"),B("font-","fontWeight"),B("font-","fontFamily",({_:t})=>typeof(t=gt(t))[1]=="string"?{fontFamily:we(t)}:{fontFamily:we(t[0]),...t[1]}),R("antialiased",{WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}),R("subpixel-antialiased",{WebkitFontSmoothing:"auto",MozOsxFontSmoothing:"auto"}),R("italic","fontStyle"),R("not-italic",{fontStyle:"normal"}),R("(ordinal|slashed-zero|(normal|lining|oldstyle|proportional|tabular)-nums|(diagonal|stacked)-fractions)",({1:t,2:e="",3:r})=>e=="normal"?{fontVariantNumeric:"normal"}:{["--tw-"+(r?"numeric-fraction":"pt".includes(e[0])?"numeric-spacing":e?"numeric-figure":t)]:t,fontVariantNumeric:"var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)",...Ke({"--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)"})}),B("tracking-","letterSpacing"),B("leading-","lineHeight"),R("list-(inside|outside)","listStylePosition"),B("list-","listStyleType"),R("list-","listStyleType"),B("placeholder-opacity-","placeholderOpacity",({_:t})=>({"&::placeholder":{"--tw-placeholder-opacity":t}})),kt("placeholder-",{property:"color",selector:"&::placeholder"}),R("text-(left|center|right|justify|start|end)","textAlign"),R("text-(ellipsis|clip)","textOverflow"),B("text-opacity-","textOpacity","--tw-text-opacity"),kt("text-",{property:"color"}),B("text-","fontSize",({_:t})=>typeof t=="string"?{fontSize:t}:{fontSize:t[0],...typeof t[1]=="string"?{lineHeight:t[1]}:t[1]}),B("indent-","textIndent"),R("(overline|underline|line-through)","textDecorationLine"),R("no-underline",{textDecorationLine:"none"}),B("underline-offset-","textUnderlineOffset"),kt("decoration-",{section:"textDecorationColor",opacityVariable:!1,opacitySection:"opacity"}),B("decoration-","textDecorationThickness"),R("decoration-","textDecorationStyle"),R("(uppercase|lowercase|capitalize)","textTransform"),R("normal-case",{textTransform:"none"}),R("truncate",{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}),R("align-","verticalAlign"),R("whitespace-","whiteSpace"),R("break-normal",{wordBreak:"normal",overflowWrap:"normal"}),R("break-words",{overflowWrap:"break-word"}),R("break-all",{wordBreak:"break-all"}),R("break-keep",{wordBreak:"keep-all"}),kt("caret-",{opacityVariable:!1,opacitySection:"opacity"}),kt("accent-",{opacityVariable:!1,opacitySection:"opacity"}),R("bg-gradient-to-([trbl]|[tb][rl])","backgroundImage",({1:t})=>`linear-gradient(to ${mr(t," ")},var(--tw-gradient-stops))`),kt("from-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:t})=>({"--tw-gradient-from":t.value,"--tw-gradient-to":t.color({opacityValue:"0"}),"--tw-gradient-stops":"var(--tw-gradient-from),var(--tw-gradient-to)"})),kt("via-",{section:"gradientColorStops",opacityVariable:!1,opacitySection:"opacity"},({_:t})=>({"--tw-gradient-to":t.color({opacityValue:"0"}),"--tw-gradient-stops":`var(--tw-gradient-from),${t.value},var(--tw-gradient-to)`})),kt("to-",{section:"gradientColorStops",property:"--tw-gradient-to",opacityVariable:!1,opacitySection:"opacity"}),R("bg-(fixed|local|scroll)","backgroundAttachment"),R("bg-origin-(border|padding|content)","backgroundOrigin",({1:t})=>t+"-box"),R(["bg-(no-repeat|repeat(-[xy])?)","bg-repeat-(round|space)"],"backgroundRepeat"),R("bg-blend-","backgroundBlendMode"),R("bg-clip-(border|padding|content|text)","backgroundClip",({1:t})=>t+(t=="text"?"":"-box")),B("bg-opacity-","backgroundOpacity","--tw-bg-opacity"),kt("bg-",{section:"backgroundColor"}),B("bg-","backgroundImage"),B("bg-","backgroundPosition"),R("bg-(top|bottom|center|(left|right)(-(top|bottom))?)","backgroundPosition",$n),B("bg-","backgroundSize"),B("rounded(?:$|-)","borderRadius"),B("rounded-([trbl]|[tb][rl])(?:$|-)","borderRadius",({1:t,_:e})=>{let r={t:["tl","tr"],r:["tr","br"],b:["bl","br"],l:["bl","tl"]}[t]||[t,t];return{[`border-${mr(r[0])}-radius`]:e,[`border-${mr(r[1])}-radius`]:e}}),R("border-(collapse|separate)","borderCollapse"),B("border-opacity(?:$|-)","borderOpacity","--tw-border-opacity"),R("border-(solid|dashed|dotted|double|none)","borderStyle"),B("border-spacing(-[xy])?(?:$|-)","borderSpacing",({1:t,_:e})=>({...Ke({"--tw-border-spacing-x":"0","--tw-border-spacing-y":"0"}),["--tw-border-spacing"+(t||"-x")]:e,["--tw-border-spacing"+(t||"-y")]:e,"border-spacing":"var(--tw-border-spacing-x) var(--tw-border-spacing-y)"})),kt("border-([xytrbl])-",{section:"borderColor"},$r("border","Color")),kt("border-"),B("border-([xytrbl])(?:$|-)","borderWidth",$r("border","Width")),B("border(?:$|-)","borderWidth"),B("divide-opacity(?:$|-)","divideOpacity",({_:t})=>({"&>:not([hidden])~:not([hidden])":{"--tw-divide-opacity":t}})),R("divide-(solid|dashed|dotted|double|none)",({1:t})=>({"&>:not([hidden])~:not([hidden])":{borderStyle:t}})),R("divide-([xy]-reverse)",({1:t})=>({"&>:not([hidden])~:not([hidden])":{["--tw-divide-"+t]:"1"}})),B("divide-([xy])(?:$|-)","divideWidth",({1:t,_:e})=>{let r={x:"lr",y:"tb"}[t];return{"&>:not([hidden])~:not([hidden])":{[`--tw-divide-${t}-reverse`]:"0",[`border-${mr(r[0])}Width`]:`calc(${e} * calc(1 - var(--tw-divide-${t}-reverse)))`,[`border-${mr(r[1])}Width`]:`calc(${e} * var(--tw-divide-${t}-reverse))`}}}),kt("divide-",{property:"borderColor",selector:"&>:not([hidden])~:not([hidden])"}),B("ring-opacity(?:$|-)","ringOpacity","--tw-ring-opacity"),kt("ring-offset-",{property:"--tw-ring-offset-color",opacityVariable:!1}),B("ring-offset(?:$|-)","ringOffsetWidth","--tw-ring-offset-width"),R("ring-inset",{"--tw-ring-inset":"inset"}),kt("ring-",{property:"--tw-ring-color"}),B("ring(?:$|-)","ringWidth",({_:t},{theme:e})=>({...Ke({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","&":{"--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":e("ringOffsetWidth","","0px"),"--tw-ring-offset-color":pe(e("ringOffsetColor","","#fff")),"--tw-ring-color":pe(e("ringColor","","#93c5fd"),{opacityVariable:"--tw-ring-opacity"}),"--tw-ring-opacity":e("ringOpacity","","0.5")}}),"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":`var(--tw-ring-inset) 0 0 0 calc(${t} + var(--tw-ring-offset-width)) var(--tw-ring-color)`,boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),kt("shadow-",{section:"boxShadowColor",opacityVariable:!1,opacitySection:"opacity"},({_:t})=>({"--tw-shadow-color":t.value,"--tw-shadow":"var(--tw-shadow-colored)"})),B("shadow(?:$|-)","boxShadow",({_:t})=>({...Ke({"--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000"}),"--tw-shadow":we(t),"--tw-shadow-colored":we(t).replace(/([^,]\s+)(?:#[a-f\d]+|(?:(?:hsl|rgb)a?|hwb|lab|lch|color|var)\(.+?\)|[a-z]+)(,|$)/g,"$1var(--tw-shadow-color)$2"),boxShadow:"var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)"})),B("(opacity)-"),R("mix-blend-","mixBlendMode"),..._h(),..._h("backdrop-"),B("transition(?:$|-)","transitionProperty",(t,{theme:e})=>({transitionProperty:we(t),transitionTimingFunction:t._=="none"?void 0:we(e("transitionTimingFunction","")),transitionDuration:t._=="none"?void 0:we(e("transitionDuration",""))})),B("duration(?:$|-)","transitionDuration","transitionDuration",we),B("ease(?:$|-)","transitionTimingFunction","transitionTimingFunction",we),B("delay(?:$|-)","transitionDelay","transitionDelay",we),B("animate(?:$|-)","animation",(t,{theme:e,h:r,e:i})=>{let n=we(t),s=n.split(" "),o=e("keyframes",s[0]);return o?{["@keyframes "+(s[0]=i(r(s[0])))]:o,animation:s.join(" ")}:{animation:n}}),"(transform)-(none)",R("transform",Uo),R("transform-(cpu|gpu)",({1:t})=>({"--tw-transform":Eh(t=="gpu")})),B("scale(-[xy])?-","scale",({1:t,_:e})=>({["--tw-scale"+(t||"-x")]:e,["--tw-scale"+(t||"-y")]:e,...Uo()})),B("-?(rotate)-","rotate",qo),B("-?(translate-[xy])-","translate",qo),B("-?(skew-[xy])-","skew",qo),R("origin-(center|((top|bottom)(-(left|right))?)|left|right)","transformOrigin",$n),"(appearance)-",B("(columns)-"),"(columns)-(\\d+)","(break-(?:before|after|inside))-",B("(cursor)-"),"(cursor)-",R("snap-(none)","scroll-snap-type"),R("snap-(x|y|both)",({1:t})=>({...Ke({"--tw-scroll-snap-strictness":"proximity"}),"scroll-snap-type":t+" var(--tw-scroll-snap-strictness)"})),R("snap-(mandatory|proximity)","--tw-scroll-snap-strictness"),R("snap-(?:(start|end|center)|align-(none))","scroll-snap-align"),R("snap-(normal|always)","scroll-snap-stop"),R("scroll-(auto|smooth)","scroll-behavior"),B("scroll-p([xytrbl])?(?:$|-)","padding",$r("scroll-padding")),B("-?scroll-m([xytrbl])?(?:$|-)","scroll-margin",$r("scroll-margin")),R("touch-(auto|none|manipulation)","touch-action"),R("touch-(pinch-zoom|pan-(?:(x|left|right)|(y|up|down)))",({1:t,2:e,3:r})=>({...Ke({"--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-touch-action":"var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)"}),[`--tw-${e?"pan-x":r?"pan-y":t}`]:t,"touch-action":"var(--tw-touch-action)"})),R("outline-none",{outline:"2px solid transparent","outline-offset":"2px"}),R("outline",{outlineStyle:"solid"}),R("outline-(dashed|dotted|double)","outlineStyle"),B("-?(outline-offset)-"),kt("outline-",{opacityVariable:!1,opacitySection:"opacity"}),B("outline-","outlineWidth"),"(pointer-events)-",B("(will-change)-"),"(will-change)-",["resize(?:-(none|x|y))?","resize",({1:t})=>({x:"horizontal",y:"vertical"})[t]||t||"both"],R("select-(none|text|all|auto)","userSelect"),kt("fill-",{section:"fill",opacityVariable:!1,opacitySection:"opacity"}),kt("stroke-",{section:"stroke",opacityVariable:!1,opacitySection:"opacity"}),B("stroke-","strokeWidth"),R("sr-only",{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",whiteSpace:"nowrap",clip:"rect(0,0,0,0)",borderWidth:"0"}),R("not-sr-only",{position:"static",width:"auto",height:"auto",padding:"0",margin:"0",overflow:"visible",whiteSpace:"normal",clip:"auto"})];function $n(t){return(typeof t=="string"?t:t[1]).replace(/-/g," ").trim()}function vh(t){return(typeof t=="string"?t:t[1]).replace("col","column")}function mr(t,e="-"){let r=[];for(let i of t)r.push({t:"top",r:"right",b:"bottom",l:"left"}[i]);return r.join(e)}function we(t){return t&&""+(t._||t)}function bh({$$:t}){return({r:"flex-","":"flex-",w:"space-",u:"space-",n:"space-"}[t[3]||""]||"")+t}function $r(t,e=""){return({1:r,_:i})=>{let n={x:"lr",y:"tb"}[r]||r+r;return n?{..._i(t+"-"+mr(n[0])+e,i),..._i(t+"-"+mr(n[1])+e,i)}:_i(t+e,i)}}function _h(t=""){let e=["blur","brightness","contrast","grayscale","hue-rotate","invert",t&&"opacity","saturate","sepia",!t&&"drop-shadow"].filter(Boolean),r={};for(let i of e)r[`--tw-${t}${i}`]="var(--tw-empty,/*!*/ /*!*/)";return r={...Ke(r),[`${t}filter`]:e.map(i=>`var(--tw-${t}${i})`).join(" ")},[`(${t}filter)-(none)`,R(`${t}filter`,r),...e.map(i=>B(`${i[0]=="h"?"-?":""}(${t}${i})(?:$|-)`,i,({1:n,_:s})=>({[`--tw-${n}`]:gt(s).map(o=>`${i}(${o})`).join(" "),...r})))]}function qo({1:t,_:e}){return{["--tw-"+t]:e,...Uo()}}function Uo(){return{...Ke({"--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-transform":Eh()}),transform:"var(--tw-transform)"}}function Eh(t){return[t?"translate3d(var(--tw-translate-x),var(--tw-translate-y),0)":"translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y))","rotate(var(--tw-rotate))","skewX(var(--tw-skew-x))","skewY(var(--tw-skew-y))","scaleX(var(--tw-scale-x))","scaleY(var(--tw-scale-y))"].join(" ")}function wh({1:t,2:e}){return`${t} ${e} / ${t} ${e}`}function xh({1:t}){return`repeat(${t},minmax(0,1fr))`}function Ke(t){return{"@layer defaults":{"*,::before,::after":t,"::backdrop":t}}}var kh=[["sticky","@supports ((position: -webkit-sticky) or (position:sticky))"],["motion-reduce","@media (prefers-reduced-motion:reduce)"],["motion-safe","@media (prefers-reduced-motion:no-preference)"],["print","@media print"],["(portrait|landscape)",({1:t})=>`@media (orientation:${t})`],["contrast-(more|less)",({1:t})=>`@media (prefers-contrast:${t})`],["(first-(letter|line)|placeholder|backdrop|before|after)",({1:t})=>`&::${t}`],["(marker|selection)",({1:t})=>`& *::${t},&::${t}`],["file","&::file-selector-button"],["(first|last|only)",({1:t})=>`&:${t}-child`],["even","&:nth-child(2n)"],["odd","&:nth-child(odd)"],["open","&[open]"],["(aria|data)-",({1:t,$$:e},r)=>e&&`&[${t}-${r.theme(t,e)||Pe(e,"",r)||`${e}="true"`}]`],["((group|peer)(~[^-[]+)?)(-\\[(.+)]|[-[].+?)(\\/.+)?",({2:t,3:e="",4:r,5:i="",6:n=e},{e:s,h:o,v:a})=>{let l=Or(i)||(r[0]=="["?r:a(r.slice(1)));return`${(l.includes("&")?l:"&"+l).replace(/&/g,`:merge(.${s(o(t+n))})`)}${t[0]=="p"?"~":" "}&`}],["(ltr|rtl)",({1:t})=>`[dir="${t}"] &`],["supports-",({$$:t},e)=>{if(t&&(t=e.theme("supports",t)||Pe(t,"",e)),t)return t.includes(":")||(t+=":var(--tw)"),/^\w*\s*\(/.test(t)||(t=`(${t})`),`@supports ${t.replace(/\b(and|or|not)\b/g," $1 ").trim()}`}],["max-",({$$:t},e)=>{if(t&&(t=e.theme("screens",t)||Pe(t,"",e)),typeof t=="string")return`@media not all and (min-width:${t})`}],["min-",({$$:t},e)=>(t&&(t=Pe(t,"",e)),t&&`@media (min-width:${t})`)],[/^\[(.+)]$/,({1:t})=>/[&@]/.test(t)&&Or(t).replace(/[}]+$/,"").split("{")]];function Ph({colors:t,disablePreflight:e}={}){return{preflight:e?void 0:yh,theme:{...Si,colors:{inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",...t}},variants:kh,rules:Sh,finalize(r){return r.n&&r.d&&r.r.some(i=>/^&::(before|after)$/.test(i))&&!/(^|;)content:/.test(r.d)?{...r,d:"content:var(--tw-content);"+r.d}:r}}}var xf={50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a"},Sf={50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827"},Ef={50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b"},kf={50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717"},Pf={50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917"},Af={50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d"},Cf={50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12"},Tf={50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f"},Mf={50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12"},Ff={50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314"},Df={50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d"},If={50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b"},Lf={50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a"},Of={50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63"},$f={50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e"},Vf={50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a"},Rf={50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81"},Bf={50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95"},zf={50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87"},Hf={50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75"},Nf={50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843"},jf={50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337"},Ah={__proto__:null,slate:xf,gray:Sf,zinc:Ef,neutral:kf,stone:Pf,red:Af,orange:Cf,amber:Tf,yellow:Mf,lime:Ff,green:Df,emerald:If,teal:Lf,cyan:Of,sky:$f,blue:Vf,indigo:Rf,violet:Bf,purple:zf,fuchsia:Hf,pink:Nf,rose:jf};function Vn({disablePreflight:t}={}){return Ph({colors:Ah,disablePreflight:t})}var Gf=new Map([["align-self","-ms-grid-row-align"],["color-adjust","-webkit-print-color-adjust"],["column-gap","grid-column-gap"],["forced-color-adjust","-ms-high-contrast-adjust"],["gap","grid-gap"],["grid-template-columns","-ms-grid-columns"],["grid-template-rows","-ms-grid-rows"],["justify-self","-ms-grid-column-align"],["margin-inline-end","-webkit-margin-end"],["margin-inline-start","-webkit-margin-start"],["mask-border","-webkit-mask-box-image"],["mask-border-outset","-webkit-mask-box-image-outset"],["mask-border-slice","-webkit-mask-box-image-slice"],["mask-border-source","-webkit-mask-box-image-source"],["mask-border-repeat","-webkit-mask-box-image-repeat"],["mask-border-width","-webkit-mask-box-image-width"],["overflow-wrap","word-wrap"],["padding-inline-end","-webkit-padding-end"],["padding-inline-start","-webkit-padding-start"],["print-color-adjust","color-adjust"],["row-gap","grid-row-gap"],["scroll-margin-bottom","scroll-snap-margin-bottom"],["scroll-margin-left","scroll-snap-margin-left"],["scroll-margin-right","scroll-snap-margin-right"],["scroll-margin-top","scroll-snap-margin-top"],["scroll-margin","scroll-snap-margin"],["text-combine-upright","-ms-text-combine-horizontal"]]);function Ch(t){return Gf.get(t)}function Th(t){var e=/^(?:(text-(?:decoration$|e|or|si)|back(?:ground-cl|d|f)|box-d|mask(?:$|-[ispro]|-cl)|pr|hyphena|flex-d)|(tab-|column(?!-s)|text-align-l)|(ap)|u|hy)/i.exec(t);return e?e[1]?1:e[2]?2:e[3]?3:5:0}function Mh(t,e){var r=/^(?:(pos)|(cli)|(background-i)|(flex(?:$|-b)|(?:max-|min-)?(?:block-s|inl|he|widt))|dis)/i.exec(t);return r?r[1]?/^sti/i.test(e)?1:0:r[2]?/^pat/i.test(e)?1:0:r[3]?/^image-/i.test(e)?1:0:r[4]?e[3]==="-"?2:0:/^(?:inline-)?grid$/i.test(e)?4:0:0}var qf=[["-webkit-",1],["-moz-",2],["-ms-",4]];function Rn(){return({stringify:t})=>({stringify(e,r,i){let n="",s=Ch(e);s&&(n+=t(s,r,i)+";");let o=Th(e),a=Mh(e,r);for(let l of qf)o&l[1]&&(n+=t(l[0]+e,r,i)+";"),a&l[1]&&(n+=t(e,l[0]+r,i)+";");return n+t(e,r,i)}})}function Bn(){return{rules:[["line-clamp-none",{"-webkit-line-clamp":"unset"}],["line-clamp-",Go("lineClamp",({_:t})=>Fh(t))],["line-clamp-(\\d+)",({1:t})=>Fh(t)]]}}function Fh(t){return{overflow:"hidden",display:"-webkit-box","-webkit-box-orient":"vertical","-webkit-line-clamp":`${t}`}}function zn({className:t="prose",defaultColor:e="gray",extend:r={},colors:i={}}={}){return i={body:"700",headings:"900",lead:"600",links:"900",bold:"900",counters:"500",bullets:"300",hr:"200",quotes:"900","quote-borders":"200",captions:"500",code:"900","pre-code":"200","pre-bg":"800","th-borders":"300","td-borders":"200",...i,dark:i.dark===null?null:{body:"300",headings:"#fff",lead:"400",links:"#fff",bold:"#fff",counters:"400",bullets:"600",hr:"700",quotes:"100","quote-borders":"700",captions:"400",code:"#fff","pre-code":"300","pre-bg":"rgb(0 0 0 / 50%)","th-borders":"600","td-borders":"700",...i.dark}},{variants:[["headings","h1,h2,h3,h4,h5,h6,th"],["h1"],["h2"],["h3"],["h4"],["h5"],["h6"],["p"],["a"],["blockquote"],["figure"],["figcaption"],["strong"],["em"],["code"],["pre"],["ol"],["ul"],["li"],["table"],["thead"],["tr"],["th"],["td"],["img"],["video"],["hr"],["lead",".lead"]].map(([s,o=s])=>[`${t}-${s}`,(a,l)=>Lh(t,o[0]=="."?"."+l.e(l.h(o.slice(1))):o,l,h=>`& :is(${h.trim()})`)]),rules:[[`(lead|not-${t})`,({1:s},{h:o})=>[{c:o(s)}]],[`${t}-invert`,{"@layer base":{"--tw-prose-body":"var(--tw-prose-invert-body)","--tw-prose-headings":"var(--tw-prose-invert-headings)","--tw-prose-lead":"var(--tw-prose-invert-lead)","--tw-prose-links":"var(--tw-prose-invert-links)","--tw-prose-bold":"var(--tw-prose-invert-bold)","--tw-prose-counters":"var(--tw-prose-invert-counters)","--tw-prose-bullets":"var(--tw-prose-invert-bullets)","--tw-prose-hr":"var(--tw-prose-invert-hr)","--tw-prose-quotes":"var(--tw-prose-invert-quotes)","--tw-prose-quote-borders":"var(--tw-prose-invert-quote-borders)","--tw-prose-captions":"var(--tw-prose-invert-captions)","--tw-prose-code":"var(--tw-prose-invert-code)","--tw-prose-pre-code":"var(--tw-prose-invert-pre-code)","--tw-prose-pre-bg":"var(--tw-prose-invert-pre-bg)","--tw-prose-th-borders":"var(--tw-prose-invert-th-borders)","--tw-prose-td-borders":"var(--tw-prose-invert-td-borders)"}}],[t+"-",({$$:s},o)=>{let a=Ih(o.theme("fontSize",s));return a&&{"@layer components":a}}],[t+"-",({$$:s},o)=>n(s,o)],[t,(s,o)=>({...n(e,o),"@layer base":[Dh(t,o,{a:{color:"var(--tw-prose-links)",textDecorationLine:"underline",fontWeight:"500"},strong:{color:"var(--tw-prose-bold)",fontWeight:"600"},"a strong,blockquote strong,thead th strong":{color:"inherit"},ul:{listStyleType:"disc"},ol:{listStyleType:"decimal"},'ol[type="A"]':{listStyleType:"upper-alpha"},'ol[type="a"]':{listStyleType:"lower-alpha"},'ol[type="A" s]':{listStyleType:"upper-alpha"},'ol[type="a" s]':{listStyleType:"lower-alpha"},'ol[type="I"]':{listStyleType:"upper-roman"},'ol[type="i"]':{listStyleType:"lower-roman"},'ol[type="I" s]':{listStyleType:"upper-roman"},'ol[type="i" s]':{listStyleType:"lower-roman"},'ol[type="1"]':{listStyleType:"decimal"},"ol,ul":{marginTop:U(20,16),marginBottom:U(20,16),paddingLeft:U(26,16)},li:{marginTop:U(8,16),marginBottom:U(8,16)},"ol>li,ul>li":{paddingLeft:U(6,16)},">ul>li p":{marginTop:U(12,16),marginBottom:U(12,16)},">ul>li>*:first-child,>ol>li>*:last-child":{marginTop:U(20,16)},">ul>li>*:last-child,>ol>li>*:last-child":{marginBottom:U(20,16)},"ol>li::marker":{fontWeight:"400",color:"var(--tw-prose-counters)"},"ul>li::marker":{color:"var(--tw-prose-bullets)"},"ul ul,ul ol,ol ul,ol ol":{marginTop:U(12,16),marginBottom:U(12,16)},hr:{borderColor:"var(--tw-prose-hr)",borderTopWidth:"1",marginTop:U(48,16),marginBottom:U(48,16)},blockquote:{marginTop:U(32,20),marginBottom:U(32,20),paddingLeft:U(20,20),fontWeight:"500",fontStyle:"italic",color:"var(--tw-prose-quotes)",borderLeftWidth:"0.25rem",borderLeftColor:"var(--tw-prose-quote-borders)",quotes:'"\\201C""\\201D""\\2018""\\2019"'},"blockquote p:first-of-type::before":{content:"open-quote"},"blockquote p:last-of-type::after":{content:"close-quote"},p:{marginTop:U(20,16),marginBottom:U(20,16)},h1:{color:"var(--tw-prose-headings)",fontWeight:"800",fontSize:U(36,16),marginTop:"0",marginBottom:U(32,36),lineHeight:1.15},"h1 strong":{fontWeight:"900",color:"inherit"},h2:{color:"var(--tw-prose-headings)",fontWeight:"700",fontSize:U(24,16),marginTop:U(48,24),marginBottom:U(24,24),lineHeight:"1.35"},"h2 strong":{fontWeight:"800",color:"inherit"},h3:{color:"var(--tw-prose-headings)",fontWeight:"600",fontSize:U(20,16),marginTop:U(32,20),marginBottom:U(12,20),lineHeight:"1.6"},"h3 strong":{fontWeight:"700",color:"inherit"},h4:{color:"var(--tw-prose-headings)",fontWeight:"600",marginTop:U(24,16),marginBottom:U(8,16),lineHeight:"1.5"},"h4 strong":{fontWeight:"700",color:"inherit"},"hr+*,h2+*,h3+*,h4+*":{marginTop:"0"},"img,video,figure":{marginTop:U(32,16),marginBottom:U(32,16)},"figure>*":{marginTop:"0",marginBottom:"0"},figcaption:{color:"var(--tw-prose-captions)",fontSize:U(14,16),lineHeight:"1.4",marginTop:U(12,14)},code:{color:"var(--tw-prose-code)",fontWeight:"600",fontSize:U(14,16)},"code::before,code::after":{content:'"`"'},"h2 code":{fontSize:U(21,24)},"h3 code":{fontSize:U(18,20)},"a code,h1 code,h2 code,h3 code,h4 code,blockquote code,thead th code":{color:"inherit"},pre:{color:"var(--tw-prose-pre-code)",backgroundColor:"var(--tw-prose-pre-bg)",overflowX:"auto",fontWeight:"400",fontSize:U(14,16),lineHeight:"1.7",marginTop:U(24,14),marginBottom:U(24,14),borderRadius:"0.375rem",paddingTop:U(12,14),paddingRight:U(16,14),paddingBottom:U(12,14),paddingLeft:U(16,14)},"pre code":{backgroundColor:"transparent",borderWidth:"0",borderRadius:"0",padding:"0",fontWeight:"inherit",color:"inherit",fontSize:"inherit",fontFamily:"inherit",lineHeight:"inherit"},"pre code::before":{content:"none"},"pre code::after":{content:"none"},table:{width:"100%",tableLayout:"auto",textAlign:"left",marginTop:U(32,16),marginBottom:U(32,16),fontSize:U(14,16),lineHeight:"1.7"},thead:{borderBottomWidth:"1px",borderBottomColor:"var(--tw-prose-th-borders)"},"thead th":{color:"var(--tw-prose-headings)",fontWeight:"600",verticalAlign:"bottom",paddingRight:U(8,14),paddingBottom:U(8,14),paddingLeft:U(8,14)},"thead th:first-child":{paddingLeft:"0"},"thead th:last-child":{paddingRight:"0"},"tbody tr":{borderBottomWidth:"1px",borderBottomColor:"var(--tw-prose-td-borders)"},"tbody tr:last-child":{borderBottomWidth:"0"},"tbody td,tfoot td":{verticalAlign:"baseline",paddingTop:U(8,14),paddingRight:U(8,14),paddingBottom:U(8,14),paddingLeft:U(8,14)},"tbody td:first-child,tfoot td:first-child":{paddingLeft:"0"},"tbody td:last-child,tfoot td:last-child":{paddingRight:"0"},[`.${o.e(o.h("lead"))}`]:{color:"var(--tw-prose-lead)",fontSize:U(20,16),lineHeight:"1.6",marginTop:U(24,20),marginBottom:U(24,20)},">:first-child":{marginTop:"0"},">:last-child":{marginBottom:"0"}}),Dh(t,o,r)],"@layer components":{...Ih(o.theme("fontSize","base")),color:"var(--tw-prose-body)",maxWidth:"theme(max-w.prose, 65ch)"}})]]};function n(s,o){let a={},l={},h=(c,p,f)=>{let u=o.theme(`colors.${s}.${p}`,p);f["--tw-prose-"+c]=pe(u);let m=f!=l&&o.d("colors",`${s}-${p}`,u);m&&(l["--tw-prose-"+c]=pe(m))};for(let c in i){let p=i[c];c!="dark"&&p&&h(c,p,a)}for(let c in i.dark||{}){let p=i.dark[c];p&&(i.dark?h("invert-"+c,p,a):h(c,p,l))}return Object.keys(a).length?{"@layer defaults":{"&":a,[o.v("dark")]:l}}:void 0}}function Dh(t,e,r){let i={};for(let n in r)i[Lh(t,n,e,s=>`.${e.e(e.h(t))}${s}`)]=r[n];return i}function Lh(t,e,{e:r,h:i},n){return e.replace(/^[^>:]+$|(>)?((?:[^:,]+(?::[\w-]+)?)|:[\w-]+)(::[\w-]+)?/g,(s,o=" ",a=s,l="")=>n(`${o}:where(${a}):not(:where(.${r(i("not-"+t))} *))${l}`))}function Ih(t){return t?typeof t=="string"?{fontSize:t}:{fontSize:t[0],...typeof t[1]=="string"?{lineHeight:t[1]}:t[1]}:void 0}function U(t,e){return`${(t/e).toFixed(3).replace(/^0|\.?0+$/g,"")}em`}var Wo=wi({darkMode:["class"],theme:{extend:{fontFamily:{sans:["InterVariable","sans-serif"],serif:["Roboto SlabVariable","serif"],mono:["Roboto MonoVariable","monospace"]}}},presets:[Vn(),Rn(),Bn(),zn()],hash:!1});function Hn(t,e=!0){let r=function(){if(Uf)try{let l=On(new CSSStyleSheet);return l.connect=h=>{let c=Zo(h);c.adoptedStyleSheets=[...c.adoptedStyleSheets,l.target]},l.disconnect=Ln,l}catch{}let s=document.createElement("style");s.media="not all",document.head.prepend(s);let o=[On(s)],a=new WeakMap;return{get target(){return o[0].target},snapshot(){let l=o.map(h=>h.snapshot());return()=>l.forEach(h=>h())},clear(){o.forEach(l=>l.clear())},destroy(){o.forEach(l=>l.destroy())},insert(l,h,c){o[0].insert(l,h,c);let p=this.target.cssRules[h];o.forEach((f,u)=>u&&f.target.insertRule(p.cssText,h))},resume(l,h){return o[0].resume(l,h)},connect(l){let h=document.createElement("style");Zo(l).appendChild(h);let c=On(h),{cssRules:p}=this.target;for(let f=0;f<p.length;f++)c.target.insertRule(p[f].cssText,f);o.push(c),a.set(l,c)},disconnect(l){let h=o.indexOf(a.get(l));h>=0&&o.splice(h,1)}}}(),i=mh({...t,hash:t.hash??e},r),n=gh(i);return function(o){return class extends o{connectedCallback(){super.connectedCallback?.(),r.connect(this),n.observe(Zo(this))}disconnectedCallback(){r.disconnect(this),super.disconnectedCallback?.()}constructor(...l){super(...l),this.tw=i}}}}var Uf=typeof ShadowRoot<"u"&&(typeof ShadyCSS>"u"||ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;function Zo(t){return t.shadowRoot||t.attachShadow({mode:"open"})}var Dt=t=>Hn(Wo)(t);var jn,Oh,Nn=class extends Dt(lt){constructor(){super();q(this,jn);this.color="sky-500",this.animated=!1,this.position="top-right"}render(){return J`
|
|
4
4
|
<span class="relative inline-flex">
|
|
5
5
|
<slot></slot>
|
|
6
|
-
<span class="${$(this,
|
|
6
|
+
<span class="${$(this,jn,Oh)} pointer-events-none absolute flex h-3 w-3">
|
|
7
7
|
<span class="bg-${this.color} absolute inline-flex h-3 w-3 animate-ping rounded-full opacity-75"></span>
|
|
8
8
|
<span class="bg-${this.color} relative inline-flex h-3 w-3 rounded-full"></span>
|
|
9
9
|
</span>
|
|
10
10
|
</span>
|
|
11
|
-
`}};
|
|
11
|
+
`}};jn=new WeakSet,Oh=function(){switch(this.position){case"top-left":return"top-0 left-0 -mt-1 -ml-1";case"top-right":return"top-0 right-0 -mt-1 -mr-1";case"bottom-left":return"bottom-0 left-0 -mb-1 -ml-1";case"bottom-right":return"bottom-0 right-0 -mb-1 -mr-1";default:return""}},X(Nn,"properties",{color:{type:String,attribute:"color"},animated:{type:Boolean,attribute:"animated"},position:{type:String,attribute:"position"}});customElements.define("m-pulse-dot",Nn);var qn,$h,Un,Vh,Gn=class extends lt{constructor(){super(...arguments);q(this,qn);q(this,Un);X(this,"render",()=>J`<slot></slot>`)}updated(){let r=$(this,Un,Vh);r&&r instanceof SVGElement&&(r.style.maxWidth="100%",r.style.maxHeight="100%",r.style.lineHeight="0",r.style.display="inline-block")}};qn=new WeakSet,$h=function(){return this.renderRoot.querySelector("slot")},Un=new WeakSet,Vh=function(){return $(this,qn,$h)?.assignedElements().find(r=>r.tagName==="svg")},X(Gn,"styles",$t`
|
|
12
12
|
:host {
|
|
13
13
|
display: inline-block;
|
|
14
14
|
line-height: 0;
|
|
15
15
|
}
|
|
16
|
-
`);customElements.define("svg-full-size",
|
|
16
|
+
`);customElements.define("svg-full-size",Gn);var Rh={three_dot_fade:{css:$t`
|
|
17
17
|
svg {
|
|
18
18
|
width: 100%;
|
|
19
19
|
height: 100%;
|
|
20
20
|
display: inline-block;
|
|
21
21
|
}
|
|
22
|
-
`,html:
|
|
22
|
+
`,html:J`
|
|
23
23
|
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 100 100" xml:space="preserve">
|
|
24
24
|
<circle fill="currentFill" stroke="none" cx="27" cy="50" r="6">
|
|
25
25
|
<animate attributeName="opacity" dur="1s" values="0;1;0" repeatCount="indefinite" begin="0.1" />
|
|
@@ -31,16 +31,16 @@ var sf=Object.defineProperty;var of=(t,e,r)=>e in t?sf(t,e,{enumerable:!0,config
|
|
|
31
31
|
<animate attributeName="opacity" dur="1s" values="0;1;0" repeatCount="indefinite" begin="0.3" />
|
|
32
32
|
</circle>
|
|
33
33
|
</svg>
|
|
34
|
-
`}},
|
|
34
|
+
`}},Ei=class extends lt{constructor(){super();X(this,"render",()=>Rh[this.variant].html);this.variant="three_dot_fade"}};X(Ei,"styles",[$t`
|
|
35
35
|
:host {
|
|
36
36
|
display: inline-block;
|
|
37
37
|
line-height: 0;
|
|
38
38
|
}
|
|
39
|
-
`,...Object.values(
|
|
39
|
+
`,...Object.values(Rh).map(r=>r.css)]),X(Ei,"properties",{variant:{type:String}});customElements.define("pure-svg-loader",Ei);var ki=class extends Dt(lt){constructor(){super(...arguments);X(this,"variant","gradient")}render(){switch(console.assert(["plain","gradient","artistic","plain-circle"].includes(this.variant),`invalid variant: ${this.variant}`),this.variant){case"plain":return J`
|
|
40
40
|
<svg class="h-full w-full" width="1271" height="1033" viewBox="0 0 1271 1033" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
41
41
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M97.4392 133.408C105.478 129.223 141.243 181.205 184.368 257.674L221.848 326.916L221.848 326.917C222.945 329.024 224.035 331.125 225.118 333.219C235.831 353.94 245.856 374.03 255 393.021C259.723 402.831 264.212 412.347 268.439 421.506L546.251 902.69C546.35 902.862 546.45 903.034 546.55 903.206L546.649 903.375L546.775 903.59C547.016 904.012 547.257 904.434 547.501 904.855C581.316 963.425 637.012 1006.16 702.338 1023.67C767.664 1041.17 837.268 1032.01 895.837 998.192L768.337 777.355L767.092 775.199L767.087 775.19L394.587 130.001C394.413 129.7 394.238 129.4 394.063 129.101C393.822 128.679 393.58 128.257 393.337 127.836C359.522 69.2666 303.825 26.5289 238.499 9.02497C188.356 -4.41082 134.739 -2.31118 86.4354 14.7574C36.1663 31.8487 0 79.451 0 135.5V766.628C0 766.993 0.00153266 767.357 0.00459176 767.721C0.00153139 768.231 0 768.741 0 769.251C4.86753e-06 836.815 26.866 901.611 74.6878 949.386C122.51 997.161 187.37 1024 255 1024V769.251V766.639V766.628V471.521C234.291 438.018 209.693 394.526 184.594 346.31C126.172 234.083 87.1516 138.763 97.4392 133.408ZM419.999 34.5C478.569 0.684898 548.173 -8.47859 613.498 9.02539C678.824 26.5294 734.521 69.267 768.336 127.836C768.579 128.258 768.821 128.679 769.062 129.102C769.237 129.401 769.412 129.701 769.586 130.002L1142.09 775.19L1142.09 775.199L1143.34 777.356L1270.84 998.192C1212.27 1032.01 1142.66 1041.17 1077.34 1023.67C1012.01 1006.16 956.315 963.425 922.499 904.856C922.256 904.434 922.014 904.013 921.774 903.59C921.598 903.291 921.423 902.991 921.249 902.69L548.749 257.502L548.744 257.492L547.499 255.336L419.999 34.5Z" fill="currentColor" />
|
|
42
42
|
</svg>
|
|
43
|
-
`;case"gradient":return
|
|
43
|
+
`;case"gradient":return J`
|
|
44
44
|
<svg class="h-full w-full" width="1271" height="1033" viewBox="0 0 1271 1033" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
45
45
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M97.4392 133.408C105.478 129.223 141.243 181.205 184.368 257.674L221.848 326.916L221.848 326.917C222.945 329.024 224.035 331.125 225.118 333.219C235.831 353.94 245.856 374.03 255 393.021C259.723 402.831 264.212 412.347 268.439 421.506L546.251 902.69C546.35 902.862 546.45 903.034 546.55 903.206L546.649 903.375L546.775 903.59C547.016 904.012 547.257 904.434 547.501 904.855C581.316 963.425 637.012 1006.16 702.338 1023.67C767.664 1041.17 837.268 1032.01 895.837 998.192L768.337 777.355L767.092 775.199L767.087 775.19L394.587 130.001C394.413 129.7 394.238 129.4 394.063 129.101C393.822 128.679 393.58 128.257 393.337 127.836C359.522 69.2666 303.825 26.5289 238.499 9.02497C188.356 -4.41082 134.739 -2.31118 86.4354 14.7574C36.1663 31.8487 0 79.451 0 135.5V766.628C0 766.993 0.00153266 767.357 0.00459176 767.721C0.00153139 768.231 0 768.741 0 769.251C4.86753e-06 836.815 26.866 901.611 74.6878 949.386C122.51 997.161 187.37 1024 255 1024V769.251V766.639V766.628V471.521C234.291 438.018 209.693 394.526 184.594 346.31C126.172 234.083 87.1516 138.763 97.4392 133.408ZM419.999 34.5C478.569 0.684898 548.173 -8.47859 613.498 9.02539C678.824 26.5294 734.521 69.267 768.336 127.836C768.579 128.258 768.821 128.679 769.062 129.102C769.237 129.401 769.412 129.701 769.586 130.002L1142.09 775.19L1142.09 775.199L1143.34 777.356L1270.84 998.192C1212.27 1032.01 1142.66 1041.17 1077.34 1023.67C1012.01 1006.16 956.315 963.425 922.499 904.856C922.256 904.434 922.014 904.013 921.774 903.59C921.598 903.291 921.423 902.991 921.249 902.69L548.749 257.502L548.744 257.492L547.499 255.336L419.999 34.5Z" fill="url(#paint0_linear_215_647)" />
|
|
46
46
|
<defs>
|
|
@@ -50,7 +50,7 @@ var sf=Object.defineProperty;var of=(t,e,r)=>e in t?sf(t,e,{enumerable:!0,config
|
|
|
50
50
|
</linearGradient>
|
|
51
51
|
</defs>
|
|
52
52
|
</svg>
|
|
53
|
-
`;case"artistic":return
|
|
53
|
+
`;case"artistic":return J`
|
|
54
54
|
<svg class="h-full w-full" width="1263" height="1037" viewBox="0 0 1263 1037" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
55
55
|
<mask id="mask0_219_544" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="1263" height="1037">
|
|
56
56
|
<rect width="1263" height="1037" fill="#D9D9D9" />
|
|
@@ -121,7 +121,7 @@ var sf=Object.defineProperty;var of=(t,e,r)=>e in t?sf(t,e,{enumerable:!0,config
|
|
|
121
121
|
</linearGradient>
|
|
122
122
|
</defs>
|
|
123
123
|
</svg>
|
|
124
|
-
`;case"plain-circle":return
|
|
124
|
+
`;case"plain-circle":return J`
|
|
125
125
|
<svg class="h-full w-full" width="1600" height="1600" viewBox="0 0 1600 1600" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
126
126
|
<g clip-path="url(#clip0_1347_2815)">
|
|
127
127
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M800 1600C1241.83 1600 1600 1241.83 1600 800C1600 358.172 1241.83 0 800 0C358.172 0 0 358.172 0 800C0 1241.83 358.172 1600 800 1600ZM1053.93 1204.94C1004.11 1233.7 944.905 1241.5 889.338 1226.61C833.772 1211.72 786.395 1175.37 757.632 1125.55C757.546 1125.4 757.46 1125.25 757.375 1125.1C757.312 1124.99 757.248 1124.88 757.185 1124.77L757.051 1124.53C756.97 1124.4 756.89 1124.26 756.81 1124.12C756.729 1123.98 756.648 1123.85 756.567 1123.71L520.274 714.434C516.674 706.633 512.851 698.527 508.828 690.171V690.175C500.263 672.388 490.791 653.467 480.628 633.946C430.934 538.484 383.555 464.79 374.805 469.345C366.054 473.901 399.245 554.98 448.939 650.442C470.289 691.455 491.212 728.45 508.828 756.948V793.508H508.83V1010.2V1226.89C451.303 1226.89 396.132 1204.06 355.455 1163.43C314.777 1122.79 291.925 1067.67 291.925 1010.2C291.925 1009.83 291.925 1009.45 291.927 1009.08C291.924 1008.71 291.922 1008.34 291.922 1007.97V471.125C291.922 423.461 322.67 382.979 365.413 368.431C406.508 353.902 452.128 352.113 494.791 363.544C550.357 378.433 597.734 414.786 626.497 464.606C626.705 464.966 626.911 465.326 627.117 465.687C627.194 465.819 627.272 465.951 627.349 466.083C627.42 466.205 627.49 466.326 627.561 466.448L837.024 829.249L837.025 829.249L945.478 1017.09L1053.93 1204.94ZM813.776 363.545C758.21 348.656 699.004 356.451 649.184 385.214L757.637 573.06L758.402 574.384C758.5 574.557 758.599 574.729 758.698 574.901L1075.55 1123.71C1075.71 1123.98 1075.87 1124.26 1076.03 1124.53L1076.16 1124.76C1076.31 1125.02 1076.46 1125.28 1076.62 1125.55C1105.38 1175.37 1152.75 1211.72 1208.32 1226.61C1263.89 1241.5 1323.09 1233.7 1372.91 1204.94L1264.46 1017.09L1156.01 829.249L1156.01 829.249L946.544 466.448C946.416 466.227 946.288 466.006 946.158 465.785C946.074 465.637 945.99 465.489 945.905 465.341C945.765 465.096 945.624 464.852 945.483 464.607C916.719 414.787 869.343 378.434 813.776 363.545Z" fill="currentColor" />
|
|
@@ -132,47 +132,47 @@ var sf=Object.defineProperty;var of=(t,e,r)=>e in t?sf(t,e,{enumerable:!0,config
|
|
|
132
132
|
</clipPath>
|
|
133
133
|
</defs>
|
|
134
134
|
</svg>
|
|
135
|
-
`}}};X(
|
|
135
|
+
`}}};X(ki,"styles",$t`
|
|
136
136
|
:host {
|
|
137
137
|
display: inline-block;
|
|
138
138
|
width: 32px;
|
|
139
139
|
height: 24px;
|
|
140
140
|
}
|
|
141
|
-
`),X(
|
|
141
|
+
`),X(ki,"properties",{variant:{type:String,attribute:"variant"}});customElements.define("m-logo-icon",ki);var Pi=class extends Dt(lt){constructor(){super(...arguments);X(this,"variant","plain")}render(){return console.assert(this.variant==="plain",`invalid variant: ${this.variant}`),J`
|
|
142
142
|
<svg class="h-full" viewBox="0 0 4092 773" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
143
143
|
<path d="M0.15625 762V686.805L77.3047 672.156V141.395L0.15625 126.746V51.0625H77.3047H253.574L462.07 565.223H465L667.148 51.0625H923.496V126.746L845.859 141.395V672.156L923.496 686.805V762H645.664V686.805L727.207 672.156V506.629L728.184 195.594L725.742 195.105L505.527 745.887H416.172L189.609 198.035L187.168 198.523L193.516 498.328V672.156L277.988 686.805V762H0.15625ZM1236.48 772.254C1185.7 772.254 1142.08 760.861 1105.62 738.074C1069.17 715.288 1041.17 683.712 1021.64 643.348C1002.11 602.658 992.344 555.945 992.344 503.211V492.957C992.344 440.548 1002.11 394.161 1021.64 353.797C1041.17 313.432 1069.17 281.694 1105.62 258.582C1142.08 235.47 1185.38 223.914 1235.51 223.914C1286.29 223.914 1329.91 235.47 1366.37 258.582C1402.83 281.368 1430.82 312.944 1450.35 353.309C1469.88 393.673 1479.65 440.223 1479.65 492.957V503.211C1479.65 555.945 1469.88 602.658 1450.35 643.348C1430.82 683.712 1402.83 715.288 1366.37 738.074C1330.23 760.861 1286.94 772.254 1236.48 772.254ZM1236.48 677.527C1263.83 677.527 1286.29 670.203 1303.87 655.555C1321.77 640.581 1335.12 620.073 1343.91 594.031C1352.7 567.664 1357.09 537.391 1357.09 503.211V492.957C1357.09 459.103 1352.7 429.155 1343.91 403.113C1335.12 377.072 1321.77 356.564 1303.87 341.59C1285.96 326.616 1263.18 319.129 1235.51 319.129C1208.49 319.129 1186.03 326.616 1168.12 341.59C1150.22 356.564 1136.88 377.072 1128.09 403.113C1119.62 429.155 1115.39 459.103 1115.39 492.957V503.211C1115.39 537.391 1119.62 567.664 1128.09 594.031C1136.88 620.073 1150.22 640.581 1168.12 655.555C1186.35 670.203 1209.14 677.527 1236.48 677.527ZM1531.41 762V686.805L1605.14 672.156V90.6133L1527.01 75.9648V0.28125H1727.7V672.156L1801.43 686.805V762H1531.41ZM1853.67 762V686.805L1926.91 672.156V324.012L1849.28 309.363V233.68H2049.96V672.156L2122.71 686.805V762H1853.67ZM1922.03 114.051V0.28125H2049.96V114.051H1922.03ZM2175.45 762V686.805L2248.69 672.156V324.012L2171.54 309.363V233.68H2361.97L2368.32 310.34C2385.9 282.996 2407.71 261.837 2433.75 246.863C2460.12 231.564 2489.9 223.914 2523.11 223.914C2577.47 223.914 2619.79 240.678 2650.06 274.207C2680.33 307.41 2695.47 359.493 2695.47 430.457V672.156L2768.71 686.805V762H2503.57V686.805L2572.42 672.156V431.434C2572.42 391.395 2564.45 363.074 2548.5 346.473C2532.55 329.546 2508.78 321.082 2477.21 321.082C2453.44 321.082 2432.61 326.453 2414.71 337.195C2397.13 347.612 2382.81 362.26 2371.74 381.141V672.156L2438.63 686.805V762H2175.45ZM3064.12 762V686.805L3115.88 679.48L3351.23 51.0625H3470.86L3703.28 679.48L3755.04 686.805V762H3528.96V686.805L3579.75 677.527L3542.15 565.711H3277.5L3238.93 677.527L3290.2 686.805V762H3064.12ZM3309.73 471.473H3510.41L3418.12 208.289L3411.78 189.246H3408.85L3402.01 209.266L3309.73 471.473ZM3813.63 762V686.805L3891.27 672.156V141.395L3813.63 126.746V51.0625H4091.46V126.746L4014.32 141.395V672.156L4091.46 686.805V762H3813.63Z" fill="currentColor" />
|
|
144
144
|
</svg>
|
|
145
|
-
`}};X(
|
|
145
|
+
`}};X(Pi,"styles",$t`
|
|
146
146
|
:host {
|
|
147
147
|
display: inline-block;
|
|
148
148
|
height: 18px;
|
|
149
149
|
color: #333;
|
|
150
150
|
}
|
|
151
|
-
`),X(
|
|
151
|
+
`),X(Pi,"properties",{variant:{type:String,attribute:"variant"}});customElements.define("m-logo-type",Pi);var Ai=class extends Dt(lt){constructor(){super(...arguments);X(this,"variant","gradient")}render(){return J`
|
|
152
152
|
<div class="inline-flex items-center gap-x-3">
|
|
153
153
|
<m-logo-icon variant="${this.variant}"></m-logo-icon>
|
|
154
154
|
<m-logo-type class="text-gray-900 dark:text-white"></m-logo-type>
|
|
155
155
|
</div>
|
|
156
|
-
`}};X(
|
|
156
|
+
`}};X(Ai,"styles",$t`
|
|
157
157
|
:host {
|
|
158
158
|
display: inline-block;
|
|
159
159
|
line-height: 0;
|
|
160
160
|
}
|
|
161
|
-
`),X(Pi,"properties",{variant:{type:String,attribute:"variant"}});customElements.define("m-logo",Pi);var Uf='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM7.35 18.5C8.66 17.56 10.26 17 12 17s3.34.56 4.65 1.5c-1.31.94-2.91 1.5-4.65 1.5s-3.34-.56-4.65-1.5zm10.79-1.38a9.947 9.947 0 0 0-12.28 0A7.957 7.957 0 0 1 4 12c0-4.42 3.58-8 8-8s8 3.58 8 8c0 1.95-.7 3.73-1.86 5.12z"/><path d="M12 6c-1.93 0-3.5 1.57-3.5 3.5S10.07 13 12 13s3.5-1.57 3.5-3.5S13.93 6 12 6zm0 5c-.83 0-1.5-.67-1.5-1.5S11.17 8 12 8s1.5.67 1.5 1.5S12.83 11 12 11z"/></svg>',Wf='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="m18 9-1.41-1.42L10 14.17l-2.59-2.58L6 13l4 4zm1-6h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-.14 0-.27.01-.4.04a2.008 2.008 0 0 0-1.44 1.19c-.1.23-.16.49-.16.77v14c0 .27.06.54.16.78s.25.45.43.64c.27.27.62.47 1.01.55.13.02.26.03.4.03h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7-.25c.41 0 .75.34.75.75s-.34.75-.75.75-.75-.34-.75-.75.34-.75.75-.75zM19 19H5V5h14v14z"/></svg>',Zf='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"/></svg>',Yf='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2zm6-6v-5c0-3.07-1.63-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.64 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2zm-2 1H8v-6c0-2.48 1.51-4.5 4-4.5s4 2.02 4 4.5v6z"/></svg>',Xf='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M9 21h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-2c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.58 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2zM9 9l4.34-4.34L12 10h9v2l-3 7H9V9zM1 9h4v12H1z"/></svg>',Kf='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v2c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2zm0 12-4.34 4.34L12 14H3v-2l3-7h9v10zm4-12h4v12h-4z"/></svg>',Jf='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M11 7 9.6 8.4l2.6 2.6H2v2h10.2l-2.6 2.6L11 17l5-5-5-5zm9 12h-8v2h8c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-8v2h8v14z"/></svg>',Qf='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/></svg>',td='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M20 9V7c0-1.1-.9-2-2-2h-3c0-1.66-1.34-3-3-3S9 3.34 9 5H6c-1.1 0-2 .9-2 2v2c-1.66 0-3 1.34-3 3s1.34 3 3 3v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c1.66 0 3-1.34 3-3s-1.34-3-3-3zm-2 10H6V7h12v12zm-9-6c-.83 0-1.5-.67-1.5-1.5S8.17 10 9 10s1.5.67 1.5 1.5S9.83 13 9 13zm7.5-1.5c0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5.67-1.5 1.5-1.5 1.5.67 1.5 1.5zM8 15h8v2H8v-2z"/></svg>',ed='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M9 4v1.38c-.83-.33-1.72-.5-2.61-.5-1.79 0-3.58.68-4.95 2.05l3.33 3.33h1.11v1.11c.86.86 1.98 1.31 3.11 1.36V15H6v3c0 1.1.9 2 2 2h10c1.66 0 3-1.34 3-3V4H9zm-1.11 6.41V8.26H5.61L4.57 7.22a5.07 5.07 0 0 1 1.82-.34c1.34 0 2.59.52 3.54 1.46l1.41 1.41-.2.2a2.7 2.7 0 0 1-1.92.8c-.47 0-.93-.12-1.33-.34zM19 17c0 .55-.45 1-1 1s-1-.45-1-1v-2h-6v-2.59c.57-.23 1.1-.57 1.56-1.03l.2-.2L15.59 14H17v-1.41l-6-5.97V6h8v11z"/></svg>',rd='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M15.5 5H11l5 7-5 7h4.5l5-7z"/><path d="M8.5 5H4l5 7-5 7h4.5l5-7z"/></svg>',id='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"/></svg>',nd='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg>',sd='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="m9.17 6 2 2H20v10H4V6h5.17M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z"/></svg>',od='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="m12 2-5.5 9h11L12 2zm0 3.84L13.93 9h-3.87L12 5.84zM17.5 13c-2.49 0-4.5 2.01-4.5 4.5s2.01 4.5 4.5 4.5 4.5-2.01 4.5-4.5-2.01-4.5-4.5-4.5zm0 7a2.5 2.5 0 0 1 0-5 2.5 2.5 0 0 1 0 5zM3 21.5h8v-8H3v8zm2-6h4v4H5v-4z"/></svg>',ad='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M9 13c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0-6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm0 8c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4zm-6 4c.22-.72 3.31-2 6-2 2.7 0 5.8 1.29 6 2H3zM15.08 7.05c.84 1.18.84 2.71 0 3.89l1.68 1.69c2.02-2.02 2.02-5.07 0-7.27l-1.68 1.69zM20.07 2l-1.63 1.63c2.77 3.02 2.77 7.56 0 10.74L20.07 16c3.9-3.89 3.91-9.95 0-14z"/></svg>',ld='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M15 10c0-.55.45-1 1-1s1 .45 1 1-.45 1-1 1-1-.45-1-1zM8 9h5V7H8v2zm14-1.5v6.97l-2.82.94L17.5 21H12v-2h-2v2H4.5S2 12.54 2 9.5 4.46 4 7.5 4h5c.91-1.21 2.36-2 4-2a1.498 1.498 0 0 1 1.38 2.08c-.14.34-.26.73-.32 1.15l2.27 2.27H22zm-2 2h-1L15.5 6c0-.65.09-1.29.26-1.91-.97.25-1.76.97-2.09 1.91H7.5C5.57 6 4 7.57 4 9.5c0 1.88 1.22 6.65 2.01 9.5H8v-2h6v2h2.01l1.55-5.15 2.44-.82V9.5z"/></svg>',hd='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="m16.66 4.52 2.83 2.83-2.83 2.83-2.83-2.83 2.83-2.83M9 5v4H5V5h4m10 10v4h-4v-4h4M9 15v4H5v-4h4m7.66-13.31L11 7.34 16.66 13l5.66-5.66-5.66-5.65zM11 3H3v8h8V3zm10 10h-8v8h8v-8zm-10 0H3v8h8v-8z"/></svg>',cd='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M13.25 16.74c0 .69-.53 1.26-1.25 1.26-.7 0-1.26-.56-1.26-1.26 0-.71.56-1.25 1.26-1.25.71 0 1.25.55 1.25 1.25zM11.99 6c-1.77 0-2.98 1.15-3.43 2.49l1.64.69c.22-.67.74-1.48 1.8-1.48 1.62 0 1.94 1.52 1.37 2.33-.54.77-1.47 1.29-1.96 2.16-.39.69-.31 1.49-.31 1.98h1.82c0-.93.07-1.12.22-1.41.39-.72 1.11-1.06 1.87-2.17.68-1 .42-2.36-.02-3.08-.51-.84-1.52-1.51-3-1.51zM19 5H5v14h14V5m0-2c1.1 0 2 .9 2 2v14c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2h14z"/></svg>',pd='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M7.25 7.25h4v4h-4zm5.5 0h4v4h-4zm-5.5 5.5h4v4h-4zm5.5 0h4v4h-4z"/><path d="M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H4V6h16v12z"/></svg>',ud='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M3 3v8h8V3H3zm6 6H5V5h4v4zm-6 4v8h8v-8H3zm6 6H5v-4h4v4zm4-16v8h8V3h-8zm6 6h-4V5h4v4zm-6 4v8h8v-8h-8zm6 6h-4v-4h4v4z"/></svg>',fd='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="m12.36 6 .4 2H18v6h-3.36l-.4-2H7V6h5.36M14 4H5v17h2v-7h5.6l.4 2h7V6h-5.6L14 4z"/></svg>',dd='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M16 9v10H8V9h8m-1.5-6h-5l-1 1H5v2h14V4h-3.5l-1-1zM18 7H6v12c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7z"/></svg>',md='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="m14.06 9.02.92.92L5.92 19H5v-.92l9.06-9.06M17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83a.996.996 0 0 0 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29zm-3.6 3.19L3 17.25V21h3.75L17.81 9.94l-3.75-3.75z"/></svg>',gd='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 13-4-4h8z"/></svg>',yd='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="m4.01 6.03 7.51 3.22-7.52-1 .01-2.22m7.5 8.72L4 17.97v-2.22l7.51-1M2.01 3 2 10l15 2-15 2 .01 7L23 12 2.01 3z"/></svg>',vd='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M4 4h16v12H5.17L4 17.17V4m0-2c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2H4zm2 10h8v2H6v-2zm0-3h12v2H6V9zm0-3h12v2H6V6z"/></svg>',bd='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg>',_d='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M20 6h-2.18c.11-.31.18-.65.18-1a2.996 2.996 0 0 0-5.5-1.65l-.5.67-.5-.68C10.96 2.54 10.05 2 9 2 7.34 2 6 3.34 6 5c0 .35.07.69.18 1H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-5-2c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zM9 4c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm11 15H4v-2h16v2zm0-5H4V8h5.08L7 10.83 8.62 12 11 8.76l1-1.36 1 1.36L15.38 12 17 10.83 14.92 8H20v6z"/></svg>',wd='<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 96 960 960"><path d="M180.782 788.435V364.13H260v172.261h160.782V364.13H500v424.305h-79.218V615.609H260v172.826h-79.218Zm519.218 0V443.348h-80V364.13h159.784v424.305H700Z"/></svg>',xd='<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 96 960 960"><path d="M105.869 788.435v-424.87h79.218v172.826h155.695V363.565H420v424.87h-79.218V615.609H185.087v172.826h-79.218Zm434.131 0V615.609q0-32.663 23.147-55.941 23.147-23.277 56.637-23.277h155.129v-93.043H540v-79.783h234.913q33.74 0 56.762 23.146 23.021 23.147 23.021 56.637v93.043q0 32.663-23.146 55.941-23.147 23.277-56.637 23.277H619.784v93.043h234.912v79.783H540Z"/></svg>',Sd='<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 96 960 960"><path d="M105.869 788.435v-424.87h79.218v172.826h155.695V363.565H420v424.87h-79.218V615.609H185.087v172.826h-79.218Zm434.131 0v-79.783h234.913v-93.043H620v-79.218h154.913v-93.043H540v-79.783h234.913q33.74 0 56.762 23.146 23.021 23.147 23.021 56.637v265.304q0 33.49-23.146 56.637-23.147 23.146-56.637 23.146H540Z"/></svg>',Ed='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M15.6 10.79c.97-.67 1.65-1.77 1.65-2.79 0-2.26-1.75-4-4-4H7v14h7.04c2.09 0 3.71-1.7 3.71-3.79 0-1.52-.86-2.82-2.15-3.42zM10 6.5h3c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5h-3v-3zm3.5 9H10v-3h3.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5z"/></svg>',kd='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M10 4v3h2.21l-3.42 8H6v3h8v-3h-2.21l3.42-8H18V4h-8z"/></svg>',Pd='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 17c3.31 0 6-2.69 6-6V3h-2.5v8c0 1.93-1.57 3.5-3.5 3.5S8.5 12.93 8.5 11V3H6v8c0 3.31 2.69 6 6 6zm-7 2v2h14v-2H5z"/></svg>',Ad='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M4 10.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm0-6c-.83 0-1.5.67-1.5 1.5S3.17 7.5 4 7.5 5.5 6.83 5.5 6 4.83 4.5 4 4.5zm0 12c-.83 0-1.5.68-1.5 1.5s.68 1.5 1.5 1.5 1.5-.68 1.5-1.5-.67-1.5-1.5-1.5zM7 19h14v-2H7v2zm0-6h14v-2H7v2zm0-8v2h14V5H7z"/></svg>',Cd='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M2 17h2v.5H3v1h1v.5H2v1h3v-4H2v1zm1-9h1V4H2v1h1v3zm-1 3h1.8L2 13.1v.9h3v-1H3.2L5 10.9V10H2v1zm5-6v2h14V5H7zm0 14h14v-2H7v2zm0-6h14v-2H7v2z"/></svg>',Td='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M20 8V5H6.39l3 3h1.83l-.55 1.28 2.09 2.1L14.21 8zM3.41 4.86 2 6.27l6.97 6.97L6.5 19h3l1.57-3.66L16.73 21l1.41-1.41z"/></svg>',Md='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/></svg>',Fd='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M18.4 10.6C16.55 8.99 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16a8.002 8.002 0 0 1 7.6-5.5c1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/></svg>',Rh={account_circle:Uf,assignment_turned_in:Wf,content_copy:Zf,notifications:Yf,thumb_up:Xf,thumb_down:Kf,login:Jf,add:Qf,smart_toy:td,history_edu:ed,double_arrow:rd,done:id,search:nd,folder:sd,category:od,record_voice_over:ad,savings:ld,widgets:hd,help_center:cd,view_cozy:pd,grid_view:ud,flag:fd,delete:dd,edit:md,arrow_drop_down_circle:gd,send:yd,chat:vd,close:bd,redeem:_d,format_h1:wd,format_h2:xd,format_h3:Sd,format_bold:Ed,format_italic:kd,format_underlined:Pd,format_list_bulleted:Ad,format_list_numbered:Cd,format_clear:Td,undo:Md,redo:Fd};var Ai=class Ai extends HTMLElement{constructor(){super();X(this,"name","");this.attachShadow({mode:"open"}),this.shadowRoot.adoptedStyleSheets=[Ai.styles.styleSheet]}static get observedAttributes(){return["name"]}attributeChangedCallback(r,i,n){if(i===n||!Ai.observedAttributes.includes(r))return;switch(r){case"name":this.name=n||"";break}let s=Rh[this.name];this.name&&!s&&console.warn(`md-icon '${this.name}' not found, please add it to @molin/lit-md/src/icons.js`),this.shadowRoot.innerHTML=s||"";let o=this.shadowRoot?.querySelector("svg");o&&(o.style.width="100%",o.style.height="100%",this.style.lineHeight="0")}};X(Ai,"styles",$t`
|
|
161
|
+
`),X(Ai,"properties",{variant:{type:String,attribute:"variant"}});customElements.define("m-logo",Ai);var Wf='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM7.35 18.5C8.66 17.56 10.26 17 12 17s3.34.56 4.65 1.5c-1.31.94-2.91 1.5-4.65 1.5s-3.34-.56-4.65-1.5zm10.79-1.38a9.947 9.947 0 0 0-12.28 0A7.957 7.957 0 0 1 4 12c0-4.42 3.58-8 8-8s8 3.58 8 8c0 1.95-.7 3.73-1.86 5.12z"/><path d="M12 6c-1.93 0-3.5 1.57-3.5 3.5S10.07 13 12 13s3.5-1.57 3.5-3.5S13.93 6 12 6zm0 5c-.83 0-1.5-.67-1.5-1.5S11.17 8 12 8s1.5.67 1.5 1.5S12.83 11 12 11z"/></svg>',Zf='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="m18 9-1.41-1.42L10 14.17l-2.59-2.58L6 13l4 4zm1-6h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-.14 0-.27.01-.4.04a2.008 2.008 0 0 0-1.44 1.19c-.1.23-.16.49-.16.77v14c0 .27.06.54.16.78s.25.45.43.64c.27.27.62.47 1.01.55.13.02.26.03.4.03h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7-.25c.41 0 .75.34.75.75s-.34.75-.75.75-.75-.34-.75-.75.34-.75.75-.75zM19 19H5V5h14v14z"/></svg>',Yf='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"/></svg>',Xf='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2zm6-6v-5c0-3.07-1.63-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.64 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2zm-2 1H8v-6c0-2.48 1.51-4.5 4-4.5s4 2.02 4 4.5v6z"/></svg>',Kf='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M9 21h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-2c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.58 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2zM9 9l4.34-4.34L12 10h9v2l-3 7H9V9zM1 9h4v12H1z"/></svg>',Jf='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v2c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2zm0 12-4.34 4.34L12 14H3v-2l3-7h9v10zm4-12h4v12h-4z"/></svg>',Qf='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M11 7 9.6 8.4l2.6 2.6H2v2h10.2l-2.6 2.6L11 17l5-5-5-5zm9 12h-8v2h8c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-8v2h8v14z"/></svg>',td='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/></svg>',ed='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M20 9V7c0-1.1-.9-2-2-2h-3c0-1.66-1.34-3-3-3S9 3.34 9 5H6c-1.1 0-2 .9-2 2v2c-1.66 0-3 1.34-3 3s1.34 3 3 3v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c1.66 0 3-1.34 3-3s-1.34-3-3-3zm-2 10H6V7h12v12zm-9-6c-.83 0-1.5-.67-1.5-1.5S8.17 10 9 10s1.5.67 1.5 1.5S9.83 13 9 13zm7.5-1.5c0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5.67-1.5 1.5-1.5 1.5.67 1.5 1.5zM8 15h8v2H8v-2z"/></svg>',rd='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M9 4v1.38c-.83-.33-1.72-.5-2.61-.5-1.79 0-3.58.68-4.95 2.05l3.33 3.33h1.11v1.11c.86.86 1.98 1.31 3.11 1.36V15H6v3c0 1.1.9 2 2 2h10c1.66 0 3-1.34 3-3V4H9zm-1.11 6.41V8.26H5.61L4.57 7.22a5.07 5.07 0 0 1 1.82-.34c1.34 0 2.59.52 3.54 1.46l1.41 1.41-.2.2a2.7 2.7 0 0 1-1.92.8c-.47 0-.93-.12-1.33-.34zM19 17c0 .55-.45 1-1 1s-1-.45-1-1v-2h-6v-2.59c.57-.23 1.1-.57 1.56-1.03l.2-.2L15.59 14H17v-1.41l-6-5.97V6h8v11z"/></svg>',id='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M15.5 5H11l5 7-5 7h4.5l5-7z"/><path d="M8.5 5H4l5 7-5 7h4.5l5-7z"/></svg>',nd='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z"/></svg>',sd='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/></svg>',od='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="m9.17 6 2 2H20v10H4V6h5.17M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z"/></svg>',ad='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="m12 2-5.5 9h11L12 2zm0 3.84L13.93 9h-3.87L12 5.84zM17.5 13c-2.49 0-4.5 2.01-4.5 4.5s2.01 4.5 4.5 4.5 4.5-2.01 4.5-4.5-2.01-4.5-4.5-4.5zm0 7a2.5 2.5 0 0 1 0-5 2.5 2.5 0 0 1 0 5zM3 21.5h8v-8H3v8zm2-6h4v4H5v-4z"/></svg>',ld='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M9 13c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0-6c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm0 8c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4zm-6 4c.22-.72 3.31-2 6-2 2.7 0 5.8 1.29 6 2H3zM15.08 7.05c.84 1.18.84 2.71 0 3.89l1.68 1.69c2.02-2.02 2.02-5.07 0-7.27l-1.68 1.69zM20.07 2l-1.63 1.63c2.77 3.02 2.77 7.56 0 10.74L20.07 16c3.9-3.89 3.91-9.95 0-14z"/></svg>',hd='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M15 10c0-.55.45-1 1-1s1 .45 1 1-.45 1-1 1-1-.45-1-1zM8 9h5V7H8v2zm14-1.5v6.97l-2.82.94L17.5 21H12v-2h-2v2H4.5S2 12.54 2 9.5 4.46 4 7.5 4h5c.91-1.21 2.36-2 4-2a1.498 1.498 0 0 1 1.38 2.08c-.14.34-.26.73-.32 1.15l2.27 2.27H22zm-2 2h-1L15.5 6c0-.65.09-1.29.26-1.91-.97.25-1.76.97-2.09 1.91H7.5C5.57 6 4 7.57 4 9.5c0 1.88 1.22 6.65 2.01 9.5H8v-2h6v2h2.01l1.55-5.15 2.44-.82V9.5z"/></svg>',cd='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="m16.66 4.52 2.83 2.83-2.83 2.83-2.83-2.83 2.83-2.83M9 5v4H5V5h4m10 10v4h-4v-4h4M9 15v4H5v-4h4m7.66-13.31L11 7.34 16.66 13l5.66-5.66-5.66-5.65zM11 3H3v8h8V3zm10 10h-8v8h8v-8zm-10 0H3v8h8v-8z"/></svg>',pd='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M13.25 16.74c0 .69-.53 1.26-1.25 1.26-.7 0-1.26-.56-1.26-1.26 0-.71.56-1.25 1.26-1.25.71 0 1.25.55 1.25 1.25zM11.99 6c-1.77 0-2.98 1.15-3.43 2.49l1.64.69c.22-.67.74-1.48 1.8-1.48 1.62 0 1.94 1.52 1.37 2.33-.54.77-1.47 1.29-1.96 2.16-.39.69-.31 1.49-.31 1.98h1.82c0-.93.07-1.12.22-1.41.39-.72 1.11-1.06 1.87-2.17.68-1 .42-2.36-.02-3.08-.51-.84-1.52-1.51-3-1.51zM19 5H5v14h14V5m0-2c1.1 0 2 .9 2 2v14c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2V5c0-1.1.9-2 2-2h14z"/></svg>',ud='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M7.25 7.25h4v4h-4zm5.5 0h4v4h-4zm-5.5 5.5h4v4h-4zm5.5 0h4v4h-4z"/><path d="M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H4V6h16v12z"/></svg>',fd='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M3 3v8h8V3H3zm6 6H5V5h4v4zm-6 4v8h8v-8H3zm6 6H5v-4h4v4zm4-16v8h8V3h-8zm6 6h-4V5h4v4zm-6 4v8h8v-8h-8zm6 6h-4v-4h4v4z"/></svg>',dd='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="m12.36 6 .4 2H18v6h-3.36l-.4-2H7V6h5.36M14 4H5v17h2v-7h5.6l.4 2h7V6h-5.6L14 4z"/></svg>',md='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M16 9v10H8V9h8m-1.5-6h-5l-1 1H5v2h14V4h-3.5l-1-1zM18 7H6v12c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7z"/></svg>',gd='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="m14.06 9.02.92.92L5.92 19H5v-.92l9.06-9.06M17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83a.996.996 0 0 0 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29zm-3.6 3.19L3 17.25V21h3.75L17.81 9.94l-3.75-3.75z"/></svg>',yd='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 4c4.41 0 8 3.59 8 8s-3.59 8-8 8-8-3.59-8-8 3.59-8 8-8m0-2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 13-4-4h8z"/></svg>',vd='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="m4.01 6.03 7.51 3.22-7.52-1 .01-2.22m7.5 8.72L4 17.97v-2.22l7.51-1M2.01 3 2 10l15 2-15 2 .01 7L23 12 2.01 3z"/></svg>',bd='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M4 4h16v12H5.17L4 17.17V4m0-2c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2H4zm2 10h8v2H6v-2zm0-3h12v2H6V9zm0-3h12v2H6V6z"/></svg>',_d='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"/></svg>',wd='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M20 6h-2.18c.11-.31.18-.65.18-1a2.996 2.996 0 0 0-5.5-1.65l-.5.67-.5-.68C10.96 2.54 10.05 2 9 2 7.34 2 6 3.34 6 5c0 .35.07.69.18 1H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-5-2c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zM9 4c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm11 15H4v-2h16v2zm0-5H4V8h5.08L7 10.83 8.62 12 11 8.76l1-1.36 1 1.36L15.38 12 17 10.83 14.92 8H20v6z"/></svg>',xd='<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 96 960 960"><path d="M180.782 788.435V364.13H260v172.261h160.782V364.13H500v424.305h-79.218V615.609H260v172.826h-79.218Zm519.218 0V443.348h-80V364.13h159.784v424.305H700Z"/></svg>',Sd='<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 96 960 960"><path d="M105.869 788.435v-424.87h79.218v172.826h155.695V363.565H420v424.87h-79.218V615.609H185.087v172.826h-79.218Zm434.131 0V615.609q0-32.663 23.147-55.941 23.147-23.277 56.637-23.277h155.129v-93.043H540v-79.783h234.913q33.74 0 56.762 23.146 23.021 23.147 23.021 56.637v93.043q0 32.663-23.146 55.941-23.147 23.277-56.637 23.277H619.784v93.043h234.912v79.783H540Z"/></svg>',Ed='<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 96 960 960"><path d="M105.869 788.435v-424.87h79.218v172.826h155.695V363.565H420v424.87h-79.218V615.609H185.087v172.826h-79.218Zm434.131 0v-79.783h234.913v-93.043H620v-79.218h154.913v-93.043H540v-79.783h234.913q33.74 0 56.762 23.146 23.021 23.147 23.021 56.637v265.304q0 33.49-23.146 56.637-23.147 23.146-56.637 23.146H540Z"/></svg>',kd='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M15.6 10.79c.97-.67 1.65-1.77 1.65-2.79 0-2.26-1.75-4-4-4H7v14h7.04c2.09 0 3.71-1.7 3.71-3.79 0-1.52-.86-2.82-2.15-3.42zM10 6.5h3c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5h-3v-3zm3.5 9H10v-3h3.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5z"/></svg>',Pd='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M10 4v3h2.21l-3.42 8H6v3h8v-3h-2.21l3.42-8H18V4h-8z"/></svg>',Ad='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12 17c3.31 0 6-2.69 6-6V3h-2.5v8c0 1.93-1.57 3.5-3.5 3.5S8.5 12.93 8.5 11V3H6v8c0 3.31 2.69 6 6 6zm-7 2v2h14v-2H5z"/></svg>',Cd='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M4 10.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm0-6c-.83 0-1.5.67-1.5 1.5S3.17 7.5 4 7.5 5.5 6.83 5.5 6 4.83 4.5 4 4.5zm0 12c-.83 0-1.5.68-1.5 1.5s.68 1.5 1.5 1.5 1.5-.68 1.5-1.5-.67-1.5-1.5-1.5zM7 19h14v-2H7v2zm0-6h14v-2H7v2zm0-8v2h14V5H7z"/></svg>',Td='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M2 17h2v.5H3v1h1v.5H2v1h3v-4H2v1zm1-9h1V4H2v1h1v3zm-1 3h1.8L2 13.1v.9h3v-1H3.2L5 10.9V10H2v1zm5-6v2h14V5H7zm0 14h14v-2H7v2zm0-6h14v-2H7v2z"/></svg>',Md='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M20 8V5H6.39l3 3h1.83l-.55 1.28 2.09 2.1L14.21 8zM3.41 4.86 2 6.27l6.97 6.97L6.5 19h3l1.57-3.66L16.73 21l1.41-1.41z"/></svg>',Fd='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/></svg>',Dd='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M18.4 10.6C16.55 8.99 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16a8.002 8.002 0 0 1 7.6-5.5c1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/></svg>',Bh={account_circle:Wf,assignment_turned_in:Zf,content_copy:Yf,notifications:Xf,thumb_up:Kf,thumb_down:Jf,login:Qf,add:td,smart_toy:ed,history_edu:rd,double_arrow:id,done:nd,search:sd,folder:od,category:ad,record_voice_over:ld,savings:hd,widgets:cd,help_center:pd,view_cozy:ud,grid_view:fd,flag:dd,delete:md,edit:gd,arrow_drop_down_circle:yd,send:vd,chat:bd,close:_d,redeem:wd,format_h1:xd,format_h2:Sd,format_h3:Ed,format_bold:kd,format_italic:Pd,format_underlined:Ad,format_list_bulleted:Cd,format_list_numbered:Td,format_clear:Md,undo:Fd,redo:Dd};var Ci=class Ci extends HTMLElement{constructor(){super();X(this,"name","");this.attachShadow({mode:"open"}),this.shadowRoot.adoptedStyleSheets=[Ci.styles.styleSheet]}static get observedAttributes(){return["name"]}attributeChangedCallback(r,i,n){if(i===n||!Ci.observedAttributes.includes(r))return;switch(r){case"name":this.name=n||"";break}let s=Bh[this.name];this.name&&!s&&console.warn(`md-icon '${this.name}' not found, please add it to @molin/lit-md/src/icons.js`),this.shadowRoot.innerHTML=s||"";let o=this.shadowRoot?.querySelector("svg");o&&(o.style.width="100%",o.style.height="100%",this.style.lineHeight="0")}};X(Ci,"styles",$t`
|
|
162
162
|
:host {
|
|
163
163
|
display: inline-block;
|
|
164
164
|
line-height: 0;
|
|
165
165
|
}
|
|
166
|
-
`);var Wo=Ai;customElements.define("md-icon",Wo);function Wn(t){return t.split("-")[1]}function zh(t){return t==="y"?"height":"width"}function dr(t){return t.split("-")[0]}function Zn(t){return["top","bottom"].includes(dr(t))?"x":"y"}function Vh(t,e,r){let{reference:i,floating:n}=t,s=i.x+i.width/2-n.width/2,o=i.y+i.height/2-n.height/2,a=Zn(e),l=zh(a),h=i[l]/2-n[l]/2,c=a==="x",p;switch(dr(e)){case"top":p={x:s,y:i.y-n.height};break;case"bottom":p={x:s,y:i.y+i.height};break;case"right":p={x:i.x+i.width,y:o};break;case"left":p={x:i.x-n.width,y:o};break;default:p={x:i.x,y:i.y}}switch(Wn(e)){case"start":p[a]-=h*(r&&c?-1:1);break;case"end":p[a]+=h*(r&&c?-1:1)}return p}var Nh=async(t,e,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:s=[],platform:o}=r,a=s.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(e)),h=await o.getElementRects({reference:t,floating:e,strategy:n}),{x:c,y:p}=Vh(h,i,l),f=i,u={},m=0;for(let g=0;g<a.length;g++){let{name:d,fn:y}=a[g],{x:v,y:b,data:_,reset:x}=await y({x:c,y:p,initialPlacement:i,placement:f,strategy:n,middlewareData:u,rects:h,platform:o,elements:{reference:t,floating:e}});c=v??c,p=b??p,u={...u,[d]:{...u[d],..._}},x&&m<=50&&(m++,typeof x=="object"&&(x.placement&&(f=x.placement),x.rects&&(h=x.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:n}):x.rects),{x:c,y:p}=Vh(h,f,l)),g=-1)}return{x:c,y:p,placement:f,strategy:n,middlewareData:u}};function Dd(t){return typeof t!="number"?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(t):{top:t,right:t,bottom:t,left:t}}function Ci(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function Yo(t,e){var r;e===void 0&&(e={});let{x:i,y:n,platform:s,rects:o,elements:a,strategy:l}=t,{boundary:h="clippingAncestors",rootBoundary:c="viewport",elementContext:p="floating",altBoundary:f=!1,padding:u=0}=e,m=Dd(u),g=a[f?p==="floating"?"reference":"floating":p],d=Ci(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(g)))==null||r?g:g.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:h,rootBoundary:c,strategy:l})),y=p==="floating"?{...o.floating,x:i,y:n}:o.reference,v=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),b=await(s.isElement==null?void 0:s.isElement(v))&&await(s.getScale==null?void 0:s.getScale(v))||{x:1,y:1},_=Ci(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:y,offsetParent:v,strategy:l}):y);return{top:(d.top-_.top+m.top)/b.y,bottom:(_.bottom-d.bottom+m.bottom)/b.y,left:(d.left-_.left+m.left)/b.x,right:(_.right-d.right+m.right)/b.x}}var Id=Math.min,Od=Math.max;function Bh(t,e,r){return Od(t,Id(e,r))}var Ld=["top","right","bottom","left"],J1=Ld.reduce((t,e)=>t.concat(e,e+"-start",e+"-end"),[]),$d={left:"right",right:"left",bottom:"top",top:"bottom"};function Un(t){return t.replace(/left|right|bottom|top/g,e=>$d[e])}function Rd(t,e,r){r===void 0&&(r=!1);let i=Wn(t),n=Zn(t),s=zh(n),o=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(o=Un(o)),{main:o,cross:Un(o)}}var Vd={start:"end",end:"start"};function Zo(t){return t.replace(/start|end/g,e=>Vd[e])}var Xo=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var r;let{placement:i,middlewareData:n,rects:s,initialPlacement:o,platform:a,elements:l}=e,{mainAxis:h=!0,crossAxis:c=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:u="none",flipAlignment:m=!0,...g}=t,d=dr(i),y=dr(o)===o,v=await(a.isRTL==null?void 0:a.isRTL(l.floating)),b=p||(y||!m?[Un(o)]:function(T){let k=Un(T);return[Zo(T),k,Zo(k)]}(o));p||u==="none"||b.push(...function(T,k,A,P){let I=Wn(T),O=function(F,C,L){let R=["left","right"],z=["right","left"],H=["top","bottom"],G=["bottom","top"];switch(F){case"top":case"bottom":return L?C?z:R:C?R:z;case"left":case"right":return C?H:G;default:return[]}}(dr(T),A==="start",P);return I&&(O=O.map(F=>F+"-"+I),k&&(O=O.concat(O.map(Zo)))),O}(o,m,u,v));let _=[o,...b],x=await Yo(e,g),M=[],S=((r=n.flip)==null?void 0:r.overflows)||[];if(h&&M.push(x[d]),c){let{main:T,cross:k}=Rd(i,s,v);M.push(x[T],x[k])}if(S=[...S,{placement:i,overflows:M}],!M.every(T=>T<=0)){var w,D;let T=(((w=n.flip)==null?void 0:w.index)||0)+1,k=_[T];if(k)return{data:{index:T,overflows:S},reset:{placement:k}};let A=(D=S.filter(P=>P.overflows[0]<=0).sort((P,I)=>P.overflows[1]-I.overflows[1])[0])==null?void 0:D.placement;if(!A)switch(f){case"bestFit":{var E;let P=(E=S.map(I=>[I.placement,I.overflows.filter(O=>O>0).reduce((O,F)=>O+F,0)]).sort((I,O)=>I[1]-O[1])[0])==null?void 0:E[0];P&&(A=P);break}case"initialPlacement":A=o}if(i!==A)return{reset:{placement:A}}}return{}}}};var Ko=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){let{x:r,y:i}=e,n=await async function(s,o){let{placement:a,platform:l,elements:h}=s,c=await(l.isRTL==null?void 0:l.isRTL(h.floating)),p=dr(a),f=Wn(a),u=Zn(a)==="x",m=["left","top"].includes(p)?-1:1,g=c&&u?-1:1,d=typeof o=="function"?o(s):o,{mainAxis:y,crossAxis:v,alignmentAxis:b}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return f&&typeof b=="number"&&(v=f==="end"?-1*b:b),u?{x:v*g,y:y*m}:{x:y*m,y:v*g}}(e,t);return{x:r+n.x,y:i+n.y,data:n}}}};function Bd(t){return t==="x"?"y":"x"}var Jo=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:n}=e,{mainAxis:s=!0,crossAxis:o=!1,limiter:a={fn:d=>{let{x:y,y:v}=d;return{x:y,y:v}}},...l}=t,h={x:r,y:i},c=await Yo(e,l),p=Zn(dr(n)),f=Bd(p),u=h[p],m=h[f];if(s){let d=p==="y"?"bottom":"right";u=Bh(u+c[p==="y"?"top":"left"],u,u-c[d])}if(o){let d=f==="y"?"bottom":"right";m=Bh(m+c[f==="y"?"top":"left"],m,m-c[d])}let g=a.fn({...e,[p]:u,[f]:m});return{...g,data:{x:g.x-r,y:g.y-i}}}}};function ee(t){var e;return((e=t.ownerDocument)==null?void 0:e.defaultView)||window}function ke(t){return ee(t).getComputedStyle(t)}function Wh(t){return t instanceof ee(t).Node}function Je(t){return Wh(t)?(t.nodeName||"").toLowerCase():""}var Yn;function Zh(){if(Yn)return Yn;let t=navigator.userAgentData;return t&&Array.isArray(t.brands)?(Yn=t.brands.map(e=>e.brand+"/"+e.version).join(" "),Yn):navigator.userAgent}function _e(t){return t instanceof ee(t).HTMLElement}function Xe(t){return t instanceof ee(t).Element}function Hh(t){return typeof ShadowRoot>"u"?!1:t instanceof ee(t).ShadowRoot||t instanceof ShadowRoot}function Kn(t){let{overflow:e,overflowX:r,overflowY:i,display:n}=ke(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&!["inline","contents"].includes(n)}function zd(t){return["table","td","th"].includes(Je(t))}function Qo(t){let e=/firefox/i.test(Zh()),r=ke(t),i=r.backdropFilter||r.WebkitBackdropFilter;return r.transform!=="none"||r.perspective!=="none"||!!i&&i!=="none"||e&&r.willChange==="filter"||e&&!!r.filter&&r.filter!=="none"||["transform","perspective"].some(n=>r.willChange.includes(n))||["paint","layout","strict","content"].some(n=>{let s=r.contain;return s!=null&&s.includes(n)})}function ta(){return/^((?!chrome|android).)*safari/i.test(Zh())}function ea(t){return["html","body","#document"].includes(Je(t))}var jh=Math.min,Ti=Math.max,Xn=Math.round;function Yh(t){let e=ke(t),r=parseFloat(e.width),i=parseFloat(e.height),n=_e(t),s=n?t.offsetWidth:r,o=n?t.offsetHeight:i,a=Xn(r)!==s||Xn(i)!==o;return a&&(r=s,i=o),{width:r,height:i,fallback:a}}function Xh(t){return Xe(t)?t:t.contextElement}var Kh={x:1,y:1};function Lr(t){let e=Xh(t);if(!_e(e))return Kh;let r=e.getBoundingClientRect(),{width:i,height:n,fallback:s}=Yh(e),o=(s?Xn(r.width):r.width)/i,a=(s?Xn(r.height):r.height)/n;return o&&Number.isFinite(o)||(o=1),a&&Number.isFinite(a)||(a=1),{x:o,y:a}}function Mi(t,e,r,i){var n,s;e===void 0&&(e=!1),r===void 0&&(r=!1);let o=t.getBoundingClientRect(),a=Xh(t),l=Kh;e&&(i?Xe(i)&&(l=Lr(i)):l=Lr(t));let h=a?ee(a):window,c=ta()&&r,p=(o.left+(c&&((n=h.visualViewport)==null?void 0:n.offsetLeft)||0))/l.x,f=(o.top+(c&&((s=h.visualViewport)==null?void 0:s.offsetTop)||0))/l.y,u=o.width/l.x,m=o.height/l.y;if(a){let g=ee(a),d=i&&Xe(i)?ee(i):i,y=g.frameElement;for(;y&&i&&d!==g;){let v=Lr(y),b=y.getBoundingClientRect(),_=getComputedStyle(y);b.x+=(y.clientLeft+parseFloat(_.paddingLeft))*v.x,b.y+=(y.clientTop+parseFloat(_.paddingTop))*v.y,p*=v.x,f*=v.y,u*=v.x,m*=v.y,p+=b.x,f+=b.y,y=ee(y).frameElement}}return Ci({width:u,height:m,x:p,y:f})}function Ke(t){return((Wh(t)?t.ownerDocument:t.document)||window.document).documentElement}function Jn(t){return Xe(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Jh(t){return Mi(Ke(t)).left+Jn(t).scrollLeft}function Fi(t){if(Je(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Hh(t)&&t.host||Ke(t);return Hh(e)?e.host:e}function Qh(t){let e=Fi(t);return ea(e)?e.ownerDocument.body:_e(e)&&Kn(e)?e:Qh(e)}function tc(t,e){var r;e===void 0&&(e=[]);let i=Qh(t),n=i===((r=t.ownerDocument)==null?void 0:r.body),s=ee(i);return n?e.concat(s,s.visualViewport||[],Kn(i)?i:[]):e.concat(i,tc(i))}function Gh(t,e,r){let i;if(e==="viewport")i=function(o,a){let l=ee(o),h=Ke(o),c=l.visualViewport,p=h.clientWidth,f=h.clientHeight,u=0,m=0;if(c){p=c.width,f=c.height;let g=ta();(!g||g&&a==="fixed")&&(u=c.offsetLeft,m=c.offsetTop)}return{width:p,height:f,x:u,y:m}}(t,r);else if(e==="document")i=function(o){let a=Ke(o),l=Jn(o),h=o.ownerDocument.body,c=Ti(a.scrollWidth,a.clientWidth,h.scrollWidth,h.clientWidth),p=Ti(a.scrollHeight,a.clientHeight,h.scrollHeight,h.clientHeight),f=-l.scrollLeft+Jh(o),u=-l.scrollTop;return ke(h).direction==="rtl"&&(f+=Ti(a.clientWidth,h.clientWidth)-c),{width:c,height:p,x:f,y:u}}(Ke(t));else if(Xe(e))i=function(o,a){let l=Mi(o,!0,a==="fixed"),h=l.top+o.clientTop,c=l.left+o.clientLeft,p=_e(o)?Lr(o):{x:1,y:1};return{width:o.clientWidth*p.x,height:o.clientHeight*p.y,x:c*p.x,y:h*p.y}}(e,r);else{let o={...e};if(ta()){var n,s;let a=ee(t);o.x-=((n=a.visualViewport)==null?void 0:n.offsetLeft)||0,o.y-=((s=a.visualViewport)==null?void 0:s.offsetTop)||0}i=o}return Ci(i)}function qh(t,e){return _e(t)&&ke(t).position!=="fixed"?e?e(t):t.offsetParent:null}function Uh(t,e){let r=ee(t);if(!_e(t))return r;let i=qh(t,e);for(;i&&zd(i)&&ke(i).position==="static";)i=qh(i,e);return i&&(Je(i)==="html"||Je(i)==="body"&&ke(i).position==="static"&&!Qo(i))?r:i||function(n){let s=Fi(n);for(;_e(s)&&!ea(s);){if(Qo(s))return s;s=Fi(s)}return null}(t)||r}function Nd(t,e,r){let i=_e(e),n=Ke(e),s=Mi(t,!0,r==="fixed",e),o={scrollLeft:0,scrollTop:0},a={x:0,y:0};if(i||!i&&r!=="fixed")if((Je(e)!=="body"||Kn(n))&&(o=Jn(e)),_e(e)){let l=Mi(e,!0);a.x=l.x+e.clientLeft,a.y=l.y+e.clientTop}else n&&(a.x=Jh(n));return{x:s.left+o.scrollLeft-a.x,y:s.top+o.scrollTop-a.y,width:s.width,height:s.height}}var Hd={getClippingRect:function(t){let{element:e,boundary:r,rootBoundary:i,strategy:n}=t,s=r==="clippingAncestors"?function(h,c){let p=c.get(h);if(p)return p;let f=tc(h).filter(d=>Xe(d)&&Je(d)!=="body"),u=null,m=ke(h).position==="fixed",g=m?Fi(h):h;for(;Xe(g)&&!ea(g);){let d=ke(g),y=Qo(g);d.position==="fixed"?u=null:(m?y||u:y||d.position!=="static"||!u||!["absolute","fixed"].includes(u.position))?u=d:f=f.filter(v=>v!==g),g=Fi(g)}return c.set(h,f),f}(e,this._c):[].concat(r),o=[...s,i],a=o[0],l=o.reduce((h,c)=>{let p=Gh(e,c,n);return h.top=Ti(p.top,h.top),h.right=jh(p.right,h.right),h.bottom=jh(p.bottom,h.bottom),h.left=Ti(p.left,h.left),h},Gh(e,a,n));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:r,strategy:i}=t,n=_e(r),s=Ke(r);if(r===s)return e;let o={scrollLeft:0,scrollTop:0},a={x:1,y:1},l={x:0,y:0};if((n||!n&&i!=="fixed")&&((Je(r)!=="body"||Kn(s))&&(o=Jn(r)),_e(r))){let h=Mi(r);a=Lr(r),l.x=h.x+r.clientLeft,l.y=h.y+r.clientTop}return{width:e.width*a.x,height:e.height*a.y,x:e.x*a.x-o.scrollLeft*a.x+l.x,y:e.y*a.y-o.scrollTop*a.y+l.y}},isElement:Xe,getDimensions:function(t){return Yh(t)},getOffsetParent:Uh,getDocumentElement:Ke,getScale:Lr,async getElementRects(t){let{reference:e,floating:r,strategy:i}=t,n=this.getOffsetParent||Uh,s=this.getDimensions;return{reference:Nd(e,await n(r),i),floating:{x:0,y:0,...await s(r)}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>ke(t).direction==="rtl"};var ec=(t,e,r)=>{let i=new Map,n={platform:Hd,...r},s={...n.platform,_c:i};return Nh(t,e,{...n,platform:s})};var Re,Qe,Di=class{constructor(e){q(this,Re,[]);q(this,Qe,new AbortController);e.addController(this),this.hostConnected()}deferCleanup(e){$(this,Re).push(e)}get signal(){return $(this,Qe).signal}hostConnected(){ft(this,Re,$(this,Re)||[]),ft(this,Qe,$(this,Qe)||new AbortController)}hostDisconnected(){for(;$(this,Re).length>0;)$(this,Re).pop()?.();ft(this,Re,[]),$(this,Qe).abort(),ft(this,Qe,new AbortController)}};Re=new WeakMap,Qe=new WeakMap;var $r,re,Qn,ts,rc,es,ic,rs,nc,is,sc,ns,oc,ss,ac,os,lc,Oi,ra,as,hc,Wt,pe,Ii=class extends lt{constructor(){super(...arguments);q(this,ts);q(this,es);q(this,rs);q(this,is);q(this,ns);q(this,ss);q(this,os);q(this,Oi);q(this,as);q(this,Wt);X(this,"placement","bottom");X(this,"strategy","absolute");X(this,"offset");X(this,"shift",!1);X(this,"flip",!1);X(this,"trigger","click");q(this,$r,`floating-ui-${Math.random().toString(36).substr(2,9)}`);q(this,re,!1);q(this,Qn,new Di(this))}get middleware(){return[this.offset!==void 0?Ko(this.offset):void 0,this.flip?Xo():void 0,this.shift?Jo():void 0].filter(r=>r!==void 0)}render(){return Q`
|
|
167
|
-
<slot aria-expanded="${$(this,
|
|
168
|
-
<slot name="floating" id="${$(this
|
|
169
|
-
`}firstUpdated(){super.firstUpdated(),this.id=$(this
|
|
166
|
+
`);var Yo=Ci;customElements.define("md-icon",Yo);function Zn(t){return t.split("-")[1]}function Nh(t){return t==="y"?"height":"width"}function gr(t){return t.split("-")[0]}function Yn(t){return["top","bottom"].includes(gr(t))?"x":"y"}function zh(t,e,r){let{reference:i,floating:n}=t,s=i.x+i.width/2-n.width/2,o=i.y+i.height/2-n.height/2,a=Yn(e),l=Nh(a),h=i[l]/2-n[l]/2,c=a==="x",p;switch(gr(e)){case"top":p={x:s,y:i.y-n.height};break;case"bottom":p={x:s,y:i.y+i.height};break;case"right":p={x:i.x+i.width,y:o};break;case"left":p={x:i.x-n.width,y:o};break;default:p={x:i.x,y:i.y}}switch(Zn(e)){case"start":p[a]-=h*(r&&c?-1:1);break;case"end":p[a]+=h*(r&&c?-1:1)}return p}var jh=async(t,e,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:s=[],platform:o}=r,a=s.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(e)),h=await o.getElementRects({reference:t,floating:e,strategy:n}),{x:c,y:p}=zh(h,i,l),f=i,u={},m=0;for(let g=0;g<a.length;g++){let{name:d,fn:y}=a[g],{x:v,y:b,data:_,reset:x}=await y({x:c,y:p,initialPlacement:i,placement:f,strategy:n,middlewareData:u,rects:h,platform:o,elements:{reference:t,floating:e}});c=v??c,p=b??p,u={...u,[d]:{...u[d],..._}},x&&m<=50&&(m++,typeof x=="object"&&(x.placement&&(f=x.placement),x.rects&&(h=x.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:n}):x.rects),{x:c,y:p}=zh(h,f,l)),g=-1)}return{x:c,y:p,placement:f,strategy:n,middlewareData:u}};function Id(t){return typeof t!="number"?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(t):{top:t,right:t,bottom:t,left:t}}function Ti(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}async function Ko(t,e){var r;e===void 0&&(e={});let{x:i,y:n,platform:s,rects:o,elements:a,strategy:l}=t,{boundary:h="clippingAncestors",rootBoundary:c="viewport",elementContext:p="floating",altBoundary:f=!1,padding:u=0}=e,m=Id(u),g=a[f?p==="floating"?"reference":"floating":p],d=Ti(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(g)))==null||r?g:g.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:h,rootBoundary:c,strategy:l})),y=p==="floating"?{...o.floating,x:i,y:n}:o.reference,v=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),b=await(s.isElement==null?void 0:s.isElement(v))&&await(s.getScale==null?void 0:s.getScale(v))||{x:1,y:1},_=Ti(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:y,offsetParent:v,strategy:l}):y);return{top:(d.top-_.top+m.top)/b.y,bottom:(_.bottom-d.bottom+m.bottom)/b.y,left:(d.left-_.left+m.left)/b.x,right:(_.right-d.right+m.right)/b.x}}var Ld=Math.min,Od=Math.max;function Hh(t,e,r){return Od(t,Ld(e,r))}var $d=["top","right","bottom","left"],ny=$d.reduce((t,e)=>t.concat(e,e+"-start",e+"-end"),[]),Vd={left:"right",right:"left",bottom:"top",top:"bottom"};function Wn(t){return t.replace(/left|right|bottom|top/g,e=>Vd[e])}function Rd(t,e,r){r===void 0&&(r=!1);let i=Zn(t),n=Yn(t),s=Nh(n),o=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(o=Wn(o)),{main:o,cross:Wn(o)}}var Bd={start:"end",end:"start"};function Xo(t){return t.replace(/start|end/g,e=>Bd[e])}var Jo=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var r;let{placement:i,middlewareData:n,rects:s,initialPlacement:o,platform:a,elements:l}=e,{mainAxis:h=!0,crossAxis:c=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:u="none",flipAlignment:m=!0,...g}=t,d=gr(i),y=gr(o)===o,v=await(a.isRTL==null?void 0:a.isRTL(l.floating)),b=p||(y||!m?[Wn(o)]:function(T){let k=Wn(T);return[Xo(T),k,Xo(k)]}(o));p||u==="none"||b.push(...function(T,k,A,P){let I=Zn(T),L=function(F,C,O){let V=["left","right"],z=["right","left"],N=["top","bottom"],G=["bottom","top"];switch(F){case"top":case"bottom":return O?C?z:V:C?V:z;case"left":case"right":return C?N:G;default:return[]}}(gr(T),A==="start",P);return I&&(L=L.map(F=>F+"-"+I),k&&(L=L.concat(L.map(Xo)))),L}(o,m,u,v));let _=[o,...b],x=await Ko(e,g),M=[],S=((r=n.flip)==null?void 0:r.overflows)||[];if(h&&M.push(x[d]),c){let{main:T,cross:k}=Rd(i,s,v);M.push(x[T],x[k])}if(S=[...S,{placement:i,overflows:M}],!M.every(T=>T<=0)){var w,D;let T=(((w=n.flip)==null?void 0:w.index)||0)+1,k=_[T];if(k)return{data:{index:T,overflows:S},reset:{placement:k}};let A=(D=S.filter(P=>P.overflows[0]<=0).sort((P,I)=>P.overflows[1]-I.overflows[1])[0])==null?void 0:D.placement;if(!A)switch(f){case"bestFit":{var E;let P=(E=S.map(I=>[I.placement,I.overflows.filter(L=>L>0).reduce((L,F)=>L+F,0)]).sort((I,L)=>I[1]-L[1])[0])==null?void 0:E[0];P&&(A=P);break}case"initialPlacement":A=o}if(i!==A)return{reset:{placement:A}}}return{}}}};var Qo=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){let{x:r,y:i}=e,n=await async function(s,o){let{placement:a,platform:l,elements:h}=s,c=await(l.isRTL==null?void 0:l.isRTL(h.floating)),p=gr(a),f=Zn(a),u=Yn(a)==="x",m=["left","top"].includes(p)?-1:1,g=c&&u?-1:1,d=typeof o=="function"?o(s):o,{mainAxis:y,crossAxis:v,alignmentAxis:b}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return f&&typeof b=="number"&&(v=f==="end"?-1*b:b),u?{x:v*g,y:y*m}:{x:y*m,y:v*g}}(e,t);return{x:r+n.x,y:i+n.y,data:n}}}};function zd(t){return t==="x"?"y":"x"}var ta=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:n}=e,{mainAxis:s=!0,crossAxis:o=!1,limiter:a={fn:d=>{let{x:y,y:v}=d;return{x:y,y:v}}},...l}=t,h={x:r,y:i},c=await Ko(e,l),p=Yn(gr(n)),f=zd(p),u=h[p],m=h[f];if(s){let d=p==="y"?"bottom":"right";u=Hh(u+c[p==="y"?"top":"left"],u,u-c[d])}if(o){let d=f==="y"?"bottom":"right";m=Hh(m+c[f==="y"?"top":"left"],m,m-c[d])}let g=a.fn({...e,[p]:u,[f]:m});return{...g,data:{x:g.x-r,y:g.y-i}}}}};function re(t){var e;return((e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Ae(t){return re(t).getComputedStyle(t)}function Yh(t){return t instanceof re(t).Node}function tr(t){return Yh(t)?(t.nodeName||"").toLowerCase():""}var Xn;function Xh(){if(Xn)return Xn;let t=navigator.userAgentData;return t&&Array.isArray(t.brands)?(Xn=t.brands.map(e=>e.brand+"/"+e.version).join(" "),Xn):navigator.userAgent}function xe(t){return t instanceof re(t).HTMLElement}function Je(t){return t instanceof re(t).Element}function Gh(t){return typeof ShadowRoot>"u"?!1:t instanceof re(t).ShadowRoot||t instanceof ShadowRoot}function Jn(t){let{overflow:e,overflowX:r,overflowY:i,display:n}=Ae(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&!["inline","contents"].includes(n)}function Hd(t){return["table","td","th"].includes(tr(t))}function ea(t){let e=/firefox/i.test(Xh()),r=Ae(t),i=r.backdropFilter||r.WebkitBackdropFilter;return r.transform!=="none"||r.perspective!=="none"||!!i&&i!=="none"||e&&r.willChange==="filter"||e&&!!r.filter&&r.filter!=="none"||["transform","perspective"].some(n=>r.willChange.includes(n))||["paint","layout","strict","content"].some(n=>{let s=r.contain;return s!=null&&s.includes(n)})}function ra(){return/^((?!chrome|android).)*safari/i.test(Xh())}function ia(t){return["html","body","#document"].includes(tr(t))}var qh=Math.min,Mi=Math.max,Kn=Math.round;function Kh(t){let e=Ae(t),r=parseFloat(e.width),i=parseFloat(e.height),n=xe(t),s=n?t.offsetWidth:r,o=n?t.offsetHeight:i,a=Kn(r)!==s||Kn(i)!==o;return a&&(r=s,i=o),{width:r,height:i,fallback:a}}function Jh(t){return Je(t)?t:t.contextElement}var Qh={x:1,y:1};function Vr(t){let e=Jh(t);if(!xe(e))return Qh;let r=e.getBoundingClientRect(),{width:i,height:n,fallback:s}=Kh(e),o=(s?Kn(r.width):r.width)/i,a=(s?Kn(r.height):r.height)/n;return o&&Number.isFinite(o)||(o=1),a&&Number.isFinite(a)||(a=1),{x:o,y:a}}function Fi(t,e,r,i){var n,s;e===void 0&&(e=!1),r===void 0&&(r=!1);let o=t.getBoundingClientRect(),a=Jh(t),l=Qh;e&&(i?Je(i)&&(l=Vr(i)):l=Vr(t));let h=a?re(a):window,c=ra()&&r,p=(o.left+(c&&((n=h.visualViewport)==null?void 0:n.offsetLeft)||0))/l.x,f=(o.top+(c&&((s=h.visualViewport)==null?void 0:s.offsetTop)||0))/l.y,u=o.width/l.x,m=o.height/l.y;if(a){let g=re(a),d=i&&Je(i)?re(i):i,y=g.frameElement;for(;y&&i&&d!==g;){let v=Vr(y),b=y.getBoundingClientRect(),_=getComputedStyle(y);b.x+=(y.clientLeft+parseFloat(_.paddingLeft))*v.x,b.y+=(y.clientTop+parseFloat(_.paddingTop))*v.y,p*=v.x,f*=v.y,u*=v.x,m*=v.y,p+=b.x,f+=b.y,y=re(y).frameElement}}return Ti({width:u,height:m,x:p,y:f})}function Qe(t){return((Yh(t)?t.ownerDocument:t.document)||window.document).documentElement}function Qn(t){return Je(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function tc(t){return Fi(Qe(t)).left+Qn(t).scrollLeft}function Di(t){if(tr(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Gh(t)&&t.host||Qe(t);return Gh(e)?e.host:e}function ec(t){let e=Di(t);return ia(e)?e.ownerDocument.body:xe(e)&&Jn(e)?e:ec(e)}function rc(t,e){var r;e===void 0&&(e=[]);let i=ec(t),n=i===((r=t.ownerDocument)==null?void 0:r.body),s=re(i);return n?e.concat(s,s.visualViewport||[],Jn(i)?i:[]):e.concat(i,rc(i))}function Uh(t,e,r){let i;if(e==="viewport")i=function(o,a){let l=re(o),h=Qe(o),c=l.visualViewport,p=h.clientWidth,f=h.clientHeight,u=0,m=0;if(c){p=c.width,f=c.height;let g=ra();(!g||g&&a==="fixed")&&(u=c.offsetLeft,m=c.offsetTop)}return{width:p,height:f,x:u,y:m}}(t,r);else if(e==="document")i=function(o){let a=Qe(o),l=Qn(o),h=o.ownerDocument.body,c=Mi(a.scrollWidth,a.clientWidth,h.scrollWidth,h.clientWidth),p=Mi(a.scrollHeight,a.clientHeight,h.scrollHeight,h.clientHeight),f=-l.scrollLeft+tc(o),u=-l.scrollTop;return Ae(h).direction==="rtl"&&(f+=Mi(a.clientWidth,h.clientWidth)-c),{width:c,height:p,x:f,y:u}}(Qe(t));else if(Je(e))i=function(o,a){let l=Fi(o,!0,a==="fixed"),h=l.top+o.clientTop,c=l.left+o.clientLeft,p=xe(o)?Vr(o):{x:1,y:1};return{width:o.clientWidth*p.x,height:o.clientHeight*p.y,x:c*p.x,y:h*p.y}}(e,r);else{let o={...e};if(ra()){var n,s;let a=re(t);o.x-=((n=a.visualViewport)==null?void 0:n.offsetLeft)||0,o.y-=((s=a.visualViewport)==null?void 0:s.offsetTop)||0}i=o}return Ti(i)}function Wh(t,e){return xe(t)&&Ae(t).position!=="fixed"?e?e(t):t.offsetParent:null}function Zh(t,e){let r=re(t);if(!xe(t))return r;let i=Wh(t,e);for(;i&&Hd(i)&&Ae(i).position==="static";)i=Wh(i,e);return i&&(tr(i)==="html"||tr(i)==="body"&&Ae(i).position==="static"&&!ea(i))?r:i||function(n){let s=Di(n);for(;xe(s)&&!ia(s);){if(ea(s))return s;s=Di(s)}return null}(t)||r}function Nd(t,e,r){let i=xe(e),n=Qe(e),s=Fi(t,!0,r==="fixed",e),o={scrollLeft:0,scrollTop:0},a={x:0,y:0};if(i||!i&&r!=="fixed")if((tr(e)!=="body"||Jn(n))&&(o=Qn(e)),xe(e)){let l=Fi(e,!0);a.x=l.x+e.clientLeft,a.y=l.y+e.clientTop}else n&&(a.x=tc(n));return{x:s.left+o.scrollLeft-a.x,y:s.top+o.scrollTop-a.y,width:s.width,height:s.height}}var jd={getClippingRect:function(t){let{element:e,boundary:r,rootBoundary:i,strategy:n}=t,s=r==="clippingAncestors"?function(h,c){let p=c.get(h);if(p)return p;let f=rc(h).filter(d=>Je(d)&&tr(d)!=="body"),u=null,m=Ae(h).position==="fixed",g=m?Di(h):h;for(;Je(g)&&!ia(g);){let d=Ae(g),y=ea(g);d.position==="fixed"?u=null:(m?y||u:y||d.position!=="static"||!u||!["absolute","fixed"].includes(u.position))?u=d:f=f.filter(v=>v!==g),g=Di(g)}return c.set(h,f),f}(e,this._c):[].concat(r),o=[...s,i],a=o[0],l=o.reduce((h,c)=>{let p=Uh(e,c,n);return h.top=Mi(p.top,h.top),h.right=qh(p.right,h.right),h.bottom=qh(p.bottom,h.bottom),h.left=Mi(p.left,h.left),h},Uh(e,a,n));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:r,strategy:i}=t,n=xe(r),s=Qe(r);if(r===s)return e;let o={scrollLeft:0,scrollTop:0},a={x:1,y:1},l={x:0,y:0};if((n||!n&&i!=="fixed")&&((tr(r)!=="body"||Jn(s))&&(o=Qn(r)),xe(r))){let h=Fi(r);a=Vr(r),l.x=h.x+r.clientLeft,l.y=h.y+r.clientTop}return{width:e.width*a.x,height:e.height*a.y,x:e.x*a.x-o.scrollLeft*a.x+l.x,y:e.y*a.y-o.scrollTop*a.y+l.y}},isElement:Je,getDimensions:function(t){return Kh(t)},getOffsetParent:Zh,getDocumentElement:Qe,getScale:Vr,async getElementRects(t){let{reference:e,floating:r,strategy:i}=t,n=this.getOffsetParent||Zh,s=this.getDimensions;return{reference:Nd(e,await n(r),i),floating:{x:0,y:0,...await s(r)}}},getClientRects:t=>Array.from(t.getClientRects()),isRTL:t=>Ae(t).direction==="rtl"};var ic=(t,e,r)=>{let i=new Map,n={platform:jd,...r},s={...n.platform,_c:i};return jh(t,e,{...n,platform:s})};var Be,er,Ii=class{constructor(e){q(this,Be,[]);q(this,er,new AbortController);e.addController(this),this.hostConnected()}deferCleanup(e){$(this,Be).push(e)}get signal(){return $(this,er).signal}hostConnected(){ft(this,Be,$(this,Be)||[]),ft(this,er,$(this,er)||new AbortController)}hostDisconnected(){for(;$(this,Be).length>0;)$(this,Be).pop()?.();ft(this,Be,[]),$(this,er).abort(),ft(this,er,new AbortController)}};Be=new WeakMap,er=new WeakMap;var Rr,ie,ts,es,nc,rs,sc,is,oc,ns,ac,ss,lc,os,hc,as,cc,Oi,na,ls,pc,Zt,fe,Li=class extends lt{constructor(){super(...arguments);q(this,es);q(this,rs);q(this,is);q(this,ns);q(this,ss);q(this,os);q(this,as);q(this,Oi);q(this,ls);q(this,Zt);X(this,"placement","bottom");X(this,"strategy","absolute");X(this,"offset");X(this,"shift",!1);X(this,"flip",!1);X(this,"trigger","click");q(this,Rr,`floating-ui-${Math.random().toString(36).substr(2,9)}`);q(this,ie,!1);q(this,ts,new Ii(this))}get middleware(){return[this.offset!==void 0?Qo(this.offset):void 0,this.flip?Jo():void 0,this.shift?ta():void 0].filter(r=>r!==void 0)}render(){return J`
|
|
167
|
+
<slot aria-expanded="${$(this,ie)}" aria-controls="${$(this,Rr)}-floating" @click="${nt(this,es,nc)}" @focus="${nt(this,rs,sc)}" @blur="${nt(this,is,oc)}" @mouseenter="${nt(this,ns,ac)}" @mouseleave="${nt(this,ss,lc)}"></slot>
|
|
168
|
+
<slot name="floating" id="${$(this,Rr)}-floating" @transitionend=${nt(this,os,hc)}></slot>
|
|
169
|
+
`}firstUpdated(){super.firstUpdated(),this.id=$(this,Rr),this.style.position="relative",$(this,Zt,fe).style.overflow="hidden",$(this,Zt,fe).style.position=this.strategy,$(this,Zt,fe).style.visibility="hidden",$(this,Zt,fe).style.opacity="0",$(this,Zt,fe).style.display="none"}show(){ft(this,ie,!0),$(this,Zt,fe).style.display="block",ic($(this,ls,pc),$(this,Zt,fe),{placement:this.placement,strategy:this.strategy,middleware:this.middleware}).then(({x:r,y:i,strategy:n})=>{Object.assign($(this,Zt,fe).style,{left:`${r}px`,top:`${i}px`,position:n,visibility:"visible",opacity:100})}).catch(r=>{console.error(r)}),this.dispatchEvent(new CustomEvent("floating-ui:show",{}))}hide(){ft(this,ie,!1),$(this,Zt,fe).style.visibility="hidden",$(this,Zt,fe).style.opacity="0",this.dispatchEvent(new CustomEvent("floating-ui:hide",{}))}connectedCallback(){super.connectedCallback(),document.body.addEventListener("click",r=>{$(this,ie)&&!r.composedPath().includes(this)&&this.hide()},{signal:$(this,ts).signal})}};Rr=new WeakMap,ie=new WeakMap,ts=new WeakMap,es=new WeakSet,nc=function(){this.trigger!=="click"&&this.trigger!=="click+hover"||($(this,ie)?this.hide():this.show())},rs=new WeakSet,sc=function(){this.trigger==="focus"&&($(this,ie)||this.show())},is=new WeakSet,oc=function(){this.trigger==="focus"&&$(this,ie)&&this.hide()},ns=new WeakSet,ac=function(){this.trigger!=="hover"&&this.trigger!=="click+hover"||$(this,ie)||this.show()},ss=new WeakSet,lc=function(){this.trigger!=="hover"&&this.trigger!=="click+hover"||$(this,ie)&&this.hide()},os=new WeakSet,hc=function(){$(this,ie)||($(this,Zt,fe).style.display="none")},as=new WeakSet,cc=function(){return this.shadowRoot.querySelector("slot[aria-controls]")},Oi=new WeakSet,na=function(){return this.shadowRoot.querySelector('slot[name="floating"]')},ls=new WeakSet,pc=function(){let r=$(this,as,cc);for(;r.tagName==="SLOT";){let i=r.assignedElements();console.assert(i.length===1,"expected exactly 1 element assigned to the reference slot"),r=i[0]}return r},Zt=new WeakSet,fe=function(){console.assert($(this,Oi,na),"floating slot not found");let r=$(this,Oi,na).assignedElements();return console.assert(r.length===1,"expected exactly 1 element assigned to the floating slot"),r[0]},X(Li,"properties",{placement:{type:String,attribute:"placement"},strategy:{type:String,attribute:"strategy"},offset:{type:Number,attribute:"offset"},shift:{type:Boolean,attribute:"shift"},flip:{type:Boolean,attribute:"flip"},trigger:{type:String,attribute:"trigger"}}),X(Li,"slots",{default:{description:"The reference element (a.k.a. anchor) that will show/hide the floating element when clicked."},floating:{description:"The floating element, e.g. a tooltip or menu."}});customElements.define("floating-ui",Li);var Vi,Ri,sa,Bi,oa,$i=class extends Dt(lt){constructor(){super();q(this,Ri);q(this,Bi);q(this,Vi,!1);this.content="",this.variant="",this.placement="",this.trigger="click+hover"}render(){return J`
|
|
170
170
|
<floating-ui trigger="${this.trigger}" placement="${this.placement||"bottom"}" strategy="absolute">
|
|
171
|
-
${$(this
|
|
171
|
+
${$(this,Vi)?J`
|
|
172
172
|
<span class="cursor-help">
|
|
173
173
|
<span class=""><slot></slot></span> ⓘ
|
|
174
174
|
</span>
|
|
175
|
-
`:
|
|
175
|
+
`:J`
|
|
176
176
|
<span>
|
|
177
177
|
<slot></slot>
|
|
178
178
|
</span>
|
|
@@ -181,10 +181,10 @@ var sf=Object.defineProperty;var of=(t,e,r)=>e in t?sf(t,e,{enumerable:!0,config
|
|
|
181
181
|
<p class="${this.variant==="compact"?"":"min-w-[300px]"} m-2 whitespace-normal break-normal rounded bg-gray-800 px-2 py-1 text-sm text-white shadow">${this.content||""}</p>
|
|
182
182
|
</slot>
|
|
183
183
|
</floating-ui>
|
|
184
|
-
`}firstUpdated(){let r=$(this,Ri,
|
|
185
|
-
<form class="flex items-center space-x-4 border-t bg-white px-4" @submit="${
|
|
184
|
+
`}firstUpdated(){let r=$(this,Ri,sa)?.assignedElements().length||0,i=$(this,Ri,sa)?.assignedNodes()[0];ft(this,Vi,r===0&&i?.nodeType===Node.TEXT_NODE),this.requestUpdate()}show(){$(this,Bi,oa)?.show()}hide(){$(this,Bi,oa)?.hide()}};Vi=new WeakMap,Ri=new WeakSet,sa=function(){return this.shadowRoot?.querySelector("slot:not([name])")},Bi=new WeakSet,oa=function(){return this.shadowRoot?.querySelector("floating-ui")},X($i,"properties",{content:{type:String,attribute:"content"},variant:{type:String,attribute:"variant"},placement:{type:String,attribute:"placement"},trigger:{type:String,attribute:"trigger"}}),X($i,"slots",{tooltip:{description:"The tooltip content. If missing, falls back to `content` attribute."}});customElements.define("m-tooltip",$i);function uc(t){return!t.ctrlKey&&!t.metaKey&&!t.shiftKey&&t.keyCode==13}var cs,fc,ps,dc,us,mc,fs,gc,ds,yc,hs=class extends Dt(lt){constructor(){super();q(this,cs);q(this,ps);q(this,us);q(this,fs);q(this,ds);X(this,"render",()=>J`
|
|
185
|
+
<form class="flex items-center space-x-4 border-t bg-white px-4" @submit="${nt(this,us,mc)}">
|
|
186
186
|
<!-- text input -->
|
|
187
|
-
<textarea name="input" @keydown="${
|
|
187
|
+
<textarea name="input" @keydown="${nt(this,ps,dc)}" class="my-2 block w-full flex-1 resize-none rounded py-2 text-[16px] text-gray-800 outline-none transition-colors" placeholder="${this.placeholder}" autofocus></textarea>
|
|
188
188
|
|
|
189
189
|
<!-- send/cancel button -->
|
|
190
190
|
<!-- <m-tooltip content="${this.disabled?"Stop":"Send"}" placement="top" variant="compact" trigger="hover"> -->
|
|
@@ -195,47 +195,72 @@ var sf=Object.defineProperty;var of=(t,e,r)=>e in t?sf(t,e,{enumerable:!0,config
|
|
|
195
195
|
</div>
|
|
196
196
|
<!-- </m-tooltip> -->
|
|
197
197
|
</form>
|
|
198
|
-
`);this.disabled=!1,this.placeholder="",this.buttonColor="cyan-500"}};
|
|
198
|
+
`);this.disabled=!1,this.placeholder="",this.buttonColor="cyan-500"}};cs=new WeakSet,fc=function(){return this.shadowRoot?.querySelector("button")},ps=new WeakSet,dc=function(r){uc(r)&&(r.preventDefault(),this.disabled||$(this,cs,fc)?.click())},us=new WeakSet,mc=function(r){if(r.preventDefault(),this.disabled){nt(this,ds,yc).call(this);return}let i=r.target?.input,n=i.value;n&&(i.value="",nt(this,fs,gc).call(this,n))},fs=new WeakSet,gc=function(r){this.dispatchEvent(new CustomEvent("mw-submit",{detail:{value:r}}))},ds=new WeakSet,yc=function(){this.dispatchEvent(new CustomEvent("mw-cancel",{}))},X(hs,"properties",{disabled:{type:Boolean},placeholder:{type:String},buttonColor:{type:String,attribute:"button-color"}});customElements.define("mw-chat-input",hs);var qd=J`
|
|
199
199
|
<svg width="1462" height="1462" viewBox="0 0 1462 1462" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
200
200
|
<path d="M0 0V1462H1462V0H0ZM1076.73 844.22V1090.55H891.1V844.22H1076.73L891.1 597.89V597.991L705.56 844.22H574.01V1090.55H388.48V370.627H574.01V683.231L638.4 597.891L891.1 597.89V370.627H1076.73L1076.73 844.22Z" fill="#F29400" />
|
|
201
201
|
</svg>
|
|
202
|
-
`,
|
|
202
|
+
`,Ud=J`
|
|
203
|
+
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
|
|
204
|
+
<defs>
|
|
205
|
+
<style>
|
|
206
|
+
.cls-1 {
|
|
207
|
+
fill: #f05b27;
|
|
208
|
+
}
|
|
209
|
+
.cls-1,
|
|
210
|
+
.cls-2 {
|
|
211
|
+
fill-rule: evenodd;
|
|
212
|
+
}
|
|
213
|
+
.cls-2 {
|
|
214
|
+
fill: #fff;
|
|
215
|
+
}
|
|
216
|
+
</style>
|
|
217
|
+
</defs>
|
|
218
|
+
<rect x="0.5" y="-0.01" width="100" height="100" />
|
|
219
|
+
<path class="cls-1" d="M43.82,37.7l6.75,2.83,6.61-2.83-6.7,7.19Zm-9.9-4.31,6.73,2.76L50.49,46.7l9.84-10.62,6.75-2.64-1.25,2.25L62.36,47.46l-8.74,6.17L57,48l2.64-1.84,1.91-6.95-2.42,2.52L50.49,56.32,42,41.83,39.4,39.24l2,6.92,2.7,1.91,3.15,5.46-8.74-6.12L35.17,35.76Zm3.24.54,3.89,1.51,9.52-4.77L60,35.47l3.8-1.57-2.67-.76-10.64-5.3L39.89,33.16Z" />
|
|
220
|
+
<path class="cls-2" d="M77.85,62.3h3.06c1.42,1,2.34,3.17,3.28,4.71,1,1.71,2.06,3.41,3,5.14A2.75,2.75,0,0,0,88.5,70V60.57H86V65c-.71-.52-2.42-4.39-3.06-4.39H79.72c-.41,0-1.65,1.4-1.87,1.73M12.5,59.9c5,0,4.3-.19,6,3.28A70.25,70.25,0,0,1,21.15,70h.24l4.42-9.44H23.55c-.62,0-1.54,3.11-2.27,3.59a26.83,26.83,0,0,0-1.15-3.23c-.27-.59-.79-3-1.37-3H14.63C14.22,57.91,12.73,59.56,12.5,59.9Zm11.18,0h2.53V70.29h3.33V57.91H25.28C24.91,57.91,23.91,59.56,23.68,59.9Zm32.21,7.19c0,2.1.63,3.7,1.86,4.53a14,14,0,0,0,2-3.73V60.57H55.89ZM13,69.09c0,1.26.79,2.81,1.73,3.06.22-.93,1.6-2.18,1.6-3.06V60.57H13ZM63.08,62v6c0,1.91.45,3,1.6,3.73a16.75,16.75,0,0,0,1.46-3.19v-8H64.28C63.91,60.57,63.08,61.76,63.08,62ZM50.82,59.89A4.29,4.29,0,0,0,52.16,61h1.2c.45,0,.86-.76,1.07-1.07l8.72.06,1.53-2.05L52.36,58Zm27.43,10.8h2.8v-8h-2.8ZM30.58,62.15h7.76l.58.48,1.66-2-8.72,0Zm9.83,0c1.81,0,7.53-.63,8.22.62l1.8-2.18-8.75,0Zm-8.74.57-.14,7.59,7.86-.14,1.06-1.59h-6v-2.4l3.39,0L39,64.56H34.46V62.7Zm9.85,0-.14,7.59,7.86-.14,1.06-1.59h-6v-2.4h3.06c.37,0,1.24-1.25,1.33-1.6H44.31V62.7Zm26.08-.4h5.59a1,1,0,0,1,.8.8V69H71.06a1.35,1.35,0,0,1-.93-.94V62.83H67.6v6c0,.25,1.23,1.73,1.6,1.73h7.45V62a3.18,3.18,0,0,0-1.46-1.46H67.6Z" />
|
|
221
|
+
</svg>
|
|
222
|
+
`,Wd=J`
|
|
223
|
+
<svg width="45" height="45" viewBox="0 0 45 45" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
224
|
+
<rect width="45" height="45" fill="#221F21" />
|
|
225
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M12 11V33.6446H34V11L23.0206 22.0098L12 11ZM13.7476 15.1712V31.3099L21.7736 23.26L13.7476 15.1701V15.1712ZM32.2535 15.1712L24.2687 23.2611L32.2535 31.3099V15.1701V15.1712ZM23.8938 25.3456V31.8938H30.3814L23.8938 25.3456ZM22.1474 25.3456V31.8938H15.6186L22.1474 25.3456ZM23.0206 13.1268C23.5232 13.1264 24.0145 13.2755 24.432 13.5553C24.8495 13.8351 25.1744 14.2327 25.3651 14.6977C25.556 15.1626 25.6056 15.6735 25.5077 16.1664C25.4098 16.6593 25.1688 17.1125 24.8147 17.4691C24.46 17.8249 24.0075 18.0673 23.5147 18.1654C23.022 18.2636 22.5111 18.2131 22.0471 18.0204C21.5831 17.8277 21.1868 17.5014 20.9086 17.083C20.6303 16.6647 20.4826 16.1731 20.4843 15.6706C20.4843 14.9957 20.7519 14.3489 21.2275 13.8722C21.4626 13.636 21.742 13.4486 22.0497 13.3207C22.3574 13.1927 22.6874 13.1268 23.0206 13.1268Z" fill="#F5C443" />
|
|
226
|
+
</svg>
|
|
227
|
+
`,ms=class extends Dt(lt){constructor(){super(),this.role="assistant",this.userBubbleColor="cyan-600",this.botPicSvg=J``,this.widgetId=""}render(){switch(this.role){case"user":return J`
|
|
203
228
|
<div class="ml-20 flex justify-end">
|
|
204
229
|
<div class="max-w-full">
|
|
205
230
|
<!--
|
|
206
231
|
border so that it's the same height as the bot message (sometimes?) AND we can allow customers to customize both background and border colors
|
|
207
232
|
-->
|
|
208
|
-
<div class="bg-${this.userBubbleColor} border-${this.userBubbleColor} rounded-xl border py-3
|
|
233
|
+
<div class="bg-${this.userBubbleColor} border-${this.userBubbleColor} rounded-xl border px-4 py-3 text-white">
|
|
209
234
|
<slot></slot>
|
|
210
235
|
</div>
|
|
211
236
|
</div>
|
|
212
237
|
</div>
|
|
213
|
-
`;case"assistant":return
|
|
238
|
+
`;case"assistant":return J`
|
|
214
239
|
<div class="mr-8 flex justify-start">
|
|
215
240
|
<div class="flex max-w-full space-x-2">
|
|
216
241
|
<!--
|
|
217
242
|
mt-[9px] because the message is 50px tall, the icon is 32px tall, we want to center it
|
|
218
243
|
-->
|
|
219
|
-
<svg-full-size class="mt-[9px] h-8 w-8 flex-shrink-0 flex-grow-0 overflow-hidden rounded-full">${
|
|
244
|
+
<svg-full-size class="mt-[9px] h-8 w-8 flex-shrink-0 flex-grow-0 overflow-hidden rounded-full">${this.widgetId==="meetion1"?Ud:this.widgetId==="layher1"?Wd:qd}</svg-full-size>
|
|
220
245
|
|
|
221
246
|
<!--
|
|
222
247
|
min-h-[50px] because when we start streaming we sometimes start with an empty paragraph
|
|
223
248
|
-->
|
|
224
|
-
<div class="min-h-[50px] max-w-full overflow-hidden rounded-xl border bg-white py-3
|
|
249
|
+
<div class="min-h-[50px] max-w-full overflow-hidden rounded-xl border bg-white px-4 py-3 text-gray-800">
|
|
225
250
|
<slot></slot>
|
|
226
251
|
</div>
|
|
227
252
|
</div>
|
|
228
253
|
</div>
|
|
229
|
-
`;default:throw new Error(`unknown role: ${this.role}`)}}};X(ds,"properties",{role:{type:String},userBubbleColor:{type:String,attribute:"user-bubble-color"},botPicSvg:{type:Object,attribute:"bot-pic-svg"}});customElements.define("mw-chat-message",ds);function zi(t){var e,r;function i(s,o){try{var a=t[s](o),l=a.value,h=l instanceof Aa;Promise.resolve(h?l.v:l).then(function(c){if(h){var p=s==="return"?"return":"next";if(!l.k||c.done)return i(p,c);c=t[p](c).value}n(a.done?"return":"normal",c)},function(c){i("throw",c)})}catch(c){n("throw",c)}}function n(s,o){switch(s){case"return":e.resolve({value:o,done:!0});break;case"throw":e.reject(o);break;default:e.resolve({value:o,done:!1})}(e=e.next)?i(e.key,e.arg):r=null}this._invoke=function(s,o){return new Promise(function(a,l){var h={key:s,arg:o,resolve:a,reject:l,next:null};r?r=r.next=h:(e=r=h,i(s,o))})},typeof t.return!="function"&&(this.return=void 0)}function Aa(t,e){this.v=t,this.k=e}function np(t,e,r,i){return{getMetadata:function(n){ma(i,"getMetadata"),vc(n);var s=t[n];if(s!==void 0){if(e===1){var o=s.public;if(o!==void 0)return o[r]}else if(e===2){var a=s.private;if(a!==void 0)return a.get(r)}else if(Object.hasOwnProperty.call(s,"constructor"))return s.constructor}},setMetadata:function(n,s){ma(i,"setMetadata"),vc(n);var o=t[n];if(o===void 0&&(o=t[n]={}),e===1){var a=o.public;a===void 0&&(a=o.public={}),a[r]=s}else if(e===2){var l=o.priv;l===void 0&&(l=o.private=new Map),l.set(r,s)}else o.constructor=s}}}function gc(t,e){var r=t[Symbol.metadata||Symbol.for("Symbol.metadata")],i=Object.getOwnPropertySymbols(e);if(i.length!==0){for(var n=0;n<i.length;n++){var s=i[n],o=e[s],a=r?r[s]:null,l=o.public,h=a?a.public:null;l&&h&&Object.setPrototypeOf(l,h);var c=o.private;if(c){var p=Array.from(c.values()),f=a?a.private:null;f&&(p=p.concat(f)),o.private=p}a&&Object.setPrototypeOf(o,a)}r&&Object.setPrototypeOf(e,r),t[Symbol.metadata||Symbol.for("Symbol.metadata")]=e}}function sp(t,e){return function(r){ma(e,"addInitializer"),Ni(r,"An initializer"),t.push(r)}}function yc(t,e,r,i,n,s,o,a,l){var h;switch(s){case 1:h="accessor";break;case 2:h="method";break;case 3:h="getter";break;case 4:h="setter";break;default:h="field"}var c,p,f={kind:h,name:a?"#"+e:e,isStatic:o,isPrivate:a},u={v:!1};if(s!==0&&(f.addInitializer=sp(n,u)),a){c=2,p=Symbol(e);var m={};s===0?(m.get=r.get,m.set=r.set):s===2?m.get=function(){return r.value}:(s!==1&&s!==3||(m.get=function(){return r.get.call(this)}),s!==1&&s!==4||(m.set=function(g){r.set.call(this,g)})),f.access=m}else c=1,p=e;try{return t(l,Object.assign(f,np(i,c,p,u)))}finally{u.v=!0}}function ma(t,e){if(t.v)throw new Error("attempted to call "+e+" after decoration was finished")}function vc(t){if(typeof t!="symbol")throw new TypeError("Metadata keys must be symbols, received: "+t)}function Ni(t,e){if(typeof t!="function")throw new TypeError(e+" must be a function")}function ga(t,e){var r=typeof e;if(t===1){if(r!=="object"||e===null)throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");e.get!==void 0&&Ni(e.get,"accessor.get"),e.set!==void 0&&Ni(e.set,"accessor.set"),e.init!==void 0&&Ni(e.init,"accessor.init"),e.initializer!==void 0&&Ni(e.initializer,"accessor.initializer")}else if(r!=="function")throw new TypeError((t===0?"field":t===10?"class":"method")+" decorators must return a function or void 0")}function bc(t){var e;return(e=t.init)==null&&(e=t.initializer)&&typeof console<"u"&&console.warn(".initializer has been renamed to .init as of March 2022"),e}function qd(t,e,r,i,n,s,o,a,l){var h,c,p,f,u,m,g=r[0];if(o?h=n===0||n===1?{get:r[3],set:r[4]}:n===3?{get:r[3]}:n===4?{set:r[3]}:{value:r[3]}:n!==0&&(h=Object.getOwnPropertyDescriptor(e,i)),n===1?p={get:h.get,set:h.set}:n===2?p=h.value:n===3?p=h.get:n===4&&(p=h.set),typeof g=="function")(f=yc(g,i,h,a,l,n,s,o,p))!==void 0&&(ga(n,f),n===0?c=f:n===1?(c=bc(f),u=f.get||p.get,m=f.set||p.set,p={get:u,set:m}):p=f);else for(var d=g.length-1;d>=0;d--){var y;(f=yc(g[d],i,h,a,l,n,s,o,p))!==void 0&&(ga(n,f),n===0?y=f:n===1?(y=bc(f),u=f.get||p.get,m=f.set||p.set,p={get:u,set:m}):p=f,y!==void 0&&(c===void 0?c=y:typeof c=="function"?c=[c,y]:c.push(y)))}if(n===0||n===1){if(c===void 0)c=function(_,x){return x};else if(typeof c!="function"){var v=c;c=function(_,x){for(var M=x,S=0;S<v.length;S++)M=v[S].call(_,M);return M}}else{var b=c;c=function(_,x){return b.call(_,x)}}t.push(c)}n!==0&&(n===1?(h.get=p.get,h.set=p.set):n===2?h.value=p:n===3?h.get=p:n===4&&(h.set=p),o?n===1?(t.push(function(_,x){return p.get.call(_,x)}),t.push(function(_,x){return p.set.call(_,x)})):n===2?t.push(p):t.push(function(_,x){return p.call(_,x)}):Object.defineProperty(e,i,h))}function Ud(t,e,r,i,n){for(var s,o,a=new Map,l=new Map,h=0;h<n.length;h++){var c=n[h];if(Array.isArray(c)){var p,f,u,m=c[1],g=c[2],d=c.length>3,y=m>=5;if(y?(p=e,f=i,(m-=5)!=0&&(u=o=o||[])):(p=e.prototype,f=r,m!==0&&(u=s=s||[])),m!==0&&!d){var v=y?l:a,b=v.get(g)||0;if(b===!0||b===3&&m!==4||b===4&&m!==3)throw new Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+g);!b&&m>2?v.set(g,m):v.set(g,!0)}qd(t,p,c,g,m,y,d,f,u)}}_c(t,s),_c(t,o)}function _c(t,e){e&&t.push(function(r){for(var i=0;i<e.length;i++)e[i].call(r);return r})}function Wd(t,e,r,i){if(i.length>0){for(var n=[],s=e,o=e.name,a=i.length-1;a>=0;a--){var l={v:!1};try{var h=Object.assign({kind:"class",name:o,addInitializer:sp(n,l)},np(r,0,o,l)),c=i[a](s,h)}finally{l.v=!0}c!==void 0&&(ga(10,c),s=c)}t.push(s,function(){for(var p=0;p<n.length;p++)n[p].call(s)})}}function Ly(t,e,r){var i=[],n={},s={};return Ud(i,t,s,n,e),gc(t.prototype,s),Wd(i,t,n,r),gc(t,n),i}function op(t,e){return function(r){Zd(e,"addInitializer"),ys(r,"An initializer"),t.push(r)}}function wc(t,e,r,i,n,s,o,a){var l;switch(n){case 1:l="accessor";break;case 2:l="method";break;case 3:l="getter";break;case 4:l="setter";break;default:l="field"}var h,c,p={kind:l,name:o?"#"+e:e,static:s,private:o},f={v:!1};n!==0&&(p.addInitializer=op(i,f)),n===0?o?(h=r.get,c=r.set):(h=function(){return this[e]},c=function(u){this[e]=u}):n===2?h=function(){return r.value}:(n!==1&&n!==3||(h=function(){return r.get.call(this)}),n!==1&&n!==4||(c=function(u){r.set.call(this,u)})),p.access=h&&c?{get:h,set:c}:h?{get:h}:{set:c};try{return t(a,p)}finally{f.v=!0}}function Zd(t,e){if(t.v)throw new Error("attempted to call "+e+" after decoration was finished")}function ys(t,e){if(typeof t!="function")throw new TypeError(e+" must be a function")}function ya(t,e){var r=typeof e;if(t===1){if(r!=="object"||e===null)throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");e.get!==void 0&&ys(e.get,"accessor.get"),e.set!==void 0&&ys(e.set,"accessor.set"),e.init!==void 0&&ys(e.init,"accessor.init")}else if(r!=="function")throw new TypeError((t===0?"field":t===10?"class":"method")+" decorators must return a function or void 0")}function Yd(t,e,r,i,n,s,o,a){var l,h,c,p,f,u,m=r[0];if(o?l=n===0||n===1?{get:r[3],set:r[4]}:n===3?{get:r[3]}:n===4?{set:r[3]}:{value:r[3]}:n!==0&&(l=Object.getOwnPropertyDescriptor(e,i)),n===1?c={get:l.get,set:l.set}:n===2?c=l.value:n===3?c=l.get:n===4&&(c=l.set),typeof m=="function")(p=wc(m,i,l,a,n,s,o,c))!==void 0&&(ya(n,p),n===0?h=p:n===1?(h=p.init,f=p.get||c.get,u=p.set||c.set,c={get:f,set:u}):c=p);else for(var g=m.length-1;g>=0;g--){var d;(p=wc(m[g],i,l,a,n,s,o,c))!==void 0&&(ya(n,p),n===0?d=p:n===1?(d=p.init,f=p.get||c.get,u=p.set||c.set,c={get:f,set:u}):c=p,d!==void 0&&(h===void 0?h=d:typeof h=="function"?h=[h,d]:h.push(d)))}if(n===0||n===1){if(h===void 0)h=function(b,_){return _};else if(typeof h!="function"){var y=h;h=function(b,_){for(var x=_,M=0;M<y.length;M++)x=y[M].call(b,x);return x}}else{var v=h;h=function(b,_){return v.call(b,_)}}t.push(h)}n!==0&&(n===1?(l.get=c.get,l.set=c.set):n===2?l.value=c:n===3?l.get=c:n===4&&(l.set=c),o?n===1?(t.push(function(b,_){return c.get.call(b,_)}),t.push(function(b,_){return c.set.call(b,_)})):n===2?t.push(c):t.push(function(b,_){return c.call(b,_)}):Object.defineProperty(e,i,l))}function Xd(t,e,r){for(var i,n,s=new Map,o=new Map,a=0;a<r.length;a++){var l=r[a];if(Array.isArray(l)){var h,c,p=l[1],f=l[2],u=l.length>3,m=p>=5;if(m?(h=e,(p-=5)!=0&&(c=n=n||[])):(h=e.prototype,p!==0&&(c=i=i||[])),p!==0&&!u){var g=m?o:s,d=g.get(f)||0;if(d===!0||d===3&&p!==4||d===4&&p!==3)throw new Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+f);!d&&p>2?g.set(f,p):g.set(f,!0)}Yd(t,h,l,f,p,m,u,c)}}xc(t,i),xc(t,n)}function xc(t,e){e&&t.push(function(r){for(var i=0;i<e.length;i++)e[i].call(r);return r})}function Kd(t,e,r){if(r.length>0){for(var i=[],n=e,s=e.name,o=r.length-1;o>=0;o--){var a={v:!1};try{var l=r[o](n,{kind:"class",name:s,addInitializer:op(i,a)})}finally{a.v=!0}l!==void 0&&(ya(10,l),n=l)}t.push(n,function(){for(var h=0;h<i.length;h++)i[h].call(n)})}}function $y(t,e,r){var i=[];return Xd(i,t,e),Kd(i,t,r),i}function Ry(t){var e={},r=!1;function i(n,s){return r=!0,{done:!1,value:new Aa(s=new Promise(function(o){o(t[n](s))}),1)}}return e[typeof Symbol<"u"&&Symbol.iterator||"@@iterator"]=function(){return this},e.next=function(n){return r?(r=!1,n):i("next",n)},typeof t.throw=="function"&&(e.throw=function(n){if(r)throw r=!1,n;return i("throw",n)}),typeof t.return=="function"&&(e.return=function(n){return r?(r=!1,n):i("return",n)}),e}function Vy(t){var e,r,i,n=2;for(typeof Symbol<"u"&&(r=Symbol.asyncIterator,i=Symbol.iterator);n--;){if(r&&(e=t[r])!=null)return e.call(t);if(i&&(e=t[i])!=null)return new va(e.call(t));r="@@asyncIterator",i="@@iterator"}throw new TypeError("Object is not async iterable")}function va(t){function e(r){if(Object(r)!==r)return Promise.reject(new TypeError(r+" is not an object."));var i=r.done;return Promise.resolve(r.value).then(function(n){return{value:n,done:i}})}return(va=function(r){this.s=r,this.n=r.next}).prototype={s:null,n:null,next:function(){return e(this.n.apply(this.s,arguments))},return:function(r){var i=this.s.return;return i===void 0?Promise.resolve({value:r,done:!0}):e(i.apply(this.s,arguments))},throw:function(r){var i=this.s.return;return i===void 0?Promise.reject(r):e(i.apply(this.s,arguments))}},new va(t)}function By(t){return new Aa(t,0)}function zy(t){if(Object(t)!==t)throw TypeError("right-hand side of 'in' should be an object, got "+(t!==null?typeof t:"null"));return t}function Jd(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var i,n,s,o,a=[],l=!0,h=!1;try{if(s=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(i=s.call(r)).done)&&(a.push(i.value),a.length!==e);l=!0);}catch(c){h=!0,n=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(h)throw n}}return a}}function Qd(t,e){var r=t&&(typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"]);if(r!=null){var i,n=[];for(r=r.call(t);t.length<e&&!(i=r.next()).done;)n.push(i.value);return n}}var sa;function Ny(t,e,r,i){sa||(sa=typeof Symbol=="function"&&Symbol.for&&Symbol.for("react.element")||60103);var n=t&&t.defaultProps,s=arguments.length-3;if(e||s===0||(e={children:void 0}),s===1)e.children=i;else if(s>1){for(var o=new Array(s),a=0;a<s;a++)o[a]=arguments[a+3];e.children=o}if(e&&n)for(var l in n)e[l]===void 0&&(e[l]=n[l]);else e||(e=n||{});return{$$typeof:sa,type:t,key:r===void 0?null:""+r,ref:null,props:e,_owner:null}}function Sc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,i)}return r}function Hy(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Sc(Object(r),!0).forEach(function(i){Ca(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Sc(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function tm(){tm=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,i=Object.defineProperty||function(k,A,P){k[A]=P.value},n=typeof Symbol=="function"?Symbol:{},s=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function l(k,A,P){return Object.defineProperty(k,A,{value:P,enumerable:!0,configurable:!0,writable:!0}),k[A]}try{l({},"")}catch{l=function(A,P,I){return A[P]=I}}function h(k,A,P,I){var O=A&&A.prototype instanceof f?A:f,F=Object.create(O.prototype),C=new D(I||[]);return i(F,"_invoke",{value:x(k,P,C)}),F}function c(k,A,P){try{return{type:"normal",arg:k.call(A,P)}}catch(I){return{type:"throw",arg:I}}}t.wrap=h;var p={};function f(){}function u(){}function m(){}var g={};l(g,s,function(){return this});var d=Object.getPrototypeOf,y=d&&d(d(E([])));y&&y!==e&&r.call(y,s)&&(g=y);var v=m.prototype=f.prototype=Object.create(g);function b(k){["next","throw","return"].forEach(function(A){l(k,A,function(P){return this._invoke(A,P)})})}function _(k,A){var P;i(this,"_invoke",{value:function(I,O){function F(){return new A(function(C,L){(function R(z,H,G,N){var Y=c(k[z],k,H);if(Y.type!=="throw"){var J=Y.arg,K=J.value;return K&&typeof K=="object"&&r.call(K,"__await")?A.resolve(K.__await).then(function(Z){R("next",Z,G,N)},function(Z){R("throw",Z,G,N)}):A.resolve(K).then(function(Z){J.value=Z,G(J)},function(Z){return R("throw",Z,G,N)})}N(Y.arg)})(I,O,C,L)})}return P=P?P.then(F,F):F()}})}function x(k,A,P){var I="suspendedStart";return function(O,F){if(I==="executing")throw new Error("Generator is already running");if(I==="completed"){if(O==="throw")throw F;return T()}for(P.method=O,P.arg=F;;){var C=P.delegate;if(C){var L=M(C,P);if(L){if(L===p)continue;return L}}if(P.method==="next")P.sent=P._sent=P.arg;else if(P.method==="throw"){if(I==="suspendedStart")throw I="completed",P.arg;P.dispatchException(P.arg)}else P.method==="return"&&P.abrupt("return",P.arg);I="executing";var R=c(k,A,P);if(R.type==="normal"){if(I=P.done?"completed":"suspendedYield",R.arg===p)continue;return{value:R.arg,done:P.done}}R.type==="throw"&&(I="completed",P.method="throw",P.arg=R.arg)}}}function M(k,A){var P=A.method,I=k.iterator[P];if(I===void 0)return A.delegate=null,P==="throw"&&k.iterator.return&&(A.method="return",A.arg=void 0,M(k,A),A.method==="throw")||P!=="return"&&(A.method="throw",A.arg=new TypeError("The iterator does not provide a '"+P+"' method")),p;var O=c(I,k.iterator,A.arg);if(O.type==="throw")return A.method="throw",A.arg=O.arg,A.delegate=null,p;var F=O.arg;return F?F.done?(A[k.resultName]=F.value,A.next=k.nextLoc,A.method!=="return"&&(A.method="next",A.arg=void 0),A.delegate=null,p):F:(A.method="throw",A.arg=new TypeError("iterator result is not an object"),A.delegate=null,p)}function S(k){var A={tryLoc:k[0]};1 in k&&(A.catchLoc=k[1]),2 in k&&(A.finallyLoc=k[2],A.afterLoc=k[3]),this.tryEntries.push(A)}function w(k){var A=k.completion||{};A.type="normal",delete A.arg,k.completion=A}function D(k){this.tryEntries=[{tryLoc:"root"}],k.forEach(S,this),this.reset(!0)}function E(k){if(k){var A=k[s];if(A)return A.call(k);if(typeof k.next=="function")return k;if(!isNaN(k.length)){var P=-1,I=function O(){for(;++P<k.length;)if(r.call(k,P))return O.value=k[P],O.done=!1,O;return O.value=void 0,O.done=!0,O};return I.next=I}}return{next:T}}function T(){return{value:void 0,done:!0}}return u.prototype=m,i(v,"constructor",{value:m,configurable:!0}),i(m,"constructor",{value:u,configurable:!0}),u.displayName=l(m,a,"GeneratorFunction"),t.isGeneratorFunction=function(k){var A=typeof k=="function"&&k.constructor;return!!A&&(A===u||(A.displayName||A.name)==="GeneratorFunction")},t.mark=function(k){return Object.setPrototypeOf?Object.setPrototypeOf(k,m):(k.__proto__=m,l(k,a,"GeneratorFunction")),k.prototype=Object.create(v),k},t.awrap=function(k){return{__await:k}},b(_.prototype),l(_.prototype,o,function(){return this}),t.AsyncIterator=_,t.async=function(k,A,P,I,O){O===void 0&&(O=Promise);var F=new _(h(k,A,P,I),O);return t.isGeneratorFunction(A)?F:F.next().then(function(C){return C.done?C.value:F.next()})},b(v),l(v,a,"Generator"),l(v,s,function(){return this}),l(v,"toString",function(){return"[object Generator]"}),t.keys=function(k){var A=Object(k),P=[];for(var I in A)P.push(I);return P.reverse(),function O(){for(;P.length;){var F=P.pop();if(F in A)return O.value=F,O.done=!1,O}return O.done=!0,O}},t.values=E,D.prototype={constructor:D,reset:function(k){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!k)for(var A in this)A.charAt(0)==="t"&&r.call(this,A)&&!isNaN(+A.slice(1))&&(this[A]=void 0)},stop:function(){this.done=!0;var k=this.tryEntries[0].completion;if(k.type==="throw")throw k.arg;return this.rval},dispatchException:function(k){if(this.done)throw k;var A=this;function P(R,z){return F.type="throw",F.arg=k,A.next=R,z&&(A.method="next",A.arg=void 0),!!z}for(var I=this.tryEntries.length-1;I>=0;--I){var O=this.tryEntries[I],F=O.completion;if(O.tryLoc==="root")return P("end");if(O.tryLoc<=this.prev){var C=r.call(O,"catchLoc"),L=r.call(O,"finallyLoc");if(C&&L){if(this.prev<O.catchLoc)return P(O.catchLoc,!0);if(this.prev<O.finallyLoc)return P(O.finallyLoc)}else if(C){if(this.prev<O.catchLoc)return P(O.catchLoc,!0)}else{if(!L)throw new Error("try statement without catch or finally");if(this.prev<O.finallyLoc)return P(O.finallyLoc)}}}},abrupt:function(k,A){for(var P=this.tryEntries.length-1;P>=0;--P){var I=this.tryEntries[P];if(I.tryLoc<=this.prev&&r.call(I,"finallyLoc")&&this.prev<I.finallyLoc){var O=I;break}}O&&(k==="break"||k==="continue")&&O.tryLoc<=A&&A<=O.finallyLoc&&(O=null);var F=O?O.completion:{};return F.type=k,F.arg=A,O?(this.method="next",this.next=O.finallyLoc,p):this.complete(F)},complete:function(k,A){if(k.type==="throw")throw k.arg;return k.type==="break"||k.type==="continue"?this.next=k.arg:k.type==="return"?(this.rval=this.arg=k.arg,this.method="return",this.next="end"):k.type==="normal"&&A&&(this.next=A),p},finish:function(k){for(var A=this.tryEntries.length-1;A>=0;--A){var P=this.tryEntries[A];if(P.finallyLoc===k)return this.complete(P.completion,P.afterLoc),w(P),p}},catch:function(k){for(var A=this.tryEntries.length-1;A>=0;--A){var P=this.tryEntries[A];if(P.tryLoc===k){var I=P.completion;if(I.type==="throw"){var O=I.arg;w(P)}return O}}throw new Error("illegal catch attempt")},delegateYield:function(k,A,P){return this.delegate={iterator:E(k),resultName:A,nextLoc:P},this.method==="next"&&(this.arg=void 0),p}},t}function em(t){return(em=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function Ec(){Ec=function(n,s){return new r(n,void 0,s)};var t=RegExp.prototype,e=new WeakMap;function r(n,s,o){var a=new RegExp(n,s);return e.set(a,o||e.get(n)),Wr(a,r.prototype)}function i(n,s){var o=e.get(s);return Object.keys(o).reduce(function(a,l){var h=o[l];if(typeof h=="number")a[l]=n[h];else{for(var c=0;n[h[c]]===void 0&&c+1<h.length;)c++;a[l]=n[h[c]]}return a},Object.create(null))}return im(r,RegExp),r.prototype.exec=function(n){var s=t.exec.call(this,n);if(s){s.groups=i(s,this);var o=s.indices;o&&(o.groups=i(o,this))}return s},r.prototype[Symbol.replace]=function(n,s){if(typeof s=="string"){var o=e.get(this);return t[Symbol.replace].call(this,n,s.replace(/\$<([^>]+)>/g,function(l,h){var c=o[h];return"$"+(Array.isArray(c)?c.join("$"):c)}))}if(typeof s=="function"){var a=this;return t[Symbol.replace].call(this,n,function(){var l=arguments;return typeof l[l.length-1]!="object"&&(l=[].slice.call(l)).push(i(l,a)),s.apply(this,l)})}return t[Symbol.replace].call(this,n,s)},Ec.apply(this,arguments)}function jy(t){this.wrapped=t}function Gy(t){return function(){return new zi(t.apply(this,arguments))}}function kc(t,e,r,i,n,s,o){try{var a=t[s](o),l=a.value}catch(h){return void r(h)}a.done?e(l):Promise.resolve(l).then(i,n)}function qy(t){return function(){var e=this,r=arguments;return new Promise(function(i,n){var s=t.apply(e,r);function o(l){kc(s,i,n,o,a,"next",l)}function a(l){kc(s,i,n,o,a,"throw",l)}o(void 0)})}}function Uy(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Pc(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,Vs(i.key),i)}}function Wy(t,e,r){return e&&Pc(t.prototype,e),r&&Pc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function Zy(t,e){for(var r in e)(s=e[r]).configurable=s.enumerable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,r,s);if(Object.getOwnPropertySymbols)for(var i=Object.getOwnPropertySymbols(e),n=0;n<i.length;n++){var s,o=i[n];(s=e[o]).configurable=s.enumerable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,o,s)}return t}function Yy(t,e){for(var r=Object.getOwnPropertyNames(e),i=0;i<r.length;i++){var n=r[i],s=Object.getOwnPropertyDescriptor(e,n);s&&s.configurable&&t[n]===void 0&&Object.defineProperty(t,n,s)}return t}function Ca(t,e,r){return(e=Vs(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function rm(){return(rm=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t}).apply(this,arguments)}function Xy(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?Object(arguments[e]):{},i=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&i.push.apply(i,Object.getOwnPropertySymbols(r).filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),i.forEach(function(n){Ca(t,n,r[n])})}return t}function im(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Wr(t,e)}function Ky(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Wr(t,e)}function Gi(t){return(Gi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(t)}function Wr(t,e){return(Wr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r})(t,e)}function ap(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function lp(t,e,r){return(lp=ap()?Reflect.construct.bind():function(i,n,s){var o=[null];o.push.apply(o,n);var a=new(Function.bind.apply(i,o));return s&&Wr(a,s.prototype),a}).apply(null,arguments)}function nm(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function sm(t){var e=typeof Map=="function"?new Map:void 0;return(sm=function(r){if(r===null||!nm(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(e!==void 0){if(e.has(r))return e.get(r);e.set(r,i)}function i(){return lp(r,arguments,Gi(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Wr(i,r)})(t)}function Jy(t,e){return e!=null&&typeof Symbol<"u"&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}function Qy(t){return t&&t.__esModule?t:{default:t}}function hp(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,r=new WeakMap;return(hp=function(i){return i?r:e})(t)}function tv(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var r=hp(e);if(r&&r.has(t))return r.get(t);var i={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var o=n?Object.getOwnPropertyDescriptor(t,s):null;o&&(o.get||o.set)?Object.defineProperty(i,s,o):i[s]=t[s]}return i.default=t,r&&r.set(t,i),i}function ev(t,e){if(t!==e)throw new TypeError("Cannot instantiate an arrow function")}function rv(t){if(t==null)throw new TypeError("Cannot destructure "+t)}function om(t,e){if(t==null)return{};var r,i,n={},s=Object.keys(t);for(i=0;i<s.length;i++)r=s[i],e.indexOf(r)>=0||(n[r]=t[r]);return n}function iv(t,e){if(t==null)return{};var r,i,n=om(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i<s.length;i++)r=s[i],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function am(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function lm(t,e){if(e&&(typeof e=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return am(t)}function nv(t){var e=ap();return function(){var r,i=Gi(t);if(e){var n=Gi(this).constructor;r=Reflect.construct(i,arguments,n)}else r=i.apply(this,arguments);return lm(this,r)}}function cp(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=Gi(t))!==null;);return t}function hm(){return(hm=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(t,e,r){var i=cp(t,e);if(i){var n=Object.getOwnPropertyDescriptor(i,e);return n.get?n.get.call(arguments.length<3?t:r):n.value}}).apply(this,arguments)}function pp(t,e,r,i){return(pp=typeof Reflect<"u"&&Reflect.set?Reflect.set:function(n,s,o,a){var l,h=cp(n,s);if(h){if((l=Object.getOwnPropertyDescriptor(h,s)).set)return l.set.call(a,o),!0;if(!l.writable)return!1}if(l=Object.getOwnPropertyDescriptor(a,s)){if(!l.writable)return!1;l.value=o,Object.defineProperty(a,s,l)}else Ca(a,s,o);return!0})(t,e,r,i)}function sv(t,e,r,i,n){if(!pp(t,e,r,i||t)&&n)throw new Error("failed to set property");return r}function Rr(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function ov(t,e){return e||(e=t.slice(0)),t.raw=e,t}function av(t){throw new TypeError('"'+t+'" is read-only')}function lv(t){throw new TypeError('"'+t+'" is write-only')}function hv(t){throw new Error('Class "'+t+'" cannot be referenced in computed property keys.')}function cm(){}function pm(t){throw new ReferenceError(t+" is not defined - temporal dead zone")}function cv(t,e){return t===cm?pm(e):t}function pv(t,e){return Ta(t)||Jd(t,e)||Zr(t,e)||Ma()}function uv(t,e){return Ta(t)||Qd(t,e)||Zr(t,e)||Ma()}function um(t){return Ta(t)||up(t)||Zr(t)||Ma()}function fv(t){return fm(t)||up(t)||Zr(t)||dm()}function fm(t){if(Array.isArray(t))return xs(t)}function Ta(t){if(Array.isArray(t))return t}function dv(t,e,r){if(e&&!Array.isArray(e)&&typeof e.length=="number"){var i=e.length;return xs(e,r!==void 0&&r<i?r:i)}return t(e,r)}function up(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Zr(t,e){if(t){if(typeof t=="string")return xs(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?xs(t,e):void 0}}function xs(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r<e;r++)i[r]=t[r];return i}function dm(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
230
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
231
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
232
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s,o=!0,a=!1;return{s:function(){r=r.call(t)},n:function(){var l=r.next();return o=l.done,l},e:function(l){a=!0,s=l},f:function(){try{o||r.return==null||r.return()}finally{if(a)throw s}}}}function
|
|
233
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yv(t){return function(){var e=t.apply(this,arguments);return e.next(),e}}function mm(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Vs(t){var e=mm(t,"string");return typeof e=="symbol"?e:String(e)}function vv(t,e){throw new Error("Decorating class property failed. Please ensure that proposal-class-properties is enabled and runs after the decorators transform.")}function bv(t,e,r,i){r&&Object.defineProperty(t,e,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(i):void 0})}function _v(t,e,r,i,n){var s={};return Object.keys(i).forEach(function(o){s[o]=i[o]}),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=r.slice().reverse().reduce(function(o,a){return a(t,e,o)||o},s),n&&s.initializer!==void 0&&(s.value=s.initializer?s.initializer.call(n):void 0,s.initializer=void 0),s.initializer===void 0&&(Object.defineProperty(t,e,s),s=null),s}zi.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},zi.prototype.next=function(t){return this._invoke("next",t)},zi.prototype.throw=function(t){return this._invoke("throw",t)},zi.prototype.return=function(t){return this._invoke("return",t)};var gm=0;function wv(t){return"__private_"+gm+++"_"+t}function xv(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}function Sv(t,e){return fp(t,Fa(t,e,"get"))}function Ev(t,e,r){return dp(t,Fa(t,e,"set"),r),r}function kv(t,e){return mp(t,Fa(t,e,"set"))}function Fa(t,e,r){if(!e.has(t))throw new TypeError("attempted to "+r+" private field on non-instance");return e.get(t)}function Pv(t,e,r){return Bs(t,e),Da(r,"get"),fp(t,r)}function Av(t,e,r,i){return Bs(t,e),Da(r,"set"),dp(t,r,i),i}function Cv(t,e,r){return Bs(t,e),r}function Tv(){throw new TypeError("attempted to set read only static private field")}function fp(t,e){return e.get?e.get.call(t):e.value}function dp(t,e,r){if(e.set)e.set.call(t,r);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=r}}function mp(t,e){if(e.set)return"__destrObj"in e||(e.__destrObj={set value(r){e.set.call(t,r)}}),e.__destrObj;if(!e.writable)throw new TypeError("attempted to set read only private field");return e}function Mv(t,e,r){return Bs(t,e),Da(r,"set"),mp(t,r)}function Bs(t,e){if(t!==e)throw new TypeError("Private static access of wrong provenance")}function Da(t,e){if(t===void 0)throw new TypeError("attempted to "+e+" private static field before its declaration")}function Fv(t,e,r,i){var n=gp();if(i)for(var s=0;s<i.length;s++)n=i[s](n);var o=e(function(l){n.initializeInstanceElements(l,a.elements)},r),a=n.decorateClass(bm(o.d.map(ym)),t);return n.initializeClassElements(o.F,a.elements),n.runClassFinishers(o.F,a.finishers)}function gp(){gp=function(){return t};var t={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,r){["method","field"].forEach(function(i){r.forEach(function(n){n.kind===i&&n.placement==="own"&&this.defineClassElement(e,n)},this)},this)},initializeClassElements:function(e,r){var i=e.prototype;["method","field"].forEach(function(n){r.forEach(function(s){var o=s.placement;if(s.kind===n&&(o==="static"||o==="prototype")){var a=o==="static"?e:i;this.defineClassElement(a,s)}},this)},this)},defineClassElement:function(e,r){var i=r.descriptor;if(r.kind==="field"){var n=r.initializer;i={enumerable:i.enumerable,writable:i.writable,configurable:i.configurable,value:n===void 0?void 0:n.call(e)}}Object.defineProperty(e,r.key,i)},decorateClass:function(e,r){var i=[],n=[],s={static:[],prototype:[],own:[]};if(e.forEach(function(a){this.addElementPlacement(a,s)},this),e.forEach(function(a){if(!Hi(a))return i.push(a);var l=this.decorateElement(a,s);i.push(l.element),i.push.apply(i,l.extras),n.push.apply(n,l.finishers)},this),!r)return{elements:i,finishers:n};var o=this.decorateConstructor(i,r);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,r,i){var n=r[e.placement];if(!i&&n.indexOf(e.key)!==-1)throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,r){for(var i=[],n=[],s=e.decorators,o=s.length-1;o>=0;o--){var a=r[e.placement];a.splice(a.indexOf(e.key),1);var l=this.fromElementDescriptor(e),h=this.toElementFinisherExtras((0,s[o])(l)||l);e=h.element,this.addElementPlacement(e,r),h.finisher&&n.push(h.finisher);var c=h.extras;if(c){for(var p=0;p<c.length;p++)this.addElementPlacement(c[p],r);i.push.apply(i,c)}}return{element:e,finishers:n,extras:i}},decorateConstructor:function(e,r){for(var i=[],n=r.length-1;n>=0;n--){var s=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,r[n])(s)||s);if(o.finisher!==void 0&&i.push(o.finisher),o.elements!==void 0){e=o.elements;for(var a=0;a<e.length-1;a++)for(var l=a+1;l<e.length;l++)if(e[a].key===e[l].key&&e[a].placement===e[l].placement)throw new TypeError("Duplicated element ("+e[a].key+")")}}return{elements:e,finishers:i}},fromElementDescriptor:function(e){var r={kind:e.kind,key:e.key,placement:e.placement,descriptor:e.descriptor};return Object.defineProperty(r,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),e.kind==="field"&&(r.initializer=e.initializer),r},toElementDescriptors:function(e){if(e!==void 0)return um(e).map(function(r){var i=this.toElementDescriptor(r);return this.disallowProperty(r,"finisher","An element descriptor"),this.disallowProperty(r,"extras","An element descriptor"),i},this)},toElementDescriptor:function(e){var r=String(e.kind);if(r!=="method"&&r!=="field")throw new TypeError(`An element descriptor's .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "`+r+'"');var i=Vs(e.key),n=String(e.placement);if(n!=="static"&&n!=="prototype"&&n!=="own")throw new TypeError(`An element descriptor's .placement property must be one of "static", "prototype" or "own", but a decorator created an element descriptor with .placement "`+n+'"');var s=e.descriptor;this.disallowProperty(e,"elements","An element descriptor");var o={kind:r,key:i,placement:n,descriptor:Object.assign({},s)};return r!=="field"?this.disallowProperty(e,"initializer","A method descriptor"):(this.disallowProperty(s,"get","The property descriptor of a field descriptor"),this.disallowProperty(s,"set","The property descriptor of a field descriptor"),this.disallowProperty(s,"value","The property descriptor of a field descriptor"),o.initializer=e.initializer),o},toElementFinisherExtras:function(e){return{element:this.toElementDescriptor(e),finisher:Cc(e,"finisher"),extras:this.toElementDescriptors(e.extras)}},fromClassDescriptor:function(e){var r={kind:"class",elements:e.map(this.fromElementDescriptor,this)};return Object.defineProperty(r,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),r},toClassDescriptor:function(e){var r=String(e.kind);if(r!=="class")throw new TypeError(`A class descriptor's .kind property must be "class", but a decorator created a class descriptor with .kind "`+r+'"');this.disallowProperty(e,"key","A class descriptor"),this.disallowProperty(e,"placement","A class descriptor"),this.disallowProperty(e,"descriptor","A class descriptor"),this.disallowProperty(e,"initializer","A class descriptor"),this.disallowProperty(e,"extras","A class descriptor");var i=Cc(e,"finisher");return{elements:this.toElementDescriptors(e.elements),finisher:i}},runClassFinishers:function(e,r){for(var i=0;i<r.length;i++){var n=(0,r[i])(e);if(n!==void 0){if(typeof n!="function")throw new TypeError("Finishers must return a constructor.");e=n}}return e},disallowProperty:function(e,r,i){if(e[r]!==void 0)throw new TypeError(i+" can't have a ."+r+" property.")}};return t}function ym(t){var e,r=Vs(t.key);t.kind==="method"?e={value:t.value,writable:!0,configurable:!0,enumerable:!1}:t.kind==="get"?e={get:t.value,configurable:!0,enumerable:!1}:t.kind==="set"?e={set:t.value,configurable:!0,enumerable:!1}:t.kind==="field"&&(e={configurable:!0,writable:!0,enumerable:!0});var i={kind:t.kind==="field"?"field":"method",key:r,placement:t.static?"static":t.kind==="field"?"own":"prototype",descriptor:e};return t.decorators&&(i.decorators=t.decorators),t.kind==="field"&&(i.initializer=t.value),i}function vm(t,e){t.descriptor.get!==void 0?e.descriptor.get=t.descriptor.get:e.descriptor.set=t.descriptor.set}function bm(t){for(var e=[],r=function(o){return o.kind==="method"&&o.key===s.key&&o.placement===s.placement},i=0;i<t.length;i++){var n,s=t[i];if(s.kind==="method"&&(n=e.find(r)))if(Ac(s.descriptor)||Ac(n.descriptor)){if(Hi(s)||Hi(n))throw new ReferenceError("Duplicated methods ("+s.key+") can't be decorated.");n.descriptor=s.descriptor}else{if(Hi(s)){if(Hi(n))throw new ReferenceError("Decorators can't be placed on different accessors with for the same property ("+s.key+").");n.decorators=s.decorators}vm(s,n)}else e.push(s)}return e}function Hi(t){return t.decorators&&t.decorators.length}function Ac(t){return t!==void 0&&!(t.value===void 0&&t.writable===void 0)}function Cc(t,e){var r=t[e];if(r!==void 0&&typeof r!="function")throw new TypeError("Expected '"+e+"' to be a function");return r}function Dv(t,e,r){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return r}function yp(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Iv(t,e,r){yp(t,e),e.set(t,r)}function Ov(t,e){yp(t,e),e.add(t)}function Lv(){throw new TypeError("attempted to reassign private method")}function $v(t){return t}var vp=function(t,e){return(vp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var n in i)i.hasOwnProperty(n)&&(r[n]=i[n])})(t,e)};function Rv(t,e){function r(){this.constructor=t}vp(t,e),t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var _m=function(){return(_m=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)};function Vv(t,e){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(r[i]=t[i]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function"){var n=0;for(i=Object.getOwnPropertySymbols(t);n<i.length;n++)e.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(t,i[n])&&(r[i[n]]=t[i[n]])}return r}function zt(t,e,r,i){var n,s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o}function Bv(t,e){return function(r,i){e(r,i,t)}}function zv(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}function Nv(t,e,r,i){return new(r||(r=Promise))(function(n,s){function o(h){try{l(i.next(h))}catch(c){s(c)}}function a(h){try{l(i.throw(h))}catch(c){s(c)}}function l(h){var c;h.done?n(h.value):(c=h.value,c instanceof r?c:new r(function(p){p(c)})).then(o,a)}l((i=i.apply(t,e||[])).next())})}function Hv(t,e){var r,i,n,s,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(l){return function(h){return function(c){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,i&&(n=2&c[0]?i.return:c[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,c[1])).done)return n;switch(i=0,n&&(c=[2&c[0],n.value]),c[0]){case 0:case 1:n=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,i=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(n=o.trys,!((n=n.length>0&&n[n.length-1])||c[0]!==6&&c[0]!==2)){o=0;continue}if(c[0]===3&&(!n||c[1]>n[0]&&c[1]<n[3])){o.label=c[1];break}if(c[0]===6&&o.label<n[1]){o.label=n[1],n=c;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(c);break}n[2]&&o.ops.pop(),o.trys.pop();continue}c=e.call(t,o)}catch(p){c=[6,p],i=0}finally{r=n=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([l,h])}}}function jv(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]}function Gv(t,e){for(var r in t)r==="default"||e.hasOwnProperty(r)||(e[r]=t[r])}function Tc(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],i=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function wm(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var i,n,s=r.call(t),o=[];try{for(;(e===void 0||e-- >0)&&!(i=s.next()).done;)o.push(i.value)}catch(a){n={error:a}}finally{try{i&&!i.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return o}function qv(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(wm(arguments[e]));return t}function Uv(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;var i=Array(t),n=0;for(e=0;e<r;e++)for(var s=arguments[e],o=0,a=s.length;o<a;o++,n++)i[n]=s[o];return i}function Ss(t){return this instanceof Ss?(this.v=t,this):new Ss(t)}function Wv(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,n=r.apply(t,e||[]),s=[];return i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i;function o(p){n[p]&&(i[p]=function(f){return new Promise(function(u,m){s.push([p,f,u,m])>1||a(p,f)})})}function a(p,f){try{(function(u){u.value instanceof Ss?Promise.resolve(u.value.v).then(l,h):c(s[0][2],u)})(n[p](f))}catch(u){c(s[0][3],u)}}function l(p){a("next",p)}function h(p){a("throw",p)}function c(p,f){p(f),s.shift(),s.length&&a(s[0][0],s[0][1])}}function Zv(t){var e,r;return e={},i("next"),i("throw",function(n){throw n}),i("return"),e[Symbol.iterator]=function(){return this},e;function i(n,s){e[n]=t[n]?function(o){return(r=!r)?{value:Ss(t[n](o)),done:n==="return"}:s?s(o):o}:s}}function Yv(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,r=t[Symbol.asyncIterator];return r?r.call(t):(t=typeof Tc=="function"?Tc(t):t[Symbol.iterator](),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(n){e[n]=t[n]&&function(s){return new Promise(function(o,a){(function(l,h,c,p){Promise.resolve(p).then(function(f){l({value:f,done:c})},h)})(o,a,(s=t[n](s)).done,s.value)})}}}function Xv(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function Kv(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}function Jv(t){return t&&t.__esModule?t:{default:t}}function Qv(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function tb(t,e,r){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,r),r}var vs=window,Ia=vs.ShadowRoot&&(vs.ShadyCSS===void 0||vs.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Oa=Symbol(),Mc=new WeakMap,Es=class{constructor(e,r,i){if(this._$cssResult$=!0,i!==Oa)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o,r=this.t;if(Ia&&e===void 0){let i=r!==void 0&&r.length===1;i&&(e=Mc.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&Mc.set(r,e))}return e}toString(){return this.cssText}},xm=t=>new Es(typeof t=="string"?t:t+"",void 0,Oa),Sm=(t,...e)=>{let r=t.length===1?t[0]:e.reduce((i,n,s)=>i+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+t[s+1],t[0]);return new Es(r,t,Oa)},Em=(t,e)=>{Ia?t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):e.forEach(r=>{let i=document.createElement("style"),n=vs.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,t.appendChild(i)})},Fc=Ia?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let i of e.cssRules)r+=i.cssText;return xm(r)})(t):t,oa,ks=window,Dc=ks.trustedTypes,km=Dc?Dc.emptyScript:"",Ic=ks.reactiveElementPolyfillSupport,ba={toAttribute(t,e){switch(e){case Boolean:t=t?km:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},bp=(t,e)=>e!==t&&(e==e||t==t),aa={attribute:!0,type:String,converter:ba,reflect:!1,hasChanged:bp},ze=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(e){var r;this.finalize(),((r=this.h)!==null&&r!==void 0?r:this.h=[]).push(e)}static get observedAttributes(){this.finalize();let e=[];return this.elementProperties.forEach((r,i)=>{let n=this._$Ep(i,r);n!==void 0&&(this._$Ev.set(n,i),e.push(n))}),e}static createProperty(e,r=aa){if(r.state&&(r.attribute=!1),this.finalize(),this.elementProperties.set(e,r),!r.noAccessor&&!this.prototype.hasOwnProperty(e)){let i=typeof e=="symbol"?Symbol():"__"+e,n=this.getPropertyDescriptor(e,i,r);n!==void 0&&Object.defineProperty(this.prototype,e,n)}}static getPropertyDescriptor(e,r,i){return{get(){return this[r]},set(n){let s=this[e];this[r]=n,this.requestUpdate(e,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||aa}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;let e=Object.getPrototypeOf(this);if(e.finalize(),e.h!==void 0&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){let r=this.properties,i=[...Object.getOwnPropertyNames(r),...Object.getOwnPropertySymbols(r)];for(let n of i)this.createProperty(n,r[n])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){let r=[];if(Array.isArray(e)){let i=new Set(e.flat(1/0).reverse());for(let n of i)r.unshift(Fc(n))}else e!==void 0&&r.push(Fc(e));return r}static _$Ep(e,r){let i=r.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}u(){var e;this._$E_=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(r=>r(this))}addController(e){var r,i;((r=this._$ES)!==null&&r!==void 0?r:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((i=e.hostConnected)===null||i===void 0||i.call(e))}removeController(e){var r;(r=this._$ES)===null||r===void 0||r.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,r)=>{this.hasOwnProperty(r)&&(this._$Ei.set(r,this[r]),delete this[r])})}createRenderRoot(){var e;let r=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return Em(r,this.constructor.elementStyles),r}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(r=>{var i;return(i=r.hostConnected)===null||i===void 0?void 0:i.call(r)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(r=>{var i;return(i=r.hostDisconnected)===null||i===void 0?void 0:i.call(r)})}attributeChangedCallback(e,r,i){this._$AK(e,i)}_$EO(e,r,i=aa){var n;let s=this.constructor._$Ep(e,i);if(s!==void 0&&i.reflect===!0){let o=(((n=i.converter)===null||n===void 0?void 0:n.toAttribute)!==void 0?i.converter:ba).toAttribute(r,i.type);this._$El=e,o==null?this.removeAttribute(s):this.setAttribute(s,o),this._$El=null}}_$AK(e,r){var i;let n=this.constructor,s=n._$Ev.get(e);if(s!==void 0&&this._$El!==s){let o=n.getPropertyOptions(s),a=typeof o.converter=="function"?{fromAttribute:o.converter}:((i=o.converter)===null||i===void 0?void 0:i.fromAttribute)!==void 0?o.converter:ba;this._$El=s,this[s]=a.fromAttribute(r,o.type),this._$El=null}}requestUpdate(e,r,i){let n=!0;e!==void 0&&(((i=i||this.constructor.getPropertyOptions(e)).hasChanged||bp)(this[e],r)?(this._$AL.has(e)||this._$AL.set(e,r),i.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,i))):n=!1),!this.isUpdatePending&&n&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(r){Promise.reject(r)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((n,s)=>this[s]=n),this._$Ei=void 0);let r=!1,i=this._$AL;try{r=this.shouldUpdate(i),r?(this.willUpdate(i),(e=this._$ES)===null||e===void 0||e.forEach(n=>{var s;return(s=n.hostUpdate)===null||s===void 0?void 0:s.call(n)}),this.update(i)):this._$Ek()}catch(n){throw r=!1,this._$Ek(),n}r&&this._$AE(i)}willUpdate(e){}_$AE(e){var r;(r=this._$ES)===null||r===void 0||r.forEach(i=>{var n;return(n=i.hostUpdated)===null||n===void 0?void 0:n.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((r,i)=>this._$EO(i,this[i],r)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};var la;ze.finalized=!0,ze.elementProperties=new Map,ze.elementStyles=[],ze.shadowRootOptions={mode:"open"},Ic?.({ReactiveElement:ze}),((oa=ks.reactiveElementVersions)!==null&&oa!==void 0?oa:ks.reactiveElementVersions=[]).push("1.5.0");var Ps=window,Nr=Ps.trustedTypes,Oc=Nr?Nr.createPolicy("lit-html",{createHTML:t=>t}):void 0,Ne=`lit$${(Math.random()+"").slice(9)}$`,La="?"+Ne,Pm=`<${La}>`,Hr=document,qi=(t="")=>Hr.createComment(t),Ui=t=>t===null||typeof t!="object"&&typeof t!="function",_p=Array.isArray,wp=t=>_p(t)||typeof t?.[Symbol.iterator]=="function",Bi=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Lc=/-->/g,$c=/>/g,mr=RegExp(`>|[
|
|
254
|
+
`;default:throw new Error(`unknown role: ${this.role}`)}}};X(ms,"properties",{role:{type:String},userBubbleColor:{type:String,attribute:"user-bubble-color"},botPicSvg:{type:Object,attribute:"bot-pic-svg"},widgetId:{type:String,attribute:"widget-id"}});customElements.define("mw-chat-message",ms);function Hi(t){var e,r;function i(s,o){try{var a=t[s](o),l=a.value,h=l instanceof Ta;Promise.resolve(h?l.v:l).then(function(c){if(h){var p=s==="return"?"return":"next";if(!l.k||c.done)return i(p,c);c=t[p](c).value}n(a.done?"return":"normal",c)},function(c){i("throw",c)})}catch(c){n("throw",c)}}function n(s,o){switch(s){case"return":e.resolve({value:o,done:!0});break;case"throw":e.reject(o);break;default:e.resolve({value:o,done:!1})}(e=e.next)?i(e.key,e.arg):r=null}this._invoke=function(s,o){return new Promise(function(a,l){var h={key:s,arg:o,resolve:a,reject:l,next:null};r?r=r.next=h:(e=r=h,i(s,o))})},typeof t.return!="function"&&(this.return=void 0)}function Ta(t,e){this.v=t,this.k=e}function op(t,e,r,i){return{getMetadata:function(n){ya(i,"getMetadata"),_c(n);var s=t[n];if(s!==void 0){if(e===1){var o=s.public;if(o!==void 0)return o[r]}else if(e===2){var a=s.private;if(a!==void 0)return a.get(r)}else if(Object.hasOwnProperty.call(s,"constructor"))return s.constructor}},setMetadata:function(n,s){ya(i,"setMetadata"),_c(n);var o=t[n];if(o===void 0&&(o=t[n]={}),e===1){var a=o.public;a===void 0&&(a=o.public={}),a[r]=s}else if(e===2){var l=o.priv;l===void 0&&(l=o.private=new Map),l.set(r,s)}else o.constructor=s}}}function vc(t,e){var r=t[Symbol.metadata||Symbol.for("Symbol.metadata")],i=Object.getOwnPropertySymbols(e);if(i.length!==0){for(var n=0;n<i.length;n++){var s=i[n],o=e[s],a=r?r[s]:null,l=o.public,h=a?a.public:null;l&&h&&Object.setPrototypeOf(l,h);var c=o.private;if(c){var p=Array.from(c.values()),f=a?a.private:null;f&&(p=p.concat(f)),o.private=p}a&&Object.setPrototypeOf(o,a)}r&&Object.setPrototypeOf(e,r),t[Symbol.metadata||Symbol.for("Symbol.metadata")]=e}}function ap(t,e){return function(r){ya(e,"addInitializer"),Ni(r,"An initializer"),t.push(r)}}function bc(t,e,r,i,n,s,o,a,l){var h;switch(s){case 1:h="accessor";break;case 2:h="method";break;case 3:h="getter";break;case 4:h="setter";break;default:h="field"}var c,p,f={kind:h,name:a?"#"+e:e,isStatic:o,isPrivate:a},u={v:!1};if(s!==0&&(f.addInitializer=ap(n,u)),a){c=2,p=Symbol(e);var m={};s===0?(m.get=r.get,m.set=r.set):s===2?m.get=function(){return r.value}:(s!==1&&s!==3||(m.get=function(){return r.get.call(this)}),s!==1&&s!==4||(m.set=function(g){r.set.call(this,g)})),f.access=m}else c=1,p=e;try{return t(l,Object.assign(f,op(i,c,p,u)))}finally{u.v=!0}}function ya(t,e){if(t.v)throw new Error("attempted to call "+e+" after decoration was finished")}function _c(t){if(typeof t!="symbol")throw new TypeError("Metadata keys must be symbols, received: "+t)}function Ni(t,e){if(typeof t!="function")throw new TypeError(e+" must be a function")}function va(t,e){var r=typeof e;if(t===1){if(r!=="object"||e===null)throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");e.get!==void 0&&Ni(e.get,"accessor.get"),e.set!==void 0&&Ni(e.set,"accessor.set"),e.init!==void 0&&Ni(e.init,"accessor.init"),e.initializer!==void 0&&Ni(e.initializer,"accessor.initializer")}else if(r!=="function")throw new TypeError((t===0?"field":t===10?"class":"method")+" decorators must return a function or void 0")}function wc(t){var e;return(e=t.init)==null&&(e=t.initializer)&&typeof console<"u"&&console.warn(".initializer has been renamed to .init as of March 2022"),e}function Zd(t,e,r,i,n,s,o,a,l){var h,c,p,f,u,m,g=r[0];if(o?h=n===0||n===1?{get:r[3],set:r[4]}:n===3?{get:r[3]}:n===4?{set:r[3]}:{value:r[3]}:n!==0&&(h=Object.getOwnPropertyDescriptor(e,i)),n===1?p={get:h.get,set:h.set}:n===2?p=h.value:n===3?p=h.get:n===4&&(p=h.set),typeof g=="function")(f=bc(g,i,h,a,l,n,s,o,p))!==void 0&&(va(n,f),n===0?c=f:n===1?(c=wc(f),u=f.get||p.get,m=f.set||p.set,p={get:u,set:m}):p=f);else for(var d=g.length-1;d>=0;d--){var y;(f=bc(g[d],i,h,a,l,n,s,o,p))!==void 0&&(va(n,f),n===0?y=f:n===1?(y=wc(f),u=f.get||p.get,m=f.set||p.set,p={get:u,set:m}):p=f,y!==void 0&&(c===void 0?c=y:typeof c=="function"?c=[c,y]:c.push(y)))}if(n===0||n===1){if(c===void 0)c=function(_,x){return x};else if(typeof c!="function"){var v=c;c=function(_,x){for(var M=x,S=0;S<v.length;S++)M=v[S].call(_,M);return M}}else{var b=c;c=function(_,x){return b.call(_,x)}}t.push(c)}n!==0&&(n===1?(h.get=p.get,h.set=p.set):n===2?h.value=p:n===3?h.get=p:n===4&&(h.set=p),o?n===1?(t.push(function(_,x){return p.get.call(_,x)}),t.push(function(_,x){return p.set.call(_,x)})):n===2?t.push(p):t.push(function(_,x){return p.call(_,x)}):Object.defineProperty(e,i,h))}function Yd(t,e,r,i,n){for(var s,o,a=new Map,l=new Map,h=0;h<n.length;h++){var c=n[h];if(Array.isArray(c)){var p,f,u,m=c[1],g=c[2],d=c.length>3,y=m>=5;if(y?(p=e,f=i,(m-=5)!=0&&(u=o=o||[])):(p=e.prototype,f=r,m!==0&&(u=s=s||[])),m!==0&&!d){var v=y?l:a,b=v.get(g)||0;if(b===!0||b===3&&m!==4||b===4&&m!==3)throw new Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+g);!b&&m>2?v.set(g,m):v.set(g,!0)}Zd(t,p,c,g,m,y,d,f,u)}}xc(t,s),xc(t,o)}function xc(t,e){e&&t.push(function(r){for(var i=0;i<e.length;i++)e[i].call(r);return r})}function Xd(t,e,r,i){if(i.length>0){for(var n=[],s=e,o=e.name,a=i.length-1;a>=0;a--){var l={v:!1};try{var h=Object.assign({kind:"class",name:o,addInitializer:ap(n,l)},op(r,0,o,l)),c=i[a](s,h)}finally{l.v=!0}c!==void 0&&(va(10,c),s=c)}t.push(s,function(){for(var p=0;p<n.length;p++)n[p].call(s)})}}function Hy(t,e,r){var i=[],n={},s={};return Yd(i,t,s,n,e),vc(t.prototype,s),Xd(i,t,n,r),vc(t,n),i}function lp(t,e){return function(r){Kd(e,"addInitializer"),vs(r,"An initializer"),t.push(r)}}function Sc(t,e,r,i,n,s,o,a){var l;switch(n){case 1:l="accessor";break;case 2:l="method";break;case 3:l="getter";break;case 4:l="setter";break;default:l="field"}var h,c,p={kind:l,name:o?"#"+e:e,static:s,private:o},f={v:!1};n!==0&&(p.addInitializer=lp(i,f)),n===0?o?(h=r.get,c=r.set):(h=function(){return this[e]},c=function(u){this[e]=u}):n===2?h=function(){return r.value}:(n!==1&&n!==3||(h=function(){return r.get.call(this)}),n!==1&&n!==4||(c=function(u){r.set.call(this,u)})),p.access=h&&c?{get:h,set:c}:h?{get:h}:{set:c};try{return t(a,p)}finally{f.v=!0}}function Kd(t,e){if(t.v)throw new Error("attempted to call "+e+" after decoration was finished")}function vs(t,e){if(typeof t!="function")throw new TypeError(e+" must be a function")}function ba(t,e){var r=typeof e;if(t===1){if(r!=="object"||e===null)throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0");e.get!==void 0&&vs(e.get,"accessor.get"),e.set!==void 0&&vs(e.set,"accessor.set"),e.init!==void 0&&vs(e.init,"accessor.init")}else if(r!=="function")throw new TypeError((t===0?"field":t===10?"class":"method")+" decorators must return a function or void 0")}function Jd(t,e,r,i,n,s,o,a){var l,h,c,p,f,u,m=r[0];if(o?l=n===0||n===1?{get:r[3],set:r[4]}:n===3?{get:r[3]}:n===4?{set:r[3]}:{value:r[3]}:n!==0&&(l=Object.getOwnPropertyDescriptor(e,i)),n===1?c={get:l.get,set:l.set}:n===2?c=l.value:n===3?c=l.get:n===4&&(c=l.set),typeof m=="function")(p=Sc(m,i,l,a,n,s,o,c))!==void 0&&(ba(n,p),n===0?h=p:n===1?(h=p.init,f=p.get||c.get,u=p.set||c.set,c={get:f,set:u}):c=p);else for(var g=m.length-1;g>=0;g--){var d;(p=Sc(m[g],i,l,a,n,s,o,c))!==void 0&&(ba(n,p),n===0?d=p:n===1?(d=p.init,f=p.get||c.get,u=p.set||c.set,c={get:f,set:u}):c=p,d!==void 0&&(h===void 0?h=d:typeof h=="function"?h=[h,d]:h.push(d)))}if(n===0||n===1){if(h===void 0)h=function(b,_){return _};else if(typeof h!="function"){var y=h;h=function(b,_){for(var x=_,M=0;M<y.length;M++)x=y[M].call(b,x);return x}}else{var v=h;h=function(b,_){return v.call(b,_)}}t.push(h)}n!==0&&(n===1?(l.get=c.get,l.set=c.set):n===2?l.value=c:n===3?l.get=c:n===4&&(l.set=c),o?n===1?(t.push(function(b,_){return c.get.call(b,_)}),t.push(function(b,_){return c.set.call(b,_)})):n===2?t.push(c):t.push(function(b,_){return c.call(b,_)}):Object.defineProperty(e,i,l))}function Qd(t,e,r){for(var i,n,s=new Map,o=new Map,a=0;a<r.length;a++){var l=r[a];if(Array.isArray(l)){var h,c,p=l[1],f=l[2],u=l.length>3,m=p>=5;if(m?(h=e,(p-=5)!=0&&(c=n=n||[])):(h=e.prototype,p!==0&&(c=i=i||[])),p!==0&&!u){var g=m?o:s,d=g.get(f)||0;if(d===!0||d===3&&p!==4||d===4&&p!==3)throw new Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: "+f);!d&&p>2?g.set(f,p):g.set(f,!0)}Jd(t,h,l,f,p,m,u,c)}}Ec(t,i),Ec(t,n)}function Ec(t,e){e&&t.push(function(r){for(var i=0;i<e.length;i++)e[i].call(r);return r})}function tm(t,e,r){if(r.length>0){for(var i=[],n=e,s=e.name,o=r.length-1;o>=0;o--){var a={v:!1};try{var l=r[o](n,{kind:"class",name:s,addInitializer:lp(i,a)})}finally{a.v=!0}l!==void 0&&(ba(10,l),n=l)}t.push(n,function(){for(var h=0;h<i.length;h++)i[h].call(n)})}}function Ny(t,e,r){var i=[];return Qd(i,t,e),tm(i,t,r),i}function jy(t){var e={},r=!1;function i(n,s){return r=!0,{done:!1,value:new Ta(s=new Promise(function(o){o(t[n](s))}),1)}}return e[typeof Symbol<"u"&&Symbol.iterator||"@@iterator"]=function(){return this},e.next=function(n){return r?(r=!1,n):i("next",n)},typeof t.throw=="function"&&(e.throw=function(n){if(r)throw r=!1,n;return i("throw",n)}),typeof t.return=="function"&&(e.return=function(n){return r?(r=!1,n):i("return",n)}),e}function Gy(t){var e,r,i,n=2;for(typeof Symbol<"u"&&(r=Symbol.asyncIterator,i=Symbol.iterator);n--;){if(r&&(e=t[r])!=null)return e.call(t);if(i&&(e=t[i])!=null)return new _a(e.call(t));r="@@asyncIterator",i="@@iterator"}throw new TypeError("Object is not async iterable")}function _a(t){function e(r){if(Object(r)!==r)return Promise.reject(new TypeError(r+" is not an object."));var i=r.done;return Promise.resolve(r.value).then(function(n){return{value:n,done:i}})}return(_a=function(r){this.s=r,this.n=r.next}).prototype={s:null,n:null,next:function(){return e(this.n.apply(this.s,arguments))},return:function(r){var i=this.s.return;return i===void 0?Promise.resolve({value:r,done:!0}):e(i.apply(this.s,arguments))},throw:function(r){var i=this.s.return;return i===void 0?Promise.reject(r):e(i.apply(this.s,arguments))}},new _a(t)}function qy(t){return new Ta(t,0)}function Uy(t){if(Object(t)!==t)throw TypeError("right-hand side of 'in' should be an object, got "+(t!==null?typeof t:"null"));return t}function em(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var i,n,s,o,a=[],l=!0,h=!1;try{if(s=(r=r.call(t)).next,e===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(i=s.call(r)).done)&&(a.push(i.value),a.length!==e);l=!0);}catch(c){h=!0,n=c}finally{try{if(!l&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(h)throw n}}return a}}function rm(t,e){var r=t&&(typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"]);if(r!=null){var i,n=[];for(r=r.call(t);t.length<e&&!(i=r.next()).done;)n.push(i.value);return n}}var aa;function Wy(t,e,r,i){aa||(aa=typeof Symbol=="function"&&Symbol.for&&Symbol.for("react.element")||60103);var n=t&&t.defaultProps,s=arguments.length-3;if(e||s===0||(e={children:void 0}),s===1)e.children=i;else if(s>1){for(var o=new Array(s),a=0;a<s;a++)o[a]=arguments[a+3];e.children=o}if(e&&n)for(var l in n)e[l]===void 0&&(e[l]=n[l]);else e||(e=n||{});return{$$typeof:aa,type:t,key:r===void 0?null:""+r,ref:null,props:e,_owner:null}}function kc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,i)}return r}function Zy(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?kc(Object(r),!0).forEach(function(i){Ma(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):kc(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function im(){im=function(){return t};var t={},e=Object.prototype,r=e.hasOwnProperty,i=Object.defineProperty||function(k,A,P){k[A]=P.value},n=typeof Symbol=="function"?Symbol:{},s=n.iterator||"@@iterator",o=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function l(k,A,P){return Object.defineProperty(k,A,{value:P,enumerable:!0,configurable:!0,writable:!0}),k[A]}try{l({},"")}catch{l=function(A,P,I){return A[P]=I}}function h(k,A,P,I){var L=A&&A.prototype instanceof f?A:f,F=Object.create(L.prototype),C=new D(I||[]);return i(F,"_invoke",{value:x(k,P,C)}),F}function c(k,A,P){try{return{type:"normal",arg:k.call(A,P)}}catch(I){return{type:"throw",arg:I}}}t.wrap=h;var p={};function f(){}function u(){}function m(){}var g={};l(g,s,function(){return this});var d=Object.getPrototypeOf,y=d&&d(d(E([])));y&&y!==e&&r.call(y,s)&&(g=y);var v=m.prototype=f.prototype=Object.create(g);function b(k){["next","throw","return"].forEach(function(A){l(k,A,function(P){return this._invoke(A,P)})})}function _(k,A){var P;i(this,"_invoke",{value:function(I,L){function F(){return new A(function(C,O){(function V(z,N,G,H){var Y=c(k[z],k,N);if(Y.type!=="throw"){var Q=Y.arg,K=Q.value;return K&&typeof K=="object"&&r.call(K,"__await")?A.resolve(K.__await).then(function(Z){V("next",Z,G,H)},function(Z){V("throw",Z,G,H)}):A.resolve(K).then(function(Z){Q.value=Z,G(Q)},function(Z){return V("throw",Z,G,H)})}H(Y.arg)})(I,L,C,O)})}return P=P?P.then(F,F):F()}})}function x(k,A,P){var I="suspendedStart";return function(L,F){if(I==="executing")throw new Error("Generator is already running");if(I==="completed"){if(L==="throw")throw F;return T()}for(P.method=L,P.arg=F;;){var C=P.delegate;if(C){var O=M(C,P);if(O){if(O===p)continue;return O}}if(P.method==="next")P.sent=P._sent=P.arg;else if(P.method==="throw"){if(I==="suspendedStart")throw I="completed",P.arg;P.dispatchException(P.arg)}else P.method==="return"&&P.abrupt("return",P.arg);I="executing";var V=c(k,A,P);if(V.type==="normal"){if(I=P.done?"completed":"suspendedYield",V.arg===p)continue;return{value:V.arg,done:P.done}}V.type==="throw"&&(I="completed",P.method="throw",P.arg=V.arg)}}}function M(k,A){var P=A.method,I=k.iterator[P];if(I===void 0)return A.delegate=null,P==="throw"&&k.iterator.return&&(A.method="return",A.arg=void 0,M(k,A),A.method==="throw")||P!=="return"&&(A.method="throw",A.arg=new TypeError("The iterator does not provide a '"+P+"' method")),p;var L=c(I,k.iterator,A.arg);if(L.type==="throw")return A.method="throw",A.arg=L.arg,A.delegate=null,p;var F=L.arg;return F?F.done?(A[k.resultName]=F.value,A.next=k.nextLoc,A.method!=="return"&&(A.method="next",A.arg=void 0),A.delegate=null,p):F:(A.method="throw",A.arg=new TypeError("iterator result is not an object"),A.delegate=null,p)}function S(k){var A={tryLoc:k[0]};1 in k&&(A.catchLoc=k[1]),2 in k&&(A.finallyLoc=k[2],A.afterLoc=k[3]),this.tryEntries.push(A)}function w(k){var A=k.completion||{};A.type="normal",delete A.arg,k.completion=A}function D(k){this.tryEntries=[{tryLoc:"root"}],k.forEach(S,this),this.reset(!0)}function E(k){if(k){var A=k[s];if(A)return A.call(k);if(typeof k.next=="function")return k;if(!isNaN(k.length)){var P=-1,I=function L(){for(;++P<k.length;)if(r.call(k,P))return L.value=k[P],L.done=!1,L;return L.value=void 0,L.done=!0,L};return I.next=I}}return{next:T}}function T(){return{value:void 0,done:!0}}return u.prototype=m,i(v,"constructor",{value:m,configurable:!0}),i(m,"constructor",{value:u,configurable:!0}),u.displayName=l(m,a,"GeneratorFunction"),t.isGeneratorFunction=function(k){var A=typeof k=="function"&&k.constructor;return!!A&&(A===u||(A.displayName||A.name)==="GeneratorFunction")},t.mark=function(k){return Object.setPrototypeOf?Object.setPrototypeOf(k,m):(k.__proto__=m,l(k,a,"GeneratorFunction")),k.prototype=Object.create(v),k},t.awrap=function(k){return{__await:k}},b(_.prototype),l(_.prototype,o,function(){return this}),t.AsyncIterator=_,t.async=function(k,A,P,I,L){L===void 0&&(L=Promise);var F=new _(h(k,A,P,I),L);return t.isGeneratorFunction(A)?F:F.next().then(function(C){return C.done?C.value:F.next()})},b(v),l(v,a,"Generator"),l(v,s,function(){return this}),l(v,"toString",function(){return"[object Generator]"}),t.keys=function(k){var A=Object(k),P=[];for(var I in A)P.push(I);return P.reverse(),function L(){for(;P.length;){var F=P.pop();if(F in A)return L.value=F,L.done=!1,L}return L.done=!0,L}},t.values=E,D.prototype={constructor:D,reset:function(k){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!k)for(var A in this)A.charAt(0)==="t"&&r.call(this,A)&&!isNaN(+A.slice(1))&&(this[A]=void 0)},stop:function(){this.done=!0;var k=this.tryEntries[0].completion;if(k.type==="throw")throw k.arg;return this.rval},dispatchException:function(k){if(this.done)throw k;var A=this;function P(V,z){return F.type="throw",F.arg=k,A.next=V,z&&(A.method="next",A.arg=void 0),!!z}for(var I=this.tryEntries.length-1;I>=0;--I){var L=this.tryEntries[I],F=L.completion;if(L.tryLoc==="root")return P("end");if(L.tryLoc<=this.prev){var C=r.call(L,"catchLoc"),O=r.call(L,"finallyLoc");if(C&&O){if(this.prev<L.catchLoc)return P(L.catchLoc,!0);if(this.prev<L.finallyLoc)return P(L.finallyLoc)}else if(C){if(this.prev<L.catchLoc)return P(L.catchLoc,!0)}else{if(!O)throw new Error("try statement without catch or finally");if(this.prev<L.finallyLoc)return P(L.finallyLoc)}}}},abrupt:function(k,A){for(var P=this.tryEntries.length-1;P>=0;--P){var I=this.tryEntries[P];if(I.tryLoc<=this.prev&&r.call(I,"finallyLoc")&&this.prev<I.finallyLoc){var L=I;break}}L&&(k==="break"||k==="continue")&&L.tryLoc<=A&&A<=L.finallyLoc&&(L=null);var F=L?L.completion:{};return F.type=k,F.arg=A,L?(this.method="next",this.next=L.finallyLoc,p):this.complete(F)},complete:function(k,A){if(k.type==="throw")throw k.arg;return k.type==="break"||k.type==="continue"?this.next=k.arg:k.type==="return"?(this.rval=this.arg=k.arg,this.method="return",this.next="end"):k.type==="normal"&&A&&(this.next=A),p},finish:function(k){for(var A=this.tryEntries.length-1;A>=0;--A){var P=this.tryEntries[A];if(P.finallyLoc===k)return this.complete(P.completion,P.afterLoc),w(P),p}},catch:function(k){for(var A=this.tryEntries.length-1;A>=0;--A){var P=this.tryEntries[A];if(P.tryLoc===k){var I=P.completion;if(I.type==="throw"){var L=I.arg;w(P)}return L}}throw new Error("illegal catch attempt")},delegateYield:function(k,A,P){return this.delegate={iterator:E(k),resultName:A,nextLoc:P},this.method==="next"&&(this.arg=void 0),p}},t}function nm(t){return(nm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function Pc(){Pc=function(n,s){return new r(n,void 0,s)};var t=RegExp.prototype,e=new WeakMap;function r(n,s,o){var a=new RegExp(n,s);return e.set(a,o||e.get(n)),Yr(a,r.prototype)}function i(n,s){var o=e.get(s);return Object.keys(o).reduce(function(a,l){var h=o[l];if(typeof h=="number")a[l]=n[h];else{for(var c=0;n[h[c]]===void 0&&c+1<h.length;)c++;a[l]=n[h[c]]}return a},Object.create(null))}return om(r,RegExp),r.prototype.exec=function(n){var s=t.exec.call(this,n);if(s){s.groups=i(s,this);var o=s.indices;o&&(o.groups=i(o,this))}return s},r.prototype[Symbol.replace]=function(n,s){if(typeof s=="string"){var o=e.get(this);return t[Symbol.replace].call(this,n,s.replace(/\$<([^>]+)>/g,function(l,h){var c=o[h];return"$"+(Array.isArray(c)?c.join("$"):c)}))}if(typeof s=="function"){var a=this;return t[Symbol.replace].call(this,n,function(){var l=arguments;return typeof l[l.length-1]!="object"&&(l=[].slice.call(l)).push(i(l,a)),s.apply(this,l)})}return t[Symbol.replace].call(this,n,s)},Pc.apply(this,arguments)}function Yy(t){this.wrapped=t}function Xy(t){return function(){return new Hi(t.apply(this,arguments))}}function Ac(t,e,r,i,n,s,o){try{var a=t[s](o),l=a.value}catch(h){return void r(h)}a.done?e(l):Promise.resolve(l).then(i,n)}function Ky(t){return function(){var e=this,r=arguments;return new Promise(function(i,n){var s=t.apply(e,r);function o(l){Ac(s,i,n,o,a,"next",l)}function a(l){Ac(s,i,n,o,a,"throw",l)}o(void 0)})}}function Jy(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Cc(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,Bs(i.key),i)}}function Qy(t,e,r){return e&&Cc(t.prototype,e),r&&Cc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function tv(t,e){for(var r in e)(s=e[r]).configurable=s.enumerable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,r,s);if(Object.getOwnPropertySymbols)for(var i=Object.getOwnPropertySymbols(e),n=0;n<i.length;n++){var s,o=i[n];(s=e[o]).configurable=s.enumerable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,o,s)}return t}function ev(t,e){for(var r=Object.getOwnPropertyNames(e),i=0;i<r.length;i++){var n=r[i],s=Object.getOwnPropertyDescriptor(e,n);s&&s.configurable&&t[n]===void 0&&Object.defineProperty(t,n,s)}return t}function Ma(t,e,r){return(e=Bs(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function sm(){return(sm=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t}).apply(this,arguments)}function rv(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?Object(arguments[e]):{},i=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&i.push.apply(i,Object.getOwnPropertySymbols(r).filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),i.forEach(function(n){Ma(t,n,r[n])})}return t}function om(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Yr(t,e)}function iv(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Yr(t,e)}function qi(t){return(qi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(t)}function Yr(t,e){return(Yr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r})(t,e)}function hp(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function cp(t,e,r){return(cp=hp()?Reflect.construct.bind():function(i,n,s){var o=[null];o.push.apply(o,n);var a=new(Function.bind.apply(i,o));return s&&Yr(a,s.prototype),a}).apply(null,arguments)}function am(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function lm(t){var e=typeof Map=="function"?new Map:void 0;return(lm=function(r){if(r===null||!am(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(e!==void 0){if(e.has(r))return e.get(r);e.set(r,i)}function i(){return cp(r,arguments,qi(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Yr(i,r)})(t)}function nv(t,e){return e!=null&&typeof Symbol<"u"&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}function sv(t){return t&&t.__esModule?t:{default:t}}function pp(t){if(typeof WeakMap!="function")return null;var e=new WeakMap,r=new WeakMap;return(pp=function(i){return i?r:e})(t)}function ov(t,e){if(!e&&t&&t.__esModule)return t;if(t===null||typeof t!="object"&&typeof t!="function")return{default:t};var r=pp(e);if(r&&r.has(t))return r.get(t);var i={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if(s!=="default"&&Object.prototype.hasOwnProperty.call(t,s)){var o=n?Object.getOwnPropertyDescriptor(t,s):null;o&&(o.get||o.set)?Object.defineProperty(i,s,o):i[s]=t[s]}return i.default=t,r&&r.set(t,i),i}function av(t,e){if(t!==e)throw new TypeError("Cannot instantiate an arrow function")}function lv(t){if(t==null)throw new TypeError("Cannot destructure "+t)}function hm(t,e){if(t==null)return{};var r,i,n={},s=Object.keys(t);for(i=0;i<s.length;i++)r=s[i],e.indexOf(r)>=0||(n[r]=t[r]);return n}function hv(t,e){if(t==null)return{};var r,i,n=hm(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i<s.length;i++)r=s[i],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function cm(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function pm(t,e){if(e&&(typeof e=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return cm(t)}function cv(t){var e=hp();return function(){var r,i=qi(t);if(e){var n=qi(this).constructor;r=Reflect.construct(i,arguments,n)}else r=i.apply(this,arguments);return pm(this,r)}}function up(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&(t=qi(t))!==null;);return t}function um(){return(um=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(t,e,r){var i=up(t,e);if(i){var n=Object.getOwnPropertyDescriptor(i,e);return n.get?n.get.call(arguments.length<3?t:r):n.value}}).apply(this,arguments)}function fp(t,e,r,i){return(fp=typeof Reflect<"u"&&Reflect.set?Reflect.set:function(n,s,o,a){var l,h=up(n,s);if(h){if((l=Object.getOwnPropertyDescriptor(h,s)).set)return l.set.call(a,o),!0;if(!l.writable)return!1}if(l=Object.getOwnPropertyDescriptor(a,s)){if(!l.writable)return!1;l.value=o,Object.defineProperty(a,s,l)}else Ma(a,s,o);return!0})(t,e,r,i)}function pv(t,e,r,i,n){if(!fp(t,e,r,i||t)&&n)throw new Error("failed to set property");return r}function Br(t,e){return e||(e=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(e)}}))}function uv(t,e){return e||(e=t.slice(0)),t.raw=e,t}function fv(t){throw new TypeError('"'+t+'" is read-only')}function dv(t){throw new TypeError('"'+t+'" is write-only')}function mv(t){throw new Error('Class "'+t+'" cannot be referenced in computed property keys.')}function fm(){}function dm(t){throw new ReferenceError(t+" is not defined - temporal dead zone")}function gv(t,e){return t===fm?dm(e):t}function yv(t,e){return Fa(t)||em(t,e)||Xr(t,e)||Da()}function vv(t,e){return Fa(t)||rm(t,e)||Xr(t,e)||Da()}function mm(t){return Fa(t)||dp(t)||Xr(t)||Da()}function bv(t){return gm(t)||dp(t)||Xr(t)||ym()}function gm(t){if(Array.isArray(t))return Ss(t)}function Fa(t){if(Array.isArray(t))return t}function _v(t,e,r){if(e&&!Array.isArray(e)&&typeof e.length=="number"){var i=e.length;return Ss(e,r!==void 0&&r<i?r:i)}return t(e,r)}function dp(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Xr(t,e){if(t){if(typeof t=="string")return Ss(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ss(t,e):void 0}}function Ss(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r<e;r++)i[r]=t[r];return i}function ym(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
255
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Da(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
256
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wv(t,e){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=Xr(t))||e&&t&&typeof t.length=="number"){r&&(t=r);var i=0,n=function(){};return{s:n,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(l){throw l},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
257
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s,o=!0,a=!1;return{s:function(){r=r.call(t)},n:function(){var l=r.next();return o=l.done,l},e:function(l){a=!0,s=l},f:function(){try{o||r.return==null||r.return()}finally{if(a)throw s}}}}function xv(t,e){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=Xr(t))||e&&t&&typeof t.length=="number"){r&&(t=r);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
258
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Sv(t){return function(){var e=t.apply(this,arguments);return e.next(),e}}function vm(t,e){if(typeof t!="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var i=r.call(t,e||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Bs(t){var e=vm(t,"string");return typeof e=="symbol"?e:String(e)}function Ev(t,e){throw new Error("Decorating class property failed. Please ensure that proposal-class-properties is enabled and runs after the decorators transform.")}function kv(t,e,r,i){r&&Object.defineProperty(t,e,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(i):void 0})}function Pv(t,e,r,i,n){var s={};return Object.keys(i).forEach(function(o){s[o]=i[o]}),s.enumerable=!!s.enumerable,s.configurable=!!s.configurable,("value"in s||s.initializer)&&(s.writable=!0),s=r.slice().reverse().reduce(function(o,a){return a(t,e,o)||o},s),n&&s.initializer!==void 0&&(s.value=s.initializer?s.initializer.call(n):void 0,s.initializer=void 0),s.initializer===void 0&&(Object.defineProperty(t,e,s),s=null),s}Hi.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},Hi.prototype.next=function(t){return this._invoke("next",t)},Hi.prototype.throw=function(t){return this._invoke("throw",t)},Hi.prototype.return=function(t){return this._invoke("return",t)};var bm=0;function Av(t){return"__private_"+bm+++"_"+t}function Cv(t,e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new TypeError("attempted to use private field on non-instance");return t}function Tv(t,e){return mp(t,Ia(t,e,"get"))}function Mv(t,e,r){return gp(t,Ia(t,e,"set"),r),r}function Fv(t,e){return yp(t,Ia(t,e,"set"))}function Ia(t,e,r){if(!e.has(t))throw new TypeError("attempted to "+r+" private field on non-instance");return e.get(t)}function Dv(t,e,r){return zs(t,e),La(r,"get"),mp(t,r)}function Iv(t,e,r,i){return zs(t,e),La(r,"set"),gp(t,r,i),i}function Lv(t,e,r){return zs(t,e),r}function Ov(){throw new TypeError("attempted to set read only static private field")}function mp(t,e){return e.get?e.get.call(t):e.value}function gp(t,e,r){if(e.set)e.set.call(t,r);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=r}}function yp(t,e){if(e.set)return"__destrObj"in e||(e.__destrObj={set value(r){e.set.call(t,r)}}),e.__destrObj;if(!e.writable)throw new TypeError("attempted to set read only private field");return e}function $v(t,e,r){return zs(t,e),La(r,"set"),yp(t,r)}function zs(t,e){if(t!==e)throw new TypeError("Private static access of wrong provenance")}function La(t,e){if(t===void 0)throw new TypeError("attempted to "+e+" private static field before its declaration")}function Vv(t,e,r,i){var n=vp();if(i)for(var s=0;s<i.length;s++)n=i[s](n);var o=e(function(l){n.initializeInstanceElements(l,a.elements)},r),a=n.decorateClass(xm(o.d.map(_m)),t);return n.initializeClassElements(o.F,a.elements),n.runClassFinishers(o.F,a.finishers)}function vp(){vp=function(){return t};var t={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(e,r){["method","field"].forEach(function(i){r.forEach(function(n){n.kind===i&&n.placement==="own"&&this.defineClassElement(e,n)},this)},this)},initializeClassElements:function(e,r){var i=e.prototype;["method","field"].forEach(function(n){r.forEach(function(s){var o=s.placement;if(s.kind===n&&(o==="static"||o==="prototype")){var a=o==="static"?e:i;this.defineClassElement(a,s)}},this)},this)},defineClassElement:function(e,r){var i=r.descriptor;if(r.kind==="field"){var n=r.initializer;i={enumerable:i.enumerable,writable:i.writable,configurable:i.configurable,value:n===void 0?void 0:n.call(e)}}Object.defineProperty(e,r.key,i)},decorateClass:function(e,r){var i=[],n=[],s={static:[],prototype:[],own:[]};if(e.forEach(function(a){this.addElementPlacement(a,s)},this),e.forEach(function(a){if(!ji(a))return i.push(a);var l=this.decorateElement(a,s);i.push(l.element),i.push.apply(i,l.extras),n.push.apply(n,l.finishers)},this),!r)return{elements:i,finishers:n};var o=this.decorateConstructor(i,r);return n.push.apply(n,o.finishers),o.finishers=n,o},addElementPlacement:function(e,r,i){var n=r[e.placement];if(!i&&n.indexOf(e.key)!==-1)throw new TypeError("Duplicated element ("+e.key+")");n.push(e.key)},decorateElement:function(e,r){for(var i=[],n=[],s=e.decorators,o=s.length-1;o>=0;o--){var a=r[e.placement];a.splice(a.indexOf(e.key),1);var l=this.fromElementDescriptor(e),h=this.toElementFinisherExtras((0,s[o])(l)||l);e=h.element,this.addElementPlacement(e,r),h.finisher&&n.push(h.finisher);var c=h.extras;if(c){for(var p=0;p<c.length;p++)this.addElementPlacement(c[p],r);i.push.apply(i,c)}}return{element:e,finishers:n,extras:i}},decorateConstructor:function(e,r){for(var i=[],n=r.length-1;n>=0;n--){var s=this.fromClassDescriptor(e),o=this.toClassDescriptor((0,r[n])(s)||s);if(o.finisher!==void 0&&i.push(o.finisher),o.elements!==void 0){e=o.elements;for(var a=0;a<e.length-1;a++)for(var l=a+1;l<e.length;l++)if(e[a].key===e[l].key&&e[a].placement===e[l].placement)throw new TypeError("Duplicated element ("+e[a].key+")")}}return{elements:e,finishers:i}},fromElementDescriptor:function(e){var r={kind:e.kind,key:e.key,placement:e.placement,descriptor:e.descriptor};return Object.defineProperty(r,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),e.kind==="field"&&(r.initializer=e.initializer),r},toElementDescriptors:function(e){if(e!==void 0)return mm(e).map(function(r){var i=this.toElementDescriptor(r);return this.disallowProperty(r,"finisher","An element descriptor"),this.disallowProperty(r,"extras","An element descriptor"),i},this)},toElementDescriptor:function(e){var r=String(e.kind);if(r!=="method"&&r!=="field")throw new TypeError(`An element descriptor's .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "`+r+'"');var i=Bs(e.key),n=String(e.placement);if(n!=="static"&&n!=="prototype"&&n!=="own")throw new TypeError(`An element descriptor's .placement property must be one of "static", "prototype" or "own", but a decorator created an element descriptor with .placement "`+n+'"');var s=e.descriptor;this.disallowProperty(e,"elements","An element descriptor");var o={kind:r,key:i,placement:n,descriptor:Object.assign({},s)};return r!=="field"?this.disallowProperty(e,"initializer","A method descriptor"):(this.disallowProperty(s,"get","The property descriptor of a field descriptor"),this.disallowProperty(s,"set","The property descriptor of a field descriptor"),this.disallowProperty(s,"value","The property descriptor of a field descriptor"),o.initializer=e.initializer),o},toElementFinisherExtras:function(e){return{element:this.toElementDescriptor(e),finisher:Mc(e,"finisher"),extras:this.toElementDescriptors(e.extras)}},fromClassDescriptor:function(e){var r={kind:"class",elements:e.map(this.fromElementDescriptor,this)};return Object.defineProperty(r,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),r},toClassDescriptor:function(e){var r=String(e.kind);if(r!=="class")throw new TypeError(`A class descriptor's .kind property must be "class", but a decorator created a class descriptor with .kind "`+r+'"');this.disallowProperty(e,"key","A class descriptor"),this.disallowProperty(e,"placement","A class descriptor"),this.disallowProperty(e,"descriptor","A class descriptor"),this.disallowProperty(e,"initializer","A class descriptor"),this.disallowProperty(e,"extras","A class descriptor");var i=Mc(e,"finisher");return{elements:this.toElementDescriptors(e.elements),finisher:i}},runClassFinishers:function(e,r){for(var i=0;i<r.length;i++){var n=(0,r[i])(e);if(n!==void 0){if(typeof n!="function")throw new TypeError("Finishers must return a constructor.");e=n}}return e},disallowProperty:function(e,r,i){if(e[r]!==void 0)throw new TypeError(i+" can't have a ."+r+" property.")}};return t}function _m(t){var e,r=Bs(t.key);t.kind==="method"?e={value:t.value,writable:!0,configurable:!0,enumerable:!1}:t.kind==="get"?e={get:t.value,configurable:!0,enumerable:!1}:t.kind==="set"?e={set:t.value,configurable:!0,enumerable:!1}:t.kind==="field"&&(e={configurable:!0,writable:!0,enumerable:!0});var i={kind:t.kind==="field"?"field":"method",key:r,placement:t.static?"static":t.kind==="field"?"own":"prototype",descriptor:e};return t.decorators&&(i.decorators=t.decorators),t.kind==="field"&&(i.initializer=t.value),i}function wm(t,e){t.descriptor.get!==void 0?e.descriptor.get=t.descriptor.get:e.descriptor.set=t.descriptor.set}function xm(t){for(var e=[],r=function(o){return o.kind==="method"&&o.key===s.key&&o.placement===s.placement},i=0;i<t.length;i++){var n,s=t[i];if(s.kind==="method"&&(n=e.find(r)))if(Tc(s.descriptor)||Tc(n.descriptor)){if(ji(s)||ji(n))throw new ReferenceError("Duplicated methods ("+s.key+") can't be decorated.");n.descriptor=s.descriptor}else{if(ji(s)){if(ji(n))throw new ReferenceError("Decorators can't be placed on different accessors with for the same property ("+s.key+").");n.decorators=s.decorators}wm(s,n)}else e.push(s)}return e}function ji(t){return t.decorators&&t.decorators.length}function Tc(t){return t!==void 0&&!(t.value===void 0&&t.writable===void 0)}function Mc(t,e){var r=t[e];if(r!==void 0&&typeof r!="function")throw new TypeError("Expected '"+e+"' to be a function");return r}function Rv(t,e,r){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return r}function bp(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Bv(t,e,r){bp(t,e),e.set(t,r)}function zv(t,e){bp(t,e),e.add(t)}function Hv(){throw new TypeError("attempted to reassign private method")}function Nv(t){return t}var _p=function(t,e){return(_p=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var n in i)i.hasOwnProperty(n)&&(r[n]=i[n])})(t,e)};function jv(t,e){function r(){this.constructor=t}_p(t,e),t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var Sm=function(){return(Sm=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)};function Gv(t,e){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(r[i]=t[i]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function"){var n=0;for(i=Object.getOwnPropertySymbols(t);n<i.length;n++)e.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(t,i[n])&&(r[i[n]]=t[i[n]])}return r}function zt(t,e,r,i){var n,s=arguments.length,o=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(o=(s<3?n(o):s>3?n(e,r,o):n(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o}function qv(t,e){return function(r,i){e(r,i,t)}}function Uv(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}function Wv(t,e,r,i){return new(r||(r=Promise))(function(n,s){function o(h){try{l(i.next(h))}catch(c){s(c)}}function a(h){try{l(i.throw(h))}catch(c){s(c)}}function l(h){var c;h.done?n(h.value):(c=h.value,c instanceof r?c:new r(function(p){p(c)})).then(o,a)}l((i=i.apply(t,e||[])).next())})}function Zv(t,e){var r,i,n,s,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(l){return function(h){return function(c){if(r)throw new TypeError("Generator is already executing.");for(;o;)try{if(r=1,i&&(n=2&c[0]?i.return:c[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,c[1])).done)return n;switch(i=0,n&&(c=[2&c[0],n.value]),c[0]){case 0:case 1:n=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,i=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(n=o.trys,!((n=n.length>0&&n[n.length-1])||c[0]!==6&&c[0]!==2)){o=0;continue}if(c[0]===3&&(!n||c[1]>n[0]&&c[1]<n[3])){o.label=c[1];break}if(c[0]===6&&o.label<n[1]){o.label=n[1],n=c;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(c);break}n[2]&&o.ops.pop(),o.trys.pop();continue}c=e.call(t,o)}catch(p){c=[6,p],i=0}finally{r=n=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([l,h])}}}function Yv(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]}function Xv(t,e){for(var r in t)r==="default"||e.hasOwnProperty(r)||(e[r]=t[r])}function Fc(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],i=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Em(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var i,n,s=r.call(t),o=[];try{for(;(e===void 0||e-- >0)&&!(i=s.next()).done;)o.push(i.value)}catch(a){n={error:a}}finally{try{i&&!i.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return o}function Kv(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(Em(arguments[e]));return t}function Jv(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;var i=Array(t),n=0;for(e=0;e<r;e++)for(var s=arguments[e],o=0,a=s.length;o<a;o++,n++)i[n]=s[o];return i}function Es(t){return this instanceof Es?(this.v=t,this):new Es(t)}function Qv(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,n=r.apply(t,e||[]),s=[];return i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i;function o(p){n[p]&&(i[p]=function(f){return new Promise(function(u,m){s.push([p,f,u,m])>1||a(p,f)})})}function a(p,f){try{(function(u){u.value instanceof Es?Promise.resolve(u.value.v).then(l,h):c(s[0][2],u)})(n[p](f))}catch(u){c(s[0][3],u)}}function l(p){a("next",p)}function h(p){a("throw",p)}function c(p,f){p(f),s.shift(),s.length&&a(s[0][0],s[0][1])}}function t2(t){var e,r;return e={},i("next"),i("throw",function(n){throw n}),i("return"),e[Symbol.iterator]=function(){return this},e;function i(n,s){e[n]=t[n]?function(o){return(r=!r)?{value:Es(t[n](o)),done:n==="return"}:s?s(o):o}:s}}function e2(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,r=t[Symbol.asyncIterator];return r?r.call(t):(t=typeof Fc=="function"?Fc(t):t[Symbol.iterator](),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(n){e[n]=t[n]&&function(s){return new Promise(function(o,a){(function(l,h,c,p){Promise.resolve(p).then(function(f){l({value:f,done:c})},h)})(o,a,(s=t[n](s)).done,s.value)})}}}function r2(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function i2(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}function n2(t){return t&&t.__esModule?t:{default:t}}function s2(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function o2(t,e,r){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,r),r}var bs=window,Oa=bs.ShadowRoot&&(bs.ShadyCSS===void 0||bs.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,$a=Symbol(),Dc=new WeakMap,ks=class{constructor(e,r,i){if(this._$cssResult$=!0,i!==$a)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o,r=this.t;if(Oa&&e===void 0){let i=r!==void 0&&r.length===1;i&&(e=Dc.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),i&&Dc.set(r,e))}return e}toString(){return this.cssText}},km=t=>new ks(typeof t=="string"?t:t+"",void 0,$a),Pm=(t,...e)=>{let r=t.length===1?t[0]:e.reduce((i,n,s)=>i+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+t[s+1],t[0]);return new ks(r,t,$a)},Am=(t,e)=>{Oa?t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):e.forEach(r=>{let i=document.createElement("style"),n=bs.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,t.appendChild(i)})},Ic=Oa?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let i of e.cssRules)r+=i.cssText;return km(r)})(t):t,la,Ps=window,Lc=Ps.trustedTypes,Cm=Lc?Lc.emptyScript:"",Oc=Ps.reactiveElementPolyfillSupport,wa={toAttribute(t,e){switch(e){case Boolean:t=t?Cm:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},wp=(t,e)=>e!==t&&(e==e||t==t),ha={attribute:!0,type:String,converter:wa,reflect:!1,hasChanged:wp},Ne=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(e){var r;this.finalize(),((r=this.h)!==null&&r!==void 0?r:this.h=[]).push(e)}static get observedAttributes(){this.finalize();let e=[];return this.elementProperties.forEach((r,i)=>{let n=this._$Ep(i,r);n!==void 0&&(this._$Ev.set(n,i),e.push(n))}),e}static createProperty(e,r=ha){if(r.state&&(r.attribute=!1),this.finalize(),this.elementProperties.set(e,r),!r.noAccessor&&!this.prototype.hasOwnProperty(e)){let i=typeof e=="symbol"?Symbol():"__"+e,n=this.getPropertyDescriptor(e,i,r);n!==void 0&&Object.defineProperty(this.prototype,e,n)}}static getPropertyDescriptor(e,r,i){return{get(){return this[r]},set(n){let s=this[e];this[r]=n,this.requestUpdate(e,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||ha}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;let e=Object.getPrototypeOf(this);if(e.finalize(),e.h!==void 0&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){let r=this.properties,i=[...Object.getOwnPropertyNames(r),...Object.getOwnPropertySymbols(r)];for(let n of i)this.createProperty(n,r[n])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){let r=[];if(Array.isArray(e)){let i=new Set(e.flat(1/0).reverse());for(let n of i)r.unshift(Ic(n))}else e!==void 0&&r.push(Ic(e));return r}static _$Ep(e,r){let i=r.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}u(){var e;this._$E_=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(r=>r(this))}addController(e){var r,i;((r=this._$ES)!==null&&r!==void 0?r:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((i=e.hostConnected)===null||i===void 0||i.call(e))}removeController(e){var r;(r=this._$ES)===null||r===void 0||r.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,r)=>{this.hasOwnProperty(r)&&(this._$Ei.set(r,this[r]),delete this[r])})}createRenderRoot(){var e;let r=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return Am(r,this.constructor.elementStyles),r}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(r=>{var i;return(i=r.hostConnected)===null||i===void 0?void 0:i.call(r)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(r=>{var i;return(i=r.hostDisconnected)===null||i===void 0?void 0:i.call(r)})}attributeChangedCallback(e,r,i){this._$AK(e,i)}_$EO(e,r,i=ha){var n;let s=this.constructor._$Ep(e,i);if(s!==void 0&&i.reflect===!0){let o=(((n=i.converter)===null||n===void 0?void 0:n.toAttribute)!==void 0?i.converter:wa).toAttribute(r,i.type);this._$El=e,o==null?this.removeAttribute(s):this.setAttribute(s,o),this._$El=null}}_$AK(e,r){var i;let n=this.constructor,s=n._$Ev.get(e);if(s!==void 0&&this._$El!==s){let o=n.getPropertyOptions(s),a=typeof o.converter=="function"?{fromAttribute:o.converter}:((i=o.converter)===null||i===void 0?void 0:i.fromAttribute)!==void 0?o.converter:wa;this._$El=s,this[s]=a.fromAttribute(r,o.type),this._$El=null}}requestUpdate(e,r,i){let n=!0;e!==void 0&&(((i=i||this.constructor.getPropertyOptions(e)).hasChanged||wp)(this[e],r)?(this._$AL.has(e)||this._$AL.set(e,r),i.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,i))):n=!1),!this.isUpdatePending&&n&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(r){Promise.reject(r)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((n,s)=>this[s]=n),this._$Ei=void 0);let r=!1,i=this._$AL;try{r=this.shouldUpdate(i),r?(this.willUpdate(i),(e=this._$ES)===null||e===void 0||e.forEach(n=>{var s;return(s=n.hostUpdate)===null||s===void 0?void 0:s.call(n)}),this.update(i)):this._$Ek()}catch(n){throw r=!1,this._$Ek(),n}r&&this._$AE(i)}willUpdate(e){}_$AE(e){var r;(r=this._$ES)===null||r===void 0||r.forEach(i=>{var n;return(n=i.hostUpdated)===null||n===void 0?void 0:n.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((r,i)=>this._$EO(i,this[i],r)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}};var ca;Ne.finalized=!0,Ne.elementProperties=new Map,Ne.elementStyles=[],Ne.shadowRootOptions={mode:"open"},Oc?.({ReactiveElement:Ne}),((la=Ps.reactiveElementVersions)!==null&&la!==void 0?la:Ps.reactiveElementVersions=[]).push("1.5.0");var As=window,jr=As.trustedTypes,$c=jr?jr.createPolicy("lit-html",{createHTML:t=>t}):void 0,je=`lit$${(Math.random()+"").slice(9)}$`,Va="?"+je,Tm=`<${Va}>`,Gr=document,Ui=(t="")=>Gr.createComment(t),Wi=t=>t===null||typeof t!="object"&&typeof t!="function",xp=Array.isArray,Sp=t=>xp(t)||typeof t?.[Symbol.iterator]=="function",zi=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Vc=/-->/g,Rc=/>/g,yr=RegExp(`>|[
|
|
234
259
|
\f\r](?:([^\\s"'>=/]+)([
|
|
235
260
|
\f\r]*=[
|
|
236
261
|
\f\r]*(?:[^
|
|
237
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Rc=/'/g,Vc=/"/g,xp=/^(?:script|style|textarea|title)$/i,Sp=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),ms=Sp(1),eb=Sp(2),jr=Symbol.for("lit-noChange"),Tt=Symbol.for("lit-nothing"),Bc=new WeakMap,zr=Hr.createTreeWalker(Hr,129,null,!1),Ep=(t,e)=>{let r=t.length-1,i=[],n,s=e===2?"<svg>":"",o=Bi;for(let l=0;l<r;l++){let h=t[l],c,p,f=-1,u=0;for(;u<h.length&&(o.lastIndex=u,p=o.exec(h),p!==null);)u=o.lastIndex,o===Bi?p[1]==="!--"?o=Lc:p[1]!==void 0?o=$c:p[2]!==void 0?(xp.test(p[2])&&(n=RegExp("</"+p[2],"g")),o=mr):p[3]!==void 0&&(o=mr):o===mr?p[0]===">"?(o=n??Bi,f=-1):p[1]===void 0?f=-2:(f=o.lastIndex-p[2].length,c=p[1],o=p[3]===void 0?mr:p[3]==='"'?Vc:Rc):o===Vc||o===Rc?o=mr:o===Lc||o===$c?o=Bi:(o=mr,n=void 0);let m=o===mr&&t[l+1].startsWith("/>")?" ":"";s+=o===Bi?h+Pm:f>=0?(i.push(c),h.slice(0,f)+"$lit$"+h.slice(f)+Ne+m):h+Ne+(f===-2?(i.push(void 0),l):m)}let a=s+(t[r]||"<?>")+(e===2?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[Oc!==void 0?Oc.createHTML(a):a,i]},Wi=class t{constructor({strings:e,_$litType$:r},i){let n;this.parts=[];let s=0,o=0,a=e.length-1,l=this.parts,[h,c]=Ep(e,r);if(this.el=t.createElement(h,i),zr.currentNode=this.el.content,r===2){let p=this.el.content,f=p.firstChild;f.remove(),p.append(...f.childNodes)}for(;(n=zr.nextNode())!==null&&l.length<a;){if(n.nodeType===1){if(n.hasAttributes()){let p=[];for(let f of n.getAttributeNames())if(f.endsWith("$lit$")||f.startsWith(Ne)){let u=c[o++];if(p.push(f),u!==void 0){let m=n.getAttribute(u.toLowerCase()+"$lit$").split(Ne),g=/([.?@])?(.*)/.exec(u);l.push({type:1,index:s,name:g[2],strings:m,ctor:g[1]==="."?Cs:g[1]==="?"?Ts:g[1]==="@"?Ms:vr})}else l.push({type:6,index:s})}for(let f of p)n.removeAttribute(f)}if(xp.test(n.tagName)){let p=n.textContent.split(Ne),f=p.length-1;if(f>0){n.textContent=Nr?Nr.emptyScript:"";for(let u=0;u<f;u++)n.append(p[u],qi()),zr.nextNode(),l.push({type:2,index:++s});n.append(p[f],qi())}}}else if(n.nodeType===8)if(n.data===La)l.push({type:2,index:s});else{let p=-1;for(;(p=n.data.indexOf(Ne,p+1))!==-1;)l.push({type:7,index:s}),p+=Ne.length-1}s++}}static createElement(e,r){let i=Hr.createElement("template");return i.innerHTML=e,i}};function yr(t,e,r=t,i){var n,s,o,a;if(e===jr)return e;let l=i!==void 0?(n=r._$Co)===null||n===void 0?void 0:n[i]:r._$Cl,h=Ui(e)?void 0:e._$litDirective$;return l?.constructor!==h&&((s=l?._$AO)===null||s===void 0||s.call(l,!1),h===void 0?l=void 0:(l=new h(t),l._$AT(t,r,i)),i!==void 0?((o=(a=r)._$Co)!==null&&o!==void 0?o:a._$Co=[])[i]=l:r._$Cl=l),l!==void 0&&(e=yr(t,l._$AS(t,e.values),l,i)),e}var As=class{constructor(e,r){this.u=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(e){var r;let{el:{content:i},parts:n}=this._$AD,s=((r=e?.creationScope)!==null&&r!==void 0?r:Hr).importNode(i,!0);zr.currentNode=s;let o=zr.nextNode(),a=0,l=0,h=n[0];for(;h!==void 0;){if(a===h.index){let c;h.type===2?c=new Gr(o,o.nextSibling,this,e):h.type===1?c=new h.ctor(o,h.name,h.strings,this,e):h.type===6&&(c=new Fs(o,this,e)),this.u.push(c),h=n[++l]}a!==h?.index&&(o=zr.nextNode(),a++)}return s}p(e){let r=0;for(let i of this.u)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,r),r+=i.strings.length-2):i._$AI(e[r])),r++}},Gr=class t{constructor(e,r,i,n){var s;this.type=2,this._$AH=Tt,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=n,this._$Cm=(s=n?.isConnected)===null||s===void 0||s}get _$AU(){var e,r;return(r=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&r!==void 0?r:this._$Cm}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=yr(this,e,r),Ui(e)?e===Tt||e==null||e===""?(this._$AH!==Tt&&this._$AR(),this._$AH=Tt):e!==this._$AH&&e!==jr&&this.g(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):wp(e)?this.k(e):this.g(e)}O(e,r=this._$AB){return this._$AA.parentNode.insertBefore(e,r)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}g(e){this._$AH!==Tt&&Ui(this._$AH)?this._$AA.nextSibling.data=e:this.T(Hr.createTextNode(e)),this._$AH=e}$(e){var r;let{values:i,_$litType$:n}=e,s=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=Wi.createElement(n.h,this.options)),n);if(((r=this._$AH)===null||r===void 0?void 0:r._$AD)===s)this._$AH.p(i);else{let o=new As(s,this),a=o.v(this.options);o.p(i),this.T(a),this._$AH=o}}_$AC(e){let r=Bc.get(e.strings);return r===void 0&&Bc.set(e.strings,r=new Wi(e)),r}k(e){_p(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let s of e)n===r.length?r.push(i=new t(this.O(qi()),this.O(qi()),this,this.options)):i=r[n],i._$AI(s),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){var i;for((i=this._$AP)===null||i===void 0||i.call(this,!1,!0,r);e&&e!==this._$AB;){let n=e.nextSibling;e.remove(),e=n}}setConnected(e){var r;this._$AM===void 0&&(this._$Cm=e,(r=this._$AP)===null||r===void 0||r.call(this,e))}},vr=class{constructor(e,r,i,n,s){this.type=1,this._$AH=Tt,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=s,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Tt}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,r=this,i,n){let s=this.strings,o=!1;if(s===void 0)e=yr(this,e,r,0),o=!Ui(e)||e!==this._$AH&&e!==jr,o&&(this._$AH=e);else{let a=e,l,h;for(e=s[0],l=0;l<s.length-1;l++)h=yr(this,a[i+l],r,l),h===jr&&(h=this._$AH[l]),o||(o=!Ui(h)||h!==this._$AH[l]),h===Tt?e=Tt:e!==Tt&&(e+=(h??"")+s[l+1]),this._$AH[l]=h}o&&!n&&this.j(e)}j(e){e===Tt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Cs=class extends vr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Tt?void 0:e}},Am=Nr?Nr.emptyScript:"",Ts=class extends vr{constructor(){super(...arguments),this.type=4}j(e){e&&e!==Tt?this.element.setAttribute(this.name,Am):this.element.removeAttribute(this.name)}},Ms=class extends vr{constructor(e,r,i,n,s){super(e,r,i,n,s),this.type=5}_$AI(e,r=this){var i;if((e=(i=yr(this,e,r,0))!==null&&i!==void 0?i:Tt)===jr)return;let n=this._$AH,s=e===Tt&&n!==Tt||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,o=e!==Tt&&(n===Tt||s);s&&this.element.removeEventListener(this.name,this,n),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var r,i;typeof this._$AH=="function"?this._$AH.call((i=(r=this.options)===null||r===void 0?void 0:r.host)!==null&&i!==void 0?i:this.element,e):this._$AH.handleEvent(e)}},Fs=class{constructor(e,r,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){yr(this,e)}},rb={P:"$lit$",A:Ne,M:La,C:1,L:Ep,R:As,D:wp,V:yr,I:Gr,H:vr,N:Ts,U:Ms,B:Cs,F:Fs},zc=Ps.litHtmlPolyfillSupport;zc?.(Wi,Gr),((la=Ps.litHtmlVersions)!==null&&la!==void 0?la:Ps.litHtmlVersions=[]).push("2.5.0");var Cm=(t,e,r)=>{var i,n;let s=(i=r?.renderBefore)!==null&&i!==void 0?i:e,o=s._$litPart$;if(o===void 0){let a=(n=r?.renderBefore)!==null&&n!==void 0?n:null;s._$litPart$=o=new Gr(e.insertBefore(qi(),a),a,void 0,r??{})}return o._$AI(t),o;},ha,ca,ib=ze,gr=class extends ze{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,r;let i=super.createRenderRoot();return(e=(r=this.renderOptions).renderBefore)!==null&&e!==void 0||(r.renderBefore=i.firstChild),i}update(e){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Cm(r,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!1)}render(){return jr}};gr.finalized=!0,gr._$litElement$=!0,(ha=globalThis.litElementHydrateSupport)===null||ha===void 0||ha.call(globalThis,{LitElement:gr});var Nc=globalThis.litElementPolyfillSupport;Nc?.({LitElement:gr});var nb={_$AK:(t,e,r)=>{t._$AK(e,r)},_$AL:t=>t._$AL};((ca=globalThis.litElementVersions)!==null&&ca!==void 0?ca:globalThis.litElementVersions=[]).push("3.2.2");var sb=!1,Tm=t=>e=>typeof e=="function"?((r,i)=>(customElements.define(r,i),i))(t,e):((r,i)=>{let{kind:n,elements:s}=i;return{kind:n,elements:s,finisher(o){customElements.define(r,o)}}})(t,e),Mm=(t,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(r){r.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this))},finisher(r){r.createProperty(e.key,t)}};function Nt(t){return(e,r)=>r!==void 0?((i,n,s)=>{n.constructor.createProperty(s,i)})(t,e,r):Mm(t,e);}function ab(t){return Nt({...t,state:!0})}var lb=(t,e,r)=>{Object.defineProperty(e,r,t)},hb=(t,e)=>({kind:"method",placement:"prototype",key:e.key,descriptor:t}),Yr=({finisher:t,descriptor:e})=>(r,i)=>{var n;if(i===void 0){let s=(n=r.originalKey)!==null&&n!==void 0?n:r.key,o=e!=null?{kind:"method",placement:"prototype",key:s,descriptor:e(r.key)}:{...r,key:s};return t!=null&&(o.finisher=function(a){t(a,s)}),o}{let s=r.constructor;e!==void 0&&Object.defineProperty(r,i,e(i)),t?.(s,i)}};function cb(t){return Yr({finisher:(e,r)=>{Object.assign(e.prototype[r],t)}})}function Fm(t,e){return Yr({descriptor:r=>{let i={get(){var n,s;return(s=(n=this.renderRoot)===null||n===void 0?void 0:n.querySelector(t))!==null&&s!==void 0?s:null},enumerable:!0,configurable:!0};if(e){let n=typeof r=="symbol"?Symbol():"__"+r;i.get=function(){var s,o;return this[n]===void 0&&(this[n]=(o=(s=this.renderRoot)===null||s===void 0?void 0:s.querySelector(t))!==null&&o!==void 0?o:null),this[n]}}return i}})}function pb(t){return Yr({descriptor:e=>({get(){var r,i;return(i=(r=this.renderRoot)===null||r===void 0?void 0:r.querySelectorAll(t))!==null&&i!==void 0?i:[]},enumerable:!0,configurable:!0})})}function ub(t){return Yr({descriptor:e=>({async get(){var r;return await this.updateComplete,(r=this.renderRoot)===null||r===void 0?void 0:r.querySelector(t)},enumerable:!0,configurable:!0})})}var pa,Dm=((pa=window.HTMLSlotElement)===null||pa===void 0?void 0:pa.prototype.assignedElements)!=null?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter(r=>r.nodeType===Node.ELEMENT_NODE);function Im(t){let{slot:e,selector:r}=t??{};return Yr({descriptor:i=>({get(){var n;let s="slot"+(e?`[name=${e}]`:":not([name])"),o=(n=this.renderRoot)===null||n===void 0?void 0:n.querySelector(s),a=o!=null?Dm(o,t):[];return r?a.filter(l=>l.matches(r)):a},enumerable:!0,configurable:!0})})}function fb(t,e,r){let i,n=t;return typeof t=="object"?(n=t.slot,i=t):i={flatten:e},r?Im({slot:n,flatten:e,selector:r}):Yr({descriptor:s=>({get(){var o,a;let l="slot"+(n?`[name=${n}]`:":not([name])"),h=(o=this.renderRoot)===null||o===void 0?void 0:o.querySelector(l);return(a=h?.assignedNodes(i))!==null&&a!==void 0?a:[]},enumerable:!0,configurable:!0})})}var db=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Om(t,e,r){return t(r={path:e,exports:{},require:function(i,n){return Lm(i,n??r.path)}},r.exports),r.exports}function mb(t){return t&&t.default||t}function Lm(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var $m=Om(function(module,exports){typeof navigator<"u"&&function(t,e){module.exports=e()}(0,function(){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 r,i,n=t.length;for(r=0;r<n;r+=1)for(var s in i=t[r].prototype)Object.prototype.hasOwnProperty.call(i,s)&&(e.prototype[s]=i[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(e){this.audios=[],this.audioFactory=e,this._volume=1,this._isMuted=!1}return t.prototype={addAudio:function(e){this.audios.push(e)},pause:function(){var e,r=this.audios.length;for(e=0;e<r;e+=1)this.audios[e].pause()},resume:function(){var e,r=this.audios.length;for(e=0;e<r;e+=1)this.audios[e].resume()},setRate:function(e){var r,i=this.audios.length;for(r=0;r<i;r+=1)this.audios[r].setRate(e)},createAudio:function(e){return this.audioFactory?this.audioFactory(e):window.Howl?new window.Howl({src:[e]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(e){this.audioFactory=e},setVolume:function(e){this._volume=e,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var e,r=this.audios.length;for(e=0;e<r;e+=1)this.audios[e].volume(this._volume*(this._isMuted?0:1))}},function(){return new t}}(),createTypedArray=function(){function t(e,r){var i,n=0,s=[];switch(e){case"int16":case"uint8c":i=1;break;default:i=1.1}for(n=0;n<r;n+=1)s.push(i);return s}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?function(e,r){return e==="float32"?new Float32Array(r):e==="int16"?new Int16Array(r):e==="uint8c"?new Uint8ClampedArray(r):t(e,r)}:t}();function createSizedArray(t){return Array.apply(null,{length:t})}function _typeof$6(t){return(_typeof$6=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(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"],r=e.length;for(t=0;t<r;t+=1)BMMath[e[t]]=Math[e[t]]})(),BMMath.random=Math.random,BMMath.abs=function(t){if(_typeof$6(t)==="object"&&t.length){var e,r=createSizedArray(t.length),i=t.length;for(e=0;e<i;e+=1)r[e]=Math.abs(t[e]);return r}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,r,i){this.type=t,this.currentTime=e,this.totalTime=r,this.direction=i<0?-1:1}function BMCompleteEvent(t,e){this.type=t,this.direction=e<0?-1:1}function BMCompleteLoopEvent(t,e,r,i){this.type=t,this.currentLoop=r,this.totalLoops=e,this.direction=i<0?-1:1}function BMSegmentStartEvent(t,e,r){this.type=t,this.firstFrame=e,this.totalFrames=r}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,r){var i,n,s,o,a,l,h,c;switch(l=r*(1-e),h=r*(1-(a=6*t-(o=Math.floor(6*t)))*e),c=r*(1-(1-a)*e),o%6){case 0:i=r,n=c,s=l;break;case 1:i=h,n=r,s=l;break;case 2:i=l,n=r,s=c;break;case 3:i=l,n=h,s=r;break;case 4:i=c,n=l,s=r;break;case 5:i=r,n=l,s=h}return[i,n,s]}function RGBtoHSV(t,e,r){var i,n=Math.max(t,e,r),s=Math.min(t,e,r),o=n-s,a=n===0?0:o/n,l=n/255;switch(n){case s:i=0;break;case t:i=e-r+o*(e<r?6:0),i/=6*o;break;case e:i=r-t+2*o,i/=6*o;break;case r:i=t-e+4*o,i/=6*o}return[i,a,l]}function addSaturationToRGB(t,e){var r=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return r[1]+=e,r[1]>1?r[1]=1:r[1]<=0&&(r[1]=0),HSVtoRGB(r[0],r[1],r[2])}function addBrightnessToRGB(t,e){var r=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return r[2]+=e,r[2]>1?r[2]=1:r[2]<0&&(r[2]=0),HSVtoRGB(r[0],r[1],r[2])}function addHueToRGB(t,e){var r=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return r[0]+=e/360,r[0]>1?r[0]-=1:r[0]<0&&(r[0]+=1),HSVtoRGB(r[0],r[1],r[2])}var rgbToHex=function(){var t,e,r=[];for(t=0;t<256;t+=1)e=t.toString(16),r[t]=e.length===1?"0"+e:e;return function(i,n,s){return i<0&&(i=0),n<0&&(n=0),s<0&&(s=0),"#"+r[i]+r[n]+r[s]}}(),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=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}var dataManager=function(){var t,e,r=1,i=[],n={onmessage:function(){},postMessage:function(l){t({data:l})}},s={postMessage:function(l){n.onmessage({data:l})}};function o(){e||((e=function(l){if(window.Worker&&window.Blob&&getWebWorker()){var h=new Blob(["var _workerSelf = self; self.onmessage = ",l.toString()],{type:"text/javascript"}),c=URL.createObjectURL(h);return new Worker(c)}return t=l,n}(function(l){if(s.dataManager||(s.dataManager=function(){function c(S,w){var D,E,T,k,A,P,I=S.length;for(E=0;E<I;E+=1)if("ks"in(D=S[E])&&!D.completed){if(D.completed=!0,D.hasMask){var O=D.masksProperties;for(k=O.length,T=0;T<k;T+=1)if(O[T].pt.k.i)u(O[T].pt.k);else for(P=O[T].pt.k.length,A=0;A<P;A+=1)O[T].pt.k[A].s&&u(O[T].pt.k[A].s[0]),O[T].pt.k[A].e&&u(O[T].pt.k[A].e[0])}D.ty===0?(D.layers=p(D.refId,w),c(D.layers,w)):D.ty===4?f(D.shapes):D.ty===5&&x(D)}}function p(S,w){var D=function(E,T){for(var k=0,A=T.length;k<A;){if(T[k].id===E)return T[k];k+=1}return null}(S,w);return D?D.layers.__used?JSON.parse(JSON.stringify(D.layers)):(D.layers.__used=!0,D.layers):null}function f(S){var w,D,E;for(w=S.length-1;w>=0;w-=1)if(S[w].ty==="sh")if(S[w].ks.k.i)u(S[w].ks.k);else for(E=S[w].ks.k.length,D=0;D<E;D+=1)S[w].ks.k[D].s&&u(S[w].ks.k[D].s[0]),S[w].ks.k[D].e&&u(S[w].ks.k[D].e[0]);else S[w].ty==="gr"&&f(S[w].it)}function u(S){var w,D=S.i.length;for(w=0;w<D;w+=1)S.i[w][0]+=S.v[w][0],S.i[w][1]+=S.v[w][1],S.o[w][0]+=S.v[w][0],S.o[w][1]+=S.v[w][1]}function m(S,w){var D=w?w.split("."):[100,100,100];return S[0]>D[0]||!(D[0]>S[0])&&(S[1]>D[1]||!(D[1]>S[1])&&(S[2]>D[2]||!(D[2]>S[2])&&null))}var g,d=function(){var S=[4,4,14];function w(D){var E,T,k,A=D.length;for(E=0;E<A;E+=1)D[E].ty===5&&(T=D[E],k=void 0,k=T.t.d,T.t.d={k:[{s:k,t:0}]})}return function(D){if(m(S,D.v)&&(w(D.layers),D.assets)){var E,T=D.assets.length;for(E=0;E<T;E+=1)D.assets[E].layers&&w(D.assets[E].layers)}}}(),y=(g=[4,7,99],function(S){if(S.chars&&!m(g,S.v)){var w,D=S.chars.length;for(w=0;w<D;w+=1){var E=S.chars[w];E.data&&E.data.shapes&&(f(E.data.shapes),E.data.ip=0,E.data.op=99999,E.data.st=0,E.data.sr=1,E.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}},S.chars[w].t||(E.data.shapes.push({ty:"no"}),E.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"})))}}}),v=function(){var S=[5,7,15];function w(D){var E,T,k,A=D.length;for(E=0;E<A;E+=1)D[E].ty===5&&(T=D[E],k=void 0,typeof(k=T.t.p).a=="number"&&(k.a={a:0,k:k.a}),typeof k.p=="number"&&(k.p={a:0,k:k.p}),typeof k.r=="number"&&(k.r={a:0,k:k.r}))}return function(D){if(m(S,D.v)&&(w(D.layers),D.assets)){var E,T=D.assets.length;for(E=0;E<T;E+=1)D.assets[E].layers&&w(D.assets[E].layers)}}}(),b=function(){var S=[4,1,9];function w(E){var T,k,A,P=E.length;for(T=0;T<P;T+=1)if(E[T].ty==="gr")w(E[T].it);else if(E[T].ty==="fl"||E[T].ty==="st")if(E[T].c.k&&E[T].c.k[0].i)for(A=E[T].c.k.length,k=0;k<A;k+=1)E[T].c.k[k].s&&(E[T].c.k[k].s[0]/=255,E[T].c.k[k].s[1]/=255,E[T].c.k[k].s[2]/=255,E[T].c.k[k].s[3]/=255),E[T].c.k[k].e&&(E[T].c.k[k].e[0]/=255,E[T].c.k[k].e[1]/=255,E[T].c.k[k].e[2]/=255,E[T].c.k[k].e[3]/=255);else E[T].c.k[0]/=255,E[T].c.k[1]/=255,E[T].c.k[2]/=255,E[T].c.k[3]/=255}function D(E){var T,k=E.length;for(T=0;T<k;T+=1)E[T].ty===4&&w(E[T].shapes)}return function(E){if(m(S,E.v)&&(D(E.layers),E.assets)){var T,k=E.assets.length;for(T=0;T<k;T+=1)E.assets[T].layers&&D(E.assets[T].layers)}}}(),_=function(){var S=[4,4,18];function w(E){var T,k,A;for(T=E.length-1;T>=0;T-=1)if(E[T].ty==="sh")if(E[T].ks.k.i)E[T].ks.k.c=E[T].closed;else for(A=E[T].ks.k.length,k=0;k<A;k+=1)E[T].ks.k[k].s&&(E[T].ks.k[k].s[0].c=E[T].closed),E[T].ks.k[k].e&&(E[T].ks.k[k].e[0].c=E[T].closed);else E[T].ty==="gr"&&w(E[T].it)}function D(E){var T,k,A,P,I,O,F=E.length;for(k=0;k<F;k+=1){if((T=E[k]).hasMask){var C=T.masksProperties;for(P=C.length,A=0;A<P;A+=1)if(C[A].pt.k.i)C[A].pt.k.c=C[A].cl;else for(O=C[A].pt.k.length,I=0;I<O;I+=1)C[A].pt.k[I].s&&(C[A].pt.k[I].s[0].c=C[A].cl),C[A].pt.k[I].e&&(C[A].pt.k[I].e[0].c=C[A].cl)}T.ty===4&&w(T.shapes)}}return function(E){if(m(S,E.v)&&(D(E.layers),E.assets)){var T,k=E.assets.length;for(T=0;T<k;T+=1)E.assets[T].layers&&D(E.assets[T].layers)}}}();function x(S){S.t.a.length===0&&S.t.p}var M={completeData:function(S){S.__complete||(b(S),d(S),y(S),v(S),_(S),c(S.layers,S.assets),function(w,D){if(w){var E=0,T=w.length;for(E=0;E<T;E+=1)w[E].t===1&&(w[E].data.layers=p(w[E].data.refId,D),c(w[E].data.layers,D))}}(S.chars,S.assets),S.__complete=!0)}};return M.checkColors=b,M.checkChars=y,M.checkPathProperties=v,M.checkShapes=_,M.completeLayers=c,M}()),s.assetLoader||(s.assetLoader=function(){function c(p){var f=p.getResponseHeader("content-type");return f&&p.responseType==="json"&&f.indexOf("json")!==-1||p.response&&_typeof$5(p.response)==="object"?p.response:p.response&&typeof p.response=="string"?JSON.parse(p.response):p.responseText?JSON.parse(p.responseText):null}return{load:function(p,f,u,m){var g,d=new XMLHttpRequest;try{d.responseType="json"}catch{}d.onreadystatechange=function(){if(d.readyState===4)if(d.status===200)g=c(d),u(g);else try{g=c(d),u(g)}catch(y){m&&m(y)}};try{d.open(["G","E","T"].join(""),p,!0)}catch{d.open(["G","E","T"].join(""),f+"/"+p,!0)}d.send()}}}()),l.data.type==="loadAnimation")s.assetLoader.load(l.data.path,l.data.fullPath,function(c){s.dataManager.completeData(c),s.postMessage({id:l.data.id,payload:c,status:"success"})},function(){s.postMessage({id:l.data.id,status:"error"})});else if(l.data.type==="complete"){var h=l.data.animation;s.dataManager.completeData(h),s.postMessage({id:l.data.id,payload:h,status:"success"})}else l.data.type==="loadData"&&s.assetLoader.load(l.data.path,l.data.fullPath,function(c){s.postMessage({id:l.data.id,payload:c,status:"success"})},function(){s.postMessage({id:l.data.id,status:"error"})})})).onmessage=function(l){var h=l.data,c=h.id,p=i[c];i[c]=null,h.status==="success"?p.onComplete(h.payload):p.onError&&p.onError()})}function a(l,h){var c="processId_"+(r+=1);return i[c]={onComplete:l,onError:h},c}return{loadAnimation:function(l,h,c){o();var p=a(h,c);e.postMessage({type:"loadAnimation",path:l,fullPath:window.location.origin+window.location.pathname,id:p})},loadData:function(l,h,c){o();var p=a(h,c);e.postMessage({type:"loadData",path:l,fullPath:window.location.origin+window.location.pathname,id:p})},completeAnimation:function(l,h,c){o();var p=a(h,c);e.postMessage({type:"complete",animation:l,id:p})}}}(),ImagePreloader=function(){var t=function(){var a=createTag("canvas");a.width=1,a.height=1;var l=a.getContext("2d");return l.fillStyle="rgba(0,0,0,0)",l.fillRect(0,0,1,1),a}();function e(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function r(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function i(a,l,h){var c="";if(a.e)c=a.p;else if(l){var p=a.p;p.indexOf("images/")!==-1&&(p=p.split("/")[1]),c=l+p}else c=h,c+=a.u?a.u:"",c+=a.p;return c}function n(a){var l=0,h=setInterval(function(){(a.getBBox().width||l>500)&&(this._imageLoaded(),clearInterval(h)),l+=1}.bind(this),50)}function s(a){var l={assetData:a},h=i(a,this.assetsPath,this.path);return dataManager.loadData(h,function(c){l.img=c,this._footageLoaded()}.bind(this),function(){l.img={},this._footageLoaded()}.bind(this)),l}function o(){this._imageLoaded=e.bind(this),this._footageLoaded=r.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 o.prototype={loadAssets:function(a,l){var h;this.imagesLoadedCb=l;var c=a.length;for(h=0;h<c;h+=1)a[h].layers||(a[h].t&&a[h].t!=="seq"?a[h].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(a[h]))):(this.totalImages+=1,this.images.push(this._createImageData(a[h]))))},setAssetsPath:function(a){this.assetsPath=a||""},setPath:function(a){this.path=a||""},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(a){for(var l=0,h=this.images.length;l<h;){if(this.images[l].assetData===a)return this.images[l].img;l+=1}return null},createImgData:function(a){var l=i(a,this.assetsPath,this.path),h=createTag("img");h.crossOrigin="anonymous",h.addEventListener("load",this._imageLoaded,!1),h.addEventListener("error",function(){c.img=t,this._imageLoaded()}.bind(this),!1),h.src=l;var c={img:h,assetData:a};return c},createImageData:function(a){var l=i(a,this.assetsPath,this.path),h=createNS("image");isSafari?this.testImageLoaded(h):h.addEventListener("load",this._imageLoaded,!1),h.addEventListener("error",function(){c.img=t,this._imageLoaded()}.bind(this),!1),h.setAttributeNS("http://www.w3.org/1999/xlink","href",l),this._elementHelper.append?this._elementHelper.append(h):this._elementHelper.appendChild(h);var c={img:h,assetData:a};return c},imageLoaded:e,footageLoaded:r,setCacheType:function(a,l){a==="svg"?(this._elementHelper=l,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},o}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(t,e){if(this._cbs[t])for(var r=this._cbs[t],i=0;i<r.length;i+=1)r[i](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 r=0,i=this._cbs[t].length;r<i;)this._cbs[t][r]===e&&(this._cbs[t].splice(r,1),r-=1,i-=1),r+=1;this._cbs[t].length||(this._cbs[t]=null)}}else this._cbs[t]=null}};var markerParser=function(){function t(e){for(var r,i=e.split(`\r
|
|
238
|
-
`),n={},s=0,o=0;o<i.length;o+=1)(r=i[o].split(":")).length===2&&(n[r[0]]=r[1].trim(),s+=1);if(s===0)throw new Error;return n}return function(e){for(var r=[],i=0;i<e.length;i+=1){var n=e[i],s={time:n.tm,duration:n.dr};try{s.payload=JSON.parse(e[i].cm)}catch{try{s.payload=t(e[i].cm)}catch{s.payload={name:e[i].cm}}}r.push(s)}return r}}(),ProjectInterface=function(){function t(e){this.compositions.push(e)}return function(){function e(r){for(var i=0,n=this.compositions.length;i<n;){if(this.compositions[i].data&&this.compositions[i].data.nm===r)return this.compositions[i].prepareFrame&&this.compositions[i].data.xt&&this.compositions[i].prepareFrame(this.currentFrame),this.compositions[i].compInterface;i+=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 _typeof$4(t){return(_typeof$4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(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=new BMEnterFrameEvent("drawnFrame",0,0,0)};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 r=getRenderer(e);this.renderer=new r(this,t.rendererSettings),this.imagePreloader.setCacheType(e,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=e,t.loop===""||t.loop===null||t.loop===void 0||t.loop===!0?this.loop=!0:t.loop===!1?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&&(t.path.lastIndexOf("\\")!==-1?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&&_typeof$4(e)!=="object"&&(e=JSON.parse(e));var r={wrapper:t,animationData:e},i=t.attributes;r.path=i.getNamedItem("data-animation-path")?i.getNamedItem("data-animation-path").value:i.getNamedItem("data-bm-path")?i.getNamedItem("data-bm-path").value:i.getNamedItem("bm-path")?i.getNamedItem("bm-path").value:"",r.animType=i.getNamedItem("data-anim-type")?i.getNamedItem("data-anim-type").value:i.getNamedItem("data-bm-type")?i.getNamedItem("data-bm-type").value:i.getNamedItem("bm-type")?i.getNamedItem("bm-type").value:i.getNamedItem("data-bm-renderer")?i.getNamedItem("data-bm-renderer").value:i.getNamedItem("bm-renderer")?i.getNamedItem("bm-renderer").value:"canvas";var n=i.getNamedItem("data-anim-loop")?i.getNamedItem("data-anim-loop").value:i.getNamedItem("data-bm-loop")?i.getNamedItem("data-bm-loop").value:i.getNamedItem("bm-loop")?i.getNamedItem("bm-loop").value:"";n==="false"?r.loop=!1:n==="true"?r.loop=!0:n!==""&&(r.loop=parseInt(n,10));var s=i.getNamedItem("data-anim-autoplay")?i.getNamedItem("data-anim-autoplay").value:i.getNamedItem("data-bm-autoplay")?i.getNamedItem("data-bm-autoplay").value:!i.getNamedItem("bm-autoplay")||i.getNamedItem("bm-autoplay").value;r.autoplay=s!=="false",r.name=i.getNamedItem("data-name")?i.getNamedItem("data-name").value:i.getNamedItem("data-bm-name")?i.getNamedItem("data-bm-name").value:i.getNamedItem("bm-name")?i.getNamedItem("bm-name").value:"",(i.getNamedItem("data-anim-prerender")?i.getNamedItem("data-anim-prerender").value:i.getNamedItem("data-bm-prerender")?i.getNamedItem("data-bm-prerender").value:i.getNamedItem("bm-prerender")?i.getNamedItem("bm-prerender").value:"")==="false"&&(r.prerender=!1),this.setParams(r)},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,r,i=this.animationData.layers,n=i.length,s=t.layers,o=s.length;for(r=0;r<o;r+=1)for(e=0;e<n;){if(i[e].id===s[r].id){i[e]=s[r];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||t.length===0||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var e=t.shift();this.timeCompleted=e.time*this.frameRate;var r=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(r,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(e){this.triggerConfigError(e)}},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()||this.renderer.rendererType!=="canvas")&&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 r=typeof t=="number"?t:void 0,i=typeof e=="number"?e:void 0;this.renderer.updateContainerSize(r,i)},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(this.isLoaded!==!1&&this.renderer)try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},AnimationItem.prototype.play=function(t){t&&this.name!==t||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_pause"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(t){t&&this.name!==t||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_play"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(t){t&&this.name!==t||(this.isPaused===!0?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,r=0;r<this.markers.length;r+=1)if((e=this.markers[r]).payload&&e.payload.name===t)return e;return null},AnimationItem.prototype.goToAndStop=function(t,e,r){if(!r||this.name===r){var i=Number(t);if(isNaN(i)){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,r){if(!r||this.name===r){var i=Number(t);if(isNaN(i)){var n=this.getMarkerData(t);n&&(n.duration?this.playSegments([n.time,n.time+n.duration],!0):this.goToAndStop(n.time,!0))}else this.goToAndStop(i,e,r);this.play()}},AnimationItem.prototype.advanceTime=function(t){if(this.isPaused!==!0&&this.isLoaded!==!1){var e=this.currentRawFrame+t*this.frameModifier,r=!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)||(r=!0,e=this.totalFrames-1):e<0?this.checkSegments(e%this.totalFrames)||(!this.loop||this.playCount--<=0&&this.loop!==!0?(r=!0,e=0):(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(e),r&&(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 r=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<t?r=t:this.currentRawFrame+this.firstFrame>e&&(r=e-t)),this.firstFrame=t,this.totalFrames=e-t,this.timeCompleted=this.totalFrames,r!==-1&&this.goToAndStop(r,!0)},AnimationItem.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),_typeof$4(t[0])==="object"){var r,i=t.length;for(r=0;r<i;r+=1)this.segments.push(t[r])}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.renderer=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.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 r=t.p;r.indexOf("images/")!==-1&&(r=r.split("/")[1]),e=this.assetsPath+r}else e=this.path,e+=t.u?t.u:"",e+=t.p;return e},AnimationItem.prototype.getAssetData=function(t){for(var e=0,r=this.assets.length;e<r;){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,r){try{this.renderer.getElementByPath(t).updateDocumentData(e,r)}catch{}},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)}t==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameMult)),t==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult)),t==="complete"&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(t,this.frameMult)),t==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames)),t==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(t,this))},AnimationItem.prototype.triggerRenderFrameError=function(t){var e=new BMRenderFrameErrorEvent(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)},AnimationItem.prototype.triggerConfigError=function(t){var e=new BMConfigErrorEvent(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)};var animationManager=function(){var t={},e=[],r=0,i=0,n=0,s=!0,o=!1;function a(g){for(var d=0,y=g.target;d<i;)e[d].animation===y&&(e.splice(d,1),d-=1,i-=1,y.isPaused||c()),d+=1}function l(g,d){if(!g)return null;for(var y=0;y<i;){if(e[y].elem===g&&e[y].elem!==null)return e[y].animation;y+=1}var v=new AnimationItem;return p(v,g),v.setData(g,d),v}function h(){n+=1,m()}function c(){n-=1}function p(g,d){g.addEventListener("destroy",a),g.addEventListener("_active",h),g.addEventListener("_idle",c),e.push({elem:d,animation:g}),i+=1}function f(g){var d,y=g-r;for(d=0;d<i;d+=1)e[d].animation.advanceTime(y);r=g,n&&!o?window.requestAnimationFrame(f):s=!0}function u(g){r=g,window.requestAnimationFrame(f)}function m(){!o&&n&&s&&(window.requestAnimationFrame(u),s=!1)}return t.registerAnimation=l,t.loadAnimation=function(g){var d=new AnimationItem;return p(d,null),d.setParams(g),d},t.setSpeed=function(g,d){var y;for(y=0;y<i;y+=1)e[y].animation.setSpeed(g,d)},t.setDirection=function(g,d){var y;for(y=0;y<i;y+=1)e[y].animation.setDirection(g,d)},t.play=function(g){var d;for(d=0;d<i;d+=1)e[d].animation.play(g)},t.pause=function(g){var d;for(d=0;d<i;d+=1)e[d].animation.pause(g)},t.stop=function(g){var d;for(d=0;d<i;d+=1)e[d].animation.stop(g)},t.togglePause=function(g){var d;for(d=0;d<i;d+=1)e[d].animation.togglePause(g)},t.searchAnimations=function(g,d,y){var v,b=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),_=b.length;for(v=0;v<_;v+=1)y&&b[v].setAttribute("data-bm-type",y),l(b[v],g);if(d&&_===0){y||(y="svg");var x=document.getElementsByTagName("body")[0];x.innerText="";var M=createTag("div");M.style.width="100%",M.style.height="100%",M.setAttribute("data-bm-type",y),x.appendChild(M),l(M,g)}},t.resize=function(){var g;for(g=0;g<i;g+=1)e[g].animation.resize()},t.goToAndStop=function(g,d,y){var v;for(v=0;v<i;v+=1)e[v].animation.goToAndStop(g,d,y)},t.destroy=function(g){var d;for(d=i-1;d>=0;d-=1)e[d].animation.destroy(g)},t.freeze=function(){o=!0},t.unfreeze=function(){o=!1,m()},t.setVolume=function(g,d){var y;for(y=0;y<i;y+=1)e[y].animation.setVolume(g,d)},t.mute=function(g){var d;for(d=0;d<i;d+=1)e[d].animation.mute(g)},t.unmute=function(g){var d;for(d=0;d<i;d+=1)e[d].animation.unmute(g)},t.getRegisteredAnimations=function(){var g,d=e.length,y=[];for(g=0;g<d;g+=1)y.push(e[g].animation);return y},t}(),BezierFactory=function(){var t={getBezierEasing:function(h,c,p,f,u){var m=u||("bez_"+h+"_"+c+"_"+p+"_"+f).replace(/\./g,"p");if(e[m])return e[m];var g=new l([h,c,p,f]);return e[m]=g,g}},e={},r=typeof Float32Array=="function";function i(h,c){return 1-3*c+3*h}function n(h,c){return 3*c-6*h}function s(h){return 3*h}function o(h,c,p){return((i(c,p)*h+n(c,p))*h+s(c))*h}function a(h,c,p){return 3*i(c,p)*h*h+2*n(c,p)*h+s(c)}function l(h){this._p=h,this._mSampleValues=r?new Float32Array(11):new Array(11),this._precomputed=!1,this.get=this.get.bind(this)}return l.prototype={get:function(h){var c=this._p[0],p=this._p[1],f=this._p[2],u=this._p[3];return this._precomputed||this._precompute(),c===p&&f===u?h:h===0?0:h===1?1:o(this._getTForX(h),p,u)},_precompute:function(){var h=this._p[0],c=this._p[1],p=this._p[2],f=this._p[3];this._precomputed=!0,h===c&&p===f||this._calcSampleValues()},_calcSampleValues:function(){for(var h=this._p[0],c=this._p[2],p=0;p<11;++p)this._mSampleValues[p]=o(.1*p,h,c)},_getTForX:function(h){for(var c=this._p[0],p=this._p[2],f=this._mSampleValues,u=0,m=1;m!==10&&f[m]<=h;++m)u+=.1;var g=u+.1*((h-f[--m])/(f[m+1]-f[m])),d=a(g,c,p);return d>=.001?function(y,v,b,_){for(var x=0;x<4;++x){var M=a(v,b,_);if(M===0)return v;v-=(o(v,b,_)-y)/M}return v}(h,g,c,p):d===0?g:function(y,v,b,_,x){var M,S,w=0;do(M=o(S=v+(b-v)/2,_,x)-y)>0?b=S:v=S;while(Math.abs(M)>1e-7&&++w<10);return S}(h,u,u+.1,c,p)}},t}(),pooling={double:function(t){return t.concat(createSizedArray(t.length))}},poolFactory=function(t,e,r){var i=0,n=t,s=createSizedArray(n);return{newElement:function(){return i?s[i-=1]:e()},release:function(o){i===n&&(s=pooling.double(s),n*=2),r&&r(o),s[i]=o,i+=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,r=t.lengths.length;for(e=0;e<r;e+=1)bezierLengthPool.release(t.lengths[e]);t.lengths.length=0});function bezFunction(){var t=Math;function e(h,c,p,f,u,m){var g=h*f+c*u+p*m-u*f-m*h-p*c;return g>-.001&&g<.001}var r=function(h,c,p,f){var u,m,g,d,y,v,b=getDefaultCurveSegments(),_=0,x=[],M=[],S=bezierLengthPool.newElement();for(g=p.length,u=0;u<b;u+=1){for(y=u/(b-1),v=0,m=0;m<g;m+=1)d=bmPow(1-y,3)*h[m]+3*bmPow(1-y,2)*y*p[m]+3*(1-y)*bmPow(y,2)*f[m]+bmPow(y,3)*c[m],x[m]=d,M[m]!==null&&(v+=bmPow(x[m]-M[m],2)),M[m]=x[m];v&&(_+=v=bmSqrt(v)),S.percents[u]=y,S.lengths[u]=_}return S.addedLength=_,S};function i(h){this.segmentLength=0,this.points=new Array(h)}function n(h,c){this.partialLength=h,this.point=c}var s,o=(s={},function(h,c,p,f){var u=(h[0]+"_"+h[1]+"_"+c[0]+"_"+c[1]+"_"+p[0]+"_"+p[1]+"_"+f[0]+"_"+f[1]).replace(/\./g,"p");if(!s[u]){var m,g,d,y,v,b,_,x=getDefaultCurveSegments(),M=0,S=null;h.length===2&&(h[0]!==c[0]||h[1]!==c[1])&&e(h[0],h[1],c[0],c[1],h[0]+p[0],h[1]+p[1])&&e(h[0],h[1],c[0],c[1],c[0]+f[0],c[1]+f[1])&&(x=2);var w=new i(x);for(d=p.length,m=0;m<x;m+=1){for(_=createSizedArray(d),v=m/(x-1),b=0,g=0;g<d;g+=1)y=bmPow(1-v,3)*h[g]+3*bmPow(1-v,2)*v*(h[g]+p[g])+3*(1-v)*bmPow(v,2)*(c[g]+f[g])+bmPow(v,3)*c[g],_[g]=y,S!==null&&(b+=bmPow(_[g]-S[g],2));M+=b=bmSqrt(b),w.points[m]=new n(b,_),S=_}w.segmentLength=M,s[u]=w}return s[u]});function a(h,c){var p=c.percents,f=c.lengths,u=p.length,m=bmFloor((u-1)*h),g=h*c.addedLength,d=0;if(m===u-1||m===0||g===f[m])return p[m];for(var y=f[m]>g?-1:1,v=!0;v;)if(f[m]<=g&&f[m+1]>g?(d=(g-f[m])/(f[m+1]-f[m]),v=!1):m+=y,m<0||m>=u-1){if(m===u-1)return p[m];v=!1}return p[m]+(p[m+1]-p[m])*d}var l=createTypedArray("float32",8);return{getSegmentsLength:function(h){var c,p=segmentsLengthPool.newElement(),f=h.c,u=h.v,m=h.o,g=h.i,d=h._length,y=p.lengths,v=0;for(c=0;c<d-1;c+=1)y[c]=r(u[c],u[c+1],m[c],g[c+1]),v+=y[c].addedLength;return f&&d&&(y[c]=r(u[c],u[0],m[c],g[0]),v+=y[c].addedLength),p.totalLength=v,p},getNewSegment:function(h,c,p,f,u,m,g){u<0?u=0:u>1&&(u=1);var d,y=a(u,g),v=a(m=m>1?1:m,g),b=h.length,_=1-y,x=1-v,M=_*_*_,S=y*_*_*3,w=y*y*_*3,D=y*y*y,E=_*_*x,T=y*_*x+_*y*x+_*_*v,k=y*y*x+_*y*v+y*_*v,A=y*y*v,P=_*x*x,I=y*x*x+_*v*x+_*x*v,O=y*v*x+_*v*v+y*x*v,F=y*v*v,C=x*x*x,L=v*x*x+x*v*x+x*x*v,R=v*v*x+x*v*v+v*x*v,z=v*v*v;for(d=0;d<b;d+=1)l[4*d]=t.round(1e3*(M*h[d]+S*p[d]+w*f[d]+D*c[d]))/1e3,l[4*d+1]=t.round(1e3*(E*h[d]+T*p[d]+k*f[d]+A*c[d]))/1e3,l[4*d+2]=t.round(1e3*(P*h[d]+I*p[d]+O*f[d]+F*c[d]))/1e3,l[4*d+3]=t.round(1e3*(C*h[d]+L*p[d]+R*f[d]+z*c[d]))/1e3;return l},getPointInSegment:function(h,c,p,f,u,m){var g=a(u,m),d=1-g;return[t.round(1e3*(d*d*d*h[0]+(g*d*d+d*g*d+d*d*g)*p[0]+(g*g*d+d*g*g+g*d*g)*f[0]+g*g*g*c[0]))/1e3,t.round(1e3*(d*d*d*h[1]+(g*d*d+d*g*d+d*d*g)*p[1]+(g*g*d+d*g*g+g*d*g)*f[1]+g*g*g*c[1]))/1e3]},buildBezierData:o,pointOnLine2D:e,pointOnLine3D:function(h,c,p,f,u,m,g,d,y){if(p===0&&m===0&&y===0)return e(h,c,f,u,g,d);var v,b=t.sqrt(t.pow(f-h,2)+t.pow(u-c,2)+t.pow(m-p,2)),_=t.sqrt(t.pow(g-h,2)+t.pow(d-c,2)+t.pow(y-p,2)),x=t.sqrt(t.pow(g-f,2)+t.pow(d-u,2)+t.pow(y-m,2));return(v=b>_?b>x?b-_-x:x-_-b:x>_?x-_-b:_-b-x)>-1e-4&&v<1e-4}}}var bez=bezFunction(),PropertyFactory=function(){var t=initialDefaultFrame,e=Math.abs;function r(f,u){var m,g=this.offsetTime;this.propType==="multidimensional"&&(m=createTypedArray("float32",this.pv.length));for(var d,y,v,b,_,x,M,S,w,D=u.lastIndex,E=D,T=this.keyframes.length-1,k=!0;k;){if(d=this.keyframes[E],y=this.keyframes[E+1],E===T-1&&f>=y.t-g){d.h&&(d=y),D=0;break}if(y.t-g>f){D=E;break}E<T-1?E+=1:(D=0,k=!1)}v=this.keyframesMetadata[E]||{};var A,P=y.t-g,I=d.t-g;if(d.to){v.bezierData||(v.bezierData=bez.buildBezierData(d.s,y.s||d.e,d.to,d.ti));var O=v.bezierData;if(f>=P||f<I){var F=f>=P?O.points.length-1:0;for(_=O.points[F].point.length,b=0;b<_;b+=1)m[b]=O.points[F].point[b]}else{v.__fnct?w=v.__fnct:(w=BezierFactory.getBezierEasing(d.o.x,d.o.y,d.i.x,d.i.y,d.n).get,v.__fnct=w),x=w((f-I)/(P-I));var C,L=O.segmentLength*x,R=u.lastFrame<f&&u._lastKeyframeIndex===E?u._lastAddedLength:0;for(S=u.lastFrame<f&&u._lastKeyframeIndex===E?u._lastPoint:0,k=!0,M=O.points.length;k;){if(R+=O.points[S].partialLength,L===0||x===0||S===O.points.length-1){for(_=O.points[S].point.length,b=0;b<_;b+=1)m[b]=O.points[S].point[b];break}if(L>=R&&L<R+O.points[S+1].partialLength){for(C=(L-R)/O.points[S+1].partialLength,_=O.points[S].point.length,b=0;b<_;b+=1)m[b]=O.points[S].point[b]+(O.points[S+1].point[b]-O.points[S].point[b])*C;break}S<M-1?S+=1:k=!1}u._lastPoint=S,u._lastAddedLength=R-O.points[S].partialLength,u._lastKeyframeIndex=E}}else{var z,H,G,N,Y;if(T=d.s.length,A=y.s||d.e,this.sh&&d.h!==1)f>=P?(m[0]=A[0],m[1]=A[1],m[2]=A[2]):f<=I?(m[0]=d.s[0],m[1]=d.s[1],m[2]=d.s[2]):function(J,K){var Z=K[0],pt=K[1],et=K[2],vt=K[3],ut=Math.atan2(2*pt*vt-2*Z*et,1-2*pt*pt-2*et*et),j=Math.asin(2*Z*pt+2*et*vt),Ft=Math.atan2(2*Z*vt-2*pt*et,1-2*Z*Z-2*et*et);J[0]=ut/degToRads,J[1]=j/degToRads,J[2]=Ft/degToRads}(m,function(J,K,Z){var pt,et,vt,ut,j,Ft=[],ae=J[0],le=J[1],qt=J[2],Kt=J[3],Ut=K[0],St=K[1],Jt=K[2],Qt=K[3];return(et=ae*Ut+le*St+qt*Jt+Kt*Qt)<0&&(et=-et,Ut=-Ut,St=-St,Jt=-Jt,Qt=-Qt),1-et>1e-6?(pt=Math.acos(et),vt=Math.sin(pt),ut=Math.sin((1-Z)*pt)/vt,j=Math.sin(Z*pt)/vt):(ut=1-Z,j=Z),Ft[0]=ut*ae+j*Ut,Ft[1]=ut*le+j*St,Ft[2]=ut*qt+j*Jt,Ft[3]=ut*Kt+j*Qt,Ft}(i(d.s),i(A),(f-I)/(P-I)));else for(E=0;E<T;E+=1)d.h!==1&&(f>=P?x=1:f<I?x=0:(d.o.x.constructor===Array?(v.__fnct||(v.__fnct=[]),v.__fnct[E]?w=v.__fnct[E]:(z=d.o.x[E]===void 0?d.o.x[0]:d.o.x[E],H=d.o.y[E]===void 0?d.o.y[0]:d.o.y[E],G=d.i.x[E]===void 0?d.i.x[0]:d.i.x[E],N=d.i.y[E]===void 0?d.i.y[0]:d.i.y[E],w=BezierFactory.getBezierEasing(z,H,G,N).get,v.__fnct[E]=w)):v.__fnct?w=v.__fnct:(z=d.o.x,H=d.o.y,G=d.i.x,N=d.i.y,w=BezierFactory.getBezierEasing(z,H,G,N).get,d.keyframeMetadata=w),x=w((f-I)/(P-I)))),A=y.s||d.e,Y=d.h===1?d.s[E]:d.s[E]+(A[E]-d.s[E])*x,this.propType==="multidimensional"?m[E]=Y:m=Y}return u.lastIndex=D,m}function i(f){var u=f[0]*degToRads,m=f[1]*degToRads,g=f[2]*degToRads,d=Math.cos(u/2),y=Math.cos(m/2),v=Math.cos(g/2),b=Math.sin(u/2),_=Math.sin(m/2),x=Math.sin(g/2);return[b*_*v+d*y*x,b*y*v+d*_*x,d*_*v-b*y*x,d*y*v-b*_*x]}function n(){var f=this.comp.renderedFrame-this.offsetTime,u=this.keyframes[0].t-this.offsetTime,m=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(f===this._caching.lastFrame||this._caching.lastFrame!==t&&(this._caching.lastFrame>=m&&f>=m||this._caching.lastFrame<u&&f<u))){this._caching.lastFrame>=f&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var g=this.interpolateValue(f,this._caching);this.pv=g}return this._caching.lastFrame=f,this.pv}function s(f){var u;if(this.propType==="unidimensional")u=f*this.mult,e(this.v-u)>1e-5&&(this.v=u,this._mdf=!0);else for(var m=0,g=this.v.length;m<g;)u=f[m]*this.mult,e(this.v[m]-u)>1e-5&&(this.v[m]=u,this._mdf=!0),m+=1}function o(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var f;this.lock=!0,this._mdf=this._isFirstFrame;var u=this.effectsSequence.length,m=this.kf?this.pv:this.data.k;for(f=0;f<u;f+=1)m=this.effectsSequence[f](m);this.setVValue(m),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function a(f){this.effectsSequence.push(f),this.container.addDynamicProperty(this)}function l(f,u,m,g){this.propType="unidimensional",this.mult=m||1,this.data=u,this.v=m?u.k*m:u.k,this.pv=u.k,this._mdf=!1,this.elem=f,this.container=g,this.comp=f.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=o,this.setVValue=s,this.addEffect=a}function h(f,u,m,g){var d;this.propType="multidimensional",this.mult=m||1,this.data=u,this._mdf=!1,this.elem=f,this.container=g,this.comp=f.comp,this.k=!1,this.kf=!1,this.frameId=-1;var y=u.k.length;for(this.v=createTypedArray("float32",y),this.pv=createTypedArray("float32",y),this.vel=createTypedArray("float32",y),d=0;d<y;d+=1)this.v[d]=u.k[d]*this.mult,this.pv[d]=u.k[d];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=o,this.setVValue=s,this.addEffect=a}function c(f,u,m,g){this.propType="unidimensional",this.keyframes=u.k,this.keyframesMetadata=[],this.offsetTime=f.data.st,this.frameId=-1,this._caching={lastFrame:t,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=u,this.mult=m||1,this.elem=f,this.container=g,this.comp=f.comp,this.v=t,this.pv=t,this._isFirstFrame=!0,this.getValue=o,this.setVValue=s,this.interpolateValue=r,this.effectsSequence=[n.bind(this)],this.addEffect=a}function p(f,u,m,g){var d;this.propType="multidimensional";var y,v,b,_,x=u.k.length;for(d=0;d<x-1;d+=1)u.k[d].to&&u.k[d].s&&u.k[d+1]&&u.k[d+1].s&&(y=u.k[d].s,v=u.k[d+1].s,b=u.k[d].to,_=u.k[d].ti,(y.length===2&&(y[0]!==v[0]||y[1]!==v[1])&&bez.pointOnLine2D(y[0],y[1],v[0],v[1],y[0]+b[0],y[1]+b[1])&&bez.pointOnLine2D(y[0],y[1],v[0],v[1],v[0]+_[0],v[1]+_[1])||y.length===3&&(y[0]!==v[0]||y[1]!==v[1]||y[2]!==v[2])&&bez.pointOnLine3D(y[0],y[1],y[2],v[0],v[1],v[2],y[0]+b[0],y[1]+b[1],y[2]+b[2])&&bez.pointOnLine3D(y[0],y[1],y[2],v[0],v[1],v[2],v[0]+_[0],v[1]+_[1],v[2]+_[2]))&&(u.k[d].to=null,u.k[d].ti=null),y[0]===v[0]&&y[1]===v[1]&&b[0]===0&&b[1]===0&&_[0]===0&&_[1]===0&&(y.length===2||y[2]===v[2]&&b[2]===0&&_[2]===0)&&(u.k[d].to=null,u.k[d].ti=null));this.effectsSequence=[n.bind(this)],this.data=u,this.keyframes=u.k,this.keyframesMetadata=[],this.offsetTime=f.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=m||1,this.elem=f,this.container=g,this.comp=f.comp,this.getValue=o,this.setVValue=s,this.interpolateValue=r,this.frameId=-1;var M=u.k[0].s.length;for(this.v=createTypedArray("float32",M),this.pv=createTypedArray("float32",M),d=0;d<M;d+=1)this.v[d]=t,this.pv[d]=t;this._caching={lastFrame:t,lastIndex:0,value:createTypedArray("float32",M)},this.addEffect=a}return{getProp:function(f,u,m,g,d){var y;if(u.k.length)if(typeof u.k[0]=="number")y=new h(f,u,g,d);else switch(m){case 0:y=new c(f,u,g,d);break;case 1:y=new p(f,u,g,d)}else y=new l(f,u,g,d);return y.effectsSequence.length&&d.addDynamicProperty(y),y}}}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(t){this.dynamicProperties.indexOf(t)===-1&&(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 r=0;r<e;)this.v[r]=pointPool.newElement(),this.o[r]=pointPool.newElement(),this.i[r]=pointPool.newElement(),r+=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,r,i,n){var s;switch(this._length=Math.max(this._length,i+1),this._length>=this._maxLength&&this.doubleArrayLength(),r){case"v":s=this.v;break;case"i":s=this.i;break;case"o":s=this.o;break;default:s=[]}(!s[i]||s[i]&&!n)&&(s[i]=pointPool.newElement()),s[i][0]=t,s[i][1]=e},ShapePath.prototype.setTripleAt=function(t,e,r,i,n,s,o,a){this.setXYAt(t,e,"v",o,a),this.setXYAt(r,i,"o",o,a),this.setXYAt(n,s,"i",o,a)},ShapePath.prototype.reverse=function(){var t=new ShapePath;t.setPathData(this.c,this._length);var e=this.v,r=this.o,i=this.i,n=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],i[0][0],i[0][1],r[0][0],r[0][1],0,!1),n=1);var s,o=this._length-1,a=this._length;for(s=n;s<a;s+=1)t.setTripleAt(e[o][0],e[o][1],i[o][0],i[o][1],r[o][0],r[o][1],s,!1),o-=1;return t},ShapePath.prototype.length=function(){return this._length};var shapePool=(factory=poolFactory(4,function(){return new ShapePath},function(t){var e,r=t._length;for(e=0;e<r;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,r=factory.newElement(),i=t._length===void 0?t.v.length:t._length;for(r.setLength(i),r.c=t.c,e=0;e<i;e+=1)r.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 r},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,r=t._length;for(e=0;e<r;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(){function t(f,u,m){var g,d,y,v,b,_,x,M,S,w=m.lastIndex,D=this.keyframes;if(f<D[0].t-this.offsetTime)g=D[0].s[0],y=!0,w=0;else if(f>=D[D.length-1].t-this.offsetTime)g=D[D.length-1].s?D[D.length-1].s[0]:D[D.length-2].e[0],y=!0;else{for(var E,T,k,A=w,P=D.length-1,I=!0;I&&(E=D[A],!((T=D[A+1]).t-this.offsetTime>f));)A<P-1?A+=1:I=!1;if(k=this.keyframesMetadata[A]||{},w=A,!(y=E.h===1)){if(f>=T.t-this.offsetTime)M=1;else if(f<E.t-this.offsetTime)M=0;else{var O;k.__fnct?O=k.__fnct:(O=BezierFactory.getBezierEasing(E.o.x,E.o.y,E.i.x,E.i.y).get,k.__fnct=O),M=O((f-(E.t-this.offsetTime))/(T.t-this.offsetTime-(E.t-this.offsetTime)))}d=T.s?T.s[0]:E.e[0]}g=E.s[0]}for(_=u._length,x=g.i[0].length,m.lastIndex=w,v=0;v<_;v+=1)for(b=0;b<x;b+=1)S=y?g.i[v][b]:g.i[v][b]+(d.i[v][b]-g.i[v][b])*M,u.i[v][b]=S,S=y?g.o[v][b]:g.o[v][b]+(d.o[v][b]-g.o[v][b])*M,u.o[v][b]=S,S=y?g.v[v][b]:g.v[v][b]+(d.v[v][b]-g.v[v][b])*M,u.v[v][b]=S}function e(){var f=this.comp.renderedFrame-this.offsetTime,u=this.keyframes[0].t-this.offsetTime,m=this.keyframes[this.keyframes.length-1].t-this.offsetTime,g=this._caching.lastFrame;return g!==-999999&&(g<u&&f<u||g>m&&f>m)||(this._caching.lastIndex=g<f?this._caching.lastIndex:0,this.interpolateShape(f,this.pv,this._caching)),this._caching.lastFrame=f,this.pv}function r(){this.paths=this.localShapeCollection}function i(f){(function(u,m){if(u._length!==m._length||u.c!==m.c)return!1;var g,d=u._length;for(g=0;g<d;g+=1)if(u.v[g][0]!==m.v[g][0]||u.v[g][1]!==m.v[g][1]||u.o[g][0]!==m.o[g][0]||u.o[g][1]!==m.o[g][1]||u.i[g][0]!==m.i[g][0]||u.i[g][1]!==m.i[g][1])return!1;return!0})(this.v,f)||(this.v=shapePool.clone(f),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function n(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var f,u;this.lock=!0,this._mdf=!1,f=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var m=this.effectsSequence.length;for(u=0;u<m;u+=1)f=this.effectsSequence[u](f);this.setVValue(f),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function s(f,u,m){this.propType="shape",this.comp=f.comp,this.container=f,this.elem=f,this.data=u,this.k=!1,this.kf=!1,this._mdf=!1;var g=m===3?u.pt.k:u.ks.k;this.v=shapePool.clone(g),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(f){this.effectsSequence.push(f),this.container.addDynamicProperty(this)}function a(f,u,m){this.propType="shape",this.comp=f.comp,this.elem=f,this.container=f,this.offsetTime=f.data.st,this.keyframes=m===3?u.pt.k:u.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var g=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,g),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=-999999,this.reset=r,this._caching={lastFrame:-999999,lastIndex:0},this.effectsSequence=[e.bind(this)]}s.prototype.interpolateShape=t,s.prototype.getValue=n,s.prototype.setVValue=i,s.prototype.addEffect=o,a.prototype.getValue=n,a.prototype.interpolateShape=t,a.prototype.setVValue=i,a.prototype.addEffect=o;var l=function(){var f=roundCorner;function u(m,g){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=g.d,this.elem=m,this.comp=m.comp,this.frameId=-1,this.initDynamicPropertyContainer(m),this.p=PropertyFactory.getProp(m,g.p,1,0,this),this.s=PropertyFactory.getProp(m,g.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return u.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 m=this.p.v[0],g=this.p.v[1],d=this.s.v[0]/2,y=this.s.v[1]/2,v=this.d!==3,b=this.v;b.v[0][0]=m,b.v[0][1]=g-y,b.v[1][0]=v?m+d:m-d,b.v[1][1]=g,b.v[2][0]=m,b.v[2][1]=g+y,b.v[3][0]=v?m-d:m+d,b.v[3][1]=g,b.i[0][0]=v?m-d*f:m+d*f,b.i[0][1]=g-y,b.i[1][0]=v?m+d:m-d,b.i[1][1]=g-y*f,b.i[2][0]=v?m+d*f:m-d*f,b.i[2][1]=g+y,b.i[3][0]=v?m-d:m+d,b.i[3][1]=g+y*f,b.o[0][0]=v?m+d*f:m-d*f,b.o[0][1]=g-y,b.o[1][0]=v?m+d:m-d,b.o[1][1]=g+y*f,b.o[2][0]=v?m-d*f:m+d*f,b.o[2][1]=g+y,b.o[3][0]=v?m-d:m+d,b.o[3][1]=g-y*f}},extendPrototype([DynamicPropertyContainer],u),u}(),h=function(){function f(u,m){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=u,this.comp=u.comp,this.data=m,this.frameId=-1,this.d=m.d,this.initDynamicPropertyContainer(u),m.sy===1?(this.ir=PropertyFactory.getProp(u,m.ir,0,0,this),this.is=PropertyFactory.getProp(u,m.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(u,m.pt,0,0,this),this.p=PropertyFactory.getProp(u,m.p,1,0,this),this.r=PropertyFactory.getProp(u,m.r,0,degToRads,this),this.or=PropertyFactory.getProp(u,m.or,0,0,this),this.os=PropertyFactory.getProp(u,m.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 f.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 u,m,g,d,y=2*Math.floor(this.pt.v),v=2*Math.PI/y,b=!0,_=this.or.v,x=this.ir.v,M=this.os.v,S=this.is.v,w=2*Math.PI*_/(2*y),D=2*Math.PI*x/(2*y),E=-Math.PI/2;E+=this.r.v;var T=this.data.d===3?-1:1;for(this.v._length=0,u=0;u<y;u+=1){g=b?M:S,d=b?w:D;var k=(m=b?_:x)*Math.cos(E),A=m*Math.sin(E),P=k===0&&A===0?0:A/Math.sqrt(k*k+A*A),I=k===0&&A===0?0:-k/Math.sqrt(k*k+A*A);k+=+this.p.v[0],A+=+this.p.v[1],this.v.setTripleAt(k,A,k-P*d*g*T,A-I*d*g*T,k+P*d*g*T,A+I*d*g*T,u,!0),b=!b,E+=v*T}},convertPolygonToPath:function(){var u,m=Math.floor(this.pt.v),g=2*Math.PI/m,d=this.or.v,y=this.os.v,v=2*Math.PI*d/(4*m),b=.5*-Math.PI,_=this.data.d===3?-1:1;for(b+=this.r.v,this.v._length=0,u=0;u<m;u+=1){var x=d*Math.cos(b),M=d*Math.sin(b),S=x===0&&M===0?0:M/Math.sqrt(x*x+M*M),w=x===0&&M===0?0:-x/Math.sqrt(x*x+M*M);x+=+this.p.v[0],M+=+this.p.v[1],this.v.setTripleAt(x,M,x-S*v*y*_,M-w*v*y*_,x+S*v*y*_,M+w*v*y*_,u,!0),b+=g*_}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],f),f}(),c=function(){function f(u,m){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=u,this.comp=u.comp,this.frameId=-1,this.d=m.d,this.initDynamicPropertyContainer(u),this.p=PropertyFactory.getProp(u,m.p,1,0,this),this.s=PropertyFactory.getProp(u,m.s,1,0,this),this.r=PropertyFactory.getProp(u,m.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return f.prototype={convertRectToPath:function(){var u=this.p.v[0],m=this.p.v[1],g=this.s.v[0]/2,d=this.s.v[1]/2,y=bmMin(g,d,this.r.v),v=y*(1-roundCorner);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(u+g,m-d+y,u+g,m-d+y,u+g,m-d+v,0,!0),this.v.setTripleAt(u+g,m+d-y,u+g,m+d-v,u+g,m+d-y,1,!0),y!==0?(this.v.setTripleAt(u+g-y,m+d,u+g-y,m+d,u+g-v,m+d,2,!0),this.v.setTripleAt(u-g+y,m+d,u-g+v,m+d,u-g+y,m+d,3,!0),this.v.setTripleAt(u-g,m+d-y,u-g,m+d-y,u-g,m+d-v,4,!0),this.v.setTripleAt(u-g,m-d+y,u-g,m-d+v,u-g,m-d+y,5,!0),this.v.setTripleAt(u-g+y,m-d,u-g+y,m-d,u-g+v,m-d,6,!0),this.v.setTripleAt(u+g-y,m-d,u+g-v,m-d,u+g-y,m-d,7,!0)):(this.v.setTripleAt(u-g,m+d,u-g+v,m+d,u-g,m+d,2),this.v.setTripleAt(u-g,m-d,u-g,m-d+v,u-g,m-d,3))):(this.v.setTripleAt(u+g,m-d+y,u+g,m-d+v,u+g,m-d+y,0,!0),y!==0?(this.v.setTripleAt(u+g-y,m-d,u+g-y,m-d,u+g-v,m-d,1,!0),this.v.setTripleAt(u-g+y,m-d,u-g+v,m-d,u-g+y,m-d,2,!0),this.v.setTripleAt(u-g,m-d+y,u-g,m-d+y,u-g,m-d+v,3,!0),this.v.setTripleAt(u-g,m+d-y,u-g,m+d-v,u-g,m+d-y,4,!0),this.v.setTripleAt(u-g+y,m+d,u-g+y,m+d,u-g+v,m+d,5,!0),this.v.setTripleAt(u+g-y,m+d,u+g-v,m+d,u+g-y,m+d,6,!0),this.v.setTripleAt(u+g,m+d-y,u+g,m+d-y,u+g,m+d-v,7,!0)):(this.v.setTripleAt(u-g,m-d,u-g+v,m-d,u-g,m-d,1,!0),this.v.setTripleAt(u-g,m+d,u-g,m+d-v,u-g,m+d,2,!0),this.v.setTripleAt(u+g,m+d,u+g-v,m+d,u+g,m+d,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],f),f}(),p={getShapeProp:function(f,u,m){var g;return m===3||m===4?g=(m===3?u.pt:u.ks).k.length?new a(f,u,m):new s(f,u,m):m===5?g=new c(f,u):m===6?g=new l(f,u):m===7&&(g=new h(f,u)),g.k&&f.addDynamicProperty(g),g},getConstructorFunction:function(){return s},getKeyframedConstructorFunction:function(){return a}};return p}(),Matrix=function(){var t=Math.cos,e=Math.sin,r=Math.tan,i=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(F){if(F===0)return this;var C=t(F),L=e(F);return this._t(C,-L,0,0,L,C,0,0,0,0,1,0,0,0,0,1)}function o(F){if(F===0)return this;var C=t(F),L=e(F);return this._t(1,0,0,0,0,C,-L,0,0,L,C,0,0,0,0,1)}function a(F){if(F===0)return this;var C=t(F),L=e(F);return this._t(C,0,L,0,0,1,0,0,-L,0,C,0,0,0,0,1)}function l(F){if(F===0)return this;var C=t(F),L=e(F);return this._t(C,-L,0,0,L,C,0,0,0,0,1,0,0,0,0,1)}function h(F,C){return this._t(1,C,F,1,0,0)}function c(F,C){return this.shear(r(F),r(C))}function p(F,C){var L=t(C),R=e(C);return this._t(L,R,0,0,-R,L,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,r(F),1,0,0,0,0,1,0,0,0,0,1)._t(L,-R,0,0,R,L,0,0,0,0,1,0,0,0,0,1)}function f(F,C,L){return L||L===0||(L=1),F===1&&C===1&&L===1?this:this._t(F,0,0,0,0,C,0,0,0,0,L,0,0,0,0,1)}function u(F,C,L,R,z,H,G,N,Y,J,K,Z,pt,et,vt,ut){return this.props[0]=F,this.props[1]=C,this.props[2]=L,this.props[3]=R,this.props[4]=z,this.props[5]=H,this.props[6]=G,this.props[7]=N,this.props[8]=Y,this.props[9]=J,this.props[10]=K,this.props[11]=Z,this.props[12]=pt,this.props[13]=et,this.props[14]=vt,this.props[15]=ut,this}function m(F,C,L){return L=L||0,F!==0||C!==0||L!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,F,C,L,1):this}function g(F,C,L,R,z,H,G,N,Y,J,K,Z,pt,et,vt,ut){var j=this.props;if(F===1&&C===0&&L===0&&R===0&&z===0&&H===1&&G===0&&N===0&&Y===0&&J===0&&K===1&&Z===0)return j[12]=j[12]*F+j[15]*pt,j[13]=j[13]*H+j[15]*et,j[14]=j[14]*K+j[15]*vt,j[15]*=ut,this._identityCalculated=!1,this;var Ft=j[0],ae=j[1],le=j[2],qt=j[3],Kt=j[4],Ut=j[5],St=j[6],Jt=j[7],Qt=j[8],ge=j[9],Ze=j[10],ye=j[11],hr=j[12],mn=j[13],gn=j[14],yn=j[15];return j[0]=Ft*F+ae*z+le*Y+qt*pt,j[1]=Ft*C+ae*H+le*J+qt*et,j[2]=Ft*L+ae*G+le*K+qt*vt,j[3]=Ft*R+ae*N+le*Z+qt*ut,j[4]=Kt*F+Ut*z+St*Y+Jt*pt,j[5]=Kt*C+Ut*H+St*J+Jt*et,j[6]=Kt*L+Ut*G+St*K+Jt*vt,j[7]=Kt*R+Ut*N+St*Z+Jt*ut,j[8]=Qt*F+ge*z+Ze*Y+ye*pt,j[9]=Qt*C+ge*H+Ze*J+ye*et,j[10]=Qt*L+ge*G+Ze*K+ye*vt,j[11]=Qt*R+ge*N+Ze*Z+ye*ut,j[12]=hr*F+mn*z+gn*Y+yn*pt,j[13]=hr*C+mn*H+gn*J+yn*et,j[14]=hr*L+mn*G+gn*K+yn*vt,j[15]=hr*R+mn*N+gn*Z+yn*ut,this._identityCalculated=!1,this}function d(){return this._identityCalculated||(this._identity=!(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._identityCalculated=!0),this._identity}function y(F){for(var C=0;C<16;){if(F.props[C]!==this.props[C])return!1;C+=1}return!0}function v(F){var C;for(C=0;C<16;C+=1)F.props[C]=this.props[C];return F}function b(F){var C;for(C=0;C<16;C+=1)this.props[C]=F[C]}function _(F,C,L){return{x:F*this.props[0]+C*this.props[4]+L*this.props[8]+this.props[12],y:F*this.props[1]+C*this.props[5]+L*this.props[9]+this.props[13],z:F*this.props[2]+C*this.props[6]+L*this.props[10]+this.props[14]}}function x(F,C,L){return F*this.props[0]+C*this.props[4]+L*this.props[8]+this.props[12]}function M(F,C,L){return F*this.props[1]+C*this.props[5]+L*this.props[9]+this.props[13]}function S(F,C,L){return F*this.props[2]+C*this.props[6]+L*this.props[10]+this.props[14]}function w(){var F=this.props[0]*this.props[5]-this.props[1]*this.props[4],C=this.props[5]/F,L=-this.props[1]/F,R=-this.props[4]/F,z=this.props[0]/F,H=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/F,G=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/F,N=new Matrix;return N.props[0]=C,N.props[1]=L,N.props[4]=R,N.props[5]=z,N.props[12]=H,N.props[13]=G,N}function D(F){return this.getInverseMatrix().applyToPointArray(F[0],F[1],F[2]||0)}function E(F){var C,L=F.length,R=[];for(C=0;C<L;C+=1)R[C]=D(F[C]);return R}function T(F,C,L){var R=createTypedArray("float32",6);if(this.isIdentity())R[0]=F[0],R[1]=F[1],R[2]=C[0],R[3]=C[1],R[4]=L[0],R[5]=L[1];else{var z=this.props[0],H=this.props[1],G=this.props[4],N=this.props[5],Y=this.props[12],J=this.props[13];R[0]=F[0]*z+F[1]*G+Y,R[1]=F[0]*H+F[1]*N+J,R[2]=C[0]*z+C[1]*G+Y,R[3]=C[0]*H+C[1]*N+J,R[4]=L[0]*z+L[1]*G+Y,R[5]=L[0]*H+L[1]*N+J}return R}function k(F,C,L){return this.isIdentity()?[F,C,L]:[F*this.props[0]+C*this.props[4]+L*this.props[8]+this.props[12],F*this.props[1]+C*this.props[5]+L*this.props[9]+this.props[13],F*this.props[2]+C*this.props[6]+L*this.props[10]+this.props[14]]}function A(F,C){if(this.isIdentity())return F+","+C;var L=this.props;return Math.round(100*(F*L[0]+C*L[4]+L[12]))/100+","+Math.round(100*(F*L[1]+C*L[5]+L[13]))/100}function P(){for(var F=0,C=this.props,L="matrix3d(";F<16;)L+=i(1e4*C[F])/1e4,L+=F===15?")":",",F+=1;return L}function I(F){return F<1e-6&&F>0||F>-1e-6&&F<0?i(1e4*F)/1e4:F}function O(){var F=this.props;return"matrix("+I(F[0])+","+I(F[1])+","+I(F[4])+","+I(F[5])+","+I(F[12])+","+I(F[13])+")"}return function(){this.reset=n,this.rotate=s,this.rotateX=o,this.rotateY=a,this.rotateZ=l,this.skew=c,this.skewFromAxis=p,this.shear=h,this.scale=f,this.setTransform=u,this.translate=m,this.transform=g,this.applyToPoint=_,this.applyToX=x,this.applyToY=M,this.applyToZ=S,this.applyToPointArray=k,this.applyToTriplePoints=T,this.applyToPointStringified=A,this.toCSS=P,this.to2dCSS=O,this.clone=v,this.cloneFromProps=b,this.equals=y,this.inversePoints=E,this.inversePoint=D,this.getInverseMatrix=w,this._t=this.transform,this.isIdentity=d,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(t){return(_typeof$3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}var lottie={},standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="";function setLocation(t){setLocationHref(t)}function searchAnimations(){standalone===!0?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function setSubframeRendering(t){setSubframeEnabled(t)}function setPrefix(t){setIdPrefix(t)}function loadAnimation(t){return standalone===!0&&(t.animationData=JSON.parse(animationData)),animationManager.loadAnimation(t)}function setQuality(t){if(typeof t=="string")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 typeof navigator<"u"}function installPlugin(t,e){t==="expressions"&&setExpressionsPlugin(e)}function getFactory(t){switch(t){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){document.readyState==="complete"&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(t){for(var e=queryString.split("&"),r=0;r<e.length;r+=1){var i=e[r].split("=");if(decodeURIComponent(i[0])==t)return decodeURIComponent(i[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.10.0";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{_typeof$3(exports)!=="object"&&(window.bodymovin=lottie)}catch(t){}var ShapeModifiers=function(){var t={},e={};return t.registerModifier=function(r,i){e[r]||(e[r]=i)},t.getModifier=function(r,i,n){return new e[r](i,n)},t}();function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(t){if(!this.closed){t.sh.container.addDynamicProperty(t.sh);var e={shape:t.sh,data:t,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(e),this.addShapeToModifier(e),this._isAnimated&&t.setAsAnimated()}},ShapeModifier.prototype.init=function(t,e){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier),extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(t,e){this.s=PropertyFactory.getProp(t,e.s,0,.01,this),this.e=PropertyFactory.getProp(t,e.e,0,.01,this),this.o=PropertyFactory.getProp(t,e.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=e.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(t){t.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(t,e,r,i,n){var s=[];e<=1?s.push({s:t,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 o,a,l=[],h=s.length;for(o=0;o<h;o+=1){var c,p;(a=s[o]).e*n<i||a.s*n>i+r||(c=a.s*n<=i?0:(a.s*n-i)/r,p=a.e*n>=i+r?1:(a.e*n-i)/r,l.push([c,p]))}return l.length||l.push([0,0]),l},TrimModifier.prototype.releasePathsData=function(t){var e,r=t.length;for(e=0;e<r;e+=1)segmentsLengthPool.release(t[e]);return t.length=0,t},TrimModifier.prototype.processShapes=function(t){var e,r,i,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)>(r=this.e.v>1?1+s:this.e.v<0?0+s:this.e.v+s)){var o=e;e=r,r=o}e=1e-4*Math.round(1e4*e),r=1e-4*Math.round(1e4*r),this.sValue=e,this.eValue=r}else e=this.sValue,r=this.eValue;var a,l,h,c,p,f=this.shapes.length,u=0;if(r===e)for(n=0;n<f;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(r===1&&e===0||r===0&&e===1){if(this._mdf)for(n=0;n<f;n+=1)this.shapes[n].pathsData.length=0,this.shapes[n].shape._mdf=!0}else{var m,g,d=[];for(n=0;n<f;n+=1)if((m=this.shapes[n]).shape._mdf||this._mdf||t||this.m===2){if(l=(i=m.shape.paths)._length,p=0,!m.shape._mdf&&m.pathsData.length)p=m.totalShapeLength;else{for(h=this.releasePathsData(m.pathsData),a=0;a<l;a+=1)c=bez.getSegmentsLength(i.shapes[a]),h.push(c),p+=c.totalLength;m.totalShapeLength=p,m.pathsData=h}u+=p,m.shape._mdf=!0}else m.shape.paths=m.localShapeCollection;var y,v=e,b=r,_=0;for(n=f-1;n>=0;n-=1)if((m=this.shapes[n]).shape._mdf){for((g=m.localShapeCollection).releaseShapes(),this.m===2&&f>1?(y=this.calculateShapeEdges(e,r,m.totalShapeLength,_,u),_+=m.totalShapeLength):y=[[v,b]],l=y.length,a=0;a<l;a+=1){v=y[a][0],b=y[a][1],d.length=0,b<=1?d.push({s:m.totalShapeLength*v,e:m.totalShapeLength*b}):v>=1?d.push({s:m.totalShapeLength*(v-1),e:m.totalShapeLength*(b-1)}):(d.push({s:m.totalShapeLength*v,e:m.totalShapeLength}),d.push({s:0,e:m.totalShapeLength*(b-1)}));var x=this.addShapes(m,d[0]);if(d[0].s!==d[0].e){if(d.length>1)if(m.shape.paths.shapes[m.shape.paths._length-1].c){var M=x.pop();this.addPaths(x,g),x=this.addShapes(m,d[1],M)}else this.addPaths(x,g),x=this.addShapes(m,d[1]);this.addPaths(x,g)}}m.shape.paths=g}}},TrimModifier.prototype.addPaths=function(t,e){var r,i=t.length;for(r=0;r<i;r+=1)e.addShape(t[r])},TrimModifier.prototype.addSegment=function(t,e,r,i,n,s,o){n.setXYAt(e[0],e[1],"o",s),n.setXYAt(r[0],r[1],"i",s+1),o&&n.setXYAt(t[0],t[1],"v",s),n.setXYAt(i[0],i[1],"v",s+1)},TrimModifier.prototype.addSegmentFromArray=function(t,e,r,i){e.setXYAt(t[1],t[5],"o",r),e.setXYAt(t[2],t[6],"i",r+1),i&&e.setXYAt(t[0],t[4],"v",r),e.setXYAt(t[3],t[7],"v",r+1)},TrimModifier.prototype.addShapes=function(t,e,r){var i,n,s,o,a,l,h,c,p=t.pathsData,f=t.shape.paths.shapes,u=t.shape.paths._length,m=0,g=[],d=!0;for(r?(a=r._length,c=r._length):(r=shapePool.newElement(),a=0,c=0),g.push(r),i=0;i<u;i+=1){for(l=p[i].lengths,r.c=f[i].c,s=f[i].c?l.length:l.length+1,n=1;n<s;n+=1)if(m+(o=l[n-1]).addedLength<e.s)m+=o.addedLength,r.c=!1;else{if(m>e.e){r.c=!1;break}e.s<=m&&e.e>=m+o.addedLength?(this.addSegment(f[i].v[n-1],f[i].o[n-1],f[i].i[n],f[i].v[n],r,a,d),d=!1):(h=bez.getNewSegment(f[i].v[n-1],f[i].v[n],f[i].o[n-1],f[i].i[n],(e.s-m)/o.addedLength,(e.e-m)/o.addedLength,l[n-1]),this.addSegmentFromArray(h,r,a,d),d=!1,r.c=!1),m+=o.addedLength,a+=1}if(f[i].c&&l.length){if(o=l[n-1],m<=e.e){var y=l[n-1].addedLength;e.s<=m&&e.e>=m+y?(this.addSegment(f[i].v[n-1],f[i].o[n-1],f[i].i[0],f[i].v[0],r,a,d),d=!1):(h=bez.getNewSegment(f[i].v[n-1],f[i].v[0],f[i].o[n-1],f[i].i[0],(e.s-m)/y,(e.e-m)/y,l[n-1]),this.addSegmentFromArray(h,r,a,d),d=!1,r.c=!1)}else r.c=!1;m+=o.addedLength,a+=1}if(r._length&&(r.setXYAt(r.v[c][0],r.v[c][1],"i",c),r.setXYAt(r.v[r._length-1][0],r.v[r._length-1][1],"o",r._length-1)),m>e.e)break;i<u-1&&(r=shapePool.newElement(),d=!0,g.push(r),a=0)}return g},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 r=e/100,i=[0,0],n=t._length,s=0;for(s=0;s<n;s+=1)i[0]+=t.v[s][0],i[1]+=t.v[s][1];i[0]/=n,i[1]/=n;var o,a,l,h,c,p,f=shapePool.newElement();for(f.c=t.c,s=0;s<n;s+=1)o=t.v[s][0]+(i[0]-t.v[s][0])*r,a=t.v[s][1]+(i[1]-t.v[s][1])*r,l=t.o[s][0]+(i[0]-t.o[s][0])*-r,h=t.o[s][1]+(i[1]-t.o[s][1])*-r,c=t.i[s][0]+(i[0]-t.i[s][0])*-r,p=t.i[s][1]+(i[1]-t.i[s][1])*-r,f.setTripleAt(o,a,l,h,c,p,s);return f},PuckerAndBloatModifier.prototype.processShapes=function(t){var e,r,i,n,s,o,a=this.shapes.length,l=this.amount.v;if(l!==0)for(r=0;r<a;r+=1){if(o=(s=this.shapes[r]).localShapeCollection,s.shape._mdf||this._mdf||t)for(o.releaseShapes(),s.shape._mdf=!0,e=s.shape.paths.shapes,n=s.shape.paths._length,i=0;i<n;i+=1)o.addShape(this.processPath(e[i],l));s.shape.paths=s.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var t=[0,0];function e(r,i,n){if(this.elem=r,this.frameId=-1,this.propType="transform",this.data=i,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(n||r),i.p&&i.p.s?(this.px=PropertyFactory.getProp(r,i.p.x,0,0,this),this.py=PropertyFactory.getProp(r,i.p.y,0,0,this),i.p.z&&(this.pz=PropertyFactory.getProp(r,i.p.z,0,0,this))):this.p=PropertyFactory.getProp(r,i.p||{k:[0,0,0]},1,0,this),i.rx){if(this.rx=PropertyFactory.getProp(r,i.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(r,i.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(r,i.rz,0,degToRads,this),i.or.k[0].ti){var s,o=i.or.k.length;for(s=0;s<o;s+=1)i.or.k[s].to=null,i.or.k[s].ti=null}this.or=PropertyFactory.getProp(r,i.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(r,i.r||{k:0},0,degToRads,this);i.sk&&(this.sk=PropertyFactory.getProp(r,i.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(r,i.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(r,i.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(r,i.s||{k:[100,100,100]},1,.01,this),i.o?this.o=PropertyFactory.getProp(r,i.o,0,.01,r):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return e.prototype={applyToMatrix:function(r){var i=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||i,this.a&&r.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&r.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&r.skewFromAxis(-this.sk.v,this.sa.v),this.r?r.rotate(-this.r.v):r.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?r.translate(this.px.v,this.py.v,-this.pz.v):r.translate(this.px.v,this.py.v,0):r.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(r){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||r){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 n,s;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?(n=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/i,0),s=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?(n=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/i,0),s=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/i,0)):(n=this.p.pv,s=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){n=[],s=[];var o=this.px,a=this.py;o._caching.lastFrame+o.offsetTime<=o.keyframes[0].t?(n[0]=o.getValueAtTime((o.keyframes[0].t+.01)/i,0),n[1]=a.getValueAtTime((a.keyframes[0].t+.01)/i,0),s[0]=o.getValueAtTime(o.keyframes[0].t/i,0),s[1]=a.getValueAtTime(a.keyframes[0].t/i,0)):o._caching.lastFrame+o.offsetTime>=o.keyframes[o.keyframes.length-1].t?(n[0]=o.getValueAtTime(o.keyframes[o.keyframes.length-1].t/i,0),n[1]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/i,0),s[0]=o.getValueAtTime((o.keyframes[o.keyframes.length-1].t-.01)/i,0),s[1]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/i,0)):(n=[o.pv,a.pv],s[0]=o.getValueAtTime((o._caching.lastFrame+o.offsetTime-.01)/i,o.offsetTime),s[1]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/i,a.offsetTime))}else n=s=t;this.v.rotate(-Math.atan2(n[1]-s[1],n[0]-s[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.a.k&&(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(r){this._addDynamicProperty(r),this.elem.addDynamicProperty(r),this._isDirty=!0},e.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(r,i,n){return new e(r,i,n)}}}();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,r){return t*(1-r)+e*r}function lerpPoint(t,e,r){return[lerp(t[0],e[0],r),lerp(t[1],e[1],r)]}function quadRoots(t,e,r){if(t===0)return[];var i=e*e-4*t*r;if(i<0)return[];var n=-e/(2*t);if(i===0)return[n];var s=Math.sqrt(i)/(2*t);return[n-s,n+s]}function polynomialCoefficients(t,e,r,i){return[3*e-t-3*r+i,3*t-6*e+3*r,-3*t+3*e,t]}function singlePoint(t){return new PolynomialBezier(t,t,t,t,!1)}function PolynomialBezier(t,e,r,i,n){n&&pointEqual(t,e)&&(e=lerpPoint(t,i,1/3)),n&&pointEqual(r,i)&&(r=lerpPoint(t,i,2/3));var s=polynomialCoefficients(t[0],e[0],r[0],i[0]),o=polynomialCoefficients(t[1],e[1],r[1],i[1]);this.a=[s[0],o[0]],this.b=[s[1],o[1]],this.c=[s[2],o[2]],this.d=[s[3],o[3]],this.points=[t,e,r,i]}function extrema(t,e){var r=t.points[0][e],i=t.points[t.points.length-1][e];if(r>i){var n=i;i=r,r=n}for(var s=quadRoots(3*t.a[e],2*t.b[e],t.c[e]),o=0;o<s.length;o+=1)if(s[o]>0&&s[o]<1){var a=t.point(s[o])[e];a<r?r=a:a>i&&(i=a)}return{min:r,max:i}}function intersectData(t,e,r){var i=t.boundingBox();return{cx:i.cx,cy:i.cy,width:i.width,height:i.height,bez:t,t:(e+r)/2,t1:e,t2:r}}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,r,i,n,s){if(boxIntersect(t,e))if(r>=s||t.width<=i&&t.height<=i&&e.width<=i&&e.height<=i)n.push([t.t,e.t]);else{var o=splitData(t),a=splitData(e);intersectsImpl(o[0],a[0],r+1,i,n,s),intersectsImpl(o[0],a[1],r+1,i,n,s),intersectsImpl(o[1],a[0],r+1,i,n,s),intersectsImpl(o[1],a[1],r+1,i,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,r,i){var n=[t[0],t[1],1],s=[e[0],e[1],1],o=[r[0],r[1],1],a=[i[0],i[1],1],l=crossProduct(crossProduct(n,s),crossProduct(o,a));return floatZero(l[2])?null:[l[0]/l[2],l[1]/l[2]]}function polarOffset(t,e,r){return[t[0]+Math.cos(e)*r,t[1]-Math.sin(e)*r]}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,r,i,n,s,o){var a=r-Math.PI/2,l=r+Math.PI/2,h=e[0]+Math.cos(r)*i*n,c=e[1]-Math.sin(r)*i*n;t.setTripleAt(h,c,h+Math.cos(a)*s,c-Math.sin(a)*s,h+Math.cos(l)*o,c-Math.sin(l)*o,t.length())}function getPerpendicularVector(t,e){var r=[e[0]-t[0],e[1]-t[1]],i=.5*-Math.PI;return[Math.cos(i)*r[0]-Math.sin(i)*r[1],Math.sin(i)*r[0]+Math.cos(i)*r[1]]}function getProjectingAngle(t,e){var r=e===0?t.length()-1:e-1,i=(e+1)%t.length(),n=getPerpendicularVector(t.v[r],t.v[i]);return Math.atan2(0,1)-Math.atan2(n[1],n[0])}function zigZagCorner(t,e,r,i,n,s,o){var a=getProjectingAngle(e,r),l=e.v[r%e._length],h=e.v[r===0?e._length-1:r-1],c=e.v[(r+1)%e._length],p=s===2?Math.sqrt(Math.pow(l[0]-h[0],2)+Math.pow(l[1]-h[1],2)):0,f=s===2?Math.sqrt(Math.pow(l[0]-c[0],2)+Math.pow(l[1]-c[1],2)):0;setPoint(t,e.v[r%e._length],a,o,i,f/(2*(n+1)),p/(2*(n+1)),s)}function zigZagSegment(t,e,r,i,n,s){for(var o=0;o<i;o+=1){var a=(o+1)/(i+1),l=n===2?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(a);setPoint(t,e.point(a),h,s,r,l/(2*(i+1)),l/(2*(i+1)),n),s=-s}return s}function linearOffset(t,e,r){var i=Math.atan2(e[0]-t[0],e[1]-t[1]);return[polarOffset(t,i,r),polarOffset(e,i,r)]}function offsetSegment(t,e){var r,i,n,s,o,a,l;r=(l=linearOffset(t.points[0],t.points[1],e))[0],i=l[1],n=(l=linearOffset(t.points[1],t.points[2],e))[0],s=l[1],o=(l=linearOffset(t.points[2],t.points[3],e))[0],a=l[1];var h=lineIntersection(r,i,n,s);h===null&&(h=i);var c=lineIntersection(o,a,n,s);return c===null&&(c=o),new PolynomialBezier(r,h,c,a)}function joinLines(t,e,r,i,n){var s=e.points[3],o=r.points[0];if(i===3||pointEqual(s,o))return s;if(i===2){var a=-e.tangentAngle(1),l=-r.tangentAngle(0)+Math.PI,h=lineIntersection(s,polarOffset(s,a+Math.PI/2,100),o,polarOffset(o,a+Math.PI/2,100)),c=h?pointDistance(h,s):pointDistance(s,o)/2,p=polarOffset(s,a,2*c*roundCorner);return t.setXYAt(p[0],p[1],"o",t.length()-1),p=polarOffset(o,l,2*c*roundCorner),t.setTripleAt(o[0],o[1],o[0],o[1],p[0],p[1],t.length()),o}var f=lineIntersection(pointEqual(s,e.points[2])?e.points[0]:e.points[2],s,o,pointEqual(o,r.points[1])?r.points[3]:r.points[1]);return f&&pointDistance(f,s)<n?(t.setTripleAt(f[0],f[1],f[0],f[1],f[0],f[1],t.length()),f):s}function getIntersection(t,e){var r=t.intersections(e);return r.length&&floatEqual(r[0][0],1)&&r.shift(),r.length?r[0]:null}function pruneSegmentIntersection(t,e){var r=t.slice(),i=e.slice(),n=getIntersection(t[t.length-1],e[0]);return n&&(r[t.length-1]=t[t.length-1].split(n[0])[0],i[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]]]:[r,i]}function pruneIntersections(t){for(var e,r=1;r<t.length;r+=1)e=pruneSegmentIntersection(t[r-1],t[r]),t[r-1]=e[0],t[r]=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 r,i,n,s,o=t.inflectionPoints();if(o.length===0)return[offsetSegment(t,e)];if(o.length===1||floatEqual(o[1],1))return r=(n=t.split(o[0]))[0],i=n[1],[offsetSegment(r,e),offsetSegment(i,e)];r=(n=t.split(o[0]))[0];var a=(o[1]-o[0])/(1-o[0]);return s=(n=n[1].split(a))[0],i=n[1],[offsetSegment(r,e),offsetSegment(s,e),offsetSegment(i,e)]}function OffsetPathModifier(){}function getFontProperties(t){for(var e=t.fStyle?t.fStyle.split(" "):[],r="normal",i="normal",n=e.length,s=0;s<n;s+=1)switch(e[s].toLowerCase()){case"italic":i="italic";break;case"bold":r="700";break;case"black":r="900";break;case"medium":r="500";break;case"regular":case"normal":r="400";break;case"light":case"thin":r="200"}return{style:i,weight:t.fWeight||r}}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,r,i,n,s){var o=s?-1:1,a=i.s.v[0]+(1-i.s.v[0])*(1-n),l=i.s.v[1]+(1-i.s.v[1])*(1-n);t.translate(i.p.v[0]*o*n,i.p.v[1]*o*n,i.p.v[2]),e.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),e.rotate(-i.r.v*o*n),e.translate(i.a.v[0],i.a.v[1],i.a.v[2]),r.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),r.scale(s?1/a:a,s?1/l:l),r.translate(i.a.v[0],i.a.v[1],i.a.v[2])},RepeaterModifier.prototype.init=function(t,e,r,i){for(this.elem=t,this.arr=e,this.pos=r,this.elemsData=i,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e[r]);r>0;)r-=1,this._elements.unshift(e[r]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(t){var e,r=t.length;for(e=0;e<r;e+=1)t[e]._processed=!1,t[e].ty==="gr"&&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 r,i=t.length;for(r=0;r<i;r+=1)t[r]._render=e,t[r].ty==="gr"&&this.changeGroupRender(t[r].it,e)},RepeaterModifier.prototype.processShapes=function(t){var e,r,i,n,s,o=!1;if(this._mdf||t){var a,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(),o=!0}for(s=0,i=0;i<=this._groups.length-1;i+=1){if(a=s<l,this._groups[i]._render=a,this.changeGroupRender(this._groups[i].it,a),!a){var c=this.elemsData[i].it,p=c[c.length-1];p.transform.op.v!==0?(p.transform.op._mdf=!0,p.transform.op.v=0):p.transform.op._mdf=!1}s+=1}this._currentCopies=l;var f=this.o.v,u=f%1,m=f>0?Math.floor(f):Math.ceil(f),g=this.pMatrix.props,d=this.rMatrix.props,y=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var v,b,_=0;if(f>0){for(;_<m;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),_+=1;u&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,u,!1),_+=u)}else if(f<0){for(;_>m;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),_-=1;u&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-u,!0),_-=u)}for(i=this.data.m===1?0:this._currentCopies-1,n=this.data.m===1?1:-1,s=this._currentCopies;s;){if(b=(r=(e=this.elemsData[i].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=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(i/(this._currentCopies-1)),_!==0){for((i!==0&&n===1||i!==this._currentCopies-1&&n===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(d[0],d[1],d[2],d[3],d[4],d[5],d[6],d[7],d[8],d[9],d[10],d[11],d[12],d[13],d[14],d[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(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]),v=0;v<b;v+=1)r[v]=this.matrix.props[v];this.matrix.reset()}else for(this.matrix.reset(),v=0;v<b;v+=1)r[v]=this.matrix.props[v];_+=1,s-=1,i+=n}}else for(s=this._currentCopies,i=0,n=1;s;)r=(e=this.elemsData[i].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,i+=n;return o},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 r,i=shapePool.newElement();i.c=t.c;var n,s,o,a,l,h,c,p,f,u,m,g,d=t._length,y=0;for(r=0;r<d;r+=1)n=t.v[r],o=t.o[r],s=t.i[r],n[0]===o[0]&&n[1]===o[1]&&n[0]===s[0]&&n[1]===s[1]?r!==0&&r!==d-1||t.c?(a=r===0?t.v[d-1]:t.v[r-1],h=(l=Math.sqrt(Math.pow(n[0]-a[0],2)+Math.pow(n[1]-a[1],2)))?Math.min(l/2,e)/l:0,c=m=n[0]+(a[0]-n[0])*h,p=g=n[1]-(n[1]-a[1])*h,f=c-(c-n[0])*roundCorner,u=p-(p-n[1])*roundCorner,i.setTripleAt(c,p,f,u,m,g,y),y+=1,a=r===d-1?t.v[0]:t.v[r+1],h=(l=Math.sqrt(Math.pow(n[0]-a[0],2)+Math.pow(n[1]-a[1],2)))?Math.min(l/2,e)/l:0,c=f=n[0]+(a[0]-n[0])*h,p=u=n[1]+(a[1]-n[1])*h,m=c-(c-n[0])*roundCorner,g=p-(p-n[1])*roundCorner,i.setTripleAt(c,p,f,u,m,g,y),y+=1):(i.setTripleAt(n[0],n[1],o[0],o[1],s[0],s[1],y),y+=1):(i.setTripleAt(t.v[r][0],t.v[r][1],t.o[r][0],t.o[r][1],t.i[r][0],t.i[r][1],y),y+=1);return i},RoundCornersModifier.prototype.processShapes=function(t){var e,r,i,n,s,o,a=this.shapes.length,l=this.rd.v;if(l!==0)for(r=0;r<a;r+=1){if(o=(s=this.shapes[r]).localShapeCollection,s.shape._mdf||this._mdf||t)for(o.releaseShapes(),s.shape._mdf=!0,e=s.shape.paths.shapes,n=s.shape.paths._length,i=0;i<n;i+=1)o.addShape(this.processPath(e[i],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,r=e*e-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/t;if(r<0)return[];var i=Math.sqrt(r);return floatZero(i)?i>0&&i<1?[e]:[]:[e-i,e+i].filter(function(n){return n>0&&n<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),r=lerpPoint(this.points[1],this.points[2],t),i=lerpPoint(this.points[2],this.points[3],t),n=lerpPoint(e,r,t),s=lerpPoint(r,i,t),o=lerpPoint(n,s,t);return[new PolynomialBezier(this.points[0],e,n,o,!0),new PolynomialBezier(o,s,i,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,r){e===void 0&&(e=2),r===void 0&&(r=7);var i=[];return intersectsImpl(intersectData(this,0,1),intersectData(t,0,1),0,e,i,r),i},PolynomialBezier.shapeSegment=function(t,e){var r=(e+1)%t.length();return new PolynomialBezier(t.v[e],t.o[e],t.i[r],t.v[r],!0)},PolynomialBezier.shapeSegmentInverted=function(t,e){var r=(e+1)%t.length();return new PolynomialBezier(t.v[r],t.i[r],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=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0},ZigZagModifier.prototype.processPath=function(t,e,r,i){var n=t._length,s=shapePool.newElement();if(s.c=t.c,t.c||(n-=1),n===0)return s;var o=-1,a=PolynomialBezier.shapeSegment(t,0);zigZagCorner(s,t,0,e,r,i,o);for(var l=0;l<n;l+=1)o=zigZagSegment(s,a,e,r,i,-o),a=l!==n-1||t.c?PolynomialBezier.shapeSegment(t,(l+1)%n):null,zigZagCorner(s,t,l+1,e,r,i,o);return s},ZigZagModifier.prototype.processShapes=function(t){var e,r,i,n,s,o,a=this.shapes.length,l=this.amplitude.v,h=Math.max(0,Math.round(this.frequency.v)),c=this.pointsType.v;if(l!==0)for(r=0;r<a;r+=1){if(o=(s=this.shapes[r]).localShapeCollection,s.shape._mdf||this._mdf||t)for(o.releaseShapes(),s.shape._mdf=!0,e=s.shape.paths.shapes,n=s.shape.paths._length,i=0;i<n;i+=1)o.addShape(this.processPath(e[i],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=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(t,e,r,i){var n=shapePool.newElement();n.c=t.c;var s,o,a,l=t.length();t.c||(l-=1);var h=[];for(s=0;s<l;s+=1)a=PolynomialBezier.shapeSegment(t,s),h.push(offsetSegmentSplit(a,e));if(!t.c)for(s=l-1;s>=0;s-=1)a=PolynomialBezier.shapeSegmentInverted(t,s),h.push(offsetSegmentSplit(a,e));h=pruneIntersections(h);var c=null,p=null;for(s=0;s<h.length;s+=1){var f=h[s];for(p&&(c=joinLines(n,p,f[0],r,i)),p=f[f.length-1],o=0;o<f.length;o+=1)a=f[o],c&&pointEqual(a.points[0],c)?n.setXYAt(a.points[1][0],a.points[1][1],"o",n.length()-1):n.setTripleAt(a.points[0][0],a.points[0][1],a.points[1][0],a.points[1][1],a.points[0][0],a.points[0][1],n.length()),n.setTripleAt(a.points[3][0],a.points[3][1],a.points[3][0],a.points[3][1],a.points[2][0],a.points[2][1],n.length()),c=a.points[3]}return h.length&&joinLines(n,p,h[0][0],r,i),n},OffsetPathModifier.prototype.processShapes=function(t){var e,r,i,n,s,o,a=this.shapes.length,l=this.amount.v,h=this.miterLimit.v,c=this.lineJoin;if(l!==0)for(r=0;r<a;r+=1){if(o=(s=this.shapes[r]).localShapeCollection,s.shape._mdf||this._mdf||t)for(o.releaseShapes(),s.shape._mdf=!0,e=s.shape.paths.shapes,n=s.shape.paths._length,i=0;i<n;i+=1)o.addShape(this.processPath(e[i],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 r=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"],i=[65039,8205];function n(a,l){var h=createTag("span");h.setAttribute("aria-hidden",!0),h.style.fontFamily=l;var c=createTag("span");c.innerText="giItT1WQy@!-/#",h.style.position="absolute",h.style.left="-10000px",h.style.top="-10000px",h.style.fontSize="300px",h.style.fontVariant="normal",h.style.fontStyle="normal",h.style.fontWeight="normal",h.style.letterSpacing="0",h.appendChild(c),document.body.appendChild(h);var p=c.offsetWidth;return c.style.fontFamily=function(f){var u,m=f.split(","),g=m.length,d=[];for(u=0;u<g;u+=1)m[u]!=="sans-serif"&&m[u]!=="monospace"&&d.push(m[u]);return d.join(",")}(a)+", "+l,{node:c,w:p,parent:h}}function s(a,l){var h,c=document.body&&l?"svg":"canvas",p=getFontProperties(a);if(c==="svg"){var f=createNS("text");f.style.fontSize="100px",f.setAttribute("font-family",a.fFamily),f.setAttribute("font-style",p.style),f.setAttribute("font-weight",p.weight),f.textContent="1",a.fClass?(f.style.fontFamily="inherit",f.setAttribute("class",a.fClass)):f.style.fontFamily=a.fFamily,l.appendChild(f),h=f}else{var u=new OffscreenCanvas(500,500).getContext("2d");u.font=p.style+" "+p.weight+" 100px "+a.fFamily,h=u}return{measureText:function(m){return c==="svg"?(h.textContent=m,h.getComputedTextLength()):h.measureText(m).width}}}var o=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)};return o.isModifier=function(a,l){var h=a.toString(16)+l.toString(16);return r.indexOf(h)!==-1},o.isZeroWidthJoiner=function(a,l){return l?a===i[0]&&l===i[1]:a===i[1]},o.isCombinedCharacter=function(a){return e.indexOf(a)!==-1},o.prototype={addChars:function(a){if(a){var l;this.chars||(this.chars=[]);var h,c,p=a.length,f=this.chars.length;for(l=0;l<p;l+=1){for(h=0,c=!1;h<f;)this.chars[h].style===a[l].style&&this.chars[h].fFamily===a[l].fFamily&&this.chars[h].ch===a[l].ch&&(c=!0),h+=1;c||(this.chars.push(a[l]),f+=1)}}},addFonts:function(a,l){if(a){if(this.chars)return this.isLoaded=!0,void(this.fonts=a.list);if(!document.body)return this.isLoaded=!0,a.list.forEach(function(b){b.helper=s(b),b.cache={}}),void(this.fonts=a.list);var h,c=a.list,p=c.length,f=p;for(h=0;h<p;h+=1){var u,m,g=!0;if(c[h].loaded=!1,c[h].monoCase=n(c[h].fFamily,"monospace"),c[h].sansCase=n(c[h].fFamily,"sans-serif"),c[h].fPath){if(c[h].fOrigin==="p"||c[h].origin===3){if((u=document.querySelectorAll('style[f-forigin="p"][f-family="'+c[h].fFamily+'"], style[f-origin="3"][f-family="'+c[h].fFamily+'"]')).length>0&&(g=!1),g){var d=createTag("style");d.setAttribute("f-forigin",c[h].fOrigin),d.setAttribute("f-origin",c[h].origin),d.setAttribute("f-family",c[h].fFamily),d.type="text/css",d.innerText="@font-face {font-family: "+c[h].fFamily+"; font-style: normal; src: url('"+c[h].fPath+"');}",l.appendChild(d)}}else if(c[h].fOrigin==="g"||c[h].origin===1){for(u=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),m=0;m<u.length;m+=1)u[m].href.indexOf(c[h].fPath)!==-1&&(g=!1);if(g){var y=createTag("link");y.setAttribute("f-forigin",c[h].fOrigin),y.setAttribute("f-origin",c[h].origin),y.type="text/css",y.rel="stylesheet",y.href=c[h].fPath,document.body.appendChild(y)}}else if(c[h].fOrigin==="t"||c[h].origin===2){for(u=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),m=0;m<u.length;m+=1)c[h].fPath===u[m].src&&(g=!1);if(g){var v=createTag("link");v.setAttribute("f-forigin",c[h].fOrigin),v.setAttribute("f-origin",c[h].origin),v.setAttribute("rel","stylesheet"),v.setAttribute("href",c[h].fPath),l.appendChild(v)}}}else c[h].loaded=!0,f-=1;c[h].helper=s(c[h],l),c[h].cache={},this.fonts.push(c[h])}f===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(a,l,h){for(var c=0,p=this.chars.length;c<p;){if(this.chars[c].ch===a&&this.chars[c].style===l&&this.chars[c].fFamily===h)return this.chars[c];c+=1}return(typeof a=="string"&&a.charCodeAt(0)!==13||!a)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",a,l,h)),t},getFontByName:function(a){for(var l=0,h=this.fonts.length;l<h;){if(this.fonts[l].fName===a)return this.fonts[l];l+=1}return this.fonts[0]},measureText:function(a,l,h){var c=this.getFontByName(l),p=a.charCodeAt(0);if(!c.cache[p+1]){var f=c.helper;if(a===" "){var u=f.measureText("|"+a+"|"),m=f.measureText("||");c.cache[p+1]=(u-m)/100}else c.cache[p+1]=f.measureText(a)/100}return c.cache[p+1]*h},checkLoadedFonts:function(){var a,l,h,c=this.fonts.length,p=c;for(a=0;a<c;a+=1)this.fonts[a].loaded?p-=1:this.fonts[a].fOrigin==="n"||this.fonts[a].origin===0?this.fonts[a].loaded=!0:(l=this.fonts[a].monoCase.node,h=this.fonts[a].monoCase.w,l.offsetWidth!==h?(p-=1,this.fonts[a].loaded=!0):(l=this.fonts[a].sansCase.node,h=this.fonts[a].sansCase.w,l.offsetWidth!==h&&(p-=1,this.fonts[a].loaded=!0)),this.fonts[a].loaded&&(this.fonts[a].sansCase.parent.parentNode.removeChild(this.fonts[a].sansCase.parent),this.fonts[a].monoCase.parent.parentNode.removeChild(this.fonts[a].monoCase.parent)));p!==0&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}},o}();function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(t){this.renderableComponents.indexOf(t)===-1&&this.renderableComponents.push(t)},removeRenderableComponent:function(t){this.renderableComponents.indexOf(t)!==-1&&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?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(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 this.data.ty===5?{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,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function AngleEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function ColorEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,1,0,r)}function PointEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,1,0,r)}function LayerIndexEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function MaskIndexEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function CheckboxEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function NoValueEffect(){this.p={}}function EffectsManager(t,e){var r,i=t.ef||[];this.effectElements=[];var n,s=i.length;for(r=0;r<s;r+=1)n=new GroupEffect(i[r],e),this.effectElements.push(n)}function GroupEffect(t,e){this.init(t,e)}function BaseElement(){}function FrameElement(){}function FootageElement(t,e,r){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.footageData=e.imageLoader.getAsset(this.assetData),this.initBaseData(t,e,r)}function AudioElement(t,e,r){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.initBaseData(t,e,r),this._isPlaying=!1,this._canPlay=!1;var i=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(i),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(){}function TransformElement(){}function MaskElement(t,e,r){this.data=t,this.element=e,this.globalData=r,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var i,n,s=this.globalData.defs,o=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(o),this.solidPath="";var a,l,h,c,p,f,u=this.masksProperties,m=0,g=[],d=createElementID(),y="clipPath",v="clip-path";for(i=0;i<o;i+=1)if((u[i].mode!=="a"&&u[i].mode!=="n"||u[i].inv||u[i].o.k!==100||u[i].o.x)&&(y="mask",v="mask"),u[i].mode!=="s"&&u[i].mode!=="i"||m!==0?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),g.push(h)),n=createNS("path"),u[i].mode==="n")this.viewData[i]={op:PropertyFactory.getProp(this.element,u[i].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,u[i],3),elem:n,lastPath:""},s.appendChild(n);else{var b;if(m+=1,n.setAttribute("fill",u[i].mode==="s"?"#000000":"#ffffff"),n.setAttribute("clip-rule","nonzero"),u[i].x.k!==0?(y="mask",v="mask",f=PropertyFactory.getProp(this.element,u[i].x,0,null,this.element),b=createElementID(),(c=createNS("filter")).setAttribute("id",b),(p=createNS("feMorphology")).setAttribute("operator","erode"),p.setAttribute("in","SourceGraphic"),p.setAttribute("radius","0"),c.appendChild(p),s.appendChild(c),n.setAttribute("stroke",u[i].mode==="s"?"#000000":"#ffffff")):(p=null,f=null),this.storedData[i]={elem:n,x:f,expan:p,lastPath:"",lastOperator:"",filterId:b,lastRadius:0},u[i].mode==="i"){l=g.length;var _=createNS("g");for(a=0;a<l;a+=1)_.appendChild(g[a]);var x=createNS("mask");x.setAttribute("mask-type","alpha"),x.setAttribute("id",d+"_"+m),x.appendChild(n),s.appendChild(x),_.setAttribute("mask","url("+getLocationHref()+"#"+d+"_"+m+")"),g.length=0,g.push(_)}else g.push(n);u[i].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[i]={elem:n,lastPath:"",op:PropertyFactory.getProp(this.element,u[i].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,u[i],3),invRect:h},this.viewData[i].prop.k||this.drawPath(u[i],this.viewData[i].prop.v,this.viewData[i])}for(this.maskElement=createNS(y),o=g.length,i=0;i<o;i+=1)this.maskElement.appendChild(g[i]);m>0&&(this.maskElement.setAttribute("id",d),this.element.maskedElement.setAttribute(v,"url("+getLocationHref()+"#"+d+")"),s.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(t,e){var r;this.data=t,this.effectElements=[],this.initDynamicPropertyContainer(e);var i,n=this.data.ef.length,s=this.data.ef;for(r=0;r<n;r+=1){switch(i=null,s[r].ty){case 0:i=new SliderEffect(s[r],e,this);break;case 1:i=new AngleEffect(s[r],e,this);break;case 2:i=new ColorEffect(s[r],e,this);break;case 3:i=new PointEffect(s[r],e,this);break;case 4:case 7:i=new CheckboxEffect(s[r],e,this);break;case 10:i=new LayerIndexEffect(s[r],e,this);break;case 11:i=new MaskIndexEffect(s[r],e,this);break;case 5:i=new EffectsManager(s[r],e,this);break;default:i=new NoValueEffect(s[r],e,this)}i&&this.effectElements.push(i)}},BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var t=0,e=this.data.masksProperties.length;t<e;){if(this.data.masksProperties[t].mode!=="n"&&this.data.masksProperties[t].cl!==!1)return!0;t+=1}return!1},initExpressions:function(){var t=getExpressionInterfaces();if(t){var e=t("layer"),r=t("effects"),i=t("shape"),n=t("text"),s=t("comp");this.layerInterface=e(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var o=r.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(o),this.data.ty===0||this.data.xt?this.compInterface=s(this):this.data.ty===4?(this.layerInterface.shapeInterface=i(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(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,r){this.globalData=e,this.comp=r,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 r,i=this.dynamicProperties.length;for(r=0;r<i;r+=1)(e||this._isParent&&this.dynamicProperties[r].propType==="transform")&&(this.dynamicProperties[r].getValue(),this.dynamicProperties[r]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(t){this.dynamicProperties.indexOf(t)===-1&&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 r=this._volume*this._volumeMultiplier;this._previousVolume!==r&&(this._previousVolume=r,this.audio.volume(r))},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,r,i=this.layers.length;for(this.completeLayers=!0,e=i-1;e>=0;e-=1)this.elements[e]||(r=this.layers[e]).ip-r.st<=t-this.layers[e].st&&r.op-r.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: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);default:return this.createNull(t)}},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 r,i=t.length,n=this.layers.length;for(e=0;e<i;e+=1)for(r=0;r<n;){if(this.layers[r].id===t[e].id){this.layers[r]=t[e];break}r+=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,r){for(var i=this.elements,n=this.layers,s=0,o=n.length;s<o;)n[s].ind==e&&(i[s]&&i[s]!==!0?(r.push(i[s]),i[s].setAsParent(),n[s].parent!==void 0?this.buildElementParenting(t,n[s].parent,r):t.setHierarchy(r)):(this.buildItem(s),this.addPendingElement(t))),s+=1},BaseRenderer.prototype.addPendingElement=function(t){this.pendingElements.push(t)},BaseRenderer.prototype.searchExtraCompositions=function(t){var e,r=t.length;for(e=0;e<r;e+=1)if(t[e].xt){var i=this.createComp(t[e]);i.initExpressions(),this.globalData.projectInterface.registerComposition(i)}},BaseRenderer.prototype.getElementByPath=function(t){var e,r=t.shift();if(typeof r=="number")e=this.elements[r];else{var i,n=this.elements.length;for(i=0;i<n;i+=1)if(this.elements[i].data.nm===r){e=this.elements[i];break}}return t.length===0?e:e.getElementByPath(t)},BaseRenderer.prototype.setupGlobalData=function(t,e){this.globalData.fontManager=new FontManager,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}},TransformElement.prototype={initTransform:function(){this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_opMdf:!1,mat:new Matrix},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,r=0,i=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;r<i;){if(this.hierarchy[r].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}r+=1}if(this.finalTransform._matMdf)for(t=this.finalTransform.mProp.v.props,e.cloneFromProps(t),r=0;r<i;r+=1)t=this.hierarchy[r].finalTransform.mProp.v.props,e.transform(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}},globalToLocal:function(t){var e=[];e.push(this.finalTransform);for(var r,i=!0,n=this.comp;i;)n.finalTransform?(n.data.hasMask&&e.splice(0,0,n.finalTransform),n=n.comp):i=!1;var s,o=e.length;for(r=0;r<o;r+=1)s=e[r].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,r=this.element.finalTransform.mat,i=this.masksProperties.length;for(e=0;e<i;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),this.masksProperties[e].mode!=="n"&&(this.viewData[e].invRect&&(this.element.finalTransform.mProp._mdf||t)&&this.viewData[e].invRect.setAttribute("transform",r.getInverseMatrix().to2dCSS()),this.storedData[e].x&&(this.storedData[e].x._mdf||t))){var n=this.storedData[e].expan;this.storedData[e].x.v<0?(this.storedData[e].lastOperator!=="erode"&&(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)):(this.storedData[e].lastOperator!=="dilate"&&(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,t+=" v-"+this.globalData.compSize.h+" "},MaskElement.prototype.drawPath=function(t,e,r){var i,n,s=" M"+e.v[0][0]+","+e.v[0][1];for(n=e._length,i=1;i<n;i+=1)s+=" C"+e.o[i-1][0]+","+e.o[i-1][1]+" "+e.i[i][0]+","+e.i[i][1]+" "+e.v[i][0]+","+e.v[i][1];if(e.c&&n>1&&(s+=" C"+e.o[i-1][0]+","+e.o[i-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),r.lastPath!==s){var o="";r.elem&&(e.c&&(o=t.inv?this.solidPath+s:s),r.elem.setAttribute("d",o)),r.lastPath=s}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var t={};return t.createFilter=function(e,r){var i=createNS("filter");return i.setAttribute("id",e),r!==!0&&(i.setAttribute("filterUnits","objectBoundingBox"),i.setAttribute("x","0%"),i.setAttribute("y","0%"),i.setAttribute("width","100%"),i.setAttribute("height","100%")),i},t.createAlphaToLuminanceFilter=function(){var e=createNS("feColorMatrix");return e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),e},t}(),featureSupport=function(){var t={maskType:!0};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),t}(),registeredEffects={},idPrefix="filter_result_";function SVGEffects(t){var e,r,i="SourceGraphic",n=t.data.ef?t.data.ef.length:0,s=createElementID(),o=filtersFactory.createFilter(s,!0),a=0;for(this.filters=[],e=0;e<n;e+=1){r=null;var l=t.data.ef[e].ty;registeredEffects[l]&&(r=new registeredEffects[l].effect(o,t.effectsManager.effectElements[e],t,idPrefix+a,i),i=idPrefix+a,registeredEffects[l].countsAsEffect&&(a+=1)),r&&this.filters.push(r)}a&&(t.globalData.defs.appendChild(o),t.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+s+")")),this.filters.length&&t.addRenderableComponent(this)}function registerEffect(t,e,r){registeredEffects[t]={effect:e,countsAsEffect:r}}function SVGBaseElement(){}function HierarchyElement(){}function RenderableDOMElement(){}function IImageElement(t,e,r){this.assetData=e.getAssetData(t.refId),this.initElement(t,e,r),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,r=this.filters.length;for(e=0;e<r;e+=1)this.filters[e].renderFrame(t)},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("symbol");e.setAttribute("id",this.layerId);var r=createNS("g");r.appendChild(this.layerElement),e.appendChild(r),t=r,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),this.data.ty===0&&!this.data.hd){var i=createNS("clipPath"),n=createNS("path");n.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var s=createElementID();if(i.setAttribute("id",s),i.appendChild(n),this.globalData.defs.appendChild(i),this.checkMasks()){var o=createNS("g");o.setAttribute("clip-path","url("+getLocationHref()+"#"+s+")"),o.appendChild(this.layerElement),this.transformedElement=o,t?t.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+s+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._matMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.mat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.mProp.o.v)},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)},getMatte:function(t){if(!this.matteMasks[t]){var e,r,i,n,s=this.layerId+"_"+t;if(t===1||t===3){var o=createNS("mask");o.setAttribute("id",s),o.setAttribute("mask-type",t===3?"luminance":"alpha"),(i=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),o.appendChild(i),this.globalData.defs.appendChild(o),featureSupport.maskType||t!==1||(o.setAttribute("mask-type","luminance"),e=createElementID(),r=filtersFactory.createFilter(e),this.globalData.defs.appendChild(r),r.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(n=createNS("g")).appendChild(i),o.appendChild(n),n.setAttribute("filter","url("+getLocationHref()+"#"+e+")"))}else if(t===2){var a=createNS("mask");a.setAttribute("id",s),a.setAttribute("mask-type","alpha");var l=createNS("g");a.appendChild(l),e=createElementID(),r=filtersFactory.createFilter(e);var h=createNS("feComponentTransfer");h.setAttribute("in","SourceGraphic"),r.appendChild(h);var c=createNS("feFuncA");c.setAttribute("type","table"),c.setAttribute("tableValues","1.0 0.0"),h.appendChild(c),this.globalData.defs.appendChild(r);var p=createNS("rect");p.setAttribute("width",this.comp.data.w),p.setAttribute("height",this.comp.data.h),p.setAttribute("x","0"),p.setAttribute("y","0"),p.setAttribute("fill","#ffffff"),p.setAttribute("opacity","0"),l.setAttribute("filter","url("+getLocationHref()+"#"+e+")"),l.appendChild(p),(i=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),l.appendChild(i),featureSupport.maskType||(a.setAttribute("mask-type","luminance"),r.appendChild(filtersFactory.createAlphaToLuminanceFilter()),n=createNS("g"),l.appendChild(p),n.appendChild(this.layerElement),l.appendChild(n)),this.globalData.defs.appendChild(a)}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(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}},extendPrototype([RenderableElement,createProxyFunction({initElement:function(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initTransform(t,e,r),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.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,r=this.shapeModifiers.length;for(e=0;e<r;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,r=0,i=e.length;r<i;){if(e[r].elem===t)return e[r].pos;r+=1}return 0},addProcessedElement:function(t,e){for(var r=this.processedElements,i=r.length;i;)if(r[i-=1].elem===t)return void(r[i].pos=e);r.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,r){this.caches=[],this.styles=[],this.transformers=t,this.lStr="",this.sh=r,this.lvl=e,this._isAnimated=!!r.k;for(var i=0,n=t.length;i<n;){if(t[i].mProps.dynamicProperties.length){this._isAnimated=!0;break}i+=1}}function SVGStyleData(t,e){this.data=t,this.type=t.ty,this.d="",this.lvl=e,this._mdf=!1,this.closed=t.hd===!0,this.pElem=createNS("path"),this.msElem=null}function DashProperty(t,e,r,i){var n;this.elem=t,this.frameId=-1,this.dataProps=createSizedArray(e.length),this.renderer=r,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",e.length?e.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(i);var s,o=e.length||0;for(n=0;n<o;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,r){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=r,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(t,e,r){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=r}function SVGNoStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.style=r}function GradientProperty(t,e,r){this.data=e,this.c=createTypedArray("uint8c",4*e.p);var i=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",i),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=i,this.initDynamicPropertyContainer(r),this.prop=PropertyFactory.getProp(t,e.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.initGradientData(t,e,r)}function SVGGradientStrokeStyleData(t,e,r){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,r),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(t,e,r){this.transform={mProps:t,op:e,container:r},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,r=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),e=0;e<r;e+=1)this.dataProps[e].n!=="o"?this.renderer==="svg"?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 r=0,i=this.o.length/2;r<i;){if(Math.abs(t[4*r]-t[4*e+2*r])>.01)return!1;r+=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,r,i,n=4*this.data.p;for(e=0;e<n;e+=1)r=e%4==0?100:255,i=Math.round(this.prop.v[e]*r),this.c[e]!==i&&(this.c[e]=i,this._cmdf=!t);if(this.o.length)for(n=this.prop.v.length,e=4*this.data.p;e<n;e+=1)r=e%2==0?100:1,i=e%2==0?Math.round(100*this.prop.v[e]):this.prop.v[e],this.o[e-4*this.data.p]!==i&&(this.o[e-4*this.data.p]=i,this._omdf=!t);this._mdf=!t}},extendPrototype([DynamicPropertyContainer],GradientProperty),SVGGradientFillStyleData.prototype.initGradientData=function(t,e,r){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=r,this.stops=[],this.setGradientData(r.pElem,e),this.setGradientOpacity(e,r),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(t,e){var r=createElementID(),i=createNS(e.t===1?"linearGradient":"radialGradient");i.setAttribute("id",r),i.setAttribute("spreadMethod","pad"),i.setAttribute("gradientUnits","userSpaceOnUse");var n,s,o,a=[];for(o=4*e.g.p,s=0;s<o;s+=4)n=createNS("stop"),i.appendChild(n),a.push(n);t.setAttribute(e.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+r+")"),this.gf=i,this.cst=a},SVGGradientFillStyleData.prototype.setGradientOpacity=function(t,e){if(this.g._hasOpacity&&!this.g._collapsable){var r,i,n,s=createNS("mask"),o=createNS("path");s.appendChild(o);var a=createElementID(),l=createElementID();s.setAttribute("id",l);var h=createNS(t.t===1?"linearGradient":"radialGradient");h.setAttribute("id",a),h.setAttribute("spreadMethod","pad"),h.setAttribute("gradientUnits","userSpaceOnUse"),n=t.g.k.k[0].s?t.g.k.k[0].s.length:t.g.k.k.length;var c=this.stops;for(i=4*t.g.p;i<n;i+=2)(r=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),h.appendChild(r),c.push(r);o.setAttribute(t.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+a+")"),t.ty==="gs"&&(o.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]),o.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]),t.lj===1&&o.setAttribute("stroke-miterlimit",t.ml)),this.of=h,this.ms=s,this.ost=c,this.maskId=l,e.msElem=o}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(t,e,r,i){if(e===0)return"";var n,s=t.o,o=t.i,a=t.v,l=" M"+i.applyToPointStringified(a[0][0],a[0][1]);for(n=1;n<e;n+=1)l+=" C"+i.applyToPointStringified(s[n-1][0],s[n-1][1])+" "+i.applyToPointStringified(o[n][0],o[n][1])+" "+i.applyToPointStringified(a[n][0],a[n][1]);return r&&e&&(l+=" C"+i.applyToPointStringified(s[n-1][0],s[n-1][1])+" "+i.applyToPointStringified(o[0][0],o[0][1])+" "+i.applyToPointStringified(a[0][0],a[0][1]),l+="z"),l},SVGElementsRenderer=function(){var t=new Matrix,e=new Matrix;function r(h,c,p){(p||c.transform.op._mdf)&&c.transform.container.setAttribute("opacity",c.transform.op.v),(p||c.transform.mProps._mdf)&&c.transform.container.setAttribute("transform",c.transform.mProps.v.to2dCSS())}function i(){}function n(h,c,p){var f,u,m,g,d,y,v,b,_,x,M,S=c.styles.length,w=c.lvl;for(y=0;y<S;y+=1){if(g=c.sh._mdf||p,c.styles[y].lvl<w){for(b=e.reset(),x=w-c.styles[y].lvl,M=c.transformers.length-1;!g&&x>0;)g=c.transformers[M].mProps._mdf||g,x-=1,M-=1;if(g)for(x=w-c.styles[y].lvl,M=c.transformers.length-1;x>0;)_=c.transformers[M].mProps.v.props,b.transform(_[0],_[1],_[2],_[3],_[4],_[5],_[6],_[7],_[8],_[9],_[10],_[11],_[12],_[13],_[14],_[15]),x-=1,M-=1}else b=t;if(u=(v=c.sh.paths)._length,g){for(m="",f=0;f<u;f+=1)(d=v.shapes[f])&&d._length&&(m+=buildShapeString(d,d._length,d.c,b));c.caches[y]=m}else m=c.caches[y];c.styles[y].d+=h.hd===!0?"":m,c.styles[y]._mdf=g||c.styles[y]._mdf}}function s(h,c,p){var f=c.style;(c.c._mdf||p)&&f.pElem.setAttribute("fill","rgb("+bmFloor(c.c.v[0])+","+bmFloor(c.c.v[1])+","+bmFloor(c.c.v[2])+")"),(c.o._mdf||p)&&f.pElem.setAttribute("fill-opacity",c.o.v)}function o(h,c,p){a(h,c,p),l(h,c,p)}function a(h,c,p){var f,u,m,g,d,y=c.gf,v=c.g._hasOpacity,b=c.s.v,_=c.e.v;if(c.o._mdf||p){var x=h.ty==="gf"?"fill-opacity":"stroke-opacity";c.style.pElem.setAttribute(x,c.o.v)}if(c.s._mdf||p){var M=h.t===1?"x1":"cx",S=M==="x1"?"y1":"cy";y.setAttribute(M,b[0]),y.setAttribute(S,b[1]),v&&!c.g._collapsable&&(c.of.setAttribute(M,b[0]),c.of.setAttribute(S,b[1]))}if(c.g._cmdf||p){f=c.cst;var w=c.g.c;for(m=f.length,u=0;u<m;u+=1)(g=f[u]).setAttribute("offset",w[4*u]+"%"),g.setAttribute("stop-color","rgb("+w[4*u+1]+","+w[4*u+2]+","+w[4*u+3]+")")}if(v&&(c.g._omdf||p)){var D=c.g.o;for(m=(f=c.g._collapsable?c.cst:c.ost).length,u=0;u<m;u+=1)g=f[u],c.g._collapsable||g.setAttribute("offset",D[2*u]+"%"),g.setAttribute("stop-opacity",D[2*u+1])}if(h.t===1)(c.e._mdf||p)&&(y.setAttribute("x2",_[0]),y.setAttribute("y2",_[1]),v&&!c.g._collapsable&&(c.of.setAttribute("x2",_[0]),c.of.setAttribute("y2",_[1])));else if((c.s._mdf||c.e._mdf||p)&&(d=Math.sqrt(Math.pow(b[0]-_[0],2)+Math.pow(b[1]-_[1],2)),y.setAttribute("r",d),v&&!c.g._collapsable&&c.of.setAttribute("r",d)),c.e._mdf||c.h._mdf||c.a._mdf||p){d||(d=Math.sqrt(Math.pow(b[0]-_[0],2)+Math.pow(b[1]-_[1],2)));var E=Math.atan2(_[1]-b[1],_[0]-b[0]),T=c.h.v;T>=1?T=.99:T<=-1&&(T=-.99);var k=d*T,A=Math.cos(E+c.a.v)*k+b[0],P=Math.sin(E+c.a.v)*k+b[1];y.setAttribute("fx",A),y.setAttribute("fy",P),v&&!c.g._collapsable&&(c.of.setAttribute("fx",A),c.of.setAttribute("fy",P))}}function l(h,c,p){var f=c.style,u=c.d;u&&(u._mdf||p)&&u.dashStr&&(f.pElem.setAttribute("stroke-dasharray",u.dashStr),f.pElem.setAttribute("stroke-dashoffset",u.dashoffset[0])),c.c&&(c.c._mdf||p)&&f.pElem.setAttribute("stroke","rgb("+bmFloor(c.c.v[0])+","+bmFloor(c.c.v[1])+","+bmFloor(c.c.v[2])+")"),(c.o._mdf||p)&&f.pElem.setAttribute("stroke-opacity",c.o.v),(c.w._mdf||p)&&(f.pElem.setAttribute("stroke-width",c.w.v),f.msElem&&f.msElem.setAttribute("stroke-width",c.w.v))}return{createRenderFunction:function(h){switch(h.ty){case"fl":return s;case"gf":return a;case"gs":return o;case"st":return l;case"sh":case"el":case"rc":case"sr":return n;case"tr":return r;case"no":return i;default:return null}}}}();function SVGShapeElement(t,e,r){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,e,r),this.prevViewData=[]}function LetterProps(t,e,r,i,n,s){this.o=t,this.sw=e,this.sc=r,this.fc=i,this.m=n,this.p=s,this._mdf={o:!0,sw:!!e,sc:!!r,fc:!!i,m:!0,p:!0}}function TextProperty(t,e){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,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,r,i,n=this.shapes.length,s=this.stylesList.length,o=[],a=!1;for(r=0;r<s;r+=1){for(i=this.stylesList[r],a=!1,o.length=0,t=0;t<n;t+=1)(e=this.shapes[t]).styles.indexOf(i)!==-1&&(o.push(e),a=e._isAnimated||a);o.length>1&&a&&this.setShapesAsAnimated(o)}},SVGShapeElement.prototype.setShapesAsAnimated=function(t){var e,r=t.length;for(e=0;e<r;e+=1)t[e].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(t,e){var r,i=new SVGStyleData(t,e),n=i.pElem;return t.ty==="st"?r=new SVGStrokeStyleData(this,t,i):t.ty==="fl"?r=new SVGFillStyleData(this,t,i):t.ty==="gf"||t.ty==="gs"?(r=new(t.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,t,i),this.globalData.defs.appendChild(r.gf),r.maskId&&(this.globalData.defs.appendChild(r.ms),this.globalData.defs.appendChild(r.of),n.setAttribute("mask","url("+getLocationHref()+"#"+r.maskId+")"))):t.ty==="no"&&(r=new SVGNoStyleData(this,t,i)),t.ty!=="st"&&t.ty!=="gs"||(n.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]),n.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]),n.setAttribute("fill-opacity","0"),t.lj===1&&n.setAttribute("stroke-miterlimit",t.ml)),t.r===2&&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(i),this.addToAnimatedContents(t,r),r},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 r=TransformPropertyFactory.getTransformProperty(this,t,this),i=new SVGTransformData(r,r.o,e);return this.addToAnimatedContents(t,i),i},SVGShapeElement.prototype.createShapeElement=function(t,e,r){var i=4;t.ty==="rc"?i=5:t.ty==="el"?i=6:t.ty==="sr"&&(i=7);var n=new SVGShapeData(e,r,ShapePropertyFactory.getShapeProp(this,t,i,this));return this.shapes.push(n),this.addShapeToModifiers(n),this.addToAnimatedContents(t,n),n},SVGShapeElement.prototype.addToAnimatedContents=function(t,e){for(var r=0,i=this.animatedContents.length;r<i;){if(this.animatedContents[r].element===e)return;r+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(t),element:e,data:t})},SVGShapeElement.prototype.setElementStyles=function(t){var e,r=t.styles,i=this.stylesList.length;for(e=0;e<i;e+=1)this.stylesList[e].closed||r.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()},SVGShapeElement.prototype.searchShapes=function(t,e,r,i,n,s,o){var a,l,h,c,p,f,u=[].concat(s),m=t.length-1,g=[],d=[];for(a=m;a>=0;a-=1){if((f=this.searchProcessedElement(t[a]))?e[a]=r[f-1]:t[a]._render=o,t[a].ty==="fl"||t[a].ty==="st"||t[a].ty==="gf"||t[a].ty==="gs"||t[a].ty==="no")f?e[a].style.closed=!1:e[a]=this.createStyleElement(t[a],n),t[a]._render&&e[a].style.pElem.parentNode!==i&&i.appendChild(e[a].style.pElem),g.push(e[a].style);else if(t[a].ty==="gr"){if(f)for(h=e[a].it.length,l=0;l<h;l+=1)e[a].prevViewData[l]=e[a].it[l];else e[a]=this.createGroupElement(t[a]);this.searchShapes(t[a].it,e[a].it,e[a].prevViewData,e[a].gr,n+1,u,o),t[a]._render&&e[a].gr.parentNode!==i&&i.appendChild(e[a].gr)}else t[a].ty==="tr"?(f||(e[a]=this.createTransformElement(t[a],i)),c=e[a].transform,u.push(c)):t[a].ty==="sh"||t[a].ty==="rc"||t[a].ty==="el"||t[a].ty==="sr"?(f||(e[a]=this.createShapeElement(t[a],u,n)),this.setElementStyles(e[a])):t[a].ty==="tm"||t[a].ty==="rd"||t[a].ty==="ms"||t[a].ty==="pb"||t[a].ty==="zz"||t[a].ty==="op"?(f?(p=e[a]).closed=!1:((p=ShapeModifiers.getModifier(t[a].ty)).init(this,t[a]),e[a]=p,this.shapeModifiers.push(p)),d.push(p)):t[a].ty==="rp"&&(f?(p=e[a]).closed=!0:(p=ShapeModifiers.getModifier(t[a].ty),e[a]=p,p.init(this,t,a,e),this.shapeModifiers.push(p),o=!1),d.push(p));this.addProcessedElement(t[a],a+1)}for(m=g.length,a=0;a<m;a+=1)g[a].closed=!0;for(m=d.length,a=0;a<m;a+=1)d[a].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,r=this.animatedContents.length;for(t=0;t<r;t+=1)e=this.animatedContents[t],(this._isFirstFrame||e.element._isAnimated)&&e.data!==!0&&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,r,i,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 o=!1;return this.o!==t&&(this.o=t,this._mdf.o=!0,o=!0),this.sw!==e&&(this.sw=e,this._mdf.sw=!0,o=!0),this.sc!==r&&(this.sc=r,this._mdf.sc=!0,o=!0),this.fc!==i&&(this.fc=i,this._mdf.fc=!0,o=!0),this.m!==n&&(this.m=n,this._mdf.m=!0,o=!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,o=!0),o},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);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,r=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var i;this.lock=!0,this._mdf=!1;var n=this.effectsSequence.length,s=t||this.data.d.k[this.keysIndex].s;for(i=0;i<n;i+=1)s=r!==this.keysIndex?this.effectsSequence[i](s,s.t):this.effectsSequence[i](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,r=0,i=t.length;r<=i-1&&!(r===i-1||t[r+1].t>e);)r+=1;return this.keysIndex!==r&&(this.keysIndex=r),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(t){for(var e,r,i=[],n=0,s=t.length,o=!1;n<s;)e=t.charCodeAt(n),FontManager.isCombinedCharacter(e)?i[i.length-1]+=t.charAt(n):e>=55296&&e<=56319?(r=t.charCodeAt(n+1))>=56320&&r<=57343?(o||FontManager.isModifier(e,r)?(i[i.length-1]+=t.substr(n,2),o=!1):i.push(t.substr(n,2)),n+=1):i.push(t.charAt(n)):e>56319?(r=t.charCodeAt(n+1),FontManager.isZeroWidthJoiner(e,r)?(o=!0,i[i.length-1]+=t.substr(n,2),n+=1):i.push(t.charAt(n))):FontManager.isZeroWidthJoiner(e)?(i[i.length-1]+=t.charAt(n),o=!0):i.push(t.charAt(n)),n+=1;return i},TextProperty.prototype.completeTextData=function(t){t.__complete=!0;var e,r,i,n,s,o,a,l=this.elem.globalData.fontManager,h=this.data,c=[],p=0,f=h.m.g,u=0,m=0,g=0,d=[],y=0,v=0,b=l.getFontByName(t.f),_=0,x=getFontProperties(b);t.fWeight=x.weight,t.fStyle=x.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),r=t.finalText.length,t.finalLineHeight=t.lh;var M,S=t.tr/1e3*t.finalSize;if(t.sz)for(var w,D,E=!0,T=t.sz[0],k=t.sz[1];E;){w=0,y=0,r=(D=this.buildFinalText(t.t)).length,S=t.tr/1e3*t.finalSize;var A=-1;for(e=0;e<r;e+=1)M=D[e].charCodeAt(0),i=!1,D[e]===" "?A=e:M!==13&&M!==3||(y=0,i=!0,w+=t.finalLineHeight||1.2*t.finalSize),l.chars?(a=l.getCharData(D[e],b.fStyle,b.fFamily),_=i?0:a.w*t.finalSize/100):_=l.measureText(D[e],t.f,t.finalSize),y+_>T&&D[e]!==" "?(A===-1?r+=1:e=A,w+=t.finalLineHeight||1.2*t.finalSize,D.splice(e,A===e?1:0,"\r"),A=-1,y=0):(y+=_,y+=S);w+=b.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&k<w?(t.finalSize-=1,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=D,r=t.finalText.length,E=!1)}y=-S,_=0;var P,I=0;for(e=0;e<r;e+=1)if(i=!1,(M=(P=t.finalText[e]).charCodeAt(0))===13||M===3?(I=0,d.push(y),v=y>v?y:v,y=-2*S,n="",i=!0,g+=1):n=P,l.chars?(a=l.getCharData(P,b.fStyle,l.getFontByName(t.f).fFamily),_=i?0:a.w*t.finalSize/100):_=l.measureText(n,t.f,t.finalSize),P===" "?I+=_+S:(y+=_+S+I,I=0),c.push({l:_,an:_,add:u,n:i,anIndexes:[],val:n,line:g,animatorJustifyOffset:0}),f==2){if(u+=_,n===""||n===" "||e===r-1){for(n!==""&&n!==" "||(u-=_);m<=e;)c[m].an=u,c[m].ind=p,c[m].extra=_,m+=1;p+=1,u=0}}else if(f==3){if(u+=_,n===""||e===r-1){for(n===""&&(u-=_);m<=e;)c[m].an=u,c[m].ind=p,c[m].extra=_,m+=1;u=0,p+=1}}else c[p].ind=p,c[p].extra=0,p+=1;if(t.l=c,v=y>v?y:v,d.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=d;var O,F,C,L,R=h.a;o=R.length;var z=[];for(s=0;s<o;s+=1){for((O=R[s]).a.sc&&(t.strokeColorAnim=!0),O.a.sw&&(t.strokeWidthAnim=!0),(O.a.fc||O.a.fh||O.a.fs||O.a.fb)&&(t.fillColorAnim=!0),L=0,C=O.s.b,e=0;e<r;e+=1)(F=c[e]).anIndexes[s]=L,(C==1&&F.val!==""||C==2&&F.val!==""&&F.val!==" "||C==3&&(F.n||F.val==" "||e==r-1)||C==4&&(F.n||e==r-1))&&(O.s.rn===1&&z.push(L),L+=1);h.a[s].s.totalChars=L;var H,G=-1;if(O.s.rn===1)for(e=0;e<r;e+=1)G!=(F=c[e]).anIndexes[s]&&(G=F.anIndexes[s],H=z.splice(Math.floor(Math.random()*z.length),1)[0]),F.anIndexes[s]=H}t.yOffset=t.finalLineHeight||1.2*t.finalSize,t.ls=t.ls||0,t.ascent=b.ascent*t.finalSize/100},TextProperty.prototype.updateDocumentData=function(t,e){e=e===void 0?this.keysIndex:e;var r=this.copyData({},this.data.d.k[e].s);r=this.copyData(r,t),this.data.d.k[e].s=r,this.recalculate(e),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,r=Math.floor;function i(n,s){this._currentTextLength=-1,this.k=!1,this.data=s,this.elem=n,this.comp=n.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(n),this.s=PropertyFactory.getProp(n,s.s||{k:0},0,0,this),this.e="e"in s?PropertyFactory.getProp(n,s.e,0,0,this):{v:100},this.o=PropertyFactory.getProp(n,s.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(n,s.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(n,s.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(n,s.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(n,s.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return i.prototype={getMult:function(n){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var s=0,o=0,a=1,l=1;this.ne.v>0?s=this.ne.v/100:o=-this.ne.v/100,this.xe.v>0?a=1-this.xe.v/100:l=1+this.xe.v/100;var h=BezierFactory.getBezierEasing(s,o,a,l).get,c=0,p=this.finalS,f=this.finalE,u=this.data.sh;if(u===2)c=h(c=f===p?n>=f?1:0:t(0,e(.5/(f-p)+(n-p)/(f-p),1)));else if(u===3)c=h(c=f===p?n>=f?0:1:1-t(0,e(.5/(f-p)+(n-p)/(f-p),1)));else if(u===4)f===p?c=0:(c=t(0,e(.5/(f-p)+(n-p)/(f-p),1)))<.5?c*=2:c=1-2*(c-.5),c=h(c);else if(u===5){if(f===p)c=0;else{var m=f-p,g=-m/2+(n=e(t(0,n+.5-p),f-p)),d=m/2;c=Math.sqrt(1-g*g/(d*d))}c=h(c)}else u===6?(f===p?c=0:(n=e(t(0,n+.5-p),f-p),c=(1+Math.cos(Math.PI+2*Math.PI*n/(f-p)))/2),c=h(c)):(n>=r(p)&&(c=t(0,e(n-p<0?e(f,1)-(p-n):f-n,1))),c=h(c));if(this.sm.v!==100){var y=.01*this.sm.v;y===0&&(y=1e-8);var v=.5-.5*y;c<v?c=0:(c=(c-v)/y)>1&&(c=1)}return c*this.a.v},getValue:function(n){this.iterateDynamicProperties(),this._mdf=n||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,n&&this.data.r===2&&(this.e.v=this._currentTextLength);var s=this.data.r===2?1:100/this.data.totalChars,o=this.o.v/s,a=this.s.v/s+o,l=this.e.v/s+o;if(a>l){var h=a;a=l,l=h}this.finalS=a,this.finalE=l}},extendPrototype([DynamicPropertyContainer],i),{getTextSelectorProp:function(n,s,o){return new i(n,s,o)}}}();function TextAnimatorDataProperty(t,e,r){var i={propType:!1},n=PropertyFactory.getProp,s=e.a;this.a={r:s.r?n(t,s.r,0,degToRads,r):i,rx:s.rx?n(t,s.rx,0,degToRads,r):i,ry:s.ry?n(t,s.ry,0,degToRads,r):i,sk:s.sk?n(t,s.sk,0,degToRads,r):i,sa:s.sa?n(t,s.sa,0,degToRads,r):i,s:s.s?n(t,s.s,1,.01,r):i,a:s.a?n(t,s.a,1,0,r):i,o:s.o?n(t,s.o,0,.01,r):i,p:s.p?n(t,s.p,1,0,r):i,sw:s.sw?n(t,s.sw,0,0,r):i,sc:s.sc?n(t,s.sc,1,0,r):i,fc:s.fc?n(t,s.fc,1,0,r):i,fh:s.fh?n(t,s.fh,0,0,r):i,fs:s.fs?n(t,s.fs,0,.01,r):i,fb:s.fb?n(t,s.fb,0,.01,r):i,t:s.t?n(t,s.t,0,0,r):i},this.s=TextSelectorProp.getTextSelectorProp(t,e.s,r),this.s.t=e.s.t}function TextAnimatorProperty(t,e,r){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=e,this._elem=r,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(r)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var t,e,r=this._textData.a.length,i=PropertyFactory.getProp;for(t=0;t<r;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:i(this._elem,this._textData.p.a,0,0,this),f:i(this._elem,this._textData.p.f,0,0,this),l:i(this._elem,this._textData.p.l,0,0,this),r:i(this._elem,this._textData.p.r,0,0,this),p:i(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=i(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 r,i,n,s,o,a,l,h,c,p,f,u,m,g,d,y,v,b,_,x=this._moreOptions.alignment.v,M=this._animatorsData,S=this._textData,w=this.mHelper,D=this._renderType,E=this.renderedLetters.length,T=t.l;if(this._hasMaskedPath){if(_=this._pathData.m,!this._pathData.n||this._pathData._mdf){var k,A=_.v;for(this._pathData.r.v&&(A=A.reverse()),o={tLength:0,segments:[]},s=A._length-1,y=0,n=0;n<s;n+=1)k=bez.buildBezierData(A.v[n],A.v[n+1],[A.o[n][0]-A.v[n][0],A.o[n][1]-A.v[n][1]],[A.i[n+1][0]-A.v[n+1][0],A.i[n+1][1]-A.v[n+1][1]]),o.tLength+=k.segmentLength,o.segments.push(k),y+=k.segmentLength;n=s,_.v.c&&(k=bez.buildBezierData(A.v[n],A.v[0],[A.o[n][0]-A.v[n][0],A.o[n][1]-A.v[n][1]],[A.i[0][0]-A.v[0][0],A.i[0][1]-A.v[0][1]]),o.tLength+=k.segmentLength,o.segments.push(k),y+=k.segmentLength),this._pathData.pi=o}if(o=this._pathData.pi,a=this._pathData.f.v,f=0,p=1,h=0,c=!0,g=o.segments,a<0&&_.v.c)for(o.tLength<Math.abs(a)&&(a=-Math.abs(a)%o.tLength),p=(m=g[f=g.length-1].points).length-1;a<0;)a+=m[p].partialLength,(p-=1)<0&&(p=(m=g[f-=1].points).length-1);u=(m=g[f].points)[p-1],d=(l=m[p]).partialLength}s=T.length,r=0,i=0;var P,I,O,F,C,L=1.2*t.finalSize*.714,R=!0;O=M.length;var z,H,G,N,Y,J,K,Z,pt,et,vt,ut,j=-1,Ft=a,ae=f,le=p,qt=-1,Kt="",Ut=this.defaultPropsArray;if(t.j===2||t.j===1){var St=0,Jt=0,Qt=t.j===2?-.5:-1,ge=0,Ze=!0;for(n=0;n<s;n+=1)if(T[n].n){for(St&&(St+=Jt);ge<n;)T[ge].animatorJustifyOffset=St,ge+=1;St=0,Ze=!0}else{for(I=0;I<O;I+=1)(P=M[I].a).t.propType&&(Ze&&t.j===2&&(Jt+=P.t.v*Qt),(C=M[I].s.getMult(T[n].anIndexes[I],S.a[I].s.totalChars)).length?St+=P.t.v*C[0]*Qt:St+=P.t.v*C*Qt);Ze=!1}for(St&&(St+=Jt);ge<n;)T[ge].animatorJustifyOffset=St,ge+=1}for(n=0;n<s;n+=1){if(w.reset(),N=1,T[n].n)r=0,i+=t.yOffset,i+=R?1:0,a=Ft,R=!1,this._hasMaskedPath&&(p=le,u=(m=g[f=ae].points)[p-1],d=(l=m[p]).partialLength,h=0),Kt="",vt="",pt="",ut="",Ut=this.defaultPropsArray;else{if(this._hasMaskedPath){if(qt!==T[n].line){switch(t.j){case 1:a+=y-t.lineWidths[T[n].line];break;case 2:a+=(y-t.lineWidths[T[n].line])/2}qt=T[n].line}j!==T[n].ind&&(T[j]&&(a+=T[j].extra),a+=T[n].an/2,j=T[n].ind),a+=x[0]*T[n].an*.005;var ye=0;for(I=0;I<O;I+=1)(P=M[I].a).p.propType&&((C=M[I].s.getMult(T[n].anIndexes[I],S.a[I].s.totalChars)).length?ye+=P.p.v[0]*C[0]:ye+=P.p.v[0]*C),P.a.propType&&((C=M[I].s.getMult(T[n].anIndexes[I],S.a[I].s.totalChars)).length?ye+=P.a.v[0]*C[0]:ye+=P.a.v[0]*C);for(c=!0,this._pathData.a.v&&(a=.5*T[0].an+(y-this._pathData.f.v-.5*T[0].an-.5*T[T.length-1].an)*j/(s-1),a+=this._pathData.f.v);c;)h+d>=a+ye||!m?(v=(a+ye-h)/l.partialLength,H=u.point[0]+(l.point[0]-u.point[0])*v,G=u.point[1]+(l.point[1]-u.point[1])*v,w.translate(-x[0]*T[n].an*.005,-x[1]*L*.01),c=!1):m&&(h+=l.partialLength,(p+=1)>=m.length&&(p=0,g[f+=1]?m=g[f].points:_.v.c?(p=0,m=g[f=0].points):(h-=l.partialLength,m=null)),m&&(u=l,d=(l=m[p]).partialLength));z=T[n].an/2-T[n].add,w.translate(-z,0,0)}else z=T[n].an/2-T[n].add,w.translate(-z,0,0),w.translate(-x[0]*T[n].an*.005,-x[1]*L*.01,0);for(I=0;I<O;I+=1)(P=M[I].a).t.propType&&(C=M[I].s.getMult(T[n].anIndexes[I],S.a[I].s.totalChars),r===0&&t.j===0||(this._hasMaskedPath?C.length?a+=P.t.v*C[0]:a+=P.t.v*C:C.length?r+=P.t.v*C[0]:r+=P.t.v*C));for(t.strokeWidthAnim&&(J=t.sw||0),t.strokeColorAnim&&(Y=t.sc?[t.sc[0],t.sc[1],t.sc[2]]:[0,0,0]),t.fillColorAnim&&t.fc&&(K=[t.fc[0],t.fc[1],t.fc[2]]),I=0;I<O;I+=1)(P=M[I].a).a.propType&&((C=M[I].s.getMult(T[n].anIndexes[I],S.a[I].s.totalChars)).length?w.translate(-P.a.v[0]*C[0],-P.a.v[1]*C[1],P.a.v[2]*C[2]):w.translate(-P.a.v[0]*C,-P.a.v[1]*C,P.a.v[2]*C));for(I=0;I<O;I+=1)(P=M[I].a).s.propType&&((C=M[I].s.getMult(T[n].anIndexes[I],S.a[I].s.totalChars)).length?w.scale(1+(P.s.v[0]-1)*C[0],1+(P.s.v[1]-1)*C[1],1):w.scale(1+(P.s.v[0]-1)*C,1+(P.s.v[1]-1)*C,1));for(I=0;I<O;I+=1){if(P=M[I].a,C=M[I].s.getMult(T[n].anIndexes[I],S.a[I].s.totalChars),P.sk.propType&&(C.length?w.skewFromAxis(-P.sk.v*C[0],P.sa.v*C[1]):w.skewFromAxis(-P.sk.v*C,P.sa.v*C)),P.r.propType&&(C.length?w.rotateZ(-P.r.v*C[2]):w.rotateZ(-P.r.v*C)),P.ry.propType&&(C.length?w.rotateY(P.ry.v*C[1]):w.rotateY(P.ry.v*C)),P.rx.propType&&(C.length?w.rotateX(P.rx.v*C[0]):w.rotateX(P.rx.v*C)),P.o.propType&&(C.length?N+=(P.o.v*C[0]-N)*C[0]:N+=(P.o.v*C-N)*C),t.strokeWidthAnim&&P.sw.propType&&(C.length?J+=P.sw.v*C[0]:J+=P.sw.v*C),t.strokeColorAnim&&P.sc.propType)for(Z=0;Z<3;Z+=1)C.length?Y[Z]+=(P.sc.v[Z]-Y[Z])*C[0]:Y[Z]+=(P.sc.v[Z]-Y[Z])*C;if(t.fillColorAnim&&t.fc){if(P.fc.propType)for(Z=0;Z<3;Z+=1)C.length?K[Z]+=(P.fc.v[Z]-K[Z])*C[0]:K[Z]+=(P.fc.v[Z]-K[Z])*C;P.fh.propType&&(K=C.length?addHueToRGB(K,P.fh.v*C[0]):addHueToRGB(K,P.fh.v*C)),P.fs.propType&&(K=C.length?addSaturationToRGB(K,P.fs.v*C[0]):addSaturationToRGB(K,P.fs.v*C)),P.fb.propType&&(K=C.length?addBrightnessToRGB(K,P.fb.v*C[0]):addBrightnessToRGB(K,P.fb.v*C))}}for(I=0;I<O;I+=1)(P=M[I].a).p.propType&&(C=M[I].s.getMult(T[n].anIndexes[I],S.a[I].s.totalChars),this._hasMaskedPath?C.length?w.translate(0,P.p.v[1]*C[0],-P.p.v[2]*C[1]):w.translate(0,P.p.v[1]*C,-P.p.v[2]*C):C.length?w.translate(P.p.v[0]*C[0],P.p.v[1]*C[1],-P.p.v[2]*C[2]):w.translate(P.p.v[0]*C,P.p.v[1]*C,-P.p.v[2]*C));if(t.strokeWidthAnim&&(pt=J<0?0:J),t.strokeColorAnim&&(et="rgb("+Math.round(255*Y[0])+","+Math.round(255*Y[1])+","+Math.round(255*Y[2])+")"),t.fillColorAnim&&t.fc&&(vt="rgb("+Math.round(255*K[0])+","+Math.round(255*K[1])+","+Math.round(255*K[2])+")"),this._hasMaskedPath){if(w.translate(0,-t.ls),w.translate(0,x[1]*L*.01+i,0),this._pathData.p.v){b=(l.point[1]-u.point[1])/(l.point[0]-u.point[0]);var hr=180*Math.atan(b)/Math.PI;l.point[0]<u.point[0]&&(hr+=180),w.rotate(-hr*Math.PI/180)}w.translate(H,G,0),a-=x[0]*T[n].an*.005,T[n+1]&&j!==T[n+1].ind&&(a+=T[n].an/2,a+=.001*t.tr*t.finalSize)}else{switch(w.translate(r,i,0),t.ps&&w.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:w.translate(T[n].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[T[n].line]),0,0);break;case 2:w.translate(T[n].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[T[n].line])/2,0,0)}w.translate(0,-t.ls),w.translate(z,0,0),w.translate(x[0]*T[n].an*.005,x[1]*L*.01,0),r+=T[n].l+.001*t.tr*t.finalSize}D==="html"?Kt=w.toCSS():D==="svg"?Kt=w.to2dCSS():Ut=[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]],ut=N}E<=n?(F=new LetterProps(ut,pt,et,vt,Kt,Ut),this.renderedLetters.push(F),E+=1,this.lettersChangedFlag=!0):(F=this.renderedLetters[n],this.lettersChangedFlag=F.update(ut,pt,et,vt,Kt,Ut)||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,r){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(t,e,r),this.textProperty=new TextProperty(this,t.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(t.t,this.renderType,this),this.initTransform(t,e,r),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),(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)},ITextElement.prototype.createPathShape=function(t,e){var r,i,n=e.length,s="";for(r=0;r<n;r+=1)e[r].ty==="sh"&&(i=e[r].ks.k,s+=buildShapeString(i,i.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,r,i,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[r]),0,0);break;case 2:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[r])/2,0,0)}e.translate(i,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(){};var emptyShapeData={shapes:[]};function SVGTextLottieElement(t,e,r){this.textSpans=[],this.renderType="svg",this.initElement(t,e,r)}function ISolidElement(t,e,r){this.initElement(t,e,r)}function NullElement(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initFrame(),this.initTransform(t,e,r),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}function SVGCompElement(t,e,r){this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,r),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 r="";if(e&&e.title){var i=createNS("title"),n=createElementID();i.setAttribute("id",n),i.textContent=e.title,this.svgElement.appendChild(i),r+=n}if(e&&e.description){var s=createNS("desc"),o=createElementID();s.setAttribute("id",o),s.textContent=e.description,this.svgElement.appendChild(s),r+=" "+o}r&&this.svgElement.setAttribute("aria-labelledby",r);var a=createNS("defs");this.svgElement.appendChild(a);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&&e.hideOnTransparent===!1),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||e.runExpressions===void 0||e.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:a,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function CVContextData(){var t;for(this.saved=[],this.cArrPos=0,this.cTr=new Matrix,this.cO=1,this.savedOp=createTypedArray("float32",15),t=0;t<15;t+=1)this.saved[t]=createTypedArray("float32",16);this._length=15}function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}function CVEffects(){}function CVMaskElement(t,e){var r;this.data=t,this.element=e,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var i=this.masksProperties.length,n=!1;for(r=0;r<i;r+=1)this.masksProperties[r].mode!=="n"&&(n=!0),this.viewData[r]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[r],3);this.hasMasks=n,n&&this.element.addRenderableComponent(this)}function CVBaseElement(){}function CVShapeData(t,e,r,i){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var n,s=4;e.ty==="rc"?s=5:e.ty==="el"?s=6:e.ty==="sr"&&(s=7),this.sh=ShapePropertyFactory.getShapeProp(t,e,s,t);var o,a=r.length;for(n=0;n<a;n+=1)r[n].closed||(o={transforms:i.addTransformSequence(r[n].transforms),trNodes:[]},this.styledShapes.push(o),r[n].elements.push(o))}function CVShapeElement(t,e,r){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(t,e,r)}function CVTextElement(t,e,r){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,r)}function CVImageElement(t,e,r){this.assetData=e.getAssetData(t.refId),this.img=e.imageLoader.getAsset(this.assetData),this.initElement(t,e,r)}function CVSolidElement(t,e,r){this.initElement(t,e,r)}function CanvasRendererBase(t,e){this.animationItem=t,this.renderConfig={clearCanvas:!e||e.clearCanvas===void 0||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||""},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"}function CVCompElement(t,e,r){this.completeLayers=!1,this.layers=t.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(t,e,r),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||e.clearCanvas===void 0||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||e.runExpressions===void 0||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"}function HBaseElement(){}function HSolidElement(t,e,r){this.initElement(t,e,r)}function HShapeElement(t,e,r){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(t,e,r),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(t,e,r){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(t,e,r)}function HCameraElement(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initHierarchy();var i=PropertyFactory.getProp;if(this.pe=i(this,t.pe,0,0,this),t.ks.p.s?(this.px=i(this,t.ks.p.x,1,0,this),this.py=i(this,t.ks.p.y,1,0,this),this.pz=i(this,t.ks.p.z,1,0,this)):this.p=i(this,t.ks.p,1,0,this),t.ks.a&&(this.a=i(this,t.ks.a,1,0,this)),t.ks.or.k.length&&t.ks.or.k[0].to){var n,s=t.ks.or.k.length;for(n=0;n<s;n+=1)t.ks.or.k[n].to=null,t.ks.or.k[n].ti=null}this.or=i(this,t.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=i(this,t.ks.rx,0,degToRads,this),this.ry=i(this,t.ks.ry,0,degToRads,this),this.rz=i(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,r){this.assetData=e.getAssetData(t.refId),this.initElement(t,e,r)}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&&e.hideOnTransparent===!1),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,r){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,r),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&&e.hideOnTransparent===!1),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||e.runExpressions===void 0||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"}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,r=t.length,i=[],n="";e<r;)t[e]===String.fromCharCode(13)||t[e]===String.fromCharCode(3)?(i.push(n),n=""):n+=t[e],e+=1;return i.push(n),i},SVGTextLottieElement.prototype.buildShapeData=function(t,e){if(t.shapes&&t.shapes.length){var r=t.shapes[0];if(r.it){var i=r.it[r.it.length-1];i.s&&(i.s.k[0]=e,i.s.k[1]=e)}}return t},SVGTextLottieElement.prototype.buildNewText=function(){var t,e;this.addDynamicProperty(this);var r=this.textProperty.currentData;this.renderedLetters=createSizedArray(r?r.l.length:0),r.fc?this.layerElement.setAttribute("fill",this.buildColor(r.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),r.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(r.sc)),this.layerElement.setAttribute("stroke-width",r.sw)),this.layerElement.setAttribute("font-size",r.finalSize);var i=this.globalData.fontManager.getFontByName(r.f);if(i.fClass)this.layerElement.setAttribute("class",i.fClass);else{this.layerElement.setAttribute("font-family",i.fFamily);var n=r.fWeight,s=r.fStyle;this.layerElement.setAttribute("font-style",s),this.layerElement.setAttribute("font-weight",n)}this.layerElement.setAttribute("aria-label",r.t);var o,a=r.l||[],l=!!this.globalData.fontManager.chars;e=a.length;var h=this.mHelper,c=this.data.singleShape,p=0,f=0,u=!0,m=.001*r.tr*r.finalSize;if(!c||l||r.sz){var g,d=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||t===0){if(o=d>t?this.textSpans[t].span:createNS(l?"g":"text"),d<=t){if(o.setAttribute("stroke-linecap","butt"),o.setAttribute("stroke-linejoin","round"),o.setAttribute("stroke-miterlimit","4"),this.textSpans[t].span=o,l){var y=createNS("g");o.appendChild(y),this.textSpans[t].childSpan=y}this.textSpans[t].span=o,this.layerElement.appendChild(o)}o.style.display="inherit"}if(h.reset(),c&&(a[t].n&&(p=-m,f+=r.yOffset,f+=u?1:0,u=!1),this.applyTextPropertiesToMatrix(r,h,a[t].line,p,f),p+=a[t].l||0,p+=m),l){var v;if((g=this.globalData.fontManager.getCharData(r.finalText[t],i.fStyle,this.globalData.fontManager.getFontByName(r.f).fFamily)).t===1)v=new SVGCompElement(g.data,this.globalData,this);else{var b=emptyShapeData;g.data&&g.data.shapes&&(b=this.buildShapeData(g.data,r.finalSize)),v=new SVGShapeElement(b,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),g.t===1&&this.textSpans[t].childSpan.setAttribute("transform","scale("+r.finalSize/100+","+r.finalSize/100+")")}else c&&o.setAttribute("transform","translate("+h.props[12]+","+h.props[13]+")"),o.textContent=a[t].val,o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}c&&o&&o.setAttribute("d","")}else{var x=this.textContainer,M="start";switch(r.j){case 1:M="end";break;case 2:M="middle";break;default:M="start"}x.setAttribute("text-anchor",M),x.setAttribute("letter-spacing",m);var S=this.buildTextContents(r.finalText);for(e=S.length,f=r.ps?r.ps[1]+r.ascent:0,t=0;t<e;t+=1)(o=this.textSpans[t].span||createNS("tspan")).textContent=S[t],o.setAttribute("x",0),o.setAttribute("y",f),o.style.display="inherit",x.appendChild(o),this.textSpans[t]||(this.textSpans[t]={span:null,glyph:null}),this.textSpans[t].span=o,f+=r.finalLineHeight;this.layerElement.appendChild(x)}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,r=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,t=0;t<r;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.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var t,e;this._sizeChanged=!0;var r,i,n,s=this.textAnimator.renderedLetters,o=this.textProperty.currentData.l;for(e=o.length,t=0;t<e;t+=1)o[t].n||(r=s[t],i=this.textSpans[t].span,(n=this.textSpans[t].glyph)&&n.renderFrame(),r._mdf.m&&i.setAttribute("transform",r.m),r._mdf.o&&i.setAttribute("opacity",r.o),r._mdf.sw&&i.setAttribute("stroke-width",r.sw),r._mdf.sc&&i.setAttribute("stroke",r.sc),r._mdf.fc&&i.setAttribute("fill",r.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,0,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),this.renderConfig.focusable!==void 0&&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 r=createNS("clipPath"),i=createNS("rect");i.setAttribute("width",t.w),i.setAttribute("height",t.h),i.setAttribute("x",0),i.setAttribute("y",0);var n=createElementID();r.setAttribute("id",n),r.appendChild(i),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+n+")"),e.appendChild(r),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.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(t){var e=0,r=this.layers.length;for(e=0;e<r;e+=1)if(this.layers[e].ind===t)return e;return-1},SVGRendererBase.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&this.layers[t].ty!==99){e[t]=!0;var r=this.createItem(this.layers[t]);if(e[t]=r,getExpressionsPlugin()&&(this.layers[t].ty===0&&this.globalData.projectInterface.registerComposition(r),r.initExpressions()),this.appendElementInPos(r,t),this.layers[t].tt){var i="tp"in this.layers[t]?this.findIndexByInd(this.layers[t].tp):t-1;if(i===-1)return;if(this.elements[i]&&this.elements[i]!==!0){var n=e[i].getMatte(this.layers[t].tt);r.setMatte(n)}else this.buildItem(i),this.addPendingElement(r)}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();if(t.checkParenting(),t.data.tt)for(var e=0,r=this.elements.length;e<r;){if(this.elements[e]===t){var i="tp"in t.data?this.findIndexByInd(t.data.tp):e-1,n=this.elements[i].getMatte(this.layers[e].tt);t.setMatte(n);break}e+=1}}},SVGRendererBase.prototype.renderFrame=function(t){if(this.renderedFrame!==t&&!this.destroyed){var e;t===null?t=this.renderedFrame:this.renderedFrame=t,this.globalData.frameNum=t,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=t,this.globalData._mdf=!1;var r=this.layers.length;for(this.completeLayers||this.checkLayers(t),e=r-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<r;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(t,e){var r=t.getBaseElement();if(r){for(var i,n=0;n<e;)this.elements[n]&&this.elements[n]!==!0&&this.elements[n].getBaseElement()&&(i=this.elements[n].getBaseElement()),n+=1;i?this.layerElement.insertBefore(r,i):this.layerElement.appendChild(r)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initTransform(t,e,r),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 r,i=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),r=i-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&(this.elements[r].prepareFrame(this.renderedFrame-this.layers[r].st),this.elements[r]._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)},CVContextData.prototype.duplicate=function(){var t=2*this._length,e=this.savedOp;this.savedOp=createTypedArray("float32",t),this.savedOp.set(e);var r=0;for(r=this._length;r<t;r+=1)this.saved[r]=createTypedArray("float32",16);this._length=t},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.cO=1},ShapeTransformManager.prototype={addTransformSequence:function(t){var e,r=t.length,i="_";for(e=0;e<r;e+=1)i+=t[e].transform.key+"_";var n=this.sequences[i];return n||(n={transforms:[].concat(t),finalTransform:new Matrix,_mdf:!1},this.sequences[i]=n,this.sequenceList.push(n)),n},processSequence:function(t,e){for(var r,i=0,n=t.transforms.length,s=e;i<n&&!e;){if(t.transforms[i].transform.mProps._mdf){s=!0;break}i+=1}if(s)for(t.finalTransform.reset(),i=n-1;i>=0;i-=1)r=t.transforms[i].transform.mProps.v.props,t.finalTransform.transform(r[0],r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15]);t._mdf=s},processSequences:function(t){var e,r=this.sequenceList.length;for(e=0;e<r;e+=1)this.processSequence(this.sequenceList[e],t)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}},CVEffects.prototype.renderFrame=function(){},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var t,e,r,i,n=this.element.finalTransform.mat,s=this.element.canvasContext,o=this.masksProperties.length;for(s.beginPath(),t=0;t<o;t+=1)if(this.masksProperties[t].mode!=="n"){var a;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)),i=this.viewData[t].v,e=n.applyToPointArray(i.v[0][0],i.v[0][1],0),s.moveTo(e[0],e[1]);var l=i._length;for(a=1;a<l;a+=1)r=n.applyToTriplePoints(i.o[a-1],i.i[a],i.v[a]),s.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5]);r=n.applyToTriplePoints(i.o[a-1],i.i[0],i.v[0]),s.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5])}this.element.globalData.renderer.save(!0),s.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null},CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){this.canvasContext=this.globalData.canvasContext,this.renderableEffectsManager=new CVEffects(this)},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)},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)},renderFrame:function(){if(!this.hidden&&!this.data.hd){this.renderTransform(),this.renderRenderable(),this.setBlendMode();var t=this.data.ty===0;this.globalData.renderer.save(t),this.globalData.renderer.ctxTransform(this.finalTransform.mat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.mProp.o.v),this.renderInnerContent(),this.globalData.renderer.restore(t),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 r={data:t,type:t.ty,preTransforms:this.transformsManager.addTransformSequence(e),transforms:[],elements:[],closed:t.hd===!0},i={};if(t.ty==="fl"||t.ty==="st"?(i.c=PropertyFactory.getProp(this,t.c,1,255,this),i.c.k||(r.co="rgb("+bmFloor(i.c.v[0])+","+bmFloor(i.c.v[1])+","+bmFloor(i.c.v[2])+")")):t.ty!=="gf"&&t.ty!=="gs"||(i.s=PropertyFactory.getProp(this,t.s,1,null,this),i.e=PropertyFactory.getProp(this,t.e,1,null,this),i.h=PropertyFactory.getProp(this,t.h||{k:0},0,.01,this),i.a=PropertyFactory.getProp(this,t.a||{k:0},0,degToRads,this),i.g=new GradientProperty(this,t.g,this)),i.o=PropertyFactory.getProp(this,t.o,0,.01,this),t.ty==="st"||t.ty==="gs"){if(r.lc=lineCapEnum[t.lc||2],r.lj=lineJoinEnum[t.lj||2],t.lj==1&&(r.ml=t.ml),i.w=PropertyFactory.getProp(this,t.w,0,null,this),i.w.k||(r.wi=i.w.v),t.d){var n=new DashProperty(this,t.d,"canvas",this);i.d=n,i.d.k||(r.da=i.d.dashArray,r.do=i.d.dashoffset[0])}}else r.r=t.r===2?"evenodd":"nonzero";return this.stylesList.push(r),i.style=r,i},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,r=this.stylesList.length;for(e=0;e<r;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,r=t.length;for(e=0;e<r;e+=1)t[e].closed=!0},CVShapeElement.prototype.searchShapes=function(t,e,r,i,n){var s,o,a,l,h,c,p=t.length-1,f=[],u=[],m=[].concat(n);for(s=p;s>=0;s-=1){if((l=this.searchProcessedElement(t[s]))?e[s]=r[l-1]:t[s]._shouldRender=i,t[s].ty==="fl"||t[s].ty==="st"||t[s].ty==="gf"||t[s].ty==="gs")l?e[s].style.closed=!1:e[s]=this.createStyleElement(t[s],m),f.push(e[s].style);else if(t[s].ty==="gr"){if(l)for(a=e[s].it.length,o=0;o<a;o+=1)e[s].prevViewData[o]=e[s].it[o];else e[s]=this.createGroupElement(t[s]);this.searchShapes(t[s].it,e[s].it,e[s].prevViewData,i,m)}else t[s].ty==="tr"?(l||(c=this.createTransformElement(t[s]),e[s]=c),m.push(e[s]),this.addTransformToStyleList(e[s])):t[s].ty==="sh"||t[s].ty==="rc"||t[s].ty==="el"||t[s].ty==="sr"?l||(e[s]=this.createShapeElement(t[s])):t[s].ty==="tm"||t[s].ty==="rd"||t[s].ty==="pb"||t[s].ty==="zz"||t[s].ty==="op"?(l?(h=e[s]).closed=!1:((h=ShapeModifiers.getModifier(t[s].ty)).init(this,t[s]),e[s]=h,this.shapeModifiers.push(h)),u.push(h)):t[s].ty==="rp"&&(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),i=!1),u.push(h));this.addProcessedElement(t[s],s+1)}for(this.removeTransformFromStyleList(),this.closeStyles(f),p=u.length,s=0;s<p;s+=1)u[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,r,i,n,s,o,a,l,h=this.stylesList.length,c=this.globalData.renderer,p=this.globalData.canvasContext;for(t=0;t<h;t+=1)if(((a=(l=this.stylesList[t]).type)!=="st"&&a!=="gs"||l.wi!==0)&&l.data._shouldRender&&l.coOp!==0&&this.globalData.currentGlobalAlpha!==0){for(c.save(),s=l.elements,a==="st"||a==="gs"?(p.strokeStyle=a==="st"?l.co:l.grd,p.lineWidth=l.wi,p.lineCap=l.lc,p.lineJoin=l.lj,p.miterLimit=l.ml||0):p.fillStyle=a==="fl"?l.co:l.grd,c.ctxOpacity(l.coOp),a!=="st"&&a!=="gs"&&p.beginPath(),c.ctxTransform(l.preTransforms.finalTransform.props),r=s.length,e=0;e<r;e+=1){for(a!=="st"&&a!=="gs"||(p.beginPath(),l.da&&(p.setLineDash(l.da),p.lineDashOffset=l.do)),n=(o=s[e].trNodes).length,i=0;i<n;i+=1)o[i].t==="m"?p.moveTo(o[i].p[0],o[i].p[1]):o[i].t==="c"?p.bezierCurveTo(o[i].pts[0],o[i].pts[1],o[i].pts[2],o[i].pts[3],o[i].pts[4],o[i].pts[5]):p.closePath();a!=="st"&&a!=="gs"||(p.stroke(),l.da&&p.setLineDash(this.dashResetter))}a!=="st"&&a!=="gs"&&p.fill(l.r),c.restore()}},CVShapeElement.prototype.renderShape=function(t,e,r,i){var n,s;for(s=t,n=e.length-1;n>=0;n-=1)e[n].ty==="tr"?(s=r[n].transform,this.renderShapeTransform(t,s)):e[n].ty==="sh"||e[n].ty==="el"||e[n].ty==="rc"||e[n].ty==="sr"?this.renderPath(e[n],r[n]):e[n].ty==="fl"?this.renderFill(e[n],r[n],s):e[n].ty==="st"?this.renderStroke(e[n],r[n],s):e[n].ty==="gf"||e[n].ty==="gs"?this.renderGradientFill(e[n],r[n],s):e[n].ty==="gr"?this.renderShape(s,e[n].it,r[n].it):e[n].ty;i&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(t,e){if(this._isFirstFrame||e._mdf||t.transforms._mdf){var r,i,n,s=t.trNodes,o=e.paths,a=o._length;s.length=0;var l=t.transforms.finalTransform;for(n=0;n<a;n+=1){var h=o.shapes[n];if(h&&h.v){for(i=h._length,r=1;r<i;r+=1)r===1&&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[r-1],h.i[r],h.v[r])});i===1&&s.push({t:"m",p:l.applyToPointArray(h.v[0][0],h.v[0][1],0)}),h.c&&i&&(s.push({t:"c",pts:l.applyToTriplePoints(h.o[r-1],h.i[0],h.v[0])}),s.push({t:"z"}))}}t.trNodes=s}},CVShapeElement.prototype.renderPath=function(t,e){if(t.hd!==!0&&t._shouldRender){var r,i=e.styledShapes.length;for(r=0;r<i;r+=1)this.renderStyledShape(e.styledShapes[r],e.sh)}},CVShapeElement.prototype.renderFill=function(t,e,r){var i=e.style;(e.c._mdf||this._isFirstFrame)&&(i.co="rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||r._opMdf||this._isFirstFrame)&&(i.coOp=e.o.v*r.opacity)},CVShapeElement.prototype.renderGradientFill=function(t,e,r){var i,n=e.style;if(!n.grd||e.g._mdf||e.s._mdf||e.e._mdf||t.t!==1&&(e.h._mdf||e.a._mdf)){var s,o=this.globalData.canvasContext,a=e.s.v,l=e.e.v;if(t.t===1)i=o.createLinearGradient(a[0],a[1],l[0],l[1]);else{var h=Math.sqrt(Math.pow(a[0]-l[0],2)+Math.pow(a[1]-l[1],2)),c=Math.atan2(l[1]-a[1],l[0]-a[0]),p=e.h.v;p>=1?p=.99:p<=-1&&(p=-.99);var f=h*p,u=Math.cos(c+e.a.v)*f+a[0],m=Math.sin(c+e.a.v)*f+a[1];i=o.createRadialGradient(u,m,0,a[0],a[1],h)}var g=t.g.p,d=e.g.c,y=1;for(s=0;s<g;s+=1)e.g._hasOpacity&&e.g._collapsable&&(y=e.g.o[2*s+1]),i.addColorStop(d[4*s]/100,"rgba("+d[4*s+1]+","+d[4*s+2]+","+d[4*s+3]+","+y+")");n.grd=i}n.coOp=e.o.v*r.opacity},CVShapeElement.prototype.renderStroke=function(t,e,r){var i=e.style,n=e.d;n&&(n._mdf||this._isFirstFrame)&&(i.da=n.dashArray,i.do=n.dashoffset[0]),(e.c._mdf||this._isFirstFrame)&&(i.co="rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||r._opMdf||this._isFirstFrame)&&(i.coOp=e.o.v*r.opacity),(e.w._mdf||this._isFirstFrame)&&(i.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 r=!1;t.sc&&(r=!0,this.values.stroke=this.buildColor(t.sc),this.values.sWidth=t.sw);var i,n,s,o,a,l,h,c,p,f,u,m,g=this.globalData.fontManager.getFontByName(t.f),d=t.l,y=this.mHelper;this.stroke=r,this.values.fValue=t.finalSize+"px "+this.globalData.fontManager.getFontByName(t.f).fFamily,n=t.finalText.length;var v=this.data.singleShape,b=.001*t.tr*t.finalSize,_=0,x=0,M=!0,S=0;for(i=0;i<n;i+=1){o=(s=this.globalData.fontManager.getCharData(t.finalText[i],g.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily))&&s.data||{},y.reset(),v&&d[i].n&&(_=-b,x+=t.yOffset,x+=M?1:0,M=!1),p=(h=o.shapes?o.shapes[0].it:[]).length,y.scale(t.finalSize/100,t.finalSize/100),v&&this.applyTextPropertiesToMatrix(t,y,d[i].line,_,x),u=createSizedArray(p-1);var w=0;for(c=0;c<p;c+=1)if(h[c].ty==="sh"){for(l=h[c].ks.k.i.length,f=h[c].ks.k,m=[],a=1;a<l;a+=1)a===1&&m.push(y.applyToX(f.v[0][0],f.v[0][1],0),y.applyToY(f.v[0][0],f.v[0][1],0)),m.push(y.applyToX(f.o[a-1][0],f.o[a-1][1],0),y.applyToY(f.o[a-1][0],f.o[a-1][1],0),y.applyToX(f.i[a][0],f.i[a][1],0),y.applyToY(f.i[a][0],f.i[a][1],0),y.applyToX(f.v[a][0],f.v[a][1],0),y.applyToY(f.v[a][0],f.v[a][1],0));m.push(y.applyToX(f.o[a-1][0],f.o[a-1][1],0),y.applyToY(f.o[a-1][0],f.o[a-1][1],0),y.applyToX(f.i[0][0],f.i[0][1],0),y.applyToY(f.i[0][0],f.i[0][1],0),y.applyToX(f.v[0][0],f.v[0][1],0),y.applyToY(f.v[0][0],f.v[0][1],0)),u[w]=m,w+=1}v&&(_+=d[i].l,_+=b),this.textSpans[S]?this.textSpans[S].elem=u:this.textSpans[S]={elem:u},S+=1}},CVTextElement.prototype.renderInnerContent=function(){var t,e,r,i,n,s,o=this.canvasContext;o.font=this.values.fValue,o.lineCap="butt",o.lineJoin="miter",o.miterLimit=4,this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var a,l=this.textAnimator.renderedLetters,h=this.textProperty.currentData.l;e=h.length;var c,p,f=null,u=null,m=null;for(t=0;t<e;t+=1)if(!h[t].n){if((a=l[t])&&(this.globalData.renderer.save(),this.globalData.renderer.ctxTransform(a.p),this.globalData.renderer.ctxOpacity(a.o)),this.fill){for(a&&a.fc?f!==a.fc&&(f=a.fc,o.fillStyle=a.fc):f!==this.values.fill&&(f=this.values.fill,o.fillStyle=this.values.fill),i=(c=this.textSpans[t].elem).length,this.globalData.canvasContext.beginPath(),r=0;r<i;r+=1)for(s=(p=c[r]).length,this.globalData.canvasContext.moveTo(p[0],p[1]),n=2;n<s;n+=6)this.globalData.canvasContext.bezierCurveTo(p[n],p[n+1],p[n+2],p[n+3],p[n+4],p[n+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.fill()}if(this.stroke){for(a&&a.sw?m!==a.sw&&(m=a.sw,o.lineWidth=a.sw):m!==this.values.sWidth&&(m=this.values.sWidth,o.lineWidth=this.values.sWidth),a&&a.sc?u!==a.sc&&(u=a.sc,o.strokeStyle=a.sc):u!==this.values.stroke&&(u=this.values.stroke,o.strokeStyle=this.values.stroke),i=(c=this.textSpans[t].elem).length,this.globalData.canvasContext.beginPath(),r=0;r<i;r+=1)for(s=(p=c[r]).length,this.globalData.canvasContext.moveTo(p[0],p[1]),n=2;n<s;n+=6)this.globalData.canvasContext.bezierCurveTo(p[n],p[n+1],p[n+2],p[n+3],p[n+4],p[n+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.stroke()}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,r,i=t.getContext("2d"),n=this.img.width,s=this.img.height,o=n/s,a=this.assetData.w/this.assetData.h,l=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;o>a&&l==="xMidYMid slice"||o<a&&l!=="xMidYMid slice"?e=(r=s)*a:r=(e=n)/a,i.drawImage(this.img,(n-e)/2,(s-r)/2,e,r,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(){var t=this.canvasContext;t.fillStyle=this.data.sc,t.fillRect(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){if(t[0]!==1||t[1]!==0||t[4]!==0||t[5]!==1||t[12]!==0||t[13]!==0)if(this.renderConfig.clearCanvas){this.transformMat.cloneFromProps(t);var e=this.contextData.cTr.props;this.transformMat.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]),this.contextData.cTr.cloneFromProps(this.transformMat.props);var r=this.contextData.cTr.props;this.canvasContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13])}else this.canvasContext.transform(t[0],t[1],t[4],t[5],t[12],t[13])},CanvasRendererBase.prototype.ctxOpacity=function(t){if(!this.renderConfig.clearCanvas)return this.canvasContext.globalAlpha*=t<0?0:t,void(this.globalData.currentGlobalAlpha=this.contextData.cO);this.contextData.cO*=t<0?0:t,this.globalData.currentGlobalAlpha!==this.contextData.cO&&(this.canvasContext.globalAlpha=this.contextData.cO,this.globalData.currentGlobalAlpha=this.contextData.cO)},CanvasRendererBase.prototype.reset=function(){this.renderConfig.clearCanvas?this.contextData.reset():this.canvasContext.restore()},CanvasRendererBase.prototype.save=function(t){if(this.renderConfig.clearCanvas){t&&this.canvasContext.save();var e,r=this.contextData.cTr.props;this.contextData._length<=this.contextData.cArrPos&&this.contextData.duplicate();var i=this.contextData.saved[this.contextData.cArrPos];for(e=0;e<16;e+=1)i[e]=r[e];this.contextData.savedOp[this.contextData.cArrPos]=this.contextData.cO,this.contextData.cArrPos+=1}else this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(t){if(this.renderConfig.clearCanvas){t&&(this.canvasContext.restore(),this.globalData.blendMode="source-over"),this.contextData.cArrPos-=1;var e,r=this.contextData.saved[this.contextData.cArrPos],i=this.contextData.cTr.props;for(e=0;e<16;e+=1)i[e]=r[e];this.canvasContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13]),r=this.contextData.savedOp[this.contextData.cArrPos],this.contextData.cO=r,this.globalData.currentGlobalAlpha!==r&&(this.canvasContext.globalAlpha=r,this.globalData.currentGlobalAlpha=r)}else 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 r="0px 0px 0px";e.transformOrigin=r,e.mozTransformOrigin=r,e.webkitTransformOrigin=r,e["-webkit-transform"]=r,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.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 r,i,n,s;if(this.reset(),t?(r=t,i=e,this.canvasContext.canvas.width=r,this.canvasContext.canvas.height=i):(this.animationItem.wrapper&&this.animationItem.container?(r=this.animationItem.wrapper.offsetWidth,i=this.animationItem.wrapper.offsetHeight):(r=this.canvasContext.canvas.width,i=this.canvasContext.canvas.height),this.canvasContext.canvas.width=r*this.renderConfig.dpr,this.canvasContext.canvas.height=i*this.renderConfig.dpr),this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var o=this.renderConfig.preserveAspectRatio.split(" "),a=o[1]||"meet",l=o[0]||"xMidYMid",h=l.substr(0,4),c=l.substr(4);n=r/i,(s=this.transformCanvas.w/this.transformCanvas.h)>n&&a==="meet"||s<n&&a==="slice"?(this.transformCanvas.sx=r/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=r/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=i/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=i/(this.transformCanvas.h/this.renderConfig.dpr)),this.transformCanvas.tx=h==="xMid"&&(s<n&&a==="meet"||s>n&&a==="slice")?(r-this.transformCanvas.w*(i/this.transformCanvas.h))/2*this.renderConfig.dpr:h==="xMax"&&(s<n&&a==="meet"||s>n&&a==="slice")?(r-this.transformCanvas.w*(i/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty=c==="YMid"&&(s>n&&a==="meet"||s<n&&a==="slice")?(i-this.transformCanvas.h*(r/this.transformCanvas.w))/2*this.renderConfig.dpr:c==="YMax"&&(s>n&&a==="meet"||s<n&&a==="slice")?(i-this.transformCanvas.h*(r/this.transformCanvas.w))*this.renderConfig.dpr:0}else this.renderConfig.preserveAspectRatio==="none"?(this.transformCanvas.sx=r/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=i/(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.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(t,e){if((this.renderedFrame!==t||this.renderConfig.clearCanvas!==!0||e)&&!this.destroyed&&t!==-1){var r;this.renderedFrame=t,this.globalData.frameNum=t-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||e,this.globalData.projectInterface.currentFrame=t;var i=this.layers.length;for(this.completeLayers||this.checkLayers(t),r=0;r<i;r+=1)(this.completeLayers||this.elements[r])&&this.elements[r].prepareFrame(t-this.layers[r].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),r=i-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&this.layers[t].ty!==99){var r=this.createItem(this.layers[t],this,this.globalData);e[t]=r,r.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"},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),this.data.bm!==0&&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 r,i=t.length;for(r=0;r<i;r+=1)e=t[r].mProps.v.applyToPointArray(e[0],e[1],0);return e},HShapeElement.prototype.calculateShapeBoundingBox=function(t,e){var r,i,n,s,o,a=t.sh.v,l=t.transformers,h=a._length;if(!(h<=1)){for(r=0;r<h-1;r+=1)i=this.getTransformedPoint(l,a.v[r]),n=this.getTransformedPoint(l,a.o[r]),s=this.getTransformedPoint(l,a.i[r+1]),o=this.getTransformedPoint(l,a.v[r+1]),this.checkBounds(i,n,s,o,e);a.c&&(i=this.getTransformedPoint(l,a.v[r]),n=this.getTransformedPoint(l,a.o[r]),s=this.getTransformedPoint(l,a.i[0]),o=this.getTransformedPoint(l,a.v[0]),this.checkBounds(i,n,s,o,e))}},HShapeElement.prototype.checkBounds=function(t,e,r,i,n){this.getBoundsOfCurve(t,e,r,i);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,r,i){for(var n,s,o,a,l,h,c,p=[[t[0],i[0]],[t[1],i[1]]],f=0;f<2;++f)s=6*t[f]-12*e[f]+6*r[f],n=-3*t[f]+9*e[f]-9*r[f]+3*i[f],o=3*e[f]-3*t[f],s|=0,o|=0,(n|=0)===0&&s===0||(n===0?(a=-o/s)>0&&a<1&&p[f].push(this.calculateF(a,t,e,r,i,f)):(l=s*s-4*o*n)>=0&&((h=(-s+bmSqrt(l))/(2*n))>0&&h<1&&p[f].push(this.calculateF(h,t,e,r,i,f)),(c=(-s-bmSqrt(l))/(2*n))>0&&c<1&&p[f].push(this.calculateF(c,t,e,r,i,f))));this.shapeBoundingBox.left=bmMin.apply(null,p[0]),this.shapeBoundingBox.top=bmMin.apply(null,p[1]),this.shapeBoundingBox.right=bmMax.apply(null,p[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,p[1])},HShapeElement.prototype.calculateF=function(t,e,r,i,n,s){return bmPow(1-t,3)*e[s]+3*bmPow(1-t,2)*t*r[s]+3*(1-t)*bmPow(t,2)*i[s]+bmPow(t,3)*n[s]},HShapeElement.prototype.calculateBoundingBox=function(t,e){var r,i=t.length;for(r=0;r<i;r+=1)t[r]&&t[r].sh?this.calculateShapeBoundingBox(t[r],e):t[r]&&t[r].it?this.calculateBoundingBox(t[r].it,e):t[r]&&t[r].style&&t[r].w&&this.expandStrokeBoundingBox(t[r].w,e)},HShapeElement.prototype.expandStrokeBoundingBox=function(t,e){var r=0;if(t.keyframes){for(var i=0;i<t.keyframes.length;i+=1){var n=t.keyframes[i].s;n>r&&(r=n)}r*=t.mult}else r=t.v*t.mult;e.x-=r,e.xMax+=r,e.y-=r,e.yMax+=r},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 r=!1;if(this.currentBBox.w!==t.width&&(this.currentBBox.w=t.width,this.shapeCont.setAttribute("width",t.width),r=!0),this.currentBBox.h!==t.height&&(this.currentBBox.h=t.height,this.shapeCont.setAttribute("height",t.height),r=!0),r||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 i=this.shapeCont.style,n="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";i.transform=n,i.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,r=t.fc?this.buildColor(t.fc):"rgba(0,0,0,0)";e.fill=r,e.color=r,t.sc&&(e.stroke=this.buildColor(t.sc),e.strokeWidth=t.sw+"px");var i,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 o=t.fWeight,a=t.fStyle;e.fontStyle=a,e.fontWeight=o}var l,h,c,p=t.l;n=p.length;var f,u=this.mHelper,m="",g=0;for(i=0;i<n;i+=1){if(this.globalData.fontManager.chars?(this.textPaths[g]?l=this.textPaths[g]:((l=createNS("path")).setAttribute("stroke-linecap",lineCapEnum[1]),l.setAttribute("stroke-linejoin",lineJoinEnum[2]),l.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[g]?c=(h=this.textSpans[g]).children[0]:((h=createTag("div")).style.lineHeight=0,(c=createNS("svg")).appendChild(l),styleDiv(h)))):this.isMasked?l=this.textPaths[g]?this.textPaths[g]:createNS("text"):this.textSpans[g]?(h=this.textSpans[g],l=this.textPaths[g]):(styleDiv(h=createTag("span")),styleDiv(l=createTag("span")),h.appendChild(l)),this.globalData.fontManager.chars){var d,y=this.globalData.fontManager.getCharData(t.finalText[i],s.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily);if(d=y?y.data:null,u.reset(),d&&d.shapes&&d.shapes.length&&(f=d.shapes[0].it,u.scale(t.finalSize/100,t.finalSize/100),m=this.createPathShape(u,f),l.setAttribute("d",m)),this.isMasked)this.innerElem.appendChild(l);else{if(this.innerElem.appendChild(h),d&&d.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 b=c.style,_="translate("+(v.x-1)+"px,"+(v.y-1)+"px)";b.transform=_,b.webkitTransform=_,p[i].yOffset=v.y-1}else c.setAttribute("width",1),c.setAttribute("height",1);h.appendChild(c)}}else if(l.textContent=p[i].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 x=l.style,M="translate3d(0,"+-t.finalSize/1.2+"px,0)";x.transform=M,x.webkitTransform=M}this.isMasked?this.textSpans[g]=l:this.textSpans[g]=h,this.textSpans[g].style.display="block",this.textPaths[g]=l,g+=1}for(;g<this.textSpans.length;)this.textSpans[g].style.display="none",g+=1},HTextElement.prototype.renderInnerContent=function(){var t;if(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 r,i,n,s,o,a=0,l=this.textAnimator.renderedLetters,h=this.textProperty.currentData.l;for(i=h.length,r=0;r<i;r+=1)h[r].n?a+=1:(s=this.textSpans[r],o=this.textPaths[r],n=l[a],a+=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&&o.setAttribute("stroke-width",n.sw),n.sc&&n._mdf.sc&&o.setAttribute("stroke",n.sc),n.fc&&n._mdf.fc&&(o.setAttribute("fill",n.fc),o.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 p="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";t.transform=p,t.webkitTransform=p}}}},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var t,e,r,i,n=this.comp.threeDElements.length;for(t=0;t<n;t+=1)if((e=this.comp.threeDElements[t]).type==="3d"){r=e.perspectiveElem.style,i=e.container.style;var s=this.pe.v+"px",o="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";r.perspective=s,r.webkitPerspective=s,i.transformOrigin="0px 0px 0px",i.mozTransformOrigin="0px 0px 0px",i.webkitTransformOrigin="0px 0px 0px",r.transform=o,r.webkitTransform=o}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var t,e,r=this._isFirstFrame;if(this.hierarchy)for(e=this.hierarchy.length,t=0;t<e;t+=1)r=this.hierarchy[t].finalTransform.mProp._mdf||r;if(r||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 i=this.hierarchy[t].finalTransform.mProp;this.mat.translate(-i.p.v[0],-i.p.v[1],i.p.v[2]),this.mat.rotateX(-i.or.v[0]).rotateY(-i.or.v[1]).rotateZ(i.or.v[2]),this.mat.rotateX(-i.rx.v).rotateY(-i.ry.v).rotateZ(i.rz.v),this.mat.scale(1/i.s.v[0],1/i.s.v[1],1/i.s.v[2]),this.mat.translate(i.a.v[0],i.a.v[1],i.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)),o=[n[0]/s,n[1]/s,n[2]/s],a=Math.sqrt(o[2]*o[2]+o[0]*o[0]),l=Math.atan2(o[1],a),h=Math.atan2(o[0],-o[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 p,f,u;for(e=this.comp.threeDElements.length,t=0;t<e;t+=1)if((p=this.comp.threeDElements[t]).type==="3d"){if(c){var m=this.mat.toCSS();(u=p.container.style).transform=m,u.webkitTransform=m}this.pe._mdf&&((f=p.perspectiveElem.style).perspective=this.pe.v+"px",f.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null},extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData),e=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(e),e.crossOrigin="anonymous",e.src=t,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)},extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},HybridRendererBase.prototype.appendElementInPos=function(t,e){var r=t.getBaseElement();if(r){var i=this.layers[e];if(i.ddd&&this.supports3d)this.addTo3dContainer(r,e);else if(this.threeDElements)this.addTo3dContainer(r,e);else{for(var n,s,o=0;o<e;)this.elements[o]&&this.elements[o]!==!0&&this.elements[o].getBaseElement&&(s=this.elements[o],n=(this.layers[o].ddd?this.getThreeDContainerByPos(o):s.getBaseElement())||n),o+=1;n?i.ddd&&this.supports3d||this.layerElement.insertBefore(r,n):i.ddd&&this.supports3d||this.layerElement.appendChild(r)}}},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,r=this.threeDElements.length;e<r;){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 r,i,n=createTag("div");styleDiv(n);var s=createTag("div");if(styleDiv(s),e==="3d"){(r=n.style).width=this.globalData.compSize.w+"px",r.height=this.globalData.compSize.h+"px",r.webkitTransformOrigin="50% 50%",r.mozTransformOrigin="50% 50%",r.transformOrigin="50% 50%";var o="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(i=s.style).transform=o,i.webkitTransform=o}n.appendChild(s);var a={container:s,perspectiveElem:n,startPos:t,endPos:t,type:e};return this.threeDElements.push(a),a},HybridRendererBase.prototype.build3dContainers=function(){var t,e,r=this.layers.length,i="";for(t=0;t<r;t+=1)this.layers[t].ddd&&this.layers[t].ty!==3?(i!=="3d"&&(i="3d",e=this.createThreeDContainer(t,"3d")),e.endPos=Math.max(e.endPos,t)):(i!=="2d"&&(i="2d",e=this.createThreeDContainer(t,"2d")),e.endPos=Math.max(e.endPos,t));for(t=(r=this.threeDElements.length)-1;t>=0;t-=1)this.resizerElem.appendChild(this.threeDElements[t].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(t,e){for(var r=0,i=this.threeDElements.length;r<i;){if(e<=this.threeDElements[r].endPos){for(var n,s=this.threeDElements[r].startPos;s<e;)this.elements[s]&&this.elements[s].getBaseElement&&(n=this.elements[s].getBaseElement()),s+=1;n?this.threeDElements[r].container.insertBefore(t,n):this.threeDElements[r].container.appendChild(t);break}r+=1}},HybridRendererBase.prototype.configAnimation=function(t){var e=createTag("div"),r=this.animationItem.wrapper,i=e.style;i.width=t.w+"px",i.height=t.h+"px",this.resizerElem=e,styleDiv(e),i.transformStyle="flat",i.mozTransformStyle="flat",i.webkitTransformStyle="flat",this.renderConfig.className&&e.setAttribute("class",this.renderConfig.className),r.appendChild(e),i.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].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var t,e,r,i,n=this.animationItem.wrapper.offsetWidth,s=this.animationItem.wrapper.offsetHeight,o=n/s;this.globalData.compSize.w/this.globalData.compSize.h>o?(t=n/this.globalData.compSize.w,e=n/this.globalData.compSize.w,r=0,i=(s-this.globalData.compSize.h*(n/this.globalData.compSize.w))/2):(t=s/this.globalData.compSize.h,e=s/this.globalData.compSize.h,r=(n-this.globalData.compSize.w*(s/this.globalData.compSize.h))/2,i=0);var a=this.resizerElem.style;a.webkitTransform="matrix3d("+t+",0,0,0,0,"+e+",0,0,0,0,1,0,"+r+","+i+",0,1)",a.transform=a.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,r=this.globalData.compSize.h,i=this.threeDElements.length;for(t=0;t<i;t+=1){var n=this.threeDElements[t].perspectiveElem.style;n.webkitPerspective=Math.sqrt(Math.pow(e,2)+Math.pow(r,2))+"px",n.perspective=n.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(t){var e,r=t.length,i=createTag("div");for(e=0;e<r;e+=1)if(t[e].xt){var n=this.createComp(t[e],i,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 r,i=0;i<e;)this.elements[i]&&this.elements[i].getBaseElement&&(r=this.elements[i].getBaseElement()),i+=1;r?this.layerElement.insertBefore(t,r):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(r){for(var i=0,n=t.layers.length;i<n;){if(t.layers[i].nm===r||t.layers[i].ind===r)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},Expressions=function(){var t={};return t.initExpressions=function(e){var r=0,i=[];e.renderer.compInterface=CompExpressionInterface(e.renderer),e.renderer.globalData.projectInterface.registerComposition(e.renderer),e.renderer.globalData.pushExpression=function(){r+=1},e.renderer.globalData.popExpression=function(){(r-=1)===0&&function(){var n,s=i.length;for(n=0;n<s;n+=1)i[n].release();i.length=0}()},e.renderer.globalData.registerExpressionProperty=function(n){i.indexOf(n)===-1&&i.push(n)}},t}(),MaskManagerInterface=function(){function t(e,r){this._mask=e,this._data=r}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 r,i=createSizedArray(e.viewData.length),n=e.viewData.length;for(r=0;r<n;r+=1)i[r]=new t(e.viewData[r],e.masksProperties[r]);return function(s){for(r=0;r<n;){if(e.masksProperties[r].nm===s)return i[r];r+=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 r(n,s,o){Object.defineProperty(n,"velocity",{get:function(){return s.getVelocityAtTime(s.comp.currentFrame)}}),n.numKeys=s.keyframes?s.keyframes.length:0,n.key=function(a){if(!n.numKeys)return 0;var l="";l="s"in s.keyframes[a-1]?s.keyframes[a-1].s:"e"in s.keyframes[a-2]?s.keyframes[a-2].e:s.keyframes[a-2].s;var h=o==="unidimensional"?new Number(l):Object.assign({},l);return h.time=s.keyframes[a-1].t/s.elem.comp.globalData.frameRate,h.value=o==="unidimensional"?l[0]:l,h},n.valueAtTime=s.getValueAtTime,n.speedAtTime=s.getSpeedAtTime,n.velocityAtTime=s.getVelocityAtTime,n.propertyGroup=s.propertyGroup}function i(){return t}return function(n){return n?n.propType==="unidimensional"?function(s){s&&"pv"in s||(s=t);var o=1/s.mult,a=s.pv*o,l=new Number(a);return l.value=a,r(l,s,"unidimensional"),function(){return s.k&&s.getValue(),a=s.v*o,l.value!==a&&((l=new Number(a)).value=a,r(l,s,"unidimensional")),l}}(n):function(s){s&&"pv"in s||(s=e);var o=1/s.mult,a=s.data&&s.data.l||s.pv.length,l=createTypedArray("float32",a),h=createTypedArray("float32",a);return l.value=h,r(l,s,"multidimensional"),function(){s.k&&s.getValue();for(var c=0;c<a;c+=1)h[c]=s.v[c]*o,l[c]=h[c];return l}}(n):i}}(),TransformExpressionInterface=function(t){function e(o){switch(o){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 r,i,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):(r=ExpressionPropertyInterface(t.px),i=ExpressionPropertyInterface(t.py),t.pz&&(n=ExpressionPropertyInterface(t.pz))),Object.defineProperty(e,"position",{get:function(){return t.p?s():[r(),i(),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(h){var c=new Matrix;return h!==void 0?this._elem.finalTransform.mProp.getValueAtTime(h).clone(c):this._elem.finalTransform.mProp.applyToMatrix(c),c}function e(h,c){var p=this.getMatrix(c);return p.props[12]=0,p.props[13]=0,p.props[14]=0,this.applyPoint(p,h)}function r(h,c){var p=this.getMatrix(c);return this.applyPoint(p,h)}function i(h,c){var p=this.getMatrix(c);return p.props[12]=0,p.props[13]=0,p.props[14]=0,this.invertPoint(p,h)}function n(h,c){var p=this.getMatrix(c);return this.invertPoint(p,h)}function s(h,c){if(this._elem.hierarchy&&this._elem.hierarchy.length){var p,f=this._elem.hierarchy.length;for(p=0;p<f;p+=1)this._elem.hierarchy[p].finalTransform.mProp.applyToMatrix(h)}return h.applyToPointArray(c[0],c[1],c[2]||0)}function o(h,c){if(this._elem.hierarchy&&this._elem.hierarchy.length){var p,f=this._elem.hierarchy.length;for(p=0;p<f;p+=1)this._elem.hierarchy[p].finalTransform.mProp.applyToMatrix(h)}return h.inversePoint(c)}function a(h){var c=new Matrix;if(c.reset(),this._elem.finalTransform.mProp.applyToMatrix(c),this._elem.hierarchy&&this._elem.hierarchy.length){var p,f=this._elem.hierarchy.length;for(p=0;p<f;p+=1)this._elem.hierarchy[p].finalTransform.mProp.applyToMatrix(c);return c.inversePoint(h)}return c.inversePoint(h)}function l(){return[1,1,1,1]}return function(h){var c;function p(u){switch(u){case"ADBE Root Vectors Group":case"Contents":case 2:return p.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 p.effect;case"ADBE Text Properties":return p.textInterface;default:return null}}p.getMatrix=t,p.invertPoint=o,p.applyPoint=s,p.toWorld=r,p.toWorldVec=e,p.fromWorld=n,p.fromWorldVec=i,p.toComp=r,p.fromComp=a,p.sampleImage=l,p.sourceRectAtTime=h.sourceRectAtTime.bind(h),p._elem=h;var f=getDescriptor(c=TransformExpressionInterface(h.finalTransform.mProp),"anchorPoint");return Object.defineProperties(p,{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:f,anchor_point:f,transform:{get:function(){return c}},active:{get:function(){return h.isInRange}}}),p.startTime=h.data.st,p.index=h.data.ind,p.source=h.data.refId,p.height=h.data.ty===0?h.data.h:100,p.width=h.data.ty===0?h.data.w:100,p.inPoint=h.data.ip/h.comp.globalData.frameRate,p.outPoint=h.data.op/h.comp.globalData.frameRate,p._name=h.data.nm,p.registerMaskInterface=function(u){p.mask=new MaskManagerInterface(u,h)},p.registerEffectsInterface=function(u){p.effect=u},p}}(),propertyGroupFactory=function(t,e){return function(r){return(r=r===void 0?1:r)<=0?t:e(r-1)}},PropertyInterface=function(t,e){var r={_name:t};return function(i){return(i=i===void 0?1:i)<=0?r:e(i-1)}},EffectsExpressionInterface=function(){function t(r,i,n,s){function o(p){for(var f=r.ef,u=0,m=f.length;u<m;){if(p===f[u].nm||p===f[u].mn||p===f[u].ix)return f[u].ty===5?h[u]:h[u]();u+=1}throw new Error}var a,l=propertyGroupFactory(o,n),h=[],c=r.ef.length;for(a=0;a<c;a+=1)r.ef[a].ty===5?h.push(t(r.ef[a],i.effectElements[a],i.effectElements[a].propertyGroup,s)):h.push(e(i.effectElements[a],r.ef[a].ty,s,l));return r.mn==="ADBE Color Control"&&Object.defineProperty(o,"color",{get:function(){return h[0]()}}),Object.defineProperties(o,{numProperties:{get:function(){return r.np}},_name:{value:r.nm},propertyGroup:{value:l}}),o.enabled=r.en!==0,o.active=o.enabled,o}function e(r,i,n,s){var o=ExpressionPropertyInterface(r.p);return r.p.setGroupProperty&&r.p.setGroupProperty(PropertyInterface("",s)),function(){return i===10?n.comp.compInterface(r.p.v):o()}}return{createEffectsInterface:function(r,i){if(r.effectsManager){var n,s=[],o=r.data.ef,a=r.effectsManager.effectElements.length;for(n=0;n<a;n+=1)s.push(t(o[n],r.effectsManager.effectElements[n],i,r));var l=r.data.ef||[],h=function(c){for(n=0,a=l.length;n<a;){if(c===l[n].nm||c===l[n].mn||c===l[n].ix)return s[n];n+=1}return null};return Object.defineProperty(h,"numProperties",{get:function(){return l.length}}),h}return null}}}(),ShapePathInterface=function(t,e,r){var i=e.sh;function n(o){return o==="Shape"||o==="shape"||o==="Path"||o==="path"||o==="ADBE Vector Shape"||o===2?n.path:null}var s=propertyGroupFactory(n,r);return i.setGroupProperty(PropertyInterface("Path",s)),Object.defineProperties(n,{path:{get:function(){return i.k&&i.getValue(),i}},shape:{get:function(){return i.k&&i.getValue(),i}},_name:{value:t.nm},ix:{value:t.ix},propertyIndex:{value:t.ix},mn:{value:t.mn},propertyGroup:{value:r}}),n},ShapeExpressionInterface=function(){function t(u,m,g){var d,y=[],v=u?u.length:0;for(d=0;d<v;d+=1)u[d].ty==="gr"?y.push(e(u[d],m[d],g)):u[d].ty==="fl"?y.push(r(u[d],m[d],g)):u[d].ty==="st"?y.push(s(u[d],m[d],g)):u[d].ty==="tm"?y.push(o(u[d],m[d],g)):u[d].ty==="tr"||(u[d].ty==="el"?y.push(l(u[d],m[d],g)):u[d].ty==="sr"?y.push(h(u[d],m[d],g)):u[d].ty==="sh"?y.push(ShapePathInterface(u[d],m[d],g)):u[d].ty==="rc"?y.push(c(u[d],m[d],g)):u[d].ty==="rd"?y.push(p(u[d],m[d],g)):u[d].ty==="rp"?y.push(f(u[d],m[d],g)):u[d].ty==="gf"?y.push(i(u[d],m[d],g)):y.push(n(u[d],m[d])));return y}function e(u,m,g){var d=function(b){switch(b){case"ADBE Vectors Group":case"Contents":case 2:return d.content;default:return d.transform}};d.propertyGroup=propertyGroupFactory(d,g);var y=function(b,_,x){var M,S=function(D){for(var E=0,T=M.length;E<T;){if(M[E]._name===D||M[E].mn===D||M[E].propertyIndex===D||M[E].ix===D||M[E].ind===D)return M[E];E+=1}return typeof D=="number"?M[D-1]:null};S.propertyGroup=propertyGroupFactory(S,x),M=t(b.it,_.it,S.propertyGroup),S.numProperties=M.length;var w=a(b.it[b.it.length-1],_.it[_.it.length-1],S.propertyGroup);return S.transform=w,S.propertyIndex=b.cix,S._name=b.nm,S}(u,m,d.propertyGroup),v=a(u.it[u.it.length-1],m.it[m.it.length-1],d.propertyGroup);return d.content=y,d.transform=v,Object.defineProperty(d,"_name",{get:function(){return u.nm}}),d.numProperties=u.np,d.propertyIndex=u.ix,d.nm=u.nm,d.mn=u.mn,d}function r(u,m,g){function d(y){return y==="Color"||y==="color"?d.color:y==="Opacity"||y==="opacity"?d.opacity:null}return Object.defineProperties(d,{color:{get:ExpressionPropertyInterface(m.c)},opacity:{get:ExpressionPropertyInterface(m.o)},_name:{value:u.nm},mn:{value:u.mn}}),m.c.setGroupProperty(PropertyInterface("Color",g)),m.o.setGroupProperty(PropertyInterface("Opacity",g)),d}function i(u,m,g){function d(y){return y==="Start Point"||y==="start point"?d.startPoint:y==="End Point"||y==="end point"?d.endPoint:y==="Opacity"||y==="opacity"?d.opacity:null}return Object.defineProperties(d,{startPoint:{get:ExpressionPropertyInterface(m.s)},endPoint:{get:ExpressionPropertyInterface(m.e)},opacity:{get:ExpressionPropertyInterface(m.o)},type:{get:function(){return"a"}},_name:{value:u.nm},mn:{value:u.mn}}),m.s.setGroupProperty(PropertyInterface("Start Point",g)),m.e.setGroupProperty(PropertyInterface("End Point",g)),m.o.setGroupProperty(PropertyInterface("Opacity",g)),d}function n(){return function(){return null}}function s(u,m,g){var d,y=propertyGroupFactory(M,g),v=propertyGroupFactory(x,y);function b(S){Object.defineProperty(x,u.d[S].nm,{get:ExpressionPropertyInterface(m.d.dataProps[S].p)})}var _=u.d?u.d.length:0,x={};for(d=0;d<_;d+=1)b(d),m.d.dataProps[d].p.setGroupProperty(v);function M(S){return S==="Color"||S==="color"?M.color:S==="Opacity"||S==="opacity"?M.opacity:S==="Stroke Width"||S==="stroke width"?M.strokeWidth:null}return Object.defineProperties(M,{color:{get:ExpressionPropertyInterface(m.c)},opacity:{get:ExpressionPropertyInterface(m.o)},strokeWidth:{get:ExpressionPropertyInterface(m.w)},dash:{get:function(){return x}},_name:{value:u.nm},mn:{value:u.mn}}),m.c.setGroupProperty(PropertyInterface("Color",y)),m.o.setGroupProperty(PropertyInterface("Opacity",y)),m.w.setGroupProperty(PropertyInterface("Stroke Width",y)),M}function o(u,m,g){function d(v){return v===u.e.ix||v==="End"||v==="end"?d.end:v===u.s.ix?d.start:v===u.o.ix?d.offset:null}var y=propertyGroupFactory(d,g);return d.propertyIndex=u.ix,m.s.setGroupProperty(PropertyInterface("Start",y)),m.e.setGroupProperty(PropertyInterface("End",y)),m.o.setGroupProperty(PropertyInterface("Offset",y)),d.propertyIndex=u.ix,d.propertyGroup=g,Object.defineProperties(d,{start:{get:ExpressionPropertyInterface(m.s)},end:{get:ExpressionPropertyInterface(m.e)},offset:{get:ExpressionPropertyInterface(m.o)},_name:{value:u.nm}}),d.mn=u.mn,d}function a(u,m,g){function d(v){return u.a.ix===v||v==="Anchor Point"?d.anchorPoint:u.o.ix===v||v==="Opacity"?d.opacity:u.p.ix===v||v==="Position"?d.position:u.r.ix===v||v==="Rotation"||v==="ADBE Vector Rotation"?d.rotation:u.s.ix===v||v==="Scale"?d.scale:u.sk&&u.sk.ix===v||v==="Skew"?d.skew:u.sa&&u.sa.ix===v||v==="Skew Axis"?d.skewAxis:null}var y=propertyGroupFactory(d,g);return m.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",y)),m.transform.mProps.p.setGroupProperty(PropertyInterface("Position",y)),m.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",y)),m.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",y)),m.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",y)),m.transform.mProps.sk&&(m.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",y)),m.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",y))),m.transform.op.setGroupProperty(PropertyInterface("Opacity",y)),Object.defineProperties(d,{opacity:{get:ExpressionPropertyInterface(m.transform.mProps.o)},position:{get:ExpressionPropertyInterface(m.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(m.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(m.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(m.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(m.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(m.transform.mProps.sa)},_name:{value:u.nm}}),d.ty="tr",d.mn=u.mn,d.propertyGroup=g,d}function l(u,m,g){function d(b){return u.p.ix===b?d.position:u.s.ix===b?d.size:null}var y=propertyGroupFactory(d,g);d.propertyIndex=u.ix;var v=m.sh.ty==="tm"?m.sh.prop:m.sh;return v.s.setGroupProperty(PropertyInterface("Size",y)),v.p.setGroupProperty(PropertyInterface("Position",y)),Object.defineProperties(d,{size:{get:ExpressionPropertyInterface(v.s)},position:{get:ExpressionPropertyInterface(v.p)},_name:{value:u.nm}}),d.mn=u.mn,d}function h(u,m,g){function d(b){return u.p.ix===b?d.position:u.r.ix===b?d.rotation:u.pt.ix===b?d.points:u.or.ix===b||b==="ADBE Vector Star Outer Radius"?d.outerRadius:u.os.ix===b?d.outerRoundness:!u.ir||u.ir.ix!==b&&b!=="ADBE Vector Star Inner Radius"?u.is&&u.is.ix===b?d.innerRoundness:null:d.innerRadius}var y=propertyGroupFactory(d,g),v=m.sh.ty==="tm"?m.sh.prop:m.sh;return d.propertyIndex=u.ix,v.or.setGroupProperty(PropertyInterface("Outer Radius",y)),v.os.setGroupProperty(PropertyInterface("Outer Roundness",y)),v.pt.setGroupProperty(PropertyInterface("Points",y)),v.p.setGroupProperty(PropertyInterface("Position",y)),v.r.setGroupProperty(PropertyInterface("Rotation",y)),u.ir&&(v.ir.setGroupProperty(PropertyInterface("Inner Radius",y)),v.is.setGroupProperty(PropertyInterface("Inner Roundness",y))),Object.defineProperties(d,{position:{get:ExpressionPropertyInterface(v.p)},rotation:{get:ExpressionPropertyInterface(v.r)},points:{get:ExpressionPropertyInterface(v.pt)},outerRadius:{get:ExpressionPropertyInterface(v.or)},outerRoundness:{get:ExpressionPropertyInterface(v.os)},innerRadius:{get:ExpressionPropertyInterface(v.ir)},innerRoundness:{get:ExpressionPropertyInterface(v.is)},_name:{value:u.nm}}),d.mn=u.mn,d}function c(u,m,g){function d(b){return u.p.ix===b?d.position:u.r.ix===b?d.roundness:u.s.ix===b||b==="Size"||b==="ADBE Vector Rect Size"?d.size:null}var y=propertyGroupFactory(d,g),v=m.sh.ty==="tm"?m.sh.prop:m.sh;return d.propertyIndex=u.ix,v.p.setGroupProperty(PropertyInterface("Position",y)),v.s.setGroupProperty(PropertyInterface("Size",y)),v.r.setGroupProperty(PropertyInterface("Rotation",y)),Object.defineProperties(d,{position:{get:ExpressionPropertyInterface(v.p)},roundness:{get:ExpressionPropertyInterface(v.r)},size:{get:ExpressionPropertyInterface(v.s)},_name:{value:u.nm}}),d.mn=u.mn,d}function p(u,m,g){function d(b){return u.r.ix===b||b==="Round Corners 1"?d.radius:null}var y=propertyGroupFactory(d,g),v=m;return d.propertyIndex=u.ix,v.rd.setGroupProperty(PropertyInterface("Radius",y)),Object.defineProperties(d,{radius:{get:ExpressionPropertyInterface(v.rd)},_name:{value:u.nm}}),d.mn=u.mn,d}function f(u,m,g){function d(b){return u.c.ix===b||b==="Copies"?d.copies:u.o.ix===b||b==="Offset"?d.offset:null}var y=propertyGroupFactory(d,g),v=m;return d.propertyIndex=u.ix,v.c.setGroupProperty(PropertyInterface("Copies",y)),v.o.setGroupProperty(PropertyInterface("Offset",y)),Object.defineProperties(d,{copies:{get:ExpressionPropertyInterface(v.c)},offset:{get:ExpressionPropertyInterface(v.o)},_name:{value:u.nm}}),d.mn=u.mn,d}return function(u,m,g){var d;function y(v){if(typeof v=="number")return(v=v===void 0?1:v)===0?g:d[v-1];for(var b=0,_=d.length;b<_;){if(d[b]._name===v)return d[b];b+=1}return null}return y.propertyGroup=propertyGroupFactory(y,function(){return g}),d=t(u,m,y.propertyGroup),y.numProperties=d.length,y._name="Contents",y}}(),TextExpressionInterface=function(t){var e;function r(i){switch(i){case"ADBE Text Document":return r.sourceText;default:return null}}return Object.defineProperty(r,"sourceText",{get:function(){t.textProperty.getValue();var i=t.textProperty.currentData.t;return i!==void 0&&(t.textProperty.currentData.t=void 0,(e=new String(i)).value=i||new String(i)),e}}),r};function _typeof$2(t){return(_typeof$2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}var FootageInterface=(dataInterfaceFactory=function(t){function e(r){return r==="Outline"?e.outlineInterface():null}return e._name="Outline",e.outlineInterface=function(r){var i="",n=r.getFootageData();function s(o){if(n[o])return i=o,_typeof$2(n=n[o])==="object"?s:n;var a=o.indexOf(i);if(a!==-1){var l=parseInt(o.substr(a+i.length),10);return _typeof$2(n=n[l])==="object"?s:n}return""}return function(){return i="",n=r.getFootageData(),s}}(t),e},function(t){function e(r){return r==="Data"?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}function _typeof$1(t){return(_typeof$1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function seedRandom(t,e){var r=this,i=e.pow(256,6),n=e.pow(2,52),s=2*n;function o(c){var p,f=c.length,u=this,m=0,g=u.i=u.j=0,d=u.S=[];for(f||(c=[f++]);m<256;)d[m]=m++;for(m=0;m<256;m++)d[m]=d[g=255&g+c[m%f]+(p=d[m])],d[g]=p;u.g=function(y){for(var v,b=0,_=u.i,x=u.j,M=u.S;y--;)v=M[_=255&_+1],b=256*b+M[255&(M[_]=M[x=255&x+v])+(M[x]=v)];return u.i=_,u.j=x,b}}function a(c,p){return p.i=c.i,p.j=c.j,p.S=c.S.slice(),p}function l(c,p){for(var f,u=c+"",m=0;m<u.length;)p[255&m]=255&(f^=19*p[255&m])+u.charCodeAt(m++);return h(p)}function h(c){return String.fromCharCode.apply(0,c)}e.seedrandom=function(c,p,f){var u=[],m=l(function y(v,b){var _,x=[],M=_typeof$1(v);if(b&&M=="object")for(_ in v)try{x.push(y(v[_],b-1))}catch{}return x.length?x:M=="string"?v:v+"\0"}((p=p===!0?{entropy:!0}:p||{}).entropy?[c,h(t)]:c===null?function(){try{var y=new Uint8Array(256);return(r.crypto||r.msCrypto).getRandomValues(y),h(y)}catch{var v=r.navigator,b=v&&v.plugins;return[+new Date,r,b,r.screen,h(t)]}}():c,3),u),g=new o(u),d=function(){for(var y=g.g(6),v=i,b=0;y<n;)y=256*(y+b),v*=256,b=g.g(1);for(;y>=s;)y/=2,v/=2,b>>>=1;return(y+b)/v};return d.int32=function(){return 0|g.g(4)},d.quick=function(){return g.g(4)/4294967296},d.double=d,l(h(g.S),t),(p.pass||f||function(y,v,b,_){return _&&(_.S&&a(_,g),y.state=function(){return a(g,{})}),b?(e.random=y,v):y})(d,m,"global"in p?p.global:this==e,p.state)},l(e.random(),t)}function initialize$2(t){seedRandom([],t)}var propTypes={SHAPE:"shape"};function _typeof(t){return(_typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null;function $bm_isInstanceOfArray(t){return t.constructor===Array||t.constructor===Float32Array}function isNumerable(t,e){return t==="number"||t==="boolean"||t==="string"||e instanceof Number}function $bm_neg(t){var e=_typeof(t);if(e==="number"||e==="boolean"||t instanceof Number)return-t;if($bm_isInstanceOfArray(t)){var r,i=t.length,n=[];for(r=0;r<i;r+=1)n[r]=-t[r];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 r=_typeof(t),i=_typeof(e);if(r==="string"||i==="string"||isNumerable(r,t)&&isNumerable(i,e))return t+e;if($bm_isInstanceOfArray(t)&&isNumerable(i,e))return(t=t.slice(0))[0]+=e,t;if(isNumerable(r,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,o=e.length,a=[];n<s||n<o;)(typeof t[n]=="number"||t[n]instanceof Number)&&(typeof e[n]=="number"||e[n]instanceof Number)?a[n]=t[n]+e[n]:a[n]=e[n]===void 0?t[n]:t[n]||e[n],n+=1;return a}return 0}var add=sum;function sub(t,e){var r=_typeof(t),i=_typeof(e);if(isNumerable(r,t)&&isNumerable(i,e))return r==="string"&&(t=parseInt(t,10)),i==="string"&&(e=parseInt(e,10)),t-e;if($bm_isInstanceOfArray(t)&&isNumerable(i,e))return(t=t.slice(0))[0]-=e,t;if(isNumerable(r,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,o=e.length,a=[];n<s||n<o;)(typeof t[n]=="number"||t[n]instanceof Number)&&(typeof e[n]=="number"||e[n]instanceof Number)?a[n]=t[n]-e[n]:a[n]=e[n]===void 0?t[n]:t[n]||e[n],n+=1;return a}return 0}function mul(t,e){var r,i,n,s=_typeof(t),o=_typeof(e);if(isNumerable(s,t)&&isNumerable(o,e))return t*e;if($bm_isInstanceOfArray(t)&&isNumerable(o,e)){for(n=t.length,r=createTypedArray("float32",n),i=0;i<n;i+=1)r[i]=t[i]*e;return r}if(isNumerable(s,t)&&$bm_isInstanceOfArray(e)){for(n=e.length,r=createTypedArray("float32",n),i=0;i<n;i+=1)r[i]=t*e[i];return r}return 0}function div(t,e){var r,i,n,s=_typeof(t),o=_typeof(e);if(isNumerable(s,t)&&isNumerable(o,e))return t/e;if($bm_isInstanceOfArray(t)&&isNumerable(o,e)){for(n=t.length,r=createTypedArray("float32",n),i=0;i<n;i+=1)r[i]=t[i]/e;return r}if(isNumerable(s,t)&&$bm_isInstanceOfArray(e)){for(n=e.length,r=createTypedArray("float32",n),i=0;i<n;i+=1)r[i]=t/e[i];return r}return 0}function mod(t,e){return typeof t=="string"&&(t=parseInt(t,10)),typeof e=="string"&&(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,r){if(e>r){var i=r;r=e,e=i}return Math.min(Math.max(t,e),r)}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(typeof t=="number"||t instanceof Number)return e=e||0,Math.abs(t-e);var r;e||(e=helperLengthArray);var i=Math.min(t.length,e.length),n=0;for(r=0;r<i;r+=1)n+=Math.pow(e[r]-t[r],2);return Math.sqrt(n)}function normalize(t){return div(t,length(t))}function rgbToHsl(t){var e,r,i=t[0],n=t[1],s=t[2],o=Math.max(i,n,s),a=Math.min(i,n,s),l=(o+a)/2;if(o===a)e=0,r=0;else{var h=o-a;switch(r=l>.5?h/(2-o-a):h/(o+a),o){case i:e=(n-s)/h+(n<s?6:0);break;case n:e=(s-i)/h+2;break;case s:e=(i-n)/h+4}e/=6}return[e,r,l,t[3]]}function hue2rgb(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function hslToRgb(t){var e,r,i,n=t[0],s=t[1],o=t[2];if(s===0)e=o,i=o,r=o;else{var a=o<.5?o*(1+s):o+s-o*s,l=2*o-a;e=hue2rgb(l,a,n+1/3),r=hue2rgb(l,a,n),i=hue2rgb(l,a,n-1/3)}return[e,r,i,t[3]]}function linear(t,e,r,i,n){if(i!==void 0&&n!==void 0||(i=e,n=r,e=0,r=1),r<e){var s=r;r=e,e=s}if(t<=e)return i;if(t>=r)return n;var o,a=r===e?0:(t-e)/(r-e);if(!i.length)return i+(n-i)*a;var l=i.length,h=createTypedArray("float32",l);for(o=0;o<l;o+=1)h[o]=i[o]+(n[o]-i[o])*a;return h}function random(t,e){if(e===void 0&&(t===void 0?(t=0,e=1):(e=t,t=void 0)),e.length){var r,i=e.length;t||(t=createTypedArray("float32",i));var n=createTypedArray("float32",i),s=BMMath.random();for(r=0;r<i;r+=1)n[r]=t[r]+s*(e[r]-t[r]);return n}return t===void 0&&(t=0),t+BMMath.random()*(e-t)}function createPath(t,e,r,i){var n,s=t.length,o=shapePool.newElement();o.setPathData(!!i,s);var a,l,h=[0,0];for(n=0;n<s;n+=1)a=e&&e[n]?e[n]:h,l=r&&r[n]?r[n]:h,o.setTripleAt(t[n][0],t[n][1],l[0]+t[n][0],l[1]+t[n][1],a[0]+t[n][0],a[1]+t[n][1],n,!0);return o}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=val.indexOf("random")!==-1,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||this.data.hd!==!0,wiggle=function(t,e){var r,i,n=this.pv.length?this.pv.length:1,s=createTypedArray("float32",n),o=Math.floor(5*time);for(r=0,i=0;r<o;){for(i=0;i<n;i+=1)s[i]+=-e+2*e*BMMath.random();r+=1}var a=5*time,l=a-Math.floor(a),h=createTypedArray("float32",n);if(n>1){for(i=0;i<n;i+=1)h[i]=this.pv[i]+s[i]+(-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 r=[e[0]-t[0],e[1]-t[1],e[2]-t[2]],i=Math.atan2(r[0],Math.sqrt(r[1]*r[1]+r[2]*r[2]))/degToRads;return[-Math.atan2(r[1],r[2])/degToRads,i,0]}function easeOut(t,e,r,i,n){return applyEase(easeOutBez,t,e,r,i,n)}function easeIn(t,e,r,i,n){return applyEase(easeInBez,t,e,r,i,n)}function ease(t,e,r,i,n){return applyEase(easeInOutBez,t,e,r,i,n)}function applyEase(t,e,r,i,n,s){n===void 0?(n=r,s=i):e=(e-r)/(i-r),e>1?e=1:e<0&&(e=0);var o=t(e);if($bm_isInstanceOfArray(n)){var a,l=n.length,h=createTypedArray("float32",l);for(a=0;a<l;a+=1)h[a]=(s[a]-n[a])*o+n[a];return h}return(s-n)*o+n}function nearestKey(t){var e,r,i,n=data.k.length;if(data.k.length&&typeof data.k[0]!="number")if(r=-1,(t*=elem.comp.globalData.frameRate)<data.k[0].t)r=1,i=data.k[0].t;else{for(e=0;e<n-1;e+=1){if(t===data.k[e].t){r=e+1,i=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?(r=e+2,i=data.k[e+1].t):(r=e+1,i=data.k[e].t);break}}r===-1&&(r=e+1,i=data.k[e].t)}else r=0,i=0;var s={};return s.index=r,s.time=i/elem.comp.globalData.frameRate,s}function key(t){var e,r,i;if(!data.k.length||typeof data.k[0]=="number")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(i=n.length,r=0;r<i;r+=1)e[r]=n[r],e.value[r]=n[r];return e}function framesToTime(t,e){return e||(e=elem.comp.globalData.frameRate),t/e}function timeToFrames(t,e){return t||t===0||(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 typeof value=="string"?e===void 0?value.substring(t):value.substring(t,e):""}function substr(t,e){return typeof value=="string"?e===void 0?value.substr(t):value.substr(t,e):""}function posterizeTime(t){time=t===0?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&&this.propType!=="textSelector"?value:(this.propType==="textSelector"&&(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)),elemType!==4||content||(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),(hasParent=!(!elem.hierarchy||!elem.hierarchy.length))&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath],ob}(),expressionHelpers={searchExpressions:function(t,e,r){e.x&&(r.k=!0,r.x=!0,r.initiateExpression=ExpressionManager.initiateExpression,r.effectsSequence.push(r.initiateExpression(t,e,r).bind(r)))},getSpeedAtTime:function(t){var e=this.getValueAtTime(t),r=this.getValueAtTime(t+-.01),i=0;if(e.length){var n;for(n=0;n<e.length;n+=1)i+=Math.pow(r[n]-e[n],2);i=100*Math.sqrt(i)}else i=0;return i},getVelocityAtTime:function(t){if(this.vel!==void 0)return this.vel;var e,r,i=this.getValueAtTime(t),n=this.getValueAtTime(t+-.001);if(i.length)for(e=createTypedArray("float32",i.length),r=0;r<i.length;r+=1)e[r]=(n[r]-i[r])/-.001;else e=(n-i)/-.001;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(p,f,u){if(!this.k||!this.keyframes)return this.pv;p=p?p.toLowerCase():"";var m,g,d,y,v,b=this.comp.renderedFrame,_=this.keyframes,x=_[_.length-1].t;if(b<=x)return this.pv;if(u?g=x-(m=f?Math.abs(x-this.elem.comp.globalData.frameRate*f):Math.max(0,x-this.elem.data.ip)):((!f||f>_.length-1)&&(f=_.length-1),m=x-(g=_[_.length-1-f].t)),p==="pingpong"){if(Math.floor((b-g)/m)%2!=0)return this.getValueAtTime((m-(b-g)%m+g)/this.comp.globalData.frameRate,0)}else{if(p==="offset"){var M=this.getValueAtTime(g/this.comp.globalData.frameRate,0),S=this.getValueAtTime(x/this.comp.globalData.frameRate,0),w=this.getValueAtTime(((b-g)%m+g)/this.comp.globalData.frameRate,0),D=Math.floor((b-g)/m);if(this.pv.length){for(y=(v=new Array(M.length)).length,d=0;d<y;d+=1)v[d]=(S[d]-M[d])*D+w[d];return v}return(S-M)*D+w}if(p==="continue"){var E=this.getValueAtTime(x/this.comp.globalData.frameRate,0),T=this.getValueAtTime((x-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(y=(v=new Array(E.length)).length,d=0;d<y;d+=1)v[d]=E[d]+(E[d]-T[d])*((b-x)/this.comp.globalData.frameRate)/5e-4;return v}return E+(b-x)/.001*(E-T)}}return this.getValueAtTime(((b-g)%m+g)/this.comp.globalData.frameRate,0)}function e(p,f,u){if(!this.k)return this.pv;p=p?p.toLowerCase():"";var m,g,d,y,v,b=this.comp.renderedFrame,_=this.keyframes,x=_[0].t;if(b>=x)return this.pv;if(u?g=x+(m=f?Math.abs(this.elem.comp.globalData.frameRate*f):Math.max(0,this.elem.data.op-x)):((!f||f>_.length-1)&&(f=_.length-1),m=(g=_[f].t)-x),p==="pingpong"){if(Math.floor((x-b)/m)%2==0)return this.getValueAtTime(((x-b)%m+x)/this.comp.globalData.frameRate,0)}else{if(p==="offset"){var M=this.getValueAtTime(x/this.comp.globalData.frameRate,0),S=this.getValueAtTime(g/this.comp.globalData.frameRate,0),w=this.getValueAtTime((m-(x-b)%m+x)/this.comp.globalData.frameRate,0),D=Math.floor((x-b)/m)+1;if(this.pv.length){for(y=(v=new Array(M.length)).length,d=0;d<y;d+=1)v[d]=w[d]-(S[d]-M[d])*D;return v}return w-(S-M)*D}if(p==="continue"){var E=this.getValueAtTime(x/this.comp.globalData.frameRate,0),T=this.getValueAtTime((x+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(y=(v=new Array(E.length)).length,d=0;d<y;d+=1)v[d]=E[d]+(E[d]-T[d])*(x-b)/.001;return v}return E+(E-T)*(x-b)/.001}}return this.getValueAtTime((m-((x-b)%m+x))/this.comp.globalData.frameRate,0)}function r(p,f){if(!this.k)return this.pv;if(p=.5*(p||.4),(f=Math.floor(f||5))<=1)return this.pv;var u,m,g=this.comp.renderedFrame/this.comp.globalData.frameRate,d=g-p,y=f>1?(g+p-d)/(f-1):1,v=0,b=0;for(u=this.pv.length?createTypedArray("float32",this.pv.length):0;v<f;){if(m=this.getValueAtTime(d+v*y),this.pv.length)for(b=0;b<this.pv.length;b+=1)u[b]+=m[b];else u+=m;v+=1}if(this.pv.length)for(b=0;b<this.pv.length;b+=1)u[b]/=f;else u/=f;return u}function i(p){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var f=this._transformCachingAtTime.v;if(f.cloneFromProps(this.pre.props),this.appliedTransformations<1){var u=this.a.getValueAtTime(p);f.translate(-u[0]*this.a.mult,-u[1]*this.a.mult,u[2]*this.a.mult)}if(this.appliedTransformations<2){var m=this.s.getValueAtTime(p);f.scale(m[0]*this.s.mult,m[1]*this.s.mult,m[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var g=this.sk.getValueAtTime(p),d=this.sa.getValueAtTime(p);f.skewFromAxis(-g*this.sk.mult,d*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var y=this.r.getValueAtTime(p);f.rotate(-y*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var v=this.rz.getValueAtTime(p),b=this.ry.getValueAtTime(p),_=this.rx.getValueAtTime(p),x=this.or.getValueAtTime(p);f.rotateZ(-v*this.rz.mult).rotateY(b*this.ry.mult).rotateX(_*this.rx.mult).rotateZ(-x[2]*this.or.mult).rotateY(x[1]*this.or.mult).rotateX(x[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var M=this.px.getValueAtTime(p),S=this.py.getValueAtTime(p);if(this.data.p.z){var w=this.pz.getValueAtTime(p);f.translate(M*this.px.mult,S*this.py.mult,-w*this.pz.mult)}else f.translate(M*this.px.mult,S*this.py.mult,0)}else{var D=this.p.getValueAtTime(p);f.translate(D[0]*this.p.mult,D[1]*this.p.mult,-D[2]*this.p.mult)}return f}function n(){return this.v.clone(new Matrix)}var s=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(p,f,u){var m=s(p,f,u);return m.dynamicProperties.length?m.getValueAtTime=i.bind(m):m.getValueAtTime=n.bind(m),m.setGroupProperty=expressionHelpers.setGroupProperty,m};var o=PropertyFactory.getProp;PropertyFactory.getProp=function(p,f,u,m,g){var d=o(p,f,u,m,g);d.kf?d.getValueAtTime=expressionHelpers.getValueAtTime.bind(d):d.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(d),d.setGroupProperty=expressionHelpers.setGroupProperty,d.loopOut=t,d.loopIn=e,d.smooth=r,d.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(d),d.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(d),d.numKeys=f.a===1?f.k.length:0,d.propertyIndex=f.ix;var y=0;return u!==0&&(y=createTypedArray("float32",f.a===1?f.k[0].s.length:f.k.length)),d._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:y},expressionHelpers.searchExpressions(p,f,d),d.k&&g.addDynamicProperty(d),d};var a=ShapePropertyFactory.getConstructorFunction(),l=ShapePropertyFactory.getKeyframedConstructorFunction();function h(){}h.prototype={vertices:function(p,f){this.k&&this.getValue();var u,m=this.v;f!==void 0&&(m=this.getValueAtTime(f,0));var g=m._length,d=m[p],y=m.v,v=createSizedArray(g);for(u=0;u<g;u+=1)v[u]=p==="i"||p==="o"?[d[u][0]-y[u][0],d[u][1]-y[u][1]]:[d[u][0],d[u][1]];return v},points:function(p){return this.vertices("v",p)},inTangents:function(p){return this.vertices("i",p)},outTangents:function(p){return this.vertices("o",p)},isClosed:function(){return this.v.c},pointOnPath:function(p,f){var u=this.v;f!==void 0&&(u=this.getValueAtTime(f,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(u));for(var m,g=this._segmentsLength,d=g.lengths,y=g.totalLength*p,v=0,b=d.length,_=0;v<b;){if(_+d[v].addedLength>y){var x=v,M=u.c&&v===b-1?0:v+1,S=(y-_)/d[v].addedLength;m=bez.getPointInSegment(u.v[x],u.v[M],u.o[x],u.i[M],S,d[v]);break}_+=d[v].addedLength,v+=1}return m||(m=u.c?[u.v[0][0],u.v[0][1]]:[u.v[u._length-1][0],u.v[u._length-1][1]]),m},vectorOnPath:function(p,f,u){p==1?p=this.v.c:p==0&&(p=.999);var m=this.pointOnPath(p,f),g=this.pointOnPath(p+.001,f),d=g[0]-m[0],y=g[1]-m[1],v=Math.sqrt(Math.pow(d,2)+Math.pow(y,2));return v===0?[0,0]:u==="tangent"?[d/v,y/v]:[-y/v,d/v]},tangentOnPath:function(p,f){return this.vectorOnPath(p,f,"tangent")},normalOnPath:function(p,f){return this.vectorOnPath(p,f,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([h],a),extendPrototype([h],l),l.prototype.getValueAtTime=function(p){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),p*=this.elem.globalData.frameRate,(p-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<p?this._caching.lastIndex:0,this._cachingAtTime.lastTime=p,this.interpolateShape(p,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},l.prototype.initiateExpression=ExpressionManager.initiateExpression;var c=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(p,f,u,m,g){var d=c(p,f,u,m,g);return d.propertyIndex=f.ix,d.lock=!1,u===3?expressionHelpers.searchExpressions(p,f.pt,d):u===4&&expressionHelpers.searchExpressions(p,f.ks,d),d.k&&p.addDynamicProperty(d),d}}function initialize$1(){addPropertyDecorator()}function addDecorator(){TextProperty.prototype.getExpressionValue=function(t,e){var r=this.calculateExpression(e);if(t.t!==r){var i={};return this.copyData(i,t),i.t=r.toString(),i.__complete=!1,i}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(){}function SVGTintFilter(t,e,r,i,n){this.filterManager=e;var s=createNS("feColorMatrix");s.setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","linearRGB"),s.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"),s.setAttribute("result",i+"_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",i+"_tint_2"),t.appendChild(s),this.matrixFilter=s;var o=this.createMergeNode(i,[n,i+"_tint_1",i+"_tint_2"]);t.appendChild(o)}function SVGFillFilter(t,e,r,i){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",i),t.appendChild(n),this.matrixFilter=n}function SVGStrokeEffect(t,e,r){this.initialized=!1,this.filterManager=e,this.elem=r,this.paths=[]}function SVGTritoneFilter(t,e,r,i){this.filterManager=e;var n=createNS("feColorMatrix");n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","linearRGB"),n.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),t.appendChild(n);var s=createNS("feComponentTransfer");s.setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("result",i),this.matrixFilter=s;var o=createNS("feFuncR");o.setAttribute("type","table"),s.appendChild(o),this.feFuncR=o;var a=createNS("feFuncG");a.setAttribute("type","table"),s.appendChild(a),this.feFuncG=a;var l=createNS("feFuncB");l.setAttribute("type","table"),s.appendChild(l),this.feFuncB=l,t.appendChild(s)}function SVGProLevelsFilter(t,e,r,i){this.filterManager=e;var n=this.filterManager.effectElements,s=createNS("feComponentTransfer");(n[10].p.k||n[10].p.v!==0||n[11].p.k||n[11].p.v!==1||n[12].p.k||n[12].p.v!==1||n[13].p.k||n[13].p.v!==0||n[14].p.k||n[14].p.v!==1)&&(this.feFuncR=this.createFeFunc("feFuncR",s)),(n[17].p.k||n[17].p.v!==0||n[18].p.k||n[18].p.v!==1||n[19].p.k||n[19].p.v!==1||n[20].p.k||n[20].p.v!==0||n[21].p.k||n[21].p.v!==1)&&(this.feFuncG=this.createFeFunc("feFuncG",s)),(n[24].p.k||n[24].p.v!==0||n[25].p.k||n[25].p.v!==1||n[26].p.k||n[26].p.v!==1||n[27].p.k||n[27].p.v!==0||n[28].p.k||n[28].p.v!==1)&&(this.feFuncB=this.createFeFunc("feFuncB",s)),(n[31].p.k||n[31].p.v!==0||n[32].p.k||n[32].p.v!==1||n[33].p.k||n[33].p.v!==1||n[34].p.k||n[34].p.v!==0||n[35].p.k||n[35].p.v!==1)&&(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||n[3].p.v!==0||n[4].p.k||n[4].p.v!==1||n[5].p.k||n[5].p.v!==1||n[6].p.k||n[6].p.v!==0||n[7].p.k||n[7].p.v!==1)&&((s=createNS("feComponentTransfer")).setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("result",i),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,r,i,n){var s=e.container.globalData.renderConfig.filterSize,o=e.data.fs||s;t.setAttribute("x",o.x||s.x),t.setAttribute("y",o.y||s.y),t.setAttribute("width",o.width||s.width),t.setAttribute("height",o.height||s.height),this.filterManager=e;var a=createNS("feGaussianBlur");a.setAttribute("in","SourceAlpha"),a.setAttribute("result",i+"_drop_shadow_1"),a.setAttribute("stdDeviation","0"),this.feGaussianBlur=a,t.appendChild(a);var l=createNS("feOffset");l.setAttribute("dx","25"),l.setAttribute("dy","0"),l.setAttribute("in",i+"_drop_shadow_1"),l.setAttribute("result",i+"_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",i+"_drop_shadow_3"),this.feFlood=h,t.appendChild(h);var c=createNS("feComposite");c.setAttribute("in",i+"_drop_shadow_3"),c.setAttribute("in2",i+"_drop_shadow_2"),c.setAttribute("operator","in"),c.setAttribute("result",i+"_drop_shadow_4"),t.appendChild(c);var p=this.createMergeNode(i,[i+"_drop_shadow_4",n]);t.appendChild(p)}SVGComposableEffect.prototype={createMergeNode:function(t,e){var r,i,n=createNS("feMerge");for(n.setAttribute("result",t),i=0;i<e.length;i+=1)(r=createNS("feMergeNode")).setAttribute("in",e[i]),n.appendChild(r),n.appendChild(r);return n}},extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v/100;this.matrixFilter.setAttribute("values",r[0]-e[0]+" 0 0 0 "+e[0]+" "+(r[1]-e[1])+" 0 0 0 "+e[1]+" "+(r[2]-e[2])+" 0 0 0 "+e[2]+" 0 0 0 "+i+" 0")}},SVGFillFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[2].p.v,r=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 "+r+" 0")}},SVGStrokeEffect.prototype.initialize=function(){var t,e,r,i,n=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(this.filterManager.effectElements[1].p.v===1?(i=this.elem.maskManager.masksProperties.length,r=0):i=(r=this.filterManager.effectElements[0].p.v-1)+1,(e=createNS("g")).setAttribute("fill","none"),e.setAttribute("stroke-linecap","round"),e.setAttribute("stroke-dashoffset",1);r<i;r+=1)t=createNS("path"),e.appendChild(t),this.paths.push({p:t,m:r});if(this.filterManager.effectElements[10].p.v===3){var s=createNS("mask"),o=createElementID();s.setAttribute("id",o),s.setAttribute("mask-type","alpha"),s.appendChild(e),this.elem.globalData.defs.appendChild(s);var a=createNS("g");for(a.setAttribute("mask","url("+getLocationHref()+"#"+o+")");n[0];)a.appendChild(n[0]);this.elem.layerElement.appendChild(a),this.masker=s,e.setAttribute("stroke","#fff")}else if(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2){if(this.filterManager.effectElements[10].p.v===2)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 r,i,n=this.paths.length;for(e=0;e<n;e+=1)if(this.paths[e].m!==-1&&(r=this.elem.maskManager.viewData[this.paths[e].m],i=this.paths[e].p,(t||this.filterManager._mdf||r.prop._mdf)&&i.setAttribute("d",r.lastPath),t||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||r.prop._mdf)){var s;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var o=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),a=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),l=i.getTotalLength();s="0 0 0 "+l*o+" ";var h,c=l*(a-o),p=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01,f=Math.floor(c/p);for(h=0;h<f;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;i.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),(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2)&&(t||this.filterManager.effectElements[3].p._mdf)){var u=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*u[0])+","+bmFloor(255*u[1])+","+bmFloor(255*u[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v,n=i[0]+" "+r[0]+" "+e[0],s=i[1]+" "+r[1]+" "+e[1],o=i[2]+" "+r[2]+" "+e[2];this.feFuncR.setAttribute("tableValues",n),this.feFuncG.setAttribute("tableValues",s),this.feFuncB.setAttribute("tableValues",o)}},SVGProLevelsFilter.prototype.createFeFunc=function(t,e){var r=createNS(t);return r.setAttribute("type","table"),e.appendChild(r),r},SVGProLevelsFilter.prototype.getTableValue=function(t,e,r,i,n){for(var s,o,a=0,l=Math.min(t,e),h=Math.max(t,e),c=Array.call(null,{length:256}),p=0,f=n-i,u=e-t;a<=256;)o=(s=a/256)<=l?u<0?n:i:s>=h?u<0?i:n:i+f*Math.pow((s-t)/u,1/r),c[p]=o,p+=1,a+=256/255;return c.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e,r=this.filterManager.effectElements;this.feFuncRComposed&&(t||r[3].p._mdf||r[4].p._mdf||r[5].p._mdf||r[6].p._mdf||r[7].p._mdf)&&(e=this.getTableValue(r[3].p.v,r[4].p.v,r[5].p.v,r[6].p.v,r[7].p.v),this.feFuncRComposed.setAttribute("tableValues",e),this.feFuncGComposed.setAttribute("tableValues",e),this.feFuncBComposed.setAttribute("tableValues",e)),this.feFuncR&&(t||r[10].p._mdf||r[11].p._mdf||r[12].p._mdf||r[13].p._mdf||r[14].p._mdf)&&(e=this.getTableValue(r[10].p.v,r[11].p.v,r[12].p.v,r[13].p.v,r[14].p.v),this.feFuncR.setAttribute("tableValues",e)),this.feFuncG&&(t||r[17].p._mdf||r[18].p._mdf||r[19].p._mdf||r[20].p._mdf||r[21].p._mdf)&&(e=this.getTableValue(r[17].p.v,r[18].p.v,r[19].p.v,r[20].p.v,r[21].p.v),this.feFuncG.setAttribute("tableValues",e)),this.feFuncB&&(t||r[24].p._mdf||r[25].p._mdf||r[26].p._mdf||r[27].p._mdf||r[28].p._mdf)&&(e=this.getTableValue(r[24].p.v,r[25].p.v,r[26].p.v,r[27].p.v,r[28].p.v),this.feFuncB.setAttribute("tableValues",e)),this.feFuncA&&(t||r[31].p._mdf||r[32].p._mdf||r[33].p._mdf||r[34].p._mdf||r[35].p._mdf)&&(e=this.getTableValue(r[31].p.v,r[32].p.v,r[33].p.v,r[34].p.v,r[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 r=this.filterManager.effectElements[3].p.v,i=(this.filterManager.effectElements[2].p.v-90)*degToRads,n=r*Math.cos(i),s=r*Math.sin(i);this.feOffset.setAttribute("dx",n),this.feOffset.setAttribute("dy",s)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(t,e,r){this.initialized=!1,this.filterManager=e,this.filterElem=t,this.elem=r,r.matteElement=createNS("g"),r.matteElement.appendChild(r.layerElement),r.matteElement.appendChild(r.transformedElement),r.baseElement=r.matteElement}function SVGGaussianBlurEffect(t,e,r,i){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",i),t.appendChild(n),this.feGaussianBlur=n}return SVGMatte3Effect.prototype.findSymbol=function(t){for(var e=0,r=_svgMatteSymbols.length;e<r;){if(_svgMatteSymbols[e]===t)return _svgMatteSymbols[e];e+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(t,e){var r=t.layerElement.parentNode;if(r){for(var i,n=r.children,s=0,o=n.length;s<o&&n[s]!==t.layerElement;)s+=1;s<=o-2&&(i=n[s+1]);var a=createNS("use");a.setAttribute("href","#"+e),i?r.insertBefore(a,i):r.appendChild(a)}},SVGMatte3Effect.prototype.setElementAsMask=function(t,e){if(!this.findSymbol(e)){var r=createElementID(),i=createNS("mask");i.setAttribute("id",e.layerId),i.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(e);var n=t.globalData.defs;n.appendChild(i);var s=createNS("symbol");s.setAttribute("id",r),this.replaceInParent(e,r),s.appendChild(e.layerElement),n.appendChild(s);var o=createNS("use");o.setAttribute("href","#"+r),i.appendChild(o),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,r=0,i=e.length;r<i;)e[r]&&e[r].data.ind===t&&this.setElementAsMask(this.elem,e[r]),r+=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,r=this.filterManager.effectElements[1].p.v,i=r==3?0:e,n=r==2?0:e;this.feGaussianBlur.setAttribute("stdDeviation",i+" "+n);var s=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",s)}},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(20,SVGTintFilter,!0),registerEffect(21,SVGFillFilter,!0),registerEffect(22,SVGStrokeEffect,!1),registerEffect(23,SVGTritoneFilter,!0),registerEffect(24,SVGProLevelsFilter,!0),registerEffect(25,SVGDropShadowEffect,!0),registerEffect(28,SVGMatte3Effect,!1),registerEffect(29,SVGGaussianBlurEffect,!0),lottie})}),Hc,Rm=Sm(Hc||(Hc=Rr([`
|
|
262
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Bc=/'/g,zc=/"/g,Ep=/^(?:script|style|textarea|title)$/i,kp=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),gs=kp(1),a2=kp(2),qr=Symbol.for("lit-noChange"),Tt=Symbol.for("lit-nothing"),Hc=new WeakMap,Nr=Gr.createTreeWalker(Gr,129,null,!1),Pp=(t,e)=>{let r=t.length-1,i=[],n,s=e===2?"<svg>":"",o=zi;for(let l=0;l<r;l++){let h=t[l],c,p,f=-1,u=0;for(;u<h.length&&(o.lastIndex=u,p=o.exec(h),p!==null);)u=o.lastIndex,o===zi?p[1]==="!--"?o=Vc:p[1]!==void 0?o=Rc:p[2]!==void 0?(Ep.test(p[2])&&(n=RegExp("</"+p[2],"g")),o=yr):p[3]!==void 0&&(o=yr):o===yr?p[0]===">"?(o=n??zi,f=-1):p[1]===void 0?f=-2:(f=o.lastIndex-p[2].length,c=p[1],o=p[3]===void 0?yr:p[3]==='"'?zc:Bc):o===zc||o===Bc?o=yr:o===Vc||o===Rc?o=zi:(o=yr,n=void 0);let m=o===yr&&t[l+1].startsWith("/>")?" ":"";s+=o===zi?h+Tm:f>=0?(i.push(c),h.slice(0,f)+"$lit$"+h.slice(f)+je+m):h+je+(f===-2?(i.push(void 0),l):m)}let a=s+(t[r]||"<?>")+(e===2?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[$c!==void 0?$c.createHTML(a):a,i]},Zi=class t{constructor({strings:e,_$litType$:r},i){let n;this.parts=[];let s=0,o=0,a=e.length-1,l=this.parts,[h,c]=Pp(e,r);if(this.el=t.createElement(h,i),Nr.currentNode=this.el.content,r===2){let p=this.el.content,f=p.firstChild;f.remove(),p.append(...f.childNodes)}for(;(n=Nr.nextNode())!==null&&l.length<a;){if(n.nodeType===1){if(n.hasAttributes()){let p=[];for(let f of n.getAttributeNames())if(f.endsWith("$lit$")||f.startsWith(je)){let u=c[o++];if(p.push(f),u!==void 0){let m=n.getAttribute(u.toLowerCase()+"$lit$").split(je),g=/([.?@])?(.*)/.exec(u);l.push({type:1,index:s,name:g[2],strings:m,ctor:g[1]==="."?Ts:g[1]==="?"?Ms:g[1]==="@"?Fs:_r})}else l.push({type:6,index:s})}for(let f of p)n.removeAttribute(f)}if(Ep.test(n.tagName)){let p=n.textContent.split(je),f=p.length-1;if(f>0){n.textContent=jr?jr.emptyScript:"";for(let u=0;u<f;u++)n.append(p[u],Ui()),Nr.nextNode(),l.push({type:2,index:++s});n.append(p[f],Ui())}}}else if(n.nodeType===8)if(n.data===Va)l.push({type:2,index:s});else{let p=-1;for(;(p=n.data.indexOf(je,p+1))!==-1;)l.push({type:7,index:s}),p+=je.length-1}s++}}static createElement(e,r){let i=Gr.createElement("template");return i.innerHTML=e,i}};function br(t,e,r=t,i){var n,s,o,a;if(e===qr)return e;let l=i!==void 0?(n=r._$Co)===null||n===void 0?void 0:n[i]:r._$Cl,h=Wi(e)?void 0:e._$litDirective$;return l?.constructor!==h&&((s=l?._$AO)===null||s===void 0||s.call(l,!1),h===void 0?l=void 0:(l=new h(t),l._$AT(t,r,i)),i!==void 0?((o=(a=r)._$Co)!==null&&o!==void 0?o:a._$Co=[])[i]=l:r._$Cl=l),l!==void 0&&(e=br(t,l._$AS(t,e.values),l,i)),e}var Cs=class{constructor(e,r){this.u=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(e){var r;let{el:{content:i},parts:n}=this._$AD,s=((r=e?.creationScope)!==null&&r!==void 0?r:Gr).importNode(i,!0);Nr.currentNode=s;let o=Nr.nextNode(),a=0,l=0,h=n[0];for(;h!==void 0;){if(a===h.index){let c;h.type===2?c=new Ur(o,o.nextSibling,this,e):h.type===1?c=new h.ctor(o,h.name,h.strings,this,e):h.type===6&&(c=new Ds(o,this,e)),this.u.push(c),h=n[++l]}a!==h?.index&&(o=Nr.nextNode(),a++)}return s}p(e){let r=0;for(let i of this.u)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,r),r+=i.strings.length-2):i._$AI(e[r])),r++}},Ur=class t{constructor(e,r,i,n){var s;this.type=2,this._$AH=Tt,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=n,this._$Cm=(s=n?.isConnected)===null||s===void 0||s}get _$AU(){var e,r;return(r=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&r!==void 0?r:this._$Cm}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=br(this,e,r),Wi(e)?e===Tt||e==null||e===""?(this._$AH!==Tt&&this._$AR(),this._$AH=Tt):e!==this._$AH&&e!==qr&&this.g(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Sp(e)?this.k(e):this.g(e)}O(e,r=this._$AB){return this._$AA.parentNode.insertBefore(e,r)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}g(e){this._$AH!==Tt&&Wi(this._$AH)?this._$AA.nextSibling.data=e:this.T(Gr.createTextNode(e)),this._$AH=e}$(e){var r;let{values:i,_$litType$:n}=e,s=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=Zi.createElement(n.h,this.options)),n);if(((r=this._$AH)===null||r===void 0?void 0:r._$AD)===s)this._$AH.p(i);else{let o=new Cs(s,this),a=o.v(this.options);o.p(i),this.T(a),this._$AH=o}}_$AC(e){let r=Hc.get(e.strings);return r===void 0&&Hc.set(e.strings,r=new Zi(e)),r}k(e){xp(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let s of e)n===r.length?r.push(i=new t(this.O(Ui()),this.O(Ui()),this,this.options)):i=r[n],i._$AI(s),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){var i;for((i=this._$AP)===null||i===void 0||i.call(this,!1,!0,r);e&&e!==this._$AB;){let n=e.nextSibling;e.remove(),e=n}}setConnected(e){var r;this._$AM===void 0&&(this._$Cm=e,(r=this._$AP)===null||r===void 0||r.call(this,e))}},_r=class{constructor(e,r,i,n,s){this.type=1,this._$AH=Tt,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=s,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Tt}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,r=this,i,n){let s=this.strings,o=!1;if(s===void 0)e=br(this,e,r,0),o=!Wi(e)||e!==this._$AH&&e!==qr,o&&(this._$AH=e);else{let a=e,l,h;for(e=s[0],l=0;l<s.length-1;l++)h=br(this,a[i+l],r,l),h===qr&&(h=this._$AH[l]),o||(o=!Wi(h)||h!==this._$AH[l]),h===Tt?e=Tt:e!==Tt&&(e+=(h??"")+s[l+1]),this._$AH[l]=h}o&&!n&&this.j(e)}j(e){e===Tt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Ts=class extends _r{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Tt?void 0:e}},Mm=jr?jr.emptyScript:"",Ms=class extends _r{constructor(){super(...arguments),this.type=4}j(e){e&&e!==Tt?this.element.setAttribute(this.name,Mm):this.element.removeAttribute(this.name)}},Fs=class extends _r{constructor(e,r,i,n,s){super(e,r,i,n,s),this.type=5}_$AI(e,r=this){var i;if((e=(i=br(this,e,r,0))!==null&&i!==void 0?i:Tt)===qr)return;let n=this._$AH,s=e===Tt&&n!==Tt||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,o=e!==Tt&&(n===Tt||s);s&&this.element.removeEventListener(this.name,this,n),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var r,i;typeof this._$AH=="function"?this._$AH.call((i=(r=this.options)===null||r===void 0?void 0:r.host)!==null&&i!==void 0?i:this.element,e):this._$AH.handleEvent(e)}},Ds=class{constructor(e,r,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){br(this,e)}},l2={P:"$lit$",A:je,M:Va,C:1,L:Pp,R:Cs,D:Sp,V:br,I:Ur,H:_r,N:Ms,U:Fs,B:Ts,F:Ds},Nc=As.litHtmlPolyfillSupport;Nc?.(Zi,Ur),((ca=As.litHtmlVersions)!==null&&ca!==void 0?ca:As.litHtmlVersions=[]).push("2.5.0");var Fm=(t,e,r)=>{var i,n;let s=(i=r?.renderBefore)!==null&&i!==void 0?i:e,o=s._$litPart$;if(o===void 0){let a=(n=r?.renderBefore)!==null&&n!==void 0?n:null;s._$litPart$=o=new Ur(e.insertBefore(Ui(),a),a,void 0,r??{})}return o._$AI(t),o;},pa,ua,h2=Ne,vr=class extends Ne{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,r;let i=super.createRenderRoot();return(e=(r=this.renderOptions).renderBefore)!==null&&e!==void 0||(r.renderBefore=i.firstChild),i}update(e){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Fm(r,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!1)}render(){return qr}};vr.finalized=!0,vr._$litElement$=!0,(pa=globalThis.litElementHydrateSupport)===null||pa===void 0||pa.call(globalThis,{LitElement:vr});var jc=globalThis.litElementPolyfillSupport;jc?.({LitElement:vr});var c2={_$AK:(t,e,r)=>{t._$AK(e,r)},_$AL:t=>t._$AL};((ua=globalThis.litElementVersions)!==null&&ua!==void 0?ua:globalThis.litElementVersions=[]).push("3.2.2");var p2=!1,Dm=t=>e=>typeof e=="function"?((r,i)=>(customElements.define(r,i),i))(t,e):((r,i)=>{let{kind:n,elements:s}=i;return{kind:n,elements:s,finisher(o){customElements.define(r,o)}}})(t,e),Im=(t,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(r){r.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this))},finisher(r){r.createProperty(e.key,t)}};function Ht(t){return(e,r)=>r!==void 0?((i,n,s)=>{n.constructor.createProperty(s,i)})(t,e,r):Im(t,e);}function u2(t){return Ht({...t,state:!0})}var f2=(t,e,r)=>{Object.defineProperty(e,r,t)},d2=(t,e)=>({kind:"method",placement:"prototype",key:e.key,descriptor:t}),Kr=({finisher:t,descriptor:e})=>(r,i)=>{var n;if(i===void 0){let s=(n=r.originalKey)!==null&&n!==void 0?n:r.key,o=e!=null?{kind:"method",placement:"prototype",key:s,descriptor:e(r.key)}:{...r,key:s};return t!=null&&(o.finisher=function(a){t(a,s)}),o}{let s=r.constructor;e!==void 0&&Object.defineProperty(r,i,e(i)),t?.(s,i)}};function m2(t){return Kr({finisher:(e,r)=>{Object.assign(e.prototype[r],t)}})}function Lm(t,e){return Kr({descriptor:r=>{let i={get(){var n,s;return(s=(n=this.renderRoot)===null||n===void 0?void 0:n.querySelector(t))!==null&&s!==void 0?s:null},enumerable:!0,configurable:!0};if(e){let n=typeof r=="symbol"?Symbol():"__"+r;i.get=function(){var s,o;return this[n]===void 0&&(this[n]=(o=(s=this.renderRoot)===null||s===void 0?void 0:s.querySelector(t))!==null&&o!==void 0?o:null),this[n]}}return i}})}function g2(t){return Kr({descriptor:e=>({get(){var r,i;return(i=(r=this.renderRoot)===null||r===void 0?void 0:r.querySelectorAll(t))!==null&&i!==void 0?i:[]},enumerable:!0,configurable:!0})})}function y2(t){return Kr({descriptor:e=>({async get(){var r;return await this.updateComplete,(r=this.renderRoot)===null||r===void 0?void 0:r.querySelector(t)},enumerable:!0,configurable:!0})})}var fa,Om=((fa=window.HTMLSlotElement)===null||fa===void 0?void 0:fa.prototype.assignedElements)!=null?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter(r=>r.nodeType===Node.ELEMENT_NODE);function $m(t){let{slot:e,selector:r}=t??{};return Kr({descriptor:i=>({get(){var n;let s="slot"+(e?`[name=${e}]`:":not([name])"),o=(n=this.renderRoot)===null||n===void 0?void 0:n.querySelector(s),a=o!=null?Om(o,t):[];return r?a.filter(l=>l.matches(r)):a},enumerable:!0,configurable:!0})})}function v2(t,e,r){let i,n=t;return typeof t=="object"?(n=t.slot,i=t):i={flatten:e},r?$m({slot:n,flatten:e,selector:r}):Kr({descriptor:s=>({get(){var o,a;let l="slot"+(n?`[name=${n}]`:":not([name])"),h=(o=this.renderRoot)===null||o===void 0?void 0:o.querySelector(l);return(a=h?.assignedNodes(i))!==null&&a!==void 0?a:[]},enumerable:!0,configurable:!0})})}var b2=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Vm(t,e,r){return t(r={path:e,exports:{},require:function(i,n){return Rm(i,n??r.path)}},r.exports),r.exports}function _2(t){return t&&t.default||t}function Rm(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var Bm=Vm(function(module,exports){typeof navigator<"u"&&function(t,e){module.exports=e()}(0,function(){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 r,i,n=t.length;for(r=0;r<n;r+=1)for(var s in i=t[r].prototype)Object.prototype.hasOwnProperty.call(i,s)&&(e.prototype[s]=i[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(e){this.audios=[],this.audioFactory=e,this._volume=1,this._isMuted=!1}return t.prototype={addAudio:function(e){this.audios.push(e)},pause:function(){var e,r=this.audios.length;for(e=0;e<r;e+=1)this.audios[e].pause()},resume:function(){var e,r=this.audios.length;for(e=0;e<r;e+=1)this.audios[e].resume()},setRate:function(e){var r,i=this.audios.length;for(r=0;r<i;r+=1)this.audios[r].setRate(e)},createAudio:function(e){return this.audioFactory?this.audioFactory(e):window.Howl?new window.Howl({src:[e]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(e){this.audioFactory=e},setVolume:function(e){this._volume=e,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var e,r=this.audios.length;for(e=0;e<r;e+=1)this.audios[e].volume(this._volume*(this._isMuted?0:1))}},function(){return new t}}(),createTypedArray=function(){function t(e,r){var i,n=0,s=[];switch(e){case"int16":case"uint8c":i=1;break;default:i=1.1}for(n=0;n<r;n+=1)s.push(i);return s}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?function(e,r){return e==="float32"?new Float32Array(r):e==="int16"?new Int16Array(r):e==="uint8c"?new Uint8ClampedArray(r):t(e,r)}:t}();function createSizedArray(t){return Array.apply(null,{length:t})}function _typeof$6(t){return(_typeof$6=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(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"],r=e.length;for(t=0;t<r;t+=1)BMMath[e[t]]=Math[e[t]]})(),BMMath.random=Math.random,BMMath.abs=function(t){if(_typeof$6(t)==="object"&&t.length){var e,r=createSizedArray(t.length),i=t.length;for(e=0;e<i;e+=1)r[e]=Math.abs(t[e]);return r}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,r,i){this.type=t,this.currentTime=e,this.totalTime=r,this.direction=i<0?-1:1}function BMCompleteEvent(t,e){this.type=t,this.direction=e<0?-1:1}function BMCompleteLoopEvent(t,e,r,i){this.type=t,this.currentLoop=r,this.totalLoops=e,this.direction=i<0?-1:1}function BMSegmentStartEvent(t,e,r){this.type=t,this.firstFrame=e,this.totalFrames=r}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,r){var i,n,s,o,a,l,h,c;switch(l=r*(1-e),h=r*(1-(a=6*t-(o=Math.floor(6*t)))*e),c=r*(1-(1-a)*e),o%6){case 0:i=r,n=c,s=l;break;case 1:i=h,n=r,s=l;break;case 2:i=l,n=r,s=c;break;case 3:i=l,n=h,s=r;break;case 4:i=c,n=l,s=r;break;case 5:i=r,n=l,s=h}return[i,n,s]}function RGBtoHSV(t,e,r){var i,n=Math.max(t,e,r),s=Math.min(t,e,r),o=n-s,a=n===0?0:o/n,l=n/255;switch(n){case s:i=0;break;case t:i=e-r+o*(e<r?6:0),i/=6*o;break;case e:i=r-t+2*o,i/=6*o;break;case r:i=t-e+4*o,i/=6*o}return[i,a,l]}function addSaturationToRGB(t,e){var r=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return r[1]+=e,r[1]>1?r[1]=1:r[1]<=0&&(r[1]=0),HSVtoRGB(r[0],r[1],r[2])}function addBrightnessToRGB(t,e){var r=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return r[2]+=e,r[2]>1?r[2]=1:r[2]<0&&(r[2]=0),HSVtoRGB(r[0],r[1],r[2])}function addHueToRGB(t,e){var r=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return r[0]+=e/360,r[0]>1?r[0]-=1:r[0]<0&&(r[0]+=1),HSVtoRGB(r[0],r[1],r[2])}var rgbToHex=function(){var t,e,r=[];for(t=0;t<256;t+=1)e=t.toString(16),r[t]=e.length===1?"0"+e:e;return function(i,n,s){return i<0&&(i=0),n<0&&(n=0),s<0&&(s=0),"#"+r[i]+r[n]+r[s]}}(),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=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}var dataManager=function(){var t,e,r=1,i=[],n={onmessage:function(){},postMessage:function(l){t({data:l})}},s={postMessage:function(l){n.onmessage({data:l})}};function o(){e||((e=function(l){if(window.Worker&&window.Blob&&getWebWorker()){var h=new Blob(["var _workerSelf = self; self.onmessage = ",l.toString()],{type:"text/javascript"}),c=URL.createObjectURL(h);return new Worker(c)}return t=l,n}(function(l){if(s.dataManager||(s.dataManager=function(){function c(S,w){var D,E,T,k,A,P,I=S.length;for(E=0;E<I;E+=1)if("ks"in(D=S[E])&&!D.completed){if(D.completed=!0,D.hasMask){var L=D.masksProperties;for(k=L.length,T=0;T<k;T+=1)if(L[T].pt.k.i)u(L[T].pt.k);else for(P=L[T].pt.k.length,A=0;A<P;A+=1)L[T].pt.k[A].s&&u(L[T].pt.k[A].s[0]),L[T].pt.k[A].e&&u(L[T].pt.k[A].e[0])}D.ty===0?(D.layers=p(D.refId,w),c(D.layers,w)):D.ty===4?f(D.shapes):D.ty===5&&x(D)}}function p(S,w){var D=function(E,T){for(var k=0,A=T.length;k<A;){if(T[k].id===E)return T[k];k+=1}return null}(S,w);return D?D.layers.__used?JSON.parse(JSON.stringify(D.layers)):(D.layers.__used=!0,D.layers):null}function f(S){var w,D,E;for(w=S.length-1;w>=0;w-=1)if(S[w].ty==="sh")if(S[w].ks.k.i)u(S[w].ks.k);else for(E=S[w].ks.k.length,D=0;D<E;D+=1)S[w].ks.k[D].s&&u(S[w].ks.k[D].s[0]),S[w].ks.k[D].e&&u(S[w].ks.k[D].e[0]);else S[w].ty==="gr"&&f(S[w].it)}function u(S){var w,D=S.i.length;for(w=0;w<D;w+=1)S.i[w][0]+=S.v[w][0],S.i[w][1]+=S.v[w][1],S.o[w][0]+=S.v[w][0],S.o[w][1]+=S.v[w][1]}function m(S,w){var D=w?w.split("."):[100,100,100];return S[0]>D[0]||!(D[0]>S[0])&&(S[1]>D[1]||!(D[1]>S[1])&&(S[2]>D[2]||!(D[2]>S[2])&&null))}var g,d=function(){var S=[4,4,14];function w(D){var E,T,k,A=D.length;for(E=0;E<A;E+=1)D[E].ty===5&&(T=D[E],k=void 0,k=T.t.d,T.t.d={k:[{s:k,t:0}]})}return function(D){if(m(S,D.v)&&(w(D.layers),D.assets)){var E,T=D.assets.length;for(E=0;E<T;E+=1)D.assets[E].layers&&w(D.assets[E].layers)}}}(),y=(g=[4,7,99],function(S){if(S.chars&&!m(g,S.v)){var w,D=S.chars.length;for(w=0;w<D;w+=1){var E=S.chars[w];E.data&&E.data.shapes&&(f(E.data.shapes),E.data.ip=0,E.data.op=99999,E.data.st=0,E.data.sr=1,E.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}},S.chars[w].t||(E.data.shapes.push({ty:"no"}),E.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"})))}}}),v=function(){var S=[5,7,15];function w(D){var E,T,k,A=D.length;for(E=0;E<A;E+=1)D[E].ty===5&&(T=D[E],k=void 0,typeof(k=T.t.p).a=="number"&&(k.a={a:0,k:k.a}),typeof k.p=="number"&&(k.p={a:0,k:k.p}),typeof k.r=="number"&&(k.r={a:0,k:k.r}))}return function(D){if(m(S,D.v)&&(w(D.layers),D.assets)){var E,T=D.assets.length;for(E=0;E<T;E+=1)D.assets[E].layers&&w(D.assets[E].layers)}}}(),b=function(){var S=[4,1,9];function w(E){var T,k,A,P=E.length;for(T=0;T<P;T+=1)if(E[T].ty==="gr")w(E[T].it);else if(E[T].ty==="fl"||E[T].ty==="st")if(E[T].c.k&&E[T].c.k[0].i)for(A=E[T].c.k.length,k=0;k<A;k+=1)E[T].c.k[k].s&&(E[T].c.k[k].s[0]/=255,E[T].c.k[k].s[1]/=255,E[T].c.k[k].s[2]/=255,E[T].c.k[k].s[3]/=255),E[T].c.k[k].e&&(E[T].c.k[k].e[0]/=255,E[T].c.k[k].e[1]/=255,E[T].c.k[k].e[2]/=255,E[T].c.k[k].e[3]/=255);else E[T].c.k[0]/=255,E[T].c.k[1]/=255,E[T].c.k[2]/=255,E[T].c.k[3]/=255}function D(E){var T,k=E.length;for(T=0;T<k;T+=1)E[T].ty===4&&w(E[T].shapes)}return function(E){if(m(S,E.v)&&(D(E.layers),E.assets)){var T,k=E.assets.length;for(T=0;T<k;T+=1)E.assets[T].layers&&D(E.assets[T].layers)}}}(),_=function(){var S=[4,4,18];function w(E){var T,k,A;for(T=E.length-1;T>=0;T-=1)if(E[T].ty==="sh")if(E[T].ks.k.i)E[T].ks.k.c=E[T].closed;else for(A=E[T].ks.k.length,k=0;k<A;k+=1)E[T].ks.k[k].s&&(E[T].ks.k[k].s[0].c=E[T].closed),E[T].ks.k[k].e&&(E[T].ks.k[k].e[0].c=E[T].closed);else E[T].ty==="gr"&&w(E[T].it)}function D(E){var T,k,A,P,I,L,F=E.length;for(k=0;k<F;k+=1){if((T=E[k]).hasMask){var C=T.masksProperties;for(P=C.length,A=0;A<P;A+=1)if(C[A].pt.k.i)C[A].pt.k.c=C[A].cl;else for(L=C[A].pt.k.length,I=0;I<L;I+=1)C[A].pt.k[I].s&&(C[A].pt.k[I].s[0].c=C[A].cl),C[A].pt.k[I].e&&(C[A].pt.k[I].e[0].c=C[A].cl)}T.ty===4&&w(T.shapes)}}return function(E){if(m(S,E.v)&&(D(E.layers),E.assets)){var T,k=E.assets.length;for(T=0;T<k;T+=1)E.assets[T].layers&&D(E.assets[T].layers)}}}();function x(S){S.t.a.length===0&&S.t.p}var M={completeData:function(S){S.__complete||(b(S),d(S),y(S),v(S),_(S),c(S.layers,S.assets),function(w,D){if(w){var E=0,T=w.length;for(E=0;E<T;E+=1)w[E].t===1&&(w[E].data.layers=p(w[E].data.refId,D),c(w[E].data.layers,D))}}(S.chars,S.assets),S.__complete=!0)}};return M.checkColors=b,M.checkChars=y,M.checkPathProperties=v,M.checkShapes=_,M.completeLayers=c,M}()),s.assetLoader||(s.assetLoader=function(){function c(p){var f=p.getResponseHeader("content-type");return f&&p.responseType==="json"&&f.indexOf("json")!==-1||p.response&&_typeof$5(p.response)==="object"?p.response:p.response&&typeof p.response=="string"?JSON.parse(p.response):p.responseText?JSON.parse(p.responseText):null}return{load:function(p,f,u,m){var g,d=new XMLHttpRequest;try{d.responseType="json"}catch{}d.onreadystatechange=function(){if(d.readyState===4)if(d.status===200)g=c(d),u(g);else try{g=c(d),u(g)}catch(y){m&&m(y)}};try{d.open(["G","E","T"].join(""),p,!0)}catch{d.open(["G","E","T"].join(""),f+"/"+p,!0)}d.send()}}}()),l.data.type==="loadAnimation")s.assetLoader.load(l.data.path,l.data.fullPath,function(c){s.dataManager.completeData(c),s.postMessage({id:l.data.id,payload:c,status:"success"})},function(){s.postMessage({id:l.data.id,status:"error"})});else if(l.data.type==="complete"){var h=l.data.animation;s.dataManager.completeData(h),s.postMessage({id:l.data.id,payload:h,status:"success"})}else l.data.type==="loadData"&&s.assetLoader.load(l.data.path,l.data.fullPath,function(c){s.postMessage({id:l.data.id,payload:c,status:"success"})},function(){s.postMessage({id:l.data.id,status:"error"})})})).onmessage=function(l){var h=l.data,c=h.id,p=i[c];i[c]=null,h.status==="success"?p.onComplete(h.payload):p.onError&&p.onError()})}function a(l,h){var c="processId_"+(r+=1);return i[c]={onComplete:l,onError:h},c}return{loadAnimation:function(l,h,c){o();var p=a(h,c);e.postMessage({type:"loadAnimation",path:l,fullPath:window.location.origin+window.location.pathname,id:p})},loadData:function(l,h,c){o();var p=a(h,c);e.postMessage({type:"loadData",path:l,fullPath:window.location.origin+window.location.pathname,id:p})},completeAnimation:function(l,h,c){o();var p=a(h,c);e.postMessage({type:"complete",animation:l,id:p})}}}(),ImagePreloader=function(){var t=function(){var a=createTag("canvas");a.width=1,a.height=1;var l=a.getContext("2d");return l.fillStyle="rgba(0,0,0,0)",l.fillRect(0,0,1,1),a}();function e(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function r(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function i(a,l,h){var c="";if(a.e)c=a.p;else if(l){var p=a.p;p.indexOf("images/")!==-1&&(p=p.split("/")[1]),c=l+p}else c=h,c+=a.u?a.u:"",c+=a.p;return c}function n(a){var l=0,h=setInterval(function(){(a.getBBox().width||l>500)&&(this._imageLoaded(),clearInterval(h)),l+=1}.bind(this),50)}function s(a){var l={assetData:a},h=i(a,this.assetsPath,this.path);return dataManager.loadData(h,function(c){l.img=c,this._footageLoaded()}.bind(this),function(){l.img={},this._footageLoaded()}.bind(this)),l}function o(){this._imageLoaded=e.bind(this),this._footageLoaded=r.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 o.prototype={loadAssets:function(a,l){var h;this.imagesLoadedCb=l;var c=a.length;for(h=0;h<c;h+=1)a[h].layers||(a[h].t&&a[h].t!=="seq"?a[h].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(a[h]))):(this.totalImages+=1,this.images.push(this._createImageData(a[h]))))},setAssetsPath:function(a){this.assetsPath=a||""},setPath:function(a){this.path=a||""},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(a){for(var l=0,h=this.images.length;l<h;){if(this.images[l].assetData===a)return this.images[l].img;l+=1}return null},createImgData:function(a){var l=i(a,this.assetsPath,this.path),h=createTag("img");h.crossOrigin="anonymous",h.addEventListener("load",this._imageLoaded,!1),h.addEventListener("error",function(){c.img=t,this._imageLoaded()}.bind(this),!1),h.src=l;var c={img:h,assetData:a};return c},createImageData:function(a){var l=i(a,this.assetsPath,this.path),h=createNS("image");isSafari?this.testImageLoaded(h):h.addEventListener("load",this._imageLoaded,!1),h.addEventListener("error",function(){c.img=t,this._imageLoaded()}.bind(this),!1),h.setAttributeNS("http://www.w3.org/1999/xlink","href",l),this._elementHelper.append?this._elementHelper.append(h):this._elementHelper.appendChild(h);var c={img:h,assetData:a};return c},imageLoaded:e,footageLoaded:r,setCacheType:function(a,l){a==="svg"?(this._elementHelper=l,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},o}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(t,e){if(this._cbs[t])for(var r=this._cbs[t],i=0;i<r.length;i+=1)r[i](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 r=0,i=this._cbs[t].length;r<i;)this._cbs[t][r]===e&&(this._cbs[t].splice(r,1),r-=1,i-=1),r+=1;this._cbs[t].length||(this._cbs[t]=null)}}else this._cbs[t]=null}};var markerParser=function(){function t(e){for(var r,i=e.split(`\r
|
|
263
|
+
`),n={},s=0,o=0;o<i.length;o+=1)(r=i[o].split(":")).length===2&&(n[r[0]]=r[1].trim(),s+=1);if(s===0)throw new Error;return n}return function(e){for(var r=[],i=0;i<e.length;i+=1){var n=e[i],s={time:n.tm,duration:n.dr};try{s.payload=JSON.parse(e[i].cm)}catch{try{s.payload=t(e[i].cm)}catch{s.payload={name:e[i].cm}}}r.push(s)}return r}}(),ProjectInterface=function(){function t(e){this.compositions.push(e)}return function(){function e(r){for(var i=0,n=this.compositions.length;i<n;){if(this.compositions[i].data&&this.compositions[i].data.nm===r)return this.compositions[i].prepareFrame&&this.compositions[i].data.xt&&this.compositions[i].prepareFrame(this.currentFrame),this.compositions[i].compInterface;i+=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 _typeof$4(t){return(_typeof$4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(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=new BMEnterFrameEvent("drawnFrame",0,0,0)};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 r=getRenderer(e);this.renderer=new r(this,t.rendererSettings),this.imagePreloader.setCacheType(e,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=e,t.loop===""||t.loop===null||t.loop===void 0||t.loop===!0?this.loop=!0:t.loop===!1?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&&(t.path.lastIndexOf("\\")!==-1?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&&_typeof$4(e)!=="object"&&(e=JSON.parse(e));var r={wrapper:t,animationData:e},i=t.attributes;r.path=i.getNamedItem("data-animation-path")?i.getNamedItem("data-animation-path").value:i.getNamedItem("data-bm-path")?i.getNamedItem("data-bm-path").value:i.getNamedItem("bm-path")?i.getNamedItem("bm-path").value:"",r.animType=i.getNamedItem("data-anim-type")?i.getNamedItem("data-anim-type").value:i.getNamedItem("data-bm-type")?i.getNamedItem("data-bm-type").value:i.getNamedItem("bm-type")?i.getNamedItem("bm-type").value:i.getNamedItem("data-bm-renderer")?i.getNamedItem("data-bm-renderer").value:i.getNamedItem("bm-renderer")?i.getNamedItem("bm-renderer").value:"canvas";var n=i.getNamedItem("data-anim-loop")?i.getNamedItem("data-anim-loop").value:i.getNamedItem("data-bm-loop")?i.getNamedItem("data-bm-loop").value:i.getNamedItem("bm-loop")?i.getNamedItem("bm-loop").value:"";n==="false"?r.loop=!1:n==="true"?r.loop=!0:n!==""&&(r.loop=parseInt(n,10));var s=i.getNamedItem("data-anim-autoplay")?i.getNamedItem("data-anim-autoplay").value:i.getNamedItem("data-bm-autoplay")?i.getNamedItem("data-bm-autoplay").value:!i.getNamedItem("bm-autoplay")||i.getNamedItem("bm-autoplay").value;r.autoplay=s!=="false",r.name=i.getNamedItem("data-name")?i.getNamedItem("data-name").value:i.getNamedItem("data-bm-name")?i.getNamedItem("data-bm-name").value:i.getNamedItem("bm-name")?i.getNamedItem("bm-name").value:"",(i.getNamedItem("data-anim-prerender")?i.getNamedItem("data-anim-prerender").value:i.getNamedItem("data-bm-prerender")?i.getNamedItem("data-bm-prerender").value:i.getNamedItem("bm-prerender")?i.getNamedItem("bm-prerender").value:"")==="false"&&(r.prerender=!1),this.setParams(r)},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,r,i=this.animationData.layers,n=i.length,s=t.layers,o=s.length;for(r=0;r<o;r+=1)for(e=0;e<n;){if(i[e].id===s[r].id){i[e]=s[r];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||t.length===0||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var e=t.shift();this.timeCompleted=e.time*this.frameRate;var r=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(r,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(e){this.triggerConfigError(e)}},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()||this.renderer.rendererType!=="canvas")&&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 r=typeof t=="number"?t:void 0,i=typeof e=="number"?e:void 0;this.renderer.updateContainerSize(r,i)},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(this.isLoaded!==!1&&this.renderer)try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(t){this.triggerRenderFrameError(t)}},AnimationItem.prototype.play=function(t){t&&this.name!==t||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_pause"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(t){t&&this.name!==t||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_play"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(t){t&&this.name!==t||(this.isPaused===!0?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,r=0;r<this.markers.length;r+=1)if((e=this.markers[r]).payload&&e.payload.name===t)return e;return null},AnimationItem.prototype.goToAndStop=function(t,e,r){if(!r||this.name===r){var i=Number(t);if(isNaN(i)){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,r){if(!r||this.name===r){var i=Number(t);if(isNaN(i)){var n=this.getMarkerData(t);n&&(n.duration?this.playSegments([n.time,n.time+n.duration],!0):this.goToAndStop(n.time,!0))}else this.goToAndStop(i,e,r);this.play()}},AnimationItem.prototype.advanceTime=function(t){if(this.isPaused!==!0&&this.isLoaded!==!1){var e=this.currentRawFrame+t*this.frameModifier,r=!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)||(r=!0,e=this.totalFrames-1):e<0?this.checkSegments(e%this.totalFrames)||(!this.loop||this.playCount--<=0&&this.loop!==!0?(r=!0,e=0):(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(e),r&&(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 r=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<t?r=t:this.currentRawFrame+this.firstFrame>e&&(r=e-t)),this.firstFrame=t,this.totalFrames=e-t,this.timeCompleted=this.totalFrames,r!==-1&&this.goToAndStop(r,!0)},AnimationItem.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),_typeof$4(t[0])==="object"){var r,i=t.length;for(r=0;r<i;r+=1)this.segments.push(t[r])}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.renderer=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.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 r=t.p;r.indexOf("images/")!==-1&&(r=r.split("/")[1]),e=this.assetsPath+r}else e=this.path,e+=t.u?t.u:"",e+=t.p;return e},AnimationItem.prototype.getAssetData=function(t){for(var e=0,r=this.assets.length;e<r;){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,r){try{this.renderer.getElementByPath(t).updateDocumentData(e,r)}catch{}},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)}t==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameMult)),t==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult)),t==="complete"&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(t,this.frameMult)),t==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames)),t==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(t,this))},AnimationItem.prototype.triggerRenderFrameError=function(t){var e=new BMRenderFrameErrorEvent(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)},AnimationItem.prototype.triggerConfigError=function(t){var e=new BMConfigErrorEvent(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)};var animationManager=function(){var t={},e=[],r=0,i=0,n=0,s=!0,o=!1;function a(g){for(var d=0,y=g.target;d<i;)e[d].animation===y&&(e.splice(d,1),d-=1,i-=1,y.isPaused||c()),d+=1}function l(g,d){if(!g)return null;for(var y=0;y<i;){if(e[y].elem===g&&e[y].elem!==null)return e[y].animation;y+=1}var v=new AnimationItem;return p(v,g),v.setData(g,d),v}function h(){n+=1,m()}function c(){n-=1}function p(g,d){g.addEventListener("destroy",a),g.addEventListener("_active",h),g.addEventListener("_idle",c),e.push({elem:d,animation:g}),i+=1}function f(g){var d,y=g-r;for(d=0;d<i;d+=1)e[d].animation.advanceTime(y);r=g,n&&!o?window.requestAnimationFrame(f):s=!0}function u(g){r=g,window.requestAnimationFrame(f)}function m(){!o&&n&&s&&(window.requestAnimationFrame(u),s=!1)}return t.registerAnimation=l,t.loadAnimation=function(g){var d=new AnimationItem;return p(d,null),d.setParams(g),d},t.setSpeed=function(g,d){var y;for(y=0;y<i;y+=1)e[y].animation.setSpeed(g,d)},t.setDirection=function(g,d){var y;for(y=0;y<i;y+=1)e[y].animation.setDirection(g,d)},t.play=function(g){var d;for(d=0;d<i;d+=1)e[d].animation.play(g)},t.pause=function(g){var d;for(d=0;d<i;d+=1)e[d].animation.pause(g)},t.stop=function(g){var d;for(d=0;d<i;d+=1)e[d].animation.stop(g)},t.togglePause=function(g){var d;for(d=0;d<i;d+=1)e[d].animation.togglePause(g)},t.searchAnimations=function(g,d,y){var v,b=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),_=b.length;for(v=0;v<_;v+=1)y&&b[v].setAttribute("data-bm-type",y),l(b[v],g);if(d&&_===0){y||(y="svg");var x=document.getElementsByTagName("body")[0];x.innerText="";var M=createTag("div");M.style.width="100%",M.style.height="100%",M.setAttribute("data-bm-type",y),x.appendChild(M),l(M,g)}},t.resize=function(){var g;for(g=0;g<i;g+=1)e[g].animation.resize()},t.goToAndStop=function(g,d,y){var v;for(v=0;v<i;v+=1)e[v].animation.goToAndStop(g,d,y)},t.destroy=function(g){var d;for(d=i-1;d>=0;d-=1)e[d].animation.destroy(g)},t.freeze=function(){o=!0},t.unfreeze=function(){o=!1,m()},t.setVolume=function(g,d){var y;for(y=0;y<i;y+=1)e[y].animation.setVolume(g,d)},t.mute=function(g){var d;for(d=0;d<i;d+=1)e[d].animation.mute(g)},t.unmute=function(g){var d;for(d=0;d<i;d+=1)e[d].animation.unmute(g)},t.getRegisteredAnimations=function(){var g,d=e.length,y=[];for(g=0;g<d;g+=1)y.push(e[g].animation);return y},t}(),BezierFactory=function(){var t={getBezierEasing:function(h,c,p,f,u){var m=u||("bez_"+h+"_"+c+"_"+p+"_"+f).replace(/\./g,"p");if(e[m])return e[m];var g=new l([h,c,p,f]);return e[m]=g,g}},e={},r=typeof Float32Array=="function";function i(h,c){return 1-3*c+3*h}function n(h,c){return 3*c-6*h}function s(h){return 3*h}function o(h,c,p){return((i(c,p)*h+n(c,p))*h+s(c))*h}function a(h,c,p){return 3*i(c,p)*h*h+2*n(c,p)*h+s(c)}function l(h){this._p=h,this._mSampleValues=r?new Float32Array(11):new Array(11),this._precomputed=!1,this.get=this.get.bind(this)}return l.prototype={get:function(h){var c=this._p[0],p=this._p[1],f=this._p[2],u=this._p[3];return this._precomputed||this._precompute(),c===p&&f===u?h:h===0?0:h===1?1:o(this._getTForX(h),p,u)},_precompute:function(){var h=this._p[0],c=this._p[1],p=this._p[2],f=this._p[3];this._precomputed=!0,h===c&&p===f||this._calcSampleValues()},_calcSampleValues:function(){for(var h=this._p[0],c=this._p[2],p=0;p<11;++p)this._mSampleValues[p]=o(.1*p,h,c)},_getTForX:function(h){for(var c=this._p[0],p=this._p[2],f=this._mSampleValues,u=0,m=1;m!==10&&f[m]<=h;++m)u+=.1;var g=u+.1*((h-f[--m])/(f[m+1]-f[m])),d=a(g,c,p);return d>=.001?function(y,v,b,_){for(var x=0;x<4;++x){var M=a(v,b,_);if(M===0)return v;v-=(o(v,b,_)-y)/M}return v}(h,g,c,p):d===0?g:function(y,v,b,_,x){var M,S,w=0;do(M=o(S=v+(b-v)/2,_,x)-y)>0?b=S:v=S;while(Math.abs(M)>1e-7&&++w<10);return S}(h,u,u+.1,c,p)}},t}(),pooling={double:function(t){return t.concat(createSizedArray(t.length))}},poolFactory=function(t,e,r){var i=0,n=t,s=createSizedArray(n);return{newElement:function(){return i?s[i-=1]:e()},release:function(o){i===n&&(s=pooling.double(s),n*=2),r&&r(o),s[i]=o,i+=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,r=t.lengths.length;for(e=0;e<r;e+=1)bezierLengthPool.release(t.lengths[e]);t.lengths.length=0});function bezFunction(){var t=Math;function e(h,c,p,f,u,m){var g=h*f+c*u+p*m-u*f-m*h-p*c;return g>-.001&&g<.001}var r=function(h,c,p,f){var u,m,g,d,y,v,b=getDefaultCurveSegments(),_=0,x=[],M=[],S=bezierLengthPool.newElement();for(g=p.length,u=0;u<b;u+=1){for(y=u/(b-1),v=0,m=0;m<g;m+=1)d=bmPow(1-y,3)*h[m]+3*bmPow(1-y,2)*y*p[m]+3*(1-y)*bmPow(y,2)*f[m]+bmPow(y,3)*c[m],x[m]=d,M[m]!==null&&(v+=bmPow(x[m]-M[m],2)),M[m]=x[m];v&&(_+=v=bmSqrt(v)),S.percents[u]=y,S.lengths[u]=_}return S.addedLength=_,S};function i(h){this.segmentLength=0,this.points=new Array(h)}function n(h,c){this.partialLength=h,this.point=c}var s,o=(s={},function(h,c,p,f){var u=(h[0]+"_"+h[1]+"_"+c[0]+"_"+c[1]+"_"+p[0]+"_"+p[1]+"_"+f[0]+"_"+f[1]).replace(/\./g,"p");if(!s[u]){var m,g,d,y,v,b,_,x=getDefaultCurveSegments(),M=0,S=null;h.length===2&&(h[0]!==c[0]||h[1]!==c[1])&&e(h[0],h[1],c[0],c[1],h[0]+p[0],h[1]+p[1])&&e(h[0],h[1],c[0],c[1],c[0]+f[0],c[1]+f[1])&&(x=2);var w=new i(x);for(d=p.length,m=0;m<x;m+=1){for(_=createSizedArray(d),v=m/(x-1),b=0,g=0;g<d;g+=1)y=bmPow(1-v,3)*h[g]+3*bmPow(1-v,2)*v*(h[g]+p[g])+3*(1-v)*bmPow(v,2)*(c[g]+f[g])+bmPow(v,3)*c[g],_[g]=y,S!==null&&(b+=bmPow(_[g]-S[g],2));M+=b=bmSqrt(b),w.points[m]=new n(b,_),S=_}w.segmentLength=M,s[u]=w}return s[u]});function a(h,c){var p=c.percents,f=c.lengths,u=p.length,m=bmFloor((u-1)*h),g=h*c.addedLength,d=0;if(m===u-1||m===0||g===f[m])return p[m];for(var y=f[m]>g?-1:1,v=!0;v;)if(f[m]<=g&&f[m+1]>g?(d=(g-f[m])/(f[m+1]-f[m]),v=!1):m+=y,m<0||m>=u-1){if(m===u-1)return p[m];v=!1}return p[m]+(p[m+1]-p[m])*d}var l=createTypedArray("float32",8);return{getSegmentsLength:function(h){var c,p=segmentsLengthPool.newElement(),f=h.c,u=h.v,m=h.o,g=h.i,d=h._length,y=p.lengths,v=0;for(c=0;c<d-1;c+=1)y[c]=r(u[c],u[c+1],m[c],g[c+1]),v+=y[c].addedLength;return f&&d&&(y[c]=r(u[c],u[0],m[c],g[0]),v+=y[c].addedLength),p.totalLength=v,p},getNewSegment:function(h,c,p,f,u,m,g){u<0?u=0:u>1&&(u=1);var d,y=a(u,g),v=a(m=m>1?1:m,g),b=h.length,_=1-y,x=1-v,M=_*_*_,S=y*_*_*3,w=y*y*_*3,D=y*y*y,E=_*_*x,T=y*_*x+_*y*x+_*_*v,k=y*y*x+_*y*v+y*_*v,A=y*y*v,P=_*x*x,I=y*x*x+_*v*x+_*x*v,L=y*v*x+_*v*v+y*x*v,F=y*v*v,C=x*x*x,O=v*x*x+x*v*x+x*x*v,V=v*v*x+x*v*v+v*x*v,z=v*v*v;for(d=0;d<b;d+=1)l[4*d]=t.round(1e3*(M*h[d]+S*p[d]+w*f[d]+D*c[d]))/1e3,l[4*d+1]=t.round(1e3*(E*h[d]+T*p[d]+k*f[d]+A*c[d]))/1e3,l[4*d+2]=t.round(1e3*(P*h[d]+I*p[d]+L*f[d]+F*c[d]))/1e3,l[4*d+3]=t.round(1e3*(C*h[d]+O*p[d]+V*f[d]+z*c[d]))/1e3;return l},getPointInSegment:function(h,c,p,f,u,m){var g=a(u,m),d=1-g;return[t.round(1e3*(d*d*d*h[0]+(g*d*d+d*g*d+d*d*g)*p[0]+(g*g*d+d*g*g+g*d*g)*f[0]+g*g*g*c[0]))/1e3,t.round(1e3*(d*d*d*h[1]+(g*d*d+d*g*d+d*d*g)*p[1]+(g*g*d+d*g*g+g*d*g)*f[1]+g*g*g*c[1]))/1e3]},buildBezierData:o,pointOnLine2D:e,pointOnLine3D:function(h,c,p,f,u,m,g,d,y){if(p===0&&m===0&&y===0)return e(h,c,f,u,g,d);var v,b=t.sqrt(t.pow(f-h,2)+t.pow(u-c,2)+t.pow(m-p,2)),_=t.sqrt(t.pow(g-h,2)+t.pow(d-c,2)+t.pow(y-p,2)),x=t.sqrt(t.pow(g-f,2)+t.pow(d-u,2)+t.pow(y-m,2));return(v=b>_?b>x?b-_-x:x-_-b:x>_?x-_-b:_-b-x)>-1e-4&&v<1e-4}}}var bez=bezFunction(),PropertyFactory=function(){var t=initialDefaultFrame,e=Math.abs;function r(f,u){var m,g=this.offsetTime;this.propType==="multidimensional"&&(m=createTypedArray("float32",this.pv.length));for(var d,y,v,b,_,x,M,S,w,D=u.lastIndex,E=D,T=this.keyframes.length-1,k=!0;k;){if(d=this.keyframes[E],y=this.keyframes[E+1],E===T-1&&f>=y.t-g){d.h&&(d=y),D=0;break}if(y.t-g>f){D=E;break}E<T-1?E+=1:(D=0,k=!1)}v=this.keyframesMetadata[E]||{};var A,P=y.t-g,I=d.t-g;if(d.to){v.bezierData||(v.bezierData=bez.buildBezierData(d.s,y.s||d.e,d.to,d.ti));var L=v.bezierData;if(f>=P||f<I){var F=f>=P?L.points.length-1:0;for(_=L.points[F].point.length,b=0;b<_;b+=1)m[b]=L.points[F].point[b]}else{v.__fnct?w=v.__fnct:(w=BezierFactory.getBezierEasing(d.o.x,d.o.y,d.i.x,d.i.y,d.n).get,v.__fnct=w),x=w((f-I)/(P-I));var C,O=L.segmentLength*x,V=u.lastFrame<f&&u._lastKeyframeIndex===E?u._lastAddedLength:0;for(S=u.lastFrame<f&&u._lastKeyframeIndex===E?u._lastPoint:0,k=!0,M=L.points.length;k;){if(V+=L.points[S].partialLength,O===0||x===0||S===L.points.length-1){for(_=L.points[S].point.length,b=0;b<_;b+=1)m[b]=L.points[S].point[b];break}if(O>=V&&O<V+L.points[S+1].partialLength){for(C=(O-V)/L.points[S+1].partialLength,_=L.points[S].point.length,b=0;b<_;b+=1)m[b]=L.points[S].point[b]+(L.points[S+1].point[b]-L.points[S].point[b])*C;break}S<M-1?S+=1:k=!1}u._lastPoint=S,u._lastAddedLength=V-L.points[S].partialLength,u._lastKeyframeIndex=E}}else{var z,N,G,H,Y;if(T=d.s.length,A=y.s||d.e,this.sh&&d.h!==1)f>=P?(m[0]=A[0],m[1]=A[1],m[2]=A[2]):f<=I?(m[0]=d.s[0],m[1]=d.s[1],m[2]=d.s[2]):function(Q,K){var Z=K[0],pt=K[1],et=K[2],vt=K[3],ut=Math.atan2(2*pt*vt-2*Z*et,1-2*pt*pt-2*et*et),j=Math.asin(2*Z*pt+2*et*vt),Ft=Math.atan2(2*Z*vt-2*pt*et,1-2*Z*Z-2*et*et);Q[0]=ut/degToRads,Q[1]=j/degToRads,Q[2]=Ft/degToRads}(m,function(Q,K,Z){var pt,et,vt,ut,j,Ft=[],he=Q[0],ce=Q[1],Ut=Q[2],Jt=Q[3],Wt=K[0],St=K[1],Qt=K[2],te=K[3];return(et=he*Wt+ce*St+Ut*Qt+Jt*te)<0&&(et=-et,Wt=-Wt,St=-St,Qt=-Qt,te=-te),1-et>1e-6?(pt=Math.acos(et),vt=Math.sin(pt),ut=Math.sin((1-Z)*pt)/vt,j=Math.sin(Z*pt)/vt):(ut=1-Z,j=Z),Ft[0]=ut*he+j*Wt,Ft[1]=ut*ce+j*St,Ft[2]=ut*Ut+j*Qt,Ft[3]=ut*Jt+j*te,Ft}(i(d.s),i(A),(f-I)/(P-I)));else for(E=0;E<T;E+=1)d.h!==1&&(f>=P?x=1:f<I?x=0:(d.o.x.constructor===Array?(v.__fnct||(v.__fnct=[]),v.__fnct[E]?w=v.__fnct[E]:(z=d.o.x[E]===void 0?d.o.x[0]:d.o.x[E],N=d.o.y[E]===void 0?d.o.y[0]:d.o.y[E],G=d.i.x[E]===void 0?d.i.x[0]:d.i.x[E],H=d.i.y[E]===void 0?d.i.y[0]:d.i.y[E],w=BezierFactory.getBezierEasing(z,N,G,H).get,v.__fnct[E]=w)):v.__fnct?w=v.__fnct:(z=d.o.x,N=d.o.y,G=d.i.x,H=d.i.y,w=BezierFactory.getBezierEasing(z,N,G,H).get,d.keyframeMetadata=w),x=w((f-I)/(P-I)))),A=y.s||d.e,Y=d.h===1?d.s[E]:d.s[E]+(A[E]-d.s[E])*x,this.propType==="multidimensional"?m[E]=Y:m=Y}return u.lastIndex=D,m}function i(f){var u=f[0]*degToRads,m=f[1]*degToRads,g=f[2]*degToRads,d=Math.cos(u/2),y=Math.cos(m/2),v=Math.cos(g/2),b=Math.sin(u/2),_=Math.sin(m/2),x=Math.sin(g/2);return[b*_*v+d*y*x,b*y*v+d*_*x,d*_*v-b*y*x,d*y*v-b*_*x]}function n(){var f=this.comp.renderedFrame-this.offsetTime,u=this.keyframes[0].t-this.offsetTime,m=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(f===this._caching.lastFrame||this._caching.lastFrame!==t&&(this._caching.lastFrame>=m&&f>=m||this._caching.lastFrame<u&&f<u))){this._caching.lastFrame>=f&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var g=this.interpolateValue(f,this._caching);this.pv=g}return this._caching.lastFrame=f,this.pv}function s(f){var u;if(this.propType==="unidimensional")u=f*this.mult,e(this.v-u)>1e-5&&(this.v=u,this._mdf=!0);else for(var m=0,g=this.v.length;m<g;)u=f[m]*this.mult,e(this.v[m]-u)>1e-5&&(this.v[m]=u,this._mdf=!0),m+=1}function o(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var f;this.lock=!0,this._mdf=this._isFirstFrame;var u=this.effectsSequence.length,m=this.kf?this.pv:this.data.k;for(f=0;f<u;f+=1)m=this.effectsSequence[f](m);this.setVValue(m),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function a(f){this.effectsSequence.push(f),this.container.addDynamicProperty(this)}function l(f,u,m,g){this.propType="unidimensional",this.mult=m||1,this.data=u,this.v=m?u.k*m:u.k,this.pv=u.k,this._mdf=!1,this.elem=f,this.container=g,this.comp=f.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=o,this.setVValue=s,this.addEffect=a}function h(f,u,m,g){var d;this.propType="multidimensional",this.mult=m||1,this.data=u,this._mdf=!1,this.elem=f,this.container=g,this.comp=f.comp,this.k=!1,this.kf=!1,this.frameId=-1;var y=u.k.length;for(this.v=createTypedArray("float32",y),this.pv=createTypedArray("float32",y),this.vel=createTypedArray("float32",y),d=0;d<y;d+=1)this.v[d]=u.k[d]*this.mult,this.pv[d]=u.k[d];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=o,this.setVValue=s,this.addEffect=a}function c(f,u,m,g){this.propType="unidimensional",this.keyframes=u.k,this.keyframesMetadata=[],this.offsetTime=f.data.st,this.frameId=-1,this._caching={lastFrame:t,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=u,this.mult=m||1,this.elem=f,this.container=g,this.comp=f.comp,this.v=t,this.pv=t,this._isFirstFrame=!0,this.getValue=o,this.setVValue=s,this.interpolateValue=r,this.effectsSequence=[n.bind(this)],this.addEffect=a}function p(f,u,m,g){var d;this.propType="multidimensional";var y,v,b,_,x=u.k.length;for(d=0;d<x-1;d+=1)u.k[d].to&&u.k[d].s&&u.k[d+1]&&u.k[d+1].s&&(y=u.k[d].s,v=u.k[d+1].s,b=u.k[d].to,_=u.k[d].ti,(y.length===2&&(y[0]!==v[0]||y[1]!==v[1])&&bez.pointOnLine2D(y[0],y[1],v[0],v[1],y[0]+b[0],y[1]+b[1])&&bez.pointOnLine2D(y[0],y[1],v[0],v[1],v[0]+_[0],v[1]+_[1])||y.length===3&&(y[0]!==v[0]||y[1]!==v[1]||y[2]!==v[2])&&bez.pointOnLine3D(y[0],y[1],y[2],v[0],v[1],v[2],y[0]+b[0],y[1]+b[1],y[2]+b[2])&&bez.pointOnLine3D(y[0],y[1],y[2],v[0],v[1],v[2],v[0]+_[0],v[1]+_[1],v[2]+_[2]))&&(u.k[d].to=null,u.k[d].ti=null),y[0]===v[0]&&y[1]===v[1]&&b[0]===0&&b[1]===0&&_[0]===0&&_[1]===0&&(y.length===2||y[2]===v[2]&&b[2]===0&&_[2]===0)&&(u.k[d].to=null,u.k[d].ti=null));this.effectsSequence=[n.bind(this)],this.data=u,this.keyframes=u.k,this.keyframesMetadata=[],this.offsetTime=f.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=m||1,this.elem=f,this.container=g,this.comp=f.comp,this.getValue=o,this.setVValue=s,this.interpolateValue=r,this.frameId=-1;var M=u.k[0].s.length;for(this.v=createTypedArray("float32",M),this.pv=createTypedArray("float32",M),d=0;d<M;d+=1)this.v[d]=t,this.pv[d]=t;this._caching={lastFrame:t,lastIndex:0,value:createTypedArray("float32",M)},this.addEffect=a}return{getProp:function(f,u,m,g,d){var y;if(u.k.length)if(typeof u.k[0]=="number")y=new h(f,u,g,d);else switch(m){case 0:y=new c(f,u,g,d);break;case 1:y=new p(f,u,g,d)}else y=new l(f,u,g,d);return y.effectsSequence.length&&d.addDynamicProperty(y),y}}}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(t){this.dynamicProperties.indexOf(t)===-1&&(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 r=0;r<e;)this.v[r]=pointPool.newElement(),this.o[r]=pointPool.newElement(),this.i[r]=pointPool.newElement(),r+=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,r,i,n){var s;switch(this._length=Math.max(this._length,i+1),this._length>=this._maxLength&&this.doubleArrayLength(),r){case"v":s=this.v;break;case"i":s=this.i;break;case"o":s=this.o;break;default:s=[]}(!s[i]||s[i]&&!n)&&(s[i]=pointPool.newElement()),s[i][0]=t,s[i][1]=e},ShapePath.prototype.setTripleAt=function(t,e,r,i,n,s,o,a){this.setXYAt(t,e,"v",o,a),this.setXYAt(r,i,"o",o,a),this.setXYAt(n,s,"i",o,a)},ShapePath.prototype.reverse=function(){var t=new ShapePath;t.setPathData(this.c,this._length);var e=this.v,r=this.o,i=this.i,n=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],i[0][0],i[0][1],r[0][0],r[0][1],0,!1),n=1);var s,o=this._length-1,a=this._length;for(s=n;s<a;s+=1)t.setTripleAt(e[o][0],e[o][1],i[o][0],i[o][1],r[o][0],r[o][1],s,!1),o-=1;return t},ShapePath.prototype.length=function(){return this._length};var shapePool=(factory=poolFactory(4,function(){return new ShapePath},function(t){var e,r=t._length;for(e=0;e<r;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,r=factory.newElement(),i=t._length===void 0?t.v.length:t._length;for(r.setLength(i),r.c=t.c,e=0;e<i;e+=1)r.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 r},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,r=t._length;for(e=0;e<r;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(){function t(f,u,m){var g,d,y,v,b,_,x,M,S,w=m.lastIndex,D=this.keyframes;if(f<D[0].t-this.offsetTime)g=D[0].s[0],y=!0,w=0;else if(f>=D[D.length-1].t-this.offsetTime)g=D[D.length-1].s?D[D.length-1].s[0]:D[D.length-2].e[0],y=!0;else{for(var E,T,k,A=w,P=D.length-1,I=!0;I&&(E=D[A],!((T=D[A+1]).t-this.offsetTime>f));)A<P-1?A+=1:I=!1;if(k=this.keyframesMetadata[A]||{},w=A,!(y=E.h===1)){if(f>=T.t-this.offsetTime)M=1;else if(f<E.t-this.offsetTime)M=0;else{var L;k.__fnct?L=k.__fnct:(L=BezierFactory.getBezierEasing(E.o.x,E.o.y,E.i.x,E.i.y).get,k.__fnct=L),M=L((f-(E.t-this.offsetTime))/(T.t-this.offsetTime-(E.t-this.offsetTime)))}d=T.s?T.s[0]:E.e[0]}g=E.s[0]}for(_=u._length,x=g.i[0].length,m.lastIndex=w,v=0;v<_;v+=1)for(b=0;b<x;b+=1)S=y?g.i[v][b]:g.i[v][b]+(d.i[v][b]-g.i[v][b])*M,u.i[v][b]=S,S=y?g.o[v][b]:g.o[v][b]+(d.o[v][b]-g.o[v][b])*M,u.o[v][b]=S,S=y?g.v[v][b]:g.v[v][b]+(d.v[v][b]-g.v[v][b])*M,u.v[v][b]=S}function e(){var f=this.comp.renderedFrame-this.offsetTime,u=this.keyframes[0].t-this.offsetTime,m=this.keyframes[this.keyframes.length-1].t-this.offsetTime,g=this._caching.lastFrame;return g!==-999999&&(g<u&&f<u||g>m&&f>m)||(this._caching.lastIndex=g<f?this._caching.lastIndex:0,this.interpolateShape(f,this.pv,this._caching)),this._caching.lastFrame=f,this.pv}function r(){this.paths=this.localShapeCollection}function i(f){(function(u,m){if(u._length!==m._length||u.c!==m.c)return!1;var g,d=u._length;for(g=0;g<d;g+=1)if(u.v[g][0]!==m.v[g][0]||u.v[g][1]!==m.v[g][1]||u.o[g][0]!==m.o[g][0]||u.o[g][1]!==m.o[g][1]||u.i[g][0]!==m.i[g][0]||u.i[g][1]!==m.i[g][1])return!1;return!0})(this.v,f)||(this.v=shapePool.clone(f),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function n(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var f,u;this.lock=!0,this._mdf=!1,f=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var m=this.effectsSequence.length;for(u=0;u<m;u+=1)f=this.effectsSequence[u](f);this.setVValue(f),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function s(f,u,m){this.propType="shape",this.comp=f.comp,this.container=f,this.elem=f,this.data=u,this.k=!1,this.kf=!1,this._mdf=!1;var g=m===3?u.pt.k:u.ks.k;this.v=shapePool.clone(g),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(f){this.effectsSequence.push(f),this.container.addDynamicProperty(this)}function a(f,u,m){this.propType="shape",this.comp=f.comp,this.elem=f,this.container=f,this.offsetTime=f.data.st,this.keyframes=m===3?u.pt.k:u.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var g=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,g),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=-999999,this.reset=r,this._caching={lastFrame:-999999,lastIndex:0},this.effectsSequence=[e.bind(this)]}s.prototype.interpolateShape=t,s.prototype.getValue=n,s.prototype.setVValue=i,s.prototype.addEffect=o,a.prototype.getValue=n,a.prototype.interpolateShape=t,a.prototype.setVValue=i,a.prototype.addEffect=o;var l=function(){var f=roundCorner;function u(m,g){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=g.d,this.elem=m,this.comp=m.comp,this.frameId=-1,this.initDynamicPropertyContainer(m),this.p=PropertyFactory.getProp(m,g.p,1,0,this),this.s=PropertyFactory.getProp(m,g.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return u.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 m=this.p.v[0],g=this.p.v[1],d=this.s.v[0]/2,y=this.s.v[1]/2,v=this.d!==3,b=this.v;b.v[0][0]=m,b.v[0][1]=g-y,b.v[1][0]=v?m+d:m-d,b.v[1][1]=g,b.v[2][0]=m,b.v[2][1]=g+y,b.v[3][0]=v?m-d:m+d,b.v[3][1]=g,b.i[0][0]=v?m-d*f:m+d*f,b.i[0][1]=g-y,b.i[1][0]=v?m+d:m-d,b.i[1][1]=g-y*f,b.i[2][0]=v?m+d*f:m-d*f,b.i[2][1]=g+y,b.i[3][0]=v?m-d:m+d,b.i[3][1]=g+y*f,b.o[0][0]=v?m+d*f:m-d*f,b.o[0][1]=g-y,b.o[1][0]=v?m+d:m-d,b.o[1][1]=g+y*f,b.o[2][0]=v?m-d*f:m+d*f,b.o[2][1]=g+y,b.o[3][0]=v?m-d:m+d,b.o[3][1]=g-y*f}},extendPrototype([DynamicPropertyContainer],u),u}(),h=function(){function f(u,m){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=u,this.comp=u.comp,this.data=m,this.frameId=-1,this.d=m.d,this.initDynamicPropertyContainer(u),m.sy===1?(this.ir=PropertyFactory.getProp(u,m.ir,0,0,this),this.is=PropertyFactory.getProp(u,m.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(u,m.pt,0,0,this),this.p=PropertyFactory.getProp(u,m.p,1,0,this),this.r=PropertyFactory.getProp(u,m.r,0,degToRads,this),this.or=PropertyFactory.getProp(u,m.or,0,0,this),this.os=PropertyFactory.getProp(u,m.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 f.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 u,m,g,d,y=2*Math.floor(this.pt.v),v=2*Math.PI/y,b=!0,_=this.or.v,x=this.ir.v,M=this.os.v,S=this.is.v,w=2*Math.PI*_/(2*y),D=2*Math.PI*x/(2*y),E=-Math.PI/2;E+=this.r.v;var T=this.data.d===3?-1:1;for(this.v._length=0,u=0;u<y;u+=1){g=b?M:S,d=b?w:D;var k=(m=b?_:x)*Math.cos(E),A=m*Math.sin(E),P=k===0&&A===0?0:A/Math.sqrt(k*k+A*A),I=k===0&&A===0?0:-k/Math.sqrt(k*k+A*A);k+=+this.p.v[0],A+=+this.p.v[1],this.v.setTripleAt(k,A,k-P*d*g*T,A-I*d*g*T,k+P*d*g*T,A+I*d*g*T,u,!0),b=!b,E+=v*T}},convertPolygonToPath:function(){var u,m=Math.floor(this.pt.v),g=2*Math.PI/m,d=this.or.v,y=this.os.v,v=2*Math.PI*d/(4*m),b=.5*-Math.PI,_=this.data.d===3?-1:1;for(b+=this.r.v,this.v._length=0,u=0;u<m;u+=1){var x=d*Math.cos(b),M=d*Math.sin(b),S=x===0&&M===0?0:M/Math.sqrt(x*x+M*M),w=x===0&&M===0?0:-x/Math.sqrt(x*x+M*M);x+=+this.p.v[0],M+=+this.p.v[1],this.v.setTripleAt(x,M,x-S*v*y*_,M-w*v*y*_,x+S*v*y*_,M+w*v*y*_,u,!0),b+=g*_}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],f),f}(),c=function(){function f(u,m){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=u,this.comp=u.comp,this.frameId=-1,this.d=m.d,this.initDynamicPropertyContainer(u),this.p=PropertyFactory.getProp(u,m.p,1,0,this),this.s=PropertyFactory.getProp(u,m.s,1,0,this),this.r=PropertyFactory.getProp(u,m.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return f.prototype={convertRectToPath:function(){var u=this.p.v[0],m=this.p.v[1],g=this.s.v[0]/2,d=this.s.v[1]/2,y=bmMin(g,d,this.r.v),v=y*(1-roundCorner);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(u+g,m-d+y,u+g,m-d+y,u+g,m-d+v,0,!0),this.v.setTripleAt(u+g,m+d-y,u+g,m+d-v,u+g,m+d-y,1,!0),y!==0?(this.v.setTripleAt(u+g-y,m+d,u+g-y,m+d,u+g-v,m+d,2,!0),this.v.setTripleAt(u-g+y,m+d,u-g+v,m+d,u-g+y,m+d,3,!0),this.v.setTripleAt(u-g,m+d-y,u-g,m+d-y,u-g,m+d-v,4,!0),this.v.setTripleAt(u-g,m-d+y,u-g,m-d+v,u-g,m-d+y,5,!0),this.v.setTripleAt(u-g+y,m-d,u-g+y,m-d,u-g+v,m-d,6,!0),this.v.setTripleAt(u+g-y,m-d,u+g-v,m-d,u+g-y,m-d,7,!0)):(this.v.setTripleAt(u-g,m+d,u-g+v,m+d,u-g,m+d,2),this.v.setTripleAt(u-g,m-d,u-g,m-d+v,u-g,m-d,3))):(this.v.setTripleAt(u+g,m-d+y,u+g,m-d+v,u+g,m-d+y,0,!0),y!==0?(this.v.setTripleAt(u+g-y,m-d,u+g-y,m-d,u+g-v,m-d,1,!0),this.v.setTripleAt(u-g+y,m-d,u-g+v,m-d,u-g+y,m-d,2,!0),this.v.setTripleAt(u-g,m-d+y,u-g,m-d+y,u-g,m-d+v,3,!0),this.v.setTripleAt(u-g,m+d-y,u-g,m+d-v,u-g,m+d-y,4,!0),this.v.setTripleAt(u-g+y,m+d,u-g+y,m+d,u-g+v,m+d,5,!0),this.v.setTripleAt(u+g-y,m+d,u+g-v,m+d,u+g-y,m+d,6,!0),this.v.setTripleAt(u+g,m+d-y,u+g,m+d-y,u+g,m+d-v,7,!0)):(this.v.setTripleAt(u-g,m-d,u-g+v,m-d,u-g,m-d,1,!0),this.v.setTripleAt(u-g,m+d,u-g,m+d-v,u-g,m+d,2,!0),this.v.setTripleAt(u+g,m+d,u+g-v,m+d,u+g,m+d,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],f),f}(),p={getShapeProp:function(f,u,m){var g;return m===3||m===4?g=(m===3?u.pt:u.ks).k.length?new a(f,u,m):new s(f,u,m):m===5?g=new c(f,u):m===6?g=new l(f,u):m===7&&(g=new h(f,u)),g.k&&f.addDynamicProperty(g),g},getConstructorFunction:function(){return s},getKeyframedConstructorFunction:function(){return a}};return p}(),Matrix=function(){var t=Math.cos,e=Math.sin,r=Math.tan,i=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(F){if(F===0)return this;var C=t(F),O=e(F);return this._t(C,-O,0,0,O,C,0,0,0,0,1,0,0,0,0,1)}function o(F){if(F===0)return this;var C=t(F),O=e(F);return this._t(1,0,0,0,0,C,-O,0,0,O,C,0,0,0,0,1)}function a(F){if(F===0)return this;var C=t(F),O=e(F);return this._t(C,0,O,0,0,1,0,0,-O,0,C,0,0,0,0,1)}function l(F){if(F===0)return this;var C=t(F),O=e(F);return this._t(C,-O,0,0,O,C,0,0,0,0,1,0,0,0,0,1)}function h(F,C){return this._t(1,C,F,1,0,0)}function c(F,C){return this.shear(r(F),r(C))}function p(F,C){var O=t(C),V=e(C);return this._t(O,V,0,0,-V,O,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,r(F),1,0,0,0,0,1,0,0,0,0,1)._t(O,-V,0,0,V,O,0,0,0,0,1,0,0,0,0,1)}function f(F,C,O){return O||O===0||(O=1),F===1&&C===1&&O===1?this:this._t(F,0,0,0,0,C,0,0,0,0,O,0,0,0,0,1)}function u(F,C,O,V,z,N,G,H,Y,Q,K,Z,pt,et,vt,ut){return this.props[0]=F,this.props[1]=C,this.props[2]=O,this.props[3]=V,this.props[4]=z,this.props[5]=N,this.props[6]=G,this.props[7]=H,this.props[8]=Y,this.props[9]=Q,this.props[10]=K,this.props[11]=Z,this.props[12]=pt,this.props[13]=et,this.props[14]=vt,this.props[15]=ut,this}function m(F,C,O){return O=O||0,F!==0||C!==0||O!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,F,C,O,1):this}function g(F,C,O,V,z,N,G,H,Y,Q,K,Z,pt,et,vt,ut){var j=this.props;if(F===1&&C===0&&O===0&&V===0&&z===0&&N===1&&G===0&&H===0&&Y===0&&Q===0&&K===1&&Z===0)return j[12]=j[12]*F+j[15]*pt,j[13]=j[13]*N+j[15]*et,j[14]=j[14]*K+j[15]*vt,j[15]*=ut,this._identityCalculated=!1,this;var Ft=j[0],he=j[1],ce=j[2],Ut=j[3],Jt=j[4],Wt=j[5],St=j[6],Qt=j[7],te=j[8],ve=j[9],Xe=j[10],be=j[11],pr=j[12],gn=j[13],yn=j[14],vn=j[15];return j[0]=Ft*F+he*z+ce*Y+Ut*pt,j[1]=Ft*C+he*N+ce*Q+Ut*et,j[2]=Ft*O+he*G+ce*K+Ut*vt,j[3]=Ft*V+he*H+ce*Z+Ut*ut,j[4]=Jt*F+Wt*z+St*Y+Qt*pt,j[5]=Jt*C+Wt*N+St*Q+Qt*et,j[6]=Jt*O+Wt*G+St*K+Qt*vt,j[7]=Jt*V+Wt*H+St*Z+Qt*ut,j[8]=te*F+ve*z+Xe*Y+be*pt,j[9]=te*C+ve*N+Xe*Q+be*et,j[10]=te*O+ve*G+Xe*K+be*vt,j[11]=te*V+ve*H+Xe*Z+be*ut,j[12]=pr*F+gn*z+yn*Y+vn*pt,j[13]=pr*C+gn*N+yn*Q+vn*et,j[14]=pr*O+gn*G+yn*K+vn*vt,j[15]=pr*V+gn*H+yn*Z+vn*ut,this._identityCalculated=!1,this}function d(){return this._identityCalculated||(this._identity=!(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._identityCalculated=!0),this._identity}function y(F){for(var C=0;C<16;){if(F.props[C]!==this.props[C])return!1;C+=1}return!0}function v(F){var C;for(C=0;C<16;C+=1)F.props[C]=this.props[C];return F}function b(F){var C;for(C=0;C<16;C+=1)this.props[C]=F[C]}function _(F,C,O){return{x:F*this.props[0]+C*this.props[4]+O*this.props[8]+this.props[12],y:F*this.props[1]+C*this.props[5]+O*this.props[9]+this.props[13],z:F*this.props[2]+C*this.props[6]+O*this.props[10]+this.props[14]}}function x(F,C,O){return F*this.props[0]+C*this.props[4]+O*this.props[8]+this.props[12]}function M(F,C,O){return F*this.props[1]+C*this.props[5]+O*this.props[9]+this.props[13]}function S(F,C,O){return F*this.props[2]+C*this.props[6]+O*this.props[10]+this.props[14]}function w(){var F=this.props[0]*this.props[5]-this.props[1]*this.props[4],C=this.props[5]/F,O=-this.props[1]/F,V=-this.props[4]/F,z=this.props[0]/F,N=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/F,G=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/F,H=new Matrix;return H.props[0]=C,H.props[1]=O,H.props[4]=V,H.props[5]=z,H.props[12]=N,H.props[13]=G,H}function D(F){return this.getInverseMatrix().applyToPointArray(F[0],F[1],F[2]||0)}function E(F){var C,O=F.length,V=[];for(C=0;C<O;C+=1)V[C]=D(F[C]);return V}function T(F,C,O){var V=createTypedArray("float32",6);if(this.isIdentity())V[0]=F[0],V[1]=F[1],V[2]=C[0],V[3]=C[1],V[4]=O[0],V[5]=O[1];else{var z=this.props[0],N=this.props[1],G=this.props[4],H=this.props[5],Y=this.props[12],Q=this.props[13];V[0]=F[0]*z+F[1]*G+Y,V[1]=F[0]*N+F[1]*H+Q,V[2]=C[0]*z+C[1]*G+Y,V[3]=C[0]*N+C[1]*H+Q,V[4]=O[0]*z+O[1]*G+Y,V[5]=O[0]*N+O[1]*H+Q}return V}function k(F,C,O){return this.isIdentity()?[F,C,O]:[F*this.props[0]+C*this.props[4]+O*this.props[8]+this.props[12],F*this.props[1]+C*this.props[5]+O*this.props[9]+this.props[13],F*this.props[2]+C*this.props[6]+O*this.props[10]+this.props[14]]}function A(F,C){if(this.isIdentity())return F+","+C;var O=this.props;return Math.round(100*(F*O[0]+C*O[4]+O[12]))/100+","+Math.round(100*(F*O[1]+C*O[5]+O[13]))/100}function P(){for(var F=0,C=this.props,O="matrix3d(";F<16;)O+=i(1e4*C[F])/1e4,O+=F===15?")":",",F+=1;return O}function I(F){return F<1e-6&&F>0||F>-1e-6&&F<0?i(1e4*F)/1e4:F}function L(){var F=this.props;return"matrix("+I(F[0])+","+I(F[1])+","+I(F[4])+","+I(F[5])+","+I(F[12])+","+I(F[13])+")"}return function(){this.reset=n,this.rotate=s,this.rotateX=o,this.rotateY=a,this.rotateZ=l,this.skew=c,this.skewFromAxis=p,this.shear=h,this.scale=f,this.setTransform=u,this.translate=m,this.transform=g,this.applyToPoint=_,this.applyToX=x,this.applyToY=M,this.applyToZ=S,this.applyToPointArray=k,this.applyToTriplePoints=T,this.applyToPointStringified=A,this.toCSS=P,this.to2dCSS=L,this.clone=v,this.cloneFromProps=b,this.equals=y,this.inversePoints=E,this.inversePoint=D,this.getInverseMatrix=w,this._t=this.transform,this.isIdentity=d,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(t){return(_typeof$3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}var lottie={},standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="";function setLocation(t){setLocationHref(t)}function searchAnimations(){standalone===!0?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function setSubframeRendering(t){setSubframeEnabled(t)}function setPrefix(t){setIdPrefix(t)}function loadAnimation(t){return standalone===!0&&(t.animationData=JSON.parse(animationData)),animationManager.loadAnimation(t)}function setQuality(t){if(typeof t=="string")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 typeof navigator<"u"}function installPlugin(t,e){t==="expressions"&&setExpressionsPlugin(e)}function getFactory(t){switch(t){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){document.readyState==="complete"&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(t){for(var e=queryString.split("&"),r=0;r<e.length;r+=1){var i=e[r].split("=");if(decodeURIComponent(i[0])==t)return decodeURIComponent(i[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.10.0";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{_typeof$3(exports)!=="object"&&(window.bodymovin=lottie)}catch(t){}var ShapeModifiers=function(){var t={},e={};return t.registerModifier=function(r,i){e[r]||(e[r]=i)},t.getModifier=function(r,i,n){return new e[r](i,n)},t}();function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(t){if(!this.closed){t.sh.container.addDynamicProperty(t.sh);var e={shape:t.sh,data:t,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(e),this.addShapeToModifier(e),this._isAnimated&&t.setAsAnimated()}},ShapeModifier.prototype.init=function(t,e){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e),this.frameId=initialDefaultFrame,this.closed=!1,this.k=!1,this.dynamicProperties.length?this.k=!0:this.getValue(!0)},ShapeModifier.prototype.processKeys=function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties())},extendPrototype([DynamicPropertyContainer],ShapeModifier),extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(t,e){this.s=PropertyFactory.getProp(t,e.s,0,.01,this),this.e=PropertyFactory.getProp(t,e.e,0,.01,this),this.o=PropertyFactory.getProp(t,e.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=e.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(t){t.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(t,e,r,i,n){var s=[];e<=1?s.push({s:t,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 o,a,l=[],h=s.length;for(o=0;o<h;o+=1){var c,p;(a=s[o]).e*n<i||a.s*n>i+r||(c=a.s*n<=i?0:(a.s*n-i)/r,p=a.e*n>=i+r?1:(a.e*n-i)/r,l.push([c,p]))}return l.length||l.push([0,0]),l},TrimModifier.prototype.releasePathsData=function(t){var e,r=t.length;for(e=0;e<r;e+=1)segmentsLengthPool.release(t[e]);return t.length=0,t},TrimModifier.prototype.processShapes=function(t){var e,r,i,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)>(r=this.e.v>1?1+s:this.e.v<0?0+s:this.e.v+s)){var o=e;e=r,r=o}e=1e-4*Math.round(1e4*e),r=1e-4*Math.round(1e4*r),this.sValue=e,this.eValue=r}else e=this.sValue,r=this.eValue;var a,l,h,c,p,f=this.shapes.length,u=0;if(r===e)for(n=0;n<f;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(r===1&&e===0||r===0&&e===1){if(this._mdf)for(n=0;n<f;n+=1)this.shapes[n].pathsData.length=0,this.shapes[n].shape._mdf=!0}else{var m,g,d=[];for(n=0;n<f;n+=1)if((m=this.shapes[n]).shape._mdf||this._mdf||t||this.m===2){if(l=(i=m.shape.paths)._length,p=0,!m.shape._mdf&&m.pathsData.length)p=m.totalShapeLength;else{for(h=this.releasePathsData(m.pathsData),a=0;a<l;a+=1)c=bez.getSegmentsLength(i.shapes[a]),h.push(c),p+=c.totalLength;m.totalShapeLength=p,m.pathsData=h}u+=p,m.shape._mdf=!0}else m.shape.paths=m.localShapeCollection;var y,v=e,b=r,_=0;for(n=f-1;n>=0;n-=1)if((m=this.shapes[n]).shape._mdf){for((g=m.localShapeCollection).releaseShapes(),this.m===2&&f>1?(y=this.calculateShapeEdges(e,r,m.totalShapeLength,_,u),_+=m.totalShapeLength):y=[[v,b]],l=y.length,a=0;a<l;a+=1){v=y[a][0],b=y[a][1],d.length=0,b<=1?d.push({s:m.totalShapeLength*v,e:m.totalShapeLength*b}):v>=1?d.push({s:m.totalShapeLength*(v-1),e:m.totalShapeLength*(b-1)}):(d.push({s:m.totalShapeLength*v,e:m.totalShapeLength}),d.push({s:0,e:m.totalShapeLength*(b-1)}));var x=this.addShapes(m,d[0]);if(d[0].s!==d[0].e){if(d.length>1)if(m.shape.paths.shapes[m.shape.paths._length-1].c){var M=x.pop();this.addPaths(x,g),x=this.addShapes(m,d[1],M)}else this.addPaths(x,g),x=this.addShapes(m,d[1]);this.addPaths(x,g)}}m.shape.paths=g}}},TrimModifier.prototype.addPaths=function(t,e){var r,i=t.length;for(r=0;r<i;r+=1)e.addShape(t[r])},TrimModifier.prototype.addSegment=function(t,e,r,i,n,s,o){n.setXYAt(e[0],e[1],"o",s),n.setXYAt(r[0],r[1],"i",s+1),o&&n.setXYAt(t[0],t[1],"v",s),n.setXYAt(i[0],i[1],"v",s+1)},TrimModifier.prototype.addSegmentFromArray=function(t,e,r,i){e.setXYAt(t[1],t[5],"o",r),e.setXYAt(t[2],t[6],"i",r+1),i&&e.setXYAt(t[0],t[4],"v",r),e.setXYAt(t[3],t[7],"v",r+1)},TrimModifier.prototype.addShapes=function(t,e,r){var i,n,s,o,a,l,h,c,p=t.pathsData,f=t.shape.paths.shapes,u=t.shape.paths._length,m=0,g=[],d=!0;for(r?(a=r._length,c=r._length):(r=shapePool.newElement(),a=0,c=0),g.push(r),i=0;i<u;i+=1){for(l=p[i].lengths,r.c=f[i].c,s=f[i].c?l.length:l.length+1,n=1;n<s;n+=1)if(m+(o=l[n-1]).addedLength<e.s)m+=o.addedLength,r.c=!1;else{if(m>e.e){r.c=!1;break}e.s<=m&&e.e>=m+o.addedLength?(this.addSegment(f[i].v[n-1],f[i].o[n-1],f[i].i[n],f[i].v[n],r,a,d),d=!1):(h=bez.getNewSegment(f[i].v[n-1],f[i].v[n],f[i].o[n-1],f[i].i[n],(e.s-m)/o.addedLength,(e.e-m)/o.addedLength,l[n-1]),this.addSegmentFromArray(h,r,a,d),d=!1,r.c=!1),m+=o.addedLength,a+=1}if(f[i].c&&l.length){if(o=l[n-1],m<=e.e){var y=l[n-1].addedLength;e.s<=m&&e.e>=m+y?(this.addSegment(f[i].v[n-1],f[i].o[n-1],f[i].i[0],f[i].v[0],r,a,d),d=!1):(h=bez.getNewSegment(f[i].v[n-1],f[i].v[0],f[i].o[n-1],f[i].i[0],(e.s-m)/y,(e.e-m)/y,l[n-1]),this.addSegmentFromArray(h,r,a,d),d=!1,r.c=!1)}else r.c=!1;m+=o.addedLength,a+=1}if(r._length&&(r.setXYAt(r.v[c][0],r.v[c][1],"i",c),r.setXYAt(r.v[r._length-1][0],r.v[r._length-1][1],"o",r._length-1)),m>e.e)break;i<u-1&&(r=shapePool.newElement(),d=!0,g.push(r),a=0)}return g},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 r=e/100,i=[0,0],n=t._length,s=0;for(s=0;s<n;s+=1)i[0]+=t.v[s][0],i[1]+=t.v[s][1];i[0]/=n,i[1]/=n;var o,a,l,h,c,p,f=shapePool.newElement();for(f.c=t.c,s=0;s<n;s+=1)o=t.v[s][0]+(i[0]-t.v[s][0])*r,a=t.v[s][1]+(i[1]-t.v[s][1])*r,l=t.o[s][0]+(i[0]-t.o[s][0])*-r,h=t.o[s][1]+(i[1]-t.o[s][1])*-r,c=t.i[s][0]+(i[0]-t.i[s][0])*-r,p=t.i[s][1]+(i[1]-t.i[s][1])*-r,f.setTripleAt(o,a,l,h,c,p,s);return f},PuckerAndBloatModifier.prototype.processShapes=function(t){var e,r,i,n,s,o,a=this.shapes.length,l=this.amount.v;if(l!==0)for(r=0;r<a;r+=1){if(o=(s=this.shapes[r]).localShapeCollection,s.shape._mdf||this._mdf||t)for(o.releaseShapes(),s.shape._mdf=!0,e=s.shape.paths.shapes,n=s.shape.paths._length,i=0;i<n;i+=1)o.addShape(this.processPath(e[i],l));s.shape.paths=s.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var t=[0,0];function e(r,i,n){if(this.elem=r,this.frameId=-1,this.propType="transform",this.data=i,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(n||r),i.p&&i.p.s?(this.px=PropertyFactory.getProp(r,i.p.x,0,0,this),this.py=PropertyFactory.getProp(r,i.p.y,0,0,this),i.p.z&&(this.pz=PropertyFactory.getProp(r,i.p.z,0,0,this))):this.p=PropertyFactory.getProp(r,i.p||{k:[0,0,0]},1,0,this),i.rx){if(this.rx=PropertyFactory.getProp(r,i.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(r,i.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(r,i.rz,0,degToRads,this),i.or.k[0].ti){var s,o=i.or.k.length;for(s=0;s<o;s+=1)i.or.k[s].to=null,i.or.k[s].ti=null}this.or=PropertyFactory.getProp(r,i.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(r,i.r||{k:0},0,degToRads,this);i.sk&&(this.sk=PropertyFactory.getProp(r,i.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(r,i.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(r,i.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(r,i.s||{k:[100,100,100]},1,.01,this),i.o?this.o=PropertyFactory.getProp(r,i.o,0,.01,r):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return e.prototype={applyToMatrix:function(r){var i=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||i,this.a&&r.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&r.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&r.skewFromAxis(-this.sk.v,this.sa.v),this.r?r.rotate(-this.r.v):r.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?r.translate(this.px.v,this.py.v,-this.pz.v):r.translate(this.px.v,this.py.v,0):r.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(r){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||r){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 n,s;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?(n=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/i,0),s=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?(n=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/i,0),s=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/i,0)):(n=this.p.pv,s=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){n=[],s=[];var o=this.px,a=this.py;o._caching.lastFrame+o.offsetTime<=o.keyframes[0].t?(n[0]=o.getValueAtTime((o.keyframes[0].t+.01)/i,0),n[1]=a.getValueAtTime((a.keyframes[0].t+.01)/i,0),s[0]=o.getValueAtTime(o.keyframes[0].t/i,0),s[1]=a.getValueAtTime(a.keyframes[0].t/i,0)):o._caching.lastFrame+o.offsetTime>=o.keyframes[o.keyframes.length-1].t?(n[0]=o.getValueAtTime(o.keyframes[o.keyframes.length-1].t/i,0),n[1]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/i,0),s[0]=o.getValueAtTime((o.keyframes[o.keyframes.length-1].t-.01)/i,0),s[1]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/i,0)):(n=[o.pv,a.pv],s[0]=o.getValueAtTime((o._caching.lastFrame+o.offsetTime-.01)/i,o.offsetTime),s[1]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/i,a.offsetTime))}else n=s=t;this.v.rotate(-Math.atan2(n[1]-s[1],n[0]-s[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.a.k&&(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(r){this._addDynamicProperty(r),this.elem.addDynamicProperty(r),this._isDirty=!0},e.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(r,i,n){return new e(r,i,n)}}}();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,r){return t*(1-r)+e*r}function lerpPoint(t,e,r){return[lerp(t[0],e[0],r),lerp(t[1],e[1],r)]}function quadRoots(t,e,r){if(t===0)return[];var i=e*e-4*t*r;if(i<0)return[];var n=-e/(2*t);if(i===0)return[n];var s=Math.sqrt(i)/(2*t);return[n-s,n+s]}function polynomialCoefficients(t,e,r,i){return[3*e-t-3*r+i,3*t-6*e+3*r,-3*t+3*e,t]}function singlePoint(t){return new PolynomialBezier(t,t,t,t,!1)}function PolynomialBezier(t,e,r,i,n){n&&pointEqual(t,e)&&(e=lerpPoint(t,i,1/3)),n&&pointEqual(r,i)&&(r=lerpPoint(t,i,2/3));var s=polynomialCoefficients(t[0],e[0],r[0],i[0]),o=polynomialCoefficients(t[1],e[1],r[1],i[1]);this.a=[s[0],o[0]],this.b=[s[1],o[1]],this.c=[s[2],o[2]],this.d=[s[3],o[3]],this.points=[t,e,r,i]}function extrema(t,e){var r=t.points[0][e],i=t.points[t.points.length-1][e];if(r>i){var n=i;i=r,r=n}for(var s=quadRoots(3*t.a[e],2*t.b[e],t.c[e]),o=0;o<s.length;o+=1)if(s[o]>0&&s[o]<1){var a=t.point(s[o])[e];a<r?r=a:a>i&&(i=a)}return{min:r,max:i}}function intersectData(t,e,r){var i=t.boundingBox();return{cx:i.cx,cy:i.cy,width:i.width,height:i.height,bez:t,t:(e+r)/2,t1:e,t2:r}}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,r,i,n,s){if(boxIntersect(t,e))if(r>=s||t.width<=i&&t.height<=i&&e.width<=i&&e.height<=i)n.push([t.t,e.t]);else{var o=splitData(t),a=splitData(e);intersectsImpl(o[0],a[0],r+1,i,n,s),intersectsImpl(o[0],a[1],r+1,i,n,s),intersectsImpl(o[1],a[0],r+1,i,n,s),intersectsImpl(o[1],a[1],r+1,i,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,r,i){var n=[t[0],t[1],1],s=[e[0],e[1],1],o=[r[0],r[1],1],a=[i[0],i[1],1],l=crossProduct(crossProduct(n,s),crossProduct(o,a));return floatZero(l[2])?null:[l[0]/l[2],l[1]/l[2]]}function polarOffset(t,e,r){return[t[0]+Math.cos(e)*r,t[1]-Math.sin(e)*r]}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,r,i,n,s,o){var a=r-Math.PI/2,l=r+Math.PI/2,h=e[0]+Math.cos(r)*i*n,c=e[1]-Math.sin(r)*i*n;t.setTripleAt(h,c,h+Math.cos(a)*s,c-Math.sin(a)*s,h+Math.cos(l)*o,c-Math.sin(l)*o,t.length())}function getPerpendicularVector(t,e){var r=[e[0]-t[0],e[1]-t[1]],i=.5*-Math.PI;return[Math.cos(i)*r[0]-Math.sin(i)*r[1],Math.sin(i)*r[0]+Math.cos(i)*r[1]]}function getProjectingAngle(t,e){var r=e===0?t.length()-1:e-1,i=(e+1)%t.length(),n=getPerpendicularVector(t.v[r],t.v[i]);return Math.atan2(0,1)-Math.atan2(n[1],n[0])}function zigZagCorner(t,e,r,i,n,s,o){var a=getProjectingAngle(e,r),l=e.v[r%e._length],h=e.v[r===0?e._length-1:r-1],c=e.v[(r+1)%e._length],p=s===2?Math.sqrt(Math.pow(l[0]-h[0],2)+Math.pow(l[1]-h[1],2)):0,f=s===2?Math.sqrt(Math.pow(l[0]-c[0],2)+Math.pow(l[1]-c[1],2)):0;setPoint(t,e.v[r%e._length],a,o,i,f/(2*(n+1)),p/(2*(n+1)),s)}function zigZagSegment(t,e,r,i,n,s){for(var o=0;o<i;o+=1){var a=(o+1)/(i+1),l=n===2?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(a);setPoint(t,e.point(a),h,s,r,l/(2*(i+1)),l/(2*(i+1)),n),s=-s}return s}function linearOffset(t,e,r){var i=Math.atan2(e[0]-t[0],e[1]-t[1]);return[polarOffset(t,i,r),polarOffset(e,i,r)]}function offsetSegment(t,e){var r,i,n,s,o,a,l;r=(l=linearOffset(t.points[0],t.points[1],e))[0],i=l[1],n=(l=linearOffset(t.points[1],t.points[2],e))[0],s=l[1],o=(l=linearOffset(t.points[2],t.points[3],e))[0],a=l[1];var h=lineIntersection(r,i,n,s);h===null&&(h=i);var c=lineIntersection(o,a,n,s);return c===null&&(c=o),new PolynomialBezier(r,h,c,a)}function joinLines(t,e,r,i,n){var s=e.points[3],o=r.points[0];if(i===3||pointEqual(s,o))return s;if(i===2){var a=-e.tangentAngle(1),l=-r.tangentAngle(0)+Math.PI,h=lineIntersection(s,polarOffset(s,a+Math.PI/2,100),o,polarOffset(o,a+Math.PI/2,100)),c=h?pointDistance(h,s):pointDistance(s,o)/2,p=polarOffset(s,a,2*c*roundCorner);return t.setXYAt(p[0],p[1],"o",t.length()-1),p=polarOffset(o,l,2*c*roundCorner),t.setTripleAt(o[0],o[1],o[0],o[1],p[0],p[1],t.length()),o}var f=lineIntersection(pointEqual(s,e.points[2])?e.points[0]:e.points[2],s,o,pointEqual(o,r.points[1])?r.points[3]:r.points[1]);return f&&pointDistance(f,s)<n?(t.setTripleAt(f[0],f[1],f[0],f[1],f[0],f[1],t.length()),f):s}function getIntersection(t,e){var r=t.intersections(e);return r.length&&floatEqual(r[0][0],1)&&r.shift(),r.length?r[0]:null}function pruneSegmentIntersection(t,e){var r=t.slice(),i=e.slice(),n=getIntersection(t[t.length-1],e[0]);return n&&(r[t.length-1]=t[t.length-1].split(n[0])[0],i[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]]]:[r,i]}function pruneIntersections(t){for(var e,r=1;r<t.length;r+=1)e=pruneSegmentIntersection(t[r-1],t[r]),t[r-1]=e[0],t[r]=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 r,i,n,s,o=t.inflectionPoints();if(o.length===0)return[offsetSegment(t,e)];if(o.length===1||floatEqual(o[1],1))return r=(n=t.split(o[0]))[0],i=n[1],[offsetSegment(r,e),offsetSegment(i,e)];r=(n=t.split(o[0]))[0];var a=(o[1]-o[0])/(1-o[0]);return s=(n=n[1].split(a))[0],i=n[1],[offsetSegment(r,e),offsetSegment(s,e),offsetSegment(i,e)]}function OffsetPathModifier(){}function getFontProperties(t){for(var e=t.fStyle?t.fStyle.split(" "):[],r="normal",i="normal",n=e.length,s=0;s<n;s+=1)switch(e[s].toLowerCase()){case"italic":i="italic";break;case"bold":r="700";break;case"black":r="900";break;case"medium":r="500";break;case"regular":case"normal":r="400";break;case"light":case"thin":r="200"}return{style:i,weight:t.fWeight||r}}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,r,i,n,s){var o=s?-1:1,a=i.s.v[0]+(1-i.s.v[0])*(1-n),l=i.s.v[1]+(1-i.s.v[1])*(1-n);t.translate(i.p.v[0]*o*n,i.p.v[1]*o*n,i.p.v[2]),e.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),e.rotate(-i.r.v*o*n),e.translate(i.a.v[0],i.a.v[1],i.a.v[2]),r.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),r.scale(s?1/a:a,s?1/l:l),r.translate(i.a.v[0],i.a.v[1],i.a.v[2])},RepeaterModifier.prototype.init=function(t,e,r,i){for(this.elem=t,this.arr=e,this.pos=r,this.elemsData=i,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e[r]);r>0;)r-=1,this._elements.unshift(e[r]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(t){var e,r=t.length;for(e=0;e<r;e+=1)t[e]._processed=!1,t[e].ty==="gr"&&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 r,i=t.length;for(r=0;r<i;r+=1)t[r]._render=e,t[r].ty==="gr"&&this.changeGroupRender(t[r].it,e)},RepeaterModifier.prototype.processShapes=function(t){var e,r,i,n,s,o=!1;if(this._mdf||t){var a,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(),o=!0}for(s=0,i=0;i<=this._groups.length-1;i+=1){if(a=s<l,this._groups[i]._render=a,this.changeGroupRender(this._groups[i].it,a),!a){var c=this.elemsData[i].it,p=c[c.length-1];p.transform.op.v!==0?(p.transform.op._mdf=!0,p.transform.op.v=0):p.transform.op._mdf=!1}s+=1}this._currentCopies=l;var f=this.o.v,u=f%1,m=f>0?Math.floor(f):Math.ceil(f),g=this.pMatrix.props,d=this.rMatrix.props,y=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var v,b,_=0;if(f>0){for(;_<m;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),_+=1;u&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,u,!1),_+=u)}else if(f<0){for(;_>m;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),_-=1;u&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-u,!0),_-=u)}for(i=this.data.m===1?0:this._currentCopies-1,n=this.data.m===1?1:-1,s=this._currentCopies;s;){if(b=(r=(e=this.elemsData[i].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=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(i/(this._currentCopies-1)),_!==0){for((i!==0&&n===1||i!==this._currentCopies-1&&n===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(d[0],d[1],d[2],d[3],d[4],d[5],d[6],d[7],d[8],d[9],d[10],d[11],d[12],d[13],d[14],d[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(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]),v=0;v<b;v+=1)r[v]=this.matrix.props[v];this.matrix.reset()}else for(this.matrix.reset(),v=0;v<b;v+=1)r[v]=this.matrix.props[v];_+=1,s-=1,i+=n}}else for(s=this._currentCopies,i=0,n=1;s;)r=(e=this.elemsData[i].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,i+=n;return o},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 r,i=shapePool.newElement();i.c=t.c;var n,s,o,a,l,h,c,p,f,u,m,g,d=t._length,y=0;for(r=0;r<d;r+=1)n=t.v[r],o=t.o[r],s=t.i[r],n[0]===o[0]&&n[1]===o[1]&&n[0]===s[0]&&n[1]===s[1]?r!==0&&r!==d-1||t.c?(a=r===0?t.v[d-1]:t.v[r-1],h=(l=Math.sqrt(Math.pow(n[0]-a[0],2)+Math.pow(n[1]-a[1],2)))?Math.min(l/2,e)/l:0,c=m=n[0]+(a[0]-n[0])*h,p=g=n[1]-(n[1]-a[1])*h,f=c-(c-n[0])*roundCorner,u=p-(p-n[1])*roundCorner,i.setTripleAt(c,p,f,u,m,g,y),y+=1,a=r===d-1?t.v[0]:t.v[r+1],h=(l=Math.sqrt(Math.pow(n[0]-a[0],2)+Math.pow(n[1]-a[1],2)))?Math.min(l/2,e)/l:0,c=f=n[0]+(a[0]-n[0])*h,p=u=n[1]+(a[1]-n[1])*h,m=c-(c-n[0])*roundCorner,g=p-(p-n[1])*roundCorner,i.setTripleAt(c,p,f,u,m,g,y),y+=1):(i.setTripleAt(n[0],n[1],o[0],o[1],s[0],s[1],y),y+=1):(i.setTripleAt(t.v[r][0],t.v[r][1],t.o[r][0],t.o[r][1],t.i[r][0],t.i[r][1],y),y+=1);return i},RoundCornersModifier.prototype.processShapes=function(t){var e,r,i,n,s,o,a=this.shapes.length,l=this.rd.v;if(l!==0)for(r=0;r<a;r+=1){if(o=(s=this.shapes[r]).localShapeCollection,s.shape._mdf||this._mdf||t)for(o.releaseShapes(),s.shape._mdf=!0,e=s.shape.paths.shapes,n=s.shape.paths._length,i=0;i<n;i+=1)o.addShape(this.processPath(e[i],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,r=e*e-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/t;if(r<0)return[];var i=Math.sqrt(r);return floatZero(i)?i>0&&i<1?[e]:[]:[e-i,e+i].filter(function(n){return n>0&&n<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),r=lerpPoint(this.points[1],this.points[2],t),i=lerpPoint(this.points[2],this.points[3],t),n=lerpPoint(e,r,t),s=lerpPoint(r,i,t),o=lerpPoint(n,s,t);return[new PolynomialBezier(this.points[0],e,n,o,!0),new PolynomialBezier(o,s,i,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,r){e===void 0&&(e=2),r===void 0&&(r=7);var i=[];return intersectsImpl(intersectData(this,0,1),intersectData(t,0,1),0,e,i,r),i},PolynomialBezier.shapeSegment=function(t,e){var r=(e+1)%t.length();return new PolynomialBezier(t.v[e],t.o[e],t.i[r],t.v[r],!0)},PolynomialBezier.shapeSegmentInverted=function(t,e){var r=(e+1)%t.length();return new PolynomialBezier(t.v[r],t.i[r],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=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0},ZigZagModifier.prototype.processPath=function(t,e,r,i){var n=t._length,s=shapePool.newElement();if(s.c=t.c,t.c||(n-=1),n===0)return s;var o=-1,a=PolynomialBezier.shapeSegment(t,0);zigZagCorner(s,t,0,e,r,i,o);for(var l=0;l<n;l+=1)o=zigZagSegment(s,a,e,r,i,-o),a=l!==n-1||t.c?PolynomialBezier.shapeSegment(t,(l+1)%n):null,zigZagCorner(s,t,l+1,e,r,i,o);return s},ZigZagModifier.prototype.processShapes=function(t){var e,r,i,n,s,o,a=this.shapes.length,l=this.amplitude.v,h=Math.max(0,Math.round(this.frequency.v)),c=this.pointsType.v;if(l!==0)for(r=0;r<a;r+=1){if(o=(s=this.shapes[r]).localShapeCollection,s.shape._mdf||this._mdf||t)for(o.releaseShapes(),s.shape._mdf=!0,e=s.shape.paths.shapes,n=s.shape.paths._length,i=0;i<n;i+=1)o.addShape(this.processPath(e[i],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=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(t,e,r,i){var n=shapePool.newElement();n.c=t.c;var s,o,a,l=t.length();t.c||(l-=1);var h=[];for(s=0;s<l;s+=1)a=PolynomialBezier.shapeSegment(t,s),h.push(offsetSegmentSplit(a,e));if(!t.c)for(s=l-1;s>=0;s-=1)a=PolynomialBezier.shapeSegmentInverted(t,s),h.push(offsetSegmentSplit(a,e));h=pruneIntersections(h);var c=null,p=null;for(s=0;s<h.length;s+=1){var f=h[s];for(p&&(c=joinLines(n,p,f[0],r,i)),p=f[f.length-1],o=0;o<f.length;o+=1)a=f[o],c&&pointEqual(a.points[0],c)?n.setXYAt(a.points[1][0],a.points[1][1],"o",n.length()-1):n.setTripleAt(a.points[0][0],a.points[0][1],a.points[1][0],a.points[1][1],a.points[0][0],a.points[0][1],n.length()),n.setTripleAt(a.points[3][0],a.points[3][1],a.points[3][0],a.points[3][1],a.points[2][0],a.points[2][1],n.length()),c=a.points[3]}return h.length&&joinLines(n,p,h[0][0],r,i),n},OffsetPathModifier.prototype.processShapes=function(t){var e,r,i,n,s,o,a=this.shapes.length,l=this.amount.v,h=this.miterLimit.v,c=this.lineJoin;if(l!==0)for(r=0;r<a;r+=1){if(o=(s=this.shapes[r]).localShapeCollection,s.shape._mdf||this._mdf||t)for(o.releaseShapes(),s.shape._mdf=!0,e=s.shape.paths.shapes,n=s.shape.paths._length,i=0;i<n;i+=1)o.addShape(this.processPath(e[i],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 r=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"],i=[65039,8205];function n(a,l){var h=createTag("span");h.setAttribute("aria-hidden",!0),h.style.fontFamily=l;var c=createTag("span");c.innerText="giItT1WQy@!-/#",h.style.position="absolute",h.style.left="-10000px",h.style.top="-10000px",h.style.fontSize="300px",h.style.fontVariant="normal",h.style.fontStyle="normal",h.style.fontWeight="normal",h.style.letterSpacing="0",h.appendChild(c),document.body.appendChild(h);var p=c.offsetWidth;return c.style.fontFamily=function(f){var u,m=f.split(","),g=m.length,d=[];for(u=0;u<g;u+=1)m[u]!=="sans-serif"&&m[u]!=="monospace"&&d.push(m[u]);return d.join(",")}(a)+", "+l,{node:c,w:p,parent:h}}function s(a,l){var h,c=document.body&&l?"svg":"canvas",p=getFontProperties(a);if(c==="svg"){var f=createNS("text");f.style.fontSize="100px",f.setAttribute("font-family",a.fFamily),f.setAttribute("font-style",p.style),f.setAttribute("font-weight",p.weight),f.textContent="1",a.fClass?(f.style.fontFamily="inherit",f.setAttribute("class",a.fClass)):f.style.fontFamily=a.fFamily,l.appendChild(f),h=f}else{var u=new OffscreenCanvas(500,500).getContext("2d");u.font=p.style+" "+p.weight+" 100px "+a.fFamily,h=u}return{measureText:function(m){return c==="svg"?(h.textContent=m,h.getComputedTextLength()):h.measureText(m).width}}}var o=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)};return o.isModifier=function(a,l){var h=a.toString(16)+l.toString(16);return r.indexOf(h)!==-1},o.isZeroWidthJoiner=function(a,l){return l?a===i[0]&&l===i[1]:a===i[1]},o.isCombinedCharacter=function(a){return e.indexOf(a)!==-1},o.prototype={addChars:function(a){if(a){var l;this.chars||(this.chars=[]);var h,c,p=a.length,f=this.chars.length;for(l=0;l<p;l+=1){for(h=0,c=!1;h<f;)this.chars[h].style===a[l].style&&this.chars[h].fFamily===a[l].fFamily&&this.chars[h].ch===a[l].ch&&(c=!0),h+=1;c||(this.chars.push(a[l]),f+=1)}}},addFonts:function(a,l){if(a){if(this.chars)return this.isLoaded=!0,void(this.fonts=a.list);if(!document.body)return this.isLoaded=!0,a.list.forEach(function(b){b.helper=s(b),b.cache={}}),void(this.fonts=a.list);var h,c=a.list,p=c.length,f=p;for(h=0;h<p;h+=1){var u,m,g=!0;if(c[h].loaded=!1,c[h].monoCase=n(c[h].fFamily,"monospace"),c[h].sansCase=n(c[h].fFamily,"sans-serif"),c[h].fPath){if(c[h].fOrigin==="p"||c[h].origin===3){if((u=document.querySelectorAll('style[f-forigin="p"][f-family="'+c[h].fFamily+'"], style[f-origin="3"][f-family="'+c[h].fFamily+'"]')).length>0&&(g=!1),g){var d=createTag("style");d.setAttribute("f-forigin",c[h].fOrigin),d.setAttribute("f-origin",c[h].origin),d.setAttribute("f-family",c[h].fFamily),d.type="text/css",d.innerText="@font-face {font-family: "+c[h].fFamily+"; font-style: normal; src: url('"+c[h].fPath+"');}",l.appendChild(d)}}else if(c[h].fOrigin==="g"||c[h].origin===1){for(u=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),m=0;m<u.length;m+=1)u[m].href.indexOf(c[h].fPath)!==-1&&(g=!1);if(g){var y=createTag("link");y.setAttribute("f-forigin",c[h].fOrigin),y.setAttribute("f-origin",c[h].origin),y.type="text/css",y.rel="stylesheet",y.href=c[h].fPath,document.body.appendChild(y)}}else if(c[h].fOrigin==="t"||c[h].origin===2){for(u=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),m=0;m<u.length;m+=1)c[h].fPath===u[m].src&&(g=!1);if(g){var v=createTag("link");v.setAttribute("f-forigin",c[h].fOrigin),v.setAttribute("f-origin",c[h].origin),v.setAttribute("rel","stylesheet"),v.setAttribute("href",c[h].fPath),l.appendChild(v)}}}else c[h].loaded=!0,f-=1;c[h].helper=s(c[h],l),c[h].cache={},this.fonts.push(c[h])}f===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(a,l,h){for(var c=0,p=this.chars.length;c<p;){if(this.chars[c].ch===a&&this.chars[c].style===l&&this.chars[c].fFamily===h)return this.chars[c];c+=1}return(typeof a=="string"&&a.charCodeAt(0)!==13||!a)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",a,l,h)),t},getFontByName:function(a){for(var l=0,h=this.fonts.length;l<h;){if(this.fonts[l].fName===a)return this.fonts[l];l+=1}return this.fonts[0]},measureText:function(a,l,h){var c=this.getFontByName(l),p=a.charCodeAt(0);if(!c.cache[p+1]){var f=c.helper;if(a===" "){var u=f.measureText("|"+a+"|"),m=f.measureText("||");c.cache[p+1]=(u-m)/100}else c.cache[p+1]=f.measureText(a)/100}return c.cache[p+1]*h},checkLoadedFonts:function(){var a,l,h,c=this.fonts.length,p=c;for(a=0;a<c;a+=1)this.fonts[a].loaded?p-=1:this.fonts[a].fOrigin==="n"||this.fonts[a].origin===0?this.fonts[a].loaded=!0:(l=this.fonts[a].monoCase.node,h=this.fonts[a].monoCase.w,l.offsetWidth!==h?(p-=1,this.fonts[a].loaded=!0):(l=this.fonts[a].sansCase.node,h=this.fonts[a].sansCase.w,l.offsetWidth!==h&&(p-=1,this.fonts[a].loaded=!0)),this.fonts[a].loaded&&(this.fonts[a].sansCase.parent.parentNode.removeChild(this.fonts[a].sansCase.parent),this.fonts[a].monoCase.parent.parentNode.removeChild(this.fonts[a].monoCase.parent)));p!==0&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}},o}();function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(t){this.renderableComponents.indexOf(t)===-1&&this.renderableComponents.push(t)},removeRenderableComponent:function(t){this.renderableComponents.indexOf(t)!==-1&&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?this.isInRange!==!0&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):this.isInRange!==!1&&(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 this.data.ty===5?{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,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function AngleEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function ColorEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,1,0,r)}function PointEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,1,0,r)}function LayerIndexEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function MaskIndexEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function CheckboxEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function NoValueEffect(){this.p={}}function EffectsManager(t,e){var r,i=t.ef||[];this.effectElements=[];var n,s=i.length;for(r=0;r<s;r+=1)n=new GroupEffect(i[r],e),this.effectElements.push(n)}function GroupEffect(t,e){this.init(t,e)}function BaseElement(){}function FrameElement(){}function FootageElement(t,e,r){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.footageData=e.imageLoader.getAsset(this.assetData),this.initBaseData(t,e,r)}function AudioElement(t,e,r){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.initBaseData(t,e,r),this._isPlaying=!1,this._canPlay=!1;var i=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(i),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(){}function TransformElement(){}function MaskElement(t,e,r){this.data=t,this.element=e,this.globalData=r,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var i,n,s=this.globalData.defs,o=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(o),this.solidPath="";var a,l,h,c,p,f,u=this.masksProperties,m=0,g=[],d=createElementID(),y="clipPath",v="clip-path";for(i=0;i<o;i+=1)if((u[i].mode!=="a"&&u[i].mode!=="n"||u[i].inv||u[i].o.k!==100||u[i].o.x)&&(y="mask",v="mask"),u[i].mode!=="s"&&u[i].mode!=="i"||m!==0?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),g.push(h)),n=createNS("path"),u[i].mode==="n")this.viewData[i]={op:PropertyFactory.getProp(this.element,u[i].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,u[i],3),elem:n,lastPath:""},s.appendChild(n);else{var b;if(m+=1,n.setAttribute("fill",u[i].mode==="s"?"#000000":"#ffffff"),n.setAttribute("clip-rule","nonzero"),u[i].x.k!==0?(y="mask",v="mask",f=PropertyFactory.getProp(this.element,u[i].x,0,null,this.element),b=createElementID(),(c=createNS("filter")).setAttribute("id",b),(p=createNS("feMorphology")).setAttribute("operator","erode"),p.setAttribute("in","SourceGraphic"),p.setAttribute("radius","0"),c.appendChild(p),s.appendChild(c),n.setAttribute("stroke",u[i].mode==="s"?"#000000":"#ffffff")):(p=null,f=null),this.storedData[i]={elem:n,x:f,expan:p,lastPath:"",lastOperator:"",filterId:b,lastRadius:0},u[i].mode==="i"){l=g.length;var _=createNS("g");for(a=0;a<l;a+=1)_.appendChild(g[a]);var x=createNS("mask");x.setAttribute("mask-type","alpha"),x.setAttribute("id",d+"_"+m),x.appendChild(n),s.appendChild(x),_.setAttribute("mask","url("+getLocationHref()+"#"+d+"_"+m+")"),g.length=0,g.push(_)}else g.push(n);u[i].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[i]={elem:n,lastPath:"",op:PropertyFactory.getProp(this.element,u[i].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,u[i],3),invRect:h},this.viewData[i].prop.k||this.drawPath(u[i],this.viewData[i].prop.v,this.viewData[i])}for(this.maskElement=createNS(y),o=g.length,i=0;i<o;i+=1)this.maskElement.appendChild(g[i]);m>0&&(this.maskElement.setAttribute("id",d),this.element.maskedElement.setAttribute(v,"url("+getLocationHref()+"#"+d+")"),s.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(t,e){var r;this.data=t,this.effectElements=[],this.initDynamicPropertyContainer(e);var i,n=this.data.ef.length,s=this.data.ef;for(r=0;r<n;r+=1){switch(i=null,s[r].ty){case 0:i=new SliderEffect(s[r],e,this);break;case 1:i=new AngleEffect(s[r],e,this);break;case 2:i=new ColorEffect(s[r],e,this);break;case 3:i=new PointEffect(s[r],e,this);break;case 4:case 7:i=new CheckboxEffect(s[r],e,this);break;case 10:i=new LayerIndexEffect(s[r],e,this);break;case 11:i=new MaskIndexEffect(s[r],e,this);break;case 5:i=new EffectsManager(s[r],e,this);break;default:i=new NoValueEffect(s[r],e,this)}i&&this.effectElements.push(i)}},BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var t=0,e=this.data.masksProperties.length;t<e;){if(this.data.masksProperties[t].mode!=="n"&&this.data.masksProperties[t].cl!==!1)return!0;t+=1}return!1},initExpressions:function(){var t=getExpressionInterfaces();if(t){var e=t("layer"),r=t("effects"),i=t("shape"),n=t("text"),s=t("comp");this.layerInterface=e(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var o=r.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(o),this.data.ty===0||this.data.xt?this.compInterface=s(this):this.data.ty===4?(this.layerInterface.shapeInterface=i(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):this.data.ty===5&&(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,r){this.globalData=e,this.comp=r,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 r,i=this.dynamicProperties.length;for(r=0;r<i;r+=1)(e||this._isParent&&this.dynamicProperties[r].propType==="transform")&&(this.dynamicProperties[r].getValue(),this.dynamicProperties[r]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(t){this.dynamicProperties.indexOf(t)===-1&&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 r=this._volume*this._volumeMultiplier;this._previousVolume!==r&&(this._previousVolume=r,this.audio.volume(r))},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,r,i=this.layers.length;for(this.completeLayers=!0,e=i-1;e>=0;e-=1)this.elements[e]||(r=this.layers[e]).ip-r.st<=t-this.layers[e].st&&r.op-r.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: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);default:return this.createNull(t)}},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 r,i=t.length,n=this.layers.length;for(e=0;e<i;e+=1)for(r=0;r<n;){if(this.layers[r].id===t[e].id){this.layers[r]=t[e];break}r+=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,r){for(var i=this.elements,n=this.layers,s=0,o=n.length;s<o;)n[s].ind==e&&(i[s]&&i[s]!==!0?(r.push(i[s]),i[s].setAsParent(),n[s].parent!==void 0?this.buildElementParenting(t,n[s].parent,r):t.setHierarchy(r)):(this.buildItem(s),this.addPendingElement(t))),s+=1},BaseRenderer.prototype.addPendingElement=function(t){this.pendingElements.push(t)},BaseRenderer.prototype.searchExtraCompositions=function(t){var e,r=t.length;for(e=0;e<r;e+=1)if(t[e].xt){var i=this.createComp(t[e]);i.initExpressions(),this.globalData.projectInterface.registerComposition(i)}},BaseRenderer.prototype.getElementByPath=function(t){var e,r=t.shift();if(typeof r=="number")e=this.elements[r];else{var i,n=this.elements.length;for(i=0;i<n;i+=1)if(this.elements[i].data.nm===r){e=this.elements[i];break}}return t.length===0?e:e.getElementByPath(t)},BaseRenderer.prototype.setupGlobalData=function(t,e){this.globalData.fontManager=new FontManager,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}},TransformElement.prototype={initTransform:function(){this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_opMdf:!1,mat:new Matrix},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,r=0,i=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;r<i;){if(this.hierarchy[r].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}r+=1}if(this.finalTransform._matMdf)for(t=this.finalTransform.mProp.v.props,e.cloneFromProps(t),r=0;r<i;r+=1)t=this.hierarchy[r].finalTransform.mProp.v.props,e.transform(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])}},globalToLocal:function(t){var e=[];e.push(this.finalTransform);for(var r,i=!0,n=this.comp;i;)n.finalTransform?(n.data.hasMask&&e.splice(0,0,n.finalTransform),n=n.comp):i=!1;var s,o=e.length;for(r=0;r<o;r+=1)s=e[r].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,r=this.element.finalTransform.mat,i=this.masksProperties.length;for(e=0;e<i;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),this.masksProperties[e].mode!=="n"&&(this.viewData[e].invRect&&(this.element.finalTransform.mProp._mdf||t)&&this.viewData[e].invRect.setAttribute("transform",r.getInverseMatrix().to2dCSS()),this.storedData[e].x&&(this.storedData[e].x._mdf||t))){var n=this.storedData[e].expan;this.storedData[e].x.v<0?(this.storedData[e].lastOperator!=="erode"&&(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)):(this.storedData[e].lastOperator!=="dilate"&&(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,t+=" v-"+this.globalData.compSize.h+" "},MaskElement.prototype.drawPath=function(t,e,r){var i,n,s=" M"+e.v[0][0]+","+e.v[0][1];for(n=e._length,i=1;i<n;i+=1)s+=" C"+e.o[i-1][0]+","+e.o[i-1][1]+" "+e.i[i][0]+","+e.i[i][1]+" "+e.v[i][0]+","+e.v[i][1];if(e.c&&n>1&&(s+=" C"+e.o[i-1][0]+","+e.o[i-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),r.lastPath!==s){var o="";r.elem&&(e.c&&(o=t.inv?this.solidPath+s:s),r.elem.setAttribute("d",o)),r.lastPath=s}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var t={};return t.createFilter=function(e,r){var i=createNS("filter");return i.setAttribute("id",e),r!==!0&&(i.setAttribute("filterUnits","objectBoundingBox"),i.setAttribute("x","0%"),i.setAttribute("y","0%"),i.setAttribute("width","100%"),i.setAttribute("height","100%")),i},t.createAlphaToLuminanceFilter=function(){var e=createNS("feColorMatrix");return e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),e},t}(),featureSupport=function(){var t={maskType:!0};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),t}(),registeredEffects={},idPrefix="filter_result_";function SVGEffects(t){var e,r,i="SourceGraphic",n=t.data.ef?t.data.ef.length:0,s=createElementID(),o=filtersFactory.createFilter(s,!0),a=0;for(this.filters=[],e=0;e<n;e+=1){r=null;var l=t.data.ef[e].ty;registeredEffects[l]&&(r=new registeredEffects[l].effect(o,t.effectsManager.effectElements[e],t,idPrefix+a,i),i=idPrefix+a,registeredEffects[l].countsAsEffect&&(a+=1)),r&&this.filters.push(r)}a&&(t.globalData.defs.appendChild(o),t.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+s+")")),this.filters.length&&t.addRenderableComponent(this)}function registerEffect(t,e,r){registeredEffects[t]={effect:e,countsAsEffect:r}}function SVGBaseElement(){}function HierarchyElement(){}function RenderableDOMElement(){}function IImageElement(t,e,r){this.assetData=e.getAssetData(t.refId),this.initElement(t,e,r),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,r=this.filters.length;for(e=0;e<r;e+=1)this.filters[e].renderFrame(t)},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("symbol");e.setAttribute("id",this.layerId);var r=createNS("g");r.appendChild(this.layerElement),e.appendChild(r),t=r,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),this.data.ty===0&&!this.data.hd){var i=createNS("clipPath"),n=createNS("path");n.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var s=createElementID();if(i.setAttribute("id",s),i.appendChild(n),this.globalData.defs.appendChild(i),this.checkMasks()){var o=createNS("g");o.setAttribute("clip-path","url("+getLocationHref()+"#"+s+")"),o.appendChild(this.layerElement),this.transformedElement=o,t?t.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+s+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._matMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.mat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.mProp.o.v)},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)},getMatte:function(t){if(!this.matteMasks[t]){var e,r,i,n,s=this.layerId+"_"+t;if(t===1||t===3){var o=createNS("mask");o.setAttribute("id",s),o.setAttribute("mask-type",t===3?"luminance":"alpha"),(i=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),o.appendChild(i),this.globalData.defs.appendChild(o),featureSupport.maskType||t!==1||(o.setAttribute("mask-type","luminance"),e=createElementID(),r=filtersFactory.createFilter(e),this.globalData.defs.appendChild(r),r.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(n=createNS("g")).appendChild(i),o.appendChild(n),n.setAttribute("filter","url("+getLocationHref()+"#"+e+")"))}else if(t===2){var a=createNS("mask");a.setAttribute("id",s),a.setAttribute("mask-type","alpha");var l=createNS("g");a.appendChild(l),e=createElementID(),r=filtersFactory.createFilter(e);var h=createNS("feComponentTransfer");h.setAttribute("in","SourceGraphic"),r.appendChild(h);var c=createNS("feFuncA");c.setAttribute("type","table"),c.setAttribute("tableValues","1.0 0.0"),h.appendChild(c),this.globalData.defs.appendChild(r);var p=createNS("rect");p.setAttribute("width",this.comp.data.w),p.setAttribute("height",this.comp.data.h),p.setAttribute("x","0"),p.setAttribute("y","0"),p.setAttribute("fill","#ffffff"),p.setAttribute("opacity","0"),l.setAttribute("filter","url("+getLocationHref()+"#"+e+")"),l.appendChild(p),(i=createNS("use")).setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),l.appendChild(i),featureSupport.maskType||(a.setAttribute("mask-type","luminance"),r.appendChild(filtersFactory.createAlphaToLuminanceFilter()),n=createNS("g"),l.appendChild(p),n.appendChild(this.layerElement),l.appendChild(n)),this.globalData.defs.appendChild(a)}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(){this.data.parent!==void 0&&this.comp.buildElementParenting(this,this.data.parent,[])}},extendPrototype([RenderableElement,createProxyFunction({initElement:function(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initTransform(t,e,r),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.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,r=this.shapeModifiers.length;for(e=0;e<r;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,r=0,i=e.length;r<i;){if(e[r].elem===t)return e[r].pos;r+=1}return 0},addProcessedElement:function(t,e){for(var r=this.processedElements,i=r.length;i;)if(r[i-=1].elem===t)return void(r[i].pos=e);r.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,r){this.caches=[],this.styles=[],this.transformers=t,this.lStr="",this.sh=r,this.lvl=e,this._isAnimated=!!r.k;for(var i=0,n=t.length;i<n;){if(t[i].mProps.dynamicProperties.length){this._isAnimated=!0;break}i+=1}}function SVGStyleData(t,e){this.data=t,this.type=t.ty,this.d="",this.lvl=e,this._mdf=!1,this.closed=t.hd===!0,this.pElem=createNS("path"),this.msElem=null}function DashProperty(t,e,r,i){var n;this.elem=t,this.frameId=-1,this.dataProps=createSizedArray(e.length),this.renderer=r,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",e.length?e.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(i);var s,o=e.length||0;for(n=0;n<o;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,r){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=r,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(t,e,r){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=r}function SVGNoStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.style=r}function GradientProperty(t,e,r){this.data=e,this.c=createTypedArray("uint8c",4*e.p);var i=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",i),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=i,this.initDynamicPropertyContainer(r),this.prop=PropertyFactory.getProp(t,e.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.initGradientData(t,e,r)}function SVGGradientStrokeStyleData(t,e,r){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,r),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(t,e,r){this.transform={mProps:t,op:e,container:r},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,r=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),e=0;e<r;e+=1)this.dataProps[e].n!=="o"?this.renderer==="svg"?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 r=0,i=this.o.length/2;r<i;){if(Math.abs(t[4*r]-t[4*e+2*r])>.01)return!1;r+=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,r,i,n=4*this.data.p;for(e=0;e<n;e+=1)r=e%4==0?100:255,i=Math.round(this.prop.v[e]*r),this.c[e]!==i&&(this.c[e]=i,this._cmdf=!t);if(this.o.length)for(n=this.prop.v.length,e=4*this.data.p;e<n;e+=1)r=e%2==0?100:1,i=e%2==0?Math.round(100*this.prop.v[e]):this.prop.v[e],this.o[e-4*this.data.p]!==i&&(this.o[e-4*this.data.p]=i,this._omdf=!t);this._mdf=!t}},extendPrototype([DynamicPropertyContainer],GradientProperty),SVGGradientFillStyleData.prototype.initGradientData=function(t,e,r){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=r,this.stops=[],this.setGradientData(r.pElem,e),this.setGradientOpacity(e,r),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(t,e){var r=createElementID(),i=createNS(e.t===1?"linearGradient":"radialGradient");i.setAttribute("id",r),i.setAttribute("spreadMethod","pad"),i.setAttribute("gradientUnits","userSpaceOnUse");var n,s,o,a=[];for(o=4*e.g.p,s=0;s<o;s+=4)n=createNS("stop"),i.appendChild(n),a.push(n);t.setAttribute(e.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+r+")"),this.gf=i,this.cst=a},SVGGradientFillStyleData.prototype.setGradientOpacity=function(t,e){if(this.g._hasOpacity&&!this.g._collapsable){var r,i,n,s=createNS("mask"),o=createNS("path");s.appendChild(o);var a=createElementID(),l=createElementID();s.setAttribute("id",l);var h=createNS(t.t===1?"linearGradient":"radialGradient");h.setAttribute("id",a),h.setAttribute("spreadMethod","pad"),h.setAttribute("gradientUnits","userSpaceOnUse"),n=t.g.k.k[0].s?t.g.k.k[0].s.length:t.g.k.k.length;var c=this.stops;for(i=4*t.g.p;i<n;i+=2)(r=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),h.appendChild(r),c.push(r);o.setAttribute(t.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+a+")"),t.ty==="gs"&&(o.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]),o.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]),t.lj===1&&o.setAttribute("stroke-miterlimit",t.ml)),this.of=h,this.ms=s,this.ost=c,this.maskId=l,e.msElem=o}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(t,e,r,i){if(e===0)return"";var n,s=t.o,o=t.i,a=t.v,l=" M"+i.applyToPointStringified(a[0][0],a[0][1]);for(n=1;n<e;n+=1)l+=" C"+i.applyToPointStringified(s[n-1][0],s[n-1][1])+" "+i.applyToPointStringified(o[n][0],o[n][1])+" "+i.applyToPointStringified(a[n][0],a[n][1]);return r&&e&&(l+=" C"+i.applyToPointStringified(s[n-1][0],s[n-1][1])+" "+i.applyToPointStringified(o[0][0],o[0][1])+" "+i.applyToPointStringified(a[0][0],a[0][1]),l+="z"),l},SVGElementsRenderer=function(){var t=new Matrix,e=new Matrix;function r(h,c,p){(p||c.transform.op._mdf)&&c.transform.container.setAttribute("opacity",c.transform.op.v),(p||c.transform.mProps._mdf)&&c.transform.container.setAttribute("transform",c.transform.mProps.v.to2dCSS())}function i(){}function n(h,c,p){var f,u,m,g,d,y,v,b,_,x,M,S=c.styles.length,w=c.lvl;for(y=0;y<S;y+=1){if(g=c.sh._mdf||p,c.styles[y].lvl<w){for(b=e.reset(),x=w-c.styles[y].lvl,M=c.transformers.length-1;!g&&x>0;)g=c.transformers[M].mProps._mdf||g,x-=1,M-=1;if(g)for(x=w-c.styles[y].lvl,M=c.transformers.length-1;x>0;)_=c.transformers[M].mProps.v.props,b.transform(_[0],_[1],_[2],_[3],_[4],_[5],_[6],_[7],_[8],_[9],_[10],_[11],_[12],_[13],_[14],_[15]),x-=1,M-=1}else b=t;if(u=(v=c.sh.paths)._length,g){for(m="",f=0;f<u;f+=1)(d=v.shapes[f])&&d._length&&(m+=buildShapeString(d,d._length,d.c,b));c.caches[y]=m}else m=c.caches[y];c.styles[y].d+=h.hd===!0?"":m,c.styles[y]._mdf=g||c.styles[y]._mdf}}function s(h,c,p){var f=c.style;(c.c._mdf||p)&&f.pElem.setAttribute("fill","rgb("+bmFloor(c.c.v[0])+","+bmFloor(c.c.v[1])+","+bmFloor(c.c.v[2])+")"),(c.o._mdf||p)&&f.pElem.setAttribute("fill-opacity",c.o.v)}function o(h,c,p){a(h,c,p),l(h,c,p)}function a(h,c,p){var f,u,m,g,d,y=c.gf,v=c.g._hasOpacity,b=c.s.v,_=c.e.v;if(c.o._mdf||p){var x=h.ty==="gf"?"fill-opacity":"stroke-opacity";c.style.pElem.setAttribute(x,c.o.v)}if(c.s._mdf||p){var M=h.t===1?"x1":"cx",S=M==="x1"?"y1":"cy";y.setAttribute(M,b[0]),y.setAttribute(S,b[1]),v&&!c.g._collapsable&&(c.of.setAttribute(M,b[0]),c.of.setAttribute(S,b[1]))}if(c.g._cmdf||p){f=c.cst;var w=c.g.c;for(m=f.length,u=0;u<m;u+=1)(g=f[u]).setAttribute("offset",w[4*u]+"%"),g.setAttribute("stop-color","rgb("+w[4*u+1]+","+w[4*u+2]+","+w[4*u+3]+")")}if(v&&(c.g._omdf||p)){var D=c.g.o;for(m=(f=c.g._collapsable?c.cst:c.ost).length,u=0;u<m;u+=1)g=f[u],c.g._collapsable||g.setAttribute("offset",D[2*u]+"%"),g.setAttribute("stop-opacity",D[2*u+1])}if(h.t===1)(c.e._mdf||p)&&(y.setAttribute("x2",_[0]),y.setAttribute("y2",_[1]),v&&!c.g._collapsable&&(c.of.setAttribute("x2",_[0]),c.of.setAttribute("y2",_[1])));else if((c.s._mdf||c.e._mdf||p)&&(d=Math.sqrt(Math.pow(b[0]-_[0],2)+Math.pow(b[1]-_[1],2)),y.setAttribute("r",d),v&&!c.g._collapsable&&c.of.setAttribute("r",d)),c.e._mdf||c.h._mdf||c.a._mdf||p){d||(d=Math.sqrt(Math.pow(b[0]-_[0],2)+Math.pow(b[1]-_[1],2)));var E=Math.atan2(_[1]-b[1],_[0]-b[0]),T=c.h.v;T>=1?T=.99:T<=-1&&(T=-.99);var k=d*T,A=Math.cos(E+c.a.v)*k+b[0],P=Math.sin(E+c.a.v)*k+b[1];y.setAttribute("fx",A),y.setAttribute("fy",P),v&&!c.g._collapsable&&(c.of.setAttribute("fx",A),c.of.setAttribute("fy",P))}}function l(h,c,p){var f=c.style,u=c.d;u&&(u._mdf||p)&&u.dashStr&&(f.pElem.setAttribute("stroke-dasharray",u.dashStr),f.pElem.setAttribute("stroke-dashoffset",u.dashoffset[0])),c.c&&(c.c._mdf||p)&&f.pElem.setAttribute("stroke","rgb("+bmFloor(c.c.v[0])+","+bmFloor(c.c.v[1])+","+bmFloor(c.c.v[2])+")"),(c.o._mdf||p)&&f.pElem.setAttribute("stroke-opacity",c.o.v),(c.w._mdf||p)&&(f.pElem.setAttribute("stroke-width",c.w.v),f.msElem&&f.msElem.setAttribute("stroke-width",c.w.v))}return{createRenderFunction:function(h){switch(h.ty){case"fl":return s;case"gf":return a;case"gs":return o;case"st":return l;case"sh":case"el":case"rc":case"sr":return n;case"tr":return r;case"no":return i;default:return null}}}}();function SVGShapeElement(t,e,r){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,e,r),this.prevViewData=[]}function LetterProps(t,e,r,i,n,s){this.o=t,this.sw=e,this.sc=r,this.fc=i,this.m=n,this.p=s,this._mdf={o:!0,sw:!!e,sc:!!r,fc:!!i,m:!0,p:!0}}function TextProperty(t,e){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,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,r,i,n=this.shapes.length,s=this.stylesList.length,o=[],a=!1;for(r=0;r<s;r+=1){for(i=this.stylesList[r],a=!1,o.length=0,t=0;t<n;t+=1)(e=this.shapes[t]).styles.indexOf(i)!==-1&&(o.push(e),a=e._isAnimated||a);o.length>1&&a&&this.setShapesAsAnimated(o)}},SVGShapeElement.prototype.setShapesAsAnimated=function(t){var e,r=t.length;for(e=0;e<r;e+=1)t[e].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(t,e){var r,i=new SVGStyleData(t,e),n=i.pElem;return t.ty==="st"?r=new SVGStrokeStyleData(this,t,i):t.ty==="fl"?r=new SVGFillStyleData(this,t,i):t.ty==="gf"||t.ty==="gs"?(r=new(t.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,t,i),this.globalData.defs.appendChild(r.gf),r.maskId&&(this.globalData.defs.appendChild(r.ms),this.globalData.defs.appendChild(r.of),n.setAttribute("mask","url("+getLocationHref()+"#"+r.maskId+")"))):t.ty==="no"&&(r=new SVGNoStyleData(this,t,i)),t.ty!=="st"&&t.ty!=="gs"||(n.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]),n.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]),n.setAttribute("fill-opacity","0"),t.lj===1&&n.setAttribute("stroke-miterlimit",t.ml)),t.r===2&&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(i),this.addToAnimatedContents(t,r),r},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 r=TransformPropertyFactory.getTransformProperty(this,t,this),i=new SVGTransformData(r,r.o,e);return this.addToAnimatedContents(t,i),i},SVGShapeElement.prototype.createShapeElement=function(t,e,r){var i=4;t.ty==="rc"?i=5:t.ty==="el"?i=6:t.ty==="sr"&&(i=7);var n=new SVGShapeData(e,r,ShapePropertyFactory.getShapeProp(this,t,i,this));return this.shapes.push(n),this.addShapeToModifiers(n),this.addToAnimatedContents(t,n),n},SVGShapeElement.prototype.addToAnimatedContents=function(t,e){for(var r=0,i=this.animatedContents.length;r<i;){if(this.animatedContents[r].element===e)return;r+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(t),element:e,data:t})},SVGShapeElement.prototype.setElementStyles=function(t){var e,r=t.styles,i=this.stylesList.length;for(e=0;e<i;e+=1)this.stylesList[e].closed||r.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()},SVGShapeElement.prototype.searchShapes=function(t,e,r,i,n,s,o){var a,l,h,c,p,f,u=[].concat(s),m=t.length-1,g=[],d=[];for(a=m;a>=0;a-=1){if((f=this.searchProcessedElement(t[a]))?e[a]=r[f-1]:t[a]._render=o,t[a].ty==="fl"||t[a].ty==="st"||t[a].ty==="gf"||t[a].ty==="gs"||t[a].ty==="no")f?e[a].style.closed=!1:e[a]=this.createStyleElement(t[a],n),t[a]._render&&e[a].style.pElem.parentNode!==i&&i.appendChild(e[a].style.pElem),g.push(e[a].style);else if(t[a].ty==="gr"){if(f)for(h=e[a].it.length,l=0;l<h;l+=1)e[a].prevViewData[l]=e[a].it[l];else e[a]=this.createGroupElement(t[a]);this.searchShapes(t[a].it,e[a].it,e[a].prevViewData,e[a].gr,n+1,u,o),t[a]._render&&e[a].gr.parentNode!==i&&i.appendChild(e[a].gr)}else t[a].ty==="tr"?(f||(e[a]=this.createTransformElement(t[a],i)),c=e[a].transform,u.push(c)):t[a].ty==="sh"||t[a].ty==="rc"||t[a].ty==="el"||t[a].ty==="sr"?(f||(e[a]=this.createShapeElement(t[a],u,n)),this.setElementStyles(e[a])):t[a].ty==="tm"||t[a].ty==="rd"||t[a].ty==="ms"||t[a].ty==="pb"||t[a].ty==="zz"||t[a].ty==="op"?(f?(p=e[a]).closed=!1:((p=ShapeModifiers.getModifier(t[a].ty)).init(this,t[a]),e[a]=p,this.shapeModifiers.push(p)),d.push(p)):t[a].ty==="rp"&&(f?(p=e[a]).closed=!0:(p=ShapeModifiers.getModifier(t[a].ty),e[a]=p,p.init(this,t,a,e),this.shapeModifiers.push(p),o=!1),d.push(p));this.addProcessedElement(t[a],a+1)}for(m=g.length,a=0;a<m;a+=1)g[a].closed=!0;for(m=d.length,a=0;a<m;a+=1)d[a].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,r=this.animatedContents.length;for(t=0;t<r;t+=1)e=this.animatedContents[t],(this._isFirstFrame||e.element._isAnimated)&&e.data!==!0&&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,r,i,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 o=!1;return this.o!==t&&(this.o=t,this._mdf.o=!0,o=!0),this.sw!==e&&(this.sw=e,this._mdf.sw=!0,o=!0),this.sc!==r&&(this.sc=r,this._mdf.sc=!0,o=!0),this.fc!==i&&(this.fc=i,this._mdf.fc=!0,o=!0),this.m!==n&&(this.m=n,this._mdf.m=!0,o=!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,o=!0),o},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);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,r=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var i;this.lock=!0,this._mdf=!1;var n=this.effectsSequence.length,s=t||this.data.d.k[this.keysIndex].s;for(i=0;i<n;i+=1)s=r!==this.keysIndex?this.effectsSequence[i](s,s.t):this.effectsSequence[i](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,r=0,i=t.length;r<=i-1&&!(r===i-1||t[r+1].t>e);)r+=1;return this.keysIndex!==r&&(this.keysIndex=r),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(t){for(var e,r,i=[],n=0,s=t.length,o=!1;n<s;)e=t.charCodeAt(n),FontManager.isCombinedCharacter(e)?i[i.length-1]+=t.charAt(n):e>=55296&&e<=56319?(r=t.charCodeAt(n+1))>=56320&&r<=57343?(o||FontManager.isModifier(e,r)?(i[i.length-1]+=t.substr(n,2),o=!1):i.push(t.substr(n,2)),n+=1):i.push(t.charAt(n)):e>56319?(r=t.charCodeAt(n+1),FontManager.isZeroWidthJoiner(e,r)?(o=!0,i[i.length-1]+=t.substr(n,2),n+=1):i.push(t.charAt(n))):FontManager.isZeroWidthJoiner(e)?(i[i.length-1]+=t.charAt(n),o=!0):i.push(t.charAt(n)),n+=1;return i},TextProperty.prototype.completeTextData=function(t){t.__complete=!0;var e,r,i,n,s,o,a,l=this.elem.globalData.fontManager,h=this.data,c=[],p=0,f=h.m.g,u=0,m=0,g=0,d=[],y=0,v=0,b=l.getFontByName(t.f),_=0,x=getFontProperties(b);t.fWeight=x.weight,t.fStyle=x.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),r=t.finalText.length,t.finalLineHeight=t.lh;var M,S=t.tr/1e3*t.finalSize;if(t.sz)for(var w,D,E=!0,T=t.sz[0],k=t.sz[1];E;){w=0,y=0,r=(D=this.buildFinalText(t.t)).length,S=t.tr/1e3*t.finalSize;var A=-1;for(e=0;e<r;e+=1)M=D[e].charCodeAt(0),i=!1,D[e]===" "?A=e:M!==13&&M!==3||(y=0,i=!0,w+=t.finalLineHeight||1.2*t.finalSize),l.chars?(a=l.getCharData(D[e],b.fStyle,b.fFamily),_=i?0:a.w*t.finalSize/100):_=l.measureText(D[e],t.f,t.finalSize),y+_>T&&D[e]!==" "?(A===-1?r+=1:e=A,w+=t.finalLineHeight||1.2*t.finalSize,D.splice(e,A===e?1:0,"\r"),A=-1,y=0):(y+=_,y+=S);w+=b.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&k<w?(t.finalSize-=1,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=D,r=t.finalText.length,E=!1)}y=-S,_=0;var P,I=0;for(e=0;e<r;e+=1)if(i=!1,(M=(P=t.finalText[e]).charCodeAt(0))===13||M===3?(I=0,d.push(y),v=y>v?y:v,y=-2*S,n="",i=!0,g+=1):n=P,l.chars?(a=l.getCharData(P,b.fStyle,l.getFontByName(t.f).fFamily),_=i?0:a.w*t.finalSize/100):_=l.measureText(n,t.f,t.finalSize),P===" "?I+=_+S:(y+=_+S+I,I=0),c.push({l:_,an:_,add:u,n:i,anIndexes:[],val:n,line:g,animatorJustifyOffset:0}),f==2){if(u+=_,n===""||n===" "||e===r-1){for(n!==""&&n!==" "||(u-=_);m<=e;)c[m].an=u,c[m].ind=p,c[m].extra=_,m+=1;p+=1,u=0}}else if(f==3){if(u+=_,n===""||e===r-1){for(n===""&&(u-=_);m<=e;)c[m].an=u,c[m].ind=p,c[m].extra=_,m+=1;u=0,p+=1}}else c[p].ind=p,c[p].extra=0,p+=1;if(t.l=c,v=y>v?y:v,d.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=d;var L,F,C,O,V=h.a;o=V.length;var z=[];for(s=0;s<o;s+=1){for((L=V[s]).a.sc&&(t.strokeColorAnim=!0),L.a.sw&&(t.strokeWidthAnim=!0),(L.a.fc||L.a.fh||L.a.fs||L.a.fb)&&(t.fillColorAnim=!0),O=0,C=L.s.b,e=0;e<r;e+=1)(F=c[e]).anIndexes[s]=O,(C==1&&F.val!==""||C==2&&F.val!==""&&F.val!==" "||C==3&&(F.n||F.val==" "||e==r-1)||C==4&&(F.n||e==r-1))&&(L.s.rn===1&&z.push(O),O+=1);h.a[s].s.totalChars=O;var N,G=-1;if(L.s.rn===1)for(e=0;e<r;e+=1)G!=(F=c[e]).anIndexes[s]&&(G=F.anIndexes[s],N=z.splice(Math.floor(Math.random()*z.length),1)[0]),F.anIndexes[s]=N}t.yOffset=t.finalLineHeight||1.2*t.finalSize,t.ls=t.ls||0,t.ascent=b.ascent*t.finalSize/100},TextProperty.prototype.updateDocumentData=function(t,e){e=e===void 0?this.keysIndex:e;var r=this.copyData({},this.data.d.k[e].s);r=this.copyData(r,t),this.data.d.k[e].s=r,this.recalculate(e),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,r=Math.floor;function i(n,s){this._currentTextLength=-1,this.k=!1,this.data=s,this.elem=n,this.comp=n.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(n),this.s=PropertyFactory.getProp(n,s.s||{k:0},0,0,this),this.e="e"in s?PropertyFactory.getProp(n,s.e,0,0,this):{v:100},this.o=PropertyFactory.getProp(n,s.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(n,s.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(n,s.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(n,s.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(n,s.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return i.prototype={getMult:function(n){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var s=0,o=0,a=1,l=1;this.ne.v>0?s=this.ne.v/100:o=-this.ne.v/100,this.xe.v>0?a=1-this.xe.v/100:l=1+this.xe.v/100;var h=BezierFactory.getBezierEasing(s,o,a,l).get,c=0,p=this.finalS,f=this.finalE,u=this.data.sh;if(u===2)c=h(c=f===p?n>=f?1:0:t(0,e(.5/(f-p)+(n-p)/(f-p),1)));else if(u===3)c=h(c=f===p?n>=f?0:1:1-t(0,e(.5/(f-p)+(n-p)/(f-p),1)));else if(u===4)f===p?c=0:(c=t(0,e(.5/(f-p)+(n-p)/(f-p),1)))<.5?c*=2:c=1-2*(c-.5),c=h(c);else if(u===5){if(f===p)c=0;else{var m=f-p,g=-m/2+(n=e(t(0,n+.5-p),f-p)),d=m/2;c=Math.sqrt(1-g*g/(d*d))}c=h(c)}else u===6?(f===p?c=0:(n=e(t(0,n+.5-p),f-p),c=(1+Math.cos(Math.PI+2*Math.PI*n/(f-p)))/2),c=h(c)):(n>=r(p)&&(c=t(0,e(n-p<0?e(f,1)-(p-n):f-n,1))),c=h(c));if(this.sm.v!==100){var y=.01*this.sm.v;y===0&&(y=1e-8);var v=.5-.5*y;c<v?c=0:(c=(c-v)/y)>1&&(c=1)}return c*this.a.v},getValue:function(n){this.iterateDynamicProperties(),this._mdf=n||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,n&&this.data.r===2&&(this.e.v=this._currentTextLength);var s=this.data.r===2?1:100/this.data.totalChars,o=this.o.v/s,a=this.s.v/s+o,l=this.e.v/s+o;if(a>l){var h=a;a=l,l=h}this.finalS=a,this.finalE=l}},extendPrototype([DynamicPropertyContainer],i),{getTextSelectorProp:function(n,s,o){return new i(n,s,o)}}}();function TextAnimatorDataProperty(t,e,r){var i={propType:!1},n=PropertyFactory.getProp,s=e.a;this.a={r:s.r?n(t,s.r,0,degToRads,r):i,rx:s.rx?n(t,s.rx,0,degToRads,r):i,ry:s.ry?n(t,s.ry,0,degToRads,r):i,sk:s.sk?n(t,s.sk,0,degToRads,r):i,sa:s.sa?n(t,s.sa,0,degToRads,r):i,s:s.s?n(t,s.s,1,.01,r):i,a:s.a?n(t,s.a,1,0,r):i,o:s.o?n(t,s.o,0,.01,r):i,p:s.p?n(t,s.p,1,0,r):i,sw:s.sw?n(t,s.sw,0,0,r):i,sc:s.sc?n(t,s.sc,1,0,r):i,fc:s.fc?n(t,s.fc,1,0,r):i,fh:s.fh?n(t,s.fh,0,0,r):i,fs:s.fs?n(t,s.fs,0,.01,r):i,fb:s.fb?n(t,s.fb,0,.01,r):i,t:s.t?n(t,s.t,0,0,r):i},this.s=TextSelectorProp.getTextSelectorProp(t,e.s,r),this.s.t=e.s.t}function TextAnimatorProperty(t,e,r){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=e,this._elem=r,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(r)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var t,e,r=this._textData.a.length,i=PropertyFactory.getProp;for(t=0;t<r;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:i(this._elem,this._textData.p.a,0,0,this),f:i(this._elem,this._textData.p.f,0,0,this),l:i(this._elem,this._textData.p.l,0,0,this),r:i(this._elem,this._textData.p.r,0,0,this),p:i(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=i(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 r,i,n,s,o,a,l,h,c,p,f,u,m,g,d,y,v,b,_,x=this._moreOptions.alignment.v,M=this._animatorsData,S=this._textData,w=this.mHelper,D=this._renderType,E=this.renderedLetters.length,T=t.l;if(this._hasMaskedPath){if(_=this._pathData.m,!this._pathData.n||this._pathData._mdf){var k,A=_.v;for(this._pathData.r.v&&(A=A.reverse()),o={tLength:0,segments:[]},s=A._length-1,y=0,n=0;n<s;n+=1)k=bez.buildBezierData(A.v[n],A.v[n+1],[A.o[n][0]-A.v[n][0],A.o[n][1]-A.v[n][1]],[A.i[n+1][0]-A.v[n+1][0],A.i[n+1][1]-A.v[n+1][1]]),o.tLength+=k.segmentLength,o.segments.push(k),y+=k.segmentLength;n=s,_.v.c&&(k=bez.buildBezierData(A.v[n],A.v[0],[A.o[n][0]-A.v[n][0],A.o[n][1]-A.v[n][1]],[A.i[0][0]-A.v[0][0],A.i[0][1]-A.v[0][1]]),o.tLength+=k.segmentLength,o.segments.push(k),y+=k.segmentLength),this._pathData.pi=o}if(o=this._pathData.pi,a=this._pathData.f.v,f=0,p=1,h=0,c=!0,g=o.segments,a<0&&_.v.c)for(o.tLength<Math.abs(a)&&(a=-Math.abs(a)%o.tLength),p=(m=g[f=g.length-1].points).length-1;a<0;)a+=m[p].partialLength,(p-=1)<0&&(p=(m=g[f-=1].points).length-1);u=(m=g[f].points)[p-1],d=(l=m[p]).partialLength}s=T.length,r=0,i=0;var P,I,L,F,C,O=1.2*t.finalSize*.714,V=!0;L=M.length;var z,N,G,H,Y,Q,K,Z,pt,et,vt,ut,j=-1,Ft=a,he=f,ce=p,Ut=-1,Jt="",Wt=this.defaultPropsArray;if(t.j===2||t.j===1){var St=0,Qt=0,te=t.j===2?-.5:-1,ve=0,Xe=!0;for(n=0;n<s;n+=1)if(T[n].n){for(St&&(St+=Qt);ve<n;)T[ve].animatorJustifyOffset=St,ve+=1;St=0,Xe=!0}else{for(I=0;I<L;I+=1)(P=M[I].a).t.propType&&(Xe&&t.j===2&&(Qt+=P.t.v*te),(C=M[I].s.getMult(T[n].anIndexes[I],S.a[I].s.totalChars)).length?St+=P.t.v*C[0]*te:St+=P.t.v*C*te);Xe=!1}for(St&&(St+=Qt);ve<n;)T[ve].animatorJustifyOffset=St,ve+=1}for(n=0;n<s;n+=1){if(w.reset(),H=1,T[n].n)r=0,i+=t.yOffset,i+=V?1:0,a=Ft,V=!1,this._hasMaskedPath&&(p=ce,u=(m=g[f=he].points)[p-1],d=(l=m[p]).partialLength,h=0),Jt="",vt="",pt="",ut="",Wt=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Ut!==T[n].line){switch(t.j){case 1:a+=y-t.lineWidths[T[n].line];break;case 2:a+=(y-t.lineWidths[T[n].line])/2}Ut=T[n].line}j!==T[n].ind&&(T[j]&&(a+=T[j].extra),a+=T[n].an/2,j=T[n].ind),a+=x[0]*T[n].an*.005;var be=0;for(I=0;I<L;I+=1)(P=M[I].a).p.propType&&((C=M[I].s.getMult(T[n].anIndexes[I],S.a[I].s.totalChars)).length?be+=P.p.v[0]*C[0]:be+=P.p.v[0]*C),P.a.propType&&((C=M[I].s.getMult(T[n].anIndexes[I],S.a[I].s.totalChars)).length?be+=P.a.v[0]*C[0]:be+=P.a.v[0]*C);for(c=!0,this._pathData.a.v&&(a=.5*T[0].an+(y-this._pathData.f.v-.5*T[0].an-.5*T[T.length-1].an)*j/(s-1),a+=this._pathData.f.v);c;)h+d>=a+be||!m?(v=(a+be-h)/l.partialLength,N=u.point[0]+(l.point[0]-u.point[0])*v,G=u.point[1]+(l.point[1]-u.point[1])*v,w.translate(-x[0]*T[n].an*.005,-x[1]*O*.01),c=!1):m&&(h+=l.partialLength,(p+=1)>=m.length&&(p=0,g[f+=1]?m=g[f].points:_.v.c?(p=0,m=g[f=0].points):(h-=l.partialLength,m=null)),m&&(u=l,d=(l=m[p]).partialLength));z=T[n].an/2-T[n].add,w.translate(-z,0,0)}else z=T[n].an/2-T[n].add,w.translate(-z,0,0),w.translate(-x[0]*T[n].an*.005,-x[1]*O*.01,0);for(I=0;I<L;I+=1)(P=M[I].a).t.propType&&(C=M[I].s.getMult(T[n].anIndexes[I],S.a[I].s.totalChars),r===0&&t.j===0||(this._hasMaskedPath?C.length?a+=P.t.v*C[0]:a+=P.t.v*C:C.length?r+=P.t.v*C[0]:r+=P.t.v*C));for(t.strokeWidthAnim&&(Q=t.sw||0),t.strokeColorAnim&&(Y=t.sc?[t.sc[0],t.sc[1],t.sc[2]]:[0,0,0]),t.fillColorAnim&&t.fc&&(K=[t.fc[0],t.fc[1],t.fc[2]]),I=0;I<L;I+=1)(P=M[I].a).a.propType&&((C=M[I].s.getMult(T[n].anIndexes[I],S.a[I].s.totalChars)).length?w.translate(-P.a.v[0]*C[0],-P.a.v[1]*C[1],P.a.v[2]*C[2]):w.translate(-P.a.v[0]*C,-P.a.v[1]*C,P.a.v[2]*C));for(I=0;I<L;I+=1)(P=M[I].a).s.propType&&((C=M[I].s.getMult(T[n].anIndexes[I],S.a[I].s.totalChars)).length?w.scale(1+(P.s.v[0]-1)*C[0],1+(P.s.v[1]-1)*C[1],1):w.scale(1+(P.s.v[0]-1)*C,1+(P.s.v[1]-1)*C,1));for(I=0;I<L;I+=1){if(P=M[I].a,C=M[I].s.getMult(T[n].anIndexes[I],S.a[I].s.totalChars),P.sk.propType&&(C.length?w.skewFromAxis(-P.sk.v*C[0],P.sa.v*C[1]):w.skewFromAxis(-P.sk.v*C,P.sa.v*C)),P.r.propType&&(C.length?w.rotateZ(-P.r.v*C[2]):w.rotateZ(-P.r.v*C)),P.ry.propType&&(C.length?w.rotateY(P.ry.v*C[1]):w.rotateY(P.ry.v*C)),P.rx.propType&&(C.length?w.rotateX(P.rx.v*C[0]):w.rotateX(P.rx.v*C)),P.o.propType&&(C.length?H+=(P.o.v*C[0]-H)*C[0]:H+=(P.o.v*C-H)*C),t.strokeWidthAnim&&P.sw.propType&&(C.length?Q+=P.sw.v*C[0]:Q+=P.sw.v*C),t.strokeColorAnim&&P.sc.propType)for(Z=0;Z<3;Z+=1)C.length?Y[Z]+=(P.sc.v[Z]-Y[Z])*C[0]:Y[Z]+=(P.sc.v[Z]-Y[Z])*C;if(t.fillColorAnim&&t.fc){if(P.fc.propType)for(Z=0;Z<3;Z+=1)C.length?K[Z]+=(P.fc.v[Z]-K[Z])*C[0]:K[Z]+=(P.fc.v[Z]-K[Z])*C;P.fh.propType&&(K=C.length?addHueToRGB(K,P.fh.v*C[0]):addHueToRGB(K,P.fh.v*C)),P.fs.propType&&(K=C.length?addSaturationToRGB(K,P.fs.v*C[0]):addSaturationToRGB(K,P.fs.v*C)),P.fb.propType&&(K=C.length?addBrightnessToRGB(K,P.fb.v*C[0]):addBrightnessToRGB(K,P.fb.v*C))}}for(I=0;I<L;I+=1)(P=M[I].a).p.propType&&(C=M[I].s.getMult(T[n].anIndexes[I],S.a[I].s.totalChars),this._hasMaskedPath?C.length?w.translate(0,P.p.v[1]*C[0],-P.p.v[2]*C[1]):w.translate(0,P.p.v[1]*C,-P.p.v[2]*C):C.length?w.translate(P.p.v[0]*C[0],P.p.v[1]*C[1],-P.p.v[2]*C[2]):w.translate(P.p.v[0]*C,P.p.v[1]*C,-P.p.v[2]*C));if(t.strokeWidthAnim&&(pt=Q<0?0:Q),t.strokeColorAnim&&(et="rgb("+Math.round(255*Y[0])+","+Math.round(255*Y[1])+","+Math.round(255*Y[2])+")"),t.fillColorAnim&&t.fc&&(vt="rgb("+Math.round(255*K[0])+","+Math.round(255*K[1])+","+Math.round(255*K[2])+")"),this._hasMaskedPath){if(w.translate(0,-t.ls),w.translate(0,x[1]*O*.01+i,0),this._pathData.p.v){b=(l.point[1]-u.point[1])/(l.point[0]-u.point[0]);var pr=180*Math.atan(b)/Math.PI;l.point[0]<u.point[0]&&(pr+=180),w.rotate(-pr*Math.PI/180)}w.translate(N,G,0),a-=x[0]*T[n].an*.005,T[n+1]&&j!==T[n+1].ind&&(a+=T[n].an/2,a+=.001*t.tr*t.finalSize)}else{switch(w.translate(r,i,0),t.ps&&w.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:w.translate(T[n].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[T[n].line]),0,0);break;case 2:w.translate(T[n].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[T[n].line])/2,0,0)}w.translate(0,-t.ls),w.translate(z,0,0),w.translate(x[0]*T[n].an*.005,x[1]*O*.01,0),r+=T[n].l+.001*t.tr*t.finalSize}D==="html"?Jt=w.toCSS():D==="svg"?Jt=w.to2dCSS():Wt=[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]],ut=H}E<=n?(F=new LetterProps(ut,pt,et,vt,Jt,Wt),this.renderedLetters.push(F),E+=1,this.lettersChangedFlag=!0):(F=this.renderedLetters[n],this.lettersChangedFlag=F.update(ut,pt,et,vt,Jt,Wt)||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,r){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(t,e,r),this.textProperty=new TextProperty(this,t.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(t.t,this.renderType,this),this.initTransform(t,e,r),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),(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)},ITextElement.prototype.createPathShape=function(t,e){var r,i,n=e.length,s="";for(r=0;r<n;r+=1)e[r].ty==="sh"&&(i=e[r].ks.k,s+=buildShapeString(i,i.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,r,i,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[r]),0,0);break;case 2:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[r])/2,0,0)}e.translate(i,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(){};var emptyShapeData={shapes:[]};function SVGTextLottieElement(t,e,r){this.textSpans=[],this.renderType="svg",this.initElement(t,e,r)}function ISolidElement(t,e,r){this.initElement(t,e,r)}function NullElement(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initFrame(),this.initTransform(t,e,r),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}function SVGCompElement(t,e,r){this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,r),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 r="";if(e&&e.title){var i=createNS("title"),n=createElementID();i.setAttribute("id",n),i.textContent=e.title,this.svgElement.appendChild(i),r+=n}if(e&&e.description){var s=createNS("desc"),o=createElementID();s.setAttribute("id",o),s.textContent=e.description,this.svgElement.appendChild(s),r+=" "+o}r&&this.svgElement.setAttribute("aria-labelledby",r);var a=createNS("defs");this.svgElement.appendChild(a);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&&e.hideOnTransparent===!1),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||e.runExpressions===void 0||e.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:a,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function CVContextData(){var t;for(this.saved=[],this.cArrPos=0,this.cTr=new Matrix,this.cO=1,this.savedOp=createTypedArray("float32",15),t=0;t<15;t+=1)this.saved[t]=createTypedArray("float32",16);this._length=15}function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}function CVEffects(){}function CVMaskElement(t,e){var r;this.data=t,this.element=e,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var i=this.masksProperties.length,n=!1;for(r=0;r<i;r+=1)this.masksProperties[r].mode!=="n"&&(n=!0),this.viewData[r]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[r],3);this.hasMasks=n,n&&this.element.addRenderableComponent(this)}function CVBaseElement(){}function CVShapeData(t,e,r,i){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var n,s=4;e.ty==="rc"?s=5:e.ty==="el"?s=6:e.ty==="sr"&&(s=7),this.sh=ShapePropertyFactory.getShapeProp(t,e,s,t);var o,a=r.length;for(n=0;n<a;n+=1)r[n].closed||(o={transforms:i.addTransformSequence(r[n].transforms),trNodes:[]},this.styledShapes.push(o),r[n].elements.push(o))}function CVShapeElement(t,e,r){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(t,e,r)}function CVTextElement(t,e,r){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,r)}function CVImageElement(t,e,r){this.assetData=e.getAssetData(t.refId),this.img=e.imageLoader.getAsset(this.assetData),this.initElement(t,e,r)}function CVSolidElement(t,e,r){this.initElement(t,e,r)}function CanvasRendererBase(t,e){this.animationItem=t,this.renderConfig={clearCanvas:!e||e.clearCanvas===void 0||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||""},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"}function CVCompElement(t,e,r){this.completeLayers=!1,this.layers=t.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(t,e,r),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||e.clearCanvas===void 0||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||e.runExpressions===void 0||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"}function HBaseElement(){}function HSolidElement(t,e,r){this.initElement(t,e,r)}function HShapeElement(t,e,r){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(t,e,r),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(t,e,r){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(t,e,r)}function HCameraElement(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initHierarchy();var i=PropertyFactory.getProp;if(this.pe=i(this,t.pe,0,0,this),t.ks.p.s?(this.px=i(this,t.ks.p.x,1,0,this),this.py=i(this,t.ks.p.y,1,0,this),this.pz=i(this,t.ks.p.z,1,0,this)):this.p=i(this,t.ks.p,1,0,this),t.ks.a&&(this.a=i(this,t.ks.a,1,0,this)),t.ks.or.k.length&&t.ks.or.k[0].to){var n,s=t.ks.or.k.length;for(n=0;n<s;n+=1)t.ks.or.k[n].to=null,t.ks.or.k[n].ti=null}this.or=i(this,t.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=i(this,t.ks.rx,0,degToRads,this),this.ry=i(this,t.ks.ry,0,degToRads,this),this.rz=i(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,r){this.assetData=e.getAssetData(t.refId),this.initElement(t,e,r)}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&&e.hideOnTransparent===!1),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,r){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,r),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&&e.hideOnTransparent===!1),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||e.runExpressions===void 0||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"}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,r=t.length,i=[],n="";e<r;)t[e]===String.fromCharCode(13)||t[e]===String.fromCharCode(3)?(i.push(n),n=""):n+=t[e],e+=1;return i.push(n),i},SVGTextLottieElement.prototype.buildShapeData=function(t,e){if(t.shapes&&t.shapes.length){var r=t.shapes[0];if(r.it){var i=r.it[r.it.length-1];i.s&&(i.s.k[0]=e,i.s.k[1]=e)}}return t},SVGTextLottieElement.prototype.buildNewText=function(){var t,e;this.addDynamicProperty(this);var r=this.textProperty.currentData;this.renderedLetters=createSizedArray(r?r.l.length:0),r.fc?this.layerElement.setAttribute("fill",this.buildColor(r.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),r.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(r.sc)),this.layerElement.setAttribute("stroke-width",r.sw)),this.layerElement.setAttribute("font-size",r.finalSize);var i=this.globalData.fontManager.getFontByName(r.f);if(i.fClass)this.layerElement.setAttribute("class",i.fClass);else{this.layerElement.setAttribute("font-family",i.fFamily);var n=r.fWeight,s=r.fStyle;this.layerElement.setAttribute("font-style",s),this.layerElement.setAttribute("font-weight",n)}this.layerElement.setAttribute("aria-label",r.t);var o,a=r.l||[],l=!!this.globalData.fontManager.chars;e=a.length;var h=this.mHelper,c=this.data.singleShape,p=0,f=0,u=!0,m=.001*r.tr*r.finalSize;if(!c||l||r.sz){var g,d=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||t===0){if(o=d>t?this.textSpans[t].span:createNS(l?"g":"text"),d<=t){if(o.setAttribute("stroke-linecap","butt"),o.setAttribute("stroke-linejoin","round"),o.setAttribute("stroke-miterlimit","4"),this.textSpans[t].span=o,l){var y=createNS("g");o.appendChild(y),this.textSpans[t].childSpan=y}this.textSpans[t].span=o,this.layerElement.appendChild(o)}o.style.display="inherit"}if(h.reset(),c&&(a[t].n&&(p=-m,f+=r.yOffset,f+=u?1:0,u=!1),this.applyTextPropertiesToMatrix(r,h,a[t].line,p,f),p+=a[t].l||0,p+=m),l){var v;if((g=this.globalData.fontManager.getCharData(r.finalText[t],i.fStyle,this.globalData.fontManager.getFontByName(r.f).fFamily)).t===1)v=new SVGCompElement(g.data,this.globalData,this);else{var b=emptyShapeData;g.data&&g.data.shapes&&(b=this.buildShapeData(g.data,r.finalSize)),v=new SVGShapeElement(b,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),g.t===1&&this.textSpans[t].childSpan.setAttribute("transform","scale("+r.finalSize/100+","+r.finalSize/100+")")}else c&&o.setAttribute("transform","translate("+h.props[12]+","+h.props[13]+")"),o.textContent=a[t].val,o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}c&&o&&o.setAttribute("d","")}else{var x=this.textContainer,M="start";switch(r.j){case 1:M="end";break;case 2:M="middle";break;default:M="start"}x.setAttribute("text-anchor",M),x.setAttribute("letter-spacing",m);var S=this.buildTextContents(r.finalText);for(e=S.length,f=r.ps?r.ps[1]+r.ascent:0,t=0;t<e;t+=1)(o=this.textSpans[t].span||createNS("tspan")).textContent=S[t],o.setAttribute("x",0),o.setAttribute("y",f),o.style.display="inherit",x.appendChild(o),this.textSpans[t]||(this.textSpans[t]={span:null,glyph:null}),this.textSpans[t].span=o,f+=r.finalLineHeight;this.layerElement.appendChild(x)}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,r=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,t=0;t<r;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.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var t,e;this._sizeChanged=!0;var r,i,n,s=this.textAnimator.renderedLetters,o=this.textProperty.currentData.l;for(e=o.length,t=0;t<e;t+=1)o[t].n||(r=s[t],i=this.textSpans[t].span,(n=this.textSpans[t].glyph)&&n.renderFrame(),r._mdf.m&&i.setAttribute("transform",r.m),r._mdf.o&&i.setAttribute("opacity",r.o),r._mdf.sw&&i.setAttribute("stroke-width",r.sw),r._mdf.sc&&i.setAttribute("stroke",r.sc),r._mdf.fc&&i.setAttribute("fill",r.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,0,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),this.renderConfig.focusable!==void 0&&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 r=createNS("clipPath"),i=createNS("rect");i.setAttribute("width",t.w),i.setAttribute("height",t.h),i.setAttribute("x",0),i.setAttribute("y",0);var n=createElementID();r.setAttribute("id",n),r.appendChild(i),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+n+")"),e.appendChild(r),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.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(t){var e=0,r=this.layers.length;for(e=0;e<r;e+=1)if(this.layers[e].ind===t)return e;return-1},SVGRendererBase.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&this.layers[t].ty!==99){e[t]=!0;var r=this.createItem(this.layers[t]);if(e[t]=r,getExpressionsPlugin()&&(this.layers[t].ty===0&&this.globalData.projectInterface.registerComposition(r),r.initExpressions()),this.appendElementInPos(r,t),this.layers[t].tt){var i="tp"in this.layers[t]?this.findIndexByInd(this.layers[t].tp):t-1;if(i===-1)return;if(this.elements[i]&&this.elements[i]!==!0){var n=e[i].getMatte(this.layers[t].tt);r.setMatte(n)}else this.buildItem(i),this.addPendingElement(r)}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();if(t.checkParenting(),t.data.tt)for(var e=0,r=this.elements.length;e<r;){if(this.elements[e]===t){var i="tp"in t.data?this.findIndexByInd(t.data.tp):e-1,n=this.elements[i].getMatte(this.layers[e].tt);t.setMatte(n);break}e+=1}}},SVGRendererBase.prototype.renderFrame=function(t){if(this.renderedFrame!==t&&!this.destroyed){var e;t===null?t=this.renderedFrame:this.renderedFrame=t,this.globalData.frameNum=t,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=t,this.globalData._mdf=!1;var r=this.layers.length;for(this.completeLayers||this.checkLayers(t),e=r-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<r;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(t,e){var r=t.getBaseElement();if(r){for(var i,n=0;n<e;)this.elements[n]&&this.elements[n]!==!0&&this.elements[n].getBaseElement()&&(i=this.elements[n].getBaseElement()),n+=1;i?this.layerElement.insertBefore(r,i):this.layerElement.appendChild(r)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initTransform(t,e,r),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 r,i=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),r=i-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&(this.elements[r].prepareFrame(this.renderedFrame-this.layers[r].st),this.elements[r]._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)},CVContextData.prototype.duplicate=function(){var t=2*this._length,e=this.savedOp;this.savedOp=createTypedArray("float32",t),this.savedOp.set(e);var r=0;for(r=this._length;r<t;r+=1)this.saved[r]=createTypedArray("float32",16);this._length=t},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.cO=1},ShapeTransformManager.prototype={addTransformSequence:function(t){var e,r=t.length,i="_";for(e=0;e<r;e+=1)i+=t[e].transform.key+"_";var n=this.sequences[i];return n||(n={transforms:[].concat(t),finalTransform:new Matrix,_mdf:!1},this.sequences[i]=n,this.sequenceList.push(n)),n},processSequence:function(t,e){for(var r,i=0,n=t.transforms.length,s=e;i<n&&!e;){if(t.transforms[i].transform.mProps._mdf){s=!0;break}i+=1}if(s)for(t.finalTransform.reset(),i=n-1;i>=0;i-=1)r=t.transforms[i].transform.mProps.v.props,t.finalTransform.transform(r[0],r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15]);t._mdf=s},processSequences:function(t){var e,r=this.sequenceList.length;for(e=0;e<r;e+=1)this.processSequence(this.sequenceList[e],t)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}},CVEffects.prototype.renderFrame=function(){},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var t,e,r,i,n=this.element.finalTransform.mat,s=this.element.canvasContext,o=this.masksProperties.length;for(s.beginPath(),t=0;t<o;t+=1)if(this.masksProperties[t].mode!=="n"){var a;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)),i=this.viewData[t].v,e=n.applyToPointArray(i.v[0][0],i.v[0][1],0),s.moveTo(e[0],e[1]);var l=i._length;for(a=1;a<l;a+=1)r=n.applyToTriplePoints(i.o[a-1],i.i[a],i.v[a]),s.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5]);r=n.applyToTriplePoints(i.o[a-1],i.i[0],i.v[0]),s.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5])}this.element.globalData.renderer.save(!0),s.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null},CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){this.canvasContext=this.globalData.canvasContext,this.renderableEffectsManager=new CVEffects(this)},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)},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)},renderFrame:function(){if(!this.hidden&&!this.data.hd){this.renderTransform(),this.renderRenderable(),this.setBlendMode();var t=this.data.ty===0;this.globalData.renderer.save(t),this.globalData.renderer.ctxTransform(this.finalTransform.mat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.mProp.o.v),this.renderInnerContent(),this.globalData.renderer.restore(t),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 r={data:t,type:t.ty,preTransforms:this.transformsManager.addTransformSequence(e),transforms:[],elements:[],closed:t.hd===!0},i={};if(t.ty==="fl"||t.ty==="st"?(i.c=PropertyFactory.getProp(this,t.c,1,255,this),i.c.k||(r.co="rgb("+bmFloor(i.c.v[0])+","+bmFloor(i.c.v[1])+","+bmFloor(i.c.v[2])+")")):t.ty!=="gf"&&t.ty!=="gs"||(i.s=PropertyFactory.getProp(this,t.s,1,null,this),i.e=PropertyFactory.getProp(this,t.e,1,null,this),i.h=PropertyFactory.getProp(this,t.h||{k:0},0,.01,this),i.a=PropertyFactory.getProp(this,t.a||{k:0},0,degToRads,this),i.g=new GradientProperty(this,t.g,this)),i.o=PropertyFactory.getProp(this,t.o,0,.01,this),t.ty==="st"||t.ty==="gs"){if(r.lc=lineCapEnum[t.lc||2],r.lj=lineJoinEnum[t.lj||2],t.lj==1&&(r.ml=t.ml),i.w=PropertyFactory.getProp(this,t.w,0,null,this),i.w.k||(r.wi=i.w.v),t.d){var n=new DashProperty(this,t.d,"canvas",this);i.d=n,i.d.k||(r.da=i.d.dashArray,r.do=i.d.dashoffset[0])}}else r.r=t.r===2?"evenodd":"nonzero";return this.stylesList.push(r),i.style=r,i},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,r=this.stylesList.length;for(e=0;e<r;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,r=t.length;for(e=0;e<r;e+=1)t[e].closed=!0},CVShapeElement.prototype.searchShapes=function(t,e,r,i,n){var s,o,a,l,h,c,p=t.length-1,f=[],u=[],m=[].concat(n);for(s=p;s>=0;s-=1){if((l=this.searchProcessedElement(t[s]))?e[s]=r[l-1]:t[s]._shouldRender=i,t[s].ty==="fl"||t[s].ty==="st"||t[s].ty==="gf"||t[s].ty==="gs")l?e[s].style.closed=!1:e[s]=this.createStyleElement(t[s],m),f.push(e[s].style);else if(t[s].ty==="gr"){if(l)for(a=e[s].it.length,o=0;o<a;o+=1)e[s].prevViewData[o]=e[s].it[o];else e[s]=this.createGroupElement(t[s]);this.searchShapes(t[s].it,e[s].it,e[s].prevViewData,i,m)}else t[s].ty==="tr"?(l||(c=this.createTransformElement(t[s]),e[s]=c),m.push(e[s]),this.addTransformToStyleList(e[s])):t[s].ty==="sh"||t[s].ty==="rc"||t[s].ty==="el"||t[s].ty==="sr"?l||(e[s]=this.createShapeElement(t[s])):t[s].ty==="tm"||t[s].ty==="rd"||t[s].ty==="pb"||t[s].ty==="zz"||t[s].ty==="op"?(l?(h=e[s]).closed=!1:((h=ShapeModifiers.getModifier(t[s].ty)).init(this,t[s]),e[s]=h,this.shapeModifiers.push(h)),u.push(h)):t[s].ty==="rp"&&(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),i=!1),u.push(h));this.addProcessedElement(t[s],s+1)}for(this.removeTransformFromStyleList(),this.closeStyles(f),p=u.length,s=0;s<p;s+=1)u[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,r,i,n,s,o,a,l,h=this.stylesList.length,c=this.globalData.renderer,p=this.globalData.canvasContext;for(t=0;t<h;t+=1)if(((a=(l=this.stylesList[t]).type)!=="st"&&a!=="gs"||l.wi!==0)&&l.data._shouldRender&&l.coOp!==0&&this.globalData.currentGlobalAlpha!==0){for(c.save(),s=l.elements,a==="st"||a==="gs"?(p.strokeStyle=a==="st"?l.co:l.grd,p.lineWidth=l.wi,p.lineCap=l.lc,p.lineJoin=l.lj,p.miterLimit=l.ml||0):p.fillStyle=a==="fl"?l.co:l.grd,c.ctxOpacity(l.coOp),a!=="st"&&a!=="gs"&&p.beginPath(),c.ctxTransform(l.preTransforms.finalTransform.props),r=s.length,e=0;e<r;e+=1){for(a!=="st"&&a!=="gs"||(p.beginPath(),l.da&&(p.setLineDash(l.da),p.lineDashOffset=l.do)),n=(o=s[e].trNodes).length,i=0;i<n;i+=1)o[i].t==="m"?p.moveTo(o[i].p[0],o[i].p[1]):o[i].t==="c"?p.bezierCurveTo(o[i].pts[0],o[i].pts[1],o[i].pts[2],o[i].pts[3],o[i].pts[4],o[i].pts[5]):p.closePath();a!=="st"&&a!=="gs"||(p.stroke(),l.da&&p.setLineDash(this.dashResetter))}a!=="st"&&a!=="gs"&&p.fill(l.r),c.restore()}},CVShapeElement.prototype.renderShape=function(t,e,r,i){var n,s;for(s=t,n=e.length-1;n>=0;n-=1)e[n].ty==="tr"?(s=r[n].transform,this.renderShapeTransform(t,s)):e[n].ty==="sh"||e[n].ty==="el"||e[n].ty==="rc"||e[n].ty==="sr"?this.renderPath(e[n],r[n]):e[n].ty==="fl"?this.renderFill(e[n],r[n],s):e[n].ty==="st"?this.renderStroke(e[n],r[n],s):e[n].ty==="gf"||e[n].ty==="gs"?this.renderGradientFill(e[n],r[n],s):e[n].ty==="gr"?this.renderShape(s,e[n].it,r[n].it):e[n].ty;i&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(t,e){if(this._isFirstFrame||e._mdf||t.transforms._mdf){var r,i,n,s=t.trNodes,o=e.paths,a=o._length;s.length=0;var l=t.transforms.finalTransform;for(n=0;n<a;n+=1){var h=o.shapes[n];if(h&&h.v){for(i=h._length,r=1;r<i;r+=1)r===1&&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[r-1],h.i[r],h.v[r])});i===1&&s.push({t:"m",p:l.applyToPointArray(h.v[0][0],h.v[0][1],0)}),h.c&&i&&(s.push({t:"c",pts:l.applyToTriplePoints(h.o[r-1],h.i[0],h.v[0])}),s.push({t:"z"}))}}t.trNodes=s}},CVShapeElement.prototype.renderPath=function(t,e){if(t.hd!==!0&&t._shouldRender){var r,i=e.styledShapes.length;for(r=0;r<i;r+=1)this.renderStyledShape(e.styledShapes[r],e.sh)}},CVShapeElement.prototype.renderFill=function(t,e,r){var i=e.style;(e.c._mdf||this._isFirstFrame)&&(i.co="rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||r._opMdf||this._isFirstFrame)&&(i.coOp=e.o.v*r.opacity)},CVShapeElement.prototype.renderGradientFill=function(t,e,r){var i,n=e.style;if(!n.grd||e.g._mdf||e.s._mdf||e.e._mdf||t.t!==1&&(e.h._mdf||e.a._mdf)){var s,o=this.globalData.canvasContext,a=e.s.v,l=e.e.v;if(t.t===1)i=o.createLinearGradient(a[0],a[1],l[0],l[1]);else{var h=Math.sqrt(Math.pow(a[0]-l[0],2)+Math.pow(a[1]-l[1],2)),c=Math.atan2(l[1]-a[1],l[0]-a[0]),p=e.h.v;p>=1?p=.99:p<=-1&&(p=-.99);var f=h*p,u=Math.cos(c+e.a.v)*f+a[0],m=Math.sin(c+e.a.v)*f+a[1];i=o.createRadialGradient(u,m,0,a[0],a[1],h)}var g=t.g.p,d=e.g.c,y=1;for(s=0;s<g;s+=1)e.g._hasOpacity&&e.g._collapsable&&(y=e.g.o[2*s+1]),i.addColorStop(d[4*s]/100,"rgba("+d[4*s+1]+","+d[4*s+2]+","+d[4*s+3]+","+y+")");n.grd=i}n.coOp=e.o.v*r.opacity},CVShapeElement.prototype.renderStroke=function(t,e,r){var i=e.style,n=e.d;n&&(n._mdf||this._isFirstFrame)&&(i.da=n.dashArray,i.do=n.dashoffset[0]),(e.c._mdf||this._isFirstFrame)&&(i.co="rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||r._opMdf||this._isFirstFrame)&&(i.coOp=e.o.v*r.opacity),(e.w._mdf||this._isFirstFrame)&&(i.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 r=!1;t.sc&&(r=!0,this.values.stroke=this.buildColor(t.sc),this.values.sWidth=t.sw);var i,n,s,o,a,l,h,c,p,f,u,m,g=this.globalData.fontManager.getFontByName(t.f),d=t.l,y=this.mHelper;this.stroke=r,this.values.fValue=t.finalSize+"px "+this.globalData.fontManager.getFontByName(t.f).fFamily,n=t.finalText.length;var v=this.data.singleShape,b=.001*t.tr*t.finalSize,_=0,x=0,M=!0,S=0;for(i=0;i<n;i+=1){o=(s=this.globalData.fontManager.getCharData(t.finalText[i],g.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily))&&s.data||{},y.reset(),v&&d[i].n&&(_=-b,x+=t.yOffset,x+=M?1:0,M=!1),p=(h=o.shapes?o.shapes[0].it:[]).length,y.scale(t.finalSize/100,t.finalSize/100),v&&this.applyTextPropertiesToMatrix(t,y,d[i].line,_,x),u=createSizedArray(p-1);var w=0;for(c=0;c<p;c+=1)if(h[c].ty==="sh"){for(l=h[c].ks.k.i.length,f=h[c].ks.k,m=[],a=1;a<l;a+=1)a===1&&m.push(y.applyToX(f.v[0][0],f.v[0][1],0),y.applyToY(f.v[0][0],f.v[0][1],0)),m.push(y.applyToX(f.o[a-1][0],f.o[a-1][1],0),y.applyToY(f.o[a-1][0],f.o[a-1][1],0),y.applyToX(f.i[a][0],f.i[a][1],0),y.applyToY(f.i[a][0],f.i[a][1],0),y.applyToX(f.v[a][0],f.v[a][1],0),y.applyToY(f.v[a][0],f.v[a][1],0));m.push(y.applyToX(f.o[a-1][0],f.o[a-1][1],0),y.applyToY(f.o[a-1][0],f.o[a-1][1],0),y.applyToX(f.i[0][0],f.i[0][1],0),y.applyToY(f.i[0][0],f.i[0][1],0),y.applyToX(f.v[0][0],f.v[0][1],0),y.applyToY(f.v[0][0],f.v[0][1],0)),u[w]=m,w+=1}v&&(_+=d[i].l,_+=b),this.textSpans[S]?this.textSpans[S].elem=u:this.textSpans[S]={elem:u},S+=1}},CVTextElement.prototype.renderInnerContent=function(){var t,e,r,i,n,s,o=this.canvasContext;o.font=this.values.fValue,o.lineCap="butt",o.lineJoin="miter",o.miterLimit=4,this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var a,l=this.textAnimator.renderedLetters,h=this.textProperty.currentData.l;e=h.length;var c,p,f=null,u=null,m=null;for(t=0;t<e;t+=1)if(!h[t].n){if((a=l[t])&&(this.globalData.renderer.save(),this.globalData.renderer.ctxTransform(a.p),this.globalData.renderer.ctxOpacity(a.o)),this.fill){for(a&&a.fc?f!==a.fc&&(f=a.fc,o.fillStyle=a.fc):f!==this.values.fill&&(f=this.values.fill,o.fillStyle=this.values.fill),i=(c=this.textSpans[t].elem).length,this.globalData.canvasContext.beginPath(),r=0;r<i;r+=1)for(s=(p=c[r]).length,this.globalData.canvasContext.moveTo(p[0],p[1]),n=2;n<s;n+=6)this.globalData.canvasContext.bezierCurveTo(p[n],p[n+1],p[n+2],p[n+3],p[n+4],p[n+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.fill()}if(this.stroke){for(a&&a.sw?m!==a.sw&&(m=a.sw,o.lineWidth=a.sw):m!==this.values.sWidth&&(m=this.values.sWidth,o.lineWidth=this.values.sWidth),a&&a.sc?u!==a.sc&&(u=a.sc,o.strokeStyle=a.sc):u!==this.values.stroke&&(u=this.values.stroke,o.strokeStyle=this.values.stroke),i=(c=this.textSpans[t].elem).length,this.globalData.canvasContext.beginPath(),r=0;r<i;r+=1)for(s=(p=c[r]).length,this.globalData.canvasContext.moveTo(p[0],p[1]),n=2;n<s;n+=6)this.globalData.canvasContext.bezierCurveTo(p[n],p[n+1],p[n+2],p[n+3],p[n+4],p[n+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.stroke()}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,r,i=t.getContext("2d"),n=this.img.width,s=this.img.height,o=n/s,a=this.assetData.w/this.assetData.h,l=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;o>a&&l==="xMidYMid slice"||o<a&&l!=="xMidYMid slice"?e=(r=s)*a:r=(e=n)/a,i.drawImage(this.img,(n-e)/2,(s-r)/2,e,r,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(){var t=this.canvasContext;t.fillStyle=this.data.sc,t.fillRect(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){if(t[0]!==1||t[1]!==0||t[4]!==0||t[5]!==1||t[12]!==0||t[13]!==0)if(this.renderConfig.clearCanvas){this.transformMat.cloneFromProps(t);var e=this.contextData.cTr.props;this.transformMat.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]),this.contextData.cTr.cloneFromProps(this.transformMat.props);var r=this.contextData.cTr.props;this.canvasContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13])}else this.canvasContext.transform(t[0],t[1],t[4],t[5],t[12],t[13])},CanvasRendererBase.prototype.ctxOpacity=function(t){if(!this.renderConfig.clearCanvas)return this.canvasContext.globalAlpha*=t<0?0:t,void(this.globalData.currentGlobalAlpha=this.contextData.cO);this.contextData.cO*=t<0?0:t,this.globalData.currentGlobalAlpha!==this.contextData.cO&&(this.canvasContext.globalAlpha=this.contextData.cO,this.globalData.currentGlobalAlpha=this.contextData.cO)},CanvasRendererBase.prototype.reset=function(){this.renderConfig.clearCanvas?this.contextData.reset():this.canvasContext.restore()},CanvasRendererBase.prototype.save=function(t){if(this.renderConfig.clearCanvas){t&&this.canvasContext.save();var e,r=this.contextData.cTr.props;this.contextData._length<=this.contextData.cArrPos&&this.contextData.duplicate();var i=this.contextData.saved[this.contextData.cArrPos];for(e=0;e<16;e+=1)i[e]=r[e];this.contextData.savedOp[this.contextData.cArrPos]=this.contextData.cO,this.contextData.cArrPos+=1}else this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(t){if(this.renderConfig.clearCanvas){t&&(this.canvasContext.restore(),this.globalData.blendMode="source-over"),this.contextData.cArrPos-=1;var e,r=this.contextData.saved[this.contextData.cArrPos],i=this.contextData.cTr.props;for(e=0;e<16;e+=1)i[e]=r[e];this.canvasContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13]),r=this.contextData.savedOp[this.contextData.cArrPos],this.contextData.cO=r,this.globalData.currentGlobalAlpha!==r&&(this.canvasContext.globalAlpha=r,this.globalData.currentGlobalAlpha=r)}else 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 r="0px 0px 0px";e.transformOrigin=r,e.mozTransformOrigin=r,e.webkitTransformOrigin=r,e["-webkit-transform"]=r,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.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 r,i,n,s;if(this.reset(),t?(r=t,i=e,this.canvasContext.canvas.width=r,this.canvasContext.canvas.height=i):(this.animationItem.wrapper&&this.animationItem.container?(r=this.animationItem.wrapper.offsetWidth,i=this.animationItem.wrapper.offsetHeight):(r=this.canvasContext.canvas.width,i=this.canvasContext.canvas.height),this.canvasContext.canvas.width=r*this.renderConfig.dpr,this.canvasContext.canvas.height=i*this.renderConfig.dpr),this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var o=this.renderConfig.preserveAspectRatio.split(" "),a=o[1]||"meet",l=o[0]||"xMidYMid",h=l.substr(0,4),c=l.substr(4);n=r/i,(s=this.transformCanvas.w/this.transformCanvas.h)>n&&a==="meet"||s<n&&a==="slice"?(this.transformCanvas.sx=r/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=r/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=i/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=i/(this.transformCanvas.h/this.renderConfig.dpr)),this.transformCanvas.tx=h==="xMid"&&(s<n&&a==="meet"||s>n&&a==="slice")?(r-this.transformCanvas.w*(i/this.transformCanvas.h))/2*this.renderConfig.dpr:h==="xMax"&&(s<n&&a==="meet"||s>n&&a==="slice")?(r-this.transformCanvas.w*(i/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty=c==="YMid"&&(s>n&&a==="meet"||s<n&&a==="slice")?(i-this.transformCanvas.h*(r/this.transformCanvas.w))/2*this.renderConfig.dpr:c==="YMax"&&(s>n&&a==="meet"||s<n&&a==="slice")?(i-this.transformCanvas.h*(r/this.transformCanvas.w))*this.renderConfig.dpr:0}else this.renderConfig.preserveAspectRatio==="none"?(this.transformCanvas.sx=r/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=i/(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.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(t,e){if((this.renderedFrame!==t||this.renderConfig.clearCanvas!==!0||e)&&!this.destroyed&&t!==-1){var r;this.renderedFrame=t,this.globalData.frameNum=t-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||e,this.globalData.projectInterface.currentFrame=t;var i=this.layers.length;for(this.completeLayers||this.checkLayers(t),r=0;r<i;r+=1)(this.completeLayers||this.elements[r])&&this.elements[r].prepareFrame(t-this.layers[r].st);if(this.globalData._mdf){for(this.renderConfig.clearCanvas===!0?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),r=i-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame();this.renderConfig.clearCanvas!==!0&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&this.layers[t].ty!==99){var r=this.createItem(this.layers[t],this,this.globalData);e[t]=r,r.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"},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),this.data.bm!==0&&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 r,i=t.length;for(r=0;r<i;r+=1)e=t[r].mProps.v.applyToPointArray(e[0],e[1],0);return e},HShapeElement.prototype.calculateShapeBoundingBox=function(t,e){var r,i,n,s,o,a=t.sh.v,l=t.transformers,h=a._length;if(!(h<=1)){for(r=0;r<h-1;r+=1)i=this.getTransformedPoint(l,a.v[r]),n=this.getTransformedPoint(l,a.o[r]),s=this.getTransformedPoint(l,a.i[r+1]),o=this.getTransformedPoint(l,a.v[r+1]),this.checkBounds(i,n,s,o,e);a.c&&(i=this.getTransformedPoint(l,a.v[r]),n=this.getTransformedPoint(l,a.o[r]),s=this.getTransformedPoint(l,a.i[0]),o=this.getTransformedPoint(l,a.v[0]),this.checkBounds(i,n,s,o,e))}},HShapeElement.prototype.checkBounds=function(t,e,r,i,n){this.getBoundsOfCurve(t,e,r,i);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,r,i){for(var n,s,o,a,l,h,c,p=[[t[0],i[0]],[t[1],i[1]]],f=0;f<2;++f)s=6*t[f]-12*e[f]+6*r[f],n=-3*t[f]+9*e[f]-9*r[f]+3*i[f],o=3*e[f]-3*t[f],s|=0,o|=0,(n|=0)===0&&s===0||(n===0?(a=-o/s)>0&&a<1&&p[f].push(this.calculateF(a,t,e,r,i,f)):(l=s*s-4*o*n)>=0&&((h=(-s+bmSqrt(l))/(2*n))>0&&h<1&&p[f].push(this.calculateF(h,t,e,r,i,f)),(c=(-s-bmSqrt(l))/(2*n))>0&&c<1&&p[f].push(this.calculateF(c,t,e,r,i,f))));this.shapeBoundingBox.left=bmMin.apply(null,p[0]),this.shapeBoundingBox.top=bmMin.apply(null,p[1]),this.shapeBoundingBox.right=bmMax.apply(null,p[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,p[1])},HShapeElement.prototype.calculateF=function(t,e,r,i,n,s){return bmPow(1-t,3)*e[s]+3*bmPow(1-t,2)*t*r[s]+3*(1-t)*bmPow(t,2)*i[s]+bmPow(t,3)*n[s]},HShapeElement.prototype.calculateBoundingBox=function(t,e){var r,i=t.length;for(r=0;r<i;r+=1)t[r]&&t[r].sh?this.calculateShapeBoundingBox(t[r],e):t[r]&&t[r].it?this.calculateBoundingBox(t[r].it,e):t[r]&&t[r].style&&t[r].w&&this.expandStrokeBoundingBox(t[r].w,e)},HShapeElement.prototype.expandStrokeBoundingBox=function(t,e){var r=0;if(t.keyframes){for(var i=0;i<t.keyframes.length;i+=1){var n=t.keyframes[i].s;n>r&&(r=n)}r*=t.mult}else r=t.v*t.mult;e.x-=r,e.xMax+=r,e.y-=r,e.yMax+=r},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 r=!1;if(this.currentBBox.w!==t.width&&(this.currentBBox.w=t.width,this.shapeCont.setAttribute("width",t.width),r=!0),this.currentBBox.h!==t.height&&(this.currentBBox.h=t.height,this.shapeCont.setAttribute("height",t.height),r=!0),r||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 i=this.shapeCont.style,n="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";i.transform=n,i.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,r=t.fc?this.buildColor(t.fc):"rgba(0,0,0,0)";e.fill=r,e.color=r,t.sc&&(e.stroke=this.buildColor(t.sc),e.strokeWidth=t.sw+"px");var i,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 o=t.fWeight,a=t.fStyle;e.fontStyle=a,e.fontWeight=o}var l,h,c,p=t.l;n=p.length;var f,u=this.mHelper,m="",g=0;for(i=0;i<n;i+=1){if(this.globalData.fontManager.chars?(this.textPaths[g]?l=this.textPaths[g]:((l=createNS("path")).setAttribute("stroke-linecap",lineCapEnum[1]),l.setAttribute("stroke-linejoin",lineJoinEnum[2]),l.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[g]?c=(h=this.textSpans[g]).children[0]:((h=createTag("div")).style.lineHeight=0,(c=createNS("svg")).appendChild(l),styleDiv(h)))):this.isMasked?l=this.textPaths[g]?this.textPaths[g]:createNS("text"):this.textSpans[g]?(h=this.textSpans[g],l=this.textPaths[g]):(styleDiv(h=createTag("span")),styleDiv(l=createTag("span")),h.appendChild(l)),this.globalData.fontManager.chars){var d,y=this.globalData.fontManager.getCharData(t.finalText[i],s.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily);if(d=y?y.data:null,u.reset(),d&&d.shapes&&d.shapes.length&&(f=d.shapes[0].it,u.scale(t.finalSize/100,t.finalSize/100),m=this.createPathShape(u,f),l.setAttribute("d",m)),this.isMasked)this.innerElem.appendChild(l);else{if(this.innerElem.appendChild(h),d&&d.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 b=c.style,_="translate("+(v.x-1)+"px,"+(v.y-1)+"px)";b.transform=_,b.webkitTransform=_,p[i].yOffset=v.y-1}else c.setAttribute("width",1),c.setAttribute("height",1);h.appendChild(c)}}else if(l.textContent=p[i].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 x=l.style,M="translate3d(0,"+-t.finalSize/1.2+"px,0)";x.transform=M,x.webkitTransform=M}this.isMasked?this.textSpans[g]=l:this.textSpans[g]=h,this.textSpans[g].style.display="block",this.textPaths[g]=l,g+=1}for(;g<this.textSpans.length;)this.textSpans[g].style.display="none",g+=1},HTextElement.prototype.renderInnerContent=function(){var t;if(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 r,i,n,s,o,a=0,l=this.textAnimator.renderedLetters,h=this.textProperty.currentData.l;for(i=h.length,r=0;r<i;r+=1)h[r].n?a+=1:(s=this.textSpans[r],o=this.textPaths[r],n=l[a],a+=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&&o.setAttribute("stroke-width",n.sw),n.sc&&n._mdf.sc&&o.setAttribute("stroke",n.sc),n.fc&&n._mdf.fc&&(o.setAttribute("fill",n.fc),o.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 p="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";t.transform=p,t.webkitTransform=p}}}},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var t,e,r,i,n=this.comp.threeDElements.length;for(t=0;t<n;t+=1)if((e=this.comp.threeDElements[t]).type==="3d"){r=e.perspectiveElem.style,i=e.container.style;var s=this.pe.v+"px",o="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";r.perspective=s,r.webkitPerspective=s,i.transformOrigin="0px 0px 0px",i.mozTransformOrigin="0px 0px 0px",i.webkitTransformOrigin="0px 0px 0px",r.transform=o,r.webkitTransform=o}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var t,e,r=this._isFirstFrame;if(this.hierarchy)for(e=this.hierarchy.length,t=0;t<e;t+=1)r=this.hierarchy[t].finalTransform.mProp._mdf||r;if(r||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 i=this.hierarchy[t].finalTransform.mProp;this.mat.translate(-i.p.v[0],-i.p.v[1],i.p.v[2]),this.mat.rotateX(-i.or.v[0]).rotateY(-i.or.v[1]).rotateZ(i.or.v[2]),this.mat.rotateX(-i.rx.v).rotateY(-i.ry.v).rotateZ(i.rz.v),this.mat.scale(1/i.s.v[0],1/i.s.v[1],1/i.s.v[2]),this.mat.translate(i.a.v[0],i.a.v[1],i.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)),o=[n[0]/s,n[1]/s,n[2]/s],a=Math.sqrt(o[2]*o[2]+o[0]*o[0]),l=Math.atan2(o[1],a),h=Math.atan2(o[0],-o[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 p,f,u;for(e=this.comp.threeDElements.length,t=0;t<e;t+=1)if((p=this.comp.threeDElements[t]).type==="3d"){if(c){var m=this.mat.toCSS();(u=p.container.style).transform=m,u.webkitTransform=m}this.pe._mdf&&((f=p.perspectiveElem.style).perspective=this.pe.v+"px",f.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null},extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var t=this.globalData.getAssetsPath(this.assetData),e=new Image;this.data.hasMask?(this.imageElem=createNS("image"),this.imageElem.setAttribute("width",this.assetData.w+"px"),this.imageElem.setAttribute("height",this.assetData.h+"px"),this.imageElem.setAttributeNS("http://www.w3.org/1999/xlink","href",t),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(e),e.crossOrigin="anonymous",e.src=t,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)},extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},HybridRendererBase.prototype.appendElementInPos=function(t,e){var r=t.getBaseElement();if(r){var i=this.layers[e];if(i.ddd&&this.supports3d)this.addTo3dContainer(r,e);else if(this.threeDElements)this.addTo3dContainer(r,e);else{for(var n,s,o=0;o<e;)this.elements[o]&&this.elements[o]!==!0&&this.elements[o].getBaseElement&&(s=this.elements[o],n=(this.layers[o].ddd?this.getThreeDContainerByPos(o):s.getBaseElement())||n),o+=1;n?i.ddd&&this.supports3d||this.layerElement.insertBefore(r,n):i.ddd&&this.supports3d||this.layerElement.appendChild(r)}}},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,r=this.threeDElements.length;e<r;){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 r,i,n=createTag("div");styleDiv(n);var s=createTag("div");if(styleDiv(s),e==="3d"){(r=n.style).width=this.globalData.compSize.w+"px",r.height=this.globalData.compSize.h+"px",r.webkitTransformOrigin="50% 50%",r.mozTransformOrigin="50% 50%",r.transformOrigin="50% 50%";var o="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(i=s.style).transform=o,i.webkitTransform=o}n.appendChild(s);var a={container:s,perspectiveElem:n,startPos:t,endPos:t,type:e};return this.threeDElements.push(a),a},HybridRendererBase.prototype.build3dContainers=function(){var t,e,r=this.layers.length,i="";for(t=0;t<r;t+=1)this.layers[t].ddd&&this.layers[t].ty!==3?(i!=="3d"&&(i="3d",e=this.createThreeDContainer(t,"3d")),e.endPos=Math.max(e.endPos,t)):(i!=="2d"&&(i="2d",e=this.createThreeDContainer(t,"2d")),e.endPos=Math.max(e.endPos,t));for(t=(r=this.threeDElements.length)-1;t>=0;t-=1)this.resizerElem.appendChild(this.threeDElements[t].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(t,e){for(var r=0,i=this.threeDElements.length;r<i;){if(e<=this.threeDElements[r].endPos){for(var n,s=this.threeDElements[r].startPos;s<e;)this.elements[s]&&this.elements[s].getBaseElement&&(n=this.elements[s].getBaseElement()),s+=1;n?this.threeDElements[r].container.insertBefore(t,n):this.threeDElements[r].container.appendChild(t);break}r+=1}},HybridRendererBase.prototype.configAnimation=function(t){var e=createTag("div"),r=this.animationItem.wrapper,i=e.style;i.width=t.w+"px",i.height=t.h+"px",this.resizerElem=e,styleDiv(e),i.transformStyle="flat",i.mozTransformStyle="flat",i.webkitTransformStyle="flat",this.renderConfig.className&&e.setAttribute("class",this.renderConfig.className),r.appendChild(e),i.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].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var t,e,r,i,n=this.animationItem.wrapper.offsetWidth,s=this.animationItem.wrapper.offsetHeight,o=n/s;this.globalData.compSize.w/this.globalData.compSize.h>o?(t=n/this.globalData.compSize.w,e=n/this.globalData.compSize.w,r=0,i=(s-this.globalData.compSize.h*(n/this.globalData.compSize.w))/2):(t=s/this.globalData.compSize.h,e=s/this.globalData.compSize.h,r=(n-this.globalData.compSize.w*(s/this.globalData.compSize.h))/2,i=0);var a=this.resizerElem.style;a.webkitTransform="matrix3d("+t+",0,0,0,0,"+e+",0,0,0,0,1,0,"+r+","+i+",0,1)",a.transform=a.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,r=this.globalData.compSize.h,i=this.threeDElements.length;for(t=0;t<i;t+=1){var n=this.threeDElements[t].perspectiveElem.style;n.webkitPerspective=Math.sqrt(Math.pow(e,2)+Math.pow(r,2))+"px",n.perspective=n.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(t){var e,r=t.length,i=createTag("div");for(e=0;e<r;e+=1)if(t[e].xt){var n=this.createComp(t[e],i,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 r,i=0;i<e;)this.elements[i]&&this.elements[i].getBaseElement&&(r=this.elements[i].getBaseElement()),i+=1;r?this.layerElement.insertBefore(t,r):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(r){for(var i=0,n=t.layers.length;i<n;){if(t.layers[i].nm===r||t.layers[i].ind===r)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},Expressions=function(){var t={};return t.initExpressions=function(e){var r=0,i=[];e.renderer.compInterface=CompExpressionInterface(e.renderer),e.renderer.globalData.projectInterface.registerComposition(e.renderer),e.renderer.globalData.pushExpression=function(){r+=1},e.renderer.globalData.popExpression=function(){(r-=1)===0&&function(){var n,s=i.length;for(n=0;n<s;n+=1)i[n].release();i.length=0}()},e.renderer.globalData.registerExpressionProperty=function(n){i.indexOf(n)===-1&&i.push(n)}},t}(),MaskManagerInterface=function(){function t(e,r){this._mask=e,this._data=r}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 r,i=createSizedArray(e.viewData.length),n=e.viewData.length;for(r=0;r<n;r+=1)i[r]=new t(e.viewData[r],e.masksProperties[r]);return function(s){for(r=0;r<n;){if(e.masksProperties[r].nm===s)return i[r];r+=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 r(n,s,o){Object.defineProperty(n,"velocity",{get:function(){return s.getVelocityAtTime(s.comp.currentFrame)}}),n.numKeys=s.keyframes?s.keyframes.length:0,n.key=function(a){if(!n.numKeys)return 0;var l="";l="s"in s.keyframes[a-1]?s.keyframes[a-1].s:"e"in s.keyframes[a-2]?s.keyframes[a-2].e:s.keyframes[a-2].s;var h=o==="unidimensional"?new Number(l):Object.assign({},l);return h.time=s.keyframes[a-1].t/s.elem.comp.globalData.frameRate,h.value=o==="unidimensional"?l[0]:l,h},n.valueAtTime=s.getValueAtTime,n.speedAtTime=s.getSpeedAtTime,n.velocityAtTime=s.getVelocityAtTime,n.propertyGroup=s.propertyGroup}function i(){return t}return function(n){return n?n.propType==="unidimensional"?function(s){s&&"pv"in s||(s=t);var o=1/s.mult,a=s.pv*o,l=new Number(a);return l.value=a,r(l,s,"unidimensional"),function(){return s.k&&s.getValue(),a=s.v*o,l.value!==a&&((l=new Number(a)).value=a,r(l,s,"unidimensional")),l}}(n):function(s){s&&"pv"in s||(s=e);var o=1/s.mult,a=s.data&&s.data.l||s.pv.length,l=createTypedArray("float32",a),h=createTypedArray("float32",a);return l.value=h,r(l,s,"multidimensional"),function(){s.k&&s.getValue();for(var c=0;c<a;c+=1)h[c]=s.v[c]*o,l[c]=h[c];return l}}(n):i}}(),TransformExpressionInterface=function(t){function e(o){switch(o){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 r,i,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):(r=ExpressionPropertyInterface(t.px),i=ExpressionPropertyInterface(t.py),t.pz&&(n=ExpressionPropertyInterface(t.pz))),Object.defineProperty(e,"position",{get:function(){return t.p?s():[r(),i(),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(h){var c=new Matrix;return h!==void 0?this._elem.finalTransform.mProp.getValueAtTime(h).clone(c):this._elem.finalTransform.mProp.applyToMatrix(c),c}function e(h,c){var p=this.getMatrix(c);return p.props[12]=0,p.props[13]=0,p.props[14]=0,this.applyPoint(p,h)}function r(h,c){var p=this.getMatrix(c);return this.applyPoint(p,h)}function i(h,c){var p=this.getMatrix(c);return p.props[12]=0,p.props[13]=0,p.props[14]=0,this.invertPoint(p,h)}function n(h,c){var p=this.getMatrix(c);return this.invertPoint(p,h)}function s(h,c){if(this._elem.hierarchy&&this._elem.hierarchy.length){var p,f=this._elem.hierarchy.length;for(p=0;p<f;p+=1)this._elem.hierarchy[p].finalTransform.mProp.applyToMatrix(h)}return h.applyToPointArray(c[0],c[1],c[2]||0)}function o(h,c){if(this._elem.hierarchy&&this._elem.hierarchy.length){var p,f=this._elem.hierarchy.length;for(p=0;p<f;p+=1)this._elem.hierarchy[p].finalTransform.mProp.applyToMatrix(h)}return h.inversePoint(c)}function a(h){var c=new Matrix;if(c.reset(),this._elem.finalTransform.mProp.applyToMatrix(c),this._elem.hierarchy&&this._elem.hierarchy.length){var p,f=this._elem.hierarchy.length;for(p=0;p<f;p+=1)this._elem.hierarchy[p].finalTransform.mProp.applyToMatrix(c);return c.inversePoint(h)}return c.inversePoint(h)}function l(){return[1,1,1,1]}return function(h){var c;function p(u){switch(u){case"ADBE Root Vectors Group":case"Contents":case 2:return p.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 p.effect;case"ADBE Text Properties":return p.textInterface;default:return null}}p.getMatrix=t,p.invertPoint=o,p.applyPoint=s,p.toWorld=r,p.toWorldVec=e,p.fromWorld=n,p.fromWorldVec=i,p.toComp=r,p.fromComp=a,p.sampleImage=l,p.sourceRectAtTime=h.sourceRectAtTime.bind(h),p._elem=h;var f=getDescriptor(c=TransformExpressionInterface(h.finalTransform.mProp),"anchorPoint");return Object.defineProperties(p,{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:f,anchor_point:f,transform:{get:function(){return c}},active:{get:function(){return h.isInRange}}}),p.startTime=h.data.st,p.index=h.data.ind,p.source=h.data.refId,p.height=h.data.ty===0?h.data.h:100,p.width=h.data.ty===0?h.data.w:100,p.inPoint=h.data.ip/h.comp.globalData.frameRate,p.outPoint=h.data.op/h.comp.globalData.frameRate,p._name=h.data.nm,p.registerMaskInterface=function(u){p.mask=new MaskManagerInterface(u,h)},p.registerEffectsInterface=function(u){p.effect=u},p}}(),propertyGroupFactory=function(t,e){return function(r){return(r=r===void 0?1:r)<=0?t:e(r-1)}},PropertyInterface=function(t,e){var r={_name:t};return function(i){return(i=i===void 0?1:i)<=0?r:e(i-1)}},EffectsExpressionInterface=function(){function t(r,i,n,s){function o(p){for(var f=r.ef,u=0,m=f.length;u<m;){if(p===f[u].nm||p===f[u].mn||p===f[u].ix)return f[u].ty===5?h[u]:h[u]();u+=1}throw new Error}var a,l=propertyGroupFactory(o,n),h=[],c=r.ef.length;for(a=0;a<c;a+=1)r.ef[a].ty===5?h.push(t(r.ef[a],i.effectElements[a],i.effectElements[a].propertyGroup,s)):h.push(e(i.effectElements[a],r.ef[a].ty,s,l));return r.mn==="ADBE Color Control"&&Object.defineProperty(o,"color",{get:function(){return h[0]()}}),Object.defineProperties(o,{numProperties:{get:function(){return r.np}},_name:{value:r.nm},propertyGroup:{value:l}}),o.enabled=r.en!==0,o.active=o.enabled,o}function e(r,i,n,s){var o=ExpressionPropertyInterface(r.p);return r.p.setGroupProperty&&r.p.setGroupProperty(PropertyInterface("",s)),function(){return i===10?n.comp.compInterface(r.p.v):o()}}return{createEffectsInterface:function(r,i){if(r.effectsManager){var n,s=[],o=r.data.ef,a=r.effectsManager.effectElements.length;for(n=0;n<a;n+=1)s.push(t(o[n],r.effectsManager.effectElements[n],i,r));var l=r.data.ef||[],h=function(c){for(n=0,a=l.length;n<a;){if(c===l[n].nm||c===l[n].mn||c===l[n].ix)return s[n];n+=1}return null};return Object.defineProperty(h,"numProperties",{get:function(){return l.length}}),h}return null}}}(),ShapePathInterface=function(t,e,r){var i=e.sh;function n(o){return o==="Shape"||o==="shape"||o==="Path"||o==="path"||o==="ADBE Vector Shape"||o===2?n.path:null}var s=propertyGroupFactory(n,r);return i.setGroupProperty(PropertyInterface("Path",s)),Object.defineProperties(n,{path:{get:function(){return i.k&&i.getValue(),i}},shape:{get:function(){return i.k&&i.getValue(),i}},_name:{value:t.nm},ix:{value:t.ix},propertyIndex:{value:t.ix},mn:{value:t.mn},propertyGroup:{value:r}}),n},ShapeExpressionInterface=function(){function t(u,m,g){var d,y=[],v=u?u.length:0;for(d=0;d<v;d+=1)u[d].ty==="gr"?y.push(e(u[d],m[d],g)):u[d].ty==="fl"?y.push(r(u[d],m[d],g)):u[d].ty==="st"?y.push(s(u[d],m[d],g)):u[d].ty==="tm"?y.push(o(u[d],m[d],g)):u[d].ty==="tr"||(u[d].ty==="el"?y.push(l(u[d],m[d],g)):u[d].ty==="sr"?y.push(h(u[d],m[d],g)):u[d].ty==="sh"?y.push(ShapePathInterface(u[d],m[d],g)):u[d].ty==="rc"?y.push(c(u[d],m[d],g)):u[d].ty==="rd"?y.push(p(u[d],m[d],g)):u[d].ty==="rp"?y.push(f(u[d],m[d],g)):u[d].ty==="gf"?y.push(i(u[d],m[d],g)):y.push(n(u[d],m[d])));return y}function e(u,m,g){var d=function(b){switch(b){case"ADBE Vectors Group":case"Contents":case 2:return d.content;default:return d.transform}};d.propertyGroup=propertyGroupFactory(d,g);var y=function(b,_,x){var M,S=function(D){for(var E=0,T=M.length;E<T;){if(M[E]._name===D||M[E].mn===D||M[E].propertyIndex===D||M[E].ix===D||M[E].ind===D)return M[E];E+=1}return typeof D=="number"?M[D-1]:null};S.propertyGroup=propertyGroupFactory(S,x),M=t(b.it,_.it,S.propertyGroup),S.numProperties=M.length;var w=a(b.it[b.it.length-1],_.it[_.it.length-1],S.propertyGroup);return S.transform=w,S.propertyIndex=b.cix,S._name=b.nm,S}(u,m,d.propertyGroup),v=a(u.it[u.it.length-1],m.it[m.it.length-1],d.propertyGroup);return d.content=y,d.transform=v,Object.defineProperty(d,"_name",{get:function(){return u.nm}}),d.numProperties=u.np,d.propertyIndex=u.ix,d.nm=u.nm,d.mn=u.mn,d}function r(u,m,g){function d(y){return y==="Color"||y==="color"?d.color:y==="Opacity"||y==="opacity"?d.opacity:null}return Object.defineProperties(d,{color:{get:ExpressionPropertyInterface(m.c)},opacity:{get:ExpressionPropertyInterface(m.o)},_name:{value:u.nm},mn:{value:u.mn}}),m.c.setGroupProperty(PropertyInterface("Color",g)),m.o.setGroupProperty(PropertyInterface("Opacity",g)),d}function i(u,m,g){function d(y){return y==="Start Point"||y==="start point"?d.startPoint:y==="End Point"||y==="end point"?d.endPoint:y==="Opacity"||y==="opacity"?d.opacity:null}return Object.defineProperties(d,{startPoint:{get:ExpressionPropertyInterface(m.s)},endPoint:{get:ExpressionPropertyInterface(m.e)},opacity:{get:ExpressionPropertyInterface(m.o)},type:{get:function(){return"a"}},_name:{value:u.nm},mn:{value:u.mn}}),m.s.setGroupProperty(PropertyInterface("Start Point",g)),m.e.setGroupProperty(PropertyInterface("End Point",g)),m.o.setGroupProperty(PropertyInterface("Opacity",g)),d}function n(){return function(){return null}}function s(u,m,g){var d,y=propertyGroupFactory(M,g),v=propertyGroupFactory(x,y);function b(S){Object.defineProperty(x,u.d[S].nm,{get:ExpressionPropertyInterface(m.d.dataProps[S].p)})}var _=u.d?u.d.length:0,x={};for(d=0;d<_;d+=1)b(d),m.d.dataProps[d].p.setGroupProperty(v);function M(S){return S==="Color"||S==="color"?M.color:S==="Opacity"||S==="opacity"?M.opacity:S==="Stroke Width"||S==="stroke width"?M.strokeWidth:null}return Object.defineProperties(M,{color:{get:ExpressionPropertyInterface(m.c)},opacity:{get:ExpressionPropertyInterface(m.o)},strokeWidth:{get:ExpressionPropertyInterface(m.w)},dash:{get:function(){return x}},_name:{value:u.nm},mn:{value:u.mn}}),m.c.setGroupProperty(PropertyInterface("Color",y)),m.o.setGroupProperty(PropertyInterface("Opacity",y)),m.w.setGroupProperty(PropertyInterface("Stroke Width",y)),M}function o(u,m,g){function d(v){return v===u.e.ix||v==="End"||v==="end"?d.end:v===u.s.ix?d.start:v===u.o.ix?d.offset:null}var y=propertyGroupFactory(d,g);return d.propertyIndex=u.ix,m.s.setGroupProperty(PropertyInterface("Start",y)),m.e.setGroupProperty(PropertyInterface("End",y)),m.o.setGroupProperty(PropertyInterface("Offset",y)),d.propertyIndex=u.ix,d.propertyGroup=g,Object.defineProperties(d,{start:{get:ExpressionPropertyInterface(m.s)},end:{get:ExpressionPropertyInterface(m.e)},offset:{get:ExpressionPropertyInterface(m.o)},_name:{value:u.nm}}),d.mn=u.mn,d}function a(u,m,g){function d(v){return u.a.ix===v||v==="Anchor Point"?d.anchorPoint:u.o.ix===v||v==="Opacity"?d.opacity:u.p.ix===v||v==="Position"?d.position:u.r.ix===v||v==="Rotation"||v==="ADBE Vector Rotation"?d.rotation:u.s.ix===v||v==="Scale"?d.scale:u.sk&&u.sk.ix===v||v==="Skew"?d.skew:u.sa&&u.sa.ix===v||v==="Skew Axis"?d.skewAxis:null}var y=propertyGroupFactory(d,g);return m.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",y)),m.transform.mProps.p.setGroupProperty(PropertyInterface("Position",y)),m.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",y)),m.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",y)),m.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",y)),m.transform.mProps.sk&&(m.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",y)),m.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",y))),m.transform.op.setGroupProperty(PropertyInterface("Opacity",y)),Object.defineProperties(d,{opacity:{get:ExpressionPropertyInterface(m.transform.mProps.o)},position:{get:ExpressionPropertyInterface(m.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(m.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(m.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(m.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(m.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(m.transform.mProps.sa)},_name:{value:u.nm}}),d.ty="tr",d.mn=u.mn,d.propertyGroup=g,d}function l(u,m,g){function d(b){return u.p.ix===b?d.position:u.s.ix===b?d.size:null}var y=propertyGroupFactory(d,g);d.propertyIndex=u.ix;var v=m.sh.ty==="tm"?m.sh.prop:m.sh;return v.s.setGroupProperty(PropertyInterface("Size",y)),v.p.setGroupProperty(PropertyInterface("Position",y)),Object.defineProperties(d,{size:{get:ExpressionPropertyInterface(v.s)},position:{get:ExpressionPropertyInterface(v.p)},_name:{value:u.nm}}),d.mn=u.mn,d}function h(u,m,g){function d(b){return u.p.ix===b?d.position:u.r.ix===b?d.rotation:u.pt.ix===b?d.points:u.or.ix===b||b==="ADBE Vector Star Outer Radius"?d.outerRadius:u.os.ix===b?d.outerRoundness:!u.ir||u.ir.ix!==b&&b!=="ADBE Vector Star Inner Radius"?u.is&&u.is.ix===b?d.innerRoundness:null:d.innerRadius}var y=propertyGroupFactory(d,g),v=m.sh.ty==="tm"?m.sh.prop:m.sh;return d.propertyIndex=u.ix,v.or.setGroupProperty(PropertyInterface("Outer Radius",y)),v.os.setGroupProperty(PropertyInterface("Outer Roundness",y)),v.pt.setGroupProperty(PropertyInterface("Points",y)),v.p.setGroupProperty(PropertyInterface("Position",y)),v.r.setGroupProperty(PropertyInterface("Rotation",y)),u.ir&&(v.ir.setGroupProperty(PropertyInterface("Inner Radius",y)),v.is.setGroupProperty(PropertyInterface("Inner Roundness",y))),Object.defineProperties(d,{position:{get:ExpressionPropertyInterface(v.p)},rotation:{get:ExpressionPropertyInterface(v.r)},points:{get:ExpressionPropertyInterface(v.pt)},outerRadius:{get:ExpressionPropertyInterface(v.or)},outerRoundness:{get:ExpressionPropertyInterface(v.os)},innerRadius:{get:ExpressionPropertyInterface(v.ir)},innerRoundness:{get:ExpressionPropertyInterface(v.is)},_name:{value:u.nm}}),d.mn=u.mn,d}function c(u,m,g){function d(b){return u.p.ix===b?d.position:u.r.ix===b?d.roundness:u.s.ix===b||b==="Size"||b==="ADBE Vector Rect Size"?d.size:null}var y=propertyGroupFactory(d,g),v=m.sh.ty==="tm"?m.sh.prop:m.sh;return d.propertyIndex=u.ix,v.p.setGroupProperty(PropertyInterface("Position",y)),v.s.setGroupProperty(PropertyInterface("Size",y)),v.r.setGroupProperty(PropertyInterface("Rotation",y)),Object.defineProperties(d,{position:{get:ExpressionPropertyInterface(v.p)},roundness:{get:ExpressionPropertyInterface(v.r)},size:{get:ExpressionPropertyInterface(v.s)},_name:{value:u.nm}}),d.mn=u.mn,d}function p(u,m,g){function d(b){return u.r.ix===b||b==="Round Corners 1"?d.radius:null}var y=propertyGroupFactory(d,g),v=m;return d.propertyIndex=u.ix,v.rd.setGroupProperty(PropertyInterface("Radius",y)),Object.defineProperties(d,{radius:{get:ExpressionPropertyInterface(v.rd)},_name:{value:u.nm}}),d.mn=u.mn,d}function f(u,m,g){function d(b){return u.c.ix===b||b==="Copies"?d.copies:u.o.ix===b||b==="Offset"?d.offset:null}var y=propertyGroupFactory(d,g),v=m;return d.propertyIndex=u.ix,v.c.setGroupProperty(PropertyInterface("Copies",y)),v.o.setGroupProperty(PropertyInterface("Offset",y)),Object.defineProperties(d,{copies:{get:ExpressionPropertyInterface(v.c)},offset:{get:ExpressionPropertyInterface(v.o)},_name:{value:u.nm}}),d.mn=u.mn,d}return function(u,m,g){var d;function y(v){if(typeof v=="number")return(v=v===void 0?1:v)===0?g:d[v-1];for(var b=0,_=d.length;b<_;){if(d[b]._name===v)return d[b];b+=1}return null}return y.propertyGroup=propertyGroupFactory(y,function(){return g}),d=t(u,m,y.propertyGroup),y.numProperties=d.length,y._name="Contents",y}}(),TextExpressionInterface=function(t){var e;function r(i){switch(i){case"ADBE Text Document":return r.sourceText;default:return null}}return Object.defineProperty(r,"sourceText",{get:function(){t.textProperty.getValue();var i=t.textProperty.currentData.t;return i!==void 0&&(t.textProperty.currentData.t=void 0,(e=new String(i)).value=i||new String(i)),e}}),r};function _typeof$2(t){return(_typeof$2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}var FootageInterface=(dataInterfaceFactory=function(t){function e(r){return r==="Outline"?e.outlineInterface():null}return e._name="Outline",e.outlineInterface=function(r){var i="",n=r.getFootageData();function s(o){if(n[o])return i=o,_typeof$2(n=n[o])==="object"?s:n;var a=o.indexOf(i);if(a!==-1){var l=parseInt(o.substr(a+i.length),10);return _typeof$2(n=n[l])==="object"?s:n}return""}return function(){return i="",n=r.getFootageData(),s}}(t),e},function(t){function e(r){return r==="Data"?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}function _typeof$1(t){return(_typeof$1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function seedRandom(t,e){var r=this,i=e.pow(256,6),n=e.pow(2,52),s=2*n;function o(c){var p,f=c.length,u=this,m=0,g=u.i=u.j=0,d=u.S=[];for(f||(c=[f++]);m<256;)d[m]=m++;for(m=0;m<256;m++)d[m]=d[g=255&g+c[m%f]+(p=d[m])],d[g]=p;u.g=function(y){for(var v,b=0,_=u.i,x=u.j,M=u.S;y--;)v=M[_=255&_+1],b=256*b+M[255&(M[_]=M[x=255&x+v])+(M[x]=v)];return u.i=_,u.j=x,b}}function a(c,p){return p.i=c.i,p.j=c.j,p.S=c.S.slice(),p}function l(c,p){for(var f,u=c+"",m=0;m<u.length;)p[255&m]=255&(f^=19*p[255&m])+u.charCodeAt(m++);return h(p)}function h(c){return String.fromCharCode.apply(0,c)}e.seedrandom=function(c,p,f){var u=[],m=l(function y(v,b){var _,x=[],M=_typeof$1(v);if(b&&M=="object")for(_ in v)try{x.push(y(v[_],b-1))}catch{}return x.length?x:M=="string"?v:v+"\0"}((p=p===!0?{entropy:!0}:p||{}).entropy?[c,h(t)]:c===null?function(){try{var y=new Uint8Array(256);return(r.crypto||r.msCrypto).getRandomValues(y),h(y)}catch{var v=r.navigator,b=v&&v.plugins;return[+new Date,r,b,r.screen,h(t)]}}():c,3),u),g=new o(u),d=function(){for(var y=g.g(6),v=i,b=0;y<n;)y=256*(y+b),v*=256,b=g.g(1);for(;y>=s;)y/=2,v/=2,b>>>=1;return(y+b)/v};return d.int32=function(){return 0|g.g(4)},d.quick=function(){return g.g(4)/4294967296},d.double=d,l(h(g.S),t),(p.pass||f||function(y,v,b,_){return _&&(_.S&&a(_,g),y.state=function(){return a(g,{})}),b?(e.random=y,v):y})(d,m,"global"in p?p.global:this==e,p.state)},l(e.random(),t)}function initialize$2(t){seedRandom([],t)}var propTypes={SHAPE:"shape"};function _typeof(t){return(_typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null;function $bm_isInstanceOfArray(t){return t.constructor===Array||t.constructor===Float32Array}function isNumerable(t,e){return t==="number"||t==="boolean"||t==="string"||e instanceof Number}function $bm_neg(t){var e=_typeof(t);if(e==="number"||e==="boolean"||t instanceof Number)return-t;if($bm_isInstanceOfArray(t)){var r,i=t.length,n=[];for(r=0;r<i;r+=1)n[r]=-t[r];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 r=_typeof(t),i=_typeof(e);if(r==="string"||i==="string"||isNumerable(r,t)&&isNumerable(i,e))return t+e;if($bm_isInstanceOfArray(t)&&isNumerable(i,e))return(t=t.slice(0))[0]+=e,t;if(isNumerable(r,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,o=e.length,a=[];n<s||n<o;)(typeof t[n]=="number"||t[n]instanceof Number)&&(typeof e[n]=="number"||e[n]instanceof Number)?a[n]=t[n]+e[n]:a[n]=e[n]===void 0?t[n]:t[n]||e[n],n+=1;return a}return 0}var add=sum;function sub(t,e){var r=_typeof(t),i=_typeof(e);if(isNumerable(r,t)&&isNumerable(i,e))return r==="string"&&(t=parseInt(t,10)),i==="string"&&(e=parseInt(e,10)),t-e;if($bm_isInstanceOfArray(t)&&isNumerable(i,e))return(t=t.slice(0))[0]-=e,t;if(isNumerable(r,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,o=e.length,a=[];n<s||n<o;)(typeof t[n]=="number"||t[n]instanceof Number)&&(typeof e[n]=="number"||e[n]instanceof Number)?a[n]=t[n]-e[n]:a[n]=e[n]===void 0?t[n]:t[n]||e[n],n+=1;return a}return 0}function mul(t,e){var r,i,n,s=_typeof(t),o=_typeof(e);if(isNumerable(s,t)&&isNumerable(o,e))return t*e;if($bm_isInstanceOfArray(t)&&isNumerable(o,e)){for(n=t.length,r=createTypedArray("float32",n),i=0;i<n;i+=1)r[i]=t[i]*e;return r}if(isNumerable(s,t)&&$bm_isInstanceOfArray(e)){for(n=e.length,r=createTypedArray("float32",n),i=0;i<n;i+=1)r[i]=t*e[i];return r}return 0}function div(t,e){var r,i,n,s=_typeof(t),o=_typeof(e);if(isNumerable(s,t)&&isNumerable(o,e))return t/e;if($bm_isInstanceOfArray(t)&&isNumerable(o,e)){for(n=t.length,r=createTypedArray("float32",n),i=0;i<n;i+=1)r[i]=t[i]/e;return r}if(isNumerable(s,t)&&$bm_isInstanceOfArray(e)){for(n=e.length,r=createTypedArray("float32",n),i=0;i<n;i+=1)r[i]=t/e[i];return r}return 0}function mod(t,e){return typeof t=="string"&&(t=parseInt(t,10)),typeof e=="string"&&(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,r){if(e>r){var i=r;r=e,e=i}return Math.min(Math.max(t,e),r)}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(typeof t=="number"||t instanceof Number)return e=e||0,Math.abs(t-e);var r;e||(e=helperLengthArray);var i=Math.min(t.length,e.length),n=0;for(r=0;r<i;r+=1)n+=Math.pow(e[r]-t[r],2);return Math.sqrt(n)}function normalize(t){return div(t,length(t))}function rgbToHsl(t){var e,r,i=t[0],n=t[1],s=t[2],o=Math.max(i,n,s),a=Math.min(i,n,s),l=(o+a)/2;if(o===a)e=0,r=0;else{var h=o-a;switch(r=l>.5?h/(2-o-a):h/(o+a),o){case i:e=(n-s)/h+(n<s?6:0);break;case n:e=(s-i)/h+2;break;case s:e=(i-n)/h+4}e/=6}return[e,r,l,t[3]]}function hue2rgb(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function hslToRgb(t){var e,r,i,n=t[0],s=t[1],o=t[2];if(s===0)e=o,i=o,r=o;else{var a=o<.5?o*(1+s):o+s-o*s,l=2*o-a;e=hue2rgb(l,a,n+1/3),r=hue2rgb(l,a,n),i=hue2rgb(l,a,n-1/3)}return[e,r,i,t[3]]}function linear(t,e,r,i,n){if(i!==void 0&&n!==void 0||(i=e,n=r,e=0,r=1),r<e){var s=r;r=e,e=s}if(t<=e)return i;if(t>=r)return n;var o,a=r===e?0:(t-e)/(r-e);if(!i.length)return i+(n-i)*a;var l=i.length,h=createTypedArray("float32",l);for(o=0;o<l;o+=1)h[o]=i[o]+(n[o]-i[o])*a;return h}function random(t,e){if(e===void 0&&(t===void 0?(t=0,e=1):(e=t,t=void 0)),e.length){var r,i=e.length;t||(t=createTypedArray("float32",i));var n=createTypedArray("float32",i),s=BMMath.random();for(r=0;r<i;r+=1)n[r]=t[r]+s*(e[r]-t[r]);return n}return t===void 0&&(t=0),t+BMMath.random()*(e-t)}function createPath(t,e,r,i){var n,s=t.length,o=shapePool.newElement();o.setPathData(!!i,s);var a,l,h=[0,0];for(n=0;n<s;n+=1)a=e&&e[n]?e[n]:h,l=r&&r[n]?r[n]:h,o.setTripleAt(t[n][0],t[n][1],l[0]+t[n][0],l[1]+t[n][1],a[0]+t[n][0],a[1]+t[n][1],n,!0);return o}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=val.indexOf("random")!==-1,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||this.data.hd!==!0,wiggle=function(t,e){var r,i,n=this.pv.length?this.pv.length:1,s=createTypedArray("float32",n),o=Math.floor(5*time);for(r=0,i=0;r<o;){for(i=0;i<n;i+=1)s[i]+=-e+2*e*BMMath.random();r+=1}var a=5*time,l=a-Math.floor(a),h=createTypedArray("float32",n);if(n>1){for(i=0;i<n;i+=1)h[i]=this.pv[i]+s[i]+(-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 r=[e[0]-t[0],e[1]-t[1],e[2]-t[2]],i=Math.atan2(r[0],Math.sqrt(r[1]*r[1]+r[2]*r[2]))/degToRads;return[-Math.atan2(r[1],r[2])/degToRads,i,0]}function easeOut(t,e,r,i,n){return applyEase(easeOutBez,t,e,r,i,n)}function easeIn(t,e,r,i,n){return applyEase(easeInBez,t,e,r,i,n)}function ease(t,e,r,i,n){return applyEase(easeInOutBez,t,e,r,i,n)}function applyEase(t,e,r,i,n,s){n===void 0?(n=r,s=i):e=(e-r)/(i-r),e>1?e=1:e<0&&(e=0);var o=t(e);if($bm_isInstanceOfArray(n)){var a,l=n.length,h=createTypedArray("float32",l);for(a=0;a<l;a+=1)h[a]=(s[a]-n[a])*o+n[a];return h}return(s-n)*o+n}function nearestKey(t){var e,r,i,n=data.k.length;if(data.k.length&&typeof data.k[0]!="number")if(r=-1,(t*=elem.comp.globalData.frameRate)<data.k[0].t)r=1,i=data.k[0].t;else{for(e=0;e<n-1;e+=1){if(t===data.k[e].t){r=e+1,i=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?(r=e+2,i=data.k[e+1].t):(r=e+1,i=data.k[e].t);break}}r===-1&&(r=e+1,i=data.k[e].t)}else r=0,i=0;var s={};return s.index=r,s.time=i/elem.comp.globalData.frameRate,s}function key(t){var e,r,i;if(!data.k.length||typeof data.k[0]=="number")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(i=n.length,r=0;r<i;r+=1)e[r]=n[r],e.value[r]=n[r];return e}function framesToTime(t,e){return e||(e=elem.comp.globalData.frameRate),t/e}function timeToFrames(t,e){return t||t===0||(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 typeof value=="string"?e===void 0?value.substring(t):value.substring(t,e):""}function substr(t,e){return typeof value=="string"?e===void 0?value.substr(t):value.substr(t,e):""}function posterizeTime(t){time=t===0?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&&this.propType!=="textSelector"?value:(this.propType==="textSelector"&&(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)),elemType!==4||content||(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),(hasParent=!(!elem.hierarchy||!elem.hierarchy.length))&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath],ob}(),expressionHelpers={searchExpressions:function(t,e,r){e.x&&(r.k=!0,r.x=!0,r.initiateExpression=ExpressionManager.initiateExpression,r.effectsSequence.push(r.initiateExpression(t,e,r).bind(r)))},getSpeedAtTime:function(t){var e=this.getValueAtTime(t),r=this.getValueAtTime(t+-.01),i=0;if(e.length){var n;for(n=0;n<e.length;n+=1)i+=Math.pow(r[n]-e[n],2);i=100*Math.sqrt(i)}else i=0;return i},getVelocityAtTime:function(t){if(this.vel!==void 0)return this.vel;var e,r,i=this.getValueAtTime(t),n=this.getValueAtTime(t+-.001);if(i.length)for(e=createTypedArray("float32",i.length),r=0;r<i.length;r+=1)e[r]=(n[r]-i[r])/-.001;else e=(n-i)/-.001;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(p,f,u){if(!this.k||!this.keyframes)return this.pv;p=p?p.toLowerCase():"";var m,g,d,y,v,b=this.comp.renderedFrame,_=this.keyframes,x=_[_.length-1].t;if(b<=x)return this.pv;if(u?g=x-(m=f?Math.abs(x-this.elem.comp.globalData.frameRate*f):Math.max(0,x-this.elem.data.ip)):((!f||f>_.length-1)&&(f=_.length-1),m=x-(g=_[_.length-1-f].t)),p==="pingpong"){if(Math.floor((b-g)/m)%2!=0)return this.getValueAtTime((m-(b-g)%m+g)/this.comp.globalData.frameRate,0)}else{if(p==="offset"){var M=this.getValueAtTime(g/this.comp.globalData.frameRate,0),S=this.getValueAtTime(x/this.comp.globalData.frameRate,0),w=this.getValueAtTime(((b-g)%m+g)/this.comp.globalData.frameRate,0),D=Math.floor((b-g)/m);if(this.pv.length){for(y=(v=new Array(M.length)).length,d=0;d<y;d+=1)v[d]=(S[d]-M[d])*D+w[d];return v}return(S-M)*D+w}if(p==="continue"){var E=this.getValueAtTime(x/this.comp.globalData.frameRate,0),T=this.getValueAtTime((x-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(y=(v=new Array(E.length)).length,d=0;d<y;d+=1)v[d]=E[d]+(E[d]-T[d])*((b-x)/this.comp.globalData.frameRate)/5e-4;return v}return E+(b-x)/.001*(E-T)}}return this.getValueAtTime(((b-g)%m+g)/this.comp.globalData.frameRate,0)}function e(p,f,u){if(!this.k)return this.pv;p=p?p.toLowerCase():"";var m,g,d,y,v,b=this.comp.renderedFrame,_=this.keyframes,x=_[0].t;if(b>=x)return this.pv;if(u?g=x+(m=f?Math.abs(this.elem.comp.globalData.frameRate*f):Math.max(0,this.elem.data.op-x)):((!f||f>_.length-1)&&(f=_.length-1),m=(g=_[f].t)-x),p==="pingpong"){if(Math.floor((x-b)/m)%2==0)return this.getValueAtTime(((x-b)%m+x)/this.comp.globalData.frameRate,0)}else{if(p==="offset"){var M=this.getValueAtTime(x/this.comp.globalData.frameRate,0),S=this.getValueAtTime(g/this.comp.globalData.frameRate,0),w=this.getValueAtTime((m-(x-b)%m+x)/this.comp.globalData.frameRate,0),D=Math.floor((x-b)/m)+1;if(this.pv.length){for(y=(v=new Array(M.length)).length,d=0;d<y;d+=1)v[d]=w[d]-(S[d]-M[d])*D;return v}return w-(S-M)*D}if(p==="continue"){var E=this.getValueAtTime(x/this.comp.globalData.frameRate,0),T=this.getValueAtTime((x+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(y=(v=new Array(E.length)).length,d=0;d<y;d+=1)v[d]=E[d]+(E[d]-T[d])*(x-b)/.001;return v}return E+(E-T)*(x-b)/.001}}return this.getValueAtTime((m-((x-b)%m+x))/this.comp.globalData.frameRate,0)}function r(p,f){if(!this.k)return this.pv;if(p=.5*(p||.4),(f=Math.floor(f||5))<=1)return this.pv;var u,m,g=this.comp.renderedFrame/this.comp.globalData.frameRate,d=g-p,y=f>1?(g+p-d)/(f-1):1,v=0,b=0;for(u=this.pv.length?createTypedArray("float32",this.pv.length):0;v<f;){if(m=this.getValueAtTime(d+v*y),this.pv.length)for(b=0;b<this.pv.length;b+=1)u[b]+=m[b];else u+=m;v+=1}if(this.pv.length)for(b=0;b<this.pv.length;b+=1)u[b]/=f;else u/=f;return u}function i(p){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var f=this._transformCachingAtTime.v;if(f.cloneFromProps(this.pre.props),this.appliedTransformations<1){var u=this.a.getValueAtTime(p);f.translate(-u[0]*this.a.mult,-u[1]*this.a.mult,u[2]*this.a.mult)}if(this.appliedTransformations<2){var m=this.s.getValueAtTime(p);f.scale(m[0]*this.s.mult,m[1]*this.s.mult,m[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var g=this.sk.getValueAtTime(p),d=this.sa.getValueAtTime(p);f.skewFromAxis(-g*this.sk.mult,d*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var y=this.r.getValueAtTime(p);f.rotate(-y*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var v=this.rz.getValueAtTime(p),b=this.ry.getValueAtTime(p),_=this.rx.getValueAtTime(p),x=this.or.getValueAtTime(p);f.rotateZ(-v*this.rz.mult).rotateY(b*this.ry.mult).rotateX(_*this.rx.mult).rotateZ(-x[2]*this.or.mult).rotateY(x[1]*this.or.mult).rotateX(x[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var M=this.px.getValueAtTime(p),S=this.py.getValueAtTime(p);if(this.data.p.z){var w=this.pz.getValueAtTime(p);f.translate(M*this.px.mult,S*this.py.mult,-w*this.pz.mult)}else f.translate(M*this.px.mult,S*this.py.mult,0)}else{var D=this.p.getValueAtTime(p);f.translate(D[0]*this.p.mult,D[1]*this.p.mult,-D[2]*this.p.mult)}return f}function n(){return this.v.clone(new Matrix)}var s=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(p,f,u){var m=s(p,f,u);return m.dynamicProperties.length?m.getValueAtTime=i.bind(m):m.getValueAtTime=n.bind(m),m.setGroupProperty=expressionHelpers.setGroupProperty,m};var o=PropertyFactory.getProp;PropertyFactory.getProp=function(p,f,u,m,g){var d=o(p,f,u,m,g);d.kf?d.getValueAtTime=expressionHelpers.getValueAtTime.bind(d):d.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(d),d.setGroupProperty=expressionHelpers.setGroupProperty,d.loopOut=t,d.loopIn=e,d.smooth=r,d.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(d),d.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(d),d.numKeys=f.a===1?f.k.length:0,d.propertyIndex=f.ix;var y=0;return u!==0&&(y=createTypedArray("float32",f.a===1?f.k[0].s.length:f.k.length)),d._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:y},expressionHelpers.searchExpressions(p,f,d),d.k&&g.addDynamicProperty(d),d};var a=ShapePropertyFactory.getConstructorFunction(),l=ShapePropertyFactory.getKeyframedConstructorFunction();function h(){}h.prototype={vertices:function(p,f){this.k&&this.getValue();var u,m=this.v;f!==void 0&&(m=this.getValueAtTime(f,0));var g=m._length,d=m[p],y=m.v,v=createSizedArray(g);for(u=0;u<g;u+=1)v[u]=p==="i"||p==="o"?[d[u][0]-y[u][0],d[u][1]-y[u][1]]:[d[u][0],d[u][1]];return v},points:function(p){return this.vertices("v",p)},inTangents:function(p){return this.vertices("i",p)},outTangents:function(p){return this.vertices("o",p)},isClosed:function(){return this.v.c},pointOnPath:function(p,f){var u=this.v;f!==void 0&&(u=this.getValueAtTime(f,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(u));for(var m,g=this._segmentsLength,d=g.lengths,y=g.totalLength*p,v=0,b=d.length,_=0;v<b;){if(_+d[v].addedLength>y){var x=v,M=u.c&&v===b-1?0:v+1,S=(y-_)/d[v].addedLength;m=bez.getPointInSegment(u.v[x],u.v[M],u.o[x],u.i[M],S,d[v]);break}_+=d[v].addedLength,v+=1}return m||(m=u.c?[u.v[0][0],u.v[0][1]]:[u.v[u._length-1][0],u.v[u._length-1][1]]),m},vectorOnPath:function(p,f,u){p==1?p=this.v.c:p==0&&(p=.999);var m=this.pointOnPath(p,f),g=this.pointOnPath(p+.001,f),d=g[0]-m[0],y=g[1]-m[1],v=Math.sqrt(Math.pow(d,2)+Math.pow(y,2));return v===0?[0,0]:u==="tangent"?[d/v,y/v]:[-y/v,d/v]},tangentOnPath:function(p,f){return this.vectorOnPath(p,f,"tangent")},normalOnPath:function(p,f){return this.vectorOnPath(p,f,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([h],a),extendPrototype([h],l),l.prototype.getValueAtTime=function(p){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),p*=this.elem.globalData.frameRate,(p-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<p?this._caching.lastIndex:0,this._cachingAtTime.lastTime=p,this.interpolateShape(p,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},l.prototype.initiateExpression=ExpressionManager.initiateExpression;var c=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(p,f,u,m,g){var d=c(p,f,u,m,g);return d.propertyIndex=f.ix,d.lock=!1,u===3?expressionHelpers.searchExpressions(p,f.pt,d):u===4&&expressionHelpers.searchExpressions(p,f.ks,d),d.k&&p.addDynamicProperty(d),d}}function initialize$1(){addPropertyDecorator()}function addDecorator(){TextProperty.prototype.getExpressionValue=function(t,e){var r=this.calculateExpression(e);if(t.t!==r){var i={};return this.copyData(i,t),i.t=r.toString(),i.__complete=!1,i}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(){}function SVGTintFilter(t,e,r,i,n){this.filterManager=e;var s=createNS("feColorMatrix");s.setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","linearRGB"),s.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"),s.setAttribute("result",i+"_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",i+"_tint_2"),t.appendChild(s),this.matrixFilter=s;var o=this.createMergeNode(i,[n,i+"_tint_1",i+"_tint_2"]);t.appendChild(o)}function SVGFillFilter(t,e,r,i){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",i),t.appendChild(n),this.matrixFilter=n}function SVGStrokeEffect(t,e,r){this.initialized=!1,this.filterManager=e,this.elem=r,this.paths=[]}function SVGTritoneFilter(t,e,r,i){this.filterManager=e;var n=createNS("feColorMatrix");n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","linearRGB"),n.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),t.appendChild(n);var s=createNS("feComponentTransfer");s.setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("result",i),this.matrixFilter=s;var o=createNS("feFuncR");o.setAttribute("type","table"),s.appendChild(o),this.feFuncR=o;var a=createNS("feFuncG");a.setAttribute("type","table"),s.appendChild(a),this.feFuncG=a;var l=createNS("feFuncB");l.setAttribute("type","table"),s.appendChild(l),this.feFuncB=l,t.appendChild(s)}function SVGProLevelsFilter(t,e,r,i){this.filterManager=e;var n=this.filterManager.effectElements,s=createNS("feComponentTransfer");(n[10].p.k||n[10].p.v!==0||n[11].p.k||n[11].p.v!==1||n[12].p.k||n[12].p.v!==1||n[13].p.k||n[13].p.v!==0||n[14].p.k||n[14].p.v!==1)&&(this.feFuncR=this.createFeFunc("feFuncR",s)),(n[17].p.k||n[17].p.v!==0||n[18].p.k||n[18].p.v!==1||n[19].p.k||n[19].p.v!==1||n[20].p.k||n[20].p.v!==0||n[21].p.k||n[21].p.v!==1)&&(this.feFuncG=this.createFeFunc("feFuncG",s)),(n[24].p.k||n[24].p.v!==0||n[25].p.k||n[25].p.v!==1||n[26].p.k||n[26].p.v!==1||n[27].p.k||n[27].p.v!==0||n[28].p.k||n[28].p.v!==1)&&(this.feFuncB=this.createFeFunc("feFuncB",s)),(n[31].p.k||n[31].p.v!==0||n[32].p.k||n[32].p.v!==1||n[33].p.k||n[33].p.v!==1||n[34].p.k||n[34].p.v!==0||n[35].p.k||n[35].p.v!==1)&&(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||n[3].p.v!==0||n[4].p.k||n[4].p.v!==1||n[5].p.k||n[5].p.v!==1||n[6].p.k||n[6].p.v!==0||n[7].p.k||n[7].p.v!==1)&&((s=createNS("feComponentTransfer")).setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("result",i),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,r,i,n){var s=e.container.globalData.renderConfig.filterSize,o=e.data.fs||s;t.setAttribute("x",o.x||s.x),t.setAttribute("y",o.y||s.y),t.setAttribute("width",o.width||s.width),t.setAttribute("height",o.height||s.height),this.filterManager=e;var a=createNS("feGaussianBlur");a.setAttribute("in","SourceAlpha"),a.setAttribute("result",i+"_drop_shadow_1"),a.setAttribute("stdDeviation","0"),this.feGaussianBlur=a,t.appendChild(a);var l=createNS("feOffset");l.setAttribute("dx","25"),l.setAttribute("dy","0"),l.setAttribute("in",i+"_drop_shadow_1"),l.setAttribute("result",i+"_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",i+"_drop_shadow_3"),this.feFlood=h,t.appendChild(h);var c=createNS("feComposite");c.setAttribute("in",i+"_drop_shadow_3"),c.setAttribute("in2",i+"_drop_shadow_2"),c.setAttribute("operator","in"),c.setAttribute("result",i+"_drop_shadow_4"),t.appendChild(c);var p=this.createMergeNode(i,[i+"_drop_shadow_4",n]);t.appendChild(p)}SVGComposableEffect.prototype={createMergeNode:function(t,e){var r,i,n=createNS("feMerge");for(n.setAttribute("result",t),i=0;i<e.length;i+=1)(r=createNS("feMergeNode")).setAttribute("in",e[i]),n.appendChild(r),n.appendChild(r);return n}},extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v/100;this.matrixFilter.setAttribute("values",r[0]-e[0]+" 0 0 0 "+e[0]+" "+(r[1]-e[1])+" 0 0 0 "+e[1]+" "+(r[2]-e[2])+" 0 0 0 "+e[2]+" 0 0 0 "+i+" 0")}},SVGFillFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[2].p.v,r=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 "+r+" 0")}},SVGStrokeEffect.prototype.initialize=function(){var t,e,r,i,n=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(this.filterManager.effectElements[1].p.v===1?(i=this.elem.maskManager.masksProperties.length,r=0):i=(r=this.filterManager.effectElements[0].p.v-1)+1,(e=createNS("g")).setAttribute("fill","none"),e.setAttribute("stroke-linecap","round"),e.setAttribute("stroke-dashoffset",1);r<i;r+=1)t=createNS("path"),e.appendChild(t),this.paths.push({p:t,m:r});if(this.filterManager.effectElements[10].p.v===3){var s=createNS("mask"),o=createElementID();s.setAttribute("id",o),s.setAttribute("mask-type","alpha"),s.appendChild(e),this.elem.globalData.defs.appendChild(s);var a=createNS("g");for(a.setAttribute("mask","url("+getLocationHref()+"#"+o+")");n[0];)a.appendChild(n[0]);this.elem.layerElement.appendChild(a),this.masker=s,e.setAttribute("stroke","#fff")}else if(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2){if(this.filterManager.effectElements[10].p.v===2)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 r,i,n=this.paths.length;for(e=0;e<n;e+=1)if(this.paths[e].m!==-1&&(r=this.elem.maskManager.viewData[this.paths[e].m],i=this.paths[e].p,(t||this.filterManager._mdf||r.prop._mdf)&&i.setAttribute("d",r.lastPath),t||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||r.prop._mdf)){var s;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var o=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),a=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),l=i.getTotalLength();s="0 0 0 "+l*o+" ";var h,c=l*(a-o),p=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01,f=Math.floor(c/p);for(h=0;h<f;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;i.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),(this.filterManager.effectElements[10].p.v===1||this.filterManager.effectElements[10].p.v===2)&&(t||this.filterManager.effectElements[3].p._mdf)){var u=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*u[0])+","+bmFloor(255*u[1])+","+bmFloor(255*u[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v,n=i[0]+" "+r[0]+" "+e[0],s=i[1]+" "+r[1]+" "+e[1],o=i[2]+" "+r[2]+" "+e[2];this.feFuncR.setAttribute("tableValues",n),this.feFuncG.setAttribute("tableValues",s),this.feFuncB.setAttribute("tableValues",o)}},SVGProLevelsFilter.prototype.createFeFunc=function(t,e){var r=createNS(t);return r.setAttribute("type","table"),e.appendChild(r),r},SVGProLevelsFilter.prototype.getTableValue=function(t,e,r,i,n){for(var s,o,a=0,l=Math.min(t,e),h=Math.max(t,e),c=Array.call(null,{length:256}),p=0,f=n-i,u=e-t;a<=256;)o=(s=a/256)<=l?u<0?n:i:s>=h?u<0?i:n:i+f*Math.pow((s-t)/u,1/r),c[p]=o,p+=1,a+=256/255;return c.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e,r=this.filterManager.effectElements;this.feFuncRComposed&&(t||r[3].p._mdf||r[4].p._mdf||r[5].p._mdf||r[6].p._mdf||r[7].p._mdf)&&(e=this.getTableValue(r[3].p.v,r[4].p.v,r[5].p.v,r[6].p.v,r[7].p.v),this.feFuncRComposed.setAttribute("tableValues",e),this.feFuncGComposed.setAttribute("tableValues",e),this.feFuncBComposed.setAttribute("tableValues",e)),this.feFuncR&&(t||r[10].p._mdf||r[11].p._mdf||r[12].p._mdf||r[13].p._mdf||r[14].p._mdf)&&(e=this.getTableValue(r[10].p.v,r[11].p.v,r[12].p.v,r[13].p.v,r[14].p.v),this.feFuncR.setAttribute("tableValues",e)),this.feFuncG&&(t||r[17].p._mdf||r[18].p._mdf||r[19].p._mdf||r[20].p._mdf||r[21].p._mdf)&&(e=this.getTableValue(r[17].p.v,r[18].p.v,r[19].p.v,r[20].p.v,r[21].p.v),this.feFuncG.setAttribute("tableValues",e)),this.feFuncB&&(t||r[24].p._mdf||r[25].p._mdf||r[26].p._mdf||r[27].p._mdf||r[28].p._mdf)&&(e=this.getTableValue(r[24].p.v,r[25].p.v,r[26].p.v,r[27].p.v,r[28].p.v),this.feFuncB.setAttribute("tableValues",e)),this.feFuncA&&(t||r[31].p._mdf||r[32].p._mdf||r[33].p._mdf||r[34].p._mdf||r[35].p._mdf)&&(e=this.getTableValue(r[31].p.v,r[32].p.v,r[33].p.v,r[34].p.v,r[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 r=this.filterManager.effectElements[3].p.v,i=(this.filterManager.effectElements[2].p.v-90)*degToRads,n=r*Math.cos(i),s=r*Math.sin(i);this.feOffset.setAttribute("dx",n),this.feOffset.setAttribute("dy",s)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(t,e,r){this.initialized=!1,this.filterManager=e,this.filterElem=t,this.elem=r,r.matteElement=createNS("g"),r.matteElement.appendChild(r.layerElement),r.matteElement.appendChild(r.transformedElement),r.baseElement=r.matteElement}function SVGGaussianBlurEffect(t,e,r,i){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",i),t.appendChild(n),this.feGaussianBlur=n}return SVGMatte3Effect.prototype.findSymbol=function(t){for(var e=0,r=_svgMatteSymbols.length;e<r;){if(_svgMatteSymbols[e]===t)return _svgMatteSymbols[e];e+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(t,e){var r=t.layerElement.parentNode;if(r){for(var i,n=r.children,s=0,o=n.length;s<o&&n[s]!==t.layerElement;)s+=1;s<=o-2&&(i=n[s+1]);var a=createNS("use");a.setAttribute("href","#"+e),i?r.insertBefore(a,i):r.appendChild(a)}},SVGMatte3Effect.prototype.setElementAsMask=function(t,e){if(!this.findSymbol(e)){var r=createElementID(),i=createNS("mask");i.setAttribute("id",e.layerId),i.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(e);var n=t.globalData.defs;n.appendChild(i);var s=createNS("symbol");s.setAttribute("id",r),this.replaceInParent(e,r),s.appendChild(e.layerElement),n.appendChild(s);var o=createNS("use");o.setAttribute("href","#"+r),i.appendChild(o),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,r=0,i=e.length;r<i;)e[r]&&e[r].data.ind===t&&this.setElementAsMask(this.elem,e[r]),r+=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,r=this.filterManager.effectElements[1].p.v,i=r==3?0:e,n=r==2?0:e;this.feGaussianBlur.setAttribute("stdDeviation",i+" "+n);var s=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",s)}},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(20,SVGTintFilter,!0),registerEffect(21,SVGFillFilter,!0),registerEffect(22,SVGStrokeEffect,!1),registerEffect(23,SVGTritoneFilter,!0),registerEffect(24,SVGProLevelsFilter,!0),registerEffect(25,SVGDropShadowEffect,!0),registerEffect(28,SVGMatte3Effect,!1),registerEffect(29,SVGGaussianBlurEffect,!0),lottie})}),Gc,zm=Pm(Gc||(Gc=Br([`
|
|
239
264
|
* {
|
|
240
265
|
box-sizing: border-box;
|
|
241
266
|
}
|
|
@@ -393,7 +418,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
393
418
|
height: 100%;
|
|
394
419
|
align-items: center;
|
|
395
420
|
}
|
|
396
|
-
`]))),jc={},Vm=function(t,e,r,i,n){var s=new Worker(jc[e]||(jc[e]=URL.createObjectURL(new Blob([t+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return s.onmessage=function(o){var a=o.data,l=a.$e$;if(l){var h=new Error(l[0]);h.code=l[1],h.stack=l[2],n(h,null)}else n(null,a)},s.postMessage(r,i),s},it=Uint8Array,Rt=Uint16Array,Xr=Uint32Array,Kr=new it([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Jr=new it([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Zi=new it([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),kp=function(t,e){for(var r=new Rt(31),i=0;i<31;++i)r[i]=e+=1<<t[i-1];var n=new Xr(r[30]);for(i=1;i<30;++i)for(var s=r[i];s<r[i+1];++s)n[s]=s-r[i]<<5|i;return[r,n]},Pp=kp(Kr,2),$a=Pp[0],Ds=Pp[1];$a[28]=258,Ds[258]=28;for(ua=kp(Jr,0),Ra=ua[0],Is=ua[1],qr=new Rt(32768),at=0;at<32768;++at)Ve=(43690&at)>>>1|(21845&at)<<1,Ve=(52428&Ve)>>>2|(13107&Ve)<<2,Ve=(61680&Ve)>>>4|(3855&Ve)<<4,qr[at]=((65280&Ve)>>>8|(255&Ve)<<8)>>>1;var Ve,ua,Ra,Is,qr,at;for(ie=function(e,r,i){for(var n=e.length,s=0,o=new Rt(r);s<n;++s)e[s]&&++o[e[s]-1];var a,l=new Rt(r);for(s=0;s<r;++s)l[s]=l[s-1]+o[s-1]<<1;if(i){a=new Rt(1<<r);var h=15-r;for(s=0;s<n;++s)if(e[s])for(var c=s<<4|e[s],p=r-e[s],f=l[e[s]-1]++<<p,u=f|(1<<p)-1;f<=u;++f)a[qr[f]>>>h]=c}else for(a=new Rt(n),s=0;s<n;++s)e[s]&&(a[s]=qr[l[e[s]-1]++]>>>15-e[s]);return a},Ae=new it(288),at=0;at<144;++at)Ae[at]=8;var ie,Ae,at;for(at=144;at<256;++at)Ae[at]=9;var at;for(at=256;at<280;++at)Ae[at]=7;var at;for(at=280;at<288;++at)Ae[at]=8;var at;for(br=new it(32),at=0;at<32;++at)br[at]=5;var br,at,Ap=ie(Ae,9,0),Cp=ie(Ae,9,1),Tp=ie(br,5,0),Mp=ie(br,5,1),bs=function(t){for(var e=t[0],r=1;r<t.length;++r)t[r]>e&&(e=t[r]);return e},ue=function(t,e,r){var i=e/8|0;return(t[i]|t[i+1]<<8)>>(7&e)&r},_s=function(t,e){var r=e/8|0;return(t[r]|t[r+1]<<8|t[r+2]<<16)>>(7&e)},Yi=function(t){return(t+7)/8|0},fe=function(t,e,r){(e==null||e<0)&&(e=0),(r==null||r>t.length)&&(r=t.length);var i=new(t.BYTES_PER_ELEMENT==2?Rt:t.BYTES_PER_ELEMENT==4?Xr:it)(r-e);return i.set(t.subarray(e,r)),i},gb={UnexpectedEOF:0,InvalidBlockType:1,InvalidLengthLiteral:2,InvalidDistance:3,StreamFinished:4,NoStreamHandler:5,InvalidHeader:6,NoCallback:7,InvalidUTF8:8,ExtraFieldTooLong:9,InvalidDate:10,FilenameTooLong:11,StreamFinishing:12,InvalidZipData:13,UnknownCompressionMethod:14},Fp=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],W=function(t,e,r){var i=new Error(e||Fp[t]);if(i.code=t,Error.captureStackTrace&&Error.captureStackTrace(i,W),!r)throw i;return i},Xi=function(t,e,r){var i=t.length;if(!i||r&&r.f&&!r.l)return e||new it(0);var n=!e||r,s=!r||r.i;r||(r={}),e||(e=new it(3*i));var o=function(J){var K=e.length;if(J>K){var Z=new it(Math.max(2*K,J));Z.set(e),e=Z}},a=r.f||0,l=r.p||0,h=r.b||0,c=r.l,p=r.d,f=r.m,u=r.n,m=8*i;do{if(!c){a=ue(t,l,1);var g=ue(t,l+1,3);if(l+=3,!g){var d=t[(T=Yi(l)+4)-4]|t[T-3]<<8,y=T+d;if(y>i){s&&W(0);break}n&&o(h+d),e.set(t.subarray(T,y),h),r.b=h+=d,r.p=l=8*y,r.f=a;continue}if(g==1)c=Cp,p=Mp,f=9,u=5;else if(g==2){var v=ue(t,l,31)+257,b=ue(t,l+10,15)+4,_=v+ue(t,l+5,31)+1;l+=14;for(var x=new it(_),M=new it(19),S=0;S<b;++S)M[Zi[S]]=ue(t,l+3*S,7);l+=3*b;var w=bs(M),D=(1<<w)-1,E=ie(M,w,1);for(S=0;S<_;){var T,k=E[ue(t,l,D)];if(l+=15&k,(T=k>>>4)<16)x[S++]=T;else{var A=0,P=0;for(T==16?(P=3+ue(t,l,3),l+=2,A=x[S-1]):T==17?(P=3+ue(t,l,7),l+=3):T==18&&(P=11+ue(t,l,127),l+=7);P--;)x[S++]=A}}var I=x.subarray(0,v),O=x.subarray(v);f=bs(I),u=bs(O),c=ie(I,f,1),p=ie(O,u,1)}else W(1);if(l>m){s&&W(0);break}}n&&o(h+131072);for(var F=(1<<f)-1,C=(1<<u)-1,L=l;;L=l){var R=(A=c[_s(t,l)&F])>>>4;if((l+=15&A)>m){s&&W(0);break}if(A||W(2),R<256)e[h++]=R;else{if(R==256){L=l,c=null;break}var z=R-254;if(R>264){var H=Kr[S=R-257];z=ue(t,l,(1<<H)-1)+$a[S],l+=H}var G=p[_s(t,l)&C],N=G>>>4;if(G||W(3),l+=15&G,O=Ra[N],N>3&&(H=Jr[N],O+=_s(t,l)&(1<<H)-1,l+=H),l>m){s&&W(0);break}n&&o(h+131072);for(var Y=h+z;h<Y;h+=4)e[h]=e[h-O],e[h+1]=e[h+1-O],e[h+2]=e[h+2-O],e[h+3]=e[h+3-O];h=Y}}r.l=c,r.p=L,r.b=h,r.f=a,c&&(a=1,r.m=f,r.d=p,r.n=u)}while(!a);return h==e.length?e:fe(e,0,h)},Pe=function(t,e,r){r<<=7&e;var i=e/8|0;t[i]|=r,t[i+1]|=r>>>8},Vr=function(t,e,r){r<<=7&e;var i=e/8|0;t[i]|=r,t[i+1]|=r>>>8,t[i+2]|=r>>>16},ws=function(t,e){for(var r=[],i=0;i<t.length;++i)t[i]&&r.push({s:i,f:t[i]});var n=r.length,s=r.slice();if(!n)return[He,0];if(n==1){var o=new it(r[0].s+1);return o[r[0].s]=1,[o,1]}r.sort(function(x,M){return x.f-M.f}),r.push({s:-1,f:25001});var a=r[0],l=r[1],h=0,c=1,p=2;for(r[0]={s:-1,f:a.f+l.f,l:a,r:l};c!=n-1;)a=r[r[h].f<r[p].f?h++:p++],l=r[h!=c&&r[h].f<r[p].f?h++:p++],r[c++]={s:-1,f:a.f+l.f,l:a,r:l};var f=s[0].s;for(i=1;i<n;++i)s[i].s>f&&(f=s[i].s);var u=new Rt(f+1),m=Os(r[c-1],u,0);if(m>e){i=0;var g=0,d=m-e,y=1<<d;for(s.sort(function(x,M){return u[M.s]-u[x.s]||x.f-M.f});i<n;++i){var v=s[i].s;if(!(u[v]>e))break;g+=y-(1<<m-u[v]),u[v]=e}for(g>>>=d;g>0;){var b=s[i].s;u[b]<e?g-=1<<e-u[b]++-1:++i}for(;i>=0&&g;--i){var _=s[i].s;u[_]==e&&(--u[_],++g)}m=e}return[new it(u),m]},Os=function(t,e,r){return t.s==-1?Math.max(Os(t.l,e,r+1),Os(t.r,e,r+1)):e[t.s]=r},_a=function(t){for(var e=t.length;e&&!t[--e];);for(var r=new Rt(++e),i=0,n=t[0],s=1,o=function(l){r[i++]=l},a=1;a<=e;++a)if(t[a]==n&&a!=e)++s;else{if(!n&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(n),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(n);s=1,n=t[a]}return[r.subarray(0,i),e]},Br=function(t,e){for(var r=0,i=0;i<e.length;++i)r+=t[i]*e[i];return r},Ls=function(t,e,r){var i=r.length,n=Yi(e+2);t[n]=255&i,t[n+1]=i>>>8,t[n+2]=255^t[n],t[n+3]=255^t[n+1];for(var s=0;s<i;++s)t[n+s+4]=r[s];return 8*(n+4+i)},wa=function(t,e,r,i,n,s,o,a,l,h,c){Pe(e,c++,r),++n[256];for(var p=ws(n,15),f=p[0],u=p[1],m=ws(s,15),g=m[0],d=m[1],y=_a(f),v=y[0],b=y[1],_=_a(g),x=_[0],M=_[1],S=new Rt(19),w=0;w<v.length;++w)S[31&v[w]]++;for(w=0;w<x.length;++w)S[31&x[w]]++;for(var D=ws(S,7),E=D[0],T=D[1],k=19;k>4&&!E[Zi[k-1]];--k);var A,P,I,O,F=h+5<<3,C=Br(n,Ae)+Br(s,br)+o,L=Br(n,f)+Br(s,g)+o+14+3*k+Br(S,E)+(2*S[16]+3*S[17]+7*S[18]);if(F<=C&&F<=L)return Ls(e,c,t.subarray(l,l+h));if(Pe(e,c,1+(L<C)),c+=2,L<C){A=ie(f,u,0),P=f,I=ie(g,d,0),O=g;var R=ie(E,T,0);for(Pe(e,c,b-257),Pe(e,c+5,M-1),Pe(e,c+10,k-4),c+=14,w=0;w<k;++w)Pe(e,c+3*w,E[Zi[w]]);c+=3*k;for(var z=[v,x],H=0;H<2;++H){var G=z[H];for(w=0;w<G.length;++w){var N=31&G[w];Pe(e,c,R[N]),c+=E[N],N>15&&(Pe(e,c,G[w]>>>5&127),c+=G[w]>>>12)}}}else A=Ap,P=Ae,I=Tp,O=br;for(w=0;w<a;++w)if(i[w]>255){N=i[w]>>>18&31,Vr(e,c,A[N+257]),c+=P[N+257],N>7&&(Pe(e,c,i[w]>>>23&31),c+=Kr[N]);var Y=31&i[w];Vr(e,c,I[Y]),c+=O[Y],Y>3&&(Vr(e,c,i[w]>>>5&8191),c+=Jr[Y])}else Vr(e,c,A[i[w]]),c+=P[i[w]];return Vr(e,c,A[256]),c+P[256]},Dp=new Xr([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),He=new it(0),Ip=function(t,e,r,i,n,s){var o=t.length,a=new it(i+o+5*(1+Math.ceil(o/7e3))+n),l=a.subarray(i,a.length-n),h=0;if(!e||o<8)for(var c=0;c<=o;c+=65535){var p=c+65535;p>=o&&(l[h>>3]=s),h=Ls(l,h+1,t.subarray(c,p))}else{for(var f=Dp[e-1],u=f>>>13,m=8191&f,g=(1<<r)-1,d=new Rt(32768),y=new Rt(g+1),v=Math.ceil(r/3),b=2*v,_=function(ut){return(t[ut]^t[ut+1]<<v^t[ut+2]<<b)&g},x=new Xr(25e3),M=new Rt(288),S=new Rt(32),w=0,D=0,E=(c=0,0),T=0,k=0;c<o;++c){var A=_(c),P=32767&c,I=y[A];if(d[P]=I,y[A]=P,T<=c){var O=o-c;if((w>7e3||E>24576)&&O>423){h=wa(t,l,0,x,M,S,D,E,k,c-k,h),E=w=D=0,k=c;for(var F=0;F<286;++F)M[F]=0;for(F=0;F<30;++F)S[F]=0}var C=2,L=0,R=m,z=P-I&32767;if(O>2&&A==_(c-z))for(var H=Math.min(u,O)-1,G=Math.min(32767,c),N=Math.min(258,O);z<=G&&--R&&P!=I;){if(t[c+C]==t[c+C-z]){for(var Y=0;Y<N&&t[c+Y]==t[c+Y-z];++Y);if(Y>C){if(C=Y,L=z,Y>H)break;var J=Math.min(z,Y-2),K=0;for(F=0;F<J;++F){var Z=c-z+F+32768&32767,pt=Z-d[Z]+32768&32767;pt>K&&(K=pt,I=Z)}}}z+=(P=I)-(I=d[P])+32768&32767}if(L){x[E++]=268435456|Ds[C]<<18|Is[L];var et=31&Ds[C],vt=31&Is[L];D+=Kr[et]+Jr[vt],++M[257+et],++S[vt],T=c+C,++w}else x[E++]=t[c],++M[t[c]]}}h=wa(t,l,s,x,M,S,D,E,k,c-k,h),!s&&7&h&&(h=Ls(l,h+1,He))}return fe(a,0,i+Yi(h)+n)},Op=function(){for(var t=new Int32Array(256),e=0;e<256;++e){for(var r=e,i=9;--i;)r=(1&r&&-306674912)^r>>>1;t[e]=r}return t}(),Qr=function(){var t=-1;return{p:function(e){for(var r=t,i=0;i<e.length;++i)r=Op[255&r^e[i]]^r>>>8;t=r},d:function(){return~t}}},Va=function(){var t=1,e=0;return{p:function(r){for(var i=t,n=e,s=0|r.length,o=0;o!=s;){for(var a=Math.min(o+2655,s);o<a;++o)n+=i+=r[o];i=(65535&i)+15*(i>>16),n=(65535&n)+15*(n>>16)}t=i,e=n},d:function(){return(255&(t%=65521))<<24|t>>>8<<16|(255&(e%=65521))<<8|e>>>8}}},wr=function(t,e,r,i,n){return Ip(t,e.level==null?6:e.level,e.mem==null?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):12+e.mem,r,i,!n)},Ki=function(t,e){var r={};for(var i in t)r[i]=t[i];for(var i in e)r[i]=e[i];return r},Gc=function(t,e,r){for(var i=t(),n=t.toString(),s=n.slice(n.indexOf("[")+1,n.lastIndexOf("]")).replace(/\s+/g,"").split(","),o=0;o<i.length;++o){var a=i[o],l=s[o];if(typeof a=="function"){e+=";"+l+"=";var h=a.toString();if(a.prototype)if(h.indexOf("[native code]")!=-1){var c=h.indexOf(" ",8)+1;e+=h.slice(c,h.indexOf("(",c))}else for(var p in e+=h,a.prototype)e+=";"+l+".prototype."+p+"="+a.prototype[p].toString();else e+=h}else r[l]=a}return[e,r]},gs=[],Bm=function(t){var e=[];for(var r in t)t[r].buffer&&e.push((t[r]=new t[r].constructor(t[r])).buffer);return e},Lp=function(t,e,r,i){var n;if(!gs[r]){for(var s="",o={},a=t.length-1,l=0;l<a;++l)s=(n=Gc(t[l],s,o))[0],o=n[1];gs[r]=Gc(t[a],s,o)}var h=Ki({},gs[r][1]);return Vm(gs[r][0]+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+e.toString()+"}",r,h,Bm(h),i)},ti=function(){return[it,Rt,Xr,Kr,Jr,Zi,$a,Ra,Cp,Mp,qr,Fp,ie,bs,ue,_s,Yi,fe,W,Xi,Ji,er,Ba]},ei=function(){return[it,Rt,Xr,Kr,Jr,Zi,Ds,Is,Ap,Ae,Tp,br,qr,Dp,He,ie,Pe,Vr,ws,Os,_a,Br,Ls,wa,Yi,fe,Ip,wr,zs,er]},$p=function(){return[za,Ha,ht,Qr,Op]},Rp=function(){return[Na,zp]},Vp=function(){return[ja,ht,Va]},Bp=function(){return[Np]},er=function(t){return postMessage(t,[t.buffer])},Ba=function(t){return t&&t.size&&new it(t.size)},ri=function(t,e,r,i,n,s){var o=Lp(r,i,n,function(a,l){o.terminate(),s(a,l)});return o.postMessage([t,e],e.consume?[t.buffer]:[]),function(){o.terminate()}},de=function(t){return t.ondata=function(e,r){return postMessage([e,r],[e.buffer])},function(e){return t.push(e.data[0],e.data[1])}},ii=function(t,e,r,i,n){var s,o=Lp(t,i,n,function(a,l){a?(o.terminate(),e.ondata.call(e,a)):(l[1]&&o.terminate(),e.ondata.call(e,a,l[0],l[1]))});o.postMessage(r),e.push=function(a,l){e.ondata||W(5),s&&e.ondata(W(4,0,1),null,!!l),o.postMessage([a,s=l],[a.buffer])},e.terminate=function(){o.terminate()}},Ht=function(t,e){return t[e]|t[e+1]<<8},wt=function(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0},fa=function(t,e){return wt(t,e)+4294967296*wt(t,e+4)},ht=function(t,e,r){for(;r;++e)t[e]=r,r>>>=8},za=function(t,e){var r=e.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=e.level<2?4:e.level==9?2:0,t[9]=3,e.mtime!=0&&ht(t,4,Math.floor(new Date(e.mtime||Date.now())/1e3)),r){t[3]=8;for(var i=0;i<=r.length;++i)t[i+10]=r.charCodeAt(i)}},Na=function(t){t[0]==31&&t[1]==139&&t[2]==8||W(6,"invalid gzip data");var e=t[3],r=10;4&e&&(r+=t[10]|2+(t[11]<<8));for(var i=(e>>3&1)+(e>>4&1);i>0;i-=!t[r++]);return r+(2&e)},zp=function(t){var e=t.length;return(t[e-4]|t[e-3]<<8|t[e-2]<<16|t[e-1]<<24)>>>0},Ha=function(t){return 10+(t.filename&&t.filename.length+1||0)},ja=function(t,e){var r=e.level,i=r==0?0:r<6?1:r==9?3:2;t[0]=120,t[1]=i<<6|(i?32-2*i:1)},Np=function(t){((15&t[0])!=8||t[0]>>>4>7||(t[0]<<8|t[1])%31)&&W(6,"invalid zlib data"),32&t[1]&&W(6,"invalid zlib data: preset dictionaries not supported")};function Ga(t,e){return e||typeof t!="function"||(e=t,t={}),this.ondata=e,t}var je=function(){function t(e,r){r||typeof e!="function"||(r=e,e={}),this.ondata=r,this.o=e||{}}return t.prototype.p=function(e,r){this.ondata(wr(e,this.o,0,0,!r),r)},t.prototype.push=function(e,r){this.ondata||W(5),this.d&&W(4),this.d=r,this.p(e,r||!1)},t}(),zm=function(){return function(t,e){ii([ei,function(){return[de,je]}],this,Ga.call(this,t,e),function(r){var i=new je(r.data);onmessage=de(i)},6)}}();function Nm(t,e,r){return r||(r=e,e={}),typeof r!="function"&&W(7),ri(t,e,[ei],function(i){return er(zs(i.data[0],i.data[1]))},0,r)}function zs(t,e){return wr(t,e||{},0,0)}var ne=function(){function t(e){this.s={},this.p=new it(0),this.ondata=e}return t.prototype.e=function(e){this.ondata||W(5),this.d&&W(4);var r=this.p.length,i=new it(r+e.length);i.set(this.p),i.set(e,r),this.p=i},t.prototype.c=function(e){this.d=this.s.i=e||!1;var r=this.s.b,i=Xi(this.p,this.o,this.s);this.ondata(fe(i,r,this.s.b),this.d),this.o=fe(i,this.s.b-32768),this.s.b=this.o.length,this.p=fe(this.p,this.s.p/8|0),this.s.p&=7},t.prototype.push=function(e,r){this.e(e),this.c(r)},t}(),Hp=function(){return function(t){this.ondata=t,ii([ti,function(){return[de,ne]}],this,0,function(){var e=new ne;onmessage=de(e)},7)}}();function jp(t,e,r){return r||(r=e,e={}),typeof r!="function"&&W(7),ri(t,e,[ti],function(i){return er(Ji(i.data[0],Ba(i.data[1])))},1,r)}function Ji(t,e){return Xi(t,e)}var qc=function(){function t(e,r){this.c=Qr(),this.l=0,this.v=1,je.call(this,e,r)}return t.prototype.push=function(e,r){je.prototype.push.call(this,e,r)},t.prototype.p=function(e,r){this.c.p(e),this.l+=e.length;var i=wr(e,this.o,this.v&&Ha(this.o),r&&8,!r);this.v&&(za(i,this.o),this.v=0),r&&(ht(i,i.length-8,this.c.d()),ht(i,i.length-4,this.l)),this.ondata(i,r)},t}(),yb=function(){return function(t,e){ii([ei,$p,function(){return[de,je,qc]}],this,Ga.call(this,t,e),function(r){var i=new qc(r.data);onmessage=de(i)},8)}}();function vb(t,e,r){return r||(r=e,e={}),typeof r!="function"&&W(7),ri(t,e,[ei,$p,function(){return[Uc]}],function(i){return er(Uc(i.data[0],i.data[1]))},2,r)}function Uc(t,e){e||(e={});var r=Qr(),i=t.length;r.p(t);var n=wr(t,e,Ha(e),8),s=n.length;return za(n,e),ht(n,s-8,r.d()),ht(n,s-4,i),n}var xa=function(){function t(e){this.v=1,ne.call(this,e)}return t.prototype.push=function(e,r){if(ne.prototype.e.call(this,e),this.v){var i=this.p.length>3?Na(this.p):4;if(i>=this.p.length&&!r)return;this.p=this.p.subarray(i),this.v=0}r&&(this.p.length<8&&W(6,"invalid gzip data"),this.p=this.p.subarray(0,-8)),ne.prototype.c.call(this,r)},t}(),Hm=function(){return function(t){this.ondata=t,ii([ti,Rp,function(){return[de,ne,xa]}],this,0,function(){var e=new xa;onmessage=de(e)},9)}}();function jm(t,e,r){return r||(r=e,e={}),typeof r!="function"&&W(7),ri(t,e,[ti,Rp,function(){return[Sa]}],function(i){return er(Sa(i.data[0]))},3,r)}function Sa(t,e){return Xi(t.subarray(Na(t),-8),e||new it(zp(t)))}var Wc=function(){function t(e,r){this.c=Va(),this.v=1,je.call(this,e,r)}return t.prototype.push=function(e,r){je.prototype.push.call(this,e,r)},t.prototype.p=function(e,r){this.c.p(e);var i=wr(e,this.o,this.v&&2,r&&4,!r);this.v&&(ja(i,this.o),this.v=0),r&&ht(i,i.length-4,this.c.d()),this.ondata(i,r)},t}(),bb=function(){return function(t,e){ii([ei,Vp,function(){return[de,je,Wc]}],this,Ga.call(this,t,e),function(r){var i=new Wc(r.data);onmessage=de(i)},10)}}();function _b(t,e,r){return r||(r=e,e={}),typeof r!="function"&&W(7),ri(t,e,[ei,Vp,function(){return[Zc]}],function(i){return er(Zc(i.data[0],i.data[1]))},4,r)}function Zc(t,e){e||(e={});var r=Va();r.p(t);var i=wr(t,e,2,4);return ja(i,e),ht(i,i.length-4,r.d()),i}var Ea=function(){function t(e){this.v=1,ne.call(this,e)}return t.prototype.push=function(e,r){if(ne.prototype.e.call(this,e),this.v){if(this.p.length<2&&!r)return;this.p=this.p.subarray(2),this.v=0}r&&(this.p.length<4&&W(6,"invalid zlib data"),this.p=this.p.subarray(0,-4)),ne.prototype.c.call(this,r)},t}(),Gm=function(){return function(t){this.ondata=t,ii([ti,Bp,function(){return[de,ne,Ea]}],this,0,function(){var e=new Ea;onmessage=de(e)},11)}}();function qm(t,e,r){return r||(r=e,e={}),typeof r!="function"&&W(7),ri(t,e,[ti,Bp,function(){return[ka]}],function(i){return er(ka(i.data[0],Ba(i.data[1])))},5,r)}function ka(t,e){return Xi((Np(t),t.subarray(2,-4)),e)}var Um=function(){function t(e){this.G=xa,this.I=ne,this.Z=Ea,this.ondata=e}return t.prototype.push=function(e,r){if(this.ondata||W(5),this.s)this.s.push(e,r);else{if(this.p&&this.p.length){var i=new it(this.p.length+e.length);i.set(this.p),i.set(e,this.p.length)}else this.p=e;if(this.p.length>2){var n=this,s=function(){n.ondata.apply(n,arguments)};this.s=this.p[0]==31&&this.p[1]==139&&this.p[2]==8?new this.G(s):(15&this.p[0])!=8||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(s):new this.Z(s),this.s.push(this.p,r),this.p=null}}},t}(),wb=function(){function t(e){this.G=Hm,this.I=Hp,this.Z=Gm,this.ondata=e}return t.prototype.push=function(e,r){Um.prototype.push.call(this,e,r)},t}();function xb(t,e,r){return r||(r=e,e={}),typeof r!="function"&&W(7),t[0]==31&&t[1]==139&&t[2]==8?jm(t,e,r):(15&t[0])!=8||t[0]>>4>7||(t[0]<<8|t[1])%31?jp(t,e,r):qm(t,e,r)}function Sb(t,e){return t[0]==31&&t[1]==139&&t[2]==8?Sa(t,e):(15&t[0])!=8||t[0]>>4>7||(t[0]<<8|t[1])%31?Ji(t,e):ka(t,e)}var qa=function(t,e,r,i){for(var n in t){var s=t[n],o=e+n,a=i;Array.isArray(s)&&(a=Ki(i,s[1]),s=s[0]),s instanceof it?r[o]=[s,a]:(r[o+="/"]=[new it(0),a],qa(s,o,r,i))}},Yc=typeof TextEncoder<"u"&&new TextEncoder,Pa=typeof TextDecoder<"u"&&new TextDecoder,Gp=0;try{Pa.decode(He,{stream:!0}),Gp=1}catch(t){}var qp=function(t){for(var e="",r=0;;){var i=t[r++],n=(i>127)+(i>223)+(i>239);if(r+n>t.length)return[e,fe(t,r-1)];n?n==3?(i=((15&i)<<18|(63&t[r++])<<12|(63&t[r++])<<6|63&t[r++])-65536,e+=String.fromCharCode(55296|i>>10,56320|1023&i)):e+=1&n?String.fromCharCode((31&i)<<6|63&t[r++]):String.fromCharCode((15&i)<<12|(63&t[r++])<<6|63&t[r++]):e+=String.fromCharCode(i)}},Eb=function(){function t(e){this.ondata=e,Gp?this.t=new TextDecoder:this.p=He}return t.prototype.push=function(e,r){if(this.ondata||W(5),r=!!r,this.t)return this.ondata(this.t.decode(e,{stream:!0}),r),void(r&&(this.t.decode().length&&W(8),this.t=null));this.p||W(4);var i=new it(this.p.length+e.length);i.set(this.p),i.set(e,this.p.length);var n=qp(i),s=n[0],o=n[1];r?(o.length&&W(8),this.p=null):this.p=o,this.ondata(s,r)},t}(),kb=function(){function t(e){this.ondata=e}return t.prototype.push=function(e,r){this.ondata||W(5),this.d&&W(4),this.ondata(_r(e),this.d=r||!1)},t}();function _r(t,e){if(e){for(var r=new it(t.length),i=0;i<t.length;++i)r[i]=t.charCodeAt(i);return r}if(Yc)return Yc.encode(t);var n=t.length,s=new it(t.length+(t.length>>1)),o=0,a=function(c){s[o++]=c};for(i=0;i<n;++i){if(o+5>s.length){var l=new it(o+8+(n-i<<1));l.set(s),s=l}var h=t.charCodeAt(i);h<128||e?a(h):h<2048?(a(192|h>>6),a(128|63&h)):h>55295&&h<57344?(a(240|(h=65536+(1047552&h)|1023&t.charCodeAt(++i))>>18),a(128|h>>12&63),a(128|h>>6&63),a(128|63&h)):(a(224|h>>12),a(128|h>>6&63),a(128|63&h))}return fe(s,0,o)}function ji(t,e){if(e){for(var r="",i=0;i<t.length;i+=16384)r+=String.fromCharCode.apply(null,t.subarray(i,i+16384));return r}if(Pa)return Pa.decode(t);var n=qp(t),s=n[0];return n[1].length&&W(8),s}var Up=function(t){return t==1?3:t<6?2:t==9?1:0},Wp=function(t,e){return e+30+Ht(t,e+26)+Ht(t,e+28)},Zp=function(t,e,r){var i=Ht(t,e+28),n=ji(t.subarray(e+46,e+46+i),!(2048&Ht(t,e+8))),s=e+46+i,o=wt(t,e+20),a=r&&o==4294967295?Yp(t,s):[o,wt(t,e+24),wt(t,e+42)],l=a[0],h=a[1],c=a[2];return[Ht(t,e+10),l,h,n,s+Ht(t,e+30)+Ht(t,e+32),c]},Yp=function(t,e){for(;Ht(t,e)!=1;e+=4+Ht(t,e+2));return[fa(t,e+12),fa(t,e+4),fa(t,e+20)]},tr=function(t){var e=0;if(t)for(var r in t){var i=t[r].length;i>65535&&W(9),e+=i+4}return e},Ur=function(t,e,r,i,n,s,o,a){var l=i.length,h=r.extra,c=a&&a.length,p=tr(h);ht(t,e,o!=null?33639248:67324752),e+=4,o!=null&&(t[e++]=20,t[e++]=r.os),t[e]=20,e+=2,t[e++]=r.flag<<1|(s<0&&8),t[e++]=n&&8,t[e++]=255&r.compression,t[e++]=r.compression>>8;var f=new Date(r.mtime==null?Date.now():r.mtime),u=f.getFullYear()-1980;if((u<0||u>119)&&W(10),ht(t,e,u<<25|f.getMonth()+1<<21|f.getDate()<<16|f.getHours()<<11|f.getMinutes()<<5|f.getSeconds()>>>1),e+=4,s!=-1&&(ht(t,e,r.crc),ht(t,e+4,s<0?-s-2:s),ht(t,e+8,r.size)),ht(t,e+12,l),ht(t,e+14,p),e+=16,o!=null&&(ht(t,e,c),ht(t,e+6,r.attrs),ht(t,e+10,o),e+=14),t.set(i,e),e+=l,p)for(var m in h){var g=h[m],d=g.length;ht(t,e,+m),ht(t,e+2,d),t.set(g,e+4),e+=4+d}return c&&(t.set(a,e),e+=c),e},Ua=function(t,e,r,i,n){ht(t,e,101010256),ht(t,e+8,r),ht(t,e+10,r),ht(t,e+12,i),ht(t,e+16,n)},$s=function(){function t(e){this.filename=e,this.c=Qr(),this.size=0,this.compression=0}return t.prototype.process=function(e,r){this.ondata(null,e,r)},t.prototype.push=function(e,r){this.ondata||W(5),this.c.p(e),this.size+=e.length,r&&(this.crc=this.c.d()),this.process(e,r||!1)},t}(),Pb=function(){function t(e,r){var i=this;r||(r={}),$s.call(this,e),this.d=new je(r,function(n,s){i.ondata(null,n,s)}),this.compression=8,this.flag=Up(r.level)}return t.prototype.process=function(e,r){try{this.d.push(e,r)}catch(i){this.ondata(i,null,r)}},t.prototype.push=function(e,r){$s.prototype.push.call(this,e,r)},t}(),Ab=function(){function t(e,r){var i=this;r||(r={}),$s.call(this,e),this.d=new zm(r,function(n,s,o){i.ondata(n,s,o)}),this.compression=8,this.flag=Up(r.level),this.terminate=this.d.terminate}return t.prototype.process=function(e,r){this.d.push(e,r)},t.prototype.push=function(e,r){$s.prototype.push.call(this,e,r)},t}(),Cb=function(){function t(e){this.ondata=e,this.u=[],this.d=1}return t.prototype.add=function(e){var r=this;if(this.ondata||W(5),2&this.d)this.ondata(W(4+8*(1&this.d),0,1),null,!1);else{var i=_r(e.filename),n=i.length,s=e.comment,o=s&&_r(s),a=n!=e.filename.length||o&&s.length!=o.length,l=n+tr(e.extra)+30;n>65535&&this.ondata(W(11,0,1),null,!1);var h=new it(l);Ur(h,0,e,i,a,-1);var c=[h],p=function(){for(var d=0,y=c;d<y.length;d++){var v=y[d];r.ondata(null,v,!1)}c=[]},f=this.d;this.d=0;var u=this.u.length,m=Ki(e,{f:i,u:a,o,t:function(){e.terminate&&e.terminate()},r:function(){if(p(),f){var d=r.u[u+1];d?d.r():r.d=1}f=1}}),g=0;e.ondata=function(d,y,v){if(d)r.ondata(d,y,v),r.terminate();else if(g+=y.length,c.push(y),v){var b=new it(16);ht(b,0,134695760),ht(b,4,e.crc),ht(b,8,g),ht(b,12,e.size),c.push(b),m.c=g,m.b=l+g+16,m.crc=e.crc,m.size=e.size,f&&m.r(),f=1}else f&&p()},this.u.push(m)}},t.prototype.end=function(){var e=this;2&this.d?this.ondata(W(4+8*(1&this.d),0,1),null,!0):(this.d?this.e():this.u.push({r:function(){1&e.d&&(e.u.splice(-1,1),e.e())},t:function(){}}),this.d=3)},t.prototype.e=function(){for(var e=0,r=0,i=0,n=0,s=this.u;n<s.length;n++)i+=46+(h=s[n]).f.length+tr(h.extra)+(h.o?h.o.length:0);for(var o=new it(i+22),a=0,l=this.u;a<l.length;a++){var h=l[a];Ur(o,e,h,h.f,h.u,-h.c-2,r,h.o),e+=46+h.f.length+tr(h.extra)+(h.o?h.o.length:0),r+=h.b}Ua(o,e,this.u.length,i,r),this.ondata(null,o,!0),this.d=2},t.prototype.terminate=function(){for(var e=0,r=this.u;e<r.length;e++)r[e].t();this.d=2},t}();function Tb(t,e,r){r||(r=e,e={}),typeof r!="function"&&W(7);var i={};qa(t,"",i,e);var n=Object.keys(i),s=n.length,o=0,a=0,l=s,h=new Array(s),c=[],p=function(){for(var d=0;d<c.length;++d)c[d]()},f=function(d,y){Rs(function(){r(d,y)})};Rs(function(){f=r});var u=function(){var d=new it(a+22),y=o,v=a-o;a=0;for(var b=0;b<l;++b){var _=h[b];try{var x=_.c.length;Ur(d,a,_,_.f,_.u,x);var M=30+_.f.length+tr(_.extra),S=a+M;d.set(_.c,S),Ur(d,o,_,_.f,_.u,x,a,_.m),o+=16+M+(_.m?_.m.length:0),a=S+x}catch(w){return f(w,null)}}Ua(d,o,h.length,v,y),f(null,d)};s||u();for(var m=function(d){var y=n[d],v=i[y],b=v[0],_=v[1],x=Qr(),M=b.length;x.p(b);var S=_r(y),w=S.length,D=_.comment,E=D&&_r(D),T=E&&E.length,k=tr(_.extra),A=_.level==0?0:8,P=function(I,O){if(I)p(),f(I,null);else{var F=O.length;h[d]=Ki(_,{size:M,crc:x.d(),c:O,f:S,m:E,u:w!=y.length||E&&D.length!=T,compression:A}),o+=30+w+k+F,a+=76+2*(w+k)+(T||0)+F,--s||u()}};if(w>65535&&P(W(11,0,1),null),A)if(M<16e4)try{P(null,zs(b,_))}catch(I){P(I,null)}else c.push(Nm(b,_,P));else P(null,b)},g=0;g<l;++g)m(g);return p}function Mb(t,e){e||(e={});var r={},i=[];qa(t,"",r,e);var n=0,s=0;for(var o in r){var a=r[o],l=a[0],h=a[1],c=h.level==0?0:8,p=(S=_r(o)).length,f=h.comment,u=f&&_r(f),m=u&&u.length,g=tr(h.extra);p>65535&&W(11);var d=c?zs(l,h):l,y=d.length,v=Qr();v.p(l),i.push(Ki(h,{size:l.length,crc:v.d(),c:d,f:S,m:u,u:p!=o.length||u&&f.length!=m,o:n,compression:c})),n+=30+p+g+y,s+=76+2*(p+g)+(m||0)+y}for(var b=new it(s+22),_=n,x=s-n,M=0;M<i.length;++M){var S=i[M];Ur(b,S.o,S,S.f,S.u,S.c.length);var w=30+S.f.length+tr(S.extra);b.set(S.c,S.o+w),Ur(b,n,S,S.f,S.u,S.c.length,S.o,S.m),n+=16+w+(S.m?S.m.length:0)}return Ua(b,n,i.length,x,_),b}var Wm=function(){function t(){}return t.prototype.push=function(e,r){this.ondata(null,e,r)},t.compression=0,t}(),Fb=function(){function t(){var e=this;this.i=new ne(function(r,i){e.ondata(null,r,i)})}return t.prototype.push=function(e,r){try{this.i.push(e,r)}catch(i){this.ondata(i,null,r)}},t.compression=8,t}(),Db=function(){function t(e,r){var i=this;r<32e4?this.i=new ne(function(n,s){i.ondata(null,n,s)}):(this.i=new Hp(function(n,s,o){i.ondata(n,s,o)}),this.terminate=this.i.terminate)}return t.prototype.push=function(e,r){this.i.terminate&&(e=fe(e,0)),this.i.push(e,r)},t.compression=8,t}(),Ib=function(){function t(e){this.onfile=e,this.k=[],this.o={0:Wm},this.p=He}return t.prototype.push=function(e,r){var i=this;if(this.onfile||W(5),this.p||W(4),this.c>0){var n=Math.min(this.c,e.length),s=e.subarray(0,n);if(this.c-=n,this.d?this.d.push(s,!this.c):this.k[0].push(s),(e=e.subarray(n)).length)return this.push(e,r)}else{var o=0,a=0,l=void 0,h=void 0;this.p.length?e.length?((h=new it(this.p.length+e.length)).set(this.p),h.set(e,this.p.length)):h=this.p:h=e;for(var c=h.length,p=this.c,f=p&&this.d,u=function(){var d,y=wt(h,a);if(y==67324752){o=1,l=a,m.d=null,m.c=0;var v=Ht(h,a+6),b=Ht(h,a+8),_=2048&v,x=8&v,M=Ht(h,a+26),S=Ht(h,a+28);if(c>a+30+M+S){var w=[];m.k.unshift(w),o=2;var D,E=wt(h,a+18),T=wt(h,a+22),k=ji(h.subarray(a+30,a+=30+M),!_);E==4294967295?(d=x?[-2]:Yp(h,a),E=d[0],T=d[1]):x&&(E=-1),a+=S,m.c=E;var A={name:k,compression:b,start:function(){if(A.ondata||W(5),E){var P=i.o[b];P||A.ondata(W(14,"unknown compression type "+b,1),null,!1),(D=E<0?new P(k):new P(k,E,T)).ondata=function(C,L,R){A.ondata(C,L,R)};for(var I=0,O=w;I<O.length;I++){var F=O[I];D.push(F,!1)}i.k[0]==w&&i.c?i.d=D:D.push(He,!0)}else A.ondata(null,He,!0)},terminate:function(){D&&D.terminate&&D.terminate()}};E>=0&&(A.size=E,A.originalSize=T),m.onfile(A)}return"break"}if(p){if(y==134695760)return l=a+=12+(p==-2&&8),o=3,m.c=0,"break";if(y==33639248)return l=a-=4,o=3,m.c=0,"break"}},m=this;a<c-4&&u()!=="break";++a);if(this.p=He,p<0){var g=o?h.subarray(0,l-12-(p==-2&&8)-(wt(h,l-16)==134695760&&4)):h.subarray(0,a);f?f.push(g,!!o):this.k[+(o==2)].push(g)}if(2&o)return this.push(h.subarray(a),r);this.p=h.subarray(a)}r&&(this.c&&W(13),this.p=null)},t.prototype.register=function(e){this.o[e.compression]=e},t}(),Rs=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(t){t()};function Zm(t,e,r){r||(r=e,e={}),typeof r!="function"&&W(7);var i=[],n=function(){for(var d=0;d<i.length;++d)i[d]()},s={},o=function(d,y){Rs(function(){r(d,y)})};Rs(function(){o=r});for(var a=t.length-22;wt(t,a)!=101010256;--a)if(!a||t.length-a>65558)return o(W(13,0,1),null),n;var l=Ht(t,a+8);if(l){var h=l,c=wt(t,a+16),p=c==4294967295||h==65535;if(p){var f=wt(t,a-12);(p=wt(t,f)==101075792)&&(h=l=wt(t,f+32),c=wt(t,f+48))}for(var u=e&&e.filter,m=function(d){var y=Zp(t,c,p),v=y[0],b=y[1],_=y[2],x=y[3],M=y[4],S=y[5],w=Wp(t,S);c=M;var D=function(T,k){T?(n(),o(T,null)):(k&&(s[x]=k),--l||o(null,s))};if(!u||u({name:x,size:b,originalSize:_,compression:v}))if(v)if(v==8){var E=t.subarray(w,w+b);if(b<32e4)try{D(null,Ji(E,new it(_)))}catch(T){D(T,null)}else i.push(jp(E,{size:_},D))}else D(W(14,"unknown compression type "+v,1),null);else D(null,fe(t,w,w+b));else D(null,null)},g=0;g<h;++g)m()}else o(null,{});return n}function Ob(t,e){for(var r={},i=t.length-22;wt(t,i)!=101010256;--i)(!i||t.length-i>65558)&&W(13);var n=Ht(t,i+8);if(!n)return{};var s=wt(t,i+16),o=s==4294967295||n==65535;if(o){var a=wt(t,i-12);(o=wt(t,a)==101075792)&&(n=wt(t,a+32),s=wt(t,a+48))}for(var l=e&&e.filter,h=0;h<n;++h){var c=Zp(t,s,o),p=c[0],f=c[1],u=c[2],m=c[3],g=c[4],d=c[5],y=Wp(t,d);s=g,l&&!l({name:m,size:f,originalSize:u,compression:p})||(p?p==8?r[m]=Ji(t.subarray(y,y+f),new it(u)):W(14,"unknown compression type "+p):r[m]=fe(t,y,y+f))}return r}var Ym="@dotlottie/player-component",Xm="1.4.2",Km="dotlottie animation player web component.",Jm="dist/dotlottie-player.js",Qm="dist/dotlottie-player.esm.js",t0="dist/dotlottie-player.esm.d.ts",e0="https://dotlottie.com/players",r0="https://github.com/dotlottie/player-component.git",i0="https://github.com/dotlottie/player-component/issues",n0="Jawish Hameed <jawish@lottiefiles.com>",s0="MIT",o0={build:"yarn build-dotlottie",buildtsup:"tsup","build-with-coverage":"CODE_COVERAGE=true yarn build-dotlottie","build-dotlottie":"yarn cleanup && rollup -c","build:types":"tsc --declaration",dev:"yarn cleanup && rollup -c --watch",lint:"eslint","lint:fix":"eslint --fix",cleanup:"shx rm -rf dist && shx mkdir dist",serve:"node ./cypress/pages/server.js -p 8000 &","start-cypress":"npx cypress run && npx nyc report --reporter=text-summary","run-tests":"yarn build-with-coverage && yarn serve && yarn start-cypress","postrun-tests":"kill $(lsof -t -i:8000)"},a0={"@rollup/plugin-json":"^6.0.0",fflate:"^0.7.3",lit:"^2.4.1","lottie-web":"^5.10.0",tsup:"^6.1.3"},l0={"@babel/core":"^7.11.0","@babel/plugin-proposal-class-properties":"^7.10.4","@babel/plugin-proposal-decorators":"^7.10.5","@babel/preset-env":"^7.11.0","@babel/preset-typescript":"^7.10.4","@changesets/cli":"^2.24.4","@cypress/code-coverage":"^3.9.12","@istanbuljs/nyc-config-typescript":"^1.0.2","@rollup/plugin-babel":"^5.1.0","@rollup/plugin-commonjs":"^14.0.0","@rollup/plugin-node-resolve":"^8.4.0","@typescript-eslint/eslint-plugin":"^2.6.1","@typescript-eslint/parser":"^2.6.1","babel-plugin-istanbul":"^6.1.1",changesets:"^1.0.2",cypress:"^9.4.1",eslint:"^6.6.0","eslint-config-prettier":"^6.5.0","eslint-plugin-prettier":"^3.1.1",fastify:"^3.27.1","fastify-static":"^4.5.0",lerna:"^4.0.0","parcel-bundler":"^1.12.4",prettier:"1.18.2",rollup:"^2.23.0","rollup-plugin-alias":"^2.2.0","rollup-plugin-copy":"^3.3.0","rollup-plugin-filesize":"^9.0.2","rollup-plugin-node-globals":"^1.4.0","rollup-plugin-serve":"^1.0.3","rollup-plugin-terser":"^6.1.0","rollup-plugin-typescript2":"^0.27.1","rollup-plugin-visualizer":"^4.0.4",shx:"^0.3.3","source-map-support":"^0.5.21","ts-node":"^10.5.0",typescript:"^3.7.5"},h0=["dist"],c0=["dotlottie","animation","web component","component","lit-element","player"],p0=["> 3%"],u0={access:"public"},f0={extends:"@istanbuljs/nyc-config-typescript",all:!0},Xc={name:Ym,version:Xm,description:Km,main:Jm,module:Qm,types:t0,homepage:e0,repository:r0,bugs:i0,author:n0,license:s0,scripts:o0,dependencies:a0,devDependencies:l0,files:h0,keywords:c0,browserslist:p0,publishConfig:u0,nyc:f0},Zt=t=>new Error("[dotLottie-player-component] ".concat(t)),Kc=t=>{let e="[dotLottie-player-component] ".concat(t);console.error(e)},da=t=>{let e="[dotLottie-player-component] ".concat(t);console.warn(e)},Jc,Qc,tp,ep,rp,dt,Be,Pt;(function(t){t.Loading="loading",t.Playing="playing",t.Paused="paused",t.Stopped="stopped",t.Frozen="frozen",t.Error="error"})(dt||(dt={})),function(t){t.Normal="normal",t.Bounce="bounce"}(Be||(Be={})),function(t){t.Load="load",t.Error="error",t.Ready="ready",t.Play="play",t.Pause="pause",t.Stop="stop",t.Freeze="freeze",t.Loop="loop",t.Complete="complete",t.Rendered="rendered",t.Frame="frame"}(Pt||(Pt={}));var ip="dotlottie-player",Ct=class t extends gr{constructor(){super(),this.mode=Be.Normal,this.autoplay=!1,this.background="transparent",this.controls=!1,this.direction=1,this.hover=!1,this.renderer="svg",this.speed=1,this.currentState=dt.Loading,this.intermission=1,this.activeAnimationId=null,this._counter=1,this._activeAnimationIndex=0,this._manifest={animations:[]}}static get properties(){return{mode:{type:String},autoplay:{type:Boolean},background:{type:String},controls:{type:Boolean},direction:{type:Number},hover:{type:Boolean},loop:{type:String},renderer:{type:String},speed:{type:Number},src:{type:String},currentState:{type:String},seeker:{type:Object},intermission:{type:Number},activeAnimationId:{type:String}}}_parseLoop(e){let r=parseInt(e,10);return Number.isInteger(r)&&r>0?(this._count=r,this._loop=!0,!0):typeof e=="string"&&["true","false"].includes(e)?(this._loop=e==="true",this._loop):(da("loop must be a positive integer or a boolean"),!1)}_onVisibilityChange(){document.hidden&&this.currentState===dt.Playing?this.freeze():this.currentState===dt.Frozen&&this.play()}_handleSeekChange(e){if(!this._lottie||isNaN(e.target.value))return;let r=e.target.value/100*this._lottie.totalFrames;this.seek(r)}isLottie(e){let r=!1;return e.animations&&e.animations.length?(e.animations.forEach(i=>{this.isLottie(i)||(r=!0)}),r):["v","ip","op","layers","fr","w","h"].every(i=>Object.prototype.hasOwnProperty.call(e,i))}parseSrc(e){if(typeof e=="object")return e;try{return JSON.parse(e)}catch{return new URL(e,window.location.href).toString()}}async _fetchDotLottie(e){return await fetch(e,{method:"GET",mode:"cors",headers:{"Response-Type":"arraybuffer"}}).then(r=>r.arrayBuffer()).then(async r=>{let i=[],n={animations:[],manifest:void 0},s=await new Promise((a,l)=>{Zm(new Uint8Array(r),(h,c)=>{h&&l(h),a(c)})}),o;if(s["manifest.json"]){let a=ji(s["manifest.json"]),l=JSON.parse(a);if(!("animations"in l))throw Zt("Manifest not found");if(l.animations.length===0)throw Zt("No animations listed in the manifest");n.manifest=l;for(let h of l.animations)o=JSON.parse(ji(s["animations/".concat(h.id,".json")])),"assets"in o&&o.assets.map(c=>{if(!c.p||!s["images/".concat(c.p)])return;let p=btoa(ji(s["images/".concat(c.p)],!0));c.p="data:;base64,"+p,c.e=1}),i.push(o);return n.manifest=l,n.animations=i,n}throw Zt("No manifest found in file.")}).catch(r=>{throw Zt(r)})}async _fetchJsonFile(e){return await fetch(e,{method:"GET",mode:"cors",headers:{"Response-Type":"json"}}).then(r=>r.json()).then(r=>{let i=[],n={animations:[{id:e.substring(e.lastIndexOf("/")+1,e.lastIndexOf(".")),speed:1,loop:"true",direction:1}],description:"",author:"",generator:"dotLottie-player-component",revision:1,version:"1.0.0"},s={animations:[],manifest:void 0};return i.push(r),s.animations=i,s.manifest=n,s}).catch(r=>{throw Zt(r)})}async _fetchFileAndLoad(e){var r;let i={animations:[],manifest:void 0};if(i=((r=e.split(/[#?]/)[0].split(".").pop())===null||r===void 0?void 0:r.toLowerCase())==="json"?await this._fetchJsonFile(e):await this._fetchDotLottie(e),!i.animations||!i.manifest||i.animations.length===0)throw this.currentState=dt.Error,this.dispatchEvent(new CustomEvent(Pt.Error)),Zt(i.animations&&i.animations.length?"Manifest not found":"Animations are empty");if(this._animations=i.animations,this._manifest=i.manifest,this.activeAnimationId){let s=this._manifest.animations.findIndex(o=>o.id===this.activeAnimationId);s!==-1?this._activeAnimationIndex=s:da("Active animation not found in manifest")}else if(this._manifest&&this._manifest.activeAnimationId){let s=this._manifest.animations.findIndex(o=>o.id===this._manifest.activeAnimationId);s!==-1?this._activeAnimationIndex=s:da("Active animation not found in manifest")}let n=this._animations[this._activeAnimationIndex];if(n===void 0)throw Zt("No animation to load!");return n}_loadManifestOptions(e){if(this._requireAnimationsInTheManifest(),this._manifest.animations[e]===void 0)throw Zt("Animation not found in manifest");let{autoplay:r,direction:i,loop:n,playMode:s,speed:o,hover:a,intermission:l}=this._manifest.animations[e];r!==void 0&&(this.autoplay=r),i!==void 0&&(this.direction=i),n!==void 0&&(this.loop=n),s!==void 0&&(this.mode=s),o!==void 0&&(this.speed=o),a!==void 0&&(this.hover=a),l!==void 0&&(this.intermission=l)}_initListeners(){this.dispatchEvent(new CustomEvent(Pt.Load)),this._lottie.addEventListener("enterFrame",()=>{this.seeker=this._lottie.currentFrame/this._lottie.totalFrames*100,this.dispatchEvent(new CustomEvent(Pt.Frame,{detail:{frame:this._lottie.currentFrame,seeker:this.seeker}}))}),this._lottie.addEventListener("complete",()=>{if(this.currentState===dt.Playing){if((!this._loop||this._count&&this._counter>=this._count)&&(this.dispatchEvent(new CustomEvent(Pt.Complete)),this.mode!==Be.Bounce||this._lottie.currentFrame===0))return;this.mode===Be.Bounce?(this._count&&(this._counter+=.5),setTimeout(()=>{this.dispatchEvent(new CustomEvent(Pt.Loop)),this.currentState===dt.Playing&&(this._lottie.setDirection(-1*this._lottie.playDirection),this._lottie.play())},this.intermission)):(this._count&&(this._counter+=1),window.setTimeout(()=>{this.dispatchEvent(new CustomEvent(Pt.Loop)),this.currentState===dt.Playing&&(this.direction===-1?(this.seek("99%"),this.play()):(this._lottie.stop(),this.play()))},this.intermission))}else this.dispatchEvent(new CustomEvent(Pt.Complete))}),this._lottie.addEventListener("DOMLoaded",()=>{this.dispatchEvent(new CustomEvent(Pt.Ready))}),this._lottie.addEventListener("data_ready",()=>{this.dispatchEvent(new CustomEvent(Pt.Load))}),this._lottie.addEventListener("data_failed",()=>{this.currentState=dt.Error,this.dispatchEvent(new CustomEvent(Pt.Error))}),this.container.addEventListener("mouseenter",()=>{this.hover&&this.currentState!==dt.Playing&&this.play()}),this.container.addEventListener("mouseleave",()=>{this.hover&&this.currentState===dt.Playing&&this.stop()})}async load(e,r,i){if(!this.shadowRoot)return;let n={container:this.container,loop:!1,autoplay:!1,renderer:this.renderer,rendererSettings:r||{scaleMode:"noScale",clearCanvas:!1,progressiveLoad:!0,hideOnTransparent:!0}};try{let s=this.parseSrc(e),o=null;if(typeof s=="string")o=await this._fetchFileAndLoad(s);else if(typeof s=="object"&&!this.isLottie(s))throw Zt("Load method failing. Object is not a valid Lottie.");if(this._lottie&&this._lottie.destroy(),i!==void 0)for(let[a,l]of Object.entries(i))a==="playMode"?this.mode=l==="normal"?Be.Normal:Be.Bounce:l!==void 0&&(this[a]=l);else if(this._activeAnimationIndex===0||this._manifest.animations[this._activeAnimationIndex].id===this.activeAnimationId||this._manifest.animations[this._activeAnimationIndex].id===this._manifest.activeAnimationId){let a=this._manifest.animations[this._activeAnimationIndex],l=Object.keys(t.properties),h=Array.from(this.getAttributeNames());for(let p of h){let f=this.getAttribute(p);f&&(this[p]=f)}let c=l.filter(p=>!h.includes(p.toLowerCase())&&this._manifest.animations[this._activeAnimationIndex].hasOwnProperty(p));for(let p of c){let f=a[p];f!==void 0&&(p==="playMode"?this.mode=f==="normal"?Be.Normal:Be.Bounce:this[p]=f)}}else this._loadManifestOptions(this._activeAnimationIndex);this._lottie=$m.loadAnimation(Object.assign(Object.assign({},n),{animationData:o!==null?o:s}))}catch(s){return this.currentState=dt.Error,this.dispatchEvent(new CustomEvent(Pt.Error)),void console.error(s)}if(!this._lottie)throw this.currentState=dt.Error,this.dispatchEvent(new CustomEvent(Pt.Error)),Zt("Player failed to initialize.");this._initListeners(),this.setSpeed(this.speed),this.setDirection(this.direction),this.autoplay&&(this.direction===-1&&this.seek("99%"),this.play())}getActiveId(){return this._manifest.animations?this._manifest.animations[this._activeAnimationIndex].id:null}getActiveAnimationIndex(){return this._activeAnimationIndex}animationCount(){return this._animations?this._animations.length:0}getManifest(){return this._manifest}getLottie(){return this._lottie}getVersions(){return{lottieWebVersion:"".concat(Xc.dependencies["lottie-web"]),dotLottiePlayerVersion:"".concat(Xc.version)}}_requireAnimationsInTheManifest(){if(!this._manifest.animations.length)throw Zt("No animations found in manifest.")}_requireAnimationsToBeLoaded(){var e;if(!(!((e=this._animations)===null||e===void 0)&&e.length))throw Zt("No animations have been loaded.")}previous(e){this._activeAnimationIndex=(this._activeAnimationIndex-1+this._manifest.animations.length)%this._manifest.animations.length,this.play(this._activeAnimationIndex,e)}next(e){this._activeAnimationIndex=(this._activeAnimationIndex+1)%this._manifest.animations.length,this.play(this._activeAnimationIndex,e)}reset(){this._manifest&&this._manifest.activeAnimationId?this.play(this._manifest.activeAnimationId):this.activeAnimationId?this.play(this.activeAnimationId):this.play(0)}_validateAnimationIndex(e){if(isNaN(e)||e<0||e>=this._manifest.animations.length)throw Zt("Animation index ".concat(e," is out of bounds."))}play(e,r){if(this._lottie){if(this._requireAnimationsInTheManifest(),this._requireAnimationsToBeLoaded(),e===void 0)return this._lottie.play(),this.currentState=dt.Playing,void this.dispatchEvent(new CustomEvent(Pt.Play));if(this._requireAnimationsToBeLoaded(),this._requireAnimationsInTheManifest(),e!==void 0){if(!this._animations)throw Zt("No animations have been loaded.");if(this._requireAnimationsInTheManifest(),typeof e=="string"){let i=this._manifest.animations.findIndex(n=>n.id===e);i!==-1?(this._activeAnimationIndex=i,this.load(this._animations[this._activeAnimationIndex],{playbackOptions:r})):Kc("No animation with the id '".concat(e,"' was found."))}else typeof e=="number"&&(this._validateAnimationIndex(e),this._manifest.animations&&this._manifest.animations[e]?(this._activeAnimationIndex=e,this.load(this._animations[this._activeAnimationIndex],{playbackOptions:r})):Kc("Animation not found at index: ".concat(e)))}}}pause(){this._lottie&&(this._lottie.pause(),this.currentState=dt.Paused,this.dispatchEvent(new CustomEvent(Pt.Pause)))}stop(){this._lottie&&(this._counter=0,this._lottie.stop(),this.direction===-1&&this._lottie.goToAndStop(this._lottie.totalFrames,!0),this.currentState=dt.Stopped,this.dispatchEvent(new CustomEvent(Pt.Stop)))}seek(e){if(!this._lottie)return;typeof e=="number"&&(e=Math.round(e));let r=/^(\d+)(%?)$/.exec(e.toString());if(!r)return;let i=r[2]==="%"?this._lottie.totalFrames*Number(r[1])/100:Number(r[1]);this.seeker=i,this.currentState===dt.Playing?this._lottie.goToAndPlay(i,!0):(this._lottie.goToAndStop(i,!0),this._lottie.pause())}snapshot(){let e=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];if(!this.shadowRoot)return;let r=this.shadowRoot.querySelector(".animation svg"),i=new XMLSerializer().serializeToString(r);if(e){let n=document.createElement("a");n.href="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(i),n.download="download_"+this.seeker+".svg",document.body.appendChild(n),n.click(),document.body.removeChild(n)}return i}freeze(){this._lottie&&(this._lottie.pause(),this.currentState=dt.Frozen,this.dispatchEvent(new CustomEvent(Pt.Freeze)))}setSpeed(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;this._lottie&&this._lottie.setSpeed(e)}setDirection(e){this._lottie&&this._lottie.setDirection(e)}setLooping(e){this._lottie&&(this._lottie.loop=this._parseLoop(e))}isLooping(){return!!this._loop&&this._loop}togglePlay(){return this.currentState===dt.Playing?this.pause():this.play()}toggleLooping(){let e=!this._loop;this.setLooping(e.toString())}static get styles(){return Rm}async firstUpdated(){"IntersectionObserver"in window&&(this._io=new IntersectionObserver(e=>{e[0].isIntersecting?this.currentState===dt.Frozen&&this.play():this.currentState===dt.Playing&&this.freeze()}),this._io.observe(this.container)),document.hidden!==void 0&&document.addEventListener("visibilitychange",()=>this._onVisibilityChange()),this.loop?this._parseLoop(this.loop):this.hasAttribute("loop")&&this._parseLoop("true"),this.src&&await this.load(this.src),this.dispatchEvent(new CustomEvent(Pt.Rendered))}disconnectedCallback(){this._io&&(this._io.disconnect(),this._io=void 0),this._lottie&&this._lottie.destroy(),document.removeEventListener("visibilitychange",()=>this._onVisibilityChange())}renderControls(){let e=this.currentState===dt.Playing,r=this.currentState===dt.Paused,i=this.currentState===dt.Stopped;return ms(Jc||(Jc=Rr([`
|
|
421
|
+
`]))),qc={},Hm=function(t,e,r,i,n){var s=new Worker(qc[e]||(qc[e]=URL.createObjectURL(new Blob([t+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return s.onmessage=function(o){var a=o.data,l=a.$e$;if(l){var h=new Error(l[0]);h.code=l[1],h.stack=l[2],n(h,null)}else n(null,a)},s.postMessage(r,i),s},rt=Uint8Array,Vt=Uint16Array,Jr=Uint32Array,Qr=new rt([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),ti=new rt([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Yi=new rt([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Ap=function(t,e){for(var r=new Vt(31),i=0;i<31;++i)r[i]=e+=1<<t[i-1];var n=new Jr(r[30]);for(i=1;i<30;++i)for(var s=r[i];s<r[i+1];++s)n[s]=s-r[i]<<5|i;return[r,n]},Cp=Ap(Qr,2),Ra=Cp[0],Is=Cp[1];Ra[28]=258,Is[258]=28;for(da=Ap(ti,0),Ba=da[0],Ls=da[1],Wr=new Vt(32768),at=0;at<32768;++at)ze=(43690&at)>>>1|(21845&at)<<1,ze=(52428&ze)>>>2|(13107&ze)<<2,ze=(61680&ze)>>>4|(3855&ze)<<4,Wr[at]=((65280&ze)>>>8|(255&ze)<<8)>>>1;var ze,da,Ba,Ls,Wr,at;for(ne=function(e,r,i){for(var n=e.length,s=0,o=new Vt(r);s<n;++s)e[s]&&++o[e[s]-1];var a,l=new Vt(r);for(s=0;s<r;++s)l[s]=l[s-1]+o[s-1]<<1;if(i){a=new Vt(1<<r);var h=15-r;for(s=0;s<n;++s)if(e[s])for(var c=s<<4|e[s],p=r-e[s],f=l[e[s]-1]++<<p,u=f|(1<<p)-1;f<=u;++f)a[Wr[f]>>>h]=c}else for(a=new Vt(n),s=0;s<n;++s)e[s]&&(a[s]=Wr[l[e[s]-1]++]>>>15-e[s]);return a},Te=new rt(288),at=0;at<144;++at)Te[at]=8;var ne,Te,at;for(at=144;at<256;++at)Te[at]=9;var at;for(at=256;at<280;++at)Te[at]=7;var at;for(at=280;at<288;++at)Te[at]=8;var at;for(wr=new rt(32),at=0;at<32;++at)wr[at]=5;var wr,at,Tp=ne(Te,9,0),Mp=ne(Te,9,1),Fp=ne(wr,5,0),Dp=ne(wr,5,1),_s=function(t){for(var e=t[0],r=1;r<t.length;++r)t[r]>e&&(e=t[r]);return e},de=function(t,e,r){var i=e/8|0;return(t[i]|t[i+1]<<8)>>(7&e)&r},ws=function(t,e){var r=e/8|0;return(t[r]|t[r+1]<<8|t[r+2]<<16)>>(7&e)},Xi=function(t){return(t+7)/8|0},me=function(t,e,r){(e==null||e<0)&&(e=0),(r==null||r>t.length)&&(r=t.length);var i=new(t.BYTES_PER_ELEMENT==2?Vt:t.BYTES_PER_ELEMENT==4?Jr:rt)(r-e);return i.set(t.subarray(e,r)),i},w2={UnexpectedEOF:0,InvalidBlockType:1,InvalidLengthLiteral:2,InvalidDistance:3,StreamFinished:4,NoStreamHandler:5,InvalidHeader:6,NoCallback:7,InvalidUTF8:8,ExtraFieldTooLong:9,InvalidDate:10,FilenameTooLong:11,StreamFinishing:12,InvalidZipData:13,UnknownCompressionMethod:14},Ip=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],W=function(t,e,r){var i=new Error(e||Ip[t]);if(i.code=t,Error.captureStackTrace&&Error.captureStackTrace(i,W),!r)throw i;return i},Ki=function(t,e,r){var i=t.length;if(!i||r&&r.f&&!r.l)return e||new rt(0);var n=!e||r,s=!r||r.i;r||(r={}),e||(e=new rt(3*i));var o=function(Q){var K=e.length;if(Q>K){var Z=new rt(Math.max(2*K,Q));Z.set(e),e=Z}},a=r.f||0,l=r.p||0,h=r.b||0,c=r.l,p=r.d,f=r.m,u=r.n,m=8*i;do{if(!c){a=de(t,l,1);var g=de(t,l+1,3);if(l+=3,!g){var d=t[(T=Xi(l)+4)-4]|t[T-3]<<8,y=T+d;if(y>i){s&&W(0);break}n&&o(h+d),e.set(t.subarray(T,y),h),r.b=h+=d,r.p=l=8*y,r.f=a;continue}if(g==1)c=Mp,p=Dp,f=9,u=5;else if(g==2){var v=de(t,l,31)+257,b=de(t,l+10,15)+4,_=v+de(t,l+5,31)+1;l+=14;for(var x=new rt(_),M=new rt(19),S=0;S<b;++S)M[Yi[S]]=de(t,l+3*S,7);l+=3*b;var w=_s(M),D=(1<<w)-1,E=ne(M,w,1);for(S=0;S<_;){var T,k=E[de(t,l,D)];if(l+=15&k,(T=k>>>4)<16)x[S++]=T;else{var A=0,P=0;for(T==16?(P=3+de(t,l,3),l+=2,A=x[S-1]):T==17?(P=3+de(t,l,7),l+=3):T==18&&(P=11+de(t,l,127),l+=7);P--;)x[S++]=A}}var I=x.subarray(0,v),L=x.subarray(v);f=_s(I),u=_s(L),c=ne(I,f,1),p=ne(L,u,1)}else W(1);if(l>m){s&&W(0);break}}n&&o(h+131072);for(var F=(1<<f)-1,C=(1<<u)-1,O=l;;O=l){var V=(A=c[ws(t,l)&F])>>>4;if((l+=15&A)>m){s&&W(0);break}if(A||W(2),V<256)e[h++]=V;else{if(V==256){O=l,c=null;break}var z=V-254;if(V>264){var N=Qr[S=V-257];z=de(t,l,(1<<N)-1)+Ra[S],l+=N}var G=p[ws(t,l)&C],H=G>>>4;if(G||W(3),l+=15&G,L=Ba[H],H>3&&(N=ti[H],L+=ws(t,l)&(1<<N)-1,l+=N),l>m){s&&W(0);break}n&&o(h+131072);for(var Y=h+z;h<Y;h+=4)e[h]=e[h-L],e[h+1]=e[h+1-L],e[h+2]=e[h+2-L],e[h+3]=e[h+3-L];h=Y}}r.l=c,r.p=O,r.b=h,r.f=a,c&&(a=1,r.m=f,r.d=p,r.n=u)}while(!a);return h==e.length?e:me(e,0,h)},Ce=function(t,e,r){r<<=7&e;var i=e/8|0;t[i]|=r,t[i+1]|=r>>>8},zr=function(t,e,r){r<<=7&e;var i=e/8|0;t[i]|=r,t[i+1]|=r>>>8,t[i+2]|=r>>>16},xs=function(t,e){for(var r=[],i=0;i<t.length;++i)t[i]&&r.push({s:i,f:t[i]});var n=r.length,s=r.slice();if(!n)return[Ge,0];if(n==1){var o=new rt(r[0].s+1);return o[r[0].s]=1,[o,1]}r.sort(function(x,M){return x.f-M.f}),r.push({s:-1,f:25001});var a=r[0],l=r[1],h=0,c=1,p=2;for(r[0]={s:-1,f:a.f+l.f,l:a,r:l};c!=n-1;)a=r[r[h].f<r[p].f?h++:p++],l=r[h!=c&&r[h].f<r[p].f?h++:p++],r[c++]={s:-1,f:a.f+l.f,l:a,r:l};var f=s[0].s;for(i=1;i<n;++i)s[i].s>f&&(f=s[i].s);var u=new Vt(f+1),m=Os(r[c-1],u,0);if(m>e){i=0;var g=0,d=m-e,y=1<<d;for(s.sort(function(x,M){return u[M.s]-u[x.s]||x.f-M.f});i<n;++i){var v=s[i].s;if(!(u[v]>e))break;g+=y-(1<<m-u[v]),u[v]=e}for(g>>>=d;g>0;){var b=s[i].s;u[b]<e?g-=1<<e-u[b]++-1:++i}for(;i>=0&&g;--i){var _=s[i].s;u[_]==e&&(--u[_],++g)}m=e}return[new rt(u),m]},Os=function(t,e,r){return t.s==-1?Math.max(Os(t.l,e,r+1),Os(t.r,e,r+1)):e[t.s]=r},xa=function(t){for(var e=t.length;e&&!t[--e];);for(var r=new Vt(++e),i=0,n=t[0],s=1,o=function(l){r[i++]=l},a=1;a<=e;++a)if(t[a]==n&&a!=e)++s;else{if(!n&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(n),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(n);s=1,n=t[a]}return[r.subarray(0,i),e]},Hr=function(t,e){for(var r=0,i=0;i<e.length;++i)r+=t[i]*e[i];return r},$s=function(t,e,r){var i=r.length,n=Xi(e+2);t[n]=255&i,t[n+1]=i>>>8,t[n+2]=255^t[n],t[n+3]=255^t[n+1];for(var s=0;s<i;++s)t[n+s+4]=r[s];return 8*(n+4+i)},Sa=function(t,e,r,i,n,s,o,a,l,h,c){Ce(e,c++,r),++n[256];for(var p=xs(n,15),f=p[0],u=p[1],m=xs(s,15),g=m[0],d=m[1],y=xa(f),v=y[0],b=y[1],_=xa(g),x=_[0],M=_[1],S=new Vt(19),w=0;w<v.length;++w)S[31&v[w]]++;for(w=0;w<x.length;++w)S[31&x[w]]++;for(var D=xs(S,7),E=D[0],T=D[1],k=19;k>4&&!E[Yi[k-1]];--k);var A,P,I,L,F=h+5<<3,C=Hr(n,Te)+Hr(s,wr)+o,O=Hr(n,f)+Hr(s,g)+o+14+3*k+Hr(S,E)+(2*S[16]+3*S[17]+7*S[18]);if(F<=C&&F<=O)return $s(e,c,t.subarray(l,l+h));if(Ce(e,c,1+(O<C)),c+=2,O<C){A=ne(f,u,0),P=f,I=ne(g,d,0),L=g;var V=ne(E,T,0);for(Ce(e,c,b-257),Ce(e,c+5,M-1),Ce(e,c+10,k-4),c+=14,w=0;w<k;++w)Ce(e,c+3*w,E[Yi[w]]);c+=3*k;for(var z=[v,x],N=0;N<2;++N){var G=z[N];for(w=0;w<G.length;++w){var H=31&G[w];Ce(e,c,V[H]),c+=E[H],H>15&&(Ce(e,c,G[w]>>>5&127),c+=G[w]>>>12)}}}else A=Tp,P=Te,I=Fp,L=wr;for(w=0;w<a;++w)if(i[w]>255){H=i[w]>>>18&31,zr(e,c,A[H+257]),c+=P[H+257],H>7&&(Ce(e,c,i[w]>>>23&31),c+=Qr[H]);var Y=31&i[w];zr(e,c,I[Y]),c+=L[Y],Y>3&&(zr(e,c,i[w]>>>5&8191),c+=ti[Y])}else zr(e,c,A[i[w]]),c+=P[i[w]];return zr(e,c,A[256]),c+P[256]},Lp=new Jr([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Ge=new rt(0),Op=function(t,e,r,i,n,s){var o=t.length,a=new rt(i+o+5*(1+Math.ceil(o/7e3))+n),l=a.subarray(i,a.length-n),h=0;if(!e||o<8)for(var c=0;c<=o;c+=65535){var p=c+65535;p>=o&&(l[h>>3]=s),h=$s(l,h+1,t.subarray(c,p))}else{for(var f=Lp[e-1],u=f>>>13,m=8191&f,g=(1<<r)-1,d=new Vt(32768),y=new Vt(g+1),v=Math.ceil(r/3),b=2*v,_=function(ut){return(t[ut]^t[ut+1]<<v^t[ut+2]<<b)&g},x=new Jr(25e3),M=new Vt(288),S=new Vt(32),w=0,D=0,E=(c=0,0),T=0,k=0;c<o;++c){var A=_(c),P=32767&c,I=y[A];if(d[P]=I,y[A]=P,T<=c){var L=o-c;if((w>7e3||E>24576)&&L>423){h=Sa(t,l,0,x,M,S,D,E,k,c-k,h),E=w=D=0,k=c;for(var F=0;F<286;++F)M[F]=0;for(F=0;F<30;++F)S[F]=0}var C=2,O=0,V=m,z=P-I&32767;if(L>2&&A==_(c-z))for(var N=Math.min(u,L)-1,G=Math.min(32767,c),H=Math.min(258,L);z<=G&&--V&&P!=I;){if(t[c+C]==t[c+C-z]){for(var Y=0;Y<H&&t[c+Y]==t[c+Y-z];++Y);if(Y>C){if(C=Y,O=z,Y>N)break;var Q=Math.min(z,Y-2),K=0;for(F=0;F<Q;++F){var Z=c-z+F+32768&32767,pt=Z-d[Z]+32768&32767;pt>K&&(K=pt,I=Z)}}}z+=(P=I)-(I=d[P])+32768&32767}if(O){x[E++]=268435456|Is[C]<<18|Ls[O];var et=31&Is[C],vt=31&Ls[O];D+=Qr[et]+ti[vt],++M[257+et],++S[vt],T=c+C,++w}else x[E++]=t[c],++M[t[c]]}}h=Sa(t,l,s,x,M,S,D,E,k,c-k,h),!s&&7&h&&(h=$s(l,h+1,Ge))}return me(a,0,i+Xi(h)+n)},$p=function(){for(var t=new Int32Array(256),e=0;e<256;++e){for(var r=e,i=9;--i;)r=(1&r&&-306674912)^r>>>1;t[e]=r}return t}(),ei=function(){var t=-1;return{p:function(e){for(var r=t,i=0;i<e.length;++i)r=$p[255&r^e[i]]^r>>>8;t=r},d:function(){return~t}}},za=function(){var t=1,e=0;return{p:function(r){for(var i=t,n=e,s=0|r.length,o=0;o!=s;){for(var a=Math.min(o+2655,s);o<a;++o)n+=i+=r[o];i=(65535&i)+15*(i>>16),n=(65535&n)+15*(n>>16)}t=i,e=n},d:function(){return(255&(t%=65521))<<24|t>>>8<<16|(255&(e%=65521))<<8|e>>>8}}},Sr=function(t,e,r,i,n){return Op(t,e.level==null?6:e.level,e.mem==null?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):12+e.mem,r,i,!n)},Ji=function(t,e){var r={};for(var i in t)r[i]=t[i];for(var i in e)r[i]=e[i];return r},Uc=function(t,e,r){for(var i=t(),n=t.toString(),s=n.slice(n.indexOf("[")+1,n.lastIndexOf("]")).replace(/\s+/g,"").split(","),o=0;o<i.length;++o){var a=i[o],l=s[o];if(typeof a=="function"){e+=";"+l+"=";var h=a.toString();if(a.prototype)if(h.indexOf("[native code]")!=-1){var c=h.indexOf(" ",8)+1;e+=h.slice(c,h.indexOf("(",c))}else for(var p in e+=h,a.prototype)e+=";"+l+".prototype."+p+"="+a.prototype[p].toString();else e+=h}else r[l]=a}return[e,r]},ys=[],Nm=function(t){var e=[];for(var r in t)t[r].buffer&&e.push((t[r]=new t[r].constructor(t[r])).buffer);return e},Vp=function(t,e,r,i){var n;if(!ys[r]){for(var s="",o={},a=t.length-1,l=0;l<a;++l)s=(n=Uc(t[l],s,o))[0],o=n[1];ys[r]=Uc(t[a],s,o)}var h=Ji({},ys[r][1]);return Hm(ys[r][0]+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+e.toString()+"}",r,h,Nm(h),i)},ri=function(){return[rt,Vt,Jr,Qr,ti,Yi,Ra,Ba,Mp,Dp,Wr,Ip,ne,_s,de,ws,Xi,me,W,Ki,Qi,ir,Ha]},ii=function(){return[rt,Vt,Jr,Qr,ti,Yi,Is,Ls,Tp,Te,Fp,wr,Wr,Lp,Ge,ne,Ce,zr,xs,Os,xa,Hr,$s,Sa,Xi,me,Op,Sr,Hs,ir]},Rp=function(){return[Na,Ga,ht,ei,$p]},Bp=function(){return[ja,Np]},zp=function(){return[qa,ht,za]},Hp=function(){return[jp]},ir=function(t){return postMessage(t,[t.buffer])},Ha=function(t){return t&&t.size&&new rt(t.size)},ni=function(t,e,r,i,n,s){var o=Vp(r,i,n,function(a,l){o.terminate(),s(a,l)});return o.postMessage([t,e],e.consume?[t.buffer]:[]),function(){o.terminate()}},ge=function(t){return t.ondata=function(e,r){return postMessage([e,r],[e.buffer])},function(e){return t.push(e.data[0],e.data[1])}},si=function(t,e,r,i,n){var s,o=Vp(t,i,n,function(a,l){a?(o.terminate(),e.ondata.call(e,a)):(l[1]&&o.terminate(),e.ondata.call(e,a,l[0],l[1]))});o.postMessage(r),e.push=function(a,l){e.ondata||W(5),s&&e.ondata(W(4,0,1),null,!!l),o.postMessage([a,s=l],[a.buffer])},e.terminate=function(){o.terminate()}},Nt=function(t,e){return t[e]|t[e+1]<<8},wt=function(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0},ma=function(t,e){return wt(t,e)+4294967296*wt(t,e+4)},ht=function(t,e,r){for(;r;++e)t[e]=r,r>>>=8},Na=function(t,e){var r=e.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=e.level<2?4:e.level==9?2:0,t[9]=3,e.mtime!=0&&ht(t,4,Math.floor(new Date(e.mtime||Date.now())/1e3)),r){t[3]=8;for(var i=0;i<=r.length;++i)t[i+10]=r.charCodeAt(i)}},ja=function(t){t[0]==31&&t[1]==139&&t[2]==8||W(6,"invalid gzip data");var e=t[3],r=10;4&e&&(r+=t[10]|2+(t[11]<<8));for(var i=(e>>3&1)+(e>>4&1);i>0;i-=!t[r++]);return r+(2&e)},Np=function(t){var e=t.length;return(t[e-4]|t[e-3]<<8|t[e-2]<<16|t[e-1]<<24)>>>0},Ga=function(t){return 10+(t.filename&&t.filename.length+1||0)},qa=function(t,e){var r=e.level,i=r==0?0:r<6?1:r==9?3:2;t[0]=120,t[1]=i<<6|(i?32-2*i:1)},jp=function(t){((15&t[0])!=8||t[0]>>>4>7||(t[0]<<8|t[1])%31)&&W(6,"invalid zlib data"),32&t[1]&&W(6,"invalid zlib data: preset dictionaries not supported")};function Ua(t,e){return e||typeof t!="function"||(e=t,t={}),this.ondata=e,t}var qe=function(){function t(e,r){r||typeof e!="function"||(r=e,e={}),this.ondata=r,this.o=e||{}}return t.prototype.p=function(e,r){this.ondata(Sr(e,this.o,0,0,!r),r)},t.prototype.push=function(e,r){this.ondata||W(5),this.d&&W(4),this.d=r,this.p(e,r||!1)},t}(),jm=function(){return function(t,e){si([ii,function(){return[ge,qe]}],this,Ua.call(this,t,e),function(r){var i=new qe(r.data);onmessage=ge(i)},6)}}();function Gm(t,e,r){return r||(r=e,e={}),typeof r!="function"&&W(7),ni(t,e,[ii],function(i){return ir(Hs(i.data[0],i.data[1]))},0,r)}function Hs(t,e){return Sr(t,e||{},0,0)}var se=function(){function t(e){this.s={},this.p=new rt(0),this.ondata=e}return t.prototype.e=function(e){this.ondata||W(5),this.d&&W(4);var r=this.p.length,i=new rt(r+e.length);i.set(this.p),i.set(e,r),this.p=i},t.prototype.c=function(e){this.d=this.s.i=e||!1;var r=this.s.b,i=Ki(this.p,this.o,this.s);this.ondata(me(i,r,this.s.b),this.d),this.o=me(i,this.s.b-32768),this.s.b=this.o.length,this.p=me(this.p,this.s.p/8|0),this.s.p&=7},t.prototype.push=function(e,r){this.e(e),this.c(r)},t}(),Gp=function(){return function(t){this.ondata=t,si([ri,function(){return[ge,se]}],this,0,function(){var e=new se;onmessage=ge(e)},7)}}();function qp(t,e,r){return r||(r=e,e={}),typeof r!="function"&&W(7),ni(t,e,[ri],function(i){return ir(Qi(i.data[0],Ha(i.data[1])))},1,r)}function Qi(t,e){return Ki(t,e)}var Wc=function(){function t(e,r){this.c=ei(),this.l=0,this.v=1,qe.call(this,e,r)}return t.prototype.push=function(e,r){qe.prototype.push.call(this,e,r)},t.prototype.p=function(e,r){this.c.p(e),this.l+=e.length;var i=Sr(e,this.o,this.v&&Ga(this.o),r&&8,!r);this.v&&(Na(i,this.o),this.v=0),r&&(ht(i,i.length-8,this.c.d()),ht(i,i.length-4,this.l)),this.ondata(i,r)},t}(),x2=function(){return function(t,e){si([ii,Rp,function(){return[ge,qe,Wc]}],this,Ua.call(this,t,e),function(r){var i=new Wc(r.data);onmessage=ge(i)},8)}}();function S2(t,e,r){return r||(r=e,e={}),typeof r!="function"&&W(7),ni(t,e,[ii,Rp,function(){return[Zc]}],function(i){return ir(Zc(i.data[0],i.data[1]))},2,r)}function Zc(t,e){e||(e={});var r=ei(),i=t.length;r.p(t);var n=Sr(t,e,Ga(e),8),s=n.length;return Na(n,e),ht(n,s-8,r.d()),ht(n,s-4,i),n}var Ea=function(){function t(e){this.v=1,se.call(this,e)}return t.prototype.push=function(e,r){if(se.prototype.e.call(this,e),this.v){var i=this.p.length>3?ja(this.p):4;if(i>=this.p.length&&!r)return;this.p=this.p.subarray(i),this.v=0}r&&(this.p.length<8&&W(6,"invalid gzip data"),this.p=this.p.subarray(0,-8)),se.prototype.c.call(this,r)},t}(),qm=function(){return function(t){this.ondata=t,si([ri,Bp,function(){return[ge,se,Ea]}],this,0,function(){var e=new Ea;onmessage=ge(e)},9)}}();function Um(t,e,r){return r||(r=e,e={}),typeof r!="function"&&W(7),ni(t,e,[ri,Bp,function(){return[ka]}],function(i){return ir(ka(i.data[0]))},3,r)}function ka(t,e){return Ki(t.subarray(ja(t),-8),e||new rt(Np(t)))}var Yc=function(){function t(e,r){this.c=za(),this.v=1,qe.call(this,e,r)}return t.prototype.push=function(e,r){qe.prototype.push.call(this,e,r)},t.prototype.p=function(e,r){this.c.p(e);var i=Sr(e,this.o,this.v&&2,r&&4,!r);this.v&&(qa(i,this.o),this.v=0),r&&ht(i,i.length-4,this.c.d()),this.ondata(i,r)},t}(),E2=function(){return function(t,e){si([ii,zp,function(){return[ge,qe,Yc]}],this,Ua.call(this,t,e),function(r){var i=new Yc(r.data);onmessage=ge(i)},10)}}();function k2(t,e,r){return r||(r=e,e={}),typeof r!="function"&&W(7),ni(t,e,[ii,zp,function(){return[Xc]}],function(i){return ir(Xc(i.data[0],i.data[1]))},4,r)}function Xc(t,e){e||(e={});var r=za();r.p(t);var i=Sr(t,e,2,4);return qa(i,e),ht(i,i.length-4,r.d()),i}var Pa=function(){function t(e){this.v=1,se.call(this,e)}return t.prototype.push=function(e,r){if(se.prototype.e.call(this,e),this.v){if(this.p.length<2&&!r)return;this.p=this.p.subarray(2),this.v=0}r&&(this.p.length<4&&W(6,"invalid zlib data"),this.p=this.p.subarray(0,-4)),se.prototype.c.call(this,r)},t}(),Wm=function(){return function(t){this.ondata=t,si([ri,Hp,function(){return[ge,se,Pa]}],this,0,function(){var e=new Pa;onmessage=ge(e)},11)}}();function Zm(t,e,r){return r||(r=e,e={}),typeof r!="function"&&W(7),ni(t,e,[ri,Hp,function(){return[Aa]}],function(i){return ir(Aa(i.data[0],Ha(i.data[1])))},5,r)}function Aa(t,e){return Ki((jp(t),t.subarray(2,-4)),e)}var Ym=function(){function t(e){this.G=Ea,this.I=se,this.Z=Pa,this.ondata=e}return t.prototype.push=function(e,r){if(this.ondata||W(5),this.s)this.s.push(e,r);else{if(this.p&&this.p.length){var i=new rt(this.p.length+e.length);i.set(this.p),i.set(e,this.p.length)}else this.p=e;if(this.p.length>2){var n=this,s=function(){n.ondata.apply(n,arguments)};this.s=this.p[0]==31&&this.p[1]==139&&this.p[2]==8?new this.G(s):(15&this.p[0])!=8||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(s):new this.Z(s),this.s.push(this.p,r),this.p=null}}},t}(),P2=function(){function t(e){this.G=qm,this.I=Gp,this.Z=Wm,this.ondata=e}return t.prototype.push=function(e,r){Ym.prototype.push.call(this,e,r)},t}();function A2(t,e,r){return r||(r=e,e={}),typeof r!="function"&&W(7),t[0]==31&&t[1]==139&&t[2]==8?Um(t,e,r):(15&t[0])!=8||t[0]>>4>7||(t[0]<<8|t[1])%31?qp(t,e,r):Zm(t,e,r)}function C2(t,e){return t[0]==31&&t[1]==139&&t[2]==8?ka(t,e):(15&t[0])!=8||t[0]>>4>7||(t[0]<<8|t[1])%31?Qi(t,e):Aa(t,e)}var Wa=function(t,e,r,i){for(var n in t){var s=t[n],o=e+n,a=i;Array.isArray(s)&&(a=Ji(i,s[1]),s=s[0]),s instanceof rt?r[o]=[s,a]:(r[o+="/"]=[new rt(0),a],Wa(s,o,r,i))}},Kc=typeof TextEncoder<"u"&&new TextEncoder,Ca=typeof TextDecoder<"u"&&new TextDecoder,Up=0;try{Ca.decode(Ge,{stream:!0}),Up=1}catch(t){}var Wp=function(t){for(var e="",r=0;;){var i=t[r++],n=(i>127)+(i>223)+(i>239);if(r+n>t.length)return[e,me(t,r-1)];n?n==3?(i=((15&i)<<18|(63&t[r++])<<12|(63&t[r++])<<6|63&t[r++])-65536,e+=String.fromCharCode(55296|i>>10,56320|1023&i)):e+=1&n?String.fromCharCode((31&i)<<6|63&t[r++]):String.fromCharCode((15&i)<<12|(63&t[r++])<<6|63&t[r++]):e+=String.fromCharCode(i)}},T2=function(){function t(e){this.ondata=e,Up?this.t=new TextDecoder:this.p=Ge}return t.prototype.push=function(e,r){if(this.ondata||W(5),r=!!r,this.t)return this.ondata(this.t.decode(e,{stream:!0}),r),void(r&&(this.t.decode().length&&W(8),this.t=null));this.p||W(4);var i=new rt(this.p.length+e.length);i.set(this.p),i.set(e,this.p.length);var n=Wp(i),s=n[0],o=n[1];r?(o.length&&W(8),this.p=null):this.p=o,this.ondata(s,r)},t}(),M2=function(){function t(e){this.ondata=e}return t.prototype.push=function(e,r){this.ondata||W(5),this.d&&W(4),this.ondata(xr(e),this.d=r||!1)},t}();function xr(t,e){if(e){for(var r=new rt(t.length),i=0;i<t.length;++i)r[i]=t.charCodeAt(i);return r}if(Kc)return Kc.encode(t);var n=t.length,s=new rt(t.length+(t.length>>1)),o=0,a=function(c){s[o++]=c};for(i=0;i<n;++i){if(o+5>s.length){var l=new rt(o+8+(n-i<<1));l.set(s),s=l}var h=t.charCodeAt(i);h<128||e?a(h):h<2048?(a(192|h>>6),a(128|63&h)):h>55295&&h<57344?(a(240|(h=65536+(1047552&h)|1023&t.charCodeAt(++i))>>18),a(128|h>>12&63),a(128|h>>6&63),a(128|63&h)):(a(224|h>>12),a(128|h>>6&63),a(128|63&h))}return me(s,0,o)}function Gi(t,e){if(e){for(var r="",i=0;i<t.length;i+=16384)r+=String.fromCharCode.apply(null,t.subarray(i,i+16384));return r}if(Ca)return Ca.decode(t);var n=Wp(t),s=n[0];return n[1].length&&W(8),s}var Zp=function(t){return t==1?3:t<6?2:t==9?1:0},Yp=function(t,e){return e+30+Nt(t,e+26)+Nt(t,e+28)},Xp=function(t,e,r){var i=Nt(t,e+28),n=Gi(t.subarray(e+46,e+46+i),!(2048&Nt(t,e+8))),s=e+46+i,o=wt(t,e+20),a=r&&o==4294967295?Kp(t,s):[o,wt(t,e+24),wt(t,e+42)],l=a[0],h=a[1],c=a[2];return[Nt(t,e+10),l,h,n,s+Nt(t,e+30)+Nt(t,e+32),c]},Kp=function(t,e){for(;Nt(t,e)!=1;e+=4+Nt(t,e+2));return[ma(t,e+12),ma(t,e+4),ma(t,e+20)]},rr=function(t){var e=0;if(t)for(var r in t){var i=t[r].length;i>65535&&W(9),e+=i+4}return e},Zr=function(t,e,r,i,n,s,o,a){var l=i.length,h=r.extra,c=a&&a.length,p=rr(h);ht(t,e,o!=null?33639248:67324752),e+=4,o!=null&&(t[e++]=20,t[e++]=r.os),t[e]=20,e+=2,t[e++]=r.flag<<1|(s<0&&8),t[e++]=n&&8,t[e++]=255&r.compression,t[e++]=r.compression>>8;var f=new Date(r.mtime==null?Date.now():r.mtime),u=f.getFullYear()-1980;if((u<0||u>119)&&W(10),ht(t,e,u<<25|f.getMonth()+1<<21|f.getDate()<<16|f.getHours()<<11|f.getMinutes()<<5|f.getSeconds()>>>1),e+=4,s!=-1&&(ht(t,e,r.crc),ht(t,e+4,s<0?-s-2:s),ht(t,e+8,r.size)),ht(t,e+12,l),ht(t,e+14,p),e+=16,o!=null&&(ht(t,e,c),ht(t,e+6,r.attrs),ht(t,e+10,o),e+=14),t.set(i,e),e+=l,p)for(var m in h){var g=h[m],d=g.length;ht(t,e,+m),ht(t,e+2,d),t.set(g,e+4),e+=4+d}return c&&(t.set(a,e),e+=c),e},Za=function(t,e,r,i,n){ht(t,e,101010256),ht(t,e+8,r),ht(t,e+10,r),ht(t,e+12,i),ht(t,e+16,n)},Vs=function(){function t(e){this.filename=e,this.c=ei(),this.size=0,this.compression=0}return t.prototype.process=function(e,r){this.ondata(null,e,r)},t.prototype.push=function(e,r){this.ondata||W(5),this.c.p(e),this.size+=e.length,r&&(this.crc=this.c.d()),this.process(e,r||!1)},t}(),F2=function(){function t(e,r){var i=this;r||(r={}),Vs.call(this,e),this.d=new qe(r,function(n,s){i.ondata(null,n,s)}),this.compression=8,this.flag=Zp(r.level)}return t.prototype.process=function(e,r){try{this.d.push(e,r)}catch(i){this.ondata(i,null,r)}},t.prototype.push=function(e,r){Vs.prototype.push.call(this,e,r)},t}(),D2=function(){function t(e,r){var i=this;r||(r={}),Vs.call(this,e),this.d=new jm(r,function(n,s,o){i.ondata(n,s,o)}),this.compression=8,this.flag=Zp(r.level),this.terminate=this.d.terminate}return t.prototype.process=function(e,r){this.d.push(e,r)},t.prototype.push=function(e,r){Vs.prototype.push.call(this,e,r)},t}(),I2=function(){function t(e){this.ondata=e,this.u=[],this.d=1}return t.prototype.add=function(e){var r=this;if(this.ondata||W(5),2&this.d)this.ondata(W(4+8*(1&this.d),0,1),null,!1);else{var i=xr(e.filename),n=i.length,s=e.comment,o=s&&xr(s),a=n!=e.filename.length||o&&s.length!=o.length,l=n+rr(e.extra)+30;n>65535&&this.ondata(W(11,0,1),null,!1);var h=new rt(l);Zr(h,0,e,i,a,-1);var c=[h],p=function(){for(var d=0,y=c;d<y.length;d++){var v=y[d];r.ondata(null,v,!1)}c=[]},f=this.d;this.d=0;var u=this.u.length,m=Ji(e,{f:i,u:a,o,t:function(){e.terminate&&e.terminate()},r:function(){if(p(),f){var d=r.u[u+1];d?d.r():r.d=1}f=1}}),g=0;e.ondata=function(d,y,v){if(d)r.ondata(d,y,v),r.terminate();else if(g+=y.length,c.push(y),v){var b=new rt(16);ht(b,0,134695760),ht(b,4,e.crc),ht(b,8,g),ht(b,12,e.size),c.push(b),m.c=g,m.b=l+g+16,m.crc=e.crc,m.size=e.size,f&&m.r(),f=1}else f&&p()},this.u.push(m)}},t.prototype.end=function(){var e=this;2&this.d?this.ondata(W(4+8*(1&this.d),0,1),null,!0):(this.d?this.e():this.u.push({r:function(){1&e.d&&(e.u.splice(-1,1),e.e())},t:function(){}}),this.d=3)},t.prototype.e=function(){for(var e=0,r=0,i=0,n=0,s=this.u;n<s.length;n++)i+=46+(h=s[n]).f.length+rr(h.extra)+(h.o?h.o.length:0);for(var o=new rt(i+22),a=0,l=this.u;a<l.length;a++){var h=l[a];Zr(o,e,h,h.f,h.u,-h.c-2,r,h.o),e+=46+h.f.length+rr(h.extra)+(h.o?h.o.length:0),r+=h.b}Za(o,e,this.u.length,i,r),this.ondata(null,o,!0),this.d=2},t.prototype.terminate=function(){for(var e=0,r=this.u;e<r.length;e++)r[e].t();this.d=2},t}();function L2(t,e,r){r||(r=e,e={}),typeof r!="function"&&W(7);var i={};Wa(t,"",i,e);var n=Object.keys(i),s=n.length,o=0,a=0,l=s,h=new Array(s),c=[],p=function(){for(var d=0;d<c.length;++d)c[d]()},f=function(d,y){Rs(function(){r(d,y)})};Rs(function(){f=r});var u=function(){var d=new rt(a+22),y=o,v=a-o;a=0;for(var b=0;b<l;++b){var _=h[b];try{var x=_.c.length;Zr(d,a,_,_.f,_.u,x);var M=30+_.f.length+rr(_.extra),S=a+M;d.set(_.c,S),Zr(d,o,_,_.f,_.u,x,a,_.m),o+=16+M+(_.m?_.m.length:0),a=S+x}catch(w){return f(w,null)}}Za(d,o,h.length,v,y),f(null,d)};s||u();for(var m=function(d){var y=n[d],v=i[y],b=v[0],_=v[1],x=ei(),M=b.length;x.p(b);var S=xr(y),w=S.length,D=_.comment,E=D&&xr(D),T=E&&E.length,k=rr(_.extra),A=_.level==0?0:8,P=function(I,L){if(I)p(),f(I,null);else{var F=L.length;h[d]=Ji(_,{size:M,crc:x.d(),c:L,f:S,m:E,u:w!=y.length||E&&D.length!=T,compression:A}),o+=30+w+k+F,a+=76+2*(w+k)+(T||0)+F,--s||u()}};if(w>65535&&P(W(11,0,1),null),A)if(M<16e4)try{P(null,Hs(b,_))}catch(I){P(I,null)}else c.push(Gm(b,_,P));else P(null,b)},g=0;g<l;++g)m(g);return p}function O2(t,e){e||(e={});var r={},i=[];Wa(t,"",r,e);var n=0,s=0;for(var o in r){var a=r[o],l=a[0],h=a[1],c=h.level==0?0:8,p=(S=xr(o)).length,f=h.comment,u=f&&xr(f),m=u&&u.length,g=rr(h.extra);p>65535&&W(11);var d=c?Hs(l,h):l,y=d.length,v=ei();v.p(l),i.push(Ji(h,{size:l.length,crc:v.d(),c:d,f:S,m:u,u:p!=o.length||u&&f.length!=m,o:n,compression:c})),n+=30+p+g+y,s+=76+2*(p+g)+(m||0)+y}for(var b=new rt(s+22),_=n,x=s-n,M=0;M<i.length;++M){var S=i[M];Zr(b,S.o,S,S.f,S.u,S.c.length);var w=30+S.f.length+rr(S.extra);b.set(S.c,S.o+w),Zr(b,n,S,S.f,S.u,S.c.length,S.o,S.m),n+=16+w+(S.m?S.m.length:0)}return Za(b,n,i.length,x,_),b}var Xm=function(){function t(){}return t.prototype.push=function(e,r){this.ondata(null,e,r)},t.compression=0,t}(),$2=function(){function t(){var e=this;this.i=new se(function(r,i){e.ondata(null,r,i)})}return t.prototype.push=function(e,r){try{this.i.push(e,r)}catch(i){this.ondata(i,null,r)}},t.compression=8,t}(),V2=function(){function t(e,r){var i=this;r<32e4?this.i=new se(function(n,s){i.ondata(null,n,s)}):(this.i=new Gp(function(n,s,o){i.ondata(n,s,o)}),this.terminate=this.i.terminate)}return t.prototype.push=function(e,r){this.i.terminate&&(e=me(e,0)),this.i.push(e,r)},t.compression=8,t}(),R2=function(){function t(e){this.onfile=e,this.k=[],this.o={0:Xm},this.p=Ge}return t.prototype.push=function(e,r){var i=this;if(this.onfile||W(5),this.p||W(4),this.c>0){var n=Math.min(this.c,e.length),s=e.subarray(0,n);if(this.c-=n,this.d?this.d.push(s,!this.c):this.k[0].push(s),(e=e.subarray(n)).length)return this.push(e,r)}else{var o=0,a=0,l=void 0,h=void 0;this.p.length?e.length?((h=new rt(this.p.length+e.length)).set(this.p),h.set(e,this.p.length)):h=this.p:h=e;for(var c=h.length,p=this.c,f=p&&this.d,u=function(){var d,y=wt(h,a);if(y==67324752){o=1,l=a,m.d=null,m.c=0;var v=Nt(h,a+6),b=Nt(h,a+8),_=2048&v,x=8&v,M=Nt(h,a+26),S=Nt(h,a+28);if(c>a+30+M+S){var w=[];m.k.unshift(w),o=2;var D,E=wt(h,a+18),T=wt(h,a+22),k=Gi(h.subarray(a+30,a+=30+M),!_);E==4294967295?(d=x?[-2]:Kp(h,a),E=d[0],T=d[1]):x&&(E=-1),a+=S,m.c=E;var A={name:k,compression:b,start:function(){if(A.ondata||W(5),E){var P=i.o[b];P||A.ondata(W(14,"unknown compression type "+b,1),null,!1),(D=E<0?new P(k):new P(k,E,T)).ondata=function(C,O,V){A.ondata(C,O,V)};for(var I=0,L=w;I<L.length;I++){var F=L[I];D.push(F,!1)}i.k[0]==w&&i.c?i.d=D:D.push(Ge,!0)}else A.ondata(null,Ge,!0)},terminate:function(){D&&D.terminate&&D.terminate()}};E>=0&&(A.size=E,A.originalSize=T),m.onfile(A)}return"break"}if(p){if(y==134695760)return l=a+=12+(p==-2&&8),o=3,m.c=0,"break";if(y==33639248)return l=a-=4,o=3,m.c=0,"break"}},m=this;a<c-4&&u()!=="break";++a);if(this.p=Ge,p<0){var g=o?h.subarray(0,l-12-(p==-2&&8)-(wt(h,l-16)==134695760&&4)):h.subarray(0,a);f?f.push(g,!!o):this.k[+(o==2)].push(g)}if(2&o)return this.push(h.subarray(a),r);this.p=h.subarray(a)}r&&(this.c&&W(13),this.p=null)},t.prototype.register=function(e){this.o[e.compression]=e},t}(),Rs=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(t){t()};function Km(t,e,r){r||(r=e,e={}),typeof r!="function"&&W(7);var i=[],n=function(){for(var d=0;d<i.length;++d)i[d]()},s={},o=function(d,y){Rs(function(){r(d,y)})};Rs(function(){o=r});for(var a=t.length-22;wt(t,a)!=101010256;--a)if(!a||t.length-a>65558)return o(W(13,0,1),null),n;var l=Nt(t,a+8);if(l){var h=l,c=wt(t,a+16),p=c==4294967295||h==65535;if(p){var f=wt(t,a-12);(p=wt(t,f)==101075792)&&(h=l=wt(t,f+32),c=wt(t,f+48))}for(var u=e&&e.filter,m=function(d){var y=Xp(t,c,p),v=y[0],b=y[1],_=y[2],x=y[3],M=y[4],S=y[5],w=Yp(t,S);c=M;var D=function(T,k){T?(n(),o(T,null)):(k&&(s[x]=k),--l||o(null,s))};if(!u||u({name:x,size:b,originalSize:_,compression:v}))if(v)if(v==8){var E=t.subarray(w,w+b);if(b<32e4)try{D(null,Qi(E,new rt(_)))}catch(T){D(T,null)}else i.push(qp(E,{size:_},D))}else D(W(14,"unknown compression type "+v,1),null);else D(null,me(t,w,w+b));else D(null,null)},g=0;g<h;++g)m()}else o(null,{});return n}function B2(t,e){for(var r={},i=t.length-22;wt(t,i)!=101010256;--i)(!i||t.length-i>65558)&&W(13);var n=Nt(t,i+8);if(!n)return{};var s=wt(t,i+16),o=s==4294967295||n==65535;if(o){var a=wt(t,i-12);(o=wt(t,a)==101075792)&&(n=wt(t,a+32),s=wt(t,a+48))}for(var l=e&&e.filter,h=0;h<n;++h){var c=Xp(t,s,o),p=c[0],f=c[1],u=c[2],m=c[3],g=c[4],d=c[5],y=Yp(t,d);s=g,l&&!l({name:m,size:f,originalSize:u,compression:p})||(p?p==8?r[m]=Qi(t.subarray(y,y+f),new rt(u)):W(14,"unknown compression type "+p):r[m]=me(t,y,y+f))}return r}var Jm="@dotlottie/player-component",Qm="1.4.2",t0="dotlottie animation player web component.",e0="dist/dotlottie-player.js",r0="dist/dotlottie-player.esm.js",i0="dist/dotlottie-player.esm.d.ts",n0="https://dotlottie.com/players",s0="https://github.com/dotlottie/player-component.git",o0="https://github.com/dotlottie/player-component/issues",a0="Jawish Hameed <jawish@lottiefiles.com>",l0="MIT",h0={build:"yarn build-dotlottie",buildtsup:"tsup","build-with-coverage":"CODE_COVERAGE=true yarn build-dotlottie","build-dotlottie":"yarn cleanup && rollup -c","build:types":"tsc --declaration",dev:"yarn cleanup && rollup -c --watch",lint:"eslint","lint:fix":"eslint --fix",cleanup:"shx rm -rf dist && shx mkdir dist",serve:"node ./cypress/pages/server.js -p 8000 &","start-cypress":"npx cypress run && npx nyc report --reporter=text-summary","run-tests":"yarn build-with-coverage && yarn serve && yarn start-cypress","postrun-tests":"kill $(lsof -t -i:8000)"},c0={"@rollup/plugin-json":"^6.0.0",fflate:"^0.7.3",lit:"^2.4.1","lottie-web":"^5.10.0",tsup:"^6.1.3"},p0={"@babel/core":"^7.11.0","@babel/plugin-proposal-class-properties":"^7.10.4","@babel/plugin-proposal-decorators":"^7.10.5","@babel/preset-env":"^7.11.0","@babel/preset-typescript":"^7.10.4","@changesets/cli":"^2.24.4","@cypress/code-coverage":"^3.9.12","@istanbuljs/nyc-config-typescript":"^1.0.2","@rollup/plugin-babel":"^5.1.0","@rollup/plugin-commonjs":"^14.0.0","@rollup/plugin-node-resolve":"^8.4.0","@typescript-eslint/eslint-plugin":"^2.6.1","@typescript-eslint/parser":"^2.6.1","babel-plugin-istanbul":"^6.1.1",changesets:"^1.0.2",cypress:"^9.4.1",eslint:"^6.6.0","eslint-config-prettier":"^6.5.0","eslint-plugin-prettier":"^3.1.1",fastify:"^3.27.1","fastify-static":"^4.5.0",lerna:"^4.0.0","parcel-bundler":"^1.12.4",prettier:"1.18.2",rollup:"^2.23.0","rollup-plugin-alias":"^2.2.0","rollup-plugin-copy":"^3.3.0","rollup-plugin-filesize":"^9.0.2","rollup-plugin-node-globals":"^1.4.0","rollup-plugin-serve":"^1.0.3","rollup-plugin-terser":"^6.1.0","rollup-plugin-typescript2":"^0.27.1","rollup-plugin-visualizer":"^4.0.4",shx:"^0.3.3","source-map-support":"^0.5.21","ts-node":"^10.5.0",typescript:"^3.7.5"},u0=["dist"],f0=["dotlottie","animation","web component","component","lit-element","player"],d0=["> 3%"],m0={access:"public"},g0={extends:"@istanbuljs/nyc-config-typescript",all:!0},Jc={name:Jm,version:Qm,description:t0,main:e0,module:r0,types:i0,homepage:n0,repository:s0,bugs:o0,author:a0,license:l0,scripts:h0,dependencies:c0,devDependencies:p0,files:u0,keywords:f0,browserslist:d0,publishConfig:m0,nyc:g0},Yt=t=>new Error("[dotLottie-player-component] ".concat(t)),Qc=t=>{let e="[dotLottie-player-component] ".concat(t);console.error(e)},ga=t=>{let e="[dotLottie-player-component] ".concat(t);console.warn(e)},tp,ep,rp,ip,np,dt,He,Pt;(function(t){t.Loading="loading",t.Playing="playing",t.Paused="paused",t.Stopped="stopped",t.Frozen="frozen",t.Error="error"})(dt||(dt={})),function(t){t.Normal="normal",t.Bounce="bounce"}(He||(He={})),function(t){t.Load="load",t.Error="error",t.Ready="ready",t.Play="play",t.Pause="pause",t.Stop="stop",t.Freeze="freeze",t.Loop="loop",t.Complete="complete",t.Rendered="rendered",t.Frame="frame"}(Pt||(Pt={}));var sp="dotlottie-player",Ct=class t extends vr{constructor(){super(),this.mode=He.Normal,this.autoplay=!1,this.background="transparent",this.controls=!1,this.direction=1,this.hover=!1,this.renderer="svg",this.speed=1,this.currentState=dt.Loading,this.intermission=1,this.activeAnimationId=null,this._counter=1,this._activeAnimationIndex=0,this._manifest={animations:[]}}static get properties(){return{mode:{type:String},autoplay:{type:Boolean},background:{type:String},controls:{type:Boolean},direction:{type:Number},hover:{type:Boolean},loop:{type:String},renderer:{type:String},speed:{type:Number},src:{type:String},currentState:{type:String},seeker:{type:Object},intermission:{type:Number},activeAnimationId:{type:String}}}_parseLoop(e){let r=parseInt(e,10);return Number.isInteger(r)&&r>0?(this._count=r,this._loop=!0,!0):typeof e=="string"&&["true","false"].includes(e)?(this._loop=e==="true",this._loop):(ga("loop must be a positive integer or a boolean"),!1)}_onVisibilityChange(){document.hidden&&this.currentState===dt.Playing?this.freeze():this.currentState===dt.Frozen&&this.play()}_handleSeekChange(e){if(!this._lottie||isNaN(e.target.value))return;let r=e.target.value/100*this._lottie.totalFrames;this.seek(r)}isLottie(e){let r=!1;return e.animations&&e.animations.length?(e.animations.forEach(i=>{this.isLottie(i)||(r=!0)}),r):["v","ip","op","layers","fr","w","h"].every(i=>Object.prototype.hasOwnProperty.call(e,i))}parseSrc(e){if(typeof e=="object")return e;try{return JSON.parse(e)}catch{return new URL(e,window.location.href).toString()}}async _fetchDotLottie(e){return await fetch(e,{method:"GET",mode:"cors",headers:{"Response-Type":"arraybuffer"}}).then(r=>r.arrayBuffer()).then(async r=>{let i=[],n={animations:[],manifest:void 0},s=await new Promise((a,l)=>{Km(new Uint8Array(r),(h,c)=>{h&&l(h),a(c)})}),o;if(s["manifest.json"]){let a=Gi(s["manifest.json"]),l=JSON.parse(a);if(!("animations"in l))throw Yt("Manifest not found");if(l.animations.length===0)throw Yt("No animations listed in the manifest");n.manifest=l;for(let h of l.animations)o=JSON.parse(Gi(s["animations/".concat(h.id,".json")])),"assets"in o&&o.assets.map(c=>{if(!c.p||!s["images/".concat(c.p)])return;let p=btoa(Gi(s["images/".concat(c.p)],!0));c.p="data:;base64,"+p,c.e=1}),i.push(o);return n.manifest=l,n.animations=i,n}throw Yt("No manifest found in file.")}).catch(r=>{throw Yt(r)})}async _fetchJsonFile(e){return await fetch(e,{method:"GET",mode:"cors",headers:{"Response-Type":"json"}}).then(r=>r.json()).then(r=>{let i=[],n={animations:[{id:e.substring(e.lastIndexOf("/")+1,e.lastIndexOf(".")),speed:1,loop:"true",direction:1}],description:"",author:"",generator:"dotLottie-player-component",revision:1,version:"1.0.0"},s={animations:[],manifest:void 0};return i.push(r),s.animations=i,s.manifest=n,s}).catch(r=>{throw Yt(r)})}async _fetchFileAndLoad(e){var r;let i={animations:[],manifest:void 0};if(i=((r=e.split(/[#?]/)[0].split(".").pop())===null||r===void 0?void 0:r.toLowerCase())==="json"?await this._fetchJsonFile(e):await this._fetchDotLottie(e),!i.animations||!i.manifest||i.animations.length===0)throw this.currentState=dt.Error,this.dispatchEvent(new CustomEvent(Pt.Error)),Yt(i.animations&&i.animations.length?"Manifest not found":"Animations are empty");if(this._animations=i.animations,this._manifest=i.manifest,this.activeAnimationId){let s=this._manifest.animations.findIndex(o=>o.id===this.activeAnimationId);s!==-1?this._activeAnimationIndex=s:ga("Active animation not found in manifest")}else if(this._manifest&&this._manifest.activeAnimationId){let s=this._manifest.animations.findIndex(o=>o.id===this._manifest.activeAnimationId);s!==-1?this._activeAnimationIndex=s:ga("Active animation not found in manifest")}let n=this._animations[this._activeAnimationIndex];if(n===void 0)throw Yt("No animation to load!");return n}_loadManifestOptions(e){if(this._requireAnimationsInTheManifest(),this._manifest.animations[e]===void 0)throw Yt("Animation not found in manifest");let{autoplay:r,direction:i,loop:n,playMode:s,speed:o,hover:a,intermission:l}=this._manifest.animations[e];r!==void 0&&(this.autoplay=r),i!==void 0&&(this.direction=i),n!==void 0&&(this.loop=n),s!==void 0&&(this.mode=s),o!==void 0&&(this.speed=o),a!==void 0&&(this.hover=a),l!==void 0&&(this.intermission=l)}_initListeners(){this.dispatchEvent(new CustomEvent(Pt.Load)),this._lottie.addEventListener("enterFrame",()=>{this.seeker=this._lottie.currentFrame/this._lottie.totalFrames*100,this.dispatchEvent(new CustomEvent(Pt.Frame,{detail:{frame:this._lottie.currentFrame,seeker:this.seeker}}))}),this._lottie.addEventListener("complete",()=>{if(this.currentState===dt.Playing){if((!this._loop||this._count&&this._counter>=this._count)&&(this.dispatchEvent(new CustomEvent(Pt.Complete)),this.mode!==He.Bounce||this._lottie.currentFrame===0))return;this.mode===He.Bounce?(this._count&&(this._counter+=.5),setTimeout(()=>{this.dispatchEvent(new CustomEvent(Pt.Loop)),this.currentState===dt.Playing&&(this._lottie.setDirection(-1*this._lottie.playDirection),this._lottie.play())},this.intermission)):(this._count&&(this._counter+=1),window.setTimeout(()=>{this.dispatchEvent(new CustomEvent(Pt.Loop)),this.currentState===dt.Playing&&(this.direction===-1?(this.seek("99%"),this.play()):(this._lottie.stop(),this.play()))},this.intermission))}else this.dispatchEvent(new CustomEvent(Pt.Complete))}),this._lottie.addEventListener("DOMLoaded",()=>{this.dispatchEvent(new CustomEvent(Pt.Ready))}),this._lottie.addEventListener("data_ready",()=>{this.dispatchEvent(new CustomEvent(Pt.Load))}),this._lottie.addEventListener("data_failed",()=>{this.currentState=dt.Error,this.dispatchEvent(new CustomEvent(Pt.Error))}),this.container.addEventListener("mouseenter",()=>{this.hover&&this.currentState!==dt.Playing&&this.play()}),this.container.addEventListener("mouseleave",()=>{this.hover&&this.currentState===dt.Playing&&this.stop()})}async load(e,r,i){if(!this.shadowRoot)return;let n={container:this.container,loop:!1,autoplay:!1,renderer:this.renderer,rendererSettings:r||{scaleMode:"noScale",clearCanvas:!1,progressiveLoad:!0,hideOnTransparent:!0}};try{let s=this.parseSrc(e),o=null;if(typeof s=="string")o=await this._fetchFileAndLoad(s);else if(typeof s=="object"&&!this.isLottie(s))throw Yt("Load method failing. Object is not a valid Lottie.");if(this._lottie&&this._lottie.destroy(),i!==void 0)for(let[a,l]of Object.entries(i))a==="playMode"?this.mode=l==="normal"?He.Normal:He.Bounce:l!==void 0&&(this[a]=l);else if(this._activeAnimationIndex===0||this._manifest.animations[this._activeAnimationIndex].id===this.activeAnimationId||this._manifest.animations[this._activeAnimationIndex].id===this._manifest.activeAnimationId){let a=this._manifest.animations[this._activeAnimationIndex],l=Object.keys(t.properties),h=Array.from(this.getAttributeNames());for(let p of h){let f=this.getAttribute(p);f&&(this[p]=f)}let c=l.filter(p=>!h.includes(p.toLowerCase())&&this._manifest.animations[this._activeAnimationIndex].hasOwnProperty(p));for(let p of c){let f=a[p];f!==void 0&&(p==="playMode"?this.mode=f==="normal"?He.Normal:He.Bounce:this[p]=f)}}else this._loadManifestOptions(this._activeAnimationIndex);this._lottie=Bm.loadAnimation(Object.assign(Object.assign({},n),{animationData:o!==null?o:s}))}catch(s){return this.currentState=dt.Error,this.dispatchEvent(new CustomEvent(Pt.Error)),void console.error(s)}if(!this._lottie)throw this.currentState=dt.Error,this.dispatchEvent(new CustomEvent(Pt.Error)),Yt("Player failed to initialize.");this._initListeners(),this.setSpeed(this.speed),this.setDirection(this.direction),this.autoplay&&(this.direction===-1&&this.seek("99%"),this.play())}getActiveId(){return this._manifest.animations?this._manifest.animations[this._activeAnimationIndex].id:null}getActiveAnimationIndex(){return this._activeAnimationIndex}animationCount(){return this._animations?this._animations.length:0}getManifest(){return this._manifest}getLottie(){return this._lottie}getVersions(){return{lottieWebVersion:"".concat(Jc.dependencies["lottie-web"]),dotLottiePlayerVersion:"".concat(Jc.version)}}_requireAnimationsInTheManifest(){if(!this._manifest.animations.length)throw Yt("No animations found in manifest.")}_requireAnimationsToBeLoaded(){var e;if(!(!((e=this._animations)===null||e===void 0)&&e.length))throw Yt("No animations have been loaded.")}previous(e){this._activeAnimationIndex=(this._activeAnimationIndex-1+this._manifest.animations.length)%this._manifest.animations.length,this.play(this._activeAnimationIndex,e)}next(e){this._activeAnimationIndex=(this._activeAnimationIndex+1)%this._manifest.animations.length,this.play(this._activeAnimationIndex,e)}reset(){this._manifest&&this._manifest.activeAnimationId?this.play(this._manifest.activeAnimationId):this.activeAnimationId?this.play(this.activeAnimationId):this.play(0)}_validateAnimationIndex(e){if(isNaN(e)||e<0||e>=this._manifest.animations.length)throw Yt("Animation index ".concat(e," is out of bounds."))}play(e,r){if(this._lottie){if(this._requireAnimationsInTheManifest(),this._requireAnimationsToBeLoaded(),e===void 0)return this._lottie.play(),this.currentState=dt.Playing,void this.dispatchEvent(new CustomEvent(Pt.Play));if(this._requireAnimationsToBeLoaded(),this._requireAnimationsInTheManifest(),e!==void 0){if(!this._animations)throw Yt("No animations have been loaded.");if(this._requireAnimationsInTheManifest(),typeof e=="string"){let i=this._manifest.animations.findIndex(n=>n.id===e);i!==-1?(this._activeAnimationIndex=i,this.load(this._animations[this._activeAnimationIndex],{playbackOptions:r})):Qc("No animation with the id '".concat(e,"' was found."))}else typeof e=="number"&&(this._validateAnimationIndex(e),this._manifest.animations&&this._manifest.animations[e]?(this._activeAnimationIndex=e,this.load(this._animations[this._activeAnimationIndex],{playbackOptions:r})):Qc("Animation not found at index: ".concat(e)))}}}pause(){this._lottie&&(this._lottie.pause(),this.currentState=dt.Paused,this.dispatchEvent(new CustomEvent(Pt.Pause)))}stop(){this._lottie&&(this._counter=0,this._lottie.stop(),this.direction===-1&&this._lottie.goToAndStop(this._lottie.totalFrames,!0),this.currentState=dt.Stopped,this.dispatchEvent(new CustomEvent(Pt.Stop)))}seek(e){if(!this._lottie)return;typeof e=="number"&&(e=Math.round(e));let r=/^(\d+)(%?)$/.exec(e.toString());if(!r)return;let i=r[2]==="%"?this._lottie.totalFrames*Number(r[1])/100:Number(r[1]);this.seeker=i,this.currentState===dt.Playing?this._lottie.goToAndPlay(i,!0):(this._lottie.goToAndStop(i,!0),this._lottie.pause())}snapshot(){let e=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];if(!this.shadowRoot)return;let r=this.shadowRoot.querySelector(".animation svg"),i=new XMLSerializer().serializeToString(r);if(e){let n=document.createElement("a");n.href="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(i),n.download="download_"+this.seeker+".svg",document.body.appendChild(n),n.click(),document.body.removeChild(n)}return i}freeze(){this._lottie&&(this._lottie.pause(),this.currentState=dt.Frozen,this.dispatchEvent(new CustomEvent(Pt.Freeze)))}setSpeed(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;this._lottie&&this._lottie.setSpeed(e)}setDirection(e){this._lottie&&this._lottie.setDirection(e)}setLooping(e){this._lottie&&(this._lottie.loop=this._parseLoop(e))}isLooping(){return!!this._loop&&this._loop}togglePlay(){return this.currentState===dt.Playing?this.pause():this.play()}toggleLooping(){let e=!this._loop;this.setLooping(e.toString())}static get styles(){return zm}async firstUpdated(){"IntersectionObserver"in window&&(this._io=new IntersectionObserver(e=>{e[0].isIntersecting?this.currentState===dt.Frozen&&this.play():this.currentState===dt.Playing&&this.freeze()}),this._io.observe(this.container)),document.hidden!==void 0&&document.addEventListener("visibilitychange",()=>this._onVisibilityChange()),this.loop?this._parseLoop(this.loop):this.hasAttribute("loop")&&this._parseLoop("true"),this.src&&await this.load(this.src),this.dispatchEvent(new CustomEvent(Pt.Rendered))}disconnectedCallback(){this._io&&(this._io.disconnect(),this._io=void 0),this._lottie&&this._lottie.destroy(),document.removeEventListener("visibilitychange",()=>this._onVisibilityChange())}renderControls(){let e=this.currentState===dt.Playing,r=this.currentState===dt.Paused,i=this.currentState===dt.Stopped;return gs(tp||(tp=Br([`
|
|
397
422
|
<div id="lottie-controls" aria-label="lottie-animation-controls" class="toolbar">
|
|
398
423
|
<button
|
|
399
424
|
id="lottie-play-button"
|
|
@@ -450,34 +475,34 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
450
475
|
</svg>
|
|
451
476
|
</button>
|
|
452
477
|
</div>
|
|
453
|
-
`])),this.togglePlay,e||r?"active":"",
|
|
478
|
+
`])),this.togglePlay,e||r?"active":"",gs(e?ep||(ep=Br([`
|
|
454
479
|
<svg width="24" height="24" aria-hidden="true" focusable="false">
|
|
455
480
|
<path d="M14.016 5.016H18v13.969h-3.984V5.016zM6 18.984V5.015h3.984v13.969H6z" />
|
|
456
481
|
</svg>
|
|
457
|
-
`])):
|
|
482
|
+
`])):rp||(rp=Br([`
|
|
458
483
|
<svg width="24" height="24" aria-hidden="true" focusable="false">
|
|
459
484
|
<path d="M8.016 5.016L18.985 12 8.016 18.984V5.015z" />
|
|
460
485
|
</svg>
|
|
461
|
-
`]))),this.stop,i?"active":"",this.seeker,this._handleSeekChange,()=>{this._prevState=this.currentState,this.freeze()},()=>{this._prevState===dt.Playing&&this.play(),this.seek(this._lottie.currentFrame)},this.seeker,this.toggleLooping,this._loop?"active":"")}render(){let e=this.controls?"main controls":"main",r=this.controls?"animation controls":"animation";return
|
|
486
|
+
`]))),this.stop,i?"active":"",this.seeker,this._handleSeekChange,()=>{this._prevState=this.currentState,this.freeze()},()=>{this._prevState===dt.Playing&&this.play(),this.seek(this._lottie.currentFrame)},this.seeker,this.toggleLooping,this._loop?"active":"")}render(){let e=this.controls?"main controls":"main",r=this.controls?"animation controls":"animation";return gs(ip||(ip=Br([`
|
|
462
487
|
<div id="animation-container" class=`,` lang="en" role="img">
|
|
463
488
|
<div id="animation" class=`,' style="background:',`;">
|
|
464
489
|
`,`
|
|
465
490
|
</div>
|
|
466
491
|
`,`
|
|
467
492
|
</div>
|
|
468
|
-
`])),e,r,this.background,this.currentState===dt.Error?
|
|
493
|
+
`])),e,r,this.background,this.currentState===dt.Error?gs(np||(np=Br([' <div class="error">\u26A0\uFE0F</div> ']))):void 0,this.controls?this.renderControls():void 0)}};zt([Lm(".animation")],Ct.prototype,"container",void 0),zt([Ht()],Ct.prototype,"mode",void 0),zt([Ht({type:Boolean})],Ct.prototype,"autoplay",void 0),zt([Ht({type:String})],Ct.prototype,"background",void 0),zt([Ht({type:Boolean})],Ct.prototype,"controls",void 0),zt([Ht({type:Number})],Ct.prototype,"direction",void 0),zt([Ht({type:Boolean})],Ct.prototype,"hover",void 0),zt([Ht({type:String})],Ct.prototype,"loop",void 0),zt([Ht({type:String})],Ct.prototype,"renderer",void 0),zt([Ht({type:Number})],Ct.prototype,"speed",void 0),zt([Ht({type:String})],Ct.prototype,"src",void 0),zt([Ht({type:String})],Ct.prototype,"currentState",void 0),zt([Ht()],Ct.prototype,"seeker",void 0),zt([Ht()],Ct.prototype,"intermission",void 0),zt([Ht({type:String})],Ct.prototype,"activeAnimationId",void 0),customElements.get(sp)||Dm(sp)(Ct);var en,tn=class extends Dt(lt){constructor(){super();X(this,"render",()=>J`
|
|
469
494
|
<button class="leading-0 relative inline-block h-14 w-14 rounded-full shadow-xl">
|
|
470
|
-
${this.demo?
|
|
495
|
+
${this.demo?J`
|
|
471
496
|
<m-pulse-dot>
|
|
472
497
|
<!-- -->
|
|
473
|
-
${$(this,
|
|
498
|
+
${$(this,en).call(this)}
|
|
474
499
|
</m-pulse-dot>
|
|
475
|
-
`:
|
|
500
|
+
`:J`
|
|
476
501
|
<!-- -->
|
|
477
|
-
${$(this,
|
|
502
|
+
${$(this,en).call(this)}
|
|
478
503
|
`}
|
|
479
504
|
</button>
|
|
480
|
-
`);q(this,
|
|
505
|
+
`);q(this,en,()=>J`
|
|
481
506
|
<div class="h-full w-full rounded-full bg-slate-800 font-sans text-sm text-white">
|
|
482
507
|
<div class="${this.dialogShown?"invisible opacity-0":"visible opacity-100"} absolute top-0 left-0 right-0 bottom-0 inline-flex items-center justify-center transition-opacity">
|
|
483
508
|
<dotlottie-player autoplay loop mode="normal" src="https://assets5.lottiefiles.com/dotlotties/dlf10_hISLmVmo2x.lottie"></dotlottie-player>
|
|
@@ -486,38 +511,63 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
486
511
|
<span class="inline-block h-5 w-5 text-lg leading-5">✕</span>
|
|
487
512
|
</div>
|
|
488
513
|
</div>
|
|
489
|
-
`);this.dialogShown=!1,this.demo=!1}};
|
|
514
|
+
`);this.dialogShown=!1,this.demo=!1}};en=new WeakMap,X(tn,"styles",$t`
|
|
490
515
|
:host {
|
|
491
516
|
line-height: 0;
|
|
492
517
|
}
|
|
493
|
-
`),X(Qi,"properties",{dialogShown:{type:Boolean,attribute:"dialog-shown"},demo:{type:Boolean,attribute:"demo"}});customElements.define("mw-widget-toggle",Qi);var Ns={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Hs=t=>(...e)=>({_$litDirective$:t,values:e}),ni=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,r,i){this._$Ct=e,this._$AM=r,this._$Ci=i}_$AS(e,r){return this.update(e,r)}update(e,r){return this.render(...r)}};var{I:d0}=Yl;var Xp=()=>document.createComment(""),si=(t,e,r)=>{var i;let n=t._$AA.parentNode,s=e===void 0?t._$AB:e._$AA;if(r===void 0){let o=n.insertBefore(Xp(),s),a=n.insertBefore(Xp(),s);r=new d0(o,a,t,t.options)}else{let o=r._$AB.nextSibling,a=r._$AM,l=a!==t;if(l){let h;(i=r._$AQ)===null||i===void 0||i.call(r,t),r._$AM=t,r._$AP!==void 0&&(h=t._$AU)!==a._$AU&&r._$AP(h)}if(o!==s||l){let h=r._$AA;for(;h!==o;){let c=h.nextSibling;n.insertBefore(h,s),h=c}}}return r},rr=(t,e,r=t)=>(t._$AI(e,r),t),m0={},Kp=(t,e=m0)=>t._$AH=e,Jp=t=>t._$AH,js=t=>{var e;(e=t._$AP)===null||e===void 0||e.call(t,!1,!0);let r=t._$AA,i=t._$AB.nextSibling;for(;r!==i;){let n=r.nextSibling;r.remove(),r=n}};var Qp=(t,e,r)=>{let i=new Map;for(let n=e;n<=r;n++)i.set(t[n],n);return i},tu=Hs(class extends ni{constructor(t){if(super(t),t.type!==Ns.CHILD)throw Error("repeat() can only be used in text expressions")}ht(t,e,r){let i;r===void 0?r=e:e!==void 0&&(i=e);let n=[],s=[],o=0;for(let a of t)n[o]=i?i(a,o):o,s[o]=r(a,o),o++;return{values:s,keys:n}}render(t,e,r){return this.ht(t,e,r).values}update(t,[e,r,i]){var n;let s=Jp(t),{values:o,keys:a}=this.ht(e,r,i);if(!Array.isArray(s))return this.ut=a,o;let l=(n=this.ut)!==null&&n!==void 0?n:this.ut=[],h=[],c,p,f=0,u=s.length-1,m=0,g=o.length-1;for(;f<=u&&m<=g;)if(s[f]===null)f++;else if(s[u]===null)u--;else if(l[f]===a[m])h[m]=rr(s[f],o[m]),f++,m++;else if(l[u]===a[g])h[g]=rr(s[u],o[g]),u--,g--;else if(l[f]===a[g])h[g]=rr(s[f],o[g]),si(t,h[g+1],s[f]),f++,g--;else if(l[u]===a[m])h[m]=rr(s[u],o[m]),si(t,s[f],s[u]),u--,m++;else if(c===void 0&&(c=Qp(a,m,g),p=Qp(l,f,u)),c.has(l[f]))if(c.has(l[u])){let d=p.get(a[m]),y=d!==void 0?s[d]:null;if(y===null){let v=si(t,s[f]);rr(v,o[m]),h[m]=v}else h[m]=rr(y,o[m]),si(t,s[f],y),s[d]=null;m++}else js(s[u]),u--;else js(s[f]),f++;for(;m<=g;){let d=si(t,h[g+1]);rr(d,o[m]),h[m++]=d}for(;f<=u;){let d=s[f++];d!==null&&js(d)}return this.ut=a,Kp(t,h),ve}});var en=class extends ni{constructor(e){if(super(e),this.it=_t,e.type!==Ns.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===_t||e==null)return this._t=void 0,this.it=e;if(e===ve)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let r=[e];return r.raw=r,this._t={_$litType$:this.constructor.resultType,strings:r,values:[]}}};en.directiveName="unsafeHTML",en.resultType=1;var eu=Hs(en);var Wa=_i({darkMode:["class"],theme:{extend:{fontFamily:{sans:["system-ui","Roboto","Helvetica","Arial","sans-serif"],serif:["ui-serif","Georgia","Cambria","serif"],mono:["ui-monospace","Menlo","Monaco","monospace"]}}},presets:[$n(),Rn(),Vn(),Bn()],hash:!1});var Za=t=>zn(Wa)(t);var rn,Yt,Ce,nn,Ya,Gs=class{constructor(e,r){q(this,nn);q(this,rn,void 0);q(this,Yt,void 0);q(this,Ce,void 0);if(!e)throw new Error("host is required");if(!r)throw new Error("config is required");ft(this,rn,e),$(this,rn).addController(this),ft(this,Yt,r)}reconnect(e){ft(this,Yt,e),$(this,Ce)?.close(),ft(this,Ce,rt(this,nn,Ya).call(this))}hostConnected(){ft(this,Ce,rt(this,nn,Ya).call(this))}hostDisconnected(){$(this,Ce)?.close(),ft(this,Ce,void 0)}send(e){$(this,Ce)?.send(e)}render(e={}){switch($(this,Ce)?.readyState){case WebSocket.CLOSED:return e.closed?.();case WebSocket.CLOSING:return e.closing?.();case WebSocket.CONNECTING:return e.connecting?.();case WebSocket.OPEN:return e.open?.()}}};rn=new WeakMap,Yt=new WeakMap,Ce=new WeakMap,nn=new WeakSet,Ya=function(){let e=new WebSocket($(this,Yt).url);return $(this,Yt).onClose&&(e.onclose=$(this,Yt).onClose),$(this,Yt).onOpen&&(e.onopen=$(this,Yt).onOpen),$(this,Yt).onError&&(e.onerror=$(this,Yt).onError),$(this,Yt).onMessage&&(e.onmessage=$(this,Yt).onMessage),e};function ru({resume:t=!1,...e}={}){let r=new URLSearchParams(window.location.search);t&&r.set("resume","1");for(let[i,n]of Object.entries(e))r.set(i,n);return`?${r.toString()}`}var Ge,jt,oi,ai,li,qs,sn,Xa,on,Ka,an,Ja,ln,Qa,Ws,iu,Us=class{constructor(e,r){q(this,li);q(this,sn);q(this,on);q(this,an);q(this,ln);q(this,Ws);q(this,Ge,void 0);q(this,jt,void 0);q(this,oi,void 0);q(this,ai,!1);X(this,"isStreaming",!1);X(this,"messages",[]);e.addController(this),ft(this,Ge,e),ft(this,jt,r),ft(this,oi,new Gs(e,{url:`${$(this,jt).apiURL}${ru({...$(this,jt).queryExtra??{}})}`,onOpen:i=>rt(this,sn,Xa).call(this,i),onMessage:i=>rt(this,on,Ka).call(this,JSON.parse(i.data)),onError:i=>rt(this,an,Ja).call(this,i),onClose:i=>rt(this,ln,Qa).call(this,i)}))}sendUserInput(e){rt(this,li,qs).call(this,{type:"USER_INPUT",value:e},{expectStreaming:!0})}sendUserCancel(){rt(this,li,qs).call(this,{type:"USER_CANCEL"})}reconnect(){$(this,jt).onReconnect?.(),$(this,oi).reconnect({url:`${$(this,jt).apiURL}${ru({...$(this,jt).queryExtra??{},resume:!0})}`,onOpen:e=>rt(this,sn,Xa).call(this,e),onMessage:e=>rt(this,on,Ka).call(this,JSON.parse(e.data)),onError:e=>rt(this,an,Ja).call(this,e),onClose:e=>rt(this,ln,Qa).call(this,e)})}hostConnected(){ft(this,ai,!0)}hostDisconnected(){ft(this,ai,!1)}};Ge=new WeakMap,jt=new WeakMap,oi=new WeakMap,ai=new WeakMap,li=new WeakSet,qs=function(e,{expectStreaming:r=!1}={}){r&&(this.isStreaming=!0,$(this,Ge).requestUpdate()),$(this,oi).send(JSON.stringify(e))},sn=new WeakSet,Xa=function(e){this.messages.length>0&&setTimeout(()=>{rt(this,li,qs).call(this,{type:"RESUME",messages:rt(this,Ws,iu).call(this)})},10)},on=new WeakSet,Ka=function(e){switch(e.type){case"NEW_MESSAGE":{this.messages.push(e.message),$(this,Ge).requestUpdate(),$(this,jt).onNewMessage?.(e.message);break}case"UPDATE_MESSAGE":{let r=this.messages.find(i=>i.id===e.message.id);if(r)Object.assign(r,e.message),$(this,Ge).requestUpdate(),$(this,jt).onUpdateMessage?.(e);else throw new Error(`Message with id ${e.message.id} not found`);break}case"MESSAGE_DONE":{let r=this.messages.find(i=>i.id===e.message.id);if(r)Object.assign(r,e.message),$(this,Ge).requestUpdate(),$(this,jt).onMessageDone?.(e);else throw new Error(`Message with id ${e.message.id} not found`);this.isStreaming=!1;break}case"ERROR":{$(this,jt).onMessageError?.(e);break}default:console.warn(`Unknown message type: ${JSON.stringify(e)}`)}},an=new WeakSet,Ja=function(e){$(this,jt).onError?.(e)},ln=new WeakSet,Qa=function(e){this.isStreaming=!1,$(this,Ge).requestUpdate(),$(this,ai)&&this.reconnect(),$(this,jt).onClose?.()},Ws=new WeakSet,iu=function(){return this.messages.map(({id:e,role:r,content:i,timestamp:n})=>({id:e,role:r,content:i,timestamp:n}))};var nu=document.location.hostname==="localhost"||document.location.hostname==="127.0.0.1"?"ws://localhost:8787/chat/ws-bnf-widget":"wss://molin.ai/chat/ws-bnf-widget";function su(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,i)}return r}function nt(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?su(Object(r),!0).forEach(function(i){st(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):su(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function kr(t){return kr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kr(t)}function Vt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ou(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Bt(t,e,r){return e&&ou(t.prototype,e),r&&ou(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function st(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Tu(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ol(t,e)}function ro(t){return ro=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ro(t)}function ol(t,e){return ol=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},ol(t,e)}function g0(t,e){if(t==null)return{};var r,i,n=function(o,a){if(o==null)return{};var l,h,c={},p=Object.keys(o);for(h=0;h<p.length;h++)l=p[h],a.indexOf(l)>=0||(c[l]=o[l]);return c}(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i<s.length;i++)r=s[i],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function y0(t,e){if(e&&(typeof e=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(t)}function Mu(t){var e=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,i=ro(t);if(e){var n=ro(this).constructor;r=Reflect.construct(i,arguments,n)}else r=i.apply(this,arguments);return y0(this,r)}}function ao(t,e){return function(r){if(Array.isArray(r))return r}(t)||function(r,i){var n=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(n!=null){var s,o,a=[],l=!0,h=!1;try{for(n=n.call(r);!(l=(s=n.next()).done)&&(a.push(s.value),!i||a.length!==i);l=!0);}catch(c){h=!0,o=c}finally{try{l||n.return==null||n.return()}finally{if(h)throw o}}return a}}(t,e)||wl(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
494
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function
|
|
495
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function
|
|
496
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s,o=!0,a=!1;return{s:function(){r=r.call(t)},n:function(){var l=r.next();return o=l.done,l},e:function(l){a=!0,s=l},f:function(){try{o||r.return==null||r.return()}finally{if(a)throw s}}}}var
|
|
518
|
+
`),X(tn,"properties",{dialogShown:{type:Boolean,attribute:"dialog-shown"},demo:{type:Boolean,attribute:"demo"}});customElements.define("mw-widget-toggle",tn);var Ns={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},js=t=>(...e)=>({_$litDirective$:t,values:e}),oi=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,r,i){this._$Ct=e,this._$AM=r,this._$Ci=i}_$AS(e,r){return this.update(e,r)}update(e,r){return this.render(...r)}};var{I:y0}=Kl;var Jp=()=>document.createComment(""),ai=(t,e,r)=>{var i;let n=t._$AA.parentNode,s=e===void 0?t._$AB:e._$AA;if(r===void 0){let o=n.insertBefore(Jp(),s),a=n.insertBefore(Jp(),s);r=new y0(o,a,t,t.options)}else{let o=r._$AB.nextSibling,a=r._$AM,l=a!==t;if(l){let h;(i=r._$AQ)===null||i===void 0||i.call(r,t),r._$AM=t,r._$AP!==void 0&&(h=t._$AU)!==a._$AU&&r._$AP(h)}if(o!==s||l){let h=r._$AA;for(;h!==o;){let c=h.nextSibling;n.insertBefore(h,s),h=c}}}return r},nr=(t,e,r=t)=>(t._$AI(e,r),t),v0={},Qp=(t,e=v0)=>t._$AH=e,tu=t=>t._$AH,Gs=t=>{var e;(e=t._$AP)===null||e===void 0||e.call(t,!1,!0);let r=t._$AA,i=t._$AB.nextSibling;for(;r!==i;){let n=r.nextSibling;r.remove(),r=n}};var eu=(t,e,r)=>{let i=new Map;for(let n=e;n<=r;n++)i.set(t[n],n);return i},qs=js(class extends oi{constructor(t){if(super(t),t.type!==Ns.CHILD)throw Error("repeat() can only be used in text expressions")}ht(t,e,r){let i;r===void 0?r=e:e!==void 0&&(i=e);let n=[],s=[],o=0;for(let a of t)n[o]=i?i(a,o):o,s[o]=r(a,o),o++;return{values:s,keys:n}}render(t,e,r){return this.ht(t,e,r).values}update(t,[e,r,i]){var n;let s=tu(t),{values:o,keys:a}=this.ht(e,r,i);if(!Array.isArray(s))return this.ut=a,o;let l=(n=this.ut)!==null&&n!==void 0?n:this.ut=[],h=[],c,p,f=0,u=s.length-1,m=0,g=o.length-1;for(;f<=u&&m<=g;)if(s[f]===null)f++;else if(s[u]===null)u--;else if(l[f]===a[m])h[m]=nr(s[f],o[m]),f++,m++;else if(l[u]===a[g])h[g]=nr(s[u],o[g]),u--,g--;else if(l[f]===a[g])h[g]=nr(s[f],o[g]),ai(t,h[g+1],s[f]),f++,g--;else if(l[u]===a[m])h[m]=nr(s[u],o[m]),ai(t,s[f],s[u]),u--,m++;else if(c===void 0&&(c=eu(a,m,g),p=eu(l,f,u)),c.has(l[f]))if(c.has(l[u])){let d=p.get(a[m]),y=d!==void 0?s[d]:null;if(y===null){let v=ai(t,s[f]);nr(v,o[m]),h[m]=v}else h[m]=nr(y,o[m]),ai(t,s[f],y),s[d]=null;m++}else Gs(s[u]),u--;else Gs(s[f]),f++;for(;m<=g;){let d=ai(t,h[g+1]);nr(d,o[m]),h[m++]=d}for(;f<=u;){let d=s[f++];d!==null&&Gs(d)}return this.ut=a,Qp(t,h),_e}});var rn=class extends oi{constructor(e){if(super(e),this.it=_t,e.type!==Ns.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===_t||e==null)return this._t=void 0,this.it=e;if(e===_e)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let r=[e];return r.raw=r,this._t={_$litType$:this.constructor.resultType,strings:r,values:[]}}};rn.directiveName="unsafeHTML",rn.resultType=1;var ru=js(rn);var Ya=wi({darkMode:["class"],theme:{extend:{fontFamily:{sans:["system-ui","Roboto","Helvetica","Arial","sans-serif"],serif:["ui-serif","Georgia","Cambria","serif"],mono:["ui-monospace","Menlo","Monaco","monospace"]}}},presets:[Vn(),Rn(),Bn(),zn()],hash:!1});var Xa=t=>Hn(Ya)(t);var nn,Xt,Me,sn,Ka,Us=class{constructor(e,r){q(this,sn);q(this,nn,void 0);q(this,Xt,void 0);q(this,Me,void 0);if(!e)throw new Error("host is required");if(!r)throw new Error("config is required");ft(this,nn,e),$(this,nn).addController(this),ft(this,Xt,r)}reconnect(e){ft(this,Xt,e),$(this,Me)?.close(),ft(this,Me,nt(this,sn,Ka).call(this))}hostConnected(){ft(this,Me,nt(this,sn,Ka).call(this))}hostDisconnected(){$(this,Me)?.close(),ft(this,Me,void 0)}send(e){$(this,Me)?.send(e)}render(e={}){switch($(this,Me)?.readyState){case WebSocket.CLOSED:return e.closed?.();case WebSocket.CLOSING:return e.closing?.();case WebSocket.CONNECTING:return e.connecting?.();case WebSocket.OPEN:return e.open?.()}}};nn=new WeakMap,Xt=new WeakMap,Me=new WeakMap,sn=new WeakSet,Ka=function(){let e=new WebSocket($(this,Xt).url());return $(this,Xt).onClose&&(e.onclose=$(this,Xt).onClose),$(this,Xt).onOpen&&(e.onopen=$(this,Xt).onOpen),$(this,Xt).onError&&(e.onerror=$(this,Xt).onError),$(this,Xt).onMessage&&(e.onmessage=$(this,Xt).onMessage),e};function iu({resume:t=!1,...e}={}){let r=new URLSearchParams(window.location.search);t&&r.set("resume","1");for(let[i,n]of Object.entries(e))r.set(i,n);return`?${r.toString()}`}var Ue,jt,li,hi,ci,Ws,on,Ja,an,Qa,ln,tl,hn,el,Ys,nu,Zs=class{constructor(e,r){q(this,ci);q(this,on);q(this,an);q(this,ln);q(this,hn);q(this,Ys);q(this,Ue,void 0);q(this,jt,void 0);q(this,li,void 0);q(this,hi,!1);X(this,"isStreaming",!1);X(this,"messages",[]);e.addController(this),ft(this,Ue,e),ft(this,jt,r),ft(this,li,new Us(e,{url:()=>`${$(this,jt).apiURL}${iu({...$(this,jt).queryExtra?.()??{}})}`,onOpen:i=>nt(this,on,Ja).call(this,i),onMessage:i=>nt(this,an,Qa).call(this,JSON.parse(i.data)),onError:i=>nt(this,ln,tl).call(this,i),onClose:i=>nt(this,hn,el).call(this,i)}))}sendUserInput(e){nt(this,ci,Ws).call(this,{type:"USER_INPUT",value:e},{expectStreaming:!0})}sendUserCancel(){nt(this,ci,Ws).call(this,{type:"USER_CANCEL"})}reconnect(){$(this,jt).onReconnect?.(),$(this,li).reconnect({url:`${$(this,jt).apiURL}${iu({...$(this,jt).queryExtra?.()??{},resume:!0})}`,onOpen:e=>nt(this,on,Ja).call(this,e),onMessage:e=>nt(this,an,Qa).call(this,JSON.parse(e.data)),onError:e=>nt(this,ln,tl).call(this,e),onClose:e=>nt(this,hn,el).call(this,e)})}hostConnected(){ft(this,hi,!0)}hostDisconnected(){ft(this,hi,!1)}};Ue=new WeakMap,jt=new WeakMap,li=new WeakMap,hi=new WeakMap,ci=new WeakSet,Ws=function(e,{expectStreaming:r=!1}={}){r&&(this.isStreaming=!0,$(this,Ue).requestUpdate()),$(this,li).send(JSON.stringify(e))},on=new WeakSet,Ja=function(e){this.messages.length>0&&setTimeout(()=>{nt(this,ci,Ws).call(this,{type:"RESUME",messages:nt(this,Ys,nu).call(this)})},10)},an=new WeakSet,Qa=function(e){switch(e.type){case"NEW_MESSAGE":{this.messages.push(e.message),$(this,Ue).requestUpdate(),$(this,jt).onNewMessage?.(e.message);break}case"UPDATE_MESSAGE":{let r=this.messages.find(i=>i.id===e.message.id);if(r)Object.assign(r,e.message),$(this,Ue).requestUpdate(),$(this,jt).onUpdateMessage?.(e);else throw new Error(`Message with id ${e.message.id} not found`);break}case"MESSAGE_DONE":{let r=this.messages.find(i=>i.id===e.message.id);if(r)Object.assign(r,e.message),$(this,Ue).requestUpdate(),$(this,jt).onMessageDone?.(e);else throw new Error(`Message with id ${e.message.id} not found`);this.isStreaming=!1;break}case"ERROR":{$(this,jt).onMessageError?.(e);break}default:console.warn(`Unknown message type: ${JSON.stringify(e)}`)}},ln=new WeakSet,tl=function(e){$(this,jt).onError?.(e)},hn=new WeakSet,el=function(e){this.isStreaming=!1,$(this,Ue).requestUpdate(),$(this,hi)&&this.reconnect(),$(this,jt).onClose?.()},Ys=new WeakSet,nu=function(){return this.messages.map(({id:e,role:r,content:i,timestamp:n})=>({id:e,role:r,content:i,timestamp:n}))};var su=document.location.hostname==="localhost"||document.location.hostname==="127.0.0.1"?"ws://localhost:8787/chat/ws-bnf-widget":"wss://molin.ai/chat/ws-bnf-widget";function ou(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,i)}return r}function it(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?ou(Object(r),!0).forEach(function(i){st(t,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ou(Object(r)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(r,i))})}return t}function Ar(t){return Ar=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ar(t)}function Rt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function au(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Bt(t,e,r){return e&&au(t.prototype,e),r&&au(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function st(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Mu(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ll(t,e)}function no(t){return no=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},no(t)}function ll(t,e){return ll=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},ll(t,e)}function b0(t,e){if(t==null)return{};var r,i,n=function(o,a){if(o==null)return{};var l,h,c={},p=Object.keys(o);for(h=0;h<p.length;h++)l=p[h],a.indexOf(l)>=0||(c[l]=o[l]);return c}(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(i=0;i<s.length;i++)r=s[i],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function _0(t,e){if(e&&(typeof e=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return function(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}(t)}function Fu(t){var e=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var r,i=no(t);if(e){var n=no(this).constructor;r=Reflect.construct(i,arguments,n)}else r=i.apply(this,arguments);return _0(this,r)}}function ho(t,e){return function(r){if(Array.isArray(r))return r}(t)||function(r,i){var n=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(n!=null){var s,o,a=[],l=!0,h=!1;try{for(n=n.call(r);!(l=(s=n.next()).done)&&(a.push(s.value),!i||a.length!==i);l=!0);}catch(c){h=!0,o=c}finally{try{l||n.return==null||n.return()}finally{if(h)throw o}}return a}}(t,e)||Sl(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
519
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function hl(t){return function(e){if(Array.isArray(e))return cl(e)}(t)||function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(t)||Sl(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
520
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Sl(t,e){if(t){if(typeof t=="string")return cl(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?cl(t,e):void 0}}function cl(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,i=new Array(e);r<e;r++)i[r]=t[r];return i}function cr(t,e){var r=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=Sl(t))||e&&t&&typeof t.length=="number"){r&&(t=r);var i=0,n=function(){};return{s:n,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(l){throw l},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
521
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s,o=!0,a=!1;return{s:function(){r=r.call(t)},n:function(){var l=r.next();return o=l.done,l},e:function(l){a=!0,s=l},f:function(){try{o||r.return==null||r.return()}finally{if(a)throw s}}}}var Er=String.fromCharCode,lu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",hu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",Xs={};function cu(t,e){if(!Xs[t]){Xs[t]={};for(var r=0;r<t.length;r++)Xs[t][t.charAt(r)]=r}return Xs[t][e]}var oe={compressToBase64:function(t){if(t==null)return"";var e=oe._compress(t,6,function(r){return lu.charAt(r)});switch(e.length%4){default:case 0:return e;case 1:return e+"===";case 2:return e+"==";case 3:return e+"="}},decompressFromBase64:function(t){return t==null?"":t==""?null:oe._decompress(t.length,32,function(e){return cu(lu,t.charAt(e))})},compressToUTF16:function(t){return t==null?"":oe._compress(t,15,function(e){return Er(e+32)})+" "},decompressFromUTF16:function(t){return t==null?"":t==""?null:oe._decompress(t.length,16384,function(e){return t.charCodeAt(e)-32})},compressToUint8Array:function(t){for(var e=oe.compress(t),r=new Uint8Array(2*e.length),i=0,n=e.length;i<n;i++){var s=e.charCodeAt(i);r[2*i]=s>>>8,r[2*i+1]=s%256}return r},decompressFromUint8Array:function(t){if(t==null)return oe.decompress(t);for(var e=new Array(t.length/2),r=0,i=e.length;r<i;r++)e[r]=256*t[2*r]+t[2*r+1];var n=[];return e.forEach(function(s){n.push(Er(s))}),oe.decompress(n.join(""))},compressToEncodedURIComponent:function(t){return t==null?"":oe._compress(t,6,function(e){return hu.charAt(e)})},decompressFromEncodedURIComponent:function(t){return t==null?"":t==""?null:(t=t.replace(/ /g,"+"),oe._decompress(t.length,32,function(e){return cu(hu,t.charAt(e))}))},compress:function(t){return oe._compress(t,16,function(e){return Er(e)})},_compress:function(t,e,r){if(t==null)return"";var i,n,s,o="",a="",l="",h=2,c=3,p=2,f=0,u=0,m={},g={},d=[];for(s=0;s<t.length;s+=1)if(o=t.charAt(s),Object.prototype.hasOwnProperty.call(m,o)||(m[o]=c++,g[o]=!0),a=l+o,Object.prototype.hasOwnProperty.call(m,a))l=a;else{if(Object.prototype.hasOwnProperty.call(g,l)){if(l.charCodeAt(0)<256){for(i=0;i<p;i++)f<<=1,u==e-1?(u=0,d.push(r(f)),f=0):u++;for(n=l.charCodeAt(0),i=0;i<8;i++)f=f<<1|1&n,u==e-1?(u=0,d.push(r(f)),f=0):u++,n>>=1}else{for(n=1,i=0;i<p;i++)f=f<<1|n,u==e-1?(u=0,d.push(r(f)),f=0):u++,n=0;for(n=l.charCodeAt(0),i=0;i<16;i++)f=f<<1|1&n,u==e-1?(u=0,d.push(r(f)),f=0):u++,n>>=1}--h==0&&(h=Math.pow(2,p),p++),delete g[l]}else for(n=m[l],i=0;i<p;i++)f=f<<1|1&n,u==e-1?(u=0,d.push(r(f)),f=0):u++,n>>=1;--h==0&&(h=Math.pow(2,p),p++),m[a]=c++,l=String(o)}if(l!==""){if(Object.prototype.hasOwnProperty.call(g,l)){if(l.charCodeAt(0)<256){for(i=0;i<p;i++)f<<=1,u==e-1?(u=0,d.push(r(f)),f=0):u++;for(n=l.charCodeAt(0),i=0;i<8;i++)f=f<<1|1&n,u==e-1?(u=0,d.push(r(f)),f=0):u++,n>>=1}else{for(n=1,i=0;i<p;i++)f=f<<1|n,u==e-1?(u=0,d.push(r(f)),f=0):u++,n=0;for(n=l.charCodeAt(0),i=0;i<16;i++)f=f<<1|1&n,u==e-1?(u=0,d.push(r(f)),f=0):u++,n>>=1}--h==0&&(h=Math.pow(2,p),p++),delete g[l]}else for(n=m[l],i=0;i<p;i++)f=f<<1|1&n,u==e-1?(u=0,d.push(r(f)),f=0):u++,n>>=1;--h==0&&(h=Math.pow(2,p),p++)}for(n=2,i=0;i<p;i++)f=f<<1|1&n,u==e-1?(u=0,d.push(r(f)),f=0):u++,n>>=1;for(;;){if(f<<=1,u==e-1){d.push(r(f));break}u++}return d.join("")},decompress:function(t){return t==null?"":t==""?null:oe._decompress(t.length,32768,function(e){return t.charCodeAt(e)})},_decompress:function(t,e,r){var i,n,s,o,a,l,h,c=[],p=[],f={val:r(0),position:e,index:1},u=4,m=4,g=3,d="";for(i=0;i<3;i+=1)c[i]=i;for(s=0,a=Math.pow(2,2),l=1;l!=a;)o=f.val&f.position,f.position>>=1,f.position==0&&(f.position=e,f.val=r(f.index++)),s|=(o>0?1:0)*l,l<<=1;switch(s){case 0:for(s=0,a=Math.pow(2,8),l=1;l!=a;)o=f.val&f.position,f.position>>=1,f.position==0&&(f.position=e,f.val=r(f.index++)),s|=(o>0?1:0)*l,l<<=1;h=Er(s);break;case 1:for(s=0,a=Math.pow(2,16),l=1;l!=a;)o=f.val&f.position,f.position>>=1,f.position==0&&(f.position=e,f.val=r(f.index++)),s|=(o>0?1:0)*l,l<<=1;h=Er(s);break;case 2:return""}for(c[3]=h,n=h,p.push(h);;){if(f.index>t)return"";for(s=0,a=Math.pow(2,g),l=1;l!=a;)o=f.val&f.position,f.position>>=1,f.position==0&&(f.position=e,f.val=r(f.index++)),s|=(o>0?1:0)*l,l<<=1;switch(h=s){case 0:for(s=0,a=Math.pow(2,8),l=1;l!=a;)o=f.val&f.position,f.position>>=1,f.position==0&&(f.position=e,f.val=r(f.index++)),s|=(o>0?1:0)*l,l<<=1;c[m++]=Er(s),h=m-1,u--;break;case 1:for(s=0,a=Math.pow(2,16),l=1;l!=a;)o=f.val&f.position,f.position>>=1,f.position==0&&(f.position=e,f.val=r(f.index++)),s|=(o>0?1:0)*l,l<<=1;c[m++]=Er(s),h=m-1,u--;break;case 2:return p.join("")}if(u==0&&(u=Math.pow(2,g),g++),c[h])d=c[h];else{if(h!==m)return null;d=n+n.charAt(0)}p.push(d),c[m++]=n+d.charAt(0),n=d,--u==0&&(u=Math.pow(2,g),g++)}}},Le={DEBUG:!1,LIB_VERSION:"1.61.0"},Du=Array.prototype,Iu=Object.prototype,co=Iu.toString,w0=Iu.hasOwnProperty,tt=typeof window<"u"?window:{},Pr=tt.navigator||{userAgent:""},At=tt.document||{},ye=Pr.userAgent,x0=["localhost","127.0.0.1"],pu=Du.forEach,uu=Du.indexOf,S0=Array.isArray,El={},bt={log:function(){if(Le.DEBUG&&!Ee(window.console)&&window.console){for(var t=("__rrweb_original__"in window.console.log)?window.console.log.__rrweb_original__:window.console.log,e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];try{t.apply(window.console,r)}catch{Ye(r,function(s){t(s)})}}},error:function(){if(Le.DEBUG&&!Ee(window.console)&&window.console){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var i=["PostHog error:"].concat(e),n="__rrweb_original__"in window.console.error?window.console.error.__rrweb_original__:window.console.error;try{n.apply(window.console,i)}catch{Ye(i,function(o){n(o)})}}},critical:function(){if(!Ee(window.console)&&window.console){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var i=["PostHog error:"].concat(e),n="__rrweb_original__"in window.console.error?window.console.error.__rrweb_original__:window.console.error;try{n.apply(window.console,i)}catch{Ye(i,function(o){n(o)})}}}},pl=function(t){return t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")};function Ye(t,e,r){if(Array.isArray(t)){if(pu&&t.forEach===pu)t.forEach(e,r);else if("length"in t&&t.length===+t.length){for(var i=0,n=t.length;i<n;i++)if(i in t&&e.call(r,t[i],i)===El)return}}}function ct(t,e,r){if(t!=null){if(Array.isArray(t))return Ye(t,e,r);for(var i in t)if(w0.call(t,i)&&e.call(r,t[i],i)===El)return}}var It=function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];return Ye(r,function(n){for(var s in n)n[s]!==void 0&&(t[s]=n[s])}),t},Ze=S0||function(t){return co.call(t)==="[object Array]"},Lu=function(t){try{return/^\s*\bfunction\b/.test(t)}catch{return!1}};function mt(t,e){return t.indexOf(e)!==-1}var Cr=function(t){return t===Object(t)&&!Ze(t)},Ee=function(t){return t===void 0},Ou=function(t){return co.call(t)=="[object String]"},E0=function(t){return co.call(t)=="[object Number]"},k0=function t(e){return ct(e,function(r,i){(function(n){return co.call(n)=="[object Date]"})(r)?e[i]=P0(r):Cr(r)&&(e[i]=t(r))}),e},P0=function(t){function e(r){return r<10?"0"+r:r}return t.getUTCFullYear()+"-"+e(t.getUTCMonth()+1)+"-"+e(t.getUTCDate())+"T"+e(t.getUTCHours())+":"+e(t.getUTCMinutes())+":"+e(t.getUTCSeconds())},$u=function(t){return function(){try{for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return t.apply(this,r)}catch(n){bt.critical("Implementation error. Please turn on debug and contact support@posthog.com."),bt.critical(n)}}},ul=function(t){var e={};return ct(t,function(r,i){Ou(r)&&r.length>0&&(e[i]=r)}),e},A0=["$performance_raw"];function Vu(t,e){return r=t,i=function(s,o){return o&&A0.indexOf(o)>-1?s:typeof s=="string"&&e!==null?s.slice(0,e):s},n=new Set,function s(o,a){return o!==Object(o)?i?i(o,a):o:n.has(o)?void 0:(n.add(o),Ze(o)?(l=[],Ye(o,function(h){l.push(s(h))})):(l={},ct(o,function(h,c){n.has(h)||(l[c]=s(h,c))})),l);var l}(r);var r,i,n}function po(t){var e,r,i,n,s,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a=0,l=0,h="",c=[];if(!t)return t;t=C0(t);do e=(s=t.charCodeAt(a++)<<16|t.charCodeAt(a++)<<8|t.charCodeAt(a++))>>18&63,r=s>>12&63,i=s>>6&63,n=63&s,c[l++]=o.charAt(e)+o.charAt(r)+o.charAt(i)+o.charAt(n);while(a<t.length);switch(h=c.join(""),t.length%3){case 1:h=h.slice(0,-2)+"==";break;case 2:h=h.slice(0,-1)+"="}return h}var rl,C0=function(t){var e,r,i,n,s="";for(e=r=0,i=(t=(t+"").replace(/\r\n/g,`
|
|
497
522
|
`).replace(/\r/g,`
|
|
498
|
-
`)).length,n=0;n<i;n++){var o=t.charCodeAt(n),a=null;o<128?r++:a=o>127&&o<2048?String.fromCharCode(o>>6|192,63&o|128):String.fromCharCode(o>>12|224,o>>6&63|128,63&o|128),a!==null&&(r>e&&(s+=t.substring(e,r)),s+=a,e=r=n+1)}return r>e&&(s+=t.substring(e,t.length)),s},ar=(tl=function(){for(var t=new Date().valueOf(),e=0;t==new Date().valueOf();)e++;return t.toString(16)+e.toString(16)},function(){var t=typeof window<"u"?(window.screen.height*window.screen.width).toString(16):"0";return tl()+"-"+Math.random().toString(16).replace(".","")+"-"+function(){var e,r,i=me,n=0,s=[];function o(a,l){var h,c=0;for(h=0;h<l.length;h++)c|=s[h]<<8*h;return a^c}for(e=0;e<i.length;e++)r=i.charCodeAt(e),s.unshift(255&r),s.length>=4&&(n=o(n,s),s=[]);return s.length>0&&(n=o(n,s)),n.toString(16)}()+"-"+t+"-"+tl()}),P0=function(t){return!!/(google web preview|baiduspider|yandexbot|bingbot|googlebot|yahoo! slurp|ahrefsbot|facebookexternalhit|facebookcatalog|applebot|semrushbot|duckduckbot|twitterbot|rogerbot|linkedinbot|mj12bot|sitebulb|bot.htm|bot.php|hubspot|crawler)/i.test(t)},uu=function(t,e){var r=e.replace(/[[]/,"\\[").replace(/[\]]/,"\\]"),i=new RegExp("[\\?&]"+r+"=([^&#]*)").exec(t);if(i===null||i&&typeof i[1]!="string"&&i[1].length)return"";var n=i[1];try{n=decodeURIComponent(n)}catch{bt.error("Skipping decoding for malformed query param: "+n)}return n.replace(/\+/g," ")},fu=function(t,e){var r=t.match(new RegExp(e+"=([^&]*)"));return r?r[1]:null},un=function(){function t(e){return e&&(e.preventDefault=t.preventDefault,e.stopPropagation=t.stopPropagation),e}return t.preventDefault=function(){this.returnValue=!1},t.stopPropagation=function(){this.cancelBubble=!0},function(e,r,i,n,s){if(e)if(e.addEventListener&&!n)e.addEventListener(r,i,!!s);else{var o="on"+r,a=e[o];e[o]=function(l,h,c){return function(p){if(p=p||t(window.event)){var f,u=!0;Iu(c)&&(f=c(p));var m=h.call(l,p);return f!==!1&&m!==!1||(u=!1),u}}}(e,i,a)}else bt.error("No valid element provided to register_event")}}();function Sl(t,e){var r=function(){var i=At.createElement("script");i.type="text/javascript",i.src=t,i.onload=function(o){return e(void 0,o)},i.onerror=function(o){return e(o)};var n,s=At.querySelectorAll("body > script");s.length>0?(n=s[0].parentNode)===null||n===void 0||n.insertBefore(i,s[0]):At.body.appendChild(i)};At.body?r():At.addEventListener("DOMContentLoaded",r)}var Mt={campaignParams:function(t){var e=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gclid","fbclid","msclkid"].concat(t||[]),r={};return ct(e,function(i){var n=uu(At.URL,i);n.length&&(r[i]=n)}),r},searchEngine:function(){var t=At.referrer;return t?t.search("https?://(.*)google.([^/?]*)")===0?"google":t.search("https?://(.*)bing.com")===0?"bing":t.search("https?://(.*)yahoo.com")===0?"yahoo":t.search("https?://(.*)duckduckgo.com")===0?"duckduckgo":null:null},searchInfo:function(){var t=Mt.searchEngine(),e=t!="yahoo"?"q":"p",r={};if(t!==null){r.$search_engine=t;var i=uu(At.referrer,e);i.length&&(r.ph_keyword=i)}return r},browser:function(t,e,r){return e=e||"",r||mt(t," OPR/")?mt(t,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":mt(t,"IEMobile")||mt(t,"WPDesktop")?"Internet Explorer Mobile":mt(t,"SamsungBrowser/")?"Samsung Internet":mt(t,"Edge")||mt(t,"Edg/")?"Microsoft Edge":mt(t,"FBIOS")?"Facebook Mobile":mt(t,"Chrome")?"Chrome":mt(t,"CriOS")?"Chrome iOS":mt(t,"UCWEB")||mt(t,"UCBrowser")?"UC Browser":mt(t,"FxiOS")?"Firefox iOS":mt(e,"Apple")?mt(t,"Mobile")?"Mobile Safari":"Safari":mt(t,"Android")?"Android Mobile":mt(t,"Konqueror")?"Konqueror":mt(t,"Firefox")?"Firefox":mt(t,"MSIE")||mt(t,"Trident/")?"Internet Explorer":mt(t,"Gecko")?"Mozilla":""},browserVersion:function(t,e,r){var i={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/}[Mt.browser(t,e,r)];if(i===void 0)return null;var n=t.match(i);return n?parseFloat(n[n.length-2]):null},browserLanguage:function(){return Er.language||Er.userLanguage},os:function(t){if(/Windows/i.test(t)){if(/Phone/.test(t)||/WPDesktop/.test(t))return{os_name:"Windows Phone",os_version:""};var e=/Windows NT ([0-9.]+)/i.exec(t);return e&&e[1]?{os_name:"Windows",os_version:e[1]}:{os_name:"Windows",os_version:""}}if(/(iPhone|iPad|iPod)/.test(t)){var r=/OS (\d+)_(\d+)_?(\d+)?/i.exec(t);return r&&r[1]?{os_name:"iOS",os_version:[r[1],r[2],r[3]||"0"].join(".")}:{os_name:"iOS",os_version:""}}if(/Android/.test(t)){var i=/Android (\d+)\.(\d+)\.?(\d+)?/i.exec(t);return i&&i[1]?{os_name:"Android",os_version:[i[1],i[2],i[3]||"0"].join(".")}:{os_name:"Android",os_version:""}}if(/(BlackBerry|PlayBook|BB10)/i.test(t))return{os_name:"BlackBerry",os_version:""};if(/Mac/i.test(t)){var n=/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i.exec(t);return n&&n[1]?{os_name:"Mac OS X",os_version:[n[1],n[2],n[3]||"0"].join(".")}:{os_name:"Mac OS X",os_version:""}}return/Linux/.test(t)?{os_name:"Linux",os_version:""}:/CrOS/.test(t)?{os_name:"Chrome OS",os_version:""}:{os_name:"",os_version:""}},device:function(t){return/Windows Phone/i.test(t)||/WPDesktop/.test(t)?"Windows Phone":/iPad/.test(t)?"iPad":/iPod/.test(t)?"iPod Touch":/iPhone/.test(t)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":/Android/.test(t)&&!/Mobile/.test(t)?"Android Tablet":/Android/.test(t)?"Android":""},deviceType:function(t){var e=this.device(t);return e==="iPad"||e==="Android Tablet"?"Tablet":e?"Mobile":"Desktop"},referrer:function(){return At.referrer||"$direct"},referringDomain:function(){if(!At.referrer)return"$direct";var t=At.createElement("a");return t.href=At.referrer,t.host},properties:function(){var t=Mt.os(me),e=t.os_name,r=t.os_version;return It(cl({$os:e,$os_version:r,$browser:Mt.browser(me,Er.vendor,tt.opera),$device:Mt.device(me),$device_type:Mt.deviceType(me)}),{$current_url:tt?.location.href,$host:tt?.location.host,$pathname:tt?.location.pathname,$browser_version:Mt.browserVersion(me,Er.vendor,tt.opera),$browser_language:Mt.browserLanguage(),$screen_height:tt?.screen.height,$screen_width:tt?.screen.width,$viewport_height:tt?.innerHeight,$viewport_width:tt?.innerWidth,$lib:"web",$lib_version:De.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:(Date.now=Date.now||function(){return+new Date},Date.now()/1e3)})},people_properties:function(){var t=Mt.os(me),e=t.os_name,r=t.os_version;return It(cl({$os:e,$os_version:r,$browser:Mt.browser(me,Er.vendor,tt.opera)}),{$browser_version:Mt.browserVersion(me,Er.vendor,tt.opera)})}};function io(t){switch(kr(t.className)){case"string":return t.className;case"object":return("baseVal"in t.className?t.className.baseVal:null)||t.getAttribute("class")||"";default:return""}}function no(t){var e="";return Js(t)&&!Vu(t)&&t.childNodes&&t.childNodes.length&&ct(t.childNodes,function(r){Ru(r)&&r.textContent&&(e+=hl(r.textContent).split(/(\s+)/).filter(hi).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),hl(e)}function du(t){return!!t&&t.nodeType===1}function Ar(t,e){return!!t&&!!t.tagName&&t.tagName.toLowerCase()===e.toLowerCase()}function Ru(t){return!!t&&t.nodeType===3}function mu(t){return!!t&&t.nodeType===11}var el=["a","button","form","input","select","textarea","label"];function Js(t){for(var e=t;e.parentNode&&!Ar(e,"body");e=e.parentNode){var r=io(e).split(" ");if(mt(r,"ph-sensitive")||mt(r,"ph-no-capture"))return!1}if(mt(io(t).split(" "),"ph-include"))return!0;var i=t.type||"";if(typeof i=="string")switch(i.toLowerCase()){case"hidden":case"password":return!1}var n=t.name||t.id||"";return!(typeof n=="string"&&/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(n.replace(/[^a-zA-Z0-9]/g,"")))}function Vu(t){return!!(Ar(t,"input")&&!["button","checkbox","submit","reset"].includes(t.type)||Ar(t,"select")||Ar(t,"textarea")||t.getAttribute("contenteditable")==="true")}function hi(t){return!(t===null||xe(t)||typeof t=="string"&&(t=hl(t),/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/.test((t||"").replace(/[- ]/g,""))||/(^\d{3}-?\d{2}-?\d{4}$)/.test(t)))}function gu(t){var e=no(t);return hi(e="".concat(e," ").concat(Bu(t)).trim())?e:""}function Bu(t){var e="";return t&&t.childNodes&&t.childNodes.length&&ct(t.childNodes,function(r){var i;if(r&&((i=r.tagName)===null||i===void 0?void 0:i.toLowerCase())==="span")try{var n=no(r);e="".concat(e," ").concat(n).trim(),r.childNodes&&r.childNodes.length&&(e="".concat(e," ").concat(Bu(r)).trim())}catch(s){console.error(s)}}),e}var A0=function(){function t(e){Vt(this,t),this.clicks=[],this.enabled=e}return Bt(t,[{key:"isRageClick",value:function(e,r,i){if(!this.enabled)return!1;var n=this.clicks[this.clicks.length-1];if(n&&Math.abs(e-n.x)+Math.abs(r-n.y)<30&&i-n.timestamp<1e3){if(this.clicks.push({x:e,y:r,timestamp:i}),this.clicks.length===3)return!0}else this.clicks=[{x:e,y:r,timestamp:i}];return!1}}]),t}(),C0=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,Fe={is_supported:function(){return!0},error:function(t){bt.error("cookieStore error: "+t)},get:function(t){try{for(var e=t+"=",r=document.cookie.split(";"),i=0;i<r.length;i++){for(var n=r[i];n.charAt(0)==" ";)n=n.substring(1,n.length);if(n.indexOf(e)===0)return decodeURIComponent(n.substring(e.length,n.length))}}catch{}return null},parse:function(t){var e;try{e=JSON.parse(Fe.get(t))||{}}catch{}return e},set:function(t,e,r,i,n){try{var s="",o="",a="";if(i){var l=document.location.hostname.match(C0),h=l?l[0]:"";s=h?"; domain=."+h:""}if(r){var c=new Date;c.setTime(c.getTime()+24*r*60*60*1e3),o="; expires="+c.toUTCString()}n&&(a="; secure");var p=t+"="+encodeURIComponent(JSON.stringify(e))+o+"; SameSite=Lax; path=/"+s+a;return document.cookie=p,p}catch{return}},remove:function(t,e){try{Fe.set(t,"",-1,e)}catch{return}}},rl=null,xt={is_supported:function(){if(rl!==null)return rl;var t=!0;if(typeof window<"u")try{var e="__mplssupport__";xt.set(e,"xyz"),xt.get(e)!=='"xyz"'&&(t=!1),xt.remove(e)}catch{t=!1}else t=!1;return t||bt.error("localStorage unsupported; falling back to cookie store"),rl=t,t},error:function(t){bt.error("localStorage error: "+t)},get:function(t){try{return window.localStorage.getItem(t)}catch(e){xt.error(e)}return null},parse:function(t){try{return JSON.parse(xt.get(t))||{}}catch{}return null},set:function(t,e){try{window.localStorage.setItem(t,JSON.stringify(e))}catch(r){xt.error(r)}},remove:function(t){try{window.localStorage.removeItem(t)}catch(e){xt.error(e)}}},pl=nt(nt({},xt),{},{parse:function(t){try{var e={};try{(e=Fe.parse(t)||{}).distinct_id&&Fe.set(t,{distinct_id:e.distinct_id})}catch{}var r=It(e,JSON.parse(xt.get(t)||"{}"));return xt.set(t,r),r}catch{}return null},set:function(t,e,r,i,n){try{xt.set(t,e),e.distinct_id&&Fe.set(t,{distinct_id:e.distinct_id},r,i,n)}catch(s){xt.error(s)}},remove:function(t,e){try{window.localStorage.removeItem(t),Fe.remove(t,e)}catch(r){xt.error(r)}}}),Ys={},T0={is_supported:function(){return!0},error:function(t){bt.error("memoryStorage error: "+t)},get:function(t){return Ys[t]||null},parse:function(t){return Ys[t]||null},set:function(t,e){Ys[t]=e},remove:function(t){delete Ys[t]}},Sr=null,Lt={is_supported:function(){if(Sr!==null)return Sr;if(Sr=!0,typeof window<"u")try{var t="__support__";Lt.set(t,"xyz"),Lt.get(t)!=='"xyz"'&&(Sr=!1),Lt.remove(t)}catch{Sr=!1}else Sr=!1;return Sr},error:function(t){De.DEBUG&&bt.error("sessionStorage error: ",t)},get:function(t){try{return window.sessionStorage.getItem(t)}catch(e){Lt.error(e)}return null},parse:function(t){try{return JSON.parse(Lt.get(t))||null}catch{}return null},set:function(t,e){try{window.sessionStorage.setItem(t,JSON.stringify(e))}catch(r){Lt.error(r)}},remove:function(t){try{window.sessionStorage.removeItem(t)}catch(e){Lt.error(e)}}},zu="$people_distinct_id",Qs="__alias",pn="__timers",yu="$autocapture_disabled_server_side",ul="$session_recording_enabled_server_side",vu="$console_log_recording_enabled_server_side",bu="$session_recording_recorder_version_server_side",fl="$sesid",ci="$enabled_feature_flags",dl="$early_access_features",pi="$stored_person_properties",sr="$stored_group_properties",ml="$user_state",M0=[zu,Qs,"__cmpns",pn,ul,fl,ci,ml,dl,sr,pi],F0=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"],_u=function(){function t(e){Vt(this,t);var r="";e.token&&(r=e.token.replace(/\+/g,"PL").replace(/\//g,"SL").replace(/=/g,"EQ")),this.props={},this.campaign_params_saved=!1,this.custom_campaign_params=e.custom_campaign_params||[],e.persistence_name?this.name="ph_"+e.persistence_name:this.name="ph_"+r+"_posthog",F0.indexOf(e.persistence.toLowerCase())===-1&&(bt.critical("Unknown persistence type "+e.persistence+"; falling back to cookie"),e.persistence="cookie");var i=e.persistence.toLowerCase();i==="localstorage"&&xt.is_supported()?this.storage=xt:i==="localstorage+cookie"&&pl.is_supported()?this.storage=pl:i==="sessionstorage"&&Lt.is_supported()?this.storage=Lt:this.storage=i==="memory"?T0:Fe,this.user_state="anonymous",this.load(),this.update_config(e),this.save()}return Bt(t,[{key:"properties",value:function(){var e={};return ct(this.props,function(r,i){if(i===ci&&kr(r)==="object")for(var n=Object.keys(r),s=0;s<n.length;s++)e["$feature/".concat(n[s])]=r[n[s]];else a=i,l=!1,((o=M0)===null?l:pu&&o.indexOf===pu?o.indexOf(a)!=-1:(ct(o,function(h){if(l||(l=h===a))return xl}),l))||(e[i]=r);var o,a,l}),e}},{key:"load",value:function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=It({},e))}}},{key:"save",value:function(){this.disabled||this.storage.set(this.name,this.props,this.expire_days,this.cross_subdomain,this.secure)}},{key:"remove",value:function(){this.storage.remove(this.name,!1),this.storage.remove(this.name,!0)}},{key:"clear",value:function(){this.remove(),this.props={}}},{key:"register_once",value:function(e,r,i){var n=this;if(Pr(e)){r===void 0&&(r="None"),this.expire_days=i===void 0?this.default_expiry:i;var s=!1;if(ct(e,function(o,a){n.props.hasOwnProperty(a)&&n.props[a]!==r||(n.props[a]=o,s=!0)}),s)return this.save(),!0}return!1}},{key:"register",value:function(e,r){var i=this;if(Pr(e)){this.expire_days=r===void 0?this.default_expiry:r;var n=!1;if(ct(e,function(s,o){e.hasOwnProperty(o)&&i.props[o]!==s&&(i.props[o]=s,n=!0)}),n)return this.save(),!0}return!1}},{key:"unregister",value:function(e){e in this.props&&(delete this.props[e],this.save())}},{key:"update_campaign_params",value:function(){this.campaign_params_saved||(this.register(Mt.campaignParams(this.custom_campaign_params)),this.campaign_params_saved=!0)}},{key:"update_search_keyword",value:function(){this.register(Mt.searchInfo())}},{key:"update_referrer_info",value:function(){this.register({$referrer:this.props.$referrer||Mt.referrer(),$referring_domain:this.props.$referring_domain||Mt.referringDomain()})}},{key:"get_referrer_info",value:function(){return cl({$referrer:this.props.$referrer,$referring_domain:this.props.$referring_domain})}},{key:"safe_merge",value:function(e){return ct(this.props,function(r,i){i in e||(e[i]=r)}),e}},{key:"update_config",value:function(e){this.default_expiry=this.expire_days=e.cookie_expiration,this.set_disabled(e.disable_persistence),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie)}},{key:"set_disabled",value:function(e){this.disabled=e,this.disabled?this.remove():this.save()}},{key:"set_cross_subdomain",value:function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())}},{key:"get_cross_subdomain",value:function(){return!!this.cross_subdomain}},{key:"set_secure",value:function(e){e!==this.secure&&(this.secure=e,this.remove(),this.save())}},{key:"set_event_timer",value:function(e,r){var i=this.props[pn]||{};i[e]=r,this.props[pn]=i,this.save()}},{key:"remove_event_timer",value:function(e){var r=(this.props[pn]||{})[e];return xe(r)||(delete this.props[pn][e],this.save()),r}},{key:"get_user_state",value:function(){return this.props[ml]||"anonymous"}},{key:"set_user_state",value:function(e){this.props[ml]=e,this.save()}}]),t}(),or={_initializedTokens:[],_isAutocaptureEnabled:!1,_setIsAutocaptureEnabled:function(t){var e=!!t.get_property(yu),r=!!t.get_config("autocapture");this._isAutocaptureEnabled=r&&!e},_previousElementSibling:function(t){if(t.previousElementSibling)return t.previousElementSibling;var e=t;do e=e.previousSibling;while(e&&!du(e));return e},_getAugmentPropertiesFromElement:function(t){if(!Js(t))return{};var e={};return ct(t.attributes,function(r){if(r.name.indexOf("data-ph-capture-attribute")===0){var i=r.name.replace("data-ph-capture-attribute-",""),n=r.value;i&&n&&hi(n)&&(e[i]=n)}}),e},_getPropertiesFromElement:function(t,e,r){var i=t.tagName.toLowerCase(),n={tag_name:i};el.indexOf(i)>-1&&!r&&(i.toLowerCase()==="a"||i.toLowerCase()==="button"?n.$el_text=gu(t):n.$el_text=no(t));var s=io(t);s.length>0&&(n.classes=s.split(" ").filter(function(h){return h!==""})),ct(t.attributes,function(h){var c;Vu(t)&&["name","id","class"].indexOf(h.name)===-1||!e&&hi(h.value)&&(typeof(c=h.name)!="string"||c.substring(0,10)!=="_ngcontent"&&c.substring(0,7)!=="_nghost")&&(n["attr__"+h.name]=h.value)});for(var o=1,a=1,l=t;l=this._previousElementSibling(l);)o++,l.tagName===t.tagName&&a++;return n.nth_child=o,n.nth_of_type=a,n},_getDefaultProperties:function(t){return{$event_type:t,$ce_version:1}},_extractCustomPropertyValue:function(t){var e=[];return ct(document.querySelectorAll(t.css_selector),function(r){var i;["input","select"].indexOf(r.tagName.toLowerCase())>-1?i=r.value:r.textContent&&(i=r.textContent),hi(i)&&e.push(i)}),e.join(", ")},_getCustomProperties:function(t){var e=this,r={};return ct(this._customProperties,function(i){ct(i.event_selectors,function(n){ct(document.querySelectorAll(n),function(s){mt(t,s)&&Js(s)&&(r[i.name]=e._extractCustomPropertyValue(i))})})}),r},_getEventTarget:function(t){return t.target===void 0?t.srcElement||null:(e=t.target)!==null&&e!==void 0&&e.shadowRoot?t.composedPath()[0]||null:t.target||null;var e},_captureEvent:function(t,e){var r,i=this,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"$autocapture",s=this._getEventTarget(t);if(Ru(s)&&(s=s.parentNode||null),n==="$autocapture"&&t.type==="click"&&t instanceof MouseEvent&&(r=this.rageclicks)!==null&&r!==void 0&&r.isRageClick(t.clientX,t.clientY,new Date().getTime())&&this._captureEvent(t,e,"$rageclick"),s&&function(u,m){var g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;if(!u||Ar(u,"html")||!du(u))return!1;if(g!=null&&g.url_allowlist){var d=window.location.href,y=g.url_allowlist;if(y&&!y.some(function(k){return d.match(k)}))return!1}if(g!=null&&g.dom_event_allowlist){var v=g.dom_event_allowlist;if(v&&!v.some(function(k){return m.type===k}))return!1}if(g!=null&&g.element_allowlist){var b=g.element_allowlist;if(b&&!b.some(function(k){return u.tagName.toLowerCase()===k}))return!1}if(g!=null&&g.css_selector_allowlist){var _=g.css_selector_allowlist;if(_&&!_.some(function(k){return u.matches(k)}))return!1}for(var x=!1,M=[u],S=!0,w=u;w.parentNode&&!Ar(w,"body");)if(mu(w.parentNode))M.push(w.parentNode.host),w=w.parentNode.host;else{if(!(S=w.parentNode||!1))break;if(el.indexOf(S.tagName.toLowerCase())>-1)x=!0;else{var D=window.getComputedStyle(S);D&&D.getPropertyValue("cursor")==="pointer"&&(x=!0)}M.push(S),w=S}var E=window.getComputedStyle(u);if(E&&E.getPropertyValue("cursor")==="pointer"&&m.type==="click")return!0;var T=u.tagName.toLowerCase();switch(T){case"html":return!1;case"form":return m.type==="submit";case"input":case"select":case"textarea":return m.type==="change"||m.type==="click";default:return x?m.type==="click":m.type==="click"&&(el.indexOf(T)>-1||u.getAttribute("contenteditable")==="true")}}(s,t,this.config)){for(var o=[s],a=s;a.parentNode&&!Ar(a,"body");)mu(a.parentNode)?(o.push(a.parentNode.host),a=a.parentNode.host):(o.push(a.parentNode),a=a.parentNode);var l,h=[],c={},p=!1;if(ct(o,function(u){var m=Js(u);u.tagName.toLowerCase()==="a"&&(l=u.getAttribute("href"),l=m&&hi(l)&&l),mt(io(u).split(" "),"ph-no-capture")&&(p=!0),h.push(i._getPropertiesFromElement(u,e.get_config("mask_all_element_attributes"),e.get_config("mask_all_text")));var g=i._getAugmentPropertiesFromElement(u);It(c,g)}),e.get_config("mask_all_text")||(s.tagName.toLowerCase()==="a"||s.tagName.toLowerCase()==="button"?h[0].$el_text=gu(s):h[0].$el_text=no(s)),l&&(h[0].attr__href=l),p)return!1;var f=It(this._getDefaultProperties(t.type),{$elements:h},this._getCustomProperties(o),c);return e.capture(n,f),!0}},_navigate:function(t){window.location.href=t},_addDomEventHandlers:function(t){var e=this,r=function(i){i=i||window.event,e._captureEvent(i,t)};un(document,"submit",r,!1,!0),un(document,"change",r,!1,!0),un(document,"click",r,!1,!0)},_customProperties:[],rageclicks:null,config:void 0,init:function(t){var e;typeof t.__autocapture!="boolean"&&(this.config=t.__autocapture),(e=this.config)!==null&&e!==void 0&&e.url_allowlist&&(this.config.url_allowlist=this.config.url_allowlist.map(function(r){return new RegExp(r)})),this.rageclicks=new A0(t.get_config("rageclick"))},afterDecideResponse:function(t,e){this._setIsAutocaptureEnabled(e);var r=e.get_config("token");this._initializedTokens.indexOf(r)>-1?bt.log('autocapture already initialized for token "'+r+'"'):(e.persistence&&e.persistence.register(st({},yu,!!t.autocapture_opt_out)),this._initializedTokens.push(r),t&&t.config&&t.config.enable_collect_everything&&this._isAutocaptureEnabled?(t.custom_properties&&(this._customProperties=t.custom_properties),this._addDomEventHandlers(e)):e.__autocapture=!1)},enabledForProject:function(t,e,r){if(!t)return!0;e=xe(e)?10:e,r=xe(r)?10:r;for(var i=0,n=0;n<t.length;n++)i+=t.charCodeAt(n);return i%e<r},isBrowserSupported:function(){return Iu(document.querySelectorAll)}};(function(t){for(var e in t)typeof t[e]=="function"&&(t[e]=t[e].bind(t))})(or),function(t){for(var e in t)typeof t[e]=="function"&&(t[e]=Lu(t[e]))}(or);var D0="__ph_opt_in_out_";function I0(t,e){ju(!0,t,e)}function O0(t,e){ju(!1,t,e)}function L0(t,e){return Hu(t,e)==="1"}function Nu(t,e){return!!function(r){if(r&&r.respectDnt){var i=r&&r.window||tt,n=i.navigator||{},s=!1;return ct([n.doNotTrack,n.msDoNotTrack,i.doNotTrack],function(o){mt([!0,1,"1","yes"],o)&&(s=!0)}),s}return!1}(e)||Hu(t,e)==="0"}function $0(t,e){El(e=e||{}).remove(kl(t,e),!!e.crossSubdomainCookie)}function El(t){return(t=t||{}).persistenceType==="localStorage"?xt:t.persistenceType==="localStorage+cookie"?pl:Fe}function kl(t,e){return((e=e||{}).persistencePrefix||D0)+t}function Hu(t,e){return El(e).get(kl(t,e))}function ju(t,e,r){Ou(e)&&e.length?(El(r=r||{}).set(kl(e,r),t?1:0,w0(r.cookieExpiration)?r.cookieExpiration:null,r.crossSubdomainCookie,r.secureCookie),r.capture&&t&&r.capture(r.captureEventName||"$opt_in",r.captureProperties||{},{send_instantly:!0})):console.error("gdpr."+(t?"optIn":"optOut")+" called with an invalid token")}function Gu(t,e){var r=!1;try{var i=t.get_config("token"),n=t.get_config("respect_dnt"),s=t.get_config("opt_out_capturing_persistence_type"),o=t.get_config("opt_out_capturing_cookie_prefix")||void 0,a=t.get_config("window");i&&(r=Nu(i,{respectDnt:n,persistenceType:s,persistencePrefix:o,window:a}))}catch(l){e||console.error("Unexpected error when checking capturing opt-out status: "+l)}return r}function wu(t,e,r){return function(){for(var i=Gu(t,r),n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];if(!i)return e.apply(this,s);var a=s[s.length-1];typeof a=="function"&&a(0)}}var il="$set",R0=function(){function t(e){var r=this;Vt(this,t),this._posthog=e,this.set=wu(e,function(i,n,s){var o=r.set_action(i,n);return r._posthog.setPersonPropertiesForFlags(o.$set||{}),Pr(i)&&(s=n),r._get_config("save_referrer")&&r._posthog.sessionPersistence.update_referrer_info(),o[il]=It({},Mt.people_properties(),r._posthog.sessionPersistence.get_referrer_info(),o[il]),r._send_request(o,s)}),this.set_once=wu(e,function(i,n,s){var o=r.set_once_action(i,n);return Pr(i)&&(s=n),r._send_request(o,s)})}return Bt(t,[{key:"toString",value:function(){return this._posthog.toString()+".people"}},{key:"_send_request",value:function(e,r){e.$token=this._get_config("token"),e.$distinct_id=this._posthog.get_distinct_id();var i=this._posthog.get_property("$device_id"),n=this._posthog.get_property("$user_id"),s=this._posthog.get_property("$had_persisted_distinct_id");i&&(e.$device_id=i),n&&(e.$user_id=n),s&&(e.$had_persisted_distinct_id=s);var o=x0(e),a=$u(o,this._get_config("properties_string_max_length")),l=ho(JSON.stringify(o));return this._posthog._send_request(this._get_config("api_host")+"/engage/",{data:l},{},this._posthog._prepare_callback(r,a)),a}},{key:"_get_config",value:function(e){return this._posthog.get_config(e)}},{key:"_is_reserved_property",value:function(e){return e==="$distinct_id"||e==="$token"||e==="$device_id"||e==="$user_id"||e==="$had_persisted_distinct_id"}},{key:"set_action",value:function(e,r){return this.apiActionParser(il,e,r)}},{key:"set_once_action",value:function(e,r){return this.apiActionParser("$set_once",e,r)}},{key:"apiActionParser",value:function(e,r,i){var n=this,s={},o={};return Pr(r)?ct(r,function(a,l){n._is_reserved_property(l)||(o[l]=a)}):o[r]=i,s[e]=o,s}}]),t}(),nl="$active_feature_flags",Xs="$override_feature_flags",xu="$feature_flag_payloads",Su=function(t){var e,r={},i=lr(function(a){for(var l=Object.keys(a),h=l.length,c=new Array(h);h--;)c[h]=[l[h],a[l[h]]];return c}(t||{}));try{for(i.s();!(e=i.n()).done;){var n=ao(e.value,2),s=n[0],o=n[1];o&&(r[s]=o)}}catch(a){i.e(a)}finally{i.f()}return r},V0=function(){function t(e){Vt(this,t),this.instance=e,this._override_warning=!1,this.flagCallReported={},this.featureFlagEventHandlers=[],this.reloadFeatureFlagsQueued=!1,this.reloadFeatureFlagsInAction=!1}return Bt(t,[{key:"getFlags",value:function(){return Object.keys(this.getFlagVariants())}},{key:"getFlagVariants",value:function(){var e=this.instance.get_property(ci),r=this.instance.get_property(Xs);if(!r)return e||{};for(var i=It({},e),n=Object.keys(r),s=0;s<n.length;s++)r[n[s]]===!1?delete i[n[s]]:i[n[s]]=r[n[s]];return this._override_warning||(console.warn("[PostHog] Overriding feature flags!",{enabledFlags:e,overriddenFlags:r,finalFlags:i}),this._override_warning=!0),i}},{key:"getFlagPayloads",value:function(){return this.instance.get_property(xu)||{}}},{key:"reloadFeatureFlags",value:function(){this.reloadFeatureFlagsQueued||(this.reloadFeatureFlagsQueued=!0,this._startReloadTimer())}},{key:"setAnonymousDistinctId",value:function(e){this.$anon_distinct_id=e}},{key:"setReloadingPaused",value:function(e){this.reloadFeatureFlagsInAction=e}},{key:"resetRequestQueue",value:function(){this.reloadFeatureFlagsQueued=!1}},{key:"_startReloadTimer",value:function(){var e=this;this.reloadFeatureFlagsQueued&&!this.reloadFeatureFlagsInAction&&setTimeout(function(){!e.reloadFeatureFlagsInAction&&e.reloadFeatureFlagsQueued&&(e.reloadFeatureFlagsQueued=!1,e._reloadFeatureFlagsRequest())},5)}},{key:"_reloadFeatureFlagsRequest",value:function(){var e=this;this.setReloadingPaused(!0);var r=this.instance.get_config("token"),i=this.instance.get_property(pi),n=this.instance.get_property(sr),s=ho(JSON.stringify({token:r,distinct_id:this.instance.get_distinct_id(),groups:this.instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:i,group_properties:n}));this.instance._send_request(this.instance.get_config("api_host")+"/decide/?v=3",{data:s},{method:"POST"},this.instance._prepare_callback(function(o){e.$anon_distinct_id=void 0,e.receivedFeatureFlags(o),e.setReloadingPaused(!1),e._startReloadTimer()}))}},{key:"getFeatureFlag",value:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.getFlags())return console.warn('getFeatureFlag for key "'+e+`" failed. Feature flags didn't load in time.`),!1;var i=this.getFlagVariants()[e];return!r.send_event&&"send_event"in r||this.flagCallReported[e]||(this.flagCallReported[e]=!0,this.instance.capture("$feature_flag_called",{$feature_flag:e,$feature_flag_response:i})),i}},{key:"getFeatureFlagPayload",value:function(e){return this.getFlagPayloads()[e]}},{key:"isFeatureEnabled",value:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.getFlags()?!!this.getFeatureFlag(e,r):(console.warn('isFeatureEnabled for key "'+e+`" failed. Feature flags didn't load in time.`),!1)}},{key:"addFeatureFlagsHandler",value:function(e){this.featureFlagEventHandlers.push(e)}},{key:"removeFeatureFlagsHandler",value:function(e){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter(function(r){return r!==e})}},{key:"receivedFeatureFlags",value:function(e){this.instance.decideEndpointWasHit=!0;var r=this.getFlagVariants(),i=this.getFlagPayloads();(function(n,s){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},l=n.featureFlags,h=n.featureFlagPayloads;if(l)if(Array.isArray(l)){var c,p={};if(l)for(var f=0;f<l.length;f++)p[l[f]]=!0;s&&s.register((st(c={},nl,l),st(c,ci,p),c))}else{var u,m=l,g=h;n.errorsWhileComputingFlags&&(m=nt(nt({},o),m),g=nt(nt({},a),g)),s&&s.register((st(u={},nl,Object.keys(Su(m))),st(u,ci,m||{}),st(u,xu,g||{}),u))}})(e,this.instance.persistence,r,i),this._fireFeatureFlagsCallbacks()}},{key:"override",value:function(e){if(this._override_warning=!1,e===!1)this.instance.persistence.unregister(Xs);else if(Array.isArray(e)){for(var r={},i=0;i<e.length;i++)r[e[i]]=!0;this.instance.persistence.register(st({},Xs,r))}else this.instance.persistence.register(st({},Xs,e))}},{key:"onFeatureFlags",value:function(e){var r=this;if(this.addFeatureFlagsHandler(e),this.instance.decideEndpointWasHit){var i=this._prepareFeatureFlagsForCallbacks(),n=i.flags,s=i.flagVariants;e(n,s)}return function(){return r.removeFeatureFlagsHandler(e)}}},{key:"updateEarlyAccessFeatureEnrollment",value:function(e,r){var i,n=st({},"$feature_enrollment/".concat(e),r);this.instance.capture("$feature_enrollment_update",{$feature_flag:e,$feature_enrollment:r,$set:n}),this.setPersonPropertiesForFlags(n,!1);var s=nt(nt({},this.getFlagVariants()),{},st({},e,r));this.instance.persistence.register((st(i={},nl,Object.keys(Su(s))),st(i,ci,s),i)),this._fireFeatureFlagsCallbacks()}},{key:"getEarlyAccessFeatures",value:function(e){var r=this,i=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=this.instance.get_property(dl);if(n&&!i)return e(n);this.instance._send_request("".concat(this.instance.get_config("api_host"),"/api/early_access_features/?token=").concat(this.instance.get_config("token")),{},{method:"GET"},function(s){var o=s.earlyAccessFeatures;return r.instance.persistence.register(st({},dl,o)),e(o)})}},{key:"_prepareFeatureFlagsForCallbacks",value:function(){var e=this.getFlags(),r=this.getFlagVariants();return{flags:e.filter(function(i){return r[i]}),flagVariants:Object.keys(r).filter(function(i){return r[i]}).reduce(function(i,n){return i[n]=r[n],i},{})}}},{key:"_fireFeatureFlagsCallbacks",value:function(){var e=this._prepareFeatureFlagsForCallbacks(),r=e.flags,i=e.flagVariants;this.featureFlagEventHandlers.forEach(function(n){return n(r,i)})}},{key:"setPersonPropertiesForFlags",value:function(e){var r=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=this.instance.get_property(pi)||{};this.instance.register(st({},pi,nt(nt({},i),e))),r&&this.instance.reloadFeatureFlags()}},{key:"resetPersonPropertiesForFlags",value:function(){this.instance.unregister(pi)}},{key:"setGroupPropertiesForFlags",value:function(e){var r=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=this.instance.get_property(sr)||{};Object.keys(i).length!==0&&Object.keys(i).forEach(function(n){i[n]=nt(nt({},i[n]),e[n]),delete e[n]}),this.instance.register(st({},sr,nt(nt({},i),e))),r&&this.instance.reloadFeatureFlags()}},{key:"resetGroupPropertiesForFlags",value:function(e){if(e){var r=this.instance.get_property(sr)||{};this.instance.register(st({},sr,nt(nt({},r),{},st({},e,{}))))}else this.instance.unregister(sr)}}]),t}(),B0="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2IiBmaWxsPSJibGFjayIvPgo8cGF0aCBkPSJNOCAwSDE2TDAgMTZWOEw4IDBaIiBmaWxsPSIjMkQyRDJEIi8+CjxwYXRoIGQ9Ik0xNiA4VjE2SDhMMTYgOFoiIGZpbGw9IiMyRDJEMkQiLz4KPC9zdmc+Cg==",Eu=2,z0=4,N0=6,H0="rrweb/console@1",Me,j0="/e/";(function(t){t[t.Mutation=0]="Mutation",t[t.MouseMove=1]="MouseMove",t[t.MouseInteraction=2]="MouseInteraction",t[t.Scroll=3]="Scroll",t[t.ViewportResize=4]="ViewportResize",t[t.Input=5]="Input",t[t.TouchMove=6]="TouchMove",t[t.MediaInteraction=7]="MediaInteraction",t[t.StyleSheetRule=8]="StyleSheetRule",t[t.CanvasMutation=9]="CanvasMutation",t[t.Font=10]="Font",t[t.Log=11]="Log",t[t.Drag=12]="Drag",t[t.StyleDeclaration=13]="StyleDeclaration",t[t.Selection=14]="Selection",t[t.AdoptedStyleSheet=15]="AdoptedStyleSheet"})(Me||(Me={}));var G0=[Me.MouseMove,Me.MouseInteraction,Me.Scroll,Me.ViewportResize,Me.Input,Me.TouchMove,Me.MediaInteraction,Me.Drag],q0=function(){function t(e){Vt(this,t),st(this,"lastActivityTimestamp",Date.now()),st(this,"isIdle",!1),this.instance=e,this.captureStarted=!1,this.snapshots=[],this.emit=!1,this.endpoint=j0,this.stopRrweb=void 0,this.windowId=null,this.sessionId=null,this.receivedDecide=!1}return Bt(t,[{key:"startRecordingIfEnabled",value:function(){this.isRecordingEnabled()?this.startCaptureAndTrySendingQueuedSnapshots():this.stopRecording()}},{key:"started",value:function(){return this.captureStarted}},{key:"stopRecording",value:function(){this.captureStarted&&this.stopRrweb&&(this.stopRrweb(),this.stopRrweb=void 0,this.captureStarted=!1)}},{key:"isRecordingEnabled",value:function(){var e=!!this.instance.get_property(ul),r=!this.instance.get_config("disable_session_recording");return e&&r}},{key:"isConsoleLogCaptureEnabled",value:function(){var e=!!this.instance.get_property(vu),r=this.instance.get_config("enable_recording_console_log");return r??e}},{key:"getRecordingVersion",value:function(){var e,r=this.instance.get_property(bu);return((e=this.instance.get_config("session_recording"))===null||e===void 0?void 0:e.recorderVersion)||r||"v1"}},{key:"afterDecideResponse",value:function(e){var r,i,n,s,o,a;this.receivedDecide=!0,this.instance.persistence&&this.instance.persistence.register((st(o={},ul,!!e.sessionRecording),st(o,vu,(n=e.sessionRecording)===null||n===void 0?void 0:n.consoleLogRecordingEnabled),st(o,bu,(s=e.sessionRecording)===null||s===void 0?void 0:s.recorderVersion),o)),(r=e.sessionRecording)!==null&&r!==void 0&&r.endpoint&&(this.endpoint=(a=e.sessionRecording)===null||a===void 0?void 0:a.endpoint),(i=e.sessionRecording)!==null&&i!==void 0&&i.recorderVersion&&(this.recorderVersion=e.sessionRecording.recorderVersion),this.startRecordingIfEnabled()}},{key:"startCaptureAndTrySendingQueuedSnapshots",value:function(){var e=this;this.receivedDecide&&(this.emit=!0,this.snapshots.forEach(function(r){return e._captureSnapshot(r)})),this._startCapture()}},{key:"_startCapture",value:function(){var e=this;if(Object.assign!==void 0&&!this.captureStarted&&!this.instance.get_config("disable_session_recording")){this.captureStarted=!0,this.instance.sessionManager.checkAndGetSessionAndWindowId();var r=this.getRecordingVersion()==="v2"?"recorder-v2.js":"recorder.js";this.instance.__loaded_recorder_version!==this.getRecordingVersion()?Sl(this.instance.get_config("api_host")+"/static/".concat(r,"?v=").concat(De.LIB_VERSION),function(i){if(i)return bt.error("Could not load ".concat(r),i);e._onScriptLoaded()}):this._onScriptLoaded()}}},{key:"_isInteractiveEvent",value:function(e){var r;return e.type===3&&G0.indexOf((r=e.data)===null||r===void 0?void 0:r.source)!==-1}},{key:"_updateWindowAndSessionIds",value:function(e){var r=this._isInteractiveEvent(e);if(r||this.isIdle||e.timestamp-this.lastActivityTimestamp>3e5&&(this.isIdle=!0),r&&(this.lastActivityTimestamp=e.timestamp,this.isIdle&&(this.isIdle=!1,this._tryTakeFullSnapshot())),!this.isIdle){var i=this.instance.sessionManager.checkAndGetSessionAndWindowId(!r,e.timestamp),n=i.windowId,s=i.sessionId;[Eu,z0].indexOf(e.type)!==-1||this.windowId===n&&this.sessionId===s||this._tryTakeFullSnapshot(),this.windowId=n,this.sessionId=s}}},{key:"_tryTakeFullSnapshot",value:function(){if(!this.captureStarted)return!1;try{var e;return(e=this.rrwebRecord)===null||e===void 0||e.takeFullSnapshot(),!0}catch(r){return bt.error("Error taking full snapshot.",r),!1}}},{key:"_onScriptLoaded",value:function(){var e=this,r={blockClass:"ph-no-capture",blockSelector:void 0,ignoreClass:"ph-ignore-input",maskTextClass:"ph-mask",maskTextSelector:void 0,maskAllInputs:!0,maskInputOptions:{},maskInputFn:void 0,slimDOMOptions:{},collectFonts:!1,inlineStylesheet:!0,recordCrossOriginIframes:!1};this.rrwebRecord=window.rrweb?window.rrweb.record:window.rrwebRecord;for(var i=this.instance.get_config("session_recording"),n=0,s=Object.entries(i||{});n<s.length;n++){var o=ao(s[n],2),a=o[0],l=o[1];a in r&&(r[a]=l)}this.rrwebRecord?(this.stopRrweb=this.rrwebRecord(nt({emit:function(h){e.onRRwebEmit(h)},plugins:window.rrwebConsoleRecord&&this.isConsoleLogCaptureEnabled()?[window.rrwebConsoleRecord.getRecordConsolePlugin()]:[]},r)),this.instance._addCaptureHook(function(h){try{var c;h==="$pageview"&&((c=e.rrwebRecord)===null||c===void 0||c.addCustomEvent("$pageview",{href:window.location.href}))}catch(p){bt.error("Could not add $pageview to rrweb session",p)}}),this.lastActivityTimestamp=Date.now(),this.isIdle=!1):bt.error("onScriptLoaded was called but rrwebRecord is not available. This indicates something has gone wrong.")}},{key:"onRRwebEmit",value:function(e){if(e=function(i){if(i&&kr(i)==="object"&&i.type===N0&&kr(i.data)==="object"&&i.data.plugin===H0){i.data.payload.payload.length>10&&(i.data.payload.payload=i.data.payload.payload.slice(0,10),i.data.payload.payload.push("...[truncated]"));for(var n=[],s=0;s<i.data.payload.payload.length;s++)i.data.payload.payload[s]&&i.data.payload.payload[s].length>2e3?n.push(i.data.payload.payload[s].slice(0,2e3)+"...[truncated]"):n.push(i.data.payload.payload[s]);return i.data.payload.payload=n,i}return i}(function(i){if(i&&kr(i)==="object"){var n=JSON.stringify(i);if(n.length>5e6){var s,o=lr(n.matchAll(/data:([\w\/\-\.]+);(\w+),([^)"]*)/gim));try{for(o.s();!(s=o.n()).done;){var a=s.value;n=a[1].toLocaleLowerCase().slice(0,6)==="image/"?n.replace(a[0],B0):n.replace(a[0],"")}}catch(l){o.e(l)}finally{o.f()}}return JSON.parse(n)}return i}(e)),this._updateWindowAndSessionIds(e),!this.isIdle){var r={$snapshot_data:e,$session_id:this.sessionId,$window_id:this.windowId};this.instance._captureMetrics.incr("rrweb-record"),this.instance._captureMetrics.incr("rrweb-record-".concat(e.type)),this.emit?this._captureSnapshot(r):this.snapshots.push(r)}}},{key:"_captureSnapshot",value:function(e){this.instance.capture("$snapshot",e,{transport:"XHR",method:"POST",endpoint:this.endpoint,_noTruncate:!0,_batchKey:"sessionRecording",_metrics:{rrweb_full_snapshot:e.$snapshot_data.type===Eu}})}}]),t}(),Te={entryType:0,timeOrigin:1,name:2,startTime:3,redirectStart:4,redirectEnd:5,workerStart:6,fetchStart:7,domainLookupStart:8,domainLookupEnd:9,connectStart:10,secureConnectionStart:11,connectEnd:12,requestStart:13,responseStart:14,responseEnd:15,decodedBodySize:16,encodedBodySize:17,initiatorType:18,nextHopProtocol:19,renderBlockingStatus:20,responseStatus:21,transferSize:22,element:23,renderTime:24,loadTime:25,size:26,id:27,url:28,domComplete:29,domContentLoadedEvent:30,domInteractive:31,loadEventEnd:32,loadEventStart:33,redirectCount:34,navigationType:35,unloadEventEnd:36,unloadEventStart:37,duration:39,timestamp:40},U0=["first-input","navigation","paint","resource"],W0=["/s/","/e/"],Z0=function(){function t(e){Vt(this,t),st(this,"_forceAllowLocalhost",!1),this.instance=e}return Bt(t,[{key:"startObservingIfEnabled",value:function(){this.isEnabled()?this.startObserving():this.stopObserving()}},{key:"startObserving",value:function(){var e=this;if(!this.observer)if(!b0.includes(location.hostname)||this._forceAllowLocalhost)try{this.observer=new PerformanceObserver(function(i){i.getEntries().forEach(function(n){e._capturePerformanceEvent(n)})});var r=PerformanceObserver.supportedEntryTypes.filter(function(i){return U0.includes(i)});r.forEach(function(i){var n;(n=e.observer)===null||n===void 0||n.observe({type:i,buffered:!0})})}catch(i){console.error("PostHog failed to start performance observer",i),this.stopObserving()}else bt.log("PostHog Peformance observer not started because we are on localhost.")}},{key:"stopObserving",value:function(){this.observer&&(this.observer.disconnect(),this.observer=void 0)}},{key:"isObserving",value:function(){return!!this.observer}},{key:"isEnabled",value:function(){var e,r;return(e=(r=this.instance.get_config("capture_performance"))!==null&&r!==void 0?r:this.remoteEnabled)!==null&&e!==void 0&&e}},{key:"afterDecideResponse",value:function(e){this.remoteEnabled=e.capturePerformance||!1,this.isEnabled()&&this.startObserving()}},{key:"_capturePerformanceEvent",value:function(e){if(e.name.indexOf(this.instance.get_config("api_host"))===0){var r=e.name.replace(this.instance.get_config("api_host"),"");if(W0.find(function(u){return r.indexOf(u)===0}))return}var i={url:e.name},n=this.instance.get_config("session_recording");if(n.maskNetworkRequestFn&&(i=n.maskNetworkRequestFn(i)),i){var s=e.toJSON();s.name=i.url;var o={},a=Math.floor(Date.now()-performance.now());for(var l in o[Te.timeOrigin]=a,o[Te.timestamp]=Math.floor(a+e.startTime),Te)s[l]!==void 0&&(o[Te[l]]=s[l]);if(this.capturePerformanceEvent(o),Y0(e)){var h,c=lr(e.serverTiming||[]);try{for(c.s();!(h=c.n()).done;){var p,f=h.value;this.capturePerformanceEvent((st(p={},Te.timeOrigin,a),st(p,Te.timestamp,Math.floor(a+e.startTime)),st(p,Te.name,f.name),st(p,Te.duration,f.duration),st(p,Te.entryType,"serverTiming"),p))}}catch(u){c.e(u)}finally{c.f()}}}}},{key:"capturePerformanceEvent",value:function(e){var r,i=e[Te.timestamp];(r=this.instance.sessionRecording)===null||r===void 0||r.onRRwebEmit({type:6,data:{plugin:"posthog/network@1",payload:e},timestamp:i})}}]),t}(),Y0=function(t){return t.entryType==="navigation"||t.entryType==="resource"},X0=function(){function t(e){Vt(this,t),this.instance=e,this.instance.decideEndpointWasHit=this.instance._hasBootstrappedFeatureFlags()}return Bt(t,[{key:"call",value:function(){var e=this,r=ho(JSON.stringify({token:this.instance.get_config("token"),distinct_id:this.instance.get_distinct_id(),groups:this.instance.getGroups(),person_properties:this.instance.get_property(pi),group_properties:this.instance.get_property(sr)}));this.instance._send_request("".concat(this.instance.get_config("api_host"),"/decide/?v=3"),{data:r,verbose:!0},{method:"POST"},function(i){return e.parseDecideResponse(i)})}},{key:"parseDecideResponse",value:function(e){var r,i,n=this;if(e?.status!==0){if(this.instance.decideEndpointWasHit=!0,!document||!document.body)return console.log("document not ready yet, trying again in 500 milliseconds..."),void setTimeout(function(){n.parseDecideResponse(e)},500);if(this.instance.toolbar.afterDecideResponse(e),(r=this.instance.sessionRecording)===null||r===void 0||r.afterDecideResponse(e),or.afterDecideResponse(e,this.instance),(i=this.instance.webPerformance)===null||i===void 0||i.afterDecideResponse(e),this.instance.featureFlags.receivedFeatureFlags(e),this.instance.compression={},e.supportedCompression&&!this.instance.get_config("disable_compression")){var s,o={},a=lr(e.supportedCompression);try{for(a.s();!(s=a.n()).done;)o[s.value]=!0}catch(f){a.e(f)}finally{a.f()}this.instance.compression=o}if(e.siteApps)if(this.instance.get_config("opt_in_site_apps")){var l,h=this.instance.get_config("api_host"),c=lr(e.siteApps);try{var p=function(){var f=l.value,u=f.id,m=f.url,g=[h,h[h.length-1]==="/"&&m[0]==="/"?m.substring(1):m].join("");window["__$$ph_site_app_".concat(u)]=n.instance,Sl(g,function(d){d&&console.error("Error while initializing PostHog app with config id ".concat(u),d)})};for(c.s();!(l=c.n()).done;)p()}catch(f){c.e(f)}finally{c.f()}}else e.siteApps.length>0&&console.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}else console.error("Failed to fetch feature flags from PostHog.")}}]),t}(),K0=["https://app.posthog.com","https://eu.posthog.com"],J0=["source"],Q0=function(){function t(e){Vt(this,t),this.instance=e}return Bt(t,[{key:"afterDecideResponse",value:function(e){var r=e.toolbarParams||e.editorParams||(e.toolbarVersion?{toolbarVersion:e.toolbarVersion}:{});e.isAuthenticated&&r.toolbarVersion&&r.toolbarVersion.indexOf("toolbar")===0&&this.loadToolbar(nt({},r))}},{key:"maybeLoadToolbar",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.location,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:window.history;try{if(!r){try{window.localStorage.setItem("test","test"),window.localStorage.removeItem("test")}catch{return!1}r=window.localStorage}var n,s=fu(e.hash,"__posthog")||fu(e.hash,"state"),o=s?JSON.parse(decodeURIComponent(s)):null;return o&&o.action==="ph_authorize"?((n=o).source="url",n&&Object.keys(n).length>0&&(o.desiredHash?e.hash=o.desiredHash:i?i.replaceState("",document.title,e.pathname+e.search):e.hash="")):((n=JSON.parse(r.getItem("_postHogToolbarParams")||"{}")).source="localstorage",delete n.userIntent),!(!n.token||this.instance.get_config("token")!==n.token)&&(this.loadToolbar(n),!0)}catch{return!1}}},{key:"loadToolbar",value:function(e){var r=this;if(window._postHogToolbarLoaded)return!1;window._postHogToolbarLoaded=!0;var i=this.instance.get_config("api_host"),n=3e4*Math.floor(Date.now()/3e4),s="".concat(i).concat(i.endsWith("/")?"":"/","static/toolbar.js?_ts=").concat(n),o=!K0.includes(this.instance.get_config("api_host"))&&this.instance.get_config("advanced_disable_toolbar_metrics"),a=nt(nt({token:this.instance.get_config("token")},e),{},{apiURL:i},o?{instrument:!1}:{});a.source;var l=g0(a,J0);return window.localStorage.setItem("_postHogToolbarParams",JSON.stringify(l)),Sl(s,function(h){h?bt.error("Failed to load toolbar",h):(window.ph_load_toolbar||window.ph_load_editor)(a,r.instance)}),un(window,"turbolinks:load",function(){window._postHogToolbarLoaded=!1,r.loadToolbar(a)}),!0}},{key:"_loadEditor",value:function(e){return this.loadToolbar(e)}},{key:"maybeLoadEditor",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.location,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:window.history;return this.maybeLoadToolbar(e,r,i)}}]),t}(),qu=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:3e3;Vt(this,t),this.isPolling=!0,this._event_queue=[],this._empty_queue_count=0,this._poller=void 0,this._pollInterval=e}return Bt(t,[{key:"setPollInterval",value:function(e){this._pollInterval=e,this.isPolling&&this.poll()}},{key:"poll",value:function(){}},{key:"unload",value:function(){}},{key:"getTime",value:function(){return new Date().getTime()}}]),t}(),tg=function(t){Tu(r,qu);var e=Mu(r);function r(i,n){var s,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:3e3;return Vt(this,r),(s=e.call(this,o)).handlePollRequest=n,s.captureMetrics=i,s}return Bt(r,[{key:"enqueue",value:function(i,n,s){this.captureMetrics.incr("batch-enqueue"),this._event_queue.push({url:i,data:n,options:s}),this.isPolling||(this.isPolling=!0,this.poll())}},{key:"poll",value:function(){var i=this;clearTimeout(this._poller),this._poller=setTimeout(function(){if(i._event_queue.length>0){var n=i.formatQueue(),s=function(a){var l=n[a],h=l.url,c=l.data,p=l.options;ct(c,function(f,u){c[u].offset=Math.abs(c[u].timestamp-i.getTime()),delete c[u].timestamp}),i.handlePollRequest(h,c,p),i.captureMetrics.incr("batch-requests"),i.captureMetrics.incr("batch-requests-".concat(h.slice(h.length-2))),i.captureMetrics.incr("batch-handle",c.length),i.captureMetrics.incr("batch-handle-".concat(h.slice(h.length-2)),c.length)};for(var o in n)s(o);i._event_queue.length=0,i._empty_queue_count=0}else i._empty_queue_count++;i._empty_queue_count>4&&(i.isPolling=!1,i._empty_queue_count=0),i.isPolling&&i.poll()},this._pollInterval)}},{key:"updateUnloadMetrics",value:function(){var i=this.formatQueue();for(var n in i){var s=i[n],o=s.url,a=s.data;this.captureMetrics.incr("batch-unload-requests"),this.captureMetrics.incr("batch-unload-requests-".concat(o.slice(o.length-2))),this.captureMetrics.incr("batch-unload",a.length),this.captureMetrics.incr("batch-unload-".concat(o.slice(o.length-2)),a.length)}}},{key:"unload",value:function(){var i=this;clearTimeout(this._poller);var n=this._event_queue.length>0?this.formatQueue():{};this._event_queue.length=0;var s=Object.values(n);[].concat(al(s.filter(function(o){return o.url.indexOf("/e")===0})),al(s.filter(function(o){return o.url.indexOf("/e")!==0}))).map(function(o){var a=o.url,l=o.data,h=o.options;i.handlePollRequest(a,l,nt(nt({},h),{},{transport:"sendBeacon"}))})}},{key:"formatQueue",value:function(){var i={};return ct(this._event_queue,function(n){var s=n.url,o=n.data,a=n.options,l=(a?a._batchKey:null)||s;i[l]===void 0&&(i[l]={data:[],url:s,options:a}),a&&i[l].options&&i[l].options._metrics&&!i[l].options._metrics.rrweb_full_snapshot&&(i[l].options._metrics.rrweb_full_snapshot=a._metrics.rrweb_full_snapshot),i[l].data.push(o)}),i}}]),r}(),eg=function(){function t(e){Vt(this,t),this.enabled=e,this.metrics={}}return Bt(t,[{key:"incr",value:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.enabled&&(e="phjs-".concat(e),this.metrics[e]=(this.metrics[e]||0)+r)}},{key:"decr",value:function(e){this.enabled&&(e="phjs-".concat(e),this.metrics[e]=(this.metrics[e]||0)-1)}}]),t}(),oe=Uint8Array,Gt=Uint16Array,ui=Uint32Array,Pl=new oe([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Al=new oe([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),ku=new oe([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Uu=function(t,e){for(var r=new Gt(31),i=0;i<31;++i)r[i]=e+=1<<t[i-1];var n=new ui(r[30]);for(i=1;i<30;++i)for(var s=r[i];s<r[i+1];++s)n[s]=s-r[i]<<5|i;return[r,n]},Wu=Uu(Pl,2),rg=Wu[0],gl=Wu[1];rg[28]=258,gl[258]=28;for(yl=Uu(Al,0)[1],so=new Gt(32768),yt=0;yt<32768;++yt)ir=(43690&yt)>>>1|(21845&yt)<<1,ir=(61680&(ir=(52428&ir)>>>2|(13107&ir)<<2))>>>4|(3855&ir)<<4,so[yt]=((65280&ir)>>>8|(255&ir)<<8)>>>1;var ir,yl,so,yt,fn=function(t,e,r){for(var i=t.length,n=0,s=new Gt(e);n<i;++n)++s[t[n]-1];var o,a=new Gt(e);for(n=0;n<e;++n)a[n]=a[n-1]+s[n-1]<<1;if(r){o=new Gt(1<<e);var l=15-e;for(n=0;n<i;++n)if(t[n])for(var h=n<<4|t[n],c=e-t[n],p=a[t[n]-1]++<<c,f=p|(1<<c)-1;p<=f;++p)o[so[p]>>>l]=h}else for(o=new Gt(i),n=0;n<i;++n)o[n]=so[a[t[n]-1]++]>>>15-t[n];return o},Cr=new oe(288);for(yt=0;yt<144;++yt)Cr[yt]=8;for(yt=144;yt<256;++yt)Cr[yt]=9;for(yt=256;yt<280;++yt)Cr[yt]=7;for(yt=280;yt<288;++yt)Cr[yt]=8;var oo=new oe(32);for(yt=0;yt<32;++yt)oo[yt]=5;var we,ig=fn(Cr,9,0),ng=fn(oo,5,0),Zu=function(t){return(t/8>>0)+(7&t&&1)},Yu=function(t,e,r){(e==null||e<0)&&(e=0),(r==null||r>t.length)&&(r=t.length);var i=new(t instanceof Gt?Gt:t instanceof ui?ui:oe)(r-e);return i.set(t.subarray(e,r)),i},qe=function(t,e,r){r<<=7&e;var i=e/8>>0;t[i]|=r,t[i+1]|=r>>>8},hn=function(t,e,r){r<<=7&e;var i=e/8>>0;t[i]|=r,t[i+1]|=r>>>8,t[i+2]|=r>>>16},sl=function(t,e){for(var r=[],i=0;i<t.length;++i)t[i]&&r.push({s:i,f:t[i]});var n=r.length,s=r.slice();if(!n)return[new oe(0),0];if(n==1){var o=new oe(r[0].s+1);return o[r[0].s]=1,[o,1]}r.sort(function(x,M){return x.f-M.f}),r.push({s:-1,f:25001});var a=r[0],l=r[1],h=0,c=1,p=2;for(r[0]={s:-1,f:a.f+l.f,l:a,r:l};c!=n-1;)a=r[r[h].f<r[p].f?h++:p++],l=r[h!=c&&r[h].f<r[p].f?h++:p++],r[c++]={s:-1,f:a.f+l.f,l:a,r:l};var f=s[0].s;for(i=1;i<n;++i)s[i].s>f&&(f=s[i].s);var u=new Gt(f+1),m=sg(r[c-1],u,0);if(m>e){i=0;var g=0,d=m-e,y=1<<d;for(s.sort(function(x,M){return u[M.s]-u[x.s]||x.f-M.f});i<n;++i){var v=s[i].s;if(!(u[v]>e))break;g+=y-(1<<m-u[v]),u[v]=e}for(g>>>=d;g>0;){var b=s[i].s;u[b]<e?g-=1<<e-u[b]++-1:++i}for(;i>=0&&g;--i){var _=s[i].s;u[_]==e&&(--u[_],++g)}m=e}return[new oe(u),m]},sg=function t(e,r,i){return e.s==-1?Math.max(t(e.l,r,i+1),t(e.r,r,i+1)):r[e.s]=i},Pu=function(t){for(var e=t.length;e&&!t[--e];);for(var r=new Gt(++e),i=0,n=t[0],s=1,o=function(l){r[i++]=l},a=1;a<=e;++a)if(t[a]==n&&a!=e)++s;else{if(!n&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(n),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(n);s=1,n=t[a]}return[r.subarray(0,i),e]},cn=function(t,e){for(var r=0,i=0;i<e.length;++i)r+=t[i]*e[i];return r},to=function(t,e,r){var i=r.length,n=Zu(e+2);t[n]=255&i,t[n+1]=i>>>8,t[n+2]=255^t[n],t[n+3]=255^t[n+1];for(var s=0;s<i;++s)t[n+s+4]=r[s];return 8*(n+4+i)},Au=function(t,e,r,i,n,s,o,a,l,h,c){qe(e,c++,r),++n[256];for(var p=sl(n,15),f=p[0],u=p[1],m=sl(s,15),g=m[0],d=m[1],y=Pu(f),v=y[0],b=y[1],_=Pu(g),x=_[0],M=_[1],S=new Gt(19),w=0;w<v.length;++w)S[31&v[w]]++;for(w=0;w<x.length;++w)S[31&x[w]]++;for(var D=sl(S,7),E=D[0],T=D[1],k=19;k>4&&!E[ku[k-1]];--k);var A,P,I,O,F=h+5<<3,C=cn(n,Cr)+cn(s,oo)+o,L=cn(n,f)+cn(s,g)+o+14+3*k+cn(S,E)+(2*S[16]+3*S[17]+7*S[18]);if(F<=C&&F<=L)return to(e,c,t.subarray(l,l+h));if(qe(e,c,1+(L<C)),c+=2,L<C){A=fn(f,u,0),P=f,I=fn(g,d,0),O=g;var R=fn(E,T,0);for(qe(e,c,b-257),qe(e,c+5,M-1),qe(e,c+10,k-4),c+=14,w=0;w<k;++w)qe(e,c+3*w,E[ku[w]]);c+=3*k;for(var z=[v,x],H=0;H<2;++H){var G=z[H];for(w=0;w<G.length;++w){var N=31&G[w];qe(e,c,R[N]),c+=E[N],N>15&&(qe(e,c,G[w]>>>5&127),c+=G[w]>>>12)}}}else A=ig,P=Cr,I=ng,O=oo;for(w=0;w<a;++w)if(i[w]>255){N=i[w]>>>18&31,hn(e,c,A[N+257]),c+=P[N+257],N>7&&(qe(e,c,i[w]>>>23&31),c+=Pl[N]);var Y=31&i[w];hn(e,c,I[Y]),c+=O[Y],Y>3&&(hn(e,c,i[w]>>>5&8191),c+=Al[Y])}else hn(e,c,A[i[w]]),c+=P[i[w]];return hn(e,c,A[256]),c+P[256]},og=new ui([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),ag=new oe(0),lg=function(){for(var t=new ui(256),e=0;e<256;++e){for(var r=e,i=9;--i;)r=(1&r&&3988292384)^r>>>1;t[e]=r}return t}(),hg=function(){var t=4294967295;return{p:function(e){for(var r=t,i=0;i<e.length;++i)r=lg[255&r^e[i]]^r>>>8;t=r},d:function(){return 4294967295^t}}},cg=function(t,e,r,i,n){return function(s,o,a,l,h,c){var p=s.length,f=new oe(l+p+5*(1+Math.floor(p/7e3))+h),u=f.subarray(l,f.length-h),m=0;if(!o||p<8)for(var g=0;g<=p;g+=65535){var d=g+65535;d<p?m=to(u,m,s.subarray(g,d)):(u[g]=c,m=to(u,m,s.subarray(g,p)))}else{for(var y=og[o-1],v=y>>>13,b=8191&y,_=(1<<a)-1,x=new Gt(32768),M=new Gt(_+1),S=Math.ceil(a/3),w=2*S,D=function(qt){return(s[qt]^s[qt+1]<<S^s[qt+2]<<w)&_},E=new ui(25e3),T=new Gt(288),k=new Gt(32),A=0,P=0,I=(g=0,0),O=0,F=0;g<p;++g){var C=D(g),L=32767&g,R=M[C];if(x[L]=R,M[C]=L,O<=g){var z=p-g;if((A>7e3||I>24576)&&z>423){m=Au(s,u,0,E,T,k,P,I,F,g-F,m),I=A=P=0,F=g;for(var H=0;H<286;++H)T[H]=0;for(H=0;H<30;++H)k[H]=0}var G=2,N=0,Y=b,J=L-R&32767;if(z>2&&C==D(g-J))for(var K=Math.min(v,z)-1,Z=Math.min(32767,g),pt=Math.min(258,z);J<=Z&&--Y&&L!=R;){if(s[g+G]==s[g+G-J]){for(var et=0;et<pt&&s[g+et]==s[g+et-J];++et);if(et>G){if(G=et,N=J,et>K)break;var vt=Math.min(J,et-2),ut=0;for(H=0;H<vt;++H){var j=g-J+H+32768&32767,Ft=j-x[j]+32768&32767;Ft>ut&&(ut=Ft,R=j)}}}J+=(L=R)-(R=x[L])+32768&32767}if(N){E[I++]=268435456|gl[G]<<18|yl[N];var ae=31&gl[G],le=31&yl[N];P+=Pl[ae]+Al[le],++T[257+ae],++k[le],O=g+G,++A}else E[I++]=s[g],++T[s[g]]}}m=Au(s,u,c,E,T,k,P,I,F,g-F,m),c||(m=to(u,m,ag))}return Yu(f,0,l+Zu(m)+h)}(t,e.level==null?6:e.level,e.mem==null?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):12+e.mem,r,i,!n)},vl=function(t,e,r){for(;r;++e)t[e]=r,r>>>=8},pg=function(t,e){var r=e.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=e.level<2?4:e.level==9?2:0,t[9]=3,e.mtime!=0&&vl(t,4,Math.floor(new Date(e.mtime||Date.now())/1e3)),r){t[3]=8;for(var i=0;i<=r.length;++i)t[i+10]=r.charCodeAt(i)}},ug=function(t){return 10+(t.filename&&t.filename.length+1||0)};function fg(t,e){e===void 0&&(e={});var r=hg(),i=t.length;r.p(t);var n=cg(t,e,ug(e),8),s=n.length;return pg(n,e),vl(n,s-8,r.d()),vl(n,s-4,i),n}function dg(t,e){var r=t.length;if(!e&&typeof TextEncoder<"u")return new TextEncoder().encode(t);for(var i=new oe(t.length+(t.length>>>1)),n=0,s=function(h){i[n++]=h},o=0;o<r;++o){if(n+5>i.length){var a=new oe(n+8+(r-o<<1));a.set(i),i=a}var l=t.charCodeAt(o);l<128||e?s(l):l<2048?(s(192|l>>>6),s(128|63&l)):l>55295&&l<57344?(s(240|(l=65536+(1047552&l)|1023&t.charCodeAt(++o))>>>18),s(128|l>>>12&63),s(128|l>>>6&63),s(128|63&l)):(s(224|l>>>12),s(128|l>>>6&63),s(128|63&l))}return Yu(i,0,n)}(function(t){t.GZipJS="gzip-js",t.LZ64="lz64",t.Base64="base64"})(we||(we={}));var dn,Cl,Ot,mg=function(t,e,r){var i=e||{};i.ip=r.ip?1:0,i._=new Date().getTime().toString(),i.ver=De.LIB_VERSION;var n=t.split("?");if(n.length>1){var s,o=lr(n[1].split("&"));try{for(o.s();!(s=o.n()).done;){var a=s.value.split("=")[0];i[a]&&delete i[a]}}catch(h){o.e(h)}finally{o.f()}}var l=t.indexOf("?")>-1?"&":"?";return t+l+function(h){var c,p,f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"&",u=[];return ct(h,function(m,g){c=encodeURIComponent(m.toString()),p=encodeURIComponent(g),u[u.length]=p+"="+c}),u.join(f)}(i)},Tl=function t(e,r){if(r.blob&&e.buffer)return new Blob([e.buffer],{type:"text/plain"});if(r.sendBeacon||r.blob){var i=t(e,{method:"POST"});return new Blob([i],{type:"application/x-www-form-urlencoded"})}if(r.method!=="POST")return null;var n,s;return n=Array.isArray(e)||(s=e,Object.prototype.toString.call(s)==="[object Uint8Array]")?"data="+encodeURIComponent(e):"data="+encodeURIComponent(e.data),"compression"in e&&e.compression&&(n+="&compression="+e.compression),n},Xu=function(t){var e=t.url,r=t.data,i=t.headers,n=t.options,s=t.captureMetrics,o=t.callback,a=t.retriesPerformedSoFar,l=t.retryQueue,h=t.onXHRError,c=t.timeout,p=c===void 0?1e4:c,f=new XMLHttpRequest;f.open(n.method||"GET",e,!0);var u=Tl(r,n);s.incr("_send_request"),s.incr("_send_request_inflight"),ct(i,function(m,g){f.setRequestHeader(g,m)}),n.method!=="POST"||n.blob||f.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),f.timeout=p,f.withCredentials=!0,f.onreadystatechange=function(){if(f.readyState===4)if(s.incr("xhr-response"),s.incr("xhr-response-".concat(f.status)),s.decr("_send_request_inflight"),f.status===200){if(o){var m;try{m=JSON.parse(f.responseText)}catch(g){return void bt.error(g)}o(m)}}else typeof h=="function"&&h(f),[401,403,404,500].indexOf(f.status)<0&&l.enqueue({url:e,data:r,options:n,headers:i,retriesPerformedSoFar:(a||0)+1,callback:o}),o&&o({status:0})},f.send(u)},gg=function(t){Tu(r,qu);var e=Mu(r);function r(i,n){var s;return Vt(this,r),(s=e.call(this)).captureMetrics=i,s.isPolling=!1,s.queue=[],s.areWeOnline=!0,s.onXHRError=n,typeof window<"u"&&"onLine"in window.navigator&&(s.areWeOnline=window.navigator.onLine,window.addEventListener("online",function(){s._handleWeAreNowOnline()}),window.addEventListener("offline",function(){s.areWeOnline=!1})),s}return Bt(r,[{key:"enqueue",value:function(i){var n=i.retriesPerformedSoFar||0;if(!(n>=10)){var s=3e3*Math.pow(2,n),o=new Date(Date.now()+s);console.warn("Enqueued failed request for retry in ".concat(s)),this.queue.push({retryAt:o,requestData:i}),this.isPolling||(this.isPolling=!0,this.poll())}}},{key:"poll",value:function(){var i=this;this._poller&&clearTimeout(this._poller),this._poller=setTimeout(function(){i.areWeOnline&&i.queue.length>0&&i.flush(),i.poll()},this._pollInterval)}},{key:"flush",value:function(){var i=new Date(Date.now()),n=this.queue.filter(function(l){return l.retryAt<i});if(n.length>0){this.queue=this.queue.filter(function(l){return l.retryAt>=i});var s,o=lr(n);try{for(o.s();!(s=o.n()).done;){var a=s.value.requestData;this._executeXhrRequest(a)}}catch(l){o.e(l)}finally{o.f()}}}},{key:"unload",value:function(){this._poller&&(clearTimeout(this._poller),this._poller=void 0);var i,n=lr(this.queue);try{for(n.s();!(i=n.n()).done;){var s=i.value.requestData,o=s.url,a=s.data,l=s.options;try{window.navigator.sendBeacon(o,Tl(a,nt(nt({},l),{},{sendBeacon:!0})))}catch(h){De.DEBUG&&console.error(h)}}}catch(h){n.e(h)}finally{n.f()}this.queue=[]}},{key:"_executeXhrRequest",value:function(i){var n=i.url,s=i.data,o=i.options,a=i.headers,l=i.callback,h=i.retriesPerformedSoFar;Xu({url:n,data:s||{},options:o||{},headers:a||{},retriesPerformedSoFar:h||0,callback:l,captureMetrics:this.captureMetrics,retryQueue:this,onXHRError:this.onXHRError})}},{key:"_handleWeAreNowOnline",value:function(){this.areWeOnline=!0,this.flush()}}]),r}(),yg=18e5,vg=864e5,bg=function(){function t(e,r){Vt(this,t),this.config=e,this.persistence=r,this._windowId=void 0,this._sessionId=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null;var i=e.persistence_name||e.token;if(this.window_id_storage_key="ph_"+i+"_window_id",this.primary_window_exists_storage_key="ph_"+i+"_primary_window_exists",this._canUseSessionStorage()){var n=Lt.parse(this.window_id_storage_key),s=Lt.parse(this.primary_window_exists_storage_key);n&&!s?this._windowId=n:Lt.remove(this.window_id_storage_key),Lt.set(this.primary_window_exists_storage_key,!0)}this._listenToReloadWindow()}return Bt(t,[{key:"_canUseSessionStorage",value:function(){return this.config.persistence!=="memory"&&!this.persistence.disabled&&Lt.is_supported()}},{key:"_setWindowId",value:function(e){e!==this._windowId&&(this._windowId=e,this._canUseSessionStorage()&&Lt.set(this.window_id_storage_key,e))}},{key:"_getWindowId",value:function(){return this._windowId?this._windowId:this._canUseSessionStorage()?Lt.parse(this.window_id_storage_key):null}},{key:"_setSessionId",value:function(e,r,i){e===this._sessionId&&r===this._sessionActivityTimestamp&&i===this._sessionStartTimestamp||(this._sessionStartTimestamp=i,this._sessionActivityTimestamp=r,this._sessionId=e,this.persistence.register(st({},fl,[r,e,i])))}},{key:"_getSessionId",value:function(){if(this._sessionId&&this._sessionActivityTimestamp&&this._sessionStartTimestamp)return[this._sessionActivityTimestamp,this._sessionId,this._sessionStartTimestamp];var e=this.persistence.props[fl];return Array.isArray(e)&&e.length===2&&e.push(e[0]),e||[0,null,0]}},{key:"resetSessionId",value:function(){this._setSessionId(null,null,null)}},{key:"_listenToReloadWindow",value:function(){var e=this;window.addEventListener("beforeunload",function(){e._canUseSessionStorage()&&Lt.remove(e.primary_window_exists_storage_key)})}},{key:"checkAndGetSessionAndWindowId",value:function(){var e=arguments.length>0&&arguments[0]!==void 0&&arguments[0],r=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:null)||new Date().getTime(),i=ao(this._getSessionId(),3),n=i[0],s=i[1],o=i[2],a=this._getWindowId(),l=o&&o>0&&Math.abs(r-o)>vg;!s||!e&&Math.abs(r-n)>yg||l?(s=ar(),a=ar(),o=r):a||(a=ar());var h=n===0||!e||l?r:n,c=o===0?new Date().getTime():o;return this._setWindowId(a),this._setSessionId(s,h,c),{sessionId:s,windowId:a}}}]),t}(),_g=Bt(function t(e,r,i,n){Vt(this,t),this.name="posthog-js",this.setupOnce=function(s){s(function(o){var a,l,h;if(o.level!=="error"||!e.__loaded)return o;o.tags||(o.tags={});var c=e.config.ui_host||e.config.api_host;o.tags["PostHog Person URL"]=c+"/person/"+e.get_distinct_id(),e.sessionRecordingStarted()&&(o.tags["PostHog Recording URL"]=e.get_session_replay_url({withTimestamp:!0}));var p=((a=o.exception)===null||a===void 0?void 0:a.values)||[],f={$sentry_event_id:o.event_id,$sentry_exception:o.exception,$sentry_exception_message:(l=p[0])===null||l===void 0?void 0:l.value,$sentry_exception_type:(h=p[0])===null||h===void 0?void 0:h.type,$sentry_tags:o.tags};return r&&i&&(f.$sentry_url=(n||"https://sentry.io/organizations/")+r+"/issues/?project="+i+"&query="+o.event_id),e.capture("$exception",f),o})}}),wg=function(t){var e=function(r,i){r.event.userId||r.event.anonymousId===t.get_distinct_id()||t.reset(),r.event.userId&&r.event.userId!==t.get_distinct_id()&&(t.register({distinct_id:r.event.userId}),t.reloadFeatureFlags());var n=t._calculate_event_properties(i,r.event.properties);return r.event.properties=Object.assign({},n,r.event.properties),r};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:function(r){return e(r,r.event.event)},page:function(r){return e(r,"$pageview")},identify:function(r){return e(r,"$identify")},screen:function(r){return e(r,"$screen")}}},xg=function(){function t(){Vt(this,t),st(this,"_seenFirstPageView",!1)}return Bt(t,[{key:"onPageview",value:function(){this._seenFirstPageView&&(this._pageViewId=ar()),this._seenFirstPageView=!0}},{key:"getPageViewId",value:function(){return this._pageViewId||(this._pageViewId=ar()),this._pageViewId}}]),t}();(function(t){t[t.INIT_MODULE=0]="INIT_MODULE",t[t.INIT_SNIPPET=1]="INIT_SNIPPET"})(dn||(dn={}));var bl=function(){},Ks={},Xt="posthog",eo=tt.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,Ku=!eo&&me.indexOf("MSIE")===-1&&me.indexOf("Mozilla")===-1,Cu=function(){var t,e,r;return{api_host:"https://app.posthog.com",api_method:"POST",api_transport:"XHR",ui_host:null,token:"",autocapture:!0,rageclick:!0,cross_subdomain_cookie:(At==null||(t=At.location)===null||t===void 0||(e=t.hostname)===null||e===void 0?void 0:e.indexOf("herokuapp.com"))===-1,persistence:"cookie",persistence_name:"",cookie_name:"",loaded:bl,store_google:!0,custom_campaign_params:[],save_referrer:!0,test:!1,verbose:!1,capture_pageview:!0,capture_pageleave:!0,debug:!1,cookie_expiration:365,upgrade:!1,disable_session_recording:!1,disable_persistence:!1,disable_cookie:!1,enable_recording_console_log:void 0,secure_cookie:(tt==null||(r=tt.location)===null||r===void 0?void 0:r.protocol)==="https:",ip:!0,opt_out_capturing_by_default:!1,opt_out_persistence_by_default:!1,opt_out_capturing_persistence_type:"localStorage",opt_out_capturing_cookie_prefix:null,opt_in_site_apps:!1,property_blacklist:[],respect_dnt:!1,sanitize_properties:null,xhr_headers:{},inapp_protocol:"//",inapp_link_new_window:!1,request_batching:!0,properties_string_max_length:65535,session_recording:{blockClass:"ph-no-capture",blockSelector:null,ignoreClass:"ph-ignore-input",maskAllInputs:!0,maskInputOptions:{},maskInputFn:null,slimDOMOptions:{},collectFonts:!1,inlineStylesheet:!0},mask_all_element_attributes:!1,mask_all_text:!1,advanced_disable_decide:!1,advanced_disable_toolbar_metrics:!1,on_xhr_error:function(i){var n="Bad HTTP status: "+i.status+" "+i.statusText;console.error(n)},get_device_id:function(i){return i},_onCapture:bl,_capture_metrics:!1,capture_performance:void 0,name:"posthog",callback_fn:"posthog._jsc",bootstrap:{},disable_compression:!1}},_l=function(t,e,r,i){var n,s=r!==Xt&&Ot?r?Ot[r]:void 0:Ot,o={initComplete:!1,syncCode:!1},a=function(l){return function(h){o[l]||(o[l]=!0,o.initComplete&&o.syncCode&&i?.(h))}};if(s&&Cl===dn.INIT_MODULE)n=s;else{if(s&&!Ue(s))return void console.error("You have already initialized "+r);n=new Ml}return n._init(t,e,r,a("initComplete")),n.toolbar.maybeLoadToolbar(),n.sessionRecording=new q0(n),n.sessionRecording.startRecordingIfEnabled(),n.webPerformance=new Z0(n),n.webPerformance.startObservingIfEnabled(),n.__autocapture=n.get_config("autocapture"),or._setIsAutocaptureEnabled(n),or._isAutocaptureEnabled&&(n.__autocapture=n.get_config("autocapture"),or.enabledForProject(n.get_config("token"),100,100)?or.isBrowserSupported()?or.init(n):(n.__autocapture=!1,bt.log("Disabling Automatic Event Collection because this browser is not supported")):(n.__autocapture=!1,bt.log("Not in active bucket: disabling Automatic Event Collection."))),De.DEBUG=De.DEBUG||n.get_config("debug"),s!==void 0&&Ue(s)&&(n._execute_array.call(n.people,s.people),n._execute_array(s)),a("syncCode")(n),n},Ml=function(){function t(){var e=this;Vt(this,t),this.config=Cu(),this.compression={},this.decideEndpointWasHit=!1,this.SentryIntegration=_g,this.segmentIntegration=function(){return wg(e)},this.__captureHooks=[],this.__request_queue=[],this.__loaded=!1,this.__loaded_recorder_version=void 0,this.__autocapture=void 0,this._jsc=function(){},this.people=new R0(this),this.featureFlags=new V0(this),this.feature_flags=this.featureFlags,this.toolbar=new Q0(this),this.pageViewIdManager=new xg,this._captureMetrics=void 0,this._requestQueue=void 0,this._retryQueue=void 0,this.persistence=void 0,this.sessionPersistence=void 0,this.sessionManager=void 0}return Bt(t,[{key:"init",value:function(e,r,i){if(xe(i))console.error("You must name your new library: init(token, config, name)");else{if(i!==Xt){var n=_l(e,r,i,function(s){Ot[i]=s,s._loaded()});return Ot[i]=n,n}console.error("You must initialize the main posthog object right after you include the PostHog js snippet")}}},{key:"_init",value:function(e){var r,i,n=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0;this.__loaded=!0,this.config={},this._triggered_notifs=[];var l,h={segmentRegister:!1,syncCode:!1},c=function(_){return function(){h[_]||(h[_]=!0,h.segmentRegister&&h.syncCode&&a?.(n))}};if(this.set_config(It({},Cu(),s,{name:o,token:e,callback_fn:(o===Xt?o:Xt+"."+o)+"._jsc"})),this._jsc=function(){},(tt!=null&&(r=tt.rrweb)!==null&&r!==void 0&&r.record||tt!=null&&tt.rrwebRecord)&&(this.__loaded_recorder_version=tt==null||(l=tt.rrweb)===null||l===void 0?void 0:l.version),this._captureMetrics=new eg(this.get_config("_capture_metrics")),this._requestQueue=new tg(this._captureMetrics,this._handle_queued_event.bind(this)),this._retryQueue=new gg(this._captureMetrics,this.get_config("on_xhr_error")),this.__captureHooks=[],this.__request_queue=[],this.persistence=new _u(this.config),this.sessionManager=new bg(this.config,this.persistence),this.sessionPersistence=this.config.persistence==="sessionStorage"?this.persistence:new _u(nt(nt({},this.config),{},{persistence:"sessionStorage"})),this._gdpr_init(),s.segment?(this.config.get_device_id=function(){return s.segment.user().anonymousId()},s.segment.user().id()&&(this.register({distinct_id:s.segment.user().id()}),this.persistence.set_user_state("identified")),s.segment.register(this.segmentIntegration()).then(c("segmentRegister"))):c("segmentRegister")(),((i=s.bootstrap)===null||i===void 0?void 0:i.distinctID)!==void 0){var p,f,u=this.get_config("get_device_id")(ar()),m=(p=s.bootstrap)!==null&&p!==void 0&&p.isIdentifiedID?u:s.bootstrap.distinctID;this.persistence.set_user_state((f=s.bootstrap)!==null&&f!==void 0&&f.isIdentifiedID?"identified":"anonymous"),this.register({distinct_id:s.bootstrap.distinctID,$device_id:m})}if(this._hasBootstrappedFeatureFlags()){var g,d,y=Object.keys(((g=s.bootstrap)===null||g===void 0?void 0:g.featureFlags)||{}).filter(function(_){var x,M;return!((x=s.bootstrap)===null||x===void 0||(M=x.featureFlags)===null||M===void 0||!M[_])}).reduce(function(_,x){var M,S;return _[x]=((M=s.bootstrap)===null||M===void 0||(S=M.featureFlags)===null||S===void 0?void 0:S[x])||!1,_},{}),v=Object.keys(((d=s.bootstrap)===null||d===void 0?void 0:d.featureFlagPayloads)||{}).filter(function(_){return y[_]}).reduce(function(_,x){var M,S,w,D;return(M=s.bootstrap)!==null&&M!==void 0&&(S=M.featureFlagPayloads)!==null&&S!==void 0&&S[x]&&(_[x]=(w=s.bootstrap)===null||w===void 0||(D=w.featureFlagPayloads)===null||D===void 0?void 0:D[x]),_},{});this.featureFlags.receivedFeatureFlags({featureFlags:y,featureFlagPayloads:v})}if(!this.get_distinct_id()){var b=this.get_config("get_device_id")(ar());this.register_once({distinct_id:b,$device_id:b},""),this.persistence.set_user_state("anonymous")}tt.addEventListener&&tt.addEventListener("onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this)),c("syncCode")()}},{key:"_loaded",value:function(){this.featureFlags.setReloadingPaused(!0);try{this.get_config("loaded")(this)}catch(e){console.error("`loaded` function failed",e)}this._start_queue_if_opted_in(),this.get_config("capture_pageview")&&this.capture("$pageview",{},{send_instantly:!0}),this.get_config("advanced_disable_decide")||new X0(this).call(),this.featureFlags.resetRequestQueue(),this.featureFlags.setReloadingPaused(!1)}},{key:"_start_queue_if_opted_in",value:function(){this.has_opted_out_capturing()||this.get_config("request_batching")&&this._requestQueue.poll()}},{key:"_dom_loaded",value:function(){var e=this;this.has_opted_out_capturing()||We(this.__request_queue,function(r){e._send_request.apply(e,al(r))}),this.__request_queue=[],this._start_queue_if_opted_in()}},{key:"_prepare_callback",value:function(e,r){if(xe(e))return null;if(eo)return function(o){e(o,r)};var i=this._jsc,n=""+Math.floor(1e8*Math.random()),s=this.get_config("callback_fn")+"["+n+"]";return i[n]=function(o){delete i[n],e(o,r)},s}},{key:"_handle_unload",value:function(){this.get_config("request_batching")?(this.get_config("capture_pageview")&&this.get_config("capture_pageleave")&&this.capture("$pageleave"),this.get_config("_capture_metrics")&&(this._requestQueue.updateUnloadMetrics(),this.capture("$capture_metrics",this._captureMetrics.metrics)),this._requestQueue.unload(),this._retryQueue.unload()):this.get_config("capture_pageview")&&this.get_config("capture_pageleave")&&this.capture("$pageleave",null,{transport:"sendBeacon"})}},{key:"_handle_queued_event",value:function(e,r,i){var n=JSON.stringify(r);this.__compress_and_send_json_request(e,n,i||Ks,bl)}},{key:"__compress_and_send_json_request",value:function(e,r,i,n){var s,o=function(c,p,f){return c===we.LZ64?[{data:se.compressToBase64(p),compression:we.LZ64},f]:c===we.GZipJS?[fg(dg(p),{mtime:0}),nt(nt({},f),{},{blob:!0,urlQueryArgs:{compression:we.GZipJS}})]:[{data:ho(p)},f]}((s=this.compression)[we.GZipJS]?we.GZipJS:s[we.LZ64]?we.LZ64:we.Base64,r,i),a=ao(o,2),l=a[0],h=a[1];this._send_request(e,l,h,n)}},{key:"_send_request",value:function(e,r,i,n){if(Ku)this.__request_queue.push([e,r,i,n]);else{var s={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")};i=It(s,i||{}),eo||(i.method="GET");var o="sendBeacon"in tt.navigator&&i.transport==="sendBeacon";if(e=mg(e,i.urlQueryArgs||{},{ip:this.get_config("ip")}),o)try{tt.navigator.sendBeacon(e,Tl(r,nt(nt({},i),{},{sendBeacon:!0})))}catch(c){this.get_config("debug")&&console.error(c)}else if(eo)try{Xu({url:e,data:r,headers:this.get_config("xhr_headers"),options:i,captureMetrics:this._captureMetrics,callback:n,retriesPerformedSoFar:0,retryQueue:this._retryQueue,onXHRError:this.get_config("on_xhr_error")})}catch(c){console.error(c)}else{var a,l=At.createElement("script");l.type="text/javascript",l.async=!0,l.defer=!0,l.src=e;var h=At.getElementsByTagName("script")[0];(a=h.parentNode)===null||a===void 0||a.insertBefore(l,h)}}}},{key:"_execute_array",value:function(e){var r,i=this,n=[],s=[],o=[];We(e,function(l){l&&(r=l[0],Ue(r)?o.push(l):typeof l=="function"?l.call(i):Ue(l)&&r==="alias"?n.push(l):Ue(l)&&r.indexOf("capture")!==-1&&typeof i[r]=="function"?o.push(l):s.push(l))});var a=function(l,h){We(l,function(c){if(Ue(c[0])){var p=h;ct(c,function(f){p=p[f[0]].apply(p,f.slice(1))})}else this[c[0]].apply(this,c.slice(1))},h)};a(n,this),a(s,this),a(o,this)}},{key:"_hasBootstrappedFeatureFlags",value:function(){var e,r;return((e=this.config.bootstrap)===null||e===void 0?void 0:e.featureFlags)&&Object.keys((r=this.config.bootstrap)===null||r===void 0?void 0:r.featureFlags).length>0||!1}},{key:"push",value:function(e){this._execute_array([e])}},{key:"capture",value:function(e,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ks;if(this.__loaded&&!Gu(this,!1)){this._captureMetrics.incr("capture"),e==="$snapshot"&&this._captureMetrics.incr("snapshot");var n=(i=i||Ks).transport;if(n&&(i.transport=n),xe(e)||typeof e!="string")console.error("No event name provided to posthog.capture");else if(!P0(me)){this.sessionPersistence.update_search_keyword(),this.get_config("store_google")&&this.sessionPersistence.update_campaign_params(),this.get_config("save_referrer")&&this.sessionPersistence.update_referrer_info();var s={event:e,properties:this._calculate_event_properties(e,r||{})};e==="$identify"&&(s.$set=i.$set,s.$set_once=i.$set_once),(s=$u(s,i._noTruncate?null:this.get_config("properties_string_max_length"))).timestamp=i.timestamp||new Date,this.get_config("debug")&&bt.log("PostHog.js send",s);var o=JSON.stringify(s),a=this.get_config("api_host")+(i.endpoint||"/e/"),l=i!==Ks;return!this.get_config("request_batching")||l&&!i._batchKey||i.send_instantly?this.__compress_and_send_json_request(a,o,i):this._requestQueue.enqueue(a,s,i),this._invokeCaptureHooks(e,s),s}}}},{key:"_addCaptureHook",value:function(e){this.__captureHooks.push(e)}},{key:"_invokeCaptureHooks",value:function(e,r){this.config._onCapture(e,r),ct(this.__captureHooks,function(i){return i(e)})}},{key:"_calculate_event_properties",value:function(e,r){var i,n=this.persistence.remove_event_timer(e),s=nt({},r);if(s.token=this.get_config("token"),e==="$snapshot"){var o=nt(nt({},this.persistence.properties()),this.sessionPersistence.properties());return s.distinct_id=o.distinct_id,s}var a=Mt.properties();if(this.sessionManager){var l=this.sessionManager.checkAndGetSessionAndWindowId(),h=l.sessionId,c=l.windowId;s.$session_id=h,s.$window_id=c}if((i=this.webPerformance)!==null&&i!==void 0&&i.isEnabled&&(e==="$pageview"&&this.pageViewIdManager.onPageview(),s=It(s,{$pageview_id:this.pageViewIdManager.getPageViewId()})),e==="$performance_event"){var p=this.persistence.properties();return s.distinct_id=p.distinct_id,s.$current_url=a.$current_url,s}if(n!==void 0){var f=new Date().getTime()-n;s.$duration=parseFloat((f/1e3).toFixed(3))}s=It({},Mt.properties(),this.persistence.properties(),this.sessionPersistence.properties(),s);var u=this.get_config("property_blacklist");Ue(u)?ct(u,function(g){delete s[g]}):console.error("Invalid value for property_blacklist config: "+u);var m=this.get_config("sanitize_properties");return m&&(s=m(s,e)),s}},{key:"register",value:function(e,r){this.persistence.register(e,r)}},{key:"register_once",value:function(e,r,i){this.persistence.register_once(e,r,i)}},{key:"register_for_session",value:function(e){this.sessionPersistence.register(e)}},{key:"unregister",value:function(e){this.persistence.unregister(e)}},{key:"unregister_for_session",value:function(e){this.sessionPersistence.unregister(e)}},{key:"_register_single",value:function(e,r){this.register(st({},e,r))}},{key:"getFeatureFlag",value:function(e,r){return this.featureFlags.getFeatureFlag(e,r)}},{key:"getFeatureFlagPayload",value:function(e){var r=this.featureFlags.getFeatureFlagPayload(e);try{return JSON.parse(r)}catch{return r}}},{key:"isFeatureEnabled",value:function(e,r){return this.featureFlags.isFeatureEnabled(e,r)}},{key:"reloadFeatureFlags",value:function(){this.featureFlags.reloadFeatureFlags()}},{key:"updateEarlyAccessFeatureEnrollment",value:function(e,r){this.featureFlags.updateEarlyAccessFeatureEnrollment(e,r)}},{key:"getEarlyAccessFeatures",value:function(e){var r=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return this.featureFlags.getEarlyAccessFeatures(e,r)}},{key:"onFeatureFlags",value:function(e){return this.featureFlags.onFeatureFlags(e)}},{key:"identify",value:function(e,r,i){if(e){this._captureMetrics.incr("identify");var n=this.get_distinct_id();if(this.register({$user_id:e}),!this.get_property("$device_id")){var s=n;this.register_once({$had_persisted_distinct_id:!0,$device_id:s},"")}e!==n&&e!==this.get_property(Qs)&&(this.unregister(Qs),this.register({distinct_id:e}));var o=this.persistence.get_user_state()==="anonymous";e!==n&&o?(this.persistence.set_user_state("identified"),this.capture("$identify",{distinct_id:e,$anon_distinct_id:n},{$set:r||{},$set_once:i||{}}),this.featureFlags.setAnonymousDistinctId(n)):(r&&this.people.set(r),i&&this.people.set_once(i)),e!==n&&this.reloadFeatureFlags()}else console.error("Unique user id has not been set in posthog.identify")}},{key:"group",value:function(e,r,i){if(e&&r){this._captureMetrics.incr("group");var n=this.getGroups();n[e]!==r&&this.resetGroupPropertiesForFlags(e),this.register({$groups:nt(nt({},n),{},st({},e,r))}),i&&(this.capture("$groupidentify",{$group_type:e,$group_key:r,$group_set:i}),this.setGroupPropertiesForFlags(st({},e,i))),n[e]===r||i||this.reloadFeatureFlags()}else console.error("posthog.group requires a group type and group key")}},{key:"resetGroups",value:function(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}},{key:"setPersonPropertiesForFlags",value:function(e){var r=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];this.featureFlags.setPersonPropertiesForFlags(e,r)}},{key:"resetPersonPropertiesForFlags",value:function(){this.featureFlags.resetPersonPropertiesForFlags()}},{key:"setGroupPropertiesForFlags",value:function(e){var r=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];this.featureFlags.setGroupPropertiesForFlags(e,r)}},{key:"resetGroupPropertiesForFlags",value:function(e){this.featureFlags.resetGroupPropertiesForFlags(e)}},{key:"reset",value:function(e){var r=this.get_property("$device_id");this.persistence.clear(),this.sessionPersistence.clear(),this.persistence.set_user_state("anonymous"),this.sessionManager.resetSessionId();var i=this.get_config("get_device_id")(ar());this.register_once({distinct_id:i,$device_id:e?i:r},"")}},{key:"get_distinct_id",value:function(){return this.get_property("distinct_id")}},{key:"getGroups",value:function(){return this.get_property("$groups")||{}}},{key:"get_session_id",value:function(){return this.sessionManager.checkAndGetSessionAndWindowId(!0).sessionId}},{key:"get_session_replay_url",value:function(e){var r=(this.config.ui_host||this.config.api_host)+"/replay/"+this.get_session_id();if(e!=null&&e.withTimestamp&&this.sessionManager._sessionStartTimestamp){var i,n=(i=e.timestampLookBack)!==null&&i!==void 0?i:10;if(!this.sessionManager._sessionStartTimestamp)return r;var s=Math.max(Math.floor((new Date().getTime()-(this.sessionManager._sessionStartTimestamp||0))/1e3)-n,0);r+="?t=".concat(s)}return r}},{key:"alias",value:function(e,r){return e===this.get_property(zu)?(bt.critical("Attempting to create alias for existing People user - aborting."),-2):(xe(r)&&(r=this.get_distinct_id()),e!==r?(this._register_single(Qs,e),this.capture("$create_alias",{alias:e,distinct_id:r})):(console.error("alias matches current distinct_id - skipping api call."),this.identify(e),-1))}},{key:"set_config",value:function(e){var r=nt({},this.config);Pr(e)&&(It(this.config,e),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),this.sessionPersistence&&this.sessionPersistence.update_config(this.config),xt.is_supported()&&xt.get("ph_debug")==="true"&&(this.config.debug=!0),this.get_config("debug")&&(De.DEBUG=!0),this.sessionRecording&&e.disable_session_recording!==void 0&&r.disable_session_recording!==e.disable_session_recording&&(e.disable_session_recording?this.sessionRecording.stopRecording():this.sessionRecording.startRecordingIfEnabled()))}},{key:"startSessionRecording",value:function(){this.set_config({disable_session_recording:!1})}},{key:"stopSessionRecording",value:function(){this.set_config({disable_session_recording:!0})}},{key:"sessionRecordingStarted",value:function(){var e;return!((e=this.sessionRecording)===null||e===void 0||!e.started())}},{key:"loadToolbar",value:function(e){return this.toolbar.loadToolbar(e)}},{key:"get_config",value:function(e){var r;return(r=this.config)===null||r===void 0?void 0:r[e]}},{key:"get_property",value:function(e){return this.persistence.props[e]}},{key:"getSessionProperty",value:function(e){return this.sessionPersistence.props[e]}},{key:"toString",value:function(){var e,r=(e=this.get_config("name"))!==null&&e!==void 0?e:Xt;return r!==Xt&&(r=Xt+"."+r),r}},{key:"_gdpr_init",value:function(){this.get_config("opt_out_capturing_persistence_type")==="localStorage"&&xt.is_supported()&&(!this.has_opted_in_capturing()&&this.has_opted_in_capturing({persistence_type:"cookie"})&&this.opt_in_capturing({enable_persistence:!1}),!this.has_opted_out_capturing()&&this.has_opted_out_capturing({persistence_type:"cookie"})&&this.opt_out_capturing({clear_persistence:!1}),this.clear_opt_in_out_capturing({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_capturing()?this._gdpr_update_persistence({clear_persistence:!0}):this.has_opted_in_capturing()||!this.get_config("opt_out_capturing_by_default")&&!Fe.get("ph_optout")||(Fe.remove("ph_optout"),this.opt_out_capturing({clear_persistence:this.get_config("opt_out_persistence_by_default")}))}},{key:"_gdpr_update_persistence",value:function(e){var r;if(e&&e.clear_persistence)r=!0;else{if(!e||!e.enable_persistence)return;r=!1}this.get_config("disable_persistence")||this.persistence.disabled===r||this.persistence.set_disabled(r),this.get_config("disable_persistence")||this.sessionPersistence.disabled===r||this.sessionPersistence.set_disabled(r)}},{key:"_gdpr_call_func",value:function(e,r){return r=It({capture:this.capture.bind(this),persistence_type:this.get_config("opt_out_capturing_persistence_type"),cookie_prefix:this.get_config("opt_out_capturing_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),secure_cookie:this.get_config("secure_cookie")},r||{}),xt.is_supported()||r.persistence_type!=="localStorage"||(r.persistence_type="cookie"),e(this.get_config("token"),{capture:r.capture,captureEventName:r.capture_event_name,captureProperties:r.capture_properties,persistenceType:r.persistence_type,persistencePrefix:r.cookie_prefix,cookieExpiration:r.cookie_expiration,crossSubdomainCookie:r.cross_subdomain_cookie,secureCookie:r.secure_cookie})}},{key:"opt_in_capturing",value:function(e){e=It({enable_persistence:!0},e||{}),this._gdpr_call_func(I0,e),this._gdpr_update_persistence(e)}},{key:"opt_out_capturing",value:function(e){var r=It({clear_persistence:!0},e||{});this._gdpr_call_func(O0,r),this._gdpr_update_persistence(r)}},{key:"has_opted_in_capturing",value:function(e){return this._gdpr_call_func(L0,e)}},{key:"has_opted_out_capturing",value:function(e){return this._gdpr_call_func(Nu,e)}},{key:"clear_opt_in_out_capturing",value:function(e){var r=It({enable_persistence:!0},e??{});this._gdpr_call_func($0,r),this._gdpr_update_persistence(r)}},{key:"debug",value:function(e){e===!1?(tt.console.log("You've disabled debug mode."),localStorage&&localStorage.removeItem("ph_debug"),this.set_config({debug:!1})):(tt.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),localStorage&&localStorage.setItem("ph_debug","true"),this.set_config({debug:!0}))}},{key:"decodeLZ64",value:function(e){return se.decompressFromBase64(e||null)}}]),t}();(function(t,e){for(var r=0;r<e.length;r++)t.prototype[e[r]]=Lu(t.prototype[e[r]])})(Ml,["identify"]);var nr={},Sg=function(){Ot.init=function(t,e,r){if(r)return Ot[r]||(Ot[r]=nr[r]=_l(t||"",e||{},r,function(n){Ot[r]=nr[r]=n,n._loaded()})),Ot[r];var i=Ot;return nr[Xt]?i=nr[Xt]:t&&(i=_l(t,e||{},Xt,function(n){nr[Xt]=n,n._loaded()}),nr[Xt]=i),Ot=i,Cl===dn.INIT_SNIPPET&&(tt[Xt]=Ot),ct(nr,function(n,s){s!==Xt&&(Ot[s]=n)}),i}},Eg=function(){function t(){t.done||(t.done=!0,Ku=!1,ct(nr,function(e){e._dom_loaded()}))}At.addEventListener&&(At.readyState==="complete"?t():At.addEventListener("DOMContentLoaded",t,!1)),un(tt,"load",t,!0)},Fl=(Cl=dn.INIT_MODULE,Ot=new Ml,Sg(),Ot.init(),Eg(),Ot);Fl.init("phc_OTZ3wJ6VemgVupCRKS5Sbqb9Ks0JYe0hMYZPtLwl0nu",{api_host:"https://ph-eu.molin.ai",ui_host:"https://eu.posthog.com",secure_cookie:document.location.protocol==="https:",persistence:"cookie",autocapture:!1,rageclick:!1,capture_pageview:!0,disable_session_recording:!0});function Ie(t,e){Fl.capture(t,e)}var Ju=Q`
|
|
523
|
+
`)).length,n=0;n<i;n++){var o=t.charCodeAt(n),a=null;o<128?r++:a=o>127&&o<2048?String.fromCharCode(o>>6|192,63&o|128):String.fromCharCode(o>>12|224,o>>6&63|128,63&o|128),a!==null&&(r>e&&(s+=t.substring(e,r)),s+=a,e=r=n+1)}return r>e&&(s+=t.substring(e,t.length)),s},hr=(rl=function(){for(var t=new Date().valueOf(),e=0;t==new Date().valueOf();)e++;return t.toString(16)+e.toString(16)},function(){var t=typeof window<"u"?(window.screen.height*window.screen.width).toString(16):"0";return rl()+"-"+Math.random().toString(16).replace(".","")+"-"+function(){var e,r,i=ye,n=0,s=[];function o(a,l){var h,c=0;for(h=0;h<l.length;h++)c|=s[h]<<8*h;return a^c}for(e=0;e<i.length;e++)r=i.charCodeAt(e),s.unshift(255&r),s.length>=4&&(n=o(n,s),s=[]);return s.length>0&&(n=o(n,s)),n.toString(16)}()+"-"+t+"-"+rl()}),T0=function(t){return!!/(google web preview|baiduspider|yandexbot|bingbot|googlebot|yahoo! slurp|ahrefsbot|facebookexternalhit|facebookcatalog|applebot|semrushbot|duckduckbot|twitterbot|rogerbot|linkedinbot|mj12bot|sitebulb|bot.htm|bot.php|hubspot|crawler)/i.test(t)},fu=function(t,e){var r=e.replace(/[[]/,"\\[").replace(/[\]]/,"\\]"),i=new RegExp("[\\?&]"+r+"=([^&#]*)").exec(t);if(i===null||i&&typeof i[1]!="string"&&i[1].length)return"";var n=i[1];try{n=decodeURIComponent(n)}catch{bt.error("Skipping decoding for malformed query param: "+n)}return n.replace(/\+/g," ")},du=function(t,e){var r=t.match(new RegExp(e+"=([^&]*)"));return r?r[1]:null},fn=function(){function t(e){return e&&(e.preventDefault=t.preventDefault,e.stopPropagation=t.stopPropagation),e}return t.preventDefault=function(){this.returnValue=!1},t.stopPropagation=function(){this.cancelBubble=!0},function(e,r,i,n,s){if(e)if(e.addEventListener&&!n)e.addEventListener(r,i,!!s);else{var o="on"+r,a=e[o];e[o]=function(l,h,c){return function(p){if(p=p||t(window.event)){var f,u=!0;Lu(c)&&(f=c(p));var m=h.call(l,p);return f!==!1&&m!==!1||(u=!1),u}}}(e,i,a)}else bt.error("No valid element provided to register_event")}}();function kl(t,e){var r=function(){var i=At.createElement("script");i.type="text/javascript",i.src=t,i.onload=function(o){return e(void 0,o)},i.onerror=function(o){return e(o)};var n,s=At.querySelectorAll("body > script");s.length>0?(n=s[0].parentNode)===null||n===void 0||n.insertBefore(i,s[0]):At.body.appendChild(i)};At.body?r():At.addEventListener("DOMContentLoaded",r)}var Mt={campaignParams:function(t){var e=["utm_source","utm_medium","utm_campaign","utm_content","utm_term","gclid","fbclid","msclkid"].concat(t||[]),r={};return ct(e,function(i){var n=fu(At.URL,i);n.length&&(r[i]=n)}),r},searchEngine:function(){var t=At.referrer;return t?t.search("https?://(.*)google.([^/?]*)")===0?"google":t.search("https?://(.*)bing.com")===0?"bing":t.search("https?://(.*)yahoo.com")===0?"yahoo":t.search("https?://(.*)duckduckgo.com")===0?"duckduckgo":null:null},searchInfo:function(){var t=Mt.searchEngine(),e=t!="yahoo"?"q":"p",r={};if(t!==null){r.$search_engine=t;var i=fu(At.referrer,e);i.length&&(r.ph_keyword=i)}return r},browser:function(t,e,r){return e=e||"",r||mt(t," OPR/")?mt(t,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":mt(t,"IEMobile")||mt(t,"WPDesktop")?"Internet Explorer Mobile":mt(t,"SamsungBrowser/")?"Samsung Internet":mt(t,"Edge")||mt(t,"Edg/")?"Microsoft Edge":mt(t,"FBIOS")?"Facebook Mobile":mt(t,"Chrome")?"Chrome":mt(t,"CriOS")?"Chrome iOS":mt(t,"UCWEB")||mt(t,"UCBrowser")?"UC Browser":mt(t,"FxiOS")?"Firefox iOS":mt(e,"Apple")?mt(t,"Mobile")?"Mobile Safari":"Safari":mt(t,"Android")?"Android Mobile":mt(t,"Konqueror")?"Konqueror":mt(t,"Firefox")?"Firefox":mt(t,"MSIE")||mt(t,"Trident/")?"Internet Explorer":mt(t,"Gecko")?"Mozilla":""},browserVersion:function(t,e,r){var i={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/}[Mt.browser(t,e,r)];if(i===void 0)return null;var n=t.match(i);return n?parseFloat(n[n.length-2]):null},browserLanguage:function(){return Pr.language||Pr.userLanguage},os:function(t){if(/Windows/i.test(t)){if(/Phone/.test(t)||/WPDesktop/.test(t))return{os_name:"Windows Phone",os_version:""};var e=/Windows NT ([0-9.]+)/i.exec(t);return e&&e[1]?{os_name:"Windows",os_version:e[1]}:{os_name:"Windows",os_version:""}}if(/(iPhone|iPad|iPod)/.test(t)){var r=/OS (\d+)_(\d+)_?(\d+)?/i.exec(t);return r&&r[1]?{os_name:"iOS",os_version:[r[1],r[2],r[3]||"0"].join(".")}:{os_name:"iOS",os_version:""}}if(/Android/.test(t)){var i=/Android (\d+)\.(\d+)\.?(\d+)?/i.exec(t);return i&&i[1]?{os_name:"Android",os_version:[i[1],i[2],i[3]||"0"].join(".")}:{os_name:"Android",os_version:""}}if(/(BlackBerry|PlayBook|BB10)/i.test(t))return{os_name:"BlackBerry",os_version:""};if(/Mac/i.test(t)){var n=/Mac OS X (\d+)[_.](\d+)[_.]?(\d+)?/i.exec(t);return n&&n[1]?{os_name:"Mac OS X",os_version:[n[1],n[2],n[3]||"0"].join(".")}:{os_name:"Mac OS X",os_version:""}}return/Linux/.test(t)?{os_name:"Linux",os_version:""}:/CrOS/.test(t)?{os_name:"Chrome OS",os_version:""}:{os_name:"",os_version:""}},device:function(t){return/Windows Phone/i.test(t)||/WPDesktop/.test(t)?"Windows Phone":/iPad/.test(t)?"iPad":/iPod/.test(t)?"iPod Touch":/iPhone/.test(t)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":/Android/.test(t)&&!/Mobile/.test(t)?"Android Tablet":/Android/.test(t)?"Android":""},deviceType:function(t){var e=this.device(t);return e==="iPad"||e==="Android Tablet"?"Tablet":e?"Mobile":"Desktop"},referrer:function(){return At.referrer||"$direct"},referringDomain:function(){if(!At.referrer)return"$direct";var t=At.createElement("a");return t.href=At.referrer,t.host},properties:function(){var t=Mt.os(ye),e=t.os_name,r=t.os_version;return It(ul({$os:e,$os_version:r,$browser:Mt.browser(ye,Pr.vendor,tt.opera),$device:Mt.device(ye),$device_type:Mt.deviceType(ye)}),{$current_url:tt?.location.href,$host:tt?.location.host,$pathname:tt?.location.pathname,$browser_version:Mt.browserVersion(ye,Pr.vendor,tt.opera),$browser_language:Mt.browserLanguage(),$screen_height:tt?.screen.height,$screen_width:tt?.screen.width,$viewport_height:tt?.innerHeight,$viewport_width:tt?.innerWidth,$lib:"web",$lib_version:Le.LIB_VERSION,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:(Date.now=Date.now||function(){return+new Date},Date.now()/1e3)})},people_properties:function(){var t=Mt.os(ye),e=t.os_name,r=t.os_version;return It(ul({$os:e,$os_version:r,$browser:Mt.browser(ye,Pr.vendor,tt.opera)}),{$browser_version:Mt.browserVersion(ye,Pr.vendor,tt.opera)})}};function so(t){switch(Ar(t.className)){case"string":return t.className;case"object":return("baseVal"in t.className?t.className.baseVal:null)||t.getAttribute("class")||"";default:return""}}function oo(t){var e="";return to(t)&&!Bu(t)&&t.childNodes&&t.childNodes.length&&ct(t.childNodes,function(r){Ru(r)&&r.textContent&&(e+=pl(r.textContent).split(/(\s+)/).filter(pi).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),pl(e)}function mu(t){return!!t&&t.nodeType===1}function Tr(t,e){return!!t&&!!t.tagName&&t.tagName.toLowerCase()===e.toLowerCase()}function Ru(t){return!!t&&t.nodeType===3}function gu(t){return!!t&&t.nodeType===11}var il=["a","button","form","input","select","textarea","label"];function to(t){for(var e=t;e.parentNode&&!Tr(e,"body");e=e.parentNode){var r=so(e).split(" ");if(mt(r,"ph-sensitive")||mt(r,"ph-no-capture"))return!1}if(mt(so(t).split(" "),"ph-include"))return!0;var i=t.type||"";if(typeof i=="string")switch(i.toLowerCase()){case"hidden":case"password":return!1}var n=t.name||t.id||"";return!(typeof n=="string"&&/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(n.replace(/[^a-zA-Z0-9]/g,"")))}function Bu(t){return!!(Tr(t,"input")&&!["button","checkbox","submit","reset"].includes(t.type)||Tr(t,"select")||Tr(t,"textarea")||t.getAttribute("contenteditable")==="true")}function pi(t){return!(t===null||Ee(t)||typeof t=="string"&&(t=pl(t),/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/.test((t||"").replace(/[- ]/g,""))||/(^\d{3}-?\d{2}-?\d{4}$)/.test(t)))}function yu(t){var e=oo(t);return pi(e="".concat(e," ").concat(zu(t)).trim())?e:""}function zu(t){var e="";return t&&t.childNodes&&t.childNodes.length&&ct(t.childNodes,function(r){var i;if(r&&((i=r.tagName)===null||i===void 0?void 0:i.toLowerCase())==="span")try{var n=oo(r);e="".concat(e," ").concat(n).trim(),r.childNodes&&r.childNodes.length&&(e="".concat(e," ").concat(zu(r)).trim())}catch(s){console.error(s)}}),e}var M0=function(){function t(e){Rt(this,t),this.clicks=[],this.enabled=e}return Bt(t,[{key:"isRageClick",value:function(e,r,i){if(!this.enabled)return!1;var n=this.clicks[this.clicks.length-1];if(n&&Math.abs(e-n.x)+Math.abs(r-n.y)<30&&i-n.timestamp<1e3){if(this.clicks.push({x:e,y:r,timestamp:i}),this.clicks.length===3)return!0}else this.clicks=[{x:e,y:r,timestamp:i}];return!1}}]),t}(),F0=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,Ie={is_supported:function(){return!0},error:function(t){bt.error("cookieStore error: "+t)},get:function(t){try{for(var e=t+"=",r=document.cookie.split(";"),i=0;i<r.length;i++){for(var n=r[i];n.charAt(0)==" ";)n=n.substring(1,n.length);if(n.indexOf(e)===0)return decodeURIComponent(n.substring(e.length,n.length))}}catch{}return null},parse:function(t){var e;try{e=JSON.parse(Ie.get(t))||{}}catch{}return e},set:function(t,e,r,i,n){try{var s="",o="",a="";if(i){var l=document.location.hostname.match(F0),h=l?l[0]:"";s=h?"; domain=."+h:""}if(r){var c=new Date;c.setTime(c.getTime()+24*r*60*60*1e3),o="; expires="+c.toUTCString()}n&&(a="; secure");var p=t+"="+encodeURIComponent(JSON.stringify(e))+o+"; SameSite=Lax; path=/"+s+a;return document.cookie=p,p}catch{return}},remove:function(t,e){try{Ie.set(t,"",-1,e)}catch{return}}},nl=null,xt={is_supported:function(){if(nl!==null)return nl;var t=!0;if(typeof window<"u")try{var e="__mplssupport__";xt.set(e,"xyz"),xt.get(e)!=='"xyz"'&&(t=!1),xt.remove(e)}catch{t=!1}else t=!1;return t||bt.error("localStorage unsupported; falling back to cookie store"),nl=t,t},error:function(t){bt.error("localStorage error: "+t)},get:function(t){try{return window.localStorage.getItem(t)}catch(e){xt.error(e)}return null},parse:function(t){try{return JSON.parse(xt.get(t))||{}}catch{}return null},set:function(t,e){try{window.localStorage.setItem(t,JSON.stringify(e))}catch(r){xt.error(r)}},remove:function(t){try{window.localStorage.removeItem(t)}catch(e){xt.error(e)}}},fl=it(it({},xt),{},{parse:function(t){try{var e={};try{(e=Ie.parse(t)||{}).distinct_id&&Ie.set(t,{distinct_id:e.distinct_id})}catch{}var r=It(e,JSON.parse(xt.get(t)||"{}"));return xt.set(t,r),r}catch{}return null},set:function(t,e,r,i,n){try{xt.set(t,e),e.distinct_id&&Ie.set(t,{distinct_id:e.distinct_id},r,i,n)}catch(s){xt.error(s)}},remove:function(t,e){try{window.localStorage.removeItem(t),Ie.remove(t,e)}catch(r){xt.error(r)}}}),Ks={},D0={is_supported:function(){return!0},error:function(t){bt.error("memoryStorage error: "+t)},get:function(t){return Ks[t]||null},parse:function(t){return Ks[t]||null},set:function(t,e){Ks[t]=e},remove:function(t){delete Ks[t]}},kr=null,Ot={is_supported:function(){if(kr!==null)return kr;if(kr=!0,typeof window<"u")try{var t="__support__";Ot.set(t,"xyz"),Ot.get(t)!=='"xyz"'&&(kr=!1),Ot.remove(t)}catch{kr=!1}else kr=!1;return kr},error:function(t){Le.DEBUG&&bt.error("sessionStorage error: ",t)},get:function(t){try{return window.sessionStorage.getItem(t)}catch(e){Ot.error(e)}return null},parse:function(t){try{return JSON.parse(Ot.get(t))||null}catch{}return null},set:function(t,e){try{window.sessionStorage.setItem(t,JSON.stringify(e))}catch(r){Ot.error(r)}},remove:function(t){try{window.sessionStorage.removeItem(t)}catch(e){Ot.error(e)}}},Hu="$people_distinct_id",eo="__alias",un="__timers",vu="$autocapture_disabled_server_side",dl="$session_recording_enabled_server_side",bu="$console_log_recording_enabled_server_side",_u="$session_recording_recorder_version_server_side",ml="$sesid",ui="$enabled_feature_flags",gl="$early_access_features",fi="$stored_person_properties",ar="$stored_group_properties",yl="$user_state",I0=[Hu,eo,"__cmpns",un,dl,ml,ui,yl,gl,ar,fi],L0=["cookie","localstorage","localstorage+cookie","sessionstorage","memory"],wu=function(){function t(e){Rt(this,t);var r="";e.token&&(r=e.token.replace(/\+/g,"PL").replace(/\//g,"SL").replace(/=/g,"EQ")),this.props={},this.campaign_params_saved=!1,this.custom_campaign_params=e.custom_campaign_params||[],e.persistence_name?this.name="ph_"+e.persistence_name:this.name="ph_"+r+"_posthog",L0.indexOf(e.persistence.toLowerCase())===-1&&(bt.critical("Unknown persistence type "+e.persistence+"; falling back to cookie"),e.persistence="cookie");var i=e.persistence.toLowerCase();i==="localstorage"&&xt.is_supported()?this.storage=xt:i==="localstorage+cookie"&&fl.is_supported()?this.storage=fl:i==="sessionstorage"&&Ot.is_supported()?this.storage=Ot:this.storage=i==="memory"?D0:Ie,this.user_state="anonymous",this.load(),this.update_config(e),this.save()}return Bt(t,[{key:"properties",value:function(){var e={};return ct(this.props,function(r,i){if(i===ui&&Ar(r)==="object")for(var n=Object.keys(r),s=0;s<n.length;s++)e["$feature/".concat(n[s])]=r[n[s]];else a=i,l=!1,((o=I0)===null?l:uu&&o.indexOf===uu?o.indexOf(a)!=-1:(ct(o,function(h){if(l||(l=h===a))return El}),l))||(e[i]=r);var o,a,l}),e}},{key:"load",value:function(){if(!this.disabled){var e=this.storage.parse(this.name);e&&(this.props=It({},e))}}},{key:"save",value:function(){this.disabled||this.storage.set(this.name,this.props,this.expire_days,this.cross_subdomain,this.secure)}},{key:"remove",value:function(){this.storage.remove(this.name,!1),this.storage.remove(this.name,!0)}},{key:"clear",value:function(){this.remove(),this.props={}}},{key:"register_once",value:function(e,r,i){var n=this;if(Cr(e)){r===void 0&&(r="None"),this.expire_days=i===void 0?this.default_expiry:i;var s=!1;if(ct(e,function(o,a){n.props.hasOwnProperty(a)&&n.props[a]!==r||(n.props[a]=o,s=!0)}),s)return this.save(),!0}return!1}},{key:"register",value:function(e,r){var i=this;if(Cr(e)){this.expire_days=r===void 0?this.default_expiry:r;var n=!1;if(ct(e,function(s,o){e.hasOwnProperty(o)&&i.props[o]!==s&&(i.props[o]=s,n=!0)}),n)return this.save(),!0}return!1}},{key:"unregister",value:function(e){e in this.props&&(delete this.props[e],this.save())}},{key:"update_campaign_params",value:function(){this.campaign_params_saved||(this.register(Mt.campaignParams(this.custom_campaign_params)),this.campaign_params_saved=!0)}},{key:"update_search_keyword",value:function(){this.register(Mt.searchInfo())}},{key:"update_referrer_info",value:function(){this.register({$referrer:this.props.$referrer||Mt.referrer(),$referring_domain:this.props.$referring_domain||Mt.referringDomain()})}},{key:"get_referrer_info",value:function(){return ul({$referrer:this.props.$referrer,$referring_domain:this.props.$referring_domain})}},{key:"safe_merge",value:function(e){return ct(this.props,function(r,i){i in e||(e[i]=r)}),e}},{key:"update_config",value:function(e){this.default_expiry=this.expire_days=e.cookie_expiration,this.set_disabled(e.disable_persistence),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie)}},{key:"set_disabled",value:function(e){this.disabled=e,this.disabled?this.remove():this.save()}},{key:"set_cross_subdomain",value:function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())}},{key:"get_cross_subdomain",value:function(){return!!this.cross_subdomain}},{key:"set_secure",value:function(e){e!==this.secure&&(this.secure=e,this.remove(),this.save())}},{key:"set_event_timer",value:function(e,r){var i=this.props[un]||{};i[e]=r,this.props[un]=i,this.save()}},{key:"remove_event_timer",value:function(e){var r=(this.props[un]||{})[e];return Ee(r)||(delete this.props[un][e],this.save()),r}},{key:"get_user_state",value:function(){return this.props[yl]||"anonymous"}},{key:"set_user_state",value:function(e){this.props[yl]=e,this.save()}}]),t}(),lr={_initializedTokens:[],_isAutocaptureEnabled:!1,_setIsAutocaptureEnabled:function(t){var e=!!t.get_property(vu),r=!!t.get_config("autocapture");this._isAutocaptureEnabled=r&&!e},_previousElementSibling:function(t){if(t.previousElementSibling)return t.previousElementSibling;var e=t;do e=e.previousSibling;while(e&&!mu(e));return e},_getAugmentPropertiesFromElement:function(t){if(!to(t))return{};var e={};return ct(t.attributes,function(r){if(r.name.indexOf("data-ph-capture-attribute")===0){var i=r.name.replace("data-ph-capture-attribute-",""),n=r.value;i&&n&&pi(n)&&(e[i]=n)}}),e},_getPropertiesFromElement:function(t,e,r){var i=t.tagName.toLowerCase(),n={tag_name:i};il.indexOf(i)>-1&&!r&&(i.toLowerCase()==="a"||i.toLowerCase()==="button"?n.$el_text=yu(t):n.$el_text=oo(t));var s=so(t);s.length>0&&(n.classes=s.split(" ").filter(function(h){return h!==""})),ct(t.attributes,function(h){var c;Bu(t)&&["name","id","class"].indexOf(h.name)===-1||!e&&pi(h.value)&&(typeof(c=h.name)!="string"||c.substring(0,10)!=="_ngcontent"&&c.substring(0,7)!=="_nghost")&&(n["attr__"+h.name]=h.value)});for(var o=1,a=1,l=t;l=this._previousElementSibling(l);)o++,l.tagName===t.tagName&&a++;return n.nth_child=o,n.nth_of_type=a,n},_getDefaultProperties:function(t){return{$event_type:t,$ce_version:1}},_extractCustomPropertyValue:function(t){var e=[];return ct(document.querySelectorAll(t.css_selector),function(r){var i;["input","select"].indexOf(r.tagName.toLowerCase())>-1?i=r.value:r.textContent&&(i=r.textContent),pi(i)&&e.push(i)}),e.join(", ")},_getCustomProperties:function(t){var e=this,r={};return ct(this._customProperties,function(i){ct(i.event_selectors,function(n){ct(document.querySelectorAll(n),function(s){mt(t,s)&&to(s)&&(r[i.name]=e._extractCustomPropertyValue(i))})})}),r},_getEventTarget:function(t){return t.target===void 0?t.srcElement||null:(e=t.target)!==null&&e!==void 0&&e.shadowRoot?t.composedPath()[0]||null:t.target||null;var e},_captureEvent:function(t,e){var r,i=this,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"$autocapture",s=this._getEventTarget(t);if(Ru(s)&&(s=s.parentNode||null),n==="$autocapture"&&t.type==="click"&&t instanceof MouseEvent&&(r=this.rageclicks)!==null&&r!==void 0&&r.isRageClick(t.clientX,t.clientY,new Date().getTime())&&this._captureEvent(t,e,"$rageclick"),s&&function(u,m){var g=arguments.length>2&&arguments[2]!==void 0?arguments[2]:void 0;if(!u||Tr(u,"html")||!mu(u))return!1;if(g!=null&&g.url_allowlist){var d=window.location.href,y=g.url_allowlist;if(y&&!y.some(function(k){return d.match(k)}))return!1}if(g!=null&&g.dom_event_allowlist){var v=g.dom_event_allowlist;if(v&&!v.some(function(k){return m.type===k}))return!1}if(g!=null&&g.element_allowlist){var b=g.element_allowlist;if(b&&!b.some(function(k){return u.tagName.toLowerCase()===k}))return!1}if(g!=null&&g.css_selector_allowlist){var _=g.css_selector_allowlist;if(_&&!_.some(function(k){return u.matches(k)}))return!1}for(var x=!1,M=[u],S=!0,w=u;w.parentNode&&!Tr(w,"body");)if(gu(w.parentNode))M.push(w.parentNode.host),w=w.parentNode.host;else{if(!(S=w.parentNode||!1))break;if(il.indexOf(S.tagName.toLowerCase())>-1)x=!0;else{var D=window.getComputedStyle(S);D&&D.getPropertyValue("cursor")==="pointer"&&(x=!0)}M.push(S),w=S}var E=window.getComputedStyle(u);if(E&&E.getPropertyValue("cursor")==="pointer"&&m.type==="click")return!0;var T=u.tagName.toLowerCase();switch(T){case"html":return!1;case"form":return m.type==="submit";case"input":case"select":case"textarea":return m.type==="change"||m.type==="click";default:return x?m.type==="click":m.type==="click"&&(il.indexOf(T)>-1||u.getAttribute("contenteditable")==="true")}}(s,t,this.config)){for(var o=[s],a=s;a.parentNode&&!Tr(a,"body");)gu(a.parentNode)?(o.push(a.parentNode.host),a=a.parentNode.host):(o.push(a.parentNode),a=a.parentNode);var l,h=[],c={},p=!1;if(ct(o,function(u){var m=to(u);u.tagName.toLowerCase()==="a"&&(l=u.getAttribute("href"),l=m&&pi(l)&&l),mt(so(u).split(" "),"ph-no-capture")&&(p=!0),h.push(i._getPropertiesFromElement(u,e.get_config("mask_all_element_attributes"),e.get_config("mask_all_text")));var g=i._getAugmentPropertiesFromElement(u);It(c,g)}),e.get_config("mask_all_text")||(s.tagName.toLowerCase()==="a"||s.tagName.toLowerCase()==="button"?h[0].$el_text=yu(s):h[0].$el_text=oo(s)),l&&(h[0].attr__href=l),p)return!1;var f=It(this._getDefaultProperties(t.type),{$elements:h},this._getCustomProperties(o),c);return e.capture(n,f),!0}},_navigate:function(t){window.location.href=t},_addDomEventHandlers:function(t){var e=this,r=function(i){i=i||window.event,e._captureEvent(i,t)};fn(document,"submit",r,!1,!0),fn(document,"change",r,!1,!0),fn(document,"click",r,!1,!0)},_customProperties:[],rageclicks:null,config:void 0,init:function(t){var e;typeof t.__autocapture!="boolean"&&(this.config=t.__autocapture),(e=this.config)!==null&&e!==void 0&&e.url_allowlist&&(this.config.url_allowlist=this.config.url_allowlist.map(function(r){return new RegExp(r)})),this.rageclicks=new M0(t.get_config("rageclick"))},afterDecideResponse:function(t,e){this._setIsAutocaptureEnabled(e);var r=e.get_config("token");this._initializedTokens.indexOf(r)>-1?bt.log('autocapture already initialized for token "'+r+'"'):(e.persistence&&e.persistence.register(st({},vu,!!t.autocapture_opt_out)),this._initializedTokens.push(r),t&&t.config&&t.config.enable_collect_everything&&this._isAutocaptureEnabled?(t.custom_properties&&(this._customProperties=t.custom_properties),this._addDomEventHandlers(e)):e.__autocapture=!1)},enabledForProject:function(t,e,r){if(!t)return!0;e=Ee(e)?10:e,r=Ee(r)?10:r;for(var i=0,n=0;n<t.length;n++)i+=t.charCodeAt(n);return i%e<r},isBrowserSupported:function(){return Lu(document.querySelectorAll)}};(function(t){for(var e in t)typeof t[e]=="function"&&(t[e]=t[e].bind(t))})(lr),function(t){for(var e in t)typeof t[e]=="function"&&(t[e]=$u(t[e]))}(lr);var O0="__ph_opt_in_out_";function $0(t,e){Gu(!0,t,e)}function V0(t,e){Gu(!1,t,e)}function R0(t,e){return ju(t,e)==="1"}function Nu(t,e){return!!function(r){if(r&&r.respectDnt){var i=r&&r.window||tt,n=i.navigator||{},s=!1;return ct([n.doNotTrack,n.msDoNotTrack,i.doNotTrack],function(o){mt([!0,1,"1","yes"],o)&&(s=!0)}),s}return!1}(e)||ju(t,e)==="0"}function B0(t,e){Pl(e=e||{}).remove(Al(t,e),!!e.crossSubdomainCookie)}function Pl(t){return(t=t||{}).persistenceType==="localStorage"?xt:t.persistenceType==="localStorage+cookie"?fl:Ie}function Al(t,e){return((e=e||{}).persistencePrefix||O0)+t}function ju(t,e){return Pl(e).get(Al(t,e))}function Gu(t,e,r){Ou(e)&&e.length?(Pl(r=r||{}).set(Al(e,r),t?1:0,E0(r.cookieExpiration)?r.cookieExpiration:null,r.crossSubdomainCookie,r.secureCookie),r.capture&&t&&r.capture(r.captureEventName||"$opt_in",r.captureProperties||{},{send_instantly:!0})):console.error("gdpr."+(t?"optIn":"optOut")+" called with an invalid token")}function qu(t,e){var r=!1;try{var i=t.get_config("token"),n=t.get_config("respect_dnt"),s=t.get_config("opt_out_capturing_persistence_type"),o=t.get_config("opt_out_capturing_cookie_prefix")||void 0,a=t.get_config("window");i&&(r=Nu(i,{respectDnt:n,persistenceType:s,persistencePrefix:o,window:a}))}catch(l){e||console.error("Unexpected error when checking capturing opt-out status: "+l)}return r}function xu(t,e,r){return function(){for(var i=qu(t,r),n=arguments.length,s=new Array(n),o=0;o<n;o++)s[o]=arguments[o];if(!i)return e.apply(this,s);var a=s[s.length-1];typeof a=="function"&&a(0)}}var sl="$set",z0=function(){function t(e){var r=this;Rt(this,t),this._posthog=e,this.set=xu(e,function(i,n,s){var o=r.set_action(i,n);return r._posthog.setPersonPropertiesForFlags(o.$set||{}),Cr(i)&&(s=n),r._get_config("save_referrer")&&r._posthog.sessionPersistence.update_referrer_info(),o[sl]=It({},Mt.people_properties(),r._posthog.sessionPersistence.get_referrer_info(),o[sl]),r._send_request(o,s)}),this.set_once=xu(e,function(i,n,s){var o=r.set_once_action(i,n);return Cr(i)&&(s=n),r._send_request(o,s)})}return Bt(t,[{key:"toString",value:function(){return this._posthog.toString()+".people"}},{key:"_send_request",value:function(e,r){e.$token=this._get_config("token"),e.$distinct_id=this._posthog.get_distinct_id();var i=this._posthog.get_property("$device_id"),n=this._posthog.get_property("$user_id"),s=this._posthog.get_property("$had_persisted_distinct_id");i&&(e.$device_id=i),n&&(e.$user_id=n),s&&(e.$had_persisted_distinct_id=s);var o=k0(e),a=Vu(o,this._get_config("properties_string_max_length")),l=po(JSON.stringify(o));return this._posthog._send_request(this._get_config("api_host")+"/engage/",{data:l},{},this._posthog._prepare_callback(r,a)),a}},{key:"_get_config",value:function(e){return this._posthog.get_config(e)}},{key:"_is_reserved_property",value:function(e){return e==="$distinct_id"||e==="$token"||e==="$device_id"||e==="$user_id"||e==="$had_persisted_distinct_id"}},{key:"set_action",value:function(e,r){return this.apiActionParser(sl,e,r)}},{key:"set_once_action",value:function(e,r){return this.apiActionParser("$set_once",e,r)}},{key:"apiActionParser",value:function(e,r,i){var n=this,s={},o={};return Cr(r)?ct(r,function(a,l){n._is_reserved_property(l)||(o[l]=a)}):o[r]=i,s[e]=o,s}}]),t}(),ol="$active_feature_flags",Js="$override_feature_flags",Su="$feature_flag_payloads",Eu=function(t){var e,r={},i=cr(function(a){for(var l=Object.keys(a),h=l.length,c=new Array(h);h--;)c[h]=[l[h],a[l[h]]];return c}(t||{}));try{for(i.s();!(e=i.n()).done;){var n=ho(e.value,2),s=n[0],o=n[1];o&&(r[s]=o)}}catch(a){i.e(a)}finally{i.f()}return r},H0=function(){function t(e){Rt(this,t),this.instance=e,this._override_warning=!1,this.flagCallReported={},this.featureFlagEventHandlers=[],this.reloadFeatureFlagsQueued=!1,this.reloadFeatureFlagsInAction=!1}return Bt(t,[{key:"getFlags",value:function(){return Object.keys(this.getFlagVariants())}},{key:"getFlagVariants",value:function(){var e=this.instance.get_property(ui),r=this.instance.get_property(Js);if(!r)return e||{};for(var i=It({},e),n=Object.keys(r),s=0;s<n.length;s++)r[n[s]]===!1?delete i[n[s]]:i[n[s]]=r[n[s]];return this._override_warning||(console.warn("[PostHog] Overriding feature flags!",{enabledFlags:e,overriddenFlags:r,finalFlags:i}),this._override_warning=!0),i}},{key:"getFlagPayloads",value:function(){return this.instance.get_property(Su)||{}}},{key:"reloadFeatureFlags",value:function(){this.reloadFeatureFlagsQueued||(this.reloadFeatureFlagsQueued=!0,this._startReloadTimer())}},{key:"setAnonymousDistinctId",value:function(e){this.$anon_distinct_id=e}},{key:"setReloadingPaused",value:function(e){this.reloadFeatureFlagsInAction=e}},{key:"resetRequestQueue",value:function(){this.reloadFeatureFlagsQueued=!1}},{key:"_startReloadTimer",value:function(){var e=this;this.reloadFeatureFlagsQueued&&!this.reloadFeatureFlagsInAction&&setTimeout(function(){!e.reloadFeatureFlagsInAction&&e.reloadFeatureFlagsQueued&&(e.reloadFeatureFlagsQueued=!1,e._reloadFeatureFlagsRequest())},5)}},{key:"_reloadFeatureFlagsRequest",value:function(){var e=this;this.setReloadingPaused(!0);var r=this.instance.get_config("token"),i=this.instance.get_property(fi),n=this.instance.get_property(ar),s=po(JSON.stringify({token:r,distinct_id:this.instance.get_distinct_id(),groups:this.instance.getGroups(),$anon_distinct_id:this.$anon_distinct_id,person_properties:i,group_properties:n}));this.instance._send_request(this.instance.get_config("api_host")+"/decide/?v=3",{data:s},{method:"POST"},this.instance._prepare_callback(function(o){e.$anon_distinct_id=void 0,e.receivedFeatureFlags(o),e.setReloadingPaused(!1),e._startReloadTimer()}))}},{key:"getFeatureFlag",value:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.getFlags())return console.warn('getFeatureFlag for key "'+e+`" failed. Feature flags didn't load in time.`),!1;var i=this.getFlagVariants()[e];return!r.send_event&&"send_event"in r||this.flagCallReported[e]||(this.flagCallReported[e]=!0,this.instance.capture("$feature_flag_called",{$feature_flag:e,$feature_flag_response:i})),i}},{key:"getFeatureFlagPayload",value:function(e){return this.getFlagPayloads()[e]}},{key:"isFeatureEnabled",value:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this.getFlags()?!!this.getFeatureFlag(e,r):(console.warn('isFeatureEnabled for key "'+e+`" failed. Feature flags didn't load in time.`),!1)}},{key:"addFeatureFlagsHandler",value:function(e){this.featureFlagEventHandlers.push(e)}},{key:"removeFeatureFlagsHandler",value:function(e){this.featureFlagEventHandlers=this.featureFlagEventHandlers.filter(function(r){return r!==e})}},{key:"receivedFeatureFlags",value:function(e){this.instance.decideEndpointWasHit=!0;var r=this.getFlagVariants(),i=this.getFlagPayloads();(function(n,s){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},l=n.featureFlags,h=n.featureFlagPayloads;if(l)if(Array.isArray(l)){var c,p={};if(l)for(var f=0;f<l.length;f++)p[l[f]]=!0;s&&s.register((st(c={},ol,l),st(c,ui,p),c))}else{var u,m=l,g=h;n.errorsWhileComputingFlags&&(m=it(it({},o),m),g=it(it({},a),g)),s&&s.register((st(u={},ol,Object.keys(Eu(m))),st(u,ui,m||{}),st(u,Su,g||{}),u))}})(e,this.instance.persistence,r,i),this._fireFeatureFlagsCallbacks()}},{key:"override",value:function(e){if(this._override_warning=!1,e===!1)this.instance.persistence.unregister(Js);else if(Array.isArray(e)){for(var r={},i=0;i<e.length;i++)r[e[i]]=!0;this.instance.persistence.register(st({},Js,r))}else this.instance.persistence.register(st({},Js,e))}},{key:"onFeatureFlags",value:function(e){var r=this;if(this.addFeatureFlagsHandler(e),this.instance.decideEndpointWasHit){var i=this._prepareFeatureFlagsForCallbacks(),n=i.flags,s=i.flagVariants;e(n,s)}return function(){return r.removeFeatureFlagsHandler(e)}}},{key:"updateEarlyAccessFeatureEnrollment",value:function(e,r){var i,n=st({},"$feature_enrollment/".concat(e),r);this.instance.capture("$feature_enrollment_update",{$feature_flag:e,$feature_enrollment:r,$set:n}),this.setPersonPropertiesForFlags(n,!1);var s=it(it({},this.getFlagVariants()),{},st({},e,r));this.instance.persistence.register((st(i={},ol,Object.keys(Eu(s))),st(i,ui,s),i)),this._fireFeatureFlagsCallbacks()}},{key:"getEarlyAccessFeatures",value:function(e){var r=this,i=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=this.instance.get_property(gl);if(n&&!i)return e(n);this.instance._send_request("".concat(this.instance.get_config("api_host"),"/api/early_access_features/?token=").concat(this.instance.get_config("token")),{},{method:"GET"},function(s){var o=s.earlyAccessFeatures;return r.instance.persistence.register(st({},gl,o)),e(o)})}},{key:"_prepareFeatureFlagsForCallbacks",value:function(){var e=this.getFlags(),r=this.getFlagVariants();return{flags:e.filter(function(i){return r[i]}),flagVariants:Object.keys(r).filter(function(i){return r[i]}).reduce(function(i,n){return i[n]=r[n],i},{})}}},{key:"_fireFeatureFlagsCallbacks",value:function(){var e=this._prepareFeatureFlagsForCallbacks(),r=e.flags,i=e.flagVariants;this.featureFlagEventHandlers.forEach(function(n){return n(r,i)})}},{key:"setPersonPropertiesForFlags",value:function(e){var r=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=this.instance.get_property(fi)||{};this.instance.register(st({},fi,it(it({},i),e))),r&&this.instance.reloadFeatureFlags()}},{key:"resetPersonPropertiesForFlags",value:function(){this.instance.unregister(fi)}},{key:"setGroupPropertiesForFlags",value:function(e){var r=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1],i=this.instance.get_property(ar)||{};Object.keys(i).length!==0&&Object.keys(i).forEach(function(n){i[n]=it(it({},i[n]),e[n]),delete e[n]}),this.instance.register(st({},ar,it(it({},i),e))),r&&this.instance.reloadFeatureFlags()}},{key:"resetGroupPropertiesForFlags",value:function(e){if(e){var r=this.instance.get_property(ar)||{};this.instance.register(st({},ar,it(it({},r),{},st({},e,{}))))}else this.instance.unregister(ar)}}]),t}(),N0="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2IiBmaWxsPSJibGFjayIvPgo8cGF0aCBkPSJNOCAwSDE2TDAgMTZWOEw4IDBaIiBmaWxsPSIjMkQyRDJEIi8+CjxwYXRoIGQ9Ik0xNiA4VjE2SDhMMTYgOFoiIGZpbGw9IiMyRDJEMkQiLz4KPC9zdmc+Cg==",ku=2,j0=4,G0=6,q0="rrweb/console@1",De,U0="/e/";(function(t){t[t.Mutation=0]="Mutation",t[t.MouseMove=1]="MouseMove",t[t.MouseInteraction=2]="MouseInteraction",t[t.Scroll=3]="Scroll",t[t.ViewportResize=4]="ViewportResize",t[t.Input=5]="Input",t[t.TouchMove=6]="TouchMove",t[t.MediaInteraction=7]="MediaInteraction",t[t.StyleSheetRule=8]="StyleSheetRule",t[t.CanvasMutation=9]="CanvasMutation",t[t.Font=10]="Font",t[t.Log=11]="Log",t[t.Drag=12]="Drag",t[t.StyleDeclaration=13]="StyleDeclaration",t[t.Selection=14]="Selection",t[t.AdoptedStyleSheet=15]="AdoptedStyleSheet"})(De||(De={}));var W0=[De.MouseMove,De.MouseInteraction,De.Scroll,De.ViewportResize,De.Input,De.TouchMove,De.MediaInteraction,De.Drag],Z0=function(){function t(e){Rt(this,t),st(this,"lastActivityTimestamp",Date.now()),st(this,"isIdle",!1),this.instance=e,this.captureStarted=!1,this.snapshots=[],this.emit=!1,this.endpoint=U0,this.stopRrweb=void 0,this.windowId=null,this.sessionId=null,this.receivedDecide=!1}return Bt(t,[{key:"startRecordingIfEnabled",value:function(){this.isRecordingEnabled()?this.startCaptureAndTrySendingQueuedSnapshots():this.stopRecording()}},{key:"started",value:function(){return this.captureStarted}},{key:"stopRecording",value:function(){this.captureStarted&&this.stopRrweb&&(this.stopRrweb(),this.stopRrweb=void 0,this.captureStarted=!1)}},{key:"isRecordingEnabled",value:function(){var e=!!this.instance.get_property(dl),r=!this.instance.get_config("disable_session_recording");return e&&r}},{key:"isConsoleLogCaptureEnabled",value:function(){var e=!!this.instance.get_property(bu),r=this.instance.get_config("enable_recording_console_log");return r??e}},{key:"getRecordingVersion",value:function(){var e,r=this.instance.get_property(_u);return((e=this.instance.get_config("session_recording"))===null||e===void 0?void 0:e.recorderVersion)||r||"v1"}},{key:"afterDecideResponse",value:function(e){var r,i,n,s,o,a;this.receivedDecide=!0,this.instance.persistence&&this.instance.persistence.register((st(o={},dl,!!e.sessionRecording),st(o,bu,(n=e.sessionRecording)===null||n===void 0?void 0:n.consoleLogRecordingEnabled),st(o,_u,(s=e.sessionRecording)===null||s===void 0?void 0:s.recorderVersion),o)),(r=e.sessionRecording)!==null&&r!==void 0&&r.endpoint&&(this.endpoint=(a=e.sessionRecording)===null||a===void 0?void 0:a.endpoint),(i=e.sessionRecording)!==null&&i!==void 0&&i.recorderVersion&&(this.recorderVersion=e.sessionRecording.recorderVersion),this.startRecordingIfEnabled()}},{key:"startCaptureAndTrySendingQueuedSnapshots",value:function(){var e=this;this.receivedDecide&&(this.emit=!0,this.snapshots.forEach(function(r){return e._captureSnapshot(r)})),this._startCapture()}},{key:"_startCapture",value:function(){var e=this;if(Object.assign!==void 0&&!this.captureStarted&&!this.instance.get_config("disable_session_recording")){this.captureStarted=!0,this.instance.sessionManager.checkAndGetSessionAndWindowId();var r=this.getRecordingVersion()==="v2"?"recorder-v2.js":"recorder.js";this.instance.__loaded_recorder_version!==this.getRecordingVersion()?kl(this.instance.get_config("api_host")+"/static/".concat(r,"?v=").concat(Le.LIB_VERSION),function(i){if(i)return bt.error("Could not load ".concat(r),i);e._onScriptLoaded()}):this._onScriptLoaded()}}},{key:"_isInteractiveEvent",value:function(e){var r;return e.type===3&&W0.indexOf((r=e.data)===null||r===void 0?void 0:r.source)!==-1}},{key:"_updateWindowAndSessionIds",value:function(e){var r=this._isInteractiveEvent(e);if(r||this.isIdle||e.timestamp-this.lastActivityTimestamp>3e5&&(this.isIdle=!0),r&&(this.lastActivityTimestamp=e.timestamp,this.isIdle&&(this.isIdle=!1,this._tryTakeFullSnapshot())),!this.isIdle){var i=this.instance.sessionManager.checkAndGetSessionAndWindowId(!r,e.timestamp),n=i.windowId,s=i.sessionId;[ku,j0].indexOf(e.type)!==-1||this.windowId===n&&this.sessionId===s||this._tryTakeFullSnapshot(),this.windowId=n,this.sessionId=s}}},{key:"_tryTakeFullSnapshot",value:function(){if(!this.captureStarted)return!1;try{var e;return(e=this.rrwebRecord)===null||e===void 0||e.takeFullSnapshot(),!0}catch(r){return bt.error("Error taking full snapshot.",r),!1}}},{key:"_onScriptLoaded",value:function(){var e=this,r={blockClass:"ph-no-capture",blockSelector:void 0,ignoreClass:"ph-ignore-input",maskTextClass:"ph-mask",maskTextSelector:void 0,maskAllInputs:!0,maskInputOptions:{},maskInputFn:void 0,slimDOMOptions:{},collectFonts:!1,inlineStylesheet:!0,recordCrossOriginIframes:!1};this.rrwebRecord=window.rrweb?window.rrweb.record:window.rrwebRecord;for(var i=this.instance.get_config("session_recording"),n=0,s=Object.entries(i||{});n<s.length;n++){var o=ho(s[n],2),a=o[0],l=o[1];a in r&&(r[a]=l)}this.rrwebRecord?(this.stopRrweb=this.rrwebRecord(it({emit:function(h){e.onRRwebEmit(h)},plugins:window.rrwebConsoleRecord&&this.isConsoleLogCaptureEnabled()?[window.rrwebConsoleRecord.getRecordConsolePlugin()]:[]},r)),this.instance._addCaptureHook(function(h){try{var c;h==="$pageview"&&((c=e.rrwebRecord)===null||c===void 0||c.addCustomEvent("$pageview",{href:window.location.href}))}catch(p){bt.error("Could not add $pageview to rrweb session",p)}}),this.lastActivityTimestamp=Date.now(),this.isIdle=!1):bt.error("onScriptLoaded was called but rrwebRecord is not available. This indicates something has gone wrong.")}},{key:"onRRwebEmit",value:function(e){if(e=function(i){if(i&&Ar(i)==="object"&&i.type===G0&&Ar(i.data)==="object"&&i.data.plugin===q0){i.data.payload.payload.length>10&&(i.data.payload.payload=i.data.payload.payload.slice(0,10),i.data.payload.payload.push("...[truncated]"));for(var n=[],s=0;s<i.data.payload.payload.length;s++)i.data.payload.payload[s]&&i.data.payload.payload[s].length>2e3?n.push(i.data.payload.payload[s].slice(0,2e3)+"...[truncated]"):n.push(i.data.payload.payload[s]);return i.data.payload.payload=n,i}return i}(function(i){if(i&&Ar(i)==="object"){var n=JSON.stringify(i);if(n.length>5e6){var s,o=cr(n.matchAll(/data:([\w\/\-\.]+);(\w+),([^)"]*)/gim));try{for(o.s();!(s=o.n()).done;){var a=s.value;n=a[1].toLocaleLowerCase().slice(0,6)==="image/"?n.replace(a[0],N0):n.replace(a[0],"")}}catch(l){o.e(l)}finally{o.f()}}return JSON.parse(n)}return i}(e)),this._updateWindowAndSessionIds(e),!this.isIdle){var r={$snapshot_data:e,$session_id:this.sessionId,$window_id:this.windowId};this.instance._captureMetrics.incr("rrweb-record"),this.instance._captureMetrics.incr("rrweb-record-".concat(e.type)),this.emit?this._captureSnapshot(r):this.snapshots.push(r)}}},{key:"_captureSnapshot",value:function(e){this.instance.capture("$snapshot",e,{transport:"XHR",method:"POST",endpoint:this.endpoint,_noTruncate:!0,_batchKey:"sessionRecording",_metrics:{rrweb_full_snapshot:e.$snapshot_data.type===ku}})}}]),t}(),Fe={entryType:0,timeOrigin:1,name:2,startTime:3,redirectStart:4,redirectEnd:5,workerStart:6,fetchStart:7,domainLookupStart:8,domainLookupEnd:9,connectStart:10,secureConnectionStart:11,connectEnd:12,requestStart:13,responseStart:14,responseEnd:15,decodedBodySize:16,encodedBodySize:17,initiatorType:18,nextHopProtocol:19,renderBlockingStatus:20,responseStatus:21,transferSize:22,element:23,renderTime:24,loadTime:25,size:26,id:27,url:28,domComplete:29,domContentLoadedEvent:30,domInteractive:31,loadEventEnd:32,loadEventStart:33,redirectCount:34,navigationType:35,unloadEventEnd:36,unloadEventStart:37,duration:39,timestamp:40},Y0=["first-input","navigation","paint","resource"],X0=["/s/","/e/"],K0=function(){function t(e){Rt(this,t),st(this,"_forceAllowLocalhost",!1),this.instance=e}return Bt(t,[{key:"startObservingIfEnabled",value:function(){this.isEnabled()?this.startObserving():this.stopObserving()}},{key:"startObserving",value:function(){var e=this;if(!this.observer)if(!x0.includes(location.hostname)||this._forceAllowLocalhost)try{this.observer=new PerformanceObserver(function(i){i.getEntries().forEach(function(n){e._capturePerformanceEvent(n)})});var r=PerformanceObserver.supportedEntryTypes.filter(function(i){return Y0.includes(i)});r.forEach(function(i){var n;(n=e.observer)===null||n===void 0||n.observe({type:i,buffered:!0})})}catch(i){console.error("PostHog failed to start performance observer",i),this.stopObserving()}else bt.log("PostHog Peformance observer not started because we are on localhost.")}},{key:"stopObserving",value:function(){this.observer&&(this.observer.disconnect(),this.observer=void 0)}},{key:"isObserving",value:function(){return!!this.observer}},{key:"isEnabled",value:function(){var e,r;return(e=(r=this.instance.get_config("capture_performance"))!==null&&r!==void 0?r:this.remoteEnabled)!==null&&e!==void 0&&e}},{key:"afterDecideResponse",value:function(e){this.remoteEnabled=e.capturePerformance||!1,this.isEnabled()&&this.startObserving()}},{key:"_capturePerformanceEvent",value:function(e){if(e.name.indexOf(this.instance.get_config("api_host"))===0){var r=e.name.replace(this.instance.get_config("api_host"),"");if(X0.find(function(u){return r.indexOf(u)===0}))return}var i={url:e.name},n=this.instance.get_config("session_recording");if(n.maskNetworkRequestFn&&(i=n.maskNetworkRequestFn(i)),i){var s=e.toJSON();s.name=i.url;var o={},a=Math.floor(Date.now()-performance.now());for(var l in o[Fe.timeOrigin]=a,o[Fe.timestamp]=Math.floor(a+e.startTime),Fe)s[l]!==void 0&&(o[Fe[l]]=s[l]);if(this.capturePerformanceEvent(o),J0(e)){var h,c=cr(e.serverTiming||[]);try{for(c.s();!(h=c.n()).done;){var p,f=h.value;this.capturePerformanceEvent((st(p={},Fe.timeOrigin,a),st(p,Fe.timestamp,Math.floor(a+e.startTime)),st(p,Fe.name,f.name),st(p,Fe.duration,f.duration),st(p,Fe.entryType,"serverTiming"),p))}}catch(u){c.e(u)}finally{c.f()}}}}},{key:"capturePerformanceEvent",value:function(e){var r,i=e[Fe.timestamp];(r=this.instance.sessionRecording)===null||r===void 0||r.onRRwebEmit({type:6,data:{plugin:"posthog/network@1",payload:e},timestamp:i})}}]),t}(),J0=function(t){return t.entryType==="navigation"||t.entryType==="resource"},Q0=function(){function t(e){Rt(this,t),this.instance=e,this.instance.decideEndpointWasHit=this.instance._hasBootstrappedFeatureFlags()}return Bt(t,[{key:"call",value:function(){var e=this,r=po(JSON.stringify({token:this.instance.get_config("token"),distinct_id:this.instance.get_distinct_id(),groups:this.instance.getGroups(),person_properties:this.instance.get_property(fi),group_properties:this.instance.get_property(ar)}));this.instance._send_request("".concat(this.instance.get_config("api_host"),"/decide/?v=3"),{data:r,verbose:!0},{method:"POST"},function(i){return e.parseDecideResponse(i)})}},{key:"parseDecideResponse",value:function(e){var r,i,n=this;if(e?.status!==0){if(this.instance.decideEndpointWasHit=!0,!document||!document.body)return console.log("document not ready yet, trying again in 500 milliseconds..."),void setTimeout(function(){n.parseDecideResponse(e)},500);if(this.instance.toolbar.afterDecideResponse(e),(r=this.instance.sessionRecording)===null||r===void 0||r.afterDecideResponse(e),lr.afterDecideResponse(e,this.instance),(i=this.instance.webPerformance)===null||i===void 0||i.afterDecideResponse(e),this.instance.featureFlags.receivedFeatureFlags(e),this.instance.compression={},e.supportedCompression&&!this.instance.get_config("disable_compression")){var s,o={},a=cr(e.supportedCompression);try{for(a.s();!(s=a.n()).done;)o[s.value]=!0}catch(f){a.e(f)}finally{a.f()}this.instance.compression=o}if(e.siteApps)if(this.instance.get_config("opt_in_site_apps")){var l,h=this.instance.get_config("api_host"),c=cr(e.siteApps);try{var p=function(){var f=l.value,u=f.id,m=f.url,g=[h,h[h.length-1]==="/"&&m[0]==="/"?m.substring(1):m].join("");window["__$$ph_site_app_".concat(u)]=n.instance,kl(g,function(d){d&&console.error("Error while initializing PostHog app with config id ".concat(u),d)})};for(c.s();!(l=c.n()).done;)p()}catch(f){c.e(f)}finally{c.f()}}else e.siteApps.length>0&&console.error('PostHog site apps are disabled. Enable the "opt_in_site_apps" config to proceed.')}else console.error("Failed to fetch feature flags from PostHog.")}}]),t}(),tg=["https://app.posthog.com","https://eu.posthog.com"],eg=["source"],rg=function(){function t(e){Rt(this,t),this.instance=e}return Bt(t,[{key:"afterDecideResponse",value:function(e){var r=e.toolbarParams||e.editorParams||(e.toolbarVersion?{toolbarVersion:e.toolbarVersion}:{});e.isAuthenticated&&r.toolbarVersion&&r.toolbarVersion.indexOf("toolbar")===0&&this.loadToolbar(it({},r))}},{key:"maybeLoadToolbar",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.location,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:window.history;try{if(!r){try{window.localStorage.setItem("test","test"),window.localStorage.removeItem("test")}catch{return!1}r=window.localStorage}var n,s=du(e.hash,"__posthog")||du(e.hash,"state"),o=s?JSON.parse(decodeURIComponent(s)):null;return o&&o.action==="ph_authorize"?((n=o).source="url",n&&Object.keys(n).length>0&&(o.desiredHash?e.hash=o.desiredHash:i?i.replaceState("",document.title,e.pathname+e.search):e.hash="")):((n=JSON.parse(r.getItem("_postHogToolbarParams")||"{}")).source="localstorage",delete n.userIntent),!(!n.token||this.instance.get_config("token")!==n.token)&&(this.loadToolbar(n),!0)}catch{return!1}}},{key:"loadToolbar",value:function(e){var r=this;if(window._postHogToolbarLoaded)return!1;window._postHogToolbarLoaded=!0;var i=this.instance.get_config("api_host"),n=3e4*Math.floor(Date.now()/3e4),s="".concat(i).concat(i.endsWith("/")?"":"/","static/toolbar.js?_ts=").concat(n),o=!tg.includes(this.instance.get_config("api_host"))&&this.instance.get_config("advanced_disable_toolbar_metrics"),a=it(it({token:this.instance.get_config("token")},e),{},{apiURL:i},o?{instrument:!1}:{});a.source;var l=b0(a,eg);return window.localStorage.setItem("_postHogToolbarParams",JSON.stringify(l)),kl(s,function(h){h?bt.error("Failed to load toolbar",h):(window.ph_load_toolbar||window.ph_load_editor)(a,r.instance)}),fn(window,"turbolinks:load",function(){window._postHogToolbarLoaded=!1,r.loadToolbar(a)}),!0}},{key:"_loadEditor",value:function(e){return this.loadToolbar(e)}},{key:"maybeLoadEditor",value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.location,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:window.history;return this.maybeLoadToolbar(e,r,i)}}]),t}(),Uu=function(){function t(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:3e3;Rt(this,t),this.isPolling=!0,this._event_queue=[],this._empty_queue_count=0,this._poller=void 0,this._pollInterval=e}return Bt(t,[{key:"setPollInterval",value:function(e){this._pollInterval=e,this.isPolling&&this.poll()}},{key:"poll",value:function(){}},{key:"unload",value:function(){}},{key:"getTime",value:function(){return new Date().getTime()}}]),t}(),ig=function(t){Mu(r,Uu);var e=Fu(r);function r(i,n){var s,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:3e3;return Rt(this,r),(s=e.call(this,o)).handlePollRequest=n,s.captureMetrics=i,s}return Bt(r,[{key:"enqueue",value:function(i,n,s){this.captureMetrics.incr("batch-enqueue"),this._event_queue.push({url:i,data:n,options:s}),this.isPolling||(this.isPolling=!0,this.poll())}},{key:"poll",value:function(){var i=this;clearTimeout(this._poller),this._poller=setTimeout(function(){if(i._event_queue.length>0){var n=i.formatQueue(),s=function(a){var l=n[a],h=l.url,c=l.data,p=l.options;ct(c,function(f,u){c[u].offset=Math.abs(c[u].timestamp-i.getTime()),delete c[u].timestamp}),i.handlePollRequest(h,c,p),i.captureMetrics.incr("batch-requests"),i.captureMetrics.incr("batch-requests-".concat(h.slice(h.length-2))),i.captureMetrics.incr("batch-handle",c.length),i.captureMetrics.incr("batch-handle-".concat(h.slice(h.length-2)),c.length)};for(var o in n)s(o);i._event_queue.length=0,i._empty_queue_count=0}else i._empty_queue_count++;i._empty_queue_count>4&&(i.isPolling=!1,i._empty_queue_count=0),i.isPolling&&i.poll()},this._pollInterval)}},{key:"updateUnloadMetrics",value:function(){var i=this.formatQueue();for(var n in i){var s=i[n],o=s.url,a=s.data;this.captureMetrics.incr("batch-unload-requests"),this.captureMetrics.incr("batch-unload-requests-".concat(o.slice(o.length-2))),this.captureMetrics.incr("batch-unload",a.length),this.captureMetrics.incr("batch-unload-".concat(o.slice(o.length-2)),a.length)}}},{key:"unload",value:function(){var i=this;clearTimeout(this._poller);var n=this._event_queue.length>0?this.formatQueue():{};this._event_queue.length=0;var s=Object.values(n);[].concat(hl(s.filter(function(o){return o.url.indexOf("/e")===0})),hl(s.filter(function(o){return o.url.indexOf("/e")!==0}))).map(function(o){var a=o.url,l=o.data,h=o.options;i.handlePollRequest(a,l,it(it({},h),{},{transport:"sendBeacon"}))})}},{key:"formatQueue",value:function(){var i={};return ct(this._event_queue,function(n){var s=n.url,o=n.data,a=n.options,l=(a?a._batchKey:null)||s;i[l]===void 0&&(i[l]={data:[],url:s,options:a}),a&&i[l].options&&i[l].options._metrics&&!i[l].options._metrics.rrweb_full_snapshot&&(i[l].options._metrics.rrweb_full_snapshot=a._metrics.rrweb_full_snapshot),i[l].data.push(o)}),i}}]),r}(),ng=function(){function t(e){Rt(this,t),this.enabled=e,this.metrics={}}return Bt(t,[{key:"incr",value:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.enabled&&(e="phjs-".concat(e),this.metrics[e]=(this.metrics[e]||0)+r)}},{key:"decr",value:function(e){this.enabled&&(e="phjs-".concat(e),this.metrics[e]=(this.metrics[e]||0)-1)}}]),t}(),ae=Uint8Array,Gt=Uint16Array,di=Uint32Array,Cl=new ae([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Tl=new ae([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Pu=new ae([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Wu=function(t,e){for(var r=new Gt(31),i=0;i<31;++i)r[i]=e+=1<<t[i-1];var n=new di(r[30]);for(i=1;i<30;++i)for(var s=r[i];s<r[i+1];++s)n[s]=s-r[i]<<5|i;return[r,n]},Zu=Wu(Cl,2),sg=Zu[0],vl=Zu[1];sg[28]=258,vl[258]=28;for(bl=Wu(Tl,0)[1],ao=new Gt(32768),yt=0;yt<32768;++yt)sr=(43690&yt)>>>1|(21845&yt)<<1,sr=(61680&(sr=(52428&sr)>>>2|(13107&sr)<<2))>>>4|(3855&sr)<<4,ao[yt]=((65280&sr)>>>8|(255&sr)<<8)>>>1;var sr,bl,ao,yt,dn=function(t,e,r){for(var i=t.length,n=0,s=new Gt(e);n<i;++n)++s[t[n]-1];var o,a=new Gt(e);for(n=0;n<e;++n)a[n]=a[n-1]+s[n-1]<<1;if(r){o=new Gt(1<<e);var l=15-e;for(n=0;n<i;++n)if(t[n])for(var h=n<<4|t[n],c=e-t[n],p=a[t[n]-1]++<<c,f=p|(1<<c)-1;p<=f;++p)o[ao[p]>>>l]=h}else for(o=new Gt(i),n=0;n<i;++n)o[n]=ao[a[t[n]-1]++]>>>15-t[n];return o},Mr=new ae(288);for(yt=0;yt<144;++yt)Mr[yt]=8;for(yt=144;yt<256;++yt)Mr[yt]=9;for(yt=256;yt<280;++yt)Mr[yt]=7;for(yt=280;yt<288;++yt)Mr[yt]=8;var lo=new ae(32);for(yt=0;yt<32;++yt)lo[yt]=5;var Se,og=dn(Mr,9,0),ag=dn(lo,5,0),Yu=function(t){return(t/8>>0)+(7&t&&1)},Xu=function(t,e,r){(e==null||e<0)&&(e=0),(r==null||r>t.length)&&(r=t.length);var i=new(t instanceof Gt?Gt:t instanceof di?di:ae)(r-e);return i.set(t.subarray(e,r)),i},We=function(t,e,r){r<<=7&e;var i=e/8>>0;t[i]|=r,t[i+1]|=r>>>8},cn=function(t,e,r){r<<=7&e;var i=e/8>>0;t[i]|=r,t[i+1]|=r>>>8,t[i+2]|=r>>>16},al=function(t,e){for(var r=[],i=0;i<t.length;++i)t[i]&&r.push({s:i,f:t[i]});var n=r.length,s=r.slice();if(!n)return[new ae(0),0];if(n==1){var o=new ae(r[0].s+1);return o[r[0].s]=1,[o,1]}r.sort(function(x,M){return x.f-M.f}),r.push({s:-1,f:25001});var a=r[0],l=r[1],h=0,c=1,p=2;for(r[0]={s:-1,f:a.f+l.f,l:a,r:l};c!=n-1;)a=r[r[h].f<r[p].f?h++:p++],l=r[h!=c&&r[h].f<r[p].f?h++:p++],r[c++]={s:-1,f:a.f+l.f,l:a,r:l};var f=s[0].s;for(i=1;i<n;++i)s[i].s>f&&(f=s[i].s);var u=new Gt(f+1),m=lg(r[c-1],u,0);if(m>e){i=0;var g=0,d=m-e,y=1<<d;for(s.sort(function(x,M){return u[M.s]-u[x.s]||x.f-M.f});i<n;++i){var v=s[i].s;if(!(u[v]>e))break;g+=y-(1<<m-u[v]),u[v]=e}for(g>>>=d;g>0;){var b=s[i].s;u[b]<e?g-=1<<e-u[b]++-1:++i}for(;i>=0&&g;--i){var _=s[i].s;u[_]==e&&(--u[_],++g)}m=e}return[new ae(u),m]},lg=function t(e,r,i){return e.s==-1?Math.max(t(e.l,r,i+1),t(e.r,r,i+1)):r[e.s]=i},Au=function(t){for(var e=t.length;e&&!t[--e];);for(var r=new Gt(++e),i=0,n=t[0],s=1,o=function(l){r[i++]=l},a=1;a<=e;++a)if(t[a]==n&&a!=e)++s;else{if(!n&&s>2){for(;s>138;s-=138)o(32754);s>2&&(o(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(o(n),--s;s>6;s-=6)o(8304);s>2&&(o(s-3<<5|8208),s=0)}for(;s--;)o(n);s=1,n=t[a]}return[r.subarray(0,i),e]},pn=function(t,e){for(var r=0,i=0;i<e.length;++i)r+=t[i]*e[i];return r},ro=function(t,e,r){var i=r.length,n=Yu(e+2);t[n]=255&i,t[n+1]=i>>>8,t[n+2]=255^t[n],t[n+3]=255^t[n+1];for(var s=0;s<i;++s)t[n+s+4]=r[s];return 8*(n+4+i)},Cu=function(t,e,r,i,n,s,o,a,l,h,c){We(e,c++,r),++n[256];for(var p=al(n,15),f=p[0],u=p[1],m=al(s,15),g=m[0],d=m[1],y=Au(f),v=y[0],b=y[1],_=Au(g),x=_[0],M=_[1],S=new Gt(19),w=0;w<v.length;++w)S[31&v[w]]++;for(w=0;w<x.length;++w)S[31&x[w]]++;for(var D=al(S,7),E=D[0],T=D[1],k=19;k>4&&!E[Pu[k-1]];--k);var A,P,I,L,F=h+5<<3,C=pn(n,Mr)+pn(s,lo)+o,O=pn(n,f)+pn(s,g)+o+14+3*k+pn(S,E)+(2*S[16]+3*S[17]+7*S[18]);if(F<=C&&F<=O)return ro(e,c,t.subarray(l,l+h));if(We(e,c,1+(O<C)),c+=2,O<C){A=dn(f,u,0),P=f,I=dn(g,d,0),L=g;var V=dn(E,T,0);for(We(e,c,b-257),We(e,c+5,M-1),We(e,c+10,k-4),c+=14,w=0;w<k;++w)We(e,c+3*w,E[Pu[w]]);c+=3*k;for(var z=[v,x],N=0;N<2;++N){var G=z[N];for(w=0;w<G.length;++w){var H=31&G[w];We(e,c,V[H]),c+=E[H],H>15&&(We(e,c,G[w]>>>5&127),c+=G[w]>>>12)}}}else A=og,P=Mr,I=ag,L=lo;for(w=0;w<a;++w)if(i[w]>255){H=i[w]>>>18&31,cn(e,c,A[H+257]),c+=P[H+257],H>7&&(We(e,c,i[w]>>>23&31),c+=Cl[H]);var Y=31&i[w];cn(e,c,I[Y]),c+=L[Y],Y>3&&(cn(e,c,i[w]>>>5&8191),c+=Tl[Y])}else cn(e,c,A[i[w]]),c+=P[i[w]];return cn(e,c,A[256]),c+P[256]},hg=new di([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),cg=new ae(0),pg=function(){for(var t=new di(256),e=0;e<256;++e){for(var r=e,i=9;--i;)r=(1&r&&3988292384)^r>>>1;t[e]=r}return t}(),ug=function(){var t=4294967295;return{p:function(e){for(var r=t,i=0;i<e.length;++i)r=pg[255&r^e[i]]^r>>>8;t=r},d:function(){return 4294967295^t}}},fg=function(t,e,r,i,n){return function(s,o,a,l,h,c){var p=s.length,f=new ae(l+p+5*(1+Math.floor(p/7e3))+h),u=f.subarray(l,f.length-h),m=0;if(!o||p<8)for(var g=0;g<=p;g+=65535){var d=g+65535;d<p?m=ro(u,m,s.subarray(g,d)):(u[g]=c,m=ro(u,m,s.subarray(g,p)))}else{for(var y=hg[o-1],v=y>>>13,b=8191&y,_=(1<<a)-1,x=new Gt(32768),M=new Gt(_+1),S=Math.ceil(a/3),w=2*S,D=function(Ut){return(s[Ut]^s[Ut+1]<<S^s[Ut+2]<<w)&_},E=new di(25e3),T=new Gt(288),k=new Gt(32),A=0,P=0,I=(g=0,0),L=0,F=0;g<p;++g){var C=D(g),O=32767&g,V=M[C];if(x[O]=V,M[C]=O,L<=g){var z=p-g;if((A>7e3||I>24576)&&z>423){m=Cu(s,u,0,E,T,k,P,I,F,g-F,m),I=A=P=0,F=g;for(var N=0;N<286;++N)T[N]=0;for(N=0;N<30;++N)k[N]=0}var G=2,H=0,Y=b,Q=O-V&32767;if(z>2&&C==D(g-Q))for(var K=Math.min(v,z)-1,Z=Math.min(32767,g),pt=Math.min(258,z);Q<=Z&&--Y&&O!=V;){if(s[g+G]==s[g+G-Q]){for(var et=0;et<pt&&s[g+et]==s[g+et-Q];++et);if(et>G){if(G=et,H=Q,et>K)break;var vt=Math.min(Q,et-2),ut=0;for(N=0;N<vt;++N){var j=g-Q+N+32768&32767,Ft=j-x[j]+32768&32767;Ft>ut&&(ut=Ft,V=j)}}}Q+=(O=V)-(V=x[O])+32768&32767}if(H){E[I++]=268435456|vl[G]<<18|bl[H];var he=31&vl[G],ce=31&bl[H];P+=Cl[he]+Tl[ce],++T[257+he],++k[ce],L=g+G,++A}else E[I++]=s[g],++T[s[g]]}}m=Cu(s,u,c,E,T,k,P,I,F,g-F,m),c||(m=ro(u,m,cg))}return Xu(f,0,l+Yu(m)+h)}(t,e.level==null?6:e.level,e.mem==null?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(t.length)))):12+e.mem,r,i,!n)},_l=function(t,e,r){for(;r;++e)t[e]=r,r>>>=8},dg=function(t,e){var r=e.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=e.level<2?4:e.level==9?2:0,t[9]=3,e.mtime!=0&&_l(t,4,Math.floor(new Date(e.mtime||Date.now())/1e3)),r){t[3]=8;for(var i=0;i<=r.length;++i)t[i+10]=r.charCodeAt(i)}},mg=function(t){return 10+(t.filename&&t.filename.length+1||0)};function gg(t,e){e===void 0&&(e={});var r=ug(),i=t.length;r.p(t);var n=fg(t,e,mg(e),8),s=n.length;return dg(n,e),_l(n,s-8,r.d()),_l(n,s-4,i),n}function yg(t,e){var r=t.length;if(!e&&typeof TextEncoder<"u")return new TextEncoder().encode(t);for(var i=new ae(t.length+(t.length>>>1)),n=0,s=function(h){i[n++]=h},o=0;o<r;++o){if(n+5>i.length){var a=new ae(n+8+(r-o<<1));a.set(i),i=a}var l=t.charCodeAt(o);l<128||e?s(l):l<2048?(s(192|l>>>6),s(128|63&l)):l>55295&&l<57344?(s(240|(l=65536+(1047552&l)|1023&t.charCodeAt(++o))>>>18),s(128|l>>>12&63),s(128|l>>>6&63),s(128|63&l)):(s(224|l>>>12),s(128|l>>>6&63),s(128|63&l))}return Xu(i,0,n)}(function(t){t.GZipJS="gzip-js",t.LZ64="lz64",t.Base64="base64"})(Se||(Se={}));var mn,Ml,Lt,vg=function(t,e,r){var i=e||{};i.ip=r.ip?1:0,i._=new Date().getTime().toString(),i.ver=Le.LIB_VERSION;var n=t.split("?");if(n.length>1){var s,o=cr(n[1].split("&"));try{for(o.s();!(s=o.n()).done;){var a=s.value.split("=")[0];i[a]&&delete i[a]}}catch(h){o.e(h)}finally{o.f()}}var l=t.indexOf("?")>-1?"&":"?";return t+l+function(h){var c,p,f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"&",u=[];return ct(h,function(m,g){c=encodeURIComponent(m.toString()),p=encodeURIComponent(g),u[u.length]=p+"="+c}),u.join(f)}(i)},Fl=function t(e,r){if(r.blob&&e.buffer)return new Blob([e.buffer],{type:"text/plain"});if(r.sendBeacon||r.blob){var i=t(e,{method:"POST"});return new Blob([i],{type:"application/x-www-form-urlencoded"})}if(r.method!=="POST")return null;var n,s;return n=Array.isArray(e)||(s=e,Object.prototype.toString.call(s)==="[object Uint8Array]")?"data="+encodeURIComponent(e):"data="+encodeURIComponent(e.data),"compression"in e&&e.compression&&(n+="&compression="+e.compression),n},Ku=function(t){var e=t.url,r=t.data,i=t.headers,n=t.options,s=t.captureMetrics,o=t.callback,a=t.retriesPerformedSoFar,l=t.retryQueue,h=t.onXHRError,c=t.timeout,p=c===void 0?1e4:c,f=new XMLHttpRequest;f.open(n.method||"GET",e,!0);var u=Fl(r,n);s.incr("_send_request"),s.incr("_send_request_inflight"),ct(i,function(m,g){f.setRequestHeader(g,m)}),n.method!=="POST"||n.blob||f.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),f.timeout=p,f.withCredentials=!0,f.onreadystatechange=function(){if(f.readyState===4)if(s.incr("xhr-response"),s.incr("xhr-response-".concat(f.status)),s.decr("_send_request_inflight"),f.status===200){if(o){var m;try{m=JSON.parse(f.responseText)}catch(g){return void bt.error(g)}o(m)}}else typeof h=="function"&&h(f),[401,403,404,500].indexOf(f.status)<0&&l.enqueue({url:e,data:r,options:n,headers:i,retriesPerformedSoFar:(a||0)+1,callback:o}),o&&o({status:0})},f.send(u)},bg=function(t){Mu(r,Uu);var e=Fu(r);function r(i,n){var s;return Rt(this,r),(s=e.call(this)).captureMetrics=i,s.isPolling=!1,s.queue=[],s.areWeOnline=!0,s.onXHRError=n,typeof window<"u"&&"onLine"in window.navigator&&(s.areWeOnline=window.navigator.onLine,window.addEventListener("online",function(){s._handleWeAreNowOnline()}),window.addEventListener("offline",function(){s.areWeOnline=!1})),s}return Bt(r,[{key:"enqueue",value:function(i){var n=i.retriesPerformedSoFar||0;if(!(n>=10)){var s=3e3*Math.pow(2,n),o=new Date(Date.now()+s);console.warn("Enqueued failed request for retry in ".concat(s)),this.queue.push({retryAt:o,requestData:i}),this.isPolling||(this.isPolling=!0,this.poll())}}},{key:"poll",value:function(){var i=this;this._poller&&clearTimeout(this._poller),this._poller=setTimeout(function(){i.areWeOnline&&i.queue.length>0&&i.flush(),i.poll()},this._pollInterval)}},{key:"flush",value:function(){var i=new Date(Date.now()),n=this.queue.filter(function(l){return l.retryAt<i});if(n.length>0){this.queue=this.queue.filter(function(l){return l.retryAt>=i});var s,o=cr(n);try{for(o.s();!(s=o.n()).done;){var a=s.value.requestData;this._executeXhrRequest(a)}}catch(l){o.e(l)}finally{o.f()}}}},{key:"unload",value:function(){this._poller&&(clearTimeout(this._poller),this._poller=void 0);var i,n=cr(this.queue);try{for(n.s();!(i=n.n()).done;){var s=i.value.requestData,o=s.url,a=s.data,l=s.options;try{window.navigator.sendBeacon(o,Fl(a,it(it({},l),{},{sendBeacon:!0})))}catch(h){Le.DEBUG&&console.error(h)}}}catch(h){n.e(h)}finally{n.f()}this.queue=[]}},{key:"_executeXhrRequest",value:function(i){var n=i.url,s=i.data,o=i.options,a=i.headers,l=i.callback,h=i.retriesPerformedSoFar;Ku({url:n,data:s||{},options:o||{},headers:a||{},retriesPerformedSoFar:h||0,callback:l,captureMetrics:this.captureMetrics,retryQueue:this,onXHRError:this.onXHRError})}},{key:"_handleWeAreNowOnline",value:function(){this.areWeOnline=!0,this.flush()}}]),r}(),_g=18e5,wg=864e5,xg=function(){function t(e,r){Rt(this,t),this.config=e,this.persistence=r,this._windowId=void 0,this._sessionId=void 0,this._sessionStartTimestamp=null,this._sessionActivityTimestamp=null;var i=e.persistence_name||e.token;if(this.window_id_storage_key="ph_"+i+"_window_id",this.primary_window_exists_storage_key="ph_"+i+"_primary_window_exists",this._canUseSessionStorage()){var n=Ot.parse(this.window_id_storage_key),s=Ot.parse(this.primary_window_exists_storage_key);n&&!s?this._windowId=n:Ot.remove(this.window_id_storage_key),Ot.set(this.primary_window_exists_storage_key,!0)}this._listenToReloadWindow()}return Bt(t,[{key:"_canUseSessionStorage",value:function(){return this.config.persistence!=="memory"&&!this.persistence.disabled&&Ot.is_supported()}},{key:"_setWindowId",value:function(e){e!==this._windowId&&(this._windowId=e,this._canUseSessionStorage()&&Ot.set(this.window_id_storage_key,e))}},{key:"_getWindowId",value:function(){return this._windowId?this._windowId:this._canUseSessionStorage()?Ot.parse(this.window_id_storage_key):null}},{key:"_setSessionId",value:function(e,r,i){e===this._sessionId&&r===this._sessionActivityTimestamp&&i===this._sessionStartTimestamp||(this._sessionStartTimestamp=i,this._sessionActivityTimestamp=r,this._sessionId=e,this.persistence.register(st({},ml,[r,e,i])))}},{key:"_getSessionId",value:function(){if(this._sessionId&&this._sessionActivityTimestamp&&this._sessionStartTimestamp)return[this._sessionActivityTimestamp,this._sessionId,this._sessionStartTimestamp];var e=this.persistence.props[ml];return Array.isArray(e)&&e.length===2&&e.push(e[0]),e||[0,null,0]}},{key:"resetSessionId",value:function(){this._setSessionId(null,null,null)}},{key:"_listenToReloadWindow",value:function(){var e=this;window.addEventListener("beforeunload",function(){e._canUseSessionStorage()&&Ot.remove(e.primary_window_exists_storage_key)})}},{key:"checkAndGetSessionAndWindowId",value:function(){var e=arguments.length>0&&arguments[0]!==void 0&&arguments[0],r=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:null)||new Date().getTime(),i=ho(this._getSessionId(),3),n=i[0],s=i[1],o=i[2],a=this._getWindowId(),l=o&&o>0&&Math.abs(r-o)>wg;!s||!e&&Math.abs(r-n)>_g||l?(s=hr(),a=hr(),o=r):a||(a=hr());var h=n===0||!e||l?r:n,c=o===0?new Date().getTime():o;return this._setWindowId(a),this._setSessionId(s,h,c),{sessionId:s,windowId:a}}}]),t}(),Sg=Bt(function t(e,r,i,n){Rt(this,t),this.name="posthog-js",this.setupOnce=function(s){s(function(o){var a,l,h;if(o.level!=="error"||!e.__loaded)return o;o.tags||(o.tags={});var c=e.config.ui_host||e.config.api_host;o.tags["PostHog Person URL"]=c+"/person/"+e.get_distinct_id(),e.sessionRecordingStarted()&&(o.tags["PostHog Recording URL"]=e.get_session_replay_url({withTimestamp:!0}));var p=((a=o.exception)===null||a===void 0?void 0:a.values)||[],f={$sentry_event_id:o.event_id,$sentry_exception:o.exception,$sentry_exception_message:(l=p[0])===null||l===void 0?void 0:l.value,$sentry_exception_type:(h=p[0])===null||h===void 0?void 0:h.type,$sentry_tags:o.tags};return r&&i&&(f.$sentry_url=(n||"https://sentry.io/organizations/")+r+"/issues/?project="+i+"&query="+o.event_id),e.capture("$exception",f),o})}}),Eg=function(t){var e=function(r,i){r.event.userId||r.event.anonymousId===t.get_distinct_id()||t.reset(),r.event.userId&&r.event.userId!==t.get_distinct_id()&&(t.register({distinct_id:r.event.userId}),t.reloadFeatureFlags());var n=t._calculate_event_properties(i,r.event.properties);return r.event.properties=Object.assign({},n,r.event.properties),r};return{name:"PostHog JS",type:"enrichment",version:"1.0.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:function(r){return e(r,r.event.event)},page:function(r){return e(r,"$pageview")},identify:function(r){return e(r,"$identify")},screen:function(r){return e(r,"$screen")}}},kg=function(){function t(){Rt(this,t),st(this,"_seenFirstPageView",!1)}return Bt(t,[{key:"onPageview",value:function(){this._seenFirstPageView&&(this._pageViewId=hr()),this._seenFirstPageView=!0}},{key:"getPageViewId",value:function(){return this._pageViewId||(this._pageViewId=hr()),this._pageViewId}}]),t}();(function(t){t[t.INIT_MODULE=0]="INIT_MODULE",t[t.INIT_SNIPPET=1]="INIT_SNIPPET"})(mn||(mn={}));var wl=function(){},Qs={},Kt="posthog",io=tt.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,Ju=!io&&ye.indexOf("MSIE")===-1&&ye.indexOf("Mozilla")===-1,Tu=function(){var t,e,r;return{api_host:"https://app.posthog.com",api_method:"POST",api_transport:"XHR",ui_host:null,token:"",autocapture:!0,rageclick:!0,cross_subdomain_cookie:(At==null||(t=At.location)===null||t===void 0||(e=t.hostname)===null||e===void 0?void 0:e.indexOf("herokuapp.com"))===-1,persistence:"cookie",persistence_name:"",cookie_name:"",loaded:wl,store_google:!0,custom_campaign_params:[],save_referrer:!0,test:!1,verbose:!1,capture_pageview:!0,capture_pageleave:!0,debug:!1,cookie_expiration:365,upgrade:!1,disable_session_recording:!1,disable_persistence:!1,disable_cookie:!1,enable_recording_console_log:void 0,secure_cookie:(tt==null||(r=tt.location)===null||r===void 0?void 0:r.protocol)==="https:",ip:!0,opt_out_capturing_by_default:!1,opt_out_persistence_by_default:!1,opt_out_capturing_persistence_type:"localStorage",opt_out_capturing_cookie_prefix:null,opt_in_site_apps:!1,property_blacklist:[],respect_dnt:!1,sanitize_properties:null,xhr_headers:{},inapp_protocol:"//",inapp_link_new_window:!1,request_batching:!0,properties_string_max_length:65535,session_recording:{blockClass:"ph-no-capture",blockSelector:null,ignoreClass:"ph-ignore-input",maskAllInputs:!0,maskInputOptions:{},maskInputFn:null,slimDOMOptions:{},collectFonts:!1,inlineStylesheet:!0},mask_all_element_attributes:!1,mask_all_text:!1,advanced_disable_decide:!1,advanced_disable_toolbar_metrics:!1,on_xhr_error:function(i){var n="Bad HTTP status: "+i.status+" "+i.statusText;console.error(n)},get_device_id:function(i){return i},_onCapture:wl,_capture_metrics:!1,capture_performance:void 0,name:"posthog",callback_fn:"posthog._jsc",bootstrap:{},disable_compression:!1}},xl=function(t,e,r,i){var n,s=r!==Kt&&Lt?r?Lt[r]:void 0:Lt,o={initComplete:!1,syncCode:!1},a=function(l){return function(h){o[l]||(o[l]=!0,o.initComplete&&o.syncCode&&i?.(h))}};if(s&&Ml===mn.INIT_MODULE)n=s;else{if(s&&!Ze(s))return void console.error("You have already initialized "+r);n=new Dl}return n._init(t,e,r,a("initComplete")),n.toolbar.maybeLoadToolbar(),n.sessionRecording=new Z0(n),n.sessionRecording.startRecordingIfEnabled(),n.webPerformance=new K0(n),n.webPerformance.startObservingIfEnabled(),n.__autocapture=n.get_config("autocapture"),lr._setIsAutocaptureEnabled(n),lr._isAutocaptureEnabled&&(n.__autocapture=n.get_config("autocapture"),lr.enabledForProject(n.get_config("token"),100,100)?lr.isBrowserSupported()?lr.init(n):(n.__autocapture=!1,bt.log("Disabling Automatic Event Collection because this browser is not supported")):(n.__autocapture=!1,bt.log("Not in active bucket: disabling Automatic Event Collection."))),Le.DEBUG=Le.DEBUG||n.get_config("debug"),s!==void 0&&Ze(s)&&(n._execute_array.call(n.people,s.people),n._execute_array(s)),a("syncCode")(n),n},Dl=function(){function t(){var e=this;Rt(this,t),this.config=Tu(),this.compression={},this.decideEndpointWasHit=!1,this.SentryIntegration=Sg,this.segmentIntegration=function(){return Eg(e)},this.__captureHooks=[],this.__request_queue=[],this.__loaded=!1,this.__loaded_recorder_version=void 0,this.__autocapture=void 0,this._jsc=function(){},this.people=new z0(this),this.featureFlags=new H0(this),this.feature_flags=this.featureFlags,this.toolbar=new rg(this),this.pageViewIdManager=new kg,this._captureMetrics=void 0,this._requestQueue=void 0,this._retryQueue=void 0,this.persistence=void 0,this.sessionPersistence=void 0,this.sessionManager=void 0}return Bt(t,[{key:"init",value:function(e,r,i){if(Ee(i))console.error("You must name your new library: init(token, config, name)");else{if(i!==Kt){var n=xl(e,r,i,function(s){Lt[i]=s,s._loaded()});return Lt[i]=n,n}console.error("You must initialize the main posthog object right after you include the PostHog js snippet")}}},{key:"_init",value:function(e){var r,i,n=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0;this.__loaded=!0,this.config={},this._triggered_notifs=[];var l,h={segmentRegister:!1,syncCode:!1},c=function(_){return function(){h[_]||(h[_]=!0,h.segmentRegister&&h.syncCode&&a?.(n))}};if(this.set_config(It({},Tu(),s,{name:o,token:e,callback_fn:(o===Kt?o:Kt+"."+o)+"._jsc"})),this._jsc=function(){},(tt!=null&&(r=tt.rrweb)!==null&&r!==void 0&&r.record||tt!=null&&tt.rrwebRecord)&&(this.__loaded_recorder_version=tt==null||(l=tt.rrweb)===null||l===void 0?void 0:l.version),this._captureMetrics=new ng(this.get_config("_capture_metrics")),this._requestQueue=new ig(this._captureMetrics,this._handle_queued_event.bind(this)),this._retryQueue=new bg(this._captureMetrics,this.get_config("on_xhr_error")),this.__captureHooks=[],this.__request_queue=[],this.persistence=new wu(this.config),this.sessionManager=new xg(this.config,this.persistence),this.sessionPersistence=this.config.persistence==="sessionStorage"?this.persistence:new wu(it(it({},this.config),{},{persistence:"sessionStorage"})),this._gdpr_init(),s.segment?(this.config.get_device_id=function(){return s.segment.user().anonymousId()},s.segment.user().id()&&(this.register({distinct_id:s.segment.user().id()}),this.persistence.set_user_state("identified")),s.segment.register(this.segmentIntegration()).then(c("segmentRegister"))):c("segmentRegister")(),((i=s.bootstrap)===null||i===void 0?void 0:i.distinctID)!==void 0){var p,f,u=this.get_config("get_device_id")(hr()),m=(p=s.bootstrap)!==null&&p!==void 0&&p.isIdentifiedID?u:s.bootstrap.distinctID;this.persistence.set_user_state((f=s.bootstrap)!==null&&f!==void 0&&f.isIdentifiedID?"identified":"anonymous"),this.register({distinct_id:s.bootstrap.distinctID,$device_id:m})}if(this._hasBootstrappedFeatureFlags()){var g,d,y=Object.keys(((g=s.bootstrap)===null||g===void 0?void 0:g.featureFlags)||{}).filter(function(_){var x,M;return!((x=s.bootstrap)===null||x===void 0||(M=x.featureFlags)===null||M===void 0||!M[_])}).reduce(function(_,x){var M,S;return _[x]=((M=s.bootstrap)===null||M===void 0||(S=M.featureFlags)===null||S===void 0?void 0:S[x])||!1,_},{}),v=Object.keys(((d=s.bootstrap)===null||d===void 0?void 0:d.featureFlagPayloads)||{}).filter(function(_){return y[_]}).reduce(function(_,x){var M,S,w,D;return(M=s.bootstrap)!==null&&M!==void 0&&(S=M.featureFlagPayloads)!==null&&S!==void 0&&S[x]&&(_[x]=(w=s.bootstrap)===null||w===void 0||(D=w.featureFlagPayloads)===null||D===void 0?void 0:D[x]),_},{});this.featureFlags.receivedFeatureFlags({featureFlags:y,featureFlagPayloads:v})}if(!this.get_distinct_id()){var b=this.get_config("get_device_id")(hr());this.register_once({distinct_id:b,$device_id:b},""),this.persistence.set_user_state("anonymous")}tt.addEventListener&&tt.addEventListener("onpagehide"in self?"pagehide":"unload",this._handle_unload.bind(this)),c("syncCode")()}},{key:"_loaded",value:function(){this.featureFlags.setReloadingPaused(!0);try{this.get_config("loaded")(this)}catch(e){console.error("`loaded` function failed",e)}this._start_queue_if_opted_in(),this.get_config("capture_pageview")&&this.capture("$pageview",{},{send_instantly:!0}),this.get_config("advanced_disable_decide")||new Q0(this).call(),this.featureFlags.resetRequestQueue(),this.featureFlags.setReloadingPaused(!1)}},{key:"_start_queue_if_opted_in",value:function(){this.has_opted_out_capturing()||this.get_config("request_batching")&&this._requestQueue.poll()}},{key:"_dom_loaded",value:function(){var e=this;this.has_opted_out_capturing()||Ye(this.__request_queue,function(r){e._send_request.apply(e,hl(r))}),this.__request_queue=[],this._start_queue_if_opted_in()}},{key:"_prepare_callback",value:function(e,r){if(Ee(e))return null;if(io)return function(o){e(o,r)};var i=this._jsc,n=""+Math.floor(1e8*Math.random()),s=this.get_config("callback_fn")+"["+n+"]";return i[n]=function(o){delete i[n],e(o,r)},s}},{key:"_handle_unload",value:function(){this.get_config("request_batching")?(this.get_config("capture_pageview")&&this.get_config("capture_pageleave")&&this.capture("$pageleave"),this.get_config("_capture_metrics")&&(this._requestQueue.updateUnloadMetrics(),this.capture("$capture_metrics",this._captureMetrics.metrics)),this._requestQueue.unload(),this._retryQueue.unload()):this.get_config("capture_pageview")&&this.get_config("capture_pageleave")&&this.capture("$pageleave",null,{transport:"sendBeacon"})}},{key:"_handle_queued_event",value:function(e,r,i){var n=JSON.stringify(r);this.__compress_and_send_json_request(e,n,i||Qs,wl)}},{key:"__compress_and_send_json_request",value:function(e,r,i,n){var s,o=function(c,p,f){return c===Se.LZ64?[{data:oe.compressToBase64(p),compression:Se.LZ64},f]:c===Se.GZipJS?[gg(yg(p),{mtime:0}),it(it({},f),{},{blob:!0,urlQueryArgs:{compression:Se.GZipJS}})]:[{data:po(p)},f]}((s=this.compression)[Se.GZipJS]?Se.GZipJS:s[Se.LZ64]?Se.LZ64:Se.Base64,r,i),a=ho(o,2),l=a[0],h=a[1];this._send_request(e,l,h,n)}},{key:"_send_request",value:function(e,r,i,n){if(Ju)this.__request_queue.push([e,r,i,n]);else{var s={method:this.get_config("api_method"),transport:this.get_config("api_transport"),verbose:this.get_config("verbose")};i=It(s,i||{}),io||(i.method="GET");var o="sendBeacon"in tt.navigator&&i.transport==="sendBeacon";if(e=vg(e,i.urlQueryArgs||{},{ip:this.get_config("ip")}),o)try{tt.navigator.sendBeacon(e,Fl(r,it(it({},i),{},{sendBeacon:!0})))}catch(c){this.get_config("debug")&&console.error(c)}else if(io)try{Ku({url:e,data:r,headers:this.get_config("xhr_headers"),options:i,captureMetrics:this._captureMetrics,callback:n,retriesPerformedSoFar:0,retryQueue:this._retryQueue,onXHRError:this.get_config("on_xhr_error")})}catch(c){console.error(c)}else{var a,l=At.createElement("script");l.type="text/javascript",l.async=!0,l.defer=!0,l.src=e;var h=At.getElementsByTagName("script")[0];(a=h.parentNode)===null||a===void 0||a.insertBefore(l,h)}}}},{key:"_execute_array",value:function(e){var r,i=this,n=[],s=[],o=[];Ye(e,function(l){l&&(r=l[0],Ze(r)?o.push(l):typeof l=="function"?l.call(i):Ze(l)&&r==="alias"?n.push(l):Ze(l)&&r.indexOf("capture")!==-1&&typeof i[r]=="function"?o.push(l):s.push(l))});var a=function(l,h){Ye(l,function(c){if(Ze(c[0])){var p=h;ct(c,function(f){p=p[f[0]].apply(p,f.slice(1))})}else this[c[0]].apply(this,c.slice(1))},h)};a(n,this),a(s,this),a(o,this)}},{key:"_hasBootstrappedFeatureFlags",value:function(){var e,r;return((e=this.config.bootstrap)===null||e===void 0?void 0:e.featureFlags)&&Object.keys((r=this.config.bootstrap)===null||r===void 0?void 0:r.featureFlags).length>0||!1}},{key:"push",value:function(e){this._execute_array([e])}},{key:"capture",value:function(e,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Qs;if(this.__loaded&&!qu(this,!1)){this._captureMetrics.incr("capture"),e==="$snapshot"&&this._captureMetrics.incr("snapshot");var n=(i=i||Qs).transport;if(n&&(i.transport=n),Ee(e)||typeof e!="string")console.error("No event name provided to posthog.capture");else if(!T0(ye)){this.sessionPersistence.update_search_keyword(),this.get_config("store_google")&&this.sessionPersistence.update_campaign_params(),this.get_config("save_referrer")&&this.sessionPersistence.update_referrer_info();var s={event:e,properties:this._calculate_event_properties(e,r||{})};e==="$identify"&&(s.$set=i.$set,s.$set_once=i.$set_once),(s=Vu(s,i._noTruncate?null:this.get_config("properties_string_max_length"))).timestamp=i.timestamp||new Date,this.get_config("debug")&&bt.log("PostHog.js send",s);var o=JSON.stringify(s),a=this.get_config("api_host")+(i.endpoint||"/e/"),l=i!==Qs;return!this.get_config("request_batching")||l&&!i._batchKey||i.send_instantly?this.__compress_and_send_json_request(a,o,i):this._requestQueue.enqueue(a,s,i),this._invokeCaptureHooks(e,s),s}}}},{key:"_addCaptureHook",value:function(e){this.__captureHooks.push(e)}},{key:"_invokeCaptureHooks",value:function(e,r){this.config._onCapture(e,r),ct(this.__captureHooks,function(i){return i(e)})}},{key:"_calculate_event_properties",value:function(e,r){var i,n=this.persistence.remove_event_timer(e),s=it({},r);if(s.token=this.get_config("token"),e==="$snapshot"){var o=it(it({},this.persistence.properties()),this.sessionPersistence.properties());return s.distinct_id=o.distinct_id,s}var a=Mt.properties();if(this.sessionManager){var l=this.sessionManager.checkAndGetSessionAndWindowId(),h=l.sessionId,c=l.windowId;s.$session_id=h,s.$window_id=c}if((i=this.webPerformance)!==null&&i!==void 0&&i.isEnabled&&(e==="$pageview"&&this.pageViewIdManager.onPageview(),s=It(s,{$pageview_id:this.pageViewIdManager.getPageViewId()})),e==="$performance_event"){var p=this.persistence.properties();return s.distinct_id=p.distinct_id,s.$current_url=a.$current_url,s}if(n!==void 0){var f=new Date().getTime()-n;s.$duration=parseFloat((f/1e3).toFixed(3))}s=It({},Mt.properties(),this.persistence.properties(),this.sessionPersistence.properties(),s);var u=this.get_config("property_blacklist");Ze(u)?ct(u,function(g){delete s[g]}):console.error("Invalid value for property_blacklist config: "+u);var m=this.get_config("sanitize_properties");return m&&(s=m(s,e)),s}},{key:"register",value:function(e,r){this.persistence.register(e,r)}},{key:"register_once",value:function(e,r,i){this.persistence.register_once(e,r,i)}},{key:"register_for_session",value:function(e){this.sessionPersistence.register(e)}},{key:"unregister",value:function(e){this.persistence.unregister(e)}},{key:"unregister_for_session",value:function(e){this.sessionPersistence.unregister(e)}},{key:"_register_single",value:function(e,r){this.register(st({},e,r))}},{key:"getFeatureFlag",value:function(e,r){return this.featureFlags.getFeatureFlag(e,r)}},{key:"getFeatureFlagPayload",value:function(e){var r=this.featureFlags.getFeatureFlagPayload(e);try{return JSON.parse(r)}catch{return r}}},{key:"isFeatureEnabled",value:function(e,r){return this.featureFlags.isFeatureEnabled(e,r)}},{key:"reloadFeatureFlags",value:function(){this.featureFlags.reloadFeatureFlags()}},{key:"updateEarlyAccessFeatureEnrollment",value:function(e,r){this.featureFlags.updateEarlyAccessFeatureEnrollment(e,r)}},{key:"getEarlyAccessFeatures",value:function(e){var r=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return this.featureFlags.getEarlyAccessFeatures(e,r)}},{key:"onFeatureFlags",value:function(e){return this.featureFlags.onFeatureFlags(e)}},{key:"identify",value:function(e,r,i){if(e){this._captureMetrics.incr("identify");var n=this.get_distinct_id();if(this.register({$user_id:e}),!this.get_property("$device_id")){var s=n;this.register_once({$had_persisted_distinct_id:!0,$device_id:s},"")}e!==n&&e!==this.get_property(eo)&&(this.unregister(eo),this.register({distinct_id:e}));var o=this.persistence.get_user_state()==="anonymous";e!==n&&o?(this.persistence.set_user_state("identified"),this.capture("$identify",{distinct_id:e,$anon_distinct_id:n},{$set:r||{},$set_once:i||{}}),this.featureFlags.setAnonymousDistinctId(n)):(r&&this.people.set(r),i&&this.people.set_once(i)),e!==n&&this.reloadFeatureFlags()}else console.error("Unique user id has not been set in posthog.identify")}},{key:"group",value:function(e,r,i){if(e&&r){this._captureMetrics.incr("group");var n=this.getGroups();n[e]!==r&&this.resetGroupPropertiesForFlags(e),this.register({$groups:it(it({},n),{},st({},e,r))}),i&&(this.capture("$groupidentify",{$group_type:e,$group_key:r,$group_set:i}),this.setGroupPropertiesForFlags(st({},e,i))),n[e]===r||i||this.reloadFeatureFlags()}else console.error("posthog.group requires a group type and group key")}},{key:"resetGroups",value:function(){this.register({$groups:{}}),this.resetGroupPropertiesForFlags(),this.reloadFeatureFlags()}},{key:"setPersonPropertiesForFlags",value:function(e){var r=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];this.featureFlags.setPersonPropertiesForFlags(e,r)}},{key:"resetPersonPropertiesForFlags",value:function(){this.featureFlags.resetPersonPropertiesForFlags()}},{key:"setGroupPropertiesForFlags",value:function(e){var r=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];this.featureFlags.setGroupPropertiesForFlags(e,r)}},{key:"resetGroupPropertiesForFlags",value:function(e){this.featureFlags.resetGroupPropertiesForFlags(e)}},{key:"reset",value:function(e){var r=this.get_property("$device_id");this.persistence.clear(),this.sessionPersistence.clear(),this.persistence.set_user_state("anonymous"),this.sessionManager.resetSessionId();var i=this.get_config("get_device_id")(hr());this.register_once({distinct_id:i,$device_id:e?i:r},"")}},{key:"get_distinct_id",value:function(){return this.get_property("distinct_id")}},{key:"getGroups",value:function(){return this.get_property("$groups")||{}}},{key:"get_session_id",value:function(){return this.sessionManager.checkAndGetSessionAndWindowId(!0).sessionId}},{key:"get_session_replay_url",value:function(e){var r=(this.config.ui_host||this.config.api_host)+"/replay/"+this.get_session_id();if(e!=null&&e.withTimestamp&&this.sessionManager._sessionStartTimestamp){var i,n=(i=e.timestampLookBack)!==null&&i!==void 0?i:10;if(!this.sessionManager._sessionStartTimestamp)return r;var s=Math.max(Math.floor((new Date().getTime()-(this.sessionManager._sessionStartTimestamp||0))/1e3)-n,0);r+="?t=".concat(s)}return r}},{key:"alias",value:function(e,r){return e===this.get_property(Hu)?(bt.critical("Attempting to create alias for existing People user - aborting."),-2):(Ee(r)&&(r=this.get_distinct_id()),e!==r?(this._register_single(eo,e),this.capture("$create_alias",{alias:e,distinct_id:r})):(console.error("alias matches current distinct_id - skipping api call."),this.identify(e),-1))}},{key:"set_config",value:function(e){var r=it({},this.config);Cr(e)&&(It(this.config,e),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),this.sessionPersistence&&this.sessionPersistence.update_config(this.config),xt.is_supported()&&xt.get("ph_debug")==="true"&&(this.config.debug=!0),this.get_config("debug")&&(Le.DEBUG=!0),this.sessionRecording&&e.disable_session_recording!==void 0&&r.disable_session_recording!==e.disable_session_recording&&(e.disable_session_recording?this.sessionRecording.stopRecording():this.sessionRecording.startRecordingIfEnabled()))}},{key:"startSessionRecording",value:function(){this.set_config({disable_session_recording:!1})}},{key:"stopSessionRecording",value:function(){this.set_config({disable_session_recording:!0})}},{key:"sessionRecordingStarted",value:function(){var e;return!((e=this.sessionRecording)===null||e===void 0||!e.started())}},{key:"loadToolbar",value:function(e){return this.toolbar.loadToolbar(e)}},{key:"get_config",value:function(e){var r;return(r=this.config)===null||r===void 0?void 0:r[e]}},{key:"get_property",value:function(e){return this.persistence.props[e]}},{key:"getSessionProperty",value:function(e){return this.sessionPersistence.props[e]}},{key:"toString",value:function(){var e,r=(e=this.get_config("name"))!==null&&e!==void 0?e:Kt;return r!==Kt&&(r=Kt+"."+r),r}},{key:"_gdpr_init",value:function(){this.get_config("opt_out_capturing_persistence_type")==="localStorage"&&xt.is_supported()&&(!this.has_opted_in_capturing()&&this.has_opted_in_capturing({persistence_type:"cookie"})&&this.opt_in_capturing({enable_persistence:!1}),!this.has_opted_out_capturing()&&this.has_opted_out_capturing({persistence_type:"cookie"})&&this.opt_out_capturing({clear_persistence:!1}),this.clear_opt_in_out_capturing({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_capturing()?this._gdpr_update_persistence({clear_persistence:!0}):this.has_opted_in_capturing()||!this.get_config("opt_out_capturing_by_default")&&!Ie.get("ph_optout")||(Ie.remove("ph_optout"),this.opt_out_capturing({clear_persistence:this.get_config("opt_out_persistence_by_default")}))}},{key:"_gdpr_update_persistence",value:function(e){var r;if(e&&e.clear_persistence)r=!0;else{if(!e||!e.enable_persistence)return;r=!1}this.get_config("disable_persistence")||this.persistence.disabled===r||this.persistence.set_disabled(r),this.get_config("disable_persistence")||this.sessionPersistence.disabled===r||this.sessionPersistence.set_disabled(r)}},{key:"_gdpr_call_func",value:function(e,r){return r=It({capture:this.capture.bind(this),persistence_type:this.get_config("opt_out_capturing_persistence_type"),cookie_prefix:this.get_config("opt_out_capturing_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),secure_cookie:this.get_config("secure_cookie")},r||{}),xt.is_supported()||r.persistence_type!=="localStorage"||(r.persistence_type="cookie"),e(this.get_config("token"),{capture:r.capture,captureEventName:r.capture_event_name,captureProperties:r.capture_properties,persistenceType:r.persistence_type,persistencePrefix:r.cookie_prefix,cookieExpiration:r.cookie_expiration,crossSubdomainCookie:r.cross_subdomain_cookie,secureCookie:r.secure_cookie})}},{key:"opt_in_capturing",value:function(e){e=It({enable_persistence:!0},e||{}),this._gdpr_call_func($0,e),this._gdpr_update_persistence(e)}},{key:"opt_out_capturing",value:function(e){var r=It({clear_persistence:!0},e||{});this._gdpr_call_func(V0,r),this._gdpr_update_persistence(r)}},{key:"has_opted_in_capturing",value:function(e){return this._gdpr_call_func(R0,e)}},{key:"has_opted_out_capturing",value:function(e){return this._gdpr_call_func(Nu,e)}},{key:"clear_opt_in_out_capturing",value:function(e){var r=It({enable_persistence:!0},e??{});this._gdpr_call_func(B0,r),this._gdpr_update_persistence(r)}},{key:"debug",value:function(e){e===!1?(tt.console.log("You've disabled debug mode."),localStorage&&localStorage.removeItem("ph_debug"),this.set_config({debug:!1})):(tt.console.log("You're now in debug mode. All calls to PostHog will be logged in your console.\nYou can disable this with `posthog.debug(false)`."),localStorage&&localStorage.setItem("ph_debug","true"),this.set_config({debug:!0}))}},{key:"decodeLZ64",value:function(e){return oe.decompressFromBase64(e||null)}}]),t}();(function(t,e){for(var r=0;r<e.length;r++)t.prototype[e[r]]=$u(t.prototype[e[r]])})(Dl,["identify"]);var or={},Pg=function(){Lt.init=function(t,e,r){if(r)return Lt[r]||(Lt[r]=or[r]=xl(t||"",e||{},r,function(n){Lt[r]=or[r]=n,n._loaded()})),Lt[r];var i=Lt;return or[Kt]?i=or[Kt]:t&&(i=xl(t,e||{},Kt,function(n){or[Kt]=n,n._loaded()}),or[Kt]=i),Lt=i,Ml===mn.INIT_SNIPPET&&(tt[Kt]=Lt),ct(or,function(n,s){s!==Kt&&(Lt[s]=n)}),i}},Ag=function(){function t(){t.done||(t.done=!0,Ju=!1,ct(or,function(e){e._dom_loaded()}))}At.addEventListener&&(At.readyState==="complete"?t():At.addEventListener("DOMContentLoaded",t,!1)),fn(tt,"load",t,!0)},Il=(Ml=mn.INIT_MODULE,Lt=new Dl,Pg(),Lt.init(),Ag(),Lt);Il.init("phc_OTZ3wJ6VemgVupCRKS5Sbqb9Ks0JYe0hMYZPtLwl0nu",{api_host:"https://ph-eu.molin.ai",ui_host:"https://eu.posthog.com",secure_cookie:document.location.protocol==="https:",persistence:"cookie",autocapture:!1,rageclick:!1,capture_pageview:!0,disable_session_recording:!0});function Oe(t,e){Il.capture(t,e)}var Cg=J`
|
|
499
524
|
<svg width="1462" height="1462" viewBox="0 0 1462 1462" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
500
525
|
<path d="M0 0V1462H1462V0H0ZM1076.73 844.22V1090.55H891.1V844.22H1076.73L891.1 597.89V597.991L705.56 844.22H574.01V1090.55H388.48V370.627H574.01V683.231L638.4 597.891L891.1 597.89V370.627H1076.73L1076.73 844.22Z" fill="#F29400" />
|
|
501
526
|
</svg>
|
|
502
|
-
`,
|
|
503
|
-
|
|
527
|
+
`,Tg=J`
|
|
528
|
+
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
|
|
529
|
+
<defs>
|
|
530
|
+
<style>
|
|
531
|
+
.cls-1 {
|
|
532
|
+
fill: #f05b27;
|
|
533
|
+
}
|
|
534
|
+
.cls-1,
|
|
535
|
+
.cls-2 {
|
|
536
|
+
fill-rule: evenodd;
|
|
537
|
+
}
|
|
538
|
+
.cls-2 {
|
|
539
|
+
fill: #fff;
|
|
540
|
+
}
|
|
541
|
+
</style>
|
|
542
|
+
</defs>
|
|
543
|
+
<rect x="0.5" y="-0.01" width="100" height="100" />
|
|
544
|
+
<path class="cls-1" d="M43.82,37.7l6.75,2.83,6.61-2.83-6.7,7.19Zm-9.9-4.31,6.73,2.76L50.49,46.7l9.84-10.62,6.75-2.64-1.25,2.25L62.36,47.46l-8.74,6.17L57,48l2.64-1.84,1.91-6.95-2.42,2.52L50.49,56.32,42,41.83,39.4,39.24l2,6.92,2.7,1.91,3.15,5.46-8.74-6.12L35.17,35.76Zm3.24.54,3.89,1.51,9.52-4.77L60,35.47l3.8-1.57-2.67-.76-10.64-5.3L39.89,33.16Z" />
|
|
545
|
+
<path class="cls-2" d="M77.85,62.3h3.06c1.42,1,2.34,3.17,3.28,4.71,1,1.71,2.06,3.41,3,5.14A2.75,2.75,0,0,0,88.5,70V60.57H86V65c-.71-.52-2.42-4.39-3.06-4.39H79.72c-.41,0-1.65,1.4-1.87,1.73M12.5,59.9c5,0,4.3-.19,6,3.28A70.25,70.25,0,0,1,21.15,70h.24l4.42-9.44H23.55c-.62,0-1.54,3.11-2.27,3.59a26.83,26.83,0,0,0-1.15-3.23c-.27-.59-.79-3-1.37-3H14.63C14.22,57.91,12.73,59.56,12.5,59.9Zm11.18,0h2.53V70.29h3.33V57.91H25.28C24.91,57.91,23.91,59.56,23.68,59.9Zm32.21,7.19c0,2.1.63,3.7,1.86,4.53a14,14,0,0,0,2-3.73V60.57H55.89ZM13,69.09c0,1.26.79,2.81,1.73,3.06.22-.93,1.6-2.18,1.6-3.06V60.57H13ZM63.08,62v6c0,1.91.45,3,1.6,3.73a16.75,16.75,0,0,0,1.46-3.19v-8H64.28C63.91,60.57,63.08,61.76,63.08,62ZM50.82,59.89A4.29,4.29,0,0,0,52.16,61h1.2c.45,0,.86-.76,1.07-1.07l8.72.06,1.53-2.05L52.36,58Zm27.43,10.8h2.8v-8h-2.8ZM30.58,62.15h7.76l.58.48,1.66-2-8.72,0Zm9.83,0c1.81,0,7.53-.63,8.22.62l1.8-2.18-8.75,0Zm-8.74.57-.14,7.59,7.86-.14,1.06-1.59h-6v-2.4l3.39,0L39,64.56H34.46V62.7Zm9.85,0-.14,7.59,7.86-.14,1.06-1.59h-6v-2.4h3.06c.37,0,1.24-1.25,1.33-1.6H44.31V62.7Zm26.08-.4h5.59a1,1,0,0,1,.8.8V69H71.06a1.35,1.35,0,0,1-.93-.94V62.83H67.6v6c0,.25,1.23,1.73,1.6,1.73h7.45V62a3.18,3.18,0,0,0-1.46-1.46H67.6Z" />
|
|
546
|
+
</svg>
|
|
547
|
+
`,Mg=J`
|
|
548
|
+
<svg width="45" height="45" viewBox="0 0 45 45" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
549
|
+
<rect width="45" height="45" fill="#221F21" />
|
|
550
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M12 11V33.6446H34V11L23.0206 22.0098L12 11ZM13.7476 15.1712V31.3099L21.7736 23.26L13.7476 15.1701V15.1712ZM32.2535 15.1712L24.2687 23.2611L32.2535 31.3099V15.1701V15.1712ZM23.8938 25.3456V31.8938H30.3814L23.8938 25.3456ZM22.1474 25.3456V31.8938H15.6186L22.1474 25.3456ZM23.0206 13.1268C23.5232 13.1264 24.0145 13.2755 24.432 13.5553C24.8495 13.8351 25.1744 14.2327 25.3651 14.6977C25.556 15.1626 25.6056 15.6735 25.5077 16.1664C25.4098 16.6593 25.1688 17.1125 24.8147 17.4691C24.46 17.8249 24.0075 18.0673 23.5147 18.1654C23.022 18.2636 22.5111 18.2131 22.0471 18.0204C21.5831 17.8277 21.1868 17.5014 20.9086 17.083C20.6303 16.6647 20.4826 16.1731 20.4843 15.6706C20.4843 14.9957 20.7519 14.3489 21.2275 13.8722C21.4626 13.636 21.742 13.4486 22.0497 13.3207C22.3574 13.1927 22.6874 13.1268 23.0206 13.1268Z" fill="#F5C443" />
|
|
551
|
+
</svg>
|
|
552
|
+
`,qt,le,$e,ke,fo,Qu,mo,tf,go,ef,yo,rf,vo,nf,bo,sf,uo=class extends Xa(lt){constructor(){super();q(this,qt);q(this,fo);q(this,mo);q(this,go);q(this,yo);q(this,vo);q(this,bo);q(this,$e,new Zs(this,{apiURL:su,queryExtra:()=>({widgetId:this.widgetId}),onReconnect:()=>{},onError:r=>{console.error("ws error",r),Oe("ShopAssistant: error",{widgetId:this.widgetId,error:"websocket onError"})},onClose:()=>{},onNewMessage:r=>{r.role==="assistant"&&Oe("ShopAssistant: user received bot message (streaming started)",{widgetId:this.widgetId,message:r})},onUpdateMessage:r=>{},onMessageDone:r=>{let i={...$(this,$e)?.messages.find(n=>n.id===r.message?.id)};Object.assign(i,r.message),i.role==="assistant"&&Oe("ShopAssistant: user received bot message (streaming ended)",{widgetId:this.widgetId,text:i.content??"",message:i,usage_TOKENS_COMPLETION:r.message.usage.TOKENS_COMPLETION})},onMessageError:r=>{console.error("ws error",r),r.message&&$(this,ke)&&alert(r.message),Oe("ShopAssistant: error",{widgetId:this.widgetId,error:"websocket ERROR message type: "+r.message})}}));q(this,ke,!1);this.widgetId="",this.demo=!1}render(){return console.assert(this.widgetId,"widget id is required"),J`
|
|
553
|
+
<mw-widget-toggle class="fixed bottom-3 right-2 z-50 sm:bottom-6 sm:right-5" @click=${nt(this,go,ef)} ?dialog-shown="${$(this,ke)}" ?demo="${this.demo}"></mw-widget-toggle>
|
|
504
554
|
|
|
505
|
-
<div id="dialog" class="${$(this,
|
|
555
|
+
<div id="dialog" class="${$(this,ke)?"visible opacity-100 translate-y-0":"invisible opacity-0 translate-y-3"} fixed bottom-0 left-0 right-0 top-0 z-[99999] overflow-hidden bg-white font-sans text-[16px] text-gray-800 shadow-2xl transition-all sm:bottom-24 sm:left-auto sm:right-5 sm:top-auto sm:h-4/5 sm:max-h-[800px] sm:w-5/6 sm:max-w-[420px] sm:rounded-2xl">
|
|
506
556
|
<div class="mx-auto flex h-full w-full max-w-4xl flex-col">
|
|
507
557
|
<div class="z-10 flex items-center justify-between space-x-4 border-b p-4">
|
|
508
558
|
<m-pulse-dot position="bottom-right" color="green-500">
|
|
509
|
-
<svg-full-size class="h-10 w-10 overflow-hidden rounded">${
|
|
559
|
+
<svg-full-size class="h-10 w-10 overflow-hidden rounded">${$(this,qt,le).logoSvg}</svg-full-size>
|
|
510
560
|
</m-pulse-dot>
|
|
511
561
|
|
|
512
562
|
<div class="flex flex-grow flex-col items-start justify-center space-y-0.5">
|
|
513
|
-
<h1 class="font-semibold text-gray-800"
|
|
563
|
+
<h1 class="font-semibold text-gray-800">${$(this,qt,le).title}</h1>
|
|
514
564
|
<!--<p class="text-sm text-gray-600"><code class="rounded bg-gray-500 px-[2px] text-xs text-white">AI</code> Bot</p>-->
|
|
515
|
-
<p class="text-sm text-green-500"
|
|
565
|
+
<p class="text-sm text-green-500">${$(this,qt,le).status}</p>
|
|
516
566
|
</div>
|
|
517
567
|
|
|
518
568
|
<div class="flex-grow"></div>
|
|
519
569
|
|
|
520
|
-
<button @click=${
|
|
570
|
+
<button @click=${nt(this,yo,rf)} class="inline-flex items-center justify-center rounded-lg bg-gray-100 p-3 text-gray-400 sm:hidden">
|
|
521
571
|
<!-- -->
|
|
522
572
|
<span class="inline-block h-6 w-6 leading-6">✕</span>
|
|
523
573
|
</button>
|
|
@@ -527,31 +577,29 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
527
577
|
<div class="flex h-full flex-shrink flex-grow flex-col-reverse overflow-auto bg-[#FDFDFD] pt-4">
|
|
528
578
|
<!-- this is the 2nd (inner) div that will natively scroll to bottom -->
|
|
529
579
|
<div class="">
|
|
530
|
-
${
|
|
531
|
-
<mw-chat-message class="mx-4 mb-4 block" user-bubble-color="[
|
|
580
|
+
${qs($(this,$e)?.messages??[],r=>r.id,r=>J`
|
|
581
|
+
<mw-chat-message class="mx-4 mb-4 block" user-bubble-color="[${$(this,qt,le).color}]" .bot-pic-svg="${$(this,qt,le).logoSvg}" widget-id="${this.widgetId}" role="${r.role}" @click="${nt(this,fo,Qu)}">
|
|
532
582
|
<div class="prose break-words text-inherit">
|
|
533
|
-
${r.content==="\xB7 \xB7 \xB7"?
|
|
583
|
+
${r.content==="\xB7 \xB7 \xB7"?J`<pure-svg-loader class="-mx-2 block h-8 max-h-[24px] w-8 fill-[${$(this,qt,le).color}] text-gray-400" variant="three_dot_fade"></pure-svg-loader>`:r.content_html?ru(r.content_html):J`<p>${r.content}</p>`}
|
|
534
584
|
</div>
|
|
535
585
|
</mw-chat-message>
|
|
536
586
|
`)}
|
|
537
587
|
</div>
|
|
538
588
|
|
|
539
589
|
<!-- chat background text -->
|
|
540
|
-
${$(this
|
|
590
|
+
${($(this,$e)?.messages??[]).length===0?J`
|
|
541
591
|
<div class="mx-auto flex max-w-sm flex-grow flex-col items-stretch justify-center space-y-8 px-4">
|
|
542
592
|
<div class="text-gray-500">
|
|
543
|
-
<p class="text-center text-lg font-medium"
|
|
593
|
+
<p class="text-center text-lg font-medium">${$(this,qt,le).limitations.title}</p>
|
|
544
594
|
<ul class="prose mt-2 text-left text-gray-400">
|
|
545
|
-
|
|
595
|
+
${qs($(this,qt,le).limitations.items,r=>r,r=>J`<li class="w-full rounded-lg bg-gray-100 px-4 py-3 text-sm">${r}</li>`)}
|
|
546
596
|
</ul>
|
|
547
597
|
</div>
|
|
548
598
|
|
|
549
599
|
<div class="text-gray-500">
|
|
550
|
-
<p class="text-center text-lg font-medium"
|
|
600
|
+
<p class="text-center text-lg font-medium">${$(this,qt,le).examples.title}</p>
|
|
551
601
|
<ul class="prose mt-2 text-left text-gray-400">
|
|
552
|
-
|
|
553
|
-
<li class="w-full rounded-lg bg-gray-100 px-4 py-3 text-sm transition-colors hover:cursor-pointer hover:bg-gray-50" @click="${()=>rt(this,fi,po).call(this,"Mennyibe ker\xFCl a zs\xE1kos beton?")}">“Mennyibe kerül a zsákos beton?” →</li>
|
|
554
|
-
<li class="w-full rounded-lg bg-gray-100 px-4 py-3 text-sm transition-colors hover:cursor-pointer hover:bg-gray-50" @click="${()=>rt(this,fi,po).call(this,"Hol tal\xE1lhat\xF3k \xFCzletek?")}">“Hol találhatók üzletek?” →</li>
|
|
602
|
+
${qs($(this,qt,le).examples.items,r=>r,r=>J`<li class="w-full rounded-lg bg-gray-100 px-4 py-3 text-sm transition-colors hover:cursor-pointer hover:bg-gray-50" @click="${()=>nt(this,mo,tf).call(this,r)}">“${r}” →</li>`)}
|
|
555
603
|
</ul>
|
|
556
604
|
</div>
|
|
557
605
|
|
|
@@ -562,7 +610,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
562
610
|
</div>
|
|
563
611
|
|
|
564
612
|
<div class="flex-shrink-0 flex-grow-0 pb-2">
|
|
565
|
-
<mw-chat-input @mw-submit="${
|
|
613
|
+
<mw-chat-input @mw-submit="${nt(this,vo,nf)}" @mw-cancel="${nt(this,bo,sf)}" ?disabled="${$(this,$e)?.isStreaming??!0}" placeholder="${$(this,qt,le).inputPlaceholder}" button-color="[${$(this,qt,le).color}]"></mw-chat-input>
|
|
566
614
|
<p class="mt-2 flex items-center justify-center space-x-1 text-xs text-gray-400">
|
|
567
615
|
<span class="pointer-events-none">Powered by</span>
|
|
568
616
|
<a class="inline-flex items-center space-x-1 text-gray-600 underline" href="https://molin.ai/" target="_blank">
|
|
@@ -573,7 +621,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
573
621
|
</div>
|
|
574
622
|
</div>
|
|
575
623
|
</div>
|
|
576
|
-
`}};
|
|
624
|
+
`}};qt=new WeakSet,le=function(){switch(this.widgetId){case"meetion1":return{title:"Meetion AI",logoSvg:Tg,status:"Online",inputPlaceholder:"Scrie un mesaj...",color:"#E9550E",limitations:{title:"Limit\u0103ri",items:["AI-ul poate s\u0103 r\u0103spund\u0103 cu informa\u021Bii gre\u0219ite."]},examples:{title:"Exemple",items:["C\xE2t cost\u0103 un scaun ergonomic?","\xCEn c\xE2t timp ajung produsele?","Cum pot returna o comand\u0103?"]}};case"layher1":return{title:"Layher AI",logoSvg:Mg,status:"El\xE9rhet\u0151",inputPlaceholder:"\xCDrj nek\xFCnk...",color:"#F5C443",limitations:{title:"Korl\xE1toz\xE1sok",items:["Az AI kital\xE1lhat val\xF3tlan \xE1ll\xEDt\xE1sokat, ez\xE9rt nem v\xE1llalunk felel\u0151ss\xE9get a v\xE1laszok pontoss\xE1g\xE1\xE9rt vagy megb\xEDzhat\xF3s\xE1g\xE1\xE9rt."]},examples:{title:"P\xE9ld\xE1k",items:["Milyen gipszkartonokat forgalmaznak?","Mennyibe ker\xFCl a zs\xE1kos beton?","Hol tal\xE1lhat\xF3k \xFCzletek?"]}};default:return{title:"HUFBAU AI",logoSvg:Cg,status:"El\xE9rhet\u0151",inputPlaceholder:"\xCDrj nek\xFCnk...",color:"#F39200",limitations:{title:"Korl\xE1toz\xE1sok",items:["Az AI kital\xE1lhat val\xF3tlan \xE1ll\xEDt\xE1sokat, ez\xE9rt nem v\xE1llalunk felel\u0151ss\xE9get a v\xE1laszok pontoss\xE1g\xE1\xE9rt vagy megb\xEDzhat\xF3s\xE1g\xE1\xE9rt."]},examples:{title:"P\xE9ld\xE1k",items:["Milyen gipszkartonokat forgalmaznak?","Mennyibe ker\xFCl a zs\xE1kos beton?","Hol tal\xE1lhat\xF3k \xFCzletek?"]}}}},$e=new WeakMap,ke=new WeakMap,fo=new WeakSet,Qu=function(r){let i=r.target;i&&i instanceof HTMLAnchorElement&&i.tagName==="A"&&Oe("ShopAssistant: user clicked link",{widgetId:this.widgetId,url:i.href})},mo=new WeakSet,tf=function(r){$(this,$e)?.sendUserInput(r),Oe("ShopAssistant: user sent input",{widgetId:this.widgetId,text:r,example:!0})},go=new WeakSet,ef=function(){ft(this,ke,!$(this,ke)),this.requestUpdate(),Oe("ShopAssistant: user toggled window",{widgetId:this.widgetId,source:"bubble-toggle",state:$(this,ke)?"open":"close"})},yo=new WeakSet,rf=function(){ft(this,ke,!1),this.requestUpdate(),Oe("ShopAssistant: user toggled window",{widgetId:this.widgetId,source:"top-right-close-button",state:$(this,ke)?"open":"close"})},vo=new WeakSet,nf=function(r){let i=r.detail.value;$(this,$e)?.sendUserInput(i),Oe("ShopAssistant: user sent input",{widgetId:this.widgetId,text:i,example:!1})},bo=new WeakSet,sf=function(r){$(this,$e)?.sendUserCancel(),Oe("ShopAssistant: user canceled streaming",{widgetId:this.widgetId})},X(uo,"properties",{widgetId:{type:String,attribute:"widget"},demo:{type:Boolean,attribute:"demo"}});customElements.define("molin-shop-ai",uo);function Fg(t){return t.replace(/[^A-Za-z0-9_-]/gi,"")}function Dg({widgetId:t}={widgetId:""}){if(!t)throw new Error("widgetId is required");t=Fg(t);let e=`<molin-shop-ai widget="${t}"></molin-shop-ai>`;document.body.insertAdjacentHTML("beforeend",e)}window.__INIT_MOLIN_SHOP_AI=Dg;
|
|
577
625
|
/*! Bundled license information:
|
|
578
626
|
|
|
579
627
|
@lit/reactive-element/css-tag.js:
|