@lifesg/react-design-system 1.0.0-alpha.3 → 1.0.0-alpha.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/accordion/index.css +1 -0
- package/accordion/index.js +70 -73
- package/accordion/index.js.map +1 -1
- package/alert/index.css +1 -0
- package/alert/index.js +48 -51
- package/alert/index.js.map +1 -1
- package/animations/index.css +1 -0
- package/box-container/index.css +1 -0
- package/box-container/index.js +58 -61
- package/box-container/index.js.map +1 -1
- package/breadcrumb/index.css +1 -0
- package/breadcrumb/index.js +52 -55
- package/breadcrumb/index.js.map +1 -1
- package/button/index.css +1 -0
- package/button/index.js +48 -51
- package/button/index.js.map +1 -1
- package/checkbox/index.css +1 -0
- package/checkbox/index.js +5 -8
- package/checkbox/index.js.map +1 -1
- package/cjs/index.css +1 -0
- package/cjs/index.js +676 -82
- package/cjs/index.js.map +1 -1
- package/color/index.css +1 -0
- package/color/index.js.map +1 -1
- package/date-input/index.css +1 -0
- package/date-input/index.js +53 -68
- package/date-input/index.js.map +1 -1
- package/footer/footer-download-app.d.ts +2 -0
- package/footer/footer-download-app.style.d.ts +6 -0
- package/footer/footer-helper.d.ts +12 -0
- package/footer/footer.d.ts +3 -0
- package/footer/footer.style.d.ts +12 -0
- package/footer/index.css +1 -0
- package/footer/index.d.ts +2 -0
- package/footer/index.js +361 -0
- package/footer/index.js.map +1 -0
- package/footer/package.json +7 -0
- package/footer/types.d.ts +31 -0
- package/form/form-label.d.ts +1 -1
- package/form/form-label.style.d.ts +1 -0
- package/form/index.css +1 -0
- package/form/index.d.ts +1 -1
- package/form/index.js +194 -191
- package/form/index.js.map +1 -1
- package/form/types.d.ts +2 -0
- package/icon/cross-icon.d.ts +3 -0
- package/icon/index.css +1 -0
- package/icon/index.js +3 -6
- package/icon/index.js.map +1 -1
- package/icon/play-icon.d.ts +3 -0
- package/icon-button/index.css +1 -0
- package/icon-button/index.js +7 -10
- package/icon-button/index.js.map +1 -1
- package/index.css +1 -0
- package/index.d.ts +5 -0
- package/index.js +677 -83
- package/index.js.map +1 -1
- package/input/index.css +1 -0
- package/input/index.js +15 -3
- package/input/index.js.map +1 -1
- package/input/input.style.d.ts +2 -0
- package/input-group/index.css +1 -0
- package/input-group/index.js +128 -119
- package/input-group/index.js.map +1 -1
- package/input-group/input-group.style.d.ts +1 -0
- package/input-select/index.css +1 -0
- package/input-select/index.js +98 -104
- package/input-select/index.js.map +1 -1
- package/input-textarea/index.css +1 -0
- package/input-textarea/index.js +118 -111
- package/input-textarea/index.js.map +1 -1
- package/input-textarea/textarea-counter.d.ts +2 -1
- package/input-textarea/types.d.ts +1 -0
- package/layout/container.d.ts +3 -0
- package/layout/content.d.ts +3 -0
- package/layout/index.css +1 -0
- package/layout/index.d.ts +7 -0
- package/layout/index.js +51 -0
- package/layout/index.js.map +1 -0
- package/layout/package.json +7 -0
- package/layout/section.d.ts +3 -0
- package/layout/types.d.ts +15 -0
- package/link-list/index.css +1 -0
- package/link-list/index.js +55 -58
- package/link-list/index.js.map +1 -1
- package/masonry/index.css +1 -0
- package/masonry/index.js.map +1 -1
- package/masthead/index.css +1 -0
- package/masthead/index.d.ts +1 -0
- package/masthead/index.js +5 -0
- package/masthead/index.js.map +1 -0
- package/masthead/masthead.d.ts +3 -0
- package/masthead/package.json +7 -0
- package/media/index.css +1 -0
- package/media/index.js +1 -1
- package/media/index.js.map +1 -1
- package/media/media.d.ts +2 -1
- package/modal/index.css +1 -0
- package/modal/index.js +12 -15
- package/modal/index.js.map +1 -1
- package/navbar/brand.d.ts +10 -0
- package/navbar/brand.styles.d.ts +5 -0
- package/navbar/drawer.d.ts +3 -0
- package/navbar/drawer.styles.d.ts +12 -0
- package/navbar/index.css +1 -0
- package/navbar/index.d.ts +6 -0
- package/navbar/index.js +659 -0
- package/navbar/index.js.map +1 -0
- package/navbar/navbar-action-buttons.d.ts +10 -0
- package/navbar/navbar-action-buttons.styles.d.ts +9 -0
- package/navbar/navbar-items.d.ts +11 -0
- package/navbar/navbar-items.styles.d.ts +10 -0
- package/navbar/navbar.d.ts +3 -0
- package/navbar/navbar.styles.d.ts +14 -0
- package/navbar/package.json +7 -0
- package/navbar/types.d.ts +56 -0
- package/notification-banner/index.css +1 -0
- package/notification-banner/index.d.ts +3 -0
- package/notification-banner/index.js +262 -0
- package/notification-banner/index.js.map +1 -0
- package/notification-banner/notification-banner-hoc.d.ts +3 -0
- package/notification-banner/notification-banner-label.d.ts +3 -0
- package/notification-banner/notification-banner.d.ts +6 -0
- package/notification-banner/notification-banner.styles.d.ts +12 -0
- package/notification-banner/package.json +7 -0
- package/notification-banner/types.d.ts +22 -0
- package/overlay/index.css +1 -0
- package/package.json +1 -1
- package/popover/index.css +1 -0
- package/popover/index.js +55 -58
- package/popover/index.js.map +1 -1
- package/radio-button/index.css +1 -0
- package/radio-button/index.js.map +1 -1
- package/text/index.css +1 -0
- package/text/index.js +25 -28
- package/text/index.js.map +1 -1
- package/text-list/index.css +1 -0
- package/text-list/index.js.map +1 -1
- package/theme/index.css +1 -0
- package/theme/index.js.map +1 -1
- package/theme/types.d.ts +2 -2
- package/timeline/index.css +1 -0
- package/timeline/index.js +52 -55
- package/timeline/index.js.map +1 -1
- package/timepicker/index.css +1 -0
- package/timepicker/index.js +88 -91
- package/timepicker/index.js.map +1 -1
- package/toggle-button/index.css +1 -0
- package/toggle-button/index.js +110 -113
- package/toggle-button/index.js.map +1 -1
- package/tooltip/index.css +1 -0
- package/tooltip/index.js +51 -54
- package/tooltip/index.js.map +1 -1
- package/transition/index.css +1 -0
- package/icon/play-alt-icon.d.ts +0 -3
package/index.js
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import{jsx,jsxs,Fragment}from"react/jsx-runtime";import*as React from"react";import React__default,{cloneElement,useRef,useState,isValidElement,createRef,PureComponent,useEffect,useLayoutEffect as useLayoutEffect$1,forwardRef,useCallback,useContext,useMemo,createElement}from"react";import ReactDOM,{findDOMNode,unstable_batchedUpdates}from"react-dom";import styled,{css,keyframes}from"styled-components";var extendStatics=function(e,t){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},extendStatics(e,t)};function __extends(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}extendStatics(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var __assign$1=function(){return __assign$1=Object.assign||function(e){for(var t,r=1,a=arguments.length;r<a;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},__assign$1.apply(this,arguments)};function __rest$1(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(r[a[i]]=e[a[i]])}return r}var commonjsGlobal$1="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function isObject$3$1(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var isObject_1$1=isObject$3$1,freeGlobal$1$1="object"==typeof commonjsGlobal$1&&commonjsGlobal$1&&commonjsGlobal$1.Object===Object&&commonjsGlobal$1,_freeGlobal$1=freeGlobal$1$1,freeGlobal$2=_freeGlobal$1,freeSelf$1="object"==typeof self&&self&&self.Object===Object&&self,root$2$1=freeGlobal$2||freeSelf$1||Function("return this")(),_root$1=root$2$1,root$1$1=_root$1,now$1$1=function(){return root$1$1.Date.now()},now_1$1=now$1$1,reWhitespace$1=/\s/;function trimmedEndIndex$1$1(e){for(var t=e.length;t--&&reWhitespace$1.test(e.charAt(t)););return t}var _trimmedEndIndex$1=trimmedEndIndex$1$1,trimmedEndIndex$2=_trimmedEndIndex$1,reTrimStart$1=/^\s+/;function baseTrim$1$1(e){return e?e.slice(0,trimmedEndIndex$2(e)+1).replace(reTrimStart$1,""):e}var _baseTrim$1=baseTrim$1$1,root$a=_root$1,Symbol$2$1=root$a.Symbol,_Symbol$1=Symbol$2$1,Symbol$1$1=_Symbol$1,objectProto$1$1=Object.prototype,hasOwnProperty$9=objectProto$1$1.hasOwnProperty,nativeObjectToString$1$1=objectProto$1$1.toString,symToStringTag$1$1=Symbol$1$1?Symbol$1$1.toStringTag:void 0;function getRawTag$1$1(e){var t=hasOwnProperty$9.call(e,symToStringTag$1$1),r=e[symToStringTag$1$1];try{e[symToStringTag$1$1]=void 0;var a=!0}catch(e){}var i=nativeObjectToString$1$1.call(e);return a&&(t?e[symToStringTag$1$1]=r:delete e[symToStringTag$1$1]),i}var _getRawTag$1=getRawTag$1$1,objectProto$c=Object.prototype,nativeObjectToString$2=objectProto$c.toString;function objectToString$1$1(e){return nativeObjectToString$2.call(e)}var _objectToString$1=objectToString$1$1,Symbol$6=_Symbol$1,getRawTag$2=_getRawTag$1,objectToString$2=_objectToString$1,nullTag$1="[object Null]",undefinedTag$1="[object Undefined]",symToStringTag$2=Symbol$6?Symbol$6.toStringTag:void 0;function baseGetTag$1$1(e){return null==e?void 0===e?undefinedTag$1:nullTag$1:symToStringTag$2&&symToStringTag$2 in Object(e)?getRawTag$2(e):objectToString$2(e)}var _baseGetTag$1=baseGetTag$1$1;function isObjectLike$1$1(e){return null!=e&&"object"==typeof e}var isObjectLike_1$1=isObjectLike$1$1,baseGetTag$6=_baseGetTag$1,isObjectLike$6=isObjectLike_1$1,symbolTag$2="[object Symbol]";function isSymbol$1$1(e){return"symbol"==typeof e||isObjectLike$6(e)&&baseGetTag$6(e)==symbolTag$2}var isSymbol_1$1=isSymbol$1$1,baseTrim$2=_baseTrim$1,isObject$2$1=isObject_1$1,isSymbol$5=isSymbol_1$1,NAN$1=NaN,reIsBadHex$1=/^[-+]0x[0-9a-f]+$/i,reIsBinary$1=/^0b[01]+$/i,reIsOctal$1=/^0o[0-7]+$/i,freeParseInt$1=parseInt;function toNumber$1$1(e){if("number"==typeof e)return e;if(isSymbol$5(e))return NAN$1;if(isObject$2$1(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=isObject$2$1(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=baseTrim$2(e);var r=reIsBinary$1.test(e);return r||reIsOctal$1.test(e)?freeParseInt$1(e.slice(2),r?2:8):reIsBadHex$1.test(e)?NAN$1:+e}var toNumber_1$1=toNumber$1$1,isObject$1$1=isObject_1$1,now$2=now_1$1,toNumber$3=toNumber_1$1,FUNC_ERROR_TEXT$1$1="Expected a function",nativeMax$2=Math.max,nativeMin$1=Math.min;function debounce$1(e,t,r){var a,i,n,s,o,l,h=0,p=!1,c=!1,d=!0;if("function"!=typeof e)throw new TypeError(FUNC_ERROR_TEXT$1$1);function u(t){var r=a,n=i;return a=i=void 0,h=t,s=e.apply(n,r)}function m(e){return h=e,o=setTimeout(y,t),p?u(e):s}function f(e){var r=e-l;return void 0===l||r>=t||r<0||c&&e-h>=n}function y(){var e=now$2();if(f(e))return g(e);o=setTimeout(y,function(e){var r=t-(e-l);return c?nativeMin$1(r,n-(e-h)):r}(e))}function g(e){return o=void 0,d&&a?u(e):(a=i=void 0,s)}function v(){var e=now$2(),r=f(e);if(a=arguments,i=this,l=e,r){if(void 0===o)return m(l);if(c)return clearTimeout(o),o=setTimeout(y,t),u(l)}return void 0===o&&(o=setTimeout(y,t)),s}return t=toNumber$3(t)||0,isObject$1$1(r)&&(p=!!r.leading,n=(c="maxWait"in r)?nativeMax$2(toNumber$3(r.maxWait)||0,t):n,d="trailing"in r?!!r.trailing:d),v.cancel=function(){void 0!==o&&clearTimeout(o),h=0,a=l=i=o=void 0},v.flush=function(){return void 0===o?s:g(now$2())},v}var debounce_1$1=debounce$1,debounce$2=debounce_1$1,isObject$6=isObject_1$1,FUNC_ERROR_TEXT$2="Expected a function";function throttle(e,t,r){var a=!0,i=!0;if("function"!=typeof e)throw new TypeError(FUNC_ERROR_TEXT$2);return isObject$6(r)&&(a="leading"in r?!!r.leading:a,i="trailing"in r?!!r.trailing:i),debounce$2(e,t,{leading:a,maxWait:t,trailing:i})}var throttle_1=throttle,patchResizeHandler=function(e,t,r,a){switch(t){case"debounce":return debounce_1$1(e,r,a);case"throttle":return throttle_1(e,r,a);default:return e}},isFunction$3=function(e){return"function"==typeof e},isSSR$1=function(){return"undefined"==typeof window},isDOMElement=function(e){return e instanceof Element||e instanceof HTMLDocument},createNotifier=function(e,t,r,a){return function(i){var n=i.width,s=i.height;t((function(t){return t.width===n&&t.height===s||t.width===n&&!a||t.height===s&&!r?t:(e&&isFunction$3(e)&&e(n,s),{width:n,height:s})}))}};!function(e){function t(t){var r=e.call(this,t)||this;r.cancelHandler=function(){r.resizeHandler&&r.resizeHandler.cancel&&(r.resizeHandler.cancel(),r.resizeHandler=null)},r.attachObserver=function(){var e=r.props,t=e.targetRef,a=e.observerOptions;if(!isSSR$1()){t&&t.current&&(r.targetRef.current=t.current);var i=r.getElement();i&&(r.observableElement&&r.observableElement===i||(r.observableElement=i,r.resizeObserver.observe(i,a)))}},r.getElement=function(){var e=r.props,t=e.querySelector,a=e.targetDomEl;if(isSSR$1())return null;if(t)return document.querySelector(t);if(a&&isDOMElement(a))return a;if(r.targetRef&&isDOMElement(r.targetRef.current))return r.targetRef.current;var i=findDOMNode(r);if(!i)return null;switch(r.getRenderType()){case"renderProp":case"childFunction":case"child":case"childArray":return i;default:return i.parentElement}},r.createResizeHandler=function(e){var t=r.props,a=t.handleWidth,i=void 0===a||a,n=t.handleHeight,s=void 0===n||n,o=t.onResize;if(i||s){var l=createNotifier(o,r.setState.bind(r),i,s);e.forEach((function(e){var t=e&&e.contentRect||{},a=t.width,i=t.height;!r.skipOnMount&&!isSSR$1()&&l({width:a,height:i}),r.skipOnMount=!1}))}},r.getRenderType=function(){var e=r.props,t=e.render,a=e.children;return isFunction$3(t)?"renderProp":isFunction$3(a)?"childFunction":isValidElement(a)?"child":Array.isArray(a)?"childArray":"parent"};var a=t.skipOnMount,i=t.refreshMode,n=t.refreshRate,s=void 0===n?1e3:n,o=t.refreshOptions;return r.state={width:void 0,height:void 0},r.skipOnMount=a,r.targetRef=createRef(),r.observableElement=null,isSSR$1()||(r.resizeHandler=patchResizeHandler(r.createResizeHandler,i,s,o),r.resizeObserver=new window.ResizeObserver(r.resizeHandler)),r}__extends(t,e),t.prototype.componentDidMount=function(){this.attachObserver()},t.prototype.componentDidUpdate=function(){this.attachObserver()},t.prototype.componentWillUnmount=function(){isSSR$1()||(this.observableElement=null,this.resizeObserver.disconnect(),this.cancelHandler())},t.prototype.render=function(){var e,t=this.props,r=t.render,a=t.children,i=t.nodeType,n=void 0===i?"div":i,s=this.state,o={width:s.width,height:s.height,targetRef:this.targetRef};switch(this.getRenderType()){case"renderProp":return r&&r(o);case"childFunction":return(e=a)(o);case"child":if((e=a).type&&"string"==typeof e.type){var l=__rest$1(o,["targetRef"]);return cloneElement(e,l)}return cloneElement(e,o);case"childArray":return(e=a).map((function(e){return!!e&&cloneElement(e,o)}));default:return React.createElement(n,null)}}}(PureComponent);var useEnhancedEffect=isSSR$1()?useEffect:useLayoutEffect$1;function useResizeDetector(e){void 0===e&&(e={});var t=e.skipOnMount,r=void 0!==t&&t,a=e.refreshMode,i=e.refreshRate,n=void 0===i?1e3:i,s=e.refreshOptions,o=e.handleWidth,l=void 0===o||o,h=e.handleHeight,p=void 0===h||h,c=e.targetRef,d=e.observerOptions,u=e.onResize,m=useRef(r),f=useRef(null),y=null!=c?c:f,g=useRef(),v=useState({width:void 0,height:void 0}),b=v[0],x=v[1];return useEnhancedEffect((function(){if(!isSSR$1()){var e=createNotifier(u,x,l,p);g.current=patchResizeHandler((function(t){(l||p)&&t.forEach((function(t){var r=t&&t.contentRect||{},a=r.width,i=r.height;!m.current&&!isSSR$1()&&e({width:a,height:i}),m.current=!1}))}),a,n,s);var t=new window.ResizeObserver(g.current);return y.current&&t.observe(y.current,d),function(){t.disconnect();var e=g.current;e&&e.cancel&&e.cancel()}}}),[a,n,s,l,p,u,d,y.current]),__assign$1({ref:y},b)}let updateQueue=makeQueue();const raf=e=>schedule(e,updateQueue);let writeQueue=makeQueue();raf.write=e=>schedule(e,writeQueue);let onStartQueue=makeQueue();raf.onStart=e=>schedule(e,onStartQueue);let onFrameQueue=makeQueue();raf.onFrame=e=>schedule(e,onFrameQueue);let onFinishQueue=makeQueue();raf.onFinish=e=>schedule(e,onFinishQueue);let timeouts=[];raf.setTimeout=(e,t)=>{let r=raf.now()+t,a=()=>{let e=timeouts.findIndex((e=>e.cancel==a));~e&&timeouts.splice(e,1),pendingCount-=~e?1:0},i={time:r,handler:e,cancel:a};return timeouts.splice(findTimeout(r),0,i),pendingCount+=1,start(),i};let findTimeout=e=>~(~timeouts.findIndex((t=>t.time>e))||~timeouts.length);raf.cancel=e=>{onStartQueue.delete(e),onFrameQueue.delete(e),updateQueue.delete(e),writeQueue.delete(e),onFinishQueue.delete(e)},raf.sync=e=>{sync=!0,raf.batchedUpdates(e),sync=!1},raf.throttle=e=>{let t;function r(){try{e(...t)}finally{t=null}}function a(...e){t=e,raf.onStart(r)}return a.handler=e,a.cancel=()=>{onStartQueue.delete(r),t=null},a};let nativeRaf="undefined"!=typeof window?window.requestAnimationFrame:()=>{};raf.use=e=>nativeRaf=e,raf.now="undefined"!=typeof performance?()=>performance.now():Date.now,raf.batchedUpdates=e=>e(),raf.catch=console.error,raf.frameLoop="always",raf.advance=()=>{"demand"!==raf.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):update()};let ts=-1,pendingCount=0,sync=!1;function schedule(e,t){sync?(t.delete(e),e(0)):(t.add(e),start())}function start(){ts<0&&(ts=0,"demand"!==raf.frameLoop&&nativeRaf(loop))}function stop(){ts=-1}function loop(){~ts&&(nativeRaf(loop),raf.batchedUpdates(update))}function update(){let e=ts;ts=raf.now();let t=findTimeout(ts);t&&(eachSafely(timeouts.splice(0,t),(e=>e.handler())),pendingCount-=t),onStartQueue.flush(),updateQueue.flush(e?Math.min(64,ts-e):16.667),onFrameQueue.flush(),writeQueue.flush(),onFinishQueue.flush(),pendingCount||stop()}function makeQueue(){let e=new Set,t=e;return{add(r){pendingCount+=t!=e||e.has(r)?0:1,e.add(r)},delete:r=>(pendingCount-=t==e&&e.has(r)?1:0,e.delete(r)),flush(r){t.size&&(e=new Set,pendingCount-=t.size,eachSafely(t,(t=>t(r)&&e.add(t))),pendingCount+=e.size,t=e)}}}function eachSafely(e,t){e.forEach((e=>{try{t(e)}catch(e){raf.catch(e)}}))}function noop(){}const defineHidden=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0}),is={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function isEqual(e,t){if(is.arr(e)){if(!is.arr(t)||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}return e===t}const each=(e,t)=>e.forEach(t);function eachProp(e,t,r){if(is.arr(e))for(let a=0;a<e.length;a++)t.call(r,e[a],`${a}`);else for(const a in e)e.hasOwnProperty(a)&&t.call(r,e[a],a)}const toArray=e=>is.und(e)?[]:is.arr(e)?e:[e];function flush(e,t){if(e.size){const r=Array.from(e);e.clear(),each(r,t)}}const flushCalls=(e,...t)=>flush(e,(e=>e(...t))),isSSR=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent);let createStringInterpolator$1,to,colors$1=null,skipAnimation=!1,willAdvance=noop;const assign=e=>{e.to&&(to=e.to),e.now&&(raf.now=e.now),void 0!==e.colors&&(colors$1=e.colors),null!=e.skipAnimation&&(skipAnimation=e.skipAnimation),e.createStringInterpolator&&(createStringInterpolator$1=e.createStringInterpolator),e.requestAnimationFrame&&raf.use(e.requestAnimationFrame),e.batchedUpdates&&(raf.batchedUpdates=e.batchedUpdates),e.willAdvance&&(willAdvance=e.willAdvance),e.frameLoop&&(raf.frameLoop=e.frameLoop)};var globals=Object.freeze({__proto__:null,get createStringInterpolator(){return createStringInterpolator$1},get to(){return to},get colors(){return colors$1},get skipAnimation(){return skipAnimation},get willAdvance(){return willAdvance},assign:assign});const startQueue=new Set;let currentFrame=[],prevFrame=[],priority=0;const frameLoop={get idle(){return!startQueue.size&&!currentFrame.length},start(e){priority>e.priority?(startQueue.add(e),raf.onStart(flushStartQueue)):(startSafely(e),raf(advance))},advance:advance,sort(e){if(priority)raf.onFrame((()=>frameLoop.sort(e)));else{const t=currentFrame.indexOf(e);~t&&(currentFrame.splice(t,1),startUnsafely(e))}},clear(){currentFrame=[],startQueue.clear()}};function flushStartQueue(){startQueue.forEach(startSafely),startQueue.clear(),raf(advance)}function startSafely(e){currentFrame.includes(e)||startUnsafely(e)}function startUnsafely(e){currentFrame.splice(findIndex$1(currentFrame,(t=>t.priority>e.priority)),0,e)}function advance(e){const t=prevFrame;for(let r=0;r<currentFrame.length;r++){const a=currentFrame[r];priority=a.priority,a.idle||(willAdvance(a),a.advance(e),a.idle||t.push(a))}return priority=0,prevFrame=currentFrame,prevFrame.length=0,currentFrame=t,currentFrame.length>0}function findIndex$1(e,t){const r=e.findIndex(t);return r<0?e.length:r}const colors={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},NUMBER="[-+]?\\d*\\.?\\d+",PERCENTAGE=NUMBER+"%";function call(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}const rgb=new RegExp("rgb"+call(NUMBER,NUMBER,NUMBER)),rgba=new RegExp("rgba"+call(NUMBER,NUMBER,NUMBER,NUMBER)),hsl=new RegExp("hsl"+call(NUMBER,PERCENTAGE,PERCENTAGE)),hsla=new RegExp("hsla"+call(NUMBER,PERCENTAGE,PERCENTAGE,NUMBER)),hex3=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex4=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6=/^#([0-9a-fA-F]{6})$/,hex8=/^#([0-9a-fA-F]{8})$/;function normalizeColor(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=hex6.exec(e))?parseInt(t[1]+"ff",16)>>>0:colors$1&&void 0!==colors$1[e]?colors$1[e]:(t=rgb.exec(e))?(parse255(t[1])<<24|parse255(t[2])<<16|parse255(t[3])<<8|255)>>>0:(t=rgba.exec(e))?(parse255(t[1])<<24|parse255(t[2])<<16|parse255(t[3])<<8|parse1(t[4]))>>>0:(t=hex3.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=hex8.exec(e))?parseInt(t[1],16)>>>0:(t=hex4.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=hsl.exec(e))?(255|hslToRgb(parse360(t[1]),parsePercentage(t[2]),parsePercentage(t[3])))>>>0:(t=hsla.exec(e))?(hslToRgb(parse360(t[1]),parsePercentage(t[2]),parsePercentage(t[3]))|parse1(t[4]))>>>0:null}function hue2rgb(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function hslToRgb(e,t,r){const a=r<.5?r*(1+t):r+t-r*t,i=2*r-a,n=hue2rgb(i,a,e+1/3),s=hue2rgb(i,a,e),o=hue2rgb(i,a,e-1/3);return Math.round(255*n)<<24|Math.round(255*s)<<16|Math.round(255*o)<<8}function parse255(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function parse360(e){return(parseFloat(e)%360+360)%360/360}function parse1(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function parsePercentage(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function colorToRgba(e){let t=normalizeColor(e);return null===t?e:(t=t||0,`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`)}const createInterpolator=(e,t,r)=>{if(is.fun(e))return e;if(is.arr(e))return createInterpolator({range:e,output:t,extrapolate:r});if(is.str(e.output[0]))return createStringInterpolator$1(e);const a=e,i=a.output,n=a.range||[0,1],s=a.extrapolateLeft||a.extrapolate||"extend",o=a.extrapolateRight||a.extrapolate||"extend",l=a.easing||(e=>e);return e=>{const t=findRange(e,n);return interpolate(e,n[t],n[t+1],i[t],i[t+1],l,s,o,a.map)}};function interpolate(e,t,r,a,i,n,s,o,l){let h=l?l(e):e;if(h<t){if("identity"===s)return h;"clamp"===s&&(h=t)}if(h>r){if("identity"===o)return h;"clamp"===o&&(h=r)}return a===i?a:t===r?e<=t?a:i:(t===-1/0?h=-h:r===1/0?h-=t:h=(h-t)/(r-t),h=n(h),a===-1/0?h=-h:i===1/0?h+=a:h=h*(i-a)+a,h)}function findRange(e,t){for(var r=1;r<t.length-1&&!(t[r]>=e);++r);return r-1}function _extends$2(){return _extends$2=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},_extends$2.apply(this,arguments)}const $get=Symbol.for("FluidValue.get"),$observers=Symbol.for("FluidValue.observers"),hasFluidValue=e=>Boolean(e&&e[$get]),getFluidValue=e=>e&&e[$get]?e[$get]():e,getFluidObservers=e=>e[$observers]||null;function callFluidObserver(e,t){e.eventObserved?e.eventObserved(t):e(t)}function callFluidObservers(e,t){let r=e[$observers];r&&r.forEach((e=>{callFluidObserver(e,t)}))}class FluidValue{constructor(e){if(this[$get]=void 0,this[$observers]=void 0,!e&&!(e=this.get))throw Error("Unknown getter");setFluidGetter(this,e)}}const setFluidGetter=(e,t)=>setHidden(e,$get,t);function addFluidObserver(e,t){if(e[$get]){let r=e[$observers];r||setHidden(e,$observers,r=new Set),r.has(t)||(r.add(t),e.observerAdded&&e.observerAdded(r.size,t))}return t}function removeFluidObserver(e,t){let r=e[$observers];if(r&&r.has(t)){const a=r.size-1;a?r.delete(t):e[$observers]=null,e.observerRemoved&&e.observerRemoved(a,t)}}const setHidden=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0}),numberRegex=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,colorRegex=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,unitRegex=new RegExp(`(${numberRegex.source})(%|[a-z]+)`,"i"),rgbaRegex=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,cssVariableRegex=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,variableToRgba=e=>{const[t,r]=parseCSSVariable(e);if(!t||isSSR())return e;const a=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(a)return a.trim();if(r&&r.startsWith("--")){const t=window.getComputedStyle(document.documentElement).getPropertyValue(r);return t||e}return r&&cssVariableRegex.test(r)?variableToRgba(r):r||e},parseCSSVariable=e=>{const t=cssVariableRegex.exec(e);if(!t)return[,];const[,r,a]=t;return[r,a]};let namedColorRegex;const rgbaRound=(e,t,r,a,i)=>`rgba(${Math.round(t)}, ${Math.round(r)}, ${Math.round(a)}, ${i})`,createStringInterpolator=e=>{namedColorRegex||(namedColorRegex=colors$1?new RegExp(`(${Object.keys(colors$1).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map((e=>getFluidValue(e).replace(cssVariableRegex,variableToRgba).replace(colorRegex,colorToRgba).replace(namedColorRegex,colorToRgba))),r=t.map((e=>e.match(numberRegex).map(Number))),a=r[0].map(((e,t)=>r.map((e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})))).map((t=>createInterpolator(_extends$2({},e,{output:t}))));return e=>{var r;const i=!unitRegex.test(t[0])&&(null==(r=t.find((e=>unitRegex.test(e))))?void 0:r.replace(numberRegex,""));let n=0;return t[0].replace(numberRegex,(()=>`${a[n++](e)}${i||""}`)).replace(rgbaRegex,rgbaRound)}},prefix="react-spring: ",once=e=>{const t=e;let r=!1;if("function"!=typeof t)throw new TypeError(`${prefix}once requires a function parameter`);return(...e)=>{r||(t(...e),r=!0)}},warnInterpolate=once(console.warn);function deprecateInterpolate(){warnInterpolate(`${prefix}The "interpolate" function is deprecated in v9 (use "to" instead)`)}const warnDirectCall=once(console.warn);function deprecateDirectCall(){warnDirectCall(`${prefix}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function isAnimatedString(e){return is.str(e)&&("#"==e[0]||/\d/.test(e)||!isSSR()&&cssVariableRegex.test(e)||e in(colors$1||{}))}const useLayoutEffect="undefined"!=typeof window&&window.document&&window.document.createElement?React.useLayoutEffect:React.useEffect,useIsMounted=()=>{const e=useRef(!1);return useLayoutEffect((()=>(e.current=!0,()=>{e.current=!1})),[]),e};function useForceUpdate(){const e=useState()[1],t=useIsMounted();return()=>{t.current&&e(Math.random())}}function useMemoOne(e,t){const[r]=useState((()=>({inputs:t,result:e()}))),a=useRef(),i=a.current;let n=i;if(n){Boolean(t&&n.inputs&&areInputsEqual(t,n.inputs))||(n={inputs:t,result:e()})}else n=r;return useEffect((()=>{a.current=n,i==r&&(r.inputs=r.result=void 0)}),[n]),n.result}function areInputsEqual(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}const useOnce=e=>useEffect(e,emptyDeps),emptyDeps=[];function usePrev(e){const t=useRef();return useEffect((()=>{t.current=e})),t.current}const $node=Symbol.for("Animated:node"),isAnimated=e=>!!e&&e[$node]===e,getAnimated=e=>e&&e[$node],setAnimated=(e,t)=>defineHidden(e,$node,t),getPayload=e=>e&&e[$node]&&e[$node].getPayload();class Animated{constructor(){this.payload=void 0,setAnimated(this,this)}getPayload(){return this.payload||[]}}class AnimatedValue extends Animated{constructor(e){super(),this.done=!0,this.elapsedTime=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.v0=void 0,this.durationProgress=0,this._value=e,is.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new AnimatedValue(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return is.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,is.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}}class AnimatedString extends AnimatedValue{constructor(e){super(0),this._string=null,this._toString=void 0,this._toString=createInterpolator({output:[e,e]})}static create(e){return new AnimatedString(e)}getValue(){let e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(is.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=createInterpolator({output:[this.getValue(),e]})),this._value=0,super.reset()}}const TreeContext={dependencies:null};class AnimatedObject extends Animated{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return eachProp(this.source,((r,a)=>{isAnimated(r)?t[a]=r.getValue(e):hasFluidValue(r)?t[a]=getFluidValue(r):e||(t[a]=r)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&each(this.payload,(e=>e.reset()))}_makePayload(e){if(e){const t=new Set;return eachProp(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){TreeContext.dependencies&&hasFluidValue(e)&&TreeContext.dependencies.add(e);const t=getPayload(e);t&&each(t,(e=>this.add(e)))}}class AnimatedArray extends AnimatedObject{constructor(e){super(e)}static create(e){return new AnimatedArray(e)}getValue(){return this.source.map((e=>e.getValue()))}setValue(e){const t=this.getPayload();return e.length==t.length?t.map(((t,r)=>t.setValue(e[r]))).some(Boolean):(super.setValue(e.map(makeAnimated)),!0)}}function makeAnimated(e){return(isAnimatedString(e)?AnimatedString:AnimatedValue).create(e)}function getAnimatedType(e){const t=getAnimated(e);return t?t.constructor:is.arr(e)?AnimatedArray:isAnimatedString(e)?AnimatedString:AnimatedValue}function _extends$1(){return _extends$1=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},_extends$1.apply(this,arguments)}const withAnimated=(e,t)=>{const r=!is.fun(e)||e.prototype&&e.prototype.isReactComponent;return forwardRef(((a,i)=>{const n=useRef(null),s=r&&useCallback((e=>{n.current=updateRef(i,e)}),[i]),[o,l]=getAnimatedState(a,t),h=useForceUpdate(),p=()=>{const e=n.current;if(r&&!e)return;!1===(!!e&&t.applyAnimatedValues(e,o.getValue(!0)))&&h()},c=new PropsObserver(p,l),d=useRef();useLayoutEffect((()=>(d.current=c,each(l,(e=>addFluidObserver(e,c))),()=>{d.current&&(each(d.current.deps,(e=>removeFluidObserver(e,d.current))),raf.cancel(d.current.update))}))),useEffect(p,[]),useOnce((()=>()=>{const e=d.current;each(e.deps,(t=>removeFluidObserver(t,e)))}));const u=t.getComponentProps(o.getValue());return React.createElement(e,_extends$1({},u,{ref:s}))}))};class PropsObserver{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&raf.write(this.update)}}function getAnimatedState(e,t){const r=new Set;return TreeContext.dependencies=r,e.style&&(e=_extends$1({},e,{style:t.createAnimatedStyle(e.style)})),e=new AnimatedObject(e),TreeContext.dependencies=null,[e,r]}function updateRef(e,t){return e&&(is.fun(e)?e(t):e.current=t),t}const cacheKey=Symbol.for("AnimatedComponent"),createHost=(e,{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:r=(e=>new AnimatedObject(e)),getComponentProps:a=(e=>e)}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:r,getComponentProps:a},n=e=>{const t=getDisplayName(e)||"Anonymous";return(e=is.str(e)?n[e]||(n[e]=withAnimated(e,i)):e[cacheKey]||(e[cacheKey]=withAnimated(e,i))).displayName=`Animated(${t})`,e};return eachProp(e,((t,r)=>{is.arr(e)&&(r=getDisplayName(t)),n[r]=n(t)})),{animated:n}},getDisplayName=e=>is.str(e)?e:e&&is.str(e.displayName)?e.displayName:is.fun(e)&&e.name||null;function _extends(){return _extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},_extends.apply(this,arguments)}function callProp(e,...t){return is.fun(e)?e(...t):e}const matchProp=(e,t)=>!0===e||!!(t&&e&&(is.fun(e)?e(t):toArray(e).includes(t))),resolveProp=(e,t)=>is.obj(e)?t&&e[t]:e,getDefaultProp=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,noopTransform=e=>e,getDefaultProps=(e,t=noopTransform)=>{let r=DEFAULT_PROPS;e.default&&!0!==e.default&&(e=e.default,r=Object.keys(e));const a={};for(const i of r){const r=t(e[i],i);is.und(r)||(a[i]=r)}return a},DEFAULT_PROPS=["config","onProps","onStart","onChange","onPause","onResume","onRest"],RESERVED_PROPS={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function getForwardProps(e){const t={};let r=0;if(eachProp(e,((e,a)=>{RESERVED_PROPS[a]||(t[a]=e,r++)})),r)return t}function inferTo(e){const t=getForwardProps(e);if(t){const r={to:t};return eachProp(e,((e,a)=>a in t||(r[a]=e))),r}return _extends({},e)}function computeGoal(e){return e=getFluidValue(e),is.arr(e)?e.map(computeGoal):isAnimatedString(e)?globals.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function hasProps(e){for(const t in e)return!0;return!1}function isAsyncTo(e){return is.fun(e)||is.arr(e)&&is.obj(e[0])}function detachRefs(e,t){var r;null==(r=e.ref)||r.delete(e),null==t||t.delete(e)}function replaceRef(e,t){var r;t&&e.ref!==t&&(null==(r=e.ref)||r.delete(e),t.add(e),e.ref=t)}const config={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},c1=1.70158,c2=1.525*c1,c3=c1+1,c4=2*Math.PI/3,c5=2*Math.PI/4.5,bounceOut=e=>{const t=7.5625,r=2.75;return e<1/r?t*e*e:e<2/r?t*(e-=1.5/r)*e+.75:e<2.5/r?t*(e-=2.25/r)*e+.9375:t*(e-=2.625/r)*e+.984375},easings={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>0===e?0:Math.pow(2,10*e-10),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>c3*e*e*e-c1*e*e,easeOutBack:e=>1+c3*Math.pow(e-1,3)+c1*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(2*(c2+1)*e-c2)/2:(Math.pow(2*e-2,2)*((c2+1)*(2*e-2)+c2)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*c4),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*c4)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*c5)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*c5)/2+1,easeInBounce:e=>1-bounceOut(1-e),easeOutBounce:bounceOut,easeInOutBounce:e=>e<.5?(1-bounceOut(1-2*e))/2:(1+bounceOut(2*e-1))/2},defaults=_extends({},config.default,{mass:1,damping:1,easing:easings.linear,clamp:!1});class AnimationConfig{constructor(){this.tension=void 0,this.friction=void 0,this.frequency=void 0,this.damping=void 0,this.mass=void 0,this.velocity=0,this.restVelocity=void 0,this.precision=void 0,this.progress=void 0,this.duration=void 0,this.easing=void 0,this.clamp=void 0,this.bounce=void 0,this.decay=void 0,this.round=void 0,Object.assign(this,defaults)}}function mergeConfig(e,t,r){r&&(sanitizeConfig(r=_extends({},r),t),t=_extends({},r,t)),sanitizeConfig(e,t),Object.assign(e,t);for(const t in defaults)null==e[t]&&(e[t]=defaults[t]);let{mass:a,frequency:i,damping:n}=e;return is.und(i)||(i<.01&&(i=.01),n<0&&(n=0),e.tension=Math.pow(2*Math.PI/i,2)*a,e.friction=4*Math.PI*n*a/i),e}function sanitizeConfig(e,t){if(is.und(t.decay)){const r=!is.und(t.tension)||!is.und(t.friction);!r&&is.und(t.frequency)&&is.und(t.damping)&&is.und(t.mass)||(e.duration=void 0,e.decay=void 0),r&&(e.frequency=void 0)}else e.duration=void 0}const emptyArray=[];class Animation{constructor(){this.changed=!1,this.values=emptyArray,this.toValues=null,this.fromValues=emptyArray,this.to=void 0,this.from=void 0,this.config=new AnimationConfig,this.immediate=!1}}function scheduleProps(e,{key:t,props:r,defaultProps:a,state:i,actions:n}){return new Promise(((s,o)=>{var l;let h,p,c=matchProp(null!=(l=r.cancel)?l:null==a?void 0:a.cancel,t);if(c)m();else{is.und(r.pause)||(i.paused=matchProp(r.pause,t));let e=null==a?void 0:a.pause;!0!==e&&(e=i.paused||matchProp(e,t)),h=callProp(r.delay||0,t),e?(i.resumeQueue.add(u),n.pause()):(n.resume(),u())}function d(){i.resumeQueue.add(u),i.timeouts.delete(p),p.cancel(),h=p.time-raf.now()}function u(){h>0&&!globals.skipAnimation?(i.delayed=!0,p=raf.setTimeout(m,h),i.pauseQueue.add(d),i.timeouts.add(p)):m()}function m(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(d),i.timeouts.delete(p),e<=(i.cancelId||0)&&(c=!0);try{n.start(_extends({},r,{callId:e,cancel:c}),s)}catch(e){o(e)}}}))}const getCombinedResult=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?getCancelledResult(e.get()):t.every((e=>e.noop))?getNoopResult(e.get()):getFinishedResult(e.get(),t.every((e=>e.finished))),getNoopResult=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),getFinishedResult=(e,t,r=!1)=>({value:e,finished:t,cancelled:r}),getCancelledResult=e=>({value:e,cancelled:!0,finished:!1});function runAsync(e,t,r,a){const{callId:i,parentId:n,onRest:s}=t,{asyncTo:o,promise:l}=r;return n||e!==o||t.reset?r.promise=(async()=>{r.asyncId=i,r.asyncTo=e;const h=getDefaultProps(t,((e,t)=>"onRest"===t?void 0:e));let p,c;const d=new Promise(((e,t)=>(p=e,c=t))),u=e=>{const t=i<=(r.cancelId||0)&&getCancelledResult(a)||i!==r.asyncId&&getFinishedResult(a,!1);if(t)throw e.result=t,c(e),e},m=(e,t)=>{const n=new BailSignal,s=new SkipAniamtionSignal;return(async()=>{if(globals.skipAnimation)throw stopAsync(r),s.result=getFinishedResult(a,!1),c(s),s;u(n);const o=is.obj(e)?_extends({},e):_extends({},t,{to:e});o.parentId=i,eachProp(h,((e,t)=>{is.und(o[t])&&(o[t]=e)}));const l=await a.start(o);return u(n),r.paused&&await new Promise((e=>{r.resumeQueue.add(e)})),l})()};let f;if(globals.skipAnimation)return stopAsync(r),getFinishedResult(a,!1);try{let t;t=is.arr(e)?(async e=>{for(const t of e)await m(t)})(e):Promise.resolve(e(m,a.stop.bind(a))),await Promise.all([t.then(p),d]),f=getFinishedResult(a.get(),!0,!1)}catch(e){if(e instanceof BailSignal)f=e.result;else{if(!(e instanceof SkipAniamtionSignal))throw e;f=e.result}}finally{i==r.asyncId&&(r.asyncId=n,r.asyncTo=n?o:void 0,r.promise=n?l:void 0)}return is.fun(s)&&raf.batchedUpdates((()=>{s(f,a,a.item)})),f})():l}function stopAsync(e,t){flush(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}class BailSignal extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise."),this.result=void 0}}class SkipAniamtionSignal extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}const isFrameValue=e=>e instanceof FrameValue;let nextId$1=1;class FrameValue extends FluidValue{constructor(...e){super(...e),this.id=nextId$1++,this.key=void 0,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=getAnimated(this);return e&&e.getValue()}to(...e){return globals.to(this,e)}interpolate(...e){return deprecateInterpolate(),globals.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){callFluidObservers(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||frameLoop.sort(this),callFluidObservers(this,{type:"priority",parent:this,priority:e})}}const $P=Symbol.for("SpringPhase"),HAS_ANIMATED=1,IS_ANIMATING=2,IS_PAUSED=4,hasAnimated=e=>(e[$P]&HAS_ANIMATED)>0,isAnimating=e=>(e[$P]&IS_ANIMATING)>0,isPaused=e=>(e[$P]&IS_PAUSED)>0,setActiveBit=(e,t)=>t?e[$P]|=IS_ANIMATING|HAS_ANIMATED:e[$P]&=~IS_ANIMATING,setPausedBit=(e,t)=>t?e[$P]|=IS_PAUSED:e[$P]&=~IS_PAUSED;class SpringValue extends FrameValue{constructor(e,t){if(super(),this.key=void 0,this.animation=new Animation,this.queue=void 0,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!is.und(e)||!is.und(t)){const r=is.obj(e)?_extends({},e):_extends({},t,{from:e});is.und(r.default)&&(r.default=!0),this.start(r)}}get idle(){return!(isAnimating(this)||this._state.asyncTo)||isPaused(this)}get goal(){return getFluidValue(this.animation.to)}get velocity(){const e=getAnimated(this);return e instanceof AnimatedValue?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return hasAnimated(this)}get isAnimating(){return isAnimating(this)}get isPaused(){return isPaused(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,r=!1;const a=this.animation;let{config:i,toValues:n}=a;const s=getPayload(a.to);!s&&hasFluidValue(a.to)&&(n=toArray(getFluidValue(a.to))),a.values.forEach(((o,l)=>{if(o.done)return;const h=o.constructor==AnimatedString?1:s?s[l].lastPosition:n[l];let p=a.immediate,c=h;if(!p){if(c=o.lastPosition,i.tension<=0)return void(o.done=!0);let t=o.elapsedTime+=e;const r=a.fromValues[l],n=null!=o.v0?o.v0:o.v0=is.arr(i.velocity)?i.velocity[l]:i.velocity;let s;if(is.und(i.duration))if(i.decay){const e=!0===i.decay?.998:i.decay,a=Math.exp(-(1-e)*t);c=r+n/(1-e)*(1-a),p=Math.abs(o.lastPosition-c)<.1,s=n*a}else{s=null==o.lastVelocity?n:o.lastVelocity;const t=i.precision||(r==h?.005:Math.min(1,.001*Math.abs(h-r))),a=i.restVelocity||t/10,l=i.clamp?0:i.bounce,d=!is.und(l),u=r==h?o.v0>0:r<h;let m,f=!1;const y=1,g=Math.ceil(e/y);for(let e=0;e<g&&(m=Math.abs(s)>a,m||(p=Math.abs(h-c)<=t,!p));++e){d&&(f=c==h||c>h==u,f&&(s=-s*l,c=h));s+=(1e-6*-i.tension*(c-h)+.001*-i.friction*s)/i.mass*y,c+=s*y}}else{let a=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,o.durationProgress>0&&(o.elapsedTime=i.duration*o.durationProgress,t=o.elapsedTime+=e)),a=(i.progress||0)+t/this._memoizedDuration,a=a>1?1:a<0?0:a,o.durationProgress=a),c=r+i.easing(a)*(h-r),s=(c-o.lastPosition)/e,p=1==a}o.lastVelocity=s,Number.isNaN(c)&&(console.warn("Got NaN while animating:",this),p=!0)}s&&!s[l].done&&(p=!1),p?o.done=!0:t=!1,o.setValue(c,i.round)&&(r=!0)}));const o=getAnimated(this),l=o.getValue();if(t){const e=getFluidValue(a.to);l===e&&!r||i.decay?r&&i.decay&&this._onChange(l):(o.setValue(e),this._onChange(e)),this._stop()}else r&&this._onChange(l)}set(e){return raf.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(isAnimating(this)){const{to:e,config:t}=this.animation;raf.batchedUpdates((()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()}))}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let r;return is.und(e)?(r=this.queue||[],this.queue=[]):r=[is.obj(e)?e:_extends({},t,{to:e})],Promise.all(r.map((e=>this._update(e)))).then((e=>getCombinedResult(this,e)))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),stopAsync(this._state,e&&this._lastCallId),raf.batchedUpdates((()=>this._stop(t,e))),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:r,from:a}=e;r=is.obj(r)?r[t]:r,(null==r||isAsyncTo(r))&&(r=void 0),a=is.obj(a)?a[t]:a,null==a&&(a=void 0);const i={to:r,from:a};return hasAnimated(this)||(e.reverse&&([r,a]=[a,r]),a=getFluidValue(a),is.und(a)?getAnimated(this)||this._set(r):this._set(a)),i}_update(e,t){let r=_extends({},e);const{key:a,defaultProps:i}=this;r.default&&Object.assign(i,getDefaultProps(r,((e,t)=>/^on/.test(t)?resolveProp(e,a):e))),mergeActiveFn(this,r,"onProps"),sendEvent(this,"onProps",r,this);const n=this._prepareNode(r);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const s=this._state;return scheduleProps(++this._lastCallId,{key:a,props:r,defaultProps:i,state:s,actions:{pause:()=>{isPaused(this)||(setPausedBit(this,!0),flushCalls(s.pauseQueue),sendEvent(this,"onPause",getFinishedResult(this,checkFinished(this,this.animation.to)),this))},resume:()=>{isPaused(this)&&(setPausedBit(this,!1),isAnimating(this)&&this._resume(),flushCalls(s.resumeQueue),sendEvent(this,"onResume",getFinishedResult(this,checkFinished(this,this.animation.to)),this))},start:this._merge.bind(this,n)}}).then((e=>{if(r.loop&&e.finished&&(!t||!e.noop)){const e=createLoopUpdate(r);if(e)return this._update(e,!0)}return e}))}_merge(e,t,r){if(t.cancel)return this.stop(!0),r(getCancelledResult(this));const a=!is.und(e.to),i=!is.und(e.from);if(a||i){if(!(t.callId>this._lastToId))return r(getCancelledResult(this));this._lastToId=t.callId}const{key:n,defaultProps:s,animation:o}=this,{to:l,from:h}=o;let{to:p=l,from:c=h}=e;!i||a||t.default&&!is.und(p)||(p=c),t.reverse&&([p,c]=[c,p]);const d=!isEqual(c,h);d&&(o.from=c),c=getFluidValue(c);const u=!isEqual(p,l);u&&this._focus(p);const m=isAsyncTo(t.to),{config:f}=o,{decay:y,velocity:g}=f;(a||i)&&(f.velocity=0),t.config&&!m&&mergeConfig(f,callProp(t.config,n),t.config!==s.config?callProp(s.config,n):void 0);let v=getAnimated(this);if(!v||is.und(p))return r(getFinishedResult(this,!0));const b=is.und(t.reset)?i&&!t.default:!is.und(c)&&matchProp(t.reset,n),x=b?c:this.get(),S=computeGoal(p),_=is.num(S)||is.arr(S)||isAnimatedString(S),T=!m&&(!_||matchProp(s.immediate||t.immediate,n));if(u){const e=getAnimatedType(p);if(e!==v.constructor){if(!T)throw Error(`Cannot animate between ${v.constructor.name} and ${e.name}, as the "to" prop suggests`);v=this._set(S)}}const C=v.constructor;let E=hasFluidValue(p),P=!1;if(!E){const e=b||!hasAnimated(this)&&d;(u||e)&&(P=isEqual(computeGoal(x),S),E=!P),(isEqual(o.immediate,T)||T)&&isEqual(f.decay,y)&&isEqual(f.velocity,g)||(E=!0)}if(P&&isAnimating(this)&&(o.changed&&!b?E=!0:E||this._stop(l)),!m&&((E||hasFluidValue(l))&&(o.values=v.getPayload(),o.toValues=hasFluidValue(p)?null:C==AnimatedString?[1]:toArray(S)),o.immediate!=T&&(o.immediate=T,T||b||this._set(l)),E)){const{onRest:e}=o;each(ACTIVE_EVENTS,(e=>mergeActiveFn(this,t,e)));const a=getFinishedResult(this,checkFinished(this,l));flushCalls(this._pendingCalls,a),this._pendingCalls.add(r),o.changed&&raf.batchedUpdates((()=>{o.changed=!b,null==e||e(a,this),b?callProp(s.onRest,a):null==o.onStart||o.onStart(a,this)}))}b&&this._set(x),m?r(runAsync(t.to,t,this._state,this)):E?this._start():isAnimating(this)&&!u?this._pendingCalls.add(r):r(getNoopResult(x))}_focus(e){const t=this.animation;e!==t.to&&(getFluidObservers(this)&&this._detach(),t.to=e,getFluidObservers(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;hasFluidValue(t)&&(addFluidObserver(t,this),isFrameValue(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;hasFluidValue(e)&&removeFluidObserver(e,this)}_set(e,t=!0){const r=getFluidValue(e);if(!is.und(r)){const e=getAnimated(this);if(!e||!isEqual(r,e.getValue())){const a=getAnimatedType(r);e&&e.constructor==a?e.setValue(r):setAnimated(this,a.create(r)),e&&raf.batchedUpdates((()=>{this._onChange(r,t)}))}}return getAnimated(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,sendEvent(this,"onStart",getFinishedResult(this,checkFinished(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),callProp(this.animation.onChange,e,this)),callProp(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;getAnimated(this).reset(getFluidValue(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),isAnimating(this)||(setActiveBit(this,!0),isPaused(this)||this._resume())}_resume(){globals.skipAnimation?this.finish():frameLoop.start(this)}_stop(e,t){if(isAnimating(this)){setActiveBit(this,!1);const r=this.animation;each(r.values,(e=>{e.done=!0})),r.toValues&&(r.onChange=r.onPause=r.onResume=void 0),callFluidObservers(this,{type:"idle",parent:this});const a=t?getCancelledResult(this.get()):getFinishedResult(this.get(),checkFinished(this,null!=e?e:r.to));flushCalls(this._pendingCalls,a),r.changed&&(r.changed=!1,sendEvent(this,"onRest",a,this))}}}function checkFinished(e,t){const r=computeGoal(t);return isEqual(computeGoal(e.get()),r)}function createLoopUpdate(e,t=e.loop,r=e.to){let a=callProp(t);if(a){const i=!0!==a&&inferTo(a),n=(i||e).reverse,s=!i||i.reset;return createUpdate(_extends({},e,{loop:t,default:!1,pause:void 0,to:!n||isAsyncTo(r)?r:void 0,from:s?e.from:void 0,reset:s},i))}}function createUpdate(e){const{to:t,from:r}=e=inferTo(e),a=new Set;return is.obj(t)&&findDefined(t,a),is.obj(r)&&findDefined(r,a),e.keys=a.size?Array.from(a):null,e}function declareUpdate(e){const t=createUpdate(e);return is.und(t.default)&&(t.default=getDefaultProps(t)),t}function findDefined(e,t){eachProp(e,((e,r)=>null!=e&&t.add(r)))}const ACTIVE_EVENTS=["onStart","onRest","onChange","onPause","onResume"];function mergeActiveFn(e,t,r){e.animation[r]=t[r]!==getDefaultProp(t,r)?resolveProp(t[r],e.key):void 0}function sendEvent(e,t,...r){var a,i,n,s;null==(a=(i=e.animation)[t])||a.call(i,...r),null==(n=(s=e.defaultProps)[t])||n.call(s,...r)}const BATCHED_EVENTS=["onStart","onChange","onRest"];let nextId=1;class Controller{constructor(e,t){this.id=nextId++,this.springs={},this.queue=[],this.ref=void 0,this._flush=void 0,this._initialProps=void 0,this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._item=void 0,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start(_extends({default:!0},e))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every((e=>e.idle&&!e.isDelayed&&!e.isPaused))}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each(((t,r)=>e[r]=t.get())),e}set(e){for(const t in e){const r=e[t];is.und(r)||this.springs[t].set(r)}}update(e){return e&&this.queue.push(createUpdate(e)),this}start(e){let{queue:t}=this;return e?t=toArray(e).map(createUpdate):this.queue=[],this._flush?this._flush(this,t):(prepareKeys(this,t),flushUpdateQueue(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const r=this.springs;each(toArray(t),(t=>r[t].stop(!!e)))}else stopAsync(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(is.und(e))this.start({pause:!0});else{const t=this.springs;each(toArray(e),(e=>t[e].pause()))}return this}resume(e){if(is.und(e))this.start({pause:!1});else{const t=this.springs;each(toArray(e),(e=>t[e].resume()))}return this}each(e){eachProp(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:r}=this._events,a=this._active.size>0,i=this._changed.size>0;(a&&!this._started||i&&!this._started)&&(this._started=!0,flush(e,(([e,t])=>{t.value=this.get(),e(t,this,this._item)})));const n=!a&&this._started,s=i||n&&r.size?this.get():null;i&&t.size&&flush(t,(([e,t])=>{t.value=s,e(t,this,this._item)})),n&&(this._started=!1,flush(r,(([e,t])=>{t.value=s,e(t,this,this._item)})))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}raf.onFrame(this._onFrame)}}function flushUpdateQueue(e,t){return Promise.all(t.map((t=>flushUpdate(e,t)))).then((t=>getCombinedResult(e,t)))}async function flushUpdate(e,t,r){const{keys:a,to:i,from:n,loop:s,onRest:o,onResolve:l}=t,h=is.obj(t.default)&&t.default;s&&(t.loop=!1),!1===i&&(t.to=null),!1===n&&(t.from=null);const p=is.arr(i)||is.fun(i)?i:void 0;p?(t.to=void 0,t.onRest=void 0,h&&(h.onRest=void 0)):each(BATCHED_EVENTS,(r=>{const a=t[r];if(is.fun(a)){const i=e._events[r];t[r]=({finished:e,cancelled:t})=>{const r=i.get(a);r?(e||(r.finished=!1),t&&(r.cancelled=!0)):i.set(a,{value:null,finished:e||!1,cancelled:t||!1})},h&&(h[r]=t[r])}}));const c=e._state;t.pause===!c.paused?(c.paused=t.pause,flushCalls(t.pause?c.pauseQueue:c.resumeQueue)):c.paused&&(t.pause=!0);const d=(a||Object.keys(e.springs)).map((r=>e.springs[r].start(t))),u=!0===t.cancel||!0===getDefaultProp(t,"cancel");(p||u&&c.asyncId)&&d.push(scheduleProps(++e._lastAsyncId,{props:t,state:c,actions:{pause:noop,resume:noop,start(t,r){u?(stopAsync(c,e._lastAsyncId),r(getCancelledResult(e))):(t.onRest=o,r(runAsync(p,t,c,e)))}}})),c.paused&&await new Promise((e=>{c.resumeQueue.add(e)}));const m=getCombinedResult(e,await Promise.all(d));if(s&&m.finished&&(!r||!m.noop)){const r=createLoopUpdate(t,s,i);if(r)return prepareKeys(e,[r]),flushUpdate(e,r,!0)}return l&&raf.batchedUpdates((()=>l(m,e,e.item))),m}function getSprings(e,t){const r=_extends({},e.springs);return t&&each(toArray(t),(e=>{is.und(e.keys)&&(e=createUpdate(e)),is.obj(e.to)||(e=_extends({},e,{to:void 0})),prepareSprings(r,e,(e=>createSpring(e)))})),setSprings(e,r),r}function setSprings(e,t){eachProp(t,((t,r)=>{e.springs[r]||(e.springs[r]=t,addFluidObserver(t,e))}))}function createSpring(e,t){const r=new SpringValue;return r.key=e,t&&addFluidObserver(r,t),r}function prepareSprings(e,t,r){t.keys&&each(t.keys,(a=>{(e[a]||(e[a]=r(a)))._prepareNode(t)}))}function prepareKeys(e,t){each(t,(t=>{prepareSprings(e.springs,t,(t=>createSpring(t,e)))}))}function _objectWithoutPropertiesLoose$2(e,t){if(null==e)return{};var r,a,i={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(i[r]=e[r]);return i}const _excluded$3=["children"],SpringContext=e=>{let{children:t}=e,r=_objectWithoutPropertiesLoose$2(e,_excluded$3);const a=useContext(ctx),i=r.pause||!!a.pause,n=r.immediate||!!a.immediate;r=useMemoOne((()=>({pause:i,immediate:n})),[i,n]);const{Provider:s}=ctx;return React.createElement(s,{value:r},t)},ctx=makeContext(SpringContext,{});function makeContext(e,t){return Object.assign(e,React.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}SpringContext.Provider=ctx.Provider,SpringContext.Consumer=ctx.Consumer;const SpringRef=()=>{const e=[],t=function(t){deprecateDirectCall();const a=[];return each(e,((e,i)=>{if(is.und(t))a.push(e.start());else{const n=r(t,e,i);n&&a.push(e.start(n))}})),a};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){const r=e.indexOf(t);~r&&e.splice(r,1)},t.pause=function(){return each(e,(e=>e.pause(...arguments))),this},t.resume=function(){return each(e,(e=>e.resume(...arguments))),this},t.set=function(t){each(e,(e=>e.set(t)))},t.start=function(t){const r=[];return each(e,((e,a)=>{if(is.und(t))r.push(e.start());else{const i=this._getProps(t,e,a);i&&r.push(e.start(i))}})),r},t.stop=function(){return each(e,(e=>e.stop(...arguments))),this},t.update=function(t){return each(e,((e,r)=>e.update(this._getProps(t,e,r)))),this};const r=function(e,t,r){return is.fun(e)?e(r,t):e};return t._getProps=r,t};function useSprings(e,t,r){const a=is.fun(t)&&t;a&&!r&&(r=[]);const i=useMemo((()=>a||3==arguments.length?SpringRef():void 0),[]),n=useRef(0),s=useForceUpdate(),o=useMemo((()=>({ctrls:[],queue:[],flush(e,t){const r=getSprings(e,t);return n.current>0&&!o.queue.length&&!Object.keys(r).some((t=>!e.springs[t]))?flushUpdateQueue(e,t):new Promise((a=>{setSprings(e,r),o.queue.push((()=>{a(flushUpdateQueue(e,t))})),s()}))}})),[]),l=useRef([...o.ctrls]),h=[],p=usePrev(e)||0;function c(e,r){for(let i=e;i<r;i++){const e=l.current[i]||(l.current[i]=new Controller(null,o.flush)),r=a?a(i,e):t[i];r&&(h[i]=declareUpdate(r))}}useMemo((()=>{each(l.current.slice(e,p),(e=>{detachRefs(e,i),e.stop(!0)})),l.current.length=e,c(p,e)}),[e]),useMemo((()=>{c(0,Math.min(p,e))}),r);const d=l.current.map(((e,t)=>getSprings(e,h[t]))),u=useContext(SpringContext),m=usePrev(u),f=u!==m&&hasProps(u);useLayoutEffect((()=>{n.current++,o.ctrls=l.current;const{queue:e}=o;e.length&&(o.queue=[],each(e,(e=>e()))),each(l.current,((e,t)=>{null==i||i.add(e),f&&e.start({default:u});const r=h[t];r&&(replaceRef(e,r.ref),e.ref?e.queue.push(r):e.start(r))}))})),useOnce((()=>()=>{each(o.ctrls,(e=>e.stop(!0)))}));const y=d.map((e=>_extends({},e)));return i?[y,i]:y}function useSpring(e,t){const r=is.fun(e),[[a],i]=useSprings(1,r?e:[e],r?t||[]:t);return r||2==arguments.length?[a,i]:a}let TransitionPhase;!function(e){e.MOUNT="mount",e.ENTER="enter",e.UPDATE="update",e.LEAVE="leave"}(TransitionPhase||(TransitionPhase={}));class Interpolation extends FrameValue{constructor(e,t){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=e,this.calc=createInterpolator(...t);const r=this._get(),a=getAnimatedType(r);setAnimated(this,a.create(r))}advance(e){const t=this._get();isEqual(t,this.get())||(getAnimated(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&checkIdle(this._active)&&becomeIdle(this)}_get(){const e=is.arr(this.source)?this.source.map(getFluidValue):toArray(getFluidValue(this.source));return this.calc(...e)}_start(){this.idle&&!checkIdle(this._active)&&(this.idle=!1,each(getPayload(this),(e=>{e.done=!1})),globals.skipAnimation?(raf.batchedUpdates((()=>this.advance())),becomeIdle(this)):frameLoop.start(this))}_attach(){let e=1;each(toArray(this.source),(t=>{hasFluidValue(t)&&addFluidObserver(t,this),isFrameValue(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){each(toArray(this.source),(e=>{hasFluidValue(e)&&removeFluidObserver(e,this)})),this._active.clear(),becomeIdle(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=toArray(this.source).reduce(((e,t)=>Math.max(e,(isFrameValue(t)?t.priority:0)+1)),0))}}function isIdle(e){return!1!==e.idle}function checkIdle(e){return!e.size||Array.from(e).every(isIdle)}function becomeIdle(e){e.idle||(e.idle=!0,each(getPayload(e),(e=>{e.done=!0})),callFluidObservers(e,{type:"idle",parent:e}))}function _objectWithoutPropertiesLoose$1(e,t){if(null==e)return{};var r,a,i={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(i[r]=e[r]);return i}globals.assign({createStringInterpolator:createStringInterpolator,to:(e,t)=>new Interpolation(e,t)});const _excluded$2=["style","children","scrollTop","scrollLeft"],isCustomPropRE=/^--/;function dangerousStyleValue(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||isCustomPropRE.test(e)||isUnitlessNumber.hasOwnProperty(e)&&isUnitlessNumber[e]?(""+t).trim():t+"px"}const attributeCache={};function applyAnimatedValues(e,t){if(!e.nodeType||!e.setAttribute)return!1;const r="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,a=t,{style:i,children:n,scrollTop:s,scrollLeft:o}=a,l=_objectWithoutPropertiesLoose$1(a,_excluded$2),h=Object.values(l),p=Object.keys(l).map((t=>r||e.hasAttribute(t)?t:attributeCache[t]||(attributeCache[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())))));void 0!==n&&(e.textContent=n);for(let t in i)if(i.hasOwnProperty(t)){const r=dangerousStyleValue(t,i[t]);isCustomPropRE.test(t)?e.style.setProperty(t,r):e.style[t]=r}p.forEach(((t,r)=>{e.setAttribute(t,h[r])})),void 0!==s&&(e.scrollTop=s),void 0!==o&&(e.scrollLeft=o)}let isUnitlessNumber={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};const prefixKey=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),prefixes=["Webkit","Ms","Moz","O"];isUnitlessNumber=Object.keys(isUnitlessNumber).reduce(((e,t)=>(prefixes.forEach((r=>e[prefixKey(r,t)]=e[t])),e)),isUnitlessNumber);const _excluded$1$1=["x","y","z"],domTransforms=/^(matrix|translate|scale|rotate|skew)/,pxTransforms=/^(translate)/,degTransforms=/^(rotate|skew)/,addUnit=(e,t)=>is.num(e)&&0!==e?e+t:e,isValueIdentity=(e,t)=>is.arr(e)?e.every((e=>isValueIdentity(e,t))):is.num(e)?e===t:parseFloat(e)===t;class AnimatedStyle extends AnimatedObject{constructor(e){let{x:t,y:r,z:a}=e,i=_objectWithoutPropertiesLoose$1(e,_excluded$1$1);const n=[],s=[];(t||r||a)&&(n.push([t||0,r||0,a||0]),s.push((e=>[`translate3d(${e.map((e=>addUnit(e,"px"))).join(",")})`,isValueIdentity(e,0)]))),eachProp(i,((e,t)=>{if("transform"===t)n.push([e||""]),s.push((e=>[e,""===e]));else if(domTransforms.test(t)){if(delete i[t],is.und(e))return;const r=pxTransforms.test(t)?"px":degTransforms.test(t)?"deg":"";n.push(toArray(e)),s.push("rotate3d"===t?([e,t,a,i])=>[`rotate3d(${e},${t},${a},${addUnit(i,r)})`,isValueIdentity(i,0)]:e=>[`${t}(${e.map((e=>addUnit(e,r))).join(",")})`,isValueIdentity(e,t.startsWith("scale")?1:0)])}})),n.length&&(i.transform=new FluidTransform(n,s)),super(i)}}class FluidTransform extends FluidValue{constructor(e,t){super(),this._value=null,this.inputs=e,this.transforms=t}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return each(this.inputs,((r,a)=>{const i=getFluidValue(r[0]),[n,s]=this.transforms[a](is.arr(i)?i:r.map(getFluidValue));e+=" "+n,t=t&&s})),t?"none":e}observerAdded(e){1==e&&each(this.inputs,(e=>each(e,(e=>hasFluidValue(e)&&addFluidObserver(e,this)))))}observerRemoved(e){0==e&&each(this.inputs,(e=>each(e,(e=>hasFluidValue(e)&&removeFluidObserver(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),callFluidObservers(this,e)}}const primitives=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],_excluded=["scrollTop","scrollLeft"];globals.assign({batchedUpdates:unstable_batchedUpdates,createStringInterpolator:createStringInterpolator,colors:colors});const host=createHost(primitives,{applyAnimatedValues:applyAnimatedValues,createAnimatedStyle:e=>new AnimatedStyle(e),getComponentProps:e=>_objectWithoutPropertiesLoose$1(e,_excluded)}),animated=host.animated,AccordionContext=React__default.createContext(!1),BaseColorSet={Brand:{1:"#EF413D",2:"#F26664",3:"#F58E8B",4:"#F9B5B2",5:"#FDDDD7",6:"#FFEEEA"},Primary:"#1C76D5",PrimaryDark:"#1869BF",Secondary:"#0056b3",Accent:{Dark:{1:"#465A88",2:"#556D99",3:"#8D8DBF"},Light:{1:"#57A9FF",2:"#81BFFF",3:"#BED7FF",4:"#E2ECFD",5:"#F6F8FF",6:"#FBFCFE"}},Neutral:{1:"#282828",2:"#424242",3:"#686868",4:"#A4A4A4",5:"#E0E4E5",6:"#ECEFEF",7:"#F8F8F8",8:"#FFFFFF"},Validation:{Green:{Text:"#097123",Icon:"#4FC029",Border:"#95D97F",Background:"#F9FDF8"},Orange:{Text:"#B34E00",Icon:"#FEAB10",Border:"#F9CB77",Background:"#FFFCF7",Badge:"#F57F17"},Red:{Text:"#C60000",Icon:"#C60000",Border:"#DD6666",Background:"#FDF7F7"}}},BookingSGColorSet={Brand:{1:"#EF413D",2:"#F26664",3:"#F58E8B",4:"#F9B5B2",5:"#FDDDD7",6:"#FFEEEA"},Primary:"#6F4AB8",PrimaryDark:"#6443A6",Secondary:"#6443A6",Accent:{Dark:{1:"#355985",2:"#68819D",3:"#9AABBE"},Light:{1:"#9F82D9",2:"#B5A5D7",3:"#CEC3E4 ",4:"#E2DBEF",5:"#F2EFF8",6:"#F7F6FB"}},Neutral:{1:"#282828",2:"#424242",3:"#686868",4:"#A4A4A4",5:"#E0E4E5",6:"#ECEFEF",7:"#F8F8F8",8:"#FFFFFF"},Validation:{Green:{Text:"#097123",Icon:"#4FC029",Border:"#95D97F",Background:"#F9FDF8"},Orange:{Text:"#B34E00",Icon:"#FEAB10",Border:"#F9CB77",Background:"#FFFCF7",Badge:"#F57F17"},Red:{Text:"#C60000",Icon:"#C60000",Border:"#DD6666",Background:"#FDF7F7"}}};var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},isArray$8=Array.isArray,isArray_1=isArray$8,freeGlobal$1="object"==typeof commonjsGlobal&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,_freeGlobal=freeGlobal$1,freeGlobal=_freeGlobal,freeSelf="object"==typeof self&&self&&self.Object===Object&&self,root$9=freeGlobal||freeSelf||Function("return this")(),_root=root$9,root$8=_root,Symbol$5=root$8.Symbol,_Symbol=Symbol$5,Symbol$4=_Symbol,objectProto$b=Object.prototype,hasOwnProperty$8=objectProto$b.hasOwnProperty,nativeObjectToString$1=objectProto$b.toString,symToStringTag$1=Symbol$4?Symbol$4.toStringTag:void 0;function getRawTag$1(e){var t=hasOwnProperty$8.call(e,symToStringTag$1),r=e[symToStringTag$1];try{e[symToStringTag$1]=void 0;var a=!0}catch(e){}var i=nativeObjectToString$1.call(e);return a&&(t?e[symToStringTag$1]=r:delete e[symToStringTag$1]),i}var _getRawTag=getRawTag$1,objectProto$a=Object.prototype,nativeObjectToString=objectProto$a.toString;function objectToString$1(e){return nativeObjectToString.call(e)}var _objectToString=objectToString$1,Symbol$3=_Symbol,getRawTag=_getRawTag,objectToString=_objectToString,nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$3?Symbol$3.toStringTag:void 0;function baseGetTag$5(e){return null==e?void 0===e?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(e)?getRawTag(e):objectToString(e)}var _baseGetTag=baseGetTag$5;function isObjectLike$5(e){return null!=e&&"object"==typeof e}var isObjectLike_1=isObjectLike$5,baseGetTag$4=_baseGetTag,isObjectLike$4=isObjectLike_1,symbolTag$1="[object Symbol]";function isSymbol$4(e){return"symbol"==typeof e||isObjectLike$4(e)&&baseGetTag$4(e)==symbolTag$1}var isSymbol_1=isSymbol$4,isArray$7=isArray_1,isSymbol$3=isSymbol_1,reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/;function isKey$3(e,t){if(isArray$7(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!isSymbol$3(e))||(reIsPlainProp.test(e)||!reIsDeepProp.test(e)||null!=t&&e in Object(t))}var _isKey=isKey$3;function isObject$5(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var isObject_1=isObject$5,baseGetTag$3=_baseGetTag,isObject$4=isObject_1,asyncTag="[object AsyncFunction]",funcTag$1="[object Function]",genTag="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction$2(e){if(!isObject$4(e))return!1;var t=baseGetTag$3(e);return t==funcTag$1||t==genTag||t==asyncTag||t==proxyTag}var isFunction_1=isFunction$2,root$7=_root,coreJsData$1=root$7["__core-js_shared__"],_coreJsData=coreJsData$1,coreJsData=_coreJsData,maskSrcKey=(uid=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||""),uid?"Symbol(src)_1."+uid:""),uid;function isMasked$1(e){return!!maskSrcKey&&maskSrcKey in e}var _isMasked=isMasked$1,funcProto$1=Function.prototype,funcToString$1=funcProto$1.toString;function toSource$2(e){if(null!=e){try{return funcToString$1.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var _toSource=toSource$2,isFunction$1=isFunction_1,isMasked=_isMasked,isObject$3=isObject_1,toSource$1=_toSource,reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto=Function.prototype,objectProto$9=Object.prototype,funcToString=funcProto.toString,hasOwnProperty$7=objectProto$9.hasOwnProperty,reIsNative=RegExp("^"+funcToString.call(hasOwnProperty$7).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative$1(e){return!(!isObject$3(e)||isMasked(e))&&(isFunction$1(e)?reIsNative:reIsHostCtor).test(toSource$1(e))}var _baseIsNative=baseIsNative$1;function getValue$2(e,t){return null==e?void 0:e[t]}var _getValue=getValue$2,baseIsNative=_baseIsNative,getValue$1=_getValue;function getNative$6(e,t){var r=getValue$1(e,t);return baseIsNative(r)?r:void 0}var _getNative=getNative$6,getNative$5=_getNative,nativeCreate$4=getNative$5(Object,"create"),_nativeCreate=nativeCreate$4,nativeCreate$3=_nativeCreate;function hashClear$1(){this.__data__=nativeCreate$3?nativeCreate$3(null):{},this.size=0}var _hashClear=hashClear$1;function hashDelete$1(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var _hashDelete=hashDelete$1,nativeCreate$2=_nativeCreate,HASH_UNDEFINED$2="__lodash_hash_undefined__",objectProto$8=Object.prototype,hasOwnProperty$6=objectProto$8.hasOwnProperty;function hashGet$1(e){var t=this.__data__;if(nativeCreate$2){var r=t[e];return r===HASH_UNDEFINED$2?void 0:r}return hasOwnProperty$6.call(t,e)?t[e]:void 0}var _hashGet=hashGet$1,nativeCreate$1=_nativeCreate,objectProto$7=Object.prototype,hasOwnProperty$5=objectProto$7.hasOwnProperty;function hashHas$1(e){var t=this.__data__;return nativeCreate$1?void 0!==t[e]:hasOwnProperty$5.call(t,e)}var _hashHas=hashHas$1,nativeCreate=_nativeCreate,HASH_UNDEFINED$1="__lodash_hash_undefined__";function hashSet$1(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=nativeCreate&&void 0===t?HASH_UNDEFINED$1:t,this}var _hashSet=hashSet$1,hashClear=_hashClear,hashDelete=_hashDelete,hashGet=_hashGet,hashHas=_hashHas,hashSet=_hashSet;function Hash$1(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}Hash$1.prototype.clear=hashClear,Hash$1.prototype.delete=hashDelete,Hash$1.prototype.get=hashGet,Hash$1.prototype.has=hashHas,Hash$1.prototype.set=hashSet;var _Hash=Hash$1;function listCacheClear$1(){this.__data__=[],this.size=0}var _listCacheClear=listCacheClear$1;function eq$2(e,t){return e===t||e!=e&&t!=t}var eq_1=eq$2,eq$1=eq_1;function assocIndexOf$4(e,t){for(var r=e.length;r--;)if(eq$1(e[r][0],t))return r;return-1}var _assocIndexOf=assocIndexOf$4,assocIndexOf$3=_assocIndexOf,arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete$1(e){var t=this.__data__,r=assocIndexOf$3(t,e);return!(r<0)&&(r==t.length-1?t.pop():splice.call(t,r,1),--this.size,!0)}var _listCacheDelete=listCacheDelete$1,assocIndexOf$2=_assocIndexOf;function listCacheGet$1(e){var t=this.__data__,r=assocIndexOf$2(t,e);return r<0?void 0:t[r][1]}var _listCacheGet=listCacheGet$1,assocIndexOf$1=_assocIndexOf;function listCacheHas$1(e){return assocIndexOf$1(this.__data__,e)>-1}var _listCacheHas=listCacheHas$1,assocIndexOf=_assocIndexOf;function listCacheSet$1(e,t){var r=this.__data__,a=assocIndexOf(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this}var _listCacheSet=listCacheSet$1,listCacheClear=_listCacheClear,listCacheDelete=_listCacheDelete,listCacheGet=_listCacheGet,listCacheHas=_listCacheHas,listCacheSet=_listCacheSet;function ListCache$4(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}ListCache$4.prototype.clear=listCacheClear,ListCache$4.prototype.delete=listCacheDelete,ListCache$4.prototype.get=listCacheGet,ListCache$4.prototype.has=listCacheHas,ListCache$4.prototype.set=listCacheSet;var _ListCache=ListCache$4,getNative$4=_getNative,root$6=_root,Map$4=getNative$4(root$6,"Map"),_Map=Map$4,Hash=_Hash,ListCache$3=_ListCache,Map$3=_Map;function mapCacheClear$1(){this.size=0,this.__data__={hash:new Hash,map:new(Map$3||ListCache$3),string:new Hash}}var _mapCacheClear=mapCacheClear$1;function isKeyable$1(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}var _isKeyable=isKeyable$1,isKeyable=_isKeyable;function getMapData$4(e,t){var r=e.__data__;return isKeyable(t)?r["string"==typeof t?"string":"hash"]:r.map}var _getMapData=getMapData$4,getMapData$3=_getMapData;function mapCacheDelete$1(e){var t=getMapData$3(this,e).delete(e);return this.size-=t?1:0,t}var _mapCacheDelete=mapCacheDelete$1,getMapData$2=_getMapData;function mapCacheGet$1(e){return getMapData$2(this,e).get(e)}var _mapCacheGet=mapCacheGet$1,getMapData$1=_getMapData;function mapCacheHas$1(e){return getMapData$1(this,e).has(e)}var _mapCacheHas=mapCacheHas$1,getMapData=_getMapData;function mapCacheSet$1(e,t){var r=getMapData(this,e),a=r.size;return r.set(e,t),this.size+=r.size==a?0:1,this}var _mapCacheSet=mapCacheSet$1,mapCacheClear=_mapCacheClear,mapCacheDelete=_mapCacheDelete,mapCacheGet=_mapCacheGet,mapCacheHas=_mapCacheHas,mapCacheSet=_mapCacheSet;function MapCache$3(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}MapCache$3.prototype.clear=mapCacheClear,MapCache$3.prototype.delete=mapCacheDelete,MapCache$3.prototype.get=mapCacheGet,MapCache$3.prototype.has=mapCacheHas,MapCache$3.prototype.set=mapCacheSet;var _MapCache=MapCache$3,MapCache$2=_MapCache,FUNC_ERROR_TEXT$1="Expected a function";function memoize$1(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(FUNC_ERROR_TEXT$1);var r=function(){var a=arguments,i=t?t.apply(this,a):a[0],n=r.cache;if(n.has(i))return n.get(i);var s=e.apply(this,a);return r.cache=n.set(i,s)||n,s};return r.cache=new(memoize$1.Cache||MapCache$2),r}memoize$1.Cache=MapCache$2;var memoize_1=memoize$1,memoize=memoize_1,MAX_MEMOIZE_SIZE=500;function memoizeCapped$1(e){var t=memoize(e,(function(e){return r.size===MAX_MEMOIZE_SIZE&&r.clear(),e})),r=t.cache;return t}var _memoizeCapped=memoizeCapped$1,memoizeCapped=_memoizeCapped,rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reEscapeChar=/\\(\\)?/g,stringToPath$1=memoizeCapped((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(rePropName,(function(e,r,a,i){t.push(a?i.replace(reEscapeChar,"$1"):r||e)})),t})),_stringToPath=stringToPath$1;function arrayMap$1(e,t){for(var r=-1,a=null==e?0:e.length,i=Array(a);++r<a;)i[r]=t(e[r],r,e);return i}var _arrayMap=arrayMap$1,Symbol$2=_Symbol,arrayMap=_arrayMap,isArray$6=isArray_1,isSymbol$2=isSymbol_1,INFINITY$2=1/0,symbolProto$1=Symbol$2?Symbol$2.prototype:void 0,symbolToString=symbolProto$1?symbolProto$1.toString:void 0;function baseToString$1(e){if("string"==typeof e)return e;if(isArray$6(e))return arrayMap(e,baseToString$1)+"";if(isSymbol$2(e))return symbolToString?symbolToString.call(e):"";var t=e+"";return"0"==t&&1/e==-INFINITY$2?"-0":t}var _baseToString=baseToString$1,baseToString=_baseToString;function toString$1(e){return null==e?"":baseToString(e)}var toString_1=toString$1,isArray$5=isArray_1,isKey$2=_isKey,stringToPath=_stringToPath,toString=toString_1;function castPath$2(e,t){return isArray$5(e)?e:isKey$2(e,t)?[e]:stringToPath(toString(e))}var _castPath=castPath$2,isSymbol$1=isSymbol_1,INFINITY$1=1/0;function toKey$4(e){if("string"==typeof e||isSymbol$1(e))return e;var t=e+"";return"0"==t&&1/e==-INFINITY$1?"-0":t}var _toKey=toKey$4,castPath$1=_castPath,toKey$3=_toKey;function baseGet$2(e,t){for(var r=0,a=(t=castPath$1(t,e)).length;null!=e&&r<a;)e=e[toKey$3(t[r++])];return r&&r==a?e:void 0}var _baseGet=baseGet$2,baseGet$1=_baseGet;function get$1(e,t,r){var a=null==e?void 0:baseGet$1(e,t);return void 0===a?r:a}var get_1=get$1;const getValue=(e,t,r)=>t?get_1(r,t)||get_1(e,t):r||e,getCollection=(e,t)=>{const r=t||e.defaultValue;return get_1(e.collections,r)};var ThemeContextKeys;!function(e){e.colorScheme="colorScheme",e.layout="layout",e.textStyleScheme="textStyleScheme"}(ThemeContextKeys||(ThemeContextKeys={}));const ColorSpec={collections:{base:BaseColorSet,bookingsg:BookingSGColorSet},defaultValue:"base"},getThemeColors=e=>t=>{const r=t.theme,a=getCollection(ColorSpec,r[ThemeContextKeys.colorScheme]);return r.options&&r.options.color?getValue(a,e,r.options.color):getValue(a,e)},Color={Brand:{1:getThemeColors("Brand.1"),2:getThemeColors("Brand.2"),3:getThemeColors("Brand.3"),4:getThemeColors("Brand.4"),5:getThemeColors("Brand.5"),6:getThemeColors("Brand.6")},Primary:getThemeColors("Primary"),PrimaryDark:getThemeColors("PrimaryDark"),Secondary:getThemeColors("Secondary"),Accent:{Light:{1:getThemeColors("Accent.Light.1"),2:getThemeColors("Accent.Light.2"),3:getThemeColors("Accent.Light.3"),4:getThemeColors("Accent.Light.4"),5:getThemeColors("Accent.Light.5"),6:getThemeColors("Accent.Light.6")},Dark:{1:getThemeColors("Accent.Dark.1"),2:getThemeColors("Accent.Dark.2"),3:getThemeColors("Accent.Dark.3")}},Neutral:{1:getThemeColors("Neutral.1"),2:getThemeColors("Neutral.2"),3:getThemeColors("Neutral.3"),4:getThemeColors("Neutral.4"),5:getThemeColors("Neutral.5"),6:getThemeColors("Neutral.6"),7:getThemeColors("Neutral.7"),8:getThemeColors("Neutral.8")},Validation:{Green:{Text:getThemeColors("Validation.Green.Text"),Icon:getThemeColors("Validation.Green.Icon"),Border:getThemeColors("Validation.Green.Border"),Background:getThemeColors("Validation.Green.Background")},Orange:{Text:getThemeColors("Validation.Orange.Text"),Icon:getThemeColors("Validation.Orange.Icon"),Border:getThemeColors("Validation.Orange.Border"),Background:getThemeColors("Validation.Orange.Background"),Badge:getThemeColors("Validation.Orange.Badge")},Red:{Text:getThemeColors("Validation.Red.Text"),Icon:getThemeColors("Validation.Red.Icon"),Border:getThemeColors("Validation.Red.Border"),Background:getThemeColors("Validation.Red.Background")}}},SVG=styled.svg`
|
|
1
|
+
import{jsx,jsxs,Fragment}from"react/jsx-runtime";import*as React from"react";import React__default,{cloneElement,useRef,useState,isValidElement,createRef,PureComponent,useEffect,useLayoutEffect as useLayoutEffect$1,forwardRef,useCallback,useContext,useMemo,createElement}from"react";import ReactDOM,{findDOMNode,unstable_batchedUpdates}from"react-dom";import styled,{css,keyframes}from"styled-components";var extendStatics=function(e,t){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},extendStatics(e,t)};function __extends$1(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}extendStatics(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var __assign$1=function(){return __assign$1=Object.assign||function(e){for(var t,r=1,a=arguments.length;r<a;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},__assign$1.apply(this,arguments)};function __rest$2(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(r[a[i]]=e[a[i]])}return r}var commonjsGlobal$1="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function isObject$3$1(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var isObject_1$1=isObject$3$1,freeGlobal$1$1="object"==typeof commonjsGlobal$1&&commonjsGlobal$1&&commonjsGlobal$1.Object===Object&&commonjsGlobal$1,_freeGlobal$1=freeGlobal$1$1,freeGlobal$2=_freeGlobal$1,freeSelf$1="object"==typeof self&&self&&self.Object===Object&&self,root$2$1=freeGlobal$2||freeSelf$1||Function("return this")(),_root$1=root$2$1,root$1$1=_root$1,now$1$1=function(){return root$1$1.Date.now()},now_1$1=now$1$1,reWhitespace$1=/\s/;function trimmedEndIndex$1$1(e){for(var t=e.length;t--&&reWhitespace$1.test(e.charAt(t)););return t}var _trimmedEndIndex$1=trimmedEndIndex$1$1,trimmedEndIndex$2=_trimmedEndIndex$1,reTrimStart$1=/^\s+/;function baseTrim$1$1(e){return e?e.slice(0,trimmedEndIndex$2(e)+1).replace(reTrimStart$1,""):e}var _baseTrim$1=baseTrim$1$1,root$a=_root$1,Symbol$2$1=root$a.Symbol,_Symbol$1=Symbol$2$1,Symbol$1$1=_Symbol$1,objectProto$1$1=Object.prototype,hasOwnProperty$a=objectProto$1$1.hasOwnProperty,nativeObjectToString$1$1=objectProto$1$1.toString,symToStringTag$1$1=Symbol$1$1?Symbol$1$1.toStringTag:void 0;function getRawTag$1$1(e){var t=hasOwnProperty$a.call(e,symToStringTag$1$1),r=e[symToStringTag$1$1];try{e[symToStringTag$1$1]=void 0;var a=!0}catch(e){}var i=nativeObjectToString$1$1.call(e);return a&&(t?e[symToStringTag$1$1]=r:delete e[symToStringTag$1$1]),i}var _getRawTag$1=getRawTag$1$1,objectProto$c=Object.prototype,nativeObjectToString$2=objectProto$c.toString;function objectToString$1$1(e){return nativeObjectToString$2.call(e)}var _objectToString$1=objectToString$1$1,Symbol$6=_Symbol$1,getRawTag$2=_getRawTag$1,objectToString$2=_objectToString$1,nullTag$1="[object Null]",undefinedTag$1="[object Undefined]",symToStringTag$2=Symbol$6?Symbol$6.toStringTag:void 0;function baseGetTag$1$1(e){return null==e?void 0===e?undefinedTag$1:nullTag$1:symToStringTag$2&&symToStringTag$2 in Object(e)?getRawTag$2(e):objectToString$2(e)}var _baseGetTag$1=baseGetTag$1$1;function isObjectLike$1$1(e){return null!=e&&"object"==typeof e}var isObjectLike_1$1=isObjectLike$1$1,baseGetTag$6=_baseGetTag$1,isObjectLike$6=isObjectLike_1$1,symbolTag$2="[object Symbol]";function isSymbol$1$1(e){return"symbol"==typeof e||isObjectLike$6(e)&&baseGetTag$6(e)==symbolTag$2}var isSymbol_1$1=isSymbol$1$1,baseTrim$2=_baseTrim$1,isObject$2$1=isObject_1$1,isSymbol$5=isSymbol_1$1,NAN$1=NaN,reIsBadHex$1=/^[-+]0x[0-9a-f]+$/i,reIsBinary$1=/^0b[01]+$/i,reIsOctal$1=/^0o[0-7]+$/i,freeParseInt$1=parseInt;function toNumber$1$1(e){if("number"==typeof e)return e;if(isSymbol$5(e))return NAN$1;if(isObject$2$1(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=isObject$2$1(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=baseTrim$2(e);var r=reIsBinary$1.test(e);return r||reIsOctal$1.test(e)?freeParseInt$1(e.slice(2),r?2:8):reIsBadHex$1.test(e)?NAN$1:+e}var toNumber_1$1=toNumber$1$1,isObject$1$1=isObject_1$1,now$2=now_1$1,toNumber$3=toNumber_1$1,FUNC_ERROR_TEXT$1$1="Expected a function",nativeMax$2=Math.max,nativeMin$1=Math.min;function debounce$1(e,t,r){var a,i,n,s,o,l,h=0,c=!1,d=!1,p=!0;if("function"!=typeof e)throw new TypeError(FUNC_ERROR_TEXT$1$1);function u(t){var r=a,n=i;return a=i=void 0,h=t,s=e.apply(n,r)}function m(e){return h=e,o=setTimeout(y,t),c?u(e):s}function f(e){var r=e-l;return void 0===l||r>=t||r<0||d&&e-h>=n}function y(){var e=now$2();if(f(e))return g(e);o=setTimeout(y,function(e){var r=t-(e-l);return d?nativeMin$1(r,n-(e-h)):r}(e))}function g(e){return o=void 0,p&&a?u(e):(a=i=void 0,s)}function v(){var e=now$2(),r=f(e);if(a=arguments,i=this,l=e,r){if(void 0===o)return m(l);if(d)return clearTimeout(o),o=setTimeout(y,t),u(l)}return void 0===o&&(o=setTimeout(y,t)),s}return t=toNumber$3(t)||0,isObject$1$1(r)&&(c=!!r.leading,n=(d="maxWait"in r)?nativeMax$2(toNumber$3(r.maxWait)||0,t):n,p="trailing"in r?!!r.trailing:p),v.cancel=function(){void 0!==o&&clearTimeout(o),h=0,a=l=i=o=void 0},v.flush=function(){return void 0===o?s:g(now$2())},v}var debounce_1$1=debounce$1,debounce$2=debounce_1$1,isObject$6=isObject_1$1,FUNC_ERROR_TEXT$2="Expected a function";function throttle(e,t,r){var a=!0,i=!0;if("function"!=typeof e)throw new TypeError(FUNC_ERROR_TEXT$2);return isObject$6(r)&&(a="leading"in r?!!r.leading:a,i="trailing"in r?!!r.trailing:i),debounce$2(e,t,{leading:a,maxWait:t,trailing:i})}var throttle_1=throttle,patchResizeHandler=function(e,t,r,a){switch(t){case"debounce":return debounce_1$1(e,r,a);case"throttle":return throttle_1(e,r,a);default:return e}},isFunction$3=function(e){return"function"==typeof e},isSSR$1=function(){return"undefined"==typeof window},isDOMElement=function(e){return e instanceof Element||e instanceof HTMLDocument},createNotifier=function(e,t,r,a){return function(i){var n=i.width,s=i.height;t((function(t){return t.width===n&&t.height===s||t.width===n&&!a||t.height===s&&!r?t:(e&&isFunction$3(e)&&e(n,s),{width:n,height:s})}))}};!function(e){function t(t){var r=e.call(this,t)||this;r.cancelHandler=function(){r.resizeHandler&&r.resizeHandler.cancel&&(r.resizeHandler.cancel(),r.resizeHandler=null)},r.attachObserver=function(){var e=r.props,t=e.targetRef,a=e.observerOptions;if(!isSSR$1()){t&&t.current&&(r.targetRef.current=t.current);var i=r.getElement();i&&(r.observableElement&&r.observableElement===i||(r.observableElement=i,r.resizeObserver.observe(i,a)))}},r.getElement=function(){var e=r.props,t=e.querySelector,a=e.targetDomEl;if(isSSR$1())return null;if(t)return document.querySelector(t);if(a&&isDOMElement(a))return a;if(r.targetRef&&isDOMElement(r.targetRef.current))return r.targetRef.current;var i=findDOMNode(r);if(!i)return null;switch(r.getRenderType()){case"renderProp":case"childFunction":case"child":case"childArray":return i;default:return i.parentElement}},r.createResizeHandler=function(e){var t=r.props,a=t.handleWidth,i=void 0===a||a,n=t.handleHeight,s=void 0===n||n,o=t.onResize;if(i||s){var l=createNotifier(o,r.setState.bind(r),i,s);e.forEach((function(e){var t=e&&e.contentRect||{},a=t.width,i=t.height;!r.skipOnMount&&!isSSR$1()&&l({width:a,height:i}),r.skipOnMount=!1}))}},r.getRenderType=function(){var e=r.props,t=e.render,a=e.children;return isFunction$3(t)?"renderProp":isFunction$3(a)?"childFunction":isValidElement(a)?"child":Array.isArray(a)?"childArray":"parent"};var a=t.skipOnMount,i=t.refreshMode,n=t.refreshRate,s=void 0===n?1e3:n,o=t.refreshOptions;return r.state={width:void 0,height:void 0},r.skipOnMount=a,r.targetRef=createRef(),r.observableElement=null,isSSR$1()||(r.resizeHandler=patchResizeHandler(r.createResizeHandler,i,s,o),r.resizeObserver=new window.ResizeObserver(r.resizeHandler)),r}__extends$1(t,e),t.prototype.componentDidMount=function(){this.attachObserver()},t.prototype.componentDidUpdate=function(){this.attachObserver()},t.prototype.componentWillUnmount=function(){isSSR$1()||(this.observableElement=null,this.resizeObserver.disconnect(),this.cancelHandler())},t.prototype.render=function(){var e,t=this.props,r=t.render,a=t.children,i=t.nodeType,n=void 0===i?"div":i,s=this.state,o={width:s.width,height:s.height,targetRef:this.targetRef};switch(this.getRenderType()){case"renderProp":return r&&r(o);case"childFunction":return(e=a)(o);case"child":if((e=a).type&&"string"==typeof e.type){var l=__rest$2(o,["targetRef"]);return cloneElement(e,l)}return cloneElement(e,o);case"childArray":return(e=a).map((function(e){return!!e&&cloneElement(e,o)}));default:return React.createElement(n,null)}}}(PureComponent);var useEnhancedEffect=isSSR$1()?useEffect:useLayoutEffect$1;function useResizeDetector(e){void 0===e&&(e={});var t=e.skipOnMount,r=void 0!==t&&t,a=e.refreshMode,i=e.refreshRate,n=void 0===i?1e3:i,s=e.refreshOptions,o=e.handleWidth,l=void 0===o||o,h=e.handleHeight,c=void 0===h||h,d=e.targetRef,p=e.observerOptions,u=e.onResize,m=useRef(r),f=useRef(null),y=null!=d?d:f,g=useRef(),v=useState({width:void 0,height:void 0}),b=v[0],x=v[1];return useEnhancedEffect((function(){if(!isSSR$1()){var e=createNotifier(u,x,l,c);g.current=patchResizeHandler((function(t){(l||c)&&t.forEach((function(t){var r=t&&t.contentRect||{},a=r.width,i=r.height;!m.current&&!isSSR$1()&&e({width:a,height:i}),m.current=!1}))}),a,n,s);var t=new window.ResizeObserver(g.current);return y.current&&t.observe(y.current,p),function(){t.disconnect();var e=g.current;e&&e.cancel&&e.cancel()}}}),[a,n,s,l,c,u,p,y.current]),__assign$1({ref:y},b)}let updateQueue=makeQueue();const raf=e=>schedule(e,updateQueue);let writeQueue=makeQueue();raf.write=e=>schedule(e,writeQueue);let onStartQueue=makeQueue();raf.onStart=e=>schedule(e,onStartQueue);let onFrameQueue=makeQueue();raf.onFrame=e=>schedule(e,onFrameQueue);let onFinishQueue=makeQueue();raf.onFinish=e=>schedule(e,onFinishQueue);let timeouts=[];raf.setTimeout=(e,t)=>{let r=raf.now()+t,a=()=>{let e=timeouts.findIndex((e=>e.cancel==a));~e&&timeouts.splice(e,1),pendingCount-=~e?1:0},i={time:r,handler:e,cancel:a};return timeouts.splice(findTimeout(r),0,i),pendingCount+=1,start(),i};let findTimeout=e=>~(~timeouts.findIndex((t=>t.time>e))||~timeouts.length);raf.cancel=e=>{onStartQueue.delete(e),onFrameQueue.delete(e),updateQueue.delete(e),writeQueue.delete(e),onFinishQueue.delete(e)},raf.sync=e=>{sync=!0,raf.batchedUpdates(e),sync=!1},raf.throttle=e=>{let t;function r(){try{e(...t)}finally{t=null}}function a(...e){t=e,raf.onStart(r)}return a.handler=e,a.cancel=()=>{onStartQueue.delete(r),t=null},a};let nativeRaf="undefined"!=typeof window?window.requestAnimationFrame:()=>{};raf.use=e=>nativeRaf=e,raf.now="undefined"!=typeof performance?()=>performance.now():Date.now,raf.batchedUpdates=e=>e(),raf.catch=console.error,raf.frameLoop="always",raf.advance=()=>{"demand"!==raf.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):update()};let ts=-1,pendingCount=0,sync=!1;function schedule(e,t){sync?(t.delete(e),e(0)):(t.add(e),start())}function start(){ts<0&&(ts=0,"demand"!==raf.frameLoop&&nativeRaf(loop))}function stop(){ts=-1}function loop(){~ts&&(nativeRaf(loop),raf.batchedUpdates(update))}function update(){let e=ts;ts=raf.now();let t=findTimeout(ts);t&&(eachSafely(timeouts.splice(0,t),(e=>e.handler())),pendingCount-=t),onStartQueue.flush(),updateQueue.flush(e?Math.min(64,ts-e):16.667),onFrameQueue.flush(),writeQueue.flush(),onFinishQueue.flush(),pendingCount||stop()}function makeQueue(){let e=new Set,t=e;return{add(r){pendingCount+=t!=e||e.has(r)?0:1,e.add(r)},delete:r=>(pendingCount-=t==e&&e.has(r)?1:0,e.delete(r)),flush(r){t.size&&(e=new Set,pendingCount-=t.size,eachSafely(t,(t=>t(r)&&e.add(t))),pendingCount+=e.size,t=e)}}}function eachSafely(e,t){e.forEach((e=>{try{t(e)}catch(e){raf.catch(e)}}))}function noop(){}const defineHidden=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0}),is={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function isEqual(e,t){if(is.arr(e)){if(!is.arr(t)||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}return e===t}const each=(e,t)=>e.forEach(t);function eachProp(e,t,r){if(is.arr(e))for(let a=0;a<e.length;a++)t.call(r,e[a],`${a}`);else for(const a in e)e.hasOwnProperty(a)&&t.call(r,e[a],a)}const toArray=e=>is.und(e)?[]:is.arr(e)?e:[e];function flush$1(e,t){if(e.size){const r=Array.from(e);e.clear(),each(r,t)}}const flushCalls=(e,...t)=>flush$1(e,(e=>e(...t))),isSSR=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent);let createStringInterpolator$1,to,colors$1=null,skipAnimation=!1,willAdvance=noop;const assign=e=>{e.to&&(to=e.to),e.now&&(raf.now=e.now),void 0!==e.colors&&(colors$1=e.colors),null!=e.skipAnimation&&(skipAnimation=e.skipAnimation),e.createStringInterpolator&&(createStringInterpolator$1=e.createStringInterpolator),e.requestAnimationFrame&&raf.use(e.requestAnimationFrame),e.batchedUpdates&&(raf.batchedUpdates=e.batchedUpdates),e.willAdvance&&(willAdvance=e.willAdvance),e.frameLoop&&(raf.frameLoop=e.frameLoop)};var globals=Object.freeze({__proto__:null,get createStringInterpolator(){return createStringInterpolator$1},get to(){return to},get colors(){return colors$1},get skipAnimation(){return skipAnimation},get willAdvance(){return willAdvance},assign:assign});const startQueue=new Set;let currentFrame=[],prevFrame=[],priority=0;const frameLoop={get idle(){return!startQueue.size&&!currentFrame.length},start(e){priority>e.priority?(startQueue.add(e),raf.onStart(flushStartQueue)):(startSafely(e),raf(advance))},advance:advance,sort(e){if(priority)raf.onFrame((()=>frameLoop.sort(e)));else{const t=currentFrame.indexOf(e);~t&&(currentFrame.splice(t,1),startUnsafely(e))}},clear(){currentFrame=[],startQueue.clear()}};function flushStartQueue(){startQueue.forEach(startSafely),startQueue.clear(),raf(advance)}function startSafely(e){currentFrame.includes(e)||startUnsafely(e)}function startUnsafely(e){currentFrame.splice(findIndex$1(currentFrame,(t=>t.priority>e.priority)),0,e)}function advance(e){const t=prevFrame;for(let r=0;r<currentFrame.length;r++){const a=currentFrame[r];priority=a.priority,a.idle||(willAdvance(a),a.advance(e),a.idle||t.push(a))}return priority=0,prevFrame=currentFrame,prevFrame.length=0,currentFrame=t,currentFrame.length>0}function findIndex$1(e,t){const r=e.findIndex(t);return r<0?e.length:r}const colors={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},NUMBER="[-+]?\\d*\\.?\\d+",PERCENTAGE=NUMBER+"%";function call(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}const rgb=new RegExp("rgb"+call(NUMBER,NUMBER,NUMBER)),rgba=new RegExp("rgba"+call(NUMBER,NUMBER,NUMBER,NUMBER)),hsl=new RegExp("hsl"+call(NUMBER,PERCENTAGE,PERCENTAGE)),hsla=new RegExp("hsla"+call(NUMBER,PERCENTAGE,PERCENTAGE,NUMBER)),hex3=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex4=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6=/^#([0-9a-fA-F]{6})$/,hex8=/^#([0-9a-fA-F]{8})$/;function normalizeColor(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=hex6.exec(e))?parseInt(t[1]+"ff",16)>>>0:colors$1&&void 0!==colors$1[e]?colors$1[e]:(t=rgb.exec(e))?(parse255(t[1])<<24|parse255(t[2])<<16|parse255(t[3])<<8|255)>>>0:(t=rgba.exec(e))?(parse255(t[1])<<24|parse255(t[2])<<16|parse255(t[3])<<8|parse1(t[4]))>>>0:(t=hex3.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=hex8.exec(e))?parseInt(t[1],16)>>>0:(t=hex4.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=hsl.exec(e))?(255|hslToRgb(parse360(t[1]),parsePercentage(t[2]),parsePercentage(t[3])))>>>0:(t=hsla.exec(e))?(hslToRgb(parse360(t[1]),parsePercentage(t[2]),parsePercentage(t[3]))|parse1(t[4]))>>>0:null}function hue2rgb(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function hslToRgb(e,t,r){const a=r<.5?r*(1+t):r+t-r*t,i=2*r-a,n=hue2rgb(i,a,e+1/3),s=hue2rgb(i,a,e),o=hue2rgb(i,a,e-1/3);return Math.round(255*n)<<24|Math.round(255*s)<<16|Math.round(255*o)<<8}function parse255(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function parse360(e){return(parseFloat(e)%360+360)%360/360}function parse1(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function parsePercentage(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function colorToRgba(e){let t=normalizeColor(e);return null===t?e:(t=t||0,`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`)}const createInterpolator=(e,t,r)=>{if(is.fun(e))return e;if(is.arr(e))return createInterpolator({range:e,output:t,extrapolate:r});if(is.str(e.output[0]))return createStringInterpolator$1(e);const a=e,i=a.output,n=a.range||[0,1],s=a.extrapolateLeft||a.extrapolate||"extend",o=a.extrapolateRight||a.extrapolate||"extend",l=a.easing||(e=>e);return e=>{const t=findRange(e,n);return interpolate(e,n[t],n[t+1],i[t],i[t+1],l,s,o,a.map)}};function interpolate(e,t,r,a,i,n,s,o,l){let h=l?l(e):e;if(h<t){if("identity"===s)return h;"clamp"===s&&(h=t)}if(h>r){if("identity"===o)return h;"clamp"===o&&(h=r)}return a===i?a:t===r?e<=t?a:i:(t===-1/0?h=-h:r===1/0?h-=t:h=(h-t)/(r-t),h=n(h),a===-1/0?h=-h:i===1/0?h+=a:h=h*(i-a)+a,h)}function findRange(e,t){for(var r=1;r<t.length-1&&!(t[r]>=e);++r);return r-1}function _extends$2(){return _extends$2=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},_extends$2.apply(this,arguments)}const $get=Symbol.for("FluidValue.get"),$observers=Symbol.for("FluidValue.observers"),hasFluidValue=e=>Boolean(e&&e[$get]),getFluidValue=e=>e&&e[$get]?e[$get]():e,getFluidObservers=e=>e[$observers]||null;function callFluidObserver(e,t){e.eventObserved?e.eventObserved(t):e(t)}function callFluidObservers(e,t){let r=e[$observers];r&&r.forEach((e=>{callFluidObserver(e,t)}))}class FluidValue{constructor(e){if(this[$get]=void 0,this[$observers]=void 0,!e&&!(e=this.get))throw Error("Unknown getter");setFluidGetter(this,e)}}const setFluidGetter=(e,t)=>setHidden(e,$get,t);function addFluidObserver(e,t){if(e[$get]){let r=e[$observers];r||setHidden(e,$observers,r=new Set),r.has(t)||(r.add(t),e.observerAdded&&e.observerAdded(r.size,t))}return t}function removeFluidObserver(e,t){let r=e[$observers];if(r&&r.has(t)){const a=r.size-1;a?r.delete(t):e[$observers]=null,e.observerRemoved&&e.observerRemoved(a,t)}}const setHidden=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0}),numberRegex=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,colorRegex=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,unitRegex=new RegExp(`(${numberRegex.source})(%|[a-z]+)`,"i"),rgbaRegex=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,cssVariableRegex=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,variableToRgba=e=>{const[t,r]=parseCSSVariable(e);if(!t||isSSR())return e;const a=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(a)return a.trim();if(r&&r.startsWith("--")){const t=window.getComputedStyle(document.documentElement).getPropertyValue(r);return t||e}return r&&cssVariableRegex.test(r)?variableToRgba(r):r||e},parseCSSVariable=e=>{const t=cssVariableRegex.exec(e);if(!t)return[,];const[,r,a]=t;return[r,a]};let namedColorRegex;const rgbaRound=(e,t,r,a,i)=>`rgba(${Math.round(t)}, ${Math.round(r)}, ${Math.round(a)}, ${i})`,createStringInterpolator=e=>{namedColorRegex||(namedColorRegex=colors$1?new RegExp(`(${Object.keys(colors$1).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map((e=>getFluidValue(e).replace(cssVariableRegex,variableToRgba).replace(colorRegex,colorToRgba).replace(namedColorRegex,colorToRgba))),r=t.map((e=>e.match(numberRegex).map(Number))),a=r[0].map(((e,t)=>r.map((e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})))).map((t=>createInterpolator(_extends$2({},e,{output:t}))));return e=>{var r;const i=!unitRegex.test(t[0])&&(null==(r=t.find((e=>unitRegex.test(e))))?void 0:r.replace(numberRegex,""));let n=0;return t[0].replace(numberRegex,(()=>`${a[n++](e)}${i||""}`)).replace(rgbaRegex,rgbaRound)}},prefix="react-spring: ",once=e=>{const t=e;let r=!1;if("function"!=typeof t)throw new TypeError(`${prefix}once requires a function parameter`);return(...e)=>{r||(t(...e),r=!0)}},warnInterpolate=once(console.warn);function deprecateInterpolate(){warnInterpolate(`${prefix}The "interpolate" function is deprecated in v9 (use "to" instead)`)}const warnDirectCall=once(console.warn);function deprecateDirectCall(){warnDirectCall(`${prefix}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function isAnimatedString(e){return is.str(e)&&("#"==e[0]||/\d/.test(e)||!isSSR()&&cssVariableRegex.test(e)||e in(colors$1||{}))}const useLayoutEffect="undefined"!=typeof window&&window.document&&window.document.createElement?React.useLayoutEffect:React.useEffect,useIsMounted=()=>{const e=useRef(!1);return useLayoutEffect((()=>(e.current=!0,()=>{e.current=!1})),[]),e};function useForceUpdate(){const e=useState()[1],t=useIsMounted();return()=>{t.current&&e(Math.random())}}function useMemoOne(e,t){const[r]=useState((()=>({inputs:t,result:e()}))),a=useRef(),i=a.current;let n=i;if(n){Boolean(t&&n.inputs&&areInputsEqual(t,n.inputs))||(n={inputs:t,result:e()})}else n=r;return useEffect((()=>{a.current=n,i==r&&(r.inputs=r.result=void 0)}),[n]),n.result}function areInputsEqual(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}const useOnce=e=>useEffect(e,emptyDeps),emptyDeps=[];function usePrev(e){const t=useRef();return useEffect((()=>{t.current=e})),t.current}const $node=Symbol.for("Animated:node"),isAnimated=e=>!!e&&e[$node]===e,getAnimated=e=>e&&e[$node],setAnimated=(e,t)=>defineHidden(e,$node,t),getPayload=e=>e&&e[$node]&&e[$node].getPayload();class Animated{constructor(){this.payload=void 0,setAnimated(this,this)}getPayload(){return this.payload||[]}}class AnimatedValue extends Animated{constructor(e){super(),this.done=!0,this.elapsedTime=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.v0=void 0,this.durationProgress=0,this._value=e,is.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new AnimatedValue(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return is.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,is.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}}class AnimatedString extends AnimatedValue{constructor(e){super(0),this._string=null,this._toString=void 0,this._toString=createInterpolator({output:[e,e]})}static create(e){return new AnimatedString(e)}getValue(){let e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(is.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=createInterpolator({output:[this.getValue(),e]})),this._value=0,super.reset()}}const TreeContext={dependencies:null};class AnimatedObject extends Animated{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return eachProp(this.source,((r,a)=>{isAnimated(r)?t[a]=r.getValue(e):hasFluidValue(r)?t[a]=getFluidValue(r):e||(t[a]=r)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&each(this.payload,(e=>e.reset()))}_makePayload(e){if(e){const t=new Set;return eachProp(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){TreeContext.dependencies&&hasFluidValue(e)&&TreeContext.dependencies.add(e);const t=getPayload(e);t&&each(t,(e=>this.add(e)))}}class AnimatedArray extends AnimatedObject{constructor(e){super(e)}static create(e){return new AnimatedArray(e)}getValue(){return this.source.map((e=>e.getValue()))}setValue(e){const t=this.getPayload();return e.length==t.length?t.map(((t,r)=>t.setValue(e[r]))).some(Boolean):(super.setValue(e.map(makeAnimated)),!0)}}function makeAnimated(e){return(isAnimatedString(e)?AnimatedString:AnimatedValue).create(e)}function getAnimatedType(e){const t=getAnimated(e);return t?t.constructor:is.arr(e)?AnimatedArray:isAnimatedString(e)?AnimatedString:AnimatedValue}function _extends$1(){return _extends$1=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},_extends$1.apply(this,arguments)}const withAnimated=(e,t)=>{const r=!is.fun(e)||e.prototype&&e.prototype.isReactComponent;return forwardRef(((a,i)=>{const n=useRef(null),s=r&&useCallback((e=>{n.current=updateRef(i,e)}),[i]),[o,l]=getAnimatedState(a,t),h=useForceUpdate(),c=()=>{const e=n.current;if(r&&!e)return;!1===(!!e&&t.applyAnimatedValues(e,o.getValue(!0)))&&h()},d=new PropsObserver(c,l),p=useRef();useLayoutEffect((()=>(p.current=d,each(l,(e=>addFluidObserver(e,d))),()=>{p.current&&(each(p.current.deps,(e=>removeFluidObserver(e,p.current))),raf.cancel(p.current.update))}))),useEffect(c,[]),useOnce((()=>()=>{const e=p.current;each(e.deps,(t=>removeFluidObserver(t,e)))}));const u=t.getComponentProps(o.getValue());return React.createElement(e,_extends$1({},u,{ref:s}))}))};class PropsObserver{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&raf.write(this.update)}}function getAnimatedState(e,t){const r=new Set;return TreeContext.dependencies=r,e.style&&(e=_extends$1({},e,{style:t.createAnimatedStyle(e.style)})),e=new AnimatedObject(e),TreeContext.dependencies=null,[e,r]}function updateRef(e,t){return e&&(is.fun(e)?e(t):e.current=t),t}const cacheKey=Symbol.for("AnimatedComponent"),createHost=(e,{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:r=(e=>new AnimatedObject(e)),getComponentProps:a=(e=>e)}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:r,getComponentProps:a},n=e=>{const t=getDisplayName(e)||"Anonymous";return(e=is.str(e)?n[e]||(n[e]=withAnimated(e,i)):e[cacheKey]||(e[cacheKey]=withAnimated(e,i))).displayName=`Animated(${t})`,e};return eachProp(e,((t,r)=>{is.arr(e)&&(r=getDisplayName(t)),n[r]=n(t)})),{animated:n}},getDisplayName=e=>is.str(e)?e:e&&is.str(e.displayName)?e.displayName:is.fun(e)&&e.name||null;function _extends(){return _extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a])}return e},_extends.apply(this,arguments)}function callProp(e,...t){return is.fun(e)?e(...t):e}const matchProp=(e,t)=>!0===e||!!(t&&e&&(is.fun(e)?e(t):toArray(e).includes(t))),resolveProp=(e,t)=>is.obj(e)?t&&e[t]:e,getDefaultProp=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,noopTransform=e=>e,getDefaultProps=(e,t=noopTransform)=>{let r=DEFAULT_PROPS;e.default&&!0!==e.default&&(e=e.default,r=Object.keys(e));const a={};for(const i of r){const r=t(e[i],i);is.und(r)||(a[i]=r)}return a},DEFAULT_PROPS=["config","onProps","onStart","onChange","onPause","onResume","onRest"],RESERVED_PROPS={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function getForwardProps(e){const t={};let r=0;if(eachProp(e,((e,a)=>{RESERVED_PROPS[a]||(t[a]=e,r++)})),r)return t}function inferTo(e){const t=getForwardProps(e);if(t){const r={to:t};return eachProp(e,((e,a)=>a in t||(r[a]=e))),r}return _extends({},e)}function computeGoal(e){return e=getFluidValue(e),is.arr(e)?e.map(computeGoal):isAnimatedString(e)?globals.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function hasProps(e){for(const t in e)return!0;return!1}function isAsyncTo(e){return is.fun(e)||is.arr(e)&&is.obj(e[0])}function detachRefs(e,t){var r;null==(r=e.ref)||r.delete(e),null==t||t.delete(e)}function replaceRef(e,t){var r;t&&e.ref!==t&&(null==(r=e.ref)||r.delete(e),t.add(e),e.ref=t)}const config={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},c1=1.70158,c2=1.525*c1,c3=c1+1,c4=2*Math.PI/3,c5=2*Math.PI/4.5,bounceOut=e=>{const t=7.5625,r=2.75;return e<1/r?t*e*e:e<2/r?t*(e-=1.5/r)*e+.75:e<2.5/r?t*(e-=2.25/r)*e+.9375:t*(e-=2.625/r)*e+.984375},easings={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>0===e?0:Math.pow(2,10*e-10),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>c3*e*e*e-c1*e*e,easeOutBack:e=>1+c3*Math.pow(e-1,3)+c1*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(2*(c2+1)*e-c2)/2:(Math.pow(2*e-2,2)*((c2+1)*(2*e-2)+c2)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*c4),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*c4)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*c5)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*c5)/2+1,easeInBounce:e=>1-bounceOut(1-e),easeOutBounce:bounceOut,easeInOutBounce:e=>e<.5?(1-bounceOut(1-2*e))/2:(1+bounceOut(2*e-1))/2},defaults=_extends({},config.default,{mass:1,damping:1,easing:easings.linear,clamp:!1});class AnimationConfig{constructor(){this.tension=void 0,this.friction=void 0,this.frequency=void 0,this.damping=void 0,this.mass=void 0,this.velocity=0,this.restVelocity=void 0,this.precision=void 0,this.progress=void 0,this.duration=void 0,this.easing=void 0,this.clamp=void 0,this.bounce=void 0,this.decay=void 0,this.round=void 0,Object.assign(this,defaults)}}function mergeConfig(e,t,r){r&&(sanitizeConfig(r=_extends({},r),t),t=_extends({},r,t)),sanitizeConfig(e,t),Object.assign(e,t);for(const t in defaults)null==e[t]&&(e[t]=defaults[t]);let{mass:a,frequency:i,damping:n}=e;return is.und(i)||(i<.01&&(i=.01),n<0&&(n=0),e.tension=Math.pow(2*Math.PI/i,2)*a,e.friction=4*Math.PI*n*a/i),e}function sanitizeConfig(e,t){if(is.und(t.decay)){const r=!is.und(t.tension)||!is.und(t.friction);!r&&is.und(t.frequency)&&is.und(t.damping)&&is.und(t.mass)||(e.duration=void 0,e.decay=void 0),r&&(e.frequency=void 0)}else e.duration=void 0}const emptyArray=[];class Animation{constructor(){this.changed=!1,this.values=emptyArray,this.toValues=null,this.fromValues=emptyArray,this.to=void 0,this.from=void 0,this.config=new AnimationConfig,this.immediate=!1}}function scheduleProps(e,{key:t,props:r,defaultProps:a,state:i,actions:n}){return new Promise(((s,o)=>{var l;let h,c,d=matchProp(null!=(l=r.cancel)?l:null==a?void 0:a.cancel,t);if(d)m();else{is.und(r.pause)||(i.paused=matchProp(r.pause,t));let e=null==a?void 0:a.pause;!0!==e&&(e=i.paused||matchProp(e,t)),h=callProp(r.delay||0,t),e?(i.resumeQueue.add(u),n.pause()):(n.resume(),u())}function p(){i.resumeQueue.add(u),i.timeouts.delete(c),c.cancel(),h=c.time-raf.now()}function u(){h>0&&!globals.skipAnimation?(i.delayed=!0,c=raf.setTimeout(m,h),i.pauseQueue.add(p),i.timeouts.add(c)):m()}function m(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(p),i.timeouts.delete(c),e<=(i.cancelId||0)&&(d=!0);try{n.start(_extends({},r,{callId:e,cancel:d}),s)}catch(e){o(e)}}}))}const getCombinedResult=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?getCancelledResult(e.get()):t.every((e=>e.noop))?getNoopResult(e.get()):getFinishedResult(e.get(),t.every((e=>e.finished))),getNoopResult=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),getFinishedResult=(e,t,r=!1)=>({value:e,finished:t,cancelled:r}),getCancelledResult=e=>({value:e,cancelled:!0,finished:!1});function runAsync(e,t,r,a){const{callId:i,parentId:n,onRest:s}=t,{asyncTo:o,promise:l}=r;return n||e!==o||t.reset?r.promise=(async()=>{r.asyncId=i,r.asyncTo=e;const h=getDefaultProps(t,((e,t)=>"onRest"===t?void 0:e));let c,d;const p=new Promise(((e,t)=>(c=e,d=t))),u=e=>{const t=i<=(r.cancelId||0)&&getCancelledResult(a)||i!==r.asyncId&&getFinishedResult(a,!1);if(t)throw e.result=t,d(e),e},m=(e,t)=>{const n=new BailSignal,s=new SkipAniamtionSignal;return(async()=>{if(globals.skipAnimation)throw stopAsync(r),s.result=getFinishedResult(a,!1),d(s),s;u(n);const o=is.obj(e)?_extends({},e):_extends({},t,{to:e});o.parentId=i,eachProp(h,((e,t)=>{is.und(o[t])&&(o[t]=e)}));const l=await a.start(o);return u(n),r.paused&&await new Promise((e=>{r.resumeQueue.add(e)})),l})()};let f;if(globals.skipAnimation)return stopAsync(r),getFinishedResult(a,!1);try{let t;t=is.arr(e)?(async e=>{for(const t of e)await m(t)})(e):Promise.resolve(e(m,a.stop.bind(a))),await Promise.all([t.then(c),p]),f=getFinishedResult(a.get(),!0,!1)}catch(e){if(e instanceof BailSignal)f=e.result;else{if(!(e instanceof SkipAniamtionSignal))throw e;f=e.result}}finally{i==r.asyncId&&(r.asyncId=n,r.asyncTo=n?o:void 0,r.promise=n?l:void 0)}return is.fun(s)&&raf.batchedUpdates((()=>{s(f,a,a.item)})),f})():l}function stopAsync(e,t){flush$1(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}class BailSignal extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise."),this.result=void 0}}class SkipAniamtionSignal extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}const isFrameValue=e=>e instanceof FrameValue;let nextId$1=1;class FrameValue extends FluidValue{constructor(...e){super(...e),this.id=nextId$1++,this.key=void 0,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=getAnimated(this);return e&&e.getValue()}to(...e){return globals.to(this,e)}interpolate(...e){return deprecateInterpolate(),globals.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){callFluidObservers(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||frameLoop.sort(this),callFluidObservers(this,{type:"priority",parent:this,priority:e})}}const $P=Symbol.for("SpringPhase"),HAS_ANIMATED=1,IS_ANIMATING=2,IS_PAUSED=4,hasAnimated=e=>(e[$P]&HAS_ANIMATED)>0,isAnimating=e=>(e[$P]&IS_ANIMATING)>0,isPaused=e=>(e[$P]&IS_PAUSED)>0,setActiveBit=(e,t)=>t?e[$P]|=IS_ANIMATING|HAS_ANIMATED:e[$P]&=~IS_ANIMATING,setPausedBit=(e,t)=>t?e[$P]|=IS_PAUSED:e[$P]&=~IS_PAUSED;class SpringValue extends FrameValue{constructor(e,t){if(super(),this.key=void 0,this.animation=new Animation,this.queue=void 0,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!is.und(e)||!is.und(t)){const r=is.obj(e)?_extends({},e):_extends({},t,{from:e});is.und(r.default)&&(r.default=!0),this.start(r)}}get idle(){return!(isAnimating(this)||this._state.asyncTo)||isPaused(this)}get goal(){return getFluidValue(this.animation.to)}get velocity(){const e=getAnimated(this);return e instanceof AnimatedValue?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return hasAnimated(this)}get isAnimating(){return isAnimating(this)}get isPaused(){return isPaused(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,r=!1;const a=this.animation;let{config:i,toValues:n}=a;const s=getPayload(a.to);!s&&hasFluidValue(a.to)&&(n=toArray(getFluidValue(a.to))),a.values.forEach(((o,l)=>{if(o.done)return;const h=o.constructor==AnimatedString?1:s?s[l].lastPosition:n[l];let c=a.immediate,d=h;if(!c){if(d=o.lastPosition,i.tension<=0)return void(o.done=!0);let t=o.elapsedTime+=e;const r=a.fromValues[l],n=null!=o.v0?o.v0:o.v0=is.arr(i.velocity)?i.velocity[l]:i.velocity;let s;if(is.und(i.duration))if(i.decay){const e=!0===i.decay?.998:i.decay,a=Math.exp(-(1-e)*t);d=r+n/(1-e)*(1-a),c=Math.abs(o.lastPosition-d)<.1,s=n*a}else{s=null==o.lastVelocity?n:o.lastVelocity;const t=i.precision||(r==h?.005:Math.min(1,.001*Math.abs(h-r))),a=i.restVelocity||t/10,l=i.clamp?0:i.bounce,p=!is.und(l),u=r==h?o.v0>0:r<h;let m,f=!1;const y=1,g=Math.ceil(e/y);for(let e=0;e<g&&(m=Math.abs(s)>a,m||(c=Math.abs(h-d)<=t,!c));++e){p&&(f=d==h||d>h==u,f&&(s=-s*l,d=h));s+=(1e-6*-i.tension*(d-h)+.001*-i.friction*s)/i.mass*y,d+=s*y}}else{let a=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,o.durationProgress>0&&(o.elapsedTime=i.duration*o.durationProgress,t=o.elapsedTime+=e)),a=(i.progress||0)+t/this._memoizedDuration,a=a>1?1:a<0?0:a,o.durationProgress=a),d=r+i.easing(a)*(h-r),s=(d-o.lastPosition)/e,c=1==a}o.lastVelocity=s,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),c=!0)}s&&!s[l].done&&(c=!1),c?o.done=!0:t=!1,o.setValue(d,i.round)&&(r=!0)}));const o=getAnimated(this),l=o.getValue();if(t){const e=getFluidValue(a.to);l===e&&!r||i.decay?r&&i.decay&&this._onChange(l):(o.setValue(e),this._onChange(e)),this._stop()}else r&&this._onChange(l)}set(e){return raf.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(isAnimating(this)){const{to:e,config:t}=this.animation;raf.batchedUpdates((()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()}))}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let r;return is.und(e)?(r=this.queue||[],this.queue=[]):r=[is.obj(e)?e:_extends({},t,{to:e})],Promise.all(r.map((e=>this._update(e)))).then((e=>getCombinedResult(this,e)))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),stopAsync(this._state,e&&this._lastCallId),raf.batchedUpdates((()=>this._stop(t,e))),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:r,from:a}=e;r=is.obj(r)?r[t]:r,(null==r||isAsyncTo(r))&&(r=void 0),a=is.obj(a)?a[t]:a,null==a&&(a=void 0);const i={to:r,from:a};return hasAnimated(this)||(e.reverse&&([r,a]=[a,r]),a=getFluidValue(a),is.und(a)?getAnimated(this)||this._set(r):this._set(a)),i}_update(e,t){let r=_extends({},e);const{key:a,defaultProps:i}=this;r.default&&Object.assign(i,getDefaultProps(r,((e,t)=>/^on/.test(t)?resolveProp(e,a):e))),mergeActiveFn(this,r,"onProps"),sendEvent(this,"onProps",r,this);const n=this._prepareNode(r);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const s=this._state;return scheduleProps(++this._lastCallId,{key:a,props:r,defaultProps:i,state:s,actions:{pause:()=>{isPaused(this)||(setPausedBit(this,!0),flushCalls(s.pauseQueue),sendEvent(this,"onPause",getFinishedResult(this,checkFinished(this,this.animation.to)),this))},resume:()=>{isPaused(this)&&(setPausedBit(this,!1),isAnimating(this)&&this._resume(),flushCalls(s.resumeQueue),sendEvent(this,"onResume",getFinishedResult(this,checkFinished(this,this.animation.to)),this))},start:this._merge.bind(this,n)}}).then((e=>{if(r.loop&&e.finished&&(!t||!e.noop)){const e=createLoopUpdate(r);if(e)return this._update(e,!0)}return e}))}_merge(e,t,r){if(t.cancel)return this.stop(!0),r(getCancelledResult(this));const a=!is.und(e.to),i=!is.und(e.from);if(a||i){if(!(t.callId>this._lastToId))return r(getCancelledResult(this));this._lastToId=t.callId}const{key:n,defaultProps:s,animation:o}=this,{to:l,from:h}=o;let{to:c=l,from:d=h}=e;!i||a||t.default&&!is.und(c)||(c=d),t.reverse&&([c,d]=[d,c]);const p=!isEqual(d,h);p&&(o.from=d),d=getFluidValue(d);const u=!isEqual(c,l);u&&this._focus(c);const m=isAsyncTo(t.to),{config:f}=o,{decay:y,velocity:g}=f;(a||i)&&(f.velocity=0),t.config&&!m&&mergeConfig(f,callProp(t.config,n),t.config!==s.config?callProp(s.config,n):void 0);let v=getAnimated(this);if(!v||is.und(c))return r(getFinishedResult(this,!0));const b=is.und(t.reset)?i&&!t.default:!is.und(d)&&matchProp(t.reset,n),x=b?d:this.get(),S=computeGoal(c),_=is.num(S)||is.arr(S)||isAnimatedString(S),T=!m&&(!_||matchProp(s.immediate||t.immediate,n));if(u){const e=getAnimatedType(c);if(e!==v.constructor){if(!T)throw Error(`Cannot animate between ${v.constructor.name} and ${e.name}, as the "to" prop suggests`);v=this._set(S)}}const C=v.constructor;let $=hasFluidValue(c),E=!1;if(!$){const e=b||!hasAnimated(this)&&p;(u||e)&&(E=isEqual(computeGoal(x),S),$=!E),(isEqual(o.immediate,T)||T)&&isEqual(f.decay,y)&&isEqual(f.velocity,g)||($=!0)}if(E&&isAnimating(this)&&(o.changed&&!b?$=!0:$||this._stop(l)),!m&&(($||hasFluidValue(l))&&(o.values=v.getPayload(),o.toValues=hasFluidValue(c)?null:C==AnimatedString?[1]:toArray(S)),o.immediate!=T&&(o.immediate=T,T||b||this._set(l)),$)){const{onRest:e}=o;each(ACTIVE_EVENTS,(e=>mergeActiveFn(this,t,e)));const a=getFinishedResult(this,checkFinished(this,l));flushCalls(this._pendingCalls,a),this._pendingCalls.add(r),o.changed&&raf.batchedUpdates((()=>{o.changed=!b,null==e||e(a,this),b?callProp(s.onRest,a):null==o.onStart||o.onStart(a,this)}))}b&&this._set(x),m?r(runAsync(t.to,t,this._state,this)):$?this._start():isAnimating(this)&&!u?this._pendingCalls.add(r):r(getNoopResult(x))}_focus(e){const t=this.animation;e!==t.to&&(getFluidObservers(this)&&this._detach(),t.to=e,getFluidObservers(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;hasFluidValue(t)&&(addFluidObserver(t,this),isFrameValue(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;hasFluidValue(e)&&removeFluidObserver(e,this)}_set(e,t=!0){const r=getFluidValue(e);if(!is.und(r)){const e=getAnimated(this);if(!e||!isEqual(r,e.getValue())){const a=getAnimatedType(r);e&&e.constructor==a?e.setValue(r):setAnimated(this,a.create(r)),e&&raf.batchedUpdates((()=>{this._onChange(r,t)}))}}return getAnimated(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,sendEvent(this,"onStart",getFinishedResult(this,checkFinished(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),callProp(this.animation.onChange,e,this)),callProp(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;getAnimated(this).reset(getFluidValue(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),isAnimating(this)||(setActiveBit(this,!0),isPaused(this)||this._resume())}_resume(){globals.skipAnimation?this.finish():frameLoop.start(this)}_stop(e,t){if(isAnimating(this)){setActiveBit(this,!1);const r=this.animation;each(r.values,(e=>{e.done=!0})),r.toValues&&(r.onChange=r.onPause=r.onResume=void 0),callFluidObservers(this,{type:"idle",parent:this});const a=t?getCancelledResult(this.get()):getFinishedResult(this.get(),checkFinished(this,null!=e?e:r.to));flushCalls(this._pendingCalls,a),r.changed&&(r.changed=!1,sendEvent(this,"onRest",a,this))}}}function checkFinished(e,t){const r=computeGoal(t);return isEqual(computeGoal(e.get()),r)}function createLoopUpdate(e,t=e.loop,r=e.to){let a=callProp(t);if(a){const i=!0!==a&&inferTo(a),n=(i||e).reverse,s=!i||i.reset;return createUpdate(_extends({},e,{loop:t,default:!1,pause:void 0,to:!n||isAsyncTo(r)?r:void 0,from:s?e.from:void 0,reset:s},i))}}function createUpdate(e){const{to:t,from:r}=e=inferTo(e),a=new Set;return is.obj(t)&&findDefined(t,a),is.obj(r)&&findDefined(r,a),e.keys=a.size?Array.from(a):null,e}function declareUpdate(e){const t=createUpdate(e);return is.und(t.default)&&(t.default=getDefaultProps(t)),t}function findDefined(e,t){eachProp(e,((e,r)=>null!=e&&t.add(r)))}const ACTIVE_EVENTS=["onStart","onRest","onChange","onPause","onResume"];function mergeActiveFn(e,t,r){e.animation[r]=t[r]!==getDefaultProp(t,r)?resolveProp(t[r],e.key):void 0}function sendEvent(e,t,...r){var a,i,n,s;null==(a=(i=e.animation)[t])||a.call(i,...r),null==(n=(s=e.defaultProps)[t])||n.call(s,...r)}const BATCHED_EVENTS=["onStart","onChange","onRest"];let nextId=1;class Controller{constructor(e,t){this.id=nextId++,this.springs={},this.queue=[],this.ref=void 0,this._flush=void 0,this._initialProps=void 0,this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._item=void 0,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start(_extends({default:!0},e))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every((e=>e.idle&&!e.isDelayed&&!e.isPaused))}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each(((t,r)=>e[r]=t.get())),e}set(e){for(const t in e){const r=e[t];is.und(r)||this.springs[t].set(r)}}update(e){return e&&this.queue.push(createUpdate(e)),this}start(e){let{queue:t}=this;return e?t=toArray(e).map(createUpdate):this.queue=[],this._flush?this._flush(this,t):(prepareKeys(this,t),flushUpdateQueue(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const r=this.springs;each(toArray(t),(t=>r[t].stop(!!e)))}else stopAsync(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(is.und(e))this.start({pause:!0});else{const t=this.springs;each(toArray(e),(e=>t[e].pause()))}return this}resume(e){if(is.und(e))this.start({pause:!1});else{const t=this.springs;each(toArray(e),(e=>t[e].resume()))}return this}each(e){eachProp(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:r}=this._events,a=this._active.size>0,i=this._changed.size>0;(a&&!this._started||i&&!this._started)&&(this._started=!0,flush$1(e,(([e,t])=>{t.value=this.get(),e(t,this,this._item)})));const n=!a&&this._started,s=i||n&&r.size?this.get():null;i&&t.size&&flush$1(t,(([e,t])=>{t.value=s,e(t,this,this._item)})),n&&(this._started=!1,flush$1(r,(([e,t])=>{t.value=s,e(t,this,this._item)})))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}raf.onFrame(this._onFrame)}}function flushUpdateQueue(e,t){return Promise.all(t.map((t=>flushUpdate(e,t)))).then((t=>getCombinedResult(e,t)))}async function flushUpdate(e,t,r){const{keys:a,to:i,from:n,loop:s,onRest:o,onResolve:l}=t,h=is.obj(t.default)&&t.default;s&&(t.loop=!1),!1===i&&(t.to=null),!1===n&&(t.from=null);const c=is.arr(i)||is.fun(i)?i:void 0;c?(t.to=void 0,t.onRest=void 0,h&&(h.onRest=void 0)):each(BATCHED_EVENTS,(r=>{const a=t[r];if(is.fun(a)){const i=e._events[r];t[r]=({finished:e,cancelled:t})=>{const r=i.get(a);r?(e||(r.finished=!1),t&&(r.cancelled=!0)):i.set(a,{value:null,finished:e||!1,cancelled:t||!1})},h&&(h[r]=t[r])}}));const d=e._state;t.pause===!d.paused?(d.paused=t.pause,flushCalls(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const p=(a||Object.keys(e.springs)).map((r=>e.springs[r].start(t))),u=!0===t.cancel||!0===getDefaultProp(t,"cancel");(c||u&&d.asyncId)&&p.push(scheduleProps(++e._lastAsyncId,{props:t,state:d,actions:{pause:noop,resume:noop,start(t,r){u?(stopAsync(d,e._lastAsyncId),r(getCancelledResult(e))):(t.onRest=o,r(runAsync(c,t,d,e)))}}})),d.paused&&await new Promise((e=>{d.resumeQueue.add(e)}));const m=getCombinedResult(e,await Promise.all(p));if(s&&m.finished&&(!r||!m.noop)){const r=createLoopUpdate(t,s,i);if(r)return prepareKeys(e,[r]),flushUpdate(e,r,!0)}return l&&raf.batchedUpdates((()=>l(m,e,e.item))),m}function getSprings(e,t){const r=_extends({},e.springs);return t&&each(toArray(t),(e=>{is.und(e.keys)&&(e=createUpdate(e)),is.obj(e.to)||(e=_extends({},e,{to:void 0})),prepareSprings(r,e,(e=>createSpring(e)))})),setSprings(e,r),r}function setSprings(e,t){eachProp(t,((t,r)=>{e.springs[r]||(e.springs[r]=t,addFluidObserver(t,e))}))}function createSpring(e,t){const r=new SpringValue;return r.key=e,t&&addFluidObserver(r,t),r}function prepareSprings(e,t,r){t.keys&&each(t.keys,(a=>{(e[a]||(e[a]=r(a)))._prepareNode(t)}))}function prepareKeys(e,t){each(t,(t=>{prepareSprings(e.springs,t,(t=>createSpring(t,e)))}))}function _objectWithoutPropertiesLoose$2(e,t){if(null==e)return{};var r,a,i={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(i[r]=e[r]);return i}const _excluded$3=["children"],SpringContext=e=>{let{children:t}=e,r=_objectWithoutPropertiesLoose$2(e,_excluded$3);const a=useContext(ctx),i=r.pause||!!a.pause,n=r.immediate||!!a.immediate;r=useMemoOne((()=>({pause:i,immediate:n})),[i,n]);const{Provider:s}=ctx;return React.createElement(s,{value:r},t)},ctx=makeContext(SpringContext,{});function makeContext(e,t){return Object.assign(e,React.createContext(t)),e.Provider._context=e,e.Consumer._context=e,e}SpringContext.Provider=ctx.Provider,SpringContext.Consumer=ctx.Consumer;const SpringRef=()=>{const e=[],t=function(t){deprecateDirectCall();const a=[];return each(e,((e,i)=>{if(is.und(t))a.push(e.start());else{const n=r(t,e,i);n&&a.push(e.start(n))}})),a};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){const r=e.indexOf(t);~r&&e.splice(r,1)},t.pause=function(){return each(e,(e=>e.pause(...arguments))),this},t.resume=function(){return each(e,(e=>e.resume(...arguments))),this},t.set=function(t){each(e,(e=>e.set(t)))},t.start=function(t){const r=[];return each(e,((e,a)=>{if(is.und(t))r.push(e.start());else{const i=this._getProps(t,e,a);i&&r.push(e.start(i))}})),r},t.stop=function(){return each(e,(e=>e.stop(...arguments))),this},t.update=function(t){return each(e,((e,r)=>e.update(this._getProps(t,e,r)))),this};const r=function(e,t,r){return is.fun(e)?e(r,t):e};return t._getProps=r,t};function useSprings(e,t,r){const a=is.fun(t)&&t;a&&!r&&(r=[]);const i=useMemo((()=>a||3==arguments.length?SpringRef():void 0),[]),n=useRef(0),s=useForceUpdate(),o=useMemo((()=>({ctrls:[],queue:[],flush(e,t){const r=getSprings(e,t);return n.current>0&&!o.queue.length&&!Object.keys(r).some((t=>!e.springs[t]))?flushUpdateQueue(e,t):new Promise((a=>{setSprings(e,r),o.queue.push((()=>{a(flushUpdateQueue(e,t))})),s()}))}})),[]),l=useRef([...o.ctrls]),h=[],c=usePrev(e)||0;function d(e,r){for(let i=e;i<r;i++){const e=l.current[i]||(l.current[i]=new Controller(null,o.flush)),r=a?a(i,e):t[i];r&&(h[i]=declareUpdate(r))}}useMemo((()=>{each(l.current.slice(e,c),(e=>{detachRefs(e,i),e.stop(!0)})),l.current.length=e,d(c,e)}),[e]),useMemo((()=>{d(0,Math.min(c,e))}),r);const p=l.current.map(((e,t)=>getSprings(e,h[t]))),u=useContext(SpringContext),m=usePrev(u),f=u!==m&&hasProps(u);useLayoutEffect((()=>{n.current++,o.ctrls=l.current;const{queue:e}=o;e.length&&(o.queue=[],each(e,(e=>e()))),each(l.current,((e,t)=>{null==i||i.add(e),f&&e.start({default:u});const r=h[t];r&&(replaceRef(e,r.ref),e.ref?e.queue.push(r):e.start(r))}))})),useOnce((()=>()=>{each(o.ctrls,(e=>e.stop(!0)))}));const y=p.map((e=>_extends({},e)));return i?[y,i]:y}function useSpring(e,t){const r=is.fun(e),[[a],i]=useSprings(1,r?e:[e],r?t||[]:t);return r||2==arguments.length?[a,i]:a}let TransitionPhase;!function(e){e.MOUNT="mount",e.ENTER="enter",e.UPDATE="update",e.LEAVE="leave"}(TransitionPhase||(TransitionPhase={}));class Interpolation extends FrameValue{constructor(e,t){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=e,this.calc=createInterpolator(...t);const r=this._get(),a=getAnimatedType(r);setAnimated(this,a.create(r))}advance(e){const t=this._get();isEqual(t,this.get())||(getAnimated(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&checkIdle(this._active)&&becomeIdle(this)}_get(){const e=is.arr(this.source)?this.source.map(getFluidValue):toArray(getFluidValue(this.source));return this.calc(...e)}_start(){this.idle&&!checkIdle(this._active)&&(this.idle=!1,each(getPayload(this),(e=>{e.done=!1})),globals.skipAnimation?(raf.batchedUpdates((()=>this.advance())),becomeIdle(this)):frameLoop.start(this))}_attach(){let e=1;each(toArray(this.source),(t=>{hasFluidValue(t)&&addFluidObserver(t,this),isFrameValue(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){each(toArray(this.source),(e=>{hasFluidValue(e)&&removeFluidObserver(e,this)})),this._active.clear(),becomeIdle(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=toArray(this.source).reduce(((e,t)=>Math.max(e,(isFrameValue(t)?t.priority:0)+1)),0))}}function isIdle(e){return!1!==e.idle}function checkIdle(e){return!e.size||Array.from(e).every(isIdle)}function becomeIdle(e){e.idle||(e.idle=!0,each(getPayload(e),(e=>{e.done=!0})),callFluidObservers(e,{type:"idle",parent:e}))}function _objectWithoutPropertiesLoose$1(e,t){if(null==e)return{};var r,a,i={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(i[r]=e[r]);return i}globals.assign({createStringInterpolator:createStringInterpolator,to:(e,t)=>new Interpolation(e,t)});const _excluded$2=["style","children","scrollTop","scrollLeft"],isCustomPropRE=/^--/;function dangerousStyleValue(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||isCustomPropRE.test(e)||isUnitlessNumber.hasOwnProperty(e)&&isUnitlessNumber[e]?(""+t).trim():t+"px"}const attributeCache={};function applyAnimatedValues(e,t){if(!e.nodeType||!e.setAttribute)return!1;const r="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,a=t,{style:i,children:n,scrollTop:s,scrollLeft:o}=a,l=_objectWithoutPropertiesLoose$1(a,_excluded$2),h=Object.values(l),c=Object.keys(l).map((t=>r||e.hasAttribute(t)?t:attributeCache[t]||(attributeCache[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())))));void 0!==n&&(e.textContent=n);for(let t in i)if(i.hasOwnProperty(t)){const r=dangerousStyleValue(t,i[t]);isCustomPropRE.test(t)?e.style.setProperty(t,r):e.style[t]=r}c.forEach(((t,r)=>{e.setAttribute(t,h[r])})),void 0!==s&&(e.scrollTop=s),void 0!==o&&(e.scrollLeft=o)}let isUnitlessNumber={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};const prefixKey=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),prefixes=["Webkit","Ms","Moz","O"];isUnitlessNumber=Object.keys(isUnitlessNumber).reduce(((e,t)=>(prefixes.forEach((r=>e[prefixKey(r,t)]=e[t])),e)),isUnitlessNumber);const _excluded$1$1=["x","y","z"],domTransforms=/^(matrix|translate|scale|rotate|skew)/,pxTransforms=/^(translate)/,degTransforms=/^(rotate|skew)/,addUnit=(e,t)=>is.num(e)&&0!==e?e+t:e,isValueIdentity=(e,t)=>is.arr(e)?e.every((e=>isValueIdentity(e,t))):is.num(e)?e===t:parseFloat(e)===t;class AnimatedStyle extends AnimatedObject{constructor(e){let{x:t,y:r,z:a}=e,i=_objectWithoutPropertiesLoose$1(e,_excluded$1$1);const n=[],s=[];(t||r||a)&&(n.push([t||0,r||0,a||0]),s.push((e=>[`translate3d(${e.map((e=>addUnit(e,"px"))).join(",")})`,isValueIdentity(e,0)]))),eachProp(i,((e,t)=>{if("transform"===t)n.push([e||""]),s.push((e=>[e,""===e]));else if(domTransforms.test(t)){if(delete i[t],is.und(e))return;const r=pxTransforms.test(t)?"px":degTransforms.test(t)?"deg":"";n.push(toArray(e)),s.push("rotate3d"===t?([e,t,a,i])=>[`rotate3d(${e},${t},${a},${addUnit(i,r)})`,isValueIdentity(i,0)]:e=>[`${t}(${e.map((e=>addUnit(e,r))).join(",")})`,isValueIdentity(e,t.startsWith("scale")?1:0)])}})),n.length&&(i.transform=new FluidTransform(n,s)),super(i)}}class FluidTransform extends FluidValue{constructor(e,t){super(),this._value=null,this.inputs=e,this.transforms=t}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return each(this.inputs,((r,a)=>{const i=getFluidValue(r[0]),[n,s]=this.transforms[a](is.arr(i)?i:r.map(getFluidValue));e+=" "+n,t=t&&s})),t?"none":e}observerAdded(e){1==e&&each(this.inputs,(e=>each(e,(e=>hasFluidValue(e)&&addFluidObserver(e,this)))))}observerRemoved(e){0==e&&each(this.inputs,(e=>each(e,(e=>hasFluidValue(e)&&removeFluidObserver(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),callFluidObservers(this,e)}}const primitives=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],_excluded=["scrollTop","scrollLeft"];globals.assign({batchedUpdates:unstable_batchedUpdates,createStringInterpolator:createStringInterpolator,colors:colors});const host=createHost(primitives,{applyAnimatedValues:applyAnimatedValues,createAnimatedStyle:e=>new AnimatedStyle(e),getComponentProps:e=>_objectWithoutPropertiesLoose$1(e,_excluded)}),animated=host.animated,AccordionContext=React__default.createContext(!1),BaseColorSet={Brand:{1:"#EF413D",2:"#F26664",3:"#F58E8B",4:"#F9B5B2",5:"#FDDDD7",6:"#FFEEEA"},Primary:"#1C76D5",PrimaryDark:"#1869BF",Secondary:"#0056b3",Accent:{Dark:{1:"#465A88",2:"#556D99",3:"#8D8DBF"},Light:{1:"#57A9FF",2:"#81BFFF",3:"#BED7FF",4:"#E2ECFD",5:"#F6F8FF",6:"#FBFCFE"}},Neutral:{1:"#282828",2:"#424242",3:"#686868",4:"#A4A4A4",5:"#E0E4E5",6:"#ECEFEF",7:"#F8F8F8",8:"#FFFFFF"},Validation:{Green:{Text:"#097123",Icon:"#4FC029",Border:"#95D97F",Background:"#F9FDF8"},Orange:{Text:"#B34E00",Icon:"#FEAB10",Border:"#F9CB77",Background:"#FFFCF7",Badge:"#F57F17"},Red:{Text:"#C60000",Icon:"#C60000",Border:"#DD6666",Background:"#FDF7F7"}}},BookingSGColorSet={Brand:{1:"#EF413D",2:"#F26664",3:"#F58E8B",4:"#F9B5B2",5:"#FDDDD7",6:"#FFEEEA"},Primary:"#6F4AB8",PrimaryDark:"#6443A6",Secondary:"#6443A6",Accent:{Dark:{1:"#355985",2:"#68819D",3:"#9AABBE"},Light:{1:"#9F82D9",2:"#B5A5D7",3:"#CEC3E4 ",4:"#E2DBEF",5:"#F2EFF8",6:"#F7F6FB"}},Neutral:{1:"#282828",2:"#424242",3:"#686868",4:"#A4A4A4",5:"#E0E4E5",6:"#ECEFEF",7:"#F8F8F8",8:"#FFFFFF"},Validation:{Green:{Text:"#097123",Icon:"#4FC029",Border:"#95D97F",Background:"#F9FDF8"},Orange:{Text:"#B34E00",Icon:"#FEAB10",Border:"#F9CB77",Background:"#FFFCF7",Badge:"#F57F17"},Red:{Text:"#C60000",Icon:"#C60000",Border:"#DD6666",Background:"#FDF7F7"}}};var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},isArray$8=Array.isArray,isArray_1=isArray$8,freeGlobal$1="object"==typeof commonjsGlobal&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,_freeGlobal=freeGlobal$1,freeGlobal=_freeGlobal,freeSelf="object"==typeof self&&self&&self.Object===Object&&self,root$9=freeGlobal||freeSelf||Function("return this")(),_root=root$9,root$8=_root,Symbol$5=root$8.Symbol,_Symbol=Symbol$5,Symbol$4=_Symbol,objectProto$b=Object.prototype,hasOwnProperty$9=objectProto$b.hasOwnProperty,nativeObjectToString$1=objectProto$b.toString,symToStringTag$1=Symbol$4?Symbol$4.toStringTag:void 0;function getRawTag$1(e){var t=hasOwnProperty$9.call(e,symToStringTag$1),r=e[symToStringTag$1];try{e[symToStringTag$1]=void 0;var a=!0}catch(e){}var i=nativeObjectToString$1.call(e);return a&&(t?e[symToStringTag$1]=r:delete e[symToStringTag$1]),i}var _getRawTag=getRawTag$1,objectProto$a=Object.prototype,nativeObjectToString=objectProto$a.toString;function objectToString$1(e){return nativeObjectToString.call(e)}var _objectToString=objectToString$1,Symbol$3=_Symbol,getRawTag=_getRawTag,objectToString=_objectToString,nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$3?Symbol$3.toStringTag:void 0;function baseGetTag$5(e){return null==e?void 0===e?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(e)?getRawTag(e):objectToString(e)}var _baseGetTag=baseGetTag$5;function isObjectLike$5(e){return null!=e&&"object"==typeof e}var isObjectLike_1=isObjectLike$5,baseGetTag$4=_baseGetTag,isObjectLike$4=isObjectLike_1,symbolTag$1="[object Symbol]";function isSymbol$4(e){return"symbol"==typeof e||isObjectLike$4(e)&&baseGetTag$4(e)==symbolTag$1}var isSymbol_1=isSymbol$4,isArray$7=isArray_1,isSymbol$3=isSymbol_1,reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/;function isKey$3(e,t){if(isArray$7(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!isSymbol$3(e))||(reIsPlainProp.test(e)||!reIsDeepProp.test(e)||null!=t&&e in Object(t))}var _isKey=isKey$3;function isObject$5(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}var isObject_1=isObject$5,baseGetTag$3=_baseGetTag,isObject$4=isObject_1,asyncTag="[object AsyncFunction]",funcTag$1="[object Function]",genTag="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction$2(e){if(!isObject$4(e))return!1;var t=baseGetTag$3(e);return t==funcTag$1||t==genTag||t==asyncTag||t==proxyTag}var isFunction_1=isFunction$2,root$7=_root,coreJsData$1=root$7["__core-js_shared__"],_coreJsData=coreJsData$1,coreJsData=_coreJsData,maskSrcKey=(uid=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||""),uid?"Symbol(src)_1."+uid:""),uid;function isMasked$1(e){return!!maskSrcKey&&maskSrcKey in e}var _isMasked=isMasked$1,funcProto$1=Function.prototype,funcToString$1=funcProto$1.toString;function toSource$2(e){if(null!=e){try{return funcToString$1.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var _toSource=toSource$2,isFunction$1=isFunction_1,isMasked=_isMasked,isObject$3=isObject_1,toSource$1=_toSource,reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto=Function.prototype,objectProto$9=Object.prototype,funcToString=funcProto.toString,hasOwnProperty$8=objectProto$9.hasOwnProperty,reIsNative=RegExp("^"+funcToString.call(hasOwnProperty$8).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative$1(e){return!(!isObject$3(e)||isMasked(e))&&(isFunction$1(e)?reIsNative:reIsHostCtor).test(toSource$1(e))}var _baseIsNative=baseIsNative$1;function getValue$3(e,t){return null==e?void 0:e[t]}var _getValue=getValue$3,baseIsNative=_baseIsNative,getValue$2=_getValue;function getNative$6(e,t){var r=getValue$2(e,t);return baseIsNative(r)?r:void 0}var _getNative=getNative$6,getNative$5=_getNative,nativeCreate$4=getNative$5(Object,"create"),_nativeCreate=nativeCreate$4,nativeCreate$3=_nativeCreate;function hashClear$1(){this.__data__=nativeCreate$3?nativeCreate$3(null):{},this.size=0}var _hashClear=hashClear$1;function hashDelete$1(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var _hashDelete=hashDelete$1,nativeCreate$2=_nativeCreate,HASH_UNDEFINED$2="__lodash_hash_undefined__",objectProto$8=Object.prototype,hasOwnProperty$7=objectProto$8.hasOwnProperty;function hashGet$1(e){var t=this.__data__;if(nativeCreate$2){var r=t[e];return r===HASH_UNDEFINED$2?void 0:r}return hasOwnProperty$7.call(t,e)?t[e]:void 0}var _hashGet=hashGet$1,nativeCreate$1=_nativeCreate,objectProto$7=Object.prototype,hasOwnProperty$6=objectProto$7.hasOwnProperty;function hashHas$1(e){var t=this.__data__;return nativeCreate$1?void 0!==t[e]:hasOwnProperty$6.call(t,e)}var _hashHas=hashHas$1,nativeCreate=_nativeCreate,HASH_UNDEFINED$1="__lodash_hash_undefined__";function hashSet$1(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=nativeCreate&&void 0===t?HASH_UNDEFINED$1:t,this}var _hashSet=hashSet$1,hashClear=_hashClear,hashDelete=_hashDelete,hashGet=_hashGet,hashHas=_hashHas,hashSet=_hashSet;function Hash$1(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}Hash$1.prototype.clear=hashClear,Hash$1.prototype.delete=hashDelete,Hash$1.prototype.get=hashGet,Hash$1.prototype.has=hashHas,Hash$1.prototype.set=hashSet;var _Hash=Hash$1;function listCacheClear$1(){this.__data__=[],this.size=0}var _listCacheClear=listCacheClear$1;function eq$2(e,t){return e===t||e!=e&&t!=t}var eq_1=eq$2,eq$1=eq_1;function assocIndexOf$4(e,t){for(var r=e.length;r--;)if(eq$1(e[r][0],t))return r;return-1}var _assocIndexOf=assocIndexOf$4,assocIndexOf$3=_assocIndexOf,arrayProto=Array.prototype,splice=arrayProto.splice;function listCacheDelete$1(e){var t=this.__data__,r=assocIndexOf$3(t,e);return!(r<0)&&(r==t.length-1?t.pop():splice.call(t,r,1),--this.size,!0)}var _listCacheDelete=listCacheDelete$1,assocIndexOf$2=_assocIndexOf;function listCacheGet$1(e){var t=this.__data__,r=assocIndexOf$2(t,e);return r<0?void 0:t[r][1]}var _listCacheGet=listCacheGet$1,assocIndexOf$1=_assocIndexOf;function listCacheHas$1(e){return assocIndexOf$1(this.__data__,e)>-1}var _listCacheHas=listCacheHas$1,assocIndexOf=_assocIndexOf;function listCacheSet$1(e,t){var r=this.__data__,a=assocIndexOf(r,e);return a<0?(++this.size,r.push([e,t])):r[a][1]=t,this}var _listCacheSet=listCacheSet$1,listCacheClear=_listCacheClear,listCacheDelete=_listCacheDelete,listCacheGet=_listCacheGet,listCacheHas=_listCacheHas,listCacheSet=_listCacheSet;function ListCache$4(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}ListCache$4.prototype.clear=listCacheClear,ListCache$4.prototype.delete=listCacheDelete,ListCache$4.prototype.get=listCacheGet,ListCache$4.prototype.has=listCacheHas,ListCache$4.prototype.set=listCacheSet;var _ListCache=ListCache$4,getNative$4=_getNative,root$6=_root,Map$4=getNative$4(root$6,"Map"),_Map=Map$4,Hash=_Hash,ListCache$3=_ListCache,Map$3=_Map;function mapCacheClear$1(){this.size=0,this.__data__={hash:new Hash,map:new(Map$3||ListCache$3),string:new Hash}}var _mapCacheClear=mapCacheClear$1;function isKeyable$1(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}var _isKeyable=isKeyable$1,isKeyable=_isKeyable;function getMapData$4(e,t){var r=e.__data__;return isKeyable(t)?r["string"==typeof t?"string":"hash"]:r.map}var _getMapData=getMapData$4,getMapData$3=_getMapData;function mapCacheDelete$1(e){var t=getMapData$3(this,e).delete(e);return this.size-=t?1:0,t}var _mapCacheDelete=mapCacheDelete$1,getMapData$2=_getMapData;function mapCacheGet$1(e){return getMapData$2(this,e).get(e)}var _mapCacheGet=mapCacheGet$1,getMapData$1=_getMapData;function mapCacheHas$1(e){return getMapData$1(this,e).has(e)}var _mapCacheHas=mapCacheHas$1,getMapData=_getMapData;function mapCacheSet$1(e,t){var r=getMapData(this,e),a=r.size;return r.set(e,t),this.size+=r.size==a?0:1,this}var _mapCacheSet=mapCacheSet$1,mapCacheClear=_mapCacheClear,mapCacheDelete=_mapCacheDelete,mapCacheGet=_mapCacheGet,mapCacheHas=_mapCacheHas,mapCacheSet=_mapCacheSet;function MapCache$3(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var a=e[t];this.set(a[0],a[1])}}MapCache$3.prototype.clear=mapCacheClear,MapCache$3.prototype.delete=mapCacheDelete,MapCache$3.prototype.get=mapCacheGet,MapCache$3.prototype.has=mapCacheHas,MapCache$3.prototype.set=mapCacheSet;var _MapCache=MapCache$3,MapCache$2=_MapCache,FUNC_ERROR_TEXT$1="Expected a function";function memoize$1(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(FUNC_ERROR_TEXT$1);var r=function(){var a=arguments,i=t?t.apply(this,a):a[0],n=r.cache;if(n.has(i))return n.get(i);var s=e.apply(this,a);return r.cache=n.set(i,s)||n,s};return r.cache=new(memoize$1.Cache||MapCache$2),r}memoize$1.Cache=MapCache$2;var memoize_1=memoize$1,memoize=memoize_1,MAX_MEMOIZE_SIZE=500;function memoizeCapped$1(e){var t=memoize(e,(function(e){return r.size===MAX_MEMOIZE_SIZE&&r.clear(),e})),r=t.cache;return t}var _memoizeCapped=memoizeCapped$1,memoizeCapped=_memoizeCapped,rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reEscapeChar=/\\(\\)?/g,stringToPath$1=memoizeCapped((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(rePropName,(function(e,r,a,i){t.push(a?i.replace(reEscapeChar,"$1"):r||e)})),t})),_stringToPath=stringToPath$1;function arrayMap$1(e,t){for(var r=-1,a=null==e?0:e.length,i=Array(a);++r<a;)i[r]=t(e[r],r,e);return i}var _arrayMap=arrayMap$1,Symbol$2=_Symbol,arrayMap=_arrayMap,isArray$6=isArray_1,isSymbol$2=isSymbol_1,INFINITY$2=1/0,symbolProto$1=Symbol$2?Symbol$2.prototype:void 0,symbolToString=symbolProto$1?symbolProto$1.toString:void 0;function baseToString$1(e){if("string"==typeof e)return e;if(isArray$6(e))return arrayMap(e,baseToString$1)+"";if(isSymbol$2(e))return symbolToString?symbolToString.call(e):"";var t=e+"";return"0"==t&&1/e==-INFINITY$2?"-0":t}var _baseToString=baseToString$1,baseToString=_baseToString;function toString$1(e){return null==e?"":baseToString(e)}var toString_1=toString$1,isArray$5=isArray_1,isKey$2=_isKey,stringToPath=_stringToPath,toString=toString_1;function castPath$2(e,t){return isArray$5(e)?e:isKey$2(e,t)?[e]:stringToPath(toString(e))}var _castPath=castPath$2,isSymbol$1=isSymbol_1,INFINITY$1=1/0;function toKey$4(e){if("string"==typeof e||isSymbol$1(e))return e;var t=e+"";return"0"==t&&1/e==-INFINITY$1?"-0":t}var _toKey=toKey$4,castPath$1=_castPath,toKey$3=_toKey;function baseGet$2(e,t){for(var r=0,a=(t=castPath$1(t,e)).length;null!=e&&r<a;)e=e[toKey$3(t[r++])];return r&&r==a?e:void 0}var _baseGet=baseGet$2,baseGet$1=_baseGet;function get$1(e,t,r){var a=null==e?void 0:baseGet$1(e,t);return void 0===a?r:a}var get_1=get$1;const getValue$1=(e,t,r)=>t?get_1(r,t)||get_1(e,t):r||e,getCollection=(e,t)=>{const r=t||e.defaultValue;return get_1(e.collections,r)};var ThemeContextKeys;!function(e){e.colorScheme="colorScheme",e.layout="layout",e.textStyleScheme="textStyleScheme"}(ThemeContextKeys||(ThemeContextKeys={}));const ColorSpec={collections:{base:BaseColorSet,bookingsg:BookingSGColorSet},defaultValue:"base"},getThemeColors=e=>t=>{const r=t.theme,a=getCollection(ColorSpec,r[ThemeContextKeys.colorScheme]);return r.options&&r.options.color?getValue$1(a,e,r.options.color):getValue$1(a,e)},Color={Brand:{1:getThemeColors("Brand.1"),2:getThemeColors("Brand.2"),3:getThemeColors("Brand.3"),4:getThemeColors("Brand.4"),5:getThemeColors("Brand.5"),6:getThemeColors("Brand.6")},Primary:getThemeColors("Primary"),PrimaryDark:getThemeColors("PrimaryDark"),Secondary:getThemeColors("Secondary"),Accent:{Light:{1:getThemeColors("Accent.Light.1"),2:getThemeColors("Accent.Light.2"),3:getThemeColors("Accent.Light.3"),4:getThemeColors("Accent.Light.4"),5:getThemeColors("Accent.Light.5"),6:getThemeColors("Accent.Light.6")},Dark:{1:getThemeColors("Accent.Dark.1"),2:getThemeColors("Accent.Dark.2"),3:getThemeColors("Accent.Dark.3")}},Neutral:{1:getThemeColors("Neutral.1"),2:getThemeColors("Neutral.2"),3:getThemeColors("Neutral.3"),4:getThemeColors("Neutral.4"),5:getThemeColors("Neutral.5"),6:getThemeColors("Neutral.6"),7:getThemeColors("Neutral.7"),8:getThemeColors("Neutral.8")},Validation:{Green:{Text:getThemeColors("Validation.Green.Text"),Icon:getThemeColors("Validation.Green.Icon"),Border:getThemeColors("Validation.Green.Border"),Background:getThemeColors("Validation.Green.Background")},Orange:{Text:getThemeColors("Validation.Orange.Text"),Icon:getThemeColors("Validation.Orange.Icon"),Border:getThemeColors("Validation.Orange.Border"),Background:getThemeColors("Validation.Orange.Background"),Badge:getThemeColors("Validation.Orange.Badge")},Red:{Text:getThemeColors("Validation.Red.Text"),Icon:getThemeColors("Validation.Red.Icon"),Border:getThemeColors("Validation.Red.Border"),Background:getThemeColors("Validation.Red.Background")}}},SVG=styled.svg`
|
|
2
2
|
height: 1rem;
|
|
3
3
|
width: 1rem;
|
|
4
4
|
vertical-align: text-top;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
fill: ${Color.Neutral[8]};
|
|
8
|
-
}
|
|
9
|
-
`,ArrowRightIcon=e=>jsx(SVG,{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 16 16",...e,children:jsx("g",{fill:"none",fillRule:"evenodd",children:jsx("g",{id:"path",fillRule:"nonzero",children:jsx("g",{children:jsx("g",{children:jsx("g",{children:jsx("path",{d:"M8.706 14.603l6.075-6.075c.294-.29.294-.765 0-1.06L8.706 1.398c-.29-.294-.765-.294-1.06 0l-.693.694c-.3.297-.294.78.013 1.072L10.73 6.75H1.75c-.416 0-.75.334-.75.75v1c0 .416.334.75.75.75h8.981l-3.765 3.587c-.304.291-.31.775-.013 1.072l.694.694c.29.294.765.294 1.06 0z",transform:"translate(-2384.000000, -760.000000) translate(2253.000000, 692.000000) translate(16.000000, 64.000000) translate(115.000000, 4.000000) translate(0.000000, 0.000000)"})})})})})})}),InfoIcon=e=>jsx(SVG,{width:"1rem",height:"1rem",viewBox:"0 0 40 40",xmlns:"http://www.w3.org/2000/svg",...e,children:jsx("path",{id:"path",d:"M20\n\t\t8.639c-.934\n\t\t0-1.742.342-2.43 1.03-.684.684-1.03 1.495-1.03 2.429 0 .931.346 1.742 1.03 2.426.688.688 1.496 1.03 2.43 1.03.931 0 1.742-.342 2.43-1.03.684-.684 1.026-1.495 1.026-2.426 0-.934-.342-1.745-1.026-2.43-.688-.687-1.499-1.03-2.43-1.03m4.61 20.91v-1.976a.959.959 0 0 0-.287-.7.959.959 0 0 0-.7-.286h-.99v-8.232a.954.954 0 0 0-.287-.7.945.945 0 0 0-.7-.29h-5.269a.95.95 0 0 0-.7.29.954.954 0 0 0-.286.7v1.976c0 .271.095.506.286.7a.959.959 0 0 0 .7.287h.99v5.269h-.99a.959.959 0 0 0-.7.286.959.959 0 0 0-.286.7v1.977c0 .274.095.505.286.7a.959.959 0 0 0 .7.286h7.246a.959.959 0 0 0 .7-.287.959.959 0 0 0 .286-.7M20 2.5c3.15 0 6.068.788 8.75 2.365a17.67 17.67 0 0 1 6.385 6.386C36.71 13.933 37.5 16.848 37.5 20c0 3.15-.79 6.068-2.365 8.751a17.71 17.71 0 0 1-6.385 6.385C26.068 36.712 23.15 37.5 20 37.5c-3.153 0-6.068-.788-8.75-2.363a17.71 17.71 0 0 1-6.385-6.385c-1.575-2.683-2.365-5.6-2.365-8.75 0-3.154.79-6.069 2.365-8.751a17.67 17.67 0 0 1 6.385-6.386C13.932 3.288 16.847 2.5 20 2.5",fillRule:"nonzero"})}),PlayAltIcon=e=>jsx(SVG,{xmlns:"http://www.w3.org/2000/svg",width:"2rem",height:"2rem",viewBox:"0 0 64 64",id:"play-icon",...e,children:jsx("path",{id:"path",d:"M52.762 37.237 20.474 53.38A5.856 5.856 0 0 1 12 48.143V15.856a5.856 5.856 0 0 1 8.474-5.238l32.288 16.144a5.856 5.856 0 0 1 0 10.475z",fillRule:"nonzero"})}),SearchIcon$1=e=>jsx(SVG,{xmlns:"http://www.w3.org/2000/svg",width:"2rem",height:"2rem",viewBox:"0 0 32 32",fill:"none",...e,children:jsx("g",{id:"search",children:jsx("path",{id:"path",fillRule:"evenodd",clipRule:"evenodd",d:"M7.60986 7.60986C5.86994 9.34977 5 11.445 5 13.8956C5 16.3462 5.86994 18.4414 7.60986 20.1813C9.34977 21.9212 11.445 22.7911 13.8956 22.7911C15.6355 22.7911 17.2345 22.3133 18.6926 21.3576L24.2063 26.8713C24.3044 26.9571 24.4146 27 24.5372 27C24.6597 27 24.77 26.9571 24.868 26.8713L26.8713 24.868C26.9571 24.77 27 24.6597 27 24.5372C27 24.4146 26.9571 24.3044 26.8713 24.2063L21.3576 18.6926C22.3133 17.2345 22.7911 15.6355 22.7911 13.8956C22.7911 11.445 21.9212 9.34977 20.1813 7.60986C18.4414 5.86994 16.3462 5 13.8956 5C11.445 5 9.34977 5.86994 7.60986 7.60986ZM9.59484 18.178C8.4063 16.9894 7.81205 15.562 7.81205 13.8956C7.81205 12.2292 8.4063 10.8017 9.59484 9.61321C10.7834 8.42468 12.2169 7.83042 13.8956 7.83042C15.5742 7.83042 17.0047 8.42162 18.1872 9.60403C19.3696 10.7864 19.9608 12.2169 19.9608 13.8956C19.9608 15.5742 19.3696 17.0047 18.1872 18.1872C17.0047 19.3696 15.5742 19.9608 13.8956 19.9608C12.2169 19.9608 10.7834 19.3665 9.59484 18.178Z"})})}),Icon=({type:e,...t})=>{switch(e){case"arrow-right":return jsx(ArrowRightIcon,{...t});case"info":return jsx(InfoIcon,{...t});case"search":return jsx(SearchIcon$1,{...t});case"play-alt":return jsx(PlayAltIcon,{...t});default:{const r=`sgds-icon sgds-icon-${e}`,a=t.className?`${r} ${t.className}`:r;return jsx(IconSpan,{...t,className:a})}}},IconSpan=styled.span`
|
|
5
|
+
color: ${Color.Primary};
|
|
6
|
+
`,ArrowRightIcon=e=>jsx(SVG,{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 16 16",...e,children:jsx("path",{fill:"currentColor",d:"M8.706 14.603l6.075-6.075c.294-.29.294-.765 0-1.06L8.706 1.398c-.29-.294-.765-.294-1.06 0l-.693.694c-.3.297-.294.78.013 1.072L10.73 6.75H1.75c-.416 0-.75.334-.75.75v1c0 .416.334.75.75.75h8.981l-3.765 3.587c-.304.291-.31.775-.013 1.072l.694.694c.29.294.765.294 1.06 0z",transform:"translate(-2384.000000, -760.000000) translate(2253.000000, 692.000000) translate(16.000000, 64.000000) translate(115.000000, 4.000000) translate(0.000000, 0.000000)"})}),CrossIcon=e=>jsx(SVG,{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:jsx("path",{fill:"currentColor",d:"M23.8785 5.13337C24.0563 4.95554 24.3408 4.95554 24.5186 5.13337L26.8666 7.48184C27.0444 7.65572 27.0444 7.9442 26.8666 8.11808L19.3082 15.6819C19.1304 15.8558 19.1304 16.1442 19.3082 16.3221L26.8666 23.8819C27.0444 24.0558 27.0444 24.3443 26.8666 24.5182L24.5186 26.8666C24.3408 27.0445 24.0563 27.0445 23.8785 26.8666L16.32 19.3068C16.1422 19.129 15.8578 19.129 15.68 19.3068L8.12148 26.8666C7.94368 27.0445 7.65919 27.0445 7.48139 26.8666L5.13335 24.5182C4.95555 24.3443 4.95555 24.0558 5.13335 23.8819L12.6918 16.3221C12.8696 16.1442 12.8696 15.8558 12.6918 15.6819L5.13335 8.11808C4.95555 7.9442 4.95555 7.65572 5.13335 7.48184L7.48139 5.13337C7.65919 4.95554 7.94368 4.95554 8.12148 5.13337L15.68 12.6932C15.8578 12.871 16.1422 12.871 16.32 12.6932L23.8785 5.13337Z"})}),InfoIcon=e=>jsx(SVG,{width:"1rem",height:"1rem",viewBox:"0 0 40 40",xmlns:"http://www.w3.org/2000/svg",...e,children:jsx("path",{fill:"currentColor",id:"path",d:"M20\n\t\t8.639c-.934\n\t\t0-1.742.342-2.43 1.03-.684.684-1.03 1.495-1.03 2.429 0 .931.346 1.742 1.03 2.426.688.688 1.496 1.03 2.43 1.03.931 0 1.742-.342 2.43-1.03.684-.684 1.026-1.495 1.026-2.426 0-.934-.342-1.745-1.026-2.43-.688-.687-1.499-1.03-2.43-1.03m4.61 20.91v-1.976a.959.959 0 0 0-.287-.7.959.959 0 0 0-.7-.286h-.99v-8.232a.954.954 0 0 0-.287-.7.945.945 0 0 0-.7-.29h-5.269a.95.95 0 0 0-.7.29.954.954 0 0 0-.286.7v1.976c0 .271.095.506.286.7a.959.959 0 0 0 .7.287h.99v5.269h-.99a.959.959 0 0 0-.7.286.959.959 0 0 0-.286.7v1.977c0 .274.095.505.286.7a.959.959 0 0 0 .7.286h7.246a.959.959 0 0 0 .7-.287.959.959 0 0 0 .286-.7M20 2.5c3.15 0 6.068.788 8.75 2.365a17.67 17.67 0 0 1 6.385 6.386C36.71 13.933 37.5 16.848 37.5 20c0 3.15-.79 6.068-2.365 8.751a17.71 17.71 0 0 1-6.385 6.385C26.068 36.712 23.15 37.5 20 37.5c-3.153 0-6.068-.788-8.75-2.363a17.71 17.71 0 0 1-6.385-6.385c-1.575-2.683-2.365-5.6-2.365-8.75 0-3.154.79-6.069 2.365-8.751a17.67 17.67 0 0 1 6.385-6.386C13.932 3.288 16.847 2.5 20 2.5",fillRule:"nonzero"})}),PlayIcon=e=>jsx(SVG,{xmlns:"http://www.w3.org/2000/svg",width:"2rem",height:"2rem",viewBox:"0 0 64 64",id:"play-icon",...e,children:jsx("path",{fill:"currentColor",fillRule:"nonzero",d:"M52.762 37.237 20.474 53.38A5.856 5.856 0 0 1 12 48.143V15.856a5.856 5.856 0 0 1 8.474-5.238l32.288 16.144a5.856 5.856 0 0 1 0 10.475z"})}),SearchIcon$1=e=>jsx(SVG,{xmlns:"http://www.w3.org/2000/svg",width:"2rem",height:"2rem",viewBox:"0 0 32 32",...e,children:jsx("path",{id:"path",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd",d:"M7.60986 7.60986C5.86994 9.34977 5 11.445 5 13.8956C5 16.3462 5.86994 18.4414 7.60986 20.1813C9.34977 21.9212 11.445 22.7911 13.8956 22.7911C15.6355 22.7911 17.2345 22.3133 18.6926 21.3576L24.2063 26.8713C24.3044 26.9571 24.4146 27 24.5372 27C24.6597 27 24.77 26.9571 24.868 26.8713L26.8713 24.868C26.9571 24.77 27 24.6597 27 24.5372C27 24.4146 26.9571 24.3044 26.8713 24.2063L21.3576 18.6926C22.3133 17.2345 22.7911 15.6355 22.7911 13.8956C22.7911 11.445 21.9212 9.34977 20.1813 7.60986C18.4414 5.86994 16.3462 5 13.8956 5C11.445 5 9.34977 5.86994 7.60986 7.60986ZM9.59484 18.178C8.4063 16.9894 7.81205 15.562 7.81205 13.8956C7.81205 12.2292 8.4063 10.8017 9.59484 9.61321C10.7834 8.42468 12.2169 7.83042 13.8956 7.83042C15.5742 7.83042 17.0047 8.42162 18.1872 9.60403C19.3696 10.7864 19.9608 12.2169 19.9608 13.8956C19.9608 15.5742 19.3696 17.0047 18.1872 18.1872C17.0047 19.3696 15.5742 19.9608 13.8956 19.9608C12.2169 19.9608 10.7834 19.3665 9.59484 18.178Z"})}),Icon=({type:e,...t})=>{switch(e){case"arrow-right":return jsx(ArrowRightIcon,{...t});case"info":return jsx(InfoIcon,{...t});case"cross":return jsx(CrossIcon,{...t});case"play":return jsx(PlayIcon,{...t});case"search":return jsx(SearchIcon$1,{...t});default:{const r=`sgds-icon sgds-icon-${e}`,a=t.className?`${r} ${t.className}`:r;return jsx(IconSpan,{...t,className:a})}}},IconSpan=styled.span`
|
|
10
7
|
font-size: 1rem;
|
|
11
8
|
`,Main$1=styled.button`
|
|
12
9
|
display: flex;
|
|
@@ -26,7 +23,7 @@ import{jsx,jsxs,Fragment}from"react/jsx-runtime";import*as React from"react";imp
|
|
|
26
23
|
outline: none;
|
|
27
24
|
background-color: ${Color.Neutral[7]};
|
|
28
25
|
}
|
|
29
|
-
`,Component$
|
|
26
|
+
`,Component$a=({children:e,iconType:t,...r},a)=>{let i;if(e)i=e;else{if(!t)return console.error("IconButton - Did not specify a valid children or iconType prop"),null;i=jsx(Icon,{type:t})}return jsx(Main$1,{ref:a,...r,children:i})},IconButton=React__default.forwardRef(Component$a),MediaWidths$1={mobileS:320,mobileM:375,mobileL:480,tablet:1199,desktopM:1399,desktopL:1999,desktop4k:3840},getMediaQuerySpec=e=>Object.keys(MediaWidths$1).reduce(((t,r)=>{const a=MediaWidths$1[r];return t[r]=`@media screen and (${e}: ${a}px)`,t}),{}),MediaQuery={MaxWidth:getMediaQuerySpec("max-width"),MinWidth:getMediaQuerySpec("min-width")},MediaWidths=MediaWidths$1,FontFamily={OpenSans:{Regular:"Open Sans",Semibold:"Open Sans Semibold",Bold:"Open Sans Bold",Light:"Open Sans Light"},MerriWeather:"Merriweather"},BaseTextStyleSet={D1:{fontFamily:FontFamily.OpenSans.Bold,fontSize:3,fontWeight:700,lineHeight:4,letterSpacing:-.056},D2:{fontFamily:FontFamily.OpenSans.Bold,fontSize:2.5,fontWeight:700,lineHeight:3.5,letterSpacing:-.032},D3:{fontFamily:FontFamily.OpenSans.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},D4:{fontFamily:FontFamily.OpenSans.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},DBody:{fontFamily:FontFamily.OpenSans.Regular,fontSize:1.375,lineHeight:1.75},H1:{fontFamily:FontFamily.OpenSans.Bold,fontSize:2,fontWeight:700,lineHeight:2.5},H2:{fontFamily:FontFamily.OpenSans.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},H3:{fontFamily:FontFamily.OpenSans.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},H4:{fontFamily:FontFamily.OpenSans.Bold,fontSize:1.125,fontWeight:700,lineHeight:1.625},H5:{fontFamily:FontFamily.OpenSans.Bold,fontSize:1,fontWeight:700,lineHeight:1.5,letterSpacing:.014},H6:{fontFamily:FontFamily.OpenSans.Bold,fontSize:.875,fontWeight:700,lineHeight:1.6,letterSpacing:.012},Body:{fontFamily:FontFamily.OpenSans.Regular,fontSize:1.125,lineHeight:1.625},BodySmall:{fontFamily:FontFamily.OpenSans.Regular,fontSize:1,lineHeight:1.5,letterSpacing:.014},XSmall:{fontFamily:FontFamily.OpenSans.Regular,fontSize:.75,lineHeight:1.2,letterSpacing:.012}},TextStyleSpec={collections:{base:BaseTextStyleSet},defaultValue:"base"},getThemeTextStyles=e=>t=>{const r=t.theme,a=getCollection(TextStyleSpec,r[ThemeContextKeys.textStyleScheme]);return r.options&&r.options.textStyle?getValue$1(a,e,r.options.textStyle):getValue$1(a,e)},TextStyle={D1:{fontFamily:getThemeTextStyles("D1.fontFamily"),fontSize:getThemeTextStyles("D1.fontSize"),fontWeight:getThemeTextStyles("D1.fontWeight"),lineHeight:getThemeTextStyles("D1.lineHeight"),letterSpacing:getThemeTextStyles("D1.letterSpacing")},D2:{fontFamily:getThemeTextStyles("D2.fontFamily"),fontSize:getThemeTextStyles("D2.fontSize"),fontWeight:getThemeTextStyles("D2.fontWeight"),lineHeight:getThemeTextStyles("D2.lineHeight"),letterSpacing:getThemeTextStyles("D2.letterSpacing")},D3:{fontFamily:getThemeTextStyles("D3.fontFamily"),fontSize:getThemeTextStyles("D3.fontSize"),fontWeight:getThemeTextStyles("D3.fontWeight"),lineHeight:getThemeTextStyles("D3.lineHeight"),letterSpacing:getThemeTextStyles("D3.letterSpacing")},D4:{fontFamily:getThemeTextStyles("D4.fontFamily"),fontSize:getThemeTextStyles("D4.fontSize"),fontWeight:getThemeTextStyles("D4.fontWeight"),lineHeight:getThemeTextStyles("D4.lineHeight"),letterSpacing:getThemeTextStyles("D4.letterSpacing")},DBody:{fontFamily:getThemeTextStyles("DBody.fontFamily"),fontSize:getThemeTextStyles("DBody.fontSize"),fontWeight:getThemeTextStyles("DBody.fontWeight"),lineHeight:getThemeTextStyles("DBody.lineHeight"),letterSpacing:getThemeTextStyles("DBody.letterSpacing")},H1:{fontFamily:getThemeTextStyles("H1.fontFamily"),fontSize:getThemeTextStyles("H1.fontSize"),fontWeight:getThemeTextStyles("H1.fontWeight"),lineHeight:getThemeTextStyles("H1.lineHeight"),letterSpacing:getThemeTextStyles("H1.letterSpacing")},H2:{fontFamily:getThemeTextStyles("H2.fontFamily"),fontSize:getThemeTextStyles("H2.fontSize"),fontWeight:getThemeTextStyles("H2.fontWeight"),lineHeight:getThemeTextStyles("H2.lineHeight"),letterSpacing:getThemeTextStyles("H2.letterSpacing")},H3:{fontFamily:getThemeTextStyles("H3.fontFamily"),fontSize:getThemeTextStyles("H3.fontSize"),fontWeight:getThemeTextStyles("H3.fontWeight"),lineHeight:getThemeTextStyles("H3.lineHeight"),letterSpacing:getThemeTextStyles("H3.letterSpacing")},H4:{fontFamily:getThemeTextStyles("H4.fontFamily"),fontSize:getThemeTextStyles("H4.fontSize"),fontWeight:getThemeTextStyles("H4.fontWeight"),lineHeight:getThemeTextStyles("H4.lineHeight"),letterSpacing:getThemeTextStyles("H4.letterSpacing")},H5:{fontFamily:getThemeTextStyles("H5.fontFamily"),fontSize:getThemeTextStyles("H5.fontSize"),fontWeight:getThemeTextStyles("H5.fontWeight"),lineHeight:getThemeTextStyles("H5.lineHeight"),letterSpacing:getThemeTextStyles("H5.letterSpacing")},H6:{fontFamily:getThemeTextStyles("H6.fontFamily"),fontSize:getThemeTextStyles("H6.fontSize"),fontWeight:getThemeTextStyles("H6.fontWeight"),lineHeight:getThemeTextStyles("H6.lineHeight"),letterSpacing:getThemeTextStyles("H6.letterSpacing")},Body:{fontFamily:getThemeTextStyles("Body.fontFamily"),fontSize:getThemeTextStyles("Body.fontSize"),fontWeight:getThemeTextStyles("Body.fontWeight"),lineHeight:getThemeTextStyles("Body.lineHeight"),letterSpacing:getThemeTextStyles("Body.letterSpacing")},BodySmall:{fontFamily:getThemeTextStyles("BodySmall.fontFamily"),fontSize:getThemeTextStyles("BodySmall.fontSize"),fontWeight:getThemeTextStyles("BodySmall.fontWeight"),lineHeight:getThemeTextStyles("BodySmall.lineHeight"),letterSpacing:getThemeTextStyles("BodySmall.letterSpacing")},XSmall:{fontFamily:getThemeTextStyles("XSmall.fontFamily"),fontSize:getThemeTextStyles("XSmall.fontSize"),fontWeight:getThemeTextStyles("XSmall.fontWeight"),lineHeight:getThemeTextStyles("XSmall.lineHeight"),letterSpacing:getThemeTextStyles("XSmall.letterSpacing")}},getFont=e=>{switch(e){case 700:case"bold":return FontFamily.OpenSans.Bold;case 600:case"semibold":return FontFamily.OpenSans.Semibold;case 300:case"light":return FontFamily.OpenSans.Light;case 400:case"regular":return FontFamily.OpenSans.Regular;default:return""}},getFontFamily=(e,t)=>r=>{const a=TextStyle[e].fontFamily(r),i=TextStyle[e].fontWeight(r);return Object.values(FontFamily.OpenSans).includes(a)?css`
|
|
30
27
|
font-family: ${getFont(t)||getFont(i)||a};
|
|
31
28
|
font-weight: normal !important;
|
|
32
29
|
`:css`
|
|
@@ -144,7 +141,7 @@ import{jsx,jsxs,Fragment}from"react/jsx-runtime";import*as React from"react";imp
|
|
|
144
141
|
`}
|
|
145
142
|
`,ExternalIcon=styled(Icon)`
|
|
146
143
|
margin-left: 0.4rem;
|
|
147
|
-
`,HyperlinkComponent=({external:e=!1,children:t,...r})=>jsxs(HyperlinkBase,{...r,children:[t,e&&jsx(ExternalIcon,{type:"external"})]}),Base="all 300ms cubic-bezier(0.21, 0.79, 0.53, 1)",Custom=e=>`all ${e}ms cubic-bezier(0.21, 0.79, 0.53, 1)`,Transition={Base:Base,Custom:Custom},Container$
|
|
144
|
+
`,HyperlinkComponent=({external:e=!1,children:t,...r})=>jsxs(HyperlinkBase,{...r,children:[t,e&&jsx(ExternalIcon,{type:"external"})]}),Base$1="all 300ms cubic-bezier(0.21, 0.79, 0.53, 1)",Custom=e=>`all ${e}ms cubic-bezier(0.21, 0.79, 0.53, 1)`,Transition={Base:Base$1,Custom:Custom},Container$h=styled.div`
|
|
148
145
|
background-color: ${Color.Neutral[8]} !important;
|
|
149
146
|
border-top: 1px solid ${Color.Neutral[6]};
|
|
150
147
|
padding: ${e=>e.$isCollapsed?"0 0 1rem":"0"};
|
|
@@ -192,7 +189,7 @@ import{jsx,jsxs,Fragment}from"react/jsx-runtime";import*as React from"react";imp
|
|
|
192
189
|
${MediaQuery.MaxWidth.tablet} {
|
|
193
190
|
padding-right: 0;
|
|
194
191
|
}
|
|
195
|
-
`,AccordionItem=({title:e,children:t,expanded:r=!0,type:a="default",...i})=>{const n=useContext(AccordionContext),[s,o]=useState(n||r),l=i["data-testid"]||"accordion-item",h=useResizeDetector(),
|
|
192
|
+
`,AccordionItem=({title:e,children:t,expanded:r=!0,type:a="default",...i})=>{const n=useContext(AccordionContext),[s,o]=useState(n||r),l=i["data-testid"]||"accordion-item",h=useResizeDetector(),c=h.ref;useEffect((()=>{o(n)}),[n]),useEffect((()=>{o(r)}),[r]);const d=useSpring({height:s?h.height:0});return jsxs(Container$h,{"data-testid":l,className:i.className,$isCollapsed:s,children:[jsxs(TitleContainer,{children:[jsx("small"===a?TitleH4:Title$1,{"data-testid":`${l}-title`,$isCollapsed:s,children:e}),jsx(ExpandCollapseButton,{"data-testid":`${l}-expand-collapse-button`,onClick:e=>{e.preventDefault(),o((e=>!e))},$isCollapsed:s,"aria-label":s?"Collapse":"Expand",children:jsx(ChevronIcon,{type:"chevron-up"})})]}),jsx(Expandable$2,{style:d,$isCollapsed:s,children:jsx(DescriptionContainer,{ref:c,id:"content-container",children:t})})]})},OuterRing=styled.div`
|
|
196
193
|
display: inline-block;
|
|
197
194
|
position: relative;
|
|
198
195
|
width: ${e=>e.$size}px;
|
|
@@ -330,7 +327,7 @@ import{jsx,jsxs,Fragment}from"react/jsx-runtime";import*as React from"react";imp
|
|
|
330
327
|
border-color: ${t} transparent transparent transparent;
|
|
331
328
|
}
|
|
332
329
|
`}}
|
|
333
|
-
`,DefaultComponent=(e,t)=>{const{children:r,disabled:a=!1,loading:i=!1,styleType:n="default",...s}=e,o={$buttonStyle:a?"disabled":n,$buttonSizeStyle:"default"};return jsxs(Main,{ref:t,"data-testid":s["data-testid"]||"button",disabled:a,...o,...s,children:[i&&jsx(Spinner,{...o}),jsx("span",{children:r})]})},SmallComponent=(e,t)=>{const{children:r,disabled:a=!1,loading:i=!1,styleType:n="default",...s}=e,o={$buttonStyle:a?"disabled":n,$buttonSizeStyle:"small"};return jsxs(Main,{ref:t,"data-testid":s["data-testid"]||"button",disabled:a,...o,...s,children:[i&&jsx(Spinner,{...o,size:16}),jsx("span",{children:r})]})},Button={Default:React__default.forwardRef(DefaultComponent),Small:React__default.forwardRef(SmallComponent)},Content$
|
|
330
|
+
`,DefaultComponent=(e,t)=>{const{children:r,disabled:a=!1,loading:i=!1,styleType:n="default",...s}=e,o={$buttonStyle:a?"disabled":n,$buttonSizeStyle:"default"};return jsxs(Main,{ref:t,"data-testid":s["data-testid"]||"button",disabled:a,...o,...s,children:[i&&jsx(Spinner,{...o}),jsx("span",{children:r})]})},SmallComponent=(e,t)=>{const{children:r,disabled:a=!1,loading:i=!1,styleType:n="default",...s}=e,o={$buttonStyle:a?"disabled":n,$buttonSizeStyle:"small"};return jsxs(Main,{ref:t,"data-testid":s["data-testid"]||"button",disabled:a,...o,...s,children:[i&&jsx(Spinner,{...o,size:16}),jsx("span",{children:r})]})},Button={Default:React__default.forwardRef(DefaultComponent),Small:React__default.forwardRef(SmallComponent)},Content$4=styled.div`
|
|
334
331
|
width: 100%;
|
|
335
332
|
border-bottom: 1px solid ${Color.Neutral[6]};
|
|
336
333
|
`,TitleWrapper=styled.div`
|
|
@@ -360,7 +357,7 @@ import{jsx,jsxs,Fragment}from"react/jsx-runtime";import*as React from"react";imp
|
|
|
360
357
|
padding: 1.75rem 1rem; // larger clickable area
|
|
361
358
|
margin: -1rem -1rem -1rem 0px;
|
|
362
359
|
white-space: nowrap;
|
|
363
|
-
`,AccordionBase=({children:e,title:t,enableExpandAll:r=!0,showTitleInMobile:a=!1,className:i})=>{const[n,s]=useState(!0),o=e=>{e.preventDefault(),s((e=>!e))};return jsx(AccordionContext.Provider,{value:n,children:jsxs(Content$
|
|
360
|
+
`,AccordionBase=({children:e,title:t,enableExpandAll:r=!0,showTitleInMobile:a=!1,className:i})=>{const[n,s]=useState(!0),o=e=>{e.preventDefault(),s((e=>!e))};return jsx(AccordionContext.Provider,{value:n,children:jsxs(Content$4,{className:i,children:[jsxs(TitleWrapper,{$hasTitle:!!t||a,children:[t&&jsx(Title,{$showInMobile:a,"data-testid":"accordion-title",children:t}),r&&jsx(ExpandCollapseLink,{"data-testid":"accordion-expand-collapse-button",onClick:o,styleType:"link",children:n?"Hide all":"Show all"})]}),e]})})},Accordion=Object.assign(AccordionBase,{Item:AccordionItem}),Wrapper$d=styled.div`
|
|
364
361
|
padding: 0.5rem 1rem;
|
|
365
362
|
display: flex;
|
|
366
363
|
flex-direction: column;
|
|
@@ -405,12 +402,12 @@ import{jsx,jsxs,Fragment}from"react/jsx-runtime";import*as React from"react";imp
|
|
|
405
402
|
#path {
|
|
406
403
|
fill: ${Color.Primary};
|
|
407
404
|
}
|
|
408
|
-
`,Alert=({type:e,className:t,children:r,actionLink:a,...i})=>jsxs(Wrapper$6,{className:t,$type:e,"data-testid":i["data-testid"],children:[r,a&&jsxs(ActionLinkText,{weight:"semibold",...a,"data-testid":"action-link",children:[a.children,jsx(ArrowIcon,{type:"arrow-right"})]})]});var lottie$1={exports:{}};(function(module,exports){var factory;"undefined"!=typeof navigator&&(factory=function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(e){_useWebWorker=!!e},getWebWorker=function(){return _useWebWorker},setLocationHref=function(e){locationHref=e},getLocationHref=function(){return locationHref};function createTag(e){return document.createElement(e)}function extendPrototype(e,t){var r,a,i=e.length;for(r=0;r<i;r+=1)for(var n in a=e[r].prototype)Object.prototype.hasOwnProperty.call(a,n)&&(t.prototype[n]=a[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(e){this.audios=[],this.audioFactory=e,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(e){this.audios.push(e)},pause:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].pause()},resume:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].resume()},setRate:function(e){var t,r=this.audios.length;for(t=0;t<r;t+=1)this.audios[t].setRate(e)},createAudio:function(e){return this.audioFactory?this.audioFactory(e):window.Howl?new window.Howl({src:[e]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(e){this.audioFactory=e},setVolume:function(e){this._volume=e,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),createTypedArray=function(){function e(e,t){var r,a=0,i=[];switch(e){case"int16":case"uint8c":r=1;break;default:r=1.1}for(a=0;a<t;a+=1)i.push(r);return i}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(t,r){return"float32"===t?new Float32Array(r):"int16"===t?new Int16Array(r):"uint8c"===t?new Uint8ClampedArray(r):e(t,r)}:e}();function createSizedArray(e){return Array.apply(null,{length:e})}function _typeof$6(e){return _typeof$6="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$6(e)}var subframeEnabled=!0,expressionsPlugin=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,t=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],r=t.length;for(e=0;e<r;e+=1)BMMath[t[e]]=Math[t[e]]}(),BMMath.random=Math.random,BMMath.abs=function(e){if("object"===_typeof$6(e)&&e.length){var t,r=createSizedArray(e.length),a=e.length;for(t=0;t<a;t+=1)r[t]=Math.abs(e[t]);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,a){this.type=e,this.currentTime=t,this.totalTime=r,this.direction=a<0?-1:1}function BMCompleteEvent(e,t){this.type=e,this.direction=t<0?-1:1}function BMCompleteLoopEvent(e,t,r,a){this.type=e,this.currentLoop=r,this.totalLoops=t,this.direction=a<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=(_count=0,function(){return idPrefix$1+"__lottie_element_"+(_count+=1)}),_count;function HSVtoRGB(e,t,r){var a,i,n,s,o,l,h,p;switch(l=r*(1-t),h=r*(1-(o=6*e-(s=Math.floor(6*e)))*t),p=r*(1-(1-o)*t),s%6){case 0:a=r,i=p,n=l;break;case 1:a=h,i=r,n=l;break;case 2:a=l,i=r,n=p;break;case 3:a=l,i=h,n=r;break;case 4:a=p,i=l,n=r;break;case 5:a=r,i=l,n=h}return[a,i,n]}function RGBtoHSV(e,t,r){var a,i=Math.max(e,t,r),n=Math.min(e,t,r),s=i-n,o=0===i?0:s/i,l=i/255;switch(i){case n:a=0;break;case e:a=t-r+s*(t<r?6:0),a/=6*s;break;case t:a=r-e+2*s,a/=6*s;break;case r:a=e-t+4*s,a/=6*s}return[a,o,l]}function addSaturationToRGB(e,t){var r=RGBtoHSV(255*e[0],255*e[1],255*e[2]);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(255*e[0],255*e[1],255*e[2]);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(255*e[0],255*e[1],255*e[2]);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(e=0;e<256;e+=1)t=e.toString(16),r[e]=1===t.length?"0"+t:t;return function(e,t,a){return e<0&&(e=0),t<0&&(t=0),a<0&&(a=0),"#"+r[e]+r[t]+r[a]}}(),setSubframeEnabled=function(e){subframeEnabled=!!e},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(e){expressionsPlugin=e},getExpressionsPlugin=function(){return expressionsPlugin},setDefaultCurveSegments=function(e){defaultCurveSegments=e},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(e){idPrefix$1=e};function createNS(e){return document.createElementNS(svgNS,e)}function _typeof$5(e){return _typeof$5="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$5(e)}var dataManager=function(){var e,t,r=1,a=[],i={onmessage:function(){},postMessage:function(t){e({data:t})}},n={postMessage:function(e){i.onmessage({data:e})}};function s(){t||(t=function(t){if(window.Worker&&window.Blob&&getWebWorker()){var r=new Blob(["var _workerSelf = self; self.onmessage = ",t.toString()],{type:"text/javascript"}),a=URL.createObjectURL(r);return new Worker(a)}return e=t,i}((function(e){if(n.dataManager||(n.dataManager=function(){function e(i,n){var s,o,l,h,p,d,u=i.length;for(o=0;o<u;o+=1)if("ks"in(s=i[o])&&!s.completed){if(s.completed=!0,s.tt&&(i[o-1].td=s.tt),s.hasMask){var m=s.masksProperties;for(h=m.length,l=0;l<h;l+=1)if(m[l].pt.k.i)a(m[l].pt.k);else for(d=m[l].pt.k.length,p=0;p<d;p+=1)m[l].pt.k[p].s&&a(m[l].pt.k[p].s[0]),m[l].pt.k[p].e&&a(m[l].pt.k[p].e[0])}0===s.ty?(s.layers=t(s.refId,n),e(s.layers,n)):4===s.ty?r(s.shapes):5===s.ty&&c(s)}}function t(e,t){var r=function(e,t){for(var r=0,a=t.length;r<a;){if(t[r].id===e)return t[r];r+=1}return null}(e,t);return r?r.layers.__used?JSON.parse(JSON.stringify(r.layers)):(r.layers.__used=!0,r.layers):null}function r(e){var t,i,n;for(t=e.length-1;t>=0;t-=1)if("sh"===e[t].ty)if(e[t].ks.k.i)a(e[t].ks.k);else for(n=e[t].ks.k.length,i=0;i<n;i+=1)e[t].ks.k[i].s&&a(e[t].ks.k[i].s[0]),e[t].ks.k[i].e&&a(e[t].ks.k[i].e[0]);else"gr"===e[t].ty&&r(e[t].it)}function a(e){var t,r=e.i.length;for(t=0;t<r;t+=1)e.i[t][0]+=e.v[t][0],e.i[t][1]+=e.v[t][1],e.o[t][0]+=e.v[t][0],e.o[t][1]+=e.v[t][1]}function i(e,t){var r=t?t.split("."):[100,100,100];return e[0]>r[0]||!(r[0]>e[0])&&(e[1]>r[1]||!(r[1]>e[1])&&(e[2]>r[2]||!(r[2]>e[2])&&null))}var n,s=function(){var e=[4,4,14];function t(e){var t,r,a,i=e.length;for(t=0;t<i;t+=1)5===e[t].ty&&(a=void 0,a=(r=e[t]).t.d,r.t.d={k:[{s:a,t:0}]})}return function(r){if(i(e,r.v)&&(t(r.layers),r.assets)){var a,n=r.assets.length;for(a=0;a<n;a+=1)r.assets[a].layers&&t(r.assets[a].layers)}}}(),o=(n=[4,7,99],function(e){if(e.chars&&!i(n,e.v)){var t,a=e.chars.length;for(t=0;t<a;t+=1){var s=e.chars[t];s.data&&s.data.shapes&&(r(s.data.shapes),s.data.ip=0,s.data.op=99999,s.data.st=0,s.data.sr=1,s.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},e.chars[t].t||(s.data.shapes.push({ty:"no"}),s.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}),l=function(){var e=[5,7,15];function t(e){var t,r,a=e.length;for(t=0;t<a;t+=1)5===e[t].ty&&(r=void 0,"number"==typeof(r=e[t].t.p).a&&(r.a={a:0,k:r.a}),"number"==typeof r.p&&(r.p={a:0,k:r.p}),"number"==typeof r.r&&(r.r={a:0,k:r.r}))}return function(r){if(i(e,r.v)&&(t(r.layers),r.assets)){var a,n=r.assets.length;for(a=0;a<n;a+=1)r.assets[a].layers&&t(r.assets[a].layers)}}}(),h=function(){var e=[4,1,9];function t(e){var r,a,i,n=e.length;for(r=0;r<n;r+=1)if("gr"===e[r].ty)t(e[r].it);else if("fl"===e[r].ty||"st"===e[r].ty)if(e[r].c.k&&e[r].c.k[0].i)for(i=e[r].c.k.length,a=0;a<i;a+=1)e[r].c.k[a].s&&(e[r].c.k[a].s[0]/=255,e[r].c.k[a].s[1]/=255,e[r].c.k[a].s[2]/=255,e[r].c.k[a].s[3]/=255),e[r].c.k[a].e&&(e[r].c.k[a].e[0]/=255,e[r].c.k[a].e[1]/=255,e[r].c.k[a].e[2]/=255,e[r].c.k[a].e[3]/=255);else e[r].c.k[0]/=255,e[r].c.k[1]/=255,e[r].c.k[2]/=255,e[r].c.k[3]/=255}function r(e){var r,a=e.length;for(r=0;r<a;r+=1)4===e[r].ty&&t(e[r].shapes)}return function(t){if(i(e,t.v)&&(r(t.layers),t.assets)){var a,n=t.assets.length;for(a=0;a<n;a+=1)t.assets[a].layers&&r(t.assets[a].layers)}}}(),p=function(){var e=[4,4,18];function t(e){var r,a,i;for(r=e.length-1;r>=0;r-=1)if("sh"===e[r].ty)if(e[r].ks.k.i)e[r].ks.k.c=e[r].closed;else for(i=e[r].ks.k.length,a=0;a<i;a+=1)e[r].ks.k[a].s&&(e[r].ks.k[a].s[0].c=e[r].closed),e[r].ks.k[a].e&&(e[r].ks.k[a].e[0].c=e[r].closed);else"gr"===e[r].ty&&t(e[r].it)}function r(e){var r,a,i,n,s,o,l=e.length;for(a=0;a<l;a+=1){if((r=e[a]).hasMask){var h=r.masksProperties;for(n=h.length,i=0;i<n;i+=1)if(h[i].pt.k.i)h[i].pt.k.c=h[i].cl;else for(o=h[i].pt.k.length,s=0;s<o;s+=1)h[i].pt.k[s].s&&(h[i].pt.k[s].s[0].c=h[i].cl),h[i].pt.k[s].e&&(h[i].pt.k[s].e[0].c=h[i].cl)}4===r.ty&&t(r.shapes)}}return function(t){if(i(e,t.v)&&(r(t.layers),t.assets)){var a,n=t.assets.length;for(a=0;a<n;a+=1)t.assets[a].layers&&r(t.assets[a].layers)}}}();function c(e){0===e.t.a.length&&e.t.p}var d={completeData:function(r){r.__complete||(h(r),s(r),o(r),l(r),p(r),e(r.layers,r.assets),function(r,a){if(r){var i=0,n=r.length;for(i=0;i<n;i+=1)1===r[i].t&&(r[i].data.layers=t(r[i].data.refId,a),e(r[i].data.layers,a))}}(r.chars,r.assets),r.__complete=!0)}};return d.checkColors=h,d.checkChars=o,d.checkPathProperties=l,d.checkShapes=p,d.completeLayers=e,d}()),n.assetLoader||(n.assetLoader=function(){function e(e){var t=e.getResponseHeader("content-type");return t&&"json"===e.responseType&&-1!==t.indexOf("json")||e.response&&"object"===_typeof$5(e.response)?e.response:e.response&&"string"==typeof e.response?JSON.parse(e.response):e.responseText?JSON.parse(e.responseText):null}return{load:function(t,r,a,i){var n,s=new XMLHttpRequest;try{s.responseType="json"}catch(e){}s.onreadystatechange=function(){if(4===s.readyState)if(200===s.status)n=e(s),a(n);else try{n=e(s),a(n)}catch(e){i&&i(e)}};try{s.open("GET",t,!0)}catch(e){s.open("GET",r+"/"+t,!0)}s.send()}}}()),"loadAnimation"===e.data.type)n.assetLoader.load(e.data.path,e.data.fullPath,(function(t){n.dataManager.completeData(t),n.postMessage({id:e.data.id,payload:t,status:"success"})}),(function(){n.postMessage({id:e.data.id,status:"error"})}));else if("complete"===e.data.type){var t=e.data.animation;n.dataManager.completeData(t),n.postMessage({id:e.data.id,payload:t,status:"success"})}else"loadData"===e.data.type&&n.assetLoader.load(e.data.path,e.data.fullPath,(function(t){n.postMessage({id:e.data.id,payload:t,status:"success"})}),(function(){n.postMessage({id:e.data.id,status:"error"})}))})),t.onmessage=function(e){var t=e.data,r=t.id,i=a[r];a[r]=null,"success"===t.status?i.onComplete(t.payload):i.onError&&i.onError()})}function o(e,t){var i="processId_"+(r+=1);return a[i]={onComplete:e,onError:t},i}return{loadAnimation:function(e,r,a){s();var i=o(r,a);t.postMessage({type:"loadAnimation",path:e,fullPath:window.location.origin+window.location.pathname,id:i})},loadData:function(e,r,a){s();var i=o(r,a);t.postMessage({type:"loadData",path:e,fullPath:window.location.origin+window.location.pathname,id:i})},completeAnimation:function(e,r,a){s();var i=o(r,a);t.postMessage({type:"complete",animation:e,id:i})}}}(),ImagePreloader=function(){var e=function(){var e=createTag("canvas");e.width=1,e.height=1;var t=e.getContext("2d");return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),e}();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 a(e,t,r){var a="";if(e.e)a=e.p;else if(t){var i=e.p;-1!==i.indexOf("images/")&&(i=i.split("/")[1]),a=t+i}else a=r,a+=e.u?e.u:"",a+=e.p;return a}function i(e){var t=0,r=setInterval(function(){(e.getBBox().width||t>500)&&(this._imageLoaded(),clearInterval(r)),t+=1}.bind(this),50)}function n(e){var t={assetData:e},r=a(e,this.assetsPath,this.path);return dataManager.loadData(r,function(e){t.img=e,this._footageLoaded()}.bind(this),function(){t.img={},this._footageLoaded()}.bind(this)),t}function s(){this._imageLoaded=t.bind(this),this._footageLoaded=r.bind(this),this.testImageLoaded=i.bind(this),this.createFootageData=n.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return s.prototype={loadAssets:function(e,t){var r;this.imagesLoadedCb=t;var a=e.length;for(r=0;r<a;r+=1)e[r].layers||(e[r].t&&"seq"!==e[r].t?3===e[r].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(e[r]))):(this.totalImages+=1,this.images.push(this._createImageData(e[r]))))},setAssetsPath:function(e){this.assetsPath=e||""},setPath:function(e){this.path=e||""},loadedImages:function(){return this.totalImages===this.loadedAssets},loadedFootages:function(){return this.totalFootages===this.loadedFootagesCount},destroy:function(){this.imagesLoadedCb=null,this.images.length=0},getAsset:function(e){for(var t=0,r=this.images.length;t<r;){if(this.images[t].assetData===e)return this.images[t].img;t+=1}return null},createImgData:function(t){var r=a(t,this.assetsPath,this.path),i=createTag("img");i.crossOrigin="anonymous",i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){n.img=e,this._imageLoaded()}.bind(this),!1),i.src=r;var n={img:i,assetData:t};return n},createImageData:function(t){var r=a(t,this.assetsPath,this.path),i=createNS("image");isSafari?this.testImageLoaded(i):i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){n.img=e,this._imageLoaded()}.bind(this),!1),i.setAttributeNS("http://www.w3.org/1999/xlink","href",r),this._elementHelper.append?this._elementHelper.append(i):this._elementHelper.appendChild(i);var n={img:i,assetData:t};return n},imageLoaded:t,footageLoaded:r,setCacheType:function(e,t){"svg"===e?(this._elementHelper=t,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},s}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(e,t){if(this._cbs[e])for(var r=this._cbs[e],a=0;a<r.length;a+=1)r[a](t)},addEventListener:function(e,t){return this._cbs[e]||(this._cbs[e]=[]),this._cbs[e].push(t),function(){this.removeEventListener(e,t)}.bind(this)},removeEventListener:function(e,t){if(t){if(this._cbs[e]){for(var r=0,a=this._cbs[e].length;r<a;)this._cbs[e][r]===t&&(this._cbs[e].splice(r,1),r-=1,a-=1),r+=1;this._cbs[e].length||(this._cbs[e]=null)}}else this._cbs[e]=null}};var markerParser=function(){function e(e){for(var t,r=e.split("\r\n"),a={},i=0,n=0;n<r.length;n+=1)2===(t=r[n].split(":")).length&&(a[t[0]]=t[1].trim(),i+=1);if(0===i)throw new Error;return a}return function(t){for(var r=[],a=0;a<t.length;a+=1){var i=t[a],n={time:i.tm,duration:i.dr};try{n.payload=JSON.parse(t[a].cm)}catch(r){try{n.payload=e(t[a].cm)}catch(e){n.payload={name:t[a].cm}}}r.push(n)}return r}}(),ProjectInterface=function(){function e(e){this.compositions.push(e)}return function(){function t(e){for(var t=0,r=this.compositions.length;t<r;){if(this.compositions[t].data&&this.compositions[t].data.nm===e)return this.compositions[t].prepareFrame&&this.compositions[t].data.xt&&this.compositions[t].prepareFrame(this.currentFrame),this.compositions[t].compInterface;t+=1}return null}return t.compositions=[],t.currentFrame=0,t.registerComposition=e,t}}(),renderers={},registerRenderer=function(e,t){renderers[e]=t};function getRenderer(e){return renderers[e]}function _typeof$4(e){return _typeof$4="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_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)};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||null===e.loop||void 0===e.loop||!0===e.loop?this.loop=!0:!1===e.loop?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay=!("autoplay"in e)||e.autoplay,this.name=e.name?e.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(e,"autoloadSegments")||e.autoloadSegments,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(-1!==e.path.lastIndexOf("\\")?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&&"object"!==_typeof$4(t)&&(t=JSON.parse(t));var r={wrapper:e,animationData:t},a=e.attributes;r.path=a.getNamedItem("data-animation-path")?a.getNamedItem("data-animation-path").value:a.getNamedItem("data-bm-path")?a.getNamedItem("data-bm-path").value:a.getNamedItem("bm-path")?a.getNamedItem("bm-path").value:"",r.animType=a.getNamedItem("data-anim-type")?a.getNamedItem("data-anim-type").value:a.getNamedItem("data-bm-type")?a.getNamedItem("data-bm-type").value:a.getNamedItem("bm-type")?a.getNamedItem("bm-type").value:a.getNamedItem("data-bm-renderer")?a.getNamedItem("data-bm-renderer").value:a.getNamedItem("bm-renderer")?a.getNamedItem("bm-renderer").value:"canvas";var i=a.getNamedItem("data-anim-loop")?a.getNamedItem("data-anim-loop").value:a.getNamedItem("data-bm-loop")?a.getNamedItem("data-bm-loop").value:a.getNamedItem("bm-loop")?a.getNamedItem("bm-loop").value:"";"false"===i?r.loop=!1:"true"===i?r.loop=!0:""!==i&&(r.loop=parseInt(i,10));var n=a.getNamedItem("data-anim-autoplay")?a.getNamedItem("data-anim-autoplay").value:a.getNamedItem("data-bm-autoplay")?a.getNamedItem("data-bm-autoplay").value:!a.getNamedItem("bm-autoplay")||a.getNamedItem("bm-autoplay").value;r.autoplay="false"!==n,r.name=a.getNamedItem("data-name")?a.getNamedItem("data-name").value:a.getNamedItem("data-bm-name")?a.getNamedItem("data-bm-name").value:a.getNamedItem("bm-name")?a.getNamedItem("bm-name").value:"","false"===(a.getNamedItem("data-anim-prerender")?a.getNamedItem("data-anim-prerender").value:a.getNamedItem("data-bm-prerender")?a.getNamedItem("data-bm-prerender").value:a.getNamedItem("bm-prerender")?a.getNamedItem("bm-prerender").value:"")&&(r.prerender=!1),this.setParams(r)},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,r,a=this.animationData.layers,i=a.length,n=e.layers,s=n.length;for(r=0;r<s;r+=1)for(t=0;t<i;){if(a[t].id===n[r].id){a[t]=n[r];break}t+=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,t=0;t<i;t+=1)this.animationData.assets.push(e.assets[t]);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||0===e.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);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(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(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(e){this.triggerConfigError(e)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&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(){this.renderer.updateContainerSize()},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(!1!==this.isLoaded&&this.renderer)try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},AnimationItem.prototype.play=function(e){e&&this.name!==e||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_pause"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(e){e&&this.name!==e||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_play"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(e){e&&this.name!==e||(!0===this.isPaused?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]).payload&&t.payload.name===e)return t;return null},AnimationItem.prototype.goToAndStop=function(e,t,r){if(!r||this.name===r){var a=Number(e);if(isNaN(a)){var i=this.getMarkerData(e);i&&this.goToAndStop(i.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 a=Number(e);if(isNaN(a)){var i=this.getMarkerData(e);i&&(i.duration?this.playSegments([i.time,i.time+i.duration],!0):this.goToAndStop(i.time,!0))}else this.goToAndStop(a,t,r);this.play()}},AnimationItem.prototype.advanceTime=function(e){if(!0!==this.isPaused&&!1!==this.isLoaded){var t=this.currentRawFrame+e*this.frameModifier,r=!1;t>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?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):this.checkSegments(t>this.totalFrames?t%this.totalFrames:0)||(r=!0,t=this.totalFrames-1):t<0?this.checkSegments(t%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(r=!0,t=0):(this.setCurrentRawFrameValue(this.totalFrames+t%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!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,-1!==r&&this.goToAndStop(r,!0)},AnimationItem.prototype.playSegments=function(e,t){if(t&&(this.segments.length=0),"object"===_typeof$4(e[0])){var r,a=e.length;for(r=0;r<a;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)},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.renderer=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.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;-1!==r.indexOf("images/")&&(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{this.renderer.getElementByPath(e).updateDocumentData(t,r)}catch(e){}},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)}"enterFrame"===e&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===e&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult)),"complete"===e&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(e,this.frameMult)),"segmentStart"===e&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames)),"destroy"===e&&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,a=0,i=0,n=!0,s=!1;function o(e){for(var r=0,i=e.target;r<a;)t[r].animation===i&&(t.splice(r,1),r-=1,a-=1,i.isPaused||p()),r+=1}function l(e,r){if(!e)return null;for(var i=0;i<a;){if(t[i].elem===e&&null!==t[i].elem)return t[i].animation;i+=1}var n=new AnimationItem;return c(n,e),n.setData(e,r),n}function h(){i+=1,m()}function p(){i-=1}function c(e,r){e.addEventListener("destroy",o),e.addEventListener("_active",h),e.addEventListener("_idle",p),t.push({elem:r,animation:e}),a+=1}function d(e){var o,l=e-r;for(o=0;o<a;o+=1)t[o].animation.advanceTime(l);r=e,i&&!s?window.requestAnimationFrame(d):n=!0}function u(e){r=e,window.requestAnimationFrame(d)}function m(){!s&&i&&n&&(window.requestAnimationFrame(u),n=!1)}return e.registerAnimation=l,e.loadAnimation=function(e){var t=new AnimationItem;return c(t,null),t.setParams(e),t},e.setSpeed=function(e,r){var i;for(i=0;i<a;i+=1)t[i].animation.setSpeed(e,r)},e.setDirection=function(e,r){var i;for(i=0;i<a;i+=1)t[i].animation.setDirection(e,r)},e.play=function(e){var r;for(r=0;r<a;r+=1)t[r].animation.play(e)},e.pause=function(e){var r;for(r=0;r<a;r+=1)t[r].animation.pause(e)},e.stop=function(e){var r;for(r=0;r<a;r+=1)t[r].animation.stop(e)},e.togglePause=function(e){var r;for(r=0;r<a;r+=1)t[r].animation.togglePause(e)},e.searchAnimations=function(e,t,r){var a,i=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),n=i.length;for(a=0;a<n;a+=1)r&&i[a].setAttribute("data-bm-type",r),l(i[a],e);if(t&&0===n){r||(r="svg");var s=document.getElementsByTagName("body")[0];s.innerText="";var o=createTag("div");o.style.width="100%",o.style.height="100%",o.setAttribute("data-bm-type",r),s.appendChild(o),l(o,e)}},e.resize=function(){var e;for(e=0;e<a;e+=1)t[e].animation.resize()},e.goToAndStop=function(e,r,i){var n;for(n=0;n<a;n+=1)t[n].animation.goToAndStop(e,r,i)},e.destroy=function(e){var r;for(r=a-1;r>=0;r-=1)t[r].animation.destroy(e)},e.freeze=function(){s=!0},e.unfreeze=function(){s=!1,m()},e.setVolume=function(e,r){var i;for(i=0;i<a;i+=1)t[i].animation.setVolume(e,r)},e.mute=function(e){var r;for(r=0;r<a;r+=1)t[r].animation.mute(e)},e.unmute=function(e){var r;for(r=0;r<a;r+=1)t[r].animation.unmute(e)},e.getRegisteredAnimations=function(){var e,r=t.length,a=[];for(e=0;e<r;e+=1)a.push(t[e].animation);return a},e}(),BezierFactory=function(){var e={getBezierEasing:function(e,r,a,i,n){var s=n||("bez_"+e+"_"+r+"_"+a+"_"+i).replace(/\./g,"p");if(t[s])return t[s];var o=new h([e,r,a,i]);return t[s]=o,o}},t={},r=.1,a="function"==typeof Float32Array;function i(e,t){return 1-3*t+3*e}function n(e,t){return 3*t-6*e}function s(e){return 3*e}function o(e,t,r){return((i(t,r)*e+n(t,r))*e+s(t))*e}function l(e,t,r){return 3*i(t,r)*e*e+2*n(t,r)*e+s(t)}function h(e){this._p=e,this._mSampleValues=a?new Float32Array(11):new Array(11),this._precomputed=!1,this.get=this.get.bind(this)}return h.prototype={get:function(e){var t=this._p[0],r=this._p[1],a=this._p[2],i=this._p[3];return this._precomputed||this._precompute(),t===r&&a===i?e:0===e?0:1===e?1:o(this._getTForX(e),r,i)},_precompute:function(){var e=this._p[0],t=this._p[1],r=this._p[2],a=this._p[3];this._precomputed=!0,e===t&&r===a||this._calcSampleValues()},_calcSampleValues:function(){for(var e=this._p[0],t=this._p[2],a=0;a<11;++a)this._mSampleValues[a]=o(a*r,e,t)},_getTForX:function(e){for(var t=this._p[0],a=this._p[2],i=this._mSampleValues,n=0,s=1;10!==s&&i[s]<=e;++s)n+=r;var h=n+(e-i[--s])/(i[s+1]-i[s])*r,p=l(h,t,a);return p>=.001?function(e,t,r,a){for(var i=0;i<4;++i){var n=l(t,r,a);if(0===n)return t;t-=(o(t,r,a)-e)/n}return t}(e,h,t,a):0===p?h:function(e,t,r,a,i){var n,s,l=0;do{(n=o(s=t+(r-t)/2,a,i)-e)>0?r=s:t=s}while(Math.abs(n)>1e-7&&++l<10);return s}(e,n,n+r,t,a)}},e}(),pooling={double:function(e){return e.concat(createSizedArray(e.length))}},poolFactory=function(e,t,r){var a=0,i=e,n=createSizedArray(i);return{newElement:function(){return a?n[a-=1]:t()},release:function(e){a===i&&(n=pooling.double(n),i*=2),r&&r(e),n[a]=e,a+=1}}},bezierLengthPool=poolFactory(8,(function(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}})),segmentsLengthPool=poolFactory(8,(function(){return{lengths:[],totalLength:0}}),(function(e){var t,r=e.lengths.length;for(t=0;t<r;t+=1)bezierLengthPool.release(e.lengths[t]);e.lengths.length=0}));function bezFunction(){var e=Math;function t(e,t,r,a,i,n){var s=e*a+t*i+r*n-i*a-n*e-r*t;return s>-.001&&s<.001}var r=function(e,t,r,a){var i,n,s,o,l,h,p=getDefaultCurveSegments(),c=0,d=[],u=[],m=bezierLengthPool.newElement();for(s=r.length,i=0;i<p;i+=1){for(l=i/(p-1),h=0,n=0;n<s;n+=1)o=bmPow(1-l,3)*e[n]+3*bmPow(1-l,2)*l*r[n]+3*(1-l)*bmPow(l,2)*a[n]+bmPow(l,3)*t[n],d[n]=o,null!==u[n]&&(h+=bmPow(d[n]-u[n],2)),u[n]=d[n];h&&(c+=h=bmSqrt(h)),m.percents[i]=l,m.lengths[i]=c}return m.addedLength=c,m};function a(e){this.segmentLength=0,this.points=new Array(e)}function i(e,t){this.partialLength=e,this.point=t}var n,s=(n={},function(e,r,s,o){var l=(e[0]+"_"+e[1]+"_"+r[0]+"_"+r[1]+"_"+s[0]+"_"+s[1]+"_"+o[0]+"_"+o[1]).replace(/\./g,"p");if(!n[l]){var h,p,c,d,u,m,f,y=getDefaultCurveSegments(),g=0,v=null;2===e.length&&(e[0]!==r[0]||e[1]!==r[1])&&t(e[0],e[1],r[0],r[1],e[0]+s[0],e[1]+s[1])&&t(e[0],e[1],r[0],r[1],r[0]+o[0],r[1]+o[1])&&(y=2);var b=new a(y);for(c=s.length,h=0;h<y;h+=1){for(f=createSizedArray(c),u=h/(y-1),m=0,p=0;p<c;p+=1)d=bmPow(1-u,3)*e[p]+3*bmPow(1-u,2)*u*(e[p]+s[p])+3*(1-u)*bmPow(u,2)*(r[p]+o[p])+bmPow(u,3)*r[p],f[p]=d,null!==v&&(m+=bmPow(f[p]-v[p],2));g+=m=bmSqrt(m),b.points[h]=new i(m,f),v=f}b.segmentLength=g,n[l]=b}return n[l]});function o(e,t){var r=t.percents,a=t.lengths,i=r.length,n=bmFloor((i-1)*e),s=e*t.addedLength,o=0;if(n===i-1||0===n||s===a[n])return r[n];for(var l=a[n]>s?-1:1,h=!0;h;)if(a[n]<=s&&a[n+1]>s?(o=(s-a[n])/(a[n+1]-a[n]),h=!1):n+=l,n<0||n>=i-1){if(n===i-1)return r[n];h=!1}return r[n]+(r[n+1]-r[n])*o}var l=createTypedArray("float32",8);return{getSegmentsLength:function(e){var t,a=segmentsLengthPool.newElement(),i=e.c,n=e.v,s=e.o,o=e.i,l=e._length,h=a.lengths,p=0;for(t=0;t<l-1;t+=1)h[t]=r(n[t],n[t+1],s[t],o[t+1]),p+=h[t].addedLength;return i&&l&&(h[t]=r(n[t],n[0],s[t],o[0]),p+=h[t].addedLength),a.totalLength=p,a},getNewSegment:function(t,r,a,i,n,s,h){n<0?n=0:n>1&&(n=1);var p,c=o(n,h),d=o(s=s>1?1:s,h),u=t.length,m=1-c,f=1-d,y=m*m*m,g=c*m*m*3,v=c*c*m*3,b=c*c*c,x=m*m*f,S=c*m*f+m*c*f+m*m*d,_=c*c*f+m*c*d+c*m*d,T=c*c*d,C=m*f*f,E=c*f*f+m*d*f+m*f*d,P=c*d*f+m*d*d+c*f*d,$=c*d*d,k=f*f*f,w=d*f*f+f*d*f+f*f*d,A=d*d*f+f*d*d+d*f*d,I=d*d*d;for(p=0;p<u;p+=1)l[4*p]=e.round(1e3*(y*t[p]+g*a[p]+v*i[p]+b*r[p]))/1e3,l[4*p+1]=e.round(1e3*(x*t[p]+S*a[p]+_*i[p]+T*r[p]))/1e3,l[4*p+2]=e.round(1e3*(C*t[p]+E*a[p]+P*i[p]+$*r[p]))/1e3,l[4*p+3]=e.round(1e3*(k*t[p]+w*a[p]+A*i[p]+I*r[p]))/1e3;return l},getPointInSegment:function(t,r,a,i,n,s){var l=o(n,s),h=1-l;return[e.round(1e3*(h*h*h*t[0]+(l*h*h+h*l*h+h*h*l)*a[0]+(l*l*h+h*l*l+l*h*l)*i[0]+l*l*l*r[0]))/1e3,e.round(1e3*(h*h*h*t[1]+(l*h*h+h*l*h+h*h*l)*a[1]+(l*l*h+h*l*l+l*h*l)*i[1]+l*l*l*r[1]))/1e3]},buildBezierData:s,pointOnLine2D:t,pointOnLine3D:function(r,a,i,n,s,o,l,h,p){if(0===i&&0===o&&0===p)return t(r,a,n,s,l,h);var c,d=e.sqrt(e.pow(n-r,2)+e.pow(s-a,2)+e.pow(o-i,2)),u=e.sqrt(e.pow(l-r,2)+e.pow(h-a,2)+e.pow(p-i,2)),m=e.sqrt(e.pow(l-n,2)+e.pow(h-s,2)+e.pow(p-o,2));return(c=d>u?d>m?d-u-m:m-u-d:m>u?m-u-d:u-d-m)>-1e-4&&c<1e-4}}}var bez=bezFunction(),PropertyFactory=function(){var e=initialDefaultFrame,t=Math.abs;function r(e,t){var r,i=this.offsetTime;"multidimensional"===this.propType&&(r=createTypedArray("float32",this.pv.length));for(var n,s,o,l,h,p,c,d,u,m=t.lastIndex,f=m,y=this.keyframes.length-1,g=!0;g;){if(n=this.keyframes[f],s=this.keyframes[f+1],f===y-1&&e>=s.t-i){n.h&&(n=s),m=0;break}if(s.t-i>e){m=f;break}f<y-1?f+=1:(m=0,g=!1)}o=this.keyframesMetadata[f]||{};var v,b,x,S,_,T,C,E,P,$,k=s.t-i,w=n.t-i;if(n.to){o.bezierData||(o.bezierData=bez.buildBezierData(n.s,s.s||n.e,n.to,n.ti));var A=o.bezierData;if(e>=k||e<w){var I=e>=k?A.points.length-1:0;for(h=A.points[I].point.length,l=0;l<h;l+=1)r[l]=A.points[I].point[l]}else{o.__fnct?u=o.__fnct:(u=BezierFactory.getBezierEasing(n.o.x,n.o.y,n.i.x,n.i.y,n.n).get,o.__fnct=u),p=u((e-w)/(k-w));var M,D=A.segmentLength*p,F=t.lastFrame<e&&t._lastKeyframeIndex===f?t._lastAddedLength:0;for(d=t.lastFrame<e&&t._lastKeyframeIndex===f?t._lastPoint:0,g=!0,c=A.points.length;g;){if(F+=A.points[d].partialLength,0===D||0===p||d===A.points.length-1){for(h=A.points[d].point.length,l=0;l<h;l+=1)r[l]=A.points[d].point[l];break}if(D>=F&&D<F+A.points[d+1].partialLength){for(M=(D-F)/A.points[d+1].partialLength,h=A.points[d].point.length,l=0;l<h;l+=1)r[l]=A.points[d].point[l]+(A.points[d+1].point[l]-A.points[d].point[l])*M;break}d<c-1?d+=1:g=!1}t._lastPoint=d,t._lastAddedLength=F-A.points[d].partialLength,t._lastKeyframeIndex=f}}else{var R,B,O,j,L;if(y=n.s.length,v=s.s||n.e,this.sh&&1!==n.h)if(e>=k)r[0]=v[0],r[1]=v[1],r[2]=v[2];else if(e<=w)r[0]=n.s[0],r[1]=n.s[1],r[2]=n.s[2];else{var V=a(n.s),N=a(v);b=r,x=function(e,t,r){var a,i,n,s,o,l=[],h=e[0],p=e[1],c=e[2],d=e[3],u=t[0],m=t[1],f=t[2],y=t[3];return(i=h*u+p*m+c*f+d*y)<0&&(i=-i,u=-u,m=-m,f=-f,y=-y),1-i>1e-6?(a=Math.acos(i),n=Math.sin(a),s=Math.sin((1-r)*a)/n,o=Math.sin(r*a)/n):(s=1-r,o=r),l[0]=s*h+o*u,l[1]=s*p+o*m,l[2]=s*c+o*f,l[3]=s*d+o*y,l}(V,N,(e-w)/(k-w)),S=x[0],_=x[1],T=x[2],C=x[3],E=Math.atan2(2*_*C-2*S*T,1-2*_*_-2*T*T),P=Math.asin(2*S*_+2*T*C),$=Math.atan2(2*S*C-2*_*T,1-2*S*S-2*T*T),b[0]=E/degToRads,b[1]=P/degToRads,b[2]=$/degToRads}else for(f=0;f<y;f+=1)1!==n.h&&(e>=k?p=1:e<w?p=0:(n.o.x.constructor===Array?(o.__fnct||(o.__fnct=[]),o.__fnct[f]?u=o.__fnct[f]:(R=void 0===n.o.x[f]?n.o.x[0]:n.o.x[f],B=void 0===n.o.y[f]?n.o.y[0]:n.o.y[f],O=void 0===n.i.x[f]?n.i.x[0]:n.i.x[f],j=void 0===n.i.y[f]?n.i.y[0]:n.i.y[f],u=BezierFactory.getBezierEasing(R,B,O,j).get,o.__fnct[f]=u)):o.__fnct?u=o.__fnct:(R=n.o.x,B=n.o.y,O=n.i.x,j=n.i.y,u=BezierFactory.getBezierEasing(R,B,O,j).get,n.keyframeMetadata=u),p=u((e-w)/(k-w)))),v=s.s||n.e,L=1===n.h?n.s[f]:n.s[f]+(v[f]-n.s[f])*p,"multidimensional"===this.propType?r[f]=L:r=L}return t.lastIndex=m,r}function a(e){var t=e[0]*degToRads,r=e[1]*degToRads,a=e[2]*degToRads,i=Math.cos(t/2),n=Math.cos(r/2),s=Math.cos(a/2),o=Math.sin(t/2),l=Math.sin(r/2),h=Math.sin(a/2);return[o*l*s+i*n*h,o*n*s+i*l*h,i*l*s-o*n*h,i*n*s-o*l*h]}function i(){var t=this.comp.renderedFrame-this.offsetTime,r=this.keyframes[0].t-this.offsetTime,a=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(t===this._caching.lastFrame||this._caching.lastFrame!==e&&(this._caching.lastFrame>=a&&t>=a||this._caching.lastFrame<r&&t<r))){this._caching.lastFrame>=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var i=this.interpolateValue(t,this._caching);this.pv=i}return this._caching.lastFrame=t,this.pv}function n(e){var r;if("unidimensional"===this.propType)r=e*this.mult,t(this.v-r)>1e-5&&(this.v=r,this._mdf=!0);else for(var a=0,i=this.v.length;a<i;)r=e[a]*this.mult,t(this.v[a]-r)>1e-5&&(this.v[a]=r,this._mdf=!0),a+=1}function s(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e;this.lock=!0,this._mdf=this._isFirstFrame;var 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 o(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function l(e,t,r,a){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=a,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=s,this.setVValue=n,this.addEffect=o}function h(e,t,r,a){var i;this.propType="multidimensional",this.mult=r||1,this.data=t,this._mdf=!1,this.elem=e,this.container=a,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var l=t.k.length;for(this.v=createTypedArray("float32",l),this.pv=createTypedArray("float32",l),this.vel=createTypedArray("float32",l),i=0;i<l;i+=1)this.v[i]=t.k[i]*this.mult,this.pv[i]=t.k[i];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=s,this.setVValue=n,this.addEffect=o}function p(t,a,l,h){this.propType="unidimensional",this.keyframes=a.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.frameId=-1,this._caching={lastFrame:e,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=a,this.mult=l||1,this.elem=t,this.container=h,this.comp=t.comp,this.v=e,this.pv=e,this._isFirstFrame=!0,this.getValue=s,this.setVValue=n,this.interpolateValue=r,this.effectsSequence=[i.bind(this)],this.addEffect=o}function c(t,a,l,h){var p;this.propType="multidimensional";var c,d,u,m,f=a.k.length;for(p=0;p<f-1;p+=1)a.k[p].to&&a.k[p].s&&a.k[p+1]&&a.k[p+1].s&&(c=a.k[p].s,d=a.k[p+1].s,u=a.k[p].to,m=a.k[p].ti,(2===c.length&&(c[0]!==d[0]||c[1]!==d[1])&&bez.pointOnLine2D(c[0],c[1],d[0],d[1],c[0]+u[0],c[1]+u[1])&&bez.pointOnLine2D(c[0],c[1],d[0],d[1],d[0]+m[0],d[1]+m[1])||3===c.length&&(c[0]!==d[0]||c[1]!==d[1]||c[2]!==d[2])&&bez.pointOnLine3D(c[0],c[1],c[2],d[0],d[1],d[2],c[0]+u[0],c[1]+u[1],c[2]+u[2])&&bez.pointOnLine3D(c[0],c[1],c[2],d[0],d[1],d[2],d[0]+m[0],d[1]+m[1],d[2]+m[2]))&&(a.k[p].to=null,a.k[p].ti=null),c[0]===d[0]&&c[1]===d[1]&&0===u[0]&&0===u[1]&&0===m[0]&&0===m[1]&&(2===c.length||c[2]===d[2]&&0===u[2]&&0===m[2])&&(a.k[p].to=null,a.k[p].ti=null));this.effectsSequence=[i.bind(this)],this.data=a,this.keyframes=a.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=l||1,this.elem=t,this.container=h,this.comp=t.comp,this.getValue=s,this.setVValue=n,this.interpolateValue=r,this.frameId=-1;var y=a.k[0].s.length;for(this.v=createTypedArray("float32",y),this.pv=createTypedArray("float32",y),p=0;p<y;p+=1)this.v[p]=e,this.pv[p]=e;this._caching={lastFrame:e,lastIndex:0,value:createTypedArray("float32",y)},this.addEffect=o}return{getProp:function(e,t,r,a,i){var n;if(t.k.length)if("number"==typeof t.k[0])n=new h(e,t,a,i);else switch(r){case 0:n=new p(e,t,a,i);break;case 1:n=new c(e,t,a,i)}else n=new l(e,t,a,i);return n.effectsSequence.length&&i.addDynamicProperty(n),n}}}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(e){-1===this.dynamicProperties.indexOf(e)&&(this.dynamicProperties.push(e),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var e;this._mdf=!1;var t=this.dynamicProperties.length;for(e=0;e<t;e+=1)this.dynamicProperties[e].getValue(),this.dynamicProperties[e]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(e){this.container=e,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=poolFactory(8,(function(){return createTypedArray("float32",2)}));function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(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,a,i){var n;switch(this._length=Math.max(this._length,a+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=[]}(!n[a]||n[a]&&!i)&&(n[a]=pointPool.newElement()),n[a][0]=e,n[a][1]=t},ShapePath.prototype.setTripleAt=function(e,t,r,a,i,n,s,o){this.setXYAt(e,t,"v",s,o),this.setXYAt(r,a,"o",s,o),this.setXYAt(i,n,"i",s,o)},ShapePath.prototype.reverse=function(){var e=new ShapePath;e.setPathData(this.c,this._length);var t=this.v,r=this.o,a=this.i,i=0;this.c&&(e.setTripleAt(t[0][0],t[0][1],a[0][0],a[0][1],r[0][0],r[0][1],0,!1),i=1);var n,s=this._length-1,o=this._length;for(n=i;n<o;n+=1)e.setTripleAt(t[s][0],t[s][1],a[s][0],a[s][1],r[s][0],r[s][1],n,!1),s-=1;return e};var shapePool=(factory=poolFactory(4,(function(){return new ShapePath}),(function(e){var t,r=e._length;for(t=0;t<r;t+=1)pointPool.release(e.v[t]),pointPool.release(e.i[t]),pointPool.release(e.o[t]),e.v[t]=null,e.i[t]=null,e.o[t]=null;e._length=0,e.c=!1})),factory.clone=function(e){var t,r=factory.newElement(),a=void 0===e._length?e.v.length:e._length;for(r.setLength(a),r.c=e.c,t=0;t<a;t+=1)r.setTripleAt(e.v[t][0],e.v[t][1],e.o[t][0],e.o[t][1],e.i[t][0],e.i[t][1],t);return r},factory),factory;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=(ob={newShapeCollection:function(){return _length?pool[_length-=1]:new ShapeCollection},release:function(e){var t,r=e._length;for(t=0;t<r;t+=1)shapePool.release(e.shapes[t]);e._length=0,_length===_maxLength&&(pool=pooling.double(pool),_maxLength*=2),pool[_length]=e,_length+=1}},_length=0,_maxLength=4,pool=createSizedArray(_maxLength),ob),ob,_length,_maxLength,pool,ShapePropertyFactory=function(){var e=-999999;function t(e,t,r){var a,i,n,s,o,l,h,p,c,d=r.lastIndex,u=this.keyframes;if(e<u[0].t-this.offsetTime)a=u[0].s[0],n=!0,d=0;else if(e>=u[u.length-1].t-this.offsetTime)a=u[u.length-1].s?u[u.length-1].s[0]:u[u.length-2].e[0],n=!0;else{for(var m,f,y,g=d,v=u.length-1,b=!0;b&&(m=u[g],!((f=u[g+1]).t-this.offsetTime>e));)g<v-1?g+=1:b=!1;if(y=this.keyframesMetadata[g]||{},d=g,!(n=1===m.h)){if(e>=f.t-this.offsetTime)p=1;else if(e<m.t-this.offsetTime)p=0;else{var x;y.__fnct?x=y.__fnct:(x=BezierFactory.getBezierEasing(m.o.x,m.o.y,m.i.x,m.i.y).get,y.__fnct=x),p=x((e-(m.t-this.offsetTime))/(f.t-this.offsetTime-(m.t-this.offsetTime)))}i=f.s?f.s[0]:m.e[0]}a=m.s[0]}for(l=t._length,h=a.i[0].length,r.lastIndex=d,s=0;s<l;s+=1)for(o=0;o<h;o+=1)c=n?a.i[s][o]:a.i[s][o]+(i.i[s][o]-a.i[s][o])*p,t.i[s][o]=c,c=n?a.o[s][o]:a.o[s][o]+(i.o[s][o]-a.o[s][o])*p,t.o[s][o]=c,c=n?a.v[s][o]:a.v[s][o]+(i.v[s][o]-a.v[s][o])*p,t.v[s][o]=c}function r(){var t=this.comp.renderedFrame-this.offsetTime,r=this.keyframes[0].t-this.offsetTime,a=this.keyframes[this.keyframes.length-1].t-this.offsetTime,i=this._caching.lastFrame;return i!==e&&(i<r&&t<r||i>a&&t>a)||(this._caching.lastIndex=i<t?this._caching.lastIndex:0,this.interpolateShape(t,this.pv,this._caching)),this._caching.lastFrame=t,this.pv}function a(){this.paths=this.localShapeCollection}function i(e){(function(e,t){if(e._length!==t._length||e.c!==t.c)return!1;var r,a=e._length;for(r=0;r<a;r+=1)if(e.v[r][0]!==t.v[r][0]||e.v[r][1]!==t.v[r][1]||e.o[r][0]!==t.o[r][0]||e.o[r][1]!==t.o[r][1]||e.i[r][0]!==t.i[r][0]||e.i[r][1]!==t.i[r][1])return!1;return!0})(this.v,e)||(this.v=shapePool.clone(e),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function n(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e,t;this.lock=!0,this._mdf=!1,e=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var r=this.effectsSequence.length;for(t=0;t<r;t+=1)e=this.effectsSequence[t](e);this.setVValue(e),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function s(e,t,r){this.propType="shape",this.comp=e.comp,this.container=e,this.elem=e,this.data=t,this.k=!1,this.kf=!1,this._mdf=!1;var i=3===r?t.pt.k:t.ks.k;this.v=shapePool.clone(i),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=a,this.effectsSequence=[]}function o(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function l(t,i,n){this.propType="shape",this.comp=t.comp,this.elem=t,this.container=t,this.offsetTime=t.data.st,this.keyframes=3===n?i.pt.k:i.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var s=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,s),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=a,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[r.bind(this)]}s.prototype.interpolateShape=t,s.prototype.getValue=n,s.prototype.setVValue=i,s.prototype.addEffect=o,l.prototype.getValue=n,l.prototype.interpolateShape=t,l.prototype.setVValue=i,l.prototype.addEffect=o;var h=function(){var e=roundCorner;function t(e,t){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=t.d,this.elem=e,this.comp=e.comp,this.frameId=-1,this.initDynamicPropertyContainer(e),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.s=PropertyFactory.getProp(e,t.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return t.prototype={reset:a,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var t=this.p.v[0],r=this.p.v[1],a=this.s.v[0]/2,i=this.s.v[1]/2,n=3!==this.d,s=this.v;s.v[0][0]=t,s.v[0][1]=r-i,s.v[1][0]=n?t+a:t-a,s.v[1][1]=r,s.v[2][0]=t,s.v[2][1]=r+i,s.v[3][0]=n?t-a:t+a,s.v[3][1]=r,s.i[0][0]=n?t-a*e:t+a*e,s.i[0][1]=r-i,s.i[1][0]=n?t+a:t-a,s.i[1][1]=r-i*e,s.i[2][0]=n?t+a*e:t-a*e,s.i[2][1]=r+i,s.i[3][0]=n?t-a:t+a,s.i[3][1]=r+i*e,s.o[0][0]=n?t+a*e:t-a*e,s.o[0][1]=r-i,s.o[1][0]=n?t+a:t-a,s.o[1][1]=r+i*e,s.o[2][0]=n?t-a*e:t+a*e,s.o[2][1]=r+i,s.o[3][0]=n?t-a:t+a,s.o[3][1]=r-i*e}},extendPrototype([DynamicPropertyContainer],t),t}(),p=function(){function e(e,t){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=e,this.comp=e.comp,this.data=t,this.frameId=-1,this.d=t.d,this.initDynamicPropertyContainer(e),1===t.sy?(this.ir=PropertyFactory.getProp(e,t.ir,0,0,this),this.is=PropertyFactory.getProp(e,t.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(e,t.pt,0,0,this),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.r=PropertyFactory.getProp(e,t.r,0,degToRads,this),this.or=PropertyFactory.getProp(e,t.or,0,0,this),this.os=PropertyFactory.getProp(e,t.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 e.prototype={reset:a,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var e,t,r,a,i=2*Math.floor(this.pt.v),n=2*Math.PI/i,s=!0,o=this.or.v,l=this.ir.v,h=this.os.v,p=this.is.v,c=2*Math.PI*o/(2*i),d=2*Math.PI*l/(2*i),u=-Math.PI/2;u+=this.r.v;var m=3===this.data.d?-1:1;for(this.v._length=0,e=0;e<i;e+=1){r=s?h:p,a=s?c:d;var f=(t=s?o:l)*Math.cos(u),y=t*Math.sin(u),g=0===f&&0===y?0:y/Math.sqrt(f*f+y*y),v=0===f&&0===y?0:-f/Math.sqrt(f*f+y*y);f+=+this.p.v[0],y+=+this.p.v[1],this.v.setTripleAt(f,y,f-g*a*r*m,y-v*a*r*m,f+g*a*r*m,y+v*a*r*m,e,!0),s=!s,u+=n*m}},convertPolygonToPath:function(){var e,t=Math.floor(this.pt.v),r=2*Math.PI/t,a=this.or.v,i=this.os.v,n=2*Math.PI*a/(4*t),s=.5*-Math.PI,o=3===this.data.d?-1:1;for(s+=this.r.v,this.v._length=0,e=0;e<t;e+=1){var l=a*Math.cos(s),h=a*Math.sin(s),p=0===l&&0===h?0:h/Math.sqrt(l*l+h*h),c=0===l&&0===h?0:-l/Math.sqrt(l*l+h*h);l+=+this.p.v[0],h+=+this.p.v[1],this.v.setTripleAt(l,h,l-p*n*i*o,h-c*n*i*o,l+p*n*i*o,h+c*n*i*o,e,!0),s+=r*o}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],e),e}(),c=function(){function e(e,t){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=e,this.comp=e.comp,this.frameId=-1,this.d=t.d,this.initDynamicPropertyContainer(e),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.s=PropertyFactory.getProp(e,t.s,1,0,this),this.r=PropertyFactory.getProp(e,t.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return e.prototype={convertRectToPath:function(){var e=this.p.v[0],t=this.p.v[1],r=this.s.v[0]/2,a=this.s.v[1]/2,i=bmMin(r,a,this.r.v),n=i*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(e+r,t-a+i,e+r,t-a+i,e+r,t-a+n,0,!0),this.v.setTripleAt(e+r,t+a-i,e+r,t+a-n,e+r,t+a-i,1,!0),0!==i?(this.v.setTripleAt(e+r-i,t+a,e+r-i,t+a,e+r-n,t+a,2,!0),this.v.setTripleAt(e-r+i,t+a,e-r+n,t+a,e-r+i,t+a,3,!0),this.v.setTripleAt(e-r,t+a-i,e-r,t+a-i,e-r,t+a-n,4,!0),this.v.setTripleAt(e-r,t-a+i,e-r,t-a+n,e-r,t-a+i,5,!0),this.v.setTripleAt(e-r+i,t-a,e-r+i,t-a,e-r+n,t-a,6,!0),this.v.setTripleAt(e+r-i,t-a,e+r-n,t-a,e+r-i,t-a,7,!0)):(this.v.setTripleAt(e-r,t+a,e-r+n,t+a,e-r,t+a,2),this.v.setTripleAt(e-r,t-a,e-r,t-a+n,e-r,t-a,3))):(this.v.setTripleAt(e+r,t-a+i,e+r,t-a+n,e+r,t-a+i,0,!0),0!==i?(this.v.setTripleAt(e+r-i,t-a,e+r-i,t-a,e+r-n,t-a,1,!0),this.v.setTripleAt(e-r+i,t-a,e-r+n,t-a,e-r+i,t-a,2,!0),this.v.setTripleAt(e-r,t-a+i,e-r,t-a+i,e-r,t-a+n,3,!0),this.v.setTripleAt(e-r,t+a-i,e-r,t+a-n,e-r,t+a-i,4,!0),this.v.setTripleAt(e-r+i,t+a,e-r+i,t+a,e-r+n,t+a,5,!0),this.v.setTripleAt(e+r-i,t+a,e+r-n,t+a,e+r-i,t+a,6,!0),this.v.setTripleAt(e+r,t+a-i,e+r,t+a-i,e+r,t+a-n,7,!0)):(this.v.setTripleAt(e-r,t-a,e-r+n,t-a,e-r,t-a,1,!0),this.v.setTripleAt(e-r,t+a,e-r,t+a-n,e-r,t+a,2,!0),this.v.setTripleAt(e+r,t+a,e+r-n,t+a,e+r,t+a,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:a},extendPrototype([DynamicPropertyContainer],e),e}(),d={getShapeProp:function(e,t,r){var a;return 3===r||4===r?a=(3===r?t.pt:t.ks).k.length?new l(e,t,r):new s(e,t,r):5===r?a=new c(e,t):6===r?a=new h(e,t):7===r&&(a=new p(e,t)),a.k&&e.addDynamicProperty(a),a},getConstructorFunction:function(){return s},getKeyframedConstructorFunction:function(){return l}};return d}(),Matrix=function(){var e=Math.cos,t=Math.sin,r=Math.tan,a=Math.round;function i(){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(r){if(0===r)return this;var a=e(r),i=t(r);return this._t(a,-i,0,0,i,a,0,0,0,0,1,0,0,0,0,1)}function s(r){if(0===r)return this;var a=e(r),i=t(r);return this._t(1,0,0,0,0,a,-i,0,0,i,a,0,0,0,0,1)}function o(r){if(0===r)return this;var a=e(r),i=t(r);return this._t(a,0,i,0,0,1,0,0,-i,0,a,0,0,0,0,1)}function l(r){if(0===r)return this;var a=e(r),i=t(r);return this._t(a,-i,0,0,i,a,0,0,0,0,1,0,0,0,0,1)}function h(e,t){return this._t(1,t,e,1,0,0)}function p(e,t){return this.shear(r(e),r(t))}function c(a,i){var n=e(i),s=t(i);return this._t(n,s,0,0,-s,n,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,r(a),1,0,0,0,0,1,0,0,0,0,1)._t(n,-s,0,0,s,n,0,0,0,0,1,0,0,0,0,1)}function d(e,t,r){return r||0===r||(r=1),1===e&&1===t&&1===r?this:this._t(e,0,0,0,0,t,0,0,0,0,r,0,0,0,0,1)}function u(e,t,r,a,i,n,s,o,l,h,p,c,d,u,m,f){return this.props[0]=e,this.props[1]=t,this.props[2]=r,this.props[3]=a,this.props[4]=i,this.props[5]=n,this.props[6]=s,this.props[7]=o,this.props[8]=l,this.props[9]=h,this.props[10]=p,this.props[11]=c,this.props[12]=d,this.props[13]=u,this.props[14]=m,this.props[15]=f,this}function m(e,t,r){return r=r||0,0!==e||0!==t||0!==r?this._t(1,0,0,0,0,1,0,0,0,0,1,0,e,t,r,1):this}function f(e,t,r,a,i,n,s,o,l,h,p,c,d,u,m,f){var y=this.props;if(1===e&&0===t&&0===r&&0===a&&0===i&&1===n&&0===s&&0===o&&0===l&&0===h&&1===p&&0===c)return y[12]=y[12]*e+y[15]*d,y[13]=y[13]*n+y[15]*u,y[14]=y[14]*p+y[15]*m,y[15]*=f,this._identityCalculated=!1,this;var g=y[0],v=y[1],b=y[2],x=y[3],S=y[4],_=y[5],T=y[6],C=y[7],E=y[8],P=y[9],$=y[10],k=y[11],w=y[12],A=y[13],I=y[14],M=y[15];return y[0]=g*e+v*i+b*l+x*d,y[1]=g*t+v*n+b*h+x*u,y[2]=g*r+v*s+b*p+x*m,y[3]=g*a+v*o+b*c+x*f,y[4]=S*e+_*i+T*l+C*d,y[5]=S*t+_*n+T*h+C*u,y[6]=S*r+_*s+T*p+C*m,y[7]=S*a+_*o+T*c+C*f,y[8]=E*e+P*i+$*l+k*d,y[9]=E*t+P*n+$*h+k*u,y[10]=E*r+P*s+$*p+k*m,y[11]=E*a+P*o+$*c+k*f,y[12]=w*e+A*i+I*l+M*d,y[13]=w*t+A*n+I*h+M*u,y[14]=w*r+A*s+I*p+M*m,y[15]=w*a+A*o+I*c+M*f,this._identityCalculated=!1,this}function y(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function g(e){for(var t=0;t<16;){if(e.props[t]!==this.props[t])return!1;t+=1}return!0}function v(e){var t;for(t=0;t<16;t+=1)e.props[t]=this.props[t];return e}function b(e){var t;for(t=0;t<16;t+=1)this.props[t]=e[t]}function x(e,t,r){return{x:e*this.props[0]+t*this.props[4]+r*this.props[8]+this.props[12],y:e*this.props[1]+t*this.props[5]+r*this.props[9]+this.props[13],z:e*this.props[2]+t*this.props[6]+r*this.props[10]+this.props[14]}}function S(e,t,r){return e*this.props[0]+t*this.props[4]+r*this.props[8]+this.props[12]}function _(e,t,r){return e*this.props[1]+t*this.props[5]+r*this.props[9]+this.props[13]}function T(e,t,r){return e*this.props[2]+t*this.props[6]+r*this.props[10]+this.props[14]}function C(){var e=this.props[0]*this.props[5]-this.props[1]*this.props[4],t=this.props[5]/e,r=-this.props[1]/e,a=-this.props[4]/e,i=this.props[0]/e,n=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/e,s=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/e,o=new Matrix;return o.props[0]=t,o.props[1]=r,o.props[4]=a,o.props[5]=i,o.props[12]=n,o.props[13]=s,o}function E(e){return this.getInverseMatrix().applyToPointArray(e[0],e[1],e[2]||0)}function P(e){var t,r=e.length,a=[];for(t=0;t<r;t+=1)a[t]=E(e[t]);return a}function $(e,t,r){var a=createTypedArray("float32",6);if(this.isIdentity())a[0]=e[0],a[1]=e[1],a[2]=t[0],a[3]=t[1],a[4]=r[0],a[5]=r[1];else{var i=this.props[0],n=this.props[1],s=this.props[4],o=this.props[5],l=this.props[12],h=this.props[13];a[0]=e[0]*i+e[1]*s+l,a[1]=e[0]*n+e[1]*o+h,a[2]=t[0]*i+t[1]*s+l,a[3]=t[0]*n+t[1]*o+h,a[4]=r[0]*i+r[1]*s+l,a[5]=r[0]*n+r[1]*o+h}return a}function k(e,t,r){return this.isIdentity()?[e,t,r]:[e*this.props[0]+t*this.props[4]+r*this.props[8]+this.props[12],e*this.props[1]+t*this.props[5]+r*this.props[9]+this.props[13],e*this.props[2]+t*this.props[6]+r*this.props[10]+this.props[14]]}function w(e,t){if(this.isIdentity())return e+","+t;var r=this.props;return Math.round(100*(e*r[0]+t*r[4]+r[12]))/100+","+Math.round(100*(e*r[1]+t*r[5]+r[13]))/100}function A(){for(var e=0,t=this.props,r="matrix3d(";e<16;)r+=a(1e4*t[e])/1e4,r+=15===e?")":",",e+=1;return r}function I(e){return e<1e-6&&e>0||e>-1e-6&&e<0?a(1e4*e)/1e4:e}function M(){var e=this.props;return"matrix("+I(e[0])+","+I(e[1])+","+I(e[4])+","+I(e[5])+","+I(e[12])+","+I(e[13])+")"}return function(){this.reset=i,this.rotate=n,this.rotateX=s,this.rotateY=o,this.rotateZ=l,this.skew=p,this.skewFromAxis=c,this.shear=h,this.scale=d,this.setTransform=u,this.translate=m,this.transform=f,this.applyToPoint=x,this.applyToX=S,this.applyToY=_,this.applyToZ=T,this.applyToPointArray=k,this.applyToTriplePoints=$,this.applyToPointStringified=w,this.toCSS=A,this.to2dCSS=M,this.clone=v,this.cloneFromProps=b,this.equals=g,this.inversePoints=P,this.inversePoint=E,this.getInverseMatrix=C,this._t=this.transform,this.isIdentity=y,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(e){return _typeof$3="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_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("string"==typeof e)switch(e){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(e)&&e>1&&setDefaultCurveSegments(e)}function inBrowser(){return"undefined"!=typeof navigator}function installPlugin(e,t){"expressions"===e&&setExpressionsPlugin(t)}function getFactory(e){switch(e){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(e){for(var t=queryString.split("&"),r=0;r<t.length;r+=1){var a=t[r].split("=");if(decodeURIComponent(a[0])==e)return decodeURIComponent(a[1])}return null}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.9.5";var queryString="",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{"object"!==_typeof$3(exports)&&(window.bodymovin=lottie)}catch(e){}var ShapeModifiers=function(){var e={},t={};return e.registerModifier=function(e,r){t[e]||(t[e]=r)},e.getModifier=function(e,r,a){return new t[e](r,a)},e}();function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}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),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,a,i){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 s,o,l=[],h=n.length;for(s=0;s<h;s+=1){var p,c;(o=n[s]).e*i<a||o.s*i>a+r||(p=o.s*i<=a?0:(o.s*i-a)/r,c=o.e*i>=a+r?1:(o.e*i-a)/r,l.push([p,c]))}return l.length||l.push([0,0]),l},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,a,i;if(this._mdf||e){var n=this.o.v%360/360;if(n<0&&(n+=1),(t=this.s.v>1?1+n:this.s.v<0?0+n:this.s.v+n)>(r=this.e.v>1?1+n:this.e.v<0?0+n:this.e.v+n)){var s=t;t=r,r=s}t=1e-4*Math.round(1e4*t),r=1e-4*Math.round(1e4*r),this.sValue=t,this.eValue=r}else t=this.sValue,r=this.eValue;var o,l,h,p,c,d=this.shapes.length,u=0;if(r===t)for(i=0;i<d;i+=1)this.shapes[i].localShapeCollection.releaseShapes(),this.shapes[i].shape._mdf=!0,this.shapes[i].shape.paths=this.shapes[i].localShapeCollection,this._mdf&&(this.shapes[i].pathsData.length=0);else if(1===r&&0===t||0===r&&1===t){if(this._mdf)for(i=0;i<d;i+=1)this.shapes[i].pathsData.length=0,this.shapes[i].shape._mdf=!0}else{var m,f,y=[];for(i=0;i<d;i+=1)if((m=this.shapes[i]).shape._mdf||this._mdf||e||2===this.m){if(l=(a=m.shape.paths)._length,c=0,!m.shape._mdf&&m.pathsData.length)c=m.totalShapeLength;else{for(h=this.releasePathsData(m.pathsData),o=0;o<l;o+=1)p=bez.getSegmentsLength(a.shapes[o]),h.push(p),c+=p.totalLength;m.totalShapeLength=c,m.pathsData=h}u+=c,m.shape._mdf=!0}else m.shape.paths=m.localShapeCollection;var g,v=t,b=r,x=0;for(i=d-1;i>=0;i-=1)if((m=this.shapes[i]).shape._mdf){for((f=m.localShapeCollection).releaseShapes(),2===this.m&&d>1?(g=this.calculateShapeEdges(t,r,m.totalShapeLength,x,u),x+=m.totalShapeLength):g=[[v,b]],l=g.length,o=0;o<l;o+=1){v=g[o][0],b=g[o][1],y.length=0,b<=1?y.push({s:m.totalShapeLength*v,e:m.totalShapeLength*b}):v>=1?y.push({s:m.totalShapeLength*(v-1),e:m.totalShapeLength*(b-1)}):(y.push({s:m.totalShapeLength*v,e:m.totalShapeLength}),y.push({s:0,e:m.totalShapeLength*(b-1)}));var S=this.addShapes(m,y[0]);if(y[0].s!==y[0].e){if(y.length>1)if(m.shape.paths.shapes[m.shape.paths._length-1].c){var _=S.pop();this.addPaths(S,f),S=this.addShapes(m,y[1],_)}else this.addPaths(S,f),S=this.addShapes(m,y[1]);this.addPaths(S,f)}}m.shape.paths=f}}},TrimModifier.prototype.addPaths=function(e,t){var r,a=e.length;for(r=0;r<a;r+=1)t.addShape(e[r])},TrimModifier.prototype.addSegment=function(e,t,r,a,i,n,s){i.setXYAt(t[0],t[1],"o",n),i.setXYAt(r[0],r[1],"i",n+1),s&&i.setXYAt(e[0],e[1],"v",n),i.setXYAt(a[0],a[1],"v",n+1)},TrimModifier.prototype.addSegmentFromArray=function(e,t,r,a){t.setXYAt(e[1],e[5],"o",r),t.setXYAt(e[2],e[6],"i",r+1),a&&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 a,i,n,s,o,l,h,p,c=e.pathsData,d=e.shape.paths.shapes,u=e.shape.paths._length,m=0,f=[],y=!0;for(r?(o=r._length,p=r._length):(r=shapePool.newElement(),o=0,p=0),f.push(r),a=0;a<u;a+=1){for(l=c[a].lengths,r.c=d[a].c,n=d[a].c?l.length:l.length+1,i=1;i<n;i+=1)if(m+(s=l[i-1]).addedLength<t.s)m+=s.addedLength,r.c=!1;else{if(m>t.e){r.c=!1;break}t.s<=m&&t.e>=m+s.addedLength?(this.addSegment(d[a].v[i-1],d[a].o[i-1],d[a].i[i],d[a].v[i],r,o,y),y=!1):(h=bez.getNewSegment(d[a].v[i-1],d[a].v[i],d[a].o[i-1],d[a].i[i],(t.s-m)/s.addedLength,(t.e-m)/s.addedLength,l[i-1]),this.addSegmentFromArray(h,r,o,y),y=!1,r.c=!1),m+=s.addedLength,o+=1}if(d[a].c&&l.length){if(s=l[i-1],m<=t.e){var g=l[i-1].addedLength;t.s<=m&&t.e>=m+g?(this.addSegment(d[a].v[i-1],d[a].o[i-1],d[a].i[0],d[a].v[0],r,o,y),y=!1):(h=bez.getNewSegment(d[a].v[i-1],d[a].v[0],d[a].o[i-1],d[a].i[0],(t.s-m)/g,(t.e-m)/g,l[i-1]),this.addSegmentFromArray(h,r,o,y),y=!1,r.c=!1)}else r.c=!1;m+=s.addedLength,o+=1}if(r._length&&(r.setXYAt(r.v[p][0],r.v[p][1],"i",p),r.setXYAt(r.v[r._length-1][0],r.v[r._length-1][1],"o",r._length-1)),m>t.e)break;a<u-1&&(r=shapePool.newElement(),y=!0,f.push(r),o=0)}return f},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,a=[0,0],i=e._length,n=0;for(n=0;n<i;n+=1)a[0]+=e.v[n][0],a[1]+=e.v[n][1];a[0]/=i,a[1]/=i;var s,o,l,h,p,c,d=shapePool.newElement();for(d.c=e.c,n=0;n<i;n+=1)s=e.v[n][0]+(a[0]-e.v[n][0])*r,o=e.v[n][1]+(a[1]-e.v[n][1])*r,l=e.o[n][0]+(a[0]-e.o[n][0])*-r,h=e.o[n][1]+(a[1]-e.o[n][1])*-r,p=e.i[n][0]+(a[0]-e.i[n][0])*-r,c=e.i[n][1]+(a[1]-e.i[n][1])*-r,d.setTripleAt(s,o,l,h,p,c,n);return d},PuckerAndBloatModifier.prototype.processShapes=function(e){var t,r,a,i,n,s,o=this.shapes.length,l=this.amount.v;if(0!==l)for(r=0;r<o;r+=1){if(s=(n=this.shapes[r]).localShapeCollection,n.shape._mdf||this._mdf||e)for(s.releaseShapes(),n.shape._mdf=!0,t=n.shape.paths.shapes,i=n.shape.paths._length,a=0;a<i;a+=1)s.addShape(this.processPath(t[a],l));n.shape.paths=n.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var e=[0,0];function t(e,t,r){if(this.elem=e,this.frameId=-1,this.propType="transform",this.data=t,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(r||e),t.p&&t.p.s?(this.px=PropertyFactory.getProp(e,t.p.x,0,0,this),this.py=PropertyFactory.getProp(e,t.p.y,0,0,this),t.p.z&&(this.pz=PropertyFactory.getProp(e,t.p.z,0,0,this))):this.p=PropertyFactory.getProp(e,t.p||{k:[0,0,0]},1,0,this),t.rx){if(this.rx=PropertyFactory.getProp(e,t.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(e,t.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(e,t.rz,0,degToRads,this),t.or.k[0].ti){var a,i=t.or.k.length;for(a=0;a<i;a+=1)t.or.k[a].to=null,t.or.k[a].ti=null}this.or=PropertyFactory.getProp(e,t.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(e,t.r||{k:0},0,degToRads,this);t.sk&&(this.sk=PropertyFactory.getProp(e,t.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(e,t.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(e,t.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(e,t.s||{k:[100,100,100]},1,.01,this),t.o?this.o=PropertyFactory.getProp(e,t.o,0,.01,e):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return t.prototype={applyToMatrix:function(e){var t=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||t,this.a&&e.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&e.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&e.skewFromAxis(-this.sk.v,this.sa.v),this.r?e.rotate(-this.r.v):e.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?e.translate(this.px.v,this.py.v,-this.pz.v):e.translate(this.px.v,this.py.v,0):e.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(t){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||t){var r;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 a,i;if(r=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(a=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/r,0),i=this.p.getValueAtTime(this.p.keyframes[0].t/r,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(a=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/r,0),i=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/r,0)):(a=this.p.pv,i=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/r,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){a=[],i=[];var n=this.px,s=this.py;n._caching.lastFrame+n.offsetTime<=n.keyframes[0].t?(a[0]=n.getValueAtTime((n.keyframes[0].t+.01)/r,0),a[1]=s.getValueAtTime((s.keyframes[0].t+.01)/r,0),i[0]=n.getValueAtTime(n.keyframes[0].t/r,0),i[1]=s.getValueAtTime(s.keyframes[0].t/r,0)):n._caching.lastFrame+n.offsetTime>=n.keyframes[n.keyframes.length-1].t?(a[0]=n.getValueAtTime(n.keyframes[n.keyframes.length-1].t/r,0),a[1]=s.getValueAtTime(s.keyframes[s.keyframes.length-1].t/r,0),i[0]=n.getValueAtTime((n.keyframes[n.keyframes.length-1].t-.01)/r,0),i[1]=s.getValueAtTime((s.keyframes[s.keyframes.length-1].t-.01)/r,0)):(a=[n.pv,s.pv],i[0]=n.getValueAtTime((n._caching.lastFrame+n.offsetTime-.01)/r,n.offsetTime),i[1]=s.getValueAtTime((s._caching.lastFrame+s.offsetTime-.01)/r,s.offsetTime))}else a=i=e;this.v.rotate(-Math.atan2(a[1]-i[1],a[0]-i[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}},precalculateMatrix:function(){if(!this.a.k&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}},autoOrient:function(){}},extendPrototype([DynamicPropertyContainer],t),t.prototype.addDynamicProperty=function(e){this._addDynamicProperty(e),this.elem.addDynamicProperty(e),this._isDirty=!0},t.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(e,r,a){return new t(e,r,a)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function getFontProperties(e){for(var t=e.fStyle?e.fStyle.split(" "):[],r="normal",a="normal",i=t.length,n=0;n<i;n+=1)switch(t[n].toLowerCase()){case"italic":a="italic";break;case"bold":r="700";break;case"black":r="900";break;case"medium":r="500";break;case"regular":case"normal":r="400";break;case"light":case"thin":r="200"}return{style:a,weight:e.fWeight||r}}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,a,i,n){var s=n?-1:1,o=a.s.v[0]+(1-a.s.v[0])*(1-i),l=a.s.v[1]+(1-a.s.v[1])*(1-i);e.translate(a.p.v[0]*s*i,a.p.v[1]*s*i,a.p.v[2]),t.translate(-a.a.v[0],-a.a.v[1],a.a.v[2]),t.rotate(-a.r.v*s*i),t.translate(a.a.v[0],a.a.v[1],a.a.v[2]),r.translate(-a.a.v[0],-a.a.v[1],a.a.v[2]),r.scale(n?1/o:o,n?1/l:l),r.translate(a.a.v[0],a.a.v[1],a.a.v[2])},RepeaterModifier.prototype.init=function(e,t,r,a){for(this.elem=e,this.arr=t,this.pos=r,this.elemsData=a,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,"gr"===e[t].ty&&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,a=e.length;for(r=0;r<a;r+=1)e[r]._render=t,"gr"===e[r].ty&&this.changeGroupRender(e[r].it,t)},RepeaterModifier.prototype.processShapes=function(e){var t,r,a,i,n,s=!1;if(this._mdf||e){var o,l=Math.ceil(this.c.v);if(this._groups.length<l){for(;this._groups.length<l;){var h={it:this.cloneElements(this._elements),ty:"gr"};h.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,h),this._groups.splice(0,0,h),this._currentCopies+=1}this.elem.reloadShapes(),s=!0}for(n=0,a=0;a<=this._groups.length-1;a+=1){if(o=n<l,this._groups[a]._render=o,this.changeGroupRender(this._groups[a].it,o),!o){var p=this.elemsData[a].it,c=p[p.length-1];0!==c.transform.op.v?(c.transform.op._mdf=!0,c.transform.op.v=0):c.transform.op._mdf=!1}n+=1}this._currentCopies=l;var d=this.o.v,u=d%1,m=d>0?Math.floor(d):Math.ceil(d),f=this.pMatrix.props,y=this.rMatrix.props,g=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var v,b,x=0;if(d>0){for(;x<m;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),x+=1;u&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,u,!1),x+=u)}else if(d<0){for(;x>m;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),x-=1;u&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-u,!0),x-=u)}for(a=1===this.data.m?0:this._currentCopies-1,i=1===this.data.m?1:-1,n=this._currentCopies;n;){if(b=(r=(t=this.elemsData[a].it)[t.length-1].transform.mProps.v.props).length,t[t.length-1].transform.mProps._mdf=!0,t[t.length-1].transform.op._mdf=!0,t[t.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(a/(this._currentCopies-1)),0!==x){for((0!==a&&1===i||a!==this._currentCopies-1&&-1===i)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(y[0],y[1],y[2],y[3],y[4],y[5],y[6],y[7],y[8],y[9],y[10],y[11],y[12],y[13],y[14],y[15]),this.matrix.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]),this.matrix.transform(f[0],f[1],f[2],f[3],f[4],f[5],f[6],f[7],f[8],f[9],f[10],f[11],f[12],f[13],f[14],f[15]),v=0;v<b;v+=1)r[v]=this.matrix.props[v];this.matrix.reset()}else for(this.matrix.reset(),v=0;v<b;v+=1)r[v]=this.matrix.props[v];x+=1,n-=1,a+=i}}else for(n=this._currentCopies,a=0,i=1;n;)r=(t=this.elemsData[a].it)[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,a+=i;return s},RepeaterModifier.prototype.addShape=function(){},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,a=shapePool.newElement();a.c=e.c;var i,n,s,o,l,h,p,c,d,u,m,f,y=e._length,g=0;for(r=0;r<y;r+=1)i=e.v[r],s=e.o[r],n=e.i[r],i[0]===s[0]&&i[1]===s[1]&&i[0]===n[0]&&i[1]===n[1]?0!==r&&r!==y-1||e.c?(o=0===r?e.v[y-1]:e.v[r-1],h=(l=Math.sqrt(Math.pow(i[0]-o[0],2)+Math.pow(i[1]-o[1],2)))?Math.min(l/2,t)/l:0,p=m=i[0]+(o[0]-i[0])*h,c=f=i[1]-(i[1]-o[1])*h,d=p-(p-i[0])*roundCorner,u=c-(c-i[1])*roundCorner,a.setTripleAt(p,c,d,u,m,f,g),g+=1,o=r===y-1?e.v[0]:e.v[r+1],h=(l=Math.sqrt(Math.pow(i[0]-o[0],2)+Math.pow(i[1]-o[1],2)))?Math.min(l/2,t)/l:0,p=d=i[0]+(o[0]-i[0])*h,c=u=i[1]+(o[1]-i[1])*h,m=p-(p-i[0])*roundCorner,f=c-(c-i[1])*roundCorner,a.setTripleAt(p,c,d,u,m,f,g),g+=1):(a.setTripleAt(i[0],i[1],s[0],s[1],n[0],n[1],g),g+=1):(a.setTripleAt(e.v[r][0],e.v[r][1],e.o[r][0],e.o[r][1],e.i[r][0],e.i[r][1],g),g+=1);return a},RoundCornersModifier.prototype.processShapes=function(e){var t,r,a,i,n,s,o=this.shapes.length,l=this.rd.v;if(0!==l)for(r=0;r<o;r+=1){if(s=(n=this.shapes[r]).localShapeCollection,n.shape._mdf||this._mdf||e)for(s.releaseShapes(),n.shape._mdf=!0,t=n.shape.paths.shapes,i=n.shape.paths._length,a=0;a<i;a+=1)s.addShape(this.processPath(t[a],l));n.shape.paths=n.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var FontManager=function(){var e={w:0,size:0,shapes:[],data:{shapes:[]}},t=[];t=t.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var r=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"],a=[65039,8205];function i(e,t){var r=createTag("span");r.setAttribute("aria-hidden",!0),r.style.fontFamily=t;var a=createTag("span");a.innerText="giItT1WQy@!-/#",r.style.position="absolute",r.style.left="-10000px",r.style.top="-10000px",r.style.fontSize="300px",r.style.fontVariant="normal",r.style.fontStyle="normal",r.style.fontWeight="normal",r.style.letterSpacing="0",r.appendChild(a),document.body.appendChild(r);var i=a.offsetWidth;return a.style.fontFamily=function(e){var t,r=e.split(","),a=r.length,i=[];for(t=0;t<a;t+=1)"sans-serif"!==r[t]&&"monospace"!==r[t]&&i.push(r[t]);return i.join(",")}(e)+", "+t,{node:a,w:i,parent:r}}function n(e,t){var r,a=document.body&&t?"svg":"canvas",i=getFontProperties(e);if("svg"===a){var n=createNS("text");n.style.fontSize="100px",n.setAttribute("font-family",e.fFamily),n.setAttribute("font-style",i.style),n.setAttribute("font-weight",i.weight),n.textContent="1",e.fClass?(n.style.fontFamily="inherit",n.setAttribute("class",e.fClass)):n.style.fontFamily=e.fFamily,t.appendChild(n),r=n}else{var s=new OffscreenCanvas(500,500).getContext("2d");s.font=i.style+" "+i.weight+" 100px "+e.fFamily,r=s}return{measureText:function(e){return"svg"===a?(r.textContent=e,r.getComputedTextLength()):r.measureText(e).width}}}var s=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)};s.isModifier=function(e,t){var a=e.toString(16)+t.toString(16);return-1!==r.indexOf(a)},s.isZeroWidthJoiner=function(e,t){return t?e===a[0]&&t===a[1]:e===a[1]},s.isCombinedCharacter=function(e){return-1!==t.indexOf(e)};var o={addChars:function(e){if(e){var t;this.chars||(this.chars=[]);var r,a,i=e.length,n=this.chars.length;for(t=0;t<i;t+=1){for(r=0,a=!1;r<n;)this.chars[r].style===e[t].style&&this.chars[r].fFamily===e[t].fFamily&&this.chars[r].ch===e[t].ch&&(a=!0),r+=1;a||(this.chars.push(e[t]),n+=1)}}},addFonts:function(e,t){if(e){if(this.chars)return this.isLoaded=!0,void(this.fonts=e.list);if(!document.body)return this.isLoaded=!0,e.list.forEach((function(e){e.helper=n(e),e.cache={}})),void(this.fonts=e.list);var r,a=e.list,s=a.length,o=s;for(r=0;r<s;r+=1){var l,h,p=!0;if(a[r].loaded=!1,a[r].monoCase=i(a[r].fFamily,"monospace"),a[r].sansCase=i(a[r].fFamily,"sans-serif"),a[r].fPath){if("p"===a[r].fOrigin||3===a[r].origin){if((l=document.querySelectorAll('style[f-forigin="p"][f-family="'+a[r].fFamily+'"], style[f-origin="3"][f-family="'+a[r].fFamily+'"]')).length>0&&(p=!1),p){var c=createTag("style");c.setAttribute("f-forigin",a[r].fOrigin),c.setAttribute("f-origin",a[r].origin),c.setAttribute("f-family",a[r].fFamily),c.type="text/css",c.innerText="@font-face {font-family: "+a[r].fFamily+"; font-style: normal; src: url('"+a[r].fPath+"');}",t.appendChild(c)}}else if("g"===a[r].fOrigin||1===a[r].origin){for(l=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),h=0;h<l.length;h+=1)-1!==l[h].href.indexOf(a[r].fPath)&&(p=!1);if(p){var d=createTag("link");d.setAttribute("f-forigin",a[r].fOrigin),d.setAttribute("f-origin",a[r].origin),d.type="text/css",d.rel="stylesheet",d.href=a[r].fPath,document.body.appendChild(d)}}else if("t"===a[r].fOrigin||2===a[r].origin){for(l=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),h=0;h<l.length;h+=1)a[r].fPath===l[h].src&&(p=!1);if(p){var u=createTag("link");u.setAttribute("f-forigin",a[r].fOrigin),u.setAttribute("f-origin",a[r].origin),u.setAttribute("rel","stylesheet"),u.setAttribute("href",a[r].fPath),t.appendChild(u)}}}else a[r].loaded=!0,o-=1;a[r].helper=n(a[r],t),a[r].cache={},this.fonts.push(a[r])}0===o?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(t,r,a){for(var i=0,n=this.chars.length;i<n;){if(this.chars[i].ch===t&&this.chars[i].style===r&&this.chars[i].fFamily===a)return this.chars[i];i+=1}return("string"==typeof t&&13!==t.charCodeAt(0)||!t)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",t,r,a)),e},getFontByName:function(e){for(var t=0,r=this.fonts.length;t<r;){if(this.fonts[t].fName===e)return this.fonts[t];t+=1}return this.fonts[0]},measureText:function(e,t,r){var a=this.getFontByName(t),i=e.charCodeAt(0);if(!a.cache[i+1]){var n=a.helper;if(" "===e){var s=n.measureText("|"+e+"|"),o=n.measureText("||");a.cache[i+1]=(s-o)/100}else a.cache[i+1]=n.measureText(e)/100}return a.cache[i+1]*r},checkLoadedFonts:function(){var e,t,r,a=this.fonts.length,i=a;for(e=0;e<a;e+=1)this.fonts[e].loaded?i-=1:"n"===this.fonts[e].fOrigin||0===this.fonts[e].origin?this.fonts[e].loaded=!0:(t=this.fonts[e].monoCase.node,r=this.fonts[e].monoCase.w,t.offsetWidth!==r?(i-=1,this.fonts[e].loaded=!0):(t=this.fonts[e].sansCase.node,r=this.fonts[e].sansCase.w,t.offsetWidth!==r&&(i-=1,this.fonts[e].loaded=!0)),this.fonts[e].loaded&&(this.fonts[e].sansCase.parent.parentNode.removeChild(this.fonts[e].sansCase.parent),this.fonts[e].monoCase.parent.parentNode.removeChild(this.fonts[e].monoCase.parent)));0!==i&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}};return s.prototype=o,s}();function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(e){-1===this.renderableComponents.indexOf(e)&&this.renderableComponents.push(e)},removeRenderableComponent:function(e){-1!==this.renderableComponents.indexOf(e)&&this.renderableComponents.splice(this.renderableComponents.indexOf(e),1)},prepareRenderableFrame:function(e){this.checkLayerLimits(e)},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(e){this.data.ip-this.data.st<=e&&this.data.op-this.data.st>e?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var e,t=this.renderableComponents.length;for(e=0;e<t;e+=1)this.renderableComponents[e].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var MaskManagerInterface=function(){function e(e,t){this._mask=e,this._data=t}return 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(),100*this._mask.op.v}}),function(t){var r,a=createSizedArray(t.viewData.length),i=t.viewData.length;for(r=0;r<i;r+=1)a[r]=new e(t.viewData[r],t.masksProperties[r]);return function(e){for(r=0;r<i;){if(t.masksProperties[r].nm===e)return a[r];r+=1}return null}}}(),ExpressionPropertyInterface=function(){var e={pv:0,v:0,mult:1},t={pv:[0,0,0],v:[0,0,0],mult:1};function r(e,t,r){Object.defineProperty(e,"velocity",{get:function(){return t.getVelocityAtTime(t.comp.currentFrame)}}),e.numKeys=t.keyframes?t.keyframes.length:0,e.key=function(a){if(!e.numKeys)return 0;var i="";i="s"in t.keyframes[a-1]?t.keyframes[a-1].s:"e"in t.keyframes[a-2]?t.keyframes[a-2].e:t.keyframes[a-2].s;var n="unidimensional"===r?new Number(i):Object.assign({},i);return n.time=t.keyframes[a-1].t/t.elem.comp.globalData.frameRate,n.value="unidimensional"===r?i[0]:i,n},e.valueAtTime=t.getValueAtTime,e.speedAtTime=t.getSpeedAtTime,e.velocityAtTime=t.getVelocityAtTime,e.propertyGroup=t.propertyGroup}function a(){return e}return function(i){return i?"unidimensional"===i.propType?function(t){t&&"pv"in t||(t=e);var a=1/t.mult,i=t.pv*a,n=new Number(i);return n.value=i,r(n,t,"unidimensional"),function(){return t.k&&t.getValue(),i=t.v*a,n.value!==i&&((n=new Number(i)).value=i,r(n,t,"unidimensional")),n}}(i):function(e){e&&"pv"in e||(e=t);var a=1/e.mult,i=e.data&&e.data.l||e.pv.length,n=createTypedArray("float32",i),s=createTypedArray("float32",i);return n.value=s,r(n,e,"multidimensional"),function(){e.k&&e.getValue();for(var t=0;t<i;t+=1)s[t]=e.v[t]*a,n[t]=s[t];return n}}(i):a}}(),TransformExpressionInterface=function(e){function t(e){switch(e){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}}var r,a,i,n;return 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)}),e.p?n=ExpressionPropertyInterface(e.p):(r=ExpressionPropertyInterface(e.px),a=ExpressionPropertyInterface(e.py),e.pz&&(i=ExpressionPropertyInterface(e.pz))),Object.defineProperty(t,"position",{get:function(){return e.p?n():[r(),a(),i?i():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(e){var t=new Matrix;return void 0!==e?this._elem.finalTransform.mProp.getValueAtTime(e).clone(t):this._elem.finalTransform.mProp.applyToMatrix(t),t}function t(e,t){var r=this.getMatrix(t);return r.props[12]=0,r.props[13]=0,r.props[14]=0,this.applyPoint(r,e)}function r(e,t){var r=this.getMatrix(t);return this.applyPoint(r,e)}function a(e,t){var r=this.getMatrix(t);return r.props[12]=0,r.props[13]=0,r.props[14]=0,this.invertPoint(r,e)}function i(e,t){var r=this.getMatrix(t);return this.invertPoint(r,e)}function n(e,t){if(this._elem.hierarchy&&this._elem.hierarchy.length){var r,a=this._elem.hierarchy.length;for(r=0;r<a;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(e)}return e.applyToPointArray(t[0],t[1],t[2]||0)}function s(e,t){if(this._elem.hierarchy&&this._elem.hierarchy.length){var r,a=this._elem.hierarchy.length;for(r=0;r<a;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(e)}return e.inversePoint(t)}function o(e){var t=new Matrix;if(t.reset(),this._elem.finalTransform.mProp.applyToMatrix(t),this._elem.hierarchy&&this._elem.hierarchy.length){var r,a=this._elem.hierarchy.length;for(r=0;r<a;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(t);return t.inversePoint(e)}return t.inversePoint(e)}function l(){return[1,1,1,1]}return function(h){var p;function c(e){switch(e){case"ADBE Root Vectors Group":case"Contents":case 2:return c.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return p;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return c.effect;case"ADBE Text Properties":return c.textInterface;default:return null}}c.getMatrix=e,c.invertPoint=s,c.applyPoint=n,c.toWorld=r,c.toWorldVec=t,c.fromWorld=i,c.fromWorldVec=a,c.toComp=r,c.fromComp=o,c.sampleImage=l,c.sourceRectAtTime=h.sourceRectAtTime.bind(h),c._elem=h;var d=getDescriptor(p=TransformExpressionInterface(h.finalTransform.mProp),"anchorPoint");return Object.defineProperties(c,{hasParent:{get:function(){return h.hierarchy.length}},parent:{get:function(){return h.hierarchy[0].layerInterface}},rotation:getDescriptor(p,"rotation"),scale:getDescriptor(p,"scale"),position:getDescriptor(p,"position"),opacity:getDescriptor(p,"opacity"),anchorPoint:d,anchor_point:d,transform:{get:function(){return p}},active:{get:function(){return h.isInRange}}}),c.startTime=h.data.st,c.index=h.data.ind,c.source=h.data.refId,c.height=0===h.data.ty?h.data.h:100,c.width=0===h.data.ty?h.data.w:100,c.inPoint=h.data.ip/h.comp.globalData.frameRate,c.outPoint=h.data.op/h.comp.globalData.frameRate,c._name=h.data.nm,c.registerMaskInterface=function(e){c.mask=new MaskManagerInterface(e,h)},c.registerEffectsInterface=function(e){c.effect=e},c}}(),propertyGroupFactory=function(e,t){return function(r){return(r=void 0===r?1:r)<=0?e:t(r-1)}},PropertyInterface=function(e,t){var r={_name:e};return function(e){return(e=void 0===e?1:e)<=0?r:t(e-1)}},EffectsExpressionInterface=function(){function e(r,a,i,n){function s(e){for(var t=r.ef,a=0,i=t.length;a<i;){if(e===t[a].nm||e===t[a].mn||e===t[a].ix)return 5===t[a].ty?h[a]:h[a]();a+=1}throw new Error}var o,l=propertyGroupFactory(s,i),h=[],p=r.ef.length;for(o=0;o<p;o+=1)5===r.ef[o].ty?h.push(e(r.ef[o],a.effectElements[o],a.effectElements[o].propertyGroup,n)):h.push(t(a.effectElements[o],r.ef[o].ty,n,l));return"ADBE Color Control"===r.mn&&Object.defineProperty(s,"color",{get:function(){return h[0]()}}),Object.defineProperties(s,{numProperties:{get:function(){return r.np}},_name:{value:r.nm},propertyGroup:{value:l}}),s.enabled=0!==r.en,s.active=s.enabled,s}function t(e,t,r,a){var i=ExpressionPropertyInterface(e.p);return e.p.setGroupProperty&&e.p.setGroupProperty(PropertyInterface("",a)),function(){return 10===t?r.comp.compInterface(e.p.v):i()}}return{createEffectsInterface:function(t,r){if(t.effectsManager){var a,i=[],n=t.data.ef,s=t.effectsManager.effectElements.length;for(a=0;a<s;a+=1)i.push(e(n[a],t.effectsManager.effectElements[a],r,t));var o=t.data.ef||[],l=function(e){for(a=0,s=o.length;a<s;){if(e===o[a].nm||e===o[a].mn||e===o[a].ix)return i[a];a+=1}return null};return Object.defineProperty(l,"numProperties",{get:function(){return o.length}}),l}return null}}}(),CompExpressionInterface=function(e){function t(t){for(var r=0,a=e.layers.length;r<a;){if(e.layers[r].nm===t||e.layers[r].ind===t)return e.elements[r].layerInterface;r+=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},ShapePathInterface=function(e,t,r){var a=t.sh;function i(e){return"Shape"===e||"shape"===e||"Path"===e||"path"===e||"ADBE Vector Shape"===e||2===e?i.path:null}var n=propertyGroupFactory(i,r);return a.setGroupProperty(PropertyInterface("Path",n)),Object.defineProperties(i,{path:{get:function(){return a.k&&a.getValue(),a}},shape:{get:function(){return a.k&&a.getValue(),a}},_name:{value:e.nm},ix:{value:e.ix},propertyIndex:{value:e.ix},mn:{value:e.mn},propertyGroup:{value:r}}),i},ShapeExpressionInterface=function(){function e(e,s,d){var u,m=[],f=e?e.length:0;for(u=0;u<f;u+=1)"gr"===e[u].ty?m.push(t(e[u],s[u],d)):"fl"===e[u].ty?m.push(r(e[u],s[u],d)):"st"===e[u].ty?m.push(i(e[u],s[u],d)):"tm"===e[u].ty?m.push(n(e[u],s[u],d)):"tr"===e[u].ty||("el"===e[u].ty?m.push(o(e[u],s[u],d)):"sr"===e[u].ty?m.push(l(e[u],s[u],d)):"sh"===e[u].ty?m.push(ShapePathInterface(e[u],s[u],d)):"rc"===e[u].ty?m.push(h(e[u],s[u],d)):"rd"===e[u].ty?m.push(p(e[u],s[u],d)):"rp"===e[u].ty?m.push(c(e[u],s[u],d)):"gf"===e[u].ty?m.push(a(e[u],s[u],d)):m.push((e[u],s[u],function(){return null})));return m}function t(t,r,a){var i=function(e){switch(e){case"ADBE Vectors Group":case"Contents":case 2:return i.content;default:return i.transform}};i.propertyGroup=propertyGroupFactory(i,a);var n=function(t,r,a){var i,n=function(e){for(var t=0,r=i.length;t<r;){if(i[t]._name===e||i[t].mn===e||i[t].propertyIndex===e||i[t].ix===e||i[t].ind===e)return i[t];t+=1}return"number"==typeof e?i[e-1]:null};n.propertyGroup=propertyGroupFactory(n,a),i=e(t.it,r.it,n.propertyGroup),n.numProperties=i.length;var o=s(t.it[t.it.length-1],r.it[r.it.length-1],n.propertyGroup);return n.transform=o,n.propertyIndex=t.cix,n._name=t.nm,n}(t,r,i.propertyGroup),o=s(t.it[t.it.length-1],r.it[r.it.length-1],i.propertyGroup);return i.content=n,i.transform=o,Object.defineProperty(i,"_name",{get:function(){return t.nm}}),i.numProperties=t.np,i.propertyIndex=t.ix,i.nm=t.nm,i.mn=t.mn,i}function r(e,t,r){function a(e){return"Color"===e||"color"===e?a.color:"Opacity"===e||"opacity"===e?a.opacity:null}return Object.defineProperties(a,{color:{get:ExpressionPropertyInterface(t.c)},opacity:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm},mn:{value:e.mn}}),t.c.setGroupProperty(PropertyInterface("Color",r)),t.o.setGroupProperty(PropertyInterface("Opacity",r)),a}function a(e,t,r){function a(e){return"Start Point"===e||"start point"===e?a.startPoint:"End Point"===e||"end point"===e?a.endPoint:"Opacity"===e||"opacity"===e?a.opacity:null}return Object.defineProperties(a,{startPoint:{get:ExpressionPropertyInterface(t.s)},endPoint:{get:ExpressionPropertyInterface(t.e)},opacity:{get:ExpressionPropertyInterface(t.o)},type:{get:function(){return"a"}},_name:{value:e.nm},mn:{value:e.mn}}),t.s.setGroupProperty(PropertyInterface("Start Point",r)),t.e.setGroupProperty(PropertyInterface("End Point",r)),t.o.setGroupProperty(PropertyInterface("Opacity",r)),a}function i(e,t,r){var a,i=propertyGroupFactory(h,r),n=propertyGroupFactory(l,i);function s(r){Object.defineProperty(l,e.d[r].nm,{get:ExpressionPropertyInterface(t.d.dataProps[r].p)})}var o=e.d?e.d.length:0,l={};for(a=0;a<o;a+=1)s(a),t.d.dataProps[a].p.setGroupProperty(n);function h(e){return"Color"===e||"color"===e?h.color:"Opacity"===e||"opacity"===e?h.opacity:"Stroke Width"===e||"stroke width"===e?h.strokeWidth:null}return Object.defineProperties(h,{color:{get:ExpressionPropertyInterface(t.c)},opacity:{get:ExpressionPropertyInterface(t.o)},strokeWidth:{get:ExpressionPropertyInterface(t.w)},dash:{get:function(){return l}},_name:{value:e.nm},mn:{value:e.mn}}),t.c.setGroupProperty(PropertyInterface("Color",i)),t.o.setGroupProperty(PropertyInterface("Opacity",i)),t.w.setGroupProperty(PropertyInterface("Stroke Width",i)),h}function n(e,t,r){function a(t){return t===e.e.ix||"End"===t||"end"===t?a.end:t===e.s.ix?a.start:t===e.o.ix?a.offset:null}var i=propertyGroupFactory(a,r);return a.propertyIndex=e.ix,t.s.setGroupProperty(PropertyInterface("Start",i)),t.e.setGroupProperty(PropertyInterface("End",i)),t.o.setGroupProperty(PropertyInterface("Offset",i)),a.propertyIndex=e.ix,a.propertyGroup=r,Object.defineProperties(a,{start:{get:ExpressionPropertyInterface(t.s)},end:{get:ExpressionPropertyInterface(t.e)},offset:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm}}),a.mn=e.mn,a}function s(e,t,r){function a(t){return e.a.ix===t||"Anchor Point"===t?a.anchorPoint:e.o.ix===t||"Opacity"===t?a.opacity:e.p.ix===t||"Position"===t?a.position:e.r.ix===t||"Rotation"===t||"ADBE Vector Rotation"===t?a.rotation:e.s.ix===t||"Scale"===t?a.scale:e.sk&&e.sk.ix===t||"Skew"===t?a.skew:e.sa&&e.sa.ix===t||"Skew Axis"===t?a.skewAxis:null}var i=propertyGroupFactory(a,r);return t.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",i)),t.transform.mProps.p.setGroupProperty(PropertyInterface("Position",i)),t.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",i)),t.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",i)),t.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",i)),t.transform.mProps.sk&&(t.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",i)),t.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",i))),t.transform.op.setGroupProperty(PropertyInterface("Opacity",i)),Object.defineProperties(a,{opacity:{get:ExpressionPropertyInterface(t.transform.mProps.o)},position:{get:ExpressionPropertyInterface(t.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(t.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(t.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(t.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(t.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(t.transform.mProps.sa)},_name:{value:e.nm}}),a.ty="tr",a.mn=e.mn,a.propertyGroup=r,a}function o(e,t,r){function a(t){return e.p.ix===t?a.position:e.s.ix===t?a.size:null}var i=propertyGroupFactory(a,r);a.propertyIndex=e.ix;var n="tm"===t.sh.ty?t.sh.prop:t.sh;return n.s.setGroupProperty(PropertyInterface("Size",i)),n.p.setGroupProperty(PropertyInterface("Position",i)),Object.defineProperties(a,{size:{get:ExpressionPropertyInterface(n.s)},position:{get:ExpressionPropertyInterface(n.p)},_name:{value:e.nm}}),a.mn=e.mn,a}function l(e,t,r){function a(t){return e.p.ix===t?a.position:e.r.ix===t?a.rotation:e.pt.ix===t?a.points:e.or.ix===t||"ADBE Vector Star Outer Radius"===t?a.outerRadius:e.os.ix===t?a.outerRoundness:!e.ir||e.ir.ix!==t&&"ADBE Vector Star Inner Radius"!==t?e.is&&e.is.ix===t?a.innerRoundness:null:a.innerRadius}var i=propertyGroupFactory(a,r),n="tm"===t.sh.ty?t.sh.prop:t.sh;return a.propertyIndex=e.ix,n.or.setGroupProperty(PropertyInterface("Outer Radius",i)),n.os.setGroupProperty(PropertyInterface("Outer Roundness",i)),n.pt.setGroupProperty(PropertyInterface("Points",i)),n.p.setGroupProperty(PropertyInterface("Position",i)),n.r.setGroupProperty(PropertyInterface("Rotation",i)),e.ir&&(n.ir.setGroupProperty(PropertyInterface("Inner Radius",i)),n.is.setGroupProperty(PropertyInterface("Inner Roundness",i))),Object.defineProperties(a,{position:{get:ExpressionPropertyInterface(n.p)},rotation:{get:ExpressionPropertyInterface(n.r)},points:{get:ExpressionPropertyInterface(n.pt)},outerRadius:{get:ExpressionPropertyInterface(n.or)},outerRoundness:{get:ExpressionPropertyInterface(n.os)},innerRadius:{get:ExpressionPropertyInterface(n.ir)},innerRoundness:{get:ExpressionPropertyInterface(n.is)},_name:{value:e.nm}}),a.mn=e.mn,a}function h(e,t,r){function a(t){return e.p.ix===t?a.position:e.r.ix===t?a.roundness:e.s.ix===t||"Size"===t||"ADBE Vector Rect Size"===t?a.size:null}var i=propertyGroupFactory(a,r),n="tm"===t.sh.ty?t.sh.prop:t.sh;return a.propertyIndex=e.ix,n.p.setGroupProperty(PropertyInterface("Position",i)),n.s.setGroupProperty(PropertyInterface("Size",i)),n.r.setGroupProperty(PropertyInterface("Rotation",i)),Object.defineProperties(a,{position:{get:ExpressionPropertyInterface(n.p)},roundness:{get:ExpressionPropertyInterface(n.r)},size:{get:ExpressionPropertyInterface(n.s)},_name:{value:e.nm}}),a.mn=e.mn,a}function p(e,t,r){function a(t){return e.r.ix===t||"Round Corners 1"===t?a.radius:null}var i=propertyGroupFactory(a,r),n=t;return a.propertyIndex=e.ix,n.rd.setGroupProperty(PropertyInterface("Radius",i)),Object.defineProperties(a,{radius:{get:ExpressionPropertyInterface(n.rd)},_name:{value:e.nm}}),a.mn=e.mn,a}function c(e,t,r){function a(t){return e.c.ix===t||"Copies"===t?a.copies:e.o.ix===t||"Offset"===t?a.offset:null}var i=propertyGroupFactory(a,r),n=t;return a.propertyIndex=e.ix,n.c.setGroupProperty(PropertyInterface("Copies",i)),n.o.setGroupProperty(PropertyInterface("Offset",i)),Object.defineProperties(a,{copies:{get:ExpressionPropertyInterface(n.c)},offset:{get:ExpressionPropertyInterface(n.o)},_name:{value:e.nm}}),a.mn=e.mn,a}return function(t,r,a){var i;function n(e){if("number"==typeof e)return 0===(e=void 0===e?1:e)?a:i[e-1];for(var t=0,r=i.length;t<r;){if(i[t]._name===e)return i[t];t+=1}return null}return n.propertyGroup=propertyGroupFactory(n,(function(){return a})),i=e(t,r,n.propertyGroup),n.numProperties=i.length,n._name="Contents",n}}(),TextExpressionInterface=function(e){var t,r;function a(e){return"ADBE Text Document"===e?a.sourceText:null}return Object.defineProperty(a,"sourceText",{get:function(){e.textProperty.getValue();var a=e.textProperty.currentData.t;return a!==t&&(e.textProperty.currentData.t=t,(r=new String(a)).value=a||new String(a)),r}}),a},getBlendMode=(blendModeEnums={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"},function(e){return blendModeEnums[e]||""}),blendModeEnums;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,a=e.ef||[];this.effectElements=[];var i,n=a.length;for(r=0;r<n;r+=1)i=new GroupEffect(a[r],t),this.effectElements.push(i)}function GroupEffect(e,t){this.init(e,t)}function BaseElement(){}function FrameElement(){}function _typeof$2(e){return _typeof$2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$2(e)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(e,t){var r;this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(t);var a,i=this.data.ef.length,n=this.data.ef;for(r=0;r<i;r+=1){switch(a=null,n[r].ty){case 0:a=new SliderEffect(n[r],t,this);break;case 1:a=new AngleEffect(n[r],t,this);break;case 2:a=new ColorEffect(n[r],t,this);break;case 3:a=new PointEffect(n[r],t,this);break;case 4:case 7:a=new CheckboxEffect(n[r],t,this);break;case 10:a=new LayerIndexEffect(n[r],t,this);break;case 11:a=new MaskIndexEffect(n[r],t,this);break;case 5:a=new EffectsManager(n[r],t);break;default:a=new NoValueEffect(n[r])}a&&this.effectElements.push(a)}},BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var e=0,t=this.data.masksProperties.length;e<t;){if("n"!==this.data.masksProperties[e].mode&&!1!==this.data.masksProperties[e].cl)return!0;e+=1}return!1},initExpressions:function(){this.layerInterface=LayerExpressionInterface(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var e=EffectsExpressionInterface.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(e),0===this.data.ty||this.data.xt?this.compInterface=CompExpressionInterface(this):4===this.data.ty?(this.layerInterface.shapeInterface=ShapeExpressionInterface(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=TextExpressionInterface(this),this.layerInterface.text=this.layerInterface.textInterface)},setBlendMode:function(){var e=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=e},initBaseData:function(e,t,r){this.globalData=t,this.comp=r,this.data=e,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(e,t){var r,a=this.dynamicProperties.length;for(r=0;r<a;r+=1)(t||this._isParent&&"transform"===this.dynamicProperties[r].propType)&&(this.dynamicProperties[r].getValue(),this.dynamicProperties[r]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(e){-1===this.dynamicProperties.indexOf(e)&&this.dynamicProperties.push(e)}};var FootageInterface=(dataInterfaceFactory=function(e){function t(e){return"Outline"===e?t.outlineInterface():null}return t._name="Outline",t.outlineInterface=function(e){var t="",r=e.getFootageData();function a(e){if(r[e])return t=e,"object"===_typeof$2(r=r[e])?a:r;var i=e.indexOf(t);if(-1!==i){var n=parseInt(e.substr(i+t.length),10);return"object"===_typeof$2(r=r[n])?a:r}return""}return function(){return t="",r=e.getFootageData(),a}}(e),t},function(e){function t(e){return"Data"===e?t.dataInterface:null}return t._name="Data",t.dataInterface=dataInterfaceFactory(e),t}),dataInterfaceFactory;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)}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 a=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(a),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)}function BaseRenderer(){}function TransformElement(){}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 a,i,n=this.globalData.defs,s=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(s),this.solidPath="";var o,l,h,p,c,d,u=this.masksProperties,m=0,f=[],y=createElementID(),g="clipPath",v="clip-path";for(a=0;a<s;a+=1)if(("a"!==u[a].mode&&"n"!==u[a].mode||u[a].inv||100!==u[a].o.k||u[a].o.x)&&(g="mask",v="mask"),"s"!==u[a].mode&&"i"!==u[a].mode||0!==m?h=null:((h=createNS("rect")).setAttribute("fill","#ffffff"),h.setAttribute("width",this.element.comp.data.w||0),h.setAttribute("height",this.element.comp.data.h||0),f.push(h)),i=createNS("path"),"n"===u[a].mode)this.viewData[a]={op:PropertyFactory.getProp(this.element,u[a].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,u[a],3),elem:i,lastPath:""},n.appendChild(i);else{var b;if(m+=1,i.setAttribute("fill","s"===u[a].mode?"#000000":"#ffffff"),i.setAttribute("clip-rule","nonzero"),0!==u[a].x.k?(g="mask",v="mask",d=PropertyFactory.getProp(this.element,u[a].x,0,null,this.element),b=createElementID(),(p=createNS("filter")).setAttribute("id",b),(c=createNS("feMorphology")).setAttribute("operator","erode"),c.setAttribute("in","SourceGraphic"),c.setAttribute("radius","0"),p.appendChild(c),n.appendChild(p),i.setAttribute("stroke","s"===u[a].mode?"#000000":"#ffffff")):(c=null,d=null),this.storedData[a]={elem:i,x:d,expan:c,lastPath:"",lastOperator:"",filterId:b,lastRadius:0},"i"===u[a].mode){l=f.length;var x=createNS("g");for(o=0;o<l;o+=1)x.appendChild(f[o]);var S=createNS("mask");S.setAttribute("mask-type","alpha"),S.setAttribute("id",y+"_"+m),S.appendChild(i),n.appendChild(S),x.setAttribute("mask","url("+getLocationHref()+"#"+y+"_"+m+")"),f.length=0,f.push(x)}else f.push(i);u[a].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[a]={elem:i,lastPath:"",op:PropertyFactory.getProp(this.element,u[a].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,u[a],3),invRect:h},this.viewData[a].prop.k||this.drawPath(u[a],this.viewData[a].prop.v,this.viewData[a])}for(this.maskElement=createNS(g),s=f.length,a=0;a<s;a+=1)this.maskElement.appendChild(f[a]);m>0&&(this.maskElement.setAttribute("id",y),this.element.maskedElement.setAttribute(v,"url("+getLocationHref()+"#"+y+")"),n.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}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(){this.layerInterface=FootageInterface(this)},FootageElement.prototype.getFootageData=function(){return this.footageData},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(){},BaseRenderer.prototype.checkLayers=function(e){var t,r,a=this.layers.length;for(this.completeLayers=!0,t=a-1;t>=0;t-=1)this.elements[t]||(r=this.layers[t]).ip-r.st<=e-this.layers[t].st&&r.op-r.st>e-this.layers[t].st&&this.buildItem(t),this.completeLayers=!!this.elements[t]&&this.completeLayers;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:default: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)}},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){var t;this.completeLayers=!1;var r,a=e.length,i=this.layers.length;for(t=0;t<a;t+=1)for(r=0;r<i;){if(this.layers[r].id===e[t].id){this.layers[r]=e[t];break}r+=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 a=this.elements,i=this.layers,n=0,s=i.length;n<s;)i[n].ind==t&&(a[n]&&!0!==a[n]?(r.push(a[n]),a[n].setAsParent(),void 0!==i[n].parent?this.buildElementParenting(e,i[n].parent,r):e.setHierarchy(r)):(this.buildItem(n),this.addPendingElement(e))),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 a=this.createComp(e[t]);a.initExpressions(),this.globalData.projectInterface.registerComposition(a)}},BaseRenderer.prototype.getElementByPath=function(e){var t,r=e.shift();if("number"==typeof r)t=this.elements[r];else{var a,i=this.elements.length;for(a=0;a<i;a+=1)if(this.elements[a].data.nm===r){t=this.elements[a];break}}return 0===e.length?t:t.getElementByPath(e)},BaseRenderer.prototype.setupGlobalData=function(e,t){this.globalData.fontManager=new FontManager,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}},TransformElement.prototype={initTransform:function(){this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_opMdf:!1,mat:new Matrix},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var e,t=this.finalTransform.mat,r=0,a=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;r<a;){if(this.hierarchy[r].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}r+=1}if(this.finalTransform._matMdf)for(e=this.finalTransform.mProp.v.props,t.cloneFromProps(e),r=0;r<a;r+=1)e=this.hierarchy[r].finalTransform.mProp.v.props,t.transform(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}},globalToLocal:function(e){var t=[];t.push(this.finalTransform);for(var r,a=!0,i=this.comp;a;)i.finalTransform?(i.data.hasMask&&t.splice(0,0,i.finalTransform),i=i.comp):a=!1;var n,s=t.length;for(r=0;r<s;r+=1)n=t[r].mat.applyToPointArray(0,0,0),e=[e[0]-n[0],e[1]-n[1],0];return e},mHelper:new Matrix},MaskElement.prototype.getMaskProperty=function(e){return this.viewData[e].prop},MaskElement.prototype.renderFrame=function(e){var t,r=this.element.finalTransform.mat,a=this.masksProperties.length;for(t=0;t<a;t+=1)if((this.viewData[t].prop._mdf||e)&&this.drawPath(this.masksProperties[t],this.viewData[t].prop.v,this.viewData[t]),(this.viewData[t].op._mdf||e)&&this.viewData[t].elem.setAttribute("fill-opacity",this.viewData[t].op.v),"n"!==this.masksProperties[t].mode&&(this.viewData[t].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[t].invRect.setAttribute("transform",r.getInverseMatrix().to2dCSS()),this.storedData[t].x&&(this.storedData[t].x._mdf||e))){var i=this.storedData[t].expan;this.storedData[t].x.v<0?("erode"!==this.storedData[t].lastOperator&&(this.storedData[t].lastOperator="erode",this.storedData[t].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[t].filterId+")")),i.setAttribute("radius",-this.storedData[t].x.v)):("dilate"!==this.storedData[t].lastOperator&&(this.storedData[t].lastOperator="dilate",this.storedData[t].elem.setAttribute("filter",null)),this.storedData[t].elem.setAttribute("stroke-width",2*this.storedData[t].x.v))}},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+" "},MaskElement.prototype.drawPath=function(e,t,r){var a,i,n=" M"+t.v[0][0]+","+t.v[0][1];for(i=t._length,a=1;a<i;a+=1)n+=" C"+t.o[a-1][0]+","+t.o[a-1][1]+" "+t.i[a][0]+","+t.i[a][1]+" "+t.v[a][0]+","+t.v[a][1];if(t.c&&i>1&&(n+=" C"+t.o[a-1][0]+","+t.o[a-1][1]+" "+t.i[0][0]+","+t.i[0][1]+" "+t.v[0][0]+","+t.v[0][1]),r.lastPath!==n){var s="";r.elem&&(t.c&&(s=e.inv?this.solidPath+n:n),r.elem.setAttribute("d",s)),r.lastPath=n}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var e={createFilter:function(e,t){var r=createNS("filter");return r.setAttribute("id",e),!0!==t&&(r.setAttribute("filterUnits","objectBoundingBox"),r.setAttribute("x","0%"),r.setAttribute("y","0%"),r.setAttribute("width","100%"),r.setAttribute("height","100%")),r},createAlphaToLuminanceFilter:function(){var e=createNS("feColorMatrix");return e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),e}};return e}(),featureSupport=function(){var e={maskType:!0};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(e.maskType=!1),e}(),registeredEffects={},idPrefix="filter_result_";function SVGEffects(e){var t,r,a="SourceGraphic",i=e.data.ef?e.data.ef.length:0,n=createElementID(),s=filtersFactory.createFilter(n,!0),o=0;for(this.filters=[],t=0;t<i;t+=1){r=null;var l=e.data.ef[t].ty;registeredEffects[l]&&(r=new(0,registeredEffects[l].effect)(s,e.effectsManager.effectElements[t],e,idPrefix+o,a),a=idPrefix+o,registeredEffects[l].countsAsEffect&&(o+=1)),r&&this.filters.push(r)}o&&(e.globalData.defs.appendChild(s),e.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+n+")")),this.filters.length&&e.addRenderableComponent(this)}function registerEffect(e,t,r){registeredEffects[e]={effect:t,countsAsEffect:r}}function SVGBaseElement(){}function HierarchyElement(){}function RenderableDOMElement(){}function IImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.initElement(e,t,r),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ProcessedElement(e,t){this.elem=e,this.pos=t}function IShapeElement(){}SVGEffects.prototype.renderFrame=function(e){var t,r=this.filters.length;for(t=0;t<r;t+=1)this.filters[t].renderFrame(e)},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 e,t,r,a=null;if(this.data.td){if(3==this.data.td||1==this.data.td){var i=createNS("mask");i.setAttribute("id",this.layerId),i.setAttribute("mask-type",3==this.data.td?"luminance":"alpha"),i.appendChild(this.layerElement),a=i,this.globalData.defs.appendChild(i),featureSupport.maskType||1!=this.data.td||(i.setAttribute("mask-type","luminance"),e=createElementID(),t=filtersFactory.createFilter(e),this.globalData.defs.appendChild(t),t.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(r=createNS("g")).appendChild(this.layerElement),a=r,i.appendChild(r),r.setAttribute("filter","url("+getLocationHref()+"#"+e+")"))}else if(2==this.data.td){var n=createNS("mask");n.setAttribute("id",this.layerId),n.setAttribute("mask-type","alpha");var s=createNS("g");n.appendChild(s),e=createElementID(),t=filtersFactory.createFilter(e);var o=createNS("feComponentTransfer");o.setAttribute("in","SourceGraphic"),t.appendChild(o);var l=createNS("feFuncA");l.setAttribute("type","table"),l.setAttribute("tableValues","1.0 0.0"),o.appendChild(l),this.globalData.defs.appendChild(t);var h=createNS("rect");h.setAttribute("width",this.comp.data.w),h.setAttribute("height",this.comp.data.h),h.setAttribute("x","0"),h.setAttribute("y","0"),h.setAttribute("fill","#ffffff"),h.setAttribute("opacity","0"),s.setAttribute("filter","url("+getLocationHref()+"#"+e+")"),s.appendChild(h),s.appendChild(this.layerElement),a=s,featureSupport.maskType||(n.setAttribute("mask-type","luminance"),t.appendChild(filtersFactory.createAlphaToLuminanceFilter()),r=createNS("g"),s.appendChild(h),r.appendChild(this.layerElement),a=r,s.appendChild(r)),this.globalData.defs.appendChild(n)}}else this.data.tt?(this.matteElement.appendChild(this.layerElement),a=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0===this.data.ty&&!this.data.hd){var p=createNS("clipPath"),c=createNS("path");c.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var d=createElementID();if(p.setAttribute("id",d),p.appendChild(c),this.globalData.defs.appendChild(p),this.checkMasks()){var u=createNS("g");u.setAttribute("clip-path","url("+getLocationHref()+"#"+d+")"),u.appendChild(this.layerElement),this.transformedElement=u,a?a.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+d+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._matMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.mat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.mProp.o.v)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this)},setMatte:function(e){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+e+")")}},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(e){this.hierarchy=e},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},extendPrototype([RenderableElement,createProxyFunction({initElement:function(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initTransform(e,t,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],RenderableDOMElement),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var 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},IShapeElement.prototype={addShapeToModifiers:function(e){var t,r=this.shapeModifiers.length;for(t=0;t<r;t+=1)this.shapeModifiers[t].addShape(e)},isShapeInAnimatedModifiers:function(e){for(var t=this.shapeModifiers.length;0<t;)if(this.shapeModifiers[0].isAnimatedWithShape(e))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var e,t=this.shapes.length;for(e=0;e<t;e+=1)this.shapes[e].sh.reset();for(e=(t=this.shapeModifiers.length)-1;e>=0&&!this.shapeModifiers[e].processShapes(this._isFirstFrame);e-=1);}},searchProcessedElement:function(e){for(var t=this.processedElements,r=0,a=t.length;r<a;){if(t[r].elem===e)return t[r].pos;r+=1}return 0},addProcessedElement:function(e,t){for(var r=this.processedElements,a=r.length;a;)if(r[a-=1].elem===e)return void(r[a].pos=t);r.push(new ProcessedElement(e,t))},prepareFrame:function(e){this.prepareRenderableFrame(e),this.prepareProperties(e,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 a=0,i=e.length;a<i;){if(e[a].mProps.dynamicProperties.length){this._isAnimated=!0;break}a+=1}}function SVGStyleData(e,t){this.data=e,this.type=e.ty,this.d="",this.lvl=t,this._mdf=!1,this.closed=!0===e.hd,this.pElem=createNS("path"),this.msElem=null}function DashProperty(e,t,r,a){var 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(a);var n,s=t.length||0;for(i=0;i<s;i+=1)n=PropertyFactory.getProp(e,t[i].v,0,0,this),this.k=n.k||this.k,this.dataProps[i]={n:t[i].n,p:n};this.k||this.getValue(!0),this._isAnimated=this.k}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}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}function SVGNoStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=r}function GradientProperty(e,t,r){this.data=t,this.c=createTypedArray("uint8c",4*t.p);var a=t.k.k[0].s?t.k.k[0].s.length-4*t.p:t.k.k.length-4*t.p;this.o=createTypedArray("float32",a),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=a,this.initDynamicPropertyContainer(r),this.prop=PropertyFactory.getProp(e,t.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,t,r)}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}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}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0},SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1},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("svg"===this.renderer&&(this.dashStr=""),t=0;t<r;t+=1)"o"!==this.dataProps[t].n?"svg"===this.renderer?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),extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),extendPrototype([DynamicPropertyContainer],SVGNoStyleData),GradientProperty.prototype.comparePoints=function(e,t){for(var r=0,a=this.o.length/2;r<a;){if(Math.abs(e[4*r]-e[4*t+2*r])>.01)return!1;r+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var 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,a,i=4*this.data.p;for(t=0;t<i;t+=1)r=t%4==0?100:255,a=Math.round(this.prop.v[t]*r),this.c[t]!==a&&(this.c[t]=a,this._cmdf=!e);if(this.o.length)for(i=this.prop.v.length,t=4*this.data.p;t<i;t+=1)r=t%2==0?100:1,a=t%2==0?Math.round(100*this.prop.v[t]):this.prop.v[t],this.o[t-4*this.data.p]!==a&&(this.o[t-4*this.data.p]=a,this._omdf=!e);this._mdf=!e}},extendPrototype([DynamicPropertyContainer],GradientProperty),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(),a=createNS(1===t.t?"linearGradient":"radialGradient");a.setAttribute("id",r),a.setAttribute("spreadMethod","pad"),a.setAttribute("gradientUnits","userSpaceOnUse");var i,n,s,o=[];for(s=4*t.g.p,n=0;n<s;n+=4)i=createNS("stop"),a.appendChild(i),o.push(i);e.setAttribute("gf"===t.ty?"fill":"stroke","url("+getLocationHref()+"#"+r+")"),this.gf=a,this.cst=o},SVGGradientFillStyleData.prototype.setGradientOpacity=function(e,t){if(this.g._hasOpacity&&!this.g._collapsable){var r,a,i,n=createNS("mask"),s=createNS("path");n.appendChild(s);var o=createElementID(),l=createElementID();n.setAttribute("id",l);var h=createNS(1===e.t?"linearGradient":"radialGradient");h.setAttribute("id",o),h.setAttribute("spreadMethod","pad"),h.setAttribute("gradientUnits","userSpaceOnUse"),i=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var p=this.stops;for(a=4*e.g.p;a<i;a+=2)(r=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),h.appendChild(r),p.push(r);s.setAttribute("gf"===e.ty?"fill":"stroke","url("+getLocationHref()+"#"+o+")"),"gs"===e.ty&&(s.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),s.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),1===e.lj&&s.setAttribute("stroke-miterlimit",e.ml)),this.of=h,this.ms=n,this.ost=p,this.maskId=l,t.msElem=s}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(e,t,r,a){if(0===t)return"";var i,n=e.o,s=e.i,o=e.v,l=" M"+a.applyToPointStringified(o[0][0],o[0][1]);for(i=1;i<t;i+=1)l+=" C"+a.applyToPointStringified(n[i-1][0],n[i-1][1])+" "+a.applyToPointStringified(s[i][0],s[i][1])+" "+a.applyToPointStringified(o[i][0],o[i][1]);return r&&t&&(l+=" C"+a.applyToPointStringified(n[i-1][0],n[i-1][1])+" "+a.applyToPointStringified(s[0][0],s[0][1])+" "+a.applyToPointStringified(o[0][0],o[0][1]),l+="z"),l},SVGElementsRenderer=function(){var e=new Matrix,t=new Matrix;function r(e,t,r){(r||t.transform.op._mdf)&&t.transform.container.setAttribute("opacity",t.transform.op.v),(r||t.transform.mProps._mdf)&&t.transform.container.setAttribute("transform",t.transform.mProps.v.to2dCSS())}function a(){}function i(r,a,i){var n,s,o,l,h,p,c,d,u,m,f,y=a.styles.length,g=a.lvl;for(p=0;p<y;p+=1){if(l=a.sh._mdf||i,a.styles[p].lvl<g){for(d=t.reset(),m=g-a.styles[p].lvl,f=a.transformers.length-1;!l&&m>0;)l=a.transformers[f].mProps._mdf||l,m-=1,f-=1;if(l)for(m=g-a.styles[p].lvl,f=a.transformers.length-1;m>0;)u=a.transformers[f].mProps.v.props,d.transform(u[0],u[1],u[2],u[3],u[4],u[5],u[6],u[7],u[8],u[9],u[10],u[11],u[12],u[13],u[14],u[15]),m-=1,f-=1}else d=e;if(s=(c=a.sh.paths)._length,l){for(o="",n=0;n<s;n+=1)(h=c.shapes[n])&&h._length&&(o+=buildShapeString(h,h._length,h.c,d));a.caches[p]=o}else o=a.caches[p];a.styles[p].d+=!0===r.hd?"":o,a.styles[p]._mdf=l||a.styles[p]._mdf}}function n(e,t,r){var a=t.style;(t.c._mdf||r)&&a.pElem.setAttribute("fill","rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r)&&a.pElem.setAttribute("fill-opacity",t.o.v)}function s(e,t,r){o(e,t,r),l(0,t,r)}function o(e,t,r){var a,i,n,s,o,l=t.gf,h=t.g._hasOpacity,p=t.s.v,c=t.e.v;if(t.o._mdf||r){var d="gf"===e.ty?"fill-opacity":"stroke-opacity";t.style.pElem.setAttribute(d,t.o.v)}if(t.s._mdf||r){var u=1===e.t?"x1":"cx",m="x1"===u?"y1":"cy";l.setAttribute(u,p[0]),l.setAttribute(m,p[1]),h&&!t.g._collapsable&&(t.of.setAttribute(u,p[0]),t.of.setAttribute(m,p[1]))}if(t.g._cmdf||r){a=t.cst;var f=t.g.c;for(n=a.length,i=0;i<n;i+=1)(s=a[i]).setAttribute("offset",f[4*i]+"%"),s.setAttribute("stop-color","rgb("+f[4*i+1]+","+f[4*i+2]+","+f[4*i+3]+")")}if(h&&(t.g._omdf||r)){var y=t.g.o;for(n=(a=t.g._collapsable?t.cst:t.ost).length,i=0;i<n;i+=1)s=a[i],t.g._collapsable||s.setAttribute("offset",y[2*i]+"%"),s.setAttribute("stop-opacity",y[2*i+1])}if(1===e.t)(t.e._mdf||r)&&(l.setAttribute("x2",c[0]),l.setAttribute("y2",c[1]),h&&!t.g._collapsable&&(t.of.setAttribute("x2",c[0]),t.of.setAttribute("y2",c[1])));else if((t.s._mdf||t.e._mdf||r)&&(o=Math.sqrt(Math.pow(p[0]-c[0],2)+Math.pow(p[1]-c[1],2)),l.setAttribute("r",o),h&&!t.g._collapsable&&t.of.setAttribute("r",o)),t.e._mdf||t.h._mdf||t.a._mdf||r){o||(o=Math.sqrt(Math.pow(p[0]-c[0],2)+Math.pow(p[1]-c[1],2)));var g=Math.atan2(c[1]-p[1],c[0]-p[0]),v=t.h.v;v>=1?v=.99:v<=-1&&(v=-.99);var b=o*v,x=Math.cos(g+t.a.v)*b+p[0],S=Math.sin(g+t.a.v)*b+p[1];l.setAttribute("fx",x),l.setAttribute("fy",S),h&&!t.g._collapsable&&(t.of.setAttribute("fx",x),t.of.setAttribute("fy",S))}}function l(e,t,r){var a=t.style,i=t.d;i&&(i._mdf||r)&&i.dashStr&&(a.pElem.setAttribute("stroke-dasharray",i.dashStr),a.pElem.setAttribute("stroke-dashoffset",i.dashoffset[0])),t.c&&(t.c._mdf||r)&&a.pElem.setAttribute("stroke","rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r)&&a.pElem.setAttribute("stroke-opacity",t.o.v),(t.w._mdf||r)&&(a.pElem.setAttribute("stroke-width",t.w.v),a.msElem&&a.msElem.setAttribute("stroke-width",t.w.v))}return{createRenderFunction:function(e){switch(e.ty){case"fl":return n;case"gf":return o;case"gs":return s;case"st":return l;case"sh":case"el":case"rc":case"sr":return i;case"tr":return r;case"no":return a;default:return null}}}}();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=[]}function LetterProps(e,t,r,a,i,n){this.o=e,this.sw=t,this.sc=r,this.fc=a,this.m=i,this.p=n,this._mdf={o:!0,sw:!!t,sc:!!r,fc:!!a,m:!0,p:!0}}function TextProperty(e,t){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,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)}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,r,a,i=this.shapes.length,n=this.stylesList.length,s=[],o=!1;for(r=0;r<n;r+=1){for(a=this.stylesList[r],o=!1,s.length=0,e=0;e<i;e+=1)-1!==(t=this.shapes[e]).styles.indexOf(a)&&(s.push(t),o=t._isAnimated||o);s.length>1&&o&&this.setShapesAsAnimated(s)}},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,a=new SVGStyleData(e,t),i=a.pElem;return"st"===e.ty?r=new SVGStrokeStyleData(this,e,a):"fl"===e.ty?r=new SVGFillStyleData(this,e,a):"gf"===e.ty||"gs"===e.ty?(r=new("gf"===e.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,e,a),this.globalData.defs.appendChild(r.gf),r.maskId&&(this.globalData.defs.appendChild(r.ms),this.globalData.defs.appendChild(r.of),i.setAttribute("mask","url("+getLocationHref()+"#"+r.maskId+")"))):"no"===e.ty&&(r=new SVGNoStyleData(this,e,a)),"st"!==e.ty&&"gs"!==e.ty||(i.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),i.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),i.setAttribute("fill-opacity","0"),1===e.lj&&i.setAttribute("stroke-miterlimit",e.ml)),2===e.r&&i.setAttribute("fill-rule","evenodd"),e.ln&&i.setAttribute("id",e.ln),e.cl&&i.setAttribute("class",e.cl),e.bm&&(i.style["mix-blend-mode"]=getBlendMode(e.bm)),this.stylesList.push(a),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),a=new SVGTransformData(r,r.o,t);return this.addToAnimatedContents(e,a),a},SVGShapeElement.prototype.createShapeElement=function(e,t,r){var a=4;"rc"===e.ty?a=5:"el"===e.ty?a=6:"sr"===e.ty&&(a=7);var i=new SVGShapeData(t,r,ShapePropertyFactory.getShapeProp(this,e,a,this));return this.shapes.push(i),this.addShapeToModifiers(i),this.addToAnimatedContents(e,i),i},SVGShapeElement.prototype.addToAnimatedContents=function(e,t){for(var r=0,a=this.animatedContents.length;r<a;){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,r=e.styles,a=this.stylesList.length;for(t=0;t<a;t+=1)this.stylesList[t].closed||r.push(this.stylesList[t])},SVGShapeElement.prototype.reloadShapes=function(){var e;this._isFirstFrame=!0;var 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,a,i,n,s){var o,l,h,p,c,d,u=[].concat(n),m=e.length-1,f=[],y=[];for(o=m;o>=0;o-=1){if((d=this.searchProcessedElement(e[o]))?t[o]=r[d-1]:e[o]._render=s,"fl"===e[o].ty||"st"===e[o].ty||"gf"===e[o].ty||"gs"===e[o].ty||"no"===e[o].ty)d?t[o].style.closed=!1:t[o]=this.createStyleElement(e[o],i),e[o]._render&&t[o].style.pElem.parentNode!==a&&a.appendChild(t[o].style.pElem),f.push(t[o].style);else if("gr"===e[o].ty){if(d)for(h=t[o].it.length,l=0;l<h;l+=1)t[o].prevViewData[l]=t[o].it[l];else t[o]=this.createGroupElement(e[o]);this.searchShapes(e[o].it,t[o].it,t[o].prevViewData,t[o].gr,i+1,u,s),e[o]._render&&t[o].gr.parentNode!==a&&a.appendChild(t[o].gr)}else"tr"===e[o].ty?(d||(t[o]=this.createTransformElement(e[o],a)),p=t[o].transform,u.push(p)):"sh"===e[o].ty||"rc"===e[o].ty||"el"===e[o].ty||"sr"===e[o].ty?(d||(t[o]=this.createShapeElement(e[o],u,i)),this.setElementStyles(t[o])):"tm"===e[o].ty||"rd"===e[o].ty||"ms"===e[o].ty||"pb"===e[o].ty?(d?(c=t[o]).closed=!1:((c=ShapeModifiers.getModifier(e[o].ty)).init(this,e[o]),t[o]=c,this.shapeModifiers.push(c)),y.push(c)):"rp"===e[o].ty&&(d?(c=t[o]).closed=!0:(c=ShapeModifiers.getModifier(e[o].ty),t[o]=c,c.init(this,e,o,t),this.shapeModifiers.push(c),s=!1),y.push(c));this.addProcessedElement(e[o],o+1)}for(m=f.length,o=0;o<m;o+=1)f[o].closed=!0;for(m=y.length,o=0;o<m;o+=1)y[o].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){var e;this.renderModifiers();var 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,r=this.animatedContents.length;for(e=0;e<r;e+=1)t=this.animatedContents[e],(this._isFirstFrame||t.element._isAnimated)&&!0!==t.data&&t.fn(t.data,t.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},LetterProps.prototype.update=function(e,t,r,a,i,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 s=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,s=!0),this.sw!==t&&(this.sw=t,this._mdf.sw=!0,s=!0),this.sc!==r&&(this.sc=r,this._mdf.sc=!0,s=!0),this.fc!==a&&(this.fc=a,this._mdf.fc=!0,s=!0),this.m!==i&&(this.m=i,this._mdf.m=!0,s=!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,s=!0),s},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);else{var a;this.lock=!0,this._mdf=!1;var i=this.effectsSequence.length,n=e||this.data.d.k[this.keysIndex].s;for(a=0;a<i;a+=1)n=r!==this.keysIndex?this.effectsSequence[a](n,n.t):this.effectsSequence[a](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,a=e.length;r<=a-1&&!(r===a-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,a=[],i=0,n=e.length,s=!1;i<n;)t=e.charCodeAt(i),FontManager.isCombinedCharacter(t)?a[a.length-1]+=e.charAt(i):t>=55296&&t<=56319?(r=e.charCodeAt(i+1))>=56320&&r<=57343?(s||FontManager.isModifier(t,r)?(a[a.length-1]+=e.substr(i,2),s=!1):a.push(e.substr(i,2)),i+=1):a.push(e.charAt(i)):t>56319?(r=e.charCodeAt(i+1),FontManager.isZeroWidthJoiner(t,r)?(s=!0,a[a.length-1]+=e.substr(i,2),i+=1):a.push(e.charAt(i))):FontManager.isZeroWidthJoiner(t)?(a[a.length-1]+=e.charAt(i),s=!0):a.push(e.charAt(i)),i+=1;return a},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var t,r,a,i,n,s,o,l=this.elem.globalData.fontManager,h=this.data,p=[],c=0,d=h.m.g,u=0,m=0,f=0,y=[],g=0,v=0,b=l.getFontByName(e.f),x=0,S=getFontProperties(b);e.fWeight=S.weight,e.fStyle=S.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),r=e.finalText.length,e.finalLineHeight=e.lh;var _,T=e.tr/1e3*e.finalSize;if(e.sz)for(var C,E,P=!0,$=e.sz[0],k=e.sz[1];P;){C=0,g=0,r=(E=this.buildFinalText(e.t)).length,T=e.tr/1e3*e.finalSize;var w=-1;for(t=0;t<r;t+=1)_=E[t].charCodeAt(0),a=!1," "===E[t]?w=t:13!==_&&3!==_||(g=0,a=!0,C+=e.finalLineHeight||1.2*e.finalSize),l.chars?(o=l.getCharData(E[t],b.fStyle,b.fFamily),x=a?0:o.w*e.finalSize/100):x=l.measureText(E[t],e.f,e.finalSize),g+x>$&&" "!==E[t]?(-1===w?r+=1:t=w,C+=e.finalLineHeight||1.2*e.finalSize,E.splice(t,w===t?1:0,"\r"),w=-1,g=0):(g+=x,g+=T);C+=b.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&k<C?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=E,r=e.finalText.length,P=!1)}g=-T,x=0;var A,I=0;for(t=0;t<r;t+=1)if(a=!1,13===(_=(A=e.finalText[t]).charCodeAt(0))||3===_?(I=0,y.push(g),v=g>v?g:v,g=-2*T,i="",a=!0,f+=1):i=A,l.chars?(o=l.getCharData(A,b.fStyle,l.getFontByName(e.f).fFamily),x=a?0:o.w*e.finalSize/100):x=l.measureText(i,e.f,e.finalSize)," "===A?I+=x+T:(g+=x+T+I,I=0),p.push({l:x,an:x,add:u,n:a,anIndexes:[],val:i,line:f,animatorJustifyOffset:0}),2==d){if(u+=x,""===i||" "===i||t===r-1){for(""!==i&&" "!==i||(u-=x);m<=t;)p[m].an=u,p[m].ind=c,p[m].extra=x,m+=1;c+=1,u=0}}else if(3==d){if(u+=x,""===i||t===r-1){for(""===i&&(u-=x);m<=t;)p[m].an=u,p[m].ind=c,p[m].extra=x,m+=1;u=0,c+=1}}else p[c].ind=c,p[c].extra=0,c+=1;if(e.l=p,v=g>v?g:v,y.push(g),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=v,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=y;var M,D,F,R,B=h.a;s=B.length;var O=[];for(n=0;n<s;n+=1){for((M=B[n]).a.sc&&(e.strokeColorAnim=!0),M.a.sw&&(e.strokeWidthAnim=!0),(M.a.fc||M.a.fh||M.a.fs||M.a.fb)&&(e.fillColorAnim=!0),R=0,F=M.s.b,t=0;t<r;t+=1)(D=p[t]).anIndexes[n]=R,(1==F&&""!==D.val||2==F&&""!==D.val&&" "!==D.val||3==F&&(D.n||" "==D.val||t==r-1)||4==F&&(D.n||t==r-1))&&(1===M.s.rn&&O.push(R),R+=1);h.a[n].s.totalChars=R;var j,L=-1;if(1===M.s.rn)for(t=0;t<r;t+=1)L!=(D=p[t]).anIndexes[n]&&(L=D.anIndexes[n],j=O.splice(Math.floor(Math.random()*O.length),1)[0]),D.anIndexes[n]=j}e.yOffset=e.finalLineHeight||1.2*e.finalSize,e.ls=e.ls||0,e.ascent=b.ascent*e.finalSize/100},TextProperty.prototype.updateDocumentData=function(e,t){t=void 0===t?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.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 a(e,t){this._currentTextLength=-1,this.k=!1,this.data=t,this.elem=e,this.comp=e.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(e),this.s=PropertyFactory.getProp(e,t.s||{k:0},0,0,this),this.e="e"in t?PropertyFactory.getProp(e,t.e,0,0,this):{v:100},this.o=PropertyFactory.getProp(e,t.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(e,t.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(e,t.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(e,t.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(e,t.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return a.prototype={getMult:function(a){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var i=0,n=0,s=1,o=1;this.ne.v>0?i=this.ne.v/100:n=-this.ne.v/100,this.xe.v>0?s=1-this.xe.v/100:o=1+this.xe.v/100;var l=BezierFactory.getBezierEasing(i,n,s,o).get,h=0,p=this.finalS,c=this.finalE,d=this.data.sh;if(2===d)h=l(h=c===p?a>=c?1:0:e(0,t(.5/(c-p)+(a-p)/(c-p),1)));else if(3===d)h=l(h=c===p?a>=c?0:1:1-e(0,t(.5/(c-p)+(a-p)/(c-p),1)));else if(4===d)c===p?h=0:(h=e(0,t(.5/(c-p)+(a-p)/(c-p),1)))<.5?h*=2:h=1-2*(h-.5),h=l(h);else if(5===d){if(c===p)h=0;else{var u=c-p,m=-u/2+(a=t(e(0,a+.5-p),c-p)),f=u/2;h=Math.sqrt(1-m*m/(f*f))}h=l(h)}else 6===d?(c===p?h=0:(a=t(e(0,a+.5-p),c-p),h=(1+Math.cos(Math.PI+2*Math.PI*a/(c-p)))/2),h=l(h)):(a>=r(p)&&(h=e(0,t(a-p<0?t(c,1)-(p-a):c-a,1))),h=l(h));if(100!==this.sm.v){var y=.01*this.sm.v;0===y&&(y=1e-8);var g=.5-.5*y;h<g?h=0:(h=(h-g)/y)>1&&(h=1)}return h*this.a.v},getValue:function(e){this.iterateDynamicProperties(),this._mdf=e||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,e&&2===this.data.r&&(this.e.v=this._currentTextLength);var t=2===this.data.r?1:100/this.data.totalChars,r=this.o.v/t,a=this.s.v/t+r,i=this.e.v/t+r;if(a>i){var n=a;a=i,i=n}this.finalS=a,this.finalE=i}},extendPrototype([DynamicPropertyContainer],a),{getTextSelectorProp:function(e,t,r){return new a(e,t)}}}();function TextAnimatorDataProperty(e,t,r){var a={propType:!1},i=PropertyFactory.getProp,n=t.a;this.a={r:n.r?i(e,n.r,0,degToRads,r):a,rx:n.rx?i(e,n.rx,0,degToRads,r):a,ry:n.ry?i(e,n.ry,0,degToRads,r):a,sk:n.sk?i(e,n.sk,0,degToRads,r):a,sa:n.sa?i(e,n.sa,0,degToRads,r):a,s:n.s?i(e,n.s,1,.01,r):a,a:n.a?i(e,n.a,1,0,r):a,o:n.o?i(e,n.o,0,.01,r):a,p:n.p?i(e,n.p,1,0,r):a,sw:n.sw?i(e,n.sw,0,0,r):a,sc:n.sc?i(e,n.sc,1,0,r):a,fc:n.fc?i(e,n.fc,1,0,r):a,fh:n.fh?i(e,n.fh,0,0,r):a,fs:n.fs?i(e,n.fs,0,.01,r):a,fb:n.fb?i(e,n.fb,0,.01,r):a,t:n.t?i(e,n.t,0,0,r):a},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)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var e,t,r=this._textData.a.length,a=PropertyFactory.getProp;for(e=0;e<r;e+=1)t=this._textData.a[e],this._animatorsData[e]=new TextAnimatorDataProperty(this._elem,t,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:a(this._elem,this._textData.p.a,0,0,this),f:a(this._elem,this._textData.p.f,0,0,this),l:a(this._elem,this._textData.p.l,0,0,this),r:a(this._elem,this._textData.p.r,0,0,this),p:a(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=a(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,a,i,n,s,o,l,h,p,c,d,u,m,f,y,g,v,b,x,S=this._moreOptions.alignment.v,_=this._animatorsData,T=this._textData,C=this.mHelper,E=this._renderType,P=this.renderedLetters.length,$=e.l;if(this._hasMaskedPath){if(x=this._pathData.m,!this._pathData.n||this._pathData._mdf){var k,w=x.v;for(this._pathData.r.v&&(w=w.reverse()),s={tLength:0,segments:[]},n=w._length-1,g=0,i=0;i<n;i+=1)k=bez.buildBezierData(w.v[i],w.v[i+1],[w.o[i][0]-w.v[i][0],w.o[i][1]-w.v[i][1]],[w.i[i+1][0]-w.v[i+1][0],w.i[i+1][1]-w.v[i+1][1]]),s.tLength+=k.segmentLength,s.segments.push(k),g+=k.segmentLength;i=n,x.v.c&&(k=bez.buildBezierData(w.v[i],w.v[0],[w.o[i][0]-w.v[i][0],w.o[i][1]-w.v[i][1]],[w.i[0][0]-w.v[0][0],w.i[0][1]-w.v[0][1]]),s.tLength+=k.segmentLength,s.segments.push(k),g+=k.segmentLength),this._pathData.pi=s}if(s=this._pathData.pi,o=this._pathData.f.v,d=0,c=1,h=0,p=!0,f=s.segments,o<0&&x.v.c)for(s.tLength<Math.abs(o)&&(o=-Math.abs(o)%s.tLength),c=(m=f[d=f.length-1].points).length-1;o<0;)o+=m[c].partialLength,(c-=1)<0&&(c=(m=f[d-=1].points).length-1);u=(m=f[d].points)[c-1],y=(l=m[c]).partialLength}n=$.length,r=0,a=0;var A,I,M,D,F,R=1.2*e.finalSize*.714,B=!0;M=_.length;var O,j,L,V,N,H,z,G,W,q,U,Q,K=-1,Y=o,X=d,J=c,Z=-1,ee="",te=this.defaultPropsArray;if(2===e.j||1===e.j){var re=0,ae=0,ie=2===e.j?-.5:-1,ne=0,se=!0;for(i=0;i<n;i+=1)if($[i].n){for(re&&(re+=ae);ne<i;)$[ne].animatorJustifyOffset=re,ne+=1;re=0,se=!0}else{for(I=0;I<M;I+=1)(A=_[I].a).t.propType&&(se&&2===e.j&&(ae+=A.t.v*ie),(F=_[I].s.getMult($[i].anIndexes[I],T.a[I].s.totalChars)).length?re+=A.t.v*F[0]*ie:re+=A.t.v*F*ie);se=!1}for(re&&(re+=ae);ne<i;)$[ne].animatorJustifyOffset=re,ne+=1}for(i=0;i<n;i+=1){if(C.reset(),V=1,$[i].n)r=0,a+=e.yOffset,a+=B?1:0,o=Y,B=!1,this._hasMaskedPath&&(c=J,u=(m=f[d=X].points)[c-1],y=(l=m[c]).partialLength,h=0),ee="",U="",W="",Q="",te=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Z!==$[i].line){switch(e.j){case 1:o+=g-e.lineWidths[$[i].line];break;case 2:o+=(g-e.lineWidths[$[i].line])/2}Z=$[i].line}K!==$[i].ind&&($[K]&&(o+=$[K].extra),o+=$[i].an/2,K=$[i].ind),o+=S[0]*$[i].an*.005;var oe=0;for(I=0;I<M;I+=1)(A=_[I].a).p.propType&&((F=_[I].s.getMult($[i].anIndexes[I],T.a[I].s.totalChars)).length?oe+=A.p.v[0]*F[0]:oe+=A.p.v[0]*F),A.a.propType&&((F=_[I].s.getMult($[i].anIndexes[I],T.a[I].s.totalChars)).length?oe+=A.a.v[0]*F[0]:oe+=A.a.v[0]*F);for(p=!0,this._pathData.a.v&&(o=.5*$[0].an+(g-this._pathData.f.v-.5*$[0].an-.5*$[$.length-1].an)*K/(n-1),o+=this._pathData.f.v);p;)h+y>=o+oe||!m?(v=(o+oe-h)/l.partialLength,j=u.point[0]+(l.point[0]-u.point[0])*v,L=u.point[1]+(l.point[1]-u.point[1])*v,C.translate(-S[0]*$[i].an*.005,-S[1]*R*.01),p=!1):m&&(h+=l.partialLength,(c+=1)>=m.length&&(c=0,f[d+=1]?m=f[d].points:x.v.c?(c=0,m=f[d=0].points):(h-=l.partialLength,m=null)),m&&(u=l,y=(l=m[c]).partialLength));O=$[i].an/2-$[i].add,C.translate(-O,0,0)}else O=$[i].an/2-$[i].add,C.translate(-O,0,0),C.translate(-S[0]*$[i].an*.005,-S[1]*R*.01,0);for(I=0;I<M;I+=1)(A=_[I].a).t.propType&&(F=_[I].s.getMult($[i].anIndexes[I],T.a[I].s.totalChars),0===r&&0===e.j||(this._hasMaskedPath?F.length?o+=A.t.v*F[0]:o+=A.t.v*F:F.length?r+=A.t.v*F[0]:r+=A.t.v*F));for(e.strokeWidthAnim&&(H=e.sw||0),e.strokeColorAnim&&(N=e.sc?[e.sc[0],e.sc[1],e.sc[2]]:[0,0,0]),e.fillColorAnim&&e.fc&&(z=[e.fc[0],e.fc[1],e.fc[2]]),I=0;I<M;I+=1)(A=_[I].a).a.propType&&((F=_[I].s.getMult($[i].anIndexes[I],T.a[I].s.totalChars)).length?C.translate(-A.a.v[0]*F[0],-A.a.v[1]*F[1],A.a.v[2]*F[2]):C.translate(-A.a.v[0]*F,-A.a.v[1]*F,A.a.v[2]*F));for(I=0;I<M;I+=1)(A=_[I].a).s.propType&&((F=_[I].s.getMult($[i].anIndexes[I],T.a[I].s.totalChars)).length?C.scale(1+(A.s.v[0]-1)*F[0],1+(A.s.v[1]-1)*F[1],1):C.scale(1+(A.s.v[0]-1)*F,1+(A.s.v[1]-1)*F,1));for(I=0;I<M;I+=1){if(A=_[I].a,F=_[I].s.getMult($[i].anIndexes[I],T.a[I].s.totalChars),A.sk.propType&&(F.length?C.skewFromAxis(-A.sk.v*F[0],A.sa.v*F[1]):C.skewFromAxis(-A.sk.v*F,A.sa.v*F)),A.r.propType&&(F.length?C.rotateZ(-A.r.v*F[2]):C.rotateZ(-A.r.v*F)),A.ry.propType&&(F.length?C.rotateY(A.ry.v*F[1]):C.rotateY(A.ry.v*F)),A.rx.propType&&(F.length?C.rotateX(A.rx.v*F[0]):C.rotateX(A.rx.v*F)),A.o.propType&&(F.length?V+=(A.o.v*F[0]-V)*F[0]:V+=(A.o.v*F-V)*F),e.strokeWidthAnim&&A.sw.propType&&(F.length?H+=A.sw.v*F[0]:H+=A.sw.v*F),e.strokeColorAnim&&A.sc.propType)for(G=0;G<3;G+=1)F.length?N[G]+=(A.sc.v[G]-N[G])*F[0]:N[G]+=(A.sc.v[G]-N[G])*F;if(e.fillColorAnim&&e.fc){if(A.fc.propType)for(G=0;G<3;G+=1)F.length?z[G]+=(A.fc.v[G]-z[G])*F[0]:z[G]+=(A.fc.v[G]-z[G])*F;A.fh.propType&&(z=F.length?addHueToRGB(z,A.fh.v*F[0]):addHueToRGB(z,A.fh.v*F)),A.fs.propType&&(z=F.length?addSaturationToRGB(z,A.fs.v*F[0]):addSaturationToRGB(z,A.fs.v*F)),A.fb.propType&&(z=F.length?addBrightnessToRGB(z,A.fb.v*F[0]):addBrightnessToRGB(z,A.fb.v*F))}}for(I=0;I<M;I+=1)(A=_[I].a).p.propType&&(F=_[I].s.getMult($[i].anIndexes[I],T.a[I].s.totalChars),this._hasMaskedPath?F.length?C.translate(0,A.p.v[1]*F[0],-A.p.v[2]*F[1]):C.translate(0,A.p.v[1]*F,-A.p.v[2]*F):F.length?C.translate(A.p.v[0]*F[0],A.p.v[1]*F[1],-A.p.v[2]*F[2]):C.translate(A.p.v[0]*F,A.p.v[1]*F,-A.p.v[2]*F));if(e.strokeWidthAnim&&(W=H<0?0:H),e.strokeColorAnim&&(q="rgb("+Math.round(255*N[0])+","+Math.round(255*N[1])+","+Math.round(255*N[2])+")"),e.fillColorAnim&&e.fc&&(U="rgb("+Math.round(255*z[0])+","+Math.round(255*z[1])+","+Math.round(255*z[2])+")"),this._hasMaskedPath){if(C.translate(0,-e.ls),C.translate(0,S[1]*R*.01+a,0),this._pathData.p.v){b=(l.point[1]-u.point[1])/(l.point[0]-u.point[0]);var le=180*Math.atan(b)/Math.PI;l.point[0]<u.point[0]&&(le+=180),C.rotate(-le*Math.PI/180)}C.translate(j,L,0),o-=S[0]*$[i].an*.005,$[i+1]&&K!==$[i+1].ind&&(o+=$[i].an/2,o+=.001*e.tr*e.finalSize)}else{switch(C.translate(r,a,0),e.ps&&C.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:C.translate($[i].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[$[i].line]),0,0);break;case 2:C.translate($[i].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[$[i].line])/2,0,0)}C.translate(0,-e.ls),C.translate(O,0,0),C.translate(S[0]*$[i].an*.005,S[1]*R*.01,0),r+=$[i].l+.001*e.tr*e.finalSize}"html"===E?ee=C.toCSS():"svg"===E?ee=C.to2dCSS():te=[C.props[0],C.props[1],C.props[2],C.props[3],C.props[4],C.props[5],C.props[6],C.props[7],C.props[8],C.props[9],C.props[10],C.props[11],C.props[12],C.props[13],C.props[14],C.props[15]],Q=V}P<=i?(D=new LetterProps(Q,W,q,U,ee,te),this.renderedLetters.push(D),P+=1,this.lettersChangedFlag=!0):(D=this.renderedLetters[i],this.lettersChangedFlag=D.update(Q,W,q,U,ee,te)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty),ITextElement.prototype.initElement=function(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),(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)},ITextElement.prototype.createPathShape=function(e,t){var r,a,i=t.length,n="";for(r=0;r<i;r+=1)"sh"===t[r].ty&&(a=t[r].ks.k,n+=buildShapeString(a,a.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,a,i){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)}t.translate(a,i,0)},ITextElement.prototype.buildColor=function(e){return"rgb("+Math.round(255*e[0])+","+Math.round(255*e[1])+","+Math.round(255*e[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){};var emptyShapeData={shapes:[]};function SVGTextLottieElement(e,t,r){this.textSpans=[],this.renderType="svg",this.initElement(e,t,r)}function ISolidElement(e,t,r){this.initElement(e,t,r)}function NullElement(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initFrame(),this.initTransform(e,t,r),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}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}}function SVGRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var r="";if(t&&t.title){var a=createNS("title"),i=createElementID();a.setAttribute("id",i),a.textContent=t.title,this.svgElement.appendChild(a),r+=i}if(t&&t.description){var n=createNS("desc"),s=createElementID();n.setAttribute("id",s),n.textContent=t.description,this.svgElement.appendChild(n),r+=" "+s}r&&this.svgElement.setAttribute("aria-labelledby",r);var o=createNS("defs");this.svgElement.appendChild(o);var l=createNS("g");this.svgElement.appendChild(l),this.layerElement=l,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&&!1===t.hideOnTransparent),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},this.globalData={_mdf:!1,frameNum:-1,defs:o,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function CVContextData(){var e;for(this.saved=[],this.cArrPos=0,this.cTr=new Matrix,this.cO=1,this.savedOp=createTypedArray("float32",15),e=0;e<15;e+=1)this.saved[e]=createTypedArray("float32",16);this._length=15}function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}function CVEffects(){}function CVMaskElement(e,t){var r;this.data=e,this.element=t,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var a=this.masksProperties.length,i=!1;for(r=0;r<a;r+=1)"n"!==this.masksProperties[r].mode&&(i=!0),this.viewData[r]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[r],3);this.hasMasks=i,i&&this.element.addRenderableComponent(this)}function CVBaseElement(){}function CVShapeData(e,t,r,a){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var i,n=4;"rc"===t.ty?n=5:"el"===t.ty?n=6:"sr"===t.ty&&(n=7),this.sh=ShapePropertyFactory.getShapeProp(e,t,n,e);var s,o=r.length;for(i=0;i<o;i+=1)r[i].closed||(s={transforms:a.addTransformSequence(r[i].transforms),trNodes:[]},this.styledShapes.push(s),r[i].elements.push(s))}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)}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)}function CVImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.img=t.imageLoader.getAsset(this.assetData),this.initElement(e,t,r)}function CVSolidElement(e,t,r){this.initElement(e,t,r)}function CanvasRendererBase(e,t){this.animationItem=e,this.renderConfig={clearCanvas:!t||void 0===t.clearCanvas||t.clearCanvas,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||""},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"}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}}function CanvasRenderer(e,t){this.animationItem=e,this.renderConfig={clearCanvas:!t||void 0===t.clearCanvas||t.clearCanvas,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||""},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"}function HBaseElement(){}function HSolidElement(e,t,r){this.initElement(e,t,r)}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}}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)}function HCameraElement(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initHierarchy();var a=PropertyFactory.getProp;if(this.pe=a(this,e.pe,0,0,this),e.ks.p.s?(this.px=a(this,e.ks.p.x,1,0,this),this.py=a(this,e.ks.p.y,1,0,this),this.pz=a(this,e.ks.p.z,1,0,this)):this.p=a(this,e.ks.p,1,0,this),e.ks.a&&(this.a=a(this,e.ks.a,1,0,this)),e.ks.or.k.length&&e.ks.or.k[0].to){var i,n=e.ks.or.k.length;for(i=0;i<n;i+=1)e.ks.or.k[i].to=null,e.ks.or.k[i].ti=null}this.or=a(this,e.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=a(this,e.ks.rx,0,degToRads,this),this.ry=a(this,e.ks.ry,0,degToRads,this),this.rz=a(this,e.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}function HImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.initElement(e,t,r)}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&&!1===t.hideOnTransparent),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"}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}}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&&!1===t.hideOnTransparent),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([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,a=[],i="";t<r;)e[t]===String.fromCharCode(13)||e[t]===String.fromCharCode(3)?(a.push(i),i=""):i+=e[t],t+=1;return a.push(i),a},SVGTextLottieElement.prototype.buildShapeData=function(e,t){if(e.shapes&&e.shapes.length){var r=e.shapes[0];if(r.it){var a=r.it[r.it.length-1];a.s&&(a.s.k[0]=t,a.s.k[1]=t)}}return e},SVGTextLottieElement.prototype.buildNewText=function(){var e,t;this.addDynamicProperty(this);var r=this.textProperty.currentData;this.renderedLetters=createSizedArray(r?r.l.length:0),r.fc?this.layerElement.setAttribute("fill",this.buildColor(r.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),r.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(r.sc)),this.layerElement.setAttribute("stroke-width",r.sw)),this.layerElement.setAttribute("font-size",r.finalSize);var a=this.globalData.fontManager.getFontByName(r.f);if(a.fClass)this.layerElement.setAttribute("class",a.fClass);else{this.layerElement.setAttribute("font-family",a.fFamily);var i=r.fWeight,n=r.fStyle;this.layerElement.setAttribute("font-style",n),this.layerElement.setAttribute("font-weight",i)}this.layerElement.setAttribute("aria-label",r.t);var s,o=r.l||[],l=!!this.globalData.fontManager.chars;t=o.length;var h=this.mHelper,p=this.data.singleShape,c=0,d=0,u=!0,m=.001*r.tr*r.finalSize;if(!p||l||r.sz){var f,y=this.textSpans.length;for(e=0;e<t;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!l||!p||0===e){if(s=y>e?this.textSpans[e].span:createNS(l?"g":"text"),y<=e){if(s.setAttribute("stroke-linecap","butt"),s.setAttribute("stroke-linejoin","round"),s.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=s,l){var g=createNS("g");s.appendChild(g),this.textSpans[e].childSpan=g}this.textSpans[e].span=s,this.layerElement.appendChild(s)}s.style.display="inherit"}if(h.reset(),p&&(o[e].n&&(c=-m,d+=r.yOffset,d+=u?1:0,u=!1),this.applyTextPropertiesToMatrix(r,h,o[e].line,c,d),c+=o[e].l||0,c+=m),l){var v;if(1===(f=this.globalData.fontManager.getCharData(r.finalText[e],a.fStyle,this.globalData.fontManager.getFontByName(r.f).fFamily)).t)v=new SVGCompElement(f.data,this.globalData,this);else{var b=emptyShapeData;f.data&&f.data.shapes&&(b=this.buildShapeData(f.data,r.finalSize)),v=new SVGShapeElement(b,this.globalData,this)}if(this.textSpans[e].glyph){var x=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(x.layerElement),x.destroy()}this.textSpans[e].glyph=v,v._debug=!0,v.prepareFrame(0),v.renderFrame(),this.textSpans[e].childSpan.appendChild(v.layerElement),1===f.t&&this.textSpans[e].childSpan.setAttribute("transform","scale("+r.finalSize/100+","+r.finalSize/100+")")}else p&&s.setAttribute("transform","translate("+h.props[12]+","+h.props[13]+")"),s.textContent=o[e].val,s.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}p&&s&&s.setAttribute("d","")}else{var S=this.textContainer,_="start";switch(r.j){case 1:_="end";break;case 2:_="middle";break;default:_="start"}S.setAttribute("text-anchor",_),S.setAttribute("letter-spacing",m);var T=this.buildTextContents(r.finalText);for(t=T.length,d=r.ps?r.ps[1]+r.ascent:0,e=0;e<t;e+=1)(s=this.textSpans[e].span||createNS("tspan")).textContent=T[e],s.setAttribute("x",0),s.setAttribute("y",d),s.style.display="inherit",S.appendChild(s),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=s,d+=r.finalLineHeight;this.layerElement.appendChild(S)}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,r=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<r;e+=1)(t=this.textSpans[e].glyph)&&(t.prepareFrame(this.comp.renderedFrame-this.data.st),t._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if((!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var e,t;this._sizeChanged=!0;var r,a,i,n=this.textAnimator.renderedLetters,s=this.textProperty.currentData.l;for(t=s.length,e=0;e<t;e+=1)s[e].n||(r=n[e],a=this.textSpans[e].span,(i=this.textSpans[e].glyph)&&i.renderFrame(),r._mdf.m&&a.setAttribute("transform",r.m),r._mdf.o&&a.setAttribute("opacity",r.o),r._mdf.sw&&a.setAttribute("stroke-width",r.sw),r._mdf.sc&&a.setAttribute("stroke",r.sc),r._mdf.fc&&a.setAttribute("fill",r.fc))}},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)},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),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.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),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var t=this.globalData.defs;this.setupGlobalData(e,t),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var r=createNS("clipPath"),a=createNS("rect");a.setAttribute("width",e.w),a.setAttribute("height",e.h),a.setAttribute("x",0),a.setAttribute("y",0);var i=createElementID();r.setAttribute("id",i),r.appendChild(a),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+i+")"),t.appendChild(r),this.layers=e.layers,this.elements=createSizedArray(e.layers.length)},SVGRendererBase.prototype.destroy=function(){var e;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&99!==this.layers[e].ty){t[e]=!0;var r=this.createItem(this.layers[e]);t[e]=r,getExpressionsPlugin()&&(0===this.layers[e].ty&&this.globalData.projectInterface.registerComposition(r),r.initExpressions()),this.appendElementInPos(r,e),this.layers[e].tt&&(this.elements[e-1]&&!0!==this.elements[e-1]?r.setMatte(t[e-1].layerId):(this.buildItem(e-1),this.addPendingElement(r)))}},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){e.setMatte(this.elements[t-1].layerId);break}t+=1}}},SVGRendererBase.prototype.renderFrame=function(e){if(this.renderedFrame!==e&&!this.destroyed){var t;null===e?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var 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 a,i=0;i<t;)this.elements[i]&&!0!==this.elements[i]&&this.elements[i].getBaseElement()&&(a=this.elements[i].getBaseElement()),i+=1;a?this.layerElement.insertBefore(r,a):this.layerElement.appendChild(r)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(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,a=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),r=a-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()},extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)},extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)},CVContextData.prototype.duplicate=function(){var e=2*this._length,t=this.savedOp;this.savedOp=createTypedArray("float32",e),this.savedOp.set(t);var r=0;for(r=this._length;r<e;r+=1)this.saved[r]=createTypedArray("float32",16);this._length=e},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.cO=1},ShapeTransformManager.prototype={addTransformSequence:function(e){var t,r=e.length,a="_";for(t=0;t<r;t+=1)a+=e[t].transform.key+"_";var i=this.sequences[a];return i||(i={transforms:[].concat(e),finalTransform:new Matrix,_mdf:!1},this.sequences[a]=i,this.sequenceList.push(i)),i},processSequence:function(e,t){for(var r,a=0,i=e.transforms.length,n=t;a<i&&!t;){if(e.transforms[a].transform.mProps._mdf){n=!0;break}a+=1}if(n)for(e.finalTransform.reset(),a=i-1;a>=0;a-=1)r=e.transforms[a].transform.mProps.v.props,e.finalTransform.transform(r[0],r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15]);e._mdf=n},processSequences:function(e){var t,r=this.sequenceList.length;for(t=0;t<r;t+=1)this.processSequence(this.sequenceList[t],e)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}},CVEffects.prototype.renderFrame=function(){},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var e,t,r,a,i=this.element.finalTransform.mat,n=this.element.canvasContext,s=this.masksProperties.length;for(n.beginPath(),e=0;e<s;e+=1)if("n"!==this.masksProperties[e].mode){var o;this.masksProperties[e].inv&&(n.moveTo(0,0),n.lineTo(this.element.globalData.compSize.w,0),n.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),n.lineTo(0,this.element.globalData.compSize.h),n.lineTo(0,0)),a=this.viewData[e].v,t=i.applyToPointArray(a.v[0][0],a.v[0][1],0),n.moveTo(t[0],t[1]);var l=a._length;for(o=1;o<l;o+=1)r=i.applyToTriplePoints(a.o[o-1],a.i[o],a.v[o]),n.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5]);r=i.applyToTriplePoints(a.o[o-1],a.i[0],a.v[0]),n.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5])}this.element.globalData.renderer.save(!0),n.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null},CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){this.canvasContext=this.globalData.canvasContext,this.renderableEffectsManager=new CVEffects},createContent:function(){},setBlendMode:function(){var e=this.globalData;if(e.blendMode!==this.data.bm){e.blendMode=this.data.bm;var t=getBlendMode(this.data.bm);e.canvasContext.globalCompositeOperation=t}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this)},hideElement:function(){this.hidden||this.isInRange&&!this.isTransparent||(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},renderFrame:function(){if(!this.hidden&&!this.data.hd){this.renderTransform(),this.renderRenderable(),this.setBlendMode();var e=0===this.data.ty;this.globalData.renderer.save(e),this.globalData.renderer.ctxTransform(this.finalTransform.mat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.mProp.o.v),this.renderInnerContent(),this.globalData.renderer.restore(e),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement,CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated,extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(e,t){var r={data:e,type:e.ty,preTransforms:this.transformsManager.addTransformSequence(t),transforms:[],elements:[],closed:!0===e.hd},a={};if("fl"===e.ty||"st"===e.ty?(a.c=PropertyFactory.getProp(this,e.c,1,255,this),a.c.k||(r.co="rgb("+bmFloor(a.c.v[0])+","+bmFloor(a.c.v[1])+","+bmFloor(a.c.v[2])+")")):"gf"!==e.ty&&"gs"!==e.ty||(a.s=PropertyFactory.getProp(this,e.s,1,null,this),a.e=PropertyFactory.getProp(this,e.e,1,null,this),a.h=PropertyFactory.getProp(this,e.h||{k:0},0,.01,this),a.a=PropertyFactory.getProp(this,e.a||{k:0},0,degToRads,this),a.g=new GradientProperty(this,e.g,this)),a.o=PropertyFactory.getProp(this,e.o,0,.01,this),"st"===e.ty||"gs"===e.ty){if(r.lc=lineCapEnum[e.lc||2],r.lj=lineJoinEnum[e.lj||2],1==e.lj&&(r.ml=e.ml),a.w=PropertyFactory.getProp(this,e.w,0,null,this),a.w.k||(r.wi=a.w.v),e.d){var i=new DashProperty(this,e.d,"canvas",this);a.d=i,a.d.k||(r.da=a.d.dashArray,r.do=a.d.dashoffset[0])}}else r.r=2===e.r?"evenodd":"nonzero";return this.stylesList.push(r),a.style=r,a},CVShapeElement.prototype.createGroupElement=function(){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(e){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,e.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,e,this)}}},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(){var e;this._isFirstFrame=!0;var 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,a,i){var n,s,o,l,h,p,c=e.length-1,d=[],u=[],m=[].concat(i);for(n=c;n>=0;n-=1){if((l=this.searchProcessedElement(e[n]))?t[n]=r[l-1]:e[n]._shouldRender=a,"fl"===e[n].ty||"st"===e[n].ty||"gf"===e[n].ty||"gs"===e[n].ty)l?t[n].style.closed=!1:t[n]=this.createStyleElement(e[n],m),d.push(t[n].style);else if("gr"===e[n].ty){if(l)for(o=t[n].it.length,s=0;s<o;s+=1)t[n].prevViewData[s]=t[n].it[s];else t[n]=this.createGroupElement(e[n]);this.searchShapes(e[n].it,t[n].it,t[n].prevViewData,a,m)}else"tr"===e[n].ty?(l||(p=this.createTransformElement(e[n]),t[n]=p),m.push(t[n]),this.addTransformToStyleList(t[n])):"sh"===e[n].ty||"rc"===e[n].ty||"el"===e[n].ty||"sr"===e[n].ty?l||(t[n]=this.createShapeElement(e[n])):"tm"===e[n].ty||"rd"===e[n].ty||"pb"===e[n].ty?(l?(h=t[n]).closed=!1:((h=ShapeModifiers.getModifier(e[n].ty)).init(this,e[n]),t[n]=h,this.shapeModifiers.push(h)),u.push(h)):"rp"===e[n].ty&&(l?(h=t[n]).closed=!0:(h=ShapeModifiers.getModifier(e[n].ty),t[n]=h,h.init(this,e,n,t),this.shapeModifiers.push(h),a=!1),u.push(h));this.addProcessedElement(e[n],n+1)}for(this.removeTransformFromStyleList(),this.closeStyles(d),c=u.length,n=0;n<c;n+=1)u[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,r,a,i,n,s,o,l,h=this.stylesList.length,p=this.globalData.renderer,c=this.globalData.canvasContext;for(e=0;e<h;e+=1)if(("st"!==(o=(l=this.stylesList[e]).type)&&"gs"!==o||0!==l.wi)&&l.data._shouldRender&&0!==l.coOp&&0!==this.globalData.currentGlobalAlpha){for(p.save(),n=l.elements,"st"===o||"gs"===o?(c.strokeStyle="st"===o?l.co:l.grd,c.lineWidth=l.wi,c.lineCap=l.lc,c.lineJoin=l.lj,c.miterLimit=l.ml||0):c.fillStyle="fl"===o?l.co:l.grd,p.ctxOpacity(l.coOp),"st"!==o&&"gs"!==o&&c.beginPath(),p.ctxTransform(l.preTransforms.finalTransform.props),r=n.length,t=0;t<r;t+=1){for("st"!==o&&"gs"!==o||(c.beginPath(),l.da&&(c.setLineDash(l.da),c.lineDashOffset=l.do)),i=(s=n[t].trNodes).length,a=0;a<i;a+=1)"m"===s[a].t?c.moveTo(s[a].p[0],s[a].p[1]):"c"===s[a].t?c.bezierCurveTo(s[a].pts[0],s[a].pts[1],s[a].pts[2],s[a].pts[3],s[a].pts[4],s[a].pts[5]):c.closePath();"st"!==o&&"gs"!==o||(c.stroke(),l.da&&c.setLineDash(this.dashResetter))}"st"!==o&&"gs"!==o&&c.fill(l.r),p.restore()}},CVShapeElement.prototype.renderShape=function(e,t,r,a){var i,n;for(n=e,i=t.length-1;i>=0;i-=1)"tr"===t[i].ty?(n=r[i].transform,this.renderShapeTransform(e,n)):"sh"===t[i].ty||"el"===t[i].ty||"rc"===t[i].ty||"sr"===t[i].ty?this.renderPath(t[i],r[i]):"fl"===t[i].ty?this.renderFill(t[i],r[i],n):"st"===t[i].ty?this.renderStroke(t[i],r[i],n):"gf"===t[i].ty||"gs"===t[i].ty?this.renderGradientFill(t[i],r[i],n):"gr"===t[i].ty?this.renderShape(n,t[i].it,r[i].it):t[i].ty;a&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,t){if(this._isFirstFrame||t._mdf||e.transforms._mdf){var r,a,i,n=e.trNodes,s=t.paths,o=s._length;n.length=0;var l=e.transforms.finalTransform;for(i=0;i<o;i+=1){var h=s.shapes[i];if(h&&h.v){for(a=h._length,r=1;r<a;r+=1)1===r&&n.push({t:"m",p:l.applyToPointArray(h.v[0][0],h.v[0][1],0)}),n.push({t:"c",pts:l.applyToTriplePoints(h.o[r-1],h.i[r],h.v[r])});1===a&&n.push({t:"m",p:l.applyToPointArray(h.v[0][0],h.v[0][1],0)}),h.c&&a&&(n.push({t:"c",pts:l.applyToTriplePoints(h.o[r-1],h.i[0],h.v[0])}),n.push({t:"z"}))}}e.trNodes=n}},CVShapeElement.prototype.renderPath=function(e,t){if(!0!==e.hd&&e._shouldRender){var r,a=t.styledShapes.length;for(r=0;r<a;r+=1)this.renderStyledShape(t.styledShapes[r],t.sh)}},CVShapeElement.prototype.renderFill=function(e,t,r){var a=t.style;(t.c._mdf||this._isFirstFrame)&&(a.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r._opMdf||this._isFirstFrame)&&(a.coOp=t.o.v*r.opacity)},CVShapeElement.prototype.renderGradientFill=function(e,t,r){var a,i=t.style;if(!i.grd||t.g._mdf||t.s._mdf||t.e._mdf||1!==e.t&&(t.h._mdf||t.a._mdf)){var n,s=this.globalData.canvasContext,o=t.s.v,l=t.e.v;if(1===e.t)a=s.createLinearGradient(o[0],o[1],l[0],l[1]);else{var h=Math.sqrt(Math.pow(o[0]-l[0],2)+Math.pow(o[1]-l[1],2)),p=Math.atan2(l[1]-o[1],l[0]-o[0]),c=t.h.v;c>=1?c=.99:c<=-1&&(c=-.99);var d=h*c,u=Math.cos(p+t.a.v)*d+o[0],m=Math.sin(p+t.a.v)*d+o[1];a=s.createRadialGradient(u,m,0,o[0],o[1],h)}var f=e.g.p,y=t.g.c,g=1;for(n=0;n<f;n+=1)t.g._hasOpacity&&t.g._collapsable&&(g=t.g.o[2*n+1]),a.addColorStop(y[4*n]/100,"rgba("+y[4*n+1]+","+y[4*n+2]+","+y[4*n+3]+","+g+")");i.grd=a}i.coOp=t.o.v*r.opacity},CVShapeElement.prototype.renderStroke=function(e,t,r){var a=t.style,i=t.d;i&&(i._mdf||this._isFirstFrame)&&(a.da=i.dashArray,a.do=i.dashoffset[0]),(t.c._mdf||this._isFirstFrame)&&(a.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r._opMdf||this._isFirstFrame)&&(a.coOp=t.o.v*r.opacity),(t.w._mdf||this._isFirstFrame)&&(a.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},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 a,i,n,s,o,l,h,p,c,d,u,m,f=this.globalData.fontManager.getFontByName(e.f),y=e.l,g=this.mHelper;this.stroke=r,this.values.fValue=e.finalSize+"px "+this.globalData.fontManager.getFontByName(e.f).fFamily,i=e.finalText.length;var v=this.data.singleShape,b=.001*e.tr*e.finalSize,x=0,S=0,_=!0,T=0;for(a=0;a<i;a+=1){s=(n=this.globalData.fontManager.getCharData(e.finalText[a],f.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily))&&n.data||{},g.reset(),v&&y[a].n&&(x=-b,S+=e.yOffset,S+=_?1:0,_=!1),c=(h=s.shapes?s.shapes[0].it:[]).length,g.scale(e.finalSize/100,e.finalSize/100),v&&this.applyTextPropertiesToMatrix(e,g,y[a].line,x,S),u=createSizedArray(c-1);var C=0;for(p=0;p<c;p+=1)if("sh"===h[p].ty){for(l=h[p].ks.k.i.length,d=h[p].ks.k,m=[],o=1;o<l;o+=1)1===o&&m.push(g.applyToX(d.v[0][0],d.v[0][1],0),g.applyToY(d.v[0][0],d.v[0][1],0)),m.push(g.applyToX(d.o[o-1][0],d.o[o-1][1],0),g.applyToY(d.o[o-1][0],d.o[o-1][1],0),g.applyToX(d.i[o][0],d.i[o][1],0),g.applyToY(d.i[o][0],d.i[o][1],0),g.applyToX(d.v[o][0],d.v[o][1],0),g.applyToY(d.v[o][0],d.v[o][1],0));m.push(g.applyToX(d.o[o-1][0],d.o[o-1][1],0),g.applyToY(d.o[o-1][0],d.o[o-1][1],0),g.applyToX(d.i[0][0],d.i[0][1],0),g.applyToY(d.i[0][0],d.i[0][1],0),g.applyToX(d.v[0][0],d.v[0][1],0),g.applyToY(d.v[0][0],d.v[0][1],0)),u[C]=m,C+=1}v&&(x+=y[a].l,x+=b),this.textSpans[T]?this.textSpans[T].elem=u:this.textSpans[T]={elem:u},T+=1}},CVTextElement.prototype.renderInnerContent=function(){var e,t,r,a,i,n,s=this.canvasContext;s.font=this.values.fValue,s.lineCap="butt",s.lineJoin="miter",s.miterLimit=4,this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var o,l=this.textAnimator.renderedLetters,h=this.textProperty.currentData.l;t=h.length;var p,c,d=null,u=null,m=null;for(e=0;e<t;e+=1)if(!h[e].n){if((o=l[e])&&(this.globalData.renderer.save(),this.globalData.renderer.ctxTransform(o.p),this.globalData.renderer.ctxOpacity(o.o)),this.fill){for(o&&o.fc?d!==o.fc&&(d=o.fc,s.fillStyle=o.fc):d!==this.values.fill&&(d=this.values.fill,s.fillStyle=this.values.fill),a=(p=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),r=0;r<a;r+=1)for(n=(c=p[r]).length,this.globalData.canvasContext.moveTo(c[0],c[1]),i=2;i<n;i+=6)this.globalData.canvasContext.bezierCurveTo(c[i],c[i+1],c[i+2],c[i+3],c[i+4],c[i+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.fill()}if(this.stroke){for(o&&o.sw?m!==o.sw&&(m=o.sw,s.lineWidth=o.sw):m!==this.values.sWidth&&(m=this.values.sWidth,s.lineWidth=this.values.sWidth),o&&o.sc?u!==o.sc&&(u=o.sc,s.strokeStyle=o.sc):u!==this.values.stroke&&(u=this.values.stroke,s.strokeStyle=this.values.stroke),a=(p=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),r=0;r<a;r+=1)for(n=(c=p[r]).length,this.globalData.canvasContext.moveTo(c[0],c[1]),i=2;i<n;i+=6)this.globalData.canvasContext.bezierCurveTo(c[i],c[i+1],c[i+2],c[i+3],c[i+4],c[i+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.stroke()}o&&this.globalData.renderer.restore()}},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var e=createTag("canvas");e.width=this.assetData.w,e.height=this.assetData.h;var t,r,a=e.getContext("2d"),i=this.img.width,n=this.img.height,s=i/n,o=this.assetData.w/this.assetData.h,l=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;s>o&&"xMidYMid slice"===l||s<o&&"xMidYMid slice"!==l?t=(r=n)*o:r=(t=i)/o,a.drawImage(this.img,(i-t)/2,(n-r)/2,t,r,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},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){var e=this.canvasContext;e.fillStyle=this.data.sc,e.fillRect(0,0,this.data.sw,this.data.sh)},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){if(1!==e[0]||0!==e[1]||0!==e[4]||1!==e[5]||0!==e[12]||0!==e[13])if(this.renderConfig.clearCanvas){this.transformMat.cloneFromProps(e);var t=this.contextData.cTr.props;this.transformMat.transform(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]),this.contextData.cTr.cloneFromProps(this.transformMat.props);var r=this.contextData.cTr.props;this.canvasContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13])}else this.canvasContext.transform(e[0],e[1],e[4],e[5],e[12],e[13])},CanvasRendererBase.prototype.ctxOpacity=function(e){if(!this.renderConfig.clearCanvas)return this.canvasContext.globalAlpha*=e<0?0:e,void(this.globalData.currentGlobalAlpha=this.contextData.cO);this.contextData.cO*=e<0?0:e,this.globalData.currentGlobalAlpha!==this.contextData.cO&&(this.canvasContext.globalAlpha=this.contextData.cO,this.globalData.currentGlobalAlpha=this.contextData.cO)},CanvasRendererBase.prototype.reset=function(){this.renderConfig.clearCanvas?this.contextData.reset():this.canvasContext.restore()},CanvasRendererBase.prototype.save=function(e){if(this.renderConfig.clearCanvas){e&&this.canvasContext.save();var t,r=this.contextData.cTr.props;this.contextData._length<=this.contextData.cArrPos&&this.contextData.duplicate();var a=this.contextData.saved[this.contextData.cArrPos];for(t=0;t<16;t+=1)a[t]=r[t];this.contextData.savedOp[this.contextData.cArrPos]=this.contextData.cO,this.contextData.cArrPos+=1}else this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(e){if(this.renderConfig.clearCanvas){e&&(this.canvasContext.restore(),this.globalData.blendMode="source-over"),this.contextData.cArrPos-=1;var t,r=this.contextData.saved[this.contextData.cArrPos],a=this.contextData.cTr.props;for(t=0;t<16;t+=1)a[t]=r[t];this.canvasContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13]),r=this.contextData.savedOp[this.contextData.cArrPos],this.contextData.cO=r,this.globalData.currentGlobalAlpha!==r&&(this.canvasContext.globalAlpha=r,this.globalData.currentGlobalAlpha=r)}else this.canvasContext.restore()},CanvasRendererBase.prototype.configAnimation=function(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.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(){var e,t,r,a;if(this.reset(),this.animationItem.wrapper&&this.animationItem.container?(e=this.animationItem.wrapper.offsetWidth,t=this.animationItem.wrapper.offsetHeight,this.animationItem.container.setAttribute("width",e*this.renderConfig.dpr),this.animationItem.container.setAttribute("height",t*this.renderConfig.dpr)):(e=this.canvasContext.canvas.width*this.renderConfig.dpr,t=this.canvasContext.canvas.height*this.renderConfig.dpr),-1!==this.renderConfig.preserveAspectRatio.indexOf("meet")||-1!==this.renderConfig.preserveAspectRatio.indexOf("slice")){var i=this.renderConfig.preserveAspectRatio.split(" "),n=i[1]||"meet",s=i[0]||"xMidYMid",o=s.substr(0,4),l=s.substr(4);r=e/t,(a=this.transformCanvas.w/this.transformCanvas.h)>r&&"meet"===n||a<r&&"slice"===n?(this.transformCanvas.sx=e/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=e/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=t/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=t/(this.transformCanvas.h/this.renderConfig.dpr)),this.transformCanvas.tx="xMid"===o&&(a<r&&"meet"===n||a>r&&"slice"===n)?(e-this.transformCanvas.w*(t/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===o&&(a<r&&"meet"===n||a>r&&"slice"===n)?(e-this.transformCanvas.w*(t/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===l&&(a>r&&"meet"===n||a<r&&"slice"===n)?(t-this.transformCanvas.h*(e/this.transformCanvas.w))/2*this.renderConfig.dpr:"YMax"===l&&(a>r&&"meet"===n||a<r&&"slice"===n)?(t-this.transformCanvas.h*(e/this.transformCanvas.w))*this.renderConfig.dpr:0}else"none"===this.renderConfig.preserveAspectRatio?(this.transformCanvas.sx=e/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=t/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){var e;for(this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),e=(this.layers?this.layers.length:0)-1;e>=0;e-=1)this.elements[e]&&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||!0!==this.renderConfig.clearCanvas||t)&&!this.destroyed&&-1!==e){var r;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 a=this.layers.length;for(this.completeLayers||this.checkLayers(e),r=0;r<a;r+=1)(this.completeLayers||this.elements[r])&&this.elements[r].prepareFrame(e-this.layers[r].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),r=a-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&99!==this.layers[e].ty){var r=this.createItem(this.layers[e],this,this.globalData);t[e]=r,r.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"},extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var e,t=this.canvasContext;for(t.beginPath(),t.moveTo(0,0),t.lineTo(this.data.w,0),t.lineTo(this.data.w,this.data.h),t.lineTo(0,this.data.h),t.lineTo(0,0),t.clip(),e=this.layers.length-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},CVCompElement.prototype.destroy=function(){var e;for(e=this.layers.length-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)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)},HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects,this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0!==this.data.bm&&this.setBlendMode()},renderElement:function(){var e=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var t=this.finalTransform.mat.toCSS();e.transform=t,e.webkitTransform=t}this.finalTransform._opMdf&&(e.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting,extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var e;this.data.hasMask?((e=createNS("rect")).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")).style.width=this.data.sw+"px",e.style.height=this.data.sh+"px",e.style.backgroundColor=this.data.sc),this.layerElement.appendChild(e)},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,a=e.length;for(r=0;r<a;r+=1)t=e[r].mProps.v.applyToPointArray(t[0],t[1],0);return t},HShapeElement.prototype.calculateShapeBoundingBox=function(e,t){var r,a,i,n,s,o=e.sh.v,l=e.transformers,h=o._length;if(!(h<=1)){for(r=0;r<h-1;r+=1)a=this.getTransformedPoint(l,o.v[r]),i=this.getTransformedPoint(l,o.o[r]),n=this.getTransformedPoint(l,o.i[r+1]),s=this.getTransformedPoint(l,o.v[r+1]),this.checkBounds(a,i,n,s,t);o.c&&(a=this.getTransformedPoint(l,o.v[r]),i=this.getTransformedPoint(l,o.o[r]),n=this.getTransformedPoint(l,o.i[0]),s=this.getTransformedPoint(l,o.v[0]),this.checkBounds(a,i,n,s,t))}},HShapeElement.prototype.checkBounds=function(e,t,r,a,i){this.getBoundsOfCurve(e,t,r,a);var n=this.shapeBoundingBox;i.x=bmMin(n.left,i.x),i.xMax=bmMax(n.right,i.xMax),i.y=bmMin(n.top,i.y),i.yMax=bmMax(n.bottom,i.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,a){for(var i,n,s,o,l,h,p,c=[[e[0],a[0]],[e[1],a[1]]],d=0;d<2;++d)n=6*e[d]-12*t[d]+6*r[d],i=-3*e[d]+9*t[d]-9*r[d]+3*a[d],s=3*t[d]-3*e[d],n|=0,s|=0,0==(i|=0)&&0===n||(0===i?(o=-s/n)>0&&o<1&&c[d].push(this.calculateF(o,e,t,r,a,d)):(l=n*n-4*s*i)>=0&&((h=(-n+bmSqrt(l))/(2*i))>0&&h<1&&c[d].push(this.calculateF(h,e,t,r,a,d)),(p=(-n-bmSqrt(l))/(2*i))>0&&p<1&&c[d].push(this.calculateF(p,e,t,r,a,d))));this.shapeBoundingBox.left=bmMin.apply(null,c[0]),this.shapeBoundingBox.top=bmMin.apply(null,c[1]),this.shapeBoundingBox.right=bmMax.apply(null,c[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,c[1])},HShapeElement.prototype.calculateF=function(e,t,r,a,i,n){return bmPow(1-e,3)*t[n]+3*bmPow(1-e,2)*e*r[n]+3*(1-e)*bmPow(e,2)*a[n]+bmPow(e,3)*i[n]},HShapeElement.prototype.calculateBoundingBox=function(e,t){var r,a=e.length;for(r=0;r<a;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 a=0;a<e.keyframes.length;a+=1){var i=e.keyframes[a].s;i>r&&(r=i)}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 a=this.shapeCont.style,i="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";a.transform=i,a.webkitTransform=i}}},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 a,i,n=this.globalData.fontManager.getFontByName(e.f);if(!this.globalData.fontManager.chars)if(t.fontSize=e.finalSize+"px",t.lineHeight=e.finalSize+"px",n.fClass)this.innerElem.className=n.fClass;else{t.fontFamily=n.fFamily;var s=e.fWeight,o=e.fStyle;t.fontStyle=o,t.fontWeight=s}var l,h,p,c=e.l;i=c.length;var d,u=this.mHelper,m="",f=0;for(a=0;a<i;a+=1){if(this.globalData.fontManager.chars?(this.textPaths[f]?l=this.textPaths[f]:((l=createNS("path")).setAttribute("stroke-linecap",lineCapEnum[1]),l.setAttribute("stroke-linejoin",lineJoinEnum[2]),l.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[f]?p=(h=this.textSpans[f]).children[0]:((h=createTag("div")).style.lineHeight=0,(p=createNS("svg")).appendChild(l),styleDiv(h)))):this.isMasked?l=this.textPaths[f]?this.textPaths[f]:createNS("text"):this.textSpans[f]?(h=this.textSpans[f],l=this.textPaths[f]):(styleDiv(h=createTag("span")),styleDiv(l=createTag("span")),h.appendChild(l)),this.globalData.fontManager.chars){var y,g=this.globalData.fontManager.getCharData(e.finalText[a],n.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily);if(y=g?g.data:null,u.reset(),y&&y.shapes&&y.shapes.length&&(d=y.shapes[0].it,u.scale(e.finalSize/100,e.finalSize/100),m=this.createPathShape(u,d),l.setAttribute("d",m)),this.isMasked)this.innerElem.appendChild(l);else{if(this.innerElem.appendChild(h),y&&y.shapes){document.body.appendChild(p);var v=p.getBBox();p.setAttribute("width",v.width+2),p.setAttribute("height",v.height+2),p.setAttribute("viewBox",v.x-1+" "+(v.y-1)+" "+(v.width+2)+" "+(v.height+2));var b=p.style,x="translate("+(v.x-1)+"px,"+(v.y-1)+"px)";b.transform=x,b.webkitTransform=x,c[a].yOffset=v.y-1}else p.setAttribute("width",1),p.setAttribute("height",1);h.appendChild(p)}}else if(l.textContent=c[a].val,l.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(l);else{this.innerElem.appendChild(h);var S=l.style,_="translate3d(0,"+-e.finalSize/1.2+"px,0)";S.transform=_,S.webkitTransform=_}this.isMasked?this.textSpans[f]=l:this.textSpans[f]=h,this.textSpans[f].style.display="block",this.textPaths[f]=l,f+=1}for(;f<this.textSpans.length;)this.textSpans[f].style.display="none",f+=1},HTextElement.prototype.renderInnerContent=function(){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,a,i,n,s,o=0,l=this.textAnimator.renderedLetters,h=this.textProperty.currentData.l;for(a=h.length,r=0;r<a;r+=1)h[r].n?o+=1:(n=this.textSpans[r],s=this.textPaths[r],i=l[o],o+=1,i._mdf.m&&(this.isMasked?n.setAttribute("transform",i.m):(n.style.webkitTransform=i.m,n.style.transform=i.m)),n.style.opacity=i.o,i.sw&&i._mdf.sw&&s.setAttribute("stroke-width",i.sw),i.sc&&i._mdf.sc&&s.setAttribute("stroke",i.sc),i.fc&&i._mdf.fc&&(s.setAttribute("fill",i.fc),s.style.color=i.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var p=this.innerElem.getBBox();if(this.currentBBox.w!==p.width&&(this.currentBBox.w=p.width,this.svgElement.setAttribute("width",p.width)),this.currentBBox.h!==p.height&&(this.currentBBox.h=p.height,this.svgElement.setAttribute("height",p.height)),this.currentBBox.w!==p.width+2||this.currentBBox.h!==p.height+2||this.currentBBox.x!==p.x-1||this.currentBBox.y!==p.y-1){this.currentBBox.w=p.width+2,this.currentBBox.h=p.height+2,this.currentBBox.x=p.x-1,this.currentBBox.y=p.y-1,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),e=this.svgElement.style;var c="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";e.transform=c,e.webkitTransform=c}}}},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var e,t,r,a,i=this.comp.threeDElements.length;for(e=0;e<i;e+=1)if("3d"===(t=this.comp.threeDElements[e]).type){r=t.perspectiveElem.style,a=t.container.style;var n=this.pe.v+"px",s="0px 0px 0px",o="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";r.perspective=n,r.webkitPerspective=n,a.transformOrigin=s,a.mozTransformOrigin=s,a.webkitTransformOrigin=s,r.transform=o,r.webkitTransform=o}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var e,t,r=this._isFirstFrame;if(this.hierarchy)for(t=this.hierarchy.length,e=0;e<t;e+=1)r=this.hierarchy[e].finalTransform.mProp._mdf||r;if(r||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(e=t=this.hierarchy.length-1;e>=0;e-=1){var a=this.hierarchy[e].finalTransform.mProp;this.mat.translate(-a.p.v[0],-a.p.v[1],a.p.v[2]),this.mat.rotateX(-a.or.v[0]).rotateY(-a.or.v[1]).rotateZ(a.or.v[2]),this.mat.rotateX(-a.rx.v).rotateY(-a.ry.v).rotateZ(a.rz.v),this.mat.scale(1/a.s.v[0],1/a.s.v[1],1/a.s.v[2]),this.mat.translate(a.a.v[0],a.a.v[1],a.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var i;i=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var n=Math.sqrt(Math.pow(i[0],2)+Math.pow(i[1],2)+Math.pow(i[2],2)),s=[i[0]/n,i[1]/n,i[2]/n],o=Math.sqrt(s[2]*s[2]+s[0]*s[0]),l=Math.atan2(s[1],o),h=Math.atan2(s[0],-s[2]);this.mat.rotateY(h).rotateX(-l)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var p=!this._prevMat.equals(this.mat);if((p||this.pe._mdf)&&this.comp.threeDElements){var c,d,u;for(t=this.comp.threeDElements.length,e=0;e<t;e+=1)if("3d"===(c=this.comp.threeDElements[e]).type){if(p){var m=this.mat.toCSS();(u=c.container.style).transform=m,u.webkitTransform=m}this.pe._mdf&&((d=c.perspectiveElem.style).perspective=this.pe.v+"px",d.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(e){this.prepareProperties(e,!0)},HCameraElement.prototype.destroy=function(){},HCameraElement.prototype.getBaseElement=function(){return null},extendPrototype([BaseElement,TransformElement,HBaseElement,HSolidElement,HierarchyElement,FrameElement,RenderableElement],HImageElement),HImageElement.prototype.createContent=function(){var 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)},extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},HybridRendererBase.prototype.appendElementInPos=function(e,t){var r=e.getBaseElement();if(r){var a=this.layers[t];if(a.ddd&&this.supports3d)this.addTo3dContainer(r,t);else if(this.threeDElements)this.addTo3dContainer(r,t);else{for(var i,n,s=0;s<t;)this.elements[s]&&!0!==this.elements[s]&&this.elements[s].getBaseElement&&(n=this.elements[s],i=(this.layers[s].ddd?this.getThreeDContainerByPos(s):n.getBaseElement())||i),s+=1;i?a.ddd&&this.supports3d||this.layerElement.insertBefore(r,i):a.ddd&&this.supports3d||this.layerElement.appendChild(r)}}},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,a,i=createTag("div");styleDiv(i);var n=createTag("div");if(styleDiv(n),"3d"===t){(r=i.style).width=this.globalData.compSize.w+"px",r.height=this.globalData.compSize.h+"px";var s="50% 50%";r.webkitTransformOrigin=s,r.mozTransformOrigin=s,r.transformOrigin=s;var o="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(a=n.style).transform=o,a.webkitTransform=o}i.appendChild(n);var l={container:n,perspectiveElem:i,startPos:e,endPos:e,type:t};return this.threeDElements.push(l),l},HybridRendererBase.prototype.build3dContainers=function(){var e,t,r=this.layers.length,a="";for(e=0;e<r;e+=1)this.layers[e].ddd&&3!==this.layers[e].ty?("3d"!==a&&(a="3d",t=this.createThreeDContainer(e,"3d")),t.endPos=Math.max(t.endPos,e)):("2d"!==a&&(a="2d",t=this.createThreeDContainer(e,"2d")),t.endPos=Math.max(t.endPos,e));for(e=(r=this.threeDElements.length)-1;e>=0;e-=1)this.resizerElem.appendChild(this.threeDElements[e].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(e,t){for(var r=0,a=this.threeDElements.length;r<a;){if(t<=this.threeDElements[r].endPos){for(var i,n=this.threeDElements[r].startPos;n<t;)this.elements[n]&&this.elements[n].getBaseElement&&(i=this.elements[n].getBaseElement()),n+=1;i?this.threeDElements[r].container.insertBefore(e,i):this.threeDElements[r].container.appendChild(e);break}r+=1}},HybridRendererBase.prototype.configAnimation=function(e){var t=createTag("div"),r=this.animationItem.wrapper,a=t.style;a.width=e.w+"px",a.height=e.h+"px",this.resizerElem=t,styleDiv(t),a.transformStyle="flat",a.mozTransformStyle="flat",a.webkitTransformStyle="flat",this.renderConfig.className&&t.setAttribute("class",this.renderConfig.className),r.appendChild(t),a.overflow="hidden";var i=createNS("svg");i.setAttribute("width","1"),i.setAttribute("height","1"),styleDiv(i),this.resizerElem.appendChild(i);var n=createNS("defs");i.appendChild(n),this.data=e,this.setupGlobalData(e,i),this.globalData.defs=n,this.layers=e.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){var e;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var e,t,r,a,i=this.animationItem.wrapper.offsetWidth,n=this.animationItem.wrapper.offsetHeight,s=i/n;this.globalData.compSize.w/this.globalData.compSize.h>s?(e=i/this.globalData.compSize.w,t=i/this.globalData.compSize.w,r=0,a=(n-this.globalData.compSize.h*(i/this.globalData.compSize.w))/2):(e=n/this.globalData.compSize.h,t=n/this.globalData.compSize.h,r=(i-this.globalData.compSize.w*(n/this.globalData.compSize.h))/2,a=0);var o=this.resizerElem.style;o.webkitTransform="matrix3d("+e+",0,0,0,0,"+t+",0,0,0,0,1,0,"+r+","+a+",0,1)",o.transform=o.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var e,t=this.globalData.compSize.w,r=this.globalData.compSize.h,a=this.threeDElements.length;for(e=0;e<a;e+=1){var i=this.threeDElements[e].perspectiveElem.style;i.webkitPerspective=Math.sqrt(Math.pow(t,2)+Math.pow(r,2))+"px",i.perspective=i.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(e){var t,r=e.length,a=createTag("div");for(t=0;t<r;t+=1)if(e[t].xt){var i=this.createComp(e[t],a,this.globalData.comp,null);i.initExpressions(),this.globalData.projectInterface.registerComposition(i)}},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,a=0;a<t;)this.elements[a]&&this.elements[a].getBaseElement&&(r=this.elements[a].getBaseElement()),a+=1;r?this.layerElement.insertBefore(e,r):this.layerElement.appendChild(e)},HCompElement.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)},extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};var Expressions=function(){var e={initExpressions:function(e){var t=0,r=[];e.renderer.compInterface=CompExpressionInterface(e.renderer),e.renderer.globalData.projectInterface.registerComposition(e.renderer),e.renderer.globalData.pushExpression=function(){t+=1},e.renderer.globalData.popExpression=function(){0==(t-=1)&&function(){var e,t=r.length;for(e=0;e<t;e+=1)r[e].release();r.length=0}()},e.renderer.globalData.registerExpressionProperty=function(e){-1===r.indexOf(e)&&r.push(e)}}};return e}();function _typeof$1(e){return _typeof$1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$1(e)}function seedRandom(e,t){var r=this,a=256,i=t.pow(a,6),n=t.pow(2,52),s=2*n,o=255;function l(e){var t,r=e.length,i=this,n=0,s=i.i=i.j=0,l=i.S=[];for(r||(e=[r++]);n<a;)l[n]=n++;for(n=0;n<a;n++)l[n]=l[s=o&s+e[n%r]+(t=l[n])],l[s]=t;i.g=function(e){for(var t,r=0,n=i.i,s=i.j,l=i.S;e--;)t=l[n=o&n+1],r=r*a+l[o&(l[n]=l[s=o&s+t])+(l[s]=t)];return i.i=n,i.j=s,r}}function h(e,t){return t.i=e.i,t.j=e.j,t.S=e.S.slice(),t}function p(e,t){var r,a=[],i=_typeof$1(e);if(t&&"object"==i)for(r in e)try{a.push(p(e[r],t-1))}catch(e){}return a.length?a:"string"==i?e:e+"\0"}function c(e,t){for(var r,a=e+"",i=0;i<a.length;)t[o&i]=o&(r^=19*t[o&i])+a.charCodeAt(i++);return d(t)}function d(e){return String.fromCharCode.apply(0,e)}t.seedrandom=function(o,u,m){var f=[],y=c(p((u=!0===u?{entropy:!0}:u||{}).entropy?[o,d(e)]:null===o?function(){try{var t=new Uint8Array(a);return(r.crypto||r.msCrypto).getRandomValues(t),d(t)}catch(t){var i=r.navigator,n=i&&i.plugins;return[+new Date,r,n,r.screen,d(e)]}}():o,3),f),g=new l(f),v=function(){for(var e=g.g(6),t=i,r=0;e<n;)e=(e+r)*a,t*=a,r=g.g(1);for(;e>=s;)e/=2,t/=2,r>>>=1;return(e+r)/t};return v.int32=function(){return 0|g.g(4)},v.quick=function(){return g.g(4)/4294967296},v.double=v,c(d(g.S),e),(u.pass||m||function(e,r,a,i){return i&&(i.S&&h(i,g),e.state=function(){return h(g,{})}),a?(t.random=e,r):e})(v,y,"global"in u?u.global:this==t,u.state)},c(t.random(),e)}function initialize$2(e){seedRandom([],e)}var propTypes={SHAPE:"shape"};function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null;function $bm_isInstanceOfArray(e){return e.constructor===Array||e.constructor===Float32Array}function isNumerable(e,t){return"number"===e||"boolean"===e||"string"===e||t instanceof Number}function $bm_neg(e){var t=_typeof(e);if("number"===t||"boolean"===t||e instanceof Number)return-e;if($bm_isInstanceOfArray(e)){var r,a=e.length,i=[];for(r=0;r<a;r+=1)i[r]=-e[r];return i}return e.propType?e.v:-e}initialize$2(BMMath);var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(e,t){var r=_typeof(e),a=_typeof(t);if("string"===r||"string"===a)return e+t;if(isNumerable(r,e)&&isNumerable(a,t))return e+t;if($bm_isInstanceOfArray(e)&&isNumerable(a,t))return(e=e.slice(0))[0]+=t,e;if(isNumerable(r,e)&&$bm_isInstanceOfArray(t))return(t=t.slice(0))[0]=e+t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var i=0,n=e.length,s=t.length,o=[];i<n||i<s;)("number"==typeof e[i]||e[i]instanceof Number)&&("number"==typeof t[i]||t[i]instanceof Number)?o[i]=e[i]+t[i]:o[i]=void 0===t[i]?e[i]:e[i]||t[i],i+=1;return o}return 0}var add=sum;function sub(e,t){var r=_typeof(e),a=_typeof(t);if(isNumerable(r,e)&&isNumerable(a,t))return"string"===r&&(e=parseInt(e,10)),"string"===a&&(t=parseInt(t,10)),e-t;if($bm_isInstanceOfArray(e)&&isNumerable(a,t))return(e=e.slice(0))[0]-=t,e;if(isNumerable(r,e)&&$bm_isInstanceOfArray(t))return(t=t.slice(0))[0]=e-t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var i=0,n=e.length,s=t.length,o=[];i<n||i<s;)("number"==typeof e[i]||e[i]instanceof Number)&&("number"==typeof t[i]||t[i]instanceof Number)?o[i]=e[i]-t[i]:o[i]=void 0===t[i]?e[i]:e[i]||t[i],i+=1;return o}return 0}function mul(e,t){var r,a,i,n=_typeof(e),s=_typeof(t);if(isNumerable(n,e)&&isNumerable(s,t))return e*t;if($bm_isInstanceOfArray(e)&&isNumerable(s,t)){for(i=e.length,r=createTypedArray("float32",i),a=0;a<i;a+=1)r[a]=e[a]*t;return r}if(isNumerable(n,e)&&$bm_isInstanceOfArray(t)){for(i=t.length,r=createTypedArray("float32",i),a=0;a<i;a+=1)r[a]=e*t[a];return r}return 0}function div(e,t){var r,a,i,n=_typeof(e),s=_typeof(t);if(isNumerable(n,e)&&isNumerable(s,t))return e/t;if($bm_isInstanceOfArray(e)&&isNumerable(s,t)){for(i=e.length,r=createTypedArray("float32",i),a=0;a<i;a+=1)r[a]=e[a]/t;return r}if(isNumerable(n,e)&&$bm_isInstanceOfArray(t)){for(i=t.length,r=createTypedArray("float32",i),a=0;a<i;a+=1)r[a]=e/t[a];return r}return 0}function mod(e,t){return"string"==typeof e&&(e=parseInt(e,10)),"string"==typeof t&&(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 a=r;r=t,t=a}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("number"==typeof e||e instanceof Number)return t=t||0,Math.abs(e-t);var r;t||(t=helperLengthArray);var a=Math.min(e.length,t.length),i=0;for(r=0;r<a;r+=1)i+=Math.pow(t[r]-e[r],2);return Math.sqrt(i)}function normalize(e){return div(e,length(e))}function rgbToHsl(e){var t,r,a=e[0],i=e[1],n=e[2],s=Math.max(a,i,n),o=Math.min(a,i,n),l=(s+o)/2;if(s===o)t=0,r=0;else{var h=s-o;switch(r=l>.5?h/(2-s-o):h/(s+o),s){case a:t=(i-n)/h+(i<n?6:0);break;case i:t=(n-a)/h+2;break;case n:t=(a-i)/h+4}t/=6}return[t,r,l,e[3]]}function hue2rgb(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function hslToRgb(e){var t,r,a,i=e[0],n=e[1],s=e[2];if(0===n)t=s,a=s,r=s;else{var o=s<.5?s*(1+n):s+n-s*n,l=2*s-o;t=hue2rgb(l,o,i+1/3),r=hue2rgb(l,o,i),a=hue2rgb(l,o,i-1/3)}return[t,r,a,e[3]]}function linear(e,t,r,a,i){if(void 0!==a&&void 0!==i||(a=t,i=r,t=0,r=1),r<t){var n=r;r=t,t=n}if(e<=t)return a;if(e>=r)return i;var s,o=r===t?0:(e-t)/(r-t);if(!a.length)return a+(i-a)*o;var l=a.length,h=createTypedArray("float32",l);for(s=0;s<l;s+=1)h[s]=a[s]+(i[s]-a[s])*o;return h}function random(e,t){if(void 0===t&&(void 0===e?(e=0,t=1):(t=e,e=void 0)),t.length){var r,a=t.length;e||(e=createTypedArray("float32",a));var i=createTypedArray("float32",a),n=BMMath.random();for(r=0;r<a;r+=1)i[r]=e[r]+n*(t[r]-e[r]);return i}return void 0===e&&(e=0),e+BMMath.random()*(t-e)}function createPath(e,t,r,a){var i,n=e.length,s=shapePool.newElement();s.setPathData(!!a,n);var o,l,h=[0,0];for(i=0;i<n;i+=1)o=t&&t[i]?t[i]:h,l=r&&r[i]?r[i]:h,s.setTripleAt(e[i][0],e[i][1],l[0]+e[i][0],l[1]+e[i][1],o[0]+e[i][0],o[1]+e[i][1],i,!0);return s}function initiateExpression(elem,data,property){var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=-1!==val.indexOf("random"),elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||!0!==this.data.hd,wiggle=function(e,t){var r,a,i=this.pv.length?this.pv.length:1,n=createTypedArray("float32",i),s=Math.floor(5*time);for(r=0,a=0;r<s;){for(a=0;a<i;a+=1)n[a]+=-t+2*t*BMMath.random();r+=1}var o=5*time,l=o-Math.floor(o),h=createTypedArray("float32",i);if(i>1){for(a=0;a<i;a+=1)h[a]=this.pv[a]+n[a]+(-t+2*t*BMMath.random())*l;return h}return this.pv+n[0]+(-t+2*t*BMMath.random())*l}.bind(this);function loopInDuration(e,t){return loopIn(e,t,!0)}function loopOutDuration(e,t){return loopOut(e,t,!0)}thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty)),this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface),time,velocity,value,text,textIndex,textTotal,selectorValue;function lookAt(e,t){var r=[t[0]-e[0],t[1]-e[1],t[2]-e[2]],a=Math.atan2(r[0],Math.sqrt(r[1]*r[1]+r[2]*r[2]))/degToRads;return[-Math.atan2(r[1],r[2])/degToRads,a,0]}function easeOut(e,t,r,a,i){return applyEase(easeOutBez,e,t,r,a,i)}function easeIn(e,t,r,a,i){return applyEase(easeInBez,e,t,r,a,i)}function ease(e,t,r,a,i){return applyEase(easeInOutBez,e,t,r,a,i)}function applyEase(e,t,r,a,i,n){void 0===i?(i=r,n=a):t=(t-r)/(a-r),t>1?t=1:t<0&&(t=0);var s=e(t);if($bm_isInstanceOfArray(i)){var o,l=i.length,h=createTypedArray("float32",l);for(o=0;o<l;o+=1)h[o]=(n[o]-i[o])*s+i[o];return h}return(n-i)*s+i}function nearestKey(e){var t,r,a,i=data.k.length;if(data.k.length&&"number"!=typeof data.k[0])if(r=-1,(e*=elem.comp.globalData.frameRate)<data.k[0].t)r=1,a=data.k[0].t;else{for(t=0;t<i-1;t+=1){if(e===data.k[t].t){r=t+1,a=data.k[t].t;break}if(e>data.k[t].t&&e<data.k[t+1].t){e-data.k[t].t>data.k[t+1].t-e?(r=t+2,a=data.k[t+1].t):(r=t+1,a=data.k[t].t);break}}-1===r&&(r=t+1,a=data.k[t].t)}else r=0,a=0;var n={};return n.index=r,n.time=a/elem.comp.globalData.frameRate,n}function key(e){var t,r,a;if(!data.k.length||"number"==typeof data.k[0])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 i=Object.prototype.hasOwnProperty.call(data.k[e],"s")?data.k[e].s:data.k[e-1].e;for(a=i.length,r=0;r<a;r+=1)t[r]=i[r],t.value[r]=i[r];return t}function framesToTime(e,t){return t||(t=elem.comp.globalData.frameRate),e/t}function timeToFrames(e,t){return e||0===e||(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"string"==typeof value?void 0===t?value.substring(e):value.substring(e,t):""}function substr(e,t){return"string"==typeof value?void 0===t?value.substr(e):value.substr(e,t):""}function posterizeTime(e){time=0===e?0:Math.floor(time*e)/e,value=valueAtTime(time)}var index=elem.data.ind,hasParent=!(!elem.hierarchy||!elem.hierarchy.length),parent,randSeed=Math.floor(1e6*Math.random()),globalData=elem.globalData;function executeExpression(e){return value=e,this.frameExpressionId===elem.globalData.frameId&&"textSelector"!==this.propType?value:("textSelector"===this.propType&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),4!==elemType||content||(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),(hasParent=!(!elem.hierarchy||!elem.hierarchy.length))&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath],ob}(),expressionHelpers={searchExpressions:function(e,t,r){t.x&&(r.k=!0,r.x=!0,r.initiateExpression=ExpressionManager.initiateExpression,r.effectsSequence.push(r.initiateExpression(e,t,r).bind(r)))},getSpeedAtTime:function(e){var t=this.getValueAtTime(e),r=this.getValueAtTime(e+-.01),a=0;if(t.length){var i;for(i=0;i<t.length;i+=1)a+=Math.pow(r[i]-t[i],2);a=100*Math.sqrt(a)}else a=0;return a},getVelocityAtTime:function(e){if(void 0!==this.vel)return this.vel;var t,r,a=-.001,i=this.getValueAtTime(e),n=this.getValueAtTime(e+a);if(i.length)for(t=createTypedArray("float32",i.length),r=0;r<i.length;r+=1)t[r]=(n[r]-i[r])/a;else t=(n-i)/a;return t},getValueAtTime:function(e){return e*=this.elem.globalData.frameRate,(e-=this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<e?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(e,this._cachingAtTime),this._cachingAtTime.lastFrame=e),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(e){this.propertyGroup=e}};function addPropertyDecorator(){function e(e,t,r){if(!this.k||!this.keyframes)return this.pv;e=e?e.toLowerCase():"";var a,i,n,s,o,l=this.comp.renderedFrame,h=this.keyframes,p=h[h.length-1].t;if(l<=p)return this.pv;if(r?i=p-(a=t?Math.abs(p-this.elem.comp.globalData.frameRate*t):Math.max(0,p-this.elem.data.ip)):((!t||t>h.length-1)&&(t=h.length-1),a=p-(i=h[h.length-1-t].t)),"pingpong"===e){if(Math.floor((l-i)/a)%2!=0)return this.getValueAtTime((a-(l-i)%a+i)/this.comp.globalData.frameRate,0)}else{if("offset"===e){var c=this.getValueAtTime(i/this.comp.globalData.frameRate,0),d=this.getValueAtTime(p/this.comp.globalData.frameRate,0),u=this.getValueAtTime(((l-i)%a+i)/this.comp.globalData.frameRate,0),m=Math.floor((l-i)/a);if(this.pv.length){for(s=(o=new Array(c.length)).length,n=0;n<s;n+=1)o[n]=(d[n]-c[n])*m+u[n];return o}return(d-c)*m+u}if("continue"===e){var f=this.getValueAtTime(p/this.comp.globalData.frameRate,0),y=this.getValueAtTime((p-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(s=(o=new Array(f.length)).length,n=0;n<s;n+=1)o[n]=f[n]+(f[n]-y[n])*((l-p)/this.comp.globalData.frameRate)/5e-4;return o}return f+(l-p)/.001*(f-y)}}return this.getValueAtTime(((l-i)%a+i)/this.comp.globalData.frameRate,0)}function t(e,t,r){if(!this.k)return this.pv;e=e?e.toLowerCase():"";var a,i,n,s,o,l=this.comp.renderedFrame,h=this.keyframes,p=h[0].t;if(l>=p)return this.pv;if(r?i=p+(a=t?Math.abs(this.elem.comp.globalData.frameRate*t):Math.max(0,this.elem.data.op-p)):((!t||t>h.length-1)&&(t=h.length-1),a=(i=h[t].t)-p),"pingpong"===e){if(Math.floor((p-l)/a)%2==0)return this.getValueAtTime(((p-l)%a+p)/this.comp.globalData.frameRate,0)}else{if("offset"===e){var c=this.getValueAtTime(p/this.comp.globalData.frameRate,0),d=this.getValueAtTime(i/this.comp.globalData.frameRate,0),u=this.getValueAtTime((a-(p-l)%a+p)/this.comp.globalData.frameRate,0),m=Math.floor((p-l)/a)+1;if(this.pv.length){for(s=(o=new Array(c.length)).length,n=0;n<s;n+=1)o[n]=u[n]-(d[n]-c[n])*m;return o}return u-(d-c)*m}if("continue"===e){var f=this.getValueAtTime(p/this.comp.globalData.frameRate,0),y=this.getValueAtTime((p+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(s=(o=new Array(f.length)).length,n=0;n<s;n+=1)o[n]=f[n]+(f[n]-y[n])*(p-l)/.001;return o}return f+(f-y)*(p-l)/.001}}return this.getValueAtTime((a-((p-l)%a+p))/this.comp.globalData.frameRate,0)}function r(e,t){if(!this.k)return this.pv;if(e=.5*(e||.4),(t=Math.floor(t||5))<=1)return this.pv;var r,a,i=this.comp.renderedFrame/this.comp.globalData.frameRate,n=i-e,s=t>1?(i+e-n)/(t-1):1,o=0,l=0;for(r=this.pv.length?createTypedArray("float32",this.pv.length):0;o<t;){if(a=this.getValueAtTime(n+o*s),this.pv.length)for(l=0;l<this.pv.length;l+=1)r[l]+=a[l];else r+=a;o+=1}if(this.pv.length)for(l=0;l<this.pv.length;l+=1)r[l]/=t;else r/=t;return r}function a(e){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var t=this._transformCachingAtTime.v;if(t.cloneFromProps(this.pre.props),this.appliedTransformations<1){var r=this.a.getValueAtTime(e);t.translate(-r[0]*this.a.mult,-r[1]*this.a.mult,r[2]*this.a.mult)}if(this.appliedTransformations<2){var a=this.s.getValueAtTime(e);t.scale(a[0]*this.s.mult,a[1]*this.s.mult,a[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var i=this.sk.getValueAtTime(e),n=this.sa.getValueAtTime(e);t.skewFromAxis(-i*this.sk.mult,n*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var s=this.r.getValueAtTime(e);t.rotate(-s*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var o=this.rz.getValueAtTime(e),l=this.ry.getValueAtTime(e),h=this.rx.getValueAtTime(e),p=this.or.getValueAtTime(e);t.rotateZ(-o*this.rz.mult).rotateY(l*this.ry.mult).rotateX(h*this.rx.mult).rotateZ(-p[2]*this.or.mult).rotateY(p[1]*this.or.mult).rotateX(p[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var c=this.px.getValueAtTime(e),d=this.py.getValueAtTime(e);if(this.data.p.z){var u=this.pz.getValueAtTime(e);t.translate(c*this.px.mult,d*this.py.mult,-u*this.pz.mult)}else t.translate(c*this.px.mult,d*this.py.mult,0)}else{var m=this.p.getValueAtTime(e);t.translate(m[0]*this.p.mult,m[1]*this.p.mult,-m[2]*this.p.mult)}return t}function i(){return this.v.clone(new Matrix)}var n=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(e,t,r){var s=n(e,t,r);return s.dynamicProperties.length?s.getValueAtTime=a.bind(s):s.getValueAtTime=i.bind(s),s.setGroupProperty=expressionHelpers.setGroupProperty,s};var s=PropertyFactory.getProp;PropertyFactory.getProp=function(a,i,n,o,l){var h=s(a,i,n,o,l);h.kf?h.getValueAtTime=expressionHelpers.getValueAtTime.bind(h):h.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(h),h.setGroupProperty=expressionHelpers.setGroupProperty,h.loopOut=e,h.loopIn=t,h.smooth=r,h.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(h),h.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(h),h.numKeys=1===i.a?i.k.length:0,h.propertyIndex=i.ix;var p=0;return 0!==n&&(p=createTypedArray("float32",1===i.a?i.k[0].s.length:i.k.length)),h._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:p},expressionHelpers.searchExpressions(a,i,h),h.k&&l.addDynamicProperty(h),h};var o=ShapePropertyFactory.getConstructorFunction(),l=ShapePropertyFactory.getKeyframedConstructorFunction();function h(){}h.prototype={vertices:function(e,t){this.k&&this.getValue();var r,a=this.v;void 0!==t&&(a=this.getValueAtTime(t,0));var i=a._length,n=a[e],s=a.v,o=createSizedArray(i);for(r=0;r<i;r+=1)o[r]="i"===e||"o"===e?[n[r][0]-s[r][0],n[r][1]-s[r][1]]:[n[r][0],n[r][1]];return o},points:function(e){return this.vertices("v",e)},inTangents:function(e){return this.vertices("i",e)},outTangents:function(e){return this.vertices("o",e)},isClosed:function(){return this.v.c},pointOnPath:function(e,t){var r=this.v;void 0!==t&&(r=this.getValueAtTime(t,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(r));for(var a,i=this._segmentsLength,n=i.lengths,s=i.totalLength*e,o=0,l=n.length,h=0;o<l;){if(h+n[o].addedLength>s){var p=o,c=r.c&&o===l-1?0:o+1,d=(s-h)/n[o].addedLength;a=bez.getPointInSegment(r.v[p],r.v[c],r.o[p],r.i[c],d,n[o]);break}h+=n[o].addedLength,o+=1}return a||(a=r.c?[r.v[0][0],r.v[0][1]]:[r.v[r._length-1][0],r.v[r._length-1][1]]),a},vectorOnPath:function(e,t,r){1==e?e=this.v.c:0==e&&(e=.999);var a=this.pointOnPath(e,t),i=this.pointOnPath(e+.001,t),n=i[0]-a[0],s=i[1]-a[1],o=Math.sqrt(Math.pow(n,2)+Math.pow(s,2));return 0===o?[0,0]:"tangent"===r?[n/o,s/o]:[-s/o,n/o]},tangentOnPath:function(e,t){return this.vectorOnPath(e,t,"tangent")},normalOnPath:function(e,t){return this.vectorOnPath(e,t,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([h],o),extendPrototype([h],l),l.prototype.getValueAtTime=function(e){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),e*=this.elem.globalData.frameRate,(e-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<e?this._caching.lastIndex:0,this._cachingAtTime.lastTime=e,this.interpolateShape(e,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},l.prototype.initiateExpression=ExpressionManager.initiateExpression;var p=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(e,t,r,a,i){var n=p(e,t,r,a,i);return n.propertyIndex=t.ix,n.lock=!1,3===r?expressionHelpers.searchExpressions(e,t.pt,n):4===r&&expressionHelpers.searchExpressions(e,t.ks,n),n.k&&e.addDynamicProperty(n),n}}function initialize$1(){addPropertyDecorator()}function addDecorator(){TextProperty.prototype.getExpressionValue=function(e,t){var r=this.calculateExpression(t);if(e.t!==r){var a={};return this.copyData(a,e),a.t=r.toString(),a.__complete=!1,a}return e},TextProperty.prototype.searchProperty=function(){var e=this.searchKeyframes(),t=this.searchExpressions();return this.kf=e||t,this.kf},TextProperty.prototype.searchExpressions=function(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}}function initialize(){addDecorator()}function SVGComposableEffect(){}function SVGTintFilter(e,t,r,a,i){this.filterManager=t;var n=createNS("feColorMatrix");n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","linearRGB"),n.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),n.setAttribute("result",a+"_tint_1"),e.appendChild(n),(n=createNS("feColorMatrix")).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",a+"_tint_2"),e.appendChild(n),this.matrixFilter=n;var s=this.createMergeNode(a,[i,a+"_tint_1",a+"_tint_2"]);e.appendChild(s)}function SVGFillFilter(e,t,r,a){this.filterManager=t;var i=createNS("feColorMatrix");i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),i.setAttribute("result",a),e.appendChild(i),this.matrixFilter=i}function SVGStrokeEffect(e,t,r){this.initialized=!1,this.filterManager=t,this.elem=r,this.paths=[]}function SVGTritoneFilter(e,t,r,a){this.filterManager=t;var i=createNS("feColorMatrix");i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","linearRGB"),i.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(i);var n=createNS("feComponentTransfer");n.setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("result",a),this.matrixFilter=n;var s=createNS("feFuncR");s.setAttribute("type","table"),n.appendChild(s),this.feFuncR=s;var o=createNS("feFuncG");o.setAttribute("type","table"),n.appendChild(o),this.feFuncG=o;var l=createNS("feFuncB");l.setAttribute("type","table"),n.appendChild(l),this.feFuncB=l,e.appendChild(n)}function SVGProLevelsFilter(e,t,r,a){this.filterManager=t;var i=this.filterManager.effectElements,n=createNS("feComponentTransfer");(i[10].p.k||0!==i[10].p.v||i[11].p.k||1!==i[11].p.v||i[12].p.k||1!==i[12].p.v||i[13].p.k||0!==i[13].p.v||i[14].p.k||1!==i[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",n)),(i[17].p.k||0!==i[17].p.v||i[18].p.k||1!==i[18].p.v||i[19].p.k||1!==i[19].p.v||i[20].p.k||0!==i[20].p.v||i[21].p.k||1!==i[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",n)),(i[24].p.k||0!==i[24].p.v||i[25].p.k||1!==i[25].p.v||i[26].p.k||1!==i[26].p.v||i[27].p.k||0!==i[27].p.v||i[28].p.k||1!==i[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",n)),(i[31].p.k||0!==i[31].p.v||i[32].p.k||1!==i[32].p.v||i[33].p.k||1!==i[33].p.v||i[34].p.k||0!==i[34].p.v||i[35].p.k||1!==i[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",n)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(n.setAttribute("color-interpolation-filters","sRGB"),e.appendChild(n)),(i[3].p.k||0!==i[3].p.v||i[4].p.k||1!==i[4].p.v||i[5].p.k||1!==i[5].p.v||i[6].p.k||0!==i[6].p.v||i[7].p.k||1!==i[7].p.v)&&((n=createNS("feComponentTransfer")).setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("result",a),e.appendChild(n),this.feFuncRComposed=this.createFeFunc("feFuncR",n),this.feFuncGComposed=this.createFeFunc("feFuncG",n),this.feFuncBComposed=this.createFeFunc("feFuncB",n))}function SVGDropShadowEffect(e,t,r,a,i){var n=t.container.globalData.renderConfig.filterSize,s=t.data.fs||n;e.setAttribute("x",s.x||n.x),e.setAttribute("y",s.y||n.y),e.setAttribute("width",s.width||n.width),e.setAttribute("height",s.height||n.height),this.filterManager=t;var o=createNS("feGaussianBlur");o.setAttribute("in","SourceAlpha"),o.setAttribute("result",a+"_drop_shadow_1"),o.setAttribute("stdDeviation","0"),this.feGaussianBlur=o,e.appendChild(o);var l=createNS("feOffset");l.setAttribute("dx","25"),l.setAttribute("dy","0"),l.setAttribute("in",a+"_drop_shadow_1"),l.setAttribute("result",a+"_drop_shadow_2"),this.feOffset=l,e.appendChild(l);var h=createNS("feFlood");h.setAttribute("flood-color","#00ff00"),h.setAttribute("flood-opacity","1"),h.setAttribute("result",a+"_drop_shadow_3"),this.feFlood=h,e.appendChild(h);var p=createNS("feComposite");p.setAttribute("in",a+"_drop_shadow_3"),p.setAttribute("in2",a+"_drop_shadow_2"),p.setAttribute("operator","in"),p.setAttribute("result",a+"_drop_shadow_4"),e.appendChild(p);var c=this.createMergeNode(a,[a+"_drop_shadow_4",i]);e.appendChild(c)}SVGComposableEffect.prototype={createMergeNode:function(e,t){var r,a,i=createNS("feMerge");for(i.setAttribute("result",e),a=0;a<t.length;a+=1)(r=createNS("feMergeNode")).setAttribute("in",t[a]),i.appendChild(r),i.appendChild(r);return i}},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,a=this.filterManager.effectElements[2].p.v/100;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 "+a+" 0")}},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")}},SVGStrokeEffect.prototype.initialize=function(){var e,t,r,a,i=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(a=this.elem.maskManager.masksProperties.length,r=0):a=1+(r=this.filterManager.effectElements[0].p.v-1),(t=createNS("g")).setAttribute("fill","none"),t.setAttribute("stroke-linecap","round"),t.setAttribute("stroke-dashoffset",1);r<a;r+=1)e=createNS("path"),t.appendChild(e),this.paths.push({p:e,m:r});if(3===this.filterManager.effectElements[10].p.v){var n=createNS("mask"),s=createElementID();n.setAttribute("id",s),n.setAttribute("mask-type","alpha"),n.appendChild(t),this.elem.globalData.defs.appendChild(n);var o=createNS("g");for(o.setAttribute("mask","url("+getLocationHref()+"#"+s+")");i[0];)o.appendChild(i[0]);this.elem.layerElement.appendChild(o),this.masker=n,t.setAttribute("stroke","#fff")}else if(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v){if(2===this.filterManager.effectElements[10].p.v)for(i=this.elem.layerElement.children||this.elem.layerElement.childNodes;i.length;)this.elem.layerElement.removeChild(i[0]);this.elem.layerElement.appendChild(t),this.elem.layerElement.removeAttribute("mask"),t.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=t},SVGStrokeEffect.prototype.renderFrame=function(e){var t;this.initialized||this.initialize();var r,a,i=this.paths.length;for(t=0;t<i;t+=1)if(-1!==this.paths[t].m&&(r=this.elem.maskManager.viewData[this.paths[t].m],a=this.paths[t].p,(e||this.filterManager._mdf||r.prop._mdf)&&a.setAttribute("d",r.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||r.prop._mdf)){var n;if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){var s=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),o=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),l=a.getTotalLength();n="0 0 0 "+l*s+" ";var h,p=l*(o-s),c=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01,d=Math.floor(p/c);for(h=0;h<d;h+=1)n+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";n+="0 "+10*l+" 0 0"}else n="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;a.setAttribute("stroke-dasharray",n)}if((e||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(e||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v)&&(e||this.filterManager.effectElements[3].p._mdf)){var u=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*u[0])+","+bmFloor(255*u[1])+","+bmFloor(255*u[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,a=this.filterManager.effectElements[2].p.v,i=a[0]+" "+r[0]+" "+t[0],n=a[1]+" "+r[1]+" "+t[1],s=a[2]+" "+r[2]+" "+t[2];this.feFuncR.setAttribute("tableValues",i),this.feFuncG.setAttribute("tableValues",n),this.feFuncB.setAttribute("tableValues",s)}},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,a,i){for(var n,s,o=0,l=Math.min(e,t),h=Math.max(e,t),p=Array.call(null,{length:256}),c=0,d=i-a,u=t-e;o<=256;)s=(n=o/256)<=l?u<0?i:a:n>=h?u<0?a:i:a+d*Math.pow((n-e)/u,1/r),p[c]=s,c+=1,o+=256/255;return p.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))}},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(255*t[0]),Math.round(255*t[1]),Math.round(255*t[2])))}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,a=(this.filterManager.effectElements[2].p.v-90)*degToRads,i=r*Math.cos(a),n=r*Math.sin(a);this.feOffset.setAttribute("dx",i),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}function SVGGaussianBlurEffect(e,t,r,a){e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width","300%"),e.setAttribute("height","300%"),this.filterManager=t;var i=createNS("feGaussianBlur");i.setAttribute("result",a),e.appendChild(i),this.feGaussianBlur=i}return 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 a,i=r.children,n=0,s=i.length;n<s&&i[n]!==e.layerElement;)n+=1;n<=s-2&&(a=i[n+1]);var o=createNS("use");o.setAttribute("href","#"+t),a?r.insertBefore(o,a):r.appendChild(o)}},SVGMatte3Effect.prototype.setElementAsMask=function(e,t){if(!this.findSymbol(t)){var r=createElementID(),a=createNS("mask");a.setAttribute("id",t.layerId),a.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(t);var i=e.globalData.defs;i.appendChild(a);var n=createNS("symbol");n.setAttribute("id",r),this.replaceInParent(t,r),n.appendChild(t.layerElement),i.appendChild(n);var s=createNS("use");s.setAttribute("href","#"+r),a.appendChild(s),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,a=t.length;r<a;)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()},SVGGaussianBlurEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=.3*this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,a=3==r?0:t,i=2==r?0:t;this.feGaussianBlur.setAttribute("stdDeviation",a+" "+i);var n=1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",n)}},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),setExpressionsPlugin(Expressions),initialize$1(),initialize(),registerEffect(20,SVGTintFilter,!0),registerEffect(21,SVGFillFilter,!0),registerEffect(22,SVGStrokeEffect,!1),registerEffect(23,SVGTritoneFilter,!0),registerEffect(24,SVGProLevelsFilter,!0),registerEffect(25,SVGDropShadowEffect,!0),registerEffect(28,SVGMatte3Effect,!1),registerEffect(29,SVGGaussianBlurEffect,!0),lottie},module.exports=factory())})(lottie$1,lottie$1.exports);var lottie=lottie$1.exports;function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function _objectSpread2(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach((function(t){_defineProperty(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _defineProperty(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var r,a,i={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(i[r]=e[r]);return i}function _objectWithoutProperties(e,t){if(null==e)return{};var r,a,i=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _iterableToArrayLimit(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a,i,n=[],s=!0,o=!1;try{for(r=r.call(e);!(s=(a=r.next()).done)&&(n.push(a.value),!t||n.length!==t);s=!0);}catch(e){o=!0,i=e}finally{try{s||null==r.return||r.return()}finally{if(o)throw i}}return n}}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}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){var r=e.animationData,a=e.loop,i=e.autoplay,n=e.initialSegment,s=e.onComplete,o=e.onLoopComplete,l=e.onEnterFrame,h=e.onSegmentStart,p=e.onConfigReady,c=e.onDataReady,d=e.onDataFailed,u=e.onLoadedImages,m=e.onDOMLoaded,f=e.onDestroy;e.lottieRef,e.renderer,e.name,e.assetsPath,e.rendererSettings;var y=_objectWithoutProperties(e,_excluded$1),g=_slicedToArray(useState(!1),2),v=g[0],b=g[1],x=useRef(),S=useRef(null);return useEffect((function(){var t=function(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(S.current){null===(t=x.current)||void 0===t||t.destroy();var a=_objectSpread2(_objectSpread2(_objectSpread2({},e),r),{},{container:S.current});return x.current=lottie.loadAnimation(a),b(!!x.current),function(){var e;null===(e=x.current)||void 0===e||e.destroy(),x.current=void 0}}}();return function(){return null==t?void 0:t()}}),[r,a]),useEffect((function(){x.current&&(x.current.autoplay=!!i)}),[i]),useEffect((function(){x.current&&(n?Array.isArray(n)&&n.length&&((x.current.currentRawFrame<n[0]||x.current.currentRawFrame>n[1])&&(x.current.currentRawFrame=n[0]),x.current.setSegment(n[0],n[1])):x.current.resetSegments(!0))}),[n]),useEffect((function(){var e=[{name:"complete",handler:s},{name:"loopComplete",handler:o},{name:"enterFrame",handler:l},{name:"segmentStart",handler:h},{name:"config_ready",handler:p},{name:"data_ready",handler:c},{name:"data_failed",handler:d},{name:"loaded_images",handler:u},{name:"DOMLoaded",handler:m},{name:"destroy",handler:f}].filter((function(e){return null!=e.handler}));if(e.length){var t=e.map((function(e){var t;return null===(t=x.current)||void 0===t||t.addEventListener(e.name,e.handler),function(){var t;null===(t=x.current)||void 0===t||t.removeEventListener(e.name,e.handler)}}));return function(){t.forEach((function(e){return e()}))}}}),[s,o,l,h,p,c,d,u,m,f]),{View:React__default.createElement("div",_objectSpread2({style:t,ref:S},y)),play:function(){var e;null===(e=x.current)||void 0===e||e.play()},stop:function(){var e;null===(e=x.current)||void 0===e||e.stop()},pause:function(){var e;null===(e=x.current)||void 0===e||e.pause()},setSpeed:function(e){var t;null===(t=x.current)||void 0===t||t.setSpeed(e)},goToAndStop:function(e,t){var r;null===(r=x.current)||void 0===r||r.goToAndStop(e,t)},goToAndPlay:function(e,t){var r;null===(r=x.current)||void 0===r||r.goToAndPlay(e,t)},setDirection:function(e){var t;null===(t=x.current)||void 0===t||t.setDirection(e)},playSegments:function(e,t){var r;null===(r=x.current)||void 0===r||r.playSegments(e,t)},setSubframe:function(e){var t;null===(t=x.current)||void 0===t||t.setSubframe(e)},getDuration:function(e){var t;return null===(t=x.current)||void 0===t?void 0:t.getDuration(e)},destroy:function(){var e;null===(e=x.current)||void 0===e||e.destroy(),x.current=void 0},animationContainerRef:S,animationLoaded:v,animationItem:x.current}},v$1="4.10.1",fr$1=24,ip$1=0,op$1=72,w$1=250,h$1=250,nm$1="Comp 1",ddd$1=0,assets$1=[{id:"comp_0",layers:[{ddd:0,ind:1,ty:4,nm:"Capa de formas 12",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},n:"0p833_0p833_0p167_0p167",t:24,s:[81.5,370.25,0],e:[445.5,199.25,0],to:[60.6666679382324,-28.5,0],ti:[-60.6666679382324,28.5,0]},{t:48}],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[43,43,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[28,0],[34.935,-19.483],[31.619,18.821],[33,-14],[57,29],[0,0],[0,0],[0,0]],o:[[-28,0],[-52,29],[-42,-25],[-28.892,12.257],[-57,-29],[0,0],[0,0],[0,0]],v:[[367.75,-97],[277,-75],[155,-82],[35,-82],[-94,-82.326],[-200,-74],[-352.07,320.209],[499.162,354.093]],c:!0},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.9372549019607843,.2549019607843137,.23921568627450981,1],ix:4},o:{a:0,k:100,ix:5},r:1,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformar"}],nm:"Forma 1",np:3,cix:2,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:144,st:0,bm:0},{ddd:0,ind:2,ty:4,nm:"Capa de formas 2",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},n:"0p833_0p833_0p167_0p167",t:24,s:[-133,374,0],e:[231,203,0],to:[60.6666679382324,-28.5,0],ti:[-60.6666679382324,28.5,0]},{t:48}],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[43,43,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[28,0],[34.935,-19.483],[31.619,18.821],[33,-14],[57,29],[0,0],[0,0],[0,0]],o:[[-28,0],[-52,29],[-42,-25],[-28.892,12.257],[-57,-29],[0,0],[0,0],[0,0]],v:[[367.75,-97],[277,-75],[155,-82],[35,-82],[-94,-82.326],[-200,-74],[-352.07,320.209],[499.162,354.093]],c:!0},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.9372549019607843,.2549019607843137,.23921568627450981,1],ix:4},o:{a:0,k:100,ix:5},r:1,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformar"}],nm:"Forma 1",np:3,cix:2,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:144,st:0,bm:0}]}],layers$1=[{ddd:0,ind:1,ty:4,nm:"Capa de formas 5",sr:1,ks:{o:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},n:["0p833_0p833_0p167_0p167"],t:15,s:[100],e:[0]},{t:16}],ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},n:"0p833_0p833_0p167_0p167",t:0,s:[124.375,-8.75,0],e:[199,156,0],to:[0,28.3333339691162,0],ti:[0,-28.9375,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},n:"0p833_0p833_0p167_0p167",t:12,s:[124.375,97.5,0],e:[199,164.066,0],to:[0,4.54861259460449,0],ti:[0,-2.45892143249512,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},n:"0p833_0p833_0p167_0p167",t:13,s:[124.375,102.54125,0],e:[199,166.125,0],to:[0,13.1843204498291,0],ti:[0,-1.72074222564697,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},n:"0p833_0p833_0p167_0p167",t:14,s:[124.375,103.828125,0],e:[199,168.375,0],to:[0,2.04166674613953,0],ti:[0,-.04166666790843,0]},{t:15}],ix:2},a:{a:0,k:[-1,-182.375,0],ix:1},s:{a:1,k:[{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},n:["0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167"],t:0,s:[31.25,31.25,100],e:[31.25,58.75,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},n:["0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167"],t:12,s:[31.25,58.75,100],e:[43.75,27.083125,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},n:["0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167"],t:13,s:[43.75,27.083125,100],e:[65.16125000000001,20,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},n:["0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167"],t:14,s:[65.16125000000001,20,100],e:[132.5,11.25,100]},{t:15}],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[.938,0],[0,-5.25],[-4.563,.125],[.108,4.624]],o:[[-.813,.125],[0,4.813],[4.563,-.125],[-.125,-5.375]],v:[[-1.344,-193.078],[-8.75,-180.5],[-1.063,-172.313],[6.938,-180.188]],c:!0},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.2549019607843137,.25098039215686274,.25882352941176473,1],ix:4},o:{a:0,k:100,ix:5},r:1,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformar"}],nm:"Forma 1",np:3,cix:2,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:60,st:0,bm:0},{ddd:0,ind:8,ty:4,nm:"Capa de formas 3",sr:1,ks:{o:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},n:["0p833_0p833_0p167_0p167"],t:46,s:[0],e:[100]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},n:["0p833_0p833_0p167_0p167"],t:47,s:[100],e:[100]},{t:48}],ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},n:"0p833_0p833_0p167_0p167",t:47,s:[124.98749999999998,105.15625,0],e:[199.98,158.037,0],to:[0,-.20375619828701,0],ti:[0,17.58864402771,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},n:"0p833_0p833_0p167_0p167",t:48,s:[124.98749999999998,98.77312500000001,0],e:[199.98,-10,0],to:[-28421709430404e-27,-50.4047393798828,0],ti:[0,1.17485654354095,0]},{t:53}],ix:2},a:{a:0,k:[-32,-31,0],ix:1},s:{a:1,k:[{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},n:["0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167"],t:47,s:[-2.5,.625,100],e:[.9375,2.5,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},n:["0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167"],t:48,s:[.9375,2.5,100],e:[1.25,1.875,100]},{t:53}],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[308,308],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Trazado elíptico 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"fl",c:{a:0,k:[.2549019607843137,.25098039215686274,.25882352941176473,1],ix:4},o:{a:0,k:100,ix:5},r:1,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[-31,-31],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformar"}],nm:"Elipse 1",np:3,cix:2,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:60,st:0,bm:0},{ddd:0,ind:9,ty:4,nm:"Capa de formas 4",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[124.375,158.125,0],ix:2},a:{a:0,k:[-32,-31,0],ix:1},s:{a:0,k:[34.375,34.375,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[308,308],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Trazado elíptico 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"st",c:{a:0,k:[.2549019607843137,.25098039215686274,.25882352941176473,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:10,ix:5},lc:1,lj:1,ml:4,nm:"Trazo 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[-31,-31],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformar"}],nm:"Elipse 1",np:3,cix:2,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},n:["0p833_0p833_0p167_0p167"],t:12,s:[50],e:[100]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},n:["0p833_0p833_0p167_0p167"],t:24,s:[100],e:[50]},{t:48}],ix:1},e:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},n:["0p833_0p833_0p167_0p167"],t:12,s:[50],e:[0]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},n:["0p833_0p833_0p167_0p167"],t:24,s:[0],e:[50]},{t:48}],ix:2},o:{a:0,k:180,ix:3},m:1,ix:2,nm:"Recortar trazados 1",mn:"ADBE Vector Filter - Trim",hd:!1}],ip:0,op:60,st:0,bm:0},{ddd:0,ind:10,ty:4,nm:"Capa de formas 1",td:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[124.375,158.125,0],ix:2},a:{a:0,k:[-32,-31,0],ix:1},s:{a:0,k:[31.25,31.25,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[308,308],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Trazado elíptico 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"fl",c:{a:0,k:[.913725490196,.347995563582,.03941561007,1],ix:4},o:{a:0,k:100,ix:5},r:1,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[-31,-31],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformar"}],nm:"Elipse 1",np:3,cix:2,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:60,st:0,bm:0},{ddd:0,ind:11,ty:0,nm:"Precomp. 1",tt:1,refId:"comp_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[125,125,0],ix:2},a:{a:0,k:[200,200,0],ix:1},s:{a:0,k:[62.5,62.5,100],ix:6}},ao:0,w:400,h:400,ip:0,op:144,st:0,bm:0}],animationData$1={v:v$1,fr:fr$1,ip:ip$1,op:op$1,w:w$1,h:h$1,nm:nm$1,ddd:ddd$1,assets:assets$1,layers:layers$1};const LottieSpinner=()=>{const e={animationData:animationData$1,loop:!0,autoplay:!0,style:{height:"200px",width:"200px"}},{View:t}=useLottie(e);return jsx(Fragment,{children:t})},LoadingSpinner=()=>jsx(Container$d,{children:jsx(LottieSpinner,{})}),Container$d=styled.div`
|
|
405
|
+
`,Alert=({type:e,className:t,children:r,actionLink:a,...i})=>jsxs(Wrapper$d,{className:t,$type:e,"data-testid":i["data-testid"],children:[r,a&&jsxs(ActionLinkText,{weight:"semibold",...a,"data-testid":"action-link",children:[a.children,jsx(ArrowIcon,{type:"arrow-right"})]})]});var lottie$1={exports:{}};(function(module,exports){var factory;"undefined"!=typeof navigator&&(factory=function(){var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(e){_useWebWorker=!!e},getWebWorker=function(){return _useWebWorker},setLocationHref=function(e){locationHref=e},getLocationHref=function(){return locationHref};function createTag(e){return document.createElement(e)}function extendPrototype(e,t){var r,a,i=e.length;for(r=0;r<i;r+=1)for(var n in a=e[r].prototype)Object.prototype.hasOwnProperty.call(a,n)&&(t.prototype[n]=a[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(e){this.audios=[],this.audioFactory=e,this._volume=1,this._isMuted=!1}return e.prototype={addAudio:function(e){this.audios.push(e)},pause:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].pause()},resume:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].resume()},setRate:function(e){var t,r=this.audios.length;for(t=0;t<r;t+=1)this.audios[t].setRate(e)},createAudio:function(e){return this.audioFactory?this.audioFactory(e):window.Howl?new window.Howl({src:[e]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(e){this.audioFactory=e},setVolume:function(e){this._volume=e,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var e,t=this.audios.length;for(e=0;e<t;e+=1)this.audios[e].volume(this._volume*(this._isMuted?0:1))}},function(){return new e}}(),createTypedArray=function(){function e(e,t){var r,a=0,i=[];switch(e){case"int16":case"uint8c":r=1;break;default:r=1.1}for(a=0;a<t;a+=1)i.push(r);return i}return"function"==typeof Uint8ClampedArray&&"function"==typeof Float32Array?function(t,r){return"float32"===t?new Float32Array(r):"int16"===t?new Int16Array(r):"uint8c"===t?new Uint8ClampedArray(r):e(t,r)}:e}();function createSizedArray(e){return Array.apply(null,{length:e})}function _typeof$6(e){return _typeof$6="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$6(e)}var subframeEnabled=!0,expressionsPlugin=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,t=["abs","acos","acosh","asin","asinh","atan","atanh","atan2","ceil","cbrt","expm1","clz32","cos","cosh","exp","floor","fround","hypot","imul","log","log1p","log2","log10","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc","E","LN10","LN2","LOG10E","LOG2E","PI","SQRT1_2","SQRT2"],r=t.length;for(e=0;e<r;e+=1)BMMath[t[e]]=Math[t[e]]}(),BMMath.random=Math.random,BMMath.abs=function(e){if("object"===_typeof$6(e)&&e.length){var t,r=createSizedArray(e.length),a=e.length;for(t=0;t<a;t+=1)r[t]=Math.abs(e[t]);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,a){this.type=e,this.currentTime=t,this.totalTime=r,this.direction=a<0?-1:1}function BMCompleteEvent(e,t){this.type=e,this.direction=t<0?-1:1}function BMCompleteLoopEvent(e,t,r,a){this.type=e,this.currentLoop=r,this.totalLoops=t,this.direction=a<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=(_count=0,function(){return idPrefix$1+"__lottie_element_"+(_count+=1)}),_count;function HSVtoRGB(e,t,r){var a,i,n,s,o,l,h,c;switch(l=r*(1-t),h=r*(1-(o=6*e-(s=Math.floor(6*e)))*t),c=r*(1-(1-o)*t),s%6){case 0:a=r,i=c,n=l;break;case 1:a=h,i=r,n=l;break;case 2:a=l,i=r,n=c;break;case 3:a=l,i=h,n=r;break;case 4:a=c,i=l,n=r;break;case 5:a=r,i=l,n=h}return[a,i,n]}function RGBtoHSV(e,t,r){var a,i=Math.max(e,t,r),n=Math.min(e,t,r),s=i-n,o=0===i?0:s/i,l=i/255;switch(i){case n:a=0;break;case e:a=t-r+s*(t<r?6:0),a/=6*s;break;case t:a=r-e+2*s,a/=6*s;break;case r:a=e-t+4*s,a/=6*s}return[a,o,l]}function addSaturationToRGB(e,t){var r=RGBtoHSV(255*e[0],255*e[1],255*e[2]);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(255*e[0],255*e[1],255*e[2]);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(255*e[0],255*e[1],255*e[2]);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(e=0;e<256;e+=1)t=e.toString(16),r[e]=1===t.length?"0"+t:t;return function(e,t,a){return e<0&&(e=0),t<0&&(t=0),a<0&&(a=0),"#"+r[e]+r[t]+r[a]}}(),setSubframeEnabled=function(e){subframeEnabled=!!e},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(e){expressionsPlugin=e},getExpressionsPlugin=function(){return expressionsPlugin},setDefaultCurveSegments=function(e){defaultCurveSegments=e},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(e){idPrefix$1=e};function createNS(e){return document.createElementNS(svgNS,e)}function _typeof$5(e){return _typeof$5="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$5(e)}var dataManager=function(){var e,t,r=1,a=[],i={onmessage:function(){},postMessage:function(t){e({data:t})}},n={postMessage:function(e){i.onmessage({data:e})}};function s(){t||(t=function(t){if(window.Worker&&window.Blob&&getWebWorker()){var r=new Blob(["var _workerSelf = self; self.onmessage = ",t.toString()],{type:"text/javascript"}),a=URL.createObjectURL(r);return new Worker(a)}return e=t,i}((function(e){if(n.dataManager||(n.dataManager=function(){function e(i,n){var s,o,l,h,c,p,u=i.length;for(o=0;o<u;o+=1)if("ks"in(s=i[o])&&!s.completed){if(s.completed=!0,s.tt&&(i[o-1].td=s.tt),s.hasMask){var m=s.masksProperties;for(h=m.length,l=0;l<h;l+=1)if(m[l].pt.k.i)a(m[l].pt.k);else for(p=m[l].pt.k.length,c=0;c<p;c+=1)m[l].pt.k[c].s&&a(m[l].pt.k[c].s[0]),m[l].pt.k[c].e&&a(m[l].pt.k[c].e[0])}0===s.ty?(s.layers=t(s.refId,n),e(s.layers,n)):4===s.ty?r(s.shapes):5===s.ty&&d(s)}}function t(e,t){var r=function(e,t){for(var r=0,a=t.length;r<a;){if(t[r].id===e)return t[r];r+=1}return null}(e,t);return r?r.layers.__used?JSON.parse(JSON.stringify(r.layers)):(r.layers.__used=!0,r.layers):null}function r(e){var t,i,n;for(t=e.length-1;t>=0;t-=1)if("sh"===e[t].ty)if(e[t].ks.k.i)a(e[t].ks.k);else for(n=e[t].ks.k.length,i=0;i<n;i+=1)e[t].ks.k[i].s&&a(e[t].ks.k[i].s[0]),e[t].ks.k[i].e&&a(e[t].ks.k[i].e[0]);else"gr"===e[t].ty&&r(e[t].it)}function a(e){var t,r=e.i.length;for(t=0;t<r;t+=1)e.i[t][0]+=e.v[t][0],e.i[t][1]+=e.v[t][1],e.o[t][0]+=e.v[t][0],e.o[t][1]+=e.v[t][1]}function i(e,t){var r=t?t.split("."):[100,100,100];return e[0]>r[0]||!(r[0]>e[0])&&(e[1]>r[1]||!(r[1]>e[1])&&(e[2]>r[2]||!(r[2]>e[2])&&null))}var n,s=function(){var e=[4,4,14];function t(e){var t,r,a,i=e.length;for(t=0;t<i;t+=1)5===e[t].ty&&(a=void 0,a=(r=e[t]).t.d,r.t.d={k:[{s:a,t:0}]})}return function(r){if(i(e,r.v)&&(t(r.layers),r.assets)){var a,n=r.assets.length;for(a=0;a<n;a+=1)r.assets[a].layers&&t(r.assets[a].layers)}}}(),o=(n=[4,7,99],function(e){if(e.chars&&!i(n,e.v)){var t,a=e.chars.length;for(t=0;t<a;t+=1){var s=e.chars[t];s.data&&s.data.shapes&&(r(s.data.shapes),s.data.ip=0,s.data.op=99999,s.data.st=0,s.data.sr=1,s.data.ks={p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0}},e.chars[t].t||(s.data.shapes.push({ty:"no"}),s.data.shapes[0].it.push({p:{k:[0,0],a:0},s:{k:[100,100],a:0},a:{k:[0,0],a:0},r:{k:0,a:0},o:{k:100,a:0},sk:{k:0,a:0},sa:{k:0,a:0},ty:"tr"})))}}}),l=function(){var e=[5,7,15];function t(e){var t,r,a=e.length;for(t=0;t<a;t+=1)5===e[t].ty&&(r=void 0,"number"==typeof(r=e[t].t.p).a&&(r.a={a:0,k:r.a}),"number"==typeof r.p&&(r.p={a:0,k:r.p}),"number"==typeof r.r&&(r.r={a:0,k:r.r}))}return function(r){if(i(e,r.v)&&(t(r.layers),r.assets)){var a,n=r.assets.length;for(a=0;a<n;a+=1)r.assets[a].layers&&t(r.assets[a].layers)}}}(),h=function(){var e=[4,1,9];function t(e){var r,a,i,n=e.length;for(r=0;r<n;r+=1)if("gr"===e[r].ty)t(e[r].it);else if("fl"===e[r].ty||"st"===e[r].ty)if(e[r].c.k&&e[r].c.k[0].i)for(i=e[r].c.k.length,a=0;a<i;a+=1)e[r].c.k[a].s&&(e[r].c.k[a].s[0]/=255,e[r].c.k[a].s[1]/=255,e[r].c.k[a].s[2]/=255,e[r].c.k[a].s[3]/=255),e[r].c.k[a].e&&(e[r].c.k[a].e[0]/=255,e[r].c.k[a].e[1]/=255,e[r].c.k[a].e[2]/=255,e[r].c.k[a].e[3]/=255);else e[r].c.k[0]/=255,e[r].c.k[1]/=255,e[r].c.k[2]/=255,e[r].c.k[3]/=255}function r(e){var r,a=e.length;for(r=0;r<a;r+=1)4===e[r].ty&&t(e[r].shapes)}return function(t){if(i(e,t.v)&&(r(t.layers),t.assets)){var a,n=t.assets.length;for(a=0;a<n;a+=1)t.assets[a].layers&&r(t.assets[a].layers)}}}(),c=function(){var e=[4,4,18];function t(e){var r,a,i;for(r=e.length-1;r>=0;r-=1)if("sh"===e[r].ty)if(e[r].ks.k.i)e[r].ks.k.c=e[r].closed;else for(i=e[r].ks.k.length,a=0;a<i;a+=1)e[r].ks.k[a].s&&(e[r].ks.k[a].s[0].c=e[r].closed),e[r].ks.k[a].e&&(e[r].ks.k[a].e[0].c=e[r].closed);else"gr"===e[r].ty&&t(e[r].it)}function r(e){var r,a,i,n,s,o,l=e.length;for(a=0;a<l;a+=1){if((r=e[a]).hasMask){var h=r.masksProperties;for(n=h.length,i=0;i<n;i+=1)if(h[i].pt.k.i)h[i].pt.k.c=h[i].cl;else for(o=h[i].pt.k.length,s=0;s<o;s+=1)h[i].pt.k[s].s&&(h[i].pt.k[s].s[0].c=h[i].cl),h[i].pt.k[s].e&&(h[i].pt.k[s].e[0].c=h[i].cl)}4===r.ty&&t(r.shapes)}}return function(t){if(i(e,t.v)&&(r(t.layers),t.assets)){var a,n=t.assets.length;for(a=0;a<n;a+=1)t.assets[a].layers&&r(t.assets[a].layers)}}}();function d(e){0===e.t.a.length&&e.t.p}var p={completeData:function(r){r.__complete||(h(r),s(r),o(r),l(r),c(r),e(r.layers,r.assets),function(r,a){if(r){var i=0,n=r.length;for(i=0;i<n;i+=1)1===r[i].t&&(r[i].data.layers=t(r[i].data.refId,a),e(r[i].data.layers,a))}}(r.chars,r.assets),r.__complete=!0)}};return p.checkColors=h,p.checkChars=o,p.checkPathProperties=l,p.checkShapes=c,p.completeLayers=e,p}()),n.assetLoader||(n.assetLoader=function(){function e(e){var t=e.getResponseHeader("content-type");return t&&"json"===e.responseType&&-1!==t.indexOf("json")||e.response&&"object"===_typeof$5(e.response)?e.response:e.response&&"string"==typeof e.response?JSON.parse(e.response):e.responseText?JSON.parse(e.responseText):null}return{load:function(t,r,a,i){var n,s=new XMLHttpRequest;try{s.responseType="json"}catch(e){}s.onreadystatechange=function(){if(4===s.readyState)if(200===s.status)n=e(s),a(n);else try{n=e(s),a(n)}catch(e){i&&i(e)}};try{s.open("GET",t,!0)}catch(e){s.open("GET",r+"/"+t,!0)}s.send()}}}()),"loadAnimation"===e.data.type)n.assetLoader.load(e.data.path,e.data.fullPath,(function(t){n.dataManager.completeData(t),n.postMessage({id:e.data.id,payload:t,status:"success"})}),(function(){n.postMessage({id:e.data.id,status:"error"})}));else if("complete"===e.data.type){var t=e.data.animation;n.dataManager.completeData(t),n.postMessage({id:e.data.id,payload:t,status:"success"})}else"loadData"===e.data.type&&n.assetLoader.load(e.data.path,e.data.fullPath,(function(t){n.postMessage({id:e.data.id,payload:t,status:"success"})}),(function(){n.postMessage({id:e.data.id,status:"error"})}))})),t.onmessage=function(e){var t=e.data,r=t.id,i=a[r];a[r]=null,"success"===t.status?i.onComplete(t.payload):i.onError&&i.onError()})}function o(e,t){var i="processId_"+(r+=1);return a[i]={onComplete:e,onError:t},i}return{loadAnimation:function(e,r,a){s();var i=o(r,a);t.postMessage({type:"loadAnimation",path:e,fullPath:window.location.origin+window.location.pathname,id:i})},loadData:function(e,r,a){s();var i=o(r,a);t.postMessage({type:"loadData",path:e,fullPath:window.location.origin+window.location.pathname,id:i})},completeAnimation:function(e,r,a){s();var i=o(r,a);t.postMessage({type:"complete",animation:e,id:i})}}}(),ImagePreloader=function(){var e=function(){var e=createTag("canvas");e.width=1,e.height=1;var t=e.getContext("2d");return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),e}();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 a(e,t,r){var a="";if(e.e)a=e.p;else if(t){var i=e.p;-1!==i.indexOf("images/")&&(i=i.split("/")[1]),a=t+i}else a=r,a+=e.u?e.u:"",a+=e.p;return a}function i(e){var t=0,r=setInterval(function(){(e.getBBox().width||t>500)&&(this._imageLoaded(),clearInterval(r)),t+=1}.bind(this),50)}function n(e){var t={assetData:e},r=a(e,this.assetsPath,this.path);return dataManager.loadData(r,function(e){t.img=e,this._footageLoaded()}.bind(this),function(){t.img={},this._footageLoaded()}.bind(this)),t}function s(){this._imageLoaded=t.bind(this),this._footageLoaded=r.bind(this),this.testImageLoaded=i.bind(this),this.createFootageData=n.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return s.prototype={loadAssets:function(e,t){var r;this.imagesLoadedCb=t;var a=e.length;for(r=0;r<a;r+=1)e[r].layers||(e[r].t&&"seq"!==e[r].t?3===e[r].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(e[r]))):(this.totalImages+=1,this.images.push(this._createImageData(e[r]))))},setAssetsPath:function(e){this.assetsPath=e||""},setPath:function(e){this.path=e||""},loadedImages:function(){return this.totalImages===this.loadedAssets},loadedFootages:function(){return this.totalFootages===this.loadedFootagesCount},destroy:function(){this.imagesLoadedCb=null,this.images.length=0},getAsset:function(e){for(var t=0,r=this.images.length;t<r;){if(this.images[t].assetData===e)return this.images[t].img;t+=1}return null},createImgData:function(t){var r=a(t,this.assetsPath,this.path),i=createTag("img");i.crossOrigin="anonymous",i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){n.img=e,this._imageLoaded()}.bind(this),!1),i.src=r;var n={img:i,assetData:t};return n},createImageData:function(t){var r=a(t,this.assetsPath,this.path),i=createNS("image");isSafari?this.testImageLoaded(i):i.addEventListener("load",this._imageLoaded,!1),i.addEventListener("error",function(){n.img=e,this._imageLoaded()}.bind(this),!1),i.setAttributeNS("http://www.w3.org/1999/xlink","href",r),this._elementHelper.append?this._elementHelper.append(i):this._elementHelper.appendChild(i);var n={img:i,assetData:t};return n},imageLoaded:t,footageLoaded:r,setCacheType:function(e,t){"svg"===e?(this._elementHelper=t,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},s}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(e,t){if(this._cbs[e])for(var r=this._cbs[e],a=0;a<r.length;a+=1)r[a](t)},addEventListener:function(e,t){return this._cbs[e]||(this._cbs[e]=[]),this._cbs[e].push(t),function(){this.removeEventListener(e,t)}.bind(this)},removeEventListener:function(e,t){if(t){if(this._cbs[e]){for(var r=0,a=this._cbs[e].length;r<a;)this._cbs[e][r]===t&&(this._cbs[e].splice(r,1),r-=1,a-=1),r+=1;this._cbs[e].length||(this._cbs[e]=null)}}else this._cbs[e]=null}};var markerParser=function(){function e(e){for(var t,r=e.split("\r\n"),a={},i=0,n=0;n<r.length;n+=1)2===(t=r[n].split(":")).length&&(a[t[0]]=t[1].trim(),i+=1);if(0===i)throw new Error;return a}return function(t){for(var r=[],a=0;a<t.length;a+=1){var i=t[a],n={time:i.tm,duration:i.dr};try{n.payload=JSON.parse(t[a].cm)}catch(r){try{n.payload=e(t[a].cm)}catch(e){n.payload={name:t[a].cm}}}r.push(n)}return r}}(),ProjectInterface=function(){function e(e){this.compositions.push(e)}return function(){function t(e){for(var t=0,r=this.compositions.length;t<r;){if(this.compositions[t].data&&this.compositions[t].data.nm===e)return this.compositions[t].prepareFrame&&this.compositions[t].data.xt&&this.compositions[t].prepareFrame(this.currentFrame),this.compositions[t].compInterface;t+=1}return null}return t.compositions=[],t.currentFrame=0,t.registerComposition=e,t}}(),renderers={},registerRenderer=function(e,t){renderers[e]=t};function getRenderer(e){return renderers[e]}function _typeof$4(e){return _typeof$4="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_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)};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||null===e.loop||void 0===e.loop||!0===e.loop?this.loop=!0:!1===e.loop?this.loop=!1:this.loop=parseInt(e.loop,10),this.autoplay=!("autoplay"in e)||e.autoplay,this.name=e.name?e.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(e,"autoloadSegments")||e.autoloadSegments,this.assetsPath=e.assetsPath,this.initialSegment=e.initialSegment,e.audioFactory&&this.audioController.setAudioFactory(e.audioFactory),e.animationData?this.setupAnimation(e.animationData):e.path&&(-1!==e.path.lastIndexOf("\\")?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&&"object"!==_typeof$4(t)&&(t=JSON.parse(t));var r={wrapper:e,animationData:t},a=e.attributes;r.path=a.getNamedItem("data-animation-path")?a.getNamedItem("data-animation-path").value:a.getNamedItem("data-bm-path")?a.getNamedItem("data-bm-path").value:a.getNamedItem("bm-path")?a.getNamedItem("bm-path").value:"",r.animType=a.getNamedItem("data-anim-type")?a.getNamedItem("data-anim-type").value:a.getNamedItem("data-bm-type")?a.getNamedItem("data-bm-type").value:a.getNamedItem("bm-type")?a.getNamedItem("bm-type").value:a.getNamedItem("data-bm-renderer")?a.getNamedItem("data-bm-renderer").value:a.getNamedItem("bm-renderer")?a.getNamedItem("bm-renderer").value:"canvas";var i=a.getNamedItem("data-anim-loop")?a.getNamedItem("data-anim-loop").value:a.getNamedItem("data-bm-loop")?a.getNamedItem("data-bm-loop").value:a.getNamedItem("bm-loop")?a.getNamedItem("bm-loop").value:"";"false"===i?r.loop=!1:"true"===i?r.loop=!0:""!==i&&(r.loop=parseInt(i,10));var n=a.getNamedItem("data-anim-autoplay")?a.getNamedItem("data-anim-autoplay").value:a.getNamedItem("data-bm-autoplay")?a.getNamedItem("data-bm-autoplay").value:!a.getNamedItem("bm-autoplay")||a.getNamedItem("bm-autoplay").value;r.autoplay="false"!==n,r.name=a.getNamedItem("data-name")?a.getNamedItem("data-name").value:a.getNamedItem("data-bm-name")?a.getNamedItem("data-bm-name").value:a.getNamedItem("bm-name")?a.getNamedItem("bm-name").value:"","false"===(a.getNamedItem("data-anim-prerender")?a.getNamedItem("data-anim-prerender").value:a.getNamedItem("data-bm-prerender")?a.getNamedItem("data-bm-prerender").value:a.getNamedItem("bm-prerender")?a.getNamedItem("bm-prerender").value:"")&&(r.prerender=!1),this.setParams(r)},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,r,a=this.animationData.layers,i=a.length,n=e.layers,s=n.length;for(r=0;r<s;r+=1)for(t=0;t<i;){if(a[t].id===n[r].id){a[t]=n[r];break}t+=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,t=0;t<i;t+=1)this.animationData.assets.push(e.assets[t]);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||0===e.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);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(){this.animationData.segments||(this.timeCompleted=this.totalFrames),this.loadNextSegment()},AnimationItem.prototype.imagesLoaded=function(){this.trigger("loaded_images"),this.checkLoaded()},AnimationItem.prototype.preloadImages=function(){this.imagePreloader.setAssetsPath(this.assetsPath),this.imagePreloader.setPath(this.path),this.imagePreloader.loadAssets(this.animationData.assets,this.imagesLoaded.bind(this))},AnimationItem.prototype.configAnimation=function(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(e){this.triggerConfigError(e)}},AnimationItem.prototype.waitForFontsLoaded=function(){this.renderer&&(this.renderer.globalData.fontManager.isLoaded?this.checkLoaded():setTimeout(this.waitForFontsLoaded.bind(this),20))},AnimationItem.prototype.checkLoaded=function(){if(!this.isLoaded&&this.renderer.globalData.fontManager.isLoaded&&(this.imagePreloader.loadedImages()||"canvas"!==this.renderer.rendererType)&&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(){this.renderer.updateContainerSize()},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(!1!==this.isLoaded&&this.renderer)try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},AnimationItem.prototype.play=function(e){e&&this.name!==e||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_pause"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(e){e&&this.name!==e||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_play"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(e){e&&this.name!==e||(!0===this.isPaused?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]).payload&&t.payload.name===e)return t;return null},AnimationItem.prototype.goToAndStop=function(e,t,r){if(!r||this.name===r){var a=Number(e);if(isNaN(a)){var i=this.getMarkerData(e);i&&this.goToAndStop(i.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 a=Number(e);if(isNaN(a)){var i=this.getMarkerData(e);i&&(i.duration?this.playSegments([i.time,i.time+i.duration],!0):this.goToAndStop(i.time,!0))}else this.goToAndStop(a,t,r);this.play()}},AnimationItem.prototype.advanceTime=function(e){if(!0!==this.isPaused&&!1!==this.isLoaded){var t=this.currentRawFrame+e*this.frameModifier,r=!1;t>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?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):this.checkSegments(t>this.totalFrames?t%this.totalFrames:0)||(r=!0,t=this.totalFrames-1):t<0?this.checkSegments(t%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(r=!0,t=0):(this.setCurrentRawFrameValue(this.totalFrames+t%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!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,-1!==r&&this.goToAndStop(r,!0)},AnimationItem.prototype.playSegments=function(e,t){if(t&&(this.segments.length=0),"object"===_typeof$4(e[0])){var r,a=e.length;for(r=0;r<a;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)},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.renderer=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.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;-1!==r.indexOf("images/")&&(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{this.renderer.getElementByPath(e).updateDocumentData(t,r)}catch(e){}},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)}"enterFrame"===e&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(e,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===e&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(e,this.loop,this.playCount,this.frameMult)),"complete"===e&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(e,this.frameMult)),"segmentStart"===e&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(e,this.firstFrame,this.totalFrames)),"destroy"===e&&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,a=0,i=0,n=!0,s=!1;function o(e){for(var r=0,i=e.target;r<a;)t[r].animation===i&&(t.splice(r,1),r-=1,a-=1,i.isPaused||c()),r+=1}function l(e,r){if(!e)return null;for(var i=0;i<a;){if(t[i].elem===e&&null!==t[i].elem)return t[i].animation;i+=1}var n=new AnimationItem;return d(n,e),n.setData(e,r),n}function h(){i+=1,m()}function c(){i-=1}function d(e,r){e.addEventListener("destroy",o),e.addEventListener("_active",h),e.addEventListener("_idle",c),t.push({elem:r,animation:e}),a+=1}function p(e){var o,l=e-r;for(o=0;o<a;o+=1)t[o].animation.advanceTime(l);r=e,i&&!s?window.requestAnimationFrame(p):n=!0}function u(e){r=e,window.requestAnimationFrame(p)}function m(){!s&&i&&n&&(window.requestAnimationFrame(u),n=!1)}return e.registerAnimation=l,e.loadAnimation=function(e){var t=new AnimationItem;return d(t,null),t.setParams(e),t},e.setSpeed=function(e,r){var i;for(i=0;i<a;i+=1)t[i].animation.setSpeed(e,r)},e.setDirection=function(e,r){var i;for(i=0;i<a;i+=1)t[i].animation.setDirection(e,r)},e.play=function(e){var r;for(r=0;r<a;r+=1)t[r].animation.play(e)},e.pause=function(e){var r;for(r=0;r<a;r+=1)t[r].animation.pause(e)},e.stop=function(e){var r;for(r=0;r<a;r+=1)t[r].animation.stop(e)},e.togglePause=function(e){var r;for(r=0;r<a;r+=1)t[r].animation.togglePause(e)},e.searchAnimations=function(e,t,r){var a,i=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),n=i.length;for(a=0;a<n;a+=1)r&&i[a].setAttribute("data-bm-type",r),l(i[a],e);if(t&&0===n){r||(r="svg");var s=document.getElementsByTagName("body")[0];s.innerText="";var o=createTag("div");o.style.width="100%",o.style.height="100%",o.setAttribute("data-bm-type",r),s.appendChild(o),l(o,e)}},e.resize=function(){var e;for(e=0;e<a;e+=1)t[e].animation.resize()},e.goToAndStop=function(e,r,i){var n;for(n=0;n<a;n+=1)t[n].animation.goToAndStop(e,r,i)},e.destroy=function(e){var r;for(r=a-1;r>=0;r-=1)t[r].animation.destroy(e)},e.freeze=function(){s=!0},e.unfreeze=function(){s=!1,m()},e.setVolume=function(e,r){var i;for(i=0;i<a;i+=1)t[i].animation.setVolume(e,r)},e.mute=function(e){var r;for(r=0;r<a;r+=1)t[r].animation.mute(e)},e.unmute=function(e){var r;for(r=0;r<a;r+=1)t[r].animation.unmute(e)},e.getRegisteredAnimations=function(){var e,r=t.length,a=[];for(e=0;e<r;e+=1)a.push(t[e].animation);return a},e}(),BezierFactory=function(){var e={getBezierEasing:function(e,r,a,i,n){var s=n||("bez_"+e+"_"+r+"_"+a+"_"+i).replace(/\./g,"p");if(t[s])return t[s];var o=new h([e,r,a,i]);return t[s]=o,o}},t={},r=.1,a="function"==typeof Float32Array;function i(e,t){return 1-3*t+3*e}function n(e,t){return 3*t-6*e}function s(e){return 3*e}function o(e,t,r){return((i(t,r)*e+n(t,r))*e+s(t))*e}function l(e,t,r){return 3*i(t,r)*e*e+2*n(t,r)*e+s(t)}function h(e){this._p=e,this._mSampleValues=a?new Float32Array(11):new Array(11),this._precomputed=!1,this.get=this.get.bind(this)}return h.prototype={get:function(e){var t=this._p[0],r=this._p[1],a=this._p[2],i=this._p[3];return this._precomputed||this._precompute(),t===r&&a===i?e:0===e?0:1===e?1:o(this._getTForX(e),r,i)},_precompute:function(){var e=this._p[0],t=this._p[1],r=this._p[2],a=this._p[3];this._precomputed=!0,e===t&&r===a||this._calcSampleValues()},_calcSampleValues:function(){for(var e=this._p[0],t=this._p[2],a=0;a<11;++a)this._mSampleValues[a]=o(a*r,e,t)},_getTForX:function(e){for(var t=this._p[0],a=this._p[2],i=this._mSampleValues,n=0,s=1;10!==s&&i[s]<=e;++s)n+=r;var h=n+(e-i[--s])/(i[s+1]-i[s])*r,c=l(h,t,a);return c>=.001?function(e,t,r,a){for(var i=0;i<4;++i){var n=l(t,r,a);if(0===n)return t;t-=(o(t,r,a)-e)/n}return t}(e,h,t,a):0===c?h:function(e,t,r,a,i){var n,s,l=0;do{(n=o(s=t+(r-t)/2,a,i)-e)>0?r=s:t=s}while(Math.abs(n)>1e-7&&++l<10);return s}(e,n,n+r,t,a)}},e}(),pooling={double:function(e){return e.concat(createSizedArray(e.length))}},poolFactory=function(e,t,r){var a=0,i=e,n=createSizedArray(i);return{newElement:function(){return a?n[a-=1]:t()},release:function(e){a===i&&(n=pooling.double(n),i*=2),r&&r(e),n[a]=e,a+=1}}},bezierLengthPool=poolFactory(8,(function(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}})),segmentsLengthPool=poolFactory(8,(function(){return{lengths:[],totalLength:0}}),(function(e){var t,r=e.lengths.length;for(t=0;t<r;t+=1)bezierLengthPool.release(e.lengths[t]);e.lengths.length=0}));function bezFunction(){var e=Math;function t(e,t,r,a,i,n){var s=e*a+t*i+r*n-i*a-n*e-r*t;return s>-.001&&s<.001}var r=function(e,t,r,a){var i,n,s,o,l,h,c=getDefaultCurveSegments(),d=0,p=[],u=[],m=bezierLengthPool.newElement();for(s=r.length,i=0;i<c;i+=1){for(l=i/(c-1),h=0,n=0;n<s;n+=1)o=bmPow(1-l,3)*e[n]+3*bmPow(1-l,2)*l*r[n]+3*(1-l)*bmPow(l,2)*a[n]+bmPow(l,3)*t[n],p[n]=o,null!==u[n]&&(h+=bmPow(p[n]-u[n],2)),u[n]=p[n];h&&(d+=h=bmSqrt(h)),m.percents[i]=l,m.lengths[i]=d}return m.addedLength=d,m};function a(e){this.segmentLength=0,this.points=new Array(e)}function i(e,t){this.partialLength=e,this.point=t}var n,s=(n={},function(e,r,s,o){var l=(e[0]+"_"+e[1]+"_"+r[0]+"_"+r[1]+"_"+s[0]+"_"+s[1]+"_"+o[0]+"_"+o[1]).replace(/\./g,"p");if(!n[l]){var h,c,d,p,u,m,f,y=getDefaultCurveSegments(),g=0,v=null;2===e.length&&(e[0]!==r[0]||e[1]!==r[1])&&t(e[0],e[1],r[0],r[1],e[0]+s[0],e[1]+s[1])&&t(e[0],e[1],r[0],r[1],r[0]+o[0],r[1]+o[1])&&(y=2);var b=new a(y);for(d=s.length,h=0;h<y;h+=1){for(f=createSizedArray(d),u=h/(y-1),m=0,c=0;c<d;c+=1)p=bmPow(1-u,3)*e[c]+3*bmPow(1-u,2)*u*(e[c]+s[c])+3*(1-u)*bmPow(u,2)*(r[c]+o[c])+bmPow(u,3)*r[c],f[c]=p,null!==v&&(m+=bmPow(f[c]-v[c],2));g+=m=bmSqrt(m),b.points[h]=new i(m,f),v=f}b.segmentLength=g,n[l]=b}return n[l]});function o(e,t){var r=t.percents,a=t.lengths,i=r.length,n=bmFloor((i-1)*e),s=e*t.addedLength,o=0;if(n===i-1||0===n||s===a[n])return r[n];for(var l=a[n]>s?-1:1,h=!0;h;)if(a[n]<=s&&a[n+1]>s?(o=(s-a[n])/(a[n+1]-a[n]),h=!1):n+=l,n<0||n>=i-1){if(n===i-1)return r[n];h=!1}return r[n]+(r[n+1]-r[n])*o}var l=createTypedArray("float32",8);return{getSegmentsLength:function(e){var t,a=segmentsLengthPool.newElement(),i=e.c,n=e.v,s=e.o,o=e.i,l=e._length,h=a.lengths,c=0;for(t=0;t<l-1;t+=1)h[t]=r(n[t],n[t+1],s[t],o[t+1]),c+=h[t].addedLength;return i&&l&&(h[t]=r(n[t],n[0],s[t],o[0]),c+=h[t].addedLength),a.totalLength=c,a},getNewSegment:function(t,r,a,i,n,s,h){n<0?n=0:n>1&&(n=1);var c,d=o(n,h),p=o(s=s>1?1:s,h),u=t.length,m=1-d,f=1-p,y=m*m*m,g=d*m*m*3,v=d*d*m*3,b=d*d*d,x=m*m*f,S=d*m*f+m*d*f+m*m*p,_=d*d*f+m*d*p+d*m*p,T=d*d*p,C=m*f*f,$=d*f*f+m*p*f+m*f*p,E=d*p*f+m*p*p+d*f*p,w=d*p*p,k=f*f*f,A=p*f*f+f*p*f+f*f*p,P=p*p*f+f*p*p+p*f*p,M=p*p*p;for(c=0;c<u;c+=1)l[4*c]=e.round(1e3*(y*t[c]+g*a[c]+v*i[c]+b*r[c]))/1e3,l[4*c+1]=e.round(1e3*(x*t[c]+S*a[c]+_*i[c]+T*r[c]))/1e3,l[4*c+2]=e.round(1e3*(C*t[c]+$*a[c]+E*i[c]+w*r[c]))/1e3,l[4*c+3]=e.round(1e3*(k*t[c]+A*a[c]+P*i[c]+M*r[c]))/1e3;return l},getPointInSegment:function(t,r,a,i,n,s){var l=o(n,s),h=1-l;return[e.round(1e3*(h*h*h*t[0]+(l*h*h+h*l*h+h*h*l)*a[0]+(l*l*h+h*l*l+l*h*l)*i[0]+l*l*l*r[0]))/1e3,e.round(1e3*(h*h*h*t[1]+(l*h*h+h*l*h+h*h*l)*a[1]+(l*l*h+h*l*l+l*h*l)*i[1]+l*l*l*r[1]))/1e3]},buildBezierData:s,pointOnLine2D:t,pointOnLine3D:function(r,a,i,n,s,o,l,h,c){if(0===i&&0===o&&0===c)return t(r,a,n,s,l,h);var d,p=e.sqrt(e.pow(n-r,2)+e.pow(s-a,2)+e.pow(o-i,2)),u=e.sqrt(e.pow(l-r,2)+e.pow(h-a,2)+e.pow(c-i,2)),m=e.sqrt(e.pow(l-n,2)+e.pow(h-s,2)+e.pow(c-o,2));return(d=p>u?p>m?p-u-m:m-u-p:m>u?m-u-p:u-p-m)>-1e-4&&d<1e-4}}}var bez=bezFunction(),PropertyFactory=function(){var e=initialDefaultFrame,t=Math.abs;function r(e,t){var r,i=this.offsetTime;"multidimensional"===this.propType&&(r=createTypedArray("float32",this.pv.length));for(var n,s,o,l,h,c,d,p,u,m=t.lastIndex,f=m,y=this.keyframes.length-1,g=!0;g;){if(n=this.keyframes[f],s=this.keyframes[f+1],f===y-1&&e>=s.t-i){n.h&&(n=s),m=0;break}if(s.t-i>e){m=f;break}f<y-1?f+=1:(m=0,g=!1)}o=this.keyframesMetadata[f]||{};var v,b,x,S,_,T,C,$,E,w,k=s.t-i,A=n.t-i;if(n.to){o.bezierData||(o.bezierData=bez.buildBezierData(n.s,s.s||n.e,n.to,n.ti));var P=o.bezierData;if(e>=k||e<A){var M=e>=k?P.points.length-1:0;for(h=P.points[M].point.length,l=0;l<h;l+=1)r[l]=P.points[M].point[l]}else{o.__fnct?u=o.__fnct:(u=BezierFactory.getBezierEasing(n.o.x,n.o.y,n.i.x,n.i.y,n.n).get,o.__fnct=u),c=u((e-A)/(k-A));var I,D=P.segmentLength*c,F=t.lastFrame<e&&t._lastKeyframeIndex===f?t._lastAddedLength:0;for(p=t.lastFrame<e&&t._lastKeyframeIndex===f?t._lastPoint:0,g=!0,d=P.points.length;g;){if(F+=P.points[p].partialLength,0===D||0===c||p===P.points.length-1){for(h=P.points[p].point.length,l=0;l<h;l+=1)r[l]=P.points[p].point[l];break}if(D>=F&&D<F+P.points[p+1].partialLength){for(I=(D-F)/P.points[p+1].partialLength,h=P.points[p].point.length,l=0;l<h;l+=1)r[l]=P.points[p].point[l]+(P.points[p+1].point[l]-P.points[p].point[l])*I;break}p<d-1?p+=1:g=!1}t._lastPoint=p,t._lastAddedLength=F-P.points[p].partialLength,t._lastKeyframeIndex=f}}else{var R,O,L,j,B;if(y=n.s.length,v=s.s||n.e,this.sh&&1!==n.h)if(e>=k)r[0]=v[0],r[1]=v[1],r[2]=v[2];else if(e<=A)r[0]=n.s[0],r[1]=n.s[1],r[2]=n.s[2];else{var N=a(n.s),V=a(v);b=r,x=function(e,t,r){var a,i,n,s,o,l=[],h=e[0],c=e[1],d=e[2],p=e[3],u=t[0],m=t[1],f=t[2],y=t[3];return(i=h*u+c*m+d*f+p*y)<0&&(i=-i,u=-u,m=-m,f=-f,y=-y),1-i>1e-6?(a=Math.acos(i),n=Math.sin(a),s=Math.sin((1-r)*a)/n,o=Math.sin(r*a)/n):(s=1-r,o=r),l[0]=s*h+o*u,l[1]=s*c+o*m,l[2]=s*d+o*f,l[3]=s*p+o*y,l}(N,V,(e-A)/(k-A)),S=x[0],_=x[1],T=x[2],C=x[3],$=Math.atan2(2*_*C-2*S*T,1-2*_*_-2*T*T),E=Math.asin(2*S*_+2*T*C),w=Math.atan2(2*S*C-2*_*T,1-2*S*S-2*T*T),b[0]=$/degToRads,b[1]=E/degToRads,b[2]=w/degToRads}else for(f=0;f<y;f+=1)1!==n.h&&(e>=k?c=1:e<A?c=0:(n.o.x.constructor===Array?(o.__fnct||(o.__fnct=[]),o.__fnct[f]?u=o.__fnct[f]:(R=void 0===n.o.x[f]?n.o.x[0]:n.o.x[f],O=void 0===n.o.y[f]?n.o.y[0]:n.o.y[f],L=void 0===n.i.x[f]?n.i.x[0]:n.i.x[f],j=void 0===n.i.y[f]?n.i.y[0]:n.i.y[f],u=BezierFactory.getBezierEasing(R,O,L,j).get,o.__fnct[f]=u)):o.__fnct?u=o.__fnct:(R=n.o.x,O=n.o.y,L=n.i.x,j=n.i.y,u=BezierFactory.getBezierEasing(R,O,L,j).get,n.keyframeMetadata=u),c=u((e-A)/(k-A)))),v=s.s||n.e,B=1===n.h?n.s[f]:n.s[f]+(v[f]-n.s[f])*c,"multidimensional"===this.propType?r[f]=B:r=B}return t.lastIndex=m,r}function a(e){var t=e[0]*degToRads,r=e[1]*degToRads,a=e[2]*degToRads,i=Math.cos(t/2),n=Math.cos(r/2),s=Math.cos(a/2),o=Math.sin(t/2),l=Math.sin(r/2),h=Math.sin(a/2);return[o*l*s+i*n*h,o*n*s+i*l*h,i*l*s-o*n*h,i*n*s-o*l*h]}function i(){var t=this.comp.renderedFrame-this.offsetTime,r=this.keyframes[0].t-this.offsetTime,a=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(t===this._caching.lastFrame||this._caching.lastFrame!==e&&(this._caching.lastFrame>=a&&t>=a||this._caching.lastFrame<r&&t<r))){this._caching.lastFrame>=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var i=this.interpolateValue(t,this._caching);this.pv=i}return this._caching.lastFrame=t,this.pv}function n(e){var r;if("unidimensional"===this.propType)r=e*this.mult,t(this.v-r)>1e-5&&(this.v=r,this._mdf=!0);else for(var a=0,i=this.v.length;a<i;)r=e[a]*this.mult,t(this.v[a]-r)>1e-5&&(this.v[a]=r,this._mdf=!0),a+=1}function s(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e;this.lock=!0,this._mdf=this._isFirstFrame;var 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 o(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function l(e,t,r,a){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=a,this.comp=e.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=s,this.setVValue=n,this.addEffect=o}function h(e,t,r,a){var i;this.propType="multidimensional",this.mult=r||1,this.data=t,this._mdf=!1,this.elem=e,this.container=a,this.comp=e.comp,this.k=!1,this.kf=!1,this.frameId=-1;var l=t.k.length;for(this.v=createTypedArray("float32",l),this.pv=createTypedArray("float32",l),this.vel=createTypedArray("float32",l),i=0;i<l;i+=1)this.v[i]=t.k[i]*this.mult,this.pv[i]=t.k[i];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=s,this.setVValue=n,this.addEffect=o}function c(t,a,l,h){this.propType="unidimensional",this.keyframes=a.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.frameId=-1,this._caching={lastFrame:e,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=a,this.mult=l||1,this.elem=t,this.container=h,this.comp=t.comp,this.v=e,this.pv=e,this._isFirstFrame=!0,this.getValue=s,this.setVValue=n,this.interpolateValue=r,this.effectsSequence=[i.bind(this)],this.addEffect=o}function d(t,a,l,h){var c;this.propType="multidimensional";var d,p,u,m,f=a.k.length;for(c=0;c<f-1;c+=1)a.k[c].to&&a.k[c].s&&a.k[c+1]&&a.k[c+1].s&&(d=a.k[c].s,p=a.k[c+1].s,u=a.k[c].to,m=a.k[c].ti,(2===d.length&&(d[0]!==p[0]||d[1]!==p[1])&&bez.pointOnLine2D(d[0],d[1],p[0],p[1],d[0]+u[0],d[1]+u[1])&&bez.pointOnLine2D(d[0],d[1],p[0],p[1],p[0]+m[0],p[1]+m[1])||3===d.length&&(d[0]!==p[0]||d[1]!==p[1]||d[2]!==p[2])&&bez.pointOnLine3D(d[0],d[1],d[2],p[0],p[1],p[2],d[0]+u[0],d[1]+u[1],d[2]+u[2])&&bez.pointOnLine3D(d[0],d[1],d[2],p[0],p[1],p[2],p[0]+m[0],p[1]+m[1],p[2]+m[2]))&&(a.k[c].to=null,a.k[c].ti=null),d[0]===p[0]&&d[1]===p[1]&&0===u[0]&&0===u[1]&&0===m[0]&&0===m[1]&&(2===d.length||d[2]===p[2]&&0===u[2]&&0===m[2])&&(a.k[c].to=null,a.k[c].ti=null));this.effectsSequence=[i.bind(this)],this.data=a,this.keyframes=a.k,this.keyframesMetadata=[],this.offsetTime=t.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=l||1,this.elem=t,this.container=h,this.comp=t.comp,this.getValue=s,this.setVValue=n,this.interpolateValue=r,this.frameId=-1;var y=a.k[0].s.length;for(this.v=createTypedArray("float32",y),this.pv=createTypedArray("float32",y),c=0;c<y;c+=1)this.v[c]=e,this.pv[c]=e;this._caching={lastFrame:e,lastIndex:0,value:createTypedArray("float32",y)},this.addEffect=o}return{getProp:function(e,t,r,a,i){var n;if(t.k.length)if("number"==typeof t.k[0])n=new h(e,t,a,i);else switch(r){case 0:n=new c(e,t,a,i);break;case 1:n=new d(e,t,a,i)}else n=new l(e,t,a,i);return n.effectsSequence.length&&i.addDynamicProperty(n),n}}}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(e){-1===this.dynamicProperties.indexOf(e)&&(this.dynamicProperties.push(e),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var e;this._mdf=!1;var t=this.dynamicProperties.length;for(e=0;e<t;e+=1)this.dynamicProperties[e].getValue(),this.dynamicProperties[e]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(e){this.container=e,this.dynamicProperties=[],this._mdf=!1,this._isAnimated=!1}};var pointPool=poolFactory(8,(function(){return createTypedArray("float32",2)}));function ShapePath(){this.c=!1,this._length=0,this._maxLength=8,this.v=createSizedArray(this._maxLength),this.o=createSizedArray(this._maxLength),this.i=createSizedArray(this._maxLength)}ShapePath.prototype.setPathData=function(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,a,i){var n;switch(this._length=Math.max(this._length,a+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=[]}(!n[a]||n[a]&&!i)&&(n[a]=pointPool.newElement()),n[a][0]=e,n[a][1]=t},ShapePath.prototype.setTripleAt=function(e,t,r,a,i,n,s,o){this.setXYAt(e,t,"v",s,o),this.setXYAt(r,a,"o",s,o),this.setXYAt(i,n,"i",s,o)},ShapePath.prototype.reverse=function(){var e=new ShapePath;e.setPathData(this.c,this._length);var t=this.v,r=this.o,a=this.i,i=0;this.c&&(e.setTripleAt(t[0][0],t[0][1],a[0][0],a[0][1],r[0][0],r[0][1],0,!1),i=1);var n,s=this._length-1,o=this._length;for(n=i;n<o;n+=1)e.setTripleAt(t[s][0],t[s][1],a[s][0],a[s][1],r[s][0],r[s][1],n,!1),s-=1;return e};var shapePool=(factory=poolFactory(4,(function(){return new ShapePath}),(function(e){var t,r=e._length;for(t=0;t<r;t+=1)pointPool.release(e.v[t]),pointPool.release(e.i[t]),pointPool.release(e.o[t]),e.v[t]=null,e.i[t]=null,e.o[t]=null;e._length=0,e.c=!1})),factory.clone=function(e){var t,r=factory.newElement(),a=void 0===e._length?e.v.length:e._length;for(r.setLength(a),r.c=e.c,t=0;t<a;t+=1)r.setTripleAt(e.v[t][0],e.v[t][1],e.o[t][0],e.o[t][1],e.i[t][0],e.i[t][1],t);return r},factory),factory;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=(ob={newShapeCollection:function(){return _length?pool[_length-=1]:new ShapeCollection},release:function(e){var t,r=e._length;for(t=0;t<r;t+=1)shapePool.release(e.shapes[t]);e._length=0,_length===_maxLength&&(pool=pooling.double(pool),_maxLength*=2),pool[_length]=e,_length+=1}},_length=0,_maxLength=4,pool=createSizedArray(_maxLength),ob),ob,_length,_maxLength,pool,ShapePropertyFactory=function(){var e=-999999;function t(e,t,r){var a,i,n,s,o,l,h,c,d,p=r.lastIndex,u=this.keyframes;if(e<u[0].t-this.offsetTime)a=u[0].s[0],n=!0,p=0;else if(e>=u[u.length-1].t-this.offsetTime)a=u[u.length-1].s?u[u.length-1].s[0]:u[u.length-2].e[0],n=!0;else{for(var m,f,y,g=p,v=u.length-1,b=!0;b&&(m=u[g],!((f=u[g+1]).t-this.offsetTime>e));)g<v-1?g+=1:b=!1;if(y=this.keyframesMetadata[g]||{},p=g,!(n=1===m.h)){if(e>=f.t-this.offsetTime)c=1;else if(e<m.t-this.offsetTime)c=0;else{var x;y.__fnct?x=y.__fnct:(x=BezierFactory.getBezierEasing(m.o.x,m.o.y,m.i.x,m.i.y).get,y.__fnct=x),c=x((e-(m.t-this.offsetTime))/(f.t-this.offsetTime-(m.t-this.offsetTime)))}i=f.s?f.s[0]:m.e[0]}a=m.s[0]}for(l=t._length,h=a.i[0].length,r.lastIndex=p,s=0;s<l;s+=1)for(o=0;o<h;o+=1)d=n?a.i[s][o]:a.i[s][o]+(i.i[s][o]-a.i[s][o])*c,t.i[s][o]=d,d=n?a.o[s][o]:a.o[s][o]+(i.o[s][o]-a.o[s][o])*c,t.o[s][o]=d,d=n?a.v[s][o]:a.v[s][o]+(i.v[s][o]-a.v[s][o])*c,t.v[s][o]=d}function r(){var t=this.comp.renderedFrame-this.offsetTime,r=this.keyframes[0].t-this.offsetTime,a=this.keyframes[this.keyframes.length-1].t-this.offsetTime,i=this._caching.lastFrame;return i!==e&&(i<r&&t<r||i>a&&t>a)||(this._caching.lastIndex=i<t?this._caching.lastIndex:0,this.interpolateShape(t,this.pv,this._caching)),this._caching.lastFrame=t,this.pv}function a(){this.paths=this.localShapeCollection}function i(e){(function(e,t){if(e._length!==t._length||e.c!==t.c)return!1;var r,a=e._length;for(r=0;r<a;r+=1)if(e.v[r][0]!==t.v[r][0]||e.v[r][1]!==t.v[r][1]||e.o[r][0]!==t.o[r][0]||e.o[r][1]!==t.o[r][1]||e.i[r][0]!==t.i[r][0]||e.i[r][1]!==t.i[r][1])return!1;return!0})(this.v,e)||(this.v=shapePool.clone(e),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function n(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e,t;this.lock=!0,this._mdf=!1,e=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var r=this.effectsSequence.length;for(t=0;t<r;t+=1)e=this.effectsSequence[t](e);this.setVValue(e),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function s(e,t,r){this.propType="shape",this.comp=e.comp,this.container=e,this.elem=e,this.data=t,this.k=!1,this.kf=!1,this._mdf=!1;var i=3===r?t.pt.k:t.ks.k;this.v=shapePool.clone(i),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=a,this.effectsSequence=[]}function o(e){this.effectsSequence.push(e),this.container.addDynamicProperty(this)}function l(t,i,n){this.propType="shape",this.comp=t.comp,this.elem=t,this.container=t,this.offsetTime=t.data.st,this.keyframes=3===n?i.pt.k:i.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var s=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,s),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=e,this.reset=a,this._caching={lastFrame:e,lastIndex:0},this.effectsSequence=[r.bind(this)]}s.prototype.interpolateShape=t,s.prototype.getValue=n,s.prototype.setVValue=i,s.prototype.addEffect=o,l.prototype.getValue=n,l.prototype.interpolateShape=t,l.prototype.setVValue=i,l.prototype.addEffect=o;var h=function(){var e=roundCorner;function t(e,t){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=t.d,this.elem=e,this.comp=e.comp,this.frameId=-1,this.initDynamicPropertyContainer(e),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.s=PropertyFactory.getProp(e,t.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return t.prototype={reset:a,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var t=this.p.v[0],r=this.p.v[1],a=this.s.v[0]/2,i=this.s.v[1]/2,n=3!==this.d,s=this.v;s.v[0][0]=t,s.v[0][1]=r-i,s.v[1][0]=n?t+a:t-a,s.v[1][1]=r,s.v[2][0]=t,s.v[2][1]=r+i,s.v[3][0]=n?t-a:t+a,s.v[3][1]=r,s.i[0][0]=n?t-a*e:t+a*e,s.i[0][1]=r-i,s.i[1][0]=n?t+a:t-a,s.i[1][1]=r-i*e,s.i[2][0]=n?t+a*e:t-a*e,s.i[2][1]=r+i,s.i[3][0]=n?t-a:t+a,s.i[3][1]=r+i*e,s.o[0][0]=n?t+a*e:t-a*e,s.o[0][1]=r-i,s.o[1][0]=n?t+a:t-a,s.o[1][1]=r+i*e,s.o[2][0]=n?t-a*e:t+a*e,s.o[2][1]=r+i,s.o[3][0]=n?t-a:t+a,s.o[3][1]=r-i*e}},extendPrototype([DynamicPropertyContainer],t),t}(),c=function(){function e(e,t){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=e,this.comp=e.comp,this.data=t,this.frameId=-1,this.d=t.d,this.initDynamicPropertyContainer(e),1===t.sy?(this.ir=PropertyFactory.getProp(e,t.ir,0,0,this),this.is=PropertyFactory.getProp(e,t.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(e,t.pt,0,0,this),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.r=PropertyFactory.getProp(e,t.r,0,degToRads,this),this.or=PropertyFactory.getProp(e,t.or,0,0,this),this.os=PropertyFactory.getProp(e,t.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 e.prototype={reset:a,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var e,t,r,a,i=2*Math.floor(this.pt.v),n=2*Math.PI/i,s=!0,o=this.or.v,l=this.ir.v,h=this.os.v,c=this.is.v,d=2*Math.PI*o/(2*i),p=2*Math.PI*l/(2*i),u=-Math.PI/2;u+=this.r.v;var m=3===this.data.d?-1:1;for(this.v._length=0,e=0;e<i;e+=1){r=s?h:c,a=s?d:p;var f=(t=s?o:l)*Math.cos(u),y=t*Math.sin(u),g=0===f&&0===y?0:y/Math.sqrt(f*f+y*y),v=0===f&&0===y?0:-f/Math.sqrt(f*f+y*y);f+=+this.p.v[0],y+=+this.p.v[1],this.v.setTripleAt(f,y,f-g*a*r*m,y-v*a*r*m,f+g*a*r*m,y+v*a*r*m,e,!0),s=!s,u+=n*m}},convertPolygonToPath:function(){var e,t=Math.floor(this.pt.v),r=2*Math.PI/t,a=this.or.v,i=this.os.v,n=2*Math.PI*a/(4*t),s=.5*-Math.PI,o=3===this.data.d?-1:1;for(s+=this.r.v,this.v._length=0,e=0;e<t;e+=1){var l=a*Math.cos(s),h=a*Math.sin(s),c=0===l&&0===h?0:h/Math.sqrt(l*l+h*h),d=0===l&&0===h?0:-l/Math.sqrt(l*l+h*h);l+=+this.p.v[0],h+=+this.p.v[1],this.v.setTripleAt(l,h,l-c*n*i*o,h-d*n*i*o,l+c*n*i*o,h+d*n*i*o,e,!0),s+=r*o}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],e),e}(),d=function(){function e(e,t){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=e,this.comp=e.comp,this.frameId=-1,this.d=t.d,this.initDynamicPropertyContainer(e),this.p=PropertyFactory.getProp(e,t.p,1,0,this),this.s=PropertyFactory.getProp(e,t.s,1,0,this),this.r=PropertyFactory.getProp(e,t.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return e.prototype={convertRectToPath:function(){var e=this.p.v[0],t=this.p.v[1],r=this.s.v[0]/2,a=this.s.v[1]/2,i=bmMin(r,a,this.r.v),n=i*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(e+r,t-a+i,e+r,t-a+i,e+r,t-a+n,0,!0),this.v.setTripleAt(e+r,t+a-i,e+r,t+a-n,e+r,t+a-i,1,!0),0!==i?(this.v.setTripleAt(e+r-i,t+a,e+r-i,t+a,e+r-n,t+a,2,!0),this.v.setTripleAt(e-r+i,t+a,e-r+n,t+a,e-r+i,t+a,3,!0),this.v.setTripleAt(e-r,t+a-i,e-r,t+a-i,e-r,t+a-n,4,!0),this.v.setTripleAt(e-r,t-a+i,e-r,t-a+n,e-r,t-a+i,5,!0),this.v.setTripleAt(e-r+i,t-a,e-r+i,t-a,e-r+n,t-a,6,!0),this.v.setTripleAt(e+r-i,t-a,e+r-n,t-a,e+r-i,t-a,7,!0)):(this.v.setTripleAt(e-r,t+a,e-r+n,t+a,e-r,t+a,2),this.v.setTripleAt(e-r,t-a,e-r,t-a+n,e-r,t-a,3))):(this.v.setTripleAt(e+r,t-a+i,e+r,t-a+n,e+r,t-a+i,0,!0),0!==i?(this.v.setTripleAt(e+r-i,t-a,e+r-i,t-a,e+r-n,t-a,1,!0),this.v.setTripleAt(e-r+i,t-a,e-r+n,t-a,e-r+i,t-a,2,!0),this.v.setTripleAt(e-r,t-a+i,e-r,t-a+i,e-r,t-a+n,3,!0),this.v.setTripleAt(e-r,t+a-i,e-r,t+a-n,e-r,t+a-i,4,!0),this.v.setTripleAt(e-r+i,t+a,e-r+i,t+a,e-r+n,t+a,5,!0),this.v.setTripleAt(e+r-i,t+a,e+r-n,t+a,e+r-i,t+a,6,!0),this.v.setTripleAt(e+r,t+a-i,e+r,t+a-i,e+r,t+a-n,7,!0)):(this.v.setTripleAt(e-r,t-a,e-r+n,t-a,e-r,t-a,1,!0),this.v.setTripleAt(e-r,t+a,e-r,t+a-n,e-r,t+a,2,!0),this.v.setTripleAt(e+r,t+a,e+r-n,t+a,e+r,t+a,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:a},extendPrototype([DynamicPropertyContainer],e),e}(),p={getShapeProp:function(e,t,r){var a;return 3===r||4===r?a=(3===r?t.pt:t.ks).k.length?new l(e,t,r):new s(e,t,r):5===r?a=new d(e,t):6===r?a=new h(e,t):7===r&&(a=new c(e,t)),a.k&&e.addDynamicProperty(a),a},getConstructorFunction:function(){return s},getKeyframedConstructorFunction:function(){return l}};return p}(),Matrix=function(){var e=Math.cos,t=Math.sin,r=Math.tan,a=Math.round;function i(){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(r){if(0===r)return this;var a=e(r),i=t(r);return this._t(a,-i,0,0,i,a,0,0,0,0,1,0,0,0,0,1)}function s(r){if(0===r)return this;var a=e(r),i=t(r);return this._t(1,0,0,0,0,a,-i,0,0,i,a,0,0,0,0,1)}function o(r){if(0===r)return this;var a=e(r),i=t(r);return this._t(a,0,i,0,0,1,0,0,-i,0,a,0,0,0,0,1)}function l(r){if(0===r)return this;var a=e(r),i=t(r);return this._t(a,-i,0,0,i,a,0,0,0,0,1,0,0,0,0,1)}function h(e,t){return this._t(1,t,e,1,0,0)}function c(e,t){return this.shear(r(e),r(t))}function d(a,i){var n=e(i),s=t(i);return this._t(n,s,0,0,-s,n,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,r(a),1,0,0,0,0,1,0,0,0,0,1)._t(n,-s,0,0,s,n,0,0,0,0,1,0,0,0,0,1)}function p(e,t,r){return r||0===r||(r=1),1===e&&1===t&&1===r?this:this._t(e,0,0,0,0,t,0,0,0,0,r,0,0,0,0,1)}function u(e,t,r,a,i,n,s,o,l,h,c,d,p,u,m,f){return this.props[0]=e,this.props[1]=t,this.props[2]=r,this.props[3]=a,this.props[4]=i,this.props[5]=n,this.props[6]=s,this.props[7]=o,this.props[8]=l,this.props[9]=h,this.props[10]=c,this.props[11]=d,this.props[12]=p,this.props[13]=u,this.props[14]=m,this.props[15]=f,this}function m(e,t,r){return r=r||0,0!==e||0!==t||0!==r?this._t(1,0,0,0,0,1,0,0,0,0,1,0,e,t,r,1):this}function f(e,t,r,a,i,n,s,o,l,h,c,d,p,u,m,f){var y=this.props;if(1===e&&0===t&&0===r&&0===a&&0===i&&1===n&&0===s&&0===o&&0===l&&0===h&&1===c&&0===d)return y[12]=y[12]*e+y[15]*p,y[13]=y[13]*n+y[15]*u,y[14]=y[14]*c+y[15]*m,y[15]*=f,this._identityCalculated=!1,this;var g=y[0],v=y[1],b=y[2],x=y[3],S=y[4],_=y[5],T=y[6],C=y[7],$=y[8],E=y[9],w=y[10],k=y[11],A=y[12],P=y[13],M=y[14],I=y[15];return y[0]=g*e+v*i+b*l+x*p,y[1]=g*t+v*n+b*h+x*u,y[2]=g*r+v*s+b*c+x*m,y[3]=g*a+v*o+b*d+x*f,y[4]=S*e+_*i+T*l+C*p,y[5]=S*t+_*n+T*h+C*u,y[6]=S*r+_*s+T*c+C*m,y[7]=S*a+_*o+T*d+C*f,y[8]=$*e+E*i+w*l+k*p,y[9]=$*t+E*n+w*h+k*u,y[10]=$*r+E*s+w*c+k*m,y[11]=$*a+E*o+w*d+k*f,y[12]=A*e+P*i+M*l+I*p,y[13]=A*t+P*n+M*h+I*u,y[14]=A*r+P*s+M*c+I*m,y[15]=A*a+P*o+M*d+I*f,this._identityCalculated=!1,this}function y(){return this._identityCalculated||(this._identity=!(1!==this.props[0]||0!==this.props[1]||0!==this.props[2]||0!==this.props[3]||0!==this.props[4]||1!==this.props[5]||0!==this.props[6]||0!==this.props[7]||0!==this.props[8]||0!==this.props[9]||1!==this.props[10]||0!==this.props[11]||0!==this.props[12]||0!==this.props[13]||0!==this.props[14]||1!==this.props[15]),this._identityCalculated=!0),this._identity}function g(e){for(var t=0;t<16;){if(e.props[t]!==this.props[t])return!1;t+=1}return!0}function v(e){var t;for(t=0;t<16;t+=1)e.props[t]=this.props[t];return e}function b(e){var t;for(t=0;t<16;t+=1)this.props[t]=e[t]}function x(e,t,r){return{x:e*this.props[0]+t*this.props[4]+r*this.props[8]+this.props[12],y:e*this.props[1]+t*this.props[5]+r*this.props[9]+this.props[13],z:e*this.props[2]+t*this.props[6]+r*this.props[10]+this.props[14]}}function S(e,t,r){return e*this.props[0]+t*this.props[4]+r*this.props[8]+this.props[12]}function _(e,t,r){return e*this.props[1]+t*this.props[5]+r*this.props[9]+this.props[13]}function T(e,t,r){return e*this.props[2]+t*this.props[6]+r*this.props[10]+this.props[14]}function C(){var e=this.props[0]*this.props[5]-this.props[1]*this.props[4],t=this.props[5]/e,r=-this.props[1]/e,a=-this.props[4]/e,i=this.props[0]/e,n=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/e,s=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/e,o=new Matrix;return o.props[0]=t,o.props[1]=r,o.props[4]=a,o.props[5]=i,o.props[12]=n,o.props[13]=s,o}function $(e){return this.getInverseMatrix().applyToPointArray(e[0],e[1],e[2]||0)}function E(e){var t,r=e.length,a=[];for(t=0;t<r;t+=1)a[t]=$(e[t]);return a}function w(e,t,r){var a=createTypedArray("float32",6);if(this.isIdentity())a[0]=e[0],a[1]=e[1],a[2]=t[0],a[3]=t[1],a[4]=r[0],a[5]=r[1];else{var i=this.props[0],n=this.props[1],s=this.props[4],o=this.props[5],l=this.props[12],h=this.props[13];a[0]=e[0]*i+e[1]*s+l,a[1]=e[0]*n+e[1]*o+h,a[2]=t[0]*i+t[1]*s+l,a[3]=t[0]*n+t[1]*o+h,a[4]=r[0]*i+r[1]*s+l,a[5]=r[0]*n+r[1]*o+h}return a}function k(e,t,r){return this.isIdentity()?[e,t,r]:[e*this.props[0]+t*this.props[4]+r*this.props[8]+this.props[12],e*this.props[1]+t*this.props[5]+r*this.props[9]+this.props[13],e*this.props[2]+t*this.props[6]+r*this.props[10]+this.props[14]]}function A(e,t){if(this.isIdentity())return e+","+t;var r=this.props;return Math.round(100*(e*r[0]+t*r[4]+r[12]))/100+","+Math.round(100*(e*r[1]+t*r[5]+r[13]))/100}function P(){for(var e=0,t=this.props,r="matrix3d(";e<16;)r+=a(1e4*t[e])/1e4,r+=15===e?")":",",e+=1;return r}function M(e){return e<1e-6&&e>0||e>-1e-6&&e<0?a(1e4*e)/1e4:e}function I(){var e=this.props;return"matrix("+M(e[0])+","+M(e[1])+","+M(e[4])+","+M(e[5])+","+M(e[12])+","+M(e[13])+")"}return function(){this.reset=i,this.rotate=n,this.rotateX=s,this.rotateY=o,this.rotateZ=l,this.skew=c,this.skewFromAxis=d,this.shear=h,this.scale=p,this.setTransform=u,this.translate=m,this.transform=f,this.applyToPoint=x,this.applyToX=S,this.applyToY=_,this.applyToZ=T,this.applyToPointArray=k,this.applyToTriplePoints=w,this.applyToPointStringified=A,this.toCSS=P,this.to2dCSS=I,this.clone=v,this.cloneFromProps=b,this.equals=g,this.inversePoints=E,this.inversePoint=$,this.getInverseMatrix=C,this._t=this.transform,this.isIdentity=y,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(e){return _typeof$3="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_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("string"==typeof e)switch(e){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(e)&&e>1&&setDefaultCurveSegments(e)}function inBrowser(){return"undefined"!=typeof navigator}function installPlugin(e,t){"expressions"===e&&setExpressionsPlugin(t)}function getFactory(e){switch(e){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(e){for(var t=queryString.split("&"),r=0;r<t.length;r+=1){var a=t[r].split("=");if(decodeURIComponent(a[0])==e)return decodeURIComponent(a[1])}return null}lottie.play=animationManager.play,lottie.pause=animationManager.pause,lottie.setLocationHref=setLocation,lottie.togglePause=animationManager.togglePause,lottie.setSpeed=animationManager.setSpeed,lottie.setDirection=animationManager.setDirection,lottie.stop=animationManager.stop,lottie.searchAnimations=searchAnimations,lottie.registerAnimation=animationManager.registerAnimation,lottie.loadAnimation=loadAnimation,lottie.setSubframeRendering=setSubframeRendering,lottie.resize=animationManager.resize,lottie.goToAndStop=animationManager.goToAndStop,lottie.destroy=animationManager.destroy,lottie.setQuality=setQuality,lottie.inBrowser=inBrowser,lottie.installPlugin=installPlugin,lottie.freeze=animationManager.freeze,lottie.unfreeze=animationManager.unfreeze,lottie.setVolume=animationManager.setVolume,lottie.mute=animationManager.mute,lottie.unmute=animationManager.unmute,lottie.getRegisteredAnimations=animationManager.getRegisteredAnimations,lottie.useWebWorker=setWebWorker,lottie.setIDPrefix=setPrefix,lottie.__getFactory=getFactory,lottie.version="5.9.5";var queryString="",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{"object"!==_typeof$3(exports)&&(window.bodymovin=lottie)}catch(e){}var ShapeModifiers=function(){var e={},t={};return e.registerModifier=function(e,r){t[e]||(t[e]=r)},e.getModifier=function(e,r,a){return new t[e](r,a)},e}();function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}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),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,a,i){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 s,o,l=[],h=n.length;for(s=0;s<h;s+=1){var c,d;(o=n[s]).e*i<a||o.s*i>a+r||(c=o.s*i<=a?0:(o.s*i-a)/r,d=o.e*i>=a+r?1:(o.e*i-a)/r,l.push([c,d]))}return l.length||l.push([0,0]),l},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,a,i;if(this._mdf||e){var n=this.o.v%360/360;if(n<0&&(n+=1),(t=this.s.v>1?1+n:this.s.v<0?0+n:this.s.v+n)>(r=this.e.v>1?1+n:this.e.v<0?0+n:this.e.v+n)){var s=t;t=r,r=s}t=1e-4*Math.round(1e4*t),r=1e-4*Math.round(1e4*r),this.sValue=t,this.eValue=r}else t=this.sValue,r=this.eValue;var o,l,h,c,d,p=this.shapes.length,u=0;if(r===t)for(i=0;i<p;i+=1)this.shapes[i].localShapeCollection.releaseShapes(),this.shapes[i].shape._mdf=!0,this.shapes[i].shape.paths=this.shapes[i].localShapeCollection,this._mdf&&(this.shapes[i].pathsData.length=0);else if(1===r&&0===t||0===r&&1===t){if(this._mdf)for(i=0;i<p;i+=1)this.shapes[i].pathsData.length=0,this.shapes[i].shape._mdf=!0}else{var m,f,y=[];for(i=0;i<p;i+=1)if((m=this.shapes[i]).shape._mdf||this._mdf||e||2===this.m){if(l=(a=m.shape.paths)._length,d=0,!m.shape._mdf&&m.pathsData.length)d=m.totalShapeLength;else{for(h=this.releasePathsData(m.pathsData),o=0;o<l;o+=1)c=bez.getSegmentsLength(a.shapes[o]),h.push(c),d+=c.totalLength;m.totalShapeLength=d,m.pathsData=h}u+=d,m.shape._mdf=!0}else m.shape.paths=m.localShapeCollection;var g,v=t,b=r,x=0;for(i=p-1;i>=0;i-=1)if((m=this.shapes[i]).shape._mdf){for((f=m.localShapeCollection).releaseShapes(),2===this.m&&p>1?(g=this.calculateShapeEdges(t,r,m.totalShapeLength,x,u),x+=m.totalShapeLength):g=[[v,b]],l=g.length,o=0;o<l;o+=1){v=g[o][0],b=g[o][1],y.length=0,b<=1?y.push({s:m.totalShapeLength*v,e:m.totalShapeLength*b}):v>=1?y.push({s:m.totalShapeLength*(v-1),e:m.totalShapeLength*(b-1)}):(y.push({s:m.totalShapeLength*v,e:m.totalShapeLength}),y.push({s:0,e:m.totalShapeLength*(b-1)}));var S=this.addShapes(m,y[0]);if(y[0].s!==y[0].e){if(y.length>1)if(m.shape.paths.shapes[m.shape.paths._length-1].c){var _=S.pop();this.addPaths(S,f),S=this.addShapes(m,y[1],_)}else this.addPaths(S,f),S=this.addShapes(m,y[1]);this.addPaths(S,f)}}m.shape.paths=f}}},TrimModifier.prototype.addPaths=function(e,t){var r,a=e.length;for(r=0;r<a;r+=1)t.addShape(e[r])},TrimModifier.prototype.addSegment=function(e,t,r,a,i,n,s){i.setXYAt(t[0],t[1],"o",n),i.setXYAt(r[0],r[1],"i",n+1),s&&i.setXYAt(e[0],e[1],"v",n),i.setXYAt(a[0],a[1],"v",n+1)},TrimModifier.prototype.addSegmentFromArray=function(e,t,r,a){t.setXYAt(e[1],e[5],"o",r),t.setXYAt(e[2],e[6],"i",r+1),a&&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 a,i,n,s,o,l,h,c,d=e.pathsData,p=e.shape.paths.shapes,u=e.shape.paths._length,m=0,f=[],y=!0;for(r?(o=r._length,c=r._length):(r=shapePool.newElement(),o=0,c=0),f.push(r),a=0;a<u;a+=1){for(l=d[a].lengths,r.c=p[a].c,n=p[a].c?l.length:l.length+1,i=1;i<n;i+=1)if(m+(s=l[i-1]).addedLength<t.s)m+=s.addedLength,r.c=!1;else{if(m>t.e){r.c=!1;break}t.s<=m&&t.e>=m+s.addedLength?(this.addSegment(p[a].v[i-1],p[a].o[i-1],p[a].i[i],p[a].v[i],r,o,y),y=!1):(h=bez.getNewSegment(p[a].v[i-1],p[a].v[i],p[a].o[i-1],p[a].i[i],(t.s-m)/s.addedLength,(t.e-m)/s.addedLength,l[i-1]),this.addSegmentFromArray(h,r,o,y),y=!1,r.c=!1),m+=s.addedLength,o+=1}if(p[a].c&&l.length){if(s=l[i-1],m<=t.e){var g=l[i-1].addedLength;t.s<=m&&t.e>=m+g?(this.addSegment(p[a].v[i-1],p[a].o[i-1],p[a].i[0],p[a].v[0],r,o,y),y=!1):(h=bez.getNewSegment(p[a].v[i-1],p[a].v[0],p[a].o[i-1],p[a].i[0],(t.s-m)/g,(t.e-m)/g,l[i-1]),this.addSegmentFromArray(h,r,o,y),y=!1,r.c=!1)}else r.c=!1;m+=s.addedLength,o+=1}if(r._length&&(r.setXYAt(r.v[c][0],r.v[c][1],"i",c),r.setXYAt(r.v[r._length-1][0],r.v[r._length-1][1],"o",r._length-1)),m>t.e)break;a<u-1&&(r=shapePool.newElement(),y=!0,f.push(r),o=0)}return f},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,a=[0,0],i=e._length,n=0;for(n=0;n<i;n+=1)a[0]+=e.v[n][0],a[1]+=e.v[n][1];a[0]/=i,a[1]/=i;var s,o,l,h,c,d,p=shapePool.newElement();for(p.c=e.c,n=0;n<i;n+=1)s=e.v[n][0]+(a[0]-e.v[n][0])*r,o=e.v[n][1]+(a[1]-e.v[n][1])*r,l=e.o[n][0]+(a[0]-e.o[n][0])*-r,h=e.o[n][1]+(a[1]-e.o[n][1])*-r,c=e.i[n][0]+(a[0]-e.i[n][0])*-r,d=e.i[n][1]+(a[1]-e.i[n][1])*-r,p.setTripleAt(s,o,l,h,c,d,n);return p},PuckerAndBloatModifier.prototype.processShapes=function(e){var t,r,a,i,n,s,o=this.shapes.length,l=this.amount.v;if(0!==l)for(r=0;r<o;r+=1){if(s=(n=this.shapes[r]).localShapeCollection,n.shape._mdf||this._mdf||e)for(s.releaseShapes(),n.shape._mdf=!0,t=n.shape.paths.shapes,i=n.shape.paths._length,a=0;a<i;a+=1)s.addShape(this.processPath(t[a],l));n.shape.paths=n.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var e=[0,0];function t(e,t,r){if(this.elem=e,this.frameId=-1,this.propType="transform",this.data=t,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(r||e),t.p&&t.p.s?(this.px=PropertyFactory.getProp(e,t.p.x,0,0,this),this.py=PropertyFactory.getProp(e,t.p.y,0,0,this),t.p.z&&(this.pz=PropertyFactory.getProp(e,t.p.z,0,0,this))):this.p=PropertyFactory.getProp(e,t.p||{k:[0,0,0]},1,0,this),t.rx){if(this.rx=PropertyFactory.getProp(e,t.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(e,t.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(e,t.rz,0,degToRads,this),t.or.k[0].ti){var a,i=t.or.k.length;for(a=0;a<i;a+=1)t.or.k[a].to=null,t.or.k[a].ti=null}this.or=PropertyFactory.getProp(e,t.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(e,t.r||{k:0},0,degToRads,this);t.sk&&(this.sk=PropertyFactory.getProp(e,t.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(e,t.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(e,t.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(e,t.s||{k:[100,100,100]},1,.01,this),t.o?this.o=PropertyFactory.getProp(e,t.o,0,.01,e):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return t.prototype={applyToMatrix:function(e){var t=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||t,this.a&&e.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&e.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&e.skewFromAxis(-this.sk.v,this.sa.v),this.r?e.rotate(-this.r.v):e.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?e.translate(this.px.v,this.py.v,-this.pz.v):e.translate(this.px.v,this.py.v,0):e.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(t){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||t){var r;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 a,i;if(r=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(a=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/r,0),i=this.p.getValueAtTime(this.p.keyframes[0].t/r,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(a=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/r,0),i=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/r,0)):(a=this.p.pv,i=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/r,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){a=[],i=[];var n=this.px,s=this.py;n._caching.lastFrame+n.offsetTime<=n.keyframes[0].t?(a[0]=n.getValueAtTime((n.keyframes[0].t+.01)/r,0),a[1]=s.getValueAtTime((s.keyframes[0].t+.01)/r,0),i[0]=n.getValueAtTime(n.keyframes[0].t/r,0),i[1]=s.getValueAtTime(s.keyframes[0].t/r,0)):n._caching.lastFrame+n.offsetTime>=n.keyframes[n.keyframes.length-1].t?(a[0]=n.getValueAtTime(n.keyframes[n.keyframes.length-1].t/r,0),a[1]=s.getValueAtTime(s.keyframes[s.keyframes.length-1].t/r,0),i[0]=n.getValueAtTime((n.keyframes[n.keyframes.length-1].t-.01)/r,0),i[1]=s.getValueAtTime((s.keyframes[s.keyframes.length-1].t-.01)/r,0)):(a=[n.pv,s.pv],i[0]=n.getValueAtTime((n._caching.lastFrame+n.offsetTime-.01)/r,n.offsetTime),i[1]=s.getValueAtTime((s._caching.lastFrame+s.offsetTime-.01)/r,s.offsetTime))}else a=i=e;this.v.rotate(-Math.atan2(a[1]-i[1],a[0]-i[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}},precalculateMatrix:function(){if(!this.a.k&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}},autoOrient:function(){}},extendPrototype([DynamicPropertyContainer],t),t.prototype.addDynamicProperty=function(e){this._addDynamicProperty(e),this.elem.addDynamicProperty(e),this._isDirty=!0},t.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(e,r,a){return new t(e,r,a)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function getFontProperties(e){for(var t=e.fStyle?e.fStyle.split(" "):[],r="normal",a="normal",i=t.length,n=0;n<i;n+=1)switch(t[n].toLowerCase()){case"italic":a="italic";break;case"bold":r="700";break;case"black":r="900";break;case"medium":r="500";break;case"regular":case"normal":r="400";break;case"light":case"thin":r="200"}return{style:a,weight:e.fWeight||r}}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,a,i,n){var s=n?-1:1,o=a.s.v[0]+(1-a.s.v[0])*(1-i),l=a.s.v[1]+(1-a.s.v[1])*(1-i);e.translate(a.p.v[0]*s*i,a.p.v[1]*s*i,a.p.v[2]),t.translate(-a.a.v[0],-a.a.v[1],a.a.v[2]),t.rotate(-a.r.v*s*i),t.translate(a.a.v[0],a.a.v[1],a.a.v[2]),r.translate(-a.a.v[0],-a.a.v[1],a.a.v[2]),r.scale(n?1/o:o,n?1/l:l),r.translate(a.a.v[0],a.a.v[1],a.a.v[2])},RepeaterModifier.prototype.init=function(e,t,r,a){for(this.elem=e,this.arr=t,this.pos=r,this.elemsData=a,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,"gr"===e[t].ty&&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,a=e.length;for(r=0;r<a;r+=1)e[r]._render=t,"gr"===e[r].ty&&this.changeGroupRender(e[r].it,t)},RepeaterModifier.prototype.processShapes=function(e){var t,r,a,i,n,s=!1;if(this._mdf||e){var o,l=Math.ceil(this.c.v);if(this._groups.length<l){for(;this._groups.length<l;){var h={it:this.cloneElements(this._elements),ty:"gr"};h.it.push({a:{a:0,ix:1,k:[0,0]},nm:"Transform",o:{a:0,ix:7,k:100},p:{a:0,ix:2,k:[0,0]},r:{a:1,ix:6,k:[{s:0,e:0,t:0},{s:0,e:0,t:1}]},s:{a:0,ix:3,k:[100,100]},sa:{a:0,ix:5,k:0},sk:{a:0,ix:4,k:0},ty:"tr"}),this.arr.splice(0,0,h),this._groups.splice(0,0,h),this._currentCopies+=1}this.elem.reloadShapes(),s=!0}for(n=0,a=0;a<=this._groups.length-1;a+=1){if(o=n<l,this._groups[a]._render=o,this.changeGroupRender(this._groups[a].it,o),!o){var c=this.elemsData[a].it,d=c[c.length-1];0!==d.transform.op.v?(d.transform.op._mdf=!0,d.transform.op.v=0):d.transform.op._mdf=!1}n+=1}this._currentCopies=l;var p=this.o.v,u=p%1,m=p>0?Math.floor(p):Math.ceil(p),f=this.pMatrix.props,y=this.rMatrix.props,g=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var v,b,x=0;if(p>0){for(;x<m;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),x+=1;u&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,u,!1),x+=u)}else if(p<0){for(;x>m;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),x-=1;u&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-u,!0),x-=u)}for(a=1===this.data.m?0:this._currentCopies-1,i=1===this.data.m?1:-1,n=this._currentCopies;n;){if(b=(r=(t=this.elemsData[a].it)[t.length-1].transform.mProps.v.props).length,t[t.length-1].transform.mProps._mdf=!0,t[t.length-1].transform.op._mdf=!0,t[t.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(a/(this._currentCopies-1)),0!==x){for((0!==a&&1===i||a!==this._currentCopies-1&&-1===i)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(y[0],y[1],y[2],y[3],y[4],y[5],y[6],y[7],y[8],y[9],y[10],y[11],y[12],y[13],y[14],y[15]),this.matrix.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]),this.matrix.transform(f[0],f[1],f[2],f[3],f[4],f[5],f[6],f[7],f[8],f[9],f[10],f[11],f[12],f[13],f[14],f[15]),v=0;v<b;v+=1)r[v]=this.matrix.props[v];this.matrix.reset()}else for(this.matrix.reset(),v=0;v<b;v+=1)r[v]=this.matrix.props[v];x+=1,n-=1,a+=i}}else for(n=this._currentCopies,a=0,i=1;n;)r=(t=this.elemsData[a].it)[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,a+=i;return s},RepeaterModifier.prototype.addShape=function(){},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,a=shapePool.newElement();a.c=e.c;var i,n,s,o,l,h,c,d,p,u,m,f,y=e._length,g=0;for(r=0;r<y;r+=1)i=e.v[r],s=e.o[r],n=e.i[r],i[0]===s[0]&&i[1]===s[1]&&i[0]===n[0]&&i[1]===n[1]?0!==r&&r!==y-1||e.c?(o=0===r?e.v[y-1]:e.v[r-1],h=(l=Math.sqrt(Math.pow(i[0]-o[0],2)+Math.pow(i[1]-o[1],2)))?Math.min(l/2,t)/l:0,c=m=i[0]+(o[0]-i[0])*h,d=f=i[1]-(i[1]-o[1])*h,p=c-(c-i[0])*roundCorner,u=d-(d-i[1])*roundCorner,a.setTripleAt(c,d,p,u,m,f,g),g+=1,o=r===y-1?e.v[0]:e.v[r+1],h=(l=Math.sqrt(Math.pow(i[0]-o[0],2)+Math.pow(i[1]-o[1],2)))?Math.min(l/2,t)/l:0,c=p=i[0]+(o[0]-i[0])*h,d=u=i[1]+(o[1]-i[1])*h,m=c-(c-i[0])*roundCorner,f=d-(d-i[1])*roundCorner,a.setTripleAt(c,d,p,u,m,f,g),g+=1):(a.setTripleAt(i[0],i[1],s[0],s[1],n[0],n[1],g),g+=1):(a.setTripleAt(e.v[r][0],e.v[r][1],e.o[r][0],e.o[r][1],e.i[r][0],e.i[r][1],g),g+=1);return a},RoundCornersModifier.prototype.processShapes=function(e){var t,r,a,i,n,s,o=this.shapes.length,l=this.rd.v;if(0!==l)for(r=0;r<o;r+=1){if(s=(n=this.shapes[r]).localShapeCollection,n.shape._mdf||this._mdf||e)for(s.releaseShapes(),n.shape._mdf=!0,t=n.shape.paths.shapes,i=n.shape.paths._length,a=0;a<i;a+=1)s.addShape(this.processPath(t[a],l));n.shape.paths=n.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var FontManager=function(){var e={w:0,size:0,shapes:[],data:{shapes:[]}},t=[];t=t.concat([2304,2305,2306,2307,2362,2363,2364,2364,2366,2367,2368,2369,2370,2371,2372,2373,2374,2375,2376,2377,2378,2379,2380,2381,2382,2383,2387,2388,2389,2390,2391,2402,2403]);var r=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"],a=[65039,8205];function i(e,t){var r=createTag("span");r.setAttribute("aria-hidden",!0),r.style.fontFamily=t;var a=createTag("span");a.innerText="giItT1WQy@!-/#",r.style.position="absolute",r.style.left="-10000px",r.style.top="-10000px",r.style.fontSize="300px",r.style.fontVariant="normal",r.style.fontStyle="normal",r.style.fontWeight="normal",r.style.letterSpacing="0",r.appendChild(a),document.body.appendChild(r);var i=a.offsetWidth;return a.style.fontFamily=function(e){var t,r=e.split(","),a=r.length,i=[];for(t=0;t<a;t+=1)"sans-serif"!==r[t]&&"monospace"!==r[t]&&i.push(r[t]);return i.join(",")}(e)+", "+t,{node:a,w:i,parent:r}}function n(e,t){var r,a=document.body&&t?"svg":"canvas",i=getFontProperties(e);if("svg"===a){var n=createNS("text");n.style.fontSize="100px",n.setAttribute("font-family",e.fFamily),n.setAttribute("font-style",i.style),n.setAttribute("font-weight",i.weight),n.textContent="1",e.fClass?(n.style.fontFamily="inherit",n.setAttribute("class",e.fClass)):n.style.fontFamily=e.fFamily,t.appendChild(n),r=n}else{var s=new OffscreenCanvas(500,500).getContext("2d");s.font=i.style+" "+i.weight+" 100px "+e.fFamily,r=s}return{measureText:function(e){return"svg"===a?(r.textContent=e,r.getComputedTextLength()):r.measureText(e).width}}}var s=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)};s.isModifier=function(e,t){var a=e.toString(16)+t.toString(16);return-1!==r.indexOf(a)},s.isZeroWidthJoiner=function(e,t){return t?e===a[0]&&t===a[1]:e===a[1]},s.isCombinedCharacter=function(e){return-1!==t.indexOf(e)};var o={addChars:function(e){if(e){var t;this.chars||(this.chars=[]);var r,a,i=e.length,n=this.chars.length;for(t=0;t<i;t+=1){for(r=0,a=!1;r<n;)this.chars[r].style===e[t].style&&this.chars[r].fFamily===e[t].fFamily&&this.chars[r].ch===e[t].ch&&(a=!0),r+=1;a||(this.chars.push(e[t]),n+=1)}}},addFonts:function(e,t){if(e){if(this.chars)return this.isLoaded=!0,void(this.fonts=e.list);if(!document.body)return this.isLoaded=!0,e.list.forEach((function(e){e.helper=n(e),e.cache={}})),void(this.fonts=e.list);var r,a=e.list,s=a.length,o=s;for(r=0;r<s;r+=1){var l,h,c=!0;if(a[r].loaded=!1,a[r].monoCase=i(a[r].fFamily,"monospace"),a[r].sansCase=i(a[r].fFamily,"sans-serif"),a[r].fPath){if("p"===a[r].fOrigin||3===a[r].origin){if((l=document.querySelectorAll('style[f-forigin="p"][f-family="'+a[r].fFamily+'"], style[f-origin="3"][f-family="'+a[r].fFamily+'"]')).length>0&&(c=!1),c){var d=createTag("style");d.setAttribute("f-forigin",a[r].fOrigin),d.setAttribute("f-origin",a[r].origin),d.setAttribute("f-family",a[r].fFamily),d.type="text/css",d.innerText="@font-face {font-family: "+a[r].fFamily+"; font-style: normal; src: url('"+a[r].fPath+"');}",t.appendChild(d)}}else if("g"===a[r].fOrigin||1===a[r].origin){for(l=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),h=0;h<l.length;h+=1)-1!==l[h].href.indexOf(a[r].fPath)&&(c=!1);if(c){var p=createTag("link");p.setAttribute("f-forigin",a[r].fOrigin),p.setAttribute("f-origin",a[r].origin),p.type="text/css",p.rel="stylesheet",p.href=a[r].fPath,document.body.appendChild(p)}}else if("t"===a[r].fOrigin||2===a[r].origin){for(l=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),h=0;h<l.length;h+=1)a[r].fPath===l[h].src&&(c=!1);if(c){var u=createTag("link");u.setAttribute("f-forigin",a[r].fOrigin),u.setAttribute("f-origin",a[r].origin),u.setAttribute("rel","stylesheet"),u.setAttribute("href",a[r].fPath),t.appendChild(u)}}}else a[r].loaded=!0,o-=1;a[r].helper=n(a[r],t),a[r].cache={},this.fonts.push(a[r])}0===o?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(t,r,a){for(var i=0,n=this.chars.length;i<n;){if(this.chars[i].ch===t&&this.chars[i].style===r&&this.chars[i].fFamily===a)return this.chars[i];i+=1}return("string"==typeof t&&13!==t.charCodeAt(0)||!t)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",t,r,a)),e},getFontByName:function(e){for(var t=0,r=this.fonts.length;t<r;){if(this.fonts[t].fName===e)return this.fonts[t];t+=1}return this.fonts[0]},measureText:function(e,t,r){var a=this.getFontByName(t),i=e.charCodeAt(0);if(!a.cache[i+1]){var n=a.helper;if(" "===e){var s=n.measureText("|"+e+"|"),o=n.measureText("||");a.cache[i+1]=(s-o)/100}else a.cache[i+1]=n.measureText(e)/100}return a.cache[i+1]*r},checkLoadedFonts:function(){var e,t,r,a=this.fonts.length,i=a;for(e=0;e<a;e+=1)this.fonts[e].loaded?i-=1:"n"===this.fonts[e].fOrigin||0===this.fonts[e].origin?this.fonts[e].loaded=!0:(t=this.fonts[e].monoCase.node,r=this.fonts[e].monoCase.w,t.offsetWidth!==r?(i-=1,this.fonts[e].loaded=!0):(t=this.fonts[e].sansCase.node,r=this.fonts[e].sansCase.w,t.offsetWidth!==r&&(i-=1,this.fonts[e].loaded=!0)),this.fonts[e].loaded&&(this.fonts[e].sansCase.parent.parentNode.removeChild(this.fonts[e].sansCase.parent),this.fonts[e].monoCase.parent.parentNode.removeChild(this.fonts[e].monoCase.parent)));0!==i&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}};return s.prototype=o,s}();function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(e){-1===this.renderableComponents.indexOf(e)&&this.renderableComponents.push(e)},removeRenderableComponent:function(e){-1!==this.renderableComponents.indexOf(e)&&this.renderableComponents.splice(this.renderableComponents.indexOf(e),1)},prepareRenderableFrame:function(e){this.checkLayerLimits(e)},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(e){this.data.ip-this.data.st<=e&&this.data.op-this.data.st>e?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var e,t=this.renderableComponents.length;for(e=0;e<t;e+=1)this.renderableComponents[e].renderFrame(this._isFirstFrame)},sourceRectAtTime:function(){return{top:0,left:0,width:100,height:100}},getLayerSize:function(){return 5===this.data.ty?{w:this.data.textData.width,h:this.data.textData.height}:{w:this.data.width,h:this.data.height}}};var MaskManagerInterface=function(){function e(e,t){this._mask=e,this._data=t}return 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(),100*this._mask.op.v}}),function(t){var r,a=createSizedArray(t.viewData.length),i=t.viewData.length;for(r=0;r<i;r+=1)a[r]=new e(t.viewData[r],t.masksProperties[r]);return function(e){for(r=0;r<i;){if(t.masksProperties[r].nm===e)return a[r];r+=1}return null}}}(),ExpressionPropertyInterface=function(){var e={pv:0,v:0,mult:1},t={pv:[0,0,0],v:[0,0,0],mult:1};function r(e,t,r){Object.defineProperty(e,"velocity",{get:function(){return t.getVelocityAtTime(t.comp.currentFrame)}}),e.numKeys=t.keyframes?t.keyframes.length:0,e.key=function(a){if(!e.numKeys)return 0;var i="";i="s"in t.keyframes[a-1]?t.keyframes[a-1].s:"e"in t.keyframes[a-2]?t.keyframes[a-2].e:t.keyframes[a-2].s;var n="unidimensional"===r?new Number(i):Object.assign({},i);return n.time=t.keyframes[a-1].t/t.elem.comp.globalData.frameRate,n.value="unidimensional"===r?i[0]:i,n},e.valueAtTime=t.getValueAtTime,e.speedAtTime=t.getSpeedAtTime,e.velocityAtTime=t.getVelocityAtTime,e.propertyGroup=t.propertyGroup}function a(){return e}return function(i){return i?"unidimensional"===i.propType?function(t){t&&"pv"in t||(t=e);var a=1/t.mult,i=t.pv*a,n=new Number(i);return n.value=i,r(n,t,"unidimensional"),function(){return t.k&&t.getValue(),i=t.v*a,n.value!==i&&((n=new Number(i)).value=i,r(n,t,"unidimensional")),n}}(i):function(e){e&&"pv"in e||(e=t);var a=1/e.mult,i=e.data&&e.data.l||e.pv.length,n=createTypedArray("float32",i),s=createTypedArray("float32",i);return n.value=s,r(n,e,"multidimensional"),function(){e.k&&e.getValue();for(var t=0;t<i;t+=1)s[t]=e.v[t]*a,n[t]=s[t];return n}}(i):a}}(),TransformExpressionInterface=function(e){function t(e){switch(e){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}}var r,a,i,n;return 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)}),e.p?n=ExpressionPropertyInterface(e.p):(r=ExpressionPropertyInterface(e.px),a=ExpressionPropertyInterface(e.py),e.pz&&(i=ExpressionPropertyInterface(e.pz))),Object.defineProperty(t,"position",{get:function(){return e.p?n():[r(),a(),i?i():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(e){var t=new Matrix;return void 0!==e?this._elem.finalTransform.mProp.getValueAtTime(e).clone(t):this._elem.finalTransform.mProp.applyToMatrix(t),t}function t(e,t){var r=this.getMatrix(t);return r.props[12]=0,r.props[13]=0,r.props[14]=0,this.applyPoint(r,e)}function r(e,t){var r=this.getMatrix(t);return this.applyPoint(r,e)}function a(e,t){var r=this.getMatrix(t);return r.props[12]=0,r.props[13]=0,r.props[14]=0,this.invertPoint(r,e)}function i(e,t){var r=this.getMatrix(t);return this.invertPoint(r,e)}function n(e,t){if(this._elem.hierarchy&&this._elem.hierarchy.length){var r,a=this._elem.hierarchy.length;for(r=0;r<a;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(e)}return e.applyToPointArray(t[0],t[1],t[2]||0)}function s(e,t){if(this._elem.hierarchy&&this._elem.hierarchy.length){var r,a=this._elem.hierarchy.length;for(r=0;r<a;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(e)}return e.inversePoint(t)}function o(e){var t=new Matrix;if(t.reset(),this._elem.finalTransform.mProp.applyToMatrix(t),this._elem.hierarchy&&this._elem.hierarchy.length){var r,a=this._elem.hierarchy.length;for(r=0;r<a;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(t);return t.inversePoint(e)}return t.inversePoint(e)}function l(){return[1,1,1,1]}return function(h){var c;function d(e){switch(e){case"ADBE Root Vectors Group":case"Contents":case 2:return d.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return c;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return d.effect;case"ADBE Text Properties":return d.textInterface;default:return null}}d.getMatrix=e,d.invertPoint=s,d.applyPoint=n,d.toWorld=r,d.toWorldVec=t,d.fromWorld=i,d.fromWorldVec=a,d.toComp=r,d.fromComp=o,d.sampleImage=l,d.sourceRectAtTime=h.sourceRectAtTime.bind(h),d._elem=h;var p=getDescriptor(c=TransformExpressionInterface(h.finalTransform.mProp),"anchorPoint");return Object.defineProperties(d,{hasParent:{get:function(){return h.hierarchy.length}},parent:{get:function(){return h.hierarchy[0].layerInterface}},rotation:getDescriptor(c,"rotation"),scale:getDescriptor(c,"scale"),position:getDescriptor(c,"position"),opacity:getDescriptor(c,"opacity"),anchorPoint:p,anchor_point:p,transform:{get:function(){return c}},active:{get:function(){return h.isInRange}}}),d.startTime=h.data.st,d.index=h.data.ind,d.source=h.data.refId,d.height=0===h.data.ty?h.data.h:100,d.width=0===h.data.ty?h.data.w:100,d.inPoint=h.data.ip/h.comp.globalData.frameRate,d.outPoint=h.data.op/h.comp.globalData.frameRate,d._name=h.data.nm,d.registerMaskInterface=function(e){d.mask=new MaskManagerInterface(e,h)},d.registerEffectsInterface=function(e){d.effect=e},d}}(),propertyGroupFactory=function(e,t){return function(r){return(r=void 0===r?1:r)<=0?e:t(r-1)}},PropertyInterface=function(e,t){var r={_name:e};return function(e){return(e=void 0===e?1:e)<=0?r:t(e-1)}},EffectsExpressionInterface=function(){function e(r,a,i,n){function s(e){for(var t=r.ef,a=0,i=t.length;a<i;){if(e===t[a].nm||e===t[a].mn||e===t[a].ix)return 5===t[a].ty?h[a]:h[a]();a+=1}throw new Error}var o,l=propertyGroupFactory(s,i),h=[],c=r.ef.length;for(o=0;o<c;o+=1)5===r.ef[o].ty?h.push(e(r.ef[o],a.effectElements[o],a.effectElements[o].propertyGroup,n)):h.push(t(a.effectElements[o],r.ef[o].ty,n,l));return"ADBE Color Control"===r.mn&&Object.defineProperty(s,"color",{get:function(){return h[0]()}}),Object.defineProperties(s,{numProperties:{get:function(){return r.np}},_name:{value:r.nm},propertyGroup:{value:l}}),s.enabled=0!==r.en,s.active=s.enabled,s}function t(e,t,r,a){var i=ExpressionPropertyInterface(e.p);return e.p.setGroupProperty&&e.p.setGroupProperty(PropertyInterface("",a)),function(){return 10===t?r.comp.compInterface(e.p.v):i()}}return{createEffectsInterface:function(t,r){if(t.effectsManager){var a,i=[],n=t.data.ef,s=t.effectsManager.effectElements.length;for(a=0;a<s;a+=1)i.push(e(n[a],t.effectsManager.effectElements[a],r,t));var o=t.data.ef||[],l=function(e){for(a=0,s=o.length;a<s;){if(e===o[a].nm||e===o[a].mn||e===o[a].ix)return i[a];a+=1}return null};return Object.defineProperty(l,"numProperties",{get:function(){return o.length}}),l}return null}}}(),CompExpressionInterface=function(e){function t(t){for(var r=0,a=e.layers.length;r<a;){if(e.layers[r].nm===t||e.layers[r].ind===t)return e.elements[r].layerInterface;r+=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},ShapePathInterface=function(e,t,r){var a=t.sh;function i(e){return"Shape"===e||"shape"===e||"Path"===e||"path"===e||"ADBE Vector Shape"===e||2===e?i.path:null}var n=propertyGroupFactory(i,r);return a.setGroupProperty(PropertyInterface("Path",n)),Object.defineProperties(i,{path:{get:function(){return a.k&&a.getValue(),a}},shape:{get:function(){return a.k&&a.getValue(),a}},_name:{value:e.nm},ix:{value:e.ix},propertyIndex:{value:e.ix},mn:{value:e.mn},propertyGroup:{value:r}}),i},ShapeExpressionInterface=function(){function e(e,s,p){var u,m=[],f=e?e.length:0;for(u=0;u<f;u+=1)"gr"===e[u].ty?m.push(t(e[u],s[u],p)):"fl"===e[u].ty?m.push(r(e[u],s[u],p)):"st"===e[u].ty?m.push(i(e[u],s[u],p)):"tm"===e[u].ty?m.push(n(e[u],s[u],p)):"tr"===e[u].ty||("el"===e[u].ty?m.push(o(e[u],s[u],p)):"sr"===e[u].ty?m.push(l(e[u],s[u],p)):"sh"===e[u].ty?m.push(ShapePathInterface(e[u],s[u],p)):"rc"===e[u].ty?m.push(h(e[u],s[u],p)):"rd"===e[u].ty?m.push(c(e[u],s[u],p)):"rp"===e[u].ty?m.push(d(e[u],s[u],p)):"gf"===e[u].ty?m.push(a(e[u],s[u],p)):m.push((e[u],s[u],function(){return null})));return m}function t(t,r,a){var i=function(e){switch(e){case"ADBE Vectors Group":case"Contents":case 2:return i.content;default:return i.transform}};i.propertyGroup=propertyGroupFactory(i,a);var n=function(t,r,a){var i,n=function(e){for(var t=0,r=i.length;t<r;){if(i[t]._name===e||i[t].mn===e||i[t].propertyIndex===e||i[t].ix===e||i[t].ind===e)return i[t];t+=1}return"number"==typeof e?i[e-1]:null};n.propertyGroup=propertyGroupFactory(n,a),i=e(t.it,r.it,n.propertyGroup),n.numProperties=i.length;var o=s(t.it[t.it.length-1],r.it[r.it.length-1],n.propertyGroup);return n.transform=o,n.propertyIndex=t.cix,n._name=t.nm,n}(t,r,i.propertyGroup),o=s(t.it[t.it.length-1],r.it[r.it.length-1],i.propertyGroup);return i.content=n,i.transform=o,Object.defineProperty(i,"_name",{get:function(){return t.nm}}),i.numProperties=t.np,i.propertyIndex=t.ix,i.nm=t.nm,i.mn=t.mn,i}function r(e,t,r){function a(e){return"Color"===e||"color"===e?a.color:"Opacity"===e||"opacity"===e?a.opacity:null}return Object.defineProperties(a,{color:{get:ExpressionPropertyInterface(t.c)},opacity:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm},mn:{value:e.mn}}),t.c.setGroupProperty(PropertyInterface("Color",r)),t.o.setGroupProperty(PropertyInterface("Opacity",r)),a}function a(e,t,r){function a(e){return"Start Point"===e||"start point"===e?a.startPoint:"End Point"===e||"end point"===e?a.endPoint:"Opacity"===e||"opacity"===e?a.opacity:null}return Object.defineProperties(a,{startPoint:{get:ExpressionPropertyInterface(t.s)},endPoint:{get:ExpressionPropertyInterface(t.e)},opacity:{get:ExpressionPropertyInterface(t.o)},type:{get:function(){return"a"}},_name:{value:e.nm},mn:{value:e.mn}}),t.s.setGroupProperty(PropertyInterface("Start Point",r)),t.e.setGroupProperty(PropertyInterface("End Point",r)),t.o.setGroupProperty(PropertyInterface("Opacity",r)),a}function i(e,t,r){var a,i=propertyGroupFactory(h,r),n=propertyGroupFactory(l,i);function s(r){Object.defineProperty(l,e.d[r].nm,{get:ExpressionPropertyInterface(t.d.dataProps[r].p)})}var o=e.d?e.d.length:0,l={};for(a=0;a<o;a+=1)s(a),t.d.dataProps[a].p.setGroupProperty(n);function h(e){return"Color"===e||"color"===e?h.color:"Opacity"===e||"opacity"===e?h.opacity:"Stroke Width"===e||"stroke width"===e?h.strokeWidth:null}return Object.defineProperties(h,{color:{get:ExpressionPropertyInterface(t.c)},opacity:{get:ExpressionPropertyInterface(t.o)},strokeWidth:{get:ExpressionPropertyInterface(t.w)},dash:{get:function(){return l}},_name:{value:e.nm},mn:{value:e.mn}}),t.c.setGroupProperty(PropertyInterface("Color",i)),t.o.setGroupProperty(PropertyInterface("Opacity",i)),t.w.setGroupProperty(PropertyInterface("Stroke Width",i)),h}function n(e,t,r){function a(t){return t===e.e.ix||"End"===t||"end"===t?a.end:t===e.s.ix?a.start:t===e.o.ix?a.offset:null}var i=propertyGroupFactory(a,r);return a.propertyIndex=e.ix,t.s.setGroupProperty(PropertyInterface("Start",i)),t.e.setGroupProperty(PropertyInterface("End",i)),t.o.setGroupProperty(PropertyInterface("Offset",i)),a.propertyIndex=e.ix,a.propertyGroup=r,Object.defineProperties(a,{start:{get:ExpressionPropertyInterface(t.s)},end:{get:ExpressionPropertyInterface(t.e)},offset:{get:ExpressionPropertyInterface(t.o)},_name:{value:e.nm}}),a.mn=e.mn,a}function s(e,t,r){function a(t){return e.a.ix===t||"Anchor Point"===t?a.anchorPoint:e.o.ix===t||"Opacity"===t?a.opacity:e.p.ix===t||"Position"===t?a.position:e.r.ix===t||"Rotation"===t||"ADBE Vector Rotation"===t?a.rotation:e.s.ix===t||"Scale"===t?a.scale:e.sk&&e.sk.ix===t||"Skew"===t?a.skew:e.sa&&e.sa.ix===t||"Skew Axis"===t?a.skewAxis:null}var i=propertyGroupFactory(a,r);return t.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",i)),t.transform.mProps.p.setGroupProperty(PropertyInterface("Position",i)),t.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",i)),t.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",i)),t.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",i)),t.transform.mProps.sk&&(t.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",i)),t.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",i))),t.transform.op.setGroupProperty(PropertyInterface("Opacity",i)),Object.defineProperties(a,{opacity:{get:ExpressionPropertyInterface(t.transform.mProps.o)},position:{get:ExpressionPropertyInterface(t.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(t.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(t.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(t.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(t.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(t.transform.mProps.sa)},_name:{value:e.nm}}),a.ty="tr",a.mn=e.mn,a.propertyGroup=r,a}function o(e,t,r){function a(t){return e.p.ix===t?a.position:e.s.ix===t?a.size:null}var i=propertyGroupFactory(a,r);a.propertyIndex=e.ix;var n="tm"===t.sh.ty?t.sh.prop:t.sh;return n.s.setGroupProperty(PropertyInterface("Size",i)),n.p.setGroupProperty(PropertyInterface("Position",i)),Object.defineProperties(a,{size:{get:ExpressionPropertyInterface(n.s)},position:{get:ExpressionPropertyInterface(n.p)},_name:{value:e.nm}}),a.mn=e.mn,a}function l(e,t,r){function a(t){return e.p.ix===t?a.position:e.r.ix===t?a.rotation:e.pt.ix===t?a.points:e.or.ix===t||"ADBE Vector Star Outer Radius"===t?a.outerRadius:e.os.ix===t?a.outerRoundness:!e.ir||e.ir.ix!==t&&"ADBE Vector Star Inner Radius"!==t?e.is&&e.is.ix===t?a.innerRoundness:null:a.innerRadius}var i=propertyGroupFactory(a,r),n="tm"===t.sh.ty?t.sh.prop:t.sh;return a.propertyIndex=e.ix,n.or.setGroupProperty(PropertyInterface("Outer Radius",i)),n.os.setGroupProperty(PropertyInterface("Outer Roundness",i)),n.pt.setGroupProperty(PropertyInterface("Points",i)),n.p.setGroupProperty(PropertyInterface("Position",i)),n.r.setGroupProperty(PropertyInterface("Rotation",i)),e.ir&&(n.ir.setGroupProperty(PropertyInterface("Inner Radius",i)),n.is.setGroupProperty(PropertyInterface("Inner Roundness",i))),Object.defineProperties(a,{position:{get:ExpressionPropertyInterface(n.p)},rotation:{get:ExpressionPropertyInterface(n.r)},points:{get:ExpressionPropertyInterface(n.pt)},outerRadius:{get:ExpressionPropertyInterface(n.or)},outerRoundness:{get:ExpressionPropertyInterface(n.os)},innerRadius:{get:ExpressionPropertyInterface(n.ir)},innerRoundness:{get:ExpressionPropertyInterface(n.is)},_name:{value:e.nm}}),a.mn=e.mn,a}function h(e,t,r){function a(t){return e.p.ix===t?a.position:e.r.ix===t?a.roundness:e.s.ix===t||"Size"===t||"ADBE Vector Rect Size"===t?a.size:null}var i=propertyGroupFactory(a,r),n="tm"===t.sh.ty?t.sh.prop:t.sh;return a.propertyIndex=e.ix,n.p.setGroupProperty(PropertyInterface("Position",i)),n.s.setGroupProperty(PropertyInterface("Size",i)),n.r.setGroupProperty(PropertyInterface("Rotation",i)),Object.defineProperties(a,{position:{get:ExpressionPropertyInterface(n.p)},roundness:{get:ExpressionPropertyInterface(n.r)},size:{get:ExpressionPropertyInterface(n.s)},_name:{value:e.nm}}),a.mn=e.mn,a}function c(e,t,r){function a(t){return e.r.ix===t||"Round Corners 1"===t?a.radius:null}var i=propertyGroupFactory(a,r),n=t;return a.propertyIndex=e.ix,n.rd.setGroupProperty(PropertyInterface("Radius",i)),Object.defineProperties(a,{radius:{get:ExpressionPropertyInterface(n.rd)},_name:{value:e.nm}}),a.mn=e.mn,a}function d(e,t,r){function a(t){return e.c.ix===t||"Copies"===t?a.copies:e.o.ix===t||"Offset"===t?a.offset:null}var i=propertyGroupFactory(a,r),n=t;return a.propertyIndex=e.ix,n.c.setGroupProperty(PropertyInterface("Copies",i)),n.o.setGroupProperty(PropertyInterface("Offset",i)),Object.defineProperties(a,{copies:{get:ExpressionPropertyInterface(n.c)},offset:{get:ExpressionPropertyInterface(n.o)},_name:{value:e.nm}}),a.mn=e.mn,a}return function(t,r,a){var i;function n(e){if("number"==typeof e)return 0===(e=void 0===e?1:e)?a:i[e-1];for(var t=0,r=i.length;t<r;){if(i[t]._name===e)return i[t];t+=1}return null}return n.propertyGroup=propertyGroupFactory(n,(function(){return a})),i=e(t,r,n.propertyGroup),n.numProperties=i.length,n._name="Contents",n}}(),TextExpressionInterface=function(e){var t,r;function a(e){return"ADBE Text Document"===e?a.sourceText:null}return Object.defineProperty(a,"sourceText",{get:function(){e.textProperty.getValue();var a=e.textProperty.currentData.t;return a!==t&&(e.textProperty.currentData.t=t,(r=new String(a)).value=a||new String(a)),r}}),a},getBlendMode=(blendModeEnums={0:"source-over",1:"multiply",2:"screen",3:"overlay",4:"darken",5:"lighten",6:"color-dodge",7:"color-burn",8:"hard-light",9:"soft-light",10:"difference",11:"exclusion",12:"hue",13:"saturation",14:"color",15:"luminosity"},function(e){return blendModeEnums[e]||""}),blendModeEnums;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,a=e.ef||[];this.effectElements=[];var i,n=a.length;for(r=0;r<n;r+=1)i=new GroupEffect(a[r],t),this.effectElements.push(i)}function GroupEffect(e,t){this.init(e,t)}function BaseElement(){}function FrameElement(){}function _typeof$2(e){return _typeof$2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$2(e)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(e,t){var r;this.data=e,this.effectElements=[],this.initDynamicPropertyContainer(t);var a,i=this.data.ef.length,n=this.data.ef;for(r=0;r<i;r+=1){switch(a=null,n[r].ty){case 0:a=new SliderEffect(n[r],t,this);break;case 1:a=new AngleEffect(n[r],t,this);break;case 2:a=new ColorEffect(n[r],t,this);break;case 3:a=new PointEffect(n[r],t,this);break;case 4:case 7:a=new CheckboxEffect(n[r],t,this);break;case 10:a=new LayerIndexEffect(n[r],t,this);break;case 11:a=new MaskIndexEffect(n[r],t,this);break;case 5:a=new EffectsManager(n[r],t);break;default:a=new NoValueEffect(n[r])}a&&this.effectElements.push(a)}},BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var e=0,t=this.data.masksProperties.length;e<t;){if("n"!==this.data.masksProperties[e].mode&&!1!==this.data.masksProperties[e].cl)return!0;e+=1}return!1},initExpressions:function(){this.layerInterface=LayerExpressionInterface(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var e=EffectsExpressionInterface.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(e),0===this.data.ty||this.data.xt?this.compInterface=CompExpressionInterface(this):4===this.data.ty?(this.layerInterface.shapeInterface=ShapeExpressionInterface(this.shapesData,this.itemsData,this.layerInterface),this.layerInterface.content=this.layerInterface.shapeInterface):5===this.data.ty&&(this.layerInterface.textInterface=TextExpressionInterface(this),this.layerInterface.text=this.layerInterface.textInterface)},setBlendMode:function(){var e=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=e},initBaseData:function(e,t,r){this.globalData=t,this.comp=r,this.data=e,this.layerId=createElementID(),this.data.sr||(this.data.sr=1),this.effectsManager=new EffectsManager(this.data,this,this.dynamicProperties)},getType:function(){return this.type},sourceRectAtTime:function(){}},FrameElement.prototype={initFrame:function(){this._isFirstFrame=!1,this.dynamicProperties=[],this._mdf=!1},prepareProperties:function(e,t){var r,a=this.dynamicProperties.length;for(r=0;r<a;r+=1)(t||this._isParent&&"transform"===this.dynamicProperties[r].propType)&&(this.dynamicProperties[r].getValue(),this.dynamicProperties[r]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(e){-1===this.dynamicProperties.indexOf(e)&&this.dynamicProperties.push(e)}};var FootageInterface=(dataInterfaceFactory=function(e){function t(e){return"Outline"===e?t.outlineInterface():null}return t._name="Outline",t.outlineInterface=function(e){var t="",r=e.getFootageData();function a(e){if(r[e])return t=e,"object"===_typeof$2(r=r[e])?a:r;var i=e.indexOf(t);if(-1!==i){var n=parseInt(e.substr(i+t.length),10);return"object"===_typeof$2(r=r[n])?a:r}return""}return function(){return t="",r=e.getFootageData(),a}}(e),t},function(e){function t(e){return"Data"===e?t.dataInterface:null}return t._name="Data",t.dataInterface=dataInterfaceFactory(e),t}),dataInterfaceFactory;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)}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 a=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(a),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)}function BaseRenderer(){}function TransformElement(){}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 a,i,n=this.globalData.defs,s=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(s),this.solidPath="";var o,l,h,c,d,p,u=this.masksProperties,m=0,f=[],y=createElementID(),g="clipPath",v="clip-path";for(a=0;a<s;a+=1)if(("a"!==u[a].mode&&"n"!==u[a].mode||u[a].inv||100!==u[a].o.k||u[a].o.x)&&(g="mask",v="mask"),"s"!==u[a].mode&&"i"!==u[a].mode||0!==m?h=null:((h=createNS("rect")).setAttribute("fill","#ffffff"),h.setAttribute("width",this.element.comp.data.w||0),h.setAttribute("height",this.element.comp.data.h||0),f.push(h)),i=createNS("path"),"n"===u[a].mode)this.viewData[a]={op:PropertyFactory.getProp(this.element,u[a].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,u[a],3),elem:i,lastPath:""},n.appendChild(i);else{var b;if(m+=1,i.setAttribute("fill","s"===u[a].mode?"#000000":"#ffffff"),i.setAttribute("clip-rule","nonzero"),0!==u[a].x.k?(g="mask",v="mask",p=PropertyFactory.getProp(this.element,u[a].x,0,null,this.element),b=createElementID(),(c=createNS("filter")).setAttribute("id",b),(d=createNS("feMorphology")).setAttribute("operator","erode"),d.setAttribute("in","SourceGraphic"),d.setAttribute("radius","0"),c.appendChild(d),n.appendChild(c),i.setAttribute("stroke","s"===u[a].mode?"#000000":"#ffffff")):(d=null,p=null),this.storedData[a]={elem:i,x:p,expan:d,lastPath:"",lastOperator:"",filterId:b,lastRadius:0},"i"===u[a].mode){l=f.length;var x=createNS("g");for(o=0;o<l;o+=1)x.appendChild(f[o]);var S=createNS("mask");S.setAttribute("mask-type","alpha"),S.setAttribute("id",y+"_"+m),S.appendChild(i),n.appendChild(S),x.setAttribute("mask","url("+getLocationHref()+"#"+y+"_"+m+")"),f.length=0,f.push(x)}else f.push(i);u[a].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[a]={elem:i,lastPath:"",op:PropertyFactory.getProp(this.element,u[a].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,u[a],3),invRect:h},this.viewData[a].prop.k||this.drawPath(u[a],this.viewData[a].prop.v,this.viewData[a])}for(this.maskElement=createNS(g),s=f.length,a=0;a<s;a+=1)this.maskElement.appendChild(f[a]);m>0&&(this.maskElement.setAttribute("id",y),this.element.maskedElement.setAttribute(v,"url("+getLocationHref()+"#"+y+")"),n.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}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(){this.layerInterface=FootageInterface(this)},FootageElement.prototype.getFootageData=function(){return this.footageData},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(){},BaseRenderer.prototype.checkLayers=function(e){var t,r,a=this.layers.length;for(this.completeLayers=!0,t=a-1;t>=0;t-=1)this.elements[t]||(r=this.layers[t]).ip-r.st<=e-this.layers[t].st&&r.op-r.st>e-this.layers[t].st&&this.buildItem(t),this.completeLayers=!!this.elements[t]&&this.completeLayers;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:default: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)}},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){var t;this.completeLayers=!1;var r,a=e.length,i=this.layers.length;for(t=0;t<a;t+=1)for(r=0;r<i;){if(this.layers[r].id===e[t].id){this.layers[r]=e[t];break}r+=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 a=this.elements,i=this.layers,n=0,s=i.length;n<s;)i[n].ind==t&&(a[n]&&!0!==a[n]?(r.push(a[n]),a[n].setAsParent(),void 0!==i[n].parent?this.buildElementParenting(e,i[n].parent,r):e.setHierarchy(r)):(this.buildItem(n),this.addPendingElement(e))),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 a=this.createComp(e[t]);a.initExpressions(),this.globalData.projectInterface.registerComposition(a)}},BaseRenderer.prototype.getElementByPath=function(e){var t,r=e.shift();if("number"==typeof r)t=this.elements[r];else{var a,i=this.elements.length;for(a=0;a<i;a+=1)if(this.elements[a].data.nm===r){t=this.elements[a];break}}return 0===e.length?t:t.getElementByPath(e)},BaseRenderer.prototype.setupGlobalData=function(e,t){this.globalData.fontManager=new FontManager,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}},TransformElement.prototype={initTransform:function(){this.finalTransform={mProp:this.data.ks?TransformPropertyFactory.getTransformProperty(this,this.data.ks,this):{o:0},_matMdf:!1,_opMdf:!1,mat:new Matrix},this.data.ao&&(this.finalTransform.mProp.autoOriented=!0),this.data.ty},renderTransform:function(){if(this.finalTransform._opMdf=this.finalTransform.mProp.o._mdf||this._isFirstFrame,this.finalTransform._matMdf=this.finalTransform.mProp._mdf||this._isFirstFrame,this.hierarchy){var e,t=this.finalTransform.mat,r=0,a=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;r<a;){if(this.hierarchy[r].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}r+=1}if(this.finalTransform._matMdf)for(e=this.finalTransform.mProp.v.props,t.cloneFromProps(e),r=0;r<a;r+=1)e=this.hierarchy[r].finalTransform.mProp.v.props,t.transform(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7],e[8],e[9],e[10],e[11],e[12],e[13],e[14],e[15])}},globalToLocal:function(e){var t=[];t.push(this.finalTransform);for(var r,a=!0,i=this.comp;a;)i.finalTransform?(i.data.hasMask&&t.splice(0,0,i.finalTransform),i=i.comp):a=!1;var n,s=t.length;for(r=0;r<s;r+=1)n=t[r].mat.applyToPointArray(0,0,0),e=[e[0]-n[0],e[1]-n[1],0];return e},mHelper:new Matrix},MaskElement.prototype.getMaskProperty=function(e){return this.viewData[e].prop},MaskElement.prototype.renderFrame=function(e){var t,r=this.element.finalTransform.mat,a=this.masksProperties.length;for(t=0;t<a;t+=1)if((this.viewData[t].prop._mdf||e)&&this.drawPath(this.masksProperties[t],this.viewData[t].prop.v,this.viewData[t]),(this.viewData[t].op._mdf||e)&&this.viewData[t].elem.setAttribute("fill-opacity",this.viewData[t].op.v),"n"!==this.masksProperties[t].mode&&(this.viewData[t].invRect&&(this.element.finalTransform.mProp._mdf||e)&&this.viewData[t].invRect.setAttribute("transform",r.getInverseMatrix().to2dCSS()),this.storedData[t].x&&(this.storedData[t].x._mdf||e))){var i=this.storedData[t].expan;this.storedData[t].x.v<0?("erode"!==this.storedData[t].lastOperator&&(this.storedData[t].lastOperator="erode",this.storedData[t].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[t].filterId+")")),i.setAttribute("radius",-this.storedData[t].x.v)):("dilate"!==this.storedData[t].lastOperator&&(this.storedData[t].lastOperator="dilate",this.storedData[t].elem.setAttribute("filter",null)),this.storedData[t].elem.setAttribute("stroke-width",2*this.storedData[t].x.v))}},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+" "},MaskElement.prototype.drawPath=function(e,t,r){var a,i,n=" M"+t.v[0][0]+","+t.v[0][1];for(i=t._length,a=1;a<i;a+=1)n+=" C"+t.o[a-1][0]+","+t.o[a-1][1]+" "+t.i[a][0]+","+t.i[a][1]+" "+t.v[a][0]+","+t.v[a][1];if(t.c&&i>1&&(n+=" C"+t.o[a-1][0]+","+t.o[a-1][1]+" "+t.i[0][0]+","+t.i[0][1]+" "+t.v[0][0]+","+t.v[0][1]),r.lastPath!==n){var s="";r.elem&&(t.c&&(s=e.inv?this.solidPath+n:n),r.elem.setAttribute("d",s)),r.lastPath=n}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var e={createFilter:function(e,t){var r=createNS("filter");return r.setAttribute("id",e),!0!==t&&(r.setAttribute("filterUnits","objectBoundingBox"),r.setAttribute("x","0%"),r.setAttribute("y","0%"),r.setAttribute("width","100%"),r.setAttribute("height","100%")),r},createAlphaToLuminanceFilter:function(){var e=createNS("feColorMatrix");return e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),e}};return e}(),featureSupport=function(){var e={maskType:!0};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(e.maskType=!1),e}(),registeredEffects={},idPrefix="filter_result_";function SVGEffects(e){var t,r,a="SourceGraphic",i=e.data.ef?e.data.ef.length:0,n=createElementID(),s=filtersFactory.createFilter(n,!0),o=0;for(this.filters=[],t=0;t<i;t+=1){r=null;var l=e.data.ef[t].ty;registeredEffects[l]&&(r=new(0,registeredEffects[l].effect)(s,e.effectsManager.effectElements[t],e,idPrefix+o,a),a=idPrefix+o,registeredEffects[l].countsAsEffect&&(o+=1)),r&&this.filters.push(r)}o&&(e.globalData.defs.appendChild(s),e.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+n+")")),this.filters.length&&e.addRenderableComponent(this)}function registerEffect(e,t,r){registeredEffects[e]={effect:t,countsAsEffect:r}}function SVGBaseElement(){}function HierarchyElement(){}function RenderableDOMElement(){}function IImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.initElement(e,t,r),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ProcessedElement(e,t){this.elem=e,this.pos=t}function IShapeElement(){}SVGEffects.prototype.renderFrame=function(e){var t,r=this.filters.length;for(t=0;t<r;t+=1)this.filters[t].renderFrame(e)},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 e,t,r,a=null;if(this.data.td){if(3==this.data.td||1==this.data.td){var i=createNS("mask");i.setAttribute("id",this.layerId),i.setAttribute("mask-type",3==this.data.td?"luminance":"alpha"),i.appendChild(this.layerElement),a=i,this.globalData.defs.appendChild(i),featureSupport.maskType||1!=this.data.td||(i.setAttribute("mask-type","luminance"),e=createElementID(),t=filtersFactory.createFilter(e),this.globalData.defs.appendChild(t),t.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(r=createNS("g")).appendChild(this.layerElement),a=r,i.appendChild(r),r.setAttribute("filter","url("+getLocationHref()+"#"+e+")"))}else if(2==this.data.td){var n=createNS("mask");n.setAttribute("id",this.layerId),n.setAttribute("mask-type","alpha");var s=createNS("g");n.appendChild(s),e=createElementID(),t=filtersFactory.createFilter(e);var o=createNS("feComponentTransfer");o.setAttribute("in","SourceGraphic"),t.appendChild(o);var l=createNS("feFuncA");l.setAttribute("type","table"),l.setAttribute("tableValues","1.0 0.0"),o.appendChild(l),this.globalData.defs.appendChild(t);var h=createNS("rect");h.setAttribute("width",this.comp.data.w),h.setAttribute("height",this.comp.data.h),h.setAttribute("x","0"),h.setAttribute("y","0"),h.setAttribute("fill","#ffffff"),h.setAttribute("opacity","0"),s.setAttribute("filter","url("+getLocationHref()+"#"+e+")"),s.appendChild(h),s.appendChild(this.layerElement),a=s,featureSupport.maskType||(n.setAttribute("mask-type","luminance"),t.appendChild(filtersFactory.createAlphaToLuminanceFilter()),r=createNS("g"),s.appendChild(h),r.appendChild(this.layerElement),a=r,s.appendChild(r)),this.globalData.defs.appendChild(n)}}else this.data.tt?(this.matteElement.appendChild(this.layerElement),a=this.matteElement,this.baseElement=this.matteElement):this.baseElement=this.layerElement;if(this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0===this.data.ty&&!this.data.hd){var c=createNS("clipPath"),d=createNS("path");d.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var p=createElementID();if(c.setAttribute("id",p),c.appendChild(d),this.globalData.defs.appendChild(c),this.checkMasks()){var u=createNS("g");u.setAttribute("clip-path","url("+getLocationHref()+"#"+p+")"),u.appendChild(this.layerElement),this.transformedElement=u,a?a.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+p+")")}0!==this.data.bm&&this.setBlendMode()},renderElement:function(){this.finalTransform._matMdf&&this.transformedElement.setAttribute("transform",this.finalTransform.mat.to2dCSS()),this.finalTransform._opMdf&&this.transformedElement.setAttribute("opacity",this.finalTransform.mProp.o.v)},destroyBaseElement:function(){this.layerElement=null,this.matteElement=null,this.maskManager.destroy()},getBaseElement:function(){return this.data.hd?null:this.baseElement},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData),this.renderableEffectsManager=new SVGEffects(this)},setMatte:function(e){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+e+")")}},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(e){this.hierarchy=e},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},extendPrototype([RenderableElement,createProxyFunction({initElement:function(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initTransform(e,t,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide()},hide:function(){this.hidden||this.isInRange&&!this.isTransparent||((this.baseElement||this.layerElement).style.display="none",this.hidden=!0)},show:function(){this.isInRange&&!this.isTransparent&&(this.data.hd||((this.baseElement||this.layerElement).style.display="block"),this.hidden=!1,this._isFirstFrame=!0)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},renderInnerContent:function(){},prepareFrame:function(e){this._mdf=!1,this.prepareRenderableFrame(e),this.prepareProperties(e,this.isInRange),this.checkTransparency()},destroy:function(){this.innerElem=null,this.destroyBaseElement()}})],RenderableDOMElement),extendPrototype([BaseElement,TransformElement,SVGBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],IImageElement),IImageElement.prototype.createContent=function(){var 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},IShapeElement.prototype={addShapeToModifiers:function(e){var t,r=this.shapeModifiers.length;for(t=0;t<r;t+=1)this.shapeModifiers[t].addShape(e)},isShapeInAnimatedModifiers:function(e){for(var t=this.shapeModifiers.length;0<t;)if(this.shapeModifiers[0].isAnimatedWithShape(e))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var e,t=this.shapes.length;for(e=0;e<t;e+=1)this.shapes[e].sh.reset();for(e=(t=this.shapeModifiers.length)-1;e>=0&&!this.shapeModifiers[e].processShapes(this._isFirstFrame);e-=1);}},searchProcessedElement:function(e){for(var t=this.processedElements,r=0,a=t.length;r<a;){if(t[r].elem===e)return t[r].pos;r+=1}return 0},addProcessedElement:function(e,t){for(var r=this.processedElements,a=r.length;a;)if(r[a-=1].elem===e)return void(r[a].pos=t);r.push(new ProcessedElement(e,t))},prepareFrame:function(e){this.prepareRenderableFrame(e),this.prepareProperties(e,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 a=0,i=e.length;a<i;){if(e[a].mProps.dynamicProperties.length){this._isAnimated=!0;break}a+=1}}function SVGStyleData(e,t){this.data=e,this.type=e.ty,this.d="",this.lvl=t,this._mdf=!1,this.closed=!0===e.hd,this.pElem=createNS("path"),this.msElem=null}function DashProperty(e,t,r,a){var 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(a);var n,s=t.length||0;for(i=0;i<s;i+=1)n=PropertyFactory.getProp(e,t[i].v,0,0,this),this.k=n.k||this.k,this.dataProps[i]={n:t[i].n,p:n};this.k||this.getValue(!0),this._isAnimated=this.k}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}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}function SVGNoStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.style=r}function GradientProperty(e,t,r){this.data=t,this.c=createTypedArray("uint8c",4*t.p);var a=t.k.k[0].s?t.k.k[0].s.length-4*t.p:t.k.k.length-4*t.p;this.o=createTypedArray("float32",a),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=a,this.initDynamicPropertyContainer(r),this.prop=PropertyFactory.getProp(e,t.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(e,t,r){this.initDynamicPropertyContainer(e),this.getValue=this.iterateDynamicProperties,this.initGradientData(e,t,r)}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}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}SVGShapeData.prototype.setAsAnimated=function(){this._isAnimated=!0},SVGStyleData.prototype.reset=function(){this.d="",this._mdf=!1},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("svg"===this.renderer&&(this.dashStr=""),t=0;t<r;t+=1)"o"!==this.dataProps[t].n?"svg"===this.renderer?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),extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),extendPrototype([DynamicPropertyContainer],SVGNoStyleData),GradientProperty.prototype.comparePoints=function(e,t){for(var r=0,a=this.o.length/2;r<a;){if(Math.abs(e[4*r]-e[4*t+2*r])>.01)return!1;r+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var 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,a,i=4*this.data.p;for(t=0;t<i;t+=1)r=t%4==0?100:255,a=Math.round(this.prop.v[t]*r),this.c[t]!==a&&(this.c[t]=a,this._cmdf=!e);if(this.o.length)for(i=this.prop.v.length,t=4*this.data.p;t<i;t+=1)r=t%2==0?100:1,a=t%2==0?Math.round(100*this.prop.v[t]):this.prop.v[t],this.o[t-4*this.data.p]!==a&&(this.o[t-4*this.data.p]=a,this._omdf=!e);this._mdf=!e}},extendPrototype([DynamicPropertyContainer],GradientProperty),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(),a=createNS(1===t.t?"linearGradient":"radialGradient");a.setAttribute("id",r),a.setAttribute("spreadMethod","pad"),a.setAttribute("gradientUnits","userSpaceOnUse");var i,n,s,o=[];for(s=4*t.g.p,n=0;n<s;n+=4)i=createNS("stop"),a.appendChild(i),o.push(i);e.setAttribute("gf"===t.ty?"fill":"stroke","url("+getLocationHref()+"#"+r+")"),this.gf=a,this.cst=o},SVGGradientFillStyleData.prototype.setGradientOpacity=function(e,t){if(this.g._hasOpacity&&!this.g._collapsable){var r,a,i,n=createNS("mask"),s=createNS("path");n.appendChild(s);var o=createElementID(),l=createElementID();n.setAttribute("id",l);var h=createNS(1===e.t?"linearGradient":"radialGradient");h.setAttribute("id",o),h.setAttribute("spreadMethod","pad"),h.setAttribute("gradientUnits","userSpaceOnUse"),i=e.g.k.k[0].s?e.g.k.k[0].s.length:e.g.k.k.length;var c=this.stops;for(a=4*e.g.p;a<i;a+=2)(r=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),h.appendChild(r),c.push(r);s.setAttribute("gf"===e.ty?"fill":"stroke","url("+getLocationHref()+"#"+o+")"),"gs"===e.ty&&(s.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),s.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),1===e.lj&&s.setAttribute("stroke-miterlimit",e.ml)),this.of=h,this.ms=n,this.ost=c,this.maskId=l,t.msElem=s}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(e,t,r,a){if(0===t)return"";var i,n=e.o,s=e.i,o=e.v,l=" M"+a.applyToPointStringified(o[0][0],o[0][1]);for(i=1;i<t;i+=1)l+=" C"+a.applyToPointStringified(n[i-1][0],n[i-1][1])+" "+a.applyToPointStringified(s[i][0],s[i][1])+" "+a.applyToPointStringified(o[i][0],o[i][1]);return r&&t&&(l+=" C"+a.applyToPointStringified(n[i-1][0],n[i-1][1])+" "+a.applyToPointStringified(s[0][0],s[0][1])+" "+a.applyToPointStringified(o[0][0],o[0][1]),l+="z"),l},SVGElementsRenderer=function(){var e=new Matrix,t=new Matrix;function r(e,t,r){(r||t.transform.op._mdf)&&t.transform.container.setAttribute("opacity",t.transform.op.v),(r||t.transform.mProps._mdf)&&t.transform.container.setAttribute("transform",t.transform.mProps.v.to2dCSS())}function a(){}function i(r,a,i){var n,s,o,l,h,c,d,p,u,m,f,y=a.styles.length,g=a.lvl;for(c=0;c<y;c+=1){if(l=a.sh._mdf||i,a.styles[c].lvl<g){for(p=t.reset(),m=g-a.styles[c].lvl,f=a.transformers.length-1;!l&&m>0;)l=a.transformers[f].mProps._mdf||l,m-=1,f-=1;if(l)for(m=g-a.styles[c].lvl,f=a.transformers.length-1;m>0;)u=a.transformers[f].mProps.v.props,p.transform(u[0],u[1],u[2],u[3],u[4],u[5],u[6],u[7],u[8],u[9],u[10],u[11],u[12],u[13],u[14],u[15]),m-=1,f-=1}else p=e;if(s=(d=a.sh.paths)._length,l){for(o="",n=0;n<s;n+=1)(h=d.shapes[n])&&h._length&&(o+=buildShapeString(h,h._length,h.c,p));a.caches[c]=o}else o=a.caches[c];a.styles[c].d+=!0===r.hd?"":o,a.styles[c]._mdf=l||a.styles[c]._mdf}}function n(e,t,r){var a=t.style;(t.c._mdf||r)&&a.pElem.setAttribute("fill","rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r)&&a.pElem.setAttribute("fill-opacity",t.o.v)}function s(e,t,r){o(e,t,r),l(0,t,r)}function o(e,t,r){var a,i,n,s,o,l=t.gf,h=t.g._hasOpacity,c=t.s.v,d=t.e.v;if(t.o._mdf||r){var p="gf"===e.ty?"fill-opacity":"stroke-opacity";t.style.pElem.setAttribute(p,t.o.v)}if(t.s._mdf||r){var u=1===e.t?"x1":"cx",m="x1"===u?"y1":"cy";l.setAttribute(u,c[0]),l.setAttribute(m,c[1]),h&&!t.g._collapsable&&(t.of.setAttribute(u,c[0]),t.of.setAttribute(m,c[1]))}if(t.g._cmdf||r){a=t.cst;var f=t.g.c;for(n=a.length,i=0;i<n;i+=1)(s=a[i]).setAttribute("offset",f[4*i]+"%"),s.setAttribute("stop-color","rgb("+f[4*i+1]+","+f[4*i+2]+","+f[4*i+3]+")")}if(h&&(t.g._omdf||r)){var y=t.g.o;for(n=(a=t.g._collapsable?t.cst:t.ost).length,i=0;i<n;i+=1)s=a[i],t.g._collapsable||s.setAttribute("offset",y[2*i]+"%"),s.setAttribute("stop-opacity",y[2*i+1])}if(1===e.t)(t.e._mdf||r)&&(l.setAttribute("x2",d[0]),l.setAttribute("y2",d[1]),h&&!t.g._collapsable&&(t.of.setAttribute("x2",d[0]),t.of.setAttribute("y2",d[1])));else if((t.s._mdf||t.e._mdf||r)&&(o=Math.sqrt(Math.pow(c[0]-d[0],2)+Math.pow(c[1]-d[1],2)),l.setAttribute("r",o),h&&!t.g._collapsable&&t.of.setAttribute("r",o)),t.e._mdf||t.h._mdf||t.a._mdf||r){o||(o=Math.sqrt(Math.pow(c[0]-d[0],2)+Math.pow(c[1]-d[1],2)));var g=Math.atan2(d[1]-c[1],d[0]-c[0]),v=t.h.v;v>=1?v=.99:v<=-1&&(v=-.99);var b=o*v,x=Math.cos(g+t.a.v)*b+c[0],S=Math.sin(g+t.a.v)*b+c[1];l.setAttribute("fx",x),l.setAttribute("fy",S),h&&!t.g._collapsable&&(t.of.setAttribute("fx",x),t.of.setAttribute("fy",S))}}function l(e,t,r){var a=t.style,i=t.d;i&&(i._mdf||r)&&i.dashStr&&(a.pElem.setAttribute("stroke-dasharray",i.dashStr),a.pElem.setAttribute("stroke-dashoffset",i.dashoffset[0])),t.c&&(t.c._mdf||r)&&a.pElem.setAttribute("stroke","rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r)&&a.pElem.setAttribute("stroke-opacity",t.o.v),(t.w._mdf||r)&&(a.pElem.setAttribute("stroke-width",t.w.v),a.msElem&&a.msElem.setAttribute("stroke-width",t.w.v))}return{createRenderFunction:function(e){switch(e.ty){case"fl":return n;case"gf":return o;case"gs":return s;case"st":return l;case"sh":case"el":case"rc":case"sr":return i;case"tr":return r;case"no":return a;default:return null}}}}();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=[]}function LetterProps(e,t,r,a,i,n){this.o=e,this.sw=t,this.sc=r,this.fc=a,this.m=i,this.p=n,this._mdf={o:!0,sw:!!t,sc:!!r,fc:!!a,m:!0,p:!0}}function TextProperty(e,t){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,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)}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,r,a,i=this.shapes.length,n=this.stylesList.length,s=[],o=!1;for(r=0;r<n;r+=1){for(a=this.stylesList[r],o=!1,s.length=0,e=0;e<i;e+=1)-1!==(t=this.shapes[e]).styles.indexOf(a)&&(s.push(t),o=t._isAnimated||o);s.length>1&&o&&this.setShapesAsAnimated(s)}},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,a=new SVGStyleData(e,t),i=a.pElem;return"st"===e.ty?r=new SVGStrokeStyleData(this,e,a):"fl"===e.ty?r=new SVGFillStyleData(this,e,a):"gf"===e.ty||"gs"===e.ty?(r=new("gf"===e.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,e,a),this.globalData.defs.appendChild(r.gf),r.maskId&&(this.globalData.defs.appendChild(r.ms),this.globalData.defs.appendChild(r.of),i.setAttribute("mask","url("+getLocationHref()+"#"+r.maskId+")"))):"no"===e.ty&&(r=new SVGNoStyleData(this,e,a)),"st"!==e.ty&&"gs"!==e.ty||(i.setAttribute("stroke-linecap",lineCapEnum[e.lc||2]),i.setAttribute("stroke-linejoin",lineJoinEnum[e.lj||2]),i.setAttribute("fill-opacity","0"),1===e.lj&&i.setAttribute("stroke-miterlimit",e.ml)),2===e.r&&i.setAttribute("fill-rule","evenodd"),e.ln&&i.setAttribute("id",e.ln),e.cl&&i.setAttribute("class",e.cl),e.bm&&(i.style["mix-blend-mode"]=getBlendMode(e.bm)),this.stylesList.push(a),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),a=new SVGTransformData(r,r.o,t);return this.addToAnimatedContents(e,a),a},SVGShapeElement.prototype.createShapeElement=function(e,t,r){var a=4;"rc"===e.ty?a=5:"el"===e.ty?a=6:"sr"===e.ty&&(a=7);var i=new SVGShapeData(t,r,ShapePropertyFactory.getShapeProp(this,e,a,this));return this.shapes.push(i),this.addShapeToModifiers(i),this.addToAnimatedContents(e,i),i},SVGShapeElement.prototype.addToAnimatedContents=function(e,t){for(var r=0,a=this.animatedContents.length;r<a;){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,r=e.styles,a=this.stylesList.length;for(t=0;t<a;t+=1)this.stylesList[t].closed||r.push(this.stylesList[t])},SVGShapeElement.prototype.reloadShapes=function(){var e;this._isFirstFrame=!0;var 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,a,i,n,s){var o,l,h,c,d,p,u=[].concat(n),m=e.length-1,f=[],y=[];for(o=m;o>=0;o-=1){if((p=this.searchProcessedElement(e[o]))?t[o]=r[p-1]:e[o]._render=s,"fl"===e[o].ty||"st"===e[o].ty||"gf"===e[o].ty||"gs"===e[o].ty||"no"===e[o].ty)p?t[o].style.closed=!1:t[o]=this.createStyleElement(e[o],i),e[o]._render&&t[o].style.pElem.parentNode!==a&&a.appendChild(t[o].style.pElem),f.push(t[o].style);else if("gr"===e[o].ty){if(p)for(h=t[o].it.length,l=0;l<h;l+=1)t[o].prevViewData[l]=t[o].it[l];else t[o]=this.createGroupElement(e[o]);this.searchShapes(e[o].it,t[o].it,t[o].prevViewData,t[o].gr,i+1,u,s),e[o]._render&&t[o].gr.parentNode!==a&&a.appendChild(t[o].gr)}else"tr"===e[o].ty?(p||(t[o]=this.createTransformElement(e[o],a)),c=t[o].transform,u.push(c)):"sh"===e[o].ty||"rc"===e[o].ty||"el"===e[o].ty||"sr"===e[o].ty?(p||(t[o]=this.createShapeElement(e[o],u,i)),this.setElementStyles(t[o])):"tm"===e[o].ty||"rd"===e[o].ty||"ms"===e[o].ty||"pb"===e[o].ty?(p?(d=t[o]).closed=!1:((d=ShapeModifiers.getModifier(e[o].ty)).init(this,e[o]),t[o]=d,this.shapeModifiers.push(d)),y.push(d)):"rp"===e[o].ty&&(p?(d=t[o]).closed=!0:(d=ShapeModifiers.getModifier(e[o].ty),t[o]=d,d.init(this,e,o,t),this.shapeModifiers.push(d),s=!1),y.push(d));this.addProcessedElement(e[o],o+1)}for(m=f.length,o=0;o<m;o+=1)f[o].closed=!0;for(m=y.length,o=0;o<m;o+=1)y[o].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){var e;this.renderModifiers();var 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,r=this.animatedContents.length;for(e=0;e<r;e+=1)t=this.animatedContents[e],(this._isFirstFrame||t.element._isAnimated)&&!0!==t.data&&t.fn(t.data,t.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},LetterProps.prototype.update=function(e,t,r,a,i,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 s=!1;return this.o!==e&&(this.o=e,this._mdf.o=!0,s=!0),this.sw!==t&&(this.sw=t,this._mdf.sw=!0,s=!0),this.sc!==r&&(this.sc=r,this._mdf.sc=!0,s=!0),this.fc!==a&&(this.fc=a,this._mdf.fc=!0,s=!0),this.m!==i&&(this.m=i,this._mdf.m=!0,s=!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,s=!0),s},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);else{var a;this.lock=!0,this._mdf=!1;var i=this.effectsSequence.length,n=e||this.data.d.k[this.keysIndex].s;for(a=0;a<i;a+=1)n=r!==this.keysIndex?this.effectsSequence[a](n,n.t):this.effectsSequence[a](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,a=e.length;r<=a-1&&!(r===a-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,a=[],i=0,n=e.length,s=!1;i<n;)t=e.charCodeAt(i),FontManager.isCombinedCharacter(t)?a[a.length-1]+=e.charAt(i):t>=55296&&t<=56319?(r=e.charCodeAt(i+1))>=56320&&r<=57343?(s||FontManager.isModifier(t,r)?(a[a.length-1]+=e.substr(i,2),s=!1):a.push(e.substr(i,2)),i+=1):a.push(e.charAt(i)):t>56319?(r=e.charCodeAt(i+1),FontManager.isZeroWidthJoiner(t,r)?(s=!0,a[a.length-1]+=e.substr(i,2),i+=1):a.push(e.charAt(i))):FontManager.isZeroWidthJoiner(t)?(a[a.length-1]+=e.charAt(i),s=!0):a.push(e.charAt(i)),i+=1;return a},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var t,r,a,i,n,s,o,l=this.elem.globalData.fontManager,h=this.data,c=[],d=0,p=h.m.g,u=0,m=0,f=0,y=[],g=0,v=0,b=l.getFontByName(e.f),x=0,S=getFontProperties(b);e.fWeight=S.weight,e.fStyle=S.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),r=e.finalText.length,e.finalLineHeight=e.lh;var _,T=e.tr/1e3*e.finalSize;if(e.sz)for(var C,$,E=!0,w=e.sz[0],k=e.sz[1];E;){C=0,g=0,r=($=this.buildFinalText(e.t)).length,T=e.tr/1e3*e.finalSize;var A=-1;for(t=0;t<r;t+=1)_=$[t].charCodeAt(0),a=!1," "===$[t]?A=t:13!==_&&3!==_||(g=0,a=!0,C+=e.finalLineHeight||1.2*e.finalSize),l.chars?(o=l.getCharData($[t],b.fStyle,b.fFamily),x=a?0:o.w*e.finalSize/100):x=l.measureText($[t],e.f,e.finalSize),g+x>w&&" "!==$[t]?(-1===A?r+=1:t=A,C+=e.finalLineHeight||1.2*e.finalSize,$.splice(t,A===t?1:0,"\r"),A=-1,g=0):(g+=x,g+=T);C+=b.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&k<C?(e.finalSize-=1,e.finalLineHeight=e.finalSize*e.lh/e.s):(e.finalText=$,r=e.finalText.length,E=!1)}g=-T,x=0;var P,M=0;for(t=0;t<r;t+=1)if(a=!1,13===(_=(P=e.finalText[t]).charCodeAt(0))||3===_?(M=0,y.push(g),v=g>v?g:v,g=-2*T,i="",a=!0,f+=1):i=P,l.chars?(o=l.getCharData(P,b.fStyle,l.getFontByName(e.f).fFamily),x=a?0:o.w*e.finalSize/100):x=l.measureText(i,e.f,e.finalSize)," "===P?M+=x+T:(g+=x+T+M,M=0),c.push({l:x,an:x,add:u,n:a,anIndexes:[],val:i,line:f,animatorJustifyOffset:0}),2==p){if(u+=x,""===i||" "===i||t===r-1){for(""!==i&&" "!==i||(u-=x);m<=t;)c[m].an=u,c[m].ind=d,c[m].extra=x,m+=1;d+=1,u=0}}else if(3==p){if(u+=x,""===i||t===r-1){for(""===i&&(u-=x);m<=t;)c[m].an=u,c[m].ind=d,c[m].extra=x,m+=1;u=0,d+=1}}else c[d].ind=d,c[d].extra=0,d+=1;if(e.l=c,v=g>v?g:v,y.push(g),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=v,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=y;var I,D,F,R,O=h.a;s=O.length;var L=[];for(n=0;n<s;n+=1){for((I=O[n]).a.sc&&(e.strokeColorAnim=!0),I.a.sw&&(e.strokeWidthAnim=!0),(I.a.fc||I.a.fh||I.a.fs||I.a.fb)&&(e.fillColorAnim=!0),R=0,F=I.s.b,t=0;t<r;t+=1)(D=c[t]).anIndexes[n]=R,(1==F&&""!==D.val||2==F&&""!==D.val&&" "!==D.val||3==F&&(D.n||" "==D.val||t==r-1)||4==F&&(D.n||t==r-1))&&(1===I.s.rn&&L.push(R),R+=1);h.a[n].s.totalChars=R;var j,B=-1;if(1===I.s.rn)for(t=0;t<r;t+=1)B!=(D=c[t]).anIndexes[n]&&(B=D.anIndexes[n],j=L.splice(Math.floor(Math.random()*L.length),1)[0]),D.anIndexes[n]=j}e.yOffset=e.finalLineHeight||1.2*e.finalSize,e.ls=e.ls||0,e.ascent=b.ascent*e.finalSize/100},TextProperty.prototype.updateDocumentData=function(e,t){t=void 0===t?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.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 a(e,t){this._currentTextLength=-1,this.k=!1,this.data=t,this.elem=e,this.comp=e.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(e),this.s=PropertyFactory.getProp(e,t.s||{k:0},0,0,this),this.e="e"in t?PropertyFactory.getProp(e,t.e,0,0,this):{v:100},this.o=PropertyFactory.getProp(e,t.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(e,t.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(e,t.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(e,t.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(e,t.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return a.prototype={getMult:function(a){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var i=0,n=0,s=1,o=1;this.ne.v>0?i=this.ne.v/100:n=-this.ne.v/100,this.xe.v>0?s=1-this.xe.v/100:o=1+this.xe.v/100;var l=BezierFactory.getBezierEasing(i,n,s,o).get,h=0,c=this.finalS,d=this.finalE,p=this.data.sh;if(2===p)h=l(h=d===c?a>=d?1:0:e(0,t(.5/(d-c)+(a-c)/(d-c),1)));else if(3===p)h=l(h=d===c?a>=d?0:1:1-e(0,t(.5/(d-c)+(a-c)/(d-c),1)));else if(4===p)d===c?h=0:(h=e(0,t(.5/(d-c)+(a-c)/(d-c),1)))<.5?h*=2:h=1-2*(h-.5),h=l(h);else if(5===p){if(d===c)h=0;else{var u=d-c,m=-u/2+(a=t(e(0,a+.5-c),d-c)),f=u/2;h=Math.sqrt(1-m*m/(f*f))}h=l(h)}else 6===p?(d===c?h=0:(a=t(e(0,a+.5-c),d-c),h=(1+Math.cos(Math.PI+2*Math.PI*a/(d-c)))/2),h=l(h)):(a>=r(c)&&(h=e(0,t(a-c<0?t(d,1)-(c-a):d-a,1))),h=l(h));if(100!==this.sm.v){var y=.01*this.sm.v;0===y&&(y=1e-8);var g=.5-.5*y;h<g?h=0:(h=(h-g)/y)>1&&(h=1)}return h*this.a.v},getValue:function(e){this.iterateDynamicProperties(),this._mdf=e||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,e&&2===this.data.r&&(this.e.v=this._currentTextLength);var t=2===this.data.r?1:100/this.data.totalChars,r=this.o.v/t,a=this.s.v/t+r,i=this.e.v/t+r;if(a>i){var n=a;a=i,i=n}this.finalS=a,this.finalE=i}},extendPrototype([DynamicPropertyContainer],a),{getTextSelectorProp:function(e,t,r){return new a(e,t)}}}();function TextAnimatorDataProperty(e,t,r){var a={propType:!1},i=PropertyFactory.getProp,n=t.a;this.a={r:n.r?i(e,n.r,0,degToRads,r):a,rx:n.rx?i(e,n.rx,0,degToRads,r):a,ry:n.ry?i(e,n.ry,0,degToRads,r):a,sk:n.sk?i(e,n.sk,0,degToRads,r):a,sa:n.sa?i(e,n.sa,0,degToRads,r):a,s:n.s?i(e,n.s,1,.01,r):a,a:n.a?i(e,n.a,1,0,r):a,o:n.o?i(e,n.o,0,.01,r):a,p:n.p?i(e,n.p,1,0,r):a,sw:n.sw?i(e,n.sw,0,0,r):a,sc:n.sc?i(e,n.sc,1,0,r):a,fc:n.fc?i(e,n.fc,1,0,r):a,fh:n.fh?i(e,n.fh,0,0,r):a,fs:n.fs?i(e,n.fs,0,.01,r):a,fb:n.fb?i(e,n.fb,0,.01,r):a,t:n.t?i(e,n.t,0,0,r):a},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)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var e,t,r=this._textData.a.length,a=PropertyFactory.getProp;for(e=0;e<r;e+=1)t=this._textData.a[e],this._animatorsData[e]=new TextAnimatorDataProperty(this._elem,t,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:a(this._elem,this._textData.p.a,0,0,this),f:a(this._elem,this._textData.p.f,0,0,this),l:a(this._elem,this._textData.p.l,0,0,this),r:a(this._elem,this._textData.p.r,0,0,this),p:a(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=a(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,a,i,n,s,o,l,h,c,d,p,u,m,f,y,g,v,b,x,S=this._moreOptions.alignment.v,_=this._animatorsData,T=this._textData,C=this.mHelper,$=this._renderType,E=this.renderedLetters.length,w=e.l;if(this._hasMaskedPath){if(x=this._pathData.m,!this._pathData.n||this._pathData._mdf){var k,A=x.v;for(this._pathData.r.v&&(A=A.reverse()),s={tLength:0,segments:[]},n=A._length-1,g=0,i=0;i<n;i+=1)k=bez.buildBezierData(A.v[i],A.v[i+1],[A.o[i][0]-A.v[i][0],A.o[i][1]-A.v[i][1]],[A.i[i+1][0]-A.v[i+1][0],A.i[i+1][1]-A.v[i+1][1]]),s.tLength+=k.segmentLength,s.segments.push(k),g+=k.segmentLength;i=n,x.v.c&&(k=bez.buildBezierData(A.v[i],A.v[0],[A.o[i][0]-A.v[i][0],A.o[i][1]-A.v[i][1]],[A.i[0][0]-A.v[0][0],A.i[0][1]-A.v[0][1]]),s.tLength+=k.segmentLength,s.segments.push(k),g+=k.segmentLength),this._pathData.pi=s}if(s=this._pathData.pi,o=this._pathData.f.v,p=0,d=1,h=0,c=!0,f=s.segments,o<0&&x.v.c)for(s.tLength<Math.abs(o)&&(o=-Math.abs(o)%s.tLength),d=(m=f[p=f.length-1].points).length-1;o<0;)o+=m[d].partialLength,(d-=1)<0&&(d=(m=f[p-=1].points).length-1);u=(m=f[p].points)[d-1],y=(l=m[d]).partialLength}n=w.length,r=0,a=0;var P,M,I,D,F,R=1.2*e.finalSize*.714,O=!0;I=_.length;var L,j,B,N,V,H,z,G,W,U,q,Q,Y=-1,K=o,X=p,Z=d,J=-1,ee="",te=this.defaultPropsArray;if(2===e.j||1===e.j){var re=0,ae=0,ie=2===e.j?-.5:-1,ne=0,se=!0;for(i=0;i<n;i+=1)if(w[i].n){for(re&&(re+=ae);ne<i;)w[ne].animatorJustifyOffset=re,ne+=1;re=0,se=!0}else{for(M=0;M<I;M+=1)(P=_[M].a).t.propType&&(se&&2===e.j&&(ae+=P.t.v*ie),(F=_[M].s.getMult(w[i].anIndexes[M],T.a[M].s.totalChars)).length?re+=P.t.v*F[0]*ie:re+=P.t.v*F*ie);se=!1}for(re&&(re+=ae);ne<i;)w[ne].animatorJustifyOffset=re,ne+=1}for(i=0;i<n;i+=1){if(C.reset(),N=1,w[i].n)r=0,a+=e.yOffset,a+=O?1:0,o=K,O=!1,this._hasMaskedPath&&(d=Z,u=(m=f[p=X].points)[d-1],y=(l=m[d]).partialLength,h=0),ee="",q="",W="",Q="",te=this.defaultPropsArray;else{if(this._hasMaskedPath){if(J!==w[i].line){switch(e.j){case 1:o+=g-e.lineWidths[w[i].line];break;case 2:o+=(g-e.lineWidths[w[i].line])/2}J=w[i].line}Y!==w[i].ind&&(w[Y]&&(o+=w[Y].extra),o+=w[i].an/2,Y=w[i].ind),o+=S[0]*w[i].an*.005;var oe=0;for(M=0;M<I;M+=1)(P=_[M].a).p.propType&&((F=_[M].s.getMult(w[i].anIndexes[M],T.a[M].s.totalChars)).length?oe+=P.p.v[0]*F[0]:oe+=P.p.v[0]*F),P.a.propType&&((F=_[M].s.getMult(w[i].anIndexes[M],T.a[M].s.totalChars)).length?oe+=P.a.v[0]*F[0]:oe+=P.a.v[0]*F);for(c=!0,this._pathData.a.v&&(o=.5*w[0].an+(g-this._pathData.f.v-.5*w[0].an-.5*w[w.length-1].an)*Y/(n-1),o+=this._pathData.f.v);c;)h+y>=o+oe||!m?(v=(o+oe-h)/l.partialLength,j=u.point[0]+(l.point[0]-u.point[0])*v,B=u.point[1]+(l.point[1]-u.point[1])*v,C.translate(-S[0]*w[i].an*.005,-S[1]*R*.01),c=!1):m&&(h+=l.partialLength,(d+=1)>=m.length&&(d=0,f[p+=1]?m=f[p].points:x.v.c?(d=0,m=f[p=0].points):(h-=l.partialLength,m=null)),m&&(u=l,y=(l=m[d]).partialLength));L=w[i].an/2-w[i].add,C.translate(-L,0,0)}else L=w[i].an/2-w[i].add,C.translate(-L,0,0),C.translate(-S[0]*w[i].an*.005,-S[1]*R*.01,0);for(M=0;M<I;M+=1)(P=_[M].a).t.propType&&(F=_[M].s.getMult(w[i].anIndexes[M],T.a[M].s.totalChars),0===r&&0===e.j||(this._hasMaskedPath?F.length?o+=P.t.v*F[0]:o+=P.t.v*F:F.length?r+=P.t.v*F[0]:r+=P.t.v*F));for(e.strokeWidthAnim&&(H=e.sw||0),e.strokeColorAnim&&(V=e.sc?[e.sc[0],e.sc[1],e.sc[2]]:[0,0,0]),e.fillColorAnim&&e.fc&&(z=[e.fc[0],e.fc[1],e.fc[2]]),M=0;M<I;M+=1)(P=_[M].a).a.propType&&((F=_[M].s.getMult(w[i].anIndexes[M],T.a[M].s.totalChars)).length?C.translate(-P.a.v[0]*F[0],-P.a.v[1]*F[1],P.a.v[2]*F[2]):C.translate(-P.a.v[0]*F,-P.a.v[1]*F,P.a.v[2]*F));for(M=0;M<I;M+=1)(P=_[M].a).s.propType&&((F=_[M].s.getMult(w[i].anIndexes[M],T.a[M].s.totalChars)).length?C.scale(1+(P.s.v[0]-1)*F[0],1+(P.s.v[1]-1)*F[1],1):C.scale(1+(P.s.v[0]-1)*F,1+(P.s.v[1]-1)*F,1));for(M=0;M<I;M+=1){if(P=_[M].a,F=_[M].s.getMult(w[i].anIndexes[M],T.a[M].s.totalChars),P.sk.propType&&(F.length?C.skewFromAxis(-P.sk.v*F[0],P.sa.v*F[1]):C.skewFromAxis(-P.sk.v*F,P.sa.v*F)),P.r.propType&&(F.length?C.rotateZ(-P.r.v*F[2]):C.rotateZ(-P.r.v*F)),P.ry.propType&&(F.length?C.rotateY(P.ry.v*F[1]):C.rotateY(P.ry.v*F)),P.rx.propType&&(F.length?C.rotateX(P.rx.v*F[0]):C.rotateX(P.rx.v*F)),P.o.propType&&(F.length?N+=(P.o.v*F[0]-N)*F[0]:N+=(P.o.v*F-N)*F),e.strokeWidthAnim&&P.sw.propType&&(F.length?H+=P.sw.v*F[0]:H+=P.sw.v*F),e.strokeColorAnim&&P.sc.propType)for(G=0;G<3;G+=1)F.length?V[G]+=(P.sc.v[G]-V[G])*F[0]:V[G]+=(P.sc.v[G]-V[G])*F;if(e.fillColorAnim&&e.fc){if(P.fc.propType)for(G=0;G<3;G+=1)F.length?z[G]+=(P.fc.v[G]-z[G])*F[0]:z[G]+=(P.fc.v[G]-z[G])*F;P.fh.propType&&(z=F.length?addHueToRGB(z,P.fh.v*F[0]):addHueToRGB(z,P.fh.v*F)),P.fs.propType&&(z=F.length?addSaturationToRGB(z,P.fs.v*F[0]):addSaturationToRGB(z,P.fs.v*F)),P.fb.propType&&(z=F.length?addBrightnessToRGB(z,P.fb.v*F[0]):addBrightnessToRGB(z,P.fb.v*F))}}for(M=0;M<I;M+=1)(P=_[M].a).p.propType&&(F=_[M].s.getMult(w[i].anIndexes[M],T.a[M].s.totalChars),this._hasMaskedPath?F.length?C.translate(0,P.p.v[1]*F[0],-P.p.v[2]*F[1]):C.translate(0,P.p.v[1]*F,-P.p.v[2]*F):F.length?C.translate(P.p.v[0]*F[0],P.p.v[1]*F[1],-P.p.v[2]*F[2]):C.translate(P.p.v[0]*F,P.p.v[1]*F,-P.p.v[2]*F));if(e.strokeWidthAnim&&(W=H<0?0:H),e.strokeColorAnim&&(U="rgb("+Math.round(255*V[0])+","+Math.round(255*V[1])+","+Math.round(255*V[2])+")"),e.fillColorAnim&&e.fc&&(q="rgb("+Math.round(255*z[0])+","+Math.round(255*z[1])+","+Math.round(255*z[2])+")"),this._hasMaskedPath){if(C.translate(0,-e.ls),C.translate(0,S[1]*R*.01+a,0),this._pathData.p.v){b=(l.point[1]-u.point[1])/(l.point[0]-u.point[0]);var le=180*Math.atan(b)/Math.PI;l.point[0]<u.point[0]&&(le+=180),C.rotate(-le*Math.PI/180)}C.translate(j,B,0),o-=S[0]*w[i].an*.005,w[i+1]&&Y!==w[i+1].ind&&(o+=w[i].an/2,o+=.001*e.tr*e.finalSize)}else{switch(C.translate(r,a,0),e.ps&&C.translate(e.ps[0],e.ps[1]+e.ascent,0),e.j){case 1:C.translate(w[i].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[w[i].line]),0,0);break;case 2:C.translate(w[i].animatorJustifyOffset+e.justifyOffset+(e.boxWidth-e.lineWidths[w[i].line])/2,0,0)}C.translate(0,-e.ls),C.translate(L,0,0),C.translate(S[0]*w[i].an*.005,S[1]*R*.01,0),r+=w[i].l+.001*e.tr*e.finalSize}"html"===$?ee=C.toCSS():"svg"===$?ee=C.to2dCSS():te=[C.props[0],C.props[1],C.props[2],C.props[3],C.props[4],C.props[5],C.props[6],C.props[7],C.props[8],C.props[9],C.props[10],C.props[11],C.props[12],C.props[13],C.props[14],C.props[15]],Q=N}E<=i?(D=new LetterProps(Q,W,U,q,ee,te),this.renderedLetters.push(D),E+=1,this.lettersChangedFlag=!0):(D=this.renderedLetters[i],this.lettersChangedFlag=D.update(Q,W,U,q,ee,te)||this.lettersChangedFlag)}}},TextAnimatorProperty.prototype.getValue=function(){this._elem.globalData.frameId!==this._frameId&&(this._frameId=this._elem.globalData.frameId,this.iterateDynamicProperties())},TextAnimatorProperty.prototype.mHelper=new Matrix,TextAnimatorProperty.prototype.defaultPropsArray=[],extendPrototype([DynamicPropertyContainer],TextAnimatorProperty),ITextElement.prototype.initElement=function(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),(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)},ITextElement.prototype.createPathShape=function(e,t){var r,a,i=t.length,n="";for(r=0;r<i;r+=1)"sh"===t[r].ty&&(a=t[r].ks.k,n+=buildShapeString(a,a.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,a,i){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)}t.translate(a,i,0)},ITextElement.prototype.buildColor=function(e){return"rgb("+Math.round(255*e[0])+","+Math.round(255*e[1])+","+Math.round(255*e[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){};var emptyShapeData={shapes:[]};function SVGTextLottieElement(e,t,r){this.textSpans=[],this.renderType="svg",this.initElement(e,t,r)}function ISolidElement(e,t,r){this.initElement(e,t,r)}function NullElement(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initFrame(),this.initTransform(e,t,r),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}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}}function SVGRenderer(e,t){this.animationItem=e,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var r="";if(t&&t.title){var a=createNS("title"),i=createElementID();a.setAttribute("id",i),a.textContent=t.title,this.svgElement.appendChild(a),r+=i}if(t&&t.description){var n=createNS("desc"),s=createElementID();n.setAttribute("id",s),n.textContent=t.description,this.svgElement.appendChild(n),r+=" "+s}r&&this.svgElement.setAttribute("aria-labelledby",r);var o=createNS("defs");this.svgElement.appendChild(o);var l=createNS("g");this.svgElement.appendChild(l),this.layerElement=l,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&&!1===t.hideOnTransparent),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},this.globalData={_mdf:!1,frameNum:-1,defs:o,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function CVContextData(){var e;for(this.saved=[],this.cArrPos=0,this.cTr=new Matrix,this.cO=1,this.savedOp=createTypedArray("float32",15),e=0;e<15;e+=1)this.saved[e]=createTypedArray("float32",16);this._length=15}function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}function CVEffects(){}function CVMaskElement(e,t){var r;this.data=e,this.element=t,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var a=this.masksProperties.length,i=!1;for(r=0;r<a;r+=1)"n"!==this.masksProperties[r].mode&&(i=!0),this.viewData[r]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[r],3);this.hasMasks=i,i&&this.element.addRenderableComponent(this)}function CVBaseElement(){}function CVShapeData(e,t,r,a){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var i,n=4;"rc"===t.ty?n=5:"el"===t.ty?n=6:"sr"===t.ty&&(n=7),this.sh=ShapePropertyFactory.getShapeProp(e,t,n,e);var s,o=r.length;for(i=0;i<o;i+=1)r[i].closed||(s={transforms:a.addTransformSequence(r[i].transforms),trNodes:[]},this.styledShapes.push(s),r[i].elements.push(s))}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)}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)}function CVImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.img=t.imageLoader.getAsset(this.assetData),this.initElement(e,t,r)}function CVSolidElement(e,t,r){this.initElement(e,t,r)}function CanvasRendererBase(e,t){this.animationItem=e,this.renderConfig={clearCanvas:!t||void 0===t.clearCanvas||t.clearCanvas,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||""},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"}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}}function CanvasRenderer(e,t){this.animationItem=e,this.renderConfig={clearCanvas:!t||void 0===t.clearCanvas||t.clearCanvas,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||""},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"}function HBaseElement(){}function HSolidElement(e,t,r){this.initElement(e,t,r)}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}}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)}function HCameraElement(e,t,r){this.initFrame(),this.initBaseData(e,t,r),this.initHierarchy();var a=PropertyFactory.getProp;if(this.pe=a(this,e.pe,0,0,this),e.ks.p.s?(this.px=a(this,e.ks.p.x,1,0,this),this.py=a(this,e.ks.p.y,1,0,this),this.pz=a(this,e.ks.p.z,1,0,this)):this.p=a(this,e.ks.p,1,0,this),e.ks.a&&(this.a=a(this,e.ks.a,1,0,this)),e.ks.or.k.length&&e.ks.or.k[0].to){var i,n=e.ks.or.k.length;for(i=0;i<n;i+=1)e.ks.or.k[i].to=null,e.ks.or.k[i].ti=null}this.or=a(this,e.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=a(this,e.ks.rx,0,degToRads,this),this.ry=a(this,e.ks.ry,0,degToRads,this),this.rz=a(this,e.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}function HImageElement(e,t,r){this.assetData=t.getAssetData(e.refId),this.initElement(e,t,r)}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&&!1===t.hideOnTransparent),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"}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}}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&&!1===t.hideOnTransparent),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([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,a=[],i="";t<r;)e[t]===String.fromCharCode(13)||e[t]===String.fromCharCode(3)?(a.push(i),i=""):i+=e[t],t+=1;return a.push(i),a},SVGTextLottieElement.prototype.buildShapeData=function(e,t){if(e.shapes&&e.shapes.length){var r=e.shapes[0];if(r.it){var a=r.it[r.it.length-1];a.s&&(a.s.k[0]=t,a.s.k[1]=t)}}return e},SVGTextLottieElement.prototype.buildNewText=function(){var e,t;this.addDynamicProperty(this);var r=this.textProperty.currentData;this.renderedLetters=createSizedArray(r?r.l.length:0),r.fc?this.layerElement.setAttribute("fill",this.buildColor(r.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),r.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(r.sc)),this.layerElement.setAttribute("stroke-width",r.sw)),this.layerElement.setAttribute("font-size",r.finalSize);var a=this.globalData.fontManager.getFontByName(r.f);if(a.fClass)this.layerElement.setAttribute("class",a.fClass);else{this.layerElement.setAttribute("font-family",a.fFamily);var i=r.fWeight,n=r.fStyle;this.layerElement.setAttribute("font-style",n),this.layerElement.setAttribute("font-weight",i)}this.layerElement.setAttribute("aria-label",r.t);var s,o=r.l||[],l=!!this.globalData.fontManager.chars;t=o.length;var h=this.mHelper,c=this.data.singleShape,d=0,p=0,u=!0,m=.001*r.tr*r.finalSize;if(!c||l||r.sz){var f,y=this.textSpans.length;for(e=0;e<t;e+=1){if(this.textSpans[e]||(this.textSpans[e]={span:null,childSpan:null,glyph:null}),!l||!c||0===e){if(s=y>e?this.textSpans[e].span:createNS(l?"g":"text"),y<=e){if(s.setAttribute("stroke-linecap","butt"),s.setAttribute("stroke-linejoin","round"),s.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=s,l){var g=createNS("g");s.appendChild(g),this.textSpans[e].childSpan=g}this.textSpans[e].span=s,this.layerElement.appendChild(s)}s.style.display="inherit"}if(h.reset(),c&&(o[e].n&&(d=-m,p+=r.yOffset,p+=u?1:0,u=!1),this.applyTextPropertiesToMatrix(r,h,o[e].line,d,p),d+=o[e].l||0,d+=m),l){var v;if(1===(f=this.globalData.fontManager.getCharData(r.finalText[e],a.fStyle,this.globalData.fontManager.getFontByName(r.f).fFamily)).t)v=new SVGCompElement(f.data,this.globalData,this);else{var b=emptyShapeData;f.data&&f.data.shapes&&(b=this.buildShapeData(f.data,r.finalSize)),v=new SVGShapeElement(b,this.globalData,this)}if(this.textSpans[e].glyph){var x=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(x.layerElement),x.destroy()}this.textSpans[e].glyph=v,v._debug=!0,v.prepareFrame(0),v.renderFrame(),this.textSpans[e].childSpan.appendChild(v.layerElement),1===f.t&&this.textSpans[e].childSpan.setAttribute("transform","scale("+r.finalSize/100+","+r.finalSize/100+")")}else c&&s.setAttribute("transform","translate("+h.props[12]+","+h.props[13]+")"),s.textContent=o[e].val,s.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}c&&s&&s.setAttribute("d","")}else{var S=this.textContainer,_="start";switch(r.j){case 1:_="end";break;case 2:_="middle";break;default:_="start"}S.setAttribute("text-anchor",_),S.setAttribute("letter-spacing",m);var T=this.buildTextContents(r.finalText);for(t=T.length,p=r.ps?r.ps[1]+r.ascent:0,e=0;e<t;e+=1)(s=this.textSpans[e].span||createNS("tspan")).textContent=T[e],s.setAttribute("x",0),s.setAttribute("y",p),s.style.display="inherit",S.appendChild(s),this.textSpans[e]||(this.textSpans[e]={span:null,glyph:null}),this.textSpans[e].span=s,p+=r.finalLineHeight;this.layerElement.appendChild(S)}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,r=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,e=0;e<r;e+=1)(t=this.textSpans[e].glyph)&&(t.prepareFrame(this.comp.renderedFrame-this.data.st),t._mdf&&(this._mdf=!0))},SVGTextLottieElement.prototype.renderInnerContent=function(){if((!this.data.singleShape||this._mdf)&&(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag)){var e,t;this._sizeChanged=!0;var r,a,i,n=this.textAnimator.renderedLetters,s=this.textProperty.currentData.l;for(t=s.length,e=0;e<t;e+=1)s[e].n||(r=n[e],a=this.textSpans[e].span,(i=this.textSpans[e].glyph)&&i.renderFrame(),r._mdf.m&&a.setAttribute("transform",r.m),r._mdf.o&&a.setAttribute("opacity",r.o),r._mdf.sw&&a.setAttribute("stroke-width",r.sw),r._mdf.sc&&a.setAttribute("stroke",r.sc),r._mdf.fc&&a.setAttribute("fill",r.fc))}},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)},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),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.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),void 0!==this.renderConfig.focusable&&this.svgElement.setAttribute("focusable",this.renderConfig.focusable),this.svgElement.setAttribute("preserveAspectRatio",this.renderConfig.preserveAspectRatio),this.animationItem.wrapper.appendChild(this.svgElement);var t=this.globalData.defs;this.setupGlobalData(e,t),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=e;var r=createNS("clipPath"),a=createNS("rect");a.setAttribute("width",e.w),a.setAttribute("height",e.h),a.setAttribute("x",0),a.setAttribute("y",0);var i=createElementID();r.setAttribute("id",i),r.appendChild(a),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+i+")"),t.appendChild(r),this.layers=e.layers,this.elements=createSizedArray(e.layers.length)},SVGRendererBase.prototype.destroy=function(){var e;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e]&&this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&99!==this.layers[e].ty){t[e]=!0;var r=this.createItem(this.layers[e]);t[e]=r,getExpressionsPlugin()&&(0===this.layers[e].ty&&this.globalData.projectInterface.registerComposition(r),r.initExpressions()),this.appendElementInPos(r,e),this.layers[e].tt&&(this.elements[e-1]&&!0!==this.elements[e-1]?r.setMatte(t[e-1].layerId):(this.buildItem(e-1),this.addPendingElement(r)))}},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){e.setMatte(this.elements[t-1].layerId);break}t+=1}}},SVGRendererBase.prototype.renderFrame=function(e){if(this.renderedFrame!==e&&!this.destroyed){var t;null===e?e=this.renderedFrame:this.renderedFrame=e,this.globalData.frameNum=e,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=e,this.globalData._mdf=!1;var 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 a,i=0;i<t;)this.elements[i]&&!0!==this.elements[i]&&this.elements[i].getBaseElement()&&(a=this.elements[i].getBaseElement()),i+=1;a?this.layerElement.insertBefore(r,a):this.layerElement.appendChild(r)}},SVGRendererBase.prototype.hide=function(){this.layerElement.style.display="none"},SVGRendererBase.prototype.show=function(){this.layerElement.style.display="block"},extendPrototype([BaseElement,TransformElement,HierarchyElement,FrameElement,RenderableDOMElement],ICompElement),ICompElement.prototype.initElement=function(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,a=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),r=a-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()},extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)},extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(e){return new SVGCompElement(e,this.globalData,this)},CVContextData.prototype.duplicate=function(){var e=2*this._length,t=this.savedOp;this.savedOp=createTypedArray("float32",e),this.savedOp.set(t);var r=0;for(r=this._length;r<e;r+=1)this.saved[r]=createTypedArray("float32",16);this._length=e},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.cO=1},ShapeTransformManager.prototype={addTransformSequence:function(e){var t,r=e.length,a="_";for(t=0;t<r;t+=1)a+=e[t].transform.key+"_";var i=this.sequences[a];return i||(i={transforms:[].concat(e),finalTransform:new Matrix,_mdf:!1},this.sequences[a]=i,this.sequenceList.push(i)),i},processSequence:function(e,t){for(var r,a=0,i=e.transforms.length,n=t;a<i&&!t;){if(e.transforms[a].transform.mProps._mdf){n=!0;break}a+=1}if(n)for(e.finalTransform.reset(),a=i-1;a>=0;a-=1)r=e.transforms[a].transform.mProps.v.props,e.finalTransform.transform(r[0],r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15]);e._mdf=n},processSequences:function(e){var t,r=this.sequenceList.length;for(t=0;t<r;t+=1)this.processSequence(this.sequenceList[t],e)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}},CVEffects.prototype.renderFrame=function(){},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var e,t,r,a,i=this.element.finalTransform.mat,n=this.element.canvasContext,s=this.masksProperties.length;for(n.beginPath(),e=0;e<s;e+=1)if("n"!==this.masksProperties[e].mode){var o;this.masksProperties[e].inv&&(n.moveTo(0,0),n.lineTo(this.element.globalData.compSize.w,0),n.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),n.lineTo(0,this.element.globalData.compSize.h),n.lineTo(0,0)),a=this.viewData[e].v,t=i.applyToPointArray(a.v[0][0],a.v[0][1],0),n.moveTo(t[0],t[1]);var l=a._length;for(o=1;o<l;o+=1)r=i.applyToTriplePoints(a.o[o-1],a.i[o],a.v[o]),n.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5]);r=i.applyToTriplePoints(a.o[o-1],a.i[0],a.v[0]),n.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5])}this.element.globalData.renderer.save(!0),n.clip()}},CVMaskElement.prototype.getMaskProperty=MaskElement.prototype.getMaskProperty,CVMaskElement.prototype.destroy=function(){this.element=null},CVBaseElement.prototype={createElements:function(){},initRendererElement:function(){},createContainerElements:function(){this.canvasContext=this.globalData.canvasContext,this.renderableEffectsManager=new CVEffects},createContent:function(){},setBlendMode:function(){var e=this.globalData;if(e.blendMode!==this.data.bm){e.blendMode=this.data.bm;var t=getBlendMode(this.data.bm);e.canvasContext.globalCompositeOperation=t}},createRenderableComponents:function(){this.maskManager=new CVMaskElement(this.data,this)},hideElement:function(){this.hidden||this.isInRange&&!this.isTransparent||(this.hidden=!0)},showElement:function(){this.isInRange&&!this.isTransparent&&(this.hidden=!1,this._isFirstFrame=!0,this.maskManager._isFirstFrame=!0)},renderFrame:function(){if(!this.hidden&&!this.data.hd){this.renderTransform(),this.renderRenderable(),this.setBlendMode();var e=0===this.data.ty;this.globalData.renderer.save(e),this.globalData.renderer.ctxTransform(this.finalTransform.mat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.mProp.o.v),this.renderInnerContent(),this.globalData.renderer.restore(e),this.maskManager.hasMasks&&this.globalData.renderer.restore(!0),this._isFirstFrame&&(this._isFirstFrame=!1)}},destroy:function(){this.canvasContext=null,this.data=null,this.globalData=null,this.maskManager.destroy()},mHelper:new Matrix},CVBaseElement.prototype.hide=CVBaseElement.prototype.hideElement,CVBaseElement.prototype.show=CVBaseElement.prototype.showElement,CVShapeData.prototype.setAsAnimated=SVGShapeData.prototype.setAsAnimated,extendPrototype([BaseElement,TransformElement,CVBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableElement],CVShapeElement),CVShapeElement.prototype.initElement=RenderableDOMElement.prototype.initElement,CVShapeElement.prototype.transformHelper={opacity:1,_opMdf:!1},CVShapeElement.prototype.dashResetter=[],CVShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[])},CVShapeElement.prototype.createStyleElement=function(e,t){var r={data:e,type:e.ty,preTransforms:this.transformsManager.addTransformSequence(t),transforms:[],elements:[],closed:!0===e.hd},a={};if("fl"===e.ty||"st"===e.ty?(a.c=PropertyFactory.getProp(this,e.c,1,255,this),a.c.k||(r.co="rgb("+bmFloor(a.c.v[0])+","+bmFloor(a.c.v[1])+","+bmFloor(a.c.v[2])+")")):"gf"!==e.ty&&"gs"!==e.ty||(a.s=PropertyFactory.getProp(this,e.s,1,null,this),a.e=PropertyFactory.getProp(this,e.e,1,null,this),a.h=PropertyFactory.getProp(this,e.h||{k:0},0,.01,this),a.a=PropertyFactory.getProp(this,e.a||{k:0},0,degToRads,this),a.g=new GradientProperty(this,e.g,this)),a.o=PropertyFactory.getProp(this,e.o,0,.01,this),"st"===e.ty||"gs"===e.ty){if(r.lc=lineCapEnum[e.lc||2],r.lj=lineJoinEnum[e.lj||2],1==e.lj&&(r.ml=e.ml),a.w=PropertyFactory.getProp(this,e.w,0,null,this),a.w.k||(r.wi=a.w.v),e.d){var i=new DashProperty(this,e.d,"canvas",this);a.d=i,a.d.k||(r.da=a.d.dashArray,r.do=a.d.dashoffset[0])}}else r.r=2===e.r?"evenodd":"nonzero";return this.stylesList.push(r),a.style=r,a},CVShapeElement.prototype.createGroupElement=function(){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(e){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,e.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,e,this)}}},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(){var e;this._isFirstFrame=!0;var 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,a,i){var n,s,o,l,h,c,d=e.length-1,p=[],u=[],m=[].concat(i);for(n=d;n>=0;n-=1){if((l=this.searchProcessedElement(e[n]))?t[n]=r[l-1]:e[n]._shouldRender=a,"fl"===e[n].ty||"st"===e[n].ty||"gf"===e[n].ty||"gs"===e[n].ty)l?t[n].style.closed=!1:t[n]=this.createStyleElement(e[n],m),p.push(t[n].style);else if("gr"===e[n].ty){if(l)for(o=t[n].it.length,s=0;s<o;s+=1)t[n].prevViewData[s]=t[n].it[s];else t[n]=this.createGroupElement(e[n]);this.searchShapes(e[n].it,t[n].it,t[n].prevViewData,a,m)}else"tr"===e[n].ty?(l||(c=this.createTransformElement(e[n]),t[n]=c),m.push(t[n]),this.addTransformToStyleList(t[n])):"sh"===e[n].ty||"rc"===e[n].ty||"el"===e[n].ty||"sr"===e[n].ty?l||(t[n]=this.createShapeElement(e[n])):"tm"===e[n].ty||"rd"===e[n].ty||"pb"===e[n].ty?(l?(h=t[n]).closed=!1:((h=ShapeModifiers.getModifier(e[n].ty)).init(this,e[n]),t[n]=h,this.shapeModifiers.push(h)),u.push(h)):"rp"===e[n].ty&&(l?(h=t[n]).closed=!0:(h=ShapeModifiers.getModifier(e[n].ty),t[n]=h,h.init(this,e,n,t),this.shapeModifiers.push(h),a=!1),u.push(h));this.addProcessedElement(e[n],n+1)}for(this.removeTransformFromStyleList(),this.closeStyles(p),d=u.length,n=0;n<d;n+=1)u[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,r,a,i,n,s,o,l,h=this.stylesList.length,c=this.globalData.renderer,d=this.globalData.canvasContext;for(e=0;e<h;e+=1)if(("st"!==(o=(l=this.stylesList[e]).type)&&"gs"!==o||0!==l.wi)&&l.data._shouldRender&&0!==l.coOp&&0!==this.globalData.currentGlobalAlpha){for(c.save(),n=l.elements,"st"===o||"gs"===o?(d.strokeStyle="st"===o?l.co:l.grd,d.lineWidth=l.wi,d.lineCap=l.lc,d.lineJoin=l.lj,d.miterLimit=l.ml||0):d.fillStyle="fl"===o?l.co:l.grd,c.ctxOpacity(l.coOp),"st"!==o&&"gs"!==o&&d.beginPath(),c.ctxTransform(l.preTransforms.finalTransform.props),r=n.length,t=0;t<r;t+=1){for("st"!==o&&"gs"!==o||(d.beginPath(),l.da&&(d.setLineDash(l.da),d.lineDashOffset=l.do)),i=(s=n[t].trNodes).length,a=0;a<i;a+=1)"m"===s[a].t?d.moveTo(s[a].p[0],s[a].p[1]):"c"===s[a].t?d.bezierCurveTo(s[a].pts[0],s[a].pts[1],s[a].pts[2],s[a].pts[3],s[a].pts[4],s[a].pts[5]):d.closePath();"st"!==o&&"gs"!==o||(d.stroke(),l.da&&d.setLineDash(this.dashResetter))}"st"!==o&&"gs"!==o&&d.fill(l.r),c.restore()}},CVShapeElement.prototype.renderShape=function(e,t,r,a){var i,n;for(n=e,i=t.length-1;i>=0;i-=1)"tr"===t[i].ty?(n=r[i].transform,this.renderShapeTransform(e,n)):"sh"===t[i].ty||"el"===t[i].ty||"rc"===t[i].ty||"sr"===t[i].ty?this.renderPath(t[i],r[i]):"fl"===t[i].ty?this.renderFill(t[i],r[i],n):"st"===t[i].ty?this.renderStroke(t[i],r[i],n):"gf"===t[i].ty||"gs"===t[i].ty?this.renderGradientFill(t[i],r[i],n):"gr"===t[i].ty?this.renderShape(n,t[i].it,r[i].it):t[i].ty;a&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,t){if(this._isFirstFrame||t._mdf||e.transforms._mdf){var r,a,i,n=e.trNodes,s=t.paths,o=s._length;n.length=0;var l=e.transforms.finalTransform;for(i=0;i<o;i+=1){var h=s.shapes[i];if(h&&h.v){for(a=h._length,r=1;r<a;r+=1)1===r&&n.push({t:"m",p:l.applyToPointArray(h.v[0][0],h.v[0][1],0)}),n.push({t:"c",pts:l.applyToTriplePoints(h.o[r-1],h.i[r],h.v[r])});1===a&&n.push({t:"m",p:l.applyToPointArray(h.v[0][0],h.v[0][1],0)}),h.c&&a&&(n.push({t:"c",pts:l.applyToTriplePoints(h.o[r-1],h.i[0],h.v[0])}),n.push({t:"z"}))}}e.trNodes=n}},CVShapeElement.prototype.renderPath=function(e,t){if(!0!==e.hd&&e._shouldRender){var r,a=t.styledShapes.length;for(r=0;r<a;r+=1)this.renderStyledShape(t.styledShapes[r],t.sh)}},CVShapeElement.prototype.renderFill=function(e,t,r){var a=t.style;(t.c._mdf||this._isFirstFrame)&&(a.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r._opMdf||this._isFirstFrame)&&(a.coOp=t.o.v*r.opacity)},CVShapeElement.prototype.renderGradientFill=function(e,t,r){var a,i=t.style;if(!i.grd||t.g._mdf||t.s._mdf||t.e._mdf||1!==e.t&&(t.h._mdf||t.a._mdf)){var n,s=this.globalData.canvasContext,o=t.s.v,l=t.e.v;if(1===e.t)a=s.createLinearGradient(o[0],o[1],l[0],l[1]);else{var h=Math.sqrt(Math.pow(o[0]-l[0],2)+Math.pow(o[1]-l[1],2)),c=Math.atan2(l[1]-o[1],l[0]-o[0]),d=t.h.v;d>=1?d=.99:d<=-1&&(d=-.99);var p=h*d,u=Math.cos(c+t.a.v)*p+o[0],m=Math.sin(c+t.a.v)*p+o[1];a=s.createRadialGradient(u,m,0,o[0],o[1],h)}var f=e.g.p,y=t.g.c,g=1;for(n=0;n<f;n+=1)t.g._hasOpacity&&t.g._collapsable&&(g=t.g.o[2*n+1]),a.addColorStop(y[4*n]/100,"rgba("+y[4*n+1]+","+y[4*n+2]+","+y[4*n+3]+","+g+")");i.grd=a}i.coOp=t.o.v*r.opacity},CVShapeElement.prototype.renderStroke=function(e,t,r){var a=t.style,i=t.d;i&&(i._mdf||this._isFirstFrame)&&(a.da=i.dashArray,a.do=i.dashoffset[0]),(t.c._mdf||this._isFirstFrame)&&(a.co="rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||r._opMdf||this._isFirstFrame)&&(a.coOp=t.o.v*r.opacity),(t.w._mdf||this._isFirstFrame)&&(a.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},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 a,i,n,s,o,l,h,c,d,p,u,m,f=this.globalData.fontManager.getFontByName(e.f),y=e.l,g=this.mHelper;this.stroke=r,this.values.fValue=e.finalSize+"px "+this.globalData.fontManager.getFontByName(e.f).fFamily,i=e.finalText.length;var v=this.data.singleShape,b=.001*e.tr*e.finalSize,x=0,S=0,_=!0,T=0;for(a=0;a<i;a+=1){s=(n=this.globalData.fontManager.getCharData(e.finalText[a],f.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily))&&n.data||{},g.reset(),v&&y[a].n&&(x=-b,S+=e.yOffset,S+=_?1:0,_=!1),d=(h=s.shapes?s.shapes[0].it:[]).length,g.scale(e.finalSize/100,e.finalSize/100),v&&this.applyTextPropertiesToMatrix(e,g,y[a].line,x,S),u=createSizedArray(d-1);var C=0;for(c=0;c<d;c+=1)if("sh"===h[c].ty){for(l=h[c].ks.k.i.length,p=h[c].ks.k,m=[],o=1;o<l;o+=1)1===o&&m.push(g.applyToX(p.v[0][0],p.v[0][1],0),g.applyToY(p.v[0][0],p.v[0][1],0)),m.push(g.applyToX(p.o[o-1][0],p.o[o-1][1],0),g.applyToY(p.o[o-1][0],p.o[o-1][1],0),g.applyToX(p.i[o][0],p.i[o][1],0),g.applyToY(p.i[o][0],p.i[o][1],0),g.applyToX(p.v[o][0],p.v[o][1],0),g.applyToY(p.v[o][0],p.v[o][1],0));m.push(g.applyToX(p.o[o-1][0],p.o[o-1][1],0),g.applyToY(p.o[o-1][0],p.o[o-1][1],0),g.applyToX(p.i[0][0],p.i[0][1],0),g.applyToY(p.i[0][0],p.i[0][1],0),g.applyToX(p.v[0][0],p.v[0][1],0),g.applyToY(p.v[0][0],p.v[0][1],0)),u[C]=m,C+=1}v&&(x+=y[a].l,x+=b),this.textSpans[T]?this.textSpans[T].elem=u:this.textSpans[T]={elem:u},T+=1}},CVTextElement.prototype.renderInnerContent=function(){var e,t,r,a,i,n,s=this.canvasContext;s.font=this.values.fValue,s.lineCap="butt",s.lineJoin="miter",s.miterLimit=4,this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var o,l=this.textAnimator.renderedLetters,h=this.textProperty.currentData.l;t=h.length;var c,d,p=null,u=null,m=null;for(e=0;e<t;e+=1)if(!h[e].n){if((o=l[e])&&(this.globalData.renderer.save(),this.globalData.renderer.ctxTransform(o.p),this.globalData.renderer.ctxOpacity(o.o)),this.fill){for(o&&o.fc?p!==o.fc&&(p=o.fc,s.fillStyle=o.fc):p!==this.values.fill&&(p=this.values.fill,s.fillStyle=this.values.fill),a=(c=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),r=0;r<a;r+=1)for(n=(d=c[r]).length,this.globalData.canvasContext.moveTo(d[0],d[1]),i=2;i<n;i+=6)this.globalData.canvasContext.bezierCurveTo(d[i],d[i+1],d[i+2],d[i+3],d[i+4],d[i+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.fill()}if(this.stroke){for(o&&o.sw?m!==o.sw&&(m=o.sw,s.lineWidth=o.sw):m!==this.values.sWidth&&(m=this.values.sWidth,s.lineWidth=this.values.sWidth),o&&o.sc?u!==o.sc&&(u=o.sc,s.strokeStyle=o.sc):u!==this.values.stroke&&(u=this.values.stroke,s.strokeStyle=this.values.stroke),a=(c=this.textSpans[e].elem).length,this.globalData.canvasContext.beginPath(),r=0;r<a;r+=1)for(n=(d=c[r]).length,this.globalData.canvasContext.moveTo(d[0],d[1]),i=2;i<n;i+=6)this.globalData.canvasContext.bezierCurveTo(d[i],d[i+1],d[i+2],d[i+3],d[i+4],d[i+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.stroke()}o&&this.globalData.renderer.restore()}},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVImageElement),CVImageElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVImageElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVImageElement.prototype.createContent=function(){if(this.img.width&&(this.assetData.w!==this.img.width||this.assetData.h!==this.img.height)){var e=createTag("canvas");e.width=this.assetData.w,e.height=this.assetData.h;var t,r,a=e.getContext("2d"),i=this.img.width,n=this.img.height,s=i/n,o=this.assetData.w/this.assetData.h,l=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;s>o&&"xMidYMid slice"===l||s<o&&"xMidYMid slice"!==l?t=(r=n)*o:r=(t=i)/o,a.drawImage(this.img,(i-t)/2,(n-r)/2,t,r,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},extendPrototype([BaseElement,TransformElement,CVBaseElement,HierarchyElement,FrameElement,RenderableElement],CVSolidElement),CVSolidElement.prototype.initElement=SVGShapeElement.prototype.initElement,CVSolidElement.prototype.prepareFrame=IImageElement.prototype.prepareFrame,CVSolidElement.prototype.renderInnerContent=function(){var e=this.canvasContext;e.fillStyle=this.data.sc,e.fillRect(0,0,this.data.sw,this.data.sh)},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){if(1!==e[0]||0!==e[1]||0!==e[4]||1!==e[5]||0!==e[12]||0!==e[13])if(this.renderConfig.clearCanvas){this.transformMat.cloneFromProps(e);var t=this.contextData.cTr.props;this.transformMat.transform(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]),this.contextData.cTr.cloneFromProps(this.transformMat.props);var r=this.contextData.cTr.props;this.canvasContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13])}else this.canvasContext.transform(e[0],e[1],e[4],e[5],e[12],e[13])},CanvasRendererBase.prototype.ctxOpacity=function(e){if(!this.renderConfig.clearCanvas)return this.canvasContext.globalAlpha*=e<0?0:e,void(this.globalData.currentGlobalAlpha=this.contextData.cO);this.contextData.cO*=e<0?0:e,this.globalData.currentGlobalAlpha!==this.contextData.cO&&(this.canvasContext.globalAlpha=this.contextData.cO,this.globalData.currentGlobalAlpha=this.contextData.cO)},CanvasRendererBase.prototype.reset=function(){this.renderConfig.clearCanvas?this.contextData.reset():this.canvasContext.restore()},CanvasRendererBase.prototype.save=function(e){if(this.renderConfig.clearCanvas){e&&this.canvasContext.save();var t,r=this.contextData.cTr.props;this.contextData._length<=this.contextData.cArrPos&&this.contextData.duplicate();var a=this.contextData.saved[this.contextData.cArrPos];for(t=0;t<16;t+=1)a[t]=r[t];this.contextData.savedOp[this.contextData.cArrPos]=this.contextData.cO,this.contextData.cArrPos+=1}else this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(e){if(this.renderConfig.clearCanvas){e&&(this.canvasContext.restore(),this.globalData.blendMode="source-over"),this.contextData.cArrPos-=1;var t,r=this.contextData.saved[this.contextData.cArrPos],a=this.contextData.cTr.props;for(t=0;t<16;t+=1)a[t]=r[t];this.canvasContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13]),r=this.contextData.savedOp[this.contextData.cArrPos],this.contextData.cO=r,this.globalData.currentGlobalAlpha!==r&&(this.canvasContext.globalAlpha=r,this.globalData.currentGlobalAlpha=r)}else this.canvasContext.restore()},CanvasRendererBase.prototype.configAnimation=function(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.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(){var e,t,r,a;if(this.reset(),this.animationItem.wrapper&&this.animationItem.container?(e=this.animationItem.wrapper.offsetWidth,t=this.animationItem.wrapper.offsetHeight,this.animationItem.container.setAttribute("width",e*this.renderConfig.dpr),this.animationItem.container.setAttribute("height",t*this.renderConfig.dpr)):(e=this.canvasContext.canvas.width*this.renderConfig.dpr,t=this.canvasContext.canvas.height*this.renderConfig.dpr),-1!==this.renderConfig.preserveAspectRatio.indexOf("meet")||-1!==this.renderConfig.preserveAspectRatio.indexOf("slice")){var i=this.renderConfig.preserveAspectRatio.split(" "),n=i[1]||"meet",s=i[0]||"xMidYMid",o=s.substr(0,4),l=s.substr(4);r=e/t,(a=this.transformCanvas.w/this.transformCanvas.h)>r&&"meet"===n||a<r&&"slice"===n?(this.transformCanvas.sx=e/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=e/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=t/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=t/(this.transformCanvas.h/this.renderConfig.dpr)),this.transformCanvas.tx="xMid"===o&&(a<r&&"meet"===n||a>r&&"slice"===n)?(e-this.transformCanvas.w*(t/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===o&&(a<r&&"meet"===n||a>r&&"slice"===n)?(e-this.transformCanvas.w*(t/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===l&&(a>r&&"meet"===n||a<r&&"slice"===n)?(t-this.transformCanvas.h*(e/this.transformCanvas.w))/2*this.renderConfig.dpr:"YMax"===l&&(a>r&&"meet"===n||a<r&&"slice"===n)?(t-this.transformCanvas.h*(e/this.transformCanvas.w))*this.renderConfig.dpr:0}else"none"===this.renderConfig.preserveAspectRatio?(this.transformCanvas.sx=e/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=t/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.tx=0,this.transformCanvas.ty=0):(this.transformCanvas.sx=this.renderConfig.dpr,this.transformCanvas.sy=this.renderConfig.dpr,this.transformCanvas.tx=0,this.transformCanvas.ty=0);this.transformCanvas.props=[this.transformCanvas.sx,0,0,0,0,this.transformCanvas.sy,0,0,0,0,1,0,this.transformCanvas.tx,this.transformCanvas.ty,0,1],this.ctxTransform(this.transformCanvas.props),this.canvasContext.beginPath(),this.canvasContext.rect(0,0,this.transformCanvas.w,this.transformCanvas.h),this.canvasContext.closePath(),this.canvasContext.clip(),this.renderFrame(this.renderedFrame,!0)},CanvasRendererBase.prototype.destroy=function(){var e;for(this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),e=(this.layers?this.layers.length:0)-1;e>=0;e-=1)this.elements[e]&&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||!0!==this.renderConfig.clearCanvas||t)&&!this.destroyed&&-1!==e){var r;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 a=this.layers.length;for(this.completeLayers||this.checkLayers(e),r=0;r<a;r+=1)(this.completeLayers||this.elements[r])&&this.elements[r].prepareFrame(e-this.layers[r].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),r=a-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&99!==this.layers[e].ty){var r=this.createItem(this.layers[e],this,this.globalData);t[e]=r,r.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"},extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var e,t=this.canvasContext;for(t.beginPath(),t.moveTo(0,0),t.lineTo(this.data.w,0),t.lineTo(this.data.w,this.data.h),t.lineTo(0,this.data.h),t.lineTo(0,0),t.clip(),e=this.layers.length-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},CVCompElement.prototype.destroy=function(){var e;for(e=this.layers.length-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)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)},HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects,this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0!==this.data.bm&&this.setBlendMode()},renderElement:function(){var e=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var t=this.finalTransform.mat.toCSS();e.transform=t,e.webkitTransform=t}this.finalTransform._opMdf&&(e.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting,extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var e;this.data.hasMask?((e=createNS("rect")).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")).style.width=this.data.sw+"px",e.style.height=this.data.sh+"px",e.style.backgroundColor=this.data.sc),this.layerElement.appendChild(e)},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,a=e.length;for(r=0;r<a;r+=1)t=e[r].mProps.v.applyToPointArray(t[0],t[1],0);return t},HShapeElement.prototype.calculateShapeBoundingBox=function(e,t){var r,a,i,n,s,o=e.sh.v,l=e.transformers,h=o._length;if(!(h<=1)){for(r=0;r<h-1;r+=1)a=this.getTransformedPoint(l,o.v[r]),i=this.getTransformedPoint(l,o.o[r]),n=this.getTransformedPoint(l,o.i[r+1]),s=this.getTransformedPoint(l,o.v[r+1]),this.checkBounds(a,i,n,s,t);o.c&&(a=this.getTransformedPoint(l,o.v[r]),i=this.getTransformedPoint(l,o.o[r]),n=this.getTransformedPoint(l,o.i[0]),s=this.getTransformedPoint(l,o.v[0]),this.checkBounds(a,i,n,s,t))}},HShapeElement.prototype.checkBounds=function(e,t,r,a,i){this.getBoundsOfCurve(e,t,r,a);var n=this.shapeBoundingBox;i.x=bmMin(n.left,i.x),i.xMax=bmMax(n.right,i.xMax),i.y=bmMin(n.top,i.y),i.yMax=bmMax(n.bottom,i.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,a){for(var i,n,s,o,l,h,c,d=[[e[0],a[0]],[e[1],a[1]]],p=0;p<2;++p)n=6*e[p]-12*t[p]+6*r[p],i=-3*e[p]+9*t[p]-9*r[p]+3*a[p],s=3*t[p]-3*e[p],n|=0,s|=0,0==(i|=0)&&0===n||(0===i?(o=-s/n)>0&&o<1&&d[p].push(this.calculateF(o,e,t,r,a,p)):(l=n*n-4*s*i)>=0&&((h=(-n+bmSqrt(l))/(2*i))>0&&h<1&&d[p].push(this.calculateF(h,e,t,r,a,p)),(c=(-n-bmSqrt(l))/(2*i))>0&&c<1&&d[p].push(this.calculateF(c,e,t,r,a,p))));this.shapeBoundingBox.left=bmMin.apply(null,d[0]),this.shapeBoundingBox.top=bmMin.apply(null,d[1]),this.shapeBoundingBox.right=bmMax.apply(null,d[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,d[1])},HShapeElement.prototype.calculateF=function(e,t,r,a,i,n){return bmPow(1-e,3)*t[n]+3*bmPow(1-e,2)*e*r[n]+3*(1-e)*bmPow(e,2)*a[n]+bmPow(e,3)*i[n]},HShapeElement.prototype.calculateBoundingBox=function(e,t){var r,a=e.length;for(r=0;r<a;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 a=0;a<e.keyframes.length;a+=1){var i=e.keyframes[a].s;i>r&&(r=i)}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 a=this.shapeCont.style,i="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";a.transform=i,a.webkitTransform=i}}},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 a,i,n=this.globalData.fontManager.getFontByName(e.f);if(!this.globalData.fontManager.chars)if(t.fontSize=e.finalSize+"px",t.lineHeight=e.finalSize+"px",n.fClass)this.innerElem.className=n.fClass;else{t.fontFamily=n.fFamily;var s=e.fWeight,o=e.fStyle;t.fontStyle=o,t.fontWeight=s}var l,h,c,d=e.l;i=d.length;var p,u=this.mHelper,m="",f=0;for(a=0;a<i;a+=1){if(this.globalData.fontManager.chars?(this.textPaths[f]?l=this.textPaths[f]:((l=createNS("path")).setAttribute("stroke-linecap",lineCapEnum[1]),l.setAttribute("stroke-linejoin",lineJoinEnum[2]),l.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[f]?c=(h=this.textSpans[f]).children[0]:((h=createTag("div")).style.lineHeight=0,(c=createNS("svg")).appendChild(l),styleDiv(h)))):this.isMasked?l=this.textPaths[f]?this.textPaths[f]:createNS("text"):this.textSpans[f]?(h=this.textSpans[f],l=this.textPaths[f]):(styleDiv(h=createTag("span")),styleDiv(l=createTag("span")),h.appendChild(l)),this.globalData.fontManager.chars){var y,g=this.globalData.fontManager.getCharData(e.finalText[a],n.fStyle,this.globalData.fontManager.getFontByName(e.f).fFamily);if(y=g?g.data:null,u.reset(),y&&y.shapes&&y.shapes.length&&(p=y.shapes[0].it,u.scale(e.finalSize/100,e.finalSize/100),m=this.createPathShape(u,p),l.setAttribute("d",m)),this.isMasked)this.innerElem.appendChild(l);else{if(this.innerElem.appendChild(h),y&&y.shapes){document.body.appendChild(c);var v=c.getBBox();c.setAttribute("width",v.width+2),c.setAttribute("height",v.height+2),c.setAttribute("viewBox",v.x-1+" "+(v.y-1)+" "+(v.width+2)+" "+(v.height+2));var b=c.style,x="translate("+(v.x-1)+"px,"+(v.y-1)+"px)";b.transform=x,b.webkitTransform=x,d[a].yOffset=v.y-1}else c.setAttribute("width",1),c.setAttribute("height",1);h.appendChild(c)}}else if(l.textContent=d[a].val,l.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(l);else{this.innerElem.appendChild(h);var S=l.style,_="translate3d(0,"+-e.finalSize/1.2+"px,0)";S.transform=_,S.webkitTransform=_}this.isMasked?this.textSpans[f]=l:this.textSpans[f]=h,this.textSpans[f].style.display="block",this.textPaths[f]=l,f+=1}for(;f<this.textSpans.length;)this.textSpans[f].style.display="none",f+=1},HTextElement.prototype.renderInnerContent=function(){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,a,i,n,s,o=0,l=this.textAnimator.renderedLetters,h=this.textProperty.currentData.l;for(a=h.length,r=0;r<a;r+=1)h[r].n?o+=1:(n=this.textSpans[r],s=this.textPaths[r],i=l[o],o+=1,i._mdf.m&&(this.isMasked?n.setAttribute("transform",i.m):(n.style.webkitTransform=i.m,n.style.transform=i.m)),n.style.opacity=i.o,i.sw&&i._mdf.sw&&s.setAttribute("stroke-width",i.sw),i.sc&&i._mdf.sc&&s.setAttribute("stroke",i.sc),i.fc&&i._mdf.fc&&(s.setAttribute("fill",i.fc),s.style.color=i.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var c=this.innerElem.getBBox();if(this.currentBBox.w!==c.width&&(this.currentBBox.w=c.width,this.svgElement.setAttribute("width",c.width)),this.currentBBox.h!==c.height&&(this.currentBBox.h=c.height,this.svgElement.setAttribute("height",c.height)),this.currentBBox.w!==c.width+2||this.currentBBox.h!==c.height+2||this.currentBBox.x!==c.x-1||this.currentBBox.y!==c.y-1){this.currentBBox.w=c.width+2,this.currentBBox.h=c.height+2,this.currentBBox.x=c.x-1,this.currentBBox.y=c.y-1,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),e=this.svgElement.style;var d="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";e.transform=d,e.webkitTransform=d}}}},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var e,t,r,a,i=this.comp.threeDElements.length;for(e=0;e<i;e+=1)if("3d"===(t=this.comp.threeDElements[e]).type){r=t.perspectiveElem.style,a=t.container.style;var n=this.pe.v+"px",s="0px 0px 0px",o="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";r.perspective=n,r.webkitPerspective=n,a.transformOrigin=s,a.mozTransformOrigin=s,a.webkitTransformOrigin=s,r.transform=o,r.webkitTransform=o}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var e,t,r=this._isFirstFrame;if(this.hierarchy)for(t=this.hierarchy.length,e=0;e<t;e+=1)r=this.hierarchy[e].finalTransform.mProp._mdf||r;if(r||this.pe._mdf||this.p&&this.p._mdf||this.px&&(this.px._mdf||this.py._mdf||this.pz._mdf)||this.rx._mdf||this.ry._mdf||this.rz._mdf||this.or._mdf||this.a&&this.a._mdf){if(this.mat.reset(),this.hierarchy)for(e=t=this.hierarchy.length-1;e>=0;e-=1){var a=this.hierarchy[e].finalTransform.mProp;this.mat.translate(-a.p.v[0],-a.p.v[1],a.p.v[2]),this.mat.rotateX(-a.or.v[0]).rotateY(-a.or.v[1]).rotateZ(a.or.v[2]),this.mat.rotateX(-a.rx.v).rotateY(-a.ry.v).rotateZ(a.rz.v),this.mat.scale(1/a.s.v[0],1/a.s.v[1],1/a.s.v[2]),this.mat.translate(a.a.v[0],a.a.v[1],a.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var i;i=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var n=Math.sqrt(Math.pow(i[0],2)+Math.pow(i[1],2)+Math.pow(i[2],2)),s=[i[0]/n,i[1]/n,i[2]/n],o=Math.sqrt(s[2]*s[2]+s[0]*s[0]),l=Math.atan2(s[1],o),h=Math.atan2(s[0],-s[2]);this.mat.rotateY(h).rotateX(-l)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var c=!this._prevMat.equals(this.mat);if((c||this.pe._mdf)&&this.comp.threeDElements){var d,p,u;for(t=this.comp.threeDElements.length,e=0;e<t;e+=1)if("3d"===(d=this.comp.threeDElements[e]).type){if(c){var m=this.mat.toCSS();(u=d.container.style).transform=m,u.webkitTransform=m}this.pe._mdf&&((p=d.perspectiveElem.style).perspective=this.pe.v+"px",p.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},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)},extendPrototype([BaseRenderer],HybridRendererBase),HybridRendererBase.prototype.buildItem=SVGRenderer.prototype.buildItem,HybridRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},HybridRendererBase.prototype.appendElementInPos=function(e,t){var r=e.getBaseElement();if(r){var a=this.layers[t];if(a.ddd&&this.supports3d)this.addTo3dContainer(r,t);else if(this.threeDElements)this.addTo3dContainer(r,t);else{for(var i,n,s=0;s<t;)this.elements[s]&&!0!==this.elements[s]&&this.elements[s].getBaseElement&&(n=this.elements[s],i=(this.layers[s].ddd?this.getThreeDContainerByPos(s):n.getBaseElement())||i),s+=1;i?a.ddd&&this.supports3d||this.layerElement.insertBefore(r,i):a.ddd&&this.supports3d||this.layerElement.appendChild(r)}}},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,a,i=createTag("div");styleDiv(i);var n=createTag("div");if(styleDiv(n),"3d"===t){(r=i.style).width=this.globalData.compSize.w+"px",r.height=this.globalData.compSize.h+"px";var s="50% 50%";r.webkitTransformOrigin=s,r.mozTransformOrigin=s,r.transformOrigin=s;var o="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(a=n.style).transform=o,a.webkitTransform=o}i.appendChild(n);var l={container:n,perspectiveElem:i,startPos:e,endPos:e,type:t};return this.threeDElements.push(l),l},HybridRendererBase.prototype.build3dContainers=function(){var e,t,r=this.layers.length,a="";for(e=0;e<r;e+=1)this.layers[e].ddd&&3!==this.layers[e].ty?("3d"!==a&&(a="3d",t=this.createThreeDContainer(e,"3d")),t.endPos=Math.max(t.endPos,e)):("2d"!==a&&(a="2d",t=this.createThreeDContainer(e,"2d")),t.endPos=Math.max(t.endPos,e));for(e=(r=this.threeDElements.length)-1;e>=0;e-=1)this.resizerElem.appendChild(this.threeDElements[e].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(e,t){for(var r=0,a=this.threeDElements.length;r<a;){if(t<=this.threeDElements[r].endPos){for(var i,n=this.threeDElements[r].startPos;n<t;)this.elements[n]&&this.elements[n].getBaseElement&&(i=this.elements[n].getBaseElement()),n+=1;i?this.threeDElements[r].container.insertBefore(e,i):this.threeDElements[r].container.appendChild(e);break}r+=1}},HybridRendererBase.prototype.configAnimation=function(e){var t=createTag("div"),r=this.animationItem.wrapper,a=t.style;a.width=e.w+"px",a.height=e.h+"px",this.resizerElem=t,styleDiv(t),a.transformStyle="flat",a.mozTransformStyle="flat",a.webkitTransformStyle="flat",this.renderConfig.className&&t.setAttribute("class",this.renderConfig.className),r.appendChild(t),a.overflow="hidden";var i=createNS("svg");i.setAttribute("width","1"),i.setAttribute("height","1"),styleDiv(i),this.resizerElem.appendChild(i);var n=createNS("defs");i.appendChild(n),this.data=e,this.setupGlobalData(e,i),this.globalData.defs=n,this.layers=e.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){var e;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var t=this.layers?this.layers.length:0;for(e=0;e<t;e+=1)this.elements[e].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var e,t,r,a,i=this.animationItem.wrapper.offsetWidth,n=this.animationItem.wrapper.offsetHeight,s=i/n;this.globalData.compSize.w/this.globalData.compSize.h>s?(e=i/this.globalData.compSize.w,t=i/this.globalData.compSize.w,r=0,a=(n-this.globalData.compSize.h*(i/this.globalData.compSize.w))/2):(e=n/this.globalData.compSize.h,t=n/this.globalData.compSize.h,r=(i-this.globalData.compSize.w*(n/this.globalData.compSize.h))/2,a=0);var o=this.resizerElem.style;o.webkitTransform="matrix3d("+e+",0,0,0,0,"+t+",0,0,0,0,1,0,"+r+","+a+",0,1)",o.transform=o.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var e,t=this.globalData.compSize.w,r=this.globalData.compSize.h,a=this.threeDElements.length;for(e=0;e<a;e+=1){var i=this.threeDElements[e].perspectiveElem.style;i.webkitPerspective=Math.sqrt(Math.pow(t,2)+Math.pow(r,2))+"px",i.perspective=i.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(e){var t,r=e.length,a=createTag("div");for(t=0;t<r;t+=1)if(e[t].xt){var i=this.createComp(e[t],a,this.globalData.comp,null);i.initExpressions(),this.globalData.projectInterface.registerComposition(i)}},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,a=0;a<t;)this.elements[a]&&this.elements[a].getBaseElement&&(r=this.elements[a].getBaseElement()),a+=1;r?this.layerElement.insertBefore(e,r):this.layerElement.appendChild(e)},HCompElement.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)},extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(e){return this.supports3d?new HCompElement(e,this.globalData,this):new SVGCompElement(e,this.globalData,this)};var Expressions=function(){var e={initExpressions:function(e){var t=0,r=[];e.renderer.compInterface=CompExpressionInterface(e.renderer),e.renderer.globalData.projectInterface.registerComposition(e.renderer),e.renderer.globalData.pushExpression=function(){t+=1},e.renderer.globalData.popExpression=function(){0==(t-=1)&&function(){var e,t=r.length;for(e=0;e<t;e+=1)r[e].release();r.length=0}()},e.renderer.globalData.registerExpressionProperty=function(e){-1===r.indexOf(e)&&r.push(e)}}};return e}();function _typeof$1(e){return _typeof$1="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof$1(e)}function seedRandom(e,t){var r=this,a=256,i=t.pow(a,6),n=t.pow(2,52),s=2*n,o=255;function l(e){var t,r=e.length,i=this,n=0,s=i.i=i.j=0,l=i.S=[];for(r||(e=[r++]);n<a;)l[n]=n++;for(n=0;n<a;n++)l[n]=l[s=o&s+e[n%r]+(t=l[n])],l[s]=t;i.g=function(e){for(var t,r=0,n=i.i,s=i.j,l=i.S;e--;)t=l[n=o&n+1],r=r*a+l[o&(l[n]=l[s=o&s+t])+(l[s]=t)];return i.i=n,i.j=s,r}}function h(e,t){return t.i=e.i,t.j=e.j,t.S=e.S.slice(),t}function c(e,t){var r,a=[],i=_typeof$1(e);if(t&&"object"==i)for(r in e)try{a.push(c(e[r],t-1))}catch(e){}return a.length?a:"string"==i?e:e+"\0"}function d(e,t){for(var r,a=e+"",i=0;i<a.length;)t[o&i]=o&(r^=19*t[o&i])+a.charCodeAt(i++);return p(t)}function p(e){return String.fromCharCode.apply(0,e)}t.seedrandom=function(o,u,m){var f=[],y=d(c((u=!0===u?{entropy:!0}:u||{}).entropy?[o,p(e)]:null===o?function(){try{var t=new Uint8Array(a);return(r.crypto||r.msCrypto).getRandomValues(t),p(t)}catch(t){var i=r.navigator,n=i&&i.plugins;return[+new Date,r,n,r.screen,p(e)]}}():o,3),f),g=new l(f),v=function(){for(var e=g.g(6),t=i,r=0;e<n;)e=(e+r)*a,t*=a,r=g.g(1);for(;e>=s;)e/=2,t/=2,r>>>=1;return(e+r)/t};return v.int32=function(){return 0|g.g(4)},v.quick=function(){return g.g(4)/4294967296},v.double=v,d(p(g.S),e),(u.pass||m||function(e,r,a,i){return i&&(i.S&&h(i,g),e.state=function(){return h(g,{})}),a?(t.random=e,r):e})(v,y,"global"in u?u.global:this==t,u.state)},d(t.random(),e)}function initialize$2(e){seedRandom([],e)}var propTypes={SHAPE:"shape"};function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null;function $bm_isInstanceOfArray(e){return e.constructor===Array||e.constructor===Float32Array}function isNumerable(e,t){return"number"===e||"boolean"===e||"string"===e||t instanceof Number}function $bm_neg(e){var t=_typeof(e);if("number"===t||"boolean"===t||e instanceof Number)return-e;if($bm_isInstanceOfArray(e)){var r,a=e.length,i=[];for(r=0;r<a;r+=1)i[r]=-e[r];return i}return e.propType?e.v:-e}initialize$2(BMMath);var easeInBez=BezierFactory.getBezierEasing(.333,0,.833,.833,"easeIn").get,easeOutBez=BezierFactory.getBezierEasing(.167,.167,.667,1,"easeOut").get,easeInOutBez=BezierFactory.getBezierEasing(.33,0,.667,1,"easeInOut").get;function sum(e,t){var r=_typeof(e),a=_typeof(t);if("string"===r||"string"===a)return e+t;if(isNumerable(r,e)&&isNumerable(a,t))return e+t;if($bm_isInstanceOfArray(e)&&isNumerable(a,t))return(e=e.slice(0))[0]+=t,e;if(isNumerable(r,e)&&$bm_isInstanceOfArray(t))return(t=t.slice(0))[0]=e+t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var i=0,n=e.length,s=t.length,o=[];i<n||i<s;)("number"==typeof e[i]||e[i]instanceof Number)&&("number"==typeof t[i]||t[i]instanceof Number)?o[i]=e[i]+t[i]:o[i]=void 0===t[i]?e[i]:e[i]||t[i],i+=1;return o}return 0}var add=sum;function sub(e,t){var r=_typeof(e),a=_typeof(t);if(isNumerable(r,e)&&isNumerable(a,t))return"string"===r&&(e=parseInt(e,10)),"string"===a&&(t=parseInt(t,10)),e-t;if($bm_isInstanceOfArray(e)&&isNumerable(a,t))return(e=e.slice(0))[0]-=t,e;if(isNumerable(r,e)&&$bm_isInstanceOfArray(t))return(t=t.slice(0))[0]=e-t[0],t;if($bm_isInstanceOfArray(e)&&$bm_isInstanceOfArray(t)){for(var i=0,n=e.length,s=t.length,o=[];i<n||i<s;)("number"==typeof e[i]||e[i]instanceof Number)&&("number"==typeof t[i]||t[i]instanceof Number)?o[i]=e[i]-t[i]:o[i]=void 0===t[i]?e[i]:e[i]||t[i],i+=1;return o}return 0}function mul(e,t){var r,a,i,n=_typeof(e),s=_typeof(t);if(isNumerable(n,e)&&isNumerable(s,t))return e*t;if($bm_isInstanceOfArray(e)&&isNumerable(s,t)){for(i=e.length,r=createTypedArray("float32",i),a=0;a<i;a+=1)r[a]=e[a]*t;return r}if(isNumerable(n,e)&&$bm_isInstanceOfArray(t)){for(i=t.length,r=createTypedArray("float32",i),a=0;a<i;a+=1)r[a]=e*t[a];return r}return 0}function div(e,t){var r,a,i,n=_typeof(e),s=_typeof(t);if(isNumerable(n,e)&&isNumerable(s,t))return e/t;if($bm_isInstanceOfArray(e)&&isNumerable(s,t)){for(i=e.length,r=createTypedArray("float32",i),a=0;a<i;a+=1)r[a]=e[a]/t;return r}if(isNumerable(n,e)&&$bm_isInstanceOfArray(t)){for(i=t.length,r=createTypedArray("float32",i),a=0;a<i;a+=1)r[a]=e/t[a];return r}return 0}function mod(e,t){return"string"==typeof e&&(e=parseInt(e,10)),"string"==typeof t&&(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 a=r;r=t,t=a}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("number"==typeof e||e instanceof Number)return t=t||0,Math.abs(e-t);var r;t||(t=helperLengthArray);var a=Math.min(e.length,t.length),i=0;for(r=0;r<a;r+=1)i+=Math.pow(t[r]-e[r],2);return Math.sqrt(i)}function normalize(e){return div(e,length(e))}function rgbToHsl(e){var t,r,a=e[0],i=e[1],n=e[2],s=Math.max(a,i,n),o=Math.min(a,i,n),l=(s+o)/2;if(s===o)t=0,r=0;else{var h=s-o;switch(r=l>.5?h/(2-s-o):h/(s+o),s){case a:t=(i-n)/h+(i<n?6:0);break;case i:t=(n-a)/h+2;break;case n:t=(a-i)/h+4}t/=6}return[t,r,l,e[3]]}function hue2rgb(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function hslToRgb(e){var t,r,a,i=e[0],n=e[1],s=e[2];if(0===n)t=s,a=s,r=s;else{var o=s<.5?s*(1+n):s+n-s*n,l=2*s-o;t=hue2rgb(l,o,i+1/3),r=hue2rgb(l,o,i),a=hue2rgb(l,o,i-1/3)}return[t,r,a,e[3]]}function linear(e,t,r,a,i){if(void 0!==a&&void 0!==i||(a=t,i=r,t=0,r=1),r<t){var n=r;r=t,t=n}if(e<=t)return a;if(e>=r)return i;var s,o=r===t?0:(e-t)/(r-t);if(!a.length)return a+(i-a)*o;var l=a.length,h=createTypedArray("float32",l);for(s=0;s<l;s+=1)h[s]=a[s]+(i[s]-a[s])*o;return h}function random(e,t){if(void 0===t&&(void 0===e?(e=0,t=1):(t=e,e=void 0)),t.length){var r,a=t.length;e||(e=createTypedArray("float32",a));var i=createTypedArray("float32",a),n=BMMath.random();for(r=0;r<a;r+=1)i[r]=e[r]+n*(t[r]-e[r]);return i}return void 0===e&&(e=0),e+BMMath.random()*(t-e)}function createPath(e,t,r,a){var i,n=e.length,s=shapePool.newElement();s.setPathData(!!a,n);var o,l,h=[0,0];for(i=0;i<n;i+=1)o=t&&t[i]?t[i]:h,l=r&&r[i]?r[i]:h,s.setTripleAt(e[i][0],e[i][1],l[0]+e[i][0],l[1]+e[i][1],o[0]+e[i][0],o[1]+e[i][1],i,!0);return s}function initiateExpression(elem,data,property){var val=data.x,needsVelocity=/velocity(?![\w\d])/.test(val),_needsRandom=-1!==val.indexOf("random"),elemType=elem.data.ty,transform,$bm_transform,content,effect,thisProperty=property;thisProperty.valueAtTime=thisProperty.getValueAtTime,Object.defineProperty(thisProperty,"value",{get:function(){return thisProperty.v}}),elem.comp.frameDuration=1/elem.comp.globalData.frameRate,elem.comp.displayStartTime=0;var inPoint=elem.data.ip/elem.comp.globalData.frameRate,outPoint=elem.data.op/elem.comp.globalData.frameRate,width=elem.data.sw?elem.data.sw:0,height=elem.data.sh?elem.data.sh:0,name=elem.data.nm,loopIn,loop_in,loopOut,loop_out,smooth,toWorld,fromWorld,fromComp,toComp,fromCompToSurface,position,rotation,anchorPoint,scale,thisLayer,thisComp,mask,valueAtTime,velocityAtTime,scoped_bm_rt,expression_function=eval("[function _expression_function(){"+val+";scoped_bm_rt=$bm_rt}]")[0],numKeys=property.kf?data.k.length:0,active=!this.data||!0!==this.data.hd,wiggle=function(e,t){var r,a,i=this.pv.length?this.pv.length:1,n=createTypedArray("float32",i),s=Math.floor(5*time);for(r=0,a=0;r<s;){for(a=0;a<i;a+=1)n[a]+=-t+2*t*BMMath.random();r+=1}var o=5*time,l=o-Math.floor(o),h=createTypedArray("float32",i);if(i>1){for(a=0;a<i;a+=1)h[a]=this.pv[a]+n[a]+(-t+2*t*BMMath.random())*l;return h}return this.pv+n[0]+(-t+2*t*BMMath.random())*l}.bind(this);function loopInDuration(e,t){return loopIn(e,t,!0)}function loopOutDuration(e,t){return loopOut(e,t,!0)}thisProperty.loopIn&&(loopIn=thisProperty.loopIn.bind(thisProperty),loop_in=loopIn),thisProperty.loopOut&&(loopOut=thisProperty.loopOut.bind(thisProperty),loop_out=loopOut),thisProperty.smooth&&(smooth=thisProperty.smooth.bind(thisProperty)),this.getValueAtTime&&(valueAtTime=this.getValueAtTime.bind(this)),this.getVelocityAtTime&&(velocityAtTime=this.getVelocityAtTime.bind(this));var comp=elem.comp.globalData.projectInterface.bind(elem.comp.globalData.projectInterface),time,velocity,value,text,textIndex,textTotal,selectorValue;function lookAt(e,t){var r=[t[0]-e[0],t[1]-e[1],t[2]-e[2]],a=Math.atan2(r[0],Math.sqrt(r[1]*r[1]+r[2]*r[2]))/degToRads;return[-Math.atan2(r[1],r[2])/degToRads,a,0]}function easeOut(e,t,r,a,i){return applyEase(easeOutBez,e,t,r,a,i)}function easeIn(e,t,r,a,i){return applyEase(easeInBez,e,t,r,a,i)}function ease(e,t,r,a,i){return applyEase(easeInOutBez,e,t,r,a,i)}function applyEase(e,t,r,a,i,n){void 0===i?(i=r,n=a):t=(t-r)/(a-r),t>1?t=1:t<0&&(t=0);var s=e(t);if($bm_isInstanceOfArray(i)){var o,l=i.length,h=createTypedArray("float32",l);for(o=0;o<l;o+=1)h[o]=(n[o]-i[o])*s+i[o];return h}return(n-i)*s+i}function nearestKey(e){var t,r,a,i=data.k.length;if(data.k.length&&"number"!=typeof data.k[0])if(r=-1,(e*=elem.comp.globalData.frameRate)<data.k[0].t)r=1,a=data.k[0].t;else{for(t=0;t<i-1;t+=1){if(e===data.k[t].t){r=t+1,a=data.k[t].t;break}if(e>data.k[t].t&&e<data.k[t+1].t){e-data.k[t].t>data.k[t+1].t-e?(r=t+2,a=data.k[t+1].t):(r=t+1,a=data.k[t].t);break}}-1===r&&(r=t+1,a=data.k[t].t)}else r=0,a=0;var n={};return n.index=r,n.time=a/elem.comp.globalData.frameRate,n}function key(e){var t,r,a;if(!data.k.length||"number"==typeof data.k[0])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 i=Object.prototype.hasOwnProperty.call(data.k[e],"s")?data.k[e].s:data.k[e-1].e;for(a=i.length,r=0;r<a;r+=1)t[r]=i[r],t.value[r]=i[r];return t}function framesToTime(e,t){return t||(t=elem.comp.globalData.frameRate),e/t}function timeToFrames(e,t){return e||0===e||(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"string"==typeof value?void 0===t?value.substring(e):value.substring(e,t):""}function substr(e,t){return"string"==typeof value?void 0===t?value.substr(e):value.substr(e,t):""}function posterizeTime(e){time=0===e?0:Math.floor(time*e)/e,value=valueAtTime(time)}var index=elem.data.ind,hasParent=!(!elem.hierarchy||!elem.hierarchy.length),parent,randSeed=Math.floor(1e6*Math.random()),globalData=elem.globalData;function executeExpression(e){return value=e,this.frameExpressionId===elem.globalData.frameId&&"textSelector"!==this.propType?value:("textSelector"===this.propType&&(textIndex=this.textIndex,textTotal=this.textTotal,selectorValue=this.selectorValue),thisLayer||(text=elem.layerInterface.text,thisLayer=elem.layerInterface,thisComp=elem.comp.compInterface,toWorld=thisLayer.toWorld.bind(thisLayer),fromWorld=thisLayer.fromWorld.bind(thisLayer),fromComp=thisLayer.fromComp.bind(thisLayer),toComp=thisLayer.toComp.bind(thisLayer),mask=thisLayer.mask?thisLayer.mask.bind(thisLayer):null,fromCompToSurface=fromComp),transform||(transform=elem.layerInterface("ADBE Transform Group"),$bm_transform=transform,transform&&(anchorPoint=transform.anchorPoint)),4!==elemType||content||(content=thisLayer("ADBE Root Vectors Group")),effect||(effect=thisLayer(4)),(hasParent=!(!elem.hierarchy||!elem.hierarchy.length))&&!parent&&(parent=elem.hierarchy[0].layerInterface),time=this.comp.renderedFrame/this.comp.globalData.frameRate,_needsRandom&&seedRandom(randSeed+time),needsVelocity&&(velocity=velocityAtTime(time)),expression_function(),this.frameExpressionId=elem.globalData.frameId,scoped_bm_rt=scoped_bm_rt.propType===propTypes.SHAPE?scoped_bm_rt.v:scoped_bm_rt)}return executeExpression.__preventDeadCodeRemoval=[$bm_transform,anchorPoint,time,velocity,inPoint,outPoint,width,height,name,loop_in,loop_out,smooth,toComp,fromCompToSurface,toWorld,fromWorld,mask,position,rotation,scale,thisComp,numKeys,active,wiggle,loopInDuration,loopOutDuration,comp,lookAt,easeOut,easeIn,ease,nearestKey,key,text,textIndex,textTotal,selectorValue,framesToTime,timeToFrames,sourceRectAtTime,substring,substr,posterizeTime,index,globalData],executeExpression}return ob.initiateExpression=initiateExpression,ob.__preventDeadCodeRemoval=[window,document,XMLHttpRequest,fetch,frames,$bm_neg,add,$bm_sum,$bm_sub,$bm_mul,$bm_div,$bm_mod,clamp,radians_to_degrees,degreesToRadians,degrees_to_radians,normalize,rgbToHsl,hslToRgb,linear,random,createPath],ob}(),expressionHelpers={searchExpressions:function(e,t,r){t.x&&(r.k=!0,r.x=!0,r.initiateExpression=ExpressionManager.initiateExpression,r.effectsSequence.push(r.initiateExpression(e,t,r).bind(r)))},getSpeedAtTime:function(e){var t=this.getValueAtTime(e),r=this.getValueAtTime(e+-.01),a=0;if(t.length){var i;for(i=0;i<t.length;i+=1)a+=Math.pow(r[i]-t[i],2);a=100*Math.sqrt(a)}else a=0;return a},getVelocityAtTime:function(e){if(void 0!==this.vel)return this.vel;var t,r,a=-.001,i=this.getValueAtTime(e),n=this.getValueAtTime(e+a);if(i.length)for(t=createTypedArray("float32",i.length),r=0;r<i.length;r+=1)t[r]=(n[r]-i[r])/a;else t=(n-i)/a;return t},getValueAtTime:function(e){return e*=this.elem.globalData.frameRate,(e-=this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<e?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(e,this._cachingAtTime),this._cachingAtTime.lastFrame=e),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(e){this.propertyGroup=e}};function addPropertyDecorator(){function e(e,t,r){if(!this.k||!this.keyframes)return this.pv;e=e?e.toLowerCase():"";var a,i,n,s,o,l=this.comp.renderedFrame,h=this.keyframes,c=h[h.length-1].t;if(l<=c)return this.pv;if(r?i=c-(a=t?Math.abs(c-this.elem.comp.globalData.frameRate*t):Math.max(0,c-this.elem.data.ip)):((!t||t>h.length-1)&&(t=h.length-1),a=c-(i=h[h.length-1-t].t)),"pingpong"===e){if(Math.floor((l-i)/a)%2!=0)return this.getValueAtTime((a-(l-i)%a+i)/this.comp.globalData.frameRate,0)}else{if("offset"===e){var d=this.getValueAtTime(i/this.comp.globalData.frameRate,0),p=this.getValueAtTime(c/this.comp.globalData.frameRate,0),u=this.getValueAtTime(((l-i)%a+i)/this.comp.globalData.frameRate,0),m=Math.floor((l-i)/a);if(this.pv.length){for(s=(o=new Array(d.length)).length,n=0;n<s;n+=1)o[n]=(p[n]-d[n])*m+u[n];return o}return(p-d)*m+u}if("continue"===e){var f=this.getValueAtTime(c/this.comp.globalData.frameRate,0),y=this.getValueAtTime((c-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(s=(o=new Array(f.length)).length,n=0;n<s;n+=1)o[n]=f[n]+(f[n]-y[n])*((l-c)/this.comp.globalData.frameRate)/5e-4;return o}return f+(l-c)/.001*(f-y)}}return this.getValueAtTime(((l-i)%a+i)/this.comp.globalData.frameRate,0)}function t(e,t,r){if(!this.k)return this.pv;e=e?e.toLowerCase():"";var a,i,n,s,o,l=this.comp.renderedFrame,h=this.keyframes,c=h[0].t;if(l>=c)return this.pv;if(r?i=c+(a=t?Math.abs(this.elem.comp.globalData.frameRate*t):Math.max(0,this.elem.data.op-c)):((!t||t>h.length-1)&&(t=h.length-1),a=(i=h[t].t)-c),"pingpong"===e){if(Math.floor((c-l)/a)%2==0)return this.getValueAtTime(((c-l)%a+c)/this.comp.globalData.frameRate,0)}else{if("offset"===e){var d=this.getValueAtTime(c/this.comp.globalData.frameRate,0),p=this.getValueAtTime(i/this.comp.globalData.frameRate,0),u=this.getValueAtTime((a-(c-l)%a+c)/this.comp.globalData.frameRate,0),m=Math.floor((c-l)/a)+1;if(this.pv.length){for(s=(o=new Array(d.length)).length,n=0;n<s;n+=1)o[n]=u[n]-(p[n]-d[n])*m;return o}return u-(p-d)*m}if("continue"===e){var f=this.getValueAtTime(c/this.comp.globalData.frameRate,0),y=this.getValueAtTime((c+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(s=(o=new Array(f.length)).length,n=0;n<s;n+=1)o[n]=f[n]+(f[n]-y[n])*(c-l)/.001;return o}return f+(f-y)*(c-l)/.001}}return this.getValueAtTime((a-((c-l)%a+c))/this.comp.globalData.frameRate,0)}function r(e,t){if(!this.k)return this.pv;if(e=.5*(e||.4),(t=Math.floor(t||5))<=1)return this.pv;var r,a,i=this.comp.renderedFrame/this.comp.globalData.frameRate,n=i-e,s=t>1?(i+e-n)/(t-1):1,o=0,l=0;for(r=this.pv.length?createTypedArray("float32",this.pv.length):0;o<t;){if(a=this.getValueAtTime(n+o*s),this.pv.length)for(l=0;l<this.pv.length;l+=1)r[l]+=a[l];else r+=a;o+=1}if(this.pv.length)for(l=0;l<this.pv.length;l+=1)r[l]/=t;else r/=t;return r}function a(e){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var t=this._transformCachingAtTime.v;if(t.cloneFromProps(this.pre.props),this.appliedTransformations<1){var r=this.a.getValueAtTime(e);t.translate(-r[0]*this.a.mult,-r[1]*this.a.mult,r[2]*this.a.mult)}if(this.appliedTransformations<2){var a=this.s.getValueAtTime(e);t.scale(a[0]*this.s.mult,a[1]*this.s.mult,a[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var i=this.sk.getValueAtTime(e),n=this.sa.getValueAtTime(e);t.skewFromAxis(-i*this.sk.mult,n*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var s=this.r.getValueAtTime(e);t.rotate(-s*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var o=this.rz.getValueAtTime(e),l=this.ry.getValueAtTime(e),h=this.rx.getValueAtTime(e),c=this.or.getValueAtTime(e);t.rotateZ(-o*this.rz.mult).rotateY(l*this.ry.mult).rotateX(h*this.rx.mult).rotateZ(-c[2]*this.or.mult).rotateY(c[1]*this.or.mult).rotateX(c[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var d=this.px.getValueAtTime(e),p=this.py.getValueAtTime(e);if(this.data.p.z){var u=this.pz.getValueAtTime(e);t.translate(d*this.px.mult,p*this.py.mult,-u*this.pz.mult)}else t.translate(d*this.px.mult,p*this.py.mult,0)}else{var m=this.p.getValueAtTime(e);t.translate(m[0]*this.p.mult,m[1]*this.p.mult,-m[2]*this.p.mult)}return t}function i(){return this.v.clone(new Matrix)}var n=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(e,t,r){var s=n(e,t,r);return s.dynamicProperties.length?s.getValueAtTime=a.bind(s):s.getValueAtTime=i.bind(s),s.setGroupProperty=expressionHelpers.setGroupProperty,s};var s=PropertyFactory.getProp;PropertyFactory.getProp=function(a,i,n,o,l){var h=s(a,i,n,o,l);h.kf?h.getValueAtTime=expressionHelpers.getValueAtTime.bind(h):h.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(h),h.setGroupProperty=expressionHelpers.setGroupProperty,h.loopOut=e,h.loopIn=t,h.smooth=r,h.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(h),h.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(h),h.numKeys=1===i.a?i.k.length:0,h.propertyIndex=i.ix;var c=0;return 0!==n&&(c=createTypedArray("float32",1===i.a?i.k[0].s.length:i.k.length)),h._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:c},expressionHelpers.searchExpressions(a,i,h),h.k&&l.addDynamicProperty(h),h};var o=ShapePropertyFactory.getConstructorFunction(),l=ShapePropertyFactory.getKeyframedConstructorFunction();function h(){}h.prototype={vertices:function(e,t){this.k&&this.getValue();var r,a=this.v;void 0!==t&&(a=this.getValueAtTime(t,0));var i=a._length,n=a[e],s=a.v,o=createSizedArray(i);for(r=0;r<i;r+=1)o[r]="i"===e||"o"===e?[n[r][0]-s[r][0],n[r][1]-s[r][1]]:[n[r][0],n[r][1]];return o},points:function(e){return this.vertices("v",e)},inTangents:function(e){return this.vertices("i",e)},outTangents:function(e){return this.vertices("o",e)},isClosed:function(){return this.v.c},pointOnPath:function(e,t){var r=this.v;void 0!==t&&(r=this.getValueAtTime(t,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(r));for(var a,i=this._segmentsLength,n=i.lengths,s=i.totalLength*e,o=0,l=n.length,h=0;o<l;){if(h+n[o].addedLength>s){var c=o,d=r.c&&o===l-1?0:o+1,p=(s-h)/n[o].addedLength;a=bez.getPointInSegment(r.v[c],r.v[d],r.o[c],r.i[d],p,n[o]);break}h+=n[o].addedLength,o+=1}return a||(a=r.c?[r.v[0][0],r.v[0][1]]:[r.v[r._length-1][0],r.v[r._length-1][1]]),a},vectorOnPath:function(e,t,r){1==e?e=this.v.c:0==e&&(e=.999);var a=this.pointOnPath(e,t),i=this.pointOnPath(e+.001,t),n=i[0]-a[0],s=i[1]-a[1],o=Math.sqrt(Math.pow(n,2)+Math.pow(s,2));return 0===o?[0,0]:"tangent"===r?[n/o,s/o]:[-s/o,n/o]},tangentOnPath:function(e,t){return this.vectorOnPath(e,t,"tangent")},normalOnPath:function(e,t){return this.vectorOnPath(e,t,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([h],o),extendPrototype([h],l),l.prototype.getValueAtTime=function(e){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),e*=this.elem.globalData.frameRate,(e-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<e?this._caching.lastIndex:0,this._cachingAtTime.lastTime=e,this.interpolateShape(e,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},l.prototype.initiateExpression=ExpressionManager.initiateExpression;var c=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(e,t,r,a,i){var n=c(e,t,r,a,i);return n.propertyIndex=t.ix,n.lock=!1,3===r?expressionHelpers.searchExpressions(e,t.pt,n):4===r&&expressionHelpers.searchExpressions(e,t.ks,n),n.k&&e.addDynamicProperty(n),n}}function initialize$1(){addPropertyDecorator()}function addDecorator(){TextProperty.prototype.getExpressionValue=function(e,t){var r=this.calculateExpression(t);if(e.t!==r){var a={};return this.copyData(a,e),a.t=r.toString(),a.__complete=!1,a}return e},TextProperty.prototype.searchProperty=function(){var e=this.searchKeyframes(),t=this.searchExpressions();return this.kf=e||t,this.kf},TextProperty.prototype.searchExpressions=function(){return this.data.d.x?(this.calculateExpression=ExpressionManager.initiateExpression.bind(this)(this.elem,this.data.d,this),this.addEffect(this.getExpressionValue.bind(this)),!0):null}}function initialize(){addDecorator()}function SVGComposableEffect(){}function SVGTintFilter(e,t,r,a,i){this.filterManager=t;var n=createNS("feColorMatrix");n.setAttribute("type","matrix"),n.setAttribute("color-interpolation-filters","linearRGB"),n.setAttribute("values","0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0"),n.setAttribute("result",a+"_tint_1"),e.appendChild(n),(n=createNS("feColorMatrix")).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",a+"_tint_2"),e.appendChild(n),this.matrixFilter=n;var s=this.createMergeNode(a,[i,a+"_tint_1",a+"_tint_2"]);e.appendChild(s)}function SVGFillFilter(e,t,r,a){this.filterManager=t;var i=createNS("feColorMatrix");i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","sRGB"),i.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),i.setAttribute("result",a),e.appendChild(i),this.matrixFilter=i}function SVGStrokeEffect(e,t,r){this.initialized=!1,this.filterManager=t,this.elem=r,this.paths=[]}function SVGTritoneFilter(e,t,r,a){this.filterManager=t;var i=createNS("feColorMatrix");i.setAttribute("type","matrix"),i.setAttribute("color-interpolation-filters","linearRGB"),i.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(i);var n=createNS("feComponentTransfer");n.setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("result",a),this.matrixFilter=n;var s=createNS("feFuncR");s.setAttribute("type","table"),n.appendChild(s),this.feFuncR=s;var o=createNS("feFuncG");o.setAttribute("type","table"),n.appendChild(o),this.feFuncG=o;var l=createNS("feFuncB");l.setAttribute("type","table"),n.appendChild(l),this.feFuncB=l,e.appendChild(n)}function SVGProLevelsFilter(e,t,r,a){this.filterManager=t;var i=this.filterManager.effectElements,n=createNS("feComponentTransfer");(i[10].p.k||0!==i[10].p.v||i[11].p.k||1!==i[11].p.v||i[12].p.k||1!==i[12].p.v||i[13].p.k||0!==i[13].p.v||i[14].p.k||1!==i[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",n)),(i[17].p.k||0!==i[17].p.v||i[18].p.k||1!==i[18].p.v||i[19].p.k||1!==i[19].p.v||i[20].p.k||0!==i[20].p.v||i[21].p.k||1!==i[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",n)),(i[24].p.k||0!==i[24].p.v||i[25].p.k||1!==i[25].p.v||i[26].p.k||1!==i[26].p.v||i[27].p.k||0!==i[27].p.v||i[28].p.k||1!==i[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",n)),(i[31].p.k||0!==i[31].p.v||i[32].p.k||1!==i[32].p.v||i[33].p.k||1!==i[33].p.v||i[34].p.k||0!==i[34].p.v||i[35].p.k||1!==i[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",n)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(n.setAttribute("color-interpolation-filters","sRGB"),e.appendChild(n)),(i[3].p.k||0!==i[3].p.v||i[4].p.k||1!==i[4].p.v||i[5].p.k||1!==i[5].p.v||i[6].p.k||0!==i[6].p.v||i[7].p.k||1!==i[7].p.v)&&((n=createNS("feComponentTransfer")).setAttribute("color-interpolation-filters","sRGB"),n.setAttribute("result",a),e.appendChild(n),this.feFuncRComposed=this.createFeFunc("feFuncR",n),this.feFuncGComposed=this.createFeFunc("feFuncG",n),this.feFuncBComposed=this.createFeFunc("feFuncB",n))}function SVGDropShadowEffect(e,t,r,a,i){var n=t.container.globalData.renderConfig.filterSize,s=t.data.fs||n;e.setAttribute("x",s.x||n.x),e.setAttribute("y",s.y||n.y),e.setAttribute("width",s.width||n.width),e.setAttribute("height",s.height||n.height),this.filterManager=t;var o=createNS("feGaussianBlur");o.setAttribute("in","SourceAlpha"),o.setAttribute("result",a+"_drop_shadow_1"),o.setAttribute("stdDeviation","0"),this.feGaussianBlur=o,e.appendChild(o);var l=createNS("feOffset");l.setAttribute("dx","25"),l.setAttribute("dy","0"),l.setAttribute("in",a+"_drop_shadow_1"),l.setAttribute("result",a+"_drop_shadow_2"),this.feOffset=l,e.appendChild(l);var h=createNS("feFlood");h.setAttribute("flood-color","#00ff00"),h.setAttribute("flood-opacity","1"),h.setAttribute("result",a+"_drop_shadow_3"),this.feFlood=h,e.appendChild(h);var c=createNS("feComposite");c.setAttribute("in",a+"_drop_shadow_3"),c.setAttribute("in2",a+"_drop_shadow_2"),c.setAttribute("operator","in"),c.setAttribute("result",a+"_drop_shadow_4"),e.appendChild(c);var d=this.createMergeNode(a,[a+"_drop_shadow_4",i]);e.appendChild(d)}SVGComposableEffect.prototype={createMergeNode:function(e,t){var r,a,i=createNS("feMerge");for(i.setAttribute("result",e),a=0;a<t.length;a+=1)(r=createNS("feMergeNode")).setAttribute("in",t[a]),i.appendChild(r),i.appendChild(r);return i}},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,a=this.filterManager.effectElements[2].p.v/100;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 "+a+" 0")}},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")}},SVGStrokeEffect.prototype.initialize=function(){var e,t,r,a,i=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(a=this.elem.maskManager.masksProperties.length,r=0):a=1+(r=this.filterManager.effectElements[0].p.v-1),(t=createNS("g")).setAttribute("fill","none"),t.setAttribute("stroke-linecap","round"),t.setAttribute("stroke-dashoffset",1);r<a;r+=1)e=createNS("path"),t.appendChild(e),this.paths.push({p:e,m:r});if(3===this.filterManager.effectElements[10].p.v){var n=createNS("mask"),s=createElementID();n.setAttribute("id",s),n.setAttribute("mask-type","alpha"),n.appendChild(t),this.elem.globalData.defs.appendChild(n);var o=createNS("g");for(o.setAttribute("mask","url("+getLocationHref()+"#"+s+")");i[0];)o.appendChild(i[0]);this.elem.layerElement.appendChild(o),this.masker=n,t.setAttribute("stroke","#fff")}else if(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v){if(2===this.filterManager.effectElements[10].p.v)for(i=this.elem.layerElement.children||this.elem.layerElement.childNodes;i.length;)this.elem.layerElement.removeChild(i[0]);this.elem.layerElement.appendChild(t),this.elem.layerElement.removeAttribute("mask"),t.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=t},SVGStrokeEffect.prototype.renderFrame=function(e){var t;this.initialized||this.initialize();var r,a,i=this.paths.length;for(t=0;t<i;t+=1)if(-1!==this.paths[t].m&&(r=this.elem.maskManager.viewData[this.paths[t].m],a=this.paths[t].p,(e||this.filterManager._mdf||r.prop._mdf)&&a.setAttribute("d",r.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||r.prop._mdf)){var n;if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){var s=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),o=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),l=a.getTotalLength();n="0 0 0 "+l*s+" ";var h,c=l*(o-s),d=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01,p=Math.floor(c/d);for(h=0;h<p;h+=1)n+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";n+="0 "+10*l+" 0 0"}else n="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;a.setAttribute("stroke-dasharray",n)}if((e||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(e||this.filterManager.effectElements[6].p._mdf)&&this.pathMasker.setAttribute("opacity",this.filterManager.effectElements[6].p.v),(1===this.filterManager.effectElements[10].p.v||2===this.filterManager.effectElements[10].p.v)&&(e||this.filterManager.effectElements[3].p._mdf)){var u=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*u[0])+","+bmFloor(255*u[1])+","+bmFloor(255*u[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,a=this.filterManager.effectElements[2].p.v,i=a[0]+" "+r[0]+" "+t[0],n=a[1]+" "+r[1]+" "+t[1],s=a[2]+" "+r[2]+" "+t[2];this.feFuncR.setAttribute("tableValues",i),this.feFuncG.setAttribute("tableValues",n),this.feFuncB.setAttribute("tableValues",s)}},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,a,i){for(var n,s,o=0,l=Math.min(e,t),h=Math.max(e,t),c=Array.call(null,{length:256}),d=0,p=i-a,u=t-e;o<=256;)s=(n=o/256)<=l?u<0?i:a:n>=h?u<0?a:i:a+p*Math.pow((n-e)/u,1/r),c[d]=s,d+=1,o+=256/255;return c.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))}},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(255*t[0]),Math.round(255*t[1]),Math.round(255*t[2])))}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,a=(this.filterManager.effectElements[2].p.v-90)*degToRads,i=r*Math.cos(a),n=r*Math.sin(a);this.feOffset.setAttribute("dx",i),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}function SVGGaussianBlurEffect(e,t,r,a){e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width","300%"),e.setAttribute("height","300%"),this.filterManager=t;var i=createNS("feGaussianBlur");i.setAttribute("result",a),e.appendChild(i),this.feGaussianBlur=i}return 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 a,i=r.children,n=0,s=i.length;n<s&&i[n]!==e.layerElement;)n+=1;n<=s-2&&(a=i[n+1]);var o=createNS("use");o.setAttribute("href","#"+t),a?r.insertBefore(o,a):r.appendChild(o)}},SVGMatte3Effect.prototype.setElementAsMask=function(e,t){if(!this.findSymbol(t)){var r=createElementID(),a=createNS("mask");a.setAttribute("id",t.layerId),a.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(t);var i=e.globalData.defs;i.appendChild(a);var n=createNS("symbol");n.setAttribute("id",r),this.replaceInParent(t,r),n.appendChild(t.layerElement),i.appendChild(n);var s=createNS("use");s.setAttribute("href","#"+r),a.appendChild(s),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,a=t.length;r<a;)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()},SVGGaussianBlurEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t=.3*this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,a=3==r?0:t,i=2==r?0:t;this.feGaussianBlur.setAttribute("stdDeviation",a+" "+i);var n=1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",n)}},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),setExpressionsPlugin(Expressions),initialize$1(),initialize(),registerEffect(20,SVGTintFilter,!0),registerEffect(21,SVGFillFilter,!0),registerEffect(22,SVGStrokeEffect,!1),registerEffect(23,SVGTritoneFilter,!0),registerEffect(24,SVGProLevelsFilter,!0),registerEffect(25,SVGDropShadowEffect,!0),registerEffect(28,SVGMatte3Effect,!1),registerEffect(29,SVGGaussianBlurEffect,!0),lottie},module.exports=factory())})(lottie$1,lottie$1.exports);var lottie=lottie$1.exports;function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,a)}return r}function _objectSpread2(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach((function(t){_defineProperty(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function _defineProperty(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _objectWithoutPropertiesLoose(e,t){if(null==e)return{};var r,a,i={},n=Object.keys(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||(i[r]=e[r]);return i}function _objectWithoutProperties(e,t){if(null==e)return{};var r,a,i=_objectWithoutPropertiesLoose(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray$1(e,t)||_nonIterableRest()}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _iterableToArrayLimit(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a,i,n=[],s=!0,o=!1;try{for(r=r.call(e);!(s=(a=r.next()).done)&&(n.push(a.value),!t||n.length!==t);s=!0);}catch(e){o=!0,i=e}finally{try{s||null==r.return||r.return()}finally{if(o)throw i}}return n}}function _unsupportedIterableToArray$1(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray$1(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray$1(e,t):void 0}}function _arrayLikeToArray$1(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}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){var r=e.animationData,a=e.loop,i=e.autoplay,n=e.initialSegment,s=e.onComplete,o=e.onLoopComplete,l=e.onEnterFrame,h=e.onSegmentStart,c=e.onConfigReady,d=e.onDataReady,p=e.onDataFailed,u=e.onLoadedImages,m=e.onDOMLoaded,f=e.onDestroy;e.lottieRef,e.renderer,e.name,e.assetsPath,e.rendererSettings;var y=_objectWithoutProperties(e,_excluded$1),g=_slicedToArray(useState(!1),2),v=g[0],b=g[1],x=useRef(),S=useRef(null);return useEffect((function(){var t=function(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(S.current){null===(t=x.current)||void 0===t||t.destroy();var a=_objectSpread2(_objectSpread2(_objectSpread2({},e),r),{},{container:S.current});return x.current=lottie.loadAnimation(a),b(!!x.current),function(){var e;null===(e=x.current)||void 0===e||e.destroy(),x.current=void 0}}}();return function(){return null==t?void 0:t()}}),[r,a]),useEffect((function(){x.current&&(x.current.autoplay=!!i)}),[i]),useEffect((function(){x.current&&(n?Array.isArray(n)&&n.length&&((x.current.currentRawFrame<n[0]||x.current.currentRawFrame>n[1])&&(x.current.currentRawFrame=n[0]),x.current.setSegment(n[0],n[1])):x.current.resetSegments(!0))}),[n]),useEffect((function(){var e=[{name:"complete",handler:s},{name:"loopComplete",handler:o},{name:"enterFrame",handler:l},{name:"segmentStart",handler:h},{name:"config_ready",handler:c},{name:"data_ready",handler:d},{name:"data_failed",handler:p},{name:"loaded_images",handler:u},{name:"DOMLoaded",handler:m},{name:"destroy",handler:f}].filter((function(e){return null!=e.handler}));if(e.length){var t=e.map((function(e){var t;return null===(t=x.current)||void 0===t||t.addEventListener(e.name,e.handler),function(){var t;null===(t=x.current)||void 0===t||t.removeEventListener(e.name,e.handler)}}));return function(){t.forEach((function(e){return e()}))}}}),[s,o,l,h,c,d,p,u,m,f]),{View:React__default.createElement("div",_objectSpread2({style:t,ref:S},y)),play:function(){var e;null===(e=x.current)||void 0===e||e.play()},stop:function(){var e;null===(e=x.current)||void 0===e||e.stop()},pause:function(){var e;null===(e=x.current)||void 0===e||e.pause()},setSpeed:function(e){var t;null===(t=x.current)||void 0===t||t.setSpeed(e)},goToAndStop:function(e,t){var r;null===(r=x.current)||void 0===r||r.goToAndStop(e,t)},goToAndPlay:function(e,t){var r;null===(r=x.current)||void 0===r||r.goToAndPlay(e,t)},setDirection:function(e){var t;null===(t=x.current)||void 0===t||t.setDirection(e)},playSegments:function(e,t){var r;null===(r=x.current)||void 0===r||r.playSegments(e,t)},setSubframe:function(e){var t;null===(t=x.current)||void 0===t||t.setSubframe(e)},getDuration:function(e){var t;return null===(t=x.current)||void 0===t?void 0:t.getDuration(e)},destroy:function(){var e;null===(e=x.current)||void 0===e||e.destroy(),x.current=void 0},animationContainerRef:S,animationLoaded:v,animationItem:x.current}},v$1="4.10.1",fr$1=24,ip$1=0,op$1=72,w$1=250,h$2=250,nm$1="Comp 1",ddd$1=0,assets$1=[{id:"comp_0",layers:[{ddd:0,ind:1,ty:4,nm:"Capa de formas 12",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},n:"0p833_0p833_0p167_0p167",t:24,s:[81.5,370.25,0],e:[445.5,199.25,0],to:[60.6666679382324,-28.5,0],ti:[-60.6666679382324,28.5,0]},{t:48}],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[43,43,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[28,0],[34.935,-19.483],[31.619,18.821],[33,-14],[57,29],[0,0],[0,0],[0,0]],o:[[-28,0],[-52,29],[-42,-25],[-28.892,12.257],[-57,-29],[0,0],[0,0],[0,0]],v:[[367.75,-97],[277,-75],[155,-82],[35,-82],[-94,-82.326],[-200,-74],[-352.07,320.209],[499.162,354.093]],c:!0},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.9372549019607843,.2549019607843137,.23921568627450981,1],ix:4},o:{a:0,k:100,ix:5},r:1,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformar"}],nm:"Forma 1",np:3,cix:2,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:144,st:0,bm:0},{ddd:0,ind:2,ty:4,nm:"Capa de formas 2",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},n:"0p833_0p833_0p167_0p167",t:24,s:[-133,374,0],e:[231,203,0],to:[60.6666679382324,-28.5,0],ti:[-60.6666679382324,28.5,0]},{t:48}],ix:2},a:{a:0,k:[0,0,0],ix:1},s:{a:0,k:[43,43,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[28,0],[34.935,-19.483],[31.619,18.821],[33,-14],[57,29],[0,0],[0,0],[0,0]],o:[[-28,0],[-52,29],[-42,-25],[-28.892,12.257],[-57,-29],[0,0],[0,0],[0,0]],v:[[367.75,-97],[277,-75],[155,-82],[35,-82],[-94,-82.326],[-200,-74],[-352.07,320.209],[499.162,354.093]],c:!0},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.9372549019607843,.2549019607843137,.23921568627450981,1],ix:4},o:{a:0,k:100,ix:5},r:1,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformar"}],nm:"Forma 1",np:3,cix:2,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:144,st:0,bm:0}]}],layers$1=[{ddd:0,ind:1,ty:4,nm:"Capa de formas 5",sr:1,ks:{o:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},n:["0p833_0p833_0p167_0p167"],t:15,s:[100],e:[0]},{t:16}],ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},n:"0p833_0p833_0p167_0p167",t:0,s:[124.375,-8.75,0],e:[199,156,0],to:[0,28.3333339691162,0],ti:[0,-28.9375,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},n:"0p833_0p833_0p167_0p167",t:12,s:[124.375,97.5,0],e:[199,164.066,0],to:[0,4.54861259460449,0],ti:[0,-2.45892143249512,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},n:"0p833_0p833_0p167_0p167",t:13,s:[124.375,102.54125,0],e:[199,166.125,0],to:[0,13.1843204498291,0],ti:[0,-1.72074222564697,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},n:"0p833_0p833_0p167_0p167",t:14,s:[124.375,103.828125,0],e:[199,168.375,0],to:[0,2.04166674613953,0],ti:[0,-.04166666790843,0]},{t:15}],ix:2},a:{a:0,k:[-1,-182.375,0],ix:1},s:{a:1,k:[{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},n:["0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167"],t:0,s:[31.25,31.25,100],e:[31.25,58.75,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},n:["0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167"],t:12,s:[31.25,58.75,100],e:[43.75,27.083125,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},n:["0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167"],t:13,s:[43.75,27.083125,100],e:[65.16125000000001,20,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},n:["0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167"],t:14,s:[65.16125000000001,20,100],e:[132.5,11.25,100]},{t:15}],ix:6}},ao:0,shapes:[{ty:"gr",it:[{ind:0,ty:"sh",ix:1,ks:{a:0,k:{i:[[.938,0],[0,-5.25],[-4.563,.125],[.108,4.624]],o:[[-.813,.125],[0,4.813],[4.563,-.125],[-.125,-5.375]],v:[[-1.344,-193.078],[-8.75,-180.5],[-1.063,-172.313],[6.938,-180.188]],c:!0},ix:2},nm:"Trazado 1",mn:"ADBE Vector Shape - Group",hd:!1},{ty:"fl",c:{a:0,k:[.2549019607843137,.25098039215686274,.25882352941176473,1],ix:4},o:{a:0,k:100,ix:5},r:1,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[0,0],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformar"}],nm:"Forma 1",np:3,cix:2,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:60,st:0,bm:0},{ddd:0,ind:8,ty:4,nm:"Capa de formas 3",sr:1,ks:{o:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},n:["0p833_0p833_0p167_0p167"],t:46,s:[0],e:[100]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},n:["0p833_0p833_0p167_0p167"],t:47,s:[100],e:[100]},{t:48}],ix:11},r:{a:0,k:0,ix:10},p:{a:1,k:[{i:{x:.833,y:.833},o:{x:.167,y:.167},n:"0p833_0p833_0p167_0p167",t:47,s:[124.98749999999998,105.15625,0],e:[199.98,158.037,0],to:[0,-.20375619828701,0],ti:[0,17.58864402771,0]},{i:{x:.833,y:.833},o:{x:.167,y:.167},n:"0p833_0p833_0p167_0p167",t:48,s:[124.98749999999998,98.77312500000001,0],e:[199.98,-10,0],to:[-28421709430404e-27,-50.4047393798828,0],ti:[0,1.17485654354095,0]},{t:53}],ix:2},a:{a:0,k:[-32,-31,0],ix:1},s:{a:1,k:[{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},n:["0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167"],t:47,s:[-2.5,.625,100],e:[.9375,2.5,100]},{i:{x:[.833,.833,.833],y:[.833,.833,.833]},o:{x:[.167,.167,.167],y:[.167,.167,.167]},n:["0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167","0p833_0p833_0p167_0p167"],t:48,s:[.9375,2.5,100],e:[1.25,1.875,100]},{t:53}],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[308,308],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Trazado elíptico 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"fl",c:{a:0,k:[.2549019607843137,.25098039215686274,.25882352941176473,1],ix:4},o:{a:0,k:100,ix:5},r:1,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[-31,-31],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformar"}],nm:"Elipse 1",np:3,cix:2,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:60,st:0,bm:0},{ddd:0,ind:9,ty:4,nm:"Capa de formas 4",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[124.375,158.125,0],ix:2},a:{a:0,k:[-32,-31,0],ix:1},s:{a:0,k:[34.375,34.375,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[308,308],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Trazado elíptico 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"st",c:{a:0,k:[.2549019607843137,.25098039215686274,.25882352941176473,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:10,ix:5},lc:1,lj:1,ml:4,nm:"Trazo 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"tr",p:{a:0,k:[-31,-31],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformar"}],nm:"Elipse 1",np:3,cix:2,ix:1,mn:"ADBE Vector Group",hd:!1},{ty:"tm",s:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},n:["0p833_0p833_0p167_0p167"],t:12,s:[50],e:[100]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},n:["0p833_0p833_0p167_0p167"],t:24,s:[100],e:[50]},{t:48}],ix:1},e:{a:1,k:[{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},n:["0p833_0p833_0p167_0p167"],t:12,s:[50],e:[0]},{i:{x:[.833],y:[.833]},o:{x:[.167],y:[.167]},n:["0p833_0p833_0p167_0p167"],t:24,s:[0],e:[50]},{t:48}],ix:2},o:{a:0,k:180,ix:3},m:1,ix:2,nm:"Recortar trazados 1",mn:"ADBE Vector Filter - Trim",hd:!1}],ip:0,op:60,st:0,bm:0},{ddd:0,ind:10,ty:4,nm:"Capa de formas 1",td:1,sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[124.375,158.125,0],ix:2},a:{a:0,k:[-32,-31,0],ix:1},s:{a:0,k:[31.25,31.25,100],ix:6}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[308,308],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Trazado elíptico 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"fl",c:{a:0,k:[.913725490196,.347995563582,.03941561007,1],ix:4},o:{a:0,k:100,ix:5},r:1,nm:"Relleno 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[-31,-31],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transformar"}],nm:"Elipse 1",np:3,cix:2,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:60,st:0,bm:0},{ddd:0,ind:11,ty:0,nm:"Precomp. 1",tt:1,refId:"comp_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[125,125,0],ix:2},a:{a:0,k:[200,200,0],ix:1},s:{a:0,k:[62.5,62.5,100],ix:6}},ao:0,w:400,h:400,ip:0,op:144,st:0,bm:0}],animationData$1={v:v$1,fr:fr$1,ip:ip$1,op:op$1,w:w$1,h:h$2,nm:nm$1,ddd:ddd$1,assets:assets$1,layers:layers$1};const LottieSpinner=()=>{const e={animationData:animationData$1,loop:!0,autoplay:!0,style:{height:"200px",width:"200px"}},{View:t}=useLottie(e);return jsx(Fragment,{children:t})},LoadingSpinner=()=>jsx(Container$g,{children:jsx(LottieSpinner,{})}),Container$g=styled.div`
|
|
409
406
|
margin: 0 auto;
|
|
410
407
|
padding: 1rem 2rem 4rem;
|
|
411
|
-
`;var v="5.7.4",fr=120,ip=0,op=180,w=640,h=160,nm="Loading Orb",ddd=0,assets=[{id:"comp_0",layers:[{ddd:0,ind:1,ty:4,nm:"Shape Layer 1",sr:1,ks:{o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:60,s:[100]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:75,s:[50]},{t:100,s:[100]}],ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[79.984,80.047,0],ix:2,l:2},a:{a:0,k:[0,0,0],ix:1,l:2},s:{a:1,k:[{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:60,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:75,s:[150,150,100]},{t:100,s:[100,100,100]}],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[100,100],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Ellipse Path 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:0,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.109803922474,.46274510026,.835294127464,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[.016,-.047],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Ellipse 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:240,st:0,bm:0}]},{id:"comp_1",layers:[{ddd:0,ind:1,ty:4,nm:"Shape Layer 1",sr:1,ks:{o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:61,s:[100]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:76,s:[50]},{t:101,s:[100]}],ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[79.984,80.047,0],ix:2,l:2},a:{a:0,k:[0,0,0],ix:1,l:2},s:{a:1,k:[{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:61,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:76,s:[150,150,100]},{t:101,s:[100,100,100]}],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[100,100],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Ellipse Path 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:0,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.584313750267,.607843160629,.772549033165,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[.016,-.047],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Ellipse 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:240,st:0,bm:0}]},{id:"comp_2",layers:[{ddd:0,ind:1,ty:4,nm:"Shape Layer 1",sr:1,ks:{o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:59,s:[100]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:74,s:[50]},{t:99,s:[100]}],ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[79.984,80.047,0],ix:2,l:2},a:{a:0,k:[0,0,0],ix:1,l:2},s:{a:1,k:[{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:59,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:74,s:[150,150,100]},{t:99,s:[100,100,100]}],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[100,100],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Ellipse Path 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:0,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.341176480055,.662745118141,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[.016,-.047],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Ellipse 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:240,st:0,bm:0}]},{id:"comp_3",layers:[{ddd:0,ind:1,ty:4,nm:"Shape Layer 1",sr:1,ks:{o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:59,s:[100]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:74,s:[50]},{t:99,s:[100]}],ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[79.984,80.047,0],ix:2,l:2},a:{a:0,k:[0,0,0],ix:1,l:2},s:{a:1,k:[{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:59,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:74,s:[150,150,100]},{t:99,s:[100,100,100]}],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[100,100],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Ellipse Path 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:0,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.949019610882,.40000000596,.392156869173,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[.016,-.047],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Ellipse 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:240,st:0,bm:0}]},{id:"comp_4",layers:[{ddd:0,ind:1,ty:4,nm:"Shape Layer 1",sr:1,ks:{o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:59,s:[100]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:74,s:[50]},{t:99,s:[100]}],ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[79.984,80.047,0],ix:2,l:2},a:{a:0,k:[0,0,0],ix:1,l:2},s:{a:1,k:[{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:59,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:74,s:[150,150,100]},{t:99,s:[100,100,100]}],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[100,100],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Ellipse Path 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:0,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.937254905701,.254901975393,.239215686917,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[.016,-.047],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Ellipse 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:240,st:0,bm:0}]}],layers=[{ddd:0,ind:1,ty:0,nm:"Orb 1",refId:"comp_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[80,80,0],ix:2,l:2},a:{a:0,k:[80,80,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,w:160,h:160,ip:-1,op:181,st:-59,bm:0},{ddd:0,ind:2,ty:0,nm:"Orb 2",refId:"comp_1",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[200,80,0],ix:2,l:2},a:{a:0,k:[80,80,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,w:160,h:160,ip:0,op:191,st:-49,bm:0},{ddd:0,ind:3,ty:0,nm:"Orb 3",refId:"comp_2",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[320,80,0],ix:2,l:2},a:{a:0,k:[80,80,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,w:160,h:160,ip:0,op:201,st:-39,bm:0},{ddd:0,ind:4,ty:0,nm:"Orb 4",refId:"comp_3",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[440,80,0],ix:2,l:2},a:{a:0,k:[80,80,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,w:160,h:160,ip:0,op:211,st:-29,bm:0},{ddd:0,ind:5,ty:0,nm:"Orb 5",refId:"comp_4",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[560,80,0],ix:2,l:2},a:{a:0,k:[80,80,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,w:160,h:160,ip:0,op:221,st:-19,bm:0}],markers=[],animationData={v:v,fr:fr,ip:ip,op:op,w:w,h:h,nm:nm,ddd:ddd,assets:assets,layers:layers,markers:markers};const LottieLoadingDots=()=>{const e={animationData:animationData,loop:!0,autoplay:!0,style:{height:"16px",width:"64px"}},{View:t}=useLottie(e);return jsx(Fragment,{children:t})},LoadingDots=()=>jsx(Container$
|
|
408
|
+
`;var v="5.7.4",fr=120,ip=0,op=180,w=640,h$1=160,nm="Loading Orb",ddd=0,assets=[{id:"comp_0",layers:[{ddd:0,ind:1,ty:4,nm:"Shape Layer 1",sr:1,ks:{o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:60,s:[100]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:75,s:[50]},{t:100,s:[100]}],ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[79.984,80.047,0],ix:2,l:2},a:{a:0,k:[0,0,0],ix:1,l:2},s:{a:1,k:[{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:60,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:75,s:[150,150,100]},{t:100,s:[100,100,100]}],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[100,100],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Ellipse Path 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:0,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.109803922474,.46274510026,.835294127464,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[.016,-.047],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Ellipse 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:240,st:0,bm:0}]},{id:"comp_1",layers:[{ddd:0,ind:1,ty:4,nm:"Shape Layer 1",sr:1,ks:{o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:61,s:[100]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:76,s:[50]},{t:101,s:[100]}],ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[79.984,80.047,0],ix:2,l:2},a:{a:0,k:[0,0,0],ix:1,l:2},s:{a:1,k:[{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:61,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:76,s:[150,150,100]},{t:101,s:[100,100,100]}],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[100,100],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Ellipse Path 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:0,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.584313750267,.607843160629,.772549033165,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[.016,-.047],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Ellipse 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:240,st:0,bm:0}]},{id:"comp_2",layers:[{ddd:0,ind:1,ty:4,nm:"Shape Layer 1",sr:1,ks:{o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:59,s:[100]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:74,s:[50]},{t:99,s:[100]}],ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[79.984,80.047,0],ix:2,l:2},a:{a:0,k:[0,0,0],ix:1,l:2},s:{a:1,k:[{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:59,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:74,s:[150,150,100]},{t:99,s:[100,100,100]}],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[100,100],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Ellipse Path 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:0,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.341176480055,.662745118141,1,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[.016,-.047],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Ellipse 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:240,st:0,bm:0}]},{id:"comp_3",layers:[{ddd:0,ind:1,ty:4,nm:"Shape Layer 1",sr:1,ks:{o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:59,s:[100]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:74,s:[50]},{t:99,s:[100]}],ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[79.984,80.047,0],ix:2,l:2},a:{a:0,k:[0,0,0],ix:1,l:2},s:{a:1,k:[{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:59,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:74,s:[150,150,100]},{t:99,s:[100,100,100]}],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[100,100],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Ellipse Path 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:0,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.949019610882,.40000000596,.392156869173,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[.016,-.047],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Ellipse 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:240,st:0,bm:0}]},{id:"comp_4",layers:[{ddd:0,ind:1,ty:4,nm:"Shape Layer 1",sr:1,ks:{o:{a:1,k:[{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:59,s:[100]},{i:{x:[.667],y:[1]},o:{x:[.333],y:[0]},t:74,s:[50]},{t:99,s:[100]}],ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[79.984,80.047,0],ix:2,l:2},a:{a:0,k:[0,0,0],ix:1,l:2},s:{a:1,k:[{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:59,s:[100,100,100]},{i:{x:[.667,.667,.667],y:[1,1,1]},o:{x:[.333,.333,.333],y:[0,0,0]},t:74,s:[150,150,100]},{t:99,s:[100,100,100]}],ix:6,l:2}},ao:0,shapes:[{ty:"gr",it:[{d:1,ty:"el",s:{a:0,k:[100,100],ix:2},p:{a:0,k:[0,0],ix:3},nm:"Ellipse Path 1",mn:"ADBE Vector Shape - Ellipse",hd:!1},{ty:"st",c:{a:0,k:[1,1,1,1],ix:3},o:{a:0,k:100,ix:4},w:{a:0,k:0,ix:5},lc:1,lj:1,ml:4,bm:0,nm:"Stroke 1",mn:"ADBE Vector Graphic - Stroke",hd:!1},{ty:"fl",c:{a:0,k:[.937254905701,.254901975393,.239215686917,1],ix:4},o:{a:0,k:100,ix:5},r:1,bm:0,nm:"Fill 1",mn:"ADBE Vector Graphic - Fill",hd:!1},{ty:"tr",p:{a:0,k:[.016,-.047],ix:2},a:{a:0,k:[0,0],ix:1},s:{a:0,k:[100,100],ix:3},r:{a:0,k:0,ix:6},o:{a:0,k:100,ix:7},sk:{a:0,k:0,ix:4},sa:{a:0,k:0,ix:5},nm:"Transform"}],nm:"Ellipse 1",np:3,cix:2,bm:0,ix:1,mn:"ADBE Vector Group",hd:!1}],ip:0,op:240,st:0,bm:0}]}],layers=[{ddd:0,ind:1,ty:0,nm:"Orb 1",refId:"comp_0",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[80,80,0],ix:2,l:2},a:{a:0,k:[80,80,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,w:160,h:160,ip:-1,op:181,st:-59,bm:0},{ddd:0,ind:2,ty:0,nm:"Orb 2",refId:"comp_1",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[200,80,0],ix:2,l:2},a:{a:0,k:[80,80,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,w:160,h:160,ip:0,op:191,st:-49,bm:0},{ddd:0,ind:3,ty:0,nm:"Orb 3",refId:"comp_2",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[320,80,0],ix:2,l:2},a:{a:0,k:[80,80,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,w:160,h:160,ip:0,op:201,st:-39,bm:0},{ddd:0,ind:4,ty:0,nm:"Orb 4",refId:"comp_3",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[440,80,0],ix:2,l:2},a:{a:0,k:[80,80,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,w:160,h:160,ip:0,op:211,st:-29,bm:0},{ddd:0,ind:5,ty:0,nm:"Orb 5",refId:"comp_4",sr:1,ks:{o:{a:0,k:100,ix:11},r:{a:0,k:0,ix:10},p:{a:0,k:[560,80,0],ix:2,l:2},a:{a:0,k:[80,80,0],ix:1,l:2},s:{a:0,k:[100,100,100],ix:6,l:2}},ao:0,w:160,h:160,ip:0,op:221,st:-19,bm:0}],markers=[],animationData={v:v,fr:fr,ip:ip,op:op,w:w,h:h$1,nm:nm,ddd:ddd,assets:assets,layers:layers,markers:markers};const LottieLoadingDots=()=>{const e={animationData:animationData,loop:!0,autoplay:!0,style:{height:"16px",width:"64px"}},{View:t}=useLottie(e);return jsx(Fragment,{children:t})},LoadingDots=()=>jsx(Container$f,{children:jsx(LottieLoadingDots,{})}),Container$f=styled.div`
|
|
412
409
|
margin: 0 auto;
|
|
413
|
-
`;var DefaultContext={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},IconContext=React__default.createContext&&React__default.createContext(DefaultContext),__assign=function(){return __assign=Object.assign||function(e){for(var t,r=1,a=arguments.length;r<a;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},__assign.apply(this,arguments)},__rest=function(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(r[a[i]]=e[a[i]])}return r};function Tree2Element(e){return e&&e.map((function(e,t){return React__default.createElement(e.tag,__assign({key:t},e.attr),Tree2Element(e.child))}))}function GenIcon(e){return function(t){return React__default.createElement(IconBase,__assign({attr:__assign({},e.attr)},t),Tree2Element(e.child))}}function IconBase(e){var t=function(t){var r,a=e.attr,i=e.size,n=e.title,s=__rest(e,["attr","size","title"]),o=i||t.size||"1em";return t.className&&(r=t.className),e.className&&(r=(r?r+" ":"")+e.className),React__default.createElement("svg",__assign({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,a,s,{className:r,style:__assign(__assign({color:e.color||t.color},t.style),e.style),height:o,width:o,xmlns:"http://www.w3.org/2000/svg"}),n&&React__default.createElement("title",null,n),e.children)};return void 0!==IconContext?React__default.createElement(IconContext.Consumer,null,(function(e){return t(e)})):t(DefaultContext)}function IoMdAlert(e){return GenIcon({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 48C141.6 48 48 141.601 48 256s93.6 208 208 208 208-93.601 208-208S370.4 48 256 48zm24 312h-48v-40h48v40zm0-88h-48V144h48v128z"}}]})(e)}const Container$
|
|
410
|
+
`;var DefaultContext={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},IconContext=React__default.createContext&&React__default.createContext(DefaultContext),__assign=function(){return __assign=Object.assign||function(e){for(var t,r=1,a=arguments.length;r<a;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},__assign.apply(this,arguments)},__rest$1=function(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(r[a[i]]=e[a[i]])}return r};function Tree2Element(e){return e&&e.map((function(e,t){return React__default.createElement(e.tag,__assign({key:t},e.attr),Tree2Element(e.child))}))}function GenIcon(e){return function(t){return React__default.createElement(IconBase,__assign({attr:__assign({},e.attr)},t),Tree2Element(e.child))}}function IconBase(e){var t=function(t){var r,a=e.attr,i=e.size,n=e.title,s=__rest$1(e,["attr","size","title"]),o=i||t.size||"1em";return t.className&&(r=t.className),e.className&&(r=(r?r+" ":"")+e.className),React__default.createElement("svg",__assign({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,a,s,{className:r,style:__assign(__assign({color:e.color||t.color},t.style),e.style),height:o,width:o,xmlns:"http://www.w3.org/2000/svg"}),n&&React__default.createElement("title",null,n),e.children)};return void 0!==IconContext?React__default.createElement(IconContext.Consumer,null,(function(e){return t(e)})):t(DefaultContext)}function IoMdAlert(e){return GenIcon({tag:"svg",attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 48C141.6 48 48 141.601 48 256s93.6 208 208 208 208-93.601 208-208S370.4 48 256 48zm24 312h-48v-40h48v40zm0-88h-48V144h48v128z"}}]})(e)}const Container$e=styled.div`
|
|
414
411
|
border: 1px solid ${Color.Neutral[5]};
|
|
415
412
|
border-radius: 4px;
|
|
416
413
|
margin-bottom: 2rem;
|
|
@@ -484,7 +481,7 @@ import{jsx,jsxs,Fragment}from"react/jsx-runtime";import*as React from"react";imp
|
|
|
484
481
|
color: ${Color.Neutral[3]};
|
|
485
482
|
font-weight: bold;
|
|
486
483
|
font-size: 1.2rem;
|
|
487
|
-
`,BoxContainer=({children:e,title:t,collapsible:r=!0,expanded:a=!1,callToActionComponent:i,displayState:n="default",className:s,subComponentTestIds:o,...l})=>{const[h,
|
|
484
|
+
`,BoxContainer=({children:e,title:t,collapsible:r=!0,expanded:a=!1,callToActionComponent:i,displayState:n="default",className:s,subComponentTestIds:o,...l})=>{const[h,c]=useState(!r||a),d=useResizeDetector(),p=d.ref,u=useSpring({height:h?d.height:0});return jsxs(Container$e,{className:s,"data-testid":l["data-testid"],children:[jsxs(Header,{"data-testid":"header",children:[jsxs(LabelText,{id:"title","data-testid":o?.title||"title",weight:"semibold",children:[t,(()=>{switch(n){case"error":case"warning":return jsx(LabelIcon$1,{$displayState:n,"data-testid":o?.displayStateIcon||`${n}-icon`,children:jsx(IoMdAlert,{})});default:return null}})()]}),i&&jsx(CallToActionContainer,{$collapsible:r,"data-testid":"call-to-action-container",children:i}),r&&jsx(Handle,{onClick:()=>{c(!h)},type:"button","data-testid":o?.handle||"handle",children:jsx(HandleIconContainer,{$expanded:h,children:jsx(HandleIcon,{type:"chevron-down"})})})]}),r?jsx(Expandable$1,{style:u,"data-testid":"expandable-container",children:jsx(ChildContainer,{ref:p,children:e})}):jsx(NonExpandable,{"data-testid":"non-expandable-container",children:jsx(ChildContainer,{children:e})})]})},Wrapper$c=styled.div`
|
|
488
485
|
position: relative;
|
|
489
486
|
width: 100%;
|
|
490
487
|
z-index: 1;
|
|
@@ -498,7 +495,7 @@ import{jsx,jsxs,Fragment}from"react/jsx-runtime";import*as React from"react";imp
|
|
|
498
495
|
${MediaQuery.MaxWidth.tablet} {
|
|
499
496
|
margin: 1rem 0;
|
|
500
497
|
}
|
|
501
|
-
`,Content=styled.ul`
|
|
498
|
+
`,Content$3=styled.ul`
|
|
502
499
|
display: inline-flex;
|
|
503
500
|
width: 100%;
|
|
504
501
|
flex-wrap: wrap;
|
|
@@ -538,7 +535,7 @@ import{jsx,jsxs,Fragment}from"react/jsx-runtime";import*as React from"react";imp
|
|
|
538
535
|
margin: 0.25rem !important;
|
|
539
536
|
`,PreviousLink=styled(Text.Hyperlink.Small)`
|
|
540
537
|
margin: 0.25rem !important;
|
|
541
|
-
`,Breadcrumb=({links:e,fadeColor:t,fadePosition:r="both",itemStyle:a,id:i,...n})=>{const[s,o]=useState(!!r),[l,h]=useState("left"===r||"both"===r),[
|
|
538
|
+
`,Breadcrumb=({links:e,fadeColor:t,fadePosition:r="both",itemStyle:a,id:i,...n})=>{const[s,o]=useState(!!r),[l,h]=useState("left"===r||"both"===r),[c,d]=useState("right"===r||"both"===r),p=useRef(null),u=useRef(null);useResizeDetector({onResize:useCallback((()=>{const t=u.current,r=p.current;t&&r&&e&&e.length>1&&window.innerWidth<=MediaWidths$1.tablet&&(t.scrollLeft=t.scrollWidth-r.offsetWidth)}),[e.length]),targetRef:p,refreshMode:"debounce",refreshRate:50});const m=()=>{if(s){o(window.innerWidth<MediaWidths$1.tablet);const e=u.current,t=p.current;e&&t&&e.scrollWidth>t.offsetWidth?(o(!0),h(e.scrollLeft>=1),d(e.scrollWidth-e.scrollLeft>t.offsetWidth)):o(!1)}};if(useEffect((()=>{const e=u.current;return m(),window.addEventListener("resize",m),e&&e.addEventListener("scroll",m),()=>{window.removeEventListener("resize",m),e&&e.removeEventListener("scroll",m)}}),[]),!e)return null;return jsxs(Wrapper$c,{ref:p,id:i||"breadcrumb",...n,children:[jsx("nav",{children:jsx(Content$3,{ref:u,children:e.map(((t,r)=>{let i;return t.children?(i=r!==e.length-1&&t.href?jsx(PreviousLink,{...t,weight:"semibold"}):jsx(CurrentLabel,{weight:"semibold",children:t.children}),jsxs(Item$1,{$styleProps:a,children:[i,r<e.length-1&&jsx(Caret,{type:"chevron-right"})]},r)):null}))})}),s&&jsxs(Fragment,{children:[l&&jsx(Fade,{$backgroundColor:t,$position:"left"}),c&&jsx(Fade,{$backgroundColor:t,$position:"right"})]})]})},Container$d=styled.div`
|
|
542
539
|
display: flex;
|
|
543
540
|
justify-content: center;
|
|
544
541
|
align-items: center;
|
|
@@ -567,7 +564,7 @@ import{jsx,jsxs,Fragment}from"react/jsx-runtime";import*as React from"react";imp
|
|
|
567
564
|
`}}
|
|
568
565
|
font-weight: bold;
|
|
569
566
|
color: ${e=>e.disabled?Color.Neutral[4]:Color.Neutral[8]};
|
|
570
|
-
`,Checkbox=({className:e,checked:t,disabled:r,onClick:a,onKeyPress:i,displaySize:n="default",...s})=>{const[o,l]=useState(t);useEffect((()=>{l(t)}),[t]);const h=e=>{r||(a&&a(e),i&&i(e))};return jsxs(Container$
|
|
567
|
+
`,Checkbox=({className:e,checked:t,disabled:r,onClick:a,onKeyPress:i,displaySize:n="default",...s})=>{const[o,l]=useState(t);useEffect((()=>{l(t)}),[t]);const h=e=>{r||(a&&a(e),i&&i(e))};return jsxs(Container$d,{selected:o,disabled:r,className:e,"data-testid":"checkbox",onKeyPress:h,tabIndex:r?-1:0,role:"checkbox",$displaySize:n,children:[jsx(Input$3,{type:"checkbox","data-testid":"checkbox-input",onClick:h,disabled:r,tabIndex:-1,...s}),o&&jsx(Checkmark$1,{type:"check",id:"checkmark","data-testid":"checkmark",disabled:r,$displaySize:n})]})};var StringHelper;!function(e){e.transformWithSpaces=(e,t)=>{const r="(.{"+t+"})";return e.replace(/[^\dA-Z]/gi,"").replace(new RegExp(r,"g"),"$1 ").trim()},e.padValue=(e,t)=>{if("0"===e)return t?e:e.padStart(2,"0");if(""===e)return e;return parseInt(e).toString().padStart(2,"0")},e.shouldTruncateToTwoLines=(e,t)=>{const r=Math.floor(t/9);return e.length>=2*r||1===e.split(" ").length&&e.length>r},e.truncateOneLine=(e,t,r,a)=>{let i=0;t>r&&(i=Math.floor((t-r)/8));const n=a+i;if(n<e.length){const t=Math.floor(n/2);return e.substring(0,t)+" ... "+e.substring(e.length-t,e.length)}return e}}(StringHelper||(StringHelper={}));const Container$c=styled.div`
|
|
571
568
|
display: flex;
|
|
572
569
|
position: relative;
|
|
573
570
|
align-items: center;
|
|
@@ -609,17 +606,6 @@ import{jsx,jsxs,Fragment}from"react/jsx-runtime";import*as React from"react";imp
|
|
|
609
606
|
height: 100%;
|
|
610
607
|
display: flex;
|
|
611
608
|
align-items: center;
|
|
612
|
-
|
|
613
|
-
// Removal of arrow buttons for Mozilla Firefox
|
|
614
|
-
input[type="number"]::-webkit-outer-spin-button,
|
|
615
|
-
input[type="number"]::-webkit-inner-spin-button {
|
|
616
|
-
-webkit-appearance: none;
|
|
617
|
-
margin: 0;
|
|
618
|
-
}
|
|
619
|
-
|
|
620
|
-
input[type="number"] {
|
|
621
|
-
-moz-appearance: textfield;
|
|
622
|
-
}
|
|
623
609
|
`,BaseInput=styled.input`
|
|
624
610
|
${TextStyleHelper.getTextStyle("Body","regular")}
|
|
625
611
|
background: transparent;
|
|
@@ -658,7 +644,6 @@ import{jsx,jsxs,Fragment}from"react/jsx-runtime";import*as React from"react";imp
|
|
|
658
644
|
opacity: ${e=>e.$hide?0:1};
|
|
659
645
|
margin: 0.1rem 0.2rem 0 0.2rem;
|
|
660
646
|
`;styled(Divider$2)`
|
|
661
|
-
/* margin: 0.1rem 0.2rem 0 0.4rem; */
|
|
662
647
|
${e=>{if(e.$compress)return css`
|
|
663
648
|
margin: 0.1rem 0.1rem 0 0.1rem;
|
|
664
649
|
`}}
|
|
@@ -677,10 +662,244 @@ import{jsx,jsxs,Fragment}from"react/jsx-runtime";import*as React from"react";imp
|
|
|
677
662
|
width: 2.6rem;
|
|
678
663
|
`,YearPlaceholder=styled(Placeholder)`
|
|
679
664
|
width: 3.5rem;
|
|
680
|
-
`,DateInput=({disabled:e,error:t,value:r,onChange:a,onBlur:i,...n})=>{const[s,o]=useState(""),[l,h]=useState(""),[
|
|
665
|
+
`,DateInput=({disabled:e,error:t,value:r,onChange:a,onBlur:i,...n})=>{const[s,o]=useState(""),[l,h]=useState(""),[c,d]=useState(""),[p,u]=useState("none"),m=useRef(null),f=useRef(null),y=useRef(null),g=useRef(null),v=useRef(s),b=useRef(l),x=useRef(c),S=useRef(p),_=e=>{v.current=e,o(e)},T=e=>{b.current=e,h(e)},C=e=>{x.current=e,d(e)},$=e=>{S.current=e,u(e)};useEffect((()=>(document.addEventListener("mousedown",w),m.current&&m.current.addEventListener("keydown",k),f.current&&f.current.addEventListener("keydown",E),y.current&&y.current.addEventListener("keydown",E),g.current&&g.current.addEventListener("keydown",E),()=>{document.removeEventListener("mousedown",w),m.current&&m.current.removeEventListener("keydown",k),f.current&&f.current.removeEventListener("keydown",E),y.current&&y.current.removeEventListener("keydown",E),g.current&&g.current.removeEventListener("keydown",E)})),[p]),useEffect((()=>{"day"===p&&2===s.length&&y.current&&y.current.focus()}),[s]),useEffect((()=>{"month"===p&&2===l.length&&g.current&&g.current.focus()}),[l]),useEffect((()=>{I(r)}),[r]);const E=e=>{const t=["Backspace","0","1","2","3","4","5","6","7","8","9"],r=e.code&&e.code.startsWith("Digit")&&!t.includes(e.key);(!["Digit0","Digit1","Digit2","Digit3","Digit4","Digit5","Digit6","Digit7","Digit8","Digit9","Tab","Backspace","Delete","ArrowLeft","ArrowRight"].includes(e.code)&&!t.includes(e.key)||r)&&e.preventDefault()},w=t=>{e||m&&m.current.contains(t.target)||"none"!==S.current&&($("none"),F())},k=e=>{"year"===e.target.name&&"Tab"===e.code&&($("none"),F())},A=e=>{$(e.target.name),e.target.select()},P=e=>{switch(e.target.name){case"day":_(StringHelper.padValue(e.target.value,!0));break;case"month":T(StringHelper.padValue(e.target.value,!0))}},M=e=>{const t=e.target.name;switch(t){case"day":e.target.value.length<=2&&(_(e.target.value),D(e.target.value,t));break;case"month":e.target.value.length<=2&&(T(e.target.value),D(e.target.value,t));break;case"year":e.target.value.length<=4&&(C(e.target.value),D(e.target.value,t))}},I=e=>{if(void 0===e||""===e)_(""),T(""),C("");else{const t=new Date(e);if(!isNaN(t.getTime())){const e=t.getDate(),r=t.getMonth()+1,a=t.getFullYear();_(StringHelper.padValue(e.toString())),T(StringHelper.padValue(r.toString())),C(a.toString())}}},D=(e,t)=>{if(a){const r={day:s,month:l,year:c};r[t]=e;const i=R(r);a(i)}},F=()=>{if(i){const e={day:v.current,month:b.current,year:x.current},t=R(e);i(t)}},R=e=>{const t=[e.year,e.month,e.day];return e.day.length>=1&&e.month.length>=1&&4===e.year.length?t.join("-"):t.every((e=>""===e))?"":INVALID_VALUE};return jsxs(Container$c,{ref:m,onClick:()=>{"none"===p&&f.current&&f.current.focus()},disabled:e,$error:t,"data-testid":n["data-testid"],children:[jsxs(PlaceholderContainer,{children:[jsx(Placeholder,{$hide:"day"===p||s.length>0,"data-testid":"day-placeholder",children:"DD"}),jsx(PlaceholderDivider,{$hide:s.length>0,children:"/"}),jsx(MonthPlaceholder,{$hide:"month"===p||l.length>0,"data-testid":"month-placeholder",children:"MM"}),jsx(PlaceholderDivider,{$hide:l.length>0,children:"/"}),jsx(YearPlaceholder,{$hide:"year"===p||c.length>0,"data-testid":"year-placeholder",$addGap:0===s.length&&0===c.length,children:"YYYY"})]}),jsxs(InputContainer$1,{children:[jsx(BaseInput,{name:"day",maxLength:2,value:s,ref:f,onFocus:A,onBlur:P,onChange:M,disabled:e,type:"number",pattern:"[0-9]{2}","data-testid":"day-input","aria-label":"day-input"}),jsx(Divider$2,{$hide:0===s.length,children:"/"}),jsx(MonthInput,{name:"month",maxLength:2,value:l,ref:y,onFocus:A,onBlur:P,onChange:M,disabled:e,type:"number",pattern:"[0-9]{2}","data-testid":"month-input","aria-label":"month-input"}),jsx(Divider$2,{$hide:0===l.length,children:"/"}),jsx(YearInput,{name:"year",maxLength:4,value:c,ref:g,onFocus:A,onBlur:P,onChange:M,disabled:e,type:"number",pattern:"[0-9]{4}","data-testid":"year-input","aria-label":"year-input"})]})]})},INVALID_VALUE="Invalid date",Wrapper$b=styled.div`
|
|
666
|
+
display: flex;
|
|
667
|
+
align-items: flex-start;
|
|
668
|
+
flex-direction: column;
|
|
669
|
+
|
|
670
|
+
${MediaQuery.MaxWidth.tablet} {
|
|
671
|
+
justify-content: flex-start;
|
|
672
|
+
padding: 0;
|
|
673
|
+
}
|
|
674
|
+
`,Label$3=styled(Text.H5).attrs({as:"p"})`
|
|
675
|
+
margin-bottom: 1rem;
|
|
676
|
+
`,Items=styled.div`
|
|
677
|
+
display: flex;
|
|
678
|
+
align-items: flex-start;
|
|
679
|
+
`,AppStoreLink=styled.a`
|
|
680
|
+
&:not(:last-child) {
|
|
681
|
+
margin-right: 2rem;
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
img {
|
|
685
|
+
width: auto;
|
|
686
|
+
height: 3rem;
|
|
687
|
+
object-fit: contain;
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
${MediaQuery.MaxWidth.mobileL} {
|
|
691
|
+
&:not(:last-child) {
|
|
692
|
+
margin-right: 1rem;
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
img {
|
|
696
|
+
width: auto;
|
|
697
|
+
height: auto;
|
|
698
|
+
object-fit: contain;
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
`,APP_STORE_ICON$1="https://assets.life.gov.sg/react-design-system/img/download/apple-app-store.png",PLAY_STORE_ICON$1="https://assets.life.gov.sg/react-design-system/img/download/google-play-store.png",DownloadApp=()=>jsxs(Wrapper$b,{"data-testid":"download-app-section",children:[jsx(Label$3,{weight:"semibold",children:"Download the app"}),jsxs(Items,{children:[jsx(AppStoreLink,{href:"https://apps.apple.com/sg/app/moments-of-life/id1383218758",target:"_blank",rel:"noopener noreferrer",children:jsx("img",{src:APP_STORE_ICON$1,alt:"apple-app-store"})}),jsx(AppStoreLink,{href:"https://play.google.com/store/apps/details?id=sg.gov.app.mol&hl=en_SG",target:"_blank",rel:"noopener noreferrer",children:jsx("img",{src:PLAY_STORE_ICON$1,alt:"google-play-store"})})]})]});var dayjs_min={exports:{}};dayjs_min.exports=function(){var e=1e3,t=6e4,r=36e5,a="millisecond",i="second",n="minute",s="hour",o="day",l="week",h="month",c="quarter",d="year",p="date",u="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},g=function(e,t,r){var a=String(e);return!a||a.length>=t?e:""+Array(t+1-a.length).join(r)+e},v={s:g,z:function(e){var t=-e.utcOffset(),r=Math.abs(t),a=Math.floor(r/60),i=r%60;return(t<=0?"+":"-")+g(a,2,"0")+":"+g(i,2,"0")},m:function e(t,r){if(t.date()<r.date())return-e(r,t);var a=12*(r.year()-t.year())+(r.month()-t.month()),i=t.clone().add(a,h),n=r-i<0,s=t.clone().add(a+(n?-1:1),h);return+(-(a+(r-i)/(n?i-s:s-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:h,y:d,w:l,d:o,D:p,h:s,m:n,s:i,ms:a,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",x={};x[b]=y;var S=function(e){return e instanceof $},_=function e(t,r,a){var i;if(!t)return b;if("string"==typeof t){var n=t.toLowerCase();x[n]&&(i=n),r&&(x[n]=r,i=n);var s=t.split("-");if(!i&&s.length>1)return e(s[0])}else{var o=t.name;x[o]=t,i=o}return!a&&i&&(b=i),i||!a&&b},T=function(e,t){if(S(e))return e.clone();var r="object"==typeof t?t:{};return r.date=e,r.args=arguments,new $(r)},C=v;C.l=_,C.i=S,C.w=function(e,t){return T(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var $=function(){function y(e){this.$L=_(e.locale,null,!0),this.parse(e)}var g=y.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(C.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var a=t.match(m);if(a){var i=a[2]-1||0,n=(a[7]||"0").substring(0,3);return r?new Date(Date.UTC(a[1],i,a[3]||1,a[4]||0,a[5]||0,a[6]||0,n)):new Date(a[1],i,a[3]||1,a[4]||0,a[5]||0,a[6]||0,n)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return C},g.isValid=function(){return!(this.$d.toString()===u)},g.isSame=function(e,t){var r=T(e);return this.startOf(t)<=r&&r<=this.endOf(t)},g.isAfter=function(e,t){return T(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<T(e)},g.$g=function(e,t,r){return C.u(e)?this[t]:this.set(r,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(e,t){var r=this,a=!!C.u(t)||t,c=C.p(e),u=function(e,t){var i=C.w(r.$u?Date.UTC(r.$y,t,e):new Date(r.$y,t,e),r);return a?i:i.endOf(o)},m=function(e,t){return C.w(r.toDate()[e].apply(r.toDate("s"),(a?[0,0,0,0]:[23,59,59,999]).slice(t)),r)},f=this.$W,y=this.$M,g=this.$D,v="set"+(this.$u?"UTC":"");switch(c){case d:return a?u(1,0):u(31,11);case h:return a?u(1,y):u(0,y+1);case l:var b=this.$locale().weekStart||0,x=(f<b?f+7:f)-b;return u(a?g-x:g+(6-x),y);case o:case p:return m(v+"Hours",0);case s:return m(v+"Minutes",1);case n:return m(v+"Seconds",2);case i:return m(v+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var r,l=C.p(e),c="set"+(this.$u?"UTC":""),u=(r={},r[o]=c+"Date",r[p]=c+"Date",r[h]=c+"Month",r[d]=c+"FullYear",r[s]=c+"Hours",r[n]=c+"Minutes",r[i]=c+"Seconds",r[a]=c+"Milliseconds",r)[l],m=l===o?this.$D+(t-this.$W):t;if(l===h||l===d){var f=this.clone().set(p,1);f.$d[u](m),f.init(),this.$d=f.set(p,Math.min(this.$D,f.daysInMonth())).$d}else u&&this.$d[u](m);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[C.p(e)]()},g.add=function(a,c){var p,u=this;a=Number(a);var m=C.p(c),f=function(e){var t=T(u);return C.w(t.date(t.date()+Math.round(e*a)),u)};if(m===h)return this.set(h,this.$M+a);if(m===d)return this.set(d,this.$y+a);if(m===o)return f(1);if(m===l)return f(7);var y=(p={},p[n]=t,p[s]=r,p[i]=e,p)[m]||1,g=this.$d.getTime()+a*y;return C.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return r.invalidDate||u;var a=e||"YYYY-MM-DDTHH:mm:ssZ",i=C.z(this),n=this.$H,s=this.$m,o=this.$M,l=r.weekdays,h=r.months,c=function(e,r,i,n){return e&&(e[r]||e(t,a))||i[r].slice(0,n)},d=function(e){return C.s(n%12||12,e,"0")},p=r.meridiem||function(e,t,r){var a=e<12?"AM":"PM";return r?a.toLowerCase():a},m={YY:String(this.$y).slice(-2),YYYY:this.$y,M:o+1,MM:C.s(o+1,2,"0"),MMM:c(r.monthsShort,o,h,3),MMMM:c(h,o),D:this.$D,DD:C.s(this.$D,2,"0"),d:String(this.$W),dd:c(r.weekdaysMin,this.$W,l,2),ddd:c(r.weekdaysShort,this.$W,l,3),dddd:l[this.$W],H:String(n),HH:C.s(n,2,"0"),h:d(1),hh:d(2),a:p(n,s,!0),A:p(n,s,!1),m:String(s),mm:C.s(s,2,"0"),s:String(this.$s),ss:C.s(this.$s,2,"0"),SSS:C.s(this.$ms,3,"0"),Z:i};return a.replace(f,(function(e,t){return t||m[e]||i.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(a,p,u){var m,f=C.p(p),y=T(a),g=(y.utcOffset()-this.utcOffset())*t,v=this-y,b=C.m(this,y);return b=(m={},m[d]=b/12,m[h]=b,m[c]=b/3,m[l]=(v-g)/6048e5,m[o]=(v-g)/864e5,m[s]=v/r,m[n]=v/t,m[i]=v/e,m)[f]||v,u?b:C.a(b)},g.daysInMonth=function(){return this.endOf(h).$D},g.$locale=function(){return x[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var r=this.clone(),a=_(e,t,!0);return a&&(r.$L=a),r},g.clone=function(){return C.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},y}(),E=$.prototype;return T.prototype=E,[["$ms",a],["$s",i],["$m",n],["$H",s],["$W",o],["$M",h],["$y",d],["$D",p]].forEach((function(e){E[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),T.extend=function(e,t){return e.$i||(e(t,$,T),e.$i=!0),T},T.locale=_,T.isDayjs=S,T.unix=function(e){return T(1e3*e)},T.en=x[b],T.Ls=x,T.p={},T}();var dayjs=dayjs_min.exports,FooterHelper;!function(e){e.getCopyrightInfo=(e=new Date)=>`${`${(new Date).getFullYear()} LifeSG, Government of Singapore.`} Last Updated ${dayjs(e).format("D MMMM YYYY")}`,e.getDisclaimerLinks=e=>({privacy:{href:"https://www.life.gov.sg/privacy-statement",target:"_blank",rel:"noopener",...e&&e.privacy?e.privacy:{},children:"Privacy Statement"},termsOfUse:{href:"https://www.life.gov.sg/terms-of-use",target:"_blank",rel:"noopener",...e&&e.termsOfUse?e.termsOfUse:{},children:"Terms of Use"},reportVulnerability:{href:"https://tech.gov.sg/report_vulnerability",target:"_blank",rel:"noopener",external:!0,...e&&e.reportVulnerability?e.reportVulnerability:{},children:"Report Vulnerability"}})}(FooterHelper||(FooterHelper={}));const Component$9=(e,t)=>{const{children:r,"data-testid":a="container",type:i="flex",...n}=e;return jsx(StyledContainer,{ref:t,"data-testid":a,type:i,...n,children:r})},Container$b=React__default.forwardRef(Component$9),StyledContainer=styled.div`
|
|
702
|
+
flex-grow: 1;
|
|
703
|
+
margin: 0 auto;
|
|
704
|
+
position: relative;
|
|
705
|
+
width: auto;
|
|
706
|
+
|
|
707
|
+
/* Max width restrictions */
|
|
708
|
+
max-width: 1344px;
|
|
709
|
+
|
|
710
|
+
${MediaQuery.MaxWidth.desktopM} {
|
|
711
|
+
max-width: 1152px;
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
${MediaQuery.MaxWidth.tablet} {
|
|
715
|
+
max-width: 960px;
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
${MediaQuery.MaxWidth.mobileL} {
|
|
719
|
+
width: 100%;
|
|
720
|
+
max-width: unset;
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
${e=>"grid"===e.type?css`
|
|
724
|
+
column-gap: 2rem;
|
|
725
|
+
display: grid;
|
|
726
|
+
grid-template-columns: repeat(12, minmax(0, 1fr));
|
|
727
|
+
height: auto;
|
|
728
|
+
|
|
729
|
+
${MediaQuery.MaxWidth.tablet} {
|
|
730
|
+
column-gap: 1.5rem;
|
|
731
|
+
grid-template-columns: repeat(8, minmax(0, 1fr));
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
${MediaQuery.MaxWidth.mobileL} {
|
|
735
|
+
column-gap: 1rem;
|
|
736
|
+
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
737
|
+
}
|
|
738
|
+
`:css`
|
|
739
|
+
display: flex;
|
|
740
|
+
height: auto;
|
|
741
|
+
`}
|
|
742
|
+
`,Component$8=(e,t)=>{const{children:r,"data-testid":a="section",...i}=e;return jsx(StyledSection,{ref:t,"data-testid":a,...i,children:r})},Section=React__default.forwardRef(Component$8),StyledSection=styled.section`
|
|
743
|
+
display: block;
|
|
744
|
+
position: relative;
|
|
745
|
+
padding: 0 1.5rem;
|
|
746
|
+
|
|
747
|
+
// Extra enforcement
|
|
748
|
+
padding-left: 1.5rem !important;
|
|
749
|
+
padding-right: 1.5rem !important;
|
|
750
|
+
`,Component$7=(e,t)=>{const{children:r,"data-testid":a="content",className:i,type:n="flex",...s}=e;return jsx(Section,{ref:t,"data-testid":a,className:i,...s,children:jsx(Container$b,{"data-testid":`${a}-container`,type:n,"data-id":"container",children:r})})},Content$2=React__default.forwardRef(Component$7),Layout={Section:Section,Container:Container$b,Content:Content$2},BaseFooter=styled.footer`
|
|
751
|
+
background: ${Color.Neutral[7]};
|
|
752
|
+
`,StyledFooterLink=styled(Text.Hyperlink.Small)`
|
|
753
|
+
color: ${Color.Neutral[1]};
|
|
754
|
+
`,TopSection=styled(Layout.Content)`
|
|
755
|
+
padding: 4rem 0;
|
|
756
|
+
border-bottom: 1px solid ${Color.Neutral[5]};
|
|
757
|
+
|
|
758
|
+
${MediaQuery.MaxWidth.tablet} {
|
|
759
|
+
padding: 2rem 0;
|
|
760
|
+
}
|
|
761
|
+
`,LogoSection=styled.div`
|
|
762
|
+
grid-column: 1 / span 2;
|
|
763
|
+
|
|
764
|
+
img {
|
|
765
|
+
height: 4rem;
|
|
766
|
+
width: auto;
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
${MediaQuery.MaxWidth.tablet} {
|
|
770
|
+
grid-column: 1 / span 8;
|
|
771
|
+
margin-bottom: 2rem;
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
${MediaQuery.MaxWidth.mobileL} {
|
|
775
|
+
grid-column: 1 / span 4;
|
|
776
|
+
margin-bottom: 2rem;
|
|
777
|
+
}
|
|
778
|
+
`,LinkSection=styled.ul`
|
|
779
|
+
// first col
|
|
780
|
+
grid-column: 3 / span 2;
|
|
781
|
+
list-style-type: none;
|
|
782
|
+
|
|
783
|
+
:nth-of-type(2) {
|
|
784
|
+
// 2nd col
|
|
785
|
+
grid-column: 5 / span 2;
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
li {
|
|
789
|
+
:not(:last-child) {
|
|
790
|
+
margin-bottom: 0.5rem;
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
a {
|
|
794
|
+
display: inline-block;
|
|
795
|
+
vertical-align: top;
|
|
796
|
+
line-height: 1rem;
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
${MediaQuery.MaxWidth.tablet} {
|
|
801
|
+
// first col
|
|
802
|
+
grid-column: 1 / span 4;
|
|
803
|
+
|
|
804
|
+
:nth-of-type(2) {
|
|
805
|
+
// 2nd col
|
|
806
|
+
grid-column: 5 / span 4;
|
|
807
|
+
}
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
${MediaQuery.MaxWidth.mobileL} {
|
|
811
|
+
// first col
|
|
812
|
+
grid-column: 1 / span 2;
|
|
813
|
+
|
|
814
|
+
:nth-of-type(2) {
|
|
815
|
+
// 2nd col
|
|
816
|
+
grid-column: 3 / span 2;
|
|
817
|
+
}
|
|
818
|
+
}
|
|
819
|
+
`,AddonSection=styled.div`
|
|
820
|
+
grid-column: 9 / span 4;
|
|
821
|
+
|
|
822
|
+
${MediaQuery.MaxWidth.tablet} {
|
|
823
|
+
grid-column: 1 / span 8;
|
|
824
|
+
margin-top: 2rem;
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
${MediaQuery.MaxWidth.mobileL} {
|
|
828
|
+
grid-column: 1 / span 4;
|
|
829
|
+
}
|
|
830
|
+
`,MobileOnlyBorder=styled.div`
|
|
831
|
+
display: none;
|
|
832
|
+
|
|
833
|
+
${MediaQuery.MaxWidth.tablet} {
|
|
834
|
+
display: block;
|
|
835
|
+
height: 1px;
|
|
836
|
+
background: ${Color.Neutral[6]};
|
|
837
|
+
}
|
|
838
|
+
`,BottomSection=styled(Layout.Content)`
|
|
839
|
+
padding: 1.375rem 0;
|
|
840
|
+
|
|
841
|
+
${MediaQuery.MaxWidth.tablet} {
|
|
842
|
+
border-top: none;
|
|
843
|
+
flex-direction: column;
|
|
844
|
+
padding: 1rem 0;
|
|
845
|
+
}
|
|
846
|
+
`,BottomSectionContent=styled.div`
|
|
847
|
+
grid-column: 1 / span 6;
|
|
848
|
+
display: flex;
|
|
849
|
+
|
|
850
|
+
&:not(:last-child) {
|
|
851
|
+
margin-right: 1rem;
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
${MediaQuery.MaxWidth.tablet} {
|
|
855
|
+
grid-column: 1 / span 8;
|
|
856
|
+
flex-direction: column;
|
|
857
|
+
&:not(:last-child) {
|
|
858
|
+
margin-right: 0;
|
|
859
|
+
}
|
|
860
|
+
}
|
|
861
|
+
|
|
862
|
+
${MediaQuery.MaxWidth.mobileL} {
|
|
863
|
+
grid-column: 1 / span 4;
|
|
864
|
+
}
|
|
865
|
+
`,CopyrightSection=styled(BottomSectionContent)`
|
|
866
|
+
grid-column: 7 / span 6;
|
|
867
|
+
justify-content: flex-end;
|
|
868
|
+
|
|
869
|
+
${MediaQuery.MaxWidth.tablet} {
|
|
870
|
+
margin-top: 1rem;
|
|
871
|
+
justify-content: flex-start;
|
|
872
|
+
grid-column: 1 / span 8;
|
|
873
|
+
}
|
|
874
|
+
|
|
875
|
+
${MediaQuery.MaxWidth.mobileL} {
|
|
876
|
+
grid-column: 1 / span 4;
|
|
877
|
+
}
|
|
878
|
+
`,DisclaimerTextLink=styled(Text.Hyperlink.Small)`
|
|
879
|
+
${TextStyleHelper.getTextStyle("XSmall","regular")}
|
|
880
|
+
color: ${Color.Neutral[1]};
|
|
881
|
+
&:not(:last-child) {
|
|
882
|
+
margin-right: 1.5rem;
|
|
883
|
+
}
|
|
884
|
+
|
|
885
|
+
&:hover {
|
|
886
|
+
color: ${Color.Neutral[3]};
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
${MediaQuery.MaxWidth.tablet} {
|
|
890
|
+
margin-bottom: 1rem;
|
|
891
|
+
&:not(:last-child) {
|
|
892
|
+
margin-right: 0;
|
|
893
|
+
}
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
${MediaQuery.MaxWidth.tablet} {
|
|
897
|
+
margin-bottom: 0.625rem;
|
|
898
|
+
}
|
|
899
|
+
`,LIFESG_LOGO_SRC="https://assets.life.gov.sg/react-design-system/img/logo/lifesg-primary-logo.svg",Footer=({children:e,links:t,lastUpdated:r,disclaimerLinks:a,showDownloadAddon:i,logoSrc:n,copyrightInfo:s,onFooterLinkClick:o})=>{const l=e=>e.map(((e,t)=>{const{"data-options":r,...a}=e;return jsx("li",{children:jsx(StyledFooterLink,{...a,onClick:t=>((e,t)=>{t.onClick?(e.preventDefault(),t.onClick(e)):o&&(e.preventDefault(),o(t))})(t,e)})},t)}));return jsxs(BaseFooter,{children:[(()=>{let r=null;return e||((t||i)&&(r=jsxs(Fragment,{children:[jsx(LogoSection,{"data-testid":"logo-section",children:jsx("img",{src:n||LIFESG_LOGO_SRC,alt:"LifeSG","data-testid":"logo"})}),t[0]&&jsx(LinkSection,{"data-testid":"link-col-1",children:l(t[0])},"link-col-1"),t[1]&&jsx(LinkSection,{"data-testid":"link-col-2",children:l(t[1])},"link-col-2"),i&&jsx(AddonSection,{children:jsx(DownloadApp,{})})]})),r?jsx(TopSection,{type:"grid",children:r}):null)})(),jsx(MobileOnlyBorder,{}),jsxs(BottomSection,{type:"grid",children:[jsx(BottomSectionContent,{children:(()=>{const e=FooterHelper.getDisclaimerLinks(a);return Object.keys(e).map((t=>jsx(DisclaimerTextLink,{...e[t]},t)))})()},"disclaimer"),jsx(CopyrightSection,{children:jsx(Text.XSmall,{"data-testid":"copyright-text",children:s||jsxs(Fragment,{children:["©"," ",FooterHelper.getCopyrightInfo(r)]})})},"copyright")]})]})};var reactResponsive={exports:{}},factory;factory=e=>(()=>{var t={"./node_modules/css-mediaquery/index.js":
|
|
681
900
|
/*!**********************************************!*\
|
|
682
901
|
!*** ./node_modules/css-mediaquery/index.js ***!
|
|
683
|
-
\**********************************************/(e,t)=>{t.match=function(e,t){return o(e).some((function(e){var r=e.inverse,a="all"===e.type||t.type===e.type;if(a&&r||!a&&!r)return!1;var i=e.expressions.every((function(e){var r=e.feature,a=e.modifier,i=e.value,n=t[r];if(!n)return!1;switch(r){case"orientation":case"scan":return n.toLowerCase()===i.toLowerCase();case"width":case"height":case"device-width":case"device-height":i=
|
|
902
|
+
\**********************************************/(e,t)=>{t.match=function(e,t){return o(e).some((function(e){var r=e.inverse,a="all"===e.type||t.type===e.type;if(a&&r||!a&&!r)return!1;var i=e.expressions.every((function(e){var r=e.feature,a=e.modifier,i=e.value,n=t[r];if(!n)return!1;switch(r){case"orientation":case"scan":return n.toLowerCase()===i.toLowerCase();case"width":case"height":case"device-width":case"device-height":i=c(i),n=c(n);break;case"resolution":i=h(i),n=h(n);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":i=l(i),n=l(n);break;case"grid":case"color":case"color-index":case"monochrome":i=parseInt(i,10)||1,n=parseInt(n,10)||0}switch(a){case"min":return n>=i;case"max":return n<=i;default:return n===i}}));return i&&!r||!i&&r}))},t.parse=o;var r=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,a=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,i=/^(?:(min|max)-)?(.+)/,n=/(em|rem|px|cm|mm|in|pt|pc)?$/,s=/(dpi|dpcm|dppx)?$/;function o(e){return e.split(",").map((function(e){var t=(e=e.trim()).match(r),n=t[1],s=t[2],o=t[3]||"",l={};return l.inverse=!!n&&"not"===n.toLowerCase(),l.type=s?s.toLowerCase():"all",o=o.match(/\([^\)]+\)/g)||[],l.expressions=o.map((function(e){var t=e.match(a),r=t[1].toLowerCase().match(i);return{modifier:r[1],feature:r[2],value:t[2]}})),l}))}function l(e){var t,r=Number(e);return r||(r=(t=e.match(/^(\d+)\s*\/\s*(\d+)$/))[1]/t[2]),r}function h(e){var t=parseFloat(e);switch(String(e).match(s)[1]){case"dpcm":return t/2.54;case"dppx":return 96*t;default:return t}}function c(e){var t=parseFloat(e);switch(String(e).match(n)[1]){case"em":case"rem":return 16*t;case"cm":return 96*t/2.54;case"mm":return 96*t/2.54/10;case"in":return 96*t;case"pt":return 72*t;case"pc":return 72*t/12;default:return t}}},"./node_modules/hyphenate-style-name/index.js":
|
|
684
903
|
/*!****************************************************!*\
|
|
685
904
|
!*** ./node_modules/hyphenate-style-name/index.js ***!
|
|
686
905
|
\****************************************************/(e,t,r)=>{r.r(t),r.d(t,{default:()=>o});var a=/[A-Z]/g,i=/^ms-/,n={};function s(e){return"-"+e.toLowerCase()}const o=function(e){if(n.hasOwnProperty(e))return n[e];var t=e.replace(a,s);return n[e]=i.test(t)?"-"+t:t}},"./node_modules/matchmediaquery/index.js":
|
|
@@ -695,13 +914,13 @@ object-assign
|
|
|
695
914
|
(c) Sindre Sorhus
|
|
696
915
|
@license MIT
|
|
697
916
|
*/
|
|
698
|
-
var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach((function(e){a[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},a)).join("")}catch(e){return!1}}()?Object.assign:function(e,n){for(var s,o,l=i(e),h=1;h<arguments.length;h++){for(var
|
|
917
|
+
var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var a={};return"abcdefghijklmnopqrst".split("").forEach((function(e){a[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},a)).join("")}catch(e){return!1}}()?Object.assign:function(e,n){for(var s,o,l=i(e),h=1;h<arguments.length;h++){for(var c in s=Object(arguments[h]))r.call(s,c)&&(l[c]=s[c]);if(t){o=t(s);for(var d=0;d<o.length;d++)a.call(s,o[d])&&(l[o[d]]=s[o[d]])}}return l}},"./node_modules/prop-types/checkPropTypes.js":
|
|
699
918
|
/*!***************************************************!*\
|
|
700
919
|
!*** ./node_modules/prop-types/checkPropTypes.js ***!
|
|
701
|
-
\***************************************************/(e,t,r)=>{var a,i=r(/*! ./lib/ReactPropTypesSecret */"./node_modules/prop-types/lib/ReactPropTypesSecret.js"),n={},s=r(/*! ./lib/has */"./node_modules/prop-types/lib/has.js");function o(e,t,r,o,l){for(var h in e)if(s(e,h)){var
|
|
920
|
+
\***************************************************/(e,t,r)=>{var a,i=r(/*! ./lib/ReactPropTypesSecret */"./node_modules/prop-types/lib/ReactPropTypesSecret.js"),n={},s=r(/*! ./lib/has */"./node_modules/prop-types/lib/has.js");function o(e,t,r,o,l){for(var h in e)if(s(e,h)){var c;try{if("function"!=typeof e[h]){var d=Error((o||"React class")+": "+r+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}c=e[h](t,h,o,r,null,i)}catch(e){c=e}if(!c||c instanceof Error||a((o||"React class")+": type specification of "+r+" `"+h+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof c+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),c instanceof Error&&!(c.message in n)){n[c.message]=!0;var p=l?l():"";a("Failed "+r+" type: "+c.message+(null!=p?p:""))}}}a=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}},o.resetWarningCache=function(){n={}},e.exports=o},"./node_modules/prop-types/factoryWithTypeCheckers.js":
|
|
702
921
|
/*!************************************************************!*\
|
|
703
922
|
!*** ./node_modules/prop-types/factoryWithTypeCheckers.js ***!
|
|
704
|
-
\************************************************************/(e,t,r)=>{var a,i=r(/*! react-is */"./node_modules/react-is/index.js"),n=r(/*! object-assign */"./node_modules/object-assign/index.js"),s=r(/*! ./lib/ReactPropTypesSecret */"./node_modules/prop-types/lib/ReactPropTypesSecret.js"),o=r(/*! ./lib/has */"./node_modules/prop-types/lib/has.js"),l=r(/*! ./checkPropTypes */"./node_modules/prop-types/checkPropTypes.js");function h(){return null}a=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}},e.exports=function(e,t){var r="function"==typeof Symbol&&Symbol.iterator,
|
|
923
|
+
\************************************************************/(e,t,r)=>{var a,i=r(/*! react-is */"./node_modules/react-is/index.js"),n=r(/*! object-assign */"./node_modules/object-assign/index.js"),s=r(/*! ./lib/ReactPropTypesSecret */"./node_modules/prop-types/lib/ReactPropTypesSecret.js"),o=r(/*! ./lib/has */"./node_modules/prop-types/lib/has.js"),l=r(/*! ./checkPropTypes */"./node_modules/prop-types/checkPropTypes.js");function h(){return null}a=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}},e.exports=function(e,t){var r="function"==typeof Symbol&&Symbol.iterator,c="<<anonymous>>",d={array:f("array"),bigint:f("bigint"),bool:f("boolean"),func:f("function"),number:f("number"),object:f("object"),string:f("string"),symbol:f("symbol"),any:m(h),arrayOf:function(e){return m((function(t,r,a,i,n){if("function"!=typeof e)return new u("Property `"+n+"` of component `"+a+"` has invalid PropType notation inside arrayOf.");var o=t[r];if(!Array.isArray(o))return new u("Invalid "+i+" `"+n+"` of type `"+v(o)+"` supplied to `"+a+"`, expected an array.");for(var l=0;l<o.length;l++){var h=e(o,l,a,i,n+"["+l+"]",s);if(h instanceof Error)return h}return null}))},element:m((function(t,r,a,i,n){var s=t[r];return e(s)?null:new u("Invalid "+i+" `"+n+"` of type `"+v(s)+"` supplied to `"+a+"`, expected a single ReactElement.")})),elementType:m((function(e,t,r,a,n){var s=e[t];return i.isValidElementType(s)?null:new u("Invalid "+a+" `"+n+"` of type `"+v(s)+"` supplied to `"+r+"`, expected a single ReactElement type.")})),instanceOf:function(e){return m((function(t,r,a,i,n){if(!(t[r]instanceof e)){var s=e.name||c;return new u("Invalid "+i+" `"+n+"` of type `"+((o=t[r]).constructor&&o.constructor.name?o.constructor.name:c)+"` supplied to `"+a+"`, expected instance of `"+s+"`.")}var o;return null}))},node:m((function(e,t,r,a,i){return g(e[t])?null:new u("Invalid "+a+" `"+i+"` supplied to `"+r+"`, expected a ReactNode.")})),objectOf:function(e){return m((function(t,r,a,i,n){if("function"!=typeof e)return new u("Property `"+n+"` of component `"+a+"` has invalid PropType notation inside objectOf.");var l=t[r],h=v(l);if("object"!==h)return new u("Invalid "+i+" `"+n+"` of type `"+h+"` supplied to `"+a+"`, expected an object.");for(var c in l)if(o(l,c)){var d=e(l,c,a,i,n+"."+c,s);if(d instanceof Error)return d}return null}))},oneOf:function(e){if(!Array.isArray(e))return a(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),h;function t(t,r,a,i,n){for(var s=t[r],o=0;o<e.length;o++)if(p(s,e[o]))return null;var l=JSON.stringify(e,(function(e,t){return"symbol"===b(t)?String(t):t}));return new u("Invalid "+i+" `"+n+"` of value `"+String(s)+"` supplied to `"+a+"`, expected one of "+l+".")}return m(t)},oneOfType:function(e){if(!Array.isArray(e))return a("Invalid argument supplied to oneOfType, expected an instance of array."),h;for(var t=0;t<e.length;t++){var r=e[t];if("function"!=typeof r)return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+x(r)+" at index "+t+"."),h}return m((function(t,r,a,i,n){for(var l=[],h=0;h<e.length;h++){var c=(0,e[h])(t,r,a,i,n,s);if(null==c)return null;c.data&&o(c.data,"expectedType")&&l.push(c.data.expectedType)}return new u("Invalid "+i+" `"+n+"` supplied to `"+a+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(e){return m((function(t,r,a,i,n){var o=t[r],l=v(o);if("object"!==l)return new u("Invalid "+i+" `"+n+"` of type `"+l+"` supplied to `"+a+"`, expected `object`.");for(var h in e){var c=e[h];if("function"!=typeof c)return y(a,i,n,h,b(c));var d=c(o,h,a,i,n+"."+h,s);if(d)return d}return null}))},exact:function(e){return m((function(t,r,a,i,l){var h=t[r],c=v(h);if("object"!==c)return new u("Invalid "+i+" `"+l+"` of type `"+c+"` supplied to `"+a+"`, expected `object`.");var d=n({},t[r],e);for(var p in d){var m=e[p];if(o(e,p)&&"function"!=typeof m)return y(a,i,l,p,b(m));if(!m)return new u("Invalid "+i+" `"+l+"` key `"+p+"` supplied to `"+a+"`.\nBad object: "+JSON.stringify(t[r],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var f=m(h,p,a,i,l+"."+p,s);if(f)return f}return null}))}};function p(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function u(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function m(e){var r={},i=0;function n(n,o,l,h,d,p,m){if(h=h||c,p=p||l,m!==s){if(t){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}if("undefined"!=typeof console){var y=h+":"+l;!r[y]&&i<3&&(a("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+h+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),r[y]=!0,i++)}}return null==o[l]?n?null===o[l]?new u("The "+d+" `"+p+"` is marked as required in `"+h+"`, but its value is `null`."):new u("The "+d+" `"+p+"` is marked as required in `"+h+"`, but its value is `undefined`."):null:e(o,l,h,d,p)}var o=n.bind(null,!1);return o.isRequired=n.bind(null,!0),o}function f(e){return m((function(t,r,a,i,n,s){var o=t[r];return v(o)!==e?new u("Invalid "+i+" `"+n+"` of type `"+b(o)+"` supplied to `"+a+"`, expected `"+e+"`.",{expectedType:e}):null}))}function y(e,t,r,a,i){return new u((e||"React class")+": "+t+" type `"+r+"."+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+i+"`.")}function g(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(g);if(null===t||e(t))return!0;var a=function(e){var t=e&&(r&&e[r]||e["@@iterator"]);if("function"==typeof t)return t}(t);if(!a)return!1;var i,n=a.call(t);if(a!==t.entries){for(;!(i=n.next()).done;)if(!g(i.value))return!1}else for(;!(i=n.next()).done;){var s=i.value;if(s&&!g(s[1]))return!1}return!0;default:return!1}}function v(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function b(e){if(null==e)return""+e;var t=v(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function x(e){var t=b(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return u.prototype=Error.prototype,d.checkPropTypes=l,d.resetWarningCache=l.resetWarningCache,d.PropTypes=d,d}},"./node_modules/prop-types/index.js":
|
|
705
924
|
/*!******************************************!*\
|
|
706
925
|
!*** ./node_modules/prop-types/index.js ***!
|
|
707
926
|
\******************************************/(e,t,r)=>{var a=r(/*! react-is */"./node_modules/react-is/index.js");e.exports=r(/*! ./factoryWithTypeCheckers */"./node_modules/prop-types/factoryWithTypeCheckers.js")(a.isElement,!0)},"./node_modules/prop-types/lib/ReactPropTypesSecret.js":
|
|
@@ -713,7 +932,7 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.pr
|
|
|
713
932
|
\********************************************/e=>{e.exports=Function.call.bind(Object.prototype.hasOwnProperty)},"./node_modules/react-is/cjs/react-is.development.js":
|
|
714
933
|
/*!***********************************************************!*\
|
|
715
934
|
!*** ./node_modules/react-is/cjs/react-is.development.js ***!
|
|
716
|
-
\***********************************************************/(e,t)=>{!function(){var e="function"==typeof Symbol&&Symbol.for,r=e?Symbol.for("react.element"):60103,a=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,n=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,h=e?Symbol.for("react.async_mode"):60111,
|
|
935
|
+
\***********************************************************/(e,t)=>{!function(){var e="function"==typeof Symbol&&Symbol.for,r=e?Symbol.for("react.element"):60103,a=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,n=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,h=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,u=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,f=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:var u=e.type;switch(u){case h:case c:case i:case s:case n:case p:return u;default:var y=u&&u.$$typeof;switch(y){case l:case d:case f:case m:case o:return y;default:return t}}case a:return t}}}var S=h,_=c,T=l,C=o,$=r,E=d,w=i,k=f,A=m,P=a,M=s,I=n,D=p,F=!1;function R(e){return x(e)===c}t.AsyncMode=S,t.ConcurrentMode=_,t.ContextConsumer=T,t.ContextProvider=C,t.Element=$,t.ForwardRef=E,t.Fragment=w,t.Lazy=k,t.Memo=A,t.Portal=P,t.Profiler=M,t.StrictMode=I,t.Suspense=D,t.isAsyncMode=function(e){return F||(F=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),R(e)||x(e)===h},t.isConcurrentMode=R,t.isContextConsumer=function(e){return x(e)===l},t.isContextProvider=function(e){return x(e)===o},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===d},t.isFragment=function(e){return x(e)===i},t.isLazy=function(e){return x(e)===f},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===a},t.isProfiler=function(e){return x(e)===s},t.isStrictMode=function(e){return x(e)===n},t.isSuspense=function(e){return x(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===c||e===s||e===n||e===p||e===u||"object"==typeof e&&null!==e&&(e.$$typeof===f||e.$$typeof===m||e.$$typeof===o||e.$$typeof===l||e.$$typeof===d||e.$$typeof===g||e.$$typeof===v||e.$$typeof===b||e.$$typeof===y)},t.typeOf=x}()},"./node_modules/react-is/index.js":
|
|
717
936
|
/*!****************************************!*\
|
|
718
937
|
!*** ./node_modules/react-is/index.js ***!
|
|
719
938
|
\****************************************/(e,t,r)=>{e.exports=r(/*! ./cjs/react-is.development.js */"./node_modules/react-is/cjs/react-is.development.js")},"./node_modules/shallow-equal/dist/index.esm.js":
|
|
@@ -731,16 +950,16 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.pr
|
|
|
731
950
|
\**********************/function(e,t,r){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Context=t.toQuery=t.useMediaQuery=t.default=void 0;var i=a(r(/*! ./useMediaQuery */"./src/useMediaQuery.ts"));t.useMediaQuery=i.default;var n=a(r(/*! ./Component */"./src/Component.ts"));t.default=n.default;var s=a(r(/*! ./toQuery */"./src/toQuery.ts"));t.toQuery=s.default;var o=a(r(/*! ./Context */"./src/Context.ts"));t.Context=o.default},"./src/mediaQuery.ts":
|
|
732
951
|
/*!***************************!*\
|
|
733
952
|
!*** ./src/mediaQuery.ts ***!
|
|
734
|
-
\***************************/function(e,t,r){var a=this&&this.__assign||function(){return a=Object.assign||function(e){for(var t,r=1,a=arguments.length;r<a;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},a.apply(this,arguments)},i=this&&this.__rest||function(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(r[a[i]]=e[a[i]])}return r},n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=n(r(/*! prop-types */"./node_modules/prop-types/index.js")),o=s.default.oneOfType([s.default.string,s.default.number]),l={all:s.default.bool,grid:s.default.bool,aural:s.default.bool,braille:s.default.bool,handheld:s.default.bool,print:s.default.bool,projection:s.default.bool,screen:s.default.bool,tty:s.default.bool,tv:s.default.bool,embossed:s.default.bool},h={orientation:s.default.oneOf(["portrait","landscape"]),scan:s.default.oneOf(["progressive","interlace"]),aspectRatio:s.default.string,deviceAspectRatio:s.default.string,height:o,deviceHeight:o,width:o,deviceWidth:o,color:s.default.bool,colorIndex:s.default.bool,monochrome:s.default.bool,resolution:o,type:Object.keys(l)},
|
|
953
|
+
\***************************/function(e,t,r){var a=this&&this.__assign||function(){return a=Object.assign||function(e){for(var t,r=1,a=arguments.length;r<a;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},a.apply(this,arguments)},i=this&&this.__rest||function(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(r[a[i]]=e[a[i]])}return r},n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=n(r(/*! prop-types */"./node_modules/prop-types/index.js")),o=s.default.oneOfType([s.default.string,s.default.number]),l={all:s.default.bool,grid:s.default.bool,aural:s.default.bool,braille:s.default.bool,handheld:s.default.bool,print:s.default.bool,projection:s.default.bool,screen:s.default.bool,tty:s.default.bool,tv:s.default.bool,embossed:s.default.bool},h={orientation:s.default.oneOf(["portrait","landscape"]),scan:s.default.oneOf(["progressive","interlace"]),aspectRatio:s.default.string,deviceAspectRatio:s.default.string,height:o,deviceHeight:o,width:o,deviceWidth:o,color:s.default.bool,colorIndex:s.default.bool,monochrome:s.default.bool,resolution:o,type:Object.keys(l)},c=i(h,["type"]),d=a({minAspectRatio:s.default.string,maxAspectRatio:s.default.string,minDeviceAspectRatio:s.default.string,maxDeviceAspectRatio:s.default.string,minHeight:o,maxHeight:o,minDeviceHeight:o,maxDeviceHeight:o,minWidth:o,maxWidth:o,minDeviceWidth:o,maxDeviceWidth:o,minColor:s.default.number,maxColor:s.default.number,minColorIndex:s.default.number,maxColorIndex:s.default.number,minMonochrome:s.default.number,maxMonochrome:s.default.number,minResolution:o,maxResolution:o},c),p=a(a({},l),d);t.default={all:p,types:l,matchers:h,features:d}},"./src/toQuery.ts":
|
|
735
954
|
/*!************************!*\
|
|
736
955
|
!*** ./src/toQuery.ts ***!
|
|
737
956
|
\************************/function(e,t,r){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=a(r(/*! hyphenate-style-name */"./node_modules/hyphenate-style-name/index.js")),n=a(r(/*! ./mediaQuery */"./src/mediaQuery.ts"));t.default=function(e){var t=[];return Object.keys(n.default.all).forEach((function(r){var a=e[r];null!=a&&t.push(function(e,t){var r=(0,i.default)(e);return"number"==typeof t&&(t="".concat(t,"px")),!0===t?r:!1===t?"not ".concat(r):"(".concat(r,": ").concat(t,")")}(r,a))})),t.join(" and ")}},"./src/useMediaQuery.ts":
|
|
738
957
|
/*!******************************!*\
|
|
739
958
|
!*** ./src/useMediaQuery.ts ***!
|
|
740
|
-
\******************************/function(e,t,r){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(/*! react */"react"),n=a(r(/*! matchmediaquery */"./node_modules/matchmediaquery/index.js")),s=a(r(/*! hyphenate-style-name */"./node_modules/hyphenate-style-name/index.js")),o=r(/*! shallow-equal */"./node_modules/shallow-equal/dist/index.esm.js"),l=a(r(/*! ./toQuery */"./src/toQuery.ts")),h=a(r(/*! ./Context */"./src/Context.ts")),
|
|
959
|
+
\******************************/function(e,t,r){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(/*! react */"react"),n=a(r(/*! matchmediaquery */"./node_modules/matchmediaquery/index.js")),s=a(r(/*! hyphenate-style-name */"./node_modules/hyphenate-style-name/index.js")),o=r(/*! shallow-equal */"./node_modules/shallow-equal/dist/index.esm.js"),l=a(r(/*! ./toQuery */"./src/toQuery.ts")),h=a(r(/*! ./Context */"./src/Context.ts")),c=function(e){if(e)return Object.keys(e).reduce((function(t,r){return t[(0,s.default)(r)]=e[r],t}),{})},d=function(){var e=(0,i.useRef)(!1);return(0,i.useEffect)((function(){e.current=!0}),[]),e.current},p=function(e){var t=function(){return function(e){return e.query||(0,l.default)(e)}(e)},r=(0,i.useState)(t),a=r[0],n=r[1];return(0,i.useEffect)((function(){var e=t();a!==e&&n(e)}),[e]),a};t.default=function(e,t,r){var a=function(e){var t=(0,i.useContext)(h.default),r=function(){return c(e)||c(t)},a=(0,i.useState)(r),n=a[0],s=a[1];return(0,i.useEffect)((function(){var e=r();(0,o.shallowEqualObjects)(n,e)||s(e)}),[e,t]),n}(t),s=p(e);if(!s)throw new Error("Invalid or missing MediaQuery!");var l=function(e,t){var r=function(){return(0,n.default)(e,t||{},!!t)},a=(0,i.useState)(r),s=a[0],o=a[1],l=d();return(0,i.useEffect)((function(){if(l){var e=r();return o(e),function(){e&&e.dispose()}}}),[e,t]),s}(s,a),u=function(e){var t=(0,i.useState)(e.matches),r=t[0],a=t[1];return(0,i.useEffect)((function(){var t=function(e){a(e.matches)};return e.addListener(t),a(e.matches),function(){e.removeListener(t)}}),[e]),r}(l),m=d();return(0,i.useEffect)((function(){m&&r&&r(u)}),[u]),(0,i.useEffect)((function(){return function(){l&&l.dispose()}}),[]),u}},react:
|
|
741
960
|
/*!**************************************************************************************!*\
|
|
742
961
|
!*** external {"commonjs":"react","commonjs2":"react","amd":"react","root":"React"} ***!
|
|
743
|
-
\**************************************************************************************/t=>{t.exports=e}},r={};function a(e){var i=r[e];if(void 0!==i)return i.exports;var n=r[e]={exports:{}};return t[e].call(n.exports,n,n.exports,a),n.exports}return a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a("./src/index.ts")})(),reactResponsive.exports=factory(React__default);var root$5=_root,now$1=function(){return root$5.Date.now()},now_1=now$1,reWhitespace=/\s/;function trimmedEndIndex$1(e){for(var t=e.length;t--&&reWhitespace.test(e.charAt(t)););return t}var _trimmedEndIndex=trimmedEndIndex$1,trimmedEndIndex=_trimmedEndIndex,reTrimStart=/^\s+/;function baseTrim$1(e){return e?e.slice(0,trimmedEndIndex(e)+1).replace(reTrimStart,""):e}var _baseTrim=baseTrim$1,baseTrim=_baseTrim,isObject$2=isObject_1,isSymbol=isSymbol_1,NAN=NaN,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt;function toNumber$2(e){if("number"==typeof e)return e;if(isSymbol(e))return NAN;if(isObject$2(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=isObject$2(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=baseTrim(e);var r=reIsBinary.test(e);return r||reIsOctal.test(e)?freeParseInt(e.slice(2),r?2:8):reIsBadHex.test(e)?NAN:+e}var toNumber_1=toNumber$2,isObject$1=isObject_1,now=now_1,toNumber$1=toNumber_1,FUNC_ERROR_TEXT="Expected a function",nativeMax$1=Math.max,nativeMin=Math.min;function debounce(e,t,r){var a,i,n,s,o,l,h=0,
|
|
962
|
+
\**************************************************************************************/t=>{t.exports=e}},r={};function a(e){var i=r[e];if(void 0!==i)return i.exports;var n=r[e]={exports:{}};return t[e].call(n.exports,n,n.exports,a),n.exports}return a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a("./src/index.ts")})(),reactResponsive.exports=factory(React__default);var root$5=_root,now$1=function(){return root$5.Date.now()},now_1=now$1,reWhitespace=/\s/;function trimmedEndIndex$1(e){for(var t=e.length;t--&&reWhitespace.test(e.charAt(t)););return t}var _trimmedEndIndex=trimmedEndIndex$1,trimmedEndIndex=_trimmedEndIndex,reTrimStart=/^\s+/;function baseTrim$1(e){return e?e.slice(0,trimmedEndIndex(e)+1).replace(reTrimStart,""):e}var _baseTrim=baseTrim$1,baseTrim=_baseTrim,isObject$2=isObject_1,isSymbol=isSymbol_1,NAN=NaN,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt;function toNumber$2(e){if("number"==typeof e)return e;if(isSymbol(e))return NAN;if(isObject$2(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=isObject$2(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=baseTrim(e);var r=reIsBinary.test(e);return r||reIsOctal.test(e)?freeParseInt(e.slice(2),r?2:8):reIsBadHex.test(e)?NAN:+e}var toNumber_1=toNumber$2,isObject$1=isObject_1,now=now_1,toNumber$1=toNumber_1,FUNC_ERROR_TEXT="Expected a function",nativeMax$1=Math.max,nativeMin=Math.min;function debounce(e,t,r){var a,i,n,s,o,l,h=0,c=!1,d=!1,p=!0;if("function"!=typeof e)throw new TypeError(FUNC_ERROR_TEXT);function u(t){var r=a,n=i;return a=i=void 0,h=t,s=e.apply(n,r)}function m(e){return h=e,o=setTimeout(y,t),c?u(e):s}function f(e){var r=e-l;return void 0===l||r>=t||r<0||d&&e-h>=n}function y(){var e=now();if(f(e))return g(e);o=setTimeout(y,function(e){var r=t-(e-l);return d?nativeMin(r,n-(e-h)):r}(e))}function g(e){return o=void 0,p&&a?u(e):(a=i=void 0,s)}function v(){var e=now(),r=f(e);if(a=arguments,i=this,l=e,r){if(void 0===o)return m(l);if(d)return clearTimeout(o),o=setTimeout(y,t),u(l)}return void 0===o&&(o=setTimeout(y,t)),s}return t=toNumber$1(t)||0,isObject$1(r)&&(c=!!r.leading,n=(d="maxWait"in r)?nativeMax$1(toNumber$1(r.maxWait)||0,t):n,p="trailing"in r?!!r.trailing:p),v.cancel=function(){void 0!==o&&clearTimeout(o),h=0,a=l=i=o=void 0},v.flush=function(){return void 0===o?s:g(now())},v}var debounce_1=debounce;const getBackdropFilter=e=>{let t="";return e&&(t+="blur(10px)"),t.length>0?t:"none"},Root=styled.div`
|
|
744
963
|
position: fixed;
|
|
745
964
|
left: 0;
|
|
746
965
|
top: 0;
|
|
@@ -754,7 +973,7 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.pr
|
|
|
754
973
|
width: 100vw;
|
|
755
974
|
visibility: visible;
|
|
756
975
|
`}}
|
|
757
|
-
`,Wrapper$
|
|
976
|
+
`,Wrapper$a=styled.div`
|
|
758
977
|
position: absolute;
|
|
759
978
|
left: 0;
|
|
760
979
|
top: 0;
|
|
@@ -778,7 +997,7 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.pr
|
|
|
778
997
|
`,e.$disableTransition&&(t+=css`
|
|
779
998
|
transition: none;
|
|
780
999
|
`),t}}
|
|
781
|
-
`,Overlay=({show:e=!1,rootId:t,onOverlayClick:r,children:a,backgroundOpacity:i,backgroundBlur:n=!0,disableTransition:s=!1,enableOverlayClick:o=!1,zIndex:l,id:h})=>{const[
|
|
1000
|
+
`,Overlay=({show:e=!1,rootId:t,onOverlayClick:r,children:a,backgroundOpacity:i,backgroundBlur:n=!0,disableTransition:s=!1,enableOverlayClick:o=!1,zIndex:l,id:h})=>{const[c,d]=useState(null),[p,u]=useState(),m=useRef(),f=useRef(null),y=a&&React__default.cloneElement(a,{ref:f}),g=h?`lifesg-ds-overlay-root-${h}`:"lifesg-ds-overlay-root";useEffect((()=>{if(e){const e=x();if(v(e),!e){const e=setTimeout((()=>{_("add")}),200);return()=>clearTimeout(e)}}else if(!m.current){const e=setTimeout((()=>{_("add")}),200);return()=>clearTimeout(e)}}),[e]),useEffect((()=>{d(b());const e=x();return v(e),e||S(),()=>{_("remove")}}),[]);const v=e=>{m.current=e,u(e)},b=()=>document&&t?document.getElementById(t):document?document.body:null,x=()=>document.body.classList.contains(OVERLAY_OPEN_CLASSNAME),S=()=>{if(!document.getElementById(STYLESHEET_ID)){const e=document.createElement("style");e.id=STYLESHEET_ID;const t=document.documentElement.clientWidth,r=window.innerWidth-t;e.innerHTML=`\n\t\t\t\t.${OVERLAY_OPEN_CLASSNAME} {\n\t\t\t\t\toverflow: hidden;\n\t\t\t\t\tpadding-right: ${r}px !important;\n\t\t\t\t\t-ms-overflow-style: none;\n\t\t\t\t\tscrollbar-width: none;\n\t\t\t\t}\n\n\t\t\t\t.${OVERLAY_OPEN_CLASSNAME}::-webkit-scrollbar {\n\t\t\t\t\tdisplay: none;\n\t\t\t\t}\n\t\t\t`,document.body.appendChild(e)}},_=e=>{const t=document.body.classList.contains(OVERLAY_OPEN_CLASSNAME);"add"!==e||t?"remove"===e&&t&&document.body.classList.remove(OVERLAY_OPEN_CLASSNAME):document.body.classList.add(OVERLAY_OPEN_CLASSNAME)},T=e=>{e.preventDefault();const t=f.current?.firstChild;t&&t.contains(e.target)||r&&o&&r()};return c?ReactDOM.createPortal(jsx(Root,{id:g,"data-testid":g,$show:e,zIndex:l,$stacked:p,children:a&&jsx(Wrapper$a,{"data-testid":"overlay-wrapper",$show:e,$backgroundOpacity:i||(p?.5:.8),$backgroundBlur:n,$disableTransition:s,$enableOverlayClick:o,onClick:T,children:y})}),c):null},STYLESHEET_ID="lifesg-ds-overlay-stylesheet",OVERLAY_OPEN_CLASSNAME="lifesg-ds-overlay-open",visibilityStyle=(e,t)=>e?`\n\t\t\t${t}: 0;\n\t\t\topacity: 1;\n\t\t\ttransition: all 300ms cubic-bezier(0.21, 0.79, 0.53, 1);\n\t\t\ttransition-delay: 200ms;\n\t\t`:`\n\t\t${t}: -3%;\n\t\topacity: 0;\n\t\ttransition: all 300ms cubic-bezier(0.4, 0.34, 0.38, 1);\n\t`,Container$a=styled.div`
|
|
782
1001
|
position: relative;
|
|
783
1002
|
display: flex;
|
|
784
1003
|
justify-content: center;
|
|
@@ -797,7 +1016,7 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.pr
|
|
|
797
1016
|
height: calc(1vh * 100);
|
|
798
1017
|
}
|
|
799
1018
|
`}
|
|
800
|
-
`,Modal$1=({id:e="modal",show:t,animationFrom:r="bottom",children:a,enableOverlayClick:i=!0,rootComponentId:n,zIndex:s,onOverlayClick:o,...l})=>{const[h,
|
|
1019
|
+
`,Modal$1=({id:e="modal",show:t,animationFrom:r="bottom",children:a,enableOverlayClick:i=!0,rootComponentId:n,zIndex:s,onOverlayClick:o,...l})=>{const[h,c]=useState();useEffect((()=>(c(.01*window.innerHeight),window.addEventListener("resize",d),()=>{window.removeEventListener("resize",d)})),[]);const d=()=>{const e=.01*window.innerHeight;c(e)};return jsx(Overlay,{"data-testid":`${e}-overlay`,show:t,enableOverlayClick:i,onOverlayClick:o,id:e,rootId:n,zIndex:s,children:jsx(Container$a,{show:t,animationFrom:r,"data-testid":e,verticalHeight:h,...l,children:a})})},Box=styled.div`
|
|
801
1020
|
position: relative;
|
|
802
1021
|
display: flex;
|
|
803
1022
|
flex-direction: column;
|
|
@@ -812,7 +1031,7 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.pr
|
|
|
812
1031
|
width: 90%;
|
|
813
1032
|
max-height: 70%;
|
|
814
1033
|
}
|
|
815
|
-
`,CloseButton=styled(IconButton)`
|
|
1034
|
+
`,CloseButton$1=styled(IconButton)`
|
|
816
1035
|
position: absolute;
|
|
817
1036
|
top: 0;
|
|
818
1037
|
right: 0;
|
|
@@ -827,10 +1046,10 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.pr
|
|
|
827
1046
|
:focus-visible {
|
|
828
1047
|
outline: 4px solid ${Color.Accent.Light[1]};
|
|
829
1048
|
}
|
|
830
|
-
`,CloseIcon=styled(Icon)`
|
|
1049
|
+
`,CloseIcon$1=styled(Icon)`
|
|
831
1050
|
font-size: 2rem;
|
|
832
1051
|
color: ${Color.Neutral[4]};
|
|
833
|
-
`,ModalBox=({id:e="modal-box",children:t,onClose:r,showCloseButton:a=!0,...i})=>jsxs(Box,{"data-testid":e,...i,onClick:e=>{e.stopPropagation()},children:[a&&jsx(CloseButton,{type:"button",onClick:r,"data-testid":"close-button",children:jsx(CloseIcon,{type:"cross"})}),t]}),getVisibilityStyle$1=e=>e?css`
|
|
1052
|
+
`,ModalBox=({id:e="modal-box",children:t,onClose:r,showCloseButton:a=!0,...i})=>jsxs(Box,{"data-testid":e,...i,onClick:e=>{e.stopPropagation()},children:[a&&jsx(CloseButton$1,{type:"button",onClick:r,"data-testid":"close-button",children:jsx(CloseIcon$1,{type:"cross"})}),t]}),getVisibilityStyle$1=e=>e?css`
|
|
834
1053
|
visibility: visible;
|
|
835
1054
|
opacity: 1;
|
|
836
1055
|
transition: ${Transition.Base};
|
|
@@ -901,22 +1120,16 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.pr
|
|
|
901
1120
|
background: none;
|
|
902
1121
|
border: none;
|
|
903
1122
|
padding: 0;
|
|
904
|
-
`,Popover=({children:e,visible:t,onMobileClose:r,...a})=>{const i=a["data-testid"]||"popover",[n,s]=useState("none"),o=useRef(null),l=reactResponsive.exports.useMediaQuery({maxWidth:MediaWidths.mobileL}),h=useRef(n);useEffect((()=>(
|
|
1123
|
+
`,Popover=({children:e,visible:t,onMobileClose:r,...a})=>{const i=a["data-testid"]||"popover",[n,s]=useState("none"),o=useRef(null),l=reactResponsive.exports.useMediaQuery({maxWidth:MediaWidths$1.mobileL}),h=useRef(n);useEffect((()=>(p(),window.addEventListener("resize",debounce_1(c,300)),()=>{window.removeEventListener("resize",debounce_1(c,300))})),[]);const c=()=>{p()},d=()=>{r&&r()},p=()=>{const e=u();var t;e&&(t=e,h.current=t,s(t))},u=()=>{if(o.current){const e=o.current.getBoundingClientRect(),t=24,r=e.y<t,a=window.innerWidth-t;return e.x<t?r?"top-left":"left":e.x+e.width>a?r?"top-right":"right":("top-left"===h.current||"left"===h.current)&&e.x-e.width/2>t||("top-right"===h.current||"right"===h.current)&&e.x+2*e.width<a?r?"top-center":"none":void 0}},m=()=>"string"==typeof e?jsx(Text.BodySmall,{children:e}):e;return jsxs(Fragment,{children:[jsx(Bubble$1,{ref:o,"data-testid":i,$visible:t,$offset:n,...a,children:m()}),l&&jsx(Modal$1,{show:t,onOverlayClick:d,children:jsx(MobileModalBox,{onClose:d,children:m()})})]})},withPopover=(e,t)=>r=>{const{onPopoverAppear:a,onPopoverDismiss:i,...n}=r,s=t.trigger||"click",o=n,[l,h]=useState(!1),c=useRef(),d=reactResponsive.exports.useMediaQuery({maxWidth:MediaWidths$1.mobileL});useEffect((()=>{if(!d)return document.addEventListener("mousedown",p),()=>{document.removeEventListener("mousedown",p)}}),[l]);const p=e=>{c&&!c.current.contains(e.target)&&(l&&h(!1),i&&i())};return jsxs(HOCWrapper$1,{id:"popover-hoc-wrapper",ref:c,children:[jsx(HOCTrigger,{id:`popover-hoc-trigger${t["data-testid"]&&`-${t["data-testid"]}`}`,type:"button",onClick:e=>{e.preventDefault(),("click"===s||d)&&(h(!l),!l&&a&&a(),l&&i&&i())},onMouseEnter:()=>{"hover"!==s||d||h(!0)},onMouseLeave:()=>{"hover"===s&&l&&!d&&h(!1)},"aria-label":"popover-button",children:jsx(e,{...o})}),jsx(Popover,{visible:l,id:t.id,"data-testid":t["data-testid"],onMobileClose:()=>{h(!1)},children:t.content})]})},TriggerArea=styled.button`
|
|
905
1124
|
padding: 0.25rem 0.5rem 0.25rem 0.25rem;
|
|
906
1125
|
border: none;
|
|
907
1126
|
background: none;
|
|
908
1127
|
cursor: pointer;
|
|
909
|
-
|
|
910
|
-
svg {
|
|
911
|
-
#path {
|
|
912
|
-
fill: ${Color.Primary};
|
|
913
|
-
}
|
|
914
|
-
}
|
|
915
1128
|
`,AddonWrapper=styled.div`
|
|
916
1129
|
display: inline;
|
|
917
1130
|
position: relative;
|
|
918
1131
|
width: fit-content;
|
|
919
|
-
`,AddonTrigger=({addonType:e="popover",icon:t,"data-testid":r,...a})=>jsx(TriggerArea,{"data-testid":r,...a,children:"string"==typeof t?jsx(Icon,{type:t,id:`${e}-icon`}):t||jsx(Icon,{type:"info",id:`${e}-icon`})}),PopoverAddon=({addon:e})=>{const[t,r]=useState(!1),a=useRef(),i=useRef(!1),n=reactResponsive.exports.useMediaQuery({maxWidth:MediaWidths.mobileL}),s=e=>{i.current=e,r(e)};useEffect((()=>{if(!n)return document.addEventListener("mousedown",o),()=>{document.removeEventListener("mousedown",o)}}),[]);const o=e=>{a&&!a.current.contains(e.target)&&i.current&&s(!1)};return jsxs(AddonWrapper,{ref:a,id:"addon-popover-wrapper",children:[jsx(Popover,{visible:t,id:e.id,"data-testid":e["data-testid"],onMobileClose:()=>{t&&s(!1)},children:e.content}),jsx(AddonTrigger,{addonType:e.type,icon:e.icon,id:`popover-hoc-trigger${e["data-testid"]&&`-${e["data-testid"]}`}`,onClick:()=>s(!t),"aria-label":"popover-button",type:"button"})]})},Label$2=styled.label`
|
|
1132
|
+
`,AddonTrigger=({addonType:e="popover",icon:t,"data-testid":r,...a})=>jsx(TriggerArea,{"data-testid":r,...a,children:"string"==typeof t?jsx(Icon,{type:t,id:`${e}-icon`}):t||jsx(Icon,{type:"info",id:`${e}-icon`})}),PopoverAddon=({addon:e})=>{const[t,r]=useState(!1),a=useRef(),i=useRef(!1),n=reactResponsive.exports.useMediaQuery({maxWidth:MediaWidths$1.mobileL}),s=e=>{i.current=e,r(e)};useEffect((()=>{if(!n)return document.addEventListener("mousedown",o),()=>{document.removeEventListener("mousedown",o)}}),[]);const o=e=>{a&&!a.current.contains(e.target)&&i.current&&s(!1)};return jsxs(AddonWrapper,{ref:a,id:"addon-popover-wrapper",children:[jsx(Popover,{visible:t,id:e.id,"data-testid":e["data-testid"],onMobileClose:()=>{t&&s(!1)},children:e.content}),jsx(AddonTrigger,{addonType:e.type,icon:e.icon,id:`popover-hoc-trigger${e["data-testid"]&&`-${e["data-testid"]}`}`,onClick:()=>s(!t),"aria-label":"popover-button",type:"button"})]})},Label$2=styled.label`
|
|
920
1133
|
${TextStyleHelper.getTextStyle("H5","semibold")}
|
|
921
1134
|
|
|
922
1135
|
color: ${e=>e.disabled?Color.Neutral[4](e):Color.Neutral[3](e)};
|
|
@@ -934,14 +1147,16 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.pr
|
|
|
934
1147
|
color: ${Color.Validation.Red.Text};
|
|
935
1148
|
margin-top: 0.5rem;
|
|
936
1149
|
margin-bottom: 0;
|
|
937
|
-
`,
|
|
1150
|
+
`,Subtitle=styled(Text.XSmall)`
|
|
1151
|
+
color: ${e=>e.disabled?Color.Neutral[4](e):Color.Neutral[3](e)};
|
|
1152
|
+
`,FormLabel=({children:e,addon:t,subtitle:r,"data-testid":a,...i})=>jsxs(Label$2,{...i,children:[e,t&&t.type&&("popover"===t.type?t&&jsx(PopoverAddon,{addon:t}):null),"string"==typeof r?jsx(Subtitle,{"data-testid":a?`${a}-subtitle`:"subtitle",...i,children:r}):r]}),Container$9=styled.div`
|
|
938
1153
|
display: flex;
|
|
939
1154
|
flex-direction: column;
|
|
940
1155
|
|
|
941
1156
|
&:not(:last-child) {
|
|
942
1157
|
margin-bottom: 1rem;
|
|
943
1158
|
}
|
|
944
|
-
`,FormWrapper=({label:e,errorMessage:t,id:r,disabled:a,children:i,"data-error-testid":n})=>jsxs(Container$
|
|
1159
|
+
`,FormWrapper=({label:e,errorMessage:t,id:r,disabled:a,children:i,"data-error-testid":n})=>jsxs(Container$9,{children:[e&&jsx(FormLabel,"string"==typeof e?{htmlFor:`${r}-base`,"data-testid":r?`${r}-label`:"form-label",disabled:a,children:e}:{htmlFor:`${r}-base`,"data-testid":r?`${r}-label`:"form-label",disabled:a,...e}),i,t&&jsx(ErrorMessage,{weight:"semibold","data-testid":n||(r?`${r}-error-message`:"error-message"),children:t})]}),FormCustomField=({id:e="form-custom-field","data-error-testid":t,children:r,...a})=>jsx(FormWrapper,{id:e,"data-error-testid":t,...a,children:r}),FormDateInput=({label:e,errorMessage:t,id:r="form-date-input","data-error-testid":a,"data-testid":i,...n})=>jsx(FormWrapper,{id:r,label:e,errorMessage:t,"data-error-testid":a,disabled:n.disabled,children:jsx(DateInput,{id:`${r}-base`,"data-testid":i||r,error:!!t,...n})}),InputElement=styled.input`
|
|
945
1160
|
${TextStyleHelper.getTextStyle("Body","regular")}
|
|
946
1161
|
border: 1px solid ${Color.Neutral[5]};
|
|
947
1162
|
border-radius: 4px;
|
|
@@ -964,6 +1179,18 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.pr
|
|
|
964
1179
|
color: ${Color.Neutral[3]};
|
|
965
1180
|
}
|
|
966
1181
|
|
|
1182
|
+
${e=>{if("number"===e.type)return css`
|
|
1183
|
+
// Chrome, Safari, Edge, Opera
|
|
1184
|
+
::-webkit-outer-spin-button,
|
|
1185
|
+
::-webkit-inner-spin-button {
|
|
1186
|
+
-webkit-appearance: none;
|
|
1187
|
+
margin: 0;
|
|
1188
|
+
}
|
|
1189
|
+
|
|
1190
|
+
// Firefox
|
|
1191
|
+
-moz-appearance: textfield;
|
|
1192
|
+
`}}
|
|
1193
|
+
|
|
967
1194
|
${e=>e.readOnly?css`
|
|
968
1195
|
border: none;
|
|
969
1196
|
padding-left: 0rem;
|
|
@@ -993,7 +1220,7 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.pr
|
|
|
993
1220
|
box-shadow: inset 0 0 4px 1px rgba(221, 102, 102, 0.8);
|
|
994
1221
|
}
|
|
995
1222
|
`:void 0}
|
|
996
|
-
`,Component$
|
|
1223
|
+
`,Component$6=({value:e,spacing:t,type:r,error:a,disabled:i,onChange:n,...s},o)=>{const l=()=>"tel"===r&&t,h=e=>{const t=e.target,r=t.value,a=t.value.replace(/\s/g,"");t.value=a,n(e),t.value=r},c=e?(e=>e?l()?StringHelper.transformWithSpaces(e,t):e:"")(e):e;return jsx(InputElement,{"data-testid":"input",ref:o,disabled:i,value:c,error:a,onChange:n?e=>{l()?h(e):n(e)}:void 0,type:r,readOnly:"readonly"===r,...s})},Input$2=React__default.forwardRef(Component$6),Component$5=(e,t)=>{const{label:r,errorMessage:a,id:i="form-field","data-error-testid":n,"data-testid":s,...o}=e;return jsx(FormWrapper,{id:i,label:r,errorMessage:a,disabled:o.disabled,"data-error-testid":n,children:jsx(Input$2,{id:`${i}-base`,"data-testid":s||i,ref:t,error:!!a,...o})})},FormInput=React__default.forwardRef(Component$5),Container$8=styled.div`
|
|
997
1224
|
display: flex;
|
|
998
1225
|
position: relative;
|
|
999
1226
|
border: 1px solid ${Color.Neutral[5]};
|
|
@@ -1001,15 +1228,14 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.pr
|
|
|
1001
1228
|
background: ${Color.Neutral[8]};
|
|
1002
1229
|
height: 3rem;
|
|
1003
1230
|
width: 100%;
|
|
1231
|
+
flex-direction: ${e=>"right"===e.$position?"row-reverse":"row"};
|
|
1004
1232
|
|
|
1005
1233
|
:focus-within {
|
|
1006
1234
|
border: 1px solid ${Color.Accent.Light[1]};
|
|
1007
1235
|
box-shadow: inset 0 0 5px 1px rgba(87, 169, 255, 0.5);
|
|
1008
1236
|
}
|
|
1009
1237
|
|
|
1010
|
-
${e=>
|
|
1011
|
-
flex-direction: row-reverse;
|
|
1012
|
-
`:e.$readOnly?css`
|
|
1238
|
+
${e=>e.$readOnly?css`
|
|
1013
1239
|
border: none;
|
|
1014
1240
|
padding-left: 0rem;
|
|
1015
1241
|
background: transparent !important;
|
|
@@ -1047,7 +1273,9 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.pr
|
|
|
1047
1273
|
box-shadow: none;
|
|
1048
1274
|
}
|
|
1049
1275
|
|
|
1050
|
-
${e=>
|
|
1276
|
+
${e=>e.$readOnly?css`
|
|
1277
|
+
padding-left: 0rem;
|
|
1278
|
+
`:"right"===e.$position?css`
|
|
1051
1279
|
padding: 0.2rem 0 0.3rem 1rem; // Input text appears lower hence the higher lower padding
|
|
1052
1280
|
`:css`
|
|
1053
1281
|
padding: 0.2rem 1rem 0.3rem 0; // Input text appears lower hence the higher lower padding
|
|
@@ -1072,18 +1300,20 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.pr
|
|
|
1072
1300
|
}
|
|
1073
1301
|
}
|
|
1074
1302
|
|
|
1075
|
-
${e=>
|
|
1303
|
+
${e=>e.$readOnly?css`
|
|
1304
|
+
padding-left: 0rem;
|
|
1305
|
+
`:e.disabled?css`
|
|
1076
1306
|
color: ${Color.Neutral[4](e)};
|
|
1077
1307
|
svg {
|
|
1078
1308
|
#path {
|
|
1079
1309
|
fill: ${Color.Neutral[4](e)};
|
|
1080
1310
|
}
|
|
1081
1311
|
}
|
|
1082
|
-
|
|
1312
|
+
`:void 0}
|
|
1083
1313
|
`;function baseFindIndex$1(e,t,r,a){for(var i=e.length,n=r+(a?1:-1);a?n--:++n<i;)if(t(e[n],n,e))return n;return-1}styled(Icon)`
|
|
1084
1314
|
padding-left: 0.5rem;
|
|
1085
1315
|
color: ${Color.Neutral[4]};
|
|
1086
|
-
`;var _baseFindIndex=baseFindIndex$1,ListCache$2=_ListCache;function stackClear$1(){this.__data__=new ListCache$2,this.size=0}var _stackClear=stackClear$1;function stackDelete$1(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var _stackDelete=stackDelete$1;function stackGet$1(e){return this.__data__.get(e)}var _stackGet=stackGet$1;function stackHas$1(e){return this.__data__.has(e)}var _stackHas=stackHas$1,ListCache$1=_ListCache,Map$2=_Map,MapCache$1=_MapCache,LARGE_ARRAY_SIZE=200;function stackSet$1(e,t){var r=this.__data__;if(r instanceof ListCache$1){var a=r.__data__;if(!Map$2||a.length<LARGE_ARRAY_SIZE-1)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new MapCache$1(a)}return r.set(e,t),this.size=r.size,this}var _stackSet=stackSet$1,ListCache=_ListCache,stackClear=_stackClear,stackDelete=_stackDelete,stackGet=_stackGet,stackHas=_stackHas,stackSet=_stackSet;function Stack$2(e){var t=this.__data__=new ListCache(e);this.size=t.size}Stack$2.prototype.clear=stackClear,Stack$2.prototype.delete=stackDelete,Stack$2.prototype.get=stackGet,Stack$2.prototype.has=stackHas,Stack$2.prototype.set=stackSet;var _Stack=Stack$2,HASH_UNDEFINED="__lodash_hash_undefined__";function setCacheAdd$1(e){return this.__data__.set(e,HASH_UNDEFINED),this}var _setCacheAdd=setCacheAdd$1;function setCacheHas$1(e){return this.__data__.has(e)}var _setCacheHas=setCacheHas$1,MapCache=_MapCache,setCacheAdd=_setCacheAdd,setCacheHas=_setCacheHas;function SetCache$1(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new MapCache;++t<r;)this.add(e[t])}SetCache$1.prototype.add=SetCache$1.prototype.push=setCacheAdd,SetCache$1.prototype.has=setCacheHas;var _SetCache=SetCache$1;function arraySome$1(e,t){for(var r=-1,a=null==e?0:e.length;++r<a;)if(t(e[r],r,e))return!0;return!1}var _arraySome=arraySome$1;function cacheHas$1(e,t){return e.has(t)}var _cacheHas=cacheHas$1,SetCache=_SetCache,arraySome=_arraySome,cacheHas=_cacheHas,COMPARE_PARTIAL_FLAG$5=1,COMPARE_UNORDERED_FLAG$3=2;function equalArrays$2(e,t,r,a,i,n){var s=r&COMPARE_PARTIAL_FLAG$5,o=e.length,l=t.length;if(o!=l&&!(s&&l>o))return!1;var h=n.get(e),p=n.get(t);if(h&&p)return h==t&&p==e;var c=-1,d=!0,u=r&COMPARE_UNORDERED_FLAG$3?new SetCache:void 0;for(n.set(e,t),n.set(t,e);++c<o;){var m=e[c],f=t[c];if(a)var y=s?a(f,m,c,t,e,n):a(m,f,c,e,t,n);if(void 0!==y){if(y)continue;d=!1;break}if(u){if(!arraySome(t,(function(e,t){if(!cacheHas(u,t)&&(m===e||i(m,e,r,a,n)))return u.push(t)}))){d=!1;break}}else if(m!==f&&!i(m,f,r,a,n)){d=!1;break}}return n.delete(e),n.delete(t),d}var _equalArrays=equalArrays$2,root$4=_root,Uint8Array$2=root$4.Uint8Array,_Uint8Array=Uint8Array$2;function mapToArray$1(e){var t=-1,r=Array(e.size);return e.forEach((function(e,a){r[++t]=[a,e]})),r}var _mapToArray=mapToArray$1;function setToArray$1(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}var _setToArray=setToArray$1,Symbol$1=_Symbol,Uint8Array$1=_Uint8Array,eq=eq_1,equalArrays$1=_equalArrays,mapToArray=_mapToArray,setToArray=_setToArray,COMPARE_PARTIAL_FLAG$4=1,COMPARE_UNORDERED_FLAG$2=2,boolTag$1="[object Boolean]",dateTag$1="[object Date]",errorTag$1="[object Error]",mapTag$2="[object Map]",numberTag$1="[object Number]",regexpTag$1="[object RegExp]",setTag$2="[object Set]",stringTag$1="[object String]",symbolTag="[object Symbol]",arrayBufferTag$1="[object ArrayBuffer]",dataViewTag$2="[object DataView]",symbolProto=Symbol$1?Symbol$1.prototype:void 0,symbolValueOf=symbolProto?symbolProto.valueOf:void 0;function equalByTag$1(e,t,r,a,i,n,s){switch(r){case dataViewTag$2:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case arrayBufferTag$1:return!(e.byteLength!=t.byteLength||!n(new Uint8Array$1(e),new Uint8Array$1(t)));case boolTag$1:case dateTag$1:case numberTag$1:return eq(+e,+t);case errorTag$1:return e.name==t.name&&e.message==t.message;case regexpTag$1:case stringTag$1:return e==t+"";case mapTag$2:var o=mapToArray;case setTag$2:var l=a&COMPARE_PARTIAL_FLAG$4;if(o||(o=setToArray),e.size!=t.size&&!l)return!1;var h=s.get(e);if(h)return h==t;a|=COMPARE_UNORDERED_FLAG$2,s.set(e,t);var p=equalArrays$1(o(e),o(t),a,i,n,s);return s.delete(e),p;case symbolTag:if(symbolValueOf)return symbolValueOf.call(e)==symbolValueOf.call(t)}return!1}var _equalByTag=equalByTag$1;function arrayPush$1(e,t){for(var r=-1,a=t.length,i=e.length;++r<a;)e[i+r]=t[r];return e}var _arrayPush=arrayPush$1,arrayPush=_arrayPush,isArray$4=isArray_1;function baseGetAllKeys$1(e,t,r){var a=t(e);return isArray$4(e)?a:arrayPush(a,r(e))}var _baseGetAllKeys=baseGetAllKeys$1;function arrayFilter$1(e,t){for(var r=-1,a=null==e?0:e.length,i=0,n=[];++r<a;){var s=e[r];t(s,r,e)&&(n[i++]=s)}return n}var _arrayFilter=arrayFilter$1;function stubArray$1(){return[]}var stubArray_1=stubArray$1,arrayFilter=_arrayFilter,stubArray=stubArray_1,objectProto$6=Object.prototype,propertyIsEnumerable$1=objectProto$6.propertyIsEnumerable,nativeGetSymbols=Object.getOwnPropertySymbols,getSymbols$1=nativeGetSymbols?function(e){return null==e?[]:(e=Object(e),arrayFilter(nativeGetSymbols(e),(function(t){return propertyIsEnumerable$1.call(e,t)})))}:stubArray,_getSymbols=getSymbols$1;function baseTimes$1(e,t){for(var r=-1,a=Array(e);++r<e;)a[r]=t(r);return a}var _baseTimes=baseTimes$1,baseGetTag$2=_baseGetTag,isObjectLike$3=isObjectLike_1,argsTag$2="[object Arguments]";function baseIsArguments$1(e){return isObjectLike$3(e)&&baseGetTag$2(e)==argsTag$2}var _baseIsArguments=baseIsArguments$1,baseIsArguments=_baseIsArguments,isObjectLike$2=isObjectLike_1,objectProto$5=Object.prototype,hasOwnProperty$4=objectProto$5.hasOwnProperty,propertyIsEnumerable=objectProto$5.propertyIsEnumerable,isArguments$2=baseIsArguments(function(){return arguments}())?baseIsArguments:function(e){return isObjectLike$2(e)&&hasOwnProperty$4.call(e,"callee")&&!propertyIsEnumerable.call(e,"callee")},isArguments_1=isArguments$2,isBuffer$2={exports:{}};function stubFalse(){return!1}var stubFalse_1=stubFalse;!function(e,t){var r=_root,a=stubFalse_1,i=t&&!t.nodeType&&t,n=i&&e&&!e.nodeType&&e,s=n&&n.exports===i?r.Buffer:void 0,o=(s?s.isBuffer:void 0)||a;e.exports=o}(isBuffer$2,isBuffer$2.exports);var MAX_SAFE_INTEGER$1=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex$2(e,t){var r=typeof e;return!!(t=null==t?MAX_SAFE_INTEGER$1:t)&&("number"==r||"symbol"!=r&&reIsUint.test(e))&&e>-1&&e%1==0&&e<t}var _isIndex=isIndex$2,MAX_SAFE_INTEGER=9007199254740991;function isLength$3(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=MAX_SAFE_INTEGER}var isLength_1=isLength$3,baseGetTag$1=_baseGetTag,isLength$2=isLength_1,isObjectLike$1=isObjectLike_1,argsTag$1="[object Arguments]",arrayTag$1="[object Array]",boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",funcTag="[object Function]",mapTag$1="[object Map]",numberTag="[object Number]",objectTag$2="[object Object]",regexpTag="[object RegExp]",setTag$1="[object Set]",stringTag="[object String]",weakMapTag$1="[object WeakMap]",arrayBufferTag="[object ArrayBuffer]",dataViewTag$1="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",typedArrayTags={};function baseIsTypedArray$1(e){return isObjectLike$1(e)&&isLength$2(e.length)&&!!typedArrayTags[baseGetTag$1(e)]}typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=!0,typedArrayTags[argsTag$1]=typedArrayTags[arrayTag$1]=typedArrayTags[arrayBufferTag]=typedArrayTags[boolTag]=typedArrayTags[dataViewTag$1]=typedArrayTags[dateTag]=typedArrayTags[errorTag]=typedArrayTags[funcTag]=typedArrayTags[mapTag$1]=typedArrayTags[numberTag]=typedArrayTags[objectTag$2]=typedArrayTags[regexpTag]=typedArrayTags[setTag$1]=typedArrayTags[stringTag]=typedArrayTags[weakMapTag$1]=!1;var _baseIsTypedArray=baseIsTypedArray$1;function baseUnary$1(e){return function(t){return e(t)}}var _baseUnary=baseUnary$1,_nodeUtil={exports:{}};!function(e,t){var r=_freeGlobal,a=t&&!t.nodeType&&t,i=a&&e&&!e.nodeType&&e,n=i&&i.exports===a&&r.process,s=function(){try{var e=i&&i.require&&i.require("util").types;return e||n&&n.binding&&n.binding("util")}catch(e){}}();e.exports=s}(_nodeUtil,_nodeUtil.exports);var baseIsTypedArray=_baseIsTypedArray,baseUnary=_baseUnary,nodeUtil=_nodeUtil.exports,nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray,isTypedArray$2=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray,isTypedArray_1=isTypedArray$2,baseTimes=_baseTimes,isArguments$1=isArguments_1,isArray$3=isArray_1,isBuffer$1=isBuffer$2.exports,isIndex$1=_isIndex,isTypedArray$1=isTypedArray_1,objectProto$4=Object.prototype,hasOwnProperty$3=objectProto$4.hasOwnProperty;function arrayLikeKeys$1(e,t){var r=isArray$3(e),a=!r&&isArguments$1(e),i=!r&&!a&&isBuffer$1(e),n=!r&&!a&&!i&&isTypedArray$1(e),s=r||a||i||n,o=s?baseTimes(e.length,String):[],l=o.length;for(var h in e)!t&&!hasOwnProperty$3.call(e,h)||s&&("length"==h||i&&("offset"==h||"parent"==h)||n&&("buffer"==h||"byteLength"==h||"byteOffset"==h)||isIndex$1(h,l))||o.push(h);return o}var _arrayLikeKeys=arrayLikeKeys$1,objectProto$3=Object.prototype;function isPrototype$1(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||objectProto$3)}var _isPrototype=isPrototype$1;function overArg$1(e,t){return function(r){return e(t(r))}}var _overArg=overArg$1,overArg=_overArg,nativeKeys$1=overArg(Object.keys,Object),_nativeKeys=nativeKeys$1,isPrototype=_isPrototype,nativeKeys=_nativeKeys,objectProto$2=Object.prototype,hasOwnProperty$2=objectProto$2.hasOwnProperty;function baseKeys$1(e){if(!isPrototype(e))return nativeKeys(e);var t=[];for(var r in Object(e))hasOwnProperty$2.call(e,r)&&"constructor"!=r&&t.push(r);return t}var _baseKeys=baseKeys$1,isFunction=isFunction_1,isLength$1=isLength_1;function isArrayLike$1(e){return null!=e&&isLength$1(e.length)&&!isFunction(e)}var isArrayLike_1=isArrayLike$1,arrayLikeKeys=_arrayLikeKeys,baseKeys=_baseKeys,isArrayLike=isArrayLike_1;function keys$2(e){return isArrayLike(e)?arrayLikeKeys(e):baseKeys(e)}var keys_1=keys$2,baseGetAllKeys=_baseGetAllKeys,getSymbols=_getSymbols,keys$1=keys_1;function getAllKeys$1(e){return baseGetAllKeys(e,keys$1,getSymbols)}var _getAllKeys=getAllKeys$1,getAllKeys=_getAllKeys,COMPARE_PARTIAL_FLAG$3=1,objectProto$1=Object.prototype,hasOwnProperty$1=objectProto$1.hasOwnProperty;function equalObjects$1(e,t,r,a,i,n){var s=r&COMPARE_PARTIAL_FLAG$3,o=getAllKeys(e),l=o.length;if(l!=getAllKeys(t).length&&!s)return!1;for(var h=l;h--;){var p=o[h];if(!(s?p in t:hasOwnProperty$1.call(t,p)))return!1}var c=n.get(e),d=n.get(t);if(c&&d)return c==t&&d==e;var u=!0;n.set(e,t),n.set(t,e);for(var m=s;++h<l;){var f=e[p=o[h]],y=t[p];if(a)var g=s?a(y,f,p,t,e,n):a(f,y,p,e,t,n);if(!(void 0===g?f===y||i(f,y,r,a,n):g)){u=!1;break}m||(m="constructor"==p)}if(u&&!m){var v=e.constructor,b=t.constructor;v==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof b&&b instanceof b||(u=!1)}return n.delete(e),n.delete(t),u}var _equalObjects=equalObjects$1,getNative$3=_getNative,root$3=_root,DataView$1=getNative$3(root$3,"DataView"),_DataView=DataView$1,getNative$2=_getNative,root$2=_root,Promise$2=getNative$2(root$2,"Promise"),_Promise=Promise$2,getNative$1=_getNative,root$1=_root,Set$2=getNative$1(root$1,"Set"),_Set=Set$2,getNative=_getNative,root=_root,WeakMap$1=getNative(root,"WeakMap"),_WeakMap=WeakMap$1,DataView=_DataView,Map$1=_Map,Promise$1=_Promise,Set$1=_Set,WeakMap=_WeakMap,baseGetTag=_baseGetTag,toSource=_toSource,mapTag="[object Map]",objectTag$1="[object Object]",promiseTag="[object Promise]",setTag="[object Set]",weakMapTag="[object WeakMap]",dataViewTag="[object DataView]",dataViewCtorString=toSource(DataView),mapCtorString=toSource(Map$1),promiseCtorString=toSource(Promise$1),setCtorString=toSource(Set$1),weakMapCtorString=toSource(WeakMap),getTag$1=baseGetTag;(DataView&&getTag$1(new DataView(new ArrayBuffer(1)))!=dataViewTag||Map$1&&getTag$1(new Map$1)!=mapTag||Promise$1&&getTag$1(Promise$1.resolve())!=promiseTag||Set$1&&getTag$1(new Set$1)!=setTag||WeakMap&&getTag$1(new WeakMap)!=weakMapTag)&&(getTag$1=function(e){var t=baseGetTag(e),r=t==objectTag$1?e.constructor:void 0,a=r?toSource(r):"";if(a)switch(a){case dataViewCtorString:return dataViewTag;case mapCtorString:return mapTag;case promiseCtorString:return promiseTag;case setCtorString:return setTag;case weakMapCtorString:return weakMapTag}return t});var _getTag=getTag$1,Stack$1=_Stack,equalArrays=_equalArrays,equalByTag=_equalByTag,equalObjects=_equalObjects,getTag=_getTag,isArray$2=isArray_1,isBuffer=isBuffer$2.exports,isTypedArray=isTypedArray_1,COMPARE_PARTIAL_FLAG$2=1,argsTag="[object Arguments]",arrayTag="[object Array]",objectTag="[object Object]",objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty;function baseIsEqualDeep$1(e,t,r,a,i,n){var s=isArray$2(e),o=isArray$2(t),l=s?arrayTag:getTag(e),h=o?arrayTag:getTag(t),p=(l=l==argsTag?objectTag:l)==objectTag,c=(h=h==argsTag?objectTag:h)==objectTag,d=l==h;if(d&&isBuffer(e)){if(!isBuffer(t))return!1;s=!0,p=!1}if(d&&!p)return n||(n=new Stack$1),s||isTypedArray(e)?equalArrays(e,t,r,a,i,n):equalByTag(e,t,l,r,a,i,n);if(!(r&COMPARE_PARTIAL_FLAG$2)){var u=p&&hasOwnProperty.call(e,"__wrapped__"),m=c&&hasOwnProperty.call(t,"__wrapped__");if(u||m){var f=u?e.value():e,y=m?t.value():t;return n||(n=new Stack$1),i(f,y,r,a,n)}}return!!d&&(n||(n=new Stack$1),equalObjects(e,t,r,a,i,n))}var _baseIsEqualDeep=baseIsEqualDeep$1,baseIsEqualDeep=_baseIsEqualDeep,isObjectLike=isObjectLike_1;function baseIsEqual$2(e,t,r,a,i){return e===t||(null==e||null==t||!isObjectLike(e)&&!isObjectLike(t)?e!=e&&t!=t:baseIsEqualDeep(e,t,r,a,baseIsEqual$2,i))}var _baseIsEqual=baseIsEqual$2,Stack=_Stack,baseIsEqual$1=_baseIsEqual,COMPARE_PARTIAL_FLAG$1=1,COMPARE_UNORDERED_FLAG$1=2;function baseIsMatch$1(e,t,r,a){var i=r.length,n=i,s=!a;if(null==e)return!n;for(e=Object(e);i--;){var o=r[i];if(s&&o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++i<n;){var l=(o=r[i])[0],h=e[l],p=o[1];if(s&&o[2]){if(void 0===h&&!(l in e))return!1}else{var c=new Stack;if(a)var d=a(h,p,l,e,t,c);if(!(void 0===d?baseIsEqual$1(p,h,COMPARE_PARTIAL_FLAG$1|COMPARE_UNORDERED_FLAG$1,a,c):d))return!1}}return!0}var _baseIsMatch=baseIsMatch$1,isObject=isObject_1;function isStrictComparable$2(e){return e==e&&!isObject(e)}var _isStrictComparable=isStrictComparable$2,isStrictComparable$1=_isStrictComparable,keys=keys_1;function getMatchData$1(e){for(var t=keys(e),r=t.length;r--;){var a=t[r],i=e[a];t[r]=[a,i,isStrictComparable$1(i)]}return t}var _getMatchData=getMatchData$1;function matchesStrictComparable$2(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}}var _matchesStrictComparable=matchesStrictComparable$2,baseIsMatch=_baseIsMatch,getMatchData=_getMatchData,matchesStrictComparable$1=_matchesStrictComparable;function baseMatches$1(e){var t=getMatchData(e);return 1==t.length&&t[0][2]?matchesStrictComparable$1(t[0][0],t[0][1]):function(r){return r===e||baseIsMatch(r,e,t)}}var _baseMatches=baseMatches$1;function baseHasIn$1(e,t){return null!=e&&t in Object(e)}var _baseHasIn=baseHasIn$1,castPath=_castPath,isArguments=isArguments_1,isArray$1=isArray_1,isIndex=_isIndex,isLength=isLength_1,toKey$2=_toKey;function hasPath$1(e,t,r){for(var a=-1,i=(t=castPath(t,e)).length,n=!1;++a<i;){var s=toKey$2(t[a]);if(!(n=null!=e&&r(e,s)))break;e=e[s]}return n||++a!=i?n:!!(i=null==e?0:e.length)&&isLength(i)&&isIndex(s,i)&&(isArray$1(e)||isArguments(e))}var _hasPath=hasPath$1,baseHasIn=_baseHasIn,hasPath=_hasPath;function hasIn$1(e,t){return null!=e&&hasPath(e,t,baseHasIn)}var hasIn_1=hasIn$1,baseIsEqual=_baseIsEqual,get=get_1,hasIn=hasIn_1,isKey$1=_isKey,isStrictComparable=_isStrictComparable,matchesStrictComparable=_matchesStrictComparable,toKey$1=_toKey,COMPARE_PARTIAL_FLAG=1,COMPARE_UNORDERED_FLAG=2;function baseMatchesProperty$1(e,t){return isKey$1(e)&&isStrictComparable(t)?matchesStrictComparable(toKey$1(e),t):function(r){var a=get(r,e);return void 0===a&&a===t?hasIn(r,e):baseIsEqual(t,a,COMPARE_PARTIAL_FLAG|COMPARE_UNORDERED_FLAG)}}var _baseMatchesProperty=baseMatchesProperty$1;function identity$1(e){return e}var identity_1=identity$1;function baseProperty$1(e){return function(t){return null==t?void 0:t[e]}}var _baseProperty=baseProperty$1,baseGet=_baseGet;function basePropertyDeep$1(e){return function(t){return baseGet(t,e)}}var _basePropertyDeep=basePropertyDeep$1,baseProperty=_baseProperty,basePropertyDeep=_basePropertyDeep,isKey=_isKey,toKey=_toKey;function property$1(e){return isKey(e)?baseProperty(toKey(e)):basePropertyDeep(e)}var property_1=property$1,baseMatches=_baseMatches,baseMatchesProperty=_baseMatchesProperty,identity=identity_1,isArray=isArray_1,property=property_1;function baseIteratee$1(e){return"function"==typeof e?e:null==e?identity:"object"==typeof e?isArray(e)?baseMatchesProperty(e[0],e[1]):baseMatches(e):property(e)}var _baseIteratee=baseIteratee$1,toNumber=toNumber_1,INFINITY=1/0,MAX_INTEGER=17976931348623157e292;function toFinite$1(e){return e?(e=toNumber(e))===INFINITY||e===-INFINITY?(e<0?-1:1)*MAX_INTEGER:e==e?e:0:0===e?e:0}var toFinite_1=toFinite$1,toFinite=toFinite_1;function toInteger$1(e){var t=toFinite(e),r=t%1;return t==t?r?t-r:t:0}var toInteger_1=toInteger$1,baseFindIndex=_baseFindIndex,baseIteratee=_baseIteratee,toInteger=toInteger_1,nativeMax=Math.max;function findIndex(e,t,r){var a=null==e?0:e.length;if(!a)return-1;var i=null==r?0:toInteger(r);return i<0&&(i=nativeMax(a+i,0)),baseFindIndex(e,baseIteratee(t),i)}var findIndex_1=findIndex;const Container$5=styled(animated.div)`
|
|
1316
|
+
`;var _baseFindIndex=baseFindIndex$1,ListCache$2=_ListCache;function stackClear$1(){this.__data__=new ListCache$2,this.size=0}var _stackClear=stackClear$1;function stackDelete$1(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var _stackDelete=stackDelete$1;function stackGet$1(e){return this.__data__.get(e)}var _stackGet=stackGet$1;function stackHas$1(e){return this.__data__.has(e)}var _stackHas=stackHas$1,ListCache$1=_ListCache,Map$2=_Map,MapCache$1=_MapCache,LARGE_ARRAY_SIZE=200;function stackSet$1(e,t){var r=this.__data__;if(r instanceof ListCache$1){var a=r.__data__;if(!Map$2||a.length<LARGE_ARRAY_SIZE-1)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new MapCache$1(a)}return r.set(e,t),this.size=r.size,this}var _stackSet=stackSet$1,ListCache=_ListCache,stackClear=_stackClear,stackDelete=_stackDelete,stackGet=_stackGet,stackHas=_stackHas,stackSet=_stackSet;function Stack$2(e){var t=this.__data__=new ListCache(e);this.size=t.size}Stack$2.prototype.clear=stackClear,Stack$2.prototype.delete=stackDelete,Stack$2.prototype.get=stackGet,Stack$2.prototype.has=stackHas,Stack$2.prototype.set=stackSet;var _Stack=Stack$2,HASH_UNDEFINED="__lodash_hash_undefined__";function setCacheAdd$1(e){return this.__data__.set(e,HASH_UNDEFINED),this}var _setCacheAdd=setCacheAdd$1;function setCacheHas$1(e){return this.__data__.has(e)}var _setCacheHas=setCacheHas$1,MapCache=_MapCache,setCacheAdd=_setCacheAdd,setCacheHas=_setCacheHas;function SetCache$1(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new MapCache;++t<r;)this.add(e[t])}SetCache$1.prototype.add=SetCache$1.prototype.push=setCacheAdd,SetCache$1.prototype.has=setCacheHas;var _SetCache=SetCache$1;function arraySome$1(e,t){for(var r=-1,a=null==e?0:e.length;++r<a;)if(t(e[r],r,e))return!0;return!1}var _arraySome=arraySome$1;function cacheHas$1(e,t){return e.has(t)}var _cacheHas=cacheHas$1,SetCache=_SetCache,arraySome=_arraySome,cacheHas=_cacheHas,COMPARE_PARTIAL_FLAG$5=1,COMPARE_UNORDERED_FLAG$3=2;function equalArrays$2(e,t,r,a,i,n){var s=r&COMPARE_PARTIAL_FLAG$5,o=e.length,l=t.length;if(o!=l&&!(s&&l>o))return!1;var h=n.get(e),c=n.get(t);if(h&&c)return h==t&&c==e;var d=-1,p=!0,u=r&COMPARE_UNORDERED_FLAG$3?new SetCache:void 0;for(n.set(e,t),n.set(t,e);++d<o;){var m=e[d],f=t[d];if(a)var y=s?a(f,m,d,t,e,n):a(m,f,d,e,t,n);if(void 0!==y){if(y)continue;p=!1;break}if(u){if(!arraySome(t,(function(e,t){if(!cacheHas(u,t)&&(m===e||i(m,e,r,a,n)))return u.push(t)}))){p=!1;break}}else if(m!==f&&!i(m,f,r,a,n)){p=!1;break}}return n.delete(e),n.delete(t),p}var _equalArrays=equalArrays$2,root$4=_root,Uint8Array$2=root$4.Uint8Array,_Uint8Array=Uint8Array$2;function mapToArray$1(e){var t=-1,r=Array(e.size);return e.forEach((function(e,a){r[++t]=[a,e]})),r}var _mapToArray=mapToArray$1;function setToArray$1(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}var _setToArray=setToArray$1,Symbol$1=_Symbol,Uint8Array$1=_Uint8Array,eq=eq_1,equalArrays$1=_equalArrays,mapToArray=_mapToArray,setToArray=_setToArray,COMPARE_PARTIAL_FLAG$4=1,COMPARE_UNORDERED_FLAG$2=2,boolTag$1="[object Boolean]",dateTag$1="[object Date]",errorTag$1="[object Error]",mapTag$2="[object Map]",numberTag$1="[object Number]",regexpTag$1="[object RegExp]",setTag$2="[object Set]",stringTag$1="[object String]",symbolTag="[object Symbol]",arrayBufferTag$1="[object ArrayBuffer]",dataViewTag$2="[object DataView]",symbolProto=Symbol$1?Symbol$1.prototype:void 0,symbolValueOf=symbolProto?symbolProto.valueOf:void 0;function equalByTag$1(e,t,r,a,i,n,s){switch(r){case dataViewTag$2:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case arrayBufferTag$1:return!(e.byteLength!=t.byteLength||!n(new Uint8Array$1(e),new Uint8Array$1(t)));case boolTag$1:case dateTag$1:case numberTag$1:return eq(+e,+t);case errorTag$1:return e.name==t.name&&e.message==t.message;case regexpTag$1:case stringTag$1:return e==t+"";case mapTag$2:var o=mapToArray;case setTag$2:var l=a&COMPARE_PARTIAL_FLAG$4;if(o||(o=setToArray),e.size!=t.size&&!l)return!1;var h=s.get(e);if(h)return h==t;a|=COMPARE_UNORDERED_FLAG$2,s.set(e,t);var c=equalArrays$1(o(e),o(t),a,i,n,s);return s.delete(e),c;case symbolTag:if(symbolValueOf)return symbolValueOf.call(e)==symbolValueOf.call(t)}return!1}var _equalByTag=equalByTag$1;function arrayPush$2(e,t){for(var r=-1,a=t.length,i=e.length;++r<a;)e[i+r]=t[r];return e}var _arrayPush=arrayPush$2,arrayPush$1=_arrayPush,isArray$4=isArray_1;function baseGetAllKeys$1(e,t,r){var a=t(e);return isArray$4(e)?a:arrayPush$1(a,r(e))}var _baseGetAllKeys=baseGetAllKeys$1;function arrayFilter$1(e,t){for(var r=-1,a=null==e?0:e.length,i=0,n=[];++r<a;){var s=e[r];t(s,r,e)&&(n[i++]=s)}return n}var _arrayFilter=arrayFilter$1;function stubArray$1(){return[]}var stubArray_1=stubArray$1,arrayFilter=_arrayFilter,stubArray=stubArray_1,objectProto$6=Object.prototype,propertyIsEnumerable$1=objectProto$6.propertyIsEnumerable,nativeGetSymbols=Object.getOwnPropertySymbols,getSymbols$1=nativeGetSymbols?function(e){return null==e?[]:(e=Object(e),arrayFilter(nativeGetSymbols(e),(function(t){return propertyIsEnumerable$1.call(e,t)})))}:stubArray,_getSymbols=getSymbols$1;function baseTimes$1(e,t){for(var r=-1,a=Array(e);++r<e;)a[r]=t(r);return a}var _baseTimes=baseTimes$1,baseGetTag$2=_baseGetTag,isObjectLike$3=isObjectLike_1,argsTag$2="[object Arguments]";function baseIsArguments$1(e){return isObjectLike$3(e)&&baseGetTag$2(e)==argsTag$2}var _baseIsArguments=baseIsArguments$1,baseIsArguments=_baseIsArguments,isObjectLike$2=isObjectLike_1,objectProto$5=Object.prototype,hasOwnProperty$5=objectProto$5.hasOwnProperty,propertyIsEnumerable=objectProto$5.propertyIsEnumerable,isArguments$2=baseIsArguments(function(){return arguments}())?baseIsArguments:function(e){return isObjectLike$2(e)&&hasOwnProperty$5.call(e,"callee")&&!propertyIsEnumerable.call(e,"callee")},isArguments_1=isArguments$2,isBuffer$2={exports:{}};function stubFalse(){return!1}var stubFalse_1=stubFalse;!function(e,t){var r=_root,a=stubFalse_1,i=t&&!t.nodeType&&t,n=i&&e&&!e.nodeType&&e,s=n&&n.exports===i?r.Buffer:void 0,o=(s?s.isBuffer:void 0)||a;e.exports=o}(isBuffer$2,isBuffer$2.exports);var MAX_SAFE_INTEGER$1=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex$2(e,t){var r=typeof e;return!!(t=null==t?MAX_SAFE_INTEGER$1:t)&&("number"==r||"symbol"!=r&&reIsUint.test(e))&&e>-1&&e%1==0&&e<t}var _isIndex=isIndex$2,MAX_SAFE_INTEGER=9007199254740991;function isLength$3(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=MAX_SAFE_INTEGER}var isLength_1=isLength$3,baseGetTag$1=_baseGetTag,isLength$2=isLength_1,isObjectLike$1=isObjectLike_1,argsTag$1="[object Arguments]",arrayTag$1="[object Array]",boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",funcTag="[object Function]",mapTag$1="[object Map]",numberTag="[object Number]",objectTag$2="[object Object]",regexpTag="[object RegExp]",setTag$1="[object Set]",stringTag="[object String]",weakMapTag$1="[object WeakMap]",arrayBufferTag="[object ArrayBuffer]",dataViewTag$1="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",typedArrayTags={};function baseIsTypedArray$1(e){return isObjectLike$1(e)&&isLength$2(e.length)&&!!typedArrayTags[baseGetTag$1(e)]}typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=!0,typedArrayTags[argsTag$1]=typedArrayTags[arrayTag$1]=typedArrayTags[arrayBufferTag]=typedArrayTags[boolTag]=typedArrayTags[dataViewTag$1]=typedArrayTags[dateTag]=typedArrayTags[errorTag]=typedArrayTags[funcTag]=typedArrayTags[mapTag$1]=typedArrayTags[numberTag]=typedArrayTags[objectTag$2]=typedArrayTags[regexpTag]=typedArrayTags[setTag$1]=typedArrayTags[stringTag]=typedArrayTags[weakMapTag$1]=!1;var _baseIsTypedArray=baseIsTypedArray$1;function baseUnary$1(e){return function(t){return e(t)}}var _baseUnary=baseUnary$1,_nodeUtil={exports:{}};!function(e,t){var r=_freeGlobal,a=t&&!t.nodeType&&t,i=a&&e&&!e.nodeType&&e,n=i&&i.exports===a&&r.process,s=function(){try{var e=i&&i.require&&i.require("util").types;return e||n&&n.binding&&n.binding("util")}catch(e){}}();e.exports=s}(_nodeUtil,_nodeUtil.exports);var baseIsTypedArray=_baseIsTypedArray,baseUnary=_baseUnary,nodeUtil=_nodeUtil.exports,nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray,isTypedArray$2=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray,isTypedArray_1=isTypedArray$2,baseTimes=_baseTimes,isArguments$1=isArguments_1,isArray$3=isArray_1,isBuffer$1=isBuffer$2.exports,isIndex$1=_isIndex,isTypedArray$1=isTypedArray_1,objectProto$4=Object.prototype,hasOwnProperty$4=objectProto$4.hasOwnProperty;function arrayLikeKeys$1(e,t){var r=isArray$3(e),a=!r&&isArguments$1(e),i=!r&&!a&&isBuffer$1(e),n=!r&&!a&&!i&&isTypedArray$1(e),s=r||a||i||n,o=s?baseTimes(e.length,String):[],l=o.length;for(var h in e)!t&&!hasOwnProperty$4.call(e,h)||s&&("length"==h||i&&("offset"==h||"parent"==h)||n&&("buffer"==h||"byteLength"==h||"byteOffset"==h)||isIndex$1(h,l))||o.push(h);return o}var _arrayLikeKeys=arrayLikeKeys$1,objectProto$3=Object.prototype;function isPrototype$1(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||objectProto$3)}var _isPrototype=isPrototype$1;function overArg$1(e,t){return function(r){return e(t(r))}}var _overArg=overArg$1,overArg=_overArg,nativeKeys$1=overArg(Object.keys,Object),_nativeKeys=nativeKeys$1,isPrototype=_isPrototype,nativeKeys=_nativeKeys,objectProto$2=Object.prototype,hasOwnProperty$3=objectProto$2.hasOwnProperty;function baseKeys$1(e){if(!isPrototype(e))return nativeKeys(e);var t=[];for(var r in Object(e))hasOwnProperty$3.call(e,r)&&"constructor"!=r&&t.push(r);return t}var _baseKeys=baseKeys$1,isFunction=isFunction_1,isLength$1=isLength_1;function isArrayLike$1(e){return null!=e&&isLength$1(e.length)&&!isFunction(e)}var isArrayLike_1=isArrayLike$1,arrayLikeKeys=_arrayLikeKeys,baseKeys=_baseKeys,isArrayLike=isArrayLike_1;function keys$2(e){return isArrayLike(e)?arrayLikeKeys(e):baseKeys(e)}var keys_1=keys$2,baseGetAllKeys=_baseGetAllKeys,getSymbols=_getSymbols,keys$1=keys_1;function getAllKeys$1(e){return baseGetAllKeys(e,keys$1,getSymbols)}var _getAllKeys=getAllKeys$1,getAllKeys=_getAllKeys,COMPARE_PARTIAL_FLAG$3=1,objectProto$1=Object.prototype,hasOwnProperty$2=objectProto$1.hasOwnProperty;function equalObjects$1(e,t,r,a,i,n){var s=r&COMPARE_PARTIAL_FLAG$3,o=getAllKeys(e),l=o.length;if(l!=getAllKeys(t).length&&!s)return!1;for(var h=l;h--;){var c=o[h];if(!(s?c in t:hasOwnProperty$2.call(t,c)))return!1}var d=n.get(e),p=n.get(t);if(d&&p)return d==t&&p==e;var u=!0;n.set(e,t),n.set(t,e);for(var m=s;++h<l;){var f=e[c=o[h]],y=t[c];if(a)var g=s?a(y,f,c,t,e,n):a(f,y,c,e,t,n);if(!(void 0===g?f===y||i(f,y,r,a,n):g)){u=!1;break}m||(m="constructor"==c)}if(u&&!m){var v=e.constructor,b=t.constructor;v==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof b&&b instanceof b||(u=!1)}return n.delete(e),n.delete(t),u}var _equalObjects=equalObjects$1,getNative$3=_getNative,root$3=_root,DataView$1=getNative$3(root$3,"DataView"),_DataView=DataView$1,getNative$2=_getNative,root$2=_root,Promise$2=getNative$2(root$2,"Promise"),_Promise=Promise$2,getNative$1=_getNative,root$1=_root,Set$2=getNative$1(root$1,"Set"),_Set=Set$2,getNative=_getNative,root=_root,WeakMap$2=getNative(root,"WeakMap"),_WeakMap=WeakMap$2,DataView=_DataView,Map$1=_Map,Promise$1=_Promise,Set$1=_Set,WeakMap$1=_WeakMap,baseGetTag=_baseGetTag,toSource=_toSource,mapTag="[object Map]",objectTag$1="[object Object]",promiseTag="[object Promise]",setTag="[object Set]",weakMapTag="[object WeakMap]",dataViewTag="[object DataView]",dataViewCtorString=toSource(DataView),mapCtorString=toSource(Map$1),promiseCtorString=toSource(Promise$1),setCtorString=toSource(Set$1),weakMapCtorString=toSource(WeakMap$1),getTag$1=baseGetTag;(DataView&&getTag$1(new DataView(new ArrayBuffer(1)))!=dataViewTag||Map$1&&getTag$1(new Map$1)!=mapTag||Promise$1&&getTag$1(Promise$1.resolve())!=promiseTag||Set$1&&getTag$1(new Set$1)!=setTag||WeakMap$1&&getTag$1(new WeakMap$1)!=weakMapTag)&&(getTag$1=function(e){var t=baseGetTag(e),r=t==objectTag$1?e.constructor:void 0,a=r?toSource(r):"";if(a)switch(a){case dataViewCtorString:return dataViewTag;case mapCtorString:return mapTag;case promiseCtorString:return promiseTag;case setCtorString:return setTag;case weakMapCtorString:return weakMapTag}return t});var _getTag=getTag$1,Stack$1=_Stack,equalArrays=_equalArrays,equalByTag=_equalByTag,equalObjects=_equalObjects,getTag=_getTag,isArray$2=isArray_1,isBuffer=isBuffer$2.exports,isTypedArray=isTypedArray_1,COMPARE_PARTIAL_FLAG$2=1,argsTag="[object Arguments]",arrayTag="[object Array]",objectTag="[object Object]",objectProto=Object.prototype,hasOwnProperty$1=objectProto.hasOwnProperty;function baseIsEqualDeep$1(e,t,r,a,i,n){var s=isArray$2(e),o=isArray$2(t),l=s?arrayTag:getTag(e),h=o?arrayTag:getTag(t),c=(l=l==argsTag?objectTag:l)==objectTag,d=(h=h==argsTag?objectTag:h)==objectTag,p=l==h;if(p&&isBuffer(e)){if(!isBuffer(t))return!1;s=!0,c=!1}if(p&&!c)return n||(n=new Stack$1),s||isTypedArray(e)?equalArrays(e,t,r,a,i,n):equalByTag(e,t,l,r,a,i,n);if(!(r&COMPARE_PARTIAL_FLAG$2)){var u=c&&hasOwnProperty$1.call(e,"__wrapped__"),m=d&&hasOwnProperty$1.call(t,"__wrapped__");if(u||m){var f=u?e.value():e,y=m?t.value():t;return n||(n=new Stack$1),i(f,y,r,a,n)}}return!!p&&(n||(n=new Stack$1),equalObjects(e,t,r,a,i,n))}var _baseIsEqualDeep=baseIsEqualDeep$1,baseIsEqualDeep=_baseIsEqualDeep,isObjectLike=isObjectLike_1;function baseIsEqual$2(e,t,r,a,i){return e===t||(null==e||null==t||!isObjectLike(e)&&!isObjectLike(t)?e!=e&&t!=t:baseIsEqualDeep(e,t,r,a,baseIsEqual$2,i))}var _baseIsEqual=baseIsEqual$2,Stack=_Stack,baseIsEqual$1=_baseIsEqual,COMPARE_PARTIAL_FLAG$1=1,COMPARE_UNORDERED_FLAG$1=2;function baseIsMatch$1(e,t,r,a){var i=r.length,n=i,s=!a;if(null==e)return!n;for(e=Object(e);i--;){var o=r[i];if(s&&o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++i<n;){var l=(o=r[i])[0],h=e[l],c=o[1];if(s&&o[2]){if(void 0===h&&!(l in e))return!1}else{var d=new Stack;if(a)var p=a(h,c,l,e,t,d);if(!(void 0===p?baseIsEqual$1(c,h,COMPARE_PARTIAL_FLAG$1|COMPARE_UNORDERED_FLAG$1,a,d):p))return!1}}return!0}var _baseIsMatch=baseIsMatch$1,isObject=isObject_1;function isStrictComparable$2(e){return e==e&&!isObject(e)}var _isStrictComparable=isStrictComparable$2,isStrictComparable$1=_isStrictComparable,keys=keys_1;function getMatchData$1(e){for(var t=keys(e),r=t.length;r--;){var a=t[r],i=e[a];t[r]=[a,i,isStrictComparable$1(i)]}return t}var _getMatchData=getMatchData$1;function matchesStrictComparable$2(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}}var _matchesStrictComparable=matchesStrictComparable$2,baseIsMatch=_baseIsMatch,getMatchData=_getMatchData,matchesStrictComparable$1=_matchesStrictComparable;function baseMatches$1(e){var t=getMatchData(e);return 1==t.length&&t[0][2]?matchesStrictComparable$1(t[0][0],t[0][1]):function(r){return r===e||baseIsMatch(r,e,t)}}var _baseMatches=baseMatches$1;function baseHasIn$1(e,t){return null!=e&&t in Object(e)}var _baseHasIn=baseHasIn$1,castPath=_castPath,isArguments=isArguments_1,isArray$1=isArray_1,isIndex=_isIndex,isLength=isLength_1,toKey$2=_toKey;function hasPath$1(e,t,r){for(var a=-1,i=(t=castPath(t,e)).length,n=!1;++a<i;){var s=toKey$2(t[a]);if(!(n=null!=e&&r(e,s)))break;e=e[s]}return n||++a!=i?n:!!(i=null==e?0:e.length)&&isLength(i)&&isIndex(s,i)&&(isArray$1(e)||isArguments(e))}var _hasPath=hasPath$1,baseHasIn=_baseHasIn,hasPath=_hasPath;function hasIn$1(e,t){return null!=e&&hasPath(e,t,baseHasIn)}var hasIn_1=hasIn$1,baseIsEqual=_baseIsEqual,get=get_1,hasIn=hasIn_1,isKey$1=_isKey,isStrictComparable=_isStrictComparable,matchesStrictComparable=_matchesStrictComparable,toKey$1=_toKey,COMPARE_PARTIAL_FLAG=1,COMPARE_UNORDERED_FLAG=2;function baseMatchesProperty$1(e,t){return isKey$1(e)&&isStrictComparable(t)?matchesStrictComparable(toKey$1(e),t):function(r){var a=get(r,e);return void 0===a&&a===t?hasIn(r,e):baseIsEqual(t,a,COMPARE_PARTIAL_FLAG|COMPARE_UNORDERED_FLAG)}}var _baseMatchesProperty=baseMatchesProperty$1;function identity$1(e){return e}var identity_1=identity$1;function baseProperty$1(e){return function(t){return null==t?void 0:t[e]}}var _baseProperty=baseProperty$1,baseGet=_baseGet;function basePropertyDeep$1(e){return function(t){return baseGet(t,e)}}var _basePropertyDeep=basePropertyDeep$1,baseProperty=_baseProperty,basePropertyDeep=_basePropertyDeep,isKey=_isKey,toKey=_toKey;function property$1(e){return isKey(e)?baseProperty(toKey(e)):basePropertyDeep(e)}var property_1=property$1,baseMatches=_baseMatches,baseMatchesProperty=_baseMatchesProperty,identity=identity_1,isArray=isArray_1,property=property_1;function baseIteratee$1(e){return"function"==typeof e?e:null==e?identity:"object"==typeof e?isArray(e)?baseMatchesProperty(e[0],e[1]):baseMatches(e):property(e)}var _baseIteratee=baseIteratee$1,toNumber=toNumber_1,INFINITY=1/0,MAX_INTEGER=17976931348623157e292;function toFinite$1(e){return e?(e=toNumber(e))===INFINITY||e===-INFINITY?(e<0?-1:1)*MAX_INTEGER:e==e?e:0:0===e?e:0}var toFinite_1=toFinite$1,toFinite=toFinite_1;function toInteger$1(e){var t=toFinite(e),r=t%1;return t==t?r?t-r:t:0}var toInteger_1=toInteger$1,baseFindIndex=_baseFindIndex,baseIteratee=_baseIteratee,toInteger=toInteger_1,nativeMax=Math.max;function findIndex(e,t,r){var a=null==e?0:e.length;if(!a)return-1;var i=null==r?0:toInteger(r);return i<0&&(i=nativeMax(a+i,0)),baseFindIndex(e,baseIteratee(t),i)}var findIndex_1=findIndex;const Container$7=styled(animated.div)`
|
|
1087
1317
|
overflow: hidden;
|
|
1088
1318
|
box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.2);
|
|
1089
1319
|
`,List=styled.ul`
|
|
@@ -1229,7 +1459,7 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.pr
|
|
|
1229
1459
|
${e=>css`
|
|
1230
1460
|
color: ${Color.Validation.Red.Icon(e)};
|
|
1231
1461
|
`}
|
|
1232
|
-
`,Container$
|
|
1462
|
+
`,Container$6=styled.li`
|
|
1233
1463
|
background: ${Color.Neutral[7]};
|
|
1234
1464
|
display: flex;
|
|
1235
1465
|
border-radius: 4px;
|
|
@@ -1255,11 +1485,8 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.pr
|
|
|
1255
1485
|
height: 1.5rem;
|
|
1256
1486
|
width: 1.5rem;
|
|
1257
1487
|
margin: 0 0.5rem;
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
fill: ${Color.Neutral[3]};
|
|
1261
|
-
}
|
|
1262
|
-
`,Component$2=(e,t)=>jsxs(Container$4,{children:[jsx(SearchIcon,{type:"search"}),jsx(SearchInput,{ref:t,...e})]},"search"),DropdownSearch=forwardRef(Component$2),DropdownList=({listItems:e,listExtractor:t,valueExtractor:r,onSelectItem:a,listStyleWidth:i,visible:n,enableSearch:s,searchPlaceholder:o="Search",onSearch:l,searchFunction:h,onDismiss:p,multiSelect:c,selectedItems:d,onSelectAll:u,onRetry:m,itemsLoadState:f="success",itemTruncationType:y="end",...g})=>{const[v,b]=useState(0),[x,S]=useState(""),[_,T]=useState(e),[C,E]=useState(0),P=useSpring({height:C}),$=useRef(),k=useRef(),w=useRef([]),A=useRef(),I=useRef(v),M=useRef(_),D=e=>{I.current=e,b(e)},F=e=>{M.current=e,T(e)};useEffect((()=>(document.addEventListener("keydown",V),()=>{document.removeEventListener("keydown",V)})),[]),useEffect((()=>{j(x)}),[x]),useEffect((()=>{S(""),n?(E(L()),A&&A.current?(A.current.focus(),D(-1)):w.current[v]&&w.current[v].focus()):E(0)}),[n]),useEffect((()=>{if(n){const e=L();E(e)}}),[_]),useEffect((()=>{F(e),S(""),D(0)}),[e]);const R=e=>t?t(e):e.toString(),B=e=>{const r=t?t(e):e.toString();let a=0;return k&&k.current&&(a=k.current.getBoundingClientRect().width-100),StringHelper.shouldTruncateToTwoLines(r,a)},O=e=>findIndex_1(d,e)>-1,j=t=>{if(""===t)F(e);else if(h){const e=h(t);F(e)}else{const r=e.filter((e=>R(e).toLowerCase().includes(t.trim().toLowerCase())));F(r)}},L=()=>k&&k.current?k.current.getBoundingClientRect().height:0,V=e=>{if($&&$.current.contains(e.target))switch(e.code){case"ArrowDown":if(I.current<M.current.length-1){const e=I.current+1;w.current[e].focus(),D(e)}break;case"ArrowUp":if(I.current>0){const e=I.current-1;w.current[e].focus(),D(I.current-1)}break;case"Escape":p&&p()}},N=(e,t)=>{e.preventDefault(),a&&a(t,(e=>r?r(e):e)(t))},H=()=>{m&&m()},z=e=>{const r=t?t(e):e.toString();return jsxs(TruncateContainer,{"data-testid":"truncate-middle-container",children:[jsx(TruncateFirstLine,{children:r}),jsxs(TruncateSecondLine,{children:[" ",r]})]})};return jsx(Container$5,{style:P,"data-testid":n?"dropdown-container":"dropdown-container-hidden",ref:$,children:jsxs(List,{ref:k,"data-testid":"dropdown-list",width:i,role:"list",...g,children:[(s||h)&&"success"===f?jsx(DropdownSearch,{ref:A,onChange:e=>{const t=e.target.value;S(t),l&&l()},value:x,placeholder:o,"data-testid":"search-input","aria-label":"search-input",tabIndex:n?0:-1}):null,(()=>{if(c&&_.length>0&&!x&&"success"===f)return jsx(SelectAllContainer,{children:jsx(DropdownCommonButton,{onClick:u,children:0===d.length?"Select all":"Unselect all"})},"selectAll")})(),(()=>{if(x&&0===_.length)return jsxs(ResultStateContainer,{"data-testid":"list-no-results",children:[jsx(LabelIcon,{"data-testid":"no-result-icon",children:jsx(IoMdAlert,{})}),jsx(ResultStateText,{children:"No results found."})]},"noResults")})(),(()=>{if(m&&"loading"===f)return jsxs(ResultStateContainer,{"data-testid":"list-loading",children:[jsx(Spinner,{$buttonStyle:"secondary",size:24}),jsx(ResultStateText,{children:"Loading..."})]},"loading")})(),(()=>{if(m&&"fail"===f)return jsxs(ResultStateContainer,{"data-testid":"list-fail",children:[jsx(LabelIcon,{"data-testid":"load-error-icon",children:jsx(IoMdAlert,{})}),jsx(ResultStateText,{children:"Failed to load."}),jsx(DropdownCommonButton,{onClick:H,children:"Try again."})]},"noResults")})(),(()=>{if(!m||m&&"success"===f)return _.map(((e,t)=>jsx(ListItem,{checked:O(e)&&!c,children:jsxs(ListItemSelector,{onClick:t=>{N(t,e)},ref:e=>w.current[t]=e,"data-testid":"list-item",type:"button",tabIndex:n?0:-1,multiSelect:c,children:[c&&jsx(ListCheckbox,{checked:O(e),displaySize:"small"}),jsx(Label$1,{truncateType:y,children:"middle"===y&&B(e)?z(e):R(e)})]})},((e,t)=>`item_${t}__${r?r(e):e}`)(e,t))))})()]})})},BORDER_RADIUS$2="4px",Wrapper$3=styled.div`
|
|
1488
|
+
color: ${Color.Neutral[3]};
|
|
1489
|
+
`,Component$4=(e,t)=>jsxs(Container$6,{children:[jsx(SearchIcon,{type:"search"}),jsx(SearchInput,{ref:t,...e})]},"search"),DropdownSearch=forwardRef(Component$4),DropdownList=({listItems:e,listExtractor:t,valueExtractor:r,onSelectItem:a,listStyleWidth:i,visible:n,enableSearch:s,searchPlaceholder:o="Search",onSearch:l,searchFunction:h,onDismiss:c,multiSelect:d,selectedItems:p,onSelectAll:u,onRetry:m,itemsLoadState:f="success",itemTruncationType:y="end",...g})=>{const[v,b]=useState(0),[x,S]=useState(""),[_,T]=useState(e),[C,$]=useState(0),E=useSpring({height:C}),w=useRef(),k=useRef(),A=useRef([]),P=useRef(),M=useRef(v),I=useRef(_),D=e=>{M.current=e,b(e)},F=e=>{I.current=e,T(e)};useEffect((()=>(document.addEventListener("keydown",N),()=>{document.removeEventListener("keydown",N)})),[]),useEffect((()=>{j(x)}),[x]),useEffect((()=>{S(""),n?($(B()),P&&P.current?(P.current.focus(),D(-1)):A.current[v]&&A.current[v].focus()):$(0)}),[n]),useEffect((()=>{if(n){const e=B();$(e)}}),[_]),useEffect((()=>{F(e),S(""),D(0)}),[e]);const R=e=>t?t(e):e.toString(),O=e=>{const r=t?t(e):e.toString();let a=0;return k&&k.current&&(a=k.current.getBoundingClientRect().width-100),StringHelper.shouldTruncateToTwoLines(r,a)},L=e=>findIndex_1(p,e)>-1,j=t=>{if(""===t)F(e);else if(h){const e=h(t);F(e)}else{const r=e.filter((e=>R(e).toLowerCase().includes(t.trim().toLowerCase())));F(r)}},B=()=>k&&k.current?k.current.getBoundingClientRect().height:0,N=e=>{if(w&&w.current.contains(e.target))switch(e.code){case"ArrowDown":if(M.current<I.current.length-1){const e=M.current+1;A.current[e].focus(),D(e)}break;case"ArrowUp":if(M.current>0){const e=M.current-1;A.current[e].focus(),D(M.current-1)}break;case"Escape":c&&c()}},V=(e,t)=>{e.preventDefault(),a&&a(t,(e=>r?r(e):e)(t))},H=()=>{m&&m()},z=e=>{const r=t?t(e):e.toString();return jsxs(TruncateContainer,{"data-testid":"truncate-middle-container",children:[jsx(TruncateFirstLine,{children:r}),jsxs(TruncateSecondLine,{children:[" ",r]})]})};return jsx(Container$7,{style:E,"data-testid":n?"dropdown-container":"dropdown-container-hidden",ref:w,children:jsxs(List,{ref:k,"data-testid":"dropdown-list",width:i,role:"list",...g,children:[(s||h)&&"success"===f?jsx(DropdownSearch,{ref:P,onChange:e=>{const t=e.target.value;S(t),l&&l()},value:x,placeholder:o,"data-testid":"search-input","aria-label":"search-input",tabIndex:n?0:-1}):null,(()=>{if(d&&_.length>0&&!x&&"success"===f)return jsx(SelectAllContainer,{children:jsx(DropdownCommonButton,{onClick:u,children:0===p.length?"Select all":"Unselect all"})},"selectAll")})(),(()=>{if(x&&0===_.length)return jsxs(ResultStateContainer,{"data-testid":"list-no-results",children:[jsx(LabelIcon,{"data-testid":"no-result-icon",children:jsx(IoMdAlert,{})}),jsx(ResultStateText,{children:"No results found."})]},"noResults")})(),(()=>{if(m&&"loading"===f)return jsxs(ResultStateContainer,{"data-testid":"list-loading",children:[jsx(Spinner,{$buttonStyle:"secondary",size:24}),jsx(ResultStateText,{children:"Loading..."})]},"loading")})(),(()=>{if(m&&"fail"===f)return jsxs(ResultStateContainer,{"data-testid":"list-fail",children:[jsx(LabelIcon,{"data-testid":"load-error-icon",children:jsx(IoMdAlert,{})}),jsx(ResultStateText,{children:"Failed to load."}),jsx(DropdownCommonButton,{onClick:H,children:"Try again."})]},"noResults")})(),(()=>{if(!m||m&&"success"===f)return _.map(((e,t)=>jsx(ListItem,{checked:L(e)&&!d,children:jsxs(ListItemSelector,{onClick:t=>{V(t,e)},ref:e=>A.current[t]=e,"data-testid":"list-item",type:"button",tabIndex:n?0:-1,multiSelect:d,children:[d&&jsx(ListCheckbox,{checked:L(e),displaySize:"small"}),jsx(Label$1,{truncateType:y,children:"middle"===y&&O(e)?z(e):R(e)})]})},((e,t)=>`item_${t}__${r?r(e):e}`)(e,t))))})()]})})},BORDER_RADIUS$2="4px",Wrapper$9=styled.div`
|
|
1263
1490
|
position: relative;
|
|
1264
1491
|
min-height: 3rem;
|
|
1265
1492
|
height: 3rem;
|
|
@@ -1363,7 +1590,7 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.pr
|
|
|
1363
1590
|
overflow: hidden;
|
|
1364
1591
|
`,PlaceholderLabel$1=styled(ValueLabel$1)`
|
|
1365
1592
|
color: ${Color.Neutral[3]};
|
|
1366
|
-
`,BORDER_RADIUS$1="4px",Wrapper$
|
|
1593
|
+
`,BORDER_RADIUS$1="4px",Wrapper$8=Wrapper$9,ElementBoundary=styled(ElementBoundary$1)``,DisplayContainer=styled.div`
|
|
1367
1594
|
position: relative;
|
|
1368
1595
|
display: flex;
|
|
1369
1596
|
height: 3rem;
|
|
@@ -1412,13 +1639,13 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.pr
|
|
|
1412
1639
|
margin: 1rem 1rem 1rem 0;
|
|
1413
1640
|
width: 1px;
|
|
1414
1641
|
background: ${Color.Neutral[5]};
|
|
1415
|
-
`,InputGroupListAddon=({addon:e,error:t,...r})=>{const{value:a,placeholder:i,options:n,enableSearch:s,searchFunction:o,searchPlaceholder:l,valueExtractor:h,listExtractor:
|
|
1642
|
+
`,InputGroupListAddon=({addon:e,error:t,...r})=>{const{value:a,placeholder:i,options:n,enableSearch:s,searchFunction:o,searchPlaceholder:l,valueExtractor:h,listExtractor:c,displayValueExtractor:d,onSelectOption:p,onHideOptions:u,onShowOptions:m,"data-selector-testid":f}=e.attributes,[y,g]=useState(a),[v,b]=useState(!1),x=useRef(),S=useRef();useEffect((()=>{g(a)}),[a]),useEffect((()=>(document.addEventListener("mousedown",T),()=>{document.removeEventListener("mousedown",T)})),[]);const _=e=>{!e&&u&&u(),e&&m&&m()},T=e=>{if(!r.disabled){if(x&&x.current.contains(e.target))return;b(!1),_(!1)}},C=e=>{e.preventDefault(),r.disabled||(b(!v),_(!v))},$=(e,t)=>{g(e),b(!1),_(!1),S&&S.current.focus(),p&&p(e,t)};return jsx(Wrapper$8,{children:jsxs(ElementBoundary,{ref:x,disabled:r.disabled,error:t&&!v,expanded:v,children:[jsxs(DisplayContainer,{$expanded:v,children:[jsx(Selector,{ref:S,type:"button","data-testid":f||"addon-selector",onClick:C,children:jsxs(Fragment,{children:[jsxs(LabelContainer$1,{children:[i&&!y&&jsx(PlaceholderLabel,{children:i}),y&&jsx(ValueLabel,{"data-testid":"selector-label",children:d?d(y):h?h(y):y.toString()})]}),jsx(IconContainer,{$expanded:v,children:jsx(StyledIcon,{type:"chevron-down"})})]})}),jsx(Divider,{}),jsx(MainInput,{...r,"data-testid":r["data-testid"]||"input"})]}),n&&n.length>0?jsx(DropdownList,{listItems:n,onSelectItem:$,valueExtractor:h,listExtractor:c,visible:v,enableSearch:s,searchFunction:o,searchPlaceholder:l,"data-testid":"dropdown-list"}):null]})})},Component$3=({addon:e,error:t,...r},a)=>{const i=()=>jsx(Container$8,{disabled:r.disabled,$error:t,$readOnly:"readonly"===r.type,"data-testid":r["data-testid"],children:jsx(MainInput,{ref:a,"data-testid":"input",...r})});if(!e)return i();{const{type:a="label",position:n="left"}=e;switch(a){case"list":{const a=e.attributes;return a.options&&a.options.length>0?jsx(InputGroupListAddon,{addon:e,error:t,...r}):i()}case"custom":{const a=e.attributes;return a.children?jsxs(Container$8,{$error:t,disabled:r.disabled,$readOnly:"readonly"===r.type,"data-testid":r["data-testid"],$position:n,children:[jsx(AddOnContainer,{"data-testid":"addon",disabled:r.disabled,$readOnly:"readonly"===r.type,children:a.children}),jsx(MainInput,{...r,$position:n,$readOnly:"readonly"===r.type,"data-testid":"input"})]}):i()}default:{const a=e.attributes;return a.value?jsxs(Container$8,{disabled:r.disabled,$error:t,$readOnly:"readonly"===r.type,"data-testid":r["data-testid"],$position:n,children:[jsx(AddOnContainer,{"data-testid":"addon",disabled:r.disabled,$readOnly:"readonly"===r.type,children:a.value}),jsx(MainInput,{...r,$position:n,$readOnly:"readonly"===r.type,"data-testid":"input"})]}):i()}}}},InputGroup=React__default.forwardRef(Component$3),Component$2=(e,t)=>{const{label:r,errorMessage:a,id:i="form-field-group","data-error-testid":n,"data-testid":s,...o}=e;return jsx(FormWrapper,{id:i,label:r,errorMessage:a,disabled:o.disabled,"data-error-testid":n,children:jsx(InputGroup,{ref:t,id:`${i}-base`,"data-testid":s||i,error:!!a,...o})})},FormInputGroup=React__default.forwardRef(Component$2),InputSelectWrapper=({children:e,show:t,error:r,disabled:a,testId:i,onBlur:n})=>{const s=useRef(),o=useRef(t);useEffect((()=>(document.addEventListener("mousedown",l),()=>{document.removeEventListener("mousedown",l)})),[]),useEffect((()=>{o.current=t}),[t]);const l=e=>{if(!a){if(s&&s.current.contains(e.target))return;o.current&&n()}};return jsx(Wrapper$9,{children:jsx(ElementBoundary$1,{ref:s,error:r&&!t,disabled:a,expanded:t,"data-testid":i,children:e})})},InputMultiSelect=({selectedOptions:e,placeholder:t="Select",options:r,disabled:a,error:i,"data-testid":n,enableSearch:s=!1,searchFunction:o,searchPlaceholder:l,valueExtractor:h,listExtractor:c,onSelectOptions:d,listStyleWidth:p,onShowOptions:u,onHideOptions:m,onRetry:f,optionsLoadState:y="success",optionTruncationType:g="end",...v})=>{const[b,x]=useState(e||[]),[S,_]=useState(!1),T=useRef();useEffect((()=>{x(e||[])}),[e]);const C=(e,t)=>{const r=[...b],a=findIndex_1(b,(e=>(h?h(e):e)===t));a>-1?r.splice(a,1):r.push(e),x(r),w(!1),T&&T.current.focus(),d&&d(r)},$=()=>{S&&(_(!1),w(!1)),T&&T.current.focus()},E=()=>{b&&b.length>0?(x([]),d([])):(x(r),d(r))},w=e=>{!e&&m&&m(),e&&u&&u()};return jsxs(InputSelectWrapper,{show:S,error:i&&!S,disabled:a,testId:n,onBlur:()=>{_(!1),w(!1)},children:[jsx(Selector$1,{ref:T,type:"button","data-testid":"selector",onClick:e=>{e.preventDefault(),a||(_(!S),w(!S))},...v,children:jsxs(Fragment,{children:[jsx(LabelContainer$2,{children:b&&0!==b.length?jsx(ValueLabel$1,{children:b&&0!=b.length?`${b.length} selected`:t}):jsx(PlaceholderLabel$1,{truncateType:g,children:t})}),jsx(IconContainer$1,{expanded:S,children:jsx(StyledIcon$1,{type:"chevron-down"})})]})}),S&&jsx(Divider$1,{}),r&&r.length>0||f?jsx(DropdownList,{listItems:r,onSelectItem:C,onDismiss:$,valueExtractor:h,listExtractor:c,listStyleWidth:p,visible:S,enableSearch:s,searchFunction:o,searchPlaceholder:l,"data-testid":"dropdown-list",multiSelect:!0,selectedItems:b,onSelectAll:E,onRetry:f,itemsLoadState:y,itemTruncationType:g}):null]})},FormMultiSelect=({label:e,errorMessage:t,id:r="form-multi-select","data-error-testid":a,"data-testid":i,enableSearch:n=!1,...s})=>jsx(FormWrapper,{id:r,label:e,errorMessage:t,"data-error-testid":a,disabled:s.disabled,children:jsx(InputMultiSelect,{id:`${r}-base`,"data-testid":i||r,error:!!t,enableSearch:n,...s})}),InputSelect=({selectedOption:e,placeholder:t="Select",options:r,disabled:a,error:i,"data-testid":n,id:s,enableSearch:o=!1,searchFunction:l,searchPlaceholder:h,valueExtractor:c,valueToStringFunction:d,listExtractor:p,displayValueExtractor:u,onSelectOption:m,listStyleWidth:f,onShowOptions:y,onHideOptions:g,onRetry:v,optionsLoadState:b="success",optionTruncationType:x="end",...S})=>{const[_,T]=useState(e),[C,$]=useState(!1),E=useRef(),w=useRef();useEffect((()=>{T(e)}),[e]);const k=(e,t)=>{T(e),$(!1),M(!1),E&&E.current.focus(),m&&m(e,t)},A=()=>{C&&($(!1),M(!1)),E&&E.current.focus()},P=e=>{if("middle"===x){let t=0;return w&&w.current&&(t=w.current.getBoundingClientRect().width),StringHelper.truncateOneLine((e=>"string"==typeof e?e:d(e)||e.toString())(e),t,120,8)}return e},M=e=>{!e&&g&&g(),e&&y&&y()};return jsxs(InputSelectWrapper,{show:C,error:i&&!C,disabled:a,testId:n,onBlur:()=>{$(!1),M(!1)},children:[jsx(Selector$1,{ref:E,type:"button","data-testid":s||"selector",onClick:e=>{e.preventDefault(),a||($(!C),M(!C))},...S,children:jsxs(Fragment,{children:[jsx(LabelContainer$2,{ref:w,children:_?jsx(ValueLabel$1,{truncateType:x,children:P(u?u(_):c?c(_):_.toString())}):jsx(PlaceholderLabel$1,{truncateType:x,children:t})}),jsx(IconContainer$1,{expanded:C,children:jsx(StyledIcon$1,{type:"chevron-down"})})]})}),C&&jsx(Divider$1,{}),r&&r.length>0?jsx(DropdownList,{listItems:r,onSelectItem:k,onDismiss:A,valueExtractor:c,listExtractor:p,listStyleWidth:f,visible:C,enableSearch:o,searchPlaceholder:h,searchFunction:l,"data-testid":"dropdown-list",selectedItems:_?[_]:[],onRetry:v,itemsLoadState:b,itemTruncationType:x}):null]})},FormSelect=({label:e,errorMessage:t,id:r="form-select","data-error-testid":a,"data-testid":i,enableSearch:n=!1,...s})=>jsx(FormWrapper,{id:r,label:e,errorMessage:t,"data-error-testid":a,disabled:s.disabled,children:jsx(InputSelect,{id:`${r}-base`,"data-testid":i||r,error:!!t,enableSearch:n,...s})}),CounterLabel=styled(Text.H6)`
|
|
1416
1643
|
text-align: right;
|
|
1417
1644
|
|
|
1418
1645
|
${e=>{if(e.disabled)return css`
|
|
1419
1646
|
color: ${Color.Neutral[4](e)};
|
|
1420
1647
|
`}}
|
|
1421
|
-
`,TextareaCounter=({value:e,maxLength:t,disabled:r})=>{const[
|
|
1648
|
+
`,TextareaCounter=({value:e,maxLength:t,disabled:r,renderCustomCounter:a})=>{const[i,n]=useState("");useEffect((()=>{n(s(`${e||""}`))}),[e,t]);const s=e=>{if(a)return a(t,e.toString().length);{const r=t-e.toString().length;return r<=1?`${r} character left`:`${r.toLocaleString()} characters left`}};return jsx(Fragment,{children:React__default.isValidElement(i)?i:jsx(CounterLabel,{"data-testid":"counter-label",weight:"semibold",disabled:r,children:i})})},Wrapper$7=styled.div`
|
|
1422
1649
|
display: flex;
|
|
1423
1650
|
flex-direction: column;
|
|
1424
1651
|
`,Element$1=styled.textarea`
|
|
@@ -1442,10 +1669,20 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.pr
|
|
|
1442
1669
|
|
|
1443
1670
|
::placeholder,
|
|
1444
1671
|
::-webkit-input-placeholder {
|
|
1445
|
-
color: ${Color.Neutral[
|
|
1672
|
+
color: ${Color.Neutral[4]};
|
|
1446
1673
|
}
|
|
1447
1674
|
|
|
1448
|
-
${e=>e.
|
|
1675
|
+
${e=>e.readOnly?css`
|
|
1676
|
+
border: none;
|
|
1677
|
+
padding-left: 0rem;
|
|
1678
|
+
background: transparent !important;
|
|
1679
|
+
|
|
1680
|
+
:focus,
|
|
1681
|
+
:active {
|
|
1682
|
+
border: none;
|
|
1683
|
+
box-shadow: none;
|
|
1684
|
+
}
|
|
1685
|
+
`:e.disabled?css`
|
|
1449
1686
|
background: ${Color.Neutral[6](e)};
|
|
1450
1687
|
cursor: not-allowed;
|
|
1451
1688
|
|
|
@@ -1464,7 +1701,7 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.pr
|
|
|
1464
1701
|
box-shadow: inset 0 0 4px 1px rgba(221, 102, 102, 0.8);
|
|
1465
1702
|
}
|
|
1466
1703
|
`:void 0}
|
|
1467
|
-
`,TextareaBaseComponent=({value:e,disabled:t,error:r,rows:a=5,...i},n)=>jsx(Element$1,{ref:n,disabled:t,value:e,error:r,rows:a,...i}),TextareaBase=React__default.forwardRef(TextareaBaseComponent),TextareaComponent=({value:e,disabled:t,rows:r=5,onChange:a,...i},n)=>{const[s,o]=useState(e);useEffect((()=>{o(e)}),[e]);return jsxs(Wrapper$
|
|
1704
|
+
`,TextareaBaseComponent=({value:e,disabled:t,error:r,rows:a=5,...i},n)=>jsx(Element$1,{ref:n,disabled:t,value:e,error:r,rows:a,...i}),TextareaBase=React__default.forwardRef(TextareaBaseComponent),TextareaComponent=({value:e,disabled:t,rows:r=5,onChange:a,...i},n)=>{const[s,o]=useState(e);useEffect((()=>{o(e)}),[e]);return jsxs(Wrapper$7,{children:[jsx(Element$1,{ref:n,disabled:t,value:s,rows:r||5,onChange:e=>{const t=e.target.value;i.maxLength&&t.length>i.maxLength||(o(t),e.target.value=t,a&&a(e))},...i}),i.maxLength&&jsx(TextareaCounter,{disabled:t,value:s,maxLength:i.maxLength,renderCustomCounter:i.renderCustomCounter})]})},Textarea=React__default.forwardRef(TextareaComponent),LabelContainer=styled.div`
|
|
1468
1705
|
display: flex;
|
|
1469
1706
|
justify-content: flex-end;
|
|
1470
1707
|
margin-top: 0.25rem;
|
|
@@ -1474,7 +1711,7 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.pr
|
|
|
1474
1711
|
margin-right: 0.75rem;
|
|
1475
1712
|
`,ErrorMessageLabel=styled(ErrorMessage)`
|
|
1476
1713
|
margin-top: 0;
|
|
1477
|
-
`,FormTextareaComponent=(e,t)=>{const{label:r,value:a,errorMessage:i,id:n="form-textarea","data-error-testid":s,"data-testid":o,onChange:l,...h}=e,[
|
|
1714
|
+
`,FormTextareaComponent=(e,t)=>{const{label:r,value:a,errorMessage:i,id:n="form-textarea","data-error-testid":s,"data-testid":o,onChange:l,...h}=e,[c,d]=useState(a);useEffect((()=>{d(a)}),[a]);return jsxs(FormWrapper,{id:n,label:r,disabled:h.disabled,children:[jsx(TextareaBase,{id:`${n}-base`,"data-testid":o||n,value:c,error:!!i,onChange:e=>{const t=e.target.value;h.maxLength&&t.length>h.maxLength||(d(t),e.target.value=t,l&&l(e))},ref:t,...h}),jsxs(LabelContainer,{children:[i&&jsx(ErrorMessageContainer,{children:jsx(ErrorMessageLabel,{weight:"semibold","data-testid":s||(n?`${n}-error-message`:"error-message"),children:i})}),h.maxLength&&jsx(TextareaCounter,{disabled:h.disabled,value:c,maxLength:h.maxLength,renderCustomCounter:h.renderCustomCounter})]})]})},FormTextarea=React__default.forwardRef(FormTextareaComponent);var TimepickerHelper;!function(e){e.getTimeValues=(e,t)=>{const r={hour:"",minute:"",period:"am"};if(!t)return r;try{if("24hr"===e){const a=convertToPlain(t,e);r.minute=StringHelper.padValue(a.minute);const i=parseInt(a.hour);0===Math.floor(i/12)?(r.period="am",r.hour=0===i?"12":StringHelper.padValue(i.toString())):(r.period="pm",r.hour=12===i?i.toString():StringHelper.padValue((i-12).toString()))}else{const a=convertToPlain(t,e);r.hour=StringHelper.padValue(a.hour),r.minute=StringHelper.padValue(a.minute),r.period="am"===a.period.toLowerCase()?"am":"pm"}return r}catch(e){return r}},e.updateMinutes=(e,t)=>{const r=parseInt(e);if(isNaN(r))return"add"===t?StringHelper.padValue("0"):"55";const a=Math.floor(r/5),i=(("add"===t?a+1:r%5==0?a-1:a)%12+12)%12;return StringHelper.padValue((5*i).toString())},e.updateHours=(e,t)=>{const r=parseInt(e);if(isNaN(r))return"add"===t?StringHelper.padValue("1"):"12";const a="add"===t?r+1:r-1;return a<=12&&a>0?StringHelper.padValue(a.toString()):13===a?StringHelper.padValue("1"):"12"},e.convertTo24HourFormat=e=>{const t=parseInt(e.hour);let r;return r="pm"===e.period?12===t?t.toString():(t+12).toString():12===t?"00":e.hour,`${r}:${e.minute}`},e.convertHourTo12HourFormat=e=>{const t=parseInt(e),r=t%12==0?12..toString():(t%12).toString();return StringHelper.padValue(r)},e.formatValue=(e,t)=>{try{const r=convertToPlain(e,t),a=StringHelper.padValue(r.hour);let i=`${a}:${StringHelper.padValue(r.minute)}`;return"12hr"===t?(i+=r.period.toLowerCase(),i):i}catch(e){return""}}}(TimepickerHelper||(TimepickerHelper={}));const isValidHour=(e,t)=>{const r=parseInt(e);return"24hr"===t?r>=0&&r<=23:r>=1&&r<=12},isValidMinutes=e=>{const t=parseInt(e);return t>=0&&t<=59},isValidTimePeriod=e=>"am"===e.toLowerCase()||"pm"===e.toLowerCase(),convertToPlain=(e,t)=>{const r=e.split(":"),a=new Error("Invalid format");if("12hr"===t){if(2!==r.length||4!==r[1].length)throw a;const e=r[1].substring(0,2),i=r[1].substring(2);if(!isValidHour(r[0],t)||!isValidMinutes(e)||!isValidTimePeriod(i))throw a;return{hour:r[0],minute:e,period:r[1].substring(2)}}if(2!==r.length)throw a;if(!isValidHour(r[0],t)||!isValidMinutes(r[1]))throw a;return{hour:r[0],minute:r[1]}},Container$5=styled.div`
|
|
1478
1715
|
position: relative;
|
|
1479
1716
|
display: inline-flex;
|
|
1480
1717
|
align-items: center;
|
|
@@ -1534,7 +1771,7 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.pr
|
|
|
1534
1771
|
`:e.$selected?css`
|
|
1535
1772
|
color: ${Color.Primary(e)};
|
|
1536
1773
|
`:void 0}
|
|
1537
|
-
`,ToggleButton$1=({disabled:e,checked:t,onChange:r,type:a="checkbox",children:i,className:n,...s})=>{const[o,l]=useState(t),h=useRef();useEffect((()=>{l(t)}),[t]);const
|
|
1774
|
+
`,ToggleButton$1=({disabled:e,checked:t,onChange:r,type:a="checkbox",children:i,className:n,...s})=>{const[o,l]=useState(t),h=useRef();useEffect((()=>{l(t)}),[t]);const c=useCallback((t=>{e||("radio"!==a||o||l(!0),"checkbox"===a&&l((e=>!e)),r&&r(t))}),[]);return jsxs(Container$5,{$selected:o,disabled:e,role:"checkbox","aria-checked":o,className:n,children:[jsx(Input$1,{ref:h,type:"checkbox","data-testid":"toggle-button-input",disabled:e,onChange:c,checked:o,...s}),jsx(Label,{$weight:o?"bold":"regular",$selected:o,disabled:e,"data-testid":"toggle-button-label",children:i})]})},BORDER_RADIUS="4px",AnimatedDiv=styled(animated.div)`
|
|
1538
1775
|
position: absolute;
|
|
1539
1776
|
top: 3.5rem;
|
|
1540
1777
|
left: 0;
|
|
@@ -1548,7 +1785,7 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.pr
|
|
|
1548
1785
|
${MediaQuery.MaxWidth.tablet} {
|
|
1549
1786
|
width: 100%;
|
|
1550
1787
|
}
|
|
1551
|
-
`,Container$
|
|
1788
|
+
`,Container$4=styled.div`
|
|
1552
1789
|
position: relative;
|
|
1553
1790
|
width: 100%;
|
|
1554
1791
|
padding: 0.5rem 1.25rem 1.5rem 1.25rem;
|
|
@@ -1674,7 +1911,7 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.pr
|
|
|
1674
1911
|
${MediaQuery.MaxWidth.tablet} {
|
|
1675
1912
|
width: 50%;
|
|
1676
1913
|
}
|
|
1677
|
-
`;var EInputButtonName,EInputName,ETimePeriodToggleName;!function(e){e.HOUR_UP="hour-up",e.HOUR_DOWN="hour-down",e.MINUTE_UP="minute-up",e.MINUTE_DOWN="minute-down"}(EInputButtonName||(EInputButtonName={})),function(e){e.HOUR="hour",e.MINUTE="minute"}(EInputName||(EInputName={})),function(e){e.AM="am",e.PM="pm"}(ETimePeriodToggleName||(ETimePeriodToggleName={}));const TimepickerDropdown=({id:e,value:t,show:r,format:a,onChange:i,onCancel:n})=>{const s=TimepickerHelper.getTimeValues(a,t),[o,l]=useState(s.hour),[h,
|
|
1914
|
+
`;var EInputButtonName,EInputName,ETimePeriodToggleName;!function(e){e.HOUR_UP="hour-up",e.HOUR_DOWN="hour-down",e.MINUTE_UP="minute-up",e.MINUTE_DOWN="minute-down"}(EInputButtonName||(EInputButtonName={})),function(e){e.HOUR="hour",e.MINUTE="minute"}(EInputName||(EInputName={})),function(e){e.AM="am",e.PM="pm"}(ETimePeriodToggleName||(ETimePeriodToggleName={}));const TimepickerDropdown=({id:e,value:t,show:r,format:a,onChange:i,onCancel:n})=>{const s=TimepickerHelper.getTimeValues(a,t),[o,l]=useState(s.hour),[h,c]=useState(s.minute),[d,p]=useState(s.period),u=useRef(),m=useRef(),f=useResizeDetector();useEffect((()=>{if(r&&u.current&&u.current.focus(),r){const{hour:e,minute:r,period:i}=TimepickerHelper.getTimeValues(a,t);l(e),c(r),p(i)}}),[r,t,a]),useEffect((()=>{const e=u.current,t=m.current;return e&&e.addEventListener("keydown",y),t&&t.addEventListener("keydown",y),()=>{e&&e.removeEventListener("keydown",y),t&&t.removeEventListener("keydown",y)}}),[]);const y=e=>{["Digit0","Digit1","Digit2","Digit3","Digit4","Digit5","Digit6","Digit7","Digit8","Digit9","Tab","Backspace","Delete","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(e.code)||["Backspace","0","1","2","3","4","5","6","7","8","9"].includes(e.key)||e.preventDefault()},g=useCallback((e=>{switch(e.currentTarget.name){case EInputButtonName.MINUTE_UP:c(TimepickerHelper.updateMinutes(h,"add"));break;case EInputButtonName.MINUTE_DOWN:c(TimepickerHelper.updateMinutes(h,"minus"));break;case EInputButtonName.HOUR_UP:l(TimepickerHelper.updateHours(o,"add"));break;case EInputButtonName.HOUR_DOWN:l(TimepickerHelper.updateHours(o,"minus"))}}),[o,h]),v=e=>{e.target.select()},b=e=>{const t=e.target.value;switch(e.target.name){case EInputName.HOUR:t.length<=2&&l(t);break;case EInputName.MINUTE:t.length<=2&&c(t)}},x=e=>{const t=parseInt(e.target.value);if(!isNaN(t))switch(e.target.name){case EInputName.HOUR:{const r=t>23||t<0?s.hour:TimepickerHelper.convertHourTo12HourFormat(e.target.value);l(r);break}case EInputName.MINUTE:{const r=t>59||t<0?s.minute:e.target.value;c(StringHelper.padValue(r));break}}},S=e=>{switch(e.target.name){case ETimePeriodToggleName.AM:p("am");break;case ETimePeriodToggleName.PM:p("pm")}},_=t=>e?`${e}-${t}`:t,T=useSpring({height:r?f.height+32:0});return jsx(AnimatedDiv,{"data-testid":"animated-dropdown-wrapper",style:T,children:jsxs(Container$4,{ref:f.ref,"data-testid":_("timepicker-dropdown"),children:[jsxs(InputSection,{children:[jsxs(HourMinuteSection,{children:[jsxs(InputContainer,{children:[jsx(SwitchButton,{name:EInputButtonName.HOUR_UP,type:"button",tabIndex:-1,onClick:g,"data-testid":_("hour-increment-button"),children:jsx(Icon,{type:"chevron-up"})}),jsx(TimeInput,{type:"number",name:EInputName.HOUR,id:"hour",maxLength:2,pattern:"[0-9]{2}",ref:u,value:o,onFocus:v,onChange:b,onBlur:x,min:1,max:12,placeholder:"HH","data-testid":_("hour-input")}),jsx(SwitchButton,{name:EInputButtonName.HOUR_DOWN,type:"button",tabIndex:-1,onClick:g,"data-testid":_("hour-decrement-button"),children:jsx(Icon,{type:"chevron-down"})})]}),jsx(DividerLabel,{children:":"}),jsxs(InputContainer,{children:[jsx(SwitchButton,{name:EInputButtonName.MINUTE_UP,type:"button",tabIndex:-1,onClick:g,"data-testid":_("minute-increment-button"),children:jsx(Icon,{type:"chevron-up"})}),jsx(TimeInput,{type:"number",name:EInputName.MINUTE,id:"minute",maxLength:2,pattern:"[0-9]{2}",ref:m,value:h,onChange:b,onBlur:x,onFocus:v,min:0,max:59,placeholder:"MM","data-testid":_("minute-input")}),jsx(SwitchButton,{name:EInputButtonName.MINUTE_DOWN,type:"button",tabIndex:-1,onClick:g,"data-testid":_("minute-decrement-button"),children:jsx(Icon,{type:"chevron-down"})})]})]}),jsxs(TimePeriodSection,{children:[jsx(TimePeriodToggle,{checked:"am"===d,name:ETimePeriodToggleName.AM,type:"radio",onChange:S,"data-testid":_("am-toggle"),children:"AM"}),jsx(TimePeriodToggle,{checked:"pm"===d,name:ETimePeriodToggleName.PM,type:"radio",onChange:S,"data-testid":_("pm-toggle"),children:"PM"})]})]}),jsxs(ControlSection,{children:[jsx(ControlButton,{type:"button",styleType:"secondary",onClick:n,"data-testid":_("cancel-button"),children:"Cancel"}),jsx(ControlButton,{type:"button",onClick:()=>{let e;e="24hr"===a?TimepickerHelper.convertTo24HourFormat({hour:o,minute:h,period:d}):`${o}:${h}${d}`,i(e)},disabled:""===o||""===h,"data-testid":_("confirm-button"),children:"Confirm"})]})]})})},Wrapper$6=styled.div`
|
|
1678
1915
|
position: relative;
|
|
1679
1916
|
`,InputSelectorElement=styled.input`
|
|
1680
1917
|
${TextStyleHelper.getTextStyle("Body","regular")}
|
|
@@ -1704,7 +1941,7 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.pr
|
|
|
1704
1941
|
border: 1px solid ${Color.Accent.Light[1]};
|
|
1705
1942
|
box-shadow: inset 0 0 5px 1px rgba(87, 169, 255, 0.5);
|
|
1706
1943
|
`:void 0}
|
|
1707
|
-
`,Timepicker=({id:e,disabled:t=!1,error:r,value:a,defaultValue:i,placeholder:n,format:s="24hr",onChange:o,onBlur:l,onSelectionCancel:h,...
|
|
1944
|
+
`,Timepicker=({id:e,disabled:t=!1,error:r,value:a,defaultValue:i,placeholder:n,format:s="24hr",onChange:o,onBlur:l,onSelectionCancel:h,...c})=>{const[d,p]=useState(!1),u=useRef();useEffect((()=>(document.addEventListener("mousedown",f),document.addEventListener("keyup",y),()=>{document.removeEventListener("mousedown",f),document.removeEventListener("keyup",y)})),[d]);const m=useCallback((()=>{t||d||p(!0)}),[d]),f=e=>{t||g(e)},y=e=>{if("Tab"===e.code)g(e)},g=e=>{u&&!u.current.contains(e.target)&&d&&(p(!1),l&&l())},v=useCallback((()=>"12hr"===s?"HH:MMam":"HH:MM"),[s,n]);return jsxs(Wrapper$6,{ref:u,id:e,...c,children:[jsx(InputSelectorElement,{onFocus:m,focused:d,readOnly:!0,placeholder:n||v(),value:TimepickerHelper.formatValue(a,s),defaultValue:i,disabled:t,error:r,"data-testid":e?`${e}-timepicker-selector`:"timepicker-selector"}),jsx(TimepickerDropdown,{id:e,show:d,value:a||i,format:s,onCancel:()=>{p(!1),h&&h()},onChange:e=>{p(!1),o&&o(e)}})]})},FormTimepicker=({label:e,errorMessage:t,id:r="form-timepicker","data-error-testid":a,"data-testid":i,...n})=>jsx(FormWrapper,{id:r,label:e,errorMessage:t,disabled:n.disabled,"data-error-testid":a,children:jsx(Timepicker,{id:`${r}-base`,"data-testid":i||r,error:!!t,...n})}),Form={DateInput:FormDateInput,Input:FormInput,InputGroup:FormInputGroup,Label:FormLabel,MultiSelect:FormMultiSelect,Select:FormSelect,Textarea:FormTextarea,Timepicker:FormTimepicker,CustomField:FormCustomField},Container$3=styled.div`
|
|
1708
1945
|
border-top: 1px solid ${Color.Neutral[5]};
|
|
1709
1946
|
border-bottom: 1px solid ${Color.Neutral[5]};
|
|
1710
1947
|
`,ItemTitleDefault=styled(Text.H3)`
|
|
@@ -1770,7 +2007,7 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.pr
|
|
|
1770
2007
|
color: ${Color.PrimaryDark};
|
|
1771
2008
|
}
|
|
1772
2009
|
}
|
|
1773
|
-
`,LinkList=({items:e,maxShown:t,style:r="default",onItemClick:a,...i})=>{const[n,s]=useState(!t||t>=e.length),o=t?e.slice(0,t):e,l=t?e.slice(t):[],h=useResizeDetector(),
|
|
2010
|
+
`,LinkList=({items:e,maxShown:t,style:r="default",onItemClick:a,...i})=>{const[n,s]=useState(!t||t>=e.length),o=t?e.slice(0,t):e,l=t?e.slice(t):[],h=useResizeDetector(),c=h.ref,d=(e,t)=>{t.onClick?(e.preventDefault(),t.onClick(e)):a&&(e.preventDefault(),a(t,e))},p=()=>{s(!n)},u=(e,t,a,i)=>jsxs(Fragment,{children:[jsxs(ItemContent,{children:[jsx("small"===r?ItemTitleSmall:ItemTitleDefault,{"data-testid":`link-title-${e}`,weight:"semibold",children:t}),a&&jsx(Description,{"data-testid":`link-description-${e}`,children:a}),i]}),jsx(ItemIcon,{type:"chevron-right"})]}),m=useSpring({height:n?h.height:0});return jsxs(Container$3,{...i,children:[o.map(((e,t)=>{const{title:r,description:a,secondaryDescription:i,onClick:n,...s}=e;return jsx(Item,{"data-testid":`list-item-shown-${t}`,onClick:t=>d(t,e),...s,children:u(t,r,a,i)},`list-item-shown-${t}`)})),l.length>0&&jsx(Expandable,{style:m,"data-testid":"minimised-content",children:jsx(ExpandableChild,{ref:c,children:l.map(((e,t)=>{const{title:r,description:a,onClick:i,secondaryDescription:n,...s}=e;return jsx(Item,{"data-testid":`list-item-minimised-${t}`,onClick:t=>d(t,e),...s,children:u(t,r,a,n)},`list-item-minimised-${t}`)}))})}),l.length>0&&jsxs(ToggleButton,{type:"button",onClick:p,"data-testid":"toggle-button",$showMinimised:n,children:[jsx(ToggleButtonLabel,{weight:"semibold","data-testid":"toggle-button-label",children:n?"View less":"View more"}),jsx(ToggleButtonIcon,{type:n?"minus":"plus"})]})]})},GridContainer=styled.div`
|
|
1774
2011
|
margin-top: 2.5rem;
|
|
1775
2012
|
display: grid;
|
|
1776
2013
|
align-items: center;
|
|
@@ -1810,7 +2047,364 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.pr
|
|
|
1810
2047
|
grid-column: ${n||"auto"} / span ${s||1};
|
|
1811
2048
|
}
|
|
1812
2049
|
`}}
|
|
1813
|
-
`,GridComponent=(e,t)=>{const{children:r,...a}=e;return jsx(GridContainer,{ref:t,...a,children:r})},TileComponent=(e,t)=>{const{children:r,...a}=e;return jsx(TileContainer,{ref:t,...a,children:r})},Masonry={Grid:React__default.forwardRef(GridComponent),Tile:React__default.forwardRef(TileComponent)},Modal=Object.assign(Modal$1,{Box:ModalBox}),Container=styled.div`
|
|
2050
|
+
`,GridComponent=(e,t)=>{const{children:r,...a}=e;return jsx(GridContainer,{ref:t,...a,children:r})},TileComponent=(e,t)=>{const{children:r,...a}=e;return jsx(TileContainer,{ref:t,...a,children:r})},Masonry={Grid:React__default.forwardRef(GridComponent),Tile:React__default.forwardRef(TileComponent)},dashToPascalCase=e=>e.toLowerCase().split("-").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(""),camelToDashCase=e=>e.replace(/([A-Z])/g,(e=>`-${e[0].toLowerCase()}`)),attachProps=(e,t,r={})=>{if(e instanceof Element){const a=getClassName(e.classList,t,r);""!==a&&(e.className=a),Object.keys(t).forEach((r=>{if("children"!==r&&"style"!==r&&"ref"!==r&&"class"!==r&&"className"!==r&&"forwardedRef"!==r)if(0===r.indexOf("on")&&r[2]===r[2].toUpperCase()){const a=r.substring(2),i=a[0].toLowerCase()+a.substring(1);isCoveredByReact(i)||syncEvent(e,i,t[r])}else{e[r]=t[r];"string"===typeof t[r]&&e.setAttribute(camelToDashCase(r),t[r])}}))}},getClassName=(e,t,r)=>{const a=t.className||t.class,i=r.className||r.class,n=arrayToMap(e),s=arrayToMap(a?a.split(" "):[]),o=arrayToMap(i?i.split(" "):[]),l=[];return n.forEach((e=>{s.has(e)?(l.push(e),s.delete(e)):o.has(e)||l.push(e)})),s.forEach((e=>l.push(e))),l.join(" ")},isCoveredByReact=e=>{if("undefined"==typeof document)return!0;{const t="on"+e;let r=t in document;if(!r){const e=document.createElement("div");e.setAttribute(t,"return;"),r="function"==typeof e[t]}return r}},syncEvent=(e,t,r)=>{const a=e.__events||(e.__events={}),i=a[t];i&&e.removeEventListener(t,i),e.addEventListener(t,a[t]=function(e){r&&r.call(this,e)})},arrayToMap=e=>{const t=new Map;return e.forEach((e=>t.set(e,e))),t},setRef=(e,t)=>{"function"==typeof e?e(t):null!=e&&(e.current=t)},mergeRefs=(...e)=>t=>{e.forEach((e=>{setRef(e,t)}))},createForwardRef=(e,t)=>{const r=(t,r)=>React__default.createElement(e,Object.assign({},t,{forwardedRef:r}));return r.displayName=t,React__default.forwardRef(r)};var __rest=function(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(r[a[i]]=e[a[i]])}return r};const createReactComponent=(e,t,r,a)=>{void 0!==a&&a();const i=dashToPascalCase(e),n=class extends React__default.Component{constructor(e){super(e),this.setComponentElRef=e=>{this.componentEl=e}}componentDidMount(){this.componentDidUpdate(this.props)}componentDidUpdate(e){attachProps(this.componentEl,this.props,e)}render(){const t=this.props,{children:a,forwardedRef:i,style:n,className:s,ref:o}=t,l=__rest(t,["children","forwardedRef","style","className","ref"]);let h=Object.keys(l).reduce(((e,t)=>{const r=l[t];if(0===t.indexOf("on")&&t[2]===t[2].toUpperCase()){const a=t.substring(2).toLowerCase();"undefined"!=typeof document&&isCoveredByReact(a)&&(e[t]=r)}else{const a=typeof r;"string"!==a&&"boolean"!==a&&"number"!==a||(e[camelToDashCase(t)]=r)}return e}),{});r&&(h=r(this.props,h));const c=Object.assign(Object.assign({},h),{ref:mergeRefs(i,this.setComponentElRef),style:n});return createElement(e,c,a)}static get displayName(){return i}};return t&&(n.contextType=t),createForwardRef(n,i)};var __extends=(e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},e(t,r)},function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function a(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(a.prototype=r.prototype,new a)}),e,__awaiter=function(e,t,r,a){function i(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,n){function s(e){try{l(a.next(e))}catch(e){n(e)}}function o(e){try{l(a.throw(e))}catch(e){n(e)}}function l(e){e.done?r(e.value):i(e.value).then(s,o)}l((a=a.apply(e,t||[])).next())}))},__generator=function(e,t){var r,a,i,n,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return n={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n;function o(e){return function(t){return l([e,t])}}function l(n){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,a&&(i=2&n[0]?a.return:n[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,n[1])).done)return i;switch(a=0,i&&(n=[2&n[0],i.value]),n[0]){case 0:case 1:i=n;break;case 4:return s.label++,{value:n[1],done:!1};case 5:s.label++,a=n[1],n=[0];continue;case 7:n=s.ops.pop(),s.trys.pop();continue;default:if(!(i=s.trys,(i=i.length>0&&i[i.length-1])||6!==n[0]&&2!==n[0])){s=0;continue}if(3===n[0]&&(!i||n[1]>i[0]&&n[1]<i[3])){s.label=n[1];break}if(6===n[0]&&s.label<i[1]){s.label=i[1],i=n;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(n);break}i[2]&&s.ops.pop(),s.trys.pop();continue}n=t.call(e,s)}catch(e){n=[6,e],a=0}finally{r=i=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}},__spreadArray=function(e,t,r){if(r||2===arguments.length)for(var a,i=0,n=t.length;i<n;i++)!a&&i in t||(a||(a=Array.prototype.slice.call(t,0,i)),a[i]=t[i]);return e.concat(a||Array.prototype.slice.call(t))},NAMESPACE="sgds-masthead",scopeId,hostTagName,isSvgMode=!1,queuePending=!1,win="undefined"!=typeof window?window:{},doc=win.document||{head:{}},plt={$flags$:0,$resourcesUrl$:"",jmp:function(e){return e()},raf:function(e){return requestAnimationFrame(e)},ael:function(e,t,r,a){return e.addEventListener(t,r,a)},rel:function(e,t,r,a){return e.removeEventListener(t,r,a)},ce:function(e,t){return new CustomEvent(e,t)}},promiseResolve=function(e){return Promise.resolve(e)},supportsConstructibleStylesheets=function(){try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(e){}return!1}(),HYDRATED_CSS="{visibility:hidden}.hydrated{visibility:inherit}",createTime=function(e,t){return function(){}},uniqueTime=function(e,t){return function(){}},rootAppliedStyles=new WeakMap,registerStyle=function(e,t,r){var a=styles.get(e);supportsConstructibleStylesheets&&r?(a=a||new CSSStyleSheet).replace(t):a=t,styles.set(e,a)},addStyle=function(e,t,r,a){var i=getScopeId(t),n=styles.get(i);if(e=11===e.nodeType?e:doc,n)if("string"==typeof n){e=e.head||e;var s=rootAppliedStyles.get(e),o=void 0;s||rootAppliedStyles.set(e,s=new Set),s.has(i)||((o=doc.createElement("style")).innerHTML=n,e.insertBefore(o,e.querySelector("link")),s&&s.add(i))}else e.adoptedStyleSheets.includes(n)||(e.adoptedStyleSheets=__spreadArray(__spreadArray([],e.adoptedStyleSheets,!0),[n],!1));return i},attachStyles=function(e){var t=e.$cmpMeta$,r=e.$hostElement$,a=t.$flags$,i=createTime("attachStyles",t.$tagName$),n=addStyle(r.shadowRoot?r.shadowRoot:r.getRootNode(),t);10&a&&(r["s-sc"]=n,r.classList.add(n+"-h")),i()},getScopeId=function(e,t){return"sc-"+e.$tagName$},EMPTY_OBJ={},SVG_NS="http://www.w3.org/2000/svg",HTML_NS="http://www.w3.org/1999/xhtml",isDef=function(e){return null!=e},isComplexType=function(e){return"object"===(e=typeof e)||"function"===e},h=function(e,t){for(var r=[],a=2;a<arguments.length;a++)r[a-2]=arguments[a];var i=null,n=!1,s=!1,o=[],l=function(t){for(var r=0;r<t.length;r++)i=t[r],Array.isArray(i)?l(i):null!=i&&"boolean"!=typeof i&&((n="function"!=typeof e&&!isComplexType(i))&&(i=String(i)),n&&s?o[o.length-1].$text$+=i:o.push(n?newVNode(null,i):i),s=n)};if(l(r),t){var h=t.className||t.class;h&&(t.class="object"!=typeof h?h:Object.keys(h).filter((function(e){return h[e]})).join(" "))}var c=newVNode(e,null);return c.$attrs$=t,o.length>0&&(c.$children$=o),c},newVNode=function(e,t){var r={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null,$attrs$:null};return r},Host={},isHost=function(e){return e&&e.$tag$===Host},setAccessor=function(e,t,r,a,i,n){if(r!==a){var s=isMemberInElement(e,t),o=t.toLowerCase();if("class"===t){var l=e.classList,h=parseClassList(r),c=parseClassList(a);l.remove.apply(l,h.filter((function(e){return e&&!c.includes(e)}))),l.add.apply(l,c.filter((function(e){return e&&!h.includes(e)})))}else if(s||"o"!==t[0]||"n"!==t[1]){var d=isComplexType(a);if((s||d&&null!==a)&&!i)try{if(e.tagName.includes("-"))e[t]=a;else{var p=null==a?"":a;"list"===t?s=!1:null!=r&&e[t]==p||(e[t]=p)}}catch(e){}null==a||!1===a?!1===a&&""!==e.getAttribute(t)||e.removeAttribute(t):(!s||4&n||i)&&!d&&(a=!0===a?"":a,e.setAttribute(t,a))}else t="-"===t[2]?t.slice(3):isMemberInElement(win,o)?o.slice(2):o[2]+t.slice(3),r&&plt.rel(e,t,r,!1),a&&plt.ael(e,t,a,!1)}},parseClassListRegex=/\s/,parseClassList=function(e){return e?e.split(parseClassListRegex):[]},updateElement=function(e,t,r,a){var i=11===t.$elm$.nodeType&&t.$elm$.host?t.$elm$.host:t.$elm$,n=e&&e.$attrs$||EMPTY_OBJ,s=t.$attrs$||EMPTY_OBJ;for(a in n)a in s||setAccessor(i,a,n[a],void 0,r,t.$flags$);for(a in s)setAccessor(i,a,n[a],s[a],r,t.$flags$)},createElm=function(e,t,r,a){var i,n,s=t.$children$[r],o=0;if(null!==s.$text$)i=s.$elm$=doc.createTextNode(s.$text$);else{if(isSvgMode||(isSvgMode="svg"===s.$tag$),i=s.$elm$=doc.createElementNS(isSvgMode?SVG_NS:HTML_NS,s.$tag$),isSvgMode&&"foreignObject"===s.$tag$&&(isSvgMode=!1),updateElement(null,s,isSvgMode),isDef(scopeId)&&i["s-si"]!==scopeId&&i.classList.add(i["s-si"]=scopeId),s.$children$)for(o=0;o<s.$children$.length;++o)(n=createElm(e,s,o))&&i.appendChild(n);"svg"===s.$tag$?isSvgMode=!1:"foreignObject"===i.tagName&&(isSvgMode=!0)}return i},addVnodes=function(e,t,r,a,i,n){var s,o=e;for(o.shadowRoot&&o.tagName===hostTagName&&(o=o.shadowRoot);i<=n;++i)a[i]&&(s=createElm(null,r,i))&&(a[i].$elm$=s,o.insertBefore(s,t))},removeVnodes=function(e,t,r,a,i){for(;t<=r;++t)(a=e[t])&&a.$elm$.remove()},updateChildren=function(e,t,r,a){for(var i,n=0,s=0,o=t.length-1,l=t[0],h=t[o],c=a.length-1,d=a[0],p=a[c];n<=o&&s<=c;)null==l?l=t[++n]:null==h?h=t[--o]:null==d?d=a[++s]:null==p?p=a[--c]:isSameVnode(l,d)?(patch(l,d),l=t[++n],d=a[++s]):isSameVnode(h,p)?(patch(h,p),h=t[--o],p=a[--c]):isSameVnode(l,p)?(patch(l,p),e.insertBefore(l.$elm$,h.$elm$.nextSibling),l=t[++n],p=a[--c]):isSameVnode(h,d)?(patch(h,d),e.insertBefore(h.$elm$,l.$elm$),h=t[--o],d=a[++s]):(i=createElm(t&&t[s],r,s),d=a[++s],i&&l.$elm$.parentNode.insertBefore(i,l.$elm$));n>o?addVnodes(e,null==a[c+1]?null:a[c+1].$elm$,r,a,s,c):s>c&&removeVnodes(t,n,o)},isSameVnode=function(e,t){return e.$tag$===t.$tag$},patch=function(e,t){var r=t.$elm$=e.$elm$,a=e.$children$,i=t.$children$,n=t.$tag$,s=t.$text$;null===s?(updateElement(e,t,isSvgMode="svg"===n||"foreignObject"!==n&&isSvgMode),null!==a&&null!==i?updateChildren(r,a,t,i):null!==i?(null!==e.$text$&&(r.textContent=""),addVnodes(r,null,t,i,0,i.length-1)):null!==a&&removeVnodes(a,0,a.length-1),isSvgMode&&"svg"===n&&(isSvgMode=!1)):e.$text$!==s&&(r.data=s)},renderVdom=function(e,t){var r=e.$hostElement$,a=e.$vnode$||newVNode(null,null),i=isHost(t)?t:h(null,null,t);hostTagName=r.tagName,i.$tag$=null,i.$flags$|=4,e.$vnode$=i,i.$elm$=a.$elm$=r.shadowRoot||r,scopeId=r["s-sc"],patch(a,i)},emitEvent=function(e,t,r){var a=plt.ce(t,r);return e.dispatchEvent(a),a},attachToAncestor=function(e,t){t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise((function(t){return e.$onRenderResolve$=t})))},scheduleUpdate=function(e,t){if(e.$flags$|=16,!(4&e.$flags$)){attachToAncestor(e,e.$ancestorComponent$);return writeTask((function(){return dispatchHooks(e,t)}))}e.$flags$|=512},dispatchHooks=function(e,t){var r=createTime("scheduleUpdate",e.$cmpMeta$.$tagName$),a=e.$lazyInstance$;return r(),then(undefined,(function(){return updateComponent(e,a,t)}))},updateComponent=function(e,t,r){return __awaiter(void 0,void 0,void 0,(function(){var a,i,n,s,o,l;return __generator(this,(function(h){return a=e.$hostElement$,i=createTime("update",e.$cmpMeta$.$tagName$),n=a["s-rc"],r&&attachStyles(e),s=createTime("render",e.$cmpMeta$.$tagName$),callRender(e,t),n&&(n.map((function(e){return e()})),a["s-rc"]=void 0),s(),i(),o=a["s-p"],l=function(){return postUpdateComponent(e)},0===o.length?l():(Promise.all(o).then(l),e.$flags$|=4,o.length=0),[2]}))}))},callRender=function(e,t,r){try{t=t.render(),e.$flags$&=-17,e.$flags$|=2,renderVdom(e,t)}catch(t){consoleError(t,e.$hostElement$)}return null},postUpdateComponent=function(e){e.$cmpMeta$.$tagName$;var t=e.$hostElement$,r=createTime(),a=e.$ancestorComponent$;64&e.$flags$?r():(e.$flags$|=64,addHydratedFlag(t),r(),e.$onReadyResolve$(t),a||appDidLoad()),e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),512&e.$flags$&&nextTick((function(){return scheduleUpdate(e,!1)})),e.$flags$&=-517},appDidLoad=function(e){addHydratedFlag(doc.documentElement),nextTick((function(){return emitEvent(win,"appload",{detail:{namespace:NAMESPACE}})}))},then=function(e,t){return e&&e.then?e.then(t):t()},addHydratedFlag=function(e){return e.classList.add("hydrated")},parsePropertyValue=function(e,t){return null==e||isComplexType(e)?e:4&t?"false"!==e&&(""===e||!!e):1&t?String(e):e},getValue=function(e,t){return getHostRef(e).$instanceValues$.get(t)},setValue=function(e,t,r,a){var i=getHostRef(e),n=i.$instanceValues$.get(t),s=i.$flags$,o=i.$lazyInstance$;r=parsePropertyValue(r,a.$members$[t][0]);var l=Number.isNaN(n)&&Number.isNaN(r);8&s&&void 0!==n||!(r!==n&&!l)||(i.$instanceValues$.set(t,r),o&&2==(18&s)&&scheduleUpdate(i,!1))},proxyComponent=function(e,t,r){if(t.$members$){var a=Object.entries(t.$members$),i=e.prototype;if(a.map((function(e){var a=e[0],n=e[1][0];(31&n||2&r&&32&n)&&Object.defineProperty(i,a,{get:function(){return getValue(this,a)},set:function(e){setValue(this,a,e,t)},configurable:!0,enumerable:!0})})),1&r){var n=new Map;i.attributeChangedCallback=function(e,t,r){var a=this;plt.jmp((function(){var t=n.get(e);if(a.hasOwnProperty(t))r=a[t],delete a[t];else if(i.hasOwnProperty(t)&&"number"==typeof a[t]&&a[t]==r)return;a[t]=(null!==r||"boolean"!=typeof a[t])&&r}))},e.observedAttributes=a.filter((function(e){return e[0],15&e[1][0]})).map((function(e){var t=e[0],r=e[1][1]||t;return n.set(r,t),r}))}}return e},initializeComponent=function(e,t,r,a,i){return __awaiter(void 0,void 0,void 0,(function(){var e,a,n,s,o,l,h;return __generator(this,(function(c){switch(c.label){case 0:return 0!=(32&t.$flags$)?[3,3]:(t.$flags$|=32,(i=loadModule(r)).then?(e=uniqueTime(),[4,i]):[3,2]);case 1:i=c.sent(),e(),c.label=2;case 2:i.isProxied||(proxyComponent(i,r,2),i.isProxied=!0),a=createTime("createInstance",r.$tagName$),t.$flags$|=8;try{new i(t)}catch(e){consoleError(e)}t.$flags$&=-9,a(),i.style&&(n=i.style,s=getScopeId(r),styles.has(s)||(o=createTime("registerStyles",r.$tagName$),registerStyle(s,n,!!(1&r.$flags$)),o())),c.label=3;case 3:return l=t.$ancestorComponent$,h=function(){return scheduleUpdate(t,!0)},l&&l["s-rc"]?l["s-rc"].push(h):h(),[2]}}))}))},connectedCallback=function(e){if(0==(1&plt.$flags$)){var t=getHostRef(e),r=t.$cmpMeta$,a=createTime("connectedCallback",r.$tagName$);if(!(1&t.$flags$)){t.$flags$|=1;for(var i=e;i=i.parentNode||i.host;)if(i["s-p"]){attachToAncestor(t,t.$ancestorComponent$=i);break}r.$members$&&Object.entries(r.$members$).map((function(t){var r=t[0];if(31&t[1][0]&&e.hasOwnProperty(r)){var a=e[r];delete e[r],e[r]=a}})),initializeComponent(e,t,r)}a()}},disconnectedCallback=function(e){0==(1&plt.$flags$)&&getHostRef(e)},bootstrapLazy=function(e,t){void 0===t&&(t={});var r,a=createTime(),i=[],n=t.exclude||[],s=win.customElements,o=doc.head,l=o.querySelector("meta[charset]"),h=doc.createElement("style"),c=[],d=!0;Object.assign(plt,t),plt.$resourcesUrl$=new URL(t.resourcesUrl||"./",doc.baseURI).href,e.map((function(e){e[1].map((function(t){var a={$flags$:t[0],$tagName$:t[1],$members$:t[2],$listeners$:t[3]};a.$members$=t[2];var o=a.$tagName$,l=function(e){function t(t){var r=e.call(this,t)||this;return registerHost(t=r,a),1&a.$flags$&&t.attachShadow({mode:"open"}),r}return __extends(t,e),t.prototype.connectedCallback=function(){var e=this;r&&(clearTimeout(r),r=null),d?c.push(this):plt.jmp((function(){return connectedCallback(e)}))},t.prototype.disconnectedCallback=function(){var e=this;plt.jmp((function(){return disconnectedCallback(e)}))},t.prototype.componentOnReady=function(){return getHostRef(this).$onReadyPromise$},t}(HTMLElement);a.$lazyBundleId$=e[0],n.includes(o)||s.get(o)||(i.push(o),s.define(o,proxyComponent(l,a,1)))}))})),h.innerHTML=i+HYDRATED_CSS,h.setAttribute("data-styles",""),o.insertBefore(h,l?l.nextSibling:o.firstChild),d=!1,c.length?c.map((function(e){return e.connectedCallback()})):plt.jmp((function(){return r=setTimeout(appDidLoad,30)})),a()},hostRefs=new WeakMap,getHostRef=function(e){return hostRefs.get(e)},registerHost=function(e,t){var r={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return r.$onReadyPromise$=new Promise((function(e){return r.$onReadyResolve$=e})),e["s-p"]=[],e["s-rc"]=[],hostRefs.set(e,r)},isMemberInElement=function(e,t){return t in e},consoleError=function(e,t){return(0,console.error)(e,t)},cmpModules=new Map,loadModule=function(e,t,r){var a=e.$tagName$.replace(/-/g,"_"),i=e.$lazyBundleId$,n=cmpModules.get(i);return n?n[a]:import("./".concat(i,".entry.js").concat("")).then((function(e){return cmpModules.set(i,e),e[a]}),consoleError)},styles=new Map,queueDomReads=[],queueDomWrites=[],queueTask=function(e,t){return function(r){e.push(r),queuePending||(queuePending=!0,t&&4&plt.$flags$?nextTick(flush):plt.raf(flush))}},consume=function(e){for(var t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){consoleError(e)}e.length=0},flush=function(){consume(queueDomReads),consume(queueDomWrites),(queuePending=queueDomReads.length>0)&&plt.raf(flush)},nextTick=function(e){return promiseResolve().then(e)},writeTask=queueTask(queueDomWrites,!0),patchEsm=function(){return promiseResolve()},defineCustomElements=function(e,t){return"undefined"==typeof window?Promise.resolve():patchEsm().then((function(){return bootstrapLazy([["sgds-masthead",[[1,"sgds-masthead",{sgCrest:[1,"sg-crest"],fluid:[4],isOpen:[32]}]]]],t)}))};!function(){if("undefined"!=typeof window&&void 0!==window.Reflect&&void 0!==window.customElements){var e=HTMLElement;window.HTMLElement=function(){return Reflect.construct(e,[],this.constructor)},HTMLElement.prototype=e.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,e)}}(),defineCustomElements();const SgdsMasthead=createReactComponent("sgds-masthead"),Masthead=()=>jsx(Wrapper$5,{children:jsx(SgdsMasthead,{})}),Wrapper$5=styled.div`
|
|
2051
|
+
background: hsl(0, 0%, 94%);
|
|
2052
|
+
padding: 0 1rem;
|
|
2053
|
+
`,Modal=Object.assign(Modal$1,{Box:ModalBox}),Wrapper$4=styled.div`
|
|
2054
|
+
position: ${e=>e.fixed?"fixed":"relative"};
|
|
2055
|
+
background-color: white;
|
|
2056
|
+
z-index: 30;
|
|
2057
|
+
top: 0;
|
|
2058
|
+
left: 0;
|
|
2059
|
+
right: 0;
|
|
2060
|
+
width: 100%;
|
|
2061
|
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
|
2062
|
+
`,Nav=styled.nav`
|
|
2063
|
+
height: ${e=>e.compress?NAVBAR_HEIGHT.compress:NAVBAR_HEIGHT.notCompress}rem;
|
|
2064
|
+
width: 100%;
|
|
2065
|
+
display: flex;
|
|
2066
|
+
flex-direction: row;
|
|
2067
|
+
justify-content: space-between;
|
|
2068
|
+
align-items: center;
|
|
2069
|
+
position: relative;
|
|
2070
|
+
transition: ${Transition.Base};
|
|
2071
|
+
|
|
2072
|
+
${MediaQuery.MaxWidth.tablet} {
|
|
2073
|
+
height: 3.5rem;
|
|
2074
|
+
}
|
|
2075
|
+
`,NavElementsContainer=styled.div`
|
|
2076
|
+
display: flex;
|
|
2077
|
+
height: 100%;
|
|
2078
|
+
`,MobileMenuButton=styled(IconButton)`
|
|
2079
|
+
display: none;
|
|
2080
|
+
|
|
2081
|
+
${MediaQuery.MaxWidth.tablet} {
|
|
2082
|
+
display: flex;
|
|
2083
|
+
padding: 0 1.5rem;
|
|
2084
|
+
margin-right: -1.5rem;
|
|
2085
|
+
background: transparent;
|
|
2086
|
+
outline-style: none;
|
|
2087
|
+
|
|
2088
|
+
span {
|
|
2089
|
+
font-size: 1.5rem;
|
|
2090
|
+
color: ${Color.Neutral[1]};
|
|
2091
|
+
}
|
|
2092
|
+
|
|
2093
|
+
:active,
|
|
2094
|
+
:focus {
|
|
2095
|
+
background: transparent;
|
|
2096
|
+
}
|
|
2097
|
+
}
|
|
2098
|
+
|
|
2099
|
+
${MediaQuery.MaxWidth.mobileS} {
|
|
2100
|
+
span {
|
|
2101
|
+
font-size: 1.25rem;
|
|
2102
|
+
}
|
|
2103
|
+
}
|
|
2104
|
+
`,NAVBAR_HEIGHT={notCompress:6,compress:4},Clickable=styled.a`
|
|
2105
|
+
display: flex;
|
|
2106
|
+
justify-content: center;
|
|
2107
|
+
margin-right: 2rem;
|
|
2108
|
+
|
|
2109
|
+
img {
|
|
2110
|
+
width: auto;
|
|
2111
|
+
height: ${e=>e.$compress?1.375:2}rem;
|
|
2112
|
+
transition: ${Transition.Base};
|
|
2113
|
+
|
|
2114
|
+
${MediaQuery.MaxWidth.tablet} {
|
|
2115
|
+
height: 1.375rem;
|
|
2116
|
+
}
|
|
2117
|
+
}
|
|
2118
|
+
`,Brand=({resources:e,compress:t,onClick:r,"data-testid":a="navbar-brand"})=>jsx(Clickable,{role:"link","aria-label":e.brandName+"-app-home-page",onClick:r,$compress:t,tabIndex:0,"data-testid":a,children:jsx("img",{src:e.logoSrc,alt:e.brandName+"-app-logo"})}),VISIBILITY_STYLE=e=>e?css`
|
|
2119
|
+
right: 0;
|
|
2120
|
+
transition: all 300ms cubic-bezier(0.21, 0.79, 0.53, 1);
|
|
2121
|
+
transition-delay: 200ms;
|
|
2122
|
+
`:css`
|
|
2123
|
+
right: -100%;
|
|
2124
|
+
transition: all 300ms cubic-bezier(0.4, 0.34, 0.38, 1);
|
|
2125
|
+
`,Wrapper$3=styled.div`
|
|
2126
|
+
display: none;
|
|
2127
|
+
|
|
2128
|
+
${MediaQuery.MaxWidth.tablet} {
|
|
2129
|
+
display: flex;
|
|
2130
|
+
}
|
|
2131
|
+
`,Container$2=styled.div`
|
|
2132
|
+
position: absolute;
|
|
2133
|
+
overflow-y: auto;
|
|
2134
|
+
overflow-x: hidden;
|
|
2135
|
+
height: 100vh;
|
|
2136
|
+
display: block;
|
|
2137
|
+
padding: 0 0 1rem;
|
|
2138
|
+
background-color: white;
|
|
2139
|
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
|
|
2140
|
+
visibility: ${e=>e.$show?"visible":"hidden"};
|
|
2141
|
+
|
|
2142
|
+
${e=>VISIBILITY_STYLE(e.$show)}
|
|
2143
|
+
${e=>{const t=`${e.$viewHeight}px`||"1vh";return css`
|
|
2144
|
+
height: calc(${t} * 100);
|
|
2145
|
+
`}}
|
|
2146
|
+
|
|
2147
|
+
${MediaQuery.MaxWidth.tablet} {
|
|
2148
|
+
width: 75%;
|
|
2149
|
+
}
|
|
2150
|
+
|
|
2151
|
+
${MediaQuery.MaxWidth.mobileL} {
|
|
2152
|
+
width: 100%;
|
|
2153
|
+
}
|
|
2154
|
+
`,Content$1=styled.div`
|
|
2155
|
+
display: flex;
|
|
2156
|
+
flex-direction: column;
|
|
2157
|
+
`,TopBar=styled.div`
|
|
2158
|
+
display: flex;
|
|
2159
|
+
justify-content: space-between;
|
|
2160
|
+
position: relative;
|
|
2161
|
+
padding: 2.5rem 1rem 2rem;
|
|
2162
|
+
`,CloseButton=styled(IconButton)`
|
|
2163
|
+
position: absolute;
|
|
2164
|
+
right: -0.5rem;
|
|
2165
|
+
bottom: 0.65rem;
|
|
2166
|
+
|
|
2167
|
+
span {
|
|
2168
|
+
color: ${Color.Neutral[1]};
|
|
2169
|
+
}
|
|
2170
|
+
|
|
2171
|
+
:active,
|
|
2172
|
+
:focus {
|
|
2173
|
+
background: transparent;
|
|
2174
|
+
|
|
2175
|
+
span {
|
|
2176
|
+
color: ${Color.Primary};
|
|
2177
|
+
}
|
|
2178
|
+
}
|
|
2179
|
+
`,CloseIcon=styled(Icon)`
|
|
2180
|
+
font-size: 2rem;
|
|
2181
|
+
margin-right: -0.25rem;
|
|
2182
|
+
`,Component$1=(e,t)=>{const{show:r,resources:a,children:i,onClose:n,onBrandClick:s}=e,[o,l]=useState(0);useEffect((()=>(h(),window.addEventListener("resize",h),()=>{window.removeEventListener("resize",h)})),[]);const h=()=>{if(window){const e=.01*window.innerHeight;l(e)}};return jsx(Wrapper$3,{ref:t,"data-testid":"drawer",children:jsx(Container$2,{$show:r,$viewHeight:o,children:jsxs(Content$1,{children:[jsxs(TopBar,{children:[jsx(Brand,{resources:a,onClick:s,"data-testid":"drawer__brand"}),jsx(CloseButton,{onClick:n,"aria-label":"Close nav menu",children:jsx(CloseIcon,{type:"cross"})})]}),i]})})})},Drawer=React__default.forwardRef(Component$1),Wrapper$2=styled.ul`
|
|
2183
|
+
display: flex;
|
|
2184
|
+
list-style: none;
|
|
2185
|
+
margin-left: 4rem;
|
|
2186
|
+
|
|
2187
|
+
${MediaQuery.MaxWidth.tablet} {
|
|
2188
|
+
display: none;
|
|
2189
|
+
}
|
|
2190
|
+
`,MobileWrapper$1=styled.ul`
|
|
2191
|
+
display: none;
|
|
2192
|
+
list-style: none;
|
|
2193
|
+
|
|
2194
|
+
${MediaQuery.MaxWidth.tablet} {
|
|
2195
|
+
display: flex;
|
|
2196
|
+
flex-direction: column;
|
|
2197
|
+
margin-top: 2.5rem;
|
|
2198
|
+
width: max-content;
|
|
2199
|
+
min-width: 22rem;
|
|
2200
|
+
max-width: 24rem;
|
|
2201
|
+
}
|
|
2202
|
+
|
|
2203
|
+
${MediaQuery.MaxWidth.mobileL} {
|
|
2204
|
+
width: 100%;
|
|
2205
|
+
max-width: unset;
|
|
2206
|
+
min-width: unset;
|
|
2207
|
+
}
|
|
2208
|
+
`,ButtonItem=styled.li`
|
|
2209
|
+
position: relative;
|
|
2210
|
+
display: flex;
|
|
2211
|
+
align-items: center;
|
|
2212
|
+
|
|
2213
|
+
:not(:last-of-type) {
|
|
2214
|
+
margin-right: 1rem;
|
|
2215
|
+
}
|
|
2216
|
+
|
|
2217
|
+
${MediaQuery.MaxWidth.tablet} {
|
|
2218
|
+
width: 100%;
|
|
2219
|
+
padding: 0 0 0 1rem;
|
|
2220
|
+
justify-content: center;
|
|
2221
|
+
|
|
2222
|
+
:not(:last-of-type) {
|
|
2223
|
+
margin-right: 0;
|
|
2224
|
+
margin-bottom: 1rem;
|
|
2225
|
+
}
|
|
2226
|
+
}
|
|
2227
|
+
|
|
2228
|
+
${MediaQuery.MaxWidth.mobileL} {
|
|
2229
|
+
padding: 0 1rem;
|
|
2230
|
+
}
|
|
2231
|
+
`,ActionButton=styled(Button.Small)`
|
|
2232
|
+
${MediaQuery.MaxWidth.tablet} {
|
|
2233
|
+
width: 100%;
|
|
2234
|
+
padding: 0.685rem 1rem;
|
|
2235
|
+
}
|
|
2236
|
+
`,DownloadAppWrapper=styled.div`
|
|
2237
|
+
display: none;
|
|
2238
|
+
|
|
2239
|
+
${MediaQuery.MaxWidth.tablet} {
|
|
2240
|
+
display: flex;
|
|
2241
|
+
flex-direction: column;
|
|
2242
|
+
margin-top: 2.5rem;
|
|
2243
|
+
}
|
|
2244
|
+
`,DownloadAppTitle=styled(Text.BodySmall)`
|
|
2245
|
+
margin-bottom: 0.5rem;
|
|
2246
|
+
`,DownloadAppImageLinkWrapper=styled.div`
|
|
2247
|
+
display: flex;
|
|
2248
|
+
`,DownloadAppImageLink=styled.a`
|
|
2249
|
+
:not(:last-child) {
|
|
2250
|
+
margin-right: 1rem;
|
|
2251
|
+
}
|
|
2252
|
+
|
|
2253
|
+
img {
|
|
2254
|
+
width: auto;
|
|
2255
|
+
height: auto;
|
|
2256
|
+
object-fit: contain;
|
|
2257
|
+
}
|
|
2258
|
+
|
|
2259
|
+
${MediaQuery.MaxWidth.tablet} {
|
|
2260
|
+
img {
|
|
2261
|
+
max-width: 11rem;
|
|
2262
|
+
}
|
|
2263
|
+
}
|
|
2264
|
+
|
|
2265
|
+
${MediaQuery.MaxWidth.mobileL} {
|
|
2266
|
+
img {
|
|
2267
|
+
max-width: 100%;
|
|
2268
|
+
}
|
|
2269
|
+
}
|
|
2270
|
+
`,APP_STORE_ICON="https://assets.life.gov.sg/react-design-system/img/download/apple-app-store.png",PLAY_STORE_ICON="https://assets.life.gov.sg/react-design-system/img/download/google-play-store.png",NavbarActionButtons=({actionButtons:e,mobile:t=!1,onActionButtonClick:r})=>{const a=e=>{e.stopPropagation()},i=e=>t=>{t.stopPropagation(),"download"===e.type&&window.scrollTo({left:0,top:document.body.scrollHeight,behavior:"smooth"}),r(t,e)},n=(t=!1)=>(t?(e=>{const t=findIndex_1(e,(e=>"download"===e.type));if(t>-1){const r=[...e],a=r.splice(t,1);return[...r,a[0]]}return e})(e):e).map(((e,r)=>{let n;switch(e.type){case"download":n=t?(s=e.args,jsxs(DownloadAppWrapper,{children:[jsx(DownloadAppTitle,{weight:"semibold",children:s&&s.children||"Download the app"}),jsxs(DownloadAppImageLinkWrapper,{children:[jsx(DownloadAppImageLink,{href:"https://apps.apple.com/sg/app/moments-of-life/id1383218758",target:"_blank",rel:"noopener noreferrer","data-testid":"button__app-store",onClick:a,children:jsx("img",{src:APP_STORE_ICON,alt:"apple-app-store"})}),jsx(DownloadAppImageLink,{href:"https://play.google.com/store/apps/details?id=sg.gov.app.mol&hl=en_SG",target:"_blank",rel:"noopener noreferrer","data-testid":"button__play-store",onClick:a,children:jsx("img",{src:PLAY_STORE_ICON,alt:"google-play-store"})})]})]})):jsx(ActionButton,{onClick:i(e),...e.args,"data-testid":"action-button__download",children:"Download the app"});break;case"button":{const a=e.args["data-testid"]?`action-button__${e.args["data-testid"]}`:`action-button__button-${t?"mobile-":""}${r+1}`;n=jsx(ActionButton,{...e.args,onClick:i(e),"data-testid":a});break}case"component":{const t=e.args;n=t&&t.render||null;break}default:n=null}var s;if(n)return jsx(ButtonItem,{children:n},`action-button-${r+1}`)}));if(e&&e.length>0){return jsx(t?MobileWrapper$1:Wrapper$2,{children:n(t)})}return jsx(Fragment,{})},Wrapper$1=styled.ul`
|
|
2271
|
+
display: flex;
|
|
2272
|
+
list-style: none;
|
|
2273
|
+
|
|
2274
|
+
${MediaQuery.MaxWidth.tablet} {
|
|
2275
|
+
display: none;
|
|
2276
|
+
}
|
|
2277
|
+
`,MobileWrapper=styled.ul`
|
|
2278
|
+
display: none;
|
|
2279
|
+
list-style: none;
|
|
2280
|
+
|
|
2281
|
+
${MediaQuery.MaxWidth.tablet} {
|
|
2282
|
+
display: flex;
|
|
2283
|
+
flex-direction: column;
|
|
2284
|
+
}
|
|
2285
|
+
`,LinkItem=styled.li`
|
|
2286
|
+
position: relative;
|
|
2287
|
+
display: flex;
|
|
2288
|
+
align-items: center;
|
|
2289
|
+
|
|
2290
|
+
:not(:last-of-type) {
|
|
2291
|
+
margin-right: 1rem;
|
|
2292
|
+
}
|
|
2293
|
+
|
|
2294
|
+
${MediaQuery.MaxWidth.tablet} {
|
|
2295
|
+
width: 100%;
|
|
2296
|
+
|
|
2297
|
+
:not(:last-of-type) {
|
|
2298
|
+
margin-right: 0;
|
|
2299
|
+
}
|
|
2300
|
+
}
|
|
2301
|
+
`,Link=styled(Text.Hyperlink.Small)`
|
|
2302
|
+
display: flex;
|
|
2303
|
+
position: relative;
|
|
2304
|
+
align-items: center;
|
|
2305
|
+
text-align: center;
|
|
2306
|
+
color: ${Color.Neutral[1]};
|
|
2307
|
+
height: 100%;
|
|
2308
|
+
padding: 0 0.5rem;
|
|
2309
|
+
|
|
2310
|
+
:active,
|
|
2311
|
+
:focus {
|
|
2312
|
+
color: ${Color.Neutral[1]};
|
|
2313
|
+
}
|
|
2314
|
+
|
|
2315
|
+
${MediaQuery.MaxWidth.tablet} {
|
|
2316
|
+
${e=>TextStyleHelper.getTextStyle("H4",e.$selected?"bold":"regular")}
|
|
2317
|
+
width: 100%;
|
|
2318
|
+
padding: 0.625rem 1rem;
|
|
2319
|
+
text-align: left;
|
|
2320
|
+
align-items: flex-start;
|
|
2321
|
+
}
|
|
2322
|
+
`,LinkIndicator=styled.div`
|
|
2323
|
+
position: absolute;
|
|
2324
|
+
bottom: 0;
|
|
2325
|
+
height: 4px;
|
|
2326
|
+
left: 0.5rem;
|
|
2327
|
+
right: 0.5rem;
|
|
2328
|
+
background-color: ${Color.Primary};
|
|
2329
|
+
|
|
2330
|
+
${MediaQuery.MaxWidth.tablet} {
|
|
2331
|
+
left: 0;
|
|
2332
|
+
right: unset;
|
|
2333
|
+
top: 0;
|
|
2334
|
+
bottom: 0;
|
|
2335
|
+
height: 100%;
|
|
2336
|
+
width: 4px;
|
|
2337
|
+
background-color: ${Color.Accent.Light[1]};
|
|
2338
|
+
}
|
|
2339
|
+
`,NavbarItems=({items:e,selectedId:t,mobile:r=!1,onItemClick:a})=>{const i=e=>t=>{t.stopPropagation(),a(t,e)},n=(r=!1)=>e.map(((e,a)=>{const n=e.id===t,{children:s,options:o,...l}=e;return jsx(LinkItem,{children:jsxs(Link,{"data-testid":r?`link__mobile-${a+1}`:`link__${a+1}`,weight:n?r?"bold":"semibold":"regular",$selected:n,...l,onClick:i(e),...o,children:[s,n&&jsx(LinkIndicator,{})]})},a)}));if(e&&e.length>0){return jsx(Fragment,{children:jsx(r?MobileWrapper:Wrapper$1,{children:n(r)})})}return jsx(Fragment,{})},Component=({items:e,id:t,selectedId:r,compress:a=!1,fixed:i=!0,resources:n=DEFAULT_RESOURCES,hideNavElements:s=!1,drawerDismissalExclusions:o=[],actionButtons:l,onItemClick:h,onActionButtonClick:c,onBrandClick:d,...p},u)=>{const[m,f]=useState(!1),[y,g]=useState(!1);useEffect((()=>(x(),window.addEventListener("resize",x),()=>{window.removeEventListener("resize",x)})),[]);const v=()=>{f(!1),setTimeout((()=>{g(!1)}),550)},b=e=>m&&-1===o.indexOf(e),x=()=>{window.innerWidth<=MediaWidths$1.tablet&&m&&v()},S=e=>{d&&(e.preventDefault(),d()),b("brand-click")&&v()},_=(e,t)=>{t.onClick?t.onClick(e):h&&(e.preventDefault(),h(t)),b("item-click")&&v()},T=(e,t)=>{t.args&&t.args.onClick?t.args.onClick(e):c&&(e.preventDefault(),c(t)),b("item-click")&&v()},C=()=>{f(!0),g(!0)},$=()=>{b("close-button-click")&&v()};return jsxs(Wrapper$4,{ref:u,fixed:i,id:t||"navbar-wrapper","data-testid":p["data-testid"]||"navbar-wrapper",children:[jsx(Masthead,{}),jsxs(Layout.Content,{children:[jsxs(Nav,{compress:a,children:[jsx(Brand,{resources:n,compress:a,onClick:S,"data-testid":"main__brand"}),!s&&jsxs(NavElementsContainer,{children:[jsx(NavbarItems,{items:e.desktop,onItemClick:_,selectedId:r}),jsx(NavbarActionButtons,{actionButtons:l&&l.desktop,onActionButtonClick:T}),jsx(MobileMenuButton,{"aria-label":"Open nav menu","data-testid":"button__mobile-menu",onClick:C,children:jsx(Icon,{type:"menu"})})]})]}),!s&&jsx(Overlay,{show:y,enableOverlayClick:!0,onOverlayClick:$,children:jsxs(Drawer,{show:m,resources:n,onClose:$,onBrandClick:S,actionButtons:l,children:[jsx(NavbarItems,{items:e.mobile||e.desktop,onItemClick:_,selectedId:r,mobile:!0}),jsx(NavbarActionButtons,{actionButtons:l&&(l?.mobile||l.desktop),onActionButtonClick:T,mobile:!0})]})})]})]})},Navbar=React__default.forwardRef(Component),DEFAULT_RESOURCES={brandName:"LifeSG",logoSrc:"https://assets.life.gov.sg/lifesg/logo-lifesg.svg"},NavbarHeight=NAVBAR_HEIGHT,commonLinkStyle=css`
|
|
2340
|
+
color: ${Color.Validation.Orange.Icon};
|
|
2341
|
+
:hover,
|
|
2342
|
+
:active,
|
|
2343
|
+
:visited,
|
|
2344
|
+
:focus {
|
|
2345
|
+
color: ${Color.Validation.Orange.Icon};
|
|
2346
|
+
}
|
|
2347
|
+
`,Wrapper=styled.div`
|
|
2348
|
+
position: ${e=>e.$sticky?"sticky":"relative"};
|
|
2349
|
+
left: 0;
|
|
2350
|
+
top: 0;
|
|
2351
|
+
width: 100%;
|
|
2352
|
+
transition: ${Transition.Base};
|
|
2353
|
+
background: ${Color.Neutral[2]};
|
|
2354
|
+
z-index: 25;
|
|
2355
|
+
`,Container$1=styled(Layout.Content)`
|
|
2356
|
+
display: flex;
|
|
2357
|
+
`,TextContainer=styled.div`
|
|
2358
|
+
display: flex;
|
|
2359
|
+
flex: 1;
|
|
2360
|
+
padding: 1.5rem 0;
|
|
2361
|
+
`,Content=styled.div`
|
|
2362
|
+
display: inline-block;
|
|
2363
|
+
width: 100%;
|
|
2364
|
+
|
|
2365
|
+
${TextStyleHelper.getTextStyle("Body","regular")}
|
|
2366
|
+
color: ${Color.Neutral[8]};
|
|
2367
|
+
|
|
2368
|
+
p {
|
|
2369
|
+
display: inline-block;
|
|
2370
|
+
}
|
|
2371
|
+
|
|
2372
|
+
strong {
|
|
2373
|
+
${TextStyleHelper.getFontFamily("Body","semibold")}
|
|
2374
|
+
color: ${Color.Neutral[8]};
|
|
2375
|
+
}
|
|
2376
|
+
|
|
2377
|
+
a {
|
|
2378
|
+
${TextStyleHelper.getTextStyle("Body","regular")}
|
|
2379
|
+
${commonLinkStyle}
|
|
2380
|
+
}
|
|
2381
|
+
`,ContentLink=styled(Text.Hyperlink.Default)`
|
|
2382
|
+
position: relative;
|
|
2383
|
+
|
|
2384
|
+
${commonLinkStyle}
|
|
2385
|
+
`,StyledIconButton=styled(IconButton)`
|
|
2386
|
+
background: transparent;
|
|
2387
|
+
margin-right: -1.5rem;
|
|
2388
|
+
padding-left: 1rem;
|
|
2389
|
+
height: max-content;
|
|
2390
|
+
|
|
2391
|
+
svg {
|
|
2392
|
+
height: 1.5rem;
|
|
2393
|
+
width: 1.5rem;
|
|
2394
|
+
color: ${Color.Neutral[8]};
|
|
2395
|
+
}
|
|
2396
|
+
|
|
2397
|
+
:focus,
|
|
2398
|
+
:active {
|
|
2399
|
+
background: transparent;
|
|
2400
|
+
}
|
|
2401
|
+
`;styled(Icon)`
|
|
2402
|
+
font-weight: bold;
|
|
2403
|
+
font-size: 2rem;
|
|
2404
|
+
color: ${Color.Neutral[8]};
|
|
2405
|
+
`;const NBComponent=({children:e,visible:t=!0,dismissible:r=!0,sticky:a=!0,onDismiss:i,id:n,forwardedRef:s,...o})=>{const l=o["data-testid"],[h,c]=useState(t);useEffect((()=>{c(t)}),[t]);return h?jsx(Wrapper,{ref:s,$sticky:a,...o,children:jsxs(Container$1,{id:formatId("container",n),children:[jsx(TextContainer,{children:jsx(Content,{"data-testid":formatId("text-content",l),children:e})}),r&&jsx(StyledIconButton,{onClick:()=>{c(!1),r&&i&&i()},id:formatId("dismiss-button",n),"data-testid":formatId("dismiss-button",l),children:jsx(Icon,{type:"cross"})})]})}):null},NBWithRef=(e,t)=>jsx(NBComponent,{...e,forwardedRef:t}),formatId=(e,t="wrapper")=>`${t}-${e}`,Base=React__default.forwardRef(NBWithRef),NotificationBanner=Object.assign(Base,{Link:ContentLink});
|
|
2406
|
+
/*! @license DOMPurify 2.4.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.0/LICENSE */
|
|
2407
|
+
function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function _setPrototypeOf(e,t){return _setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_setPrototypeOf(e,t)}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function _construct(e,t,r){return _construct=_isNativeReflectConstruct()?Reflect.construct:function(e,t,r){var a=[null];a.push.apply(a,t);var i=new(Function.bind.apply(e,a));return r&&_setPrototypeOf(i,r.prototype),i},_construct.apply(null,arguments)}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=new Array(t);r<t;r++)a[r]=e[r];return a}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var hasOwnProperty=Object.hasOwnProperty,setPrototypeOf=Object.setPrototypeOf,isFrozen=Object.isFrozen,getPrototypeOf=Object.getPrototypeOf,getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor,freeze=Object.freeze,seal=Object.seal,create=Object.create,_ref="undefined"!=typeof Reflect&&Reflect,apply=_ref.apply,construct=_ref.construct;apply||(apply=function(e,t,r){return e.apply(t,r)}),freeze||(freeze=function(e){return e}),seal||(seal=function(e){return e}),construct||(construct=function(e,t){return _construct(e,_toConsumableArray(t))});var arrayForEach=unapply(Array.prototype.forEach),arrayPop=unapply(Array.prototype.pop),arrayPush=unapply(Array.prototype.push),stringToLowerCase=unapply(String.prototype.toLowerCase),stringMatch=unapply(String.prototype.match),stringReplace=unapply(String.prototype.replace),stringIndexOf=unapply(String.prototype.indexOf),stringTrim=unapply(String.prototype.trim),regExpTest=unapply(RegExp.prototype.test),typeErrorCreate=unconstruct(TypeError);function unapply(e){return function(t){for(var r=arguments.length,a=new Array(r>1?r-1:0),i=1;i<r;i++)a[i-1]=arguments[i];return apply(e,t,a)}}function unconstruct(e){return function(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];return construct(e,r)}}function addToSet(e,t,r){r=r||stringToLowerCase,setPrototypeOf&&setPrototypeOf(e,null);for(var a=t.length;a--;){var i=t[a];if("string"==typeof i){var n=r(i);n!==i&&(isFrozen(t)||(t[a]=n),i=n)}e[i]=!0}return e}function clone(e){var t,r=create(null);for(t in e)apply(hasOwnProperty,e,[t])&&(r[t]=e[t]);return r}function lookupGetter(e,t){for(;null!==e;){var r=getOwnPropertyDescriptor(e,t);if(r){if(r.get)return unapply(r.get);if("function"==typeof r.value)return unapply(r.value)}e=getPrototypeOf(e)}return function(e){return console.warn("fallback value for",e),null}}var html$1=freeze(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),svg$1=freeze(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),svgFilters=freeze(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),svgDisallowed=freeze(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),mathMl$1=freeze(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),mathMlDisallowed=freeze(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),text=freeze(["#text"]),html=freeze(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),svg=freeze(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),mathMl=freeze(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),xml=freeze(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),MUSTACHE_EXPR=seal(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ERB_EXPR=seal(/<%[\w\W]*|[\w\W]*%>/gm),DATA_ATTR=seal(/^data-[\-\w.\u00B7-\uFFFF]/),ARIA_ATTR=seal(/^aria-[\-\w]+$/),IS_ALLOWED_URI=seal(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),IS_SCRIPT_OR_DATA=seal(/^(?:\w+script|data):/i),ATTR_WHITESPACE=seal(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),DOCTYPE_NAME=seal(/^html$/i),getGlobal=function(){return"undefined"==typeof window?null:window},_createTrustedTypesPolicy=function(e,t){if("object"!==_typeof(e)||"function"!=typeof e.createPolicy)return null;var r=null,a="data-tt-policy-suffix";t.currentScript&&t.currentScript.hasAttribute(a)&&(r=t.currentScript.getAttribute(a));var i="dompurify"+(r?"#"+r:"");try{return e.createPolicy(i,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};function createDOMPurify(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:getGlobal(),t=function(e){return createDOMPurify(e)};if(t.version="2.4.0",t.removed=[],!e||!e.document||9!==e.document.nodeType)return t.isSupported=!1,t;var r=e.document,a=e.document,i=e.DocumentFragment,n=e.HTMLTemplateElement,s=e.Node,o=e.Element,l=e.NodeFilter,h=e.NamedNodeMap,c=void 0===h?e.NamedNodeMap||e.MozNamedAttrMap:h,d=e.HTMLFormElement,p=e.DOMParser,u=e.trustedTypes,m=o.prototype,f=lookupGetter(m,"cloneNode"),y=lookupGetter(m,"nextSibling"),g=lookupGetter(m,"childNodes"),v=lookupGetter(m,"parentNode");if("function"==typeof n){var b=a.createElement("template");b.content&&b.content.ownerDocument&&(a=b.content.ownerDocument)}var x=_createTrustedTypesPolicy(u,r),S=x?x.createHTML(""):"",_=a,T=_.implementation,C=_.createNodeIterator,$=_.createDocumentFragment,E=_.getElementsByTagName,w=r.importNode,k={};try{k=clone(a).documentMode?a.documentMode:{}}catch(e){}var A={};t.isSupported="function"==typeof v&&T&&void 0!==T.createHTMLDocument&&9!==k;var P,M,I=MUSTACHE_EXPR,D=ERB_EXPR,F=DATA_ATTR,R=ARIA_ATTR,O=IS_SCRIPT_OR_DATA,L=ATTR_WHITESPACE,j=IS_ALLOWED_URI,B=null,N=addToSet({},[].concat(_toConsumableArray(html$1),_toConsumableArray(svg$1),_toConsumableArray(svgFilters),_toConsumableArray(mathMl$1),_toConsumableArray(text))),V=null,H=addToSet({},[].concat(_toConsumableArray(html),_toConsumableArray(svg),_toConsumableArray(mathMl),_toConsumableArray(xml))),z=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),G=null,W=null,U=!0,q=!0,Q=!1,Y=!1,K=!1,X=!1,Z=!1,J=!1,ee=!1,te=!1,re=!0,ae=!1,ie="user-content-",ne=!0,se=!1,oe={},le=null,he=addToSet({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),ce=null,de=addToSet({},["audio","video","img","source","image","track"]),pe=null,ue=addToSet({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),me="http://www.w3.org/1998/Math/MathML",fe="http://www.w3.org/2000/svg",ye="http://www.w3.org/1999/xhtml",ge=ye,ve=!1,be=["application/xhtml+xml","text/html"],xe="text/html",Se=null,_e=a.createElement("form"),Te=function(e){return e instanceof RegExp||e instanceof Function},Ce=function(e){Se&&Se===e||(e&&"object"===_typeof(e)||(e={}),e=clone(e),P=P=-1===be.indexOf(e.PARSER_MEDIA_TYPE)?xe:e.PARSER_MEDIA_TYPE,M="application/xhtml+xml"===P?function(e){return e}:stringToLowerCase,B="ALLOWED_TAGS"in e?addToSet({},e.ALLOWED_TAGS,M):N,V="ALLOWED_ATTR"in e?addToSet({},e.ALLOWED_ATTR,M):H,pe="ADD_URI_SAFE_ATTR"in e?addToSet(clone(ue),e.ADD_URI_SAFE_ATTR,M):ue,ce="ADD_DATA_URI_TAGS"in e?addToSet(clone(de),e.ADD_DATA_URI_TAGS,M):de,le="FORBID_CONTENTS"in e?addToSet({},e.FORBID_CONTENTS,M):he,G="FORBID_TAGS"in e?addToSet({},e.FORBID_TAGS,M):{},W="FORBID_ATTR"in e?addToSet({},e.FORBID_ATTR,M):{},oe="USE_PROFILES"in e&&e.USE_PROFILES,U=!1!==e.ALLOW_ARIA_ATTR,q=!1!==e.ALLOW_DATA_ATTR,Q=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Y=e.SAFE_FOR_TEMPLATES||!1,K=e.WHOLE_DOCUMENT||!1,J=e.RETURN_DOM||!1,ee=e.RETURN_DOM_FRAGMENT||!1,te=e.RETURN_TRUSTED_TYPE||!1,Z=e.FORCE_BODY||!1,re=!1!==e.SANITIZE_DOM,ae=e.SANITIZE_NAMED_PROPS||!1,ne=!1!==e.KEEP_CONTENT,se=e.IN_PLACE||!1,j=e.ALLOWED_URI_REGEXP||j,ge=e.NAMESPACE||ye,e.CUSTOM_ELEMENT_HANDLING&&Te(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(z.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Te(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(z.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(z.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Y&&(q=!1),ee&&(J=!0),oe&&(B=addToSet({},_toConsumableArray(text)),V=[],!0===oe.html&&(addToSet(B,html$1),addToSet(V,html)),!0===oe.svg&&(addToSet(B,svg$1),addToSet(V,svg),addToSet(V,xml)),!0===oe.svgFilters&&(addToSet(B,svgFilters),addToSet(V,svg),addToSet(V,xml)),!0===oe.mathMl&&(addToSet(B,mathMl$1),addToSet(V,mathMl),addToSet(V,xml))),e.ADD_TAGS&&(B===N&&(B=clone(B)),addToSet(B,e.ADD_TAGS,M)),e.ADD_ATTR&&(V===H&&(V=clone(V)),addToSet(V,e.ADD_ATTR,M)),e.ADD_URI_SAFE_ATTR&&addToSet(pe,e.ADD_URI_SAFE_ATTR,M),e.FORBID_CONTENTS&&(le===he&&(le=clone(le)),addToSet(le,e.FORBID_CONTENTS,M)),ne&&(B["#text"]=!0),K&&addToSet(B,["html","head","body"]),B.table&&(addToSet(B,["tbody"]),delete G.tbody),freeze&&freeze(e),Se=e)},$e=addToSet({},["mi","mo","mn","ms","mtext"]),Ee=addToSet({},["foreignobject","desc","title","annotation-xml"]),we=addToSet({},["title","style","font","a","script"]),ke=addToSet({},svg$1);addToSet(ke,svgFilters),addToSet(ke,svgDisallowed);var Ae=addToSet({},mathMl$1);addToSet(Ae,mathMlDisallowed);var Pe=function(e){var t=v(e);t&&t.tagName||(t={namespaceURI:ye,tagName:"template"});var r=stringToLowerCase(e.tagName),a=stringToLowerCase(t.tagName);return e.namespaceURI===fe?t.namespaceURI===ye?"svg"===r:t.namespaceURI===me?"svg"===r&&("annotation-xml"===a||$e[a]):Boolean(ke[r]):e.namespaceURI===me?t.namespaceURI===ye?"math"===r:t.namespaceURI===fe?"math"===r&&Ee[a]:Boolean(Ae[r]):e.namespaceURI===ye&&(!(t.namespaceURI===fe&&!Ee[a])&&(!(t.namespaceURI===me&&!$e[a])&&(!Ae[r]&&(we[r]||!ke[r]))))},Me=function(e){arrayPush(t.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=S}catch(t){e.remove()}}},Ie=function(e,r){try{arrayPush(t.removed,{attribute:r.getAttributeNode(e),from:r})}catch(e){arrayPush(t.removed,{attribute:null,from:r})}if(r.removeAttribute(e),"is"===e&&!V[e])if(J||ee)try{Me(r)}catch(e){}else try{r.setAttribute(e,"")}catch(e){}},De=function(e){var t,r;if(Z)e="<remove></remove>"+e;else{var i=stringMatch(e,/^[\r\n\t ]+/);r=i&&i[0]}"application/xhtml+xml"===P&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var n=x?x.createHTML(e):e;if(ge===ye)try{t=(new p).parseFromString(n,P)}catch(e){}if(!t||!t.documentElement){t=T.createDocument(ge,"template",null);try{t.documentElement.innerHTML=ve?"":n}catch(e){}}var s=t.body||t.documentElement;return e&&r&&s.insertBefore(a.createTextNode(r),s.childNodes[0]||null),ge===ye?E.call(t,K?"html":"body")[0]:K?t.documentElement:s},Fe=function(e){return C.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT,null,!1)},Re=function(e){return e instanceof d&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof c)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore)},Oe=function(e){return"object"===_typeof(s)?e instanceof s:e&&"object"===_typeof(e)&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},Le=function(e,r,a){A[e]&&arrayForEach(A[e],(function(e){e.call(t,r,a,Se)}))},je=function(e){var r;if(Le("beforeSanitizeElements",e,null),Re(e))return Me(e),!0;if(regExpTest(/[\u0080-\uFFFF]/,e.nodeName))return Me(e),!0;var a=M(e.nodeName);if(Le("uponSanitizeElement",e,{tagName:a,allowedTags:B}),e.hasChildNodes()&&!Oe(e.firstElementChild)&&(!Oe(e.content)||!Oe(e.content.firstElementChild))&®ExpTest(/<[/\w]/g,e.innerHTML)&®ExpTest(/<[/\w]/g,e.textContent))return Me(e),!0;if("select"===a&®ExpTest(/<template/i,e.innerHTML))return Me(e),!0;if(!B[a]||G[a]){if(!G[a]&&Ne(a)){if(z.tagNameCheck instanceof RegExp&®ExpTest(z.tagNameCheck,a))return!1;if(z.tagNameCheck instanceof Function&&z.tagNameCheck(a))return!1}if(ne&&!le[a]){var i=v(e)||e.parentNode,n=g(e)||e.childNodes;if(n&&i)for(var s=n.length-1;s>=0;--s)i.insertBefore(f(n[s],!0),y(e))}return Me(e),!0}return e instanceof o&&!Pe(e)?(Me(e),!0):"noscript"!==a&&"noembed"!==a||!regExpTest(/<\/no(script|embed)/i,e.innerHTML)?(Y&&3===e.nodeType&&(r=e.textContent,r=stringReplace(r,I," "),r=stringReplace(r,D," "),e.textContent!==r&&(arrayPush(t.removed,{element:e.cloneNode()}),e.textContent=r)),Le("afterSanitizeElements",e,null),!1):(Me(e),!0)},Be=function(e,t,r){if(re&&("id"===t||"name"===t)&&(r in a||r in _e))return!1;if(q&&!W[t]&®ExpTest(F,t));else if(U&®ExpTest(R,t));else if(!V[t]||W[t]){if(!(Ne(e)&&(z.tagNameCheck instanceof RegExp&®ExpTest(z.tagNameCheck,e)||z.tagNameCheck instanceof Function&&z.tagNameCheck(e))&&(z.attributeNameCheck instanceof RegExp&®ExpTest(z.attributeNameCheck,t)||z.attributeNameCheck instanceof Function&&z.attributeNameCheck(t))||"is"===t&&z.allowCustomizedBuiltInElements&&(z.tagNameCheck instanceof RegExp&®ExpTest(z.tagNameCheck,r)||z.tagNameCheck instanceof Function&&z.tagNameCheck(r))))return!1}else if(pe[t]);else if(regExpTest(j,stringReplace(r,L,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==stringIndexOf(r,"data:")||!ce[e]){if(Q&&!regExpTest(O,stringReplace(r,L,"")));else if(r)return!1}else;return!0},Ne=function(e){return e.indexOf("-")>0},Ve=function(e){var r,a,i,n;Le("beforeSanitizeAttributes",e,null);var s=e.attributes;if(s){var o={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:V};for(n=s.length;n--;){var l=r=s[n],h=l.name,c=l.namespaceURI;if(a="value"===h?r.value:stringTrim(r.value),i=M(h),o.attrName=i,o.attrValue=a,o.keepAttr=!0,o.forceKeepAttr=void 0,Le("uponSanitizeAttribute",e,o),a=o.attrValue,!o.forceKeepAttr&&(Ie(h,e),o.keepAttr))if(regExpTest(/\/>/i,a))Ie(h,e);else{Y&&(a=stringReplace(a,I," "),a=stringReplace(a,D," "));var d=M(e.nodeName);if(Be(d,i,a)){if(!ae||"id"!==i&&"name"!==i||(Ie(h,e),a=ie+a),x&&"object"===_typeof(u)&&"function"==typeof u.getAttributeType)if(c);else switch(u.getAttributeType(d,i)){case"TrustedHTML":a=x.createHTML(a);break;case"TrustedScriptURL":a=x.createScriptURL(a)}try{c?e.setAttributeNS(c,h,a):e.setAttribute(h,a),arrayPop(t.removed)}catch(e){}}}}Le("afterSanitizeAttributes",e,null)}},He=function e(t){var r,a=Fe(t);for(Le("beforeSanitizeShadowDOM",t,null);r=a.nextNode();)Le("uponSanitizeShadowNode",r,null),je(r)||(r.content instanceof i&&e(r.content),Ve(r));Le("afterSanitizeShadowDOM",t,null)};return t.sanitize=function(a){var n,o,l,h,c,d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((ve=!a)&&(a="\x3c!--\x3e"),"string"!=typeof a&&!Oe(a)){if("function"!=typeof a.toString)throw typeErrorCreate("toString is not a function");if("string"!=typeof(a=a.toString()))throw typeErrorCreate("dirty is not a string, aborting")}if(!t.isSupported){if("object"===_typeof(e.toStaticHTML)||"function"==typeof e.toStaticHTML){if("string"==typeof a)return e.toStaticHTML(a);if(Oe(a))return e.toStaticHTML(a.outerHTML)}return a}if(X||Ce(d),t.removed=[],"string"==typeof a&&(se=!1),se){if(a.nodeName){var p=M(a.nodeName);if(!B[p]||G[p])throw typeErrorCreate("root node is forbidden and cannot be sanitized in-place")}}else if(a instanceof s)1===(o=(n=De("\x3c!----\x3e")).ownerDocument.importNode(a,!0)).nodeType&&"BODY"===o.nodeName||"HTML"===o.nodeName?n=o:n.appendChild(o);else{if(!J&&!Y&&!K&&-1===a.indexOf("<"))return x&&te?x.createHTML(a):a;if(!(n=De(a)))return J?null:te?S:""}n&&Z&&Me(n.firstChild);for(var u=Fe(se?a:n);l=u.nextNode();)3===l.nodeType&&l===h||je(l)||(l.content instanceof i&&He(l.content),Ve(l),h=l);if(h=null,se)return a;if(J){if(ee)for(c=$.call(n.ownerDocument);n.firstChild;)c.appendChild(n.firstChild);else c=n;return V.shadowroot&&(c=w.call(r,c,!0)),c}var m=K?n.outerHTML:n.innerHTML;return K&&B["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&®ExpTest(DOCTYPE_NAME,n.ownerDocument.doctype.name)&&(m="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+m),Y&&(m=stringReplace(m,I," "),m=stringReplace(m,D," ")),x&&te?x.createHTML(m):m},t.setConfig=function(e){Ce(e),X=!0},t.clearConfig=function(){Se=null,X=!1},t.isValidAttribute=function(e,t,r){Se||Ce({});var a=M(e),i=M(t);return Be(a,i,r)},t.addHook=function(e,t){"function"==typeof t&&(A[e]=A[e]||[],arrayPush(A[e],t))},t.removeHook=function(e){if(A[e])return arrayPop(A[e])},t.removeHooks=function(e){A[e]&&(A[e]=[])},t.removeAllHooks=function(){A={}},t}var purify=createDOMPurify();const withNotificationBanner=e=>React__default.forwardRef(((t,r)=>jsx(NBComponent,{forwardedRef:r,...t,children:e.length>0?e.map(((e,t)=>{if("text"===e.type){const r=e.otherAttributes,a=purify.sanitize(e.content);return jsx("p",{...r,dangerouslySetInnerHTML:{__html:a}},t)}{const r=e.otherAttributes;return jsx(NotificationBanner.Link,{...r,children:e.content},t)}})):(console.error("[NotificationBannerHOC] Empty data passed"),null)}))),Container=styled.div`
|
|
1814
2408
|
display: flex;
|
|
1815
2409
|
justify-content: center;
|
|
1816
2410
|
align-items: center;
|
|
@@ -2158,5 +2752,5 @@ var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,a=Object.pr
|
|
|
2158
2752
|
`}}}
|
|
2159
2753
|
`,HOCWrapper=styled.div`
|
|
2160
2754
|
position: relative;
|
|
2161
|
-
`,Tooltip=({visible:e,position:t="top",children:r,...a})=>{const i=a["data-testid"]||"tooltip",[n,s]=useState(t),o=useRef(null);useEffect((()=>(h(),window.addEventListener("resize",debounce_1(l,300)),()=>{window.removeEventListener("resize",debounce_1(l,300))})),[]);const l=()=>{h()},h=()=>{if(o.current){const e=o.current.getBoundingClientRect();if(e.x<0)switch(t){case"left":case"top":case"bottom":s("right");break;case"right":s("top")}else if(e.x+e.width>window.outerWidth)switch(t){case"right":case"top":case"bottom":s("left");break;case"left":s("top")}else s(t)}};return jsxs(Bubble,{position:n,"data-testid":i,visible:e,ref:o,...a,children:["string"==typeof r?jsx(Text.BodySmall,{children:r}):r,jsx(Arrow,{position:n})]})},withTooltip=(e,t)=>r=>{const{tooltipVisible:a,position:i,...n}=r;return jsxs(HOCWrapper,{children:[jsx(e,{...n}),jsx(Tooltip,{visible:a,position:i,children:t.content})]})};export{Accordion,Alert,BaseTheme,BookingSGTheme,BoxContainer,Breadcrumb,Button,Checkbox,Color,DateInput,Form,Icon,IconButton,Input$2 as Input,InputGroup,InputMultiSelect,InputSelect,LinkList,LoadingDots,LoadingSpinner,Masonry,MediaQuery,Modal,Overlay,Popover,RadioButton,RedirectScope,Text,TextList,TextStyle,TextStyleHelper,Textarea,ThemeContextKeys,Timeline,Timepicker,ToggleButton$1 as ToggleButton,Tooltip,Transition,withPopover,withTooltip};
|
|
2755
|
+
`,Tooltip=({visible:e,position:t="top",children:r,...a})=>{const i=a["data-testid"]||"tooltip",[n,s]=useState(t),o=useRef(null);useEffect((()=>(h(),window.addEventListener("resize",debounce_1(l,300)),()=>{window.removeEventListener("resize",debounce_1(l,300))})),[]);const l=()=>{h()},h=()=>{if(o.current){const e=o.current.getBoundingClientRect();if(e.x<0)switch(t){case"left":case"top":case"bottom":s("right");break;case"right":s("top")}else if(e.x+e.width>window.outerWidth)switch(t){case"right":case"top":case"bottom":s("left");break;case"left":s("top")}else s(t)}};return jsxs(Bubble,{position:n,"data-testid":i,visible:e,ref:o,...a,children:["string"==typeof r?jsx(Text.BodySmall,{children:r}):r,jsx(Arrow,{position:n})]})},withTooltip=(e,t)=>r=>{const{tooltipVisible:a,position:i,...n}=r;return jsxs(HOCWrapper,{children:[jsx(e,{...n}),jsx(Tooltip,{visible:a,position:i,children:t.content})]})};export{Accordion,Alert,BaseTheme,BookingSGTheme,BoxContainer,Breadcrumb,Button,Checkbox,Color,DateInput,Footer,Form,Icon,IconButton,Input$2 as Input,InputGroup,InputMultiSelect,InputSelect,Layout,LinkList,LoadingDots,LoadingSpinner,Masonry,Masthead,MediaQuery,MediaWidths,Modal,NBComponent,Navbar,NavbarHeight,NotificationBanner,Overlay,Popover,RadioButton,RedirectScope,Text,TextList,TextStyle,TextStyleHelper,Textarea,ThemeContextKeys,Timeline,Timepicker,ToggleButton$1 as ToggleButton,Tooltip,Transition,withNotificationBanner,withPopover,withTooltip};
|
|
2162
2756
|
//# sourceMappingURL=index.js.map
|