@oniratec/onira-react-ui 1.0.3 → 1.0.5

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/index.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const jsxRuntime=require("react/jsx-runtime"),React=require("react"),lucideReact=require("lucide-react"),clsx=require("clsx"),tailwindMerge=require("tailwind-merge"),SelectPrimitive=require("@radix-ui/react-select"),DropdownMenuPrimitive=require("@radix-ui/react-dropdown-menu"),TooltipPrimitive=require("@radix-ui/react-tooltip");function _interopNamespaceDefault(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const React__namespace=_interopNamespaceDefault(React),SelectPrimitive__namespace=_interopNamespaceDefault(SelectPrimitive),DropdownMenuPrimitive__namespace=_interopNamespaceDefault(DropdownMenuPrimitive),TooltipPrimitive__namespace=_interopNamespaceDefault(TooltipPrimitive),m=e=>{let t=0;for(let r=0;r<e.length;r++){const i=e.charCodeAt(r);t=(t<<5)-t+i,t=t&t}return Math.abs(t)},C=(e,t)=>Math.floor(e/Math.pow(10,t)%10),v=(e,t)=>!(C(e,t)%2),f=(e,t,r)=>{const i=e%t;return r&&C(e,r)%2===0?-i:i},u=(e,t,r)=>t[e%r],_=e=>{e.slice(0,1)==="#"&&(e=e.slice(1));const t=parseInt(e.substr(0,2),16),r=parseInt(e.substr(2,2),16),i=parseInt(e.substr(4,2),16);return(t*299+r*587+i*114)/1e3>=128?"#000000":"#FFFFFF"},A=4,o=80;function $(e,t){const r=m(e),i=t&&t.length;return Array.from({length:A},(s,n)=>({color:u(r+n,t,i),translateX:f(r*(n+1),o/2-(n+17),1),translateY:f(r*(n+1),o/2-(n+17),2),rotate:f(r*(n+1),360),isSquare:v(r,2)}))}const k=({name:e,colors:t,title:r,square:i,size:s,...n})=>{const a=$(e,t),l=React__namespace.useId();return jsxRuntime.jsxs("svg",{viewBox:"0 0 "+o+" "+o,fill:"none",role:"img",xmlns:"http://www.w3.org/2000/svg",width:s,height:s,...n,children:[r&&jsxRuntime.jsx("title",{children:e}),jsxRuntime.jsx("mask",{id:l,maskUnits:"userSpaceOnUse",x:0,y:0,width:o,height:o,children:jsxRuntime.jsx("rect",{width:o,height:o,rx:i?void 0:o*2,fill:"#FFFFFF"})}),jsxRuntime.jsxs("g",{mask:`url(#${l})`,children:[jsxRuntime.jsx("rect",{width:o,height:o,fill:a[0].color}),jsxRuntime.jsx("rect",{x:(o-60)/2,y:(o-20)/2,width:o,height:a[1].isSquare?o:o/8,fill:a[1].color,transform:"translate("+a[1].translateX+" "+a[1].translateY+") rotate("+a[1].rotate+" "+o/2+" "+o/2+")"}),jsxRuntime.jsx("circle",{cx:o/2,cy:o/2,fill:a[2].color,r:o/5,transform:"translate("+a[2].translateX+" "+a[2].translateY+")"}),jsxRuntime.jsx("line",{x1:0,y1:o/2,x2:o,y2:o/2,strokeWidth:2,stroke:a[3].color,transform:"translate("+a[3].translateX+" "+a[3].translateY+") rotate("+a[3].rotate+" "+o/2+" "+o/2+")"})]})]})},p=90,B=5;function U(e,t){const r=m(e),i=t&&t.length,s=Array.from({length:B},(a,l)=>u(r+l,t,i)),n=[];return n[0]=s[0],n[1]=s[1],n[2]=s[1],n[3]=s[2],n[4]=s[2],n[5]=s[3],n[6]=s[3],n[7]=s[0],n[8]=s[4],n}const E=({name:e,colors:t,title:r,square:i,size:s,...n})=>{const a=U(e,t),l=React.useId();return jsxRuntime.jsxs("svg",{viewBox:"0 0 "+p+" "+p,fill:"none",role:"img",xmlns:"http://www.w3.org/2000/svg",width:s,height:s,...n,children:[r&&jsxRuntime.jsx("title",{children:e}),jsxRuntime.jsx("mask",{id:l,maskUnits:"userSpaceOnUse",x:0,y:0,width:p,height:p,children:jsxRuntime.jsx("rect",{width:p,height:p,rx:i?void 0:p*2,fill:"#FFFFFF"})}),jsxRuntime.jsxs("g",{mask:`url(#${l})`,children:[jsxRuntime.jsx("path",{d:"M0 0h90v45H0z",fill:a[0]}),jsxRuntime.jsx("path",{d:"M0 45h90v45H0z",fill:a[1]}),jsxRuntime.jsx("path",{d:"M83 45a38 38 0 00-76 0h76z",fill:a[2]}),jsxRuntime.jsx("path",{d:"M83 45a38 38 0 01-76 0h76z",fill:a[3]}),jsxRuntime.jsx("path",{d:"M77 45a32 32 0 10-64 0h64z",fill:a[4]}),jsxRuntime.jsx("path",{d:"M77 45a32 32 0 11-64 0h64z",fill:a[5]}),jsxRuntime.jsx("path",{d:"M71 45a26 26 0 00-52 0h52z",fill:a[6]}),jsxRuntime.jsx("path",{d:"M71 45a26 26 0 01-52 0h52z",fill:a[7]}),jsxRuntime.jsx("circle",{cx:45,cy:45,r:23,fill:a[8]})]})]})},L=64,x=80;function T(e,t){const r=m(e),i=t&&t.length;return Array.from({length:L},(s,n)=>u(r%(n+1),t,i))}const O=({name:e,colors:t,title:r,square:i,size:s,...n})=>{const a=T(e,t),l=React__namespace.useId();return jsxRuntime.jsxs("svg",{viewBox:"0 0 "+x+" "+x,fill:"none",role:"img",xmlns:"http://www.w3.org/2000/svg",width:s,height:s,...n,children:[r&&jsxRuntime.jsx("title",{children:e}),jsxRuntime.jsx("mask",{id:l,"mask-type":"alpha",maskUnits:"userSpaceOnUse",x:0,y:0,width:x,height:x,children:jsxRuntime.jsx("rect",{width:x,height:x,rx:i?void 0:x*2,fill:"#FFFFFF"})}),jsxRuntime.jsxs("g",{mask:`url(#${l})`,children:[jsxRuntime.jsx("rect",{width:10,height:10,fill:a[0]}),jsxRuntime.jsx("rect",{x:20,width:10,height:10,fill:a[1]}),jsxRuntime.jsx("rect",{x:40,width:10,height:10,fill:a[2]}),jsxRuntime.jsx("rect",{x:60,width:10,height:10,fill:a[3]}),jsxRuntime.jsx("rect",{x:10,width:10,height:10,fill:a[4]}),jsxRuntime.jsx("rect",{x:30,width:10,height:10,fill:a[5]}),jsxRuntime.jsx("rect",{x:50,width:10,height:10,fill:a[6]}),jsxRuntime.jsx("rect",{x:70,width:10,height:10,fill:a[7]}),jsxRuntime.jsx("rect",{y:10,width:10,height:10,fill:a[8]}),jsxRuntime.jsx("rect",{y:20,width:10,height:10,fill:a[9]}),jsxRuntime.jsx("rect",{y:30,width:10,height:10,fill:a[10]}),jsxRuntime.jsx("rect",{y:40,width:10,height:10,fill:a[11]}),jsxRuntime.jsx("rect",{y:50,width:10,height:10,fill:a[12]}),jsxRuntime.jsx("rect",{y:60,width:10,height:10,fill:a[13]}),jsxRuntime.jsx("rect",{y:70,width:10,height:10,fill:a[14]}),jsxRuntime.jsx("rect",{x:20,y:10,width:10,height:10,fill:a[15]}),jsxRuntime.jsx("rect",{x:20,y:20,width:10,height:10,fill:a[16]}),jsxRuntime.jsx("rect",{x:20,y:30,width:10,height:10,fill:a[17]}),jsxRuntime.jsx("rect",{x:20,y:40,width:10,height:10,fill:a[18]}),jsxRuntime.jsx("rect",{x:20,y:50,width:10,height:10,fill:a[19]}),jsxRuntime.jsx("rect",{x:20,y:60,width:10,height:10,fill:a[20]}),jsxRuntime.jsx("rect",{x:20,y:70,width:10,height:10,fill:a[21]}),jsxRuntime.jsx("rect",{x:40,y:10,width:10,height:10,fill:a[22]}),jsxRuntime.jsx("rect",{x:40,y:20,width:10,height:10,fill:a[23]}),jsxRuntime.jsx("rect",{x:40,y:30,width:10,height:10,fill:a[24]}),jsxRuntime.jsx("rect",{x:40,y:40,width:10,height:10,fill:a[25]}),jsxRuntime.jsx("rect",{x:40,y:50,width:10,height:10,fill:a[26]}),jsxRuntime.jsx("rect",{x:40,y:60,width:10,height:10,fill:a[27]}),jsxRuntime.jsx("rect",{x:40,y:70,width:10,height:10,fill:a[28]}),jsxRuntime.jsx("rect",{x:60,y:10,width:10,height:10,fill:a[29]}),jsxRuntime.jsx("rect",{x:60,y:20,width:10,height:10,fill:a[30]}),jsxRuntime.jsx("rect",{x:60,y:30,width:10,height:10,fill:a[31]}),jsxRuntime.jsx("rect",{x:60,y:40,width:10,height:10,fill:a[32]}),jsxRuntime.jsx("rect",{x:60,y:50,width:10,height:10,fill:a[33]}),jsxRuntime.jsx("rect",{x:60,y:60,width:10,height:10,fill:a[34]}),jsxRuntime.jsx("rect",{x:60,y:70,width:10,height:10,fill:a[35]}),jsxRuntime.jsx("rect",{x:10,y:10,width:10,height:10,fill:a[36]}),jsxRuntime.jsx("rect",{x:10,y:20,width:10,height:10,fill:a[37]}),jsxRuntime.jsx("rect",{x:10,y:30,width:10,height:10,fill:a[38]}),jsxRuntime.jsx("rect",{x:10,y:40,width:10,height:10,fill:a[39]}),jsxRuntime.jsx("rect",{x:10,y:50,width:10,height:10,fill:a[40]}),jsxRuntime.jsx("rect",{x:10,y:60,width:10,height:10,fill:a[41]}),jsxRuntime.jsx("rect",{x:10,y:70,width:10,height:10,fill:a[42]}),jsxRuntime.jsx("rect",{x:30,y:10,width:10,height:10,fill:a[43]}),jsxRuntime.jsx("rect",{x:30,y:20,width:10,height:10,fill:a[44]}),jsxRuntime.jsx("rect",{x:30,y:30,width:10,height:10,fill:a[45]}),jsxRuntime.jsx("rect",{x:30,y:40,width:10,height:10,fill:a[46]}),jsxRuntime.jsx("rect",{x:30,y:50,width:10,height:10,fill:a[47]}),jsxRuntime.jsx("rect",{x:30,y:60,width:10,height:10,fill:a[48]}),jsxRuntime.jsx("rect",{x:30,y:70,width:10,height:10,fill:a[49]}),jsxRuntime.jsx("rect",{x:50,y:10,width:10,height:10,fill:a[50]}),jsxRuntime.jsx("rect",{x:50,y:20,width:10,height:10,fill:a[51]}),jsxRuntime.jsx("rect",{x:50,y:30,width:10,height:10,fill:a[52]}),jsxRuntime.jsx("rect",{x:50,y:40,width:10,height:10,fill:a[53]}),jsxRuntime.jsx("rect",{x:50,y:50,width:10,height:10,fill:a[54]}),jsxRuntime.jsx("rect",{x:50,y:60,width:10,height:10,fill:a[55]}),jsxRuntime.jsx("rect",{x:50,y:70,width:10,height:10,fill:a[56]}),jsxRuntime.jsx("rect",{x:70,y:10,width:10,height:10,fill:a[57]}),jsxRuntime.jsx("rect",{x:70,y:20,width:10,height:10,fill:a[58]}),jsxRuntime.jsx("rect",{x:70,y:30,width:10,height:10,fill:a[59]}),jsxRuntime.jsx("rect",{x:70,y:40,width:10,height:10,fill:a[60]}),jsxRuntime.jsx("rect",{x:70,y:50,width:10,height:10,fill:a[61]}),jsxRuntime.jsx("rect",{x:70,y:60,width:10,height:10,fill:a[62]}),jsxRuntime.jsx("rect",{x:70,y:70,width:10,height:10,fill:a[63]})]})]})},c=36;function b(e,t){const r=m(e),i=t&&t.length,s=u(r,t,i),n=f(r,10,1),a=n<5?n+c/9:n,l=f(r,10,2),h=l<5?l+c/9:l;return{wrapperColor:s,faceColor:_(s),backgroundColor:u(r+13,t,i),wrapperTranslateX:a,wrapperTranslateY:h,wrapperRotate:f(r,360),wrapperScale:1+f(r,c/12)/10,isMouthOpen:v(r,2),isCircle:v(r,1),eyeSpread:f(r,5),mouthSpread:f(r,3),faceRotate:f(r,10,3),faceTranslateX:a>c/6?a/2:f(r,8,1),faceTranslateY:h>c/6?h/2:f(r,7,2)}}const S=({name:e,colors:t,title:r,square:i,size:s,...n})=>{const a=b(e,t),l=React__namespace.useId();return jsxRuntime.jsxs("svg",{viewBox:"0 0 "+c+" "+c,fill:"none",role:"img",xmlns:"http://www.w3.org/2000/svg",width:s,height:s,...n,children:[r&&jsxRuntime.jsx("title",{children:e}),jsxRuntime.jsx("mask",{id:l,maskUnits:"userSpaceOnUse",x:0,y:0,width:c,height:c,children:jsxRuntime.jsx("rect",{width:c,height:c,rx:i?void 0:c*2,fill:"#FFFFFF"})}),jsxRuntime.jsxs("g",{mask:`url(#${l})`,children:[jsxRuntime.jsx("rect",{width:c,height:c,fill:a.backgroundColor}),jsxRuntime.jsx("rect",{x:"0",y:"0",width:c,height:c,transform:"translate("+a.wrapperTranslateX+" "+a.wrapperTranslateY+") rotate("+a.wrapperRotate+" "+c/2+" "+c/2+") scale("+a.wrapperScale+")",fill:a.wrapperColor,rx:a.isCircle?c:c/6}),jsxRuntime.jsxs("g",{transform:"translate("+a.faceTranslateX+" "+a.faceTranslateY+") rotate("+a.faceRotate+" "+c/2+" "+c/2+")",children:[a.isMouthOpen?jsxRuntime.jsx("path",{d:"M15 "+(19+a.mouthSpread)+"c2 1 4 1 6 0",stroke:a.faceColor,fill:"none",strokeLinecap:"round"}):jsxRuntime.jsx("path",{d:"M13,"+(19+a.mouthSpread)+" a1,0.75 0 0,0 10,0",fill:a.faceColor}),jsxRuntime.jsx("rect",{x:14-a.eyeSpread,y:14,width:1.5,height:2,rx:1,stroke:"none",fill:a.faceColor}),jsxRuntime.jsx("rect",{x:20+a.eyeSpread,y:14,width:1.5,height:2,rx:1,stroke:"none",fill:a.faceColor})]})]})]})},R=4,w=80;function X(e,t){const r=m(e),i=t&&t.length;return Array.from({length:R},(s,n)=>u(r+n,t,i))}const Y=({name:e,colors:t,title:r,square:i,size:s,...n})=>{const a=X(e,t),l=e.replace(/\s/g,""),h=React__namespace.useId();return jsxRuntime.jsxs("svg",{viewBox:"0 0 "+w+" "+w,fill:"none",role:"img",xmlns:"http://www.w3.org/2000/svg",width:s,height:s,...n,children:[r&&jsxRuntime.jsx("title",{children:e}),jsxRuntime.jsx("mask",{id:h,maskUnits:"userSpaceOnUse",x:0,y:0,width:w,height:w,children:jsxRuntime.jsx("rect",{width:w,height:w,rx:i?void 0:w*2,fill:"#FFFFFF"})}),jsxRuntime.jsxs("g",{mask:`url(#${h})`,children:[jsxRuntime.jsx("path",{fill:"url(#gradient_paint0_linear_"+l+")",d:"M0 0h80v40H0z"}),jsxRuntime.jsx("path",{fill:"url(#gradient_paint1_linear_"+l+")",d:"M0 40h80v40H0z"})]}),jsxRuntime.jsxs("defs",{children:[jsxRuntime.jsxs("linearGradient",{id:"gradient_paint0_linear_"+l,x1:w/2,y1:0,x2:w/2,y2:w/2,gradientUnits:"userSpaceOnUse",children:[jsxRuntime.jsx("stop",{stopColor:a[0]}),jsxRuntime.jsx("stop",{offset:1,stopColor:a[1]})]}),jsxRuntime.jsxs("linearGradient",{id:"gradient_paint1_linear_"+l,x1:w/2,y1:w/2,x2:w/2,y2:w,gradientUnits:"userSpaceOnUse",children:[jsxRuntime.jsx("stop",{stopColor:a[2]}),jsxRuntime.jsx("stop",{offset:1,stopColor:a[3]})]})]})]})},D=3,g=80;function N(e,t){const r=m(e),i=t&&t.length;return Array.from({length:D},(s,n)=>({color:u(r+n,t,i),translateX:f(r*(n+1),g/10,1),translateY:f(r*(n+1),g/10,2),scale:1.2+f(r*(n+1),g/20)/10,rotate:f(r*(n+1),360,1)}))}const I=({name:e,colors:t,title:r,square:i,size:s,...n})=>{const a=N(e,t),l=React__namespace.useId();return jsxRuntime.jsxs("svg",{viewBox:"0 0 "+g+" "+g,fill:"none",role:"img",xmlns:"http://www.w3.org/2000/svg",width:s,height:s,...n,children:[r&&jsxRuntime.jsx("title",{children:e}),jsxRuntime.jsx("mask",{id:l,maskUnits:"userSpaceOnUse",x:0,y:0,width:g,height:g,children:jsxRuntime.jsx("rect",{width:g,height:g,rx:i?void 0:g*2,fill:"#FFFFFF"})}),jsxRuntime.jsxs("g",{mask:`url(#${l})`,children:[jsxRuntime.jsx("rect",{width:g,height:g,fill:a[0].color}),jsxRuntime.jsx("path",{filter:`url(#filter_${l})`,d:"M32.414 59.35L50.376 70.5H72.5v-71H33.728L26.5 13.381l19.057 27.08L32.414 59.35z",fill:a[1].color,transform:"translate("+a[1].translateX+" "+a[1].translateY+") rotate("+a[1].rotate+" "+g/2+" "+g/2+") scale("+a[2].scale+")"}),jsxRuntime.jsx("path",{filter:`url(#filter_${l})`,style:{mixBlendMode:"overlay"},d:"M22.216 24L0 46.75l14.108 38.129L78 86l-3.081-59.276-22.378 4.005 12.972 20.186-23.35 27.395L22.215 24z",fill:a[2].color,transform:"translate("+a[2].translateX+" "+a[2].translateY+") rotate("+a[2].rotate+" "+g/2+" "+g/2+") scale("+a[2].scale+")"})]}),jsxRuntime.jsx("defs",{children:jsxRuntime.jsxs("filter",{id:`filter_${l}`,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[jsxRuntime.jsx("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),jsxRuntime.jsx("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),jsxRuntime.jsx("feGaussianBlur",{stdDeviation:7,result:"effect1_foregroundBlur"})]})})]})},z={pixel:O,bauhaus:k,ring:E,beam:S,sunset:Y,marble:I,geometric:S,abstract:k},P=({variant:e="marble",colors:t=["#92A1C6","#146A7C","#F0AB3D","#C271B4","#C20D90"],name:r="Clara Barton",title:i=!1,size:s="40px",square:n=!1,...a})=>{const l=z[e]||I;return jsxRuntime.jsx(l,{colors:t,name:r,title:i,size:s,square:n,...a})},colors=["#148103","#ccfbd6ff","#334155"],PersonAvatar=({personId:e})=>jsxRuntime.jsx(P,{size:40,name:e,variant:"beam",colors}),ProfileAvatar=({userId:e})=>jsxRuntime.jsx(P,{size:40,name:e,variant:"bauhaus",colors}),Box=({children:e})=>jsxRuntime.jsx("div",{className:"w-75 rounded-lg bg-white p-4 shadow-xl",children:e});function setRef(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function composeRefs(...e){return t=>{let r=!1;const i=e.map(s=>{const n=setRef(s,t);return!r&&typeof n=="function"&&(r=!0),n});if(r)return()=>{for(let s=0;s<i.length;s++){const n=i[s];typeof n=="function"?n():setRef(e[s],null)}}}}function createSlot(e){const t=createSlotClone(e),r=React__namespace.forwardRef((i,s)=>{const{children:n,...a}=i,l=React__namespace.Children.toArray(n),h=l.find(isSlottable);if(h){const d=h.props.children,F=l.map(J=>J===h?React__namespace.Children.count(d)>1?React__namespace.Children.only(null):React__namespace.isValidElement(d)?d.props.children:null:J);return jsxRuntime.jsx(t,{...a,ref:s,children:React__namespace.isValidElement(d)?React__namespace.cloneElement(d,void 0,F):null})}return jsxRuntime.jsx(t,{...a,ref:s,children:n})});return r.displayName=`${e}.Slot`,r}var Slot=createSlot("Slot");function createSlotClone(e){const t=React__namespace.forwardRef((r,i)=>{const{children:s,...n}=r;if(React__namespace.isValidElement(s)){const a=getElementRef(s),l=mergeProps(n,s.props);return s.type!==React__namespace.Fragment&&(l.ref=i?composeRefs(i,a):a),React__namespace.cloneElement(s,l)}return React__namespace.Children.count(s)>1?React__namespace.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var SLOTTABLE_IDENTIFIER=Symbol("radix.slottable");function isSlottable(e){return React__namespace.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===SLOTTABLE_IDENTIFIER}function mergeProps(e,t){const r={...t};for(const i in t){const s=e[i],n=t[i];/^on[A-Z]/.test(i)?s&&n?r[i]=(...l)=>{const h=n(...l);return s(...l),h}:s&&(r[i]=s):i==="style"?r[i]={...s,...n}:i==="className"&&(r[i]=[s,n].filter(Boolean).join(" "))}return{...e,...r}}function getElementRef(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function cn(...e){return tailwindMerge.twMerge(clsx.clsx(e))}const Button=React__namespace.forwardRef(({className:e,asChild:t=!1,variant:r="primary",size:i="md",loading:s=!1,disabled:n,children:a,...l},h)=>{const d=t?Slot:"button";return jsxRuntime.jsxs(d,{ref:h,className:cn("oniratec-button",e),"data-variant":r,"data-size":i,disabled:n||s,...l,children:[s&&jsxRuntime.jsx(lucideReact.Loader2,{className:"oniratec-button__spinner"}),jsxRuntime.jsx("span",{className:"oniratec-button__content",children:a})]})});Button.displayName="Button";const Logo=({src:e,alt:t,width:r=70,height:i=70,className:s,ImageComponent:n,...a})=>{const l=n??"img";return jsxRuntime.jsx(l,{type:void 0,props:void 0,src:e,alt:t,width:r,height:i,className:cn("inline-block object-contain",s),...a},null)},Card=({children:e,className:t})=>jsxRuntime.jsx("div",{className:cn("rounded-xl bg-white p-6 shadow-sm ring-1 ring-gray-100 transition-shadow hover:shadow-md",t),children:e}),CardHeader=({children:e,className:t})=>jsxRuntime.jsx("div",{className:cn("mb-2",t),children:e}),CardTitle=({children:e,className:t})=>jsxRuntime.jsx("h3",{className:cn("text-sm font-medium text-gray-500",t),children:e}),CardContent=({children:e,className:t})=>jsxRuntime.jsx("div",{className:cn("text-2xl font-semibold",t),children:e}),DropdownMenu=DropdownMenuPrimitive__namespace.Root,DropdownMenuTrigger=DropdownMenuPrimitive__namespace.Trigger,DropdownMenuGroup=DropdownMenuPrimitive__namespace.Group,DropdownMenuPortal=DropdownMenuPrimitive__namespace.Portal,DropdownMenuSub=DropdownMenuPrimitive__namespace.Sub,DropdownMenuRadioGroup=DropdownMenuPrimitive__namespace.RadioGroup,DropdownMenuContent=React__namespace.forwardRef(({className:e,sideOffset:t=6,...r},i)=>jsxRuntime.jsx(DropdownMenuPrimitive__namespace.Portal,{children:jsxRuntime.jsx(DropdownMenuPrimitive__namespace.Content,{ref:i,sideOffset:t,className:cn("oniratec-dropdown",e),...r})}));DropdownMenuContent.displayName="DropdownMenuContent";const DropdownMenuItem=React__namespace.forwardRef(({className:e,inset:t,icon:r,children:i,...s},n)=>jsxRuntime.jsxs(DropdownMenuPrimitive__namespace.Item,{ref:n,className:cn("oniratec-dropdown__item",t&&"oniratec-dropdown__item--inset",e),...s,children:[r?jsxRuntime.jsx("span",{className:"oniratec-dropdown__icon",children:r}):jsxRuntime.jsx("span",{"aria-hidden":!0}),i]}));DropdownMenuItem.displayName="DropdownMenuItem";const DropdownMenuCheckboxItem=React__namespace.forwardRef(({className:e,children:t,...r},i)=>jsxRuntime.jsxs(DropdownMenuPrimitive__namespace.CheckboxItem,{ref:i,className:cn("oniratec-dropdown__item oniratec-dropdown__item--inset",e),...r,children:[jsxRuntime.jsx("span",{className:"oniratec-dropdown__indicator",children:jsxRuntime.jsx(DropdownMenuPrimitive__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})})}),t]}));DropdownMenuCheckboxItem.displayName="DropdownMenuCheckboxItem";const DropdownMenuRadioItem=React__namespace.forwardRef(({className:e,children:t,...r},i)=>jsxRuntime.jsxs(DropdownMenuPrimitive__namespace.RadioItem,{ref:i,className:cn("oniratec-dropdown__item oniratec-dropdown__item--inset",e),...r,children:[jsxRuntime.jsx("span",{className:"oniratec-dropdown__indicator",children:jsxRuntime.jsx(DropdownMenuPrimitive__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Circle,{className:"h-2 w-2 fill-current"})})}),t]}));DropdownMenuRadioItem.displayName="DropdownMenuRadioItem";const DropdownMenuLabel=React__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(DropdownMenuPrimitive__namespace.Label,{ref:r,className:cn("oniratec-dropdown__label",e),...t}));DropdownMenuLabel.displayName="DropdownMenuLabel";const DropdownMenuSeparator=React__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(DropdownMenuPrimitive__namespace.Separator,{ref:r,className:cn("oniratec-dropdown__separator",e),...t}));DropdownMenuSeparator.displayName="DropdownMenuSeparator";const DropdownMenuSubTrigger=React__namespace.forwardRef(({className:e,children:t,...r},i)=>jsxRuntime.jsxs(DropdownMenuPrimitive__namespace.SubTrigger,{ref:i,className:cn("oniratec-dropdown__item",e),...r,children:[t,jsxRuntime.jsx(lucideReact.ChevronRight,{className:"oniratec-dropdown__chevron"})]}));DropdownMenuSubTrigger.displayName="DropdownMenuSubTrigger";const DropdownMenuSubContent=React__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(DropdownMenuPrimitive__namespace.SubContent,{ref:r,className:cn("oniratec-dropdown",e),...t}));DropdownMenuSubContent.displayName="DropdownMenuSubContent";const FieldContext=React__namespace.createContext(null);function useField(){const e=React__namespace.useContext(FieldContext);if(!e)throw new Error("Field components must be used inside <Field>");return e}function Field({className:e,error:t,required:r,...i}){const s=React__namespace.useId();return jsxRuntime.jsx(FieldContext.Provider,{value:{id:s,error:t,required:r},children:jsxRuntime.jsx("div",{className:cn("oniratec-field",e),...i})})}const FieldControl=React.forwardRef((e,t)=>{const{id:r,error:i}=useField();return jsxRuntime.jsx(Slot,{ref:t,id:r,"aria-invalid":!!i,...e})});FieldControl.displayName="FieldControl";const FieldLabel=React__namespace.forwardRef(({className:e,children:t,...r},i)=>{const{id:s,required:n}=useField();return jsxRuntime.jsxs("label",{ref:i,htmlFor:s,className:cn("oniratec-field__label",e),...r,children:[t,n&&jsxRuntime.jsx("span",{className:"oniratec-field__required",children:"*"})]})});FieldLabel.displayName="FieldLabel";const FieldMessage=React__namespace.forwardRef(({className:e,children:t,...r},i)=>{const{error:s}=useField(),n=s??t;return n?jsxRuntime.jsx("p",{ref:i,className:cn("oniratec-field__message",e),...r,children:n}):null});FieldMessage.displayName="FieldMessage";const PasswordInput=React.forwardRef(({className:e,containerClassName:t,...r},i)=>{const[s,n]=React.useState(!1),a=()=>{n(l=>!l)};return jsxRuntime.jsxs("div",{className:cn("relative",t),children:[jsxRuntime.jsx("input",{ref:i,type:s?"text":"password",className:cn("flex h-10 w-full rounded-md border border-slate-300 bg-transparent px-3 py-2 text-sm text-slate-800 placeholder:text-slate-400 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50",e),...r}),jsxRuntime.jsx("button",{type:"button",className:cn("absolute top-1/2 right-3 -translate-y-1/2 transform"),onClick:a,children:s?jsxRuntime.jsx(lucideReact.EyeOff,{className:"h-5 w-5 text-slate-400"}):jsxRuntime.jsx(lucideReact.EyeIcon,{className:"h-5 w-5 text-slate-400"})})]})});PasswordInput.displayName="PasswordInput";const Input=React__namespace.forwardRef(({className:e,isInvalid:t,...r},i)=>jsxRuntime.jsx("input",{ref:i,"data-invalid":t?"true":void 0,className:cn("oniratec-input",e),...r}));Input.displayName="Input";function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var lottie$2={exports:{}},lottie$1=lottie$2.exports,hasRequiredLottie;function requireLottie(){return hasRequiredLottie||(hasRequiredLottie=1,(function(module,exports$1){typeof document<"u"&&typeof navigator<"u"&&(function(e,t){module.exports=t()})(lottie$1,(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(e){return document.createElement(e)}function extendPrototype(e,t){var r,i=e.length,s;for(r=0;r<i;r+=1){s=e[r].prototype;for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(t.prototype[n]=s[n])}}function getDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)}function createProxyFunction(e){function t(){}return t.prototype=e,t}var audioControllerFactory=(function(){function e(t){this.audios=[],this.audioFactory=t,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(r){this.audios.push(r)},pause:function(){var r,i=this.audios.length;for(r=0;r<i;r+=1)this.audios[r].pause()},resume:function(){var r,i=this.audios.length;for(r=0;r<i;r+=1)this.audios[r].resume()},setRate:function(r){var i,s=this.audios.length;for(i=0;i<s;i+=1)this.audios[i].setRate(r)},createAudio:function(r){return this.audioFactory?this.audioFactory(r):window.Howl?new window.Howl({src:[r]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(r){this.audioFactory=r},setVolume:function(r){this._volume=r,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var r,i=this.audios.length;for(r=0;r<i;r+=1)this.audios[r].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}})(),createTypedArray=(function(){function e(r,i){var s=0,n=[],a;switch(r){case"int16":case"uint8c":a=1;break;default:a=1.1;break}for(s=0;s<i;s+=1)n.push(a);return n}function t(r,i){return r==="float32"?new Float32Array(i):r==="int16"?new Int16Array(i):r==="uint8c"?new Uint8ClampedArray(i):e(r,i)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?t:e})();function createSizedArray(e){return Array.apply(null,{length:e})}function _typeof$6(e){"@babel/helpers - typeof";return _typeof$6=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$6(e)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};(function(){var 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"],t,r=e.length;for(t=0;t<r;t+=1)BMMath[e[t]]=Math[e[t]]})(),BMMath.random=Math.random,BMMath.abs=function(e){var t=_typeof$6(e);if(t==="object"&&e.length){var r=createSizedArray(e.length),i,s=e.length;for(i=0;i<s;i+=1)r[i]=Math.abs(e[i]);return r}return Math.abs(e)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function styleDiv(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(e,t,r,i){this.type=e,this.currentTime=t,this.totalTime=r,this.direction=i<0?-1:1}function BMCompleteEvent(e,t){this.type=e,this.direction=t<0?-1:1}function BMCompleteLoopEvent(e,t,r,i){this.type=e,this.currentLoop=r,this.totalLoops=t,this.direction=i<0?-1:1}function BMSegmentStartEvent(e,t,r){this.type=e,this.firstFrame=t,this.totalFrames=r}function BMDestroyEvent(e,t){this.type=e,this.target=t}function BMRenderFrameErrorEvent(e,t){this.type="renderFrameError",this.nativeError=e,this.currentTime=t}function BMConfigErrorEvent(e){this.type="configError",this.nativeError=e}var createElementID=(function(){var e=0;return function(){return e+=1,idPrefix$1+"__lottie_element_"+e}})();function HSVtoRGB(e,t,r){var i,s,n,a,l,h,d,F;switch(a=Math.floor(e*6),l=e*6-a,h=r*(1-t),d=r*(1-l*t),F=r*(1-(1-l)*t),a%6){case 0:i=r,s=F,n=h;break;case 1:i=d,s=r,n=h;break;case 2:i=h,s=r,n=F;break;case 3:i=h,s=d,n=r;break;case 4:i=F,s=h,n=r;break;case 5:i=r,s=h,n=d;break}return[i,s,n]}function RGBtoHSV(e,t,r){var i=Math.max(e,t,r),s=Math.min(e,t,r),n=i-s,a,l=i===0?0:n/i,h=i/255;switch(i){case s:a=0;break;case e:a=t-r+n*(t<r?6:0),a/=6*n;break;case t:a=r-e+n*2,a/=6*n;break;case r:a=e-t+n*4,a/=6*n;break}return[a,l,h]}function addSaturationToRGB(e,t){var r=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return r[1]+=t,r[1]>1?r[1]=1:r[1]<=0&&(r[1]=0),HSVtoRGB(r[0],r[1],r[2])}function addBrightnessToRGB(e,t){var r=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return r[2]+=t,r[2]>1?r[2]=1:r[2]<0&&(r[2]=0),HSVtoRGB(r[0],r[1],r[2])}function addHueToRGB(e,t){var r=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return r[0]+=t/360,r[0]>1?r[0]-=1:r[0]<0&&(r[0]+=1),HSVtoRGB(r[0],r[1],r[2])}var rgbToHex=(function(){var e=[],t,r;for(t=0;t<256;t+=1)r=t.toString(16),e[t]=r.length===1?"0"+r:r;return function(i,s,n){return i<0&&(i=0),s<0&&(s=0),n<0&&(n=0),"#"+e[i]+e[s]+e[n]}})(),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};function createNS(e){return document.createElementNS(svgNS,e)}function _typeof$5(e){"@babel/helpers - typeof";return _typeof$5=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$5(e)}var dataManager=(function(){var e=1,t=[],r,i,s={onmessage:function(){},postMessage:function(q){r({data:q})}},n={postMessage:function(q){s.onmessage({data:q})}};function a(y){if(window.Worker&&window.Blob&&getWebWorker()){var q=new Blob(["var _workerSelf = self; self.onmessage = ",y.toString()],{type:"text/javascript"}),H=URL.createObjectURL(q);return new Worker(H)}return r=y,s}function l(){i||(i=a(function(q){function H(){function te(he,re){var se,W,K=he.length,oe,ne,ce,pe;for(W=0;W<K;W+=1)if(se=he[W],"ks"in se&&!se.completed){if(se.completed=!0,se.hasMask){var de=se.masksProperties;for(ne=de.length,oe=0;oe<ne;oe+=1)if(de[oe].pt.k.i)Q(de[oe].pt.k);else for(pe=de[oe].pt.k.length,ce=0;ce<pe;ce+=1)de[oe].pt.k[ce].s&&Q(de[oe].pt.k[ce].s[0]),de[oe].pt.k[ce].e&&Q(de[oe].pt.k[ce].e[0])}se.ty===0?(se.layers=M(se.refId,re),te(se.layers,re)):se.ty===4?V(se.shapes):se.ty===5&&me(se)}}function j(he,re){if(he){var se=0,W=he.length;for(se=0;se<W;se+=1)he[se].t===1&&(he[se].data.layers=M(he[se].data.refId,re),te(he[se].data.layers,re))}}function Z(he,re){for(var se=0,W=re.length;se<W;){if(re[se].id===he)return re[se];se+=1}return null}function M(he,re){var se=Z(he,re);return se?se.layers.__used?JSON.parse(JSON.stringify(se.layers)):(se.layers.__used=!0,se.layers):null}function V(he){var re,se=he.length,W,K;for(re=se-1;re>=0;re-=1)if(he[re].ty==="sh")if(he[re].ks.k.i)Q(he[re].ks.k);else for(K=he[re].ks.k.length,W=0;W<K;W+=1)he[re].ks.k[W].s&&Q(he[re].ks.k[W].s[0]),he[re].ks.k[W].e&&Q(he[re].ks.k[W].e[0]);else he[re].ty==="gr"&&V(he[re].it)}function Q(he){var re,se=he.i.length;for(re=0;re<se;re+=1)he.i[re][0]+=he.v[re][0],he.i[re][1]+=he.v[re][1],he.o[re][0]+=he.v[re][0],he.o[re][1]+=he.v[re][1]}function ee(he,re){var se=re?re.split("."):[100,100,100];return he[0]>se[0]?!0:se[0]>he[0]?!1:he[1]>se[1]?!0:se[1]>he[1]?!1:he[2]>se[2]?!0:se[2]>he[2]?!1:null}var ie=(function(){var he=[4,4,14];function re(W){var K=W.t.d;W.t.d={k:[{s:K,t:0}]}}function se(W){var K,oe=W.length;for(K=0;K<oe;K+=1)W[K].ty===5&&re(W[K])}return function(W){if(ee(he,W.v)&&(se(W.layers),W.assets)){var K,oe=W.assets.length;for(K=0;K<oe;K+=1)W.assets[K].layers&&se(W.assets[K].layers)}}})(),ae=(function(){var he=[4,7,99];return function(re){if(re.chars&&!ee(he,re.v)){var se,W=re.chars.length;for(se=0;se<W;se+=1){var K=re.chars[se];K.data&&K.data.shapes&&(V(K.data.shapes),K.data.ip=0,K.data.op=99999,K.data.st=0,K.data.sr=1,K.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}},re.chars[se].t||(K.data.shapes.push({ty:"no"}),K.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"})))}}}})(),le=(function(){var he=[5,7,15];function re(W){var K=W.t.p;typeof K.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})}function se(W){var K,oe=W.length;for(K=0;K<oe;K+=1)W[K].ty===5&&re(W[K])}return function(W){if(ee(he,W.v)&&(se(W.layers),W.assets)){var K,oe=W.assets.length;for(K=0;K<oe;K+=1)W.assets[K].layers&&se(W.assets[K].layers)}}})(),ye=(function(){var he=[4,1,9];function re(W){var K,oe=W.length,ne,ce;for(K=0;K<oe;K+=1)if(W[K].ty==="gr")re(W[K].it);else if(W[K].ty==="fl"||W[K].ty==="st")if(W[K].c.k&&W[K].c.k[0].i)for(ce=W[K].c.k.length,ne=0;ne<ce;ne+=1)W[K].c.k[ne].s&&(W[K].c.k[ne].s[0]/=255,W[K].c.k[ne].s[1]/=255,W[K].c.k[ne].s[2]/=255,W[K].c.k[ne].s[3]/=255),W[K].c.k[ne].e&&(W[K].c.k[ne].e[0]/=255,W[K].c.k[ne].e[1]/=255,W[K].c.k[ne].e[2]/=255,W[K].c.k[ne].e[3]/=255);else W[K].c.k[0]/=255,W[K].c.k[1]/=255,W[K].c.k[2]/=255,W[K].c.k[3]/=255}function se(W){var K,oe=W.length;for(K=0;K<oe;K+=1)W[K].ty===4&&re(W[K].shapes)}return function(W){if(ee(he,W.v)&&(se(W.layers),W.assets)){var K,oe=W.assets.length;for(K=0;K<oe;K+=1)W.assets[K].layers&&se(W.assets[K].layers)}}})(),ue=(function(){var he=[4,4,18];function re(W){var K,oe=W.length,ne,ce;for(K=oe-1;K>=0;K-=1)if(W[K].ty==="sh")if(W[K].ks.k.i)W[K].ks.k.c=W[K].closed;else for(ce=W[K].ks.k.length,ne=0;ne<ce;ne+=1)W[K].ks.k[ne].s&&(W[K].ks.k[ne].s[0].c=W[K].closed),W[K].ks.k[ne].e&&(W[K].ks.k[ne].e[0].c=W[K].closed);else W[K].ty==="gr"&&re(W[K].it)}function se(W){var K,oe,ne=W.length,ce,pe,de,xe;for(oe=0;oe<ne;oe+=1){if(K=W[oe],K.hasMask){var be=K.masksProperties;for(pe=be.length,ce=0;ce<pe;ce+=1)if(be[ce].pt.k.i)be[ce].pt.k.c=be[ce].cl;else for(xe=be[ce].pt.k.length,de=0;de<xe;de+=1)be[ce].pt.k[de].s&&(be[ce].pt.k[de].s[0].c=be[ce].cl),be[ce].pt.k[de].e&&(be[ce].pt.k[de].e[0].c=be[ce].cl)}K.ty===4&&re(K.shapes)}}return function(W){if(ee(he,W.v)&&(se(W.layers),W.assets)){var K,oe=W.assets.length;for(K=0;K<oe;K+=1)W.assets[K].layers&&se(W.assets[K].layers)}}})();function fe(he){he.__complete||(ye(he),ie(he),ae(he),le(he),ue(he),te(he.layers,he.assets),j(he.chars,he.assets),he.__complete=!0)}function me(he){he.t.a.length===0&&"m"in he.t.p}var ve={};return ve.completeData=fe,ve.checkColors=ye,ve.checkChars=ae,ve.checkPathProperties=le,ve.checkShapes=ue,ve.completeLayers=te,ve}if(n.dataManager||(n.dataManager=H()),n.assetLoader||(n.assetLoader=(function(){function te(Z){var M=Z.getResponseHeader("content-type");return M&&Z.responseType==="json"&&M.indexOf("json")!==-1||Z.response&&_typeof$5(Z.response)==="object"?Z.response:Z.response&&typeof Z.response=="string"?JSON.parse(Z.response):Z.responseText?JSON.parse(Z.responseText):null}function j(Z,M,V,Q){var ee,ie=new XMLHttpRequest;try{ie.responseType="json"}catch{}ie.onreadystatechange=function(){if(ie.readyState===4)if(ie.status===200)ee=te(ie),V(ee);else try{ee=te(ie),V(ee)}catch(ae){Q&&Q(ae)}};try{ie.open(["G","E","T"].join(""),Z,!0)}catch{ie.open(["G","E","T"].join(""),M+"/"+Z,!0)}ie.send()}return{load:j}})()),q.data.type==="loadAnimation")n.assetLoader.load(q.data.path,q.data.fullPath,function(te){n.dataManager.completeData(te),n.postMessage({id:q.data.id,payload:te,status:"success"})},function(){n.postMessage({id:q.data.id,status:"error"})});else if(q.data.type==="complete"){var G=q.data.animation;n.dataManager.completeData(G),n.postMessage({id:q.data.id,payload:G,status:"success"})}else q.data.type==="loadData"&&n.assetLoader.load(q.data.path,q.data.fullPath,function(te){n.postMessage({id:q.data.id,payload:te,status:"success"})},function(){n.postMessage({id:q.data.id,status:"error"})})}),i.onmessage=function(y){var q=y.data,H=q.id,G=t[H];t[H]=null,q.status==="success"?G.onComplete(q.payload):G.onError&&G.onError()})}function h(y,q){e+=1;var H="processId_"+e;return t[H]={onComplete:y,onError:q},H}function d(y,q,H){l();var G=h(q,H);i.postMessage({type:"loadAnimation",path:y,fullPath:window.location.origin+window.location.pathname,id:G})}function F(y,q,H){l();var G=h(q,H);i.postMessage({type:"loadData",path:y,fullPath:window.location.origin+window.location.pathname,id:G})}function J(y,q,H){l();var G=h(q,H);i.postMessage({type:"complete",animation:y,id:G})}return{loadAnimation:d,loadData:F,completeAnimation:J}})(),ImagePreloader=(function(){var e=(function(){var j=createTag("canvas");j.width=1,j.height=1;var Z=j.getContext("2d");return Z.fillStyle="rgba(0,0,0,0)",Z.fillRect(0,0,1,1),j})();function t(){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(j,Z,M){var V="";if(j.e)V=j.p;else if(Z){var Q=j.p;Q.indexOf("images/")!==-1&&(Q=Q.split("/")[1]),V=Z+Q}else V=M,V+=j.u?j.u:"",V+=j.p;return V}function s(j){var Z=0,M=setInterval((function(){var V=j.getBBox();(V.width||Z>500)&&(this._imageLoaded(),clearInterval(M)),Z+=1}).bind(this),50)}function n(j){var Z=i(j,this.assetsPath,this.path),M=createNS("image");isSafari?this.testImageLoaded(M):M.addEventListener("load",this._imageLoaded,!1),M.addEventListener("error",(function(){V.img=e,this._imageLoaded()}).bind(this),!1),M.setAttributeNS("http://www.w3.org/1999/xlink","href",Z),this._elementHelper.append?this._elementHelper.append(M):this._elementHelper.appendChild(M);var V={img:M,assetData:j};return V}function a(j){var Z=i(j,this.assetsPath,this.path),M=createTag("img");M.crossOrigin="anonymous",M.addEventListener("load",this._imageLoaded,!1),M.addEventListener("error",(function(){V.img=e,this._imageLoaded()}).bind(this),!1),M.src=Z;var V={img:M,assetData:j};return V}function l(j){var Z={assetData:j},M=i(j,this.assetsPath,this.path);return dataManager.loadData(M,(function(V){Z.img=V,this._footageLoaded()}).bind(this),(function(){Z.img={},this._footageLoaded()}).bind(this)),Z}function h(j,Z){this.imagesLoadedCb=Z;var M,V=j.length;for(M=0;M<V;M+=1)j[M].layers||(!j[M].t||j[M].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(j[M]))):j[M].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(j[M]))))}function d(j){this.path=j||""}function F(j){this.assetsPath=j||""}function J(j){for(var Z=0,M=this.images.length;Z<M;){if(this.images[Z].assetData===j)return this.images[Z].img;Z+=1}return null}function y(){this.imagesLoadedCb=null,this.images.length=0}function q(){return this.totalImages===this.loadedAssets}function H(){return this.totalFootages===this.loadedFootagesCount}function G(j,Z){j==="svg"?(this._elementHelper=Z,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function te(){this._imageLoaded=t.bind(this),this._footageLoaded=r.bind(this),this.testImageLoaded=s.bind(this),this.createFootageData=l.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return te.prototype={loadAssets:h,setAssetsPath:F,setPath:d,loadedImages:q,loadedFootages:H,destroy:y,getAsset:J,createImgData:a,createImageData:n,imageLoaded:t,footageLoaded:r,setCacheType:G},te})();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(t,r){if(this._cbs[t])for(var i=this._cbs[t],s=0;s<i.length;s+=1)i[s](r)},addEventListener:function(t,r){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(r),(function(){this.removeEventListener(t,r)}).bind(this)},removeEventListener:function(t,r){if(!r)this._cbs[t]=null;else if(this._cbs[t]){for(var i=0,s=this._cbs[t].length;i<s;)this._cbs[t][i]===r&&(this._cbs[t].splice(i,1),i-=1,s-=1),i+=1;this._cbs[t].length||(this._cbs[t]=null)}}};var markerParser=(function(){function e(t){for(var r=t.split(`\r
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const jsxRuntime=require("react/jsx-runtime"),React=require("react"),lucideReact=require("lucide-react"),clsx=require("clsx"),tailwindMerge=require("tailwind-merge"),DropdownMenuPrimitive=require("@radix-ui/react-dropdown-menu"),SelectPrimitive=require("@radix-ui/react-select"),TooltipPrimitive=require("@radix-ui/react-tooltip");function _interopNamespaceDefault(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const React__namespace=_interopNamespaceDefault(React),DropdownMenuPrimitive__namespace=_interopNamespaceDefault(DropdownMenuPrimitive),SelectPrimitive__namespace=_interopNamespaceDefault(SelectPrimitive),TooltipPrimitive__namespace=_interopNamespaceDefault(TooltipPrimitive),m=e=>{let t=0;for(let r=0;r<e.length;r++){const i=e.charCodeAt(r);t=(t<<5)-t+i,t=t&t}return Math.abs(t)},C=(e,t)=>Math.floor(e/Math.pow(10,t)%10),v=(e,t)=>!(C(e,t)%2),f=(e,t,r)=>{const i=e%t;return r&&C(e,r)%2===0?-i:i},u=(e,t,r)=>t[e%r],_=e=>{e.slice(0,1)==="#"&&(e=e.slice(1));const t=parseInt(e.substr(0,2),16),r=parseInt(e.substr(2,2),16),i=parseInt(e.substr(4,2),16);return(t*299+r*587+i*114)/1e3>=128?"#000000":"#FFFFFF"},A=4,o=80;function $(e,t){const r=m(e),i=t&&t.length;return Array.from({length:A},(s,n)=>({color:u(r+n,t,i),translateX:f(r*(n+1),o/2-(n+17),1),translateY:f(r*(n+1),o/2-(n+17),2),rotate:f(r*(n+1),360),isSquare:v(r,2)}))}const k=({name:e,colors:t,title:r,square:i,size:s,...n})=>{const a=$(e,t),l=React__namespace.useId();return jsxRuntime.jsxs("svg",{viewBox:"0 0 "+o+" "+o,fill:"none",role:"img",xmlns:"http://www.w3.org/2000/svg",width:s,height:s,...n,children:[r&&jsxRuntime.jsx("title",{children:e}),jsxRuntime.jsx("mask",{id:l,maskUnits:"userSpaceOnUse",x:0,y:0,width:o,height:o,children:jsxRuntime.jsx("rect",{width:o,height:o,rx:i?void 0:o*2,fill:"#FFFFFF"})}),jsxRuntime.jsxs("g",{mask:`url(#${l})`,children:[jsxRuntime.jsx("rect",{width:o,height:o,fill:a[0].color}),jsxRuntime.jsx("rect",{x:(o-60)/2,y:(o-20)/2,width:o,height:a[1].isSquare?o:o/8,fill:a[1].color,transform:"translate("+a[1].translateX+" "+a[1].translateY+") rotate("+a[1].rotate+" "+o/2+" "+o/2+")"}),jsxRuntime.jsx("circle",{cx:o/2,cy:o/2,fill:a[2].color,r:o/5,transform:"translate("+a[2].translateX+" "+a[2].translateY+")"}),jsxRuntime.jsx("line",{x1:0,y1:o/2,x2:o,y2:o/2,strokeWidth:2,stroke:a[3].color,transform:"translate("+a[3].translateX+" "+a[3].translateY+") rotate("+a[3].rotate+" "+o/2+" "+o/2+")"})]})]})},p=90,B=5;function U(e,t){const r=m(e),i=t&&t.length,s=Array.from({length:B},(a,l)=>u(r+l,t,i)),n=[];return n[0]=s[0],n[1]=s[1],n[2]=s[1],n[3]=s[2],n[4]=s[2],n[5]=s[3],n[6]=s[3],n[7]=s[0],n[8]=s[4],n}const E=({name:e,colors:t,title:r,square:i,size:s,...n})=>{const a=U(e,t),l=React.useId();return jsxRuntime.jsxs("svg",{viewBox:"0 0 "+p+" "+p,fill:"none",role:"img",xmlns:"http://www.w3.org/2000/svg",width:s,height:s,...n,children:[r&&jsxRuntime.jsx("title",{children:e}),jsxRuntime.jsx("mask",{id:l,maskUnits:"userSpaceOnUse",x:0,y:0,width:p,height:p,children:jsxRuntime.jsx("rect",{width:p,height:p,rx:i?void 0:p*2,fill:"#FFFFFF"})}),jsxRuntime.jsxs("g",{mask:`url(#${l})`,children:[jsxRuntime.jsx("path",{d:"M0 0h90v45H0z",fill:a[0]}),jsxRuntime.jsx("path",{d:"M0 45h90v45H0z",fill:a[1]}),jsxRuntime.jsx("path",{d:"M83 45a38 38 0 00-76 0h76z",fill:a[2]}),jsxRuntime.jsx("path",{d:"M83 45a38 38 0 01-76 0h76z",fill:a[3]}),jsxRuntime.jsx("path",{d:"M77 45a32 32 0 10-64 0h64z",fill:a[4]}),jsxRuntime.jsx("path",{d:"M77 45a32 32 0 11-64 0h64z",fill:a[5]}),jsxRuntime.jsx("path",{d:"M71 45a26 26 0 00-52 0h52z",fill:a[6]}),jsxRuntime.jsx("path",{d:"M71 45a26 26 0 01-52 0h52z",fill:a[7]}),jsxRuntime.jsx("circle",{cx:45,cy:45,r:23,fill:a[8]})]})]})},L=64,x=80;function T(e,t){const r=m(e),i=t&&t.length;return Array.from({length:L},(s,n)=>u(r%(n+1),t,i))}const O=({name:e,colors:t,title:r,square:i,size:s,...n})=>{const a=T(e,t),l=React__namespace.useId();return jsxRuntime.jsxs("svg",{viewBox:"0 0 "+x+" "+x,fill:"none",role:"img",xmlns:"http://www.w3.org/2000/svg",width:s,height:s,...n,children:[r&&jsxRuntime.jsx("title",{children:e}),jsxRuntime.jsx("mask",{id:l,"mask-type":"alpha",maskUnits:"userSpaceOnUse",x:0,y:0,width:x,height:x,children:jsxRuntime.jsx("rect",{width:x,height:x,rx:i?void 0:x*2,fill:"#FFFFFF"})}),jsxRuntime.jsxs("g",{mask:`url(#${l})`,children:[jsxRuntime.jsx("rect",{width:10,height:10,fill:a[0]}),jsxRuntime.jsx("rect",{x:20,width:10,height:10,fill:a[1]}),jsxRuntime.jsx("rect",{x:40,width:10,height:10,fill:a[2]}),jsxRuntime.jsx("rect",{x:60,width:10,height:10,fill:a[3]}),jsxRuntime.jsx("rect",{x:10,width:10,height:10,fill:a[4]}),jsxRuntime.jsx("rect",{x:30,width:10,height:10,fill:a[5]}),jsxRuntime.jsx("rect",{x:50,width:10,height:10,fill:a[6]}),jsxRuntime.jsx("rect",{x:70,width:10,height:10,fill:a[7]}),jsxRuntime.jsx("rect",{y:10,width:10,height:10,fill:a[8]}),jsxRuntime.jsx("rect",{y:20,width:10,height:10,fill:a[9]}),jsxRuntime.jsx("rect",{y:30,width:10,height:10,fill:a[10]}),jsxRuntime.jsx("rect",{y:40,width:10,height:10,fill:a[11]}),jsxRuntime.jsx("rect",{y:50,width:10,height:10,fill:a[12]}),jsxRuntime.jsx("rect",{y:60,width:10,height:10,fill:a[13]}),jsxRuntime.jsx("rect",{y:70,width:10,height:10,fill:a[14]}),jsxRuntime.jsx("rect",{x:20,y:10,width:10,height:10,fill:a[15]}),jsxRuntime.jsx("rect",{x:20,y:20,width:10,height:10,fill:a[16]}),jsxRuntime.jsx("rect",{x:20,y:30,width:10,height:10,fill:a[17]}),jsxRuntime.jsx("rect",{x:20,y:40,width:10,height:10,fill:a[18]}),jsxRuntime.jsx("rect",{x:20,y:50,width:10,height:10,fill:a[19]}),jsxRuntime.jsx("rect",{x:20,y:60,width:10,height:10,fill:a[20]}),jsxRuntime.jsx("rect",{x:20,y:70,width:10,height:10,fill:a[21]}),jsxRuntime.jsx("rect",{x:40,y:10,width:10,height:10,fill:a[22]}),jsxRuntime.jsx("rect",{x:40,y:20,width:10,height:10,fill:a[23]}),jsxRuntime.jsx("rect",{x:40,y:30,width:10,height:10,fill:a[24]}),jsxRuntime.jsx("rect",{x:40,y:40,width:10,height:10,fill:a[25]}),jsxRuntime.jsx("rect",{x:40,y:50,width:10,height:10,fill:a[26]}),jsxRuntime.jsx("rect",{x:40,y:60,width:10,height:10,fill:a[27]}),jsxRuntime.jsx("rect",{x:40,y:70,width:10,height:10,fill:a[28]}),jsxRuntime.jsx("rect",{x:60,y:10,width:10,height:10,fill:a[29]}),jsxRuntime.jsx("rect",{x:60,y:20,width:10,height:10,fill:a[30]}),jsxRuntime.jsx("rect",{x:60,y:30,width:10,height:10,fill:a[31]}),jsxRuntime.jsx("rect",{x:60,y:40,width:10,height:10,fill:a[32]}),jsxRuntime.jsx("rect",{x:60,y:50,width:10,height:10,fill:a[33]}),jsxRuntime.jsx("rect",{x:60,y:60,width:10,height:10,fill:a[34]}),jsxRuntime.jsx("rect",{x:60,y:70,width:10,height:10,fill:a[35]}),jsxRuntime.jsx("rect",{x:10,y:10,width:10,height:10,fill:a[36]}),jsxRuntime.jsx("rect",{x:10,y:20,width:10,height:10,fill:a[37]}),jsxRuntime.jsx("rect",{x:10,y:30,width:10,height:10,fill:a[38]}),jsxRuntime.jsx("rect",{x:10,y:40,width:10,height:10,fill:a[39]}),jsxRuntime.jsx("rect",{x:10,y:50,width:10,height:10,fill:a[40]}),jsxRuntime.jsx("rect",{x:10,y:60,width:10,height:10,fill:a[41]}),jsxRuntime.jsx("rect",{x:10,y:70,width:10,height:10,fill:a[42]}),jsxRuntime.jsx("rect",{x:30,y:10,width:10,height:10,fill:a[43]}),jsxRuntime.jsx("rect",{x:30,y:20,width:10,height:10,fill:a[44]}),jsxRuntime.jsx("rect",{x:30,y:30,width:10,height:10,fill:a[45]}),jsxRuntime.jsx("rect",{x:30,y:40,width:10,height:10,fill:a[46]}),jsxRuntime.jsx("rect",{x:30,y:50,width:10,height:10,fill:a[47]}),jsxRuntime.jsx("rect",{x:30,y:60,width:10,height:10,fill:a[48]}),jsxRuntime.jsx("rect",{x:30,y:70,width:10,height:10,fill:a[49]}),jsxRuntime.jsx("rect",{x:50,y:10,width:10,height:10,fill:a[50]}),jsxRuntime.jsx("rect",{x:50,y:20,width:10,height:10,fill:a[51]}),jsxRuntime.jsx("rect",{x:50,y:30,width:10,height:10,fill:a[52]}),jsxRuntime.jsx("rect",{x:50,y:40,width:10,height:10,fill:a[53]}),jsxRuntime.jsx("rect",{x:50,y:50,width:10,height:10,fill:a[54]}),jsxRuntime.jsx("rect",{x:50,y:60,width:10,height:10,fill:a[55]}),jsxRuntime.jsx("rect",{x:50,y:70,width:10,height:10,fill:a[56]}),jsxRuntime.jsx("rect",{x:70,y:10,width:10,height:10,fill:a[57]}),jsxRuntime.jsx("rect",{x:70,y:20,width:10,height:10,fill:a[58]}),jsxRuntime.jsx("rect",{x:70,y:30,width:10,height:10,fill:a[59]}),jsxRuntime.jsx("rect",{x:70,y:40,width:10,height:10,fill:a[60]}),jsxRuntime.jsx("rect",{x:70,y:50,width:10,height:10,fill:a[61]}),jsxRuntime.jsx("rect",{x:70,y:60,width:10,height:10,fill:a[62]}),jsxRuntime.jsx("rect",{x:70,y:70,width:10,height:10,fill:a[63]})]})]})},c=36;function b(e,t){const r=m(e),i=t&&t.length,s=u(r,t,i),n=f(r,10,1),a=n<5?n+c/9:n,l=f(r,10,2),h=l<5?l+c/9:l;return{wrapperColor:s,faceColor:_(s),backgroundColor:u(r+13,t,i),wrapperTranslateX:a,wrapperTranslateY:h,wrapperRotate:f(r,360),wrapperScale:1+f(r,c/12)/10,isMouthOpen:v(r,2),isCircle:v(r,1),eyeSpread:f(r,5),mouthSpread:f(r,3),faceRotate:f(r,10,3),faceTranslateX:a>c/6?a/2:f(r,8,1),faceTranslateY:h>c/6?h/2:f(r,7,2)}}const S=({name:e,colors:t,title:r,square:i,size:s,...n})=>{const a=b(e,t),l=React__namespace.useId();return jsxRuntime.jsxs("svg",{viewBox:"0 0 "+c+" "+c,fill:"none",role:"img",xmlns:"http://www.w3.org/2000/svg",width:s,height:s,...n,children:[r&&jsxRuntime.jsx("title",{children:e}),jsxRuntime.jsx("mask",{id:l,maskUnits:"userSpaceOnUse",x:0,y:0,width:c,height:c,children:jsxRuntime.jsx("rect",{width:c,height:c,rx:i?void 0:c*2,fill:"#FFFFFF"})}),jsxRuntime.jsxs("g",{mask:`url(#${l})`,children:[jsxRuntime.jsx("rect",{width:c,height:c,fill:a.backgroundColor}),jsxRuntime.jsx("rect",{x:"0",y:"0",width:c,height:c,transform:"translate("+a.wrapperTranslateX+" "+a.wrapperTranslateY+") rotate("+a.wrapperRotate+" "+c/2+" "+c/2+") scale("+a.wrapperScale+")",fill:a.wrapperColor,rx:a.isCircle?c:c/6}),jsxRuntime.jsxs("g",{transform:"translate("+a.faceTranslateX+" "+a.faceTranslateY+") rotate("+a.faceRotate+" "+c/2+" "+c/2+")",children:[a.isMouthOpen?jsxRuntime.jsx("path",{d:"M15 "+(19+a.mouthSpread)+"c2 1 4 1 6 0",stroke:a.faceColor,fill:"none",strokeLinecap:"round"}):jsxRuntime.jsx("path",{d:"M13,"+(19+a.mouthSpread)+" a1,0.75 0 0,0 10,0",fill:a.faceColor}),jsxRuntime.jsx("rect",{x:14-a.eyeSpread,y:14,width:1.5,height:2,rx:1,stroke:"none",fill:a.faceColor}),jsxRuntime.jsx("rect",{x:20+a.eyeSpread,y:14,width:1.5,height:2,rx:1,stroke:"none",fill:a.faceColor})]})]})]})},R=4,w=80;function X(e,t){const r=m(e),i=t&&t.length;return Array.from({length:R},(s,n)=>u(r+n,t,i))}const Y=({name:e,colors:t,title:r,square:i,size:s,...n})=>{const a=X(e,t),l=e.replace(/\s/g,""),h=React__namespace.useId();return jsxRuntime.jsxs("svg",{viewBox:"0 0 "+w+" "+w,fill:"none",role:"img",xmlns:"http://www.w3.org/2000/svg",width:s,height:s,...n,children:[r&&jsxRuntime.jsx("title",{children:e}),jsxRuntime.jsx("mask",{id:h,maskUnits:"userSpaceOnUse",x:0,y:0,width:w,height:w,children:jsxRuntime.jsx("rect",{width:w,height:w,rx:i?void 0:w*2,fill:"#FFFFFF"})}),jsxRuntime.jsxs("g",{mask:`url(#${h})`,children:[jsxRuntime.jsx("path",{fill:"url(#gradient_paint0_linear_"+l+")",d:"M0 0h80v40H0z"}),jsxRuntime.jsx("path",{fill:"url(#gradient_paint1_linear_"+l+")",d:"M0 40h80v40H0z"})]}),jsxRuntime.jsxs("defs",{children:[jsxRuntime.jsxs("linearGradient",{id:"gradient_paint0_linear_"+l,x1:w/2,y1:0,x2:w/2,y2:w/2,gradientUnits:"userSpaceOnUse",children:[jsxRuntime.jsx("stop",{stopColor:a[0]}),jsxRuntime.jsx("stop",{offset:1,stopColor:a[1]})]}),jsxRuntime.jsxs("linearGradient",{id:"gradient_paint1_linear_"+l,x1:w/2,y1:w/2,x2:w/2,y2:w,gradientUnits:"userSpaceOnUse",children:[jsxRuntime.jsx("stop",{stopColor:a[2]}),jsxRuntime.jsx("stop",{offset:1,stopColor:a[3]})]})]})]})},D=3,g=80;function N(e,t){const r=m(e),i=t&&t.length;return Array.from({length:D},(s,n)=>({color:u(r+n,t,i),translateX:f(r*(n+1),g/10,1),translateY:f(r*(n+1),g/10,2),scale:1.2+f(r*(n+1),g/20)/10,rotate:f(r*(n+1),360,1)}))}const I=({name:e,colors:t,title:r,square:i,size:s,...n})=>{const a=N(e,t),l=React__namespace.useId();return jsxRuntime.jsxs("svg",{viewBox:"0 0 "+g+" "+g,fill:"none",role:"img",xmlns:"http://www.w3.org/2000/svg",width:s,height:s,...n,children:[r&&jsxRuntime.jsx("title",{children:e}),jsxRuntime.jsx("mask",{id:l,maskUnits:"userSpaceOnUse",x:0,y:0,width:g,height:g,children:jsxRuntime.jsx("rect",{width:g,height:g,rx:i?void 0:g*2,fill:"#FFFFFF"})}),jsxRuntime.jsxs("g",{mask:`url(#${l})`,children:[jsxRuntime.jsx("rect",{width:g,height:g,fill:a[0].color}),jsxRuntime.jsx("path",{filter:`url(#filter_${l})`,d:"M32.414 59.35L50.376 70.5H72.5v-71H33.728L26.5 13.381l19.057 27.08L32.414 59.35z",fill:a[1].color,transform:"translate("+a[1].translateX+" "+a[1].translateY+") rotate("+a[1].rotate+" "+g/2+" "+g/2+") scale("+a[2].scale+")"}),jsxRuntime.jsx("path",{filter:`url(#filter_${l})`,style:{mixBlendMode:"overlay"},d:"M22.216 24L0 46.75l14.108 38.129L78 86l-3.081-59.276-22.378 4.005 12.972 20.186-23.35 27.395L22.215 24z",fill:a[2].color,transform:"translate("+a[2].translateX+" "+a[2].translateY+") rotate("+a[2].rotate+" "+g/2+" "+g/2+") scale("+a[2].scale+")"})]}),jsxRuntime.jsx("defs",{children:jsxRuntime.jsxs("filter",{id:`filter_${l}`,filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[jsxRuntime.jsx("feFlood",{floodOpacity:0,result:"BackgroundImageFix"}),jsxRuntime.jsx("feBlend",{in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),jsxRuntime.jsx("feGaussianBlur",{stdDeviation:7,result:"effect1_foregroundBlur"})]})})]})},z={pixel:O,bauhaus:k,ring:E,beam:S,sunset:Y,marble:I,geometric:S,abstract:k},P=({variant:e="marble",colors:t=["#92A1C6","#146A7C","#F0AB3D","#C271B4","#C20D90"],name:r="Clara Barton",title:i=!1,size:s="40px",square:n=!1,...a})=>{const l=z[e]||I;return jsxRuntime.jsx(l,{colors:t,name:r,title:i,size:s,square:n,...a})},colors=["#148103","#ccfbd6ff","#334155"],PersonAvatar=({personId:e})=>jsxRuntime.jsx(P,{size:40,name:e,variant:"beam",colors}),ProfileAvatar=({userId:e})=>jsxRuntime.jsx(P,{size:40,name:e,variant:"bauhaus",colors}),Box=({children:e})=>jsxRuntime.jsx("div",{className:"w-75 rounded-lg bg-white p-4 shadow-xl",children:e});function setRef(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function composeRefs(...e){return t=>{let r=!1;const i=e.map(s=>{const n=setRef(s,t);return!r&&typeof n=="function"&&(r=!0),n});if(r)return()=>{for(let s=0;s<i.length;s++){const n=i[s];typeof n=="function"?n():setRef(e[s],null)}}}}function createSlot(e){const t=createSlotClone(e),r=React__namespace.forwardRef((i,s)=>{const{children:n,...a}=i,l=React__namespace.Children.toArray(n),h=l.find(isSlottable);if(h){const d=h.props.children,F=l.map(J=>J===h?React__namespace.Children.count(d)>1?React__namespace.Children.only(null):React__namespace.isValidElement(d)?d.props.children:null:J);return jsxRuntime.jsx(t,{...a,ref:s,children:React__namespace.isValidElement(d)?React__namespace.cloneElement(d,void 0,F):null})}return jsxRuntime.jsx(t,{...a,ref:s,children:n})});return r.displayName=`${e}.Slot`,r}var Slot=createSlot("Slot");function createSlotClone(e){const t=React__namespace.forwardRef((r,i)=>{const{children:s,...n}=r;if(React__namespace.isValidElement(s)){const a=getElementRef(s),l=mergeProps(n,s.props);return s.type!==React__namespace.Fragment&&(l.ref=i?composeRefs(i,a):a),React__namespace.cloneElement(s,l)}return React__namespace.Children.count(s)>1?React__namespace.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var SLOTTABLE_IDENTIFIER=Symbol("radix.slottable");function isSlottable(e){return React__namespace.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===SLOTTABLE_IDENTIFIER}function mergeProps(e,t){const r={...t};for(const i in t){const s=e[i],n=t[i];/^on[A-Z]/.test(i)?s&&n?r[i]=(...l)=>{const h=n(...l);return s(...l),h}:s&&(r[i]=s):i==="style"?r[i]={...s,...n}:i==="className"&&(r[i]=[s,n].filter(Boolean).join(" "))}return{...e,...r}}function getElementRef(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}function cn(...e){return tailwindMerge.twMerge(clsx.clsx(e))}const Button=React__namespace.forwardRef(({className:e,asChild:t=!1,variant:r="primary",size:i="md",loading:s=!1,disabled:n,children:a,...l},h)=>{const d=t?Slot:"button";return jsxRuntime.jsxs(d,{ref:h,className:cn("oniratec-button",e),"data-variant":r,"data-size":i,disabled:n||s,...l,children:[s&&jsxRuntime.jsx(lucideReact.Loader2,{className:"oniratec-button__spinner"}),jsxRuntime.jsx("span",{className:"oniratec-button__content",children:a})]})});Button.displayName="Button";const Logo=({src:e,alt:t,width:r=70,height:i=70,className:s,ImageComponent:n,...a})=>{const l=n??"img";return jsxRuntime.jsx(l,{type:void 0,props:void 0,src:e,alt:t,width:r,height:i,className:cn("inline-block object-contain",s),...a},null)},Card=({children:e,className:t})=>jsxRuntime.jsx("div",{className:cn("rounded-xl bg-white p-6 shadow-sm ring-1 ring-gray-100 transition-shadow hover:shadow-md",t),children:e}),CardHeader=({children:e,className:t})=>jsxRuntime.jsx("div",{className:cn("mb-2",t),children:e}),CardTitle=({children:e,className:t})=>jsxRuntime.jsx("h3",{className:cn("text-sm font-medium text-gray-500",t),children:e}),CardContent=({children:e,className:t})=>jsxRuntime.jsx("div",{className:cn("text-2xl font-semibold",t),children:e}),DropdownMenu=DropdownMenuPrimitive__namespace.Root,DropdownMenuTrigger=DropdownMenuPrimitive__namespace.Trigger,DropdownMenuGroup=DropdownMenuPrimitive__namespace.Group,DropdownMenuPortal=DropdownMenuPrimitive__namespace.Portal,DropdownMenuSub=DropdownMenuPrimitive__namespace.Sub,DropdownMenuRadioGroup=DropdownMenuPrimitive__namespace.RadioGroup,DropdownMenuContent=React__namespace.forwardRef(({className:e,sideOffset:t=6,...r},i)=>jsxRuntime.jsx(DropdownMenuPrimitive__namespace.Portal,{children:jsxRuntime.jsx(DropdownMenuPrimitive__namespace.Content,{ref:i,sideOffset:t,className:cn("oniratec-dropdown",e),...r})}));DropdownMenuContent.displayName="DropdownMenuContent";const DropdownMenuItem=React__namespace.forwardRef(({className:e,inset:t,icon:r,children:i,...s},n)=>jsxRuntime.jsxs(DropdownMenuPrimitive__namespace.Item,{ref:n,className:cn("oniratec-dropdown__item",t&&"oniratec-dropdown__item--inset",e),...s,children:[r?jsxRuntime.jsx("span",{className:"oniratec-dropdown__icon",children:r}):jsxRuntime.jsx("span",{"aria-hidden":!0}),i]}));DropdownMenuItem.displayName="DropdownMenuItem";const DropdownMenuCheckboxItem=React__namespace.forwardRef(({className:e,children:t,...r},i)=>jsxRuntime.jsxs(DropdownMenuPrimitive__namespace.CheckboxItem,{ref:i,className:cn("oniratec-dropdown__item oniratec-dropdown__item--inset",e),...r,children:[jsxRuntime.jsx("span",{className:"oniratec-dropdown__indicator",children:jsxRuntime.jsx(DropdownMenuPrimitive__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})})}),t]}));DropdownMenuCheckboxItem.displayName="DropdownMenuCheckboxItem";const DropdownMenuRadioItem=React__namespace.forwardRef(({className:e,children:t,...r},i)=>jsxRuntime.jsxs(DropdownMenuPrimitive__namespace.RadioItem,{ref:i,className:cn("oniratec-dropdown__item oniratec-dropdown__item--inset",e),...r,children:[jsxRuntime.jsx("span",{className:"oniratec-dropdown__indicator",children:jsxRuntime.jsx(DropdownMenuPrimitive__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Circle,{className:"h-2 w-2 fill-current"})})}),t]}));DropdownMenuRadioItem.displayName="DropdownMenuRadioItem";const DropdownMenuLabel=React__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(DropdownMenuPrimitive__namespace.Label,{ref:r,className:cn("oniratec-dropdown__label",e),...t}));DropdownMenuLabel.displayName="DropdownMenuLabel";const DropdownMenuSeparator=React__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(DropdownMenuPrimitive__namespace.Separator,{ref:r,className:cn("oniratec-dropdown__separator",e),...t}));DropdownMenuSeparator.displayName="DropdownMenuSeparator";const DropdownMenuSubTrigger=React__namespace.forwardRef(({className:e,children:t,...r},i)=>jsxRuntime.jsxs(DropdownMenuPrimitive__namespace.SubTrigger,{ref:i,className:cn("oniratec-dropdown__item",e),...r,children:[t,jsxRuntime.jsx(lucideReact.ChevronRight,{className:"oniratec-dropdown__chevron"})]}));DropdownMenuSubTrigger.displayName="DropdownMenuSubTrigger";const DropdownMenuSubContent=React__namespace.forwardRef(({className:e,...t},r)=>jsxRuntime.jsx(DropdownMenuPrimitive__namespace.SubContent,{ref:r,className:cn("oniratec-dropdown",e),...t}));DropdownMenuSubContent.displayName="DropdownMenuSubContent";const FieldContext=React__namespace.createContext(null);function useField(){const e=React__namespace.useContext(FieldContext);if(!e)throw new Error("Field components must be used inside <Field>");return e}function Field({className:e,error:t,required:r,...i}){const s=React__namespace.useId();return jsxRuntime.jsx(FieldContext.Provider,{value:{id:s,error:t,required:r},children:jsxRuntime.jsx("div",{className:cn("oniratec-field",e),...i})})}const FieldControl=React.forwardRef((e,t)=>{const{id:r,error:i}=useField();return jsxRuntime.jsx(Slot,{ref:t,id:r,"aria-invalid":!!i,...e})});FieldControl.displayName="FieldControl";const FieldLabel=React__namespace.forwardRef(({className:e,children:t,...r},i)=>{const{id:s,required:n}=useField();return jsxRuntime.jsxs("label",{ref:i,htmlFor:s,className:cn("oniratec-field__label",e),...r,children:[t,n&&jsxRuntime.jsx("span",{className:"oniratec-field__required",children:"*"})]})});FieldLabel.displayName="FieldLabel";const FieldMessage=React__namespace.forwardRef(({className:e,children:t,...r},i)=>{const{error:s}=useField(),n=s??t;return n?jsxRuntime.jsx("p",{ref:i,className:cn("oniratec-field__message",e),...r,children:n}):null});FieldMessage.displayName="FieldMessage";const PasswordInput=React.forwardRef(({className:e,containerClassName:t,...r},i)=>{const[s,n]=React.useState(!1),a=()=>{n(l=>!l)};return jsxRuntime.jsxs("div",{className:cn("relative",t),children:[jsxRuntime.jsx("input",{ref:i,type:s?"text":"password",className:cn("flex h-10 w-full rounded-md border border-slate-300 bg-transparent px-3 py-2 text-sm text-slate-800 placeholder:text-slate-400 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50",e),...r}),jsxRuntime.jsx("button",{type:"button",className:cn("absolute top-1/2 right-3 -translate-y-1/2 transform"),onClick:a,children:s?jsxRuntime.jsx(lucideReact.EyeOff,{className:"h-5 w-5 text-slate-400"}):jsxRuntime.jsx(lucideReact.EyeIcon,{className:"h-5 w-5 text-slate-400"})})]})});PasswordInput.displayName="PasswordInput";const Input=React__namespace.forwardRef(({className:e,isInvalid:t,...r},i)=>jsxRuntime.jsx("input",{ref:i,"data-invalid":t?"true":void 0,className:cn("oniratec-input",e),...r}));Input.displayName="Input";function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var lottie$2={exports:{}},lottie$1=lottie$2.exports,hasRequiredLottie;function requireLottie(){return hasRequiredLottie||(hasRequiredLottie=1,(function(module,exports$1){typeof document<"u"&&typeof navigator<"u"&&(function(e,t){module.exports=t()})(lottie$1,(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(e){return document.createElement(e)}function extendPrototype(e,t){var r,i=e.length,s;for(r=0;r<i;r+=1){s=e[r].prototype;for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(t.prototype[n]=s[n])}}function getDescriptor(e,t){return Object.getOwnPropertyDescriptor(e,t)}function createProxyFunction(e){function t(){}return t.prototype=e,t}var audioControllerFactory=(function(){function e(t){this.audios=[],this.audioFactory=t,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(r){this.audios.push(r)},pause:function(){var r,i=this.audios.length;for(r=0;r<i;r+=1)this.audios[r].pause()},resume:function(){var r,i=this.audios.length;for(r=0;r<i;r+=1)this.audios[r].resume()},setRate:function(r){var i,s=this.audios.length;for(i=0;i<s;i+=1)this.audios[i].setRate(r)},createAudio:function(r){return this.audioFactory?this.audioFactory(r):window.Howl?new window.Howl({src:[r]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(r){this.audioFactory=r},setVolume:function(r){this._volume=r,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var r,i=this.audios.length;for(r=0;r<i;r+=1)this.audios[r].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}})(),createTypedArray=(function(){function e(r,i){var s=0,n=[],a;switch(r){case"int16":case"uint8c":a=1;break;default:a=1.1;break}for(s=0;s<i;s+=1)n.push(a);return n}function t(r,i){return r==="float32"?new Float32Array(i):r==="int16"?new Int16Array(i):r==="uint8c"?new Uint8ClampedArray(i):e(r,i)}return typeof Uint8ClampedArray=="function"&&typeof Float32Array=="function"?t:e})();function createSizedArray(e){return Array.apply(null,{length:e})}function _typeof$6(e){"@babel/helpers - typeof";return _typeof$6=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$6(e)}var subframeEnabled=!0,expressionsPlugin=null,expressionsInterfaces=null,idPrefix$1="",isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),bmPow=Math.pow,bmSqrt=Math.sqrt,bmFloor=Math.floor,bmMax=Math.max,bmMin=Math.min,BMMath={};(function(){var 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"],t,r=e.length;for(t=0;t<r;t+=1)BMMath[e[t]]=Math[e[t]]})(),BMMath.random=Math.random,BMMath.abs=function(e){var t=_typeof$6(e);if(t==="object"&&e.length){var r=createSizedArray(e.length),i,s=e.length;for(i=0;i<s;i+=1)r[i]=Math.abs(e[i]);return r}return Math.abs(e)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function styleDiv(e){e.style.position="absolute",e.style.top=0,e.style.left=0,e.style.display="block",e.style.transformOrigin="0 0",e.style.webkitTransformOrigin="0 0",e.style.backfaceVisibility="visible",e.style.webkitBackfaceVisibility="visible",e.style.transformStyle="preserve-3d",e.style.webkitTransformStyle="preserve-3d",e.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(e,t,r,i){this.type=e,this.currentTime=t,this.totalTime=r,this.direction=i<0?-1:1}function BMCompleteEvent(e,t){this.type=e,this.direction=t<0?-1:1}function BMCompleteLoopEvent(e,t,r,i){this.type=e,this.currentLoop=r,this.totalLoops=t,this.direction=i<0?-1:1}function BMSegmentStartEvent(e,t,r){this.type=e,this.firstFrame=t,this.totalFrames=r}function BMDestroyEvent(e,t){this.type=e,this.target=t}function BMRenderFrameErrorEvent(e,t){this.type="renderFrameError",this.nativeError=e,this.currentTime=t}function BMConfigErrorEvent(e){this.type="configError",this.nativeError=e}var createElementID=(function(){var e=0;return function(){return e+=1,idPrefix$1+"__lottie_element_"+e}})();function HSVtoRGB(e,t,r){var i,s,n,a,l,h,d,F;switch(a=Math.floor(e*6),l=e*6-a,h=r*(1-t),d=r*(1-l*t),F=r*(1-(1-l)*t),a%6){case 0:i=r,s=F,n=h;break;case 1:i=d,s=r,n=h;break;case 2:i=h,s=r,n=F;break;case 3:i=h,s=d,n=r;break;case 4:i=F,s=h,n=r;break;case 5:i=r,s=h,n=d;break}return[i,s,n]}function RGBtoHSV(e,t,r){var i=Math.max(e,t,r),s=Math.min(e,t,r),n=i-s,a,l=i===0?0:n/i,h=i/255;switch(i){case s:a=0;break;case e:a=t-r+n*(t<r?6:0),a/=6*n;break;case t:a=r-e+n*2,a/=6*n;break;case r:a=e-t+n*4,a/=6*n;break}return[a,l,h]}function addSaturationToRGB(e,t){var r=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return r[1]+=t,r[1]>1?r[1]=1:r[1]<=0&&(r[1]=0),HSVtoRGB(r[0],r[1],r[2])}function addBrightnessToRGB(e,t){var r=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return r[2]+=t,r[2]>1?r[2]=1:r[2]<0&&(r[2]=0),HSVtoRGB(r[0],r[1],r[2])}function addHueToRGB(e,t){var r=RGBtoHSV(e[0]*255,e[1]*255,e[2]*255);return r[0]+=t/360,r[0]>1?r[0]-=1:r[0]<0&&(r[0]+=1),HSVtoRGB(r[0],r[1],r[2])}var rgbToHex=(function(){var e=[],t,r;for(t=0;t<256;t+=1)r=t.toString(16),e[t]=r.length===1?"0"+r:r;return function(i,s,n){return i<0&&(i=0),s<0&&(s=0),n<0&&(n=0),"#"+e[i]+e[s]+e[n]}})(),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};function createNS(e){return document.createElementNS(svgNS,e)}function _typeof$5(e){"@babel/helpers - typeof";return _typeof$5=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$5(e)}var dataManager=(function(){var e=1,t=[],r,i,s={onmessage:function(){},postMessage:function(q){r({data:q})}},n={postMessage:function(q){s.onmessage({data:q})}};function a(y){if(window.Worker&&window.Blob&&getWebWorker()){var q=new Blob(["var _workerSelf = self; self.onmessage = ",y.toString()],{type:"text/javascript"}),H=URL.createObjectURL(q);return new Worker(H)}return r=y,s}function l(){i||(i=a(function(q){function H(){function te(he,re){var se,W,K=he.length,oe,ne,ce,pe;for(W=0;W<K;W+=1)if(se=he[W],"ks"in se&&!se.completed){if(se.completed=!0,se.hasMask){var de=se.masksProperties;for(ne=de.length,oe=0;oe<ne;oe+=1)if(de[oe].pt.k.i)Q(de[oe].pt.k);else for(pe=de[oe].pt.k.length,ce=0;ce<pe;ce+=1)de[oe].pt.k[ce].s&&Q(de[oe].pt.k[ce].s[0]),de[oe].pt.k[ce].e&&Q(de[oe].pt.k[ce].e[0])}se.ty===0?(se.layers=M(se.refId,re),te(se.layers,re)):se.ty===4?V(se.shapes):se.ty===5&&me(se)}}function j(he,re){if(he){var se=0,W=he.length;for(se=0;se<W;se+=1)he[se].t===1&&(he[se].data.layers=M(he[se].data.refId,re),te(he[se].data.layers,re))}}function Z(he,re){for(var se=0,W=re.length;se<W;){if(re[se].id===he)return re[se];se+=1}return null}function M(he,re){var se=Z(he,re);return se?se.layers.__used?JSON.parse(JSON.stringify(se.layers)):(se.layers.__used=!0,se.layers):null}function V(he){var re,se=he.length,W,K;for(re=se-1;re>=0;re-=1)if(he[re].ty==="sh")if(he[re].ks.k.i)Q(he[re].ks.k);else for(K=he[re].ks.k.length,W=0;W<K;W+=1)he[re].ks.k[W].s&&Q(he[re].ks.k[W].s[0]),he[re].ks.k[W].e&&Q(he[re].ks.k[W].e[0]);else he[re].ty==="gr"&&V(he[re].it)}function Q(he){var re,se=he.i.length;for(re=0;re<se;re+=1)he.i[re][0]+=he.v[re][0],he.i[re][1]+=he.v[re][1],he.o[re][0]+=he.v[re][0],he.o[re][1]+=he.v[re][1]}function ee(he,re){var se=re?re.split("."):[100,100,100];return he[0]>se[0]?!0:se[0]>he[0]?!1:he[1]>se[1]?!0:se[1]>he[1]?!1:he[2]>se[2]?!0:se[2]>he[2]?!1:null}var ie=(function(){var he=[4,4,14];function re(W){var K=W.t.d;W.t.d={k:[{s:K,t:0}]}}function se(W){var K,oe=W.length;for(K=0;K<oe;K+=1)W[K].ty===5&&re(W[K])}return function(W){if(ee(he,W.v)&&(se(W.layers),W.assets)){var K,oe=W.assets.length;for(K=0;K<oe;K+=1)W.assets[K].layers&&se(W.assets[K].layers)}}})(),ae=(function(){var he=[4,7,99];return function(re){if(re.chars&&!ee(he,re.v)){var se,W=re.chars.length;for(se=0;se<W;se+=1){var K=re.chars[se];K.data&&K.data.shapes&&(V(K.data.shapes),K.data.ip=0,K.data.op=99999,K.data.st=0,K.data.sr=1,K.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}},re.chars[se].t||(K.data.shapes.push({ty:"no"}),K.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"})))}}}})(),le=(function(){var he=[5,7,15];function re(W){var K=W.t.p;typeof K.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})}function se(W){var K,oe=W.length;for(K=0;K<oe;K+=1)W[K].ty===5&&re(W[K])}return function(W){if(ee(he,W.v)&&(se(W.layers),W.assets)){var K,oe=W.assets.length;for(K=0;K<oe;K+=1)W.assets[K].layers&&se(W.assets[K].layers)}}})(),ye=(function(){var he=[4,1,9];function re(W){var K,oe=W.length,ne,ce;for(K=0;K<oe;K+=1)if(W[K].ty==="gr")re(W[K].it);else if(W[K].ty==="fl"||W[K].ty==="st")if(W[K].c.k&&W[K].c.k[0].i)for(ce=W[K].c.k.length,ne=0;ne<ce;ne+=1)W[K].c.k[ne].s&&(W[K].c.k[ne].s[0]/=255,W[K].c.k[ne].s[1]/=255,W[K].c.k[ne].s[2]/=255,W[K].c.k[ne].s[3]/=255),W[K].c.k[ne].e&&(W[K].c.k[ne].e[0]/=255,W[K].c.k[ne].e[1]/=255,W[K].c.k[ne].e[2]/=255,W[K].c.k[ne].e[3]/=255);else W[K].c.k[0]/=255,W[K].c.k[1]/=255,W[K].c.k[2]/=255,W[K].c.k[3]/=255}function se(W){var K,oe=W.length;for(K=0;K<oe;K+=1)W[K].ty===4&&re(W[K].shapes)}return function(W){if(ee(he,W.v)&&(se(W.layers),W.assets)){var K,oe=W.assets.length;for(K=0;K<oe;K+=1)W.assets[K].layers&&se(W.assets[K].layers)}}})(),ue=(function(){var he=[4,4,18];function re(W){var K,oe=W.length,ne,ce;for(K=oe-1;K>=0;K-=1)if(W[K].ty==="sh")if(W[K].ks.k.i)W[K].ks.k.c=W[K].closed;else for(ce=W[K].ks.k.length,ne=0;ne<ce;ne+=1)W[K].ks.k[ne].s&&(W[K].ks.k[ne].s[0].c=W[K].closed),W[K].ks.k[ne].e&&(W[K].ks.k[ne].e[0].c=W[K].closed);else W[K].ty==="gr"&&re(W[K].it)}function se(W){var K,oe,ne=W.length,ce,pe,de,xe;for(oe=0;oe<ne;oe+=1){if(K=W[oe],K.hasMask){var be=K.masksProperties;for(pe=be.length,ce=0;ce<pe;ce+=1)if(be[ce].pt.k.i)be[ce].pt.k.c=be[ce].cl;else for(xe=be[ce].pt.k.length,de=0;de<xe;de+=1)be[ce].pt.k[de].s&&(be[ce].pt.k[de].s[0].c=be[ce].cl),be[ce].pt.k[de].e&&(be[ce].pt.k[de].e[0].c=be[ce].cl)}K.ty===4&&re(K.shapes)}}return function(W){if(ee(he,W.v)&&(se(W.layers),W.assets)){var K,oe=W.assets.length;for(K=0;K<oe;K+=1)W.assets[K].layers&&se(W.assets[K].layers)}}})();function fe(he){he.__complete||(ye(he),ie(he),ae(he),le(he),ue(he),te(he.layers,he.assets),j(he.chars,he.assets),he.__complete=!0)}function me(he){he.t.a.length===0&&"m"in he.t.p}var ve={};return ve.completeData=fe,ve.checkColors=ye,ve.checkChars=ae,ve.checkPathProperties=le,ve.checkShapes=ue,ve.completeLayers=te,ve}if(n.dataManager||(n.dataManager=H()),n.assetLoader||(n.assetLoader=(function(){function te(Z){var M=Z.getResponseHeader("content-type");return M&&Z.responseType==="json"&&M.indexOf("json")!==-1||Z.response&&_typeof$5(Z.response)==="object"?Z.response:Z.response&&typeof Z.response=="string"?JSON.parse(Z.response):Z.responseText?JSON.parse(Z.responseText):null}function j(Z,M,V,Q){var ee,ie=new XMLHttpRequest;try{ie.responseType="json"}catch{}ie.onreadystatechange=function(){if(ie.readyState===4)if(ie.status===200)ee=te(ie),V(ee);else try{ee=te(ie),V(ee)}catch(ae){Q&&Q(ae)}};try{ie.open(["G","E","T"].join(""),Z,!0)}catch{ie.open(["G","E","T"].join(""),M+"/"+Z,!0)}ie.send()}return{load:j}})()),q.data.type==="loadAnimation")n.assetLoader.load(q.data.path,q.data.fullPath,function(te){n.dataManager.completeData(te),n.postMessage({id:q.data.id,payload:te,status:"success"})},function(){n.postMessage({id:q.data.id,status:"error"})});else if(q.data.type==="complete"){var G=q.data.animation;n.dataManager.completeData(G),n.postMessage({id:q.data.id,payload:G,status:"success"})}else q.data.type==="loadData"&&n.assetLoader.load(q.data.path,q.data.fullPath,function(te){n.postMessage({id:q.data.id,payload:te,status:"success"})},function(){n.postMessage({id:q.data.id,status:"error"})})}),i.onmessage=function(y){var q=y.data,H=q.id,G=t[H];t[H]=null,q.status==="success"?G.onComplete(q.payload):G.onError&&G.onError()})}function h(y,q){e+=1;var H="processId_"+e;return t[H]={onComplete:y,onError:q},H}function d(y,q,H){l();var G=h(q,H);i.postMessage({type:"loadAnimation",path:y,fullPath:window.location.origin+window.location.pathname,id:G})}function F(y,q,H){l();var G=h(q,H);i.postMessage({type:"loadData",path:y,fullPath:window.location.origin+window.location.pathname,id:G})}function J(y,q,H){l();var G=h(q,H);i.postMessage({type:"complete",animation:y,id:G})}return{loadAnimation:d,loadData:F,completeAnimation:J}})(),ImagePreloader=(function(){var e=(function(){var j=createTag("canvas");j.width=1,j.height=1;var Z=j.getContext("2d");return Z.fillStyle="rgba(0,0,0,0)",Z.fillRect(0,0,1,1),j})();function t(){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(j,Z,M){var V="";if(j.e)V=j.p;else if(Z){var Q=j.p;Q.indexOf("images/")!==-1&&(Q=Q.split("/")[1]),V=Z+Q}else V=M,V+=j.u?j.u:"",V+=j.p;return V}function s(j){var Z=0,M=setInterval((function(){var V=j.getBBox();(V.width||Z>500)&&(this._imageLoaded(),clearInterval(M)),Z+=1}).bind(this),50)}function n(j){var Z=i(j,this.assetsPath,this.path),M=createNS("image");isSafari?this.testImageLoaded(M):M.addEventListener("load",this._imageLoaded,!1),M.addEventListener("error",(function(){V.img=e,this._imageLoaded()}).bind(this),!1),M.setAttributeNS("http://www.w3.org/1999/xlink","href",Z),this._elementHelper.append?this._elementHelper.append(M):this._elementHelper.appendChild(M);var V={img:M,assetData:j};return V}function a(j){var Z=i(j,this.assetsPath,this.path),M=createTag("img");M.crossOrigin="anonymous",M.addEventListener("load",this._imageLoaded,!1),M.addEventListener("error",(function(){V.img=e,this._imageLoaded()}).bind(this),!1),M.src=Z;var V={img:M,assetData:j};return V}function l(j){var Z={assetData:j},M=i(j,this.assetsPath,this.path);return dataManager.loadData(M,(function(V){Z.img=V,this._footageLoaded()}).bind(this),(function(){Z.img={},this._footageLoaded()}).bind(this)),Z}function h(j,Z){this.imagesLoadedCb=Z;var M,V=j.length;for(M=0;M<V;M+=1)j[M].layers||(!j[M].t||j[M].t==="seq"?(this.totalImages+=1,this.images.push(this._createImageData(j[M]))):j[M].t===3&&(this.totalFootages+=1,this.images.push(this.createFootageData(j[M]))))}function d(j){this.path=j||""}function F(j){this.assetsPath=j||""}function J(j){for(var Z=0,M=this.images.length;Z<M;){if(this.images[Z].assetData===j)return this.images[Z].img;Z+=1}return null}function y(){this.imagesLoadedCb=null,this.images.length=0}function q(){return this.totalImages===this.loadedAssets}function H(){return this.totalFootages===this.loadedFootagesCount}function G(j,Z){j==="svg"?(this._elementHelper=Z,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}function te(){this._imageLoaded=t.bind(this),this._footageLoaded=r.bind(this),this.testImageLoaded=s.bind(this),this.createFootageData=l.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return te.prototype={loadAssets:h,setAssetsPath:F,setPath:d,loadedImages:q,loadedFootages:H,destroy:y,getAsset:J,createImgData:a,createImageData:n,imageLoaded:t,footageLoaded:r,setCacheType:G},te})();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(t,r){if(this._cbs[t])for(var i=this._cbs[t],s=0;s<i.length;s+=1)i[s](r)},addEventListener:function(t,r){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(r),(function(){this.removeEventListener(t,r)}).bind(this)},removeEventListener:function(t,r){if(!r)this._cbs[t]=null;else if(this._cbs[t]){for(var i=0,s=this._cbs[t].length;i<s;)this._cbs[t][i]===r&&(this._cbs[t].splice(i,1),i-=1,s-=1),i+=1;this._cbs[t].length||(this._cbs[t]=null)}}};var markerParser=(function(){function e(t){for(var r=t.split(`\r
2
2
  `),i={},s,n=0,a=0;a<r.length;a+=1)s=r[a].split(":"),s.length===2&&(i[s[0]]=s[1].trim(),n+=1);if(n===0)throw new Error;return i}return function(t){for(var r=[],i=0;i<t.length;i+=1){var s=t[i],n={time:s.tm,duration:s.dr};try{n.payload=JSON.parse(t[i].cm)}catch{try{n.payload=e(t[i].cm)}catch{n.payload={name:t[i].cm}}}r.push(n)}return r}})(),ProjectInterface=(function(){function e(t){this.compositions.push(t)}return function(){function t(r){for(var i=0,s=this.compositions.length;i<s;){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 t.compositions=[],t.currentFrame=0,t.registerComposition=e,t}})(),renderers={},registerRenderer=function(t,r){renderers[t]=r};function getRenderer(e){return renderers[e]}function getRegisteredRenderer(){if(renderers.canvas)return"canvas";for(var e in renderers)if(renderers[e])return e;return""}function _typeof$4(e){"@babel/helpers - typeof";return _typeof$4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$4(e)}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),this.expressionsPlugin=getExpressionsPlugin()};extendPrototype([BaseEvent],AnimationItem),AnimationItem.prototype.setParams=function(e){(e.wrapper||e.container)&&(this.wrapper=e.wrapper||e.container);var t="svg";e.animType?t=e.animType:e.renderer&&(t=e.renderer);var r=getRenderer(t);this.renderer=new r(this,e.rendererSettings),this.imagePreloader.setCacheType(t,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=t,e.loop===""||e.loop===null||e.loop===void 0||e.loop===!0?this.loop=!0:e.loop===!1?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay="autoplay"in e?e.autoplay:!0,this.name=e.name?e.name:"",this.autoloadSegments=Object.prototype.hasOwnProperty.call(e,"autoloadSegments")?e.autoloadSegments:!0,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(e.path.lastIndexOf("\\")!==-1?this.path=e.path.substr(0,e.path.lastIndexOf("\\")+1):this.path=e.path.substr(0,e.path.lastIndexOf("/")+1),this.fileName=e.path.substr(e.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(e.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(e){dataManager.completeAnimation(e,this.configAnimation)},AnimationItem.prototype.setData=function(e,t){t&&_typeof$4(t)!=="object"&&(t=JSON.parse(t));var r={wrapper:e,animationData:t},i=e.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:getRegisteredRenderer()||"canvas";var s=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:"";s==="false"?r.loop=!1:s==="true"?r.loop=!0:s!==""&&(r.loop=parseInt(s,10));var n=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:!0;r.autoplay=n!=="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:"";var a=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:"";a==="false"&&(r.prerender=!1),r.path?this.setParams(r):this.trigger("destroy")},AnimationItem.prototype.includeLayers=function(e){e.op>this.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var t=this.animationData.layers,r,i=t.length,s=e.layers,n,a=s.length;for(n=0;n<a;n+=1)for(r=0;r<i;){if(t[r].id===s[n].id){t[r]=s[n];break}r+=1}if((e.chars||e.fonts)&&(this.renderer.globalData.fontManager.addChars(e.chars),this.renderer.globalData.fontManager.addFonts(e.fonts,this.renderer.globalData.defs)),e.assets)for(i=e.assets.length,r=0;r<i;r+=1)this.animationData.assets.push(e.assets[r]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(e){this.animationData=e;var t=getExpressionsPlugin();t&&t.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var e=this.animationData.segments;if(!e||e.length===0||!this.autoloadSegments){this.trigger("data_ready"),this.timeCompleted=this.totalFrames;return}var t=e.shift();this.timeCompleted=t.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(){var e=this.animationData.segments;e||(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(e){if(this.renderer)try{this.animationData=e,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(e),e.assets||(e.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(e.assets),this.markers=markerParser(e.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(t){this.triggerConfigError(t)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||this.renderer.rendererType!=="canvas")&&this.imagePreloader.loadedFootages()){this.isLoaded=!0;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.renderer.initItems(),setTimeout((function(){this.trigger("DOMLoaded")}).bind(this),0),this.gotoFrame(),this.autoplay&&this.play()}},AnimationItem.prototype.resize=function(e,t){var r=typeof e=="number"?e:void 0,i=typeof t=="number"?t:void 0;this.renderer.updateContainerSize(r,i)},AnimationItem.prototype.setSubframe=function(e){this.isSubframeEnabled=!!e},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.expressionsPlugin&&this.expressionsPlugin.resetFrame(),this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},AnimationItem.prototype.play=function(e){e&&this.name!==e||this.isPaused===!0&&(this.isPaused=!1,this.trigger("_play"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(e){e&&this.name!==e||this.isPaused===!1&&(this.isPaused=!0,this.trigger("_pause"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(e){e&&this.name!==e||(this.isPaused===!0?this.play():this.pause())},AnimationItem.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(e){for(var t,r=0;r<this.markers.length;r+=1)if(t=this.markers[r],t.payload&&t.payload.name===e)return t;return null},AnimationItem.prototype.goToAndStop=function(e,t,r){if(!(r&&this.name!==r)){var i=Number(e);if(isNaN(i)){var s=this.getMarkerData(e);s&&this.goToAndStop(s.time,!0)}else t?this.setCurrentRawFrameValue(e):this.setCurrentRawFrameValue(e*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(e,t,r){if(!(r&&this.name!==r)){var i=Number(e);if(isNaN(i)){var s=this.getMarkerData(e);s&&(s.duration?this.playSegments([s.time,s.time+s.duration],!0):this.goToAndStop(s.time,!0))}else this.goToAndStop(i,t,r);this.play()}},AnimationItem.prototype.advanceTime=function(e){if(!(this.isPaused===!0||this.isLoaded===!1)){var t=this.currentRawFrame+e*this.frameModifier,r=!1;t>=this.totalFrames-1&&this.frameModifier>0?!this.loop||this.playCount===this.loop?this.checkSegments(t>this.totalFrames?t%this.totalFrames:0)||(r=!0,t=this.totalFrames-1):t>=this.totalFrames?(this.playCount+=1,this.checkSegments(t%this.totalFrames)||(this.setCurrentRawFrameValue(t%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(t):t<0?this.checkSegments(t%this.totalFrames)||(this.loop&&!(this.playCount--<=0&&this.loop!==!0)?(this.setCurrentRawFrameValue(this.totalFrames+t%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0):(r=!0,t=0)):this.setCurrentRawFrameValue(t),r&&(this.setCurrentRawFrameValue(t),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(e,t){this.playCount=0,e[1]<e[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-t)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+t)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(e,t){var r=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<e?r=e:this.currentRawFrame+this.firstFrame>t&&(r=t-e)),this.firstFrame=e,this.totalFrames=t-e,this.timeCompleted=this.totalFrames,r!==-1&&this.goToAndStop(r,!0)},AnimationItem.prototype.playSegments=function(e,t){if(t&&(this.segments.length=0),_typeof$4(e[0])==="object"){var r,i=e.length;for(r=0;r<i;r+=1)this.segments.push(e[r])}else this.segments.push(e);this.segments.length&&t&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(e){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),e&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(e){return this.segments.length?(this.adjustSegment(this.segments.shift(),e),!0):!1},AnimationItem.prototype.destroy=function(e){e&&this.name!==e||!this.renderer||(this.renderer.destroy(),this.imagePreloader.destroy(),this.trigger("destroy"),this._cbs=null,this.onEnterFrame=null,this.onLoopComplete=null,this.onComplete=null,this.onSegmentStart=null,this.onDestroy=null,this.renderer=null,this.expressionsPlugin=null,this.imagePreloader=null,this.projectInterface=null)},AnimationItem.prototype.setCurrentRawFrameValue=function(e){this.currentRawFrame=e,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(e){this.playSpeed=e,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(e){this.playDirection=e<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setLoop=function(e){this.loop=e},AnimationItem.prototype.setVolume=function(e,t){t&&this.name!==t||this.audioController.setVolume(e)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(e){e&&this.name!==e||this.audioController.mute()},AnimationItem.prototype.unmute=function(e){e&&this.name!==e||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(e){var t="";if(e.e)t=e.p;else if(this.assetsPath){var r=e.p;r.indexOf("images/")!==-1&&(r=r.split("/")[1]),t=this.assetsPath+r}else t=this.path,t+=e.u?e.u:"",t+=e.p;return t},AnimationItem.prototype.getAssetData=function(e){for(var t=0,r=this.assets.length;t<r;){if(e===this.assets[t].id)return this.assets[t];t+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(e){return e?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(e,t,r){try{var i=this.renderer.getElementByPath(e);i.updateDocumentData(t,r)}catch{}},AnimationItem.prototype.trigger=function(e){if(this._cbs&&this._cbs[e])switch(e){case"enterFrame":this.triggerEvent(e,new BMEnterFrameEvent(e,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(e,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(e,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(e,new BMCompleteEvent(e,this.frameMult));break;case"segmentStart":this.triggerEvent(e,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(e,new BMDestroyEvent(e,this));break;default:this.triggerEvent(e)}e==="enterFrame"&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameMult)),e==="loopComplete"&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult)),e==="complete"&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(e,this.frameMult)),e==="segmentStart"&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames)),e==="destroy"&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(e,this))},AnimationItem.prototype.triggerRenderFrameError=function(e){var t=new BMRenderFrameErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)},AnimationItem.prototype.triggerConfigError=function(e){var t=new BMConfigErrorEvent(e,this.currentFrame);this.triggerEvent("error",t),this.onError&&this.onError.call(this,t)};var animationManager=(function(){var e={},t=[],r=0,i=0,s=0,n=!0,a=!1;function l(re){for(var se=0,W=re.target;se<i;)t[se].animation===W&&(t.splice(se,1),se-=1,i-=1,W.isPaused||J()),se+=1}function h(re,se){if(!re)return null;for(var W=0;W<i;){if(t[W].elem===re&&t[W].elem!==null)return t[W].animation;W+=1}var K=new AnimationItem;return y(K,re),K.setData(re,se),K}function d(){var re,se=t.length,W=[];for(re=0;re<se;re+=1)W.push(t[re].animation);return W}function F(){s+=1,ye()}function J(){s-=1}function y(re,se){re.addEventListener("destroy",l),re.addEventListener("_active",F),re.addEventListener("_idle",J),t.push({elem:se,animation:re}),i+=1}function q(re){var se=new AnimationItem;return y(se,null),se.setParams(re),se}function H(re,se){var W;for(W=0;W<i;W+=1)t[W].animation.setSpeed(re,se)}function G(re,se){var W;for(W=0;W<i;W+=1)t[W].animation.setDirection(re,se)}function te(re){var se;for(se=0;se<i;se+=1)t[se].animation.play(re)}function j(re){var se=re-r,W;for(W=0;W<i;W+=1)t[W].animation.advanceTime(se);r=re,s&&!a?window.requestAnimationFrame(j):n=!0}function Z(re){r=re,window.requestAnimationFrame(j)}function M(re){var se;for(se=0;se<i;se+=1)t[se].animation.pause(re)}function V(re,se,W){var K;for(K=0;K<i;K+=1)t[K].animation.goToAndStop(re,se,W)}function Q(re){var se;for(se=0;se<i;se+=1)t[se].animation.stop(re)}function ee(re){var se;for(se=0;se<i;se+=1)t[se].animation.togglePause(re)}function ie(re){var se;for(se=i-1;se>=0;se-=1)t[se].animation.destroy(re)}function ae(re,se,W){var K=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),oe,ne=K.length;for(oe=0;oe<ne;oe+=1)W&&K[oe].setAttribute("data-bm-type",W),h(K[oe],re);if(se&&ne===0){W||(W="svg");var ce=document.getElementsByTagName("body")[0];ce.innerText="";var pe=createTag("div");pe.style.width="100%",pe.style.height="100%",pe.setAttribute("data-bm-type",W),ce.appendChild(pe),h(pe,re)}}function le(){var re;for(re=0;re<i;re+=1)t[re].animation.resize()}function ye(){!a&&s&&n&&(window.requestAnimationFrame(Z),n=!1)}function ue(){a=!0}function fe(){a=!1,ye()}function me(re,se){var W;for(W=0;W<i;W+=1)t[W].animation.setVolume(re,se)}function ve(re){var se;for(se=0;se<i;se+=1)t[se].animation.mute(re)}function he(re){var se;for(se=0;se<i;se+=1)t[se].animation.unmute(re)}return e.registerAnimation=h,e.loadAnimation=q,e.setSpeed=H,e.setDirection=G,e.play=te,e.pause=M,e.stop=Q,e.togglePause=ee,e.searchAnimations=ae,e.resize=le,e.goToAndStop=V,e.destroy=ie,e.freeze=ue,e.unfreeze=fe,e.setVolume=me,e.mute=ve,e.unmute=he,e.getRegisteredAnimations=d,e})(),BezierFactory=(function(){var e={};e.getBezierEasing=r;var t={};function r(Z,M,V,Q,ee){var ie=ee||("bez_"+Z+"_"+M+"_"+V+"_"+Q).replace(/\./g,"p");if(t[ie])return t[ie];var ae=new j([Z,M,V,Q]);return t[ie]=ae,ae}var i=4,s=.001,n=1e-7,a=10,l=11,h=1/(l-1),d=typeof Float32Array=="function";function F(Z,M){return 1-3*M+3*Z}function J(Z,M){return 3*M-6*Z}function y(Z){return 3*Z}function q(Z,M,V){return((F(M,V)*Z+J(M,V))*Z+y(M))*Z}function H(Z,M,V){return 3*F(M,V)*Z*Z+2*J(M,V)*Z+y(M)}function G(Z,M,V,Q,ee){var ie,ae,le=0;do ae=M+(V-M)/2,ie=q(ae,Q,ee)-Z,ie>0?V=ae:M=ae;while(Math.abs(ie)>n&&++le<a);return ae}function te(Z,M,V,Q){for(var ee=0;ee<i;++ee){var ie=H(M,V,Q);if(ie===0)return M;var ae=q(M,V,Q)-Z;M-=ae/ie}return M}function j(Z){this._p=Z,this._mSampleValues=d?new Float32Array(l):new Array(l),this._precomputed=!1,this.get=this.get.bind(this)}return j.prototype={get:function(M){var V=this._p[0],Q=this._p[1],ee=this._p[2],ie=this._p[3];return this._precomputed||this._precompute(),V===Q&&ee===ie?M:M===0?0:M===1?1:q(this._getTForX(M),Q,ie)},_precompute:function(){var M=this._p[0],V=this._p[1],Q=this._p[2],ee=this._p[3];this._precomputed=!0,(M!==V||Q!==ee)&&this._calcSampleValues()},_calcSampleValues:function(){for(var M=this._p[0],V=this._p[2],Q=0;Q<l;++Q)this._mSampleValues[Q]=q(Q*h,M,V)},_getTForX:function(M){for(var V=this._p[0],Q=this._p[2],ee=this._mSampleValues,ie=0,ae=1,le=l-1;ae!==le&&ee[ae]<=M;++ae)ie+=h;--ae;var ye=(M-ee[ae])/(ee[ae+1]-ee[ae]),ue=ie+ye*h,fe=H(ue,V,Q);return fe>=s?te(M,ue,V,Q):fe===0?ue:G(M,ie,ie+h,V,Q)}},e})(),pooling=(function(){function e(t){return t.concat(createSizedArray(t.length))}return{double:e}})(),poolFactory=(function(){return function(e,t,r){var i=0,s=e,n=createSizedArray(s),a={newElement:l,release:h};function l(){var d;return i?(i-=1,d=n[i]):d=t(),d}function h(d){i===s&&(n=pooling.double(n),s*=2),r&&r(d),n[i]=d,i+=1}return a}})(),bezierLengthPool=(function(){function e(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}}return poolFactory(8,e)})(),segmentsLengthPool=(function(){function e(){return{lengths:[],totalLength:0}}function t(r){var i,s=r.lengths.length;for(i=0;i<s;i+=1)bezierLengthPool.release(r.lengths[i]);r.lengths.length=0}return poolFactory(8,e,t)})();function bezFunction(){var e=Math;function t(y,q,H,G,te,j){var Z=y*G+q*te+H*j-te*G-j*y-H*q;return Z>-.001&&Z<.001}function r(y,q,H,G,te,j,Z,M,V){if(H===0&&j===0&&V===0)return t(y,q,G,te,Z,M);var Q=e.sqrt(e.pow(G-y,2)+e.pow(te-q,2)+e.pow(j-H,2)),ee=e.sqrt(e.pow(Z-y,2)+e.pow(M-q,2)+e.pow(V-H,2)),ie=e.sqrt(e.pow(Z-G,2)+e.pow(M-te,2)+e.pow(V-j,2)),ae;return Q>ee?Q>ie?ae=Q-ee-ie:ae=ie-ee-Q:ie>ee?ae=ie-ee-Q:ae=ee-Q-ie,ae>-1e-4&&ae<1e-4}var i=(function(){return function(y,q,H,G){var te=getDefaultCurveSegments(),j,Z,M,V,Q,ee=0,ie,ae=[],le=[],ye=bezierLengthPool.newElement();for(M=H.length,j=0;j<te;j+=1){for(Q=j/(te-1),ie=0,Z=0;Z<M;Z+=1)V=bmPow(1-Q,3)*y[Z]+3*bmPow(1-Q,2)*Q*H[Z]+3*(1-Q)*bmPow(Q,2)*G[Z]+bmPow(Q,3)*q[Z],ae[Z]=V,le[Z]!==null&&(ie+=bmPow(ae[Z]-le[Z],2)),le[Z]=ae[Z];ie&&(ie=bmSqrt(ie),ee+=ie),ye.percents[j]=Q,ye.lengths[j]=ee}return ye.addedLength=ee,ye}})();function s(y){var q=segmentsLengthPool.newElement(),H=y.c,G=y.v,te=y.o,j=y.i,Z,M=y._length,V=q.lengths,Q=0;for(Z=0;Z<M-1;Z+=1)V[Z]=i(G[Z],G[Z+1],te[Z],j[Z+1]),Q+=V[Z].addedLength;return H&&M&&(V[Z]=i(G[Z],G[0],te[Z],j[0]),Q+=V[Z].addedLength),q.totalLength=Q,q}function n(y){this.segmentLength=0,this.points=new Array(y)}function a(y,q){this.partialLength=y,this.point=q}var l=(function(){var y={};return function(q,H,G,te){var j=(q[0]+"_"+q[1]+"_"+H[0]+"_"+H[1]+"_"+G[0]+"_"+G[1]+"_"+te[0]+"_"+te[1]).replace(/\./g,"p");if(!y[j]){var Z=getDefaultCurveSegments(),M,V,Q,ee,ie,ae=0,le,ye,ue=null;q.length===2&&(q[0]!==H[0]||q[1]!==H[1])&&t(q[0],q[1],H[0],H[1],q[0]+G[0],q[1]+G[1])&&t(q[0],q[1],H[0],H[1],H[0]+te[0],H[1]+te[1])&&(Z=2);var fe=new n(Z);for(Q=G.length,M=0;M<Z;M+=1){for(ye=createSizedArray(Q),ie=M/(Z-1),le=0,V=0;V<Q;V+=1)ee=bmPow(1-ie,3)*q[V]+3*bmPow(1-ie,2)*ie*(q[V]+G[V])+3*(1-ie)*bmPow(ie,2)*(H[V]+te[V])+bmPow(ie,3)*H[V],ye[V]=ee,ue!==null&&(le+=bmPow(ye[V]-ue[V],2));le=bmSqrt(le),ae+=le,fe.points[M]=new a(le,ye),ue=ye}fe.segmentLength=ae,y[j]=fe}return y[j]}})();function h(y,q){var H=q.percents,G=q.lengths,te=H.length,j=bmFloor((te-1)*y),Z=y*q.addedLength,M=0;if(j===te-1||j===0||Z===G[j])return H[j];for(var V=G[j]>Z?-1:1,Q=!0;Q;)if(G[j]<=Z&&G[j+1]>Z?(M=(Z-G[j])/(G[j+1]-G[j]),Q=!1):j+=V,j<0||j>=te-1){if(j===te-1)return H[j];Q=!1}return H[j]+(H[j+1]-H[j])*M}function d(y,q,H,G,te,j){var Z=h(te,j),M=1-Z,V=e.round((M*M*M*y[0]+(Z*M*M+M*Z*M+M*M*Z)*H[0]+(Z*Z*M+M*Z*Z+Z*M*Z)*G[0]+Z*Z*Z*q[0])*1e3)/1e3,Q=e.round((M*M*M*y[1]+(Z*M*M+M*Z*M+M*M*Z)*H[1]+(Z*Z*M+M*Z*Z+Z*M*Z)*G[1]+Z*Z*Z*q[1])*1e3)/1e3;return[V,Q]}var F=createTypedArray("float32",8);function J(y,q,H,G,te,j,Z){te<0?te=0:te>1&&(te=1);var M=h(te,Z);j=j>1?1:j;var V=h(j,Z),Q,ee=y.length,ie=1-M,ae=1-V,le=ie*ie*ie,ye=M*ie*ie*3,ue=M*M*ie*3,fe=M*M*M,me=ie*ie*ae,ve=M*ie*ae+ie*M*ae+ie*ie*V,he=M*M*ae+ie*M*V+M*ie*V,re=M*M*V,se=ie*ae*ae,W=M*ae*ae+ie*V*ae+ie*ae*V,K=M*V*ae+ie*V*V+M*ae*V,oe=M*V*V,ne=ae*ae*ae,ce=V*ae*ae+ae*V*ae+ae*ae*V,pe=V*V*ae+ae*V*V+V*ae*V,de=V*V*V;for(Q=0;Q<ee;Q+=1)F[Q*4]=e.round((le*y[Q]+ye*H[Q]+ue*G[Q]+fe*q[Q])*1e3)/1e3,F[Q*4+1]=e.round((me*y[Q]+ve*H[Q]+he*G[Q]+re*q[Q])*1e3)/1e3,F[Q*4+2]=e.round((se*y[Q]+W*H[Q]+K*G[Q]+oe*q[Q])*1e3)/1e3,F[Q*4+3]=e.round((ne*y[Q]+ce*H[Q]+pe*G[Q]+de*q[Q])*1e3)/1e3;return F}return{getSegmentsLength:s,getNewSegment:J,getPointInSegment:d,buildBezierData:l,pointOnLine2D:t,pointOnLine3D:r}}var bez=bezFunction(),initFrame=initialDefaultFrame,mathAbs=Math.abs;function interpolateValue(e,t){var r=this.offsetTime,i;this.propType==="multidimensional"&&(i=createTypedArray("float32",this.pv.length));for(var s=t.lastIndex,n=s,a=this.keyframes.length-1,l=!0,h,d,F;l;){if(h=this.keyframes[n],d=this.keyframes[n+1],n===a-1&&e>=d.t-r){h.h&&(h=d),s=0;break}if(d.t-r>e){s=n;break}n<a-1?n+=1:(s=0,l=!1)}F=this.keyframesMetadata[n]||{};var J,y,q,H,G,te,j=d.t-r,Z=h.t-r,M;if(h.to){F.bezierData||(F.bezierData=bez.buildBezierData(h.s,d.s||h.e,h.to,h.ti));var V=F.bezierData;if(e>=j||e<Z){var Q=e>=j?V.points.length-1:0;for(y=V.points[Q].point.length,J=0;J<y;J+=1)i[J]=V.points[Q].point[J]}else{F.__fnct?te=F.__fnct:(te=BezierFactory.getBezierEasing(h.o.x,h.o.y,h.i.x,h.i.y,h.n).get,F.__fnct=te),q=te((e-Z)/(j-Z));var ee=V.segmentLength*q,ie,ae=t.lastFrame<e&&t._lastKeyframeIndex===n?t._lastAddedLength:0;for(G=t.lastFrame<e&&t._lastKeyframeIndex===n?t._lastPoint:0,l=!0,H=V.points.length;l;){if(ae+=V.points[G].partialLength,ee===0||q===0||G===V.points.length-1){for(y=V.points[G].point.length,J=0;J<y;J+=1)i[J]=V.points[G].point[J];break}else if(ee>=ae&&ee<ae+V.points[G+1].partialLength){for(ie=(ee-ae)/V.points[G+1].partialLength,y=V.points[G].point.length,J=0;J<y;J+=1)i[J]=V.points[G].point[J]+(V.points[G+1].point[J]-V.points[G].point[J])*ie;break}G<H-1?G+=1:l=!1}t._lastPoint=G,t._lastAddedLength=ae-V.points[G].partialLength,t._lastKeyframeIndex=n}}else{var le,ye,ue,fe,me;if(a=h.s.length,M=d.s||h.e,this.sh&&h.h!==1)if(e>=j)i[0]=M[0],i[1]=M[1],i[2]=M[2];else if(e<=Z)i[0]=h.s[0],i[1]=h.s[1],i[2]=h.s[2];else{var ve=createQuaternion(h.s),he=createQuaternion(M),re=(e-Z)/(j-Z);quaternionToEuler(i,slerp(ve,he,re))}else for(n=0;n<a;n+=1)h.h!==1&&(e>=j?q=1:e<Z?q=0:(h.o.x.constructor===Array?(F.__fnct||(F.__fnct=[]),F.__fnct[n]?te=F.__fnct[n]:(le=h.o.x[n]===void 0?h.o.x[0]:h.o.x[n],ye=h.o.y[n]===void 0?h.o.y[0]:h.o.y[n],ue=h.i.x[n]===void 0?h.i.x[0]:h.i.x[n],fe=h.i.y[n]===void 0?h.i.y[0]:h.i.y[n],te=BezierFactory.getBezierEasing(le,ye,ue,fe).get,F.__fnct[n]=te)):F.__fnct?te=F.__fnct:(le=h.o.x,ye=h.o.y,ue=h.i.x,fe=h.i.y,te=BezierFactory.getBezierEasing(le,ye,ue,fe).get,h.keyframeMetadata=te),q=te((e-Z)/(j-Z)))),M=d.s||h.e,me=h.h===1?h.s[n]:h.s[n]+(M[n]-h.s[n])*q,this.propType==="multidimensional"?i[n]=me:i=me}return t.lastIndex=s,i}function slerp(e,t,r){var i=[],s=e[0],n=e[1],a=e[2],l=e[3],h=t[0],d=t[1],F=t[2],J=t[3],y,q,H,G,te;return q=s*h+n*d+a*F+l*J,q<0&&(q=-q,h=-h,d=-d,F=-F,J=-J),1-q>1e-6?(y=Math.acos(q),H=Math.sin(y),G=Math.sin((1-r)*y)/H,te=Math.sin(r*y)/H):(G=1-r,te=r),i[0]=G*s+te*h,i[1]=G*n+te*d,i[2]=G*a+te*F,i[3]=G*l+te*J,i}function quaternionToEuler(e,t){var r=t[0],i=t[1],s=t[2],n=t[3],a=Math.atan2(2*i*n-2*r*s,1-2*i*i-2*s*s),l=Math.asin(2*r*i+2*s*n),h=Math.atan2(2*r*n-2*i*s,1-2*r*r-2*s*s);e[0]=a/degToRads,e[1]=l/degToRads,e[2]=h/degToRads}function createQuaternion(e){var t=e[0]*degToRads,r=e[1]*degToRads,i=e[2]*degToRads,s=Math.cos(t/2),n=Math.cos(r/2),a=Math.cos(i/2),l=Math.sin(t/2),h=Math.sin(r/2),d=Math.sin(i/2),F=s*n*a-l*h*d,J=l*h*a+s*n*d,y=l*n*a+s*h*d,q=s*h*a-l*n*d;return[J,y,q,F]}function getValueAtCurrentTime(){var e=this.comp.renderedFrame-this.offsetTime,t=this.keyframes[0].t-this.offsetTime,r=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==initFrame&&(this._caching.lastFrame>=r&&e>=r||this._caching.lastFrame<t&&e<t))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var i=this.interpolateValue(e,this._caching);this.pv=i}return this._caching.lastFrame=e,this.pv}function setVValue(e){var t;if(this.propType==="unidimensional")t=e*this.mult,mathAbs(this.v-t)>1e-5&&(this.v=t,this._mdf=!0);else for(var r=0,i=this.v.length;r<i;)t=e[r]*this.mult,mathAbs(this.v[r]-t)>1e-5&&(this.v[r]=t,this._mdf=!0),r+=1}function processEffectsSequence(){if(!(this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)){if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=this._isFirstFrame;var e,t=this.effectsSequence.length,r=this.kf?this.pv:this.data.k;for(e=0;e<t;e+=1)r=this.effectsSequence[e](r);this.setVValue(r),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function addEffect(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function ValueProperty(e,t,r,i){this.propType="unidimensional",this.mult=r||1,this.data=t,this.v=r?t.k*r:t.k,this.pv=t.k,this._mdf=!1,this.elem=e,this.container=i,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function MultiDimensionalProperty(e,t,r,i){this.propType="multidimensional",this.mult=r||1,this.data=t,this._mdf=!1,this.elem=e,this.container=i,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var s,n=t.k.length;for(this.v=createTypedArray("float32",n),this.pv=createTypedArray("float32",n),this.vel=createTypedArray("float32",n),s=0;s<n;s+=1)this.v[s]=t.k[s]*this.mult,this.pv[s]=t.k[s];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=processEffectsSequence,this.setVValue=setVValue,this.addEffect=addEffect}function KeyframedValueProperty(e,t,r,i){this.propType="unidimensional",this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:initFrame,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=t,this.mult=r||1,this.elem=e,this.container=i,this.comp=e.comp,this.v=initFrame,this.pv=initFrame,this._isFirstFrame=!0,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.addEffect=addEffect}function KeyframedMultidimensionalProperty(e,t,r,i){this.propType="multidimensional";var s,n=t.k.length,a,l,h,d;for(s=0;s<n-1;s+=1)t.k[s].to&&t.k[s].s&&t.k[s+1]&&t.k[s+1].s&&(a=t.k[s].s,l=t.k[s+1].s,h=t.k[s].to,d=t.k[s].ti,(a.length===2&&!(a[0]===l[0]&&a[1]===l[1])&&bez.pointOnLine2D(a[0],a[1],l[0],l[1],a[0]+h[0],a[1]+h[1])&&bez.pointOnLine2D(a[0],a[1],l[0],l[1],l[0]+d[0],l[1]+d[1])||a.length===3&&!(a[0]===l[0]&&a[1]===l[1]&&a[2]===l[2])&&bez.pointOnLine3D(a[0],a[1],a[2],l[0],l[1],l[2],a[0]+h[0],a[1]+h[1],a[2]+h[2])&&bez.pointOnLine3D(a[0],a[1],a[2],l[0],l[1],l[2],l[0]+d[0],l[1]+d[1],l[2]+d[2]))&&(t.k[s].to=null,t.k[s].ti=null),a[0]===l[0]&&a[1]===l[1]&&h[0]===0&&h[1]===0&&d[0]===0&&d[1]===0&&(a.length===2||a[2]===l[2]&&h[2]===0&&d[2]===0)&&(t.k[s].to=null,t.k[s].ti=null));this.effectsSequence=[getValueAtCurrentTime.bind(this)],this.data=t,this.keyframes=t.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=r||1,this.elem=e,this.container=i,this.comp=e.comp,this.getValue=processEffectsSequence,this.setVValue=setVValue,this.interpolateValue=interpolateValue,this.frameId=-1;var F=t.k[0].s.length;for(this.v=createTypedArray("float32",F),this.pv=createTypedArray("float32",F),s=0;s<F;s+=1)this.v[s]=initFrame,this.pv[s]=initFrame;this._caching={lastFrame:initFrame,lastIndex:0,value:createTypedArray("float32",F)},this.addEffect=addEffect}var PropertyFactory=(function(){function e(r,i,s,n,a){i.sid&&(i=r.globalData.slotManager.getProp(i));var l;if(!i.k.length)l=new ValueProperty(r,i,n,a);else if(typeof i.k[0]=="number")l=new MultiDimensionalProperty(r,i,n,a);else switch(s){case 0:l=new KeyframedValueProperty(r,i,n,a);break;case 1:l=new KeyframedMultidimensionalProperty(r,i,n,a);break}return l.effectsSequence.length&&a.addDynamicProperty(l),l}var t={getProp:e};return t})();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(){this._mdf=!1;var t,r=this.dynamicProperties.length;for(t=0;t<r;t+=1)this.dynamicProperties[t].getValue(),this.dynamicProperties[t]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(t){this.container=t,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=(function(){function e(){return createTypedArray("float32",2)}return poolFactory(8,e)})();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(e,t){this.c=e,this.setLength(t);for(var r=0;r<t;)this.v[r]=pointPool.newElement(),this.o[r]=pointPool.newElement(),this.i[r]=pointPool.newElement(),r+=1},ShapePath.prototype.setLength=function(e){for(;this._maxLength<e;)this.doubleArrayLength();this._length=e},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(e,t,r,i,s){var n;switch(this._length=Math.max(this._length,i+1),this._length>=this._maxLength&&this.doubleArrayLength(),r){case"v":n=this.v;break;case"i":n=this.i;break;case"o":n=this.o;break;default:n=[];break}(!n[i]||n[i]&&!s)&&(n[i]=pointPool.newElement()),n[i][0]=e,n[i][1]=t},ShapePath.prototype.setTripleAt=function(e,t,r,i,s,n,a,l){this.setXYAt(e,t,"v",a,l),this.setXYAt(r,i,"o",a,l),this.setXYAt(s,n,"i",a,l)},ShapePath.prototype.reverse=function(){var e=new ShapePath;e.setPathData(this.c,this._length);var t=this.v,r=this.o,i=this.i,s=0;this.c&&(e.setTripleAt(t[0][0],t[0][1],i[0][0],i[0][1],r[0][0],r[0][1],0,!1),s=1);var n=this._length-1,a=this._length,l;for(l=s;l<a;l+=1)e.setTripleAt(t[n][0],t[n][1],i[n][0],i[n][1],r[n][0],r[n][1],l,!1),n-=1;return e},ShapePath.prototype.length=function(){return this._length};var shapePool=(function(){function e(){return new ShapePath}function t(s){var n=s._length,a;for(a=0;a<n;a+=1)pointPool.release(s.v[a]),pointPool.release(s.i[a]),pointPool.release(s.o[a]),s.v[a]=null,s.i[a]=null,s.o[a]=null;s._length=0,s.c=!1}function r(s){var n=i.newElement(),a,l=s._length===void 0?s.v.length:s._length;for(n.setLength(l),n.c=s.c,a=0;a<l;a+=1)n.setTripleAt(s.v[a][0],s.v[a][1],s.o[a][0],s.o[a][1],s.i[a][0],s.i[a][1],a);return n}var i=poolFactory(4,e,t);return i.clone=r,i})();function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(e){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=e,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var e;for(e=0;e<this._length;e+=1)shapePool.release(this.shapes[e]);this._length=0};var shapeCollectionPool=(function(){var e={newShapeCollection:s,release:n},t=0,r=4,i=createSizedArray(r);function s(){var a;return t?(t-=1,a=i[t]):a=new ShapeCollection,a}function n(a){var l,h=a._length;for(l=0;l<h;l+=1)shapePool.release(a.shapes[l]);a._length=0,t===r&&(i=pooling.double(i),r*=2),i[t]=a,t+=1}return e})(),ShapePropertyFactory=(function(){var e=-999999;function t(j,Z,M){var V=M.lastIndex,Q,ee,ie,ae,le,ye,ue,fe,me,ve=this.keyframes;if(j<ve[0].t-this.offsetTime)Q=ve[0].s[0],ie=!0,V=0;else if(j>=ve[ve.length-1].t-this.offsetTime)Q=ve[ve.length-1].s?ve[ve.length-1].s[0]:ve[ve.length-2].e[0],ie=!0;else{for(var he=V,re=ve.length-1,se=!0,W,K,oe;se&&(W=ve[he],K=ve[he+1],!(K.t-this.offsetTime>j));)he<re-1?he+=1:se=!1;if(oe=this.keyframesMetadata[he]||{},ie=W.h===1,V=he,!ie){if(j>=K.t-this.offsetTime)fe=1;else if(j<W.t-this.offsetTime)fe=0;else{var ne;oe.__fnct?ne=oe.__fnct:(ne=BezierFactory.getBezierEasing(W.o.x,W.o.y,W.i.x,W.i.y).get,oe.__fnct=ne),fe=ne((j-(W.t-this.offsetTime))/(K.t-this.offsetTime-(W.t-this.offsetTime)))}ee=K.s?K.s[0]:W.e[0]}Q=W.s[0]}for(ye=Z._length,ue=Q.i[0].length,M.lastIndex=V,ae=0;ae<ye;ae+=1)for(le=0;le<ue;le+=1)me=ie?Q.i[ae][le]:Q.i[ae][le]+(ee.i[ae][le]-Q.i[ae][le])*fe,Z.i[ae][le]=me,me=ie?Q.o[ae][le]:Q.o[ae][le]+(ee.o[ae][le]-Q.o[ae][le])*fe,Z.o[ae][le]=me,me=ie?Q.v[ae][le]:Q.v[ae][le]+(ee.v[ae][le]-Q.v[ae][le])*fe,Z.v[ae][le]=me}function r(){var j=this.comp.renderedFrame-this.offsetTime,Z=this.keyframes[0].t-this.offsetTime,M=this.keyframes[this.keyframes.length-1].t-this.offsetTime,V=this._caching.lastFrame;return V!==e&&(V<Z&&j<Z||V>M&&j>M)||(this._caching.lastIndex=V<j?this._caching.lastIndex:0,this.interpolateShape(j,this.pv,this._caching)),this._caching.lastFrame=j,this.pv}function i(){this.paths=this.localShapeCollection}function s(j,Z){if(j._length!==Z._length||j.c!==Z.c)return!1;var M,V=j._length;for(M=0;M<V;M+=1)if(j.v[M][0]!==Z.v[M][0]||j.v[M][1]!==Z.v[M][1]||j.o[M][0]!==Z.o[M][0]||j.o[M][1]!==Z.o[M][1]||j.i[M][0]!==Z.i[M][0]||j.i[M][1]!==Z.i[M][1])return!1;return!0}function n(j){s(this.v,j)||(this.v=shapePool.clone(j),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function a(){if(this.elem.globalData.frameId!==this.frameId){if(!this.effectsSequence.length){this._mdf=!1;return}if(this.lock){this.setVValue(this.pv);return}this.lock=!0,this._mdf=!1;var j;this.kf?j=this.pv:this.data.ks?j=this.data.ks.k:j=this.data.pt.k;var Z,M=this.effectsSequence.length;for(Z=0;Z<M;Z+=1)j=this.effectsSequence[Z](j);this.setVValue(j),this.lock=!1,this.frameId=this.elem.globalData.frameId}}function l(j,Z,M){this.propType="shape",this.comp=j.comp,this.container=j,this.elem=j,this.data=Z,this.k=!1,this.kf=!1,this._mdf=!1;var V=M===3?Z.pt.k:Z.ks.k;this.v=shapePool.clone(V),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=i,this.effectsSequence=[]}function h(j){this.effectsSequence.push(j),this.container.addDynamicProperty(this)}l.prototype.interpolateShape=t,l.prototype.getValue=a,l.prototype.setVValue=n,l.prototype.addEffect=h;function d(j,Z,M){this.propType="shape",this.comp=j.comp,this.elem=j,this.container=j,this.offsetTime=j.data.st,this.keyframes=M===3?Z.pt.k:Z.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var V=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,V),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=i,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[r.bind(this)]}d.prototype.getValue=a,d.prototype.interpolateShape=t,d.prototype.setVValue=n,d.prototype.addEffect=h;var F=(function(){var j=roundCorner;function Z(M,V){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=V.d,this.elem=M,this.comp=M.comp,this.frameId=-1,this.initDynamicPropertyContainer(M),this.p=PropertyFactory.getProp(M,V.p,1,0,this),this.s=PropertyFactory.getProp(M,V.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return Z.prototype={reset:i,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var V=this.p.v[0],Q=this.p.v[1],ee=this.s.v[0]/2,ie=this.s.v[1]/2,ae=this.d!==3,le=this.v;le.v[0][0]=V,le.v[0][1]=Q-ie,le.v[1][0]=ae?V+ee:V-ee,le.v[1][1]=Q,le.v[2][0]=V,le.v[2][1]=Q+ie,le.v[3][0]=ae?V-ee:V+ee,le.v[3][1]=Q,le.i[0][0]=ae?V-ee*j:V+ee*j,le.i[0][1]=Q-ie,le.i[1][0]=ae?V+ee:V-ee,le.i[1][1]=Q-ie*j,le.i[2][0]=ae?V+ee*j:V-ee*j,le.i[2][1]=Q+ie,le.i[3][0]=ae?V-ee:V+ee,le.i[3][1]=Q+ie*j,le.o[0][0]=ae?V+ee*j:V-ee*j,le.o[0][1]=Q-ie,le.o[1][0]=ae?V+ee:V-ee,le.o[1][1]=Q+ie*j,le.o[2][0]=ae?V-ee*j:V+ee*j,le.o[2][1]=Q+ie,le.o[3][0]=ae?V-ee:V+ee,le.o[3][1]=Q-ie*j}},extendPrototype([DynamicPropertyContainer],Z),Z})(),J=(function(){function j(Z,M){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=Z,this.comp=Z.comp,this.data=M,this.frameId=-1,this.d=M.d,this.initDynamicPropertyContainer(Z),M.sy===1?(this.ir=PropertyFactory.getProp(Z,M.ir,0,0,this),this.is=PropertyFactory.getProp(Z,M.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(Z,M.pt,0,0,this),this.p=PropertyFactory.getProp(Z,M.p,1,0,this),this.r=PropertyFactory.getProp(Z,M.r,0,degToRads,this),this.or=PropertyFactory.getProp(Z,M.or,0,0,this),this.os=PropertyFactory.getProp(Z,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 j.prototype={reset:i,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var M=Math.floor(this.pt.v)*2,V=Math.PI*2/M,Q=!0,ee=this.or.v,ie=this.ir.v,ae=this.os.v,le=this.is.v,ye=2*Math.PI*ee/(M*2),ue=2*Math.PI*ie/(M*2),fe,me,ve,he,re=-Math.PI/2;re+=this.r.v;var se=this.data.d===3?-1:1;for(this.v._length=0,fe=0;fe<M;fe+=1){me=Q?ee:ie,ve=Q?ae:le,he=Q?ye:ue;var W=me*Math.cos(re),K=me*Math.sin(re),oe=W===0&&K===0?0:K/Math.sqrt(W*W+K*K),ne=W===0&&K===0?0:-W/Math.sqrt(W*W+K*K);W+=+this.p.v[0],K+=+this.p.v[1],this.v.setTripleAt(W,K,W-oe*he*ve*se,K-ne*he*ve*se,W+oe*he*ve*se,K+ne*he*ve*se,fe,!0),Q=!Q,re+=V*se}},convertPolygonToPath:function(){var M=Math.floor(this.pt.v),V=Math.PI*2/M,Q=this.or.v,ee=this.os.v,ie=2*Math.PI*Q/(M*4),ae,le=-Math.PI*.5,ye=this.data.d===3?-1:1;for(le+=this.r.v,this.v._length=0,ae=0;ae<M;ae+=1){var ue=Q*Math.cos(le),fe=Q*Math.sin(le),me=ue===0&&fe===0?0:fe/Math.sqrt(ue*ue+fe*fe),ve=ue===0&&fe===0?0:-ue/Math.sqrt(ue*ue+fe*fe);ue+=+this.p.v[0],fe+=+this.p.v[1],this.v.setTripleAt(ue,fe,ue-me*ie*ee*ye,fe-ve*ie*ee*ye,ue+me*ie*ee*ye,fe+ve*ie*ee*ye,ae,!0),le+=V*ye}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],j),j})(),y=(function(){function j(Z,M){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=Z,this.comp=Z.comp,this.frameId=-1,this.d=M.d,this.initDynamicPropertyContainer(Z),this.p=PropertyFactory.getProp(Z,M.p,1,0,this),this.s=PropertyFactory.getProp(Z,M.s,1,0,this),this.r=PropertyFactory.getProp(Z,M.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return j.prototype={convertRectToPath:function(){var M=this.p.v[0],V=this.p.v[1],Q=this.s.v[0]/2,ee=this.s.v[1]/2,ie=bmMin(Q,ee,this.r.v),ae=ie*(1-roundCorner);this.v._length=0,this.d===2||this.d===1?(this.v.setTripleAt(M+Q,V-ee+ie,M+Q,V-ee+ie,M+Q,V-ee+ae,0,!0),this.v.setTripleAt(M+Q,V+ee-ie,M+Q,V+ee-ae,M+Q,V+ee-ie,1,!0),ie!==0?(this.v.setTripleAt(M+Q-ie,V+ee,M+Q-ie,V+ee,M+Q-ae,V+ee,2,!0),this.v.setTripleAt(M-Q+ie,V+ee,M-Q+ae,V+ee,M-Q+ie,V+ee,3,!0),this.v.setTripleAt(M-Q,V+ee-ie,M-Q,V+ee-ie,M-Q,V+ee-ae,4,!0),this.v.setTripleAt(M-Q,V-ee+ie,M-Q,V-ee+ae,M-Q,V-ee+ie,5,!0),this.v.setTripleAt(M-Q+ie,V-ee,M-Q+ie,V-ee,M-Q+ae,V-ee,6,!0),this.v.setTripleAt(M+Q-ie,V-ee,M+Q-ae,V-ee,M+Q-ie,V-ee,7,!0)):(this.v.setTripleAt(M-Q,V+ee,M-Q+ae,V+ee,M-Q,V+ee,2),this.v.setTripleAt(M-Q,V-ee,M-Q,V-ee+ae,M-Q,V-ee,3))):(this.v.setTripleAt(M+Q,V-ee+ie,M+Q,V-ee+ae,M+Q,V-ee+ie,0,!0),ie!==0?(this.v.setTripleAt(M+Q-ie,V-ee,M+Q-ie,V-ee,M+Q-ae,V-ee,1,!0),this.v.setTripleAt(M-Q+ie,V-ee,M-Q+ae,V-ee,M-Q+ie,V-ee,2,!0),this.v.setTripleAt(M-Q,V-ee+ie,M-Q,V-ee+ie,M-Q,V-ee+ae,3,!0),this.v.setTripleAt(M-Q,V+ee-ie,M-Q,V+ee-ae,M-Q,V+ee-ie,4,!0),this.v.setTripleAt(M-Q+ie,V+ee,M-Q+ie,V+ee,M-Q+ae,V+ee,5,!0),this.v.setTripleAt(M+Q-ie,V+ee,M+Q-ae,V+ee,M+Q-ie,V+ee,6,!0),this.v.setTripleAt(M+Q,V+ee-ie,M+Q,V+ee-ie,M+Q,V+ee-ae,7,!0)):(this.v.setTripleAt(M-Q,V-ee,M-Q+ae,V-ee,M-Q,V-ee,1,!0),this.v.setTripleAt(M-Q,V+ee,M-Q,V+ee-ae,M-Q,V+ee,2,!0),this.v.setTripleAt(M+Q,V+ee,M+Q-ae,V+ee,M+Q,V+ee,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:i},extendPrototype([DynamicPropertyContainer],j),j})();function q(j,Z,M){var V;if(M===3||M===4){var Q=M===3?Z.pt:Z.ks,ee=Q.k;ee.length?V=new d(j,Z,M):V=new l(j,Z,M)}else M===5?V=new y(j,Z):M===6?V=new F(j,Z):M===7&&(V=new J(j,Z));return V.k&&j.addDynamicProperty(V),V}function H(){return l}function G(){return d}var te={};return te.getShapeProp=q,te.getConstructorFunction=H,te.getKeyframedConstructorFunction=G,te})();var Matrix=(function(){var e=Math.cos,t=Math.sin,r=Math.tan,i=Math.round;function s(){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 n(W){if(W===0)return this;var K=e(W),oe=t(W);return this._t(K,-oe,0,0,oe,K,0,0,0,0,1,0,0,0,0,1)}function a(W){if(W===0)return this;var K=e(W),oe=t(W);return this._t(1,0,0,0,0,K,-oe,0,0,oe,K,0,0,0,0,1)}function l(W){if(W===0)return this;var K=e(W),oe=t(W);return this._t(K,0,oe,0,0,1,0,0,-oe,0,K,0,0,0,0,1)}function h(W){if(W===0)return this;var K=e(W),oe=t(W);return this._t(K,-oe,0,0,oe,K,0,0,0,0,1,0,0,0,0,1)}function d(W,K){return this._t(1,K,W,1,0,0)}function F(W,K){return this.shear(r(W),r(K))}function J(W,K){var oe=e(K),ne=t(K);return this._t(oe,ne,0,0,-ne,oe,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,r(W),1,0,0,0,0,1,0,0,0,0,1)._t(oe,-ne,0,0,ne,oe,0,0,0,0,1,0,0,0,0,1)}function y(W,K,oe){return!oe&&oe!==0&&(oe=1),W===1&&K===1&&oe===1?this:this._t(W,0,0,0,0,K,0,0,0,0,oe,0,0,0,0,1)}function q(W,K,oe,ne,ce,pe,de,xe,be,Pe,Ee,Me,Ce,Se,Te,_e){return this.props[0]=W,this.props[1]=K,this.props[2]=oe,this.props[3]=ne,this.props[4]=ce,this.props[5]=pe,this.props[6]=de,this.props[7]=xe,this.props[8]=be,this.props[9]=Pe,this.props[10]=Ee,this.props[11]=Me,this.props[12]=Ce,this.props[13]=Se,this.props[14]=Te,this.props[15]=_e,this}function H(W,K,oe){return oe=oe||0,W!==0||K!==0||oe!==0?this._t(1,0,0,0,0,1,0,0,0,0,1,0,W,K,oe,1):this}function G(W,K,oe,ne,ce,pe,de,xe,be,Pe,Ee,Me,Ce,Se,Te,_e){var ge=this.props;if(W===1&&K===0&&oe===0&&ne===0&&ce===0&&pe===1&&de===0&&xe===0&&be===0&&Pe===0&&Ee===1&&Me===0)return ge[12]=ge[12]*W+ge[15]*Ce,ge[13]=ge[13]*pe+ge[15]*Se,ge[14]=ge[14]*Ee+ge[15]*Te,ge[15]*=_e,this._identityCalculated=!1,this;var Re=ge[0],ze=ge[1],Ie=ge[2],Fe=ge[3],je=ge[4],Le=ge[5],we=ge[6],De=ge[7],Ve=ge[8],Ae=ge[9],Oe=ge[10],ke=ge[11],Be=ge[12],Ne=ge[13],$e=ge[14],Ge=ge[15];return ge[0]=Re*W+ze*ce+Ie*be+Fe*Ce,ge[1]=Re*K+ze*pe+Ie*Pe+Fe*Se,ge[2]=Re*oe+ze*de+Ie*Ee+Fe*Te,ge[3]=Re*ne+ze*xe+Ie*Me+Fe*_e,ge[4]=je*W+Le*ce+we*be+De*Ce,ge[5]=je*K+Le*pe+we*Pe+De*Se,ge[6]=je*oe+Le*de+we*Ee+De*Te,ge[7]=je*ne+Le*xe+we*Me+De*_e,ge[8]=Ve*W+Ae*ce+Oe*be+ke*Ce,ge[9]=Ve*K+Ae*pe+Oe*Pe+ke*Se,ge[10]=Ve*oe+Ae*de+Oe*Ee+ke*Te,ge[11]=Ve*ne+Ae*xe+Oe*Me+ke*_e,ge[12]=Be*W+Ne*ce+$e*be+Ge*Ce,ge[13]=Be*K+Ne*pe+$e*Pe+Ge*Se,ge[14]=Be*oe+Ne*de+$e*Ee+Ge*Te,ge[15]=Be*ne+Ne*xe+$e*Me+Ge*_e,this._identityCalculated=!1,this}function te(W){var K=W.props;return this.transform(K[0],K[1],K[2],K[3],K[4],K[5],K[6],K[7],K[8],K[9],K[10],K[11],K[12],K[13],K[14],K[15])}function j(){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 Z(W){for(var K=0;K<16;){if(W.props[K]!==this.props[K])return!1;K+=1}return!0}function M(W){var K;for(K=0;K<16;K+=1)W.props[K]=this.props[K];return W}function V(W){var K;for(K=0;K<16;K+=1)this.props[K]=W[K]}function Q(W,K,oe){return{x:W*this.props[0]+K*this.props[4]+oe*this.props[8]+this.props[12],y:W*this.props[1]+K*this.props[5]+oe*this.props[9]+this.props[13],z:W*this.props[2]+K*this.props[6]+oe*this.props[10]+this.props[14]}}function ee(W,K,oe){return W*this.props[0]+K*this.props[4]+oe*this.props[8]+this.props[12]}function ie(W,K,oe){return W*this.props[1]+K*this.props[5]+oe*this.props[9]+this.props[13]}function ae(W,K,oe){return W*this.props[2]+K*this.props[6]+oe*this.props[10]+this.props[14]}function le(){var W=this.props[0]*this.props[5]-this.props[1]*this.props[4],K=this.props[5]/W,oe=-this.props[1]/W,ne=-this.props[4]/W,ce=this.props[0]/W,pe=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/W,de=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/W,xe=new Matrix;return xe.props[0]=K,xe.props[1]=oe,xe.props[4]=ne,xe.props[5]=ce,xe.props[12]=pe,xe.props[13]=de,xe}function ye(W){var K=this.getInverseMatrix();return K.applyToPointArray(W[0],W[1],W[2]||0)}function ue(W){var K,oe=W.length,ne=[];for(K=0;K<oe;K+=1)ne[K]=ye(W[K]);return ne}function fe(W,K,oe){var ne=createTypedArray("float32",6);if(this.isIdentity())ne[0]=W[0],ne[1]=W[1],ne[2]=K[0],ne[3]=K[1],ne[4]=oe[0],ne[5]=oe[1];else{var ce=this.props[0],pe=this.props[1],de=this.props[4],xe=this.props[5],be=this.props[12],Pe=this.props[13];ne[0]=W[0]*ce+W[1]*de+be,ne[1]=W[0]*pe+W[1]*xe+Pe,ne[2]=K[0]*ce+K[1]*de+be,ne[3]=K[0]*pe+K[1]*xe+Pe,ne[4]=oe[0]*ce+oe[1]*de+be,ne[5]=oe[0]*pe+oe[1]*xe+Pe}return ne}function me(W,K,oe){var ne;return this.isIdentity()?ne=[W,K,oe]:ne=[W*this.props[0]+K*this.props[4]+oe*this.props[8]+this.props[12],W*this.props[1]+K*this.props[5]+oe*this.props[9]+this.props[13],W*this.props[2]+K*this.props[6]+oe*this.props[10]+this.props[14]],ne}function ve(W,K){if(this.isIdentity())return W+","+K;var oe=this.props;return Math.round((W*oe[0]+K*oe[4]+oe[12])*100)/100+","+Math.round((W*oe[1]+K*oe[5]+oe[13])*100)/100}function he(){for(var W=0,K=this.props,oe="matrix3d(",ne=1e4;W<16;)oe+=i(K[W]*ne)/ne,oe+=W===15?")":",",W+=1;return oe}function re(W){var K=1e4;return W<1e-6&&W>0||W>-1e-6&&W<0?i(W*K)/K:W}function se(){var W=this.props,K=re(W[0]),oe=re(W[1]),ne=re(W[4]),ce=re(W[5]),pe=re(W[12]),de=re(W[13]);return"matrix("+K+","+oe+","+ne+","+ce+","+pe+","+de+")"}return function(){this.reset=s,this.rotate=n,this.rotateX=a,this.rotateY=l,this.rotateZ=h,this.skew=F,this.skewFromAxis=J,this.shear=d,this.scale=y,this.setTransform=q,this.translate=H,this.transform=G,this.multiply=te,this.applyToPoint=Q,this.applyToX=ee,this.applyToY=ie,this.applyToZ=ae,this.applyToPointArray=me,this.applyToTriplePoints=fe,this.applyToPointStringified=ve,this.toCSS=he,this.to2dCSS=se,this.clone=M,this.cloneFromProps=V,this.equals=Z,this.inversePoints=ue,this.inversePoint=ye,this.getInverseMatrix=le,this._t=this.transform,this.isIdentity=j,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}})();function _typeof$3(e){"@babel/helpers - typeof";return _typeof$3=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$3(e)}var lottie={};function setLocation(e){setLocationHref(e)}function searchAnimations(){animationManager.searchAnimations()}function setSubframeRendering(e){setSubframeEnabled(e)}function setPrefix(e){setIdPrefix(e)}function loadAnimation(e){return animationManager.loadAnimation(e)}function setQuality(e){if(typeof e=="string")switch(e){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10);break}else!isNaN(e)&&e>1&&setDefaultCurveSegments(e)}function inBrowser(){return typeof navigator<"u"}function installPlugin(e,t){e==="expressions"&&setExpressionsPlugin(t)}function getFactory(e){switch(e){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default: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.13.0";function checkReady(){document.readyState==="complete"&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(e){for(var t=queryString.split("&"),r=0;r<t.length;r+=1){var i=t[r].split("=");if(decodeURIComponent(i[0])==e)return decodeURIComponent(i[1])}return null}var queryString="";{var scripts=document.getElementsByTagName("script"),index=scripts.length-1,myScript=scripts[index]||{src:""};queryString=myScript.src?myScript.src.replace(/^[^\?]+\??/,""):"",getQueryVariable("renderer")}var readyStateCheckInterval=setInterval(checkReady,100);try{_typeof$3(exports$1)!=="object"&&(window.bodymovin=lottie)}catch(e){}var ShapeModifiers=(function(){var e={},t={};e.registerModifier=r,e.getModifier=i;function r(s,n){t[s]||(t[s]=n)}function i(s,n,a){return new t[s](n,a)}return e})();function ShapeModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(e){if(!this.closed){e.sh.container.addDynamicProperty(e.sh);var t={shape:e.sh,data:e,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(t),this.addShapeToModifier(t),this._isAnimated&&e.setAsAnimated()}},ShapeModifier.prototype.init=function(e,t){this.shapes=[],this.elem=e,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t),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);function TrimModifier(){}extendPrototype([ShapeModifier],TrimModifier),TrimModifier.prototype.initModifierProperties=function(e,t){this.s=PropertyFactory.getProp(e,t.s,0,.01,this),this.e=PropertyFactory.getProp(e,t.e,0,.01,this),this.o=PropertyFactory.getProp(e,t.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=t.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(e){e.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(e,t,r,i,s){var n=[];t<=1?n.push({s:e,e:t}):e>=1?n.push({s:e-1,e:t-1}):(n.push({s:e,e:1}),n.push({s:0,e:t-1}));var a=[],l,h=n.length,d;for(l=0;l<h;l+=1)if(d=n[l],!(d.e*s<i||d.s*s>i+r)){var F,J;d.s*s<=i?F=0:F=(d.s*s-i)/r,d.e*s>=i+r?J=1:J=(d.e*s-i)/r,a.push([F,J])}return a.length||a.push([0,0]),a},TrimModifier.prototype.releasePathsData=function(e){var t,r=e.length;for(t=0;t<r;t+=1)segmentsLengthPool.release(e[t]);return e.length=0,e},TrimModifier.prototype.processShapes=function(e){var t,r;if(this._mdf||e){var i=this.o.v%360/360;if(i<0&&(i+=1),this.s.v>1?t=1+i:this.s.v<0?t=0+i:t=this.s.v+i,this.e.v>1?r=1+i:this.e.v<0?r=0+i:r=this.e.v+i,t>r){var s=t;t=r,r=s}t=Math.round(t*1e4)*1e-4,r=Math.round(r*1e4)*1e-4,this.sValue=t,this.eValue=r}else t=this.sValue,r=this.eValue;var n,a,l=this.shapes.length,h,d,F,J,y,q=0;if(r===t)for(a=0;a<l;a+=1)this.shapes[a].localShapeCollection.releaseShapes(),this.shapes[a].shape._mdf=!0,this.shapes[a].shape.paths=this.shapes[a].localShapeCollection,this._mdf&&(this.shapes[a].pathsData.length=0);else if(r===1&&t===0||r===0&&t===1){if(this._mdf)for(a=0;a<l;a+=1)this.shapes[a].pathsData.length=0,this.shapes[a].shape._mdf=!0}else{var H=[],G,te;for(a=0;a<l;a+=1)if(G=this.shapes[a],!G.shape._mdf&&!this._mdf&&!e&&this.m!==2)G.shape.paths=G.localShapeCollection;else{if(n=G.shape.paths,d=n._length,y=0,!G.shape._mdf&&G.pathsData.length)y=G.totalShapeLength;else{for(F=this.releasePathsData(G.pathsData),h=0;h<d;h+=1)J=bez.getSegmentsLength(n.shapes[h]),F.push(J),y+=J.totalLength;G.totalShapeLength=y,G.pathsData=F}q+=y,G.shape._mdf=!0}var j=t,Z=r,M=0,V;for(a=l-1;a>=0;a-=1)if(G=this.shapes[a],G.shape._mdf){for(te=G.localShapeCollection,te.releaseShapes(),this.m===2&&l>1?(V=this.calculateShapeEdges(t,r,G.totalShapeLength,M,q),M+=G.totalShapeLength):V=[[j,Z]],d=V.length,h=0;h<d;h+=1){j=V[h][0],Z=V[h][1],H.length=0,Z<=1?H.push({s:G.totalShapeLength*j,e:G.totalShapeLength*Z}):j>=1?H.push({s:G.totalShapeLength*(j-1),e:G.totalShapeLength*(Z-1)}):(H.push({s:G.totalShapeLength*j,e:G.totalShapeLength}),H.push({s:0,e:G.totalShapeLength*(Z-1)}));var Q=this.addShapes(G,H[0]);if(H[0].s!==H[0].e){if(H.length>1){var ee=G.shape.paths.shapes[G.shape.paths._length-1];if(ee.c){var ie=Q.pop();this.addPaths(Q,te),Q=this.addShapes(G,H[1],ie)}else this.addPaths(Q,te),Q=this.addShapes(G,H[1])}this.addPaths(Q,te)}}G.shape.paths=te}}},TrimModifier.prototype.addPaths=function(e,t){var r,i=e.length;for(r=0;r<i;r+=1)t.addShape(e[r])},TrimModifier.prototype.addSegment=function(e,t,r,i,s,n,a){s.setXYAt(t[0],t[1],"o",n),s.setXYAt(r[0],r[1],"i",n+1),a&&s.setXYAt(e[0],e[1],"v",n),s.setXYAt(i[0],i[1],"v",n+1)},TrimModifier.prototype.addSegmentFromArray=function(e,t,r,i){t.setXYAt(e[1],e[5],"o",r),t.setXYAt(e[2],e[6],"i",r+1),i&&t.setXYAt(e[0],e[4],"v",r),t.setXYAt(e[3],e[7],"v",r+1)},TrimModifier.prototype.addShapes=function(e,t,r){var i=e.pathsData,s=e.shape.paths.shapes,n,a=e.shape.paths._length,l,h,d=0,F,J,y,q,H=[],G,te=!0;for(r?(J=r._length,G=r._length):(r=shapePool.newElement(),J=0,G=0),H.push(r),n=0;n<a;n+=1){for(y=i[n].lengths,r.c=s[n].c,h=s[n].c?y.length:y.length+1,l=1;l<h;l+=1)if(F=y[l-1],d+F.addedLength<t.s)d+=F.addedLength,r.c=!1;else if(d>t.e){r.c=!1;break}else t.s<=d&&t.e>=d+F.addedLength?(this.addSegment(s[n].v[l-1],s[n].o[l-1],s[n].i[l],s[n].v[l],r,J,te),te=!1):(q=bez.getNewSegment(s[n].v[l-1],s[n].v[l],s[n].o[l-1],s[n].i[l],(t.s-d)/F.addedLength,(t.e-d)/F.addedLength,y[l-1]),this.addSegmentFromArray(q,r,J,te),te=!1,r.c=!1),d+=F.addedLength,J+=1;if(s[n].c&&y.length){if(F=y[l-1],d<=t.e){var j=y[l-1].addedLength;t.s<=d&&t.e>=d+j?(this.addSegment(s[n].v[l-1],s[n].o[l-1],s[n].i[0],s[n].v[0],r,J,te),te=!1):(q=bez.getNewSegment(s[n].v[l-1],s[n].v[0],s[n].o[l-1],s[n].i[0],(t.s-d)/j,(t.e-d)/j,y[l-1]),this.addSegmentFromArray(q,r,J,te),te=!1,r.c=!1)}else r.c=!1;d+=F.addedLength,J+=1}if(r._length&&(r.setXYAt(r.v[G][0],r.v[G][1],"i",G),r.setXYAt(r.v[r._length-1][0],r.v[r._length-1][1],"o",r._length-1)),d>t.e)break;n<a-1&&(r=shapePool.newElement(),te=!0,H.push(r),J=0)}return H};function PuckerAndBloatModifier(){}extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(e,t){var r=t/100,i=[0,0],s=e._length,n=0;for(n=0;n<s;n+=1)i[0]+=e.v[n][0],i[1]+=e.v[n][1];i[0]/=s,i[1]/=s;var a=shapePool.newElement();a.c=e.c;var l,h,d,F,J,y;for(n=0;n<s;n+=1)l=e.v[n][0]+(i[0]-e.v[n][0])*r,h=e.v[n][1]+(i[1]-e.v[n][1])*r,d=e.o[n][0]+(i[0]-e.o[n][0])*-r,F=e.o[n][1]+(i[1]-e.o[n][1])*-r,J=e.i[n][0]+(i[0]-e.i[n][0])*-r,y=e.i[n][1]+(i[1]-e.i[n][1])*-r,a.setTripleAt(l,h,d,F,J,y,n);return a},PuckerAndBloatModifier.prototype.processShapes=function(e){var t,r,i=this.shapes.length,s,n,a=this.amount.v;if(a!==0){var l,h;for(r=0;r<i;r+=1){if(l=this.shapes[r],h=l.localShapeCollection,!(!l.shape._mdf&&!this._mdf&&!e))for(h.releaseShapes(),l.shape._mdf=!0,t=l.shape.paths.shapes,n=l.shape.paths._length,s=0;s<n;s+=1)h.addShape(this.processPath(t[s],a));l.shape.paths=l.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=(function(){var e=[0,0];function t(h){var d=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||d,this.a&&h.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&h.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&h.skewFromAxis(-this.sk.v,this.sa.v),this.r?h.rotate(-this.r.v):h.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?h.translate(this.px.v,this.py.v,-this.pz.v):h.translate(this.px.v,this.py.v,0):h.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}function r(h){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||h){var d;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 F,J;if(d=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(F=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/d,0),J=this.p.getValueAtTime(this.p.keyframes[0].t/d,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(F=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/d,0),J=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/d,0)):(F=this.p.pv,J=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/d,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){F=[],J=[];var y=this.px,q=this.py;y._caching.lastFrame+y.offsetTime<=y.keyframes[0].t?(F[0]=y.getValueAtTime((y.keyframes[0].t+.01)/d,0),F[1]=q.getValueAtTime((q.keyframes[0].t+.01)/d,0),J[0]=y.getValueAtTime(y.keyframes[0].t/d,0),J[1]=q.getValueAtTime(q.keyframes[0].t/d,0)):y._caching.lastFrame+y.offsetTime>=y.keyframes[y.keyframes.length-1].t?(F[0]=y.getValueAtTime(y.keyframes[y.keyframes.length-1].t/d,0),F[1]=q.getValueAtTime(q.keyframes[q.keyframes.length-1].t/d,0),J[0]=y.getValueAtTime((y.keyframes[y.keyframes.length-1].t-.01)/d,0),J[1]=q.getValueAtTime((q.keyframes[q.keyframes.length-1].t-.01)/d,0)):(F=[y.pv,q.pv],J[0]=y.getValueAtTime((y._caching.lastFrame+y.offsetTime-.01)/d,y.offsetTime),J[1]=q.getValueAtTime((q._caching.lastFrame+q.offsetTime-.01)/d,q.offsetTime))}else J=e,F=J;this.v.rotate(-Math.atan2(F[1]-J[1],F[0]-J[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}}function i(){if(this.appliedTransformations=0,this.pre.reset(),!this.a.effectsSequence.length)this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1;else return;if(!this.s.effectsSequence.length)this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2;else return;if(this.sk)if(!this.sk.effectsSequence.length&&!this.sa.effectsSequence.length)this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3;else return;this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):!this.rz.effectsSequence.length&&!this.ry.effectsSequence.length&&!this.rx.effectsSequence.length&&!this.or.effectsSequence.length&&(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}function s(){}function n(h){this._addDynamicProperty(h),this.elem.addDynamicProperty(h),this._isDirty=!0}function a(h,d,F){if(this.elem=h,this.frameId=-1,this.propType="transform",this.data=d,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(F||h),d.p&&d.p.s?(this.px=PropertyFactory.getProp(h,d.p.x,0,0,this),this.py=PropertyFactory.getProp(h,d.p.y,0,0,this),d.p.z&&(this.pz=PropertyFactory.getProp(h,d.p.z,0,0,this))):this.p=PropertyFactory.getProp(h,d.p||{k:[0,0,0]},1,0,this),d.rx){if(this.rx=PropertyFactory.getProp(h,d.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(h,d.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(h,d.rz,0,degToRads,this),d.or.k[0].ti){var J,y=d.or.k.length;for(J=0;J<y;J+=1)d.or.k[J].to=null,d.or.k[J].ti=null}this.or=PropertyFactory.getProp(h,d.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(h,d.r||{k:0},0,degToRads,this);d.sk&&(this.sk=PropertyFactory.getProp(h,d.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(h,d.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(h,d.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(h,d.s||{k:[100,100,100]},1,.01,this),d.o?this.o=PropertyFactory.getProp(h,d.o,0,.01,h):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}a.prototype={applyToMatrix:t,getValue:r,precalculateMatrix:i,autoOrient:s},extendPrototype([DynamicPropertyContainer],a),a.prototype.addDynamicProperty=n,a.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty;function l(h,d,F){return new a(h,d,F)}return{getTransformProperty:l}})();function RepeaterModifier(){}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(e,t.c,0,null,this),this.o=PropertyFactory.getProp(e,t.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(e,t.tr,this),this.so=PropertyFactory.getProp(e,t.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(e,t.tr.eo,0,.01,this),this.data=t,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(e,t,r,i,s,n){var a=n?-1:1,l=i.s.v[0]+(1-i.s.v[0])*(1-s),h=i.s.v[1]+(1-i.s.v[1])*(1-s);e.translate(i.p.v[0]*a*s,i.p.v[1]*a*s,i.p.v[2]),t.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),t.rotate(-i.r.v*a*s),t.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(n?1/l:l,n?1/h:h),r.translate(i.a.v[0],i.a.v[1],i.a.v[2])},RepeaterModifier.prototype.init=function(e,t,r,i){for(this.elem=e,this.arr=t,this.pos=r,this.elemsData=i,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(e),this.initModifierProperties(e,t[r]);r>0;)r-=1,this._elements.unshift(t[r]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(e){var t,r=e.length;for(t=0;t<r;t+=1)e[t]._processed=!1,e[t].ty==="gr"&&this.resetElements(e[t].it)},RepeaterModifier.prototype.cloneElements=function(e){var t=JSON.parse(JSON.stringify(e));return this.resetElements(t),t},RepeaterModifier.prototype.changeGroupRender=function(e,t){var r,i=e.length;for(r=0;r<i;r+=1)e[r]._render=t,e[r].ty==="gr"&&this.changeGroupRender(e[r].it,t)},RepeaterModifier.prototype.processShapes=function(e){var t,r,i,s,n,a=!1;if(this._mdf||e){var l=Math.ceil(this.c.v);if(this._groups.length<l){for(;this._groups.length<l;){var h={it:this.cloneElements(this._elements),ty:"gr"};h.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,h),this._groups.splice(0,0,h),this._currentCopies+=1}this.elem.reloadShapes(),a=!0}n=0;var d;for(i=0;i<=this._groups.length-1;i+=1){if(d=n<l,this._groups[i]._render=d,this.changeGroupRender(this._groups[i].it,d),!d){var F=this.elemsData[i].it,J=F[F.length-1];J.transform.op.v!==0?(J.transform.op._mdf=!0,J.transform.op.v=0):J.transform.op._mdf=!1}n+=1}this._currentCopies=l;var y=this.o.v,q=y%1,H=y>0?Math.floor(y):Math.ceil(y),G=this.pMatrix.props,te=this.rMatrix.props,j=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var Z=0;if(y>0){for(;Z<H;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),Z+=1;q&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,q,!1),Z+=q)}else if(y<0){for(;Z>H;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),Z-=1;q&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-q,!0),Z-=q)}i=this.data.m===1?0:this._currentCopies-1,s=this.data.m===1?1:-1,n=this._currentCopies;for(var M,V;n;){if(t=this.elemsData[i].it,r=t[t.length-1].transform.mProps.v.props,V=r.length,t[t.length-1].transform.mProps._mdf=!0,t[t.length-1].transform.op._mdf=!0,t[t.length-1].transform.op.v=this._currentCopies===1?this.so.v:this.so.v+(this.eo.v-this.so.v)*(i/(this._currentCopies-1)),Z!==0){for((i!==0&&s===1||i!==this._currentCopies-1&&s===-1)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(te[0],te[1],te[2],te[3],te[4],te[5],te[6],te[7],te[8],te[9],te[10],te[11],te[12],te[13],te[14],te[15]),this.matrix.transform(j[0],j[1],j[2],j[3],j[4],j[5],j[6],j[7],j[8],j[9],j[10],j[11],j[12],j[13],j[14],j[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]),M=0;M<V;M+=1)r[M]=this.matrix.props[M];this.matrix.reset()}else for(this.matrix.reset(),M=0;M<V;M+=1)r[M]=this.matrix.props[M];Z+=1,n-=1,i+=s}}else for(n=this._currentCopies,i=0,s=1;n;)t=this.elemsData[i].it,r=t[t.length-1].transform.mProps.v.props,t[t.length-1].transform.mProps._mdf=!1,t[t.length-1].transform.op._mdf=!1,n-=1,i+=s;return a},RepeaterModifier.prototype.addShape=function(){};function RoundCornersModifier(){}extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(e,t.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(e,t){var r=shapePool.newElement();r.c=e.c;var i,s=e._length,n,a,l,h,d,F,J=0,y,q,H,G,te,j;for(i=0;i<s;i+=1)n=e.v[i],l=e.o[i],a=e.i[i],n[0]===l[0]&&n[1]===l[1]&&n[0]===a[0]&&n[1]===a[1]?(i===0||i===s-1)&&!e.c?(r.setTripleAt(n[0],n[1],l[0],l[1],a[0],a[1],J),J+=1):(i===0?h=e.v[s-1]:h=e.v[i-1],d=Math.sqrt(Math.pow(n[0]-h[0],2)+Math.pow(n[1]-h[1],2)),F=d?Math.min(d/2,t)/d:0,te=n[0]+(h[0]-n[0])*F,y=te,j=n[1]-(n[1]-h[1])*F,q=j,H=y-(y-n[0])*roundCorner,G=q-(q-n[1])*roundCorner,r.setTripleAt(y,q,H,G,te,j,J),J+=1,i===s-1?h=e.v[0]:h=e.v[i+1],d=Math.sqrt(Math.pow(n[0]-h[0],2)+Math.pow(n[1]-h[1],2)),F=d?Math.min(d/2,t)/d:0,H=n[0]+(h[0]-n[0])*F,y=H,G=n[1]+(h[1]-n[1])*F,q=G,te=y-(y-n[0])*roundCorner,j=q-(q-n[1])*roundCorner,r.setTripleAt(y,q,H,G,te,j,J),J+=1):(r.setTripleAt(e.v[i][0],e.v[i][1],e.o[i][0],e.o[i][1],e.i[i][0],e.i[i][1],J),J+=1);return r},RoundCornersModifier.prototype.processShapes=function(e){var t,r,i=this.shapes.length,s,n,a=this.rd.v;if(a!==0){var l,h;for(r=0;r<i;r+=1){if(l=this.shapes[r],h=l.localShapeCollection,!(!l.shape._mdf&&!this._mdf&&!e))for(h.releaseShapes(),l.shape._mdf=!0,t=l.shape.paths.shapes,n=l.shape.paths._length,s=0;s<n;s+=1)h.addShape(this.processPath(t[s],a));l.shape.paths=l.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function floatEqual(e,t){return Math.abs(e-t)*1e5<=Math.min(Math.abs(e),Math.abs(t))}function floatZero(e){return Math.abs(e)<=1e-5}function lerp(e,t,r){return e*(1-r)+t*r}function lerpPoint(e,t,r){return[lerp(e[0],t[0],r),lerp(e[1],t[1],r)]}function quadRoots(e,t,r){if(e===0)return[];var i=t*t-4*e*r;if(i<0)return[];var s=-t/(2*e);if(i===0)return[s];var n=Math.sqrt(i)/(2*e);return[s-n,s+n]}function polynomialCoefficients(e,t,r,i){return[-e+3*t-3*r+i,3*e-6*t+3*r,-3*e+3*t,e]}function singlePoint(e){return new PolynomialBezier(e,e,e,e,!1)}function PolynomialBezier(e,t,r,i,s){s&&pointEqual(e,t)&&(t=lerpPoint(e,i,1/3)),s&&pointEqual(r,i)&&(r=lerpPoint(e,i,2/3));var n=polynomialCoefficients(e[0],t[0],r[0],i[0]),a=polynomialCoefficients(e[1],t[1],r[1],i[1]);this.a=[n[0],a[0]],this.b=[n[1],a[1]],this.c=[n[2],a[2]],this.d=[n[3],a[3]],this.points=[e,t,r,i]}PolynomialBezier.prototype.point=function(e){return[((this.a[0]*e+this.b[0])*e+this.c[0])*e+this.d[0],((this.a[1]*e+this.b[1])*e+this.c[1])*e+this.d[1]]},PolynomialBezier.prototype.derivative=function(e){return[(3*e*this.a[0]+2*this.b[0])*e+this.c[0],(3*e*this.a[1]+2*this.b[1])*e+this.c[1]]},PolynomialBezier.prototype.tangentAngle=function(e){var t=this.derivative(e);return Math.atan2(t[1],t[0])},PolynomialBezier.prototype.normalAngle=function(e){var t=this.derivative(e);return Math.atan2(t[0],t[1])},PolynomialBezier.prototype.inflectionPoints=function(){var e=this.a[1]*this.b[0]-this.a[0]*this.b[1];if(floatZero(e))return[];var t=-.5*(this.a[1]*this.c[0]-this.a[0]*this.c[1])/e,r=t*t-1/3*(this.b[1]*this.c[0]-this.b[0]*this.c[1])/e;if(r<0)return[];var i=Math.sqrt(r);return floatZero(i)?i>0&&i<1?[t]:[]:[t-i,t+i].filter(function(s){return s>0&&s<1})},PolynomialBezier.prototype.split=function(e){if(e<=0)return[singlePoint(this.points[0]),this];if(e>=1)return[this,singlePoint(this.points[this.points.length-1])];var t=lerpPoint(this.points[0],this.points[1],e),r=lerpPoint(this.points[1],this.points[2],e),i=lerpPoint(this.points[2],this.points[3],e),s=lerpPoint(t,r,e),n=lerpPoint(r,i,e),a=lerpPoint(s,n,e);return[new PolynomialBezier(this.points[0],t,s,a,!0),new PolynomialBezier(a,n,i,this.points[3],!0)]};function extrema(e,t){var r=e.points[0][t],i=e.points[e.points.length-1][t];if(r>i){var s=i;i=r,r=s}for(var n=quadRoots(3*e.a[t],2*e.b[t],e.c[t]),a=0;a<n.length;a+=1)if(n[a]>0&&n[a]<1){var l=e.point(n[a])[t];l<r?r=l:l>i&&(i=l)}return{min:r,max:i}}PolynomialBezier.prototype.bounds=function(){return{x:extrema(this,0),y:extrema(this,1)}},PolynomialBezier.prototype.boundingBox=function(){var e=this.bounds();return{left:e.x.min,right:e.x.max,top:e.y.min,bottom:e.y.max,width:e.x.max-e.x.min,height:e.y.max-e.y.min,cx:(e.x.max+e.x.min)/2,cy:(e.y.max+e.y.min)/2}};function intersectData(e,t,r){var i=e.boundingBox();return{cx:i.cx,cy:i.cy,width:i.width,height:i.height,bez:e,t:(t+r)/2,t1:t,t2:r}}function splitData(e){var t=e.bez.split(.5);return[intersectData(t[0],e.t1,e.t),intersectData(t[1],e.t,e.t2)]}function boxIntersect(e,t){return Math.abs(e.cx-t.cx)*2<e.width+t.width&&Math.abs(e.cy-t.cy)*2<e.height+t.height}function intersectsImpl(e,t,r,i,s,n){if(boxIntersect(e,t)){if(r>=n||e.width<=i&&e.height<=i&&t.width<=i&&t.height<=i){s.push([e.t,t.t]);return}var a=splitData(e),l=splitData(t);intersectsImpl(a[0],l[0],r+1,i,s,n),intersectsImpl(a[0],l[1],r+1,i,s,n),intersectsImpl(a[1],l[0],r+1,i,s,n),intersectsImpl(a[1],l[1],r+1,i,s,n)}}PolynomialBezier.prototype.intersections=function(e,t,r){t===void 0&&(t=2),r===void 0&&(r=7);var i=[];return intersectsImpl(intersectData(this,0,1),intersectData(e,0,1),0,t,i,r),i},PolynomialBezier.shapeSegment=function(e,t){var r=(t+1)%e.length();return new PolynomialBezier(e.v[t],e.o[t],e.i[r],e.v[r],!0)},PolynomialBezier.shapeSegmentInverted=function(e,t){var r=(t+1)%e.length();return new PolynomialBezier(e.v[r],e.i[r],e.o[t],e.v[t],!0)};function crossProduct(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function lineIntersection(e,t,r,i){var s=[e[0],e[1],1],n=[t[0],t[1],1],a=[r[0],r[1],1],l=[i[0],i[1],1],h=crossProduct(crossProduct(s,n),crossProduct(a,l));return floatZero(h[2])?null:[h[0]/h[2],h[1]/h[2]]}function polarOffset(e,t,r){return[e[0]+Math.cos(t)*r,e[1]-Math.sin(t)*r]}function pointDistance(e,t){return Math.hypot(e[0]-t[0],e[1]-t[1])}function pointEqual(e,t){return floatEqual(e[0],t[0])&&floatEqual(e[1],t[1])}function ZigZagModifier(){}extendPrototype([ShapeModifier],ZigZagModifier),ZigZagModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amplitude=PropertyFactory.getProp(e,t.s,0,null,this),this.frequency=PropertyFactory.getProp(e,t.r,0,null,this),this.pointsType=PropertyFactory.getProp(e,t.pt,0,null,this),this._isAnimated=this.amplitude.effectsSequence.length!==0||this.frequency.effectsSequence.length!==0||this.pointsType.effectsSequence.length!==0};function setPoint(e,t,r,i,s,n,a){var l=r-Math.PI/2,h=r+Math.PI/2,d=t[0]+Math.cos(r)*i*s,F=t[1]-Math.sin(r)*i*s;e.setTripleAt(d,F,d+Math.cos(l)*n,F-Math.sin(l)*n,d+Math.cos(h)*a,F-Math.sin(h)*a,e.length())}function getPerpendicularVector(e,t){var r=[t[0]-e[0],t[1]-e[1]],i=-Math.PI*.5,s=[Math.cos(i)*r[0]-Math.sin(i)*r[1],Math.sin(i)*r[0]+Math.cos(i)*r[1]];return s}function getProjectingAngle(e,t){var r=t===0?e.length()-1:t-1,i=(t+1)%e.length(),s=e.v[r],n=e.v[i],a=getPerpendicularVector(s,n);return Math.atan2(0,1)-Math.atan2(a[1],a[0])}function zigZagCorner(e,t,r,i,s,n,a){var l=getProjectingAngle(t,r),h=t.v[r%t._length],d=t.v[r===0?t._length-1:r-1],F=t.v[(r+1)%t._length],J=n===2?Math.sqrt(Math.pow(h[0]-d[0],2)+Math.pow(h[1]-d[1],2)):0,y=n===2?Math.sqrt(Math.pow(h[0]-F[0],2)+Math.pow(h[1]-F[1],2)):0;setPoint(e,t.v[r%t._length],l,a,i,y/((s+1)*2),J/((s+1)*2))}function zigZagSegment(e,t,r,i,s,n){for(var a=0;a<i;a+=1){var l=(a+1)/(i+1),h=s===2?Math.sqrt(Math.pow(t.points[3][0]-t.points[0][0],2)+Math.pow(t.points[3][1]-t.points[0][1],2)):0,d=t.normalAngle(l),F=t.point(l);setPoint(e,F,d,n,r,h/((i+1)*2),h/((i+1)*2)),n=-n}return n}ZigZagModifier.prototype.processPath=function(e,t,r,i){var s=e._length,n=shapePool.newElement();if(n.c=e.c,e.c||(s-=1),s===0)return n;var a=-1,l=PolynomialBezier.shapeSegment(e,0);zigZagCorner(n,e,0,t,r,i,a);for(var h=0;h<s;h+=1)a=zigZagSegment(n,l,t,r,i,-a),h===s-1&&!e.c?l=null:l=PolynomialBezier.shapeSegment(e,(h+1)%s),zigZagCorner(n,e,h+1,t,r,i,a);return n},ZigZagModifier.prototype.processShapes=function(e){var t,r,i=this.shapes.length,s,n,a=this.amplitude.v,l=Math.max(0,Math.round(this.frequency.v)),h=this.pointsType.v;if(a!==0){var d,F;for(r=0;r<i;r+=1){if(d=this.shapes[r],F=d.localShapeCollection,!(!d.shape._mdf&&!this._mdf&&!e))for(F.releaseShapes(),d.shape._mdf=!0,t=d.shape.paths.shapes,n=d.shape.paths._length,s=0;s<n;s+=1)F.addShape(this.processPath(t[s],a,l,h));d.shape.paths=d.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function linearOffset(e,t,r){var i=Math.atan2(t[0]-e[0],t[1]-e[1]);return[polarOffset(e,i,r),polarOffset(t,i,r)]}function offsetSegment(e,t){var r,i,s,n,a,l,h;h=linearOffset(e.points[0],e.points[1],t),r=h[0],i=h[1],h=linearOffset(e.points[1],e.points[2],t),s=h[0],n=h[1],h=linearOffset(e.points[2],e.points[3],t),a=h[0],l=h[1];var d=lineIntersection(r,i,s,n);d===null&&(d=i);var F=lineIntersection(a,l,s,n);return F===null&&(F=a),new PolynomialBezier(r,d,F,l)}function joinLines(e,t,r,i,s){var n=t.points[3],a=r.points[0];if(i===3||pointEqual(n,a))return n;if(i===2){var l=-t.tangentAngle(1),h=-r.tangentAngle(0)+Math.PI,d=lineIntersection(n,polarOffset(n,l+Math.PI/2,100),a,polarOffset(a,l+Math.PI/2,100)),F=d?pointDistance(d,n):pointDistance(n,a)/2,J=polarOffset(n,l,2*F*roundCorner);return e.setXYAt(J[0],J[1],"o",e.length()-1),J=polarOffset(a,h,2*F*roundCorner),e.setTripleAt(a[0],a[1],a[0],a[1],J[0],J[1],e.length()),a}var y=pointEqual(n,t.points[2])?t.points[0]:t.points[2],q=pointEqual(a,r.points[1])?r.points[3]:r.points[1],H=lineIntersection(y,n,a,q);return H&&pointDistance(H,n)<s?(e.setTripleAt(H[0],H[1],H[0],H[1],H[0],H[1],e.length()),H):n}function getIntersection(e,t){var r=e.intersections(t);return r.length&&floatEqual(r[0][0],1)&&r.shift(),r.length?r[0]:null}function pruneSegmentIntersection(e,t){var r=e.slice(),i=t.slice(),s=getIntersection(e[e.length-1],t[0]);return s&&(r[e.length-1]=e[e.length-1].split(s[0])[0],i[0]=t[0].split(s[1])[1]),e.length>1&&t.length>1&&(s=getIntersection(e[0],t[t.length-1]),s)?[[e[0].split(s[0])[0]],[t[t.length-1].split(s[1])[1]]]:[r,i]}function pruneIntersections(e){for(var t,r=1;r<e.length;r+=1)t=pruneSegmentIntersection(e[r-1],e[r]),e[r-1]=t[0],e[r]=t[1];return e.length>1&&(t=pruneSegmentIntersection(e[e.length-1],e[0]),e[e.length-1]=t[0],e[0]=t[1]),e}function offsetSegmentSplit(e,t){var r=e.inflectionPoints(),i,s,n,a;if(r.length===0)return[offsetSegment(e,t)];if(r.length===1||floatEqual(r[1],1))return n=e.split(r[0]),i=n[0],s=n[1],[offsetSegment(i,t),offsetSegment(s,t)];n=e.split(r[0]),i=n[0];var l=(r[1]-r[0])/(1-r[0]);return n=n[1].split(l),a=n[0],s=n[1],[offsetSegment(i,t),offsetSegment(a,t),offsetSegment(s,t)]}function OffsetPathModifier(){}extendPrototype([ShapeModifier],OffsetPathModifier),OffsetPathModifier.prototype.initModifierProperties=function(e,t){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(e,t.a,0,null,this),this.miterLimit=PropertyFactory.getProp(e,t.ml,0,null,this),this.lineJoin=t.lj,this._isAnimated=this.amount.effectsSequence.length!==0},OffsetPathModifier.prototype.processPath=function(e,t,r,i){var s=shapePool.newElement();s.c=e.c;var n=e.length();e.c||(n-=1);var a,l,h,d=[];for(a=0;a<n;a+=1)h=PolynomialBezier.shapeSegment(e,a),d.push(offsetSegmentSplit(h,t));if(!e.c)for(a=n-1;a>=0;a-=1)h=PolynomialBezier.shapeSegmentInverted(e,a),d.push(offsetSegmentSplit(h,t));d=pruneIntersections(d);var F=null,J=null;for(a=0;a<d.length;a+=1){var y=d[a];for(J&&(F=joinLines(s,J,y[0],r,i)),J=y[y.length-1],l=0;l<y.length;l+=1)h=y[l],F&&pointEqual(h.points[0],F)?s.setXYAt(h.points[1][0],h.points[1][1],"o",s.length()-1):s.setTripleAt(h.points[0][0],h.points[0][1],h.points[1][0],h.points[1][1],h.points[0][0],h.points[0][1],s.length()),s.setTripleAt(h.points[3][0],h.points[3][1],h.points[3][0],h.points[3][1],h.points[2][0],h.points[2][1],s.length()),F=h.points[3]}return d.length&&joinLines(s,J,d[0][0],r,i),s},OffsetPathModifier.prototype.processShapes=function(e){var t,r,i=this.shapes.length,s,n,a=this.amount.v,l=this.miterLimit.v,h=this.lineJoin;if(a!==0){var d,F;for(r=0;r<i;r+=1){if(d=this.shapes[r],F=d.localShapeCollection,!(!d.shape._mdf&&!this._mdf&&!e))for(F.releaseShapes(),d.shape._mdf=!0,t=d.shape.paths.shapes,n=d.shape.paths._length,s=0;s<n;s+=1)F.addShape(this.processPath(t[s],a,h,l));d.shape.paths=d.localShapeCollection}}this.dynamicProperties.length||(this._mdf=!1)};function getFontProperties(e){for(var t=e.fStyle?e.fStyle.split(" "):[],r="normal",i="normal",s=t.length,n,a=0;a<s;a+=1)switch(n=t[a].toLowerCase(),n){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";break}return{style:i,weight:e.fWeight||r}}var FontManager=(function(){var e=5e3,t={w:0,size:0,shapes:[],data:{shapes:[]}},r=[];r=r.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var i=127988,s=917631,n=917601,a=917626,l=65039,h=8205,d=127462,F=127487,J=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"];function y(re){var se=re.split(","),W,K=se.length,oe=[];for(W=0;W<K;W+=1)se[W]!=="sans-serif"&&se[W]!=="monospace"&&oe.push(se[W]);return oe.join(",")}function q(re,se){var W=createTag("span");W.setAttribute("aria-hidden",!0),W.style.fontFamily=se;var K=createTag("span");K.innerText="giItT1WQy@!-/#",W.style.position="absolute",W.style.left="-10000px",W.style.top="-10000px",W.style.fontSize="300px",W.style.fontVariant="normal",W.style.fontStyle="normal",W.style.fontWeight="normal",W.style.letterSpacing="0",W.appendChild(K),document.body.appendChild(W);var oe=K.offsetWidth;return K.style.fontFamily=y(re)+", "+se,{node:K,w:oe,parent:W}}function H(){var re,se=this.fonts.length,W,K,oe=se;for(re=0;re<se;re+=1)this.fonts[re].loaded?oe-=1:this.fonts[re].fOrigin==="n"||this.fonts[re].origin===0?this.fonts[re].loaded=!0:(W=this.fonts[re].monoCase.node,K=this.fonts[re].monoCase.w,W.offsetWidth!==K?(oe-=1,this.fonts[re].loaded=!0):(W=this.fonts[re].sansCase.node,K=this.fonts[re].sansCase.w,W.offsetWidth!==K&&(oe-=1,this.fonts[re].loaded=!0)),this.fonts[re].loaded&&(this.fonts[re].sansCase.parent.parentNode.removeChild(this.fonts[re].sansCase.parent),this.fonts[re].monoCase.parent.parentNode.removeChild(this.fonts[re].monoCase.parent)));oe!==0&&Date.now()-this.initTime<e?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)}function G(re,se){var W=document.body&&se?"svg":"canvas",K,oe=getFontProperties(re);if(W==="svg"){var ne=createNS("text");ne.style.fontSize="100px",ne.setAttribute("font-family",re.fFamily),ne.setAttribute("font-style",oe.style),ne.setAttribute("font-weight",oe.weight),ne.textContent="1",re.fClass?(ne.style.fontFamily="inherit",ne.setAttribute("class",re.fClass)):ne.style.fontFamily=re.fFamily,se.appendChild(ne),K=ne}else{var ce=new OffscreenCanvas(500,500).getContext("2d");ce.font=oe.style+" "+oe.weight+" 100px "+re.fFamily,K=ce}function pe(de){return W==="svg"?(K.textContent=de,K.getComputedTextLength()):K.measureText(de).width}return{measureText:pe}}function te(re,se){if(!re){this.isLoaded=!0;return}if(this.chars){this.isLoaded=!0,this.fonts=re.list;return}if(!document.body){this.isLoaded=!0,re.list.forEach(function(Ee){Ee.helper=G(Ee),Ee.cache={}}),this.fonts=re.list;return}var W=re.list,K,oe=W.length,ne=oe;for(K=0;K<oe;K+=1){var ce=!0,pe,de;if(W[K].loaded=!1,W[K].monoCase=q(W[K].fFamily,"monospace"),W[K].sansCase=q(W[K].fFamily,"sans-serif"),!W[K].fPath)W[K].loaded=!0,ne-=1;else if(W[K].fOrigin==="p"||W[K].origin===3){if(pe=document.querySelectorAll('style[f-forigin="p"][f-family="'+W[K].fFamily+'"], style[f-origin="3"][f-family="'+W[K].fFamily+'"]'),pe.length>0&&(ce=!1),ce){var xe=createTag("style");xe.setAttribute("f-forigin",W[K].fOrigin),xe.setAttribute("f-origin",W[K].origin),xe.setAttribute("f-family",W[K].fFamily),xe.type="text/css",xe.innerText="@font-face {font-family: "+W[K].fFamily+"; font-style: normal; src: url('"+W[K].fPath+"');}",se.appendChild(xe)}}else if(W[K].fOrigin==="g"||W[K].origin===1){for(pe=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),de=0;de<pe.length;de+=1)pe[de].href.indexOf(W[K].fPath)!==-1&&(ce=!1);if(ce){var be=createTag("link");be.setAttribute("f-forigin",W[K].fOrigin),be.setAttribute("f-origin",W[K].origin),be.type="text/css",be.rel="stylesheet",be.href=W[K].fPath,document.body.appendChild(be)}}else if(W[K].fOrigin==="t"||W[K].origin===2){for(pe=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),de=0;de<pe.length;de+=1)W[K].fPath===pe[de].src&&(ce=!1);if(ce){var Pe=createTag("link");Pe.setAttribute("f-forigin",W[K].fOrigin),Pe.setAttribute("f-origin",W[K].origin),Pe.setAttribute("rel","stylesheet"),Pe.setAttribute("href",W[K].fPath),se.appendChild(Pe)}}W[K].helper=G(W[K],se),W[K].cache={},this.fonts.push(W[K])}ne===0?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}function j(re){if(re){this.chars||(this.chars=[]);var se,W=re.length,K,oe=this.chars.length,ne;for(se=0;se<W;se+=1){for(K=0,ne=!1;K<oe;)this.chars[K].style===re[se].style&&this.chars[K].fFamily===re[se].fFamily&&this.chars[K].ch===re[se].ch&&(ne=!0),K+=1;ne||(this.chars.push(re[se]),oe+=1)}}}function Z(re,se,W){for(var K=0,oe=this.chars.length;K<oe;){if(this.chars[K].ch===re&&this.chars[K].style===se&&this.chars[K].fFamily===W)return this.chars[K];K+=1}return(typeof re=="string"&&re.charCodeAt(0)!==13||!re)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",re,se,W)),t}function M(re,se,W){var K=this.getFontByName(se),oe=re;if(!K.cache[oe]){var ne=K.helper;if(re===" "){var ce=ne.measureText("|"+re+"|"),pe=ne.measureText("||");K.cache[oe]=(ce-pe)/100}else K.cache[oe]=ne.measureText(re)/100}return K.cache[oe]*W}function V(re){for(var se=0,W=this.fonts.length;se<W;){if(this.fonts[se].fName===re)return this.fonts[se];se+=1}return this.fonts[0]}function Q(re){var se=0,W=re.charCodeAt(0);if(W>=55296&&W<=56319){var K=re.charCodeAt(1);K>=56320&&K<=57343&&(se=(W-55296)*1024+K-56320+65536)}return se}function ee(re,se){var W=re.toString(16)+se.toString(16);return J.indexOf(W)!==-1}function ie(re){return re===h}function ae(re){return re===l}function le(re){var se=Q(re);return se>=d&&se<=F}function ye(re){return le(re.substr(0,2))&&le(re.substr(2,2))}function ue(re){return r.indexOf(re)!==-1}function fe(re,se){var W=Q(re.substr(se,2));if(W!==i)return!1;var K=0;for(se+=2;K<5;){if(W=Q(re.substr(se,2)),W<n||W>a)return!1;K+=1,se+=2}return Q(re.substr(se,2))===s}function me(){this.isLoaded=!0}var ve=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)};ve.isModifier=ee,ve.isZeroWidthJoiner=ie,ve.isFlagEmoji=ye,ve.isRegionalCode=le,ve.isCombinedCharacter=ue,ve.isRegionalFlag=fe,ve.isVariationSelector=ae,ve.BLACK_FLAG_CODE_POINT=i;var he={addChars:j,addFonts:te,getCharData:Z,getFontByName:V,measureText:M,checkLoadedFonts:H,setIsLoaded:me};return ve.prototype=he,ve})();function SlotManager(e){this.animationData=e}SlotManager.prototype.getProp=function(e){return this.animationData.slots&&this.animationData.slots[e.sid]?Object.assign(e,this.animationData.slots[e.sid].p):e};function slotFactory(e){return new SlotManager(e)}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,r=this.renderableComponents.length;for(t=0;t<r;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=(function(){var e={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"};return function(t){return e[t]||""}})();function SliderEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function AngleEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function ColorEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,1,0,r)}function PointEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,1,0,r)}function LayerIndexEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function MaskIndexEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function CheckboxEffect(e,t,r){this.p=PropertyFactory.getProp(t,e.v,0,0,r)}function NoValueEffect(){this.p={}}function EffectsManager(e,t){var r=e.ef||[];this.effectElements=[];var i,s=r.length,n;for(i=0;i<s;i+=1)n=new GroupEffect(r[i],t),this.effectElements.push(n)}function GroupEffect(e,t){this.init(e,t)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(e,t){this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(t);var r,i=this.data.ef.length,s,n=this.data.ef;for(r=0;r<i;r+=1){switch(s=null,n[r].ty){case 0:s=new SliderEffect(n[r],t,this);break;case 1:s=new AngleEffect(n[r],t,this);break;case 2:s=new ColorEffect(n[r],t,this);break;case 3:s=new PointEffect(n[r],t,this);break;case 4:case 7:s=new CheckboxEffect(n[r],t,this);break;case 10:s=new LayerIndexEffect(n[r],t,this);break;case 11:s=new MaskIndexEffect(n[r],t,this);break;case 5:s=new EffectsManager(n[r],t);break;default:s=new NoValueEffect(n[r]);break}s&&this.effectElements.push(s)}};function BaseElement(){}BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var t=0,r=this.data.masksProperties.length;t<r;){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 r=t("layer"),i=t("effects"),s=t("shape"),n=t("text"),a=t("comp");this.layerInterface=r(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var l=i.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(l),this.data.ty===0||this.data.xt?this.compInterface=a(this):this.data.ty===4?(this.layerInterface.shapeInterface=s(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),r=this.baseElement||this.layerElement;r.style["mix-blend-mode"]=t},initBaseData:function(t,r,i){this.globalData=r,this.comp=i,this.data=t,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}};function FrameElement(){}FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(t,r){var i,s=this.dynamicProperties.length;for(i=0;i<s;i+=1)(r||this._isParent&&this.dynamicProperties[i].propType==="transform")&&(this.dynamicProperties[i].getValue(),this.dynamicProperties[i]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(t){this.dynamicProperties.indexOf(t)===-1&&this.dynamicProperties.push(t)}};function FootageElement(e,t,r){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.footageData=t.imageLoader.getAsset(this.assetData),this.initBaseData(e,t,r)}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 e=getExpressionInterfaces();if(e){var t=e("footage");this.layerInterface=t(this)}},FootageElement.prototype.getFootageData=function(){return this.footageData};function AudioElement(e,t,r){this.initFrame(),this.initRenderable(),this.assetData=t.getAssetData(e.refId),this.initBaseData(e,t,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=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,e.au&&e.au.lv?e.au.lv:{k:[100]},1,.01,this)}AudioElement.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var t=this.tm.v;this._currentTime=t}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(e){this.audio.rate(e)},AudioElement.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*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(){};function BaseRenderer(){}BaseRenderer.prototype.checkLayers=function(e){var t,r=this.layers.length,i;for(this.completeLayers=!0,t=r-1;t>=0;t-=1)this.elements[t]||(i=this.layers[t],i.ip-i.st<=e-this.layers[t].st&&i.op-i.st>e-this.layers[t].st&&this.buildItem(t)),this.completeLayers=this.elements[t]?this.completeLayers:!1;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e);default:return this.createNull(e)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(e){return new AudioElement(e,this.globalData,this)},BaseRenderer.prototype.createFootage=function(e){return new FootageElement(e,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.buildItem(e);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(e){this.completeLayers=!1;var t,r=e.length,i,s=this.layers.length;for(t=0;t<r;t+=1)for(i=0;i<s;){if(this.layers[i].id===e[t].id){this.layers[i]=e[t];break}i+=1}},BaseRenderer.prototype.setProjectInterface=function(e){this.globalData.projectInterface=e},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(e,t,r){for(var i=this.elements,s=this.layers,n=0,a=s.length;n<a;)s[n].ind==t&&(!i[n]||i[n]===!0?(this.buildItem(n),this.addPendingElement(e)):(r.push(i[n]),i[n].setAsParent(),s[n].parent!==void 0?this.buildElementParenting(e,s[n].parent,r):e.setHierarchy(r))),n+=1},BaseRenderer.prototype.addPendingElement=function(e){this.pendingElements.push(e)},BaseRenderer.prototype.searchExtraCompositions=function(e){var t,r=e.length;for(t=0;t<r;t+=1)if(e[t].xt){var i=this.createComp(e[t]);i.initExpressions(),this.globalData.projectInterface.registerComposition(i)}},BaseRenderer.prototype.getElementById=function(e){var t,r=this.elements.length;for(t=0;t<r;t+=1)if(this.elements[t].data.ind===e)return this.elements[t];return null},BaseRenderer.prototype.getElementByPath=function(e){var t=e.shift(),r;if(typeof t=="number")r=this.elements[t];else{var i,s=this.elements.length;for(i=0;i<s;i+=1)if(this.elements[i].data.nm===t){r=this.elements[i];break}}return e.length===0?r:r.getElementByPath(e)},BaseRenderer.prototype.setupGlobalData=function(e,t){this.globalData.fontManager=new FontManager,this.globalData.slotManager=slotFactory(e),this.globalData.fontManager.addChars(e.chars),this.globalData.fontManager.addFonts(e.fonts,t),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=e.fr,this.globalData.nm=e.nm,this.globalData.compSize={w:e.w,h:e.h}};var effectTypes={TRANSFORM_EFFECT:"transformEFfect"};function TransformElement(){}TransformElement.prototype={initTransform:function(){var t=new Matrix;this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_localMatMdf:!1,_opMdf:!1,mat:t,localMat:t,localOpacity:1},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var t,r=this.finalTransform.mat,i=0,s=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;i<s;){if(this.hierarchy[i].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}i+=1}if(this.finalTransform._matMdf)for(t=this.finalTransform.mProp.v.props,r.cloneFromProps(t),i=0;i<s;i+=1)r.multiply(this.hierarchy[i].finalTransform.mProp.v)}(!this.localTransforms||this.finalTransform._matMdf)&&(this.finalTransform._localMatMdf=this.finalTransform._matMdf),this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v)},renderLocalTransform:function(){if(this.localTransforms){var t=0,r=this.localTransforms.length;if(this.finalTransform._localMatMdf=this.finalTransform._matMdf,!this.finalTransform._localMatMdf||!this.finalTransform._opMdf)for(;t<r;)this.localTransforms[t]._mdf&&(this.finalTransform._localMatMdf=!0),this.localTransforms[t]._opMdf&&!this.finalTransform._opMdf&&(this.finalTransform.localOpacity=this.finalTransform.mProp.o.v,this.finalTransform._opMdf=!0),t+=1;if(this.finalTransform._localMatMdf){var i=this.finalTransform.localMat;for(this.localTransforms[0].matrix.clone(i),t=1;t<r;t+=1){var s=this.localTransforms[t].matrix;i.multiply(s)}i.multiply(this.finalTransform.mat)}if(this.finalTransform._opMdf){var n=this.finalTransform.localOpacity;for(t=0;t<r;t+=1)n*=this.localTransforms[t].opacity*.01;this.finalTransform.localOpacity=n}}},searchEffectTransforms:function(){if(this.renderableEffectsManager){var t=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT);if(t.length){this.localTransforms=[],this.finalTransform.localMat=new Matrix;var r=0,i=t.length;for(r=0;r<i;r+=1)this.localTransforms.push(t[r])}}},globalToLocal:function(t){var r=[];r.push(this.finalTransform);for(var i=!0,s=this.comp;i;)s.finalTransform?(s.data.hasMask&&r.splice(0,0,s.finalTransform),s=s.comp):i=!1;var n,a=r.length,l;for(n=0;n<a;n+=1)l=r[n].mat.applyToPointArray(0,0,0),t=[t[0]-l[0],t[1]-l[1],0];return t},mHelper:new Matrix};function MaskElement(e,t,r){this.data=e,this.element=t,this.globalData=r,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var i=this.globalData.defs,s,n=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(n),this.solidPath="";var a,l=this.masksProperties,h=0,d=[],F,J,y=createElementID(),q,H,G,te,j="clipPath",Z="clip-path";for(s=0;s<n;s+=1)if((l[s].mode!=="a"&&l[s].mode!=="n"||l[s].inv||l[s].o.k!==100||l[s].o.x)&&(j="mask",Z="mask"),(l[s].mode==="s"||l[s].mode==="i")&&h===0?(q=createNS("rect"),q.setAttribute("fill","#ffffff"),q.setAttribute("width",this.element.comp.data.w||0),q.setAttribute("height",this.element.comp.data.h||0),d.push(q)):q=null,a=createNS("path"),l[s].mode==="n")this.viewData[s]={op:PropertyFactory.getProp(this.element,l[s].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,l[s],3),elem:a,lastPath:""},i.appendChild(a);else{h+=1,a.setAttribute("fill",l[s].mode==="s"?"#000000":"#ffffff"),a.setAttribute("clip-rule","nonzero");var M;if(l[s].x.k!==0?(j="mask",Z="mask",te=PropertyFactory.getProp(this.element,l[s].x,0,null,this.element),M=createElementID(),H=createNS("filter"),H.setAttribute("id",M),G=createNS("feMorphology"),G.setAttribute("operator","erode"),G.setAttribute("in","SourceGraphic"),G.setAttribute("radius","0"),H.appendChild(G),i.appendChild(H),a.setAttribute("stroke",l[s].mode==="s"?"#000000":"#ffffff")):(G=null,te=null),this.storedData[s]={elem:a,x:te,expan:G,lastPath:"",lastOperator:"",filterId:M,lastRadius:0},l[s].mode==="i"){J=d.length;var V=createNS("g");for(F=0;F<J;F+=1)V.appendChild(d[F]);var Q=createNS("mask");Q.setAttribute("mask-type","alpha"),Q.setAttribute("id",y+"_"+h),Q.appendChild(a),i.appendChild(Q),V.setAttribute("mask","url("+getLocationHref()+"#"+y+"_"+h+")"),d.length=0,d.push(V)}else d.push(a);l[s].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[s]={elem:a,lastPath:"",op:PropertyFactory.getProp(this.element,l[s].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,l[s],3),invRect:q},this.viewData[s].prop.k||this.drawPath(l[s],this.viewData[s].prop.v,this.viewData[s])}for(this.maskElement=createNS(j),n=d.length,s=0;s<n;s+=1)this.maskElement.appendChild(d[s]);h>0&&(this.maskElement.setAttribute("id",y),this.element.maskedElement.setAttribute(Z,"url("+getLocationHref()+"#"+y+")"),i.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}MaskElement.prototype.getMaskProperty=function(e){return this.viewData[e].prop},MaskElement.prototype.renderFrame=function(e){var t=this.element.finalTransform.mat,r,i=this.masksProperties.length;for(r=0;r<i;r+=1)if((this.viewData[r].prop._mdf||e)&&this.drawPath(this.masksProperties[r],this.viewData[r].prop.v,this.viewData[r]),(this.viewData[r].op._mdf||e)&&this.viewData[r].elem.setAttribute("fill-opacity",this.viewData[r].op.v),this.masksProperties[r].mode!=="n"&&(this.viewData[r].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[r].invRect.setAttribute("transform",t.getInverseMatrix().to2dCSS()),this.storedData[r].x&&(this.storedData[r].x._mdf||e))){var s=this.storedData[r].expan;this.storedData[r].x.v<0?(this.storedData[r].lastOperator!=="erode"&&(this.storedData[r].lastOperator="erode",this.storedData[r].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[r].filterId+")")),s.setAttribute("radius",-this.storedData[r].x.v)):(this.storedData[r].lastOperator!=="dilate"&&(this.storedData[r].lastOperator="dilate",this.storedData[r].elem.setAttribute("filter",null)),this.storedData[r].elem.setAttribute("stroke-width",this.storedData[r].x.v*2))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var e="M0,0 ";return e+=" h"+this.globalData.compSize.w,e+=" v"+this.globalData.compSize.h,e+=" h-"+this.globalData.compSize.w,e+=" v-"+this.globalData.compSize.h+" ",e},MaskElement.prototype.drawPath=function(e,t,r){var i=" M"+t.v[0][0]+","+t.v[0][1],s,n;for(n=t._length,s=1;s<n;s+=1)i+=" C"+t.o[s-1][0]+","+t.o[s-1][1]+" "+t.i[s][0]+","+t.i[s][1]+" "+t.v[s][0]+","+t.v[s][1];if(t.c&&n>1&&(i+=" C"+t.o[s-1][0]+","+t.o[s-1][1]+" "+t.i[0][0]+","+t.i[0][1]+" "+t.v[0][0]+","+t.v[0][1]),r.lastPath!==i){var a="";r.elem&&(t.c&&(a=e.inv?this.solidPath+i:i),r.elem.setAttribute("d",a)),r.lastPath=i}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=(function(){var e={};e.createFilter=t,e.createAlphaToLuminanceFilter=r;function t(i,s){var n=createNS("filter");return n.setAttribute("id",i),s!==!0&&(n.setAttribute("filterUnits","objectBoundingBox"),n.setAttribute("x","0%"),n.setAttribute("y","0%"),n.setAttribute("width","100%"),n.setAttribute("height","100%")),n}function r(){var i=createNS("feColorMatrix");return i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),i}return e})(),featureSupport=(function(){var e={maskType:!0,svgLumaHidden:!0,offscreenCanvas:typeof OffscreenCanvas<"u"};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))&&(e.maskType=!1),/firefox/i.test(navigator.userAgent)&&(e.svgLumaHidden=!1),e})(),registeredEffects$1={},idPrefix="filter_result_";function SVGEffects(e){var t,r="SourceGraphic",i=e.data.ef?e.data.ef.length:0,s=createElementID(),n=filtersFactory.createFilter(s,!0),a=0;this.filters=[];var l;for(t=0;t<i;t+=1){l=null;var h=e.data.ef[t].ty;if(registeredEffects$1[h]){var d=registeredEffects$1[h].effect;l=new d(n,e.effectsManager.effectElements[t],e,idPrefix+a,r),r=idPrefix+a,registeredEffects$1[h].countsAsEffect&&(a+=1)}l&&this.filters.push(l)}a&&(e.globalData.defs.appendChild(n),e.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+s+")")),this.filters.length&&e.addRenderableComponent(this)}SVGEffects.prototype.renderFrame=function(e){var t,r=this.filters.length;for(t=0;t<r;t+=1)this.filters[t].renderFrame(e)},SVGEffects.prototype.getEffects=function(e){var t,r=this.filters.length,i=[];for(t=0;t<r;t+=1)this.filters[t].type===e&&i.push(this.filters[t]);return i};function registerEffect$1(e,t,r){registeredEffects$1[e]={effect:t,countsAsEffect:r}}function SVGBaseElement(){}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 r=createNS("g");r.setAttribute("id",this.layerId),r.appendChild(this.layerElement),t=r,this.globalData.defs.appendChild(r)}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"),s=createNS("path");s.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var n=createElementID();if(i.setAttribute("id",n),i.appendChild(s),this.globalData.defs.appendChild(i),this.checkMasks()){var a=createNS("g");a.setAttribute("clip-path","url("+getLocationHref()+"#"+n+")"),a.appendChild(this.layerElement),this.transformedElement=a,t?t.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+n+")")}this.data.bm!==0&&this.setBlendMode()},renderElement:function(){this.finalTransform._localMatMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.localMat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.localOpacity)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this),this.searchEffectTransforms()},getMatte:function(t){if(this.matteMasks||(this.matteMasks={}),!this.matteMasks[t]){var r=this.layerId+"_"+t,i,s,n,a;if(t===1||t===3){var l=createNS("mask");l.setAttribute("id",r),l.setAttribute("mask-type",t===3?"luminance":"alpha"),n=createNS("use"),n.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),l.appendChild(n),this.globalData.defs.appendChild(l),!featureSupport.maskType&&t===1&&(l.setAttribute("mask-type","luminance"),i=createElementID(),s=filtersFactory.createFilter(i),this.globalData.defs.appendChild(s),s.appendChild(filtersFactory.createAlphaToLuminanceFilter()),a=createNS("g"),a.appendChild(n),l.appendChild(a),a.setAttribute("filter","url("+getLocationHref()+"#"+i+")"))}else if(t===2){var h=createNS("mask");h.setAttribute("id",r),h.setAttribute("mask-type","alpha");var d=createNS("g");h.appendChild(d),i=createElementID(),s=filtersFactory.createFilter(i);var F=createNS("feComponentTransfer");F.setAttribute("in","SourceGraphic"),s.appendChild(F);var J=createNS("feFuncA");J.setAttribute("type","table"),J.setAttribute("tableValues","1.0 0.0"),F.appendChild(J),this.globalData.defs.appendChild(s);var y=createNS("rect");y.setAttribute("width",this.comp.data.w),y.setAttribute("height",this.comp.data.h),y.setAttribute("x","0"),y.setAttribute("y","0"),y.setAttribute("fill","#ffffff"),y.setAttribute("opacity","0"),d.setAttribute("filter","url("+getLocationHref()+"#"+i+")"),d.appendChild(y),n=createNS("use"),n.setAttributeNS("http://www.w3.org/1999/xlink","href","#"+this.layerId),d.appendChild(n),featureSupport.maskType||(h.setAttribute("mask-type","luminance"),s.appendChild(filtersFactory.createAlphaToLuminanceFilter()),a=createNS("g"),d.appendChild(y),a.appendChild(this.layerElement),d.appendChild(a)),this.globalData.defs.appendChild(h)}this.matteMasks[t]=r}return this.matteMasks[t]},setMatte:function(t){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+t+")")}};function HierarchyElement(){}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,[])}};function RenderableDOMElement(){}(function(){var e={initElement:function(r,i,s){this.initFrame(),this.initBaseData(r,i,s),this.initTransform(r,i,s),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){if(!this.hidden&&(!this.isInRange||this.isTransparent)){var r=this.baseElement||this.layerElement;r.style.display="none",this.hidden=!0}},show:function(){if(this.isInRange&&!this.isTransparent){if(!this.data.hd){var r=this.baseElement||this.layerElement;r.style.display="block"}this.hidden=!1,this._isFirstFrame=!0}},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(r){this._mdf=!1,this.prepareRenderableFrame(r),this.prepareProperties(r,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}};extendPrototype([RenderableElement,createProxyFunction(e)],RenderableDOMElement)})();function IImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.assetData&&this.assetData.sid&&(this.assetData=t.slotManager.getProp(this.assetData)),this.initElement(e,t,r),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var e=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",e),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect};function ProcessedElement(e,t){this.elem=e,this.pos=t}function IShapeElement(){}IShapeElement.prototype={addShapeToModifiers:function(t){var r,i=this.shapeModifiers.length;for(r=0;r<i;r+=1)this.shapeModifiers[r].addShape(t)},isShapeInAnimatedModifiers:function(t){for(var r=0,i=this.shapeModifiers.length;r<i;)if(this.shapeModifiers[r].isAnimatedWithShape(t))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var t,r=this.shapes.length;for(t=0;t<r;t+=1)this.shapes[t].sh.reset();r=this.shapeModifiers.length;var i;for(t=r-1;t>=0&&(i=this.shapeModifiers[t].processShapes(this._isFirstFrame),!i);t-=1);}},searchProcessedElement:function(t){for(var r=this.processedElements,i=0,s=r.length;i<s;){if(r[i].elem===t)return r[i].pos;i+=1}return 0},addProcessedElement:function(t,r){for(var i=this.processedElements,s=i.length;s;)if(s-=1,i[s].elem===t){i[s].pos=r;return}i.push(new ProcessedElement(t,r))},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(e,t,r){this.caches=[],this.styles=[],this.transformers=e,this.lStr="",this.sh=r,this.lvl=t,this._isAnimated=!!r.k;for(var i=0,s=e.length;i<s;){if(e[i].mProps.dynamicProperties.length){this._isAnimated=!0;break}i+=1}}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0};function SVGStyleData(e,t){this.data=e,this.type=e.ty,this.d="",this.lvl=t,this._mdf=!1,this.closed=e.hd===!0,this.pElem=createNS("path"),this.msElem=null}SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1};function DashProperty(e,t,r,i){this.elem=e,this.frameId=-1,this.dataProps=createSizedArray(t.length),this.renderer=r,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",t.length?t.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(i);var s,n=t.length||0,a;for(s=0;s<n;s+=1)a=PropertyFactory.getProp(e,t[s].v,0,0,this),this.k=a.k||this.k,this.dataProps[s]={n:t[s].n,p:a};this.k||this.getValue(!0),this._isAnimated=this.k}DashProperty.prototype.getValue=function(e){if(!(this.elem.globalData.frameId===this.frameId&&!e)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||e,this._mdf)){var t=0,r=this.dataProps.length;for(this.renderer==="svg"&&(this.dashStr=""),t=0;t<r;t+=1)this.dataProps[t].n!=="o"?this.renderer==="svg"?this.dashStr+=" "+this.dataProps[t].p.v:this.dashArray[t]=this.dataProps[t].p.v:this.dashoffset[0]=this.dataProps[t].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty);function SVGStrokeStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=r,this._isAnimated=!!this._isAnimated}extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData);function SVGFillStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.c=PropertyFactory.getProp(e,t.c,1,255,this),this.style=r}extendPrototype([DynamicPropertyContainer],SVGFillStyleData);function SVGNoStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=r}extendPrototype([DynamicPropertyContainer],SVGNoStyleData);function GradientProperty(e,t,r){this.data=t,this.c=createTypedArray("uint8c",t.p*4);var i=t.k.k[0].s?t.k.k[0].s.length-t.p*4:t.k.k.length-t.p*4;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(e,t.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}GradientProperty.prototype.comparePoints=function(e,t){for(var r=0,i=this.o.length/2,s;r<i;){if(s=Math.abs(e[r*4]-e[t*4+r*2]),s>.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 e=0,t=this.data.k.k.length;e<t;){if(!this.comparePoints(this.data.k.k[e].s,this.data.p))return!1;e+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(e){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||e){var t,r=this.data.p*4,i,s;for(t=0;t<r;t+=1)i=t%4===0?100:255,s=Math.round(this.prop.v[t]*i),this.c[t]!==s&&(this.c[t]=s,this._cmdf=!e);if(this.o.length)for(r=this.prop.v.length,t=this.data.p*4;t<r;t+=1)i=t%2===0?100:1,s=t%2===0?Math.round(this.prop.v[t]*100):this.prop.v[t],this.o[t-this.data.p*4]!==s&&(this.o[t-this.data.p*4]=s,this._omdf=!e);this._mdf=!e}},extendPrototype([DynamicPropertyContainer],GradientProperty);function SVGGradientFillStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,t,r)}SVGGradientFillStyleData.prototype.initGradientData=function(e,t,r){this.o=PropertyFactory.getProp(e,t.o,0,.01,this),this.s=PropertyFactory.getProp(e,t.s,1,null,this),this.e=PropertyFactory.getProp(e,t.e,1,null,this),this.h=PropertyFactory.getProp(e,t.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(e,t.a||{k:0},0,degToRads,this),this.g=new GradientProperty(e,t.g,this),this.style=r,this.stops=[],this.setGradientData(r.pElem,t),this.setGradientOpacity(t,r),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(e,t){var r=createElementID(),i=createNS(t.t===1?"linearGradient":"radialGradient");i.setAttribute("id",r),i.setAttribute("spreadMethod","pad"),i.setAttribute("gradientUnits","userSpaceOnUse");var s=[],n,a,l;for(l=t.g.p*4,a=0;a<l;a+=4)n=createNS("stop"),i.appendChild(n),s.push(n);e.setAttribute(t.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+r+")"),this.gf=i,this.cst=s},SVGGradientFillStyleData.prototype.setGradientOpacity=function(e,t){if(this.g._hasOpacity&&!this.g._collapsable){var r,i,s,n=createNS("mask"),a=createNS("path");n.appendChild(a);var l=createElementID(),h=createElementID();n.setAttribute("id",h);var d=createNS(e.t===1?"linearGradient":"radialGradient");d.setAttribute("id",l),d.setAttribute("spreadMethod","pad"),d.setAttribute("gradientUnits","userSpaceOnUse"),s=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var F=this.stops;for(i=e.g.p*4;i<s;i+=2)r=createNS("stop"),r.setAttribute("stop-color","rgb(255,255,255)"),d.appendChild(r),F.push(r);a.setAttribute(e.ty==="gf"?"fill":"stroke","url("+getLocationHref()+"#"+l+")"),e.ty==="gs"&&(a.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),a.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),e.lj===1&&a.setAttribute("stroke-miterlimit",e.ml)),this.of=d,this.ms=n,this.ost=F,this.maskId=h,t.msElem=a}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData);function SVGGradientStrokeStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(e,t.w,0,null,this),this.d=new DashProperty(e,t.d||{},"svg",this),this.initGradientData(e,t,r),this._isAnimated=!!this._isAnimated}extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(e,t,r){this.transform={mProps:e,op:t,container:r},this.elements=[],this._isAnimated=this.transform.mProps.dynamicProperties.length||this.transform.op.effectsSequence.length}var buildShapeString=function(t,r,i,s){if(r===0)return"";var n=t.o,a=t.i,l=t.v,h,d=" M"+s.applyToPointStringified(l[0][0],l[0][1]);for(h=1;h<r;h+=1)d+=" C"+s.applyToPointStringified(n[h-1][0],n[h-1][1])+" "+s.applyToPointStringified(a[h][0],a[h][1])+" "+s.applyToPointStringified(l[h][0],l[h][1]);return i&&r&&(d+=" C"+s.applyToPointStringified(n[h-1][0],n[h-1][1])+" "+s.applyToPointStringified(a[0][0],a[0][1])+" "+s.applyToPointStringified(l[0][0],l[0][1]),d+="z"),d},SVGElementsRenderer=(function(){var e=new Matrix,t=new Matrix,r={createRenderFunction:i};function i(J){switch(J.ty){case"fl":return l;case"gf":return d;case"gs":return h;case"st":return F;case"sh":case"el":case"rc":case"sr":return a;case"tr":return s;case"no":return n;default:return null}}function s(J,y,q){(q||y.transform.op._mdf)&&y.transform.container.setAttribute("opacity",y.transform.op.v),(q||y.transform.mProps._mdf)&&y.transform.container.setAttribute("transform",y.transform.mProps.v.to2dCSS())}function n(){}function a(J,y,q){var H,G,te,j,Z,M,V=y.styles.length,Q=y.lvl,ee,ie,ae,le;for(M=0;M<V;M+=1){if(j=y.sh._mdf||q,y.styles[M].lvl<Q){for(ie=t.reset(),ae=Q-y.styles[M].lvl,le=y.transformers.length-1;!j&&ae>0;)j=y.transformers[le].mProps._mdf||j,ae-=1,le-=1;if(j)for(ae=Q-y.styles[M].lvl,le=y.transformers.length-1;ae>0;)ie.multiply(y.transformers[le].mProps.v),ae-=1,le-=1}else ie=e;if(ee=y.sh.paths,G=ee._length,j){for(te="",H=0;H<G;H+=1)Z=ee.shapes[H],Z&&Z._length&&(te+=buildShapeString(Z,Z._length,Z.c,ie));y.caches[M]=te}else te=y.caches[M];y.styles[M].d+=J.hd===!0?"":te,y.styles[M]._mdf=j||y.styles[M]._mdf}}function l(J,y,q){var H=y.style;(y.c._mdf||q)&&H.pElem.setAttribute("fill","rgb("+bmFloor(y.c.v[0])+","+bmFloor(y.c.v[1])+","+bmFloor(y.c.v[2])+")"),(y.o._mdf||q)&&H.pElem.setAttribute("fill-opacity",y.o.v)}function h(J,y,q){d(J,y,q),F(J,y,q)}function d(J,y,q){var H=y.gf,G=y.g._hasOpacity,te=y.s.v,j=y.e.v;if(y.o._mdf||q){var Z=J.ty==="gf"?"fill-opacity":"stroke-opacity";y.style.pElem.setAttribute(Z,y.o.v)}if(y.s._mdf||q){var M=J.t===1?"x1":"cx",V=M==="x1"?"y1":"cy";H.setAttribute(M,te[0]),H.setAttribute(V,te[1]),G&&!y.g._collapsable&&(y.of.setAttribute(M,te[0]),y.of.setAttribute(V,te[1]))}var Q,ee,ie,ae;if(y.g._cmdf||q){Q=y.cst;var le=y.g.c;for(ie=Q.length,ee=0;ee<ie;ee+=1)ae=Q[ee],ae.setAttribute("offset",le[ee*4]+"%"),ae.setAttribute("stop-color","rgb("+le[ee*4+1]+","+le[ee*4+2]+","+le[ee*4+3]+")")}if(G&&(y.g._omdf||q)){var ye=y.g.o;for(y.g._collapsable?Q=y.cst:Q=y.ost,ie=Q.length,ee=0;ee<ie;ee+=1)ae=Q[ee],y.g._collapsable||ae.setAttribute("offset",ye[ee*2]+"%"),ae.setAttribute("stop-opacity",ye[ee*2+1])}if(J.t===1)(y.e._mdf||q)&&(H.setAttribute("x2",j[0]),H.setAttribute("y2",j[1]),G&&!y.g._collapsable&&(y.of.setAttribute("x2",j[0]),y.of.setAttribute("y2",j[1])));else{var ue;if((y.s._mdf||y.e._mdf||q)&&(ue=Math.sqrt(Math.pow(te[0]-j[0],2)+Math.pow(te[1]-j[1],2)),H.setAttribute("r",ue),G&&!y.g._collapsable&&y.of.setAttribute("r",ue)),y.s._mdf||y.e._mdf||y.h._mdf||y.a._mdf||q){ue||(ue=Math.sqrt(Math.pow(te[0]-j[0],2)+Math.pow(te[1]-j[1],2)));var fe=Math.atan2(j[1]-te[1],j[0]-te[0]),me=y.h.v;me>=1?me=.99:me<=-1&&(me=-.99);var ve=ue*me,he=Math.cos(fe+y.a.v)*ve+te[0],re=Math.sin(fe+y.a.v)*ve+te[1];H.setAttribute("fx",he),H.setAttribute("fy",re),G&&!y.g._collapsable&&(y.of.setAttribute("fx",he),y.of.setAttribute("fy",re))}}}function F(J,y,q){var H=y.style,G=y.d;G&&(G._mdf||q)&&G.dashStr&&(H.pElem.setAttribute("stroke-dasharray",G.dashStr),H.pElem.setAttribute("stroke-dashoffset",G.dashoffset[0])),y.c&&(y.c._mdf||q)&&H.pElem.setAttribute("stroke","rgb("+bmFloor(y.c.v[0])+","+bmFloor(y.c.v[1])+","+bmFloor(y.c.v[2])+")"),(y.o._mdf||q)&&H.pElem.setAttribute("stroke-opacity",y.o.v),(y.w._mdf||q)&&(H.pElem.setAttribute("stroke-width",y.w.v),H.msElem&&H.msElem.setAttribute("stroke-width",y.w.v))}return r})();function SVGShapeElement(e,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,t,r),this.prevViewData=[]}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 e,t=this.shapes.length,r,i,s=this.stylesList.length,n,a=[],l=!1;for(i=0;i<s;i+=1){for(n=this.stylesList[i],l=!1,a.length=0,e=0;e<t;e+=1)r=this.shapes[e],r.styles.indexOf(n)!==-1&&(a.push(r),l=r._isAnimated||l);a.length>1&&l&&this.setShapesAsAnimated(a)}},SVGShapeElement.prototype.setShapesAsAnimated=function(e){var t,r=e.length;for(t=0;t<r;t+=1)e[t].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(e,t){var r,i=new SVGStyleData(e,t),s=i.pElem;if(e.ty==="st")r=new SVGStrokeStyleData(this,e,i);else if(e.ty==="fl")r=new SVGFillStyleData(this,e,i);else if(e.ty==="gf"||e.ty==="gs"){var n=e.ty==="gf"?SVGGradientFillStyleData:SVGGradientStrokeStyleData;r=new n(this,e,i),this.globalData.defs.appendChild(r.gf),r.maskId&&(this.globalData.defs.appendChild(r.ms),this.globalData.defs.appendChild(r.of),s.setAttribute("mask","url("+getLocationHref()+"#"+r.maskId+")"))}else e.ty==="no"&&(r=new SVGNoStyleData(this,e,i));return(e.ty==="st"||e.ty==="gs")&&(s.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),s.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),s.setAttribute("fill-opacity","0"),e.lj===1&&s.setAttribute("stroke-miterlimit",e.ml)),e.r===2&&s.setAttribute("fill-rule","evenodd"),e.ln&&s.setAttribute("id",e.ln),e.cl&&s.setAttribute("class",e.cl),e.bm&&(s.style["mix-blend-mode"]=getBlendMode(e.bm)),this.stylesList.push(i),this.addToAnimatedContents(e,r),r},SVGShapeElement.prototype.createGroupElement=function(e){var t=new ShapeGroupData;return e.ln&&t.gr.setAttribute("id",e.ln),e.cl&&t.gr.setAttribute("class",e.cl),e.bm&&(t.gr.style["mix-blend-mode"]=getBlendMode(e.bm)),t},SVGShapeElement.prototype.createTransformElement=function(e,t){var r=TransformPropertyFactory.getTransformProperty(this,e,this),i=new SVGTransformData(r,r.o,t);return this.addToAnimatedContents(e,i),i},SVGShapeElement.prototype.createShapeElement=function(e,t,r){var i=4;e.ty==="rc"?i=5:e.ty==="el"?i=6:e.ty==="sr"&&(i=7);var s=ShapePropertyFactory.getShapeProp(this,e,i,this),n=new SVGShapeData(t,r,s);return this.shapes.push(n),this.addShapeToModifiers(n),this.addToAnimatedContents(e,n),n},SVGShapeElement.prototype.addToAnimatedContents=function(e,t){for(var r=0,i=this.animatedContents.length;r<i;){if(this.animatedContents[r].element===t)return;r+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(e),element:t,data:e})},SVGShapeElement.prototype.setElementStyles=function(e){var t=e.styles,r,i=this.stylesList.length;for(r=0;r<i;r+=1)t.indexOf(this.stylesList[r])===-1&&!this.stylesList[r].closed&&t.push(this.stylesList[r])},SVGShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(e,t,r,i,s,n,a){var l=[].concat(n),h,d=e.length-1,F,J,y=[],q=[],H,G,te;for(h=d;h>=0;h-=1){if(te=this.searchProcessedElement(e[h]),te?t[h]=r[te-1]:e[h]._render=a,e[h].ty==="fl"||e[h].ty==="st"||e[h].ty==="gf"||e[h].ty==="gs"||e[h].ty==="no")te?t[h].style.closed=e[h].hd:t[h]=this.createStyleElement(e[h],s),e[h]._render&&t[h].style.pElem.parentNode!==i&&i.appendChild(t[h].style.pElem),y.push(t[h].style);else if(e[h].ty==="gr"){if(!te)t[h]=this.createGroupElement(e[h]);else for(J=t[h].it.length,F=0;F<J;F+=1)t[h].prevViewData[F]=t[h].it[F];this.searchShapes(e[h].it,t[h].it,t[h].prevViewData,t[h].gr,s+1,l,a),e[h]._render&&t[h].gr.parentNode!==i&&i.appendChild(t[h].gr)}else e[h].ty==="tr"?(te||(t[h]=this.createTransformElement(e[h],i)),H=t[h].transform,l.push(H)):e[h].ty==="sh"||e[h].ty==="rc"||e[h].ty==="el"||e[h].ty==="sr"?(te||(t[h]=this.createShapeElement(e[h],l,s)),this.setElementStyles(t[h])):e[h].ty==="tm"||e[h].ty==="rd"||e[h].ty==="ms"||e[h].ty==="pb"||e[h].ty==="zz"||e[h].ty==="op"?(te?(G=t[h],G.closed=!1):(G=ShapeModifiers.getModifier(e[h].ty),G.init(this,e[h]),t[h]=G,this.shapeModifiers.push(G)),q.push(G)):e[h].ty==="rp"&&(te?(G=t[h],G.closed=!0):(G=ShapeModifiers.getModifier(e[h].ty),t[h]=G,G.init(this,e,h,t),this.shapeModifiers.push(G),a=!1),q.push(G));this.addProcessedElement(e[h],h+1)}for(d=y.length,h=0;h<d;h+=1)y[h].closed=!0;for(d=q.length,h=0;h<d;h+=1)q[h].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){this.renderModifiers();var e,t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].reset();for(this.renderShape(),e=0;e<t;e+=1)(this.stylesList[e]._mdf||this._isFirstFrame)&&(this.stylesList[e].msElem&&(this.stylesList[e].msElem.setAttribute("d",this.stylesList[e].d),this.stylesList[e].d="M0 0"+this.stylesList[e].d),this.stylesList[e].pElem.setAttribute("d",this.stylesList[e].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var e,t=this.animatedContents.length,r;for(e=0;e<t;e+=1)r=this.animatedContents[e],(this._isFirstFrame||r.element._isAnimated)&&r.data!==!0&&r.fn(r.data,r.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null};function LetterProps(e,t,r,i,s,n){this.o=e,this.sw=t,this.sc=r,this.fc=i,this.m=s,this.p=n,this._mdf={o:!0,sw:!!t,sc:!!r,fc:!!i,m:!0,p:!0}}LetterProps.prototype.update=function(e,t,r,i,s,n){this._mdf.o=!1,this._mdf.sw=!1,this._mdf.sc=!1,this._mdf.fc=!1,this._mdf.m=!1,this._mdf.p=!1;var a=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,a=!0),this.sw!==t&&(this.sw=t,this._mdf.sw=!0,a=!0),this.sc!==r&&(this.sc=r,this._mdf.sc=!0,a=!0),this.fc!==i&&(this.fc=i,this._mdf.fc=!0,a=!0),this.m!==s&&(this.m=s,this._mdf.m=!0,a=!0),n.length&&(this.p[0]!==n[0]||this.p[1]!==n[1]||this.p[4]!==n[4]||this.p[5]!==n[5]||this.p[12]!==n[12]||this.p[13]!==n[13])&&(this.p=n,this._mdf.p=!0,a=!0),a};function TextProperty(e,t){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,t.d&&t.d.sid&&(t.d=e.globalData.slotManager.getProp(t.d)),this.data=t,this.elem=e,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)}TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},TextProperty.prototype.setCurrentData=function(e){e.__complete||this.completeTextData(e),this.currentData=e,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(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(e){if(!((this.elem.globalData.frameId===this.frameId||!this.effectsSequence.length)&&!e)){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var t=this.currentData,r=this.keysIndex;if(this.lock){this.setCurrentData(this.currentData);return}this.lock=!0,this._mdf=!1;var i,s=this.effectsSequence.length,n=e||this.data.d.k[this.keysIndex].s;for(i=0;i<s;i+=1)r!==this.keysIndex?n=this.effectsSequence[i](n,n.t):n=this.effectsSequence[i](this.currentData,n.t);t!==n&&this.setCurrentData(n),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}},TextProperty.prototype.getKeyframeValue=function(){for(var e=this.data.d.k,t=this.elem.comp.renderedFrame,r=0,i=e.length;r<=i-1&&!(r===i-1||e[r+1].t>t);)r+=1;return this.keysIndex!==r&&(this.keysIndex=r),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(e){for(var t=[],r=0,i=e.length,s,n,a=!1,l=!1,h="";r<i;)a=l,l=!1,s=e.charCodeAt(r),h=e.charAt(r),FontManager.isCombinedCharacter(s)?a=!0:s>=55296&&s<=56319?FontManager.isRegionalFlag(e,r)?h=e.substr(r,14):(n=e.charCodeAt(r+1),n>=56320&&n<=57343&&(FontManager.isModifier(s,n)?(h=e.substr(r,2),a=!0):FontManager.isFlagEmoji(e.substr(r,4))?h=e.substr(r,4):h=e.substr(r,2))):s>56319?(n=e.charCodeAt(r+1),FontManager.isVariationSelector(s)&&(a=!0)):FontManager.isZeroWidthJoiner(s)&&(a=!0,l=!0),a?(t[t.length-1]+=h,a=!1):t.push(h),r+=h.length;return t},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var t=this.elem.globalData.fontManager,r=this.data,i=[],s,n,a,l=0,h,d=r.m.g,F=0,J=0,y=0,q=[],H=0,G=0,te,j,Z=t.getFontByName(e.f),M,V=0,Q=getFontProperties(Z);e.fWeight=Q.weight,e.fStyle=Q.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),n=e.finalText.length,e.finalLineHeight=e.lh;var ee=e.tr/1e3*e.finalSize,ie;if(e.sz)for(var ae=!0,le=e.sz[0],ye=e.sz[1],ue,fe;ae;){fe=this.buildFinalText(e.t),ue=0,H=0,n=fe.length,ee=e.tr/1e3*e.finalSize;var me=-1;for(s=0;s<n;s+=1)ie=fe[s].charCodeAt(0),a=!1,fe[s]===" "?me=s:(ie===13||ie===3)&&(H=0,a=!0,ue+=e.finalLineHeight||e.finalSize*1.2),t.chars?(M=t.getCharData(fe[s],Z.fStyle,Z.fFamily),V=a?0:M.w*e.finalSize/100):V=t.measureText(fe[s],e.f,e.finalSize),H+V>le&&fe[s]!==" "?(me===-1?n+=1:s=me,ue+=e.finalLineHeight||e.finalSize*1.2,fe.splice(s,me===s?1:0,"\r"),me=-1,H=0):(H+=V,H+=ee);ue+=Z.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&ye<ue?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=fe,n=e.finalText.length,ae=!1)}H=-ee,V=0;var ve=0,he;for(s=0;s<n;s+=1)if(a=!1,he=e.finalText[s],ie=he.charCodeAt(0),ie===13||ie===3?(ve=0,q.push(H),G=H>G?H:G,H=-2*ee,h="",a=!0,y+=1):h=he,t.chars?(M=t.getCharData(he,Z.fStyle,t.getFontByName(e.f).fFamily),V=a?0:M.w*e.finalSize/100):V=t.measureText(h,e.f,e.finalSize),he===" "?ve+=V+ee:(H+=V+ee+ve,ve=0),i.push({l:V,an:V,add:F,n:a,anIndexes:[],val:h,line:y,animatorJustifyOffset:0}),d==2){if(F+=V,h===""||h===" "||s===n-1){for((h===""||h===" ")&&(F-=V);J<=s;)i[J].an=F,i[J].ind=l,i[J].extra=V,J+=1;l+=1,F=0}}else if(d==3){if(F+=V,h===""||s===n-1){for(h===""&&(F-=V);J<=s;)i[J].an=F,i[J].ind=l,i[J].extra=V,J+=1;F=0,l+=1}}else i[l].ind=l,i[l].extra=0,l+=1;if(e.l=i,G=H>G?H:G,q.push(H),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=G,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=q;var re=r.a,se,W;j=re.length;var K,oe,ne=[];for(te=0;te<j;te+=1){for(se=re[te],se.a.sc&&(e.strokeColorAnim=!0),se.a.sw&&(e.strokeWidthAnim=!0),(se.a.fc||se.a.fh||se.a.fs||se.a.fb)&&(e.fillColorAnim=!0),oe=0,K=se.s.b,s=0;s<n;s+=1)W=i[s],W.anIndexes[te]=oe,(K==1&&W.val!==""||K==2&&W.val!==""&&W.val!==" "||K==3&&(W.n||W.val==" "||s==n-1)||K==4&&(W.n||s==n-1))&&(se.s.rn===1&&ne.push(oe),oe+=1);r.a[te].s.totalChars=oe;var ce=-1,pe;if(se.s.rn===1)for(s=0;s<n;s+=1)W=i[s],ce!=W.anIndexes[te]&&(ce=W.anIndexes[te],pe=ne.splice(Math.floor(Math.random()*ne.length),1)[0]),W.anIndexes[te]=pe}e.yOffset=e.finalLineHeight||e.finalSize*1.2,e.ls=e.ls||0,e.ascent=Z.ascent*e.finalSize/100},TextProperty.prototype.updateDocumentData=function(e,t){t=t===void 0?this.keysIndex:t;var r=this.copyData({},this.data.d.k[t].s);r=this.copyData(r,e),this.data.d.k[t].s=r,this.recalculate(t),this.setCurrentData(r),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(e){var t=this.data.d.k[e].s;t.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(t)},TextProperty.prototype.canResizeFont=function(e){this.canResize=e,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(e){this.minimumFontSize=Math.floor(e)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=(function(){var e=Math.max,t=Math.min,r=Math.floor;function i(n,a){this._currentTextLength=-1,this.k=!1,this.data=a,this.elem=n,this.comp=n.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(n),this.s=PropertyFactory.getProp(n,a.s||{k:0},0,0,this),"e"in a?this.e=PropertyFactory.getProp(n,a.e,0,0,this):this.e={v:100},this.o=PropertyFactory.getProp(n,a.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(n,a.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(n,a.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(n,a.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(n,a.a,0,.01,this),this.dynamicProperties.length||this.getValue()}i.prototype={getMult:function(a){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var l=0,h=0,d=1,F=1;this.ne.v>0?l=this.ne.v/100:h=-this.ne.v/100,this.xe.v>0?d=1-this.xe.v/100:F=1+this.xe.v/100;var J=BezierFactory.getBezierEasing(l,h,d,F).get,y=0,q=this.finalS,H=this.finalE,G=this.data.sh;if(G===2)H===q?y=a>=H?1:0:y=e(0,t(.5/(H-q)+(a-q)/(H-q),1)),y=J(y);else if(G===3)H===q?y=a>=H?0:1:y=1-e(0,t(.5/(H-q)+(a-q)/(H-q),1)),y=J(y);else if(G===4)H===q?y=0:(y=e(0,t(.5/(H-q)+(a-q)/(H-q),1)),y<.5?y*=2:y=1-2*(y-.5)),y=J(y);else if(G===5){if(H===q)y=0;else{var te=H-q;a=t(e(0,a+.5-q),H-q);var j=-te/2+a,Z=te/2;y=Math.sqrt(1-j*j/(Z*Z))}y=J(y)}else G===6?(H===q?y=0:(a=t(e(0,a+.5-q),H-q),y=(1+Math.cos(Math.PI+Math.PI*2*a/(H-q)))/2),y=J(y)):(a>=r(q)&&(a-q<0?y=e(0,t(t(H,1)-(q-a),1)):y=e(0,t(H-a,1))),y=J(y));if(this.sm.v!==100){var M=this.sm.v*.01;M===0&&(M=1e-8);var V=.5-M*.5;y<V?y=0:(y=(y-V)/M,y>1&&(y=1))}return y*this.a.v},getValue:function(a){this.iterateDynamicProperties(),this._mdf=a||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,a&&this.data.r===2&&(this.e.v=this._currentTextLength);var l=this.data.r===2?1:100/this.data.totalChars,h=this.o.v/l,d=this.s.v/l+h,F=this.e.v/l+h;if(d>F){var J=d;d=F,F=J}this.finalS=d,this.finalE=F}},extendPrototype([DynamicPropertyContainer],i);function s(n,a,l){return new i(n,a)}return{getTextSelectorProp:s}})();function TextAnimatorDataProperty(e,t,r){var i={propType:!1},s=PropertyFactory.getProp,n=t.a;this.a={r:n.r?s(e,n.r,0,degToRads,r):i,rx:n.rx?s(e,n.rx,0,degToRads,r):i,ry:n.ry?s(e,n.ry,0,degToRads,r):i,sk:n.sk?s(e,n.sk,0,degToRads,r):i,sa:n.sa?s(e,n.sa,0,degToRads,r):i,s:n.s?s(e,n.s,1,.01,r):i,a:n.a?s(e,n.a,1,0,r):i,o:n.o?s(e,n.o,0,.01,r):i,p:n.p?s(e,n.p,1,0,r):i,sw:n.sw?s(e,n.sw,0,0,r):i,sc:n.sc?s(e,n.sc,1,0,r):i,fc:n.fc?s(e,n.fc,1,0,r):i,fh:n.fh?s(e,n.fh,0,0,r):i,fs:n.fs?s(e,n.fs,0,.01,r):i,fb:n.fb?s(e,n.fb,0,.01,r):i,t:n.t?s(e,n.t,0,0,r):i},this.s=TextSelectorProp.getTextSelectorProp(e,t.s,r),this.s.t=t.s.t}function TextAnimatorProperty(e,t,r){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=t,this._elem=r,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(r)}TextAnimatorProperty.prototype.searchProperties=function(){var e,t=this._textData.a.length,r,i=PropertyFactory.getProp;for(e=0;e<t;e+=1)r=this._textData.a[e],this._animatorsData[e]=new TextAnimatorDataProperty(this._elem,r,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(e,t){if(this.lettersChangedFlag=t,!(!this._mdf&&!this._isFirstFrame&&!t&&(!this._hasMaskedPath||!this._pathData.m._mdf))){this._isFirstFrame=!1;var r=this._moreOptions.alignment.v,i=this._animatorsData,s=this._textData,n=this.mHelper,a=this._renderType,l=this.renderedLetters.length,h,d,F,J,y=e.l,q,H,G,te,j,Z,M,V,Q,ee,ie,ae,le,ye,ue;if(this._hasMaskedPath){if(ue=this._pathData.m,!this._pathData.n||this._pathData._mdf){var fe=ue.v;this._pathData.r.v&&(fe=fe.reverse()),q={tLength:0,segments:[]},J=fe._length-1;var me;for(ae=0,F=0;F<J;F+=1)me=bez.buildBezierData(fe.v[F],fe.v[F+1],[fe.o[F][0]-fe.v[F][0],fe.o[F][1]-fe.v[F][1]],[fe.i[F+1][0]-fe.v[F+1][0],fe.i[F+1][1]-fe.v[F+1][1]]),q.tLength+=me.segmentLength,q.segments.push(me),ae+=me.segmentLength;F=J,ue.v.c&&(me=bez.buildBezierData(fe.v[F],fe.v[0],[fe.o[F][0]-fe.v[F][0],fe.o[F][1]-fe.v[F][1]],[fe.i[0][0]-fe.v[0][0],fe.i[0][1]-fe.v[0][1]]),q.tLength+=me.segmentLength,q.segments.push(me),ae+=me.segmentLength),this._pathData.pi=q}if(q=this._pathData.pi,H=this._pathData.f.v,M=0,Z=1,te=0,j=!0,ee=q.segments,H<0&&ue.v.c)for(q.tLength<Math.abs(H)&&(H=-Math.abs(H)%q.tLength),M=ee.length-1,Q=ee[M].points,Z=Q.length-1;H<0;)H+=Q[Z].partialLength,Z-=1,Z<0&&(M-=1,Q=ee[M].points,Z=Q.length-1);Q=ee[M].points,V=Q[Z-1],G=Q[Z],ie=G.partialLength}J=y.length,h=0,d=0;var ve=e.finalSize*1.2*.714,he=!0,re,se,W,K,oe;K=i.length;var ne,ce=-1,pe,de,xe,be=H,Pe=M,Ee=Z,Me=-1,Ce,Se,Te,_e,ge,Re,ze,Ie,Fe="",je=this.defaultPropsArray,Le;if(e.j===2||e.j===1){var we=0,De=0,Ve=e.j===2?-.5:-1,Ae=0,Oe=!0;for(F=0;F<J;F+=1)if(y[F].n){for(we&&(we+=De);Ae<F;)y[Ae].animatorJustifyOffset=we,Ae+=1;we=0,Oe=!0}else{for(W=0;W<K;W+=1)re=i[W].a,re.t.propType&&(Oe&&e.j===2&&(De+=re.t.v*Ve),se=i[W].s,ne=se.getMult(y[F].anIndexes[W],s.a[W].s.totalChars),ne.length?we+=re.t.v*ne[0]*Ve:we+=re.t.v*ne*Ve);Oe=!1}for(we&&(we+=De);Ae<F;)y[Ae].animatorJustifyOffset=we,Ae+=1}for(F=0;F<J;F+=1){if(n.reset(),Ce=1,y[F].n)h=0,d+=e.yOffset,d+=he?1:0,H=be,he=!1,this._hasMaskedPath&&(M=Pe,Z=Ee,Q=ee[M].points,V=Q[Z-1],G=Q[Z],ie=G.partialLength,te=0),Fe="",Ie="",Re="",Le="",je=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Me!==y[F].line){switch(e.j){case 1:H+=ae-e.lineWidths[y[F].line];break;case 2:H+=(ae-e.lineWidths[y[F].line])/2;break}Me=y[F].line}ce!==y[F].ind&&(y[ce]&&(H+=y[ce].extra),H+=y[F].an/2,ce=y[F].ind),H+=r[0]*y[F].an*.005;var ke=0;for(W=0;W<K;W+=1)re=i[W].a,re.p.propType&&(se=i[W].s,ne=se.getMult(y[F].anIndexes[W],s.a[W].s.totalChars),ne.length?ke+=re.p.v[0]*ne[0]:ke+=re.p.v[0]*ne),re.a.propType&&(se=i[W].s,ne=se.getMult(y[F].anIndexes[W],s.a[W].s.totalChars),ne.length?ke+=re.a.v[0]*ne[0]:ke+=re.a.v[0]*ne);for(j=!0,this._pathData.a.v&&(H=y[0].an*.5+(ae-this._pathData.f.v-y[0].an*.5-y[y.length-1].an*.5)*ce/(J-1),H+=this._pathData.f.v);j;)te+ie>=H+ke||!Q?(le=(H+ke-te)/G.partialLength,de=V.point[0]+(G.point[0]-V.point[0])*le,xe=V.point[1]+(G.point[1]-V.point[1])*le,n.translate(-r[0]*y[F].an*.005,-(r[1]*ve)*.01),j=!1):Q&&(te+=G.partialLength,Z+=1,Z>=Q.length&&(Z=0,M+=1,ee[M]?Q=ee[M].points:ue.v.c?(Z=0,M=0,Q=ee[M].points):(te-=G.partialLength,Q=null)),Q&&(V=G,G=Q[Z],ie=G.partialLength));pe=y[F].an/2-y[F].add,n.translate(-pe,0,0)}else pe=y[F].an/2-y[F].add,n.translate(-pe,0,0),n.translate(-r[0]*y[F].an*.005,-r[1]*ve*.01,0);for(W=0;W<K;W+=1)re=i[W].a,re.t.propType&&(se=i[W].s,ne=se.getMult(y[F].anIndexes[W],s.a[W].s.totalChars),(h!==0||e.j!==0)&&(this._hasMaskedPath?ne.length?H+=re.t.v*ne[0]:H+=re.t.v*ne:ne.length?h+=re.t.v*ne[0]:h+=re.t.v*ne));for(e.strokeWidthAnim&&(Te=e.sw||0),e.strokeColorAnim&&(e.sc?Se=[e.sc[0],e.sc[1],e.sc[2]]:Se=[0,0,0]),e.fillColorAnim&&e.fc&&(_e=[e.fc[0],e.fc[1],e.fc[2]]),W=0;W<K;W+=1)re=i[W].a,re.a.propType&&(se=i[W].s,ne=se.getMult(y[F].anIndexes[W],s.a[W].s.totalChars),ne.length?n.translate(-re.a.v[0]*ne[0],-re.a.v[1]*ne[1],re.a.v[2]*ne[2]):n.translate(-re.a.v[0]*ne,-re.a.v[1]*ne,re.a.v[2]*ne));for(W=0;W<K;W+=1)re=i[W].a,re.s.propType&&(se=i[W].s,ne=se.getMult(y[F].anIndexes[W],s.a[W].s.totalChars),ne.length?n.scale(1+(re.s.v[0]-1)*ne[0],1+(re.s.v[1]-1)*ne[1],1):n.scale(1+(re.s.v[0]-1)*ne,1+(re.s.v[1]-1)*ne,1));for(W=0;W<K;W+=1){if(re=i[W].a,se=i[W].s,ne=se.getMult(y[F].anIndexes[W],s.a[W].s.totalChars),re.sk.propType&&(ne.length?n.skewFromAxis(-re.sk.v*ne[0],re.sa.v*ne[1]):n.skewFromAxis(-re.sk.v*ne,re.sa.v*ne)),re.r.propType&&(ne.length?n.rotateZ(-re.r.v*ne[2]):n.rotateZ(-re.r.v*ne)),re.ry.propType&&(ne.length?n.rotateY(re.ry.v*ne[1]):n.rotateY(re.ry.v*ne)),re.rx.propType&&(ne.length?n.rotateX(re.rx.v*ne[0]):n.rotateX(re.rx.v*ne)),re.o.propType&&(ne.length?Ce+=(re.o.v*ne[0]-Ce)*ne[0]:Ce+=(re.o.v*ne-Ce)*ne),e.strokeWidthAnim&&re.sw.propType&&(ne.length?Te+=re.sw.v*ne[0]:Te+=re.sw.v*ne),e.strokeColorAnim&&re.sc.propType)for(ge=0;ge<3;ge+=1)ne.length?Se[ge]+=(re.sc.v[ge]-Se[ge])*ne[0]:Se[ge]+=(re.sc.v[ge]-Se[ge])*ne;if(e.fillColorAnim&&e.fc){if(re.fc.propType)for(ge=0;ge<3;ge+=1)ne.length?_e[ge]+=(re.fc.v[ge]-_e[ge])*ne[0]:_e[ge]+=(re.fc.v[ge]-_e[ge])*ne;re.fh.propType&&(ne.length?_e=addHueToRGB(_e,re.fh.v*ne[0]):_e=addHueToRGB(_e,re.fh.v*ne)),re.fs.propType&&(ne.length?_e=addSaturationToRGB(_e,re.fs.v*ne[0]):_e=addSaturationToRGB(_e,re.fs.v*ne)),re.fb.propType&&(ne.length?_e=addBrightnessToRGB(_e,re.fb.v*ne[0]):_e=addBrightnessToRGB(_e,re.fb.v*ne))}}for(W=0;W<K;W+=1)re=i[W].a,re.p.propType&&(se=i[W].s,ne=se.getMult(y[F].anIndexes[W],s.a[W].s.totalChars),this._hasMaskedPath?ne.length?n.translate(0,re.p.v[1]*ne[0],-re.p.v[2]*ne[1]):n.translate(0,re.p.v[1]*ne,-re.p.v[2]*ne):ne.length?n.translate(re.p.v[0]*ne[0],re.p.v[1]*ne[1],-re.p.v[2]*ne[2]):n.translate(re.p.v[0]*ne,re.p.v[1]*ne,-re.p.v[2]*ne));if(e.strokeWidthAnim&&(Re=Te<0?0:Te),e.strokeColorAnim&&(ze="rgb("+Math.round(Se[0]*255)+","+Math.round(Se[1]*255)+","+Math.round(Se[2]*255)+")"),e.fillColorAnim&&e.fc&&(Ie="rgb("+Math.round(_e[0]*255)+","+Math.round(_e[1]*255)+","+Math.round(_e[2]*255)+")"),this._hasMaskedPath){if(n.translate(0,-e.ls),n.translate(0,r[1]*ve*.01+d,0),this._pathData.p.v){ye=(G.point[1]-V.point[1])/(G.point[0]-V.point[0]);var Be=Math.atan(ye)*180/Math.PI;G.point[0]<V.point[0]&&(Be+=180),n.rotate(-Be*Math.PI/180)}n.translate(de,xe,0),H-=r[0]*y[F].an*.005,y[F+1]&&ce!==y[F+1].ind&&(H+=y[F].an/2,H+=e.tr*.001*e.finalSize)}else{switch(n.translate(h,d,0),e.ps&&n.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:n.translate(y[F].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[y[F].line]),0,0);break;case 2:n.translate(y[F].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[y[F].line])/2,0,0);break}n.translate(0,-e.ls),n.translate(pe,0,0),n.translate(r[0]*y[F].an*.005,r[1]*ve*.01,0),h+=y[F].l+e.tr*.001*e.finalSize}a==="html"?Fe=n.toCSS():a==="svg"?Fe=n.to2dCSS():je=[n.props[0],n.props[1],n.props[2],n.props[3],n.props[4],n.props[5],n.props[6],n.props[7],n.props[8],n.props[9],n.props[10],n.props[11],n.props[12],n.props[13],n.props[14],n.props[15]],Le=Ce}l<=F?(oe=new LetterProps(Le,Re,ze,Ie,Fe,je),this.renderedLetters.push(oe),l+=1,this.lettersChangedFlag=!0):(oe=this.renderedLetters[F],this.lettersChangedFlag=oe.update(Le,Re,ze,Ie,Fe,je)||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);function ITextElement(){}ITextElement.prototype.initElement=function(e,t,r){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(e,t,r),this.textProperty=new TextProperty(this,e.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(e.t,this.renderType,this),this.initTransform(e,t,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange)},ITextElement.prototype.createPathShape=function(e,t){var r,i=t.length,s,n="";for(r=0;r<i;r+=1)t[r].ty==="sh"&&(s=t[r].ks.k,n+=buildShapeString(s,s.i.length,!0,e));return n},ITextElement.prototype.updateDocumentData=function(e,t){this.textProperty.updateDocumentData(e,t)},ITextElement.prototype.canResizeFont=function(e){this.textProperty.canResizeFont(e)},ITextElement.prototype.setMinimumFontSize=function(e){this.textProperty.setMinimumFontSize(e)},ITextElement.prototype.applyTextPropertiesToMatrix=function(e,t,r,i,s){switch(e.ps&&t.translate(e.ps[0],e.ps[1]+e.ascent,0),t.translate(0,-e.ls,0),e.j){case 1:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[r]),0,0);break;case 2:t.translate(e.justifyOffset+(e.boxWidth-e.lineWidths[r])/2,0,0);break}t.translate(i,s,0)},ITextElement.prototype.buildColor=function(e){return"rgb("+Math.round(e[0]*255)+","+Math.round(e[1]*255)+","+Math.round(e[2]*255)+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){},ITextElement.prototype.validateText=function(){(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)};var emptyShapeData={shapes:[]};function SVGTextLottieElement(e,t,r){this.textSpans=[],this.renderType="svg",this.initElement(e,t,r)}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(e){for(var t=0,r=e.length,i=[],s="";t<r;)e[t]==="\r"||e[t]===""?(i.push(s),s=""):s+=e[t],t+=1;return i.push(s),i},SVGTextLottieElement.prototype.buildShapeData=function(e,t){if(e.shapes&&e.shapes.length){var r=e.shapes[0];if(r.it){var i=r.it[r.it.length-1];i.s&&(i.s.k[0]=t,i.s.k[1]=t)}}return e},SVGTextLottieElement.prototype.buildNewText=function(){this.addDynamicProperty(this);var e,t,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 s=r.fWeight,n=r.fStyle;this.layerElement.setAttribute("font-style",n),this.layerElement.setAttribute("font-weight",s)}this.layerElement.setAttribute("aria-label",r.t);var a=r.l||[],l=!!this.globalData.fontManager.chars;t=a.length;var h,d=this.mHelper,F="",J=this.data.singleShape,y=0,q=0,H=!0,G=r.tr*.001*r.finalSize;if(J&&!l&&!r.sz){var te=this.textContainer,j="start";switch(r.j){case 1:j="end";break;case 2:j="middle";break;default:j="start";break}te.setAttribute("text-anchor",j),te.setAttribute("letter-spacing",G);var Z=this.buildTextContents(r.finalText);for(t=Z.length,q=r.ps?r.ps[1]+r.ascent:0,e=0;e<t;e+=1)h=this.textSpans[e].span||createNS("tspan"),h.textContent=Z[e],h.setAttribute("x",0),h.setAttribute("y",q),h.style.display="inherit",te.appendChild(h),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=h,q+=r.finalLineHeight;this.layerElement.appendChild(te)}else{var M=this.textSpans.length,V;for(e=0;e<t;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!l||!J||e===0){if(h=M>e?this.textSpans[e].span:createNS(l?"g":"text"),M<=e){if(h.setAttribute("stroke-linecap","butt"),h.setAttribute("stroke-linejoin","round"),h.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=h,l){var Q=createNS("g");h.appendChild(Q),this.textSpans[e].childSpan=Q}this.textSpans[e].span=h,this.layerElement.appendChild(h)}h.style.display="inherit"}if(d.reset(),J&&(a[e].n&&(y=-G,q+=r.yOffset,q+=H?1:0,H=!1),this.applyTextPropertiesToMatrix(r,d,a[e].line,y,q),y+=a[e].l||0,y+=G),l){V=this.globalData.fontManager.getCharData(r.finalText[e],i.fStyle,this.globalData.fontManager.getFontByName(r.f).fFamily);var ee;if(V.t===1)ee=new SVGCompElement(V.data,this.globalData,this);else{var ie=emptyShapeData;V.data&&V.data.shapes&&(ie=this.buildShapeData(V.data,r.finalSize)),ee=new SVGShapeElement(ie,this.globalData,this)}if(this.textSpans[e].glyph){var ae=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(ae.layerElement),ae.destroy()}this.textSpans[e].glyph=ee,ee._debug=!0,ee.prepareFrame(0),ee.renderFrame(),this.textSpans[e].childSpan.appendChild(ee.layerElement),V.t===1&&this.textSpans[e].childSpan.setAttribute("transform","scale("+r.finalSize/100+","+r.finalSize/100+")")}else J&&h.setAttribute("transform","translate("+d.props[12]+","+d.props[13]+")"),h.textContent=a[e].val,h.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}J&&h&&h.setAttribute("d",F)}for(;e<this.textSpans.length;)this.textSpans[e].span.style.display="none",e+=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 e=this.layerElement.getBBox();this.bbox={top:e.y,left:e.x,width:e.width,height:e.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var e,t=this.textSpans.length,r;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<t;e+=1)r=this.textSpans[e].glyph,r&&(r.prepareFrame(this.comp.renderedFrame-this.data.st),r._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if(this.validateText(),(!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){this._sizeChanged=!0;var e,t,r=this.textAnimator.renderedLetters,i=this.textProperty.currentData.l;t=i.length;var s,n,a;for(e=0;e<t;e+=1)i[e].n||(s=r[e],n=this.textSpans[e].span,a=this.textSpans[e].glyph,a&&a.renderFrame(),s._mdf.m&&n.setAttribute("transform",s.m),s._mdf.o&&n.setAttribute("opacity",s.o),s._mdf.sw&&n.setAttribute("stroke-width",s.sw),s._mdf.sc&&n.setAttribute("stroke",s.sc),s._mdf.fc&&n.setAttribute("fill",s.fc))}};function ISolidElement(e,t,r){this.initElement(e,t,r)}extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var e=createNS("rect");e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.layerElement.appendChild(e)};function NullElement(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initFrame(),this.initTransform(e,t,r),this.initHierarchy()}NullElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!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);function SVGRendererBase(){}extendPrototype([BaseRenderer],SVGRendererBase),SVGRendererBase.prototype.createNull=function(e){return new NullElement(e,this.globalData,this)},SVGRendererBase.prototype.createShape=function(e){return new SVGShapeElement(e,this.globalData,this)},SVGRendererBase.prototype.createText=function(e){return new SVGTextLottieElement(e,this.globalData,this)},SVGRendererBase.prototype.createImage=function(e){return new IImageElement(e,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(e){return new ISolidElement(e,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(e){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 "+e.w+" "+e.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",e.w),this.svgElement.setAttribute("height",e.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 t=this.globalData.defs;this.setupGlobalData(e,t),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var r=createNS("clipPath"),i=createNS("rect");i.setAttribute("width",e.w),i.setAttribute("height",e.h),i.setAttribute("x",0),i.setAttribute("y",0);var s=createElementID();r.setAttribute("id",s),r.appendChild(i),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+s+")"),t.appendChild(r),this.layers=e.layers,this.elements=createSizedArray(e.layers.length)},SVGRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e,t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.findIndexByInd=function(e){var t=0,r=this.layers.length;for(t=0;t<r;t+=1)if(this.layers[t].ind===e)return t;return-1},SVGRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!(t[e]||this.layers[e].ty===99)){t[e]=!0;var r=this.createItem(this.layers[e]);if(t[e]=r,getExpressionsPlugin()&&(this.layers[e].ty===0&&this.globalData.projectInterface.registerComposition(r),r.initExpressions()),this.appendElementInPos(r,e),this.layers[e].tt){var i="tp"in this.layers[e]?this.findIndexByInd(this.layers[e].tp):e-1;if(i===-1)return;if(!this.elements[i]||this.elements[i]===!0)this.buildItem(i),this.addPendingElement(r);else{var s=t[i],n=s.getMatte(this.layers[e].tt);r.setMatte(n)}}}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();if(e.checkParenting(),e.data.tt)for(var t=0,r=this.elements.length;t<r;){if(this.elements[t]===e){var i="tp"in e.data?this.findIndexByInd(e.data.tp):t-1,s=this.elements[i],n=s.getMatte(this.layers[t].tt);e.setMatte(n);break}t+=1}}},SVGRendererBase.prototype.renderFrame=function(e){if(!(this.renderedFrame===e||this.destroyed)){e===null?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var t,r=this.layers.length;for(this.completeLayers||this.checkLayers(e),t=r-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].prepareFrame(e-this.layers[t].st);if(this.globalData._mdf)for(t=0;t<r;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(e,t){var r=e.getBaseElement();if(r){for(var i=0,s;i<t;)this.elements[i]&&this.elements[i]!==!0&&this.elements[i].getBaseElement()&&(s=this.elements[i].getBaseElement()),i+=1;s?this.layerElement.insertBefore(r,s):this.layerElement.appendChild(r)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"};function ICompElement(){}extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initTransform(e,t,r),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),(this.data.xt||!t.progressiveLoad)&&this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(e){if(this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),!(!this.isInRange&&!this.data.xt)){if(this.tm._placeholder)this.renderedFrame=e/this.data.sr;else{var t=this.tm.v;t===this.data.op&&(t=this.data.op-1),this.renderedFrame=t}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 e,t=this.layers.length;for(e=0;e<t;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},ICompElement.prototype.setElements=function(e){this.elements=e},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var e,t=this.layers.length;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()};function SVGCompElement(e,t,r){this.layers=e.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)};function SVGRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var r="";if(t&&t.title){var i=createNS("title"),s=createElementID();i.setAttribute("id",s),i.textContent=t.title,this.svgElement.appendChild(i),r+=s}if(t&&t.description){var n=createNS("desc"),a=createElementID();n.setAttribute("id",a),n.textContent=t.description,this.svgElement.appendChild(n),r+=" "+a}r&&this.svgElement.setAttribute("aria-labelledby",r);var l=createNS("defs");this.svgElement.appendChild(l);var h=createNS("g");this.svgElement.appendChild(h),this.layerElement=h,this.renderConfig={preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",progressiveLoad:t&&t.progressiveLoad||!1,hideOnTransparent:!(t&&t.hideOnTransparent===!1),viewBoxOnly:t&&t.viewBoxOnly||!1,viewBoxSize:t&&t.viewBoxSize||!1,className:t&&t.className||"",id:t&&t.id||"",focusable:t&&t.focusable,filterSize:{width:t&&t.filterSize&&t.filterSize.width||"100%",height:t&&t.filterSize&&t.filterSize.height||"100%",x:t&&t.filterSize&&t.filterSize.x||"0%",y:t&&t.filterSize&&t.filterSize.y||"0%"},width:t&&t.width,height:t&&t.height,runExpressions:!t||t.runExpressions===void 0||t.runExpressions},this.globalData={_mdf:!1,frameNum:-1,defs:l,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)};function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}ShapeTransformManager.prototype={addTransformSequence:function(t){var r,i=t.length,s="_";for(r=0;r<i;r+=1)s+=t[r].transform.key+"_";var n=this.sequences[s];return n||(n={transforms:[].concat(t),finalTransform:new Matrix,_mdf:!1},this.sequences[s]=n,this.sequenceList.push(n)),n},processSequence:function(t,r){for(var i=0,s=t.transforms.length,n=r;i<s&&!r;){if(t.transforms[i].transform.mProps._mdf){n=!0;break}i+=1}if(n)for(t.finalTransform.reset(),i=s-1;i>=0;i-=1)t.finalTransform.multiply(t.transforms[i].transform.mProps.v);t._mdf=n},processSequences:function(t){var r,i=this.sequenceList.length;for(r=0;r<i;r+=1)this.processSequence(this.sequenceList[r],t)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}};var lumaLoader=function(){var t="__lottie_element_luma_buffer",r=null,i=null,s=null;function n(){var h=createNS("svg"),d=createNS("filter"),F=createNS("feColorMatrix");return d.setAttribute("id",t),F.setAttribute("type","matrix"),F.setAttribute("color-interpolation-filters","sRGB"),F.setAttribute("values","0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0, 0.3, 0.3, 0.3, 0, 0"),d.appendChild(F),h.appendChild(d),h.setAttribute("id",t+"_svg"),featureSupport.svgLumaHidden&&(h.style.display="none"),h}function a(){r||(s=n(),document.body.appendChild(s),r=createTag("canvas"),i=r.getContext("2d"),i.filter="url(#"+t+")",i.fillStyle="rgba(0,0,0,0)",i.fillRect(0,0,1,1))}function l(h){return r||a(),r.width=h.width,r.height=h.height,i.filter="url(#"+t+")",r}return{load:a,get:l}};function createCanvas(e,t){if(featureSupport.offscreenCanvas)return new OffscreenCanvas(e,t);var r=createTag("canvas");return r.width=e,r.height=t,r}var assetLoader=(function(){return{loadLumaCanvas:lumaLoader.load,getLumaCanvas:lumaLoader.get,createCanvas}})(),registeredEffects={};function CVEffects(e){var t,r=e.data.ef?e.data.ef.length:0;this.filters=[];var i;for(t=0;t<r;t+=1){i=null;var s=e.data.ef[t].ty;if(registeredEffects[s]){var n=registeredEffects[s].effect;i=new n(e.effectsManager.effectElements[t],e)}i&&this.filters.push(i)}this.filters.length&&e.addRenderableComponent(this)}CVEffects.prototype.renderFrame=function(e){var t,r=this.filters.length;for(t=0;t<r;t+=1)this.filters[t].renderFrame(e)},CVEffects.prototype.getEffects=function(e){var t,r=this.filters.length,i=[];for(t=0;t<r;t+=1)this.filters[t].type===e&&i.push(this.filters[t]);return i};function registerEffect(e,t){registeredEffects[e]={effect:t}}function CVMaskElement(e,t){this.data=e,this.element=t,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var r,i=this.masksProperties.length,s=!1;for(r=0;r<i;r+=1)this.masksProperties[r].mode!=="n"&&(s=!0),this.viewData[r]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[r],3);this.hasMasks=s,s&&this.element.addRenderableComponent(this)}CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var e=this.element.finalTransform.mat,t=this.element.canvasContext,r,i=this.masksProperties.length,s,n,a;for(t.beginPath(),r=0;r<i;r+=1)if(this.masksProperties[r].mode!=="n"){this.masksProperties[r].inv&&(t.moveTo(0,0),t.lineTo(this.element.globalData.compSize.w,0),t.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),t.lineTo(0,this.element.globalData.compSize.h),t.lineTo(0,0)),a=this.viewData[r].v,s=e.applyToPointArray(a.v[0][0],a.v[0][1],0),t.moveTo(s[0],s[1]);var l,h=a._length;for(l=1;l<h;l+=1)n=e.applyToTriplePoints(a.o[l-1],a.i[l],a.v[l]),t.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5]);n=e.applyToTriplePoints(a.o[l-1],a.i[0],a.v[0]),t.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5])}this.element.globalData.renderer.save(!0),t.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null};function CVBaseElement(){}var operationsMap={1:"source-in",2:"source-out",3:"source-in",4:"source-out"};CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){if(this.data.tt>=1){this.buffers=[];var t=this.globalData.canvasContext,r=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(r);var i=assetLoader.createCanvas(t.canvas.width,t.canvas.height);this.buffers.push(i),this.data.tt>=3&&!document._isProxy&&assetLoader.loadLumaCanvas()}this.canvasContext=this.globalData.canvasContext,this.transformCanvas=this.globalData.transformCanvas,this.renderableEffectsManager=new CVEffects(this),this.searchEffectTransforms()},createContent:function(){},setBlendMode:function(){var t=this.globalData;if(t.blendMode!==this.data.bm){t.blendMode=this.data.bm;var r=getBlendMode(this.data.bm);t.canvasContext.globalCompositeOperation=r}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this),this.transformEffects=this.renderableEffectsManager.getEffects(effectTypes.TRANSFORM_EFFECT)},hideElement:function(){!this.hidden&&(!this.isInRange||this.isTransparent)&&(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},clearCanvas:function(t){t.clearRect(this.transformCanvas.tx,this.transformCanvas.ty,this.transformCanvas.w*this.transformCanvas.sx,this.transformCanvas.h*this.transformCanvas.sy)},prepareLayer:function(){if(this.data.tt>=1){var t=this.buffers[0],r=t.getContext("2d");this.clearCanvas(r),r.drawImage(this.canvasContext.canvas,0,0),this.currentTransform=this.canvasContext.getTransform(),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform)}},exitLayer:function(){if(this.data.tt>=1){var t=this.buffers[1],r=t.getContext("2d");this.clearCanvas(r),r.drawImage(this.canvasContext.canvas,0,0),this.canvasContext.setTransform(1,0,0,1,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.setTransform(this.currentTransform);var i=this.comp.getElementById("tp"in this.data?this.data.tp:this.data.ind-1);if(i.renderFrame(!0),this.canvasContext.setTransform(1,0,0,1,0,0),this.data.tt>=3&&!document._isProxy){var s=assetLoader.getLumaCanvas(this.canvasContext.canvas),n=s.getContext("2d");n.drawImage(this.canvasContext.canvas,0,0),this.clearCanvas(this.canvasContext),this.canvasContext.drawImage(s,0,0)}this.canvasContext.globalCompositeOperation=operationsMap[this.data.tt],this.canvasContext.drawImage(t,0,0),this.canvasContext.globalCompositeOperation="destination-over",this.canvasContext.drawImage(this.buffers[0],0,0),this.canvasContext.setTransform(this.currentTransform),this.canvasContext.globalCompositeOperation="source-over"}},renderFrame:function(t){if(!(this.hidden||this.data.hd)&&!(this.data.td===1&&!t)){this.renderTransform(),this.renderRenderable(),this.renderLocalTransform(),this.setBlendMode();var r=this.data.ty===0;this.prepareLayer(),this.globalData.renderer.save(r),this.globalData.renderer.ctxTransform(this.finalTransform.localMat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.localOpacity),this.renderInnerContent(),this.globalData.renderer.restore(r),this.exitLayer(),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement;function CVShapeData(e,t,r,i){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var s=4;t.ty==="rc"?s=5:t.ty==="el"?s=6:t.ty==="sr"&&(s=7),this.sh=ShapePropertyFactory.getShapeProp(e,t,s,e);var n,a=r.length,l;for(n=0;n<a;n+=1)r[n].closed||(l={transforms:i.addTransformSequence(r[n].transforms),trNodes:[]},this.styledShapes.push(l),r[n].elements.push(l))}CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated;function CVShapeElement(e,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(e,t,r)}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(e,t){var r={data:e,type:e.ty,preTransforms:this.transformsManager.addTransformSequence(t),transforms:[],elements:[],closed:e.hd===!0},i={};if(e.ty==="fl"||e.ty==="st"?(i.c=PropertyFactory.getProp(this,e.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])+")")):(e.ty==="gf"||e.ty==="gs")&&(i.s=PropertyFactory.getProp(this,e.s,1,null,this),i.e=PropertyFactory.getProp(this,e.e,1,null,this),i.h=PropertyFactory.getProp(this,e.h||{k:0},0,.01,this),i.a=PropertyFactory.getProp(this,e.a||{k:0},0,degToRads,this),i.g=new GradientProperty(this,e.g,this)),i.o=PropertyFactory.getProp(this,e.o,0,.01,this),e.ty==="st"||e.ty==="gs"){if(r.lc=lineCapEnum[e.lc||2],r.lj=lineJoinEnum[e.lj||2],e.lj==1&&(r.ml=e.ml),i.w=PropertyFactory.getProp(this,e.w,0,null,this),i.w.k||(r.wi=i.w.v),e.d){var s=new DashProperty(this,e.d,"canvas",this);i.d=s,i.d.k||(r.da=i.d.dashArray,r.do=i.d.dashoffset[0])}}else r.r=e.r===2?"evenodd":"nonzero";return this.stylesList.push(r),i.style=r,i},CVShapeElement.prototype.createGroupElement=function(){var e={it:[],prevViewData:[]};return e},CVShapeElement.prototype.createTransformElement=function(e){var t={transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,e.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,e,this)}};return t},CVShapeElement.prototype.createShapeElement=function(e){var t=new CVShapeData(this,e,this.stylesList,this.transformsManager);return this.shapes.push(t),this.addShapeToModifiers(t),t},CVShapeElement.prototype.reloadShapes=function(){this._isFirstFrame=!0;var e,t=this.itemsData.length;for(e=0;e<t;e+=1)this.prevViewData[e]=this.itemsData[e];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),t=this.dynamicProperties.length,e=0;e<t;e+=1)this.dynamicProperties[e].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(e){var t,r=this.stylesList.length;for(t=0;t<r;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.push(e)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var e,t=this.stylesList.length;for(e=0;e<t;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.pop()},CVShapeElement.prototype.closeStyles=function(e){var t,r=e.length;for(t=0;t<r;t+=1)e[t].closed=!0},CVShapeElement.prototype.searchShapes=function(e,t,r,i,s){var n,a=e.length-1,l,h,d=[],F=[],J,y,q,H=[].concat(s);for(n=a;n>=0;n-=1){if(J=this.searchProcessedElement(e[n]),J?t[n]=r[J-1]:e[n]._shouldRender=i,e[n].ty==="fl"||e[n].ty==="st"||e[n].ty==="gf"||e[n].ty==="gs")J?t[n].style.closed=!1:t[n]=this.createStyleElement(e[n],H),d.push(t[n].style);else if(e[n].ty==="gr"){if(!J)t[n]=this.createGroupElement(e[n]);else for(h=t[n].it.length,l=0;l<h;l+=1)t[n].prevViewData[l]=t[n].it[l];this.searchShapes(e[n].it,t[n].it,t[n].prevViewData,i,H)}else e[n].ty==="tr"?(J||(q=this.createTransformElement(e[n]),t[n]=q),H.push(t[n]),this.addTransformToStyleList(t[n])):e[n].ty==="sh"||e[n].ty==="rc"||e[n].ty==="el"||e[n].ty==="sr"?J||(t[n]=this.createShapeElement(e[n])):e[n].ty==="tm"||e[n].ty==="rd"||e[n].ty==="pb"||e[n].ty==="zz"||e[n].ty==="op"?(J?(y=t[n],y.closed=!1):(y=ShapeModifiers.getModifier(e[n].ty),y.init(this,e[n]),t[n]=y,this.shapeModifiers.push(y)),F.push(y)):e[n].ty==="rp"&&(J?(y=t[n],y.closed=!0):(y=ShapeModifiers.getModifier(e[n].ty),t[n]=y,y.init(this,e,n,t),this.shapeModifiers.push(y),i=!1),F.push(y));this.addProcessedElement(e[n],n+1)}for(this.removeTransformFromStyleList(),this.closeStyles(d),a=F.length,n=0;n<a;n+=1)F[n].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(e,t){(e._opMdf||t.op._mdf||this._isFirstFrame)&&(t.opacity=e.opacity,t.opacity*=t.op.v,t._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var e,t=this.stylesList.length,r,i,s,n,a,l,h=this.globalData.renderer,d=this.globalData.canvasContext,F,J;for(e=0;e<t;e+=1)if(J=this.stylesList[e],F=J.type,!((F==="st"||F==="gs")&&J.wi===0||!J.data._shouldRender||J.coOp===0||this.globalData.currentGlobalAlpha===0)){for(h.save(),a=J.elements,F==="st"||F==="gs"?(h.ctxStrokeStyle(F==="st"?J.co:J.grd),h.ctxLineWidth(J.wi),h.ctxLineCap(J.lc),h.ctxLineJoin(J.lj),h.ctxMiterLimit(J.ml||0)):h.ctxFillStyle(F==="fl"?J.co:J.grd),h.ctxOpacity(J.coOp),F!=="st"&&F!=="gs"&&d.beginPath(),h.ctxTransform(J.preTransforms.finalTransform.props),i=a.length,r=0;r<i;r+=1){for((F==="st"||F==="gs")&&(d.beginPath(),J.da&&(d.setLineDash(J.da),d.lineDashOffset=J.do)),l=a[r].trNodes,n=l.length,s=0;s<n;s+=1)l[s].t==="m"?d.moveTo(l[s].p[0],l[s].p[1]):l[s].t==="c"?d.bezierCurveTo(l[s].pts[0],l[s].pts[1],l[s].pts[2],l[s].pts[3],l[s].pts[4],l[s].pts[5]):d.closePath();(F==="st"||F==="gs")&&(h.ctxStroke(),J.da&&d.setLineDash(this.dashResetter))}F!=="st"&&F!=="gs"&&this.globalData.renderer.ctxFill(J.r),h.restore()}},CVShapeElement.prototype.renderShape=function(e,t,r,i){var s,n=t.length-1,a;for(a=e,s=n;s>=0;s-=1)t[s].ty==="tr"?(a=r[s].transform,this.renderShapeTransform(e,a)):t[s].ty==="sh"||t[s].ty==="el"||t[s].ty==="rc"||t[s].ty==="sr"?this.renderPath(t[s],r[s]):t[s].ty==="fl"?this.renderFill(t[s],r[s],a):t[s].ty==="st"?this.renderStroke(t[s],r[s],a):t[s].ty==="gf"||t[s].ty==="gs"?this.renderGradientFill(t[s],r[s],a):t[s].ty==="gr"?this.renderShape(a,t[s].it,r[s].it):t[s].ty;i&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,t){if(this._isFirstFrame||t._mdf||e.transforms._mdf){var r=e.trNodes,i=t.paths,s,n,a,l=i._length;r.length=0;var h=e.transforms.finalTransform;for(a=0;a<l;a+=1){var d=i.shapes[a];if(d&&d.v){for(n=d._length,s=1;s<n;s+=1)s===1&&r.push({t:"m",p:h.applyToPointArray(d.v[0][0],d.v[0][1],0)}),r.push({t:"c",pts:h.applyToTriplePoints(d.o[s-1],d.i[s],d.v[s])});n===1&&r.push({t:"m",p:h.applyToPointArray(d.v[0][0],d.v[0][1],0)}),d.c&&n&&(r.push({t:"c",pts:h.applyToTriplePoints(d.o[s-1],d.i[0],d.v[0])}),r.push({t:"z"}))}}e.trNodes=r}},CVShapeElement.prototype.renderPath=function(e,t){if(e.hd!==!0&&e._shouldRender){var r,i=t.styledShapes.length;for(r=0;r<i;r+=1)this.renderStyledShape(t.styledShapes[r],t.sh)}},CVShapeElement.prototype.renderFill=function(e,t,r){var i=t.style;(t.c._mdf||this._isFirstFrame)&&(i.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r._opMdf||this._isFirstFrame)&&(i.coOp=t.o.v*r.opacity)},CVShapeElement.prototype.renderGradientFill=function(e,t,r){var i=t.style,s;if(!i.grd||t.g._mdf||t.s._mdf||t.e._mdf||e.t!==1&&(t.h._mdf||t.a._mdf)){var n=this.globalData.canvasContext,a=t.s.v,l=t.e.v;if(e.t===1)s=n.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)),d=Math.atan2(l[1]-a[1],l[0]-a[0]),F=t.h.v;F>=1?F=.99:F<=-1&&(F=-.99);var J=h*F,y=Math.cos(d+t.a.v)*J+a[0],q=Math.sin(d+t.a.v)*J+a[1];s=n.createRadialGradient(y,q,0,a[0],a[1],h)}var H,G=e.g.p,te=t.g.c,j=1;for(H=0;H<G;H+=1)t.g._hasOpacity&&t.g._collapsable&&(j=t.g.o[H*2+1]),s.addColorStop(te[H*4]/100,"rgba("+te[H*4+1]+","+te[H*4+2]+","+te[H*4+3]+","+j+")");i.grd=s}i.coOp=t.o.v*r.opacity},CVShapeElement.prototype.renderStroke=function(e,t,r){var i=t.style,s=t.d;s&&(s._mdf||this._isFirstFrame)&&(i.da=s.dashArray,i.do=s.dashoffset[0]),(t.c._mdf||this._isFirstFrame)&&(i.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r._opMdf||this._isFirstFrame)&&(i.coOp=t.o.v*r.opacity),(t.w._mdf||this._isFirstFrame)&&(i.wi=t.w.v)},CVShapeElement.prototype.destroy=function(){this.shapesData=null,this.globalData=null,this.canvasContext=null,this.stylesList.length=0,this.itemsData.length=0};function CVTextElement(e,t,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(e,t,r)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement,ITextElement],CVTextElement),CVTextElement.prototype.tHelper=createTag("canvas").getContext("2d"),CVTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=!1;e.fc?(t=!0,this.values.fill=this.buildColor(e.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=t;var r=!1;e.sc&&(r=!0,this.values.stroke=this.buildColor(e.sc),this.values.sWidth=e.sw);var i=this.globalData.fontManager.getFontByName(e.f),s,n,a=e.l,l=this.mHelper;this.stroke=r,this.values.fValue=e.finalSize+"px "+this.globalData.fontManager.getFontByName(e.f).fFamily,n=e.finalText.length;var h,d,F,J,y,q,H,G,te,j,Z=this.data.singleShape,M=e.tr*.001*e.finalSize,V=0,Q=0,ee=!0,ie=0;for(s=0;s<n;s+=1){h=this.globalData.fontManager.getCharData(e.finalText[s],i.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily),d=h&&h.data||{},l.reset(),Z&&a[s].n&&(V=-M,Q+=e.yOffset,Q+=ee?1:0,ee=!1),y=d.shapes?d.shapes[0].it:[],H=y.length,l.scale(e.finalSize/100,e.finalSize/100),Z&&this.applyTextPropertiesToMatrix(e,l,a[s].line,V,Q),te=createSizedArray(H-1);var ae=0;for(q=0;q<H;q+=1)if(y[q].ty==="sh"){for(J=y[q].ks.k.i.length,G=y[q].ks.k,j=[],F=1;F<J;F+=1)F===1&&j.push(l.applyToX(G.v[0][0],G.v[0][1],0),l.applyToY(G.v[0][0],G.v[0][1],0)),j.push(l.applyToX(G.o[F-1][0],G.o[F-1][1],0),l.applyToY(G.o[F-1][0],G.o[F-1][1],0),l.applyToX(G.i[F][0],G.i[F][1],0),l.applyToY(G.i[F][0],G.i[F][1],0),l.applyToX(G.v[F][0],G.v[F][1],0),l.applyToY(G.v[F][0],G.v[F][1],0));j.push(l.applyToX(G.o[F-1][0],G.o[F-1][1],0),l.applyToY(G.o[F-1][0],G.o[F-1][1],0),l.applyToX(G.i[0][0],G.i[0][1],0),l.applyToY(G.i[0][0],G.i[0][1],0),l.applyToX(G.v[0][0],G.v[0][1],0),l.applyToY(G.v[0][0],G.v[0][1],0)),te[ae]=j,ae+=1}Z&&(V+=a[s].l,V+=M),this.textSpans[ie]?this.textSpans[ie].elem=te:this.textSpans[ie]={elem:te},ie+=1}},CVTextElement.prototype.renderInnerContent=function(){this.validateText();var e=this.canvasContext;e.font=this.values.fValue,this.globalData.renderer.ctxLineCap("butt"),this.globalData.renderer.ctxLineJoin("miter"),this.globalData.renderer.ctxMiterLimit(4),this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var t,r,i,s,n,a,l=this.textAnimator.renderedLetters,h=this.textProperty.currentData.l;r=h.length;var d,F=null,J=null,y=null,q,H,G=this.globalData.renderer;for(t=0;t<r;t+=1)if(!h[t].n){if(d=l[t],d&&(G.save(),G.ctxTransform(d.p),G.ctxOpacity(d.o)),this.fill){for(d&&d.fc?F!==d.fc&&(G.ctxFillStyle(d.fc),F=d.fc):F!==this.values.fill&&(F=this.values.fill,G.ctxFillStyle(this.values.fill)),q=this.textSpans[t].elem,s=q.length,this.globalData.canvasContext.beginPath(),i=0;i<s;i+=1)for(H=q[i],a=H.length,this.globalData.canvasContext.moveTo(H[0],H[1]),n=2;n<a;n+=6)this.globalData.canvasContext.bezierCurveTo(H[n],H[n+1],H[n+2],H[n+3],H[n+4],H[n+5]);this.globalData.canvasContext.closePath(),G.ctxFill()}if(this.stroke){for(d&&d.sw?y!==d.sw&&(y=d.sw,G.ctxLineWidth(d.sw)):y!==this.values.sWidth&&(y=this.values.sWidth,G.ctxLineWidth(this.values.sWidth)),d&&d.sc?J!==d.sc&&(J=d.sc,G.ctxStrokeStyle(d.sc)):J!==this.values.stroke&&(J=this.values.stroke,G.ctxStrokeStyle(this.values.stroke)),q=this.textSpans[t].elem,s=q.length,this.globalData.canvasContext.beginPath(),i=0;i<s;i+=1)for(H=q[i],a=H.length,this.globalData.canvasContext.moveTo(H[0],H[1]),n=2;n<a;n+=6)this.globalData.canvasContext.bezierCurveTo(H[n],H[n+1],H[n+2],H[n+3],H[n+4],H[n+5]);this.globalData.canvasContext.closePath(),G.ctxStroke()}d&&this.globalData.renderer.restore()}};function CVImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.img=t.imageLoader.getAsset(this.assetData),this.initElement(e,t,r)}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 e=createTag("canvas");e.width=this.assetData.w,e.height=this.assetData.h;var t=e.getContext("2d"),r=this.img.width,i=this.img.height,s=r/i,n=this.assetData.w/this.assetData.h,a,l,h=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;s>n&&h==="xMidYMid slice"||s<n&&h!=="xMidYMid slice"?(l=i,a=l*n):(a=r,l=a/n),t.drawImage(this.img,(r-a)/2,(i-l)/2,a,l,0,0,this.assetData.w,this.assetData.h),this.img=e}},CVImageElement.prototype.renderInnerContent=function(){this.canvasContext.drawImage(this.img,0,0)},CVImageElement.prototype.destroy=function(){this.img=null};function CVSolidElement(e,t,r){this.initElement(e,t,r)}extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){this.globalData.renderer.ctxFillStyle(this.data.sc),this.globalData.renderer.ctxFillRect(0,0,this.data.sw,this.data.sh)};function CanvasRendererBase(){}extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(e){return new CVShapeElement(e,this.globalData,this)},CanvasRendererBase.prototype.createText=function(e){return new CVTextElement(e,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(e){return new CVImageElement(e,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(e){return new CVSolidElement(e,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(e){e[0]===1&&e[1]===0&&e[4]===0&&e[5]===1&&e[12]===0&&e[13]===0||this.canvasContext.transform(e[0],e[1],e[4],e[5],e[12],e[13])},CanvasRendererBase.prototype.ctxOpacity=function(e){this.canvasContext.globalAlpha*=e<0?0:e},CanvasRendererBase.prototype.ctxFillStyle=function(e){this.canvasContext.fillStyle=e},CanvasRendererBase.prototype.ctxStrokeStyle=function(e){this.canvasContext.strokeStyle=e},CanvasRendererBase.prototype.ctxLineWidth=function(e){this.canvasContext.lineWidth=e},CanvasRendererBase.prototype.ctxLineCap=function(e){this.canvasContext.lineCap=e},CanvasRendererBase.prototype.ctxLineJoin=function(e){this.canvasContext.lineJoin=e},CanvasRendererBase.prototype.ctxMiterLimit=function(e){this.canvasContext.miterLimit=e},CanvasRendererBase.prototype.ctxFill=function(e){this.canvasContext.fill(e)},CanvasRendererBase.prototype.ctxFillRect=function(e,t,r,i){this.canvasContext.fillRect(e,t,r,i)},CanvasRendererBase.prototype.ctxStroke=function(){this.canvasContext.stroke()},CanvasRendererBase.prototype.reset=function(){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}this.contextData.reset()},CanvasRendererBase.prototype.save=function(){this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(e){if(!this.renderConfig.clearCanvas){this.canvasContext.restore();return}e&&(this.globalData.blendMode="source-over"),this.contextData.restore(e)},CanvasRendererBase.prototype.configAnimation=function(e){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var t=this.animationItem.container.style;t.width="100%",t.height="100%";var r="0px 0px 0px";t.transformOrigin=r,t.mozTransformOrigin=r,t.webkitTransformOrigin=r,t["-webkit-transform"]=r,t.contentVisibility=this.renderConfig.contentVisibility,this.animationItem.wrapper.appendChild(this.animationItem.container),this.canvasContext=this.animationItem.container.getContext("2d"),this.renderConfig.className&&this.animationItem.container.setAttribute("class",this.renderConfig.className),this.renderConfig.id&&this.animationItem.container.setAttribute("id",this.renderConfig.id)}else this.canvasContext=this.renderConfig.context;this.contextData.setContext(this.canvasContext),this.data=e,this.layers=e.layers,this.transformCanvas={w:e.w,h:e.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(e,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(e.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(e,t){this.reset();var r,i;e?(r=e,i=t,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);var s,n;if(this.renderConfig.preserveAspectRatio.indexOf("meet")!==-1||this.renderConfig.preserveAspectRatio.indexOf("slice")!==-1){var a=this.renderConfig.preserveAspectRatio.split(" "),l=a[1]||"meet",h=a[0]||"xMidYMid",d=h.substr(0,4),F=h.substr(4);s=r/i,n=this.transformCanvas.w/this.transformCanvas.h,n>s&&l==="meet"||n<s&&l==="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)),d==="xMid"&&(n<s&&l==="meet"||n>s&&l==="slice")?this.transformCanvas.tx=(r-this.transformCanvas.w*(i/this.transformCanvas.h))/2*this.renderConfig.dpr:d==="xMax"&&(n<s&&l==="meet"||n>s&&l==="slice")?this.transformCanvas.tx=(r-this.transformCanvas.w*(i/this.transformCanvas.h))*this.renderConfig.dpr:this.transformCanvas.tx=0,F==="YMid"&&(n>s&&l==="meet"||n<s&&l==="slice")?this.transformCanvas.ty=(i-this.transformCanvas.h*(r/this.transformCanvas.w))/2*this.renderConfig.dpr:F==="YMax"&&(n>s&&l==="meet"||n<s&&l==="slice")?this.transformCanvas.ty=(i-this.transformCanvas.h*(r/this.transformCanvas.w))*this.renderConfig.dpr:this.transformCanvas.ty=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(){this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText="");var e,t=this.layers?this.layers.length:0;for(e=t-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(e,t){if(!(this.renderedFrame===e&&this.renderConfig.clearCanvas===!0&&!t||this.destroyed||e===-1)){this.renderedFrame=e,this.globalData.frameNum=e-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||t,this.globalData.projectInterface.currentFrame=e;var r,i=this.layers.length;for(this.completeLayers||this.checkLayers(e),r=i-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].prepareFrame(e-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(e){var t=this.elements;if(!(t[e]||this.layers[e].ty===99)){var r=this.createItem(this.layers[e],this,this.globalData);t[e]=r,r.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();e.checkParenting()}},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"};function CanvasContext(){this.opacity=-1,this.transform=createTypedArray("float32",16),this.fillStyle="",this.strokeStyle="",this.lineWidth="",this.lineCap="",this.lineJoin="",this.miterLimit="",this.id=Math.random()}function CVContextData(){this.stack=[],this.cArrPos=0,this.cTr=new Matrix;var e,t=15;for(e=0;e<t;e+=1){var r=new CanvasContext;this.stack[e]=r}this._length=t,this.nativeContext=null,this.transformMat=new Matrix,this.currentOpacity=1,this.currentFillStyle="",this.appliedFillStyle="",this.currentStrokeStyle="",this.appliedStrokeStyle="",this.currentLineWidth="",this.appliedLineWidth="",this.currentLineCap="",this.appliedLineCap="",this.currentLineJoin="",this.appliedLineJoin="",this.appliedMiterLimit="",this.currentMiterLimit=""}CVContextData.prototype.duplicate=function(){var e=this._length*2,t=0;for(t=this._length;t<e;t+=1)this.stack[t]=new CanvasContext;this._length=e},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.stack[this.cArrPos].opacity=1},CVContextData.prototype.restore=function(e){this.cArrPos-=1;var t=this.stack[this.cArrPos],r=t.transform,i,s=this.cTr.props;for(i=0;i<16;i+=1)s[i]=r[i];if(e){this.nativeContext.restore();var n=this.stack[this.cArrPos+1];this.appliedFillStyle=n.fillStyle,this.appliedStrokeStyle=n.strokeStyle,this.appliedLineWidth=n.lineWidth,this.appliedLineCap=n.lineCap,this.appliedLineJoin=n.lineJoin,this.appliedMiterLimit=n.miterLimit}this.nativeContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13]),(e||t.opacity!==-1&&this.currentOpacity!==t.opacity)&&(this.nativeContext.globalAlpha=t.opacity,this.currentOpacity=t.opacity),this.currentFillStyle=t.fillStyle,this.currentStrokeStyle=t.strokeStyle,this.currentLineWidth=t.lineWidth,this.currentLineCap=t.lineCap,this.currentLineJoin=t.lineJoin,this.currentMiterLimit=t.miterLimit},CVContextData.prototype.save=function(e){e&&this.nativeContext.save();var t=this.cTr.props;this._length<=this.cArrPos&&this.duplicate();var r=this.stack[this.cArrPos],i;for(i=0;i<16;i+=1)r.transform[i]=t[i];this.cArrPos+=1;var s=this.stack[this.cArrPos];s.opacity=r.opacity,s.fillStyle=r.fillStyle,s.strokeStyle=r.strokeStyle,s.lineWidth=r.lineWidth,s.lineCap=r.lineCap,s.lineJoin=r.lineJoin,s.miterLimit=r.miterLimit},CVContextData.prototype.setOpacity=function(e){this.stack[this.cArrPos].opacity=e},CVContextData.prototype.setContext=function(e){this.nativeContext=e},CVContextData.prototype.fillStyle=function(e){this.stack[this.cArrPos].fillStyle!==e&&(this.currentFillStyle=e,this.stack[this.cArrPos].fillStyle=e)},CVContextData.prototype.strokeStyle=function(e){this.stack[this.cArrPos].strokeStyle!==e&&(this.currentStrokeStyle=e,this.stack[this.cArrPos].strokeStyle=e)},CVContextData.prototype.lineWidth=function(e){this.stack[this.cArrPos].lineWidth!==e&&(this.currentLineWidth=e,this.stack[this.cArrPos].lineWidth=e)},CVContextData.prototype.lineCap=function(e){this.stack[this.cArrPos].lineCap!==e&&(this.currentLineCap=e,this.stack[this.cArrPos].lineCap=e)},CVContextData.prototype.lineJoin=function(e){this.stack[this.cArrPos].lineJoin!==e&&(this.currentLineJoin=e,this.stack[this.cArrPos].lineJoin=e)},CVContextData.prototype.miterLimit=function(e){this.stack[this.cArrPos].miterLimit!==e&&(this.currentMiterLimit=e,this.stack[this.cArrPos].miterLimit=e)},CVContextData.prototype.transform=function(e){this.transformMat.cloneFromProps(e);var t=this.cTr;this.transformMat.multiply(t),t.cloneFromProps(this.transformMat.props);var r=t.props;this.nativeContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13])},CVContextData.prototype.opacity=function(e){var t=this.stack[this.cArrPos].opacity;t*=e<0?0:e,this.stack[this.cArrPos].opacity!==t&&(this.currentOpacity!==e&&(this.nativeContext.globalAlpha=e,this.currentOpacity=e),this.stack[this.cArrPos].opacity=t)},CVContextData.prototype.fill=function(e){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fill(e)},CVContextData.prototype.fillRect=function(e,t,r,i){this.appliedFillStyle!==this.currentFillStyle&&(this.appliedFillStyle=this.currentFillStyle,this.nativeContext.fillStyle=this.appliedFillStyle),this.nativeContext.fillRect(e,t,r,i)},CVContextData.prototype.stroke=function(){this.appliedStrokeStyle!==this.currentStrokeStyle&&(this.appliedStrokeStyle=this.currentStrokeStyle,this.nativeContext.strokeStyle=this.appliedStrokeStyle),this.appliedLineWidth!==this.currentLineWidth&&(this.appliedLineWidth=this.currentLineWidth,this.nativeContext.lineWidth=this.appliedLineWidth),this.appliedLineCap!==this.currentLineCap&&(this.appliedLineCap=this.currentLineCap,this.nativeContext.lineCap=this.appliedLineCap),this.appliedLineJoin!==this.currentLineJoin&&(this.appliedLineJoin=this.currentLineJoin,this.nativeContext.lineJoin=this.appliedLineJoin),this.appliedMiterLimit!==this.currentMiterLimit&&(this.appliedMiterLimit=this.currentMiterLimit,this.nativeContext.miterLimit=this.appliedMiterLimit),this.nativeContext.stroke()};function CVCompElement(e,t,r){this.completeLayers=!1,this.layers=e.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(e,t,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var e=this.canvasContext;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();var t,r=this.layers.length;for(t=r-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},CVCompElement.prototype.destroy=function(){var e,t=this.layers.length;for(e=t-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)};function CanvasRenderer(e,t){this.animationItem=e,this.renderConfig={clearCanvas:t&&t.clearCanvas!==void 0?t.clearCanvas:!0,context:t&&t.context||null,progressiveLoad:t&&t.progressiveLoad||!1,preserveAspectRatio:t&&t.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:t&&t.contentVisibility||"visible",className:t&&t.className||"",id:t&&t.id||"",runExpressions:!t||t.runExpressions===void 0||t.runExpressions},this.renderConfig.dpr=t&&t.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=t&&t.dpr||window.devicePixelRatio||1),this.renderedFrame=-1,this.globalData={frameNum:-1,_mdf:!1,renderConfig:this.renderConfig,currentGlobalAlpha:-1},this.contextData=new CVContextData,this.elements=[],this.pendingElements=[],this.transformMat=new Matrix,this.completeLayers=!1,this.rendererType="canvas",this.renderConfig.clearCanvas&&(this.ctxTransform=this.contextData.transform.bind(this.contextData),this.ctxOpacity=this.contextData.opacity.bind(this.contextData),this.ctxFillStyle=this.contextData.fillStyle.bind(this.contextData),this.ctxStrokeStyle=this.contextData.strokeStyle.bind(this.contextData),this.ctxLineWidth=this.contextData.lineWidth.bind(this.contextData),this.ctxLineCap=this.contextData.lineCap.bind(this.contextData),this.ctxLineJoin=this.contextData.lineJoin.bind(this.contextData),this.ctxMiterLimit=this.contextData.miterLimit.bind(this.contextData),this.ctxFill=this.contextData.fill.bind(this.contextData),this.ctxFillRect=this.contextData.fillRect.bind(this.contextData),this.ctxStroke=this.contextData.stroke.bind(this.contextData),this.save=this.contextData.save.bind(this.contextData))}extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)};function HBaseElement(){}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 r=this.finalTransform.mat.toCSS();t.transform=r,t.webkitTransform=r}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;function HSolidElement(e,t,r){this.initElement(e,t,r)}extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var e;this.data.hasMask?(e=createNS("rect"),e.setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):(e=createTag("div"),e.style.width=this.data.sw+"px",e.style.height=this.data.sh+"px",e.style.backgroundColor=this.data.sc),this.layerElement.appendChild(e)};function HShapeElement(e,t,r){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(e,t,r),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var e;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),e=this.svgElement;else{e=createNS("svg");var t=this.comp.data?this.comp.data:this.globalData.compSize;e.setAttribute("width",t.w),e.setAttribute("height",t.h),e.appendChild(this.shapesContainer),this.layerElement.appendChild(e)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=e},HShapeElement.prototype.getTransformedPoint=function(e,t){var r,i=e.length;for(r=0;r<i;r+=1)t=e[r].mProps.v.applyToPointArray(t[0],t[1],0);return t},HShapeElement.prototype.calculateShapeBoundingBox=function(e,t){var r=e.sh.v,i=e.transformers,s,n=r._length,a,l,h,d;if(!(n<=1)){for(s=0;s<n-1;s+=1)a=this.getTransformedPoint(i,r.v[s]),l=this.getTransformedPoint(i,r.o[s]),h=this.getTransformedPoint(i,r.i[s+1]),d=this.getTransformedPoint(i,r.v[s+1]),this.checkBounds(a,l,h,d,t);r.c&&(a=this.getTransformedPoint(i,r.v[s]),l=this.getTransformedPoint(i,r.o[s]),h=this.getTransformedPoint(i,r.i[0]),d=this.getTransformedPoint(i,r.v[0]),this.checkBounds(a,l,h,d,t))}},HShapeElement.prototype.checkBounds=function(e,t,r,i,s){this.getBoundsOfCurve(e,t,r,i);var n=this.shapeBoundingBox;s.x=bmMin(n.left,s.x),s.xMax=bmMax(n.right,s.xMax),s.y=bmMin(n.top,s.y),s.yMax=bmMax(n.bottom,s.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(e,t,r,i){for(var s=[[e[0],i[0]],[e[1],i[1]]],n,a,l,h,d,F,J,y=0;y<2;++y)a=6*e[y]-12*t[y]+6*r[y],n=-3*e[y]+9*t[y]-9*r[y]+3*i[y],l=3*t[y]-3*e[y],a|=0,n|=0,l|=0,n===0&&a===0||(n===0?(h=-l/a,h>0&&h<1&&s[y].push(this.calculateF(h,e,t,r,i,y))):(d=a*a-4*l*n,d>=0&&(F=(-a+bmSqrt(d))/(2*n),F>0&&F<1&&s[y].push(this.calculateF(F,e,t,r,i,y)),J=(-a-bmSqrt(d))/(2*n),J>0&&J<1&&s[y].push(this.calculateF(J,e,t,r,i,y)))));this.shapeBoundingBox.left=bmMin.apply(null,s[0]),this.shapeBoundingBox.top=bmMin.apply(null,s[1]),this.shapeBoundingBox.right=bmMax.apply(null,s[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,s[1])},HShapeElement.prototype.calculateF=function(e,t,r,i,s,n){return bmPow(1-e,3)*t[n]+3*bmPow(1-e,2)*e*r[n]+3*(1-e)*bmPow(e,2)*i[n]+bmPow(e,3)*s[n]},HShapeElement.prototype.calculateBoundingBox=function(e,t){var r,i=e.length;for(r=0;r<i;r+=1)e[r]&&e[r].sh?this.calculateShapeBoundingBox(e[r],t):e[r]&&e[r].it?this.calculateBoundingBox(e[r].it,t):e[r]&&e[r].style&&e[r].w&&this.expandStrokeBoundingBox(e[r].w,t)},HShapeElement.prototype.expandStrokeBoundingBox=function(e,t){var r=0;if(e.keyframes){for(var i=0;i<e.keyframes.length;i+=1){var s=e.keyframes[i].s;s>r&&(r=s)}r*=e.mult}else r=e.v*e.mult;t.x-=r,t.xMax+=r,t.y-=r,t.yMax+=r},HShapeElement.prototype.currentBoxContains=function(e){return this.currentBBox.x<=e.x&&this.currentBBox.y<=e.y&&this.currentBBox.width+this.currentBBox.x>=e.x+e.width&&this.currentBBox.height+this.currentBBox.y>=e.y+e.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var e=this.tempBoundingBox,t=999999;if(e.x=t,e.xMax=-t,e.y=t,e.yMax=-t,this.calculateBoundingBox(this.itemsData,e),e.width=e.xMax<e.x?0:e.xMax-e.x,e.height=e.yMax<e.y?0:e.yMax-e.y,this.currentBoxContains(e))return;var r=!1;if(this.currentBBox.w!==e.width&&(this.currentBBox.w=e.width,this.shapeCont.setAttribute("width",e.width),r=!0),this.currentBBox.h!==e.height&&(this.currentBBox.h=e.height,this.shapeCont.setAttribute("height",e.height),r=!0),r||this.currentBBox.x!==e.x||this.currentBBox.y!==e.y){this.currentBBox.w=e.width,this.currentBBox.h=e.height,this.currentBBox.x=e.x,this.currentBBox.y=e.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var i=this.shapeCont.style,s="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";i.transform=s,i.webkitTransform=s}}};function HTextElement(e,t,r){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(e,t,r)}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 e=createNS("g");this.maskedElement.appendChild(e),this.innerElem=e}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var e=this.textProperty.currentData;this.renderedLetters=createSizedArray(e.l?e.l.length:0);var t=this.innerElem.style,r=e.fc?this.buildColor(e.fc):"rgba(0,0,0,0)";t.fill=r,t.color=r,e.sc&&(t.stroke=this.buildColor(e.sc),t.strokeWidth=e.sw+"px");var i=this.globalData.fontManager.getFontByName(e.f);if(!this.globalData.fontManager.chars)if(t.fontSize=e.finalSize+"px",t.lineHeight=e.finalSize+"px",i.fClass)this.innerElem.className=i.fClass;else{t.fontFamily=i.fFamily;var s=e.fWeight,n=e.fStyle;t.fontStyle=n,t.fontWeight=s}var a,l,h=e.l;l=h.length;var d,F,J,y=this.mHelper,q,H="",G=0;for(a=0;a<l;a+=1){if(this.globalData.fontManager.chars?(this.textPaths[G]?d=this.textPaths[G]:(d=createNS("path"),d.setAttribute("stroke-linecap",lineCapEnum[1]),d.setAttribute("stroke-linejoin",lineJoinEnum[2]),d.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[G]?(F=this.textSpans[G],J=F.children[0]):(F=createTag("div"),F.style.lineHeight=0,J=createNS("svg"),J.appendChild(d),styleDiv(F)))):this.isMasked?d=this.textPaths[G]?this.textPaths[G]:createNS("text"):this.textSpans[G]?(F=this.textSpans[G],d=this.textPaths[G]):(F=createTag("span"),styleDiv(F),d=createTag("span"),styleDiv(d),F.appendChild(d)),this.globalData.fontManager.chars){var te=this.globalData.fontManager.getCharData(e.finalText[a],i.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily),j;if(te?j=te.data:j=null,y.reset(),j&&j.shapes&&j.shapes.length&&(q=j.shapes[0].it,y.scale(e.finalSize/100,e.finalSize/100),H=this.createPathShape(y,q),d.setAttribute("d",H)),this.isMasked)this.innerElem.appendChild(d);else{if(this.innerElem.appendChild(F),j&&j.shapes){document.body.appendChild(J);var Z=J.getBBox();J.setAttribute("width",Z.width+2),J.setAttribute("height",Z.height+2),J.setAttribute("viewBox",Z.x-1+" "+(Z.y-1)+" "+(Z.width+2)+" "+(Z.height+2));var M=J.style,V="translate("+(Z.x-1)+"px,"+(Z.y-1)+"px)";M.transform=V,M.webkitTransform=V,h[a].yOffset=Z.y-1}else J.setAttribute("width",1),J.setAttribute("height",1);F.appendChild(J)}}else if(d.textContent=h[a].val,d.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(d);else{this.innerElem.appendChild(F);var Q=d.style,ee="translate3d(0,"+-e.finalSize/1.2+"px,0)";Q.transform=ee,Q.webkitTransform=ee}this.isMasked?this.textSpans[G]=d:this.textSpans[G]=F,this.textSpans[G].style.display="block",this.textPaths[G]=d,G+=1}for(;G<this.textSpans.length;)this.textSpans[G].style.display="none",G+=1},HTextElement.prototype.renderInnerContent=function(){this.validateText();var e;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),e=this.svgElement.style;var t="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";e.transform=t,e.webkitTransform=t}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),!(!this.lettersChangedFlag&&!this.textAnimator.lettersChangedFlag)){var r,i,s=0,n=this.textAnimator.renderedLetters,a=this.textProperty.currentData.l;i=a.length;var l,h,d;for(r=0;r<i;r+=1)a[r].n?s+=1:(h=this.textSpans[r],d=this.textPaths[r],l=n[s],s+=1,l._mdf.m&&(this.isMasked?h.setAttribute("transform",l.m):(h.style.webkitTransform=l.m,h.style.transform=l.m)),h.style.opacity=l.o,l.sw&&l._mdf.sw&&d.setAttribute("stroke-width",l.sw),l.sc&&l._mdf.sc&&d.setAttribute("stroke",l.sc),l.fc&&l._mdf.fc&&(d.setAttribute("fill",l.fc),d.style.color=l.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var F=this.innerElem.getBBox();this.currentBBox.w!==F.width&&(this.currentBBox.w=F.width,this.svgElement.setAttribute("width",F.width)),this.currentBBox.h!==F.height&&(this.currentBBox.h=F.height,this.svgElement.setAttribute("height",F.height));var J=1;if(this.currentBBox.w!==F.width+J*2||this.currentBBox.h!==F.height+J*2||this.currentBBox.x!==F.x-J||this.currentBBox.y!==F.y-J){this.currentBBox.w=F.width+J*2,this.currentBBox.h=F.height+J*2,this.currentBBox.x=F.x-J,this.currentBBox.y=F.y-J,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),e=this.svgElement.style;var y="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";e.transform=y,e.webkitTransform=y}}}};function HCameraElement(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initHierarchy();var i=PropertyFactory.getProp;if(this.pe=i(this,e.pe,0,0,this),e.ks.p.s?(this.px=i(this,e.ks.p.x,1,0,this),this.py=i(this,e.ks.p.y,1,0,this),this.pz=i(this,e.ks.p.z,1,0,this)):this.p=i(this,e.ks.p,1,0,this),e.ks.a&&(this.a=i(this,e.ks.a,1,0,this)),e.ks.or.k.length&&e.ks.or.k[0].to){var s,n=e.ks.or.k.length;for(s=0;s<n;s+=1)e.ks.or.k[s].to=null,e.ks.or.k[s].ti=null}this.or=i(this,e.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=i(this,e.ks.rx,0,degToRads,this),this.ry=i(this,e.ks.ry,0,degToRads,this),this.rz=i(this,e.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var e,t=this.comp.threeDElements.length,r,i,s;for(e=0;e<t;e+=1)if(r=this.comp.threeDElements[e],r.type==="3d"){i=r.perspectiveElem.style,s=r.container.style;var n=this.pe.v+"px",a="0px 0px 0px",l="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";i.perspective=n,i.webkitPerspective=n,s.transformOrigin=a,s.mozTransformOrigin=a,s.webkitTransformOrigin=a,i.transform=l,i.webkitTransform=l}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var e=this._isFirstFrame,t,r;if(this.hierarchy)for(r=this.hierarchy.length,t=0;t<r;t+=1)e=this.hierarchy[t].finalTransform.mProp._mdf||e;if(e||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(r=this.hierarchy.length-1,t=r;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 s;this.p?s=[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:s=[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var n=Math.sqrt(Math.pow(s[0],2)+Math.pow(s[1],2)+Math.pow(s[2],2)),a=[s[0]/n,s[1]/n,s[2]/n],l=Math.sqrt(a[2]*a[2]+a[0]*a[0]),h=Math.atan2(a[1],l),d=Math.atan2(a[0],-a[2]);this.mat.rotateY(d).rotateX(-h)}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 F=!this._prevMat.equals(this.mat);if((F||this.pe._mdf)&&this.comp.threeDElements){r=this.comp.threeDElements.length;var J,y,q;for(t=0;t<r;t+=1)if(J=this.comp.threeDElements[t],J.type==="3d"){if(F){var H=this.mat.toCSS();q=J.container.style,q.transform=H,q.webkitTransform=H}this.pe._mdf&&(y=J.perspectiveElem.style,y.perspective=this.pe.v+"px",y.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null};function HImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.initElement(e,t,r)}extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var e=this.globalData.getAssetsPath(this.assetData),t=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",e),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(t),t.crossOrigin="anonymous",t.src=e,this.data.ln&&this.baseElement.setAttribute("id",this.data.ln)};function HybridRendererBase(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&t.hideOnTransparent===!1),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.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"}extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var e=this.pendingElements.pop();e.checkParenting()}},HybridRendererBase.prototype.appendElementInPos=function(e,t){var r=e.getBaseElement();if(r){var i=this.layers[t];if(!i.ddd||!this.supports3d)if(this.threeDElements)this.addTo3dContainer(r,t);else{for(var s=0,n,a,l;s<t;)this.elements[s]&&this.elements[s]!==!0&&this.elements[s].getBaseElement&&(a=this.elements[s],l=this.layers[s].ddd?this.getThreeDContainerByPos(s):a.getBaseElement(),n=l||n),s+=1;n?(!i.ddd||!this.supports3d)&&this.layerElement.insertBefore(r,n):(!i.ddd||!this.supports3d)&&this.layerElement.appendChild(r)}else this.addTo3dContainer(r,t)}},HybridRendererBase.prototype.createShape=function(e){return this.supports3d?new HShapeElement(e,this.globalData,this):new SVGShapeElement(e,this.globalData,this)},HybridRendererBase.prototype.createText=function(e){return this.supports3d?new HTextElement(e,this.globalData,this):new SVGTextLottieElement(e,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(e){return this.camera=new HCameraElement(e,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(e){return this.supports3d?new HImageElement(e,this.globalData,this):new IImageElement(e,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(e){return this.supports3d?new HSolidElement(e,this.globalData,this):new ISolidElement(e,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(e){for(var t=0,r=this.threeDElements.length;t<r;){if(this.threeDElements[t].startPos<=e&&this.threeDElements[t].endPos>=e)return this.threeDElements[t].perspectiveElem;t+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(e,t){var r=createTag("div"),i,s;styleDiv(r);var n=createTag("div");if(styleDiv(n),t==="3d"){i=r.style,i.width=this.globalData.compSize.w+"px",i.height=this.globalData.compSize.h+"px";var a="50% 50%";i.webkitTransformOrigin=a,i.mozTransformOrigin=a,i.transformOrigin=a,s=n.style;var l="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";s.transform=l,s.webkitTransform=l}r.appendChild(n);var h={container:n,perspectiveElem:r,startPos:e,endPos:e,type:t};return this.threeDElements.push(h),h},HybridRendererBase.prototype.build3dContainers=function(){var e,t=this.layers.length,r,i="";for(e=0;e<t;e+=1)this.layers[e].ddd&&this.layers[e].ty!==3?(i!=="3d"&&(i="3d",r=this.createThreeDContainer(e,"3d")),r.endPos=Math.max(r.endPos,e)):(i!=="2d"&&(i="2d",r=this.createThreeDContainer(e,"2d")),r.endPos=Math.max(r.endPos,e));for(t=this.threeDElements.length,e=t-1;e>=0;e-=1)this.resizerElem.appendChild(this.threeDElements[e].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(e,t){for(var r=0,i=this.threeDElements.length;r<i;){if(t<=this.threeDElements[r].endPos){for(var s=this.threeDElements[r].startPos,n;s<t;)this.elements[s]&&this.elements[s].getBaseElement&&(n=this.elements[s].getBaseElement()),s+=1;n?this.threeDElements[r].container.insertBefore(e,n):this.threeDElements[r].container.appendChild(e);break}r+=1}},HybridRendererBase.prototype.configAnimation=function(e){var t=createTag("div"),r=this.animationItem.wrapper,i=t.style;i.width=e.w+"px",i.height=e.h+"px",this.resizerElem=t,styleDiv(t),i.transformStyle="flat",i.mozTransformStyle="flat",i.webkitTransformStyle="flat",this.renderConfig.className&&t.setAttribute("class",this.renderConfig.className),r.appendChild(t),i.overflow="hidden";var s=createNS("svg");s.setAttribute("width","1"),s.setAttribute("height","1"),styleDiv(s),this.resizerElem.appendChild(s);var n=createNS("defs");s.appendChild(n),this.data=e,this.setupGlobalData(e,s),this.globalData.defs=n,this.layers=e.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var e,t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var e=this.animationItem.wrapper.offsetWidth,t=this.animationItem.wrapper.offsetHeight,r=e/t,i=this.globalData.compSize.w/this.globalData.compSize.h,s,n,a,l;i>r?(s=e/this.globalData.compSize.w,n=e/this.globalData.compSize.w,a=0,l=(t-this.globalData.compSize.h*(e/this.globalData.compSize.w))/2):(s=t/this.globalData.compSize.h,n=t/this.globalData.compSize.h,a=(e-this.globalData.compSize.w*(t/this.globalData.compSize.h))/2,l=0);var h=this.resizerElem.style;h.webkitTransform="matrix3d("+s+",0,0,0,0,"+n+",0,0,0,0,1,0,"+a+","+l+",0,1)",h.transform=h.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 e=this.globalData.compSize.w,t=this.globalData.compSize.h,r,i=this.threeDElements.length;for(r=0;r<i;r+=1){var s=this.threeDElements[r].perspectiveElem.style;s.webkitPerspective=Math.sqrt(Math.pow(e,2)+Math.pow(t,2))+"px",s.perspective=s.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(e){var t,r=e.length,i=createTag("div");for(t=0;t<r;t+=1)if(e[t].xt){var s=this.createComp(e[t],i,this.globalData.comp,null);s.initExpressions(),this.globalData.projectInterface.registerComposition(s)}};function HCompElement(e,t,r){this.layers=e.layers,this.supports3d=!e.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(e,t,r),this.tm=e.tm?PropertyFactory.getProp(this,e.tm,0,t.frameRate,this):{_placeholder:!0}}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(e,t){for(var r=0,i;r<t;)this.elements[r]&&this.elements[r].getBaseElement&&(i=this.elements[r].getBaseElement()),r+=1;i?this.layerElement.insertBefore(e,i):this.layerElement.appendChild(e)},HCompElement.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};function HybridRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:t&&t.className||"",imagePreserveAspectRatio:t&&t.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(t&&t.hideOnTransparent===!1),filterSize:{width:t&&t.filterSize&&t.filterSize.width||"400%",height:t&&t.filterSize&&t.filterSize.height||"400%",x:t&&t.filterSize&&t.filterSize.x||"-100%",y:t&&t.filterSize&&t.filterSize.y||"-100%"},runExpressions:!t||t.runExpressions===void 0||t.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([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};var CompExpressionInterface=(function(){return function(e){function t(r){for(var i=0,s=e.layers.length;i<s;){if(e.layers[i].nm===r||e.layers[i].ind===r)return e.elements[i].layerInterface;i+=1}return null}return Object.defineProperty(t,"_name",{value:e.data.nm}),t.layer=t,t.pixelAspect=1,t.height=e.data.h||e.globalData.compSize.h,t.width=e.data.w||e.globalData.compSize.w,t.pixelAspect=1,t.frameDuration=1/e.globalData.frameRate,t.displayStartTime=0,t.numLayers=e.layers.length,t}})();function _typeof$2(e){"@babel/helpers - typeof";return _typeof$2=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$2(e)}function seedRandom(e,t){var r=this,i=256,s=6,n=52,a="random",l=t.pow(i,s),h=t.pow(2,n),d=h*2,F=i-1,J;function y(M,V,Q){var ee=[];V=V===!0?{entropy:!0}:V||{};var ie=te(G(V.entropy?[M,Z(e)]:M===null?j():M,3),ee),ae=new q(ee),le=function(){for(var ue=ae.g(s),fe=l,me=0;ue<h;)ue=(ue+me)*i,fe*=i,me=ae.g(1);for(;ue>=d;)ue/=2,fe/=2,me>>>=1;return(ue+me)/fe};return le.int32=function(){return ae.g(4)|0},le.quick=function(){return ae.g(4)/4294967296},le.double=le,te(Z(ae.S),e),(V.pass||Q||function(ye,ue,fe,me){return me&&(me.S&&H(me,ae),ye.state=function(){return H(ae,{})}),fe?(t[a]=ye,ue):ye})(le,ie,"global"in V?V.global:this==t,V.state)}t["seed"+a]=y;function q(M){var V,Q=M.length,ee=this,ie=0,ae=ee.i=ee.j=0,le=ee.S=[];for(Q||(M=[Q++]);ie<i;)le[ie]=ie++;for(ie=0;ie<i;ie++)le[ie]=le[ae=F&ae+M[ie%Q]+(V=le[ie])],le[ae]=V;ee.g=function(ye){for(var ue,fe=0,me=ee.i,ve=ee.j,he=ee.S;ye--;)ue=he[me=F&me+1],fe=fe*i+he[F&(he[me]=he[ve=F&ve+ue])+(he[ve]=ue)];return ee.i=me,ee.j=ve,fe}}function H(M,V){return V.i=M.i,V.j=M.j,V.S=M.S.slice(),V}function G(M,V){var Q=[],ee=_typeof$2(M),ie;if(V&&ee=="object")for(ie in M)try{Q.push(G(M[ie],V-1))}catch{}return Q.length?Q:ee=="string"?M:M+"\0"}function te(M,V){for(var Q=M+"",ee,ie=0;ie<Q.length;)V[F&ie]=F&(ee^=V[F&ie]*19)+Q.charCodeAt(ie++);return Z(V)}function j(){try{var M=new Uint8Array(i);return(r.crypto||r.msCrypto).getRandomValues(M),Z(M)}catch{var V=r.navigator,Q=V&&V.plugins;return[+new Date,r,Q,r.screen,Z(e)]}}function Z(M){return String.fromCharCode.apply(0,M)}te(t.random(),e)}function initialize$2(e){seedRandom([],e)}var propTypes={SHAPE:"shape"};function _typeof$1(e){"@babel/helpers - typeof";return _typeof$1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$1(e)}var ExpressionManager=(function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null,_lottieGlobal={};initialize$2(BMMath);function resetFrame(){_lottieGlobal={}}function $bm_isInstanceOfArray(e){return e.constructor===Array||e.constructor===Float32Array}function isNumerable(e,t){return e==="number"||t instanceof Number||e==="boolean"||e==="string"}function $bm_neg(e){var t=_typeof$1(e);if(t==="number"||e instanceof Number||t==="boolean")return-e;if($bm_isInstanceOfArray(e)){var r,i=e.length,s=[];for(r=0;r<i;r+=1)s[r]=-e[r];return s}return e.propType?e.v:-e}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(e,t){var r=_typeof$1(e),i=_typeof$1(t);if(isNumerable(r,e)&&isNumerable(i,t)||r==="string"||i==="string")return e+t;if($bm_isInstanceOfArray(e)&&isNumerable(i,t))return e=e.slice(0),e[0]+=t,e;if(isNumerable(r,e)&&$bm_isInstanceOfArray(t))return t=t.slice(0),t[0]=e+t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var s=0,n=e.length,a=t.length,l=[];s<n||s<a;)(typeof e[s]=="number"||e[s]instanceof Number)&&(typeof t[s]=="number"||t[s]instanceof Number)?l[s]=e[s]+t[s]:l[s]=t[s]===void 0?e[s]:e[s]||t[s],s+=1;return l}return 0}var add=sum;function sub(e,t){var r=_typeof$1(e),i=_typeof$1(t);if(isNumerable(r,e)&&isNumerable(i,t))return r==="string"&&(e=parseInt(e,10)),i==="string"&&(t=parseInt(t,10)),e-t;if($bm_isInstanceOfArray(e)&&isNumerable(i,t))return e=e.slice(0),e[0]-=t,e;if(isNumerable(r,e)&&$bm_isInstanceOfArray(t))return t=t.slice(0),t[0]=e-t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var s=0,n=e.length,a=t.length,l=[];s<n||s<a;)(typeof e[s]=="number"||e[s]instanceof Number)&&(typeof t[s]=="number"||t[s]instanceof Number)?l[s]=e[s]-t[s]:l[s]=t[s]===void 0?e[s]:e[s]||t[s],s+=1;return l}return 0}function mul(e,t){var r=_typeof$1(e),i=_typeof$1(t),s;if(isNumerable(r,e)&&isNumerable(i,t))return e*t;var n,a;if($bm_isInstanceOfArray(e)&&isNumerable(i,t)){for(a=e.length,s=createTypedArray("float32",a),n=0;n<a;n+=1)s[n]=e[n]*t;return s}if(isNumerable(r,e)&&$bm_isInstanceOfArray(t)){for(a=t.length,s=createTypedArray("float32",a),n=0;n<a;n+=1)s[n]=e*t[n];return s}return 0}function div(e,t){var r=_typeof$1(e),i=_typeof$1(t),s;if(isNumerable(r,e)&&isNumerable(i,t))return e/t;var n,a;if($bm_isInstanceOfArray(e)&&isNumerable(i,t)){for(a=e.length,s=createTypedArray("float32",a),n=0;n<a;n+=1)s[n]=e[n]/t;return s}if(isNumerable(r,e)&&$bm_isInstanceOfArray(t)){for(a=t.length,s=createTypedArray("float32",a),n=0;n<a;n+=1)s[n]=e/t[n];return s}return 0}function mod(e,t){return typeof e=="string"&&(e=parseInt(e,10)),typeof t=="string"&&(t=parseInt(t,10)),e%t}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(e,t,r){if(t>r){var i=r;r=t,t=i}return Math.min(Math.max(e,t),r)}function radiansToDegrees(e){return e/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(e){return e*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(e,t){if(typeof e=="number"||e instanceof Number)return t=t||0,Math.abs(e-t);t||(t=helperLengthArray);var r,i=Math.min(e.length,t.length),s=0;for(r=0;r<i;r+=1)s+=Math.pow(t[r]-e[r],2);return Math.sqrt(s)}function normalize(e){return div(e,length(e))}function rgbToHsl(e){var t=e[0],r=e[1],i=e[2],s=Math.max(t,r,i),n=Math.min(t,r,i),a,l,h=(s+n)/2;if(s===n)a=0,l=0;else{var d=s-n;switch(l=h>.5?d/(2-s-n):d/(s+n),s){case t:a=(r-i)/d+(r<i?6:0);break;case r:a=(i-t)/d+2;break;case i:a=(t-r)/d+4;break}a/=6}return[a,l,h,e[3]]}function hue2rgb(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function hslToRgb(e){var t=e[0],r=e[1],i=e[2],s,n,a;if(r===0)s=i,a=i,n=i;else{var l=i<.5?i*(1+r):i+r-i*r,h=2*i-l;s=hue2rgb(h,l,t+1/3),n=hue2rgb(h,l,t),a=hue2rgb(h,l,t-1/3)}return[s,n,a,e[3]]}function linear(e,t,r,i,s){if((i===void 0||s===void 0)&&(i=t,s=r,t=0,r=1),r<t){var n=r;r=t,t=n}if(e<=t)return i;if(e>=r)return s;var a=r===t?0:(e-t)/(r-t);if(!i.length)return i+(s-i)*a;var l,h=i.length,d=createTypedArray("float32",h);for(l=0;l<h;l+=1)d[l]=i[l]+(s[l]-i[l])*a;return d}function random(e,t){if(t===void 0&&(e===void 0?(e=0,t=1):(t=e,e=void 0)),t.length){var r,i=t.length;e||(e=createTypedArray("float32",i));var s=createTypedArray("float32",i),n=BMMath.random();for(r=0;r<i;r+=1)s[r]=e[r]+n*(t[r]-e[r]);return s}e===void 0&&(e=0);var a=BMMath.random();return e+a*(t-e)}function createPath(e,t,r,i){var s,n=e.length,a=shapePool.newElement();a.setPathData(!!i,n);var l=[0,0],h,d;for(s=0;s<n;s+=1)h=t&&t[s]?t[s]:l,d=r&&r[s]?r[s]:l,a.setTripleAt(e[s][0],e[s][1],d[0]+e[s][0],d[1]+e[s][1],h[0]+e[s][0],h[1]+e[s][1],s,!0);return a}function initiateExpression(elem,data,property){function noOp(e){return e}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._name=elem.data.nm,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 e(t,r){var i,s,n=this.pv.length?this.pv.length:1,a=createTypedArray("float32",n);t=5;var l=Math.floor(time*t);for(i=0,s=0;i<l;){for(s=0;s<n;s+=1)a[s]+=-r+r*2*BMMath.random();i+=1}var h=time*t,d=h-Math.floor(h),F=createTypedArray("float32",n);if(n>1){for(s=0;s<n;s+=1)F[s]=this.pv[s]+a[s]+(-r+r*2*BMMath.random())*d;return F}return this.pv+a[0]+(-r+r*2*BMMath.random())*d}).bind(this);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));function loopInDuration(e,t){return loopIn(e,t,!0)}function loopOutDuration(e,t){return loopOut(e,t,!0)}this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface);function lookAt(e,t){var r=[t[0]-e[0],t[1]-e[1],t[2]-e[2]],i=Math.atan2(r[0],Math.sqrt(r[1]*r[1]+r[2]*r[2]))/degToRads,s=-Math.atan2(r[1],r[2])/degToRads;return[s,i,0]}function easeOut(e,t,r,i,s){return applyEase(easeOutBez,e,t,r,i,s)}function easeIn(e,t,r,i,s){return applyEase(easeInBez,e,t,r,i,s)}function ease(e,t,r,i,s){return applyEase(easeInOutBez,e,t,r,i,s)}function applyEase(e,t,r,i,s,n){s===void 0?(s=r,n=i):t=(t-r)/(i-r),t>1?t=1:t<0&&(t=0);var a=e(t);if($bm_isInstanceOfArray(s)){var l,h=s.length,d=createTypedArray("float32",h);for(l=0;l<h;l+=1)d[l]=(n[l]-s[l])*a+s[l];return d}return(n-s)*a+s}function nearestKey(e){var t,r=data.k.length,i,s;if(!data.k.length||typeof data.k[0]=="number")i=0,s=0;else if(i=-1,e*=elem.comp.globalData.frameRate,e<data.k[0].t)i=1,s=data.k[0].t;else{for(t=0;t<r-1;t+=1)if(e===data.k[t].t){i=t+1,s=data.k[t].t;break}else if(e>data.k[t].t&&e<data.k[t+1].t){e-data.k[t].t>data.k[t+1].t-e?(i=t+2,s=data.k[t+1].t):(i=t+1,s=data.k[t].t);break}i===-1&&(i=t+1,s=data.k[t].t)}var n={};return n.index=i,n.time=s/elem.comp.globalData.frameRate,n}function key(e){var t,r,i;if(!data.k.length||typeof data.k[0]=="number")throw new Error("The property has no keyframe at index "+e);e-=1,t={time:data.k[e].t/elem.comp.globalData.frameRate,value:[]};var s=Object.prototype.hasOwnProperty.call(data.k[e],"s")?data.k[e].s:data.k[e-1].e;for(i=s.length,r=0;r<i;r+=1)t[r]=s[r],t.value[r]=s[r];return t}function framesToTime(e,t){return t||(t=elem.comp.globalData.frameRate),e/t}function timeToFrames(e,t){return!e&&e!==0&&(e=time),t||(t=elem.comp.globalData.frameRate),e*t}function seedRandom(e){BMMath.seedrandom(randSeed+e)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(e,t){return typeof value=="string"?t===void 0?value.substring(e):value.substring(e,t):""}function substr(e,t){return typeof value=="string"?t===void 0?value.substr(e):value.substr(e,t):""}function posterizeTime(e){time=e===0?0:Math.floor(time*e)/e,value=valueAtTime(time)}var time,velocity,value,text,textIndex,textTotal,selectorValue,index=elem.data.ind,hasParent=!!(elem.hierarchy&&elem.hierarchy.length),parent,randSeed=Math.floor(Math.random()*1e6),globalData=elem.globalData;function executeExpression(e){return value=e,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),hasParent&&!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,scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath,_lottieGlobal],ob.resetFrame=resetFrame,ob})(),Expressions=(function(){var e={};e.initExpressions=t,e.resetFrame=ExpressionManager.resetFrame;function t(r){var i=0,s=[];function n(){i+=1}function a(){i-=1,i===0&&h()}function l(d){s.indexOf(d)===-1&&s.push(d)}function h(){var d,F=s.length;for(d=0;d<F;d+=1)s[d].release();s.length=0}r.renderer.compInterface=CompExpressionInterface(r.renderer),r.renderer.globalData.projectInterface.registerComposition(r.renderer),r.renderer.globalData.pushExpression=n,r.renderer.globalData.popExpression=a,r.renderer.globalData.registerExpressionProperty=l}return e})(),MaskManagerInterface=(function(){function e(r,i){this._mask=r,this._data=i}Object.defineProperty(e.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(e.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),this._mask.op.v*100}});var t=function(i){var s=createSizedArray(i.viewData.length),n,a=i.viewData.length;for(n=0;n<a;n+=1)s[n]=new e(i.viewData[n],i.masksProperties[n]);var l=function(d){for(n=0;n<a;){if(i.masksProperties[n].nm===d)return s[n];n+=1}return null};return l};return t})(),ExpressionPropertyInterface=(function(){var e={pv:0,v:0,mult:1},t={pv:[0,0,0],v:[0,0,0],mult:1};function r(a,l,h){Object.defineProperty(a,"velocity",{get:function(){return l.getVelocityAtTime(l.comp.currentFrame)}}),a.numKeys=l.keyframes?l.keyframes.length:0,a.key=function(d){if(!a.numKeys)return 0;var F="";"s"in l.keyframes[d-1]?F=l.keyframes[d-1].s:"e"in l.keyframes[d-2]?F=l.keyframes[d-2].e:F=l.keyframes[d-2].s;var J=h==="unidimensional"?new Number(F):Object.assign({},F);return J.time=l.keyframes[d-1].t/l.elem.comp.globalData.frameRate,J.value=h==="unidimensional"?F[0]:F,J},a.valueAtTime=l.getValueAtTime,a.speedAtTime=l.getSpeedAtTime,a.velocityAtTime=l.getVelocityAtTime,a.propertyGroup=l.propertyGroup}function i(a){(!a||!("pv"in a))&&(a=e);var l=1/a.mult,h=a.pv*l,d=new Number(h);return d.value=h,r(d,a,"unidimensional"),function(){return a.k&&a.getValue(),h=a.v*l,d.value!==h&&(d=new Number(h),d.value=h,d[0]=h,r(d,a,"unidimensional")),d}}function s(a){(!a||!("pv"in a))&&(a=t);var l=1/a.mult,h=a.data&&a.data.l||a.pv.length,d=createTypedArray("float32",h),F=createTypedArray("float32",h);return d.value=F,r(d,a,"multidimensional"),function(){a.k&&a.getValue();for(var J=0;J<h;J+=1)F[J]=a.v[J]*l,d[J]=F[J];return d}}function n(){return e}return function(a){return a?a.propType==="unidimensional"?i(a):s(a):n}})(),TransformExpressionInterface=(function(){return function(e){function t(a){switch(a){case"scale":case"Scale":case"ADBE Scale":case 6:return t.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return t.rotation;case"ADBE Rotate X":return t.xRotation;case"ADBE Rotate Y":return t.yRotation;case"position":case"Position":case"ADBE Position":case 2:return t.position;case"ADBE Position_0":return t.xPosition;case"ADBE Position_1":return t.yPosition;case"ADBE Position_2":return t.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return t.anchorPoint;case"opacity":case"Opacity":case 11:return t.opacity;default:return null}}Object.defineProperty(t,"rotation",{get:ExpressionPropertyInterface(e.r||e.rz)}),Object.defineProperty(t,"zRotation",{get:ExpressionPropertyInterface(e.rz||e.r)}),Object.defineProperty(t,"xRotation",{get:ExpressionPropertyInterface(e.rx)}),Object.defineProperty(t,"yRotation",{get:ExpressionPropertyInterface(e.ry)}),Object.defineProperty(t,"scale",{get:ExpressionPropertyInterface(e.s)});var r,i,s,n;return e.p?n=ExpressionPropertyInterface(e.p):(r=ExpressionPropertyInterface(e.px),i=ExpressionPropertyInterface(e.py),e.pz&&(s=ExpressionPropertyInterface(e.pz))),Object.defineProperty(t,"position",{get:function(){return e.p?n():[r(),i(),s?s():0]}}),Object.defineProperty(t,"xPosition",{get:ExpressionPropertyInterface(e.px)}),Object.defineProperty(t,"yPosition",{get:ExpressionPropertyInterface(e.py)}),Object.defineProperty(t,"zPosition",{get:ExpressionPropertyInterface(e.pz)}),Object.defineProperty(t,"anchorPoint",{get:ExpressionPropertyInterface(e.a)}),Object.defineProperty(t,"opacity",{get:ExpressionPropertyInterface(e.o)}),Object.defineProperty(t,"skew",{get:ExpressionPropertyInterface(e.sk)}),Object.defineProperty(t,"skewAxis",{get:ExpressionPropertyInterface(e.sa)}),Object.defineProperty(t,"orientation",{get:ExpressionPropertyInterface(e.or)}),t}})(),LayerExpressionInterface=(function(){function e(d){var F=new Matrix;if(d!==void 0){var J=this._elem.finalTransform.mProp.getValueAtTime(d);J.clone(F)}else{var y=this._elem.finalTransform.mProp;y.applyToMatrix(F)}return F}function t(d,F){var J=this.getMatrix(F);return J.props[12]=0,J.props[13]=0,J.props[14]=0,this.applyPoint(J,d)}function r(d,F){var J=this.getMatrix(F);return this.applyPoint(J,d)}function i(d,F){var J=this.getMatrix(F);return J.props[12]=0,J.props[13]=0,J.props[14]=0,this.invertPoint(J,d)}function s(d,F){var J=this.getMatrix(F);return this.invertPoint(J,d)}function n(d,F){if(this._elem.hierarchy&&this._elem.hierarchy.length){var J,y=this._elem.hierarchy.length;for(J=0;J<y;J+=1)this._elem.hierarchy[J].finalTransform.mProp.applyToMatrix(d)}return d.applyToPointArray(F[0],F[1],F[2]||0)}function a(d,F){if(this._elem.hierarchy&&this._elem.hierarchy.length){var J,y=this._elem.hierarchy.length;for(J=0;J<y;J+=1)this._elem.hierarchy[J].finalTransform.mProp.applyToMatrix(d)}return d.inversePoint(F)}function l(d){var F=new Matrix;if(F.reset(),this._elem.finalTransform.mProp.applyToMatrix(F),this._elem.hierarchy&&this._elem.hierarchy.length){var J,y=this._elem.hierarchy.length;for(J=0;J<y;J+=1)this._elem.hierarchy[J].finalTransform.mProp.applyToMatrix(F);return F.inversePoint(d)}return F.inversePoint(d)}function h(){return[1,1,1,1]}return function(d){var F;function J(G){q.mask=new MaskManagerInterface(G,d)}function y(G){q.effect=G}function q(G){switch(G){case"ADBE Root Vectors Group":case"Contents":case 2:return q.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return F;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return q.effect;case"ADBE Text Properties":return q.textInterface;default:return null}}q.getMatrix=e,q.invertPoint=a,q.applyPoint=n,q.toWorld=r,q.toWorldVec=t,q.fromWorld=s,q.fromWorldVec=i,q.toComp=r,q.fromComp=l,q.sampleImage=h,q.sourceRectAtTime=d.sourceRectAtTime.bind(d),q._elem=d,F=TransformExpressionInterface(d.finalTransform.mProp);var H=getDescriptor(F,"anchorPoint");return Object.defineProperties(q,{hasParent:{get:function(){return d.hierarchy.length}},parent:{get:function(){return d.hierarchy[0].layerInterface}},rotation:getDescriptor(F,"rotation"),scale:getDescriptor(F,"scale"),position:getDescriptor(F,"position"),opacity:getDescriptor(F,"opacity"),anchorPoint:H,anchor_point:H,transform:{get:function(){return F}},active:{get:function(){return d.isInRange}}}),q.startTime=d.data.st,q.index=d.data.ind,q.source=d.data.refId,q.height=d.data.ty===0?d.data.h:100,q.width=d.data.ty===0?d.data.w:100,q.inPoint=d.data.ip/d.comp.globalData.frameRate,q.outPoint=d.data.op/d.comp.globalData.frameRate,q._name=d.data.nm,q.registerMaskInterface=J,q.registerEffectsInterface=y,q}})(),propertyGroupFactory=(function(){return function(e,t){return function(r){return r=r===void 0?1:r,r<=0?e:t(r-1)}}})(),PropertyInterface=(function(){return function(e,t){var r={_name:e};function i(s){return s=s===void 0?1:s,s<=0?r:t(s-1)}return i}})(),EffectsExpressionInterface=(function(){var e={createEffectsInterface:t};function t(s,n){if(s.effectsManager){var a=[],l=s.data.ef,h,d=s.effectsManager.effectElements.length;for(h=0;h<d;h+=1)a.push(r(l[h],s.effectsManager.effectElements[h],n,s));var F=s.data.ef||[],J=function(q){for(h=0,d=F.length;h<d;){if(q===F[h].nm||q===F[h].mn||q===F[h].ix)return a[h];h+=1}return null};return Object.defineProperty(J,"numProperties",{get:function(){return F.length}}),J}return null}function r(s,n,a,l){function h(q){for(var H=s.ef,G=0,te=H.length;G<te;){if(q===H[G].nm||q===H[G].mn||q===H[G].ix)return H[G].ty===5?F[G]:F[G]();G+=1}throw new Error}var d=propertyGroupFactory(h,a),F=[],J,y=s.ef.length;for(J=0;J<y;J+=1)s.ef[J].ty===5?F.push(r(s.ef[J],n.effectElements[J],n.effectElements[J].propertyGroup,l)):F.push(i(n.effectElements[J],s.ef[J].ty,l,d));return s.mn==="ADBE Color Control"&&Object.defineProperty(h,"color",{get:function(){return F[0]()}}),Object.defineProperties(h,{numProperties:{get:function(){return s.np}},_name:{value:s.nm},propertyGroup:{value:d}}),h.enabled=s.en!==0,h.active=h.enabled,h}function i(s,n,a,l){var h=ExpressionPropertyInterface(s.p);function d(){return n===10?a.comp.compInterface(s.p.v):h()}return s.p.setGroupProperty&&s.p.setGroupProperty(PropertyInterface("",l)),d}return e})(),ShapePathInterface=(function(){return function(t,r,i){var s=r.sh;function n(l){return l==="Shape"||l==="shape"||l==="Path"||l==="path"||l==="ADBE Vector Shape"||l===2?n.path:null}var a=propertyGroupFactory(n,i);return s.setGroupProperty(PropertyInterface("Path",a)),Object.defineProperties(n,{path:{get:function(){return s.k&&s.getValue(),s}},shape:{get:function(){return s.k&&s.getValue(),s}},_name:{value:t.nm},ix:{value:t.ix},propertyIndex:{value:t.ix},mn:{value:t.mn},propertyGroup:{value:i}}),n}})(),ShapeExpressionInterface=(function(){function e(H,G,te){var j=[],Z,M=H?H.length:0;for(Z=0;Z<M;Z+=1)H[Z].ty==="gr"?j.push(r(H[Z],G[Z],te)):H[Z].ty==="fl"?j.push(i(H[Z],G[Z],te)):H[Z].ty==="st"?j.push(a(H[Z],G[Z],te)):H[Z].ty==="tm"?j.push(l(H[Z],G[Z],te)):H[Z].ty==="tr"||(H[Z].ty==="el"?j.push(d(H[Z],G[Z],te)):H[Z].ty==="sr"?j.push(F(H[Z],G[Z],te)):H[Z].ty==="sh"?j.push(ShapePathInterface(H[Z],G[Z],te)):H[Z].ty==="rc"?j.push(J(H[Z],G[Z],te)):H[Z].ty==="rd"?j.push(y(H[Z],G[Z],te)):H[Z].ty==="rp"?j.push(q(H[Z],G[Z],te)):H[Z].ty==="gf"?j.push(s(H[Z],G[Z],te)):j.push(n(H[Z],G[Z])));return j}function t(H,G,te){var j,Z=function(Q){for(var ee=0,ie=j.length;ee<ie;){if(j[ee]._name===Q||j[ee].mn===Q||j[ee].propertyIndex===Q||j[ee].ix===Q||j[ee].ind===Q)return j[ee];ee+=1}return typeof Q=="number"?j[Q-1]:null};Z.propertyGroup=propertyGroupFactory(Z,te),j=e(H.it,G.it,Z.propertyGroup),Z.numProperties=j.length;var M=h(H.it[H.it.length-1],G.it[G.it.length-1],Z.propertyGroup);return Z.transform=M,Z.propertyIndex=H.cix,Z._name=H.nm,Z}function r(H,G,te){var j=function(Q){switch(Q){case"ADBE Vectors Group":case"Contents":case 2:return j.content;default:return j.transform}};j.propertyGroup=propertyGroupFactory(j,te);var Z=t(H,G,j.propertyGroup),M=h(H.it[H.it.length-1],G.it[G.it.length-1],j.propertyGroup);return j.content=Z,j.transform=M,Object.defineProperty(j,"_name",{get:function(){return H.nm}}),j.numProperties=H.np,j.propertyIndex=H.ix,j.nm=H.nm,j.mn=H.mn,j}function i(H,G,te){function j(Z){return Z==="Color"||Z==="color"?j.color:Z==="Opacity"||Z==="opacity"?j.opacity:null}return Object.defineProperties(j,{color:{get:ExpressionPropertyInterface(G.c)},opacity:{get:ExpressionPropertyInterface(G.o)},_name:{value:H.nm},mn:{value:H.mn}}),G.c.setGroupProperty(PropertyInterface("Color",te)),G.o.setGroupProperty(PropertyInterface("Opacity",te)),j}function s(H,G,te){function j(Z){return Z==="Start Point"||Z==="start point"?j.startPoint:Z==="End Point"||Z==="end point"?j.endPoint:Z==="Opacity"||Z==="opacity"?j.opacity:null}return Object.defineProperties(j,{startPoint:{get:ExpressionPropertyInterface(G.s)},endPoint:{get:ExpressionPropertyInterface(G.e)},opacity:{get:ExpressionPropertyInterface(G.o)},type:{get:function(){return"a"}},_name:{value:H.nm},mn:{value:H.mn}}),G.s.setGroupProperty(PropertyInterface("Start Point",te)),G.e.setGroupProperty(PropertyInterface("End Point",te)),G.o.setGroupProperty(PropertyInterface("Opacity",te)),j}function n(){function H(){return null}return H}function a(H,G,te){var j=propertyGroupFactory(ie,te),Z=propertyGroupFactory(ee,j);function M(ae){Object.defineProperty(ee,H.d[ae].nm,{get:ExpressionPropertyInterface(G.d.dataProps[ae].p)})}var V,Q=H.d?H.d.length:0,ee={};for(V=0;V<Q;V+=1)M(V),G.d.dataProps[V].p.setGroupProperty(Z);function ie(ae){return ae==="Color"||ae==="color"?ie.color:ae==="Opacity"||ae==="opacity"?ie.opacity:ae==="Stroke Width"||ae==="stroke width"?ie.strokeWidth:null}return Object.defineProperties(ie,{color:{get:ExpressionPropertyInterface(G.c)},opacity:{get:ExpressionPropertyInterface(G.o)},strokeWidth:{get:ExpressionPropertyInterface(G.w)},dash:{get:function(){return ee}},_name:{value:H.nm},mn:{value:H.mn}}),G.c.setGroupProperty(PropertyInterface("Color",j)),G.o.setGroupProperty(PropertyInterface("Opacity",j)),G.w.setGroupProperty(PropertyInterface("Stroke Width",j)),ie}function l(H,G,te){function j(M){return M===H.e.ix||M==="End"||M==="end"?j.end:M===H.s.ix?j.start:M===H.o.ix?j.offset:null}var Z=propertyGroupFactory(j,te);return j.propertyIndex=H.ix,G.s.setGroupProperty(PropertyInterface("Start",Z)),G.e.setGroupProperty(PropertyInterface("End",Z)),G.o.setGroupProperty(PropertyInterface("Offset",Z)),j.propertyIndex=H.ix,j.propertyGroup=te,Object.defineProperties(j,{start:{get:ExpressionPropertyInterface(G.s)},end:{get:ExpressionPropertyInterface(G.e)},offset:{get:ExpressionPropertyInterface(G.o)},_name:{value:H.nm}}),j.mn=H.mn,j}function h(H,G,te){function j(M){return H.a.ix===M||M==="Anchor Point"?j.anchorPoint:H.o.ix===M||M==="Opacity"?j.opacity:H.p.ix===M||M==="Position"?j.position:H.r.ix===M||M==="Rotation"||M==="ADBE Vector Rotation"?j.rotation:H.s.ix===M||M==="Scale"?j.scale:H.sk&&H.sk.ix===M||M==="Skew"?j.skew:H.sa&&H.sa.ix===M||M==="Skew Axis"?j.skewAxis:null}var Z=propertyGroupFactory(j,te);return G.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",Z)),G.transform.mProps.p.setGroupProperty(PropertyInterface("Position",Z)),G.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",Z)),G.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",Z)),G.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",Z)),G.transform.mProps.sk&&(G.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",Z)),G.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",Z))),G.transform.op.setGroupProperty(PropertyInterface("Opacity",Z)),Object.defineProperties(j,{opacity:{get:ExpressionPropertyInterface(G.transform.mProps.o)},position:{get:ExpressionPropertyInterface(G.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(G.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(G.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(G.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(G.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(G.transform.mProps.sa)},_name:{value:H.nm}}),j.ty="tr",j.mn=H.mn,j.propertyGroup=te,j}function d(H,G,te){function j(V){return H.p.ix===V?j.position:H.s.ix===V?j.size:null}var Z=propertyGroupFactory(j,te);j.propertyIndex=H.ix;var M=G.sh.ty==="tm"?G.sh.prop:G.sh;return M.s.setGroupProperty(PropertyInterface("Size",Z)),M.p.setGroupProperty(PropertyInterface("Position",Z)),Object.defineProperties(j,{size:{get:ExpressionPropertyInterface(M.s)},position:{get:ExpressionPropertyInterface(M.p)},_name:{value:H.nm}}),j.mn=H.mn,j}function F(H,G,te){function j(V){return H.p.ix===V?j.position:H.r.ix===V?j.rotation:H.pt.ix===V?j.points:H.or.ix===V||V==="ADBE Vector Star Outer Radius"?j.outerRadius:H.os.ix===V?j.outerRoundness:H.ir&&(H.ir.ix===V||V==="ADBE Vector Star Inner Radius")?j.innerRadius:H.is&&H.is.ix===V?j.innerRoundness:null}var Z=propertyGroupFactory(j,te),M=G.sh.ty==="tm"?G.sh.prop:G.sh;return j.propertyIndex=H.ix,M.or.setGroupProperty(PropertyInterface("Outer Radius",Z)),M.os.setGroupProperty(PropertyInterface("Outer Roundness",Z)),M.pt.setGroupProperty(PropertyInterface("Points",Z)),M.p.setGroupProperty(PropertyInterface("Position",Z)),M.r.setGroupProperty(PropertyInterface("Rotation",Z)),H.ir&&(M.ir.setGroupProperty(PropertyInterface("Inner Radius",Z)),M.is.setGroupProperty(PropertyInterface("Inner Roundness",Z))),Object.defineProperties(j,{position:{get:ExpressionPropertyInterface(M.p)},rotation:{get:ExpressionPropertyInterface(M.r)},points:{get:ExpressionPropertyInterface(M.pt)},outerRadius:{get:ExpressionPropertyInterface(M.or)},outerRoundness:{get:ExpressionPropertyInterface(M.os)},innerRadius:{get:ExpressionPropertyInterface(M.ir)},innerRoundness:{get:ExpressionPropertyInterface(M.is)},_name:{value:H.nm}}),j.mn=H.mn,j}function J(H,G,te){function j(V){return H.p.ix===V?j.position:H.r.ix===V?j.roundness:H.s.ix===V||V==="Size"||V==="ADBE Vector Rect Size"?j.size:null}var Z=propertyGroupFactory(j,te),M=G.sh.ty==="tm"?G.sh.prop:G.sh;return j.propertyIndex=H.ix,M.p.setGroupProperty(PropertyInterface("Position",Z)),M.s.setGroupProperty(PropertyInterface("Size",Z)),M.r.setGroupProperty(PropertyInterface("Rotation",Z)),Object.defineProperties(j,{position:{get:ExpressionPropertyInterface(M.p)},roundness:{get:ExpressionPropertyInterface(M.r)},size:{get:ExpressionPropertyInterface(M.s)},_name:{value:H.nm}}),j.mn=H.mn,j}function y(H,G,te){function j(V){return H.r.ix===V||V==="Round Corners 1"?j.radius:null}var Z=propertyGroupFactory(j,te),M=G;return j.propertyIndex=H.ix,M.rd.setGroupProperty(PropertyInterface("Radius",Z)),Object.defineProperties(j,{radius:{get:ExpressionPropertyInterface(M.rd)},_name:{value:H.nm}}),j.mn=H.mn,j}function q(H,G,te){function j(V){return H.c.ix===V||V==="Copies"?j.copies:H.o.ix===V||V==="Offset"?j.offset:null}var Z=propertyGroupFactory(j,te),M=G;return j.propertyIndex=H.ix,M.c.setGroupProperty(PropertyInterface("Copies",Z)),M.o.setGroupProperty(PropertyInterface("Offset",Z)),Object.defineProperties(j,{copies:{get:ExpressionPropertyInterface(M.c)},offset:{get:ExpressionPropertyInterface(M.o)},_name:{value:H.nm}}),j.mn=H.mn,j}return function(H,G,te){var j;function Z(V){if(typeof V=="number")return V=V===void 0?1:V,V===0?te:j[V-1];for(var Q=0,ee=j.length;Q<ee;){if(j[Q]._name===V)return j[Q];Q+=1}return null}function M(){return te}return Z.propertyGroup=propertyGroupFactory(Z,M),j=e(H,G,Z.propertyGroup),Z.numProperties=j.length,Z._name="Contents",Z}})(),TextExpressionInterface=(function(){return function(e){var t;function r(i){return i==="ADBE Text Document"?r.sourceText:null}return Object.defineProperty(r,"sourceText",{get:function(){e.textProperty.getValue();var s=e.textProperty.currentData.t;return(!t||s!==t.value)&&(t=new String(s),t.value=s||new String(s),Object.defineProperty(t,"style",{get:function(){return{fillColor:e.textProperty.currentData.fc}}})),t}}),r}})();function _typeof(e){"@babel/helpers - typeof";return _typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(e)}var FootageInterface=(function(){var e=function(i){var s="",n=i.getFootageData();function a(){return s="",n=i.getFootageData(),l}function l(h){if(n[h])return s=h,n=n[h],_typeof(n)==="object"?l:n;var d=h.indexOf(s);if(d!==-1){var F=parseInt(h.substr(d+s.length),10);return n=n[F],_typeof(n)==="object"?l:n}return""}return a},t=function(i){function s(n){return n==="Outline"?s.outlineInterface():null}return s._name="Outline",s.outlineInterface=e(i),s};return function(r){function i(s){return s==="Data"?i.dataInterface:null}return i._name="Data",i.dataInterface=t(r),i}})(),interfaces={layer:LayerExpressionInterface,effects:EffectsExpressionInterface,comp:CompExpressionInterface,shape:ShapeExpressionInterface,text:TextExpressionInterface,footage:FootageInterface};function getInterface(e){return interfaces[e]||null}var expressionHelpers=(function(){function e(a,l,h){l.x&&(h.k=!0,h.x=!0,h.initiateExpression=ExpressionManager.initiateExpression,h.effectsSequence.push(h.initiateExpression(a,l,h).bind(h)))}function t(a){return a*=this.elem.globalData.frameRate,a-=this.offsetTime,a!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<a?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(a,this._cachingAtTime),this._cachingAtTime.lastFrame=a),this._cachingAtTime.value}function r(a){var l=-.01,h=this.getValueAtTime(a),d=this.getValueAtTime(a+l),F=0;if(h.length){var J;for(J=0;J<h.length;J+=1)F+=Math.pow(d[J]-h[J],2);F=Math.sqrt(F)*100}else F=0;return F}function i(a){if(this.vel!==void 0)return this.vel;var l=-.001,h=this.getValueAtTime(a),d=this.getValueAtTime(a+l),F;if(h.length){F=createTypedArray("float32",h.length);var J;for(J=0;J<h.length;J+=1)F[J]=(d[J]-h[J])/l}else F=(d-h)/l;return F}function s(){return this.pv}function n(a){this.propertyGroup=a}return{searchExpressions:e,getSpeedAtTime:r,getVelocityAtTime:i,getValueAtTime:t,getStaticValueAtTime:s,setGroupProperty:n}})();function addPropertyDecorator(){function e(y,q,H){if(!this.k||!this.keyframes)return this.pv;y=y?y.toLowerCase():"";var G=this.comp.renderedFrame,te=this.keyframes,j=te[te.length-1].t;if(G<=j)return this.pv;var Z,M;H?(q?Z=Math.abs(j-this.elem.comp.globalData.frameRate*q):Z=Math.max(0,j-this.elem.data.ip),M=j-Z):((!q||q>te.length-1)&&(q=te.length-1),M=te[te.length-1-q].t,Z=j-M);var V,Q,ee;if(y==="pingpong"){var ie=Math.floor((G-M)/Z);if(ie%2!==0)return this.getValueAtTime((Z-(G-M)%Z+M)/this.comp.globalData.frameRate,0)}else if(y==="offset"){var ae=this.getValueAtTime(M/this.comp.globalData.frameRate,0),le=this.getValueAtTime(j/this.comp.globalData.frameRate,0),ye=this.getValueAtTime(((G-M)%Z+M)/this.comp.globalData.frameRate,0),ue=Math.floor((G-M)/Z);if(this.pv.length){for(ee=new Array(ae.length),Q=ee.length,V=0;V<Q;V+=1)ee[V]=(le[V]-ae[V])*ue+ye[V];return ee}return(le-ae)*ue+ye}else if(y==="continue"){var fe=this.getValueAtTime(j/this.comp.globalData.frameRate,0),me=this.getValueAtTime((j-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(ee=new Array(fe.length),Q=ee.length,V=0;V<Q;V+=1)ee[V]=fe[V]+(fe[V]-me[V])*((G-j)/this.comp.globalData.frameRate)/5e-4;return ee}return fe+(fe-me)*((G-j)/.001)}return this.getValueAtTime(((G-M)%Z+M)/this.comp.globalData.frameRate,0)}function t(y,q,H){if(!this.k)return this.pv;y=y?y.toLowerCase():"";var G=this.comp.renderedFrame,te=this.keyframes,j=te[0].t;if(G>=j)return this.pv;var Z,M;H?(q?Z=Math.abs(this.elem.comp.globalData.frameRate*q):Z=Math.max(0,this.elem.data.op-j),M=j+Z):((!q||q>te.length-1)&&(q=te.length-1),M=te[q].t,Z=M-j);var V,Q,ee;if(y==="pingpong"){var ie=Math.floor((j-G)/Z);if(ie%2===0)return this.getValueAtTime(((j-G)%Z+j)/this.comp.globalData.frameRate,0)}else if(y==="offset"){var ae=this.getValueAtTime(j/this.comp.globalData.frameRate,0),le=this.getValueAtTime(M/this.comp.globalData.frameRate,0),ye=this.getValueAtTime((Z-(j-G)%Z+j)/this.comp.globalData.frameRate,0),ue=Math.floor((j-G)/Z)+1;if(this.pv.length){for(ee=new Array(ae.length),Q=ee.length,V=0;V<Q;V+=1)ee[V]=ye[V]-(le[V]-ae[V])*ue;return ee}return ye-(le-ae)*ue}else if(y==="continue"){var fe=this.getValueAtTime(j/this.comp.globalData.frameRate,0),me=this.getValueAtTime((j+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(ee=new Array(fe.length),Q=ee.length,V=0;V<Q;V+=1)ee[V]=fe[V]+(fe[V]-me[V])*(j-G)/.001;return ee}return fe+(fe-me)*(j-G)/.001}return this.getValueAtTime((Z-((j-G)%Z+j))/this.comp.globalData.frameRate,0)}function r(y,q){if(!this.k)return this.pv;if(y=(y||.4)*.5,q=Math.floor(q||5),q<=1)return this.pv;var H=this.comp.renderedFrame/this.comp.globalData.frameRate,G=H-y,te=H+y,j=q>1?(te-G)/(q-1):1,Z=0,M=0,V;this.pv.length?V=createTypedArray("float32",this.pv.length):V=0;for(var Q;Z<q;){if(Q=this.getValueAtTime(G+Z*j),this.pv.length)for(M=0;M<this.pv.length;M+=1)V[M]+=Q[M];else V+=Q;Z+=1}if(this.pv.length)for(M=0;M<this.pv.length;M+=1)V[M]/=q;else V/=q;return V}function i(y){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var q=this._transformCachingAtTime.v;if(q.cloneFromProps(this.pre.props),this.appliedTransformations<1){var H=this.a.getValueAtTime(y);q.translate(-H[0]*this.a.mult,-H[1]*this.a.mult,H[2]*this.a.mult)}if(this.appliedTransformations<2){var G=this.s.getValueAtTime(y);q.scale(G[0]*this.s.mult,G[1]*this.s.mult,G[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var te=this.sk.getValueAtTime(y),j=this.sa.getValueAtTime(y);q.skewFromAxis(-te*this.sk.mult,j*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var Z=this.r.getValueAtTime(y);q.rotate(-Z*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var M=this.rz.getValueAtTime(y),V=this.ry.getValueAtTime(y),Q=this.rx.getValueAtTime(y),ee=this.or.getValueAtTime(y);q.rotateZ(-M*this.rz.mult).rotateY(V*this.ry.mult).rotateX(Q*this.rx.mult).rotateZ(-ee[2]*this.or.mult).rotateY(ee[1]*this.or.mult).rotateX(ee[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var ie=this.px.getValueAtTime(y),ae=this.py.getValueAtTime(y);if(this.data.p.z){var le=this.pz.getValueAtTime(y);q.translate(ie*this.px.mult,ae*this.py.mult,-le*this.pz.mult)}else q.translate(ie*this.px.mult,ae*this.py.mult,0)}else{var ye=this.p.getValueAtTime(y);q.translate(ye[0]*this.p.mult,ye[1]*this.p.mult,-ye[2]*this.p.mult)}return q}function s(){return this.v.clone(new Matrix)}var n=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(y,q,H){var G=n(y,q,H);return G.dynamicProperties.length?G.getValueAtTime=i.bind(G):G.getValueAtTime=s.bind(G),G.setGroupProperty=expressionHelpers.setGroupProperty,G};var a=PropertyFactory.getProp;PropertyFactory.getProp=function(y,q,H,G,te){var j=a(y,q,H,G,te);j.kf?j.getValueAtTime=expressionHelpers.getValueAtTime.bind(j):j.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(j),j.setGroupProperty=expressionHelpers.setGroupProperty,j.loopOut=e,j.loopIn=t,j.smooth=r,j.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(j),j.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(j),j.numKeys=q.a===1?q.k.length:0,j.propertyIndex=q.ix;var Z=0;return H!==0&&(Z=createTypedArray("float32",q.a===1?q.k[0].s.length:q.k.length)),j._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:Z},expressionHelpers.searchExpressions(y,q,j),j.k&&te.addDynamicProperty(j),j};function l(y){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),y*=this.elem.globalData.frameRate,y-=this.offsetTime,y!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<y?this._caching.lastIndex:0,this._cachingAtTime.lastTime=y,this.interpolateShape(y,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue}var h=ShapePropertyFactory.getConstructorFunction(),d=ShapePropertyFactory.getKeyframedConstructorFunction();function F(){}F.prototype={vertices:function(q,H){this.k&&this.getValue();var G=this.v;H!==void 0&&(G=this.getValueAtTime(H,0));var te,j=G._length,Z=G[q],M=G.v,V=createSizedArray(j);for(te=0;te<j;te+=1)q==="i"||q==="o"?V[te]=[Z[te][0]-M[te][0],Z[te][1]-M[te][1]]:V[te]=[Z[te][0],Z[te][1]];return V},points:function(q){return this.vertices("v",q)},inTangents:function(q){return this.vertices("i",q)},outTangents:function(q){return this.vertices("o",q)},isClosed:function(){return this.v.c},pointOnPath:function(q,H){var G=this.v;H!==void 0&&(G=this.getValueAtTime(H,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(G));for(var te=this._segmentsLength,j=te.lengths,Z=te.totalLength*q,M=0,V=j.length,Q=0,ee;M<V;){if(Q+j[M].addedLength>Z){var ie=M,ae=G.c&&M===V-1?0:M+1,le=(Z-Q)/j[M].addedLength;ee=bez.getPointInSegment(G.v[ie],G.v[ae],G.o[ie],G.i[ae],le,j[M]);break}else Q+=j[M].addedLength;M+=1}return ee||(ee=G.c?[G.v[0][0],G.v[0][1]]:[G.v[G._length-1][0],G.v[G._length-1][1]]),ee},vectorOnPath:function(q,H,G){q==1?q=this.v.c:q==0&&(q=.999);var te=this.pointOnPath(q,H),j=this.pointOnPath(q+.001,H),Z=j[0]-te[0],M=j[1]-te[1],V=Math.sqrt(Math.pow(Z,2)+Math.pow(M,2));if(V===0)return[0,0];var Q=G==="tangent"?[Z/V,M/V]:[-M/V,Z/V];return Q},tangentOnPath:function(q,H){return this.vectorOnPath(q,H,"tangent")},normalOnPath:function(q,H){return this.vectorOnPath(q,H,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([F],h),extendPrototype([F],d),d.prototype.getValueAtTime=l,d.prototype.initiateExpression=ExpressionManager.initiateExpression;var J=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(y,q,H,G,te){var j=J(y,q,H,G,te);return j.propertyIndex=q.ix,j.lock=!1,H===3?expressionHelpers.searchExpressions(y,q.pt,j):H===4&&expressionHelpers.searchExpressions(y,q.ks,j),j.k&&y.addDynamicProperty(j),j}}function initialize$1(){addPropertyDecorator()}function addDecorator(){function e(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}TextProperty.prototype.getExpressionValue=function(t,r){var i=this.calculateExpression(r);if(t.t!==i){var s={};return this.copyData(s,t),s.t=i.toString(),s.__complete=!1,s}return t},TextProperty.prototype.searchProperty=function(){var t=this.searchKeyframes(),r=this.searchExpressions();return this.kf=t||r,this.kf},TextProperty.prototype.searchExpressions=e}function initialize(){addDecorator()}function SVGComposableEffect(){}SVGComposableEffect.prototype={createMergeNode:function e(t,r){var i=createNS("feMerge");i.setAttribute("result",t);var s,n;for(n=0;n<r.length;n+=1)s=createNS("feMergeNode"),s.setAttribute("in",r[n]),i.appendChild(s),i.appendChild(s);return i}};var linearFilterValue="0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0";function SVGTintFilter(e,t,r,i,s){this.filterManager=t;var n=createNS("feColorMatrix");n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","linearRGB"),n.setAttribute("values",linearFilterValue+" 1 0"),this.linearFilter=n,n.setAttribute("result",i+"_tint_1"),e.appendChild(n),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+"_tint_2"),e.appendChild(n),this.matrixFilter=n;var a=this.createMergeNode(i,[s,i+"_tint_1",i+"_tint_2"]);e.appendChild(a)}extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v/100;this.linearFilter.setAttribute("values",linearFilterValue+" "+i+" 0"),this.matrixFilter.setAttribute("values",r[0]-t[0]+" 0 0 0 "+t[0]+" "+(r[1]-t[1])+" 0 0 0 "+t[1]+" "+(r[2]-t[2])+" 0 0 0 "+t[2]+" 0 0 0 1 0")}};function SVGFillFilter(e,t,r,i){this.filterManager=t;var s=createNS("feColorMatrix");s.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),e.appendChild(s),this.matrixFilter=s}SVGFillFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[2].p.v,r=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+t[0]+" 0 0 0 0 "+t[1]+" 0 0 0 0 "+t[2]+" 0 0 0 "+r+" 0")}};function SVGStrokeEffect(e,t,r){this.initialized=!1,this.filterManager=t,this.elem=r,this.paths=[]}SVGStrokeEffect.prototype.initialize=function(){var e=this.elem.layerElement.children||this.elem.layerElement.childNodes,t,r,i,s;for(this.filterManager.effectElements[1].p.v===1?(s=this.elem.maskManager.masksProperties.length,i=0):(i=this.filterManager.effectElements[0].p.v-1,s=i+1),r=createNS("g"),r.setAttribute("fill","none"),r.setAttribute("stroke-linecap","round"),r.setAttribute("stroke-dashoffset",1),i;i<s;i+=1)t=createNS("path"),r.appendChild(t),this.paths.push({p:t,m:i});if(this.filterManager.effectElements[10].p.v===3){var n=createNS("mask"),a=createElementID();n.setAttribute("id",a),n.setAttribute("mask-type","alpha"),n.appendChild(r),this.elem.globalData.defs.appendChild(n);var l=createNS("g");for(l.setAttribute("mask","url("+getLocationHref()+"#"+a+")");e[0];)l.appendChild(e[0]);this.elem.layerElement.appendChild(l),this.masker=n,r.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(e=this.elem.layerElement.children||this.elem.layerElement.childNodes;e.length;)this.elem.layerElement.removeChild(e[0]);this.elem.layerElement.appendChild(r),this.elem.layerElement.removeAttribute("mask"),r.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=r},SVGStrokeEffect.prototype.renderFrame=function(e){this.initialized||this.initialize();var t,r=this.paths.length,i,s;for(t=0;t<r;t+=1)if(this.paths[t].m!==-1&&(i=this.elem.maskManager.viewData[this.paths[t].m],s=this.paths[t].p,(e||this.filterManager._mdf||i.prop._mdf)&&s.setAttribute("d",i.lastPath),e||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||i.prop._mdf)){var n;if(this.filterManager.effectElements[7].p.v!==0||this.filterManager.effectElements[8].p.v!==100){var a=Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,l=Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v)*.01,h=s.getTotalLength();n="0 0 0 "+h*a+" ";var d=h*(l-a),F=1+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01,J=Math.floor(d/F),y;for(y=0;y<J;y+=1)n+="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01+" ";n+="0 "+h*10+" 0 0"}else n="1 "+this.filterManager.effectElements[4].p.v*2*this.filterManager.effectElements[9].p.v*.01;s.setAttribute("stroke-dasharray",n)}if((e||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",this.filterManager.effectElements[4].p.v*2),(e||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)&&(e||this.filterManager.effectElements[3].p._mdf)){var q=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(q[0]*255)+","+bmFloor(q[1]*255)+","+bmFloor(q[2]*255)+")")}};function SVGTritoneFilter(e,t,r,i){this.filterManager=t;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"),e.appendChild(s);var n=createNS("feComponentTransfer");n.setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("result",i),this.matrixFilter=n;var a=createNS("feFuncR");a.setAttribute("type","table"),n.appendChild(a),this.feFuncR=a;var l=createNS("feFuncG");l.setAttribute("type","table"),n.appendChild(l),this.feFuncG=l;var h=createNS("feFuncB");h.setAttribute("type","table"),n.appendChild(h),this.feFuncB=h,e.appendChild(n)}SVGTritoneFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v,s=i[0]+" "+r[0]+" "+t[0],n=i[1]+" "+r[1]+" "+t[1],a=i[2]+" "+r[2]+" "+t[2];this.feFuncR.setAttribute("tableValues",s),this.feFuncG.setAttribute("tableValues",n),this.feFuncB.setAttribute("tableValues",a)}};function SVGProLevelsFilter(e,t,r,i){this.filterManager=t;var s=this.filterManager.effectElements,n=createNS("feComponentTransfer");(s[10].p.k||s[10].p.v!==0||s[11].p.k||s[11].p.v!==1||s[12].p.k||s[12].p.v!==1||s[13].p.k||s[13].p.v!==0||s[14].p.k||s[14].p.v!==1)&&(this.feFuncR=this.createFeFunc("feFuncR",n)),(s[17].p.k||s[17].p.v!==0||s[18].p.k||s[18].p.v!==1||s[19].p.k||s[19].p.v!==1||s[20].p.k||s[20].p.v!==0||s[21].p.k||s[21].p.v!==1)&&(this.feFuncG=this.createFeFunc("feFuncG",n)),(s[24].p.k||s[24].p.v!==0||s[25].p.k||s[25].p.v!==1||s[26].p.k||s[26].p.v!==1||s[27].p.k||s[27].p.v!==0||s[28].p.k||s[28].p.v!==1)&&(this.feFuncB=this.createFeFunc("feFuncB",n)),(s[31].p.k||s[31].p.v!==0||s[32].p.k||s[32].p.v!==1||s[33].p.k||s[33].p.v!==1||s[34].p.k||s[34].p.v!==0||s[35].p.k||s[35].p.v!==1)&&(this.feFuncA=this.createFeFunc("feFuncA",n)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(n.setAttribute("color-interpolation-filters","sRGB"),e.appendChild(n)),(s[3].p.k||s[3].p.v!==0||s[4].p.k||s[4].p.v!==1||s[5].p.k||s[5].p.v!==1||s[6].p.k||s[6].p.v!==0||s[7].p.k||s[7].p.v!==1)&&(n=createNS("feComponentTransfer"),n.setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("result",i),e.appendChild(n),this.feFuncRComposed=this.createFeFunc("feFuncR",n),this.feFuncGComposed=this.createFeFunc("feFuncG",n),this.feFuncBComposed=this.createFeFunc("feFuncB",n))}SVGProLevelsFilter.prototype.createFeFunc=function(e,t){var r=createNS(e);return r.setAttribute("type","table"),t.appendChild(r),r},SVGProLevelsFilter.prototype.getTableValue=function(e,t,r,i,s){for(var n=0,a=256,l,h=Math.min(e,t),d=Math.max(e,t),F=Array.call(null,{length:a}),J,y=0,q=s-i,H=t-e;n<=256;)l=n/256,l<=h?J=H<0?s:i:l>=d?J=H<0?i:s:J=i+q*Math.pow((l-e)/H,1/r),F[y]=J,y+=1,n+=256/(a-1);return F.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t,r=this.filterManager.effectElements;this.feFuncRComposed&&(e||r[3].p._mdf||r[4].p._mdf||r[5].p._mdf||r[6].p._mdf||r[7].p._mdf)&&(t=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",t),this.feFuncGComposed.setAttribute("tableValues",t),this.feFuncBComposed.setAttribute("tableValues",t)),this.feFuncR&&(e||r[10].p._mdf||r[11].p._mdf||r[12].p._mdf||r[13].p._mdf||r[14].p._mdf)&&(t=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",t)),this.feFuncG&&(e||r[17].p._mdf||r[18].p._mdf||r[19].p._mdf||r[20].p._mdf||r[21].p._mdf)&&(t=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",t)),this.feFuncB&&(e||r[24].p._mdf||r[25].p._mdf||r[26].p._mdf||r[27].p._mdf||r[28].p._mdf)&&(t=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",t)),this.feFuncA&&(e||r[31].p._mdf||r[32].p._mdf||r[33].p._mdf||r[34].p._mdf||r[35].p._mdf)&&(t=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",t))}};function SVGDropShadowEffect(e,t,r,i,s){var n=t.container.globalData.renderConfig.filterSize,a=t.data.fs||n;e.setAttribute("x",a.x||n.x),e.setAttribute("y",a.y||n.y),e.setAttribute("width",a.width||n.width),e.setAttribute("height",a.height||n.height),this.filterManager=t;var l=createNS("feGaussianBlur");l.setAttribute("in","SourceAlpha"),l.setAttribute("result",i+"_drop_shadow_1"),l.setAttribute("stdDeviation","0"),this.feGaussianBlur=l,e.appendChild(l);var h=createNS("feOffset");h.setAttribute("dx","25"),h.setAttribute("dy","0"),h.setAttribute("in",i+"_drop_shadow_1"),h.setAttribute("result",i+"_drop_shadow_2"),this.feOffset=h,e.appendChild(h);var d=createNS("feFlood");d.setAttribute("flood-color","#00ff00"),d.setAttribute("flood-opacity","1"),d.setAttribute("result",i+"_drop_shadow_3"),this.feFlood=d,e.appendChild(d);var F=createNS("feComposite");F.setAttribute("in",i+"_drop_shadow_3"),F.setAttribute("in2",i+"_drop_shadow_2"),F.setAttribute("operator","in"),F.setAttribute("result",i+"_drop_shadow_4"),e.appendChild(F);var J=this.createMergeNode(i,[i+"_drop_shadow_4",s]);e.appendChild(J)}extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){if((e||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),e||this.filterManager.effectElements[0].p._mdf){var t=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(t[0]*255),Math.round(t[1]*255),Math.round(t[2]*255)))}if((e||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),e||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,s=r*Math.cos(i),n=r*Math.sin(i);this.feOffset.setAttribute("dx",s),this.feOffset.setAttribute("dy",n)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(e,t,r){this.initialized=!1,this.filterManager=t,this.filterElem=e,this.elem=r,r.matteElement=createNS("g"),r.matteElement.appendChild(r.layerElement),r.matteElement.appendChild(r.transformedElement),r.baseElement=r.matteElement}SVGMatte3Effect.prototype.findSymbol=function(e){for(var t=0,r=_svgMatteSymbols.length;t<r;){if(_svgMatteSymbols[t]===e)return _svgMatteSymbols[t];t+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(e,t){var r=e.layerElement.parentNode;if(r){for(var i=r.children,s=0,n=i.length;s<n&&i[s]!==e.layerElement;)s+=1;var a;s<=n-2&&(a=i[s+1]);var l=createNS("use");l.setAttribute("href","#"+t),a?r.insertBefore(l,a):r.appendChild(l)}},SVGMatte3Effect.prototype.setElementAsMask=function(e,t){if(!this.findSymbol(t)){var r=createElementID(),i=createNS("mask");i.setAttribute("id",t.layerId),i.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(t);var s=e.globalData.defs;s.appendChild(i);var n=createNS("symbol");n.setAttribute("id",r),this.replaceInParent(t,r),n.appendChild(t.layerElement),s.appendChild(n);var a=createNS("use");a.setAttribute("href","#"+r),i.appendChild(a),t.data.hd=!1,t.show()}e.setMatte(t.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var e=this.filterManager.effectElements[0].p.v,t=this.elem.comp.elements,r=0,i=t.length;r<i;)t[r]&&t[r].data.ind===e&&this.setElementAsMask(this.elem,t[r]),r+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()};function SVGGaussianBlurEffect(e,t,r,i){e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width","300%"),e.setAttribute("height","300%"),this.filterManager=t;var s=createNS("feGaussianBlur");s.setAttribute("result",i),e.appendChild(s),this.feGaussianBlur=s}SVGGaussianBlurEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=.3,r=this.filterManager.effectElements[0].p.v*t,i=this.filterManager.effectElements[1].p.v,s=i==3?0:r,n=i==2?0:r;this.feGaussianBlur.setAttribute("stdDeviation",s+" "+n);var a=this.filterManager.effectElements[2].p.v==1?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",a)}};function TransformEffect(){}TransformEffect.prototype.init=function(e){this.effectsManager=e,this.type=effectTypes.TRANSFORM_EFFECT,this.matrix=new Matrix,this.opacity=-1,this._mdf=!1,this._opMdf=!1},TransformEffect.prototype.renderFrame=function(e){if(this._opMdf=!1,this._mdf=!1,e||this.effectsManager._mdf){var t=this.effectsManager.effectElements,r=t[0].p.v,i=t[1].p.v,s=t[2].p.v===1,n=t[3].p.v,a=s?n:t[4].p.v,l=t[5].p.v,h=t[6].p.v,d=t[7].p.v;this.matrix.reset(),this.matrix.translate(-r[0],-r[1],r[2]),this.matrix.scale(a*.01,n*.01,1),this.matrix.rotate(-d*degToRads),this.matrix.skewFromAxis(-l*degToRads,(h+90)*degToRads),this.matrix.translate(i[0],i[1],0),this._mdf=!0,this.opacity!==t[8].p.v&&(this.opacity=t[8].p.v,this._opMdf=!0)}};function SVGTransformEffect(e,t){this.init(t)}extendPrototype([TransformEffect],SVGTransformEffect);function CVTransformEffect(e){this.init(e)}return extendPrototype([TransformEffect],CVTransformEffect),registerRenderer("canvas",CanvasRenderer),registerRenderer("html",HybridRenderer),registerRenderer("svg",SVGRenderer),ShapeModifiers.registerModifier("tm",TrimModifier),ShapeModifiers.registerModifier("pb",PuckerAndBloatModifier),ShapeModifiers.registerModifier("rp",RepeaterModifier),ShapeModifiers.registerModifier("rd",RoundCornersModifier),ShapeModifiers.registerModifier("zz",ZigZagModifier),ShapeModifiers.registerModifier("op",OffsetPathModifier),setExpressionsPlugin(Expressions),setExpressionInterfaces(getInterface),initialize$1(),initialize(),registerEffect$1(20,SVGTintFilter,!0),registerEffect$1(21,SVGFillFilter,!0),registerEffect$1(22,SVGStrokeEffect,!1),registerEffect$1(23,SVGTritoneFilter,!0),registerEffect$1(24,SVGProLevelsFilter,!0),registerEffect$1(25,SVGDropShadowEffect,!0),registerEffect$1(28,SVGMatte3Effect,!1),registerEffect$1(29,SVGGaussianBlurEffect,!0),registerEffect$1(35,SVGTransformEffect,!1),registerEffect(35,CVTransformEffect),lottie}))})(lottie$2,lottie$2.exports)),lottie$2.exports}var lottieExports=requireLottie();const lottie=getDefaultExportFromCjs(lottieExports);function _arrayLikeToArray(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,i=Array(t);r<t;r++)i[r]=e[r];return i}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _iterableToArrayLimit(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var i,s,n,a,l=[],h=!0,d=!1;try{if(n=(r=r.call(e)).next,t!==0)for(;!(h=(i=n.call(r)).done)&&(l.push(i.value),l.length!==t);h=!0);}catch(F){d=!0,s=F}finally{try{if(!h&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(d)throw s}}return l}}function _nonIterableRest(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3
3
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),r.push.apply(r,i)}return r}function _objectSpread2(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(i){_defineProperty(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function _objectWithoutProperties(e,t){if(e==null)return{};var r,i,s=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(i=0;i<n.length;i++)r=n[i],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(s[r]=e[r])}return s}function _objectWithoutPropertiesLoose(e,t){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.includes(i))continue;r[i]=e[i]}return r}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _toPrimitive(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _toPropertyKey(e){var t=_toPrimitive(e,"string");return typeof t=="symbol"?t:t+""}function _unsupportedIterableToArray(e,t){if(e){if(typeof e=="string")return _arrayLikeToArray(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}var _excluded$1=["animationData","loop","autoplay","initialSegment","onComplete","onLoopComplete","onEnterFrame","onSegmentStart","onConfigReady","onDataReady","onDataFailed","onLoadedImages","onDOMLoaded","onDestroy","lottieRef","renderer","name","assetsPath","rendererSettings"],useLottie=function e(t,r){var i=t.animationData,s=t.loop,n=t.autoplay,a=t.initialSegment,l=t.onComplete,h=t.onLoopComplete,d=t.onEnterFrame,F=t.onSegmentStart,J=t.onConfigReady,y=t.onDataReady,q=t.onDataFailed,H=t.onLoadedImages,G=t.onDOMLoaded,te=t.onDestroy;t.lottieRef,t.renderer,t.name,t.assetsPath,t.rendererSettings;var j=_objectWithoutProperties(t,_excluded$1),Z=React.useState(!1),M=_slicedToArray(Z,2),V=M[0],Q=M[1],ee=React.useRef(),ie=React.useRef(null),ae=function(){var ce;(ce=ee.current)===null||ce===void 0||ce.play()},le=function(){var ce;(ce=ee.current)===null||ce===void 0||ce.stop()},ye=function(){var ce;(ce=ee.current)===null||ce===void 0||ce.pause()},ue=function(ce){var pe;(pe=ee.current)===null||pe===void 0||pe.setSpeed(ce)},fe=function(ce,pe){var de;(de=ee.current)===null||de===void 0||de.goToAndPlay(ce,pe)},me=function(ce,pe){var de;(de=ee.current)===null||de===void 0||de.goToAndStop(ce,pe)},ve=function(ce){var pe;(pe=ee.current)===null||pe===void 0||pe.setDirection(ce)},he=function(ce,pe){var de;(de=ee.current)===null||de===void 0||de.playSegments(ce,pe)},re=function(ce){var pe;(pe=ee.current)===null||pe===void 0||pe.setSubframe(ce)},se=function(ce){var pe;return(pe=ee.current)===null||pe===void 0?void 0:pe.getDuration(ce)},W=function(){var ce;(ce=ee.current)===null||ce===void 0||ce.destroy(),ee.current=void 0},K=function(){var ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},pe;if(ie.current){(pe=ee.current)===null||pe===void 0||pe.destroy();var de=_objectSpread2(_objectSpread2(_objectSpread2({},t),ce),{},{container:ie.current});return ee.current=lottie.loadAnimation(de),Q(!!ee.current),function(){var xe;(xe=ee.current)===null||xe===void 0||xe.destroy(),ee.current=void 0}}};React.useEffect(function(){var ne=K();return function(){return ne?.()}},[i,s]),React.useEffect(function(){ee.current&&(ee.current.autoplay=!!n)},[n]),React.useEffect(function(){if(ee.current){if(!a){ee.current.resetSegments(!0);return}!Array.isArray(a)||!a.length||((ee.current.currentRawFrame<a[0]||ee.current.currentRawFrame>a[1])&&(ee.current.currentRawFrame=a[0]),ee.current.setSegment(a[0],a[1]))}},[a]),React.useEffect(function(){var ne=[{name:"complete",handler:l},{name:"loopComplete",handler:h},{name:"enterFrame",handler:d},{name:"segmentStart",handler:F},{name:"config_ready",handler:J},{name:"data_ready",handler:y},{name:"data_failed",handler:q},{name:"loaded_images",handler:H},{name:"DOMLoaded",handler:G},{name:"destroy",handler:te}],ce=ne.filter(function(de){return de.handler!=null});if(ce.length){var pe=ce.map(function(de){var xe;return(xe=ee.current)===null||xe===void 0||xe.addEventListener(de.name,de.handler),function(){var be;(be=ee.current)===null||be===void 0||be.removeEventListener(de.name,de.handler)}});return function(){pe.forEach(function(de){return de()})}}},[l,h,d,F,J,y,q,H,G,te]);var oe=React.createElement("div",_objectSpread2({style:r,ref:ie},j));return{View:oe,play:ae,stop:le,pause:ye,setSpeed:ue,goToAndStop:me,goToAndPlay:fe,setDirection:ve,playSegments:he,setSubframe:re,getDuration:se,destroy:W,animationContainerRef:ie,animationLoaded:V,animationItem:ee.current}};function getContainerVisibility(e){var t=e.getBoundingClientRect(),r=t.top,i=t.height,s=window.innerHeight-r,n=window.innerHeight+i;return s/n}function getContainerCursorPosition(e,t,r){var i=e.getBoundingClientRect(),s=i.top,n=i.left,a=i.width,l=i.height,h=(t-n)/a,d=(r-s)/l;return{x:h,y:d}}var useInitInteractivity=function e(t){var r=t.wrapperRef,i=t.animationItem,s=t.mode,n=t.actions;React.useEffect(function(){var a=r.current;if(!(!a||!i||!n.length)){i.stop();var l=function(){var F=null,J=function(){var q=getContainerVisibility(a),H=n.find(function(te){var j=te.visibility;return j&&q>=j[0]&&q<=j[1]});if(H){if(H.type==="seek"&&H.visibility&&H.frames.length===2){var G=H.frames[0]+Math.ceil((q-H.visibility[0])/(H.visibility[1]-H.visibility[0])*H.frames[1]);i.goToAndStop(G-i.firstFrame-1,!0)}H.type==="loop"&&(F===null||F!==H.frames||i.isPaused)&&(i.playSegments(H.frames,!0),F=H.frames),H.type==="play"&&i.isPaused&&(i.resetSegments(!0),i.play()),H.type==="stop"&&i.goToAndStop(H.frames[0]-i.firstFrame-1,!0)}};return document.addEventListener("scroll",J),function(){document.removeEventListener("scroll",J)}},h=function(){var F=function(H,G){var te=H,j=G;if(te!==-1&&j!==-1){var Z=getContainerCursorPosition(a,te,j);te=Z.x,j=Z.y}var M=n.find(function(ee){var ie=ee.position;return ie&&Array.isArray(ie.x)&&Array.isArray(ie.y)?te>=ie.x[0]&&te<=ie.x[1]&&j>=ie.y[0]&&j<=ie.y[1]:ie&&!Number.isNaN(ie.x)&&!Number.isNaN(ie.y)?te===ie.x&&j===ie.y:!1});if(M){if(M.type==="seek"&&M.position&&Array.isArray(M.position.x)&&Array.isArray(M.position.y)&&M.frames.length===2){var V=(te-M.position.x[0])/(M.position.x[1]-M.position.x[0]),Q=(j-M.position.y[0])/(M.position.y[1]-M.position.y[0]);i.playSegments(M.frames,!0),i.goToAndStop(Math.ceil((V+Q)/2*(M.frames[1]-M.frames[0])),!0)}M.type==="loop"&&i.playSegments(M.frames,!0),M.type==="play"&&(i.isPaused&&i.resetSegments(!1),i.playSegments(M.frames)),M.type==="stop"&&i.goToAndStop(M.frames[0],!0)}},J=function(H){F(H.clientX,H.clientY)},y=function(){F(-1,-1)};return a.addEventListener("mousemove",J),a.addEventListener("mouseout",y),function(){a.removeEventListener("mousemove",J),a.removeEventListener("mouseout",y)}};switch(s){case"scroll":return l();case"cursor":return h()}}},[s,i])},useLottieInteractivity=function e(t){var r=t.actions,i=t.mode,s=t.lottieObj,n=s.animationItem,a=s.View,l=s.animationContainerRef;return useInitInteractivity({actions:r,animationItem:n,mode:i,wrapperRef:l}),a},_excluded=["style","interactivity"],Lottie=function e(t){var r,i,s,n=t.style,a=t.interactivity,l=_objectWithoutProperties(t,_excluded),h=useLottie(l,n),d=h.View,F=h.play,J=h.stop,y=h.pause,q=h.setSpeed,H=h.goToAndStop,G=h.goToAndPlay,te=h.setDirection,j=h.playSegments,Z=h.setSubframe,M=h.getDuration,V=h.destroy,Q=h.animationContainerRef,ee=h.animationLoaded,ie=h.animationItem;return React.useEffect(function(){t.lottieRef&&(t.lottieRef.current={play:F,stop:J,pause:y,setSpeed:q,goToAndPlay:G,goToAndStop:H,setDirection:te,playSegments:j,setSubframe:Z,getDuration:M,destroy:V,animationContainerRef:Q,animationLoaded:ee,animationItem:ie})},[(r=t.lottieRef)===null||r===void 0?void 0:r.current]),useLottieInteractivity({lottieObj:{View:d,play:F,stop:J,pause:y,setSpeed:q,goToAndStop:H,goToAndPlay:G,setDirection:te,playSegments:j,setSubframe:Z,getDuration:M,destroy:V,animationContainerRef:Q,animationLoaded:ee,animationItem:ie},actions:(i=a?.actions)!==null&&i!==void 0?i:[],mode:(s=a?.mode)!==null&&s!==void 0?s:"scroll"})};const NotFoundState=({lottieJson:e,title:t,description:r,actionLabel:i,onAction:s,fallbackIcon:n})=>jsxRuntime.jsxs("div",{className:"flex h-[60vh] w-full flex-col items-center justify-center text-center",children:[e?jsxRuntime.jsx("div",{className:"mt-20 mb-4 w-1/2",children:jsxRuntime.jsx(Lottie,{animationData:e,loop:!0})}):n&&jsxRuntime.jsx("div",{className:"mb-4 text-gray-400",children:n}),jsxRuntime.jsx("h2",{className:"mb-2 text-lg font-semibold text-gray-700",children:t}),r&&jsxRuntime.jsx("p",{className:"mb-6 max-w-md text-sm text-gray-500",children:r}),i&&s&&jsxRuntime.jsx(Button,{onClick:s,children:i})]}),Select=SelectPrimitive__namespace.Root,SelectValue=SelectPrimitive__namespace.Value,SelectTrigger=React__namespace.forwardRef(({className:e,hasError:t,...r},i)=>jsxRuntime.jsxs(SelectPrimitive__namespace.Trigger,{ref:i,className:cn("oniratec-select__trigger",t&&"oniratec-select__trigger--error",e),...r,children:[jsxRuntime.jsx(SelectPrimitive__namespace.Value,{placeholder:"Seleccionar"}),jsxRuntime.jsx(SelectPrimitive__namespace.Icon,{children:jsxRuntime.jsx(lucideReact.ChevronDown,{className:"oniratec-select__chevron"})})]}));SelectTrigger.displayName="SelectTrigger";const SelectContent=React__namespace.forwardRef(({className:e,children:t,...r},i)=>jsxRuntime.jsx(SelectPrimitive__namespace.Portal,{children:jsxRuntime.jsx(SelectPrimitive__namespace.Content,{ref:i,className:cn("oniratec-select",e),...r,children:jsxRuntime.jsx(SelectPrimitive__namespace.Viewport,{className:"oniratec-select__viewport",children:t})})}));SelectContent.displayName="SelectContent";const SelectItem=React__namespace.forwardRef(({className:e,children:t,...r},i)=>jsxRuntime.jsxs(SelectPrimitive__namespace.Item,{ref:i,className:cn("oniratec-select__item",e),...r,children:[jsxRuntime.jsx(SelectPrimitive__namespace.ItemText,{children:t}),jsxRuntime.jsx(SelectPrimitive__namespace.ItemIndicator,{className:"oniratec-select__indicator",children:jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})})]}));SelectItem.displayName="SelectItem";function Skeleton({className:e}){return jsxRuntime.jsx("div",{className:cn("animate-pulse rounded-md bg-gray-200 dark:bg-gray-200",e)})}const Toggle=({checked:e,defaultChecked:t=!1,onChange:r,size:i="md",disabled:s=!1,label:n,className:a,ariaLabel:l})=>{const h=e!==void 0,[d,F]=React.useState(t),J=h?e:d,y=q=>{h||F(q),r?.(q)};return jsxRuntime.jsxs("label",{className:cn("oniratec-toggle",a),"data-size":i,"data-checked":J?"true":"false","data-disabled":s?"true":void 0,children:[jsxRuntime.jsx("input",{type:"checkbox",className:"oniratec-toggle__input",checked:J,disabled:s,"aria-label":l,onChange:q=>y(q.target.checked)}),jsxRuntime.jsx("span",{className:"oniratec-toggle__track",children:jsxRuntime.jsx("span",{className:"oniratec-toggle__thumb"})}),n&&jsxRuntime.jsx("span",{className:"oniratec-toggle__label",children:n})]})},TooltipProvider=TooltipPrimitive__namespace.Provider,Tooltip=TooltipPrimitive__namespace.Root,TooltipTrigger=TooltipPrimitive__namespace.Trigger,TooltipContent=React.forwardRef(({className:e,sideOffset:t=8,children:r,...i},s)=>jsxRuntime.jsx(TooltipPrimitive__namespace.Portal,{children:jsxRuntime.jsxs(TooltipPrimitive__namespace.Content,{ref:s,sideOffset:t,className:cn("oniratec-tooltip",e),...i,children:[r,jsxRuntime.jsx(TooltipPrimitive__namespace.Arrow,{className:"oniratec-tooltip__arrow"})]})}));TooltipContent.displayName="TooltipContent";function DataTable({columns:e,data:t}){return jsxRuntime.jsx("div",{className:"overflow-hidden rounded-xl border border-slate-200 bg-white",children:jsxRuntime.jsxs("table",{className:"w-full border-collapse",children:[jsxRuntime.jsx("thead",{className:"bg-slate-50",children:jsxRuntime.jsx("tr",{className:"border-b border-slate-200",children:e.map(r=>jsxRuntime.jsx("th",{className:cn("px-4 py-3 text-left text-xs font-semibold tracking-wide text-slate-500 uppercase",r.className),children:r.header},r.key))})}),jsxRuntime.jsx("tbody",{className:"divide-y divide-slate-100",children:t.map((r,i)=>jsxRuntime.jsx("tr",{className:"transition-colors hover:bg-slate-50",children:e.map(s=>jsxRuntime.jsx("td",{className:cn("px-4 py-3 text-sm text-slate-700",s.className),children:s.render(r)},s.key))},i))})]})})}const DEFAULT_PAGE_SIZES=[5,10,25,50],PageSizeSelector=({value:e,onChange:t,options:r=DEFAULT_PAGE_SIZES})=>jsxRuntime.jsxs("div",{className:"flex items-center gap-2",children:[jsxRuntime.jsx("span",{children:"Mostrar"}),jsxRuntime.jsxs(Select,{value:e.toString(),onValueChange:i=>{t(parseInt(i))},children:[jsxRuntime.jsx(SelectTrigger,{children:jsxRuntime.jsx(SelectValue,{})}),jsxRuntime.jsx(SelectContent,{children:(r??[]).map(i=>jsxRuntime.jsx(SelectItem,{value:i.toString(),children:String(i)},i))})]}),jsxRuntime.jsx("span",{children:"por página"})]}),Pagination=({page:e,pageSize:t,total:r,onPageChange:i,onPageSizeChange:s})=>{const n=Math.ceil(r/t);if(n<=1&&r<=t)return null;const a=e+1;return jsxRuntime.jsxs("div",{className:"mt-4 flex flex-wrap items-center justify-between gap-4 text-sm text-slate-600",children:[jsxRuntime.jsxs("span",{children:["Página ",a," de ",n]}),jsxRuntime.jsx(PageSizeSelector,{value:t,onChange:s}),jsxRuntime.jsxs("div",{className:"flex gap-2",children:[jsxRuntime.jsx("button",{disabled:e===0,onClick:()=>i(e-1),className:"rounded-md border px-3 py-1 disabled:opacity-50",children:"Anterior"}),jsxRuntime.jsx("button",{disabled:e+1>=n,onClick:()=>i(e+1),className:"rounded-md border px-3 py-1 disabled:opacity-50",children:"Siguiente"})]})]})},brand={light:"#148103",dark:"#0f6a02"},fill={primary:{light:"#fefefe",dark:"#0f172a"},secondary:{light:"#0f172a",dark:"#e0e0e0"},disabled:{light:"#e0e0e0",dark:"#394258"}},label={primary:{light:"#0f172a",dark:"#fefefe"},secondary:{light:"#384258",dark:"#f2f2f2"},disabled:{light:"#bdbdbd",dark:"#bdbdbd"}},border={primary:{light:"#e0e0e0",dark:"#394258"},secondary:{light:"#0f172a",dark:"#e0e0e0"},disabled:{light:"#ececec",dark:"#394258"}},functional={focus:{light:"#1982fc",dark:"#1982fc"},error:{light:"#d13a3a",dark:"#d13a3a"}},shadows={card:{sm:"0px 0.5px 12px -5px rgba(30,41,59,0.20)",md:"0px 1px 25px -10px rgba(30,41,59,0.30)",lg:"0px 2px 51px -19px rgba(30,41,59,0.40)",xl:"0px 20px 25px -5px rgba(0,0,0,0.10), 0px 10px 10px -5px rgba(0,0,0,0.04)"}};function createTheme(e){return{mode:e,colors:{brand:brand[e],fill:{primary:fill.primary[e],secondary:fill.secondary[e],disabled:fill.disabled[e]},label:{primary:label.primary[e],secondary:label.secondary[e],disabled:label.disabled[e]},border:{primary:border.primary[e],secondary:border.secondary[e],disabled:border.disabled[e]},focus:functional.focus[e],error:functional.error[e]},shadows:{card:{sm:shadows.card.sm,md:shadows.card.md,lg:shadows.card.lg,xl:shadows.card.xl}}}}const lightTheme=createTheme("light"),darkTheme=createTheme("dark"),defaultTheme=lightTheme;function $constructor(e,t,r){function i(l,h){if(l._zod||Object.defineProperty(l,"_zod",{value:{def:h,constr:a,traits:new Set},enumerable:!1}),l._zod.traits.has(e))return;l._zod.traits.add(e),t(l,h);const d=a.prototype,F=Object.keys(d);for(let J=0;J<F.length;J++){const y=F[J];y in l||(l[y]=d[y].bind(l))}}const s=r?.Parent??Object;class n extends s{}Object.defineProperty(n,"name",{value:e});function a(l){var h;const d=r?.Parent?new n:this;i(d,l),(h=d._zod).deferred??(h.deferred=[]);for(const F of d._zod.deferred)F();return d}return Object.defineProperty(a,"init",{value:i}),Object.defineProperty(a,Symbol.hasInstance,{value:l=>r?.Parent&&l instanceof r.Parent?!0:l?._zod?.traits?.has(e)}),Object.defineProperty(a,"name",{value:e}),a}class $ZodAsyncError extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class $ZodEncodeError extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const globalConfig={};function config(e){return globalConfig}function getEnumValues(e){const t=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,s])=>t.indexOf(+i)===-1).map(([i,s])=>s)}function jsonStringifyReplacer(e,t){return typeof t=="bigint"?t.toString():t}function cached(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function nullish(e){return e==null}function cleanRegex(e){const t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}const EVALUATING=Symbol("evaluating");function defineLazy(e,t,r){let i;Object.defineProperty(e,t,{get(){if(i!==EVALUATING)return i===void 0&&(i=EVALUATING,i=r()),i},set(s){Object.defineProperty(e,t,{value:s})},configurable:!0})}function assignProp(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}function mergeDefs(...e){const t={};for(const r of e){const i=Object.getOwnPropertyDescriptors(r);Object.assign(t,i)}return Object.defineProperties({},t)}function esc(e){return JSON.stringify(e)}const captureStackTrace="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function isObject$1(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const allowsEval=cached(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function isPlainObject$1(e){if(isObject$1(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const r=t.prototype;return!(isObject$1(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}function shallowClone(e){return isPlainObject$1(e)?{...e}:Array.isArray(e)?[...e]:e}const propertyKeyTypes=new Set(["string","number","symbol"]);function escapeRegex(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function clone(e,t,r){const i=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(i._zod.parent=e),i}function normalizeParams(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function optionalKeys(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}function pick(e,t){const r=e._zod.def,i=r.checks;if(i&&i.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");const n=mergeDefs(e._zod.def,{get shape(){const a={};for(const l in t){if(!(l in r.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&(a[l]=r.shape[l])}return assignProp(this,"shape",a),a},checks:[]});return clone(e,n)}function omit(e,t){const r=e._zod.def,i=r.checks;if(i&&i.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");const n=mergeDefs(e._zod.def,{get shape(){const a={...e._zod.def.shape};for(const l in t){if(!(l in r.shape))throw new Error(`Unrecognized key: "${l}"`);t[l]&&delete a[l]}return assignProp(this,"shape",a),a},checks:[]});return clone(e,n)}function extend(e,t){if(!isPlainObject$1(t))throw new Error("Invalid input to extend: expected a plain object");const r=e._zod.def.checks;if(r&&r.length>0){const n=e._zod.def.shape;for(const a in t)if(Object.getOwnPropertyDescriptor(n,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}const s=mergeDefs(e._zod.def,{get shape(){const n={...e._zod.def.shape,...t};return assignProp(this,"shape",n),n}});return clone(e,s)}function safeExtend(e,t){if(!isPlainObject$1(t))throw new Error("Invalid input to safeExtend: expected a plain object");const r=mergeDefs(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t};return assignProp(this,"shape",i),i}});return clone(e,r)}function merge(e,t){const r=mergeDefs(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t._zod.def.shape};return assignProp(this,"shape",i),i},get catchall(){return t._zod.def.catchall},checks:[]});return clone(e,r)}function partial(e,t,r){const s=t._zod.def.checks;if(s&&s.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");const a=mergeDefs(t._zod.def,{get shape(){const l=t._zod.def.shape,h={...l};if(r)for(const d in r){if(!(d in l))throw new Error(`Unrecognized key: "${d}"`);r[d]&&(h[d]=e?new e({type:"optional",innerType:l[d]}):l[d])}else for(const d in l)h[d]=e?new e({type:"optional",innerType:l[d]}):l[d];return assignProp(this,"shape",h),h},checks:[]});return clone(t,a)}function required(e,t,r){const i=mergeDefs(t._zod.def,{get shape(){const s=t._zod.def.shape,n={...s};if(r)for(const a in r){if(!(a in n))throw new Error(`Unrecognized key: "${a}"`);r[a]&&(n[a]=new e({type:"nonoptional",innerType:s[a]}))}else for(const a in s)n[a]=new e({type:"nonoptional",innerType:s[a]});return assignProp(this,"shape",n),n}});return clone(t,i)}function aborted(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}function prefixIssues(e,t){return t.map(r=>{var i;return(i=r).path??(i.path=[]),r.path.unshift(e),r})}function unwrapMessage(e){return typeof e=="string"?e:e?.message}function finalizeIssue(e,t,r){const i={...e,path:e.path??[]};if(!e.message){const s=unwrapMessage(e.inst?._zod.def?.error?.(e))??unwrapMessage(t?.error?.(e))??unwrapMessage(r.customError?.(e))??unwrapMessage(r.localeError?.(e))??"Invalid input";i.message=s}return delete i.inst,delete i.continue,t?.reportInput||delete i.input,i}function getLengthableOrigin(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function issue(...e){const[t,r,i]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:i}:{...t}}const initializer$1=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,jsonStringifyReplacer,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},$ZodError=$constructor("$ZodError",initializer$1),$ZodRealError=$constructor("$ZodError",initializer$1,{Parent:Error});function flattenError(e,t=r=>r.message){const r={},i=[];for(const s of e.issues)s.path.length>0?(r[s.path[0]]=r[s.path[0]]||[],r[s.path[0]].push(t(s))):i.push(t(s));return{formErrors:i,fieldErrors:r}}function formatError(e,t=r=>r.message){const r={_errors:[]},i=s=>{for(const n of s.issues)if(n.code==="invalid_union"&&n.errors.length)n.errors.map(a=>i({issues:a}));else if(n.code==="invalid_key")i({issues:n.issues});else if(n.code==="invalid_element")i({issues:n.issues});else if(n.path.length===0)r._errors.push(t(n));else{let a=r,l=0;for(;l<n.path.length;){const h=n.path[l];l===n.path.length-1?(a[h]=a[h]||{_errors:[]},a[h]._errors.push(t(n))):a[h]=a[h]||{_errors:[]},a=a[h],l++}}};return i(e),r}const _parse=e=>(t,r,i,s)=>{const n=i?Object.assign(i,{async:!1}):{async:!1},a=t._zod.run({value:r,issues:[]},n);if(a instanceof Promise)throw new $ZodAsyncError;if(a.issues.length){const l=new(s?.Err??e)(a.issues.map(h=>finalizeIssue(h,n,config())));throw captureStackTrace(l,s?.callee),l}return a.value},_parseAsync=e=>async(t,r,i,s)=>{const n=i?Object.assign(i,{async:!0}):{async:!0};let a=t._zod.run({value:r,issues:[]},n);if(a instanceof Promise&&(a=await a),a.issues.length){const l=new(s?.Err??e)(a.issues.map(h=>finalizeIssue(h,n,config())));throw captureStackTrace(l,s?.callee),l}return a.value},_safeParse=e=>(t,r,i)=>{const s=i?{...i,async:!1}:{async:!1},n=t._zod.run({value:r,issues:[]},s);if(n instanceof Promise)throw new $ZodAsyncError;return n.issues.length?{success:!1,error:new(e??$ZodError)(n.issues.map(a=>finalizeIssue(a,s,config())))}:{success:!0,data:n.value}},safeParse$1=_safeParse($ZodRealError),_safeParseAsync=e=>async(t,r,i)=>{const s=i?Object.assign(i,{async:!0}):{async:!0};let n=t._zod.run({value:r,issues:[]},s);return n instanceof Promise&&(n=await n),n.issues.length?{success:!1,error:new e(n.issues.map(a=>finalizeIssue(a,s,config())))}:{success:!0,data:n.value}},safeParseAsync$1=_safeParseAsync($ZodRealError),_encode=e=>(t,r,i)=>{const s=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return _parse(e)(t,r,s)},_decode=e=>(t,r,i)=>_parse(e)(t,r,i),_encodeAsync=e=>async(t,r,i)=>{const s=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return _parseAsync(e)(t,r,s)},_decodeAsync=e=>async(t,r,i)=>_parseAsync(e)(t,r,i),_safeEncode=e=>(t,r,i)=>{const s=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return _safeParse(e)(t,r,s)},_safeDecode=e=>(t,r,i)=>_safeParse(e)(t,r,i),_safeEncodeAsync=e=>async(t,r,i)=>{const s=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return _safeParseAsync(e)(t,r,s)},_safeDecodeAsync=e=>async(t,r,i)=>_safeParseAsync(e)(t,r,i),$ZodCheck=$constructor("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),$ZodCheckMaxLength=$constructor("$ZodCheckMaxLength",(e,t)=>{var r;$ZodCheck.init(e,t),(r=e._zod.def).when??(r.when=i=>{const s=i.value;return!nullish(s)&&s.length!==void 0}),e._zod.onattach.push(i=>{const s=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<s&&(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=>{const s=i.value;if(s.length<=t.maximum)return;const a=getLengthableOrigin(s);i.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:s,inst:e,continue:!t.abort})}}),$ZodCheckMinLength=$constructor("$ZodCheckMinLength",(e,t)=>{var r;$ZodCheck.init(e,t),(r=e._zod.def).when??(r.when=i=>{const s=i.value;return!nullish(s)&&s.length!==void 0}),e._zod.onattach.push(i=>{const s=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>s&&(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{const s=i.value;if(s.length>=t.minimum)return;const a=getLengthableOrigin(s);i.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:s,inst:e,continue:!t.abort})}}),$ZodCheckLengthEquals=$constructor("$ZodCheckLengthEquals",(e,t)=>{var r;$ZodCheck.init(e,t),(r=e._zod.def).when??(r.when=i=>{const s=i.value;return!nullish(s)&&s.length!==void 0}),e._zod.onattach.push(i=>{const s=i._zod.bag;s.minimum=t.length,s.maximum=t.length,s.length=t.length}),e._zod.check=i=>{const s=i.value,n=s.length;if(n===t.length)return;const a=getLengthableOrigin(s),l=n>t.length;i.issues.push({origin:a,...l?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),$ZodCheckOverwrite=$constructor("$ZodCheckOverwrite",(e,t)=>{$ZodCheck.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});class Doc{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const i=t.split(`
4
4
  `).filter(a=>a),s=Math.min(...i.map(a=>a.length-a.trimStart().length)),n=i.map(a=>a.slice(s)).map(a=>" ".repeat(this.indent*2)+a);for(const a of n)this.content.push(a)}compile(){const t=Function,r=this?.args,s=[...(this?.content??[""]).map(n=>` ${n}`)];return new t(...r,s.join(`
@@ -38,5 +38,5 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
38
38
 
39
39
  `)}q.write("payload.value = newResult;"),q.write("return payload;");const Z=q.compile();return(M,V)=>Z(y,M,V)};let n;const a=isObject$1,l=!globalConfig.jitless,d=l&&allowsEval.value,F=t.catchall;let J;e._zod.parse=(y,q)=>{J??(J=i.value);const H=y.value;return a(H)?l&&d&&q?.async===!1&&q.jitless!==!0?(n||(n=s(t.shape)),y=n(y,q),F?handleCatchall([],H,y,q,J,e):y):r(y,q):(y.issues.push({expected:"object",code:"invalid_type",input:H,inst:e}),y)}});function handleUnionResults(e,t,r,i){for(const n of e)if(n.issues.length===0)return t.value=n.value,t;const s=e.filter(n=>!aborted(n));return s.length===1?(t.value=s[0].value,s[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(n=>n.issues.map(a=>finalizeIssue(a,i,config())))}),t)}const $ZodUnion=$constructor("$ZodUnion",(e,t)=>{$ZodType.init(e,t),defineLazy(e._zod,"optin",()=>t.options.some(s=>s._zod.optin==="optional")?"optional":void 0),defineLazy(e._zod,"optout",()=>t.options.some(s=>s._zod.optout==="optional")?"optional":void 0),defineLazy(e._zod,"values",()=>{if(t.options.every(s=>s._zod.values))return new Set(t.options.flatMap(s=>Array.from(s._zod.values)))}),defineLazy(e._zod,"pattern",()=>{if(t.options.every(s=>s._zod.pattern)){const s=t.options.map(n=>n._zod.pattern);return new RegExp(`^(${s.map(n=>cleanRegex(n.source)).join("|")})$`)}});const r=t.options.length===1,i=t.options[0]._zod.run;e._zod.parse=(s,n)=>{if(r)return i(s,n);let a=!1;const l=[];for(const h of t.options){const d=h._zod.run({value:s.value,issues:[]},n);if(d instanceof Promise)l.push(d),a=!0;else{if(d.issues.length===0)return d;l.push(d)}}return a?Promise.all(l).then(h=>handleUnionResults(h,s,e,n)):handleUnionResults(l,s,e,n)}}),$ZodIntersection=$constructor("$ZodIntersection",(e,t)=>{$ZodType.init(e,t),e._zod.parse=(r,i)=>{const s=r.value,n=t.left._zod.run({value:s,issues:[]},i),a=t.right._zod.run({value:s,issues:[]},i);return n instanceof Promise||a instanceof Promise?Promise.all([n,a]).then(([h,d])=>handleIntersectionResults(r,h,d)):handleIntersectionResults(r,n,a)}});function mergeValues(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(isPlainObject$1(e)&&isPlainObject$1(t)){const r=Object.keys(t),i=Object.keys(e).filter(n=>r.indexOf(n)!==-1),s={...e,...t};for(const n of i){const a=mergeValues(e[n],t[n]);if(!a.valid)return{valid:!1,mergeErrorPath:[n,...a.mergeErrorPath]};s[n]=a.data}return{valid:!0,data:s}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const r=[];for(let i=0;i<e.length;i++){const s=e[i],n=t[i],a=mergeValues(s,n);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};r.push(a.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}function handleIntersectionResults(e,t,r){const i=new Map;let s;for(const l of t.issues)if(l.code==="unrecognized_keys"){s??(s=l);for(const h of l.keys)i.has(h)||i.set(h,{}),i.get(h).l=!0}else e.issues.push(l);for(const l of r.issues)if(l.code==="unrecognized_keys")for(const h of l.keys)i.has(h)||i.set(h,{}),i.get(h).r=!0;else e.issues.push(l);const n=[...i].filter(([,l])=>l.l&&l.r).map(([l])=>l);if(n.length&&s&&e.issues.push({...s,keys:n}),aborted(e))return e;const a=mergeValues(t.value,r.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}const $ZodEnum=$constructor("$ZodEnum",(e,t)=>{$ZodType.init(e,t);const r=getEnumValues(t.entries),i=new Set(r);e._zod.values=i,e._zod.pattern=new RegExp(`^(${r.filter(s=>propertyKeyTypes.has(typeof s)).map(s=>typeof s=="string"?escapeRegex(s):s.toString()).join("|")})$`),e._zod.parse=(s,n)=>{const a=s.value;return i.has(a)||s.issues.push({code:"invalid_value",values:r,input:a,inst:e}),s}}),$ZodTransform=$constructor("$ZodTransform",(e,t)=>{$ZodType.init(e,t),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new $ZodEncodeError(e.constructor.name);const s=t.transform(r.value,r);if(i.async)return(s instanceof Promise?s:Promise.resolve(s)).then(a=>(r.value=a,r));if(s instanceof Promise)throw new $ZodAsyncError;return r.value=s,r}});function handleOptionalResult(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const $ZodOptional=$constructor("$ZodOptional",(e,t)=>{$ZodType.init(e,t),e._zod.optin="optional",e._zod.optout="optional",defineLazy(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),defineLazy(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${cleanRegex(r.source)})?$`):void 0}),e._zod.parse=(r,i)=>{if(t.innerType._zod.optin==="optional"){const s=t.innerType._zod.run(r,i);return s instanceof Promise?s.then(n=>handleOptionalResult(n,r.value)):handleOptionalResult(s,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,i)}}),$ZodExactOptional=$constructor("$ZodExactOptional",(e,t)=>{$ZodOptional.init(e,t),defineLazy(e._zod,"values",()=>t.innerType._zod.values),defineLazy(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(r,i)=>t.innerType._zod.run(r,i)}),$ZodNullable=$constructor("$ZodNullable",(e,t)=>{$ZodType.init(e,t),defineLazy(e._zod,"optin",()=>t.innerType._zod.optin),defineLazy(e._zod,"optout",()=>t.innerType._zod.optout),defineLazy(e._zod,"pattern",()=>{const r=t.innerType._zod.pattern;return r?new RegExp(`^(${cleanRegex(r.source)}|null)$`):void 0}),defineLazy(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,i)=>r.value===null?r:t.innerType._zod.run(r,i)}),$ZodDefault=$constructor("$ZodDefault",(e,t)=>{$ZodType.init(e,t),e._zod.optin="optional",defineLazy(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,i)=>{if(i.direction==="backward")return t.innerType._zod.run(r,i);if(r.value===void 0)return r.value=t.defaultValue,r;const s=t.innerType._zod.run(r,i);return s instanceof Promise?s.then(n=>handleDefaultResult(n,t)):handleDefaultResult(s,t)}});function handleDefaultResult(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const $ZodPrefault=$constructor("$ZodPrefault",(e,t)=>{$ZodType.init(e,t),e._zod.optin="optional",defineLazy(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,i)=>(i.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,i))}),$ZodNonOptional=$constructor("$ZodNonOptional",(e,t)=>{$ZodType.init(e,t),defineLazy(e._zod,"values",()=>{const r=t.innerType._zod.values;return r?new Set([...r].filter(i=>i!==void 0)):void 0}),e._zod.parse=(r,i)=>{const s=t.innerType._zod.run(r,i);return s instanceof Promise?s.then(n=>handleNonOptionalResult(n,e)):handleNonOptionalResult(s,e)}});function handleNonOptionalResult(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const $ZodCatch=$constructor("$ZodCatch",(e,t)=>{$ZodType.init(e,t),defineLazy(e._zod,"optin",()=>t.innerType._zod.optin),defineLazy(e._zod,"optout",()=>t.innerType._zod.optout),defineLazy(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,i)=>{if(i.direction==="backward")return t.innerType._zod.run(r,i);const s=t.innerType._zod.run(r,i);return s instanceof Promise?s.then(n=>(r.value=n.value,n.issues.length&&(r.value=t.catchValue({...r,error:{issues:n.issues.map(a=>finalizeIssue(a,i,config()))},input:r.value}),r.issues=[]),r)):(r.value=s.value,s.issues.length&&(r.value=t.catchValue({...r,error:{issues:s.issues.map(n=>finalizeIssue(n,i,config()))},input:r.value}),r.issues=[]),r)}}),$ZodPipe=$constructor("$ZodPipe",(e,t)=>{$ZodType.init(e,t),defineLazy(e._zod,"values",()=>t.in._zod.values),defineLazy(e._zod,"optin",()=>t.in._zod.optin),defineLazy(e._zod,"optout",()=>t.out._zod.optout),defineLazy(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,i)=>{if(i.direction==="backward"){const n=t.out._zod.run(r,i);return n instanceof Promise?n.then(a=>handlePipeResult(a,t.in,i)):handlePipeResult(n,t.in,i)}const s=t.in._zod.run(r,i);return s instanceof Promise?s.then(n=>handlePipeResult(n,t.out,i)):handlePipeResult(s,t.out,i)}});function handlePipeResult(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}const $ZodReadonly=$constructor("$ZodReadonly",(e,t)=>{$ZodType.init(e,t),defineLazy(e._zod,"propValues",()=>t.innerType._zod.propValues),defineLazy(e._zod,"values",()=>t.innerType._zod.values),defineLazy(e._zod,"optin",()=>t.innerType?._zod?.optin),defineLazy(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(r,i)=>{if(i.direction==="backward")return t.innerType._zod.run(r,i);const s=t.innerType._zod.run(r,i);return s instanceof Promise?s.then(handleReadonlyResult):handleReadonlyResult(s)}});function handleReadonlyResult(e){return e.value=Object.freeze(e.value),e}const $ZodCustom=$constructor("$ZodCustom",(e,t)=>{$ZodCheck.init(e,t),$ZodType.init(e,t),e._zod.parse=(r,i)=>r,e._zod.check=r=>{const i=r.value,s=t.fn(i);if(s instanceof Promise)return s.then(n=>handleRefineResult(n,r,i,e));handleRefineResult(s,r,i,e)}});function handleRefineResult(e,t,r,i){if(!e){const s={code:"custom",input:r,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(s.params=i._zod.def.params),t.issues.push(issue(s))}}var _a;class $ZodRegistry{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){const i=r[0];return this._map.set(t,i),i&&typeof i=="object"&&"id"in i&&this._idmap.set(i.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){const r=t._zod.parent;if(r){const i={...this.get(r)??{}};delete i.id;const s={...i,...this._map.get(t)};return Object.keys(s).length?s:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function registry(){return new $ZodRegistry}(_a=globalThis).__zod_globalRegistry??(_a.__zod_globalRegistry=registry());const globalRegistry=globalThis.__zod_globalRegistry;function _any(e){return new e({type:"any"})}function _unknown(e){return new e({type:"unknown"})}function _never(e,t){return new e({type:"never",...normalizeParams(t)})}function _maxLength(e,t){return new $ZodCheckMaxLength({check:"max_length",...normalizeParams(t),maximum:e})}function _minLength(e,t){return new $ZodCheckMinLength({check:"min_length",...normalizeParams(t),minimum:e})}function _length(e,t){return new $ZodCheckLengthEquals({check:"length_equals",...normalizeParams(t),length:e})}function _overwrite(e){return new $ZodCheckOverwrite({check:"overwrite",tx:e})}function _array(e,t,r){return new e({type:"array",element:t,...normalizeParams(r)})}function _refine(e,t,r){return new e({type:"custom",check:"custom",fn:t,...normalizeParams(r)})}function _superRefine(e){const t=_check(r=>(r.addIssue=i=>{if(typeof i=="string")r.issues.push(issue(i,r.value,t._zod.def));else{const s=i;s.fatal&&(s.continue=!1),s.code??(s.code="custom"),s.input??(s.input=r.value),s.inst??(s.inst=t),s.continue??(s.continue=!t._zod.def.abort),r.issues.push(issue(s))}},e(r.value,r)));return t}function _check(e,t){const r=new $ZodCheck({check:"custom",...normalizeParams(t)});return r._zod.check=e,r}function initializeContext(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??globalRegistry,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}function process(e,t,r={path:[],schemaPath:[]}){var i;const s=e._zod.def,n=t.seen.get(e);if(n)return n.count++,r.schemaPath.includes(e)&&(n.cycle=r.path),n.schema;const a={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,a);const l=e._zod.toJSONSchema?.();if(l)a.schema=l;else{const F={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,F);else{const y=a.schema,q=t.processors[s.type];if(!q)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${s.type}`);q(e,t,y,F)}const J=e._zod.parent;J&&(a.ref||(a.ref=J),process(J,t,F),t.seen.get(J).isParent=!0)}const h=t.metadataRegistry.get(e);return h&&Object.assign(a.schema,h),t.io==="input"&&isTransforming(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&a.schema._prefault&&((i=a.schema).default??(i.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function extractDefs(e,t){const r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");const i=new Map;for(const a of e.seen.entries()){const l=e.metadataRegistry.get(a[0])?.id;if(l){const h=i.get(l);if(h&&h!==a[0])throw new Error(`Duplicate schema id "${l}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);i.set(l,a[0])}}const s=a=>{const l=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const J=e.external.registry.get(a[0])?.id,y=e.external.uri??(H=>H);if(J)return{ref:y(J)};const q=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=q,{defId:q,ref:`${y("__shared")}#/${l}/${q}`}}if(a[1]===r)return{ref:"#"};const d=`#/${l}/`,F=a[1].schema.id??`__schema${e.counter++}`;return{defId:F,ref:d+F}},n=a=>{if(a[1].schema.$ref)return;const l=a[1],{ref:h,defId:d}=s(a);l.def={...l.schema},d&&(l.defId=d);const F=l.schema;for(const J in F)delete F[J];F.$ref=h};if(e.cycles==="throw")for(const a of e.seen.entries()){const l=a[1];if(l.cycle)throw new Error(`Cycle detected: #/${l.cycle?.join("/")}/<root>
40
40
 
41
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const a of e.seen.entries()){const l=a[1];if(t===a[0]){n(a);continue}if(e.external){const d=e.external.registry.get(a[0])?.id;if(t!==a[0]&&d){n(a);continue}}if(e.metadataRegistry.get(a[0])?.id){n(a);continue}if(l.cycle){n(a);continue}if(l.count>1&&e.reused==="ref"){n(a);continue}}}function finalize(e,t){const r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");const i=a=>{const l=e.seen.get(a);if(l.ref===null)return;const h=l.def??l.schema,d={...h},F=l.ref;if(l.ref=null,F){i(F);const y=e.seen.get(F),q=y.schema;if(q.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(h.allOf=h.allOf??[],h.allOf.push(q)):Object.assign(h,q),Object.assign(h,d),a._zod.parent===F)for(const G in h)G==="$ref"||G==="allOf"||G in d||delete h[G];if(q.$ref)for(const G in h)G==="$ref"||G==="allOf"||G in y.def&&JSON.stringify(h[G])===JSON.stringify(y.def[G])&&delete h[G]}const J=a._zod.parent;if(J&&J!==F){i(J);const y=e.seen.get(J);if(y?.schema.$ref&&(h.$ref=y.schema.$ref,y.def))for(const q in h)q==="$ref"||q==="allOf"||q in y.def&&JSON.stringify(h[q])===JSON.stringify(y.def[q])&&delete h[q]}e.override({zodSchema:a,jsonSchema:h,path:l.path??[]})};for(const a of[...e.seen.entries()].reverse())i(a[0]);const s={};if(e.target==="draft-2020-12"?s.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?s.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?s.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const a=e.external.registry.get(t)?.id;if(!a)throw new Error("Schema is missing an `id` property");s.$id=e.external.uri(a)}Object.assign(s,r.def??r.schema);const n=e.external?.defs??{};for(const a of e.seen.entries()){const l=a[1];l.def&&l.defId&&(n[l.defId]=l.def)}e.external||Object.keys(n).length>0&&(e.target==="draft-2020-12"?s.$defs=n:s.definitions=n);try{const a=JSON.parse(JSON.stringify(s));return Object.defineProperty(a,"~standard",{value:{...t["~standard"],jsonSchema:{input:createStandardJSONSchemaMethod(t,"input",e.processors),output:createStandardJSONSchemaMethod(t,"output",e.processors)}},enumerable:!1,writable:!1}),a}catch{throw new Error("Error converting schema to JSON.")}}function isTransforming(e,t){const r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);const i=e._zod.def;if(i.type==="transform")return!0;if(i.type==="array")return isTransforming(i.element,r);if(i.type==="set")return isTransforming(i.valueType,r);if(i.type==="lazy")return isTransforming(i.getter(),r);if(i.type==="promise"||i.type==="optional"||i.type==="nonoptional"||i.type==="nullable"||i.type==="readonly"||i.type==="default"||i.type==="prefault")return isTransforming(i.innerType,r);if(i.type==="intersection")return isTransforming(i.left,r)||isTransforming(i.right,r);if(i.type==="record"||i.type==="map")return isTransforming(i.keyType,r)||isTransforming(i.valueType,r);if(i.type==="pipe")return isTransforming(i.in,r)||isTransforming(i.out,r);if(i.type==="object"){for(const s in i.shape)if(isTransforming(i.shape[s],r))return!0;return!1}if(i.type==="union"){for(const s of i.options)if(isTransforming(s,r))return!0;return!1}if(i.type==="tuple"){for(const s of i.items)if(isTransforming(s,r))return!0;return!!(i.rest&&isTransforming(i.rest,r))}return!1}const createToJSONSchemaMethod=(e,t={})=>r=>{const i=initializeContext({...r,processors:t});return process(e,i),extractDefs(i,e),finalize(i,e)},createStandardJSONSchemaMethod=(e,t,r={})=>i=>{const{libraryOptions:s,target:n}=i??{},a=initializeContext({...s??{},target:n,io:t,processors:r});return process(e,a),extractDefs(a,e),finalize(a,e)},neverProcessor=(e,t,r,i)=>{r.not={}},anyProcessor=(e,t,r,i)=>{},unknownProcessor=(e,t,r,i)=>{},enumProcessor=(e,t,r,i)=>{const s=e._zod.def,n=getEnumValues(s.entries);n.every(a=>typeof a=="number")&&(r.type="number"),n.every(a=>typeof a=="string")&&(r.type="string"),r.enum=n},customProcessor=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},transformProcessor=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},arrayProcessor=(e,t,r,i)=>{const s=r,n=e._zod.def,{minimum:a,maximum:l}=e._zod.bag;typeof a=="number"&&(s.minItems=a),typeof l=="number"&&(s.maxItems=l),s.type="array",s.items=process(n.element,t,{...i,path:[...i.path,"items"]})},objectProcessor=(e,t,r,i)=>{const s=r,n=e._zod.def;s.type="object",s.properties={};const a=n.shape;for(const d in a)s.properties[d]=process(a[d],t,{...i,path:[...i.path,"properties",d]});const l=new Set(Object.keys(a)),h=new Set([...l].filter(d=>{const F=n.shape[d]._zod;return t.io==="input"?F.optin===void 0:F.optout===void 0}));h.size>0&&(s.required=Array.from(h)),n.catchall?._zod.def.type==="never"?s.additionalProperties=!1:n.catchall?n.catchall&&(s.additionalProperties=process(n.catchall,t,{...i,path:[...i.path,"additionalProperties"]})):t.io==="output"&&(s.additionalProperties=!1)},unionProcessor=(e,t,r,i)=>{const s=e._zod.def,n=s.inclusive===!1,a=s.options.map((l,h)=>process(l,t,{...i,path:[...i.path,n?"oneOf":"anyOf",h]}));n?r.oneOf=a:r.anyOf=a},intersectionProcessor=(e,t,r,i)=>{const s=e._zod.def,n=process(s.left,t,{...i,path:[...i.path,"allOf",0]}),a=process(s.right,t,{...i,path:[...i.path,"allOf",1]}),l=d=>"allOf"in d&&Object.keys(d).length===1,h=[...l(n)?n.allOf:[n],...l(a)?a.allOf:[a]];r.allOf=h},nullableProcessor=(e,t,r,i)=>{const s=e._zod.def,n=process(s.innerType,t,i),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=s.innerType,r.nullable=!0):r.anyOf=[n,{type:"null"}]},nonoptionalProcessor=(e,t,r,i)=>{const s=e._zod.def;process(s.innerType,t,i);const n=t.seen.get(e);n.ref=s.innerType},defaultProcessor=(e,t,r,i)=>{const s=e._zod.def;process(s.innerType,t,i);const n=t.seen.get(e);n.ref=s.innerType,r.default=JSON.parse(JSON.stringify(s.defaultValue))},prefaultProcessor=(e,t,r,i)=>{const s=e._zod.def;process(s.innerType,t,i);const n=t.seen.get(e);n.ref=s.innerType,t.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(s.defaultValue)))},catchProcessor=(e,t,r,i)=>{const s=e._zod.def;process(s.innerType,t,i);const n=t.seen.get(e);n.ref=s.innerType;let a;try{a=s.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=a},pipeProcessor=(e,t,r,i)=>{const s=e._zod.def,n=t.io==="input"?s.in._zod.def.type==="transform"?s.out:s.in:s.out;process(n,t,i);const a=t.seen.get(e);a.ref=n},readonlyProcessor=(e,t,r,i)=>{const s=e._zod.def;process(s.innerType,t,i);const n=t.seen.get(e);n.ref=s.innerType,r.readOnly=!0},optionalProcessor=(e,t,r,i)=>{const s=e._zod.def;process(s.innerType,t,i);const n=t.seen.get(e);n.ref=s.innerType},initializer=(e,t)=>{$ZodError.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>formatError(e,r)},flatten:{value:r=>flattenError(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,jsonStringifyReplacer,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,jsonStringifyReplacer,2)}},isEmpty:{get(){return e.issues.length===0}}})},ZodRealError=$constructor("ZodError",initializer,{Parent:Error}),parse=_parse(ZodRealError),parseAsync=_parseAsync(ZodRealError),safeParse=_safeParse(ZodRealError),safeParseAsync=_safeParseAsync(ZodRealError),encode=_encode(ZodRealError),decode=_decode(ZodRealError),encodeAsync=_encodeAsync(ZodRealError),decodeAsync=_decodeAsync(ZodRealError),safeEncode=_safeEncode(ZodRealError),safeDecode=_safeDecode(ZodRealError),safeEncodeAsync=_safeEncodeAsync(ZodRealError),safeDecodeAsync=_safeDecodeAsync(ZodRealError),ZodType=$constructor("ZodType",(e,t)=>($ZodType.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:createStandardJSONSchemaMethod(e,"input"),output:createStandardJSONSchemaMethod(e,"output")}}),e.toJSONSchema=createToJSONSchemaMethod(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone(mergeDefs(t,{checks:[...t.checks??[],...r.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]}),{parent:!0}),e.with=e.check,e.clone=(r,i)=>clone(e,r,i),e.brand=()=>e,e.register=((r,i)=>(r.add(e,i),e)),e.parse=(r,i)=>parse(e,r,i,{callee:e.parse}),e.safeParse=(r,i)=>safeParse(e,r,i),e.parseAsync=async(r,i)=>parseAsync(e,r,i,{callee:e.parseAsync}),e.safeParseAsync=async(r,i)=>safeParseAsync(e,r,i),e.spa=e.safeParseAsync,e.encode=(r,i)=>encode(e,r,i),e.decode=(r,i)=>decode(e,r,i),e.encodeAsync=async(r,i)=>encodeAsync(e,r,i),e.decodeAsync=async(r,i)=>decodeAsync(e,r,i),e.safeEncode=(r,i)=>safeEncode(e,r,i),e.safeDecode=(r,i)=>safeDecode(e,r,i),e.safeEncodeAsync=async(r,i)=>safeEncodeAsync(e,r,i),e.safeDecodeAsync=async(r,i)=>safeDecodeAsync(e,r,i),e.refine=(r,i)=>e.check(refine(r,i)),e.superRefine=r=>e.check(superRefine(r)),e.overwrite=r=>e.check(_overwrite(r)),e.optional=()=>optional(e),e.exactOptional=()=>exactOptional(e),e.nullable=()=>nullable(e),e.nullish=()=>optional(nullable(e)),e.nonoptional=r=>nonoptional(e,r),e.array=()=>array(e),e.or=r=>union([e,r]),e.and=r=>intersection(e,r),e.transform=r=>pipe(e,transform(r)),e.default=r=>_default(e,r),e.prefault=r=>prefault(e,r),e.catch=r=>_catch(e,r),e.pipe=r=>pipe(e,r),e.readonly=()=>readonly(e),e.describe=r=>{const i=e.clone();return globalRegistry.add(i,{description:r}),i},Object.defineProperty(e,"description",{get(){return globalRegistry.get(e)?.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return globalRegistry.get(e);const i=e.clone();return globalRegistry.add(i,r[0]),i},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=r=>r(e),e)),ZodAny=$constructor("ZodAny",(e,t)=>{$ZodAny.init(e,t),ZodType.init(e,t),e._zod.processJSONSchema=(r,i,s)=>anyProcessor()});function any(){return _any(ZodAny)}const ZodUnknown=$constructor("ZodUnknown",(e,t)=>{$ZodUnknown.init(e,t),ZodType.init(e,t),e._zod.processJSONSchema=(r,i,s)=>unknownProcessor()});function unknown(){return _unknown(ZodUnknown)}const ZodNever=$constructor("ZodNever",(e,t)=>{$ZodNever.init(e,t),ZodType.init(e,t),e._zod.processJSONSchema=(r,i,s)=>neverProcessor(e,r,i)});function never(e){return _never(ZodNever,e)}const ZodArray=$constructor("ZodArray",(e,t)=>{$ZodArray.init(e,t),ZodType.init(e,t),e._zod.processJSONSchema=(r,i,s)=>arrayProcessor(e,r,i,s),e.element=t.element,e.min=(r,i)=>e.check(_minLength(r,i)),e.nonempty=r=>e.check(_minLength(1,r)),e.max=(r,i)=>e.check(_maxLength(r,i)),e.length=(r,i)=>e.check(_length(r,i)),e.unwrap=()=>e.element});function array(e,t){return _array(ZodArray,e,t)}const ZodObject=$constructor("ZodObject",(e,t)=>{$ZodObjectJIT.init(e,t),ZodType.init(e,t),e._zod.processJSONSchema=(r,i,s)=>objectProcessor(e,r,i,s),defineLazy(e,"shape",()=>t.shape),e.keyof=()=>_enum(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:unknown()}),e.loose=()=>e.clone({...e._zod.def,catchall:unknown()}),e.strict=()=>e.clone({...e._zod.def,catchall:never()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>extend(e,r),e.safeExtend=r=>safeExtend(e,r),e.merge=r=>merge(e,r),e.pick=r=>pick(e,r),e.omit=r=>omit(e,r),e.partial=(...r)=>partial(ZodOptional,e,r[0]),e.required=(...r)=>required(ZodNonOptional,e,r[0])});function object(e,t){const r={type:"object",shape:e??{},...normalizeParams(t)};return new ZodObject(r)}const ZodUnion=$constructor("ZodUnion",(e,t)=>{$ZodUnion.init(e,t),ZodType.init(e,t),e._zod.processJSONSchema=(r,i,s)=>unionProcessor(e,r,i,s),e.options=t.options});function union(e,t){return new ZodUnion({type:"union",options:e,...normalizeParams(t)})}const ZodIntersection=$constructor("ZodIntersection",(e,t)=>{$ZodIntersection.init(e,t),ZodType.init(e,t),e._zod.processJSONSchema=(r,i,s)=>intersectionProcessor(e,r,i,s)});function intersection(e,t){return new ZodIntersection({type:"intersection",left:e,right:t})}const ZodEnum=$constructor("ZodEnum",(e,t)=>{$ZodEnum.init(e,t),ZodType.init(e,t),e._zod.processJSONSchema=(i,s,n)=>enumProcessor(e,i,s),e.enum=t.entries,e.options=Object.values(t.entries);const r=new Set(Object.keys(t.entries));e.extract=(i,s)=>{const n={};for(const a of i)if(r.has(a))n[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new ZodEnum({...t,checks:[],...normalizeParams(s),entries:n})},e.exclude=(i,s)=>{const n={...t.entries};for(const a of i)if(r.has(a))delete n[a];else throw new Error(`Key ${a} not found in enum`);return new ZodEnum({...t,checks:[],...normalizeParams(s),entries:n})}});function _enum(e,t){const r=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new ZodEnum({type:"enum",entries:r,...normalizeParams(t)})}const ZodTransform=$constructor("ZodTransform",(e,t)=>{$ZodTransform.init(e,t),ZodType.init(e,t),e._zod.processJSONSchema=(r,i,s)=>transformProcessor(e,r),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new $ZodEncodeError(e.constructor.name);r.addIssue=n=>{if(typeof n=="string")r.issues.push(issue(n,r.value,t));else{const a=n;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=r.value),a.inst??(a.inst=e),r.issues.push(issue(a))}};const s=t.transform(r.value,r);return s instanceof Promise?s.then(n=>(r.value=n,r)):(r.value=s,r)}});function transform(e){return new ZodTransform({type:"transform",transform:e})}const ZodOptional=$constructor("ZodOptional",(e,t)=>{$ZodOptional.init(e,t),ZodType.init(e,t),e._zod.processJSONSchema=(r,i,s)=>optionalProcessor(e,r,i,s),e.unwrap=()=>e._zod.def.innerType});function optional(e){return new ZodOptional({type:"optional",innerType:e})}const ZodExactOptional=$constructor("ZodExactOptional",(e,t)=>{$ZodExactOptional.init(e,t),ZodType.init(e,t),e._zod.processJSONSchema=(r,i,s)=>optionalProcessor(e,r,i,s),e.unwrap=()=>e._zod.def.innerType});function exactOptional(e){return new ZodExactOptional({type:"optional",innerType:e})}const ZodNullable=$constructor("ZodNullable",(e,t)=>{$ZodNullable.init(e,t),ZodType.init(e,t),e._zod.processJSONSchema=(r,i,s)=>nullableProcessor(e,r,i,s),e.unwrap=()=>e._zod.def.innerType});function nullable(e){return new ZodNullable({type:"nullable",innerType:e})}const ZodDefault=$constructor("ZodDefault",(e,t)=>{$ZodDefault.init(e,t),ZodType.init(e,t),e._zod.processJSONSchema=(r,i,s)=>defaultProcessor(e,r,i,s),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function _default(e,t){return new ZodDefault({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():shallowClone(t)}})}const ZodPrefault=$constructor("ZodPrefault",(e,t)=>{$ZodPrefault.init(e,t),ZodType.init(e,t),e._zod.processJSONSchema=(r,i,s)=>prefaultProcessor(e,r,i,s),e.unwrap=()=>e._zod.def.innerType});function prefault(e,t){return new ZodPrefault({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():shallowClone(t)}})}const ZodNonOptional=$constructor("ZodNonOptional",(e,t)=>{$ZodNonOptional.init(e,t),ZodType.init(e,t),e._zod.processJSONSchema=(r,i,s)=>nonoptionalProcessor(e,r,i,s),e.unwrap=()=>e._zod.def.innerType});function nonoptional(e,t){return new ZodNonOptional({type:"nonoptional",innerType:e,...normalizeParams(t)})}const ZodCatch=$constructor("ZodCatch",(e,t)=>{$ZodCatch.init(e,t),ZodType.init(e,t),e._zod.processJSONSchema=(r,i,s)=>catchProcessor(e,r,i,s),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function _catch(e,t){return new ZodCatch({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const ZodPipe=$constructor("ZodPipe",(e,t)=>{$ZodPipe.init(e,t),ZodType.init(e,t),e._zod.processJSONSchema=(r,i,s)=>pipeProcessor(e,r,i,s),e.in=t.in,e.out=t.out});function pipe(e,t){return new ZodPipe({type:"pipe",in:e,out:t})}const ZodReadonly=$constructor("ZodReadonly",(e,t)=>{$ZodReadonly.init(e,t),ZodType.init(e,t),e._zod.processJSONSchema=(r,i,s)=>readonlyProcessor(e,r,i,s),e.unwrap=()=>e._zod.def.innerType});function readonly(e){return new ZodReadonly({type:"readonly",innerType:e})}const ZodCustom=$constructor("ZodCustom",(e,t)=>{$ZodCustom.init(e,t),ZodType.init(e,t),e._zod.processJSONSchema=(r,i,s)=>customProcessor(e,r)});function refine(e,t={}){return _refine(ZodCustom,e,t)}function superRefine(e){return _superRefine(e)}function flattenFields(e){const t=[];for(const r of e.sections)for(const i of r.fields)Array.isArray(i)?t.push(...i):t.push(i);return t}function buildZodSchema(e){const t={};for(const i of e.sections)for(const s of i.fields){const n=Array.isArray(s)?s:[s];for(const a of n)t[a.name]=a.schema??any().optional()}let r=object(t);return e.crossRules?.length&&(r=r.superRefine((i,s)=>{for(const n of e.crossRules)n(i,s)})),r}function buildDefaultValues(e,t){const r=e.defaultValues?.(t)??{},i=flattenFields(e),s={...r};for(const n of i)n.defaultValue!==void 0&&s[n.name]===void 0&&(s[n.name]=n.defaultValue);return s}var isCheckBoxInput=e=>e.type==="checkbox",isDateObject=e=>e instanceof Date,isNullOrUndefined=e=>e==null;const isObjectType=e=>typeof e=="object";var isObject=e=>!isNullOrUndefined(e)&&!Array.isArray(e)&&isObjectType(e)&&!isDateObject(e),getEventValue=e=>isObject(e)&&e.target?isCheckBoxInput(e.target)?e.target.checked:e.target.value:e,getNodeParentName=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,isNameInFieldArray=(e,t)=>e.has(getNodeParentName(t)),isPlainObject=e=>{const t=e.constructor&&e.constructor.prototype;return isObject(t)&&t.hasOwnProperty("isPrototypeOf")},isWeb=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function cloneObject(e){if(e instanceof Date)return new Date(e);const t=typeof FileList<"u"&&e instanceof FileList;if(isWeb&&(e instanceof Blob||t))return e;const r=Array.isArray(e);if(!r&&!(isObject(e)&&isPlainObject(e)))return e;const i=r?[]:Object.create(Object.getPrototypeOf(e));for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(i[s]=cloneObject(e[s]));return i}var isKey=e=>/^\w*$/.test(e),isUndefined=e=>e===void 0,compact=e=>Array.isArray(e)?e.filter(Boolean):[],stringToPath=e=>compact(e.replace(/["|']|\]/g,"").split(/\.|\[/)),get=(e,t,r)=>{if(!t||!isObject(e))return r;const i=(isKey(t)?[t]:stringToPath(t)).reduce((s,n)=>isNullOrUndefined(s)?s:s[n],e);return isUndefined(i)||i===e?isUndefined(e[t])?r:e[t]:i},isBoolean=e=>typeof e=="boolean",isFunction=e=>typeof e=="function",set=(e,t,r)=>{let i=-1;const s=isKey(t)?[t]:stringToPath(t),n=s.length,a=n-1;for(;++i<n;){const l=s[i];let h=r;if(i!==a){const d=e[l];h=isObject(d)||Array.isArray(d)?d:isNaN(+s[i+1])?{}:[]}if(l==="__proto__"||l==="constructor"||l==="prototype")return;e[l]=h,e=e[l]}};const EVENTS={BLUR:"blur",CHANGE:"change"},VALIDATION_MODE={all:"all"},HookFormContext=React.createContext(null);HookFormContext.displayName="HookFormContext";const useFormContext=()=>React.useContext(HookFormContext),FormProvider=e=>{const{children:t,...r}=e;return React.createElement(HookFormContext.Provider,{value:r},t)};var getProxyFormState=(e,t,r,i=!0)=>{const s={defaultValues:t._defaultValues};for(const n in e)Object.defineProperty(s,n,{get:()=>{const a=n;return t._proxyFormState[a]!==VALIDATION_MODE.all&&(t._proxyFormState[a]=!i||VALIDATION_MODE.all),r&&(r[a]=!0),e[a]}});return s};const useIsomorphicLayoutEffect=typeof window<"u"?React.useLayoutEffect:React.useEffect;function useFormState(e){const t=useFormContext(),{control:r=t.control,disabled:i,name:s,exact:n}=e||{},[a,l]=React.useState(r._formState),h=React.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return useIsomorphicLayoutEffect(()=>r._subscribe({name:s,formState:h.current,exact:n,callback:d=>{!i&&l({...r._formState,...d})}}),[s,i,n]),React.useEffect(()=>{h.current.isValid&&r._setValid(!0)},[r]),React.useMemo(()=>getProxyFormState(a,r,h.current,!1),[a,r])}var isString=e=>typeof e=="string",generateWatchOutput=(e,t,r,i,s)=>isString(e)?get(r,e,s):Array.isArray(e)?e.map(n=>get(r,n)):r,isPrimitive=e=>isNullOrUndefined(e)||!isObjectType(e);function deepEqual(e,t,r=new WeakSet){if(isPrimitive(e)||isPrimitive(t))return Object.is(e,t);if(isDateObject(e)&&isDateObject(t))return Object.is(e.getTime(),t.getTime());const i=Object.keys(e),s=Object.keys(t);if(i.length!==s.length)return!1;if(r.has(e)||r.has(t))return!0;r.add(e),r.add(t);for(const n of i){const a=e[n];if(!s.includes(n))return!1;if(n!=="ref"){const l=t[n];if(isDateObject(a)&&isDateObject(l)||isObject(a)&&isObject(l)||Array.isArray(a)&&Array.isArray(l)?!deepEqual(a,l,r):!Object.is(a,l))return!1}}return!0}function useWatch(e){const t=useFormContext(),{control:r=t.control,name:i,defaultValue:s,disabled:n,exact:a,compute:l}=e||{},h=React.useRef(s),d=React.useRef(l),F=React.useRef(void 0),J=React.useRef(r),y=React.useRef(i);d.current=l;const[q,H]=React.useState(()=>{const V=r._getWatch(i,h.current);return d.current?d.current(V):V}),G=React.useCallback(V=>{const Q=generateWatchOutput(i,r._names,V||r._formValues,!1,h.current);return d.current?d.current(Q):Q},[r._formValues,r._names,i]),te=React.useCallback(V=>{if(!n){const Q=generateWatchOutput(i,r._names,V||r._formValues,!1,h.current);if(d.current){const ee=d.current(Q);deepEqual(ee,F.current)||(H(ee),F.current=ee)}else H(Q)}},[r._formValues,r._names,n,i]);useIsomorphicLayoutEffect(()=>((J.current!==r||!deepEqual(y.current,i))&&(J.current=r,y.current=i,te()),r._subscribe({name:i,formState:{values:!0},exact:a,callback:V=>{te(V.values)}})),[r,a,i,te]),React.useEffect(()=>r._removeUnmounted());const j=J.current!==r,Z=y.current,M=React.useMemo(()=>{if(n)return null;const V=!j&&!deepEqual(Z,i);return j||V?G():null},[n,j,i,Z,G]);return M!==null?M:q}function useController(e){const t=useFormContext(),{name:r,disabled:i,control:s=t.control,shouldUnregister:n,defaultValue:a,exact:l=!0}=e,h=isNameInFieldArray(s._names.array,r),d=React.useMemo(()=>get(s._formValues,r,get(s._defaultValues,r,a)),[s,r,a]),F=useWatch({control:s,name:r,defaultValue:d,exact:l}),J=useFormState({control:s,name:r,exact:l}),y=React.useRef(e),q=React.useRef(void 0),H=React.useRef(s.register(r,{...e.rules,value:F,...isBoolean(e.disabled)?{disabled:e.disabled}:{}}));y.current=e;const G=React.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!get(J.errors,r)},isDirty:{enumerable:!0,get:()=>!!get(J.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!get(J.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!get(J.validatingFields,r)},error:{enumerable:!0,get:()=>get(J.errors,r)}}),[J,r]),te=React.useCallback(V=>H.current.onChange({target:{value:getEventValue(V),name:r},type:EVENTS.CHANGE}),[r]),j=React.useCallback(()=>H.current.onBlur({target:{value:get(s._formValues,r),name:r},type:EVENTS.BLUR}),[r,s._formValues]),Z=React.useCallback(V=>{const Q=get(s._fields,r);Q&&Q._f&&V&&(Q._f.ref={focus:()=>isFunction(V.focus)&&V.focus(),select:()=>isFunction(V.select)&&V.select(),setCustomValidity:ee=>isFunction(V.setCustomValidity)&&V.setCustomValidity(ee),reportValidity:()=>isFunction(V.reportValidity)&&V.reportValidity()})},[s._fields,r]),M=React.useMemo(()=>({name:r,value:F,...isBoolean(i)||J.disabled?{disabled:J.disabled||i}:{},onChange:te,onBlur:j,ref:Z}),[r,i,J.disabled,te,j,Z,F]);return React.useEffect(()=>{const V=s._options.shouldUnregister||n,Q=q.current;Q&&Q!==r&&!h&&s.unregister(Q),s.register(r,{...y.current.rules,...isBoolean(y.current.disabled)?{disabled:y.current.disabled}:{}});const ee=(ie,ae)=>{const le=get(s._fields,ie);le&&le._f&&(le._f.mount=ae)};if(ee(r,!0),V){const ie=cloneObject(get(s._options.defaultValues,r,y.current.defaultValue));set(s._defaultValues,r,ie),isUndefined(get(s._formValues,r))&&set(s._formValues,r,ie)}return!h&&s.register(r),q.current=r,()=>{(h?V&&!s._state.action:V)?s.unregister(r):ee(r,!1)}},[r,s,h,n]),React.useEffect(()=>{s._setDisabledField({disabled:i,name:r})},[i,r,s]),React.useMemo(()=>({field:M,formState:J,fieldState:G}),[M,J,G])}const Controller=e=>e.render(useController(e));function FormField(e){return jsxRuntime.jsx(Controller,{...e})}function assertNever(e){throw new Error(`Unhandled field kind: ${String(e)}`)}function FieldRenderer({form:e,field:t}){return jsxRuntime.jsx(FormField,{control:e.control,name:t.name,render:({field:r,fieldState:{error:i}})=>{const s=l=>t.normalize?t.normalize(l):l,n=()=>{t.deps?.onChangeTrigger&&e.trigger(t.deps.onChangeTrigger)},a={className:t.className,error:i?.message,required:!t.schema?.isOptional?.()};switch(t.kind){case"input":case"password":return jsxRuntime.jsxs(Field,{...a,children:[jsxRuntime.jsx(FieldLabel,{children:t.label}),jsxRuntime.jsx(FieldControl,{children:jsxRuntime.jsx(Input,{type:t.kind==="password"?"password":void 0,placeholder:t.placeholder,value:r.value??"",onChange:l=>{const h=l.target.value;r.onChange(s(h)),n()},onBlur:r.onBlur})}),jsxRuntime.jsx(FieldMessage,{})]});case"textarea":return jsxRuntime.jsxs(Field,{...a,children:[jsxRuntime.jsx(FieldLabel,{children:t.label}),jsxRuntime.jsx(FieldControl,{children:jsxRuntime.jsx("textarea",{value:r.value??"",placeholder:t.placeholder,rows:4,onChange:l=>{r.onChange(s(l.target.value)),n()},onBlur:r.onBlur})}),jsxRuntime.jsx(FieldMessage,{})]});case"select":return jsxRuntime.jsxs(Field,{...a,children:[jsxRuntime.jsx(FieldLabel,{children:t.label}),jsxRuntime.jsx(FieldControl,{children:jsxRuntime.jsxs(Select,{value:r.value??"",onValueChange:l=>{r.onChange(s(l||void 0)),n()},children:[jsxRuntime.jsx(SelectTrigger,{children:jsxRuntime.jsx(SelectValue,{})}),jsxRuntime.jsx(SelectContent,{children:(t.options??[]).map(l=>jsxRuntime.jsx(SelectItem,{value:String(l.value),children:l.label},l.value))})]})}),jsxRuntime.jsx(FieldMessage,{})]});case"toggle":return jsxRuntime.jsxs(Field,{...a,children:[jsxRuntime.jsx(FieldLabel,{children:t.label}),jsxRuntime.jsx(FieldControl,{children:jsxRuntime.jsx(Toggle,{checked:!!r.value,onChange:l=>{r.onChange(s(l)),n()}})}),jsxRuntime.jsx(FieldMessage,{})]});case"checkbox":return jsxRuntime.jsxs(Field,{...a,children:[jsxRuntime.jsx(FieldControl,{children:jsxRuntime.jsxs("label",{className:"oniratec-checkbox",children:[jsxRuntime.jsx("input",{type:"checkbox",checked:!!r.value,onChange:l=>{r.onChange(s(l.target.checked)),n()},onBlur:r.onBlur}),jsxRuntime.jsx("span",{children:t.label})]})}),jsxRuntime.jsx(FieldMessage,{})]});default:return assertNever(t.kind)}}})}function flattenRow(e){return Array.isArray(e)?e:[e]}function FormFactoryRenderer({config:e,form:t,onSubmitAction:r,submitLabel:i,maxWidthClass:s}){const n=t.getValues();return jsxRuntime.jsx(FormProvider,{...t,children:jsxRuntime.jsxs("form",{onSubmit:t.handleSubmit(r),className:cn("space-y-8",s),children:[e.sections.map(a=>jsxRuntime.jsxs("section",{className:"space-y-4",children:[jsxRuntime.jsx("h3",{className:"oniratec-form__section-title",children:a.title}),jsxRuntime.jsx("div",{className:"space-y-4",children:a.fields.map((l,h)=>{const d=flattenRow(l).filter(y=>!y.hidden?.(n));if(!d.length)return null;const F=d.reduce((y,q)=>y+(q.colSpan??1),0),J=F>1?cn("grid gap-4",F===2&&"grid-cols-2",F===3&&"grid-cols-3",F===4&&"grid-cols-4"):"";return jsxRuntime.jsx("div",{className:J,children:d.map(y=>jsxRuntime.jsx("div",{className:y.colSpan?`col-span-${y.colSpan}`:void 0,children:jsxRuntime.jsx(FieldRenderer,{form:t,field:y})},y.name))},h)})})]},a.title)),jsxRuntime.jsx("div",{className:"oniratec-form__actions",children:jsxRuntime.jsx(Button,{type:"submit",loading:t.formState.isSubmitting,children:i})})]})})}exports.Box=Box;exports.Button=Button;exports.Card=Card;exports.CardContent=CardContent;exports.CardHeader=CardHeader;exports.CardTitle=CardTitle;exports.DataTable=DataTable;exports.DropdownMenu=DropdownMenu;exports.DropdownMenuCheckboxItem=DropdownMenuCheckboxItem;exports.DropdownMenuContent=DropdownMenuContent;exports.DropdownMenuGroup=DropdownMenuGroup;exports.DropdownMenuItem=DropdownMenuItem;exports.DropdownMenuLabel=DropdownMenuLabel;exports.DropdownMenuPortal=DropdownMenuPortal;exports.DropdownMenuRadioGroup=DropdownMenuRadioGroup;exports.DropdownMenuRadioItem=DropdownMenuRadioItem;exports.DropdownMenuSeparator=DropdownMenuSeparator;exports.DropdownMenuSub=DropdownMenuSub;exports.DropdownMenuSubContent=DropdownMenuSubContent;exports.DropdownMenuSubTrigger=DropdownMenuSubTrigger;exports.DropdownMenuTrigger=DropdownMenuTrigger;exports.Field=Field;exports.FieldControl=FieldControl;exports.FieldLabel=FieldLabel;exports.FieldMessage=FieldMessage;exports.FormFactoryRenderer=FormFactoryRenderer;exports.Input=Input;exports.Logo=Logo;exports.NotFoundState=NotFoundState;exports.PageSizeSelector=PageSizeSelector;exports.Pagination=Pagination;exports.PasswordInput=PasswordInput;exports.PersonAvatar=PersonAvatar;exports.ProfileAvatar=ProfileAvatar;exports.Select=Select;exports.Skeleton=Skeleton;exports.Toggle=Toggle;exports.Tooltip=Tooltip;exports.TooltipContent=TooltipContent;exports.TooltipProvider=TooltipProvider;exports.TooltipTrigger=TooltipTrigger;exports.buildDefaultValues=buildDefaultValues;exports.buildZodSchema=buildZodSchema;exports.darkTheme=darkTheme;exports.defaultTheme=defaultTheme;exports.lightTheme=lightTheme;exports.useField=useField;
41
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const a of e.seen.entries()){const l=a[1];if(t===a[0]){n(a);continue}if(e.external){const d=e.external.registry.get(a[0])?.id;if(t!==a[0]&&d){n(a);continue}}if(e.metadataRegistry.get(a[0])?.id){n(a);continue}if(l.cycle){n(a);continue}if(l.count>1&&e.reused==="ref"){n(a);continue}}}function finalize(e,t){const r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");const i=a=>{const l=e.seen.get(a);if(l.ref===null)return;const h=l.def??l.schema,d={...h},F=l.ref;if(l.ref=null,F){i(F);const y=e.seen.get(F),q=y.schema;if(q.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(h.allOf=h.allOf??[],h.allOf.push(q)):Object.assign(h,q),Object.assign(h,d),a._zod.parent===F)for(const G in h)G==="$ref"||G==="allOf"||G in d||delete h[G];if(q.$ref)for(const G in h)G==="$ref"||G==="allOf"||G in y.def&&JSON.stringify(h[G])===JSON.stringify(y.def[G])&&delete h[G]}const J=a._zod.parent;if(J&&J!==F){i(J);const y=e.seen.get(J);if(y?.schema.$ref&&(h.$ref=y.schema.$ref,y.def))for(const q in h)q==="$ref"||q==="allOf"||q in y.def&&JSON.stringify(h[q])===JSON.stringify(y.def[q])&&delete h[q]}e.override({zodSchema:a,jsonSchema:h,path:l.path??[]})};for(const a of[...e.seen.entries()].reverse())i(a[0]);const s={};if(e.target==="draft-2020-12"?s.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?s.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?s.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){const a=e.external.registry.get(t)?.id;if(!a)throw new Error("Schema is missing an `id` property");s.$id=e.external.uri(a)}Object.assign(s,r.def??r.schema);const n=e.external?.defs??{};for(const a of e.seen.entries()){const l=a[1];l.def&&l.defId&&(n[l.defId]=l.def)}e.external||Object.keys(n).length>0&&(e.target==="draft-2020-12"?s.$defs=n:s.definitions=n);try{const a=JSON.parse(JSON.stringify(s));return Object.defineProperty(a,"~standard",{value:{...t["~standard"],jsonSchema:{input:createStandardJSONSchemaMethod(t,"input",e.processors),output:createStandardJSONSchemaMethod(t,"output",e.processors)}},enumerable:!1,writable:!1}),a}catch{throw new Error("Error converting schema to JSON.")}}function isTransforming(e,t){const r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);const i=e._zod.def;if(i.type==="transform")return!0;if(i.type==="array")return isTransforming(i.element,r);if(i.type==="set")return isTransforming(i.valueType,r);if(i.type==="lazy")return isTransforming(i.getter(),r);if(i.type==="promise"||i.type==="optional"||i.type==="nonoptional"||i.type==="nullable"||i.type==="readonly"||i.type==="default"||i.type==="prefault")return isTransforming(i.innerType,r);if(i.type==="intersection")return isTransforming(i.left,r)||isTransforming(i.right,r);if(i.type==="record"||i.type==="map")return isTransforming(i.keyType,r)||isTransforming(i.valueType,r);if(i.type==="pipe")return isTransforming(i.in,r)||isTransforming(i.out,r);if(i.type==="object"){for(const s in i.shape)if(isTransforming(i.shape[s],r))return!0;return!1}if(i.type==="union"){for(const s of i.options)if(isTransforming(s,r))return!0;return!1}if(i.type==="tuple"){for(const s of i.items)if(isTransforming(s,r))return!0;return!!(i.rest&&isTransforming(i.rest,r))}return!1}const createToJSONSchemaMethod=(e,t={})=>r=>{const i=initializeContext({...r,processors:t});return process(e,i),extractDefs(i,e),finalize(i,e)},createStandardJSONSchemaMethod=(e,t,r={})=>i=>{const{libraryOptions:s,target:n}=i??{},a=initializeContext({...s??{},target:n,io:t,processors:r});return process(e,a),extractDefs(a,e),finalize(a,e)},neverProcessor=(e,t,r,i)=>{r.not={}},anyProcessor=(e,t,r,i)=>{},unknownProcessor=(e,t,r,i)=>{},enumProcessor=(e,t,r,i)=>{const s=e._zod.def,n=getEnumValues(s.entries);n.every(a=>typeof a=="number")&&(r.type="number"),n.every(a=>typeof a=="string")&&(r.type="string"),r.enum=n},customProcessor=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},transformProcessor=(e,t,r,i)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},arrayProcessor=(e,t,r,i)=>{const s=r,n=e._zod.def,{minimum:a,maximum:l}=e._zod.bag;typeof a=="number"&&(s.minItems=a),typeof l=="number"&&(s.maxItems=l),s.type="array",s.items=process(n.element,t,{...i,path:[...i.path,"items"]})},objectProcessor=(e,t,r,i)=>{const s=r,n=e._zod.def;s.type="object",s.properties={};const a=n.shape;for(const d in a)s.properties[d]=process(a[d],t,{...i,path:[...i.path,"properties",d]});const l=new Set(Object.keys(a)),h=new Set([...l].filter(d=>{const F=n.shape[d]._zod;return t.io==="input"?F.optin===void 0:F.optout===void 0}));h.size>0&&(s.required=Array.from(h)),n.catchall?._zod.def.type==="never"?s.additionalProperties=!1:n.catchall?n.catchall&&(s.additionalProperties=process(n.catchall,t,{...i,path:[...i.path,"additionalProperties"]})):t.io==="output"&&(s.additionalProperties=!1)},unionProcessor=(e,t,r,i)=>{const s=e._zod.def,n=s.inclusive===!1,a=s.options.map((l,h)=>process(l,t,{...i,path:[...i.path,n?"oneOf":"anyOf",h]}));n?r.oneOf=a:r.anyOf=a},intersectionProcessor=(e,t,r,i)=>{const s=e._zod.def,n=process(s.left,t,{...i,path:[...i.path,"allOf",0]}),a=process(s.right,t,{...i,path:[...i.path,"allOf",1]}),l=d=>"allOf"in d&&Object.keys(d).length===1,h=[...l(n)?n.allOf:[n],...l(a)?a.allOf:[a]];r.allOf=h},nullableProcessor=(e,t,r,i)=>{const s=e._zod.def,n=process(s.innerType,t,i),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=s.innerType,r.nullable=!0):r.anyOf=[n,{type:"null"}]},nonoptionalProcessor=(e,t,r,i)=>{const s=e._zod.def;process(s.innerType,t,i);const n=t.seen.get(e);n.ref=s.innerType},defaultProcessor=(e,t,r,i)=>{const s=e._zod.def;process(s.innerType,t,i);const n=t.seen.get(e);n.ref=s.innerType,r.default=JSON.parse(JSON.stringify(s.defaultValue))},prefaultProcessor=(e,t,r,i)=>{const s=e._zod.def;process(s.innerType,t,i);const n=t.seen.get(e);n.ref=s.innerType,t.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(s.defaultValue)))},catchProcessor=(e,t,r,i)=>{const s=e._zod.def;process(s.innerType,t,i);const n=t.seen.get(e);n.ref=s.innerType;let a;try{a=s.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=a},pipeProcessor=(e,t,r,i)=>{const s=e._zod.def,n=t.io==="input"?s.in._zod.def.type==="transform"?s.out:s.in:s.out;process(n,t,i);const a=t.seen.get(e);a.ref=n},readonlyProcessor=(e,t,r,i)=>{const s=e._zod.def;process(s.innerType,t,i);const n=t.seen.get(e);n.ref=s.innerType,r.readOnly=!0},optionalProcessor=(e,t,r,i)=>{const s=e._zod.def;process(s.innerType,t,i);const n=t.seen.get(e);n.ref=s.innerType},initializer=(e,t)=>{$ZodError.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:r=>formatError(e,r)},flatten:{value:r=>flattenError(e,r)},addIssue:{value:r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,jsonStringifyReplacer,2)}},addIssues:{value:r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,jsonStringifyReplacer,2)}},isEmpty:{get(){return e.issues.length===0}}})},ZodRealError=$constructor("ZodError",initializer,{Parent:Error}),parse=_parse(ZodRealError),parseAsync=_parseAsync(ZodRealError),safeParse=_safeParse(ZodRealError),safeParseAsync=_safeParseAsync(ZodRealError),encode=_encode(ZodRealError),decode=_decode(ZodRealError),encodeAsync=_encodeAsync(ZodRealError),decodeAsync=_decodeAsync(ZodRealError),safeEncode=_safeEncode(ZodRealError),safeDecode=_safeDecode(ZodRealError),safeEncodeAsync=_safeEncodeAsync(ZodRealError),safeDecodeAsync=_safeDecodeAsync(ZodRealError),ZodType=$constructor("ZodType",(e,t)=>($ZodType.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:createStandardJSONSchemaMethod(e,"input"),output:createStandardJSONSchemaMethod(e,"output")}}),e.toJSONSchema=createToJSONSchemaMethod(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone(mergeDefs(t,{checks:[...t.checks??[],...r.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]}),{parent:!0}),e.with=e.check,e.clone=(r,i)=>clone(e,r,i),e.brand=()=>e,e.register=((r,i)=>(r.add(e,i),e)),e.parse=(r,i)=>parse(e,r,i,{callee:e.parse}),e.safeParse=(r,i)=>safeParse(e,r,i),e.parseAsync=async(r,i)=>parseAsync(e,r,i,{callee:e.parseAsync}),e.safeParseAsync=async(r,i)=>safeParseAsync(e,r,i),e.spa=e.safeParseAsync,e.encode=(r,i)=>encode(e,r,i),e.decode=(r,i)=>decode(e,r,i),e.encodeAsync=async(r,i)=>encodeAsync(e,r,i),e.decodeAsync=async(r,i)=>decodeAsync(e,r,i),e.safeEncode=(r,i)=>safeEncode(e,r,i),e.safeDecode=(r,i)=>safeDecode(e,r,i),e.safeEncodeAsync=async(r,i)=>safeEncodeAsync(e,r,i),e.safeDecodeAsync=async(r,i)=>safeDecodeAsync(e,r,i),e.refine=(r,i)=>e.check(refine(r,i)),e.superRefine=r=>e.check(superRefine(r)),e.overwrite=r=>e.check(_overwrite(r)),e.optional=()=>optional(e),e.exactOptional=()=>exactOptional(e),e.nullable=()=>nullable(e),e.nullish=()=>optional(nullable(e)),e.nonoptional=r=>nonoptional(e,r),e.array=()=>array(e),e.or=r=>union([e,r]),e.and=r=>intersection(e,r),e.transform=r=>pipe(e,transform(r)),e.default=r=>_default(e,r),e.prefault=r=>prefault(e,r),e.catch=r=>_catch(e,r),e.pipe=r=>pipe(e,r),e.readonly=()=>readonly(e),e.describe=r=>{const i=e.clone();return globalRegistry.add(i,{description:r}),i},Object.defineProperty(e,"description",{get(){return globalRegistry.get(e)?.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return globalRegistry.get(e);const i=e.clone();return globalRegistry.add(i,r[0]),i},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=r=>r(e),e)),ZodAny=$constructor("ZodAny",(e,t)=>{$ZodAny.init(e,t),ZodType.init(e,t),e._zod.processJSONSchema=(r,i,s)=>anyProcessor()});function any(){return _any(ZodAny)}const ZodUnknown=$constructor("ZodUnknown",(e,t)=>{$ZodUnknown.init(e,t),ZodType.init(e,t),e._zod.processJSONSchema=(r,i,s)=>unknownProcessor()});function unknown(){return _unknown(ZodUnknown)}const ZodNever=$constructor("ZodNever",(e,t)=>{$ZodNever.init(e,t),ZodType.init(e,t),e._zod.processJSONSchema=(r,i,s)=>neverProcessor(e,r,i)});function never(e){return _never(ZodNever,e)}const ZodArray=$constructor("ZodArray",(e,t)=>{$ZodArray.init(e,t),ZodType.init(e,t),e._zod.processJSONSchema=(r,i,s)=>arrayProcessor(e,r,i,s),e.element=t.element,e.min=(r,i)=>e.check(_minLength(r,i)),e.nonempty=r=>e.check(_minLength(1,r)),e.max=(r,i)=>e.check(_maxLength(r,i)),e.length=(r,i)=>e.check(_length(r,i)),e.unwrap=()=>e.element});function array(e,t){return _array(ZodArray,e,t)}const ZodObject=$constructor("ZodObject",(e,t)=>{$ZodObjectJIT.init(e,t),ZodType.init(e,t),e._zod.processJSONSchema=(r,i,s)=>objectProcessor(e,r,i,s),defineLazy(e,"shape",()=>t.shape),e.keyof=()=>_enum(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:unknown()}),e.loose=()=>e.clone({...e._zod.def,catchall:unknown()}),e.strict=()=>e.clone({...e._zod.def,catchall:never()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>extend(e,r),e.safeExtend=r=>safeExtend(e,r),e.merge=r=>merge(e,r),e.pick=r=>pick(e,r),e.omit=r=>omit(e,r),e.partial=(...r)=>partial(ZodOptional,e,r[0]),e.required=(...r)=>required(ZodNonOptional,e,r[0])});function object(e,t){const r={type:"object",shape:e??{},...normalizeParams(t)};return new ZodObject(r)}const ZodUnion=$constructor("ZodUnion",(e,t)=>{$ZodUnion.init(e,t),ZodType.init(e,t),e._zod.processJSONSchema=(r,i,s)=>unionProcessor(e,r,i,s),e.options=t.options});function union(e,t){return new ZodUnion({type:"union",options:e,...normalizeParams(t)})}const ZodIntersection=$constructor("ZodIntersection",(e,t)=>{$ZodIntersection.init(e,t),ZodType.init(e,t),e._zod.processJSONSchema=(r,i,s)=>intersectionProcessor(e,r,i,s)});function intersection(e,t){return new ZodIntersection({type:"intersection",left:e,right:t})}const ZodEnum=$constructor("ZodEnum",(e,t)=>{$ZodEnum.init(e,t),ZodType.init(e,t),e._zod.processJSONSchema=(i,s,n)=>enumProcessor(e,i,s),e.enum=t.entries,e.options=Object.values(t.entries);const r=new Set(Object.keys(t.entries));e.extract=(i,s)=>{const n={};for(const a of i)if(r.has(a))n[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new ZodEnum({...t,checks:[],...normalizeParams(s),entries:n})},e.exclude=(i,s)=>{const n={...t.entries};for(const a of i)if(r.has(a))delete n[a];else throw new Error(`Key ${a} not found in enum`);return new ZodEnum({...t,checks:[],...normalizeParams(s),entries:n})}});function _enum(e,t){const r=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new ZodEnum({type:"enum",entries:r,...normalizeParams(t)})}const ZodTransform=$constructor("ZodTransform",(e,t)=>{$ZodTransform.init(e,t),ZodType.init(e,t),e._zod.processJSONSchema=(r,i,s)=>transformProcessor(e,r),e._zod.parse=(r,i)=>{if(i.direction==="backward")throw new $ZodEncodeError(e.constructor.name);r.addIssue=n=>{if(typeof n=="string")r.issues.push(issue(n,r.value,t));else{const a=n;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=r.value),a.inst??(a.inst=e),r.issues.push(issue(a))}};const s=t.transform(r.value,r);return s instanceof Promise?s.then(n=>(r.value=n,r)):(r.value=s,r)}});function transform(e){return new ZodTransform({type:"transform",transform:e})}const ZodOptional=$constructor("ZodOptional",(e,t)=>{$ZodOptional.init(e,t),ZodType.init(e,t),e._zod.processJSONSchema=(r,i,s)=>optionalProcessor(e,r,i,s),e.unwrap=()=>e._zod.def.innerType});function optional(e){return new ZodOptional({type:"optional",innerType:e})}const ZodExactOptional=$constructor("ZodExactOptional",(e,t)=>{$ZodExactOptional.init(e,t),ZodType.init(e,t),e._zod.processJSONSchema=(r,i,s)=>optionalProcessor(e,r,i,s),e.unwrap=()=>e._zod.def.innerType});function exactOptional(e){return new ZodExactOptional({type:"optional",innerType:e})}const ZodNullable=$constructor("ZodNullable",(e,t)=>{$ZodNullable.init(e,t),ZodType.init(e,t),e._zod.processJSONSchema=(r,i,s)=>nullableProcessor(e,r,i,s),e.unwrap=()=>e._zod.def.innerType});function nullable(e){return new ZodNullable({type:"nullable",innerType:e})}const ZodDefault=$constructor("ZodDefault",(e,t)=>{$ZodDefault.init(e,t),ZodType.init(e,t),e._zod.processJSONSchema=(r,i,s)=>defaultProcessor(e,r,i,s),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function _default(e,t){return new ZodDefault({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():shallowClone(t)}})}const ZodPrefault=$constructor("ZodPrefault",(e,t)=>{$ZodPrefault.init(e,t),ZodType.init(e,t),e._zod.processJSONSchema=(r,i,s)=>prefaultProcessor(e,r,i,s),e.unwrap=()=>e._zod.def.innerType});function prefault(e,t){return new ZodPrefault({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():shallowClone(t)}})}const ZodNonOptional=$constructor("ZodNonOptional",(e,t)=>{$ZodNonOptional.init(e,t),ZodType.init(e,t),e._zod.processJSONSchema=(r,i,s)=>nonoptionalProcessor(e,r,i,s),e.unwrap=()=>e._zod.def.innerType});function nonoptional(e,t){return new ZodNonOptional({type:"nonoptional",innerType:e,...normalizeParams(t)})}const ZodCatch=$constructor("ZodCatch",(e,t)=>{$ZodCatch.init(e,t),ZodType.init(e,t),e._zod.processJSONSchema=(r,i,s)=>catchProcessor(e,r,i,s),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function _catch(e,t){return new ZodCatch({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const ZodPipe=$constructor("ZodPipe",(e,t)=>{$ZodPipe.init(e,t),ZodType.init(e,t),e._zod.processJSONSchema=(r,i,s)=>pipeProcessor(e,r,i,s),e.in=t.in,e.out=t.out});function pipe(e,t){return new ZodPipe({type:"pipe",in:e,out:t})}const ZodReadonly=$constructor("ZodReadonly",(e,t)=>{$ZodReadonly.init(e,t),ZodType.init(e,t),e._zod.processJSONSchema=(r,i,s)=>readonlyProcessor(e,r,i,s),e.unwrap=()=>e._zod.def.innerType});function readonly(e){return new ZodReadonly({type:"readonly",innerType:e})}const ZodCustom=$constructor("ZodCustom",(e,t)=>{$ZodCustom.init(e,t),ZodType.init(e,t),e._zod.processJSONSchema=(r,i,s)=>customProcessor(e,r)});function refine(e,t={}){return _refine(ZodCustom,e,t)}function superRefine(e){return _superRefine(e)}function flattenFields(e){const t=[];for(const r of e.sections)for(const i of r.fields)Array.isArray(i)?t.push(...i):t.push(i);return t}function buildZodSchema(e){const t={};for(const i of e.sections)for(const s of i.fields){const n=Array.isArray(s)?s:[s];for(const a of n)t[a.name]=a.schema??any().optional()}let r=object(t);return e.crossRules?.length&&(r=r.superRefine((i,s)=>{for(const n of e.crossRules)n(i,s)})),r}function buildDefaultValues(e,t){const r=e.defaultValues?.(t)??{},i=flattenFields(e),s={...r};for(const n of i)n.defaultValue!==void 0&&s[n.name]===void 0&&(s[n.name]=n.defaultValue);return s}var isCheckBoxInput=e=>e.type==="checkbox",isDateObject=e=>e instanceof Date,isNullOrUndefined=e=>e==null;const isObjectType=e=>typeof e=="object";var isObject=e=>!isNullOrUndefined(e)&&!Array.isArray(e)&&isObjectType(e)&&!isDateObject(e),getEventValue=e=>isObject(e)&&e.target?isCheckBoxInput(e.target)?e.target.checked:e.target.value:e,getNodeParentName=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,isNameInFieldArray=(e,t)=>e.has(getNodeParentName(t)),isPlainObject=e=>{const t=e.constructor&&e.constructor.prototype;return isObject(t)&&t.hasOwnProperty("isPrototypeOf")},isWeb=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function cloneObject(e){if(e instanceof Date)return new Date(e);const t=typeof FileList<"u"&&e instanceof FileList;if(isWeb&&(e instanceof Blob||t))return e;const r=Array.isArray(e);if(!r&&!(isObject(e)&&isPlainObject(e)))return e;const i=r?[]:Object.create(Object.getPrototypeOf(e));for(const s in e)Object.prototype.hasOwnProperty.call(e,s)&&(i[s]=cloneObject(e[s]));return i}var isKey=e=>/^\w*$/.test(e),isUndefined=e=>e===void 0,compact=e=>Array.isArray(e)?e.filter(Boolean):[],stringToPath=e=>compact(e.replace(/["|']|\]/g,"").split(/\.|\[/)),get=(e,t,r)=>{if(!t||!isObject(e))return r;const i=(isKey(t)?[t]:stringToPath(t)).reduce((s,n)=>isNullOrUndefined(s)?s:s[n],e);return isUndefined(i)||i===e?isUndefined(e[t])?r:e[t]:i},isBoolean=e=>typeof e=="boolean",isFunction=e=>typeof e=="function",set=(e,t,r)=>{let i=-1;const s=isKey(t)?[t]:stringToPath(t),n=s.length,a=n-1;for(;++i<n;){const l=s[i];let h=r;if(i!==a){const d=e[l];h=isObject(d)||Array.isArray(d)?d:isNaN(+s[i+1])?{}:[]}if(l==="__proto__"||l==="constructor"||l==="prototype")return;e[l]=h,e=e[l]}};const EVENTS={BLUR:"blur",CHANGE:"change"},VALIDATION_MODE={all:"all"},HookFormContext=React.createContext(null);HookFormContext.displayName="HookFormContext";const useFormContext=()=>React.useContext(HookFormContext),FormProvider=e=>{const{children:t,...r}=e;return React.createElement(HookFormContext.Provider,{value:r},t)};var getProxyFormState=(e,t,r,i=!0)=>{const s={defaultValues:t._defaultValues};for(const n in e)Object.defineProperty(s,n,{get:()=>{const a=n;return t._proxyFormState[a]!==VALIDATION_MODE.all&&(t._proxyFormState[a]=!i||VALIDATION_MODE.all),r&&(r[a]=!0),e[a]}});return s};const useIsomorphicLayoutEffect=typeof window<"u"?React.useLayoutEffect:React.useEffect;function useFormState(e){const t=useFormContext(),{control:r=t.control,disabled:i,name:s,exact:n}=e||{},[a,l]=React.useState(r._formState),h=React.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return useIsomorphicLayoutEffect(()=>r._subscribe({name:s,formState:h.current,exact:n,callback:d=>{!i&&l({...r._formState,...d})}}),[s,i,n]),React.useEffect(()=>{h.current.isValid&&r._setValid(!0)},[r]),React.useMemo(()=>getProxyFormState(a,r,h.current,!1),[a,r])}var isString=e=>typeof e=="string",generateWatchOutput=(e,t,r,i,s)=>isString(e)?get(r,e,s):Array.isArray(e)?e.map(n=>get(r,n)):r,isPrimitive=e=>isNullOrUndefined(e)||!isObjectType(e);function deepEqual(e,t,r=new WeakSet){if(isPrimitive(e)||isPrimitive(t))return Object.is(e,t);if(isDateObject(e)&&isDateObject(t))return Object.is(e.getTime(),t.getTime());const i=Object.keys(e),s=Object.keys(t);if(i.length!==s.length)return!1;if(r.has(e)||r.has(t))return!0;r.add(e),r.add(t);for(const n of i){const a=e[n];if(!s.includes(n))return!1;if(n!=="ref"){const l=t[n];if(isDateObject(a)&&isDateObject(l)||isObject(a)&&isObject(l)||Array.isArray(a)&&Array.isArray(l)?!deepEqual(a,l,r):!Object.is(a,l))return!1}}return!0}function useWatch(e){const t=useFormContext(),{control:r=t.control,name:i,defaultValue:s,disabled:n,exact:a,compute:l}=e||{},h=React.useRef(s),d=React.useRef(l),F=React.useRef(void 0),J=React.useRef(r),y=React.useRef(i);d.current=l;const[q,H]=React.useState(()=>{const V=r._getWatch(i,h.current);return d.current?d.current(V):V}),G=React.useCallback(V=>{const Q=generateWatchOutput(i,r._names,V||r._formValues,!1,h.current);return d.current?d.current(Q):Q},[r._formValues,r._names,i]),te=React.useCallback(V=>{if(!n){const Q=generateWatchOutput(i,r._names,V||r._formValues,!1,h.current);if(d.current){const ee=d.current(Q);deepEqual(ee,F.current)||(H(ee),F.current=ee)}else H(Q)}},[r._formValues,r._names,n,i]);useIsomorphicLayoutEffect(()=>((J.current!==r||!deepEqual(y.current,i))&&(J.current=r,y.current=i,te()),r._subscribe({name:i,formState:{values:!0},exact:a,callback:V=>{te(V.values)}})),[r,a,i,te]),React.useEffect(()=>r._removeUnmounted());const j=J.current!==r,Z=y.current,M=React.useMemo(()=>{if(n)return null;const V=!j&&!deepEqual(Z,i);return j||V?G():null},[n,j,i,Z,G]);return M!==null?M:q}function useController(e){const t=useFormContext(),{name:r,disabled:i,control:s=t.control,shouldUnregister:n,defaultValue:a,exact:l=!0}=e,h=isNameInFieldArray(s._names.array,r),d=React.useMemo(()=>get(s._formValues,r,get(s._defaultValues,r,a)),[s,r,a]),F=useWatch({control:s,name:r,defaultValue:d,exact:l}),J=useFormState({control:s,name:r,exact:l}),y=React.useRef(e),q=React.useRef(void 0),H=React.useRef(s.register(r,{...e.rules,value:F,...isBoolean(e.disabled)?{disabled:e.disabled}:{}}));y.current=e;const G=React.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!get(J.errors,r)},isDirty:{enumerable:!0,get:()=>!!get(J.dirtyFields,r)},isTouched:{enumerable:!0,get:()=>!!get(J.touchedFields,r)},isValidating:{enumerable:!0,get:()=>!!get(J.validatingFields,r)},error:{enumerable:!0,get:()=>get(J.errors,r)}}),[J,r]),te=React.useCallback(V=>H.current.onChange({target:{value:getEventValue(V),name:r},type:EVENTS.CHANGE}),[r]),j=React.useCallback(()=>H.current.onBlur({target:{value:get(s._formValues,r),name:r},type:EVENTS.BLUR}),[r,s._formValues]),Z=React.useCallback(V=>{const Q=get(s._fields,r);Q&&Q._f&&V&&(Q._f.ref={focus:()=>isFunction(V.focus)&&V.focus(),select:()=>isFunction(V.select)&&V.select(),setCustomValidity:ee=>isFunction(V.setCustomValidity)&&V.setCustomValidity(ee),reportValidity:()=>isFunction(V.reportValidity)&&V.reportValidity()})},[s._fields,r]),M=React.useMemo(()=>({name:r,value:F,...isBoolean(i)||J.disabled?{disabled:J.disabled||i}:{},onChange:te,onBlur:j,ref:Z}),[r,i,J.disabled,te,j,Z,F]);return React.useEffect(()=>{const V=s._options.shouldUnregister||n,Q=q.current;Q&&Q!==r&&!h&&s.unregister(Q),s.register(r,{...y.current.rules,...isBoolean(y.current.disabled)?{disabled:y.current.disabled}:{}});const ee=(ie,ae)=>{const le=get(s._fields,ie);le&&le._f&&(le._f.mount=ae)};if(ee(r,!0),V){const ie=cloneObject(get(s._options.defaultValues,r,y.current.defaultValue));set(s._defaultValues,r,ie),isUndefined(get(s._formValues,r))&&set(s._formValues,r,ie)}return!h&&s.register(r),q.current=r,()=>{(h?V&&!s._state.action:V)?s.unregister(r):ee(r,!1)}},[r,s,h,n]),React.useEffect(()=>{s._setDisabledField({disabled:i,name:r})},[i,r,s]),React.useMemo(()=>({field:M,formState:J,fieldState:G}),[M,J,G])}const Controller=e=>e.render(useController(e));function FormField(e){return jsxRuntime.jsx(Controller,{...e})}function assertNever(e){throw new Error(`Unhandled field kind: ${String(e)}`)}function FieldRenderer({form:e,field:t}){return jsxRuntime.jsx(FormField,{control:e.control,name:t.name,render:({field:r,fieldState:{error:i}})=>{const s=l=>t.normalize?t.normalize(l):l,n=()=>{t.deps?.onChangeTrigger&&e.trigger(t.deps.onChangeTrigger)},a={className:t.className,error:i?.message,required:!t.schema?.isOptional?.()};switch(t.kind){case"input":case"password":return jsxRuntime.jsxs(Field,{...a,children:[jsxRuntime.jsx(FieldLabel,{children:t.label}),jsxRuntime.jsx(FieldControl,{children:jsxRuntime.jsx(Input,{type:t.kind==="password"?"password":void 0,placeholder:t.placeholder,value:r.value??"",onChange:l=>{const h=l.target.value;r.onChange(s(h)),n()},onBlur:r.onBlur})}),jsxRuntime.jsx(FieldMessage,{})]});case"textarea":return jsxRuntime.jsxs(Field,{...a,children:[jsxRuntime.jsx(FieldLabel,{children:t.label}),jsxRuntime.jsx(FieldControl,{children:jsxRuntime.jsx("textarea",{value:r.value??"",placeholder:t.placeholder,rows:4,onChange:l=>{r.onChange(s(l.target.value)),n()},onBlur:r.onBlur})}),jsxRuntime.jsx(FieldMessage,{})]});case"select":return jsxRuntime.jsxs(Field,{...a,children:[jsxRuntime.jsx(FieldLabel,{children:t.label}),jsxRuntime.jsx(FieldControl,{children:jsxRuntime.jsxs(Select,{value:r.value??"",onValueChange:l=>{r.onChange(s(l||void 0)),n()},children:[jsxRuntime.jsx(SelectTrigger,{children:jsxRuntime.jsx(SelectValue,{})}),jsxRuntime.jsx(SelectContent,{children:(t.options??[]).map(l=>jsxRuntime.jsx(SelectItem,{value:String(l.value),children:l.label},l.value))})]})}),jsxRuntime.jsx(FieldMessage,{})]});case"toggle":return jsxRuntime.jsxs(Field,{...a,children:[jsxRuntime.jsx(FieldLabel,{children:t.label}),jsxRuntime.jsx(FieldControl,{children:jsxRuntime.jsx(Toggle,{checked:!!r.value,onChange:l=>{r.onChange(s(l)),n()}})}),jsxRuntime.jsx(FieldMessage,{})]});case"checkbox":return jsxRuntime.jsxs(Field,{...a,children:[jsxRuntime.jsx(FieldControl,{children:jsxRuntime.jsxs("label",{className:"oniratec-checkbox",children:[jsxRuntime.jsx("input",{type:"checkbox",checked:!!r.value,onChange:l=>{r.onChange(s(l.target.checked)),n()},onBlur:r.onBlur}),jsxRuntime.jsx("span",{children:t.label})]})}),jsxRuntime.jsx(FieldMessage,{})]});default:return assertNever(t.kind)}}})}function flattenRow(e){return Array.isArray(e)?e:[e]}function FormFactoryRenderer({config:e,form:t,onSubmitAction:r,submitLabel:i,maxWidthClass:s}){const n=t.getValues();return jsxRuntime.jsx(FormProvider,{...t,children:jsxRuntime.jsxs("form",{onSubmit:t.handleSubmit(r),className:cn("space-y-8",s),children:[e.sections.map(a=>jsxRuntime.jsxs("section",{className:"space-y-4",children:[jsxRuntime.jsx("h3",{className:"oniratec-form__section-title",children:a.title}),jsxRuntime.jsx("div",{className:"space-y-4",children:a.fields.map((l,h)=>{const d=flattenRow(l).filter(y=>!y.hidden?.(n));if(!d.length)return null;const F=d.reduce((y,q)=>y+(q.colSpan??1),0),J=F>1?cn("grid gap-4",F===2&&"grid-cols-2",F===3&&"grid-cols-3",F===4&&"grid-cols-4"):"";return jsxRuntime.jsx("div",{className:J,children:d.map(y=>jsxRuntime.jsx("div",{className:y.colSpan?`col-span-${y.colSpan}`:void 0,children:jsxRuntime.jsx(FieldRenderer,{form:t,field:y})},y.name))},h)})})]},a.title)),jsxRuntime.jsx("div",{className:"oniratec-form__actions",children:jsxRuntime.jsx(Button,{type:"submit",loading:t.formState.isSubmitting,children:i})})]})})}exports.Box=Box;exports.Button=Button;exports.Card=Card;exports.CardContent=CardContent;exports.CardHeader=CardHeader;exports.CardTitle=CardTitle;exports.DataTable=DataTable;exports.DropdownMenu=DropdownMenu;exports.DropdownMenuCheckboxItem=DropdownMenuCheckboxItem;exports.DropdownMenuContent=DropdownMenuContent;exports.DropdownMenuGroup=DropdownMenuGroup;exports.DropdownMenuItem=DropdownMenuItem;exports.DropdownMenuLabel=DropdownMenuLabel;exports.DropdownMenuPortal=DropdownMenuPortal;exports.DropdownMenuRadioGroup=DropdownMenuRadioGroup;exports.DropdownMenuRadioItem=DropdownMenuRadioItem;exports.DropdownMenuSeparator=DropdownMenuSeparator;exports.DropdownMenuSub=DropdownMenuSub;exports.DropdownMenuSubContent=DropdownMenuSubContent;exports.DropdownMenuSubTrigger=DropdownMenuSubTrigger;exports.DropdownMenuTrigger=DropdownMenuTrigger;exports.Field=Field;exports.FieldControl=FieldControl;exports.FieldLabel=FieldLabel;exports.FieldMessage=FieldMessage;exports.FormFactoryRenderer=FormFactoryRenderer;exports.Input=Input;exports.Logo=Logo;exports.NotFoundState=NotFoundState;exports.PageSizeSelector=PageSizeSelector;exports.Pagination=Pagination;exports.PasswordInput=PasswordInput;exports.PersonAvatar=PersonAvatar;exports.ProfileAvatar=ProfileAvatar;exports.Select=Select;exports.SelectContent=SelectContent;exports.SelectItem=SelectItem;exports.SelectTrigger=SelectTrigger;exports.SelectValue=SelectValue;exports.Skeleton=Skeleton;exports.Toggle=Toggle;exports.Tooltip=Tooltip;exports.TooltipContent=TooltipContent;exports.TooltipProvider=TooltipProvider;exports.TooltipTrigger=TooltipTrigger;exports.buildDefaultValues=buildDefaultValues;exports.buildZodSchema=buildZodSchema;exports.darkTheme=darkTheme;exports.defaultTheme=defaultTheme;exports.lightTheme=lightTheme;exports.useField=useField;
42
42
  //# sourceMappingURL=index.cjs.map